glebtv-ckeditor 4.5.7.1 → 4.5.10.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (281) hide show
  1. checksums.yaml +4 -4
  2. data/app/views/rails_admin/main/_form_ck_editor.html.haml +1 -2
  3. data/app/views/rails_admin/main/_form_ck_editorml.html.haml +1 -1
  4. data/lib/ckeditor/version.rb +2 -2
  5. data/vendor/assets/javascripts/ckeditor/LICENSE.md +0 -0
  6. data/vendor/assets/javascripts/ckeditor/README.md +1 -1
  7. data/vendor/assets/javascripts/ckeditor/adapters/jquery.js +0 -0
  8. data/vendor/assets/javascripts/ckeditor/build-config.js +2 -2
  9. data/vendor/assets/javascripts/ckeditor/ckeditor.js +454 -451
  10. data/vendor/assets/javascripts/ckeditor/config.js +0 -0
  11. data/vendor/assets/javascripts/ckeditor/lang/en.js +1 -1
  12. data/vendor/assets/javascripts/ckeditor/lang/ru.js +1 -1
  13. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/a11yhelp.js +0 -0
  14. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/en.js +0 -0
  15. data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ru.js +0 -0
  16. data/vendor/assets/javascripts/ckeditor/plugins/about/dialogs/about.js +0 -0
  17. data/vendor/assets/javascripts/ckeditor/plugins/about/dialogs/hidpi/logo_ckeditor.png +0 -0
  18. data/vendor/assets/javascripts/ckeditor/plugins/about/dialogs/logo_ckeditor.png +0 -0
  19. data/vendor/assets/javascripts/ckeditor/plugins/clipboard/dialogs/paste.js +0 -0
  20. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/css/codemirror.min.css +1 -1
  21. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/icons/autocomplete.png +0 -0
  22. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/icons/autoformat.png +0 -0
  23. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/icons/commentselectedrange.png +0 -0
  24. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/icons/searchcode.png +0 -0
  25. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/icons/uncommentselectedrange.png +0 -0
  26. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/beautify.min.js +1 -1
  27. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/codemirror.addons.min.js +1 -1
  28. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/codemirror.addons.search.min.js +1 -1
  29. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/codemirror.min.js +1 -1
  30. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/codemirror.mode.bbcode.min.js +0 -0
  31. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/codemirror.mode.bbcodemixed.min.js +0 -0
  32. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/codemirror.mode.htmlmixed.min.js +1 -1
  33. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/codemirror.mode.javascript.min.js +1 -1
  34. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/js/codemirror.mode.php.min.js +1 -1
  35. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/af.js +12 -0
  36. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/ar.js +12 -0
  37. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/bg.js +12 -0
  38. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/bn.js +12 -0
  39. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/bs.js +12 -0
  40. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/ca.js +12 -0
  41. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/cs.js +12 -0
  42. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/cy.js +12 -0
  43. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/da.js +12 -0
  44. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/de.js +12 -0
  45. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/el.js +12 -0
  46. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/en-au.js +12 -0
  47. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/en-ca.js +12 -0
  48. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/en-gb.js +12 -0
  49. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/en.js +0 -0
  50. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/eo.js +12 -0
  51. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/es.js +12 -0
  52. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/et.js +12 -0
  53. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/eu.js +12 -0
  54. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/fa.js +12 -0
  55. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/fi.js +12 -0
  56. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/fo.js +12 -0
  57. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/fr-ca.js +12 -0
  58. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/fr.js +12 -0
  59. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/gl.js +12 -0
  60. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/gu.js +12 -0
  61. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/he.js +12 -0
  62. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/hi.js +12 -0
  63. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/hr.js +12 -0
  64. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/hu.js +12 -0
  65. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/is.js +12 -0
  66. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/it.js +12 -0
  67. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/ja.js +12 -0
  68. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/ka.js +12 -0
  69. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/km.js +12 -0
  70. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/ko.js +12 -0
  71. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/ku.js +12 -0
  72. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/lt.js +12 -0
  73. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/lv.js +12 -0
  74. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/mk.js +12 -0
  75. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/mn.js +12 -0
  76. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/ms.js +12 -0
  77. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/nb.js +12 -0
  78. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/nl.js +12 -0
  79. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/no.js +12 -0
  80. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/pl.js +12 -0
  81. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/pt-br.js +12 -0
  82. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/pt.js +12 -0
  83. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/ro.js +12 -0
  84. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/ru.js +0 -0
  85. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/sk.js +12 -0
  86. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/sl.js +12 -0
  87. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/sr-latn.js +12 -0
  88. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/sr.js +12 -0
  89. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/sv.js +12 -0
  90. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/th.js +12 -0
  91. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/tr.js +12 -0
  92. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/ug.js +12 -0
  93. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/uk.js +12 -0
  94. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/vi.js +12 -0
  95. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/zh-cn.js +12 -0
  96. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/lang/zh.js +12 -0
  97. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/plugin.js +51 -58
  98. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/3024-day.css +23 -22
  99. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/3024-night.css +22 -22
  100. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/abcdef.css +32 -0
  101. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/ambiance-mobile.css +0 -0
  102. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/ambiance.css +9 -11
  103. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/base16-dark.css +27 -27
  104. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/base16-light.css +27 -27
  105. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/bespin.css +34 -0
  106. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/blackboard.css +7 -7
  107. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/cobalt.css +6 -6
  108. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/colorforth.css +3 -3
  109. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/dracula.css +41 -0
  110. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/eclipse.css +21 -21
  111. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/elegant.css +12 -12
  112. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/erlang-dark.css +6 -6
  113. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/hopscotch.css +34 -0
  114. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/icecoder.css +43 -0
  115. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/isotope.css +34 -0
  116. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/lesser-dark.css +16 -16
  117. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/liquibyte.css +19 -19
  118. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/material.css +53 -0
  119. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/mbo.css +25 -25
  120. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/mdn-like.css +8 -8
  121. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/midnight.css +24 -26
  122. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/monokai.css +24 -23
  123. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/neat.css +3 -3
  124. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/neo.css +7 -7
  125. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/night.css +7 -8
  126. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/paraiso-dark.css +26 -26
  127. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/paraiso-light.css +26 -26
  128. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/pastel-on-dark.css +5 -5
  129. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/railscasts.css +34 -0
  130. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/rubyblue.css +5 -5
  131. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/seti.css +44 -0
  132. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/solarized.css +10 -12
  133. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/the-matrix.css +23 -23
  134. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/tomorrow-night-bright.css +24 -24
  135. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/tomorrow-night-eighties.css +26 -26
  136. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/ttcn.css +45 -46
  137. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/twilight.css +9 -9
  138. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/vibrant-ink.css +11 -11
  139. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/xq-dark.css +22 -22
  140. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/xq-light.css +18 -18
  141. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/yeti.css +44 -0
  142. data/vendor/assets/javascripts/ckeditor/plugins/codemirror/theme/zenburn.css +3 -3
  143. data/vendor/assets/javascripts/ckeditor/plugins/colordialog/dialogs/colordialog.css +20 -0
  144. data/vendor/assets/javascripts/ckeditor/plugins/colordialog/dialogs/colordialog.js +10 -9
  145. data/vendor/assets/javascripts/ckeditor/plugins/dialog/dialogDefinition.js +0 -0
  146. data/vendor/assets/javascripts/ckeditor/plugins/div/dialogs/div.js +0 -0
  147. data/vendor/assets/javascripts/ckeditor/plugins/find/dialogs/find.js +11 -10
  148. data/vendor/assets/javascripts/ckeditor/plugins/flash/dialogs/flash.js +0 -0
  149. data/vendor/assets/javascripts/ckeditor/plugins/flash/images/placeholder.png +0 -0
  150. data/vendor/assets/javascripts/ckeditor/plugins/forms/dialogs/button.js +0 -0
  151. data/vendor/assets/javascripts/ckeditor/plugins/forms/dialogs/checkbox.js +0 -0
  152. data/vendor/assets/javascripts/ckeditor/plugins/forms/dialogs/form.js +0 -0
  153. data/vendor/assets/javascripts/ckeditor/plugins/forms/dialogs/hiddenfield.js +0 -0
  154. data/vendor/assets/javascripts/ckeditor/plugins/forms/dialogs/radio.js +0 -0
  155. data/vendor/assets/javascripts/ckeditor/plugins/forms/dialogs/select.js +0 -0
  156. data/vendor/assets/javascripts/ckeditor/plugins/forms/dialogs/textarea.js +0 -0
  157. data/vendor/assets/javascripts/ckeditor/plugins/forms/dialogs/textfield.js +0 -0
  158. data/vendor/assets/javascripts/ckeditor/plugins/forms/images/hiddenfield.gif +0 -0
  159. data/vendor/assets/javascripts/ckeditor/plugins/icons.png +0 -0
  160. data/vendor/assets/javascripts/ckeditor/plugins/icons_hidpi.png +0 -0
  161. data/vendor/assets/javascripts/ckeditor/plugins/iframe/dialogs/iframe.js +0 -0
  162. data/vendor/assets/javascripts/ckeditor/plugins/iframe/images/placeholder.png +0 -0
  163. data/vendor/assets/javascripts/ckeditor/plugins/image/dialogs/image.js +0 -0
  164. data/vendor/assets/javascripts/ckeditor/plugins/image/images/noimage.png +0 -0
  165. data/vendor/assets/javascripts/ckeditor/plugins/link/dialogs/anchor.js +0 -0
  166. data/vendor/assets/javascripts/ckeditor/plugins/link/dialogs/link.js +0 -0
  167. data/vendor/assets/javascripts/ckeditor/plugins/link/images/anchor.png +0 -0
  168. data/vendor/assets/javascripts/ckeditor/plugins/link/images/hidpi/anchor.png +0 -0
  169. data/vendor/assets/javascripts/ckeditor/plugins/liststyle/dialogs/liststyle.js +0 -0
  170. data/vendor/assets/javascripts/ckeditor/plugins/magicline/images/hidpi/icon-rtl.png +0 -0
  171. data/vendor/assets/javascripts/ckeditor/plugins/magicline/images/hidpi/icon.png +0 -0
  172. data/vendor/assets/javascripts/ckeditor/plugins/magicline/images/icon-rtl.png +0 -0
  173. data/vendor/assets/javascripts/ckeditor/plugins/magicline/images/icon.png +0 -0
  174. data/vendor/assets/javascripts/ckeditor/plugins/pagebreak/images/pagebreak.gif +0 -0
  175. data/vendor/assets/javascripts/ckeditor/plugins/pastefromword/filter/default.js +0 -0
  176. data/vendor/assets/javascripts/ckeditor/plugins/preview/preview.html +0 -0
  177. data/vendor/assets/javascripts/ckeditor/plugins/scayt/CHANGELOG.md +0 -0
  178. data/vendor/assets/javascripts/ckeditor/plugins/scayt/LICENSE.md +0 -0
  179. data/vendor/assets/javascripts/ckeditor/plugins/scayt/README.md +0 -0
  180. data/vendor/assets/javascripts/ckeditor/plugins/scayt/dialogs/options.js +0 -0
  181. data/vendor/assets/javascripts/ckeditor/plugins/scayt/dialogs/toolbar.css +0 -0
  182. data/vendor/assets/javascripts/ckeditor/plugins/showblocks/images/block_address.png +0 -0
  183. data/vendor/assets/javascripts/ckeditor/plugins/showblocks/images/block_blockquote.png +0 -0
  184. data/vendor/assets/javascripts/ckeditor/plugins/showblocks/images/block_div.png +0 -0
  185. data/vendor/assets/javascripts/ckeditor/plugins/showblocks/images/block_h1.png +0 -0
  186. data/vendor/assets/javascripts/ckeditor/plugins/showblocks/images/block_h2.png +0 -0
  187. data/vendor/assets/javascripts/ckeditor/plugins/showblocks/images/block_h3.png +0 -0
  188. data/vendor/assets/javascripts/ckeditor/plugins/showblocks/images/block_h4.png +0 -0
  189. data/vendor/assets/javascripts/ckeditor/plugins/showblocks/images/block_h5.png +0 -0
  190. data/vendor/assets/javascripts/ckeditor/plugins/showblocks/images/block_h6.png +0 -0
  191. data/vendor/assets/javascripts/ckeditor/plugins/showblocks/images/block_p.png +0 -0
  192. data/vendor/assets/javascripts/ckeditor/plugins/showblocks/images/block_pre.png +0 -0
  193. data/vendor/assets/javascripts/ckeditor/plugins/smiley/dialogs/smiley.js +0 -0
  194. data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/angel_smile.gif +0 -0
  195. data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/angel_smile.png +0 -0
  196. data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/angry_smile.gif +0 -0
  197. data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/angry_smile.png +0 -0
  198. data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/broken_heart.gif +0 -0
  199. data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/broken_heart.png +0 -0
  200. data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/confused_smile.gif +0 -0
  201. data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/confused_smile.png +0 -0
  202. data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/cry_smile.gif +0 -0
  203. data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/cry_smile.png +0 -0
  204. data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/devil_smile.gif +0 -0
  205. data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/devil_smile.png +0 -0
  206. data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/embaressed_smile.gif +0 -0
  207. data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/embarrassed_smile.gif +0 -0
  208. data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/embarrassed_smile.png +0 -0
  209. data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/envelope.gif +0 -0
  210. data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/envelope.png +0 -0
  211. data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/heart.gif +0 -0
  212. data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/heart.png +0 -0
  213. data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/kiss.gif +0 -0
  214. data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/kiss.png +0 -0
  215. data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/lightbulb.gif +0 -0
  216. data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/lightbulb.png +0 -0
  217. data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/omg_smile.gif +0 -0
  218. data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/omg_smile.png +0 -0
  219. data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/regular_smile.gif +0 -0
  220. data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/regular_smile.png +0 -0
  221. data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/sad_smile.gif +0 -0
  222. data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/sad_smile.png +0 -0
  223. data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/shades_smile.gif +0 -0
  224. data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/shades_smile.png +0 -0
  225. data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/teeth_smile.gif +0 -0
  226. data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/teeth_smile.png +0 -0
  227. data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/thumbs_down.gif +0 -0
  228. data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/thumbs_down.png +0 -0
  229. data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/thumbs_up.gif +0 -0
  230. data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/thumbs_up.png +0 -0
  231. data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/tongue_smile.gif +0 -0
  232. data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/tongue_smile.png +0 -0
  233. data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/tounge_smile.gif +0 -0
  234. data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/whatchutalkingabout_smile.gif +0 -0
  235. data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/whatchutalkingabout_smile.png +0 -0
  236. data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/wink_smile.gif +0 -0
  237. data/vendor/assets/javascripts/ckeditor/plugins/smiley/images/wink_smile.png +0 -0
  238. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/en.js +0 -0
  239. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/ru.js +0 -0
  240. data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/specialchar.js +0 -0
  241. data/vendor/assets/javascripts/ckeditor/plugins/table/dialogs/table.js +17 -17
  242. data/vendor/assets/javascripts/ckeditor/plugins/tabletools/dialogs/tableCell.js +0 -0
  243. data/vendor/assets/javascripts/ckeditor/plugins/templates/dialogs/templates.css +0 -0
  244. data/vendor/assets/javascripts/ckeditor/plugins/templates/dialogs/templates.js +0 -0
  245. data/vendor/assets/javascripts/ckeditor/plugins/templates/templates/default.js +0 -0
  246. data/vendor/assets/javascripts/ckeditor/plugins/templates/templates/images/template1.gif +0 -0
  247. data/vendor/assets/javascripts/ckeditor/plugins/templates/templates/images/template2.gif +0 -0
  248. data/vendor/assets/javascripts/ckeditor/plugins/templates/templates/images/template3.gif +0 -0
  249. data/vendor/assets/javascripts/ckeditor/plugins/wsc/LICENSE.md +0 -0
  250. data/vendor/assets/javascripts/ckeditor/plugins/wsc/README.md +0 -0
  251. data/vendor/assets/javascripts/ckeditor/plugins/wsc/dialogs/ciframe.html +0 -0
  252. data/vendor/assets/javascripts/ckeditor/plugins/wsc/dialogs/tmpFrameset.html +0 -0
  253. data/vendor/assets/javascripts/ckeditor/plugins/wsc/dialogs/wsc.css +0 -0
  254. data/vendor/assets/javascripts/ckeditor/plugins/wsc/dialogs/wsc.js +0 -0
  255. data/vendor/assets/javascripts/ckeditor/plugins/wsc/dialogs/wsc_ie.js +0 -0
  256. data/vendor/assets/javascripts/ckeditor/skins/moono/dialog.css +1 -1
  257. data/vendor/assets/javascripts/ckeditor/skins/moono/dialog_ie.css +1 -1
  258. data/vendor/assets/javascripts/ckeditor/skins/moono/dialog_ie7.css +1 -1
  259. data/vendor/assets/javascripts/ckeditor/skins/moono/dialog_ie8.css +1 -1
  260. data/vendor/assets/javascripts/ckeditor/skins/moono/dialog_iequirks.css +1 -1
  261. data/vendor/assets/javascripts/ckeditor/skins/moono/editor.css +1 -1
  262. data/vendor/assets/javascripts/ckeditor/skins/moono/editor_gecko.css +1 -1
  263. data/vendor/assets/javascripts/ckeditor/skins/moono/editor_ie.css +1 -1
  264. data/vendor/assets/javascripts/ckeditor/skins/moono/editor_ie7.css +1 -1
  265. data/vendor/assets/javascripts/ckeditor/skins/moono/editor_ie8.css +1 -1
  266. data/vendor/assets/javascripts/ckeditor/skins/moono/editor_iequirks.css +1 -1
  267. data/vendor/assets/javascripts/ckeditor/skins/moono/icons.png +0 -0
  268. data/vendor/assets/javascripts/ckeditor/skins/moono/icons_hidpi.png +0 -0
  269. data/vendor/assets/javascripts/ckeditor/skins/moono/images/arrow.png +0 -0
  270. data/vendor/assets/javascripts/ckeditor/skins/moono/images/close.png +0 -0
  271. data/vendor/assets/javascripts/ckeditor/skins/moono/images/hidpi/close.png +0 -0
  272. data/vendor/assets/javascripts/ckeditor/skins/moono/images/hidpi/lock-open.png +0 -0
  273. data/vendor/assets/javascripts/ckeditor/skins/moono/images/hidpi/lock.png +0 -0
  274. data/vendor/assets/javascripts/ckeditor/skins/moono/images/hidpi/refresh.png +0 -0
  275. data/vendor/assets/javascripts/ckeditor/skins/moono/images/lock-open.png +0 -0
  276. data/vendor/assets/javascripts/ckeditor/skins/moono/images/lock.png +0 -0
  277. data/vendor/assets/javascripts/ckeditor/skins/moono/images/refresh.png +0 -0
  278. data/vendor/assets/javascripts/ckeditor/skins/moono/images/spinner.gif +0 -0
  279. data/vendor/assets/javascripts/ckeditor/skins/moono/readme.md +0 -0
  280. data/vendor/assets/javascripts/ckeditor/styles.js +0 -0
  281. metadata +73 -2
@@ -2,4 +2,4 @@
2
2
  Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
3
3
  For licensing, see LICENSE.md or http://ckeditor.com/license
4
4
  */
5
- CKEDITOR.lang['en']={"editor":"Rich Text Editor","editorPanel":"Rich Text Editor panel","common":{"editorHelp":"Press ALT 0 for help","browseServer":"Browse Server","url":"URL","protocol":"Protocol","upload":"Upload","uploadSubmit":"Send it to the Server","image":"Image","flash":"Flash","form":"Form","checkbox":"Checkbox","radio":"Radio Button","textField":"Text Field","textarea":"Textarea","hiddenField":"Hidden Field","button":"Button","select":"Selection Field","imageButton":"Image Button","notSet":"<not set>","id":"Id","name":"Name","langDir":"Language Direction","langDirLtr":"Left to Right (LTR)","langDirRtl":"Right to Left (RTL)","langCode":"Language Code","longDescr":"Long Description URL","cssClass":"Stylesheet Classes","advisoryTitle":"Advisory Title","cssStyle":"Style","ok":"OK","cancel":"Cancel","close":"Close","preview":"Preview","resize":"Resize","generalTab":"General","advancedTab":"Advanced","validateNumberFailed":"This value is not a number.","confirmNewPage":"Any unsaved changes to this content will be lost. Are you sure you want to load new page?","confirmCancel":"You have changed some options. Are you sure you want to close the dialog window?","options":"Options","target":"Target","targetNew":"New Window (_blank)","targetTop":"Topmost Window (_top)","targetSelf":"Same Window (_self)","targetParent":"Parent Window (_parent)","langDirLTR":"Left to Right (LTR)","langDirRTL":"Right to Left (RTL)","styles":"Style","cssClasses":"Stylesheet Classes","width":"Width","height":"Height","align":"Alignment","alignLeft":"Left","alignRight":"Right","alignCenter":"Center","alignJustify":"Justify","alignTop":"Top","alignMiddle":"Middle","alignBottom":"Bottom","alignNone":"None","invalidValue":"Invalid value.","invalidHeight":"Height must be a number.","invalidWidth":"Width must be a number.","invalidCssLength":"Value specified for the \"%1\" field must be a positive number with or without a valid CSS measurement unit (px, %, in, cm, mm, em, ex, pt, or pc).","invalidHtmlLength":"Value specified for the \"%1\" field must be a positive number with or without a valid HTML measurement unit (px or %).","invalidInlineStyle":"Value specified for the inline style must consist of one or more tuples with the format of \"name : value\", separated by semi-colons.","cssLengthTooltip":"Enter a number for a value in pixels or a number with a valid CSS unit (px, %, in, cm, mm, em, ex, pt, or pc).","unavailable":"%1<span class=\"cke_accessibility\">, unavailable</span>"},"about":{"copy":"Copyright &copy; $1. All rights reserved.","dlgTitle":"About CKEditor","help":"Check $1 for help.","moreInfo":"For licensing information please visit our web site:","title":"About CKEditor","userGuide":"CKEditor User's Guide"},"basicstyles":{"bold":"Bold","italic":"Italic","strike":"Strikethrough","subscript":"Subscript","superscript":"Superscript","underline":"Underline"},"bidi":{"ltr":"Text direction from left to right","rtl":"Text direction from right to left"},"blockquote":{"toolbar":"Block Quote"},"clipboard":{"copy":"Copy","copyError":"Your browser security settings don't permit the editor to automatically execute copying operations. Please use the keyboard for that (Ctrl/Cmd+C).","cut":"Cut","cutError":"Your browser security settings don't permit the editor to automatically execute cutting operations. Please use the keyboard for that (Ctrl/Cmd+X).","paste":"Paste","pasteArea":"Paste Area","pasteMsg":"Please paste inside the following box using the keyboard (<strong>Ctrl/Cmd+V</strong>) and hit OK","securityMsg":"Because of your browser security settings, the editor is not able to access your clipboard data directly. You are required to paste it again in this window.","title":"Paste"},"button":{"selectedLabel":"%1 (Selected)"},"colorbutton":{"auto":"Automatic","bgColorTitle":"Background Color","colors":{"000":"Black","800000":"Maroon","8B4513":"Saddle Brown","2F4F4F":"Dark Slate Gray","008080":"Teal","000080":"Navy","4B0082":"Indigo","696969":"Dark Gray","B22222":"Fire Brick","A52A2A":"Brown","DAA520":"Golden Rod","006400":"Dark Green","40E0D0":"Turquoise","0000CD":"Medium Blue","800080":"Purple","808080":"Gray","F00":"Red","FF8C00":"Dark Orange","FFD700":"Gold","008000":"Green","0FF":"Cyan","00F":"Blue","EE82EE":"Violet","A9A9A9":"Dim Gray","FFA07A":"Light Salmon","FFA500":"Orange","FFFF00":"Yellow","00FF00":"Lime","AFEEEE":"Pale Turquoise","ADD8E6":"Light Blue","DDA0DD":"Plum","D3D3D3":"Light Grey","FFF0F5":"Lavender Blush","FAEBD7":"Antique White","FFFFE0":"Light Yellow","F0FFF0":"Honeydew","F0FFFF":"Azure","F0F8FF":"Alice Blue","E6E6FA":"Lavender","FFF":"White"},"more":"More Colors...","panelTitle":"Colors","textColorTitle":"Text Color"},"colordialog":{"clear":"Clear","highlight":"Highlight","options":"Color Options","selected":"Selected Color","title":"Select color"},"templates":{"button":"Templates","emptyListMsg":"(No templates defined)","insertOption":"Replace actual contents","options":"Template Options","selectPromptMsg":"Please select the template to open in the editor","title":"Content Templates"},"contextmenu":{"options":"Context Menu Options"},"div":{"IdInputLabel":"Id","advisoryTitleInputLabel":"Advisory Title","cssClassInputLabel":"Stylesheet Classes","edit":"Edit Div","inlineStyleInputLabel":"Inline Style","langDirLTRLabel":"Left to Right (LTR)","langDirLabel":"Language Direction","langDirRTLLabel":"Right to Left (RTL)","languageCodeInputLabel":" Language Code","remove":"Remove Div","styleSelectLabel":"Style","title":"Create Div Container","toolbar":"Create Div Container"},"toolbar":{"toolbarCollapse":"Collapse Toolbar","toolbarExpand":"Expand Toolbar","toolbarGroups":{"document":"Document","clipboard":"Clipboard/Undo","editing":"Editing","forms":"Forms","basicstyles":"Basic Styles","paragraph":"Paragraph","links":"Links","insert":"Insert","styles":"Styles","colors":"Colors","tools":"Tools"},"toolbars":"Editor toolbars"},"elementspath":{"eleLabel":"Elements path","eleTitle":"%1 element"},"find":{"find":"Find","findOptions":"Find Options","findWhat":"Find what:","matchCase":"Match case","matchCyclic":"Match cyclic","matchWord":"Match whole word","notFoundMsg":"The specified text was not found.","replace":"Replace","replaceAll":"Replace All","replaceSuccessMsg":"%1 occurrence(s) replaced.","replaceWith":"Replace with:","title":"Find and Replace"},"fakeobjects":{"anchor":"Anchor","flash":"Flash Animation","hiddenfield":"Hidden Field","iframe":"IFrame","unknown":"Unknown Object"},"flash":{"access":"Script Access","accessAlways":"Always","accessNever":"Never","accessSameDomain":"Same domain","alignAbsBottom":"Abs Bottom","alignAbsMiddle":"Abs Middle","alignBaseline":"Baseline","alignTextTop":"Text Top","bgcolor":"Background color","chkFull":"Allow Fullscreen","chkLoop":"Loop","chkMenu":"Enable Flash Menu","chkPlay":"Auto Play","flashvars":"Variables for Flash","hSpace":"HSpace","properties":"Flash Properties","propertiesTab":"Properties","quality":"Quality","qualityAutoHigh":"Auto High","qualityAutoLow":"Auto Low","qualityBest":"Best","qualityHigh":"High","qualityLow":"Low","qualityMedium":"Medium","scale":"Scale","scaleAll":"Show all","scaleFit":"Exact Fit","scaleNoBorder":"No Border","title":"Flash Properties","vSpace":"VSpace","validateHSpace":"HSpace must be a number.","validateSrc":"URL must not be empty.","validateVSpace":"VSpace must be a number.","windowMode":"Window mode","windowModeOpaque":"Opaque","windowModeTransparent":"Transparent","windowModeWindow":"Window"},"font":{"fontSize":{"label":"Size","voiceLabel":"Font Size","panelTitle":"Font Size"},"label":"Font","panelTitle":"Font Name","voiceLabel":"Font"},"forms":{"button":{"title":"Button Properties","text":"Text (Value)","type":"Type","typeBtn":"Button","typeSbm":"Submit","typeRst":"Reset"},"checkboxAndRadio":{"checkboxTitle":"Checkbox Properties","radioTitle":"Radio Button Properties","value":"Value","selected":"Selected","required":"Required"},"form":{"title":"Form Properties","menu":"Form Properties","action":"Action","method":"Method","encoding":"Encoding"},"hidden":{"title":"Hidden Field Properties","name":"Name","value":"Value"},"select":{"title":"Selection Field Properties","selectInfo":"Select Info","opAvail":"Available Options","value":"Value","size":"Size","lines":"lines","chkMulti":"Allow multiple selections","required":"Required","opText":"Text","opValue":"Value","btnAdd":"Add","btnModify":"Modify","btnUp":"Up","btnDown":"Down","btnSetValue":"Set as selected value","btnDelete":"Delete"},"textarea":{"title":"Textarea Properties","cols":"Columns","rows":"Rows"},"textfield":{"title":"Text Field Properties","name":"Name","value":"Value","charWidth":"Character Width","maxChars":"Maximum Characters","required":"Required","type":"Type","typeText":"Text","typePass":"Password","typeEmail":"Email","typeSearch":"Search","typeTel":"Telephone Number","typeUrl":"URL"}},"format":{"label":"Format","panelTitle":"Paragraph Format","tag_address":"Address","tag_div":"Normal (DIV)","tag_h1":"Heading 1","tag_h2":"Heading 2","tag_h3":"Heading 3","tag_h4":"Heading 4","tag_h5":"Heading 5","tag_h6":"Heading 6","tag_p":"Normal","tag_pre":"Formatted"},"horizontalrule":{"toolbar":"Insert Horizontal Line"},"iframe":{"border":"Show frame border","noUrl":"Please type the iframe URL","scrolling":"Enable scrollbars","title":"IFrame Properties","toolbar":"IFrame"},"image":{"alt":"Alternative Text","border":"Border","btnUpload":"Send it to the Server","button2Img":"Do you want to transform the selected image button on a simple image?","hSpace":"HSpace","img2Button":"Do you want to transform the selected image on a image button?","infoTab":"Image Info","linkTab":"Link","lockRatio":"Lock Ratio","menu":"Image Properties","resetSize":"Reset Size","title":"Image Properties","titleButton":"Image Button Properties","upload":"Upload","urlMissing":"Image source URL is missing.","vSpace":"VSpace","validateBorder":"Border must be a whole number.","validateHSpace":"HSpace must be a whole number.","validateVSpace":"VSpace must be a whole number."},"indent":{"indent":"Increase Indent","outdent":"Decrease Indent"},"smiley":{"options":"Smiley Options","title":"Insert a Smiley","toolbar":"Smiley"},"justify":{"block":"Justify","center":"Center","left":"Align Left","right":"Align Right"},"language":{"button":"Set language","remove":"Remove language"},"link":{"acccessKey":"Access Key","advanced":"Advanced","advisoryContentType":"Advisory Content Type","advisoryTitle":"Advisory Title","anchor":{"toolbar":"Anchor","menu":"Edit Anchor","title":"Anchor Properties","name":"Anchor Name","errorName":"Please type the anchor name","remove":"Remove Anchor"},"anchorId":"By Element Id","anchorName":"By Anchor Name","charset":"Linked Resource Charset","cssClasses":"Stylesheet Classes","emailAddress":"E-Mail Address","emailBody":"Message Body","emailSubject":"Message Subject","id":"Id","info":"Link Info","langCode":"Language Code","langDir":"Language Direction","langDirLTR":"Left to Right (LTR)","langDirRTL":"Right to Left (RTL)","menu":"Edit Link","name":"Name","noAnchors":"(No anchors available in the document)","noEmail":"Please type the e-mail address","noUrl":"Please type the link URL","other":"<other>","popupDependent":"Dependent (Netscape)","popupFeatures":"Popup Window Features","popupFullScreen":"Full Screen (IE)","popupLeft":"Left Position","popupLocationBar":"Location Bar","popupMenuBar":"Menu Bar","popupResizable":"Resizable","popupScrollBars":"Scroll Bars","popupStatusBar":"Status Bar","popupToolbar":"Toolbar","popupTop":"Top Position","rel":"Relationship","selectAnchor":"Select an Anchor","styles":"Style","tabIndex":"Tab Index","target":"Target","targetFrame":"<frame>","targetFrameName":"Target Frame Name","targetPopup":"<popup window>","targetPopupName":"Popup Window Name","title":"Link","toAnchor":"Link to anchor in the text","toEmail":"E-mail","toUrl":"URL","toolbar":"Link","type":"Link Type","unlink":"Unlink","upload":"Upload"},"list":{"bulletedlist":"Insert/Remove Bulleted List","numberedlist":"Insert/Remove Numbered List"},"liststyle":{"armenian":"Armenian numbering","bulletedTitle":"Bulleted List Properties","circle":"Circle","decimal":"Decimal (1, 2, 3, etc.)","decimalLeadingZero":"Decimal leading zero (01, 02, 03, etc.)","disc":"Disc","georgian":"Georgian numbering (an, ban, gan, etc.)","lowerAlpha":"Lower Alpha (a, b, c, d, e, etc.)","lowerGreek":"Lower Greek (alpha, beta, gamma, etc.)","lowerRoman":"Lower Roman (i, ii, iii, iv, v, etc.)","none":"None","notset":"<not set>","numberedTitle":"Numbered List Properties","square":"Square","start":"Start","type":"Type","upperAlpha":"Upper Alpha (A, B, C, D, E, etc.)","upperRoman":"Upper Roman (I, II, III, IV, V, etc.)","validateStartNumber":"List start number must be a whole number."},"magicline":{"title":"Insert paragraph here"},"maximize":{"maximize":"Maximize","minimize":"Minimize"},"newpage":{"toolbar":"New Page"},"pagebreak":{"alt":"Page Break","toolbar":"Insert Page Break for Printing"},"pastetext":{"button":"Paste as plain text","title":"Paste as Plain Text"},"pastefromword":{"confirmCleanup":"The text you want to paste seems to be copied from Word. Do you want to clean it before pasting?","error":"It was not possible to clean up the pasted data due to an internal error","title":"Paste from Word","toolbar":"Paste from Word"},"preview":{"preview":"Preview"},"print":{"toolbar":"Print"},"removeformat":{"toolbar":"Remove Format"},"save":{"toolbar":"Save"},"selectall":{"toolbar":"Select All"},"showblocks":{"toolbar":"Show Blocks"},"sourcearea":{"toolbar":"Source"},"specialchar":{"options":"Special Character Options","title":"Select Special Character","toolbar":"Insert Special Character"},"scayt":{"btn_about":"About SCAYT","btn_dictionaries":"Dictionaries","btn_disable":"Disable SCAYT","btn_enable":"Enable SCAYT","btn_langs":"Languages","btn_options":"Options","text_title":"Spell Check As You Type"},"stylescombo":{"label":"Styles","panelTitle":"Formatting Styles","panelTitle1":"Block Styles","panelTitle2":"Inline Styles","panelTitle3":"Object Styles"},"table":{"border":"Border size","caption":"Caption","cell":{"menu":"Cell","insertBefore":"Insert Cell Before","insertAfter":"Insert Cell After","deleteCell":"Delete Cells","merge":"Merge Cells","mergeRight":"Merge Right","mergeDown":"Merge Down","splitHorizontal":"Split Cell Horizontally","splitVertical":"Split Cell Vertically","title":"Cell Properties","cellType":"Cell Type","rowSpan":"Rows Span","colSpan":"Columns Span","wordWrap":"Word Wrap","hAlign":"Horizontal Alignment","vAlign":"Vertical Alignment","alignBaseline":"Baseline","bgColor":"Background Color","borderColor":"Border Color","data":"Data","header":"Header","yes":"Yes","no":"No","invalidWidth":"Cell width must be a number.","invalidHeight":"Cell height must be a number.","invalidRowSpan":"Rows span must be a whole number.","invalidColSpan":"Columns span must be a whole number.","chooseColor":"Choose"},"cellPad":"Cell padding","cellSpace":"Cell spacing","column":{"menu":"Column","insertBefore":"Insert Column Before","insertAfter":"Insert Column After","deleteColumn":"Delete Columns"},"columns":"Columns","deleteTable":"Delete Table","headers":"Headers","headersBoth":"Both","headersColumn":"First column","headersNone":"None","headersRow":"First Row","invalidBorder":"Border size must be a number.","invalidCellPadding":"Cell padding must be a positive number.","invalidCellSpacing":"Cell spacing must be a positive number.","invalidCols":"Number of columns must be a number greater than 0.","invalidHeight":"Table height must be a number.","invalidRows":"Number of rows must be a number greater than 0.","invalidWidth":"Table width must be a number.","menu":"Table Properties","row":{"menu":"Row","insertBefore":"Insert Row Before","insertAfter":"Insert Row After","deleteRow":"Delete Rows"},"rows":"Rows","summary":"Summary","title":"Table Properties","toolbar":"Table","widthPc":"percent","widthPx":"pixels","widthUnit":"width unit"},"undo":{"redo":"Redo","undo":"Undo"},"wsc":{"btnIgnore":"Ignore","btnIgnoreAll":"Ignore All","btnReplace":"Replace","btnReplaceAll":"Replace All","btnUndo":"Undo","changeTo":"Change to","errorLoading":"Error loading application service host: %s.","ieSpellDownload":"Spell checker not installed. Do you want to download it now?","manyChanges":"Spell check complete: %1 words changed","noChanges":"Spell check complete: No words changed","noMispell":"Spell check complete: No misspellings found","noSuggestions":"- No suggestions -","notAvailable":"Sorry, but service is unavailable now.","notInDic":"Not in dictionary","oneChange":"Spell check complete: One word changed","progress":"Spell check in progress...","title":"Spell Checker","toolbar":"Check Spelling"}};
5
+ CKEDITOR.lang['en']={"editor":"Rich Text Editor","editorPanel":"Rich Text Editor panel","common":{"editorHelp":"Press ALT 0 for help","browseServer":"Browse Server","url":"URL","protocol":"Protocol","upload":"Upload","uploadSubmit":"Send it to the Server","image":"Image","flash":"Flash","form":"Form","checkbox":"Checkbox","radio":"Radio Button","textField":"Text Field","textarea":"Textarea","hiddenField":"Hidden Field","button":"Button","select":"Selection Field","imageButton":"Image Button","notSet":"<not set>","id":"Id","name":"Name","langDir":"Language Direction","langDirLtr":"Left to Right (LTR)","langDirRtl":"Right to Left (RTL)","langCode":"Language Code","longDescr":"Long Description URL","cssClass":"Stylesheet Classes","advisoryTitle":"Advisory Title","cssStyle":"Style","ok":"OK","cancel":"Cancel","close":"Close","preview":"Preview","resize":"Resize","generalTab":"General","advancedTab":"Advanced","validateNumberFailed":"This value is not a number.","confirmNewPage":"Any unsaved changes to this content will be lost. Are you sure you want to load new page?","confirmCancel":"You have changed some options. Are you sure you want to close the dialog window?","options":"Options","target":"Target","targetNew":"New Window (_blank)","targetTop":"Topmost Window (_top)","targetSelf":"Same Window (_self)","targetParent":"Parent Window (_parent)","langDirLTR":"Left to Right (LTR)","langDirRTL":"Right to Left (RTL)","styles":"Style","cssClasses":"Stylesheet Classes","width":"Width","height":"Height","align":"Alignment","alignLeft":"Left","alignRight":"Right","alignCenter":"Center","alignJustify":"Justify","alignTop":"Top","alignMiddle":"Middle","alignBottom":"Bottom","alignNone":"None","invalidValue":"Invalid value.","invalidHeight":"Height must be a number.","invalidWidth":"Width must be a number.","invalidCssLength":"Value specified for the \"%1\" field must be a positive number with or without a valid CSS measurement unit (px, %, in, cm, mm, em, ex, pt, or pc).","invalidHtmlLength":"Value specified for the \"%1\" field must be a positive number with or without a valid HTML measurement unit (px or %).","invalidInlineStyle":"Value specified for the inline style must consist of one or more tuples with the format of \"name : value\", separated by semi-colons.","cssLengthTooltip":"Enter a number for a value in pixels or a number with a valid CSS unit (px, %, in, cm, mm, em, ex, pt, or pc).","unavailable":"%1<span class=\"cke_accessibility\">, unavailable</span>"},"about":{"copy":"Copyright &copy; $1. All rights reserved.","dlgTitle":"About CKEditor","help":"Check $1 for help.","moreInfo":"For licensing information please visit our web site:","title":"About CKEditor","userGuide":"CKEditor User's Guide"},"basicstyles":{"bold":"Bold","italic":"Italic","strike":"Strikethrough","subscript":"Subscript","superscript":"Superscript","underline":"Underline"},"bidi":{"ltr":"Text direction from left to right","rtl":"Text direction from right to left"},"blockquote":{"toolbar":"Block Quote"},"clipboard":{"copy":"Copy","copyError":"Your browser security settings don't permit the editor to automatically execute copying operations. Please use the keyboard for that (Ctrl/Cmd+C).","cut":"Cut","cutError":"Your browser security settings don't permit the editor to automatically execute cutting operations. Please use the keyboard for that (Ctrl/Cmd+X).","paste":"Paste","pasteArea":"Paste Area","pasteMsg":"Please paste inside the following box using the keyboard (<strong>Ctrl/Cmd+V</strong>) and hit OK","securityMsg":"Because of your browser security settings, the editor is not able to access your clipboard data directly. You are required to paste it again in this window.","title":"Paste"},"button":{"selectedLabel":"%1 (Selected)"},"colorbutton":{"auto":"Automatic","bgColorTitle":"Background Color","colors":{"000":"Black","800000":"Maroon","8B4513":"Saddle Brown","2F4F4F":"Dark Slate Gray","008080":"Teal","000080":"Navy","4B0082":"Indigo","696969":"Dark Gray","B22222":"Fire Brick","A52A2A":"Brown","DAA520":"Golden Rod","006400":"Dark Green","40E0D0":"Turquoise","0000CD":"Medium Blue","800080":"Purple","808080":"Gray","F00":"Red","FF8C00":"Dark Orange","FFD700":"Gold","008000":"Green","0FF":"Cyan","00F":"Blue","EE82EE":"Violet","A9A9A9":"Dim Gray","FFA07A":"Light Salmon","FFA500":"Orange","FFFF00":"Yellow","00FF00":"Lime","AFEEEE":"Pale Turquoise","ADD8E6":"Light Blue","DDA0DD":"Plum","D3D3D3":"Light Grey","FFF0F5":"Lavender Blush","FAEBD7":"Antique White","FFFFE0":"Light Yellow","F0FFF0":"Honeydew","F0FFFF":"Azure","F0F8FF":"Alice Blue","E6E6FA":"Lavender","FFF":"White"},"more":"More Colors...","panelTitle":"Colors","textColorTitle":"Text Color"},"colordialog":{"clear":"Clear","highlight":"Highlight","options":"Color Options","selected":"Selected Color","title":"Select color"},"contextmenu":{"options":"Context Menu Options"},"div":{"IdInputLabel":"Id","advisoryTitleInputLabel":"Advisory Title","cssClassInputLabel":"Stylesheet Classes","edit":"Edit Div","inlineStyleInputLabel":"Inline Style","langDirLTRLabel":"Left to Right (LTR)","langDirLabel":"Language Direction","langDirRTLLabel":"Right to Left (RTL)","languageCodeInputLabel":" Language Code","remove":"Remove Div","styleSelectLabel":"Style","title":"Create Div Container","toolbar":"Create Div Container"},"elementspath":{"eleLabel":"Elements path","eleTitle":"%1 element"},"find":{"find":"Find","findOptions":"Find Options","findWhat":"Find what:","matchCase":"Match case","matchCyclic":"Match cyclic","matchWord":"Match whole word","notFoundMsg":"The specified text was not found.","replace":"Replace","replaceAll":"Replace All","replaceSuccessMsg":"%1 occurrence(s) replaced.","replaceWith":"Replace with:","title":"Find and Replace"},"fakeobjects":{"anchor":"Anchor","flash":"Flash Animation","hiddenfield":"Hidden Field","iframe":"IFrame","unknown":"Unknown Object"},"flash":{"access":"Script Access","accessAlways":"Always","accessNever":"Never","accessSameDomain":"Same domain","alignAbsBottom":"Abs Bottom","alignAbsMiddle":"Abs Middle","alignBaseline":"Baseline","alignTextTop":"Text Top","bgcolor":"Background color","chkFull":"Allow Fullscreen","chkLoop":"Loop","chkMenu":"Enable Flash Menu","chkPlay":"Auto Play","flashvars":"Variables for Flash","hSpace":"HSpace","properties":"Flash Properties","propertiesTab":"Properties","quality":"Quality","qualityAutoHigh":"Auto High","qualityAutoLow":"Auto Low","qualityBest":"Best","qualityHigh":"High","qualityLow":"Low","qualityMedium":"Medium","scale":"Scale","scaleAll":"Show all","scaleFit":"Exact Fit","scaleNoBorder":"No Border","title":"Flash Properties","vSpace":"VSpace","validateHSpace":"HSpace must be a number.","validateSrc":"URL must not be empty.","validateVSpace":"VSpace must be a number.","windowMode":"Window mode","windowModeOpaque":"Opaque","windowModeTransparent":"Transparent","windowModeWindow":"Window"},"font":{"fontSize":{"label":"Size","voiceLabel":"Font Size","panelTitle":"Font Size"},"label":"Font","panelTitle":"Font Name","voiceLabel":"Font"},"format":{"label":"Format","panelTitle":"Paragraph Format","tag_address":"Address","tag_div":"Normal (DIV)","tag_h1":"Heading 1","tag_h2":"Heading 2","tag_h3":"Heading 3","tag_h4":"Heading 4","tag_h5":"Heading 5","tag_h6":"Heading 6","tag_p":"Normal","tag_pre":"Formatted"},"forms":{"button":{"title":"Button Properties","text":"Text (Value)","type":"Type","typeBtn":"Button","typeSbm":"Submit","typeRst":"Reset"},"checkboxAndRadio":{"checkboxTitle":"Checkbox Properties","radioTitle":"Radio Button Properties","value":"Value","selected":"Selected","required":"Required"},"form":{"title":"Form Properties","menu":"Form Properties","action":"Action","method":"Method","encoding":"Encoding"},"hidden":{"title":"Hidden Field Properties","name":"Name","value":"Value"},"select":{"title":"Selection Field Properties","selectInfo":"Select Info","opAvail":"Available Options","value":"Value","size":"Size","lines":"lines","chkMulti":"Allow multiple selections","required":"Required","opText":"Text","opValue":"Value","btnAdd":"Add","btnModify":"Modify","btnUp":"Up","btnDown":"Down","btnSetValue":"Set as selected value","btnDelete":"Delete"},"textarea":{"title":"Textarea Properties","cols":"Columns","rows":"Rows"},"textfield":{"title":"Text Field Properties","name":"Name","value":"Value","charWidth":"Character Width","maxChars":"Maximum Characters","required":"Required","type":"Type","typeText":"Text","typePass":"Password","typeEmail":"Email","typeSearch":"Search","typeTel":"Telephone Number","typeUrl":"URL"}},"horizontalrule":{"toolbar":"Insert Horizontal Line"},"iframe":{"border":"Show frame border","noUrl":"Please type the iframe URL","scrolling":"Enable scrollbars","title":"IFrame Properties","toolbar":"IFrame"},"image":{"alt":"Alternative Text","border":"Border","btnUpload":"Send it to the Server","button2Img":"Do you want to transform the selected image button on a simple image?","hSpace":"HSpace","img2Button":"Do you want to transform the selected image on a image button?","infoTab":"Image Info","linkTab":"Link","lockRatio":"Lock Ratio","menu":"Image Properties","resetSize":"Reset Size","title":"Image Properties","titleButton":"Image Button Properties","upload":"Upload","urlMissing":"Image source URL is missing.","vSpace":"VSpace","validateBorder":"Border must be a whole number.","validateHSpace":"HSpace must be a whole number.","validateVSpace":"VSpace must be a whole number."},"indent":{"indent":"Increase Indent","outdent":"Decrease Indent"},"justify":{"block":"Justify","center":"Center","left":"Align Left","right":"Align Right"},"language":{"button":"Set language","remove":"Remove language"},"link":{"acccessKey":"Access Key","advanced":"Advanced","advisoryContentType":"Advisory Content Type","advisoryTitle":"Advisory Title","anchor":{"toolbar":"Anchor","menu":"Edit Anchor","title":"Anchor Properties","name":"Anchor Name","errorName":"Please type the anchor name","remove":"Remove Anchor"},"anchorId":"By Element Id","anchorName":"By Anchor Name","charset":"Linked Resource Charset","cssClasses":"Stylesheet Classes","emailAddress":"E-Mail Address","emailBody":"Message Body","emailSubject":"Message Subject","id":"Id","info":"Link Info","langCode":"Language Code","langDir":"Language Direction","langDirLTR":"Left to Right (LTR)","langDirRTL":"Right to Left (RTL)","menu":"Edit Link","name":"Name","noAnchors":"(No anchors available in the document)","noEmail":"Please type the e-mail address","noUrl":"Please type the link URL","other":"<other>","popupDependent":"Dependent (Netscape)","popupFeatures":"Popup Window Features","popupFullScreen":"Full Screen (IE)","popupLeft":"Left Position","popupLocationBar":"Location Bar","popupMenuBar":"Menu Bar","popupResizable":"Resizable","popupScrollBars":"Scroll Bars","popupStatusBar":"Status Bar","popupToolbar":"Toolbar","popupTop":"Top Position","rel":"Relationship","selectAnchor":"Select an Anchor","styles":"Style","tabIndex":"Tab Index","target":"Target","targetFrame":"<frame>","targetFrameName":"Target Frame Name","targetPopup":"<popup window>","targetPopupName":"Popup Window Name","title":"Link","toAnchor":"Link to anchor in the text","toEmail":"E-mail","toUrl":"URL","toolbar":"Link","type":"Link Type","unlink":"Unlink","upload":"Upload"},"list":{"bulletedlist":"Insert/Remove Bulleted List","numberedlist":"Insert/Remove Numbered List"},"liststyle":{"armenian":"Armenian numbering","bulletedTitle":"Bulleted List Properties","circle":"Circle","decimal":"Decimal (1, 2, 3, etc.)","decimalLeadingZero":"Decimal leading zero (01, 02, 03, etc.)","disc":"Disc","georgian":"Georgian numbering (an, ban, gan, etc.)","lowerAlpha":"Lower Alpha (a, b, c, d, e, etc.)","lowerGreek":"Lower Greek (alpha, beta, gamma, etc.)","lowerRoman":"Lower Roman (i, ii, iii, iv, v, etc.)","none":"None","notset":"<not set>","numberedTitle":"Numbered List Properties","square":"Square","start":"Start","type":"Type","upperAlpha":"Upper Alpha (A, B, C, D, E, etc.)","upperRoman":"Upper Roman (I, II, III, IV, V, etc.)","validateStartNumber":"List start number must be a whole number."},"magicline":{"title":"Insert paragraph here"},"maximize":{"maximize":"Maximize","minimize":"Minimize"},"newpage":{"toolbar":"New Page"},"pagebreak":{"alt":"Page Break","toolbar":"Insert Page Break for Printing"},"pastefromword":{"confirmCleanup":"The text you want to paste seems to be copied from Word. Do you want to clean it before pasting?","error":"It was not possible to clean up the pasted data due to an internal error","title":"Paste from Word","toolbar":"Paste from Word"},"pastetext":{"button":"Paste as plain text","title":"Paste as Plain Text"},"preview":{"preview":"Preview"},"print":{"toolbar":"Print"},"removeformat":{"toolbar":"Remove Format"},"save":{"toolbar":"Save"},"scayt":{"btn_about":"About SCAYT","btn_dictionaries":"Dictionaries","btn_disable":"Disable SCAYT","btn_enable":"Enable SCAYT","btn_langs":"Languages","btn_options":"Options","text_title":"Spell Check As You Type"},"selectall":{"toolbar":"Select All"},"showblocks":{"toolbar":"Show Blocks"},"smiley":{"options":"Smiley Options","title":"Insert a Smiley","toolbar":"Smiley"},"sourcearea":{"toolbar":"Source"},"specialchar":{"options":"Special Character Options","title":"Select Special Character","toolbar":"Insert Special Character"},"stylescombo":{"label":"Styles","panelTitle":"Formatting Styles","panelTitle1":"Block Styles","panelTitle2":"Inline Styles","panelTitle3":"Object Styles"},"table":{"border":"Border size","caption":"Caption","cell":{"menu":"Cell","insertBefore":"Insert Cell Before","insertAfter":"Insert Cell After","deleteCell":"Delete Cells","merge":"Merge Cells","mergeRight":"Merge Right","mergeDown":"Merge Down","splitHorizontal":"Split Cell Horizontally","splitVertical":"Split Cell Vertically","title":"Cell Properties","cellType":"Cell Type","rowSpan":"Rows Span","colSpan":"Columns Span","wordWrap":"Word Wrap","hAlign":"Horizontal Alignment","vAlign":"Vertical Alignment","alignBaseline":"Baseline","bgColor":"Background Color","borderColor":"Border Color","data":"Data","header":"Header","yes":"Yes","no":"No","invalidWidth":"Cell width must be a number.","invalidHeight":"Cell height must be a number.","invalidRowSpan":"Rows span must be a whole number.","invalidColSpan":"Columns span must be a whole number.","chooseColor":"Choose"},"cellPad":"Cell padding","cellSpace":"Cell spacing","column":{"menu":"Column","insertBefore":"Insert Column Before","insertAfter":"Insert Column After","deleteColumn":"Delete Columns"},"columns":"Columns","deleteTable":"Delete Table","headers":"Headers","headersBoth":"Both","headersColumn":"First column","headersNone":"None","headersRow":"First Row","invalidBorder":"Border size must be a number.","invalidCellPadding":"Cell padding must be a positive number.","invalidCellSpacing":"Cell spacing must be a positive number.","invalidCols":"Number of columns must be a number greater than 0.","invalidHeight":"Table height must be a number.","invalidRows":"Number of rows must be a number greater than 0.","invalidWidth":"Table width must be a number.","menu":"Table Properties","row":{"menu":"Row","insertBefore":"Insert Row Before","insertAfter":"Insert Row After","deleteRow":"Delete Rows"},"rows":"Rows","summary":"Summary","title":"Table Properties","toolbar":"Table","widthPc":"percent","widthPx":"pixels","widthUnit":"width unit"},"templates":{"button":"Templates","emptyListMsg":"(No templates defined)","insertOption":"Replace actual contents","options":"Template Options","selectPromptMsg":"Please select the template to open in the editor","title":"Content Templates"},"toolbar":{"toolbarCollapse":"Collapse Toolbar","toolbarExpand":"Expand Toolbar","toolbarGroups":{"document":"Document","clipboard":"Clipboard/Undo","editing":"Editing","forms":"Forms","basicstyles":"Basic Styles","paragraph":"Paragraph","links":"Links","insert":"Insert","styles":"Styles","colors":"Colors","tools":"Tools"},"toolbars":"Editor toolbars"},"undo":{"redo":"Redo","undo":"Undo"},"wsc":{"btnIgnore":"Ignore","btnIgnoreAll":"Ignore All","btnReplace":"Replace","btnReplaceAll":"Replace All","btnUndo":"Undo","changeTo":"Change to","errorLoading":"Error loading application service host: %s.","ieSpellDownload":"Spell checker not installed. Do you want to download it now?","manyChanges":"Spell check complete: %1 words changed","noChanges":"Spell check complete: No words changed","noMispell":"Spell check complete: No misspellings found","noSuggestions":"- No suggestions -","notAvailable":"Sorry, but service is unavailable now.","notInDic":"Not in dictionary","oneChange":"Spell check complete: One word changed","progress":"Spell check in progress...","title":"Spell Checker","toolbar":"Check Spelling"}};
@@ -2,4 +2,4 @@
2
2
  Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
3
3
  For licensing, see LICENSE.md or http://ckeditor.com/license
4
4
  */
5
- CKEDITOR.lang['ru']={"editor":"Визуальный текстовый редактор","editorPanel":"Визуальный редактор текста","common":{"editorHelp":"Нажмите ALT-0 для открытия справки","browseServer":"Выбор на сервере","url":"Ссылка","protocol":"Протокол","upload":"Загрузка файла","uploadSubmit":"Загрузить на сервер","image":"Изображение","flash":"Flash","form":"Форма","checkbox":"Чекбокс","radio":"Радиокнопка","textField":"Текстовое поле","textarea":"Многострочное текстовое поле","hiddenField":"Скрытое поле","button":"Кнопка","select":"Выпадающий список","imageButton":"Кнопка-изображение","notSet":"<не указано>","id":"Идентификатор","name":"Имя","langDir":"Направление текста","langDirLtr":"Слева направо (LTR)","langDirRtl":"Справа налево (RTL)","langCode":"Код языка","longDescr":"Длинное описание ссылки","cssClass":"Класс CSS","advisoryTitle":"Заголовок","cssStyle":"Стиль","ok":"ОК","cancel":"Отмена","close":"Закрыть","preview":"Предпросмотр","resize":"Перетащите для изменения размера","generalTab":"Основное","advancedTab":"Дополнительно","validateNumberFailed":"Это значение не является числом.","confirmNewPage":"Несохранённые изменения будут потеряны! Вы действительно желаете перейти на другую страницу?","confirmCancel":"Некоторые параметры были изменены. Вы уверены, что желаете закрыть без сохранения?","options":"Параметры","target":"Цель","targetNew":"Новое окно (_blank)","targetTop":"Главное окно (_top)","targetSelf":"Текущее окно (_self)","targetParent":"Родительское окно (_parent)","langDirLTR":"Слева направо (LTR)","langDirRTL":"Справа налево (RTL)","styles":"Стиль","cssClasses":"CSS классы","width":"Ширина","height":"Высота","align":"Выравнивание","alignLeft":"По левому краю","alignRight":"По правому краю","alignCenter":"По центру","alignJustify":"По ширине","alignTop":"Поверху","alignMiddle":"Посередине","alignBottom":"Понизу","alignNone":"Нет","invalidValue":"Недопустимое значение.","invalidHeight":"Высота задается числом.","invalidWidth":"Ширина задается числом.","invalidCssLength":"Значение, указанное в поле \"%1\", должно быть положительным целым числом. Допускается указание единиц меры CSS (px, %, in, cm, mm, em, ex, pt или pc).","invalidHtmlLength":"Значение, указанное в поле \"%1\", должно быть положительным целым числом. Допускается указание единиц меры HTML (px или %).","invalidInlineStyle":"Значение, указанное для стиля элемента, должно состоять из одной или нескольких пар данных в формате \"параметр : значение\", разделённых точкой с запятой.","cssLengthTooltip":"Введите значение в пикселях, либо число с корректной единицей меры CSS (px, %, in, cm, mm, em, ex, pt или pc).","unavailable":"%1<span class=\"cke_accessibility\">, недоступно</span>"},"about":{"copy":"Copyright &copy; $1. Все права защищены.","dlgTitle":"О CKEditor","help":"$1 содержит подробную справку по использованию.","moreInfo":"Для получения информации о лицензии, пожалуйста, перейдите на наш сайт:","title":"О CKEditor","userGuide":"Руководство пользователя CKEditor"},"basicstyles":{"bold":"Полужирный","italic":"Курсив","strike":"Зачеркнутый","subscript":"Подстрочный индекс","superscript":"Надстрочный индекс","underline":"Подчеркнутый"},"bidi":{"ltr":"Направление текста слева направо","rtl":"Направление текста справа налево"},"blockquote":{"toolbar":"Цитата"},"clipboard":{"copy":"Копировать","copyError":"Настройки безопасности вашего браузера не разрешают редактору выполнять операции по копированию текста. Пожалуйста, используйте для этого клавиатуру (Ctrl/Cmd+C).","cut":"Вырезать","cutError":"Настройки безопасности вашего браузера не разрешают редактору выполнять операции по вырезке текста. Пожалуйста, используйте для этого клавиатуру (Ctrl/Cmd+X).","paste":"Вставить","pasteArea":"Зона для вставки","pasteMsg":"Пожалуйста, вставьте текст в зону ниже, используя клавиатуру (<strong>Ctrl/Cmd+V</strong>) и нажмите кнопку \"OK\".","securityMsg":"Настройки безопасности вашего браузера не разрешают редактору напрямую обращаться к буферу обмена. Вы должны вставить текст снова в это окно.","title":"Вставить"},"button":{"selectedLabel":"%1 (Выбрано)"},"colorbutton":{"auto":"Автоматически","bgColorTitle":"Цвет фона","colors":{"000":"Чёрный","800000":"Бордовый","8B4513":"Кожано-коричневый","2F4F4F":"Темный синевато-серый","008080":"Сине-зелёный","000080":"Тёмно-синий","4B0082":"Индиго","696969":"Тёмно-серый","B22222":"Кирпичный","A52A2A":"Коричневый","DAA520":"Золотисто-берёзовый","006400":"Темно-зелёный","40E0D0":"Бирюзовый","0000CD":"Умеренно синий","800080":"Пурпурный","808080":"Серый","F00":"Красный","FF8C00":"Темно-оранжевый","FFD700":"Золотистый","008000":"Зелёный","0FF":"Васильковый","00F":"Синий","EE82EE":"Фиолетовый","A9A9A9":"Тускло-серый","FFA07A":"Светло-лососевый","FFA500":"Оранжевый","FFFF00":"Жёлтый","00FF00":"Лайма","AFEEEE":"Бледно-синий","ADD8E6":"Свелто-голубой","DDA0DD":"Сливовый","D3D3D3":"Светло-серый","FFF0F5":"Розово-лавандовый","FAEBD7":"Античный белый","FFFFE0":"Светло-жёлтый","F0FFF0":"Медвяной росы","F0FFFF":"Лазурный","F0F8FF":"Бледно-голубой","E6E6FA":"Лавандовый","FFF":"Белый"},"more":"Ещё цвета...","panelTitle":"Цвета","textColorTitle":"Цвет текста"},"colordialog":{"clear":"Очистить","highlight":"Под курсором","options":"Настройки цвета","selected":"Выбранный цвет","title":"Выберите цвет"},"templates":{"button":"Шаблоны","emptyListMsg":"(не определено ни одного шаблона)","insertOption":"Заменить текущее содержимое","options":"Параметры шаблона","selectPromptMsg":"Пожалуйста, выберите, какой шаблон следует открыть в редакторе","title":"Шаблоны содержимого"},"contextmenu":{"options":"Параметры контекстного меню"},"div":{"IdInputLabel":"Идентификатор","advisoryTitleInputLabel":"Заголовок","cssClassInputLabel":"Классы CSS","edit":"Редактировать контейнер","inlineStyleInputLabel":"Стиль элемента","langDirLTRLabel":"Слева направо (LTR)","langDirLabel":"Направление текста","langDirRTLLabel":"Справа налево (RTL)","languageCodeInputLabel":"Код языка","remove":"Удалить контейнер","styleSelectLabel":"Стиль","title":"Создать Div-контейнер","toolbar":"Создать Div-контейнер"},"toolbar":{"toolbarCollapse":"Свернуть панель инструментов","toolbarExpand":"Развернуть панель инструментов","toolbarGroups":{"document":"Документ","clipboard":"Буфер обмена / Отмена действий","editing":"Корректировка","forms":"Формы","basicstyles":"Простые стили","paragraph":"Абзац","links":"Ссылки","insert":"Вставка","styles":"Стили","colors":"Цвета","tools":"Инструменты"},"toolbars":"Панели инструментов редактора"},"elementspath":{"eleLabel":"Путь элементов","eleTitle":"Элемент %1"},"find":{"find":"Найти","findOptions":"Опции поиска","findWhat":"Найти:","matchCase":"Учитывать регистр","matchCyclic":"По всему тексту","matchWord":"Только слово целиком","notFoundMsg":"Искомый текст не найден.","replace":"Заменить","replaceAll":"Заменить всё","replaceSuccessMsg":"Успешно заменено %1 раз(а).","replaceWith":"Заменить на:","title":"Поиск и замена"},"fakeobjects":{"anchor":"Якорь","flash":"Flash анимация","hiddenfield":"Скрытое поле","iframe":"iFrame","unknown":"Неизвестный объект"},"flash":{"access":"Доступ к скриптам","accessAlways":"Всегда","accessNever":"Никогда","accessSameDomain":"В том же домене","alignAbsBottom":"По низу текста","alignAbsMiddle":"По середине текста","alignBaseline":"По базовой линии","alignTextTop":"По верху текста","bgcolor":"Цвет фона","chkFull":"Разрешить полноэкранный режим","chkLoop":"Повторять","chkMenu":"Включить меню Flash","chkPlay":"Автоматическое воспроизведение","flashvars":"Переменные для Flash","hSpace":"Гориз. отступ","properties":"Свойства Flash","propertiesTab":"Свойства","quality":"Качество","qualityAutoHigh":"Запуск на высоком","qualityAutoLow":"Запуск на низком","qualityBest":"Лучшее","qualityHigh":"Высокое","qualityLow":"Низкое","qualityMedium":"Среднее","scale":"Масштабировать","scaleAll":"Пропорционально","scaleFit":"Заполнять","scaleNoBorder":"Заходить за границы","title":"Свойства Flash","vSpace":"Вертик. отступ","validateHSpace":"Горизонтальный отступ задается числом.","validateSrc":"Вы должны ввести ссылку","validateVSpace":"Вертикальный отступ задается числом.","windowMode":"Взаимодействие с окном","windowModeOpaque":"Непрозрачный","windowModeTransparent":"Прозрачный","windowModeWindow":"Обычный"},"font":{"fontSize":{"label":"Размер","voiceLabel":"Размер шрифта","panelTitle":"Размер шрифта"},"label":"Шрифт","panelTitle":"Шрифт","voiceLabel":"Шрифт"},"forms":{"button":{"title":"Свойства кнопки","text":"Текст (Значение)","type":"Тип","typeBtn":"Кнопка","typeSbm":"Отправка","typeRst":"Сброс"},"checkboxAndRadio":{"checkboxTitle":"Свойства флаговой кнопки","radioTitle":"Свойства кнопки выбора","value":"Значение","selected":"Выбрано","required":"Обязательное поле"},"form":{"title":"Свойства формы","menu":"Свойства формы","action":"Действие","method":"Метод","encoding":"Кодировка"},"hidden":{"title":"Свойства скрытого поля","name":"Имя","value":"Значение"},"select":{"title":"Свойства списка выбора","selectInfo":"Информация о списке выбора","opAvail":"Доступные варианты","value":"Значение","size":"Размер","lines":"строк(и)","chkMulti":"Разрешить выбор нескольких вариантов","required":"Обязательное поле","opText":"Текст","opValue":"Значение","btnAdd":"Добавить","btnModify":"Изменить","btnUp":"Поднять","btnDown":"Опустить","btnSetValue":"Пометить как выбранное","btnDelete":"Удалить"},"textarea":{"title":"Свойства многострочного текстового поля","cols":"Колонок","rows":"Строк"},"textfield":{"title":"Свойства текстового поля","name":"Имя","value":"Значение","charWidth":"Ширина поля (в символах)","maxChars":"Макс. количество символов","required":"Обязательное поле","type":"Тип содержимого","typeText":"Текст","typePass":"Пароль","typeEmail":"Email","typeSearch":"Поиск","typeTel":"Номер телефона","typeUrl":"Ссылка"}},"format":{"label":"Форматирование","panelTitle":"Форматирование","tag_address":"Адрес","tag_div":"Обычное (div)","tag_h1":"Заголовок 1","tag_h2":"Заголовок 2","tag_h3":"Заголовок 3","tag_h4":"Заголовок 4","tag_h5":"Заголовок 5","tag_h6":"Заголовок 6","tag_p":"Обычное","tag_pre":"Моноширинное"},"horizontalrule":{"toolbar":"Вставить горизонтальную линию"},"iframe":{"border":"Показать границы фрейма","noUrl":"Пожалуйста, введите ссылку фрейма","scrolling":"Отображать полосы прокрутки","title":"Свойства iFrame","toolbar":"iFrame"},"image":{"alt":"Альтернативный текст","border":"Граница","btnUpload":"Загрузить на сервер","button2Img":"Вы желаете преобразовать это изображение-кнопку в обычное изображение?","hSpace":"Гориз. отступ","img2Button":"Вы желаете преобразовать это обычное изображение в изображение-кнопку?","infoTab":"Данные об изображении","linkTab":"Ссылка","lockRatio":"Сохранять пропорции","menu":"Свойства изображения","resetSize":"Вернуть обычные размеры","title":"Свойства изображения","titleButton":"Свойства изображения-кнопки","upload":"Загрузить","urlMissing":"Не указана ссылка на изображение.","vSpace":"Вертик. отступ","validateBorder":"Размер границ должен быть задан числом.","validateHSpace":"Горизонтальный отступ должен быть задан числом.","validateVSpace":"Вертикальный отступ должен быть задан числом."},"indent":{"indent":"Увеличить отступ","outdent":"Уменьшить отступ"},"smiley":{"options":"Выбор смайла","title":"Вставить смайл","toolbar":"Смайлы"},"justify":{"block":"По ширине","center":"По центру","left":"По левому краю","right":"По правому краю"},"language":{"button":"Установка языка","remove":"Удалить язык"},"link":{"acccessKey":"Клавиша доступа","advanced":"Дополнительно","advisoryContentType":"Тип содержимого","advisoryTitle":"Заголовок","anchor":{"toolbar":"Вставить / редактировать якорь","menu":"Изменить якорь","title":"Свойства якоря","name":"Имя якоря","errorName":"Пожалуйста, введите имя якоря","remove":"Удалить якорь"},"anchorId":"По идентификатору","anchorName":"По имени","charset":"Кодировка ресурса","cssClasses":"Классы CSS","emailAddress":"Email адрес","emailBody":"Текст сообщения","emailSubject":"Тема сообщения","id":"Идентификатор","info":"Информация о ссылке","langCode":"Код языка","langDir":"Направление текста","langDirLTR":"Слева направо (LTR)","langDirRTL":"Справа налево (RTL)","menu":"Редактировать ссылку","name":"Имя","noAnchors":"(В документе нет ни одного якоря)","noEmail":"Пожалуйста, введите email адрес","noUrl":"Пожалуйста, введите ссылку","other":"<другой>","popupDependent":"Зависимое (Netscape)","popupFeatures":"Параметры всплывающего окна","popupFullScreen":"Полноэкранное (IE)","popupLeft":"Отступ слева","popupLocationBar":"Панель адреса","popupMenuBar":"Панель меню","popupResizable":"Изменяемый размер","popupScrollBars":"Полосы прокрутки","popupStatusBar":"Строка состояния","popupToolbar":"Панель инструментов","popupTop":"Отступ сверху","rel":"Отношение","selectAnchor":"Выберите якорь","styles":"Стиль","tabIndex":"Последовательность перехода","target":"Цель","targetFrame":"<фрейм>","targetFrameName":"Имя целевого фрейма","targetPopup":"<всплывающее окно>","targetPopupName":"Имя всплывающего окна","title":"Ссылка","toAnchor":"Ссылка на якорь в тексте","toEmail":"Email","toUrl":"Ссылка","toolbar":"Вставить/Редактировать ссылку","type":"Тип ссылки","unlink":"Убрать ссылку","upload":"Загрузка"},"list":{"bulletedlist":"Вставить / удалить маркированный список","numberedlist":"Вставить / удалить нумерованный список"},"liststyle":{"armenian":"Армянская нумерация","bulletedTitle":"Свойства маркированного списка","circle":"Круг","decimal":"Десятичные (1, 2, 3, и т.д.)","decimalLeadingZero":"Десятичные с ведущим нулём (01, 02, 03, и т.д.)","disc":"Окружность","georgian":"Грузинская нумерация (ани, бани, гани, и т.д.)","lowerAlpha":"Строчные латинские (a, b, c, d, e, и т.д.)","lowerGreek":"Строчные греческие (альфа, бета, гамма, и т.д.)","lowerRoman":"Строчные римские (i, ii, iii, iv, v, и т.д.)","none":"Нет","notset":"<не указано>","numberedTitle":"Свойства нумерованного списка","square":"Квадрат","start":"Начиная с","type":"Тип","upperAlpha":"Заглавные латинские (A, B, C, D, E, и т.д.)","upperRoman":"Заглавные римские (I, II, III, IV, V, и т.д.)","validateStartNumber":"Первый номер списка должен быть задан обычным целым числом."},"magicline":{"title":"Вставить здесь параграф"},"maximize":{"maximize":"Развернуть","minimize":"Свернуть"},"newpage":{"toolbar":"Новая страница"},"pagebreak":{"alt":"Разрыв страницы","toolbar":"Вставить разрыв страницы для печати"},"pastetext":{"button":"Вставить только текст","title":"Вставить только текст"},"pastefromword":{"confirmCleanup":"Текст, который вы желаете вставить, по всей видимости, был скопирован из Word. Следует ли очистить его перед вставкой?","error":"Невозможно очистить вставленные данные из-за внутренней ошибки","title":"Вставить из Word","toolbar":"Вставить из Word"},"preview":{"preview":"Предварительный просмотр"},"print":{"toolbar":"Печать"},"removeformat":{"toolbar":"Убрать форматирование"},"save":{"toolbar":"Сохранить"},"selectall":{"toolbar":"Выделить все"},"showblocks":{"toolbar":"Отображать блоки"},"sourcearea":{"toolbar":"Источник"},"specialchar":{"options":"Выбор специального символа","title":"Выберите специальный символ","toolbar":"Вставить специальный символ"},"scayt":{"btn_about":"О SCAYT","btn_dictionaries":"Словари","btn_disable":"Отключить SCAYT","btn_enable":"Включить SCAYT","btn_langs":"Языки","btn_options":"Настройки","text_title":"Проверка орфографии по мере ввода (SCAYT)"},"stylescombo":{"label":"Стили","panelTitle":"Стили форматирования","panelTitle1":"Стили блока","panelTitle2":"Стили элемента","panelTitle3":"Стили объекта"},"table":{"border":"Размер границ","caption":"Заголовок","cell":{"menu":"Ячейка","insertBefore":"Вставить ячейку слева","insertAfter":"Вставить ячейку справа","deleteCell":"Удалить ячейки","merge":"Объединить ячейки","mergeRight":"Объединить с правой","mergeDown":"Объединить с нижней","splitHorizontal":"Разделить ячейку по горизонтали","splitVertical":"Разделить ячейку по вертикали","title":"Свойства ячейки","cellType":"Тип ячейки","rowSpan":"Объединяет строк","colSpan":"Объединяет колонок","wordWrap":"Перенос по словам","hAlign":"Горизонтальное выравнивание","vAlign":"Вертикальное выравнивание","alignBaseline":"По базовой линии","bgColor":"Цвет фона","borderColor":"Цвет границ","data":"Данные","header":"Заголовок","yes":"Да","no":"Нет","invalidWidth":"Ширина ячейки должна быть числом.","invalidHeight":"Высота ячейки должна быть числом.","invalidRowSpan":"Количество объединяемых строк должно быть задано числом.","invalidColSpan":"Количество объединяемых колонок должно быть задано числом.","chooseColor":"Выберите"},"cellPad":"Внутренний отступ ячеек","cellSpace":"Внешний отступ ячеек","column":{"menu":"Колонка","insertBefore":"Вставить колонку слева","insertAfter":"Вставить колонку справа","deleteColumn":"Удалить колонки"},"columns":"Колонки","deleteTable":"Удалить таблицу","headers":"Заголовки","headersBoth":"Сверху и слева","headersColumn":"Левая колонка","headersNone":"Без заголовков","headersRow":"Верхняя строка","invalidBorder":"Размер границ должен быть числом.","invalidCellPadding":"Внутренний отступ ячеек (cellpadding) должен быть числом.","invalidCellSpacing":"Внешний отступ ячеек (cellspacing) должен быть числом.","invalidCols":"Количество столбцов должно быть больше 0.","invalidHeight":"Высота таблицы должна быть числом.","invalidRows":"Количество строк должно быть больше 0.","invalidWidth":"Ширина таблицы должна быть числом.","menu":"Свойства таблицы","row":{"menu":"Строка","insertBefore":"Вставить строку сверху","insertAfter":"Вставить строку снизу","deleteRow":"Удалить строки"},"rows":"Строки","summary":"Итоги","title":"Свойства таблицы","toolbar":"Таблица","widthPc":"процентов","widthPx":"пикселей","widthUnit":"единица измерения"},"undo":{"redo":"Повторить","undo":"Отменить"},"wsc":{"btnIgnore":"Пропустить","btnIgnoreAll":"Пропустить всё","btnReplace":"Заменить","btnReplaceAll":"Заменить всё","btnUndo":"Отменить","changeTo":"Изменить на","errorLoading":"Произошла ошибка при подключении к серверу проверки орфографии: %s.","ieSpellDownload":"Модуль проверки орфографии не установлен. Хотите скачать его?","manyChanges":"Проверка орфографии завершена. Изменено слов: %1","noChanges":"Проверка орфографии завершена. Не изменено ни одного слова","noMispell":"Проверка орфографии завершена. Ошибок не найдено","noSuggestions":"- Варианты отсутствуют -","notAvailable":"Извините, но в данный момент сервис недоступен.","notInDic":"Отсутствует в словаре","oneChange":"Проверка орфографии завершена. Изменено одно слово","progress":"Орфография проверяется...","title":"Проверка орфографии","toolbar":"Проверить орфографию"}};
5
+ CKEDITOR.lang['ru']={"editor":"Визуальный текстовый редактор","editorPanel":"Визуальный редактор текста","common":{"editorHelp":"Нажмите ALT-0 для открытия справки","browseServer":"Выбор на сервере","url":"Ссылка","protocol":"Протокол","upload":"Загрузка файла","uploadSubmit":"Загрузить на сервер","image":"Изображение","flash":"Flash","form":"Форма","checkbox":"Чекбокс","radio":"Радиокнопка","textField":"Текстовое поле","textarea":"Многострочное текстовое поле","hiddenField":"Скрытое поле","button":"Кнопка","select":"Выпадающий список","imageButton":"Кнопка-изображение","notSet":"<не указано>","id":"Идентификатор","name":"Имя","langDir":"Направление текста","langDirLtr":"Слева направо (LTR)","langDirRtl":"Справа налево (RTL)","langCode":"Код языка","longDescr":"Длинное описание ссылки","cssClass":"Класс CSS","advisoryTitle":"Заголовок","cssStyle":"Стиль","ok":"ОК","cancel":"Отмена","close":"Закрыть","preview":"Предпросмотр","resize":"Перетащите для изменения размера","generalTab":"Основное","advancedTab":"Дополнительно","validateNumberFailed":"Это значение не является числом.","confirmNewPage":"Несохранённые изменения будут потеряны! Вы действительно желаете перейти на другую страницу?","confirmCancel":"Некоторые параметры были изменены. Вы уверены, что желаете закрыть без сохранения?","options":"Параметры","target":"Цель","targetNew":"Новое окно (_blank)","targetTop":"Главное окно (_top)","targetSelf":"Текущее окно (_self)","targetParent":"Родительское окно (_parent)","langDirLTR":"Слева направо (LTR)","langDirRTL":"Справа налево (RTL)","styles":"Стиль","cssClasses":"CSS классы","width":"Ширина","height":"Высота","align":"Выравнивание","alignLeft":"По левому краю","alignRight":"По правому краю","alignCenter":"По центру","alignJustify":"По ширине","alignTop":"Поверху","alignMiddle":"Посередине","alignBottom":"Понизу","alignNone":"Нет","invalidValue":"Недопустимое значение.","invalidHeight":"Высота задается числом.","invalidWidth":"Ширина задается числом.","invalidCssLength":"Значение, указанное в поле \"%1\", должно быть положительным целым числом. Допускается указание единиц меры CSS (px, %, in, cm, mm, em, ex, pt или pc).","invalidHtmlLength":"Значение, указанное в поле \"%1\", должно быть положительным целым числом. Допускается указание единиц меры HTML (px или %).","invalidInlineStyle":"Значение, указанное для стиля элемента, должно состоять из одной или нескольких пар данных в формате \"параметр : значение\", разделённых точкой с запятой.","cssLengthTooltip":"Введите значение в пикселях, либо число с корректной единицей меры CSS (px, %, in, cm, mm, em, ex, pt или pc).","unavailable":"%1<span class=\"cke_accessibility\">, недоступно</span>"},"about":{"copy":"Copyright &copy; $1. Все права защищены.","dlgTitle":"О CKEditor","help":"$1 содержит подробную справку по использованию.","moreInfo":"Для получения информации о лицензии, пожалуйста, перейдите на наш сайт:","title":"О CKEditor","userGuide":"Руководство пользователя CKEditor"},"basicstyles":{"bold":"Полужирный","italic":"Курсив","strike":"Зачеркнутый","subscript":"Подстрочный индекс","superscript":"Надстрочный индекс","underline":"Подчеркнутый"},"bidi":{"ltr":"Направление текста слева направо","rtl":"Направление текста справа налево"},"blockquote":{"toolbar":"Цитата"},"clipboard":{"copy":"Копировать","copyError":"Настройки безопасности вашего браузера не разрешают редактору выполнять операции по копированию текста. Пожалуйста, используйте для этого клавиатуру (Ctrl/Cmd+C).","cut":"Вырезать","cutError":"Настройки безопасности вашего браузера не разрешают редактору выполнять операции по вырезке текста. Пожалуйста, используйте для этого клавиатуру (Ctrl/Cmd+X).","paste":"Вставить","pasteArea":"Зона для вставки","pasteMsg":"Пожалуйста, вставьте текст в зону ниже, используя клавиатуру (<strong>Ctrl/Cmd+V</strong>) и нажмите кнопку \"OK\".","securityMsg":"Настройки безопасности вашего браузера не разрешают редактору напрямую обращаться к буферу обмена. Вы должны вставить текст снова в это окно.","title":"Вставить"},"button":{"selectedLabel":"%1 (Выбрано)"},"colorbutton":{"auto":"Автоматически","bgColorTitle":"Цвет фона","colors":{"000":"Чёрный","800000":"Бордовый","8B4513":"Кожано-коричневый","2F4F4F":"Темный синевато-серый","008080":"Сине-зелёный","000080":"Тёмно-синий","4B0082":"Индиго","696969":"Тёмно-серый","B22222":"Кирпичный","A52A2A":"Коричневый","DAA520":"Золотисто-берёзовый","006400":"Темно-зелёный","40E0D0":"Бирюзовый","0000CD":"Умеренно синий","800080":"Пурпурный","808080":"Серый","F00":"Красный","FF8C00":"Темно-оранжевый","FFD700":"Золотистый","008000":"Зелёный","0FF":"Васильковый","00F":"Синий","EE82EE":"Фиолетовый","A9A9A9":"Тускло-серый","FFA07A":"Светло-лососевый","FFA500":"Оранжевый","FFFF00":"Жёлтый","00FF00":"Лайма","AFEEEE":"Бледно-синий","ADD8E6":"Свелто-голубой","DDA0DD":"Сливовый","D3D3D3":"Светло-серый","FFF0F5":"Розово-лавандовый","FAEBD7":"Античный белый","FFFFE0":"Светло-жёлтый","F0FFF0":"Медвяной росы","F0FFFF":"Лазурный","F0F8FF":"Бледно-голубой","E6E6FA":"Лавандовый","FFF":"Белый"},"more":"Ещё цвета...","panelTitle":"Цвета","textColorTitle":"Цвет текста"},"colordialog":{"clear":"Очистить","highlight":"Под курсором","options":"Настройки цвета","selected":"Выбранный цвет","title":"Выберите цвет"},"contextmenu":{"options":"Параметры контекстного меню"},"div":{"IdInputLabel":"Идентификатор","advisoryTitleInputLabel":"Заголовок","cssClassInputLabel":"Классы CSS","edit":"Редактировать контейнер","inlineStyleInputLabel":"Стиль элемента","langDirLTRLabel":"Слева направо (LTR)","langDirLabel":"Направление текста","langDirRTLLabel":"Справа налево (RTL)","languageCodeInputLabel":"Код языка","remove":"Удалить контейнер","styleSelectLabel":"Стиль","title":"Создать Div-контейнер","toolbar":"Создать Div-контейнер"},"elementspath":{"eleLabel":"Путь элементов","eleTitle":"Элемент %1"},"find":{"find":"Найти","findOptions":"Опции поиска","findWhat":"Найти:","matchCase":"Учитывать регистр","matchCyclic":"По всему тексту","matchWord":"Только слово целиком","notFoundMsg":"Искомый текст не найден.","replace":"Заменить","replaceAll":"Заменить всё","replaceSuccessMsg":"Успешно заменено %1 раз(а).","replaceWith":"Заменить на:","title":"Поиск и замена"},"fakeobjects":{"anchor":"Якорь","flash":"Flash анимация","hiddenfield":"Скрытое поле","iframe":"iFrame","unknown":"Неизвестный объект"},"flash":{"access":"Доступ к скриптам","accessAlways":"Всегда","accessNever":"Никогда","accessSameDomain":"В том же домене","alignAbsBottom":"По низу текста","alignAbsMiddle":"По середине текста","alignBaseline":"По базовой линии","alignTextTop":"По верху текста","bgcolor":"Цвет фона","chkFull":"Разрешить полноэкранный режим","chkLoop":"Повторять","chkMenu":"Включить меню Flash","chkPlay":"Автоматическое воспроизведение","flashvars":"Переменные для Flash","hSpace":"Гориз. отступ","properties":"Свойства Flash","propertiesTab":"Свойства","quality":"Качество","qualityAutoHigh":"Запуск на высоком","qualityAutoLow":"Запуск на низком","qualityBest":"Лучшее","qualityHigh":"Высокое","qualityLow":"Низкое","qualityMedium":"Среднее","scale":"Масштабировать","scaleAll":"Пропорционально","scaleFit":"Заполнять","scaleNoBorder":"Заходить за границы","title":"Свойства Flash","vSpace":"Вертик. отступ","validateHSpace":"Горизонтальный отступ задается числом.","validateSrc":"Вы должны ввести ссылку","validateVSpace":"Вертикальный отступ задается числом.","windowMode":"Взаимодействие с окном","windowModeOpaque":"Непрозрачный","windowModeTransparent":"Прозрачный","windowModeWindow":"Обычный"},"font":{"fontSize":{"label":"Размер","voiceLabel":"Размер шрифта","panelTitle":"Размер шрифта"},"label":"Шрифт","panelTitle":"Шрифт","voiceLabel":"Шрифт"},"format":{"label":"Форматирование","panelTitle":"Форматирование","tag_address":"Адрес","tag_div":"Обычное (div)","tag_h1":"Заголовок 1","tag_h2":"Заголовок 2","tag_h3":"Заголовок 3","tag_h4":"Заголовок 4","tag_h5":"Заголовок 5","tag_h6":"Заголовок 6","tag_p":"Обычное","tag_pre":"Моноширинное"},"forms":{"button":{"title":"Свойства кнопки","text":"Текст (Значение)","type":"Тип","typeBtn":"Кнопка","typeSbm":"Отправка","typeRst":"Сброс"},"checkboxAndRadio":{"checkboxTitle":"Свойства флаговой кнопки","radioTitle":"Свойства кнопки выбора","value":"Значение","selected":"Выбрано","required":"Обязательное поле"},"form":{"title":"Свойства формы","menu":"Свойства формы","action":"Действие","method":"Метод","encoding":"Кодировка"},"hidden":{"title":"Свойства скрытого поля","name":"Имя","value":"Значение"},"select":{"title":"Свойства списка выбора","selectInfo":"Информация о списке выбора","opAvail":"Доступные варианты","value":"Значение","size":"Размер","lines":"строк(и)","chkMulti":"Разрешить выбор нескольких вариантов","required":"Обязательное поле","opText":"Текст","opValue":"Значение","btnAdd":"Добавить","btnModify":"Изменить","btnUp":"Поднять","btnDown":"Опустить","btnSetValue":"Пометить как выбранное","btnDelete":"Удалить"},"textarea":{"title":"Свойства многострочного текстового поля","cols":"Колонок","rows":"Строк"},"textfield":{"title":"Свойства текстового поля","name":"Имя","value":"Значение","charWidth":"Ширина поля (в символах)","maxChars":"Макс. количество символов","required":"Обязательное поле","type":"Тип содержимого","typeText":"Текст","typePass":"Пароль","typeEmail":"Email","typeSearch":"Поиск","typeTel":"Номер телефона","typeUrl":"Ссылка"}},"horizontalrule":{"toolbar":"Вставить горизонтальную линию"},"iframe":{"border":"Показать границы фрейма","noUrl":"Пожалуйста, введите ссылку фрейма","scrolling":"Отображать полосы прокрутки","title":"Свойства iFrame","toolbar":"iFrame"},"image":{"alt":"Альтернативный текст","border":"Граница","btnUpload":"Загрузить на сервер","button2Img":"Вы желаете преобразовать это изображение-кнопку в обычное изображение?","hSpace":"Гориз. отступ","img2Button":"Вы желаете преобразовать это обычное изображение в изображение-кнопку?","infoTab":"Данные об изображении","linkTab":"Ссылка","lockRatio":"Сохранять пропорции","menu":"Свойства изображения","resetSize":"Вернуть обычные размеры","title":"Свойства изображения","titleButton":"Свойства изображения-кнопки","upload":"Загрузить","urlMissing":"Не указана ссылка на изображение.","vSpace":"Вертик. отступ","validateBorder":"Размер границ должен быть задан числом.","validateHSpace":"Горизонтальный отступ должен быть задан числом.","validateVSpace":"Вертикальный отступ должен быть задан числом."},"indent":{"indent":"Увеличить отступ","outdent":"Уменьшить отступ"},"justify":{"block":"По ширине","center":"По центру","left":"По левому краю","right":"По правому краю"},"language":{"button":"Установка языка","remove":"Удалить язык"},"link":{"acccessKey":"Клавиша доступа","advanced":"Дополнительно","advisoryContentType":"Тип содержимого","advisoryTitle":"Заголовок","anchor":{"toolbar":"Вставить / редактировать якорь","menu":"Изменить якорь","title":"Свойства якоря","name":"Имя якоря","errorName":"Пожалуйста, введите имя якоря","remove":"Удалить якорь"},"anchorId":"По идентификатору","anchorName":"По имени","charset":"Кодировка ресурса","cssClasses":"Классы CSS","emailAddress":"Email адрес","emailBody":"Текст сообщения","emailSubject":"Тема сообщения","id":"Идентификатор","info":"Информация о ссылке","langCode":"Код языка","langDir":"Направление текста","langDirLTR":"Слева направо (LTR)","langDirRTL":"Справа налево (RTL)","menu":"Редактировать ссылку","name":"Имя","noAnchors":"(В документе нет ни одного якоря)","noEmail":"Пожалуйста, введите email адрес","noUrl":"Пожалуйста, введите ссылку","other":"<другой>","popupDependent":"Зависимое (Netscape)","popupFeatures":"Параметры всплывающего окна","popupFullScreen":"Полноэкранное (IE)","popupLeft":"Отступ слева","popupLocationBar":"Панель адреса","popupMenuBar":"Панель меню","popupResizable":"Изменяемый размер","popupScrollBars":"Полосы прокрутки","popupStatusBar":"Строка состояния","popupToolbar":"Панель инструментов","popupTop":"Отступ сверху","rel":"Отношение","selectAnchor":"Выберите якорь","styles":"Стиль","tabIndex":"Последовательность перехода","target":"Цель","targetFrame":"<фрейм>","targetFrameName":"Имя целевого фрейма","targetPopup":"<всплывающее окно>","targetPopupName":"Имя всплывающего окна","title":"Ссылка","toAnchor":"Ссылка на якорь в тексте","toEmail":"Email","toUrl":"Ссылка","toolbar":"Вставить/Редактировать ссылку","type":"Тип ссылки","unlink":"Убрать ссылку","upload":"Загрузка"},"list":{"bulletedlist":"Вставить / удалить маркированный список","numberedlist":"Вставить / удалить нумерованный список"},"liststyle":{"armenian":"Армянская нумерация","bulletedTitle":"Свойства маркированного списка","circle":"Круг","decimal":"Десятичные (1, 2, 3, и т.д.)","decimalLeadingZero":"Десятичные с ведущим нулём (01, 02, 03, и т.д.)","disc":"Окружность","georgian":"Грузинская нумерация (ани, бани, гани, и т.д.)","lowerAlpha":"Строчные латинские (a, b, c, d, e, и т.д.)","lowerGreek":"Строчные греческие (альфа, бета, гамма, и т.д.)","lowerRoman":"Строчные римские (i, ii, iii, iv, v, и т.д.)","none":"Нет","notset":"<не указано>","numberedTitle":"Свойства нумерованного списка","square":"Квадрат","start":"Начиная с","type":"Тип","upperAlpha":"Заглавные латинские (A, B, C, D, E, и т.д.)","upperRoman":"Заглавные римские (I, II, III, IV, V, и т.д.)","validateStartNumber":"Первый номер списка должен быть задан обычным целым числом."},"magicline":{"title":"Вставить здесь параграф"},"maximize":{"maximize":"Развернуть","minimize":"Свернуть"},"newpage":{"toolbar":"Новая страница"},"pagebreak":{"alt":"Разрыв страницы","toolbar":"Вставить разрыв страницы для печати"},"pastefromword":{"confirmCleanup":"Текст, который вы желаете вставить, по всей видимости, был скопирован из Word. Следует ли очистить его перед вставкой?","error":"Невозможно очистить вставленные данные из-за внутренней ошибки","title":"Вставить из Word","toolbar":"Вставить из Word"},"pastetext":{"button":"Вставить только текст","title":"Вставить только текст"},"preview":{"preview":"Предварительный просмотр"},"print":{"toolbar":"Печать"},"removeformat":{"toolbar":"Убрать форматирование"},"save":{"toolbar":"Сохранить"},"scayt":{"btn_about":"О SCAYT","btn_dictionaries":"Словари","btn_disable":"Отключить SCAYT","btn_enable":"Включить SCAYT","btn_langs":"Языки","btn_options":"Настройки","text_title":"Проверка орфографии по мере ввода (SCAYT)"},"selectall":{"toolbar":"Выделить все"},"showblocks":{"toolbar":"Отображать блоки"},"smiley":{"options":"Выбор смайла","title":"Вставить смайл","toolbar":"Смайлы"},"sourcearea":{"toolbar":"Источник"},"specialchar":{"options":"Выбор специального символа","title":"Выберите специальный символ","toolbar":"Вставить специальный символ"},"stylescombo":{"label":"Стили","panelTitle":"Стили форматирования","panelTitle1":"Стили блока","panelTitle2":"Стили элемента","panelTitle3":"Стили объекта"},"table":{"border":"Размер границ","caption":"Заголовок","cell":{"menu":"Ячейка","insertBefore":"Вставить ячейку слева","insertAfter":"Вставить ячейку справа","deleteCell":"Удалить ячейки","merge":"Объединить ячейки","mergeRight":"Объединить с правой","mergeDown":"Объединить с нижней","splitHorizontal":"Разделить ячейку по горизонтали","splitVertical":"Разделить ячейку по вертикали","title":"Свойства ячейки","cellType":"Тип ячейки","rowSpan":"Объединяет строк","colSpan":"Объединяет колонок","wordWrap":"Перенос по словам","hAlign":"Горизонтальное выравнивание","vAlign":"Вертикальное выравнивание","alignBaseline":"По базовой линии","bgColor":"Цвет фона","borderColor":"Цвет границ","data":"Данные","header":"Заголовок","yes":"Да","no":"Нет","invalidWidth":"Ширина ячейки должна быть числом.","invalidHeight":"Высота ячейки должна быть числом.","invalidRowSpan":"Количество объединяемых строк должно быть задано числом.","invalidColSpan":"Количество объединяемых колонок должно быть задано числом.","chooseColor":"Выберите"},"cellPad":"Внутренний отступ ячеек","cellSpace":"Внешний отступ ячеек","column":{"menu":"Колонка","insertBefore":"Вставить колонку слева","insertAfter":"Вставить колонку справа","deleteColumn":"Удалить колонки"},"columns":"Колонки","deleteTable":"Удалить таблицу","headers":"Заголовки","headersBoth":"Сверху и слева","headersColumn":"Левая колонка","headersNone":"Без заголовков","headersRow":"Верхняя строка","invalidBorder":"Размер границ должен быть числом.","invalidCellPadding":"Внутренний отступ ячеек (cellpadding) должен быть числом.","invalidCellSpacing":"Внешний отступ ячеек (cellspacing) должен быть числом.","invalidCols":"Количество столбцов должно быть больше 0.","invalidHeight":"Высота таблицы должна быть числом.","invalidRows":"Количество строк должно быть больше 0.","invalidWidth":"Ширина таблицы должна быть числом.","menu":"Свойства таблицы","row":{"menu":"Строка","insertBefore":"Вставить строку сверху","insertAfter":"Вставить строку снизу","deleteRow":"Удалить строки"},"rows":"Строки","summary":"Итоги","title":"Свойства таблицы","toolbar":"Таблица","widthPc":"процентов","widthPx":"пикселей","widthUnit":"единица измерения"},"templates":{"button":"Шаблоны","emptyListMsg":"(не определено ни одного шаблона)","insertOption":"Заменить текущее содержимое","options":"Параметры шаблона","selectPromptMsg":"Пожалуйста, выберите, какой шаблон следует открыть в редакторе","title":"Шаблоны содержимого"},"toolbar":{"toolbarCollapse":"Свернуть панель инструментов","toolbarExpand":"Развернуть панель инструментов","toolbarGroups":{"document":"Документ","clipboard":"Буфер обмена / Отмена действий","editing":"Корректировка","forms":"Формы","basicstyles":"Простые стили","paragraph":"Абзац","links":"Ссылки","insert":"Вставка","styles":"Стили","colors":"Цвета","tools":"Инструменты"},"toolbars":"Панели инструментов редактора"},"undo":{"redo":"Повторить","undo":"Отменить"},"wsc":{"btnIgnore":"Пропустить","btnIgnoreAll":"Пропустить всё","btnReplace":"Заменить","btnReplaceAll":"Заменить всё","btnUndo":"Отменить","changeTo":"Изменить на","errorLoading":"Произошла ошибка при подключении к серверу проверки орфографии: %s.","ieSpellDownload":"Модуль проверки орфографии не установлен. Хотите скачать его?","manyChanges":"Проверка орфографии завершена. Изменено слов: %1","noChanges":"Проверка орфографии завершена. Не изменено ни одного слова","noMispell":"Проверка орфографии завершена. Ошибок не найдено","noSuggestions":"- Варианты отсутствуют -","notAvailable":"Извините, но в данный момент сервис недоступен.","notInDic":"Отсутствует в словаре","oneChange":"Проверка орфографии завершена. Изменено одно слово","progress":"Орфография проверяется...","title":"Проверка орфографии","toolbar":"Проверить орфографию"}};
@@ -1 +1 @@
1
- .CodeMirror{font-family:monospace;height:300px;color:#000}.CodeMirror-lines{padding:4px 0}.CodeMirror pre{padding:0 4px}.CodeMirror-scrollbar-filler,.CodeMirror-gutter-filler{background-color:#fff}.CodeMirror-gutters{border-right:1px solid #ddd;background-color:#f7f7f7;white-space:nowrap}.CodeMirror-linenumber{padding:0 3px 0 5px;min-width:20px;text-align:right;color:#999;white-space:nowrap}.CodeMirror-guttermarker{color:#000}.CodeMirror-guttermarker-subtle{color:#999}.CodeMirror div.CodeMirror-cursor{border-left:1px solid #000}.CodeMirror div.CodeMirror-secondarycursor{border-left:1px solid #c0c0c0}.CodeMirror.cm-fat-cursor div.CodeMirror-cursor{width:auto;border:0;background:#7e7}.CodeMirror.cm-fat-cursor div.CodeMirror-cursors{z-index:1}.cm-animate-fat-cursor{width:auto;border:0;-webkit-animation:blink 1.06s steps(1) infinite;-moz-animation:blink 1.06s steps(1) infinite;animation:blink 1.06s steps(1) infinite}@-moz-keyframes blink{0%{background:#7e7}50%{background:none}100%{background:#7e7}}@-webkit-keyframes blink{0%{background:#7e7}50%{background:none}100%{background:#7e7}}@keyframes blink{0%{background:#7e7}50%{background:none}100%{background:#7e7}}.cm-tab{display:inline-block;text-decoration:inherit}.CodeMirror-ruler{border-left:1px solid #ccc;position:absolute}.cm-s-default .cm-header{color:#00f}.cm-s-default .cm-quote{color:#090}.cm-negative{color:#d44}.cm-positive{color:#292}.cm-header,.cm-strong{font-weight:bold}.cm-em{font-style:italic}.cm-link{text-decoration:underline}.cm-strikethrough{text-decoration:line-through}.cm-s-default .cm-keyword{color:#708}.cm-s-default .cm-atom{color:#219}.cm-s-default .cm-number{color:#164}.cm-s-default .cm-def{color:#00f}.cm-s-default .cm-variable-2{color:#05a}.cm-s-default .cm-variable-3{color:#085}.cm-s-default .cm-comment{color:#a50}.cm-s-default .cm-string{color:#a11}.cm-s-default .cm-string-2{color:#f50}.cm-s-default .cm-meta{color:#555}.cm-s-default .cm-qualifier{color:#555}.cm-s-default .cm-builtin{color:#30a}.cm-s-default .cm-bracket{color:#997}.cm-s-default .cm-tag{color:#170}.cm-s-default .cm-attribute{color:#00c}.cm-s-default .cm-hr{color:#999}.cm-s-default .cm-link{color:#00c}.cm-s-default .cm-error{color:#f00}.cm-invalidchar{color:#f00}.CodeMirror-composing{border-bottom:2px solid}div.CodeMirror span.CodeMirror-matchingbracket{color:#0f0}div.CodeMirror span.CodeMirror-nonmatchingbracket{color:#f22}.CodeMirror-matchingtag{background:rgba(255,150,0,.3)}.CodeMirror-activeline-background{background:#e8f2ff}.CodeMirror{position:relative;overflow:hidden;background:#fff}.CodeMirror-scroll{overflow:scroll !important;margin-bottom:-30px;margin-right:-30px;padding-bottom:30px;height:100%;outline:none;position:relative}.CodeMirror-sizer{position:relative;border-right:30px solid transparent}.CodeMirror-vscrollbar,.CodeMirror-hscrollbar,.CodeMirror-scrollbar-filler,.CodeMirror-gutter-filler{position:absolute;z-index:6;display:none}.CodeMirror-vscrollbar{right:0;top:0;overflow-x:hidden;overflow-y:scroll}.CodeMirror-hscrollbar{bottom:0;left:0;overflow-y:hidden;overflow-x:scroll}.CodeMirror-scrollbar-filler{right:0;bottom:0}.CodeMirror-gutter-filler{left:0;bottom:0}.CodeMirror-gutters{position:absolute;left:0;top:0;z-index:3}.CodeMirror-gutter{white-space:normal;height:100%;display:inline-block;margin-bottom:-30px;*zoom:1;*display:inline}.CodeMirror-gutter-wrapper{position:absolute;z-index:4;height:100%}.CodeMirror-gutter-elt{position:absolute;cursor:default;z-index:4}.CodeMirror-gutter-wrapper{-webkit-user-select:none;-moz-user-select:none;user-select:none}.CodeMirror-lines{cursor:text;min-height:1px}.CodeMirror pre{-moz-border-radius:0;-webkit-border-radius:0;border-radius:0;border-width:0;background:transparent;font-family:inherit;font-size:inherit;margin:0;white-space:pre;word-wrap:normal;line-height:inherit;color:inherit;z-index:2;position:relative;overflow:visible;-webkit-tap-highlight-color:transparent}.CodeMirror-wrap pre{word-wrap:break-word;white-space:pre-wrap;word-break:normal}.CodeMirror-linebackground{position:absolute;left:0;right:0;top:0;bottom:0;z-index:0}.CodeMirror-linewidget{position:relative;z-index:2;overflow:auto}.CodeMirror-code{outline:none}.CodeMirror-scroll,.CodeMirror-sizer,.CodeMirror-gutter,.CodeMirror-gutters,.CodeMirror-linenumber{-moz-box-sizing:content-box;box-sizing:content-box}.CodeMirror-measure{position:absolute;width:100%;height:0;overflow:hidden;visibility:hidden}.CodeMirror-measure pre{position:static}.CodeMirror div.CodeMirror-cursor{position:absolute;border-right:none;width:0}div.CodeMirror-cursors{visibility:hidden;position:relative;z-index:3}.CodeMirror-focused div.CodeMirror-cursors{visibility:visible}.CodeMirror-selected{background:#d9d9d9}.CodeMirror-focused .CodeMirror-selected{background:#d7d4f0}.CodeMirror-crosshair{cursor:crosshair}.CodeMirror ::selection{background:#d7d4f0}.CodeMirror ::-moz-selection{background:#d7d4f0}.cm-searching{background:#ffa;background:rgba(255,255,0,.4)}.CodeMirror span{*vertical-align:text-bottom}.cm-force-border{padding-right:.1px}@media print{.CodeMirror div.CodeMirror-cursors{visibility:hidden}}.cm-tab-wrap-hack:after{content:''}span.CodeMirror-selectedtext{background:none}.CodeMirror{font:13px/1.4em monospace;text-align:left}.CodeMirror .activeline{background:#e8f2ff}.CodeMirror .CodeMirror-foldmarker{color:#00f;-ms-text-shadow:#b9f 1px 1px 2px,#b9f -1px -1px 2px,#b9f 1px -1px 2px,#b9f -1px 1px 2px;-webkit-text-shadow:#b9f 1px 1px 2px,#b9f -1px -1px 2px,#b9f 1px -1px 2px,#b9f -1px 1px 2px;text-shadow:#b9f 1px 1px 2px,#b9f -1px -1px 2px,#b9f 1px -1px 2px,#b9f -1px 1px 2px;font-family:arial;line-height:.3;cursor:pointer}.CodeMirror-matchingtag{background:#ff9600;background:rgba(255,150,0,.3)}.searchCodeButton span,.autoFormat span,.CommentSelectedRange span,.UncommentSelectedRange span{width:16px;height:16px;margin-left:6px}.searchCodeButton span{background:url("../icons/searchcode.png") no-repeat}.autoFormat span{background:url("../icons/autoformat.png") no-repeat}.CommentSelectedRange span{background:url("../icons/commentselectedrange.png") no-repeat}.UncommentSelectedRange span{background:url("../icons/uncommentselectedrange.png") no-repeat}.cke_reset_all .CodeMirror-scroll *{white-space:pre}.cke_reset_all .cm-s-cobalt *,.cke_reset_all .cm-s-erlang-dark *,.cke_reset_all .cm-s-lesser-dark *,.cke_reset_all .cm-s-monokai *,.cke_reset_all .cm-s-night *,.cke_reset_all .cm-s-rubyblue *,.cke_reset_all .cm-s-twilight *,.cke_reset_all .cm-s-xq-dark *,.cke_reset_all .cm-s-base16-dark *,.cke_reset_all .cm-s-3024-night *,.cke_reset_all .cm-s-the-matrix *,.cke_reset_all .cm-s-paraiso-dark *,.cke_reset_all .cm-s-paraiso-light *{color:inherit;font:inherit}.cm-s-cobalt .CodeMirror-selected{background:#b36539 !important}.cm-s-erlang-dark .CodeMirror-selected{background:#b36539 !important}.cm-s-lesser-dark .CodeMirror-selected{background:#45443b !important}.cm-s-monokai .CodeMirror-selected{background:#49483e !important}.cm-s-night .CodeMirror-selected{background:#447 !important}.cm-s-rubyblue .CodeMirror-selected{background:#38566f !important}.cm-s-twilight .CodeMirror-selected{background:#323232 !important}.cm-s-xq-dark .CodeMirror-selected{background:#a8f !important}.cm-s-the-matrix .CodeMirror-selected{background:#494949 !important}.cm-s-mbo .CodeMirror-selected{background:#716c62 !important}.cm-s-blackboard .activeline,.cm-s-cobalt .activeline,.cm-s-erlang-dark .activeline,.cm-s-lesser-dark .activeline,.cm-s-monokai .activeline,.cm-s-night .activeline,.cm-s-rubyblue .activeline,.cm-s-vibrant-ink .activeline,.cm-s-xq-dark .activeline,.cm-s-base16-dark .activeline,.cm-s-3024-night .activeline,.cm-s-paraiso-light .activeline,.cm-s-paraiso-dark .activeline,.cm-s-pastel-on-dark .activeline{background:#757575}.cm-s-pastel-on-dark .activeline{background:#404040}.cm-s-mbo .activeline{background:#716c62}.cm-s-twilight .activeline{background:#494949}.cm-s-the-matrix .activeline{background:#060}.CodeMirror-focused .cm-matchhighlight{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAYAAABytg0kAAAAFklEQVQI12NgYGBgkKzc8x9CMDAwAAAmhwSbidEoSQAAAABJRU5ErkJggg==);background-position:bottom;background-repeat:repeat-x}.CodeMirror-hints{position:absolute;z-index:10;overflow:hidden;list-style:none;margin:0;padding:2px;-webkit-box-shadow:2px 3px 5px #000;-ms-box-shadow:2px 3px 5px #000;box-shadow:2px 3px 5px #000;border-radius:3px;border:1px solid #c0c0c0;background:#fff;font-size:90%;font-family:monospace;max-height:20em;overflow-y:auto}.CodeMirror-hint{margin:0;padding:0 4px;border-radius:2px;max-width:19em;overflow:hidden;white-space:pre;color:#000;cursor:pointer}.CodeMirror-hint-active{background:#08f;color:#fff}.cm-trailingspace{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAACCAYAAAB/qH1jAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3QUXCToH00Y1UgAAACFJREFUCNdjPMDBUc/AwNDAAAFMTAwMDA0OP34wQgX/AQBYgwYEx4f9lQAAAABJRU5ErkJggg==);background-position:bottom left;background-repeat:repeat-x}.CodeMirror-dialog{position:absolute;left:0;right:0;background:inherit;z-index:15;padding:.1em .8em;overflow:hidden;color:inherit}.CodeMirror-dialog-top{border-bottom:1px solid #eee;top:0}.CodeMirror-dialog-bottom{border-top:1px solid #eee;bottom:0}.CodeMirror-dialog input{border:none;outline:none;background:transparent;width:20em;color:inherit;font-family:monospace}.CodeMirror-dialog button{font-size:70%}.CodeMirror-foldmarker{color:#00f;text-shadow:#b9f 1px 1px 2px,#b9f -1px -1px 2px,#b9f 1px -1px 2px,#b9f -1px 1px 2px;font-family:arial;line-height:.3;cursor:pointer}.CodeMirror-foldgutter{width:.7em}.CodeMirror-foldgutter-open,.CodeMirror-foldgutter-folded{cursor:pointer}.CodeMirror-foldgutter-open:after{content:"▾"}.CodeMirror-foldgutter-folded:after{content:"▸"}
1
+ .CodeMirror{font-family:monospace;height:300px;color:#000}.CodeMirror-lines{padding:4px 0}.CodeMirror pre{padding:0 4px}.CodeMirror-scrollbar-filler,.CodeMirror-gutter-filler{background-color:#fff}.CodeMirror-gutters{border-right:1px solid #ddd;background-color:#f7f7f7;white-space:nowrap}.CodeMirror-linenumber{padding:0 3px 0 5px;min-width:20px;text-align:right;color:#999;white-space:nowrap}.CodeMirror-guttermarker{color:#000}.CodeMirror-guttermarker-subtle{color:#999}.CodeMirror-cursor{border-left:1px solid #000;border-right:none;width:0}.CodeMirror div.CodeMirror-secondarycursor{border-left:1px solid #c0c0c0}.cm-fat-cursor .CodeMirror-cursor{width:auto;border:0;background:#7e7}.cm-fat-cursor div.CodeMirror-cursors{z-index:1}.cm-animate-fat-cursor{width:auto;border:0;-webkit-animation:blink 1.06s steps(1) infinite;-moz-animation:blink 1.06s steps(1) infinite;animation:blink 1.06s steps(1) infinite;background-color:#7e7}@-moz-keyframes blink{0%{}50%{background-color:transparent}100%{}}@-webkit-keyframes blink{0%{}50%{background-color:transparent}100%{}}@keyframes blink{0%{}50%{background-color:transparent}100%{}}.cm-tab{display:inline-block;text-decoration:inherit}.CodeMirror-ruler{border-left:1px solid #ccc;position:absolute}.cm-s-default .cm-header{color:#00f}.cm-s-default .cm-quote{color:#090}.cm-negative{color:#d44}.cm-positive{color:#292}.cm-header,.cm-strong{font-weight:bold}.cm-em{font-style:italic}.cm-link{text-decoration:underline}.cm-strikethrough{text-decoration:line-through}.cm-s-default .cm-keyword{color:#708}.cm-s-default .cm-atom{color:#219}.cm-s-default .cm-number{color:#164}.cm-s-default .cm-def{color:#00f}.cm-s-default .cm-variable-2{color:#05a}.cm-s-default .cm-variable-3{color:#085}.cm-s-default .cm-comment{color:#a50}.cm-s-default .cm-string{color:#a11}.cm-s-default .cm-string-2{color:#f50}.cm-s-default .cm-meta{color:#555}.cm-s-default .cm-qualifier{color:#555}.cm-s-default .cm-builtin{color:#30a}.cm-s-default .cm-bracket{color:#997}.cm-s-default .cm-tag{color:#170}.cm-s-default .cm-attribute{color:#00c}.cm-s-default .cm-hr{color:#999}.cm-s-default .cm-link{color:#00c}.cm-s-default .cm-error{color:#f00}.cm-invalidchar{color:#f00}.CodeMirror-composing{border-bottom:2px solid}div.CodeMirror span.CodeMirror-matchingbracket{color:#0f0}div.CodeMirror span.CodeMirror-nonmatchingbracket{color:#f22}.CodeMirror-matchingtag{background:rgba(255,150,0,.3)}.CodeMirror-activeline-background{background:#e8f2ff}.CodeMirror{position:relative;overflow:hidden;background:#fff}.CodeMirror-scroll{overflow:scroll !important;margin-bottom:-30px;margin-right:-30px;padding-bottom:30px;height:100%;outline:none;position:relative}.CodeMirror-sizer{position:relative;border-right:30px solid transparent}.CodeMirror-vscrollbar,.CodeMirror-hscrollbar,.CodeMirror-scrollbar-filler,.CodeMirror-gutter-filler{position:absolute;z-index:6;display:none}.CodeMirror-vscrollbar{right:0;top:0;overflow-x:hidden;overflow-y:scroll}.CodeMirror-hscrollbar{bottom:0;left:0;overflow-y:hidden;overflow-x:scroll}.CodeMirror-scrollbar-filler{right:0;bottom:0}.CodeMirror-gutter-filler{left:0;bottom:0}.CodeMirror-gutters{position:absolute;left:0;top:0;min-height:100%;z-index:3}.CodeMirror-gutter{white-space:normal;height:100%;display:inline-block;vertical-align:top;margin-bottom:-30px;*zoom:1;*display:inline}.CodeMirror-gutter-wrapper{position:absolute;z-index:4;background:none !important;border:none !important}.CodeMirror-gutter-background{position:absolute;top:0;bottom:0;z-index:4}.CodeMirror-gutter-elt{position:absolute;cursor:default;z-index:4}.CodeMirror-gutter-wrapper{-webkit-user-select:none;-moz-user-select:none;user-select:none}.CodeMirror-lines{cursor:text;min-height:1px}.CodeMirror pre{-moz-border-radius:0;-webkit-border-radius:0;border-radius:0;border-width:0;background:transparent;font-family:inherit;font-size:inherit;margin:0;white-space:pre;word-wrap:normal;line-height:inherit;color:inherit;z-index:2;position:relative;overflow:visible;-webkit-tap-highlight-color:transparent;-webkit-font-variant-ligatures:none;font-variant-ligatures:none}.CodeMirror-wrap pre{word-wrap:break-word;white-space:pre-wrap;word-break:normal}.CodeMirror-linebackground{position:absolute;left:0;right:0;top:0;bottom:0;z-index:0}.CodeMirror-linewidget{position:relative;z-index:2;overflow:auto}.CodeMirror-code{outline:none}.CodeMirror-scroll,.CodeMirror-sizer,.CodeMirror-gutter,.CodeMirror-gutters,.CodeMirror-linenumber{-moz-box-sizing:content-box;box-sizing:content-box}.CodeMirror-measure{position:absolute;width:100%;height:0;overflow:hidden;visibility:hidden}.CodeMirror-cursor{position:absolute}.CodeMirror-measure pre{position:static}div.CodeMirror-cursors{visibility:hidden;position:relative;z-index:3}div.CodeMirror-dragcursors{visibility:visible}.CodeMirror-focused div.CodeMirror-cursors{visibility:visible}.CodeMirror-selected{background:#d9d9d9}.CodeMirror-focused .CodeMirror-selected{background:#d7d4f0}.CodeMirror-crosshair{cursor:crosshair}.CodeMirror-line::selection,.CodeMirror-line>span::selection,.CodeMirror-line>span>span::selection{background:#d7d4f0}.CodeMirror-line::-moz-selection,.CodeMirror-line>span::-moz-selection,.CodeMirror-line>span>span::-moz-selection{background:#d7d4f0}.cm-searching{background:#ffa;background:rgba(255,255,0,.4)}.CodeMirror span{*vertical-align:text-bottom}.cm-force-border{padding-right:.1px}@media print{.CodeMirror div.CodeMirror-cursors{visibility:hidden}}.cm-tab-wrap-hack:after{content:''}span.CodeMirror-selectedtext{background:none}.CodeMirror{font:13px/1.4em monospace;text-align:left}.CodeMirror .activeline{background:#e8f2ff}.CodeMirror .CodeMirror-foldmarker{color:#00f;-ms-text-shadow:#b9f 1px 1px 2px,#b9f -1px -1px 2px,#b9f 1px -1px 2px,#b9f -1px 1px 2px;-webkit-text-shadow:#b9f 1px 1px 2px,#b9f -1px -1px 2px,#b9f 1px -1px 2px,#b9f -1px 1px 2px;text-shadow:#b9f 1px 1px 2px,#b9f -1px -1px 2px,#b9f 1px -1px 2px,#b9f -1px 1px 2px;font-family:arial;line-height:.3;cursor:pointer}.CodeMirror-matchingtag{background:#ff9600;background:rgba(255,150,0,.3)}.searchCodeButton span,.autoFormat span,.CommentSelectedRange span,.UncommentSelectedRange span{width:16px;height:16px;margin-left:6px}.searchCodeButton span{background:url("../icons/searchcode.png") no-repeat}.autoFormat span{background:url("../icons/autoformat.png") no-repeat}.CommentSelectedRange span{background:url("../icons/commentselectedrange.png") no-repeat}.UncommentSelectedRange span{background:url("../icons/uncommentselectedrange.png") no-repeat}.cke_reset_all .CodeMirror-scroll *{white-space:pre}.cke_reset_all .cm-s-cobalt *,.cke_reset_all .cm-s-erlang-dark *,.cke_reset_all .cm-s-lesser-dark *,.cke_reset_all .cm-s-monokai *,.cke_reset_all .cm-s-night *,.cke_reset_all .cm-s-rubyblue *,.cke_reset_all .cm-s-twilight *,.cke_reset_all .cm-s-xq-dark *,.cke_reset_all .cm-s-base16-dark *,.cke_reset_all .cm-s-3024-night *,.cke_reset_all .cm-s-the-matrix *,.cke_reset_all .cm-s-paraiso-dark *,.cke_reset_all .cm-s-paraiso-light *{color:inherit;font:inherit}.cm-s-cobalt .CodeMirror-selected{background:#b36539 !important}.cm-s-erlang-dark .CodeMirror-selected{background:#b36539 !important}.cm-s-lesser-dark .CodeMirror-selected{background:#45443b !important}.cm-s-monokai .CodeMirror-selected{background:#49483e !important}.cm-s-night .CodeMirror-selected{background:#447 !important}.cm-s-rubyblue .CodeMirror-selected{background:#38566f !important}.cm-s-twilight .CodeMirror-selected{background:#323232 !important}.cm-s-xq-dark .CodeMirror-selected{background:#a8f !important}.cm-s-the-matrix .CodeMirror-selected{background:#494949 !important}.cm-s-mbo .CodeMirror-selected{background:#716c62 !important}.cm-s-blackboard .activeline,.cm-s-cobalt .activeline,.cm-s-erlang-dark .activeline,.cm-s-lesser-dark .activeline,.cm-s-monokai .activeline,.cm-s-night .activeline,.cm-s-rubyblue .activeline,.cm-s-vibrant-ink .activeline,.cm-s-xq-dark .activeline,.cm-s-base16-dark .activeline,.cm-s-3024-night .activeline,.cm-s-paraiso-light .activeline,.cm-s-paraiso-dark .activeline,.cm-s-pastel-on-dark .activeline{background:#757575}.cm-s-pastel-on-dark .activeline{background:#404040}.cm-s-mbo .activeline{background:#716c62}.cm-s-twilight .activeline{background:#494949}.cm-s-the-matrix .activeline{background:#060}.CodeMirror-focused .cm-matchhighlight{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAYAAABytg0kAAAAFklEQVQI12NgYGBgkKzc8x9CMDAwAAAmhwSbidEoSQAAAABJRU5ErkJggg==);background-position:bottom;background-repeat:repeat-x}.CodeMirror-hints{position:absolute;z-index:10;overflow:hidden;list-style:none;margin:0;padding:2px;-webkit-box-shadow:2px 3px 5px #000;-ms-box-shadow:2px 3px 5px #000;box-shadow:2px 3px 5px #000;border-radius:3px;border:1px solid #c0c0c0;background:#fff;font-size:90%;font-family:monospace;max-height:20em;overflow-y:auto}.CodeMirror-hint{margin:0;padding:0 4px;border-radius:2px;max-width:19em;overflow:hidden;white-space:pre;color:#000;cursor:pointer}.CodeMirror-hint-active{background:#08f;color:#fff}.cm-trailingspace{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAACCAYAAAB/qH1jAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3QUXCToH00Y1UgAAACFJREFUCNdjPMDBUc/AwNDAAAFMTAwMDA0OP34wQgX/AQBYgwYEx4f9lQAAAABJRU5ErkJggg==);background-position:bottom left;background-repeat:repeat-x}.CodeMirror-dialog{position:absolute;left:0;right:0;background:inherit;z-index:15;padding:.1em .8em;overflow:hidden;color:inherit}.CodeMirror-dialog-top{border-bottom:1px solid #eee;top:0}.CodeMirror-dialog-bottom{border-top:1px solid #eee;bottom:0}.CodeMirror-dialog input{border:none;outline:none;background:transparent;width:20em;color:inherit;font-family:monospace}.CodeMirror-dialog button{font-size:70%}.CodeMirror-foldmarker{color:#00f;text-shadow:#b9f 1px 1px 2px,#b9f -1px -1px 2px,#b9f 1px -1px 2px,#b9f -1px 1px 2px;font-family:arial;line-height:.3;cursor:pointer}.CodeMirror-foldgutter{width:.7em}.CodeMirror-foldgutter-open,.CodeMirror-foldgutter-folded{cursor:pointer}.CodeMirror-foldgutter-open:after{content:"\25be "}.CodeMirror-foldgutter-folded:after{content:"\25b8 "}
@@ -1 +1 @@
1
- (function(){function n(n,t){for(var i=0;i<t.length;i+=1)if(t[i]===n)return!0;return!1}function f(n){return n.replace(/^\s+|\s+$/g,"")}function r(n,t){"use strict";var i=new e(n,t);return i.beautify()}function e(i,r){"use strict";function yt(n,t){var i=0;return n&&(i=n.indentation_level,!l.just_added_newline()&&n.line_indent_level>i&&(i=n.line_indent_level)),{mode:t,parent:n,last_text:n?n.last_text:"",last_word:n?n.last_word:"",declaration_statement:!1,declaration_assignment:!1,multiline_frame:!1,if_block:!1,else_block:!1,do_block:!1,do_while:!1,in_case_statement:!1,in_case:!1,case_body:!1,indentation_level:i,line_indent_level:n?n.line_indent_level:i,start_line_index:l.get_line_number(),ternary_depth:0}}function pt(n){var i=n.newlines,r=c.keep_array_indentation&&d(u.mode),t;if(r)for(t=0;t<i;t+=1)a(t>0);else if(c.max_preserve_newlines&&i>c.max_preserve_newlines&&(i=c.max_preserve_newlines),c.preserve_newlines&&n.newlines>1)for(a(),t=1;t<i;t+=1)a(!0);e=n;at[e.type]()}function bt(n){n=n.replace(/\x0d/g,"");for(var i=[],t=n.indexOf("\n");t!==-1;)i.push(n.substring(0,t)),n=n.substring(t+1),t=n.indexOf("\n");return n.length&&i.push(n),i}function k(n){if(n=n===undefined?!1:n,!l.just_added_newline())if(c.preserve_newlines&&e.wanted_newline||n)a(!1,!0);else if(c.wrap_line_length){var t=l.current_line.get_character_count()+e.text.length+(l.space_before_token?1:0);t>=c.wrap_line_length&&a(!1,!0)}}function a(n,i){if(!i&&u.last_text!==";"&&u.last_text!==","&&u.last_text!=="="&&o!=="TK_OPERATOR")while(u.mode===t.Statement&&!u.if_block&&!u.do_block)b();l.add_new_line(n)&&(u.multiline_frame=!0)}function kt(){if(l.just_added_newline())if(c.keep_array_indentation&&d(u.mode)&&e.wanted_newline){l.current_line.push("");for(var n=0;n<e.whitespace_before.length;n+=1)l.current_line.push(e.whitespace_before[n]);l.space_before_token=!1}else l.add_indent_string(u.indentation_level)&&(u.line_indent_level=u.indentation_level)}function v(n){n=n||e.text;kt();l.add_token(n)}function rt(){u.indentation_level+=1}function dt(){u.indentation_level>0&&(!u.parent||u.indentation_level>u.parent.indentation_level)&&(u.indentation_level-=1)}function nt(n){u?(et.push(u),p=u):p=yt(null,n);u=yt(p,n)}function d(n){return n===t.ArrayLiteral}function ut(i){return n(i,[t.Expression,t.ForInitializer,t.Conditional])}function b(){et.length>0&&(p=u,u=et.pop(),p.mode===t.Statement&&l.remove_redundant_indentation(p))}function ot(){return u.parent.mode===t.ObjectLiteral&&u.mode===t.Statement&&(u.last_text===":"&&u.ternary_depth===0||o==="TK_RESERVED"&&n(u.last_text,["get","set"]))}function tt(){return o==="TK_RESERVED"&&n(u.last_text,["var","let","const"])&&e.type==="TK_WORD"||o==="TK_RESERVED"&&u.last_text==="do"||o==="TK_RESERVED"&&u.last_text==="return"&&!e.wanted_newline||o==="TK_RESERVED"&&u.last_text==="else"&&!(e.type==="TK_RESERVED"&&e.text==="if")||o==="TK_END_EXPR"&&(p.mode===t.ForInitializer||p.mode===t.Conditional)||o==="TK_WORD"&&u.mode===t.BlockStatement&&!u.in_case&&!(e.text==="--"||e.text==="++")&&e.type!=="TK_WORD"&&e.type!=="TK_RESERVED"||u.mode===t.ObjectLiteral&&(u.last_text===":"&&u.ternary_depth===0||o==="TK_RESERVED"&&n(u.last_text,["get","set"]))?(nt(t.Statement),rt(),o==="TK_RESERVED"&&n(u.last_text,["var","let","const"])&&e.type==="TK_WORD"&&(u.declaration_statement=!0),ot()||k(e.type==="TK_RESERVED"&&n(e.text,["do","for","if","while"])),!0):!1}function gt(n,t){for(var r,i=0;i<n.length;i++)if(r=f(n[i]),r.charAt(0)!==t)return!1;return!0}function ni(n,t){for(var i=0,u=n.length,r;i<u;i++)if(r=n[i],r&&r.indexOf(t)!==0)return!1;return!0}function st(t){return n(t,["case","return","do","if","throw","else"])}function ht(n){var t=lt+(n||0);return t<0||t>=ct.length?null:ct[t]}function ti(){tt();var i=t.Expression;if(e.text==="["){if(o==="TK_WORD"||u.last_text===")"){o==="TK_RESERVED"&&n(u.last_text,g.line_starters)&&(l.space_before_token=!0);nt(i);v();rt();c.space_in_paren&&(l.space_before_token=!0);return}i=t.ArrayLiteral;d(u.mode)&&(u.last_text==="["||u.last_text===","&&(w==="]"||w==="}"))&&(c.keep_array_indentation||a())}else o==="TK_RESERVED"&&u.last_text==="for"?i=t.ForInitializer:o==="TK_RESERVED"&&n(u.last_text,["if","while"])&&(i=t.Conditional);u.last_text===";"||o==="TK_START_BLOCK"?a():o==="TK_END_EXPR"||o==="TK_START_EXPR"||o==="TK_END_BLOCK"||u.last_text==="."?k(e.wanted_newline):o==="TK_RESERVED"&&e.text==="("||o==="TK_WORD"||o==="TK_OPERATOR"?o==="TK_RESERVED"&&(u.last_word==="function"||u.last_word==="typeof")||u.last_text==="*"&&w==="function"?c.space_after_anon_function&&(l.space_before_token=!0):o==="TK_RESERVED"&&(n(u.last_text,g.line_starters)||u.last_text==="catch")&&c.space_before_conditional&&(l.space_before_token=!0):l.space_before_token=!0;e.text==="("&&(o==="TK_EQUALS"||o==="TK_OPERATOR")&&(ot()||k());nt(i);v();c.space_in_paren&&(l.space_before_token=!0);rt()}function ii(){while(u.mode===t.Statement)b();u.multiline_frame&&k(e.text==="]"&&d(u.mode)&&!c.keep_array_indentation);c.space_in_paren&&(o!=="TK_START_EXPR"||c.space_in_empty_paren?l.space_before_token=!0:(l.trim(),l.space_before_token=!1));e.text==="]"&&c.keep_array_indentation?(v(),b()):(b(),v());l.remove_redundant_indentation(p);u.do_while&&p.mode===t.Conditional&&(p.mode=t.Expression,u.do_block=!1,u.do_while=!1)}function ri(){var i=ht(1),r=ht(2),f,e;r&&(r.text===":"&&n(i.type,["TK_STRING","TK_WORD","TK_RESERVED"])||n(i.text,["get","set"])&&n(r.type,["TK_WORD","TK_RESERVED"]))?n(w,["class","interface"])?nt(t.BlockStatement):nt(t.ObjectLiteral):nt(t.BlockStatement);f=!i.comments_before.length&&i.text==="}";e=f&&u.last_word==="function"&&o==="TK_END_EXPR";c.brace_style==="expand"?o!=="TK_OPERATOR"&&(e||o==="TK_EQUALS"||o==="TK_RESERVED"&&st(u.last_text)&&u.last_text!=="else")?l.space_before_token=!0:a(!1,!0):o!=="TK_OPERATOR"&&o!=="TK_START_EXPR"?o==="TK_START_BLOCK"?a():l.space_before_token=!0:d(p.mode)&&u.last_text===","&&(w==="}"?l.space_before_token=!0:a());v();rt()}function ui(){while(u.mode===t.Statement)b();var n=o==="TK_START_BLOCK";c.brace_style==="expand"?n||a():n||(d(u.mode)&&c.keep_array_indentation?(c.keep_array_indentation=!1,a(),c.keep_array_indentation=!0):a());b();v()}function wt(){var i,r;if(e.type==="TK_RESERVED"&&u.mode!==t.ObjectLiteral&&n(e.text,["set","get"])&&(e.type="TK_WORD"),e.type==="TK_RESERVED"&&u.mode===t.ObjectLiteral&&(i=ht(1),i.text==":"&&(e.type="TK_WORD")),tt()||!e.wanted_newline||ut(u.mode)||o==="TK_OPERATOR"&&u.last_text!=="--"&&u.last_text!=="++"||o==="TK_EQUALS"||!c.preserve_newlines&&o==="TK_RESERVED"&&n(u.last_text,["var","let","const","set","get"])||a(),u.do_block&&!u.do_while){if(e.type==="TK_RESERVED"&&e.text==="while"){l.space_before_token=!0;v();l.space_before_token=!0;u.do_while=!0;return}a();u.do_block=!1}if(u.if_block)if(u.else_block||e.type!=="TK_RESERVED"||e.text!=="else"){while(u.mode===t.Statement)b();u.if_block=!1;u.else_block=!1}else u.else_block=!0;if(e.type==="TK_RESERVED"&&(e.text==="case"||e.text==="default"&&u.in_case_statement)){a();(u.case_body||c.jslint_happy)&&(dt(),u.case_body=!1);v();u.in_case=!0;u.in_case_statement=!0;return}if(e.type==="TK_RESERVED"&&e.text==="function"&&((n(u.last_text,["}",";"])||l.just_added_newline()&&!n(u.last_text,["[","{",":","=",","]))&&(l.just_added_blankline()||e.comments_before.length||(a(),a(!0))),o==="TK_RESERVED"||o==="TK_WORD"?o==="TK_RESERVED"&&n(u.last_text,["get","set","new","return","export"])?l.space_before_token=!0:o==="TK_RESERVED"&&u.last_text==="default"&&w==="export"?l.space_before_token=!0:a():o==="TK_OPERATOR"||u.last_text==="="?l.space_before_token=!0:!u.multiline_frame&&(ut(u.mode)||d(u.mode))||a()),(o==="TK_COMMA"||o==="TK_START_EXPR"||o==="TK_EQUALS"||o==="TK_OPERATOR")&&(ot()||k()),e.type==="TK_RESERVED"&&n(e.text,["function","get","set"])){v();u.last_word=e.text;return}y="NONE";o==="TK_END_BLOCK"?e.type==="TK_RESERVED"&&n(e.text,["else","catch","finally"])?c.brace_style==="expand"||c.brace_style==="end-expand"?y="NEWLINE":(y="SPACE",l.space_before_token=!0):y="NEWLINE":o==="TK_SEMICOLON"&&u.mode===t.BlockStatement?y="NEWLINE":o==="TK_SEMICOLON"&&ut(u.mode)?y="SPACE":o==="TK_STRING"?y="NEWLINE":o==="TK_RESERVED"||o==="TK_WORD"||u.last_text==="*"&&w==="function"?y="SPACE":o==="TK_START_BLOCK"?y="NEWLINE":o==="TK_END_EXPR"&&(l.space_before_token=!0,y="NEWLINE");e.type==="TK_RESERVED"&&n(e.text,g.line_starters)&&u.last_text!==")"&&(y=u.last_text==="else"||u.last_text==="export"?"SPACE":"NEWLINE");e.type==="TK_RESERVED"&&n(e.text,["else","catch","finally"])?o!=="TK_END_BLOCK"||c.brace_style==="expand"||c.brace_style==="end-expand"?a():(l.trim(!0),r=l.current_line,r.last()!=="}"&&a(),l.space_before_token=!0):y==="NEWLINE"?o==="TK_RESERVED"&&st(u.last_text)?l.space_before_token=!0:o!=="TK_END_EXPR"?o==="TK_START_EXPR"&&e.type==="TK_RESERVED"&&n(e.text,["var","let","const"])||u.last_text===":"||(e.type==="TK_RESERVED"&&e.text==="if"&&u.last_text==="else"?l.space_before_token=!0:a()):e.type==="TK_RESERVED"&&n(e.text,g.line_starters)&&u.last_text!==")"&&a():u.multiline_frame&&d(u.mode)&&u.last_text===","&&w==="}"?a():y==="SPACE"&&(l.space_before_token=!0);v();u.last_word=e.text;e.type==="TK_RESERVED"&&e.text==="do"&&(u.do_block=!0);e.type==="TK_RESERVED"&&e.text==="if"&&(u.if_block=!0)}function fi(){for(tt()&&(l.space_before_token=!1);u.mode===t.Statement&&!u.if_block&&!u.do_block;)b();v()}function ei(){tt()?l.space_before_token=!0:o==="TK_RESERVED"||o==="TK_WORD"?l.space_before_token=!0:o==="TK_COMMA"||o==="TK_START_EXPR"||o==="TK_EQUALS"||o==="TK_OPERATOR"?ot()||k():a();v()}function oi(){tt();u.declaration_statement&&(u.declaration_assignment=!0);l.space_before_token=!0;v();l.space_before_token=!0}function si(){if(u.declaration_statement){ut(u.parent.mode)&&(u.declaration_assignment=!1);v();u.declaration_assignment?(u.declaration_assignment=!1,a(!1,!0)):l.space_before_token=!0;return}v();u.mode===t.ObjectLiteral||u.mode===t.Statement&&u.parent.mode===t.ObjectLiteral?(u.mode===t.Statement&&b(),a()):l.space_before_token=!0}function hi(){if(tt(),o==="TK_RESERVED"&&st(u.last_text)){l.space_before_token=!0;v();return}if(e.text==="*"&&o==="TK_DOT"){v();return}if(e.text===":"&&u.in_case){u.case_body=!0;rt();v();a();u.in_case=!1;return}if(e.text==="::"){v();return}e.wanted_newline&&(e.text==="--"||e.text==="++")&&a(!1,!0);o==="TK_OPERATOR"&&k();var i=!0,r=!0;n(e.text,["--","++","!","~"])||n(e.text,["-","+"])&&(n(o,["TK_START_BLOCK","TK_START_EXPR","TK_EQUALS","TK_OPERATOR"])||n(u.last_text,g.line_starters)||u.last_text===",")?(i=!1,r=!1,u.last_text===";"&&ut(u.mode)&&(i=!0),o==="TK_RESERVED"||o==="TK_END_EXPR"?i=!0:o==="TK_OPERATOR"&&(i=n(e.text,["--","-"])&&n(u.last_text,["--","-"])||n(e.text,["++","+"])&&n(u.last_text,["++","+"])),(u.mode===t.BlockStatement||u.mode===t.Statement)&&(u.last_text==="{"||u.last_text===";")&&a()):e.text===":"?u.ternary_depth===0?i=!1:u.ternary_depth-=1:e.text==="?"?u.ternary_depth+=1:e.text==="*"&&o==="TK_RESERVED"&&u.last_text==="function"&&(i=!1,r=!1);l.space_before_token=l.space_before_token||i;v();l.space_before_token=r}function ci(){var n=bt(e.text),t,i=!1,r=!1,u=e.whitespace_before.join(""),o=u.length;for(a(!1,!0),n.length>1&&(gt(n.slice(1),"*")?i=!0:ni(n.slice(1),u)&&(r=!0)),v(n[0]),t=1;t<n.length;t++)a(!1,!0),i?v(" "+f(n[t])):r&&n[t].length>o?v(n[t].substring(o)):l.add_token(n[t]);a(!1,!0)}function li(){l.space_before_token=!0;v();l.space_before_token=!0}function ai(){e.wanted_newline?a(!1,!0):l.trim(!0);l.space_before_token=!0;v();a(!1,!0)}function vi(){tt();o==="TK_RESERVED"&&st(u.last_text)?l.space_before_token=!0:k(u.last_text===")"&&c.break_chained_methods);v()}function yi(){v();e.text[e.text.length-1]==="\n"&&a()}function pi(){while(u.mode===t.Statement)b()}var l,ct=[],lt,g,e,o,w,ft,u,p,et,y,at,c,vt="",it;for(at={TK_START_EXPR:ti,TK_END_EXPR:ii,TK_START_BLOCK:ri,TK_END_BLOCK:ui,TK_WORD:wt,TK_RESERVED:wt,TK_SEMICOLON:fi,TK_STRING:ei,TK_EQUALS:oi,TK_OPERATOR:hi,TK_COMMA:si,TK_BLOCK_COMMENT:ci,TK_INLINE_COMMENT:li,TK_COMMENT:ai,TK_DOT:vi,TK_UNKNOWN:yi,TK_EOF:pi},r=r?r:{},c={},r.braces_on_own_line!==undefined&&(c.brace_style=r.braces_on_own_line?"expand":"collapse"),c.brace_style=r.brace_style?r.brace_style:c.brace_style?c.brace_style:"collapse",c.brace_style==="expand-strict"&&(c.brace_style="expand"),c.indent_size=r.indent_size?parseInt(r.indent_size,10):4,c.indent_char=r.indent_char?r.indent_char:" ",c.preserve_newlines=r.preserve_newlines===undefined?!0:r.preserve_newlines,c.break_chained_methods=r.break_chained_methods===undefined?!1:r.break_chained_methods,c.max_preserve_newlines=r.max_preserve_newlines===undefined?0:parseInt(r.max_preserve_newlines,10),c.space_in_paren=r.space_in_paren===undefined?!1:r.space_in_paren,c.space_in_empty_paren=r.space_in_empty_paren===undefined?!1:r.space_in_empty_paren,c.jslint_happy=r.jslint_happy===undefined?!1:r.jslint_happy,c.space_after_anon_function=r.space_after_anon_function===undefined?!1:r.space_after_anon_function,c.keep_array_indentation=r.keep_array_indentation===undefined?!1:r.keep_array_indentation,c.space_before_conditional=r.space_before_conditional===undefined?!0:r.space_before_conditional,c.unescape_strings=r.unescape_strings===undefined?!1:r.unescape_strings,c.wrap_line_length=r.wrap_line_length===undefined?0:parseInt(r.wrap_line_length,10),c.e4x=r.e4x===undefined?!1:r.e4x,c.end_with_newline=r.end_with_newline===undefined?!1:r.end_with_newline,c.jslint_happy&&(c.space_after_anon_function=!0),r.indent_with_tabs&&(c.indent_char="\t",c.indent_size=1),ft="";c.indent_size>0;)ft+=c.indent_char,c.indent_size-=1;if(it=0,i&&i.length){while(i.charAt(it)===" "||i.charAt(it)==="\t")vt+=i.charAt(it),it+=1;i=i.substring(it)}o="TK_START_BLOCK";w="";l=new s(ft,vt);et=[];nt(t.BlockStatement);this.beautify=function(){var n,r,t;for(g=new h(i,c,ft),ct=g.tokenize(),lt=0;n=ht();){for(t=0;t<n.comments_before.length;t++)pt(n.comments_before[t]);pt(n);w=u.last_text;o=n.type;u.last_text=n.text;lt+=1}return r=l.get_code(),c.end_with_newline&&(r+="\n"),r}}function o(){var t=0,n=[];this.get_character_count=function(){return t};this.get_item_count=function(){return n.length};this.get_output=function(){return n.join("")};this.last=function(){return n.length?n[n.length-1]:null};this.push=function(i){n.push(i);t+=i.length};this.remove_indent=function(i,r){var u=0;n.length!==0&&(r&&n[0]===r&&(u=1),n[u]===i&&(t-=n[u].length,n.splice(u,1)))};this.trim=function(i,r){while(this.get_item_count()&&(this.last()===" "||this.last()===i||this.last()===r)){var u=n.pop();t-=u.length}}}function s(n,i){var r=[];this.baseIndentString=i;this.current_line=null;this.space_before_token=!1;this.get_line_number=function(){return r.length};this.add_new_line=function(n){return this.get_line_number()===1&&this.just_added_newline()?!1:n||!this.just_added_newline()?(this.current_line=new o,r.push(this.current_line),!0):!1};this.add_new_line(!0);this.get_code=function(){for(var t=r[0].get_output(),n=1;n<r.length;n++)t+="\n"+r[n].get_output();return t.replace(/[\r\n\t ]+$/,"")};this.add_indent_string=function(t){if(i&&this.current_line.push(i),r.length>1){for(var u=0;u<t;u+=1)this.current_line.push(n);return!0}return!1};this.add_token=function(n){this.add_space_before_token();this.current_line.push(n)};this.add_space_before_token=function(){if(this.space_before_token&&this.current_line.get_item_count()){var t=this.current_line.last();t!==" "&&t!==n&&t!==i&&this.current_line.push(" ")}this.space_before_token=!1};this.remove_redundant_indentation=function(u){if(!u.multiline_frame&&u.mode!==t.ForInitializer&&u.mode!==t.Conditional)for(var f=u.start_line_index,e=r.length;f<e;)r[f].remove_indent(n,i),f++};this.trim=function(t){for(t=t===undefined?!1:t,this.current_line.trim(n,i);t&&r.length>1&&this.current_line.get_item_count()===0;)r.pop(),this.current_line=r[r.length-1],this.current_line.trim(n,i)};this.just_added_newline=function(){return this.current_line.get_item_count()===0};this.just_added_blankline=function(){if(this.just_added_newline()){if(r.length===1)return!0;var n=r[r.length-2];return n.get_item_count()===0}return!1}}function h(t,r,e){function w(){var nt,d,w,rt,ct,et,pt,st,lt,ut;if(c=0,l=[],o>=s)return["","TK_EOF"];for(d=h.length?h[h.length-1]:new u("TK_START_BLOCK","{"),w=t.charAt(o),o+=1;n(w,b);){if(w==="\n"?(c+=1,l=[]):c&&(w===e?l.push(e):w!=="\r"&&l.push(" ")),o>=s)return["","TK_EOF"];w=t.charAt(o);o+=1}if(v.test(w)){var ft=!0,ht=!0,at=v;for(w==="0"&&o<s&&/[Xx]/.test(t.charAt(o))?(ft=!1,ht=!1,w+=t.charAt(o),o+=1,at=/[0123456789abcdefABCDEF]/):(w="",o-=1);o<s&&at.test(t.charAt(o));)w+=t.charAt(o),o+=1,ft&&o<s&&t.charAt(o)==="."&&(w+=t.charAt(o),o+=1,ft=!1),ht&&o<s&&/[Ee]/.test(t.charAt(o))&&(w+=t.charAt(o),o+=1,o<s&&/[+-]/.test(t.charAt(o))&&(w+=t.charAt(o),o+=1),ht=!1,ft=!1);return[w,"TK_WORD"]}if(i.isIdentifierStart(t.charCodeAt(o-1))){if(o<s)while(i.isIdentifierChar(t.charCodeAt(o)))if(w+=t.charAt(o),o+=1,o===s)break;return!(d.type==="TK_DOT"||d.type==="TK_RESERVED"&&n(d.text,["set","get"]))&&n(w,p)?w==="in"?[w,"TK_OPERATOR"]:[w,"TK_RESERVED"]:[w,"TK_WORD"]}if(w==="("||w==="[")return[w,"TK_START_EXPR"];if(w===")"||w==="]")return[w,"TK_END_EXPR"];if(w==="{")return[w,"TK_START_BLOCK"];if(w==="}")return[w,"TK_END_BLOCK"];if(w===";")return[w,"TK_SEMICOLON"];if(w==="/"){if(rt="",ct=!0,t.charAt(o)==="*"){if(o+=1,o<s)while(o<s&&!(t.charAt(o)==="*"&&t.charAt(o+1)&&t.charAt(o+1)==="/"))if(w=t.charAt(o),rt+=w,(w==="\n"||w==="\r")&&(ct=!1),o+=1,o>=s)break;return o+=2,ct&&c===0?["/*"+rt+"*/","TK_INLINE_COMMENT"]:["/*"+rt+"*/","TK_BLOCK_COMMENT"]}if(t.charAt(o)==="/"){for(rt=w;t.charAt(o)!=="\r"&&t.charAt(o)!=="\n";)if(rt+=t.charAt(o),o+=1,o>=s)break;return[rt,"TK_COMMENT"]}}if(w==="`"||w==="'"||w==='"'||(w==="/"||r.e4x&&w==="<"&&t.slice(o-1).match(/^<([-a-zA-Z:0-9_.]+|{[^{}]*}|!\[CDATA\[[\s\S]*?\]\])\s*([-a-zA-Z:0-9_.]+=('[^']*'|"[^"]*"|{[^{}]*})\s*)*\/?\s*>/))&&(d.type==="TK_RESERVED"&&n(d.text,["return","case","throw","else","do","typeof","yield"])||d.type==="TK_END_EXPR"&&d.text===")"&&d.parent&&d.parent.type==="TK_RESERVED"&&n(d.parent.text,["if","while","for"])||n(d.type,["TK_COMMENT","TK_START_EXPR","TK_START_BLOCK","TK_END_BLOCK","TK_OPERATOR","TK_EQUALS","TK_EOF","TK_SEMICOLON","TK_COMMA"]))){var tt=w,it=!1,vt=!1;if(nt=w,tt==="/")for(et=!1;o<s&&(it||et||t.charAt(o)!==tt)&&!i.newline.test(t.charAt(o));)nt+=t.charAt(o),it?it=!1:(it=t.charAt(o)==="\\",t.charAt(o)==="["?et=!0:t.charAt(o)==="]"&&(et=!1)),o+=1;else if(r.e4x&&tt==="<"){var yt=/<(\/?)([-a-zA-Z:0-9_.]+|{[^{}]*}|!\[CDATA\[[\s\S]*?\]\])\s*([-a-zA-Z:0-9_.]+=('[^']*'|"[^"]*"|{[^{}]*})\s*)*(\/?)\s*>/g,ot=t.slice(o-1),g=yt.exec(ot);if(g&&g.index===0){for(pt=g[2],st=0;g;){var bt=!!g[1],wt=g[2],kt=!!g[g.length-1]||wt.slice(0,8)==="![CDATA[";if(wt!==pt||kt||(bt?--st:++st),st<=0)break;g=yt.exec(ot)}return lt=g?g.index+g[0].length:ot.length,o+=lt-1,[ot.slice(0,lt),"TK_STRING"]}}else while(o<s&&(it||t.charAt(o)!==tt&&(tt==="`"||!i.newline.test(t.charAt(o)))))nt+=t.charAt(o),it?((t.charAt(o)==="x"||t.charAt(o)==="u")&&(vt=!0),it=!1):it=t.charAt(o)==="\\",o+=1;if(vt&&r.unescape_strings&&(nt=k(nt)),o<s&&t.charAt(o)===tt&&(nt+=tt,o+=1,tt==="/"))while(o<s&&i.isIdentifierStart(t.charCodeAt(o)))nt+=t.charAt(o),o+=1;return[nt,"TK_STRING"]}if(w==="#"){if(h.length===0&&t.charAt(o)==="!"){for(nt=w;o<s&&w!=="\n";)w=t.charAt(o),nt+=w,o+=1;return[f(nt)+"\n","TK_UNKNOWN"]}if(ut="#",o<s&&v.test(t.charAt(o))){do w=t.charAt(o),ut+=w,o+=1;while(o<s&&w!=="#"&&w!=="=");return w==="#"||(t.charAt(o)==="["&&t.charAt(o+1)==="]"?(ut+="[]",o+=2):t.charAt(o)==="{"&&t.charAt(o+1)==="}"&&(ut+="{}",o+=2)),[ut,"TK_WORD"]}}if(w==="<"&&t.substring(o-1,o+3)==="<!--"){for(o+=3,w="<!--";t.charAt(o)!=="\n"&&o<s;)w+=t.charAt(o),o++;return a=!0,[w,"TK_COMMENT"]}if(w==="-"&&a&&t.substring(o-1,o+2)==="-->")return a=!1,o+=2,["-->","TK_COMMENT"];if(w===".")return[w,"TK_DOT"];if(n(w,y)){while(o<s&&n(w+t.charAt(o),y))if(w+=t.charAt(o),o+=1,o>=s)break;return w===","?[w,"TK_COMMA"]:w==="="?[w,"TK_EQUALS"]:[w,"TK_OPERATOR"]}return[w,"TK_UNKNOWN"]}function k(n){for(var e=!1,u="",r=0,f="",t=0,i;e||r<n.length;)if(i=n.charAt(r),r++,e){if(e=!1,i==="x")f=n.substr(r,2),r+=2;else if(i==="u")f=n.substr(r,4),r+=4;else{u+="\\"+i;continue}if(!f.match(/^[0123456789abcdefABCDEF]+$/))return n;if(t=parseInt(f,16),t>=0&&t<32){u+=i==="x"?"\\x"+f:"\\u"+f;continue}else if(t===34||t===39||t===92)u+="\\"+String.fromCharCode(t);else{if(i==="x"&&t>126&&t<=255)return n;u+=String.fromCharCode(t)}}else i==="\\"?e=!0:u+=i;return u}var b="\n\r\t ".split(""),v=/[0-9]/,y=("+ - * / % & ++ -- = += -= *= /= %= == === != !== > < >= <= >> << >>> >>>= >>= <<= && &= | || ! ~ , : ? ^ ^= |= :: =>"+" <%= <% %> <?= <? ?>").split(" "),p,c,l,a,h,o,s;this.line_starters="continue,try,throw,return,var,let,const,if,switch,case,default,for,while,break,function,yield,import,export".split(",");p=this.line_starters.concat(["do","in","else","get","set","new","catch","finally","typeof"]);this.tokenize=function(){s=t.length;o=0;a=!1;h=[];for(var n,f,r,i=null,v=[],e=[];!(f&&f.type==="TK_EOF");){for(r=w(),n=new u(r[1],r[0],c,l);n.type==="TK_INLINE_COMMENT"||n.type==="TK_COMMENT"||n.type==="TK_BLOCK_COMMENT"||n.type==="TK_UNKNOWN";)e.push(n),r=w(),n=new u(r[1],r[0],c,l);e.length&&(n.comments_before=e,e=[]);n.type==="TK_START_BLOCK"||n.type==="TK_START_EXPR"?(n.parent=f,i=n,v.push(n)):(n.type==="TK_END_BLOCK"||n.type==="TK_END_EXPR")&&i&&(n.text==="]"&&i.text==="["||n.text===")"&&i.text==="("||n.text==="}"&&i.text==="}")&&(n.parent=i.parent,i=v.pop());h.push(n);f=n}return h}}var i={},t,u;(function(n){var t="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",i=new RegExp("["+t+"]"),r=new RegExp("["+t+"̀-ͯ҃-֑҇-ׇֽֿׁׂׅׄؐ-ؚؠ-ىٲ-ۓۧ-ۨۻ-ۼܰ-݊ࠀ-ࠔࠛ-ࠣࠥ-ࠧࠩ-࠭ࡀ-ࡗࣤ-ࣾऀ-ःऺ-़ा-ॏ॑-ॗॢ-ॣ०-९ঁ-ঃ়া-ৄেৈৗয়-ৠਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢ-ૣ૦-૯ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୟ-ୠ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఁ-ఃె-ైొ-్ౕౖౢ-ౣ౦-౯ಂಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢ-ೣ೦-೯ംഃെ-ൈൗൢ-ൣ൦-൯ංඃ්ා-ුූෘ-ෟෲෳิ-ฺเ-ๅ๐-๙ິ-ູ່-ໍ໐-໙༘༙༠-༩༹༵༷ཁ-ཇཱ-྄྆-྇ྍ-ྗྙ-ྼ࿆က-ဩ၀-၉ၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟ᜎ-ᜐᜠ-ᜰᝀ-ᝐᝲᝳក-ឲ៝០-៩᠋-᠍᠐-᠙ᤠ-ᤫᤰ-᤻ᥑ-ᥭᦰ-ᧀᧈ-ᧉ᧐-᧙ᨀ-ᨕᨠ-ᩓ᩠-᩿᩼-᪉᪐-᪙ᭆ-ᭋ᭐-᭙᭫-᭳᮰-᮹᯦-᯳ᰀ-ᰢ᱀-᱉ᱛ-ᱽ᳐-᳒ᴀ-ᶾḁ-ἕ‌‍‿⁀⁔⃐-⃥⃜⃡-⃰ⶁ-ⶖⷠ-ⷿ〡-〨゙゚Ꙁ-ꙭꙴ-꙽ꚟ꛰-꛱ꟸ-ꠀ꠆ꠋꠣ-ꠧꢀ-ꢁꢴ-꣄꣐-꣙ꣳ-ꣷ꤀-꤉ꤦ-꤭ꤰ-ꥅꦀ-ꦃ꦳-꧀ꨀ-ꨧꩀ-ꩁꩌ-ꩍ꩐-꩙ꩻꫠ-ꫩꫲ-ꫳꯀ-ꯡ꯬꯭꯰-꯹ﬠ-ﬨ︀-️︠-︦︳︴﹍-﹏0-9_]"),u=n.newline=/[\n\r\u2028\u2029]/,f=n.isIdentifierStart=function(n){return n<65?n===36:n<91?!0:n<97?n===95:n<123?!0:n>=170&&i.test(String.fromCharCode(n))},e=n.isIdentifierChar=function(n){return n<48?n===36:n<58?!0:n<65?!1:n<91?!0:n<97?n===95:n<123?!0:n>=170&&r.test(String.fromCharCode(n))}})(i);t={BlockStatement:"BlockStatement",Statement:"Statement",ObjectLiteral:"ObjectLiteral",ArrayLiteral:"ArrayLiteral",ForInitializer:"ForInitializer",Conditional:"Conditional",Expression:"Expression"};u=function(n,t,i,r){this.type=n;this.text=t;this.comments_before=[];this.newlines=i||0;this.wanted_newline=i>0;this.whitespace_before=r||[];this.parent=null};typeof define=="function"&&define.amd?define([],function(){return{js_beautify:r}}):typeof exports!="undefined"?exports.js_beautify=r:typeof window!="undefined"?window.js_beautify=r:typeof global!="undefined"&&(global.js_beautify=r)})(),function(){function i(n){return n.replace(/^\s+/g,"")}function t(n){return n.replace(/\s+$/g,"")}function n(n,r,u,f){function ft(){return this.pos=0,this.token="",this.current_mode="CONTENT",this.tags={parent:"parent1",parentcount:1,parent1:""},this.tag_type="",this.token_text=this.last_token=this.last_text=this.token_type="",this.newlines=0,this.indent_content=k,this.Utils={whitespace:"\n\r\t ".split(""),single_token:"br,input,link,meta,!doctype,basefont,base,area,hr,wbr,param,img,isindex,?xml,embed,?php,?,?=".split(","),extra_liners:"head,body,/html".split(","),in_array:function(n,t){for(var i=0;i<t.length;i++)if(n===t[i])return!0;return!1}},this.is_whitespace=function(n){for(var t=0;t<n.length;n++)if(!this.Utils.in_array(n.charAt(t),this.Utils.whitespace))return!1;return!0},this.traverse_whitespace=function(){var n="";if(n=this.input.charAt(this.pos),this.Utils.in_array(n,this.Utils.whitespace)){for(this.newlines=0;this.Utils.in_array(n,this.Utils.whitespace);)v&&n==="\n"&&this.newlines<=it&&(this.newlines+=1),this.pos++,n=this.input.charAt(this.pos);return!0}return!1},this.space_or_wrap=function(n){this.line_char_count>=this.wrap_line_length?(this.print_newline(!1,n),this.print_indentation(n)):(this.line_char_count++,n.push(" "))},this.get_content=function(){for(var i="",n=[],t;this.input.charAt(this.pos)!=="<";){if(this.pos>=this.input.length)return n.length?n.join(""):["","TK_EOF"];if(this.traverse_whitespace()){this.space_or_wrap(n);continue}if(o)if(t=this.input.substr(this.pos,3),t==="{{#"||t==="{{/")break;else if(this.input.substr(this.pos,2)==="{{"&&this.get_tag(!0)==="{{else}}")break;i=this.input.charAt(this.pos);this.pos++;this.line_char_count++;n.push(i)}return n.length?n.join(""):""},this.get_contents_to=function(n){var i,t;if(this.pos===this.input.length)return["","TK_EOF"];var r="",u=new RegExp("<\/"+n+"\\s*>","igm");return u.lastIndex=this.pos,i=u.exec(this.input),t=i?i.index:this.input.length,this.pos<t&&(r=this.input.substring(this.pos,t),this.pos=t),r},this.record_tag=function(n){this.tags[n+"count"]?(this.tags[n+"count"]++,this.tags[n+this.tags[n+"count"]]=this.indent_level):(this.tags[n+"count"]=1,this.tags[n+this.tags[n+"count"]]=this.indent_level);this.tags[n+this.tags[n+"count"]+"parent"]=this.tags.parent;this.tags.parent=n+this.tags[n+"count"]},this.retrieve_tag=function(n){if(this.tags[n+"count"]){for(var t=this.tags.parent;t;){if(n+this.tags[n+"count"]===t)break;t=this.tags[t+"parent"]}t&&(this.indent_level=this.tags[n+this.tags[n+"count"]],this.tags.parent=this.tags[t+"parent"]);delete this.tags[n+this.tags[n+"count"]+"parent"];delete this.tags[n+this.tags[n+"count"]];this.tags[n+"count"]===1?delete this.tags[n+"count"]:this.tags[n+"count"]--}},this.indent_to_tag=function(n){if(this.tags[n+"count"]){for(var t=this.tags.parent;t;){if(n+this.tags[n+"count"]===t)break;t=this.tags[t+"parent"]}t&&(this.indent_level=this.tags[n+this.tags[n+"count"]])}},this.get_tag=function(n){var r="",t=[],h="",f=!1,s,p,e,c=this.pos,l=this.line_char_count,i,v,y,u;n=n!==undefined?n:!1;do{if(this.pos>=this.input.length)return n&&(this.pos=c,this.line_char_count=l),t.length?t.join(""):["","TK_EOF"];if(r=this.input.charAt(this.pos),this.pos++,this.Utils.in_array(r,this.Utils.whitespace)){f=!0;continue}if((r==="'"||r==='"')&&(r+=this.get_unformatted(r),f=!0),r==="="&&(f=!1),t.length&&t[t.length-1]!=="="&&r!==">"&&f&&(this.space_or_wrap(t),f=!1),o&&e==="<"&&r+this.input.charAt(this.pos)==="{{"&&(r+=this.get_unformatted("}}"),t.length&&t[t.length-1]!==" "&&t[t.length-1]!=="<"&&(r=" "+r),f=!0),r!=="<"||e||(s=this.pos-1,e="<"),o&&!e&&t.length>=2&&t[t.length-1]==="{"&&t[t.length-2]=="{"&&(s=r==="#"||r==="/"?this.pos-3:this.pos-2,e="{"),this.line_char_count++,t.push(r),t[1]&&t[1]==="!"){t=[this.get_comment(s)];break}if(o&&e==="{"&&t.length>2&&t[t.length-2]==="}"&&t[t.length-1]==="}")break}while(r!==">");return i=t.join(""),v=i.indexOf(" ")!==-1?i.indexOf(" "):i[0]==="{"?i.indexOf("}"):i.indexOf(">"),y=i[0]!=="<"&&o?i[2]==="#"?3:2:1,u=i.substring(y,v).toLowerCase(),i.charAt(i.length-2)==="/"||this.Utils.in_array(u,this.Utils.single_token)?n||(this.tag_type="SINGLE"):o&&i[0]==="{"&&u==="else"?n||(this.indent_to_tag("if"),this.tag_type="HANDLEBARS_ELSE",this.indent_content=!0,this.traverse_whitespace()):this.is_unformatted(u,a)?(h=this.get_unformatted("<\/"+u+">",i),t.push(h),p=this.pos-1,this.tag_type="SINGLE"):u==="script"&&(i.search("type")===-1||i.search("type")>-1&&i.search(/\b(text|application)\/(x-)?(javascript|ecmascript|jscript|livescript)/)>-1)?n||(this.record_tag(u),this.tag_type="SCRIPT"):u==="style"&&(i.search("type")===-1||i.search("type")>-1&&i.search("text/css")>-1)?n||(this.record_tag(u),this.tag_type="STYLE"):u.charAt(0)==="!"?n||(this.tag_type="SINGLE",this.traverse_whitespace()):n||(u.charAt(0)==="/"?(this.retrieve_tag(u.substring(1)),this.tag_type="END"):(this.record_tag(u),u.toLowerCase()!=="html"&&(this.indent_content=!0),this.tag_type="START"),this.traverse_whitespace()&&this.space_or_wrap(t),this.Utils.in_array(u,this.Utils.extra_liners)&&(this.print_newline(!1,this.output),this.output.length&&this.output[this.output.length-2]!=="\n"&&this.print_newline(!0,this.output))),n&&(this.pos=c,this.line_char_count=l),t.join("")},this.get_comment=function(n){var t="",i=">",r=!1;for(this.pos=n,input_char=this.input.charAt(this.pos),this.pos++;this.pos<=this.input.length;){if(t+=input_char,t[t.length-1]===i[i.length-1]&&t.indexOf(i)!==-1)break;!r&&t.length<10&&(t.indexOf("<![if")===0?(i="<![endif]>",r=!0):t.indexOf("<![cdata[")===0?(i="]\]>",r=!0):t.indexOf("<![")===0?(i="]>",r=!0):t.indexOf("<!--")===0&&(i="-->",r=!0));input_char=this.input.charAt(this.pos);this.pos++}return t},this.get_unformatted=function(n,t){if(t&&t.toLowerCase().indexOf(n)!==-1)return"";var r="",i="",u=0,f=!0;do{if(this.pos>=this.input.length)return i;if(r=this.input.charAt(this.pos),this.pos++,this.Utils.in_array(r,this.Utils.whitespace)){if(!f){this.line_char_count--;continue}if(r==="\n"||r==="\r"){i+="\n";this.line_char_count=0;continue}}i+=r;this.line_char_count++;f=!0;o&&r==="{"&&i.length&&i[i.length-2]==="{"&&(i+=this.get_unformatted("}}"),u=i.length)}while(i.toLowerCase().indexOf(n,u)===-1);return i},this.get_token=function(){var n,t,i;return this.last_token==="TK_TAG_SCRIPT"||this.last_token==="TK_TAG_STYLE"?(t=this.last_token.substr(7),n=this.get_contents_to(t),typeof n!="string")?n:[n,"TK_"+t]:this.current_mode==="CONTENT"?(n=this.get_content(),typeof n!="string"?n:[n,"TK_CONTENT"]):this.current_mode==="TAG"?(n=this.get_tag(),typeof n!="string"?n:(i="TK_TAG_"+this.tag_type,[n,i])):void 0},this.get_full_indent=function(n){return(n=this.indent_level+n||0,n<1)?"":Array(n+1).join(this.indent_string)},this.is_unformatted=function(n,t){if(!this.Utils.in_array(n,t))return!1;if(n.toLowerCase()!=="a"||!this.Utils.in_array("a",t))return!0;var r=this.get_tag(!0),i=(r||"").match(/^\s*<\s*\/?([a-z]*)\s*[^>]*>\s*$/);return!i||this.Utils.in_array(i,t)?!0:!1},this.printer=function(n,r,u,f,e){this.input=n||"";this.output=[];this.indent_character=r;this.indent_string="";this.indent_size=u;this.brace_style=e;this.indent_level=0;this.wrap_line_length=f;this.line_char_count=0;for(var o=0;o<this.indent_size;o++)this.indent_string+=this.indent_character;this.print_newline=function(n,i){(this.line_char_count=0,i&&i.length)&&(n||i[i.length-1]!=="\n")&&(i[i.length-1]!=="\n"&&(i[i.length-1]=t(i[i.length-1])),i.push("\n"))};this.print_indentation=function(n){for(var t=0;t<this.indent_level;t++)n.push(this.indent_string),this.line_char_count+=this.indent_string.length};this.print_token=function(n){(!this.is_whitespace(n)||this.output.length)&&((n||n!=="")&&this.output.length&&this.output[this.output.length-1]==="\n"&&(this.print_indentation(this.output),n=i(n)),this.print_token_raw(n))};this.print_token_raw=function(n){this.newlines>0&&(n=t(n));n&&n!==""&&(n.length>1&&n[n.length-1]==="\n"?(this.output.push(n.slice(0,-1)),this.print_newline(!1,this.output)):this.output.push(n));for(var i=0;i<this.newlines;i++)this.print_newline(i>0,this.output);this.newlines=0};this.indent=function(){this.indent_level++};this.unindent=function(){this.indent_level>0&&this.indent_level--}},this}var e,k,d,g,nt,tt,a,v,it,o,rt,y,ut,c,p,s,l,h,w,b;for(r=r||{},(r.wrap_line_length===undefined||parseInt(r.wrap_line_length,10)===0)&&r.max_char!==undefined&&parseInt(r.max_char,10)!==0&&(r.wrap_line_length=r.max_char),k=r.indent_inner_html===undefined?!1:r.indent_inner_html,d=r.indent_size===undefined?4:parseInt(r.indent_size,10),g=r.indent_char===undefined?" ":r.indent_char,tt=r.brace_style===undefined?"collapse":r.brace_style,nt=parseInt(r.wrap_line_length,10)===0?32786:parseInt(r.wrap_line_length||250,10),a=r.unformatted||["a","span","img","bdo","em","strong","dfn","code","samp","kbd","var","cite","abbr","acronym","q","sub","sup","tt","i","b","big","small","u","s","strike","font","ins","del","pre","address","dt","h1","h2","h3","h4","h5","h6"],v=r.preserve_newlines===undefined?!0:r.preserve_newlines,it=v?isNaN(parseInt(r.max_preserve_newlines,10))?32786:parseInt(r.max_preserve_newlines,10):0,o=r.indent_handlebars===undefined?!1:r.indent_handlebars,rt=r.end_with_newline===undefined?!1:r.end_with_newline,e=new ft,e.printer(n,g,d,nt,tt);;){if(y=e.get_token(),e.token_text=y[0],e.token_type=y[1],e.token_type==="TK_EOF")break;switch(e.token_type){case"TK_TAG_START":e.print_newline(!1,e.output);e.print_token(e.token_text);e.indent_content&&(e.indent(),e.indent_content=!1);e.current_mode="CONTENT";break;case"TK_TAG_STYLE":case"TK_TAG_SCRIPT":e.print_newline(!1,e.output);e.print_token(e.token_text);e.current_mode="CONTENT";break;case"TK_TAG_END":e.last_token==="TK_CONTENT"&&e.last_text===""&&(ut=e.token_text.match(/\w+/)[0],c=null,e.output.length&&(c=e.output[e.output.length-1].match(/(?:<|{{#)\s*(\w+)/)),(c===null||c[1]!==ut)&&e.print_newline(!1,e.output));e.print_token(e.token_text);e.current_mode="CONTENT";break;case"TK_TAG_SINGLE":p=e.token_text.match(/^\s*<([a-z-]+)/i);p&&e.Utils.in_array(p[1],a)||e.print_newline(!1,e.output);e.print_token(e.token_text);e.current_mode="CONTENT";break;case"TK_TAG_HANDLEBARS_ELSE":e.print_token(e.token_text);e.indent_content&&(e.indent(),e.indent_content=!1);e.current_mode="CONTENT";break;case"TK_CONTENT":e.print_token(e.token_text);e.current_mode="TAG";break;case"TK_STYLE":case"TK_SCRIPT":if(e.token_text!==""){if(e.print_newline(!1,e.output),s=e.token_text,h=1,e.token_type==="TK_SCRIPT"?l=typeof u=="function"&&u:e.token_type==="TK_STYLE"&&(l=typeof f=="function"&&f),r.indent_scripts==="keep"?h=0:r.indent_scripts==="separate"&&(h=-e.indent_level),w=e.get_full_indent(h),l)s=l(s.replace(/^\s*/,w),r);else{var et=s.match(/^\s*/)[0],ot=et.match(/[^\n\r]*$/)[0].split(e.indent_string).length-1,st=e.get_full_indent(h-ot);s=s.replace(/^\s*/,w).replace(/\r\n|\r|\n/g,"\n"+st).replace(/\s+$/,"")}s&&(e.print_token_raw(s),e.print_newline(!0,e.output))}e.current_mode="TAG";break;default:e.token_text!==""&&e.print_token(e.token_text)}e.last_token=e.token_type;e.last_text=e.token_text}return b=e.output.join("").replace(/[\r\n\t ]+$/,""),rt&&(b+="\n"),b}if(typeof define=="function"&&define.amd)define(["require","./beautify","./beautify-css"],function(t){var i=t("./beautify"),r=t("./beautify-css");return{html_beautify:function(t,u){return n(t,u,i.js_beautify,r.css_beautify)}}});else if(typeof exports!="undefined"){var r=require("./beautify.js"),u=require("./beautify-css.js");exports.html_beautify=function(t,i){return n(t,i,r.js_beautify,u.css_beautify)}}else typeof window!="undefined"?window.html_beautify=function(t,i){return n(t,i,window.js_beautify,window.css_beautify)}:typeof global!="undefined"&&(global.html_beautify=function(t,i){return n(t,i,global.js_beautify,global.css_beautify)})}()
1
+ (function(){function n(n,t){for(var i=0;i<t.length;i+=1)if(t[i]===n)return!0;return!1}function f(n){return n.replace(/^\s+|\s+$/g,"")}function e(n){return n.replace(/^\s+/g,"")}function r(n,t){"use strict";var i=new o(n,t);return i.beautify()}function o(r,u){"use strict";function wt(n,t){var i=0;return n&&(i=n.indentation_level,!v.just_added_newline()&&n.line_indent_level>i&&(i=n.line_indent_level)),{mode:t,parent:n,last_text:n?n.last_text:"",last_word:n?n.last_word:"",declaration_statement:!1,declaration_assignment:!1,multiline_frame:!1,if_block:!1,else_block:!1,do_block:!1,do_while:!1,in_case_statement:!1,in_case:!1,case_body:!1,indentation_level:i,line_indent_level:n?n.line_indent_level:i,start_line_index:v.get_line_number(),ternary_depth:0}}function bt(n){var i=n.newlines,r=a.keep_array_indentation&&nt(o.mode),t;if(r)for(t=0;t<i;t+=1)y(t>0);else if(a.max_preserve_newlines&&i>a.max_preserve_newlines&&(i=a.max_preserve_newlines),a.preserve_newlines&&n.newlines>1)for(y(),t=1;t<i;t+=1)y(!0);s=n;yt[s.type]()}function gt(n){n=n.replace(/\x0d/g,"");for(var i=[],t=n.indexOf("\n");t!==-1;)i.push(n.substring(0,t)),n=n.substring(t+1),t=n.indexOf("\n");return n.length&&i.push(n),i}function d(n){if(n=n===undefined?!1:n,!v.just_added_newline())if(a.preserve_newlines&&s.wanted_newline||n)y(!1,!0);else if(a.wrap_line_length){var t=v.current_line.get_character_count()+s.text.length+(v.space_before_token?1:0);t>=a.wrap_line_length&&y(!1,!0)}}function y(n,i){if(!i&&o.last_text!==";"&&o.last_text!==","&&o.last_text!=="="&&l!=="TK_OPERATOR")while(o.mode===t.Statement&&!o.if_block&&!o.do_block)g();v.add_new_line(n)&&(o.multiline_frame=!0)}function kt(){v.just_added_newline()&&(a.keep_array_indentation&&nt(o.mode)&&s.wanted_newline?(v.current_line.push(s.whitespace_before),v.space_before_token=!1):v.set_indent(o.indentation_level)&&(o.line_indent_level=o.indentation_level))}function p(n){if(v.raw){v.add_raw_token(s);return}a.comma_first&&l==="TK_COMMA"&&v.just_added_newline()&&v.previous_line.last()===","&&(v.previous_line.pop(),kt(),v.add_token(","),v.space_before_token=!0);n=n||s.text;kt();v.add_token(n)}function ft(){o.indentation_level+=1}function ni(){o.indentation_level>0&&(!o.parent||o.indentation_level>o.parent.indentation_level)&&(o.indentation_level-=1)}function it(n){o?(st.push(o),b=o):b=wt(null,n);o=wt(b,n)}function nt(n){return n===t.ArrayLiteral}function et(i){return n(i,[t.Expression,t.ForInitializer,t.Conditional])}function g(){st.length>0&&(b=o,o=st.pop(),b.mode===t.Statement&&v.remove_redundant_indentation(b))}function ht(){return o.parent.mode===t.ObjectLiteral&&o.mode===t.Statement&&(o.last_text===":"&&o.ternary_depth===0||l==="TK_RESERVED"&&n(o.last_text,["get","set"]))}function rt(){return l==="TK_RESERVED"&&n(o.last_text,["var","let","const"])&&s.type==="TK_WORD"||l==="TK_RESERVED"&&o.last_text==="do"||l==="TK_RESERVED"&&o.last_text==="return"&&!s.wanted_newline||l==="TK_RESERVED"&&o.last_text==="else"&&!(s.type==="TK_RESERVED"&&s.text==="if")||l==="TK_END_EXPR"&&(b.mode===t.ForInitializer||b.mode===t.Conditional)||l==="TK_WORD"&&o.mode===t.BlockStatement&&!o.in_case&&!(s.text==="--"||s.text==="++")&&k!=="function"&&s.type!=="TK_WORD"&&s.type!=="TK_RESERVED"||o.mode===t.ObjectLiteral&&(o.last_text===":"&&o.ternary_depth===0||l==="TK_RESERVED"&&n(o.last_text,["get","set"]))?(it(t.Statement),ft(),l==="TK_RESERVED"&&n(o.last_text,["var","let","const"])&&s.type==="TK_WORD"&&(o.declaration_statement=!0),ht()||d(s.type==="TK_RESERVED"&&n(s.text,["do","for","if","while"])),!0):!1}function ti(n,t){for(var r,i=0;i<n.length;i++)if(r=f(n[i]),r.charAt(0)!==t)return!1;return!0}function ii(n,t){for(var i=0,u=n.length,r;i<u;i++)if(r=n[i],r&&r.indexOf(t)!==0)return!1;return!0}function ct(t){return n(t,["case","return","do","if","throw","else"])}function lt(n){var t=vt+(n||0);return t<0||t>=at.length?null:at[t]}function ri(){rt();var i=t.Expression;if(s.text==="["){if(l==="TK_WORD"||o.last_text===")"){l==="TK_RESERVED"&&n(o.last_text,tt.line_starters)&&(v.space_before_token=!0);it(i);p();ft();a.space_in_paren&&(v.space_before_token=!0);return}i=t.ArrayLiteral;nt(o.mode)&&(o.last_text==="["||o.last_text===","&&(k==="]"||k==="}"))&&(a.keep_array_indentation||y())}else l==="TK_RESERVED"&&o.last_text==="for"?i=t.ForInitializer:l==="TK_RESERVED"&&n(o.last_text,["if","while"])&&(i=t.Conditional);o.last_text===";"||l==="TK_START_BLOCK"?y():l==="TK_END_EXPR"||l==="TK_START_EXPR"||l==="TK_END_BLOCK"||o.last_text==="."?d(s.wanted_newline):l==="TK_RESERVED"&&s.text==="("||l==="TK_WORD"||l==="TK_OPERATOR"?l==="TK_RESERVED"&&(o.last_word==="function"||o.last_word==="typeof")||o.last_text==="*"&&k==="function"?a.space_after_anon_function&&(v.space_before_token=!0):l==="TK_RESERVED"&&(n(o.last_text,tt.line_starters)||o.last_text==="catch")&&a.space_before_conditional&&(v.space_before_token=!0):v.space_before_token=!0;s.text==="("&&l==="TK_RESERVED"&&o.last_word==="await"&&(v.space_before_token=!0);s.text==="("&&(l==="TK_EQUALS"||l==="TK_OPERATOR")&&(ht()||d());it(i);p();a.space_in_paren&&(v.space_before_token=!0);ft()}function ui(){while(o.mode===t.Statement)g();o.multiline_frame&&d(s.text==="]"&&nt(o.mode)&&!a.keep_array_indentation);a.space_in_paren&&(l!=="TK_START_EXPR"||a.space_in_empty_paren?v.space_before_token=!0:(v.trim(),v.space_before_token=!1));s.text==="]"&&a.keep_array_indentation?(p(),g()):(g(),p());v.remove_redundant_indentation(b);o.do_while&&b.mode===t.Conditional&&(b.mode=t.Expression,o.do_block=!1,o.do_while=!1)}function fi(){var i=lt(1),r=lt(2),u,f;r&&(r.text===":"&&n(i.type,["TK_STRING","TK_WORD","TK_RESERVED"])||n(i.text,["get","set"])&&n(r.type,["TK_WORD","TK_RESERVED"]))?n(k,["class","interface"])?it(t.BlockStatement):it(t.ObjectLiteral):it(t.BlockStatement);u=!i.comments_before.length&&i.text==="}";f=u&&o.last_word==="function"&&l==="TK_END_EXPR";a.brace_style==="expand"||a.brace_style==="none"&&s.wanted_newline?l!=="TK_OPERATOR"&&(f||l==="TK_EQUALS"||l==="TK_RESERVED"&&ct(o.last_text)&&o.last_text!=="else")?v.space_before_token=!0:y(!1,!0):l!=="TK_OPERATOR"&&l!=="TK_START_EXPR"?l==="TK_START_BLOCK"?y():v.space_before_token=!0:nt(b.mode)&&o.last_text===","&&(k==="}"?v.space_before_token=!0:y());p();ft()}function ei(){while(o.mode===t.Statement)g();var n=l==="TK_START_BLOCK";a.brace_style==="expand"?n||y():n||(nt(o.mode)&&a.keep_array_indentation?(a.keep_array_indentation=!1,y(),a.keep_array_indentation=!0):y());g();p()}function dt(){var i,r;if(s.type==="TK_RESERVED"&&o.mode!==t.ObjectLiteral&&n(s.text,["set","get"])&&(s.type="TK_WORD"),s.type==="TK_RESERVED"&&o.mode===t.ObjectLiteral&&(i=lt(1),i.text==":"&&(s.type="TK_WORD")),rt()||!s.wanted_newline||et(o.mode)||l==="TK_OPERATOR"&&o.last_text!=="--"&&o.last_text!=="++"||l==="TK_EQUALS"||!a.preserve_newlines&&l==="TK_RESERVED"&&n(o.last_text,["var","let","const","set","get"])||y(),o.do_block&&!o.do_while){if(s.type==="TK_RESERVED"&&s.text==="while"){v.space_before_token=!0;p();v.space_before_token=!0;o.do_while=!0;return}y();o.do_block=!1}if(o.if_block)if(o.else_block||s.type!=="TK_RESERVED"||s.text!=="else"){while(o.mode===t.Statement)g();o.if_block=!1;o.else_block=!1}else o.else_block=!0;if(s.type==="TK_RESERVED"&&(s.text==="case"||s.text==="default"&&o.in_case_statement)){y();(o.case_body||a.jslint_happy)&&(ni(),o.case_body=!1);p();o.in_case=!0;o.in_case_statement=!0;return}if(s.type==="TK_RESERVED"&&s.text==="function"&&((n(o.last_text,["}",";"])||v.just_added_newline()&&!n(o.last_text,["[","{",":","=",","]))&&(v.just_added_blankline()||s.comments_before.length||(y(),y(!0))),l==="TK_RESERVED"||l==="TK_WORD"?l==="TK_RESERVED"&&n(o.last_text,["get","set","new","return","export","async"])?v.space_before_token=!0:l==="TK_RESERVED"&&o.last_text==="default"&&k==="export"?v.space_before_token=!0:y():l==="TK_OPERATOR"||o.last_text==="="?v.space_before_token=!0:!o.multiline_frame&&(et(o.mode)||nt(o.mode))||y()),(l==="TK_COMMA"||l==="TK_START_EXPR"||l==="TK_EQUALS"||l==="TK_OPERATOR")&&(ht()||d()),s.type==="TK_RESERVED"&&n(s.text,["function","get","set"])){p();o.last_word=s.text;return}w="NONE";l==="TK_END_BLOCK"?s.type==="TK_RESERVED"&&n(s.text,["else","catch","finally"])?a.brace_style==="expand"||a.brace_style==="end-expand"||a.brace_style==="none"&&s.wanted_newline?w="NEWLINE":(w="SPACE",v.space_before_token=!0):w="NEWLINE":l==="TK_SEMICOLON"&&o.mode===t.BlockStatement?w="NEWLINE":l==="TK_SEMICOLON"&&et(o.mode)?w="SPACE":l==="TK_STRING"?w="NEWLINE":l==="TK_RESERVED"||l==="TK_WORD"||o.last_text==="*"&&k==="function"?w="SPACE":l==="TK_START_BLOCK"?w="NEWLINE":l==="TK_END_EXPR"&&(v.space_before_token=!0,w="NEWLINE");s.type==="TK_RESERVED"&&n(s.text,tt.line_starters)&&o.last_text!==")"&&(w=o.last_text==="else"||o.last_text==="export"?"SPACE":"NEWLINE");s.type==="TK_RESERVED"&&n(s.text,["else","catch","finally"])?l!=="TK_END_BLOCK"||a.brace_style==="expand"||a.brace_style==="end-expand"||a.brace_style==="none"&&s.wanted_newline?y():(v.trim(!0),r=v.current_line,r.last()!=="}"&&y(),v.space_before_token=!0):w==="NEWLINE"?l==="TK_RESERVED"&&ct(o.last_text)?v.space_before_token=!0:l!=="TK_END_EXPR"?l==="TK_START_EXPR"&&s.type==="TK_RESERVED"&&n(s.text,["var","let","const"])||o.last_text===":"||(s.type==="TK_RESERVED"&&s.text==="if"&&o.last_text==="else"?v.space_before_token=!0:y()):s.type==="TK_RESERVED"&&n(s.text,tt.line_starters)&&o.last_text!==")"&&y():o.multiline_frame&&nt(o.mode)&&o.last_text===","&&k==="}"?y():w==="SPACE"&&(v.space_before_token=!0);p();o.last_word=s.text;s.type==="TK_RESERVED"&&s.text==="do"&&(o.do_block=!0);s.type==="TK_RESERVED"&&s.text==="if"&&(o.if_block=!0)}function oi(){for(rt()&&(v.space_before_token=!1);o.mode===t.Statement&&!o.if_block&&!o.do_block;)g();p()}function si(){rt()?v.space_before_token=!0:l==="TK_RESERVED"||l==="TK_WORD"?v.space_before_token=!0:l==="TK_COMMA"||l==="TK_START_EXPR"||l==="TK_EQUALS"||l==="TK_OPERATOR"?ht()||d():y();p()}function hi(){rt();o.declaration_statement&&(o.declaration_assignment=!0);v.space_before_token=!0;p();v.space_before_token=!0}function ci(){if(o.declaration_statement){et(o.parent.mode)&&(o.declaration_assignment=!1);p();o.declaration_assignment?(o.declaration_assignment=!1,y(!1,!0)):(v.space_before_token=!0,a.comma_first&&d());return}p();o.mode===t.ObjectLiteral||o.mode===t.Statement&&o.parent.mode===t.ObjectLiteral?(o.mode===t.Statement&&g(),y()):(v.space_before_token=!0,a.comma_first&&d())}function li(){if(rt(),l==="TK_RESERVED"&&ct(o.last_text)){v.space_before_token=!0;p();return}if(s.text==="*"&&l==="TK_DOT"){p();return}if(s.text===":"&&o.in_case){o.case_body=!0;ft();p();y();o.in_case=!1;return}if(s.text==="::"){p();return}l==="TK_OPERATOR"&&d();var i=!0,r=!0;n(s.text,["--","++","!","~"])||n(s.text,["-","+"])&&(n(l,["TK_START_BLOCK","TK_START_EXPR","TK_EQUALS","TK_OPERATOR"])||n(o.last_text,tt.line_starters)||o.last_text===",")?(i=!1,r=!1,s.wanted_newline&&(s.text==="--"||s.text==="++")&&y(!1,!0),o.last_text===";"&&et(o.mode)&&(i=!0),l==="TK_RESERVED"?i=!0:l==="TK_END_EXPR"?i=!(o.last_text==="]"&&(s.text==="--"||s.text==="++")):l==="TK_OPERATOR"&&(i=n(s.text,["--","-","++","+"])&&n(o.last_text,["--","-","++","+"]),n(s.text,["+","-"])&&n(o.last_text,["--","++"])&&(r=!0)),(o.mode===t.BlockStatement||o.mode===t.Statement)&&(o.last_text==="{"||o.last_text===";")&&y()):s.text===":"?o.ternary_depth===0?i=!1:o.ternary_depth-=1:s.text==="?"?o.ternary_depth+=1:s.text==="*"&&l==="TK_RESERVED"&&o.last_text==="function"&&(i=!1,r=!1);v.space_before_token=v.space_before_token||i;p();v.space_before_token=r}function ai(){if(v.raw){v.add_raw_token(s);s.directives&&s.directives.preserve==="end"&&(a.test_output_raw||(v.raw=!1));return}if(s.directives){y(!1,!0);p();s.directives.preserve==="start"&&(v.raw=!0);y(!1,!0);return}if(!i.newline.test(s.text)&&!s.wanted_newline){v.space_before_token=!0;p();v.space_before_token=!0;return}var n=gt(s.text),t,r=!1,u=!1,f=s.whitespace_before,o=f.length;for(y(!1,!0),n.length>1&&(ti(n.slice(1),"*")?r=!0:ii(n.slice(1),f)&&(u=!0)),p(n[0]),t=1;t<n.length;t++)y(!1,!0),r?p(" "+e(n[t])):u&&n[t].length>o?p(n[t].substring(o)):v.add_token(n[t]);y(!1,!0)}function vi(){s.wanted_newline?y(!1,!0):v.trim(!0);v.space_before_token=!0;p();y(!1,!0)}function yi(){rt();l==="TK_RESERVED"&&ct(o.last_text)?v.space_before_token=!0:d(o.last_text===")"&&a.break_chained_methods);p()}function pi(){p();s.text[s.text.length-1]==="\n"&&y()}function wi(){while(o.mode===t.Statement)g()}var v,at=[],vt,tt,s,l,k,ot,o,b,st,w,yt,a,pt="",ut;for(yt={TK_START_EXPR:ri,TK_END_EXPR:ui,TK_START_BLOCK:fi,TK_END_BLOCK:ei,TK_WORD:dt,TK_RESERVED:dt,TK_SEMICOLON:oi,TK_STRING:si,TK_EQUALS:hi,TK_OPERATOR:li,TK_COMMA:ci,TK_BLOCK_COMMENT:ai,TK_COMMENT:vi,TK_DOT:yi,TK_UNKNOWN:pi,TK_EOF:wi},u=u?u:{},a={},u.braces_on_own_line!==undefined&&(a.brace_style=u.braces_on_own_line?"expand":"collapse"),a.brace_style=u.brace_style?u.brace_style:a.brace_style?a.brace_style:"collapse",a.brace_style==="expand-strict"&&(a.brace_style="expand"),a.indent_size=u.indent_size?parseInt(u.indent_size,10):4,a.indent_char=u.indent_char?u.indent_char:" ",a.eol=u.eol?u.eol:"\n",a.preserve_newlines=u.preserve_newlines===undefined?!0:u.preserve_newlines,a.break_chained_methods=u.break_chained_methods===undefined?!1:u.break_chained_methods,a.max_preserve_newlines=u.max_preserve_newlines===undefined?0:parseInt(u.max_preserve_newlines,10),a.space_in_paren=u.space_in_paren===undefined?!1:u.space_in_paren,a.space_in_empty_paren=u.space_in_empty_paren===undefined?!1:u.space_in_empty_paren,a.jslint_happy=u.jslint_happy===undefined?!1:u.jslint_happy,a.space_after_anon_function=u.space_after_anon_function===undefined?!1:u.space_after_anon_function,a.keep_array_indentation=u.keep_array_indentation===undefined?!1:u.keep_array_indentation,a.space_before_conditional=u.space_before_conditional===undefined?!0:u.space_before_conditional,a.unescape_strings=u.unescape_strings===undefined?!1:u.unescape_strings,a.wrap_line_length=u.wrap_line_length===undefined?0:parseInt(u.wrap_line_length,10),a.e4x=u.e4x===undefined?!1:u.e4x,a.end_with_newline=u.end_with_newline===undefined?!1:u.end_with_newline,a.comma_first=u.comma_first===undefined?!1:u.comma_first,a.test_output_raw=u.test_output_raw===undefined?!1:u.test_output_raw,a.jslint_happy&&(a.space_after_anon_function=!0),u.indent_with_tabs&&(a.indent_char="\t",a.indent_size=1),a.eol=a.eol.replace(/\\r/,"\r").replace(/\\n/,"\n"),ot="";a.indent_size>0;)ot+=a.indent_char,a.indent_size-=1;if(ut=0,r&&r.length){while(r.charAt(ut)===" "||r.charAt(ut)==="\t")pt+=r.charAt(ut),ut+=1;r=r.substring(ut)}l="TK_START_BLOCK";k="";v=new h(ot,pt);v.raw=a.test_output_raw;st=[];it(t.BlockStatement);this.beautify=function(){var n,t,i;for(tt=new c(r,a,ot),at=tt.tokenize(),vt=0;n=lt();){for(i=0;i<n.comments_before.length;i++)bt(n.comments_before[i]);bt(n);k=o.last_text;l=n.type;o.last_text=n.text;vt+=1}return t=v.get_code(),a.end_with_newline&&(t+="\n"),a.eol!="\n"&&(t=t.replace(/[\n]/g,a.eol)),t}}function s(n){var i=0,r=-1,t=[],u=!0;this.set_indent=function(t){i=n.baseIndentLength+t*n.indent_length;r=t};this.get_character_count=function(){return i};this.is_empty=function(){return u};this.last=function(){return this._empty?null:t[t.length-1]};this.push=function(n){t.push(n);i+=n.length;u=!1};this.pop=function(){var n=null;return u||(n=t.pop(),i-=n.length,u=t.length===0),n};this.remove_indent=function(){r>0&&(r-=1,i-=n.indent_length)};this.trim=function(){while(this.last()===" "){var n=t.pop();i-=1}u=t.length===0};this.toString=function(){var i="";return this._empty||(r>=0&&(i=n.indent_cache[r]),i+=t.join("")),i}}function h(n,i){i=i||"";this.indent_cache=[i];this.baseIndentLength=i.length;this.indent_length=n.length;this.raw=!1;var r=[];this.baseIndentString=i;this.indent_string=n;this.previous_line=null;this.current_line=null;this.space_before_token=!1;this.add_outputline=function(){this.previous_line=this.current_line;this.current_line=new s(this);r.push(this.current_line)};this.add_outputline();this.get_line_number=function(){return r.length};this.add_new_line=function(n){return this.get_line_number()===1&&this.just_added_newline()?!1:n||!this.just_added_newline()?(this.raw||this.add_outputline(),!0):!1};this.get_code=function(){return r.join("\n").replace(/[\r\n\t ]+$/,"")};this.set_indent=function(n){if(r.length>1){while(n>=this.indent_cache.length)this.indent_cache.push(this.indent_cache[this.indent_cache.length-1]+this.indent_string);return this.current_line.set_indent(n),!0}return this.current_line.set_indent(0),!1};this.add_raw_token=function(n){for(var t=0;t<n.newlines;t++)this.add_outputline();this.current_line.push(n.whitespace_before);this.current_line.push(n.text);this.space_before_token=!1};this.add_token=function(n){this.add_space_before_token();this.current_line.push(n)};this.add_space_before_token=function(){this.space_before_token&&!this.just_added_newline()&&this.current_line.push(" ");this.space_before_token=!1};this.remove_redundant_indentation=function(n){if(!n.multiline_frame&&n.mode!==t.ForInitializer&&n.mode!==t.Conditional)for(var i=n.start_line_index,u=r.length;i<u;)r[i].remove_indent(),i++};this.trim=function(t){for(t=t===undefined?!1:t,this.current_line.trim(n,i);t&&r.length>1&&this.current_line.is_empty();)r.pop(),this.current_line=r[r.length-1],this.current_line.trim();this.previous_line=r.length>1?r[r.length-2]:null};this.just_added_newline=function(){return this.current_line.is_empty()};this.just_added_blankline=function(){if(this.just_added_newline()){if(r.length===1)return!0;var n=r[r.length-2];return n.is_empty()}return!1}}function c(t,r){function rt(n){var i,t;if(!n.match(it))return null;for(i={},v.lastIndex=0,t=v.exec(n);t;)i[t[1]]=t[2],t=v.exec(n);return i}function d(){var d,at=[],it,v,et,yt,ot,pt,ii,wt,kt,lt,dt;if(h=0,c="",e>=o)return["","TK_EOF"];for(it=s.length?s[s.length-1]:new u("TK_START_BLOCK","{"),v=t.charAt(e),e+=1;n(v,g);){if(i.newline.test(v)?v==="\n"&&t.charAt(e-2)==="\r"||(h+=1,at=[]):at.push(v),e>=o)return["","TK_EOF"];v=t.charAt(e);e+=1}if(at.length&&(c=at.join("")),a.test(v)){var vt=!0,bt=!0,gt=a;for(v==="0"&&e<o&&/[Xx]/.test(t.charAt(e))?(vt=!1,bt=!1,v+=t.charAt(e),e+=1,gt=nt):(v="",e-=1);e<o&&gt.test(t.charAt(e));)v+=t.charAt(e),e+=1,vt&&e<o&&t.charAt(e)==="."&&(v+=t.charAt(e),e+=1,vt=!1),bt&&e<o&&/[Ee]/.test(t.charAt(e))&&(v+=t.charAt(e),e+=1,e<o&&/[+-]/.test(t.charAt(e))&&(v+=t.charAt(e),e+=1),bt=!1,vt=!1);return[v,"TK_WORD"]}if(i.isIdentifierStart(t.charCodeAt(e-1))){if(e<o)while(i.isIdentifierChar(t.charCodeAt(e)))if(v+=t.charAt(e),e+=1,e===o)break;return!(it.type==="TK_DOT"||it.type==="TK_RESERVED"&&n(it.text,["set","get"]))&&n(v,tt)?v==="in"?[v,"TK_OPERATOR"]:[v,"TK_RESERVED"]:[v,"TK_WORD"]}if(v==="("||v==="[")return[v,"TK_START_EXPR"];if(v===")"||v==="]")return[v,"TK_END_EXPR"];if(v==="{")return[v,"TK_START_BLOCK"];if(v==="}")return[v,"TK_END_BLOCK"];if(v===";")return[v,"TK_SEMICOLON"];if(v==="/"){if(et="",t.charAt(e)==="*")return e+=1,p.lastIndex=e,ot=p.exec(t),et="/*"+ot[0],e+=ot[0].length,yt=rt(et),yt&&yt.ignore==="start"&&(b.lastIndex=e,ot=b.exec(t),et+=ot[0],e+=ot[0].length),et=et.replace(i.lineBreak,"\n"),[et,"TK_BLOCK_COMMENT",yt];if(t.charAt(e)==="/")return e+=1,w.lastIndex=e,ot=w.exec(t),et="//"+ot[0],e+=ot[0].length,[et,"TK_COMMENT"]}if(v==="`"||v==="'"||v==='"'||(v==="/"||r.e4x&&v==="<"&&t.slice(e-1).match(/^<([-a-zA-Z:0-9_.]+|{[^{}]*}|!\[CDATA\[[\s\S]*?\]\])(\s+[-a-zA-Z:0-9_.]+\s*=\s*('[^']*'|"[^"]*"|{.*?}))*\s*(\/?)\s*>/))&&(it.type==="TK_RESERVED"&&n(it.text,["return","case","throw","else","do","typeof","yield"])||it.type==="TK_END_EXPR"&&it.text===")"&&it.parent&&it.parent.type==="TK_RESERVED"&&n(it.parent.text,["if","while","for"])||n(it.type,["TK_COMMENT","TK_START_EXPR","TK_START_BLOCK","TK_END_BLOCK","TK_OPERATOR","TK_EQUALS","TK_EOF","TK_SEMICOLON","TK_COMMA"]))){var st=v,ht=!1,ni=!1;if(d=v,st==="/")for(pt=!1;e<o&&(ht||pt||t.charAt(e)!==st)&&!i.newline.test(t.charAt(e));)d+=t.charAt(e),ht?ht=!1:(ht=t.charAt(e)==="\\",t.charAt(e)==="["?pt=!0:t.charAt(e)==="]"&&(pt=!1)),e+=1;else if(r.e4x&&st==="<"){var ti=/<(\/?)([-a-zA-Z:0-9_.]+|{[^{}]*}|!\[CDATA\[[\s\S]*?\]\])(\s+[-a-zA-Z:0-9_.]+\s*=\s*('[^']*'|"[^"]*"|{.*?}))*\s*(\/?)\s*>/g,ct=t.slice(e-1),ft=ti.exec(ct);if(ft&&ft.index===0){for(ii=ft[2],wt=0;ft;){var ui=!!ft[1],ri=ft[2],fi=!!ft[ft.length-1]||ri.slice(0,8)==="![CDATA[";if(ri!==ii||fi||(ui?--wt:++wt),wt<=0)break;ft=ti.exec(ct)}return kt=ft?ft.index+ft[0].length:ct.length,ct=ct.slice(0,kt),e+=kt-1,ct=ct.replace(i.lineBreak,"\n"),[ct,"TK_STRING"]}}else while(e<o&&(ht||t.charAt(e)!==st&&(st==="`"||!i.newline.test(t.charAt(e)))))(ht||st==="`")&&i.newline.test(t.charAt(e))?(t.charAt(e)==="\r"&&t.charAt(e+1)==="\n"&&(e+=1),d+="\n"):d+=t.charAt(e),ht?((t.charAt(e)==="x"||t.charAt(e)==="u")&&(ni=!0),ht=!1):ht=t.charAt(e)==="\\",e+=1;if(ni&&r.unescape_strings&&(d=ut(d)),e<o&&t.charAt(e)===st&&(d+=st,e+=1,st==="/"))while(e<o&&i.isIdentifierStart(t.charCodeAt(e)))d+=t.charAt(e),e+=1;return[d,"TK_STRING"]}if(v==="#"){if(s.length===0&&t.charAt(e)==="!"){for(d=v;e<o&&v!=="\n";)v=t.charAt(e),d+=v,e+=1;return[f(d)+"\n","TK_UNKNOWN"]}if(lt="#",e<o&&a.test(t.charAt(e))){do v=t.charAt(e),lt+=v,e+=1;while(e<o&&v!=="#"&&v!=="=");return v==="#"||(t.charAt(e)==="["&&t.charAt(e+1)==="]"?(lt+="[]",e+=2):t.charAt(e)==="{"&&t.charAt(e+1)==="}"&&(lt+="{}",e+=2)),[lt,"TK_WORD"]}}if(v==="<"&&(t.charAt(e)==="?"||t.charAt(e)==="%")&&(k.lastIndex=e-1,dt=k.exec(t),dt))return v=dt[0],e+=v.length-1,v=v.replace(i.lineBreak,"\n"),[v,"TK_STRING"];if(v==="<"&&t.substring(e-1,e+3)==="<!--"){for(e+=3,v="<!--";!i.newline.test(t.charAt(e))&&e<o;)v+=t.charAt(e),e++;return l=!0,[v,"TK_COMMENT"]}if(v==="-"&&l&&t.substring(e-1,e+2)==="-->")return l=!1,e+=2,["-->","TK_COMMENT"];if(v===".")return[v,"TK_DOT"];if(n(v,y)){while(e<o&&n(v+t.charAt(e),y))if(v+=t.charAt(e),e+=1,e>=o)break;return v===","?[v,"TK_COMMA"]:v==="="?[v,"TK_EQUALS"]:[v,"TK_OPERATOR"]}return[v,"TK_UNKNOWN"]}function ut(n){for(var e=!1,u="",r=0,f="",t=0,i;e||r<n.length;)if(i=n.charAt(r),r++,e){if(e=!1,i==="x")f=n.substr(r,2),r+=2;else if(i==="u")f=n.substr(r,4),r+=4;else{u+="\\"+i;continue}if(!f.match(/^[0123456789abcdefABCDEF]+$/))return n;if(t=parseInt(f,16),t>=0&&t<32){u+=i==="x"?"\\x"+f:"\\u"+f;continue}else if(t===34||t===39||t===92)u+="\\"+String.fromCharCode(t);else{if(i==="x"&&t>126&&t<=255)return n;u+=String.fromCharCode(t)}}else i==="\\"?e=!0:u+=i;return u}var g="\n\r\t ".split(""),a=/[0-9]/,nt=/[0123456789abcdefABCDEF]/,y=("+ - * / % & ++ -- = += -= *= /= %= == === != !== > < >= <= >> << >>> >>>= >>= <<= && &= | || ! ~ , : ? ^ ^= |= :: =>"+" <%= <% %> <?= <? ?>").split(" ");this.line_starters="continue,try,throw,return,var,let,const,if,switch,case,default,for,while,break,function,import,export".split(",");var tt=this.line_starters.concat(["do","in","else","get","set","new","catch","finally","typeof","yield","async","await"]),p=/([\s\S]*?)((?:\*\/)|$)/g,w=/([^\n\r\u2028\u2029]*)/g,it=/\/\* beautify( \w+[:]\w+)+ \*\//g,v=/ (\w+)[:](\w+)/g,b=/([\s\S]*?)((?:\/\*\sbeautify\signore:end\s\*\/)|$)/g,k=/((<\?php|<\?=)[\s\S]*?\?>)|(<%[\s\S]*?%>)/g,h,c,l,s,e,o;this.tokenize=function(){o=t.length;e=0;l=!1;s=[];for(var n,f,r,i=null,v=[],a=[];!(f&&f.type==="TK_EOF");){for(r=d(),n=new u(r[1],r[0],h,c);n.type==="TK_COMMENT"||n.type==="TK_BLOCK_COMMENT"||n.type==="TK_UNKNOWN";)n.type==="TK_BLOCK_COMMENT"&&(n.directives=r[2]),a.push(n),r=d(),n=new u(r[1],r[0],h,c);a.length&&(n.comments_before=a,a=[]);n.type==="TK_START_BLOCK"||n.type==="TK_START_EXPR"?(n.parent=f,v.push(i),i=n):(n.type==="TK_END_BLOCK"||n.type==="TK_END_EXPR")&&i&&(n.text==="]"&&i.text==="["||n.text===")"&&i.text==="("||n.text==="}"&&i.text==="{")&&(n.parent=i.parent,i=v.pop());s.push(n);f=n}return s}}var i={},t,u;(function(n){var t="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",i=new RegExp("["+t+"]"),r=new RegExp("["+t+"̀-ͯ҃-֑҇-ׇֽֿׁׂׅׄؐ-ؚؠ-ىٲ-ۓۧ-ۨۻ-ۼܰ-݊ࠀ-ࠔࠛ-ࠣࠥ-ࠧࠩ-࠭ࡀ-ࡗࣤ-ࣾऀ-ःऺ-़ा-ॏ॑-ॗॢ-ॣ०-९ঁ-ঃ়া-ৄেৈৗয়-ৠਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢ-ૣ૦-૯ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୟ-ୠ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఁ-ఃె-ైొ-్ౕౖౢ-ౣ౦-౯ಂಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢ-ೣ೦-೯ംഃെ-ൈൗൢ-ൣ൦-൯ංඃ්ා-ුූෘ-ෟෲෳิ-ฺเ-ๅ๐-๙ິ-ູ່-ໍ໐-໙༘༙༠-༩༹༵༷ཁ-ཇཱ-྄྆-྇ྍ-ྗྙ-ྼ࿆က-ဩ၀-၉ၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟ᜎ-ᜐᜠ-ᜰᝀ-ᝐᝲᝳក-ឲ៝០-៩᠋-᠍᠐-᠙ᤠ-ᤫᤰ-᤻ᥑ-ᥭᦰ-ᧀᧈ-ᧉ᧐-᧙ᨀ-ᨕᨠ-ᩓ᩠-᩿᩼-᪉᪐-᪙ᭆ-ᭋ᭐-᭙᭫-᭳᮰-᮹᯦-᯳ᰀ-ᰢ᱀-᱉ᱛ-ᱽ᳐-᳒ᴀ-ᶾḁ-ἕ‌‍‿⁀⁔⃐-⃥⃜⃡-⃰ⶁ-ⶖⷠ-ⷿ〡-〨゙゚Ꙁ-ꙭꙴ-꙽ꚟ꛰-꛱ꟸ-ꠀ꠆ꠋꠣ-ꠧꢀ-ꢁꢴ-꣄꣐-꣙ꣳ-ꣷ꤀-꤉ꤦ-꤭ꤰ-ꥅꦀ-ꦃ꦳-꧀ꨀ-ꨧꩀ-ꩁꩌ-ꩍ꩐-꩙ꩻꫠ-ꫩꫲ-ꫳꯀ-ꯡ꯬꯭꯰-꯹ﬠ-ﬨ︀-️︠-︦︳︴﹍-﹏0-9_]"),u=n.newline=/[\n\r\u2028\u2029]/,f=n.lineBreak=/\r\n|[\n\r\u2028\u2029]/g,e=n.isIdentifierStart=function(n){return n<65?n===36:n<91?!0:n<97?n===95:n<123?!0:n>=170&&i.test(String.fromCharCode(n))},o=n.isIdentifierChar=function(n){return n<48?n===36:n<58?!0:n<65?!1:n<91?!0:n<97?n===95:n<123?!0:n>=170&&r.test(String.fromCharCode(n))}})(i);t={BlockStatement:"BlockStatement",Statement:"Statement",ObjectLiteral:"ObjectLiteral",ArrayLiteral:"ArrayLiteral",ForInitializer:"ForInitializer",Conditional:"Conditional",Expression:"Expression"};u=function(n,t,i,r){this.type=n;this.text=t;this.comments_before=[];this.newlines=i||0;this.wanted_newline=i>0;this.whitespace_before=r||"";this.parent=null;this.directives=null};typeof define=="function"&&define.amd?define([],function(){return{js_beautify:r}}):typeof exports!="undefined"?exports.js_beautify=r:typeof window!="undefined"?window.js_beautify=r:typeof global!="undefined"&&(global.js_beautify=r)})(),function(){function i(n){return n.replace(/^\s+/g,"")}function t(n){return n.replace(/\s+$/g,"")}function n(n,r,u,f){function lt(){return this.pos=0,this.token="",this.current_mode="CONTENT",this.tags={parent:"parent1",parentcount:1,parent1:""},this.tag_type="",this.token_text=this.last_token=this.last_text=this.token_type="",this.newlines=0,this.indent_content=tt,this.Utils={whitespace:"\n\r\t ".split(""),single_token:"br,input,link,meta,source,!doctype,basefont,base,area,hr,wbr,param,img,isindex,embed".split(","),extra_liners:st,in_array:function(n,t){for(var i=0;i<t.length;i++)if(n===t[i])return!0;return!1}},this.is_whitespace=function(n){for(var t=0;t<n.length;n++)if(!this.Utils.in_array(n.charAt(t),this.Utils.whitespace))return!1;return!0},this.traverse_whitespace=function(){var n="";if(n=this.input.charAt(this.pos),this.Utils.in_array(n,this.Utils.whitespace)){for(this.newlines=0;this.Utils.in_array(n,this.Utils.whitespace);)b&&n==="\n"&&this.newlines<=ut&&(this.newlines+=1),this.pos++,n=this.input.charAt(this.pos);return!0}return!1},this.space_or_wrap=function(n){this.line_char_count>=this.wrap_line_length?(this.print_newline(!1,n),this.print_indentation(n)):(this.line_char_count++,n.push(" "))},this.get_content=function(){for(var i="",n=[],t;this.input.charAt(this.pos)!=="<";){if(this.pos>=this.input.length)return n.length?n.join(""):["","TK_EOF"];if(this.traverse_whitespace()){this.space_or_wrap(n);continue}if(o)if(t=this.input.substr(this.pos,3),t==="{{#"||t==="{{/")break;else{if(t==="{{!")return[this.get_tag(),"TK_TAG_HANDLEBARS_COMMENT"];if(this.input.substr(this.pos,2)==="{{"&&this.get_tag(!0)==="{{else}}")break}i=this.input.charAt(this.pos);this.pos++;this.line_char_count++;n.push(i)}return n.length?n.join(""):""},this.get_contents_to=function(n){var i,t;if(this.pos===this.input.length)return["","TK_EOF"];var r="",u=new RegExp("<\/"+n+"\\s*>","igm");return u.lastIndex=this.pos,i=u.exec(this.input),t=i?i.index:this.input.length,this.pos<t&&(r=this.input.substring(this.pos,t),this.pos=t),r},this.record_tag=function(n){this.tags[n+"count"]?(this.tags[n+"count"]++,this.tags[n+this.tags[n+"count"]]=this.indent_level):(this.tags[n+"count"]=1,this.tags[n+this.tags[n+"count"]]=this.indent_level);this.tags[n+this.tags[n+"count"]+"parent"]=this.tags.parent;this.tags.parent=n+this.tags[n+"count"]},this.retrieve_tag=function(n){if(this.tags[n+"count"]){for(var t=this.tags.parent;t;){if(n+this.tags[n+"count"]===t)break;t=this.tags[t+"parent"]}t&&(this.indent_level=this.tags[n+this.tags[n+"count"]],this.tags.parent=this.tags[t+"parent"]);delete this.tags[n+this.tags[n+"count"]+"parent"];delete this.tags[n+this.tags[n+"count"]];this.tags[n+"count"]===1?delete this.tags[n+"count"]:this.tags[n+"count"]--}},this.indent_to_tag=function(n){if(this.tags[n+"count"]){for(var t=this.tags.parent;t;){if(n+this.tags[n+"count"]===t)break;t=this.tags[t+"parent"]}t&&(this.indent_level=this.tags[n+this.tags[n+"count"]])}},this.get_tag=function(n){var i="",t=[],l="",f=!1,a=!0,s,d,e,v=this.pos,w=this.line_char_count,c,h,r,b,k,u;n=n!==undefined?n:!1;do{if(this.pos>=this.input.length)return n&&(this.pos=v,this.line_char_count=w),t.length?t.join(""):["","TK_EOF"];if(i=this.input.charAt(this.pos),this.pos++,this.Utils.in_array(i,this.Utils.whitespace)){f=!0;continue}if((i==="'"||i==='"')&&(i+=this.get_unformatted(i),f=!0),i==="="&&(f=!1),t.length&&t[t.length-1]!=="="&&i!==">"&&f){if(this.space_or_wrap(t),f=!1,!a&&ft==="force"&&i!=="/")for(this.print_newline(!0,t),this.print_indentation(t),c=0;c<et;c++)t.push(y);for(h=0;h<t.length;h++)if(t[h]===" "){a=!1;break}}if(o&&e==="<"&&i+this.input.charAt(this.pos)==="{{"&&(i+=this.get_unformatted("}}"),t.length&&t[t.length-1]!==" "&&t[t.length-1]!=="<"&&(i=" "+i),f=!0),i!=="<"||e||(s=this.pos-1,e="<"),o&&!e&&t.length>=2&&t[t.length-1]==="{"&&t[t.length-2]==="{"&&(s=i==="#"||i==="/"||i==="!"?this.pos-3:this.pos-2,e="{"),this.line_char_count++,t.push(i),t[1]&&(t[1]==="!"||t[1]==="?"||t[1]==="%")){t=[this.get_comment(s)];break}if(o&&t[1]&&t[1]==="{"&&t[2]&&t[2]==="!"){t=[this.get_comment(s)];break}if(o&&e==="{"&&t.length>2&&t[t.length-2]==="}"&&t[t.length-1]==="}")break}while(i!==">");return r=t.join(""),b=r.indexOf(" ")!==-1?r.indexOf(" "):r.charAt(0)==="{"?r.indexOf("}"):r.indexOf(">"),k=r.charAt(0)!=="<"&&o?r.charAt(2)==="#"?3:2:1,u=r.substring(k,b).toLowerCase(),r.charAt(r.length-2)==="/"||this.Utils.in_array(u,this.Utils.single_token)?n||(this.tag_type="SINGLE"):o&&r.charAt(0)==="{"&&u==="else"?n||(this.indent_to_tag("if"),this.tag_type="HANDLEBARS_ELSE",this.indent_content=!0,this.traverse_whitespace()):this.is_unformatted(u,p)?(l=this.get_unformatted("<\/"+u+">",r),t.push(l),d=this.pos-1,this.tag_type="SINGLE"):u==="script"&&(r.search("type")===-1||r.search("type")>-1&&r.search(/\b(text|application)\/(x-)?(javascript|ecmascript|jscript|livescript)/)>-1)?n||(this.record_tag(u),this.tag_type="SCRIPT"):u==="style"&&(r.search("type")===-1||r.search("type")>-1&&r.search("text/css")>-1)?n||(this.record_tag(u),this.tag_type="STYLE"):u.charAt(0)==="!"?n||(this.tag_type="SINGLE",this.traverse_whitespace()):n||(u.charAt(0)==="/"?(this.retrieve_tag(u.substring(1)),this.tag_type="END"):(this.record_tag(u),u.toLowerCase()!=="html"&&(this.indent_content=!0),this.tag_type="START"),this.traverse_whitespace()&&this.space_or_wrap(t),this.Utils.in_array(u,this.Utils.extra_liners)&&(this.print_newline(!1,this.output),this.output.length&&this.output[this.output.length-2]!=="\n"&&this.print_newline(!0,this.output))),n&&(this.pos=v,this.line_char_count=w),t.join("")},this.get_comment=function(n){var t="",i=">",r=!1;for(this.pos=n,input_char=this.input.charAt(this.pos),this.pos++;this.pos<=this.input.length;){if(t+=input_char,t.charAt(t.length-1)===i.charAt(i.length-1)&&t.indexOf(i)!==-1)break;!r&&t.length<10&&(t.indexOf("<![if")===0?(i="<![endif]>",r=!0):t.indexOf("<![cdata[")===0?(i="]\]>",r=!0):t.indexOf("<![")===0?(i="]>",r=!0):t.indexOf("<!--")===0?(i="-->",r=!0):t.indexOf("{{!")===0?(i="}}",r=!0):t.indexOf("<?")===0?(i="?>",r=!0):t.indexOf("<%")===0&&(i="%>",r=!0));input_char=this.input.charAt(this.pos);this.pos++}return t},this.get_unformatted=function(n,t){if(t&&t.toLowerCase().indexOf(n)!==-1)return"";var r="",i="",u=0,f=!0;do{if(this.pos>=this.input.length)return i;if(r=this.input.charAt(this.pos),this.pos++,this.Utils.in_array(r,this.Utils.whitespace)){if(!f){this.line_char_count--;continue}if(r==="\n"||r==="\r"){i+="\n";this.line_char_count=0;continue}}i+=r;this.line_char_count++;f=!0;o&&r==="{"&&i.length&&i.charAt(i.length-2)==="{"&&(i+=this.get_unformatted("}}"),u=i.length)}while(i.toLowerCase().indexOf(n,u)===-1);return i},this.get_token=function(){var n,t,i;return this.last_token==="TK_TAG_SCRIPT"||this.last_token==="TK_TAG_STYLE"?(t=this.last_token.substr(7),n=this.get_contents_to(t),typeof n!="string")?n:[n,"TK_"+t]:this.current_mode==="CONTENT"?(n=this.get_content(),typeof n!="string"?n:[n,"TK_CONTENT"]):this.current_mode==="TAG"?(n=this.get_tag(),typeof n!="string"?n:(i="TK_TAG_"+this.tag_type,[n,i])):void 0},this.get_full_indent=function(n){return(n=this.indent_level+n||0,n<1)?"":Array(n+1).join(this.indent_string)},this.is_unformatted=function(n,t){if(!this.Utils.in_array(n,t))return!1;if(n.toLowerCase()!=="a"||!this.Utils.in_array("a",t))return!0;var r=this.get_tag(!0),i=(r||"").match(/^\s*<\s*\/?([a-z]*)\s*[^>]*>\s*$/);return!i||this.Utils.in_array(i,t)?!0:!1},this.printer=function(n,r,u,f,e){this.input=n||"";this.input=this.input.replace(/\r\n|[\r\u2028\u2029]/g,"\n");this.output=[];this.indent_character=r;this.indent_string="";this.indent_size=u;this.brace_style=e;this.indent_level=0;this.wrap_line_length=f;this.line_char_count=0;for(var o=0;o<this.indent_size;o++)this.indent_string+=this.indent_character;this.print_newline=function(n,i){(this.line_char_count=0,i&&i.length)&&(n||i[i.length-1]!=="\n")&&(i[i.length-1]!=="\n"&&(i[i.length-1]=t(i[i.length-1])),i.push("\n"))};this.print_indentation=function(n){for(var t=0;t<this.indent_level;t++)n.push(this.indent_string),this.line_char_count+=this.indent_string.length};this.print_token=function(n){(!this.is_whitespace(n)||this.output.length)&&((n||n!=="")&&this.output.length&&this.output[this.output.length-1]==="\n"&&(this.print_indentation(this.output),n=i(n)),this.print_token_raw(n))};this.print_token_raw=function(n){this.newlines>0&&(n=t(n));n&&n!==""&&(n.length>1&&n.charAt(n.length-1)==="\n"?(this.output.push(n.slice(0,-1)),this.print_newline(!1,this.output)):this.output.push(n));for(var i=0;i<this.newlines;i++)this.print_newline(i>0,this.output);this.newlines=0};this.indent=function(){this.indent_level++};this.unindent=function(){this.indent_level>0&&this.indent_level--}},this}var e,tt,h,y,it,rt,p,b,ut,o,ft,et,ot,st,c,k,ht,l,d,s,w,a,g,nt,ct,v;for(r=r||{},(r.wrap_line_length===undefined||parseInt(r.wrap_line_length,10)===0)&&r.max_char!==undefined&&parseInt(r.max_char,10)!==0&&(r.wrap_line_length=r.max_char),tt=r.indent_inner_html===undefined?!1:r.indent_inner_html,h=r.indent_size===undefined?4:parseInt(r.indent_size,10),y=r.indent_char===undefined?" ":r.indent_char,rt=r.brace_style===undefined?"collapse":r.brace_style,it=parseInt(r.wrap_line_length,10)===0?32786:parseInt(r.wrap_line_length||250,10),p=r.unformatted||["a","span","img","bdo","em","strong","dfn","code","samp","kbd","var","cite","abbr","acronym","q","sub","sup","tt","i","b","big","small","u","s","strike","font","ins","del","pre","address","dt","h1","h2","h3","h4","h5","h6"],b=r.preserve_newlines===undefined?!0:r.preserve_newlines,ut=b?isNaN(parseInt(r.max_preserve_newlines,10))?32786:parseInt(r.max_preserve_newlines,10):0,o=r.indent_handlebars===undefined?!1:r.indent_handlebars,ft=r.wrap_attributes===undefined?"auto":r.wrap_attributes,et=r.wrap_attributes_indent_size===undefined?h:parseInt(r.wrap_attributes_indent_size,10)||h,ot=r.end_with_newline===undefined?!1:r.end_with_newline,st=typeof r.extra_liners=="object"&&r.extra_liners?r.extra_liners.concat():typeof r.extra_liners=="string"?r.extra_liners.split(","):"head,body,/html".split(","),c=r.eol?r.eol:"\n",r.indent_with_tabs&&(y="\t",h=1),c=c.replace(/\\r/,"\r").replace(/\\n/,"\n"),e=new lt,e.printer(n,y,h,it,rt);;){if(k=e.get_token(),e.token_text=k[0],e.token_type=k[1],e.token_type==="TK_EOF")break;switch(e.token_type){case"TK_TAG_START":e.print_newline(!1,e.output);e.print_token(e.token_text);e.indent_content&&(e.indent(),e.indent_content=!1);e.current_mode="CONTENT";break;case"TK_TAG_STYLE":case"TK_TAG_SCRIPT":e.print_newline(!1,e.output);e.print_token(e.token_text);e.current_mode="CONTENT";break;case"TK_TAG_END":e.last_token==="TK_CONTENT"&&e.last_text===""&&(ht=e.token_text.match(/\w+/)[0],l=null,e.output.length&&(l=e.output[e.output.length-1].match(/(?:<|{{#)\s*(\w+)/)),l!==null&&(l[1]===ht||e.Utils.in_array(l[1],p))||e.print_newline(!1,e.output));e.print_token(e.token_text);e.current_mode="CONTENT";break;case"TK_TAG_SINGLE":d=e.token_text.match(/^\s*<([a-z-]+)/i);d&&e.Utils.in_array(d[1],p)||e.print_newline(!1,e.output);e.print_token(e.token_text);e.current_mode="CONTENT";break;case"TK_TAG_HANDLEBARS_ELSE":e.print_token(e.token_text);e.indent_content&&(e.indent(),e.indent_content=!1);e.current_mode="CONTENT";break;case"TK_TAG_HANDLEBARS_COMMENT":e.print_token(e.token_text);e.current_mode="TAG";break;case"TK_CONTENT":e.print_token(e.token_text);e.current_mode="TAG";break;case"TK_STYLE":case"TK_SCRIPT":if(e.token_text!==""){if(e.print_newline(!1,e.output),s=e.token_text,a=1,e.token_type==="TK_SCRIPT"?w=typeof u=="function"&&u:e.token_type==="TK_STYLE"&&(w=typeof f=="function"&&f),r.indent_scripts==="keep"?a=0:r.indent_scripts==="separate"&&(a=-e.indent_level),g=e.get_full_indent(a),w)nt=function(){this.eol="\n"},nt.prototype=r,ct=new nt,s=w(s.replace(/^\s*/,g),ct);else{var at=s.match(/^\s*/)[0],vt=at.match(/[^\n\r]*$/)[0].split(e.indent_string).length-1,yt=e.get_full_indent(a-vt);s=s.replace(/^\s*/,g).replace(/\r\n|\r|\n/g,"\n"+yt).replace(/\s+$/,"")}s&&(e.print_token_raw(s),e.print_newline(!0,e.output))}e.current_mode="TAG";break;default:e.token_text!==""&&e.print_token(e.token_text)}e.last_token=e.token_type;e.last_text=e.token_text}return v=e.output.join("").replace(/[\r\n\t ]+$/,""),ot&&(v+="\n"),c!="\n"&&(v=v.replace(/[\n]/g,c)),v}if(typeof define=="function"&&define.amd)define(["require","./beautify","./beautify-css"],function(t){var i=t("./beautify"),r=t("./beautify-css");return{html_beautify:function(t,u){return n(t,u,i.js_beautify,r.css_beautify)}}});else if(typeof exports!="undefined"){var r=require("./beautify.js"),u=require("./beautify-css.js");exports.html_beautify=function(t,i){return n(t,i,r.js_beautify,u.css_beautify)}}else typeof window!="undefined"?window.html_beautify=function(t,i){return n(t,i,window.js_beautify,window.css_beautify)}:typeof global!="undefined"&&(global.html_beautify=function(t,i){return n(t,i,global.js_beautify,global.css_beautify)})}()
@@ -1 +1 @@
1
- (function(n){typeof exports=="object"&&typeof module=="object"?n(require("../../lib/codemirror")):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],n):n(CodeMirror)})(function(n){function r(n,t){return t=="pairs"&&typeof n=="string"?n:typeof n=="object"&&n[t]!=null?n[t]:o[t]}function h(n){return function(t){return a(t,n)}}function e(n){var t=n.state.closeBrackets,i;return t?(i=n.getModeAt(n.getCursor()),i.closeBrackets||t):null}function c(i){var c=e(i),l,f,h,u,o;if(!c||i.getOption("disableInput"))return n.Pass;for(l=r(c,"pairs"),f=i.listSelections(),u=0;u<f.length;u++)if(!f[u].empty()||(h=s(i,f[u].head),!h||l.indexOf(h)%2!=0))return n.Pass;for(u=f.length-1;u>=0;u--)o=f[u].head,i.replaceRange("",t(o.line,o.ch-1),t(o.line,o.ch+1))}function l(t){var o=e(t),h=o&&r(o,"explode"),i,u,f;if(!h||t.getOption("disableInput"))return n.Pass;for(i=t.listSelections(),u=0;u<i.length;u++)if(!i[u].empty()||(f=s(t,i[u].head),!f||h.indexOf(f)%2!=0))return n.Pass;t.operation(function(){var n,r;for(t.replaceSelection("\n\n",null),t.execCommand("goCharLeft"),i=t.listSelections(),n=0;n<i.length;n++)r=i[n].head.line,t.indentLine(r,null,!0),t.indentLine(r+1,null,!0)})}function a(i,u){var b=e(i),l,o,p,h,w;if(!b||i.getOption("disableInput")||(l=r(b,"pairs"),o=l.indexOf(u),o==-1))return n.Pass;var g=r(b,"triples"),k=l.charAt(o+1)==u,nt=i.listSelections(),d=o%2==0,s,a;for(p=0;p<nt.length;p++){var tt=nt[p],f=tt.head,c,a=i.getRange(f,t(f.line,f.ch+1));if(d&&!tt.empty())c="surround";else if((k||!d)&&a==u)c=g.indexOf(u)>=0&&i.getRange(f,t(f.line,f.ch+3))==u+u+u?"skipThree":"skip";else if(k&&f.ch>1&&g.indexOf(u)>=0&&i.getRange(t(f.line,f.ch-2),f)==u+u&&(f.ch<=2||i.getRange(t(f.line,f.ch-3),t(f.line,f.ch-2))!=u))c="addFour";else if(k)if(!n.isWordChar(a)&&y(i,f,u))c="both";else return n.Pass;else if(d&&(i.getLine(f.line).length==f.ch||v(a,l)||/\s/.test(a)))c="both";else return n.Pass;if(s){if(s!=c)return n.Pass}else s=c}h=o%2?l.charAt(o-1):u;w=o%2?u:l.charAt(o+1);i.operation(function(){var t,n;if(s=="skip")i.execCommand("goCharRight");else if(s=="skipThree")for(n=0;n<3;n++)i.execCommand("goCharRight");else if(s=="surround"){for(t=i.getSelections(),n=0;n<t.length;n++)t[n]=h+t[n]+w;i.replaceSelections(t,"around")}else s=="both"?(i.replaceSelection(h+w,null),i.triggerElectric(h+w),i.execCommand("goCharLeft")):s=="addFour"&&(i.replaceSelection(h+h+h+h,"before"),i.execCommand("goCharRight"))})}function v(n,t){var i=t.lastIndexOf(n);return i>-1&&i%2==1}function s(n,i){var r=n.getRange(t(i.line,i.ch-1),t(i.line,i.ch+1));return r.length==2?r:null}function y(t,i,r){var e=t.getLine(i.line),f=t.getTokenAt(i),u,o;if(/\bstring2?\b/.test(f.type))return!1;for(u=new n.StringStream(e.slice(0,i.ch)+r+e.slice(i.ch),4),u.pos=u.start=f.start;;){if(o=t.getMode().token(u,f.state),u.pos>=i.ch+1)return/\bstring2?\b/.test(o);u.start=u.pos}}var o={pairs:"()[]{}''\"\"",triples:"",explode:"[]{}"},t=n.Pos,u,f,i;for(n.defineOption("autoCloseBrackets",!1,function(t,i,r){r&&r!=n.Init&&(t.removeKeyMap(f),t.state.closeBrackets=null);i&&(t.state.closeBrackets=i,t.addKeyMap(f))}),u=o.pairs+"`",f={Backspace:c,Enter:l},i=0;i<u.length;i++)f["'"+u.charAt(i)+"'"]=h(u.charAt(i))}),function(n){typeof exports=="object"&&typeof module=="object"?n(require("../../lib/codemirror"),require("../fold/xml-fold")):typeof define=="function"&&define.amd?define(["../../lib/codemirror","../fold/xml-fold"],n):n(CodeMirror)}(function(n){function e(t){var h,p,b,y,e,l,k;if(t.getOption("disableInput"))return n.Pass;for(h=t.listSelections(),p=[],e=0;e<h.length;e++){if(!h[e].empty())return n.Pass;var s=h[e].head,o=t.getTokenAt(s),w=n.innerMode(t.getMode(),o.state),a=w.state;if(w.mode.name!="xml"||!a.tagName)return n.Pass;var v=t.getOption("autoCloseTags"),d=w.mode.configuration=="html",g=typeof v=="object"&&v.dontCloseTags||d&&u,nt=typeof v=="object"&&v.indentTags||d&&f,c=a.tagName;if(o.end>s.ch&&(c=c.slice(0,c.length-o.end+s.ch)),b=c.toLowerCase(),!c||o.type=="string"&&(o.end!=s.ch||!/[\"\']/.test(o.string.charAt(o.string.length-1))||o.string.length==1)||o.type=="tag"&&a.type=="closeTag"||o.string.indexOf("/")==o.string.length-1||g&&i(g,b)>-1||r(t,c,s,a,!0))return n.Pass;y=nt&&i(nt,b)>-1;p[e]={indent:y,text:">"+(y?"\n\n":"")+"<\/"+c+">",newPos:y?n.Pos(s.line+1,0):n.Pos(s.line,s.ch+1)}}for(e=h.length-1;e>=0;e--)l=p[e],t.replaceRange(l.text,h[e].head,h[e].anchor,"+insert"),k=t.listSelections().slice(0),k[e]={head:l.newPos,anchor:l.newPos},t.setSelections(k),l.indent&&(t.indentLine(l.newPos.line,null,!0),t.indentLine(l.newPos.line+1,null,!0))}function t(t,i){for(var f=t.listSelections(),o=[],c=i?"/":"<\/",u=0;u<f.length;u++){if(!f[u].empty())return n.Pass;var l=f[u].head,s=t.getTokenAt(l),h=n.innerMode(t.getMode(),s.state),e=h.state;if(i&&(s.type=="string"||s.string.charAt(0)!="<"||s.start!=l.ch-1))return n.Pass;if(h.mode.name!="xml")if(t.getMode().name=="htmlmixed"&&h.mode.name=="javascript")o[u]=c+"script>";else if(t.getMode().name=="htmlmixed"&&h.mode.name=="css")o[u]=c+"style>";else return n.Pass;else{if(!e.context||!e.context.tagName||r(t,e.context.tagName,l,e))return n.Pass;o[u]=c+e.context.tagName+">"}}for(t.replaceSelections(o),f=t.listSelections(),u=0;u<f.length;u++)(u==f.length-1||f[u].head.line<f[u+1].head.line)&&t.indentLine(f[u].head.line)}function o(i){return i.getOption("disableInput")?n.Pass:t(i,!0)}function i(n,t){if(n.indexOf)return n.indexOf(t);for(var i=0,r=n.length;i<r;++i)if(n[i]==t)return i;return-1}function r(t,i,r,u,f){var h,o,e,c,l,s;if(!n.scanForClosingTag||(h=Math.min(t.lastLine()+1,r.line+500),o=n.scanForClosingTag(t,r,null,h),!o||o.tag!=i))return!1;for(e=u.context,c=f?1:0;e&&e.tagName==i;e=e.prev)++c;for(r=o.to,l=1;l<c;l++){if(s=n.scanForClosingTag(t,r,null,h),!s||s.tag!=i)return!1;r=s.to}return!0}n.defineOption("autoCloseTags",!1,function(t,i,r){if(r!=n.Init&&r&&t.removeKeyMap("autoCloseTags"),i){var u={name:"autoCloseTags"};(typeof i!="object"||i.whenClosing)&&(u["'/'"]=function(n){return o(n)});(typeof i!="object"||i.whenOpening)&&(u["'>'"]=function(n){return e(n)});t.addKeyMap(u)}});var u=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],f=["applet","blockquote","body","button","div","dl","fieldset","form","frameset","h1","h2","h3","h4","h5","h6","head","html","iframe","layer","legend","object","ol","p","select","table","ul"];n.commands.closeTag=function(n){return t(n)}}),function(n){typeof exports=="object"&&typeof module=="object"?n(require("../../lib/codemirror")):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],n):n(CodeMirror)}(function(n){function r(t){var o,i,v,h,s,f,y,r,l,c,p,a,e;if(t.getOption("disableInput"))return n.Pass;for(o=t.listSelections(),v=[],h=0;h<o.length;h++){if(s=o[h].head,f=t.getTokenAt(s),f.type!="comment")return n.Pass;if(y=n.innerMode(t.getMode(),f.state).mode,i){if(i!=y)return n.Pass}else i=y;if(r=null,i.blockCommentStart&&i.blockCommentContinue){if(l=f.string.indexOf(i.blockCommentEnd),c=t.getRange(n.Pos(s.line,0),n.Pos(s.line,f.end)),l==-1||l!=f.string.length-i.blockCommentEnd.length||!(s.ch>=l))if(f.string.indexOf(i.blockCommentStart)==0){if(r=c.slice(0,f.start),!/^\s*$/.test(r))for(r="",p=0;p<f.start;++p)r+=" "}else(e=c.indexOf(i.blockCommentContinue))!=-1&&e+i.blockCommentContinue.length>f.start&&/^\s*$/.test(c.slice(0,e))&&(r=c.slice(0,e));r!=null&&(r+=i.blockCommentContinue)}if(r==null&&i.lineComment&&u(t)&&(a=t.getLine(s.line),e=a.indexOf(i.lineComment),e>-1&&(r=a.slice(0,e),/\S/.test(r)?r=null:r+=i.lineComment+a.slice(e+i.lineComment.length).match(/^\s*/)[0])),r==null)return n.Pass;v[h]="\n"+r}t.operation(function(){for(var n=o.length-1;n>=0;n--)t.replaceRange(v[n],o[n].from(),o[n].to(),"+insert")})}function u(n){var t=n.getOption("continueComments");return t&&typeof t=="object"?t.continueLineComment!==!1:!0}for(var i=["clike","css","javascript"],t=0;t<i.length;++t)n.extendMode(i[t],{blockCommentContinue:" * "});n.defineOption("continueComments",null,function(t,i,u){var f,e;u&&u!=n.Init&&t.removeKeyMap("continueComment");i&&(f="Enter",typeof i=="string"?f=i:typeof i=="object"&&i.key&&(f=i.key),e={name:"continueComment"},e[f]=r,t.addKeyMap(e))})}),function(n){typeof exports=="object"&&typeof module=="object"?n(require("../../lib/codemirror")):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],n):n(CodeMirror)}(function(n){function u(n,i,u,e){var l=n.getLineHandle(i.line),o=i.ch-1,c=o>=0&&r[l.text.charAt(o)]||r[l.text.charAt(++o)],h,a,s;return c?(h=c.charAt(1)==">"?1:-1,u&&h>0!=(o==i.ch))?null:(a=n.getTokenTypeAt(t(i.line,o+1)),s=f(n,t(i.line,o+(h>0?1:0)),h,a||null,e),s==null)?null:{from:t(i.line,o),to:s&&s.pos,match:s&&s.ch==c.charAt(0),forward:h>0}:null}function f(n,i,u,f,e){for(var h,s,v,c,y,p=e&&e.maxScanLineLength||1e4,a=e&&e.maxScanLines||1e3,l=[],w=e&&e.bracketRegex?e.bracketRegex:/[(){}[\]]/,b=u>0?Math.min(i.line+a,n.lastLine()+1):Math.max(n.firstLine()-1,i.line-a),o=i.line;o!=b;o+=u)if((h=n.getLine(o),h)&&(s=u>0?0:h.length-1,v=u>0?h.length:-1,!(h.length>p)))for(o==i.line&&(s=i.ch-(u<0?1:0));s!=v;s+=u)if(c=h.charAt(s),w.test(c)&&(f===undefined||n.getTokenTypeAt(t(o,s+1))==f))if(y=r[c],y.charAt(1)==">"==u>0)l.push(c);else if(l.length)l.pop();else return{pos:t(o,s),ch:c};return o-u==(u>0?n.lastLine():n.firstLine())?!1:null}function e(n,i,r){for(var f,c,l,a=n.state.matchBrackets.maxHighlightLineLength||1e3,e=[],h=n.listSelections(),o=0;o<h.length;o++)f=h[o].empty()&&u(n,h[o].head,!1,r),f&&n.getLine(f.from.line).length<=a&&(c=f.match?"CodeMirror-matchingbracket":"CodeMirror-nonmatchingbracket",e.push(n.markText(f.from,t(f.from.line,f.from.ch+1),{className:c})),f.to&&n.getLine(f.to.line).length<=a&&e.push(n.markText(f.to,t(f.to.line,f.to.ch+1),{className:c})));if(e.length)if(s&&n.state.focused&&n.focus(),l=function(){n.operation(function(){for(var n=0;n<e.length;n++)e[n].clear()})},i)setTimeout(l,800);else return l}function o(n){n.operation(function(){i&&(i(),i=null);i=e(n,!1,n.state.matchBrackets)})}var s=/MSIE \d/.test(navigator.userAgent)&&(document.documentMode==null||document.documentMode<8),t=n.Pos,r={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<"},i=null;n.defineOption("matchBrackets",!1,function(t,i,r){if(r&&r!=n.Init&&t.off("cursorActivity",o),i){t.state.matchBrackets=typeof i=="object"?i:{};t.on("cursorActivity",o)}});n.defineExtension("matchBrackets",function(){e(this,!0)});n.defineExtension("findMatchingBracket",function(n,t,i){return u(this,n,t,i)});n.defineExtension("scanForBracket",function(n,t,i,r){return f(this,n,t,i,r)})}),function(n){typeof exports=="object"&&typeof module=="object"?n(require("../../lib/codemirror"),require("../fold/xml-fold")):typeof define=="function"&&define.amd?define(["../../lib/codemirror","../fold/xml-fold"],n):n(CodeMirror)}(function(n){"use strict";function i(n){n.state.tagHit&&n.state.tagHit.clear();n.state.tagOther&&n.state.tagOther.clear();n.state.tagHit=n.state.tagOther=null}function t(t){t.state.failedTagMatch=!1;t.operation(function(){var f,u,r,e,o;(i(t),t.somethingSelected())||(f=t.getCursor(),u=t.getViewport(),u.from=Math.min(u.from,f.line),u.to=Math.max(f.line+1,u.to),r=n.findMatchingTag(t,f,u),r)&&(t.state.matchBothTags&&(e=r.at=="open"?r.open:r.close,e&&(t.state.tagHit=t.markText(e.from,e.to,{className:"CodeMirror-matchingtag"}))),o=r.at=="close"?r.open:r.close,o?t.state.tagOther=t.markText(o.from,o.to,{className:"CodeMirror-matchingtag"}):t.state.failedTagMatch=!0)})}function r(n){n.state.failedTagMatch&&t(n)}n.defineOption("matchTags",!1,function(u,f,e){if(e&&e!=n.Init&&(u.off("cursorActivity",t),u.off("viewportChange",r),i(u)),f){u.state.matchBothTags=typeof f=="object"&&f.bothTags;u.on("cursorActivity",t);u.on("viewportChange",r);t(u)}});n.commands.toMatchingTag=function(t){var i=n.findMatchingTag(t,t.getCursor()),r;i&&(r=i.at=="close"?i.open:i.close,r&&t.extendSelection(r.to,r.from))}}),function(n){typeof exports=="object"&&typeof module=="object"?n(require("../../lib/codemirror")):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],n):n(CodeMirror)}(function(n){n.defineOption("showTrailingSpace",!1,function(t,i,r){r==n.Init&&(r=!1);r&&!i?t.removeOverlay("trailingspace"):!r&&i&&t.addOverlay({token:function(n){for(var i=n.string.length,t=i;t&&/\s/.test(n.string.charAt(t-1));--t);return t>n.pos?(n.pos=t,null):(n.pos=i,"trailingspace")},name:"trailingspace"})})}),function(n){typeof exports=="object"&&typeof module=="object"?n(require("../../lib/codemirror")):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],n):n(CodeMirror)}(function(n){"use strict";function i(i,u,f,e){function a(n){var t=s(i,u),f,r;if(!t||t.to.line-t.from.line<l)return null;for(f=i.findMarksAt(t.from),r=0;r<f.length;++r)if(f[r].__isFold&&e!=="fold"){if(!n)return null;t.cleared=!0;f[r].clear()}return t}var s,l,o,h,c;if(f&&f.call?(s=f,f=null):s=t(i,f,"rangeFinder"),typeof u=="number"&&(u=n.Pos(u,0)),l=t(i,f,"minFoldSize"),o=a(!0),t(i,f,"scanUp"))while(!o&&u.line>i.firstLine())u=n.Pos(u.line-1,0),o=a(!1);if(o&&!o.cleared&&e!=="unfold"){h=r(i,f);n.on(h,"mousedown",function(t){c.clear();n.e_preventDefault(t)});c=i.markText(o.from,o.to,{replacedWith:h,clearOnEnter:!0,__isFold:!0});c.on("clear",function(t,r){n.signal(i,"unfold",i,t,r)});n.signal(i,"fold",i,o.from,o.to)}}function r(n,i){var r=t(n,i,"widget"),u;return typeof r=="string"&&(u=document.createTextNode(r),r=document.createElement("span"),r.appendChild(u),r.className="CodeMirror-foldmarker"),r}function t(n,t,i){if(t&&t[i]!==undefined)return t[i];var r=n.options.foldOptions;return r&&r[i]!==undefined?r[i]:u[i]}n.newFoldFunction=function(n,t){return function(r,u){i(r,u,{rangeFinder:n,widget:t})}};n.defineExtension("foldCode",function(n,t,r){i(this,n,t,r)});n.defineExtension("isFolded",function(n){for(var i=this.findMarksAt(n),t=0;t<i.length;++t)if(i[t].__isFold)return!0});n.commands.toggleFold=function(n){n.foldCode(n.getCursor())};n.commands.fold=function(n){n.foldCode(n.getCursor(),null,"fold")};n.commands.unfold=function(n){n.foldCode(n.getCursor(),null,"unfold")};n.commands.foldAll=function(t){t.operation(function(){for(var i=t.firstLine(),r=t.lastLine();i<=r;i++)t.foldCode(n.Pos(i,0),null,"fold")})};n.commands.unfoldAll=function(t){t.operation(function(){for(var i=t.firstLine(),r=t.lastLine();i<=r;i++)t.foldCode(n.Pos(i,0),null,"unfold")})};n.registerHelper("fold","combine",function(){var n=Array.prototype.slice.call(arguments,0);return function(t,i){for(var u,r=0;r<n.length;++r)if(u=n[r](t,i),u)return u}});n.registerHelper("fold","auto",function(n,t){for(var r,u=n.getHelpers(t,"fold"),i=0;i<u.length;i++)if(r=u[i](n,t),r)return r});var u={rangeFinder:n.fold.auto,widget:"↔",minFoldSize:0,scanUp:!1};n.defineOption("foldOptions",null);n.defineExtension("foldOption",function(n,i){return t(this,n,i)})}),function(n){typeof exports=="object"&&typeof module=="object"?n(require("../../lib/codemirror"),require("./foldcode")):typeof define=="function"&&define.amd?define(["../../lib/codemirror","./foldcode"],n):n(CodeMirror)}(function(n){"use strict";function c(n){this.options=n;this.from=this.to=0}function l(n){return n===!0&&(n={}),n.gutter==null&&(n.gutter="CodeMirror-foldgutter"),n.indicatorOpen==null&&(n.indicatorOpen="CodeMirror-foldgutter-open"),n.indicatorFolded==null&&(n.indicatorFolded="CodeMirror-foldgutter-folded"),n}function f(n,t){for(var r=n.findMarksAt(u(t)),i=0;i<r.length;++i)if(r[i].__isFold&&r[i].find().from.line==t)return r[i]}function e(n){if(typeof n=="string"){var t=document.createElement("div");return t.className=n+" CodeMirror-guttermarker-subtle",t}return n.cloneNode(!0)}function i(n,t,i){var r=n.state.foldGutter.options,o=t,h=n.foldOption(r,"minFoldSize"),s=n.foldOption(r,"rangeFinder");n.eachLine(t,i,function(t){var c=null,l,i;f(n,o)?c=e(r.indicatorFolded):(l=u(o,0),i=s&&s(n,l),i&&i.to.line-i.from.line>=h&&(c=e(r.indicatorOpen)));n.setGutterMarker(t,r.gutter,c);++o})}function t(n){var t=n.getViewport(),r=n.state.foldGutter;r&&(n.operation(function(){i(n,t.from,t.to)}),r.from=t.from,r.to=t.to)}function o(n,t,i){var o=n.state.foldGutter,r,e;o&&(r=o.options,i==r.gutter)&&(e=f(n,t),e?e.clear():n.foldCode(u(t,0),r.rangeFinder))}function s(n){var i=n.state.foldGutter,r;i&&(r=i.options,i.from=i.to=0,clearTimeout(i.changeUpdate),i.changeUpdate=setTimeout(function(){t(n)},r.foldOnChangeTimeSpan||600))}function h(n){var r=n.state.foldGutter,u;r&&(u=r.options,clearTimeout(r.changeUpdate),r.changeUpdate=setTimeout(function(){var u=n.getViewport();r.from==r.to||u.from-r.to>20||r.from-u.to>20?t(n):n.operation(function(){u.from<r.from&&(i(n,u.from,r.from),r.from=u.from);u.to>r.to&&(i(n,r.to,u.to),r.to=u.to)})},u.updateViewportTimeSpan||400))}function r(n,t){var u=n.state.foldGutter,r;u&&(r=t.line,r>=u.from&&r<u.to&&i(n,r,r+1))}n.defineOption("foldGutter",!1,function(i,u,f){if(f&&f!=n.Init&&(i.clearGutter(i.state.foldGutter.options.gutter),i.state.foldGutter=null,i.off("gutterClick",o),i.off("change",s),i.off("viewportChange",h),i.off("fold",r),i.off("unfold",r),i.off("swapDoc",t)),u){i.state.foldGutter=new c(l(u));t(i);i.on("gutterClick",o);i.on("change",s);i.on("viewportChange",h);i.on("fold",r);i.on("unfold",r);i.on("swapDoc",t)}});var u=n.Pos}),function(n){typeof exports=="object"&&typeof module=="object"?n(require("../../lib/codemirror")):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],n):n(CodeMirror)}(function(n){"use strict";n.registerHelper("fold","brace",function(t,i){function p(r){for(var u,e=i.ch,o=0;;){if(u=e<=0?-1:y.lastIndexOf(r,e-1),u==-1){if(o==1)break;o=1;e=y.length;continue}if(o==1&&u<i.ch)break;if(l=t.getTokenTypeAt(n.Pos(f,u+1)),!/^(comment|string)/.test(l))return u+1;e=u-1}}var f=i.line,y=t.getLine(f),l,w="{",b="}",e=p("{"),a,k,h,v,u,o,r,s,c;if(e==null&&(w="[",b="]",e=p("[")),e!=null){a=1;k=t.lastLine();n:for(u=f;u<=k;++u)for(o=t.getLine(u),r=u==f?e:0;;){if(s=o.indexOf(w,r),c=o.indexOf(b,r),s<0&&(s=o.length),c<0&&(c=o.length),r=Math.min(s,c),r==o.length)break;if(t.getTokenTypeAt(n.Pos(u,r+1))==l)if(r==s)++a;else if(!--a){h=u;v=r;break n}++r}if(h!=null&&(f!=h||v!=e))return{from:n.Pos(f,e),to:n.Pos(h,v)}}});n.registerHelper("fold","import",function(t,i){function r(i){var r,u,e,o,f;if(i<t.firstLine()||i>t.lastLine()||(r=t.getTokenAt(n.Pos(i,1)),/\S/.test(r.string)||(r=t.getTokenAt(n.Pos(i,r.end+1))),r.type!="keyword"||r.string!="import"))return null;for(u=i,e=Math.min(t.lastLine(),i+10);u<=e;++u)if(o=t.getLine(u),f=o.indexOf(";"),f!=-1)return{startCh:r.end,end:n.Pos(u,f)}}var i=i.line,f=r(i),o,u,e;if(!f||r(i-1)||(o=r(i-2))&&o.end.line==i-1)return null;for(u=f.end;;){if(e=r(u.line+1),e==null)break;u=e.end}return{from:t.clipPos(n.Pos(i,f.startCh+1)),to:u}});n.registerHelper("fold","include",function(t,i){function u(i){if(i<t.firstLine()||i>t.lastLine())return null;var r=t.getTokenAt(n.Pos(i,1));return/\S/.test(r.string)||(r=t.getTokenAt(n.Pos(i,r.end+1))),r.type=="meta"&&r.string.slice(0,8)=="#include"?r.start+8:void 0}var i=i.line,f=u(i),r,e;if(f==null||u(i-1)!=null)return null;for(r=i;;){if(e=u(r+1),e==null)break;++r}return{from:n.Pos(i,f+1),to:t.clipPos(n.Pos(r))}})}),function(n){typeof exports=="object"&&typeof module=="object"?n(require("../../lib/codemirror")):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],n):n(CodeMirror)}(function(n){"use strict";n.registerGlobalHelper("fold","comment",function(n){return n.blockCommentStart&&n.blockCommentEnd},function(t,i){var k=t.getModeAt(i),c=k.blockCommentStart,d=k.blockCommentEnd,u,p,l,s,a,f,w,g,v,b,e,o,r,h,y;if(c&&d){for(u=i.line,p=t.getLine(u),s=i.ch,a=0;;){if(f=s<=0?-1:p.lastIndexOf(c,s-1),f==-1){if(a==1)return;a=1;s=p.length;continue}if(a==1&&f<i.ch)return;if(/comment/.test(t.getTokenTypeAt(n.Pos(u,f+1)))){l=f+c.length;break}s=f-1}w=1;g=t.lastLine();n:for(e=u;e<=g;++e)for(o=t.getLine(e),r=e==u?l:0;;){if(h=o.indexOf(c,r),y=o.indexOf(d,r),h<0&&(h=o.length),y<0&&(y=o.length),r=Math.min(h,y),r==o.length)break;if(r==h)++w;else if(!--w){v=e;b=r;break n}++r}if(v!=null&&(u!=v||b!=l))return{from:n.Pos(u,l),to:n.Pos(v,b)}}})}),function(n){typeof exports=="object"&&typeof module=="object"?n(require("../../lib/codemirror")):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],n):n(CodeMirror)}(function(n){"use strict";n.registerHelper("fold","indent",function(t,i){var c=t.getOption("tabSize"),f=t.getLine(i.line),r,s,e,h;if(/\S/.test(f)){var o=function(t){return n.countColumn(t,null,c)},l=o(f),u=null;for(r=i.line+1,s=t.lastLine();r<=s;++r)if(e=t.getLine(r),h=o(e),h>l)u=r;else if(/\S/.test(e))break;if(u)return{from:n.Pos(i.line,f.length),to:n.Pos(u,t.getLine(u).length)}}})}),function(n){typeof exports=="object"&&typeof module=="object"?n(require("../../lib/codemirror")):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],n):n(CodeMirror)}(function(n){"use strict";function v(n,t){return n.line-t.line||n.ch-t.ch}function i(n,t,i,r){this.line=t;this.ch=i;this.cm=n;this.text=n.getLine(t);this.min=r?r.from:n.firstLine();this.max=r?r.to-1:n.lastLine()}function u(n,i){var r=n.cm.getTokenTypeAt(t(n.line,i));return r&&/\btag\b/.test(r)}function h(n){if(!(n.line>=n.max))return n.ch=0,n.text=n.cm.getLine(++n.line),!0}function c(n){if(!(n.line<=n.min))return n.text=n.cm.getLine(--n.line),n.ch=n.text.length,!0}function e(n){for(var t,i,r;;){if(t=n.text.indexOf(">",n.ch),t==-1)if(h(n))continue;else return;if(!u(n,t+1)){n.ch=t+1;continue}return i=n.text.lastIndexOf("/",t),r=i>-1&&!/\S/.test(n.text.slice(i+1,t)),n.ch=t+1,r?"selfClose":"regular"}}function o(n){for(var t,i;;){if(t=n.ch?n.text.lastIndexOf("<",n.ch-1):-1,t==-1)if(c(n))continue;else return;if(!u(n,t+1)){n.ch=t;continue}if(r.lastIndex=t,n.ch=t,i=r.exec(n.text),i&&i.index==t)return i}}function l(n){for(;;){r.lastIndex=n.ch;var t=r.exec(n.text);if(!t)if(h(n))continue;else return;if(!u(n,t.index+1)){n.ch=t.index+1;continue}return n.ch=t.index+t[0].length,t}}function p(n){for(var t,i,r;;){if(t=n.ch?n.text.lastIndexOf(">",n.ch-1):-1,t==-1)if(c(n))continue;else return;if(!u(n,t+1)){n.ch=t;continue}return i=n.text.lastIndexOf("/",t),r=i>-1&&!/\S/.test(n.text.slice(i+1,t)),n.ch=t+1,r?"selfClose":"regular"}}function f(n,i){for(var f=[],u;;){var r=l(n),o,s=n.line,h=n.ch-(r?r[0].length:0);if(!r||!(o=e(n)))return;if(o!="selfClose")if(r[1]){for(u=f.length-1;u>=0;--u)if(f[u]==r[2]){f.length=u;break}if(u<0&&(!i||i==r[2]))return{tag:r[2],from:t(s,h),to:t(n.line,n.ch)}}else f.push(r[2])}}function a(n,i){for(var f=[],e,u;;){if(e=p(n),!e)return;if(e=="selfClose"){o(n);continue}var s=n.line,h=n.ch,r=o(n);if(!r)return;if(r[1])f.push(r[2]);else{for(u=f.length-1;u>=0;--u)if(f[u]==r[2]){f.length=u;break}if(u<0&&(!i||i==r[2]))return{tag:r[2],from:t(n.line,n.ch),to:t(s,h)}}}}var t=n.Pos,s="A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",y=s+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",r=new RegExp("<(/?)(["+s+"]["+y+"]*)","g");n.registerHelper("fold","xml",function(n,r){for(var u=new i(n,r.line,0),o,h,r,s;;){if(o=l(u),!o||u.line!=r.line||!(h=e(u)))return;if(!o[1]&&h!="selfClose")return r=t(u.line,u.ch),s=f(u,o[2]),s&&{from:r,to:s.from}}});n.findMatchingTag=function(n,r,u){var s=new i(n,r.line,r.ch,u),l;if(s.text.indexOf(">")!=-1||s.text.indexOf("<")!=-1){var c=e(s),y=c&&t(s.line,s.ch),h=c&&o(s);if(c&&h&&!(v(s,r)>0))return(l={from:t(s.line,s.ch),to:y,tag:h[2]},c=="selfClose")?{open:l,close:null,at:"open"}:h[1]?{open:a(s,h[2]),close:l,at:"close"}:(s=new i(n,y.line,y.ch,u),{open:l,close:f(s,h[2]),at:"open"})}};n.findEnclosingTag=function(n,t,r){for(var s=new i(n,t.line,t.ch,r),u,o,e;;){if(u=a(s),!u)break;if(o=new i(n,t.line,t.ch,r),e=f(o,u.tag),e)return{open:u,close:e}}};n.scanForClosingTag=function(n,t,r,u){var e=new i(n,t.line,t.ch,u?{from:0,to:u}:null);return f(e,r)}}),function(){CodeMirror.defineExtension("autoFormatAll",function(n,t){function v(){h+="\n";f=!0;++a}for(var i,r=this,u=r.getMode(),o=r.getRange(n,t).split("\n"),s=CodeMirror.copyState(u,r.getTokenAt(n).state),y=r.getOption("tabSize"),h="",a=0,f=n.ch==0,e=0;e<o.length;++e){for(i=new CodeMirror.StringStream(o[e],y);!i.eol();){var c=CodeMirror.innerMode(u,s),p=u.token(i,s),l=i.current();i.start=i.pos;(!f||/\S/.test(l))&&(h+=l,f=!1);!f&&c.mode.newlineAfterToken&&c.mode.newlineAfterToken(p,l,i.string.slice(i.pos)||o[e+1]||"",c.state)&&v()}!i.pos&&u.blankLine&&u.blankLine(s);!f&&e<o.length-1&&v()}r.operation(function(){r.replaceRange(h,n,t);for(var i=n.line+1,u=n.line+a;i<=u;++i)r.indentLine(i,"smart");r.setCursor({line:0,ch:0})})})}(),function(){function n(n){for(var i,t,f=[/for\s*?\((.*?)\)/g,/&#?[a-z0-9]+;[\s\S]/g,/\"(.*?)((\")|$)/g,/\/\*(.*?)(\*\/|$)/g,/^\/\/.*/g],r=[],u=0;u<f.length;u++)for(i=0;i<n.length;)if(t=n.substr(i).match(f[u]),t!=null)r.push({start:i+t.index,end:i+t.index+t[0].length}),i+=t.index+Math.max(1,t[0].length);else break;return r.sort(function(n,t){return n.start-t.start}),r}CodeMirror.extendMode("css",{commentStart:"/*",commentEnd:"*/",newlineAfterToken:function(n,t){return/^[;{}]$/.test(t)}});CodeMirror.extendMode("javascript",{commentStart:"/*",commentEnd:"*/",wordWrapChars:[";","\\{","\\}"],autoFormatLineBreaks:function(t){var r=0,e=this.jsonMode?function(n){return n.replace(/([,{])/g,"$1\n").replace(/}/g,"\n}")}:function(n){return n.replace(/(;|\{|\})([^\r\n;])/g,"$1\n$2")},u=n(t),f="",i;if(u!=null){for(i=0;i<u.length;i++)u[i].start>r&&(f+=e(t.substring(r,u[i].start)),r=u[i].start),u[i].start<=r&&u[i].end>=r&&(f+=t.substring(r,u[i].end),r=u[i].end);r<t.length&&(f+=e(t.substr(r)))}else f=e(t);return f.replace(/^\n*|\n*$/,"")}});CodeMirror.extendMode("xml",{commentStart:"<!--",commentEnd:"-->",noBreak:!1,noBreakEmpty:null,tagType:"",tagName:"",isXML:!1,newlineAfterToken:function(n,t,i){var o="a|b|bdi|bdo|big|center|cite|del|em|font|i|img|ins|s|small|span|strike|strong|sub|sup|u",e="label|li|option|textarea|title|"+o,f=!1,r=null,u="",s;if(this.isXML=this.configuration=="xml"?!0:!1,n=="comment"||/<!--/.test(i))return!1;if(n=="tag"){if(t.indexOf("<")==0&&!t.indexOf("<\/")==0&&(this.tagType="open",r=t.match(/^<\s*?([\w]+?)$/i),this.tagName=r!=null?r[1]:"",u=this.tagName.toLowerCase(),("|"+e+"|").indexOf("|"+u+"|")!=-1&&(this.noBreak=!0)),t.indexOf(">")==0&&this.tagType=="open")return(this.tagType="",s=this.isXML?"[^<]*?":"",RegExp("^"+s+"<\/s*?"+this.tagName+"s*?>","i").test(i))?(this.noBreak=!1,this.isXML||(this.tagName=""),!1):(f=this.noBreak,this.noBreak=!1,f?!1:!0);if(t.indexOf("<\/")==0&&(this.tagType="close",r=t.match(/^<\/\s*?([\w]+?)$/i),r!=null&&(u=r[1].toLowerCase()),("|"+o+"|").indexOf("|"+u+"|")!=-1&&(this.noBreak=!0)),t.indexOf(">")==0&&this.tagType=="close")return(this.tagType="",i.indexOf("<")==0&&(r=i.match(/^<\/?\s*?([\w]+?)(\s|>)/i),u=r!=null?r[1].toLowerCase():"",("|"+e+"|").indexOf("|"+u+"|")==-1))?(this.noBreak=!1,!0):(f=this.noBreak,this.noBreak=!1,f?!1:!0)}return i.indexOf("<")==0?(this.noBreak=!1,this.isXML&&this.tagName!="")?(this.tagName="",!1):(r=i.match(/^<\/?\s*?([\w]+?)(\s|>)/i),u=r!=null?r[1].toLowerCase():"",("|"+e+"|").indexOf("|"+u+"|")!=-1?!1:!0):!1}});CodeMirror.defineExtension("commentRange",function(n,t,i){var r=this,u=CodeMirror.innerMode(r.getMode(),r.getTokenAt(t).state).mode;r.operation(function(){if(n)r.replaceRange(u.commentEnd,i),r.replaceRange(u.commentStart,t),t.line==i.line&&t.ch==i.ch&&r.setCursor(t.line,t.ch+u.commentStart.length);else{var f=r.getRange(t,i),e=f.indexOf(u.commentStart),o=f.lastIndexOf(u.commentEnd);e>-1&&o>-1&&o>e&&(f=f.substr(0,e)+f.substring(e+u.commentStart.length,o)+f.substr(o+u.commentEnd.length));r.replaceRange(f,t,i)}})});CodeMirror.defineExtension("autoIndentRange",function(n,t){var i=this;this.operation(function(){for(var r=n.line;r<=t.line;r++)i.indentLine(r,"smart")})});CodeMirror.defineExtension("autoFormatRange",function(n,t){function v(){h+="\n";f=!0;++a}for(var r,i=this,u=i.getMode(),o=i.getRange(n,t).split("\n"),s=CodeMirror.copyState(u,i.getTokenAt(n).state),y=i.getOption("tabSize"),h="",a=0,f=n.ch==0,e=0;e<o.length;++e){for(r=new CodeMirror.StringStream(o[e],y);!r.eol();){var c=CodeMirror.innerMode(u,s),p=u.token(r,s),l=r.current();r.start=r.pos;(!f||/\S/.test(l))&&(h+=l,f=!1);!f&&c.mode.newlineAfterToken&&c.mode.newlineAfterToken(p,l,r.string.slice(r.pos)||o[e+1]||"",c.state)&&v()}!r.pos&&u.blankLine&&u.blankLine(s);!f&&e<o.length-1&&v()}i.operation(function(){i.replaceRange(h,n,t);for(var r=n.line+1,u=n.line+a;r<=u;++r)i.indentLine(r,"smart");i.setSelection(n,i.getCursor(!1))})})}(),function(n){typeof exports=="object"&&typeof module=="object"?n(require("../../lib/codemirror")):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],n):n(CodeMirror)}(function(n){"use strict";function r(n){for(var r=0;r<n.state.activeLines.length;r++)n.removeLineClass(n.state.activeLines[r],"wrap",t),n.removeLineClass(n.state.activeLines[r],"background",i)}function e(n,t){if(n.length!=t.length)return!1;for(var i=0;i<n.length;i++)if(n[i]!=t[i])return!1;return!0}function u(n,u){for(var s,h,f=[],o=0;o<u.length;o++)(s=u[o],s.empty())&&(h=n.getLineHandleVisualStart(s.head.line),f[f.length-1]!=h&&f.push(h));e(n.state.activeLines,f)||n.operation(function(){r(n);for(var u=0;u<f.length;u++)n.addLineClass(f[u],"wrap",t),n.addLineClass(f[u],"background",i);n.state.activeLines=f})}function f(n,t){u(n,t.ranges)}var t="CodeMirror-activeline",i="CodeMirror-activeline-background";n.defineOption("styleActiveLine",!1,function(t,i,e){var o=e&&e!=n.Init;if(i&&!o){t.state.activeLines=[];u(t,t.listSelections());t.on("beforeSelectionChange",f)}else!i&&o&&(t.off("beforeSelectionChange",f),r(t),delete t.state.activeLines)})}),function(n){typeof exports=="object"&&typeof module=="object"?n(require("../../lib/codemirror")):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],n):n(CodeMirror)}(function(n){"use strict";function s(n){typeof n=="object"&&(this.minChars=n.minChars,this.style=n.style,this.showToken=n.showToken,this.delay=n.delay,this.wordsOnly=n.wordsOnly);this.style==null&&(this.style=f);this.minChars==null&&(this.minChars=u);this.delay==null&&(this.delay=e);this.wordsOnly==null&&(this.wordsOnly=o);this.overlay=this.timeout=null}function t(n){var t=n.state.matchHighlighter;clearTimeout(t.timeout);t.timeout=setTimeout(function(){i(n)},t.delay)}function i(n){n.operation(function(){var t=n.state.matchHighlighter,e,o,c;if(t.overlay&&(n.removeOverlay(t.overlay),t.overlay=null),!n.somethingSelected()&&t.showToken){for(var s=t.showToken===!0?/[\w$]/:t.showToken,l=n.getCursor(),f=n.getLine(l.line),i=l.ch,u=i;i&&s.test(f.charAt(i-1));)--i;while(u<f.length&&s.test(f.charAt(u)))++u;i<u&&n.addOverlay(t.overlay=r(f.slice(i,u),s,t.style));return}(e=n.getCursor("from"),o=n.getCursor("to"),e.line==o.line)&&(!t.wordsOnly||h(n,e,o))&&(c=n.getRange(e,o).replace(/^\s+|\s+$/g,""),c.length>=t.minChars&&n.addOverlay(t.overlay=r(c,!1,t.style)))})}function h(n,t,i){var f=n.getRange(t,i),r,u;return f.match(/^\w+$/)!==null?t.ch>0&&(r={line:t.line,ch:t.ch-1},u=n.getRange(r,t),u.match(/\W/)===null)?!1:i.ch<n.getLine(t.line).length&&(r={line:i.line,ch:i.ch+1},u=n.getRange(i,r),u.match(/\W/)===null)?!1:!0:!1}function c(n,t){return(!n.start||!t.test(n.string.charAt(n.start-1)))&&(n.pos==n.string.length||!t.test(n.string.charAt(n.pos)))}function r(n,t,i){return{token:function(r){if(r.match(n)&&(!t||c(r,t)))return i;r.next();r.skipTo(n.charAt(0))||r.skipToEnd()}}}var u=2,f="matchhighlight",e=100,o=!1;n.defineOption("highlightSelectionMatches",!1,function(r,u,f){if(f&&f!=n.Init){var e=r.state.matchHighlighter.overlay;e&&r.removeOverlay(e);clearTimeout(r.state.matchHighlighter.timeout);r.state.matchHighlighter=null;r.off("cursorActivity",t)}if(u){r.state.matchHighlighter=new s(u);i(r);r.on("cursorActivity",t)}})})
1
+ (function(n){typeof exports=="object"&&typeof module=="object"?n(require("../../lib/codemirror")):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],n):n(CodeMirror)})(function(n){function r(n,t){return t=="pairs"&&typeof n=="string"?n:typeof n=="object"&&n[t]!=null?n[t]:o[t]}function h(n){return function(t){return v(t,n)}}function e(n){var t=n.state.closeBrackets,i;return t?(i=n.getModeAt(n.getCursor()),i.closeBrackets||t):null}function c(i){var c=e(i),l,f,h,u,o;if(!c||i.getOption("disableInput"))return n.Pass;for(l=r(c,"pairs"),f=i.listSelections(),u=0;u<f.length;u++)if(!f[u].empty()||(h=s(i,f[u].head),!h||l.indexOf(h)%2!=0))return n.Pass;for(u=f.length-1;u>=0;u--)o=f[u].head,i.replaceRange("",t(o.line,o.ch-1),t(o.line,o.ch+1),"+delete")}function l(t){var o=e(t),h=o&&r(o,"explode"),i,u,f;if(!h||t.getOption("disableInput"))return n.Pass;for(i=t.listSelections(),u=0;u<i.length;u++)if(!i[u].empty()||(f=s(t,i[u].head),!f||h.indexOf(f)%2!=0))return n.Pass;t.operation(function(){var n,r;for(t.replaceSelection("\n\n",null),t.execCommand("goCharLeft"),i=t.listSelections(),n=0;n<i.length;n++)r=i[n].head.line,t.indentLine(r,null,!0),t.indentLine(r+1,null,!0)})}function a(i){var r=n.cmpPos(i.anchor,i.head)>0;return{anchor:new t(i.anchor.line,i.anchor.ch+(r?-1:1)),head:new t(i.head.line,i.head.ch+(r?1:-1))}}function v(i,u){var k=e(i),l,o,w,h,b;if(!k||i.getOption("disableInput")||(l=r(k,"pairs"),o=l.indexOf(u),o==-1))return n.Pass;var nt=r(k,"triples"),d=l.charAt(o+1)==u,tt=i.listSelections(),g=o%2==0,s,v;for(w=0;w<tt.length;w++){var it=tt[w],f=it.head,c,v=i.getRange(f,t(f.line,f.ch+1));if(g&&!it.empty())c="surround";else if((d||!g)&&v==u)c=nt.indexOf(u)>=0&&i.getRange(f,t(f.line,f.ch+3))==u+u+u?"skipThree":"skip";else if(d&&f.ch>1&&nt.indexOf(u)>=0&&i.getRange(t(f.line,f.ch-2),f)==u+u&&(f.ch<=2||i.getRange(t(f.line,f.ch-3),t(f.line,f.ch-2))!=u))c="addFour";else if(d)if(!n.isWordChar(v)&&p(i,f,u))c="both";else return n.Pass;else if(g&&(i.getLine(f.line).length==f.ch||y(v,l)||/\s/.test(v)))c="both";else return n.Pass;if(s){if(s!=c)return n.Pass}else s=c}h=o%2?l.charAt(o-1):u;b=o%2?u:l.charAt(o+1);i.operation(function(){var t,n;if(s=="skip")i.execCommand("goCharRight");else if(s=="skipThree")for(n=0;n<3;n++)i.execCommand("goCharRight");else if(s=="surround"){for(t=i.getSelections(),n=0;n<t.length;n++)t[n]=h+t[n]+b;for(i.replaceSelections(t,"around"),t=i.listSelections().slice(),n=0;n<t.length;n++)t[n]=a(t[n]);i.setSelections(t)}else s=="both"?(i.replaceSelection(h+b,null),i.triggerElectric(h+b),i.execCommand("goCharLeft")):s=="addFour"&&(i.replaceSelection(h+h+h+h,"before"),i.execCommand("goCharRight"))})}function y(n,t){var i=t.lastIndexOf(n);return i>-1&&i%2==1}function s(n,i){var r=n.getRange(t(i.line,i.ch-1),t(i.line,i.ch+1));return r.length==2?r:null}function p(t,i,r){var e=t.getLine(i.line),f=t.getTokenAt(i),u,o;if(/\bstring2?\b/.test(f.type))return!1;for(u=new n.StringStream(e.slice(0,i.ch)+r+e.slice(i.ch),4),u.pos=u.start=f.start;;){if(o=t.getMode().token(u,f.state),u.pos>=i.ch+1)return/\bstring2?\b/.test(o);u.start=u.pos}}var o={pairs:"()[]{}''\"\"",triples:"",explode:"[]{}"},t=n.Pos,u,f,i;for(n.defineOption("autoCloseBrackets",!1,function(t,i,r){r&&r!=n.Init&&(t.removeKeyMap(f),t.state.closeBrackets=null);i&&(t.state.closeBrackets=i,t.addKeyMap(f))}),u=o.pairs+"`",f={Backspace:c,Enter:l},i=0;i<u.length;i++)f["'"+u.charAt(i)+"'"]=h(u.charAt(i))}),function(n){typeof exports=="object"&&typeof module=="object"?n(require("../../lib/codemirror"),require("../fold/xml-fold")):typeof define=="function"&&define.amd?define(["../../lib/codemirror","../fold/xml-fold"],n):n(CodeMirror)}(function(n){function e(t){var h,p,b,y,e,l,k;if(t.getOption("disableInput"))return n.Pass;for(h=t.listSelections(),p=[],e=0;e<h.length;e++){if(!h[e].empty())return n.Pass;var s=h[e].head,o=t.getTokenAt(s),w=n.innerMode(t.getMode(),o.state),a=w.state;if(w.mode.name!="xml"||!a.tagName)return n.Pass;var v=t.getOption("autoCloseTags"),d=w.mode.configuration=="html",g=typeof v=="object"&&v.dontCloseTags||d&&u,nt=typeof v=="object"&&v.indentTags||d&&f,c=a.tagName;if(o.end>s.ch&&(c=c.slice(0,c.length-o.end+s.ch)),b=c.toLowerCase(),!c||o.type=="string"&&(o.end!=s.ch||!/[\"\']/.test(o.string.charAt(o.string.length-1))||o.string.length==1)||o.type=="tag"&&a.type=="closeTag"||o.string.indexOf("/")==o.string.length-1||g&&i(g,b)>-1||r(t,c,s,a,!0))return n.Pass;y=nt&&i(nt,b)>-1;p[e]={indent:y,text:">"+(y?"\n\n":"")+"<\/"+c+">",newPos:y?n.Pos(s.line+1,0):n.Pos(s.line,s.ch+1)}}for(e=h.length-1;e>=0;e--)l=p[e],t.replaceRange(l.text,h[e].head,h[e].anchor,"+insert"),k=t.listSelections().slice(0),k[e]={head:l.newPos,anchor:l.newPos},t.setSelections(k),l.indent&&(t.indentLine(l.newPos.line,null,!0),t.indentLine(l.newPos.line+1,null,!0))}function t(t,i){for(var s,f=t.listSelections(),a=[],l=i?"/":"<\/",u=0;u<f.length;u++){if(!f[u].empty())return n.Pass;var h=f[u].head,e=t.getTokenAt(h),c=n.innerMode(t.getMode(),e.state),o=c.state;if(i&&(e.type=="string"||e.string.charAt(0)!="<"||e.start!=h.ch-1))return n.Pass;if(c.mode.name!="xml")if(t.getMode().name=="htmlmixed"&&c.mode.name=="javascript")s=l+"script";else if(t.getMode().name=="htmlmixed"&&c.mode.name=="css")s=l+"style";else return n.Pass;else{if(!o.context||!o.context.tagName||r(t,o.context.tagName,h,o))return n.Pass;s=l+o.context.tagName}t.getLine(h.line).charAt(e.end)!=">"&&(s+=">");a[u]=s}for(t.replaceSelections(a),f=t.listSelections(),u=0;u<f.length;u++)(u==f.length-1||f[u].head.line<f[u+1].head.line)&&t.indentLine(f[u].head.line)}function o(i){return i.getOption("disableInput")?n.Pass:t(i,!0)}function i(n,t){if(n.indexOf)return n.indexOf(t);for(var i=0,r=n.length;i<r;++i)if(n[i]==t)return i;return-1}function r(t,i,r,u,f){var h,o,e,c,l,s;if(!n.scanForClosingTag||(h=Math.min(t.lastLine()+1,r.line+500),o=n.scanForClosingTag(t,r,null,h),!o||o.tag!=i))return!1;for(e=u.context,c=f?1:0;e&&e.tagName==i;e=e.prev)++c;for(r=o.to,l=1;l<c;l++){if(s=n.scanForClosingTag(t,r,null,h),!s||s.tag!=i)return!1;r=s.to}return!0}n.defineOption("autoCloseTags",!1,function(t,i,r){if(r!=n.Init&&r&&t.removeKeyMap("autoCloseTags"),i){var u={name:"autoCloseTags"};(typeof i!="object"||i.whenClosing)&&(u["'/'"]=function(n){return o(n)});(typeof i!="object"||i.whenOpening)&&(u["'>'"]=function(n){return e(n)});t.addKeyMap(u)}});var u=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],f=["applet","blockquote","body","button","div","dl","fieldset","form","frameset","h1","h2","h3","h4","h5","h6","head","html","iframe","layer","legend","object","ol","p","select","table","ul"];n.commands.closeTag=function(n){return t(n)}}),function(n){typeof exports=="object"&&typeof module=="object"?n(require("../../lib/codemirror")):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],n):n(CodeMirror)}(function(n){function r(t){var o,i,v,h,s,f,y,r,l,c,p,a,e;if(t.getOption("disableInput"))return n.Pass;for(o=t.listSelections(),v=[],h=0;h<o.length;h++){if(s=o[h].head,f=t.getTokenAt(s),f.type!="comment")return n.Pass;if(y=n.innerMode(t.getMode(),f.state).mode,i){if(i!=y)return n.Pass}else i=y;if(r=null,i.blockCommentStart&&i.blockCommentContinue){if(l=f.string.indexOf(i.blockCommentEnd),c=t.getRange(n.Pos(s.line,0),n.Pos(s.line,f.end)),l==-1||l!=f.string.length-i.blockCommentEnd.length||!(s.ch>=l))if(f.string.indexOf(i.blockCommentStart)==0){if(r=c.slice(0,f.start),!/^\s*$/.test(r))for(r="",p=0;p<f.start;++p)r+=" "}else(e=c.indexOf(i.blockCommentContinue))!=-1&&e+i.blockCommentContinue.length>f.start&&/^\s*$/.test(c.slice(0,e))&&(r=c.slice(0,e));r!=null&&(r+=i.blockCommentContinue)}if(r==null&&i.lineComment&&u(t)&&(a=t.getLine(s.line),e=a.indexOf(i.lineComment),e>-1&&(r=a.slice(0,e),/\S/.test(r)?r=null:r+=i.lineComment+a.slice(e+i.lineComment.length).match(/^\s*/)[0])),r==null)return n.Pass;v[h]="\n"+r}t.operation(function(){for(var n=o.length-1;n>=0;n--)t.replaceRange(v[n],o[n].from(),o[n].to(),"+insert")})}function u(n){var t=n.getOption("continueComments");return t&&typeof t=="object"?t.continueLineComment!==!1:!0}for(var i=["clike","css","javascript"],t=0;t<i.length;++t)n.extendMode(i[t],{blockCommentContinue:" * "});n.defineOption("continueComments",null,function(t,i,u){var f,e;u&&u!=n.Init&&t.removeKeyMap("continueComment");i&&(f="Enter",typeof i=="string"?f=i:typeof i=="object"&&i.key&&(f=i.key),e={name:"continueComment"},e[f]=r,t.addKeyMap(e))})}),function(n){typeof exports=="object"&&typeof module=="object"?n(require("../../lib/codemirror")):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],n):n(CodeMirror)}(function(n){function u(n,i,u,e){var l=n.getLineHandle(i.line),o=i.ch-1,c=o>=0&&r[l.text.charAt(o)]||r[l.text.charAt(++o)],h,a,s;return c?(h=c.charAt(1)==">"?1:-1,u&&h>0!=(o==i.ch))?null:(a=n.getTokenTypeAt(t(i.line,o+1)),s=f(n,t(i.line,o+(h>0?1:0)),h,a||null,e),s==null)?null:{from:t(i.line,o),to:s&&s.pos,match:s&&s.ch==c.charAt(0),forward:h>0}:null}function f(n,i,u,f,e){for(var h,s,v,c,y,p=e&&e.maxScanLineLength||1e4,a=e&&e.maxScanLines||1e3,l=[],w=e&&e.bracketRegex?e.bracketRegex:/[(){}[\]]/,b=u>0?Math.min(i.line+a,n.lastLine()+1):Math.max(n.firstLine()-1,i.line-a),o=i.line;o!=b;o+=u)if((h=n.getLine(o),h)&&(s=u>0?0:h.length-1,v=u>0?h.length:-1,!(h.length>p)))for(o==i.line&&(s=i.ch-(u<0?1:0));s!=v;s+=u)if(c=h.charAt(s),w.test(c)&&(f===undefined||n.getTokenTypeAt(t(o,s+1))==f))if(y=r[c],y.charAt(1)==">"==u>0)l.push(c);else if(l.length)l.pop();else return{pos:t(o,s),ch:c};return o-u==(u>0?n.lastLine():n.firstLine())?!1:null}function e(n,i,r){for(var f,c,l,a=n.state.matchBrackets.maxHighlightLineLength||1e3,e=[],h=n.listSelections(),o=0;o<h.length;o++)f=h[o].empty()&&u(n,h[o].head,!1,r),f&&n.getLine(f.from.line).length<=a&&(c=f.match?"CodeMirror-matchingbracket":"CodeMirror-nonmatchingbracket",e.push(n.markText(f.from,t(f.from.line,f.from.ch+1),{className:c})),f.to&&n.getLine(f.to.line).length<=a&&e.push(n.markText(f.to,t(f.to.line,f.to.ch+1),{className:c})));if(e.length)if(s&&n.state.focused&&n.focus(),l=function(){n.operation(function(){for(var n=0;n<e.length;n++)e[n].clear()})},i)setTimeout(l,800);else return l}function o(n){n.operation(function(){i&&(i(),i=null);i=e(n,!1,n.state.matchBrackets)})}var s=/MSIE \d/.test(navigator.userAgent)&&(document.documentMode==null||document.documentMode<8),t=n.Pos,r={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<"},i=null;n.defineOption("matchBrackets",!1,function(t,i,r){if(r&&r!=n.Init&&t.off("cursorActivity",o),i){t.state.matchBrackets=typeof i=="object"?i:{};t.on("cursorActivity",o)}});n.defineExtension("matchBrackets",function(){e(this,!0)});n.defineExtension("findMatchingBracket",function(n,t,i){return u(this,n,t,i)});n.defineExtension("scanForBracket",function(n,t,i,r){return f(this,n,t,i,r)})}),function(n){typeof exports=="object"&&typeof module=="object"?n(require("../../lib/codemirror"),require("../fold/xml-fold")):typeof define=="function"&&define.amd?define(["../../lib/codemirror","../fold/xml-fold"],n):n(CodeMirror)}(function(n){"use strict";function i(n){n.state.tagHit&&n.state.tagHit.clear();n.state.tagOther&&n.state.tagOther.clear();n.state.tagHit=n.state.tagOther=null}function t(t){t.state.failedTagMatch=!1;t.operation(function(){var f,u,r,e,o;(i(t),t.somethingSelected())||(f=t.getCursor(),u=t.getViewport(),u.from=Math.min(u.from,f.line),u.to=Math.max(f.line+1,u.to),r=n.findMatchingTag(t,f,u),r)&&(t.state.matchBothTags&&(e=r.at=="open"?r.open:r.close,e&&(t.state.tagHit=t.markText(e.from,e.to,{className:"CodeMirror-matchingtag"}))),o=r.at=="close"?r.open:r.close,o?t.state.tagOther=t.markText(o.from,o.to,{className:"CodeMirror-matchingtag"}):t.state.failedTagMatch=!0)})}function r(n){n.state.failedTagMatch&&t(n)}n.defineOption("matchTags",!1,function(u,f,e){if(e&&e!=n.Init&&(u.off("cursorActivity",t),u.off("viewportChange",r),i(u)),f){u.state.matchBothTags=typeof f=="object"&&f.bothTags;u.on("cursorActivity",t);u.on("viewportChange",r);t(u)}});n.commands.toMatchingTag=function(t){var i=n.findMatchingTag(t,t.getCursor()),r;i&&(r=i.at=="close"?i.open:i.close,r&&t.extendSelection(r.to,r.from))}}),function(n){typeof exports=="object"&&typeof module=="object"?n(require("../../lib/codemirror")):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],n):n(CodeMirror)}(function(n){n.defineOption("showTrailingSpace",!1,function(t,i,r){r==n.Init&&(r=!1);r&&!i?t.removeOverlay("trailingspace"):!r&&i&&t.addOverlay({token:function(n){for(var i=n.string.length,t=i;t&&/\s/.test(n.string.charAt(t-1));--t);return t>n.pos?(n.pos=t,null):(n.pos=i,"trailingspace")},name:"trailingspace"})})}),function(n){typeof exports=="object"&&typeof module=="object"?n(require("../../lib/codemirror")):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],n):n(CodeMirror)}(function(n){"use strict";function i(i,u,f,e){function a(n){var t=s(i,u),f,r;if(!t||t.to.line-t.from.line<l)return null;for(f=i.findMarksAt(t.from),r=0;r<f.length;++r)if(f[r].__isFold&&e!=="fold"){if(!n)return null;t.cleared=!0;f[r].clear()}return t}var s,l,o,h,c;if(f&&f.call?(s=f,f=null):s=t(i,f,"rangeFinder"),typeof u=="number"&&(u=n.Pos(u,0)),l=t(i,f,"minFoldSize"),o=a(!0),t(i,f,"scanUp"))while(!o&&u.line>i.firstLine())u=n.Pos(u.line-1,0),o=a(!1);if(o&&!o.cleared&&e!=="unfold"){h=r(i,f);n.on(h,"mousedown",function(t){c.clear();n.e_preventDefault(t)});c=i.markText(o.from,o.to,{replacedWith:h,clearOnEnter:!0,__isFold:!0});c.on("clear",function(t,r){n.signal(i,"unfold",i,t,r)});n.signal(i,"fold",i,o.from,o.to)}}function r(n,i){var r=t(n,i,"widget"),u;return typeof r=="string"&&(u=document.createTextNode(r),r=document.createElement("span"),r.appendChild(u),r.className="CodeMirror-foldmarker"),r}function t(n,t,i){if(t&&t[i]!==undefined)return t[i];var r=n.options.foldOptions;return r&&r[i]!==undefined?r[i]:u[i]}n.newFoldFunction=function(n,t){return function(r,u){i(r,u,{rangeFinder:n,widget:t})}};n.defineExtension("foldCode",function(n,t,r){i(this,n,t,r)});n.defineExtension("isFolded",function(n){for(var i=this.findMarksAt(n),t=0;t<i.length;++t)if(i[t].__isFold)return!0});n.commands.toggleFold=function(n){n.foldCode(n.getCursor())};n.commands.fold=function(n){n.foldCode(n.getCursor(),null,"fold")};n.commands.unfold=function(n){n.foldCode(n.getCursor(),null,"unfold")};n.commands.foldAll=function(t){t.operation(function(){for(var i=t.firstLine(),r=t.lastLine();i<=r;i++)t.foldCode(n.Pos(i,0),null,"fold")})};n.commands.unfoldAll=function(t){t.operation(function(){for(var i=t.firstLine(),r=t.lastLine();i<=r;i++)t.foldCode(n.Pos(i,0),null,"unfold")})};n.registerHelper("fold","combine",function(){var n=Array.prototype.slice.call(arguments,0);return function(t,i){for(var u,r=0;r<n.length;++r)if(u=n[r](t,i),u)return u}});n.registerHelper("fold","auto",function(n,t){for(var r,u=n.getHelpers(t,"fold"),i=0;i<u.length;i++)if(r=u[i](n,t),r)return r});var u={rangeFinder:n.fold.auto,widget:"\u2194",minFoldSize:0,scanUp:!1};n.defineOption("foldOptions",null);n.defineExtension("foldOption",function(n,i){return t(this,n,i)})}),function(n){typeof exports=="object"&&typeof module=="object"?n(require("../../lib/codemirror"),require("./foldcode")):typeof define=="function"&&define.amd?define(["../../lib/codemirror","./foldcode"],n):n(CodeMirror)}(function(n){"use strict";function c(n){this.options=n;this.from=this.to=0}function l(n){return n===!0&&(n={}),n.gutter==null&&(n.gutter="CodeMirror-foldgutter"),n.indicatorOpen==null&&(n.indicatorOpen="CodeMirror-foldgutter-open"),n.indicatorFolded==null&&(n.indicatorFolded="CodeMirror-foldgutter-folded"),n}function e(n,t){for(var r=n.findMarksAt(u(t)),i=0;i<r.length;++i)if(r[i].__isFold&&r[i].find().from.line==t)return r[i]}function o(n){if(typeof n=="string"){var t=document.createElement("div");return t.className=n+" CodeMirror-guttermarker-subtle",t}return n.cloneNode(!0)}function t(n,t,i){var r=n.state.foldGutter.options,f=t,h=n.foldOption(r,"minFoldSize"),s=n.foldOption(r,"rangeFinder");n.eachLine(t,i,function(t){var c=null,l,i;e(n,f)?c=o(r.indicatorFolded):(l=u(f,0),i=s&&s(n,l),i&&i.to.line-i.from.line>=h&&(c=o(r.indicatorOpen)));n.setGutterMarker(t,r.gutter,c);++f})}function f(n){var i=n.getViewport(),r=n.state.foldGutter;r&&(n.operation(function(){t(n,i.from,i.to)}),r.from=i.from,r.to=i.to)}function s(n,t,i){var o=n.state.foldGutter,r,f;o&&(r=o.options,i==r.gutter)&&(f=e(n,t),f?f.clear():n.foldCode(u(t,0),r.rangeFinder))}function i(n){var t=n.state.foldGutter,i;t&&(i=t.options,t.from=t.to=0,clearTimeout(t.changeUpdate),t.changeUpdate=setTimeout(function(){f(n)},i.foldOnChangeTimeSpan||600))}function h(n){var i=n.state.foldGutter,r;i&&(r=i.options,clearTimeout(i.changeUpdate),i.changeUpdate=setTimeout(function(){var r=n.getViewport();i.from==i.to||r.from-i.to>20||i.from-r.to>20?f(n):n.operation(function(){r.from<i.from&&(t(n,r.from,i.from),i.from=r.from);r.to>i.to&&(t(n,i.to,r.to),i.to=r.to)})},r.updateViewportTimeSpan||400))}function r(n,i){var u=n.state.foldGutter,r;u&&(r=i.line,r>=u.from&&r<u.to&&t(n,r,r+1))}n.defineOption("foldGutter",!1,function(t,u,e){if(e&&e!=n.Init&&(t.clearGutter(t.state.foldGutter.options.gutter),t.state.foldGutter=null,t.off("gutterClick",s),t.off("change",i),t.off("viewportChange",h),t.off("fold",r),t.off("unfold",r),t.off("swapDoc",i)),u){t.state.foldGutter=new c(l(u));f(t);t.on("gutterClick",s);t.on("change",i);t.on("viewportChange",h);t.on("fold",r);t.on("unfold",r);t.on("swapDoc",i)}});var u=n.Pos}),function(n){typeof exports=="object"&&typeof module=="object"?n(require("../../lib/codemirror")):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],n):n(CodeMirror)}(function(n){"use strict";n.registerHelper("fold","brace",function(t,i){function p(r){for(var u,e=i.ch,o=0;;){if(u=e<=0?-1:y.lastIndexOf(r,e-1),u==-1){if(o==1)break;o=1;e=y.length;continue}if(o==1&&u<i.ch)break;if(l=t.getTokenTypeAt(n.Pos(f,u+1)),!/^(comment|string)/.test(l))return u+1;e=u-1}}var f=i.line,y=t.getLine(f),l,w="{",b="}",e=p("{"),a,k,h,v,u,o,r,s,c;if(e==null&&(w="[",b="]",e=p("[")),e!=null){a=1;k=t.lastLine();n:for(u=f;u<=k;++u)for(o=t.getLine(u),r=u==f?e:0;;){if(s=o.indexOf(w,r),c=o.indexOf(b,r),s<0&&(s=o.length),c<0&&(c=o.length),r=Math.min(s,c),r==o.length)break;if(t.getTokenTypeAt(n.Pos(u,r+1))==l)if(r==s)++a;else if(!--a){h=u;v=r;break n}++r}if(h!=null&&(f!=h||v!=e))return{from:n.Pos(f,e),to:n.Pos(h,v)}}});n.registerHelper("fold","import",function(t,i){function r(i){var r,u,e,o,f;if(i<t.firstLine()||i>t.lastLine()||(r=t.getTokenAt(n.Pos(i,1)),/\S/.test(r.string)||(r=t.getTokenAt(n.Pos(i,r.end+1))),r.type!="keyword"||r.string!="import"))return null;for(u=i,e=Math.min(t.lastLine(),i+10);u<=e;++u)if(o=t.getLine(u),f=o.indexOf(";"),f!=-1)return{startCh:r.end,end:n.Pos(u,f)}}var i=i.line,f=r(i),o,u,e;if(!f||r(i-1)||(o=r(i-2))&&o.end.line==i-1)return null;for(u=f.end;;){if(e=r(u.line+1),e==null)break;u=e.end}return{from:t.clipPos(n.Pos(i,f.startCh+1)),to:u}});n.registerHelper("fold","include",function(t,i){function u(i){if(i<t.firstLine()||i>t.lastLine())return null;var r=t.getTokenAt(n.Pos(i,1));return/\S/.test(r.string)||(r=t.getTokenAt(n.Pos(i,r.end+1))),r.type=="meta"&&r.string.slice(0,8)=="#include"?r.start+8:void 0}var i=i.line,f=u(i),r,e;if(f==null||u(i-1)!=null)return null;for(r=i;;){if(e=u(r+1),e==null)break;++r}return{from:n.Pos(i,f+1),to:t.clipPos(n.Pos(r))}})}),function(n){typeof exports=="object"&&typeof module=="object"?n(require("../../lib/codemirror")):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],n):n(CodeMirror)}(function(n){"use strict";n.registerGlobalHelper("fold","comment",function(n){return n.blockCommentStart&&n.blockCommentEnd},function(t,i){var d=t.getModeAt(i),c=d.blockCommentStart,l=d.blockCommentEnd,u,a,v,s,y,r,b,g,p,k,e,o,f,h,w;if(c&&l){for(u=i.line,a=t.getLine(u),s=i.ch,y=0;;){if(r=s<=0?-1:a.lastIndexOf(c,s-1),r==-1){if(y==1)return;y=1;s=a.length;continue}if(y==1&&r<i.ch)return;if(/comment/.test(t.getTokenTypeAt(n.Pos(u,r+1)))&&(a.slice(r-l.length,r)==l||!/comment/.test(t.getTokenTypeAt(n.Pos(u,r))))){v=r+c.length;break}s=r-1}b=1;g=t.lastLine();n:for(e=u;e<=g;++e)for(o=t.getLine(e),f=e==u?v:0;;){if(h=o.indexOf(c,f),w=o.indexOf(l,f),h<0&&(h=o.length),w<0&&(w=o.length),f=Math.min(h,w),f==o.length)break;if(f==h)++b;else if(!--b){p=e;k=f;break n}++f}if(p!=null&&(u!=p||k!=v))return{from:n.Pos(u,v),to:n.Pos(p,k)}}})}),function(n){typeof exports=="object"&&typeof module=="object"?n(require("../../lib/codemirror")):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],n):n(CodeMirror)}(function(n){"use strict";n.registerHelper("fold","indent",function(t,i){var c=t.getOption("tabSize"),f=t.getLine(i.line),r,s,e,h;if(/\S/.test(f)){var o=function(t){return n.countColumn(t,null,c)},l=o(f),u=null;for(r=i.line+1,s=t.lastLine();r<=s;++r)if(e=t.getLine(r),h=o(e),h>l)u=r;else if(/\S/.test(e))break;if(u)return{from:n.Pos(i.line,f.length),to:n.Pos(u,t.getLine(u).length)}}})}),function(n){typeof exports=="object"&&typeof module=="object"?n(require("../../lib/codemirror")):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],n):n(CodeMirror)}(function(n){"use strict";function v(n,t){return n.line-t.line||n.ch-t.ch}function i(n,t,i,r){this.line=t;this.ch=i;this.cm=n;this.text=n.getLine(t);this.min=r?r.from:n.firstLine();this.max=r?r.to-1:n.lastLine()}function u(n,i){var r=n.cm.getTokenTypeAt(t(n.line,i));return r&&/\btag\b/.test(r)}function h(n){if(!(n.line>=n.max))return n.ch=0,n.text=n.cm.getLine(++n.line),!0}function c(n){if(!(n.line<=n.min))return n.text=n.cm.getLine(--n.line),n.ch=n.text.length,!0}function e(n){for(var t,i,r;;){if(t=n.text.indexOf(">",n.ch),t==-1)if(h(n))continue;else return;if(!u(n,t+1)){n.ch=t+1;continue}return i=n.text.lastIndexOf("/",t),r=i>-1&&!/\S/.test(n.text.slice(i+1,t)),n.ch=t+1,r?"selfClose":"regular"}}function o(n){for(var t,i;;){if(t=n.ch?n.text.lastIndexOf("<",n.ch-1):-1,t==-1)if(c(n))continue;else return;if(!u(n,t+1)){n.ch=t;continue}if(r.lastIndex=t,n.ch=t,i=r.exec(n.text),i&&i.index==t)return i}}function l(n){for(;;){r.lastIndex=n.ch;var t=r.exec(n.text);if(!t)if(h(n))continue;else return;if(!u(n,t.index+1)){n.ch=t.index+1;continue}return n.ch=t.index+t[0].length,t}}function p(n){for(var t,i,r;;){if(t=n.ch?n.text.lastIndexOf(">",n.ch-1):-1,t==-1)if(c(n))continue;else return;if(!u(n,t+1)){n.ch=t;continue}return i=n.text.lastIndexOf("/",t),r=i>-1&&!/\S/.test(n.text.slice(i+1,t)),n.ch=t+1,r?"selfClose":"regular"}}function f(n,i){for(var f=[],u;;){var r=l(n),o,s=n.line,h=n.ch-(r?r[0].length:0);if(!r||!(o=e(n)))return;if(o!="selfClose")if(r[1]){for(u=f.length-1;u>=0;--u)if(f[u]==r[2]){f.length=u;break}if(u<0&&(!i||i==r[2]))return{tag:r[2],from:t(s,h),to:t(n.line,n.ch)}}else f.push(r[2])}}function a(n,i){for(var f=[],e,u;;){if(e=p(n),!e)return;if(e=="selfClose"){o(n);continue}var s=n.line,h=n.ch,r=o(n);if(!r)return;if(r[1])f.push(r[2]);else{for(u=f.length-1;u>=0;--u)if(f[u]==r[2]){f.length=u;break}if(u<0&&(!i||i==r[2]))return{tag:r[2],from:t(n.line,n.ch),to:t(s,h)}}}}var t=n.Pos,s="A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",y=s+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",r=new RegExp("<(/?)(["+s+"]["+y+"]*)","g");n.registerHelper("fold","xml",function(n,r){for(var u=new i(n,r.line,0),o,h,r,s;;){if(o=l(u),!o||u.line!=r.line||!(h=e(u)))return;if(!o[1]&&h!="selfClose")return r=t(u.line,u.ch),s=f(u,o[2]),s&&{from:r,to:s.from}}});n.findMatchingTag=function(n,r,u){var s=new i(n,r.line,r.ch,u),l;if(s.text.indexOf(">")!=-1||s.text.indexOf("<")!=-1){var c=e(s),y=c&&t(s.line,s.ch),h=c&&o(s);if(c&&h&&!(v(s,r)>0))return(l={from:t(s.line,s.ch),to:y,tag:h[2]},c=="selfClose")?{open:l,close:null,at:"open"}:h[1]?{open:a(s,h[2]),close:l,at:"close"}:(s=new i(n,y.line,y.ch,u),{open:l,close:f(s,h[2]),at:"open"})}};n.findEnclosingTag=function(n,t,r){for(var s=new i(n,t.line,t.ch,r),u,o,e;;){if(u=a(s),!u)break;if(o=new i(n,t.line,t.ch,r),e=f(o,u.tag),e)return{open:u,close:e}}};n.scanForClosingTag=function(n,t,r,u){var e=new i(n,t.line,t.ch,u?{from:0,to:u}:null);return f(e,r)}}),function(){CodeMirror.defineExtension("autoFormatAll",function(n,t){function v(){h+="\n";f=!0;++a}for(var i,r=this,u=r.getMode(),o=r.getRange(n,t).split("\n"),s=CodeMirror.copyState(u,r.getTokenAt(n).state),y=r.getOption("tabSize"),h="",a=0,f=n.ch==0,e=0;e<o.length;++e){for(i=new CodeMirror.StringStream(o[e],y);!i.eol();){var c=CodeMirror.innerMode(u,s),p=u.token(i,s),l=i.current();i.start=i.pos;(!f||/\S/.test(l))&&(h+=l,f=!1);!f&&c.mode.newlineAfterToken&&c.mode.newlineAfterToken(p,l,i.string.slice(i.pos)||o[e+1]||"",c.state)&&v()}!i.pos&&u.blankLine&&u.blankLine(s);!f&&e<o.length-1&&v()}r.operation(function(){r.replaceRange(h,n,t);for(var i=n.line+1,u=n.line+a;i<=u;++i)r.indentLine(i,"smart");r.setCursor({line:0,ch:0})})})}(),function(){function n(n){for(var i,t,f=[/for\s*?\((.*?)\)/g,/&#?[a-z0-9]+;[\s\S]/g,/\"(.*?)((\")|$)/g,/\/\*(.*?)(\*\/|$)/g,/^\/\/.*/g],r=[],u=0;u<f.length;u++)for(i=0;i<n.length;)if(t=n.substr(i).match(f[u]),t!=null)r.push({start:i+t.index,end:i+t.index+t[0].length}),i+=t.index+Math.max(1,t[0].length);else break;return r.sort(function(n,t){return n.start-t.start}),r}CodeMirror.extendMode("css",{commentStart:"/*",commentEnd:"*/",newlineAfterToken:function(n,t){return/^[;{}]$/.test(t)}});CodeMirror.extendMode("javascript",{commentStart:"/*",commentEnd:"*/",wordWrapChars:[";","\\{","\\}"],autoFormatLineBreaks:function(t){var r=0,e=this.jsonMode?function(n){return n.replace(/([,{])/g,"$1\n").replace(/}/g,"\n}")}:function(n){return n.replace(/(;|\{|\})([^\r\n;])/g,"$1\n$2")},u=n(t),f="",i;if(u!=null){for(i=0;i<u.length;i++)u[i].start>r&&(f+=e(t.substring(r,u[i].start)),r=u[i].start),u[i].start<=r&&u[i].end>=r&&(f+=t.substring(r,u[i].end),r=u[i].end);r<t.length&&(f+=e(t.substr(r)))}else f=e(t);return f.replace(/^\n*|\n*$/,"")}});CodeMirror.extendMode("xml",{commentStart:"<!--",commentEnd:"-->",noBreak:!1,noBreakEmpty:null,tagType:"",tagName:"",isXML:!1,newlineAfterToken:function(n,t,i){var o="a|b|bdi|bdo|big|center|cite|del|em|font|i|img|ins|s|small|span|strike|strong|sub|sup|u",e="label|li|option|textarea|title|"+o,f=!1,r=null,u="",s;if(this.isXML=this.configuration=="xml"?!0:!1,n=="comment"||/<!--/.test(i))return!1;if(n=="tag"){if(t.indexOf("<")==0&&!t.indexOf("<\/")==0&&(this.tagType="open",r=t.match(/^<\s*?([\w]+?)$/i),this.tagName=r!=null?r[1]:"",u=this.tagName.toLowerCase(),("|"+e+"|").indexOf("|"+u+"|")!=-1&&(this.noBreak=!0)),t.indexOf(">")==0&&this.tagType=="open")return(this.tagType="",s=this.isXML?"[^<]*?":"",RegExp("^"+s+"<\/s*?"+this.tagName+"s*?>","i").test(i))?(this.noBreak=!1,this.isXML||(this.tagName=""),!1):(f=this.noBreak,this.noBreak=!1,f?!1:!0);if(t.indexOf("<\/")==0&&(this.tagType="close",r=t.match(/^<\/\s*?([\w]+?)$/i),r!=null&&(u=r[1].toLowerCase()),("|"+o+"|").indexOf("|"+u+"|")!=-1&&(this.noBreak=!0)),t.indexOf(">")==0&&this.tagType=="close")return(this.tagType="",i.indexOf("<")==0&&(r=i.match(/^<\/?\s*?([\w]+?)(\s|>)/i),u=r!=null?r[1].toLowerCase():"",("|"+e+"|").indexOf("|"+u+"|")==-1))?(this.noBreak=!1,!0):(f=this.noBreak,this.noBreak=!1,f?!1:!0)}return i.indexOf("<")==0?(this.noBreak=!1,this.isXML&&this.tagName!="")?(this.tagName="",!1):(r=i.match(/^<\/?\s*?([\w]+?)(\s|>)/i),u=r!=null?r[1].toLowerCase():"",("|"+e+"|").indexOf("|"+u+"|")!=-1?!1:!0):!1}});CodeMirror.defineExtension("commentRange",function(n,t,i){var r=this,u=CodeMirror.innerMode(r.getMode(),r.getTokenAt(t).state).mode;r.operation(function(){if(n)r.replaceRange(u.commentEnd,i),r.replaceRange(u.commentStart,t),t.line==i.line&&t.ch==i.ch&&r.setCursor(t.line,t.ch+u.commentStart.length);else{var f=r.getRange(t,i),e=f.indexOf(u.commentStart),o=f.lastIndexOf(u.commentEnd);e>-1&&o>-1&&o>e&&(f=f.substr(0,e)+f.substring(e+u.commentStart.length,o)+f.substr(o+u.commentEnd.length));r.replaceRange(f,t,i)}})});CodeMirror.defineExtension("autoIndentRange",function(n,t){var i=this;this.operation(function(){for(var r=n.line;r<=t.line;r++)i.indentLine(r,"smart")})});CodeMirror.defineExtension("autoFormatRange",function(n,t){function v(){h+="\n";f=!0;++a}for(var r,i=this,u=i.getMode(),o=i.getRange(n,t).split("\n"),s=CodeMirror.copyState(u,i.getTokenAt(n).state),y=i.getOption("tabSize"),h="",a=0,f=n.ch==0,e=0;e<o.length;++e){for(r=new CodeMirror.StringStream(o[e],y);!r.eol();){var c=CodeMirror.innerMode(u,s),p=u.token(r,s),l=r.current();r.start=r.pos;(!f||/\S/.test(l))&&(h+=l,f=!1);!f&&c.mode.newlineAfterToken&&c.mode.newlineAfterToken(p,l,r.string.slice(r.pos)||o[e+1]||"",c.state)&&v()}!r.pos&&u.blankLine&&u.blankLine(s);!f&&e<o.length-1&&v()}i.operation(function(){i.replaceRange(h,n,t);for(var r=n.line+1,u=n.line+a;r<=u;++r)i.indentLine(r,"smart");i.setSelection(n,i.getCursor(!1))})})}(),function(n){typeof exports=="object"&&typeof module=="object"?n(require("../../lib/codemirror")):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],n):n(CodeMirror)}(function(n){"use strict";function u(n){for(var u=0;u<n.state.activeLines.length;u++)n.removeLineClass(n.state.activeLines[u],"wrap",t),n.removeLineClass(n.state.activeLines[u],"background",i),n.removeLineClass(n.state.activeLines[u],"gutter",r)}function o(n,t){if(n.length!=t.length)return!1;for(var i=0;i<n.length;i++)if(n[i]!=t[i])return!1;return!0}function f(n,f){for(var h,c,e=[],s=0;s<f.length;s++)(h=f[s],h.empty())&&(c=n.getLineHandleVisualStart(h.head.line),e[e.length-1]!=c&&e.push(c));o(n.state.activeLines,e)||n.operation(function(){u(n);for(var f=0;f<e.length;f++)n.addLineClass(e[f],"wrap",t),n.addLineClass(e[f],"background",i),n.addLineClass(e[f],"gutter",r);n.state.activeLines=e})}function e(n,t){f(n,t.ranges)}var t="CodeMirror-activeline",i="CodeMirror-activeline-background",r="CodeMirror-activeline-gutter";n.defineOption("styleActiveLine",!1,function(t,i,r){var o=r&&r!=n.Init;if(i&&!o){t.state.activeLines=[];f(t,t.listSelections());t.on("beforeSelectionChange",e)}else!i&&o&&(t.off("beforeSelectionChange",e),u(t),delete t.state.activeLines)})}),function(n){typeof exports=="object"&&typeof module=="object"?n(require("../../lib/codemirror"),require("./matchesonscrollbar")):typeof define=="function"&&define.amd?define(["../../lib/codemirror","./matchesonscrollbar"],n):n(CodeMirror)}(function(n){"use strict";function e(n){this.options={};for(var i in t)this.options[i]=(n&&n.hasOwnProperty(i)?n:t)[i];this.overlay=this.timeout=null;this.matchesonscroll=null}function i(n){var t=n.state.matchHighlighter;clearTimeout(t.timeout);t.timeout=setTimeout(function(){f(n)},t.options.delay)}function r(n,t,i,r){var u=n.state.matchHighlighter,f;n.addOverlay(u.overlay=h(t,i,r));u.options.annotateScrollbar&&n.showMatchesOnScrollbar&&(f=i?new RegExp("\\b"+t+"\\b"):t,u.matchesonscroll=n.showMatchesOnScrollbar(f,!0,{className:"CodeMirror-selection-highlight-scrollbar"}))}function u(n){var t=n.state.matchHighlighter;t.overlay&&(n.removeOverlay(t.overlay),t.overlay=null,t.matchesonscroll&&(t.matchesonscroll.clear(),t.matchesonscroll=null))}function f(n){n.operation(function(){var t=n.state.matchHighlighter,h,c,e;if(u(n),!n.somethingSelected()&&t.options.showToken){for(var l=t.options.showToken===!0?/[\w$]/:t.options.showToken,a=n.getCursor(),s=n.getLine(a.line),i=a.ch,f=i;i&&l.test(s.charAt(i-1));)--i;while(f<s.length&&l.test(s.charAt(f)))++f;i<f&&r(n,s.slice(i,f),l,t.options.style);return}(h=n.getCursor("from"),c=n.getCursor("to"),h.line==c.line)&&(!t.options.wordsOnly||o(n,h,c))&&(e=n.getRange(h,c),t.options.trim&&(e=e.replace(/^\s+|\s+$/g,"")),e.length>=t.options.minChars&&r(n,e,!1,t.options.style))})}function o(n,t,i){var f=n.getRange(t,i),r,u;return f.match(/^\w+$/)!==null?t.ch>0&&(r={line:t.line,ch:t.ch-1},u=n.getRange(r,t),u.match(/\W/)===null)?!1:i.ch<n.getLine(t.line).length&&(r={line:i.line,ch:i.ch+1},u=n.getRange(i,r),u.match(/\W/)===null)?!1:!0:!1}function s(n,t){return(!n.start||!t.test(n.string.charAt(n.start-1)))&&(n.pos==n.string.length||!t.test(n.string.charAt(n.pos)))}function h(n,t,i){return{token:function(r){if(r.match(n)&&(!t||s(r,t)))return i;r.next();r.skipTo(n.charAt(0))||r.skipToEnd()}}}var t={style:"matchhighlight",minChars:2,delay:100,wordsOnly:!1,annotateScrollbar:!1,showToken:!1,trim:!0};n.defineOption("highlightSelectionMatches",!1,function(t,r,o){if(o&&o!=n.Init&&(u(t),clearTimeout(t.state.matchHighlighter.timeout),t.state.matchHighlighter=null,t.off("cursorActivity",i)),r){t.state.matchHighlighter=new e(r);f(t);t.on("cursorActivity",i)}})}),function(n){typeof exports=="object"&&typeof module=="object"?n(require("../../lib/codemirror")):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],n):n(CodeMirror)}(function(n){"use strict";n.multiplexingMode=function(t){function r(n,t,i,r){var u,f;return typeof t=="string"?(u=n.indexOf(t,i),r&&u>-1?u+t.length:u):(f=t.exec(i?n.slice(i):n),f?f.index+i+(r?f[0].length:0):-1)}var i=Array.prototype.slice.call(arguments,1);return{startState:function(){return{outer:n.startState(t),innerActive:null,inner:null}},copyState:function(i){return{outer:n.copyState(t,i.outer),innerActive:i.innerActive,inner:i.innerActive&&n.copyState(i.innerActive.mode,i.inner)}},token:function(u,f){var c,a,s,v,e,h,o,l;if(f.innerActive)return(e=f.innerActive,h=u.string,!e.close&&u.sol())?(f.innerActive=f.inner=null,this.token(u,f)):(o=e.close?r(h,e.close,u.pos,e.parseDelimiters):-1,o==u.pos&&!e.parseDelimiters)?(u.match(e.close),f.innerActive=f.inner=null,e.delimStyle&&e.delimStyle+" "+e.delimStyle+"-close"):(o>-1&&(u.string=h.slice(0,o)),l=e.mode.token(u,f.inner),o>-1&&(u.string=h),o==u.pos&&e.parseDelimiters&&(f.innerActive=f.inner=null),e.innerStyle&&(l=l?l+" "+e.innerStyle:e.innerStyle),l);for(c=Infinity,h=u.string,a=0;a<i.length;++a){if(s=i[a],o=r(h,s.open,u.pos),o==u.pos)return s.parseDelimiters||u.match(s.open),f.innerActive=s,f.inner=n.startState(s.mode,t.indent?t.indent(f.outer,""):0),s.delimStyle&&s.delimStyle+" "+s.delimStyle+"-open";o!=-1&&o<c&&(c=o)}return c!=Infinity&&(u.string=h.slice(0,c)),v=t.token(u,f.outer),c!=Infinity&&(u.string=h),v},indent:function(i,r){var u=i.innerActive?i.innerActive.mode:t;return u.indent?u.indent(i.innerActive?i.inner:i.outer,r):n.Pass},blankLine:function(r){var u=r.innerActive?r.innerActive.mode:t,f,e;if(u.blankLine&&u.blankLine(r.innerActive?r.inner:r.outer),r.innerActive)r.innerActive.close==="\n"&&(r.innerActive=r.inner=null);else for(f=0;f<i.length;++f)e=i[f],e.open==="\n"&&(r.innerActive=e,r.inner=n.startState(e.mode,u.indent?u.indent(r.outer,""):0))},electricChars:t.electricChars,innerMode:function(n){return n.inner?{state:n.inner,mode:n.innerActive.mode}:{state:n.outer,mode:t}}}}})
@@ -1 +1 @@
1
- (function(n){typeof exports=="object"&&typeof module=="object"?n(require("../../lib/codemirror")):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],n):n(CodeMirror)})(function(n){function t(n,t,i){var u=n.getWrapperElement(),r;return r=u.appendChild(document.createElement("div")),r.className=i?"CodeMirror-dialog CodeMirror-dialog-bottom":"CodeMirror-dialog CodeMirror-dialog-top",typeof t=="string"?r.innerHTML=t:r.appendChild(t),r}function i(n,t){n.state.currentNotificationClose&&n.state.currentNotificationClose();n.state.currentNotificationClose=t}n.defineExtension("openDialog",function(r,u,f){function o(n){if(typeof n=="string")e.value=n;else{if(c)return;if(c=!0,s.parentNode.removeChild(s),l.focus(),f.onClose)f.onClose(s)}}var e,h;f||(f={});i(this,null);var s=t(this,r,f.bottom),c=!1,l=this;if(e=s.getElementsByTagName("input")[0],e){if(f.value&&(e.value=f.value,f.selectValueOnOpen!==!1&&e.select()),f.onInput)n.on(e,"input",function(n){f.onInput(n,e.value,o)});if(f.onKeyUp)n.on(e,"keyup",function(n){f.onKeyUp(n,e.value,o)});n.on(e,"keydown",function(t){f&&f.onKeyDown&&f.onKeyDown(t,e.value,o)||((t.keyCode==27||f.closeOnEnter!==!1&&t.keyCode==13)&&(e.blur(),n.e_stop(t),o()),t.keyCode==13&&u(e.value,t))});if(f.closeOnBlur!==!1)n.on(e,"blur",o);e.focus()}else if(h=s.getElementsByTagName("button")[0]){n.on(h,"click",function(){o();l.focus()});if(f.closeOnBlur!==!1)n.on(h,"blur",o);h.focus()}return o});n.defineExtension("openConfirm",function(r,u,f){function v(){l||(l=!0,s.parentNode.removeChild(s),a.focus())}var e,o;i(this,null);var s=t(this,r,f&&f.bottom),h=s.getElementsByTagName("button"),l=!1,a=this,c=1;for(h[0].focus(),e=0;e<h.length;++e){o=h[e],function(t){n.on(o,"click",function(i){n.e_preventDefault(i);v();t&&t(a)})}(u[e]);n.on(o,"blur",function(){--c;setTimeout(function(){c<=0&&v()},200)});n.on(o,"focus",function(){++c})}});n.defineExtension("openNotification",function(r,u){function f(){o||(o=!0,clearTimeout(s),e.parentNode.removeChild(e))}i(this,f);var e=t(this,r,u&&u.bottom),o=!1,s,h=u&&typeof u.duration!="undefined"?u.duration:5e3;n.on(e,"click",function(t){n.e_preventDefault(t);f()});return h&&(s=setTimeout(f,h)),f})}),function(n){typeof exports=="object"&&typeof module=="object"?n(require("../../lib/codemirror"),require("./searchcursor"),require("../dialog/dialog")):typeof define=="function"&&define.amd?define(["../../lib/codemirror","./searchcursor","../dialog/dialog"],n):n(CodeMirror)}(function(n){"use strict";function c(n,t){return typeof n=="string"?n=new RegExp(n.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),t?"gi":"g"):n.global||(n=new RegExp(n.source,n.ignoreCase?"gi":"g")),{token:function(t){n.lastIndex=t.pos;var i=n.exec(t.string);if(i&&i.index==t.pos)return t.pos+=i[0].length,"searching";i?t.pos=i.index:t.skipToEnd()}}}function l(){this.posFrom=this.posTo=this.lastQuery=this.query=null;this.overlay=null}function i(n){return n.state.search||(n.state.search=new l)}function r(n){return typeof n=="string"&&n==n.toLowerCase()}function t(n,t,i){return n.getSearchCursor(t,i,r(t))}function u(n,t,i,r,u){n.openDialog?n.openDialog(t,u,{value:r,selectValueOnOpen:!0}):u(prompt(i,r))}function a(n,t,i,r){n.openConfirm?n.openConfirm(t,r):confirm(i)&&r[0]()}function o(n){var t=n.match(/^\/(.*)\/([a-z]*)$/);if(t)try{n=new RegExp(t[1],t[2].indexOf("i")==-1?"":"i")}catch(i){}return(typeof n=="string"?n=="":n.test(""))&&(n=/x^/),n}function f(n,t){var f=i(n),e;if(f.query)return s(n,t);e=n.getSelection()||f.lastQuery;u(n,v,"Search for:",e,function(i){n.operation(function(){i&&!f.query&&(f.query=o(i),n.removeOverlay(f.overlay,r(f.query)),f.overlay=c(f.query,r(f.query)),n.addOverlay(f.overlay),n.showMatchesOnScrollbar&&(f.annotate&&(f.annotate.clear(),f.annotate=null),f.annotate=n.showMatchesOnScrollbar(f.query,r(f.query))),f.posFrom=f.posTo=n.getCursor(),s(n,t))})})}function s(r,u){r.operation(function(){var e=i(r),f=t(r,e.query,u?e.posFrom:e.posTo);(f.find(u)||(f=t(r,e.query,u?n.Pos(r.lastLine()):n.Pos(r.firstLine(),0)),f.find(u)))&&(r.setSelection(f.from(),f.to()),r.scrollIntoView({from:f.from(),to:f.to()}),e.posFrom=f.from(),e.posTo=f.to())})}function e(n){n.operation(function(){var t=i(n);(t.lastQuery=t.query,t.query)&&(t.query=null,n.removeOverlay(t.overlay),t.annotate&&(t.annotate.clear(),t.annotate=null))})}function h(n,r){if(!n.getOption("readOnly")){var f=n.getSelection()||i(n).lastQuery;u(n,y,"Replace:",f,function(i){i&&(i=o(i),u(n,p,"Replace with:","",function(u){if(r)n.operation(function(){for(var f,r=t(n,i);r.findNext();)typeof i!="string"?(f=n.getRange(r.from(),r.to()).match(i),r.replace(u.replace(/\$(\d)/g,function(n,t){return f[t]}))):r.replace(u)});else{e(n);var f=t(n,i,n.getCursor()),o=function(){var r=f.from(),u;((u=f.findNext())||(f=t(n,i),(u=f.findNext())&&(!r||f.from().line!=r.line||f.from().ch!=r.ch)))&&(n.setSelection(f.from(),f.to()),n.scrollIntoView({from:f.from(),to:f.to()}),a(n,w,"Replace?",[function(){s(u)},o]))},s=function(n){f.replace(typeof i=="string"?u:u.replace(/\$(\d)/g,function(t,i){return n[i]}));o()};o()}}))})}}var v='Search: <input type="text" style="width: 10em" class="CodeMirror-search-field"/> <span style="color: #888" class="CodeMirror-search-hint">(Use /re/ syntax for regexp search)<\/span>',y='Replace: <input type="text" style="width: 10em" class="CodeMirror-search-field"/> <span style="color: #888" class="CodeMirror-search-hint">(Use /re/ syntax for regexp search)<\/span>',p='With: <input type="text" style="width: 10em" class="CodeMirror-search-field"/>',w="Replace? <button>Yes<\/button> <button>No<\/button> <button>Stop<\/button>";n.commands.find=function(n){e(n);f(n)};n.commands.findNext=f;n.commands.findPrev=function(n){f(n,!0)};n.commands.clearSearch=e;n.commands.replace=h;n.commands.replaceAll=function(n){h(n,!0)}}),function(n){typeof exports=="object"&&typeof module=="object"?n(require("../../lib/codemirror")):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],n):n(CodeMirror)}(function(n){"use strict";function i(n,i,u,f){var h,o,e,s;this.atOccurrence=!1;this.doc=n;f==null&&typeof i=="string"&&(f=!1);u=u?n.clipPos(u):t(0,0);this.pos={from:u,to:u};typeof i!="string"?(i.global||(i=new RegExp(i.source,i.ignoreCase?"ig":"g")),this.matches=function(r,u){var o,h,f,s,c,e;if(r){for(i.lastIndex=0,o=n.getLine(u.line).slice(0,u.ch),h=0;;){if(i.lastIndex=h,c=i.exec(o),!c)break;if(f=c,s=f.index,h=f.index+(f[0].length||1),h==o.length)break}e=f&&f[0].length||0;e||(s==0&&o.length==0?f=undefined:s!=n.getLine(u.line).length&&e++)}else{i.lastIndex=u.ch;var o=n.getLine(u.line),f=i.exec(o),e=f&&f[0].length||0,s=f&&f.index;s+e==o.length||e||(e=1)}if(f&&e)return{from:t(u.line,s),to:t(u.line,s+e),match:f}}):(h=i,f&&(i=i.toLowerCase()),o=f?function(n){return n.toLowerCase()}:function(n){return n},e=i.split("\n"),e.length==1?this.matches=i.length?function(u,f){if(u){var s=n.getLine(f.line).slice(0,f.ch),c=o(s),e=c.lastIndexOf(i);if(e>-1)return e=r(s,c,e),{from:t(f.line,e),to:t(f.line,e+h.length)}}else{var s=n.getLine(f.line).slice(f.ch),c=o(s),e=c.indexOf(i);if(e>-1)return e=r(s,c,e)+f.ch,{from:t(f.line,e),to:t(f.line,e+h.length)}}}:function(){}:(s=h.split("\n"),this.matches=function(i,r){var h=e.length-1,a,c,l,v,u,f;if(i){if(r.line-(e.length-1)<n.firstLine())return;if(o(n.getLine(r.line).slice(0,s[h].length))!=e[e.length-1])return;for(a=t(r.line,s[h].length),u=r.line-1,f=h-1;f>=1;--f,--u)if(e[f]!=o(n.getLine(u)))return;return(c=n.getLine(u),l=c.length-s[0].length,o(c.slice(l))!=e[0])?void 0:{from:t(u,l),to:a}}if(!(r.line+(e.length-1)>n.lastLine())&&(c=n.getLine(r.line),l=c.length-s[0].length,o(c.slice(l))==e[0])){for(v=t(r.line,l),u=r.line+1,f=1;f<h;++f,++u)if(e[f]!=o(n.getLine(u)))return;if(o(n.getLine(u).slice(0,s[h].length))==e[h])return{from:v,to:t(u,s[h].length)}}}))}function r(n,t,i){var r,u;if(n.length==t.length)return i;for(r=Math.min(i,n.length);;)if(u=n.slice(0,r).toLowerCase().length,u<i)++r;else if(u>i)--r;else return r}var t=n.Pos;i.prototype={findNext:function(){return this.find(!1)},findPrevious:function(){return this.find(!0)},find:function(n){function f(n){var i=t(n,0);return u.pos={from:i,to:i},u.atOccurrence=!1,!1}for(var u=this,i=this.doc.clipPos(n?this.pos.from:this.pos.to),r;;){if(this.pos=this.matches(n,i))return this.atOccurrence=!0,this.pos.match||!0;if(n){if(!i.line)return f(0);i=t(i.line-1,this.doc.getLine(i.line-1).length)}else{if(r=this.doc.lineCount(),i.line==r-1)return f(r);i=t(i.line+1,0)}}},from:function(){if(this.atOccurrence)return this.pos.from},to:function(){if(this.atOccurrence)return this.pos.to},replace:function(i,r){if(this.atOccurrence){var u=n.splitLines(i);this.doc.replaceRange(u,this.pos.from,this.pos.to,r);this.pos.to=t(this.pos.from.line+u.length-1,u[u.length-1].length+(u.length==1?this.pos.from.ch:0))}}};n.defineExtension("getSearchCursor",function(n,t,r){return new i(this.doc,n,t,r)});n.defineDocExtension("getSearchCursor",function(n,t,r){return new i(this,n,t,r)});n.defineExtension("selectMatches",function(t,i){for(var u=[],r=this.getSearchCursor(t,this.getCursor("from"),i);r.findNext();){if(n.cmpPos(r.to(),this.getCursor("to"))>0)break;u.push({anchor:r.from(),head:r.to()})}u.length&&this.setSelections(u,0)})})
1
+ (function(n){typeof exports=="object"&&typeof module=="object"?n(require("../../lib/codemirror")):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],n):n(CodeMirror)})(function(n){function t(n,t,i){var u=n.getWrapperElement(),r;return r=u.appendChild(document.createElement("div")),r.className=i?"CodeMirror-dialog CodeMirror-dialog-bottom":"CodeMirror-dialog CodeMirror-dialog-top",typeof t=="string"?r.innerHTML=t:r.appendChild(t),r}function i(n,t){n.state.currentNotificationClose&&n.state.currentNotificationClose();n.state.currentNotificationClose=t}n.defineExtension("openDialog",function(r,u,f){function o(n){if(typeof n=="string")e.value=n;else{if(c)return;if(c=!0,s.parentNode.removeChild(s),l.focus(),f.onClose)f.onClose(s)}}var e,h;f||(f={});i(this,null);var s=t(this,r,f.bottom),c=!1,l=this;if(e=s.getElementsByTagName("input")[0],e){if(e.focus(),f.value&&(e.value=f.value,f.selectValueOnOpen!==!1&&e.select()),f.onInput)n.on(e,"input",function(n){f.onInput(n,e.value,o)});if(f.onKeyUp)n.on(e,"keyup",function(n){f.onKeyUp(n,e.value,o)});n.on(e,"keydown",function(t){f&&f.onKeyDown&&f.onKeyDown(t,e.value,o)||((t.keyCode==27||f.closeOnEnter!==!1&&t.keyCode==13)&&(e.blur(),n.e_stop(t),o()),t.keyCode==13&&u(e.value,t))});if(f.closeOnBlur!==!1)n.on(e,"blur",o)}else if(h=s.getElementsByTagName("button")[0]){n.on(h,"click",function(){o();l.focus()});if(f.closeOnBlur!==!1)n.on(h,"blur",o);h.focus()}return o});n.defineExtension("openConfirm",function(r,u,f){function v(){l||(l=!0,s.parentNode.removeChild(s),a.focus())}var e,o;i(this,null);var s=t(this,r,f&&f.bottom),h=s.getElementsByTagName("button"),l=!1,a=this,c=1;for(h[0].focus(),e=0;e<h.length;++e){o=h[e],function(t){n.on(o,"click",function(i){n.e_preventDefault(i);v();t&&t(a)})}(u[e]);n.on(o,"blur",function(){--c;setTimeout(function(){c<=0&&v()},200)});n.on(o,"focus",function(){++c})}});n.defineExtension("openNotification",function(r,u){function f(){o||(o=!0,clearTimeout(s),e.parentNode.removeChild(e))}i(this,f);var e=t(this,r,u&&u.bottom),o=!1,s,h=u&&typeof u.duration!="undefined"?u.duration:5e3;n.on(e,"click",function(t){n.e_preventDefault(t);f()});return h&&(s=setTimeout(f,h)),f})}),function(n){typeof exports=="object"&&typeof module=="object"?n(require("../../lib/codemirror"),require("./searchcursor"),require("../dialog/dialog")):typeof define=="function"&&define.amd?define(["../../lib/codemirror","./searchcursor","../dialog/dialog"],n):n(CodeMirror)}(function(n){"use strict";function y(n,t){return typeof n=="string"?n=new RegExp(n.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),t?"gi":"g"):n.global||(n=new RegExp(n.source,n.ignoreCase?"gi":"g")),{token:function(t){n.lastIndex=t.pos;var i=n.exec(t.string);if(i&&i.index==t.pos)return t.pos+=i[0].length||1,"searching";i?t.pos=i.index:t.skipToEnd()}}}function p(){this.posFrom=this.posTo=this.lastQuery=this.query=null;this.overlay=null}function r(n){return n.state.search||(n.state.search=new p)}function u(n){return typeof n=="string"&&n==n.toLowerCase()}function t(n,t,i){return n.getSearchCursor(t,i,u(t))}function w(n,t,r,u){n.openDialog(t,u,{value:r,selectValueOnOpen:!0,closeOnEnter:!1,onClose:function(){i(n)}})}function e(n,t,i,r,u){n.openDialog?n.openDialog(t,u,{value:r,selectValueOnOpen:!0}):u(prompt(i,r))}function b(n,t,i,r){n.openConfirm?n.openConfirm(t,r):confirm(i)&&r[0]()}function s(n){return n.replace(/\\(.)/g,function(n,t){return t=="n"?"\n":t=="r"?"\r":t})}function h(n){var t=n.match(/^\/(.*)\/([a-z]*)$/);if(t)try{n=new RegExp(t[1],t[2].indexOf("i")==-1?"":"i")}catch(i){}else n=s(n);return(typeof n=="string"?n=="":n.test(""))&&(n=/x^/),n}function l(n,t,i){t.queryText=i;t.query=h(i);n.removeOverlay(t.overlay,u(t.query));t.overlay=y(t.query,u(t.query));n.addOverlay(t.overlay);n.showMatchesOnScrollbar&&(t.annotate&&(t.annotate.clear(),t.annotate=null),t.annotate=n.showMatchesOnScrollbar(t.query,u(t.query)))}function f(t,i,u){var f=r(t),h,s;if(f.query)return o(t,i);h=t.getSelection()||f.lastQuery;u&&t.openDialog?(s=null,w(t,c,h,function(i,r){(n.e_stop(r),i)&&(i!=f.queryText&&(l(t,f,i),f.posFrom=f.posTo=t.getCursor()),s&&(s.style.opacity=1),o(t,r.shiftKey,function(n,i){var r;i.line<3&&document.querySelector&&(r=t.display.wrapper.querySelector(".CodeMirror-dialog"))&&r.getBoundingClientRect().bottom-4>t.cursorCoords(i,"window").top&&((s=r).style.opacity=.4)}))})):e(t,c,"Search for:",h,function(n){n&&!f.query&&t.operation(function(){l(t,f,n);f.posFrom=f.posTo=t.getCursor();o(t,i)})})}function o(i,u,f){i.operation(function(){var o=r(i),e=t(i,o.query,u?o.posFrom:o.posTo);(e.find(u)||(e=t(i,o.query,u?n.Pos(i.lastLine()):n.Pos(i.firstLine(),0)),e.find(u)))&&(i.setSelection(e.from(),e.to()),i.scrollIntoView({from:e.from(),to:e.to()},20),o.posFrom=e.from(),o.posTo=e.to(),f&&f(e.from(),e.to()))})}function i(n){n.operation(function(){var t=r(n);(t.lastQuery=t.query,t.query)&&(t.query=t.queryText=null,n.removeOverlay(t.overlay),t.annotate&&(t.annotate.clear(),t.annotate=null))})}function a(n,i,r){n.operation(function(){for(var f,u=t(n,i);u.findNext();)typeof i!="string"?(f=n.getRange(u.from(),u.to()).match(i),u.replace(r.replace(/\$(\d)/g,function(n,t){return f[t]}))):u.replace(r)})}function v(n,u){if(!n.getOption("readOnly")){var o=n.getSelection()||r(n).lastQuery,f=u?"Replace all:":"Replace:";e(n,f+k,f,o,function(r){r&&(r=h(r),e(n,d,"Replace with:","",function(f){if(f=s(f),u)a(n,r,f);else{i(n);var e=t(n,r,n.getCursor("from")),o=function(){var i=e.from(),u;((u=e.findNext())||(e=t(n,r),(u=e.findNext())&&(!i||e.from().line!=i.line||e.from().ch!=i.ch)))&&(n.setSelection(e.from(),e.to()),n.scrollIntoView({from:e.from(),to:e.to()}),b(n,g,"Replace?",[function(){h(u)},o,function(){a(n,r,f)}]))},h=function(n){e.replace(typeof r=="string"?f:f.replace(/\$(\d)/g,function(t,i){return n[i]}));o()};o()}}))})}}var c='Search: <input type="text" style="width: 10em" class="CodeMirror-search-field"/> <span style="color: #888" class="CodeMirror-search-hint">(Use /re/ syntax for regexp search)<\/span>',k=' <input type="text" style="width: 10em" class="CodeMirror-search-field"/> <span style="color: #888" class="CodeMirror-search-hint">(Use /re/ syntax for regexp search)<\/span>',d='With: <input type="text" style="width: 10em" class="CodeMirror-search-field"/>',g="Replace? <button>Yes<\/button> <button>No<\/button> <button>All<\/button> <button>Stop<\/button>";n.commands.find=function(n){i(n);f(n)};n.commands.findPersistent=function(n){i(n);f(n,!1,!0)};n.commands.findNext=f;n.commands.findPrev=function(n){f(n,!0)};n.commands.clearSearch=i;n.commands.replace=v;n.commands.replaceAll=function(n){v(n,!0)}}),function(n){typeof exports=="object"&&typeof module=="object"?n(require("../../lib/codemirror")):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],n):n(CodeMirror)}(function(n){"use strict";function i(n,i,u,f){var h,o,e,s;this.atOccurrence=!1;this.doc=n;f==null&&typeof i=="string"&&(f=!1);u=u?n.clipPos(u):t(0,0);this.pos={from:u,to:u};typeof i!="string"?(i.global||(i=new RegExp(i.source,i.ignoreCase?"ig":"g")),this.matches=function(r,u){var o,h,f,s,c,e;if(r){for(i.lastIndex=0,o=n.getLine(u.line).slice(0,u.ch),h=0;;){if(i.lastIndex=h,c=i.exec(o),!c)break;if(f=c,s=f.index,h=f.index+(f[0].length||1),h==o.length)break}e=f&&f[0].length||0;e||(s==0&&o.length==0?f=undefined:s!=n.getLine(u.line).length&&e++)}else{i.lastIndex=u.ch;var o=n.getLine(u.line),f=i.exec(o),e=f&&f[0].length||0,s=f&&f.index;s+e==o.length||e||(e=1)}if(f&&e)return{from:t(u.line,s),to:t(u.line,s+e),match:f}}):(h=i,f&&(i=i.toLowerCase()),o=f?function(n){return n.toLowerCase()}:function(n){return n},e=i.split("\n"),e.length==1?this.matches=i.length?function(u,f){if(u){var s=n.getLine(f.line).slice(0,f.ch),c=o(s),e=c.lastIndexOf(i);if(e>-1)return e=r(s,c,e),{from:t(f.line,e),to:t(f.line,e+h.length)}}else{var s=n.getLine(f.line).slice(f.ch),c=o(s),e=c.indexOf(i);if(e>-1)return e=r(s,c,e)+f.ch,{from:t(f.line,e),to:t(f.line,e+h.length)}}}:function(){}:(s=h.split("\n"),this.matches=function(i,r){var h=e.length-1,a,c,l,v,u,f;if(i){if(r.line-(e.length-1)<n.firstLine())return;if(o(n.getLine(r.line).slice(0,s[h].length))!=e[e.length-1])return;for(a=t(r.line,s[h].length),u=r.line-1,f=h-1;f>=1;--f,--u)if(e[f]!=o(n.getLine(u)))return;return(c=n.getLine(u),l=c.length-s[0].length,o(c.slice(l))!=e[0])?void 0:{from:t(u,l),to:a}}if(!(r.line+(e.length-1)>n.lastLine())&&(c=n.getLine(r.line),l=c.length-s[0].length,o(c.slice(l))==e[0])){for(v=t(r.line,l),u=r.line+1,f=1;f<h;++f,++u)if(e[f]!=o(n.getLine(u)))return;if(o(n.getLine(u).slice(0,s[h].length))==e[h])return{from:v,to:t(u,s[h].length)}}}))}function r(n,t,i){var r,u;if(n.length==t.length)return i;for(r=Math.min(i,n.length);;)if(u=n.slice(0,r).toLowerCase().length,u<i)++r;else if(u>i)--r;else return r}var t=n.Pos;i.prototype={findNext:function(){return this.find(!1)},findPrevious:function(){return this.find(!0)},find:function(n){function f(n){var i=t(n,0);return u.pos={from:i,to:i},u.atOccurrence=!1,!1}for(var u=this,i=this.doc.clipPos(n?this.pos.from:this.pos.to),r;;){if(this.pos=this.matches(n,i))return this.atOccurrence=!0,this.pos.match||!0;if(n){if(!i.line)return f(0);i=t(i.line-1,this.doc.getLine(i.line-1).length)}else{if(r=this.doc.lineCount(),i.line==r-1)return f(r);i=t(i.line+1,0)}}},from:function(){if(this.atOccurrence)return this.pos.from},to:function(){if(this.atOccurrence)return this.pos.to},replace:function(i,r){if(this.atOccurrence){var u=n.splitLines(i);this.doc.replaceRange(u,this.pos.from,this.pos.to,r);this.pos.to=t(this.pos.from.line+u.length-1,u[u.length-1].length+(u.length==1?this.pos.from.ch:0))}}};n.defineExtension("getSearchCursor",function(n,t,r){return new i(this.doc,n,t,r)});n.defineDocExtension("getSearchCursor",function(n,t,r){return new i(this,n,t,r)});n.defineExtension("selectMatches",function(t,i){for(var u=[],r=this.getSearchCursor(t,this.getCursor("from"),i);r.findNext();){if(n.cmpPos(r.to(),this.getCursor("to"))>0)break;u.push({anchor:r.from(),head:r.to()})}u.length&&this.setSelections(u,0)})})
@@ -1 +1 @@
1
- (function(a){if(typeof exports=="object"&&typeof module=="object"){module.exports=a()}else{if(typeof define=="function"&&define.amd){return define([],a)}else{this.CodeMirror=a()}}})(function(){var cp=/gecko\/\d/i.test(navigator.userAgent);var eL=/MSIE \d/.test(navigator.userAgent);var bK=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);var dL=eL||bK;var k=dL&&(eL?document.documentMode||6:bK[1]);var c1=/WebKit\//.test(navigator.userAgent);var dO=c1&&/Qt\/\d+\.\d+/.test(navigator.userAgent);var dd=/Chrome\//.test(navigator.userAgent);var d4=/Opera\//.test(navigator.userAgent);var aC=/Apple Computer/.test(navigator.vendor);var c8=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(navigator.userAgent);var fv=/PhantomJS/.test(navigator.userAgent);var e2=/AppleWebKit/.test(navigator.userAgent)&&/Mobile\/\w+/.test(navigator.userAgent);var eh=e2||/Android|webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(navigator.userAgent);var b8=e2||/Mac/.test(navigator.platform);var aP=/win/i.test(navigator.platform);var aZ=d4&&navigator.userAgent.match(/Version\/(\d*\.\d*)/);if(aZ){aZ=Number(aZ[1])}if(aZ&&aZ>=15){d4=false;c1=true}var bR=b8&&(dO||d4&&(aZ==null||aZ<12.11));var ga=cp||(dL&&k>=9);var gd=false,a8=false;function H(gj,gl){if(!(this instanceof H)){return new H(gj,gl)}this.options=gl=gl?aN(gl):{};aN(e4,gl,false);cf(gl);var gp=gl.value;if(typeof gp=="string"){gp=new at(gp,gl.mode)}this.doc=gp;var gk=new H.inputStyles[gl.inputStyle](this);var go=this.display=new eJ(gj,gp,gk);go.wrapper.CodeMirror=this;ed(this);cP(this);if(gl.lineWrapping){this.display.wrapper.className+=" CodeMirror-wrap"}if(gl.autofocus&&!eh){go.input.focus()}aD(this);this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:false,delayingBlurEvent:false,focused:false,suppressEdits:false,pasteIncoming:false,cutIncoming:false,draggingText:false,highlight:new gh(),keySeq:null,specialChars:null};var gi=this;if(dL&&k<11){setTimeout(function(){gi.display.input.reset(true)},20)}fR(this);bk();cJ(this);this.curOp.forceUpdate=true;ec(this,gp);if((gl.autofocus&&!eh)||gi.hasFocus()){setTimeout(cw(cC,this),20)}else{aV(this)}for(var gn in bg){if(bg.hasOwnProperty(gn)){bg[gn](this,gl[gn],cd)}}d6(this);if(gl.finishInit){gl.finishInit(this)}for(var gm=0;gm<a9.length;++gm){a9[gm](this)}am(this);if(c1&&gl.lineWrapping&&getComputedStyle(go.lineDiv).textRendering=="optimizelegibility"){go.lineDiv.style.textRendering="auto"}}function eJ(gi,gk,gj){var gl=this;this.input=gj;gl.scrollbarFiller=f3("div",null,"CodeMirror-scrollbar-filler");gl.scrollbarFiller.setAttribute("cm-not-content","true");gl.gutterFiller=f3("div",null,"CodeMirror-gutter-filler");gl.gutterFiller.setAttribute("cm-not-content","true");gl.lineDiv=f3("div",null,"CodeMirror-code");gl.selectionDiv=f3("div",null,null,"position: relative; z-index: 1");gl.cursorDiv=f3("div",null,"CodeMirror-cursors");gl.measure=f3("div",null,"CodeMirror-measure");gl.lineMeasure=f3("div",null,"CodeMirror-measure");gl.lineSpace=f3("div",[gl.measure,gl.lineMeasure,gl.selectionDiv,gl.cursorDiv,gl.lineDiv],null,"position: relative; outline: none");gl.mover=f3("div",[f3("div",[gl.lineSpace],"CodeMirror-lines")],null,"position: relative");gl.sizer=f3("div",[gl.mover],"CodeMirror-sizer");gl.sizerWidth=null;gl.heightForcer=f3("div",null,null,"position: absolute; height: "+dK+"px; width: 1px;");gl.gutters=f3("div",null,"CodeMirror-gutters");gl.lineGutter=null;gl.scroller=f3("div",[gl.sizer,gl.heightForcer,gl.gutters],"CodeMirror-scroll");gl.scroller.setAttribute("tabIndex","-1");gl.wrapper=f3("div",[gl.scrollbarFiller,gl.gutterFiller,gl.scroller],"CodeMirror");if(dL&&k<8){gl.gutters.style.zIndex=-1;gl.scroller.style.paddingRight=0}if(!c1&&!(cp&&eh)){gl.scroller.draggable=true}if(gi){if(gi.appendChild){gi.appendChild(gl.wrapper)}else{gi(gl.wrapper)}}gl.viewFrom=gl.viewTo=gk.first;gl.reportedViewFrom=gl.reportedViewTo=gk.first;gl.view=[];gl.renderedView=null;gl.externalMeasured=null;gl.viewOffset=0;gl.lastWrapHeight=gl.lastWrapWidth=0;gl.updateLineNumbers=null;gl.nativeBarWidth=gl.barHeight=gl.barWidth=0;gl.scrollbarsClipped=false;gl.lineNumWidth=gl.lineNumInnerWidth=gl.lineNumChars=null;gl.alignWidgets=false;gl.cachedCharWidth=gl.cachedTextHeight=gl.cachedPaddingH=null;gl.maxLine=null;gl.maxLineLength=0;gl.maxLineChanged=false;gl.wheelDX=gl.wheelDY=gl.wheelStartX=gl.wheelStartY=null;gl.shift=false;gl.selForContextMenu=null;gl.activeTouch=null;gj.init(gl)}function bs(gi){gi.doc.mode=H.getMode(gi.options,gi.doc.modeOption);em(gi)}function em(gi){gi.doc.iter(function(gj){if(gj.stateAfter){gj.stateAfter=null}if(gj.styles){gj.styles=null}});gi.doc.frontier=gi.doc.first;eg(gi,100);gi.state.modeGen++;if(gi.curOp){ah(gi)}}function eH(gi){if(gi.options.lineWrapping){fB(gi.display.wrapper,"CodeMirror-wrap");gi.display.sizer.style.minWidth="";gi.display.sizerWidth=null}else{f(gi.display.wrapper,"CodeMirror-wrap");h(gi)}X(gi);ah(gi);ak(gi);setTimeout(function(){eZ(gi)},100)}function bf(gi){var gk=aY(gi.display),gj=gi.options.lineWrapping;var gl=gj&&Math.max(5,gi.display.scroller.clientWidth/dE(gi.display)-3);return function(gn){if(fx(gi.doc,gn)){return 0}var gm=0;if(gn.widgets){for(var go=0;go<gn.widgets.length;go++){if(gn.widgets[go].height){gm+=gn.widgets[go].height}}}if(gj){return gm+(Math.ceil(gn.text.length/gl)||1)*gk}else{return gm+gk}}}function X(gi){var gk=gi.doc,gj=bf(gi);gk.iter(function(gl){var gm=gj(gl);if(gm!=gl.height){f6(gl,gm)}})}function cP(gi){gi.display.wrapper.className=gi.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+gi.options.theme.replace(/(^|\s)\s*/g," cm-s-");ak(gi)}function dx(gi){ed(gi);ah(gi);setTimeout(function(){eF(gi)},20)}function ed(gi){var gj=gi.display.gutters,gn=gi.options.gutters;d2(gj);for(var gk=0;gk<gn.length;++gk){var gl=gn[gk];var gm=gj.appendChild(f3("div",null,"CodeMirror-gutter "+gl));if(gl=="CodeMirror-linenumbers"){gi.display.lineGutter=gm;gm.style.width=(gi.display.lineNumWidth||1)+"px"}}gj.style.display=gk?"":"none";c5(gi)}function c5(gi){var gj=gi.display.gutters.offsetWidth;gi.display.sizer.style.marginLeft=gj+"px"}function eo(gk){if(gk.height==0){return 0}var gj=gk.text.length,gi,gm=gk;while(gi=eP(gm)){var gl=gi.find(0,true);gm=gl.from.line;gj+=gl.from.ch-gl.to.ch}gm=gk;while(gi=ex(gm)){var gl=gi.find(0,true);gj-=gm.text.length-gl.from.ch;gm=gl.to.line;gj+=gm.text.length-gl.to.ch}return gj}function h(gi){var gk=gi.display,gj=gi.doc;gk.maxLine=fg(gj,gj.first);gk.maxLineLength=eo(gk.maxLine);gk.maxLineChanged=true;gj.iter(function(gm){var gl=eo(gm);if(gl>gk.maxLineLength){gk.maxLineLength=gl;gk.maxLine=gm}})}function cf(gi){var gj=di(gi.gutters,"CodeMirror-linenumbers");if(gj==-1&&gi.lineNumbers){gi.gutters=gi.gutters.concat(["CodeMirror-linenumbers"])}else{if(gj>-1&&!gi.lineNumbers){gi.gutters=gi.gutters.slice(0);gi.gutters.splice(gj,1)}}}function dB(gi){var gl=gi.display,gk=gl.gutters.offsetWidth;var gj=Math.round(gi.doc.height+bJ(gi.display));return{clientHeight:gl.scroller.clientHeight,viewHeight:gl.wrapper.clientHeight,scrollWidth:gl.scroller.scrollWidth,clientWidth:gl.scroller.clientWidth,viewWidth:gl.wrapper.clientWidth,barLeft:gi.options.fixedGutter?gk:0,docHeight:gj,scrollHeight:gj+cU(gi)+gl.barHeight,nativeBarWidth:gl.nativeBarWidth,gutterWidth:gk}}function dl(gk,gj,gi){this.cm=gi;var gl=this.vert=f3("div",[f3("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar");var gm=this.horiz=f3("div",[f3("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");gk(gl);gk(gm);bY(gl,"scroll",function(){if(gl.clientHeight){gj(gl.scrollTop,"vertical")}});bY(gm,"scroll",function(){if(gm.clientWidth){gj(gm.scrollLeft,"horizontal")}});this.checkedOverlay=false;if(dL&&k<8){this.horiz.style.minHeight=this.vert.style.minWidth="18px"}}dl.prototype=aN({update:function(gl){var gm=gl.scrollWidth>gl.clientWidth+1;var gk=gl.scrollHeight>gl.clientHeight+1;var gn=gl.nativeBarWidth;if(gk){this.vert.style.display="block";this.vert.style.bottom=gm?gn+"px":"0";var gj=gl.viewHeight-(gm?gn:0);this.vert.firstChild.style.height=Math.max(0,gl.scrollHeight-gl.clientHeight+gj)+"px"}else{this.vert.style.display="";this.vert.firstChild.style.height="0"}if(gm){this.horiz.style.display="block";this.horiz.style.right=gk?gn+"px":"0";this.horiz.style.left=gl.barLeft+"px";var gi=gl.viewWidth-gl.barLeft-(gk?gn:0);this.horiz.firstChild.style.width=(gl.scrollWidth-gl.clientWidth+gi)+"px"}else{this.horiz.style.display="";this.horiz.firstChild.style.width="0"}if(!this.checkedOverlay&&gl.clientHeight>0){if(gn==0){this.overlayHack()}this.checkedOverlay=true}return{right:gk?gn:0,bottom:gm?gn:0}},setScrollLeft:function(gi){if(this.horiz.scrollLeft!=gi){this.horiz.scrollLeft=gi}},setScrollTop:function(gi){if(this.vert.scrollTop!=gi){this.vert.scrollTop=gi}},overlayHack:function(){var gi=b8&&!c8?"12px":"18px";this.horiz.style.minHeight=this.vert.style.minWidth=gi;var gj=this;var gk=function(gl){if(L(gl)!=gj.vert&&L(gl)!=gj.horiz){c3(gj.cm,ev)(gl)}};bY(this.vert,"mousedown",gk);bY(this.horiz,"mousedown",gk)},clear:function(){var gi=this.horiz.parentNode;gi.removeChild(this.horiz);gi.removeChild(this.vert)}},dl.prototype);function e5(){}e5.prototype=aN({update:function(){return{bottom:0,right:0}},setScrollLeft:function(){},setScrollTop:function(){},clear:function(){}},e5.prototype);H.scrollbarModel={"native":dl,"null":e5};function aD(gi){if(gi.display.scrollbars){gi.display.scrollbars.clear();if(gi.display.scrollbars.addClass){f(gi.display.wrapper,gi.display.scrollbars.addClass)}}gi.display.scrollbars=new H.scrollbarModel[gi.options.scrollbarStyle](function(gj){gi.display.wrapper.insertBefore(gj,gi.display.scrollbarFiller);bY(gj,"mousedown",function(){if(gi.state.focused){setTimeout(function(){gi.display.input.focus()},0)}});gj.setAttribute("cm-not-content","true")},function(gk,gj){if(gj=="horizontal"){bF(gi,gk)}else{N(gi,gk)}},gi);if(gi.display.scrollbars.addClass){fB(gi.display.wrapper,gi.display.scrollbars.addClass)}}function eZ(gk,gm){if(!gm){gm=dB(gk)}var gj=gk.display.barWidth,gi=gk.display.barHeight;aU(gk,gm);for(var gl=0;gl<4&&gj!=gk.display.barWidth||gi!=gk.display.barHeight;gl++){if(gj!=gk.display.barWidth&&gk.options.lineWrapping){ba(gk)}aU(gk,dB(gk));gj=gk.display.barWidth;gi=gk.display.barHeight}}function aU(gi,gj){var gl=gi.display;var gk=gl.scrollbars.update(gj);gl.sizer.style.paddingRight=(gl.barWidth=gk.right)+"px";gl.sizer.style.paddingBottom=(gl.barHeight=gk.bottom)+"px";if(gk.right&&gk.bottom){gl.scrollbarFiller.style.display="block";gl.scrollbarFiller.style.height=gk.bottom+"px";gl.scrollbarFiller.style.width=gk.right+"px"}else{gl.scrollbarFiller.style.display=""}if(gk.bottom&&gi.options.coverGutterNextToScrollbar&&gi.options.fixedGutter){gl.gutterFiller.style.display="block";gl.gutterFiller.style.height=gk.bottom+"px";gl.gutterFiller.style.width=gj.gutterWidth+"px"}else{gl.gutterFiller.style.display=""}}function b7(gl,gp,gk){var gm=gk&&gk.top!=null?Math.max(0,gk.top):gl.scroller.scrollTop;gm=Math.floor(gm-e9(gl));var gi=gk&&gk.bottom!=null?gk.bottom:gm+gl.wrapper.clientHeight;var gn=bH(gp,gm),go=bH(gp,gi);if(gk&&gk.ensure){var gj=gk.ensure.from.line,gq=gk.ensure.to.line;if(gj<gn){gn=gj;go=bH(gp,bN(fg(gp,gj))+gl.wrapper.clientHeight)}else{if(Math.min(gq,gp.lastLine())>=go){gn=bH(gp,bN(fg(gp,gq))-gl.wrapper.clientHeight);go=gq}}}return{from:gn,to:Math.max(go,gn+1)}}function eF(gq){var go=gq.display,gp=go.view;if(!go.alignWidgets&&(!go.gutters.firstChild||!gq.options.fixedGutter)){return}var gm=dY(go)-go.scroller.scrollLeft+gq.doc.scrollLeft;var gi=go.gutters.offsetWidth,gj=gm+"px";for(var gl=0;gl<gp.length;gl++){if(!gp[gl].hidden){if(gq.options.fixedGutter&&gp[gl].gutter){gp[gl].gutter.style.left=gj}var gn=gp[gl].alignable;if(gn){for(var gk=0;gk<gn.length;gk++){gn[gk].style.left=gj}}}}if(gq.options.fixedGutter){go.gutters.style.left=(gm+gi)+"px"}}function d6(gi){if(!gi.options.lineNumbers){return false}var gn=gi.doc,gj=et(gi.options,gn.first+gn.size-1),gm=gi.display;if(gj.length!=gm.lineNumChars){var go=gm.measure.appendChild(f3("div",[f3("div",gj)],"CodeMirror-linenumber CodeMirror-gutter-elt"));var gk=go.firstChild.offsetWidth,gl=go.offsetWidth-gk;gm.lineGutter.style.width="";gm.lineNumInnerWidth=Math.max(gk,gm.lineGutter.offsetWidth-gl)+1;gm.lineNumWidth=gm.lineNumInnerWidth+gl;gm.lineNumChars=gm.lineNumInnerWidth?gj.length:-1;gm.lineGutter.style.width=gm.lineNumWidth+"px";c5(gi);return true}return false}function et(gi,gj){return String(gi.lineNumberFormatter(gj+gi.firstLineNumber))}function dY(gi){return gi.scroller.getBoundingClientRect().left-gi.sizer.getBoundingClientRect().left}function aI(gj,gi,gk){var gl=gj.display;this.viewport=gi;this.visible=b7(gl,gj.doc,gi);this.editorIsHidden=!gl.wrapper.offsetWidth;this.wrapperHeight=gl.wrapper.clientHeight;this.wrapperWidth=gl.wrapper.clientWidth;this.oldDisplayWidth=dm(gj);this.force=gk;this.dims=fe(gj);this.events=[]}aI.prototype.signal=function(gj,gi){if(fj(gj,gi)){this.events.push(arguments)}};aI.prototype.finish=function(){for(var gi=0;gi<this.events.length;gi++){aE.apply(null,this.events[gi])}};function J(gi){var gj=gi.display;if(!gj.scrollbarsClipped&&gj.scroller.offsetWidth){gj.nativeBarWidth=gj.scroller.offsetWidth-gj.scroller.clientWidth;gj.heightForcer.style.height=cU(gi)+"px";gj.sizer.style.marginBottom=-gj.nativeBarWidth+"px";gj.sizer.style.borderRightWidth=cU(gi)+"px";gj.scrollbarsClipped=true}}function B(gr,gl){var gm=gr.display,gq=gr.doc;if(gl.editorIsHidden){ey(gr);return false}if(!gl.force&&gl.visible.from>=gm.viewFrom&&gl.visible.to<=gm.viewTo&&(gm.updateLineNumbers==null||gm.updateLineNumbers>=gm.viewTo)&&gm.renderedView==gm.view&&dc(gr)==0){return false}if(d6(gr)){ey(gr);gl.dims=fe(gr)}var gk=gq.first+gq.size;var go=Math.max(gl.visible.from-gr.options.viewportMargin,gq.first);var gp=Math.min(gk,gl.visible.to+gr.options.viewportMargin);if(gm.viewFrom<go&&go-gm.viewFrom<20){go=Math.max(gq.first,gm.viewFrom)}if(gm.viewTo>gp&&gm.viewTo-gp<20){gp=Math.min(gk,gm.viewTo)}if(a8){go=aW(gr.doc,go);gp=d3(gr.doc,gp)}var gj=go!=gm.viewFrom||gp!=gm.viewTo||gm.lastWrapHeight!=gl.wrapperHeight||gm.lastWrapWidth!=gl.wrapperWidth;cS(gr,go,gp);gm.viewOffset=bN(fg(gr.doc,gm.viewFrom));gr.display.mover.style.top=gm.viewOffset+"px";var gi=dc(gr);if(!gj&&gi==0&&!gl.force&&gm.renderedView==gm.view&&(gm.updateLineNumbers==null||gm.updateLineNumbers>=gm.viewTo)){return false}var gn=dP();if(gi>4){gm.lineDiv.style.display="none"}cn(gr,gm.updateLineNumbers,gl.dims);if(gi>4){gm.lineDiv.style.display=""}gm.renderedView=gm.view;if(gn&&dP()!=gn&&gn.offsetHeight){gn.focus()}d2(gm.cursorDiv);d2(gm.selectionDiv);gm.gutters.style.height=0;if(gj){gm.lastWrapHeight=gl.wrapperHeight;gm.lastWrapWidth=gl.wrapperWidth;eg(gr,400)}gm.updateLineNumbers=null;return true}function ck(gj,gm){var gi=gm.viewport;for(var gl=true;;gl=false){if(!gl||!gj.options.lineWrapping||gm.oldDisplayWidth==dm(gj)){if(gi&&gi.top!=null){gi={top:Math.min(gj.doc.height+bJ(gj.display)-cW(gj),gi.top)}}gm.visible=b7(gj.display,gj.doc,gi);if(gm.visible.from>=gj.display.viewFrom&&gm.visible.to<=gj.display.viewTo){break}}if(!B(gj,gm)){break}ba(gj);var gk=dB(gj);bD(gj);dA(gj,gk);eZ(gj,gk)}gm.signal(gj,"update",gj);if(gj.display.viewFrom!=gj.display.reportedViewFrom||gj.display.viewTo!=gj.display.reportedViewTo){gm.signal(gj,"viewportChange",gj,gj.display.viewFrom,gj.display.viewTo);gj.display.reportedViewFrom=gj.display.viewFrom;gj.display.reportedViewTo=gj.display.viewTo}}function dU(gj,gi){var gl=new aI(gj,gi);if(B(gj,gl)){ba(gj);ck(gj,gl);var gk=dB(gj);bD(gj);dA(gj,gk);eZ(gj,gk);gl.finish()}}function dA(gi,gj){gi.display.sizer.style.minHeight=gj.docHeight+"px";var gk=gj.docHeight+gi.display.barHeight;gi.display.heightForcer.style.top=gk+"px";gi.display.gutters.style.height=Math.max(gk+cU(gi),gj.clientHeight)+"px"}function ba(gp){var gn=gp.display;var gj=gn.lineDiv.offsetTop;for(var gk=0;gk<gn.view.length;gk++){var gq=gn.view[gk],gr;if(gq.hidden){continue}if(dL&&k<8){var gm=gq.node.offsetTop+gq.node.offsetHeight;gr=gm-gj;gj=gm}else{var gl=gq.node.getBoundingClientRect();gr=gl.bottom-gl.top}var go=gq.line.height-gr;if(gr<2){gr=aY(gn)}if(go>0.001||go<-0.001){f6(gq.line,gr);cc(gq.line);if(gq.rest){for(var gi=0;gi<gq.rest.length;gi++){cc(gq.rest[gi])}}}}}function cc(gi){if(gi.widgets){for(var gj=0;gj<gi.widgets.length;++gj){gi.widgets[gj].height=gi.widgets[gj].node.offsetHeight}}}function fe(gi){var gn=gi.display,gl={},gk={};var gm=gn.gutters.clientLeft;for(var go=gn.gutters.firstChild,gj=0;go;go=go.nextSibling,++gj){gl[gi.options.gutters[gj]]=go.offsetLeft+go.clientLeft+gm;gk[gi.options.gutters[gj]]=go.clientWidth}return{fixedPos:dY(gn),gutterTotalWidth:gn.gutters.offsetWidth,gutterLeft:gl,gutterWidth:gk,wrapperWidth:gn.wrapper.clientWidth}}function cn(gt,gk,gs){var gp=gt.display,gv=gt.options.lineNumbers;var gi=gp.lineDiv,gu=gi.firstChild;function go(gx){var gw=gx.nextSibling;if(c1&&b8&&gt.display.currentWheelTarget==gx){gx.style.display="none"}else{gx.parentNode.removeChild(gx)}return gw}var gq=gp.view,gn=gp.viewFrom;for(var gl=0;gl<gq.length;gl++){var gm=gq[gl];if(gm.hidden){}else{if(!gm.node||gm.node.parentNode!=gi){var gj=aF(gt,gm,gn,gs);gi.insertBefore(gj,gu)}else{while(gu!=gm.node){gu=go(gu)}var gr=gv&&gk!=null&&gk<=gn&&gm.lineNumber;if(gm.changes){if(di(gm.changes,"gutter")>-1){gr=false}ab(gt,gm,gn,gs)}if(gr){d2(gm.lineNumber);gm.lineNumber.appendChild(document.createTextNode(et(gt.options,gn)))}gu=gm.node.nextSibling}}gn+=gm.size}while(gu){gu=go(gu)}}function ab(gi,gk,gm,gn){for(var gj=0;gj<gk.changes.length;gj++){var gl=gk.changes[gj];if(gl=="text"){fm(gi,gk)}else{if(gl=="gutter"){dg(gi,gk,gm,gn)}else{if(gl=="class"){dH(gk)}else{if(gl=="widget"){ao(gi,gk,gn)}}}}}gk.changes=null}function fI(gi){if(gi.node==gi.text){gi.node=f3("div",null,null,"position: relative");if(gi.text.parentNode){gi.text.parentNode.replaceChild(gi.node,gi.text)}gi.node.appendChild(gi.text);if(dL&&k<8){gi.node.style.zIndex=2}}return gi.node}function ew(gj){var gi=gj.bgClass?gj.bgClass+" "+(gj.line.bgClass||""):gj.line.bgClass;if(gi){gi+=" CodeMirror-linebackground"}if(gj.background){if(gi){gj.background.className=gi}else{gj.background.parentNode.removeChild(gj.background);gj.background=null}}else{if(gi){var gk=fI(gj);gj.background=gk.insertBefore(f3("div",null,gi),gk.firstChild)}}}function dW(gi,gj){var gk=gi.display.externalMeasured;if(gk&&gk.line==gj.line){gi.display.externalMeasured=null;gj.measure=gk.measure;return gk.built}return eS(gi,gj)}function fm(gi,gl){var gj=gl.text.className;var gk=dW(gi,gl);if(gl.text==gl.node){gl.node=gk.pre}gl.text.parentNode.replaceChild(gk.pre,gl.text);gl.text=gk.pre;if(gk.bgClass!=gl.bgClass||gk.textClass!=gl.textClass){gl.bgClass=gk.bgClass;gl.textClass=gk.textClass;dH(gl)}else{if(gj){gl.text.className=gj}}}function dH(gj){ew(gj);if(gj.line.wrapClass){fI(gj).className=gj.line.wrapClass}else{if(gj.node!=gj.text){gj.node.className=""}}var gi=gj.textClass?gj.textClass+" "+(gj.line.textClass||""):gj.line.textClass;gj.text.className=gi||""}function dg(gq,go,gn,gp){if(go.gutter){go.node.removeChild(go.gutter);go.gutter=null}var gl=go.line.gutterMarkers;if(gq.options.lineNumbers||gl){var gj=fI(go);var gm=go.gutter=f3("div",null,"CodeMirror-gutter-wrapper","left: "+(gq.options.fixedGutter?gp.fixedPos:-gp.gutterTotalWidth)+"px; width: "+gp.gutterTotalWidth+"px");gq.display.input.setUneditable(gm);gj.insertBefore(gm,go.text);if(go.line.gutterClass){gm.className+=" "+go.line.gutterClass}if(gq.options.lineNumbers&&(!gl||!gl["CodeMirror-linenumbers"])){go.lineNumber=gm.appendChild(f3("div",et(gq.options,gn),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+gp.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+gq.display.lineNumInnerWidth+"px"))}if(gl){for(var gk=0;gk<gq.options.gutters.length;++gk){var gi=gq.options.gutters[gk],gr=gl.hasOwnProperty(gi)&&gl[gi];if(gr){gm.appendChild(f3("div",[gr],"CodeMirror-gutter-elt","left: "+gp.gutterLeft[gi]+"px; width: "+gp.gutterWidth[gi]+"px"))}}}}}function ao(gi,gj,gm){if(gj.alignable){gj.alignable=null}for(var gl=gj.node.firstChild,gk;gl;gl=gk){var gk=gl.nextSibling;if(gl.className=="CodeMirror-linewidget"){gj.node.removeChild(gl)}}fu(gi,gj,gm)}function aF(gi,gk,gl,gm){var gj=dW(gi,gk);gk.text=gk.node=gj.pre;if(gj.bgClass){gk.bgClass=gj.bgClass}if(gj.textClass){gk.textClass=gj.textClass}dH(gk);dg(gi,gk,gl,gm);fu(gi,gk,gm);return gk.node}function fu(gi,gk,gl){f8(gi,gk.line,gk,gl,true);if(gk.rest){for(var gj=0;gj<gk.rest.length;gj++){f8(gi,gk.rest[gj],gk,gl,false)}}}function f8(gq,gr,gn,gp,gl){if(!gr.widgets){return}var gi=fI(gn);for(var gk=0,go=gr.widgets;gk<go.length;++gk){var gm=go[gk],gj=f3("div",[gm.node],"CodeMirror-linewidget");if(!gm.handleMouseEvents){gj.setAttribute("cm-ignore-events","true")}bG(gm,gj,gn,gp);gq.display.input.setUneditable(gj);if(gl&&gm.above){gi.insertBefore(gj,gn.gutter||gn.text)}else{gi.appendChild(gj)}ae(gm,"redraw")}}function bG(gl,gk,gi,gm){if(gl.noHScroll){(gi.alignable||(gi.alignable=[])).push(gk);var gj=gm.wrapperWidth;gk.style.left=gm.fixedPos+"px";if(!gl.coverGutter){gj-=gm.gutterTotalWidth;gk.style.paddingLeft=gm.gutterTotalWidth+"px"}gk.style.width=gj+"px"}if(gl.coverGutter){gk.style.zIndex=5;gk.style.position="relative";if(!gl.noHScroll){gk.style.marginLeft=-gm.gutterTotalWidth+"px"}}}var W=H.Pos=function(gi,gj){if(!(this instanceof W)){return new W(gi,gj)}this.line=gi;this.ch=gj};var cg=H.cmpPos=function(gj,gi){return gj.line-gi.line||gj.ch-gi.ch};function cj(gi){return W(gi.line,gi.ch)}function by(gj,gi){return cg(gj,gi)<0?gi:gj}function ar(gj,gi){return cg(gj,gi)<0?gj:gi}function r(gi){if(!gi.state.focused){gi.display.input.focus();cC(gi)}}function aj(gi){return gi.options.readOnly||gi.doc.cantEdit}var bn=null;function fZ(gw,gm,gk,gj,gv){var gu=gw.doc;gw.display.shift=false;if(!gj){gj=gu.sel}var gl=gw.state.pasteIncoming||gv=="paste";var gp=a1(gm),gi=null;if(gl&&gj.ranges.length>1){if(bn&&bn.join("\n")==gm){gi=gj.ranges.length%bn.length==0&&bT(bn,a1)}else{if(gp.length==gj.ranges.length){gi=bT(gp,function(gx){return[gx]})}}}for(var gn=gj.ranges.length-1;gn>=0;gn--){var go=gj.ranges[gn];var gt=go.from(),gs=go.to();if(go.empty()){if(gk&&gk>0){gt=W(gt.line,gt.ch-gk)}else{if(gw.state.overwrite&&!gl){gs=W(gs.line,Math.min(fg(gu,gs.line).text.length,gs.ch+fH(gp).length))}}}var gq=gw.curOp.updateInput;var gr={from:gt,to:gs,text:gi?gi[gn%gi.length]:gp,origin:gv||(gl?"paste":gw.state.cutIncoming?"cut":"+input")};bh(gw.doc,gr);ae(gw,"inputRead",gw,gr)}if(gm&&!gl){fW(gw,gm)}fG(gw);gw.curOp.updateInput=gq;gw.curOp.typing=true;gw.state.pasteIncoming=gw.state.cutIncoming=false}function bb(gk,gi){var gj=gk.clipboardData&&gk.clipboardData.getData("text/plain");if(gj){gk.preventDefault();cN(gi,function(){fZ(gi,gj,0,null,"paste")});return true}}function fW(gi,gm){if(!gi.options.electricChars||!gi.options.smartIndent){return}var gn=gi.doc.sel;for(var gl=gn.ranges.length-1;gl>=0;gl--){var gj=gn.ranges[gl];if(gj.head.ch>100||(gl&&gn.ranges[gl-1].head.line==gj.head.line)){continue}var go=gi.getModeAt(gj.head);var gp=false;if(go.electricChars){for(var gk=0;gk<go.electricChars.length;gk++){if(gm.indexOf(go.electricChars.charAt(gk))>-1){gp=ad(gi,gj.head.line,"smart");break}}}else{if(go.electricInput){if(go.electricInput.test(fg(gi.doc,gj.head.line).text.slice(0,gj.head.ch))){gp=ad(gi,gj.head.line,"smart")}}}if(gp){ae(gi,"electricInput",gi,gj.head.line)}}}function dk(gi){var gn=[],gk=[];for(var gl=0;gl<gi.doc.sel.ranges.length;gl++){var gj=gi.doc.sel.ranges[gl].head.line;var gm={anchor:W(gj,0),head:W(gj+1,0)};gk.push(gm);gn.push(gi.getRange(gm.anchor,gm.head))}return{text:gn,ranges:gk}}function fQ(gi){gi.setAttribute("autocorrect","off");gi.setAttribute("autocapitalize","off");gi.setAttribute("spellcheck","false")}function Y(gi){this.cm=gi;this.prevInput="";this.pollingFast=false;this.polling=new gh();this.inaccurateSelection=false;this.hasSelection=false;this.composing=null}function aX(){var gi=f3("textarea",null,null,"position: absolute; padding: 0; width: 1px; height: 1em; outline: none");var gj=f3("div",[gi],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");if(c1){gi.style.width="1000px"}else{gi.setAttribute("wrap","off")}if(e2){gi.style.border="1px solid black"}fQ(gi);return gj}Y.prototype=aN({init:function(gk){var gj=this,gi=this.cm;var gn=this.wrapper=aX();var gl=this.textarea=gn.firstChild;gk.wrapper.insertBefore(gn,gk.wrapper.firstChild);if(e2){gl.style.width="0px"}bY(gl,"input",function(){if(dL&&k>=9&&gj.hasSelection){gj.hasSelection=null}gj.poll()});bY(gl,"paste",function(go){if(bb(go,gi)){return true}gi.state.pasteIncoming=true;gj.fastPoll()});function gm(gp){if(gi.somethingSelected()){bn=gi.getSelections();if(gj.inaccurateSelection){gj.prevInput="";gj.inaccurateSelection=false;gl.value=bn.join("\n");dM(gl)}}else{if(!gi.options.lineWiseCopyCut){return}else{var go=dk(gi);bn=go.text;if(gp.type=="cut"){gi.setSelections(go.ranges,null,Z)}else{gj.prevInput="";gl.value=go.text.join("\n");dM(gl)}}}if(gp.type=="cut"){gi.state.cutIncoming=true}}bY(gl,"cut",gm);bY(gl,"copy",gm);bY(gk.scroller,"paste",function(go){if(bc(gk,go)){return}gi.state.pasteIncoming=true;gj.focus()});bY(gk.lineSpace,"selectstart",function(go){if(!bc(gk,go)){cH(go)}});bY(gl,"compositionstart",function(){var go=gi.getCursor("from");gj.composing={start:go,range:gi.markText(go,gi.getCursor("to"),{className:"CodeMirror-composing"})}});bY(gl,"compositionend",function(){if(gj.composing){gj.poll();gj.composing.range.clear();gj.composing=null}})},prepareSelection:function(){var gj=this.cm,gn=gj.display,gm=gj.doc;var gi=fJ(gj);if(gj.options.moveInputWithCursor){var go=dV(gj,gm.sel.primary().head,"div");var gk=gn.wrapper.getBoundingClientRect(),gl=gn.lineDiv.getBoundingClientRect();gi.teTop=Math.max(0,Math.min(gn.wrapper.clientHeight-10,go.top+gl.top-gk.top));gi.teLeft=Math.max(0,Math.min(gn.wrapper.clientWidth-10,go.left+gl.left-gk.left))}return gi},showSelection:function(gk){var gi=this.cm,gj=gi.display;bS(gj.cursorDiv,gk.cursors);bS(gj.selectionDiv,gk.selection);if(gk.teTop!=null){this.wrapper.style.top=gk.teTop+"px";this.wrapper.style.left=gk.teLeft+"px"}},reset:function(gm){if(this.contextMenuPending){return}var gj,gl,gi=this.cm,go=gi.doc;if(gi.somethingSelected()){this.prevInput="";var gk=go.sel.primary();gj=db&&(gk.to().line-gk.from().line>100||(gl=gi.getSelection()).length>1000);var gn=gj?"-":gl||gi.getSelection();this.textarea.value=gn;if(gi.state.focused){dM(this.textarea)}if(dL&&k>=9){this.hasSelection=gn}}else{if(!gm){this.prevInput=this.textarea.value="";if(dL&&k>=9){this.hasSelection=null}}}this.inaccurateSelection=gj},getField:function(){return this.textarea},supportsTouch:function(){return false},focus:function(){if(this.cm.options.readOnly!="nocursor"&&(!eh||dP()!=this.textarea)){try{this.textarea.focus()}catch(gi){}}},blur:function(){this.textarea.blur()},resetPosition:function(){this.wrapper.style.top=this.wrapper.style.left=0},receivedFocus:function(){this.slowPoll()},slowPoll:function(){var gi=this;if(gi.pollingFast){return}gi.polling.set(this.cm.options.pollInterval,function(){gi.poll();if(gi.cm.state.focused){gi.slowPoll()}})},fastPoll:function(){var gj=false,gi=this;gi.pollingFast=true;function gk(){var gl=gi.poll();if(!gl&&!gj){gj=true;gi.polling.set(60,gk)}else{gi.pollingFast=false;gi.slowPoll()}}gi.polling.set(20,gk)},poll:function(){var gi=this.cm,gl=this.textarea,gm=this.prevInput;if(this.contextMenuPending||!gi.state.focused||(bt(gl)&&!gm)||aj(gi)||gi.options.disableInput||gi.state.keySeq){return false}var go=gl.value;if(go==gm&&!gi.somethingSelected()){return false}if(dL&&k>=9&&this.hasSelection===go||b8&&/[\uf700-\uf7ff]/.test(go)){gi.display.input.reset();return false}if(gi.doc.sel==gi.display.selForContextMenu){var gn=go.charCodeAt(0);if(gn==8203&&!gm){gm="\u200b"}if(gn==8666){this.reset();return this.cm.execCommand("undo")}}var gp=0,gj=Math.min(gm.length,go.length);while(gp<gj&&gm.charCodeAt(gp)==go.charCodeAt(gp)){++gp}var gk=this;cN(gi,function(){fZ(gi,go.slice(gp),gm.length-gp,null,gk.composing?"*compose":null);if(go.length>1000||go.indexOf("\n")>-1){gl.value=gk.prevInput=""}else{gk.prevInput=go}if(gk.composing){gk.composing.range.clear();gk.composing.range=gi.markText(gk.composing.start,gi.getCursor("to"),{className:"CodeMirror-composing"})}});return true},ensurePolled:function(){if(this.pollingFast&&this.poll()){this.pollingFast=false}},onKeyPress:function(){if(dL&&k>=9){this.hasSelection=null}this.fastPoll()},onContextMenu:function(gn){var gs=this,gt=gs.cm,gp=gt.display,gj=gs.textarea;var gr=co(gt,gn),gi=gp.scroller.scrollTop;if(!gr||d4){return}var gm=gt.options.resetSelectionOnContextMenu;if(gm&&gt.doc.sel.contains(gr)==-1){c3(gt,bV)(gt.doc,eT(gr),Z)}var go=gj.style.cssText;gs.wrapper.style.position="absolute";gj.style.cssText="position: fixed; width: 30px; height: 30px; top: "+(gn.clientY-5)+"px; left: "+(gn.clientX-5)+"px; z-index: 1000; background: "+(dL?"rgba(255, 255, 255, .05)":"transparent")+"; outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);";if(c1){var gu=window.scrollY}gp.input.focus();if(c1){window.scrollTo(null,gu)}gp.input.reset();if(!gt.somethingSelected()){gj.value=gs.prevInput=" "}gs.contextMenuPending=true;gp.selForContextMenu=gt.doc.sel;clearTimeout(gp.detectingSelectAll);function gl(){if(gj.selectionStart!=null){var gv=gt.somethingSelected();var gw="\u200b"+(gv?gj.value:"");gj.value="\u21da";gj.value=gw;gs.prevInput=gv?"":"\u200b";gj.selectionStart=1;gj.selectionEnd=gw.length;gp.selForContextMenu=gt.doc.sel}}function gq(){gs.contextMenuPending=false;gs.wrapper.style.position="relative";gj.style.cssText=go;if(dL&&k<9){gp.scrollbars.setScrollTop(gp.scroller.scrollTop=gi)}if(gj.selectionStart!=null){if(!dL||(dL&&k<9)){gl()}var gv=0,gw=function(){if(gp.selForContextMenu==gt.doc.sel&&gj.selectionStart==0&&gj.selectionEnd>0&&gs.prevInput=="\u200b"){c3(gt,eE.selectAll)(gt)}else{if(gv++<10){gp.detectingSelectAll=setTimeout(gw,500)}else{gp.input.reset()}}};gp.detectingSelectAll=setTimeout(gw,200)}}if(dL&&k>=9){gl()}if(ga){es(gn);var gk=function(){ee(window,"mouseup",gk);setTimeout(gq,20)};bY(window,"mouseup",gk)}else{setTimeout(gq,50)}},setUneditable:fV,needsContentAttribute:false},Y.prototype);function dw(gi){this.cm=gi;this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null;this.polling=new gh();this.gracePeriod=false}dw.prototype=aN({init:function(gl){var gk=this,gi=gk.cm;var gm=gk.div=gl.lineDiv;gm.contentEditable="true";fQ(gm);bY(gm,"paste",function(gn){bb(gn,gi)});bY(gm,"compositionstart",function(gr){var gq=gr.data;gk.composing={sel:gi.doc.sel,data:gq,startData:gq};if(!gq){return}var go=gi.doc.sel.primary();var gn=gi.getLine(go.head.line);var gp=gn.indexOf(gq,Math.max(0,go.head.ch-gq.length));if(gp>-1&&gp<=go.head.ch){gk.composing.sel=eT(W(go.head.line,gp),W(go.head.line,gp+gq.length))}});bY(gm,"compositionupdate",function(gn){gk.composing.data=gn.data});bY(gm,"compositionend",function(go){var gn=gk.composing;if(!gn){return}if(go.data!=gn.startData&&!/\u200b/.test(go.data)){gn.data=go.data}setTimeout(function(){if(!gn.handled){gk.applyComposition(gn)}if(gk.composing==gn){gk.composing=null}},50)});bY(gm,"touchstart",function(){gk.forceCompositionEnd()});bY(gm,"input",function(){if(gk.composing){return}if(!gk.pollContent()){cN(gk.cm,function(){ah(gi)})}});function gj(gq){if(gi.somethingSelected()){bn=gi.getSelections();if(gq.type=="cut"){gi.replaceSelection("",null,"cut")}}else{if(!gi.options.lineWiseCopyCut){return}else{var go=dk(gi);bn=go.text;if(gq.type=="cut"){gi.operation(function(){gi.setSelections(go.ranges,0,Z);gi.replaceSelection("",null,"cut")})}}}if(gq.clipboardData&&!e2){gq.preventDefault();gq.clipboardData.clearData();gq.clipboardData.setData("text/plain",bn.join("\n"))}else{var gp=aX(),gr=gp.firstChild;gi.display.lineSpace.insertBefore(gp,gi.display.lineSpace.firstChild);gr.value=bn.join("\n");var gn=document.activeElement;dM(gr);setTimeout(function(){gi.display.lineSpace.removeChild(gp);gn.focus()},50)}}bY(gm,"copy",gj);bY(gm,"cut",gj)},prepareSelection:function(){var gi=fJ(this.cm,false);gi.focus=this.cm.state.focused;return gi},showSelection:function(gi){if(!gi||!this.cm.display.view.length){return}if(gi.focus){this.showPrimarySelection()}this.showMultipleSelections(gi)},showPrimarySelection:function(){var gm=window.getSelection(),gp=this.cm.doc.sel.primary();var gn=az(this.cm,gm.anchorNode,gm.anchorOffset);var gr=az(this.cm,gm.focusNode,gm.focusOffset);if(gn&&!gn.bad&&gr&&!gr.bad&&cg(ar(gn,gr),gp.from())==0&&cg(by(gn,gr),gp.to())==0){return}var gl=cA(this.cm,gp.from());var gq=cA(this.cm,gp.to());if(!gl&&!gq){return}var gt=this.cm.display.view;var go=gm.rangeCount&&gm.getRangeAt(0);if(!gl){gl={node:gt[0].measure.map[2],offset:0}}else{if(!gq){var gk=gt[gt.length-1].measure;var gj=gk.maps?gk.maps[gk.maps.length-1]:gk.map;gq={node:gj[gj.length-1],offset:gj[gj.length-2]-gj[gj.length-3]}}}try{var gi=cm(gl.node,gl.offset,gq.offset,gq.node)}catch(gs){}if(gi){gm.removeAllRanges();gm.addRange(gi);if(go&&gm.anchorNode==null){gm.addRange(go)}else{if(cp){this.startGracePeriod()}}}this.rememberSelection()},startGracePeriod:function(){var gi=this;clearTimeout(this.gracePeriod);this.gracePeriod=setTimeout(function(){gi.gracePeriod=false;if(gi.selectionChanged()){gi.cm.operation(function(){gi.cm.curOp.selectionChanged=true})}},20)},showMultipleSelections:function(gi){bS(this.cm.display.cursorDiv,gi.cursors);bS(this.cm.display.selectionDiv,gi.selection)},rememberSelection:function(){var gi=window.getSelection();this.lastAnchorNode=gi.anchorNode;this.lastAnchorOffset=gi.anchorOffset;this.lastFocusNode=gi.focusNode;this.lastFocusOffset=gi.focusOffset},selectionInEditor:function(){var gj=window.getSelection();if(!gj.rangeCount){return false}var gi=gj.getRangeAt(0).commonAncestorContainer;return gb(this.div,gi)},focus:function(){if(this.cm.options.readOnly!="nocursor"){this.div.focus()}},blur:function(){this.div.blur()},getField:function(){return this.div},supportsTouch:function(){return true},receivedFocus:function(){var gi=this;if(this.selectionInEditor()){this.pollSelection()}else{cN(this.cm,function(){gi.cm.curOp.selectionChanged=true})}function gj(){if(gi.cm.state.focused){gi.pollSelection();gi.polling.set(gi.cm.options.pollInterval,gj)}}this.polling.set(this.cm.options.pollInterval,gj)},selectionChanged:function(){var gi=window.getSelection();return gi.anchorNode!=this.lastAnchorNode||gi.anchorOffset!=this.lastAnchorOffset||gi.focusNode!=this.lastFocusNode||gi.focusOffset!=this.lastFocusOffset},pollSelection:function(){if(!this.composing&&!this.gracePeriod&&this.selectionChanged()){var gl=window.getSelection(),gi=this.cm;this.rememberSelection();var gj=az(gi,gl.anchorNode,gl.anchorOffset);var gk=az(gi,gl.focusNode,gl.focusOffset);if(gj&&gk){cN(gi,function(){bV(gi.doc,eT(gj,gk),Z);if(gj.bad||gk.bad){gi.curOp.selectionChanged=true}})}}},pollContent:function(){var gs=this.cm,gC=gs.display,gA=gs.doc.sel.primary();var gB=gA.from(),gm=gA.to();if(gB.line<gC.viewFrom||gm.line>gC.viewTo-1){return false}var gp;if(gB.line==gC.viewFrom||(gp=ds(gs,gB.line))==0){var gn=bO(gC.view[0].line);var gr=gC.view[0].node}else{var gn=bO(gC.view[gp].line);var gr=gC.view[gp-1].node.nextSibling}var gz=ds(gs,gm.line);if(gz==gC.view.length-1){var gu=gC.viewTo-1;var gx=gC.lineDiv.lastChild}else{var gu=bO(gC.view[gz+1].line)-1;var gx=gC.view[gz+1].node.previousSibling}var gD=a1(f0(gs,gr,gx,gn,gu));var gw=f5(gs.doc,W(gn,0),W(gu,fg(gs.doc,gu).text.length));while(gD.length>1&&gw.length>1){if(fH(gD)==fH(gw)){gD.pop();gw.pop();gu--}else{if(gD[0]==gw[0]){gD.shift();gw.shift();gn++}else{break}}}var gy=0,gk=0;var gt=gD[0],gj=gw[0],gi=Math.min(gt.length,gj.length);while(gy<gi&&gt.charCodeAt(gy)==gj.charCodeAt(gy)){++gy}var gq=fH(gD),gE=fH(gw);var gl=Math.min(gq.length-(gD.length==1?gy:0),gE.length-(gw.length==1?gy:0));while(gk<gl&&gq.charCodeAt(gq.length-gk-1)==gE.charCodeAt(gE.length-gk-1)){++gk}gD[gD.length-1]=gq.slice(0,gq.length-gk);gD[0]=gD[0].slice(gy);var go=W(gn,gy);var gv=W(gu,gw.length?fH(gw).length-gk:0);if(gD.length>1||gD[0]||cg(go,gv)){a2(gs.doc,gD,go,gv,"+input");return true}},ensurePolled:function(){this.forceCompositionEnd()},reset:function(){this.forceCompositionEnd()},forceCompositionEnd:function(){if(!this.composing||this.composing.handled){return}this.applyComposition(this.composing);this.composing.handled=true;this.div.blur();this.div.focus()},applyComposition:function(gi){if(gi.data&&gi.data!=gi.startData){c3(this.cm,fZ)(this.cm,gi.data,0,gi.sel)}},setUneditable:function(gi){gi.setAttribute("contenteditable","false")},onKeyPress:function(gi){gi.preventDefault();c3(this.cm,fZ)(this.cm,String.fromCharCode(gi.charCode==null?gi.keyCode:gi.charCode),0)},onContextMenu:fV,resetPosition:fV,needsContentAttribute:true},dw.prototype);function cA(go,gm){var gn=fc(go,gm.line);if(!gn||gn.hidden){return null}var gq=fg(go.doc,gm.line);var gj=cu(gn,gq,gm.line);var gk=a(gq),gl="left";if(gk){var gi=aG(gk,gm.ch);gl=gi%2?"right":"left"}var gp=aL(gj.map,gm.ch,gl);gp.offset=gp.collapse=="right"?gp.end:gp.start;return gp}function eu(gj,gi){if(gi){gj.bad=true}return gj}function az(gi,gl,gn){var gm;if(gl==gi.display.lineDiv){gm=gi.display.lineDiv.childNodes[gn];if(!gm){return eu(gi.clipPos(W(gi.display.viewTo-1)),true)}gl=null;gn=0}else{for(gm=gl;;gm=gm.parentNode){if(!gm||gm==gi.display.lineDiv){return null}if(gm.parentNode&&gm.parentNode==gi.display.lineDiv){break}}}for(var gk=0;gk<gi.display.view.length;gk++){var gj=gi.display.view[gk];if(gj.node==gm){return aa(gj,gl,gn)}}}function aa(gq,gm,go){var gk=gq.text.firstChild,gl=false;if(!gm||!gb(gk,gm)){return eu(W(bO(gq.line),0),true)}if(gm==gk){gl=true;gm=gk.childNodes[go];go=0;if(!gm){var gw=gq.rest?fH(gq.rest):gq.line;return eu(W(bO(gw),gw.text.length),gl)}}var gn=gm.nodeType==3?gm:null,gu=gm;if(!gn&&gm.childNodes.length==1&&gm.firstChild.nodeType==3){gn=gm.firstChild;if(go){go=gn.nodeValue.length}}while(gu.parentNode!=gk){gu=gu.parentNode}var gj=gq.measure,gs=gj.maps;function gp(gz,gE,gB){for(var gD=-1;gD<(gs?gs.length:0);gD++){var gy=gD<0?gj.map:gs[gD];for(var gC=0;gC<gy.length;gC+=3){var gA=gy[gC+2];if(gA==gz||gA==gE){var gF=bO(gD<0?gq.line:gq.rest[gD]);var gx=gy[gC]+gB;if(gB<0||gA!=gz){gx=gy[gC+(gB?1:0)]}return W(gF,gx)}}}}var gv=gp(gn,gu,go);if(gv){return eu(gv,gl)}for(var gi=gu.nextSibling,gr=gn?gn.nodeValue.length-go:0;gi;gi=gi.nextSibling){gv=gp(gi,gi.firstChild,0);if(gv){return eu(W(gv.line,gv.ch-gr),gl)}else{gr+=gi.textContent.length}}for(var gt=gu.previousSibling,gr=go;gt;gt=gt.previousSibling){gv=gp(gt,gt.firstChild,-1);if(gv){return eu(W(gv.line,gv.ch+gr),gl)}else{gr+=gi.textContent.length}}}function f0(gp,gn,go,gk,gi){var gq="",gj=false;function gl(gr){return function(gs){return gs.id==gr}}function gm(gv){if(gv.nodeType==1){var gs=gv.getAttribute("cm-text");if(gs!=null){if(gs==""){gs=gv.textContent.replace(/\u200b/g,"")}gq+=gs;return}var gu=gv.getAttribute("cm-marker"),gr;if(gu){var gw=gp.findMarks(W(gk,0),W(gi+1,0),gl(+gu));if(gw.length&&(gr=gw[0].find())){gq+=f5(gp.doc,gr.from,gr.to).join("\n")}return}if(gv.getAttribute("contenteditable")=="false"){return}for(var gt=0;gt<gv.childNodes.length;gt++){gm(gv.childNodes[gt])}if(/^(pre|div|p)$/i.test(gv.nodeName)){gj=true}}else{if(gv.nodeType==3){var gx=gv.nodeValue;if(!gx){return}if(gj){gq+="\n";gj=false}gq+=gx}}}for(;;){gm(gn);if(gn==go){break}gn=gn.nextSibling}return gq}H.inputStyles={textarea:Y,contenteditable:dw};function f4(gi,gj){this.ranges=gi;this.primIndex=gj}f4.prototype={primary:function(){return this.ranges[this.primIndex]},equals:function(gi){if(gi==this){return true}if(gi.primIndex!=this.primIndex||gi.ranges.length!=this.ranges.length){return false}for(var gk=0;gk<this.ranges.length;gk++){var gj=this.ranges[gk],gl=gi.ranges[gk];if(cg(gj.anchor,gl.anchor)!=0||cg(gj.head,gl.head)!=0){return false}}return true},deepCopy:function(){for(var gi=[],gj=0;gj<this.ranges.length;gj++){gi[gj]=new dZ(cj(this.ranges[gj].anchor),cj(this.ranges[gj].head))}return new f4(gi,this.primIndex)},somethingSelected:function(){for(var gi=0;gi<this.ranges.length;gi++){if(!this.ranges[gi].empty()){return true}}return false},contains:function(gl,gi){if(!gi){gi=gl}for(var gk=0;gk<this.ranges.length;gk++){var gj=this.ranges[gk];if(cg(gi,gj.from())>=0&&cg(gl,gj.to())<=0){return gk}}return -1}};function dZ(gi,gj){this.anchor=gi;this.head=gj}dZ.prototype={from:function(){return ar(this.anchor,this.head)},to:function(){return by(this.anchor,this.head)},empty:function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch}};function cx(gi,gp){var gk=gi[gp];gi.sort(function(gs,gr){return cg(gs.from(),gr.from())});gp=di(gi,gk);for(var gm=1;gm<gi.length;gm++){var gq=gi[gm],gj=gi[gm-1];if(cg(gj.to(),gq.from())>=0){var gn=ar(gj.from(),gq.from()),go=by(gj.to(),gq.to());var gl=gj.empty()?gq.from()==gq.head:gj.from()==gj.head;if(gm<=gp){--gp}gi.splice(--gm,2,new dZ(gl?go:gn,gl?gn:go))}}return new f4(gi,gp)}function eT(gi,gj){return new f4([new dZ(gi,gj||gi)],0)}function c6(gi,gj){return Math.max(gi.first,Math.min(gj,gi.first+gi.size-1))}function fK(gj,gk){if(gk.line<gj.first){return W(gj.first,0)}var gi=gj.first+gj.size-1;if(gk.line>gi){return W(gi,fg(gj,gi).text.length)}return ft(gk,fg(gj,gk.line).text.length)}function ft(gk,gj){var gi=gk.ch;if(gi==null||gi>gj){return W(gk.line,gj)}else{if(gi<0){return W(gk.line,0)}else{return gk}}}function ca(gj,gi){return gi>=gj.first&&gi<gj.first+gj.size}function d1(gk,gl){for(var gi=[],gj=0;gj<gl.length;gj++){gi[gj]=fK(gk,gl[gj])}return gi}function fw(gn,gj,gm,gi){if(gn.cm&&gn.cm.display.shift||gn.extend){var gl=gj.anchor;if(gi){var gk=cg(gm,gl)<0;if(gk!=(cg(gi,gl)<0)){gl=gm;gm=gi}else{if(gk!=(cg(gm,gi)<0)){gm=gi}}}return new dZ(gl,gm)}else{return new dZ(gi||gm,gm)}}function fX(gl,gk,gi,gj){bV(gl,new f4([fw(gl,gl.sel.primary(),gk,gi)],0),gj)}function aw(gn,gm,gk){for(var gj=[],gl=0;gl<gn.sel.ranges.length;gl++){gj[gl]=fw(gn,gn.sel.ranges[gl],gm[gl],null)}var gi=cx(gj,gn.sel.primIndex);bV(gn,gi,gk)}function e(gm,gl,gj,gk){var gi=gm.sel.ranges.slice(0);gi[gl]=gj;bV(gm,cx(gi,gm.sel.primIndex),gk)}function F(gl,gj,gk,gi){bV(gl,eT(gj,gk),gi)}function c(gk,gi){var gj={ranges:gi.ranges,update:function(gl){this.ranges=[];for(var gm=0;gm<gl.length;gm++){this.ranges[gm]=new dZ(fK(gk,gl[gm].anchor),fK(gk,gl[gm].head))}}};aE(gk,"beforeSelectionChange",gk,gj);if(gk.cm){aE(gk.cm,"beforeSelectionChange",gk.cm,gj)}if(gj.ranges!=gi.ranges){return cx(gj.ranges,gj.ranges.length-1)}else{return gi}}function e8(gm,gl,gj){var gi=gm.history.done,gk=fH(gi);if(gk&&gk.ranges){gi[gi.length-1]=gl;eq(gm,gl,gj)}else{bV(gm,gl,gj)}}function bV(gk,gj,gi){eq(gk,gj,gi);gc(gk,gk.sel,gk.cm?gk.cm.curOp.id:NaN,gi)}function eq(gl,gk,gj){if(fj(gl,"beforeSelectionChange")||gl.cm&&fj(gl.cm,"beforeSelectionChange")){gk=c(gl,gk)}var gi=gj&&gj.bias||(cg(gk.primary().head,gl.sel.primary().head)<0?-1:1);da(gl,n(gl,gk,gi,true));if(!(gj&&gj.scroll===false)&&gl.cm){fG(gl.cm)}}function da(gj,gi){if(gi.equals(gj.sel)){return}gj.sel=gi;if(gj.cm){gj.cm.curOp.updateInput=gj.cm.curOp.selectionChanged=true;V(gj.cm)}ae(gj,"cursorActivity",gj)}function ez(gi){da(gi,n(gi,gi.sel,null,false),Z)}function n(gq,gi,gn,go){var gk;for(var gl=0;gl<gi.ranges.length;gl++){var gm=gi.ranges[gl];var gp=bW(gq,gm.anchor,gn,go);var gj=bW(gq,gm.head,gn,go);if(gk||gp!=gm.anchor||gj!=gm.head){if(!gk){gk=gi.ranges.slice(0,gl)}gk[gl]=new dZ(gp,gj)}}return gk?cx(gk,gi.primIndex):gi}function bW(gr,gq,gn,go){var gs=false,gk=gq;var gl=gn||1;gr.cantEdit=false;search:for(;;){var gt=fg(gr,gk.line);if(gt.markedSpans){for(var gm=0;gm<gt.markedSpans.length;++gm){var gi=gt.markedSpans[gm],gj=gi.marker;if((gi.from==null||(gj.inclusiveLeft?gi.from<=gk.ch:gi.from<gk.ch))&&(gi.to==null||(gj.inclusiveRight?gi.to>=gk.ch:gi.to>gk.ch))){if(go){aE(gj,"beforeCursorEnter");if(gj.explicitlyCleared){if(!gt.markedSpans){break}else{--gm;continue}}}if(!gj.atomic){continue}var gp=gj.find(gl<0?-1:1);if(cg(gp,gk)==0){gp.ch+=gl;if(gp.ch<0){if(gp.line>gr.first){gp=fK(gr,W(gp.line-1))}else{gp=null}}else{if(gp.ch>gt.text.length){if(gp.line<gr.first+gr.size-1){gp=W(gp.line+1,0)}else{gp=null}}}if(!gp){if(gs){if(!go){return bW(gr,gq,gn,true)}gr.cantEdit=true;return W(gr.first,0)}gs=true;gp=gq;gl=-gl}}gk=gp;continue search}}}return gk}}function bD(gi){gi.display.input.showSelection(gi.display.input.prepareSelection())}function fJ(gp,gi){var go=gp.doc,gq={};var gn=gq.cursors=document.createDocumentFragment();var gj=gq.selection=document.createDocumentFragment();for(var gl=0;gl<go.sel.ranges.length;gl++){if(gi===false&&gl==go.sel.primIndex){continue}var gm=go.sel.ranges[gl];var gk=gm.empty();if(gk||gp.options.showCursorWhenSelecting){A(gp,gm,gn)}if(!gk){bE(gp,gm,gj)}}return gq}function A(gi,gl,gk){var gn=dV(gi,gl.head,"div",null,null,!gi.options.singleCursorHeightPerLine);var gm=gk.appendChild(f3("div","\u00a0","CodeMirror-cursor"));gm.style.left=gn.left+"px";gm.style.top=gn.top+"px";gm.style.height=Math.max(0,gn.bottom-gn.top)*gi.options.cursorHeight+"px";if(gn.other){var gj=gk.appendChild(f3("div","\u00a0","CodeMirror-cursor CodeMirror-secondarycursor"));gj.style.display="";gj.style.left=gn.other.left+"px";gj.style.top=gn.other.top+"px";gj.style.height=(gn.other.bottom-gn.other.top)*0.85+"px"}}function bE(gm,gs,gn){var gv=gm.display,gz=gm.doc;var gi=document.createDocumentFragment();var gr=e6(gm.display),gl=gr.left;var gw=Math.max(gv.sizerWidth,dm(gm)-gv.sizer.offsetLeft)-gr.right;function gt(gD,gC,gB,gA){if(gC<0){gC=0}gC=Math.round(gC);gA=Math.round(gA);gi.appendChild(f3("div",null,"CodeMirror-selected","position: absolute; left: "+gD+"px; top: "+gC+"px; width: "+(gB==null?gw-gD:gB)+"px; height: "+(gA-gC)+"px"))}function gj(gB,gD,gG){var gC=fg(gz,gB);var gE=gC.text.length;var gH,gA;function gF(gJ,gI){return cK(gm,W(gB,gJ),"div",gC,gI)}d5(a(gC),gD||0,gG==null?gE:gG,function(gP,gO,gI){var gL=gF(gP,"left"),gM,gN,gK;if(gP==gO){gM=gL;gN=gK=gL.left}else{gM=gF(gO-1,"right");if(gI=="rtl"){var gJ=gL;gL=gM;gM=gJ}gN=gL.left;gK=gM.right}if(gD==null&&gP==0){gN=gl}if(gM.top-gL.top>3){gt(gN,gL.top,null,gL.bottom);gN=gl;if(gL.bottom<gM.top){gt(gN,gL.bottom,null,gM.top)}}if(gG==null&&gO==gE){gK=gw}if(!gH||gL.top<gH.top||gL.top==gH.top&&gL.left<gH.left){gH=gL}if(!gA||gM.bottom>gA.bottom||gM.bottom==gA.bottom&&gM.right>gA.right){gA=gM}if(gN<gl+1){gN=gl}gt(gN,gM.top,gK-gN,gM.bottom)});return{start:gH,end:gA}}var gy=gs.from(),gx=gs.to();if(gy.line==gx.line){gj(gy.line,gy.ch,gx.ch)}else{var gk=fg(gz,gy.line),gp=fg(gz,gx.line);var go=y(gk)==y(gp);var gq=gj(gy.line,gy.ch,go?gk.text.length+1:null).end;var gu=gj(gx.line,go?0:null,gx.ch).start;if(go){if(gq.top<gu.top-2){gt(gq.right,gq.top,null,gq.bottom);gt(gl,gu.top,gu.left,gu.bottom)}else{gt(gq.right,gq.top,gu.left-gq.right,gq.bottom)}}if(gq.bottom<gu.top){gt(gl,gq.bottom,null,gu.top)}}gn.appendChild(gi)}function o(gi){if(!gi.state.focused){return}var gk=gi.display;clearInterval(gk.blinker);var gj=true;gk.cursorDiv.style.visibility="";if(gi.options.cursorBlinkRate>0){gk.blinker=setInterval(function(){gk.cursorDiv.style.visibility=(gj=!gj)?"":"hidden"},gi.options.cursorBlinkRate)}else{if(gi.options.cursorBlinkRate<0){gk.cursorDiv.style.visibility="hidden"}}}function eg(gi,gj){if(gi.doc.mode.startState&&gi.doc.frontier<gi.display.viewTo){gi.state.highlight.set(gj,cw(cQ,gi))}}function cQ(gi){var gm=gi.doc;if(gm.frontier<gm.first){gm.frontier=gm.first}if(gm.frontier>=gi.display.viewTo){return}var gk=+new Date+gi.options.workTime;var gl=b4(gm.mode,dD(gi,gm.frontier));var gj=[];gm.iter(gm.frontier,Math.min(gm.first+gm.size,gi.display.viewTo+500),function(gn){if(gm.frontier>=gi.display.viewFrom){var gq=gn.styles;var gs=fA(gi,gn,gl,true);gn.styles=gs.styles;var gp=gn.styleClasses,gr=gs.classes;if(gr){gn.styleClasses=gr}else{if(gp){gn.styleClasses=null}}var gt=!gq||gq.length!=gn.styles.length||gp!=gr&&(!gp||!gr||gp.bgClass!=gr.bgClass||gp.textClass!=gr.textClass);for(var go=0;!gt&&go<gq.length;++go){gt=gq[go]!=gn.styles[go]}if(gt){gj.push(gm.frontier)}gn.stateAfter=b4(gm.mode,gl)}else{dy(gi,gn.text,gl);gn.stateAfter=gm.frontier%5==0?b4(gm.mode,gl):null}++gm.frontier;if(+new Date>gk){eg(gi,gi.options.workDelay);return true}});if(gj.length){cN(gi,function(){for(var gn=0;gn<gj.length;gn++){R(gi,gj[gn],"text")}})}}function cz(go,gi,gl){var gj,gm,gn=go.doc;var gk=gl?-1:gi-(go.doc.mode.innerMode?1000:100);for(var gr=gi;gr>gk;--gr){if(gr<=gn.first){return gn.first}var gq=fg(gn,gr-1);if(gq.stateAfter&&(!gl||gr<=gn.frontier)){return gr}var gp=bU(gq.text,null,go.options.tabSize);if(gm==null||gj>gp){gm=gr-1;gj=gp}}return gm}function dD(gi,go,gj){var gm=gi.doc,gl=gi.display;if(!gm.mode.startState){return true}var gn=cz(gi,go,gj),gk=gn>gm.first&&fg(gm,gn-1).stateAfter;if(!gk){gk=b1(gm.mode)}else{gk=b4(gm.mode,gk)}gm.iter(gn,go,function(gp){dy(gi,gp.text,gk);var gq=gn==go-1||gn%5==0||gn>=gl.viewFrom&&gn<gl.viewTo;gp.stateAfter=gq?b4(gm.mode,gk):null;++gn});if(gj){gm.frontier=gn}return gk}function e9(gi){return gi.lineSpace.offsetTop}function bJ(gi){return gi.mover.offsetHeight-gi.lineSpace.offsetHeight}function e6(gl){if(gl.cachedPaddingH){return gl.cachedPaddingH}var gk=bS(gl.measure,f3("pre","x"));var gi=window.getComputedStyle?window.getComputedStyle(gk):gk.currentStyle;var gj={left:parseInt(gi.paddingLeft),right:parseInt(gi.paddingRight)};if(!isNaN(gj.left)&&!isNaN(gj.right)){gl.cachedPaddingH=gj}return gj}function cU(gi){return dK-gi.display.nativeBarWidth}function dm(gi){return gi.display.scroller.clientWidth-cU(gi)-gi.display.barWidth}function cW(gi){return gi.display.scroller.clientHeight-cU(gi)-gi.display.barHeight}function ci(gp,gl,go){var gk=gp.options.lineWrapping;var gm=gk&&dm(gp);if(!gl.measure.heights||gk&&gl.measure.width!=gm){var gn=gl.measure.heights=[];if(gk){gl.measure.width=gm;var gr=gl.text.firstChild.getClientRects();for(var gi=0;gi<gr.length-1;gi++){var gq=gr[gi],gj=gr[gi+1];if(Math.abs(gq.bottom-gj.bottom)>2){gn.push((gq.bottom+gj.top)/2-go.top)}}}gn.push(go.bottom-go.top)}}function cu(gk,gi,gl){if(gk.line==gi){return{map:gk.measure.map,cache:gk.measure.cache}}for(var gj=0;gj<gk.rest.length;gj++){if(gk.rest[gj]==gi){return{map:gk.measure.maps[gj],cache:gk.measure.caches[gj]}}}for(var gj=0;gj<gk.rest.length;gj++){if(bO(gk.rest[gj])>gl){return{map:gk.measure.maps[gj],cache:gk.measure.caches[gj],before:true}}}}function c2(gi,gk){gk=y(gk);var gm=bO(gk);var gj=gi.display.externalMeasured=new bw(gi.doc,gk,gm);gj.lineN=gm;var gl=gj.built=eS(gi,gj);gj.text=gl.pre;bS(gi.display.lineMeasure,gl.pre);return gj}function ei(gi,gj,gl,gk){return C(gi,a5(gi,gj),gl,gk)}function fc(gi,gk){if(gk>=gi.display.viewFrom&&gk<gi.display.viewTo){return gi.display.view[ds(gi,gk)]}var gj=gi.display.externalMeasured;if(gj&&gk>=gj.lineN&&gk<gj.lineN+gj.size){return gj}}function a5(gi,gk){var gl=bO(gk);var gj=fc(gi,gl);if(gj&&!gj.text){gj=null}else{if(gj&&gj.changes){ab(gi,gj,gl,fe(gi))}}if(!gj){gj=c2(gi,gk)}var gm=cu(gj,gk,gl);return{line:gk,view:gj,rect:null,map:gm.map,cache:gm.cache,before:gm.before,hasHeights:false}}function C(gi,go,gm,gj,gl){if(go.before){gm=-1}var gk=gm+(gj||""),gn;if(go.cache.hasOwnProperty(gk)){gn=go.cache[gk]}else{if(!go.rect){go.rect=go.view.text.getBoundingClientRect()}if(!go.hasHeights){ci(gi,go.view,go.rect);go.hasHeights=true}gn=j(gi,go,gm,gj);if(!gn.bogus){go.cache[gk]=gn}}return{left:gn.left,right:gn.right,top:gl?gn.rtop:gn.top,bottom:gl?gn.rbottom:gn.bottom}}var eC={left:0,right:0,top:0,bottom:0};function aL(gj,gi,gp){var gl,gk,gn,gq;for(var go=0;go<gj.length;go+=3){var gm=gj[go],gr=gj[go+1];if(gi<gm){gk=0;gn=1;gq="left"}else{if(gi<gr){gk=gi-gm;gn=gk+1}else{if(go==gj.length-3||gi==gr&&gj[go+3]>gi){gn=gr-gm;gk=gn-1;if(gi>=gr){gq="right"}}}}if(gk!=null){gl=gj[go+2];if(gm==gr&&gp==(gl.insertLeft?"left":"right")){gq=gp}if(gp=="left"&&gk==0){while(go&&gj[go-2]==gj[go-3]&&gj[go-1].insertLeft){gl=gj[(go-=3)+2];gq="left"}}if(gp=="right"&&gk==gr-gm){while(go<gj.length-3&&gj[go+3]==gj[go+4]&&!gj[go+5].insertLeft){gl=gj[(go+=3)+2];gq="right"}}break}}return{node:gl,start:gk,end:gn,collapse:gq,coverStart:gm,coverEnd:gr}}function j(gp,gz,gs,gn){var gq=aL(gz.map,gs,gn);var gx=gq.node,gm=gq.start,gl=gq.end,gi=gq.collapse;var gj;if(gx.nodeType==3){for(var gy=0;gy<4;gy++){while(gm&&fq(gz.line.text.charAt(gq.coverStart+gm))){--gm}while(gq.coverStart+gl<gq.coverEnd&&fq(gz.line.text.charAt(gq.coverStart+gl))){++gl}if(dL&&k<9&&gm==0&&gl==gq.coverEnd-gq.coverStart){gj=gx.parentNode.getBoundingClientRect()}else{if(dL&&gp.options.lineWrapping){var gk=cm(gx,gm,gl).getClientRects();if(gk.length){gj=gk[gn=="right"?gk.length-1:0]}else{gj=eC}}else{gj=cm(gx,gm,gl).getBoundingClientRect()||eC}}if(gj.left||gj.right||gm==0){break}gl=gm;gm=gm-1;gi="right"}if(dL&&k<11){gj=eO(gp.display.measure,gj)}}else{if(gm>0){gi=gn="right"}var gk;if(gp.options.lineWrapping&&(gk=gx.getClientRects()).length>1){gj=gk[gn=="right"?gk.length-1:0]}else{gj=gx.getBoundingClientRect()}}if(dL&&k<9&&!gm&&(!gj||!gj.left&&!gj.right)){var go=gx.parentNode.getClientRects()[0];if(go){gj={left:go.left,right:go.left+dE(gp.display),top:go.top,bottom:go.bottom}}else{gj=eC}}var gv=gj.top-gz.rect.top,gt=gj.bottom-gz.rect.top;var gB=(gv+gt)/2;var gA=gz.view.measure.heights;for(var gy=0;gy<gA.length-1;gy++){if(gB<gA[gy]){break}}var gw=gy?gA[gy-1]:0,gu=gA[gy];var gr={left:(gi=="right"?gj.right:gj.left)-gz.rect.left,right:(gi=="left"?gj.left:gj.right)-gz.rect.left,top:gw,bottom:gu};if(!gj.left&&!gj.right){gr.bogus=true}if(!gp.options.singleCursorHeightPerLine){gr.rtop=gv;gr.rbottom=gt}return gr}function eO(gk,gl){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!aK(gk)){return gl}var gj=screen.logicalXDPI/screen.deviceXDPI;var gi=screen.logicalYDPI/screen.deviceYDPI;return{left:gl.left*gj,right:gl.right*gj,top:gl.top*gi,bottom:gl.bottom*gi}}function au(gj){if(gj.measure){gj.measure.cache={};gj.measure.heights=null;if(gj.rest){for(var gi=0;gi<gj.rest.length;gi++){gj.measure.caches[gi]={}}}}}function aO(gi){gi.display.externalMeasure=null;d2(gi.display.lineMeasure);for(var gj=0;gj<gi.display.view.length;gj++){au(gi.display.view[gj])}}function ak(gi){aO(gi);gi.display.cachedCharWidth=gi.display.cachedTextHeight=gi.display.cachedPaddingH=null;if(!gi.options.lineWrapping){gi.display.maxLineChanged=true}gi.display.lineNumChars=null}function cv(){return window.pageXOffset||(document.documentElement||document.body).scrollLeft}function ct(){return window.pageYOffset||(document.documentElement||document.body).scrollTop}function eR(go,gl,gn,gj){if(gl.widgets){for(var gk=0;gk<gl.widgets.length;++gk){if(gl.widgets[gk].above){var gq=cZ(gl.widgets[gk]);gn.top+=gq;gn.bottom+=gq}}}if(gj=="line"){return gn}if(!gj){gj="local"}var gm=bN(gl);if(gj=="local"){gm+=e9(go.display)}else{gm-=go.display.viewOffset}if(gj=="page"||gj=="window"){var gi=go.display.lineSpace.getBoundingClientRect();gm+=gi.top+(gj=="window"?0:ct());var gp=gi.left+(gj=="window"?0:cv());gn.left+=gp;gn.right+=gp}gn.top+=gm;gn.bottom+=gm;return gn}function gf(gj,gm,gk){if(gk=="div"){return gm}var go=gm.left,gn=gm.top;if(gk=="page"){go-=cv();gn-=ct()}else{if(gk=="local"||!gk){var gl=gj.display.sizer.getBoundingClientRect();go+=gl.left;gn+=gl.top}}var gi=gj.display.lineSpace.getBoundingClientRect();return{left:go-gi.left,top:gn-gi.top}}function cK(gi,gm,gl,gk,gj){if(!gk){gk=fg(gi.doc,gm.line)}return eR(gi,gk,ei(gi,gk,gm.ch,gj),gl)}function dV(gr,gq,gk,go,gt,gp){go=go||fg(gr.doc,gq.line);if(!gt){gt=a5(gr,go)}function gm(gw,gv){var gu=C(gr,gt,gw,gv?"right":"left",gp);if(gv){gu.left=gu.right}else{gu.right=gu.left}return eR(gr,go,gu,gk)}function gs(gx,gu){var gv=gn[gu],gw=gv.level%2;if(gx==dz(gv)&&gu&&gv.level<gn[gu-1].level){gv=gn[--gu];gx=ge(gv)-(gv.level%2?0:1);gw=true}else{if(gx==ge(gv)&&gu<gn.length-1&&gv.level<gn[gu+1].level){gv=gn[++gu];gx=dz(gv)-gv.level%2;gw=false}}if(gw&&gx==gv.to&&gx>gv.from){return gm(gx-1)}return gm(gx,gw)}var gn=a(go),gi=gq.ch;if(!gn){return gm(gi)}var gj=aG(gn,gi);var gl=gs(gi,gj);if(e3!=null){gl.other=gs(gi,e3)}return gl}function dI(gi,gm){var gl=0,gm=fK(gi.doc,gm);if(!gi.options.lineWrapping){gl=dE(gi.display)*gm.ch}var gj=fg(gi.doc,gm.line);var gk=bN(gj)+e9(gi.display);return{left:gl,right:gl,top:gk,bottom:gk+gj.height}}function f2(gi,gj,gk,gm){var gl=W(gi,gj);gl.xRel=gm;if(gk){gl.outside=true}return gl}function fP(gp,gm,gl){var go=gp.doc;gl+=gp.display.viewOffset;if(gl<0){return f2(go.first,0,true,-1)}var gk=bH(go,gl),gq=go.first+go.size-1;if(gk>gq){return f2(go.first+go.size-1,fg(go,gq).text.length,true,1)}if(gm<0){gm=0}var gj=fg(go,gk);for(;;){var gr=c0(gp,gj,gk,gm,gl);var gn=ex(gj);var gi=gn&&gn.find(0,true);if(gn&&(gr.ch>gi.from.ch||gr.ch==gi.from.ch&&gr.xRel>0)){gk=bO(gj=gi.to.line)}else{return gr}}}function c0(gs,gk,gv,gu,gt){var gr=gt-bN(gk);var go=false,gB=2*gs.display.wrapper.clientWidth;var gy=a5(gs,gk);function gF(gH){var gI=dV(gs,W(gv,gH),"line",gk,gy);go=true;if(gr>gI.bottom){return gI.left-gB}else{if(gr<gI.top){return gI.left+gB}else{go=false}}return gI.left}var gx=a(gk),gA=gk.text.length;var gC=cF(gk),gl=cT(gk);var gz=gF(gC),gi=go,gj=gF(gl),gn=go;if(gu>gj){return f2(gv,gl,gn,1)}for(;;){if(gx?gl==gC||gl==u(gk,gC,1):gl-gC<=1){var gw=gu<gz||gu-gz<=gj-gu?gC:gl;var gE=gu-(gw==gC?gz:gj);while(fq(gk.text.charAt(gw))){++gw}var gq=f2(gv,gw,gw==gC?gi:gn,gE<-1?-1:gE>1?1:0);return gq}var gp=Math.ceil(gA/2),gG=gC+gp;if(gx){gG=gC;for(var gD=0;gD<gp;++gD){gG=u(gk,gG,1)}}var gm=gF(gG);if(gm>gu){gl=gG;gj=gm;if(gn=go){gj+=1000}gA=gp}else{gC=gG;gz=gm;gi=go;gA-=gp}}}var aH;function aY(gk){if(gk.cachedTextHeight!=null){return gk.cachedTextHeight}if(aH==null){aH=f3("pre");for(var gj=0;gj<49;++gj){aH.appendChild(document.createTextNode("x"));aH.appendChild(f3("br"))}aH.appendChild(document.createTextNode("x"))}bS(gk.measure,aH);var gi=aH.offsetHeight/50;if(gi>3){gk.cachedTextHeight=gi}d2(gk.measure);return gi||1}function dE(gm){if(gm.cachedCharWidth!=null){return gm.cachedCharWidth}var gi=f3("span","xxxxxxxxxx");var gl=f3("pre",[gi]);bS(gm.measure,gl);var gk=gi.getBoundingClientRect(),gj=(gk.right-gk.left)/10;if(gj>2){gm.cachedCharWidth=gj}return gj||10}var bq=null;var d9=0;function cJ(gi){gi.curOp={cm:gi,viewChanged:false,startHeight:gi.doc.height,forceUpdate:false,updateInput:null,typing:false,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:false,updateMaxLine:false,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:false,id:++d9};if(bq){bq.ops.push(gi.curOp)}else{gi.curOp.ownsGroup=bq={ops:[gi.curOp],delayedCallbacks:[]}}}function cV(gl){var gk=gl.delayedCallbacks,gj=0;do{for(;gj<gk.length;gj++){gk[gj]()}for(var gi=0;gi<gl.ops.length;gi++){var gm=gl.ops[gi];if(gm.cursorActivityHandlers){while(gm.cursorActivityCalled<gm.cursorActivityHandlers.length){gm.cursorActivityHandlers[gm.cursorActivityCalled++](gm.cm)}}}}while(gj<gk.length)}function am(gi){var gl=gi.curOp,gk=gl.ownsGroup;if(!gk){return}try{cV(gk)}finally{bq=null;for(var gj=0;gj<gk.ops.length;gj++){gk.ops[gj].cm.curOp=null}cL(gk)}}function cL(gk){var gj=gk.ops;for(var gi=0;gi<gj.length;gi++){b6(gj[gi])}for(var gi=0;gi<gj.length;gi++){aq(gj[gi])}for(var gi=0;gi<gj.length;gi++){b3(gj[gi])}for(var gi=0;gi<gj.length;gi++){ap(gj[gi])}for(var gi=0;gi<gj.length;gi++){e1(gj[gi])}}function b6(gk){var gi=gk.cm,gj=gi.display;J(gi);if(gk.updateMaxLine){h(gi)}gk.mustUpdate=gk.viewChanged||gk.forceUpdate||gk.scrollTop!=null||gk.scrollToPos&&(gk.scrollToPos.from.line<gj.viewFrom||gk.scrollToPos.to.line>=gj.viewTo)||gj.maxLineChanged&&gi.options.lineWrapping;gk.update=gk.mustUpdate&&new aI(gi,gk.mustUpdate&&{top:gk.scrollTop,ensure:gk.scrollToPos},gk.forceUpdate)}function aq(gi){gi.updatedDisplay=gi.mustUpdate&&B(gi.cm,gi.update)}function b3(gk){var gi=gk.cm,gj=gi.display;if(gk.updatedDisplay){ba(gi)}gk.barMeasure=dB(gi);if(gj.maxLineChanged&&!gi.options.lineWrapping){gk.adjustWidthTo=ei(gi,gj.maxLine,gj.maxLine.text.length).left+3;gi.display.sizerWidth=gk.adjustWidthTo;gk.barMeasure.scrollWidth=Math.max(gj.scroller.clientWidth,gj.sizer.offsetLeft+gk.adjustWidthTo+cU(gi)+gi.display.barWidth);gk.maxScrollLeft=Math.max(0,gj.sizer.offsetLeft+gk.adjustWidthTo-dm(gi))}if(gk.updatedDisplay||gk.selectionChanged){gk.preparedSelection=gj.input.prepareSelection()}}function ap(gj){var gi=gj.cm;if(gj.adjustWidthTo!=null){gi.display.sizer.style.minWidth=gj.adjustWidthTo+"px";if(gj.maxScrollLeft<gi.doc.scrollLeft){bF(gi,Math.min(gi.display.scroller.scrollLeft,gj.maxScrollLeft),true)}gi.display.maxLineChanged=false}if(gj.preparedSelection){gi.display.input.showSelection(gj.preparedSelection)}if(gj.updatedDisplay){dA(gi,gj.barMeasure)}if(gj.updatedDisplay||gj.startHeight!=gi.doc.height){eZ(gi,gj.barMeasure)}if(gj.selectionChanged){o(gi)}if(gi.state.focused&&gj.updateInput){gi.display.input.reset(gj.typing)}if(gj.focus&&gj.focus==dP()){r(gj.cm)}}function e1(gp){var gi=gp.cm,gn=gi.display,gm=gi.doc;if(gp.updatedDisplay){ck(gi,gp.update)}if(gn.wheelStartX!=null&&(gp.scrollTop!=null||gp.scrollLeft!=null||gp.scrollToPos)){gn.wheelStartX=gn.wheelStartY=null}if(gp.scrollTop!=null&&(gn.scroller.scrollTop!=gp.scrollTop||gp.forceScroll)){gm.scrollTop=Math.max(0,Math.min(gn.scroller.scrollHeight-gn.scroller.clientHeight,gp.scrollTop));gn.scrollbars.setScrollTop(gm.scrollTop);gn.scroller.scrollTop=gm.scrollTop}if(gp.scrollLeft!=null&&(gn.scroller.scrollLeft!=gp.scrollLeft||gp.forceScroll)){gm.scrollLeft=Math.max(0,Math.min(gn.scroller.scrollWidth-dm(gi),gp.scrollLeft));gn.scrollbars.setScrollLeft(gm.scrollLeft);gn.scroller.scrollLeft=gm.scrollLeft;eF(gi)}if(gp.scrollToPos){var gl=D(gi,fK(gm,gp.scrollToPos.from),fK(gm,gp.scrollToPos.to),gp.scrollToPos.margin);if(gp.scrollToPos.isCursor&&gi.state.focused){d7(gi,gl)}}var gk=gp.maybeHiddenMarkers,go=gp.maybeUnhiddenMarkers;if(gk){for(var gj=0;gj<gk.length;++gj){if(!gk[gj].lines.length){aE(gk[gj],"hide")}}}if(go){for(var gj=0;gj<go.length;++gj){if(go[gj].lines.length){aE(go[gj],"unhide")}}}if(gn.wrapper.offsetHeight){gm.scrollTop=gi.display.scroller.scrollTop}if(gp.changeObjs){aE(gi,"changes",gi,gp.changeObjs)}if(gp.update){gp.update.finish()}}function cN(gi,gj){if(gi.curOp){return gj()}cJ(gi);try{return gj()}finally{am(gi)}}function c3(gi,gj){return function(){if(gi.curOp){return gj.apply(gi,arguments)}cJ(gi);try{return gj.apply(gi,arguments)}finally{am(gi)}}}function c9(gi){return function(){if(this.curOp){return gi.apply(this,arguments)}cJ(this);try{return gi.apply(this,arguments)}finally{am(this)}}}function cE(gi){return function(){var gj=this.cm;if(!gj||gj.curOp){return gi.apply(this,arguments)}cJ(gj);try{return gi.apply(this,arguments)}finally{am(gj)}}}function bw(gk,gi,gj){this.line=gi;this.rest=g(gi);this.size=this.rest?bO(fH(this.rest))-gj+1:1;this.node=this.text=null;this.hidden=fx(gk,gi)}function eW(gi,go,gn){var gm=[],gk;for(var gl=go;gl<gn;gl=gk){var gj=new bw(gi.doc,fg(gi.doc,gl),gl);gk=gl+gj.size;gm.push(gj)}return gm}function ah(gp,gn,go,gq){if(gn==null){gn=gp.doc.first}if(go==null){go=gp.doc.first+gp.doc.size}if(!gq){gq=0}var gk=gp.display;if(gq&&go<gk.viewTo&&(gk.updateLineNumbers==null||gk.updateLineNumbers>gn)){gk.updateLineNumbers=gn}gp.curOp.viewChanged=true;if(gn>=gk.viewTo){if(a8&&aW(gp.doc,gn)<gk.viewTo){ey(gp)}}else{if(go<=gk.viewFrom){if(a8&&d3(gp.doc,go+gq)>gk.viewFrom){ey(gp)}else{gk.viewFrom+=gq;gk.viewTo+=gq}}else{if(gn<=gk.viewFrom&&go>=gk.viewTo){ey(gp)}else{if(gn<=gk.viewFrom){var gm=df(gp,go,go+gq,1);if(gm){gk.view=gk.view.slice(gm.index);gk.viewFrom=gm.lineN;gk.viewTo+=gq}else{ey(gp)}}else{if(go>=gk.viewTo){var gm=df(gp,gn,gn,-1);if(gm){gk.view=gk.view.slice(0,gm.index);gk.viewTo=gm.lineN}else{ey(gp)}}else{var gl=df(gp,gn,gn,-1);var gj=df(gp,go,go+gq,1);if(gl&&gj){gk.view=gk.view.slice(0,gl.index).concat(eW(gp,gl.lineN,gj.lineN)).concat(gk.view.slice(gj.index));gk.viewTo+=gq}else{ey(gp)}}}}}}var gi=gk.externalMeasured;if(gi){if(go<gi.lineN){gi.lineN+=gq}else{if(gn<gi.lineN+gi.size){gk.externalMeasured=null}}}}function R(gj,gk,gn){gj.curOp.viewChanged=true;var go=gj.display,gm=gj.display.externalMeasured;if(gm&&gk>=gm.lineN&&gk<gm.lineN+gm.size){go.externalMeasured=null}if(gk<go.viewFrom||gk>=go.viewTo){return}var gl=go.view[ds(gj,gk)];if(gl.node==null){return}var gi=gl.changes||(gl.changes=[]);if(di(gi,gn)==-1){gi.push(gn)}}function ey(gi){gi.display.viewFrom=gi.display.viewTo=gi.doc.first;gi.display.view=[];gi.display.viewOffset=0}function ds(gi,gl){if(gl>=gi.display.viewTo){return null}gl-=gi.display.viewFrom;if(gl<0){return null}var gj=gi.display.view;for(var gk=0;gk<gj.length;gk++){gl-=gj[gk].size;if(gl<0){return gk}}}function df(gq,gk,gm,gj){var gn=ds(gq,gk),gp,go=gq.display.view;if(!a8||gm==gq.doc.first+gq.doc.size){return{index:gn,lineN:gm}}for(var gl=0,gi=gq.display.viewFrom;gl<gn;gl++){gi+=go[gl].size}if(gi!=gk){if(gj>0){if(gn==go.length-1){return null}gp=(gi+go[gn].size)-gk;gn++}else{gp=gi-gk}gk+=gp;gm+=gp}while(aW(gq.doc,gm)!=gm){if(gn==(gj<0?0:go.length-1)){return null}gm+=gj*go[gn-(gj<0?1:0)].size;gn+=gj}return{index:gn,lineN:gm}}function cS(gi,gm,gl){var gk=gi.display,gj=gk.view;if(gj.length==0||gm>=gk.viewTo||gl<=gk.viewFrom){gk.view=eW(gi,gm,gl);gk.viewFrom=gm}else{if(gk.viewFrom>gm){gk.view=eW(gi,gm,gk.viewFrom).concat(gk.view)}else{if(gk.viewFrom<gm){gk.view=gk.view.slice(ds(gi,gm))}}gk.viewFrom=gm;if(gk.viewTo<gl){gk.view=gk.view.concat(eW(gi,gk.viewTo,gl))}else{if(gk.viewTo>gl){gk.view=gk.view.slice(0,ds(gi,gl))}}}gk.viewTo=gl}function dc(gi){var gj=gi.display.view,gm=0;for(var gl=0;gl<gj.length;gl++){var gk=gj[gl];if(!gk.hidden&&(!gk.node||gk.changes)){++gm}}return gm}function fR(gj){var gn=gj.display;bY(gn.scroller,"mousedown",c3(gj,ev));if(dL&&k<11){bY(gn.scroller,"dblclick",c3(gj,function(gr){if(aR(gj,gr)){return}var gs=co(gj,gr);if(!gs||l(gj,gr)||bc(gj.display,gr)){return}cH(gr);var gq=gj.findWordAt(gs);fX(gj.doc,gq.anchor,gq.head)}))}else{bY(gn.scroller,"dblclick",function(gq){aR(gj,gq)||cH(gq)})}if(!ga){bY(gn.scroller,"contextmenu",function(gq){ay(gj,gq)})}var gp,gi={end:0};function go(){if(gn.activeTouch){gp=setTimeout(function(){gn.activeTouch=null},1000);gi=gn.activeTouch;gi.end=+new Date}}function gl(gq){if(gq.touches.length!=1){return false}var gr=gq.touches[0];return gr.radiusX<=1&&gr.radiusY<=1}function gk(gt,gq){if(gq.left==null){return true}var gs=gq.left-gt.left,gr=gq.top-gt.top;return gs*gs+gr*gr>20*20}bY(gn.scroller,"touchstart",function(gr){if(!gl(gr)){clearTimeout(gp);var gq=+new Date;gn.activeTouch={start:gq,moved:false,prev:gq-gi.end<=300?gi:null};if(gr.touches.length==1){gn.activeTouch.left=gr.touches[0].pageX;gn.activeTouch.top=gr.touches[0].pageY}}});bY(gn.scroller,"touchmove",function(){if(gn.activeTouch){gn.activeTouch.moved=true}});bY(gn.scroller,"touchend",function(gr){var gt=gn.activeTouch;if(gt&&!bc(gn,gr)&&gt.left!=null&&!gt.moved&&new Date-gt.start<300){var gs=gj.coordsChar(gn.activeTouch,"page"),gq;if(!gt.prev||gk(gt,gt.prev)){gq=new dZ(gs,gs)}else{if(!gt.prev.prev||gk(gt,gt.prev.prev)){gq=gj.findWordAt(gs)}else{gq=new dZ(W(gs.line,0),fK(gj.doc,W(gs.line+1,0)))}}gj.setSelection(gq.anchor,gq.head);gj.focus();cH(gr)}go()});bY(gn.scroller,"touchcancel",go);bY(gn.scroller,"scroll",function(){if(gn.scroller.clientHeight){N(gj,gn.scroller.scrollTop);bF(gj,gn.scroller.scrollLeft,true);aE(gj,"scroll",gj)}});bY(gn.scroller,"mousewheel",function(gq){b(gj,gq)});bY(gn.scroller,"DOMMouseScroll",function(gq){b(gj,gq)});bY(gn.wrapper,"scroll",function(){gn.wrapper.scrollTop=gn.wrapper.scrollLeft=0});gn.dragFunctions={simple:function(gq){if(!aR(gj,gq)){es(gq)}},start:function(gq){Q(gj,gq)},drop:c3(gj,bl)};var gm=gn.input.getField();bY(gm,"keyup",function(gq){bj.call(gj,gq)});bY(gm,"keydown",c3(gj,p));bY(gm,"keypress",c3(gj,cy));bY(gm,"focus",cw(cC,gj));bY(gm,"blur",cw(aV,gj))}function f1(gj,gm,gk){var gn=gk&&gk!=H.Init;if(!gm!=!gn){var gl=gj.display.dragFunctions;var gi=gm?bY:ee;gi(gj.display.scroller,"dragstart",gl.start);gi(gj.display.scroller,"dragenter",gl.simple);gi(gj.display.scroller,"dragover",gl.simple);gi(gj.display.scroller,"drop",gl.drop)}}function aT(gi){var gj=gi.display;if(gj.lastWrapHeight==gj.wrapper.clientHeight&&gj.lastWrapWidth==gj.wrapper.clientWidth){return}gj.cachedCharWidth=gj.cachedTextHeight=gj.cachedPaddingH=null;gj.scrollbarsClipped=false;gi.setSize()}function bc(gj,gi){for(var gk=L(gi);gk!=gj.wrapper;gk=gk.parentNode){if(!gk||(gk.nodeType==1&&gk.getAttribute("cm-ignore-events")=="true")||(gk.parentNode==gj.sizer&&gk!=gj.mover)){return true}}}function co(gr,gm,gj,gk){var gn=gr.display;if(!gj&&L(gm).getAttribute("cm-not-content")=="true"){return null}var gq,go,gi=gn.lineSpace.getBoundingClientRect();try{gq=gm.clientX-gi.left;go=gm.clientY-gi.top}catch(gm){return null}var gp=fP(gr,gq,go),gs;if(gk&&gp.xRel==1&&(gs=fg(gr.doc,gp.line).text).length==gp.ch){var gl=bU(gs,gs.length,gr.options.tabSize)-gs.length;gp=W(gp.line,Math.max(0,Math.round((gq-e6(gr.display).left)/dE(gr.display))-gl))}return gp}function ev(gk){var gi=this,gj=gi.display;if(gj.activeTouch&&gj.input.supportsTouch()||aR(gi,gk)){return}gj.shift=gk.shiftKey;if(bc(gj,gk)){if(!c1){gj.scroller.draggable=false;setTimeout(function(){gj.scroller.draggable=true},100)}return}if(l(gi,gk)){return}var gl=co(gi,gk);window.focus();switch(fO(gk)){case 1:if(gl){ax(gi,gk,gl)}else{if(L(gk)==gj.scroller){cH(gk)}}break;case 2:if(c1){gi.state.lastMiddleDown=+new Date}if(gl){fX(gi.doc,gl)}setTimeout(function(){gj.input.focus()},20);cH(gk);break;case 3:if(ga){ay(gi,gk)}else{al(gi)}break}}var dp,de;function ax(gj,go,gp){if(dL){setTimeout(cw(r,gj),0)}else{gj.curOp.focus=dP()}var gk=+new Date,gm;if(de&&de.time>gk-400&&cg(de.pos,gp)==0){gm="triple"}else{if(dp&&dp.time>gk-400&&cg(dp.pos,gp)==0){gm="double";de={time:gk,pos:gp}}else{gm="single";dp={time:gk,pos:gp}}}var gn=gj.doc.sel,gi=b8?go.metaKey:go.ctrlKey,gl;if(gj.options.dragDrop&&eM&&!aj(gj)&&gm=="single"&&(gl=gn.contains(gp))>-1&&(cg((gl=gn.ranges[gl]).from(),gp)<0||gp.xRel>0)&&(cg(gl.to(),gp)>0||gp.xRel<0)){a4(gj,go,gp,gi)}else{m(gj,go,gp,gm,gi)}}function a4(gk,gn,go,gj){var gm=gk.display,gl=+new Date;var gi=c3(gk,function(gp){if(c1){gm.scroller.draggable=false}gk.state.draggingText=false;ee(document,"mouseup",gi);ee(gm.scroller,"drop",gi);if(Math.abs(gn.clientX-gp.clientX)+Math.abs(gn.clientY-gp.clientY)<10){cH(gp);if(!gj&&+new Date-200<gl){fX(gk.doc,go)}if(c1||dL&&k==9){setTimeout(function(){document.body.focus();gm.input.focus()},20)}else{gm.input.focus()}}});if(c1){gm.scroller.draggable=true}gk.state.draggingText=gi;if(gm.scroller.dragDrop){gm.scroller.dragDrop()}bY(document,"mouseup",gi);bY(gm.scroller,"drop",gi)}function m(gm,gA,gl,gj,go){var gx=gm.display,gC=gm.doc;cH(gA);var gk,gB,gn=gC.sel,gi=gn.ranges;if(go&&!gA.shiftKey){gB=gC.sel.contains(gl);if(gB>-1){gk=gi[gB]}else{gk=new dZ(gl,gl)}}else{gk=gC.sel.primary();gB=gC.sel.primIndex}if(gA.altKey){gj="rect";if(!go){gk=new dZ(gl,gl)}gl=co(gm,gA,true,true);gB=-1}else{if(gj=="double"){var gy=gm.findWordAt(gl);if(gm.display.shift||gC.extend){gk=fw(gC,gk,gy.anchor,gy.head)}else{gk=gy}}else{if(gj=="triple"){var gr=new dZ(W(gl.line,0),fK(gC,W(gl.line+1,0)));if(gm.display.shift||gC.extend){gk=fw(gC,gk,gr.anchor,gr.head)}else{gk=gr}}else{gk=fw(gC,gk,gl)}}}if(!go){gB=0;bV(gC,new f4([gk],0),M);gn=gC.sel}else{if(gB==-1){gB=gi.length;bV(gC,cx(gi.concat([gk]),gB),{scroll:false,origin:"*mouse"})}else{if(gi.length>1&&gi[gB].empty()&&gj=="single"&&!gA.shiftKey){bV(gC,cx(gi.slice(0,gB).concat(gi.slice(gB+1)),0));gn=gC.sel}else{e(gC,gB,gk,M)}}}var gw=gl;function gv(gN){if(cg(gw,gN)==0){return}gw=gN;if(gj=="rect"){var gE=[],gK=gm.options.tabSize;var gD=bU(fg(gC,gl.line).text,gl.ch,gK);var gQ=bU(fg(gC,gN.line).text,gN.ch,gK);var gF=Math.min(gD,gQ),gO=Math.max(gD,gQ);for(var gR=Math.min(gl.line,gN.line),gH=Math.min(gm.lastLine(),Math.max(gl.line,gN.line));gR<=gH;gR++){var gP=fg(gC,gR).text,gG=er(gP,gF,gK);if(gF==gO){gE.push(new dZ(W(gR,gG),W(gR,gG)))}else{if(gP.length>gG){gE.push(new dZ(W(gR,gG),W(gR,er(gP,gO,gK))))}}}if(!gE.length){gE.push(new dZ(gl,gl))}bV(gC,cx(gn.ranges.slice(0,gB).concat(gE),gB),{origin:"*mouse",scroll:false});gm.scrollIntoView(gN)}else{var gL=gk;var gI=gL.anchor,gM=gN;if(gj!="single"){if(gj=="double"){var gJ=gm.findWordAt(gN)}else{var gJ=new dZ(W(gN.line,0),fK(gC,W(gN.line+1,0)))}if(cg(gJ.anchor,gI)>0){gM=gJ.head;gI=ar(gL.from(),gJ.anchor)}else{gM=gJ.anchor;gI=by(gL.to(),gJ.head)}}var gE=gn.ranges.slice(0);gE[gB]=new dZ(fK(gC,gI),gM);bV(gC,cx(gE,gB),M)}}var gt=gx.wrapper.getBoundingClientRect();var gp=0;function gz(gF){var gD=++gp;var gH=co(gm,gF,true,gj=="rect");if(!gH){return}if(cg(gH,gw)!=0){gm.curOp.focus=dP();gv(gH);var gG=b7(gx,gC);if(gH.line>=gG.to||gH.line<gG.from){setTimeout(c3(gm,function(){if(gp==gD){gz(gF)}}),150)}}else{var gE=gF.clientY<gt.top?-20:gF.clientY>gt.bottom?20:0;if(gE){setTimeout(c3(gm,function(){if(gp!=gD){return}gx.scroller.scrollTop+=gE;gz(gF)}),50)}}}function gs(gD){gp=Infinity;cH(gD);gx.input.focus();ee(document,"mousemove",gu);ee(document,"mouseup",gq);gC.history.lastSelOrigin=null}var gu=c3(gm,function(gD){if(!fO(gD)){gs(gD)}else{gz(gD)}});var gq=c3(gm,gs);bY(document,"mousemove",gu);bY(document,"mouseup",gq)}function gg(gt,gp,gr,gs,gl){try{var gj=gp.clientX,gi=gp.clientY}catch(gp){return false}if(gj>=Math.floor(gt.display.gutters.getBoundingClientRect().right)){return false}if(gs){cH(gp)}var gq=gt.display;var go=gq.lineDiv.getBoundingClientRect();if(gi>go.bottom||!fj(gt,gr)){return bM(gp)}gi-=go.top-gq.viewOffset;for(var gm=0;gm<gt.options.gutters.length;++gm){var gn=gq.gutters.childNodes[gm];if(gn&&gn.getBoundingClientRect().right>=gj){var gu=bH(gt.doc,gi);var gk=gt.options.gutters[gm];gl(gt,gr,gt,gu,gk,gp);return bM(gp)}}}function l(gi,gj){return gg(gi,gj,"gutterClick",true,ae)}var ag=0;function bl(go){var gq=this;if(aR(gq,go)||bc(gq.display,go)){return}cH(go);if(dL){ag=+new Date}var gp=co(gq,go,true),gi=go.dataTransfer.files;if(!gp||aj(gq)){return}if(gi&&gi.length&&window.FileReader&&window.File){var gk=gi.length,gr=Array(gk),gj=0;var gm=function(gu,gt){var gs=new FileReader;gs.onload=c3(gq,function(){gr[gt]=gs.result;if(++gj==gk){gp=fK(gq.doc,gp);var gv={from:gp,to:gp,text:a1(gr.join("\n")),origin:"paste"};bh(gq.doc,gv);e8(gq.doc,eT(gp,cY(gv)))}});gs.readAsText(gu)};for(var gn=0;gn<gk;++gn){gm(gi[gn],gn)}}else{if(gq.state.draggingText&&gq.doc.sel.contains(gp)>-1){gq.state.draggingText(go);setTimeout(function(){gq.display.input.focus()},20);return}try{var gr=go.dataTransfer.getData("Text");if(gr){if(gq.state.draggingText&&!(b8?go.altKey:go.ctrlKey)){var gl=gq.listSelections()}eq(gq.doc,eT(gp,gp));if(gl){for(var gn=0;gn<gl.length;++gn){a2(gq.doc,"",gl[gn].anchor,gl[gn].head,"drag")}}gq.replaceSelection(gr,"around","paste");gq.display.input.focus()}}catch(go){}}}function Q(gi,gk){if(dL&&(!gi.state.draggingText||+new Date-ag<100)){es(gk);return}if(aR(gi,gk)||bc(gi.display,gk)){return}gk.dataTransfer.setData("Text",gi.getSelection());if(gk.dataTransfer.setDragImage&&!aC){var gj=f3("img",null,null,"position: fixed; left: 0; top: 0;");gj.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==";if(d4){gj.width=gj.height=1;gi.display.wrapper.appendChild(gj);gj._top=gj.offsetTop}gk.dataTransfer.setDragImage(gj,0,0);if(d4){gj.parentNode.removeChild(gj)}}}function N(gi,gj){if(Math.abs(gi.doc.scrollTop-gj)<2){return}gi.doc.scrollTop=gj;if(!cp){dU(gi,{top:gj})}if(gi.display.scroller.scrollTop!=gj){gi.display.scroller.scrollTop=gj}gi.display.scrollbars.setScrollTop(gj);if(cp){dU(gi)}eg(gi,100)}function bF(gi,gk,gj){if(gj?gk==gi.doc.scrollLeft:Math.abs(gi.doc.scrollLeft-gk)<2){return}gk=Math.min(gk,gi.display.scroller.scrollWidth-gi.display.scroller.clientWidth);gi.doc.scrollLeft=gk;eF(gi);if(gi.display.scroller.scrollLeft!=gk){gi.display.scroller.scrollLeft=gk}gi.display.scrollbars.setScrollLeft(gk)}var fn=0,ch=null;if(dL){ch=-0.53}else{if(cp){ch=15}else{if(dd){ch=-0.7}else{if(aC){ch=-1/3}}}}var cR=function(gk){var gj=gk.wheelDeltaX,gi=gk.wheelDeltaY;if(gj==null&&gk.detail&&gk.axis==gk.HORIZONTAL_AXIS){gj=gk.detail}if(gi==null&&gk.detail&&gk.axis==gk.VERTICAL_AXIS){gi=gk.detail}else{if(gi==null){gi=gk.wheelDelta}}return{x:gj,y:gi}};H.wheelEventPixels=function(gi){var gj=cR(gi);gj.x*=ch;gj.y*=ch;return gj};function b(gq,gk){var gr=cR(gk),gu=gr.x,gt=gr.y;var gm=gq.display,gp=gm.scroller;if(!(gu&&gp.scrollWidth>gp.clientWidth||gt&&gp.scrollHeight>gp.clientHeight)){return}if(gt&&b8&&c1){outer:for(var gs=gk.target,go=gm.view;gs!=gp;gs=gs.parentNode){for(var gj=0;gj<go.length;gj++){if(go[gj].node==gs){gq.display.currentWheelTarget=gs;break outer}}}}if(gu&&!cp&&!d4&&ch!=null){if(gt){N(gq,Math.max(0,Math.min(gp.scrollTop+gt*ch,gp.scrollHeight-gp.clientHeight)))}bF(gq,Math.max(0,Math.min(gp.scrollLeft+gu*ch,gp.scrollWidth-gp.clientWidth)));cH(gk);gm.wheelStartX=null;return}if(gt&&ch!=null){var gi=gt*ch;var gn=gq.doc.scrollTop,gl=gn+gm.wrapper.clientHeight;if(gi<0){gn=Math.max(0,gn+gi-50)}else{gl=Math.min(gq.doc.height,gl+gi+50)}dU(gq,{top:gn,bottom:gl})}if(fn<20){if(gm.wheelStartX==null){gm.wheelStartX=gp.scrollLeft;gm.wheelStartY=gp.scrollTop;gm.wheelDX=gu;gm.wheelDY=gt;setTimeout(function(){if(gm.wheelStartX==null){return}var gv=gp.scrollLeft-gm.wheelStartX;var gx=gp.scrollTop-gm.wheelStartY;var gw=(gx&&gm.wheelDY&&gx/gm.wheelDY)||(gv&&gm.wheelDX&&gv/gm.wheelDX);gm.wheelStartX=gm.wheelStartY=null;if(!gw){return}ch=(ch*fn+gw)/(fn+1);++fn},200)}else{gm.wheelDX+=gu;gm.wheelDY+=gt}}}function fS(gj,gm,gi){if(typeof gm=="string"){gm=eE[gm];if(!gm){return false}}gj.display.input.ensurePolled();var gl=gj.display.shift,gk=false;try{if(aj(gj)){gj.state.suppressEdits=true}if(gi){gj.display.shift=false}gk=gm(gj)!=cb}finally{gj.display.shift=gl;gj.state.suppressEdits=false}return gk}function eb(gj,gk,gm){for(var gl=0;gl<gj.state.keyMaps.length;gl++){var gi=i(gk,gj.state.keyMaps[gl],gm,gj);if(gi){return gi}}return(gj.options.extraKeys&&i(gk,gj.options.extraKeys,gm,gj))||i(gk,gj.options.keyMap,gm,gj)}var dN=new gh;function be(gj,gl,gn,gm){var gk=gj.state.keySeq;if(gk){if(eD(gl)){return"handled"}dN.set(50,function(){if(gj.state.keySeq==gk){gj.state.keySeq=null;gj.display.input.reset()}});gl=gk+" "+gl}var gi=eb(gj,gl,gm);if(gi=="multi"){gj.state.keySeq=gl}if(gi=="handled"){ae(gj,"keyHandled",gj,gl,gn)}if(gi=="handled"||gi=="multi"){cH(gn);o(gj)}if(gk&&!gi&&/\'$/.test(gl)){cH(gn);return true}return !!gi}function fk(gi,gk){var gj=fs(gk,true);if(!gj){return false}if(gk.shiftKey&&!gi.state.keySeq){return be(gi,"Shift-"+gj,gk,function(gl){return fS(gi,gl,true)})||be(gi,gj,gk,function(gl){if(typeof gl=="string"?/^go[A-Z]/.test(gl):gl.motion){return fS(gi,gl)}})}else{return be(gi,gj,gk,function(gl){return fS(gi,gl)})}}function ek(gi,gk,gj){return be(gi,"'"+gj+"'",gk,function(gl){return fS(gi,gl,true)})}var dn=null;function p(gl){var gi=this;gi.curOp.focus=dP();if(aR(gi,gl)){return}if(dL&&k<11&&gl.keyCode==27){gl.returnValue=false}var gj=gl.keyCode;gi.display.shift=gj==16||gl.shiftKey;var gk=fk(gi,gl);if(d4){dn=gk?gj:null;if(!gk&&gj==88&&!db&&(b8?gl.metaKey:gl.ctrlKey)){gi.replaceSelection("",null,"cut")}}if(gj==18&&!/\bCodeMirror-crosshair\b/.test(gi.display.lineDiv.className)){av(gi)}}function av(gj){var gk=gj.display.lineDiv;fB(gk,"CodeMirror-crosshair");function gi(gl){if(gl.keyCode==18||!gl.altKey){f(gk,"CodeMirror-crosshair");ee(document,"keyup",gi);ee(document,"mouseover",gi)}}bY(document,"keyup",gi);bY(document,"mouseover",gi)}function bj(gi){if(gi.keyCode==16){this.doc.sel.shift=false}aR(this,gi)}function cy(gm){var gi=this;if(bc(gi.display,gm)||aR(gi,gm)||gm.ctrlKey&&!gm.altKey||b8&&gm.metaKey){return}var gl=gm.keyCode,gj=gm.charCode;if(d4&&gl==dn){dn=null;cH(gm);return}if((d4&&(!gm.which||gm.which<10))&&fk(gi,gm)){return}var gk=String.fromCharCode(gj==null?gl:gj);if(ek(gi,gm,gk)){return}gi.display.input.onKeyPress(gm)}function al(gi){gi.state.delayingBlurEvent=true;setTimeout(function(){if(gi.state.delayingBlurEvent){gi.state.delayingBlurEvent=false;aV(gi)}},100)}function cC(gi){if(gi.state.delayingBlurEvent){gi.state.delayingBlurEvent=false}if(gi.options.readOnly=="nocursor"){return}if(!gi.state.focused){aE(gi,"focus",gi);gi.state.focused=true;fB(gi.display.wrapper,"CodeMirror-focused");if(!gi.curOp&&gi.display.selForContextMenu!=gi.doc.sel){gi.display.input.reset();if(c1){setTimeout(function(){gi.display.input.reset(true)},20)}}gi.display.input.receivedFocus()}o(gi)}function aV(gi){if(gi.state.delayingBlurEvent){return}if(gi.state.focused){aE(gi,"blur",gi);gi.state.focused=false;f(gi.display.wrapper,"CodeMirror-focused")}clearInterval(gi.display.blinker);setTimeout(function(){if(!gi.state.focused){gi.display.shift=false}},150)}function ay(gi,gj){if(bc(gi.display,gj)||dh(gi,gj)){return}gi.display.input.onContextMenu(gj)}function dh(gi,gj){if(!fj(gi,"gutterContextMenu")){return false}return gg(gi,gj,"gutterContextMenu",false,aE)}var cY=H.changeEnd=function(gi){if(!gi.text){return gi.to}return W(gi.from.line+gi.text.length-1,fH(gi.text).length+(gi.text.length==1?gi.from.ch:0))};function b0(gl,gk){if(cg(gl,gk.from)<0){return gl}if(cg(gl,gk.to)<=0){return cY(gk)}var gi=gl.line+gk.text.length-(gk.to.line-gk.from.line)-1,gj=gl.ch;if(gl.line==gk.to.line){gj+=cY(gk).ch-gk.to.ch}return W(gi,gj)}function fl(gl,gm){var gj=[];for(var gk=0;gk<gl.sel.ranges.length;gk++){var gi=gl.sel.ranges[gk];gj.push(new dZ(b0(gi.anchor,gm),b0(gi.head,gm)))}return cx(gj,gl.sel.primIndex)}function bv(gk,gj,gi){if(gk.line==gj.line){return W(gi.line,gk.ch-gj.ch+gi.ch)}else{return W(gi.line+(gk.line-gj.line),gk.ch)}}function af(gs,gp,gj){var gk=[];var gi=W(gs.first,0),gt=gi;for(var gm=0;gm<gp.length;gm++){var go=gp[gm];var gr=bv(go.from,gi,gt);var gq=bv(cY(go),gi,gt);gi=go.to;gt=gq;if(gj=="around"){var gn=gs.sel.ranges[gm],gl=cg(gn.head,gn.anchor)<0;gk[gm]=new dZ(gl?gq:gr,gl?gr:gq)}else{gk[gm]=new dZ(gr,gr)}}return new f4(gk,gs.sel.primIndex)}function dS(gj,gl,gk){var gi={canceled:false,from:gl.from,to:gl.to,text:gl.text,origin:gl.origin,cancel:function(){this.canceled=true}};if(gk){gi.update=function(gp,go,gn,gm){if(gp){this.from=fK(gj,gp)}if(go){this.to=fK(gj,go)}if(gn){this.text=gn}if(gm!==undefined){this.origin=gm}}}aE(gj,"beforeChange",gj,gi);if(gj.cm){aE(gj.cm,"beforeChange",gj.cm,gi)}if(gi.canceled){return null}return{from:gi.from,to:gi.to,text:gi.text,origin:gi.origin}}function bh(gl,gm,gk){if(gl.cm){if(!gl.cm.curOp){return c3(gl.cm,bh)(gl,gm,gk)}if(gl.cm.state.suppressEdits){return}}if(fj(gl,"beforeChange")||gl.cm&&fj(gl.cm,"beforeChange")){gm=dS(gl,gm,true);if(!gm){return}}var gj=gd&&!gk&&cI(gl,gm.from,gm.to);if(gj){for(var gi=gj.length-1;gi>=0;--gi){K(gl,{from:gj[gi].from,to:gj[gi].to,text:gi?[""]:gm.text})}}else{K(gl,gm)}}function K(gk,gl){if(gl.text.length==1&&gl.text[0]==""&&cg(gl.from,gl.to)==0){return}var gj=fl(gk,gl);fN(gk,gl,gj,gk.cm?gk.cm.curOp.id:NaN);ef(gk,gl,gj,el(gk,gl));var gi=[];d8(gk,function(gn,gm){if(!gm&&di(gi,gn.history)==-1){dF(gn.history,gl);gi.push(gn.history)}ef(gn,gl,null,el(gn,gl))})}function b9(gt,gr,gv){if(gt.cm&&gt.cm.state.suppressEdits){return}var gq=gt.history,gk,gm=gt.sel;var gi=gr=="undo"?gq.done:gq.undone,gu=gr=="undo"?gq.undone:gq.done;for(var gn=0;gn<gi.length;gn++){gk=gi[gn];if(gv?gk.ranges&&!gk.equals(gt.sel):!gk.ranges){break}}if(gn==gi.length){return}gq.lastOrigin=gq.lastSelOrigin=null;for(;;){gk=gi.pop();if(gk.ranges){cO(gk,gu);if(gv&&!gk.equals(gt.sel)){bV(gt,gk,{clearRedo:false});return}gm=gk}else{break}}var gp=[];cO(gm,gu);gu.push({changes:gp,generation:gq.generation});gq.generation=gk.generation||++gq.maxGeneration;var gl=fj(gt,"beforeChange")||gt.cm&&fj(gt.cm,"beforeChange");for(var gn=gk.changes.length-1;gn>=0;--gn){var gs=gk.changes[gn];gs.origin=gr;if(gl&&!dS(gt,gs,false)){gi.length=0;return}gp.push(dv(gt,gs));var gj=gn?fl(gt,gs):fH(gi);ef(gt,gs,gj,ea(gt,gs));if(!gn&&gt.cm){gt.cm.scrollIntoView({from:gs.from,to:cY(gs)})}var go=[];d8(gt,function(gx,gw){if(!gw&&di(go,gx.history)==-1){dF(gx.history,gs);go.push(gx.history)}ef(gx,gs,null,ea(gx,gs))})}}function fo(gj,gl){if(gl==0){return}gj.first+=gl;gj.sel=new f4(bT(gj.sel.ranges,function(gm){return new dZ(W(gm.anchor.line+gl,gm.anchor.ch),W(gm.head.line+gl,gm.head.ch))}),gj.sel.primIndex);if(gj.cm){ah(gj.cm,gj.first,gj.first-gl,gl);for(var gk=gj.cm.display,gi=gk.viewFrom;gi<gk.viewTo;gi++){R(gj.cm,gi,"gutter")}}}function ef(gm,gn,gl,gj){if(gm.cm&&!gm.cm.curOp){return c3(gm.cm,ef)(gm,gn,gl,gj)}if(gn.to.line<gm.first){fo(gm,gn.text.length-1-(gn.to.line-gn.from.line));return}if(gn.from.line>gm.lastLine()){return}if(gn.from.line<gm.first){var gi=gn.text.length-1-(gm.first-gn.from.line);fo(gm,gi);gn={from:W(gm.first,0),to:W(gn.to.line+gi,gn.to.ch),text:[fH(gn.text)],origin:gn.origin}}var gk=gm.lastLine();if(gn.to.line>gk){gn={from:gn.from,to:W(gk,fg(gm,gk).text.length),text:[gn.text[0]],origin:gn.origin}}gn.removed=f5(gm,gn.from,gn.to);if(!gl){gl=fl(gm,gn)}if(gm.cm){aJ(gm.cm,gn,gj)}else{fz(gm,gn,gj)}eq(gm,gl,Z)}function aJ(gt,gp,gn){var gs=gt.doc,go=gt.display,gq=gp.from,gr=gp.to;var gi=false,gm=gq.line;if(!gt.options.lineWrapping){gm=bO(y(fg(gs,gq.line)));gs.iter(gm,gr.line+1,function(gv){if(gv==go.maxLine){gi=true;return true}})}if(gs.sel.contains(gp.from,gp.to)>-1){V(gt)}fz(gs,gp,gn,bf(gt));if(!gt.options.lineWrapping){gs.iter(gm,gq.line+gp.text.length,function(gw){var gv=eo(gw);if(gv>go.maxLineLength){go.maxLine=gw;go.maxLineLength=gv;go.maxLineChanged=true;gi=false}});if(gi){gt.curOp.updateMaxLine=true}}gs.frontier=Math.min(gs.frontier,gq.line);eg(gt,400);var gu=gp.text.length-(gr.line-gq.line)-1;if(gp.full){ah(gt)}else{if(gq.line==gr.line&&gp.text.length==1&&!dT(gt.doc,gp)){R(gt,gq.line,"text")}else{ah(gt,gq.line,gr.line+1,gu)}}var gk=fj(gt,"changes"),gl=fj(gt,"change");if(gl||gk){var gj={from:gq,to:gr,text:gp.text,removed:gp.removed,origin:gp.origin};if(gl){ae(gt,"change",gt,gj)}if(gk){(gt.curOp.changeObjs||(gt.curOp.changeObjs=[])).push(gj)}}gt.display.selForContextMenu=null}function a2(gl,gk,gn,gm,gi){if(!gm){gm=gn}if(cg(gm,gn)<0){var gj=gm;gm=gn;gn=gj}if(typeof gk=="string"){gk=a1(gk)}bh(gl,{from:gn,to:gm,text:gk,origin:gi})}function d7(gj,gm){if(aR(gj,"scrollCursorIntoView")){return}var gn=gj.display,gk=gn.sizer.getBoundingClientRect(),gi=null;if(gm.top+gk.top<0){gi=true}else{if(gm.bottom+gk.top>(window.innerHeight||document.documentElement.clientHeight)){gi=false}}if(gi!=null&&!fv){var gl=f3("div","\u200b",null,"position: absolute; top: "+(gm.top-gn.viewOffset-e9(gj.display))+"px; height: "+(gm.bottom-gm.top+cU(gj)+gn.barHeight)+"px; left: "+gm.left+"px; width: 2px;");gj.display.lineSpace.appendChild(gl);gl.scrollIntoView(gi);gj.display.lineSpace.removeChild(gl)}}function D(gs,gq,gm,gl){if(gl==null){gl=0}for(var gn=0;gn<5;gn++){var go=false,gr=dV(gs,gq);var gi=!gm||gm==gq?gr:dV(gs,gm);var gk=G(gs,Math.min(gr.left,gi.left),Math.min(gr.top,gi.top)-gl,Math.max(gr.left,gi.left),Math.max(gr.bottom,gi.bottom)+gl);var gp=gs.doc.scrollTop,gj=gs.doc.scrollLeft;if(gk.scrollTop!=null){N(gs,gk.scrollTop);if(Math.abs(gs.doc.scrollTop-gp)>1){go=true}}if(gk.scrollLeft!=null){bF(gs,gk.scrollLeft);if(Math.abs(gs.doc.scrollLeft-gj)>1){go=true}}if(!go){break}}return gr}function E(gi,gk,gm,gj,gl){var gn=G(gi,gk,gm,gj,gl);if(gn.scrollTop!=null){N(gi,gn.scrollTop)}if(gn.scrollLeft!=null){bF(gi,gn.scrollLeft)}}function G(gu,gl,gt,gj,gs){var gq=gu.display,go=aY(gu.display);if(gt<0){gt=0}var gm=gu.curOp&&gu.curOp.scrollTop!=null?gu.curOp.scrollTop:gq.scroller.scrollTop;var gw=cW(gu),gy={};if(gs-gt>gw){gs=gt+gw}var gk=gu.doc.height+bJ(gq);var gi=gt<go,gp=gs>gk-go;if(gt<gm){gy.scrollTop=gi?0:gt}else{if(gs>gm+gw){var gr=Math.min(gt,(gp?gk:gs)-gw);if(gr!=gm){gy.scrollTop=gr}}}var gx=gu.curOp&&gu.curOp.scrollLeft!=null?gu.curOp.scrollLeft:gq.scroller.scrollLeft;var gv=dm(gu)-(gu.options.fixedGutter?gq.gutters.offsetWidth:0);var gn=gj-gl>gv;if(gn){gj=gl+gv}if(gl<10){gy.scrollLeft=0}else{if(gl<gx){gy.scrollLeft=Math.max(0,gl-(gn?0:10))}else{if(gj>gv+gx-3){gy.scrollLeft=gj+(gn?0:10)-gv}}}return gy}function cM(gi,gk,gj){if(gk!=null||gj!=null){fD(gi)}if(gk!=null){gi.curOp.scrollLeft=(gi.curOp.scrollLeft==null?gi.doc.scrollLeft:gi.curOp.scrollLeft)+gk}if(gj!=null){gi.curOp.scrollTop=(gi.curOp.scrollTop==null?gi.doc.scrollTop:gi.curOp.scrollTop)+gj}}function fG(gi){fD(gi);var gj=gi.getCursor(),gl=gj,gk=gj;if(!gi.options.lineWrapping){gl=gj.ch?W(gj.line,gj.ch-1):gj;gk=W(gj.line,gj.ch+1)}gi.curOp.scrollToPos={from:gl,to:gk,margin:gi.options.cursorScrollMargin,isCursor:true}}function fD(gi){var gk=gi.curOp.scrollToPos;if(gk){gi.curOp.scrollToPos=null;var gm=dI(gi,gk.from),gl=dI(gi,gk.to);var gj=G(gi,Math.min(gm.left,gl.left),Math.min(gm.top,gl.top)-gk.margin,Math.max(gm.right,gl.right),Math.max(gm.bottom,gl.bottom)+gk.margin);gi.scrollTo(gj.scrollLeft,gj.scrollTop)}}function ad(gv,gl,gu,gk){var gt=gv.doc,gj;if(gu==null){gu="add"}if(gu=="smart"){if(!gt.mode.indent){gu="prev"}else{gj=dD(gv,gl)}}var gp=gv.options.tabSize;var gw=fg(gt,gl),go=bU(gw.text,null,gp);if(gw.stateAfter){gw.stateAfter=null}var gi=gw.text.match(/^\s*/)[0],gr;if(!gk&&!/\S/.test(gw.text)){gr=0;gu="not"}else{if(gu=="smart"){gr=gt.mode.indent(gj,gw.text.slice(gi.length),gw.text);if(gr==cb||gr>150){if(!gk){return}gu="prev"}}}if(gu=="prev"){if(gl>gt.first){gr=bU(fg(gt,gl-1).text,null,gp)}else{gr=0}}else{if(gu=="add"){gr=go+gv.options.indentUnit}else{if(gu=="subtract"){gr=go-gv.options.indentUnit}else{if(typeof gu=="number"){gr=go+gu}}}}gr=Math.max(0,gr);var gs="",gq=0;if(gv.options.indentWithTabs){for(var gm=Math.floor(gr/gp);gm;--gm){gq+=gp;gs+="\t"}}if(gq<gr){gs+=cq(gr-gq)}if(gs!=gi){a2(gt,gs,W(gl,0),W(gl,gi.length),"+input");gw.stateAfter=null;return true}else{for(var gm=0;gm<gt.sel.ranges.length;gm++){var gn=gt.sel.ranges[gm];if(gn.head.line==gl&&gn.head.ch<gi.length){var gq=W(gl,gi.length);e(gt,gm,new dZ(gq,gq));break}}}}function eA(gl,gk,gi,gn){var gm=gk,gj=gk;if(typeof gk=="number"){gj=fg(gl,c6(gl,gk))}else{gm=bO(gk)}if(gm==null){return null}if(gn(gj,gm)&&gl.cm){R(gl.cm,gm,gi)}return gj}function eY(gi,go){var gj=gi.doc.sel.ranges,gm=[];for(var gl=0;gl<gj.length;gl++){var gk=go(gj[gl]);while(gm.length&&cg(gk.from,fH(gm).to)<=0){var gn=gm.pop();if(cg(gn.from,gk.from)<0){gk.from=gn.from;break}}gm.push(gk)}cN(gi,function(){for(var gp=gm.length-1;gp>=0;gp--){a2(gi.doc,"",gm[gp].from,gm[gp].to,"+delete")}fG(gi)})}function bx(gA,gm,gu,gt,go){var gr=gm.line,gs=gm.ch,gz=gu;var gj=fg(gA,gr);var gx=true;function gy(){var gB=gr+gu;if(gB<gA.first||gB>=gA.first+gA.size){return(gx=false)}gr=gB;return gj=fg(gA,gB)}function gw(gC){var gB=(go?u:ai)(gj,gs,gu,true);if(gB==null){if(!gC&&gy()){if(go){gs=(gu<0?cT:cF)(gj)}else{gs=gu<0?gj.text.length:0}}else{return(gx=false)}}else{gs=gB}return true}if(gt=="char"){gw()}else{if(gt=="column"){gw(true)}else{if(gt=="word"||gt=="group"){var gv=null,gp=gt=="group";var gi=gA.cm&&gA.cm.getHelper(gm,"wordChars");for(var gn=true;;gn=false){if(gu<0&&!gw(!gn)){break}var gk=gj.text.charAt(gs)||"\n";var gl=cB(gk,gi)?"w":gp&&gk=="\n"?"n":!gp||/\s/.test(gk)?null:"p";if(gp&&!gn&&!gl){gl="s"}if(gv&&gv!=gl){if(gu<0){gu=1;gw()}break}if(gl){gv=gl}if(gu>0&&!gw(!gn)){break}}}}}var gq=bW(gA,W(gr,gs),gz,true);if(!gx){gq.hitSide=true}return gq}function br(gq,gl,gi,gp){var go=gq.doc,gn=gl.left,gm;if(gp=="page"){var gk=Math.min(gq.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight);gm=gl.top+gi*(gk-(gi<0?1.5:0.5)*aY(gq.display))}else{if(gp=="line"){gm=gi>0?gl.bottom+3:gl.top-3}}for(;;){var gj=fP(gq,gn,gm);if(!gj.outside){break}if(gi<0?gm<=0:gm>=go.height){gj.hitSide=true;break}gm+=gi*5}return gj}H.prototype={constructor:H,focus:function(){window.focus();this.display.input.focus()},setOption:function(gk,gl){var gj=this.options,gi=gj[gk];if(gj[gk]==gl&&gk!="mode"){return}gj[gk]=gl;if(bg.hasOwnProperty(gk)){c3(this,bg[gk])(this,gl,gi)}},getOption:function(gi){return this.options[gi]},getDoc:function(){return this.doc},addKeyMap:function(gj,gi){this.state.keyMaps[gi?"push":"unshift"](fY(gj))},removeKeyMap:function(gj){var gk=this.state.keyMaps;for(var gi=0;gi<gk.length;++gi){if(gk[gi]==gj||gk[gi].name==gj){gk.splice(gi,1);return true}}},addOverlay:c9(function(gi,gj){var gk=gi.token?gi:H.getMode(this.options,gi);if(gk.startState){throw new Error("Overlays may not be stateful.")}this.state.overlays.push({mode:gk,modeSpec:gi,opaque:gj&&gj.opaque});this.state.modeGen++;ah(this)}),removeOverlay:c9(function(gi){var gk=this.state.overlays;for(var gj=0;gj<gk.length;++gj){var gl=gk[gj].modeSpec;if(gl==gi||typeof gi=="string"&&gl.name==gi){gk.splice(gj,1);this.state.modeGen++;ah(this);return}}}),indentLine:c9(function(gk,gi,gj){if(typeof gi!="string"&&typeof gi!="number"){if(gi==null){gi=this.options.smartIndent?"smart":"prev"}else{gi=gi?"add":"subtract"}}if(ca(this.doc,gk)){ad(this,gk,gi,gj)}}),indentSelection:c9(function(gr){var gi=this.doc.sel.ranges,gl=-1;for(var gn=0;gn<gi.length;gn++){var go=gi[gn];if(!go.empty()){var gp=go.from(),gq=go.to();var gj=Math.max(gl,gp.line);gl=Math.min(this.lastLine(),gq.line-(gq.ch?0:1))+1;for(var gm=gj;gm<gl;++gm){ad(this,gm,gr)}var gk=this.doc.sel.ranges;if(gp.ch==0&&gi.length==gk.length&&gk[gn].from().ch>0){e(this.doc,gn,new dZ(gp,gk[gn].to()),Z)}}else{if(go.head.line>gl){ad(this,go.head.line,gr,true);gl=go.head.line;if(gn==this.doc.sel.primIndex){fG(this)}}}}}),getTokenAt:function(gj,gi){return cr(this,gj,gi)},getLineTokens:function(gj,gi){return cr(this,W(gj),gi,true)},getTokenTypeAt:function(gp){gp=fK(this.doc,gp);var gl=c7(this,fg(this.doc,gp.line));var gn=0,go=(gl.length-1)/2,gk=gp.ch;var gj;if(gk==0){gj=gl[2]}else{for(;;){var gi=(gn+go)>>1;if((gi?gl[gi*2-1]:0)>=gk){go=gi}else{if(gl[gi*2+1]<gk){gn=gi+1}else{gj=gl[gi*2+2];break}}}}var gm=gj?gj.indexOf("cm-overlay "):-1;return gm<0?gj:gm==0?null:gj.slice(0,gm-1)},getModeAt:function(gj){var gi=this.doc.mode;if(!gi.innerMode){return gi}return H.innerMode(gi,this.getTokenAt(gj).state).mode},getHelper:function(gj,gi){return this.getHelpers(gj,gi)[0]},getHelpers:function(gp,gk){var gl=[];if(!fp.hasOwnProperty(gk)){return gl}var gi=fp[gk],go=this.getModeAt(gp);if(typeof go[gk]=="string"){if(gi[go[gk]]){gl.push(gi[go[gk]])}}else{if(go[gk]){for(var gj=0;gj<go[gk].length;gj++){var gn=gi[go[gk][gj]];if(gn){gl.push(gn)}}}else{if(go.helperType&&gi[go.helperType]){gl.push(gi[go.helperType])}else{if(gi[go.name]){gl.push(gi[go.name])}}}}for(var gj=0;gj<gi._global.length;gj++){var gm=gi._global[gj];if(gm.pred(go,this)&&di(gl,gm.val)==-1){gl.push(gm.val)}}return gl},getStateAfter:function(gj,gi){var gk=this.doc;gj=c6(gk,gj==null?gk.first+gk.size-1:gj);return dD(this,gj+1,gi)},cursorCoords:function(gl,gj){var gk,gi=this.doc.sel.primary();if(gl==null){gk=gi.head}else{if(typeof gl=="object"){gk=fK(this.doc,gl)}else{gk=gl?gi.from():gi.to()}}return dV(this,gk,gj||"page")},charCoords:function(gj,gi){return cK(this,fK(this.doc,gj),gi||"page")},coordsChar:function(gi,gj){gi=gf(this,gi,gj||"page");return fP(this,gi.left,gi.top)},lineAtHeight:function(gi,gj){gi=gf(this,{top:gi,left:0},gj||"page").top;return bH(this.doc,gi+this.display.viewOffset)},heightAtLine:function(gj,gm){var gi=false,gk;if(typeof gj=="number"){var gl=this.doc.first+this.doc.size-1;if(gj<this.doc.first){gj=this.doc.first}else{if(gj>gl){gj=gl;gi=true}}gk=fg(this.doc,gj)}else{gk=gj}return eR(this,gk,{top:0,left:0},gm||"page").top+(gi?this.doc.height-bN(gk):0)},defaultTextHeight:function(){return aY(this.display)},defaultCharWidth:function(){return dE(this.display)},setGutterMarker:c9(function(gi,gj,gk){return eA(this.doc,gi,"gutter",function(gl){var gm=gl.gutterMarkers||(gl.gutterMarkers={});gm[gj]=gk;if(!gk&&eV(gm)){gl.gutterMarkers=null}return true})}),clearGutter:c9(function(gk){var gi=this,gl=gi.doc,gj=gl.first;gl.iter(function(gm){if(gm.gutterMarkers&&gm.gutterMarkers[gk]){gm.gutterMarkers[gk]=null;R(gi,gj,"gutter");if(eV(gm.gutterMarkers)){gm.gutterMarkers=null}}++gj})}),lineInfo:function(gi){if(typeof gi=="number"){if(!ca(this.doc,gi)){return null}var gj=gi;gi=fg(this.doc,gi);if(!gi){return null}}else{var gj=bO(gi);if(gj==null){return null}}return{line:gj,handle:gi,text:gi.text,gutterMarkers:gi.gutterMarkers,textClass:gi.textClass,bgClass:gi.bgClass,wrapClass:gi.wrapClass,widgets:gi.widgets}},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(gn,gk,gp,gl,gr){var gm=this.display;gn=dV(this,fK(this.doc,gn));var go=gn.bottom,gj=gn.left;gk.style.position="absolute";gk.setAttribute("cm-ignore-events","true");this.display.input.setUneditable(gk);gm.sizer.appendChild(gk);if(gl=="over"){go=gn.top}else{if(gl=="above"||gl=="near"){var gi=Math.max(gm.wrapper.clientHeight,this.doc.height),gq=Math.max(gm.sizer.clientWidth,gm.lineSpace.clientWidth);if((gl=="above"||gn.bottom+gk.offsetHeight>gi)&&gn.top>gk.offsetHeight){go=gn.top-gk.offsetHeight}else{if(gn.bottom+gk.offsetHeight<=gi){go=gn.bottom}}if(gj+gk.offsetWidth>gq){gj=gq-gk.offsetWidth}}}gk.style.top=go+"px";gk.style.left=gk.style.right="";if(gr=="right"){gj=gm.sizer.clientWidth-gk.offsetWidth;gk.style.right="0px"}else{if(gr=="left"){gj=0}else{if(gr=="middle"){gj=(gm.sizer.clientWidth-gk.offsetWidth)/2}}gk.style.left=gj+"px"}if(gp){E(this,gj,go,gj+gk.offsetWidth,go+gk.offsetHeight)}},triggerOnKeyDown:c9(p),triggerOnKeyPress:c9(cy),triggerOnKeyUp:bj,execCommand:function(gi){if(eE.hasOwnProperty(gi)){return eE[gi](this)}},triggerElectric:c9(function(gi){fW(this,gi)}),findPosH:function(go,gl,gm,gj){var gi=1;if(gl<0){gi=-1;gl=-gl}for(var gk=0,gn=fK(this.doc,go);gk<gl;++gk){gn=bx(this.doc,gn,gi,gm,gj);if(gn.hitSide){break}}return gn},moveH:c9(function(gj,gk){var gi=this;gi.extendSelectionsBy(function(gl){if(gi.display.shift||gi.doc.extend||gl.empty()){return bx(gi.doc,gl.head,gj,gk,gi.options.rtlMoveVisually)}else{return gj<0?gl.from():gl.to()}},cX)}),deleteH:c9(function(gi,gj){var gk=this.doc.sel,gl=this.doc;if(gk.somethingSelected()){gl.replaceSelection("",null,"+delete")}else{eY(this,function(gn){var gm=bx(gl,gn.head,gi,gj,false);return gi<0?{from:gm,to:gn.head}:{from:gn.head,to:gm}})}}),findPosV:function(gn,gk,go,gq){var gi=1,gm=gq;if(gk<0){gi=-1;gk=-gk}for(var gj=0,gp=fK(this.doc,gn);gj<gk;++gj){var gl=dV(this,gp,"div");if(gm==null){gm=gl.left}else{gl.left=gm}gp=br(this,gl,gi,go);if(gp.hitSide){break}}return gp},moveV:c9(function(gj,gl){var gi=this,gn=this.doc,gm=[];var go=!gi.display.shift&&!gn.extend&&gn.sel.somethingSelected();gn.extendSelectionsBy(function(gp){if(go){return gj<0?gp.from():gp.to()}var gr=dV(gi,gp.head,"div");if(gp.goalColumn!=null){gr.left=gp.goalColumn}gm.push(gr.left);var gq=br(gi,gr,gj,gl);if(gl=="page"&&gp==gn.sel.primary()){cM(gi,null,cK(gi,gq,"div").top-gr.top)}return gq},cX);if(gm.length){for(var gk=0;gk<gn.sel.ranges.length;gk++){gn.sel.ranges[gk].goalColumn=gm[gk]}}}),findWordAt:function(gp){var gn=this.doc,gl=fg(gn,gp.line).text;var go=gp.ch,gk=gp.ch;if(gl){var gm=this.getHelper(gp,"wordChars");if((gp.xRel<0||gk==gl.length)&&go){--go}else{++gk}var gj=gl.charAt(go);var gi=cB(gj,gm)?function(gq){return cB(gq,gm)}:/\s/.test(gj)?function(gq){return/\s/.test(gq)}:function(gq){return !/\s/.test(gq)&&!cB(gq)};while(go>0&&gi(gl.charAt(go-1))){--go}while(gk<gl.length&&gi(gl.charAt(gk))){++gk}}return new dZ(W(gp.line,go),W(gp.line,gk))},toggleOverwrite:function(gi){if(gi!=null&&gi==this.state.overwrite){return}if(this.state.overwrite=!this.state.overwrite){fB(this.display.cursorDiv,"CodeMirror-overwrite")}else{f(this.display.cursorDiv,"CodeMirror-overwrite")}aE(this,"overwriteToggle",this,this.state.overwrite)},hasFocus:function(){return this.display.input.getField()==dP()},scrollTo:c9(function(gi,gj){if(gi!=null||gj!=null){fD(this)}if(gi!=null){this.curOp.scrollLeft=gi}if(gj!=null){this.curOp.scrollTop=gj}}),getScrollInfo:function(){var gi=this.display.scroller;return{left:gi.scrollLeft,top:gi.scrollTop,height:gi.scrollHeight-cU(this)-this.display.barHeight,width:gi.scrollWidth-cU(this)-this.display.barWidth,clientHeight:cW(this),clientWidth:dm(this)}},scrollIntoView:c9(function(gj,gk){if(gj==null){gj={from:this.doc.sel.primary().head,to:null};if(gk==null){gk=this.options.cursorScrollMargin}}else{if(typeof gj=="number"){gj={from:W(gj,0),to:null}}else{if(gj.from==null){gj={from:gj,to:null}}}}if(!gj.to){gj.to=gj.from}gj.margin=gk||0;if(gj.from.line!=null){fD(this);this.curOp.scrollToPos=gj}else{var gi=G(this,Math.min(gj.from.left,gj.to.left),Math.min(gj.from.top,gj.to.top)-gj.margin,Math.max(gj.from.right,gj.to.right),Math.max(gj.from.bottom,gj.to.bottom)+gj.margin);this.scrollTo(gi.scrollLeft,gi.scrollTop)}}),setSize:c9(function(gl,gj){var gi=this;function gk(gn){return typeof gn=="number"||/^\d+$/.test(String(gn))?gn+"px":gn}if(gl!=null){gi.display.wrapper.style.width=gk(gl)}if(gj!=null){gi.display.wrapper.style.height=gk(gj)}if(gi.options.lineWrapping){aO(this)}var gm=gi.display.viewFrom;gi.doc.iter(gm,gi.display.viewTo,function(gn){if(gn.widgets){for(var go=0;go<gn.widgets.length;go++){if(gn.widgets[go].noHScroll){R(gi,gm,"widget");break}}}++gm});gi.curOp.forceUpdate=true;aE(gi,"refresh",this)}),operation:function(gi){return cN(this,gi)},refresh:c9(function(){var gi=this.display.cachedTextHeight;ah(this);this.curOp.forceUpdate=true;ak(this);this.scrollTo(this.doc.scrollLeft,this.doc.scrollTop);c5(this);if(gi==null||Math.abs(gi-aY(this.display))>0.5){X(this)}aE(this,"refresh",this)}),swapDoc:c9(function(gj){var gi=this.doc;gi.cm=null;ec(this,gj);ak(this);this.display.input.reset();this.scrollTo(gj.scrollLeft,gj.scrollTop);this.curOp.forceScroll=true;ae(this,"swapDoc",this,gi);return gi}),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}};bz(H);var e4=H.defaults={};var bg=H.optionHandlers={};function s(gi,gl,gk,gj){H.defaults[gi]=gl;if(gk){bg[gi]=gj?function(gm,go,gn){if(gn!=cd){gk(gm,go,gn)}}:gk}}var cd=H.Init={toString:function(){return"CodeMirror.Init"}};s("value","",function(gi,gj){gi.setValue(gj)},true);s("mode",null,function(gi,gj){gi.doc.modeOption=gj;bs(gi)},true);s("indentUnit",2,bs,true);s("indentWithTabs",false);s("smartIndent",true);s("tabSize",4,function(gi){em(gi);ak(gi);ah(gi)},true);s("specialChars",/[\t\u0000-\u0019\u00ad\u200b-\u200f\u2028\u2029\ufeff]/g,function(gi,gk,gj){gi.state.specialChars=new RegExp(gk.source+(gk.test("\t")?"":"|\t"),"g");if(gj!=H.Init){gi.refresh()}});s("specialCharPlaceholder",fd,function(gi){gi.refresh()},true);s("electricChars",true);s("inputStyle",eh?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},true);s("rtlMoveVisually",!aP);s("wholeLineUpdateBefore",true);s("theme","default",function(gi){cP(gi);dx(gi)},true);s("keyMap","default",function(gi,gm,gj){var gk=fY(gm);var gl=gj!=H.Init&&fY(gj);if(gl&&gl.detach){gl.detach(gi,gk)}if(gk.attach){gk.attach(gi,gl||null)}});s("extraKeys",null);s("lineWrapping",false,eH,true);s("gutters",[],function(gi){cf(gi.options);dx(gi)},true);s("fixedGutter",true,function(gi,gj){gi.display.gutters.style.left=gj?dY(gi.display)+"px":"0";gi.refresh()},true);s("coverGutterNextToScrollbar",false,function(gi){eZ(gi)},true);s("scrollbarStyle","native",function(gi){aD(gi);eZ(gi);gi.display.scrollbars.setScrollTop(gi.doc.scrollTop);gi.display.scrollbars.setScrollLeft(gi.doc.scrollLeft)},true);s("lineNumbers",false,function(gi){cf(gi.options);dx(gi)},true);s("firstLineNumber",1,dx,true);s("lineNumberFormatter",function(gi){return gi},dx,true);s("showCursorWhenSelecting",false,bD,true);s("resetSelectionOnContextMenu",true);s("lineWiseCopyCut",true);s("readOnly",false,function(gi,gj){if(gj=="nocursor"){aV(gi);gi.display.input.blur();gi.display.disabled=true}else{gi.display.disabled=false;if(!gj){gi.display.input.reset()}}});s("disableInput",false,function(gi,gj){if(!gj){gi.display.input.reset()}},true);s("dragDrop",true,f1);s("cursorBlinkRate",530);s("cursorScrollMargin",0);s("cursorHeight",1,bD,true);s("singleCursorHeightPerLine",true,bD,true);s("workTime",100);s("workDelay",100);s("flattenSpans",true,em,true);s("addModeClass",false,em,true);s("pollInterval",100);s("undoDepth",200,function(gi,gj){gi.doc.history.undoDepth=gj});s("historyEventDelay",1250);s("viewportMargin",10,function(gi){gi.refresh()},true);s("maxHighlightLength",10000,em,true);s("moveInputWithCursor",true,function(gi,gj){if(!gj){gi.display.input.resetPosition()}});s("tabindex",null,function(gi,gj){gi.display.input.getField().tabIndex=gj||""});s("autofocus",null);var dt=H.modes={},aS=H.mimeModes={};H.defineMode=function(gi,gj){if(!H.defaults.mode&&gi!="null"){H.defaults.mode=gi}if(arguments.length>2){gj.dependencies=Array.prototype.slice.call(arguments,2)}dt[gi]=gj};H.defineMIME=function(gj,gi){aS[gj]=gi};H.resolveMode=function(gi){if(typeof gi=="string"&&aS.hasOwnProperty(gi)){gi=aS[gi]}else{if(gi&&typeof gi.name=="string"&&aS.hasOwnProperty(gi.name)){var gj=aS[gi.name];if(typeof gj=="string"){gj={name:gj}}gi=cl(gj,gi);gi.name=gj.name}else{if(typeof gi=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(gi)){return H.resolveMode("application/xml")}}}if(typeof gi=="string"){return{name:gi}}else{return gi||{name:"null"}}};H.getMode=function(gj,gi){var gi=H.resolveMode(gi);var gl=dt[gi.name];if(!gl){return H.getMode(gj,"text/plain")}var gm=gl(gj,gi);if(dq.hasOwnProperty(gi.name)){var gk=dq[gi.name];for(var gn in gk){if(!gk.hasOwnProperty(gn)){continue}if(gm.hasOwnProperty(gn)){gm["_"+gn]=gm[gn]}gm[gn]=gk[gn]}}gm.name=gi.name;if(gi.helperType){gm.helperType=gi.helperType}if(gi.modeProps){for(var gn in gi.modeProps){gm[gn]=gi.modeProps[gn]}}return gm};H.defineMode("null",function(){return{token:function(gi){gi.skipToEnd()}}});H.defineMIME("text/plain","null");var dq=H.modeExtensions={};H.extendMode=function(gk,gj){var gi=dq.hasOwnProperty(gk)?dq[gk]:(dq[gk]={});aN(gj,gi)};H.defineExtension=function(gi,gj){H.prototype[gi]=gj};H.defineDocExtension=function(gi,gj){at.prototype[gi]=gj};H.defineOption=s;var a9=[];H.defineInitHook=function(gi){a9.push(gi)};var fp=H.helpers={};H.registerHelper=function(gj,gi,gk){if(!fp.hasOwnProperty(gj)){fp[gj]=H[gj]={_global:[]}}fp[gj][gi]=gk};H.registerGlobalHelper=function(gk,gj,gi,gl){H.registerHelper(gk,gj,gl);fp[gk]._global.push({pred:gi,val:gl})};var b4=H.copyState=function(gl,gi){if(gi===true){return gi}if(gl.copyState){return gl.copyState(gi)}var gk={};for(var gm in gi){var gj=gi[gm];if(gj instanceof Array){gj=gj.concat([])}gk[gm]=gj}return gk};var b1=H.startState=function(gk,gj,gi){return gk.startState?gk.startState(gj,gi):true};H.innerMode=function(gk,gi){while(gk.innerMode){var gj=gk.innerMode(gi);if(!gj||gj.mode==gk){break}gi=gj.state;gk=gj.mode}return gj||{mode:gk,state:gi}};var eE=H.commands={selectAll:function(gi){gi.setSelection(W(gi.firstLine(),0),W(gi.lastLine()),Z)},singleSelection:function(gi){gi.setSelection(gi.getCursor("anchor"),gi.getCursor("head"),Z)},killLine:function(gi){eY(gi,function(gk){if(gk.empty()){var gj=fg(gi.doc,gk.head.line).text.length;if(gk.head.ch==gj&&gk.head.line<gi.lastLine()){return{from:gk.head,to:W(gk.head.line+1,0)}}else{return{from:gk.head,to:W(gk.head.line,gj)}}}else{return{from:gk.from(),to:gk.to()}}})},deleteLine:function(gi){eY(gi,function(gj){return{from:W(gj.from().line,0),to:fK(gi.doc,W(gj.to().line+1,0))}})},delLineLeft:function(gi){eY(gi,function(gj){return{from:W(gj.from().line,0),to:gj.from()}})},delWrappedLineLeft:function(gi){eY(gi,function(gj){var gl=gi.charCoords(gj.head,"div").top+5;var gk=gi.coordsChar({left:0,top:gl},"div");return{from:gk,to:gj.from()}})},delWrappedLineRight:function(gi){eY(gi,function(gj){var gl=gi.charCoords(gj.head,"div").top+5;var gk=gi.coordsChar({left:gi.display.lineDiv.offsetWidth+100,top:gl},"div");return{from:gj.from(),to:gk}})},undo:function(gi){gi.undo()},redo:function(gi){gi.redo()},undoSelection:function(gi){gi.undoSelection()},redoSelection:function(gi){gi.redoSelection()},goDocStart:function(gi){gi.extendSelection(W(gi.firstLine(),0))},goDocEnd:function(gi){gi.extendSelection(W(gi.lastLine()))},goLineStart:function(gi){gi.extendSelectionsBy(function(gj){return bu(gi,gj.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(gi){gi.extendSelectionsBy(function(gj){return dJ(gi,gj.head)},{origin:"+move",bias:1})},goLineEnd:function(gi){gi.extendSelectionsBy(function(gj){return dQ(gi,gj.head.line)},{origin:"+move",bias:-1})},goLineRight:function(gi){gi.extendSelectionsBy(function(gj){var gk=gi.charCoords(gj.head,"div").top+5;return gi.coordsChar({left:gi.display.lineDiv.offsetWidth+100,top:gk},"div")},cX)},goLineLeft:function(gi){gi.extendSelectionsBy(function(gj){var gk=gi.charCoords(gj.head,"div").top+5;return gi.coordsChar({left:0,top:gk},"div")},cX)},goLineLeftSmart:function(gi){gi.extendSelectionsBy(function(gj){var gk=gi.charCoords(gj.head,"div").top+5;var gl=gi.coordsChar({left:0,top:gk},"div");if(gl.ch<gi.getLine(gl.line).search(/\S/)){return dJ(gi,gj.head)}return gl},cX)},goLineUp:function(gi){gi.moveV(-1,"line")},goLineDown:function(gi){gi.moveV(1,"line")},goPageUp:function(gi){gi.moveV(-1,"page")},goPageDown:function(gi){gi.moveV(1,"page")},goCharLeft:function(gi){gi.moveH(-1,"char")},goCharRight:function(gi){gi.moveH(1,"char")},goColumnLeft:function(gi){gi.moveH(-1,"column")},goColumnRight:function(gi){gi.moveH(1,"column")},goWordLeft:function(gi){gi.moveH(-1,"word")},goGroupRight:function(gi){gi.moveH(1,"group")},goGroupLeft:function(gi){gi.moveH(-1,"group")},goWordRight:function(gi){gi.moveH(1,"word")},delCharBefore:function(gi){gi.deleteH(-1,"char")},delCharAfter:function(gi){gi.deleteH(1,"char")},delWordBefore:function(gi){gi.deleteH(-1,"word")},delWordAfter:function(gi){gi.deleteH(1,"word")},delGroupBefore:function(gi){gi.deleteH(-1,"group")},delGroupAfter:function(gi){gi.deleteH(1,"group")},indentAuto:function(gi){gi.indentSelection("smart")},indentMore:function(gi){gi.indentSelection("add")},indentLess:function(gi){gi.indentSelection("subtract")},insertTab:function(gi){gi.replaceSelection("\t")},insertSoftTab:function(gi){var gk=[],gj=gi.listSelections(),gn=gi.options.tabSize;for(var gm=0;gm<gj.length;gm++){var go=gj[gm].from();var gl=bU(gi.getLine(go.line),go.ch,gn);gk.push(new Array(gn-gl%gn+1).join(" "))}gi.replaceSelections(gk)},defaultTab:function(gi){if(gi.somethingSelected()){gi.indentSelection("add")}else{gi.execCommand("insertTab")}},transposeChars:function(gi){cN(gi,function(){var gl=gi.listSelections(),gk=[];for(var gm=0;gm<gl.length;gm++){var go=gl[gm].head,gj=fg(gi.doc,go.line).text;if(gj){if(go.ch==gj.length){go=new W(go.line,go.ch-1)}if(go.ch>0){go=new W(go.line,go.ch+1);gi.replaceRange(gj.charAt(go.ch-1)+gj.charAt(go.ch-2),W(go.line,go.ch-2),go,"+transpose")}else{if(go.line>gi.doc.first){var gn=fg(gi.doc,go.line-1).text;if(gn){gi.replaceRange(gj.charAt(0)+"\n"+gn.charAt(gn.length-1),W(go.line-1,gn.length-1),W(go.line,1),"+transpose")}}}}gk.push(new dZ(go,go))}gi.setSelections(gk)})},newlineAndIndent:function(gi){cN(gi,function(){var gj=gi.listSelections().length;for(var gl=0;gl<gj;gl++){var gk=gi.listSelections()[gl];gi.replaceRange("\n",gk.anchor,gk.head,"+input");gi.indentLine(gk.from().line+1,null,true);fG(gi)}})},toggleOverwrite:function(gi){gi.toggleOverwrite()}};var fb=H.keyMap={};fb.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"};fb.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"};fb.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Alt-F":"goWordRight","Alt-B":"goWordLeft","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-D":"delWordAfter","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars"};fb.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"]};fb["default"]=b8?fb.macDefault:fb.pcDefault;function du(gj){var gp=gj.split(/-(?!$)/),gj=gp[gp.length-1];var go,gn,gi,gm;for(var gl=0;gl<gp.length-1;gl++){var gk=gp[gl];if(/^(cmd|meta|m)$/i.test(gk)){gm=true}else{if(/^a(lt)?$/i.test(gk)){go=true}else{if(/^(c|ctrl|control)$/i.test(gk)){gn=true}else{if(/^s(hift)$/i.test(gk)){gi=true}else{throw new Error("Unrecognized modifier name: "+gk)}}}}}if(go){gj="Alt-"+gj}if(gn){gj="Ctrl-"+gj}if(gm){gj="Cmd-"+gj}if(gi){gj="Shift-"+gj}return gj}H.normalizeKeyMap=function(gp){var gj={};for(var go in gp){if(gp.hasOwnProperty(go)){var gq=gp[go];if(/^(name|fallthrough|(de|at)tach)$/.test(go)){continue}if(gq=="..."){delete gp[go];continue}var gr=bT(go.split(" "),du);for(var gn=0;gn<gr.length;gn++){var gl,gk;if(gn==gr.length-1){gk=gr.join(" ");gl=gq}else{gk=gr.slice(0,gn+1).join(" ");gl="..."}var gm=gj[gk];if(!gm){gj[gk]=gl}else{if(gm!=gl){throw new Error("Inconsistent bindings for "+gk)}}}delete gp[go]}}for(var gi in gj){gp[gi]=gj[gi]}return gp};var i=H.lookupKey=function(gl,go,gn,gk){go=fY(go);var gm=go.call?go.call(gl,gk):go[gl];if(gm===false){return"nothing"}if(gm==="..."){return"multi"}if(gm!=null&&gn(gm)){return"handled"}if(go.fallthrough){if(Object.prototype.toString.call(go.fallthrough)!="[object Array]"){return i(gl,go.fallthrough,gn,gk)}for(var gj=0;gj<go.fallthrough.length;gj++){var gi=i(gl,go.fallthrough[gj],gn,gk);if(gi){return gi}}}};var eD=H.isModifierKey=function(gj){var gi=typeof gj=="string"?gj:fh[gj.keyCode];return gi=="Ctrl"||gi=="Alt"||gi=="Shift"||gi=="Mod"};var fs=H.keyName=function(gj,gl){if(d4&&gj.keyCode==34&&gj["char"]){return false}var gk=fh[gj.keyCode],gi=gk;if(gi==null||gj.altGraphKey){return false}if(gj.altKey&&gk!="Alt"){gi="Alt-"+gi}if((bR?gj.metaKey:gj.ctrlKey)&&gk!="Ctrl"){gi="Ctrl-"+gi}if((bR?gj.ctrlKey:gj.metaKey)&&gk!="Cmd"){gi="Cmd-"+gi}if(!gl&&gj.shiftKey&&gk!="Shift"){gi="Shift-"+gi}return gi};function fY(gi){return typeof gi=="string"?fb[gi]:gi}H.fromTextArea=function(gp,gq){gq=gq?aN(gq):{};gq.value=gp.value;if(!gq.tabindex&&gp.tabIndex){gq.tabindex=gp.tabIndex}if(!gq.placeholder&&gp.placeholder){gq.placeholder=gp.placeholder}if(gq.autofocus==null){var gi=dP();gq.autofocus=gi==gp||gp.getAttribute("autofocus")!=null&&gi==document.body}function gm(){gp.value=go.getValue()}if(gp.form){bY(gp.form,"submit",gm);if(!gq.leaveSubmitMethodAlone){var gj=gp.form,gn=gj.submit;try{var gl=gj.submit=function(){gm();gj.submit=gn;gj.submit();gj.submit=gl}}catch(gk){}}}gq.finishInit=function(gr){gr.save=gm;gr.getTextArea=function(){return gp};gr.toTextArea=function(){gr.toTextArea=isNaN;gm();gp.parentNode.removeChild(gr.getWrapperElement());gp.style.display="";if(gp.form){ee(gp.form,"submit",gm);if(typeof gp.form.submit=="function"){gp.form.submit=gn}}}};gp.style.display="none";var go=H(function(gr){gp.parentNode.insertBefore(gr,gp.nextSibling)},gq);return go};var eU=H.StringStream=function(gi,gj){this.pos=this.start=0;this.string=gi;this.tabSize=gj||8;this.lastColumnPos=this.lastColumnValue=0;this.lineStart=0};eU.prototype={eol:function(){return this.pos>=this.string.length},sol:function(){return this.pos==this.lineStart},peek:function(){return this.string.charAt(this.pos)||undefined},next:function(){if(this.pos<this.string.length){return this.string.charAt(this.pos++)}},eat:function(gi){var gk=this.string.charAt(this.pos);if(typeof gi=="string"){var gj=gk==gi}else{var gj=gk&&(gi.test?gi.test(gk):gi(gk))}if(gj){++this.pos;return gk}},eatWhile:function(gi){var gj=this.pos;while(this.eat(gi)){}return this.pos>gj},eatSpace:function(){var gi=this.pos;while(/[\s\u00a0]/.test(this.string.charAt(this.pos))){++this.pos}return this.pos>gi},skipToEnd:function(){this.pos=this.string.length},skipTo:function(gi){var gj=this.string.indexOf(gi,this.pos);if(gj>-1){this.pos=gj;return true}},backUp:function(gi){this.pos-=gi},column:function(){if(this.lastColumnPos<this.start){this.lastColumnValue=bU(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue);this.lastColumnPos=this.start}return this.lastColumnValue-(this.lineStart?bU(this.string,this.lineStart,this.tabSize):0)},indentation:function(){return bU(this.string,null,this.tabSize)-(this.lineStart?bU(this.string,this.lineStart,this.tabSize):0)},match:function(gm,gj,gi){if(typeof gm=="string"){var gn=function(go){return gi?go.toLowerCase():go};var gl=this.string.substr(this.pos,gm.length);if(gn(gl)==gn(gm)){if(gj!==false){this.pos+=gm.length}return true}}else{var gk=this.string.slice(this.pos).match(gm);if(gk&&gk.index>0){return null}if(gk&&gj!==false){this.pos+=gk[0].length}return gk}},current:function(){return this.string.slice(this.start,this.pos)},hideFirstChars:function(gj,gi){this.lineStart+=gj;try{return gi()}finally{this.lineStart-=gj}}};var a6=0;var P=H.TextMarker=function(gj,gi){this.lines=[];this.type=gi;this.doc=gj;this.id=++a6};bz(P);P.prototype.clear=function(){if(this.explicitlyCleared){return}var gp=this.doc.cm,gj=gp&&!gp.curOp;if(gj){cJ(gp)}if(fj(this,"clear")){var gq=this.find();if(gq){ae(this,"clear",gq.from,gq.to)}}var gk=null,gn=null;for(var gl=0;gl<this.lines.length;++gl){var gr=this.lines[gl];var go=fa(gr.markedSpans,this);if(gp&&!this.collapsed){R(gp,bO(gr),"text")}else{if(gp){if(go.to!=null){gn=bO(gr)}if(go.from!=null){gk=bO(gr)}}}gr.markedSpans=eI(gr.markedSpans,go);if(go.from==null&&this.collapsed&&!fx(this.doc,gr)&&gp){f6(gr,aY(gp.display))}}if(gp&&this.collapsed&&!gp.options.lineWrapping){for(var gl=0;gl<this.lines.length;++gl){var gi=y(this.lines[gl]),gm=eo(gi);if(gm>gp.display.maxLineLength){gp.display.maxLine=gi;gp.display.maxLineLength=gm;gp.display.maxLineChanged=true}}}if(gk!=null&&gp&&this.collapsed){ah(gp,gk,gn+1)}this.lines.length=0;this.explicitlyCleared=true;if(this.atomic&&this.doc.cantEdit){this.doc.cantEdit=false;if(gp){ez(gp.doc)}}if(gp){ae(gp,"markerCleared",gp,this)}if(gj){am(gp)}if(this.parent){this.parent.clear()}};P.prototype.find=function(gl,gj){if(gl==null&&this.type=="bookmark"){gl=1}var go,gn;for(var gk=0;gk<this.lines.length;++gk){var gi=this.lines[gk];var gm=fa(gi.markedSpans,this);if(gm.from!=null){go=W(gj?gi:bO(gi),gm.from);if(gl==-1){return go}}if(gm.to!=null){gn=W(gj?gi:bO(gi),gm.to);if(gl==1){return gn}}}return go&&{from:go,to:gn}};P.prototype.changed=function(){var gk=this.find(-1,true),gj=this,gi=this.doc.cm;if(!gk||!gi){return}cN(gi,function(){var gm=gk.line,gn=bO(gk.line);var gl=fc(gi,gn);if(gl){au(gl);gi.curOp.selectionChanged=gi.curOp.forceUpdate=true}gi.curOp.updateMaxLine=true;if(!fx(gj.doc,gm)&&gj.height!=null){var gp=gj.height;gj.height=null;var go=cZ(gj)-gp;if(go){f6(gm,gm.height+go)}}})};P.prototype.attachLine=function(gi){if(!this.lines.length&&this.doc.cm){var gj=this.doc.cm.curOp;if(!gj.maybeHiddenMarkers||di(gj.maybeHiddenMarkers,this)==-1){(gj.maybeUnhiddenMarkers||(gj.maybeUnhiddenMarkers=[])).push(this)}}this.lines.push(gi)};P.prototype.detachLine=function(gi){this.lines.splice(di(this.lines,gi),1);if(!this.lines.length&&this.doc.cm){var gj=this.doc.cm.curOp;(gj.maybeHiddenMarkers||(gj.maybeHiddenMarkers=[])).push(this)}};var a6=0;function eG(gq,go,gp,gs,gm){if(gs&&gs.shared){return O(gq,go,gp,gs,gm)}if(gq.cm&&!gq.cm.curOp){return c3(gq.cm,eG)(gq,go,gp,gs,gm)}var gl=new P(gq,gm),gr=cg(go,gp);if(gs){aN(gs,gl,false)}if(gr>0||gr==0&&gl.clearWhenEmpty!==false){return gl}if(gl.replacedWith){gl.collapsed=true;gl.widgetNode=f3("span",[gl.replacedWith],"CodeMirror-widget");if(!gs.handleMouseEvents){gl.widgetNode.setAttribute("cm-ignore-events","true")}if(gs.insertLeft){gl.widgetNode.insertLeft=true}}if(gl.collapsed){if(z(gq,go.line,go,gp,gl)||go.line!=gp.line&&z(gq,gp.line,go,gp,gl)){throw new Error("Inserting collapsed marker partially overlapping an existing one")}a8=true}if(gl.addToHistory){fN(gq,{from:go,to:gp,origin:"markText"},gq.sel,NaN)}var gj=go.line,gn=gq.cm,gi;gq.iter(gj,gp.line+1,function(gt){if(gn&&gl.collapsed&&!gn.options.lineWrapping&&y(gt)==gn.display.maxLine){gi=true}if(gl.collapsed&&gj!=go.line){f6(gt,0)}ce(gt,new ej(gl,gj==go.line?go.ch:null,gj==gp.line?gp.ch:null));++gj});if(gl.collapsed){gq.iter(go.line,gp.line+1,function(gt){if(fx(gq,gt)){f6(gt,0)}})}if(gl.clearOnEnter){bY(gl,"beforeCursorEnter",function(){gl.clear()})}if(gl.readOnly){gd=true;if(gq.history.done.length||gq.history.undone.length){gq.clearHistory()}}if(gl.collapsed){gl.id=++a6;gl.atomic=true}if(gn){if(gi){gn.curOp.updateMaxLine=true}if(gl.collapsed){ah(gn,go.line,gp.line+1)}else{if(gl.className||gl.title||gl.startStyle||gl.endStyle||gl.css){for(var gk=go.line;gk<=gp.line;gk++){R(gn,gk,"text")}}}if(gl.atomic){ez(gn.doc)}ae(gn,"markerAdded",gn,gl)}return gl}var x=H.SharedTextMarker=function(gk,gj){this.markers=gk;this.primary=gj;for(var gi=0;gi<gk.length;++gi){gk[gi].parent=this}};bz(x);x.prototype.clear=function(){if(this.explicitlyCleared){return}this.explicitlyCleared=true;for(var gi=0;gi<this.markers.length;++gi){this.markers[gi].clear()}ae(this,"clear")};x.prototype.find=function(gj,gi){return this.primary.find(gj,gi)};function O(gm,gp,go,gi,gk){gi=aN(gi);gi.shared=false;var gn=[eG(gm,gp,go,gi,gk)],gj=gn[0];var gl=gi.widgetNode;d8(gm,function(gr){if(gl){gi.widgetNode=gl.cloneNode(true)}gn.push(eG(gr,fK(gr,gp),fK(gr,go),gi,gk));for(var gq=0;gq<gr.linked.length;++gq){if(gr.linked[gq].isParent){return}}gj=fH(gn)});return new x(gn,gj)}function eQ(gi){return gi.findMarks(W(gi.first,0),gi.clipPos(W(gi.lastLine())),function(gj){return gj.parent})}function dG(gn,go){for(var gl=0;gl<go.length;gl++){var gj=go[gl],gp=gj.find();var gi=gn.clipPos(gp.from),gm=gn.clipPos(gp.to);if(cg(gi,gm)){var gk=eG(gn,gi,gm,gj.primary,gj.primary.type);gj.markers.push(gk);gk.parent=gj}}}function ep(gl){for(var gk=0;gk<gl.length;gk++){var gi=gl[gk],gn=[gi.primary.doc];d8(gi.primary.doc,function(go){gn.push(go)});for(var gj=0;gj<gi.markers.length;gj++){var gm=gi.markers[gj];if(di(gn,gm.doc)==-1){gm.parent=null;gi.markers.splice(gj--,1)}}}}function ej(gi,gk,gj){this.marker=gi;this.from=gk;this.to=gj}function fa(gk,gi){if(gk){for(var gj=0;gj<gk.length;++gj){var gl=gk[gj];if(gl.marker==gi){return gl}}}}function eI(gj,gk){for(var gl,gi=0;gi<gj.length;++gi){if(gj[gi]!=gk){(gl||(gl=[])).push(gj[gi])}}return gl}function ce(gi,gj){gi.markedSpans=gi.markedSpans?gi.markedSpans.concat([gj]):[gj];gj.marker.attachLine(gi)}function aQ(gj,gk,go){if(gj){for(var gm=0,gp;gm<gj.length;++gm){var gq=gj[gm],gn=gq.marker;var gi=gq.from==null||(gn.inclusiveLeft?gq.from<=gk:gq.from<gk);if(gi||gq.from==gk&&gn.type=="bookmark"&&(!go||!gq.marker.insertLeft)){var gl=gq.to==null||(gn.inclusiveRight?gq.to>=gk:gq.to>gk);(gp||(gp=[])).push(new ej(gn,gq.from,gl?null:gq.to))}}}return gp}function aB(gj,gl,go){if(gj){for(var gm=0,gp;gm<gj.length;++gm){var gq=gj[gm],gn=gq.marker;var gk=gq.to==null||(gn.inclusiveRight?gq.to>=gl:gq.to>gl);if(gk||gq.from==gl&&gn.type=="bookmark"&&(!go||gq.marker.insertLeft)){var gi=gq.from==null||(gn.inclusiveLeft?gq.from<=gl:gq.from<gl);(gp||(gp=[])).push(new ej(gn,gi?null:gq.from-gl,gq.to==null?null:gq.to-gl))}}}return gp}function el(gu,gr){if(gr.full){return null}var gq=ca(gu,gr.from.line)&&fg(gu,gr.from.line).markedSpans;var gx=ca(gu,gr.to.line)&&fg(gu,gr.to.line).markedSpans;if(!gq&&!gx){return null}var gj=gr.from.ch,gm=gr.to.ch,gp=cg(gr.from,gr.to)==0;var go=aQ(gq,gj,gp);var gw=aB(gx,gm,gp);var gv=gr.text.length==1,gk=fH(gr.text).length+(gv?gj:0);if(go){for(var gl=0;gl<go.length;++gl){var gt=go[gl];if(gt.to==null){var gy=fa(gw,gt.marker);if(!gy){gt.to=gj}else{if(gv){gt.to=gy.to==null?null:gy.to+gk}}}}}if(gw){for(var gl=0;gl<gw.length;++gl){var gt=gw[gl];if(gt.to!=null){gt.to+=gk}if(gt.from==null){var gy=fa(go,gt.marker);if(!gy){gt.from=gk;if(gv){(go||(go=[])).push(gt)}}}else{gt.from+=gk;if(gv){(go||(go=[])).push(gt)}}}}if(go){go=q(go)}if(gw&&gw!=go){gw=q(gw)}var gn=[go];if(!gv){var gs=gr.text.length-2,gi;if(gs>0&&go){for(var gl=0;gl<go.length;++gl){if(go[gl].to==null){(gi||(gi=[])).push(new ej(go[gl].marker,null,null))}}}for(var gl=0;gl<gs;++gl){gn.push(gi)}gn.push(gw)}return gn}function q(gj){for(var gi=0;gi<gj.length;++gi){var gk=gj[gi];if(gk.from!=null&&gk.from==gk.to&&gk.marker.clearWhenEmpty!==false){gj.splice(gi--,1)}}if(!gj.length){return null}return gj}function ea(gq,go){var gi=b5(gq,go);var gr=el(gq,go);if(!gi){return gr}if(!gr){return gi}for(var gl=0;gl<gi.length;++gl){var gm=gi[gl],gn=gr[gl];if(gm&&gn){spans:for(var gk=0;gk<gn.length;++gk){var gp=gn[gk];for(var gj=0;gj<gm.length;++gj){if(gm[gj].marker==gp.marker){continue spans}}gm.push(gp)}}else{if(gn){gi[gl]=gn}}}return gi}function cI(gu,gs,gt){var gm=null;gu.iter(gs.line,gt.line+1,function(gv){if(gv.markedSpans){for(var gw=0;gw<gv.markedSpans.length;++gw){var gx=gv.markedSpans[gw].marker;if(gx.readOnly&&(!gm||di(gm,gx)==-1)){(gm||(gm=[])).push(gx)}}}});if(!gm){return null}var gn=[{from:gs,to:gt}];for(var go=0;go<gm.length;++go){var gp=gm[go],gk=gp.find(0);for(var gl=0;gl<gn.length;++gl){var gj=gn[gl];if(cg(gj.to,gk.from)<0||cg(gj.from,gk.to)>0){continue}var gr=[gl,1],gi=cg(gj.from,gk.from),gq=cg(gj.to,gk.to);if(gi<0||!gp.inclusiveLeft&&!gi){gr.push({from:gj.from,to:gk.from})}if(gq>0||!gp.inclusiveRight&&!gq){gr.push({from:gk.to,to:gj.to})}gn.splice.apply(gn,gr);gl+=gr.length-1}}return gn}function f9(gi){var gk=gi.markedSpans;if(!gk){return}for(var gj=0;gj<gk.length;++gj){gk[gj].marker.detachLine(gi)}gi.markedSpans=null}function c4(gi,gk){if(!gk){return}for(var gj=0;gj<gk.length;++gj){gk[gj].marker.attachLine(gi)}gi.markedSpans=gk}function v(gi){return gi.inclusiveLeft?-1:0}function bX(gi){return gi.inclusiveRight?1:0}function dR(gl,gj){var gn=gl.lines.length-gj.lines.length;if(gn!=0){return gn}var gk=gl.find(),go=gj.find();var gi=cg(gk.from,go.from)||v(gl)-v(gj);if(gi){return -gi}var gm=cg(gk.to,go.to)||bX(gl)-bX(gj);if(gm){return gm}return gj.id-gl.id}function a7(gj,gn){var gi=a8&&gj.markedSpans,gm;if(gi){for(var gl,gk=0;gk<gi.length;++gk){gl=gi[gk];if(gl.marker.collapsed&&(gn?gl.from:gl.to)==null&&(!gm||dR(gm,gl.marker)<0)){gm=gl.marker}}}return gm}function eP(gi){return a7(gi,true)}function ex(gi){return a7(gi,false)}function z(gq,gk,go,gp,gm){var gt=fg(gq,gk);var gi=a8&&gt.markedSpans;if(gi){for(var gl=0;gl<gi.length;++gl){var gj=gi[gl];if(!gj.marker.collapsed){continue}var gs=gj.marker.find(0);var gr=cg(gs.from,go)||v(gj.marker)-v(gm);var gn=cg(gs.to,gp)||bX(gj.marker)-bX(gm);if(gr>=0&&gn<=0||gr<=0&&gn>=0){continue}if(gr<=0&&(cg(gs.to,go)>0||(gj.marker.inclusiveRight&&gm.inclusiveLeft))||gr>=0&&(cg(gs.from,gp)<0||(gj.marker.inclusiveLeft&&gm.inclusiveRight))){return true}}}}function y(gj){var gi;while(gi=eP(gj)){gj=gi.find(-1,true).line}return gj}function g(gk){var gi,gj;while(gi=ex(gk)){gk=gi.find(1,true).line;(gj||(gj=[])).push(gk)}return gj}function aW(gl,gj){var gi=fg(gl,gj),gk=y(gi);if(gi==gk){return gj}return bO(gk)}function d3(gl,gk){if(gk>gl.lastLine()){return gk}var gj=fg(gl,gk),gi;if(!fx(gl,gj)){return gk}while(gi=ex(gj)){gj=gi.find(1,true).line}return bO(gj)+1}function fx(gm,gj){var gi=a8&&gj.markedSpans;if(gi){for(var gl,gk=0;gk<gi.length;++gk){gl=gi[gk];if(!gl.marker.collapsed){continue}if(gl.from==null){return true}if(gl.marker.widgetNode){continue}if(gl.from==0&&gl.marker.inclusiveLeft&&T(gm,gj,gl)){return true}}}}function T(gn,gj,gl){if(gl.to==null){var gi=gl.marker.find(1,true);return T(gn,gi.line,fa(gi.line.markedSpans,gl.marker))}if(gl.marker.inclusiveRight&&gl.to==gj.text.length){return true}for(var gm,gk=0;gk<gj.markedSpans.length;++gk){gm=gj.markedSpans[gk];if(gm.marker.collapsed&&!gm.marker.widgetNode&&gm.from==gl.to&&(gm.to==null||gm.to!=gl.from)&&(gm.marker.inclusiveLeft||gl.marker.inclusiveRight)&&T(gn,gj,gm)){return true}}}var dC=H.LineWidget=function(gl,gk,gi){if(gi){for(var gj in gi){if(gi.hasOwnProperty(gj)){this[gj]=gi[gj]}}}this.doc=gl;this.node=gk};bz(dC);function d0(gi,gj,gk){if(bN(gj)<((gi.curOp&&gi.curOp.scrollTop)||gi.doc.scrollTop)){cM(gi,null,gk)}}dC.prototype.clear=function(){var gj=this.doc.cm,gl=this.line.widgets,gk=this.line,gn=bO(gk);if(gn==null||!gl){return}for(var gm=0;gm<gl.length;++gm){if(gl[gm]==this){gl.splice(gm--,1)}}if(!gl.length){gk.widgets=null}var gi=cZ(this);f6(gk,Math.max(0,gk.height-gi));if(gj){cN(gj,function(){d0(gj,gk,-gi);R(gj,gn,"widget")})}};dC.prototype.changed=function(){var gj=this.height,gi=this.doc.cm,gk=this.line;this.height=null;var gl=cZ(this)-gj;if(!gl){return}f6(gk,gk.height+gl);if(gi){cN(gi,function(){gi.curOp.forceUpdate=true;d0(gi,gk,gl)})}};function cZ(gk){if(gk.height!=null){return gk.height}var gi=gk.doc.cm;if(!gi){return 0}if(!gb(document.body,gk.node)){var gj="position: relative;";if(gk.coverGutter){gj+="margin-left: -"+gi.display.gutters.offsetWidth+"px;"}if(gk.noHScroll){gj+="width: "+gi.display.wrapper.clientWidth+"px;"}bS(gi.display.measure,f3("div",[gk.node],null,gj))}return gk.height=gk.node.offsetHeight}function bI(gn,gm,gk,gj){var gl=new dC(gn,gk,gj);var gi=gn.cm;if(gi&&gl.noHScroll){gi.display.alignWidgets=true}eA(gn,gm,"widget",function(gp){var gq=gp.widgets||(gp.widgets=[]);if(gl.insertAt==null){gq.push(gl)}else{gq.splice(Math.min(gq.length-1,Math.max(0,gl.insertAt)),0,gl)}gl.line=gp;if(gi&&!fx(gn,gp)){var go=bN(gp)<gn.scrollTop;f6(gp,gp.height+cZ(gl));if(go){cM(gi,null,gl.height)}gi.curOp.forceUpdate=true}return true});return gl}var f7=H.Line=function(gk,gj,gi){this.text=gk;c4(this,gj);this.height=gi?gi(this):1};bz(f7);f7.prototype.lineNo=function(){return bO(this)};function en(gj,gm,gk,gi){gj.text=gm;if(gj.stateAfter){gj.stateAfter=null}if(gj.styles){gj.styles=null}if(gj.order!=null){gj.order=null}f9(gj);c4(gj,gk);var gl=gi?gi(gj):1;if(gl!=gj.height){f6(gj,gl)}}function bC(gi){gi.parent=null;f9(gi)}function dj(gk,gj){if(gk){for(;;){var gi=gk.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!gi){break}gk=gk.slice(0,gi.index)+gk.slice(gi.index+gi[0].length);var gl=gi[1]?"bgClass":"textClass";if(gj[gl]==null){gj[gl]=gi[2]}else{if(!(new RegExp("(?:^|s)"+gi[2]+"(?:$|s)")).test(gj[gl])){gj[gl]+=" "+gi[2]}}}}return gk}function fr(gk,gj){if(gk.blankLine){return gk.blankLine(gj)}if(!gk.innerMode){return}var gi=H.innerMode(gk,gj);if(gi.mode.blankLine){return gi.mode.blankLine(gi.state)}}function eB(gn,gm,gl,gi){for(var gj=0;gj<10;gj++){if(gi){gi[0]=H.innerMode(gn,gl).mode}var gk=gn.token(gm,gl);if(gm.pos>gm.start){return gk}}throw new Error("Mode "+gn.name+" failed to advance stream.")}function cr(gr,gp,gm,gl){function gi(gu){return{start:gs.start,end:gs.pos,string:gs.current(),type:gk||null,state:gu?b4(gq.mode,gj):gj}}var gq=gr.doc,gn=gq.mode,gk;gp=fK(gq,gp);var gt=fg(gq,gp.line),gj=dD(gr,gp.line,gm);var gs=new eU(gt.text,gr.options.tabSize),go;if(gl){go=[]}while((gl||gs.pos<gp.ch)&&!gs.eol()){gs.start=gs.pos;gk=eB(gn,gs,gj);if(gl){go.push(gi(true))}}return gl?go:gi()}function w(gs,gu,gn,gj,go,gl,gm){var gk=gn.flattenSpans;if(gk==null){gk=gs.options.flattenSpans}var gq=0,gp=null;var gt=new eU(gu,gs.options.tabSize),gi;var gw=gs.options.addModeClass&&[null];if(gu==""){dj(fr(gn,gj),gl)}while(!gt.eol()){if(gt.pos>gs.options.maxHighlightLength){gk=false;if(gm){dy(gs,gu,gj,gt.pos)}gt.pos=gu.length;gi=null}else{gi=dj(eB(gn,gt,gj,gw),gl)}if(gw){var gv=gw[0].name;if(gv){gi="m-"+(gi?gv+" "+gi:gv)}}if(!gk||gp!=gi){while(gq<gt.start){gq=Math.min(gt.start,gq+50000);go(gq,gp)}gp=gi}gt.start=gt.pos}while(gq<gt.pos){var gr=Math.min(gt.pos,gq+50000);go(gr,gp);gq=gr}}function fA(gp,gr,gi,gm){var gq=[gp.state.modeGen],gl={};w(gp,gr.text,gp.doc.mode,gi,function(gs,gt){gq.push(gs,gt)},gl,gm);for(var gj=0;gj<gp.state.overlays.length;++gj){var gn=gp.state.overlays[gj],go=1,gk=0;w(gp,gr.text,gn.mode,true,function(gs,gu){var gw=go;while(gk<gs){var gt=gq[go];if(gt>gs){gq.splice(go,1,gs,gq[go+1],gt)}go+=2;gk=Math.min(gs,gt)}if(!gu){return}if(gn.opaque){gq.splice(gw,go-gw,gs,"cm-overlay "+gu);go=gw+2}else{for(;gw<go;gw+=2){var gv=gq[gw+1];gq[gw+1]=(gv?gv+" ":"")+"cm-overlay "+gu}}},gl)}return{styles:gq,classes:gl.bgClass||gl.textClass?gl:null}}function c7(gj,gk,gl){if(!gk.styles||gk.styles[0]!=gj.state.modeGen){var gi=fA(gj,gk,gk.stateAfter=dD(gj,bO(gk)));gk.styles=gi.styles;if(gi.classes){gk.styleClasses=gi.classes}else{if(gk.styleClasses){gk.styleClasses=null}}if(gl===gj.doc.frontier){gj.doc.frontier++}}return gk.styles}function dy(gi,gn,gk,gj){var gm=gi.doc.mode;var gl=new eU(gn,gi.options.tabSize);gl.start=gl.pos=gj||0;if(gn==""){fr(gm,gk)}while(!gl.eol()&&gl.pos<=gi.options.maxHighlightLength){eB(gm,gl,gk);gl.start=gl.pos}}var dX={},b2={};function eX(gk,gj){if(!gk||/^\s*$/.test(gk)){return null}var gi=gj.addModeClass?b2:dX;return gi[gk]||(gi[gk]=gk.replace(/\S+/g,"cm-$&"))}function eS(gj,gn){var go=f3("span",null,null,c1?"padding-right: .1px":null);var gl={pre:f3("pre",[go]),content:go,col:0,pos:0,cm:gj,splitSpaces:(dL||c1)&&gj.getOption("lineWrapping")};gn.measure={};for(var gm=0;gm<=(gn.rest?gn.rest.length:0);gm++){var gk=gm?gn.rest[gm-1]:gn.line,gi;gl.pos=0;gl.addToken=t;if(bP(gj.display.measure)&&(gi=a(gk))){gl.addToken=U(gl.addToken,gi)}gl.map=[];var gp=gn!=gj.display.externalMeasured&&bO(gk);bp(gk,gl,c7(gj,gk,gp));if(gk.styleClasses){if(gk.styleClasses.bgClass){gl.bgClass=fT(gk.styleClasses.bgClass,gl.bgClass||"")}if(gk.styleClasses.textClass){gl.textClass=fT(gk.styleClasses.textClass,gl.textClass||"")}}if(gl.map.length==0){gl.map.push(0,0,gl.content.appendChild(bo(gj.display.measure)))}if(gm==0){gn.measure.map=gl.map;gn.measure.cache={}}else{(gn.measure.maps||(gn.measure.maps=[])).push(gl.map);(gn.measure.caches||(gn.measure.caches=[])).push({})}}if(c1&&/\bcm-tab\b/.test(gl.content.lastChild.className)){gl.content.className="cm-tab-wrap-hack"}aE(gj,"renderLine",gj,gn.line,gl.pre);if(gl.pre.className){gl.textClass=fT(gl.pre.className,gl.textClass||"")}return gl}function fd(gj){var gi=f3("span","\u2022","cm-invalidchar");gi.title="\\u"+gj.charCodeAt(0).toString(16);gi.setAttribute("aria-label",gi.title);return gi}function t(gt,go,gy,gv,gr,gA,gn){if(!go){return}var gx=gt.splitSpaces?go.replace(/ {3,}/g,cG):go;var gi=gt.cm.state.specialChars,gj=false;if(!gi.test(go)){gt.col+=go.length;var gw=document.createTextNode(gx);gt.map.push(gt.pos,gt.pos+go.length,gw);if(dL&&k<9){gj=true}gt.pos+=go.length}else{var gw=document.createDocumentFragment(),gl=0;while(true){gi.lastIndex=gl;var gu=gi.exec(go);var gz=gu?gu.index-gl:go.length-gl;if(gz){var gq=document.createTextNode(gx.slice(gl,gl+gz));if(dL&&k<9){gw.appendChild(f3("span",[gq]))}else{gw.appendChild(gq)}gt.map.push(gt.pos,gt.pos+gz,gq);gt.col+=gz;gt.pos+=gz}if(!gu){break}gl+=gz+1;if(gu[0]=="\t"){var gs=gt.cm.options.tabSize,gp=gs-gt.col%gs;var gq=gw.appendChild(f3("span",cq(gp),"cm-tab"));gq.setAttribute("role","presentation");gq.setAttribute("cm-text","\t");gt.col+=gp}else{var gq=gt.cm.options.specialCharPlaceholder(gu[0]);gq.setAttribute("cm-text",gu[0]);if(dL&&k<9){gw.appendChild(f3("span",[gq]))}else{gw.appendChild(gq)}gt.col+=1}gt.map.push(gt.pos,gt.pos+1,gq);gt.pos++}}if(gy||gv||gr||gj||gn){var gk=gy||"";if(gv){gk+=gv}if(gr){gk+=gr}var gm=f3("span",[gw],gk,gn);if(gA){gm.title=gA}return gt.content.appendChild(gm)}gt.content.appendChild(gw)}function cG(gi){var gj=" ";for(var gk=0;gk<gi.length-2;++gk){gj+=gk%2?" ":"\u00a0"}gj+=" ";return gj}function U(gj,gi){return function(gr,gt,gk,go,gu,gs,gq){gk=gk?gk+" cm-force-border":"cm-force-border";var gl=gr.pos,gn=gl+gt.length;for(;;){for(var gp=0;gp<gi.length;gp++){var gm=gi[gp];if(gm.to>gl&&gm.from<=gl){break}}if(gm.to>=gn){return gj(gr,gt,gk,go,gu,gs,gq)}gj(gr,gt.slice(0,gm.to-gl),gk,go,null,gs,gq);go=null;gt=gt.slice(gm.to-gl);gl=gm.to}}}function ac(gj,gl,gi,gk){var gm=!gk&&gi.widgetNode;if(gm){gj.map.push(gj.pos,gj.pos+gl,gm)}if(!gk&&gj.cm.display.input.needsContentAttribute){if(!gm){gm=gj.content.appendChild(document.createElement("span"))}gm.setAttribute("cm-marker",gi.id)}if(gm){gj.cm.display.input.setUneditable(gm);gj.content.appendChild(gm)}gj.pos+=gl}function bp(gr,gy,gq){var gn=gr.markedSpans,gp=gr.text,gw=0;if(!gn){for(var gB=1;gB<gq.length;gB+=2){gy.addToken(gy,gp.slice(gw,gw=gq[gB]),eX(gq[gB+1],gy.cm.options))}return}var gC=gp.length,gm=0,gB=1,gu="",gD,gs;var gF=0,gi,gE,gv,gG,gk;for(;;){if(gF==gm){gi=gE=gv=gG=gs="";gk=null;gF=Infinity;var go=[];for(var gz=0;gz<gn.length;++gz){var gA=gn[gz],gx=gA.marker;if(gx.type=="bookmark"&&gA.from==gm&&gx.widgetNode){go.push(gx)}else{if(gA.from<=gm&&(gA.to==null||gA.to>gm||gx.collapsed&&gA.to==gm&&gA.from==gm)){if(gA.to!=null&&gA.to!=gm&&gF>gA.to){gF=gA.to;gE=""}if(gx.className){gi+=" "+gx.className}if(gx.css){gs=gx.css}if(gx.startStyle&&gA.from==gm){gv+=" "+gx.startStyle}if(gx.endStyle&&gA.to==gF){gE+=" "+gx.endStyle}if(gx.title&&!gG){gG=gx.title}if(gx.collapsed&&(!gk||dR(gk.marker,gx)<0)){gk=gA}}else{if(gA.from>gm&&gF>gA.from){gF=gA.from}}}}if(gk&&(gk.from||0)==gm){ac(gy,(gk.to==null?gC+1:gk.to)-gm,gk.marker,gk.from==null);if(gk.to==null){return}if(gk.to==gm){gk=false}}if(!gk&&go.length){for(var gz=0;gz<go.length;++gz){ac(gy,0,go[gz])}}}if(gm>=gC){break}var gt=Math.min(gC,gF);while(true){if(gu){var gj=gm+gu.length;if(!gk){var gl=gj>gt?gu.slice(0,gt-gm):gu;gy.addToken(gy,gl,gD?gD+gi:gi,gv,gm+gl.length==gF?gE:"",gG,gs)}if(gj>=gt){gu=gu.slice(gt-gm);gm=gt;break}gm=gj;gv=""}gu=gp.slice(gw,gw=gq[gB++]);gD=eX(gq[gB++],gy.cm.options)}}}function dT(gi,gj){return gj.from.ch==0&&gj.to.ch==0&&fH(gj.text)==""&&(!gi.cm||gi.cm.options.wholeLineUpdateBefore)}function fz(gv,gq,gj,gm){function gw(gy){return gj?gj[gy]:null}function gk(gy,gA,gz){en(gy,gA,gz,gm);ae(gy,"change",gy,gq)}function gi(gB,gz){for(var gA=gB,gy=[];gA<gz;++gA){gy.push(new f7(gx[gA],gw(gA),gm))}return gy}var gu=gq.from,gt=gq.to,gx=gq.text;var gr=fg(gv,gu.line),gs=fg(gv,gt.line);var gp=fH(gx),gl=gw(gx.length-1),go=gt.line-gu.line;if(gq.full){gv.insert(0,gi(0,gx.length));gv.remove(gx.length,gv.size-gx.length)}else{if(dT(gv,gq)){var gn=gi(0,gx.length-1);gk(gs,gs.text,gl);if(go){gv.remove(gu.line,go)}if(gn.length){gv.insert(gu.line,gn)}}else{if(gr==gs){if(gx.length==1){gk(gr,gr.text.slice(0,gu.ch)+gp+gr.text.slice(gt.ch),gl)}else{var gn=gi(1,gx.length-1);gn.push(new f7(gp+gr.text.slice(gt.ch),gl,gm));gk(gr,gr.text.slice(0,gu.ch)+gx[0],gw(0));gv.insert(gu.line+1,gn)}}else{if(gx.length==1){gk(gr,gr.text.slice(0,gu.ch)+gx[0]+gs.text.slice(gt.ch),gw(0));gv.remove(gu.line+1,go)}else{gk(gr,gr.text.slice(0,gu.ch)+gx[0],gw(0));gk(gs,gp+gs.text.slice(gt.ch),gl);var gn=gi(1,gx.length-1);if(go>1){gv.remove(gu.line+1,go-1)}gv.insert(gu.line+1,gn)}}}}ae(gv,"change",gv,gq)}function e0(gj){this.lines=gj;this.parent=null;for(var gk=0,gi=0;gk<gj.length;++gk){gj[gk].parent=this;gi+=gj[gk].height}this.height=gi}e0.prototype={chunkSize:function(){return this.lines.length},removeInner:function(gi,gm){for(var gk=gi,gl=gi+gm;gk<gl;++gk){var gj=this.lines[gk];this.height-=gj.height;bC(gj);ae(gj,"delete")}this.lines.splice(gi,gm)},collapse:function(gi){gi.push.apply(gi,this.lines)},insertInner:function(gj,gk,gi){this.height+=gi;this.lines=this.lines.slice(0,gj).concat(gk).concat(this.lines.slice(gj));for(var gl=0;gl<gk.length;++gl){gk[gl].parent=this}},iterN:function(gi,gl,gk){for(var gj=gi+gl;gi<gj;++gi){if(gk(this.lines[gi])){return true}}}};function fy(gl){this.children=gl;var gk=0,gi=0;for(var gj=0;gj<gl.length;++gj){var gm=gl[gj];gk+=gm.chunkSize();gi+=gm.height;gm.parent=this}this.size=gk;this.height=gi;this.parent=null}fy.prototype={chunkSize:function(){return this.size},removeInner:function(gi,gp){this.size-=gp;for(var gk=0;gk<this.children.length;++gk){var go=this.children[gk],gm=go.chunkSize();if(gi<gm){var gl=Math.min(gp,gm-gi),gn=go.height;go.removeInner(gi,gl);this.height-=gn-go.height;if(gm==gl){this.children.splice(gk--,1);go.parent=null}if((gp-=gl)==0){break}gi=0}else{gi-=gm}}if(this.size-gp<25&&(this.children.length>1||!(this.children[0] instanceof e0))){var gj=[];this.collapse(gj);this.children=[new e0(gj)];this.children[0].parent=this}},collapse:function(gi){for(var gj=0;gj<this.children.length;++gj){this.children[gj].collapse(gi)}},insertInner:function(gj,gk,gi){this.size+=gk.length;this.height+=gi;for(var gn=0;gn<this.children.length;++gn){var gp=this.children[gn],go=gp.chunkSize();if(gj<=go){gp.insertInner(gj,gk,gi);if(gp.lines&&gp.lines.length>50){while(gp.lines.length>50){var gm=gp.lines.splice(gp.lines.length-25,25);var gl=new e0(gm);gp.height-=gl.height;this.children.splice(gn+1,0,gl);gl.parent=this}this.maybeSpill()}break}gj-=go}},maybeSpill:function(){if(this.children.length<=10){return}var gl=this;do{var gj=gl.children.splice(gl.children.length-5,5);var gk=new fy(gj);if(!gl.parent){var gm=new fy(gl.children);gm.parent=gl;gl.children=[gm,gk];gl=gm}else{gl.size-=gk.size;gl.height-=gk.height;var gi=di(gl.parent.children,gl);gl.parent.children.splice(gi+1,0,gk)}gk.parent=gl.parent}while(gl.children.length>10);gl.parent.maybeSpill()},iterN:function(gi,go,gn){for(var gj=0;gj<this.children.length;++gj){var gm=this.children[gj],gl=gm.chunkSize();if(gi<gl){var gk=Math.min(go,gl-gi);if(gm.iterN(gi,gk,gn)){return true}if((go-=gk)==0){break}gi=0}else{gi-=gl}}}};var cs=0;var at=H.Doc=function(gk,gj,gi){if(!(this instanceof at)){return new at(gk,gj,gi)}if(gi==null){gi=0}fy.call(this,[new e0([new f7("",null)])]);this.first=gi;this.scrollTop=this.scrollLeft=0;this.cantEdit=false;this.cleanGeneration=1;this.frontier=gi;var gl=W(gi,0);this.sel=eT(gl);this.history=new fU(null);this.id=++cs;this.modeOption=gj;if(typeof gk=="string"){gk=a1(gk)}fz(this,{from:gl,to:gl,text:gk});bV(this,eT(gl),Z)};at.prototype=cl(fy.prototype,{constructor:at,iter:function(gk,gj,gi){if(gi){this.iterN(gk-this.first,gj-gk,gi)}else{this.iterN(this.first,this.first+this.size,gk)}},insert:function(gj,gk){var gi=0;for(var gl=0;gl<gk.length;++gl){gi+=gk[gl].height}this.insertInner(gj-this.first,gk,gi)},remove:function(gi,gj){this.removeInner(gi-this.first,gj)},getValue:function(gj){var gi=a3(this,this.first,this.first+this.size);if(gj===false){return gi}return gi.join(gj||"\n")},setValue:cE(function(gj){var gk=W(this.first,0),gi=this.first+this.size-1;bh(this,{from:gk,to:W(gi,fg(this,gi).text.length),text:a1(gj),origin:"setValue",full:true},true);bV(this,eT(gk))}),replaceRange:function(gj,gl,gk,gi){gl=fK(this,gl);gk=gk?fK(this,gk):gl;a2(this,gj,gl,gk,gi)},getRange:function(gl,gk,gj){var gi=f5(this,fK(this,gl),fK(this,gk));if(gj===false){return gi}return gi.join(gj||"\n")},getLine:function(gj){var gi=this.getLineHandle(gj);return gi&&gi.text},getLineHandle:function(gi){if(ca(this,gi)){return fg(this,gi)}},getLineNumber:function(gi){return bO(gi)},getLineHandleVisualStart:function(gi){if(typeof gi=="number"){gi=fg(this,gi)}return y(gi)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(gi){return fK(this,gi)},getCursor:function(gk){var gi=this.sel.primary(),gj;if(gk==null||gk=="head"){gj=gi.head}else{if(gk=="anchor"){gj=gi.anchor}else{if(gk=="end"||gk=="to"||gk===false){gj=gi.to()}else{gj=gi.from()}}}return gj},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:cE(function(gi,gk,gj){F(this,fK(this,typeof gi=="number"?W(gi,gk||0):gi),null,gj)}),setSelection:cE(function(gj,gk,gi){F(this,fK(this,gj),fK(this,gk||gj),gi)}),extendSelection:cE(function(gk,gi,gj){fX(this,fK(this,gk),gi&&fK(this,gi),gj)}),extendSelections:cE(function(gj,gi){aw(this,d1(this,gj,gi))}),extendSelectionsBy:cE(function(gj,gi){aw(this,bT(this.sel.ranges,gj),gi)}),setSelections:cE(function(gi,gm,gk){if(!gi.length){return}for(var gl=0,gj=[];gl<gi.length;gl++){gj[gl]=new dZ(fK(this,gi[gl].anchor),fK(this,gi[gl].head))}if(gm==null){gm=Math.min(gi.length-1,this.sel.primIndex)}bV(this,cx(gj,gm),gk)}),addSelection:cE(function(gk,gl,gj){var gi=this.sel.ranges.slice(0);gi.push(new dZ(fK(this,gk),fK(this,gl||gk)));bV(this,cx(gi,gi.length-1),gj)}),getSelection:function(gm){var gj=this.sel.ranges,gi;for(var gk=0;gk<gj.length;gk++){var gl=f5(this,gj[gk].from(),gj[gk].to());gi=gi?gi.concat(gl):gl}if(gm===false){return gi}else{return gi.join(gm||"\n")}},getSelections:function(gm){var gl=[],gi=this.sel.ranges;for(var gj=0;gj<gi.length;gj++){var gk=f5(this,gi[gj].from(),gi[gj].to());if(gm!==false){gk=gk.join(gm||"\n")}gl[gj]=gk}return gl},replaceSelection:function(gk,gm,gi){var gl=[];for(var gj=0;gj<this.sel.ranges.length;gj++){gl[gj]=gk}this.replaceSelections(gl,gm,gi||"+input")},replaceSelections:cE(function(gn,gp,gk){var gm=[],go=this.sel;for(var gl=0;gl<go.ranges.length;gl++){var gj=go.ranges[gl];gm[gl]={from:gj.from(),to:gj.to(),text:a1(gn[gl]),origin:gk}}var gi=gp&&gp!="end"&&af(this,gm,gp);for(var gl=gm.length-1;gl>=0;gl--){bh(this,gm[gl])}if(gi){e8(this,gi)}else{if(this.cm){fG(this.cm)}}}),undo:cE(function(){b9(this,"undo")}),redo:cE(function(){b9(this,"redo")}),undoSelection:cE(function(){b9(this,"undo",true)}),redoSelection:cE(function(){b9(this,"redo",true)}),setExtending:function(gi){this.extend=gi},getExtending:function(){return this.extend},historySize:function(){var gl=this.history,gi=0,gk=0;for(var gj=0;gj<gl.done.length;gj++){if(!gl.done[gj].ranges){++gi}}for(var gj=0;gj<gl.undone.length;gj++){if(!gl.undone[gj].ranges){++gk}}return{undo:gi,redo:gk}},clearHistory:function(){this.history=new fU(this.history.maxGeneration)},markClean:function(){this.cleanGeneration=this.changeGeneration(true)},changeGeneration:function(gi){if(gi){this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null}return this.history.generation},isClean:function(gi){return this.history.generation==(gi||this.cleanGeneration)},getHistory:function(){return{done:bQ(this.history.done),undone:bQ(this.history.undone)}},setHistory:function(gj){var gi=this.history=new fU(this.history.maxGeneration);gi.done=bQ(gj.done.slice(0),null,true);gi.undone=bQ(gj.undone.slice(0),null,true)},addLineClass:cE(function(gk,gj,gi){return eA(this,gk,gj=="gutter"?"gutter":"class",function(gl){var gm=gj=="text"?"textClass":gj=="background"?"bgClass":gj=="gutter"?"gutterClass":"wrapClass";if(!gl[gm]){gl[gm]=gi}else{if(S(gi).test(gl[gm])){return false}else{gl[gm]+=" "+gi}}return true})}),removeLineClass:cE(function(gk,gj,gi){return eA(this,gk,gj=="gutter"?"gutter":"class",function(gm){var gp=gj=="text"?"textClass":gj=="background"?"bgClass":gj=="gutter"?"gutterClass":"wrapClass";var go=gm[gp];if(!go){return false}else{if(gi==null){gm[gp]=null}else{var gn=go.match(S(gi));if(!gn){return false}var gl=gn.index+gn[0].length;gm[gp]=go.slice(0,gn.index)+(!gn.index||gl==go.length?"":" ")+go.slice(gl)||null}}return true})}),addLineWidget:cE(function(gk,gj,gi){return bI(this,gk,gj,gi)}),removeLineWidget:function(gi){gi.clear()},markText:function(gk,gj,gi){return eG(this,fK(this,gk),fK(this,gj),gi,"range")},setBookmark:function(gk,gi){var gj={replacedWith:gi&&(gi.nodeType==null?gi.widget:gi),insertLeft:gi&&gi.insertLeft,clearWhenEmpty:false,shared:gi&&gi.shared,handleMouseEvents:gi&&gi.handleMouseEvents};gk=fK(this,gk);return eG(this,gk,gk,gj,"bookmark")},findMarksAt:function(gm){gm=fK(this,gm);var gl=[],gj=fg(this,gm.line).markedSpans;if(gj){for(var gi=0;gi<gj.length;++gi){var gk=gj[gi];if((gk.from==null||gk.from<=gm.ch)&&(gk.to==null||gk.to>=gm.ch)){gl.push(gk.marker.parent||gk.marker)}}}return gl},findMarks:function(gm,gl,gi){gm=fK(this,gm);gl=fK(this,gl);var gj=[],gk=gm.line;this.iter(gm.line,gl.line+1,function(gn){var gp=gn.markedSpans;if(gp){for(var go=0;go<gp.length;go++){var gq=gp[go];if(!(gk==gm.line&&gm.ch>gq.to||gq.from==null&&gk!=gm.line||gk==gl.line&&gq.from>gl.ch)&&(!gi||gi(gq.marker))){gj.push(gq.marker.parent||gq.marker)}}}++gk});return gj},getAllMarks:function(){var gi=[];this.iter(function(gk){var gj=gk.markedSpans;if(gj){for(var gl=0;gl<gj.length;++gl){if(gj[gl].from!=null){gi.push(gj[gl].marker)}}}});return gi},posFromIndex:function(gj){var gi,gk=this.first;this.iter(function(gl){var gm=gl.text.length+1;if(gm>gj){gi=gj;return true}gj-=gm;++gk});return fK(this,W(gk,gi))},indexFromPos:function(gj){gj=fK(this,gj);var gi=gj.ch;if(gj.line<this.first||gj.ch<0){return 0}this.iter(this.first,gj.line,function(gk){gi+=gk.text.length+1});return gi},copy:function(gi){var gj=new at(a3(this,this.first,this.first+this.size),this.modeOption,this.first);gj.scrollTop=this.scrollTop;gj.scrollLeft=this.scrollLeft;gj.sel=this.sel;gj.extend=false;if(gi){gj.history.undoDepth=this.history.undoDepth;gj.setHistory(this.getHistory())}return gj},linkedDoc:function(gi){if(!gi){gi={}}var gl=this.first,gk=this.first+this.size;if(gi.from!=null&&gi.from>gl){gl=gi.from}if(gi.to!=null&&gi.to<gk){gk=gi.to}var gj=new at(a3(this,gl,gk),gi.mode||this.modeOption,gl);if(gi.sharedHist){gj.history=this.history}(this.linked||(this.linked=[])).push({doc:gj,sharedHist:gi.sharedHist});gj.linked=[{doc:this,isParent:true,sharedHist:gi.sharedHist}];dG(gj,eQ(this));return gj},unlinkDoc:function(gj){if(gj instanceof H){gj=gj.doc}if(this.linked){for(var gk=0;gk<this.linked.length;++gk){var gl=this.linked[gk];if(gl.doc!=gj){continue}this.linked.splice(gk,1);gj.unlinkDoc(this);ep(eQ(this));break}}if(gj.history==this.history){var gi=[gj.id];d8(gj,function(gm){gi.push(gm.id)},true);gj.history=new fU(null);gj.history.done=bQ(this.history.done,gi);gj.history.undone=bQ(this.history.undone,gi)}},iterLinkedDocs:function(gi){d8(this,gi)},getMode:function(){return this.mode},getEditor:function(){return this.cm}});at.prototype.eachLine=at.prototype.iter;var d="iter insert remove copy getEditor constructor".split(" ");for(var bL in at.prototype){if(at.prototype.hasOwnProperty(bL)&&di(d,bL)<0){H.prototype[bL]=(function(gi){return function(){return gi.apply(this.doc,arguments)}})(at.prototype[bL])}}bz(at);function d8(gl,gk,gj){function gi(gr,gp,gn){if(gr.linked){for(var go=0;go<gr.linked.length;++go){var gm=gr.linked[go];if(gm.doc==gp){continue}var gq=gn&&gm.sharedHist;if(gj&&!gq){continue}gk(gm.doc,gq);gi(gm.doc,gr,gq)}}}gi(gl,null,true)}function ec(gi,gj){if(gj.cm){throw new Error("This document is already in use.")}gi.doc=gj;gj.cm=gi;X(gi);bs(gi);if(!gi.options.lineWrapping){h(gi)}gi.options.mode=gj.modeOption;ah(gi)}function fg(gl,gn){gn-=gl.first;if(gn<0||gn>=gl.size){throw new Error("There is no line "+(gn+gl.first)+" in the document.")}for(var gi=gl;!gi.lines;){for(var gj=0;;++gj){var gm=gi.children[gj],gk=gm.chunkSize();if(gn<gk){gi=gm;break}gn-=gk}}return gi.lines[gn]}function f5(gk,gm,gi){var gj=[],gl=gm.line;gk.iter(gm.line,gi.line+1,function(gn){var go=gn.text;if(gl==gi.line){go=go.slice(0,gi.ch)}if(gl==gm.line){go=go.slice(gm.ch)}gj.push(go);++gl});return gj}function a3(gj,gl,gk){var gi=[];gj.iter(gl,gk,function(gm){gi.push(gm.text)});return gi}function f6(gj,gi){var gk=gi-gj.height;if(gk){for(var gl=gj;gl;gl=gl.parent){gl.height+=gk}}}function bO(gi){if(gi.parent==null){return null}var gm=gi.parent,gl=di(gm.lines,gi);for(var gj=gm.parent;gj;gm=gj,gj=gj.parent){for(var gk=0;;++gk){if(gj.children[gk]==gm){break}gl+=gj.children[gk].chunkSize()}}return gl+gm.first}function bH(gk,gn){var gp=gk.first;outer:do{for(var gl=0;gl<gk.children.length;++gl){var go=gk.children[gl],gm=go.height;if(gn<gm){gk=go;continue outer}gn-=gm;gp+=go.chunkSize()}return gp}while(!gk.lines);for(var gl=0;gl<gk.lines.length;++gl){var gj=gk.lines[gl],gi=gj.height;if(gn<gi){break}gn-=gi}return gp+gl}function bN(gk){gk=y(gk);var gm=0,gj=gk.parent;for(var gl=0;gl<gj.lines.length;++gl){var gi=gj.lines[gl];if(gi==gk){break}else{gm+=gi.height}}for(var gn=gj.parent;gn;gj=gn,gn=gj.parent){for(var gl=0;gl<gn.children.length;++gl){var go=gn.children[gl];if(go==gj){break}else{gm+=go.height}}}return gm}function a(gj){var gi=gj.order;if(gi==null){gi=gj.order=bi(gj.text)}return gi}function fU(gi){this.done=[];this.undone=[];this.undoDepth=Infinity;this.lastModTime=this.lastSelTime=0;this.lastOp=this.lastSelOp=null;this.lastOrigin=this.lastSelOrigin=null;this.generation=this.maxGeneration=gi||1}function dv(gi,gk){var gj={from:cj(gk.from),to:cY(gk),text:f5(gi,gk.from,gk.to)};bZ(gi,gj,gk.from.line,gk.to.line+1);d8(gi,function(gl){bZ(gl,gj,gk.from.line,gk.to.line+1)},true);return gj}function fC(gj){while(gj.length){var gi=fH(gj);if(gi.ranges){gj.pop()}else{break}}}function eN(gj,gi){if(gi){fC(gj.done);return fH(gj.done)}else{if(gj.done.length&&!fH(gj.done).ranges){return fH(gj.done)}else{if(gj.done.length>1&&!gj.done[gj.done.length-2].ranges){gj.done.pop();return fH(gj.done)}}}}function fN(go,gm,gi,gl){var gk=go.history;gk.undone.length=0;var gj=+new Date,gp;if((gk.lastOp==gl||gk.lastOrigin==gm.origin&&gm.origin&&((gm.origin.charAt(0)=="+"&&go.cm&&gk.lastModTime>gj-go.cm.options.historyEventDelay)||gm.origin.charAt(0)=="*"))&&(gp=eN(gk,gk.lastOp==gl))){var gq=fH(gp.changes);if(cg(gm.from,gm.to)==0&&cg(gm.from,gq.to)==0){gq.to=cY(gm)}else{gp.changes.push(dv(go,gm))}}else{var gn=fH(gk.done);if(!gn||!gn.ranges){cO(go.sel,gk.done)}gp={changes:[dv(go,gm)],generation:gk.generation};gk.done.push(gp);while(gk.done.length>gk.undoDepth){gk.done.shift();if(!gk.done[0].ranges){gk.done.shift()}}}gk.done.push(gi);gk.generation=++gk.maxGeneration;gk.lastModTime=gk.lastSelTime=gj;gk.lastOp=gk.lastSelOp=gl;gk.lastOrigin=gk.lastSelOrigin=gm.origin;if(!gq){aE(go,"historyAdded")}}function bB(gm,gi,gk,gl){var gj=gi.charAt(0);return gj=="*"||gj=="+"&&gk.ranges.length==gl.ranges.length&&gk.somethingSelected()==gl.somethingSelected()&&new Date-gm.history.lastSelTime<=(gm.cm?gm.cm.options.historyEventDelay:500)}function gc(gn,gl,gi,gk){var gm=gn.history,gj=gk&&gk.origin;if(gi==gm.lastSelOp||(gj&&gm.lastSelOrigin==gj&&(gm.lastModTime==gm.lastSelTime&&gm.lastOrigin==gj||bB(gn,gj,fH(gm.done),gl)))){gm.done[gm.done.length-1]=gl}else{cO(gl,gm.done)}gm.lastSelTime=+new Date;gm.lastSelOrigin=gj;gm.lastSelOp=gi;if(gk&&gk.clearRedo!==false){fC(gm.undone)}}function cO(gj,gi){var gk=fH(gi);if(!(gk&&gk.ranges&&gk.equals(gj))){gi.push(gj)}}function bZ(gj,gn,gm,gl){var gi=gn["spans_"+gj.id],gk=0;gj.iter(Math.max(gj.first,gm),Math.min(gj.first+gj.size,gl),function(go){if(go.markedSpans){(gi||(gi=gn["spans_"+gj.id]={}))[gk]=go.markedSpans}++gk})}function bm(gk){if(!gk){return null}for(var gj=0,gi;gj<gk.length;++gj){if(gk[gj].marker.explicitlyCleared){if(!gi){gi=gk.slice(0,gj)}}else{if(gi){gi.push(gk[gj])}}}return !gi?gk:gi.length?gi:null}function b5(gl,gm){var gk=gm["spans_"+gl.id];if(!gk){return null}for(var gj=0,gi=[];gj<gm.text.length;++gj){gi.push(bm(gk[gj]))}return gi}function bQ(gt,gl,gs){for(var go=0,gj=[];go<gt.length;++go){var gk=gt[go];if(gk.ranges){gj.push(gs?f4.prototype.deepCopy.call(gk):gk);continue}var gq=gk.changes,gr=[];gj.push({changes:gr});for(var gn=0;gn<gq.length;++gn){var gp=gq[gn],gm;gr.push({from:gp.from,to:gp.to,text:gp.text});if(gl){for(var gi in gp){if(gm=gi.match(/^spans_(\d+)$/)){if(di(gl,Number(gm[1]))>-1){fH(gr)[gi]=gp[gi];delete gp[gi]}}}}}}return gj}function I(gl,gk,gj,gi){if(gj<gl.line){gl.line+=gi}else{if(gk<gl.line){gl.line=gk;gl.ch=0}}}function fi(gl,gn,go,gp){for(var gk=0;gk<gl.length;++gk){var gi=gl[gk],gm=true;if(gi.ranges){if(!gi.copied){gi=gl[gk]=gi.deepCopy();gi.copied=true}for(var gj=0;gj<gi.ranges.length;gj++){I(gi.ranges[gj].anchor,gn,go,gp);I(gi.ranges[gj].head,gn,go,gp)}continue}for(var gj=0;gj<gi.changes.length;++gj){var gq=gi.changes[gj];if(go<gq.from.line){gq.from=W(gq.from.line+gp,gq.from.ch);gq.to=W(gq.to.line+gp,gq.to.ch)}else{if(gn<=gq.to.line){gm=false;break}}}if(!gm){gl.splice(0,gk+1);gk=0}}}function dF(gj,gm){var gl=gm.from.line,gk=gm.to.line,gi=gm.text.length-(gk-gl)-1;fi(gj.done,gl,gk,gi);fi(gj.undone,gl,gk,gi)}var cH=H.e_preventDefault=function(gi){if(gi.preventDefault){gi.preventDefault()}else{gi.returnValue=false}};var dr=H.e_stopPropagation=function(gi){if(gi.stopPropagation){gi.stopPropagation()}else{gi.cancelBubble=true}};function bM(gi){return gi.defaultPrevented!=null?gi.defaultPrevented:gi.returnValue==false}var es=H.e_stop=function(gi){cH(gi);dr(gi)};function L(gi){return gi.target||gi.srcElement}function fO(gj){var gi=gj.which;if(gi==null){if(gj.button&1){gi=1}else{if(gj.button&2){gi=3}else{if(gj.button&4){gi=2}}}}if(b8&&gj.ctrlKey&&gi==1){gi=3}return gi}var bY=H.on=function(gl,gj,gk){if(gl.addEventListener){gl.addEventListener(gj,gk,false)}else{if(gl.attachEvent){gl.attachEvent("on"+gj,gk)}else{var gm=gl._handlers||(gl._handlers={});var gi=gm[gj]||(gm[gj]=[]);gi.push(gk)}}};var ee=H.off=function(gm,gk,gl){if(gm.removeEventListener){gm.removeEventListener(gk,gl,false)}else{if(gm.detachEvent){gm.detachEvent("on"+gk,gl)}else{var gi=gm._handlers&&gm._handlers[gk];if(!gi){return}for(var gj=0;gj<gi.length;++gj){if(gi[gj]==gl){gi.splice(gj,1);break}}}}};var aE=H.signal=function(gm,gl){var gi=gm._handlers&&gm._handlers[gl];if(!gi){return}var gj=Array.prototype.slice.call(arguments,2);for(var gk=0;gk<gi.length;++gk){gi[gk].apply(null,gj)}};var bA=null;function ae(go,gm){var gi=go._handlers&&go._handlers[gm];if(!gi){return}var gk=Array.prototype.slice.call(arguments,2),gn;if(bq){gn=bq.delayedCallbacks}else{if(bA){gn=bA}else{gn=bA=[];setTimeout(aM,0)}}function gj(gp){return function(){gp.apply(null,gk)}}for(var gl=0;gl<gi.length;++gl){gn.push(gj(gi[gl]))}}function aM(){var gi=bA;bA=null;for(var gj=0;gj<gi.length;++gj){gi[gj]()}}function aR(gi,gk,gj){if(typeof gk=="string"){gk={type:gk,preventDefault:function(){this.defaultPrevented=true}}}aE(gi,gj||gk.type,gi,gk);return bM(gk)||gk.codemirrorIgnore}function V(gj){var gi=gj._handlers&&gj._handlers.cursorActivity;if(!gi){return}var gl=gj.curOp.cursorActivityHandlers||(gj.curOp.cursorActivityHandlers=[]);for(var gk=0;gk<gi.length;++gk){if(di(gl,gi[gk])==-1){gl.push(gi[gk])}}}function fj(gk,gj){var gi=gk._handlers&&gk._handlers[gj];return gi&&gi.length>0}function bz(gi){gi.prototype.on=function(gj,gk){bY(this,gj,gk)};gi.prototype.off=function(gj,gk){ee(this,gj,gk)}}var dK=30;var cb=H.Pass={toString:function(){return"CodeMirror.Pass"}};var Z={scroll:false},M={origin:"*mouse"},cX={origin:"+move"};function gh(){this.id=null}gh.prototype.set=function(gi,gj){clearTimeout(this.id);this.id=setTimeout(gj,gi)};var bU=H.countColumn=function(gl,gj,gn,go,gk){if(gj==null){gj=gl.search(/[^\s\u00a0]/);if(gj==-1){gj=gl.length}}for(var gm=go||0,gp=gk||0;;){var gi=gl.indexOf("\t",gm);if(gi<0||gi>=gj){return gp+(gj-gm)}gp+=gi-gm;gp+=gn-(gp%gn);gm=gi+1}};function er(gm,gl,gn){for(var go=0,gk=0;;){var gj=gm.indexOf("\t",go);if(gj==-1){gj=gm.length}var gi=gj-go;if(gj==gm.length||gk+gi>=gl){return go+Math.min(gi,gl-gk)}gk+=gj-go;gk+=gn-(gk%gn);go=gj+1;if(gk>=gl){return go}}}var a0=[""];function cq(gi){while(a0.length<=gi){a0.push(fH(a0)+" ")}return a0[gi]}function fH(gi){return gi[gi.length-1]}var dM=function(gi){gi.select()};if(e2){dM=function(gi){gi.selectionStart=0;gi.selectionEnd=gi.value.length}}else{if(dL){dM=function(gj){try{gj.select()}catch(gi){}}}}function di(gk,gi){for(var gj=0;gj<gk.length;++gj){if(gk[gj]==gi){return gj}}return -1}function bT(gl,gk){var gi=[];for(var gj=0;gj<gl.length;gj++){gi[gj]=gk(gl[gj],gj)}return gi}function fV(){}function cl(gk,gi){var gj;if(Object.create){gj=Object.create(gk)}else{fV.prototype=gk;gj=new fV()}if(gi){aN(gi,gj)}return gj}function aN(gk,gj,gi){if(!gj){gj={}}for(var gl in gk){if(gk.hasOwnProperty(gl)&&(gi!==false||!gj.hasOwnProperty(gl))){gj[gl]=gk[gl]}}return gj}function cw(gj){var gi=Array.prototype.slice.call(arguments,1);return function(){return gj.apply(null,gi)}}var bd=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;var fE=H.isWordChar=function(gi){return/\w/.test(gi)||gi>"\x80"&&(gi.toUpperCase()!=gi.toLowerCase()||bd.test(gi))};function cB(gi,gj){if(!gj){return fE(gi)}if(gj.source.indexOf("\\w")>-1&&fE(gi)){return true}return gj.test(gi)}function eV(gi){for(var gj in gi){if(gi.hasOwnProperty(gj)&&gi[gj]){return false}}return true}var eK=/[\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 fq(gi){return gi.charCodeAt(0)>=768&&eK.test(gi)}function f3(gi,gm,gl,gk){var gn=document.createElement(gi);if(gl){gn.className=gl}if(gk){gn.style.cssText=gk}if(typeof gm=="string"){gn.appendChild(document.createTextNode(gm))}else{if(gm){for(var gj=0;gj<gm.length;++gj){gn.appendChild(gm[gj])}}}return gn}var cm;if(document.createRange){cm=function(gl,gm,gj,gi){var gk=document.createRange();gk.setEnd(gi||gl,gj);gk.setStart(gl,gm);return gk}}else{cm=function(gk,gm,gi){var gj=document.body.createTextRange();try{gj.moveToElementText(gk.parentNode)}catch(gl){return gj}gj.collapse(true);gj.moveEnd("character",gi);gj.moveStart("character",gm);return gj}}function d2(gj){for(var gi=gj.childNodes.length;gi>0;--gi){gj.removeChild(gj.firstChild)}return gj}function bS(gi,gj){return d2(gi).appendChild(gj)}var gb=H.contains=function(gi,gj){if(gj.nodeType==3){gj=gj.parentNode}if(gi.contains){return gi.contains(gj)}do{if(gj.nodeType==11){gj=gj.host}if(gj==gi){return true}}while(gj=gj.parentNode)};function dP(){return document.activeElement}if(dL&&k<11){dP=function(){try{return document.activeElement}catch(gi){return document.body}}}function S(gi){return new RegExp("(^|\\s)"+gi+"(?:$|\\s)\\s*")}var f=H.rmClass=function(gk,gi){var gl=gk.className;var gj=S(gi).exec(gl);if(gj){var gm=gl.slice(gj.index+gj[0].length);gk.className=gl.slice(0,gj.index)+(gm?gj[1]+gm:"")}};var fB=H.addClass=function(gj,gi){var gk=gj.className;if(!S(gi).test(gk)){gj.className+=(gk?" ":"")+gi}};function fT(gk,gi){var gj=gk.split(" ");for(var gl=0;gl<gj.length;gl++){if(gj[gl]&&!S(gj[gl]).test(gi)){gi+=" "+gj[gl]}}return gi}function aA(gl){if(!document.body.getElementsByClassName){return}var gk=document.body.getElementsByClassName("CodeMirror");for(var gj=0;gj<gk.length;gj++){var gi=gk[gj].CodeMirror;if(gi){gl(gi)}}}var cD=false;function bk(){if(cD){return}fF();cD=true}function fF(){var gi;bY(window,"resize",function(){if(gi==null){gi=setTimeout(function(){gi=null;aA(aT)},100)}});bY(window,"blur",function(){aA(aV)})}var eM=function(){if(dL&&k<9){return false}var gi=f3("div");return"draggable" in gi||"dragDrop" in gi}();var fM;function bo(gi){if(fM==null){var gk=f3("span","\u200b");bS(gi,f3("span",[gk,document.createTextNode("x")]));if(gi.firstChild.offsetHeight!=0){fM=gk.offsetWidth<=1&&gk.offsetHeight>2&&!(dL&&k<8)}}var gj=fM?f3("span","\u200b"):f3("span","\u00a0",null,"display: inline-block; width: 1px; margin-right: -1px");gj.setAttribute("cm-text","");return gj}var fL;function bP(gl){if(fL!=null){return fL}var gi=bS(gl,document.createTextNode("A\u062eA"));var gk=cm(gi,0,1).getBoundingClientRect();if(!gk||gk.left==gk.right){return false}var gj=cm(gi,1,2).getBoundingClientRect();return fL=(gj.right-gk.right<3)}var a1=H.splitLines="\n\nb".split(/\n/).length!=3?function(gn){var go=0,gi=[],gm=gn.length;while(go<=gm){var gl=gn.indexOf("\n",go);if(gl==-1){gl=gn.length}var gk=gn.slice(go,gn.charAt(gl-1)=="\r"?gl-1:gl);var gj=gk.indexOf("\r");if(gj!=-1){gi.push(gk.slice(0,gj));go+=gj+1}else{gi.push(gk);go=gl+1}}return gi}:function(gi){return gi.split(/\r\n?|\n/)};var bt=window.getSelection?function(gj){try{return gj.selectionStart!=gj.selectionEnd}catch(gi){return false}}:function(gk){try{var gi=gk.ownerDocument.selection.createRange()}catch(gj){}if(!gi||gi.parentElement()!=gk){return false}return gi.compareEndPoints("StartToEnd",gi)!=0};var db=(function(){var gi=f3("div");if("oncopy" in gi){return true}gi.setAttribute("oncopy","return;");return typeof gi.oncopy=="function"})();var e7=null;function aK(gj){if(e7!=null){return e7}var gk=bS(gj,f3("span","x"));var gl=gk.getBoundingClientRect();var gi=cm(gk,0,1).getBoundingClientRect();return e7=Math.abs(gl.left-gi.left)>1}var fh={3:"Enter",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",107:"=",109:"-",127:"Delete",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"};H.keyNames=fh;(function(){for(var gi=0;gi<10;gi++){fh[gi+48]=fh[gi+96]=String(gi)}for(var gi=65;gi<=90;gi++){fh[gi]=String.fromCharCode(gi)}for(var gi=1;gi<=12;gi++){fh[gi+111]=fh[gi+63235]="F"+gi}})();function d5(gi,go,gn,gm){if(!gi){return gm(go,gn,"ltr")}var gl=false;for(var gk=0;gk<gi.length;++gk){var gj=gi[gk];if(gj.from<gn&&gj.to>go||go==gn&&gj.to==go){gm(Math.max(gj.from,go),Math.min(gj.to,gn),gj.level==1?"rtl":"ltr");gl=true}}if(!gl){gm(go,gn,"ltr")}}function dz(gi){return gi.level%2?gi.to:gi.from}function ge(gi){return gi.level%2?gi.from:gi.to}function cF(gj){var gi=a(gj);return gi?dz(gi[0]):0}function cT(gj){var gi=a(gj);if(!gi){return gj.text.length}return ge(fH(gi))}function bu(gj,gm){var gk=fg(gj.doc,gm);var gn=y(gk);if(gn!=gk){gm=bO(gn)}var gi=a(gn);var gl=!gi?0:gi[0].level%2?cT(gn):cF(gn);return W(gm,gl)}function dQ(gk,gn){var gj,gl=fg(gk.doc,gn);while(gj=ex(gl)){gl=gj.find(1,true).line;gn=null}var gi=a(gl);var gm=!gi?gl.text.length:gi[0].level%2?cF(gl):cT(gl);return W(gn==null?bO(gl):gn,gm)}function dJ(gj,go){var gn=bu(gj,go.line);var gk=fg(gj.doc,gn.line);var gi=a(gk);if(!gi||gi[0].level==0){var gm=Math.max(0,gk.text.search(/\S/));var gl=go.line==gn.line&&go.ch<=gm&&go.ch;return W(gn.line,gl?0:gm)}return gn}function an(gj,gk,gi){var gl=gj[0].level;if(gk==gl){return true}if(gi==gl){return false}return gk<gi}var e3;function aG(gi,gm){e3=null;for(var gj=0,gk;gj<gi.length;++gj){var gl=gi[gj];if(gl.from<gm&&gl.to>gm){return gj}if((gl.from==gm||gl.to==gm)){if(gk==null){gk=gj}else{if(an(gi,gl.level,gi[gk].level)){if(gl.from!=gl.to){e3=gk}return gj}else{if(gl.from!=gl.to){e3=gj}return gk}}}}return gk}function ff(gi,gl,gj,gk){if(!gk){return gl+gj}do{gl+=gj}while(gl>0&&fq(gi.text.charAt(gl)));return gl}function u(gi,gp,gk,gl){var gm=a(gi);if(!gm){return ai(gi,gp,gk,gl)}var go=aG(gm,gp),gj=gm[go];var gn=ff(gi,gp,gj.level%2?-gk:gk,gl);for(;;){if(gn>gj.from&&gn<gj.to){return gn}if(gn==gj.from||gn==gj.to){if(aG(gm,gn)==go){return gn}gj=gm[go+=gk];return(gk>0)==gj.level%2?gj.to:gj.from}else{gj=gm[go+=gk];if(!gj){return null}if((gk>0)==gj.level%2){gn=ff(gi,gj.to,-1,gl)}else{gn=ff(gi,gj.from,1,gl)}}}}function ai(gi,gm,gj,gk){var gl=gm+gj;if(gk){while(gl>0&&fq(gi.text.charAt(gl))){gl+=gj}}return gl<0||gl>gi.text.length?null:gl}var bi=(function(){var go="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN";var gm="rrrrrrrrrrrr,rNNmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmrrrrrrrnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmNmmmm";function gl(gs){if(gs<=247){return go.charAt(gs)}else{if(1424<=gs&&gs<=1524){return"R"}else{if(1536<=gs&&gs<=1773){return gm.charAt(gs-1536)}else{if(1774<=gs&&gs<=2220){return"r"}else{if(8192<=gs&&gs<=8203){return"w"}else{if(gs==8204){return"b"}else{return"L"}}}}}}}var gi=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;var gr=/[stwN]/,gk=/[LRr]/,gj=/[Lb1n]/,gn=/[1n]/;var gq="L";function gp(gu,gt,gs){this.level=gu;this.from=gt;this.to=gs}return function(gC){if(!gi.test(gC)){return false}var gI=gC.length,gy=[];for(var gH=0,gu;gH<gI;++gH){gy.push(gu=gl(gC.charCodeAt(gH)))}for(var gH=0,gB=gq;gH<gI;++gH){var gu=gy[gH];if(gu=="m"){gy[gH]=gB}else{gB=gu}}for(var gH=0,gs=gq;gH<gI;++gH){var gu=gy[gH];if(gu=="1"&&gs=="r"){gy[gH]="n"}else{if(gk.test(gu)){gs=gu;if(gu=="r"){gy[gH]="R"}}}}for(var gH=1,gB=gy[0];gH<gI-1;++gH){var gu=gy[gH];if(gu=="+"&&gB=="1"&&gy[gH+1]=="1"){gy[gH]="1"}else{if(gu==","&&gB==gy[gH+1]&&(gB=="1"||gB=="n")){gy[gH]=gB}}gB=gu}for(var gH=0;gH<gI;++gH){var gu=gy[gH];if(gu==","){gy[gH]="N"}else{if(gu=="%"){for(var gv=gH+1;gv<gI&&gy[gv]=="%";++gv){}var gJ=(gH&&gy[gH-1]=="!")||(gv<gI&&gy[gv]=="1")?"1":"N";for(var gF=gH;gF<gv;++gF){gy[gF]=gJ}gH=gv-1}}}for(var gH=0,gs=gq;gH<gI;++gH){var gu=gy[gH];if(gs=="L"&&gu=="1"){gy[gH]="L"}else{if(gk.test(gu)){gs=gu}}}for(var gH=0;gH<gI;++gH){if(gr.test(gy[gH])){for(var gv=gH+1;gv<gI&&gr.test(gy[gv]);++gv){}var gz=(gH?gy[gH-1]:gq)=="L";var gt=(gv<gI?gy[gv]:gq)=="L";var gJ=gz||gt?"L":"R";for(var gF=gH;gF<gv;++gF){gy[gF]=gJ}gH=gv-1}}var gG=[],gD;for(var gH=0;gH<gI;){if(gj.test(gy[gH])){var gw=gH;for(++gH;gH<gI&&gj.test(gy[gH]);++gH){}gG.push(new gp(0,gw,gH))}else{var gx=gH,gA=gG.length;for(++gH;gH<gI&&gy[gH]!="L";++gH){}for(var gF=gx;gF<gH;){if(gn.test(gy[gF])){if(gx<gF){gG.splice(gA,0,new gp(1,gx,gF))}var gE=gF;for(++gF;gF<gH&&gn.test(gy[gF]);++gF){}gG.splice(gA,0,new gp(2,gE,gF));gx=gF}else{++gF}}if(gx<gH){gG.splice(gA,0,new gp(1,gx,gH))}}}if(gG[0].level==1&&(gD=gC.match(/^\s+/))){gG[0].from=gD[0].length;gG.unshift(new gp(0,0,gD[0].length))}if(fH(gG).level==1&&(gD=gC.match(/\s+$/))){fH(gG).to-=gD[0].length;gG.push(new gp(0,gI-gD[0].length,gI))}if(gG[0].level==2){gG.unshift(new gp(1,gG[0].to,gG[0].to))}if(gG[0].level!=fH(gG).level){gG.push(new gp(gG[0].level,gI,gI))}return gG}})();H.version="5.4.0";return H});
1
+ (function(a){if(typeof exports=="object"&&typeof module=="object"){module.exports=a()}else{if(typeof define=="function"&&define.amd){return define([],a)}else{(this||window).CodeMirror=a()}}})(function(){var d1=navigator.userAgent;var ec=navigator.platform;var cn=/gecko\/\d/i.test(d1);var eO=/MSIE \d/.test(d1);var bI=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(d1);var dK=eO||bI;var k=dK&&(eO?document.documentMode||6:bI[1]);var cZ=/WebKit\//.test(d1);var dN=cZ&&/Qt\/\d+\.\d+/.test(d1);var dc=/Chrome\//.test(d1);var d4=/Opera\//.test(d1);var aB=/Apple Computer/.test(navigator.vendor);var c6=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(d1);var fz=/PhantomJS/.test(d1);var e5=/AppleWebKit/.test(d1)&&/Mobile\/\w+/.test(d1);var ei=e5||/Android|webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(d1);var b6=e5||/Mac/.test(ec);var fO=/\bCrOS\b/.test(d1);var aO=/win/i.test(ec);var aY=d4&&d1.match(/Version\/(\d*\.\d*)/);if(aY){aY=Number(aY[1])}if(aY&&aY>=15){d4=false;cZ=true}var bP=b6&&(dN||d4&&(aY==null||aY<12.11));var gg=cn||(dK&&k>=9);var gj=false,a6=false;function H(gr,gt){if(!(this instanceof H)){return new H(gr,gt)}this.options=gt=gt?aM(gt):{};aM(e7,gt,false);cd(gt);var gx=gt.value;if(typeof gx=="string"){gx=new ar(gx,gt.mode,null,gt.lineSeparator)}this.doc=gx;var gs=new H.inputStyles[gt.inputStyle](this);var gw=this.display=new eL(gr,gx,gs);gw.wrapper.CodeMirror=this;ee(this);cN(this);if(gt.lineWrapping){this.display.wrapper.className+=" CodeMirror-wrap"}if(gt.autofocus&&!ei){gw.input.focus()}aC(this);this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:false,delayingBlurEvent:false,focused:false,suppressEdits:false,pasteIncoming:false,cutIncoming:false,selectingText:false,draggingText:false,highlight:new gp(),keySeq:null,specialChars:null};var gq=this;if(dK&&k<11){setTimeout(function(){gq.display.input.reset(true)},20)}fW(this);bi();cH(this);this.curOp.forceUpdate=true;ed(this,gx);if((gt.autofocus&&!ei)||gq.hasFocus()){setTimeout(cu(cA,this),20)}else{aU(this)}for(var gv in be){if(be.hasOwnProperty(gv)){be[gv](this,gt[gv],cb)}}d6(this);if(gt.finishInit){gt.finishInit(this)}for(var gu=0;gu<a7.length;++gu){a7[gu](this)}al(this);if(cZ&&gt.lineWrapping&&getComputedStyle(gw.lineDiv).textRendering=="optimizelegibility"){gw.lineDiv.style.textRendering="auto"}}function eL(gq,gs,gr){var gt=this;this.input=gr;gt.scrollbarFiller=f9("div",null,"CodeMirror-scrollbar-filler");gt.scrollbarFiller.setAttribute("cm-not-content","true");gt.gutterFiller=f9("div",null,"CodeMirror-gutter-filler");gt.gutterFiller.setAttribute("cm-not-content","true");gt.lineDiv=f9("div",null,"CodeMirror-code");gt.selectionDiv=f9("div",null,null,"position: relative; z-index: 1");gt.cursorDiv=f9("div",null,"CodeMirror-cursors");gt.measure=f9("div",null,"CodeMirror-measure");gt.lineMeasure=f9("div",null,"CodeMirror-measure");gt.lineSpace=f9("div",[gt.measure,gt.lineMeasure,gt.selectionDiv,gt.cursorDiv,gt.lineDiv],null,"position: relative; outline: none");gt.mover=f9("div",[f9("div",[gt.lineSpace],"CodeMirror-lines")],null,"position: relative");gt.sizer=f9("div",[gt.mover],"CodeMirror-sizer");gt.sizerWidth=null;gt.heightForcer=f9("div",null,null,"position: absolute; height: "+dJ+"px; width: 1px;");gt.gutters=f9("div",null,"CodeMirror-gutters");gt.lineGutter=null;gt.scroller=f9("div",[gt.sizer,gt.heightForcer,gt.gutters],"CodeMirror-scroll");gt.scroller.setAttribute("tabIndex","-1");gt.wrapper=f9("div",[gt.scrollbarFiller,gt.gutterFiller,gt.scroller],"CodeMirror");if(dK&&k<8){gt.gutters.style.zIndex=-1;gt.scroller.style.paddingRight=0}if(!cZ&&!(cn&&ei)){gt.scroller.draggable=true}if(gq){if(gq.appendChild){gq.appendChild(gt.wrapper)}else{gq(gt.wrapper)}}gt.viewFrom=gt.viewTo=gs.first;gt.reportedViewFrom=gt.reportedViewTo=gs.first;gt.view=[];gt.renderedView=null;gt.externalMeasured=null;gt.viewOffset=0;gt.lastWrapHeight=gt.lastWrapWidth=0;gt.updateLineNumbers=null;gt.nativeBarWidth=gt.barHeight=gt.barWidth=0;gt.scrollbarsClipped=false;gt.lineNumWidth=gt.lineNumInnerWidth=gt.lineNumChars=null;gt.alignWidgets=false;gt.cachedCharWidth=gt.cachedTextHeight=gt.cachedPaddingH=null;gt.maxLine=null;gt.maxLineLength=0;gt.maxLineChanged=false;gt.wheelDX=gt.wheelDY=gt.wheelStartX=gt.wheelStartY=null;gt.shift=false;gt.selForContextMenu=null;gt.activeTouch=null;gr.init(gt)}function bq(gq){gq.doc.mode=H.getMode(gq.options,gq.doc.modeOption);eo(gq)}function eo(gq){gq.doc.iter(function(gr){if(gr.stateAfter){gr.stateAfter=null}if(gr.styles){gr.styles=null}});gq.doc.frontier=gq.doc.first;eh(gq,100);gq.state.modeGen++;if(gq.curOp){ah(gq)}}function eJ(gq){if(gq.options.lineWrapping){fF(gq.display.wrapper,"CodeMirror-wrap");gq.display.sizer.style.minWidth="";gq.display.sizerWidth=null}else{f(gq.display.wrapper,"CodeMirror-wrap");h(gq)}X(gq);ah(gq);aj(gq);setTimeout(function(){e2(gq)},100)}function bd(gq){var gs=aX(gq.display),gr=gq.options.lineWrapping;var gt=gr&&Math.max(5,gq.display.scroller.clientWidth/dD(gq.display)-3);return function(gv){if(fB(gq.doc,gv)){return 0}var gu=0;if(gv.widgets){for(var gw=0;gw<gv.widgets.length;gw++){if(gv.widgets[gw].height){gu+=gv.widgets[gw].height}}}if(gr){return gu+(Math.ceil(gv.text.length/gt)||1)*gs}else{return gu+gs}}}function X(gq){var gs=gq.doc,gr=bd(gq);gs.iter(function(gt){var gu=gr(gt);if(gu!=gt.height){gc(gt,gu)}})}function cN(gq){gq.display.wrapper.className=gq.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+gq.options.theme.replace(/(^|\s)\s*/g," cm-s-");aj(gq)}function dw(gq){ee(gq);ah(gq);setTimeout(function(){eH(gq)},20)}function ee(gq){var gr=gq.display.gutters,gv=gq.options.gutters;d2(gr);for(var gs=0;gs<gv.length;++gs){var gt=gv[gs];var gu=gr.appendChild(f9("div",null,"CodeMirror-gutter "+gt));if(gt=="CodeMirror-linenumbers"){gq.display.lineGutter=gu;gu.style.width=(gq.display.lineNumWidth||1)+"px"}}gr.style.display=gs?"":"none";c3(gq)}function c3(gq){var gr=gq.display.gutters.offsetWidth;gq.display.sizer.style.marginLeft=gr+"px"}function eq(gs){if(gs.height==0){return 0}var gr=gs.text.length,gq,gu=gs;while(gq=eS(gu)){var gt=gq.find(0,true);gu=gt.from.line;gr+=gt.from.ch-gt.to.ch}gu=gs;while(gq=ex(gu)){var gt=gq.find(0,true);gr-=gu.text.length-gt.from.ch;gu=gt.to.line;gr+=gu.text.length-gt.to.ch}return gr}function h(gq){var gs=gq.display,gr=gq.doc;gs.maxLine=fk(gr,gr.first);gs.maxLineLength=eq(gs.maxLine);gs.maxLineChanged=true;gr.iter(function(gu){var gt=eq(gu);if(gt>gs.maxLineLength){gs.maxLineLength=gt;gs.maxLine=gu}})}function cd(gq){var gr=dh(gq.gutters,"CodeMirror-linenumbers");if(gr==-1&&gq.lineNumbers){gq.gutters=gq.gutters.concat(["CodeMirror-linenumbers"])}else{if(gr>-1&&!gq.lineNumbers){gq.gutters=gq.gutters.slice(0);gq.gutters.splice(gr,1)}}}function dA(gq){var gt=gq.display,gs=gt.gutters.offsetWidth;var gr=Math.round(gq.doc.height+bH(gq.display));return{clientHeight:gt.scroller.clientHeight,viewHeight:gt.wrapper.clientHeight,scrollWidth:gt.scroller.scrollWidth,clientWidth:gt.scroller.clientWidth,viewWidth:gt.wrapper.clientWidth,barLeft:gq.options.fixedGutter?gs:0,docHeight:gr,scrollHeight:gr+cS(gq)+gt.barHeight,nativeBarWidth:gt.nativeBarWidth,gutterWidth:gs}}function dk(gs,gr,gq){this.cm=gq;var gt=this.vert=f9("div",[f9("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar");var gu=this.horiz=f9("div",[f9("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");gs(gt);gs(gu);bW(gt,"scroll",function(){if(gt.clientHeight){gr(gt.scrollTop,"vertical")}});bW(gu,"scroll",function(){if(gu.clientWidth){gr(gu.scrollLeft,"horizontal")}});this.checkedZeroWidth=false;if(dK&&k<8){this.horiz.style.minHeight=this.vert.style.minWidth="18px"}}dk.prototype=aM({update:function(gt){var gu=gt.scrollWidth>gt.clientWidth+1;var gs=gt.scrollHeight>gt.clientHeight+1;var gv=gt.nativeBarWidth;if(gs){this.vert.style.display="block";this.vert.style.bottom=gu?gv+"px":"0";var gr=gt.viewHeight-(gu?gv:0);this.vert.firstChild.style.height=Math.max(0,gt.scrollHeight-gt.clientHeight+gr)+"px"}else{this.vert.style.display="";this.vert.firstChild.style.height="0"}if(gu){this.horiz.style.display="block";this.horiz.style.right=gs?gv+"px":"0";this.horiz.style.left=gt.barLeft+"px";var gq=gt.viewWidth-gt.barLeft-(gs?gv:0);this.horiz.firstChild.style.width=(gt.scrollWidth-gt.clientWidth+gq)+"px"}else{this.horiz.style.display="";this.horiz.firstChild.style.width="0"}if(!this.checkedZeroWidth&&gt.clientHeight>0){if(gv==0){this.zeroWidthHack()}this.checkedZeroWidth=true}return{right:gs?gv:0,bottom:gu?gv:0}},setScrollLeft:function(gq){if(this.horiz.scrollLeft!=gq){this.horiz.scrollLeft=gq}if(this.disableHoriz){this.enableZeroWidthBar(this.horiz,this.disableHoriz)}},setScrollTop:function(gq){if(this.vert.scrollTop!=gq){this.vert.scrollTop=gq}if(this.disableVert){this.enableZeroWidthBar(this.vert,this.disableVert)}},zeroWidthHack:function(){var gq=b6&&!c6?"12px":"18px";this.horiz.style.height=this.vert.style.width=gq;this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none";this.disableHoriz=new gp;this.disableVert=new gp},enableZeroWidthBar:function(gr,gq){gr.style.pointerEvents="auto";function gs(){var gu=gr.getBoundingClientRect();var gt=document.elementFromPoint(gu.left+1,gu.bottom-1);if(gt!=gr){gr.style.pointerEvents="none"}else{gq.set(1000,gs)}}gq.set(1000,gs)},clear:function(){var gq=this.horiz.parentNode;gq.removeChild(this.horiz);gq.removeChild(this.vert)}},dk.prototype);function e8(){}e8.prototype=aM({update:function(){return{bottom:0,right:0}},setScrollLeft:function(){},setScrollTop:function(){},clear:function(){}},e8.prototype);H.scrollbarModel={"native":dk,"null":e8};function aC(gq){if(gq.display.scrollbars){gq.display.scrollbars.clear();if(gq.display.scrollbars.addClass){f(gq.display.wrapper,gq.display.scrollbars.addClass)}}gq.display.scrollbars=new H.scrollbarModel[gq.options.scrollbarStyle](function(gr){gq.display.wrapper.insertBefore(gr,gq.display.scrollbarFiller);bW(gr,"mousedown",function(){if(gq.state.focused){setTimeout(function(){gq.display.input.focus()},0)}});gr.setAttribute("cm-not-content","true")},function(gs,gr){if(gr=="horizontal"){bD(gq,gs)}else{N(gq,gs)}},gq);if(gq.display.scrollbars.addClass){fF(gq.display.wrapper,gq.display.scrollbars.addClass)}}function e2(gs,gu){if(!gu){gu=dA(gs)}var gr=gs.display.barWidth,gq=gs.display.barHeight;aT(gs,gu);for(var gt=0;gt<4&&gr!=gs.display.barWidth||gq!=gs.display.barHeight;gt++){if(gr!=gs.display.barWidth&&gs.options.lineWrapping){a8(gs)}aT(gs,dA(gs));gr=gs.display.barWidth;gq=gs.display.barHeight}}function aT(gq,gr){var gt=gq.display;var gs=gt.scrollbars.update(gr);gt.sizer.style.paddingRight=(gt.barWidth=gs.right)+"px";gt.sizer.style.paddingBottom=(gt.barHeight=gs.bottom)+"px";gt.heightForcer.style.borderBottom=gs.bottom+"px solid transparent";if(gs.right&&gs.bottom){gt.scrollbarFiller.style.display="block";gt.scrollbarFiller.style.height=gs.bottom+"px";gt.scrollbarFiller.style.width=gs.right+"px"}else{gt.scrollbarFiller.style.display=""}if(gs.bottom&&gq.options.coverGutterNextToScrollbar&&gq.options.fixedGutter){gt.gutterFiller.style.display="block";gt.gutterFiller.style.height=gs.bottom+"px";gt.gutterFiller.style.width=gr.gutterWidth+"px"}else{gt.gutterFiller.style.display=""}}function b5(gt,gx,gs){var gu=gs&&gs.top!=null?Math.max(0,gs.top):gt.scroller.scrollTop;gu=Math.floor(gu-fd(gt));var gq=gs&&gs.bottom!=null?gs.bottom:gu+gt.wrapper.clientHeight;var gv=bF(gx,gu),gw=bF(gx,gq);if(gs&&gs.ensure){var gr=gs.ensure.from.line,gy=gs.ensure.to.line;if(gr<gv){gv=gr;gw=bF(gx,bL(fk(gx,gr))+gt.wrapper.clientHeight)}else{if(Math.min(gy,gx.lastLine())>=gw){gv=bF(gx,bL(fk(gx,gy))-gt.wrapper.clientHeight);gw=gy}}}return{from:gv,to:Math.max(gw,gv+1)}}function eH(gy){var gw=gy.display,gx=gw.view;if(!gw.alignWidgets&&(!gw.gutters.firstChild||!gy.options.fixedGutter)){return}var gu=dX(gw)-gw.scroller.scrollLeft+gy.doc.scrollLeft;var gq=gw.gutters.offsetWidth,gr=gu+"px";for(var gt=0;gt<gx.length;gt++){if(!gx[gt].hidden){if(gy.options.fixedGutter&&gx[gt].gutter){gx[gt].gutter.style.left=gr}var gv=gx[gt].alignable;if(gv){for(var gs=0;gs<gv.length;gs++){gv[gs].style.left=gr}}}}if(gy.options.fixedGutter){gw.gutters.style.left=(gu+gq)+"px"}}function d6(gq){if(!gq.options.lineNumbers){return false}var gv=gq.doc,gr=ev(gq.options,gv.first+gv.size-1),gu=gq.display;if(gr.length!=gu.lineNumChars){var gw=gu.measure.appendChild(f9("div",[f9("div",gr)],"CodeMirror-linenumber CodeMirror-gutter-elt"));var gs=gw.firstChild.offsetWidth,gt=gw.offsetWidth-gs;gu.lineGutter.style.width="";gu.lineNumInnerWidth=Math.max(gs,gu.lineGutter.offsetWidth-gt)+1;gu.lineNumWidth=gu.lineNumInnerWidth+gt;gu.lineNumChars=gu.lineNumInnerWidth?gr.length:-1;gu.lineGutter.style.width=gu.lineNumWidth+"px";c3(gq);return true}return false}function ev(gq,gr){return String(gq.lineNumberFormatter(gr+gq.firstLineNumber))}function dX(gq){return gq.scroller.getBoundingClientRect().left-gq.sizer.getBoundingClientRect().left}function aH(gr,gq,gs){var gt=gr.display;this.viewport=gq;this.visible=b5(gt,gr.doc,gq);this.editorIsHidden=!gt.wrapper.offsetWidth;this.wrapperHeight=gt.wrapper.clientHeight;this.wrapperWidth=gt.wrapper.clientWidth;this.oldDisplayWidth=dl(gr);this.force=gs;this.dims=fi(gr);this.events=[]}aH.prototype.signal=function(gr,gq){if(fn(gr,gq)){this.events.push(arguments)}};aH.prototype.finish=function(){for(var gq=0;gq<this.events.length;gq++){aD.apply(null,this.events[gq])}};function J(gq){var gr=gq.display;if(!gr.scrollbarsClipped&&gr.scroller.offsetWidth){gr.nativeBarWidth=gr.scroller.offsetWidth-gr.scroller.clientWidth;gr.heightForcer.style.height=cS(gq)+"px";gr.sizer.style.marginBottom=-gr.nativeBarWidth+"px";gr.sizer.style.borderRightWidth=cS(gq)+"px";gr.scrollbarsClipped=true}}function B(gz,gt){var gu=gz.display,gy=gz.doc;if(gt.editorIsHidden){eA(gz);return false}if(!gt.force&&gt.visible.from>=gu.viewFrom&&gt.visible.to<=gu.viewTo&&(gu.updateLineNumbers==null||gu.updateLineNumbers>=gu.viewTo)&&gu.renderedView==gu.view&&db(gz)==0){return false}if(d6(gz)){eA(gz);gt.dims=fi(gz)}var gs=gy.first+gy.size;var gw=Math.max(gt.visible.from-gz.options.viewportMargin,gy.first);var gx=Math.min(gs,gt.visible.to+gz.options.viewportMargin);if(gu.viewFrom<gw&&gw-gu.viewFrom<20){gw=Math.max(gy.first,gu.viewFrom)}if(gu.viewTo>gx&&gu.viewTo-gx<20){gx=Math.min(gs,gu.viewTo)}if(a6){gw=aV(gz.doc,gw);gx=d3(gz.doc,gx)}var gr=gw!=gu.viewFrom||gx!=gu.viewTo||gu.lastWrapHeight!=gt.wrapperHeight||gu.lastWrapWidth!=gt.wrapperWidth;cQ(gz,gw,gx);gu.viewOffset=bL(fk(gz.doc,gu.viewFrom));gz.display.mover.style.top=gu.viewOffset+"px";var gq=db(gz);if(!gr&&gq==0&&!gt.force&&gu.renderedView==gu.view&&(gu.updateLineNumbers==null||gu.updateLineNumbers>=gu.viewTo)){return false}var gv=dO();if(gq>4){gu.lineDiv.style.display="none"}cl(gz,gu.updateLineNumbers,gt.dims);if(gq>4){gu.lineDiv.style.display=""}gu.renderedView=gu.view;if(gv&&dO()!=gv&&gv.offsetHeight){gv.focus()}d2(gu.cursorDiv);d2(gu.selectionDiv);gu.gutters.style.height=gu.sizer.style.minHeight=0;if(gr){gu.lastWrapHeight=gt.wrapperHeight;gu.lastWrapWidth=gt.wrapperWidth;eh(gz,400)}gu.updateLineNumbers=null;return true}function ci(gr,gu){var gq=gu.viewport;for(var gt=true;;gt=false){if(!gt||!gr.options.lineWrapping||gu.oldDisplayWidth==dl(gr)){if(gq&&gq.top!=null){gq={top:Math.min(gr.doc.height+bH(gr.display)-cU(gr),gq.top)}}gu.visible=b5(gr.display,gr.doc,gq);if(gu.visible.from>=gr.display.viewFrom&&gu.visible.to<=gr.display.viewTo){break}}if(!B(gr,gu)){break}a8(gr);var gs=dA(gr);bB(gr);e2(gr,gs);dz(gr,gs)}gu.signal(gr,"update",gr);if(gr.display.viewFrom!=gr.display.reportedViewFrom||gr.display.viewTo!=gr.display.reportedViewTo){gu.signal(gr,"viewportChange",gr,gr.display.viewFrom,gr.display.viewTo);gr.display.reportedViewFrom=gr.display.viewFrom;gr.display.reportedViewTo=gr.display.viewTo}}function dT(gr,gq){var gt=new aH(gr,gq);if(B(gr,gt)){a8(gr);ci(gr,gt);var gs=dA(gr);bB(gr);e2(gr,gs);dz(gr,gs);gt.finish()}}function dz(gq,gr){gq.display.sizer.style.minHeight=gr.docHeight+"px";gq.display.heightForcer.style.top=gr.docHeight+"px";gq.display.gutters.style.height=(gr.docHeight+gq.display.barHeight+cS(gq))+"px"}function a8(gx){var gv=gx.display;var gr=gv.lineDiv.offsetTop;for(var gs=0;gs<gv.view.length;gs++){var gy=gv.view[gs],gz;if(gy.hidden){continue}if(dK&&k<8){var gu=gy.node.offsetTop+gy.node.offsetHeight;gz=gu-gr;gr=gu}else{var gt=gy.node.getBoundingClientRect();gz=gt.bottom-gt.top}var gw=gy.line.height-gz;if(gz<2){gz=aX(gv)}if(gw>0.001||gw<-0.001){gc(gy.line,gz);ca(gy.line);if(gy.rest){for(var gq=0;gq<gy.rest.length;gq++){ca(gy.rest[gq])}}}}}function ca(gq){if(gq.widgets){for(var gr=0;gr<gq.widgets.length;++gr){gq.widgets[gr].height=gq.widgets[gr].node.parentNode.offsetHeight}}}function fi(gq){var gv=gq.display,gt={},gs={};var gu=gv.gutters.clientLeft;for(var gw=gv.gutters.firstChild,gr=0;gw;gw=gw.nextSibling,++gr){gt[gq.options.gutters[gr]]=gw.offsetLeft+gw.clientLeft+gu;gs[gq.options.gutters[gr]]=gw.clientWidth}return{fixedPos:dX(gv),gutterTotalWidth:gv.gutters.offsetWidth,gutterLeft:gt,gutterWidth:gs,wrapperWidth:gv.wrapper.clientWidth}}function cl(gB,gs,gA){var gx=gB.display,gD=gB.options.lineNumbers;var gq=gx.lineDiv,gC=gq.firstChild;function gw(gF){var gE=gF.nextSibling;if(cZ&&b6&&gB.display.currentWheelTarget==gF){gF.style.display="none"}else{gF.parentNode.removeChild(gF)}return gE}var gy=gx.view,gv=gx.viewFrom;for(var gt=0;gt<gy.length;gt++){var gu=gy[gt];if(gu.hidden){}else{if(!gu.node||gu.node.parentNode!=gq){var gr=aE(gB,gu,gv,gA);gq.insertBefore(gr,gC)}else{while(gC!=gu.node){gC=gw(gC)}var gz=gD&&gs!=null&&gs<=gv&&gu.lineNumber;if(gu.changes){if(dh(gu.changes,"gutter")>-1){gz=false}ab(gB,gu,gv,gA)}if(gz){d2(gu.lineNumber);gu.lineNumber.appendChild(document.createTextNode(ev(gB.options,gv)))}gC=gu.node.nextSibling}}gv+=gu.size}while(gC){gC=gw(gC)}}function ab(gq,gs,gu,gv){for(var gr=0;gr<gs.changes.length;gr++){var gt=gs.changes[gr];if(gt=="text"){fq(gq,gs)}else{if(gt=="gutter"){df(gq,gs,gu,gv)}else{if(gt=="class"){dG(gs)}else{if(gt=="widget"){an(gq,gs,gv)}}}}}gs.changes=null}function fM(gq){if(gq.node==gq.text){gq.node=f9("div",null,null,"position: relative");if(gq.text.parentNode){gq.text.parentNode.replaceChild(gq.node,gq.text)}gq.node.appendChild(gq.text);if(dK&&k<8){gq.node.style.zIndex=2}}return gq.node}function ez(gr){var gq=gr.bgClass?gr.bgClass+" "+(gr.line.bgClass||""):gr.line.bgClass;if(gq){gq+=" CodeMirror-linebackground"}if(gr.background){if(gq){gr.background.className=gq}else{gr.background.parentNode.removeChild(gr.background);gr.background=null}}else{if(gq){var gs=fM(gr);gr.background=gs.insertBefore(f9("div",null,gq),gs.firstChild)}}}function dV(gq,gr){var gs=gq.display.externalMeasured;if(gs&&gs.line==gr.line){gq.display.externalMeasured=null;gr.measure=gs.measure;return gs.built}return eV(gq,gr)}function fq(gq,gt){var gr=gt.text.className;var gs=dV(gq,gt);if(gt.text==gt.node){gt.node=gs.pre}gt.text.parentNode.replaceChild(gs.pre,gt.text);gt.text=gs.pre;if(gs.bgClass!=gt.bgClass||gs.textClass!=gt.textClass){gt.bgClass=gs.bgClass;gt.textClass=gs.textClass;dG(gt)}else{if(gr){gt.text.className=gr}}}function dG(gr){ez(gr);if(gr.line.wrapClass){fM(gr).className=gr.line.wrapClass}else{if(gr.node!=gr.text){gr.node.className=""}}var gq=gr.textClass?gr.textClass+" "+(gr.line.textClass||""):gr.line.textClass;gr.text.className=gq||""}function df(gy,gw,gv,gx){if(gw.gutter){gw.node.removeChild(gw.gutter);gw.gutter=null}if(gw.gutterBackground){gw.node.removeChild(gw.gutterBackground);gw.gutterBackground=null}if(gw.line.gutterClass){var gr=fM(gw);gw.gutterBackground=f9("div",null,"CodeMirror-gutter-background "+gw.line.gutterClass,"left: "+(gy.options.fixedGutter?gx.fixedPos:-gx.gutterTotalWidth)+"px; width: "+gx.gutterTotalWidth+"px");gr.insertBefore(gw.gutterBackground,gw.text)}var gt=gw.line.gutterMarkers;if(gy.options.lineNumbers||gt){var gr=fM(gw);var gu=gw.gutter=f9("div",null,"CodeMirror-gutter-wrapper","left: "+(gy.options.fixedGutter?gx.fixedPos:-gx.gutterTotalWidth)+"px");gy.display.input.setUneditable(gu);gr.insertBefore(gu,gw.text);if(gw.line.gutterClass){gu.className+=" "+gw.line.gutterClass}if(gy.options.lineNumbers&&(!gt||!gt["CodeMirror-linenumbers"])){gw.lineNumber=gu.appendChild(f9("div",ev(gy.options,gv),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+gx.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+gy.display.lineNumInnerWidth+"px"))}if(gt){for(var gs=0;gs<gy.options.gutters.length;++gs){var gq=gy.options.gutters[gs],gz=gt.hasOwnProperty(gq)&&gt[gq];if(gz){gu.appendChild(f9("div",[gz],"CodeMirror-gutter-elt","left: "+gx.gutterLeft[gq]+"px; width: "+gx.gutterWidth[gq]+"px"))}}}}}function an(gq,gr,gu){if(gr.alignable){gr.alignable=null}for(var gt=gr.node.firstChild,gs;gt;gt=gs){var gs=gt.nextSibling;if(gt.className=="CodeMirror-linewidget"){gr.node.removeChild(gt)}}fy(gq,gr,gu)}function aE(gq,gs,gt,gu){var gr=dV(gq,gs);gs.text=gs.node=gr.pre;if(gr.bgClass){gs.bgClass=gr.bgClass}if(gr.textClass){gs.textClass=gr.textClass}dG(gs);df(gq,gs,gt,gu);fy(gq,gs,gu);return gs.node}function fy(gq,gs,gt){ge(gq,gs.line,gs,gt,true);if(gs.rest){for(var gr=0;gr<gs.rest.length;gr++){ge(gq,gs.rest[gr],gs,gt,false)}}}function ge(gy,gz,gv,gx,gt){if(!gz.widgets){return}var gq=fM(gv);for(var gs=0,gw=gz.widgets;gs<gw.length;++gs){var gu=gw[gs],gr=f9("div",[gu.node],"CodeMirror-linewidget");if(!gu.handleMouseEvents){gr.setAttribute("cm-ignore-events","true")}bE(gu,gr,gv,gx);gy.display.input.setUneditable(gr);if(gt&&gu.above){gq.insertBefore(gr,gv.gutter||gv.text)}else{gq.appendChild(gr)}ae(gu,"redraw")}}function bE(gt,gs,gq,gu){if(gt.noHScroll){(gq.alignable||(gq.alignable=[])).push(gs);var gr=gu.wrapperWidth;gs.style.left=gu.fixedPos+"px";if(!gt.coverGutter){gr-=gu.gutterTotalWidth;gs.style.paddingLeft=gu.gutterTotalWidth+"px"}gs.style.width=gr+"px"}if(gt.coverGutter){gs.style.zIndex=5;gs.style.position="relative";if(!gt.noHScroll){gs.style.marginLeft=-gu.gutterTotalWidth+"px"}}}var W=H.Pos=function(gq,gr){if(!(this instanceof W)){return new W(gq,gr)}this.line=gq;this.ch=gr};var ce=H.cmpPos=function(gr,gq){return gr.line-gq.line||gr.ch-gq.ch};function ch(gq){return W(gq.line,gq.ch)}function bw(gr,gq){return ce(gr,gq)<0?gq:gr}function aq(gr,gq){return ce(gr,gq)<0?gr:gq}function r(gq){if(!gq.state.focused){gq.display.input.focus();cA(gq)}}var bl=null;function f5(gE,gu,gs,gr,gD){var gC=gE.doc;gE.display.shift=false;if(!gr){gr=gC.sel}var gt=gE.state.pasteIncoming||gD=="paste";var gx=gC.splitLines(gu),gq=null;if(gt&&gr.ranges.length>1){if(bl&&bl.join("\n")==gu){if(gr.ranges.length%bl.length==0){gq=[];for(var gv=0;gv<bl.length;gv++){gq.push(gC.splitLines(bl[gv]))}}}else{if(gx.length==gr.ranges.length){gq=bR(gx,function(gF){return[gF]})}}}for(var gv=gr.ranges.length-1;gv>=0;gv--){var gw=gr.ranges[gv];var gB=gw.from(),gA=gw.to();if(gw.empty()){if(gs&&gs>0){gB=W(gB.line,gB.ch-gs)}else{if(gE.state.overwrite&&!gt){gA=W(gA.line,Math.min(fk(gC,gA.line).text.length,gA.ch+fL(gx).length))}}}var gy=gE.curOp.updateInput;var gz={from:gB,to:gA,text:gq?gq[gv%gq.length]:gx,origin:gD||(gt?"paste":gE.state.cutIncoming?"cut":"+input")};bf(gE.doc,gz);ae(gE,"inputRead",gE,gz)}if(gu&&!gt){f2(gE,gu)}fK(gE);gE.curOp.updateInput=gy;gE.curOp.typing=true;gE.state.pasteIncoming=gE.state.cutIncoming=false}function a9(gs,gq){var gr=gs.clipboardData&&gs.clipboardData.getData("text/plain");if(gr){gs.preventDefault();if(!gq.isReadOnly()&&!gq.options.disableInput){cL(gq,function(){f5(gq,gr,0,null,"paste")})}return true}}function f2(gq,gu){if(!gq.options.electricChars||!gq.options.smartIndent){return}var gv=gq.doc.sel;for(var gt=gv.ranges.length-1;gt>=0;gt--){var gr=gv.ranges[gt];if(gr.head.ch>100||(gt&&gv.ranges[gt-1].head.line==gr.head.line)){continue}var gw=gq.getModeAt(gr.head);var gx=false;if(gw.electricChars){for(var gs=0;gs<gw.electricChars.length;gs++){if(gu.indexOf(gw.electricChars.charAt(gs))>-1){gx=ad(gq,gr.head.line,"smart");break}}}else{if(gw.electricInput){if(gw.electricInput.test(fk(gq.doc,gr.head.line).text.slice(0,gr.head.ch))){gx=ad(gq,gr.head.line,"smart")}}}if(gx){ae(gq,"electricInput",gq,gr.head.line)}}}function dj(gq){var gv=[],gs=[];for(var gt=0;gt<gq.doc.sel.ranges.length;gt++){var gr=gq.doc.sel.ranges[gt].head.line;var gu={anchor:W(gr,0),head:W(gr+1,0)};gs.push(gu);gv.push(gq.getRange(gu.anchor,gu.head))}return{text:gv,ranges:gs}}function fV(gq){gq.setAttribute("autocorrect","off");gq.setAttribute("autocapitalize","off");gq.setAttribute("spellcheck","false")}function Y(gq){this.cm=gq;this.prevInput="";this.pollingFast=false;this.polling=new gp();this.inaccurateSelection=false;this.hasSelection=false;this.composing=null}function aW(){var gq=f9("textarea",null,null,"position: absolute; padding: 0; width: 1px; height: 1em; outline: none");var gr=f9("div",[gq],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");if(cZ){gq.style.width="1000px"}else{gq.setAttribute("wrap","off")}if(e5){gq.style.border="1px solid black"}fV(gq);return gr}Y.prototype=aM({init:function(gs){var gr=this,gq=this.cm;var gv=this.wrapper=aW();var gt=this.textarea=gv.firstChild;gs.wrapper.insertBefore(gv,gs.wrapper.firstChild);if(e5){gt.style.width="0px"}bW(gt,"input",function(){if(dK&&k>=9&&gr.hasSelection){gr.hasSelection=null}gr.poll()});bW(gt,"paste",function(gw){if(aQ(gq,gw)||a9(gw,gq)){return}gq.state.pasteIncoming=true;gr.fastPoll()});function gu(gx){if(aQ(gq,gx)){return}if(gq.somethingSelected()){bl=gq.getSelections();if(gr.inaccurateSelection){gr.prevInput="";gr.inaccurateSelection=false;gt.value=bl.join("\n");dL(gt)}}else{if(!gq.options.lineWiseCopyCut){return}else{var gw=dj(gq);bl=gw.text;if(gx.type=="cut"){gq.setSelections(gw.ranges,null,Z)}else{gr.prevInput="";gt.value=gw.text.join("\n");dL(gt)}}}if(gx.type=="cut"){gq.state.cutIncoming=true}}bW(gt,"cut",gu);bW(gt,"copy",gu);bW(gs.scroller,"paste",function(gw){if(ba(gs,gw)||aQ(gq,gw)){return}gq.state.pasteIncoming=true;gr.focus()});bW(gs.lineSpace,"selectstart",function(gw){if(!ba(gs,gw)){cF(gw)}});bW(gt,"compositionstart",function(){var gw=gq.getCursor("from");if(gr.composing){gr.composing.range.clear()}gr.composing={start:gw,range:gq.markText(gw,gq.getCursor("to"),{className:"CodeMirror-composing"})}});bW(gt,"compositionend",function(){if(gr.composing){gr.poll();gr.composing.range.clear();gr.composing=null}})},prepareSelection:function(){var gr=this.cm,gv=gr.display,gu=gr.doc;var gq=fN(gr);if(gr.options.moveInputWithCursor){var gw=dU(gr,gu.sel.primary().head,"div");var gs=gv.wrapper.getBoundingClientRect(),gt=gv.lineDiv.getBoundingClientRect();gq.teTop=Math.max(0,Math.min(gv.wrapper.clientHeight-10,gw.top+gt.top-gs.top));gq.teLeft=Math.max(0,Math.min(gv.wrapper.clientWidth-10,gw.left+gt.left-gs.left))}return gq},showSelection:function(gs){var gq=this.cm,gr=gq.display;bQ(gr.cursorDiv,gs.cursors);bQ(gr.selectionDiv,gs.selection);if(gs.teTop!=null){this.wrapper.style.top=gs.teTop+"px";this.wrapper.style.left=gs.teLeft+"px"}},reset:function(gu){if(this.contextMenuPending){return}var gr,gt,gq=this.cm,gw=gq.doc;if(gq.somethingSelected()){this.prevInput="";var gs=gw.sel.primary();gr=c9&&(gs.to().line-gs.from().line>100||(gt=gq.getSelection()).length>1000);var gv=gr?"-":gt||gq.getSelection();this.textarea.value=gv;if(gq.state.focused){dL(this.textarea)}if(dK&&k>=9){this.hasSelection=gv}}else{if(!gu){this.prevInput=this.textarea.value="";if(dK&&k>=9){this.hasSelection=null}}}this.inaccurateSelection=gr},getField:function(){return this.textarea},supportsTouch:function(){return false},focus:function(){if(this.cm.options.readOnly!="nocursor"&&(!ei||dO()!=this.textarea)){try{this.textarea.focus()}catch(gq){}}},blur:function(){this.textarea.blur()},resetPosition:function(){this.wrapper.style.top=this.wrapper.style.left=0},receivedFocus:function(){this.slowPoll()},slowPoll:function(){var gq=this;if(gq.pollingFast){return}gq.polling.set(this.cm.options.pollInterval,function(){gq.poll();if(gq.cm.state.focused){gq.slowPoll()}})},fastPoll:function(){var gr=false,gq=this;gq.pollingFast=true;function gs(){var gt=gq.poll();if(!gt&&!gr){gr=true;gq.polling.set(60,gs)}else{gq.pollingFast=false;gq.slowPoll()}}gq.polling.set(20,gs)},poll:function(){var gq=this.cm,gt=this.textarea,gu=this.prevInput;if(this.contextMenuPending||!gq.state.focused||(br(gt)&&!gu&&!this.composing)||gq.isReadOnly()||gq.options.disableInput||gq.state.keySeq){return false}var gw=gt.value;if(gw==gu&&!gq.somethingSelected()){return false}if(dK&&k>=9&&this.hasSelection===gw||b6&&/[\uf700-\uf7ff]/.test(gw)){gq.display.input.reset();return false}if(gq.doc.sel==gq.display.selForContextMenu){var gv=gw.charCodeAt(0);if(gv==8203&&!gu){gu="\u200b"}if(gv==8666){this.reset();return this.cm.execCommand("undo")}}var gx=0,gr=Math.min(gu.length,gw.length);while(gx<gr&&gu.charCodeAt(gx)==gw.charCodeAt(gx)){++gx}var gs=this;cL(gq,function(){f5(gq,gw.slice(gx),gu.length-gx,null,gs.composing?"*compose":null);if(gw.length>1000||gw.indexOf("\n")>-1){gt.value=gs.prevInput=""}else{gs.prevInput=gw}if(gs.composing){gs.composing.range.clear();gs.composing.range=gq.markText(gs.composing.start,gq.getCursor("to"),{className:"CodeMirror-composing"})}});return true},ensurePolled:function(){if(this.pollingFast&&this.poll()){this.pollingFast=false}},onKeyPress:function(){if(dK&&k>=9){this.hasSelection=null}this.fastPoll()},onContextMenu:function(gv){var gA=this,gB=gA.cm,gx=gB.display,gr=gA.textarea;var gz=cm(gB,gv),gq=gx.scroller.scrollTop;if(!gz||d4){return}var gu=gB.options.resetSelectionOnContextMenu;if(gu&&gB.doc.sel.contains(gz)==-1){c1(gB,bT)(gB.doc,eW(gz),Z)}var gw=gr.style.cssText,gE=gA.wrapper.style.cssText;gA.wrapper.style.cssText="position: absolute";var gD=gA.wrapper.getBoundingClientRect();gr.style.cssText="position: absolute; width: 30px; height: 30px; top: "+(gv.clientY-gD.top-5)+"px; left: "+(gv.clientX-gD.left-5)+"px; z-index: 1000; background: "+(dK?"rgba(255, 255, 255, .05)":"transparent")+"; outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);";if(cZ){var gC=window.scrollY}gx.input.focus();if(cZ){window.scrollTo(null,gC)}gx.input.reset();if(!gB.somethingSelected()){gr.value=gA.prevInput=" "}gA.contextMenuPending=true;gx.selForContextMenu=gB.doc.sel;clearTimeout(gx.detectingSelectAll);function gt(){if(gr.selectionStart!=null){var gF=gB.somethingSelected();var gG="\u200b"+(gF?gr.value:"");gr.value="\u21da";gr.value=gG;gA.prevInput=gF?"":"\u200b";gr.selectionStart=1;gr.selectionEnd=gG.length;gx.selForContextMenu=gB.doc.sel}}function gy(){gA.contextMenuPending=false;gA.wrapper.style.cssText=gE;gr.style.cssText=gw;if(dK&&k<9){gx.scrollbars.setScrollTop(gx.scroller.scrollTop=gq)}if(gr.selectionStart!=null){if(!dK||(dK&&k<9)){gt()}var gF=0,gG=function(){if(gx.selForContextMenu==gB.doc.sel&&gr.selectionStart==0&&gr.selectionEnd>0&&gA.prevInput=="\u200b"){c1(gB,eG.selectAll)(gB)}else{if(gF++<10){gx.detectingSelectAll=setTimeout(gG,500)}else{gx.input.reset()}}};gx.detectingSelectAll=setTimeout(gG,200)}}if(dK&&k>=9){gt()}if(gg){eu(gv);var gs=function(){ef(window,"mouseup",gs);setTimeout(gy,20)};bW(window,"mouseup",gs)}else{setTimeout(gy,50)}},readOnlyChanged:function(gq){if(!gq){this.reset()}},setUneditable:f1,needsContentAttribute:false},Y.prototype);function dv(gq){this.cm=gq;this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null;this.polling=new gp();this.gracePeriod=false}dv.prototype=aM({init:function(gt){var gs=this,gq=gs.cm;var gu=gs.div=gt.lineDiv;fV(gu);bW(gu,"paste",function(gv){if(!aQ(gq,gv)){a9(gv,gq)}});bW(gu,"compositionstart",function(gz){var gy=gz.data;gs.composing={sel:gq.doc.sel,data:gy,startData:gy};if(!gy){return}var gw=gq.doc.sel.primary();var gv=gq.getLine(gw.head.line);var gx=gv.indexOf(gy,Math.max(0,gw.head.ch-gy.length));if(gx>-1&&gx<=gw.head.ch){gs.composing.sel=eW(W(gw.head.line,gx),W(gw.head.line,gx+gy.length))}});bW(gu,"compositionupdate",function(gv){gs.composing.data=gv.data});bW(gu,"compositionend",function(gw){var gv=gs.composing;if(!gv){return}if(gw.data!=gv.startData&&!/\u200b/.test(gw.data)){gv.data=gw.data}setTimeout(function(){if(!gv.handled){gs.applyComposition(gv)}if(gs.composing==gv){gs.composing=null}},50)});bW(gu,"touchstart",function(){gs.forceCompositionEnd()});bW(gu,"input",function(){if(gs.composing){return}if(gq.isReadOnly()||!gs.pollContent()){cL(gs.cm,function(){ah(gq)})}});function gr(gy){if(aQ(gq,gy)){return}if(gq.somethingSelected()){bl=gq.getSelections();if(gy.type=="cut"){gq.replaceSelection("",null,"cut")}}else{if(!gq.options.lineWiseCopyCut){return}else{var gw=dj(gq);bl=gw.text;if(gy.type=="cut"){gq.operation(function(){gq.setSelections(gw.ranges,0,Z);gq.replaceSelection("",null,"cut")})}}}if(gy.clipboardData&&!e5){gy.preventDefault();gy.clipboardData.clearData();gy.clipboardData.setData("text/plain",bl.join("\n"))}else{var gx=aW(),gz=gx.firstChild;gq.display.lineSpace.insertBefore(gx,gq.display.lineSpace.firstChild);gz.value=bl.join("\n");var gv=document.activeElement;dL(gz);setTimeout(function(){gq.display.lineSpace.removeChild(gx);gv.focus()},50)}}bW(gu,"copy",gr);bW(gu,"cut",gr)},prepareSelection:function(){var gq=fN(this.cm,false);gq.focus=this.cm.state.focused;return gq},showSelection:function(gq){if(!gq||!this.cm.display.view.length){return}if(gq.focus){this.showPrimarySelection()}this.showMultipleSelections(gq)},showPrimarySelection:function(){var gu=window.getSelection(),gx=this.cm.doc.sel.primary();var gv=ay(this.cm,gu.anchorNode,gu.anchorOffset);var gz=ay(this.cm,gu.focusNode,gu.focusOffset);if(gv&&!gv.bad&&gz&&!gz.bad&&ce(aq(gv,gz),gx.from())==0&&ce(bw(gv,gz),gx.to())==0){return}var gt=cy(this.cm,gx.from());var gy=cy(this.cm,gx.to());if(!gt&&!gy){return}var gB=this.cm.display.view;var gw=gu.rangeCount&&gu.getRangeAt(0);if(!gt){gt={node:gB[0].measure.map[2],offset:0}}else{if(!gy){var gs=gB[gB.length-1].measure;var gr=gs.maps?gs.maps[gs.maps.length-1]:gs.map;gy={node:gr[gr.length-1],offset:gr[gr.length-2]-gr[gr.length-3]}}}try{var gq=ck(gt.node,gt.offset,gy.offset,gy.node)}catch(gA){}if(gq){if(!cn&&this.cm.state.focused){gu.collapse(gt.node,gt.offset);if(!gq.collapsed){gu.addRange(gq)}}else{gu.removeAllRanges();gu.addRange(gq)}if(gw&&gu.anchorNode==null){gu.addRange(gw)}else{if(cn){this.startGracePeriod()}}}this.rememberSelection()},startGracePeriod:function(){var gq=this;clearTimeout(this.gracePeriod);this.gracePeriod=setTimeout(function(){gq.gracePeriod=false;if(gq.selectionChanged()){gq.cm.operation(function(){gq.cm.curOp.selectionChanged=true})}},20)},showMultipleSelections:function(gq){bQ(this.cm.display.cursorDiv,gq.cursors);bQ(this.cm.display.selectionDiv,gq.selection)},rememberSelection:function(){var gq=window.getSelection();this.lastAnchorNode=gq.anchorNode;this.lastAnchorOffset=gq.anchorOffset;this.lastFocusNode=gq.focusNode;this.lastFocusOffset=gq.focusOffset},selectionInEditor:function(){var gr=window.getSelection();if(!gr.rangeCount){return false}var gq=gr.getRangeAt(0).commonAncestorContainer;return gh(this.div,gq)},focus:function(){if(this.cm.options.readOnly!="nocursor"){this.div.focus()}},blur:function(){this.div.blur()},getField:function(){return this.div},supportsTouch:function(){return true},receivedFocus:function(){var gq=this;if(this.selectionInEditor()){this.pollSelection()}else{cL(this.cm,function(){gq.cm.curOp.selectionChanged=true})}function gr(){if(gq.cm.state.focused){gq.pollSelection();gq.polling.set(gq.cm.options.pollInterval,gr)}}this.polling.set(this.cm.options.pollInterval,gr)},selectionChanged:function(){var gq=window.getSelection();return gq.anchorNode!=this.lastAnchorNode||gq.anchorOffset!=this.lastAnchorOffset||gq.focusNode!=this.lastFocusNode||gq.focusOffset!=this.lastFocusOffset},pollSelection:function(){if(!this.composing&&!this.gracePeriod&&this.selectionChanged()){var gt=window.getSelection(),gq=this.cm;this.rememberSelection();var gr=ay(gq,gt.anchorNode,gt.anchorOffset);var gs=ay(gq,gt.focusNode,gt.focusOffset);if(gr&&gs){cL(gq,function(){bT(gq.doc,eW(gr,gs),Z);if(gr.bad||gs.bad){gq.curOp.selectionChanged=true}})}}},pollContent:function(){var gA=this.cm,gK=gA.display,gI=gA.doc.sel.primary();var gJ=gI.from(),gu=gI.to();if(gJ.line<gK.viewFrom||gu.line>gK.viewTo-1){return false}var gx;if(gJ.line==gK.viewFrom||(gx=dr(gA,gJ.line))==0){var gv=bM(gK.view[0].line);var gz=gK.view[0].node}else{var gv=bM(gK.view[gx].line);var gz=gK.view[gx-1].node.nextSibling}var gH=dr(gA,gu.line);if(gH==gK.view.length-1){var gC=gK.viewTo-1;var gF=gK.lineDiv.lastChild}else{var gC=bM(gK.view[gH+1].line)-1;var gF=gK.view[gH+1].node.previousSibling}var gL=gA.doc.splitLines(f6(gA,gz,gF,gv,gC));var gE=gb(gA.doc,W(gv,0),W(gC,fk(gA.doc,gC).text.length));while(gL.length>1&&gE.length>1){if(fL(gL)==fL(gE)){gL.pop();gE.pop();gC--}else{if(gL[0]==gE[0]){gL.shift();gE.shift();gv++}else{break}}}var gG=0,gs=0;var gB=gL[0],gr=gE[0],gq=Math.min(gB.length,gr.length);while(gG<gq&&gB.charCodeAt(gG)==gr.charCodeAt(gG)){++gG}var gy=fL(gL),gM=fL(gE);var gt=Math.min(gy.length-(gL.length==1?gG:0),gM.length-(gE.length==1?gG:0));while(gs<gt&&gy.charCodeAt(gy.length-gs-1)==gM.charCodeAt(gM.length-gs-1)){++gs}gL[gL.length-1]=gy.slice(0,gy.length-gs);gL[0]=gL[0].slice(gG);var gw=W(gv,gG);var gD=W(gC,gE.length?fL(gE).length-gs:0);if(gL.length>1||gL[0]||ce(gw,gD)){a0(gA.doc,gL,gw,gD,"+input");return true}},ensurePolled:function(){this.forceCompositionEnd()},reset:function(){this.forceCompositionEnd()},forceCompositionEnd:function(){if(!this.composing||this.composing.handled){return}this.applyComposition(this.composing);this.composing.handled=true;this.div.blur();this.div.focus()},applyComposition:function(gq){if(this.cm.isReadOnly()){c1(this.cm,ah)(this.cm)}else{if(gq.data&&gq.data!=gq.startData){c1(this.cm,f5)(this.cm,gq.data,0,gq.sel)}}},setUneditable:function(gq){gq.contentEditable="false"},onKeyPress:function(gq){gq.preventDefault();if(!this.cm.isReadOnly()){c1(this.cm,f5)(this.cm,String.fromCharCode(gq.charCode==null?gq.keyCode:gq.charCode),0)}},readOnlyChanged:function(gq){this.div.contentEditable=String(gq!="nocursor")},onContextMenu:f1,resetPosition:f1,needsContentAttribute:true},dv.prototype);function cy(gw,gu){var gv=fg(gw,gu.line);if(!gv||gv.hidden){return null}var gy=fk(gw.doc,gu.line);var gr=cs(gv,gy,gu.line);var gs=a(gy),gt="left";if(gs){var gq=aF(gs,gu.ch);gt=gq%2?"right":"left"}var gx=aK(gr.map,gu.ch,gt);gx.offset=gx.collapse=="right"?gx.end:gx.start;return gx}function ew(gr,gq){if(gq){gr.bad=true}return gr}function ay(gq,gt,gv){var gu;if(gt==gq.display.lineDiv){gu=gq.display.lineDiv.childNodes[gv];if(!gu){return ew(gq.clipPos(W(gq.display.viewTo-1)),true)}gt=null;gv=0}else{for(gu=gt;;gu=gu.parentNode){if(!gu||gu==gq.display.lineDiv){return null}if(gu.parentNode&&gu.parentNode==gq.display.lineDiv){break}}}for(var gs=0;gs<gq.display.view.length;gs++){var gr=gq.display.view[gs];if(gr.node==gu){return aa(gr,gt,gv)}}}function aa(gy,gu,gw){var gs=gy.text.firstChild,gt=false;if(!gu||!gh(gs,gu)){return ew(W(bM(gy.line),0),true)}if(gu==gs){gt=true;gu=gs.childNodes[gw];gw=0;if(!gu){var gE=gy.rest?fL(gy.rest):gy.line;return ew(W(bM(gE),gE.text.length),gt)}}var gv=gu.nodeType==3?gu:null,gC=gu;if(!gv&&gu.childNodes.length==1&&gu.firstChild.nodeType==3){gv=gu.firstChild;if(gw){gw=gv.nodeValue.length}}while(gC.parentNode!=gs){gC=gC.parentNode}var gr=gy.measure,gA=gr.maps;function gx(gH,gM,gJ){for(var gL=-1;gL<(gA?gA.length:0);gL++){var gG=gL<0?gr.map:gA[gL];for(var gK=0;gK<gG.length;gK+=3){var gI=gG[gK+2];if(gI==gH||gI==gM){var gN=bM(gL<0?gy.line:gy.rest[gL]);var gF=gG[gK]+gJ;if(gJ<0||gI!=gH){gF=gG[gK+(gJ?1:0)]}return W(gN,gF)}}}}var gD=gx(gv,gC,gw);if(gD){return ew(gD,gt)}for(var gq=gC.nextSibling,gz=gv?gv.nodeValue.length-gw:0;gq;gq=gq.nextSibling){gD=gx(gq,gq.firstChild,0);if(gD){return ew(W(gD.line,gD.ch-gz),gt)}else{gz+=gq.textContent.length}}for(var gB=gC.previousSibling,gz=gw;gB;gB=gB.previousSibling){gD=gx(gB,gB.firstChild,-1);if(gD){return ew(W(gD.line,gD.ch+gz),gt)}else{gz+=gq.textContent.length}}}function f6(gy,gw,gx,gt,gr){var gz="",gs=false,gq=gy.doc.lineSeparator();function gu(gA){return function(gB){return gB.id==gA}}function gv(gE){if(gE.nodeType==1){var gB=gE.getAttribute("cm-text");if(gB!=null){if(gB==""){gB=gE.textContent.replace(/\u200b/g,"")}gz+=gB;return}var gD=gE.getAttribute("cm-marker"),gA;if(gD){var gF=gy.findMarks(W(gt,0),W(gr+1,0),gu(+gD));if(gF.length&&(gA=gF[0].find())){gz+=gb(gy.doc,gA.from,gA.to).join(gq)}return}if(gE.getAttribute("contenteditable")=="false"){return}for(var gC=0;gC<gE.childNodes.length;gC++){gv(gE.childNodes[gC])}if(/^(pre|div|p)$/i.test(gE.nodeName)){gs=true}}else{if(gE.nodeType==3){var gG=gE.nodeValue;if(!gG){return}if(gs){gz+=gq;gs=false}gz+=gG}}}for(;;){gv(gw);if(gw==gx){break}gw=gw.nextSibling}return gz}H.inputStyles={textarea:Y,contenteditable:dv};function ga(gq,gr){this.ranges=gq;this.primIndex=gr}ga.prototype={primary:function(){return this.ranges[this.primIndex]},equals:function(gq){if(gq==this){return true}if(gq.primIndex!=this.primIndex||gq.ranges.length!=this.ranges.length){return false}for(var gs=0;gs<this.ranges.length;gs++){var gr=this.ranges[gs],gt=gq.ranges[gs];if(ce(gr.anchor,gt.anchor)!=0||ce(gr.head,gt.head)!=0){return false}}return true},deepCopy:function(){for(var gq=[],gr=0;gr<this.ranges.length;gr++){gq[gr]=new dY(ch(this.ranges[gr].anchor),ch(this.ranges[gr].head))}return new ga(gq,this.primIndex)},somethingSelected:function(){for(var gq=0;gq<this.ranges.length;gq++){if(!this.ranges[gq].empty()){return true}}return false},contains:function(gt,gq){if(!gq){gq=gt}for(var gs=0;gs<this.ranges.length;gs++){var gr=this.ranges[gs];if(ce(gq,gr.from())>=0&&ce(gt,gr.to())<=0){return gs}}return -1}};function dY(gq,gr){this.anchor=gq;this.head=gr}dY.prototype={from:function(){return aq(this.anchor,this.head)},to:function(){return bw(this.anchor,this.head)},empty:function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch}};function cv(gq,gx){var gs=gq[gx];gq.sort(function(gA,gz){return ce(gA.from(),gz.from())});gx=dh(gq,gs);for(var gu=1;gu<gq.length;gu++){var gy=gq[gu],gr=gq[gu-1];if(ce(gr.to(),gy.from())>=0){var gv=aq(gr.from(),gy.from()),gw=bw(gr.to(),gy.to());var gt=gr.empty()?gy.from()==gy.head:gr.from()==gr.head;if(gu<=gx){--gx}gq.splice(--gu,2,new dY(gt?gw:gv,gt?gv:gw))}}return new ga(gq,gx)}function eW(gq,gr){return new ga([new dY(gq,gr||gq)],0)}function c4(gq,gr){return Math.max(gq.first,Math.min(gr,gq.first+gq.size-1))}function fP(gr,gs){if(gs.line<gr.first){return W(gr.first,0)}var gq=gr.first+gr.size-1;if(gs.line>gq){return W(gq,fk(gr,gq).text.length)}return fx(gs,fk(gr,gs.line).text.length)}function fx(gs,gr){var gq=gs.ch;if(gq==null||gq>gr){return W(gs.line,gr)}else{if(gq<0){return W(gs.line,0)}else{return gs}}}function b8(gr,gq){return gq>=gr.first&&gq<gr.first+gr.size}function d0(gs,gt){for(var gq=[],gr=0;gr<gt.length;gr++){gq[gr]=fP(gs,gt[gr])}return gq}function fA(gv,gr,gu,gq){if(gv.cm&&gv.cm.display.shift||gv.extend){var gt=gr.anchor;if(gq){var gs=ce(gu,gt)<0;if(gs!=(ce(gq,gt)<0)){gt=gu;gu=gq}else{if(gs!=(ce(gu,gq)<0)){gu=gq}}}return new dY(gt,gu)}else{return new dY(gq||gu,gu)}}function f3(gt,gs,gq,gr){bT(gt,new ga([fA(gt,gt.sel.primary(),gs,gq)],0),gr)}function av(gv,gu,gs){for(var gr=[],gt=0;gt<gv.sel.ranges.length;gt++){gr[gt]=fA(gv,gv.sel.ranges[gt],gu[gt],null)}var gq=cv(gr,gv.sel.primIndex);bT(gv,gq,gs)}function e(gu,gt,gr,gs){var gq=gu.sel.ranges.slice(0);gq[gt]=gr;bT(gu,cv(gq,gu.sel.primIndex),gs)}function F(gt,gr,gs,gq){bT(gt,eW(gr,gs),gq)}function c(gt,gr,gq){var gs={ranges:gr.ranges,update:function(gu){this.ranges=[];for(var gv=0;gv<gu.length;gv++){this.ranges[gv]=new dY(fP(gt,gu[gv].anchor),fP(gt,gu[gv].head))}},origin:gq&&gq.origin};aD(gt,"beforeSelectionChange",gt,gs);if(gt.cm){aD(gt.cm,"beforeSelectionChange",gt.cm,gs)}if(gs.ranges!=gr.ranges){return cv(gs.ranges,gs.ranges.length-1)}else{return gr}}function fc(gu,gt,gr){var gq=gu.history.done,gs=fL(gq);if(gs&&gs.ranges){gq[gq.length-1]=gt;es(gu,gt,gr)}else{bT(gu,gt,gr)}}function bT(gs,gr,gq){es(gs,gr,gq);gi(gs,gs.sel,gs.cm?gs.cm.curOp.id:NaN,gq)}function es(gt,gs,gr){if(fn(gt,"beforeSelectionChange")||gt.cm&&fn(gt.cm,"beforeSelectionChange")){gs=c(gt,gs,gr)}var gq=gr&&gr.bias||(ce(gs.primary().head,gt.sel.primary().head)<0?-1:1);c8(gt,n(gt,gs,gq,true));if(!(gr&&gr.scroll===false)&&gt.cm){fK(gt.cm)}}function c8(gr,gq){if(gq.equals(gr.sel)){return}gr.sel=gq;if(gr.cm){gr.cm.curOp.updateInput=gr.cm.curOp.selectionChanged=true;V(gr.cm)}ae(gr,"cursorActivity",gr)}function eB(gq){c8(gq,n(gq,gq.sel,null,false),Z)}function n(gz,gq,gw,gx){var gt;for(var gu=0;gu<gq.ranges.length;gu++){var gv=gq.ranges[gu];var gr=gq.ranges.length==gz.sel.ranges.length&&gz.sel.ranges[gu];var gy=bU(gz,gv.anchor,gr&&gr.anchor,gw,gx);var gs=bU(gz,gv.head,gr&&gr.head,gw,gx);if(gt||gy!=gv.anchor||gs!=gv.head){if(!gt){gt=gq.ranges.slice(0,gu)}gt[gu]=new dY(gy,gs)}}return gt?cv(gt,gq.primIndex):gq}function eM(gA,gy,gt,gs,gw){var gB=fk(gA,gy.line);if(gB.markedSpans){for(var gu=0;gu<gB.markedSpans.length;++gu){var gq=gB.markedSpans[gu],gr=gq.marker;if((gq.from==null||(gr.inclusiveLeft?gq.from<=gy.ch:gq.from<gy.ch))&&(gq.to==null||(gr.inclusiveRight?gq.to>=gy.ch:gq.to>gy.ch))){if(gw){aD(gr,"beforeCursorEnter");if(gr.explicitlyCleared){if(!gB.markedSpans){break}else{--gu;continue}}}if(!gr.atomic){continue}if(gt){var gx=gr.find(gs<0?1:-1),gz;if(gs<0?gr.inclusiveRight:gr.inclusiveLeft){gx=gm(gA,gx,-gs,gx&&gx.line==gy.line?gB:null)}if(gx&&gx.line==gy.line&&(gz=ce(gx,gt))&&(gs<0?gz<0:gz>0)){return eM(gA,gx,gy,gs,gw)}}var gv=gr.find(gs<0?-1:1);if(gs<0?gr.inclusiveLeft:gr.inclusiveRight){gv=gm(gA,gv,gs,gv.line==gy.line?gB:null)}return gv?eM(gA,gv,gy,gs,gw):null}}}return gy}function bU(gv,gw,gt,gr,gq){var gs=gr||1;var gu=eM(gv,gw,gt,gs,gq)||(!gq&&eM(gv,gw,gt,gs,true))||eM(gv,gw,gt,-gs,gq)||(!gq&&eM(gv,gw,gt,-gs,true));if(!gu){gv.cantEdit=true;return W(gv.first,0)}return gu}function gm(gs,gt,gr,gq){if(gr<0&&gt.ch==0){if(gt.line>gs.first){return fP(gs,W(gt.line-1))}else{return null}}else{if(gr>0&&gt.ch==(gq||fk(gs,gt.line)).text.length){if(gt.line<gs.first+gs.size-1){return W(gt.line+1,0)}else{return null}}else{return new W(gt.line,gt.ch+gr)}}}function bB(gq){gq.display.input.showSelection(gq.display.input.prepareSelection())}function fN(gx,gq){var gw=gx.doc,gy={};var gv=gy.cursors=document.createDocumentFragment();var gr=gy.selection=document.createDocumentFragment();for(var gt=0;gt<gw.sel.ranges.length;gt++){if(gq===false&&gt==gw.sel.primIndex){continue}var gu=gw.sel.ranges[gt];if(gu.from().line>=gx.display.viewTo||gu.to().line<gx.display.viewFrom){continue}var gs=gu.empty();if(gs||gx.options.showCursorWhenSelecting){A(gx,gu.head,gv)}if(!gs){bC(gx,gu,gr)}}return gy}function A(gq,gt,gs){var gv=dU(gq,gt,"div",null,null,!gq.options.singleCursorHeightPerLine);var gu=gs.appendChild(f9("div","\u00a0","CodeMirror-cursor"));gu.style.left=gv.left+"px";gu.style.top=gv.top+"px";gu.style.height=Math.max(0,gv.bottom-gv.top)*gq.options.cursorHeight+"px";if(gv.other){var gr=gs.appendChild(f9("div","\u00a0","CodeMirror-cursor CodeMirror-secondarycursor"));gr.style.display="";gr.style.left=gv.other.left+"px";gr.style.top=gv.other.top+"px";gr.style.height=(gv.other.bottom-gv.other.top)*0.85+"px"}}function bC(gu,gA,gv){var gD=gu.display,gH=gu.doc;var gq=document.createDocumentFragment();var gz=e9(gu.display),gt=gz.left;var gE=Math.max(gD.sizerWidth,dl(gu)-gD.sizer.offsetLeft)-gz.right;function gB(gL,gK,gJ,gI){if(gK<0){gK=0}gK=Math.round(gK);gI=Math.round(gI);gq.appendChild(f9("div",null,"CodeMirror-selected","position: absolute; left: "+gL+"px; top: "+gK+"px; width: "+(gJ==null?gE-gL:gJ)+"px; height: "+(gI-gK)+"px"))}function gr(gJ,gL,gO){var gK=fk(gH,gJ);var gM=gK.text.length;var gP,gI;function gN(gR,gQ){return cI(gu,W(gJ,gR),"div",gK,gQ)}d5(a(gK),gL||0,gO==null?gM:gO,function(gX,gW,gQ){var gT=gN(gX,"left"),gU,gV,gS;if(gX==gW){gU=gT;gV=gS=gT.left}else{gU=gN(gW-1,"right");if(gQ=="rtl"){var gR=gT;gT=gU;gU=gR}gV=gT.left;gS=gU.right}if(gL==null&&gX==0){gV=gt}if(gU.top-gT.top>3){gB(gV,gT.top,null,gT.bottom);gV=gt;if(gT.bottom<gU.top){gB(gV,gT.bottom,null,gU.top)}}if(gO==null&&gW==gM){gS=gE}if(!gP||gT.top<gP.top||gT.top==gP.top&&gT.left<gP.left){gP=gT}if(!gI||gU.bottom>gI.bottom||gU.bottom==gI.bottom&&gU.right>gI.right){gI=gU}if(gV<gt+1){gV=gt}gB(gV,gU.top,gS-gV,gU.bottom)});return{start:gP,end:gI}}var gG=gA.from(),gF=gA.to();if(gG.line==gF.line){gr(gG.line,gG.ch,gF.ch)}else{var gs=fk(gH,gG.line),gx=fk(gH,gF.line);var gw=x(gs)==x(gx);var gy=gr(gG.line,gG.ch,gw?gs.text.length+1:null).end;var gC=gr(gF.line,gw?0:null,gF.ch).start;if(gw){if(gy.top<gC.top-2){gB(gy.right,gy.top,null,gy.bottom);gB(gt,gC.top,gC.left,gC.bottom)}else{gB(gy.right,gy.top,gC.left-gy.right,gy.bottom)}}if(gy.bottom<gC.top){gB(gt,gy.bottom,null,gC.top)}}gv.appendChild(gq)}function o(gq){if(!gq.state.focused){return}var gs=gq.display;clearInterval(gs.blinker);var gr=true;gs.cursorDiv.style.visibility="";if(gq.options.cursorBlinkRate>0){gs.blinker=setInterval(function(){gs.cursorDiv.style.visibility=(gr=!gr)?"":"hidden"},gq.options.cursorBlinkRate)}else{if(gq.options.cursorBlinkRate<0){gs.cursorDiv.style.visibility="hidden"}}}function eh(gq,gr){if(gq.doc.mode.startState&&gq.doc.frontier<gq.display.viewTo){gq.state.highlight.set(gr,cu(cO,gq))}}function cO(gq){var gu=gq.doc;if(gu.frontier<gu.first){gu.frontier=gu.first}if(gu.frontier>=gq.display.viewTo){return}var gs=+new Date+gq.options.workTime;var gt=b2(gu.mode,dC(gq,gu.frontier));var gr=[];gu.iter(gu.frontier,Math.min(gu.first+gu.size,gq.display.viewTo+500),function(gv){if(gu.frontier>=gq.display.viewFrom){var gy=gv.styles,gC=gv.text.length>gq.options.maxHighlightLength;var gA=fE(gq,gv,gC?b2(gu.mode,gt):gt,true);gv.styles=gA.styles;var gx=gv.styleClasses,gz=gA.classes;if(gz){gv.styleClasses=gz}else{if(gx){gv.styleClasses=null}}var gB=!gy||gy.length!=gv.styles.length||gx!=gz&&(!gx||!gz||gx.bgClass!=gz.bgClass||gx.textClass!=gz.textClass);for(var gw=0;!gB&&gw<gy.length;++gw){gB=gy[gw]!=gv.styles[gw]}if(gB){gr.push(gu.frontier)}gv.stateAfter=gC?gt:b2(gu.mode,gt)}else{if(gv.text.length<=gq.options.maxHighlightLength){dx(gq,gv.text,gt)}gv.stateAfter=gu.frontier%5==0?b2(gu.mode,gt):null}++gu.frontier;if(+new Date>gs){eh(gq,gq.options.workDelay);return true}});if(gr.length){cL(gq,function(){for(var gv=0;gv<gr.length;gv++){R(gq,gr[gv],"text")}})}}function cx(gw,gq,gt){var gr,gu,gv=gw.doc;var gs=gt?-1:gq-(gw.doc.mode.innerMode?1000:100);for(var gz=gq;gz>gs;--gz){if(gz<=gv.first){return gv.first}var gy=fk(gv,gz-1);if(gy.stateAfter&&(!gt||gz<=gv.frontier)){return gz}var gx=bS(gy.text,null,gw.options.tabSize);if(gu==null||gr>gx){gu=gz-1;gr=gx}}return gu}function dC(gq,gw,gr){var gu=gq.doc,gt=gq.display;if(!gu.mode.startState){return true}var gv=cx(gq,gw,gr),gs=gv>gu.first&&fk(gu,gv-1).stateAfter;if(!gs){gs=bZ(gu.mode)}else{gs=b2(gu.mode,gs)}gu.iter(gv,gw,function(gx){dx(gq,gx.text,gs);var gy=gv==gw-1||gv%5==0||gv>=gt.viewFrom&&gv<gt.viewTo;gx.stateAfter=gy?b2(gu.mode,gs):null;++gv});if(gr){gu.frontier=gv}return gs}function fd(gq){return gq.lineSpace.offsetTop}function bH(gq){return gq.mover.offsetHeight-gq.lineSpace.offsetHeight}function e9(gt){if(gt.cachedPaddingH){return gt.cachedPaddingH}var gs=bQ(gt.measure,f9("pre","x"));var gq=window.getComputedStyle?window.getComputedStyle(gs):gs.currentStyle;var gr={left:parseInt(gq.paddingLeft),right:parseInt(gq.paddingRight)};if(!isNaN(gr.left)&&!isNaN(gr.right)){gt.cachedPaddingH=gr}return gr}function cS(gq){return dJ-gq.display.nativeBarWidth}function dl(gq){return gq.display.scroller.clientWidth-cS(gq)-gq.display.barWidth}function cU(gq){return gq.display.scroller.clientHeight-cS(gq)-gq.display.barHeight}function cg(gx,gt,gw){var gs=gx.options.lineWrapping;var gu=gs&&dl(gx);if(!gt.measure.heights||gs&&gt.measure.width!=gu){var gv=gt.measure.heights=[];if(gs){gt.measure.width=gu;var gz=gt.text.firstChild.getClientRects();for(var gq=0;gq<gz.length-1;gq++){var gy=gz[gq],gr=gz[gq+1];if(Math.abs(gy.bottom-gr.bottom)>2){gv.push((gy.bottom+gr.top)/2-gw.top)}}}gv.push(gw.bottom-gw.top)}}function cs(gs,gq,gt){if(gs.line==gq){return{map:gs.measure.map,cache:gs.measure.cache}}for(var gr=0;gr<gs.rest.length;gr++){if(gs.rest[gr]==gq){return{map:gs.measure.maps[gr],cache:gs.measure.caches[gr]}}}for(var gr=0;gr<gs.rest.length;gr++){if(bM(gs.rest[gr])>gt){return{map:gs.measure.maps[gr],cache:gs.measure.caches[gr],before:true}}}}function c0(gq,gs){gs=x(gs);var gu=bM(gs);var gr=gq.display.externalMeasured=new bu(gq.doc,gs,gu);gr.lineN=gu;var gt=gr.built=eV(gq,gr);gr.text=gt.pre;bQ(gq.display.lineMeasure,gt.pre);return gr}function ej(gq,gr,gt,gs){return C(gq,a3(gq,gr),gt,gs)}function fg(gq,gs){if(gs>=gq.display.viewFrom&&gs<gq.display.viewTo){return gq.display.view[dr(gq,gs)]}var gr=gq.display.externalMeasured;if(gr&&gs>=gr.lineN&&gs<gr.lineN+gr.size){return gr}}function a3(gq,gs){var gt=bM(gs);var gr=fg(gq,gt);if(gr&&!gr.text){gr=null}else{if(gr&&gr.changes){ab(gq,gr,gt,fi(gq));gq.curOp.forceUpdate=true}}if(!gr){gr=c0(gq,gs)}var gu=cs(gr,gs,gt);return{line:gs,view:gr,rect:null,map:gu.map,cache:gu.cache,before:gu.before,hasHeights:false}}function C(gq,gw,gu,gr,gt){if(gw.before){gu=-1}var gs=gu+(gr||""),gv;if(gw.cache.hasOwnProperty(gs)){gv=gw.cache[gs]}else{if(!gw.rect){gw.rect=gw.view.text.getBoundingClientRect()}if(!gw.hasHeights){cg(gq,gw.view,gw.rect);gw.hasHeights=true}gv=j(gq,gw,gu,gr);if(!gv.bogus){gw.cache[gs]=gv}}return{left:gv.left,right:gv.right,top:gt?gv.rtop:gv.top,bottom:gt?gv.rbottom:gv.bottom}}var eE={left:0,right:0,top:0,bottom:0};function aK(gr,gq,gx){var gt,gs,gv,gy;for(var gw=0;gw<gr.length;gw+=3){var gu=gr[gw],gz=gr[gw+1];if(gq<gu){gs=0;gv=1;gy="left"}else{if(gq<gz){gs=gq-gu;gv=gs+1}else{if(gw==gr.length-3||gq==gz&&gr[gw+3]>gq){gv=gz-gu;gs=gv-1;if(gq>=gz){gy="right"}}}}if(gs!=null){gt=gr[gw+2];if(gu==gz&&gx==(gt.insertLeft?"left":"right")){gy=gx}if(gx=="left"&&gs==0){while(gw&&gr[gw-2]==gr[gw-3]&&gr[gw-1].insertLeft){gt=gr[(gw-=3)+2];gy="left"}}if(gx=="right"&&gs==gz-gu){while(gw<gr.length-3&&gr[gw+3]==gr[gw+4]&&!gr[gw+5].insertLeft){gt=gr[(gw+=3)+2];gy="right"}}break}}return{node:gt,start:gs,end:gv,collapse:gy,coverStart:gu,coverEnd:gz}}function j(gx,gH,gA,gv){var gy=aK(gH.map,gA,gv);var gF=gy.node,gu=gy.start,gt=gy.end,gq=gy.collapse;var gr;if(gF.nodeType==3){for(var gG=0;gG<4;gG++){while(gu&&fu(gH.line.text.charAt(gy.coverStart+gu))){--gu}while(gy.coverStart+gt<gy.coverEnd&&fu(gH.line.text.charAt(gy.coverStart+gt))){++gt}if(dK&&k<9&&gu==0&&gt==gy.coverEnd-gy.coverStart){gr=gF.parentNode.getBoundingClientRect()}else{if(dK&&gx.options.lineWrapping){var gs=ck(gF,gu,gt).getClientRects();if(gs.length){gr=gs[gv=="right"?gs.length-1:0]}else{gr=eE}}else{gr=ck(gF,gu,gt).getBoundingClientRect()||eE}}if(gr.left||gr.right||gu==0){break}gt=gu;gu=gu-1;gq="right"}if(dK&&k<11){gr=eR(gx.display.measure,gr)}}else{if(gu>0){gq=gv="right"}var gs;if(gx.options.lineWrapping&&(gs=gF.getClientRects()).length>1){gr=gs[gv=="right"?gs.length-1:0]}else{gr=gF.getBoundingClientRect()}}if(dK&&k<9&&!gu&&(!gr||!gr.left&&!gr.right)){var gw=gF.parentNode.getClientRects()[0];if(gw){gr={left:gw.left,right:gw.left+dD(gx.display),top:gw.top,bottom:gw.bottom}}else{gr=eE}}var gD=gr.top-gH.rect.top,gB=gr.bottom-gH.rect.top;var gJ=(gD+gB)/2;var gI=gH.view.measure.heights;for(var gG=0;gG<gI.length-1;gG++){if(gJ<gI[gG]){break}}var gE=gG?gI[gG-1]:0,gC=gI[gG];var gz={left:(gq=="right"?gr.right:gr.left)-gH.rect.left,right:(gq=="left"?gr.left:gr.right)-gH.rect.left,top:gE,bottom:gC};if(!gr.left&&!gr.right){gz.bogus=true}if(!gx.options.singleCursorHeightPerLine){gz.rtop=gD;gz.rbottom=gB}return gz}function eR(gs,gt){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!aJ(gs)){return gt}var gr=screen.logicalXDPI/screen.deviceXDPI;var gq=screen.logicalYDPI/screen.deviceYDPI;return{left:gt.left*gr,right:gt.right*gr,top:gt.top*gq,bottom:gt.bottom*gq}}function at(gr){if(gr.measure){gr.measure.cache={};gr.measure.heights=null;if(gr.rest){for(var gq=0;gq<gr.rest.length;gq++){gr.measure.caches[gq]={}}}}}function aN(gq){gq.display.externalMeasure=null;d2(gq.display.lineMeasure);for(var gr=0;gr<gq.display.view.length;gr++){at(gq.display.view[gr])}}function aj(gq){aN(gq);gq.display.cachedCharWidth=gq.display.cachedTextHeight=gq.display.cachedPaddingH=null;if(!gq.options.lineWrapping){gq.display.maxLineChanged=true}gq.display.lineNumChars=null}function ct(){return window.pageXOffset||(document.documentElement||document.body).scrollLeft}function cr(){return window.pageYOffset||(document.documentElement||document.body).scrollTop}function eU(gw,gt,gv,gr){if(gt.widgets){for(var gs=0;gs<gt.widgets.length;++gs){if(gt.widgets[gs].above){var gy=cX(gt.widgets[gs]);gv.top+=gy;gv.bottom+=gy}}}if(gr=="line"){return gv}if(!gr){gr="local"}var gu=bL(gt);if(gr=="local"){gu+=fd(gw.display)}else{gu-=gw.display.viewOffset}if(gr=="page"||gr=="window"){var gq=gw.display.lineSpace.getBoundingClientRect();gu+=gq.top+(gr=="window"?0:cr());var gx=gq.left+(gr=="window"?0:ct());gv.left+=gx;gv.right+=gx}gv.top+=gu;gv.bottom+=gu;return gv}function gl(gr,gu,gs){if(gs=="div"){return gu}var gw=gu.left,gv=gu.top;if(gs=="page"){gw-=ct();gv-=cr()}else{if(gs=="local"||!gs){var gt=gr.display.sizer.getBoundingClientRect();gw+=gt.left;gv+=gt.top}}var gq=gr.display.lineSpace.getBoundingClientRect();return{left:gw-gq.left,top:gv-gq.top}}function cI(gq,gu,gt,gs,gr){if(!gs){gs=fk(gq.doc,gu.line)}return eU(gq,gs,ej(gq,gs,gu.ch,gr),gt)}function dU(gz,gy,gs,gw,gB,gx){gw=gw||fk(gz.doc,gy.line);if(!gB){gB=a3(gz,gw)}function gu(gE,gD){var gC=C(gz,gB,gE,gD?"right":"left",gx);if(gD){gC.left=gC.right}else{gC.right=gC.left}return eU(gz,gw,gC,gs)}function gA(gF,gC){var gD=gv[gC],gE=gD.level%2;if(gF==dy(gD)&&gC&&gD.level<gv[gC-1].level){gD=gv[--gC];gF=gk(gD)-(gD.level%2?0:1);gE=true}else{if(gF==gk(gD)&&gC<gv.length-1&&gD.level<gv[gC+1].level){gD=gv[++gC];gF=dy(gD)-gD.level%2;gE=false}}if(gE&&gF==gD.to&&gF>gD.from){return gu(gF-1)}return gu(gF,gE)}var gv=a(gw),gq=gy.ch;if(!gv){return gu(gq)}var gr=aF(gv,gq);var gt=gA(gq,gr);if(e6!=null){gt.other=gA(gq,e6)}return gt}function dH(gq,gu){var gt=0,gu=fP(gq.doc,gu);if(!gq.options.lineWrapping){gt=dD(gq.display)*gu.ch}var gr=fk(gq.doc,gu.line);var gs=bL(gr)+fd(gq.display);return{left:gt,right:gt,top:gs,bottom:gs+gr.height}}function f8(gq,gr,gs,gu){var gt=W(gq,gr);gt.xRel=gu;if(gs){gt.outside=true}return gt}function fU(gx,gu,gt){var gw=gx.doc;gt+=gx.display.viewOffset;if(gt<0){return f8(gw.first,0,true,-1)}var gs=bF(gw,gt),gy=gw.first+gw.size-1;if(gs>gy){return f8(gw.first+gw.size-1,fk(gw,gy).text.length,true,1)}if(gu<0){gu=0}var gr=fk(gw,gs);for(;;){var gz=cY(gx,gr,gs,gu,gt);var gv=ex(gr);var gq=gv&&gv.find(0,true);if(gv&&(gz.ch>gq.from.ch||gz.ch==gq.from.ch&&gz.xRel>0)){gs=bM(gr=gq.to.line)}else{return gz}}}function cY(gA,gs,gD,gC,gB){var gz=gB-bL(gs);var gw=false,gJ=2*gA.display.wrapper.clientWidth;var gG=a3(gA,gs);function gN(gP){var gQ=dU(gA,W(gD,gP),"line",gs,gG);gw=true;if(gz>gQ.bottom){return gQ.left-gJ}else{if(gz<gQ.top){return gQ.left+gJ}else{gw=false}}return gQ.left}var gF=a(gs),gI=gs.text.length;var gK=cD(gs),gt=cR(gs);var gH=gN(gK),gq=gw,gr=gN(gt),gv=gw;if(gC>gr){return f8(gD,gt,gv,1)}for(;;){if(gF?gt==gK||gt==u(gs,gK,1):gt-gK<=1){var gE=gC<gH||gC-gH<=gr-gC?gK:gt;var gM=gC-(gE==gK?gH:gr);while(fu(gs.text.charAt(gE))){++gE}var gy=f8(gD,gE,gE==gK?gq:gv,gM<-1?-1:gM>1?1:0);return gy}var gx=Math.ceil(gI/2),gO=gK+gx;if(gF){gO=gK;for(var gL=0;gL<gx;++gL){gO=u(gs,gO,1)}}var gu=gN(gO);if(gu>gC){gt=gO;gr=gu;if(gv=gw){gr+=1000}gI=gx}else{gK=gO;gH=gu;gq=gw;gI-=gx}}}var aG;function aX(gs){if(gs.cachedTextHeight!=null){return gs.cachedTextHeight}if(aG==null){aG=f9("pre");for(var gr=0;gr<49;++gr){aG.appendChild(document.createTextNode("x"));aG.appendChild(f9("br"))}aG.appendChild(document.createTextNode("x"))}bQ(gs.measure,aG);var gq=aG.offsetHeight/50;if(gq>3){gs.cachedTextHeight=gq}d2(gs.measure);return gq||1}function dD(gu){if(gu.cachedCharWidth!=null){return gu.cachedCharWidth}var gq=f9("span","xxxxxxxxxx");var gt=f9("pre",[gq]);bQ(gu.measure,gt);var gs=gq.getBoundingClientRect(),gr=(gs.right-gs.left)/10;if(gr>2){gu.cachedCharWidth=gr}return gr||10}var bo=null;var d9=0;function cH(gq){gq.curOp={cm:gq,viewChanged:false,startHeight:gq.doc.height,forceUpdate:false,updateInput:null,typing:false,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:false,updateMaxLine:false,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:false,id:++d9};if(bo){bo.ops.push(gq.curOp)}else{gq.curOp.ownsGroup=bo={ops:[gq.curOp],delayedCallbacks:[]}}}function cT(gt){var gs=gt.delayedCallbacks,gr=0;do{for(;gr<gs.length;gr++){gs[gr].call(null)}for(var gq=0;gq<gt.ops.length;gq++){var gu=gt.ops[gq];if(gu.cursorActivityHandlers){while(gu.cursorActivityCalled<gu.cursorActivityHandlers.length){gu.cursorActivityHandlers[gu.cursorActivityCalled++].call(null,gu.cm)}}}}while(gr<gs.length)}function al(gq){var gt=gq.curOp,gs=gt.ownsGroup;if(!gs){return}try{cT(gs)}finally{bo=null;for(var gr=0;gr<gs.ops.length;gr++){gs.ops[gr].cm.curOp=null}cJ(gs)}}function cJ(gs){var gr=gs.ops;for(var gq=0;gq<gr.length;gq++){b4(gr[gq])}for(var gq=0;gq<gr.length;gq++){ap(gr[gq])}for(var gq=0;gq<gr.length;gq++){b1(gr[gq])}for(var gq=0;gq<gr.length;gq++){ao(gr[gq])}for(var gq=0;gq<gr.length;gq++){e4(gr[gq])}}function b4(gs){var gq=gs.cm,gr=gq.display;J(gq);if(gs.updateMaxLine){h(gq)}gs.mustUpdate=gs.viewChanged||gs.forceUpdate||gs.scrollTop!=null||gs.scrollToPos&&(gs.scrollToPos.from.line<gr.viewFrom||gs.scrollToPos.to.line>=gr.viewTo)||gr.maxLineChanged&&gq.options.lineWrapping;gs.update=gs.mustUpdate&&new aH(gq,gs.mustUpdate&&{top:gs.scrollTop,ensure:gs.scrollToPos},gs.forceUpdate)}function ap(gq){gq.updatedDisplay=gq.mustUpdate&&B(gq.cm,gq.update)}function b1(gs){var gq=gs.cm,gr=gq.display;if(gs.updatedDisplay){a8(gq)}gs.barMeasure=dA(gq);if(gr.maxLineChanged&&!gq.options.lineWrapping){gs.adjustWidthTo=ej(gq,gr.maxLine,gr.maxLine.text.length).left+3;gq.display.sizerWidth=gs.adjustWidthTo;gs.barMeasure.scrollWidth=Math.max(gr.scroller.clientWidth,gr.sizer.offsetLeft+gs.adjustWidthTo+cS(gq)+gq.display.barWidth);gs.maxScrollLeft=Math.max(0,gr.sizer.offsetLeft+gs.adjustWidthTo-dl(gq))}if(gs.updatedDisplay||gs.selectionChanged){gs.preparedSelection=gr.input.prepareSelection()}}function ao(gr){var gq=gr.cm;if(gr.adjustWidthTo!=null){gq.display.sizer.style.minWidth=gr.adjustWidthTo+"px";if(gr.maxScrollLeft<gq.doc.scrollLeft){bD(gq,Math.min(gq.display.scroller.scrollLeft,gr.maxScrollLeft),true)}gq.display.maxLineChanged=false}if(gr.preparedSelection){gq.display.input.showSelection(gr.preparedSelection)}if(gr.updatedDisplay||gr.startHeight!=gq.doc.height){e2(gq,gr.barMeasure)}if(gr.updatedDisplay){dz(gq,gr.barMeasure)}if(gr.selectionChanged){o(gq)}if(gq.state.focused&&gr.updateInput){gq.display.input.reset(gr.typing)}if(gr.focus&&gr.focus==dO()&&(!document.hasFocus||document.hasFocus())){r(gr.cm)}}function e4(gx){var gq=gx.cm,gv=gq.display,gu=gq.doc;if(gx.updatedDisplay){ci(gq,gx.update)}if(gv.wheelStartX!=null&&(gx.scrollTop!=null||gx.scrollLeft!=null||gx.scrollToPos)){gv.wheelStartX=gv.wheelStartY=null}if(gx.scrollTop!=null&&(gv.scroller.scrollTop!=gx.scrollTop||gx.forceScroll)){gu.scrollTop=Math.max(0,Math.min(gv.scroller.scrollHeight-gv.scroller.clientHeight,gx.scrollTop));gv.scrollbars.setScrollTop(gu.scrollTop);gv.scroller.scrollTop=gu.scrollTop}if(gx.scrollLeft!=null&&(gv.scroller.scrollLeft!=gx.scrollLeft||gx.forceScroll)){gu.scrollLeft=Math.max(0,Math.min(gv.scroller.scrollWidth-gv.scroller.clientWidth,gx.scrollLeft));gv.scrollbars.setScrollLeft(gu.scrollLeft);gv.scroller.scrollLeft=gu.scrollLeft;eH(gq)}if(gx.scrollToPos){var gt=D(gq,fP(gu,gx.scrollToPos.from),fP(gu,gx.scrollToPos.to),gx.scrollToPos.margin);if(gx.scrollToPos.isCursor&&gq.state.focused){d7(gq,gt)}}var gs=gx.maybeHiddenMarkers,gw=gx.maybeUnhiddenMarkers;if(gs){for(var gr=0;gr<gs.length;++gr){if(!gs[gr].lines.length){aD(gs[gr],"hide")}}}if(gw){for(var gr=0;gr<gw.length;++gr){if(gw[gr].lines.length){aD(gw[gr],"unhide")}}}if(gv.wrapper.offsetHeight){gu.scrollTop=gq.display.scroller.scrollTop}if(gx.changeObjs){aD(gq,"changes",gq,gx.changeObjs)}if(gx.update){gx.update.finish()}}function cL(gq,gr){if(gq.curOp){return gr()}cH(gq);try{return gr()}finally{al(gq)}}function c1(gq,gr){return function(){if(gq.curOp){return gr.apply(gq,arguments)}cH(gq);try{return gr.apply(gq,arguments)}finally{al(gq)}}}function c7(gq){return function(){if(this.curOp){return gq.apply(this,arguments)}cH(this);try{return gq.apply(this,arguments)}finally{al(this)}}}function cC(gq){return function(){var gr=this.cm;if(!gr||gr.curOp){return gq.apply(this,arguments)}cH(gr);try{return gq.apply(this,arguments)}finally{al(gr)}}}function bu(gs,gq,gr){this.line=gq;this.rest=g(gq);this.size=this.rest?bM(fL(this.rest))-gr+1:1;this.node=this.text=null;this.hidden=fB(gs,gq)}function eZ(gq,gw,gv){var gu=[],gs;for(var gt=gw;gt<gv;gt=gs){var gr=new bu(gq.doc,fk(gq.doc,gt),gt);gs=gt+gr.size;gu.push(gr)}return gu}function ah(gx,gv,gw,gy){if(gv==null){gv=gx.doc.first}if(gw==null){gw=gx.doc.first+gx.doc.size}if(!gy){gy=0}var gs=gx.display;if(gy&&gw<gs.viewTo&&(gs.updateLineNumbers==null||gs.updateLineNumbers>gv)){gs.updateLineNumbers=gv}gx.curOp.viewChanged=true;if(gv>=gs.viewTo){if(a6&&aV(gx.doc,gv)<gs.viewTo){eA(gx)}}else{if(gw<=gs.viewFrom){if(a6&&d3(gx.doc,gw+gy)>gs.viewFrom){eA(gx)}else{gs.viewFrom+=gy;gs.viewTo+=gy}}else{if(gv<=gs.viewFrom&&gw>=gs.viewTo){eA(gx)}else{if(gv<=gs.viewFrom){var gu=de(gx,gw,gw+gy,1);if(gu){gs.view=gs.view.slice(gu.index);gs.viewFrom=gu.lineN;gs.viewTo+=gy}else{eA(gx)}}else{if(gw>=gs.viewTo){var gu=de(gx,gv,gv,-1);if(gu){gs.view=gs.view.slice(0,gu.index);gs.viewTo=gu.lineN}else{eA(gx)}}else{var gt=de(gx,gv,gv,-1);var gr=de(gx,gw,gw+gy,1);if(gt&&gr){gs.view=gs.view.slice(0,gt.index).concat(eZ(gx,gt.lineN,gr.lineN)).concat(gs.view.slice(gr.index));gs.viewTo+=gy}else{eA(gx)}}}}}}var gq=gs.externalMeasured;if(gq){if(gw<gq.lineN){gq.lineN+=gy}else{if(gv<gq.lineN+gq.size){gs.externalMeasured=null}}}}function R(gr,gs,gv){gr.curOp.viewChanged=true;var gw=gr.display,gu=gr.display.externalMeasured;if(gu&&gs>=gu.lineN&&gs<gu.lineN+gu.size){gw.externalMeasured=null}if(gs<gw.viewFrom||gs>=gw.viewTo){return}var gt=gw.view[dr(gr,gs)];if(gt.node==null){return}var gq=gt.changes||(gt.changes=[]);if(dh(gq,gv)==-1){gq.push(gv)}}function eA(gq){gq.display.viewFrom=gq.display.viewTo=gq.doc.first;gq.display.view=[];gq.display.viewOffset=0}function dr(gq,gt){if(gt>=gq.display.viewTo){return null}gt-=gq.display.viewFrom;if(gt<0){return null}var gr=gq.display.view;for(var gs=0;gs<gr.length;gs++){gt-=gr[gs].size;if(gt<0){return gs}}}function de(gy,gs,gu,gr){var gv=dr(gy,gs),gx,gw=gy.display.view;if(!a6||gu==gy.doc.first+gy.doc.size){return{index:gv,lineN:gu}}for(var gt=0,gq=gy.display.viewFrom;gt<gv;gt++){gq+=gw[gt].size}if(gq!=gs){if(gr>0){if(gv==gw.length-1){return null}gx=(gq+gw[gv].size)-gs;gv++}else{gx=gq-gs}gs+=gx;gu+=gx}while(aV(gy.doc,gu)!=gu){if(gv==(gr<0?0:gw.length-1)){return null}gu+=gr*gw[gv-(gr<0?1:0)].size;gv+=gr}return{index:gv,lineN:gu}}function cQ(gq,gu,gt){var gs=gq.display,gr=gs.view;if(gr.length==0||gu>=gs.viewTo||gt<=gs.viewFrom){gs.view=eZ(gq,gu,gt);gs.viewFrom=gu}else{if(gs.viewFrom>gu){gs.view=eZ(gq,gu,gs.viewFrom).concat(gs.view)}else{if(gs.viewFrom<gu){gs.view=gs.view.slice(dr(gq,gu))}}gs.viewFrom=gu;if(gs.viewTo<gt){gs.view=gs.view.concat(eZ(gq,gs.viewTo,gt))}else{if(gs.viewTo>gt){gs.view=gs.view.slice(0,dr(gq,gt))}}}gs.viewTo=gt}function db(gq){var gr=gq.display.view,gu=0;for(var gt=0;gt<gr.length;gt++){var gs=gr[gt];if(!gs.hidden&&(!gs.node||gs.changes)){++gu}}return gu}function fW(gr){var gv=gr.display;bW(gv.scroller,"mousedown",c1(gr,ey));if(dK&&k<11){bW(gv.scroller,"dblclick",c1(gr,function(gz){if(aQ(gr,gz)){return}var gA=cm(gr,gz);if(!gA||l(gr,gz)||ba(gr.display,gz)){return}cF(gz);var gy=gr.findWordAt(gA);f3(gr.doc,gy.anchor,gy.head)}))}else{bW(gv.scroller,"dblclick",function(gy){aQ(gr,gy)||cF(gy)})}if(!gg){bW(gv.scroller,"contextmenu",function(gy){ax(gr,gy)})}var gx,gq={end:0};function gw(){if(gv.activeTouch){gx=setTimeout(function(){gv.activeTouch=null},1000);gq=gv.activeTouch;gq.end=+new Date}}function gt(gy){if(gy.touches.length!=1){return false}var gz=gy.touches[0];return gz.radiusX<=1&&gz.radiusY<=1}function gs(gB,gy){if(gy.left==null){return true}var gA=gy.left-gB.left,gz=gy.top-gB.top;return gA*gA+gz*gz>20*20}bW(gv.scroller,"touchstart",function(gz){if(!aQ(gr,gz)&&!gt(gz)){clearTimeout(gx);var gy=+new Date;gv.activeTouch={start:gy,moved:false,prev:gy-gq.end<=300?gq:null};if(gz.touches.length==1){gv.activeTouch.left=gz.touches[0].pageX;gv.activeTouch.top=gz.touches[0].pageY}}});bW(gv.scroller,"touchmove",function(){if(gv.activeTouch){gv.activeTouch.moved=true}});bW(gv.scroller,"touchend",function(gz){var gB=gv.activeTouch;if(gB&&!ba(gv,gz)&&gB.left!=null&&!gB.moved&&new Date-gB.start<300){var gA=gr.coordsChar(gv.activeTouch,"page"),gy;if(!gB.prev||gs(gB,gB.prev)){gy=new dY(gA,gA)}else{if(!gB.prev.prev||gs(gB,gB.prev.prev)){gy=gr.findWordAt(gA)}else{gy=new dY(W(gA.line,0),fP(gr.doc,W(gA.line+1,0)))}}gr.setSelection(gy.anchor,gy.head);gr.focus();cF(gz)}gw()});bW(gv.scroller,"touchcancel",gw);bW(gv.scroller,"scroll",function(){if(gv.scroller.clientHeight){N(gr,gv.scroller.scrollTop);bD(gr,gv.scroller.scrollLeft,true);aD(gr,"scroll",gr)}});bW(gv.scroller,"mousewheel",function(gy){b(gr,gy)});bW(gv.scroller,"DOMMouseScroll",function(gy){b(gr,gy)});bW(gv.wrapper,"scroll",function(){gv.wrapper.scrollTop=gv.wrapper.scrollLeft=0});gv.dragFunctions={enter:function(gy){if(!aQ(gr,gy)){eu(gy)}},over:function(gy){if(!aQ(gr,gy)){gn(gr,gy);eu(gy)}},start:function(gy){Q(gr,gy)},drop:c1(gr,bj),leave:function(gy){if(!aQ(gr,gy)){da(gr)}}};var gu=gv.input.getField();bW(gu,"keyup",function(gy){bh.call(gr,gy)});bW(gu,"keydown",c1(gr,p));bW(gu,"keypress",c1(gr,cw));bW(gu,"focus",cu(cA,gr));bW(gu,"blur",cu(aU,gr))}function f7(gr,gu,gs){var gv=gs&&gs!=H.Init;if(!gu!=!gv){var gt=gr.display.dragFunctions;var gq=gu?bW:ef;gq(gr.display.scroller,"dragstart",gt.start);gq(gr.display.scroller,"dragenter",gt.enter);gq(gr.display.scroller,"dragover",gt.over);gq(gr.display.scroller,"dragleave",gt.leave);gq(gr.display.scroller,"drop",gt.drop)}}function aS(gq){var gr=gq.display;if(gr.lastWrapHeight==gr.wrapper.clientHeight&&gr.lastWrapWidth==gr.wrapper.clientWidth){return}gr.cachedCharWidth=gr.cachedTextHeight=gr.cachedPaddingH=null;gr.scrollbarsClipped=false;gq.setSize()}function ba(gr,gq){for(var gs=L(gq);gs!=gr.wrapper;gs=gs.parentNode){if(!gs||(gs.nodeType==1&&gs.getAttribute("cm-ignore-events")=="true")||(gs.parentNode==gr.sizer&&gs!=gr.mover)){return true}}}function cm(gz,gu,gr,gs){var gv=gz.display;if(!gr&&L(gu).getAttribute("cm-not-content")=="true"){return null}var gy,gw,gq=gv.lineSpace.getBoundingClientRect();try{gy=gu.clientX-gq.left;gw=gu.clientY-gq.top}catch(gu){return null}var gx=fU(gz,gy,gw),gA;if(gs&&gx.xRel==1&&(gA=fk(gz.doc,gx.line).text).length==gx.ch){var gt=bS(gA,gA.length,gz.options.tabSize)-gA.length;gx=W(gx.line,Math.max(0,Math.round((gy-e9(gz.display).left)/dD(gz.display))-gt))}return gx}function ey(gs){var gq=this,gr=gq.display;if(aQ(gq,gs)||gr.activeTouch&&gr.input.supportsTouch()){return}gr.shift=gs.shiftKey;if(ba(gr,gs)){if(!cZ){gr.scroller.draggable=false;setTimeout(function(){gr.scroller.draggable=true},100)}return}if(l(gq,gs)){return}var gt=cm(gq,gs);window.focus();switch(fT(gs)){case 1:if(gq.state.selectingText){gq.state.selectingText(gs)}else{if(gt){aw(gq,gs,gt)}else{if(L(gs)==gr.scroller){cF(gs)}}}break;case 2:if(cZ){gq.state.lastMiddleDown=+new Date}if(gt){f3(gq.doc,gt)}setTimeout(function(){gr.input.focus()},20);cF(gs);break;case 3:if(gg){ax(gq,gs)}else{ak(gq)}break}}var dn,dd;function aw(gr,gw,gx){if(dK){setTimeout(cu(r,gr),0)}else{gr.curOp.focus=dO()}var gs=+new Date,gu;if(dd&&dd.time>gs-400&&ce(dd.pos,gx)==0){gu="triple"}else{if(dn&&dn.time>gs-400&&ce(dn.pos,gx)==0){gu="double";dd={time:gs,pos:gx}}else{gu="single";dn={time:gs,pos:gx}}}var gv=gr.doc.sel,gq=b6?gw.metaKey:gw.ctrlKey,gt;if(gr.options.dragDrop&&eP&&!gr.isReadOnly()&&gu=="single"&&(gt=gv.contains(gx))>-1&&(ce((gt=gv.ranges[gt]).from(),gx)<0||gx.xRel>0)&&(ce(gt.to(),gx)>0||gx.xRel<0)){a2(gr,gw,gx,gq)}else{m(gr,gw,gx,gu,gq)}}function a2(gs,gv,gw,gr){var gu=gs.display,gt=+new Date;var gq=c1(gs,function(gx){if(cZ){gu.scroller.draggable=false}gs.state.draggingText=false;ef(document,"mouseup",gq);ef(gu.scroller,"drop",gq);if(Math.abs(gv.clientX-gx.clientX)+Math.abs(gv.clientY-gx.clientY)<10){cF(gx);if(!gr&&+new Date-200<gt){f3(gs.doc,gw)}if(cZ||dK&&k==9){setTimeout(function(){document.body.focus();gu.input.focus()},20)}else{gu.input.focus()}}});if(cZ){gu.scroller.draggable=true}gs.state.draggingText=gq;if(gu.scroller.dragDrop){gu.scroller.dragDrop()}bW(document,"mouseup",gq);bW(gu.scroller,"drop",gq)}function m(gu,gI,gt,gr,gw){var gF=gu.display,gK=gu.doc;cF(gI);var gs,gJ,gv=gK.sel,gq=gv.ranges;if(gw&&!gI.shiftKey){gJ=gK.sel.contains(gt);if(gJ>-1){gs=gq[gJ]}else{gs=new dY(gt,gt)}}else{gs=gK.sel.primary();gJ=gK.sel.primIndex}if(fO?gI.shiftKey&&gI.metaKey:gI.altKey){gr="rect";if(!gw){gs=new dY(gt,gt)}gt=cm(gu,gI,true,true);gJ=-1}else{if(gr=="double"){var gG=gu.findWordAt(gt);if(gu.display.shift||gK.extend){gs=fA(gK,gs,gG.anchor,gG.head)}else{gs=gG}}else{if(gr=="triple"){var gz=new dY(W(gt.line,0),fP(gK,W(gt.line+1,0)));if(gu.display.shift||gK.extend){gs=fA(gK,gs,gz.anchor,gz.head)}else{gs=gz}}else{gs=fA(gK,gs,gt)}}}if(!gw){gJ=0;bT(gK,new ga([gs],0),M);gv=gK.sel}else{if(gJ==-1){gJ=gq.length;bT(gK,cv(gq.concat([gs]),gJ),{scroll:false,origin:"*mouse"})}else{if(gq.length>1&&gq[gJ].empty()&&gr=="single"&&!gI.shiftKey){bT(gK,cv(gq.slice(0,gJ).concat(gq.slice(gJ+1)),0),{scroll:false,origin:"*mouse"});gv=gK.sel}else{e(gK,gJ,gs,M)}}}var gE=gt;function gD(gV){if(ce(gE,gV)==0){return}gE=gV;if(gr=="rect"){var gM=[],gS=gu.options.tabSize;var gL=bS(fk(gK,gt.line).text,gt.ch,gS);var gY=bS(fk(gK,gV.line).text,gV.ch,gS);var gN=Math.min(gL,gY),gW=Math.max(gL,gY);for(var gZ=Math.min(gt.line,gV.line),gP=Math.min(gu.lastLine(),Math.max(gt.line,gV.line));gZ<=gP;gZ++){var gX=fk(gK,gZ).text,gO=et(gX,gN,gS);if(gN==gW){gM.push(new dY(W(gZ,gO),W(gZ,gO)))}else{if(gX.length>gO){gM.push(new dY(W(gZ,gO),W(gZ,et(gX,gW,gS))))}}}if(!gM.length){gM.push(new dY(gt,gt))}bT(gK,cv(gv.ranges.slice(0,gJ).concat(gM),gJ),{origin:"*mouse",scroll:false});gu.scrollIntoView(gV)}else{var gT=gs;var gQ=gT.anchor,gU=gV;if(gr!="single"){if(gr=="double"){var gR=gu.findWordAt(gV)}else{var gR=new dY(W(gV.line,0),fP(gK,W(gV.line+1,0)))}if(ce(gR.anchor,gQ)>0){gU=gR.head;gQ=aq(gT.from(),gR.anchor)}else{gU=gR.anchor;gQ=bw(gT.to(),gR.head)}}var gM=gv.ranges.slice(0);gM[gJ]=new dY(fP(gK,gQ),gU);bT(gK,cv(gM,gJ),M)}}var gB=gF.wrapper.getBoundingClientRect();var gx=0;function gH(gN){var gL=++gx;var gP=cm(gu,gN,true,gr=="rect");if(!gP){return}if(ce(gP,gE)!=0){gu.curOp.focus=dO();gD(gP);var gO=b5(gF,gK);if(gP.line>=gO.to||gP.line<gO.from){setTimeout(c1(gu,function(){if(gx==gL){gH(gN)}}),150)}}else{var gM=gN.clientY<gB.top?-20:gN.clientY>gB.bottom?20:0;if(gM){setTimeout(c1(gu,function(){if(gx!=gL){return}gF.scroller.scrollTop+=gM;gH(gN)}),50)}}}function gA(gL){gu.state.selectingText=false;gx=Infinity;cF(gL);gF.input.focus();ef(document,"mousemove",gC);ef(document,"mouseup",gy);gK.history.lastSelOrigin=null}var gC=c1(gu,function(gL){if(!fT(gL)){gA(gL)}else{gH(gL)}});var gy=c1(gu,gA);gu.state.selectingText=gy;bW(document,"mousemove",gC);bW(document,"mouseup",gy)}function go(gA,gw,gy,gz){try{var gr=gw.clientX,gq=gw.clientY}catch(gw){return false}if(gr>=Math.floor(gA.display.gutters.getBoundingClientRect().right)){return false}if(gz){cF(gw)}var gx=gA.display;var gv=gx.lineDiv.getBoundingClientRect();if(gq>gv.bottom||!fn(gA,gy)){return bK(gw)}gq-=gv.top-gx.viewOffset;for(var gt=0;gt<gA.options.gutters.length;++gt){var gu=gx.gutters.childNodes[gt];if(gu&&gu.getBoundingClientRect().right>=gr){var gB=bF(gA.doc,gq);var gs=gA.options.gutters[gt];aD(gA,gy,gA,gB,gs,gw);return bK(gw)}}}function l(gq,gr){return go(gq,gr,"gutterClick",true)}var ag=0;function bj(gw){var gy=this;da(gy);if(aQ(gy,gw)||ba(gy.display,gw)){return}cF(gw);if(dK){ag=+new Date}var gx=cm(gy,gw,true),gq=gw.dataTransfer.files;if(!gx||gy.isReadOnly()){return}if(gq&&gq.length&&window.FileReader&&window.File){var gs=gq.length,gz=Array(gs),gr=0;var gu=function(gC,gB){if(gy.options.allowDropFileTypes&&dh(gy.options.allowDropFileTypes,gC.type)==-1){return}var gA=new FileReader;gA.onload=c1(gy,function(){var gD=gA.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(gD)){gD=""}gz[gB]=gD;if(++gr==gs){gx=fP(gy.doc,gx);var gE={from:gx,to:gx,text:gy.doc.splitLines(gz.join(gy.doc.lineSeparator())),origin:"paste"};bf(gy.doc,gE);fc(gy.doc,eW(gx,cW(gE)))}});gA.readAsText(gC)};for(var gv=0;gv<gs;++gv){gu(gq[gv],gv)}}else{if(gy.state.draggingText&&gy.doc.sel.contains(gx)>-1){gy.state.draggingText(gw);setTimeout(function(){gy.display.input.focus()},20);return}try{var gz=gw.dataTransfer.getData("Text");if(gz){if(gy.state.draggingText&&!(b6?gw.altKey:gw.ctrlKey)){var gt=gy.listSelections()}es(gy.doc,eW(gx,gx));if(gt){for(var gv=0;gv<gt.length;++gv){a0(gy.doc,"",gt[gv].anchor,gt[gv].head,"drag")}}gy.replaceSelection(gz,"around","paste");gy.display.input.focus()}}catch(gw){}}}function Q(gq,gs){if(dK&&(!gq.state.draggingText||+new Date-ag<100)){eu(gs);return}if(aQ(gq,gs)||ba(gq.display,gs)){return}gs.dataTransfer.setData("Text",gq.getSelection());if(gs.dataTransfer.setDragImage&&!aB){var gr=f9("img",null,null,"position: fixed; left: 0; top: 0;");gr.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==";if(d4){gr.width=gr.height=1;gq.display.wrapper.appendChild(gr);gr._top=gr.offsetTop}gs.dataTransfer.setDragImage(gr,0,0);if(d4){gr.parentNode.removeChild(gr)}}}function gn(gq,gr){var gt=cm(gq,gr);if(!gt){return}var gs=document.createDocumentFragment();A(gq,gt,gs);if(!gq.display.dragCursor){gq.display.dragCursor=f9("div",null,"CodeMirror-cursors CodeMirror-dragcursors");gq.display.lineSpace.insertBefore(gq.display.dragCursor,gq.display.cursorDiv)}bQ(gq.display.dragCursor,gs)}function da(gq){if(gq.display.dragCursor){gq.display.lineSpace.removeChild(gq.display.dragCursor);gq.display.dragCursor=null}}function N(gq,gr){if(Math.abs(gq.doc.scrollTop-gr)<2){return}gq.doc.scrollTop=gr;if(!cn){dT(gq,{top:gr})}if(gq.display.scroller.scrollTop!=gr){gq.display.scroller.scrollTop=gr}gq.display.scrollbars.setScrollTop(gr);if(cn){dT(gq)}eh(gq,100)}function bD(gq,gs,gr){if(gr?gs==gq.doc.scrollLeft:Math.abs(gq.doc.scrollLeft-gs)<2){return}gs=Math.min(gs,gq.display.scroller.scrollWidth-gq.display.scroller.clientWidth);gq.doc.scrollLeft=gs;eH(gq);if(gq.display.scroller.scrollLeft!=gs){gq.display.scroller.scrollLeft=gs}gq.display.scrollbars.setScrollLeft(gs)}var fr=0,cf=null;if(dK){cf=-0.53}else{if(cn){cf=15}else{if(dc){cf=-0.7}else{if(aB){cf=-1/3}}}}var cP=function(gs){var gr=gs.wheelDeltaX,gq=gs.wheelDeltaY;if(gr==null&&gs.detail&&gs.axis==gs.HORIZONTAL_AXIS){gr=gs.detail}if(gq==null&&gs.detail&&gs.axis==gs.VERTICAL_AXIS){gq=gs.detail}else{if(gq==null){gq=gs.wheelDelta}}return{x:gr,y:gq}};H.wheelEventPixels=function(gq){var gr=cP(gq);gr.x*=cf;gr.y*=cf;return gr};function b(gA,gu){var gC=cP(gu),gE=gC.x,gD=gC.y;var gw=gA.display,gz=gw.scroller;var gt=gz.scrollWidth>gz.clientWidth;var gs=gz.scrollHeight>gz.clientHeight;if(!(gE&&gt||gD&&gs)){return}if(gD&&b6&&cZ){outer:for(var gB=gu.target,gy=gw.view;gB!=gz;gB=gB.parentNode){for(var gr=0;gr<gy.length;gr++){if(gy[gr].node==gB){gA.display.currentWheelTarget=gB;break outer}}}}if(gE&&!cn&&!d4&&cf!=null){if(gD&&gs){N(gA,Math.max(0,Math.min(gz.scrollTop+gD*cf,gz.scrollHeight-gz.clientHeight)))}bD(gA,Math.max(0,Math.min(gz.scrollLeft+gE*cf,gz.scrollWidth-gz.clientWidth)));if(!gD||(gD&&gs)){cF(gu)}gw.wheelStartX=null;return}if(gD&&cf!=null){var gq=gD*cf;var gx=gA.doc.scrollTop,gv=gx+gw.wrapper.clientHeight;if(gq<0){gx=Math.max(0,gx+gq-50)}else{gv=Math.min(gA.doc.height,gv+gq+50)}dT(gA,{top:gx,bottom:gv})}if(fr<20){if(gw.wheelStartX==null){gw.wheelStartX=gz.scrollLeft;gw.wheelStartY=gz.scrollTop;gw.wheelDX=gE;gw.wheelDY=gD;setTimeout(function(){if(gw.wheelStartX==null){return}var gF=gz.scrollLeft-gw.wheelStartX;var gH=gz.scrollTop-gw.wheelStartY;var gG=(gH&&gw.wheelDY&&gH/gw.wheelDY)||(gF&&gw.wheelDX&&gF/gw.wheelDX);gw.wheelStartX=gw.wheelStartY=null;if(!gG){return}cf=(cf*fr+gG)/(fr+1);++fr},200)}else{gw.wheelDX+=gE;gw.wheelDY+=gD}}}function fX(gr,gu,gq){if(typeof gu=="string"){gu=eG[gu];if(!gu){return false}}gr.display.input.ensurePolled();var gt=gr.display.shift,gs=false;try{if(gr.isReadOnly()){gr.state.suppressEdits=true}if(gq){gr.display.shift=false}gs=gu(gr)!=b9}finally{gr.display.shift=gt;gr.state.suppressEdits=false}return gs}function eb(gr,gs,gu){for(var gt=0;gt<gr.state.keyMaps.length;gt++){var gq=i(gs,gr.state.keyMaps[gt],gu,gr);if(gq){return gq}}return(gr.options.extraKeys&&i(gs,gr.options.extraKeys,gu,gr))||i(gs,gr.options.keyMap,gu,gr)}var dM=new gp;function bc(gr,gt,gv,gu){var gs=gr.state.keySeq;if(gs){if(eF(gt)){return"handled"}dM.set(50,function(){if(gr.state.keySeq==gs){gr.state.keySeq=null;gr.display.input.reset()}});gt=gs+" "+gt}var gq=eb(gr,gt,gu);if(gq=="multi"){gr.state.keySeq=gt}if(gq=="handled"){ae(gr,"keyHandled",gr,gt,gv)}if(gq=="handled"||gq=="multi"){cF(gv);o(gr)}if(gs&&!gq&&/\'$/.test(gt)){cF(gv);return true}return !!gq}function fo(gq,gs){var gr=fw(gs,true);if(!gr){return false}if(gs.shiftKey&&!gq.state.keySeq){return bc(gq,"Shift-"+gr,gs,function(gt){return fX(gq,gt,true)})||bc(gq,gr,gs,function(gt){if(typeof gt=="string"?/^go[A-Z]/.test(gt):gt.motion){return fX(gq,gt)}})}else{return bc(gq,gr,gs,function(gt){return fX(gq,gt)})}}function el(gq,gs,gr){return bc(gq,"'"+gr+"'",gs,function(gt){return fX(gq,gt,true)})}var dm=null;function p(gt){var gq=this;gq.curOp.focus=dO();if(aQ(gq,gt)){return}if(dK&&k<11&&gt.keyCode==27){gt.returnValue=false}var gr=gt.keyCode;gq.display.shift=gr==16||gt.shiftKey;var gs=fo(gq,gt);if(d4){dm=gs?gr:null;if(!gs&&gr==88&&!c9&&(b6?gt.metaKey:gt.ctrlKey)){gq.replaceSelection("",null,"cut")}}if(gr==18&&!/\bCodeMirror-crosshair\b/.test(gq.display.lineDiv.className)){au(gq)}}function au(gr){var gs=gr.display.lineDiv;fF(gs,"CodeMirror-crosshair");function gq(gt){if(gt.keyCode==18||!gt.altKey){f(gs,"CodeMirror-crosshair");ef(document,"keyup",gq);ef(document,"mouseover",gq)}}bW(document,"keyup",gq);bW(document,"mouseover",gq)}function bh(gq){if(gq.keyCode==16){this.doc.sel.shift=false}aQ(this,gq)}function cw(gu){var gq=this;if(ba(gq.display,gu)||aQ(gq,gu)||gu.ctrlKey&&!gu.altKey||b6&&gu.metaKey){return}var gt=gu.keyCode,gr=gu.charCode;if(d4&&gt==dm){dm=null;cF(gu);return}if((d4&&(!gu.which||gu.which<10))&&fo(gq,gu)){return}var gs=String.fromCharCode(gr==null?gt:gr);if(el(gq,gu,gs)){return}gq.display.input.onKeyPress(gu)}function ak(gq){gq.state.delayingBlurEvent=true;setTimeout(function(){if(gq.state.delayingBlurEvent){gq.state.delayingBlurEvent=false;aU(gq)}},100)}function cA(gq){if(gq.state.delayingBlurEvent){gq.state.delayingBlurEvent=false}if(gq.options.readOnly=="nocursor"){return}if(!gq.state.focused){aD(gq,"focus",gq);gq.state.focused=true;fF(gq.display.wrapper,"CodeMirror-focused");if(!gq.curOp&&gq.display.selForContextMenu!=gq.doc.sel){gq.display.input.reset();if(cZ){setTimeout(function(){gq.display.input.reset(true)},20)}}gq.display.input.receivedFocus()}o(gq)}function aU(gq){if(gq.state.delayingBlurEvent){return}if(gq.state.focused){aD(gq,"blur",gq);gq.state.focused=false;f(gq.display.wrapper,"CodeMirror-focused")}clearInterval(gq.display.blinker);setTimeout(function(){if(!gq.state.focused){gq.display.shift=false}},150)}function ax(gq,gr){if(ba(gq.display,gr)||dg(gq,gr)){return}if(aQ(gq,gr,"contextmenu")){return}gq.display.input.onContextMenu(gr)}function dg(gq,gr){if(!fn(gq,"gutterContextMenu")){return false}return go(gq,gr,"gutterContextMenu",false)}var cW=H.changeEnd=function(gq){if(!gq.text){return gq.to}return W(gq.from.line+gq.text.length-1,fL(gq.text).length+(gq.text.length==1?gq.from.ch:0))};function bY(gt,gs){if(ce(gt,gs.from)<0){return gt}if(ce(gt,gs.to)<=0){return cW(gs)}var gq=gt.line+gs.text.length-(gs.to.line-gs.from.line)-1,gr=gt.ch;if(gt.line==gs.to.line){gr+=cW(gs).ch-gs.to.ch}return W(gq,gr)}function fp(gt,gu){var gr=[];for(var gs=0;gs<gt.sel.ranges.length;gs++){var gq=gt.sel.ranges[gs];gr.push(new dY(bY(gq.anchor,gu),bY(gq.head,gu)))}return cv(gr,gt.sel.primIndex)}function bt(gs,gr,gq){if(gs.line==gr.line){return W(gq.line,gs.ch-gr.ch+gq.ch)}else{return W(gq.line+(gs.line-gr.line),gs.ch)}}function af(gA,gx,gr){var gs=[];var gq=W(gA.first,0),gB=gq;for(var gu=0;gu<gx.length;gu++){var gw=gx[gu];var gz=bt(gw.from,gq,gB);var gy=bt(cW(gw),gq,gB);gq=gw.to;gB=gy;if(gr=="around"){var gv=gA.sel.ranges[gu],gt=ce(gv.head,gv.anchor)<0;gs[gu]=new dY(gt?gy:gz,gt?gz:gy)}else{gs[gu]=new dY(gz,gz)}}return new ga(gs,gA.sel.primIndex)}function dR(gr,gt,gs){var gq={canceled:false,from:gt.from,to:gt.to,text:gt.text,origin:gt.origin,cancel:function(){this.canceled=true}};if(gs){gq.update=function(gx,gw,gv,gu){if(gx){this.from=fP(gr,gx)}if(gw){this.to=fP(gr,gw)}if(gv){this.text=gv}if(gu!==undefined){this.origin=gu}}}aD(gr,"beforeChange",gr,gq);if(gr.cm){aD(gr.cm,"beforeChange",gr.cm,gq)}if(gq.canceled){return null}return{from:gq.from,to:gq.to,text:gq.text,origin:gq.origin}}function bf(gt,gu,gs){if(gt.cm){if(!gt.cm.curOp){return c1(gt.cm,bf)(gt,gu,gs)}if(gt.cm.state.suppressEdits){return}}if(fn(gt,"beforeChange")||gt.cm&&fn(gt.cm,"beforeChange")){gu=dR(gt,gu,true);if(!gu){return}}var gr=gj&&!gs&&cG(gt,gu.from,gu.to);if(gr){for(var gq=gr.length-1;gq>=0;--gq){K(gt,{from:gr[gq].from,to:gr[gq].to,text:gq?[""]:gu.text})}}else{K(gt,gu)}}function K(gs,gt){if(gt.text.length==1&&gt.text[0]==""&&ce(gt.from,gt.to)==0){return}var gr=fp(gs,gt);fS(gs,gt,gr,gs.cm?gs.cm.curOp.id:NaN);eg(gs,gt,gr,em(gs,gt));var gq=[];d8(gs,function(gv,gu){if(!gu&&dh(gq,gv.history)==-1){dE(gv.history,gt);gq.push(gv.history)}eg(gv,gt,null,em(gv,gt))})}function b7(gB,gz,gD){if(gB.cm&&gB.cm.state.suppressEdits){return}var gy=gB.history,gs,gu=gB.sel;var gq=gz=="undo"?gy.done:gy.undone,gC=gz=="undo"?gy.undone:gy.done;for(var gv=0;gv<gq.length;gv++){gs=gq[gv];if(gD?gs.ranges&&!gs.equals(gB.sel):!gs.ranges){break}}if(gv==gq.length){return}gy.lastOrigin=gy.lastSelOrigin=null;for(;;){gs=gq.pop();if(gs.ranges){cM(gs,gC);if(gD&&!gs.equals(gB.sel)){bT(gB,gs,{clearRedo:false});return}gu=gs}else{break}}var gx=[];cM(gu,gC);gC.push({changes:gx,generation:gy.generation});gy.generation=gs.generation||++gy.maxGeneration;var gt=fn(gB,"beforeChange")||gB.cm&&fn(gB.cm,"beforeChange");for(var gv=gs.changes.length-1;gv>=0;--gv){var gA=gs.changes[gv];gA.origin=gz;if(gt&&!dR(gB,gA,false)){gq.length=0;return}gx.push(du(gB,gA));var gr=gv?fp(gB,gA):fL(gq);eg(gB,gA,gr,ea(gB,gA));if(!gv&&gB.cm){gB.cm.scrollIntoView({from:gA.from,to:cW(gA)})}var gw=[];d8(gB,function(gF,gE){if(!gE&&dh(gw,gF.history)==-1){dE(gF.history,gA);gw.push(gF.history)}eg(gF,gA,null,ea(gF,gA))})}}function fs(gr,gt){if(gt==0){return}gr.first+=gt;gr.sel=new ga(bR(gr.sel.ranges,function(gu){return new dY(W(gu.anchor.line+gt,gu.anchor.ch),W(gu.head.line+gt,gu.head.ch))}),gr.sel.primIndex);if(gr.cm){ah(gr.cm,gr.first,gr.first-gt,gt);for(var gs=gr.cm.display,gq=gs.viewFrom;gq<gs.viewTo;gq++){R(gr.cm,gq,"gutter")}}}function eg(gu,gv,gt,gr){if(gu.cm&&!gu.cm.curOp){return c1(gu.cm,eg)(gu,gv,gt,gr)}if(gv.to.line<gu.first){fs(gu,gv.text.length-1-(gv.to.line-gv.from.line));return}if(gv.from.line>gu.lastLine()){return}if(gv.from.line<gu.first){var gq=gv.text.length-1-(gu.first-gv.from.line);fs(gu,gq);gv={from:W(gu.first,0),to:W(gv.to.line+gq,gv.to.ch),text:[fL(gv.text)],origin:gv.origin}}var gs=gu.lastLine();if(gv.to.line>gs){gv={from:gv.from,to:W(gs,fk(gu,gs).text.length),text:[gv.text[0]],origin:gv.origin}}gv.removed=gb(gu,gv.from,gv.to);if(!gt){gt=fp(gu,gv)}if(gu.cm){aI(gu.cm,gv,gr)}else{fD(gu,gv,gr)}es(gu,gt,Z)}function aI(gB,gx,gv){var gA=gB.doc,gw=gB.display,gy=gx.from,gz=gx.to;var gq=false,gu=gy.line;if(!gB.options.lineWrapping){gu=bM(x(fk(gA,gy.line)));gA.iter(gu,gz.line+1,function(gD){if(gD==gw.maxLine){gq=true;return true}})}if(gA.sel.contains(gx.from,gx.to)>-1){V(gB)}fD(gA,gx,gv,bd(gB));if(!gB.options.lineWrapping){gA.iter(gu,gy.line+gx.text.length,function(gE){var gD=eq(gE);if(gD>gw.maxLineLength){gw.maxLine=gE;gw.maxLineLength=gD;gw.maxLineChanged=true;gq=false}});if(gq){gB.curOp.updateMaxLine=true}}gA.frontier=Math.min(gA.frontier,gy.line);eh(gB,400);var gC=gx.text.length-(gz.line-gy.line)-1;if(gx.full){ah(gB)}else{if(gy.line==gz.line&&gx.text.length==1&&!dS(gB.doc,gx)){R(gB,gy.line,"text")}else{ah(gB,gy.line,gz.line+1,gC)}}var gs=fn(gB,"changes"),gt=fn(gB,"change");if(gt||gs){var gr={from:gy,to:gz,text:gx.text,removed:gx.removed,origin:gx.origin};if(gt){ae(gB,"change",gB,gr)}if(gs){(gB.curOp.changeObjs||(gB.curOp.changeObjs=[])).push(gr)}}gB.display.selForContextMenu=null}function a0(gt,gs,gv,gu,gq){if(!gu){gu=gv}if(ce(gu,gv)<0){var gr=gu;gu=gv;gv=gr}if(typeof gs=="string"){gs=gt.splitLines(gs)}bf(gt,{from:gv,to:gu,text:gs,origin:gq})}function d7(gr,gu){if(aQ(gr,"scrollCursorIntoView")){return}var gv=gr.display,gs=gv.sizer.getBoundingClientRect(),gq=null;if(gu.top+gs.top<0){gq=true}else{if(gu.bottom+gs.top>(window.innerHeight||document.documentElement.clientHeight)){gq=false}}if(gq!=null&&!fz){var gt=f9("div","\u200b",null,"position: absolute; top: "+(gu.top-gv.viewOffset-fd(gr.display))+"px; height: "+(gu.bottom-gu.top+cS(gr)+gv.barHeight)+"px; left: "+gu.left+"px; width: 2px;");gr.display.lineSpace.appendChild(gt);gt.scrollIntoView(gq);gr.display.lineSpace.removeChild(gt)}}function D(gA,gy,gu,gt){if(gt==null){gt=0}for(var gv=0;gv<5;gv++){var gw=false,gz=dU(gA,gy);var gq=!gu||gu==gy?gz:dU(gA,gu);var gs=G(gA,Math.min(gz.left,gq.left),Math.min(gz.top,gq.top)-gt,Math.max(gz.left,gq.left),Math.max(gz.bottom,gq.bottom)+gt);var gx=gA.doc.scrollTop,gr=gA.doc.scrollLeft;if(gs.scrollTop!=null){N(gA,gs.scrollTop);if(Math.abs(gA.doc.scrollTop-gx)>1){gw=true}}if(gs.scrollLeft!=null){bD(gA,gs.scrollLeft);if(Math.abs(gA.doc.scrollLeft-gr)>1){gw=true}}if(!gw){break}}return gz}function E(gq,gs,gu,gr,gt){var gv=G(gq,gs,gu,gr,gt);if(gv.scrollTop!=null){N(gq,gv.scrollTop)}if(gv.scrollLeft!=null){bD(gq,gv.scrollLeft)}}function G(gC,gt,gB,gr,gA){var gy=gC.display,gw=aX(gC.display);if(gB<0){gB=0}var gu=gC.curOp&&gC.curOp.scrollTop!=null?gC.curOp.scrollTop:gy.scroller.scrollTop;var gE=cU(gC),gG={};if(gA-gB>gE){gA=gB+gE}var gs=gC.doc.height+bH(gy);var gq=gB<gw,gx=gA>gs-gw;if(gB<gu){gG.scrollTop=gq?0:gB}else{if(gA>gu+gE){var gz=Math.min(gB,(gx?gs:gA)-gE);if(gz!=gu){gG.scrollTop=gz}}}var gF=gC.curOp&&gC.curOp.scrollLeft!=null?gC.curOp.scrollLeft:gy.scroller.scrollLeft;var gD=dl(gC)-(gC.options.fixedGutter?gy.gutters.offsetWidth:0);var gv=gr-gt>gD;if(gv){gr=gt+gD}if(gt<10){gG.scrollLeft=0}else{if(gt<gF){gG.scrollLeft=Math.max(0,gt-(gv?0:10))}else{if(gr>gD+gF-3){gG.scrollLeft=gr+(gv?0:10)-gD}}}return gG}function cK(gq,gs,gr){if(gs!=null||gr!=null){fH(gq)}if(gs!=null){gq.curOp.scrollLeft=(gq.curOp.scrollLeft==null?gq.doc.scrollLeft:gq.curOp.scrollLeft)+gs}if(gr!=null){gq.curOp.scrollTop=(gq.curOp.scrollTop==null?gq.doc.scrollTop:gq.curOp.scrollTop)+gr}}function fK(gq){fH(gq);var gr=gq.getCursor(),gt=gr,gs=gr;if(!gq.options.lineWrapping){gt=gr.ch?W(gr.line,gr.ch-1):gr;gs=W(gr.line,gr.ch+1)}gq.curOp.scrollToPos={from:gt,to:gs,margin:gq.options.cursorScrollMargin,isCursor:true}}function fH(gq){var gs=gq.curOp.scrollToPos;if(gs){gq.curOp.scrollToPos=null;var gu=dH(gq,gs.from),gt=dH(gq,gs.to);var gr=G(gq,Math.min(gu.left,gt.left),Math.min(gu.top,gt.top)-gs.margin,Math.max(gu.right,gt.right),Math.max(gu.bottom,gt.bottom)+gs.margin);gq.scrollTo(gr.scrollLeft,gr.scrollTop)}}function ad(gD,gt,gC,gs){var gB=gD.doc,gr;if(gC==null){gC="add"}if(gC=="smart"){if(!gB.mode.indent){gC="prev"}else{gr=dC(gD,gt)}}var gx=gD.options.tabSize;var gE=fk(gB,gt),gw=bS(gE.text,null,gx);if(gE.stateAfter){gE.stateAfter=null}var gq=gE.text.match(/^\s*/)[0],gz;if(!gs&&!/\S/.test(gE.text)){gz=0;gC="not"}else{if(gC=="smart"){gz=gB.mode.indent(gr,gE.text.slice(gq.length),gE.text);if(gz==b9||gz>150){if(!gs){return}gC="prev"}}}if(gC=="prev"){if(gt>gB.first){gz=bS(fk(gB,gt-1).text,null,gx)}else{gz=0}}else{if(gC=="add"){gz=gw+gD.options.indentUnit}else{if(gC=="subtract"){gz=gw-gD.options.indentUnit}else{if(typeof gC=="number"){gz=gw+gC}}}}gz=Math.max(0,gz);var gA="",gy=0;if(gD.options.indentWithTabs){for(var gu=Math.floor(gz/gx);gu;--gu){gy+=gx;gA+="\t"}}if(gy<gz){gA+=co(gz-gy)}if(gA!=gq){a0(gB,gA,W(gt,0),W(gt,gq.length),"+input");gE.stateAfter=null;return true}else{for(var gu=0;gu<gB.sel.ranges.length;gu++){var gv=gB.sel.ranges[gu];if(gv.head.line==gt&&gv.head.ch<gq.length){var gy=W(gt,gq.length);e(gB,gu,new dY(gy,gy));break}}}}function eC(gt,gs,gq,gv){var gu=gs,gr=gs;if(typeof gs=="number"){gr=fk(gt,c4(gt,gs))}else{gu=bM(gs)}if(gu==null){return null}if(gv(gr,gu)&&gt.cm){R(gt.cm,gu,gq)}return gr}function e1(gq,gw){var gr=gq.doc.sel.ranges,gu=[];for(var gt=0;gt<gr.length;gt++){var gs=gw(gr[gt]);while(gu.length&&ce(gs.from,fL(gu).to)<=0){var gv=gu.pop();if(ce(gv.from,gs.from)<0){gs.from=gv.from;break}}gu.push(gs)}cL(gq,function(){for(var gx=gu.length-1;gx>=0;gx--){a0(gq.doc,"",gu[gx].from,gu[gx].to,"+delete")}fK(gq)})}function bv(gH,gu,gC,gB,gw){var gz=gu.line,gA=gu.ch,gG=gC;var gr=fk(gH,gz);function gF(){var gI=gz+gC;if(gI<gH.first||gI>=gH.first+gH.size){return false}gz=gI;return gr=fk(gH,gI)}function gE(gJ){var gI=(gw?u:ai)(gr,gA,gC,true);if(gI==null){if(!gJ&&gF()){if(gw){gA=(gC<0?cR:cD)(gr)}else{gA=gC<0?gr.text.length:0}}else{return false}}else{gA=gI}return true}if(gB=="char"){gE()}else{if(gB=="column"){gE(true)}else{if(gB=="word"||gB=="group"){var gD=null,gx=gB=="group";var gq=gH.cm&&gH.cm.getHelper(gu,"wordChars");for(var gv=true;;gv=false){if(gC<0&&!gE(!gv)){break}var gs=gr.text.charAt(gA)||"\n";var gt=cz(gs,gq)?"w":gx&&gs=="\n"?"n":!gx||/\s/.test(gs)?null:"p";if(gx&&!gv&&!gt){gt="s"}if(gD&&gD!=gt){if(gC<0){gC=1;gE()}break}if(gt){gD=gt}if(gC>0&&!gE(!gv)){break}}}}}var gy=bU(gH,W(gz,gA),gu,gG,true);if(!ce(gu,gy)){gy.hitSide=true}return gy}function bp(gy,gt,gq,gx){var gw=gy.doc,gv=gt.left,gu;if(gx=="page"){var gs=Math.min(gy.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight);gu=gt.top+gq*(gs-(gq<0?1.5:0.5)*aX(gy.display))}else{if(gx=="line"){gu=gq>0?gt.bottom+3:gt.top-3}}for(;;){var gr=fU(gy,gv,gu);if(!gr.outside){break}if(gq<0?gu<=0:gu>=gw.height){gr.hitSide=true;break}gu+=gq*5}return gr}H.prototype={constructor:H,focus:function(){window.focus();this.display.input.focus()},setOption:function(gs,gt){var gr=this.options,gq=gr[gs];if(gr[gs]==gt&&gs!="mode"){return}gr[gs]=gt;if(be.hasOwnProperty(gs)){c1(this,be[gs])(this,gt,gq)}},getOption:function(gq){return this.options[gq]},getDoc:function(){return this.doc},addKeyMap:function(gr,gq){this.state.keyMaps[gq?"push":"unshift"](f4(gr))},removeKeyMap:function(gr){var gs=this.state.keyMaps;for(var gq=0;gq<gs.length;++gq){if(gs[gq]==gr||gs[gq].name==gr){gs.splice(gq,1);return true}}},addOverlay:c7(function(gq,gr){var gs=gq.token?gq:H.getMode(this.options,gq);if(gs.startState){throw new Error("Overlays may not be stateful.")}this.state.overlays.push({mode:gs,modeSpec:gq,opaque:gr&&gr.opaque});this.state.modeGen++;ah(this)}),removeOverlay:c7(function(gq){var gs=this.state.overlays;for(var gr=0;gr<gs.length;++gr){var gt=gs[gr].modeSpec;if(gt==gq||typeof gq=="string"&&gt.name==gq){gs.splice(gr,1);this.state.modeGen++;ah(this);return}}}),indentLine:c7(function(gs,gq,gr){if(typeof gq!="string"&&typeof gq!="number"){if(gq==null){gq=this.options.smartIndent?"smart":"prev"}else{gq=gq?"add":"subtract"}}if(b8(this.doc,gs)){ad(this,gs,gq,gr)}}),indentSelection:c7(function(gz){var gq=this.doc.sel.ranges,gt=-1;for(var gv=0;gv<gq.length;gv++){var gw=gq[gv];if(!gw.empty()){var gx=gw.from(),gy=gw.to();var gr=Math.max(gt,gx.line);gt=Math.min(this.lastLine(),gy.line-(gy.ch?0:1))+1;for(var gu=gr;gu<gt;++gu){ad(this,gu,gz)}var gs=this.doc.sel.ranges;if(gx.ch==0&&gq.length==gs.length&&gs[gv].from().ch>0){e(this.doc,gv,new dY(gx,gs[gv].to()),Z)}}else{if(gw.head.line>gt){ad(this,gw.head.line,gz,true);gt=gw.head.line;if(gv==this.doc.sel.primIndex){fK(this)}}}}}),getTokenAt:function(gr,gq){return cp(this,gr,gq)},getLineTokens:function(gr,gq){return cp(this,W(gr),gq,true)},getTokenTypeAt:function(gx){gx=fP(this.doc,gx);var gt=c5(this,fk(this.doc,gx.line));var gv=0,gw=(gt.length-1)/2,gs=gx.ch;var gr;if(gs==0){gr=gt[2]}else{for(;;){var gq=(gv+gw)>>1;if((gq?gt[gq*2-1]:0)>=gs){gw=gq}else{if(gt[gq*2+1]<gs){gv=gq+1}else{gr=gt[gq*2+2];break}}}}var gu=gr?gr.indexOf("cm-overlay "):-1;return gu<0?gr:gu==0?null:gr.slice(0,gu-1)},getModeAt:function(gr){var gq=this.doc.mode;if(!gq.innerMode){return gq}return H.innerMode(gq,this.getTokenAt(gr).state).mode},getHelper:function(gr,gq){return this.getHelpers(gr,gq)[0]},getHelpers:function(gx,gs){var gt=[];if(!ft.hasOwnProperty(gs)){return gt}var gq=ft[gs],gw=this.getModeAt(gx);if(typeof gw[gs]=="string"){if(gq[gw[gs]]){gt.push(gq[gw[gs]])}}else{if(gw[gs]){for(var gr=0;gr<gw[gs].length;gr++){var gv=gq[gw[gs][gr]];if(gv){gt.push(gv)}}}else{if(gw.helperType&&gq[gw.helperType]){gt.push(gq[gw.helperType])}else{if(gq[gw.name]){gt.push(gq[gw.name])}}}}for(var gr=0;gr<gq._global.length;gr++){var gu=gq._global[gr];if(gu.pred(gw,this)&&dh(gt,gu.val)==-1){gt.push(gu.val)}}return gt},getStateAfter:function(gr,gq){var gs=this.doc;gr=c4(gs,gr==null?gs.first+gs.size-1:gr);return dC(this,gr+1,gq)},cursorCoords:function(gt,gr){var gs,gq=this.doc.sel.primary();if(gt==null){gs=gq.head}else{if(typeof gt=="object"){gs=fP(this.doc,gt)}else{gs=gt?gq.from():gq.to()}}return dU(this,gs,gr||"page")},charCoords:function(gr,gq){return cI(this,fP(this.doc,gr),gq||"page")},coordsChar:function(gq,gr){gq=gl(this,gq,gr||"page");return fU(this,gq.left,gq.top)},lineAtHeight:function(gq,gr){gq=gl(this,{top:gq,left:0},gr||"page").top;return bF(this.doc,gq+this.display.viewOffset)},heightAtLine:function(gr,gu){var gq=false,gs;if(typeof gr=="number"){var gt=this.doc.first+this.doc.size-1;if(gr<this.doc.first){gr=this.doc.first}else{if(gr>gt){gr=gt;gq=true}}gs=fk(this.doc,gr)}else{gs=gr}return eU(this,gs,{top:0,left:0},gu||"page").top+(gq?this.doc.height-bL(gs):0)},defaultTextHeight:function(){return aX(this.display)},defaultCharWidth:function(){return dD(this.display)},setGutterMarker:c7(function(gq,gr,gs){return eC(this.doc,gq,"gutter",function(gt){var gu=gt.gutterMarkers||(gt.gutterMarkers={});gu[gr]=gs;if(!gs&&eY(gu)){gt.gutterMarkers=null}return true})}),clearGutter:c7(function(gs){var gq=this,gt=gq.doc,gr=gt.first;gt.iter(function(gu){if(gu.gutterMarkers&&gu.gutterMarkers[gs]){gu.gutterMarkers[gs]=null;R(gq,gr,"gutter");if(eY(gu.gutterMarkers)){gu.gutterMarkers=null}}++gr})}),lineInfo:function(gq){if(typeof gq=="number"){if(!b8(this.doc,gq)){return null}var gr=gq;gq=fk(this.doc,gq);if(!gq){return null}}else{var gr=bM(gq);if(gr==null){return null}}return{line:gr,handle:gq,text:gq.text,gutterMarkers:gq.gutterMarkers,textClass:gq.textClass,bgClass:gq.bgClass,wrapClass:gq.wrapClass,widgets:gq.widgets}},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(gv,gs,gx,gt,gz){var gu=this.display;gv=dU(this,fP(this.doc,gv));var gw=gv.bottom,gr=gv.left;gs.style.position="absolute";gs.setAttribute("cm-ignore-events","true");this.display.input.setUneditable(gs);gu.sizer.appendChild(gs);if(gt=="over"){gw=gv.top}else{if(gt=="above"||gt=="near"){var gq=Math.max(gu.wrapper.clientHeight,this.doc.height),gy=Math.max(gu.sizer.clientWidth,gu.lineSpace.clientWidth);if((gt=="above"||gv.bottom+gs.offsetHeight>gq)&&gv.top>gs.offsetHeight){gw=gv.top-gs.offsetHeight}else{if(gv.bottom+gs.offsetHeight<=gq){gw=gv.bottom}}if(gr+gs.offsetWidth>gy){gr=gy-gs.offsetWidth}}}gs.style.top=gw+"px";gs.style.left=gs.style.right="";if(gz=="right"){gr=gu.sizer.clientWidth-gs.offsetWidth;gs.style.right="0px"}else{if(gz=="left"){gr=0}else{if(gz=="middle"){gr=(gu.sizer.clientWidth-gs.offsetWidth)/2}}gs.style.left=gr+"px"}if(gx){E(this,gr,gw,gr+gs.offsetWidth,gw+gs.offsetHeight)}},triggerOnKeyDown:c7(p),triggerOnKeyPress:c7(cw),triggerOnKeyUp:bh,execCommand:function(gq){if(eG.hasOwnProperty(gq)){return eG[gq].call(null,this)}},triggerElectric:c7(function(gq){f2(this,gq)}),findPosH:function(gw,gt,gu,gr){var gq=1;if(gt<0){gq=-1;gt=-gt}for(var gs=0,gv=fP(this.doc,gw);gs<gt;++gs){gv=bv(this.doc,gv,gq,gu,gr);if(gv.hitSide){break}}return gv},moveH:c7(function(gr,gs){var gq=this;gq.extendSelectionsBy(function(gt){if(gq.display.shift||gq.doc.extend||gt.empty()){return bv(gq.doc,gt.head,gr,gs,gq.options.rtlMoveVisually)}else{return gr<0?gt.from():gt.to()}},cV)}),deleteH:c7(function(gq,gr){var gs=this.doc.sel,gt=this.doc;if(gs.somethingSelected()){gt.replaceSelection("",null,"+delete")}else{e1(this,function(gv){var gu=bv(gt,gv.head,gq,gr,false);return gq<0?{from:gu,to:gv.head}:{from:gv.head,to:gu}})}}),findPosV:function(gv,gs,gw,gy){var gq=1,gu=gy;if(gs<0){gq=-1;gs=-gs}for(var gr=0,gx=fP(this.doc,gv);gr<gs;++gr){var gt=dU(this,gx,"div");if(gu==null){gu=gt.left}else{gt.left=gu}gx=bp(this,gt,gq,gw);if(gx.hitSide){break}}return gx},moveV:c7(function(gr,gt){var gq=this,gv=this.doc,gu=[];var gw=!gq.display.shift&&!gv.extend&&gv.sel.somethingSelected();gv.extendSelectionsBy(function(gx){if(gw){return gr<0?gx.from():gx.to()}var gz=dU(gq,gx.head,"div");if(gx.goalColumn!=null){gz.left=gx.goalColumn}gu.push(gz.left);var gy=bp(gq,gz,gr,gt);if(gt=="page"&&gx==gv.sel.primary()){cK(gq,null,cI(gq,gy,"div").top-gz.top)}return gy},cV);if(gu.length){for(var gs=0;gs<gv.sel.ranges.length;gs++){gv.sel.ranges[gs].goalColumn=gu[gs]}}}),findWordAt:function(gx){var gv=this.doc,gt=fk(gv,gx.line).text;var gw=gx.ch,gs=gx.ch;if(gt){var gu=this.getHelper(gx,"wordChars");if((gx.xRel<0||gs==gt.length)&&gw){--gw}else{++gs}var gr=gt.charAt(gw);var gq=cz(gr,gu)?function(gy){return cz(gy,gu)}:/\s/.test(gr)?function(gy){return/\s/.test(gy)}:function(gy){return !/\s/.test(gy)&&!cz(gy)};while(gw>0&&gq(gt.charAt(gw-1))){--gw}while(gs<gt.length&&gq(gt.charAt(gs))){++gs}}return new dY(W(gx.line,gw),W(gx.line,gs))},toggleOverwrite:function(gq){if(gq!=null&&gq==this.state.overwrite){return}if(this.state.overwrite=!this.state.overwrite){fF(this.display.cursorDiv,"CodeMirror-overwrite")}else{f(this.display.cursorDiv,"CodeMirror-overwrite")}aD(this,"overwriteToggle",this,this.state.overwrite)},hasFocus:function(){return this.display.input.getField()==dO()},isReadOnly:function(){return !!(this.options.readOnly||this.doc.cantEdit)},scrollTo:c7(function(gq,gr){if(gq!=null||gr!=null){fH(this)}if(gq!=null){this.curOp.scrollLeft=gq}if(gr!=null){this.curOp.scrollTop=gr}}),getScrollInfo:function(){var gq=this.display.scroller;return{left:gq.scrollLeft,top:gq.scrollTop,height:gq.scrollHeight-cS(this)-this.display.barHeight,width:gq.scrollWidth-cS(this)-this.display.barWidth,clientHeight:cU(this),clientWidth:dl(this)}},scrollIntoView:c7(function(gr,gs){if(gr==null){gr={from:this.doc.sel.primary().head,to:null};if(gs==null){gs=this.options.cursorScrollMargin}}else{if(typeof gr=="number"){gr={from:W(gr,0),to:null}}else{if(gr.from==null){gr={from:gr,to:null}}}}if(!gr.to){gr.to=gr.from}gr.margin=gs||0;if(gr.from.line!=null){fH(this);this.curOp.scrollToPos=gr}else{var gq=G(this,Math.min(gr.from.left,gr.to.left),Math.min(gr.from.top,gr.to.top)-gr.margin,Math.max(gr.from.right,gr.to.right),Math.max(gr.from.bottom,gr.to.bottom)+gr.margin);this.scrollTo(gq.scrollLeft,gq.scrollTop)}}),setSize:c7(function(gt,gr){var gq=this;function gs(gv){return typeof gv=="number"||/^\d+$/.test(String(gv))?gv+"px":gv}if(gt!=null){gq.display.wrapper.style.width=gs(gt)}if(gr!=null){gq.display.wrapper.style.height=gs(gr)}if(gq.options.lineWrapping){aN(this)}var gu=gq.display.viewFrom;gq.doc.iter(gu,gq.display.viewTo,function(gv){if(gv.widgets){for(var gw=0;gw<gv.widgets.length;gw++){if(gv.widgets[gw].noHScroll){R(gq,gu,"widget");break}}}++gu});gq.curOp.forceUpdate=true;aD(gq,"refresh",this)}),operation:function(gq){return cL(this,gq)},refresh:c7(function(){var gq=this.display.cachedTextHeight;ah(this);this.curOp.forceUpdate=true;aj(this);this.scrollTo(this.doc.scrollLeft,this.doc.scrollTop);c3(this);if(gq==null||Math.abs(gq-aX(this.display))>0.5){X(this)}aD(this,"refresh",this)}),swapDoc:c7(function(gr){var gq=this.doc;gq.cm=null;ed(this,gr);aj(this);this.display.input.reset();this.scrollTo(gr.scrollLeft,gr.scrollTop);this.curOp.forceScroll=true;ae(this,"swapDoc",this,gq);return gq}),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}};bx(H);var e7=H.defaults={};var be=H.optionHandlers={};function s(gq,gt,gs,gr){H.defaults[gq]=gt;if(gs){be[gq]=gr?function(gu,gw,gv){if(gv!=cb){gs(gu,gw,gv)}}:gs}}var cb=H.Init={toString:function(){return"CodeMirror.Init"}};s("value","",function(gq,gr){gq.setValue(gr)},true);s("mode",null,function(gq,gr){gq.doc.modeOption=gr;bq(gq)},true);s("indentUnit",2,bq,true);s("indentWithTabs",false);s("smartIndent",true);s("tabSize",4,function(gq){eo(gq);aj(gq);ah(gq)},true);s("lineSeparator",null,function(gq,gt){gq.doc.lineSep=gt;if(!gt){return}var gs=[],gu=gq.doc.first;gq.doc.iter(function(gv){for(var gx=0;;){var gw=gv.text.indexOf(gt,gx);if(gw==-1){break}gx=gw+gt.length;gs.push(W(gu,gw))}gu++});for(var gr=gs.length-1;gr>=0;gr--){a0(gq.doc,gt,gs[gr],W(gs[gr].line,gs[gr].ch+gt.length))}});s("specialChars",/[\t\u0000-\u0019\u00ad\u200b-\u200f\u2028\u2029\ufeff]/g,function(gq,gs,gr){gq.state.specialChars=new RegExp(gs.source+(gs.test("\t")?"":"|\t"),"g");if(gr!=H.Init){gq.refresh()}});s("specialCharPlaceholder",fh,function(gq){gq.refresh()},true);s("electricChars",true);s("inputStyle",ei?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},true);s("rtlMoveVisually",!aO);s("wholeLineUpdateBefore",true);s("theme","default",function(gq){cN(gq);dw(gq)},true);s("keyMap","default",function(gq,gu,gr){var gs=f4(gu);var gt=gr!=H.Init&&f4(gr);if(gt&&gt.detach){gt.detach(gq,gs)}if(gs.attach){gs.attach(gq,gt||null)}});s("extraKeys",null);s("lineWrapping",false,eJ,true);s("gutters",[],function(gq){cd(gq.options);dw(gq)},true);s("fixedGutter",true,function(gq,gr){gq.display.gutters.style.left=gr?dX(gq.display)+"px":"0";gq.refresh()},true);s("coverGutterNextToScrollbar",false,function(gq){e2(gq)},true);s("scrollbarStyle","native",function(gq){aC(gq);e2(gq);gq.display.scrollbars.setScrollTop(gq.doc.scrollTop);gq.display.scrollbars.setScrollLeft(gq.doc.scrollLeft)},true);s("lineNumbers",false,function(gq){cd(gq.options);dw(gq)},true);s("firstLineNumber",1,dw,true);s("lineNumberFormatter",function(gq){return gq},dw,true);s("showCursorWhenSelecting",false,bB,true);s("resetSelectionOnContextMenu",true);s("lineWiseCopyCut",true);s("readOnly",false,function(gq,gr){if(gr=="nocursor"){aU(gq);gq.display.input.blur();gq.display.disabled=true}else{gq.display.disabled=false}gq.display.input.readOnlyChanged(gr)});s("disableInput",false,function(gq,gr){if(!gr){gq.display.input.reset()}},true);s("dragDrop",true,f7);s("allowDropFileTypes",null);s("cursorBlinkRate",530);s("cursorScrollMargin",0);s("cursorHeight",1,bB,true);s("singleCursorHeightPerLine",true,bB,true);s("workTime",100);s("workDelay",100);s("flattenSpans",true,eo,true);s("addModeClass",false,eo,true);s("pollInterval",100);s("undoDepth",200,function(gq,gr){gq.doc.history.undoDepth=gr});s("historyEventDelay",1250);s("viewportMargin",10,function(gq){gq.refresh()},true);s("maxHighlightLength",10000,eo,true);s("moveInputWithCursor",true,function(gq,gr){if(!gr){gq.display.input.resetPosition()}});s("tabindex",null,function(gq,gr){gq.display.input.getField().tabIndex=gr||""});s("autofocus",null);var ds=H.modes={},aR=H.mimeModes={};H.defineMode=function(gq,gr){if(!H.defaults.mode&&gq!="null"){H.defaults.mode=gq}if(arguments.length>2){gr.dependencies=Array.prototype.slice.call(arguments,2)}ds[gq]=gr};H.defineMIME=function(gr,gq){aR[gr]=gq};H.resolveMode=function(gq){if(typeof gq=="string"&&aR.hasOwnProperty(gq)){gq=aR[gq]}else{if(gq&&typeof gq.name=="string"&&aR.hasOwnProperty(gq.name)){var gr=aR[gq.name];if(typeof gr=="string"){gr={name:gr}}gq=cj(gr,gq);gq.name=gr.name}else{if(typeof gq=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(gq)){return H.resolveMode("application/xml")}}}if(typeof gq=="string"){return{name:gq}}else{return gq||{name:"null"}}};H.getMode=function(gr,gq){var gq=H.resolveMode(gq);var gt=ds[gq.name];if(!gt){return H.getMode(gr,"text/plain")}var gu=gt(gr,gq);if(dp.hasOwnProperty(gq.name)){var gs=dp[gq.name];for(var gv in gs){if(!gs.hasOwnProperty(gv)){continue}if(gu.hasOwnProperty(gv)){gu["_"+gv]=gu[gv]}gu[gv]=gs[gv]}}gu.name=gq.name;if(gq.helperType){gu.helperType=gq.helperType}if(gq.modeProps){for(var gv in gq.modeProps){gu[gv]=gq.modeProps[gv]}}return gu};H.defineMode("null",function(){return{token:function(gq){gq.skipToEnd()}}});H.defineMIME("text/plain","null");var dp=H.modeExtensions={};H.extendMode=function(gs,gr){var gq=dp.hasOwnProperty(gs)?dp[gs]:(dp[gs]={});aM(gr,gq)};H.defineExtension=function(gq,gr){H.prototype[gq]=gr};H.defineDocExtension=function(gq,gr){ar.prototype[gq]=gr};H.defineOption=s;var a7=[];H.defineInitHook=function(gq){a7.push(gq)};var ft=H.helpers={};H.registerHelper=function(gr,gq,gs){if(!ft.hasOwnProperty(gr)){ft[gr]=H[gr]={_global:[]}}ft[gr][gq]=gs};H.registerGlobalHelper=function(gs,gr,gq,gt){H.registerHelper(gs,gr,gt);ft[gs]._global.push({pred:gq,val:gt})};var b2=H.copyState=function(gt,gq){if(gq===true){return gq}if(gt.copyState){return gt.copyState(gq)}var gs={};for(var gu in gq){var gr=gq[gu];if(gr instanceof Array){gr=gr.concat([])}gs[gu]=gr}return gs};var bZ=H.startState=function(gs,gr,gq){return gs.startState?gs.startState(gr,gq):true};H.innerMode=function(gs,gq){while(gs.innerMode){var gr=gs.innerMode(gq);if(!gr||gr.mode==gs){break}gq=gr.state;gs=gr.mode}return gr||{mode:gs,state:gq}};var eG=H.commands={selectAll:function(gq){gq.setSelection(W(gq.firstLine(),0),W(gq.lastLine()),Z)},singleSelection:function(gq){gq.setSelection(gq.getCursor("anchor"),gq.getCursor("head"),Z)},killLine:function(gq){e1(gq,function(gs){if(gs.empty()){var gr=fk(gq.doc,gs.head.line).text.length;if(gs.head.ch==gr&&gs.head.line<gq.lastLine()){return{from:gs.head,to:W(gs.head.line+1,0)}}else{return{from:gs.head,to:W(gs.head.line,gr)}}}else{return{from:gs.from(),to:gs.to()}}})},deleteLine:function(gq){e1(gq,function(gr){return{from:W(gr.from().line,0),to:fP(gq.doc,W(gr.to().line+1,0))}})},delLineLeft:function(gq){e1(gq,function(gr){return{from:W(gr.from().line,0),to:gr.from()}})},delWrappedLineLeft:function(gq){e1(gq,function(gr){var gt=gq.charCoords(gr.head,"div").top+5;var gs=gq.coordsChar({left:0,top:gt},"div");return{from:gs,to:gr.from()}})},delWrappedLineRight:function(gq){e1(gq,function(gr){var gt=gq.charCoords(gr.head,"div").top+5;var gs=gq.coordsChar({left:gq.display.lineDiv.offsetWidth+100,top:gt},"div");return{from:gr.from(),to:gs}})},undo:function(gq){gq.undo()},redo:function(gq){gq.redo()},undoSelection:function(gq){gq.undoSelection()},redoSelection:function(gq){gq.redoSelection()},goDocStart:function(gq){gq.extendSelection(W(gq.firstLine(),0))},goDocEnd:function(gq){gq.extendSelection(W(gq.lastLine()))},goLineStart:function(gq){gq.extendSelectionsBy(function(gr){return bs(gq,gr.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(gq){gq.extendSelectionsBy(function(gr){return dI(gq,gr.head)},{origin:"+move",bias:1})},goLineEnd:function(gq){gq.extendSelectionsBy(function(gr){return dP(gq,gr.head.line)},{origin:"+move",bias:-1})},goLineRight:function(gq){gq.extendSelectionsBy(function(gr){var gs=gq.charCoords(gr.head,"div").top+5;return gq.coordsChar({left:gq.display.lineDiv.offsetWidth+100,top:gs},"div")},cV)},goLineLeft:function(gq){gq.extendSelectionsBy(function(gr){var gs=gq.charCoords(gr.head,"div").top+5;return gq.coordsChar({left:0,top:gs},"div")},cV)},goLineLeftSmart:function(gq){gq.extendSelectionsBy(function(gr){var gs=gq.charCoords(gr.head,"div").top+5;var gt=gq.coordsChar({left:0,top:gs},"div");if(gt.ch<gq.getLine(gt.line).search(/\S/)){return dI(gq,gr.head)}return gt},cV)},goLineUp:function(gq){gq.moveV(-1,"line")},goLineDown:function(gq){gq.moveV(1,"line")},goPageUp:function(gq){gq.moveV(-1,"page")},goPageDown:function(gq){gq.moveV(1,"page")},goCharLeft:function(gq){gq.moveH(-1,"char")},goCharRight:function(gq){gq.moveH(1,"char")},goColumnLeft:function(gq){gq.moveH(-1,"column")},goColumnRight:function(gq){gq.moveH(1,"column")},goWordLeft:function(gq){gq.moveH(-1,"word")},goGroupRight:function(gq){gq.moveH(1,"group")},goGroupLeft:function(gq){gq.moveH(-1,"group")},goWordRight:function(gq){gq.moveH(1,"word")},delCharBefore:function(gq){gq.deleteH(-1,"char")},delCharAfter:function(gq){gq.deleteH(1,"char")},delWordBefore:function(gq){gq.deleteH(-1,"word")},delWordAfter:function(gq){gq.deleteH(1,"word")},delGroupBefore:function(gq){gq.deleteH(-1,"group")},delGroupAfter:function(gq){gq.deleteH(1,"group")},indentAuto:function(gq){gq.indentSelection("smart")},indentMore:function(gq){gq.indentSelection("add")},indentLess:function(gq){gq.indentSelection("subtract")},insertTab:function(gq){gq.replaceSelection("\t")},insertSoftTab:function(gq){var gs=[],gr=gq.listSelections(),gv=gq.options.tabSize;for(var gu=0;gu<gr.length;gu++){var gw=gr[gu].from();var gt=bS(gq.getLine(gw.line),gw.ch,gv);gs.push(new Array(gv-gt%gv+1).join(" "))}gq.replaceSelections(gs)},defaultTab:function(gq){if(gq.somethingSelected()){gq.indentSelection("add")}else{gq.execCommand("insertTab")}},transposeChars:function(gq){cL(gq,function(){var gt=gq.listSelections(),gs=[];for(var gu=0;gu<gt.length;gu++){var gw=gt[gu].head,gr=fk(gq.doc,gw.line).text;if(gr){if(gw.ch==gr.length){gw=new W(gw.line,gw.ch-1)}if(gw.ch>0){gw=new W(gw.line,gw.ch+1);gq.replaceRange(gr.charAt(gw.ch-1)+gr.charAt(gw.ch-2),W(gw.line,gw.ch-2),gw,"+transpose")}else{if(gw.line>gq.doc.first){var gv=fk(gq.doc,gw.line-1).text;if(gv){gq.replaceRange(gr.charAt(0)+gq.doc.lineSeparator()+gv.charAt(gv.length-1),W(gw.line-1,gv.length-1),W(gw.line,1),"+transpose")}}}}gs.push(new dY(gw,gw))}gq.setSelections(gs)})},newlineAndIndent:function(gq){cL(gq,function(){var gr=gq.listSelections().length;for(var gt=0;gt<gr;gt++){var gs=gq.listSelections()[gt];gq.replaceRange(gq.doc.lineSeparator(),gs.anchor,gs.head,"+input");gq.indentLine(gs.from().line+1,null,true)}fK(gq)})},toggleOverwrite:function(gq){gq.toggleOverwrite()}};var ff=H.keyMap={};ff.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"};ff.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"};ff.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Alt-F":"goWordRight","Alt-B":"goWordLeft","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-D":"delWordAfter","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars"};ff.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"]};ff["default"]=b6?ff.macDefault:ff.pcDefault;function dt(gr){var gx=gr.split(/-(?!$)/),gr=gx[gx.length-1];var gw,gv,gq,gu;for(var gt=0;gt<gx.length-1;gt++){var gs=gx[gt];if(/^(cmd|meta|m)$/i.test(gs)){gu=true}else{if(/^a(lt)?$/i.test(gs)){gw=true}else{if(/^(c|ctrl|control)$/i.test(gs)){gv=true}else{if(/^s(hift)$/i.test(gs)){gq=true}else{throw new Error("Unrecognized modifier name: "+gs)}}}}}if(gw){gr="Alt-"+gr}if(gv){gr="Ctrl-"+gr}if(gu){gr="Cmd-"+gr}if(gq){gr="Shift-"+gr}return gr}H.normalizeKeyMap=function(gx){var gr={};for(var gw in gx){if(gx.hasOwnProperty(gw)){var gy=gx[gw];if(/^(name|fallthrough|(de|at)tach)$/.test(gw)){continue}if(gy=="..."){delete gx[gw];continue}var gz=bR(gw.split(" "),dt);for(var gv=0;gv<gz.length;gv++){var gt,gs;if(gv==gz.length-1){gs=gz.join(" ");gt=gy}else{gs=gz.slice(0,gv+1).join(" ");gt="..."}var gu=gr[gs];if(!gu){gr[gs]=gt}else{if(gu!=gt){throw new Error("Inconsistent bindings for "+gs)}}}delete gx[gw]}}for(var gq in gr){gx[gq]=gr[gq]}return gx};var i=H.lookupKey=function(gt,gw,gv,gs){gw=f4(gw);var gu=gw.call?gw.call(gt,gs):gw[gt];if(gu===false){return"nothing"}if(gu==="..."){return"multi"}if(gu!=null&&gv(gu)){return"handled"}if(gw.fallthrough){if(Object.prototype.toString.call(gw.fallthrough)!="[object Array]"){return i(gt,gw.fallthrough,gv,gs)}for(var gr=0;gr<gw.fallthrough.length;gr++){var gq=i(gt,gw.fallthrough[gr],gv,gs);if(gq){return gq}}}};var eF=H.isModifierKey=function(gr){var gq=typeof gr=="string"?gr:fl[gr.keyCode];return gq=="Ctrl"||gq=="Alt"||gq=="Shift"||gq=="Mod"};var fw=H.keyName=function(gr,gt){if(d4&&gr.keyCode==34&&gr["char"]){return false}var gs=fl[gr.keyCode],gq=gs;if(gq==null||gr.altGraphKey){return false}if(gr.altKey&&gs!="Alt"){gq="Alt-"+gq}if((bP?gr.metaKey:gr.ctrlKey)&&gs!="Ctrl"){gq="Ctrl-"+gq}if((bP?gr.ctrlKey:gr.metaKey)&&gs!="Cmd"){gq="Cmd-"+gq}if(!gt&&gr.shiftKey&&gs!="Shift"){gq="Shift-"+gq}return gq};function f4(gq){return typeof gq=="string"?ff[gq]:gq}H.fromTextArea=function(gx,gy){gy=gy?aM(gy):{};gy.value=gx.value;if(!gy.tabindex&&gx.tabIndex){gy.tabindex=gx.tabIndex}if(!gy.placeholder&&gx.placeholder){gy.placeholder=gx.placeholder}if(gy.autofocus==null){var gq=dO();gy.autofocus=gq==gx||gx.getAttribute("autofocus")!=null&&gq==document.body}function gu(){gx.value=gw.getValue()}if(gx.form){bW(gx.form,"submit",gu);if(!gy.leaveSubmitMethodAlone){var gr=gx.form,gv=gr.submit;try{var gt=gr.submit=function(){gu();gr.submit=gv;gr.submit();gr.submit=gt}}catch(gs){}}}gy.finishInit=function(gz){gz.save=gu;gz.getTextArea=function(){return gx};gz.toTextArea=function(){gz.toTextArea=isNaN;gu();gx.parentNode.removeChild(gz.getWrapperElement());gx.style.display="";if(gx.form){ef(gx.form,"submit",gu);if(typeof gx.form.submit=="function"){gx.form.submit=gv}}}};gx.style.display="none";var gw=H(function(gz){gx.parentNode.insertBefore(gz,gx.nextSibling)},gy);return gw};var eX=H.StringStream=function(gq,gr){this.pos=this.start=0;this.string=gq;this.tabSize=gr||8;this.lastColumnPos=this.lastColumnValue=0;this.lineStart=0};eX.prototype={eol:function(){return this.pos>=this.string.length},sol:function(){return this.pos==this.lineStart},peek:function(){return this.string.charAt(this.pos)||undefined},next:function(){if(this.pos<this.string.length){return this.string.charAt(this.pos++)}},eat:function(gq){var gs=this.string.charAt(this.pos);if(typeof gq=="string"){var gr=gs==gq}else{var gr=gs&&(gq.test?gq.test(gs):gq(gs))}if(gr){++this.pos;return gs}},eatWhile:function(gq){var gr=this.pos;while(this.eat(gq)){}return this.pos>gr},eatSpace:function(){var gq=this.pos;while(/[\s\u00a0]/.test(this.string.charAt(this.pos))){++this.pos}return this.pos>gq},skipToEnd:function(){this.pos=this.string.length},skipTo:function(gq){var gr=this.string.indexOf(gq,this.pos);if(gr>-1){this.pos=gr;return true}},backUp:function(gq){this.pos-=gq},column:function(){if(this.lastColumnPos<this.start){this.lastColumnValue=bS(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue);this.lastColumnPos=this.start}return this.lastColumnValue-(this.lineStart?bS(this.string,this.lineStart,this.tabSize):0)},indentation:function(){return bS(this.string,null,this.tabSize)-(this.lineStart?bS(this.string,this.lineStart,this.tabSize):0)},match:function(gu,gr,gq){if(typeof gu=="string"){var gv=function(gw){return gq?gw.toLowerCase():gw};var gt=this.string.substr(this.pos,gu.length);if(gv(gt)==gv(gu)){if(gr!==false){this.pos+=gu.length}return true}}else{var gs=this.string.slice(this.pos).match(gu);if(gs&&gs.index>0){return null}if(gs&&gr!==false){this.pos+=gs[0].length}return gs}},current:function(){return this.string.slice(this.start,this.pos)},hideFirstChars:function(gr,gq){this.lineStart+=gr;try{return gq()}finally{this.lineStart-=gr}}};var a4=0;var P=H.TextMarker=function(gr,gq){this.lines=[];this.type=gq;this.doc=gr;this.id=++a4};bx(P);P.prototype.clear=function(){if(this.explicitlyCleared){return}var gx=this.doc.cm,gr=gx&&!gx.curOp;if(gr){cH(gx)}if(fn(this,"clear")){var gy=this.find();if(gy){ae(this,"clear",gy.from,gy.to)}}var gs=null,gv=null;for(var gt=0;gt<this.lines.length;++gt){var gz=this.lines[gt];var gw=fe(gz.markedSpans,this);if(gx&&!this.collapsed){R(gx,bM(gz),"text")}else{if(gx){if(gw.to!=null){gv=bM(gz)}if(gw.from!=null){gs=bM(gz)}}}gz.markedSpans=eK(gz.markedSpans,gw);if(gw.from==null&&this.collapsed&&!fB(this.doc,gz)&&gx){gc(gz,aX(gx.display))}}if(gx&&this.collapsed&&!gx.options.lineWrapping){for(var gt=0;gt<this.lines.length;++gt){var gq=x(this.lines[gt]),gu=eq(gq);if(gu>gx.display.maxLineLength){gx.display.maxLine=gq;gx.display.maxLineLength=gu;gx.display.maxLineChanged=true}}}if(gs!=null&&gx&&this.collapsed){ah(gx,gs,gv+1)}this.lines.length=0;this.explicitlyCleared=true;if(this.atomic&&this.doc.cantEdit){this.doc.cantEdit=false;if(gx){eB(gx.doc)}}if(gx){ae(gx,"markerCleared",gx,this)}if(gr){al(gx)}if(this.parent){this.parent.clear()}};P.prototype.find=function(gt,gr){if(gt==null&&this.type=="bookmark"){gt=1}var gw,gv;for(var gs=0;gs<this.lines.length;++gs){var gq=this.lines[gs];var gu=fe(gq.markedSpans,this);if(gu.from!=null){gw=W(gr?gq:bM(gq),gu.from);if(gt==-1){return gw}}if(gu.to!=null){gv=W(gr?gq:bM(gq),gu.to);if(gt==1){return gv}}}return gw&&{from:gw,to:gv}};P.prototype.changed=function(){var gs=this.find(-1,true),gr=this,gq=this.doc.cm;if(!gs||!gq){return}cL(gq,function(){var gu=gs.line,gv=bM(gs.line);var gt=fg(gq,gv);if(gt){at(gt);gq.curOp.selectionChanged=gq.curOp.forceUpdate=true}gq.curOp.updateMaxLine=true;if(!fB(gr.doc,gu)&&gr.height!=null){var gx=gr.height;gr.height=null;var gw=cX(gr)-gx;if(gw){gc(gu,gu.height+gw)}}})};P.prototype.attachLine=function(gq){if(!this.lines.length&&this.doc.cm){var gr=this.doc.cm.curOp;if(!gr.maybeHiddenMarkers||dh(gr.maybeHiddenMarkers,this)==-1){(gr.maybeUnhiddenMarkers||(gr.maybeUnhiddenMarkers=[])).push(this)}}this.lines.push(gq)};P.prototype.detachLine=function(gq){this.lines.splice(dh(this.lines,gq),1);if(!this.lines.length&&this.doc.cm){var gr=this.doc.cm.curOp;(gr.maybeHiddenMarkers||(gr.maybeHiddenMarkers=[])).push(this)}};var a4=0;function eI(gy,gw,gx,gA,gu){if(gA&&gA.shared){return O(gy,gw,gx,gA,gu)}if(gy.cm&&!gy.cm.curOp){return c1(gy.cm,eI)(gy,gw,gx,gA,gu)}var gt=new P(gy,gu),gz=ce(gw,gx);if(gA){aM(gA,gt,false)}if(gz>0||gz==0&&gt.clearWhenEmpty!==false){return gt}if(gt.replacedWith){gt.collapsed=true;gt.widgetNode=f9("span",[gt.replacedWith],"CodeMirror-widget");if(!gA.handleMouseEvents){gt.widgetNode.setAttribute("cm-ignore-events","true")}if(gA.insertLeft){gt.widgetNode.insertLeft=true}}if(gt.collapsed){if(z(gy,gw.line,gw,gx,gt)||gw.line!=gx.line&&z(gy,gx.line,gw,gx,gt)){throw new Error("Inserting collapsed marker partially overlapping an existing one")}a6=true}if(gt.addToHistory){fS(gy,{from:gw,to:gx,origin:"markText"},gy.sel,NaN)}var gr=gw.line,gv=gy.cm,gq;gy.iter(gr,gx.line+1,function(gB){if(gv&&gt.collapsed&&!gv.options.lineWrapping&&x(gB)==gv.display.maxLine){gq=true}if(gt.collapsed&&gr!=gw.line){gc(gB,0)}cc(gB,new ek(gt,gr==gw.line?gw.ch:null,gr==gx.line?gx.ch:null));++gr});if(gt.collapsed){gy.iter(gw.line,gx.line+1,function(gB){if(fB(gy,gB)){gc(gB,0)}})}if(gt.clearOnEnter){bW(gt,"beforeCursorEnter",function(){gt.clear()})}if(gt.readOnly){gj=true;if(gy.history.done.length||gy.history.undone.length){gy.clearHistory()}}if(gt.collapsed){gt.id=++a4;gt.atomic=true}if(gv){if(gq){gv.curOp.updateMaxLine=true}if(gt.collapsed){ah(gv,gw.line,gx.line+1)}else{if(gt.className||gt.title||gt.startStyle||gt.endStyle||gt.css){for(var gs=gw.line;gs<=gx.line;gs++){R(gv,gs,"text")}}}if(gt.atomic){eB(gv.doc)}ae(gv,"markerAdded",gv,gt)}return gt}var y=H.SharedTextMarker=function(gs,gr){this.markers=gs;this.primary=gr;for(var gq=0;gq<gs.length;++gq){gs[gq].parent=this}};bx(y);y.prototype.clear=function(){if(this.explicitlyCleared){return}this.explicitlyCleared=true;for(var gq=0;gq<this.markers.length;++gq){this.markers[gq].clear()}ae(this,"clear")};y.prototype.find=function(gr,gq){return this.primary.find(gr,gq)};function O(gu,gx,gw,gq,gs){gq=aM(gq);gq.shared=false;var gv=[eI(gu,gx,gw,gq,gs)],gr=gv[0];var gt=gq.widgetNode;d8(gu,function(gz){if(gt){gq.widgetNode=gt.cloneNode(true)}gv.push(eI(gz,fP(gz,gx),fP(gz,gw),gq,gs));for(var gy=0;gy<gz.linked.length;++gy){if(gz.linked[gy].isParent){return}}gr=fL(gv)});return new y(gv,gr)}function eT(gq){return gq.findMarks(W(gq.first,0),gq.clipPos(W(gq.lastLine())),function(gr){return gr.parent})}function dF(gv,gw){for(var gt=0;gt<gw.length;gt++){var gr=gw[gt],gx=gr.find();var gq=gv.clipPos(gx.from),gu=gv.clipPos(gx.to);if(ce(gq,gu)){var gs=eI(gv,gq,gu,gr.primary,gr.primary.type);gr.markers.push(gs);gs.parent=gr}}}function er(gt){for(var gs=0;gs<gt.length;gs++){var gq=gt[gs],gv=[gq.primary.doc];d8(gq.primary.doc,function(gw){gv.push(gw)});for(var gr=0;gr<gq.markers.length;gr++){var gu=gq.markers[gr];if(dh(gv,gu.doc)==-1){gu.parent=null;gq.markers.splice(gr--,1)}}}}function ek(gq,gs,gr){this.marker=gq;this.from=gs;this.to=gr}function fe(gs,gq){if(gs){for(var gr=0;gr<gs.length;++gr){var gt=gs[gr];if(gt.marker==gq){return gt}}}}function eK(gr,gs){for(var gt,gq=0;gq<gr.length;++gq){if(gr[gq]!=gs){(gt||(gt=[])).push(gr[gq])}}return gt}function cc(gq,gr){gq.markedSpans=gq.markedSpans?gq.markedSpans.concat([gr]):[gr];gr.marker.attachLine(gq)}function aP(gr,gs,gw){if(gr){for(var gu=0,gx;gu<gr.length;++gu){var gy=gr[gu],gv=gy.marker;var gq=gy.from==null||(gv.inclusiveLeft?gy.from<=gs:gy.from<gs);if(gq||gy.from==gs&&gv.type=="bookmark"&&(!gw||!gy.marker.insertLeft)){var gt=gy.to==null||(gv.inclusiveRight?gy.to>=gs:gy.to>gs);(gx||(gx=[])).push(new ek(gv,gy.from,gt?null:gy.to))}}}return gx}function aA(gr,gt,gw){if(gr){for(var gu=0,gx;gu<gr.length;++gu){var gy=gr[gu],gv=gy.marker;var gs=gy.to==null||(gv.inclusiveRight?gy.to>=gt:gy.to>gt);if(gs||gy.from==gt&&gv.type=="bookmark"&&(!gw||gy.marker.insertLeft)){var gq=gy.from==null||(gv.inclusiveLeft?gy.from<=gt:gy.from<gt);(gx||(gx=[])).push(new ek(gv,gq?null:gy.from-gt,gy.to==null?null:gy.to-gt))}}}return gx}function em(gC,gz){if(gz.full){return null}var gy=b8(gC,gz.from.line)&&fk(gC,gz.from.line).markedSpans;var gF=b8(gC,gz.to.line)&&fk(gC,gz.to.line).markedSpans;if(!gy&&!gF){return null}var gr=gz.from.ch,gu=gz.to.ch,gx=ce(gz.from,gz.to)==0;var gw=aP(gy,gr,gx);var gE=aA(gF,gu,gx);var gD=gz.text.length==1,gs=fL(gz.text).length+(gD?gr:0);if(gw){for(var gt=0;gt<gw.length;++gt){var gB=gw[gt];if(gB.to==null){var gG=fe(gE,gB.marker);if(!gG){gB.to=gr}else{if(gD){gB.to=gG.to==null?null:gG.to+gs}}}}}if(gE){for(var gt=0;gt<gE.length;++gt){var gB=gE[gt];if(gB.to!=null){gB.to+=gs}if(gB.from==null){var gG=fe(gw,gB.marker);if(!gG){gB.from=gs;if(gD){(gw||(gw=[])).push(gB)}}}else{gB.from+=gs;if(gD){(gw||(gw=[])).push(gB)}}}}if(gw){gw=q(gw)}if(gE&&gE!=gw){gE=q(gE)}var gv=[gw];if(!gD){var gA=gz.text.length-2,gq;if(gA>0&&gw){for(var gt=0;gt<gw.length;++gt){if(gw[gt].to==null){(gq||(gq=[])).push(new ek(gw[gt].marker,null,null))}}}for(var gt=0;gt<gA;++gt){gv.push(gq)}gv.push(gE)}return gv}function q(gr){for(var gq=0;gq<gr.length;++gq){var gs=gr[gq];if(gs.from!=null&&gs.from==gs.to&&gs.marker.clearWhenEmpty!==false){gr.splice(gq--,1)}}if(!gr.length){return null}return gr}function ea(gy,gw){var gq=b3(gy,gw);var gz=em(gy,gw);if(!gq){return gz}if(!gz){return gq}for(var gt=0;gt<gq.length;++gt){var gu=gq[gt],gv=gz[gt];if(gu&&gv){spans:for(var gs=0;gs<gv.length;++gs){var gx=gv[gs];for(var gr=0;gr<gu.length;++gr){if(gu[gr].marker==gx.marker){continue spans}}gu.push(gx)}}else{if(gv){gq[gt]=gv}}}return gq}function cG(gC,gA,gB){var gu=null;gC.iter(gA.line,gB.line+1,function(gD){if(gD.markedSpans){for(var gE=0;gE<gD.markedSpans.length;++gE){var gF=gD.markedSpans[gE].marker;if(gF.readOnly&&(!gu||dh(gu,gF)==-1)){(gu||(gu=[])).push(gF)}}}});if(!gu){return null}var gv=[{from:gA,to:gB}];for(var gw=0;gw<gu.length;++gw){var gx=gu[gw],gs=gx.find(0);for(var gt=0;gt<gv.length;++gt){var gr=gv[gt];if(ce(gr.to,gs.from)<0||ce(gr.from,gs.to)>0){continue}var gz=[gt,1],gq=ce(gr.from,gs.from),gy=ce(gr.to,gs.to);if(gq<0||!gx.inclusiveLeft&&!gq){gz.push({from:gr.from,to:gs.from})}if(gy>0||!gx.inclusiveRight&&!gy){gz.push({from:gs.to,to:gr.to})}gv.splice.apply(gv,gz);gt+=gz.length-1}}return gv}function gf(gq){var gs=gq.markedSpans;if(!gs){return}for(var gr=0;gr<gs.length;++gr){gs[gr].marker.detachLine(gq)}gq.markedSpans=null}function c2(gq,gs){if(!gs){return}for(var gr=0;gr<gs.length;++gr){gs[gr].marker.attachLine(gq)}gq.markedSpans=gs}function v(gq){return gq.inclusiveLeft?-1:0}function bV(gq){return gq.inclusiveRight?1:0}function dQ(gt,gr){var gv=gt.lines.length-gr.lines.length;if(gv!=0){return gv}var gs=gt.find(),gw=gr.find();var gq=ce(gs.from,gw.from)||v(gt)-v(gr);if(gq){return -gq}var gu=ce(gs.to,gw.to)||bV(gt)-bV(gr);if(gu){return gu}return gr.id-gt.id}function a5(gr,gv){var gq=a6&&gr.markedSpans,gu;if(gq){for(var gt,gs=0;gs<gq.length;++gs){gt=gq[gs];if(gt.marker.collapsed&&(gv?gt.from:gt.to)==null&&(!gu||dQ(gu,gt.marker)<0)){gu=gt.marker}}}return gu}function eS(gq){return a5(gq,true)}function ex(gq){return a5(gq,false)}function z(gy,gs,gw,gx,gu){var gB=fk(gy,gs);var gq=a6&&gB.markedSpans;if(gq){for(var gt=0;gt<gq.length;++gt){var gr=gq[gt];if(!gr.marker.collapsed){continue}var gA=gr.marker.find(0);var gz=ce(gA.from,gw)||v(gr.marker)-v(gu);var gv=ce(gA.to,gx)||bV(gr.marker)-bV(gu);if(gz>=0&&gv<=0||gz<=0&&gv>=0){continue}if(gz<=0&&(ce(gA.to,gw)>0||(gr.marker.inclusiveRight&&gu.inclusiveLeft))||gz>=0&&(ce(gA.from,gx)<0||(gr.marker.inclusiveLeft&&gu.inclusiveRight))){return true}}}}function x(gr){var gq;while(gq=eS(gr)){gr=gq.find(-1,true).line}return gr}function g(gs){var gq,gr;while(gq=ex(gs)){gs=gq.find(1,true).line;(gr||(gr=[])).push(gs)}return gr}function aV(gt,gr){var gq=fk(gt,gr),gs=x(gq);if(gq==gs){return gr}return bM(gs)}function d3(gt,gs){if(gs>gt.lastLine()){return gs}var gr=fk(gt,gs),gq;if(!fB(gt,gr)){return gs}while(gq=ex(gr)){gr=gq.find(1,true).line}return bM(gr)+1}function fB(gu,gr){var gq=a6&&gr.markedSpans;if(gq){for(var gt,gs=0;gs<gq.length;++gs){gt=gq[gs];if(!gt.marker.collapsed){continue}if(gt.from==null){return true}if(gt.marker.widgetNode){continue}if(gt.from==0&&gt.marker.inclusiveLeft&&T(gu,gr,gt)){return true}}}}function T(gv,gr,gt){if(gt.to==null){var gq=gt.marker.find(1,true);return T(gv,gq.line,fe(gq.line.markedSpans,gt.marker))}if(gt.marker.inclusiveRight&&gt.to==gr.text.length){return true}for(var gu,gs=0;gs<gr.markedSpans.length;++gs){gu=gr.markedSpans[gs];if(gu.marker.collapsed&&!gu.marker.widgetNode&&gu.from==gt.to&&(gu.to==null||gu.to!=gt.from)&&(gu.marker.inclusiveLeft||gt.marker.inclusiveRight)&&T(gv,gr,gu)){return true}}}var dB=H.LineWidget=function(gt,gs,gq){if(gq){for(var gr in gq){if(gq.hasOwnProperty(gr)){this[gr]=gq[gr]}}}this.doc=gt;this.node=gs};bx(dB);function dZ(gq,gr,gs){if(bL(gr)<((gq.curOp&&gq.curOp.scrollTop)||gq.doc.scrollTop)){cK(gq,null,gs)}}dB.prototype.clear=function(){var gr=this.doc.cm,gt=this.line.widgets,gs=this.line,gv=bM(gs);if(gv==null||!gt){return}for(var gu=0;gu<gt.length;++gu){if(gt[gu]==this){gt.splice(gu--,1)}}if(!gt.length){gs.widgets=null}var gq=cX(this);gc(gs,Math.max(0,gs.height-gq));if(gr){cL(gr,function(){dZ(gr,gs,-gq);R(gr,gv,"widget")})}};dB.prototype.changed=function(){var gr=this.height,gq=this.doc.cm,gs=this.line;this.height=null;var gt=cX(this)-gr;if(!gt){return}gc(gs,gs.height+gt);if(gq){cL(gq,function(){gq.curOp.forceUpdate=true;dZ(gq,gs,gt)})}};function cX(gs){if(gs.height!=null){return gs.height}var gq=gs.doc.cm;if(!gq){return 0}if(!gh(document.body,gs.node)){var gr="position: relative;";if(gs.coverGutter){gr+="margin-left: -"+gq.display.gutters.offsetWidth+"px;"}if(gs.noHScroll){gr+="width: "+gq.display.wrapper.clientWidth+"px;"}bQ(gq.display.measure,f9("div",[gs.node],null,gr))}return gs.height=gs.node.parentNode.offsetHeight}function bG(gv,gu,gs,gr){var gt=new dB(gv,gs,gr);var gq=gv.cm;if(gq&&gt.noHScroll){gq.display.alignWidgets=true}eC(gv,gu,"widget",function(gx){var gy=gx.widgets||(gx.widgets=[]);if(gt.insertAt==null){gy.push(gt)}else{gy.splice(Math.min(gy.length-1,Math.max(0,gt.insertAt)),0,gt)}gt.line=gx;if(gq&&!fB(gv,gx)){var gw=bL(gx)<gv.scrollTop;gc(gx,gx.height+cX(gt));if(gw){cK(gq,null,gt.height)}gq.curOp.forceUpdate=true}return true});return gt}var gd=H.Line=function(gs,gr,gq){this.text=gs;c2(this,gr);this.height=gq?gq(this):1};bx(gd);gd.prototype.lineNo=function(){return bM(this)};function ep(gr,gu,gs,gq){gr.text=gu;if(gr.stateAfter){gr.stateAfter=null}if(gr.styles){gr.styles=null}if(gr.order!=null){gr.order=null}gf(gr);c2(gr,gs);var gt=gq?gq(gr):1;if(gt!=gr.height){gc(gr,gt)}}function bA(gq){gq.parent=null;gf(gq)}function di(gs,gr){if(gs){for(;;){var gq=gs.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!gq){break}gs=gs.slice(0,gq.index)+gs.slice(gq.index+gq[0].length);var gt=gq[1]?"bgClass":"textClass";if(gr[gt]==null){gr[gt]=gq[2]}else{if(!(new RegExp("(?:^|s)"+gq[2]+"(?:$|s)")).test(gr[gt])){gr[gt]+=" "+gq[2]}}}}return gs}function fv(gs,gr){if(gs.blankLine){return gs.blankLine(gr)}if(!gs.innerMode){return}var gq=H.innerMode(gs,gr);if(gq.mode.blankLine){return gq.mode.blankLine(gq.state)}}function eD(gv,gu,gt,gq){for(var gr=0;gr<10;gr++){if(gq){gq[0]=H.innerMode(gv,gt).mode}var gs=gv.token(gu,gt);if(gu.pos>gu.start){return gs}}throw new Error("Mode "+gv.name+" failed to advance stream.")}function cp(gz,gx,gu,gt){function gq(gC){return{start:gA.start,end:gA.pos,string:gA.current(),type:gs||null,state:gC?b2(gy.mode,gr):gr}}var gy=gz.doc,gv=gy.mode,gs;gx=fP(gy,gx);var gB=fk(gy,gx.line),gr=dC(gz,gx.line,gu);var gA=new eX(gB.text,gz.options.tabSize),gw;if(gt){gw=[]}while((gt||gA.pos<gx.ch)&&!gA.eol()){gA.start=gA.pos;gs=eD(gv,gA,gr);if(gt){gw.push(gq(true))}}return gt?gw:gq()}function w(gA,gC,gv,gr,gw,gt,gu){var gs=gv.flattenSpans;if(gs==null){gs=gA.options.flattenSpans}var gy=0,gx=null;var gB=new eX(gC,gA.options.tabSize),gq;var gE=gA.options.addModeClass&&[null];if(gC==""){di(fv(gv,gr),gt)}while(!gB.eol()){if(gB.pos>gA.options.maxHighlightLength){gs=false;if(gu){dx(gA,gC,gr,gB.pos)}gB.pos=gC.length;gq=null}else{gq=di(eD(gv,gB,gr,gE),gt)}if(gE){var gD=gE[0].name;if(gD){gq="m-"+(gq?gD+" "+gq:gD)}}if(!gs||gx!=gq){while(gy<gB.start){gy=Math.min(gB.start,gy+50000);gw(gy,gx)}gx=gq}gB.start=gB.pos}while(gy<gB.pos){var gz=Math.min(gB.pos,gy+50000);gw(gz,gx);gy=gz}}function fE(gx,gz,gq,gu){var gy=[gx.state.modeGen],gt={};w(gx,gz.text,gx.doc.mode,gq,function(gA,gB){gy.push(gA,gB)},gt,gu);for(var gr=0;gr<gx.state.overlays.length;++gr){var gv=gx.state.overlays[gr],gw=1,gs=0;w(gx,gz.text,gv.mode,true,function(gA,gC){var gE=gw;while(gs<gA){var gB=gy[gw];if(gB>gA){gy.splice(gw,1,gA,gy[gw+1],gB)}gw+=2;gs=Math.min(gA,gB)}if(!gC){return}if(gv.opaque){gy.splice(gE,gw-gE,gA,"cm-overlay "+gC);gw=gE+2}else{for(;gE<gw;gE+=2){var gD=gy[gE+1];gy[gE+1]=(gD?gD+" ":"")+"cm-overlay "+gC}}},gt)}return{styles:gy,classes:gt.bgClass||gt.textClass?gt:null}}function c5(gr,gs,gu){if(!gs.styles||gs.styles[0]!=gr.state.modeGen){var gt=dC(gr,bM(gs));var gq=fE(gr,gs,gs.text.length>gr.options.maxHighlightLength?b2(gr.doc.mode,gt):gt);gs.stateAfter=gt;gs.styles=gq.styles;if(gq.classes){gs.styleClasses=gq.classes}else{if(gs.styleClasses){gs.styleClasses=null}}if(gu===gr.doc.frontier){gr.doc.frontier++}}return gs.styles}function dx(gq,gv,gs,gr){var gu=gq.doc.mode;var gt=new eX(gv,gq.options.tabSize);gt.start=gt.pos=gr||0;if(gv==""){fv(gu,gs)}while(!gt.eol()){eD(gu,gt,gs);gt.start=gt.pos}}var dW={},b0={};function e0(gs,gr){if(!gs||/^\s*$/.test(gs)){return null}var gq=gr.addModeClass?b0:dW;return gq[gs]||(gq[gs]=gs.replace(/\S+/g,"cm-$&"))}function eV(gr,gv){var gw=f9("span",null,null,cZ?"padding-right: .1px":null);var gt={pre:f9("pre",[gw],"CodeMirror-line"),content:gw,col:0,pos:0,cm:gr,splitSpaces:(dK||cZ)&&gr.getOption("lineWrapping")};gv.measure={};for(var gu=0;gu<=(gv.rest?gv.rest.length:0);gu++){var gs=gu?gv.rest[gu-1]:gv.line,gq;gt.pos=0;gt.addToken=t;if(bN(gr.display.measure)&&(gq=a(gs))){gt.addToken=U(gt.addToken,gq)}gt.map=[];var gx=gv!=gr.display.externalMeasured&&bM(gs);bn(gs,gt,c5(gr,gs,gx));if(gs.styleClasses){if(gs.styleClasses.bgClass){gt.bgClass=fZ(gs.styleClasses.bgClass,gt.bgClass||"")}if(gs.styleClasses.textClass){gt.textClass=fZ(gs.styleClasses.textClass,gt.textClass||"")}}if(gt.map.length==0){gt.map.push(0,0,gt.content.appendChild(bm(gr.display.measure)))}if(gu==0){gv.measure.map=gt.map;gv.measure.cache={}}else{(gv.measure.maps||(gv.measure.maps=[])).push(gt.map);(gv.measure.caches||(gv.measure.caches=[])).push({})}}if(cZ&&/\bcm-tab\b/.test(gt.content.lastChild.className)){gt.content.className="cm-tab-wrap-hack"}aD(gr,"renderLine",gr,gv.line,gt.pre);if(gt.pre.className){gt.textClass=fZ(gt.pre.className,gt.textClass||"")}return gt}function fh(gr){var gq=f9("span","\u2022","cm-invalidchar");gq.title="\\u"+gr.charCodeAt(0).toString(16);gq.setAttribute("aria-label",gq.title);return gq}function t(gB,gw,gG,gD,gz,gI,gv){if(!gw){return}var gF=gB.splitSpaces?gw.replace(/ {3,}/g,cE):gw;var gq=gB.cm.state.specialChars,gr=false;if(!gq.test(gw)){gB.col+=gw.length;var gE=document.createTextNode(gF);gB.map.push(gB.pos,gB.pos+gw.length,gE);if(dK&&k<9){gr=true}gB.pos+=gw.length}else{var gE=document.createDocumentFragment(),gt=0;while(true){gq.lastIndex=gt;var gC=gq.exec(gw);var gH=gC?gC.index-gt:gw.length-gt;if(gH){var gy=document.createTextNode(gF.slice(gt,gt+gH));if(dK&&k<9){gE.appendChild(f9("span",[gy]))}else{gE.appendChild(gy)}gB.map.push(gB.pos,gB.pos+gH,gy);gB.col+=gH;gB.pos+=gH}if(!gC){break}gt+=gH+1;if(gC[0]=="\t"){var gA=gB.cm.options.tabSize,gx=gA-gB.col%gA;var gy=gE.appendChild(f9("span",co(gx),"cm-tab"));gy.setAttribute("role","presentation");gy.setAttribute("cm-text","\t");gB.col+=gx}else{if(gC[0]=="\r"||gC[0]=="\n"){var gy=gE.appendChild(f9("span",gC[0]=="\r"?"\u240d":"\u2424","cm-invalidchar"));gy.setAttribute("cm-text",gC[0]);gB.col+=1}else{var gy=gB.cm.options.specialCharPlaceholder(gC[0]);gy.setAttribute("cm-text",gC[0]);if(dK&&k<9){gE.appendChild(f9("span",[gy]))}else{gE.appendChild(gy)}gB.col+=1}}gB.map.push(gB.pos,gB.pos+1,gy);gB.pos++}}if(gG||gD||gz||gr||gv){var gs=gG||"";if(gD){gs+=gD}if(gz){gs+=gz}var gu=f9("span",[gE],gs,gv);if(gI){gu.title=gI}return gB.content.appendChild(gu)}gB.content.appendChild(gE)}function cE(gq){var gr=" ";for(var gs=0;gs<gq.length-2;++gs){gr+=gs%2?" ":"\u00a0"}gr+=" ";return gr}function U(gr,gq){return function(gz,gB,gs,gw,gC,gA,gy){gs=gs?gs+" cm-force-border":"cm-force-border";var gt=gz.pos,gv=gt+gB.length;for(;;){for(var gx=0;gx<gq.length;gx++){var gu=gq[gx];if(gu.to>gt&&gu.from<=gt){break}}if(gu.to>=gv){return gr(gz,gB,gs,gw,gC,gA,gy)}gr(gz,gB.slice(0,gu.to-gt),gs,gw,null,gA,gy);gw=null;gB=gB.slice(gu.to-gt);gt=gu.to}}}function ac(gr,gt,gq,gs){var gu=!gs&&gq.widgetNode;if(gu){gr.map.push(gr.pos,gr.pos+gt,gu)}if(!gs&&gr.cm.display.input.needsContentAttribute){if(!gu){gu=gr.content.appendChild(document.createElement("span"))}gu.setAttribute("cm-marker",gq.id)}if(gu){gr.cm.display.input.setUneditable(gu);gr.content.appendChild(gu)}gr.pos+=gt}function bn(gA,gH,gz){var gv=gA.markedSpans,gx=gA.text,gF=0;if(!gv){for(var gK=1;gK<gz.length;gK+=2){gH.addToken(gH,gx.slice(gF,gF=gz[gK]),e0(gz[gK+1],gH.cm.options))}return}var gL=gx.length,gu=0,gK=1,gD="",gM,gB;var gO=0,gq,gN,gE,gP,gs;for(;;){if(gO==gu){gq=gN=gE=gP=gB="";gs=null;gO=Infinity;var gw=[],gy;for(var gI=0;gI<gv.length;++gI){var gJ=gv[gI],gG=gJ.marker;if(gG.type=="bookmark"&&gJ.from==gu&&gG.widgetNode){gw.push(gG)}else{if(gJ.from<=gu&&(gJ.to==null||gJ.to>gu||gG.collapsed&&gJ.to==gu&&gJ.from==gu)){if(gJ.to!=null&&gJ.to!=gu&&gO>gJ.to){gO=gJ.to;gN=""}if(gG.className){gq+=" "+gG.className}if(gG.css){gB=(gB?gB+";":"")+gG.css}if(gG.startStyle&&gJ.from==gu){gE+=" "+gG.startStyle}if(gG.endStyle&&gJ.to==gO){(gy||(gy=[])).push(gG.endStyle,gJ.to)}if(gG.title&&!gP){gP=gG.title}if(gG.collapsed&&(!gs||dQ(gs.marker,gG)<0)){gs=gJ}}else{if(gJ.from>gu&&gO>gJ.from){gO=gJ.from}}}}if(gy){for(var gI=0;gI<gy.length;gI+=2){if(gy[gI+1]==gO){gN+=" "+gy[gI]}}}if(!gs||gs.from==gu){for(var gI=0;gI<gw.length;++gI){ac(gH,0,gw[gI])}}if(gs&&(gs.from||0)==gu){ac(gH,(gs.to==null?gL+1:gs.to)-gu,gs.marker,gs.from==null);if(gs.to==null){return}if(gs.to==gu){gs=false}}}if(gu>=gL){break}var gC=Math.min(gL,gO);while(true){if(gD){var gr=gu+gD.length;if(!gs){var gt=gr>gC?gD.slice(0,gC-gu):gD;gH.addToken(gH,gt,gM?gM+gq:gq,gE,gu+gt.length==gO?gN:"",gP,gB)}if(gr>=gC){gD=gD.slice(gC-gu);gu=gC;break}gu=gr;gE=""}gD=gx.slice(gF,gF=gz[gK++]);gM=e0(gz[gK++],gH.cm.options)}}}function dS(gq,gr){return gr.from.ch==0&&gr.to.ch==0&&fL(gr.text)==""&&(!gq.cm||gq.cm.options.wholeLineUpdateBefore)}function fD(gD,gy,gr,gu){function gE(gG){return gr?gr[gG]:null}function gs(gG,gI,gH){ep(gG,gI,gH,gu);ae(gG,"change",gG,gy)}function gq(gJ,gH){for(var gI=gJ,gG=[];gI<gH;++gI){gG.push(new gd(gF[gI],gE(gI),gu))}return gG}var gC=gy.from,gB=gy.to,gF=gy.text;var gz=fk(gD,gC.line),gA=fk(gD,gB.line);var gx=fL(gF),gt=gE(gF.length-1),gw=gB.line-gC.line;if(gy.full){gD.insert(0,gq(0,gF.length));gD.remove(gF.length,gD.size-gF.length)}else{if(dS(gD,gy)){var gv=gq(0,gF.length-1);gs(gA,gA.text,gt);if(gw){gD.remove(gC.line,gw)}if(gv.length){gD.insert(gC.line,gv)}}else{if(gz==gA){if(gF.length==1){gs(gz,gz.text.slice(0,gC.ch)+gx+gz.text.slice(gB.ch),gt)}else{var gv=gq(1,gF.length-1);gv.push(new gd(gx+gz.text.slice(gB.ch),gt,gu));gs(gz,gz.text.slice(0,gC.ch)+gF[0],gE(0));gD.insert(gC.line+1,gv)}}else{if(gF.length==1){gs(gz,gz.text.slice(0,gC.ch)+gF[0]+gA.text.slice(gB.ch),gE(0));gD.remove(gC.line+1,gw)}else{gs(gz,gz.text.slice(0,gC.ch)+gF[0],gE(0));gs(gA,gx+gA.text.slice(gB.ch),gt);var gv=gq(1,gF.length-1);if(gw>1){gD.remove(gC.line+1,gw-1)}gD.insert(gC.line+1,gv)}}}}ae(gD,"change",gD,gy)}function e3(gr){this.lines=gr;this.parent=null;for(var gs=0,gq=0;gs<gr.length;++gs){gr[gs].parent=this;gq+=gr[gs].height}this.height=gq}e3.prototype={chunkSize:function(){return this.lines.length},removeInner:function(gq,gu){for(var gs=gq,gt=gq+gu;gs<gt;++gs){var gr=this.lines[gs];this.height-=gr.height;bA(gr);ae(gr,"delete")}this.lines.splice(gq,gu)},collapse:function(gq){gq.push.apply(gq,this.lines)},insertInner:function(gr,gs,gq){this.height+=gq;this.lines=this.lines.slice(0,gr).concat(gs).concat(this.lines.slice(gr));for(var gt=0;gt<gs.length;++gt){gs[gt].parent=this}},iterN:function(gq,gt,gs){for(var gr=gq+gt;gq<gr;++gq){if(gs(this.lines[gq])){return true}}}};function fC(gt){this.children=gt;var gs=0,gq=0;for(var gr=0;gr<gt.length;++gr){var gu=gt[gr];gs+=gu.chunkSize();gq+=gu.height;gu.parent=this}this.size=gs;this.height=gq;this.parent=null}fC.prototype={chunkSize:function(){return this.size},removeInner:function(gq,gx){this.size-=gx;for(var gs=0;gs<this.children.length;++gs){var gw=this.children[gs],gu=gw.chunkSize();if(gq<gu){var gt=Math.min(gx,gu-gq),gv=gw.height;gw.removeInner(gq,gt);this.height-=gv-gw.height;if(gu==gt){this.children.splice(gs--,1);gw.parent=null}if((gx-=gt)==0){break}gq=0}else{gq-=gu}}if(this.size-gx<25&&(this.children.length>1||!(this.children[0] instanceof e3))){var gr=[];this.collapse(gr);this.children=[new e3(gr)];this.children[0].parent=this}},collapse:function(gq){for(var gr=0;gr<this.children.length;++gr){this.children[gr].collapse(gq)}},insertInner:function(gr,gs,gq){this.size+=gs.length;this.height+=gq;for(var gv=0;gv<this.children.length;++gv){var gx=this.children[gv],gw=gx.chunkSize();if(gr<=gw){gx.insertInner(gr,gs,gq);if(gx.lines&&gx.lines.length>50){while(gx.lines.length>50){var gu=gx.lines.splice(gx.lines.length-25,25);var gt=new e3(gu);gx.height-=gt.height;this.children.splice(gv+1,0,gt);gt.parent=this}this.maybeSpill()}break}gr-=gw}},maybeSpill:function(){if(this.children.length<=10){return}var gt=this;do{var gr=gt.children.splice(gt.children.length-5,5);var gs=new fC(gr);if(!gt.parent){var gu=new fC(gt.children);gu.parent=gt;gt.children=[gu,gs];gt=gu}else{gt.size-=gs.size;gt.height-=gs.height;var gq=dh(gt.parent.children,gt);gt.parent.children.splice(gq+1,0,gs)}gs.parent=gt.parent}while(gt.children.length>10);gt.parent.maybeSpill()},iterN:function(gq,gw,gv){for(var gr=0;gr<this.children.length;++gr){var gu=this.children[gr],gt=gu.chunkSize();if(gq<gt){var gs=Math.min(gw,gt-gq);if(gu.iterN(gq,gs,gv)){return true}if((gw-=gs)==0){break}gq=0}else{gq-=gt}}}};var cq=0;var ar=H.Doc=function(gt,gs,gq,gr){if(!(this instanceof ar)){return new ar(gt,gs,gq,gr)}if(gq==null){gq=0}fC.call(this,[new e3([new gd("",null)])]);this.first=gq;this.scrollTop=this.scrollLeft=0;this.cantEdit=false;this.cleanGeneration=1;this.frontier=gq;var gu=W(gq,0);this.sel=eW(gu);this.history=new f0(null);this.id=++cq;this.modeOption=gs;this.lineSep=gr;this.extend=false;if(typeof gt=="string"){gt=this.splitLines(gt)}fD(this,{from:gu,to:gu,text:gt});bT(this,eW(gu),Z)};ar.prototype=cj(fC.prototype,{constructor:ar,iter:function(gs,gr,gq){if(gq){this.iterN(gs-this.first,gr-gs,gq)}else{this.iterN(this.first,this.first+this.size,gs)}},insert:function(gr,gs){var gq=0;for(var gt=0;gt<gs.length;++gt){gq+=gs[gt].height}this.insertInner(gr-this.first,gs,gq)},remove:function(gq,gr){this.removeInner(gq-this.first,gr)},getValue:function(gr){var gq=a1(this,this.first,this.first+this.size);if(gr===false){return gq}return gq.join(gr||this.lineSeparator())},setValue:cC(function(gr){var gs=W(this.first,0),gq=this.first+this.size-1;bf(this,{from:gs,to:W(gq,fk(this,gq).text.length),text:this.splitLines(gr),origin:"setValue",full:true},true);bT(this,eW(gs))}),replaceRange:function(gr,gt,gs,gq){gt=fP(this,gt);gs=gs?fP(this,gs):gt;a0(this,gr,gt,gs,gq)},getRange:function(gt,gs,gr){var gq=gb(this,fP(this,gt),fP(this,gs));if(gr===false){return gq}return gq.join(gr||this.lineSeparator())},getLine:function(gr){var gq=this.getLineHandle(gr);return gq&&gq.text},getLineHandle:function(gq){if(b8(this,gq)){return fk(this,gq)}},getLineNumber:function(gq){return bM(gq)},getLineHandleVisualStart:function(gq){if(typeof gq=="number"){gq=fk(this,gq)}return x(gq)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(gq){return fP(this,gq)},getCursor:function(gs){var gq=this.sel.primary(),gr;if(gs==null||gs=="head"){gr=gq.head}else{if(gs=="anchor"){gr=gq.anchor}else{if(gs=="end"||gs=="to"||gs===false){gr=gq.to()}else{gr=gq.from()}}}return gr},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:cC(function(gq,gs,gr){F(this,fP(this,typeof gq=="number"?W(gq,gs||0):gq),null,gr)}),setSelection:cC(function(gr,gs,gq){F(this,fP(this,gr),fP(this,gs||gr),gq)}),extendSelection:cC(function(gs,gq,gr){f3(this,fP(this,gs),gq&&fP(this,gq),gr)}),extendSelections:cC(function(gr,gq){av(this,d0(this,gr),gq)}),extendSelectionsBy:cC(function(gs,gq){var gr=bR(this.sel.ranges,gs);av(this,d0(this,gr),gq)}),setSelections:cC(function(gq,gu,gs){if(!gq.length){return}for(var gt=0,gr=[];gt<gq.length;gt++){gr[gt]=new dY(fP(this,gq[gt].anchor),fP(this,gq[gt].head))}if(gu==null){gu=Math.min(gq.length-1,this.sel.primIndex)}bT(this,cv(gr,gu),gs)}),addSelection:cC(function(gs,gt,gr){var gq=this.sel.ranges.slice(0);gq.push(new dY(fP(this,gs),fP(this,gt||gs)));bT(this,cv(gq,gq.length-1),gr)}),getSelection:function(gu){var gr=this.sel.ranges,gq;for(var gs=0;gs<gr.length;gs++){var gt=gb(this,gr[gs].from(),gr[gs].to());gq=gq?gq.concat(gt):gt}if(gu===false){return gq}else{return gq.join(gu||this.lineSeparator())}},getSelections:function(gu){var gt=[],gq=this.sel.ranges;for(var gr=0;gr<gq.length;gr++){var gs=gb(this,gq[gr].from(),gq[gr].to());if(gu!==false){gs=gs.join(gu||this.lineSeparator())}gt[gr]=gs}return gt},replaceSelection:function(gs,gu,gq){var gt=[];for(var gr=0;gr<this.sel.ranges.length;gr++){gt[gr]=gs}this.replaceSelections(gt,gu,gq||"+input")},replaceSelections:cC(function(gv,gx,gs){var gu=[],gw=this.sel;for(var gt=0;gt<gw.ranges.length;gt++){var gr=gw.ranges[gt];gu[gt]={from:gr.from(),to:gr.to(),text:this.splitLines(gv[gt]),origin:gs}}var gq=gx&&gx!="end"&&af(this,gu,gx);for(var gt=gu.length-1;gt>=0;gt--){bf(this,gu[gt])}if(gq){fc(this,gq)}else{if(this.cm){fK(this.cm)}}}),undo:cC(function(){b7(this,"undo")}),redo:cC(function(){b7(this,"redo")}),undoSelection:cC(function(){b7(this,"undo",true)}),redoSelection:cC(function(){b7(this,"redo",true)}),setExtending:function(gq){this.extend=gq},getExtending:function(){return this.extend},historySize:function(){var gt=this.history,gq=0,gs=0;for(var gr=0;gr<gt.done.length;gr++){if(!gt.done[gr].ranges){++gq}}for(var gr=0;gr<gt.undone.length;gr++){if(!gt.undone[gr].ranges){++gs}}return{undo:gq,redo:gs}},clearHistory:function(){this.history=new f0(this.history.maxGeneration)},markClean:function(){this.cleanGeneration=this.changeGeneration(true)},changeGeneration:function(gq){if(gq){this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null}return this.history.generation},isClean:function(gq){return this.history.generation==(gq||this.cleanGeneration)},getHistory:function(){return{done:bO(this.history.done),undone:bO(this.history.undone)}},setHistory:function(gr){var gq=this.history=new f0(this.history.maxGeneration);gq.done=bO(gr.done.slice(0),null,true);gq.undone=bO(gr.undone.slice(0),null,true)},addLineClass:cC(function(gs,gr,gq){return eC(this,gs,gr=="gutter"?"gutter":"class",function(gt){var gu=gr=="text"?"textClass":gr=="background"?"bgClass":gr=="gutter"?"gutterClass":"wrapClass";if(!gt[gu]){gt[gu]=gq}else{if(S(gq).test(gt[gu])){return false}else{gt[gu]+=" "+gq}}return true})}),removeLineClass:cC(function(gs,gr,gq){return eC(this,gs,gr=="gutter"?"gutter":"class",function(gu){var gx=gr=="text"?"textClass":gr=="background"?"bgClass":gr=="gutter"?"gutterClass":"wrapClass";var gw=gu[gx];if(!gw){return false}else{if(gq==null){gu[gx]=null}else{var gv=gw.match(S(gq));if(!gv){return false}var gt=gv.index+gv[0].length;gu[gx]=gw.slice(0,gv.index)+(!gv.index||gt==gw.length?"":" ")+gw.slice(gt)||null}}return true})}),addLineWidget:cC(function(gs,gr,gq){return bG(this,gs,gr,gq)}),removeLineWidget:function(gq){gq.clear()},markText:function(gs,gr,gq){return eI(this,fP(this,gs),fP(this,gr),gq,gq&&gq.type||"range")},setBookmark:function(gs,gq){var gr={replacedWith:gq&&(gq.nodeType==null?gq.widget:gq),insertLeft:gq&&gq.insertLeft,clearWhenEmpty:false,shared:gq&&gq.shared,handleMouseEvents:gq&&gq.handleMouseEvents};gs=fP(this,gs);return eI(this,gs,gs,gr,"bookmark")},findMarksAt:function(gu){gu=fP(this,gu);var gt=[],gr=fk(this,gu.line).markedSpans;if(gr){for(var gq=0;gq<gr.length;++gq){var gs=gr[gq];if((gs.from==null||gs.from<=gu.ch)&&(gs.to==null||gs.to>=gu.ch)){gt.push(gs.marker.parent||gs.marker)}}}return gt},findMarks:function(gu,gt,gq){gu=fP(this,gu);gt=fP(this,gt);var gr=[],gs=gu.line;this.iter(gu.line,gt.line+1,function(gv){var gx=gv.markedSpans;if(gx){for(var gw=0;gw<gx.length;gw++){var gy=gx[gw];if(!(gy.to!=null&&gs==gu.line&&gu.ch>=gy.to||gy.from==null&&gs!=gu.line||gy.from!=null&&gs==gt.line&&gy.from>=gt.ch)&&(!gq||gq(gy.marker))){gr.push(gy.marker.parent||gy.marker)}}}++gs});return gr},getAllMarks:function(){var gq=[];this.iter(function(gs){var gr=gs.markedSpans;if(gr){for(var gt=0;gt<gr.length;++gt){if(gr[gt].from!=null){gq.push(gr[gt].marker)}}}});return gq},posFromIndex:function(gs){var gq,gt=this.first,gr=this.lineSeparator().length;this.iter(function(gu){var gv=gu.text.length+gr;if(gv>gs){gq=gs;return true}gs-=gv;++gt});return fP(this,W(gt,gq))},indexFromPos:function(gs){gs=fP(this,gs);var gq=gs.ch;if(gs.line<this.first||gs.ch<0){return 0}var gr=this.lineSeparator().length;this.iter(this.first,gs.line,function(gt){gq+=gt.text.length+gr});return gq},copy:function(gq){var gr=new ar(a1(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep);gr.scrollTop=this.scrollTop;gr.scrollLeft=this.scrollLeft;gr.sel=this.sel;gr.extend=false;if(gq){gr.history.undoDepth=this.history.undoDepth;gr.setHistory(this.getHistory())}return gr},linkedDoc:function(gq){if(!gq){gq={}}var gt=this.first,gs=this.first+this.size;if(gq.from!=null&&gq.from>gt){gt=gq.from}if(gq.to!=null&&gq.to<gs){gs=gq.to}var gr=new ar(a1(this,gt,gs),gq.mode||this.modeOption,gt,this.lineSep);if(gq.sharedHist){gr.history=this.history}(this.linked||(this.linked=[])).push({doc:gr,sharedHist:gq.sharedHist});gr.linked=[{doc:this,isParent:true,sharedHist:gq.sharedHist}];dF(gr,eT(this));return gr},unlinkDoc:function(gr){if(gr instanceof H){gr=gr.doc}if(this.linked){for(var gs=0;gs<this.linked.length;++gs){var gt=this.linked[gs];if(gt.doc!=gr){continue}this.linked.splice(gs,1);gr.unlinkDoc(this);er(eT(this));break}}if(gr.history==this.history){var gq=[gr.id];d8(gr,function(gu){gq.push(gu.id)},true);gr.history=new f0(null);gr.history.done=bO(this.history.done,gq);gr.history.undone=bO(this.history.undone,gq)}},iterLinkedDocs:function(gq){d8(this,gq)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(gq){if(this.lineSep){return gq.split(this.lineSep)}return fY(gq)},lineSeparator:function(){return this.lineSep||"\n"}});ar.prototype.eachLine=ar.prototype.iter;var d="iter insert remove copy getEditor constructor".split(" ");for(var bJ in ar.prototype){if(ar.prototype.hasOwnProperty(bJ)&&dh(d,bJ)<0){H.prototype[bJ]=(function(gq){return function(){return gq.apply(this.doc,arguments)}})(ar.prototype[bJ])}}bx(ar);function d8(gt,gs,gr){function gq(gz,gx,gv){if(gz.linked){for(var gw=0;gw<gz.linked.length;++gw){var gu=gz.linked[gw];if(gu.doc==gx){continue}var gy=gv&&gu.sharedHist;if(gr&&!gy){continue}gs(gu.doc,gy);gq(gu.doc,gz,gy)}}}gq(gt,null,true)}function ed(gq,gr){if(gr.cm){throw new Error("This document is already in use.")}gq.doc=gr;gr.cm=gq;X(gq);bq(gq);if(!gq.options.lineWrapping){h(gq)}gq.options.mode=gr.modeOption;ah(gq)}function fk(gt,gv){gv-=gt.first;if(gv<0||gv>=gt.size){throw new Error("There is no line "+(gv+gt.first)+" in the document.")}for(var gq=gt;!gq.lines;){for(var gr=0;;++gr){var gu=gq.children[gr],gs=gu.chunkSize();if(gv<gs){gq=gu;break}gv-=gs}}return gq.lines[gv]}function gb(gs,gu,gq){var gr=[],gt=gu.line;gs.iter(gu.line,gq.line+1,function(gv){var gw=gv.text;if(gt==gq.line){gw=gw.slice(0,gq.ch)}if(gt==gu.line){gw=gw.slice(gu.ch)}gr.push(gw);++gt});return gr}function a1(gr,gt,gs){var gq=[];gr.iter(gt,gs,function(gu){gq.push(gu.text)});return gq}function gc(gr,gq){var gs=gq-gr.height;if(gs){for(var gt=gr;gt;gt=gt.parent){gt.height+=gs}}}function bM(gq){if(gq.parent==null){return null}var gu=gq.parent,gt=dh(gu.lines,gq);for(var gr=gu.parent;gr;gu=gr,gr=gr.parent){for(var gs=0;;++gs){if(gr.children[gs]==gu){break}gt+=gr.children[gs].chunkSize()}}return gt+gu.first}function bF(gs,gv){var gx=gs.first;outer:do{for(var gt=0;gt<gs.children.length;++gt){var gw=gs.children[gt],gu=gw.height;if(gv<gu){gs=gw;continue outer}gv-=gu;gx+=gw.chunkSize()}return gx}while(!gs.lines);for(var gt=0;gt<gs.lines.length;++gt){var gr=gs.lines[gt],gq=gr.height;if(gv<gq){break}gv-=gq}return gx+gt}function bL(gs){gs=x(gs);var gu=0,gr=gs.parent;for(var gt=0;gt<gr.lines.length;++gt){var gq=gr.lines[gt];if(gq==gs){break}else{gu+=gq.height}}for(var gv=gr.parent;gv;gr=gv,gv=gr.parent){for(var gt=0;gt<gv.children.length;++gt){var gw=gv.children[gt];if(gw==gr){break}else{gu+=gw.height}}}return gu}function a(gr){var gq=gr.order;if(gq==null){gq=gr.order=bg(gr.text)}return gq}function f0(gq){this.done=[];this.undone=[];this.undoDepth=Infinity;this.lastModTime=this.lastSelTime=0;this.lastOp=this.lastSelOp=null;this.lastOrigin=this.lastSelOrigin=null;this.generation=this.maxGeneration=gq||1}function du(gq,gs){var gr={from:ch(gs.from),to:cW(gs),text:gb(gq,gs.from,gs.to)};bX(gq,gr,gs.from.line,gs.to.line+1);d8(gq,function(gt){bX(gt,gr,gs.from.line,gs.to.line+1)},true);return gr}function fG(gr){while(gr.length){var gq=fL(gr);if(gq.ranges){gr.pop()}else{break}}}function eQ(gr,gq){if(gq){fG(gr.done);return fL(gr.done)}else{if(gr.done.length&&!fL(gr.done).ranges){return fL(gr.done)}else{if(gr.done.length>1&&!gr.done[gr.done.length-2].ranges){gr.done.pop();return fL(gr.done)}}}}function fS(gw,gu,gq,gt){var gs=gw.history;gs.undone.length=0;var gr=+new Date,gx;if((gs.lastOp==gt||gs.lastOrigin==gu.origin&&gu.origin&&((gu.origin.charAt(0)=="+"&&gw.cm&&gs.lastModTime>gr-gw.cm.options.historyEventDelay)||gu.origin.charAt(0)=="*"))&&(gx=eQ(gs,gs.lastOp==gt))){var gy=fL(gx.changes);if(ce(gu.from,gu.to)==0&&ce(gu.from,gy.to)==0){gy.to=cW(gu)}else{gx.changes.push(du(gw,gu))}}else{var gv=fL(gs.done);if(!gv||!gv.ranges){cM(gw.sel,gs.done)}gx={changes:[du(gw,gu)],generation:gs.generation};gs.done.push(gx);while(gs.done.length>gs.undoDepth){gs.done.shift();if(!gs.done[0].ranges){gs.done.shift()}}}gs.done.push(gq);gs.generation=++gs.maxGeneration;gs.lastModTime=gs.lastSelTime=gr;gs.lastOp=gs.lastSelOp=gt;gs.lastOrigin=gs.lastSelOrigin=gu.origin;if(!gy){aD(gw,"historyAdded")}}function bz(gu,gq,gs,gt){var gr=gq.charAt(0);return gr=="*"||gr=="+"&&gs.ranges.length==gt.ranges.length&&gs.somethingSelected()==gt.somethingSelected()&&new Date-gu.history.lastSelTime<=(gu.cm?gu.cm.options.historyEventDelay:500)}function gi(gv,gt,gq,gs){var gu=gv.history,gr=gs&&gs.origin;if(gq==gu.lastSelOp||(gr&&gu.lastSelOrigin==gr&&(gu.lastModTime==gu.lastSelTime&&gu.lastOrigin==gr||bz(gv,gr,fL(gu.done),gt)))){gu.done[gu.done.length-1]=gt}else{cM(gt,gu.done)}gu.lastSelTime=+new Date;gu.lastSelOrigin=gr;gu.lastSelOp=gq;if(gs&&gs.clearRedo!==false){fG(gu.undone)}}function cM(gr,gq){var gs=fL(gq);if(!(gs&&gs.ranges&&gs.equals(gr))){gq.push(gr)}}function bX(gr,gv,gu,gt){var gq=gv["spans_"+gr.id],gs=0;gr.iter(Math.max(gr.first,gu),Math.min(gr.first+gr.size,gt),function(gw){if(gw.markedSpans){(gq||(gq=gv["spans_"+gr.id]={}))[gs]=gw.markedSpans}++gs})}function bk(gs){if(!gs){return null}for(var gr=0,gq;gr<gs.length;++gr){if(gs[gr].marker.explicitlyCleared){if(!gq){gq=gs.slice(0,gr)}}else{if(gq){gq.push(gs[gr])}}}return !gq?gs:gq.length?gq:null}function b3(gt,gu){var gs=gu["spans_"+gt.id];if(!gs){return null}for(var gr=0,gq=[];gr<gu.text.length;++gr){gq.push(bk(gs[gr]))}return gq}function bO(gB,gt,gA){for(var gw=0,gr=[];gw<gB.length;++gw){var gs=gB[gw];if(gs.ranges){gr.push(gA?ga.prototype.deepCopy.call(gs):gs);continue}var gy=gs.changes,gz=[];gr.push({changes:gz});for(var gv=0;gv<gy.length;++gv){var gx=gy[gv],gu;gz.push({from:gx.from,to:gx.to,text:gx.text});if(gt){for(var gq in gx){if(gu=gq.match(/^spans_(\d+)$/)){if(dh(gt,Number(gu[1]))>-1){fL(gz)[gq]=gx[gq];delete gx[gq]}}}}}}return gr}function I(gt,gs,gr,gq){if(gr<gt.line){gt.line+=gq}else{if(gs<gt.line){gt.line=gs;gt.ch=0}}}function fm(gt,gv,gw,gx){for(var gs=0;gs<gt.length;++gs){var gq=gt[gs],gu=true;if(gq.ranges){if(!gq.copied){gq=gt[gs]=gq.deepCopy();gq.copied=true}for(var gr=0;gr<gq.ranges.length;gr++){I(gq.ranges[gr].anchor,gv,gw,gx);I(gq.ranges[gr].head,gv,gw,gx)}continue}for(var gr=0;gr<gq.changes.length;++gr){var gy=gq.changes[gr];if(gw<gy.from.line){gy.from=W(gy.from.line+gx,gy.from.ch);gy.to=W(gy.to.line+gx,gy.to.ch)}else{if(gv<=gy.to.line){gu=false;break}}}if(!gu){gt.splice(0,gs+1);gs=0}}}function dE(gr,gu){var gt=gu.from.line,gs=gu.to.line,gq=gu.text.length-(gs-gt)-1;fm(gr.done,gt,gs,gq);fm(gr.undone,gt,gs,gq)}var cF=H.e_preventDefault=function(gq){if(gq.preventDefault){gq.preventDefault()}else{gq.returnValue=false}};var dq=H.e_stopPropagation=function(gq){if(gq.stopPropagation){gq.stopPropagation()}else{gq.cancelBubble=true}};function bK(gq){return gq.defaultPrevented!=null?gq.defaultPrevented:gq.returnValue==false}var eu=H.e_stop=function(gq){cF(gq);dq(gq)};function L(gq){return gq.target||gq.srcElement}function fT(gr){var gq=gr.which;if(gq==null){if(gr.button&1){gq=1}else{if(gr.button&2){gq=3}else{if(gr.button&4){gq=2}}}}if(b6&&gr.ctrlKey&&gq==1){gq=3}return gq}var bW=H.on=function(gt,gr,gs){if(gt.addEventListener){gt.addEventListener(gr,gs,false)}else{if(gt.attachEvent){gt.attachEvent("on"+gr,gs)}else{var gu=gt._handlers||(gt._handlers={});var gq=gu[gr]||(gu[gr]=[]);gq.push(gs)}}};var fa=[];function en(gs,gr,gt){var gq=gs._handlers&&gs._handlers[gr];if(gt){return gq&&gq.length>0?gq.slice():fa}else{return gq||fa}}var ef=H.off=function(gu,gs,gt){if(gu.removeEventListener){gu.removeEventListener(gs,gt,false)}else{if(gu.detachEvent){gu.detachEvent("on"+gs,gt)}else{var gq=en(gu,gs,false);for(var gr=0;gr<gq.length;++gr){if(gq[gr]==gt){gq.splice(gr,1);break}}}}};var aD=H.signal=function(gu,gt){var gq=en(gu,gt,true);if(!gq.length){return}var gr=Array.prototype.slice.call(arguments,2);for(var gs=0;gs<gq.length;++gs){gq[gs].apply(null,gr)}};var by=null;function ae(gw,gu){var gq=en(gw,gu,false);if(!gq.length){return}var gs=Array.prototype.slice.call(arguments,2),gv;if(bo){gv=bo.delayedCallbacks}else{if(by){gv=by}else{gv=by=[];setTimeout(aL,0)}}function gr(gx){return function(){gx.apply(null,gs)}}for(var gt=0;gt<gq.length;++gt){gv.push(gr(gq[gt]))}}function aL(){var gq=by;by=null;for(var gr=0;gr<gq.length;++gr){gq[gr]()}}function aQ(gq,gs,gr){if(typeof gs=="string"){gs={type:gs,preventDefault:function(){this.defaultPrevented=true}}}aD(gq,gr||gs.type,gq,gs);return bK(gs)||gs.codemirrorIgnore}function V(gr){var gq=gr._handlers&&gr._handlers.cursorActivity;if(!gq){return}var gt=gr.curOp.cursorActivityHandlers||(gr.curOp.cursorActivityHandlers=[]);for(var gs=0;gs<gq.length;++gs){if(dh(gt,gq[gs])==-1){gt.push(gq[gs])}}}function fn(gr,gq){return en(gr,gq).length>0}function bx(gq){gq.prototype.on=function(gr,gs){bW(this,gr,gs)};gq.prototype.off=function(gr,gs){ef(this,gr,gs)}}var dJ=30;var b9=H.Pass={toString:function(){return"CodeMirror.Pass"}};var Z={scroll:false},M={origin:"*mouse"},cV={origin:"+move"};function gp(){this.id=null}gp.prototype.set=function(gq,gr){clearTimeout(this.id);this.id=setTimeout(gr,gq)};var bS=H.countColumn=function(gt,gr,gv,gw,gs){if(gr==null){gr=gt.search(/[^\s\u00a0]/);if(gr==-1){gr=gt.length}}for(var gu=gw||0,gx=gs||0;;){var gq=gt.indexOf("\t",gu);if(gq<0||gq>=gr){return gx+(gr-gu)}gx+=gq-gu;gx+=gv-(gx%gv);gu=gq+1}};var et=H.findColumn=function(gu,gt,gv){for(var gw=0,gs=0;;){var gr=gu.indexOf("\t",gw);if(gr==-1){gr=gu.length}var gq=gr-gw;if(gr==gu.length||gs+gq>=gt){return gw+Math.min(gq,gt-gs)}gs+=gr-gw;gs+=gv-(gs%gv);gw=gr+1;if(gs>=gt){return gw}}};var aZ=[""];function co(gq){while(aZ.length<=gq){aZ.push(fL(aZ)+" ")}return aZ[gq]}function fL(gq){return gq[gq.length-1]}var dL=function(gq){gq.select()};if(e5){dL=function(gq){gq.selectionStart=0;gq.selectionEnd=gq.value.length}}else{if(dK){dL=function(gr){try{gr.select()}catch(gq){}}}}function dh(gs,gq){for(var gr=0;gr<gs.length;++gr){if(gs[gr]==gq){return gr}}return -1}function bR(gt,gs){var gq=[];for(var gr=0;gr<gt.length;gr++){gq[gr]=gs(gt[gr],gr)}return gq}function f1(){}function cj(gs,gq){var gr;if(Object.create){gr=Object.create(gs)}else{f1.prototype=gs;gr=new f1()}if(gq){aM(gq,gr)}return gr}function aM(gs,gr,gq){if(!gr){gr={}}for(var gt in gs){if(gs.hasOwnProperty(gt)&&(gq!==false||!gr.hasOwnProperty(gt))){gr[gt]=gs[gt]}}return gr}function cu(gr){var gq=Array.prototype.slice.call(arguments,1);return function(){return gr.apply(null,gq)}}var bb=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;var fI=H.isWordChar=function(gq){return/\w/.test(gq)||gq>"\x80"&&(gq.toUpperCase()!=gq.toLowerCase()||bb.test(gq))};function cz(gq,gr){if(!gr){return fI(gq)}if(gr.source.indexOf("\\w")>-1&&fI(gq)){return true}return gr.test(gq)}function eY(gq){for(var gr in gq){if(gq.hasOwnProperty(gr)&&gq[gr]){return false}}return true}var eN=/[\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 fu(gq){return gq.charCodeAt(0)>=768&&eN.test(gq)}function f9(gq,gu,gt,gs){var gv=document.createElement(gq);if(gt){gv.className=gt}if(gs){gv.style.cssText=gs}if(typeof gu=="string"){gv.appendChild(document.createTextNode(gu))}else{if(gu){for(var gr=0;gr<gu.length;++gr){gv.appendChild(gu[gr])}}}return gv}var ck;if(document.createRange){ck=function(gt,gu,gr,gq){var gs=document.createRange();gs.setEnd(gq||gt,gr);gs.setStart(gt,gu);return gs}}else{ck=function(gs,gu,gq){var gr=document.body.createTextRange();try{gr.moveToElementText(gs.parentNode)}catch(gt){return gr}gr.collapse(true);gr.moveEnd("character",gq);gr.moveStart("character",gu);return gr}}function d2(gr){for(var gq=gr.childNodes.length;gq>0;--gq){gr.removeChild(gr.firstChild)}return gr}function bQ(gq,gr){return d2(gq).appendChild(gr)}var gh=H.contains=function(gq,gr){if(gr.nodeType==3){gr=gr.parentNode}if(gq.contains){return gq.contains(gr)}do{if(gr.nodeType==11){gr=gr.host}if(gr==gq){return true}}while(gr=gr.parentNode)};function dO(){var gq=document.activeElement;while(gq&&gq.root&&gq.root.activeElement){gq=gq.root.activeElement}return gq}if(dK&&k<11){dO=function(){try{return document.activeElement}catch(gq){return document.body}}}function S(gq){return new RegExp("(^|\\s)"+gq+"(?:$|\\s)\\s*")}var f=H.rmClass=function(gs,gq){var gt=gs.className;var gr=S(gq).exec(gt);if(gr){var gu=gt.slice(gr.index+gr[0].length);gs.className=gt.slice(0,gr.index)+(gu?gr[1]+gu:"")}};var fF=H.addClass=function(gr,gq){var gs=gr.className;if(!S(gq).test(gs)){gr.className+=(gs?" ":"")+gq}};function fZ(gs,gq){var gr=gs.split(" ");for(var gt=0;gt<gr.length;gt++){if(gr[gt]&&!S(gr[gt]).test(gq)){gq+=" "+gr[gt]}}return gq}function az(gt){if(!document.body.getElementsByClassName){return}var gs=document.body.getElementsByClassName("CodeMirror");for(var gr=0;gr<gs.length;gr++){var gq=gs[gr].CodeMirror;if(gq){gt(gq)}}}var cB=false;function bi(){if(cB){return}fJ();cB=true}function fJ(){var gq;bW(window,"resize",function(){if(gq==null){gq=setTimeout(function(){gq=null;az(aS)},100)}});bW(window,"blur",function(){az(aU)})}var eP=function(){if(dK&&k<9){return false}var gq=f9("div");return"draggable" in gq||"dragDrop" in gq}();var fR;function bm(gq){if(fR==null){var gs=f9("span","\u200b");bQ(gq,f9("span",[gs,document.createTextNode("x")]));if(gq.firstChild.offsetHeight!=0){fR=gs.offsetWidth<=1&&gs.offsetHeight>2&&!(dK&&k<8)}}var gr=fR?f9("span","\u200b"):f9("span","\u00a0",null,"display: inline-block; width: 1px; margin-right: -1px");gr.setAttribute("cm-text","");return gr}var fQ;function bN(gt){if(fQ!=null){return fQ}var gq=bQ(gt,document.createTextNode("A\u062eA"));var gs=ck(gq,0,1).getBoundingClientRect();if(!gs||gs.left==gs.right){return false}var gr=ck(gq,1,2).getBoundingClientRect();return fQ=(gr.right-gs.right<3)}var fY=H.splitLines="\n\nb".split(/\n/).length!=3?function(gv){var gw=0,gq=[],gu=gv.length;while(gw<=gu){var gt=gv.indexOf("\n",gw);if(gt==-1){gt=gv.length}var gs=gv.slice(gw,gv.charAt(gt-1)=="\r"?gt-1:gt);var gr=gs.indexOf("\r");if(gr!=-1){gq.push(gs.slice(0,gr));gw+=gr+1}else{gq.push(gs);gw=gt+1}}return gq}:function(gq){return gq.split(/\r\n?|\n/)};var br=window.getSelection?function(gr){try{return gr.selectionStart!=gr.selectionEnd}catch(gq){return false}}:function(gs){try{var gq=gs.ownerDocument.selection.createRange()}catch(gr){}if(!gq||gq.parentElement()!=gs){return false}return gq.compareEndPoints("StartToEnd",gq)!=0};var c9=(function(){var gq=f9("div");if("oncopy" in gq){return true}gq.setAttribute("oncopy","return;");return typeof gq.oncopy=="function"})();var fb=null;function aJ(gr){if(fb!=null){return fb}var gs=bQ(gr,f9("span","x"));var gt=gs.getBoundingClientRect();var gq=ck(gs,0,1).getBoundingClientRect();return fb=Math.abs(gt.left-gq.left)>1}var fl=H.keyNames={3:"Enter",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:"/",127:"Delete",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"};(function(){for(var gq=0;gq<10;gq++){fl[gq+48]=fl[gq+96]=String(gq)}for(var gq=65;gq<=90;gq++){fl[gq]=String.fromCharCode(gq)}for(var gq=1;gq<=12;gq++){fl[gq+111]=fl[gq+63235]="F"+gq}})();function d5(gq,gw,gv,gu){if(!gq){return gu(gw,gv,"ltr")}var gt=false;for(var gs=0;gs<gq.length;++gs){var gr=gq[gs];if(gr.from<gv&&gr.to>gw||gw==gv&&gr.to==gw){gu(Math.max(gr.from,gw),Math.min(gr.to,gv),gr.level==1?"rtl":"ltr");gt=true}}if(!gt){gu(gw,gv,"ltr")}}function dy(gq){return gq.level%2?gq.to:gq.from}function gk(gq){return gq.level%2?gq.from:gq.to}function cD(gr){var gq=a(gr);return gq?dy(gq[0]):0}function cR(gr){var gq=a(gr);if(!gq){return gr.text.length}return gk(fL(gq))}function bs(gr,gu){var gs=fk(gr.doc,gu);var gv=x(gs);if(gv!=gs){gu=bM(gv)}var gq=a(gv);var gt=!gq?0:gq[0].level%2?cR(gv):cD(gv);return W(gu,gt)}function dP(gs,gv){var gr,gt=fk(gs.doc,gv);while(gr=ex(gt)){gt=gr.find(1,true).line;gv=null}var gq=a(gt);var gu=!gq?gt.text.length:gq[0].level%2?cD(gt):cR(gt);return W(gv==null?bM(gt):gv,gu)}function dI(gr,gw){var gv=bs(gr,gw.line);var gs=fk(gr.doc,gv.line);var gq=a(gs);if(!gq||gq[0].level==0){var gu=Math.max(0,gs.text.search(/\S/));var gt=gw.line==gv.line&&gw.ch<=gu&&gw.ch;return W(gv.line,gt?0:gu)}return gv}function am(gr,gs,gq){var gt=gr[0].level;if(gs==gt){return true}if(gq==gt){return false}return gs<gq}var e6;function aF(gq,gu){e6=null;for(var gr=0,gs;gr<gq.length;++gr){var gt=gq[gr];if(gt.from<gu&&gt.to>gu){return gr}if((gt.from==gu||gt.to==gu)){if(gs==null){gs=gr}else{if(am(gq,gt.level,gq[gs].level)){if(gt.from!=gt.to){e6=gs}return gr}else{if(gt.from!=gt.to){e6=gr}return gs}}}}return gs}function fj(gq,gt,gr,gs){if(!gs){return gt+gr}do{gt+=gr}while(gt>0&&fu(gq.text.charAt(gt)));return gt}function u(gq,gx,gs,gt){var gu=a(gq);if(!gu){return ai(gq,gx,gs,gt)}var gw=aF(gu,gx),gr=gu[gw];var gv=fj(gq,gx,gr.level%2?-gs:gs,gt);for(;;){if(gv>gr.from&&gv<gr.to){return gv}if(gv==gr.from||gv==gr.to){if(aF(gu,gv)==gw){return gv}gr=gu[gw+=gs];return(gs>0)==gr.level%2?gr.to:gr.from}else{gr=gu[gw+=gs];if(!gr){return null}if((gs>0)==gr.level%2){gv=fj(gq,gr.to,-1,gt)}else{gv=fj(gq,gr.from,1,gt)}}}}function ai(gq,gu,gr,gs){var gt=gu+gr;if(gs){while(gt>0&&fu(gq.text.charAt(gt))){gt+=gr}}return gt<0||gt>gq.text.length?null:gt}var bg=(function(){var gw="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN";var gu="rrrrrrrrrrrr,rNNmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmrrrrrrrnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmNmmmm";function gt(gA){if(gA<=247){return gw.charAt(gA)}else{if(1424<=gA&&gA<=1524){return"R"}else{if(1536<=gA&&gA<=1773){return gu.charAt(gA-1536)}else{if(1774<=gA&&gA<=2220){return"r"}else{if(8192<=gA&&gA<=8203){return"w"}else{if(gA==8204){return"b"}else{return"L"}}}}}}}var gq=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;var gz=/[stwN]/,gs=/[LRr]/,gr=/[Lb1n]/,gv=/[1n]/;var gy="L";function gx(gC,gB,gA){this.level=gC;this.from=gB;this.to=gA}return function(gK){if(!gq.test(gK)){return false}var gQ=gK.length,gG=[];for(var gP=0,gC;gP<gQ;++gP){gG.push(gC=gt(gK.charCodeAt(gP)))}for(var gP=0,gJ=gy;gP<gQ;++gP){var gC=gG[gP];if(gC=="m"){gG[gP]=gJ}else{gJ=gC}}for(var gP=0,gA=gy;gP<gQ;++gP){var gC=gG[gP];if(gC=="1"&&gA=="r"){gG[gP]="n"}else{if(gs.test(gC)){gA=gC;if(gC=="r"){gG[gP]="R"}}}}for(var gP=1,gJ=gG[0];gP<gQ-1;++gP){var gC=gG[gP];if(gC=="+"&&gJ=="1"&&gG[gP+1]=="1"){gG[gP]="1"}else{if(gC==","&&gJ==gG[gP+1]&&(gJ=="1"||gJ=="n")){gG[gP]=gJ}}gJ=gC}for(var gP=0;gP<gQ;++gP){var gC=gG[gP];if(gC==","){gG[gP]="N"}else{if(gC=="%"){for(var gD=gP+1;gD<gQ&&gG[gD]=="%";++gD){}var gR=(gP&&gG[gP-1]=="!")||(gD<gQ&&gG[gD]=="1")?"1":"N";for(var gN=gP;gN<gD;++gN){gG[gN]=gR}gP=gD-1}}}for(var gP=0,gA=gy;gP<gQ;++gP){var gC=gG[gP];if(gA=="L"&&gC=="1"){gG[gP]="L"}else{if(gs.test(gC)){gA=gC}}}for(var gP=0;gP<gQ;++gP){if(gz.test(gG[gP])){for(var gD=gP+1;gD<gQ&&gz.test(gG[gD]);++gD){}var gH=(gP?gG[gP-1]:gy)=="L";var gB=(gD<gQ?gG[gD]:gy)=="L";var gR=gH||gB?"L":"R";for(var gN=gP;gN<gD;++gN){gG[gN]=gR}gP=gD-1}}var gO=[],gL;for(var gP=0;gP<gQ;){if(gr.test(gG[gP])){var gE=gP;for(++gP;gP<gQ&&gr.test(gG[gP]);++gP){}gO.push(new gx(0,gE,gP))}else{var gF=gP,gI=gO.length;for(++gP;gP<gQ&&gG[gP]!="L";++gP){}for(var gN=gF;gN<gP;){if(gv.test(gG[gN])){if(gF<gN){gO.splice(gI,0,new gx(1,gF,gN))}var gM=gN;for(++gN;gN<gP&&gv.test(gG[gN]);++gN){}gO.splice(gI,0,new gx(2,gM,gN));gF=gN}else{++gN}}if(gF<gP){gO.splice(gI,0,new gx(1,gF,gP))}}}if(gO[0].level==1&&(gL=gK.match(/^\s+/))){gO[0].from=gL[0].length;gO.unshift(new gx(0,0,gL[0].length))}if(fL(gO).level==1&&(gL=gK.match(/\s+$/))){fL(gO).to-=gL[0].length;gO.push(new gx(0,gQ-gL[0].length,gQ))}if(gO[0].level==2){gO.unshift(new gx(1,gO[0].to,gO[0].to))}if(gO[0].level!=fL(gO).level){gO.push(new gx(gO[0].level,gQ,gQ))}return gO}})();H.version="5.14.0";return H});
@@ -1 +1 @@
1
- (function(a){if(typeof exports=="object"&&typeof module=="object"){a(require("../../lib/codemirror"))}else{if(typeof define=="function"&&define.amd){define(["../../lib/codemirror"],a)}else{a(CodeMirror)}}})(function(a){a.defineMode("xml",function(y,k){var p=y.indentUnit;var x=k.multilineTagIndentFactor||1;var d=k.multilineTagIndentPastTag;if(d==null){d=true}var w=k.htmlMode?{autoSelfClosers:{area:true,base:true,br:true,col:true,command:true,embed:true,frame:true,hr:true,img:true,input:true,keygen:true,link:true,meta:true,param:true,source:true,track:true,wbr:true,menuitem:true},implicitlyClosed:{dd:true,li:true,optgroup:true,option:true,p:true,rp:true,rt:true,tbody:true,td:true,tfoot:true,th:true,tr:true},contextGrabbers:{dd:{dd:true,dt:true},dt:{dd:true,dt:true},li:{li:true},option:{option:true,optgroup:true},optgroup:{optgroup:true},p:{address:true,article:true,aside:true,blockquote:true,dir:true,div:true,dl:true,fieldset:true,footer:true,form:true,h1:true,h2:true,h3:true,h4:true,h5:true,h6:true,header:true,hgroup:true,hr:true,menu:true,nav:true,ol:true,p:true,pre:true,section:true,table:true,ul:true},rp:{rp:true,rt:true},rt:{rp:true,rt:true},tbody:{tbody:true,tfoot:true},td:{td:true,th:true},tfoot:{tbody:true},th:{td:true,th:true},thead:{tbody:true,tfoot:true},tr:{tr:true}},doNotIndent:{pre:true},allowUnquoted:true,allowMissing:true,caseFold:true}:{autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:false,allowMissing:false,caseFold:false};var c=k.alignCDATA;var f,g;function n(F,E){function C(G){E.tokenize=G;return G(F,E)}var D=F.next();if(D=="<"){if(F.eat("!")){if(F.eat("[")){if(F.match("CDATA[")){return C(v("atom","]]>"))}else{return null}}else{if(F.match("--")){return C(v("comment","-->"))}else{if(F.match("DOCTYPE",true,true)){F.eatWhile(/[\w\._\-]/);return C(z(1))}else{return null}}}}else{if(F.eat("?")){F.eatWhile(/[\w\._\-]/);E.tokenize=v("meta","?>");return"meta"}else{f=F.eat("/")?"closeTag":"openTag";E.tokenize=m;return"tag bracket"}}}else{if(D=="&"){var B;if(F.eat("#")){if(F.eat("x")){B=F.eatWhile(/[a-fA-F\d]/)&&F.eat(";")}else{B=F.eatWhile(/[\d]/)&&F.eat(";")}}else{B=F.eatWhile(/[\w\.\-:]/)&&F.eat(";")}return B?"atom":"error"}else{F.eatWhile(/[^&<]/);return null}}}function m(E,D){var C=E.next();if(C==">"||(C=="/"&&E.eat(">"))){D.tokenize=n;f=C==">"?"endTag":"selfcloseTag";return"tag bracket"}else{if(C=="="){f="equals";return null}else{if(C=="<"){D.tokenize=n;D.state=l;D.tagName=D.tagStart=null;var B=D.tokenize(E,D);return B?B+" tag error":"tag error"}else{if(/[\'\"]/.test(C)){D.tokenize=j(C);D.stringStartCol=E.column();return D.tokenize(E,D)}else{E.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/);return"word"}}}}}function j(B){var C=function(E,D){while(!E.eol()){if(E.next()==B){D.tokenize=m;break}}return"string"};C.isInAttribute=true;return C}function v(C,B){return function(E,D){while(!E.eol()){if(E.match(B)){D.tokenize=n;break}E.next()}return C}}function z(B){return function(E,D){var C;while((C=E.next())!=null){if(C=="<"){D.tokenize=z(B+1);return D.tokenize(E,D)}else{if(C==">"){if(B==1){D.tokenize=n;break}else{D.tokenize=z(B-1);return D.tokenize(E,D)}}}}return"meta"}}function r(C,B,D){this.prev=C.context;this.tagName=B;this.indent=C.indented;this.startOfLine=D;if(w.doNotIndent.hasOwnProperty(B)||(C.context&&C.context.noIndent)){this.noIndent=true}}function u(B){if(B.context){B.context=B.context.prev}}function q(D,C){var B;while(true){if(!D.context){return}B=D.context.tagName;if(!w.contextGrabbers.hasOwnProperty(B)||!w.contextGrabbers[B].hasOwnProperty(C)){return}u(D)}}function l(B,D,C){if(B=="openTag"){C.tagStart=D.column();return b}else{if(B=="closeTag"){return t}else{return l}}}function b(B,D,C){if(B=="word"){C.tagName=D.current();g="tag";return e}else{g="error";return b}}function t(C,E,D){if(C=="word"){var B=E.current();if(D.context&&D.context.tagName!=B&&w.implicitlyClosed.hasOwnProperty(D.context.tagName)){u(D)}if(D.context&&D.context.tagName==B){g="tag";return s}else{g="tag error";return A}}else{g="error";return A}}function s(C,B,D){if(C!="endTag"){g="error";return s}u(D);return l}function A(B,D,C){g="error";return s(B,D,C)}function e(E,C,F){if(E=="word"){g="attribute";return i}else{if(E=="endTag"||E=="selfcloseTag"){var D=F.tagName,B=F.tagStart;F.tagName=F.tagStart=null;if(E=="selfcloseTag"||w.autoSelfClosers.hasOwnProperty(D)){q(F,D)}else{q(F,D);F.context=new r(F,D,B==F.indented)}return l}}g="error";return e}function i(B,D,C){if(B=="equals"){return o}if(!w.allowMissing){g="error"}return e(B,D,C)}function o(B,D,C){if(B=="string"){return h}if(B=="word"&&w.allowUnquoted){g="string";return e}g="error";return e(B,D,C)}function h(B,D,C){if(B=="string"){return h}return e(B,D,C)}return{startState:function(){return{tokenize:n,state:l,indented:0,tagName:null,tagStart:null,context:null}},token:function(D,C){if(!C.tagName&&D.sol()){C.indented=D.indentation()}if(D.eatSpace()){return null}f=null;var B=C.tokenize(D,C);if((B||f)&&B!="comment"){g=null;C.state=C.state(f||B,D,C);if(g){B=g=="error"?B+" error":g}}return B},indent:function(G,C,F){var E=G.context;if(G.tokenize.isInAttribute){if(G.tagStart==G.indented){return G.stringStartCol+1}else{return G.indented+p}}if(E&&E.noIndent){return a.Pass}if(G.tokenize!=m&&G.tokenize!=n){return F?F.match(/^(\s*)/)[0].length:0}if(G.tagName){if(d){return G.tagStart+G.tagName.length+2}else{return G.tagStart+p*x}}if(c&&/<!\[CDATA\[/.test(C)){return 0}var B=C&&/^<(\/)?([\w_:\.-]*)/.exec(C);if(B&&B[1]){while(E){if(E.tagName==B[2]){E=E.prev;break}else{if(w.implicitlyClosed.hasOwnProperty(E.tagName)){E=E.prev}else{break}}}}else{if(B){while(E){var D=w.contextGrabbers[E.tagName];if(D&&D.hasOwnProperty(B[2])){E=E.prev}else{break}}}}while(E&&!E.startOfLine){E=E.prev}if(E){return E.indent+p}else{return 0}},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:k.htmlMode?"html":"xml",helperType:k.htmlMode?"html":"xml"}});a.defineMIME("text/xml","xml");a.defineMIME("application/xml","xml");if(!a.mimeModes.hasOwnProperty("text/html")){a.defineMIME("text/html",{name:"xml",htmlMode:true})}});(function(a){if(typeof exports=="object"&&typeof module=="object"){a(require("../../lib/codemirror"))}else{if(typeof define=="function"&&define.amd){define(["../../lib/codemirror"],a)}else{a(CodeMirror)}}})(function(a){a.defineMode("javascript",function(Z,aj){var l=Z.indentUnit;var A=aj.statementIndent;var aB=aj.jsonld;var z=aj.json||aB;var g=aj.typescript;var au=aj.wordCharacters||/[\w$\xa1-\uffff]/;var ar=function(){function aR(aT){return{type:aT,style:"keyword"}}var aM=aR("keyword a"),aK=aR("keyword b"),aJ=aR("keyword c");var aL=aR("operator"),aP={type:"atom",style:"atom"};var aN={"if":aR("if"),"while":aM,"with":aM,"else":aK,"do":aK,"try":aK,"finally":aK,"return":aJ,"break":aJ,"continue":aJ,"new":aJ,"delete":aJ,"throw":aJ,"debugger":aJ,"var":aR("var"),"const":aR("var"),let:aR("var"),"function":aR("function"),"catch":aR("catch"),"for":aR("for"),"switch":aR("switch"),"case":aR("case"),"default":aR("default"),"in":aL,"typeof":aL,"instanceof":aL,"true":aP,"false":aP,"null":aP,"undefined":aP,"NaN":aP,"Infinity":aP,"this":aR("this"),module:aR("module"),"class":aR("class"),"super":aR("atom"),yield:aJ,"export":aR("export"),"import":aR("import"),"extends":aJ};if(g){var aS={type:"variable",style:"variable-3"};var aO={"interface":aR("interface"),"extends":aR("extends"),constructor:aR("constructor"),"public":aR("public"),"private":aR("private"),"protected":aR("protected"),"static":aR("static"),string:aS,number:aS,bool:aS,any:aS};for(var aQ in aO){aN[aQ]=aO[aQ]}}return aN}();var P=/[+\-*&%=<>!?|~^]/;var aq=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function F(aM){var aK=false,aJ,aL=false;while((aJ=aM.next())!=null){if(!aK){if(aJ=="/"&&!aL){return}if(aJ=="["){aL=true}else{if(aL&&aJ=="]"){aL=false}}}aK=!aK&&aJ=="\\"}}var S,G;function L(aL,aK,aJ){S=aL;G=aJ;return aK}function U(aN,aL){var aJ=aN.next();if(aJ=='"'||aJ=="'"){aL.tokenize=R(aJ);return aL.tokenize(aN,aL)}else{if(aJ=="."&&aN.match(/^\d+(?:[eE][+\-]?\d+)?/)){return L("number","number")}else{if(aJ=="."&&aN.match("..")){return L("spread","meta")}else{if(/[\[\]{}\(\),;\:\.]/.test(aJ)){return L(aJ)}else{if(aJ=="="&&aN.eat(">")){return L("=>","operator")}else{if(aJ=="0"&&aN.eat(/x/i)){aN.eatWhile(/[\da-f]/i);return L("number","number")}else{if(/\d/.test(aJ)){aN.match(/^\d*(?:\.\d*)?(?:[eE][+\-]?\d+)?/);return L("number","number")}else{if(aJ=="/"){if(aN.eat("*")){aL.tokenize=aA;return aA(aN,aL)}else{if(aN.eat("/")){aN.skipToEnd();return L("comment","comment")}else{if(aL.lastType=="operator"||aL.lastType=="keyword c"||aL.lastType=="sof"||/^[\[{}\(,;:]$/.test(aL.lastType)){F(aN);aN.match(/^\b(([gimyu])(?![gimyu]*\2))+\b/);return L("regexp","string-2")}else{aN.eatWhile(P);return L("operator","operator",aN.current())}}}}else{if(aJ=="`"){aL.tokenize=aC;return aC(aN,aL)}else{if(aJ=="#"){aN.skipToEnd();return L("error","error")}else{if(P.test(aJ)){aN.eatWhile(P);return L("operator","operator",aN.current())}else{if(au.test(aJ)){aN.eatWhile(au);var aM=aN.current(),aK=ar.propertyIsEnumerable(aM)&&ar[aM];return(aK&&aL.lastType!=".")?L(aK.type,aK.style,aM):L("variable","variable",aM)}}}}}}}}}}}}}function R(aJ){return function(aN,aL){var aM=false,aK;if(aB&&aN.peek()=="@"&&aN.match(aq)){aL.tokenize=U;return L("jsonld-keyword","meta")}while((aK=aN.next())!=null){if(aK==aJ&&!aM){break}aM=!aM&&aK=="\\"}if(!aM){aL.tokenize=U}return L("string","string")}}function aA(aM,aL){var aJ=false,aK;while(aK=aM.next()){if(aK=="/"&&aJ){aL.tokenize=U;break}aJ=(aK=="*")}return L("comment","comment")}function aC(aM,aK){var aL=false,aJ;while((aJ=aM.next())!=null){if(!aL&&(aJ=="`"||aJ=="$"&&aM.eat("{"))){aK.tokenize=U;break}aL=!aL&&aJ=="\\"}return L("quasi","string-2",aM.current())}var m="([{}])";function ax(aP,aM){if(aM.fatArrowAt){aM.fatArrowAt=null}var aL=aP.string.indexOf("=>",aP.start);if(aL<0){return}var aO=0,aK=false;for(var aQ=aL-1;aQ>=0;--aQ){var aJ=aP.string.charAt(aQ);var aN=m.indexOf(aJ);if(aN>=0&&aN<3){if(!aO){++aQ;break}if(--aO==0){break}}else{if(aN>=3&&aN<6){++aO}else{if(au.test(aJ)){aK=true}else{if(/["'\/]/.test(aJ)){return}else{if(aK&&!aO){++aQ;break}}}}}}if(aK&&!aO){aM.fatArrowAt=aQ}}var b={atom:true,number:true,variable:true,string:true,regexp:true,"this":true,"jsonld-keyword":true};function J(aO,aK,aJ,aN,aL,aM){this.indented=aO;this.column=aK;this.type=aJ;this.prev=aL;this.info=aM;if(aN!=null){this.align=aN}}function s(aM,aL){for(var aK=aM.localVars;aK;aK=aK.next){if(aK.name==aL){return true}}for(var aJ=aM.context;aJ;aJ=aJ.prev){for(var aK=aJ.vars;aK;aK=aK.next){if(aK.name==aL){return true}}}}function f(aN,aK,aJ,aM,aO){var aP=aN.cc;D.state=aN;D.stream=aO;D.marked=null,D.cc=aP;D.style=aK;if(!aN.lexical.hasOwnProperty("align")){aN.lexical.align=true}while(true){var aL=aP.length?aP.pop():z?an:aH;if(aL(aJ,aM)){while(aP.length&&aP[aP.length-1].lex){aP.pop()()}if(D.marked){return D.marked}if(aJ=="variable"&&s(aN,aM)){return"variable-2"}return aK}}}var D={state:null,column:null,marked:null,cc:null};function aa(){for(var aJ=arguments.length-1;aJ>=0;aJ--){D.cc.push(arguments[aJ])}}function ae(){aa.apply(null,arguments);return true}function aw(aK){function aJ(aN){for(var aM=aN;aM;aM=aM.next){if(aM.name==aK){return true}}return false}var aL=D.state;if(aL.context){D.marked="def";if(aJ(aL.localVars)){return}aL.localVars={name:aK,next:aL.localVars}}else{if(aJ(aL.globalVars)){return}if(aj.globalVars){aL.globalVars={name:aK,next:aL.globalVars}}}}var q={name:"this",next:{name:"arguments"}};function w(){D.state.context={prev:D.state.context,vars:D.state.localVars};D.state.localVars=q}function x(){D.state.localVars=D.state.context.vars;D.state.context=D.state.context.prev}function aF(aK,aL){var aJ=function(){var aO=D.state,aM=aO.indented;if(aO.lexical.type=="stat"){aM=aO.lexical.indented}else{for(var aN=aO.lexical;aN&&aN.type==")"&&aN.align;aN=aN.prev){aM=aN.indented}}aO.lexical=new J(aM,D.stream.column(),aK,null,aO.lexical,aL)};aJ.lex=true;return aJ}function h(){var aJ=D.state;if(aJ.lexical.prev){if(aJ.lexical.type==")"){aJ.indented=aJ.lexical.indented}aJ.lexical=aJ.lexical.prev}}h.lex=true;function r(aJ){function aK(aL){if(aL==aJ){return ae()}else{if(aJ==";"){return aa()}else{return ae(aK)}}}return aK}function aH(aJ,aK){if(aJ=="var"){return ae(aF("vardef",aK.length),d,r(";"),h)}if(aJ=="keyword a"){return ae(aF("form"),an,aH,h)}if(aJ=="keyword b"){return ae(aF("form"),aH,h)}if(aJ=="{"){return ae(aF("}"),y,h)}if(aJ==";"){return ae()}if(aJ=="if"){if(D.state.lexical.info=="else"&&D.state.cc[D.state.cc.length-1]==h){D.state.cc.pop()()}return ae(aF("form"),an,aH,h,e)}if(aJ=="function"){return ae(M)}if(aJ=="for"){return ae(aF("form"),u,aH,h)}if(aJ=="variable"){return ae(aF("stat"),aI)}if(aJ=="switch"){return ae(aF("form"),an,aF("}","switch"),r("{"),y,h,h)}if(aJ=="case"){return ae(an,r(":"))}if(aJ=="default"){return ae(r(":"))}if(aJ=="catch"){return ae(aF("form"),w,r("("),af,r(")"),aH,h,x)}if(aJ=="module"){return ae(aF("form"),w,H,x,h)}if(aJ=="class"){return ae(aF("form"),V,h)}if(aJ=="export"){return ae(aF("form"),aG,h)}if(aJ=="import"){return ae(aF("form"),ag,h)}return aa(aF("stat"),an,r(";"),h)}function an(aJ){return Y(aJ,false)}function aE(aJ){return Y(aJ,true)}function Y(aK,aM){if(D.state.fatArrowAt==D.stream.start){var aJ=aM?N:W;if(aK=="("){return ae(w,aF(")"),at(i,")"),h,r("=>"),aJ,x)}else{if(aK=="variable"){return aa(w,i,r("=>"),aJ,x)}}}var aL=aM?j:ab;if(b.hasOwnProperty(aK)){return ae(aL)}if(aK=="function"){return ae(M,aL)}if(aK=="keyword c"){return ae(aM?ak:ai)}if(aK=="("){return ae(aF(")"),ai,az,r(")"),h,aL)}if(aK=="operator"||aK=="spread"){return ae(aM?aE:an)}if(aK=="["){return ae(aF("]"),n,h,aL)}if(aK=="{"){return ay(t,"}",null,aL)}if(aK=="quasi"){return aa(Q,aL)}return ae()}function ai(aJ){if(aJ.match(/[;\}\)\],]/)){return aa()}return aa(an)}function ak(aJ){if(aJ.match(/[;\}\)\],]/)){return aa()}return aa(aE)}function ab(aJ,aK){if(aJ==","){return ae(an)}return j(aJ,aK,false)}function j(aJ,aL,aN){var aK=aN==false?ab:j;var aM=aN==false?an:aE;if(aJ=="=>"){return ae(w,aN?N:W,x)}if(aJ=="operator"){if(/\+\+|--/.test(aL)){return ae(aK)}if(aL=="?"){return ae(an,r(":"),aM)}return ae(aM)}if(aJ=="quasi"){return aa(Q,aK)}if(aJ==";"){return}if(aJ=="("){return ay(aE,")","call",aK)}if(aJ=="."){return ae(al,aK)}if(aJ=="["){return ae(aF("]"),ai,r("]"),h,aK)}}function Q(aJ,aK){if(aJ!="quasi"){return aa()}if(aK.slice(aK.length-2)!="${"){return ae(Q)}return ae(an,p)}function p(aJ){if(aJ=="}"){D.marked="string-2";D.state.tokenize=aC;return ae(Q)}}function W(aJ){ax(D.stream,D.state);return aa(aJ=="{"?aH:an)}function N(aJ){ax(D.stream,D.state);return aa(aJ=="{"?aH:aE)}function aI(aJ){if(aJ==":"){return ae(h,aH)}return aa(ab,r(";"),h)}function al(aJ){if(aJ=="variable"){D.marked="property";return ae()}}function t(aJ,aK){if(aJ=="variable"||D.style=="keyword"){D.marked="property";if(aK=="get"||aK=="set"){return ae(I)}return ae(K)}else{if(aJ=="number"||aJ=="string"){D.marked=aB?"property":(D.style+" property");return ae(K)}else{if(aJ=="jsonld-keyword"){return ae(K)}else{if(aJ=="["){return ae(an,r("]"),K)}}}}}function I(aJ){if(aJ!="variable"){return aa(K)}D.marked="property";return ae(M)}function K(aJ){if(aJ==":"){return ae(aE)}if(aJ=="("){return aa(M)}}function at(aL,aJ){function aK(aN){if(aN==","){var aM=D.state.lexical;if(aM.info=="call"){aM.pos=(aM.pos||0)+1}return ae(aL,aK)}if(aN==aJ){return ae()}return ae(r(aJ))}return function(aM){if(aM==aJ){return ae()}return aa(aL,aK)}}function ay(aM,aJ,aL){for(var aK=3;aK<arguments.length;aK++){D.cc.push(arguments[aK])}return ae(aF(aJ,aL),at(aM,aJ),h)}function y(aJ){if(aJ=="}"){return ae()}return aa(aH,y)}function T(aJ){if(g&&aJ==":"){return ae(ad)}}function av(aJ,aK){if(aK=="="){return ae(aE)}}function ad(aJ){if(aJ=="variable"){D.marked="variable-3";return ae()}}function d(){return aa(i,T,ac,X)}function i(aJ,aK){if(aJ=="variable"){aw(aK);return ae()}if(aJ=="["){return ay(i,"]")}if(aJ=="{"){return ay(aD,"}")}}function aD(aJ,aK){if(aJ=="variable"&&!D.stream.match(/^\s*:/,false)){aw(aK);return ae(ac)}if(aJ=="variable"){D.marked="property"}return ae(r(":"),i,ac)}function ac(aJ,aK){if(aK=="="){return ae(aE)}}function X(aJ){if(aJ==","){return ae(d)}}function e(aJ,aK){if(aJ=="keyword b"&&aK=="else"){return ae(aF("form","else"),aH,h)}}function u(aJ){if(aJ=="("){return ae(aF(")"),E,r(")"),h)}}function E(aJ){if(aJ=="var"){return ae(d,r(";"),C)}if(aJ==";"){return ae(C)}if(aJ=="variable"){return ae(v)}return aa(an,r(";"),C)}function v(aJ,aK){if(aK=="in"||aK=="of"){D.marked="keyword";return ae(an)}return ae(ab,C)}function C(aJ,aK){if(aJ==";"){return ae(B)}if(aK=="in"||aK=="of"){D.marked="keyword";return ae(an)}return aa(an,r(";"),B)}function B(aJ){if(aJ!=")"){ae(an)}}function M(aJ,aK){if(aK=="*"){D.marked="keyword";return ae(M)}if(aJ=="variable"){aw(aK);return ae(M)}if(aJ=="("){return ae(w,aF(")"),at(af,")"),h,aH,x)}}function af(aJ){if(aJ=="spread"){return ae(af)}return aa(i,T,av)}function V(aJ,aK){if(aJ=="variable"){aw(aK);return ae(O)}}function O(aJ,aK){if(aK=="extends"){return ae(an,O)}if(aJ=="{"){return ae(aF("}"),o,h)}}function o(aJ,aK){if(aJ=="variable"||D.style=="keyword"){if(aK=="static"){D.marked="keyword";return ae(o)}D.marked="property";if(aK=="get"||aK=="set"){return ae(c,M,o)}return ae(M,o)}if(aK=="*"){D.marked="keyword";return ae(o)}if(aJ==";"){return ae(o)}if(aJ=="}"){return ae()}}function c(aJ){if(aJ!="variable"){return aa()}D.marked="property";return ae()}function H(aJ,aK){if(aJ=="string"){return ae(aH)}if(aJ=="variable"){aw(aK);return ae(ah)}}function aG(aJ,aK){if(aK=="*"){D.marked="keyword";return ae(ah,r(";"))}if(aK=="default"){D.marked="keyword";return ae(an,r(";"))}return aa(aH)}function ag(aJ){if(aJ=="string"){return ae()}return aa(ap,ah)}function ap(aJ,aK){if(aJ=="{"){return ay(ap,"}")}if(aJ=="variable"){aw(aK)}if(aK=="*"){D.marked="keyword"}return ae(k)}function k(aJ,aK){if(aK=="as"){D.marked="keyword";return ae(ap)}}function ah(aJ,aK){if(aK=="from"){D.marked="keyword";return ae(an)}}function n(aJ){if(aJ=="]"){return ae()}return aa(aE,am)}function am(aJ){if(aJ=="for"){return aa(az,r("]"))}if(aJ==","){return ae(at(ak,"]"))}return aa(at(aE,"]"))}function az(aJ){if(aJ=="for"){return ae(u,az)}if(aJ=="if"){return ae(an,az)}}function ao(aK,aJ){return aK.lastType=="operator"||aK.lastType==","||P.test(aJ.charAt(0))||/[,.]/.test(aJ.charAt(0))}return{startState:function(aK){var aJ={tokenize:U,lastType:"sof",cc:[],lexical:new J((aK||0)-l,0,"block",false),localVars:aj.localVars,context:aj.localVars&&{vars:aj.localVars},indented:0};if(aj.globalVars&&typeof aj.globalVars=="object"){aJ.globalVars=aj.globalVars}return aJ},token:function(aL,aK){if(aL.sol()){if(!aK.lexical.hasOwnProperty("align")){aK.lexical.align=false}aK.indented=aL.indentation();ax(aL,aK)}if(aK.tokenize!=aA&&aL.eatSpace()){return null}var aJ=aK.tokenize(aL,aK);if(S=="comment"){return aJ}aK.lastType=S=="operator"&&(G=="++"||G=="--")?"incdec":S;return f(aK,aJ,S,G,aL)},indent:function(aP,aJ){if(aP.tokenize==aA){return a.Pass}if(aP.tokenize!=U){return 0}var aO=aJ&&aJ.charAt(0),aM=aP.lexical;if(!/^\s*else\b/.test(aJ)){for(var aL=aP.cc.length-1;aL>=0;--aL){var aQ=aP.cc[aL];if(aQ==h){aM=aM.prev}else{if(aQ!=e){break}}}}if(aM.type=="stat"&&aO=="}"){aM=aM.prev}if(A&&aM.type==")"&&aM.prev.type=="stat"){aM=aM.prev}var aN=aM.type,aK=aO==aN;if(aN=="vardef"){return aM.indented+(aP.lastType=="operator"||aP.lastType==","?aM.info+1:0)}else{if(aN=="form"&&aO=="{"){return aM.indented}else{if(aN=="form"){return aM.indented+l}else{if(aN=="stat"){return aM.indented+(ao(aP,aJ)?A||l:0)}else{if(aM.info=="switch"&&!aK&&aj.doubleIndentSwitch!=false){return aM.indented+(/^(?:case|default)\b/.test(aJ)?l:2*l)}else{if(aM.align){return aM.column+(aK?0:1)}else{return aM.indented+(aK?0:l)}}}}}}},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:z?null:"/*",blockCommentEnd:z?null:"*/",lineComment:z?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:z?"json":"javascript",jsonldMode:aB,jsonMode:z}});a.registerHelper("wordChars","javascript",/[\w$]/);a.defineMIME("text/javascript","javascript");a.defineMIME("text/ecmascript","javascript");a.defineMIME("application/javascript","javascript");a.defineMIME("application/x-javascript","javascript");a.defineMIME("application/ecmascript","javascript");a.defineMIME("application/json",{name:"javascript",json:true});a.defineMIME("application/x-json",{name:"javascript",json:true});a.defineMIME("application/ld+json",{name:"javascript",jsonld:true});a.defineMIME("text/typescript",{name:"javascript",typescript:true});a.defineMIME("application/typescript",{name:"javascript",typescript:true})});(function(a){if(typeof exports=="object"&&typeof module=="object"){a(require("../../lib/codemirror"))}else{if(typeof define=="function"&&define.amd){define(["../../lib/codemirror"],a)}else{a(CodeMirror)}}})(function(p){p.defineMode("css",function(T,G){if(!G.propertyKeywords){G=p.resolveMode("text/css")}var M=T.indentUnit,y=G.tokenHooks,w=G.documentTypes||{},S=G.mediaTypes||{},I=G.mediaFeatures||{},F=G.propertyKeywords||{},z=G.nonStandardPropertyKeywords||{},B=G.fontProperties||{},R=G.counterDescriptors||{},L=G.colorKeywords||{},O=G.valueKeywords||{},J=G.allowNested;var A,K;function U(X,Y){A=Y;return X}function W(aa,Z){var Y=aa.next();if(y[Y]){var X=y[Y](aa,Z);if(X!==false){return X}}if(Y=="@"){aa.eatWhile(/[\w\\\-]/);return U("def",aa.current())}else{if(Y=="="||(Y=="~"||Y=="|")&&aa.eat("=")){return U(null,"compare")}else{if(Y=='"'||Y=="'"){Z.tokenize=H(Y);return Z.tokenize(aa,Z)}else{if(Y=="#"){aa.eatWhile(/[\w\\\-]/);return U("atom","hash")}else{if(Y=="!"){aa.match(/^\s*\w*/);return U("keyword","important")}else{if(/\d/.test(Y)||Y=="."&&aa.eat(/\d/)){aa.eatWhile(/[\w.%]/);return U("number","unit")}else{if(Y==="-"){if(/[\d.]/.test(aa.peek())){aa.eatWhile(/[\w.%]/);return U("number","unit")}else{if(aa.match(/^-[\w\\\-]+/)){aa.eatWhile(/[\w\\\-]/);if(aa.match(/^\s*:/,false)){return U("variable-2","variable-definition")}return U("variable-2","variable")}else{if(aa.match(/^\w+-/)){return U("meta","meta")}}}}else{if(/[,+>*\/]/.test(Y)){return U(null,"select-op")}else{if(Y=="."&&aa.match(/^-?[_a-z][_a-z0-9-]*/i)){return U("qualifier","qualifier")}else{if(/[:;{}\[\]\(\)]/.test(Y)){return U(null,Y)}else{if((Y=="u"&&aa.match(/rl(-prefix)?\(/))||(Y=="d"&&aa.match("omain("))||(Y=="r"&&aa.match("egexp("))){aa.backUp(1);Z.tokenize=V;return U("property","word")}else{if(/[\w\\\-]/.test(Y)){aa.eatWhile(/[\w\\\-]/);return U("property","word")}else{return U(null,null)}}}}}}}}}}}}}function H(X){return function(ab,Z){var aa=false,Y;while((Y=ab.next())!=null){if(Y==X&&!aa){if(X==")"){ab.backUp(1)}break}aa=!aa&&Y=="\\"}if(Y==X||!aa&&X!=")"){Z.tokenize=null}return U("string","string")}}function V(Y,X){Y.next();if(!Y.match(/\s*[\"\')]/,false)){X.tokenize=H(")")}else{X.tokenize=null}return U(null,"(")}function N(Y,X,Z){this.type=Y;this.indent=X;this.prev=Z}function D(Y,Z,X){Y.context=new N(X,Z.indentation()+M,Y.context);return X}function P(X){X.context=X.context.prev;return X.context.type}function x(X,Z,Y){return C[Y.context.type](X,Z,Y)}function Q(Y,aa,Z,ab){for(var X=ab||1;X>0;X--){Z.context=Z.context.prev}return x(Y,aa,Z)}function E(Y){var X=Y.current().toLowerCase();if(O.hasOwnProperty(X)){K="atom"}else{if(L.hasOwnProperty(X)){K="keyword"}else{K="variable"}}}var C={};C.top=function(X,Z,Y){if(X=="{"){return D(Y,Z,"block")}else{if(X=="}"&&Y.context.prev){return P(Y)}else{if(/@(media|supports|(-moz-)?document)/.test(X)){return D(Y,Z,"atBlock")}else{if(/@(font-face|counter-style)/.test(X)){Y.stateArg=X;return"restricted_atBlock_before"}else{if(/^@(-(moz|ms|o|webkit)-)?keyframes$/.test(X)){return"keyframes"}else{if(X&&X.charAt(0)=="@"){return D(Y,Z,"at")}else{if(X=="hash"){K="builtin"}else{if(X=="word"){K="tag"}else{if(X=="variable-definition"){return"maybeprop"}else{if(X=="interpolation"){return D(Y,Z,"interpolation")}else{if(X==":"){return"pseudo"}else{if(J&&X=="("){return D(Y,Z,"parens")}}}}}}}}}}}}return Y.context.type};C.block=function(X,aa,Y){if(X=="word"){var Z=aa.current().toLowerCase();if(F.hasOwnProperty(Z)){K="property";return"maybeprop"}else{if(z.hasOwnProperty(Z)){K="string-2";return"maybeprop"}else{if(J){K=aa.match(/^\s*:(?:\s|$)/,false)?"property":"tag";return"block"}else{K+=" error";return"maybeprop"}}}}else{if(X=="meta"){return"block"}else{if(!J&&(X=="hash"||X=="qualifier")){K="error";return"block"}else{return C.top(X,aa,Y)}}}};C.maybeprop=function(X,Z,Y){if(X==":"){return D(Y,Z,"prop")}return x(X,Z,Y)};C.prop=function(X,Z,Y){if(X==";"){return P(Y)}if(X=="{"&&J){return D(Y,Z,"propBlock")}if(X=="}"||X=="{"){return Q(X,Z,Y)}if(X=="("){return D(Y,Z,"parens")}if(X=="hash"&&!/^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/.test(Z.current())){K+=" error"}else{if(X=="word"){E(Z)}else{if(X=="interpolation"){return D(Y,Z,"interpolation")}}}return"prop"};C.propBlock=function(Y,X,Z){if(Y=="}"){return P(Z)}if(Y=="word"){K="property";return"maybeprop"}return Z.context.type};C.parens=function(X,Z,Y){if(X=="{"||X=="}"){return Q(X,Z,Y)}if(X==")"){return P(Y)}if(X=="("){return D(Y,Z,"parens")}if(X=="interpolation"){return D(Y,Z,"interpolation")}if(X=="word"){E(Z)}return"parens"};C.pseudo=function(X,Z,Y){if(X=="word"){K="variable-3";return Y.context.type}return x(X,Z,Y)};C.atBlock=function(X,aa,Y){if(X=="("){return D(Y,aa,"atBlock_parens")}if(X=="}"){return Q(X,aa,Y)}if(X=="{"){return P(Y)&&D(Y,aa,J?"block":"top")}if(X=="word"){var Z=aa.current().toLowerCase();if(Z=="only"||Z=="not"||Z=="and"||Z=="or"){K="keyword"}else{if(w.hasOwnProperty(Z)){K="tag"}else{if(S.hasOwnProperty(Z)){K="attribute"}else{if(I.hasOwnProperty(Z)){K="property"}else{if(F.hasOwnProperty(Z)){K="property"}else{if(z.hasOwnProperty(Z)){K="string-2"}else{if(O.hasOwnProperty(Z)){K="atom"}else{K="error"}}}}}}}}return Y.context.type};C.atBlock_parens=function(X,Z,Y){if(X==")"){return P(Y)}if(X=="{"||X=="}"){return Q(X,Z,Y,2)}return C.atBlock(X,Z,Y)};C.restricted_atBlock_before=function(X,Z,Y){if(X=="{"){return D(Y,Z,"restricted_atBlock")}if(X=="word"&&Y.stateArg=="@counter-style"){K="variable";return"restricted_atBlock_before"}return x(X,Z,Y)};C.restricted_atBlock=function(X,Z,Y){if(X=="}"){Y.stateArg=null;return P(Y)}if(X=="word"){if((Y.stateArg=="@font-face"&&!B.hasOwnProperty(Z.current().toLowerCase()))||(Y.stateArg=="@counter-style"&&!R.hasOwnProperty(Z.current().toLowerCase()))){K="error"}else{K="property"}return"maybeprop"}return"restricted_atBlock"};C.keyframes=function(X,Z,Y){if(X=="word"){K="variable";return"keyframes"}if(X=="{"){return D(Y,Z,"top")}return x(X,Z,Y)};C.at=function(X,Z,Y){if(X==";"){return P(Y)}if(X=="{"||X=="}"){return Q(X,Z,Y)}if(X=="word"){K="tag"}else{if(X=="hash"){K="builtin"}}return"at"};C.interpolation=function(X,Z,Y){if(X=="}"){return P(Y)}if(X=="{"||X==";"){return Q(X,Z,Y)}if(X=="word"){K="variable"}else{if(X!="variable"&&X!="("&&X!=")"){K="error"}}return"interpolation"};return{startState:function(X){return{tokenize:null,state:"top",stateArg:null,context:new N("top",X||0,null)}},token:function(Z,Y){if(!Y.tokenize&&Z.eatSpace()){return null}var X=(Y.tokenize||W)(Z,Y);if(X&&typeof X=="object"){A=X[1];X=X[0]}K=X;Y.state=C[Y.state](A,Z,Y);return K},indent:function(ab,Z){var Y=ab.context,aa=Z&&Z.charAt(0);var X=Y.indent;if(Y.type=="prop"&&(aa=="}"||aa==")")){Y=Y.prev}if(Y.prev&&(aa=="}"&&(Y.type=="block"||Y.type=="top"||Y.type=="interpolation"||Y.type=="restricted_atBlock")||aa==")"&&(Y.type=="parens"||Y.type=="atBlock_parens")||aa=="{"&&(Y.type=="at"||Y.type=="atBlock"))){X=Y.indent-M;Y=Y.prev}return X},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",fold:"brace"}});function g(y){var x={};for(var w=0;w<y.length;++w){x[y[w]]=true}return x}var k=["domain","regexp","url","url-prefix"],a=g(k);var b=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],t=g(b);var v=["width","min-width","max-width","height","min-height","max-height","device-width","min-device-width","max-device-width","device-height","min-device-height","max-device-height","aspect-ratio","min-aspect-ratio","max-aspect-ratio","device-aspect-ratio","min-device-aspect-ratio","max-device-aspect-ratio","color","min-color","max-color","color-index","min-color-index","max-color-index","monochrome","min-monochrome","max-monochrome","resolution","min-resolution","max-resolution","scan","grid"],i=g(v);var d=["align-content","align-items","align-self","alignment-adjust","alignment-baseline","anchor-point","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","azimuth","backface-visibility","background","background-attachment","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","baseline-shift","binding","bleed","bookmark-label","bookmark-level","bookmark-state","bookmark-target","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","clear","clip","color","color-profile","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","content","counter-increment","counter-reset","crop","cue","cue-after","cue-before","cursor","direction","display","dominant-baseline","drop-initial-after-adjust","drop-initial-after-align","drop-initial-before-adjust","drop-initial-before-align","drop-initial-size","drop-initial-value","elevation","empty-cells","fit","fit-position","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","float-offset","flow-from","flow-into","font","font-feature-settings","font-family","font-kerning","font-language-override","font-size","font-size-adjust","font-stretch","font-style","font-synthesis","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-weight","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-position","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","inline-box-align","justify-content","left","letter-spacing","line-break","line-height","line-stacking","line-stacking-ruby","line-stacking-shift","line-stacking-strategy","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marker-offset","marks","marquee-direction","marquee-loop","marquee-play-count","marquee-speed","marquee-style","max-height","max-width","min-height","min-width","move-to","nav-down","nav-index","nav-left","nav-right","nav-up","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-style","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","page-policy","pause","pause-after","pause-before","perspective","perspective-origin","pitch","pitch-range","play-during","position","presentation-level","punctuation-trim","quotes","region-break-after","region-break-before","region-break-inside","region-fragment","rendering-intent","resize","rest","rest-after","rest-before","richness","right","rotation","rotation-point","ruby-align","ruby-overhang","ruby-position","ruby-span","shape-image-threshold","shape-inside","shape-margin","shape-outside","size","speak","speak-as","speak-header","speak-numeral","speak-punctuation","speech-rate","stress","string-set","tab-size","table-layout","target","target-name","target-new","target-position","text-align","text-align-last","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-height","text-indent","text-justify","text-outline","text-overflow","text-shadow","text-size-adjust","text-space-collapse","text-transform","text-underline-position","text-wrap","top","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","volume","white-space","widows","width","word-break","word-spacing","word-wrap","z-index","clip-path","clip-rule","mask","enable-background","filter","flood-color","flood-opacity","lighting-color","stop-color","stop-opacity","pointer-events","color-interpolation","color-interpolation-filters","color-rendering","fill","fill-opacity","fill-rule","image-rendering","marker","marker-end","marker-mid","marker-start","shape-rendering","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-rendering","baseline-shift","dominant-baseline","glyph-orientation-horizontal","glyph-orientation-vertical","text-anchor","writing-mode"],h=g(d);var m=["scrollbar-arrow-color","scrollbar-base-color","scrollbar-dark-shadow-color","scrollbar-face-color","scrollbar-highlight-color","scrollbar-shadow-color","scrollbar-3d-light-color","scrollbar-track-color","shape-inside","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","zoom"],e=g(m);var r=["font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"],f=g(r);var o=["additive-symbols","fallback","negative","pad","prefix","range","speak-as","suffix","symbols","system"],s=g(o);var c=["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"],l=g(c);var j=["above","absolute","activeborder","additive","activecaption","afar","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","amharic","amharic-abegede","antialiased","appworkspace","arabic-indic","armenian","asterisks","attr","auto","avoid","avoid-column","avoid-page","avoid-region","background","backwards","baseline","below","bidi-override","binary","bengali","blink","block","block-axis","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","bullets","button","button-bevel","buttonface","buttonhighlight","buttonshadow","buttontext","calc","cambodian","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","cjk-earthly-branch","cjk-heavenly-stem","cjk-ideographic","clear","clip","close-quote","col-resize","collapse","column","compact","condensed","contain","content","content-box","context-menu","continuous","copy","counter","counters","cover","crop","cross","crosshair","currentcolor","cursive","cyclic","dashed","decimal","decimal-leading-zero","default","default-button","destination-atop","destination-in","destination-out","destination-over","devanagari","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic","ethiopic-abegede","ethiopic-abegede-am-et","ethiopic-abegede-gez","ethiopic-abegede-ti-er","ethiopic-abegede-ti-et","ethiopic-halehame-aa-er","ethiopic-halehame-aa-et","ethiopic-halehame-am-et","ethiopic-halehame-gez","ethiopic-halehame-om-et","ethiopic-halehame-sid-et","ethiopic-halehame-so-et","ethiopic-halehame-ti-er","ethiopic-halehame-ti-et","ethiopic-halehame-tig","ethiopic-numeric","ew-resize","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fixed","flat","flex","footnotes","forwards","from","geometricPrecision","georgian","graytext","groove","gujarati","gurmukhi","hand","hangul","hangul-consonant","hebrew","help","hidden","hide","higher","highlight","highlighttext","hiragana","hiragana-iroha","horizontal","hsl","hsla","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-table","inset","inside","intrinsic","invert","italic","japanese-formal","japanese-informal","justify","kannada","katakana","katakana-iroha","keep-all","khmer","korean-hangul-formal","korean-hanja-formal","korean-hanja-informal","landscape","lao","large","larger","left","level","lighter","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-alpha","lower-armenian","lower-greek","lower-hexadecimal","lower-latin","lower-norwegian","lower-roman","lowercase","ltr","malayalam","match","matrix","matrix3d","media-controls-background","media-current-time-display","media-fullscreen-button","media-mute-button","media-play-button","media-return-to-realtime-button","media-rewind-button","media-seek-back-button","media-seek-forward-button","media-slider","media-sliderthumb","media-time-remaining-display","media-volume-slider","media-volume-slider-container","media-volume-sliderthumb","medium","menu","menulist","menulist-button","menulist-text","menulist-textfield","menutext","message-box","middle","min-intrinsic","mix","mongolian","monospace","move","multiple","myanmar","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","octal","open-quote","optimizeLegibility","optimizeSpeed","oriya","oromo","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","persian","perspective","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row-resize","rtl","run-in","running","s-resize","sans-serif","scale","scale3d","scaleX","scaleY","scaleZ","scroll","scrollbar","se-resize","searchfield","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","semi-condensed","semi-expanded","separate","serif","show","sidama","simp-chinese-formal","simp-chinese-informal","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","solid","somali","source-atop","source-in","source-out","source-over","space","spell-out","square","square-button","start","static","status-bar","stretch","stroke","sub","subpixel-antialiased","super","sw-resize","symbolic","symbols","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","tamil","telugu","text","text-bottom","text-top","textarea","textfield","thai","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","tibetan","tigre","tigrinya-er","tigrinya-er-abegede","tigrinya-et","tigrinya-et-abegede","to","top","trad-chinese-formal","trad-chinese-informal","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","up","upper-alpha","upper-armenian","upper-greek","upper-hexadecimal","upper-latin","upper-norwegian","upper-roman","uppercase","urdu","url","var","vertical","vertical-text","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","x-large","x-small","xor","xx-large","xx-small"],q=g(j);var n=k.concat(b).concat(v).concat(d).concat(m).concat(c).concat(j);p.registerHelper("hintWords","css",n);function u(z,y){var w=false,x;while((x=z.next())!=null){if(w&&x=="/"){y.tokenize=null;break}w=(x=="*")}return["comment","comment"]}p.defineMIME("text/css",{documentTypes:a,mediaTypes:t,mediaFeatures:i,propertyKeywords:h,nonStandardPropertyKeywords:e,fontProperties:f,counterDescriptors:s,colorKeywords:l,valueKeywords:q,tokenHooks:{"/":function(x,w){if(!x.eat("*")){return false}w.tokenize=u;return u(x,w)}},name:"css"});p.defineMIME("text/x-scss",{mediaTypes:t,mediaFeatures:i,propertyKeywords:h,nonStandardPropertyKeywords:e,colorKeywords:l,valueKeywords:q,fontProperties:f,allowNested:true,tokenHooks:{"/":function(x,w){if(x.eat("/")){x.skipToEnd();return["comment","comment"]}else{if(x.eat("*")){w.tokenize=u;return u(x,w)}else{return["operator","operator"]}}},":":function(w){if(w.match(/\s*\{/)){return[null,"{"]}return false},"$":function(w){w.match(/^[\w-]+/);if(w.match(/^\s*:/,false)){return["variable-2","variable-definition"]}return["variable-2","variable"]},"#":function(w){if(!w.eat("{")){return false}return[null,"interpolation"]}},name:"css",helperType:"scss"});p.defineMIME("text/x-less",{mediaTypes:t,mediaFeatures:i,propertyKeywords:h,nonStandardPropertyKeywords:e,colorKeywords:l,valueKeywords:q,fontProperties:f,allowNested:true,tokenHooks:{"/":function(x,w){if(x.eat("/")){x.skipToEnd();return["comment","comment"]}else{if(x.eat("*")){w.tokenize=u;return u(x,w)}else{return["operator","operator"]}}},"@":function(w){if(w.eat("{")){return[null,"interpolation"]}if(w.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/,false)){return false}w.eatWhile(/[\w\\\-]/);if(w.match(/^\s*:/,false)){return["variable-2","variable-definition"]}return["variable-2","variable"]},"&":function(){return["atom","atom"]}},name:"css",helperType:"less"})});(function(a){if(typeof exports=="object"&&typeof module=="object"){a(require("../../lib/codemirror"),require("../xml/xml"),require("../javascript/javascript"),require("../css/css"))}else{if(typeof define=="function"&&define.amd){define(["../../lib/codemirror","../xml/xml","../javascript/javascript","../css/css"],a)}else{a(CodeMirror)}}})(function(a){a.defineMode("htmlmixed",function(c,d){var b=a.getMode(c,{name:"xml",htmlMode:true,multilineTagIndentFactor:d.multilineTagIndentFactor,multilineTagIndentPastTag:d.multilineTagIndentPastTag});var n=a.getMode(c,"css");var l=[],k=d&&d.scriptTypes;l.push({matches:/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^$/i,mode:a.getMode(c,"javascript")});if(k){for(var e=0;e<k.length;++e){var j=k[e];l.push({matches:j.matches,mode:j.mode&&a.getMode(c,j.mode)})}}l.push({matches:/./,mode:a.getMode(c,"text/plain")});function f(t,r){var p=r.htmlState.tagName;if(p){p=p.toLowerCase()}var q=b.token(t,r.htmlState);if(p=="script"&&/\btag\b/.test(q)&&t.current()==">"){var u=t.string.slice(Math.max(0,t.pos-100),t.pos).match(/\btype\s*=\s*("[^"]+"|'[^']+'|\S+)[^<]*$/i);u=u?u[1]:"";if(u&&/[\"\']/.test(u.charAt(0))){u=u.slice(1,u.length-1)}for(var o=0;o<l.length;++o){var s=l[o];if(typeof s.matches=="string"?u==s.matches:s.matches.test(u)){if(s.mode){r.token=m;r.localMode=s.mode;r.localState=s.mode.startState&&s.mode.startState(b.indent(r.htmlState,""))}break}}}else{if(p=="style"&&/\btag\b/.test(q)&&t.current()==">"){r.token=g;r.localMode=n;r.localState=n.startState(b.indent(r.htmlState,""))}}return q}function h(r,i,o){var q=r.current();var p=q.search(i);if(p>-1){r.backUp(q.length-p)}else{if(q.match(/<\/?$/)){r.backUp(q.length);if(!r.match(i,false)){r.match(q)}}}return o}function m(o,i){if(o.match(/^<\/\s*script\s*>/i,false)){i.token=f;i.localState=i.localMode=null;return null}return h(o,/<\/\s*script\s*>/,i.localMode.token(o,i.localState))}function g(o,i){if(o.match(/^<\/\s*style\s*>/i,false)){i.token=f;i.localState=i.localMode=null;return null}return h(o,/<\/\s*style\s*>/,n.token(o,i.localState))}return{startState:function(){var i=b.startState();return{token:f,localMode:null,localState:null,htmlState:i}},copyState:function(o){if(o.localState){var i=a.copyState(o.localMode,o.localState)}return{token:o.token,localMode:o.localMode,localState:i,htmlState:a.copyState(b,o.htmlState)}},token:function(o,i){return i.token(o,i)},indent:function(o,i){if(!o.localMode||/^\s*<\//.test(i)){return b.indent(o.htmlState,i)}else{if(o.localMode.indent){return o.localMode.indent(o.localState,i)}else{return a.Pass}}},innerMode:function(i){return{state:i.localState||i.htmlState,mode:i.localMode||b}}}},"xml","javascript","css");a.defineMIME("text/html","htmlmixed")});(function(a){if(typeof exports=="object"&&typeof module=="object"){a(require("../../lib/codemirror"),require("../htmlmixed/htmlmixed"),require("../../addon/mode/multiplex"))}else{if(typeof define=="function"&&define.amd){define(["../../lib/codemirror","../htmlmixed/htmlmixed","../../addon/mode/multiplex"],a)}else{a(CodeMirror)}}})(function(a){a.defineMode("htmlembedded",function(b,c){return a.multiplexingMode(a.getMode(b,"htmlmixed"),{open:c.open||c.scriptStartRegex||"<%",close:c.close||c.scriptEndRegex||"%>",mode:a.getMode(b,c.scriptingModeSpec)})},"htmlmixed");a.defineMIME("application/x-ejs",{name:"htmlembedded",scriptingModeSpec:"javascript"});a.defineMIME("application/x-aspx",{name:"htmlembedded",scriptingModeSpec:"text/x-csharp"});a.defineMIME("application/x-jsp",{name:"htmlembedded",scriptingModeSpec:"text/x-java"});a.defineMIME("application/x-erb",{name:"htmlembedded",scriptingModeSpec:"ruby"})});
1
+ (function(a){if(typeof exports=="object"&&typeof module=="object"){a(require("../../lib/codemirror"))}else{if(typeof define=="function"&&define.amd){define(["../../lib/codemirror"],a)}else{a(CodeMirror)}}})(function(a){var b={autoSelfClosers:{area:true,base:true,br:true,col:true,command:true,embed:true,frame:true,hr:true,img:true,input:true,keygen:true,link:true,meta:true,param:true,source:true,track:true,wbr:true,menuitem:true},implicitlyClosed:{dd:true,li:true,optgroup:true,option:true,p:true,rp:true,rt:true,tbody:true,td:true,tfoot:true,th:true,tr:true},contextGrabbers:{dd:{dd:true,dt:true},dt:{dd:true,dt:true},li:{li:true},option:{option:true,optgroup:true},optgroup:{optgroup:true},p:{address:true,article:true,aside:true,blockquote:true,dir:true,div:true,dl:true,fieldset:true,footer:true,form:true,h1:true,h2:true,h3:true,h4:true,h5:true,h6:true,header:true,hgroup:true,hr:true,menu:true,nav:true,ol:true,p:true,pre:true,section:true,table:true,ul:true},rp:{rp:true,rt:true},rt:{rp:true,rt:true},tbody:{tbody:true,tfoot:true},td:{td:true,th:true},tfoot:{tbody:true},th:{td:true,th:true},thead:{tbody:true,tfoot:true},tr:{tr:true}},doNotIndent:{pre:true},allowUnquoted:true,allowMissing:true,caseFold:true};var c={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:false,allowMissing:false,caseFold:false};a.defineMode("xml",function(m,y){var r=m.indentUnit;var z={};var l=y.htmlMode?b:c;for(var f in l){z[f]=l[f]}for(var f in y){z[f]=y[f]}var g,h;function p(G,F){function D(H){F.tokenize=H;return H(G,F)}var E=G.next();if(E=="<"){if(G.eat("!")){if(G.eat("[")){if(G.match("CDATA[")){return D(x("atom","]]>"))}else{return null}}else{if(G.match("--")){return D(x("comment","-->"))}else{if(G.match("DOCTYPE",true,true)){G.eatWhile(/[\w\._\-]/);return D(A(1))}else{return null}}}}else{if(G.eat("?")){G.eatWhile(/[\w\._\-]/);F.tokenize=x("meta","?>");return"meta"}else{g=G.eat("/")?"closeTag":"openTag";F.tokenize=o;return"tag bracket"}}}else{if(E=="&"){var C;if(G.eat("#")){if(G.eat("x")){C=G.eatWhile(/[a-fA-F\d]/)&&G.eat(";")}else{C=G.eatWhile(/[\d]/)&&G.eat(";")}}else{C=G.eatWhile(/[\w\.\-:]/)&&G.eat(";")}return C?"atom":"error"}else{G.eatWhile(/[^&<]/);return null}}}p.isInText=true;function o(F,E){var D=F.next();if(D==">"||(D=="/"&&F.eat(">"))){E.tokenize=p;g=D==">"?"endTag":"selfcloseTag";return"tag bracket"}else{if(D=="="){g="equals";return null}else{if(D=="<"){E.tokenize=p;E.state=n;E.tagName=E.tagStart=null;var C=E.tokenize(F,E);return C?C+" tag error":"tag error"}else{if(/[\'\"]/.test(D)){E.tokenize=k(D);E.stringStartCol=F.column();return E.tokenize(F,E)}else{F.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/);return"word"}}}}}function k(C){var D=function(F,E){while(!F.eol()){if(F.next()==C){E.tokenize=o;break}}return"string"};D.isInAttribute=true;return D}function x(D,C){return function(F,E){while(!F.eol()){if(F.match(C)){E.tokenize=p;break}F.next()}return D}}function A(C){return function(F,E){var D;while((D=F.next())!=null){if(D=="<"){E.tokenize=A(C+1);return E.tokenize(F,E)}else{if(D==">"){if(C==1){E.tokenize=p;break}else{E.tokenize=A(C-1);return E.tokenize(F,E)}}}}return"meta"}}function t(D,C,E){this.prev=D.context;this.tagName=C;this.indent=D.indented;this.startOfLine=E;if(z.doNotIndent.hasOwnProperty(C)||(D.context&&D.context.noIndent)){this.noIndent=true}}function w(C){if(C.context){C.context=C.context.prev}}function s(E,D){var C;while(true){if(!E.context){return}C=E.context.tagName;if(!z.contextGrabbers.hasOwnProperty(C)||!z.contextGrabbers[C].hasOwnProperty(D)){return}w(E)}}function n(C,E,D){if(C=="openTag"){D.tagStart=E.column();return d}else{if(C=="closeTag"){return v}else{return n}}}function d(C,E,D){if(C=="word"){D.tagName=E.current();h="tag";return e}else{h="error";return d}}function v(D,F,E){if(D=="word"){var C=F.current();if(E.context&&E.context.tagName!=C&&z.implicitlyClosed.hasOwnProperty(E.context.tagName)){w(E)}if((E.context&&E.context.tagName==C)||z.matchClosing===false){h="tag";return u}else{h="tag error";return B}}else{h="error";return B}}function u(D,C,E){if(D!="endTag"){h="error";return u}w(E);return n}function B(C,E,D){h="error";return u(C,E,D)}function e(F,D,G){if(F=="word"){h="attribute";return j}else{if(F=="endTag"||F=="selfcloseTag"){var E=G.tagName,C=G.tagStart;G.tagName=G.tagStart=null;if(F=="selfcloseTag"||z.autoSelfClosers.hasOwnProperty(E)){s(G,E)}else{s(G,E);G.context=new t(G,E,C==G.indented)}return n}}h="error";return e}function j(C,E,D){if(C=="equals"){return q}if(!z.allowMissing){h="error"}return e(C,E,D)}function q(C,E,D){if(C=="string"){return i}if(C=="word"&&z.allowUnquoted){h="string";return e}h="error";return e(C,E,D)}function i(C,E,D){if(C=="string"){return i}return e(C,E,D)}return{startState:function(C){var D={tokenize:p,state:n,indented:C||0,tagName:null,tagStart:null,context:null};if(C!=null){D.baseIndent=C}return D},token:function(E,D){if(!D.tagName&&E.sol()){D.indented=E.indentation()}if(E.eatSpace()){return null}g=null;var C=D.tokenize(E,D);if((C||g)&&C!="comment"){h=null;D.state=D.state(g||C,E,D);if(h){C=h=="error"?C+" error":h}}return C},indent:function(H,D,G){var F=H.context;if(H.tokenize.isInAttribute){if(H.tagStart==H.indented){return H.stringStartCol+1}else{return H.indented+r}}if(F&&F.noIndent){return a.Pass}if(H.tokenize!=o&&H.tokenize!=p){return G?G.match(/^(\s*)/)[0].length:0}if(H.tagName){if(z.multilineTagIndentPastTag!==false){return H.tagStart+H.tagName.length+2}else{return H.tagStart+r*(z.multilineTagIndentFactor||1)}}if(z.alignCDATA&&/<!\[CDATA\[/.test(D)){return 0}var C=D&&/^<(\/)?([\w_:\.-]*)/.exec(D);if(C&&C[1]){while(F){if(F.tagName==C[2]){F=F.prev;break}else{if(z.implicitlyClosed.hasOwnProperty(F.tagName)){F=F.prev}else{break}}}}else{if(C){while(F){var E=z.contextGrabbers[F.tagName];if(E&&E.hasOwnProperty(C[2])){F=F.prev}else{break}}}}while(F&&F.prev&&!F.startOfLine){F=F.prev}if(F){return F.indent+r}else{return H.baseIndent||0}},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:z.htmlMode?"html":"xml",helperType:z.htmlMode?"html":"xml",skipAttribute:function(C){if(C.state==q){C.state=e}}}});a.defineMIME("text/xml","xml");a.defineMIME("application/xml","xml");if(!a.mimeModes.hasOwnProperty("text/html")){a.defineMIME("text/html",{name:"xml",htmlMode:true})}});(function(a){if(typeof exports=="object"&&typeof module=="object"){a(require("../../lib/codemirror"))}else{if(typeof define=="function"&&define.amd){define(["../../lib/codemirror"],a)}else{a(CodeMirror)}}})(function(a){function b(e,d,c){return/^(?:operator|sof|keyword c|case|new|[\[{}\(,;:]|=>)$/.test(d.lastType)||(d.lastType=="quasi"&&/\{\s*$/.test(e.string.slice(0,e.pos-(c||0))))}a.defineMode("javascript",function(ac,am){var m=ac.indentUnit;var C=am.statementIndent;var aE=am.jsonld;var B=am.json||aE;var h=am.typescript;var ax=am.wordCharacters||/[\w$\xa1-\uffff]/;var av=function(){function aU(aW){return{type:aW,style:"keyword"}}var aP=aU("keyword a"),aN=aU("keyword b"),aM=aU("keyword c");var aO=aU("operator"),aS={type:"atom",style:"atom"};var aQ={"if":aU("if"),"while":aP,"with":aP,"else":aN,"do":aN,"try":aN,"finally":aN,"return":aM,"break":aM,"continue":aM,"new":aU("new"),"delete":aM,"throw":aM,"debugger":aM,"var":aU("var"),"const":aU("var"),let:aU("var"),"function":aU("function"),"catch":aU("catch"),"for":aU("for"),"switch":aU("switch"),"case":aU("case"),"default":aU("default"),"in":aO,"typeof":aO,"instanceof":aO,"true":aS,"false":aS,"null":aS,"undefined":aS,"NaN":aS,"Infinity":aS,"this":aU("this"),"class":aU("class"),"super":aU("atom"),yield:aM,"export":aU("export"),"import":aU("import"),"extends":aM};if(h){var aV={type:"variable",style:"variable-3"};var aR={"interface":aU("class"),"implements":aM,namespace:aM,module:aU("module"),"enum":aU("module"),"public":aU("modifier"),"private":aU("modifier"),"protected":aU("modifier"),"abstract":aU("modifier"),as:aO,string:aV,number:aV,"boolean":aV,any:aV};for(var aT in aR){aQ[aT]=aR[aT]}}return aQ}();var R=/[+\-*&%=<>!?|~^]/;var au=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function H(aP){var aN=false,aM,aO=false;while((aM=aP.next())!=null){if(!aN){if(aM=="/"&&!aO){return}if(aM=="["){aO=true}else{if(aO&&aM=="]"){aO=false}}}aN=!aN&&aM=="\\"}}var U,I;function N(aO,aN,aM){U=aO;I=aM;return aN}function W(aQ,aO){var aM=aQ.next();if(aM=='"'||aM=="'"){aO.tokenize=T(aM);return aO.tokenize(aQ,aO)}else{if(aM=="."&&aQ.match(/^\d+(?:[eE][+\-]?\d+)?/)){return N("number","number")}else{if(aM=="."&&aQ.match("..")){return N("spread","meta")}else{if(/[\[\]{}\(\),;\:\.]/.test(aM)){return N(aM)}else{if(aM=="="&&aQ.eat(">")){return N("=>","operator")}else{if(aM=="0"&&aQ.eat(/x/i)){aQ.eatWhile(/[\da-f]/i);return N("number","number")}else{if(aM=="0"&&aQ.eat(/o/i)){aQ.eatWhile(/[0-7]/i);return N("number","number")}else{if(aM=="0"&&aQ.eat(/b/i)){aQ.eatWhile(/[01]/i);return N("number","number")}else{if(/\d/.test(aM)){aQ.match(/^\d*(?:\.\d*)?(?:[eE][+\-]?\d+)?/);return N("number","number")}else{if(aM=="/"){if(aQ.eat("*")){aO.tokenize=aD;return aD(aQ,aO)}else{if(aQ.eat("/")){aQ.skipToEnd();return N("comment","comment")}else{if(b(aQ,aO,1)){H(aQ);aQ.match(/^\b(([gimyu])(?![gimyu]*\2))+\b/);return N("regexp","string-2")}else{aQ.eatWhile(R);return N("operator","operator",aQ.current())}}}}else{if(aM=="`"){aO.tokenize=aF;return aF(aQ,aO)}else{if(aM=="#"){aQ.skipToEnd();return N("error","error")}else{if(R.test(aM)){aQ.eatWhile(R);return N("operator","operator",aQ.current())}else{if(ax.test(aM)){aQ.eatWhile(ax);var aP=aQ.current(),aN=av.propertyIsEnumerable(aP)&&av[aP];return(aN&&aO.lastType!=".")?N(aN.type,aN.style,aP):N("variable","variable",aP)}}}}}}}}}}}}}}}function T(aM){return function(aQ,aO){var aP=false,aN;if(aE&&aQ.peek()=="@"&&aQ.match(au)){aO.tokenize=W;return N("jsonld-keyword","meta")}while((aN=aQ.next())!=null){if(aN==aM&&!aP){break}aP=!aP&&aN=="\\"}if(!aP){aO.tokenize=W}return N("string","string")}}function aD(aP,aO){var aM=false,aN;while(aN=aP.next()){if(aN=="/"&&aM){aO.tokenize=W;break}aM=(aN=="*")}return N("comment","comment")}function aF(aP,aN){var aO=false,aM;while((aM=aP.next())!=null){if(!aO&&(aM=="`"||aM=="$"&&aP.eat("{"))){aN.tokenize=W;break}aO=!aO&&aM=="\\"}return N("quasi","string-2",aP.current())}var n="([{}])";function aA(aS,aP){if(aP.fatArrowAt){aP.fatArrowAt=null}var aO=aS.string.indexOf("=>",aS.start);if(aO<0){return}var aR=0,aN=false;for(var aT=aO-1;aT>=0;--aT){var aM=aS.string.charAt(aT);var aQ=n.indexOf(aM);if(aQ>=0&&aQ<3){if(!aR){++aT;break}if(--aR==0){break}}else{if(aQ>=3&&aQ<6){++aR}else{if(ax.test(aM)){aN=true}else{if(/["'\/]/.test(aM)){return}else{if(aN&&!aR){++aT;break}}}}}}if(aN&&!aR){aP.fatArrowAt=aT}}var c={atom:true,number:true,variable:true,string:true,regexp:true,"this":true,"jsonld-keyword":true};function L(aR,aN,aM,aQ,aO,aP){this.indented=aR;this.column=aN;this.type=aM;this.prev=aO;this.info=aP;if(aQ!=null){this.align=aQ}}function u(aP,aO){for(var aN=aP.localVars;aN;aN=aN.next){if(aN.name==aO){return true}}for(var aM=aP.context;aM;aM=aM.prev){for(var aN=aM.vars;aN;aN=aN.next){if(aN.name==aO){return true}}}}function g(aQ,aN,aM,aP,aR){var aS=aQ.cc;F.state=aQ;F.stream=aR;F.marked=null,F.cc=aS;F.style=aN;if(!aQ.lexical.hasOwnProperty("align")){aQ.lexical.align=true}while(true){var aO=aS.length?aS.pop():B?aq:aK;if(aO(aM,aP)){while(aS.length&&aS[aS.length-1].lex){aS.pop()()}if(F.marked){return F.marked}if(aM=="variable"&&u(aQ,aP)){return"variable-2"}return aN}}}var F={state:null,column:null,marked:null,cc:null};function ad(){for(var aM=arguments.length-1;aM>=0;aM--){F.cc.push(arguments[aM])}}function ai(){ad.apply(null,arguments);return true}function az(aN){function aM(aQ){for(var aP=aQ;aP;aP=aP.next){if(aP.name==aN){return true}}return false}var aO=F.state;F.marked="def";if(aO.context){if(aM(aO.localVars)){return}aO.localVars={name:aN,next:aO.localVars}}else{if(aM(aO.globalVars)){return}if(am.globalVars){aO.globalVars={name:aN,next:aO.globalVars}}}}var s={name:"this",next:{name:"arguments"}};function y(){F.state.context={prev:F.state.context,vars:F.state.localVars};F.state.localVars=s}function z(){F.state.localVars=F.state.context.vars;F.state.context=F.state.context.prev}function aI(aN,aO){var aM=function(){var aR=F.state,aP=aR.indented;if(aR.lexical.type=="stat"){aP=aR.lexical.indented}else{for(var aQ=aR.lexical;aQ&&aQ.type==")"&&aQ.align;aQ=aQ.prev){aP=aQ.indented}}aR.lexical=new L(aP,F.stream.column(),aN,null,aR.lexical,aO)};aM.lex=true;return aM}function i(){var aM=F.state;if(aM.lexical.prev){if(aM.lexical.type==")"){aM.indented=aM.lexical.indented}aM.lexical=aM.lexical.prev}}i.lex=true;function t(aM){function aN(aO){if(aO==aM){return ai()}else{if(aM==";"){return ad()}else{return ai(aN)}}}return aN}function aK(aM,aN){if(aM=="var"){return ai(aI("vardef",aN.length),e,t(";"),i)}if(aM=="keyword a"){return ai(aI("form"),aq,aK,i)}if(aM=="keyword b"){return ai(aI("form"),aK,i)}if(aM=="{"){return ai(aI("}"),A,i)}if(aM==";"){return ai()}if(aM=="if"){if(F.state.lexical.info=="else"&&F.state.cc[F.state.cc.length-1]==i){F.state.cc.pop()()}return ai(aI("form"),aq,aK,i,f)}if(aM=="function"){return ai(O)}if(aM=="for"){return ai(aI("form"),w,aK,i)}if(aM=="variable"){return ai(aI("stat"),aL)}if(aM=="switch"){return ai(aI("form"),aq,aI("}","switch"),t("{"),A,i,i)}if(aM=="case"){return ai(aq,t(":"))}if(aM=="default"){return ai(t(":"))}if(aM=="catch"){return ai(aI("form"),y,t("("),ag,t(")"),aK,i,z)}if(aM=="class"){return ai(aI("form"),Y,i)}if(aM=="export"){return ai(aI("stat"),aJ,i)}if(aM=="import"){return ai(aI("stat"),aj,i)}if(aM=="module"){return ai(aI("form"),j,aI("}"),t("{"),A,i,i)}return ad(aI("stat"),aq,t(";"),i)}function aq(aM){return ab(aM,false)}function aH(aM){return ab(aM,true)}function ab(aN,aP){if(F.state.fatArrowAt==F.stream.start){var aM=aP?P:Z;if(aN=="("){return ai(y,aI(")"),aw(j,")"),i,t("=>"),aM,z)}else{if(aN=="variable"){return ad(y,j,t("=>"),aM,z)}}}var aO=aP?k:ae;if(c.hasOwnProperty(aN)){return ai(aO)}if(aN=="function"){return ai(O,aO)}if(aN=="keyword c"){return ai(aP?an:al)}if(aN=="("){return ai(aI(")"),al,aC,t(")"),i,aO)}if(aN=="operator"||aN=="spread"){return ai(aP?aH:aq)}if(aN=="["){return ai(aI("]"),o,i,aO)}if(aN=="{"){return aB(v,"}",null,aO)}if(aN=="quasi"){return ad(S,aO)}if(aN=="new"){return ai(J(aP))}return ai()}function al(aM){if(aM.match(/[;\}\)\],]/)){return ad()}return ad(aq)}function an(aM){if(aM.match(/[;\}\)\],]/)){return ad()}return ad(aH)}function ae(aM,aN){if(aM==","){return ai(aq)}return k(aM,aN,false)}function k(aM,aO,aQ){var aN=aQ==false?ae:k;var aP=aQ==false?aq:aH;if(aM=="=>"){return ai(y,aQ?P:Z,z)}if(aM=="operator"){if(/\+\+|--/.test(aO)){return ai(aN)}if(aO=="?"){return ai(aq,t(":"),aP)}return ai(aP)}if(aM=="quasi"){return ad(S,aN)}if(aM==";"){return}if(aM=="("){return aB(aH,")","call",aN)}if(aM=="."){return ai(ao,aN)}if(aM=="["){return ai(aI("]"),al,t("]"),i,aN)}}function S(aM,aN){if(aM!="quasi"){return ad()}if(aN.slice(aN.length-2)!="${"){return ai(S)}return ai(aq,r)}function r(aM){if(aM=="}"){F.marked="string-2";F.state.tokenize=aF;return ai(S)}}function Z(aM){aA(F.stream,F.state);return ad(aM=="{"?aK:aq)}function P(aM){aA(F.stream,F.state);return ad(aM=="{"?aK:aH)}function J(aM){return function(aN){if(aN=="."){return ai(aM?p:X)}else{return ad(aM?aH:aq)}}}function X(aM,aN){if(aN=="target"){F.marked="keyword";return ai(ae)}}function p(aM,aN){if(aN=="target"){F.marked="keyword";return ai(k)}}function aL(aM){if(aM==":"){return ai(i,aK)}return ad(ae,t(";"),i)}function ao(aM){if(aM=="variable"){F.marked="property";return ai()}}function v(aM,aN){if(aM=="variable"||F.style=="keyword"){F.marked="property";if(aN=="get"||aN=="set"){return ai(K)}return ai(M)}else{if(aM=="number"||aM=="string"){F.marked=aE?"property":(F.style+" property");return ai(M)}else{if(aM=="jsonld-keyword"){return ai(M)}else{if(aM=="modifier"){return ai(v)}else{if(aM=="["){return ai(aq,t("]"),M)}else{if(aM=="spread"){return ai(aq)}}}}}}}function K(aM){if(aM!="variable"){return ad(M)}F.marked="property";return ai(O)}function M(aM){if(aM==":"){return ai(aH)}if(aM=="("){return ad(O)}}function aw(aO,aM){function aN(aQ){if(aQ==","){var aP=F.state.lexical;if(aP.info=="call"){aP.pos=(aP.pos||0)+1}return ai(aO,aN)}if(aQ==aM){return ai()}return ai(t(aM))}return function(aP){if(aP==aM){return ai()}return ad(aO,aN)}}function aB(aP,aM,aO){for(var aN=3;aN<arguments.length;aN++){F.cc.push(arguments[aN])}return ai(aI(aM,aO),aw(aP,aM),i)}function A(aM){if(aM=="}"){return ai()}return ad(aK,A)}function V(aM){if(h&&aM==":"){return ai(ah)}}function ay(aM,aN){if(aN=="="){return ai(aH)}}function ah(aM){if(aM=="variable"){F.marked="variable-3";return ai()}}function e(){return ad(j,V,af,aa)}function j(aM,aN){if(aM=="modifier"){return ai(j)}if(aM=="variable"){az(aN);return ai()}if(aM=="spread"){return ai(j)}if(aM=="["){return aB(j,"]")}if(aM=="{"){return aB(aG,"}")}}function aG(aM,aN){if(aM=="variable"&&!F.stream.match(/^\s*:/,false)){az(aN);return ai(af)}if(aM=="variable"){F.marked="property"}if(aM=="spread"){return ai(j)}if(aM=="}"){return ad()}return ai(t(":"),j,af)}function af(aM,aN){if(aN=="="){return ai(aH)}}function aa(aM){if(aM==","){return ai(e)}}function f(aM,aN){if(aM=="keyword b"&&aN=="else"){return ai(aI("form","else"),aK,i)}}function w(aM){if(aM=="("){return ai(aI(")"),G,t(")"),i)}}function G(aM){if(aM=="var"){return ai(e,t(";"),E)}if(aM==";"){return ai(E)}if(aM=="variable"){return ai(x)}return ad(aq,t(";"),E)}function x(aM,aN){if(aN=="in"||aN=="of"){F.marked="keyword";return ai(aq)}return ai(ae,E)}function E(aM,aN){if(aM==";"){return ai(D)}if(aN=="in"||aN=="of"){F.marked="keyword";return ai(aq)}return ad(aq,t(";"),D)}function D(aM){if(aM!=")"){ai(aq)}}function O(aM,aN){if(aN=="*"){F.marked="keyword";return ai(O)}if(aM=="variable"){az(aN);return ai(O)}if(aM=="("){return ai(y,aI(")"),aw(ag,")"),i,aK,z)}}function ag(aM){if(aM=="spread"){return ai(ag)}return ad(j,V,ay)}function Y(aM,aN){if(aM=="variable"){az(aN);return ai(Q)}}function Q(aM,aN){if(aN=="extends"){return ai(aq,Q)}if(aM=="{"){return ai(aI("}"),q,i)}}function q(aM,aN){if(aM=="variable"||F.style=="keyword"){if(aN=="static"){F.marked="keyword";return ai(q)}F.marked="property";if(aN=="get"||aN=="set"){return ai(d,O,q)}return ai(O,q)}if(aN=="*"){F.marked="keyword";return ai(q)}if(aM==";"){return ai(q)}if(aM=="}"){return ai()}}function d(aM){if(aM!="variable"){return ad()}F.marked="property";return ai()}function aJ(aM,aN){if(aN=="*"){F.marked="keyword";return ai(ak,t(";"))}if(aN=="default"){F.marked="keyword";return ai(aq,t(";"))}return ad(aK)}function aj(aM){if(aM=="string"){return ai()}return ad(at,ak)}function at(aM,aN){if(aM=="{"){return aB(at,"}")}if(aM=="variable"){az(aN)}if(aN=="*"){F.marked="keyword"}return ai(l)}function l(aM,aN){if(aN=="as"){F.marked="keyword";return ai(at)}}function ak(aM,aN){if(aN=="from"){F.marked="keyword";return ai(aq)}}function o(aM){if(aM=="]"){return ai()}return ad(aH,ap)}function ap(aM){if(aM=="for"){return ad(aC,t("]"))}if(aM==","){return ai(aw(an,"]"))}return ad(aw(aH,"]"))}function aC(aM){if(aM=="for"){return ai(w,aC)}if(aM=="if"){return ai(aq,aC)}}function ar(aN,aM){return aN.lastType=="operator"||aN.lastType==","||R.test(aM.charAt(0))||/[,.]/.test(aM.charAt(0))}return{startState:function(aN){var aM={tokenize:W,lastType:"sof",cc:[],lexical:new L((aN||0)-m,0,"block",false),localVars:am.localVars,context:am.localVars&&{vars:am.localVars},indented:aN||0};if(am.globalVars&&typeof am.globalVars=="object"){aM.globalVars=am.globalVars}return aM},token:function(aO,aN){if(aO.sol()){if(!aN.lexical.hasOwnProperty("align")){aN.lexical.align=false}aN.indented=aO.indentation();aA(aO,aN)}if(aN.tokenize!=aD&&aO.eatSpace()){return null}var aM=aN.tokenize(aO,aN);if(U=="comment"){return aM}aN.lastType=U=="operator"&&(I=="++"||I=="--")?"incdec":U;return g(aN,aM,U,I,aO)},indent:function(aS,aM){if(aS.tokenize==aD){return a.Pass}if(aS.tokenize!=W){return 0}var aR=aM&&aM.charAt(0),aP=aS.lexical;if(!/^\s*else\b/.test(aM)){for(var aO=aS.cc.length-1;aO>=0;--aO){var aT=aS.cc[aO];if(aT==i){aP=aP.prev}else{if(aT!=f){break}}}}if(aP.type=="stat"&&aR=="}"){aP=aP.prev}if(C&&aP.type==")"&&aP.prev.type=="stat"){aP=aP.prev}var aQ=aP.type,aN=aR==aQ;if(aQ=="vardef"){return aP.indented+(aS.lastType=="operator"||aS.lastType==","?aP.info+1:0)}else{if(aQ=="form"&&aR=="{"){return aP.indented}else{if(aQ=="form"){return aP.indented+m}else{if(aQ=="stat"){return aP.indented+(ar(aS,aM)?C||m:0)}else{if(aP.info=="switch"&&!aN&&am.doubleIndentSwitch!=false){return aP.indented+(/^(?:case|default)\b/.test(aM)?m:2*m)}else{if(aP.align){return aP.column+(aN?0:1)}else{return aP.indented+(aN?0:m)}}}}}}},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:B?null:"/*",blockCommentEnd:B?null:"*/",lineComment:B?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:B?"json":"javascript",jsonldMode:aE,jsonMode:B,expressionAllowed:b,skipExpression:function(aM){var aN=aM.cc[aM.cc.length-1];if(aN==aq||aN==aH){aM.cc.pop()}}}});a.registerHelper("wordChars","javascript",/[\w$]/);a.defineMIME("text/javascript","javascript");a.defineMIME("text/ecmascript","javascript");a.defineMIME("application/javascript","javascript");a.defineMIME("application/x-javascript","javascript");a.defineMIME("application/ecmascript","javascript");a.defineMIME("application/json",{name:"javascript",json:true});a.defineMIME("application/x-json",{name:"javascript",json:true});a.defineMIME("application/ld+json",{name:"javascript",jsonld:true});a.defineMIME("text/typescript",{name:"javascript",typescript:true});a.defineMIME("application/typescript",{name:"javascript",typescript:true})});(function(a){if(typeof exports=="object"&&typeof module=="object"){a(require("../../lib/codemirror"))}else{if(typeof define=="function"&&define.amd){define(["../../lib/codemirror"],a)}else{a(CodeMirror)}}})(function(r){r.defineMode("css",function(Y,J){var D=J.inline;if(!J.propertyKeywords){J=r.resolveMode("text/css")}var Q=Y.indentUnit,A=J.tokenHooks,y=J.documentTypes||{},X=J.mediaTypes||{},L=J.mediaFeatures||{},P=J.mediaValueKeywords||{},I=J.propertyKeywords||{},B=J.nonStandardPropertyKeywords||{},E=J.fontProperties||{},W=J.counterDescriptors||{},O=J.colorKeywords||{},S=J.valueKeywords||{},M=J.allowNested,U=J.supportsAtComponent===true;var C,N;function Z(ac,ad){C=ad;return ac}function ab(af,ae){var ad=af.next();if(A[ad]){var ac=A[ad](af,ae);if(ac!==false){return ac}}if(ad=="@"){af.eatWhile(/[\w\\\-]/);return Z("def",af.current())}else{if(ad=="="||(ad=="~"||ad=="|")&&af.eat("=")){return Z(null,"compare")}else{if(ad=='"'||ad=="'"){ae.tokenize=K(ad);return ae.tokenize(af,ae)}else{if(ad=="#"){af.eatWhile(/[\w\\\-]/);return Z("atom","hash")}else{if(ad=="!"){af.match(/^\s*\w*/);return Z("keyword","important")}else{if(/\d/.test(ad)||ad=="."&&af.eat(/\d/)){af.eatWhile(/[\w.%]/);return Z("number","unit")}else{if(ad==="-"){if(/[\d.]/.test(af.peek())){af.eatWhile(/[\w.%]/);return Z("number","unit")}else{if(af.match(/^-[\w\\\-]+/)){af.eatWhile(/[\w\\\-]/);if(af.match(/^\s*:/,false)){return Z("variable-2","variable-definition")}return Z("variable-2","variable")}else{if(af.match(/^\w+-/)){return Z("meta","meta")}}}}else{if(/[,+>*\/]/.test(ad)){return Z(null,"select-op")}else{if(ad=="."&&af.match(/^-?[_a-z][_a-z0-9-]*/i)){return Z("qualifier","qualifier")}else{if(/[:;{}\[\]\(\)]/.test(ad)){return Z(null,ad)}else{if((ad=="u"&&af.match(/rl(-prefix)?\(/))||(ad=="d"&&af.match("omain("))||(ad=="r"&&af.match("egexp("))){af.backUp(1);ae.tokenize=aa;return Z("property","word")}else{if(/[\w\\\-]/.test(ad)){af.eatWhile(/[\w\\\-]/);return Z("property","word")}else{return Z(null,null)}}}}}}}}}}}}}function K(ac){return function(ag,ae){var af=false,ad;while((ad=ag.next())!=null){if(ad==ac&&!af){if(ac==")"){ag.backUp(1)}break}af=!af&&ad=="\\"}if(ad==ac||!af&&ac!=")"){ae.tokenize=null}return Z("string","string")}}function aa(ad,ac){ad.next();if(!ad.match(/\s*[\"\')]/,false)){ac.tokenize=K(")")}else{ac.tokenize=null}return Z(null,"(")}function R(ad,ac,ae){this.type=ad;this.indent=ac;this.prev=ae}function G(ae,af,ad,ac){ae.context=new R(ad,af.indentation()+(ac===false?0:Q),ae.context);return ad}function T(ac){if(ac.context.prev){ac.context=ac.context.prev}return ac.context.type}function z(ac,ae,ad){return F[ad.context.type](ac,ae,ad)}function V(ad,af,ae,ag){for(var ac=ag||1;ac>0;ac--){ae.context=ae.context.prev}return z(ad,af,ae)}function H(ad){var ac=ad.current().toLowerCase();if(S.hasOwnProperty(ac)){N="atom"}else{if(O.hasOwnProperty(ac)){N="keyword"}else{N="variable"}}}var F={};F.top=function(ac,ae,ad){if(ac=="{"){return G(ad,ae,"block")}else{if(ac=="}"&&ad.context.prev){return T(ad)}else{if(U&&/@component/.test(ac)){return G(ad,ae,"atComponentBlock")}else{if(/^@(-moz-)?document$/.test(ac)){return G(ad,ae,"documentTypes")}else{if(/^@(media|supports|(-moz-)?document|import)$/.test(ac)){return G(ad,ae,"atBlock")}else{if(/^@(font-face|counter-style)/.test(ac)){ad.stateArg=ac;return"restricted_atBlock_before"}else{if(/^@(-(moz|ms|o|webkit)-)?keyframes$/.test(ac)){return"keyframes"}else{if(ac&&ac.charAt(0)=="@"){return G(ad,ae,"at")}else{if(ac=="hash"){N="builtin"}else{if(ac=="word"){N="tag"}else{if(ac=="variable-definition"){return"maybeprop"}else{if(ac=="interpolation"){return G(ad,ae,"interpolation")}else{if(ac==":"){return"pseudo"}else{if(M&&ac=="("){return G(ad,ae,"parens")}}}}}}}}}}}}}}return ad.context.type};F.block=function(ac,af,ad){if(ac=="word"){var ae=af.current().toLowerCase();if(I.hasOwnProperty(ae)){N="property";return"maybeprop"}else{if(B.hasOwnProperty(ae)){N="string-2";return"maybeprop"}else{if(M){N=af.match(/^\s*:(?:\s|$)/,false)?"property":"tag";return"block"}else{N+=" error";return"maybeprop"}}}}else{if(ac=="meta"){return"block"}else{if(!M&&(ac=="hash"||ac=="qualifier")){N="error";return"block"}else{return F.top(ac,af,ad)}}}};F.maybeprop=function(ac,ae,ad){if(ac==":"){return G(ad,ae,"prop")}return z(ac,ae,ad)};F.prop=function(ac,ae,ad){if(ac==";"){return T(ad)}if(ac=="{"&&M){return G(ad,ae,"propBlock")}if(ac=="}"||ac=="{"){return V(ac,ae,ad)}if(ac=="("){return G(ad,ae,"parens")}if(ac=="hash"&&!/^#([0-9a-fA-f]{3,4}|[0-9a-fA-f]{6}|[0-9a-fA-f]{8})$/.test(ae.current())){N+=" error"}else{if(ac=="word"){H(ae)}else{if(ac=="interpolation"){return G(ad,ae,"interpolation")}}}return"prop"};F.propBlock=function(ad,ac,ae){if(ad=="}"){return T(ae)}if(ad=="word"){N="property";return"maybeprop"}return ae.context.type};F.parens=function(ac,ae,ad){if(ac=="{"||ac=="}"){return V(ac,ae,ad)}if(ac==")"){return T(ad)}if(ac=="("){return G(ad,ae,"parens")}if(ac=="interpolation"){return G(ad,ae,"interpolation")}if(ac=="word"){H(ae)}return"parens"};F.pseudo=function(ac,ae,ad){if(ac=="word"){N="variable-3";return ad.context.type}return z(ac,ae,ad)};F.documentTypes=function(ac,ae,ad){if(ac=="word"&&y.hasOwnProperty(ae.current())){N="tag";return ad.context.type}else{return F.atBlock(ac,ae,ad)}};F.atBlock=function(ac,af,ad){if(ac=="("){return G(ad,af,"atBlock_parens")}if(ac=="}"||ac==";"){return V(ac,af,ad)}if(ac=="{"){return T(ad)&&G(ad,af,M?"block":"top")}if(ac=="interpolation"){return G(ad,af,"interpolation")}if(ac=="word"){var ae=af.current().toLowerCase();if(ae=="only"||ae=="not"||ae=="and"||ae=="or"){N="keyword"}else{if(X.hasOwnProperty(ae)){N="attribute"}else{if(L.hasOwnProperty(ae)){N="property"}else{if(P.hasOwnProperty(ae)){N="keyword"}else{if(I.hasOwnProperty(ae)){N="property"}else{if(B.hasOwnProperty(ae)){N="string-2"}else{if(S.hasOwnProperty(ae)){N="atom"}else{if(O.hasOwnProperty(ae)){N="keyword"}else{N="error"}}}}}}}}}return ad.context.type};F.atComponentBlock=function(ac,ae,ad){if(ac=="}"){return V(ac,ae,ad)}if(ac=="{"){return T(ad)&&G(ad,ae,M?"block":"top",false)}if(ac=="word"){N="error"}return ad.context.type};F.atBlock_parens=function(ac,ae,ad){if(ac==")"){return T(ad)}if(ac=="{"||ac=="}"){return V(ac,ae,ad,2)}return F.atBlock(ac,ae,ad)};F.restricted_atBlock_before=function(ac,ae,ad){if(ac=="{"){return G(ad,ae,"restricted_atBlock")}if(ac=="word"&&ad.stateArg=="@counter-style"){N="variable";return"restricted_atBlock_before"}return z(ac,ae,ad)};F.restricted_atBlock=function(ac,ae,ad){if(ac=="}"){ad.stateArg=null;return T(ad)}if(ac=="word"){if((ad.stateArg=="@font-face"&&!E.hasOwnProperty(ae.current().toLowerCase()))||(ad.stateArg=="@counter-style"&&!W.hasOwnProperty(ae.current().toLowerCase()))){N="error"}else{N="property"}return"maybeprop"}return"restricted_atBlock"};F.keyframes=function(ac,ae,ad){if(ac=="word"){N="variable";return"keyframes"}if(ac=="{"){return G(ad,ae,"top")}return z(ac,ae,ad)};F.at=function(ac,ae,ad){if(ac==";"){return T(ad)}if(ac=="{"||ac=="}"){return V(ac,ae,ad)}if(ac=="word"){N="tag"}else{if(ac=="hash"){N="builtin"}}return"at"};F.interpolation=function(ac,ae,ad){if(ac=="}"){return T(ad)}if(ac=="{"||ac==";"){return V(ac,ae,ad)}if(ac=="word"){N="variable"}else{if(ac!="variable"&&ac!="("&&ac!=")"){N="error"}}return"interpolation"};return{startState:function(ac){return{tokenize:null,state:D?"block":"top",stateArg:null,context:new R(D?"block":"top",ac||0,null)}},token:function(ae,ad){if(!ad.tokenize&&ae.eatSpace()){return null}var ac=(ad.tokenize||ab)(ae,ad);if(ac&&typeof ac=="object"){C=ac[1];ac=ac[0]}N=ac;ad.state=F[ad.state](C,ae,ad);return N},indent:function(ag,ae){var ad=ag.context,af=ae&&ae.charAt(0);var ac=ad.indent;if(ad.type=="prop"&&(af=="}"||af==")")){ad=ad.prev}if(ad.prev){if(af=="}"&&(ad.type=="block"||ad.type=="top"||ad.type=="interpolation"||ad.type=="restricted_atBlock")){ad=ad.prev;ac=ad.indent}else{if(af==")"&&(ad.type=="parens"||ad.type=="atBlock_parens")||af=="{"&&(ad.type=="at"||ad.type=="atBlock")){ac=Math.max(0,ad.indent-Q);ad=ad.prev}}}return ac},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",fold:"brace"}});function g(A){var z={};for(var y=0;y<A.length;++y){z[A[y]]=true}return z}var k=["domain","regexp","url","url-prefix"],a=g(k);var b=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],v=g(b);var x=["width","min-width","max-width","height","min-height","max-height","device-width","min-device-width","max-device-width","device-height","min-device-height","max-device-height","aspect-ratio","min-aspect-ratio","max-aspect-ratio","device-aspect-ratio","min-device-aspect-ratio","max-device-aspect-ratio","color","min-color","max-color","color-index","min-color-index","max-color-index","monochrome","min-monochrome","max-monochrome","resolution","min-resolution","max-resolution","scan","grid","orientation","device-pixel-ratio","min-device-pixel-ratio","max-device-pixel-ratio","pointer","any-pointer","hover","any-hover"],i=g(x);var l=["landscape","portrait","none","coarse","fine","on-demand","hover","interlace","progressive"],p=g(l);var d=["align-content","align-items","align-self","alignment-adjust","alignment-baseline","anchor-point","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","azimuth","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","baseline-shift","binding","bleed","bookmark-label","bookmark-level","bookmark-state","bookmark-target","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","clear","clip","color","color-profile","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","content","counter-increment","counter-reset","crop","cue","cue-after","cue-before","cursor","direction","display","dominant-baseline","drop-initial-after-adjust","drop-initial-after-align","drop-initial-before-adjust","drop-initial-before-align","drop-initial-size","drop-initial-value","elevation","empty-cells","fit","fit-position","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","float-offset","flow-from","flow-into","font","font-feature-settings","font-family","font-kerning","font-language-override","font-size","font-size-adjust","font-stretch","font-style","font-synthesis","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-weight","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-position","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","inline-box-align","justify-content","left","letter-spacing","line-break","line-height","line-stacking","line-stacking-ruby","line-stacking-shift","line-stacking-strategy","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marker-offset","marks","marquee-direction","marquee-loop","marquee-play-count","marquee-speed","marquee-style","max-height","max-width","min-height","min-width","move-to","nav-down","nav-index","nav-left","nav-right","nav-up","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-style","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","page-policy","pause","pause-after","pause-before","perspective","perspective-origin","pitch","pitch-range","play-during","position","presentation-level","punctuation-trim","quotes","region-break-after","region-break-before","region-break-inside","region-fragment","rendering-intent","resize","rest","rest-after","rest-before","richness","right","rotation","rotation-point","ruby-align","ruby-overhang","ruby-position","ruby-span","shape-image-threshold","shape-inside","shape-margin","shape-outside","size","speak","speak-as","speak-header","speak-numeral","speak-punctuation","speech-rate","stress","string-set","tab-size","table-layout","target","target-name","target-new","target-position","text-align","text-align-last","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-height","text-indent","text-justify","text-outline","text-overflow","text-shadow","text-size-adjust","text-space-collapse","text-transform","text-underline-position","text-wrap","top","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","volume","white-space","widows","width","word-break","word-spacing","word-wrap","z-index","clip-path","clip-rule","mask","enable-background","filter","flood-color","flood-opacity","lighting-color","stop-color","stop-opacity","pointer-events","color-interpolation","color-interpolation-filters","color-rendering","fill","fill-opacity","fill-rule","image-rendering","marker","marker-end","marker-mid","marker-start","shape-rendering","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-rendering","baseline-shift","dominant-baseline","glyph-orientation-horizontal","glyph-orientation-vertical","text-anchor","writing-mode"],h=g(d);var n=["scrollbar-arrow-color","scrollbar-base-color","scrollbar-dark-shadow-color","scrollbar-face-color","scrollbar-highlight-color","scrollbar-shadow-color","scrollbar-3d-light-color","scrollbar-track-color","shape-inside","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","zoom"],e=g(n);var t=["font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"],f=g(t);var q=["additive-symbols","fallback","negative","pad","prefix","range","speak-as","suffix","symbols","system"],u=g(q);var c=["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"],m=g(c);var j=["above","absolute","activeborder","additive","activecaption","afar","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","amharic","amharic-abegede","antialiased","appworkspace","arabic-indic","armenian","asterisks","attr","auto","avoid","avoid-column","avoid-page","avoid-region","background","backwards","baseline","below","bidi-override","binary","bengali","blink","block","block-axis","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","bullets","button","button-bevel","buttonface","buttonhighlight","buttonshadow","buttontext","calc","cambodian","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","cjk-earthly-branch","cjk-heavenly-stem","cjk-ideographic","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","contain","content","content-box","context-menu","continuous","copy","counter","counters","cover","crop","cross","crosshair","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","destination-atop","destination-in","destination-out","destination-over","devanagari","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic","ethiopic-abegede","ethiopic-abegede-am-et","ethiopic-abegede-gez","ethiopic-abegede-ti-er","ethiopic-abegede-ti-et","ethiopic-halehame-aa-er","ethiopic-halehame-aa-et","ethiopic-halehame-am-et","ethiopic-halehame-gez","ethiopic-halehame-om-et","ethiopic-halehame-sid-et","ethiopic-halehame-so-et","ethiopic-halehame-ti-er","ethiopic-halehame-ti-et","ethiopic-halehame-tig","ethiopic-numeric","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","georgian","graytext","groove","gujarati","gurmukhi","hand","hangul","hangul-consonant","hard-light","hebrew","help","hidden","hide","higher","highlight","highlighttext","hiragana","hiragana-iroha","horizontal","hsl","hsla","hue","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-table","inset","inside","intrinsic","invert","italic","japanese-formal","japanese-informal","justify","kannada","katakana","katakana-iroha","keep-all","khmer","korean-hangul-formal","korean-hanja-formal","korean-hanja-informal","landscape","lao","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-alpha","lower-armenian","lower-greek","lower-hexadecimal","lower-latin","lower-norwegian","lower-roman","lowercase","ltr","luminosity","malayalam","match","matrix","matrix3d","media-controls-background","media-current-time-display","media-fullscreen-button","media-mute-button","media-play-button","media-return-to-realtime-button","media-rewind-button","media-seek-back-button","media-seek-forward-button","media-slider","media-sliderthumb","media-time-remaining-display","media-volume-slider","media-volume-slider-container","media-volume-sliderthumb","medium","menu","menulist","menulist-button","menulist-text","menulist-textfield","menutext","message-box","middle","min-intrinsic","mix","mongolian","monospace","move","multiple","multiply","myanmar","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","octal","open-quote","optimizeLegibility","optimizeSpeed","oriya","oromo","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","persian","perspective","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","se-resize","searchfield","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","semi-condensed","semi-expanded","separate","serif","show","sidama","simp-chinese-formal","simp-chinese-informal","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","somali","source-atop","source-in","source-out","source-over","space","space-around","space-between","spell-out","square","square-button","start","static","status-bar","stretch","stroke","sub","subpixel-antialiased","super","sw-resize","symbolic","symbols","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","tamil","telugu","text","text-bottom","text-top","textarea","textfield","thai","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","tibetan","tigre","tigrinya-er","tigrinya-er-abegede","tigrinya-et","tigrinya-et-abegede","to","top","trad-chinese-formal","trad-chinese-informal","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","up","upper-alpha","upper-armenian","upper-greek","upper-hexadecimal","upper-latin","upper-norwegian","upper-roman","uppercase","urdu","url","var","vertical","vertical-text","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"],s=g(j);var o=k.concat(b).concat(x).concat(l).concat(d).concat(n).concat(c).concat(j);r.registerHelper("hintWords","css",o);function w(B,A){var y=false,z;while((z=B.next())!=null){if(y&&z=="/"){A.tokenize=null;break}y=(z=="*")}return["comment","comment"]}r.defineMIME("text/css",{documentTypes:a,mediaTypes:v,mediaFeatures:i,mediaValueKeywords:p,propertyKeywords:h,nonStandardPropertyKeywords:e,fontProperties:f,counterDescriptors:u,colorKeywords:m,valueKeywords:s,tokenHooks:{"/":function(z,y){if(!z.eat("*")){return false}y.tokenize=w;return w(z,y)}},name:"css"});r.defineMIME("text/x-scss",{mediaTypes:v,mediaFeatures:i,mediaValueKeywords:p,propertyKeywords:h,nonStandardPropertyKeywords:e,colorKeywords:m,valueKeywords:s,fontProperties:f,allowNested:true,tokenHooks:{"/":function(z,y){if(z.eat("/")){z.skipToEnd();return["comment","comment"]}else{if(z.eat("*")){y.tokenize=w;return w(z,y)}else{return["operator","operator"]}}},":":function(y){if(y.match(/\s*\{/)){return[null,"{"]}return false},"$":function(y){y.match(/^[\w-]+/);if(y.match(/^\s*:/,false)){return["variable-2","variable-definition"]}return["variable-2","variable"]},"#":function(y){if(!y.eat("{")){return false}return[null,"interpolation"]}},name:"css",helperType:"scss"});r.defineMIME("text/x-less",{mediaTypes:v,mediaFeatures:i,mediaValueKeywords:p,propertyKeywords:h,nonStandardPropertyKeywords:e,colorKeywords:m,valueKeywords:s,fontProperties:f,allowNested:true,tokenHooks:{"/":function(z,y){if(z.eat("/")){z.skipToEnd();return["comment","comment"]}else{if(z.eat("*")){y.tokenize=w;return w(z,y)}else{return["operator","operator"]}}},"@":function(y){if(y.eat("{")){return[null,"interpolation"]}if(y.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/,false)){return false}y.eatWhile(/[\w\\\-]/);if(y.match(/^\s*:/,false)){return["variable-2","variable-definition"]}return["variable-2","variable"]},"&":function(){return["atom","atom"]}},name:"css",helperType:"less"});r.defineMIME("text/x-gss",{documentTypes:a,mediaTypes:v,mediaFeatures:i,propertyKeywords:h,nonStandardPropertyKeywords:e,fontProperties:f,counterDescriptors:u,colorKeywords:m,valueKeywords:s,supportsAtComponent:true,tokenHooks:{"/":function(z,y){if(!z.eat("*")){return false}y.tokenize=w;return w(z,y)}},name:"css",helperType:"gss"})});(function(a){if(typeof exports=="object"&&typeof module=="object"){a(require("../../lib/codemirror"),require("../xml/xml"),require("../javascript/javascript"),require("../css/css"))}else{if(typeof define=="function"&&define.amd){define(["../../lib/codemirror","../xml/xml","../javascript/javascript","../css/css"],a)}else{a(CodeMirror)}}})(function(d){var g={script:[["lang",/(javascript|babel)/i,"javascript"],["type",/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^$/i,"javascript"],["type",/./,"text/plain"],[null,null,"javascript"]],style:[["lang",/^css$/i,"css"],["type",/^(text\/)?(x-)?(stylesheet|css)$/i,"css"],["type",/./,"text/plain"],[null,null,"css"]]};function f(n,j,k){var m=n.current(),l=m.search(j);if(l>-1){n.backUp(m.length-l)}else{if(m.match(/<\/?$/)){n.backUp(m.length);if(!n.match(j,false)){n.match(m)}}}return k}var e={};function c(j){var k=e[j];if(k){return k}return e[j]=new RegExp("\\s+"+j+"\\s*=\\s*('|\")?([^'\"]+)('|\")?\\s*")}function a(l,j){var k=l.match(c(j));return k?k[2]:""}function i(k,j){return new RegExp((j?"^":"")+"</s*"+k+"s*>","i")}function h(o,n){for(var j in o){var k=n[j]||(n[j]=[]);var m=o[j];for(var l=m.length-1;l>=0;l--){k.unshift(m[l])}}}function b(l,m){for(var k=0;k<l.length;k++){var j=l[k];if(!j[0]||j[1].test(a(m,j[0]))){return j[2]}}}d.defineMode("htmlmixed",function(k,o){var q=d.getMode(k,{name:"xml",htmlMode:true,multilineTagIndentFactor:o.multilineTagIndentFactor,multilineTagIndentPastTag:o.multilineTagIndentPastTag});var j={};var p=o&&o.tags,n=o&&o.scriptTypes;h(g,j);if(p){h(p,j)}if(n){for(var m=n.length-1;m>=0;m--){j.script.unshift(["type",n[m].matches,n[m].mode])}}function l(z,r){var s=q.token(z,r.htmlState),A=/\btag\b/.test(s),u;if(A&&!/[<>\s\/]/.test(z.current())&&(u=r.htmlState.tagName&&r.htmlState.tagName.toLowerCase())&&j.hasOwnProperty(u)){r.inTag=u+" "}else{if(r.inTag&&A&&/>$/.test(z.current())){var t=/^([\S]+) (.*)/.exec(r.inTag);r.inTag=null;var y=z.current()==">"&&b(j[t[1]],t[2]);var x=d.getMode(k,y);var w=i(t[1],true),v=i(t[1],false);r.token=function(C,B){if(C.match(w,false)){B.token=l;B.localState=B.localMode=null;return null}return f(C,v,B.localMode.token(C,B.localState))};r.localMode=x;r.localState=d.startState(x,q.indent(r.htmlState,""))}else{if(r.inTag){r.inTag+=z.current();if(z.eol()){r.inTag+=" "}}}}return s}return{startState:function(){var r=q.startState();return{token:l,inTag:null,localMode:null,localState:null,htmlState:r}},copyState:function(s){var r;if(s.localState){r=d.copyState(s.localMode,s.localState)}return{token:s.token,inTag:s.inTag,localMode:s.localMode,localState:r,htmlState:d.copyState(q,s.htmlState)}},token:function(s,r){return r.token(s,r)},indent:function(s,r){if(!s.localMode||/^\s*<\//.test(r)){return q.indent(s.htmlState,r)}else{if(s.localMode.indent){return s.localMode.indent(s.localState,r)}else{return d.Pass}}},innerMode:function(r){return{state:r.localState||r.htmlState,mode:r.localMode||q}}}},"xml","javascript","css");d.defineMIME("text/html","htmlmixed")});(function(a){if(typeof exports=="object"&&typeof module=="object"){a(require("../../lib/codemirror"),require("../htmlmixed/htmlmixed"),require("../../addon/mode/multiplex"))}else{if(typeof define=="function"&&define.amd){define(["../../lib/codemirror","../htmlmixed/htmlmixed","../../addon/mode/multiplex"],a)}else{a(CodeMirror)}}})(function(a){a.defineMode("htmlembedded",function(b,c){return a.multiplexingMode(a.getMode(b,"htmlmixed"),{open:c.open||c.scriptStartRegex||"<%",close:c.close||c.scriptEndRegex||"%>",mode:a.getMode(b,c.scriptingModeSpec)})},"htmlmixed");a.defineMIME("application/x-ejs",{name:"htmlembedded",scriptingModeSpec:"javascript"});a.defineMIME("application/x-aspx",{name:"htmlembedded",scriptingModeSpec:"text/x-csharp"});a.defineMIME("application/x-jsp",{name:"htmlembedded",scriptingModeSpec:"text/x-java"});a.defineMIME("application/x-erb",{name:"htmlembedded",scriptingModeSpec:"ruby"})});
@@ -1 +1 @@
1
- (function(a){if(typeof exports=="object"&&typeof module=="object"){a(require("../../lib/codemirror"))}else{if(typeof define=="function"&&define.amd){define(["../../lib/codemirror"],a)}else{a(CodeMirror)}}})(function(a){a.defineMode("javascript",function(Z,aj){var l=Z.indentUnit;var A=aj.statementIndent;var aB=aj.jsonld;var z=aj.json||aB;var g=aj.typescript;var au=aj.wordCharacters||/[\w$\xa1-\uffff]/;var ar=function(){function aR(aT){return{type:aT,style:"keyword"}}var aM=aR("keyword a"),aK=aR("keyword b"),aJ=aR("keyword c");var aL=aR("operator"),aP={type:"atom",style:"atom"};var aN={"if":aR("if"),"while":aM,"with":aM,"else":aK,"do":aK,"try":aK,"finally":aK,"return":aJ,"break":aJ,"continue":aJ,"new":aJ,"delete":aJ,"throw":aJ,"debugger":aJ,"var":aR("var"),"const":aR("var"),let:aR("var"),"function":aR("function"),"catch":aR("catch"),"for":aR("for"),"switch":aR("switch"),"case":aR("case"),"default":aR("default"),"in":aL,"typeof":aL,"instanceof":aL,"true":aP,"false":aP,"null":aP,"undefined":aP,"NaN":aP,"Infinity":aP,"this":aR("this"),module:aR("module"),"class":aR("class"),"super":aR("atom"),yield:aJ,"export":aR("export"),"import":aR("import"),"extends":aJ};if(g){var aS={type:"variable",style:"variable-3"};var aO={"interface":aR("interface"),"extends":aR("extends"),constructor:aR("constructor"),"public":aR("public"),"private":aR("private"),"protected":aR("protected"),"static":aR("static"),string:aS,number:aS,bool:aS,any:aS};for(var aQ in aO){aN[aQ]=aO[aQ]}}return aN}();var P=/[+\-*&%=<>!?|~^]/;var aq=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function F(aM){var aK=false,aJ,aL=false;while((aJ=aM.next())!=null){if(!aK){if(aJ=="/"&&!aL){return}if(aJ=="["){aL=true}else{if(aL&&aJ=="]"){aL=false}}}aK=!aK&&aJ=="\\"}}var S,G;function L(aL,aK,aJ){S=aL;G=aJ;return aK}function U(aN,aL){var aJ=aN.next();if(aJ=='"'||aJ=="'"){aL.tokenize=R(aJ);return aL.tokenize(aN,aL)}else{if(aJ=="."&&aN.match(/^\d+(?:[eE][+\-]?\d+)?/)){return L("number","number")}else{if(aJ=="."&&aN.match("..")){return L("spread","meta")}else{if(/[\[\]{}\(\),;\:\.]/.test(aJ)){return L(aJ)}else{if(aJ=="="&&aN.eat(">")){return L("=>","operator")}else{if(aJ=="0"&&aN.eat(/x/i)){aN.eatWhile(/[\da-f]/i);return L("number","number")}else{if(/\d/.test(aJ)){aN.match(/^\d*(?:\.\d*)?(?:[eE][+\-]?\d+)?/);return L("number","number")}else{if(aJ=="/"){if(aN.eat("*")){aL.tokenize=aA;return aA(aN,aL)}else{if(aN.eat("/")){aN.skipToEnd();return L("comment","comment")}else{if(aL.lastType=="operator"||aL.lastType=="keyword c"||aL.lastType=="sof"||/^[\[{}\(,;:]$/.test(aL.lastType)){F(aN);aN.match(/^\b(([gimyu])(?![gimyu]*\2))+\b/);return L("regexp","string-2")}else{aN.eatWhile(P);return L("operator","operator",aN.current())}}}}else{if(aJ=="`"){aL.tokenize=aC;return aC(aN,aL)}else{if(aJ=="#"){aN.skipToEnd();return L("error","error")}else{if(P.test(aJ)){aN.eatWhile(P);return L("operator","operator",aN.current())}else{if(au.test(aJ)){aN.eatWhile(au);var aM=aN.current(),aK=ar.propertyIsEnumerable(aM)&&ar[aM];return(aK&&aL.lastType!=".")?L(aK.type,aK.style,aM):L("variable","variable",aM)}}}}}}}}}}}}}function R(aJ){return function(aN,aL){var aM=false,aK;if(aB&&aN.peek()=="@"&&aN.match(aq)){aL.tokenize=U;return L("jsonld-keyword","meta")}while((aK=aN.next())!=null){if(aK==aJ&&!aM){break}aM=!aM&&aK=="\\"}if(!aM){aL.tokenize=U}return L("string","string")}}function aA(aM,aL){var aJ=false,aK;while(aK=aM.next()){if(aK=="/"&&aJ){aL.tokenize=U;break}aJ=(aK=="*")}return L("comment","comment")}function aC(aM,aK){var aL=false,aJ;while((aJ=aM.next())!=null){if(!aL&&(aJ=="`"||aJ=="$"&&aM.eat("{"))){aK.tokenize=U;break}aL=!aL&&aJ=="\\"}return L("quasi","string-2",aM.current())}var m="([{}])";function ax(aP,aM){if(aM.fatArrowAt){aM.fatArrowAt=null}var aL=aP.string.indexOf("=>",aP.start);if(aL<0){return}var aO=0,aK=false;for(var aQ=aL-1;aQ>=0;--aQ){var aJ=aP.string.charAt(aQ);var aN=m.indexOf(aJ);if(aN>=0&&aN<3){if(!aO){++aQ;break}if(--aO==0){break}}else{if(aN>=3&&aN<6){++aO}else{if(au.test(aJ)){aK=true}else{if(/["'\/]/.test(aJ)){return}else{if(aK&&!aO){++aQ;break}}}}}}if(aK&&!aO){aM.fatArrowAt=aQ}}var b={atom:true,number:true,variable:true,string:true,regexp:true,"this":true,"jsonld-keyword":true};function J(aO,aK,aJ,aN,aL,aM){this.indented=aO;this.column=aK;this.type=aJ;this.prev=aL;this.info=aM;if(aN!=null){this.align=aN}}function s(aM,aL){for(var aK=aM.localVars;aK;aK=aK.next){if(aK.name==aL){return true}}for(var aJ=aM.context;aJ;aJ=aJ.prev){for(var aK=aJ.vars;aK;aK=aK.next){if(aK.name==aL){return true}}}}function f(aN,aK,aJ,aM,aO){var aP=aN.cc;D.state=aN;D.stream=aO;D.marked=null,D.cc=aP;D.style=aK;if(!aN.lexical.hasOwnProperty("align")){aN.lexical.align=true}while(true){var aL=aP.length?aP.pop():z?an:aH;if(aL(aJ,aM)){while(aP.length&&aP[aP.length-1].lex){aP.pop()()}if(D.marked){return D.marked}if(aJ=="variable"&&s(aN,aM)){return"variable-2"}return aK}}}var D={state:null,column:null,marked:null,cc:null};function aa(){for(var aJ=arguments.length-1;aJ>=0;aJ--){D.cc.push(arguments[aJ])}}function ae(){aa.apply(null,arguments);return true}function aw(aK){function aJ(aN){for(var aM=aN;aM;aM=aM.next){if(aM.name==aK){return true}}return false}var aL=D.state;if(aL.context){D.marked="def";if(aJ(aL.localVars)){return}aL.localVars={name:aK,next:aL.localVars}}else{if(aJ(aL.globalVars)){return}if(aj.globalVars){aL.globalVars={name:aK,next:aL.globalVars}}}}var q={name:"this",next:{name:"arguments"}};function w(){D.state.context={prev:D.state.context,vars:D.state.localVars};D.state.localVars=q}function x(){D.state.localVars=D.state.context.vars;D.state.context=D.state.context.prev}function aF(aK,aL){var aJ=function(){var aO=D.state,aM=aO.indented;if(aO.lexical.type=="stat"){aM=aO.lexical.indented}else{for(var aN=aO.lexical;aN&&aN.type==")"&&aN.align;aN=aN.prev){aM=aN.indented}}aO.lexical=new J(aM,D.stream.column(),aK,null,aO.lexical,aL)};aJ.lex=true;return aJ}function h(){var aJ=D.state;if(aJ.lexical.prev){if(aJ.lexical.type==")"){aJ.indented=aJ.lexical.indented}aJ.lexical=aJ.lexical.prev}}h.lex=true;function r(aJ){function aK(aL){if(aL==aJ){return ae()}else{if(aJ==";"){return aa()}else{return ae(aK)}}}return aK}function aH(aJ,aK){if(aJ=="var"){return ae(aF("vardef",aK.length),d,r(";"),h)}if(aJ=="keyword a"){return ae(aF("form"),an,aH,h)}if(aJ=="keyword b"){return ae(aF("form"),aH,h)}if(aJ=="{"){return ae(aF("}"),y,h)}if(aJ==";"){return ae()}if(aJ=="if"){if(D.state.lexical.info=="else"&&D.state.cc[D.state.cc.length-1]==h){D.state.cc.pop()()}return ae(aF("form"),an,aH,h,e)}if(aJ=="function"){return ae(M)}if(aJ=="for"){return ae(aF("form"),u,aH,h)}if(aJ=="variable"){return ae(aF("stat"),aI)}if(aJ=="switch"){return ae(aF("form"),an,aF("}","switch"),r("{"),y,h,h)}if(aJ=="case"){return ae(an,r(":"))}if(aJ=="default"){return ae(r(":"))}if(aJ=="catch"){return ae(aF("form"),w,r("("),af,r(")"),aH,h,x)}if(aJ=="module"){return ae(aF("form"),w,H,x,h)}if(aJ=="class"){return ae(aF("form"),V,h)}if(aJ=="export"){return ae(aF("form"),aG,h)}if(aJ=="import"){return ae(aF("form"),ag,h)}return aa(aF("stat"),an,r(";"),h)}function an(aJ){return Y(aJ,false)}function aE(aJ){return Y(aJ,true)}function Y(aK,aM){if(D.state.fatArrowAt==D.stream.start){var aJ=aM?N:W;if(aK=="("){return ae(w,aF(")"),at(i,")"),h,r("=>"),aJ,x)}else{if(aK=="variable"){return aa(w,i,r("=>"),aJ,x)}}}var aL=aM?j:ab;if(b.hasOwnProperty(aK)){return ae(aL)}if(aK=="function"){return ae(M,aL)}if(aK=="keyword c"){return ae(aM?ak:ai)}if(aK=="("){return ae(aF(")"),ai,az,r(")"),h,aL)}if(aK=="operator"||aK=="spread"){return ae(aM?aE:an)}if(aK=="["){return ae(aF("]"),n,h,aL)}if(aK=="{"){return ay(t,"}",null,aL)}if(aK=="quasi"){return aa(Q,aL)}return ae()}function ai(aJ){if(aJ.match(/[;\}\)\],]/)){return aa()}return aa(an)}function ak(aJ){if(aJ.match(/[;\}\)\],]/)){return aa()}return aa(aE)}function ab(aJ,aK){if(aJ==","){return ae(an)}return j(aJ,aK,false)}function j(aJ,aL,aN){var aK=aN==false?ab:j;var aM=aN==false?an:aE;if(aJ=="=>"){return ae(w,aN?N:W,x)}if(aJ=="operator"){if(/\+\+|--/.test(aL)){return ae(aK)}if(aL=="?"){return ae(an,r(":"),aM)}return ae(aM)}if(aJ=="quasi"){return aa(Q,aK)}if(aJ==";"){return}if(aJ=="("){return ay(aE,")","call",aK)}if(aJ=="."){return ae(al,aK)}if(aJ=="["){return ae(aF("]"),ai,r("]"),h,aK)}}function Q(aJ,aK){if(aJ!="quasi"){return aa()}if(aK.slice(aK.length-2)!="${"){return ae(Q)}return ae(an,p)}function p(aJ){if(aJ=="}"){D.marked="string-2";D.state.tokenize=aC;return ae(Q)}}function W(aJ){ax(D.stream,D.state);return aa(aJ=="{"?aH:an)}function N(aJ){ax(D.stream,D.state);return aa(aJ=="{"?aH:aE)}function aI(aJ){if(aJ==":"){return ae(h,aH)}return aa(ab,r(";"),h)}function al(aJ){if(aJ=="variable"){D.marked="property";return ae()}}function t(aJ,aK){if(aJ=="variable"||D.style=="keyword"){D.marked="property";if(aK=="get"||aK=="set"){return ae(I)}return ae(K)}else{if(aJ=="number"||aJ=="string"){D.marked=aB?"property":(D.style+" property");return ae(K)}else{if(aJ=="jsonld-keyword"){return ae(K)}else{if(aJ=="["){return ae(an,r("]"),K)}}}}}function I(aJ){if(aJ!="variable"){return aa(K)}D.marked="property";return ae(M)}function K(aJ){if(aJ==":"){return ae(aE)}if(aJ=="("){return aa(M)}}function at(aL,aJ){function aK(aN){if(aN==","){var aM=D.state.lexical;if(aM.info=="call"){aM.pos=(aM.pos||0)+1}return ae(aL,aK)}if(aN==aJ){return ae()}return ae(r(aJ))}return function(aM){if(aM==aJ){return ae()}return aa(aL,aK)}}function ay(aM,aJ,aL){for(var aK=3;aK<arguments.length;aK++){D.cc.push(arguments[aK])}return ae(aF(aJ,aL),at(aM,aJ),h)}function y(aJ){if(aJ=="}"){return ae()}return aa(aH,y)}function T(aJ){if(g&&aJ==":"){return ae(ad)}}function av(aJ,aK){if(aK=="="){return ae(aE)}}function ad(aJ){if(aJ=="variable"){D.marked="variable-3";return ae()}}function d(){return aa(i,T,ac,X)}function i(aJ,aK){if(aJ=="variable"){aw(aK);return ae()}if(aJ=="["){return ay(i,"]")}if(aJ=="{"){return ay(aD,"}")}}function aD(aJ,aK){if(aJ=="variable"&&!D.stream.match(/^\s*:/,false)){aw(aK);return ae(ac)}if(aJ=="variable"){D.marked="property"}return ae(r(":"),i,ac)}function ac(aJ,aK){if(aK=="="){return ae(aE)}}function X(aJ){if(aJ==","){return ae(d)}}function e(aJ,aK){if(aJ=="keyword b"&&aK=="else"){return ae(aF("form","else"),aH,h)}}function u(aJ){if(aJ=="("){return ae(aF(")"),E,r(")"),h)}}function E(aJ){if(aJ=="var"){return ae(d,r(";"),C)}if(aJ==";"){return ae(C)}if(aJ=="variable"){return ae(v)}return aa(an,r(";"),C)}function v(aJ,aK){if(aK=="in"||aK=="of"){D.marked="keyword";return ae(an)}return ae(ab,C)}function C(aJ,aK){if(aJ==";"){return ae(B)}if(aK=="in"||aK=="of"){D.marked="keyword";return ae(an)}return aa(an,r(";"),B)}function B(aJ){if(aJ!=")"){ae(an)}}function M(aJ,aK){if(aK=="*"){D.marked="keyword";return ae(M)}if(aJ=="variable"){aw(aK);return ae(M)}if(aJ=="("){return ae(w,aF(")"),at(af,")"),h,aH,x)}}function af(aJ){if(aJ=="spread"){return ae(af)}return aa(i,T,av)}function V(aJ,aK){if(aJ=="variable"){aw(aK);return ae(O)}}function O(aJ,aK){if(aK=="extends"){return ae(an,O)}if(aJ=="{"){return ae(aF("}"),o,h)}}function o(aJ,aK){if(aJ=="variable"||D.style=="keyword"){if(aK=="static"){D.marked="keyword";return ae(o)}D.marked="property";if(aK=="get"||aK=="set"){return ae(c,M,o)}return ae(M,o)}if(aK=="*"){D.marked="keyword";return ae(o)}if(aJ==";"){return ae(o)}if(aJ=="}"){return ae()}}function c(aJ){if(aJ!="variable"){return aa()}D.marked="property";return ae()}function H(aJ,aK){if(aJ=="string"){return ae(aH)}if(aJ=="variable"){aw(aK);return ae(ah)}}function aG(aJ,aK){if(aK=="*"){D.marked="keyword";return ae(ah,r(";"))}if(aK=="default"){D.marked="keyword";return ae(an,r(";"))}return aa(aH)}function ag(aJ){if(aJ=="string"){return ae()}return aa(ap,ah)}function ap(aJ,aK){if(aJ=="{"){return ay(ap,"}")}if(aJ=="variable"){aw(aK)}if(aK=="*"){D.marked="keyword"}return ae(k)}function k(aJ,aK){if(aK=="as"){D.marked="keyword";return ae(ap)}}function ah(aJ,aK){if(aK=="from"){D.marked="keyword";return ae(an)}}function n(aJ){if(aJ=="]"){return ae()}return aa(aE,am)}function am(aJ){if(aJ=="for"){return aa(az,r("]"))}if(aJ==","){return ae(at(ak,"]"))}return aa(at(aE,"]"))}function az(aJ){if(aJ=="for"){return ae(u,az)}if(aJ=="if"){return ae(an,az)}}function ao(aK,aJ){return aK.lastType=="operator"||aK.lastType==","||P.test(aJ.charAt(0))||/[,.]/.test(aJ.charAt(0))}return{startState:function(aK){var aJ={tokenize:U,lastType:"sof",cc:[],lexical:new J((aK||0)-l,0,"block",false),localVars:aj.localVars,context:aj.localVars&&{vars:aj.localVars},indented:0};if(aj.globalVars&&typeof aj.globalVars=="object"){aJ.globalVars=aj.globalVars}return aJ},token:function(aL,aK){if(aL.sol()){if(!aK.lexical.hasOwnProperty("align")){aK.lexical.align=false}aK.indented=aL.indentation();ax(aL,aK)}if(aK.tokenize!=aA&&aL.eatSpace()){return null}var aJ=aK.tokenize(aL,aK);if(S=="comment"){return aJ}aK.lastType=S=="operator"&&(G=="++"||G=="--")?"incdec":S;return f(aK,aJ,S,G,aL)},indent:function(aP,aJ){if(aP.tokenize==aA){return a.Pass}if(aP.tokenize!=U){return 0}var aO=aJ&&aJ.charAt(0),aM=aP.lexical;if(!/^\s*else\b/.test(aJ)){for(var aL=aP.cc.length-1;aL>=0;--aL){var aQ=aP.cc[aL];if(aQ==h){aM=aM.prev}else{if(aQ!=e){break}}}}if(aM.type=="stat"&&aO=="}"){aM=aM.prev}if(A&&aM.type==")"&&aM.prev.type=="stat"){aM=aM.prev}var aN=aM.type,aK=aO==aN;if(aN=="vardef"){return aM.indented+(aP.lastType=="operator"||aP.lastType==","?aM.info+1:0)}else{if(aN=="form"&&aO=="{"){return aM.indented}else{if(aN=="form"){return aM.indented+l}else{if(aN=="stat"){return aM.indented+(ao(aP,aJ)?A||l:0)}else{if(aM.info=="switch"&&!aK&&aj.doubleIndentSwitch!=false){return aM.indented+(/^(?:case|default)\b/.test(aJ)?l:2*l)}else{if(aM.align){return aM.column+(aK?0:1)}else{return aM.indented+(aK?0:l)}}}}}}},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:z?null:"/*",blockCommentEnd:z?null:"*/",lineComment:z?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:z?"json":"javascript",jsonldMode:aB,jsonMode:z}});a.registerHelper("wordChars","javascript",/[\w$]/);a.defineMIME("text/javascript","javascript");a.defineMIME("text/ecmascript","javascript");a.defineMIME("application/javascript","javascript");a.defineMIME("application/x-javascript","javascript");a.defineMIME("application/ecmascript","javascript");a.defineMIME("application/json",{name:"javascript",json:true});a.defineMIME("application/x-json",{name:"javascript",json:true});a.defineMIME("application/ld+json",{name:"javascript",jsonld:true});a.defineMIME("text/typescript",{name:"javascript",typescript:true});a.defineMIME("application/typescript",{name:"javascript",typescript:true})});
1
+ (function(a){if(typeof exports=="object"&&typeof module=="object"){a(require("../../lib/codemirror"))}else{if(typeof define=="function"&&define.amd){define(["../../lib/codemirror"],a)}else{a(CodeMirror)}}})(function(a){function b(e,d,c){return/^(?:operator|sof|keyword c|case|new|[\[{}\(,;:]|=>)$/.test(d.lastType)||(d.lastType=="quasi"&&/\{\s*$/.test(e.string.slice(0,e.pos-(c||0))))}a.defineMode("javascript",function(ac,am){var m=ac.indentUnit;var C=am.statementIndent;var aE=am.jsonld;var B=am.json||aE;var h=am.typescript;var ax=am.wordCharacters||/[\w$\xa1-\uffff]/;var av=function(){function aU(aW){return{type:aW,style:"keyword"}}var aP=aU("keyword a"),aN=aU("keyword b"),aM=aU("keyword c");var aO=aU("operator"),aS={type:"atom",style:"atom"};var aQ={"if":aU("if"),"while":aP,"with":aP,"else":aN,"do":aN,"try":aN,"finally":aN,"return":aM,"break":aM,"continue":aM,"new":aU("new"),"delete":aM,"throw":aM,"debugger":aM,"var":aU("var"),"const":aU("var"),let:aU("var"),"function":aU("function"),"catch":aU("catch"),"for":aU("for"),"switch":aU("switch"),"case":aU("case"),"default":aU("default"),"in":aO,"typeof":aO,"instanceof":aO,"true":aS,"false":aS,"null":aS,"undefined":aS,"NaN":aS,"Infinity":aS,"this":aU("this"),"class":aU("class"),"super":aU("atom"),yield:aM,"export":aU("export"),"import":aU("import"),"extends":aM};if(h){var aV={type:"variable",style:"variable-3"};var aR={"interface":aU("class"),"implements":aM,namespace:aM,module:aU("module"),"enum":aU("module"),"public":aU("modifier"),"private":aU("modifier"),"protected":aU("modifier"),"abstract":aU("modifier"),as:aO,string:aV,number:aV,"boolean":aV,any:aV};for(var aT in aR){aQ[aT]=aR[aT]}}return aQ}();var R=/[+\-*&%=<>!?|~^]/;var au=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function H(aP){var aN=false,aM,aO=false;while((aM=aP.next())!=null){if(!aN){if(aM=="/"&&!aO){return}if(aM=="["){aO=true}else{if(aO&&aM=="]"){aO=false}}}aN=!aN&&aM=="\\"}}var U,I;function N(aO,aN,aM){U=aO;I=aM;return aN}function W(aQ,aO){var aM=aQ.next();if(aM=='"'||aM=="'"){aO.tokenize=T(aM);return aO.tokenize(aQ,aO)}else{if(aM=="."&&aQ.match(/^\d+(?:[eE][+\-]?\d+)?/)){return N("number","number")}else{if(aM=="."&&aQ.match("..")){return N("spread","meta")}else{if(/[\[\]{}\(\),;\:\.]/.test(aM)){return N(aM)}else{if(aM=="="&&aQ.eat(">")){return N("=>","operator")}else{if(aM=="0"&&aQ.eat(/x/i)){aQ.eatWhile(/[\da-f]/i);return N("number","number")}else{if(aM=="0"&&aQ.eat(/o/i)){aQ.eatWhile(/[0-7]/i);return N("number","number")}else{if(aM=="0"&&aQ.eat(/b/i)){aQ.eatWhile(/[01]/i);return N("number","number")}else{if(/\d/.test(aM)){aQ.match(/^\d*(?:\.\d*)?(?:[eE][+\-]?\d+)?/);return N("number","number")}else{if(aM=="/"){if(aQ.eat("*")){aO.tokenize=aD;return aD(aQ,aO)}else{if(aQ.eat("/")){aQ.skipToEnd();return N("comment","comment")}else{if(b(aQ,aO,1)){H(aQ);aQ.match(/^\b(([gimyu])(?![gimyu]*\2))+\b/);return N("regexp","string-2")}else{aQ.eatWhile(R);return N("operator","operator",aQ.current())}}}}else{if(aM=="`"){aO.tokenize=aF;return aF(aQ,aO)}else{if(aM=="#"){aQ.skipToEnd();return N("error","error")}else{if(R.test(aM)){aQ.eatWhile(R);return N("operator","operator",aQ.current())}else{if(ax.test(aM)){aQ.eatWhile(ax);var aP=aQ.current(),aN=av.propertyIsEnumerable(aP)&&av[aP];return(aN&&aO.lastType!=".")?N(aN.type,aN.style,aP):N("variable","variable",aP)}}}}}}}}}}}}}}}function T(aM){return function(aQ,aO){var aP=false,aN;if(aE&&aQ.peek()=="@"&&aQ.match(au)){aO.tokenize=W;return N("jsonld-keyword","meta")}while((aN=aQ.next())!=null){if(aN==aM&&!aP){break}aP=!aP&&aN=="\\"}if(!aP){aO.tokenize=W}return N("string","string")}}function aD(aP,aO){var aM=false,aN;while(aN=aP.next()){if(aN=="/"&&aM){aO.tokenize=W;break}aM=(aN=="*")}return N("comment","comment")}function aF(aP,aN){var aO=false,aM;while((aM=aP.next())!=null){if(!aO&&(aM=="`"||aM=="$"&&aP.eat("{"))){aN.tokenize=W;break}aO=!aO&&aM=="\\"}return N("quasi","string-2",aP.current())}var n="([{}])";function aA(aS,aP){if(aP.fatArrowAt){aP.fatArrowAt=null}var aO=aS.string.indexOf("=>",aS.start);if(aO<0){return}var aR=0,aN=false;for(var aT=aO-1;aT>=0;--aT){var aM=aS.string.charAt(aT);var aQ=n.indexOf(aM);if(aQ>=0&&aQ<3){if(!aR){++aT;break}if(--aR==0){break}}else{if(aQ>=3&&aQ<6){++aR}else{if(ax.test(aM)){aN=true}else{if(/["'\/]/.test(aM)){return}else{if(aN&&!aR){++aT;break}}}}}}if(aN&&!aR){aP.fatArrowAt=aT}}var c={atom:true,number:true,variable:true,string:true,regexp:true,"this":true,"jsonld-keyword":true};function L(aR,aN,aM,aQ,aO,aP){this.indented=aR;this.column=aN;this.type=aM;this.prev=aO;this.info=aP;if(aQ!=null){this.align=aQ}}function u(aP,aO){for(var aN=aP.localVars;aN;aN=aN.next){if(aN.name==aO){return true}}for(var aM=aP.context;aM;aM=aM.prev){for(var aN=aM.vars;aN;aN=aN.next){if(aN.name==aO){return true}}}}function g(aQ,aN,aM,aP,aR){var aS=aQ.cc;F.state=aQ;F.stream=aR;F.marked=null,F.cc=aS;F.style=aN;if(!aQ.lexical.hasOwnProperty("align")){aQ.lexical.align=true}while(true){var aO=aS.length?aS.pop():B?aq:aK;if(aO(aM,aP)){while(aS.length&&aS[aS.length-1].lex){aS.pop()()}if(F.marked){return F.marked}if(aM=="variable"&&u(aQ,aP)){return"variable-2"}return aN}}}var F={state:null,column:null,marked:null,cc:null};function ad(){for(var aM=arguments.length-1;aM>=0;aM--){F.cc.push(arguments[aM])}}function ai(){ad.apply(null,arguments);return true}function az(aN){function aM(aQ){for(var aP=aQ;aP;aP=aP.next){if(aP.name==aN){return true}}return false}var aO=F.state;F.marked="def";if(aO.context){if(aM(aO.localVars)){return}aO.localVars={name:aN,next:aO.localVars}}else{if(aM(aO.globalVars)){return}if(am.globalVars){aO.globalVars={name:aN,next:aO.globalVars}}}}var s={name:"this",next:{name:"arguments"}};function y(){F.state.context={prev:F.state.context,vars:F.state.localVars};F.state.localVars=s}function z(){F.state.localVars=F.state.context.vars;F.state.context=F.state.context.prev}function aI(aN,aO){var aM=function(){var aR=F.state,aP=aR.indented;if(aR.lexical.type=="stat"){aP=aR.lexical.indented}else{for(var aQ=aR.lexical;aQ&&aQ.type==")"&&aQ.align;aQ=aQ.prev){aP=aQ.indented}}aR.lexical=new L(aP,F.stream.column(),aN,null,aR.lexical,aO)};aM.lex=true;return aM}function i(){var aM=F.state;if(aM.lexical.prev){if(aM.lexical.type==")"){aM.indented=aM.lexical.indented}aM.lexical=aM.lexical.prev}}i.lex=true;function t(aM){function aN(aO){if(aO==aM){return ai()}else{if(aM==";"){return ad()}else{return ai(aN)}}}return aN}function aK(aM,aN){if(aM=="var"){return ai(aI("vardef",aN.length),e,t(";"),i)}if(aM=="keyword a"){return ai(aI("form"),aq,aK,i)}if(aM=="keyword b"){return ai(aI("form"),aK,i)}if(aM=="{"){return ai(aI("}"),A,i)}if(aM==";"){return ai()}if(aM=="if"){if(F.state.lexical.info=="else"&&F.state.cc[F.state.cc.length-1]==i){F.state.cc.pop()()}return ai(aI("form"),aq,aK,i,f)}if(aM=="function"){return ai(O)}if(aM=="for"){return ai(aI("form"),w,aK,i)}if(aM=="variable"){return ai(aI("stat"),aL)}if(aM=="switch"){return ai(aI("form"),aq,aI("}","switch"),t("{"),A,i,i)}if(aM=="case"){return ai(aq,t(":"))}if(aM=="default"){return ai(t(":"))}if(aM=="catch"){return ai(aI("form"),y,t("("),ag,t(")"),aK,i,z)}if(aM=="class"){return ai(aI("form"),Y,i)}if(aM=="export"){return ai(aI("stat"),aJ,i)}if(aM=="import"){return ai(aI("stat"),aj,i)}if(aM=="module"){return ai(aI("form"),j,aI("}"),t("{"),A,i,i)}return ad(aI("stat"),aq,t(";"),i)}function aq(aM){return ab(aM,false)}function aH(aM){return ab(aM,true)}function ab(aN,aP){if(F.state.fatArrowAt==F.stream.start){var aM=aP?P:Z;if(aN=="("){return ai(y,aI(")"),aw(j,")"),i,t("=>"),aM,z)}else{if(aN=="variable"){return ad(y,j,t("=>"),aM,z)}}}var aO=aP?k:ae;if(c.hasOwnProperty(aN)){return ai(aO)}if(aN=="function"){return ai(O,aO)}if(aN=="keyword c"){return ai(aP?an:al)}if(aN=="("){return ai(aI(")"),al,aC,t(")"),i,aO)}if(aN=="operator"||aN=="spread"){return ai(aP?aH:aq)}if(aN=="["){return ai(aI("]"),o,i,aO)}if(aN=="{"){return aB(v,"}",null,aO)}if(aN=="quasi"){return ad(S,aO)}if(aN=="new"){return ai(J(aP))}return ai()}function al(aM){if(aM.match(/[;\}\)\],]/)){return ad()}return ad(aq)}function an(aM){if(aM.match(/[;\}\)\],]/)){return ad()}return ad(aH)}function ae(aM,aN){if(aM==","){return ai(aq)}return k(aM,aN,false)}function k(aM,aO,aQ){var aN=aQ==false?ae:k;var aP=aQ==false?aq:aH;if(aM=="=>"){return ai(y,aQ?P:Z,z)}if(aM=="operator"){if(/\+\+|--/.test(aO)){return ai(aN)}if(aO=="?"){return ai(aq,t(":"),aP)}return ai(aP)}if(aM=="quasi"){return ad(S,aN)}if(aM==";"){return}if(aM=="("){return aB(aH,")","call",aN)}if(aM=="."){return ai(ao,aN)}if(aM=="["){return ai(aI("]"),al,t("]"),i,aN)}}function S(aM,aN){if(aM!="quasi"){return ad()}if(aN.slice(aN.length-2)!="${"){return ai(S)}return ai(aq,r)}function r(aM){if(aM=="}"){F.marked="string-2";F.state.tokenize=aF;return ai(S)}}function Z(aM){aA(F.stream,F.state);return ad(aM=="{"?aK:aq)}function P(aM){aA(F.stream,F.state);return ad(aM=="{"?aK:aH)}function J(aM){return function(aN){if(aN=="."){return ai(aM?p:X)}else{return ad(aM?aH:aq)}}}function X(aM,aN){if(aN=="target"){F.marked="keyword";return ai(ae)}}function p(aM,aN){if(aN=="target"){F.marked="keyword";return ai(k)}}function aL(aM){if(aM==":"){return ai(i,aK)}return ad(ae,t(";"),i)}function ao(aM){if(aM=="variable"){F.marked="property";return ai()}}function v(aM,aN){if(aM=="variable"||F.style=="keyword"){F.marked="property";if(aN=="get"||aN=="set"){return ai(K)}return ai(M)}else{if(aM=="number"||aM=="string"){F.marked=aE?"property":(F.style+" property");return ai(M)}else{if(aM=="jsonld-keyword"){return ai(M)}else{if(aM=="modifier"){return ai(v)}else{if(aM=="["){return ai(aq,t("]"),M)}else{if(aM=="spread"){return ai(aq)}}}}}}}function K(aM){if(aM!="variable"){return ad(M)}F.marked="property";return ai(O)}function M(aM){if(aM==":"){return ai(aH)}if(aM=="("){return ad(O)}}function aw(aO,aM){function aN(aQ){if(aQ==","){var aP=F.state.lexical;if(aP.info=="call"){aP.pos=(aP.pos||0)+1}return ai(aO,aN)}if(aQ==aM){return ai()}return ai(t(aM))}return function(aP){if(aP==aM){return ai()}return ad(aO,aN)}}function aB(aP,aM,aO){for(var aN=3;aN<arguments.length;aN++){F.cc.push(arguments[aN])}return ai(aI(aM,aO),aw(aP,aM),i)}function A(aM){if(aM=="}"){return ai()}return ad(aK,A)}function V(aM){if(h&&aM==":"){return ai(ah)}}function ay(aM,aN){if(aN=="="){return ai(aH)}}function ah(aM){if(aM=="variable"){F.marked="variable-3";return ai()}}function e(){return ad(j,V,af,aa)}function j(aM,aN){if(aM=="modifier"){return ai(j)}if(aM=="variable"){az(aN);return ai()}if(aM=="spread"){return ai(j)}if(aM=="["){return aB(j,"]")}if(aM=="{"){return aB(aG,"}")}}function aG(aM,aN){if(aM=="variable"&&!F.stream.match(/^\s*:/,false)){az(aN);return ai(af)}if(aM=="variable"){F.marked="property"}if(aM=="spread"){return ai(j)}if(aM=="}"){return ad()}return ai(t(":"),j,af)}function af(aM,aN){if(aN=="="){return ai(aH)}}function aa(aM){if(aM==","){return ai(e)}}function f(aM,aN){if(aM=="keyword b"&&aN=="else"){return ai(aI("form","else"),aK,i)}}function w(aM){if(aM=="("){return ai(aI(")"),G,t(")"),i)}}function G(aM){if(aM=="var"){return ai(e,t(";"),E)}if(aM==";"){return ai(E)}if(aM=="variable"){return ai(x)}return ad(aq,t(";"),E)}function x(aM,aN){if(aN=="in"||aN=="of"){F.marked="keyword";return ai(aq)}return ai(ae,E)}function E(aM,aN){if(aM==";"){return ai(D)}if(aN=="in"||aN=="of"){F.marked="keyword";return ai(aq)}return ad(aq,t(";"),D)}function D(aM){if(aM!=")"){ai(aq)}}function O(aM,aN){if(aN=="*"){F.marked="keyword";return ai(O)}if(aM=="variable"){az(aN);return ai(O)}if(aM=="("){return ai(y,aI(")"),aw(ag,")"),i,aK,z)}}function ag(aM){if(aM=="spread"){return ai(ag)}return ad(j,V,ay)}function Y(aM,aN){if(aM=="variable"){az(aN);return ai(Q)}}function Q(aM,aN){if(aN=="extends"){return ai(aq,Q)}if(aM=="{"){return ai(aI("}"),q,i)}}function q(aM,aN){if(aM=="variable"||F.style=="keyword"){if(aN=="static"){F.marked="keyword";return ai(q)}F.marked="property";if(aN=="get"||aN=="set"){return ai(d,O,q)}return ai(O,q)}if(aN=="*"){F.marked="keyword";return ai(q)}if(aM==";"){return ai(q)}if(aM=="}"){return ai()}}function d(aM){if(aM!="variable"){return ad()}F.marked="property";return ai()}function aJ(aM,aN){if(aN=="*"){F.marked="keyword";return ai(ak,t(";"))}if(aN=="default"){F.marked="keyword";return ai(aq,t(";"))}return ad(aK)}function aj(aM){if(aM=="string"){return ai()}return ad(at,ak)}function at(aM,aN){if(aM=="{"){return aB(at,"}")}if(aM=="variable"){az(aN)}if(aN=="*"){F.marked="keyword"}return ai(l)}function l(aM,aN){if(aN=="as"){F.marked="keyword";return ai(at)}}function ak(aM,aN){if(aN=="from"){F.marked="keyword";return ai(aq)}}function o(aM){if(aM=="]"){return ai()}return ad(aH,ap)}function ap(aM){if(aM=="for"){return ad(aC,t("]"))}if(aM==","){return ai(aw(an,"]"))}return ad(aw(aH,"]"))}function aC(aM){if(aM=="for"){return ai(w,aC)}if(aM=="if"){return ai(aq,aC)}}function ar(aN,aM){return aN.lastType=="operator"||aN.lastType==","||R.test(aM.charAt(0))||/[,.]/.test(aM.charAt(0))}return{startState:function(aN){var aM={tokenize:W,lastType:"sof",cc:[],lexical:new L((aN||0)-m,0,"block",false),localVars:am.localVars,context:am.localVars&&{vars:am.localVars},indented:aN||0};if(am.globalVars&&typeof am.globalVars=="object"){aM.globalVars=am.globalVars}return aM},token:function(aO,aN){if(aO.sol()){if(!aN.lexical.hasOwnProperty("align")){aN.lexical.align=false}aN.indented=aO.indentation();aA(aO,aN)}if(aN.tokenize!=aD&&aO.eatSpace()){return null}var aM=aN.tokenize(aO,aN);if(U=="comment"){return aM}aN.lastType=U=="operator"&&(I=="++"||I=="--")?"incdec":U;return g(aN,aM,U,I,aO)},indent:function(aS,aM){if(aS.tokenize==aD){return a.Pass}if(aS.tokenize!=W){return 0}var aR=aM&&aM.charAt(0),aP=aS.lexical;if(!/^\s*else\b/.test(aM)){for(var aO=aS.cc.length-1;aO>=0;--aO){var aT=aS.cc[aO];if(aT==i){aP=aP.prev}else{if(aT!=f){break}}}}if(aP.type=="stat"&&aR=="}"){aP=aP.prev}if(C&&aP.type==")"&&aP.prev.type=="stat"){aP=aP.prev}var aQ=aP.type,aN=aR==aQ;if(aQ=="vardef"){return aP.indented+(aS.lastType=="operator"||aS.lastType==","?aP.info+1:0)}else{if(aQ=="form"&&aR=="{"){return aP.indented}else{if(aQ=="form"){return aP.indented+m}else{if(aQ=="stat"){return aP.indented+(ar(aS,aM)?C||m:0)}else{if(aP.info=="switch"&&!aN&&am.doubleIndentSwitch!=false){return aP.indented+(/^(?:case|default)\b/.test(aM)?m:2*m)}else{if(aP.align){return aP.column+(aN?0:1)}else{return aP.indented+(aN?0:m)}}}}}}},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:B?null:"/*",blockCommentEnd:B?null:"*/",lineComment:B?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:B?"json":"javascript",jsonldMode:aE,jsonMode:B,expressionAllowed:b,skipExpression:function(aM){var aN=aM.cc[aM.cc.length-1];if(aN==aq||aN==aH){aM.cc.pop()}}}});a.registerHelper("wordChars","javascript",/[\w$]/);a.defineMIME("text/javascript","javascript");a.defineMIME("text/ecmascript","javascript");a.defineMIME("application/javascript","javascript");a.defineMIME("application/x-javascript","javascript");a.defineMIME("application/ecmascript","javascript");a.defineMIME("application/json",{name:"javascript",json:true});a.defineMIME("application/x-json",{name:"javascript",json:true});a.defineMIME("application/ld+json",{name:"javascript",jsonld:true});a.defineMIME("text/typescript",{name:"javascript",typescript:true});a.defineMIME("application/typescript",{name:"javascript",typescript:true})});
@@ -1 +1 @@
1
- (function(a){if(typeof exports=="object"&&typeof module=="object"){a(require("../../lib/codemirror"),require("../xml/xml"),require("../javascript/javascript"),require("../css/css"))}else{if(typeof define=="function"&&define.amd){define(["../../lib/codemirror","../xml/xml","../javascript/javascript","../css/css"],a)}else{a(CodeMirror)}}})(function(a){a.defineMode("htmlmixed",function(c,d){var b=a.getMode(c,{name:"xml",htmlMode:true,multilineTagIndentFactor:d.multilineTagIndentFactor,multilineTagIndentPastTag:d.multilineTagIndentPastTag});var n=a.getMode(c,"css");var l=[],k=d&&d.scriptTypes;l.push({matches:/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^$/i,mode:a.getMode(c,"javascript")});if(k){for(var e=0;e<k.length;++e){var j=k[e];l.push({matches:j.matches,mode:j.mode&&a.getMode(c,j.mode)})}}l.push({matches:/./,mode:a.getMode(c,"text/plain")});function f(t,r){var p=r.htmlState.tagName;if(p){p=p.toLowerCase()}var q=b.token(t,r.htmlState);if(p=="script"&&/\btag\b/.test(q)&&t.current()==">"){var u=t.string.slice(Math.max(0,t.pos-100),t.pos).match(/\btype\s*=\s*("[^"]+"|'[^']+'|\S+)[^<]*$/i);u=u?u[1]:"";if(u&&/[\"\']/.test(u.charAt(0))){u=u.slice(1,u.length-1)}for(var o=0;o<l.length;++o){var s=l[o];if(typeof s.matches=="string"?u==s.matches:s.matches.test(u)){if(s.mode){r.token=m;r.localMode=s.mode;r.localState=s.mode.startState&&s.mode.startState(b.indent(r.htmlState,""))}break}}}else{if(p=="style"&&/\btag\b/.test(q)&&t.current()==">"){r.token=g;r.localMode=n;r.localState=n.startState(b.indent(r.htmlState,""))}}return q}function h(r,i,o){var q=r.current();var p=q.search(i);if(p>-1){r.backUp(q.length-p)}else{if(q.match(/<\/?$/)){r.backUp(q.length);if(!r.match(i,false)){r.match(q)}}}return o}function m(o,i){if(o.match(/^<\/\s*script\s*>/i,false)){i.token=f;i.localState=i.localMode=null;return null}return h(o,/<\/\s*script\s*>/,i.localMode.token(o,i.localState))}function g(o,i){if(o.match(/^<\/\s*style\s*>/i,false)){i.token=f;i.localState=i.localMode=null;return null}return h(o,/<\/\s*style\s*>/,n.token(o,i.localState))}return{startState:function(){var i=b.startState();return{token:f,localMode:null,localState:null,htmlState:i}},copyState:function(o){if(o.localState){var i=a.copyState(o.localMode,o.localState)}return{token:o.token,localMode:o.localMode,localState:i,htmlState:a.copyState(b,o.htmlState)}},token:function(o,i){return i.token(o,i)},indent:function(o,i){if(!o.localMode||/^\s*<\//.test(i)){return b.indent(o.htmlState,i)}else{if(o.localMode.indent){return o.localMode.indent(o.localState,i)}else{return a.Pass}}},innerMode:function(i){return{state:i.localState||i.htmlState,mode:i.localMode||b}}}},"xml","javascript","css");a.defineMIME("text/html","htmlmixed")});(function(a){if(typeof exports=="object"&&typeof module=="object"){a(require("../../lib/codemirror"))}else{if(typeof define=="function"&&define.amd){define(["../../lib/codemirror"],a)}else{a(CodeMirror)}}})(function(a){a.defineMode("xml",function(y,k){var p=y.indentUnit;var x=k.multilineTagIndentFactor||1;var d=k.multilineTagIndentPastTag;if(d==null){d=true}var w=k.htmlMode?{autoSelfClosers:{area:true,base:true,br:true,col:true,command:true,embed:true,frame:true,hr:true,img:true,input:true,keygen:true,link:true,meta:true,param:true,source:true,track:true,wbr:true,menuitem:true},implicitlyClosed:{dd:true,li:true,optgroup:true,option:true,p:true,rp:true,rt:true,tbody:true,td:true,tfoot:true,th:true,tr:true},contextGrabbers:{dd:{dd:true,dt:true},dt:{dd:true,dt:true},li:{li:true},option:{option:true,optgroup:true},optgroup:{optgroup:true},p:{address:true,article:true,aside:true,blockquote:true,dir:true,div:true,dl:true,fieldset:true,footer:true,form:true,h1:true,h2:true,h3:true,h4:true,h5:true,h6:true,header:true,hgroup:true,hr:true,menu:true,nav:true,ol:true,p:true,pre:true,section:true,table:true,ul:true},rp:{rp:true,rt:true},rt:{rp:true,rt:true},tbody:{tbody:true,tfoot:true},td:{td:true,th:true},tfoot:{tbody:true},th:{td:true,th:true},thead:{tbody:true,tfoot:true},tr:{tr:true}},doNotIndent:{pre:true},allowUnquoted:true,allowMissing:true,caseFold:true}:{autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:false,allowMissing:false,caseFold:false};var c=k.alignCDATA;var f,g;function n(F,E){function C(G){E.tokenize=G;return G(F,E)}var D=F.next();if(D=="<"){if(F.eat("!")){if(F.eat("[")){if(F.match("CDATA[")){return C(v("atom","]]>"))}else{return null}}else{if(F.match("--")){return C(v("comment","-->"))}else{if(F.match("DOCTYPE",true,true)){F.eatWhile(/[\w\._\-]/);return C(z(1))}else{return null}}}}else{if(F.eat("?")){F.eatWhile(/[\w\._\-]/);E.tokenize=v("meta","?>");return"meta"}else{f=F.eat("/")?"closeTag":"openTag";E.tokenize=m;return"tag bracket"}}}else{if(D=="&"){var B;if(F.eat("#")){if(F.eat("x")){B=F.eatWhile(/[a-fA-F\d]/)&&F.eat(";")}else{B=F.eatWhile(/[\d]/)&&F.eat(";")}}else{B=F.eatWhile(/[\w\.\-:]/)&&F.eat(";")}return B?"atom":"error"}else{F.eatWhile(/[^&<]/);return null}}}function m(E,D){var C=E.next();if(C==">"||(C=="/"&&E.eat(">"))){D.tokenize=n;f=C==">"?"endTag":"selfcloseTag";return"tag bracket"}else{if(C=="="){f="equals";return null}else{if(C=="<"){D.tokenize=n;D.state=l;D.tagName=D.tagStart=null;var B=D.tokenize(E,D);return B?B+" tag error":"tag error"}else{if(/[\'\"]/.test(C)){D.tokenize=j(C);D.stringStartCol=E.column();return D.tokenize(E,D)}else{E.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/);return"word"}}}}}function j(B){var C=function(E,D){while(!E.eol()){if(E.next()==B){D.tokenize=m;break}}return"string"};C.isInAttribute=true;return C}function v(C,B){return function(E,D){while(!E.eol()){if(E.match(B)){D.tokenize=n;break}E.next()}return C}}function z(B){return function(E,D){var C;while((C=E.next())!=null){if(C=="<"){D.tokenize=z(B+1);return D.tokenize(E,D)}else{if(C==">"){if(B==1){D.tokenize=n;break}else{D.tokenize=z(B-1);return D.tokenize(E,D)}}}}return"meta"}}function r(C,B,D){this.prev=C.context;this.tagName=B;this.indent=C.indented;this.startOfLine=D;if(w.doNotIndent.hasOwnProperty(B)||(C.context&&C.context.noIndent)){this.noIndent=true}}function u(B){if(B.context){B.context=B.context.prev}}function q(D,C){var B;while(true){if(!D.context){return}B=D.context.tagName;if(!w.contextGrabbers.hasOwnProperty(B)||!w.contextGrabbers[B].hasOwnProperty(C)){return}u(D)}}function l(B,D,C){if(B=="openTag"){C.tagStart=D.column();return b}else{if(B=="closeTag"){return t}else{return l}}}function b(B,D,C){if(B=="word"){C.tagName=D.current();g="tag";return e}else{g="error";return b}}function t(C,E,D){if(C=="word"){var B=E.current();if(D.context&&D.context.tagName!=B&&w.implicitlyClosed.hasOwnProperty(D.context.tagName)){u(D)}if(D.context&&D.context.tagName==B){g="tag";return s}else{g="tag error";return A}}else{g="error";return A}}function s(C,B,D){if(C!="endTag"){g="error";return s}u(D);return l}function A(B,D,C){g="error";return s(B,D,C)}function e(E,C,F){if(E=="word"){g="attribute";return i}else{if(E=="endTag"||E=="selfcloseTag"){var D=F.tagName,B=F.tagStart;F.tagName=F.tagStart=null;if(E=="selfcloseTag"||w.autoSelfClosers.hasOwnProperty(D)){q(F,D)}else{q(F,D);F.context=new r(F,D,B==F.indented)}return l}}g="error";return e}function i(B,D,C){if(B=="equals"){return o}if(!w.allowMissing){g="error"}return e(B,D,C)}function o(B,D,C){if(B=="string"){return h}if(B=="word"&&w.allowUnquoted){g="string";return e}g="error";return e(B,D,C)}function h(B,D,C){if(B=="string"){return h}return e(B,D,C)}return{startState:function(){return{tokenize:n,state:l,indented:0,tagName:null,tagStart:null,context:null}},token:function(D,C){if(!C.tagName&&D.sol()){C.indented=D.indentation()}if(D.eatSpace()){return null}f=null;var B=C.tokenize(D,C);if((B||f)&&B!="comment"){g=null;C.state=C.state(f||B,D,C);if(g){B=g=="error"?B+" error":g}}return B},indent:function(G,C,F){var E=G.context;if(G.tokenize.isInAttribute){if(G.tagStart==G.indented){return G.stringStartCol+1}else{return G.indented+p}}if(E&&E.noIndent){return a.Pass}if(G.tokenize!=m&&G.tokenize!=n){return F?F.match(/^(\s*)/)[0].length:0}if(G.tagName){if(d){return G.tagStart+G.tagName.length+2}else{return G.tagStart+p*x}}if(c&&/<!\[CDATA\[/.test(C)){return 0}var B=C&&/^<(\/)?([\w_:\.-]*)/.exec(C);if(B&&B[1]){while(E){if(E.tagName==B[2]){E=E.prev;break}else{if(w.implicitlyClosed.hasOwnProperty(E.tagName)){E=E.prev}else{break}}}}else{if(B){while(E){var D=w.contextGrabbers[E.tagName];if(D&&D.hasOwnProperty(B[2])){E=E.prev}else{break}}}}while(E&&!E.startOfLine){E=E.prev}if(E){return E.indent+p}else{return 0}},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:k.htmlMode?"html":"xml",helperType:k.htmlMode?"html":"xml"}});a.defineMIME("text/xml","xml");a.defineMIME("application/xml","xml");if(!a.mimeModes.hasOwnProperty("text/html")){a.defineMIME("text/html",{name:"xml",htmlMode:true})}});(function(a){if(typeof exports=="object"&&typeof module=="object"){a(require("../../lib/codemirror"))}else{if(typeof define=="function"&&define.amd){define(["../../lib/codemirror"],a)}else{a(CodeMirror)}}})(function(a){a.defineMode("javascript",function(Z,aj){var l=Z.indentUnit;var A=aj.statementIndent;var aB=aj.jsonld;var z=aj.json||aB;var g=aj.typescript;var au=aj.wordCharacters||/[\w$\xa1-\uffff]/;var ar=function(){function aR(aT){return{type:aT,style:"keyword"}}var aM=aR("keyword a"),aK=aR("keyword b"),aJ=aR("keyword c");var aL=aR("operator"),aP={type:"atom",style:"atom"};var aN={"if":aR("if"),"while":aM,"with":aM,"else":aK,"do":aK,"try":aK,"finally":aK,"return":aJ,"break":aJ,"continue":aJ,"new":aJ,"delete":aJ,"throw":aJ,"debugger":aJ,"var":aR("var"),"const":aR("var"),let:aR("var"),"function":aR("function"),"catch":aR("catch"),"for":aR("for"),"switch":aR("switch"),"case":aR("case"),"default":aR("default"),"in":aL,"typeof":aL,"instanceof":aL,"true":aP,"false":aP,"null":aP,"undefined":aP,"NaN":aP,"Infinity":aP,"this":aR("this"),module:aR("module"),"class":aR("class"),"super":aR("atom"),yield:aJ,"export":aR("export"),"import":aR("import"),"extends":aJ};if(g){var aS={type:"variable",style:"variable-3"};var aO={"interface":aR("interface"),"extends":aR("extends"),constructor:aR("constructor"),"public":aR("public"),"private":aR("private"),"protected":aR("protected"),"static":aR("static"),string:aS,number:aS,bool:aS,any:aS};for(var aQ in aO){aN[aQ]=aO[aQ]}}return aN}();var P=/[+\-*&%=<>!?|~^]/;var aq=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function F(aM){var aK=false,aJ,aL=false;while((aJ=aM.next())!=null){if(!aK){if(aJ=="/"&&!aL){return}if(aJ=="["){aL=true}else{if(aL&&aJ=="]"){aL=false}}}aK=!aK&&aJ=="\\"}}var S,G;function L(aL,aK,aJ){S=aL;G=aJ;return aK}function U(aN,aL){var aJ=aN.next();if(aJ=='"'||aJ=="'"){aL.tokenize=R(aJ);return aL.tokenize(aN,aL)}else{if(aJ=="."&&aN.match(/^\d+(?:[eE][+\-]?\d+)?/)){return L("number","number")}else{if(aJ=="."&&aN.match("..")){return L("spread","meta")}else{if(/[\[\]{}\(\),;\:\.]/.test(aJ)){return L(aJ)}else{if(aJ=="="&&aN.eat(">")){return L("=>","operator")}else{if(aJ=="0"&&aN.eat(/x/i)){aN.eatWhile(/[\da-f]/i);return L("number","number")}else{if(/\d/.test(aJ)){aN.match(/^\d*(?:\.\d*)?(?:[eE][+\-]?\d+)?/);return L("number","number")}else{if(aJ=="/"){if(aN.eat("*")){aL.tokenize=aA;return aA(aN,aL)}else{if(aN.eat("/")){aN.skipToEnd();return L("comment","comment")}else{if(aL.lastType=="operator"||aL.lastType=="keyword c"||aL.lastType=="sof"||/^[\[{}\(,;:]$/.test(aL.lastType)){F(aN);aN.match(/^\b(([gimyu])(?![gimyu]*\2))+\b/);return L("regexp","string-2")}else{aN.eatWhile(P);return L("operator","operator",aN.current())}}}}else{if(aJ=="`"){aL.tokenize=aC;return aC(aN,aL)}else{if(aJ=="#"){aN.skipToEnd();return L("error","error")}else{if(P.test(aJ)){aN.eatWhile(P);return L("operator","operator",aN.current())}else{if(au.test(aJ)){aN.eatWhile(au);var aM=aN.current(),aK=ar.propertyIsEnumerable(aM)&&ar[aM];return(aK&&aL.lastType!=".")?L(aK.type,aK.style,aM):L("variable","variable",aM)}}}}}}}}}}}}}function R(aJ){return function(aN,aL){var aM=false,aK;if(aB&&aN.peek()=="@"&&aN.match(aq)){aL.tokenize=U;return L("jsonld-keyword","meta")}while((aK=aN.next())!=null){if(aK==aJ&&!aM){break}aM=!aM&&aK=="\\"}if(!aM){aL.tokenize=U}return L("string","string")}}function aA(aM,aL){var aJ=false,aK;while(aK=aM.next()){if(aK=="/"&&aJ){aL.tokenize=U;break}aJ=(aK=="*")}return L("comment","comment")}function aC(aM,aK){var aL=false,aJ;while((aJ=aM.next())!=null){if(!aL&&(aJ=="`"||aJ=="$"&&aM.eat("{"))){aK.tokenize=U;break}aL=!aL&&aJ=="\\"}return L("quasi","string-2",aM.current())}var m="([{}])";function ax(aP,aM){if(aM.fatArrowAt){aM.fatArrowAt=null}var aL=aP.string.indexOf("=>",aP.start);if(aL<0){return}var aO=0,aK=false;for(var aQ=aL-1;aQ>=0;--aQ){var aJ=aP.string.charAt(aQ);var aN=m.indexOf(aJ);if(aN>=0&&aN<3){if(!aO){++aQ;break}if(--aO==0){break}}else{if(aN>=3&&aN<6){++aO}else{if(au.test(aJ)){aK=true}else{if(/["'\/]/.test(aJ)){return}else{if(aK&&!aO){++aQ;break}}}}}}if(aK&&!aO){aM.fatArrowAt=aQ}}var b={atom:true,number:true,variable:true,string:true,regexp:true,"this":true,"jsonld-keyword":true};function J(aO,aK,aJ,aN,aL,aM){this.indented=aO;this.column=aK;this.type=aJ;this.prev=aL;this.info=aM;if(aN!=null){this.align=aN}}function s(aM,aL){for(var aK=aM.localVars;aK;aK=aK.next){if(aK.name==aL){return true}}for(var aJ=aM.context;aJ;aJ=aJ.prev){for(var aK=aJ.vars;aK;aK=aK.next){if(aK.name==aL){return true}}}}function f(aN,aK,aJ,aM,aO){var aP=aN.cc;D.state=aN;D.stream=aO;D.marked=null,D.cc=aP;D.style=aK;if(!aN.lexical.hasOwnProperty("align")){aN.lexical.align=true}while(true){var aL=aP.length?aP.pop():z?an:aH;if(aL(aJ,aM)){while(aP.length&&aP[aP.length-1].lex){aP.pop()()}if(D.marked){return D.marked}if(aJ=="variable"&&s(aN,aM)){return"variable-2"}return aK}}}var D={state:null,column:null,marked:null,cc:null};function aa(){for(var aJ=arguments.length-1;aJ>=0;aJ--){D.cc.push(arguments[aJ])}}function ae(){aa.apply(null,arguments);return true}function aw(aK){function aJ(aN){for(var aM=aN;aM;aM=aM.next){if(aM.name==aK){return true}}return false}var aL=D.state;if(aL.context){D.marked="def";if(aJ(aL.localVars)){return}aL.localVars={name:aK,next:aL.localVars}}else{if(aJ(aL.globalVars)){return}if(aj.globalVars){aL.globalVars={name:aK,next:aL.globalVars}}}}var q={name:"this",next:{name:"arguments"}};function w(){D.state.context={prev:D.state.context,vars:D.state.localVars};D.state.localVars=q}function x(){D.state.localVars=D.state.context.vars;D.state.context=D.state.context.prev}function aF(aK,aL){var aJ=function(){var aO=D.state,aM=aO.indented;if(aO.lexical.type=="stat"){aM=aO.lexical.indented}else{for(var aN=aO.lexical;aN&&aN.type==")"&&aN.align;aN=aN.prev){aM=aN.indented}}aO.lexical=new J(aM,D.stream.column(),aK,null,aO.lexical,aL)};aJ.lex=true;return aJ}function h(){var aJ=D.state;if(aJ.lexical.prev){if(aJ.lexical.type==")"){aJ.indented=aJ.lexical.indented}aJ.lexical=aJ.lexical.prev}}h.lex=true;function r(aJ){function aK(aL){if(aL==aJ){return ae()}else{if(aJ==";"){return aa()}else{return ae(aK)}}}return aK}function aH(aJ,aK){if(aJ=="var"){return ae(aF("vardef",aK.length),d,r(";"),h)}if(aJ=="keyword a"){return ae(aF("form"),an,aH,h)}if(aJ=="keyword b"){return ae(aF("form"),aH,h)}if(aJ=="{"){return ae(aF("}"),y,h)}if(aJ==";"){return ae()}if(aJ=="if"){if(D.state.lexical.info=="else"&&D.state.cc[D.state.cc.length-1]==h){D.state.cc.pop()()}return ae(aF("form"),an,aH,h,e)}if(aJ=="function"){return ae(M)}if(aJ=="for"){return ae(aF("form"),u,aH,h)}if(aJ=="variable"){return ae(aF("stat"),aI)}if(aJ=="switch"){return ae(aF("form"),an,aF("}","switch"),r("{"),y,h,h)}if(aJ=="case"){return ae(an,r(":"))}if(aJ=="default"){return ae(r(":"))}if(aJ=="catch"){return ae(aF("form"),w,r("("),af,r(")"),aH,h,x)}if(aJ=="module"){return ae(aF("form"),w,H,x,h)}if(aJ=="class"){return ae(aF("form"),V,h)}if(aJ=="export"){return ae(aF("form"),aG,h)}if(aJ=="import"){return ae(aF("form"),ag,h)}return aa(aF("stat"),an,r(";"),h)}function an(aJ){return Y(aJ,false)}function aE(aJ){return Y(aJ,true)}function Y(aK,aM){if(D.state.fatArrowAt==D.stream.start){var aJ=aM?N:W;if(aK=="("){return ae(w,aF(")"),at(i,")"),h,r("=>"),aJ,x)}else{if(aK=="variable"){return aa(w,i,r("=>"),aJ,x)}}}var aL=aM?j:ab;if(b.hasOwnProperty(aK)){return ae(aL)}if(aK=="function"){return ae(M,aL)}if(aK=="keyword c"){return ae(aM?ak:ai)}if(aK=="("){return ae(aF(")"),ai,az,r(")"),h,aL)}if(aK=="operator"||aK=="spread"){return ae(aM?aE:an)}if(aK=="["){return ae(aF("]"),n,h,aL)}if(aK=="{"){return ay(t,"}",null,aL)}if(aK=="quasi"){return aa(Q,aL)}return ae()}function ai(aJ){if(aJ.match(/[;\}\)\],]/)){return aa()}return aa(an)}function ak(aJ){if(aJ.match(/[;\}\)\],]/)){return aa()}return aa(aE)}function ab(aJ,aK){if(aJ==","){return ae(an)}return j(aJ,aK,false)}function j(aJ,aL,aN){var aK=aN==false?ab:j;var aM=aN==false?an:aE;if(aJ=="=>"){return ae(w,aN?N:W,x)}if(aJ=="operator"){if(/\+\+|--/.test(aL)){return ae(aK)}if(aL=="?"){return ae(an,r(":"),aM)}return ae(aM)}if(aJ=="quasi"){return aa(Q,aK)}if(aJ==";"){return}if(aJ=="("){return ay(aE,")","call",aK)}if(aJ=="."){return ae(al,aK)}if(aJ=="["){return ae(aF("]"),ai,r("]"),h,aK)}}function Q(aJ,aK){if(aJ!="quasi"){return aa()}if(aK.slice(aK.length-2)!="${"){return ae(Q)}return ae(an,p)}function p(aJ){if(aJ=="}"){D.marked="string-2";D.state.tokenize=aC;return ae(Q)}}function W(aJ){ax(D.stream,D.state);return aa(aJ=="{"?aH:an)}function N(aJ){ax(D.stream,D.state);return aa(aJ=="{"?aH:aE)}function aI(aJ){if(aJ==":"){return ae(h,aH)}return aa(ab,r(";"),h)}function al(aJ){if(aJ=="variable"){D.marked="property";return ae()}}function t(aJ,aK){if(aJ=="variable"||D.style=="keyword"){D.marked="property";if(aK=="get"||aK=="set"){return ae(I)}return ae(K)}else{if(aJ=="number"||aJ=="string"){D.marked=aB?"property":(D.style+" property");return ae(K)}else{if(aJ=="jsonld-keyword"){return ae(K)}else{if(aJ=="["){return ae(an,r("]"),K)}}}}}function I(aJ){if(aJ!="variable"){return aa(K)}D.marked="property";return ae(M)}function K(aJ){if(aJ==":"){return ae(aE)}if(aJ=="("){return aa(M)}}function at(aL,aJ){function aK(aN){if(aN==","){var aM=D.state.lexical;if(aM.info=="call"){aM.pos=(aM.pos||0)+1}return ae(aL,aK)}if(aN==aJ){return ae()}return ae(r(aJ))}return function(aM){if(aM==aJ){return ae()}return aa(aL,aK)}}function ay(aM,aJ,aL){for(var aK=3;aK<arguments.length;aK++){D.cc.push(arguments[aK])}return ae(aF(aJ,aL),at(aM,aJ),h)}function y(aJ){if(aJ=="}"){return ae()}return aa(aH,y)}function T(aJ){if(g&&aJ==":"){return ae(ad)}}function av(aJ,aK){if(aK=="="){return ae(aE)}}function ad(aJ){if(aJ=="variable"){D.marked="variable-3";return ae()}}function d(){return aa(i,T,ac,X)}function i(aJ,aK){if(aJ=="variable"){aw(aK);return ae()}if(aJ=="["){return ay(i,"]")}if(aJ=="{"){return ay(aD,"}")}}function aD(aJ,aK){if(aJ=="variable"&&!D.stream.match(/^\s*:/,false)){aw(aK);return ae(ac)}if(aJ=="variable"){D.marked="property"}return ae(r(":"),i,ac)}function ac(aJ,aK){if(aK=="="){return ae(aE)}}function X(aJ){if(aJ==","){return ae(d)}}function e(aJ,aK){if(aJ=="keyword b"&&aK=="else"){return ae(aF("form","else"),aH,h)}}function u(aJ){if(aJ=="("){return ae(aF(")"),E,r(")"),h)}}function E(aJ){if(aJ=="var"){return ae(d,r(";"),C)}if(aJ==";"){return ae(C)}if(aJ=="variable"){return ae(v)}return aa(an,r(";"),C)}function v(aJ,aK){if(aK=="in"||aK=="of"){D.marked="keyword";return ae(an)}return ae(ab,C)}function C(aJ,aK){if(aJ==";"){return ae(B)}if(aK=="in"||aK=="of"){D.marked="keyword";return ae(an)}return aa(an,r(";"),B)}function B(aJ){if(aJ!=")"){ae(an)}}function M(aJ,aK){if(aK=="*"){D.marked="keyword";return ae(M)}if(aJ=="variable"){aw(aK);return ae(M)}if(aJ=="("){return ae(w,aF(")"),at(af,")"),h,aH,x)}}function af(aJ){if(aJ=="spread"){return ae(af)}return aa(i,T,av)}function V(aJ,aK){if(aJ=="variable"){aw(aK);return ae(O)}}function O(aJ,aK){if(aK=="extends"){return ae(an,O)}if(aJ=="{"){return ae(aF("}"),o,h)}}function o(aJ,aK){if(aJ=="variable"||D.style=="keyword"){if(aK=="static"){D.marked="keyword";return ae(o)}D.marked="property";if(aK=="get"||aK=="set"){return ae(c,M,o)}return ae(M,o)}if(aK=="*"){D.marked="keyword";return ae(o)}if(aJ==";"){return ae(o)}if(aJ=="}"){return ae()}}function c(aJ){if(aJ!="variable"){return aa()}D.marked="property";return ae()}function H(aJ,aK){if(aJ=="string"){return ae(aH)}if(aJ=="variable"){aw(aK);return ae(ah)}}function aG(aJ,aK){if(aK=="*"){D.marked="keyword";return ae(ah,r(";"))}if(aK=="default"){D.marked="keyword";return ae(an,r(";"))}return aa(aH)}function ag(aJ){if(aJ=="string"){return ae()}return aa(ap,ah)}function ap(aJ,aK){if(aJ=="{"){return ay(ap,"}")}if(aJ=="variable"){aw(aK)}if(aK=="*"){D.marked="keyword"}return ae(k)}function k(aJ,aK){if(aK=="as"){D.marked="keyword";return ae(ap)}}function ah(aJ,aK){if(aK=="from"){D.marked="keyword";return ae(an)}}function n(aJ){if(aJ=="]"){return ae()}return aa(aE,am)}function am(aJ){if(aJ=="for"){return aa(az,r("]"))}if(aJ==","){return ae(at(ak,"]"))}return aa(at(aE,"]"))}function az(aJ){if(aJ=="for"){return ae(u,az)}if(aJ=="if"){return ae(an,az)}}function ao(aK,aJ){return aK.lastType=="operator"||aK.lastType==","||P.test(aJ.charAt(0))||/[,.]/.test(aJ.charAt(0))}return{startState:function(aK){var aJ={tokenize:U,lastType:"sof",cc:[],lexical:new J((aK||0)-l,0,"block",false),localVars:aj.localVars,context:aj.localVars&&{vars:aj.localVars},indented:0};if(aj.globalVars&&typeof aj.globalVars=="object"){aJ.globalVars=aj.globalVars}return aJ},token:function(aL,aK){if(aL.sol()){if(!aK.lexical.hasOwnProperty("align")){aK.lexical.align=false}aK.indented=aL.indentation();ax(aL,aK)}if(aK.tokenize!=aA&&aL.eatSpace()){return null}var aJ=aK.tokenize(aL,aK);if(S=="comment"){return aJ}aK.lastType=S=="operator"&&(G=="++"||G=="--")?"incdec":S;return f(aK,aJ,S,G,aL)},indent:function(aP,aJ){if(aP.tokenize==aA){return a.Pass}if(aP.tokenize!=U){return 0}var aO=aJ&&aJ.charAt(0),aM=aP.lexical;if(!/^\s*else\b/.test(aJ)){for(var aL=aP.cc.length-1;aL>=0;--aL){var aQ=aP.cc[aL];if(aQ==h){aM=aM.prev}else{if(aQ!=e){break}}}}if(aM.type=="stat"&&aO=="}"){aM=aM.prev}if(A&&aM.type==")"&&aM.prev.type=="stat"){aM=aM.prev}var aN=aM.type,aK=aO==aN;if(aN=="vardef"){return aM.indented+(aP.lastType=="operator"||aP.lastType==","?aM.info+1:0)}else{if(aN=="form"&&aO=="{"){return aM.indented}else{if(aN=="form"){return aM.indented+l}else{if(aN=="stat"){return aM.indented+(ao(aP,aJ)?A||l:0)}else{if(aM.info=="switch"&&!aK&&aj.doubleIndentSwitch!=false){return aM.indented+(/^(?:case|default)\b/.test(aJ)?l:2*l)}else{if(aM.align){return aM.column+(aK?0:1)}else{return aM.indented+(aK?0:l)}}}}}}},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:z?null:"/*",blockCommentEnd:z?null:"*/",lineComment:z?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:z?"json":"javascript",jsonldMode:aB,jsonMode:z}});a.registerHelper("wordChars","javascript",/[\w$]/);a.defineMIME("text/javascript","javascript");a.defineMIME("text/ecmascript","javascript");a.defineMIME("application/javascript","javascript");a.defineMIME("application/x-javascript","javascript");a.defineMIME("application/ecmascript","javascript");a.defineMIME("application/json",{name:"javascript",json:true});a.defineMIME("application/x-json",{name:"javascript",json:true});a.defineMIME("application/ld+json",{name:"javascript",jsonld:true});a.defineMIME("text/typescript",{name:"javascript",typescript:true});a.defineMIME("application/typescript",{name:"javascript",typescript:true})});(function(a){if(typeof exports=="object"&&typeof module=="object"){a(require("../../lib/codemirror"))}else{if(typeof define=="function"&&define.amd){define(["../../lib/codemirror"],a)}else{a(CodeMirror)}}})(function(p){p.defineMode("css",function(T,G){if(!G.propertyKeywords){G=p.resolveMode("text/css")}var M=T.indentUnit,y=G.tokenHooks,w=G.documentTypes||{},S=G.mediaTypes||{},I=G.mediaFeatures||{},F=G.propertyKeywords||{},z=G.nonStandardPropertyKeywords||{},B=G.fontProperties||{},R=G.counterDescriptors||{},L=G.colorKeywords||{},O=G.valueKeywords||{},J=G.allowNested;var A,K;function U(X,Y){A=Y;return X}function W(aa,Z){var Y=aa.next();if(y[Y]){var X=y[Y](aa,Z);if(X!==false){return X}}if(Y=="@"){aa.eatWhile(/[\w\\\-]/);return U("def",aa.current())}else{if(Y=="="||(Y=="~"||Y=="|")&&aa.eat("=")){return U(null,"compare")}else{if(Y=='"'||Y=="'"){Z.tokenize=H(Y);return Z.tokenize(aa,Z)}else{if(Y=="#"){aa.eatWhile(/[\w\\\-]/);return U("atom","hash")}else{if(Y=="!"){aa.match(/^\s*\w*/);return U("keyword","important")}else{if(/\d/.test(Y)||Y=="."&&aa.eat(/\d/)){aa.eatWhile(/[\w.%]/);return U("number","unit")}else{if(Y==="-"){if(/[\d.]/.test(aa.peek())){aa.eatWhile(/[\w.%]/);return U("number","unit")}else{if(aa.match(/^-[\w\\\-]+/)){aa.eatWhile(/[\w\\\-]/);if(aa.match(/^\s*:/,false)){return U("variable-2","variable-definition")}return U("variable-2","variable")}else{if(aa.match(/^\w+-/)){return U("meta","meta")}}}}else{if(/[,+>*\/]/.test(Y)){return U(null,"select-op")}else{if(Y=="."&&aa.match(/^-?[_a-z][_a-z0-9-]*/i)){return U("qualifier","qualifier")}else{if(/[:;{}\[\]\(\)]/.test(Y)){return U(null,Y)}else{if((Y=="u"&&aa.match(/rl(-prefix)?\(/))||(Y=="d"&&aa.match("omain("))||(Y=="r"&&aa.match("egexp("))){aa.backUp(1);Z.tokenize=V;return U("property","word")}else{if(/[\w\\\-]/.test(Y)){aa.eatWhile(/[\w\\\-]/);return U("property","word")}else{return U(null,null)}}}}}}}}}}}}}function H(X){return function(ab,Z){var aa=false,Y;while((Y=ab.next())!=null){if(Y==X&&!aa){if(X==")"){ab.backUp(1)}break}aa=!aa&&Y=="\\"}if(Y==X||!aa&&X!=")"){Z.tokenize=null}return U("string","string")}}function V(Y,X){Y.next();if(!Y.match(/\s*[\"\')]/,false)){X.tokenize=H(")")}else{X.tokenize=null}return U(null,"(")}function N(Y,X,Z){this.type=Y;this.indent=X;this.prev=Z}function D(Y,Z,X){Y.context=new N(X,Z.indentation()+M,Y.context);return X}function P(X){X.context=X.context.prev;return X.context.type}function x(X,Z,Y){return C[Y.context.type](X,Z,Y)}function Q(Y,aa,Z,ab){for(var X=ab||1;X>0;X--){Z.context=Z.context.prev}return x(Y,aa,Z)}function E(Y){var X=Y.current().toLowerCase();if(O.hasOwnProperty(X)){K="atom"}else{if(L.hasOwnProperty(X)){K="keyword"}else{K="variable"}}}var C={};C.top=function(X,Z,Y){if(X=="{"){return D(Y,Z,"block")}else{if(X=="}"&&Y.context.prev){return P(Y)}else{if(/@(media|supports|(-moz-)?document)/.test(X)){return D(Y,Z,"atBlock")}else{if(/@(font-face|counter-style)/.test(X)){Y.stateArg=X;return"restricted_atBlock_before"}else{if(/^@(-(moz|ms|o|webkit)-)?keyframes$/.test(X)){return"keyframes"}else{if(X&&X.charAt(0)=="@"){return D(Y,Z,"at")}else{if(X=="hash"){K="builtin"}else{if(X=="word"){K="tag"}else{if(X=="variable-definition"){return"maybeprop"}else{if(X=="interpolation"){return D(Y,Z,"interpolation")}else{if(X==":"){return"pseudo"}else{if(J&&X=="("){return D(Y,Z,"parens")}}}}}}}}}}}}return Y.context.type};C.block=function(X,aa,Y){if(X=="word"){var Z=aa.current().toLowerCase();if(F.hasOwnProperty(Z)){K="property";return"maybeprop"}else{if(z.hasOwnProperty(Z)){K="string-2";return"maybeprop"}else{if(J){K=aa.match(/^\s*:(?:\s|$)/,false)?"property":"tag";return"block"}else{K+=" error";return"maybeprop"}}}}else{if(X=="meta"){return"block"}else{if(!J&&(X=="hash"||X=="qualifier")){K="error";return"block"}else{return C.top(X,aa,Y)}}}};C.maybeprop=function(X,Z,Y){if(X==":"){return D(Y,Z,"prop")}return x(X,Z,Y)};C.prop=function(X,Z,Y){if(X==";"){return P(Y)}if(X=="{"&&J){return D(Y,Z,"propBlock")}if(X=="}"||X=="{"){return Q(X,Z,Y)}if(X=="("){return D(Y,Z,"parens")}if(X=="hash"&&!/^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/.test(Z.current())){K+=" error"}else{if(X=="word"){E(Z)}else{if(X=="interpolation"){return D(Y,Z,"interpolation")}}}return"prop"};C.propBlock=function(Y,X,Z){if(Y=="}"){return P(Z)}if(Y=="word"){K="property";return"maybeprop"}return Z.context.type};C.parens=function(X,Z,Y){if(X=="{"||X=="}"){return Q(X,Z,Y)}if(X==")"){return P(Y)}if(X=="("){return D(Y,Z,"parens")}if(X=="interpolation"){return D(Y,Z,"interpolation")}if(X=="word"){E(Z)}return"parens"};C.pseudo=function(X,Z,Y){if(X=="word"){K="variable-3";return Y.context.type}return x(X,Z,Y)};C.atBlock=function(X,aa,Y){if(X=="("){return D(Y,aa,"atBlock_parens")}if(X=="}"){return Q(X,aa,Y)}if(X=="{"){return P(Y)&&D(Y,aa,J?"block":"top")}if(X=="word"){var Z=aa.current().toLowerCase();if(Z=="only"||Z=="not"||Z=="and"||Z=="or"){K="keyword"}else{if(w.hasOwnProperty(Z)){K="tag"}else{if(S.hasOwnProperty(Z)){K="attribute"}else{if(I.hasOwnProperty(Z)){K="property"}else{if(F.hasOwnProperty(Z)){K="property"}else{if(z.hasOwnProperty(Z)){K="string-2"}else{if(O.hasOwnProperty(Z)){K="atom"}else{K="error"}}}}}}}}return Y.context.type};C.atBlock_parens=function(X,Z,Y){if(X==")"){return P(Y)}if(X=="{"||X=="}"){return Q(X,Z,Y,2)}return C.atBlock(X,Z,Y)};C.restricted_atBlock_before=function(X,Z,Y){if(X=="{"){return D(Y,Z,"restricted_atBlock")}if(X=="word"&&Y.stateArg=="@counter-style"){K="variable";return"restricted_atBlock_before"}return x(X,Z,Y)};C.restricted_atBlock=function(X,Z,Y){if(X=="}"){Y.stateArg=null;return P(Y)}if(X=="word"){if((Y.stateArg=="@font-face"&&!B.hasOwnProperty(Z.current().toLowerCase()))||(Y.stateArg=="@counter-style"&&!R.hasOwnProperty(Z.current().toLowerCase()))){K="error"}else{K="property"}return"maybeprop"}return"restricted_atBlock"};C.keyframes=function(X,Z,Y){if(X=="word"){K="variable";return"keyframes"}if(X=="{"){return D(Y,Z,"top")}return x(X,Z,Y)};C.at=function(X,Z,Y){if(X==";"){return P(Y)}if(X=="{"||X=="}"){return Q(X,Z,Y)}if(X=="word"){K="tag"}else{if(X=="hash"){K="builtin"}}return"at"};C.interpolation=function(X,Z,Y){if(X=="}"){return P(Y)}if(X=="{"||X==";"){return Q(X,Z,Y)}if(X=="word"){K="variable"}else{if(X!="variable"&&X!="("&&X!=")"){K="error"}}return"interpolation"};return{startState:function(X){return{tokenize:null,state:"top",stateArg:null,context:new N("top",X||0,null)}},token:function(Z,Y){if(!Y.tokenize&&Z.eatSpace()){return null}var X=(Y.tokenize||W)(Z,Y);if(X&&typeof X=="object"){A=X[1];X=X[0]}K=X;Y.state=C[Y.state](A,Z,Y);return K},indent:function(ab,Z){var Y=ab.context,aa=Z&&Z.charAt(0);var X=Y.indent;if(Y.type=="prop"&&(aa=="}"||aa==")")){Y=Y.prev}if(Y.prev&&(aa=="}"&&(Y.type=="block"||Y.type=="top"||Y.type=="interpolation"||Y.type=="restricted_atBlock")||aa==")"&&(Y.type=="parens"||Y.type=="atBlock_parens")||aa=="{"&&(Y.type=="at"||Y.type=="atBlock"))){X=Y.indent-M;Y=Y.prev}return X},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",fold:"brace"}});function g(y){var x={};for(var w=0;w<y.length;++w){x[y[w]]=true}return x}var k=["domain","regexp","url","url-prefix"],a=g(k);var b=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],t=g(b);var v=["width","min-width","max-width","height","min-height","max-height","device-width","min-device-width","max-device-width","device-height","min-device-height","max-device-height","aspect-ratio","min-aspect-ratio","max-aspect-ratio","device-aspect-ratio","min-device-aspect-ratio","max-device-aspect-ratio","color","min-color","max-color","color-index","min-color-index","max-color-index","monochrome","min-monochrome","max-monochrome","resolution","min-resolution","max-resolution","scan","grid"],i=g(v);var d=["align-content","align-items","align-self","alignment-adjust","alignment-baseline","anchor-point","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","azimuth","backface-visibility","background","background-attachment","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","baseline-shift","binding","bleed","bookmark-label","bookmark-level","bookmark-state","bookmark-target","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","clear","clip","color","color-profile","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","content","counter-increment","counter-reset","crop","cue","cue-after","cue-before","cursor","direction","display","dominant-baseline","drop-initial-after-adjust","drop-initial-after-align","drop-initial-before-adjust","drop-initial-before-align","drop-initial-size","drop-initial-value","elevation","empty-cells","fit","fit-position","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","float-offset","flow-from","flow-into","font","font-feature-settings","font-family","font-kerning","font-language-override","font-size","font-size-adjust","font-stretch","font-style","font-synthesis","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-weight","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-position","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","inline-box-align","justify-content","left","letter-spacing","line-break","line-height","line-stacking","line-stacking-ruby","line-stacking-shift","line-stacking-strategy","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marker-offset","marks","marquee-direction","marquee-loop","marquee-play-count","marquee-speed","marquee-style","max-height","max-width","min-height","min-width","move-to","nav-down","nav-index","nav-left","nav-right","nav-up","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-style","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","page-policy","pause","pause-after","pause-before","perspective","perspective-origin","pitch","pitch-range","play-during","position","presentation-level","punctuation-trim","quotes","region-break-after","region-break-before","region-break-inside","region-fragment","rendering-intent","resize","rest","rest-after","rest-before","richness","right","rotation","rotation-point","ruby-align","ruby-overhang","ruby-position","ruby-span","shape-image-threshold","shape-inside","shape-margin","shape-outside","size","speak","speak-as","speak-header","speak-numeral","speak-punctuation","speech-rate","stress","string-set","tab-size","table-layout","target","target-name","target-new","target-position","text-align","text-align-last","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-height","text-indent","text-justify","text-outline","text-overflow","text-shadow","text-size-adjust","text-space-collapse","text-transform","text-underline-position","text-wrap","top","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","volume","white-space","widows","width","word-break","word-spacing","word-wrap","z-index","clip-path","clip-rule","mask","enable-background","filter","flood-color","flood-opacity","lighting-color","stop-color","stop-opacity","pointer-events","color-interpolation","color-interpolation-filters","color-rendering","fill","fill-opacity","fill-rule","image-rendering","marker","marker-end","marker-mid","marker-start","shape-rendering","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-rendering","baseline-shift","dominant-baseline","glyph-orientation-horizontal","glyph-orientation-vertical","text-anchor","writing-mode"],h=g(d);var m=["scrollbar-arrow-color","scrollbar-base-color","scrollbar-dark-shadow-color","scrollbar-face-color","scrollbar-highlight-color","scrollbar-shadow-color","scrollbar-3d-light-color","scrollbar-track-color","shape-inside","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","zoom"],e=g(m);var r=["font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"],f=g(r);var o=["additive-symbols","fallback","negative","pad","prefix","range","speak-as","suffix","symbols","system"],s=g(o);var c=["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"],l=g(c);var j=["above","absolute","activeborder","additive","activecaption","afar","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","amharic","amharic-abegede","antialiased","appworkspace","arabic-indic","armenian","asterisks","attr","auto","avoid","avoid-column","avoid-page","avoid-region","background","backwards","baseline","below","bidi-override","binary","bengali","blink","block","block-axis","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","bullets","button","button-bevel","buttonface","buttonhighlight","buttonshadow","buttontext","calc","cambodian","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","cjk-earthly-branch","cjk-heavenly-stem","cjk-ideographic","clear","clip","close-quote","col-resize","collapse","column","compact","condensed","contain","content","content-box","context-menu","continuous","copy","counter","counters","cover","crop","cross","crosshair","currentcolor","cursive","cyclic","dashed","decimal","decimal-leading-zero","default","default-button","destination-atop","destination-in","destination-out","destination-over","devanagari","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic","ethiopic-abegede","ethiopic-abegede-am-et","ethiopic-abegede-gez","ethiopic-abegede-ti-er","ethiopic-abegede-ti-et","ethiopic-halehame-aa-er","ethiopic-halehame-aa-et","ethiopic-halehame-am-et","ethiopic-halehame-gez","ethiopic-halehame-om-et","ethiopic-halehame-sid-et","ethiopic-halehame-so-et","ethiopic-halehame-ti-er","ethiopic-halehame-ti-et","ethiopic-halehame-tig","ethiopic-numeric","ew-resize","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fixed","flat","flex","footnotes","forwards","from","geometricPrecision","georgian","graytext","groove","gujarati","gurmukhi","hand","hangul","hangul-consonant","hebrew","help","hidden","hide","higher","highlight","highlighttext","hiragana","hiragana-iroha","horizontal","hsl","hsla","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-table","inset","inside","intrinsic","invert","italic","japanese-formal","japanese-informal","justify","kannada","katakana","katakana-iroha","keep-all","khmer","korean-hangul-formal","korean-hanja-formal","korean-hanja-informal","landscape","lao","large","larger","left","level","lighter","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-alpha","lower-armenian","lower-greek","lower-hexadecimal","lower-latin","lower-norwegian","lower-roman","lowercase","ltr","malayalam","match","matrix","matrix3d","media-controls-background","media-current-time-display","media-fullscreen-button","media-mute-button","media-play-button","media-return-to-realtime-button","media-rewind-button","media-seek-back-button","media-seek-forward-button","media-slider","media-sliderthumb","media-time-remaining-display","media-volume-slider","media-volume-slider-container","media-volume-sliderthumb","medium","menu","menulist","menulist-button","menulist-text","menulist-textfield","menutext","message-box","middle","min-intrinsic","mix","mongolian","monospace","move","multiple","myanmar","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","octal","open-quote","optimizeLegibility","optimizeSpeed","oriya","oromo","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","persian","perspective","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row-resize","rtl","run-in","running","s-resize","sans-serif","scale","scale3d","scaleX","scaleY","scaleZ","scroll","scrollbar","se-resize","searchfield","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","semi-condensed","semi-expanded","separate","serif","show","sidama","simp-chinese-formal","simp-chinese-informal","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","solid","somali","source-atop","source-in","source-out","source-over","space","spell-out","square","square-button","start","static","status-bar","stretch","stroke","sub","subpixel-antialiased","super","sw-resize","symbolic","symbols","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","tamil","telugu","text","text-bottom","text-top","textarea","textfield","thai","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","tibetan","tigre","tigrinya-er","tigrinya-er-abegede","tigrinya-et","tigrinya-et-abegede","to","top","trad-chinese-formal","trad-chinese-informal","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","up","upper-alpha","upper-armenian","upper-greek","upper-hexadecimal","upper-latin","upper-norwegian","upper-roman","uppercase","urdu","url","var","vertical","vertical-text","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","x-large","x-small","xor","xx-large","xx-small"],q=g(j);var n=k.concat(b).concat(v).concat(d).concat(m).concat(c).concat(j);p.registerHelper("hintWords","css",n);function u(z,y){var w=false,x;while((x=z.next())!=null){if(w&&x=="/"){y.tokenize=null;break}w=(x=="*")}return["comment","comment"]}p.defineMIME("text/css",{documentTypes:a,mediaTypes:t,mediaFeatures:i,propertyKeywords:h,nonStandardPropertyKeywords:e,fontProperties:f,counterDescriptors:s,colorKeywords:l,valueKeywords:q,tokenHooks:{"/":function(x,w){if(!x.eat("*")){return false}w.tokenize=u;return u(x,w)}},name:"css"});p.defineMIME("text/x-scss",{mediaTypes:t,mediaFeatures:i,propertyKeywords:h,nonStandardPropertyKeywords:e,colorKeywords:l,valueKeywords:q,fontProperties:f,allowNested:true,tokenHooks:{"/":function(x,w){if(x.eat("/")){x.skipToEnd();return["comment","comment"]}else{if(x.eat("*")){w.tokenize=u;return u(x,w)}else{return["operator","operator"]}}},":":function(w){if(w.match(/\s*\{/)){return[null,"{"]}return false},"$":function(w){w.match(/^[\w-]+/);if(w.match(/^\s*:/,false)){return["variable-2","variable-definition"]}return["variable-2","variable"]},"#":function(w){if(!w.eat("{")){return false}return[null,"interpolation"]}},name:"css",helperType:"scss"});p.defineMIME("text/x-less",{mediaTypes:t,mediaFeatures:i,propertyKeywords:h,nonStandardPropertyKeywords:e,colorKeywords:l,valueKeywords:q,fontProperties:f,allowNested:true,tokenHooks:{"/":function(x,w){if(x.eat("/")){x.skipToEnd();return["comment","comment"]}else{if(x.eat("*")){w.tokenize=u;return u(x,w)}else{return["operator","operator"]}}},"@":function(w){if(w.eat("{")){return[null,"interpolation"]}if(w.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/,false)){return false}w.eatWhile(/[\w\\\-]/);if(w.match(/^\s*:/,false)){return["variable-2","variable-definition"]}return["variable-2","variable"]},"&":function(){return["atom","atom"]}},name:"css",helperType:"less"})});(function(a){if(typeof exports=="object"&&typeof module=="object"){a(require("../../lib/codemirror"))}else{if(typeof define=="function"&&define.amd){define(["../../lib/codemirror"],a)}else{a(CodeMirror)}}})(function(c){c.defineMode("clike",function(L,s){var F=L.indentUnit,B=s.statementIndentUnit||F,G=s.dontAlignCalls,v=s.keywords||{},z=s.types||{},M=s.builtin||{},H=s.blockKeywords||{},D=s.defKeywords||{},o=s.atoms||{},n=s.hooks||{},A=s.multiLineStrings,w=s.indentStatements!==false,u=s.indentSwitch!==false,q=s.namespaceSeparator;var x=/[+\-*&%=<>!?|\/]/;var J,r;function N(S,Q){var P=S.next();if(n[P]){var O=n[P](S,Q);if(O!==false){return O}}if(P=='"'||P=="'"){Q.tokenize=t(P);return Q.tokenize(S,Q)}if(/[\[\]{}\(\),;\:\.]/.test(P)){J=P;return null}if(/\d/.test(P)){S.eatWhile(/[\w\.]/);return"number"}if(P=="/"){if(S.eat("*")){Q.tokenize=C;return C(S,Q)}if(S.eat("/")){S.skipToEnd();return"comment"}}if(x.test(P)){S.eatWhile(x);return"operator"}S.eatWhile(/[\w\$_\xa1-\uffff]/);if(q){while(S.match(q)){S.eatWhile(/[\w\$_\xa1-\uffff]/)}}var R=S.current();if(v.propertyIsEnumerable(R)){if(H.propertyIsEnumerable(R)){J="newstatement"}if(D.propertyIsEnumerable(R)){r=true}return"keyword"}if(z.propertyIsEnumerable(R)){return"variable-3"}if(M.propertyIsEnumerable(R)){if(H.propertyIsEnumerable(R)){J="newstatement"}return"builtin"}if(o.propertyIsEnumerable(R)){return"atom"}return"variable"}function t(O){return function(T,R){var S=false,Q,P=false;while((Q=T.next())!=null){if(Q==O&&!S){P=true;break}S=!S&&Q=="\\"}if(P||!(S||A)){R.tokenize=null}return"string"}}function C(R,Q){var O=false,P;while(P=R.next()){if(P=="/"&&O){Q.tokenize=null;break}O=(P=="*")}return"comment"}function I(S,P,O,R,Q){this.indented=S;this.column=P;this.type=O;this.align=R;this.prev=Q}function y(O){return O=="statement"||O=="switchstatement"||O=="namespace"}function p(R,P,Q){var O=R.indented;if(R.context&&y(R.context.type)&&!y(Q)){O=R.context.indented}return R.context=new I(O,P,Q,null,R.context)}function K(P){var O=P.context.type;if(O==")"||O=="]"||O=="}"){P.indented=P.context.indented}return P.context=P.context.prev}function m(P,O){if(O.prevToken=="variable"||O.prevToken=="variable-3"){return true}if(/\S(?:[^- ]>|[*\]])\s*$|\*$/.test(P.string.slice(0,P.start))){return true}}function E(O){for(;;){if(!O||O.type=="top"){return true}if(O.type=="}"&&O.prev.type!="namespace"){return false}O=O.prev}}return{startState:function(O){return{tokenize:null,context:new I((O||0)-F,0,"top",false),indented:0,startOfLine:true,prevToken:null}},token:function(T,S){var P=S.context;if(T.sol()){if(P.align==null){P.align=false}S.indented=T.indentation();S.startOfLine=true}if(T.eatSpace()){return null}J=r=null;var R=(S.tokenize||N)(T,S);if(R=="comment"||R=="meta"){return R}if(P.align==null){P.align=true}if((J==";"||J==":"||J==",")){while(y(S.context.type)){K(S)}}else{if(J=="{"){p(S,T.column(),"}")}else{if(J=="["){p(S,T.column(),"]")}else{if(J=="("){p(S,T.column(),")")}else{if(J=="}"){while(y(P.type)){P=K(S)}if(P.type=="}"){P=K(S)}while(y(P.type)){P=K(S)}}else{if(J==P.type){K(S)}else{if(w&&(((P.type=="}"||P.type=="top")&&J!=";")||(y(P.type)&&J=="newstatement"))){var Q="statement";if(J=="newstatement"&&u&&T.current()=="switch"){Q="switchstatement"}else{if(R=="keyword"&&T.current()=="namespace"){Q="namespace"}}p(S,T.column(),Q)}}}}}}}if(R=="variable"&&((S.prevToken=="def"||(s.typeFirstDefinitions&&m(T,S)&&E(S.context)&&T.match(/^\s*\(/,false))))){R="def"}if(n.token){var O=n.token(T,S,R);if(O!==undefined){R=O}}if(R=="def"&&s.styleDefs===false){R="variable"}S.startOfLine=false;S.prevToken=r?"def":R||J;return R},indent:function(T,P){if(T.tokenize!=N&&T.tokenize!=null){return c.Pass}var O=T.context,S=P&&P.charAt(0);if(y(O.type)&&S=="}"){O=O.prev}var Q=S==O.type;var R=O.prev&&O.prev.type=="switchstatement";if(y(O.type)){return O.indented+(S=="{"?0:B)}if(O.align&&(!G||O.type!=")")){return O.column+(Q?0:1)}if(O.type==")"&&!Q){return O.indented+B}return O.indented+(Q?0:F)+(!Q&&R&&!/^(?:case|default)\b/.test(P)?F:0)},electricInput:u?/^\s*(?:case .*?:|default:|\{\}?|\})$/:/^\s*[{}]$/,blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//",fold:"brace"}});function i(p){var n={},o=p.split(" ");for(var m=0;m<o.length;++m){n[o[m]]=true}return n}var l="auto if break case register continue return default do sizeof static else struct switch extern typedef float union for goto while enum const volatile";var j="int long char short double float unsigned signed void size_t ptrdiff_t";function d(n,m){if(!m.startOfLine){return false}for(;;){if(n.skipTo("\\")){n.next();if(n.eol()){m.tokenize=d;break}}else{n.skipToEnd();m.tokenize=null;break}}return"meta"}function a(m,n){if(n.prevToken=="variable-3"){return"variable-3"}return false}function k(o,n){o.backUp(1);if(o.match(/(R|u8R|uR|UR|LR)/)){var m=o.match(/"([^\s\\()]{0,16})\(/);if(!m){return false}n.cpp11RawStringDelim=m[1];n.tokenize=g;return g(o,n)}if(o.match(/(u8|u|U|L)/)){if(o.match(/["']/,false)){return"string"}return false}o.next();return false}function e(n){var m=/(\w+)::(\w+)$/.exec(n);return m&&m[1]==m[2]}function h(o,n){var m;while((m=o.next())!=null){if(m=='"'&&!o.eat('"')){n.tokenize=null;break}}return"string"}function g(p,n){var o=n.cpp11RawStringDelim.replace(/[^\w\s]/g,"\\$&");var m=p.match(new RegExp(".*?\\)"+o+'"'));if(m){n.tokenize=null}else{p.skipToEnd()}return"string"}function b(m,q){if(typeof m=="string"){m=[m]}var p=[];function o(r){if(r){for(var s in r){if(r.hasOwnProperty(s)){p.push(s)}}}}o(q.keywords);o(q.types);o(q.builtin);o(q.atoms);if(p.length){q.helperType=m[0];c.registerHelper("hintWords",m[0],p)}for(var n=0;n<m.length;++n){c.defineMIME(m[n],q)}}b(["text/x-csrc","text/x-c","text/x-chdr"],{name:"clike",keywords:i(l),types:i(j+" bool _Complex _Bool float_t double_t intptr_t intmax_t int8_t int16_t int32_t int64_t uintptr_t uintmax_t uint8_t uint16_t uint32_t uint64_t"),blockKeywords:i("case do else for if switch while struct"),defKeywords:i("struct"),typeFirstDefinitions:true,atoms:i("null true false"),hooks:{"#":d,"*":a},modeProps:{fold:["brace","include"]}});b(["text/x-c++src","text/x-c++hdr"],{name:"clike",keywords:i(l+" asm dynamic_cast namespace reinterpret_cast try explicit new static_cast typeid catch operator template typename class friend private this using const_cast inline public throw virtual delete mutable protected alignas alignof constexpr decltype nullptr noexcept thread_local final static_assert override"),types:i(j+" bool wchar_t"),blockKeywords:i("catch class do else finally for if struct switch try while"),defKeywords:i("class namespace struct enum union"),typeFirstDefinitions:true,atoms:i("true false null"),hooks:{"#":d,"*":a,u:k,U:k,L:k,R:k,token:function(o,n,m){if(m=="variable"&&o.peek()=="("&&(n.prevToken==";"||n.prevToken==null||n.prevToken=="}")&&e(o.current())){return"def"}}},namespaceSeparator:"::",modeProps:{fold:["brace","include"]}});b("text/x-java",{name:"clike",keywords:i("abstract assert break case catch class const continue default do else enum extends final finally float for goto if implements import instanceof interface native new package private protected public return static strictfp super switch synchronized this throw throws transient try volatile while"),types:i("byte short int long float double boolean char void Boolean Byte Character Double Float Integer Long Number Object Short String StringBuffer StringBuilder Void"),blockKeywords:i("catch class do else finally for if switch try while"),defKeywords:i("class interface package enum"),typeFirstDefinitions:true,atoms:i("true false null"),hooks:{"@":function(m){m.eatWhile(/[\w\$_]/);return"meta"}},modeProps:{fold:["brace","import"]}});b("text/x-csharp",{name:"clike",keywords:i("abstract as async await base break case catch checked class const continue default delegate do else enum event explicit extern finally fixed for foreach goto if implicit in interface internal is lock namespace new operator out override params private protected public readonly ref return sealed sizeof stackalloc static struct switch this throw try typeof unchecked unsafe using virtual void volatile while add alias ascending descending dynamic from get global group into join let orderby partial remove select set value var yield"),types:i("Action Boolean Byte Char DateTime DateTimeOffset Decimal Double Func Guid Int16 Int32 Int64 Object SByte Single String Task TimeSpan UInt16 UInt32 UInt64 bool byte char decimal double short int long object sbyte float string ushort uint ulong"),blockKeywords:i("catch class do else finally for foreach if struct switch try while"),defKeywords:i("class interface namespace struct var"),typeFirstDefinitions:true,atoms:i("true false null"),hooks:{"@":function(n,m){if(n.eat('"')){m.tokenize=h;return h(n,m)}n.eatWhile(/[\w\$_]/);return"meta"}}});function f(o,m){var n=false;while(!o.eol()){if(!n&&o.match('"""')){m.tokenize=null;break}n=o.next()=="\\"&&!n}return"string"}b("text/x-scala",{name:"clike",keywords:i("abstract case catch class def do else extends false final finally for forSome if implicit import lazy match new null object override package private protected return sealed super this throw trait try type val var while with yield _ : = => <- <: <% >: # @ assert assume require print println printf readLine readBoolean readByte readShort readChar readInt readLong readFloat readDouble :: #:: "),types:i("AnyVal App Application Array BufferedIterator BigDecimal BigInt Char Console Either Enumeration Equiv Error Exception Fractional Function IndexedSeq Integral Iterable Iterator List Map Numeric Nil NotNull Option Ordered Ordering PartialFunction PartialOrdering Product Proxy Range Responder Seq Serializable Set Specializable Stream StringBuilder StringContext Symbol Throwable Traversable TraversableOnce Tuple Unit Vector Boolean Byte Character CharSequence Class ClassLoader Cloneable Comparable Compiler Double Exception Float Integer Long Math Number Object Package Pair Process Runtime Runnable SecurityManager Short StackTraceElement StrictMath String StringBuffer System Thread ThreadGroup ThreadLocal Throwable Triple Void"),multiLineStrings:true,blockKeywords:i("catch class do else finally for forSome if match switch try while"),defKeywords:i("class def object package trait type val var"),atoms:i("true false null"),indentStatements:false,indentSwitch:false,hooks:{"@":function(m){m.eatWhile(/[\w\$_]/);return"meta"},'"':function(n,m){if(!n.match('""')){return false}m.tokenize=f;return m.tokenize(n,m)},"'":function(m){m.eatWhile(/[\w\$_\xa1-\uffff]/);return"atom"}},modeProps:{closeBrackets:{triples:'"'}}});b(["x-shader/x-vertex","x-shader/x-fragment"],{name:"clike",keywords:i("sampler1D sampler2D sampler3D samplerCube sampler1DShadow sampler2DShadow const attribute uniform varying break continue discard return for while do if else struct in out inout"),types:i("float int bool void vec2 vec3 vec4 ivec2 ivec3 ivec4 bvec2 bvec3 bvec4 mat2 mat3 mat4"),blockKeywords:i("for while do if else struct"),builtin:i("radians degrees sin cos tan asin acos atan pow exp log exp2 sqrt inversesqrt abs sign floor ceil fract mod min max clamp mix step smoothstep length distance dot cross normalize ftransform faceforward reflect refract matrixCompMult lessThan lessThanEqual greaterThan greaterThanEqual equal notEqual any all not texture1D texture1DProj texture1DLod texture1DProjLod texture2D texture2DProj texture2DLod texture2DProjLod texture3D texture3DProj texture3DLod texture3DProjLod textureCube textureCubeLod shadow1D shadow2D shadow1DProj shadow2DProj shadow1DLod shadow2DLod shadow1DProjLod shadow2DProjLod dFdx dFdy fwidth noise1 noise2 noise3 noise4"),atoms:i("true false gl_FragColor gl_SecondaryColor gl_Normal gl_Vertex gl_MultiTexCoord0 gl_MultiTexCoord1 gl_MultiTexCoord2 gl_MultiTexCoord3 gl_MultiTexCoord4 gl_MultiTexCoord5 gl_MultiTexCoord6 gl_MultiTexCoord7 gl_FogCoord gl_PointCoord gl_Position gl_PointSize gl_ClipVertex gl_FrontColor gl_BackColor gl_FrontSecondaryColor gl_BackSecondaryColor gl_TexCoord gl_FogFragCoord gl_FragCoord gl_FrontFacing gl_FragData gl_FragDepth gl_ModelViewMatrix gl_ProjectionMatrix gl_ModelViewProjectionMatrix gl_TextureMatrix gl_NormalMatrix gl_ModelViewMatrixInverse gl_ProjectionMatrixInverse gl_ModelViewProjectionMatrixInverse gl_TexureMatrixTranspose gl_ModelViewMatrixInverseTranspose gl_ProjectionMatrixInverseTranspose gl_ModelViewProjectionMatrixInverseTranspose gl_TextureMatrixInverseTranspose gl_NormalScale gl_DepthRange gl_ClipPlane gl_Point gl_FrontMaterial gl_BackMaterial gl_LightSource gl_LightModel gl_FrontLightModelProduct gl_BackLightModelProduct gl_TextureColor gl_EyePlaneS gl_EyePlaneT gl_EyePlaneR gl_EyePlaneQ gl_FogParameters gl_MaxLights gl_MaxClipPlanes gl_MaxTextureUnits gl_MaxTextureCoords gl_MaxVertexAttribs gl_MaxVertexUniformComponents gl_MaxVaryingFloats gl_MaxVertexTextureImageUnits gl_MaxTextureImageUnits gl_MaxFragmentUniformComponents gl_MaxCombineTextureImageUnits gl_MaxDrawBuffers"),indentSwitch:false,hooks:{"#":d},modeProps:{fold:["brace","include"]}});b("text/x-nesc",{name:"clike",keywords:i(l+"as atomic async call command component components configuration event generic implementation includes interface module new norace nx_struct nx_union post provides signal task uses abstract extends"),types:i(j),blockKeywords:i("case do else for if switch while struct"),atoms:i("null true false"),hooks:{"#":d},modeProps:{fold:["brace","include"]}});b("text/x-objectivec",{name:"clike",keywords:i(l+"inline restrict _Bool _Complex _Imaginery BOOL Class bycopy byref id IMP in inout nil oneway out Protocol SEL self super atomic nonatomic retain copy readwrite readonly"),types:i(j),atoms:i("YES NO NULL NILL ON OFF true false"),hooks:{"@":function(m){m.eatWhile(/[\w\$]/);return"keyword"},"#":d},modeProps:{fold:"brace"}})});(function(a){if(typeof exports=="object"&&typeof module=="object"){a(require("../../lib/codemirror"),require("../htmlmixed/htmlmixed"),require("../clike/clike"))}else{if(typeof define=="function"&&define.amd){define(["../../lib/codemirror","../htmlmixed/htmlmixed","../clike/clike"],a)}else{a(CodeMirror)}}})(function(d){function f(m){var k={},l=m.split(" ");for(var j=0;j<l.length;++j){k[l[j]]=true}return k}function e(l,j,k){if(l.length==0){return b(j)}return function(p,o){var n=l[0];for(var m=0;m<n.length;m++){if(p.match(n[m][0])){o.tokenize=e(l.slice(1),j);return n[m][1]}}o.tokenize=b(j,k);return"string"}}function b(k,j){return function(m,l){return c(m,l,k,j)}}function c(n,l,k,j){if(j!==false&&n.match("${",false)||n.match("{$",false)){l.tokenize=null;return"string"}if(j!==false&&n.match(/^\$[a-zA-Z_][a-zA-Z0-9_]*/)){if(n.match("[",false)){l.tokenize=e([[["[",null]],[[/\d[\w\.]*/,"number"],[/\$[a-zA-Z_][a-zA-Z0-9_]*/,"variable-2"],[/[\w\$]+/,"variable"]],[["]",null]]],k,j)}if(n.match(/\-\>\w/,false)){l.tokenize=e([[["->",null]],[[/[\w]+/,"variable"]]],k,j)}return"variable-2"}var m=false;while(!n.eol()&&(m||j===false||(!n.match("{$",false)&&!n.match(/^(\$[a-zA-Z_][a-zA-Z0-9_]*|\$\{)/,false)))){if(!m&&n.match(k)){l.tokenize=null;l.tokStack.pop();l.tokStack.pop();break}m=n.next()=="\\"&&!m}return"string"}var h="abstract and array as break case catch class clone const continue declare default do else elseif enddeclare endfor endforeach endif endswitch endwhile extends final for foreach function global goto if implements interface instanceof namespace new or private protected public static switch throw trait try use var while xor die echo empty exit eval include include_once isset list require require_once return print unset __halt_compiler self static parent yield insteadof finally";var i="true false null TRUE FALSE NULL __CLASS__ __DIR__ __FILE__ __LINE__ __METHOD__ __FUNCTION__ __NAMESPACE__ __TRAIT__";var a="func_num_args func_get_arg func_get_args strlen strcmp strncmp strcasecmp strncasecmp each error_reporting define defined trigger_error user_error set_error_handler restore_error_handler get_declared_classes get_loaded_extensions extension_loaded get_extension_funcs debug_backtrace constant bin2hex hex2bin sleep usleep time mktime gmmktime strftime gmstrftime strtotime date gmdate getdate localtime checkdate flush wordwrap htmlspecialchars htmlentities html_entity_decode md5 md5_file crc32 getimagesize image_type_to_mime_type phpinfo phpversion phpcredits strnatcmp strnatcasecmp substr_count strspn strcspn strtok strtoupper strtolower strpos strrpos strrev hebrev hebrevc nl2br basename dirname pathinfo stripslashes stripcslashes strstr stristr strrchr str_shuffle str_word_count strcoll substr substr_replace quotemeta ucfirst ucwords strtr addslashes addcslashes rtrim str_replace str_repeat count_chars chunk_split trim ltrim strip_tags similar_text explode implode setlocale localeconv parse_str str_pad chop strchr sprintf printf vprintf vsprintf sscanf fscanf parse_url urlencode urldecode rawurlencode rawurldecode readlink linkinfo link unlink exec system escapeshellcmd escapeshellarg passthru shell_exec proc_open proc_close rand srand getrandmax mt_rand mt_srand mt_getrandmax base64_decode base64_encode abs ceil floor round is_finite is_nan is_infinite bindec hexdec octdec decbin decoct dechex base_convert number_format fmod ip2long long2ip getenv putenv getopt microtime gettimeofday getrusage uniqid quoted_printable_decode set_time_limit get_cfg_var magic_quotes_runtime set_magic_quotes_runtime get_magic_quotes_gpc get_magic_quotes_runtime import_request_variables error_log serialize unserialize memory_get_usage var_dump var_export debug_zval_dump print_r highlight_file show_source highlight_string ini_get ini_get_all ini_set ini_alter ini_restore get_include_path set_include_path restore_include_path setcookie header headers_sent connection_aborted connection_status ignore_user_abort parse_ini_file is_uploaded_file move_uploaded_file intval floatval doubleval strval gettype settype is_null is_resource is_bool is_long is_float is_int is_integer is_double is_real is_numeric is_string is_array is_object is_scalar ereg ereg_replace eregi eregi_replace split spliti join sql_regcase dl pclose popen readfile rewind rmdir umask fclose feof fgetc fgets fgetss fread fopen fpassthru ftruncate fstat fseek ftell fflush fwrite fputs mkdir rename copy tempnam tmpfile file file_get_contents stream_select stream_context_create stream_context_set_params stream_context_set_option stream_context_get_options stream_filter_prepend stream_filter_append fgetcsv flock get_meta_tags stream_set_write_buffer set_file_buffer set_socket_blocking stream_set_blocking socket_set_blocking stream_get_meta_data stream_register_wrapper stream_wrapper_register stream_set_timeout socket_set_timeout socket_get_status realpath fnmatch fsockopen pfsockopen pack unpack get_browser crypt opendir closedir chdir getcwd rewinddir readdir dir glob fileatime filectime filegroup fileinode filemtime fileowner fileperms filesize filetype file_exists is_writable is_writeable is_readable is_executable is_file is_dir is_link stat lstat chown touch clearstatcache mail ob_start ob_flush ob_clean ob_end_flush ob_end_clean ob_get_flush ob_get_clean ob_get_length ob_get_level ob_get_status ob_get_contents ob_implicit_flush ob_list_handlers ksort krsort natsort natcasesort asort arsort sort rsort usort uasort uksort shuffle array_walk count end prev next reset current key min max in_array array_search extract compact array_fill range array_multisort array_push array_pop array_shift array_unshift array_splice array_slice array_merge array_merge_recursive array_keys array_values array_count_values array_reverse array_reduce array_pad array_flip array_change_key_case array_rand array_unique array_intersect array_intersect_assoc array_diff array_diff_assoc array_sum array_filter array_map array_chunk array_key_exists pos sizeof key_exists assert assert_options version_compare ftok str_rot13 aggregate session_name session_module_name session_save_path session_id session_regenerate_id session_decode session_register session_unregister session_is_registered session_encode session_start session_destroy session_unset session_set_save_handler session_cache_limiter session_cache_expire session_set_cookie_params session_get_cookie_params session_write_close preg_match preg_match_all preg_replace preg_replace_callback preg_split preg_quote preg_grep overload ctype_alnum ctype_alpha ctype_cntrl ctype_digit ctype_lower ctype_graph ctype_print ctype_punct ctype_space ctype_upper ctype_xdigit virtual apache_request_headers apache_note apache_lookup_uri apache_child_terminate apache_setenv apache_response_headers apache_get_version getallheaders mysql_connect mysql_pconnect mysql_close mysql_select_db mysql_create_db mysql_drop_db mysql_query mysql_unbuffered_query mysql_db_query mysql_list_dbs mysql_list_tables mysql_list_fields mysql_list_processes mysql_error mysql_errno mysql_affected_rows mysql_insert_id mysql_result mysql_num_rows mysql_num_fields mysql_fetch_row mysql_fetch_array mysql_fetch_assoc mysql_fetch_object mysql_data_seek mysql_fetch_lengths mysql_fetch_field mysql_field_seek mysql_free_result mysql_field_name mysql_field_table mysql_field_len mysql_field_type mysql_field_flags mysql_escape_string mysql_real_escape_string mysql_stat mysql_thread_id mysql_client_encoding mysql_get_client_info mysql_get_host_info mysql_get_proto_info mysql_get_server_info mysql_info mysql mysql_fieldname mysql_fieldtable mysql_fieldlen mysql_fieldtype mysql_fieldflags mysql_selectdb mysql_createdb mysql_dropdb mysql_freeresult mysql_numfields mysql_numrows mysql_listdbs mysql_listtables mysql_listfields mysql_db_name mysql_dbname mysql_tablename mysql_table_name pg_connect pg_pconnect pg_close pg_connection_status pg_connection_busy pg_connection_reset pg_host pg_dbname pg_port pg_tty pg_options pg_ping pg_query pg_send_query pg_cancel_query pg_fetch_result pg_fetch_row pg_fetch_assoc pg_fetch_array pg_fetch_object pg_fetch_all pg_affected_rows pg_get_result pg_result_seek pg_result_status pg_free_result pg_last_oid pg_num_rows pg_num_fields pg_field_name pg_field_num pg_field_size pg_field_type pg_field_prtlen pg_field_is_null pg_get_notify pg_get_pid pg_result_error pg_last_error pg_last_notice pg_put_line pg_end_copy pg_copy_to pg_copy_from pg_trace pg_untrace pg_lo_create pg_lo_unlink pg_lo_open pg_lo_close pg_lo_read pg_lo_write pg_lo_read_all pg_lo_import pg_lo_export pg_lo_seek pg_lo_tell pg_escape_string pg_escape_bytea pg_unescape_bytea pg_client_encoding pg_set_client_encoding pg_meta_data pg_convert pg_insert pg_update pg_delete pg_select pg_exec pg_getlastoid pg_cmdtuples pg_errormessage pg_numrows pg_numfields pg_fieldname pg_fieldsize pg_fieldtype pg_fieldnum pg_fieldprtlen pg_fieldisnull pg_freeresult pg_result pg_loreadall pg_locreate pg_lounlink pg_loopen pg_loclose pg_loread pg_lowrite pg_loimport pg_loexport http_response_code get_declared_traits getimagesizefromstring socket_import_stream stream_set_chunk_size trait_exists header_register_callback class_uses session_status session_register_shutdown echo print global static exit array empty eval isset unset die include require include_once require_once json_decode json_encode json_last_error json_last_error_msg curl_close curl_copy_handle curl_errno curl_error curl_escape curl_exec curl_file_create curl_getinfo curl_init curl_multi_add_handle curl_multi_close curl_multi_exec curl_multi_getcontent curl_multi_info_read curl_multi_init curl_multi_remove_handle curl_multi_select curl_multi_setopt curl_multi_strerror curl_pause curl_reset curl_setopt_array curl_setopt curl_share_close curl_share_init curl_share_setopt curl_strerror curl_unescape curl_version mysqli_affected_rows mysqli_autocommit mysqli_change_user mysqli_character_set_name mysqli_close mysqli_commit mysqli_connect_errno mysqli_connect_error mysqli_connect mysqli_data_seek mysqli_debug mysqli_dump_debug_info mysqli_errno mysqli_error_list mysqli_error mysqli_fetch_all mysqli_fetch_array mysqli_fetch_assoc mysqli_fetch_field_direct mysqli_fetch_field mysqli_fetch_fields mysqli_fetch_lengths mysqli_fetch_object mysqli_fetch_row mysqli_field_count mysqli_field_seek mysqli_field_tell mysqli_free_result mysqli_get_charset mysqli_get_client_info mysqli_get_client_stats mysqli_get_client_version mysqli_get_connection_stats mysqli_get_host_info mysqli_get_proto_info mysqli_get_server_info mysqli_get_server_version mysqli_info mysqli_init mysqli_insert_id mysqli_kill mysqli_more_results mysqli_multi_query mysqli_next_result mysqli_num_fields mysqli_num_rows mysqli_options mysqli_ping mysqli_prepare mysqli_query mysqli_real_connect mysqli_real_escape_string mysqli_real_query mysqli_reap_async_query mysqli_refresh mysqli_rollback mysqli_select_db mysqli_set_charset mysqli_set_local_infile_default mysqli_set_local_infile_handler mysqli_sqlstate mysqli_ssl_set mysqli_stat mysqli_stmt_init mysqli_store_result mysqli_thread_id mysqli_thread_safe mysqli_use_result mysqli_warning_count";d.registerHelper("hintWords","php",[h,i,a].join(" ").split(" "));d.registerHelper("wordChars","php",/[\w$]/);var g={name:"clike",helperType:"php",keywords:f(h),blockKeywords:f("catch do else elseif for foreach if switch try while finally"),defKeywords:f("class function interface namespace trait"),atoms:f(i),builtin:f(a),multiLineStrings:true,hooks:{"$":function(j){j.eatWhile(/[\w\$_]/);return"variable-2"},"<":function(m,k){if(m.match(/<</)){var j=m.eat("'");m.eatWhile(/[\w\.]/);var l=m.current().slice(3+(j?1:0));if(j){m.eat("'")}if(l){(k.tokStack||(k.tokStack=[])).push(l,0);k.tokenize=b(l,j?false:true);return"string"}}return false},"#":function(j){while(!j.eol()&&!j.match("?>",false)){j.next()}return"comment"},"/":function(j){if(j.eat("/")){while(!j.eol()&&!j.match("?>",false)){j.next()}return"comment"}return false},'"':function(j,k){(k.tokStack||(k.tokStack=[])).push('"',0);k.tokenize=b('"');return"string"},"{":function(j,k){if(k.tokStack&&k.tokStack.length){k.tokStack[k.tokStack.length-1]++}return false},"}":function(j,k){if(k.tokStack&&k.tokStack.length>0&&!--k.tokStack[k.tokStack.length-1]){k.tokenize=b(k.tokStack[k.tokStack.length-2])}return false}}};d.defineMode("php",function(l,m){var n=d.getMode(l,"text/html");var j=d.getMode(l,g);function k(u,s){var r=s.curMode==j;if(u.sol()&&s.pending&&s.pending!='"'&&s.pending!="'"){s.pending=null}if(!r){if(u.match(/^<\?\w*/)){s.curMode=j;s.curState=s.php;return"meta"}if(s.pending=='"'||s.pending=="'"){while(!u.eol()&&u.next()!=s.pending){}var q="string"}else{if(s.pending&&u.pos<s.pending.end){u.pos=s.pending.end;var q=s.pending.style}else{var q=n.token(u,s.curState)}}if(s.pending){s.pending=null}var t=u.current(),p=t.search(/<\?/),o;if(p!=-1){if(q=="string"&&(o=t.match(/[\'\"]$/))&&!/\?>/.test(t)){s.pending=o[0]}else{s.pending={end:u.pos,style:q}}u.backUp(t.length-p)}return q}else{if(r&&s.php.tokenize==null&&u.match("?>")){s.curMode=n;s.curState=s.html;return"meta"}else{return j.token(u,s.curState)}}}return{startState:function(){var o=d.startState(n),p=d.startState(j);return{html:o,php:p,curMode:m.startOpen?j:n,curState:m.startOpen?p:o,pending:null}},copyState:function(r){var p=r.html,q=d.copyState(n,p),t=r.php,o=d.copyState(j,t),s;if(r.curMode==n){s=q}else{s=o}return{html:q,php:o,curMode:r.curMode,curState:s,pending:r.pending}},token:k,indent:function(p,o){if((p.curMode!=j&&/^\s*<\//.test(o))||(p.curMode==j&&/^\?>/.test(o))){return n.indent(p.html,o)}return p.curMode.indent(p.curState,o)},blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//",innerMode:function(o){return{state:o.curState,mode:o.curMode}}}},"htmlmixed","clike");d.defineMIME("application/x-httpd-php","php");d.defineMIME("application/x-httpd-php-open",{name:"php",startOpen:true});d.defineMIME("text/x-php",g)});
1
+ (function(a){if(typeof exports=="object"&&typeof module=="object"){a(require("../../lib/codemirror"),require("../xml/xml"),require("../javascript/javascript"),require("../css/css"))}else{if(typeof define=="function"&&define.amd){define(["../../lib/codemirror","../xml/xml","../javascript/javascript","../css/css"],a)}else{a(CodeMirror)}}})(function(d){var g={script:[["lang",/(javascript|babel)/i,"javascript"],["type",/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^$/i,"javascript"],["type",/./,"text/plain"],[null,null,"javascript"]],style:[["lang",/^css$/i,"css"],["type",/^(text\/)?(x-)?(stylesheet|css)$/i,"css"],["type",/./,"text/plain"],[null,null,"css"]]};function f(n,j,k){var m=n.current(),l=m.search(j);if(l>-1){n.backUp(m.length-l)}else{if(m.match(/<\/?$/)){n.backUp(m.length);if(!n.match(j,false)){n.match(m)}}}return k}var e={};function c(j){var k=e[j];if(k){return k}return e[j]=new RegExp("\\s+"+j+"\\s*=\\s*('|\")?([^'\"]+)('|\")?\\s*")}function a(l,j){var k=l.match(c(j));return k?k[2]:""}function i(k,j){return new RegExp((j?"^":"")+"</s*"+k+"s*>","i")}function h(o,n){for(var j in o){var k=n[j]||(n[j]=[]);var m=o[j];for(var l=m.length-1;l>=0;l--){k.unshift(m[l])}}}function b(l,m){for(var k=0;k<l.length;k++){var j=l[k];if(!j[0]||j[1].test(a(m,j[0]))){return j[2]}}}d.defineMode("htmlmixed",function(k,o){var q=d.getMode(k,{name:"xml",htmlMode:true,multilineTagIndentFactor:o.multilineTagIndentFactor,multilineTagIndentPastTag:o.multilineTagIndentPastTag});var j={};var p=o&&o.tags,n=o&&o.scriptTypes;h(g,j);if(p){h(p,j)}if(n){for(var m=n.length-1;m>=0;m--){j.script.unshift(["type",n[m].matches,n[m].mode])}}function l(z,r){var s=q.token(z,r.htmlState),A=/\btag\b/.test(s),u;if(A&&!/[<>\s\/]/.test(z.current())&&(u=r.htmlState.tagName&&r.htmlState.tagName.toLowerCase())&&j.hasOwnProperty(u)){r.inTag=u+" "}else{if(r.inTag&&A&&/>$/.test(z.current())){var t=/^([\S]+) (.*)/.exec(r.inTag);r.inTag=null;var y=z.current()==">"&&b(j[t[1]],t[2]);var x=d.getMode(k,y);var w=i(t[1],true),v=i(t[1],false);r.token=function(C,B){if(C.match(w,false)){B.token=l;B.localState=B.localMode=null;return null}return f(C,v,B.localMode.token(C,B.localState))};r.localMode=x;r.localState=d.startState(x,q.indent(r.htmlState,""))}else{if(r.inTag){r.inTag+=z.current();if(z.eol()){r.inTag+=" "}}}}return s}return{startState:function(){var r=q.startState();return{token:l,inTag:null,localMode:null,localState:null,htmlState:r}},copyState:function(s){var r;if(s.localState){r=d.copyState(s.localMode,s.localState)}return{token:s.token,inTag:s.inTag,localMode:s.localMode,localState:r,htmlState:d.copyState(q,s.htmlState)}},token:function(s,r){return r.token(s,r)},indent:function(s,r){if(!s.localMode||/^\s*<\//.test(r)){return q.indent(s.htmlState,r)}else{if(s.localMode.indent){return s.localMode.indent(s.localState,r)}else{return d.Pass}}},innerMode:function(r){return{state:r.localState||r.htmlState,mode:r.localMode||q}}}},"xml","javascript","css");d.defineMIME("text/html","htmlmixed")});(function(a){if(typeof exports=="object"&&typeof module=="object"){a(require("../../lib/codemirror"))}else{if(typeof define=="function"&&define.amd){define(["../../lib/codemirror"],a)}else{a(CodeMirror)}}})(function(a){var b={autoSelfClosers:{area:true,base:true,br:true,col:true,command:true,embed:true,frame:true,hr:true,img:true,input:true,keygen:true,link:true,meta:true,param:true,source:true,track:true,wbr:true,menuitem:true},implicitlyClosed:{dd:true,li:true,optgroup:true,option:true,p:true,rp:true,rt:true,tbody:true,td:true,tfoot:true,th:true,tr:true},contextGrabbers:{dd:{dd:true,dt:true},dt:{dd:true,dt:true},li:{li:true},option:{option:true,optgroup:true},optgroup:{optgroup:true},p:{address:true,article:true,aside:true,blockquote:true,dir:true,div:true,dl:true,fieldset:true,footer:true,form:true,h1:true,h2:true,h3:true,h4:true,h5:true,h6:true,header:true,hgroup:true,hr:true,menu:true,nav:true,ol:true,p:true,pre:true,section:true,table:true,ul:true},rp:{rp:true,rt:true},rt:{rp:true,rt:true},tbody:{tbody:true,tfoot:true},td:{td:true,th:true},tfoot:{tbody:true},th:{td:true,th:true},thead:{tbody:true,tfoot:true},tr:{tr:true}},doNotIndent:{pre:true},allowUnquoted:true,allowMissing:true,caseFold:true};var c={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:false,allowMissing:false,caseFold:false};a.defineMode("xml",function(m,y){var r=m.indentUnit;var z={};var l=y.htmlMode?b:c;for(var f in l){z[f]=l[f]}for(var f in y){z[f]=y[f]}var g,h;function p(G,F){function D(H){F.tokenize=H;return H(G,F)}var E=G.next();if(E=="<"){if(G.eat("!")){if(G.eat("[")){if(G.match("CDATA[")){return D(x("atom","]]>"))}else{return null}}else{if(G.match("--")){return D(x("comment","-->"))}else{if(G.match("DOCTYPE",true,true)){G.eatWhile(/[\w\._\-]/);return D(A(1))}else{return null}}}}else{if(G.eat("?")){G.eatWhile(/[\w\._\-]/);F.tokenize=x("meta","?>");return"meta"}else{g=G.eat("/")?"closeTag":"openTag";F.tokenize=o;return"tag bracket"}}}else{if(E=="&"){var C;if(G.eat("#")){if(G.eat("x")){C=G.eatWhile(/[a-fA-F\d]/)&&G.eat(";")}else{C=G.eatWhile(/[\d]/)&&G.eat(";")}}else{C=G.eatWhile(/[\w\.\-:]/)&&G.eat(";")}return C?"atom":"error"}else{G.eatWhile(/[^&<]/);return null}}}p.isInText=true;function o(F,E){var D=F.next();if(D==">"||(D=="/"&&F.eat(">"))){E.tokenize=p;g=D==">"?"endTag":"selfcloseTag";return"tag bracket"}else{if(D=="="){g="equals";return null}else{if(D=="<"){E.tokenize=p;E.state=n;E.tagName=E.tagStart=null;var C=E.tokenize(F,E);return C?C+" tag error":"tag error"}else{if(/[\'\"]/.test(D)){E.tokenize=k(D);E.stringStartCol=F.column();return E.tokenize(F,E)}else{F.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/);return"word"}}}}}function k(C){var D=function(F,E){while(!F.eol()){if(F.next()==C){E.tokenize=o;break}}return"string"};D.isInAttribute=true;return D}function x(D,C){return function(F,E){while(!F.eol()){if(F.match(C)){E.tokenize=p;break}F.next()}return D}}function A(C){return function(F,E){var D;while((D=F.next())!=null){if(D=="<"){E.tokenize=A(C+1);return E.tokenize(F,E)}else{if(D==">"){if(C==1){E.tokenize=p;break}else{E.tokenize=A(C-1);return E.tokenize(F,E)}}}}return"meta"}}function t(D,C,E){this.prev=D.context;this.tagName=C;this.indent=D.indented;this.startOfLine=E;if(z.doNotIndent.hasOwnProperty(C)||(D.context&&D.context.noIndent)){this.noIndent=true}}function w(C){if(C.context){C.context=C.context.prev}}function s(E,D){var C;while(true){if(!E.context){return}C=E.context.tagName;if(!z.contextGrabbers.hasOwnProperty(C)||!z.contextGrabbers[C].hasOwnProperty(D)){return}w(E)}}function n(C,E,D){if(C=="openTag"){D.tagStart=E.column();return d}else{if(C=="closeTag"){return v}else{return n}}}function d(C,E,D){if(C=="word"){D.tagName=E.current();h="tag";return e}else{h="error";return d}}function v(D,F,E){if(D=="word"){var C=F.current();if(E.context&&E.context.tagName!=C&&z.implicitlyClosed.hasOwnProperty(E.context.tagName)){w(E)}if((E.context&&E.context.tagName==C)||z.matchClosing===false){h="tag";return u}else{h="tag error";return B}}else{h="error";return B}}function u(D,C,E){if(D!="endTag"){h="error";return u}w(E);return n}function B(C,E,D){h="error";return u(C,E,D)}function e(F,D,G){if(F=="word"){h="attribute";return j}else{if(F=="endTag"||F=="selfcloseTag"){var E=G.tagName,C=G.tagStart;G.tagName=G.tagStart=null;if(F=="selfcloseTag"||z.autoSelfClosers.hasOwnProperty(E)){s(G,E)}else{s(G,E);G.context=new t(G,E,C==G.indented)}return n}}h="error";return e}function j(C,E,D){if(C=="equals"){return q}if(!z.allowMissing){h="error"}return e(C,E,D)}function q(C,E,D){if(C=="string"){return i}if(C=="word"&&z.allowUnquoted){h="string";return e}h="error";return e(C,E,D)}function i(C,E,D){if(C=="string"){return i}return e(C,E,D)}return{startState:function(C){var D={tokenize:p,state:n,indented:C||0,tagName:null,tagStart:null,context:null};if(C!=null){D.baseIndent=C}return D},token:function(E,D){if(!D.tagName&&E.sol()){D.indented=E.indentation()}if(E.eatSpace()){return null}g=null;var C=D.tokenize(E,D);if((C||g)&&C!="comment"){h=null;D.state=D.state(g||C,E,D);if(h){C=h=="error"?C+" error":h}}return C},indent:function(H,D,G){var F=H.context;if(H.tokenize.isInAttribute){if(H.tagStart==H.indented){return H.stringStartCol+1}else{return H.indented+r}}if(F&&F.noIndent){return a.Pass}if(H.tokenize!=o&&H.tokenize!=p){return G?G.match(/^(\s*)/)[0].length:0}if(H.tagName){if(z.multilineTagIndentPastTag!==false){return H.tagStart+H.tagName.length+2}else{return H.tagStart+r*(z.multilineTagIndentFactor||1)}}if(z.alignCDATA&&/<!\[CDATA\[/.test(D)){return 0}var C=D&&/^<(\/)?([\w_:\.-]*)/.exec(D);if(C&&C[1]){while(F){if(F.tagName==C[2]){F=F.prev;break}else{if(z.implicitlyClosed.hasOwnProperty(F.tagName)){F=F.prev}else{break}}}}else{if(C){while(F){var E=z.contextGrabbers[F.tagName];if(E&&E.hasOwnProperty(C[2])){F=F.prev}else{break}}}}while(F&&F.prev&&!F.startOfLine){F=F.prev}if(F){return F.indent+r}else{return H.baseIndent||0}},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:z.htmlMode?"html":"xml",helperType:z.htmlMode?"html":"xml",skipAttribute:function(C){if(C.state==q){C.state=e}}}});a.defineMIME("text/xml","xml");a.defineMIME("application/xml","xml");if(!a.mimeModes.hasOwnProperty("text/html")){a.defineMIME("text/html",{name:"xml",htmlMode:true})}});(function(a){if(typeof exports=="object"&&typeof module=="object"){a(require("../../lib/codemirror"))}else{if(typeof define=="function"&&define.amd){define(["../../lib/codemirror"],a)}else{a(CodeMirror)}}})(function(a){function b(e,d,c){return/^(?:operator|sof|keyword c|case|new|[\[{}\(,;:]|=>)$/.test(d.lastType)||(d.lastType=="quasi"&&/\{\s*$/.test(e.string.slice(0,e.pos-(c||0))))}a.defineMode("javascript",function(ac,am){var m=ac.indentUnit;var C=am.statementIndent;var aE=am.jsonld;var B=am.json||aE;var h=am.typescript;var ax=am.wordCharacters||/[\w$\xa1-\uffff]/;var av=function(){function aU(aW){return{type:aW,style:"keyword"}}var aP=aU("keyword a"),aN=aU("keyword b"),aM=aU("keyword c");var aO=aU("operator"),aS={type:"atom",style:"atom"};var aQ={"if":aU("if"),"while":aP,"with":aP,"else":aN,"do":aN,"try":aN,"finally":aN,"return":aM,"break":aM,"continue":aM,"new":aU("new"),"delete":aM,"throw":aM,"debugger":aM,"var":aU("var"),"const":aU("var"),let:aU("var"),"function":aU("function"),"catch":aU("catch"),"for":aU("for"),"switch":aU("switch"),"case":aU("case"),"default":aU("default"),"in":aO,"typeof":aO,"instanceof":aO,"true":aS,"false":aS,"null":aS,"undefined":aS,"NaN":aS,"Infinity":aS,"this":aU("this"),"class":aU("class"),"super":aU("atom"),yield:aM,"export":aU("export"),"import":aU("import"),"extends":aM};if(h){var aV={type:"variable",style:"variable-3"};var aR={"interface":aU("class"),"implements":aM,namespace:aM,module:aU("module"),"enum":aU("module"),"public":aU("modifier"),"private":aU("modifier"),"protected":aU("modifier"),"abstract":aU("modifier"),as:aO,string:aV,number:aV,"boolean":aV,any:aV};for(var aT in aR){aQ[aT]=aR[aT]}}return aQ}();var R=/[+\-*&%=<>!?|~^]/;var au=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function H(aP){var aN=false,aM,aO=false;while((aM=aP.next())!=null){if(!aN){if(aM=="/"&&!aO){return}if(aM=="["){aO=true}else{if(aO&&aM=="]"){aO=false}}}aN=!aN&&aM=="\\"}}var U,I;function N(aO,aN,aM){U=aO;I=aM;return aN}function W(aQ,aO){var aM=aQ.next();if(aM=='"'||aM=="'"){aO.tokenize=T(aM);return aO.tokenize(aQ,aO)}else{if(aM=="."&&aQ.match(/^\d+(?:[eE][+\-]?\d+)?/)){return N("number","number")}else{if(aM=="."&&aQ.match("..")){return N("spread","meta")}else{if(/[\[\]{}\(\),;\:\.]/.test(aM)){return N(aM)}else{if(aM=="="&&aQ.eat(">")){return N("=>","operator")}else{if(aM=="0"&&aQ.eat(/x/i)){aQ.eatWhile(/[\da-f]/i);return N("number","number")}else{if(aM=="0"&&aQ.eat(/o/i)){aQ.eatWhile(/[0-7]/i);return N("number","number")}else{if(aM=="0"&&aQ.eat(/b/i)){aQ.eatWhile(/[01]/i);return N("number","number")}else{if(/\d/.test(aM)){aQ.match(/^\d*(?:\.\d*)?(?:[eE][+\-]?\d+)?/);return N("number","number")}else{if(aM=="/"){if(aQ.eat("*")){aO.tokenize=aD;return aD(aQ,aO)}else{if(aQ.eat("/")){aQ.skipToEnd();return N("comment","comment")}else{if(b(aQ,aO,1)){H(aQ);aQ.match(/^\b(([gimyu])(?![gimyu]*\2))+\b/);return N("regexp","string-2")}else{aQ.eatWhile(R);return N("operator","operator",aQ.current())}}}}else{if(aM=="`"){aO.tokenize=aF;return aF(aQ,aO)}else{if(aM=="#"){aQ.skipToEnd();return N("error","error")}else{if(R.test(aM)){aQ.eatWhile(R);return N("operator","operator",aQ.current())}else{if(ax.test(aM)){aQ.eatWhile(ax);var aP=aQ.current(),aN=av.propertyIsEnumerable(aP)&&av[aP];return(aN&&aO.lastType!=".")?N(aN.type,aN.style,aP):N("variable","variable",aP)}}}}}}}}}}}}}}}function T(aM){return function(aQ,aO){var aP=false,aN;if(aE&&aQ.peek()=="@"&&aQ.match(au)){aO.tokenize=W;return N("jsonld-keyword","meta")}while((aN=aQ.next())!=null){if(aN==aM&&!aP){break}aP=!aP&&aN=="\\"}if(!aP){aO.tokenize=W}return N("string","string")}}function aD(aP,aO){var aM=false,aN;while(aN=aP.next()){if(aN=="/"&&aM){aO.tokenize=W;break}aM=(aN=="*")}return N("comment","comment")}function aF(aP,aN){var aO=false,aM;while((aM=aP.next())!=null){if(!aO&&(aM=="`"||aM=="$"&&aP.eat("{"))){aN.tokenize=W;break}aO=!aO&&aM=="\\"}return N("quasi","string-2",aP.current())}var n="([{}])";function aA(aS,aP){if(aP.fatArrowAt){aP.fatArrowAt=null}var aO=aS.string.indexOf("=>",aS.start);if(aO<0){return}var aR=0,aN=false;for(var aT=aO-1;aT>=0;--aT){var aM=aS.string.charAt(aT);var aQ=n.indexOf(aM);if(aQ>=0&&aQ<3){if(!aR){++aT;break}if(--aR==0){break}}else{if(aQ>=3&&aQ<6){++aR}else{if(ax.test(aM)){aN=true}else{if(/["'\/]/.test(aM)){return}else{if(aN&&!aR){++aT;break}}}}}}if(aN&&!aR){aP.fatArrowAt=aT}}var c={atom:true,number:true,variable:true,string:true,regexp:true,"this":true,"jsonld-keyword":true};function L(aR,aN,aM,aQ,aO,aP){this.indented=aR;this.column=aN;this.type=aM;this.prev=aO;this.info=aP;if(aQ!=null){this.align=aQ}}function u(aP,aO){for(var aN=aP.localVars;aN;aN=aN.next){if(aN.name==aO){return true}}for(var aM=aP.context;aM;aM=aM.prev){for(var aN=aM.vars;aN;aN=aN.next){if(aN.name==aO){return true}}}}function g(aQ,aN,aM,aP,aR){var aS=aQ.cc;F.state=aQ;F.stream=aR;F.marked=null,F.cc=aS;F.style=aN;if(!aQ.lexical.hasOwnProperty("align")){aQ.lexical.align=true}while(true){var aO=aS.length?aS.pop():B?aq:aK;if(aO(aM,aP)){while(aS.length&&aS[aS.length-1].lex){aS.pop()()}if(F.marked){return F.marked}if(aM=="variable"&&u(aQ,aP)){return"variable-2"}return aN}}}var F={state:null,column:null,marked:null,cc:null};function ad(){for(var aM=arguments.length-1;aM>=0;aM--){F.cc.push(arguments[aM])}}function ai(){ad.apply(null,arguments);return true}function az(aN){function aM(aQ){for(var aP=aQ;aP;aP=aP.next){if(aP.name==aN){return true}}return false}var aO=F.state;F.marked="def";if(aO.context){if(aM(aO.localVars)){return}aO.localVars={name:aN,next:aO.localVars}}else{if(aM(aO.globalVars)){return}if(am.globalVars){aO.globalVars={name:aN,next:aO.globalVars}}}}var s={name:"this",next:{name:"arguments"}};function y(){F.state.context={prev:F.state.context,vars:F.state.localVars};F.state.localVars=s}function z(){F.state.localVars=F.state.context.vars;F.state.context=F.state.context.prev}function aI(aN,aO){var aM=function(){var aR=F.state,aP=aR.indented;if(aR.lexical.type=="stat"){aP=aR.lexical.indented}else{for(var aQ=aR.lexical;aQ&&aQ.type==")"&&aQ.align;aQ=aQ.prev){aP=aQ.indented}}aR.lexical=new L(aP,F.stream.column(),aN,null,aR.lexical,aO)};aM.lex=true;return aM}function i(){var aM=F.state;if(aM.lexical.prev){if(aM.lexical.type==")"){aM.indented=aM.lexical.indented}aM.lexical=aM.lexical.prev}}i.lex=true;function t(aM){function aN(aO){if(aO==aM){return ai()}else{if(aM==";"){return ad()}else{return ai(aN)}}}return aN}function aK(aM,aN){if(aM=="var"){return ai(aI("vardef",aN.length),e,t(";"),i)}if(aM=="keyword a"){return ai(aI("form"),aq,aK,i)}if(aM=="keyword b"){return ai(aI("form"),aK,i)}if(aM=="{"){return ai(aI("}"),A,i)}if(aM==";"){return ai()}if(aM=="if"){if(F.state.lexical.info=="else"&&F.state.cc[F.state.cc.length-1]==i){F.state.cc.pop()()}return ai(aI("form"),aq,aK,i,f)}if(aM=="function"){return ai(O)}if(aM=="for"){return ai(aI("form"),w,aK,i)}if(aM=="variable"){return ai(aI("stat"),aL)}if(aM=="switch"){return ai(aI("form"),aq,aI("}","switch"),t("{"),A,i,i)}if(aM=="case"){return ai(aq,t(":"))}if(aM=="default"){return ai(t(":"))}if(aM=="catch"){return ai(aI("form"),y,t("("),ag,t(")"),aK,i,z)}if(aM=="class"){return ai(aI("form"),Y,i)}if(aM=="export"){return ai(aI("stat"),aJ,i)}if(aM=="import"){return ai(aI("stat"),aj,i)}if(aM=="module"){return ai(aI("form"),j,aI("}"),t("{"),A,i,i)}return ad(aI("stat"),aq,t(";"),i)}function aq(aM){return ab(aM,false)}function aH(aM){return ab(aM,true)}function ab(aN,aP){if(F.state.fatArrowAt==F.stream.start){var aM=aP?P:Z;if(aN=="("){return ai(y,aI(")"),aw(j,")"),i,t("=>"),aM,z)}else{if(aN=="variable"){return ad(y,j,t("=>"),aM,z)}}}var aO=aP?k:ae;if(c.hasOwnProperty(aN)){return ai(aO)}if(aN=="function"){return ai(O,aO)}if(aN=="keyword c"){return ai(aP?an:al)}if(aN=="("){return ai(aI(")"),al,aC,t(")"),i,aO)}if(aN=="operator"||aN=="spread"){return ai(aP?aH:aq)}if(aN=="["){return ai(aI("]"),o,i,aO)}if(aN=="{"){return aB(v,"}",null,aO)}if(aN=="quasi"){return ad(S,aO)}if(aN=="new"){return ai(J(aP))}return ai()}function al(aM){if(aM.match(/[;\}\)\],]/)){return ad()}return ad(aq)}function an(aM){if(aM.match(/[;\}\)\],]/)){return ad()}return ad(aH)}function ae(aM,aN){if(aM==","){return ai(aq)}return k(aM,aN,false)}function k(aM,aO,aQ){var aN=aQ==false?ae:k;var aP=aQ==false?aq:aH;if(aM=="=>"){return ai(y,aQ?P:Z,z)}if(aM=="operator"){if(/\+\+|--/.test(aO)){return ai(aN)}if(aO=="?"){return ai(aq,t(":"),aP)}return ai(aP)}if(aM=="quasi"){return ad(S,aN)}if(aM==";"){return}if(aM=="("){return aB(aH,")","call",aN)}if(aM=="."){return ai(ao,aN)}if(aM=="["){return ai(aI("]"),al,t("]"),i,aN)}}function S(aM,aN){if(aM!="quasi"){return ad()}if(aN.slice(aN.length-2)!="${"){return ai(S)}return ai(aq,r)}function r(aM){if(aM=="}"){F.marked="string-2";F.state.tokenize=aF;return ai(S)}}function Z(aM){aA(F.stream,F.state);return ad(aM=="{"?aK:aq)}function P(aM){aA(F.stream,F.state);return ad(aM=="{"?aK:aH)}function J(aM){return function(aN){if(aN=="."){return ai(aM?p:X)}else{return ad(aM?aH:aq)}}}function X(aM,aN){if(aN=="target"){F.marked="keyword";return ai(ae)}}function p(aM,aN){if(aN=="target"){F.marked="keyword";return ai(k)}}function aL(aM){if(aM==":"){return ai(i,aK)}return ad(ae,t(";"),i)}function ao(aM){if(aM=="variable"){F.marked="property";return ai()}}function v(aM,aN){if(aM=="variable"||F.style=="keyword"){F.marked="property";if(aN=="get"||aN=="set"){return ai(K)}return ai(M)}else{if(aM=="number"||aM=="string"){F.marked=aE?"property":(F.style+" property");return ai(M)}else{if(aM=="jsonld-keyword"){return ai(M)}else{if(aM=="modifier"){return ai(v)}else{if(aM=="["){return ai(aq,t("]"),M)}else{if(aM=="spread"){return ai(aq)}}}}}}}function K(aM){if(aM!="variable"){return ad(M)}F.marked="property";return ai(O)}function M(aM){if(aM==":"){return ai(aH)}if(aM=="("){return ad(O)}}function aw(aO,aM){function aN(aQ){if(aQ==","){var aP=F.state.lexical;if(aP.info=="call"){aP.pos=(aP.pos||0)+1}return ai(aO,aN)}if(aQ==aM){return ai()}return ai(t(aM))}return function(aP){if(aP==aM){return ai()}return ad(aO,aN)}}function aB(aP,aM,aO){for(var aN=3;aN<arguments.length;aN++){F.cc.push(arguments[aN])}return ai(aI(aM,aO),aw(aP,aM),i)}function A(aM){if(aM=="}"){return ai()}return ad(aK,A)}function V(aM){if(h&&aM==":"){return ai(ah)}}function ay(aM,aN){if(aN=="="){return ai(aH)}}function ah(aM){if(aM=="variable"){F.marked="variable-3";return ai()}}function e(){return ad(j,V,af,aa)}function j(aM,aN){if(aM=="modifier"){return ai(j)}if(aM=="variable"){az(aN);return ai()}if(aM=="spread"){return ai(j)}if(aM=="["){return aB(j,"]")}if(aM=="{"){return aB(aG,"}")}}function aG(aM,aN){if(aM=="variable"&&!F.stream.match(/^\s*:/,false)){az(aN);return ai(af)}if(aM=="variable"){F.marked="property"}if(aM=="spread"){return ai(j)}if(aM=="}"){return ad()}return ai(t(":"),j,af)}function af(aM,aN){if(aN=="="){return ai(aH)}}function aa(aM){if(aM==","){return ai(e)}}function f(aM,aN){if(aM=="keyword b"&&aN=="else"){return ai(aI("form","else"),aK,i)}}function w(aM){if(aM=="("){return ai(aI(")"),G,t(")"),i)}}function G(aM){if(aM=="var"){return ai(e,t(";"),E)}if(aM==";"){return ai(E)}if(aM=="variable"){return ai(x)}return ad(aq,t(";"),E)}function x(aM,aN){if(aN=="in"||aN=="of"){F.marked="keyword";return ai(aq)}return ai(ae,E)}function E(aM,aN){if(aM==";"){return ai(D)}if(aN=="in"||aN=="of"){F.marked="keyword";return ai(aq)}return ad(aq,t(";"),D)}function D(aM){if(aM!=")"){ai(aq)}}function O(aM,aN){if(aN=="*"){F.marked="keyword";return ai(O)}if(aM=="variable"){az(aN);return ai(O)}if(aM=="("){return ai(y,aI(")"),aw(ag,")"),i,aK,z)}}function ag(aM){if(aM=="spread"){return ai(ag)}return ad(j,V,ay)}function Y(aM,aN){if(aM=="variable"){az(aN);return ai(Q)}}function Q(aM,aN){if(aN=="extends"){return ai(aq,Q)}if(aM=="{"){return ai(aI("}"),q,i)}}function q(aM,aN){if(aM=="variable"||F.style=="keyword"){if(aN=="static"){F.marked="keyword";return ai(q)}F.marked="property";if(aN=="get"||aN=="set"){return ai(d,O,q)}return ai(O,q)}if(aN=="*"){F.marked="keyword";return ai(q)}if(aM==";"){return ai(q)}if(aM=="}"){return ai()}}function d(aM){if(aM!="variable"){return ad()}F.marked="property";return ai()}function aJ(aM,aN){if(aN=="*"){F.marked="keyword";return ai(ak,t(";"))}if(aN=="default"){F.marked="keyword";return ai(aq,t(";"))}return ad(aK)}function aj(aM){if(aM=="string"){return ai()}return ad(at,ak)}function at(aM,aN){if(aM=="{"){return aB(at,"}")}if(aM=="variable"){az(aN)}if(aN=="*"){F.marked="keyword"}return ai(l)}function l(aM,aN){if(aN=="as"){F.marked="keyword";return ai(at)}}function ak(aM,aN){if(aN=="from"){F.marked="keyword";return ai(aq)}}function o(aM){if(aM=="]"){return ai()}return ad(aH,ap)}function ap(aM){if(aM=="for"){return ad(aC,t("]"))}if(aM==","){return ai(aw(an,"]"))}return ad(aw(aH,"]"))}function aC(aM){if(aM=="for"){return ai(w,aC)}if(aM=="if"){return ai(aq,aC)}}function ar(aN,aM){return aN.lastType=="operator"||aN.lastType==","||R.test(aM.charAt(0))||/[,.]/.test(aM.charAt(0))}return{startState:function(aN){var aM={tokenize:W,lastType:"sof",cc:[],lexical:new L((aN||0)-m,0,"block",false),localVars:am.localVars,context:am.localVars&&{vars:am.localVars},indented:aN||0};if(am.globalVars&&typeof am.globalVars=="object"){aM.globalVars=am.globalVars}return aM},token:function(aO,aN){if(aO.sol()){if(!aN.lexical.hasOwnProperty("align")){aN.lexical.align=false}aN.indented=aO.indentation();aA(aO,aN)}if(aN.tokenize!=aD&&aO.eatSpace()){return null}var aM=aN.tokenize(aO,aN);if(U=="comment"){return aM}aN.lastType=U=="operator"&&(I=="++"||I=="--")?"incdec":U;return g(aN,aM,U,I,aO)},indent:function(aS,aM){if(aS.tokenize==aD){return a.Pass}if(aS.tokenize!=W){return 0}var aR=aM&&aM.charAt(0),aP=aS.lexical;if(!/^\s*else\b/.test(aM)){for(var aO=aS.cc.length-1;aO>=0;--aO){var aT=aS.cc[aO];if(aT==i){aP=aP.prev}else{if(aT!=f){break}}}}if(aP.type=="stat"&&aR=="}"){aP=aP.prev}if(C&&aP.type==")"&&aP.prev.type=="stat"){aP=aP.prev}var aQ=aP.type,aN=aR==aQ;if(aQ=="vardef"){return aP.indented+(aS.lastType=="operator"||aS.lastType==","?aP.info+1:0)}else{if(aQ=="form"&&aR=="{"){return aP.indented}else{if(aQ=="form"){return aP.indented+m}else{if(aQ=="stat"){return aP.indented+(ar(aS,aM)?C||m:0)}else{if(aP.info=="switch"&&!aN&&am.doubleIndentSwitch!=false){return aP.indented+(/^(?:case|default)\b/.test(aM)?m:2*m)}else{if(aP.align){return aP.column+(aN?0:1)}else{return aP.indented+(aN?0:m)}}}}}}},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:B?null:"/*",blockCommentEnd:B?null:"*/",lineComment:B?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:B?"json":"javascript",jsonldMode:aE,jsonMode:B,expressionAllowed:b,skipExpression:function(aM){var aN=aM.cc[aM.cc.length-1];if(aN==aq||aN==aH){aM.cc.pop()}}}});a.registerHelper("wordChars","javascript",/[\w$]/);a.defineMIME("text/javascript","javascript");a.defineMIME("text/ecmascript","javascript");a.defineMIME("application/javascript","javascript");a.defineMIME("application/x-javascript","javascript");a.defineMIME("application/ecmascript","javascript");a.defineMIME("application/json",{name:"javascript",json:true});a.defineMIME("application/x-json",{name:"javascript",json:true});a.defineMIME("application/ld+json",{name:"javascript",jsonld:true});a.defineMIME("text/typescript",{name:"javascript",typescript:true});a.defineMIME("application/typescript",{name:"javascript",typescript:true})});(function(a){if(typeof exports=="object"&&typeof module=="object"){a(require("../../lib/codemirror"))}else{if(typeof define=="function"&&define.amd){define(["../../lib/codemirror"],a)}else{a(CodeMirror)}}})(function(r){r.defineMode("css",function(Y,J){var D=J.inline;if(!J.propertyKeywords){J=r.resolveMode("text/css")}var Q=Y.indentUnit,A=J.tokenHooks,y=J.documentTypes||{},X=J.mediaTypes||{},L=J.mediaFeatures||{},P=J.mediaValueKeywords||{},I=J.propertyKeywords||{},B=J.nonStandardPropertyKeywords||{},E=J.fontProperties||{},W=J.counterDescriptors||{},O=J.colorKeywords||{},S=J.valueKeywords||{},M=J.allowNested,U=J.supportsAtComponent===true;var C,N;function Z(ac,ad){C=ad;return ac}function ab(af,ae){var ad=af.next();if(A[ad]){var ac=A[ad](af,ae);if(ac!==false){return ac}}if(ad=="@"){af.eatWhile(/[\w\\\-]/);return Z("def",af.current())}else{if(ad=="="||(ad=="~"||ad=="|")&&af.eat("=")){return Z(null,"compare")}else{if(ad=='"'||ad=="'"){ae.tokenize=K(ad);return ae.tokenize(af,ae)}else{if(ad=="#"){af.eatWhile(/[\w\\\-]/);return Z("atom","hash")}else{if(ad=="!"){af.match(/^\s*\w*/);return Z("keyword","important")}else{if(/\d/.test(ad)||ad=="."&&af.eat(/\d/)){af.eatWhile(/[\w.%]/);return Z("number","unit")}else{if(ad==="-"){if(/[\d.]/.test(af.peek())){af.eatWhile(/[\w.%]/);return Z("number","unit")}else{if(af.match(/^-[\w\\\-]+/)){af.eatWhile(/[\w\\\-]/);if(af.match(/^\s*:/,false)){return Z("variable-2","variable-definition")}return Z("variable-2","variable")}else{if(af.match(/^\w+-/)){return Z("meta","meta")}}}}else{if(/[,+>*\/]/.test(ad)){return Z(null,"select-op")}else{if(ad=="."&&af.match(/^-?[_a-z][_a-z0-9-]*/i)){return Z("qualifier","qualifier")}else{if(/[:;{}\[\]\(\)]/.test(ad)){return Z(null,ad)}else{if((ad=="u"&&af.match(/rl(-prefix)?\(/))||(ad=="d"&&af.match("omain("))||(ad=="r"&&af.match("egexp("))){af.backUp(1);ae.tokenize=aa;return Z("property","word")}else{if(/[\w\\\-]/.test(ad)){af.eatWhile(/[\w\\\-]/);return Z("property","word")}else{return Z(null,null)}}}}}}}}}}}}}function K(ac){return function(ag,ae){var af=false,ad;while((ad=ag.next())!=null){if(ad==ac&&!af){if(ac==")"){ag.backUp(1)}break}af=!af&&ad=="\\"}if(ad==ac||!af&&ac!=")"){ae.tokenize=null}return Z("string","string")}}function aa(ad,ac){ad.next();if(!ad.match(/\s*[\"\')]/,false)){ac.tokenize=K(")")}else{ac.tokenize=null}return Z(null,"(")}function R(ad,ac,ae){this.type=ad;this.indent=ac;this.prev=ae}function G(ae,af,ad,ac){ae.context=new R(ad,af.indentation()+(ac===false?0:Q),ae.context);return ad}function T(ac){if(ac.context.prev){ac.context=ac.context.prev}return ac.context.type}function z(ac,ae,ad){return F[ad.context.type](ac,ae,ad)}function V(ad,af,ae,ag){for(var ac=ag||1;ac>0;ac--){ae.context=ae.context.prev}return z(ad,af,ae)}function H(ad){var ac=ad.current().toLowerCase();if(S.hasOwnProperty(ac)){N="atom"}else{if(O.hasOwnProperty(ac)){N="keyword"}else{N="variable"}}}var F={};F.top=function(ac,ae,ad){if(ac=="{"){return G(ad,ae,"block")}else{if(ac=="}"&&ad.context.prev){return T(ad)}else{if(U&&/@component/.test(ac)){return G(ad,ae,"atComponentBlock")}else{if(/^@(-moz-)?document$/.test(ac)){return G(ad,ae,"documentTypes")}else{if(/^@(media|supports|(-moz-)?document|import)$/.test(ac)){return G(ad,ae,"atBlock")}else{if(/^@(font-face|counter-style)/.test(ac)){ad.stateArg=ac;return"restricted_atBlock_before"}else{if(/^@(-(moz|ms|o|webkit)-)?keyframes$/.test(ac)){return"keyframes"}else{if(ac&&ac.charAt(0)=="@"){return G(ad,ae,"at")}else{if(ac=="hash"){N="builtin"}else{if(ac=="word"){N="tag"}else{if(ac=="variable-definition"){return"maybeprop"}else{if(ac=="interpolation"){return G(ad,ae,"interpolation")}else{if(ac==":"){return"pseudo"}else{if(M&&ac=="("){return G(ad,ae,"parens")}}}}}}}}}}}}}}return ad.context.type};F.block=function(ac,af,ad){if(ac=="word"){var ae=af.current().toLowerCase();if(I.hasOwnProperty(ae)){N="property";return"maybeprop"}else{if(B.hasOwnProperty(ae)){N="string-2";return"maybeprop"}else{if(M){N=af.match(/^\s*:(?:\s|$)/,false)?"property":"tag";return"block"}else{N+=" error";return"maybeprop"}}}}else{if(ac=="meta"){return"block"}else{if(!M&&(ac=="hash"||ac=="qualifier")){N="error";return"block"}else{return F.top(ac,af,ad)}}}};F.maybeprop=function(ac,ae,ad){if(ac==":"){return G(ad,ae,"prop")}return z(ac,ae,ad)};F.prop=function(ac,ae,ad){if(ac==";"){return T(ad)}if(ac=="{"&&M){return G(ad,ae,"propBlock")}if(ac=="}"||ac=="{"){return V(ac,ae,ad)}if(ac=="("){return G(ad,ae,"parens")}if(ac=="hash"&&!/^#([0-9a-fA-f]{3,4}|[0-9a-fA-f]{6}|[0-9a-fA-f]{8})$/.test(ae.current())){N+=" error"}else{if(ac=="word"){H(ae)}else{if(ac=="interpolation"){return G(ad,ae,"interpolation")}}}return"prop"};F.propBlock=function(ad,ac,ae){if(ad=="}"){return T(ae)}if(ad=="word"){N="property";return"maybeprop"}return ae.context.type};F.parens=function(ac,ae,ad){if(ac=="{"||ac=="}"){return V(ac,ae,ad)}if(ac==")"){return T(ad)}if(ac=="("){return G(ad,ae,"parens")}if(ac=="interpolation"){return G(ad,ae,"interpolation")}if(ac=="word"){H(ae)}return"parens"};F.pseudo=function(ac,ae,ad){if(ac=="word"){N="variable-3";return ad.context.type}return z(ac,ae,ad)};F.documentTypes=function(ac,ae,ad){if(ac=="word"&&y.hasOwnProperty(ae.current())){N="tag";return ad.context.type}else{return F.atBlock(ac,ae,ad)}};F.atBlock=function(ac,af,ad){if(ac=="("){return G(ad,af,"atBlock_parens")}if(ac=="}"||ac==";"){return V(ac,af,ad)}if(ac=="{"){return T(ad)&&G(ad,af,M?"block":"top")}if(ac=="interpolation"){return G(ad,af,"interpolation")}if(ac=="word"){var ae=af.current().toLowerCase();if(ae=="only"||ae=="not"||ae=="and"||ae=="or"){N="keyword"}else{if(X.hasOwnProperty(ae)){N="attribute"}else{if(L.hasOwnProperty(ae)){N="property"}else{if(P.hasOwnProperty(ae)){N="keyword"}else{if(I.hasOwnProperty(ae)){N="property"}else{if(B.hasOwnProperty(ae)){N="string-2"}else{if(S.hasOwnProperty(ae)){N="atom"}else{if(O.hasOwnProperty(ae)){N="keyword"}else{N="error"}}}}}}}}}return ad.context.type};F.atComponentBlock=function(ac,ae,ad){if(ac=="}"){return V(ac,ae,ad)}if(ac=="{"){return T(ad)&&G(ad,ae,M?"block":"top",false)}if(ac=="word"){N="error"}return ad.context.type};F.atBlock_parens=function(ac,ae,ad){if(ac==")"){return T(ad)}if(ac=="{"||ac=="}"){return V(ac,ae,ad,2)}return F.atBlock(ac,ae,ad)};F.restricted_atBlock_before=function(ac,ae,ad){if(ac=="{"){return G(ad,ae,"restricted_atBlock")}if(ac=="word"&&ad.stateArg=="@counter-style"){N="variable";return"restricted_atBlock_before"}return z(ac,ae,ad)};F.restricted_atBlock=function(ac,ae,ad){if(ac=="}"){ad.stateArg=null;return T(ad)}if(ac=="word"){if((ad.stateArg=="@font-face"&&!E.hasOwnProperty(ae.current().toLowerCase()))||(ad.stateArg=="@counter-style"&&!W.hasOwnProperty(ae.current().toLowerCase()))){N="error"}else{N="property"}return"maybeprop"}return"restricted_atBlock"};F.keyframes=function(ac,ae,ad){if(ac=="word"){N="variable";return"keyframes"}if(ac=="{"){return G(ad,ae,"top")}return z(ac,ae,ad)};F.at=function(ac,ae,ad){if(ac==";"){return T(ad)}if(ac=="{"||ac=="}"){return V(ac,ae,ad)}if(ac=="word"){N="tag"}else{if(ac=="hash"){N="builtin"}}return"at"};F.interpolation=function(ac,ae,ad){if(ac=="}"){return T(ad)}if(ac=="{"||ac==";"){return V(ac,ae,ad)}if(ac=="word"){N="variable"}else{if(ac!="variable"&&ac!="("&&ac!=")"){N="error"}}return"interpolation"};return{startState:function(ac){return{tokenize:null,state:D?"block":"top",stateArg:null,context:new R(D?"block":"top",ac||0,null)}},token:function(ae,ad){if(!ad.tokenize&&ae.eatSpace()){return null}var ac=(ad.tokenize||ab)(ae,ad);if(ac&&typeof ac=="object"){C=ac[1];ac=ac[0]}N=ac;ad.state=F[ad.state](C,ae,ad);return N},indent:function(ag,ae){var ad=ag.context,af=ae&&ae.charAt(0);var ac=ad.indent;if(ad.type=="prop"&&(af=="}"||af==")")){ad=ad.prev}if(ad.prev){if(af=="}"&&(ad.type=="block"||ad.type=="top"||ad.type=="interpolation"||ad.type=="restricted_atBlock")){ad=ad.prev;ac=ad.indent}else{if(af==")"&&(ad.type=="parens"||ad.type=="atBlock_parens")||af=="{"&&(ad.type=="at"||ad.type=="atBlock")){ac=Math.max(0,ad.indent-Q);ad=ad.prev}}}return ac},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",fold:"brace"}});function g(A){var z={};for(var y=0;y<A.length;++y){z[A[y]]=true}return z}var k=["domain","regexp","url","url-prefix"],a=g(k);var b=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],v=g(b);var x=["width","min-width","max-width","height","min-height","max-height","device-width","min-device-width","max-device-width","device-height","min-device-height","max-device-height","aspect-ratio","min-aspect-ratio","max-aspect-ratio","device-aspect-ratio","min-device-aspect-ratio","max-device-aspect-ratio","color","min-color","max-color","color-index","min-color-index","max-color-index","monochrome","min-monochrome","max-monochrome","resolution","min-resolution","max-resolution","scan","grid","orientation","device-pixel-ratio","min-device-pixel-ratio","max-device-pixel-ratio","pointer","any-pointer","hover","any-hover"],i=g(x);var l=["landscape","portrait","none","coarse","fine","on-demand","hover","interlace","progressive"],p=g(l);var d=["align-content","align-items","align-self","alignment-adjust","alignment-baseline","anchor-point","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","azimuth","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","baseline-shift","binding","bleed","bookmark-label","bookmark-level","bookmark-state","bookmark-target","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","clear","clip","color","color-profile","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","content","counter-increment","counter-reset","crop","cue","cue-after","cue-before","cursor","direction","display","dominant-baseline","drop-initial-after-adjust","drop-initial-after-align","drop-initial-before-adjust","drop-initial-before-align","drop-initial-size","drop-initial-value","elevation","empty-cells","fit","fit-position","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","float-offset","flow-from","flow-into","font","font-feature-settings","font-family","font-kerning","font-language-override","font-size","font-size-adjust","font-stretch","font-style","font-synthesis","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-weight","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-position","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","inline-box-align","justify-content","left","letter-spacing","line-break","line-height","line-stacking","line-stacking-ruby","line-stacking-shift","line-stacking-strategy","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marker-offset","marks","marquee-direction","marquee-loop","marquee-play-count","marquee-speed","marquee-style","max-height","max-width","min-height","min-width","move-to","nav-down","nav-index","nav-left","nav-right","nav-up","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-style","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","page-policy","pause","pause-after","pause-before","perspective","perspective-origin","pitch","pitch-range","play-during","position","presentation-level","punctuation-trim","quotes","region-break-after","region-break-before","region-break-inside","region-fragment","rendering-intent","resize","rest","rest-after","rest-before","richness","right","rotation","rotation-point","ruby-align","ruby-overhang","ruby-position","ruby-span","shape-image-threshold","shape-inside","shape-margin","shape-outside","size","speak","speak-as","speak-header","speak-numeral","speak-punctuation","speech-rate","stress","string-set","tab-size","table-layout","target","target-name","target-new","target-position","text-align","text-align-last","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-height","text-indent","text-justify","text-outline","text-overflow","text-shadow","text-size-adjust","text-space-collapse","text-transform","text-underline-position","text-wrap","top","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","volume","white-space","widows","width","word-break","word-spacing","word-wrap","z-index","clip-path","clip-rule","mask","enable-background","filter","flood-color","flood-opacity","lighting-color","stop-color","stop-opacity","pointer-events","color-interpolation","color-interpolation-filters","color-rendering","fill","fill-opacity","fill-rule","image-rendering","marker","marker-end","marker-mid","marker-start","shape-rendering","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-rendering","baseline-shift","dominant-baseline","glyph-orientation-horizontal","glyph-orientation-vertical","text-anchor","writing-mode"],h=g(d);var n=["scrollbar-arrow-color","scrollbar-base-color","scrollbar-dark-shadow-color","scrollbar-face-color","scrollbar-highlight-color","scrollbar-shadow-color","scrollbar-3d-light-color","scrollbar-track-color","shape-inside","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","zoom"],e=g(n);var t=["font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"],f=g(t);var q=["additive-symbols","fallback","negative","pad","prefix","range","speak-as","suffix","symbols","system"],u=g(q);var c=["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"],m=g(c);var j=["above","absolute","activeborder","additive","activecaption","afar","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","amharic","amharic-abegede","antialiased","appworkspace","arabic-indic","armenian","asterisks","attr","auto","avoid","avoid-column","avoid-page","avoid-region","background","backwards","baseline","below","bidi-override","binary","bengali","blink","block","block-axis","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","bullets","button","button-bevel","buttonface","buttonhighlight","buttonshadow","buttontext","calc","cambodian","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","cjk-earthly-branch","cjk-heavenly-stem","cjk-ideographic","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","contain","content","content-box","context-menu","continuous","copy","counter","counters","cover","crop","cross","crosshair","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","destination-atop","destination-in","destination-out","destination-over","devanagari","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic","ethiopic-abegede","ethiopic-abegede-am-et","ethiopic-abegede-gez","ethiopic-abegede-ti-er","ethiopic-abegede-ti-et","ethiopic-halehame-aa-er","ethiopic-halehame-aa-et","ethiopic-halehame-am-et","ethiopic-halehame-gez","ethiopic-halehame-om-et","ethiopic-halehame-sid-et","ethiopic-halehame-so-et","ethiopic-halehame-ti-er","ethiopic-halehame-ti-et","ethiopic-halehame-tig","ethiopic-numeric","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","georgian","graytext","groove","gujarati","gurmukhi","hand","hangul","hangul-consonant","hard-light","hebrew","help","hidden","hide","higher","highlight","highlighttext","hiragana","hiragana-iroha","horizontal","hsl","hsla","hue","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-table","inset","inside","intrinsic","invert","italic","japanese-formal","japanese-informal","justify","kannada","katakana","katakana-iroha","keep-all","khmer","korean-hangul-formal","korean-hanja-formal","korean-hanja-informal","landscape","lao","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-alpha","lower-armenian","lower-greek","lower-hexadecimal","lower-latin","lower-norwegian","lower-roman","lowercase","ltr","luminosity","malayalam","match","matrix","matrix3d","media-controls-background","media-current-time-display","media-fullscreen-button","media-mute-button","media-play-button","media-return-to-realtime-button","media-rewind-button","media-seek-back-button","media-seek-forward-button","media-slider","media-sliderthumb","media-time-remaining-display","media-volume-slider","media-volume-slider-container","media-volume-sliderthumb","medium","menu","menulist","menulist-button","menulist-text","menulist-textfield","menutext","message-box","middle","min-intrinsic","mix","mongolian","monospace","move","multiple","multiply","myanmar","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","octal","open-quote","optimizeLegibility","optimizeSpeed","oriya","oromo","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","persian","perspective","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","se-resize","searchfield","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","semi-condensed","semi-expanded","separate","serif","show","sidama","simp-chinese-formal","simp-chinese-informal","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","somali","source-atop","source-in","source-out","source-over","space","space-around","space-between","spell-out","square","square-button","start","static","status-bar","stretch","stroke","sub","subpixel-antialiased","super","sw-resize","symbolic","symbols","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","tamil","telugu","text","text-bottom","text-top","textarea","textfield","thai","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","tibetan","tigre","tigrinya-er","tigrinya-er-abegede","tigrinya-et","tigrinya-et-abegede","to","top","trad-chinese-formal","trad-chinese-informal","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","up","upper-alpha","upper-armenian","upper-greek","upper-hexadecimal","upper-latin","upper-norwegian","upper-roman","uppercase","urdu","url","var","vertical","vertical-text","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"],s=g(j);var o=k.concat(b).concat(x).concat(l).concat(d).concat(n).concat(c).concat(j);r.registerHelper("hintWords","css",o);function w(B,A){var y=false,z;while((z=B.next())!=null){if(y&&z=="/"){A.tokenize=null;break}y=(z=="*")}return["comment","comment"]}r.defineMIME("text/css",{documentTypes:a,mediaTypes:v,mediaFeatures:i,mediaValueKeywords:p,propertyKeywords:h,nonStandardPropertyKeywords:e,fontProperties:f,counterDescriptors:u,colorKeywords:m,valueKeywords:s,tokenHooks:{"/":function(z,y){if(!z.eat("*")){return false}y.tokenize=w;return w(z,y)}},name:"css"});r.defineMIME("text/x-scss",{mediaTypes:v,mediaFeatures:i,mediaValueKeywords:p,propertyKeywords:h,nonStandardPropertyKeywords:e,colorKeywords:m,valueKeywords:s,fontProperties:f,allowNested:true,tokenHooks:{"/":function(z,y){if(z.eat("/")){z.skipToEnd();return["comment","comment"]}else{if(z.eat("*")){y.tokenize=w;return w(z,y)}else{return["operator","operator"]}}},":":function(y){if(y.match(/\s*\{/)){return[null,"{"]}return false},"$":function(y){y.match(/^[\w-]+/);if(y.match(/^\s*:/,false)){return["variable-2","variable-definition"]}return["variable-2","variable"]},"#":function(y){if(!y.eat("{")){return false}return[null,"interpolation"]}},name:"css",helperType:"scss"});r.defineMIME("text/x-less",{mediaTypes:v,mediaFeatures:i,mediaValueKeywords:p,propertyKeywords:h,nonStandardPropertyKeywords:e,colorKeywords:m,valueKeywords:s,fontProperties:f,allowNested:true,tokenHooks:{"/":function(z,y){if(z.eat("/")){z.skipToEnd();return["comment","comment"]}else{if(z.eat("*")){y.tokenize=w;return w(z,y)}else{return["operator","operator"]}}},"@":function(y){if(y.eat("{")){return[null,"interpolation"]}if(y.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/,false)){return false}y.eatWhile(/[\w\\\-]/);if(y.match(/^\s*:/,false)){return["variable-2","variable-definition"]}return["variable-2","variable"]},"&":function(){return["atom","atom"]}},name:"css",helperType:"less"});r.defineMIME("text/x-gss",{documentTypes:a,mediaTypes:v,mediaFeatures:i,propertyKeywords:h,nonStandardPropertyKeywords:e,fontProperties:f,counterDescriptors:u,colorKeywords:m,valueKeywords:s,supportsAtComponent:true,tokenHooks:{"/":function(z,y){if(!z.eat("*")){return false}y.tokenize=w;return w(z,y)}},name:"css",helperType:"gss"})});(function(a){if(typeof exports=="object"&&typeof module=="object"){a(require("../../lib/codemirror"))}else{if(typeof define=="function"&&define.amd){define(["../../lib/codemirror"],a)}else{a(CodeMirror)}}})(function(s){function r(B,y,x,A,z){this.indented=B;this.column=y;this.type=x;this.align=A;this.prev=z}function k(x){return x=="statement"||x=="switchstatement"||x=="namespace"}function g(A,y,z){var x=A.indented;if(A.context&&k(A.context.type)&&!k(z)){x=A.context.indented}return A.context=new r(x,y,z,null,A.context)}function u(y){var x=y.context.type;if(x==")"||x=="]"||x=="}"){y.indented=y.context.indented}return y.context=y.context.prev}function a(y,x){if(x.prevToken=="variable"||x.prevToken=="variable-3"){return true}if(/\S(?:[^- ]>|[*\]])\s*$|\*$/.test(y.string.slice(0,y.start))){return true}}function q(x){for(;;){if(!x||x.type=="top"){return true}if(x.type=="}"&&x.prev.type!="namespace"){return false}x=x.prev}}s.defineMode("clike",function(U,F){var Q=U.indentUnit,N=F.statementIndentUnit||Q,R=F.dontAlignCalls,I=F.keywords||{},L=F.types||{},V=F.builtin||{},S=F.blockKeywords||{},P=F.defKeywords||{},A=F.atoms||{},y=F.hooks||{},M=F.multiLineStrings,K=F.indentStatements!==false,H=F.indentSwitch!==false,C=F.namespaceSeparator,E=F.isPunctuationChar||/[\[\]{}\(\),;\:\.]/,B=F.numberStart||/[\d\.]/,x=F.number||/^(?:0x[a-f\d]+|0b[01]+|(?:\d+\.?\d*|\.\d+)(?:e[-+]?\d+)?)(u|ll?|l|f)?/i,J=F.isOperatorChar||/[+\-*&%=<>!?|\/]/,z=F.endStatement||/^[;:,]$/;var T,D;function W(ab,Z){var Y=ab.next();if(y[Y]){var X=y[Y](ab,Z);if(X!==false){return X}}if(Y=='"'||Y=="'"){Z.tokenize=G(Y);return Z.tokenize(ab,Z)}if(E.test(Y)){T=Y;return null}if(B.test(Y)){ab.backUp(1);if(ab.match(x)){return"number"}ab.next()}if(Y=="/"){if(ab.eat("*")){Z.tokenize=O;return O(ab,Z)}if(ab.eat("/")){ab.skipToEnd();return"comment"}}if(J.test(Y)){while(!ab.match(/^\/[\/*]/,false)&&ab.eat(J)){}return"operator"}ab.eatWhile(/[\w\$_\xa1-\uffff]/);if(C){while(ab.match(C)){ab.eatWhile(/[\w\$_\xa1-\uffff]/)}}var aa=ab.current();if(h(I,aa)){if(h(S,aa)){T="newstatement"}if(h(P,aa)){D=true}return"keyword"}if(h(L,aa)){return"variable-3"}if(h(V,aa)){if(h(S,aa)){T="newstatement"}return"builtin"}if(h(A,aa)){return"atom"}return"variable"}function G(X){return function(ac,aa){var ab=false,Z,Y=false;while((Z=ac.next())!=null){if(Z==X&&!ab){Y=true;break}ab=!ab&&Z=="\\"}if(Y||!(ab||M)){aa.tokenize=null}return"string"}}function O(aa,Z){var X=false,Y;while(Y=aa.next()){if(Y=="/"&&X){Z.tokenize=null;break}X=(Y=="*")}return"comment"}return{startState:function(X){return{tokenize:null,context:new r((X||0)-Q,0,"top",false),indented:0,startOfLine:true,prevToken:null}},token:function(ac,ab){var Y=ab.context;if(ac.sol()){if(Y.align==null){Y.align=false}ab.indented=ac.indentation();ab.startOfLine=true}if(ac.eatSpace()){return null}T=D=null;var aa=(ab.tokenize||W)(ac,ab);if(aa=="comment"||aa=="meta"){return aa}if(Y.align==null){Y.align=true}if(z.test(T)){while(k(ab.context.type)){u(ab)}}else{if(T=="{"){g(ab,ac.column(),"}")}else{if(T=="["){g(ab,ac.column(),"]")}else{if(T=="("){g(ab,ac.column(),")")}else{if(T=="}"){while(k(Y.type)){Y=u(ab)}if(Y.type=="}"){Y=u(ab)}while(k(Y.type)){Y=u(ab)}}else{if(T==Y.type){u(ab)}else{if(K&&(((Y.type=="}"||Y.type=="top")&&T!=";")||(k(Y.type)&&T=="newstatement"))){var Z="statement";if(T=="newstatement"&&H&&ac.current()=="switch"){Z="switchstatement"}else{if(aa=="keyword"&&ac.current()=="namespace"){Z="namespace"}}g(ab,ac.column(),Z)}}}}}}}if(aa=="variable"&&((ab.prevToken=="def"||(F.typeFirstDefinitions&&a(ac,ab)&&q(ab.context)&&ac.match(/^\s*\(/,false))))){aa="def"}if(y.token){var X=y.token(ac,ab,aa);if(X!==undefined){aa=X}}if(aa=="def"&&F.styleDefs===false){aa="variable"}ab.startOfLine=false;ab.prevToken=D?"def":aa||T;return aa},indent:function(ad,Y){if(ad.tokenize!=W&&ad.tokenize!=null){return s.Pass}var X=ad.context,ab=Y&&Y.charAt(0);if(k(X.type)&&ab=="}"){X=X.prev}if(y.indent){var ac=y.indent(ad,X,Y);if(typeof ac=="number"){return ac}}var Z=ab==X.type;var aa=X.prev&&X.prev.type=="switchstatement";if(F.allmanIndentation&&/[{(]/.test(ab)){while(X.type!="top"&&X.type!="}"){X=X.prev}return X.indented}if(k(X.type)){return X.indented+(ab=="{"?0:N)}if(X.align&&(!R||X.type!=")")){return X.column+(Z?0:1)}if(X.type==")"&&!Z){return X.indented+N}return X.indented+(Z?0:Q)+(!Z&&aa&&!/^(?:case|default)\b/.test(Y)?Q:0)},electricInput:H?/^\s*(?:case .*?:|default:|\{\}?|\})$/:/^\s*[{}]$/,blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//",fold:"brace"}});function p(A){var y={},z=A.split(" ");for(var x=0;x<z.length;++x){y[z[x]]=true}return y}function h(y,x){if(typeof y==="function"){return y(x)}else{return y.propertyIsEnumerable(x)}}var m="auto if break case register continue return default do sizeof static else struct switch extern typedef union for goto while enum const volatile";var t="int long char short double float unsigned signed void size_t ptrdiff_t";function n(A,z){if(!z.startOfLine){return false}for(var y,x=null;y=A.peek();){if(y=="\\"&&A.match(/^.$/)){x=n;break}else{if(y=="/"&&A.match(/^\/[\/\*]/,false)){break}}A.next()}z.tokenize=x;return"meta"}function d(x,y){if(y.prevToken=="variable-3"){return"variable-3"}return false}function f(x){x.eatWhile(/[\w\.']/);return"number"}function o(z,y){z.backUp(1);if(z.match(/(R|u8R|uR|UR|LR)/)){var x=z.match(/"([^\s\\()]{0,16})\(/);if(!x){return false}y.cpp11RawStringDelim=x[1];y.tokenize=i;return i(z,y)}if(z.match(/(u8|u|U|L)/)){if(z.match(/["']/,false)){return"string"}return false}z.next();return false}function w(y){var x=/(\w+)::(\w+)$/.exec(y);return x&&x[1]==x[2]}function v(z,y){var x;while((x=z.next())!=null){if(x=='"'&&!z.eat('"')){y.tokenize=null;break}}return"string"}function i(A,y){var z=y.cpp11RawStringDelim.replace(/[^\w\s]/g,"\\$&");var x=A.match(new RegExp(".*?\\)"+z+'"'));if(x){y.tokenize=null}else{A.skipToEnd()}return"string"}function l(x,B){if(typeof x=="string"){x=[x]}var A=[];function z(C){if(C){for(var D in C){if(C.hasOwnProperty(D)){A.push(D)}}}}z(B.keywords);z(B.types);z(B.builtin);z(B.atoms);if(A.length){B.helperType=x[0];s.registerHelper("hintWords",x[0],A)}for(var y=0;y<x.length;++y){s.defineMIME(x[y],B)}}l(["text/x-csrc","text/x-c","text/x-chdr"],{name:"clike",keywords:p(m),types:p(t+" bool _Complex _Bool float_t double_t intptr_t intmax_t int8_t int16_t int32_t int64_t uintptr_t uintmax_t uint8_t uint16_t uint32_t uint64_t"),blockKeywords:p("case do else for if switch while struct"),defKeywords:p("struct"),typeFirstDefinitions:true,atoms:p("null true false"),hooks:{"#":n,"*":d},modeProps:{fold:["brace","include"]}});l(["text/x-c++src","text/x-c++hdr"],{name:"clike",keywords:p(m+" asm dynamic_cast namespace reinterpret_cast try explicit new static_cast typeid catch operator template typename class friend private this using const_cast inline public throw virtual delete mutable protected alignas alignof constexpr decltype nullptr noexcept thread_local final static_assert override"),types:p(t+" bool wchar_t"),blockKeywords:p("catch class do else finally for if struct switch try while"),defKeywords:p("class namespace struct enum union"),typeFirstDefinitions:true,atoms:p("true false null"),hooks:{"#":n,"*":d,u:o,U:o,L:o,R:o,"0":f,"1":f,"2":f,"3":f,"4":f,"5":f,"6":f,"7":f,"8":f,"9":f,token:function(z,y,x){if(x=="variable"&&z.peek()=="("&&(y.prevToken==";"||y.prevToken==null||y.prevToken=="}")&&w(z.current())){return"def"}}},namespaceSeparator:"::",modeProps:{fold:["brace","include"]}});l("text/x-java",{name:"clike",keywords:p("abstract assert break case catch class const continue default do else enum extends final finally float for goto if implements import instanceof interface native new package private protected public return static strictfp super switch synchronized this throw throws transient try volatile while"),types:p("byte short int long float double boolean char void Boolean Byte Character Double Float Integer Long Number Object Short String StringBuffer StringBuilder Void"),blockKeywords:p("catch class do else finally for if switch try while"),defKeywords:p("class interface package enum"),typeFirstDefinitions:true,atoms:p("true false null"),endStatement:/^[;:]$/,hooks:{"@":function(x){x.eatWhile(/[\w\$_]/);return"meta"}},modeProps:{fold:["brace","import"]}});l("text/x-csharp",{name:"clike",keywords:p("abstract as async await base break case catch checked class const continue default delegate do else enum event explicit extern finally fixed for foreach goto if implicit in interface internal is lock namespace new operator out override params private protected public readonly ref return sealed sizeof stackalloc static struct switch this throw try typeof unchecked unsafe using virtual void volatile while add alias ascending descending dynamic from get global group into join let orderby partial remove select set value var yield"),types:p("Action Boolean Byte Char DateTime DateTimeOffset Decimal Double Func Guid Int16 Int32 Int64 Object SByte Single String Task TimeSpan UInt16 UInt32 UInt64 bool byte char decimal double short int long object sbyte float string ushort uint ulong"),blockKeywords:p("catch class do else finally for foreach if struct switch try while"),defKeywords:p("class interface namespace struct var"),typeFirstDefinitions:true,atoms:p("true false null"),hooks:{"@":function(y,x){if(y.eat('"')){x.tokenize=v;return v(y,x)}y.eatWhile(/[\w\$_]/);return"meta"}}});function c(z,x){var y=false;while(!z.eol()){if(!y&&z.match('"""')){x.tokenize=null;break}y=z.next()=="\\"&&!y}return"string"}l("text/x-scala",{name:"clike",keywords:p("abstract case catch class def do else extends final finally for forSome if implicit import lazy match new null object override package private protected return sealed super this throw trait try type val var while with yield _ : = => <- <: <% >: # @ assert assume require print println printf readLine readBoolean readByte readShort readChar readInt readLong readFloat readDouble :: #:: "),types:p("AnyVal App Application Array BufferedIterator BigDecimal BigInt Char Console Either Enumeration Equiv Error Exception Fractional Function IndexedSeq Int Integral Iterable Iterator List Map Numeric Nil NotNull Option Ordered Ordering PartialFunction PartialOrdering Product Proxy Range Responder Seq Serializable Set Specializable Stream StringBuilder StringContext Symbol Throwable Traversable TraversableOnce Tuple Unit Vector Boolean Byte Character CharSequence Class ClassLoader Cloneable Comparable Compiler Double Exception Float Integer Long Math Number Object Package Pair Process Runtime Runnable SecurityManager Short StackTraceElement StrictMath String StringBuffer System Thread ThreadGroup ThreadLocal Throwable Triple Void"),multiLineStrings:true,blockKeywords:p("catch class do else finally for forSome if match switch try while"),defKeywords:p("class def object package trait type val var"),atoms:p("true false null"),indentStatements:false,indentSwitch:false,hooks:{"@":function(x){x.eatWhile(/[\w\$_]/);return"meta"},'"':function(y,x){if(!y.match('""')){return false}x.tokenize=c;return x.tokenize(y,x)},"'":function(x){x.eatWhile(/[\w\$_\xa1-\uffff]/);return"atom"},"=":function(z,y){var x=y.context;if(x.type=="}"&&x.align&&z.eat(">")){y.context=new r(x.indented,x.column,x.type,null,x.prev);return"operator"}else{return false}}},modeProps:{closeBrackets:{triples:'"'}}});function b(x){return function(C,A){var B=false,z,y=false;while(!C.eol()){if(!x&&!B&&C.match('"')){y=true;break}if(x&&C.match('"""')){y=true;break}z=C.next();if(!B&&z=="$"&&C.match("{")){C.skipTo("}")}B=!B&&z=="\\"&&!x}if(y||!x){A.tokenize=null}return"string"}}l("text/x-kotlin",{name:"clike",keywords:p("package as typealias class interface this super val var fun for is in This throw return break continue object if else while do try when !in !is as? file import where by get set abstract enum open inner override private public internal protected catch finally out final vararg reified dynamic companion constructor init sealed field property receiver param sparam lateinit data inline noinline tailrec external annotation crossinline const operator infix"),types:p("Boolean Byte Character CharSequence Class ClassLoader Cloneable Comparable Compiler Double Exception Float Integer Long Math Number Object Package Pair Process Runtime Runnable SecurityManager Short StackTraceElement StrictMath String StringBuffer System Thread ThreadGroup ThreadLocal Throwable Triple Void"),intendSwitch:false,indentStatements:false,multiLineStrings:true,blockKeywords:p("catch class do else finally for if where try while enum"),defKeywords:p("class val var object package interface fun"),atoms:p("true false null this"),hooks:{'"':function(y,x){x.tokenize=b(y.match('""'));return x.tokenize(y,x)}},modeProps:{closeBrackets:{triples:'"'}}});l(["x-shader/x-vertex","x-shader/x-fragment"],{name:"clike",keywords:p("sampler1D sampler2D sampler3D samplerCube sampler1DShadow sampler2DShadow const attribute uniform varying break continue discard return for while do if else struct in out inout"),types:p("float int bool void vec2 vec3 vec4 ivec2 ivec3 ivec4 bvec2 bvec3 bvec4 mat2 mat3 mat4"),blockKeywords:p("for while do if else struct"),builtin:p("radians degrees sin cos tan asin acos atan pow exp log exp2 sqrt inversesqrt abs sign floor ceil fract mod min max clamp mix step smoothstep length distance dot cross normalize ftransform faceforward reflect refract matrixCompMult lessThan lessThanEqual greaterThan greaterThanEqual equal notEqual any all not texture1D texture1DProj texture1DLod texture1DProjLod texture2D texture2DProj texture2DLod texture2DProjLod texture3D texture3DProj texture3DLod texture3DProjLod textureCube textureCubeLod shadow1D shadow2D shadow1DProj shadow2DProj shadow1DLod shadow2DLod shadow1DProjLod shadow2DProjLod dFdx dFdy fwidth noise1 noise2 noise3 noise4"),atoms:p("true false gl_FragColor gl_SecondaryColor gl_Normal gl_Vertex gl_MultiTexCoord0 gl_MultiTexCoord1 gl_MultiTexCoord2 gl_MultiTexCoord3 gl_MultiTexCoord4 gl_MultiTexCoord5 gl_MultiTexCoord6 gl_MultiTexCoord7 gl_FogCoord gl_PointCoord gl_Position gl_PointSize gl_ClipVertex gl_FrontColor gl_BackColor gl_FrontSecondaryColor gl_BackSecondaryColor gl_TexCoord gl_FogFragCoord gl_FragCoord gl_FrontFacing gl_FragData gl_FragDepth gl_ModelViewMatrix gl_ProjectionMatrix gl_ModelViewProjectionMatrix gl_TextureMatrix gl_NormalMatrix gl_ModelViewMatrixInverse gl_ProjectionMatrixInverse gl_ModelViewProjectionMatrixInverse gl_TexureMatrixTranspose gl_ModelViewMatrixInverseTranspose gl_ProjectionMatrixInverseTranspose gl_ModelViewProjectionMatrixInverseTranspose gl_TextureMatrixInverseTranspose gl_NormalScale gl_DepthRange gl_ClipPlane gl_Point gl_FrontMaterial gl_BackMaterial gl_LightSource gl_LightModel gl_FrontLightModelProduct gl_BackLightModelProduct gl_TextureColor gl_EyePlaneS gl_EyePlaneT gl_EyePlaneR gl_EyePlaneQ gl_FogParameters gl_MaxLights gl_MaxClipPlanes gl_MaxTextureUnits gl_MaxTextureCoords gl_MaxVertexAttribs gl_MaxVertexUniformComponents gl_MaxVaryingFloats gl_MaxVertexTextureImageUnits gl_MaxTextureImageUnits gl_MaxFragmentUniformComponents gl_MaxCombineTextureImageUnits gl_MaxDrawBuffers"),indentSwitch:false,hooks:{"#":n},modeProps:{fold:["brace","include"]}});l("text/x-nesc",{name:"clike",keywords:p(m+"as atomic async call command component components configuration event generic implementation includes interface module new norace nx_struct nx_union post provides signal task uses abstract extends"),types:p(t),blockKeywords:p("case do else for if switch while struct"),atoms:p("null true false"),hooks:{"#":n},modeProps:{fold:["brace","include"]}});l("text/x-objectivec",{name:"clike",keywords:p(m+"inline restrict _Bool _Complex _Imaginary BOOL Class bycopy byref id IMP in inout nil oneway out Protocol SEL self super atomic nonatomic retain copy readwrite readonly"),types:p(t),atoms:p("YES NO NULL NILL ON OFF true false"),hooks:{"@":function(x){x.eatWhile(/[\w\$]/);return"keyword"},"#":n,indent:function(z,x,y){if(x.type=="statement"&&/^@\w/.test(y)){return x.indented}}},modeProps:{fold:"brace"}});l("text/x-squirrel",{name:"clike",keywords:p("base break clone continue const default delete enum extends function in class foreach local resume return this throw typeof yield constructor instanceof static"),types:p(t),blockKeywords:p("case catch class else for foreach if switch try while"),defKeywords:p("function local class"),typeFirstDefinitions:true,atoms:p("true false null"),hooks:{"#":n},modeProps:{fold:["brace","include"]}});var e=null;function j(x){return function(C,A){var B=false,z,y=false;while(!C.eol()){if(!B&&C.match('"')&&(x=="single"||C.match('""'))){y=true;break}if(!B&&C.match("``")){e=j(x);y=true;break}z=C.next();B=x=="single"&&!B&&z=="\\"}if(y){A.tokenize=null}return"string"}}l("text/x-ceylon",{name:"clike",keywords:p("abstracts alias assembly assert assign break case catch class continue dynamic else exists extends finally for function given if import in interface is let module new nonempty object of out outer package return satisfies super switch then this throw try value void while"),types:function(x){var y=x.charAt(0);return(y===y.toUpperCase()&&y!==y.toLowerCase())},blockKeywords:p("case catch class dynamic else finally for function if interface module new object switch try while"),defKeywords:p("class dynamic function interface module object package value"),builtin:p("abstract actual aliased annotation by default deprecated doc final formal late license native optional sealed see serializable shared suppressWarnings tagged throws variable"),isPunctuationChar:/[\[\]{}\(\),;\:\.`]/,isOperatorChar:/[+\-*&%=<>!?|^~:\/]/,numberStart:/[\d#$]/,number:/^(?:#[\da-fA-F_]+|\$[01_]+|[\d_]+[kMGTPmunpf]?|[\d_]+\.[\d_]+(?:[eE][-+]?\d+|[kMGTPmunpf]|)|)/i,multiLineStrings:true,typeFirstDefinitions:true,atoms:p("true false null larger smaller equal empty finished"),indentSwitch:false,styleDefs:false,hooks:{"@":function(x){x.eatWhile(/[\w\$_]/);return"meta"},'"':function(y,x){x.tokenize=j(y.match('""')?"triple":"single");return x.tokenize(y,x)},"`":function(y,x){if(!e||!y.match("`")){return false}x.tokenize=e;e=null;return x.tokenize(y,x)},"'":function(x){x.eatWhile(/[\w\$_\xa1-\uffff]/);return"atom"},token:function(x,z,y){if((y=="variable"||y=="variable-3")&&z.prevToken=="."){return"variable-2"}}},modeProps:{fold:["brace","import"],closeBrackets:{triples:'"'}}})});(function(a){if(typeof exports=="object"&&typeof module=="object"){a(require("../../lib/codemirror"),require("../htmlmixed/htmlmixed"),require("../clike/clike"))}else{if(typeof define=="function"&&define.amd){define(["../../lib/codemirror","../htmlmixed/htmlmixed","../clike/clike"],a)}else{a(CodeMirror)}}})(function(d){function f(m){var k={},l=m.split(" ");for(var j=0;j<l.length;++j){k[l[j]]=true}return k}function e(l,j,k){if(l.length==0){return b(j)}return function(p,o){var n=l[0];for(var m=0;m<n.length;m++){if(p.match(n[m][0])){o.tokenize=e(l.slice(1),j);return n[m][1]}}o.tokenize=b(j,k);return"string"}}function b(k,j){return function(m,l){return c(m,l,k,j)}}function c(n,l,k,j){if(j!==false&&n.match("${",false)||n.match("{$",false)){l.tokenize=null;return"string"}if(j!==false&&n.match(/^\$[a-zA-Z_][a-zA-Z0-9_]*/)){if(n.match("[",false)){l.tokenize=e([[["[",null]],[[/\d[\w\.]*/,"number"],[/\$[a-zA-Z_][a-zA-Z0-9_]*/,"variable-2"],[/[\w\$]+/,"variable"]],[["]",null]]],k,j)}if(n.match(/\-\>\w/,false)){l.tokenize=e([[["->",null]],[[/[\w]+/,"variable"]]],k,j)}return"variable-2"}var m=false;while(!n.eol()&&(m||j===false||(!n.match("{$",false)&&!n.match(/^(\$[a-zA-Z_][a-zA-Z0-9_]*|\$\{)/,false)))){if(!m&&n.match(k)){l.tokenize=null;l.tokStack.pop();l.tokStack.pop();break}m=n.next()=="\\"&&!m}return"string"}var h="abstract and array as break case catch class clone const continue declare default do else elseif enddeclare endfor endforeach endif endswitch endwhile extends final for foreach function global goto if implements interface instanceof namespace new or private protected public static switch throw trait try use var while xor die echo empty exit eval include include_once isset list require require_once return print unset __halt_compiler self static parent yield insteadof finally";var i="true false null TRUE FALSE NULL __CLASS__ __DIR__ __FILE__ __LINE__ __METHOD__ __FUNCTION__ __NAMESPACE__ __TRAIT__";var a="func_num_args func_get_arg func_get_args strlen strcmp strncmp strcasecmp strncasecmp each error_reporting define defined trigger_error user_error set_error_handler restore_error_handler get_declared_classes get_loaded_extensions extension_loaded get_extension_funcs debug_backtrace constant bin2hex hex2bin sleep usleep time mktime gmmktime strftime gmstrftime strtotime date gmdate getdate localtime checkdate flush wordwrap htmlspecialchars htmlentities html_entity_decode md5 md5_file crc32 getimagesize image_type_to_mime_type phpinfo phpversion phpcredits strnatcmp strnatcasecmp substr_count strspn strcspn strtok strtoupper strtolower strpos strrpos strrev hebrev hebrevc nl2br basename dirname pathinfo stripslashes stripcslashes strstr stristr strrchr str_shuffle str_word_count strcoll substr substr_replace quotemeta ucfirst ucwords strtr addslashes addcslashes rtrim str_replace str_repeat count_chars chunk_split trim ltrim strip_tags similar_text explode implode setlocale localeconv parse_str str_pad chop strchr sprintf printf vprintf vsprintf sscanf fscanf parse_url urlencode urldecode rawurlencode rawurldecode readlink linkinfo link unlink exec system escapeshellcmd escapeshellarg passthru shell_exec proc_open proc_close rand srand getrandmax mt_rand mt_srand mt_getrandmax base64_decode base64_encode abs ceil floor round is_finite is_nan is_infinite bindec hexdec octdec decbin decoct dechex base_convert number_format fmod ip2long long2ip getenv putenv getopt microtime gettimeofday getrusage uniqid quoted_printable_decode set_time_limit get_cfg_var magic_quotes_runtime set_magic_quotes_runtime get_magic_quotes_gpc get_magic_quotes_runtime import_request_variables error_log serialize unserialize memory_get_usage var_dump var_export debug_zval_dump print_r highlight_file show_source highlight_string ini_get ini_get_all ini_set ini_alter ini_restore get_include_path set_include_path restore_include_path setcookie header headers_sent connection_aborted connection_status ignore_user_abort parse_ini_file is_uploaded_file move_uploaded_file intval floatval doubleval strval gettype settype is_null is_resource is_bool is_long is_float is_int is_integer is_double is_real is_numeric is_string is_array is_object is_scalar ereg ereg_replace eregi eregi_replace split spliti join sql_regcase dl pclose popen readfile rewind rmdir umask fclose feof fgetc fgets fgetss fread fopen fpassthru ftruncate fstat fseek ftell fflush fwrite fputs mkdir rename copy tempnam tmpfile file file_get_contents file_put_contents stream_select stream_context_create stream_context_set_params stream_context_set_option stream_context_get_options stream_filter_prepend stream_filter_append fgetcsv flock get_meta_tags stream_set_write_buffer set_file_buffer set_socket_blocking stream_set_blocking socket_set_blocking stream_get_meta_data stream_register_wrapper stream_wrapper_register stream_set_timeout socket_set_timeout socket_get_status realpath fnmatch fsockopen pfsockopen pack unpack get_browser crypt opendir closedir chdir getcwd rewinddir readdir dir glob fileatime filectime filegroup fileinode filemtime fileowner fileperms filesize filetype file_exists is_writable is_writeable is_readable is_executable is_file is_dir is_link stat lstat chown touch clearstatcache mail ob_start ob_flush ob_clean ob_end_flush ob_end_clean ob_get_flush ob_get_clean ob_get_length ob_get_level ob_get_status ob_get_contents ob_implicit_flush ob_list_handlers ksort krsort natsort natcasesort asort arsort sort rsort usort uasort uksort shuffle array_walk count end prev next reset current key min max in_array array_search extract compact array_fill range array_multisort array_push array_pop array_shift array_unshift array_splice array_slice array_merge array_merge_recursive array_keys array_values array_count_values array_reverse array_reduce array_pad array_flip array_change_key_case array_rand array_unique array_intersect array_intersect_assoc array_diff array_diff_assoc array_sum array_filter array_map array_chunk array_key_exists pos sizeof key_exists assert assert_options version_compare ftok str_rot13 aggregate session_name session_module_name session_save_path session_id session_regenerate_id session_decode session_register session_unregister session_is_registered session_encode session_start session_destroy session_unset session_set_save_handler session_cache_limiter session_cache_expire session_set_cookie_params session_get_cookie_params session_write_close preg_match preg_match_all preg_replace preg_replace_callback preg_split preg_quote preg_grep overload ctype_alnum ctype_alpha ctype_cntrl ctype_digit ctype_lower ctype_graph ctype_print ctype_punct ctype_space ctype_upper ctype_xdigit virtual apache_request_headers apache_note apache_lookup_uri apache_child_terminate apache_setenv apache_response_headers apache_get_version getallheaders mysql_connect mysql_pconnect mysql_close mysql_select_db mysql_create_db mysql_drop_db mysql_query mysql_unbuffered_query mysql_db_query mysql_list_dbs mysql_list_tables mysql_list_fields mysql_list_processes mysql_error mysql_errno mysql_affected_rows mysql_insert_id mysql_result mysql_num_rows mysql_num_fields mysql_fetch_row mysql_fetch_array mysql_fetch_assoc mysql_fetch_object mysql_data_seek mysql_fetch_lengths mysql_fetch_field mysql_field_seek mysql_free_result mysql_field_name mysql_field_table mysql_field_len mysql_field_type mysql_field_flags mysql_escape_string mysql_real_escape_string mysql_stat mysql_thread_id mysql_client_encoding mysql_get_client_info mysql_get_host_info mysql_get_proto_info mysql_get_server_info mysql_info mysql mysql_fieldname mysql_fieldtable mysql_fieldlen mysql_fieldtype mysql_fieldflags mysql_selectdb mysql_createdb mysql_dropdb mysql_freeresult mysql_numfields mysql_numrows mysql_listdbs mysql_listtables mysql_listfields mysql_db_name mysql_dbname mysql_tablename mysql_table_name pg_connect pg_pconnect pg_close pg_connection_status pg_connection_busy pg_connection_reset pg_host pg_dbname pg_port pg_tty pg_options pg_ping pg_query pg_send_query pg_cancel_query pg_fetch_result pg_fetch_row pg_fetch_assoc pg_fetch_array pg_fetch_object pg_fetch_all pg_affected_rows pg_get_result pg_result_seek pg_result_status pg_free_result pg_last_oid pg_num_rows pg_num_fields pg_field_name pg_field_num pg_field_size pg_field_type pg_field_prtlen pg_field_is_null pg_get_notify pg_get_pid pg_result_error pg_last_error pg_last_notice pg_put_line pg_end_copy pg_copy_to pg_copy_from pg_trace pg_untrace pg_lo_create pg_lo_unlink pg_lo_open pg_lo_close pg_lo_read pg_lo_write pg_lo_read_all pg_lo_import pg_lo_export pg_lo_seek pg_lo_tell pg_escape_string pg_escape_bytea pg_unescape_bytea pg_client_encoding pg_set_client_encoding pg_meta_data pg_convert pg_insert pg_update pg_delete pg_select pg_exec pg_getlastoid pg_cmdtuples pg_errormessage pg_numrows pg_numfields pg_fieldname pg_fieldsize pg_fieldtype pg_fieldnum pg_fieldprtlen pg_fieldisnull pg_freeresult pg_result pg_loreadall pg_locreate pg_lounlink pg_loopen pg_loclose pg_loread pg_lowrite pg_loimport pg_loexport http_response_code get_declared_traits getimagesizefromstring socket_import_stream stream_set_chunk_size trait_exists header_register_callback class_uses session_status session_register_shutdown echo print global static exit array empty eval isset unset die include require include_once require_once json_decode json_encode json_last_error json_last_error_msg curl_close curl_copy_handle curl_errno curl_error curl_escape curl_exec curl_file_create curl_getinfo curl_init curl_multi_add_handle curl_multi_close curl_multi_exec curl_multi_getcontent curl_multi_info_read curl_multi_init curl_multi_remove_handle curl_multi_select curl_multi_setopt curl_multi_strerror curl_pause curl_reset curl_setopt_array curl_setopt curl_share_close curl_share_init curl_share_setopt curl_strerror curl_unescape curl_version mysqli_affected_rows mysqli_autocommit mysqli_change_user mysqli_character_set_name mysqli_close mysqli_commit mysqli_connect_errno mysqli_connect_error mysqli_connect mysqli_data_seek mysqli_debug mysqli_dump_debug_info mysqli_errno mysqli_error_list mysqli_error mysqli_fetch_all mysqli_fetch_array mysqli_fetch_assoc mysqli_fetch_field_direct mysqli_fetch_field mysqli_fetch_fields mysqli_fetch_lengths mysqli_fetch_object mysqli_fetch_row mysqli_field_count mysqli_field_seek mysqli_field_tell mysqli_free_result mysqli_get_charset mysqli_get_client_info mysqli_get_client_stats mysqli_get_client_version mysqli_get_connection_stats mysqli_get_host_info mysqli_get_proto_info mysqli_get_server_info mysqli_get_server_version mysqli_info mysqli_init mysqli_insert_id mysqli_kill mysqli_more_results mysqli_multi_query mysqli_next_result mysqli_num_fields mysqli_num_rows mysqli_options mysqli_ping mysqli_prepare mysqli_query mysqli_real_connect mysqli_real_escape_string mysqli_real_query mysqli_reap_async_query mysqli_refresh mysqli_rollback mysqli_select_db mysqli_set_charset mysqli_set_local_infile_default mysqli_set_local_infile_handler mysqli_sqlstate mysqli_ssl_set mysqli_stat mysqli_stmt_init mysqli_store_result mysqli_thread_id mysqli_thread_safe mysqli_use_result mysqli_warning_count";d.registerHelper("hintWords","php",[h,i,a].join(" ").split(" "));d.registerHelper("wordChars","php",/[\w$]/);var g={name:"clike",helperType:"php",keywords:f(h),blockKeywords:f("catch do else elseif for foreach if switch try while finally"),defKeywords:f("class function interface namespace trait"),atoms:f(i),builtin:f(a),multiLineStrings:true,hooks:{"$":function(j){j.eatWhile(/[\w\$_]/);return"variable-2"},"<":function(n,l){var k;if(k=n.match(/<<\s*/)){var j=n.eat(/['"]/);n.eatWhile(/[\w\.]/);var m=n.current().slice(k[0].length+(j?2:1));if(j){n.eat(j)}if(m){(l.tokStack||(l.tokStack=[])).push(m,0);l.tokenize=b(m,j!="'");return"string"}}return false},"#":function(j){while(!j.eol()&&!j.match("?>",false)){j.next()}return"comment"},"/":function(j){if(j.eat("/")){while(!j.eol()&&!j.match("?>",false)){j.next()}return"comment"}return false},'"':function(j,k){(k.tokStack||(k.tokStack=[])).push('"',0);k.tokenize=b('"');return"string"},"{":function(j,k){if(k.tokStack&&k.tokStack.length){k.tokStack[k.tokStack.length-1]++}return false},"}":function(j,k){if(k.tokStack&&k.tokStack.length>0&&!--k.tokStack[k.tokStack.length-1]){k.tokenize=b(k.tokStack[k.tokStack.length-2])}return false}}};d.defineMode("php",function(l,m){var n=d.getMode(l,"text/html");var j=d.getMode(l,g);function k(u,s){var r=s.curMode==j;if(u.sol()&&s.pending&&s.pending!='"'&&s.pending!="'"){s.pending=null}if(!r){if(u.match(/^<\?\w*/)){s.curMode=j;if(!s.php){s.php=d.startState(j,n.indent(s.html,""))}s.curState=s.php;return"meta"}if(s.pending=='"'||s.pending=="'"){while(!u.eol()&&u.next()!=s.pending){}var q="string"}else{if(s.pending&&u.pos<s.pending.end){u.pos=s.pending.end;var q=s.pending.style}else{var q=n.token(u,s.curState)}}if(s.pending){s.pending=null}var t=u.current(),p=t.search(/<\?/),o;if(p!=-1){if(q=="string"&&(o=t.match(/[\'\"]$/))&&!/\?>/.test(t)){s.pending=o[0]}else{s.pending={end:u.pos,style:q}}u.backUp(t.length-p)}return q}else{if(r&&s.php.tokenize==null&&u.match("?>")){s.curMode=n;s.curState=s.html;if(!s.php.context.prev){s.php=null}return"meta"}else{return j.token(u,s.curState)}}}return{startState:function(){var o=d.startState(n);var p=m.startOpen?d.startState(j):null;return{html:o,php:p,curMode:m.startOpen?j:n,curState:m.startOpen?p:o,pending:null}},copyState:function(r){var p=r.html,q=d.copyState(n,p),t=r.php,o=t&&d.copyState(j,t),s;if(r.curMode==n){s=q}else{s=o}return{html:q,php:o,curMode:r.curMode,curState:s,pending:r.pending}},token:k,indent:function(p,o){if((p.curMode!=j&&/^\s*<\//.test(o))||(p.curMode==j&&/^\?>/.test(o))){return n.indent(p.html,o)}return p.curMode.indent(p.curState,o)},blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//",innerMode:function(o){return{state:o.curState,mode:o.curMode}}}},"htmlmixed","clike");d.defineMIME("application/x-httpd-php","php");d.defineMIME("application/x-httpd-php-open",{name:"php",startOpen:true});d.defineMIME("text/x-php",g)});
@@ -0,0 +1,12 @@
1
+ /*
2
+ Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
3
+ For licensing, see LICENSE.html or http://ckeditor.com/license
4
+ */
5
+ CKEDITOR.plugins.setLang( 'codemirror', 'af', {
6
+ toolbar: 'Bron',
7
+ searchCode: 'Search Source',
8
+ autoFormat: 'Format Selection',
9
+ commentSelectedRange: 'Comment Selection',
10
+ uncommentSelectedRange: 'Uncomment Selection',
11
+ autoCompleteToggle: 'Enable/Disable HTML Tag Autocomplete'
12
+ });
@@ -0,0 +1,12 @@
1
+ /*
2
+ Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
3
+ For licensing, see LICENSE.html or http://ckeditor.com/license
4
+ */
5
+ CKEDITOR.plugins.setLang( 'codemirror', 'ar', {
6
+ toolbar: 'المصدر',
7
+ searchCode: 'Search Source',
8
+ autoFormat: 'Format Selection',
9
+ commentSelectedRange: 'Comment Selection',
10
+ uncommentSelectedRange: 'Uncomment Selection',
11
+ autoCompleteToggle: 'Enable/Disable HTML Tag Autocomplete'
12
+ });
@@ -0,0 +1,12 @@
1
+ /*
2
+ Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
3
+ For licensing, see LICENSE.html or http://ckeditor.com/license
4
+ */
5
+ CKEDITOR.plugins.setLang( 'codemirror', 'bg', {
6
+ toolbar: 'Източник',
7
+ searchCode: 'Search Source',
8
+ autoFormat: 'Format Selection',
9
+ commentSelectedRange: 'Comment Selection',
10
+ uncommentSelectedRange: 'Uncomment Selection',
11
+ autoCompleteToggle: 'Enable/Disable HTML Tag Autocomplete'
12
+ });
@@ -0,0 +1,12 @@
1
+ /*
2
+ Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
3
+ For licensing, see LICENSE.html or http://ckeditor.com/license
4
+ */
5
+ CKEDITOR.plugins.setLang( 'codemirror', 'bn', {
6
+ toolbar: 'সোর্স',
7
+ searchCode: 'Search Source',
8
+ autoFormat: 'Format Selection',
9
+ commentSelectedRange: 'Comment Selection',
10
+ uncommentSelectedRange: 'Uncomment Selection',
11
+ autoCompleteToggle: 'Enable/Disable HTML Tag Autocomplete'
12
+ });
@@ -0,0 +1,12 @@
1
+ /*
2
+ Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
3
+ For licensing, see LICENSE.html or http://ckeditor.com/license
4
+ */
5
+ CKEDITOR.plugins.setLang( 'codemirror', 'bs', {
6
+ toolbar: 'HTML kôd',
7
+ searchCode: 'Search Source',
8
+ autoFormat: 'Format Selection',
9
+ commentSelectedRange: 'Comment Selection',
10
+ uncommentSelectedRange: 'Uncomment Selection',
11
+ autoCompleteToggle: 'Enable/Disable HTML Tag Autocomplete'
12
+ });
@@ -0,0 +1,12 @@
1
+ /*
2
+ Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
3
+ For licensing, see LICENSE.html or http://ckeditor.com/license
4
+ */
5
+ CKEDITOR.plugins.setLang( 'codemirror', 'ca', {
6
+ toolbar: 'Codi font',
7
+ searchCode: 'Search Source',
8
+ autoFormat: 'Format Selection',
9
+ commentSelectedRange: 'Comment Selection',
10
+ uncommentSelectedRange: 'Uncomment Selection',
11
+ autoCompleteToggle: 'Enable/Disable HTML Tag Autocomplete'
12
+ });
@@ -0,0 +1,12 @@
1
+ /*
2
+ Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
3
+ For licensing, see LICENSE.html or http://ckeditor.com/license
4
+ */
5
+ CKEDITOR.plugins.setLang( 'codemirror', 'cs', {
6
+ toolbar: 'Zdroj',
7
+ searchCode: 'Search Source',
8
+ autoFormat: 'Format Selection',
9
+ commentSelectedRange: 'Comment Selection',
10
+ uncommentSelectedRange: 'Uncomment Selection',
11
+ autoCompleteToggle: 'Enable/Disable HTML Tag Autocomplete'
12
+ });
@@ -0,0 +1,12 @@
1
+ /*
2
+ Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
3
+ For licensing, see LICENSE.html or http://ckeditor.com/license
4
+ */
5
+ CKEDITOR.plugins.setLang( 'codemirror', 'cy', {
6
+ toolbar: 'HTML',
7
+ searchCode: 'Search Source',
8
+ autoFormat: 'Format Selection',
9
+ commentSelectedRange: 'Comment Selection',
10
+ uncommentSelectedRange: 'Uncomment Selection',
11
+ autoCompleteToggle: 'Enable/Disable HTML Tag Autocomplete'
12
+ });
@@ -0,0 +1,12 @@
1
+ /*
2
+ Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
3
+ For licensing, see LICENSE.html or http://ckeditor.com/license
4
+ */
5
+ CKEDITOR.plugins.setLang( 'codemirror', 'da', {
6
+ toolbar: 'Kilde',
7
+ searchCode: 'Search Source',
8
+ autoFormat: 'Format Selection',
9
+ commentSelectedRange: 'Comment Selection',
10
+ uncommentSelectedRange: 'Uncomment Selection',
11
+ autoCompleteToggle: 'Enable/Disable HTML Tag Autocomplete'
12
+ });
@@ -0,0 +1,12 @@
1
+ /*
2
+ Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
3
+ For licensing, see LICENSE.html or http://ckeditor.com/license
4
+ */
5
+ CKEDITOR.plugins.setLang( 'codemirror', 'de', {
6
+ toolbar: 'Quellcode',
7
+ searchCode: 'Quellcode durchsuchen',
8
+ autoFormat: 'Auswahl formatieren',
9
+ commentSelectedRange: 'Auswahl auskommentieren',
10
+ uncommentSelectedRange: 'Auskommentierung entfernen',
11
+ autoCompleteToggle: 'HTML Tag Autovervollständigen de-/aktivieren'
12
+ });
@@ -0,0 +1,12 @@
1
+ /*
2
+ Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
3
+ For licensing, see LICENSE.html or http://ckeditor.com/license
4
+ */
5
+ CKEDITOR.plugins.setLang( 'codemirror', 'el', {
6
+ toolbar: 'HTML κώδικας',
7
+ searchCode: 'Search Source',
8
+ autoFormat: 'Format Selection',
9
+ commentSelectedRange: 'Comment Selection',
10
+ uncommentSelectedRange: 'Uncomment Selection',
11
+ autoCompleteToggle: 'Enable/Disable HTML Tag Autocomplete'
12
+ });
@@ -0,0 +1,12 @@
1
+ /*
2
+ Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
3
+ For licensing, see LICENSE.html or http://ckeditor.com/license
4
+ */
5
+ CKEDITOR.plugins.setLang( 'codemirror', 'en-au', {
6
+ toolbar: 'Source',
7
+ searchCode: 'Search Source',
8
+ autoFormat: 'Format Selection',
9
+ commentSelectedRange: 'Comment Selection',
10
+ uncommentSelectedRange: 'Uncomment Selection',
11
+ autoCompleteToggle: 'Enable/Disable HTML Tag Autocomplete'
12
+ });
@@ -0,0 +1,12 @@
1
+ /*
2
+ Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
3
+ For licensing, see LICENSE.html or http://ckeditor.com/license
4
+ */
5
+ CKEDITOR.plugins.setLang( 'codemirror', 'en-ca', {
6
+ toolbar: 'Source',
7
+ searchCode: 'Search Source',
8
+ autoFormat: 'Format Selection',
9
+ commentSelectedRange: 'Comment Selection',
10
+ uncommentSelectedRange: 'Uncomment Selection',
11
+ autoCompleteToggle: 'Enable/Disable HTML Tag Autocomplete'
12
+ });
@@ -0,0 +1,12 @@
1
+ /*
2
+ Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
3
+ For licensing, see LICENSE.html or http://ckeditor.com/license
4
+ */
5
+ CKEDITOR.plugins.setLang( 'codemirror', 'en-gb', {
6
+ toolbar: 'Source',
7
+ searchCode: 'Search Source',
8
+ autoFormat: 'Format Selection',
9
+ commentSelectedRange: 'Comment Selection',
10
+ uncommentSelectedRange: 'Uncomment Selection',
11
+ autoCompleteToggle: 'Enable/Disable HTML Tag Autocomplete'
12
+ });
@@ -0,0 +1,12 @@
1
+ /*
2
+ Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
3
+ For licensing, see LICENSE.html or http://ckeditor.com/license
4
+ */
5
+ CKEDITOR.plugins.setLang( 'codemirror', 'eo', {
6
+ toolbar: 'Fonto',
7
+ searchCode: 'Search Source',
8
+ autoFormat: 'Format Selection',
9
+ commentSelectedRange: 'Comment Selection',
10
+ uncommentSelectedRange: 'Uncomment Selection',
11
+ autoCompleteToggle: 'Enable/Disable HTML Tag Autocomplete'
12
+ });
@@ -0,0 +1,12 @@
1
+ /*
2
+ Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
3
+ For licensing, see LICENSE.html or http://ckeditor.com/license
4
+ */
5
+ CKEDITOR.plugins.setLang( 'codemirror', 'es', {
6
+ toolbar: 'Fuente HTML',
7
+ searchCode: 'Search Source',
8
+ autoFormat: 'Format Selection',
9
+ commentSelectedRange: 'Comment Selection',
10
+ uncommentSelectedRange: 'Uncomment Selection',
11
+ autoCompleteToggle: 'Enable/Disable HTML Tag Autocomplete'
12
+ });
@@ -0,0 +1,12 @@
1
+ /*
2
+ Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
3
+ For licensing, see LICENSE.html or http://ckeditor.com/license
4
+ */
5
+ CKEDITOR.plugins.setLang( 'codemirror', 'et', {
6
+ toolbar: 'Lähtekood',
7
+ searchCode: 'Search Source',
8
+ autoFormat: 'Format Selection',
9
+ commentSelectedRange: 'Comment Selection',
10
+ uncommentSelectedRange: 'Uncomment Selection',
11
+ autoCompleteToggle: 'Enable/Disable HTML Tag Autocomplete'
12
+ });
@@ -0,0 +1,12 @@
1
+ /*
2
+ Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
3
+ For licensing, see LICENSE.html or http://ckeditor.com/license
4
+ */
5
+ CKEDITOR.plugins.setLang( 'codemirror', 'eu', {
6
+ toolbar: 'HTML Iturburua',
7
+ searchCode: 'Search Source',
8
+ autoFormat: 'Format Selection',
9
+ commentSelectedRange: 'Comment Selection',
10
+ uncommentSelectedRange: 'Uncomment Selection',
11
+ autoCompleteToggle: 'Enable/Disable HTML Tag Autocomplete'
12
+ });
@@ -0,0 +1,12 @@
1
+ /*
2
+ Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
3
+ For licensing, see LICENSE.html or http://ckeditor.com/license
4
+ */
5
+ CKEDITOR.plugins.setLang( 'codemirror', 'fa', {
6
+ toolbar: 'منبع',
7
+ searchCode: 'Search Source',
8
+ autoFormat: 'Format Selection',
9
+ commentSelectedRange: 'Comment Selection',
10
+ uncommentSelectedRange: 'Uncomment Selection',
11
+ autoCompleteToggle: 'Enable/Disable HTML Tag Autocomplete'
12
+ });
@@ -0,0 +1,12 @@
1
+ /*
2
+ Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
3
+ For licensing, see LICENSE.html or http://ckeditor.com/license
4
+ */
5
+ CKEDITOR.plugins.setLang( 'codemirror', 'fi', {
6
+ toolbar: 'Koodi',
7
+ searchCode: 'Search Source',
8
+ autoFormat: 'Format Selection',
9
+ commentSelectedRange: 'Comment Selection',
10
+ uncommentSelectedRange: 'Uncomment Selection',
11
+ autoCompleteToggle: 'Enable/Disable HTML Tag Autocomplete'
12
+ });
@@ -0,0 +1,12 @@
1
+ /*
2
+ Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
3
+ For licensing, see LICENSE.html or http://ckeditor.com/license
4
+ */
5
+ CKEDITOR.plugins.setLang( 'codemirror', 'fo', {
6
+ toolbar: 'Kelda',
7
+ searchCode: 'Search Source',
8
+ autoFormat: 'Format Selection',
9
+ commentSelectedRange: 'Comment Selection',
10
+ uncommentSelectedRange: 'Uncomment Selection',
11
+ autoCompleteToggle: 'Enable/Disable HTML Tag Autocomplete'
12
+ });
@@ -0,0 +1,12 @@
1
+ /*
2
+ Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
3
+ For licensing, see LICENSE.html or http://ckeditor.com/license
4
+ */
5
+ CKEDITOR.plugins.setLang( 'codemirror', 'fr-ca', {
6
+ toolbar: 'Source',
7
+ searchCode: 'Search Source',
8
+ autoFormat: 'Format Selection',
9
+ commentSelectedRange: 'Comment Selection',
10
+ uncommentSelectedRange: 'Uncomment Selection',
11
+ autoCompleteToggle: 'Enable/Disable HTML Tag Autocomplete'
12
+ });
@@ -0,0 +1,12 @@
1
+ /*
2
+ Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
3
+ For licensing, see LICENSE.html or http://ckeditor.com/license
4
+ */
5
+ CKEDITOR.plugins.setLang( 'codemirror', 'fr', {
6
+ toolbar: 'Source',
7
+ searchCode: 'Search Source',
8
+ autoFormat: 'Format Selection',
9
+ commentSelectedRange: 'Comment Selection',
10
+ uncommentSelectedRange: 'Uncomment Selection',
11
+ autoCompleteToggle: 'Enable/Disable HTML Tag Autocomplete'
12
+ });
@@ -0,0 +1,12 @@
1
+ /*
2
+ Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
3
+ For licensing, see LICENSE.html or http://ckeditor.com/license
4
+ */
5
+ CKEDITOR.plugins.setLang( 'codemirror', 'gl', {
6
+ toolbar: 'Código Fonte',
7
+ searchCode: 'Search Source',
8
+ autoFormat: 'Format Selection',
9
+ commentSelectedRange: 'Comment Selection',
10
+ uncommentSelectedRange: 'Uncomment Selection',
11
+ autoCompleteToggle: 'Enable/Disable HTML Tag Autocomplete'
12
+ });
@@ -0,0 +1,12 @@
1
+ /*
2
+ Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
3
+ For licensing, see LICENSE.html or http://ckeditor.com/license
4
+ */
5
+ CKEDITOR.plugins.setLang( 'codemirror', 'gu', {
6
+ toolbar: 'મૂળ કે પ્રાથમિક દસ્તાવેજ',
7
+ searchCode: 'Search Source',
8
+ autoFormat: 'Format Selection',
9
+ commentSelectedRange: 'Comment Selection',
10
+ uncommentSelectedRange: 'Uncomment Selection',
11
+ autoCompleteToggle: 'Enable/Disable HTML Tag Autocomplete'
12
+ });
@@ -0,0 +1,12 @@
1
+ /*
2
+ Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
3
+ For licensing, see LICENSE.html or http://ckeditor.com/license
4
+ */
5
+ CKEDITOR.plugins.setLang( 'codemirror', 'he', {
6
+ toolbar: 'מקור',
7
+ searchCode: 'Search Source',
8
+ autoFormat: 'Format Selection',
9
+ commentSelectedRange: 'Comment Selection',
10
+ uncommentSelectedRange: 'Uncomment Selection',
11
+ autoCompleteToggle: 'Enable/Disable HTML Tag Autocomplete'
12
+ });
@@ -0,0 +1,12 @@
1
+ /*
2
+ Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
3
+ For licensing, see LICENSE.html or http://ckeditor.com/license
4
+ */
5
+ CKEDITOR.plugins.setLang( 'codemirror', 'hi', {
6
+ toolbar: 'सोर्स',
7
+ searchCode: 'Search Source',
8
+ autoFormat: 'Format Selection',
9
+ commentSelectedRange: 'Comment Selection',
10
+ uncommentSelectedRange: 'Uncomment Selection',
11
+ autoCompleteToggle: 'Enable/Disable HTML Tag Autocomplete'
12
+ });