gollum 5.3.2 → 6.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (1286) hide show
  1. checksums.yaml +4 -4
  2. data/CONTRIBUTING.md +118 -10
  3. data/Dockerfile +31 -15
  4. data/Gemfile +12 -16
  5. data/HISTORY.md +2 -6
  6. data/LATEST_CHANGES.md +18 -2
  7. data/README.md +29 -17
  8. data/Rakefile +69 -13
  9. data/bin/gollum +30 -24
  10. data/bin/gollum-migrate-tags +3 -3
  11. data/config.rb +1 -0
  12. data/docker-run.sh +2 -3
  13. data/gollum.gemspec +155 -1093
  14. data/lib/gollum/app.rb +75 -39
  15. data/lib/gollum/assets.rb +8 -4
  16. data/lib/gollum/helpers.rb +24 -0
  17. data/lib/gollum/locales/cn.yml +103 -0
  18. data/lib/gollum/locales/en.yml +103 -0
  19. data/lib/gollum/public/assets/.sprockets-manifest-6c4a0bc907c3e25cb7e69c0faf6e71d2.json +1 -0
  20. data/lib/gollum/public/assets/app-05adca32f8f4f3effe10f8f4cf26dfd6a419ba986bce60d3f51a97e4055d4113.js +30 -0
  21. data/lib/gollum/public/assets/app-05adca32f8f4f3effe10f8f4cf26dfd6a419ba986bce60d3f51a97e4055d4113.js.gz +0 -0
  22. data/lib/gollum/public/assets/app-e224b375d824f0171fc926d624dc0887bf453db83f485b1992bc0859c4110e3e.css +11 -0
  23. data/lib/gollum/public/assets/app-e224b375d824f0171fc926d624dc0887bf453db83f485b1992bc0859c4110e3e.css.gz +0 -0
  24. data/lib/gollum/public/assets/{criticmarkup-31ae5d3282bbb8e7b7c3c9917e9fb68e3315a6b4a75da6cec48d21b8846905c4.css → criticmarkup-7b66f7a53b854bc9e4168be5b4725ca38e2bc6e9c41d5c050a9f60d9a94cb405.css} +1 -1
  25. data/lib/gollum/public/assets/criticmarkup-7b66f7a53b854bc9e4168be5b4725ca38e2bc6e9c41d5c050a9f60d9a94cb405.css.gz +0 -0
  26. data/lib/gollum/public/assets/editor-5ac2983673c8540e50683c3ae37f1635882e94a04a1e823776a663740fdb3aa7.js +165 -0
  27. data/lib/gollum/public/assets/editor-5ac2983673c8540e50683c3ae37f1635882e94a04a1e823776a663740fdb3aa7.js.gz +0 -0
  28. data/lib/gollum/public/assets/gollum.katex-e70c1d51a08ebfe759eecbb33fbed54f300ccd7fb8d0e86e251caaf4e50f6b68.js +9 -0
  29. data/lib/gollum/public/assets/gollum.katex-e70c1d51a08ebfe759eecbb33fbed54f300ccd7fb8d0e86e251caaf4e50f6b68.js.gz +0 -0
  30. data/lib/gollum/public/assets/gollum.mermaid-ccc590b7d9655deec94c9975f25d74fbe38f703c927e26cf81169d63fea7cd50.js +117 -0
  31. data/lib/gollum/public/assets/gollum.mermaid-ccc590b7d9655deec94c9975f25d74fbe38f703c927e26cf81169d63fea7cd50.js.gz +0 -0
  32. data/lib/gollum/public/assets/katex/dist/fonts/KaTeX_AMS-Regular.woff2 +0 -0
  33. data/lib/gollum/public/assets/katex/dist/fonts/KaTeX_Caligraphic-Bold.woff2 +0 -0
  34. data/lib/gollum/public/assets/katex/dist/fonts/KaTeX_Caligraphic-Regular.woff2 +0 -0
  35. data/lib/gollum/public/assets/katex/dist/fonts/KaTeX_Fraktur-Bold.woff2 +0 -0
  36. data/lib/gollum/public/assets/katex/dist/fonts/KaTeX_Fraktur-Regular.woff2 +0 -0
  37. data/lib/gollum/public/assets/katex/dist/fonts/KaTeX_Main-Bold.woff2 +0 -0
  38. data/lib/gollum/public/assets/katex/dist/fonts/KaTeX_Main-BoldItalic.woff2 +0 -0
  39. data/lib/gollum/public/assets/katex/dist/fonts/KaTeX_Main-Italic.woff2 +0 -0
  40. data/lib/gollum/public/assets/katex/dist/fonts/KaTeX_Main-Regular.woff2 +0 -0
  41. data/lib/gollum/public/assets/katex/dist/fonts/KaTeX_Math-BoldItalic.woff2 +0 -0
  42. data/lib/gollum/public/assets/katex/dist/fonts/KaTeX_Math-Italic.woff2 +0 -0
  43. data/lib/gollum/public/assets/katex/dist/fonts/KaTeX_SansSerif-Bold.woff2 +0 -0
  44. data/lib/gollum/public/assets/katex/dist/fonts/KaTeX_SansSerif-Italic.woff2 +0 -0
  45. data/lib/gollum/public/assets/katex/dist/fonts/KaTeX_SansSerif-Regular.woff2 +0 -0
  46. data/lib/gollum/public/assets/katex/dist/fonts/KaTeX_Script-Regular.woff2 +0 -0
  47. data/lib/gollum/public/assets/katex/dist/fonts/KaTeX_Size1-Regular.woff2 +0 -0
  48. data/lib/gollum/public/assets/katex/dist/fonts/KaTeX_Size2-Regular.woff2 +0 -0
  49. data/lib/gollum/public/assets/katex/dist/fonts/KaTeX_Size3-Regular.woff2 +0 -0
  50. data/lib/gollum/public/assets/katex/dist/fonts/KaTeX_Size4-Regular.woff2 +0 -0
  51. data/lib/gollum/public/assets/katex/dist/fonts/KaTeX_Typewriter-Regular.woff2 +0 -0
  52. data/lib/gollum/public/assets/katex/dist/katex-709d4191c4f005516a709377f79e468d343f4e6c91a29a6ff188d13d124ba55f.css +1 -0
  53. data/lib/gollum/public/assets/katex/dist/katex-709d4191c4f005516a709377f79e468d343f4e6c91a29a6ff188d13d124ba55f.css.gz +0 -0
  54. data/lib/gollum/public/assets/print-512498c368be0d3fb1ba105dfa84289ae48380ec9fcbef948bd4e23b0b095bfb.css.gz +0 -0
  55. data/lib/gollum/public/gollum/javascript/HOWTO_UPDATE_MATHJAX.md +18 -38
  56. data/lib/gollum/public/gollum/javascript/MathJax/a11y/assistive-mml.js +1 -0
  57. data/lib/gollum/public/gollum/javascript/MathJax/a11y/complexity.js +1 -0
  58. data/lib/gollum/public/gollum/javascript/MathJax/a11y/explorer.js +1 -0
  59. data/lib/gollum/public/gollum/javascript/MathJax/a11y/semantic-enrich.js +1 -0
  60. data/lib/gollum/public/gollum/javascript/MathJax/a11y/sre.js +1 -0
  61. data/lib/gollum/public/gollum/javascript/MathJax/adaptors/liteDOM.js +1 -0
  62. data/lib/gollum/public/gollum/javascript/MathJax/core.js +1 -0
  63. data/lib/gollum/public/gollum/javascript/MathJax/input/asciimath.js +1 -0
  64. data/lib/gollum/public/gollum/javascript/MathJax/input/mml/entities.js +1 -0
  65. data/lib/gollum/public/gollum/javascript/MathJax/input/mml/extensions/mml3.js +1 -0
  66. data/lib/gollum/public/gollum/javascript/MathJax/input/mml/extensions/mml3.sef.json +1 -0
  67. data/lib/gollum/public/gollum/javascript/MathJax/input/mml.js +1 -0
  68. data/lib/gollum/public/gollum/javascript/MathJax/input/tex/extensions/action.js +1 -0
  69. data/lib/gollum/public/gollum/javascript/MathJax/input/tex/extensions/all-packages.js +34 -0
  70. data/lib/gollum/public/gollum/javascript/MathJax/input/tex/extensions/ams.js +1 -0
  71. data/lib/gollum/public/gollum/javascript/MathJax/input/tex/extensions/amscd.js +1 -0
  72. data/lib/gollum/public/gollum/javascript/MathJax/input/tex/extensions/autoload.js +1 -0
  73. data/lib/gollum/public/gollum/javascript/MathJax/input/tex/extensions/bbox.js +1 -0
  74. data/lib/gollum/public/gollum/javascript/MathJax/input/tex/extensions/boldsymbol.js +1 -0
  75. data/lib/gollum/public/gollum/javascript/MathJax/input/tex/extensions/braket.js +1 -0
  76. data/lib/gollum/public/gollum/javascript/MathJax/input/tex/extensions/bussproofs.js +1 -0
  77. data/lib/gollum/public/gollum/javascript/MathJax/input/tex/extensions/cancel.js +1 -0
  78. data/lib/gollum/public/gollum/javascript/MathJax/input/tex/extensions/cases.js +1 -0
  79. data/lib/gollum/public/gollum/javascript/MathJax/input/tex/extensions/centernot.js +1 -0
  80. data/lib/gollum/public/gollum/javascript/MathJax/input/tex/extensions/color.js +1 -0
  81. data/lib/gollum/public/gollum/javascript/MathJax/input/tex/extensions/colortbl.js +1 -0
  82. data/lib/gollum/public/gollum/javascript/MathJax/input/tex/extensions/colorv2.js +1 -0
  83. data/lib/gollum/public/gollum/javascript/MathJax/input/tex/extensions/configmacros.js +1 -0
  84. data/lib/gollum/public/gollum/javascript/MathJax/input/tex/extensions/empheq.js +1 -0
  85. data/lib/gollum/public/gollum/javascript/MathJax/input/tex/extensions/enclose.js +1 -0
  86. data/lib/gollum/public/gollum/javascript/MathJax/input/tex/extensions/extpfeil.js +1 -0
  87. data/lib/gollum/public/gollum/javascript/MathJax/input/tex/extensions/gensymb.js +1 -0
  88. data/lib/gollum/public/gollum/javascript/MathJax/input/tex/extensions/html.js +1 -0
  89. data/lib/gollum/public/gollum/javascript/MathJax/input/tex/extensions/mathtools.js +1 -0
  90. data/lib/gollum/public/gollum/javascript/MathJax/input/tex/extensions/mhchem.js +34 -0
  91. data/lib/gollum/public/gollum/javascript/MathJax/input/tex/extensions/newcommand.js +1 -0
  92. data/lib/gollum/public/gollum/javascript/MathJax/input/tex/extensions/noerrors.js +1 -0
  93. data/lib/gollum/public/gollum/javascript/MathJax/input/tex/extensions/noundefined.js +1 -0
  94. data/lib/gollum/public/gollum/javascript/MathJax/input/tex/extensions/physics.js +1 -0
  95. data/lib/gollum/public/gollum/javascript/MathJax/input/tex/extensions/require.js +1 -0
  96. data/lib/gollum/public/gollum/javascript/MathJax/input/tex/extensions/setoptions.js +1 -0
  97. data/lib/gollum/public/gollum/javascript/MathJax/input/tex/extensions/tagformat.js +1 -0
  98. data/lib/gollum/public/gollum/javascript/MathJax/input/tex/extensions/textcomp.js +1 -0
  99. data/lib/gollum/public/gollum/javascript/MathJax/input/tex/extensions/textmacros.js +1 -0
  100. data/lib/gollum/public/gollum/javascript/MathJax/input/tex/extensions/unicode.js +1 -0
  101. data/lib/gollum/public/gollum/javascript/MathJax/input/tex/extensions/upgreek.js +1 -0
  102. data/lib/gollum/public/gollum/javascript/MathJax/input/tex/extensions/verb.js +1 -0
  103. data/lib/gollum/public/gollum/javascript/MathJax/input/tex-base.js +1 -0
  104. data/lib/gollum/public/gollum/javascript/MathJax/input/tex-full.js +34 -0
  105. data/lib/gollum/public/gollum/javascript/MathJax/input/tex.js +1 -0
  106. data/lib/gollum/public/gollum/javascript/MathJax/latest.js +1 -0
  107. data/lib/gollum/public/gollum/javascript/MathJax/loader.js +1 -0
  108. data/lib/gollum/public/gollum/javascript/MathJax/node-main.js +1 -0
  109. data/lib/gollum/public/gollum/javascript/MathJax/output/chtml/fonts/tex.js +1 -0
  110. data/lib/gollum/public/gollum/javascript/MathJax/output/chtml/fonts/woff-v2/MathJax_AMS-Regular.woff +0 -0
  111. data/lib/gollum/public/gollum/javascript/MathJax/output/chtml/fonts/woff-v2/MathJax_Calligraphic-Bold.woff +0 -0
  112. data/lib/gollum/public/gollum/javascript/MathJax/output/chtml/fonts/woff-v2/MathJax_Calligraphic-Regular.woff +0 -0
  113. data/lib/gollum/public/gollum/javascript/MathJax/output/chtml/fonts/woff-v2/MathJax_Fraktur-Bold.woff +0 -0
  114. data/lib/gollum/public/gollum/javascript/MathJax/output/chtml/fonts/woff-v2/MathJax_Fraktur-Regular.woff +0 -0
  115. data/lib/gollum/public/gollum/javascript/MathJax/output/chtml/fonts/woff-v2/MathJax_Main-Bold.woff +0 -0
  116. data/lib/gollum/public/gollum/javascript/MathJax/output/chtml/fonts/woff-v2/MathJax_Main-Italic.woff +0 -0
  117. data/lib/gollum/public/gollum/javascript/MathJax/output/chtml/fonts/woff-v2/MathJax_Main-Regular.woff +0 -0
  118. data/lib/gollum/public/gollum/javascript/MathJax/output/chtml/fonts/woff-v2/MathJax_Math-BoldItalic.woff +0 -0
  119. data/lib/gollum/public/gollum/javascript/MathJax/output/chtml/fonts/woff-v2/MathJax_Math-Italic.woff +0 -0
  120. data/lib/gollum/public/gollum/javascript/MathJax/output/chtml/fonts/woff-v2/MathJax_Math-Regular.woff +0 -0
  121. data/lib/gollum/public/gollum/javascript/MathJax/output/chtml/fonts/woff-v2/MathJax_SansSerif-Bold.woff +0 -0
  122. data/lib/gollum/public/gollum/javascript/MathJax/output/chtml/fonts/woff-v2/MathJax_SansSerif-Italic.woff +0 -0
  123. data/lib/gollum/public/gollum/javascript/MathJax/output/chtml/fonts/woff-v2/MathJax_SansSerif-Regular.woff +0 -0
  124. data/lib/gollum/public/gollum/javascript/MathJax/output/chtml/fonts/woff-v2/MathJax_Script-Regular.woff +0 -0
  125. data/lib/gollum/public/gollum/javascript/MathJax/output/chtml/fonts/woff-v2/MathJax_Size1-Regular.woff +0 -0
  126. data/lib/gollum/public/gollum/javascript/MathJax/output/chtml/fonts/woff-v2/MathJax_Size2-Regular.woff +0 -0
  127. data/lib/gollum/public/gollum/javascript/MathJax/output/chtml/fonts/woff-v2/MathJax_Size3-Regular.woff +0 -0
  128. data/lib/gollum/public/gollum/javascript/MathJax/output/chtml/fonts/woff-v2/MathJax_Size4-Regular.woff +0 -0
  129. data/lib/gollum/public/gollum/javascript/MathJax/output/chtml/fonts/woff-v2/MathJax_Typewriter-Regular.woff +0 -0
  130. data/lib/gollum/public/gollum/javascript/MathJax/output/chtml/fonts/woff-v2/MathJax_Zero.woff +0 -0
  131. data/lib/gollum/public/gollum/javascript/MathJax/output/chtml.js +1 -0
  132. data/lib/gollum/public/gollum/javascript/MathJax/output/svg/fonts/tex.js +1 -0
  133. data/lib/gollum/public/gollum/javascript/MathJax/output/svg.js +1 -0
  134. data/lib/gollum/public/gollum/javascript/MathJax/sre/mathmaps/base.json +29 -0
  135. data/lib/gollum/public/gollum/javascript/MathJax/sre/mathmaps/ca.json +140 -0
  136. data/lib/gollum/public/gollum/javascript/MathJax/sre/mathmaps/da.json +140 -0
  137. data/lib/gollum/public/gollum/javascript/MathJax/sre/mathmaps/de.json +146 -0
  138. data/lib/gollum/public/gollum/javascript/MathJax/sre/mathmaps/en.json +158 -0
  139. data/lib/gollum/public/gollum/javascript/MathJax/sre/mathmaps/es.json +140 -0
  140. data/lib/gollum/public/gollum/javascript/MathJax/sre/mathmaps/fr.json +146 -0
  141. data/lib/gollum/public/gollum/javascript/MathJax/sre/mathmaps/hi.json +146 -0
  142. data/lib/gollum/public/gollum/javascript/MathJax/sre/mathmaps/it.json +146 -0
  143. data/lib/gollum/public/gollum/javascript/MathJax/sre/mathmaps/nb.json +146 -0
  144. data/lib/gollum/public/gollum/javascript/MathJax/sre/mathmaps/nemeth.json +125 -0
  145. data/lib/gollum/public/gollum/javascript/MathJax/sre/mathmaps/nn.json +146 -0
  146. data/lib/gollum/public/gollum/javascript/MathJax/sre/mathmaps/sv.json +146 -0
  147. data/lib/gollum/public/gollum/javascript/MathJax/startup.js +1 -0
  148. data/lib/gollum/public/gollum/javascript/MathJax/tex-chtml-full-speech.js +34 -0
  149. data/lib/gollum/public/gollum/javascript/MathJax/tex-mml-chtml.js +1 -0
  150. data/lib/gollum/public/gollum/javascript/MathJax/ui/lazy.js +1 -0
  151. data/lib/gollum/public/gollum/javascript/MathJax/ui/menu.js +1 -0
  152. data/lib/gollum/public/gollum/javascript/MathJax/ui/safe.js +1 -0
  153. data/lib/gollum/public/gollum/javascript/app.js +6 -2
  154. data/lib/gollum/public/gollum/javascript/editor/gollum.editor.js +53 -42
  155. data/lib/gollum/public/gollum/javascript/editor/langs/markdown.js +1 -1
  156. data/lib/gollum/public/gollum/javascript/editor/modes.js.erb +1 -1
  157. data/lib/gollum/public/gollum/javascript/editor.js +26 -26
  158. data/lib/gollum/public/gollum/javascript/gollum.behaviors.js +40 -0
  159. data/lib/gollum/public/gollum/javascript/gollum.dialog.js +21 -32
  160. data/lib/gollum/public/gollum/javascript/gollum.js.erb +161 -30
  161. data/lib/gollum/public/gollum/javascript/gollum.katex.js +3 -0
  162. data/lib/gollum/public/gollum/javascript/gollum.mermaid.js +2 -0
  163. data/lib/gollum/public/gollum/javascript/jquery-1.9.1.min.js +5 -0
  164. data/lib/gollum/public/gollum/stylesheets/_base.scss +5 -42
  165. data/lib/gollum/public/gollum/stylesheets/_features.scss +0 -7
  166. data/lib/gollum/public/gollum/stylesheets/_spinners.scss +1 -1
  167. data/lib/gollum/public/gollum/stylesheets/app.scss +12 -4
  168. data/lib/gollum/public/gollum/stylesheets/dialog.scss +1 -10
  169. data/lib/gollum/public/gollum/stylesheets/editor.scss +8 -183
  170. data/lib/gollum/public/gollum/stylesheets/highlights.scss +196 -0
  171. data/lib/gollum/public/gollum/stylesheets/print.scss +1 -1
  172. data/lib/gollum/public/gollum/stylesheets/tables.scss +0 -4
  173. data/lib/gollum/public/gollum/stylesheets/template.scss.erb +79 -611
  174. data/lib/gollum/public/gollum/stylesheets/wiki_content.scss +144 -0
  175. data/lib/gollum/templates/commit.mustache +3 -2
  176. data/lib/gollum/templates/compare.mustache +72 -46
  177. data/lib/gollum/templates/create.mustache +3 -3
  178. data/lib/gollum/templates/edit.mustache +14 -9
  179. data/lib/gollum/templates/editor.mustache +151 -90
  180. data/lib/gollum/templates/error.mustache +2 -2
  181. data/lib/gollum/templates/history.mustache +36 -30
  182. data/lib/gollum/templates/latest_changes.mustache +1 -1
  183. data/lib/gollum/templates/layout.mustache +85 -10
  184. data/lib/gollum/templates/navbar.mustache +31 -31
  185. data/lib/gollum/templates/overview.mustache +16 -6
  186. data/lib/gollum/templates/pagination.mustache +21 -4
  187. data/lib/gollum/templates/search.mustache +11 -10
  188. data/lib/gollum/templates/searchbar.mustache +1 -1
  189. data/lib/gollum/templates/wiki_content.mustache +2 -2
  190. data/lib/gollum/views/compare.rb +1 -1
  191. data/lib/gollum/views/editable.rb +12 -0
  192. data/lib/gollum/views/has_math.rb +7 -3
  193. data/lib/gollum/views/helpers/locale_helpers.rb +7 -0
  194. data/lib/gollum/views/helpers.rb +2 -1
  195. data/lib/gollum/views/latest_changes.rb +1 -1
  196. data/lib/gollum/views/layout.rb +12 -12
  197. data/lib/gollum/views/overview.rb +12 -12
  198. data/lib/gollum/views/page.rb +1 -1
  199. data/lib/gollum/views/pagination.rb +1 -1
  200. data/lib/gollum/views/rss.rb +60 -19
  201. data/lib/gollum/views/search.rb +2 -2
  202. data/lib/gollum.rb +5 -3
  203. data/package.json +12 -0
  204. data/yarn.lock +887 -0
  205. metadata +189 -1133
  206. data/lib/gollum/public/assets/.sprockets-manifest-faf3cd9473a619bf523bb299dca17dab.json +0 -1
  207. data/lib/gollum/public/assets/app-309be032396e783b13a47df58f389b7c8e11c2b2d42640560b874f677c25f6e5.css +0 -21
  208. data/lib/gollum/public/assets/app-309be032396e783b13a47df58f389b7c8e11c2b2d42640560b874f677c25f6e5.css.gz +0 -0
  209. data/lib/gollum/public/assets/app-e63ab45773141139cffcd04474f73c21042c7267568325d4e00775b4f9eaa022.js +0 -6
  210. data/lib/gollum/public/assets/app-e63ab45773141139cffcd04474f73c21042c7267568325d4e00775b4f9eaa022.js.gz +0 -0
  211. data/lib/gollum/public/assets/criticmarkup-31ae5d3282bbb8e7b7c3c9917e9fb68e3315a6b4a75da6cec48d21b8846905c4.css.gz +0 -0
  212. data/lib/gollum/public/assets/editor-9881d0c7ae663293f0e3a7e72729eec7e940fa613185c076709b76d292f5703a.js +0 -24
  213. data/lib/gollum/public/assets/editor-9881d0c7ae663293f0e3a7e72729eec7e940fa613185c076709b76d292f5703a.js.gz +0 -0
  214. data/lib/gollum/public/gollum/javascript/HOWTO_UPDATE_ACE.md +0 -11
  215. data/lib/gollum/public/gollum/javascript/MathJax/LICENSE +0 -202
  216. data/lib/gollum/public/gollum/javascript/MathJax/MathJax.js +0 -19
  217. data/lib/gollum/public/gollum/javascript/MathJax/config/TeX-AMS-MML_HTMLorMML-full.js +0 -75
  218. data/lib/gollum/public/gollum/javascript/MathJax/config/TeX-AMS-MML_HTMLorMML.js +0 -69
  219. data/lib/gollum/public/gollum/javascript/MathJax/extensions/AssistiveMML.js +0 -19
  220. data/lib/gollum/public/gollum/javascript/MathJax/extensions/CHTML-preview.js +0 -19
  221. data/lib/gollum/public/gollum/javascript/MathJax/extensions/FontWarnings.js +0 -19
  222. data/lib/gollum/public/gollum/javascript/MathJax/extensions/HTML-CSS/handle-floats.js +0 -19
  223. data/lib/gollum/public/gollum/javascript/MathJax/extensions/HelpDialog.js +0 -19
  224. data/lib/gollum/public/gollum/javascript/MathJax/extensions/MatchWebFonts.js +0 -19
  225. data/lib/gollum/public/gollum/javascript/MathJax/extensions/MathEvents.js +0 -19
  226. data/lib/gollum/public/gollum/javascript/MathJax/extensions/MathML/content-mathml.js +0 -19
  227. data/lib/gollum/public/gollum/javascript/MathJax/extensions/MathML/mml3.js +0 -19
  228. data/lib/gollum/public/gollum/javascript/MathJax/extensions/MathMenu.js +0 -19
  229. data/lib/gollum/public/gollum/javascript/MathJax/extensions/MathZoom.js +0 -19
  230. data/lib/gollum/public/gollum/javascript/MathJax/extensions/Safe.js +0 -19
  231. data/lib/gollum/public/gollum/javascript/MathJax/extensions/TeX/AMScd.js +0 -19
  232. data/lib/gollum/public/gollum/javascript/MathJax/extensions/TeX/AMSmath.js +0 -19
  233. data/lib/gollum/public/gollum/javascript/MathJax/extensions/TeX/AMSsymbols.js +0 -19
  234. data/lib/gollum/public/gollum/javascript/MathJax/extensions/TeX/HTML.js +0 -19
  235. data/lib/gollum/public/gollum/javascript/MathJax/extensions/TeX/action.js +0 -19
  236. data/lib/gollum/public/gollum/javascript/MathJax/extensions/TeX/autobold.js +0 -19
  237. data/lib/gollum/public/gollum/javascript/MathJax/extensions/TeX/autoload-all.js +0 -19
  238. data/lib/gollum/public/gollum/javascript/MathJax/extensions/TeX/bbox.js +0 -19
  239. data/lib/gollum/public/gollum/javascript/MathJax/extensions/TeX/begingroup.js +0 -19
  240. data/lib/gollum/public/gollum/javascript/MathJax/extensions/TeX/boldsymbol.js +0 -19
  241. data/lib/gollum/public/gollum/javascript/MathJax/extensions/TeX/cancel.js +0 -19
  242. data/lib/gollum/public/gollum/javascript/MathJax/extensions/TeX/color.js +0 -19
  243. data/lib/gollum/public/gollum/javascript/MathJax/extensions/TeX/enclose.js +0 -19
  244. data/lib/gollum/public/gollum/javascript/MathJax/extensions/TeX/extpfeil.js +0 -19
  245. data/lib/gollum/public/gollum/javascript/MathJax/extensions/TeX/mathchoice.js +0 -19
  246. data/lib/gollum/public/gollum/javascript/MathJax/extensions/TeX/mediawiki-texvc.js +0 -19
  247. data/lib/gollum/public/gollum/javascript/MathJax/extensions/TeX/mhchem.js +0 -19
  248. data/lib/gollum/public/gollum/javascript/MathJax/extensions/TeX/mhchem3/mhchem.js +0 -332
  249. data/lib/gollum/public/gollum/javascript/MathJax/extensions/TeX/newcommand.js +0 -19
  250. data/lib/gollum/public/gollum/javascript/MathJax/extensions/TeX/noErrors.js +0 -19
  251. data/lib/gollum/public/gollum/javascript/MathJax/extensions/TeX/noUndefined.js +0 -19
  252. data/lib/gollum/public/gollum/javascript/MathJax/extensions/TeX/unicode.js +0 -19
  253. data/lib/gollum/public/gollum/javascript/MathJax/extensions/TeX/verb.js +0 -19
  254. data/lib/gollum/public/gollum/javascript/MathJax/extensions/a11y/accessibility-menu.js +0 -1
  255. data/lib/gollum/public/gollum/javascript/MathJax/extensions/a11y/auto-collapse.js +0 -1
  256. data/lib/gollum/public/gollum/javascript/MathJax/extensions/a11y/collapsible.js +0 -1
  257. data/lib/gollum/public/gollum/javascript/MathJax/extensions/a11y/explorer.js +0 -1
  258. data/lib/gollum/public/gollum/javascript/MathJax/extensions/a11y/invalid_keypress.mp3 +0 -0
  259. data/lib/gollum/public/gollum/javascript/MathJax/extensions/a11y/invalid_keypress.ogg +0 -0
  260. data/lib/gollum/public/gollum/javascript/MathJax/extensions/a11y/mathjax-sre.js +0 -985
  261. data/lib/gollum/public/gollum/javascript/MathJax/extensions/a11y/mathmaps/en/functions/algebra.js +0 -1
  262. data/lib/gollum/public/gollum/javascript/MathJax/extensions/a11y/mathmaps/en/functions/elementary.js +0 -1
  263. data/lib/gollum/public/gollum/javascript/MathJax/extensions/a11y/mathmaps/en/functions/hyperbolic.js +0 -1
  264. data/lib/gollum/public/gollum/javascript/MathJax/extensions/a11y/mathmaps/en/functions/trigonometry.js +0 -1
  265. data/lib/gollum/public/gollum/javascript/MathJax/extensions/a11y/mathmaps/en/symbols/greek-capital.js +0 -1
  266. data/lib/gollum/public/gollum/javascript/MathJax/extensions/a11y/mathmaps/en/symbols/greek-mathfonts-bold.js +0 -1
  267. data/lib/gollum/public/gollum/javascript/MathJax/extensions/a11y/mathmaps/en/symbols/greek-mathfonts-italic.js +0 -1
  268. data/lib/gollum/public/gollum/javascript/MathJax/extensions/a11y/mathmaps/en/symbols/greek-mathfonts-sans-serif-bold.js +0 -1
  269. data/lib/gollum/public/gollum/javascript/MathJax/extensions/a11y/mathmaps/en/symbols/greek-scripts.js +0 -1
  270. data/lib/gollum/public/gollum/javascript/MathJax/extensions/a11y/mathmaps/en/symbols/greek-small.js +0 -1
  271. data/lib/gollum/public/gollum/javascript/MathJax/extensions/a11y/mathmaps/en/symbols/greek-symbols.js +0 -1
  272. data/lib/gollum/public/gollum/javascript/MathJax/extensions/a11y/mathmaps/en/symbols/hebrew_letters.js +0 -1
  273. data/lib/gollum/public/gollum/javascript/MathJax/extensions/a11y/mathmaps/en/symbols/latin-lower-double-accent.js +0 -1
  274. data/lib/gollum/public/gollum/javascript/MathJax/extensions/a11y/mathmaps/en/symbols/latin-lower-normal.js +0 -1
  275. data/lib/gollum/public/gollum/javascript/MathJax/extensions/a11y/mathmaps/en/symbols/latin-lower-phonetic.js +0 -1
  276. data/lib/gollum/public/gollum/javascript/MathJax/extensions/a11y/mathmaps/en/symbols/latin-lower-single-accent.js +0 -1
  277. data/lib/gollum/public/gollum/javascript/MathJax/extensions/a11y/mathmaps/en/symbols/latin-mathfonts-bold-fraktur.js +0 -1
  278. data/lib/gollum/public/gollum/javascript/MathJax/extensions/a11y/mathmaps/en/symbols/latin-mathfonts-bold-script.js +0 -1
  279. data/lib/gollum/public/gollum/javascript/MathJax/extensions/a11y/mathmaps/en/symbols/latin-mathfonts-bold.js +0 -1
  280. data/lib/gollum/public/gollum/javascript/MathJax/extensions/a11y/mathmaps/en/symbols/latin-mathfonts-double-struck.js +0 -1
  281. data/lib/gollum/public/gollum/javascript/MathJax/extensions/a11y/mathmaps/en/symbols/latin-mathfonts-fraktur.js +0 -1
  282. data/lib/gollum/public/gollum/javascript/MathJax/extensions/a11y/mathmaps/en/symbols/latin-mathfonts-italic.js +0 -1
  283. data/lib/gollum/public/gollum/javascript/MathJax/extensions/a11y/mathmaps/en/symbols/latin-mathfonts-monospace.js +0 -1
  284. data/lib/gollum/public/gollum/javascript/MathJax/extensions/a11y/mathmaps/en/symbols/latin-mathfonts-sans-serif-bold.js +0 -1
  285. data/lib/gollum/public/gollum/javascript/MathJax/extensions/a11y/mathmaps/en/symbols/latin-mathfonts-sans-serif-italic.js +0 -1
  286. data/lib/gollum/public/gollum/javascript/MathJax/extensions/a11y/mathmaps/en/symbols/latin-mathfonts-sans-serif.js +0 -1
  287. data/lib/gollum/public/gollum/javascript/MathJax/extensions/a11y/mathmaps/en/symbols/latin-mathfonts-script.js +0 -1
  288. data/lib/gollum/public/gollum/javascript/MathJax/extensions/a11y/mathmaps/en/symbols/latin-rest.js +0 -1
  289. data/lib/gollum/public/gollum/javascript/MathJax/extensions/a11y/mathmaps/en/symbols/latin-upper-double-accent.js +0 -1
  290. data/lib/gollum/public/gollum/javascript/MathJax/extensions/a11y/mathmaps/en/symbols/latin-upper-normal.js +0 -1
  291. data/lib/gollum/public/gollum/javascript/MathJax/extensions/a11y/mathmaps/en/symbols/latin-upper-single-accent.js +0 -1
  292. data/lib/gollum/public/gollum/javascript/MathJax/extensions/a11y/mathmaps/en/symbols/math_angles.js +0 -1
  293. data/lib/gollum/public/gollum/javascript/MathJax/extensions/a11y/mathmaps/en/symbols/math_arrows.js +0 -1
  294. data/lib/gollum/public/gollum/javascript/MathJax/extensions/a11y/mathmaps/en/symbols/math_characters.js +0 -1
  295. data/lib/gollum/public/gollum/javascript/MathJax/extensions/a11y/mathmaps/en/symbols/math_delimiters.js +0 -1
  296. data/lib/gollum/public/gollum/javascript/MathJax/extensions/a11y/mathmaps/en/symbols/math_digits.js +0 -1
  297. data/lib/gollum/public/gollum/javascript/MathJax/extensions/a11y/mathmaps/en/symbols/math_geometry.js +0 -1
  298. data/lib/gollum/public/gollum/javascript/MathJax/extensions/a11y/mathmaps/en/symbols/math_harpoons.js +0 -1
  299. data/lib/gollum/public/gollum/javascript/MathJax/extensions/a11y/mathmaps/en/symbols/math_non_characters.js +0 -1
  300. data/lib/gollum/public/gollum/javascript/MathJax/extensions/a11y/mathmaps/en/symbols/math_symbols.js +0 -1
  301. data/lib/gollum/public/gollum/javascript/MathJax/extensions/a11y/mathmaps/en/symbols/math_whitespace.js +0 -1
  302. data/lib/gollum/public/gollum/javascript/MathJax/extensions/a11y/mathmaps/en/symbols/other_stars.js +0 -1
  303. data/lib/gollum/public/gollum/javascript/MathJax/extensions/a11y/mathmaps/en/units/energy.js +0 -1
  304. data/lib/gollum/public/gollum/javascript/MathJax/extensions/a11y/mathmaps/en/units/length.js +0 -1
  305. data/lib/gollum/public/gollum/javascript/MathJax/extensions/a11y/mathmaps/en/units/memory.js +0 -1
  306. data/lib/gollum/public/gollum/javascript/MathJax/extensions/a11y/mathmaps/en/units/other.js +0 -1
  307. data/lib/gollum/public/gollum/javascript/MathJax/extensions/a11y/mathmaps/en/units/speed.js +0 -1
  308. data/lib/gollum/public/gollum/javascript/MathJax/extensions/a11y/mathmaps/en/units/temperature.js +0 -1
  309. data/lib/gollum/public/gollum/javascript/MathJax/extensions/a11y/mathmaps/en/units/time.js +0 -1
  310. data/lib/gollum/public/gollum/javascript/MathJax/extensions/a11y/mathmaps/en/units/volume.js +0 -1
  311. data/lib/gollum/public/gollum/javascript/MathJax/extensions/a11y/mathmaps/en/units/weight.js +0 -1
  312. data/lib/gollum/public/gollum/javascript/MathJax/extensions/a11y/mathmaps/es/functions/algebra.js +0 -1
  313. data/lib/gollum/public/gollum/javascript/MathJax/extensions/a11y/mathmaps/es/functions/elementary.js +0 -1
  314. data/lib/gollum/public/gollum/javascript/MathJax/extensions/a11y/mathmaps/es/functions/hyperbolic.js +0 -1
  315. data/lib/gollum/public/gollum/javascript/MathJax/extensions/a11y/mathmaps/es/functions/trigonometry.js +0 -1
  316. data/lib/gollum/public/gollum/javascript/MathJax/extensions/a11y/mathmaps/es/symbols/greek-capital.js +0 -1
  317. data/lib/gollum/public/gollum/javascript/MathJax/extensions/a11y/mathmaps/es/symbols/greek-mathfonts-bold.js +0 -1
  318. data/lib/gollum/public/gollum/javascript/MathJax/extensions/a11y/mathmaps/es/symbols/greek-mathfonts-italic.js +0 -1
  319. data/lib/gollum/public/gollum/javascript/MathJax/extensions/a11y/mathmaps/es/symbols/greek-mathfonts-sans-serif-bold.js +0 -1
  320. data/lib/gollum/public/gollum/javascript/MathJax/extensions/a11y/mathmaps/es/symbols/greek-scripts.js +0 -1
  321. data/lib/gollum/public/gollum/javascript/MathJax/extensions/a11y/mathmaps/es/symbols/greek-small.js +0 -1
  322. data/lib/gollum/public/gollum/javascript/MathJax/extensions/a11y/mathmaps/es/symbols/greek-symbols.js +0 -1
  323. data/lib/gollum/public/gollum/javascript/MathJax/extensions/a11y/mathmaps/es/symbols/hebrew_letters.js +0 -1
  324. data/lib/gollum/public/gollum/javascript/MathJax/extensions/a11y/mathmaps/es/symbols/latin-lower-double-accent.js +0 -1
  325. data/lib/gollum/public/gollum/javascript/MathJax/extensions/a11y/mathmaps/es/symbols/latin-lower-normal.js +0 -1
  326. data/lib/gollum/public/gollum/javascript/MathJax/extensions/a11y/mathmaps/es/symbols/latin-lower-phonetic.js +0 -1
  327. data/lib/gollum/public/gollum/javascript/MathJax/extensions/a11y/mathmaps/es/symbols/latin-lower-single-accent.js +0 -1
  328. data/lib/gollum/public/gollum/javascript/MathJax/extensions/a11y/mathmaps/es/symbols/latin-mathfonts-bold-fraktur.js +0 -1
  329. data/lib/gollum/public/gollum/javascript/MathJax/extensions/a11y/mathmaps/es/symbols/latin-mathfonts-bold-script.js +0 -1
  330. data/lib/gollum/public/gollum/javascript/MathJax/extensions/a11y/mathmaps/es/symbols/latin-mathfonts-bold.js +0 -1
  331. data/lib/gollum/public/gollum/javascript/MathJax/extensions/a11y/mathmaps/es/symbols/latin-mathfonts-double-struck.js +0 -1
  332. data/lib/gollum/public/gollum/javascript/MathJax/extensions/a11y/mathmaps/es/symbols/latin-mathfonts-fraktur.js +0 -1
  333. data/lib/gollum/public/gollum/javascript/MathJax/extensions/a11y/mathmaps/es/symbols/latin-mathfonts-italic.js +0 -1
  334. data/lib/gollum/public/gollum/javascript/MathJax/extensions/a11y/mathmaps/es/symbols/latin-mathfonts-monospace.js +0 -1
  335. data/lib/gollum/public/gollum/javascript/MathJax/extensions/a11y/mathmaps/es/symbols/latin-mathfonts-sans-serif-bold.js +0 -1
  336. data/lib/gollum/public/gollum/javascript/MathJax/extensions/a11y/mathmaps/es/symbols/latin-mathfonts-sans-serif-italic.js +0 -1
  337. data/lib/gollum/public/gollum/javascript/MathJax/extensions/a11y/mathmaps/es/symbols/latin-mathfonts-sans-serif.js +0 -1
  338. data/lib/gollum/public/gollum/javascript/MathJax/extensions/a11y/mathmaps/es/symbols/latin-mathfonts-script.js +0 -1
  339. data/lib/gollum/public/gollum/javascript/MathJax/extensions/a11y/mathmaps/es/symbols/latin-rest.js +0 -1
  340. data/lib/gollum/public/gollum/javascript/MathJax/extensions/a11y/mathmaps/es/symbols/latin-upper-double-accent.js +0 -1
  341. data/lib/gollum/public/gollum/javascript/MathJax/extensions/a11y/mathmaps/es/symbols/latin-upper-normal.js +0 -1
  342. data/lib/gollum/public/gollum/javascript/MathJax/extensions/a11y/mathmaps/es/symbols/latin-upper-single-accent.js +0 -1
  343. data/lib/gollum/public/gollum/javascript/MathJax/extensions/a11y/mathmaps/es/symbols/math_angles.js +0 -1
  344. data/lib/gollum/public/gollum/javascript/MathJax/extensions/a11y/mathmaps/es/symbols/math_arrows.js +0 -1
  345. data/lib/gollum/public/gollum/javascript/MathJax/extensions/a11y/mathmaps/es/symbols/math_characters.js +0 -1
  346. data/lib/gollum/public/gollum/javascript/MathJax/extensions/a11y/mathmaps/es/symbols/math_delimiters.js +0 -1
  347. data/lib/gollum/public/gollum/javascript/MathJax/extensions/a11y/mathmaps/es/symbols/math_digits.js +0 -1
  348. data/lib/gollum/public/gollum/javascript/MathJax/extensions/a11y/mathmaps/es/symbols/math_geometry.js +0 -1
  349. data/lib/gollum/public/gollum/javascript/MathJax/extensions/a11y/mathmaps/es/symbols/math_harpoons.js +0 -1
  350. data/lib/gollum/public/gollum/javascript/MathJax/extensions/a11y/mathmaps/es/symbols/math_non_characters.js +0 -1
  351. data/lib/gollum/public/gollum/javascript/MathJax/extensions/a11y/mathmaps/es/symbols/math_symbols.js +0 -1
  352. data/lib/gollum/public/gollum/javascript/MathJax/extensions/a11y/mathmaps/es/symbols/math_whitespace.js +0 -1
  353. data/lib/gollum/public/gollum/javascript/MathJax/extensions/a11y/mathmaps/es/symbols/other_stars.js +0 -1
  354. data/lib/gollum/public/gollum/javascript/MathJax/extensions/a11y/mathmaps/es/units/energy.js +0 -1
  355. data/lib/gollum/public/gollum/javascript/MathJax/extensions/a11y/mathmaps/es/units/length.js +0 -1
  356. data/lib/gollum/public/gollum/javascript/MathJax/extensions/a11y/mathmaps/es/units/memory.js +0 -1
  357. data/lib/gollum/public/gollum/javascript/MathJax/extensions/a11y/mathmaps/es/units/other.js +0 -1
  358. data/lib/gollum/public/gollum/javascript/MathJax/extensions/a11y/mathmaps/es/units/speed.js +0 -1
  359. data/lib/gollum/public/gollum/javascript/MathJax/extensions/a11y/mathmaps/es/units/temperature.js +0 -1
  360. data/lib/gollum/public/gollum/javascript/MathJax/extensions/a11y/mathmaps/es/units/time.js +0 -1
  361. data/lib/gollum/public/gollum/javascript/MathJax/extensions/a11y/mathmaps/es/units/volume.js +0 -1
  362. data/lib/gollum/public/gollum/javascript/MathJax/extensions/a11y/mathmaps/es/units/weight.js +0 -1
  363. data/lib/gollum/public/gollum/javascript/MathJax/extensions/a11y/mathmaps/mathmaps_ie.js +0 -308
  364. data/lib/gollum/public/gollum/javascript/MathJax/extensions/a11y/semantic-enrich.js +0 -1
  365. data/lib/gollum/public/gollum/javascript/MathJax/extensions/a11y/wgxpath.install.js +0 -77
  366. data/lib/gollum/public/gollum/javascript/MathJax/extensions/fast-preview.js +0 -19
  367. data/lib/gollum/public/gollum/javascript/MathJax/extensions/jsMath2jax.js +0 -19
  368. data/lib/gollum/public/gollum/javascript/MathJax/extensions/mml2jax.js +0 -19
  369. data/lib/gollum/public/gollum/javascript/MathJax/extensions/tex2jax.js +0 -19
  370. data/lib/gollum/public/gollum/javascript/MathJax/extensions/toMathML.js +0 -19
  371. data/lib/gollum/public/gollum/javascript/MathJax/fonts/HTML-CSS/STIX-Web/OFL.txt +0 -109
  372. data/lib/gollum/public/gollum/javascript/MathJax/fonts/HTML-CSS/STIX-Web/woff/STIXMathJax_Alphabets-Bold.woff +0 -0
  373. data/lib/gollum/public/gollum/javascript/MathJax/fonts/HTML-CSS/STIX-Web/woff/STIXMathJax_Alphabets-BoldItalic.woff +0 -0
  374. data/lib/gollum/public/gollum/javascript/MathJax/fonts/HTML-CSS/STIX-Web/woff/STIXMathJax_Alphabets-Italic.woff +0 -0
  375. data/lib/gollum/public/gollum/javascript/MathJax/fonts/HTML-CSS/STIX-Web/woff/STIXMathJax_Alphabets-Regular.woff +0 -0
  376. data/lib/gollum/public/gollum/javascript/MathJax/fonts/HTML-CSS/STIX-Web/woff/STIXMathJax_Arrows-Bold.woff +0 -0
  377. data/lib/gollum/public/gollum/javascript/MathJax/fonts/HTML-CSS/STIX-Web/woff/STIXMathJax_Arrows-Regular.woff +0 -0
  378. data/lib/gollum/public/gollum/javascript/MathJax/fonts/HTML-CSS/STIX-Web/woff/STIXMathJax_DoubleStruck-Bold.woff +0 -0
  379. data/lib/gollum/public/gollum/javascript/MathJax/fonts/HTML-CSS/STIX-Web/woff/STIXMathJax_DoubleStruck-BoldItalic.woff +0 -0
  380. data/lib/gollum/public/gollum/javascript/MathJax/fonts/HTML-CSS/STIX-Web/woff/STIXMathJax_DoubleStruck-Italic.woff +0 -0
  381. data/lib/gollum/public/gollum/javascript/MathJax/fonts/HTML-CSS/STIX-Web/woff/STIXMathJax_DoubleStruck-Regular.woff +0 -0
  382. data/lib/gollum/public/gollum/javascript/MathJax/fonts/HTML-CSS/STIX-Web/woff/STIXMathJax_Fraktur-Bold.woff +0 -0
  383. data/lib/gollum/public/gollum/javascript/MathJax/fonts/HTML-CSS/STIX-Web/woff/STIXMathJax_Fraktur-Regular.woff +0 -0
  384. data/lib/gollum/public/gollum/javascript/MathJax/fonts/HTML-CSS/STIX-Web/woff/STIXMathJax_Latin-Bold.woff +0 -0
  385. data/lib/gollum/public/gollum/javascript/MathJax/fonts/HTML-CSS/STIX-Web/woff/STIXMathJax_Latin-BoldItalic.woff +0 -0
  386. data/lib/gollum/public/gollum/javascript/MathJax/fonts/HTML-CSS/STIX-Web/woff/STIXMathJax_Latin-Italic.woff +0 -0
  387. data/lib/gollum/public/gollum/javascript/MathJax/fonts/HTML-CSS/STIX-Web/woff/STIXMathJax_Latin-Regular.woff +0 -0
  388. data/lib/gollum/public/gollum/javascript/MathJax/fonts/HTML-CSS/STIX-Web/woff/STIXMathJax_Main-Bold.woff +0 -0
  389. data/lib/gollum/public/gollum/javascript/MathJax/fonts/HTML-CSS/STIX-Web/woff/STIXMathJax_Main-BoldItalic.woff +0 -0
  390. data/lib/gollum/public/gollum/javascript/MathJax/fonts/HTML-CSS/STIX-Web/woff/STIXMathJax_Main-Italic.woff +0 -0
  391. data/lib/gollum/public/gollum/javascript/MathJax/fonts/HTML-CSS/STIX-Web/woff/STIXMathJax_Main-Regular.woff +0 -0
  392. data/lib/gollum/public/gollum/javascript/MathJax/fonts/HTML-CSS/STIX-Web/woff/STIXMathJax_Marks-Bold.woff +0 -0
  393. data/lib/gollum/public/gollum/javascript/MathJax/fonts/HTML-CSS/STIX-Web/woff/STIXMathJax_Marks-BoldItalic.woff +0 -0
  394. data/lib/gollum/public/gollum/javascript/MathJax/fonts/HTML-CSS/STIX-Web/woff/STIXMathJax_Marks-Italic.woff +0 -0
  395. data/lib/gollum/public/gollum/javascript/MathJax/fonts/HTML-CSS/STIX-Web/woff/STIXMathJax_Marks-Regular.woff +0 -0
  396. data/lib/gollum/public/gollum/javascript/MathJax/fonts/HTML-CSS/STIX-Web/woff/STIXMathJax_Misc-Bold.woff +0 -0
  397. data/lib/gollum/public/gollum/javascript/MathJax/fonts/HTML-CSS/STIX-Web/woff/STIXMathJax_Misc-BoldItalic.woff +0 -0
  398. data/lib/gollum/public/gollum/javascript/MathJax/fonts/HTML-CSS/STIX-Web/woff/STIXMathJax_Misc-Italic.woff +0 -0
  399. data/lib/gollum/public/gollum/javascript/MathJax/fonts/HTML-CSS/STIX-Web/woff/STIXMathJax_Misc-Regular.woff +0 -0
  400. data/lib/gollum/public/gollum/javascript/MathJax/fonts/HTML-CSS/STIX-Web/woff/STIXMathJax_Monospace-Regular.woff +0 -0
  401. data/lib/gollum/public/gollum/javascript/MathJax/fonts/HTML-CSS/STIX-Web/woff/STIXMathJax_Normal-Bold.woff +0 -0
  402. data/lib/gollum/public/gollum/javascript/MathJax/fonts/HTML-CSS/STIX-Web/woff/STIXMathJax_Normal-BoldItalic.woff +0 -0
  403. data/lib/gollum/public/gollum/javascript/MathJax/fonts/HTML-CSS/STIX-Web/woff/STIXMathJax_Normal-Italic.woff +0 -0
  404. data/lib/gollum/public/gollum/javascript/MathJax/fonts/HTML-CSS/STIX-Web/woff/STIXMathJax_Operators-Bold.woff +0 -0
  405. data/lib/gollum/public/gollum/javascript/MathJax/fonts/HTML-CSS/STIX-Web/woff/STIXMathJax_Operators-Regular.woff +0 -0
  406. data/lib/gollum/public/gollum/javascript/MathJax/fonts/HTML-CSS/STIX-Web/woff/STIXMathJax_SansSerif-Bold.woff +0 -0
  407. data/lib/gollum/public/gollum/javascript/MathJax/fonts/HTML-CSS/STIX-Web/woff/STIXMathJax_SansSerif-BoldItalic.woff +0 -0
  408. data/lib/gollum/public/gollum/javascript/MathJax/fonts/HTML-CSS/STIX-Web/woff/STIXMathJax_SansSerif-Italic.woff +0 -0
  409. data/lib/gollum/public/gollum/javascript/MathJax/fonts/HTML-CSS/STIX-Web/woff/STIXMathJax_SansSerif-Regular.woff +0 -0
  410. data/lib/gollum/public/gollum/javascript/MathJax/fonts/HTML-CSS/STIX-Web/woff/STIXMathJax_Script-BoldItalic.woff +0 -0
  411. data/lib/gollum/public/gollum/javascript/MathJax/fonts/HTML-CSS/STIX-Web/woff/STIXMathJax_Script-Italic.woff +0 -0
  412. data/lib/gollum/public/gollum/javascript/MathJax/fonts/HTML-CSS/STIX-Web/woff/STIXMathJax_Script-Regular.woff +0 -0
  413. data/lib/gollum/public/gollum/javascript/MathJax/fonts/HTML-CSS/STIX-Web/woff/STIXMathJax_Shapes-Bold.woff +0 -0
  414. data/lib/gollum/public/gollum/javascript/MathJax/fonts/HTML-CSS/STIX-Web/woff/STIXMathJax_Shapes-BoldItalic.woff +0 -0
  415. data/lib/gollum/public/gollum/javascript/MathJax/fonts/HTML-CSS/STIX-Web/woff/STIXMathJax_Shapes-Regular.woff +0 -0
  416. data/lib/gollum/public/gollum/javascript/MathJax/fonts/HTML-CSS/STIX-Web/woff/STIXMathJax_Size1-Regular.woff +0 -0
  417. data/lib/gollum/public/gollum/javascript/MathJax/fonts/HTML-CSS/STIX-Web/woff/STIXMathJax_Size2-Regular.woff +0 -0
  418. data/lib/gollum/public/gollum/javascript/MathJax/fonts/HTML-CSS/STIX-Web/woff/STIXMathJax_Size3-Regular.woff +0 -0
  419. data/lib/gollum/public/gollum/javascript/MathJax/fonts/HTML-CSS/STIX-Web/woff/STIXMathJax_Size4-Regular.woff +0 -0
  420. data/lib/gollum/public/gollum/javascript/MathJax/fonts/HTML-CSS/STIX-Web/woff/STIXMathJax_Size5-Regular.woff +0 -0
  421. data/lib/gollum/public/gollum/javascript/MathJax/fonts/HTML-CSS/STIX-Web/woff/STIXMathJax_Symbols-Bold.woff +0 -0
  422. data/lib/gollum/public/gollum/javascript/MathJax/fonts/HTML-CSS/STIX-Web/woff/STIXMathJax_Symbols-Regular.woff +0 -0
  423. data/lib/gollum/public/gollum/javascript/MathJax/fonts/HTML-CSS/STIX-Web/woff/STIXMathJax_Variants-Bold.woff +0 -0
  424. data/lib/gollum/public/gollum/javascript/MathJax/fonts/HTML-CSS/STIX-Web/woff/STIXMathJax_Variants-BoldItalic.woff +0 -0
  425. data/lib/gollum/public/gollum/javascript/MathJax/fonts/HTML-CSS/STIX-Web/woff/STIXMathJax_Variants-Italic.woff +0 -0
  426. data/lib/gollum/public/gollum/javascript/MathJax/fonts/HTML-CSS/STIX-Web/woff/STIXMathJax_Variants-Regular.woff +0 -0
  427. data/lib/gollum/public/gollum/javascript/MathJax/fonts/HTML-CSS/TeX/woff/MathJax_AMS-Regular.woff +0 -0
  428. data/lib/gollum/public/gollum/javascript/MathJax/fonts/HTML-CSS/TeX/woff/MathJax_Caligraphic-Bold.woff +0 -0
  429. data/lib/gollum/public/gollum/javascript/MathJax/fonts/HTML-CSS/TeX/woff/MathJax_Caligraphic-Regular.woff +0 -0
  430. data/lib/gollum/public/gollum/javascript/MathJax/fonts/HTML-CSS/TeX/woff/MathJax_Fraktur-Bold.woff +0 -0
  431. data/lib/gollum/public/gollum/javascript/MathJax/fonts/HTML-CSS/TeX/woff/MathJax_Fraktur-Regular.woff +0 -0
  432. data/lib/gollum/public/gollum/javascript/MathJax/fonts/HTML-CSS/TeX/woff/MathJax_Main-Bold.woff +0 -0
  433. data/lib/gollum/public/gollum/javascript/MathJax/fonts/HTML-CSS/TeX/woff/MathJax_Main-Italic.woff +0 -0
  434. data/lib/gollum/public/gollum/javascript/MathJax/fonts/HTML-CSS/TeX/woff/MathJax_Main-Regular.woff +0 -0
  435. data/lib/gollum/public/gollum/javascript/MathJax/fonts/HTML-CSS/TeX/woff/MathJax_Math-BoldItalic.woff +0 -0
  436. data/lib/gollum/public/gollum/javascript/MathJax/fonts/HTML-CSS/TeX/woff/MathJax_Math-Italic.woff +0 -0
  437. data/lib/gollum/public/gollum/javascript/MathJax/fonts/HTML-CSS/TeX/woff/MathJax_Math-Regular.woff +0 -0
  438. data/lib/gollum/public/gollum/javascript/MathJax/fonts/HTML-CSS/TeX/woff/MathJax_SansSerif-Bold.woff +0 -0
  439. data/lib/gollum/public/gollum/javascript/MathJax/fonts/HTML-CSS/TeX/woff/MathJax_SansSerif-Italic.woff +0 -0
  440. data/lib/gollum/public/gollum/javascript/MathJax/fonts/HTML-CSS/TeX/woff/MathJax_SansSerif-Regular.woff +0 -0
  441. data/lib/gollum/public/gollum/javascript/MathJax/fonts/HTML-CSS/TeX/woff/MathJax_Script-Regular.woff +0 -0
  442. data/lib/gollum/public/gollum/javascript/MathJax/fonts/HTML-CSS/TeX/woff/MathJax_Size1-Regular.woff +0 -0
  443. data/lib/gollum/public/gollum/javascript/MathJax/fonts/HTML-CSS/TeX/woff/MathJax_Size2-Regular.woff +0 -0
  444. data/lib/gollum/public/gollum/javascript/MathJax/fonts/HTML-CSS/TeX/woff/MathJax_Size3-Regular.woff +0 -0
  445. data/lib/gollum/public/gollum/javascript/MathJax/fonts/HTML-CSS/TeX/woff/MathJax_Size4-Regular.woff +0 -0
  446. data/lib/gollum/public/gollum/javascript/MathJax/fonts/HTML-CSS/TeX/woff/MathJax_Typewriter-Regular.woff +0 -0
  447. data/lib/gollum/public/gollum/javascript/MathJax/jax/element/mml/jax.js +0 -19
  448. data/lib/gollum/public/gollum/javascript/MathJax/jax/element/mml/optable/Arrows.js +0 -19
  449. data/lib/gollum/public/gollum/javascript/MathJax/jax/element/mml/optable/BasicLatin.js +0 -19
  450. data/lib/gollum/public/gollum/javascript/MathJax/jax/element/mml/optable/CombDiacritMarks.js +0 -19
  451. data/lib/gollum/public/gollum/javascript/MathJax/jax/element/mml/optable/CombDiactForSymbols.js +0 -19
  452. data/lib/gollum/public/gollum/javascript/MathJax/jax/element/mml/optable/Dingbats.js +0 -19
  453. data/lib/gollum/public/gollum/javascript/MathJax/jax/element/mml/optable/GeneralPunctuation.js +0 -19
  454. data/lib/gollum/public/gollum/javascript/MathJax/jax/element/mml/optable/GeometricShapes.js +0 -19
  455. data/lib/gollum/public/gollum/javascript/MathJax/jax/element/mml/optable/GreekAndCoptic.js +0 -19
  456. data/lib/gollum/public/gollum/javascript/MathJax/jax/element/mml/optable/Latin1Supplement.js +0 -19
  457. data/lib/gollum/public/gollum/javascript/MathJax/jax/element/mml/optable/LetterlikeSymbols.js +0 -19
  458. data/lib/gollum/public/gollum/javascript/MathJax/jax/element/mml/optable/MathOperators.js +0 -19
  459. data/lib/gollum/public/gollum/javascript/MathJax/jax/element/mml/optable/MiscMathSymbolsA.js +0 -19
  460. data/lib/gollum/public/gollum/javascript/MathJax/jax/element/mml/optable/MiscMathSymbolsB.js +0 -19
  461. data/lib/gollum/public/gollum/javascript/MathJax/jax/element/mml/optable/MiscSymbolsAndArrows.js +0 -19
  462. data/lib/gollum/public/gollum/javascript/MathJax/jax/element/mml/optable/MiscTechnical.js +0 -19
  463. data/lib/gollum/public/gollum/javascript/MathJax/jax/element/mml/optable/SpacingModLetters.js +0 -19
  464. data/lib/gollum/public/gollum/javascript/MathJax/jax/element/mml/optable/SuppMathOperators.js +0 -19
  465. data/lib/gollum/public/gollum/javascript/MathJax/jax/element/mml/optable/SupplementalArrowsA.js +0 -19
  466. data/lib/gollum/public/gollum/javascript/MathJax/jax/element/mml/optable/SupplementalArrowsB.js +0 -19
  467. data/lib/gollum/public/gollum/javascript/MathJax/jax/input/MathML/config.js +0 -19
  468. data/lib/gollum/public/gollum/javascript/MathJax/jax/input/MathML/entities/a.js +0 -19
  469. data/lib/gollum/public/gollum/javascript/MathJax/jax/input/MathML/entities/b.js +0 -19
  470. data/lib/gollum/public/gollum/javascript/MathJax/jax/input/MathML/entities/c.js +0 -19
  471. data/lib/gollum/public/gollum/javascript/MathJax/jax/input/MathML/entities/d.js +0 -19
  472. data/lib/gollum/public/gollum/javascript/MathJax/jax/input/MathML/entities/e.js +0 -19
  473. data/lib/gollum/public/gollum/javascript/MathJax/jax/input/MathML/entities/f.js +0 -19
  474. data/lib/gollum/public/gollum/javascript/MathJax/jax/input/MathML/entities/fr.js +0 -19
  475. data/lib/gollum/public/gollum/javascript/MathJax/jax/input/MathML/entities/g.js +0 -19
  476. data/lib/gollum/public/gollum/javascript/MathJax/jax/input/MathML/entities/h.js +0 -19
  477. data/lib/gollum/public/gollum/javascript/MathJax/jax/input/MathML/entities/i.js +0 -19
  478. data/lib/gollum/public/gollum/javascript/MathJax/jax/input/MathML/entities/j.js +0 -19
  479. data/lib/gollum/public/gollum/javascript/MathJax/jax/input/MathML/entities/k.js +0 -19
  480. data/lib/gollum/public/gollum/javascript/MathJax/jax/input/MathML/entities/l.js +0 -19
  481. data/lib/gollum/public/gollum/javascript/MathJax/jax/input/MathML/entities/m.js +0 -19
  482. data/lib/gollum/public/gollum/javascript/MathJax/jax/input/MathML/entities/n.js +0 -19
  483. data/lib/gollum/public/gollum/javascript/MathJax/jax/input/MathML/entities/o.js +0 -19
  484. data/lib/gollum/public/gollum/javascript/MathJax/jax/input/MathML/entities/opf.js +0 -19
  485. data/lib/gollum/public/gollum/javascript/MathJax/jax/input/MathML/entities/p.js +0 -19
  486. data/lib/gollum/public/gollum/javascript/MathJax/jax/input/MathML/entities/q.js +0 -19
  487. data/lib/gollum/public/gollum/javascript/MathJax/jax/input/MathML/entities/r.js +0 -19
  488. data/lib/gollum/public/gollum/javascript/MathJax/jax/input/MathML/entities/s.js +0 -19
  489. data/lib/gollum/public/gollum/javascript/MathJax/jax/input/MathML/entities/scr.js +0 -19
  490. data/lib/gollum/public/gollum/javascript/MathJax/jax/input/MathML/entities/t.js +0 -19
  491. data/lib/gollum/public/gollum/javascript/MathJax/jax/input/MathML/entities/u.js +0 -19
  492. data/lib/gollum/public/gollum/javascript/MathJax/jax/input/MathML/entities/v.js +0 -19
  493. data/lib/gollum/public/gollum/javascript/MathJax/jax/input/MathML/entities/w.js +0 -19
  494. data/lib/gollum/public/gollum/javascript/MathJax/jax/input/MathML/entities/x.js +0 -19
  495. data/lib/gollum/public/gollum/javascript/MathJax/jax/input/MathML/entities/y.js +0 -19
  496. data/lib/gollum/public/gollum/javascript/MathJax/jax/input/MathML/entities/z.js +0 -19
  497. data/lib/gollum/public/gollum/javascript/MathJax/jax/input/MathML/jax.js +0 -19
  498. data/lib/gollum/public/gollum/javascript/MathJax/jax/input/TeX/config.js +0 -19
  499. data/lib/gollum/public/gollum/javascript/MathJax/jax/input/TeX/jax.js +0 -19
  500. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/CommonHTML/autoload/annotation-xml.js +0 -19
  501. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/CommonHTML/autoload/maction.js +0 -19
  502. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/CommonHTML/autoload/menclose.js +0 -19
  503. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/CommonHTML/autoload/mglyph.js +0 -19
  504. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/CommonHTML/autoload/mmultiscripts.js +0 -19
  505. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/CommonHTML/autoload/ms.js +0 -19
  506. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/CommonHTML/autoload/mtable.js +0 -19
  507. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/CommonHTML/autoload/multiline.js +0 -19
  508. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/CommonHTML/config.js +0 -19
  509. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/CommonHTML/fonts/TeX/AMS-Regular.js +0 -19
  510. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/CommonHTML/fonts/TeX/Caligraphic-Bold.js +0 -19
  511. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/CommonHTML/fonts/TeX/Fraktur-Bold.js +0 -19
  512. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/CommonHTML/fonts/TeX/Fraktur-Regular.js +0 -19
  513. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/CommonHTML/fonts/TeX/Main-Bold.js +0 -19
  514. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/CommonHTML/fonts/TeX/Math-BoldItalic.js +0 -19
  515. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/CommonHTML/fonts/TeX/SansSerif-Bold.js +0 -19
  516. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/CommonHTML/fonts/TeX/SansSerif-Italic.js +0 -19
  517. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/CommonHTML/fonts/TeX/SansSerif-Regular.js +0 -19
  518. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/CommonHTML/fonts/TeX/Script-Regular.js +0 -19
  519. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/CommonHTML/fonts/TeX/Typewriter-Regular.js +0 -19
  520. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/CommonHTML/fonts/TeX/fontdata-extra.js +0 -19
  521. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/CommonHTML/fonts/TeX/fontdata.js +0 -19
  522. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/CommonHTML/jax.js +0 -19
  523. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/autoload/annotation-xml.js +0 -19
  524. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/autoload/maction.js +0 -19
  525. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/autoload/menclose.js +0 -19
  526. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/autoload/mglyph.js +0 -19
  527. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/autoload/mmultiscripts.js +0 -19
  528. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/autoload/ms.js +0 -19
  529. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/autoload/mtable.js +0 -19
  530. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/autoload/multiline.js +0 -19
  531. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/config.js +0 -19
  532. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/AlphaPresentForms.js +0 -19
  533. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/Arrows.js +0 -19
  534. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/BBBold.js +0 -19
  535. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/BoldFraktur.js +0 -19
  536. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/BoxDrawing.js +0 -19
  537. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/CombDiacritMarks.js +0 -19
  538. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/CombDiactForSymbols.js +0 -19
  539. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/ControlPictures.js +0 -19
  540. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/CurrencySymbols.js +0 -19
  541. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/Cyrillic.js +0 -19
  542. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/EnclosedAlphanum.js +0 -19
  543. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/GeneralPunctuation.js +0 -19
  544. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/GeometricShapes.js +0 -19
  545. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/GreekAndCoptic.js +0 -19
  546. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/GreekBold.js +0 -19
  547. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/GreekSSBold.js +0 -19
  548. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/IPAExtensions.js +0 -19
  549. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/Latin1Supplement.js +0 -19
  550. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/LatinExtendedA.js +0 -19
  551. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/LatinExtendedAdditional.js +0 -19
  552. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/LatinExtendedB.js +0 -19
  553. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/LatinExtendedD.js +0 -19
  554. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/LetterlikeSymbols.js +0 -19
  555. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/Main.js +0 -19
  556. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/MathBold.js +0 -19
  557. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/MathOperators.js +0 -19
  558. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/MathSSBold.js +0 -19
  559. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/MiscMathSymbolsA.js +0 -19
  560. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/MiscMathSymbolsB.js +0 -19
  561. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/MiscSymbols.js +0 -19
  562. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/MiscTechnical.js +0 -19
  563. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/NumberForms.js +0 -19
  564. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/PhoneticExtensions.js +0 -19
  565. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/SpacingModLetters.js +0 -19
  566. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/SuperAndSubscripts.js +0 -19
  567. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/SuppMathOperators.js +0 -19
  568. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/BoldItalic/AlphaPresentForms.js +0 -19
  569. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/BoldItalic/BasicLatin.js +0 -19
  570. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/BoldItalic/BoxDrawing.js +0 -19
  571. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/BoldItalic/CombDiactForSymbols.js +0 -19
  572. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/BoldItalic/ControlPictures.js +0 -19
  573. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/BoldItalic/CurrencySymbols.js +0 -19
  574. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/BoldItalic/Cyrillic.js +0 -19
  575. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/BoldItalic/EnclosedAlphanum.js +0 -19
  576. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/BoldItalic/GeneralPunctuation.js +0 -19
  577. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/BoldItalic/GreekAndCoptic.js +0 -19
  578. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/BoldItalic/GreekBoldItalic.js +0 -19
  579. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/BoldItalic/GreekSSBoldItalic.js +0 -19
  580. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/BoldItalic/IPAExtensions.js +0 -19
  581. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/BoldItalic/Latin1Supplement.js +0 -19
  582. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/BoldItalic/LatinExtendedA.js +0 -19
  583. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/BoldItalic/LatinExtendedAdditional.js +0 -19
  584. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/BoldItalic/LatinExtendedB.js +0 -19
  585. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/BoldItalic/LetterlikeSymbols.js +0 -19
  586. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/BoldItalic/Main.js +0 -19
  587. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/BoldItalic/MathBoldItalic.js +0 -19
  588. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/BoldItalic/MathBoldScript.js +0 -19
  589. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/BoldItalic/MathOperators.js +0 -19
  590. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/BoldItalic/MathSSItalicBold.js +0 -19
  591. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/BoldItalic/SpacingModLetters.js +0 -19
  592. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Italic/AlphaPresentForms.js +0 -19
  593. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Italic/BoxDrawing.js +0 -19
  594. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Italic/CombDiactForSymbols.js +0 -19
  595. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Italic/ControlPictures.js +0 -19
  596. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Italic/CurrencySymbols.js +0 -19
  597. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Italic/Cyrillic.js +0 -19
  598. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Italic/EnclosedAlphanum.js +0 -19
  599. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Italic/GeneralPunctuation.js +0 -19
  600. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Italic/GreekAndCoptic.js +0 -19
  601. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Italic/GreekItalic.js +0 -19
  602. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Italic/IPAExtensions.js +0 -19
  603. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Italic/Latin1Supplement.js +0 -19
  604. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Italic/LatinExtendedA.js +0 -19
  605. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Italic/LatinExtendedAdditional.js +0 -19
  606. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Italic/LatinExtendedB.js +0 -19
  607. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Italic/LetterlikeSymbols.js +0 -19
  608. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Italic/Main.js +0 -19
  609. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Italic/MathItalic.js +0 -19
  610. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Italic/MathOperators.js +0 -19
  611. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Italic/MathSSItalic.js +0 -19
  612. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Italic/MathScript.js +0 -19
  613. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Italic/SpacingModLetters.js +0 -19
  614. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Italic/ij.js +0 -19
  615. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/AlphaPresentForms.js +0 -19
  616. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/Arrows.js +0 -19
  617. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/BBBold.js +0 -19
  618. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/BlockElements.js +0 -19
  619. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/BoldFraktur.js +0 -19
  620. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/BoxDrawing.js +0 -19
  621. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/CJK.js +0 -19
  622. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/CombDiacritMarks.js +0 -19
  623. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/CombDiactForSymbols.js +0 -19
  624. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/ControlPictures.js +0 -19
  625. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/CurrencySymbols.js +0 -19
  626. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/Cyrillic.js +0 -19
  627. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/Dingbats.js +0 -19
  628. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/EnclosedAlphanum.js +0 -19
  629. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/Fraktur.js +0 -19
  630. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/GeneralPunctuation.js +0 -19
  631. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/GeometricShapes.js +0 -19
  632. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/GreekAndCoptic.js +0 -19
  633. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/GreekBold.js +0 -19
  634. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/GreekBoldItalic.js +0 -19
  635. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/GreekItalic.js +0 -19
  636. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/GreekSSBold.js +0 -19
  637. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/GreekSSBoldItalic.js +0 -19
  638. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/Hiragana.js +0 -19
  639. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/IPAExtensions.js +0 -19
  640. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/Latin1Supplement.js +0 -19
  641. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/LatinExtendedA.js +0 -19
  642. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/LatinExtendedAdditional.js +0 -19
  643. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/LatinExtendedB.js +0 -19
  644. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/LatinExtendedD.js +0 -19
  645. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/LetterlikeSymbols.js +0 -19
  646. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/Main.js +0 -19
  647. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/MathBold.js +0 -19
  648. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/MathBoldItalic.js +0 -19
  649. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/MathBoldScript.js +0 -19
  650. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/MathItalic.js +0 -19
  651. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/MathOperators.js +0 -19
  652. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/MathSS.js +0 -19
  653. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/MathSSBold.js +0 -19
  654. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/MathSSItalic.js +0 -19
  655. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/MathSSItalicBold.js +0 -19
  656. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/MathScript.js +0 -19
  657. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/MathTT.js +0 -19
  658. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/MiscMathSymbolsA.js +0 -19
  659. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/MiscMathSymbolsB.js +0 -19
  660. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/MiscSymbols.js +0 -19
  661. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/MiscSymbolsAndArrows.js +0 -19
  662. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/MiscTechnical.js +0 -19
  663. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/NumberForms.js +0 -19
  664. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/PhoneticExtensions.js +0 -19
  665. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/SpacingModLetters.js +0 -19
  666. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/Specials.js +0 -19
  667. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/SuperAndSubscripts.js +0 -19
  668. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/SuppMathOperators.js +0 -19
  669. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/SupplementalArrowsA.js +0 -19
  670. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/SupplementalArrowsB.js +0 -19
  671. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/ij.js +0 -19
  672. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/IntegralsD/Bold/All.js +0 -19
  673. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/IntegralsD/Regular/All.js +0 -19
  674. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/IntegralsD/Regular/Main.js +0 -19
  675. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/IntegralsSm/Bold/All.js +0 -19
  676. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/IntegralsSm/Regular/All.js +0 -19
  677. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/IntegralsSm/Regular/Main.js +0 -19
  678. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/IntegralsUp/Bold/All.js +0 -19
  679. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/IntegralsUp/Regular/All.js +0 -19
  680. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/IntegralsUp/Regular/Main.js +0 -19
  681. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/IntegralsUpD/Bold/All.js +0 -19
  682. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/IntegralsUpD/Regular/All.js +0 -19
  683. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/IntegralsUpD/Regular/Main.js +0 -19
  684. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/IntegralsUpSm/Bold/All.js +0 -19
  685. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/IntegralsUpSm/Regular/All.js +0 -19
  686. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/IntegralsUpSm/Regular/Main.js +0 -19
  687. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/NonUnicode/Bold/All.js +0 -19
  688. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/NonUnicode/Bold/Main.js +0 -19
  689. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/NonUnicode/Bold/PrivateUse.js +0 -19
  690. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/NonUnicode/BoldItalic/All.js +0 -19
  691. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/NonUnicode/BoldItalic/Main.js +0 -19
  692. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/NonUnicode/BoldItalic/PrivateUse.js +0 -19
  693. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/NonUnicode/Italic/All.js +0 -19
  694. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/NonUnicode/Italic/Main.js +0 -19
  695. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/NonUnicode/Italic/PrivateUse.js +0 -19
  696. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/NonUnicode/Regular/All.js +0 -19
  697. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/NonUnicode/Regular/Main.js +0 -19
  698. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/NonUnicode/Regular/PrivateUse.js +0 -19
  699. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/SizeFiveSym/Regular/All.js +0 -19
  700. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/SizeFiveSym/Regular/Main.js +0 -19
  701. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/SizeFourSym/Bold/Main.js +0 -19
  702. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/SizeFourSym/Regular/All.js +0 -19
  703. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/SizeFourSym/Regular/Main.js +0 -19
  704. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/SizeOneSym/Bold/All.js +0 -19
  705. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/SizeOneSym/Bold/Main.js +0 -19
  706. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/SizeOneSym/Regular/All.js +0 -19
  707. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/SizeOneSym/Regular/Main.js +0 -19
  708. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/SizeThreeSym/Bold/Main.js +0 -19
  709. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/SizeThreeSym/Regular/All.js +0 -19
  710. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/SizeThreeSym/Regular/Main.js +0 -19
  711. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/SizeTwoSym/Bold/Main.js +0 -19
  712. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/SizeTwoSym/Regular/All.js +0 -19
  713. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/SizeTwoSym/Regular/Main.js +0 -19
  714. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/Variants/Bold/All.js +0 -19
  715. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/Variants/Bold/Main.js +0 -19
  716. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/Variants/Regular/All.js +0 -19
  717. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/Variants/Regular/Main.js +0 -19
  718. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/fontdata-1.0.js +0 -19
  719. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/fontdata-beta.js +0 -19
  720. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/fontdata-extra.js +0 -19
  721. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/fontdata.js +0 -19
  722. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX-Web/Alphabets/Bold/Main.js +0 -19
  723. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX-Web/Alphabets/BoldItalic/Main.js +0 -19
  724. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX-Web/Alphabets/Italic/Main.js +0 -19
  725. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX-Web/Alphabets/Regular/Main.js +0 -19
  726. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX-Web/Arrows/Bold/Main.js +0 -19
  727. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX-Web/Arrows/Regular/Main.js +0 -19
  728. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX-Web/DoubleStruck/Bold/Main.js +0 -19
  729. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX-Web/DoubleStruck/BoldItalic/Main.js +0 -19
  730. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX-Web/DoubleStruck/Italic/Main.js +0 -19
  731. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX-Web/DoubleStruck/Regular/Main.js +0 -19
  732. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX-Web/Fraktur/Bold/Main.js +0 -19
  733. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX-Web/Fraktur/Regular/Main.js +0 -19
  734. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX-Web/Latin/Bold/Main.js +0 -19
  735. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX-Web/Latin/BoldItalic/Main.js +0 -19
  736. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX-Web/Latin/Italic/Main.js +0 -19
  737. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX-Web/Latin/Regular/Main.js +0 -19
  738. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX-Web/Main/Bold/Main.js +0 -19
  739. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX-Web/Main/BoldItalic/Main.js +0 -19
  740. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX-Web/Main/Italic/Main.js +0 -19
  741. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX-Web/Main/Regular/Main.js +0 -19
  742. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX-Web/Marks/Bold/Main.js +0 -19
  743. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX-Web/Marks/BoldItalic/Main.js +0 -19
  744. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX-Web/Marks/Italic/Main.js +0 -19
  745. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX-Web/Marks/Regular/Main.js +0 -19
  746. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX-Web/Misc/Bold/Main.js +0 -19
  747. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX-Web/Misc/BoldItalic/Main.js +0 -19
  748. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX-Web/Misc/Italic/Main.js +0 -19
  749. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX-Web/Misc/Regular/Main.js +0 -19
  750. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX-Web/Monospace/Regular/Main.js +0 -19
  751. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX-Web/Normal/Bold/Main.js +0 -19
  752. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX-Web/Normal/BoldItalic/Main.js +0 -19
  753. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX-Web/Normal/Italic/Main.js +0 -19
  754. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX-Web/Operators/Bold/Main.js +0 -19
  755. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX-Web/Operators/Regular/Main.js +0 -19
  756. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX-Web/SansSerif/Bold/Main.js +0 -19
  757. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX-Web/SansSerif/BoldItalic/Main.js +0 -19
  758. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX-Web/SansSerif/Italic/Main.js +0 -19
  759. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX-Web/SansSerif/Regular/Main.js +0 -19
  760. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX-Web/Script/BoldItalic/Main.js +0 -19
  761. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX-Web/Script/Italic/Main.js +0 -19
  762. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX-Web/Script/Regular/Main.js +0 -19
  763. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX-Web/Shapes/Bold/Main.js +0 -19
  764. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX-Web/Shapes/BoldItalic/Main.js +0 -19
  765. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX-Web/Shapes/Regular/Main.js +0 -19
  766. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX-Web/Size1/Regular/Main.js +0 -19
  767. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX-Web/Size2/Regular/Main.js +0 -19
  768. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX-Web/Size3/Regular/Main.js +0 -19
  769. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX-Web/Size4/Regular/Main.js +0 -19
  770. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX-Web/Size5/Regular/Main.js +0 -19
  771. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX-Web/Symbols/Bold/Main.js +0 -19
  772. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX-Web/Symbols/Regular/Main.js +0 -19
  773. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX-Web/Variants/Bold/Main.js +0 -19
  774. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX-Web/Variants/BoldItalic/Main.js +0 -19
  775. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX-Web/Variants/Italic/Main.js +0 -19
  776. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX-Web/Variants/Regular/Main.js +0 -19
  777. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX-Web/fontdata-extra.js +0 -19
  778. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX-Web/fontdata.js +0 -19
  779. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/Arrows.js +0 -19
  780. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/BBBold.js +0 -19
  781. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/BoxDrawing.js +0 -19
  782. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/CombDiacritMarks.js +0 -19
  783. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/Dingbats.js +0 -19
  784. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/EnclosedAlphanum.js +0 -19
  785. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/GeneralPunctuation.js +0 -19
  786. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/GeometricShapes.js +0 -19
  787. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/GreekAndCoptic.js +0 -19
  788. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/Latin1Supplement.js +0 -19
  789. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/LatinExtendedA.js +0 -19
  790. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/LetterlikeSymbols.js +0 -19
  791. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/Main.js +0 -19
  792. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/MathOperators.js +0 -19
  793. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/MiscMathSymbolsB.js +0 -19
  794. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/MiscSymbols.js +0 -19
  795. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/MiscTechnical.js +0 -19
  796. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/PUA.js +0 -19
  797. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/SpacingModLetters.js +0 -19
  798. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/SuppMathOperators.js +0 -19
  799. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Caligraphic/Bold/Main.js +0 -19
  800. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Caligraphic/Regular/Main.js +0 -19
  801. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Fraktur/Bold/BasicLatin.js +0 -19
  802. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Fraktur/Bold/Main.js +0 -19
  803. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Fraktur/Bold/Other.js +0 -19
  804. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Fraktur/Bold/PUA.js +0 -19
  805. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Fraktur/Regular/BasicLatin.js +0 -19
  806. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Fraktur/Regular/Main.js +0 -19
  807. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Fraktur/Regular/Other.js +0 -19
  808. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Fraktur/Regular/PUA.js +0 -19
  809. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Greek/Bold/Main.js +0 -19
  810. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Greek/BoldItalic/Main.js +0 -19
  811. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Greek/Italic/Main.js +0 -19
  812. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Greek/Regular/Main.js +0 -19
  813. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Bold/Arrows.js +0 -19
  814. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Bold/CombDiacritMarks.js +0 -19
  815. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Bold/CombDiactForSymbols.js +0 -19
  816. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Bold/GeneralPunctuation.js +0 -19
  817. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Bold/GeometricShapes.js +0 -19
  818. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Bold/Latin1Supplement.js +0 -19
  819. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Bold/LatinExtendedA.js +0 -19
  820. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Bold/LatinExtendedB.js +0 -19
  821. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Bold/LetterlikeSymbols.js +0 -19
  822. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Bold/Main.js +0 -19
  823. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Bold/MathOperators.js +0 -19
  824. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Bold/MiscMathSymbolsA.js +0 -19
  825. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Bold/MiscSymbols.js +0 -19
  826. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Bold/MiscTechnical.js +0 -19
  827. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Bold/SpacingModLetters.js +0 -19
  828. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Bold/SuppMathOperators.js +0 -19
  829. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Bold/SupplementalArrowsA.js +0 -19
  830. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Italic/CombDiacritMarks.js +0 -19
  831. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Italic/GeneralPunctuation.js +0 -19
  832. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Italic/Latin1Supplement.js +0 -19
  833. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Italic/LetterlikeSymbols.js +0 -19
  834. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Italic/Main.js +0 -19
  835. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Regular/CombDiacritMarks.js +0 -19
  836. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Regular/GeometricShapes.js +0 -19
  837. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Regular/Main.js +0 -19
  838. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Regular/MiscSymbols.js +0 -19
  839. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Regular/SpacingModLetters.js +0 -19
  840. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Math/BoldItalic/Main.js +0 -19
  841. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Math/Italic/Main.js +0 -19
  842. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/SansSerif/Bold/BasicLatin.js +0 -19
  843. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/SansSerif/Bold/CombDiacritMarks.js +0 -19
  844. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/SansSerif/Bold/Main.js +0 -19
  845. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/SansSerif/Bold/Other.js +0 -19
  846. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/SansSerif/Italic/BasicLatin.js +0 -19
  847. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/SansSerif/Italic/CombDiacritMarks.js +0 -19
  848. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/SansSerif/Italic/Main.js +0 -19
  849. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/SansSerif/Italic/Other.js +0 -19
  850. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/SansSerif/Regular/BasicLatin.js +0 -19
  851. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/SansSerif/Regular/CombDiacritMarks.js +0 -19
  852. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/SansSerif/Regular/Main.js +0 -19
  853. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/SansSerif/Regular/Other.js +0 -19
  854. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Script/Regular/BasicLatin.js +0 -19
  855. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Script/Regular/Main.js +0 -19
  856. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Script/Regular/Other.js +0 -19
  857. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Size1/Regular/Main.js +0 -19
  858. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Size2/Regular/Main.js +0 -19
  859. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Size3/Regular/Main.js +0 -19
  860. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Size4/Regular/Main.js +0 -19
  861. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Typewriter/Regular/BasicLatin.js +0 -19
  862. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Typewriter/Regular/CombDiacritMarks.js +0 -19
  863. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Typewriter/Regular/Main.js +0 -19
  864. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Typewriter/Regular/Other.js +0 -19
  865. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/WinChrome/Regular/Main.js +0 -19
  866. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/WinIE6/Regular/AMS.js +0 -19
  867. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/WinIE6/Regular/Bold.js +0 -19
  868. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/WinIE6/Regular/Main.js +0 -19
  869. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/fontdata-extra.js +0 -19
  870. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/fontdata.js +0 -19
  871. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/imageFonts.js +0 -19
  872. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/HTML-CSS/jax.js +0 -19
  873. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/NativeMML/config.js +0 -19
  874. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/NativeMML/jax.js +0 -19
  875. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/PlainSource/config.js +0 -19
  876. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/PlainSource/jax.js +0 -19
  877. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/PreviewHTML/config.js +0 -19
  878. data/lib/gollum/public/gollum/javascript/MathJax/jax/output/PreviewHTML/jax.js +0 -19
  879. data/lib/gollum/public/gollum/javascript/ace/ace.js +0 -17
  880. data/lib/gollum/public/gollum/javascript/ace/ext-beautify.js +0 -8
  881. data/lib/gollum/public/gollum/javascript/ace/ext-elastic_tabstops_lite.js +0 -8
  882. data/lib/gollum/public/gollum/javascript/ace/ext-emmet.js +0 -8
  883. data/lib/gollum/public/gollum/javascript/ace/ext-error_marker.js +0 -8
  884. data/lib/gollum/public/gollum/javascript/ace/ext-keybinding_menu.js +0 -8
  885. data/lib/gollum/public/gollum/javascript/ace/ext-language_tools.js +0 -8
  886. data/lib/gollum/public/gollum/javascript/ace/ext-linking.js +0 -8
  887. data/lib/gollum/public/gollum/javascript/ace/ext-modelist.js +0 -8
  888. data/lib/gollum/public/gollum/javascript/ace/ext-options.js +0 -8
  889. data/lib/gollum/public/gollum/javascript/ace/ext-prompt.js +0 -8
  890. data/lib/gollum/public/gollum/javascript/ace/ext-rtl.js +0 -8
  891. data/lib/gollum/public/gollum/javascript/ace/ext-searchbox.js +0 -8
  892. data/lib/gollum/public/gollum/javascript/ace/ext-settings_menu.js +0 -8
  893. data/lib/gollum/public/gollum/javascript/ace/ext-spellcheck.js +0 -8
  894. data/lib/gollum/public/gollum/javascript/ace/ext-split.js +0 -8
  895. data/lib/gollum/public/gollum/javascript/ace/ext-static_highlight.js +0 -8
  896. data/lib/gollum/public/gollum/javascript/ace/ext-statusbar.js +0 -8
  897. data/lib/gollum/public/gollum/javascript/ace/ext-textarea.js +0 -8
  898. data/lib/gollum/public/gollum/javascript/ace/ext-themelist.js +0 -8
  899. data/lib/gollum/public/gollum/javascript/ace/ext-whitespace.js +0 -8
  900. data/lib/gollum/public/gollum/javascript/ace/keybinding-emacs.js +0 -8
  901. data/lib/gollum/public/gollum/javascript/ace/keybinding-sublime.js +0 -8
  902. data/lib/gollum/public/gollum/javascript/ace/keybinding-vim.js +0 -8
  903. data/lib/gollum/public/gollum/javascript/ace/mode-abap.js +0 -8
  904. data/lib/gollum/public/gollum/javascript/ace/mode-abc.js +0 -8
  905. data/lib/gollum/public/gollum/javascript/ace/mode-actionscript.js +0 -8
  906. data/lib/gollum/public/gollum/javascript/ace/mode-ada.js +0 -8
  907. data/lib/gollum/public/gollum/javascript/ace/mode-apache_conf.js +0 -8
  908. data/lib/gollum/public/gollum/javascript/ace/mode-apex.js +0 -8
  909. data/lib/gollum/public/gollum/javascript/ace/mode-applescript.js +0 -8
  910. data/lib/gollum/public/gollum/javascript/ace/mode-aql.js +0 -8
  911. data/lib/gollum/public/gollum/javascript/ace/mode-asciidoc.js +0 -8
  912. data/lib/gollum/public/gollum/javascript/ace/mode-asl.js +0 -8
  913. data/lib/gollum/public/gollum/javascript/ace/mode-assembly_x86.js +0 -8
  914. data/lib/gollum/public/gollum/javascript/ace/mode-autohotkey.js +0 -8
  915. data/lib/gollum/public/gollum/javascript/ace/mode-batchfile.js +0 -8
  916. data/lib/gollum/public/gollum/javascript/ace/mode-bro.js +0 -8
  917. data/lib/gollum/public/gollum/javascript/ace/mode-c9search.js +0 -8
  918. data/lib/gollum/public/gollum/javascript/ace/mode-c_cpp.js +0 -8
  919. data/lib/gollum/public/gollum/javascript/ace/mode-cirru.js +0 -8
  920. data/lib/gollum/public/gollum/javascript/ace/mode-clojure.js +0 -8
  921. data/lib/gollum/public/gollum/javascript/ace/mode-cobol.js +0 -8
  922. data/lib/gollum/public/gollum/javascript/ace/mode-coffee.js +0 -8
  923. data/lib/gollum/public/gollum/javascript/ace/mode-coldfusion.js +0 -8
  924. data/lib/gollum/public/gollum/javascript/ace/mode-crystal.js +0 -8
  925. data/lib/gollum/public/gollum/javascript/ace/mode-csharp.js +0 -8
  926. data/lib/gollum/public/gollum/javascript/ace/mode-csound_document.js +0 -8
  927. data/lib/gollum/public/gollum/javascript/ace/mode-csound_orchestra.js +0 -8
  928. data/lib/gollum/public/gollum/javascript/ace/mode-csound_score.js +0 -8
  929. data/lib/gollum/public/gollum/javascript/ace/mode-csp.js +0 -8
  930. data/lib/gollum/public/gollum/javascript/ace/mode-css.js +0 -8
  931. data/lib/gollum/public/gollum/javascript/ace/mode-curly.js +0 -8
  932. data/lib/gollum/public/gollum/javascript/ace/mode-d.js +0 -8
  933. data/lib/gollum/public/gollum/javascript/ace/mode-dart.js +0 -8
  934. data/lib/gollum/public/gollum/javascript/ace/mode-diff.js +0 -8
  935. data/lib/gollum/public/gollum/javascript/ace/mode-django.js +0 -8
  936. data/lib/gollum/public/gollum/javascript/ace/mode-dockerfile.js +0 -8
  937. data/lib/gollum/public/gollum/javascript/ace/mode-dot.js +0 -8
  938. data/lib/gollum/public/gollum/javascript/ace/mode-drools.js +0 -8
  939. data/lib/gollum/public/gollum/javascript/ace/mode-edifact.js +0 -8
  940. data/lib/gollum/public/gollum/javascript/ace/mode-eiffel.js +0 -8
  941. data/lib/gollum/public/gollum/javascript/ace/mode-ejs.js +0 -8
  942. data/lib/gollum/public/gollum/javascript/ace/mode-elixir.js +0 -8
  943. data/lib/gollum/public/gollum/javascript/ace/mode-elm.js +0 -8
  944. data/lib/gollum/public/gollum/javascript/ace/mode-erlang.js +0 -8
  945. data/lib/gollum/public/gollum/javascript/ace/mode-forth.js +0 -8
  946. data/lib/gollum/public/gollum/javascript/ace/mode-fortran.js +0 -8
  947. data/lib/gollum/public/gollum/javascript/ace/mode-fsharp.js +0 -8
  948. data/lib/gollum/public/gollum/javascript/ace/mode-fsl.js +0 -8
  949. data/lib/gollum/public/gollum/javascript/ace/mode-ftl.js +0 -8
  950. data/lib/gollum/public/gollum/javascript/ace/mode-gcode.js +0 -8
  951. data/lib/gollum/public/gollum/javascript/ace/mode-gherkin.js +0 -8
  952. data/lib/gollum/public/gollum/javascript/ace/mode-gitignore.js +0 -8
  953. data/lib/gollum/public/gollum/javascript/ace/mode-glsl.js +0 -8
  954. data/lib/gollum/public/gollum/javascript/ace/mode-gobstones.js +0 -8
  955. data/lib/gollum/public/gollum/javascript/ace/mode-golang.js +0 -8
  956. data/lib/gollum/public/gollum/javascript/ace/mode-graphqlschema.js +0 -8
  957. data/lib/gollum/public/gollum/javascript/ace/mode-groovy.js +0 -8
  958. data/lib/gollum/public/gollum/javascript/ace/mode-haml.js +0 -8
  959. data/lib/gollum/public/gollum/javascript/ace/mode-handlebars.js +0 -8
  960. data/lib/gollum/public/gollum/javascript/ace/mode-haskell.js +0 -8
  961. data/lib/gollum/public/gollum/javascript/ace/mode-haskell_cabal.js +0 -8
  962. data/lib/gollum/public/gollum/javascript/ace/mode-haxe.js +0 -8
  963. data/lib/gollum/public/gollum/javascript/ace/mode-hjson.js +0 -8
  964. data/lib/gollum/public/gollum/javascript/ace/mode-html.js +0 -8
  965. data/lib/gollum/public/gollum/javascript/ace/mode-html_elixir.js +0 -8
  966. data/lib/gollum/public/gollum/javascript/ace/mode-html_ruby.js +0 -8
  967. data/lib/gollum/public/gollum/javascript/ace/mode-ini.js +0 -8
  968. data/lib/gollum/public/gollum/javascript/ace/mode-io.js +0 -8
  969. data/lib/gollum/public/gollum/javascript/ace/mode-jack.js +0 -8
  970. data/lib/gollum/public/gollum/javascript/ace/mode-jade.js +0 -8
  971. data/lib/gollum/public/gollum/javascript/ace/mode-java.js +0 -8
  972. data/lib/gollum/public/gollum/javascript/ace/mode-javascript.js +0 -8
  973. data/lib/gollum/public/gollum/javascript/ace/mode-json.js +0 -8
  974. data/lib/gollum/public/gollum/javascript/ace/mode-jsoniq.js +0 -8
  975. data/lib/gollum/public/gollum/javascript/ace/mode-jsp.js +0 -8
  976. data/lib/gollum/public/gollum/javascript/ace/mode-jssm.js +0 -8
  977. data/lib/gollum/public/gollum/javascript/ace/mode-jsx.js +0 -8
  978. data/lib/gollum/public/gollum/javascript/ace/mode-julia.js +0 -8
  979. data/lib/gollum/public/gollum/javascript/ace/mode-kotlin.js +0 -8
  980. data/lib/gollum/public/gollum/javascript/ace/mode-latex.js +0 -8
  981. data/lib/gollum/public/gollum/javascript/ace/mode-less.js +0 -8
  982. data/lib/gollum/public/gollum/javascript/ace/mode-liquid.js +0 -8
  983. data/lib/gollum/public/gollum/javascript/ace/mode-lisp.js +0 -8
  984. data/lib/gollum/public/gollum/javascript/ace/mode-livescript.js +0 -8
  985. data/lib/gollum/public/gollum/javascript/ace/mode-logiql.js +0 -8
  986. data/lib/gollum/public/gollum/javascript/ace/mode-logtalk.js +0 -8
  987. data/lib/gollum/public/gollum/javascript/ace/mode-lsl.js +0 -8
  988. data/lib/gollum/public/gollum/javascript/ace/mode-lua.js +0 -8
  989. data/lib/gollum/public/gollum/javascript/ace/mode-luapage.js +0 -8
  990. data/lib/gollum/public/gollum/javascript/ace/mode-lucene.js +0 -8
  991. data/lib/gollum/public/gollum/javascript/ace/mode-makefile.js +0 -8
  992. data/lib/gollum/public/gollum/javascript/ace/mode-markdown.js +0 -8
  993. data/lib/gollum/public/gollum/javascript/ace/mode-mask.js +0 -8
  994. data/lib/gollum/public/gollum/javascript/ace/mode-matlab.js +0 -8
  995. data/lib/gollum/public/gollum/javascript/ace/mode-maze.js +0 -8
  996. data/lib/gollum/public/gollum/javascript/ace/mode-mel.js +0 -8
  997. data/lib/gollum/public/gollum/javascript/ace/mode-mixal.js +0 -8
  998. data/lib/gollum/public/gollum/javascript/ace/mode-mushcode.js +0 -8
  999. data/lib/gollum/public/gollum/javascript/ace/mode-mysql.js +0 -8
  1000. data/lib/gollum/public/gollum/javascript/ace/mode-nginx.js +0 -8
  1001. data/lib/gollum/public/gollum/javascript/ace/mode-nim.js +0 -8
  1002. data/lib/gollum/public/gollum/javascript/ace/mode-nix.js +0 -8
  1003. data/lib/gollum/public/gollum/javascript/ace/mode-nsis.js +0 -8
  1004. data/lib/gollum/public/gollum/javascript/ace/mode-objectivec.js +0 -8
  1005. data/lib/gollum/public/gollum/javascript/ace/mode-ocaml.js +0 -8
  1006. data/lib/gollum/public/gollum/javascript/ace/mode-pascal.js +0 -8
  1007. data/lib/gollum/public/gollum/javascript/ace/mode-perl.js +0 -8
  1008. data/lib/gollum/public/gollum/javascript/ace/mode-perl6.js +0 -8
  1009. data/lib/gollum/public/gollum/javascript/ace/mode-pgsql.js +0 -8
  1010. data/lib/gollum/public/gollum/javascript/ace/mode-php.js +0 -8
  1011. data/lib/gollum/public/gollum/javascript/ace/mode-php_laravel_blade.js +0 -8
  1012. data/lib/gollum/public/gollum/javascript/ace/mode-pig.js +0 -8
  1013. data/lib/gollum/public/gollum/javascript/ace/mode-plain_text.js +0 -8
  1014. data/lib/gollum/public/gollum/javascript/ace/mode-powershell.js +0 -8
  1015. data/lib/gollum/public/gollum/javascript/ace/mode-praat.js +0 -8
  1016. data/lib/gollum/public/gollum/javascript/ace/mode-prolog.js +0 -8
  1017. data/lib/gollum/public/gollum/javascript/ace/mode-properties.js +0 -8
  1018. data/lib/gollum/public/gollum/javascript/ace/mode-protobuf.js +0 -8
  1019. data/lib/gollum/public/gollum/javascript/ace/mode-puppet.js +0 -8
  1020. data/lib/gollum/public/gollum/javascript/ace/mode-python.js +0 -8
  1021. data/lib/gollum/public/gollum/javascript/ace/mode-r.js +0 -8
  1022. data/lib/gollum/public/gollum/javascript/ace/mode-razor.js +0 -8
  1023. data/lib/gollum/public/gollum/javascript/ace/mode-rdoc.js +0 -8
  1024. data/lib/gollum/public/gollum/javascript/ace/mode-red.js +0 -8
  1025. data/lib/gollum/public/gollum/javascript/ace/mode-redshift.js +0 -8
  1026. data/lib/gollum/public/gollum/javascript/ace/mode-rhtml.js +0 -8
  1027. data/lib/gollum/public/gollum/javascript/ace/mode-rst.js +0 -8
  1028. data/lib/gollum/public/gollum/javascript/ace/mode-ruby.js +0 -8
  1029. data/lib/gollum/public/gollum/javascript/ace/mode-rust.js +0 -8
  1030. data/lib/gollum/public/gollum/javascript/ace/mode-sass.js +0 -8
  1031. data/lib/gollum/public/gollum/javascript/ace/mode-scad.js +0 -8
  1032. data/lib/gollum/public/gollum/javascript/ace/mode-scala.js +0 -8
  1033. data/lib/gollum/public/gollum/javascript/ace/mode-scheme.js +0 -8
  1034. data/lib/gollum/public/gollum/javascript/ace/mode-scss.js +0 -8
  1035. data/lib/gollum/public/gollum/javascript/ace/mode-sh.js +0 -8
  1036. data/lib/gollum/public/gollum/javascript/ace/mode-sjs.js +0 -8
  1037. data/lib/gollum/public/gollum/javascript/ace/mode-slim.js +0 -8
  1038. data/lib/gollum/public/gollum/javascript/ace/mode-smarty.js +0 -8
  1039. data/lib/gollum/public/gollum/javascript/ace/mode-snippets.js +0 -8
  1040. data/lib/gollum/public/gollum/javascript/ace/mode-soy_template.js +0 -8
  1041. data/lib/gollum/public/gollum/javascript/ace/mode-space.js +0 -8
  1042. data/lib/gollum/public/gollum/javascript/ace/mode-sparql.js +0 -8
  1043. data/lib/gollum/public/gollum/javascript/ace/mode-sql.js +0 -8
  1044. data/lib/gollum/public/gollum/javascript/ace/mode-sqlserver.js +0 -8
  1045. data/lib/gollum/public/gollum/javascript/ace/mode-stylus.js +0 -8
  1046. data/lib/gollum/public/gollum/javascript/ace/mode-svg.js +0 -8
  1047. data/lib/gollum/public/gollum/javascript/ace/mode-swift.js +0 -8
  1048. data/lib/gollum/public/gollum/javascript/ace/mode-tcl.js +0 -8
  1049. data/lib/gollum/public/gollum/javascript/ace/mode-terraform.js +0 -8
  1050. data/lib/gollum/public/gollum/javascript/ace/mode-tex.js +0 -8
  1051. data/lib/gollum/public/gollum/javascript/ace/mode-text.js +0 -8
  1052. data/lib/gollum/public/gollum/javascript/ace/mode-textile.js +0 -8
  1053. data/lib/gollum/public/gollum/javascript/ace/mode-toml.js +0 -8
  1054. data/lib/gollum/public/gollum/javascript/ace/mode-tsx.js +0 -8
  1055. data/lib/gollum/public/gollum/javascript/ace/mode-turtle.js +0 -8
  1056. data/lib/gollum/public/gollum/javascript/ace/mode-twig.js +0 -8
  1057. data/lib/gollum/public/gollum/javascript/ace/mode-typescript.js +0 -8
  1058. data/lib/gollum/public/gollum/javascript/ace/mode-vala.js +0 -8
  1059. data/lib/gollum/public/gollum/javascript/ace/mode-vbscript.js +0 -8
  1060. data/lib/gollum/public/gollum/javascript/ace/mode-velocity.js +0 -8
  1061. data/lib/gollum/public/gollum/javascript/ace/mode-verilog.js +0 -8
  1062. data/lib/gollum/public/gollum/javascript/ace/mode-vhdl.js +0 -8
  1063. data/lib/gollum/public/gollum/javascript/ace/mode-visualforce.js +0 -8
  1064. data/lib/gollum/public/gollum/javascript/ace/mode-wollok.js +0 -8
  1065. data/lib/gollum/public/gollum/javascript/ace/mode-xml.js +0 -8
  1066. data/lib/gollum/public/gollum/javascript/ace/mode-xquery.js +0 -8
  1067. data/lib/gollum/public/gollum/javascript/ace/mode-yaml.js +0 -8
  1068. data/lib/gollum/public/gollum/javascript/ace/mode-zeek.js +0 -8
  1069. data/lib/gollum/public/gollum/javascript/ace/snippets/abap.js +0 -8
  1070. data/lib/gollum/public/gollum/javascript/ace/snippets/abc.js +0 -8
  1071. data/lib/gollum/public/gollum/javascript/ace/snippets/actionscript.js +0 -8
  1072. data/lib/gollum/public/gollum/javascript/ace/snippets/ada.js +0 -8
  1073. data/lib/gollum/public/gollum/javascript/ace/snippets/apache_conf.js +0 -8
  1074. data/lib/gollum/public/gollum/javascript/ace/snippets/apex.js +0 -8
  1075. data/lib/gollum/public/gollum/javascript/ace/snippets/applescript.js +0 -8
  1076. data/lib/gollum/public/gollum/javascript/ace/snippets/aql.js +0 -8
  1077. data/lib/gollum/public/gollum/javascript/ace/snippets/asciidoc.js +0 -8
  1078. data/lib/gollum/public/gollum/javascript/ace/snippets/asl.js +0 -8
  1079. data/lib/gollum/public/gollum/javascript/ace/snippets/assembly_x86.js +0 -8
  1080. data/lib/gollum/public/gollum/javascript/ace/snippets/autohotkey.js +0 -8
  1081. data/lib/gollum/public/gollum/javascript/ace/snippets/batchfile.js +0 -8
  1082. data/lib/gollum/public/gollum/javascript/ace/snippets/bro.js +0 -8
  1083. data/lib/gollum/public/gollum/javascript/ace/snippets/c9search.js +0 -8
  1084. data/lib/gollum/public/gollum/javascript/ace/snippets/c_cpp.js +0 -8
  1085. data/lib/gollum/public/gollum/javascript/ace/snippets/cirru.js +0 -8
  1086. data/lib/gollum/public/gollum/javascript/ace/snippets/clojure.js +0 -8
  1087. data/lib/gollum/public/gollum/javascript/ace/snippets/cobol.js +0 -8
  1088. data/lib/gollum/public/gollum/javascript/ace/snippets/coffee.js +0 -8
  1089. data/lib/gollum/public/gollum/javascript/ace/snippets/coldfusion.js +0 -8
  1090. data/lib/gollum/public/gollum/javascript/ace/snippets/crystal.js +0 -8
  1091. data/lib/gollum/public/gollum/javascript/ace/snippets/csharp.js +0 -8
  1092. data/lib/gollum/public/gollum/javascript/ace/snippets/csound_document.js +0 -8
  1093. data/lib/gollum/public/gollum/javascript/ace/snippets/csound_orchestra.js +0 -8
  1094. data/lib/gollum/public/gollum/javascript/ace/snippets/csound_score.js +0 -8
  1095. data/lib/gollum/public/gollum/javascript/ace/snippets/csp.js +0 -8
  1096. data/lib/gollum/public/gollum/javascript/ace/snippets/css.js +0 -8
  1097. data/lib/gollum/public/gollum/javascript/ace/snippets/curly.js +0 -8
  1098. data/lib/gollum/public/gollum/javascript/ace/snippets/d.js +0 -8
  1099. data/lib/gollum/public/gollum/javascript/ace/snippets/dart.js +0 -8
  1100. data/lib/gollum/public/gollum/javascript/ace/snippets/diff.js +0 -8
  1101. data/lib/gollum/public/gollum/javascript/ace/snippets/django.js +0 -8
  1102. data/lib/gollum/public/gollum/javascript/ace/snippets/dockerfile.js +0 -8
  1103. data/lib/gollum/public/gollum/javascript/ace/snippets/dot.js +0 -8
  1104. data/lib/gollum/public/gollum/javascript/ace/snippets/drools.js +0 -8
  1105. data/lib/gollum/public/gollum/javascript/ace/snippets/edifact.js +0 -8
  1106. data/lib/gollum/public/gollum/javascript/ace/snippets/eiffel.js +0 -8
  1107. data/lib/gollum/public/gollum/javascript/ace/snippets/ejs.js +0 -8
  1108. data/lib/gollum/public/gollum/javascript/ace/snippets/elixir.js +0 -8
  1109. data/lib/gollum/public/gollum/javascript/ace/snippets/elm.js +0 -8
  1110. data/lib/gollum/public/gollum/javascript/ace/snippets/erlang.js +0 -8
  1111. data/lib/gollum/public/gollum/javascript/ace/snippets/forth.js +0 -8
  1112. data/lib/gollum/public/gollum/javascript/ace/snippets/fortran.js +0 -8
  1113. data/lib/gollum/public/gollum/javascript/ace/snippets/fsharp.js +0 -8
  1114. data/lib/gollum/public/gollum/javascript/ace/snippets/fsl.js +0 -8
  1115. data/lib/gollum/public/gollum/javascript/ace/snippets/ftl.js +0 -8
  1116. data/lib/gollum/public/gollum/javascript/ace/snippets/gcode.js +0 -8
  1117. data/lib/gollum/public/gollum/javascript/ace/snippets/gherkin.js +0 -8
  1118. data/lib/gollum/public/gollum/javascript/ace/snippets/gitignore.js +0 -8
  1119. data/lib/gollum/public/gollum/javascript/ace/snippets/glsl.js +0 -8
  1120. data/lib/gollum/public/gollum/javascript/ace/snippets/gobstones.js +0 -8
  1121. data/lib/gollum/public/gollum/javascript/ace/snippets/golang.js +0 -8
  1122. data/lib/gollum/public/gollum/javascript/ace/snippets/graphqlschema.js +0 -8
  1123. data/lib/gollum/public/gollum/javascript/ace/snippets/groovy.js +0 -8
  1124. data/lib/gollum/public/gollum/javascript/ace/snippets/haml.js +0 -8
  1125. data/lib/gollum/public/gollum/javascript/ace/snippets/handlebars.js +0 -8
  1126. data/lib/gollum/public/gollum/javascript/ace/snippets/haskell.js +0 -8
  1127. data/lib/gollum/public/gollum/javascript/ace/snippets/haskell_cabal.js +0 -8
  1128. data/lib/gollum/public/gollum/javascript/ace/snippets/haxe.js +0 -8
  1129. data/lib/gollum/public/gollum/javascript/ace/snippets/hjson.js +0 -8
  1130. data/lib/gollum/public/gollum/javascript/ace/snippets/html.js +0 -8
  1131. data/lib/gollum/public/gollum/javascript/ace/snippets/html_elixir.js +0 -8
  1132. data/lib/gollum/public/gollum/javascript/ace/snippets/html_ruby.js +0 -8
  1133. data/lib/gollum/public/gollum/javascript/ace/snippets/ini.js +0 -8
  1134. data/lib/gollum/public/gollum/javascript/ace/snippets/io.js +0 -8
  1135. data/lib/gollum/public/gollum/javascript/ace/snippets/jack.js +0 -8
  1136. data/lib/gollum/public/gollum/javascript/ace/snippets/jade.js +0 -8
  1137. data/lib/gollum/public/gollum/javascript/ace/snippets/java.js +0 -8
  1138. data/lib/gollum/public/gollum/javascript/ace/snippets/javascript.js +0 -8
  1139. data/lib/gollum/public/gollum/javascript/ace/snippets/json.js +0 -8
  1140. data/lib/gollum/public/gollum/javascript/ace/snippets/jsoniq.js +0 -8
  1141. data/lib/gollum/public/gollum/javascript/ace/snippets/jsp.js +0 -8
  1142. data/lib/gollum/public/gollum/javascript/ace/snippets/jssm.js +0 -8
  1143. data/lib/gollum/public/gollum/javascript/ace/snippets/jsx.js +0 -8
  1144. data/lib/gollum/public/gollum/javascript/ace/snippets/julia.js +0 -8
  1145. data/lib/gollum/public/gollum/javascript/ace/snippets/kotlin.js +0 -8
  1146. data/lib/gollum/public/gollum/javascript/ace/snippets/latex.js +0 -8
  1147. data/lib/gollum/public/gollum/javascript/ace/snippets/less.js +0 -8
  1148. data/lib/gollum/public/gollum/javascript/ace/snippets/liquid.js +0 -8
  1149. data/lib/gollum/public/gollum/javascript/ace/snippets/lisp.js +0 -8
  1150. data/lib/gollum/public/gollum/javascript/ace/snippets/livescript.js +0 -8
  1151. data/lib/gollum/public/gollum/javascript/ace/snippets/logiql.js +0 -8
  1152. data/lib/gollum/public/gollum/javascript/ace/snippets/logtalk.js +0 -8
  1153. data/lib/gollum/public/gollum/javascript/ace/snippets/lsl.js +0 -8
  1154. data/lib/gollum/public/gollum/javascript/ace/snippets/lua.js +0 -8
  1155. data/lib/gollum/public/gollum/javascript/ace/snippets/luapage.js +0 -8
  1156. data/lib/gollum/public/gollum/javascript/ace/snippets/lucene.js +0 -8
  1157. data/lib/gollum/public/gollum/javascript/ace/snippets/makefile.js +0 -8
  1158. data/lib/gollum/public/gollum/javascript/ace/snippets/markdown.js +0 -8
  1159. data/lib/gollum/public/gollum/javascript/ace/snippets/mask.js +0 -8
  1160. data/lib/gollum/public/gollum/javascript/ace/snippets/matlab.js +0 -8
  1161. data/lib/gollum/public/gollum/javascript/ace/snippets/maze.js +0 -8
  1162. data/lib/gollum/public/gollum/javascript/ace/snippets/mel.js +0 -8
  1163. data/lib/gollum/public/gollum/javascript/ace/snippets/mixal.js +0 -8
  1164. data/lib/gollum/public/gollum/javascript/ace/snippets/mushcode.js +0 -8
  1165. data/lib/gollum/public/gollum/javascript/ace/snippets/mysql.js +0 -8
  1166. data/lib/gollum/public/gollum/javascript/ace/snippets/nginx.js +0 -8
  1167. data/lib/gollum/public/gollum/javascript/ace/snippets/nim.js +0 -8
  1168. data/lib/gollum/public/gollum/javascript/ace/snippets/nix.js +0 -8
  1169. data/lib/gollum/public/gollum/javascript/ace/snippets/nsis.js +0 -8
  1170. data/lib/gollum/public/gollum/javascript/ace/snippets/objectivec.js +0 -8
  1171. data/lib/gollum/public/gollum/javascript/ace/snippets/ocaml.js +0 -8
  1172. data/lib/gollum/public/gollum/javascript/ace/snippets/pascal.js +0 -8
  1173. data/lib/gollum/public/gollum/javascript/ace/snippets/perl.js +0 -8
  1174. data/lib/gollum/public/gollum/javascript/ace/snippets/perl6.js +0 -8
  1175. data/lib/gollum/public/gollum/javascript/ace/snippets/pgsql.js +0 -8
  1176. data/lib/gollum/public/gollum/javascript/ace/snippets/php.js +0 -8
  1177. data/lib/gollum/public/gollum/javascript/ace/snippets/php_laravel_blade.js +0 -8
  1178. data/lib/gollum/public/gollum/javascript/ace/snippets/pig.js +0 -8
  1179. data/lib/gollum/public/gollum/javascript/ace/snippets/plain_text.js +0 -8
  1180. data/lib/gollum/public/gollum/javascript/ace/snippets/powershell.js +0 -8
  1181. data/lib/gollum/public/gollum/javascript/ace/snippets/praat.js +0 -8
  1182. data/lib/gollum/public/gollum/javascript/ace/snippets/prolog.js +0 -8
  1183. data/lib/gollum/public/gollum/javascript/ace/snippets/properties.js +0 -8
  1184. data/lib/gollum/public/gollum/javascript/ace/snippets/protobuf.js +0 -8
  1185. data/lib/gollum/public/gollum/javascript/ace/snippets/puppet.js +0 -8
  1186. data/lib/gollum/public/gollum/javascript/ace/snippets/python.js +0 -8
  1187. data/lib/gollum/public/gollum/javascript/ace/snippets/r.js +0 -8
  1188. data/lib/gollum/public/gollum/javascript/ace/snippets/razor.js +0 -8
  1189. data/lib/gollum/public/gollum/javascript/ace/snippets/rdoc.js +0 -8
  1190. data/lib/gollum/public/gollum/javascript/ace/snippets/red.js +0 -8
  1191. data/lib/gollum/public/gollum/javascript/ace/snippets/redshift.js +0 -8
  1192. data/lib/gollum/public/gollum/javascript/ace/snippets/rhtml.js +0 -8
  1193. data/lib/gollum/public/gollum/javascript/ace/snippets/rst.js +0 -8
  1194. data/lib/gollum/public/gollum/javascript/ace/snippets/ruby.js +0 -8
  1195. data/lib/gollum/public/gollum/javascript/ace/snippets/rust.js +0 -8
  1196. data/lib/gollum/public/gollum/javascript/ace/snippets/sass.js +0 -8
  1197. data/lib/gollum/public/gollum/javascript/ace/snippets/scad.js +0 -8
  1198. data/lib/gollum/public/gollum/javascript/ace/snippets/scala.js +0 -8
  1199. data/lib/gollum/public/gollum/javascript/ace/snippets/scheme.js +0 -8
  1200. data/lib/gollum/public/gollum/javascript/ace/snippets/scss.js +0 -8
  1201. data/lib/gollum/public/gollum/javascript/ace/snippets/sh.js +0 -8
  1202. data/lib/gollum/public/gollum/javascript/ace/snippets/sjs.js +0 -8
  1203. data/lib/gollum/public/gollum/javascript/ace/snippets/slim.js +0 -8
  1204. data/lib/gollum/public/gollum/javascript/ace/snippets/smarty.js +0 -8
  1205. data/lib/gollum/public/gollum/javascript/ace/snippets/snippets.js +0 -8
  1206. data/lib/gollum/public/gollum/javascript/ace/snippets/soy_template.js +0 -8
  1207. data/lib/gollum/public/gollum/javascript/ace/snippets/space.js +0 -8
  1208. data/lib/gollum/public/gollum/javascript/ace/snippets/sparql.js +0 -8
  1209. data/lib/gollum/public/gollum/javascript/ace/snippets/sql.js +0 -8
  1210. data/lib/gollum/public/gollum/javascript/ace/snippets/sqlserver.js +0 -8
  1211. data/lib/gollum/public/gollum/javascript/ace/snippets/stylus.js +0 -8
  1212. data/lib/gollum/public/gollum/javascript/ace/snippets/svg.js +0 -8
  1213. data/lib/gollum/public/gollum/javascript/ace/snippets/swift.js +0 -8
  1214. data/lib/gollum/public/gollum/javascript/ace/snippets/tcl.js +0 -8
  1215. data/lib/gollum/public/gollum/javascript/ace/snippets/terraform.js +0 -8
  1216. data/lib/gollum/public/gollum/javascript/ace/snippets/tex.js +0 -8
  1217. data/lib/gollum/public/gollum/javascript/ace/snippets/text.js +0 -8
  1218. data/lib/gollum/public/gollum/javascript/ace/snippets/textile.js +0 -8
  1219. data/lib/gollum/public/gollum/javascript/ace/snippets/toml.js +0 -8
  1220. data/lib/gollum/public/gollum/javascript/ace/snippets/tsx.js +0 -8
  1221. data/lib/gollum/public/gollum/javascript/ace/snippets/turtle.js +0 -8
  1222. data/lib/gollum/public/gollum/javascript/ace/snippets/twig.js +0 -8
  1223. data/lib/gollum/public/gollum/javascript/ace/snippets/typescript.js +0 -8
  1224. data/lib/gollum/public/gollum/javascript/ace/snippets/vala.js +0 -8
  1225. data/lib/gollum/public/gollum/javascript/ace/snippets/vbscript.js +0 -8
  1226. data/lib/gollum/public/gollum/javascript/ace/snippets/velocity.js +0 -8
  1227. data/lib/gollum/public/gollum/javascript/ace/snippets/verilog.js +0 -8
  1228. data/lib/gollum/public/gollum/javascript/ace/snippets/vhdl.js +0 -8
  1229. data/lib/gollum/public/gollum/javascript/ace/snippets/visualforce.js +0 -8
  1230. data/lib/gollum/public/gollum/javascript/ace/snippets/wollok.js +0 -8
  1231. data/lib/gollum/public/gollum/javascript/ace/snippets/xml.js +0 -8
  1232. data/lib/gollum/public/gollum/javascript/ace/snippets/xquery.js +0 -8
  1233. data/lib/gollum/public/gollum/javascript/ace/snippets/yaml.js +0 -8
  1234. data/lib/gollum/public/gollum/javascript/ace/snippets/zeek.js +0 -8
  1235. data/lib/gollum/public/gollum/javascript/ace/theme-ambiance.js +0 -8
  1236. data/lib/gollum/public/gollum/javascript/ace/theme-chaos.js +0 -8
  1237. data/lib/gollum/public/gollum/javascript/ace/theme-chrome.js +0 -8
  1238. data/lib/gollum/public/gollum/javascript/ace/theme-clouds.js +0 -8
  1239. data/lib/gollum/public/gollum/javascript/ace/theme-clouds_midnight.js +0 -8
  1240. data/lib/gollum/public/gollum/javascript/ace/theme-cobalt.js +0 -8
  1241. data/lib/gollum/public/gollum/javascript/ace/theme-crimson_editor.js +0 -8
  1242. data/lib/gollum/public/gollum/javascript/ace/theme-dawn.js +0 -8
  1243. data/lib/gollum/public/gollum/javascript/ace/theme-dracula.js +0 -8
  1244. data/lib/gollum/public/gollum/javascript/ace/theme-dreamweaver.js +0 -8
  1245. data/lib/gollum/public/gollum/javascript/ace/theme-eclipse.js +0 -8
  1246. data/lib/gollum/public/gollum/javascript/ace/theme-github.js +0 -8
  1247. data/lib/gollum/public/gollum/javascript/ace/theme-gob.js +0 -8
  1248. data/lib/gollum/public/gollum/javascript/ace/theme-gruvbox.js +0 -8
  1249. data/lib/gollum/public/gollum/javascript/ace/theme-idle_fingers.js +0 -8
  1250. data/lib/gollum/public/gollum/javascript/ace/theme-iplastic.js +0 -8
  1251. data/lib/gollum/public/gollum/javascript/ace/theme-katzenmilch.js +0 -8
  1252. data/lib/gollum/public/gollum/javascript/ace/theme-kr_theme.js +0 -8
  1253. data/lib/gollum/public/gollum/javascript/ace/theme-kuroir.js +0 -8
  1254. data/lib/gollum/public/gollum/javascript/ace/theme-merbivore.js +0 -8
  1255. data/lib/gollum/public/gollum/javascript/ace/theme-merbivore_soft.js +0 -8
  1256. data/lib/gollum/public/gollum/javascript/ace/theme-mono_industrial.js +0 -8
  1257. data/lib/gollum/public/gollum/javascript/ace/theme-monokai.js +0 -8
  1258. data/lib/gollum/public/gollum/javascript/ace/theme-pastel_on_dark.js +0 -8
  1259. data/lib/gollum/public/gollum/javascript/ace/theme-solarized_dark.js +0 -8
  1260. data/lib/gollum/public/gollum/javascript/ace/theme-solarized_light.js +0 -8
  1261. data/lib/gollum/public/gollum/javascript/ace/theme-sqlserver.js +0 -8
  1262. data/lib/gollum/public/gollum/javascript/ace/theme-terminal.js +0 -8
  1263. data/lib/gollum/public/gollum/javascript/ace/theme-textmate.js +0 -8
  1264. data/lib/gollum/public/gollum/javascript/ace/theme-tomorrow.js +0 -8
  1265. data/lib/gollum/public/gollum/javascript/ace/theme-tomorrow_night.js +0 -8
  1266. data/lib/gollum/public/gollum/javascript/ace/theme-tomorrow_night_blue.js +0 -8
  1267. data/lib/gollum/public/gollum/javascript/ace/theme-tomorrow_night_bright.js +0 -8
  1268. data/lib/gollum/public/gollum/javascript/ace/theme-tomorrow_night_eighties.js +0 -8
  1269. data/lib/gollum/public/gollum/javascript/ace/theme-twilight.js +0 -8
  1270. data/lib/gollum/public/gollum/javascript/ace/theme-vibrant_ink.js +0 -8
  1271. data/lib/gollum/public/gollum/javascript/ace/theme-xcode.js +0 -8
  1272. data/lib/gollum/public/gollum/javascript/ace/worker-coffee.js +0 -1
  1273. data/lib/gollum/public/gollum/javascript/ace/worker-css.js +0 -1
  1274. data/lib/gollum/public/gollum/javascript/ace/worker-html.js +0 -1
  1275. data/lib/gollum/public/gollum/javascript/ace/worker-javascript.js +0 -1
  1276. data/lib/gollum/public/gollum/javascript/ace/worker-json.js +0 -1
  1277. data/lib/gollum/public/gollum/javascript/ace/worker-lua.js +0 -1
  1278. data/lib/gollum/public/gollum/javascript/ace/worker-php.js +0 -1
  1279. data/lib/gollum/public/gollum/javascript/ace/worker-xml.js +0 -1
  1280. data/lib/gollum/public/gollum/javascript/ace/worker-xquery.js +0 -1
  1281. data/lib/gollum/public/gollum/javascript/jquery-1.7.2.min.js +0 -4
  1282. data/lib/gollum/public/gollum/javascript/mousetrap.min.js +0 -11
  1283. data/lib/gollum/public/gollum/stylesheets/_component.scss +0 -121
  1284. data/lib/gollum/public/gollum/stylesheets/primer.css +0 -23
  1285. /data/lib/gollum/public/gollum/javascript/MathJax/{fonts/HTML-CSS/TeX/woff → output/chtml/fonts/woff-v2}/MathJax_Vector-Bold.woff +0 -0
  1286. /data/lib/gollum/public/gollum/javascript/MathJax/{fonts/HTML-CSS/TeX/woff → output/chtml/fonts/woff-v2}/MathJax_Vector-Regular.woff +0 -0
@@ -1,24 +0,0 @@
1
- (function(){function e(e){var t=n;e&&(n[e]||(n[e]={}),t=n[e]),t.define&&t.define.packaged||(r.original=t.define,t.define=r,t.define.packaged=!0),t.require&&t.require.packaged||(l.original=t.require,t.require=l,t.require.packaged=!0)}var t="ace",n=function(){return this}();if(!n&&"undefined"!=typeof window&&(n=window),t||"undefined"==typeof requirejs){var r=function(e,t,n){"string"==typeof e?(2==arguments.length&&(n=t),r.modules[e]||(r.payloads[e]=n,r.modules[e]=null)):r.original?r.original.apply(this,arguments):(console.error("dropping module because define wasn't a string."),console.trace())};r.modules={},r.payloads={};var s=function(e,t,n){if("string"==typeof t){var i=c(e,t);if(i!=undefined)return n&&n(),i}else if("[object Array]"===Object.prototype.toString.call(t)){for(var o=[],r=0,s=t.length;r<s;++r){var a=c(e,t[r]);if(a==undefined&&l.original)return;o.push(a)}return n&&n.apply(null,o)||!0}},l=function(e,t){var n=s("",e,t);return n==undefined&&l.original?l.original.apply(this,arguments):n},a=function(e,t){if(-1!==t.indexOf("!")){var n=t.split("!");return a(e,n[0])+"!"+a(e,n[1])}if("."==t.charAt(0))for(t=e.split("/").slice(0,-1).join("/")+"/"+t;-1!==t.indexOf(".")&&i!=t;){var i=t;t=t.replace(/\/\.\//,"/").replace(/[^\/]+\/\.\.\//,"")}return t},c=function(e,n){n=a(e,n);var t=r.modules[n];if(!t){if("function"==typeof(t=r.payloads[n])){var i={},o={id:n,uri:"",exports:i,packaged:!0};i=t(function(e,t){return s(n,e,t)},i,o)||o.exports,r.modules[n]=i,delete r.payloads[n]}t=r.modules[n]=i||t}return t};e(t)}})(),ace.define("ace/lib/regexp",["require","exports","module"],function(){"use strict";function r(e){return(e.global?"g":"")+(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.extended?"x":"")+(e.sticky?"y":"")}function s(e,t,n){if(Array.prototype.indexOf)return e.indexOf(t,n);for(var i=n||0;i<e.length;i++)if(e[i]===t)return i;return-1}var e,a={exec:RegExp.prototype.exec,test:RegExp.prototype.test,match:String.prototype.match,replace:String.prototype.replace,split:String.prototype.split},l=a.exec.call(/()??/,"")[1]===undefined,c=(e=/^/g,a.test.call(e,""),!e.lastIndex);c&&l||(RegExp.prototype.exec=function(e){var t,n,i=a.exec.apply(this,arguments);if("string"==typeof e&&i){if(!l&&1<i.length&&-1<s(i,"")&&(n=RegExp(this.source,a.replace.call(r(this),"g","")),a.replace.call(e.slice(i.index),n,function(){for(var e=1;e<arguments.length-2;e++)arguments[e]===undefined&&(i[e]=undefined)})),this._xregexp&&this._xregexp.captureNames)for(var o=1;o<i.length;o++)(t=this._xregexp.captureNames[o-1])&&(i[t]=i[o]);!c&&this.global&&!i[0].length&&this.lastIndex>i.index&&this.lastIndex--}return i},c||(RegExp.prototype.test=function(e){var t=a.exec.call(this,e);return t&&this.global&&!t[0].length&&this.lastIndex>t.index&&this.lastIndex--,!!t}))}),ace.define("ace/lib/es5-shim",["require","exports","module"],function(){function e(){}function t(e){try{return Object.defineProperty(e,"sentinel",{}),"sentinel"in e}catch(t){}}function r(e){return(e=+e)!=e?e=0:0!==e&&e!==1/0&&e!==-1/0&&(e=(0<e||-1)*Math.floor(Math.abs(e))),e}Function.prototype.bind||(Function.prototype.bind=function(t){var n=this;if("function"!=typeof n)throw new TypeError("Function.prototype.bind called on incompatible "+n);var i=d.call(arguments,1),o=function(){if(this instanceof o){var e=n.apply(this,i.concat(d.call(arguments)));return Object(e)===e?e:this}return n.apply(t,i.concat(d.call(arguments)))};return n.prototype&&(e.prototype=n.prototype,o.prototype=new e,e.prototype=null),o});var o,s,a,l,c,h=Function.prototype.call,n=Array.prototype,u=Object.prototype,d=n.slice,g=h.bind(u.toString),p=h.bind(u.hasOwnProperty);if((c=p(u,"__defineGetter__"))&&(o=h.bind(u.__defineGetter__),s=h.bind(u.__defineSetter__),a=h.bind(u.__lookupGetter__),l=h.bind(u.__lookupSetter__)),2!=[1,2].splice(0).length)if(function(){function e(e){var t=new Array(e+2);return t[0]=t[1]=0,t}var t,n=[];if(n.splice.apply(n,e(20)),n.splice.apply(n,e(26)),t=n.length,n.splice(5,0,"XXX"),n.length,t+1==n.length)return!0}()){var i=Array.prototype.splice;Array.prototype.splice=function(e,t){return arguments.length?i.apply(this,[void 0===e?0:e,void 0===t?this.length-e:t].concat(d.call(arguments,2))):[]}}else Array.prototype.splice=function(e,t){var n=this.length;0<e?n<e&&(e=n):null==e?e=0:e<0&&(e=Math.max(n+e,0)),e+t<n||(t=n-e);var i=this.slice(e,e+t),o=d.call(arguments,2),r=o.length;if(e===n)r&&this.push.apply(this,o);else{var s=Math.min(t,n-e),a=e+s,l=a+r-s,c=n-a,h=n-s;if(l<a)for(var u=0;u<c;++u)this[l+u]=this[a+u];else if(a<l)for(u=c;u--;)this[l+u]=this[a+u];if(r&&e===h)this.length=h,this.push.apply(this,o);else for(this.length=h+r,u=0;u<r;++u)this[e+u]=o[u]}return i};Array.isArray||(Array.isArray=function(e){return"[object Array]"==g(e)});var f,m,v=Object("a"),b="a"!=v[0]||!(0 in v);if(Array.prototype.forEach||(Array.prototype.forEach=function(e,t){var n=O(this),i=b&&"[object String]"==g(this)?this.split(""):n,o=t,r=-1,s=i.length>>>0;if("[object Function]"!=g(e))throw new TypeError;for(;++r<s;)r in i&&e.call(o,i[r],r,n)}),Array.prototype.map||(Array.prototype.map=function(e,t){var n=O(this),i=b&&"[object String]"==g(this)?this.split(""):n,o=i.length>>>0,r=Array(o),s=t;if("[object Function]"!=g(e))throw new TypeError(e+" is not a function");for(var a=0;a<o;a++)a in i&&(r[a]=e.call(s,i[a],a,n));return r}),Array.prototype.filter||(Array.prototype.filter=function(e,t){var n,i=O(this),o=b&&"[object String]"==g(this)?this.split(""):i,r=o.length>>>0,s=[],a=t;if("[object Function]"!=g(e))throw new TypeError(e+" is not a function");for(var l=0;l<r;l++)l in o&&(n=o[l],e.call(a,n,l,i)&&s.push(n));return s}),Array.prototype.every||(Array.prototype.every=function(e,t){var n=O(this),i=b&&"[object String]"==g(this)?this.split(""):n,o=i.length>>>0,r=t;if("[object Function]"!=g(e))throw new TypeError(e+" is not a function");for(var s=0;s<o;s++)if(s in i&&!e.call(r,i[s],s,n))return!1;return!0}),Array.prototype.some||(Array.prototype.some=function(e,t){var n=O(this),i=b&&"[object String]"==g(this)?this.split(""):n,o=i.length>>>0,r=t;if("[object Function]"!=g(e))throw new TypeError(e+" is not a function");for(var s=0;s<o;s++)if(s in i&&e.call(r,i[s],s,n))return!0;return!1}),Array.prototype.reduce||(Array.prototype.reduce=function(e,t){var n=O(this),i=b&&"[object String]"==g(this)?this.split(""):n,o=i.length>>>0;if("[object Function]"!=g(e))throw new TypeError(e+" is not a function");if(!o&&1==arguments.length)throw new TypeError("reduce of empty array with no initial value");var r,s=0;if(2<=arguments.length)r=t;else for(;;){if(s in i){r=i[s++];break}if(++s>=o)throw new TypeError("reduce of empty array with no initial value")}for(;s<o;s++)s in i&&(r=e.call(void 0,r,i[s],s,n));return r}),Array.prototype.reduceRight||(Array.prototype.reduceRight=function(e,t){var n=O(this),i=b&&"[object String]"==g(this)?this.split(""):n,o=i.length>>>0;if("[object Function]"!=g(e))throw new TypeError(e+" is not a function");if(!o&&1==arguments.length)throw new TypeError("reduceRight of empty array with no initial value");var r,s=o-1;if(2<=arguments.length)r=t;else for(;;){if(s in i){r=i[s--];break}if(--s<0)throw new TypeError("reduceRight of empty array with no initial value")}for(;s in this&&(r=e.call(void 0,r,i[s],s,n)),s--;);return r}),Array.prototype.indexOf&&-1==[0,1].indexOf(1,2)||(Array.prototype.indexOf=function(e,t){var n=b&&"[object String]"==g(this)?this.split(""):O(this),i=n.length>>>0;if(!i)return-1;var o=0;for(1<arguments.length&&(o=r(t)),o=0<=o?o:Math.max(0,i+o);o<i;o++)if(o in n&&n[o]===e)return o;return-1}),Array.prototype.lastIndexOf&&-1==[0,1].lastIndexOf(0,-3)||(Array.prototype.lastIndexOf=function(e,t){var n=b&&"[object String]"==g(this)?this.split(""):O(this),i=n.length>>>0;if(!i)return-1;var o=i-1;for(1<arguments.length&&(o=Math.min(o,r(t))),o=0<=o?o:i-Math.abs(o);0<=o;o--)if(o in n&&e===n[o])return o;return-1}),Object.getPrototypeOf||(Object.getPrototypeOf=function(e){return e.__proto__||(e.constructor?e.constructor.prototype:u)}),!Object.getOwnPropertyDescriptor){var w="Object.getOwnPropertyDescriptor called on a non-object: ";Object.getOwnPropertyDescriptor=function(e,t){if("object"!=typeof e&&"function"!=typeof e||null===e)throw new TypeError(w+e);if(p(e,t)){var n;if(n={enumerable:!0,configurable:!0},c){var i=e.__proto__;e.__proto__=u;var o=a(e,t),r=l(e,t);if(e.__proto__=i,o||r)return o&&(n.get=o),r&&(n.set=r),n}return n.value=e[t],n}}}(Object.getOwnPropertyNames||(Object.getOwnPropertyNames=function(e){return Object.keys(e)}),Object.create)||(f=null===Object.prototype.__proto__?function(){return{__proto__:null}}:function(){var e={};for(var t in e)e[t]=null;return e.constructor=e.hasOwnProperty=e.propertyIsEnumerable=e.isPrototypeOf=e.toLocaleString=e.toString=e.valueOf=e.__proto__=null,e},Object.create=function(e,t){var n;if(null===e)n=f();else{if("object"!=typeof e)throw new TypeError("typeof prototype["+typeof e+"] != 'object'");var i=function(){};i.prototype=e,(n=new i).__proto__=e}return void 0!==t&&Object.defineProperties(n,t),n});if(Object.defineProperty){var y=t({}),x="undefined"==typeof document||t(document.createElement("div"));if(!y||!x)var k=Object.defineProperty}if(!Object.defineProperty||k){var C="Property description must be an object: ",S="Object.defineProperty called on non-object: ",$="getters & setters can not be defined on this javascript engine";Object.defineProperty=function(e,t,n){if("object"!=typeof e&&"function"!=typeof e||null===e)throw new TypeError(S+e);if("object"!=typeof n&&"function"!=typeof n||null===n)throw new TypeError(C+n);if(k)try{return k.call(Object,e,t,n)}catch(h){}if(p(n,"value"))if(c&&(a(e,t)||l(e,t))){var i=e.__proto__;e.__proto__=u,delete e[t],e[t]=n.value,e.__proto__=i}else e[t]=n.value;else{if(!c)throw new TypeError($);p(n,"get")&&o(e,t,n.get),p(n,"set")&&s(e,t,n.set)}return e}}Object.defineProperties||(Object.defineProperties=function(e,t){for(var n in t)p(t,n)&&Object.defineProperty(e,n,t[n]);return e}),Object.seal||(Object.seal=function(e){return e}),Object.freeze||(Object.freeze=function(e){return e});try{Object.freeze(function(){})}catch(I){Object.freeze=(m=Object.freeze,function(e){return"function"==typeof e?e:m(e)})}if(Object.preventExtensions||(Object.preventExtensions=function(e){return e}),Object.isSealed||(Object.isSealed=function(){return!1}),Object.isFrozen||(Object.isFrozen=function(){return!1}),Object.isExtensible||(Object.isExtensible=function(e){if(Object(e)===e)throw new TypeError;for(var t="";p(e,t);)t+="?";e[t]=!0;var n=p(e,t);return delete e[t],n}),!Object.keys){var _=!0,A=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],L=A.length;for(var M in{toString:null})_=!1;Object.keys=function e(t){if("object"!=typeof t&&"function"!=typeof t||null===t)throw new TypeError("Object.keys called on a non-object");var e=[];for(var n in t)p(t,n)&&e.push(n);if(_)for(var i=0,o=L;i<o;i++){var r=A[i];p(t,r)&&e.push(r)}return e}}Date.now||(Date.now=function(){return(new Date).getTime()});var R="\t\n\x0B\f\r \xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029\ufeff";if(!String.prototype.trim||R.trim()){R="["+R+"]";var T=new RegExp("^"+R+R+"*"),E=new RegExp(R+R+"*$");String.prototype.trim=function(){return String(this).replace(T,"").replace(E,"")}}var O=function(e){if(null==e)throw new TypeError("can't convert "+e+" to object");return Object(e)}}),ace.define("ace/lib/fixoldbrowsers",["require","exports","module","ace/lib/regexp","ace/lib/es5-shim"],function(e){"use strict";e("./regexp"),e("./es5-shim"),"undefined"!=typeof Element&&!Element.prototype.remove&&Object.defineProperty(Element.prototype,"remove",{enumerable:!1,writable:!0,configurable:!0,value:function(){this.parentNode&&this.parentNode.removeChild(this)}})}),ace.define("ace/lib/useragent",["require","exports","module"],function(e,t){"use strict";t.OS={LINUX:"LINUX",MAC:"MAC",WINDOWS:"WINDOWS"},t.getOS=function(){return t.isMac?t.OS.MAC:t.isLinux?t.OS.LINUX:t.OS.WINDOWS};var n="object"==typeof navigator?navigator:{},i=(/mac|win|linux/i.exec(n.platform)||["other"])[0].toLowerCase(),o=n.userAgent||"",r=n.appName||"";t.isWin="win"==i,t.isMac="mac"==i,t.isLinux="linux"==i,t.isIE="Microsoft Internet Explorer"==r||0<=r.indexOf("MSAppHost")?parseFloat((o.match(/(?:MSIE |Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]):parseFloat((o.match(/(?:Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]),t.isOldIE=t.isIE&&t.isIE<9,t.isGecko=t.isMozilla=o.match(/ Gecko\/\d+/),t.isOpera="object"==typeof opera&&"[object Opera]"==Object.prototype.toString.call(window.opera),t.isWebKit=parseFloat(o.split("WebKit/")[1])||undefined,t.isChrome=parseFloat(o.split(" Chrome/")[1])||undefined,t.isEdge=parseFloat(o.split(" Edge/")[1])||undefined,t.isAIR=0<=o.indexOf("AdobeAIR"),t.isAndroid=0<=o.indexOf("Android"),t.isChromeOS=0<=o.indexOf(" CrOS "),t.isIOS=/iPad|iPhone|iPod/.test(o)&&!window.MSStream,t.isIOS&&(t.isMac=!0),t.isMobile=t.isIOS||t.isAndroid}),ace.define("ace/lib/dom",["require","exports","module","ace/lib/useragent"],function(e,a){"use strict";var t=e("./useragent"),n="http://www.w3.org/1999/xhtml";if(a.buildDom=function h(e,t,n){if("string"==typeof e&&e){var i=document.createTextNode(e);return t&&t.appendChild(i),i}if(!Array.isArray(e))return e;if("string"!=typeof e[0]||!e[0]){for(var o=[],r=0;r<e.length;r++){var s=h(e[r],t,n);s&&o.push(s)}return o}var a=document.createElement(e[0]),l=e[1],c=1;l&&"object"==typeof l&&!Array.isArray(l)&&(c=2);for(r=c;r<e.length;r++)h(e[r],a,n);return 2==c&&Object.keys(l).forEach(function(e){var t=l[e];"class"===e?a.className=Array.isArray(t)?t.join(" "):t:"function"==typeof t||"value"==e?a[e]=t:"ref"===e?n&&(n[t]=a):null!=t&&a.setAttribute(e,t)}),t&&t.appendChild(a),a},a.getDocumentHead=function(e){return e||(e=document),e.head||e.getElementsByTagName("head")[0]||e.documentElement},a.createElement=function(e,t){return document.createElementNS?document.createElementNS(t||n,e):document.createElement(e)},a.removeChildren=function(e){e.innerHTML=""},a.createTextNode=function(e,t){return(t?t.ownerDocument:document).createTextNode(e)},a.createFragment=function(e){return(e?e.ownerDocument:document).createDocumentFragment()},a.hasCssClass=function(e,t){return-1!==(e.className+"").split(/\s+/g).indexOf(t)},a.addCssClass=function(e,t){a.hasCssClass(e,t)||(e.className+=" "+t)},a.removeCssClass=function(e,t){for(var n=e.className.split(/\s+/g);;){var i=n.indexOf(t);if(-1==i)break;n.splice(i,1)}e.className=n.join(" ")},a.toggleCssClass=function(e,t){for(var n=e.className.split(/\s+/g),i=!0;;){var o=n.indexOf(t);if(-1==o)break;i=!1,n.splice(o,1)}return i&&n.push(t),e.className=n.join(" "),i},a.setCssClass=function(e,t,n){n?a.addCssClass(e,t):a.removeCssClass(e,t)},a.hasCssString=function(e,t){var n,i=0;if(n=(t=t||document).querySelectorAll("style"))for(;i<n.length;)if(n[i++].id===e)return!0},a.importCssString=function(e,t,n){var i=n;n&&n.getRootNode&&(i=n.getRootNode())&&i!=n||(i=document);var o=i.ownerDocument||i;if(t&&a.hasCssString(t,i))return null;t&&(e+="\n/*# sourceURL=ace/css/"+t+" */");var r=a.createElement("style");r.appendChild(o.createTextNode(e)),t&&(r.id=t),i==o&&(i=a.getDocumentHead(o)),i.insertBefore(r,i.firstChild)},a.importCssStylsheet=function(e,t){a.buildDom(["link",{rel:"stylesheet",href:e}],a.getDocumentHead(t))},a.scrollbarWidth=function(e){var t=a.createElement("ace_inner");t.style.width="100%",t.style.minWidth="0px",t.style.height="200px",t.style.display="block";var n=a.createElement("ace_outer"),i=n.style;i.position="absolute",i.left="-10000px",i.overflow="hidden",i.width="200px",i.minWidth="0px",i.height="150px",i.display="block",n.appendChild(t);var o=e.documentElement;o.appendChild(n);var r=t.offsetWidth;i.overflow="scroll";var s=t.offsetWidth;return r==s&&(s=n.clientWidth),o.removeChild(n),r-s},"undefined"==typeof document&&(a.importCssString=function(){}),a.computedStyle=function(e){return window.getComputedStyle(e,"")||{}},a.setStyle=function(e,t,n){e[t]!==n&&(e[t]=n)},a.HAS_CSS_ANIMATION=!1,a.HAS_CSS_TRANSFORMS=!1,a.HI_DPI=!t.isWin||"undefined"!=typeof window&&1.5<=window.devicePixelRatio,"undefined"!=typeof document){var i=document.createElement("div");a.HI_DPI&&i.style.transform!==undefined&&(a.HAS_CSS_TRANSFORMS=!0),!t.isEdge&&"undefined"!=typeof i.style.animationName&&(a.HAS_CSS_ANIMATION=!0),i=null}a.HAS_CSS_TRANSFORMS?a.translate=function(e,t,n){e.style.transform="translate("+Math.round(t)+"px, "+Math.round(n)+"px)"}:a.translate=function(e,t,n){e.style.top=Math.round(n)+"px",e.style.left=Math.round(t)+"px"}}),ace.define("ace/lib/oop",["require","exports","module"],function(e,n){"use strict";n.inherits=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})},n.mixin=function(e,t){for(var n in t)e[n]=t[n];return e},n.implement=function(e,t){n.mixin(e,t)}}),ace.define("ace/lib/keys",["require","exports","module","ace/lib/oop"],function(e,t){"use strict";var i=e("./oop"),n=function(){var e,t,n={MODIFIER_KEYS:{16:"Shift",17:"Ctrl",18:"Alt",224:"Meta",91:"MetaLeft",92:"MetaRight",93:"ContextMenu"},KEY_MODS:{ctrl:1,alt:2,option:2,shift:4,"super":8,meta:8,command:8,cmd:8},FUNCTION_KEYS:{8:"Backspace",9:"Tab",13:"Return",19:"Pause",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"Print",45:"Insert",46:"Delete",96:"Numpad0",97:"Numpad1",98:"Numpad2",99:"Numpad3",100:"Numpad4",101:"Numpad5",102:"Numpad6",103:"Numpad7",104:"Numpad8",105:"Numpad9","-13":"NumpadEnter",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"Numlock",145:"Scrolllock"},PRINTABLE_KEYS:{32:" ",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",59:";",61:"=",65:"a",66:"b",67:"c",68:"d",69:"e",70:"f",71:"g",72:"h",73:"i",74:"j",75:"k",76:"l",77:"m",78:"n",79:"o",80:"p",81:"q",82:"r",83:"s",84:"t",85:"u",86:"v",87:"w",88:"x",89:"y",90:"z",107:"+",109:"-",110:".",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",111:"/",106:"*"}};for(t in n.FUNCTION_KEYS)e=n.FUNCTION_KEYS[t].toLowerCase(),n[e]=parseInt(t,10);for(t in n.PRINTABLE_KEYS)e=n.PRINTABLE_KEYS[t].toLowerCase(),n[e]=parseInt(t,10);return i.mixin(n,n.MODIFIER_KEYS),i.mixin(n,n.PRINTABLE_KEYS),i.mixin(n,n.FUNCTION_KEYS),n.enter=n["return"],n.escape=n.esc,n.del=n["delete"],n[173]="-",function(){for(var e=["cmd","ctrl","alt","shift"],t=Math.pow(2,e.length);t--;)n.KEY_MODS[t]=e.filter(function(e){return t&n.KEY_MODS[e]}).join("-")+"-"}(),n.KEY_MODS[0]="",n.KEY_MODS[-1]="input-",n}();i.mixin(t,n),t.keyCodeToString=function(e){var t=n[e];return"string"!=typeof t&&(t=String.fromCharCode(e)),t.toLowerCase()}}),ace.define("ace/lib/event",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(e,u){"use strict";function r(e,t,n){var i=h(t);if(!d.isMac&&l){if(t.getModifierState&&(t.getModifierState("OS")||t.getModifierState("Win"))&&(i|=8),l.altGr){if(3==(3&i))return;l.altGr=0}if(18===n||17===n){var o="location"in t?t.location:t.keyLocation;if(17===n&&1===o)1==l[n]&&(c=t.timeStamp);else if(18===n&&3===i&&2===o){t.timeStamp-c<50&&(l.altGr=!0)}}}if((n in a.MODIFIER_KEYS&&(n=-1),!i&&13===n)&&(3===(o="location"in t?t.location:t.keyLocation)&&(e(t,i,-n),t.defaultPrevented)))return;if(d.isChromeOS&&8&i){if(e(t,i,n),t.defaultPrevented)return;i&=-9}return!!(i||n in a.FUNCTION_KEYS||n in a.PRINTABLE_KEYS)&&e(t,i,n)}function s(){l=Object.create(null)}var a=e("./keys"),d=e("./useragent"),l=null,c=0;u.addListener=function(e,t,n){if(e.addEventListener)return e.addEventListener(t,n,!1);if(e.attachEvent){var i=function(){n.call(e,window.event)};n._wrapper=i,e.attachEvent("on"+t,i)}},u.removeListener=function(e,t,n){if(e.removeEventListener)return e.removeEventListener(t,n,!1);e.detachEvent&&e.detachEvent("on"+t,n._wrapper||n)},u.stopEvent=function(e){return u.stopPropagation(e),u.preventDefault(e),!1},u.stopPropagation=function(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0},u.preventDefault=function(e){e.preventDefault?e.preventDefault():e.returnValue=!1},u.getButton=function(e){return"dblclick"==e.type?0:"contextmenu"==e.type||d.isMac&&e.ctrlKey&&!e.altKey&&!e.shiftKey?2:e.preventDefault?e.button:{1:0,2:2,4:1}[e.button]},u.capture=function(e,t,n){function i(e){t&&t(e),n&&n(e),u.removeListener(document,"mousemove",t,!0),u.removeListener(document,"mouseup",i,!0),u.removeListener(document,"dragstart",i,!0)}return u.addListener(document,"mousemove",t,!0),u.addListener(document,"mouseup",i,!0),u.addListener(document,"dragstart",i,!0),i},u.addMouseWheelListener=function(e,n){"onmousewheel"in e?u.addListener(e,"mousewheel",function(e){var t=8;e.wheelDeltaX!==undefined?(e.wheelX=-e.wheelDeltaX/t,e.wheelY=-e.wheelDeltaY/t):(e.wheelX=0,e.wheelY=-e.wheelDelta/t),n(e)}):"onwheel"in e?u.addListener(e,"wheel",function(e){var t=.35;switch(e.deltaMode){case e.DOM_DELTA_PIXEL:e.wheelX=e.deltaX*t||0,e.wheelY=e.deltaY*t||0;break;case e.DOM_DELTA_LINE:case e.DOM_DELTA_PAGE:e.wheelX=5*(e.deltaX||0),e.wheelY=5*(e.deltaY||0)}n(e)}):u.addListener(e,"DOMMouseScroll",function(e){e.axis&&e.axis==e.HORIZONTAL_AXIS?(e.wheelX=5*(e.detail||0),e.wheelY=0):(e.wheelX=0,e.wheelY=5*(e.detail||0)),n(e)})},u.addMultiMouseDownListener=function(e,n,i,o){function t(e){if(0!==u.getButton(e)?c=0:1<e.detail?4<++c&&(c=1):c=1,d.isIE){var t=5<Math.abs(e.clientX-s)||5<Math.abs(e.clientY-a);l&&!t||(c=1),l&&clearTimeout(l),l=setTimeout(function(){l=null},n[c-1]||600),1==c&&(s=e.clientX,a=e.clientY)}if(e._clicks=c,i[o]("mousedown",e),4<c)c=0;else if(1<c)return i[o](h[c],e)}function r(e){c=2,l&&clearTimeout(l),l=setTimeout(function(){l=null},n[c-1]||600),i[o]("mousedown",e),i[o](h[c],e)}var s,a,l,c=0,h={2:"dblclick",3:"tripleclick",4:"quadclick"};Array.isArray(e)||(e=[e]),e.forEach(function(e){u.addListener(e,"mousedown",t),d.isOldIE&&u.addListener(e,"dblclick",r)})};var h=!d.isMac||!d.isOpera||"KeyboardEvent"in window?function(e){return 0|(e.ctrlKey?1:0)|(e.altKey?2:0)|(e.shiftKey?4:0)|(e.metaKey?8:0)}:function(e){return 0|(e.metaKey?1:0)|(e.altKey?2:0)|(e.shiftKey?4:0)|(e.ctrlKey?8:0)};if(u.getModifierString=function(e){return a.KEY_MODS[h(e)]},u.addCommandKeyListener=function(e,n){var t=u.addListener;if(d.isOldGecko||d.isOpera&&!("KeyboardEvent"in window)){var i=null;t(e,"keydown",function(e){i=e.keyCode}),t(e,"keypress",function(e){return r(n,e,i)})}else{var o=null;t(e,"keydown",function(e){l[e.keyCode]=(l[e.keyCode]||0)+1;var t=r(n,e,e.keyCode);return o=e.defaultPrevented,t}),t(e,"keypress",function(e){o&&(e.ctrlKey||e.altKey||e.shiftKey||e.metaKey)&&(u.stopEvent(e),o=null)}),t(e,"keyup",function(e){l[e.keyCode]=null}),l||(s(),t(window,"focus",s))}},"object"==typeof window&&window.postMessage&&!d.isOldIE){var g=1;u.nextTick=function(t,n){n=n||window;var i="zero-timeout-message-"+g++,o=function(e){e.data==i&&(u.stopPropagation(e),u.removeListener(n,"message",o),t())};u.addListener(n,"message",o),n.postMessage(i,"*")}}u.$idleBlocked=!1,u.onIdle=function(e,t){return setTimeout(function n(){u.$idleBlocked?setTimeout(n,100):e()},t)},u.$idleBlockId=null,u.blockIdle=function(e){u.$idleBlockId&&clearTimeout(u.$idleBlockId),u.$idleBlocked=!0,u.$idleBlockId=setTimeout(function(){u.$idleBlocked=!1},e||100)},u.nextFrame="object"==typeof window&&(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame),u.nextFrame?u.nextFrame=u.nextFrame.bind(window):u.nextFrame=function(e){setTimeout(e,17)}}),ace.define("ace/range",["require","exports","module"],function(e,t){"use strict";var n=function(e,t){return e.row-t.row||e.column-t.column},r=function(e,t,n,i){this.start={row:e,column:t},this.end={row:n,column:i}};(function(){this.isEqual=function(e){return this.start.row===e.start.row&&this.end.row===e.end.row&&this.start.column===e.start.column&&this.end.column===e.end.column},this.toString=function(){return"Range: ["+this.start.row+"/"+this.start.column+"] -> ["+this.end.row+"/"+this.end.column+"]"},this.contains=function(e,t){return 0==this.compare(e,t)},this.compareRange=function(e){var t,n=e.end,i=e.start;return 1==(t=this.compare(n.row,n.column))?1==(t=this.compare(i.row,i.column))?2:0==t?1:0:-1==t?-2:-1==(t=this.compare(i.row,i.column))?-1:1==t?42:0},this.comparePoint=function(e){return this.compare(e.row,e.column)},this.containsRange=function(e){return 0==this.comparePoint(e.start)&&0==this.comparePoint(e.end)},this.intersects=function(e){var t=this.compareRange(e);return-1==t||0==t||1==t},this.isEnd=function(e,t){return this.end.row==e&&this.end.column==t},this.isStart=function(e,t){return this.start.row==e&&this.start.column==t},this.setStart=function(e,t){"object"==typeof e?(this.start.column=e.column,this.start.row=e.row):(this.start.row=e,this.start.column=t)},this.setEnd=function(e,t){"object"==typeof e?(this.end.column=e.column,this.end.row=e.row):(this.end.row=e,this.end.column=t)},this.inside=function(e,t){return 0==this.compare(e,t)&&(!this.isEnd(e,t)&&!this.isStart(e,t))},this.insideStart=function(e,t){return 0==this.compare(e,t)&&!this.isEnd(e,t)},this.insideEnd=function(e,t){return 0==this.compare(e,t)&&!this.isStart(e,t)},this.compare=function(e,t){return this.isMultiLine()||e!==this.start.row?e<this.start.row?-1:e>this.end.row?1:this.start.row===e?t>=this.start.column?0:-1:this.end.row===e?t<=this.end.column?0:1:0:t<this.start.column?-1:t>this.end.column?1:0},this.compareStart=function(e,t){return this.start.row==e&&this.start.column==t?-1:this.compare(e,t)},this.compareEnd=function(e,t){return this.end.row==e&&this.end.column==t?1:this.compare(e,t)},this.compareInside=function(e,t){return this.end.row==e&&this.end.column==t?1:this.start.row==e&&this.start.column==t?-1:this.compare(e,t)},this.clipRows=function(e,t){if(this.end.row>t)var n={row:t+1,column:0};else if(this.end.row<e)n={row:e,column:0};if(this.start.row>t)var i={row:t+1,column:0};else if(this.start.row<e)i={row:e,column:0};return r.fromPoints(i||this.start,n||this.end)},this.extend=function(e,t){var n=this.compare(e,t);if(0==n)return this;if(-1==n)var i={row:e,column:t};else var o={row:e,column:t};return r.fromPoints(i||this.start,o||this.end)},this.isEmpty=function(){return this.start.row===this.end.row&&this.start.column===this.end.column},this.isMultiLine=function(){return this.start.row!==this.end.row},this.clone=function(){return r.fromPoints(this.start,this.end)},this.collapseRows=function(){return 0==this.end.column?new r(this.start.row,0,Math.max(this.start.row,this.end.row-1),0):new r(this.start.row,0,this.end.row,0)},this.toScreenRange=function(e){var t=e.documentToScreenPosition(this.start),n=e.documentToScreenPosition(this.end);return new r(t.row,t.column,n.row,n.column)},this.moveBy=function(e,t){this.start.row+=e,this.start.column+=t,this.end.row+=e,this.end.column+=t}}).call(r.prototype),r.fromPoints=function(e,t){return new r(e.row,e.column,t.row,t.column)},r.comparePoints=n,r.comparePoints=function(e,t){return e.row-t.row||e.column-t.column},t.Range=r}),ace.define("ace/lib/lang",["require","exports","module"],function(e,t){"use strict";t.last=function(e){return e[e.length-1]},t.stringReverse=function(e){return e.split("").reverse().join("")},t.stringRepeat=function(e,t){for(var n="";0<t;)1&t&&(n+=e),(t>>=1)&&(e+=e);return n};var n=/^\s\s*/,i=/\s\s*$/;t.stringTrimLeft=function(e){return e.replace(n,"")},t.stringTrimRight=function(e){return e.replace(i,"")},t.copyObject=function(e){var t={};for(var n in e)t[n]=e[n];return t},t.copyArray=function(e){for(var t=[],n=0,i=e.length;n<i;n++)e[n]&&"object"==typeof e[n]?t[n]=this.copyObject(e[n]):t[n]=e[n];return t},t.deepCopy=function o(e){if("object"!=typeof e||!e)return e;var t;if(Array.isArray(e)){t=[];for(var n=0;n<e.length;n++)t[n]=o(e[n]);return t}if("[object Object]"!==Object.prototype.toString.call(e))return e;for(var n in t={},e)t[n]=o(e[n]);return t},t.arrayToMap=function(e){for(var t={},n=0;n<e.length;n++)t[e[n]]=1;return t},t.createMap=function(e){var t=Object.create(null);for(var n in e)t[n]=e[n];return t},t.arrayRemove=function(e,t){for(var n=0;n<=e.length;n++)t===e[n]&&e.splice(n,1)},t.escapeRegExp=function(e){return e.replace(/([.*+?^${}()|[\]\/\\])/g,"\\$1")},t.escapeHTML=function(e){return(""+e).replace(/&/g,"&#38;").replace(/"/g,"&#34;").replace(/'/g,"&#39;").replace(/</g,"&#60;")},t.getMatchOffsets=function(e,t){var n=[];return e.replace(t,function(e){n.push({offset:arguments[arguments.length-2],length:e.length})}),n},t.deferredCall=function(e){var t=null,n=function(){t=null,e()},i=function(e){return i.cancel(),t=setTimeout(n,e||0),i};return(i.schedule=i).call=function(){return this.cancel(),e(),i},i.cancel=function(){return clearTimeout(t),t=null,i},i.isPending=function(){return t},i},t.delayedCall=function(e,t){var n=null,i=function(){n=null,e()},o=function(e){null==n&&(n=setTimeout(i,e||t))};return o.delay=function(e){n&&clearTimeout(n),n=setTimeout(i,e||t)},(o.schedule=o).call=function(){this.cancel(),e()},o.cancel=function(){n&&clearTimeout(n),n=null},o.isPending=function(){return n},o}}),ace.define("ace/clipboard",["require","exports","module"],function(e,t,n){"use strict";var i;n.exports={lineMode:!1,pasteCancelled:function(){return!!(i&&i>Date.now()-50)||(i=!1)},cancel:function(){i=Date.now()}}}),ace.define("ace/keyboard/textinput",["require","exports","module","ace/lib/event","ace/lib/useragent","ace/lib/dom","ace/lib/lang","ace/clipboard","ace/lib/keys"],function(e,t){"use strict";var H=e("../lib/event"),N=e("../lib/useragent"),P=e("../lib/dom"),D=e("../lib/lang"),W=e("../clipboard"),z=N.isChrome<18,K=N.isIE,V=63<N.isChrome,U=400,G=e("../lib/keys"),j=G.KEY_MODS,q=N.isIOS,X=q?/\s/:/\n/,n=function(e,u){function t(){o=!0,d.blur(),d.focus(),o=!1}function n(e){27==e.keyCode&&d.value.length<d.selectionStart&&(h||(v=d.value),b=w=-1,x()),O()}function l(){clearTimeout(I),I=setTimeout(function(){f&&(d.style.cssText=f,f=""),u.renderer.$isMousePressed=!1,u.renderer.$keepTextAreaAtCursor&&u.renderer.$moveTextAreaToCursor()},0)}function i(e,r,s){var t=null,a=!1;s.addEventListener("keydown",function(){t&&clearTimeout(t),a=!0},!0),s.addEventListener("keyup",function(){t=setTimeout(function(){a=!1},100)},!0);var n=function(){if(document.activeElement===s&&!(a||h||r.$mouseHandler.isMousePressed||c)){var e=s.selectionStart,t=s.selectionEnd,n=null,i=0;if(0==e?n=G.up:1==e?n=G.home:w<t&&"\n"==v[t]?n=G.end:e<b&&" "==v[e-1]?(n=G.left,i=j.option):e<b||e==b&&w!=b&&e==t?n=G.left:w<t&&2<v.slice(0,t).split("\n").length?n=G.down:w<t&&" "==v[t-1]?(n=G.right,i=j.option):(w<t||t==w&&w!=b&&e==t)&&(n=G.right),e!==t&&(i|=j.shift),n){if(!r.onCommandKey({},i,n)&&r.commands){n=G.keyCodeToString(n);var o=r.commands.findKeyCommand(i,n);o&&r.execCommand(o)}b=e,w=t,x("")}}};document.addEventListener("selectionchange",n),r.on("destroy",function(){document.removeEventListener("selectionchange",n)})}var d=P.createElement("textarea");d.className="ace_text-input",d.setAttribute("wrap","off"),d.setAttribute("autocorrect","off"),d.setAttribute("autocapitalize","off"),d.setAttribute("spellcheck",!1),d.style.opacity="0",e.insertBefore(d,e.firstChild);var c=!1,g=!1,h=!1,p=!1,f="";N.isMobile||(d.style.fontSize="1px");var m=!1,o=!1,v="",b=0,w=0;try{var y=document.activeElement===d}catch(B){}H.addListener(d,"blur",function(e){o||(u.onBlur(e),y=!1)}),H.addListener(d,"focus",function(e){if(!o){if(y=!0,N.isEdge)try{if(!document.hasFocus())return}catch(e){}u.onFocus(e),N.isEdge?setTimeout(x):x()}}),this.$focusScroll=!1,this.focus=function(){if(f||V||"browser"==this.$focusScroll)return d.focus({preventScroll:!0});var e=d.style.top;d.style.position="fixed",d.style.top="0px";try{var t=0!=d.getBoundingClientRect().top}catch(H){return}var n=[];if(t)for(var i=d.parentElement;i&&1==i.nodeType;)n.push(i),i.setAttribute("ace_nocontext",!0),i=!i.parentElement&&i.getRootNode?i.getRootNode().host:i.parentElement;d.focus({preventScroll:!0}),t&&n.forEach(function(e){e.removeAttribute("ace_nocontext")}),setTimeout(function(){d.style.position="","0px"==d.style.top&&(d.style.top=e)},0)},this.blur=function(){d.blur()},this.isFocused=function(){return y},u.on("beforeEndOperation",function(){u.curOp&&"insertstring"==u.curOp.command.name||(h&&(v=d.value="",E()),x())});var x=q?function(e){if(y&&(!c||e)&&!p){e||(e="");var t="\n ab"+e+"cde fg\n";t!=d.value&&(d.value=v=t);var n=4,i=4+(e.length||(u.selection.isEmpty()?0:1));(b!=n||w!=i)&&d.setSelectionRange(n,i),b=n,w=i}}:function(){if(!h&&!p&&(y||k)){h=!0;var e=u.selection,t=e.getRange(),n=e.cursor.row,i=t.start.column,o=t.end.column,r=u.session.getLine(n);if(t.start.row!=n){var s=u.session.getLine(n-1);i=t.start.row<n-1?0:i,
2
- o+=s.length+1,r=s+"\n"+r}else if(t.end.row!=n){var a=u.session.getLine(n+1);o=t.end.row>n+1?a.length:o,o+=r.length+1,r=r+"\n"+a}r.length>U&&(i<U&&o<U?r=r.slice(0,U):(r="\n",i=0,o=1));var l=r+"\n\n";if(l!=v&&(d.value=v=l,b=w=l.length),k&&(b=d.selectionStart,w=d.selectionEnd),w!=o||b!=i||d.selectionEnd!=w)try{d.setSelectionRange(i,o),b=i,w=o}catch(G){}h=!1}};y&&u.onFocus();var r=function(e){return 0===e.selectionStart&&e.selectionEnd>=v.length&&e.value===v&&v&&e.selectionEnd!==w},s=function(){h||(c?c=!1:r(d)&&(u.selectAll(),x()))},a=null;this.setInputHandler=function(e){a=e};var k=!(this.getInputHandler=function(){return a}),C=function(e,t){if(k&&(k=!1),g)return x(),e&&u.onPaste(e),g=!1,"";for(var n=d.selectionStart,i=d.selectionEnd,o=b,r=v.length-w,s=e,a=e.length-n,l=e.length-i,c=0;0<o&&v[c]==e[c];)c++,o--;for(s=s.slice(c),c=1;0<r&&v.length-c>b-1&&v[v.length-c]==e[e.length-c];)c++,r--;a-=c-1,l-=c-1;var h=s.length-c+1;return h<0&&(o=-h,h=0),s=s.slice(0,h),t||a!=s.length||o||r||l?(p=!0,s&&!o&&!r&&!a&&!l||m?u.onTextInput(s):u.onTextInput(s,{extendLeft:o,extendRight:r,restoreStart:a,restoreEnd:l}),p=!1,v=e,b=n,w=i,s):""},S=function(e){if(h)return T();if(e&&e.inputType){if("historyUndo"==e.inputType)return u.execCommand("undo");if("historyRedo"==e.inputType)return u.execCommand("redo")}var t=d.value,n=C(t,!0);(t.length>U+100||X.test(n))&&x()},$=function(e,t,n){var i=e.clipboardData||window.clipboardData;if(i&&!z){var o=K||n?"Text":"text/plain";try{return t?!1!==i.setData(o,t):i.getData(o)}catch(e){if(!n)return $(e,t,!0)}}},_=function(e,t){var n=u.getCopyText();if(!n)return H.preventDefault(e);$(e,n)?(q&&(x(n),c=n,setTimeout(function(){c=!1},10)),t?u.onCut():u.onCopy(),H.preventDefault(e)):(c=!0,d.value=n,d.select(),setTimeout(function(){c=!1,x(),t?u.onCut():u.onCopy()}))},A=function(e){_(e,!0)},L=function(e){_(e,!1)},M=function(e){var t=$(e);W.pasteCancelled()||("string"==typeof t?(t&&u.onPaste(t,e),N.isIE&&setTimeout(x),H.preventDefault(e)):(d.value="",g=!0))};H.addCommandKeyListener(d,u.onCommandKey.bind(u)),H.addListener(d,"select",s),H.addListener(d,"input",S),H.addListener(d,"cut",A),H.addListener(d,"copy",L),H.addListener(d,"paste",M),(!("oncut"in d)||!("oncopy"in d)||!("onpaste"in d))&&H.addListener(e,"keydown",function(e){if((!N.isMac||e.metaKey)&&e.ctrlKey)switch(e.keyCode){case 67:L(e);break;case 86:M(e);break;case 88:A(e)}});var R=function(){if(!h&&u.onCompositionStart&&!u.$readOnly&&(h={},!m)){setTimeout(T,0),u.on("mousedown",t);var e=u.getSelectionRange();e.end.row=e.start.row,e.end.column=e.start.column,h.markerRange=e,h.selectionStart=b,u.onCompositionStart(h),h.useTextareaForIME?(d.value="",v="",w=b=0):(d.msGetInputContext&&(h.context=d.msGetInputContext()),d.getInputContext&&(h.context=d.getInputContext()))}},T=function(){if(h&&u.onCompositionUpdate&&!u.$readOnly){if(m)return t();if(h.useTextareaForIME)u.onCompositionUpdate(d.value);else{var e=d.value;C(e),h.markerRange&&(h.context&&(h.markerRange.start.column=h.selectionStart=h.context.compositionStartOffset),h.markerRange.end.column=h.markerRange.start.column+w-h.selectionStart)}}},E=function(e){u.onCompositionEnd&&!u.$readOnly&&(h=!1,u.onCompositionEnd(),u.off("mousedown",t),e&&S())},O=D.delayedCall(T,50).schedule.bind(null,null);H.addListener(d,"compositionstart",R),H.addListener(d,"compositionupdate",T),H.addListener(d,"keyup",n),H.addListener(d,"keydown",O),H.addListener(d,"compositionend",E),this.getElement=function(){return d},this.setCommandMode=function(e){m=e,d.readOnly=!1},this.setReadOnly=function(e){m||(d.readOnly=e)},this.setCopyWithEmptySelection=function(){},this.onContextMenu=function(e){k=!0,x(),u._emit("nativecontextmenu",{target:u,domEvent:e}),this.moveToMouse(e,!0)},this.moveToMouse=function(e,t){f||(f=d.style.cssText),d.style.cssText=(t?"z-index:100000;":"")+(N.isIE?"opacity:0.1;":"")+"text-indent: -"+(b+w)*u.renderer.characterWidth*.5+"px;";var n=u.container.getBoundingClientRect(),i=P.computedStyle(u.container),o=n.top+(parseInt(i.borderTopWidth)||0),r=n.left+(parseInt(n.borderLeftWidth)||0),s=n.bottom-o-d.clientHeight-2,a=function(e){P.translate(d,e.clientX-r-2,Math.min(e.clientY-o-2,s))};a(e),"mousedown"==e.type&&(u.renderer.$isMousePressed=!0,clearTimeout(I),N.isWin&&H.capture(u.container,a,l))},this.onContextMenuClose=l;var I,F=function(e){u.textInput.onContextMenu(e),l()};H.addListener(d,"mouseup",F),H.addListener(d,"mousedown",function(e){e.preventDefault(),l()}),H.addListener(u.renderer.scroller,"contextmenu",F),H.addListener(d,"contextmenu",F),q&&i(e,u,d)};t.TextInput=n}),ace.define("ace/mouse/default_handlers",["require","exports","module","ace/lib/useragent"],function(e,t){"use strict";function n(t){t.$clickSelection=null;var e=t.editor;e.setDefaultHandler("mousedown",this.onMouseDown.bind(t)),e.setDefaultHandler("dblclick",this.onDoubleClick.bind(t)),e.setDefaultHandler("tripleclick",this.onTripleClick.bind(t)),e.setDefaultHandler("quadclick",this.onQuadClick.bind(t)),e.setDefaultHandler("mousewheel",this.onMouseWheel.bind(t)),["select","startSelect","selectEnd","selectAllEnd","selectByWordsEnd","selectByLinesEnd","dragWait","dragWaitEnd","focusWait"].forEach(function(e){t[e]=this[e]},this),t.selectByLines=this.extendSelectionBy.bind(t,"getLineRange"),t.selectByWords=this.extendSelectionBy.bind(t,"getWordRange")}function i(e,t,n,i){return Math.sqrt(Math.pow(n-e,2)+Math.pow(i-t,2))}function l(e,t){if(e.start.row==e.end.row)var n=2*t.column-e.start.column-e.end.column;else if(e.start.row!=e.end.row-1||e.start.column||e.end.column)n=2*t.row-e.start.row-e.end.row;else var n=t.column-4;return n<0?{cursor:e.start,anchor:e.end}:{cursor:e.end,anchor:e.start}}var r=e("../lib/useragent"),o=0,c=550;(function(){this.onMouseDown=function(e){var t=e.inSelection(),n=e.getDocumentPosition();this.mousedownEvent=e;var i=this.editor,o=e.getButton();return 0!==o?((i.getSelectionRange().isEmpty()||1==o)&&i.selection.moveToPosition(n),void(2==o&&(i.textInput.onContextMenu(e.domEvent),r.isMozilla||e.preventDefault()))):(this.mousedownEvent.time=Date.now(),!t||i.isFocused()||(i.focus(),!this.$focusTimeout||this.$clickSelection||i.inMultiSelectMode)?(this.captureMouse(e),this.startSelect(n,1<e.domEvent._clicks),e.preventDefault()):(this.setState("focusWait"),void this.captureMouse(e)))},this.startSelect=function(e,t){e=e||this.editor.renderer.screenToTextCoordinates(this.x,this.y);var n=this.editor;this.mousedownEvent&&(this.mousedownEvent.getShiftKey()?n.selection.selectToPosition(e):t||n.selection.moveToPosition(e),t||this.select(),n.renderer.scroller.setCapture&&n.renderer.scroller.setCapture(),n.setStyle("ace_selecting"),this.setState("select"))},this.select=function(){var e,t=this.editor,n=t.renderer.screenToTextCoordinates(this.x,this.y);if(this.$clickSelection){var i=this.$clickSelection.comparePoint(n);if(-1==i)e=this.$clickSelection.end;else if(1==i)e=this.$clickSelection.start;else{var o=l(this.$clickSelection,n);n=o.cursor,e=o.anchor}t.selection.setSelectionAnchor(e.row,e.column)}t.selection.selectToPosition(n),t.renderer.scrollCursorIntoView()},this.extendSelectionBy=function(e){var t,n=this.editor,i=n.renderer.screenToTextCoordinates(this.x,this.y),o=n.selection[e](i.row,i.column);if(this.$clickSelection){var r=this.$clickSelection.comparePoint(o.start),s=this.$clickSelection.comparePoint(o.end);if(-1==r&&s<=0)t=this.$clickSelection.end,o.end.row==i.row&&o.end.column==i.column||(i=o.start);else if(1==s&&0<=r)t=this.$clickSelection.start,o.start.row==i.row&&o.start.column==i.column||(i=o.end);else if(-1==r&&1==s)i=o.end,t=o.start;else{var a=l(this.$clickSelection,i);i=a.cursor,t=a.anchor}n.selection.setSelectionAnchor(t.row,t.column)}n.selection.selectToPosition(i),n.renderer.scrollCursorIntoView()},this.selectEnd=this.selectAllEnd=this.selectByWordsEnd=this.selectByLinesEnd=function(){this.$clickSelection=null,this.editor.unsetStyle("ace_selecting"),this.editor.renderer.scroller.releaseCapture&&this.editor.renderer.scroller.releaseCapture()},this.focusWait=function(){var e=i(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y),t=Date.now();(o<e||t-this.mousedownEvent.time>this.$focusTimeout)&&this.startSelect(this.mousedownEvent.getDocumentPosition())},this.onDoubleClick=function(e){var t=e.getDocumentPosition(),n=this.editor,i=n.session.getBracketRange(t);i?(i.isEmpty()&&(i.start.column--,i.end.column++),this.setState("select")):(i=n.selection.getWordRange(t.row,t.column),this.setState("selectByWords")),this.$clickSelection=i,this.select()},this.onTripleClick=function(e){var t=e.getDocumentPosition(),n=this.editor;this.setState("selectByLines");var i=n.getSelectionRange();i.isMultiLine()&&i.contains(t.row,t.column)?(this.$clickSelection=n.selection.getLineRange(i.start.row),this.$clickSelection.end=n.selection.getLineRange(i.end.row).end):this.$clickSelection=n.selection.getLineRange(t.row),this.select()},this.onQuadClick=function(){var e=this.editor;e.selectAll(),this.$clickSelection=e.getSelectionRange(),this.setState("selectAll")},this.onMouseWheel=function(e){if(!e.getAccelKey()){e.getShiftKey()&&e.wheelY&&!e.wheelX&&(e.wheelX=e.wheelY,e.wheelY=0);var t=this.editor;this.$lastScroll||(this.$lastScroll={t:0,vx:0,vy:0,allowed:0});var n=this.$lastScroll,i=e.domEvent.timeStamp,o=i-n.t,r=o?e.wheelX/o:n.vx,s=o?e.wheelY/o:n.vy;o<c&&(r=(r+n.vx)/2,s=(s+n.vy)/2);var a=Math.abs(r/s),l=!1;if(1<=a&&t.renderer.isScrollableBy(e.wheelX*e.speed,0)&&(l=!0),a<=1&&t.renderer.isScrollableBy(0,e.wheelY*e.speed)&&(l=!0),l)n.allowed=i;else if(i-n.allowed<c){Math.abs(r)<=1.5*Math.abs(n.vx)&&Math.abs(s)<=1.5*Math.abs(n.vy)?(l=!0,n.allowed=i):n.allowed=0}return n.t=i,n.vx=r,n.vy=s,l?(t.renderer.scrollBy(e.wheelX*e.speed,e.wheelY*e.speed),e.stop()):void 0}}}).call(n.prototype),t.DefaultHandlers=n}),ace.define("ace/tooltip",["require","exports","module","ace/lib/oop","ace/lib/dom"],function(e,t){"use strict";function n(e){this.isOpen=!1,this.$element=null,this.$parentNode=e}e("./lib/oop");var i=e("./lib/dom");(function(){this.$init=function(){return this.$element=i.createElement("div"),this.$element.className="ace_tooltip",this.$element.style.display="none",this.$parentNode.appendChild(this.$element),this.$element},this.getElement=function(){return this.$element||this.$init()},this.setText=function(e){this.getElement().textContent=e},this.setHtml=function(e){this.getElement().innerHTML=e},this.setPosition=function(e,t){this.getElement().style.left=e+"px",this.getElement().style.top=t+"px"},this.setClassName=function(e){i.addCssClass(this.getElement(),e)},this.show=function(e,t,n){null!=e&&this.setText(e),null!=t&&null!=n&&this.setPosition(t,n),this.isOpen||(this.getElement().style.display="block",this.isOpen=!0)},this.hide=function(){this.isOpen&&(this.getElement().style.display="none",this.isOpen=!1)},this.getHeight=function(){return this.getElement().offsetHeight},this.getWidth=function(){return this.getElement().offsetWidth},this.destroy=function(){this.isOpen=!1,this.$element&&this.$element.parentNode&&this.$element.parentNode.removeChild(this.$element)}}).call(n.prototype),t.Tooltip=n}),ace.define("ace/mouse/default_gutter_handler",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event","ace/tooltip"],function(e,t){"use strict";function n(s){function n(){var e=c.getDocumentPosition().row,t=d.$annotations[e];if(!t)return a();if(e==u.session.getLength()){var n=u.renderer.pixelToScreenCoordinates(0,c.y).row,i=c.$pos;if(n>u.session.documentToScreenRow(i.row,i.column))return a()}if(h!=t)if(h=t.text.join("<br/>"),g.setHtml(h),g.show(),u._signal("showGutterTooltip",g),u.on("mousewheel",a),s.$tooltipFollowsMouse)l(c);else{var o=c.domEvent.target.getBoundingClientRect(),r=g.getElement().style;r.left=o.right+"px",r.top=o.bottom+"px"}}function a(){i&&(i=clearTimeout(i)),h&&(g.hide(),h=null,u._signal("hideGutterTooltip",g),u.removeEventListener("mousewheel",a))}function l(e){g.setPosition(e.x,e.y)}var i,c,h,u=s.editor,d=u.renderer.$gutterLayer,g=new o(u.container);s.editor.setDefaultHandler("guttermousedown",function(e){if(u.isFocused()&&0==e.getButton()&&"foldWidgets"!=d.getRegion(e)){var t=e.getDocumentPosition().row,n=u.session.selection;if(e.getShiftKey())n.selectTo(t,0);else{if(2==e.domEvent.detail)return u.selectAll(),e.preventDefault();s.$clickSelection=u.selection.getLineRange(t)}return s.setState("selectByLines"),s.captureMouse(e),e.preventDefault()}}),s.editor.setDefaultHandler("guttermousemove",function(e){var t=e.domEvent.target||e.domEvent.srcElement;if(r.hasCssClass(t,"ace_fold-widget"))return a();h&&s.$tooltipFollowsMouse&&l(e),c=e,i||(i=setTimeout(function(){i=null,c&&!s.isMousePressed?n():a()},50))}),p.addListener(u.renderer.$gutter,"mouseout",function(){c=null,h&&!i&&(i=setTimeout(function(){i=null,a()},50))}),u.on("changeSession",a)}function o(e){s.call(this,e)}var r=e("../lib/dom"),i=e("../lib/oop"),p=e("../lib/event"),s=e("../tooltip").Tooltip;i.inherits(o,s),function(){this.setPosition=function(e,t){var n=window.innerWidth||document.documentElement.clientWidth,i=window.innerHeight||document.documentElement.clientHeight,o=this.getWidth(),r=this.getHeight();n<(e+=15)+o&&(e-=e+o-n),i<(t+=15)+r&&(t-=20+r),s.prototype.setPosition.call(this,e,t)}}.call(o.prototype),t.GutterHandler=n}),ace.define("ace/mouse/mouse_event",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(e,t){"use strict";var n=e("../lib/event"),i=e("../lib/useragent"),o=t.MouseEvent=function(e,t){this.domEvent=e,this.editor=t,this.x=this.clientX=e.clientX,this.y=this.clientY=e.clientY,this.$pos=null,this.$inSelection=null,this.propagationStopped=!1,this.defaultPrevented=!1};(function(){this.stopPropagation=function(){n.stopPropagation(this.domEvent),this.propagationStopped=!0},this.preventDefault=function(){n.preventDefault(this.domEvent),this.defaultPrevented=!0},this.stop=function(){this.stopPropagation(),this.preventDefault()},this.getDocumentPosition=function(){return this.$pos||(this.$pos=this.editor.renderer.screenToTextCoordinates(this.clientX,this.clientY)),this.$pos},this.inSelection=function(){if(null!==this.$inSelection)return this.$inSelection;var e=this.editor.getSelectionRange();if(e.isEmpty())this.$inSelection=!1;else{var t=this.getDocumentPosition();this.$inSelection=e.contains(t.row,t.column)}return this.$inSelection},this.getButton=function(){return n.getButton(this.domEvent)},this.getShiftKey=function(){return this.domEvent.shiftKey},this.getAccelKey=i.isMac?function(){return this.domEvent.metaKey}:function(){return this.domEvent.ctrlKey}}).call(o.prototype)}),ace.define("ace/mouse/dragdrop_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/lib/useragent"],function(e,t){"use strict";function n(t){function n(e,t){var n=Date.now(),i=!t||e.row!=t.row,o=!t||e.column!=t.column;if(!y||i||o)g.moveCursorToPosition(e),y=n,x={x:p,y:f};else{var r=$(x.x,x.y,p,f);T<r?y=null:R<=n-y&&(g.renderer.scrollCursorIntoView(),y=null)}}function i(e,t){var n=Date.now(),i=g.renderer.layerConfig.lineHeight,o=g.renderer.layerConfig.characterWidth,r=g.renderer.scroller.getBoundingClientRect(),s={x:{left:p-r.left,right:r.right-p},y:{top:f-r.top,bottom:r.bottom-f}},a=Math.min(s.x.left,s.x.right),l=Math.min(s.y.top,s.y.bottom),c={row:e.row,column:e.column};a/o<=2&&(c.column+=s.x.left<s.x.right?-3:2),l/i<=1&&(c.row+=s.y.top<s.y.bottom?-1:1);var h=e.row!=c.row,u=e.column!=c.column,d=!t||e.row!=t.row;h||u&&!d?w?M<=n-w&&g.renderer.scrollCursorIntoView(c):w=n:w=null}function e(){var e=m;n(m=g.renderer.screenToTextCoordinates(p,f),e),i(m,e)}function o(){d=g.selection.toOrientedRange(),h=g.session.addMarker(d,"ace_selection",g.getSelectionStyle()),g.clearSelection(),g.isFocused()&&g.renderer.$cursorLayer.setBlinking(!1),clearInterval(u),e(),u=setInterval(e,20),C=0,A.addListener(document,"mousemove",s)}function r(){clearInterval(u),g.session.removeMarker(h),h=null,g.selection.fromOrientedRange(d),g.isFocused()&&!b&&g.$resetCursorStyle(),C=0,y=w=m=d=null,A.removeListener(document,"mousemove",s)}function s(){null==S&&(S=setTimeout(function(){null!=S&&h&&r()},20))}function a(e){var t=e.types;return!t||Array.prototype.some.call(t,function(e){return"text/plain"==e||"Text"==e})}function l(e){var t=["copy","copymove","all","uninitialized"],n=["move","copymove","linkmove","all","uninitialized"],i=L.isMac?e.altKey:e.ctrlKey,o="uninitialized";try{o=e.dataTransfer.effectAllowed.toLowerCase()}catch(e){}var r="none";return i&&0<=t.indexOf(o)?r="copy":0<=n.indexOf(o)?r="move":0<=t.indexOf(o)&&(r="copy"),r}var g=t.editor,c=_.createElement("img");c.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",L.isOpera&&(c.style.cssText="width:1px;height:1px;position:fixed;top:0;left:0;z-index:2147483647;opacity:0;"),["dragWait","dragWaitEnd","startDrag","dragReadyEnd","onMouseDrag"].forEach(function(e){t[e]=this[e]},this),g.addEventListener("mousedown",this.onMouseDown.bind(t));var h,p,f,u,d,m,v,b,w,y,x,k=g.container,C=0;this.onDragStart=function(e){if(this.cancelDrag||!k.draggable){var t=this;return setTimeout(function(){t.startSelect(),t.captureMouse(e)},0),e.preventDefault()}d=g.getSelectionRange();var n=e.dataTransfer;n.effectAllowed=g.getReadOnly()?"copy":"copyMove",L.isOpera&&(g.container.appendChild(c),c.scrollTop=0),n.setDragImage&&n.setDragImage(c,0,0),L.isOpera&&g.container.removeChild(c),n.clearData(),n.setData("Text",g.session.getTextRange()),b=!0,this.setState("drag")},this.onDragEnd=function(e){if(k.draggable=!1,b=!1,this.setState(null),!g.getReadOnly()){var t=e.dataTransfer.dropEffect;!v&&"move"==t&&g.session.remove(g.getSelectionRange()),g.$resetCursorStyle()}this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle("")},this.onDragEnter=function(e){if(!g.getReadOnly()&&a(e.dataTransfer))return p=e.clientX,f=e.clientY,h||o(),C++,e.dataTransfer.dropEffect=v=l(e),A.preventDefault(e)},this.onDragOver=function(e){if(!g.getReadOnly()&&a(e.dataTransfer))return p=e.clientX,f=e.clientY,h||(o(),C++),null!==S&&(S=null),e.dataTransfer.dropEffect=v=l(e),A.preventDefault(e)},this.onDragLeave=function(e){if(--C<=0&&h)return r(),v=null,A.preventDefault(e)},this.onDrop=function(e){if(m){var t=e.dataTransfer;if(b)switch(v){case"move":d=d.contains(m.row,m.column)?{start:m,end:m}:g.moveText(d,m);break;case"copy":d=g.moveText(d,m,!0)}else{var n=t.getData("Text");d={start:m,end:g.session.insert(m,n)},g.focus(),v=null}return r(),A.preventDefault(e)}},A.addListener(k,"dragstart",this.onDragStart.bind(t)),A.addListener(k,"dragend",this.onDragEnd.bind(t)),A.addListener(k,"dragenter",this.onDragEnter.bind(t)),A.addListener(k,"dragover",this.onDragOver.bind(t)),A.addListener(k,"dragleave",this.onDragLeave.bind(t)),A.addListener(k,"drop",this.onDrop.bind(t));var S=null}function $(e,t,n,i){return Math.sqrt(Math.pow(n-e,2)+Math.pow(i-t,2))}var _=e("../lib/dom"),A=e("../lib/event"),L=e("../lib/useragent"),M=200,R=200,T=5;(function(){this.dragWait=function(){Date.now()-this.mousedownEvent.time>this.editor.getDragDelay()&&this.startDrag()},this.dragWaitEnd=function(){this.editor.container.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()),this.selectEnd()},this.dragReadyEnd=function(){this.editor.$resetCursorStyle(),this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle(""),this.dragWaitEnd()},this.startDrag=function(){this.cancelDrag=!1;var e=this.editor;e.container.draggable=!0,e.renderer.$cursorLayer.setBlinking(!1),e.setStyle("ace_dragging");var t=L.isWin?"default":"move";e.renderer.setCursorStyle(t),this.setState("dragReady")},this.onMouseDrag=function(){var e=this.editor.container;L.isIE&&"dragReady"==this.state&&(3<$(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y)&&e.dragDrop());"dragWait"===this.state&&(0<$(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y)&&(e.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition())))},this.onMouseDown=function(e){if(this.$dragEnabled){this.mousedownEvent=e;var t=this.editor,n=e.inSelection(),i=e.getButton();if(1===(e.domEvent.detail||1)&&0===i&&n){if(e.editor.inMultiSelectMode&&(e.getAccelKey()||e.getShiftKey()))return;this.mousedownEvent.time=Date.now();var o=e.domEvent.target||e.domEvent.srcElement;if("unselectable"in o&&(o.unselectable="on"),t.getDragDelay()){if(L.isWebKit)this.cancelDrag=!0,t.container.draggable=!0;this.setState("dragWait")}else this.startDrag();this.captureMouse(e,this.onMouseDrag.bind(this)),e.defaultPrevented=!0}}}}).call(n.prototype),t.DragdropHandler=n}),ace.define("ace/mouse/touch_handler",["require","exports","module","ace/mouse/mouse_event","ace/lib/dom"],function(e,t){"use strict";var E=e("./mouse_event").MouseEvent,a=e("../lib/dom");t.addTouchListeners=function(e,v){function i(){var n=window.navigator&&window.navigator.clipboard,i=!1,o=function(){var e=v.getCopyText(),t=v.session.getUndoManager().hasUndo();s.replaceChild(a.buildDom(i?["span",!e&&["span",{"class":"ace_mobile-button",action:"selectall"},"Select All"],e&&["span",{"class":"ace_mobile-button",action:"copy"},"Copy"],e&&["span",{"class":"ace_mobile-button",action:"cut"},"Cut"],n&&["span",{"class":"ace_mobile-button",action:"paste"},"Paste"],t&&["span",{"class":"ace_mobile-button",action:"undo"},"Undo"],["span",{"class":"ace_mobile-button",action:"find"},"Find"],["span",{"class":"ace_mobile-button",action:"openCommandPallete"},"Pallete"]]:["span"]),s.firstChild)},t=function(e){var t=e.target.getAttribute("action");if("more"==t||!i)return i=!i,o();"paste"==t?n.readText().then(function(e){v.execCommand(t,e)}):t&&("cut"!=t&&"copy"!=t||(n?n.writeText(v.getCopyText()):document.execCommand("copy")),v.execCommand(t)),s.firstChild.style.display="none",i=!1,"openCommandPallete"!=t&&v.focus()};s=a.buildDom(["div",{"class":"ace_mobile-menu",ontouchstart:function(e){A="menu",e.stopPropagation(),e.preventDefault(),v.textInput.focus()},ontouchend:function(e){e.stopPropagation(),e.preventDefault(),t(e)},onclick:t},["span"],["span",{"class":"ace_mobile-button",action:"more"},"..."]],v.container)}function n(){s||i();var e=v.selection.cursor,t=v.renderer.textToScreenCoordinates(e.row,e.column),n=v.container.getBoundingClientRect();s.style.top=t.pageY-n.top-3+"px",s.style.right="10px",s.style.display="",s.firstChild.style.display="none",v.on("input",o)}function o(){s&&(s.style.display="none"),v.off("input",o)}function b(){S=null,clearTimeout(S);var e=v.selection.getRange(),t=e.contains($.row,$.column);!e.isEmpty()&&t||(v.selection.moveToPosition($),v.selection.selectWord()),A="wait",n()}function w(){S=null,clearTimeout(S),v.selection.moveToPosition($);var e=2<=M?v.selection.getLineRange($.row):v.session.getBracketRange($);e&&!e.isEmpty()?v.selection.setRange(e):v.selection.selectWord(),A="wait"}function t(){L+=60,r=setInterval(function(){L--<=0&&(clearInterval(r),r=null),Math.abs(R)<.01&&(R=0),Math.abs(T)<.01&&(T=0),L<20&&(R*=.9),L<20&&(T*=.9);var e=v.session.getScrollTop();v.renderer.scrollBy(10*R,10*T),e==v.session.getScrollTop()&&(L=0)},10)}var y,x,k,C,S,r,$,_,s,A="scroll",L=0,M=0,R=0,T=0;e.addEventListener("contextmenu",function(){_&&v.textInput.getElement().focus()}),e.addEventListener("touchstart",function(e){var t=e.touches;if(S||1<t.length)return clearTimeout(S),S=null,k=-1,void(A="zoom");_=v.$mouseHandler.isMousePressed=!0;var n=v.renderer.layerConfig.lineHeight,i=v.renderer.layerConfig.lineHeight,o=e.timeStamp;C=o;var r=t[0],s=r.clientX,a=r.clientY;Math.abs(y-s)+Math.abs(x-a)>n&&(k=-1),y=e.clientX=s,x=e.clientY=a,R=T=0;var l=new E(e,v);if($=l.getDocumentPosition(),o-k<500&&1==t.length&&!L)M++,e.preventDefault(),e.button=0,w();else{M=0;var c=v.selection.cursor,h=v.selection.isEmpty()?c:v.selection.anchor,u=v.renderer.$cursorLayer.getPixelPosition(c,!0),d=v.renderer.$cursorLayer.getPixelPosition(h,!0),g=v.renderer.scroller.getBoundingClientRect(),p=function(e,t){return(e/=i)*e+(t=t/n-.75)*t};if(e.clientX<g.left)return void(A="zoom");var f=p(e.clientX-g.left-u.left,e.clientY-g.top-u.top),m=p(e.clientX-g.left-d.left,e.clientY-g.top-d.top);f<3.5&&m<3.5&&(A=m<f?"cursor":"anchor"),A=m<3.5?"anchor":f<3.5?"cursor":"scroll",S=setTimeout(b,450)}k=o}),e.addEventListener("touchend",function(e){_=v.$mouseHandler.isMousePressed=!1,r&&clearInterval(r),"zoom"==A?(A="",L=0):S?(v.selection.moveToPosition($),L=0,n()):"scroll"==A?(t(),e.preventDefault(),o()):n(),clearTimeout(S),S=null}),e.addEventListener("touchmove",function(e){S&&(clearTimeout(S),S=null);var t=e.touches;if(!(1<t.length||"zoom"==A)){var n=t[0],i=y-n.clientX,o=x-n.clientY;if("wait"==A){if(!(4<i*i+o*o))return e.preventDefault();A="cursor"}y=n.clientX,x=n.clientY,e.clientX=n.clientX,e.clientY=n.clientY;var r=e.timeStamp,s=r-C;if(C=r,"scroll"==A){var a=new E(e,v);a.speed=1,a.wheelX=i,a.wheelY=o,10*Math.abs(i)<Math.abs(o)&&(i=0),10*Math.abs(o)<Math.abs(i)&&(o=0),0!=s&&(R=i/s,T=o/s),v._emit("mousewheel",a),a.propagationStopped||(R=T=0)}else{var l=new E(e,v).getDocumentPosition();"cursor"==A?v.selection.moveCursorToPosition(l):"anchor"==A&&v.selection.setSelectionAnchor(l.row,l.column),v.renderer.scrollCursorIntoView(l),e.preventDefault()}}})}}),ace.define("ace/lib/net",["require","exports","module","ace/lib/dom"],function(e,t){"use strict";var o=e("./dom");t.get=function(e,t){var n=new XMLHttpRequest;n.open("GET",e,!0),n.onreadystatechange=function(){4===n.readyState&&t(n.responseText)},n.send(null)},t.loadScript=function(e,n){var t=o.getDocumentHead(),i=document.createElement("script");i.src=e,t.appendChild(i),i.onload=i.onreadystatechange=function(e,t){!t&&i.readyState&&"loaded"!=i.readyState&&"complete"!=i.readyState||(i=i.onload=i.onreadystatechange=null,t||n())}},t.qualifyURL=function(e){var t=document.createElement("a");return t.href=e,t.href}}),ace.define("ace/lib/event_emitter",["require","exports","module"],function(e,t){"use strict";var n={},r=function(){this.propagationStopped=!0},s=function(){this.defaultPrevented=!0};n._emit=n._dispatchEvent=function(e,t){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var n=this._eventRegistry[e]||[],i=this._defaultHandlers[e];if(n.length||i){"object"==typeof t&&t||(t={}),t.type||(t.type=e),t.stopPropagation||(t.stopPropagation=r),t.preventDefault||(t.preventDefault=s),n=n.slice();for(var o=0;o<n.length&&(n[o](t,this),!t.propagationStopped);o++);return i&&!t.defaultPrevented?i(t,this):void 0}},n._signal=function(e,t){var n=(this._eventRegistry||{})[e];if(n){n=n.slice();for(var i=0;i<n.length;i++)n[i](t,this)}},n.once=function(e,t){var n=this;if(this.addEventListener(e,function i(){n.removeEventListener(e,i),t.apply(null,arguments)}),!t)return new Promise(function(e){t=e})},n.setDefaultHandler=function(e,t){var n=this._defaultHandlers;if(n||(n=this._defaultHandlers={_disabled_:{}}),n[e]){var i=n[e],o=n._disabled_[e];o||(n._disabled_[e]=o=[]),o.push(i);var r=o.indexOf(t);-1!=r&&o.splice(r,1)}n[e]=t},n.removeDefaultHandler=function(e,t){var n=this._defaultHandlers;if(n){var i=n._disabled_[e];if(n[e]==t)i&&this.setDefaultHandler(e,i.pop());else if(i){var o=i.indexOf(t);-1!=o&&i.splice(o,1)}}},n.on=n.addEventListener=function(e,t,n){this._eventRegistry=this._eventRegistry||{};var i=this._eventRegistry[e];return i||(i=this._eventRegistry[e]=[]),-1==i.indexOf(t)&&i[n?"unshift":"push"](t),t},n.off=n.removeListener=n.removeEventListener=function(e,t){this._eventRegistry=this._eventRegistry||{};var n=this._eventRegistry[e];if(n){var i=n.indexOf(t);-1!==i&&n.splice(i,1)}},n.removeAllListeners=function(e){this._eventRegistry&&(this._eventRegistry[e]=[])},t.EventEmitter=n}),ace.define("ace/lib/app_config",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(e,t){function i(e){"undefined"!=typeof console&&console.warn&&console.warn.apply(console,arguments)}function n(e,t){var n=new Error(e);n.data=t,"object"==typeof console&&console.error&&console.error(n),setTimeout(function(){throw n})}var o=e("./oop"),r=e("./event_emitter").EventEmitter,s={setOptions:function(t){Object.keys(t).forEach(function(e){this.setOption(e,t[e])},this)},getOptions:function(e){var t={};if(e)Array.isArray(e)||(t=e,e=Object.keys(t));else{var n=this.$options;e=Object.keys(n).filter(function(e){return!n[e].hidden})}return e.forEach(function(e){t[e]=this.getOption(e)},this),t},setOption:function(e,t){if(this["$"+e]!==t){var n=this.$options[e];return n?n.forwardTo?this[n.forwardTo]&&this[n.forwardTo].setOption(e,t):(n.handlesSet||(this["$"+e]=t),void(n&&n.set&&n.set.call(this,t))):i('misspelled option "'+e+'"')}},getOption:function(e){var t=this.$options[e];return t?t.forwardTo?this[t.forwardTo]&&this[t.forwardTo].getOption(e):t&&t.get?t.get.call(this):this["$"+e]:i('misspelled option "'+e+'"')}},a=function(){this.$defaultOptions={}};(function(){o.implement(this,r),this.defineOptions=function(n,e,i){return n.$options||(this.$defaultOptions[e]=n.$options={}),Object.keys(i).forEach(function(e){var t=i[e];"string"==typeof t&&(t={forwardTo:t}),t.name||(t.name=e),"initialValue"in(n.$options[t.name]=t)&&(n["$"+t.name]=t.initialValue)}),o.implement(n,s),this},this.resetOptions=function(n){Object.keys(n.$options).forEach(function(e){var t=n.$options[e];"value"in t&&n.setOption(e,t.value)})},this.setDefaultValue=function(e,t,n){if(!e){for(e in this.$defaultOptions)if(this.$defaultOptions[e][t])break;if(!this.$defaultOptions[e][t])return!1}var i=this.$defaultOptions[e]||(this.$defaultOptions[e]={});i[t]&&(i.forwardTo?this.setDefaultValue(i.forwardTo,t,n):i[t].value=n)},this.setDefaultValues=function(t,n){Object.keys(n).forEach(function(e){this.setDefaultValue(t,e,n[e])},this)},this.warn=i,this.reportError=n}).call(a.prototype),t.AppConfig=a}),ace.define("ace/config",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/lib/net","ace/lib/app_config"],function(p,f,m){function e(e){if(b&&b.document){w.packaged=e||p.packaged||m.packaged||b.define&&define.packaged;for(var t={},n="",i=document.currentScript||document._currentScript,o=(i&&i.ownerDocument||document).getElementsByTagName("script"),r=0;r<o.length;r++){var s=o[r],a=s.src||s.getAttribute("src");if(a){for(var l=s.attributes,c=0,h=l.length;c<h;c++){var u=l[c];0===u.name.indexOf("data-ace-")&&(t[v(u.name.replace(/^data-ace-/,""))]=u.value)}var d=a.match(/^(.*)\/ace(\-\w+)?\.js(\?|$)/);d&&(n=d[1])}}for(var g in n&&(t.base=t.base||n,t.packaged=!0),t.basePath=t.base,t.workerPath=t.workerPath||t.base,t.modePath=t.modePath||t.base,t.themePath=t.themePath||t.base,delete t.base,t)"undefined"!=typeof t[g]&&f.set(g,t[g])}}function v(e){return e.replace(/-(.)/g,function(e,t){return t.toUpperCase()})}var t=p("./lib/lang"),r=(p("./lib/oop"),p("./lib/net")),n=p("./lib/app_config").AppConfig;m.exports=f=new n;var b=function(){return this||"undefined"!=typeof window&&window}(),w={packaged:!1,workerPath:null,modePath:null,themePath:null,basePath:"",suffix:".js",$moduleUrls:{},loadWorkerFromBlob:!0,sharedPopups:!1};f.get=function(e){if(!w.hasOwnProperty(e))throw new Error("Unknown config key: "+e);return w[e]},f.set=function(e,t){if(w.hasOwnProperty(e))w[e]=t;else if(0==this.setDefaultValue("",e,t))throw new Error("Unknown config key: "+e)},f.all=function(){return t.copyObject(w)},f.$modes={},f.moduleUrl=function(e,t){if(w.$moduleUrls[e])return w.$moduleUrls[e];var n=e.split("/"),i="snippets"==(t=t||n[n.length-2]||"")?"/":"-",o=n[n.length-1];if("worker"==t&&"-"==i){var r=new RegExp("^"+t+"[\\-_]|[\\-_]"+t+"$","g");o=o.replace(r,"")}(!o||o==t)&&1<n.length&&(o=n[n.length-2]);var s=w[t+"Path"];return null==s?s=w.basePath:"/"==i&&(t=i=""),s&&"/"!=s.slice(-1)&&(s+="/"),s+t+i+o+this.get("suffix")},f.setModuleUrl=function(e,t){return w.$moduleUrls[e]=t},f.$loading={},f.loadModule=function(n,e){var t,i;Array.isArray(n)&&(i=n[0],n=n[1]);try{t=p(n)}catch(b){}if(t&&!f.$loading[n])return e&&e(t);if(f.$loading[n]||(f.$loading[n]=[]),f.$loading[n].push(e),!(1<f.$loading[n].length)){var o=function(){p([n],function(t){f._emit("load.module",{name:n,module:t});var e=f.$loading[n];f.$loading[n]=null,e.forEach(function(e){e&&e(t)})})};if(!f.get("packaged"))return o();r.loadScript(f.moduleUrl(n,i),o),s()}};var s=function(){!w.basePath&&!w.workerPath&&!w.modePath&&!w.themePath&&!Object.keys(w.$moduleUrls).length&&(console.error("Unable to infer path to ace from script src,","use ace.config.set('basePath', 'path') to enable dynamic loading of modes and themes","or with webpack use ace/webpack-resolver"),s=function(){})};f.init=e,f.version="1.4.6"}),ace.define("ace/mouse/mouse_handler",["require","exports","module","ace/lib/event","ace/lib/useragent","ace/mouse/default_handlers","ace/mouse/default_gutter_handler","ace/mouse/mouse_event","ace/mouse/dragdrop_handler","ace/mouse/touch_handler","ace/config"],function(e,t){"use strict";var h=e("../lib/event"),u=e("../lib/useragent"),i=e("./default_handlers"
3
- ).DefaultHandlers,s=e("./default_gutter_handler").GutterHandler,d=e("./mouse_event").MouseEvent,a=e("./dragdrop_handler").DragdropHandler,l=e("./touch_handler").addTouchListeners,n=e("../config"),o=function(o){var r=this;this.editor=o,new i(this),new s(this),new a(this);var e=function(){(!document.hasFocus||!document.hasFocus()||!o.isFocused()&&document.activeElement==(o.textInput&&o.textInput.getElement()))&&window.focus(),o.focus()},t=o.renderer.getMouseEventTarget();h.addListener(t,"click",this.onMouseEvent.bind(this,"click")),h.addListener(t,"mousemove",this.onMouseMove.bind(this,"mousemove")),h.addMultiMouseDownListener([t,o.renderer.scrollBarV&&o.renderer.scrollBarV.inner,o.renderer.scrollBarH&&o.renderer.scrollBarH.inner,o.textInput&&o.textInput.getElement()].filter(Boolean),[400,300,250],this,"onMouseEvent"),h.addMouseWheelListener(o.container,this.onMouseWheel.bind(this,"mousewheel")),l(o.container,o);var n=o.renderer.$gutter;h.addListener(n,"mousedown",this.onMouseEvent.bind(this,"guttermousedown")),h.addListener(n,"click",this.onMouseEvent.bind(this,"gutterclick")),h.addListener(n,"dblclick",this.onMouseEvent.bind(this,"gutterdblclick")),h.addListener(n,"mousemove",this.onMouseEvent.bind(this,"guttermousemove")),h.addListener(t,"mousedown",e),h.addListener(n,"mousedown",e),u.isIE&&o.renderer.scrollBarV&&(h.addListener(o.renderer.scrollBarV.element,"mousedown",e),h.addListener(o.renderer.scrollBarH.element,"mousedown",e)),o.on("mousemove",function(e){if(!r.state&&!r.$dragDelay&&r.$dragEnabled){var t=o.renderer.screenToTextCoordinates(e.x,e.y),n=o.session.selection.getRange(),i=o.renderer;!n.isEmpty()&&n.insideStart(t.row,t.column)?i.setCursorStyle("default"):i.setCursorStyle("")}})};(function(){this.onMouseEvent=function(e,t){this.editor._emit(e,new d(t,this.editor))},this.onMouseMove=function(e,t){var n=this.editor._eventRegistry&&this.editor._eventRegistry.mousemove;n&&n.length&&this.editor._emit(e,new d(t,this.editor))},this.onMouseWheel=function(e,t){var n=new d(t,this.editor);n.speed=2*this.$scrollSpeed,n.wheelX=t.wheelX,n.wheelY=t.wheelY,this.editor._emit(e,n)},this.setState=function(e){this.state=e},this.captureMouse=function(e,t){this.x=e.x,this.y=e.y,this.isMousePressed=!0;var n=this.editor,i=this.editor.renderer;i.$isMousePressed=!0;var o=this,r=function(e){if(e)return u.isWebKit&&!e.which&&o.releaseMouse?o.releaseMouse():(o.x=e.clientX,o.y=e.clientY,t&&t(e),o.mouseEvent=new d(e,o.editor),void(o.$mouseMoved=!0))},s=function(e){n.off("beforeEndOperation",l),clearInterval(c),a(),o[o.state+"End"]&&o[o.state+"End"](e),o.state="",o.isMousePressed=i.$isMousePressed=!1,i.$keepTextAreaAtCursor&&i.$moveTextAreaToCursor(),o.$onCaptureMouseMove=o.releaseMouse=null,e&&o.onMouseEvent("mouseup",e),n.endOperation()},a=function(){o[o.state]&&o[o.state](),o.$mouseMoved=!1};if(u.isOldIE&&"dblclick"==e.domEvent.type)return setTimeout(function(){s(e)});var l=function(){o.releaseMouse&&n.curOp.command.name&&n.curOp.selectionChanged&&(o[o.state+"End"]&&o[o.state+"End"](),o.state="",o.releaseMouse())};n.on("beforeEndOperation",l),n.startOperation({command:{name:"mouse"}}),o.$onCaptureMouseMove=r,o.releaseMouse=h.capture(this.editor.container,r,s);var c=setInterval(a,20)},this.releaseMouse=null,this.cancelContextMenu=function(){var t=function(e){e&&e.domEvent&&"contextmenu"!=e.domEvent.type||(this.editor.off("nativecontextmenu",t),e&&e.domEvent&&h.stopEvent(e.domEvent))}.bind(this);setTimeout(t,10),this.editor.on("nativecontextmenu",t)}}).call(o.prototype),n.defineOptions(o.prototype,"mouseHandler",{scrollSpeed:{initialValue:2},dragDelay:{initialValue:u.isMac?150:0},dragEnabled:{initialValue:!0},focusTimeout:{initialValue:0},tooltipFollowsMouse:{initialValue:!0}}),t.MouseHandler=o}),ace.define("ace/mouse/fold_handler",["require","exports","module","ace/lib/dom"],function(e,t){"use strict";function n(s){s.on("click",function(e){var t=e.getDocumentPosition(),n=s.session,i=n.getFoldAt(t.row,t.column,1);i&&(e.getAccelKey()?n.removeFold(i):n.expandFold(i),e.stop());var o=e.domEvent&&e.domEvent.target;o&&r.hasCssClass(o,"ace_inline_button")&&r.hasCssClass(o,"ace_toggle_wrap")&&(n.setOption("wrap",!n.getUseWrapMode()),s.renderer.scrollCursorIntoView())}),s.on("gutterclick",function(e){if("foldWidgets"==s.renderer.$gutterLayer.getRegion(e)){var t=e.getDocumentPosition().row,n=s.session;n.foldWidgets&&n.foldWidgets[t]&&s.session.onFoldWidgetClick(t,e),s.isFocused()||s.focus(),e.stop()}}),s.on("gutterdblclick",function(e){if("foldWidgets"==s.renderer.$gutterLayer.getRegion(e)){var t=e.getDocumentPosition().row,n=s.session,i=n.getParentFoldRangeData(t,!0),o=i.range||i.firstRange;if(o){t=o.start.row;var r=n.getFoldAt(t,n.getLine(t).length,1);r?n.removeFold(r):(n.addFold("...",o),s.renderer.scrollCursorIntoView({row:o.start.row,column:0}))}e.stop()}})}var r=e("../lib/dom");t.FoldHandler=n}),ace.define("ace/keyboard/keybinding",["require","exports","module","ace/lib/keys","ace/lib/event"],function(e,t){"use strict";var o=e("../lib/keys"),l=e("../lib/event"),n=function(e){this.$editor=e,this.$data={editor:e},this.$handlers=[],this.setDefaultHandler(e.commands)};(function(){this.setDefaultHandler=function(e){this.removeKeyboardHandler(this.$defaultHandler),this.$defaultHandler=e,this.addKeyboardHandler(e,0)},this.setKeyboardHandler=function(e){var t=this.$handlers;if(t[t.length-1]!=e){for(;t[t.length-1]&&t[t.length-1]!=this.$defaultHandler;)this.removeKeyboardHandler(t[t.length-1]);this.addKeyboardHandler(e,1)}},this.addKeyboardHandler=function(e,t){if(e){"function"==typeof e&&!e.handleKeyboard&&(e.handleKeyboard=e);var n=this.$handlers.indexOf(e);-1!=n&&this.$handlers.splice(n,1),t==undefined?this.$handlers.push(e):this.$handlers.splice(t,0,e),-1==n&&e.attach&&e.attach(this.$editor)}},this.removeKeyboardHandler=function(e){var t=this.$handlers.indexOf(e);return-1!=t&&(this.$handlers.splice(t,1),e.detach&&e.detach(this.$editor),!0)},this.getKeyboardHandler=function(){return this.$handlers[this.$handlers.length-1]},this.getStatusText=function(){var t=this.$data,n=t.editor;return this.$handlers.map(function(e){return e.getStatusText&&e.getStatusText(n,t)||""}).filter(Boolean).join(" ")},this.$callKeyboardHandlers=function(e,t,n,i){for(var o,r=!1,s=this.$editor.commands,a=this.$handlers.length;a--&&!((o=this.$handlers[a].handleKeyboard(this.$data,e,t,n,i))&&o.command&&((r="null"==o.command||s.exec(o.command,this.$editor,o.args,i))&&i&&-1!=e&&1!=o.passEvent&&1!=o.command.passEvent&&l.stopEvent(i),r)););return!r&&-1==e&&(o={command:"insertstring"},r=s.exec("insertstring",this.$editor,t)),r&&this.$editor._signal&&this.$editor._signal("keyboardActivity",o),r},this.onCommandKey=function(e,t,n){var i=o.keyCodeToString(n);return this.$callKeyboardHandlers(t,i,n,e)},this.onTextInput=function(e){return this.$callKeyboardHandlers(-1,e)}}).call(n.prototype),t.KeyBinding=n}),ace.define("ace/lib/bidiutil",["require","exports","module"],function(e,l){"use strict";function c(e,t,n,i){var o=v?C:k,r=null,s=null,a=null,l=0,c=null,h=-1,u=null,d=null,g=[];if(!i)for(u=0,i=[];u<n;u++)i[u]=m(e[u]);for(b=v,x=y=w=!1,d=0;d<n;d++){if(r=l,g[d]=s=f(e,i,g,d),c=240&(l=o[r][s]),l&=15,t[d]=a=o[l][5],0<c)if(16==c){for(u=h;u<d;u++)t[u]=1;h=-1}else h=-1;if(o[l][6])-1==h&&(h=d);else if(-1<h){for(u=h;u<d;u++)t[u]=a;h=-1}i[d]==A&&(t[d]=0),b|=a}if(x)for(u=0;u<n;u++)if(i[u]==L){t[u]=v;for(var p=u-1;0<=p&&i[p]==R;p--)t[p]=v}}function h(e,t,n){if(!(b<e))if(1!=e||v!=d||y)for(var i,o,r,s,a=n.length,l=0;l<a;){if(t[l]>=e){for(i=l+1;i<a&&t[i]>=e;)i++;for(o=l,r=i-1;o<r;o++,r--)s=n[o],n[o]=n[r],n[r]=s;l=i}l++}else n.reverse()}function f(e,t,n,i){var o,r,s,a,l=t[i];switch(l){case g:case p:w=!1;case _:case $:return l;case S:return w?$:S;case M:return w=!0,p;case R:return _;case T:return i<1||i+1>=t.length||(o=n[i-1])!=S&&o!=$||(r=t[i+1])!=S&&r!=$?_:(w&&(r=$),r==o?r:_);case E:return(o=0<i?n[i-1]:A)==S&&i+1<t.length&&t[i+1]==S?S:_;case O:if(0<i&&n[i-1]==S)return S;if(w)return _;for(a=i+1,s=t.length;a<s&&t[a]==O;)a++;return a<s&&t[a]==S?S:_;case I:for(s=t.length,a=i+1;a<s&&t[a]==I;)a++;if(a<s){var c=e[i],h=1425<=c&&c<=2303||64286==c;if(o=t[a],h&&(o==p||o==M))return p}return i<1||(o=t[i-1])==A?_:n[i-1];case A:return y=!(w=!1),v;case L:return x=!0,_;case F:case B:case N:case P:case H:w=!1;case D:return _}}function m(e){var t=e.charCodeAt(0),n=t>>8;return 0==n?191<t?g:i[t]:5==n?/[\u0591-\u05f4]/.test(e)?p:g:6==n?/[\u0610-\u061a\u064b-\u065f\u06d6-\u06e4\u06e7-\u06ed]/.test(e)?I:/[\u0660-\u0669\u066b-\u066c]/.test(e)?$:1642==t?O:/[\u06f0-\u06f9]/.test(e)?S:M:32==n&&t<=8287?o[255&t]:254==n&&65136<=t?M:_}var v=0,b=0,w=!1,y=!1,x=!1,k=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],C=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],u=0,d=1,g=0,p=1,S=2,$=3,_=4,A=5,L=6,M=7,R=8,T=9,E=10,O=11,I=12,F=13,B=14,H=15,N=16,P=17,D=18,i=[D,D,D,D,D,D,D,D,D,L,A,L,R,A,D,D,D,D,D,D,D,D,D,D,D,D,D,D,A,A,A,L,R,_,_,O,O,O,_,_,_,_,_,E,T,E,T,T,S,S,S,S,S,S,S,S,S,S,T,_,_,_,_,_,_,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,_,_,_,_,_,_,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,_,_,_,_,D,D,D,D,D,D,A,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,T,_,O,O,O,O,_,_,_,_,g,_,_,D,_,_,O,O,S,S,_,g,_,_,_,S,g,_,_,_,_,_],o=[R,R,R,R,R,R,R,R,R,R,R,D,D,D,g,p,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,R,A,F,B,H,N,P,T,O,O,O,O,O,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,T,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,R];l.L=g,l.R=p,l.EN=S,l.ON_R=3,l.AN=4,l.R_H=5,l.B=6,l.RLE=7,l.DOT="\xb7",l.doBidiReorder=function(e,t,n){if(e.length<2)return{};var i=e.split(""),o=new Array(i.length),r=new Array(i.length),s=[];v=n?d:u,c(i,s,i.length,t);for(var a=0;a<o.length;o[a]=a,a++);h(2,s,o),h(1,s,o);for(a=0;a<o.length-1;a++)t[a]===$?s[a]=l.AN:s[a]===p&&(t[a]>M&&t[a]<F||t[a]===_||t[a]===D)?s[a]=l.ON_R:0<a&&"\u0644"===i[a-1]&&/\u0622|\u0623|\u0625|\u0627/.test(i[a])&&(s[a-1]=s[a]=l.R_H,a++);i[i.length-1]===l.DOT&&(s[i.length-1]=l.B),"\u202b"===i[0]&&(s[0]=l.RLE);for(a=0;a<o.length;a++)r[a]=s[o[a]];return{logicalFromVisual:o,bidiLevels:r}},l.hasBidiCharacters=function(e,t){for(var n=!1,i=0;i<e.length;i++)t[i]=m(e.charAt(i)),!n&&(t[i]==p||t[i]==M||t[i]==$)&&(n=!0);return n},l.getVisualFromLogicalIdx=function(e,t){for(var n=0;n<t.logicalFromVisual.length;n++)if(t.logicalFromVisual[n]==e)return n;return 0}}),ace.define("ace/bidihandler",["require","exports","module","ace/lib/bidiutil","ace/lib/lang"],function(e,t){"use strict";var a=e("./lib/bidiutil"),l=e("./lib/lang"),n=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\u202B]/,i=function(e){this.session=e,this.bidiMap={},this.currentRow=null,this.bidiUtil=a,this.charWidths=[],this.EOL="\xac",this.showInvisibles=!0,this.isRtlDir=!1,this.$isRtl=!1,this.line="",this.wrapIndent=0,this.EOF="\xb6",this.RLE="\u202b",this.contentWidth=0,this.fontMetrics=null,this.rtlLineOffset=0,this.wrapOffset=0,this.isMoveLeftOperation=!1,this.seenBidi=n.test(e.getValue())};(function(){this.isBidiRow=function(e,t,n){return!!this.seenBidi&&(e!==this.currentRow&&(this.currentRow=e,this.updateRowLine(t,n),this.updateBidiMap()),this.bidiMap.bidiLevels)},this.onChange=function(e){this.seenBidi?this.currentRow=null:"insert"==e.action&&n.test(e.lines.join("\n"))&&(this.seenBidi=!0,this.currentRow=null)},this.getDocumentRow=function(){var e=0,t=this.session.$screenRowCache;if(t.length){var n=this.session.$getRowCacheIndex(t,this.currentRow);0<=n&&(e=this.session.$docRowCache[n])}return e},this.getSplitIndex=function(){var e=0,t=this.session.$screenRowCache;if(t.length)for(var n,i=this.session.$getRowCacheIndex(t,this.currentRow);0<this.currentRow-e&&(n=this.session.$getRowCacheIndex(t,this.currentRow-e-1))===i;)i=n,e++;else e=this.currentRow;return e},this.updateRowLine=function(e,t){e===undefined&&(e=this.getDocumentRow());var n=e===this.session.getLength()-1?this.EOF:this.EOL;if(this.wrapIndent=0,this.line=this.session.getLine(e),this.isRtlDir=this.$isRtl||this.line.charAt(0)===this.RLE,this.session.$useWrapMode){var i=this.session.$wrapData[e];i&&(t===undefined&&(t=this.getSplitIndex()),0<t&&i.length?(this.wrapIndent=i.indent,this.wrapOffset=this.wrapIndent*this.charWidths[a.L],this.line=t<i.length?this.line.substring(i[t-1],i[t]):this.line.substring(i[i.length-1])):this.line=this.line.substring(0,i[t])),t==i.length&&(this.line+=this.showInvisibles?n:a.DOT)}else this.line+=this.showInvisibles?n:a.DOT;var o,r=this.session,s=0;this.line=this.line.replace(/\t|[\u1100-\u2029, \u202F-\uFFE6]/g,function(e,t){return"\t"===e||r.isFullWidth(e.charCodeAt(0))?(o="\t"===e?r.getScreenTabSize(t+s):2,s+=o-1,l.stringRepeat(a.DOT,o)):e}),this.isRtlDir&&(this.fontMetrics.$main.textContent=this.line.charAt(this.line.length-1)==a.DOT?this.line.substr(0,this.line.length-1):this.line,this.rtlLineOffset=this.contentWidth-this.fontMetrics.$main.getBoundingClientRect().width)},this.updateBidiMap=function(){var e=[];a.hasBidiCharacters(this.line,e)||this.isRtlDir?this.bidiMap=a.doBidiReorder(this.line,e,this.isRtlDir):this.bidiMap={}},this.markAsDirty=function(){this.currentRow=null},this.updateCharacterWidths=function(e){if(this.characterWidth!==e.$characterSize.width){this.fontMetrics=e;var t=this.characterWidth=e.$characterSize.width,n=e.$measureCharWidth("\u05d4");this.charWidths[a.L]=this.charWidths[a.EN]=this.charWidths[a.ON_R]=t,this.charWidths[a.R]=this.charWidths[a.AN]=n,this.charWidths[a.R_H]=.45*n,this.charWidths[a.B]=this.charWidths[a.RLE]=0,this.currentRow=null}},this.setShowInvisibles=function(e){this.showInvisibles=e,this.currentRow=null},this.setEolChar=function(e){this.EOL=e},this.setContentWidth=function(e){this.contentWidth=e},this.isRtlLine=function(e){return!!this.$isRtl||(e!=undefined?this.session.getLine(e).charAt(0)==this.RLE:this.isRtlDir)},this.setRtlDirection=function(e,t){for(var n=e.getCursorPosition(),i=e.selection.getSelectionAnchor().row;i<=n.row;i++)t||e.session.getLine(i).charAt(0)!==e.session.$bidiHandler.RLE?t&&e.session.getLine(i).charAt(0)!==e.session.$bidiHandler.RLE&&e.session.doc.insert({column:0,row:i},e.session.$bidiHandler.RLE):e.session.doc.removeInLine(i,0,1)},this.getPosLeft=function(e){e-=this.wrapIndent;var t=this.line.charAt(0)===this.RLE?1:0,n=t<e?this.session.getOverwrite()?e:e-1:t,i=a.getVisualFromLogicalIdx(n,this.bidiMap),o=this.bidiMap.bidiLevels,r=0;!this.session.getOverwrite()&&e<=t&&o[i]%2!=0&&i++;for(var s=0;s<i;s++)r+=this.charWidths[o[s]];return!this.session.getOverwrite()&&t<e&&o[i]%2==0&&(r+=this.charWidths[o[i]]),this.wrapIndent&&(r+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset),this.isRtlDir&&(r+=this.rtlLineOffset),r},this.getSelections=function(e,t){var n,i=this.bidiMap,o=i.bidiLevels,r=[],s=0,a=Math.min(e,t)-this.wrapIndent,l=Math.max(e,t)-this.wrapIndent,c=!1,h=!1,u=0;this.wrapIndent&&(s+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);for(var d,g=0;g<o.length;g++)d=i.logicalFromVisual[g],n=o[g],(c=a<=d&&d<l)&&!h?u=s:!c&&h&&r.push({left:u,width:s-u}),s+=this.charWidths[n],h=c;if(c&&g===o.length&&r.push({left:u,width:s-u}),this.isRtlDir)for(var p=0;p<r.length;p++)r[p].left+=this.rtlLineOffset;return r},this.offsetToCol=function(e){this.isRtlDir&&(e-=this.rtlLineOffset);var t=0,n=(e=Math.max(e,0),0),i=0,o=this.bidiMap.bidiLevels,r=this.charWidths[o[i]];for(this.wrapIndent&&(e-=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);n+r/2<e;){if(n+=r,i===o.length-1){r=0;break}r=this.charWidths[o[++i]]}return 0<i&&o[i-1]%2!=0&&o[i]%2==0?(e<n&&i--,t=this.bidiMap.logicalFromVisual[i]):0<i&&o[i-1]%2==0&&o[i]%2!=0?t=1+(n<e?this.bidiMap.logicalFromVisual[i]:this.bidiMap.logicalFromVisual[i-1]):this.isRtlDir&&i===o.length-1&&0===r&&o[i-1]%2==0||!this.isRtlDir&&0===i&&o[i]%2!=0?t=1+this.bidiMap.logicalFromVisual[i]:(0<i&&o[i-1]%2!=0&&0!==r&&i--,t=this.bidiMap.logicalFromVisual[i]),0===t&&this.isRtlDir&&t++,t+this.wrapIndent}}).call(i.prototype),t.BidiHandler=i}),ace.define("ace/selection",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/range"],function(e,t){"use strict";var i=e("./lib/oop"),s=e("./lib/lang"),n=e("./lib/event_emitter").EventEmitter,a=e("./range").Range,o=function(e){this.session=e,this.doc=e.getDocument(),this.clearSelection(),this.cursor=this.lead=this.doc.createAnchor(0,0),this.anchor=this.doc.createAnchor(0,0),this.$silent=!1;var t=this;this.cursor.on("change",function(e){t.$cursorChanged=!0,t.$silent||t._emit("changeCursor"),!t.$isEmpty&&!t.$silent&&t._emit("changeSelection"),!t.$keepDesiredColumnOnChange&&e.old.column!=e.value.column&&(t.$desiredColumn=null)}),this.anchor.on("change",function(){t.$anchorChanged=!0,!t.$isEmpty&&!t.$silent&&t._emit("changeSelection")})};(function(){i.implement(this,n),this.isEmpty=function(){return this.$isEmpty||this.anchor.row==this.lead.row&&this.anchor.column==this.lead.column},this.isMultiLine=function(){return!this.$isEmpty&&this.anchor.row!=this.cursor.row},this.getCursor=function(){return this.lead.getPosition()},this.setSelectionAnchor=function(e,t){this.$isEmpty=!1,this.anchor.setPosition(e,t)},this.getAnchor=this.getSelectionAnchor=function(){return this.$isEmpty?this.getSelectionLead():this.anchor.getPosition()},this.getSelectionLead=function(){return this.lead.getPosition()},this.isBackwards=function(){var e=this.anchor,t=this.lead;return e.row>t.row||e.row==t.row&&e.column>t.column},this.getRange=function(){var e=this.anchor,t=this.lead;return this.$isEmpty?a.fromPoints(t,t):this.isBackwards()?a.fromPoints(t,e):a.fromPoints(e,t)},this.clearSelection=function(){this.$isEmpty||(this.$isEmpty=!0,this._emit("changeSelection"))},this.selectAll=function(){this.$setSelection(0,0,Number.MAX_VALUE,Number.MAX_VALUE)},this.setRange=this.setSelectionRange=function(e,t){var n=t?e.end:e.start,i=t?e.start:e.end;this.$setSelection(n.row,n.column,i.row,i.column)},this.$setSelection=function(e,t,n,i){var o=this.$isEmpty,r=this.inMultiSelectMode;this.$silent=!0,this.$cursorChanged=this.$anchorChanged=!1,this.anchor.setPosition(e,t),this.cursor.setPosition(n,i),this.$isEmpty=!a.comparePoints(this.anchor,this.cursor),this.$silent=!1,this.$cursorChanged&&this._emit("changeCursor"),(this.$cursorChanged||this.$anchorChanged||o!=this.$isEmpty||r)&&this._emit("changeSelection")},this.$moveSelection=function(e){var t=this.lead;this.$isEmpty&&this.setSelectionAnchor(t.row,t.column),e.call(this)},this.selectTo=function(e,t){this.$moveSelection(function(){this.moveCursorTo(e,t)})},this.selectToPosition=function(e){this.$moveSelection(function(){this.moveCursorToPosition(e)})},this.moveTo=function(e,t){this.clearSelection(),this.moveCursorTo(e,t)},this.moveToPosition=function(e){this.clearSelection(),this.moveCursorToPosition(e)},this.selectUp=function(){this.$moveSelection(this.moveCursorUp)},this.selectDown=function(){this.$moveSelection(this.moveCursorDown)},this.selectRight=function(){this.$moveSelection(this.moveCursorRight)},this.selectLeft=function(){this.$moveSelection(this.moveCursorLeft)},this.selectLineStart=function(){this.$moveSelection(this.moveCursorLineStart)},this.selectLineEnd=function(){this.$moveSelection(this.moveCursorLineEnd)},this.selectFileEnd=function(){this.$moveSelection(this.moveCursorFileEnd)},this.selectFileStart=function(){this.$moveSelection(this.moveCursorFileStart)},this.selectWordRight=function(){this.$moveSelection(this.moveCursorWordRight)},this.selectWordLeft=function(){this.$moveSelection(this.moveCursorWordLeft)},this.getWordRange=function(e,t){if(void 0===t){var n=e||this.lead;e=n.row,t=n.column}return this.session.getWordRange(e,t)},this.selectWord=function(){this.setSelectionRange(this.getWordRange())},this.selectAWord=function(){var e=this.getCursor(),t=this.session.getAWordRange(e.row,e.column);this.setSelectionRange(t)},this.getLineRange=function(e,t){var n,i="number"==typeof e?e:this.lead.row,o=this.session.getFoldLine(i);return o?(i=o.start.row,n=o.end.row):n=i,!0===t?new a(i,0,n,this.session.getLine(n).length):new a(i,0,n+1,0)},this.selectLine=function(){this.setSelectionRange(this.getLineRange())},this.moveCursorUp=function(){this.moveCursorBy(-1,0)},this.moveCursorDown=function(){this.moveCursorBy(1,0)},this.wouldMoveIntoSoftTab=function(e,t,n){var i=e.column,o=e.column+t;return n<0&&(i=e.column-t,o=e.column),this.session.isTabStop(e)&&this.doc.getLine(e.row).slice(i,o).split(" ").length-1==t},this.moveCursorLeft=function(){var e,t=this.lead.getPosition();if(e=this.session.getFoldAt(t.row,t.column,-1))this.moveCursorTo(e.start.row,e.start.column);else if(0===t.column)0<t.row&&this.moveCursorTo(t.row-1,this.doc.getLine(t.row-1).length);else{var n=this.session.getTabSize();this.wouldMoveIntoSoftTab(t,n,-1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,-n):this.moveCursorBy(0,-1)}},this.moveCursorRight=function(){var e,t=this.lead.getPosition();if(e=this.session.getFoldAt(t.row,t.column,1))this.moveCursorTo(e.end.row,e.end.column);else if(this.lead.column==this.doc.getLine(this.lead.row).length)this.lead.row<this.doc.getLength()-1&&this.moveCursorTo(this.lead.row+1,0);else{var n=this.session.getTabSize();t=this.lead;this.wouldMoveIntoSoftTab(t,n,1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,n):this.moveCursorBy(0,1)}},this.moveCursorLineStart=function(){var e=this.lead.row,t=this.lead.column,n=this.session.documentToScreenRow(e,t),i=this.session.screenToDocumentPosition(n,0),o=this.session.getDisplayLine(e,null,i.row,i.column).match(/^\s*/);o[0].length!=t&&!this.session.$useEmacsStyleLineStart&&(i.column+=o[0].length),this.moveCursorToPosition(i)},this.moveCursorLineEnd=function(){var e=this.lead,t=this.session.getDocumentLastRowColumnPosition(e.row,e.column);if(this.lead.column==t.column){var n=this.session.getLine(t.row);if(t.column==n.length){var i=n.search(/\s+$/);0<i&&(t.column=i)}}this.moveCursorTo(t.row,t.column)},this.moveCursorFileEnd=function(){var e=this.doc.getLength()-1,t=this.doc.getLine(e).length;this.moveCursorTo(e,t)},this.moveCursorFileStart=function(){this.moveCursorTo(0,0)},this.moveCursorLongWordRight=function(){var e=this.lead.row,t=this.lead.column,n=this.doc.getLine(e),i=n.substring(t);this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0;var o=this.session.getFoldAt(e,t,1);if(o)this.moveCursorTo(o.end.row,o.end.column);else{if(this.session.nonTokenRe.exec(i)&&(t+=this.session.nonTokenRe.lastIndex,this.session.nonTokenRe.lastIndex=0,i=n.substring(t)),t>=n.length)return this.moveCursorTo(e,n.length),this.moveCursorRight(),void(e<this.doc.getLength()-1&&this.moveCursorWordRight());this.session.tokenRe.exec(i)&&(t+=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(e,t)}},this.moveCursorLongWordLeft=function(){var e,t=this.lead.row,n=this.lead.column;if(e=this.session.getFoldAt(t,n,-1))this.moveCursorTo(e.start.row,e.start.column);else{var i=this.session.getFoldStringAt(t,n,-1);null==i&&(i=this.doc.getLine(t).substring(0,n));var o=s.stringReverse(i);if(this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0,this.session.nonTokenRe.exec(o)&&(n-=this.session.nonTokenRe.lastIndex,o=o.slice(this.session.nonTokenRe.lastIndex),this.session.nonTokenRe.lastIndex=0),n<=0)return this.moveCursorTo(t,0),this.moveCursorLeft(),void(0<t&&this.moveCursorWordLeft());this.session.tokenRe.exec(o)&&(n-=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(t,n)}},this.$shortWordEndIndex=function(e){var t,n=0,i=/\s/,o=this.session.tokenRe;if(o.lastIndex=0,this.session.tokenRe.exec(e))n=this.session.tokenRe.lastIndex;else{for(;(t=e[n])&&i.test(t);)n++;if(n<1)for(o.lastIndex=0;(t=e[n])&&!o.test(t);)if(o.lastIndex=0,n++,i.test(t)){if(2<n){n--;break}for(;(t=e[n])&&i.test(t);)n++;if(2<n)break}}return o.lastIndex=0,n},this.moveCursorShortWordRight=function(){var e=this.lead.row,t=this.lead.column,n=this.doc.getLine(e),i=n.substring(t),o=this.session.getFoldAt(e,t,1);if(o)return this.moveCursorTo(o.end.row,o.end.column);if(t==n.length){for(var r=this.doc.getLength();e++,i=this.doc.getLine(e),e<r&&/^\s*$/.test(i););/^\s+/.test(i)||(i=""),t=0}var s=this.$shortWordEndIndex(i);this.moveCursorTo(e,t+s)},this.moveCursorShortWordLeft=function(){var e,t=this.lead.row,n=this.lead.column;if(e=this.session.getFoldAt(t,n,-1))return this.moveCursorTo(e.start.row,e.start.column);var i=this.session.getLine(t).substring(0,n);if(0===n){for(;t--,i=this.doc.getLine(t),0<t&&/^\s*$/.test(i););n=i.length,/\s+$/.test(i)||(i="")}var o=s.stringReverse(i),r=this.$shortWordEndIndex(o);return this.moveCursorTo(t,n-r)},this.moveCursorWordRight=function(){this.session.$selectLongWords?this.moveCursorLongWordRight():this.moveCursorShortWordRight()},this.moveCursorWordLeft=function(){this.session.$selectLongWords?this.moveCursorLongWordLeft():this.moveCursorShortWordLeft()},this.moveCursorBy=function(e,t){var n,i=this.session.documentToScreenPosition(this.lead.row,this.lead.column);0===t&&(0!==e&&(this.session.$bidiHandler.isBidiRow(i.row,this.lead.row)?(n=this.session.$bidiHandler.getPosLeft(i.column),i.column=Math.round(n/this.session.$bidiHandler.charWidths[0])):n=i.column*this.session.$bidiHandler.charWidths[0]),this.$desiredColumn?i.column=this.$desiredColumn:this.$desiredColumn=i.column);var o=this.session.screenToDocumentPosition(i.row+e,i.column,n);0!==e&&0===t&&o.row===this.lead.row&&o.column===this.lead.column&&this.session.lineWidgets&&this.session.lineWidgets[o.row]&&(0<o.row||0<e)&&o.row++,this.moveCursorTo(o.row,o.column+t,0===t)},this.moveCursorToPosition=function(e){this.moveCursorTo(e.row,e.column)},this.moveCursorTo=function(e,t,n){var i=this.session.getFoldAt(e,t,1);i&&(e=i.start.row,t=i.start.column),this.$keepDesiredColumnOnChange=!0;var o=this.session.getLine(e);/[\uDC00-\uDFFF]/.test(o.charAt(t))&&o.charAt(t-1)&&(this.lead.row==e&&this.lead.column==t+1?t-=1:t+=1),this.lead.setPosition(e,t),this.$keepDesiredColumnOnChange=!1,n||(this.$desiredColumn=null)},this.moveCursorToScreen=function(e,t,n){var i=this.session.screenToDocumentPosition(e,t);this.moveCursorTo(i.row,i.column,n)},this.detach=function(){this.lead.detach(),this.anchor.detach(),this.session=this.doc=null},this.fromOrientedRange=function(e){this.setSelectionRange(e,e.cursor==e.start),this.$desiredColumn=e.desiredColumn||this.$desiredColumn},this.toOrientedRange=function(e){var t=this.getRange();return e?(e.start.column=t.start.column,e.start.row=t.start.row,e.end.column=t.end.column,e.end.row=t.end.row):e=t,e.cursor=this.isBackwards()?e.start:e.end,e.desiredColumn=this.$desiredColumn,e},this.getRangeOfMovements=function(e){var t=this.getCursor();try{e(this);var n=this.getCursor();return a.fromPoints(t,n)}catch(i){return a.fromPoints(t,t)}finally{this.moveCursorToPosition(t)}},this.toJSON=function(){if(this.rangeCount)var e=this.ranges.map(function(e){var t=e.clone();return t.isBackwards=e.cursor==e.start,t});else(e=this.getRange()).isBackwards=this.isBackwards();return e},this.fromJSON=function(e){if(e.start==undefined){if(this.rangeList&&1<e.length){this.toSingleRange(e[0]);for(var t=e.length;t--;){var n=a.fromPoints(e[t].start,e[t].end);e[t].isBackwards&&(n.cursor=n.start),this.addRange(n,!0)}return}e=e[0]}this.rangeList&&this.toSingleRange(e),this.setSelectionRange(e,e.isBackwards)},this.isEqual=function(e){if((e.length||this.rangeCount)&&e.length!=this.rangeCount)return!1;if(!e.length||!this.ranges)return this.getRange().isEqual(e);for(var t=this.ranges.length;t--;)if(!this.ranges[t].isEqual(e[t]))return!1;return!0}}).call(o.prototype),t.Selection=o}),ace.define("ace/tokenizer",["require","exports","module","ace/config"],function(e,t){"use strict";var n=e("./config"),b=2e3,i=function(e){for(var t in this.states=e,this.regExps={},this.matchMappings={},this.states){for(var n=this.states[t],i=[],o=0,r=this.matchMappings[t]={defaultToken:"text"},s="g",a=[],l=0;l<n.length;l++){var c=n[l];if(c.defaultToken&&(r.defaultToken=c.defaultToken),c.caseInsensitive&&(s="gi"),null!=c.regex){c.regex instanceof RegExp&&(c.regex=c.regex.toString().slice(1,-1));var h=c.regex,u=new RegExp("(?:("+h+")|(.))").exec("a").length-2;Array.isArray(c.token)?1==c.token.length||1==u?c.token=c.token[0]:u-1!=c.token.length?(this.reportError("number of classes and regexp groups doesn't match",{rule:c,groupCount:u-1}),c.token=c.token[0]):(c.tokenArray=c.token,c.token=null,c.onMatch=this.$arrayTokens):"function"==typeof c.token&&!c.onMatch&&(c.onMatch=1<u?this.$applyToken:c.token),1<u&&(/\\\d/.test(c.regex)?h=c.regex.replace(/\\([0-9]+)/g,function(e,t){return"\\"+(parseInt(t,10)+o+1)}):(u=1,h=this.removeCapturingGroups(c.regex)),!c.splitRegex&&"string"!=typeof c.token&&a.push(c)),r[o]=l,o+=u,i.push(h),c.onMatch||(c.onMatch=null)}}i.length||(r[0]=0,i.push("$")),a.forEach(function(e){e.splitRegex=this.createSplitterRegexp(e.regex,s)},this),this.regExps[t]=new RegExp("("+i.join(")|(")+")|($)",s)}};(function(){this.$setMaxTokenCount=function(e){b=0|e},this.$applyToken=function(e){var t=this.splitRegex.exec(e).slice(1),n=this.token.apply(this,t);if("string"==typeof n)return[{type:n,value:e}];for(var i=[],o=0,r=n.length;o<r;o++)t[o]&&(i[i.length]={type:n[o],value:t[o]});return i},this.$arrayTokens=function(e){if(!e)return[];var t=this.splitRegex.exec(e);if(!t)return"text";for(var n=[],i=this.tokenArray,o=0,r=i.length;o<r;o++)t[o+1]&&(n[n.length]={type:i[o],value:t[o+1]});return n},this.removeCapturingGroups=function(e){return e.replace(/\\.|\[(?:\\.|[^\\\]])*|\(\?[:=!]|(\()/g,function(e,t){return t?"(?:":e})},this.createSplitterRegexp=function(e,t){if(-1!=e.indexOf("(?=")){var s=0,a=!1,l={};e.replace(/(\\.)|(\((?:\?[=!])?)|(\))|([\[\]])/g,function(e,t,n,i,o,r){return a?a="]"!=o:o?a=!0:i?(s==l.stack&&(l.end=r+1,l.stack=-1),s--):n&&(s++,1!=n.length&&(l.stack=s,l.start=r)),e}),null!=l.end&&/^\)*$/.test(e.substr(l.end))&&(e=e.substring(0,l.start)+e.substr(l.end))}return"^"!=e.charAt(0)&&(e="^"+e),"$"!=e.charAt(e.length-1)&&(e+="$"),new RegExp(e,(t||"").replace("g",""))},this.getLineTokens=function(e,t){if(t&&"string"!=typeof t)"#tmp"===(t=(n=t.slice(0))[0])&&(n.shift(),t=n.shift());else var n=[];var i=t||"start",o=this.states[i];o||(i="start",o=this.states[i]);for(var r,s=this.matchMappings[i],a=this.regExps[i],l=[],c=a.lastIndex=0,h=0,u={type:null,value:""};r=a.exec(e);){var d=s.defaultToken,g=null,p=r[0],f=a.lastIndex;if(f-p.length>c){var m=e.substring(c,f-p.length);u.type==d?u.value+=m:(u.type&&l.push(u),u={type:d,value:m})}for(var v=0;v<r.length-2;v++)if(r[v+1]!==undefined){d=(g=o[s[v]]).onMatch?g.onMatch(p,i,n,e):g.token,g.next&&(i="string"==typeof g.next?g.next:g.next(i,n),(o=this.states[i])||(this.reportError("state doesn't exist",i),i="start",o=this.states[i]),s=this.matchMappings[i],c=f,(a=this.regExps[i]).lastIndex=f),g.consumeLineEnd&&(c=f);break}if(p)if("string"==typeof d)g&&!1===g.merge||u.type!==d?(u.type&&l.push(u),u={type:d,value:p}):u.value+=p;else if(d){u.type&&l.push(u),u={type:null,value:""};for(v=0;v<d.length;v++)l.push(d[v])}if(c==e.length)break;if(c=f,h++>b){for(h>2*e.length&&this.reportError("infinite loop with in ace tokenizer",{startState:t,line:e});c<e.length;)u.type&&l.push(u),u={value:e.substring(c,c+=500),type:"overflow"};i="start",n=[];break}}return u.type&&l.push(u),1<n.length&&n[0]!==i&&n.unshift("#tmp",i),{tokens:l,state:n.length?n:i}},this.reportError=n.reportError}).call(i.prototype),t.Tokenizer=i}),ace.define("ace/mode/text_highlight_rules",["require","exports","module","ace/lib/lang"],function(e,t){"use strict";var c=e("../lib/lang"),n=function(){this.$rules={start:[{token:"empty_line",regex:"^$"},{defaultToken:"text"}]}};(function(){this.addRules=function(e,t){if(t)for(var n in e){for(var i=e[n],o=0;o<i.length;o++){var r=i[o];(r.next||r.onMatch)&&("string"==typeof r.next&&0!==r.next.indexOf(t)&&(r.next=t+r.next),r.nextState&&0!==r.nextState.indexOf(t)&&(r.nextState=t+r.nextState))}this.$rules[t+n]=i}else for(var n in e)this.$rules[n]=e[n]},this.getRules=function(){return this.$rules},this.embedRules=function(e,t,n,i,o){var r="function"==typeof e?(new e).getRules():e;if(i)for(var s=0;s<i.length;s++)i[s]=t+i[s];else for(var a in i=[],r)i.push(t+a);if(this.addRules(r,t),n){var l=Array.prototype[o?"push":"unshift"];for(s=0;s<i.length;s++)l.apply(this.$rules[i[s]],c.deepCopy(n))}this.$embeds||(this.$embeds=[]),this.$embeds.push(t)},this.getEmbeds=function(){return this.$embeds};var g=function(e,t){return("start"!=e||t.length)&&t.unshift(this.nextState,e),this.nextState},p=function(e,t){return t.shift(),t.shift()||"start"};this.normalizeRules=function(){function h(e){var t=d[e];t.processed=!0;for(var n=0;n<t.length;n++){var i=t[n],o=null;Array.isArray(i)&&(o=i,i={}),!i.regex&&i.start&&(i.regex=i.start,i.next||(i.next=[]),i.next.push({defaultToken:i.token},{token:i.token+".end",regex:i.end||i.start,next:"pop"}),i.token=i.token+".start",i.push=!0)
4
- ;var r=i.next||i.push;if(r&&Array.isArray(r)){var s=i.stateName;s||("string"!=typeof(s=i.token)&&(s=s[0]||""),d[s]&&(s+=u++)),d[s]=r,h(i.next=s)}else"pop"==r&&(i.next=p);if(i.push&&(i.nextState=i.next||i.push,i.next=g,delete i.push),i.rules)for(var a in i.rules)d[a]?d[a].push&&d[a].push.apply(d[a],i.rules[a]):d[a]=i.rules[a];var l="string"==typeof i?i:i.include;if(l&&(o=Array.isArray(l)?l.map(function(e){return d[e]}):d[l]),o){var c=[n,1].concat(o);i.noEscape&&(c=c.filter(function(e){return!e.next})),t.splice.apply(t,c),n--}i.keywordMap&&(i.token=this.createKeywordMapper(i.keywordMap,i.defaultToken||"text",i.caseInsensitive),delete i.defaultToken)}}var u=0,d=this.$rules;Object.keys(d).forEach(h,this)},this.createKeywordMapper=function(o,t,r,s){var a=Object.create(null);return Object.keys(o).forEach(function(e){var t=o[e];r&&(t=t.toLowerCase());for(var n=t.split(s||"|"),i=n.length;i--;)a[n[i]]=e}),Object.getPrototypeOf(a)&&(a.__proto__=null),this.$keywordList=Object.keys(a),o=null,r?function(e){return a[e.toLowerCase()]||t}:function(e){return a[e]||t}},this.getKeywords=function(){return this.$keywords}}).call(n.prototype),t.TextHighlightRules=n}),ace.define("ace/mode/behaviour",["require","exports","module"],function(e,t){"use strict";var n=function(){this.$behaviours={}};(function(){this.add=function(e,t,n){switch(undefined){case this.$behaviours:this.$behaviours={};case this.$behaviours[e]:this.$behaviours[e]={}}this.$behaviours[e][t]=n},this.addBehaviours=function(e){for(var t in e)for(var n in e[t])this.add(t,n,e[t][n])},this.remove=function(e){this.$behaviours&&this.$behaviours[e]&&delete this.$behaviours[e]},this.inherit=function(e,t){if("function"==typeof e)var n=(new e).getBehaviours(t);else n=e.getBehaviours(t);this.addBehaviours(n)},this.getBehaviours=function(e){if(!e)return this.$behaviours;for(var t={},n=0;n<e.length;n++)this.$behaviours[e[n]]&&(t[e[n]]=this.$behaviours[e[n]]);return t}}).call(n.prototype),t.Behaviour=n}),ace.define("ace/token_iterator",["require","exports","module","ace/range"],function(e,t){"use strict";var n=e("./range").Range,i=function(e,t,n){this.$session=e,this.$row=t,this.$rowTokens=e.getTokens(t);var i=e.getTokenAt(t,n);this.$tokenIndex=i?i.index:-1};(function(){this.stepBackward=function(){for(this.$tokenIndex-=1;this.$tokenIndex<0;){if(this.$row-=1,this.$row<0)return this.$row=0,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=this.$rowTokens.length-1}return this.$rowTokens[this.$tokenIndex]},this.stepForward=function(){var e;for(this.$tokenIndex+=1;this.$tokenIndex>=this.$rowTokens.length;){if(this.$row+=1,e||(e=this.$session.getLength()),this.$row>=e)return this.$row=e-1,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=0}return this.$rowTokens[this.$tokenIndex]},this.getCurrentToken=function(){return this.$rowTokens[this.$tokenIndex]},this.getCurrentTokenRow=function(){return this.$row},this.getCurrentTokenColumn=function(){var e=this.$rowTokens,t=this.$tokenIndex,n=e[t].start;if(n!==undefined)return n;for(n=0;0<t;)n+=e[t-=1].value.length;return n},this.getCurrentTokenPosition=function(){return{row:this.$row,column:this.getCurrentTokenColumn()}},this.getCurrentTokenRange=function(){var e=this.$rowTokens[this.$tokenIndex],t=this.getCurrentTokenColumn();return new n(this.$row,t,this.$row,t+e.value.length)}}).call(i.prototype),t.TokenIterator=i}),ace.define("ace/mode/behaviour/cstyle",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator","ace/lib/lang"],function(e,t){"use strict";var p,n=e("../../lib/oop"),i=e("../behaviour").Behaviour,r=e("../../token_iterator").TokenIterator,f=e("../../lib/lang"),s=["text","paren.rparen","rparen","paren","punctuation.operator"],a=["text","paren.rparen","rparen","paren","punctuation.operator","comment"],o={},k={'"':'"',"'":"'"},C=function(e){var t=-1;if(e.multiSelect&&(t=e.selection.index,o.rangeCount!=e.multiSelect.rangeCount&&(o={rangeCount:e.multiSelect.rangeCount})),o[t])return p=o[t];p=o[t]={autoInsertedBrackets:0,autoInsertedRow:-1,autoInsertedLineEnd:"",maybeInsertedBrackets:0,maybeInsertedRow:-1,maybeInsertedLineStart:"",maybeInsertedLineEnd:""}},S=function(e,t,n,i){var o=e.end.row-e.start.row;return{text:n+t+i,selection:[0,e.start.column+1,o,e.end.column+(o?0:1)]}},m=function(g){this.add("braces","insertion",function(e,t,n,i,o){var r=n.getCursorPosition(),s=i.doc.getLine(r.row);if("{"==o){C(n);var a=n.getSelectionRange(),l=i.doc.getTextRange(a);if(""!==l&&"{"!==l&&n.getWrapBehavioursEnabled())return S(a,l,"{","}");if(m.isSaneInsertion(n,i))return/[\]\}\)]/.test(s[r.column])||n.inMultiSelectMode||g&&g.braces?(m.recordAutoInsert(n,i,"}"),{text:"{}",selection:[1,1]}):(m.recordMaybeInsert(n,i,"{"),{text:"{",selection:[1,1]})}else if("}"==o){if(C(n),"}"==s.substring(r.column,r.column+1))if(null!==i.$findOpeningBracket("}",{column:r.column+1,row:r.row})&&m.isAutoInsertedClosing(r,s,o))return m.popAutoInsertedClosing(),{text:"",selection:[1,1]}}else{if("\n"==o||"\r\n"==o){C(n);var c="";if(m.isMaybeInsertedClosing(r,s)&&(c=f.stringRepeat("}",p.maybeInsertedBrackets),m.clearMaybeInsertedClosing()),"}"===s.substring(r.column,r.column+1)){var h=i.findMatchingBracket({row:r.row,column:r.column+1},"}");if(!h)return null;var u=this.$getIndent(i.getLine(h.row))}else{if(!c)return void m.clearMaybeInsertedClosing();u=this.$getIndent(s)}var d=u+i.getTabString();return{text:"\n"+d+"\n"+u+c,selection:[1,d.length,1,d.length]}}m.clearMaybeInsertedClosing()}}),this.add("braces","deletion",function(e,t,n,i,o){var r=i.doc.getTextRange(o);if(!o.isMultiLine()&&"{"==r){if(C(n),"}"==i.doc.getLine(o.start.row).substring(o.end.column,o.end.column+1))return o.end.column++,o;p.maybeInsertedBrackets--}}),this.add("parens","insertion",function(e,t,n,i,o){if("("==o){C(n);var r=n.getSelectionRange(),s=i.doc.getTextRange(r);if(""!==s&&n.getWrapBehavioursEnabled())return S(r,s,"(",")");if(m.isSaneInsertion(n,i))return m.recordAutoInsert(n,i,")"),{text:"()",selection:[1,1]}}else if(")"==o){C(n);var a=n.getCursorPosition(),l=i.doc.getLine(a.row);if(")"==l.substring(a.column,a.column+1))if(null!==i.$findOpeningBracket(")",{column:a.column+1,row:a.row})&&m.isAutoInsertedClosing(a,l,o))return m.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}),this.add("parens","deletion",function(e,t,n,i,o){var r=i.doc.getTextRange(o);if(!o.isMultiLine()&&"("==r&&(C(n),")"==i.doc.getLine(o.start.row).substring(o.start.column+1,o.start.column+2)))return o.end.column++,o}),this.add("brackets","insertion",function(e,t,n,i,o){if("["==o){C(n);var r=n.getSelectionRange(),s=i.doc.getTextRange(r);if(""!==s&&n.getWrapBehavioursEnabled())return S(r,s,"[","]");if(m.isSaneInsertion(n,i))return m.recordAutoInsert(n,i,"]"),{text:"[]",selection:[1,1]}}else if("]"==o){C(n);var a=n.getCursorPosition(),l=i.doc.getLine(a.row);if("]"==l.substring(a.column,a.column+1))if(null!==i.$findOpeningBracket("]",{column:a.column+1,row:a.row})&&m.isAutoInsertedClosing(a,l,o))return m.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}),this.add("brackets","deletion",function(e,t,n,i,o){var r=i.doc.getTextRange(o);if(!o.isMultiLine()&&"["==r&&(C(n),"]"==i.doc.getLine(o.start.row).substring(o.start.column+1,o.start.column+2)))return o.end.column++,o}),this.add("string_dquotes","insertion",function(e,t,n,i,o){var r=i.$mode.$quotes||k;if(1==o.length&&r[o]){if(this.lineCommentStart&&-1!=this.lineCommentStart.indexOf(o))return;C(n);var s=o,a=n.getSelectionRange(),l=i.doc.getTextRange(a);if(""!==l&&(1!=l.length||!r[l])&&n.getWrapBehavioursEnabled())return S(a,l,s,s);if(!l){var c=n.getCursorPosition(),h=i.doc.getLine(c.row),u=h.substring(c.column-1,c.column),d=h.substring(c.column,c.column+1),g=i.getTokenAt(c.row,c.column),p=i.getTokenAt(c.row,c.column+1);if("\\"==u&&g&&/escape/.test(g.type))return null;var f,m=g&&/string|escape/.test(g.type),v=!p||/string|escape/.test(p.type);if(d==s)(f=m!==v)&&/string\.end/.test(p.type)&&(f=!1);else{if(m&&!v)return null;if(m&&v)return null;var b=i.$mode.tokenRe;b.lastIndex=0;var w=b.test(u);b.lastIndex=0;var y=b.test(u);if(w||y)return null;if(d&&!/[\s;,.})\]\\]/.test(d))return null;var x=h[c.column-2];if(u==s&&(x==s||b.test(x)))return null;f=!0}return{text:f?s+s:"",selection:[1,1]}}}}),this.add("string_dquotes","deletion",function(e,t,n,i,o){var r=i.$mode.$quotes||k,s=i.doc.getTextRange(o);if(!o.isMultiLine()&&r.hasOwnProperty(s)&&(C(n),i.doc.getLine(o.start.row).substring(o.start.column+1,o.start.column+2)==s))return o.end.column++,o})};m.isSaneInsertion=function(e,t){var n=e.getCursorPosition(),i=new r(t,n.row,n.column);if(!this.$matchTokenType(i.getCurrentToken()||"text",s)){if(/[)}\]]/.test(e.session.getLine(n.row)[n.column]))return!0;var o=new r(t,n.row,n.column+1);if(!this.$matchTokenType(o.getCurrentToken()||"text",s))return!1}return i.stepForward(),i.getCurrentTokenRow()!==n.row||this.$matchTokenType(i.getCurrentToken()||"text",a)},m.$matchTokenType=function(e,t){return-1<t.indexOf(e.type||e)},m.recordAutoInsert=function(e,t,n){var i=e.getCursorPosition(),o=t.doc.getLine(i.row);this.isAutoInsertedClosing(i,o,p.autoInsertedLineEnd[0])||(p.autoInsertedBrackets=0),p.autoInsertedRow=i.row,p.autoInsertedLineEnd=n+o.substr(i.column),p.autoInsertedBrackets++},m.recordMaybeInsert=function(e,t,n){var i=e.getCursorPosition(),o=t.doc.getLine(i.row);this.isMaybeInsertedClosing(i,o)||(p.maybeInsertedBrackets=0),p.maybeInsertedRow=i.row,p.maybeInsertedLineStart=o.substr(0,i.column)+n,p.maybeInsertedLineEnd=o.substr(i.column),p.maybeInsertedBrackets++},m.isAutoInsertedClosing=function(e,t,n){return 0<p.autoInsertedBrackets&&e.row===p.autoInsertedRow&&n===p.autoInsertedLineEnd[0]&&t.substr(e.column)===p.autoInsertedLineEnd},m.isMaybeInsertedClosing=function(e,t){return 0<p.maybeInsertedBrackets&&e.row===p.maybeInsertedRow&&t.substr(e.column)===p.maybeInsertedLineEnd&&t.substr(0,e.column)==p.maybeInsertedLineStart},m.popAutoInsertedClosing=function(){p.autoInsertedLineEnd=p.autoInsertedLineEnd.substr(1),p.autoInsertedBrackets--},m.clearMaybeInsertedClosing=function(){p&&(p.maybeInsertedBrackets=0,p.maybeInsertedRow=-1)},n.inherits(m,i),t.CstyleBehaviour=m}),ace.define("ace/unicode",["require","exports","module"],function(e,t){"use strict";for(var n=[48,9,8,25,5,0,2,25,48,0,11,0,5,0,6,22,2,30,2,457,5,11,15,4,8,0,2,0,18,116,2,1,3,3,9,0,2,2,2,0,2,19,2,82,2,138,2,4,3,155,12,37,3,0,8,38,10,44,2,0,2,1,2,1,2,0,9,26,6,2,30,10,7,61,2,9,5,101,2,7,3,9,2,18,3,0,17,58,3,100,15,53,5,0,6,45,211,57,3,18,2,5,3,11,3,9,2,1,7,6,2,2,2,7,3,1,3,21,2,6,2,0,4,3,3,8,3,1,3,3,9,0,5,1,2,4,3,11,16,2,2,5,5,1,3,21,2,6,2,1,2,1,2,1,3,0,2,4,5,1,3,2,4,0,8,3,2,0,8,15,12,2,2,8,2,2,2,21,2,6,2,1,2,4,3,9,2,2,2,2,3,0,16,3,3,9,18,2,2,7,3,1,3,21,2,6,2,1,2,4,3,8,3,1,3,2,9,1,5,1,2,4,3,9,2,0,17,1,2,5,4,2,2,3,4,1,2,0,2,1,4,1,4,2,4,11,5,4,4,2,2,3,3,0,7,0,15,9,18,2,2,7,2,2,2,22,2,9,2,4,4,7,2,2,2,3,8,1,2,1,7,3,3,9,19,1,2,7,2,2,2,22,2,9,2,4,3,8,2,2,2,3,8,1,8,0,2,3,3,9,19,1,2,7,2,2,2,22,2,15,4,7,2,2,2,3,10,0,9,3,3,9,11,5,3,1,2,17,4,23,2,8,2,0,3,6,4,0,5,5,2,0,2,7,19,1,14,57,6,14,2,9,40,1,2,0,3,1,2,0,3,0,7,3,2,6,2,2,2,0,2,0,3,1,2,12,2,2,3,4,2,0,2,5,3,9,3,1,35,0,24,1,7,9,12,0,2,0,2,0,5,9,2,35,5,19,2,5,5,7,2,35,10,0,58,73,7,77,3,37,11,42,2,0,4,328,2,3,3,6,2,0,2,3,3,40,2,3,3,32,2,3,3,6,2,0,2,3,3,14,2,56,2,3,3,66,5,0,33,15,17,84,13,619,3,16,2,25,6,74,22,12,2,6,12,20,12,19,13,12,2,2,2,1,13,51,3,29,4,0,5,1,3,9,34,2,3,9,7,87,9,42,6,69,11,28,4,11,5,11,11,39,3,4,12,43,5,25,7,10,38,27,5,62,2,28,3,10,7,9,14,0,89,75,5,9,18,8,13,42,4,11,71,55,9,9,4,48,83,2,2,30,14,230,23,280,3,5,3,37,3,5,3,7,2,0,2,0,2,0,2,30,3,52,2,6,2,0,4,2,2,6,4,3,3,5,5,12,6,2,2,6,67,1,20,0,29,0,14,0,17,4,60,12,5,0,4,11,18,0,5,0,3,9,2,0,4,4,7,0,2,0,2,0,2,3,2,10,3,3,6,4,5,0,53,1,2684,46,2,46,2,132,7,6,15,37,11,53,10,0,17,22,10,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,31,48,0,470,1,36,5,2,4,6,1,5,85,3,1,3,2,2,89,2,3,6,40,4,93,18,23,57,15,513,6581,75,20939,53,1164,68,45,3,268,4,27,21,31,3,13,13,1,2,24,9,69,11,1,38,8,3,102,3,1,111,44,25,51,13,68,12,9,7,23,4,0,5,45,3,35,13,28,4,64,15,10,39,54,10,13,3,9,7,22,4,1,5,66,25,2,227,42,2,1,3,9,7,11171,13,22,5,48,8453,301,3,61,3,105,39,6,13,4,6,11,2,12,2,4,2,0,2,1,2,1,2,107,34,362,19,63,3,53,41,11,5,15,17,6,13,1,25,2,33,4,2,134,20,9,8,25,5,0,2,25,12,88,4,5,3,5,3,5,3,2],i=0,o=[],r=0;r<n.length;r+=2)o.push(i+=n[r]),n[r+1]&&o.push(45,i+=n[r+1]);t.wordChars=String.fromCharCode.apply(null,o)}),ace.define("ace/mode/text",["require","exports","module","ace/config","ace/tokenizer","ace/mode/text_highlight_rules","ace/mode/behaviour/cstyle","ace/unicode","ace/lib/lang","ace/token_iterator","ace/range"],function(e,t){"use strict";var s=e("../config"),n=e("../tokenizer").Tokenizer,i=e("./text_highlight_rules").TextHighlightRules,o=e("./behaviour/cstyle").CstyleBehaviour,r=e("../unicode"),x=e("../lib/lang"),f=e("../token_iterator").TokenIterator,m=e("../range").Range,a=function(){this.HighlightRules=i};(function(){this.$defaultBehaviour=new o,this.tokenRe=new RegExp("^["+r.wordChars+"\\$_]+","g"),this.nonTokenRe=new RegExp("^(?:[^"+r.wordChars+"\\$_]|\\s])+","g"),this.getTokenizer=function(){return this.$tokenizer||(this.$highlightRules=this.$highlightRules||new this.HighlightRules(this.$highlightRuleConfig),this.$tokenizer=new n(this.$highlightRules.getRules())),this.$tokenizer},this.lineCommentStart="",this.blockComment="",this.toggleCommentLines=function(e,o,n,i){function t(e){for(var t=n;t<=i;t++)e(r.getLine(t),t)}var r=o.doc,s=!0,a=!0,l=Infinity,c=o.getTabSize(),h=!1;if(this.lineCommentStart){if(Array.isArray(this.lineCommentStart))f=this.lineCommentStart.map(x.escapeRegExp).join("|"),g=this.lineCommentStart[0];else f=x.escapeRegExp(this.lineCommentStart),g=this.lineCommentStart;f=new RegExp("^(\\s*)(?:"+f+") ?"),h=o.getUseSoftTabs();b=function(e,t){var n=e.match(f);if(n){var i=n[1].length,o=n[0].length;!d(e,i,o)&&" "==n[0][o-1]&&o--,r.removeInLine(t,i,o)}};var u=g+" ",d=(v=function(e,t){s&&!/\S/.test(e)||(d(e,l,l)?r.insertInLine({row:t,column:l},u):r.insertInLine({row:t,column:l},g))},w=function(e){return f.test(e)},function(e,t,n){for(var i=0;t--&&" "==e.charAt(t);)i++;if(i%c!=0)return!1;for(i=0;" "==e.charAt(n++);)i++;return 2<c?i%c!=c-1:i%c==0})}else{if(!this.blockComment)return!1;var g=this.blockComment.start,p=this.blockComment.end,f=new RegExp("^(\\s*)(?:"+x.escapeRegExp(g)+")"),m=new RegExp("(?:"+x.escapeRegExp(p)+")\\s*$"),v=function(e,t){w(e,t)||s&&!/\S/.test(e)||(r.insertInLine({row:t,column:e.length},p),r.insertInLine({row:t,column:l},g))},b=function(e,t){var n;(n=e.match(m))&&r.removeInLine(t,e.length-n[0].length,e.length),(n=e.match(f))&&r.removeInLine(t,n[1].length,n[0].length)},w=function(e,t){if(f.test(e))return!0;for(var n=o.getTokens(t),i=0;i<n.length;i++)if("comment"===n[i].type)return!0}}var y=Infinity;t(function(e,t){var n=e.search(/\S/);-1!==n?(n<l&&(l=n),a&&!w(e,t)&&(a=!1)):y>e.length&&(y=e.length)}),l==Infinity&&(l=y,a=s=!1),h&&l%c!=0&&(l=Math.floor(l/c)*c),t(a?b:v)},this.toggleBlockComment=function(e,t,n,i){var o=this.blockComment;if(o){!o.start&&o[0]&&(o=o[0]);var r,s,a=(g=new f(t,i.row,i.column)).getCurrentToken(),l=(t.selection,t.selection.toOrientedRange());if(a&&/comment/.test(a.type)){for(var c,h;a&&/comment/.test(a.type);){if(-1!=(p=a.value.indexOf(o.start))){var u=g.getCurrentTokenRow(),d=g.getCurrentTokenColumn()+p;c=new m(u,d,u,d+o.start.length);break}a=g.stepBackward()}var g;for(a=(g=new f(t,i.row,i.column)).getCurrentToken();a&&/comment/.test(a.type);){var p;if(-1!=(p=a.value.indexOf(o.end))){u=g.getCurrentTokenRow(),d=g.getCurrentTokenColumn()+p;h=new m(u,d,u,d+o.end.length);break}a=g.stepForward()}h&&t.remove(h),c&&(t.remove(c),r=c.start.row,s=-o.start.length)}else s=o.start.length,r=n.start.row,t.insert(n.end,o.end),t.insert(n.start,o.start);l.start.row==r&&(l.start.column+=s),l.end.row==r&&(l.end.column+=s),t.selection.fromOrientedRange(l)}},this.getNextLineIndent=function(e,t){return this.$getIndent(t)},this.checkOutdent=function(){return!1},this.autoOutdent=function(){},this.$getIndent=function(e){return e.match(/^\s*/)[0]},this.createWorker=function(){return null},this.createModeDelegates=function(e){for(var i in this.$embeds=[],this.$modes={},e)if(e[i]){var t=e[i],n=t.prototype.$id,o=s.$modes[n];o||(s.$modes[n]=o=new t),s.$modes[i]||(s.$modes[i]=o),this.$embeds.push(i),this.$modes[i]=o}var r=["toggleBlockComment","toggleCommentLines","getNextLineIndent","checkOutdent","autoOutdent","transformAction","getCompletions"];for(i=0;i<r.length;i++)!function(e){var t=r[i],n=e[t];e[r[i]]=function(){return this.$delegator(t,arguments,n)}}(this)},this.$delegator=function(e,t,n){var i=t[0]||"start";if("string"!=typeof i){if(Array.isArray(i[2])){var o=i[2][i[2].length-1];if(s=this.$modes[o])return s[e].apply(s,[i[1]].concat([].slice.call(t,1)))}i=i[0]||"start"}for(var r=0;r<this.$embeds.length;r++)if(this.$modes[this.$embeds[r]]){var s,a=i.split(this.$embeds[r]);if(!a[0]&&a[1])return t[0]=a[1],(s=this.$modes[this.$embeds[r]])[e].apply(s,t)}var l=n.apply(this,t);return n?l:undefined},this.transformAction=function(e,t,n,i,o){if(this.$behaviour){var r=this.$behaviour.getBehaviours();for(var s in r)if(r[s][t]){var a=r[s][t].apply(this,arguments);if(a)return a}}},this.getKeywords=function(e){if(!this.completionKeywords){var t=this.$tokenizer.rules,n=[];for(var i in t)for(var o=t[i],r=0,s=o.length;r<s;r++)if("string"==typeof o[r].token)/keyword|support|storage/.test(o[r].token)&&n.push(o[r].regex);else if("object"==typeof o[r].token)for(var a=0,l=o[r].token.length;a<l;a++)if(/keyword|support|storage/.test(o[r].token[a])){i=o[r].regex.match(/\(.+?\)/g)[a];n.push(i.substr(1,i.length-2))}this.completionKeywords=n}return e?n.concat(this.$keywordList||[]):this.$keywordList},this.$createKeywordList=function(){return this.$highlightRules||this.getTokenizer(),this.$keywordList=this.$highlightRules.$keywordList||[]},this.getCompletions=function(){return(this.$keywordList||this.$createKeywordList()).map(function(e){return{name:e,value:e,score:0,meta:"keyword"}})},this.$id="ace/mode/text"}).call(a.prototype),t.Mode=a}),ace.define("ace/apply_delta",["require","exports","module"],function(e,t){"use strict";t.applyDelta=function(e,t){var n=t.start.row,i=t.start.column,o=e[n]||"";switch(t.action){case"insert":if(1===t.lines.length)e[n]=o.substring(0,i)+t.lines[0]+o.substring(i);else{var r=[n,1].concat(t.lines);e.splice.apply(e,r),e[n]=o.substring(0,i)+e[n],e[n+t.lines.length-1]+=o.substring(i)}break;case"remove":var s=t.end.column,a=t.end.row;n===a?e[n]=o.substring(0,i)+o.substring(s):e.splice(n,a-n+1,o.substring(0,i)+e[a].substring(s))}}}),ace.define("ace/anchor",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(e,t){"use strict";var i=e("./lib/oop"),o=e("./lib/event_emitter").EventEmitter,n=t.Anchor=function(e,t,n){this.$onChange=this.onChange.bind(this),this.attach(e),void 0===n?this.setPosition(t.row,t.column):this.setPosition(t,n)};(function(){function l(e,t,n){var i=n?e.column<=t.column:e.column<t.column;return e.row<t.row||e.row==t.row&&i}function n(e,t,n){var i="insert"==e.action,o=(i?1:-1)*(e.end.row-e.start.row),r=(i?1:-1)*(e.end.column-e.start.column),s=e.start,a=i?s:e.end;return l(t,s,n)?{row:t.row,column:t.column}:l(a,t,!n)?{row:t.row+o,column:t.column+(t.row==a.row?r:0)}:{row:s.row,column:s.column}}i.implement(this,o),this.getPosition=function(){return this.$clipPositionToDocument(this.row,this.column)},this.getDocument=function(){return this.document},this.$insertRight=!1,this.onChange=function(e){if(!(e.start.row==e.end.row&&e.start.row!=this.row||e.start.row>this.row)){var t=n(e,{row:this.row,column:this.column},this.$insertRight);this.setPosition(t.row,t.column,!0)}},this.setPosition=function(e,t,n){var i;if(i=n?{row:e,column:t}:this.$clipPositionToDocument(e,t),this.row!=i.row||this.column!=i.column){var o={row:this.row,column:this.column};this.row=i.row,this.column=i.column,this._signal("change",{old:o,value:i})}},this.detach=function(){this.document.removeEventListener("change",this.$onChange)},this.attach=function(e){this.document=e||this.document,this.document.on("change",this.$onChange)},this.$clipPositionToDocument=function(e,t){var n={};return e>=this.document.getLength()?(n.row=Math.max(0,this.document.getLength()-1),n.column=this.document.getLine(n.row).length):e<0?(n.row=0,n.column=0):(n.row=e,n.column=Math.min(this.document.getLine(n.row).length,Math.max(0,t))),t<0&&(n.column=0),n}}).call(n.prototype)}),ace.define("ace/document",["require","exports","module","ace/lib/oop","ace/apply_delta","ace/lib/event_emitter","ace/range","ace/anchor"],function(e,t){"use strict";var n=e("./lib/oop"),i=e("./apply_delta").applyDelta,o=e("./lib/event_emitter").EventEmitter,h=e("./range").Range,r=e("./anchor").Anchor,s=function(e){this.$lines=[""],0===e.length?this.$lines=[""]:Array.isArray(e)?this.insertMergedLines({row:0,column:0},e):this.insert({row:0,column:0},e)};(function(){n.implement(this,o),this.setValue=function(e){var t=this.getLength()-1;this.remove(new h(0,0,t,this.getLine(t).length)),this.insert({row:0,column:0},e)},this.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},this.createAnchor=function(e,t){return new r(this,e,t)},0==="aaa".split(/a/).length?this.$split=function(e){return e.replace(/\r\n|\r/g,"\n").split("\n")}:this.$split=function(e){return e.split(/\r\n|\r|\n/)},this.$detectNewLine=function(e){var t=e.match(/^.*?(\r\n|\r|\n)/m);this.$autoNewLine=t?t[1]:"\n",this._signal("changeNewLineMode")},this.getNewLineCharacter=function(){switch(this.$newLineMode){case"windows":return"\r\n";case"unix":return"\n";default:return this.$autoNewLine||"\n"}},this.$autoNewLine="",this.$newLineMode="auto",this.setNewLineMode=function(e){this.$newLineMode!==e&&(this.$newLineMode=e,this._signal("changeNewLineMode"))},this.getNewLineMode=function(){return this.$newLineMode},this.isNewLine=function(e){return"\r\n"==e||"\r"==e||"\n"==e},this.getLine=function(e){return this.$lines[e]||""},this.getLines=function(e,t){return this.$lines.slice(e,t+1)},this.getAllLines=function(){return this.getLines(0,this.getLength())},this.getLength=function(){return this.$lines.length},this.getTextRange=function(e){return this.getLinesForRange(e).join(this.getNewLineCharacter())},this.getLinesForRange=function(e){var t;if(e.start.row===e.end.row)t=[this.getLine(e.start.row).substring(e.start.column,e.end.column)];else{(t=this.getLines(e.start.row,e.end.row))[0]=(t[0]||"").substring(e.start.column);var n=t.length-1;e.end.row-e.start.row==n&&(t[n]=t[n].substring(0,e.end.column))}return t},this.insertLines=function(e,t){return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."),this.insertFullLines(e,t)},this.removeLines=function(e,t){return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."),this.removeFullLines(e,t)},this.insertNewLine=function(e){return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead."),this.insertMergedLines(e,["",""])},this.insert=function(e,t){return this.getLength()<=1&&this.$detectNewLine(t),this.insertMergedLines(e,this.$split(t))},this.insertInLine=function(e,t){var n=this.clippedPos(e.row,e.column),i=this.pos(e.row,e.column+t.length);return this.applyDelta({start:n,end:i,action:"insert",lines:[t]},!0),this.clonePos(i)},this.clippedPos=function(e,t){var n=this.getLength();e===undefined?e=n:e<0?e=0:n<=e&&(e=n-1,t=undefined);var i=this.getLine(e);return t==undefined&&(t=i.length),{row:e,column:t=Math.min(Math.max(t,0),i.length)}},this.clonePos=function(e){return{row:e.row,column:e.column}},this.pos=function(e,t){return{row:e,column:t}},this.$clipPosition=function(e){var t=this.getLength();return e.row>=t?(e.row=Math.max(0,t-1),e.column=this.getLine(t-1).length):(e.row=Math.max(0,e.row),e.column=Math.min(Math.max(e.column,0),this.getLine(e.row).length)),e},this.insertFullLines=function(e,t){var n=0;(e=Math.min(Math.max(e,0),this.getLength()))<this.getLength()?(t=t.concat([""]),n=0):(t=[""].concat(t),e--,n=this.$lines[e].length),this.insertMergedLines({row:e,column:n},t)},this.insertMergedLines=function(e,t){var n=this.clippedPos(e.row,e.column),i={row:n.row+t.length-1,column:(1==t.length?n.column:0)+t[t.length-1].length};return this.applyDelta({start:n,end:i,action:"insert",lines:t}),this.clonePos(i)},this.remove=function(e){var t=this.clippedPos(e.start.row,e.start.column),n=this.clippedPos(e.end.row,e.end.column);return this.applyDelta({start:t,end:n,action:"remove",lines:this.getLinesForRange({start:t,end:n})}),this.clonePos(t)},this.removeInLine=function(e,t,n){var i=this.clippedPos(e,t),o=this.clippedPos(e,n);return this.applyDelta({start:i,end:o,action:"remove",lines:this.getLinesForRange({start:i,end:o})},!0),this.clonePos(i)},this.removeFullLines=function(e,t){e=Math.min(Math.max(0,e),this.getLength()-1);var n=(t=Math.min(Math.max(0,t),this.getLength()-1))==this.getLength()-1&&0<e,i=t<this.getLength()-1,o=n?e-1:e,r=n?this.getLine(o).length:0,s=i?t+1:t,a=i?0:this.getLine(s).length,l=new h(o,r,s,a),c=this.$lines.slice(e,t+1);return this.applyDelta({start:l.start,end:l.end,action:"remove",lines:this.getLinesForRange(l)}),c},this.removeNewLine=function(e){e<this.getLength()-1&&0<=e&&this.applyDelta({start:this.pos(e,this.getLine(e).length),end:this.pos(e+1,0),action:"remove",lines:["",""]})},this.replace=function(e,t){return e instanceof h||(e=h.fromPoints(e.start,e.end)),0===t.length&&e.isEmpty()?e.start:t==this.getTextRange(e)?e.end:(this.remove(e),t?this.insert(e.start,t):e.start)},this.applyDeltas=function(e){for(var t=0;t<e.length;t++)this.applyDelta(e[t])},this.revertDeltas=function(e){for(var t=e.length-1;0<=t;t--)this.revertDelta(e[t])},this.applyDelta=function(e,t){var n="insert"==e.action;(n?e.lines.length<=1&&!e.lines[0]:!h.comparePoints(e.start,e.end))||(n&&2e4<e.lines.length?this.$splitAndapplyLargeDelta(e,2e4):(i(this.$lines,e,t),this._signal("change",e)))},this.$splitAndapplyLargeDelta=function(e,t){for(var n=e.lines,i=n.length-t+1,o=e.start.row,r=e.start.column,s=0,a=0;s<i;s=a){a+=t-1;var l=n.slice(s,a);l.push(""),this.applyDelta({start:this.pos(o+s,r),end:this.pos(o+a,r=0),action:e.action,lines:l},!0)}e.lines=n.slice(s),e.start.row=o+s,e.start.column=r,this.applyDelta(e,!0)},this.revertDelta=function(e){this.applyDelta({start:this.clonePos(e.start),end:this.clonePos(e.end),action:"insert"==e.action?"remove":"insert",lines:e.lines.slice()})},this.indexToPosition=function(e,t){for(var n=this.$lines||this.getAllLines(),i=this.getNewLineCharacter().length,o=t||0,r=n.length;o<r;o++)if((e-=n[o].length+i)<0)return{row:o,column:e+n[o].length+i};return{row:r-1,column:e+n[r-1].length+i}},this.positionToIndex=function(e,t){for(var n=this.$lines||this.getAllLines(),i=this.getNewLineCharacter().length,o=0,r=Math.min(e.row,n.length),s=t||0;s<r;++s)o+=n[s].length+i;return o+e.column}}).call(s.prototype),t.Document=s}),ace.define("ace/background_tokenizer",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(e,t){"use strict";var n=e("./lib/oop"),i=e("./lib/event_emitter").EventEmitter,o=function(e){this.running=!1,this.lines=[],this.states=[],this.currentLine=0,this.tokenizer=e;var a=this;this.$worker=function(){if(a.running){for(var e=new Date,t=a.currentLine,n=-1,i=a.doc,o=t;a.lines[t];)t++;var r=i.getLength(),s=0;for(a.running=!1;t<r;){for(a.$tokenizeRow(t),n=t;t++,a.lines[t];);if(++s%5==0&&20<new Date-e){a.running=setTimeout(a.$worker,20);break}}a.currentLine=t,-1==n&&(n=t),o<=n&&a.fireUpdateEvent(o,n)}}};(function(){n.implement(this,i),this.setTokenizer=function(e){this.tokenizer=e,this.lines=[],this.states=[],this.start(0)},this.setDocument=function(e){this.doc=e,this.lines=[],this.states=[],this.stop()},this.fireUpdateEvent=function(e,t){var n={first:e,last:t};this._signal("update",{data:n})},this.start=function(e){this.currentLine=Math.min(e||0,this.currentLine,this.doc.getLength()),this.lines.splice(this.currentLine,this.lines.length),this.states.splice(this.currentLine,this.states.length),this.stop(),this.running=setTimeout(this.$worker,700)},this.scheduleStart=function(){this.running||(this.running=setTimeout(this.$worker,700))},this.$updateOnChange=function(e){var t=e.start.row,n=e.end.row-t;if(0===n)this.lines[t]=null;else if("remove"==e.action)this.lines.splice(t,n+1,null),this.states.splice(t,n+1,null);else{var i=Array(n+1);i.unshift(t,1),this.lines.splice.apply(this.lines,i),this.states.splice.apply(this.states,i)}this.currentLine=Math.min(t,this.currentLine,this.doc.getLength()),this.stop()},this.stop=function(){this.running&&clearTimeout(this.running),this.running=!1},this.getTokens=function(e){return this.lines[e]||this.$tokenizeRow(e)},this.getState=function(e){return this.currentLine==e&&this.$tokenizeRow(e),this.states[e]||"start"},this.$tokenizeRow=function(e){var t=this.doc.getLine(e),n=this.states[e-1],i=this.tokenizer.getLineTokens(t,n,e);return this.states[e]+""!=i.state+""?(this.states[e]=i.state,this.lines[e+1]=null,this.currentLine>e+1&&(this.currentLine=e+1)):this.currentLine==e&&(this.currentLine=e+1),this.lines[e]=i.tokens}}).call(o.prototype),t.BackgroundTokenizer=o}),ace.define("ace/search_highlight",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],function(e,t){"use strict";var c=e("./lib/lang"),h=(e("./lib/oop"),e("./range").Range),n=function(e,t,n){this.setRegexp(e),this.clazz=t,this.type=n||"text"};(function(){this.MAX_RANGES=500,this.setRegexp=function(e){this.regExp+""!=e+""&&(this.regExp=e,this.cache=[])},this.update=function(e,t,n,i){if(this.regExp)for(var o=i.firstRow,r=i.lastRow,s=o;s<=r;s++){var a=this.cache[s];null==a&&((a=c.getMatchOffsets(n.getLine(s),this.regExp)).length>this.MAX_RANGES&&(a=a.slice(0,this.MAX_RANGES)),a=a.map(function(e){return new h(s,e.offset,s,e.offset+e.length)}),this.cache[s]=a.length?a:"");for(var l=a.length;l--;)t.drawSingleLineMarker(e,a[l].toScreenRange(n),this.clazz,i)}}}).call(n.prototype),t.SearchHighlight=n}),ace.define("ace/edit_session/fold_line",["require","exports","module","ace/range"],function(e,t){"use strict";function c(e,t){this.foldData=e,Array.isArray(t)?this.folds=t:t=this.folds=[t];var n=t[t.length-1];this.range=new i(t[0].start.row,t[0].start.column,n.end.row,n.end.column),this.start=this.range.start,this.end=this.range.end,this.folds.forEach(function(e){e.setFoldLine(this)},this)}var i=e("../range").Range;(function(){this.shiftRow=function(t){this.start.row+=t,this.end.row+=t,this.folds.forEach(function(e){e.start.row+=t,e.end.row+=t})},this.addFold=function(e){if(e.sameRow){if(e.start.row<this.startRow||e.endRow>this.endRow)throw new Error("Can't add a fold to this FoldLine as it has no connection");this.folds.push(e),this.folds.sort(function(e,t){return-e.range.compareEnd(t.start.row,t.start.column)}),0<this.range.compareEnd(e.start.row,e.start.column)?(this.end.row=e.end.row,this.end.column=e.end.column):this.range.compareStart(e.end.row,e.end.column)<0&&(this.start.row=e.start.row,this.start.column=e.start.column)}else if(e.start.row==this.end.row)this.folds.push(e),this.end.row=e.end.row,this.end.column=e.end.column;else{if(e.end.row!=this.start.row)throw new Error("Trying to add fold to FoldRow that doesn't have a matching row");this.folds.unshift(e),this.start.row=e.start.row,this.start.column=e.start.column}e.foldLine=this},this.containsRow=function(e){return e>=this.start.row&&e<=this.end.row},this.walk=function(e,t,n){var i,o,r=0,s=this.folds,a=!0;null==t&&(t=this.end.row,n=this.end.column);for(var l=0;l<s.length;l++){if(-1==(o=(i=s[l]).range.compareStart(t,n)))return void e(null,t,n,r,a);if(!e(null,i.start.row,i.start.column,r,a)&&e(i.placeholder,i.start.row,i.start.column,r)||0===o)return;a=!i.sameRow,r=i.end.column}e(null,t,n,r,a)},this.getNextFoldTo=function(e,t){for(var n,i,o=0;o<this.folds.length;o++){if(-1==(i=(n=this.folds[o]).range.compareEnd(e,t)))return{fold:n,kind:"after"};if(0===i)return{fold:n,kind:"inside"}}return null},this.addRemoveChars=function(e,t,n){var i,o,r=this.getNextFoldTo(e,t);if(r)if(i=r.fold,"inside"==r.kind&&i.start.column!=t&&i.start.row!=e)window.console&&window.console.log(e,t,i);else if(i.start.row==e){var s=(o=this.folds).indexOf(i);for(0===s&&(this.start.column+=n);s<o.length;s++){if((i=o[s]).start.column+=n,!i.sameRow)return;i.end.column+=n}this.end.column+=n}},this.split=function(e,t){var n=this.getNextFoldTo(e,t);if(!n||"inside"==n.kind)return null;var i=n.fold,o=this.folds,r=this.foldData,s=o.indexOf(i),a=o[s-1];this.end.row=a.end.row,this.end.column=a.end.column;var l=new c(r,o=o.splice(s,o.length-s));return r.splice(r.indexOf(this)+1,0,l),l},this.merge=function(e){for(var t=e.folds,n=0;n<t.length;n++)this.addFold(t[n]);var i=this.foldData;i.splice(i.indexOf(e),1)},
5
- this.toString=function(){var t=[this.range.toString()+": ["];return this.folds.forEach(function(e){t.push(" "+e.toString())}),t.push("]"),t.join("\n")},this.idxToPosition=function(e){for(var t=0,n=0;n<this.folds.length;n++){var i=this.folds[n];if((e-=i.start.column-t)<0)return{row:i.start.row,column:i.start.column+e};if((e-=i.placeholder.length)<0)return i.start;t=i.end.column}return{row:this.end.row,column:this.end.column+e}}}).call(c.prototype),t.FoldLine=c}),ace.define("ace/range_list",["require","exports","module","ace/range"],function(e,t){"use strict";var l=e("./range").Range.comparePoints,n=function(){this.ranges=[],this.$bias=1};(function(){this.comparePoints=l,this.pointIndex=function(e,t,n){for(var i=this.ranges,o=n||0;o<i.length;o++){var r=i[o],s=l(e,r.end);if(!(0<s)){var a=l(e,r.start);return 0===s?t&&0!==a?-o-2:o:0<a||0===a&&!t?o:-o-1}}return-o-1},this.add=function(e){var t=!e.isEmpty(),n=this.pointIndex(e.start,t);n<0&&(n=-n-1);var i=this.pointIndex(e.end,t,n);return i<0?i=-i-1:i++,this.ranges.splice(n,i-n,e)},this.addList=function(e){for(var t=[],n=e.length;n--;)t.push.apply(t,this.add(e[n]));return t},this.substractPoint=function(e){var t=this.pointIndex(e);if(0<=t)return this.ranges.splice(t,1)},this.merge=function(){for(var e,t=[],n=this.ranges,i=(n=n.sort(function(e,t){return l(e.start,t.start)}))[0],o=1;o<n.length;o++){e=i,i=n[o];var r=l(e.end,i.start);r<0||(0!=r||e.isEmpty()||i.isEmpty())&&(l(e.end,i.end)<0&&(e.end.row=i.end.row,e.end.column=i.end.column),n.splice(o,1),t.push(i),i=e,o--)}return this.ranges=n,t},this.contains=function(e,t){return 0<=this.pointIndex({row:e,column:t})},this.containsPoint=function(e){return 0<=this.pointIndex(e)},this.rangeAtPoint=function(e){var t=this.pointIndex(e);if(0<=t)return this.ranges[t]},this.clipRows=function(e,t){var n=this.ranges;if(n[0].start.row>t||n[n.length-1].start.row<e)return[];var i=this.pointIndex({row:e,column:0});i<0&&(i=-i-1);var o=this.pointIndex({row:t,column:0},i);o<0&&(o=-o-1);for(var r=[],s=i;s<o;s++)r.push(n[s]);return r},this.removeAll=function(){return this.ranges.splice(0,this.ranges.length)},this.attach=function(e){this.session&&this.detach(),this.session=e,this.onChange=this.$onChange.bind(this),this.session.on("change",this.onChange)},this.detach=function(){this.session&&(this.session.removeListener("change",this.onChange),this.session=null)},this.$onChange=function(e){for(var t=e.start,n=e.end,i=t.row,o=n.row,r=this.ranges,s=0,a=r.length;s<a;s++){if((h=r[s]).end.row>=i)break}if("insert"==e.action)for(var l=o-i,c=-t.column+n.column;s<a;s++){if((h=r[s]).start.row>i)break;if(h.start.row==i&&h.start.column>=t.column&&(h.start.column==t.column&&this.$bias<=0||(h.start.column+=c,h.start.row+=l)),h.end.row==i&&h.end.column>=t.column){if(h.end.column==t.column&&this.$bias<0)continue;h.end.column==t.column&&0<c&&s<a-1&&h.end.column>h.start.column&&h.end.column==r[s+1].start.column&&(h.end.column-=c),h.end.column+=c,h.end.row+=l}}else for(l=i-o,c=t.column-n.column;s<a;s++){if((h=r[s]).start.row>o)break;h.end.row<o&&(i<h.end.row||i==h.end.row&&t.column<h.end.column)?(h.end.row=i,h.end.column=t.column):h.end.row==o?h.end.column<=n.column?(l||h.end.column>t.column)&&(h.end.column=t.column,h.end.row=t.row):(h.end.column+=c,h.end.row+=l):h.end.row>o&&(h.end.row+=l),h.start.row<o&&(i<h.start.row||i==h.start.row&&t.column<h.start.column)?(h.start.row=i,h.start.column=t.column):h.start.row==o?h.start.column<=n.column?(l||h.start.column>t.column)&&(h.start.column=t.column,h.start.row=t.row):(h.start.column+=c,h.start.row+=l):h.start.row>o&&(h.start.row+=l)}if(0!=l&&s<a)for(;s<a;s++){var h;(h=r[s]).start.row+=l,h.end.row+=l}}}).call(n.prototype),t.RangeList=n}),ace.define("ace/edit_session/fold",["require","exports","module","ace/range_list","ace/lib/oop"],function(e,t){"use strict";function n(e,t){e.row-=t.row,0==e.row&&(e.column-=t.column)}function u(e,t){n(e.start,t),n(e.end,t)}function i(e,t){0==e.row&&(e.column+=t.column),e.row+=t.row}function o(e,t){i(e.start,t),i(e.end,t)}var r=e("../range_list").RangeList,s=e("../lib/oop"),a=t.Fold=function(e,t){this.foldLine=null,this.placeholder=t,this.range=e,this.start=e.start,this.end=e.end,this.sameRow=e.start.row==e.end.row,this.subFolds=this.ranges=[]};s.inherits(a,r),function(){this.toString=function(){return'"'+this.placeholder+'" '+this.range.toString()},this.setFoldLine=function(t){this.foldLine=t,this.subFolds.forEach(function(e){e.setFoldLine(t)})},this.clone=function(){var e=this.range.clone(),t=new a(e,this.placeholder);return this.subFolds.forEach(function(e){t.subFolds.push(e.clone())}),t.collapseChildren=this.collapseChildren,t},this.addSubFold=function(e){if(!this.range.isEqual(e)){u(e,this.start);for(var t=e.start.row,n=e.start.column,i=0,o=-1;i<this.subFolds.length&&1==(o=this.subFolds[i].range.compare(t,n));i++);var r=this.subFolds[i],s=0;if(0==o){if(r.range.containsRange(e))return r.addSubFold(e);s=1}t=e.range.end.row,n=e.range.end.column;var a=i;for(o=-1;a<this.subFolds.length&&1==(o=this.subFolds[a].range.compare(t,n));a++);0==o&&a++;for(var l=this.subFolds.splice(i,a-i,e),c=0==o?l.length-1:l.length,h=s;h<c;h++)e.addSubFold(l[h]);return e.setFoldLine(this.foldLine),e}},this.restoreRange=function(e){return o(e,this.start)}}.call(a.prototype)}),ace.define("ace/edit_session/folding",["require","exports","module","ace/range","ace/edit_session/fold_line","ace/edit_session/fold","ace/token_iterator"],function(e,t){"use strict";function a(){this.getFoldAt=function(e,t,n){var i=this.getFoldLine(e);if(!i)return null;for(var o=i.folds,r=0;r<o.length;r++){var s=o[r].range;if(s.contains(e,t)){if(1==n&&s.isEnd(e,t)&&!s.isEmpty())continue;if(-1==n&&s.isStart(e,t)&&!s.isEmpty())continue;return o[r]}}},this.getFoldsInRange=function(e){var t=e.start,n=e.end,i=this.$foldData,o=[];t.column+=1,n.column-=1;for(var r=0;r<i.length;r++){var s=i[r].range.compareRange(e);if(2!=s){if(-2==s)break;for(var a=i[r].folds,l=0;l<a.length;l++){var c=a[l];if(-2==(s=c.range.compareRange(e)))break;if(2!=s){if(42==s)break;o.push(c)}}}}return t.column-=1,n.column+=1,o},this.getFoldsInRangeList=function(e){if(Array.isArray(e)){var t=[];e.forEach(function(e){t=t.concat(this.getFoldsInRange(e))},this)}else t=this.getFoldsInRange(e);return t},this.getAllFolds=function(){for(var e=[],t=this.$foldData,n=0;n<t.length;n++)for(var i=0;i<t[n].folds.length;i++)e.push(t[n].folds[i]);return e},this.getFoldStringAt=function(e,t,n,i){if(!(i=i||this.getFoldLine(e)))return null;for(var o,r,s={end:{column:0}},a=0;a<i.folds.length;a++){var l=(r=i.folds[a]).range.compareEnd(e,t);if(-1==l){o=this.getLine(r.start.row).substring(s.end.column,r.start.column);break}if(0===l)return null;s=r}return o||(o=this.getLine(r.start.row).substring(s.end.column)),-1==n?o.substring(0,t-s.end.column):1==n?o.substring(t-s.end.column):o},this.getFoldLine=function(e,t){var n=this.$foldData,i=0;for(t&&(i=n.indexOf(t)),-1==i&&(i=0);i<n.length;i++){var o=n[i];if(o.start.row<=e&&o.end.row>=e)return o;if(o.end.row>e)return null}return null},this.getNextFoldLine=function(e,t){var n=this.$foldData,i=0;for(t&&(i=n.indexOf(t)),-1==i&&(i=0);i<n.length;i++){var o=n[i];if(o.end.row>=e)return o}return null},this.getFoldedRowCount=function(e,t){for(var n=this.$foldData,i=t-e+1,o=0;o<n.length;o++){var r=n[o],s=r.end.row,a=r.start.row;if(t<=s){a<t&&(e<=a?i-=t-a:i=0);break}e<=s&&(i-=e<=a?s-a:s-e+1)}return i},this.$addFoldLine=function(e){return this.$foldData.push(e),this.$foldData.sort(function(e,t){return e.start.row-t.start.row}),e},this.addFold=function(e,t){var n,i=this.$foldData,o=!1;e instanceof m?n=e:(n=new m(t,e)).collapseChildren=t.collapseChildren,this.$clipRangeToDocument(n.range);var r=n.start.row,s=n.start.column,a=n.end.row,l=n.end.column,c=this.getFoldAt(r,s,1),h=this.getFoldAt(a,l,-1);if(c&&h==c)return c.addSubFold(n);c&&!c.range.isStart(r,s)&&this.removeFold(c),h&&!h.range.isEnd(a,l)&&this.removeFold(h);var u=this.getFoldsInRange(n.range);0<u.length&&(this.removeFolds(u),u.forEach(function(e){n.addSubFold(e)}));for(var d=0;d<i.length;d++){var g=i[d];if(a==g.start.row){g.addFold(n),o=!0;break}if(r==g.end.row){if(g.addFold(n),o=!0,!n.sameRow){var p=i[d+1];if(p&&p.start.row==a){g.merge(p);break}}break}if(a<=g.start.row)break}return o||(g=this.$addFoldLine(new f(this.$foldData,n))),this.$useWrapMode?this.$updateWrapData(g.start.row,g.start.row):this.$updateRowLengthCache(g.start.row,g.start.row),this.$modified=!0,this._signal("changeFold",{data:n,action:"add"}),n},this.addFolds=function(e){e.forEach(function(e){this.addFold(e)},this)},this.removeFold=function(e){var t=e.foldLine,n=t.start.row,i=t.end.row,o=this.$foldData,r=t.folds;if(1==r.length)o.splice(o.indexOf(t),1);else if(t.range.isEnd(e.end.row,e.end.column))r.pop(),t.end.row=r[r.length-1].end.row,t.end.column=r[r.length-1].end.column;else if(t.range.isStart(e.start.row,e.start.column))r.shift(),t.start.row=r[0].start.row,t.start.column=r[0].start.column;else if(e.sameRow)r.splice(r.indexOf(e),1);else{var s=t.split(e.start.row,e.start.column);(r=s.folds).shift(),s.start.row=r[0].start.row,s.start.column=r[0].start.column}this.$updating||(this.$useWrapMode?this.$updateWrapData(n,i):this.$updateRowLengthCache(n,i)),this.$modified=!0,this._signal("changeFold",{data:e,action:"remove"})},this.removeFolds=function(e){for(var t=[],n=0;n<e.length;n++)t.push(e[n]);t.forEach(function(e){this.removeFold(e)},this),this.$modified=!0},this.expandFold=function(t){this.removeFold(t),t.subFolds.forEach(function(e){t.restoreRange(e),this.addFold(e)},this),0<t.collapseChildren&&this.foldAll(t.start.row+1,t.end.row,t.collapseChildren-1),t.subFolds=[]},this.expandFolds=function(e){e.forEach(function(e){this.expandFold(e)},this)},this.unfold=function(e,t){var n,i;if(null==e?(n=new h(0,0,this.getLength(),0),t=!0):n="number"==typeof e?new h(e,0,e,this.getLine(e).length):"row"in e?h.fromPoints(e,e):e,i=this.getFoldsInRangeList(n),t)this.removeFolds(i);else for(var o=i;o.length;)this.expandFolds(o),o=this.getFoldsInRangeList(n);if(i.length)return i},this.isRowFolded=function(e,t){return!!this.getFoldLine(e,t)},this.getRowFoldEnd=function(e,t){var n=this.getFoldLine(e,t);return n?n.end.row:e},this.getRowFoldStart=function(e,t){var n=this.getFoldLine(e,t);return n?n.start.row:e},this.getFoldDisplayLine=function(e,t,n,o,r){null==o&&(o=e.start.row),null==r&&(r=0),null==t&&(t=e.end.row),null==n&&(n=this.getLine(t).length);var s=this.doc,a="";return e.walk(function(e,t,n,i){if(!(t<o)){if(t==o){if(n<r)return;i=Math.max(r,i)}a+=null!=e?e:s.getLine(t).substring(i,n)}},t,n),a},this.getDisplayLine=function(e,t,n,i){var o,r=this.getFoldLine(e);return r?this.getFoldDisplayLine(r,e,t,n,i):(o=this.doc.getLine(e)).substring(i||0,t||o.length)},this.$cloneFoldData=function(){var n=[];return n=this.$foldData.map(function(e){var t=e.folds.map(function(e){return e.clone()});return new f(n,t)})},this.toggleFold=function(e){var t,n,i=this.selection.getRange();if(i.isEmpty()){var o=i.start;if(t=this.getFoldAt(o.row,o.column))return void this.expandFold(t);(n=this.findMatchingBracket(o))?1==i.comparePoint(n)?i.end=n:(i.start=n,i.start.column++,i.end.column--):(n=this.findMatchingBracket({row:o.row,column:o.column+1}))?(1==i.comparePoint(n)?i.end=n:i.start=n,i.start.column++):i=this.getCommentFoldRange(o.row,o.column)||i}else{var r=this.getFoldsInRange(i);if(e&&r.length)return void this.expandFolds(r);1==r.length&&(t=r[0])}if(t||(t=this.getFoldAt(i.start.row,i.start.column)),t&&t.range.toString()==i.toString())this.expandFold(t);else{var s="...";if(!i.isMultiLine()){if((s=this.getTextRange(i)).length<4)return;s=s.trim().substring(0,2)+".."}this.addFold(s,i)}},this.getCommentFoldRange=function(e,t,n){var i=new u(this,e,t),o=i.getCurrentToken(),r=o.type;if(o&&/^comment|string/.test(r)){"comment"==(r=r.match(/comment|string/)[0])&&(r+="|doc-start");var s=new RegExp(r),a=new h;if(1!=n){for(;(o=i.stepBackward())&&s.test(o.type););i.stepForward()}if(a.start.row=i.getCurrentTokenRow(),a.start.column=i.getCurrentTokenColumn()+2,i=new u(this,e,t),-1!=n){var l=-1;do{if(o=i.stepForward(),-1==l){var c=this.getState(i.$row);s.test(c)||(l=i.$row)}else if(i.$row>l)break}while(o&&s.test(o.type));o=i.stepBackward()}else o=i.getCurrentToken();return a.end.row=i.getCurrentTokenRow(),a.end.column=i.getCurrentTokenColumn()+o.value.length-2,a}},this.foldAll=function(e,t,n){n==undefined&&(n=1e5);var i=this.foldWidgets;if(i){t=t||this.getLength();for(var o=e=e||0;o<t;o++)if(null==i[o]&&(i[o]=this.getFoldWidget(o)),"start"==i[o]){var r=this.getFoldWidgetRange(o);if(r&&r.isMultiLine()&&r.end.row<=t&&r.start.row>=e){o=r.end.row;try{var s=this.addFold("...",r);s&&(s.collapseChildren=n)}catch(a){}}}}},this.$foldStyles={manual:1,markbegin:1,markbeginend:1},this.$foldStyle="markbegin",this.setFoldStyle=function(e){if(!this.$foldStyles[e])throw new Error("invalid fold style: "+e+"["+Object.keys(this.$foldStyles).join(", ")+"]");if(this.$foldStyle!=e){"manual"==(this.$foldStyle=e)&&this.unfold();var t=this.$foldMode;this.$setFolding(null),this.$setFolding(t)}},this.$setFolding=function(e){this.$foldMode!=e&&(this.$foldMode=e,this.off("change",this.$updateFoldWidgets),this.off("tokenizerUpdate",this.$tokenizerUpdateFoldWidgets),this._signal("changeAnnotation"),e&&"manual"!=this.$foldStyle?(this.foldWidgets=[],this.getFoldWidget=e.getFoldWidget.bind(e,this,this.$foldStyle),this.getFoldWidgetRange=e.getFoldWidgetRange.bind(e,this,this.$foldStyle),this.$updateFoldWidgets=this.updateFoldWidgets.bind(this),this.$tokenizerUpdateFoldWidgets=this.tokenizerUpdateFoldWidgets.bind(this),this.on("change",this.$updateFoldWidgets),this.on("tokenizerUpdate",this.$tokenizerUpdateFoldWidgets)):this.foldWidgets=null)},this.getParentFoldRangeData=function(e,t){var n=this.foldWidgets;if(!n||t&&n[e])return{};for(var i,o=e-1;0<=o;){var r=n[o];if(null==r&&(r=n[o]=this.getFoldWidget(o)),"start"==r){var s=this.getFoldWidgetRange(o);if(i||(i=s),s&&s.end.row>=e)break}o--}return{range:-1!==o&&s,firstRange:i}},this.onFoldWidgetClick=function(e,t){var n={children:(t=t.domEvent).shiftKey,all:t.ctrlKey||t.metaKey,siblings:t.altKey};if(!this.$toggleFoldWidget(e,n)){var i=t.target||t.srcElement;i&&/ace_fold-widget/.test(i.className)&&(i.className+=" ace_invalid")}},this.$toggleFoldWidget=function(e,t){if(this.getFoldWidget){var n=this.getFoldWidget(e),i=this.getLine(e),o="end"===n?-1:1,r=this.getFoldAt(e,-1===o?0:i.length,o);if(r)return t.children||t.all?this.removeFold(r):this.expandFold(r),r;var s=this.getFoldWidgetRange(e,!0);if(s&&!s.isMultiLine()&&(r=this.getFoldAt(s.start.row,s.start.column,1))&&s.isEqual(r.range))return this.removeFold(r),r;if(t.siblings){var a=this.getParentFoldRangeData(e);if(a.range)var l=a.range.start.row+1,c=a.range.end.row;this.foldAll(l,c,t.all?1e4:0)}else t.children?(c=s?s.end.row:this.getLength(),this.foldAll(e+1,c,t.all?1e4:0)):s&&(t.all&&(s.collapseChildren=1e4),this.addFold("...",s));return s}},this.toggleFoldWidget=function(){var e=this.selection.getCursor().row;e=this.getRowFoldStart(e);var t=this.$toggleFoldWidget(e,{});if(!t){var n=this.getParentFoldRangeData(e,!0);if(t=n.range||n.firstRange){e=t.start.row;var i=this.getFoldAt(e,this.getLine(e).length,1);i?this.removeFold(i):this.addFold("...",t)}}},this.updateFoldWidgets=function(e){var t=e.start.row,n=e.end.row-t;if(0===n)this.foldWidgets[t]=null;else if("remove"==e.action)this.foldWidgets.splice(t,n+1,null);else{var i=Array(n+1);i.unshift(t,1),this.foldWidgets.splice.apply(this.foldWidgets,i)}},this.tokenizerUpdateFoldWidgets=function(e){var t=e.data;t.first!=t.last&&this.foldWidgets.length>t.first&&this.foldWidgets.splice(t.first,this.foldWidgets.length)}}var h=e("../range").Range,f=e("./fold_line").FoldLine,m=e("./fold").Fold,u=e("../token_iterator").TokenIterator;t.Folding=a}),ace.define("ace/edit_session/bracket_match",["require","exports","module","ace/token_iterator","ace/range"],function(e,t){"use strict";function n(){this.findMatchingBracket=function(e,t){if(0==e.column)return null;var n=t||this.getLine(e.row).charAt(e.column-1);if(""==n)return null;var i=n.match(/([\(\[\{])|([\)\]\}])/);return i?i[1]?this.$findClosingBracket(i[1],e):this.$findOpeningBracket(i[2],e):null},this.getBracketRange=function(e){var t,n=this.getLine(e.row),i=!0,o=n.charAt(e.column-1),r=o&&o.match(/([\(\[\{])|([\)\]\}])/);if(r||(o=n.charAt(e.column),e={row:e.row,column:e.column+1},r=o&&o.match(/([\(\[\{])|([\)\]\}])/),i=!1),!r)return null;if(r[1]){if(!(s=this.$findClosingBracket(r[1],e)))return null;t=a.fromPoints(e,s),i||(t.end.column++,t.start.column--),t.cursor=t.end}else{var s;if(!(s=this.$findOpeningBracket(r[2],e)))return null;t=a.fromPoints(s,e),i||(t.start.column++,t.end.column--),t.cursor=t.start}return t},this.$brackets={")":"(","(":")","]":"[","[":"]","{":"}","}":"{","<":">",">":"<"},this.$findOpeningBracket=function(e,t,n){var i=this.$brackets[e],o=1,r=new u(this,t.row,t.column),s=r.getCurrentToken();if(s||(s=r.stepForward()),s){n||(n=new RegExp("(\\.?"+s.type.replace(".","\\.").replace("rparen",".paren").replace(/\b(?:end)\b/,"(?:start|begin|end)")+")+"));for(var a=t.column-r.getCurrentTokenColumn()-2,l=s.value;;){for(;0<=a;){var c=l.charAt(a);if(c==i){if(0==(o-=1))return{row:r.getCurrentTokenRow(),column:a+r.getCurrentTokenColumn()}}else c==e&&(o+=1);a-=1}for(;(s=r.stepBackward())&&!n.test(s.type););if(null==s)break;a=(l=s.value).length-1}return null}},this.$findClosingBracket=function(e,t,n){var i=this.$brackets[e],o=1,r=new u(this,t.row,t.column),s=r.getCurrentToken();if(s||(s=r.stepForward()),s){n||(n=new RegExp("(\\.?"+s.type.replace(".","\\.").replace("lparen",".paren").replace(/\b(?:start|begin)\b/,"(?:start|begin|end)")+")+"));for(var a=t.column-r.getCurrentTokenColumn();;){for(var l=s.value,c=l.length;a<c;){var h=l.charAt(a);if(h==i){if(0==(o-=1))return{row:r.getCurrentTokenRow(),column:a+r.getCurrentTokenColumn()}}else h==e&&(o+=1);a+=1}for(;(s=r.stepForward())&&!n.test(s.type););if(null==s)break;a=0}return null}}}var u=e("../token_iterator").TokenIterator,a=e("../range").Range;t.BracketMatch=n}),ace.define("ace/edit_session",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/bidihandler","ace/config","ace/lib/event_emitter","ace/selection","ace/mode/text","ace/range","ace/document","ace/background_tokenizer","ace/search_highlight","ace/edit_session/folding","ace/edit_session/bracket_match"],function(e,t){"use strict";var n=e("./lib/oop"),i=e("./lib/lang"),o=e("./bidihandler").BidiHandler,r=e("./config"),s=e("./lib/event_emitter").EventEmitter,a=e("./selection").Selection,c=e("./mode/text").Mode,h=e("./range").Range,l=e("./document").Document,u=e("./background_tokenizer").BackgroundTokenizer,d=e("./search_highlight").SearchHighlight,g=function(e,t){this.$breakpoints=[],this.$decorations=[],this.$frontMarkers={},this.$backMarkers={},this.$markerId=1,this.$undoSelect=!0,this.$foldData=[],this.id="session"+ ++g.$uid,this.$foldData.toString=function(){return this.join("\n")},this.on("changeFold",this.onChangeFold.bind(this)),this.$onChange=this.onChange.bind(this),"object"==typeof e&&e.getLine||(e=new l(e)),this.setDocument(e),this.selection=new a(this),this.$bidiHandler=new o(this),r.resetOptions(this),this.setMode(t),r._signal("session",this)};g.$uid=0,function(){function a(e){return!(e<4352)&&(4352<=e&&e<=4447||4515<=e&&e<=4519||4602<=e&&e<=4607||9001<=e&&e<=9002||11904<=e&&e<=11929||11931<=e&&e<=12019||12032<=e&&e<=12245||12272<=e&&e<=12283||12288<=e&&e<=12350||12353<=e&&e<=12438||12441<=e&&e<=12543||12549<=e&&e<=12589||12593<=e&&e<=12686||12688<=e&&e<=12730||12736<=e&&e<=12771||12784<=e&&e<=12830||12832<=e&&e<=12871||12880<=e&&e<=13054||13056<=e&&e<=19903||19968<=e&&e<=42124||42128<=e&&e<=42182||43360<=e&&e<=43388||44032<=e&&e<=55203||55216<=e&&e<=55238||55243<=e&&e<=55291||63744<=e&&e<=64255||65040<=e&&e<=65049||65072<=e&&e<=65106||65108<=e&&e<=65126||65128<=e&&e<=65131||65281<=e&&e<=65376||65504<=e&&e<=65510)}n.implement(this,s),this.setDocument=function(e){this.doc&&this.doc.removeListener("change",this.$onChange),(this.doc=e).on("change",this.$onChange),this.bgTokenizer&&this.bgTokenizer.setDocument(this.getDocument()),this.resetCaches()},this.getDocument=function(){return this.doc},this.$resetRowCache=function(e){if(!e)return this.$docRowCache=[],void(this.$screenRowCache=[]);var t=this.$docRowCache.length,n=this.$getRowCacheIndex(this.$docRowCache,e)+1;n<t&&(this.$docRowCache.splice(n,t),this.$screenRowCache.splice(n,t))},this.$getRowCacheIndex=function(e,t){for(var n=0,i=e.length-1;n<=i;){var o=n+i>>1,r=e[o];if(r<t)n=o+1;else{if(!(t<r))return o;i=o-1}}return n-1},this.resetCaches=function(){this.$modified=!0,this.$wrapData=[],this.$rowLengthCache=[],this.$resetRowCache(0),this.bgTokenizer&&this.bgTokenizer.start(0)},this.onChangeFold=function(e){var t=e.data;this.$resetRowCache(t.start.row)},this.onChange=function(e){this.$modified=!0,this.$bidiHandler.onChange(e),this.$resetRowCache(e.start.row);var t=this.$updateInternalDataOnChange(e);!this.$fromUndo&&this.$undoManager&&(t&&t.length&&(this.$undoManager.add({action:"removeFolds",folds:t},this.mergeUndoDeltas),this.mergeUndoDeltas=!0),this.$undoManager.add(e,this.mergeUndoDeltas),this.mergeUndoDeltas=!0,this.$informUndoManager.schedule()),this.bgTokenizer&&this.bgTokenizer.$updateOnChange(e),this._signal("change",e)},this.setValue=function(e){this.doc.setValue(e),this.selection.moveTo(0,0),this.$resetRowCache(0),this.setUndoManager(this.$undoManager),this.getUndoManager().reset()},this.getValue=this.toString=function(){return this.doc.getValue()},this.getSelection=function(){return this.selection},this.getState=function(e){return this.bgTokenizer.getState(e)},this.getTokens=function(e){return this.bgTokenizer.getTokens(e)},this.getTokenAt=function(e,t){var n,i=this.bgTokenizer.getTokens(e),o=0;if(null==t){var r=i.length-1;o=this.getLine(e).length}else for(r=0;r<i.length&&!(t<=(o+=i[r].value.length));r++);return(n=i[r])?(n.index=r,n.start=o-n.value.length,n):null},this.setUndoManager=function(e){if(this.$undoManager=e,this.$informUndoManager&&this.$informUndoManager.cancel(),e){var t=this;e.addSession(this),this.$syncInformUndoManager=function(){t.$informUndoManager.cancel(),t.mergeUndoDeltas=!1},this.$informUndoManager=i.delayedCall(this.$syncInformUndoManager)}else this.$syncInformUndoManager=function(){}},this.markUndoGroup=function(){this.$syncInformUndoManager&&this.$syncInformUndoManager()},this.$defaultUndoManager={undo:function(){},redo:function(){},hasUndo:function(){},hasRedo:function(){},reset:function(){},add:function(){},addSelection:function(){},startNewGroup:function(){},addSession:function(){}},this.getUndoManager=function(){return this.$undoManager||this.$defaultUndoManager},this.getTabString=function(){return this.getUseSoftTabs()?i.stringRepeat(" ",this.getTabSize()):"\t"},this.setUseSoftTabs=function(e){this.setOption("useSoftTabs",e)},this.getUseSoftTabs=function(){return this.$useSoftTabs&&!this.$mode.$indentWithTabs},this.setTabSize=function(e){this.setOption("tabSize",e)},this.getTabSize=function(){return this.$tabSize},this.isTabStop=function(e){return this.$useSoftTabs&&e.column%this.$tabSize==0},this.setNavigateWithinSoftTabs=function(e){this.setOption("navigateWithinSoftTabs",e)},this.getNavigateWithinSoftTabs=function(){return this.$navigateWithinSoftTabs},this.$overwrite=!1,this.setOverwrite=function(e){this.setOption("overwrite",e)},this.getOverwrite=function(){return this.$overwrite},this.toggleOverwrite=function(){this.setOverwrite(!this.$overwrite)},this.addGutterDecoration=function(e,t){this.$decorations[e]||(this.$decorations[e]=""),this.$decorations[e]+=" "+t,this._signal("changeBreakpoint",{})},this.removeGutterDecoration=function(e,t){this.$decorations[e]=(this.$decorations[e]||"").replace(" "+t,""),this._signal("changeBreakpoint",{})},this.getBreakpoints=function(){return this.$breakpoints},this.setBreakpoints=function(e){this.$breakpoints=[];for(var t=0;t<e.length;t++)this.$breakpoints[e[t]]="ace_breakpoint";this._signal("changeBreakpoint",{})},this.clearBreakpoints=function(){this.$breakpoints=[],this._signal("changeBreakpoint",{})},this.setBreakpoint=function(e,t){t===undefined&&(t="ace_breakpoint"),t?this.$breakpoints[e]=t:delete this.$breakpoints[e],this._signal("changeBreakpoint",{})},this.clearBreakpoint=function(e){delete this.$breakpoints[e],this._signal("changeBreakpoint",{})},this.addMarker=function(e,t,n,i){var o=this.$markerId++,r={range:e,type:n||"line",renderer:"function"==typeof n?n:null,clazz:t,inFront:!!i,id:o};return i?(this.$frontMarkers[o]=r,this._signal("changeFrontMarker")):(this.$backMarkers[o]=r,this._signal("changeBackMarker")),o},this.addDynamicMarker=function(e,t){if(e.update){var n=this.$markerId++;return e.id=n,e.inFront=!!t,t?(this.$frontMarkers[n]=e,this._signal("changeFrontMarker")):(this.$backMarkers[n]=e,this._signal("changeBackMarker")),e}},this.removeMarker=function(e){var t=this.$frontMarkers[e]||this.$backMarkers[e];t&&(delete(t.inFront?this.$frontMarkers:this.$backMarkers)[e],this._signal(t.inFront?"changeFrontMarker":"changeBackMarker"))},this.getMarkers=function(e){return e?this.$frontMarkers:this.$backMarkers},this.highlight=function(e){if(!this.$searchHighlight){var t=new d(null,"ace_selected-word","text");this.$searchHighlight=this.addDynamicMarker(t)}this.$searchHighlight.setRegexp(e)},this.highlightLines=function(e,t,n,i){"number"!=typeof t&&(n=t,t=e),n||(n="ace_step");var o=new h(e,0,t,Infinity);return o.id=this.addMarker(o,n,"fullLine",i),o},this.setAnnotations=function(e){this.$annotations=e,this._signal("changeAnnotation",{})},this.getAnnotations=function(){return this.$annotations||[]},this.clearAnnotations=function(){this.setAnnotations([])},this.$detectNewLine=function(e){var t=e.match(/^.*?(\r?\n)/m);this.$autoNewLine=t?t[1]:"\n"},this.getWordRange=function(e,t){var n=this.getLine(e),i=!1;if(0<t&&(i=!!n.charAt(t-1).match(this.tokenRe)),i||(i=!!n.charAt(t).match(this.tokenRe)),i)var o=this.tokenRe;else if(/^\s+$/.test(n.slice(t-1,t+1)))o=/\s/;else o=this.nonTokenRe;var r=t;if(0<r){for(;0<=--r&&n.charAt(r).match(o););r++}for(var s=t;s<n.length&&n.charAt(s).match(o);)s++;return new h(e,r,e,s)},this.getAWordRange=function(e,t){for(var n=this.getWordRange(e,t),i=this.getLine(n.end.row);i.charAt(n.end.column).match(/[ \t]/);)n.end.column+=1;return n},this.setNewLineMode=function(e){this.doc.setNewLineMode(e)},this.getNewLineMode=function(){return this.doc.getNewLineMode()},this.setUseWorker=function(e){this.setOption("useWorker",e)},this.getUseWorker=function(){return this.$useWorker},this.onReloadTokenizer=function(e){var t=e.data;this.bgTokenizer.start(t.first),this._signal("tokenizerUpdate",e)},this.$modes=r.$modes,this.$mode=null,this.$modeId=null,this.setMode=function(e,t){if(e&&"object"==typeof e){if(e.getTokenizer)return this.$onChangeMode(e);var n=e,i=n.path}else i=e||"ace/mode/text";if(this.$modes["ace/mode/text"]||(this.$modes["ace/mode/text"]=new c),this.$modes[i]&&!n)return this.$onChangeMode(this.$modes[i]),void(t&&t());this.$modeId=i,r.loadModule(["mode",i],function(e){if(this.$modeId!==i)return t&&t();this.$modes[i]&&!n?this.$onChangeMode(this.$modes[i]):e&&e.Mode&&(e=new e.Mode(n),n||((this.$modes[i]=e).$id=i),this.$onChangeMode(e)),t&&t()}.bind(this)),this.$mode||this.$onChangeMode(this.$modes["ace/mode/text"],!0)},this.$onChangeMode=function(e,t){if(t||(this.$modeId=e.$id),this.$mode!==e){this.$mode=e,this.$stopWorker(),this.$useWorker&&this.$startWorker();var n=e.getTokenizer();if(n.addEventListener!==undefined){var i=this.onReloadTokenizer.bind(this);n.addEventListener("update",i)}if(this.bgTokenizer)this.bgTokenizer.setTokenizer(n);else{this.bgTokenizer=new u(n);var o=this;this.bgTokenizer.addEventListener("update",function(e){o._signal("tokenizerUpdate",e)})}this.bgTokenizer.setDocument(this.getDocument()),this.tokenRe=e.tokenRe,this.nonTokenRe=e.nonTokenRe,t||(e.attachToSession&&e.attachToSession(this),this.$options.wrapMethod.set.call(this,this.$wrapMethod),this.$setFolding(e.foldingRules),this.bgTokenizer.start(0),this._emit("changeMode"))}},this.$stopWorker=function(){this.$worker&&(this.$worker.terminate(),this.$worker=null)},this.$startWorker=function(){try{this.$worker=this.$mode.createWorker(this)}catch(l){r.warn("Could not load worker",l),this.$worker=null}},this.getMode=function(){return this.$mode},this.$scrollTop=0,this.setScrollTop=function(e){this.$scrollTop===e||isNaN(e)||(this.$scrollTop=e,this._signal("changeScrollTop",e))},this.getScrollTop=function(){return this.$scrollTop},this.$scrollLeft=0,this.setScrollLeft=function(e){this.$scrollLeft===e||isNaN(e)||(this.$scrollLeft=e,this._signal("changeScrollLeft",e))},this.getScrollLeft=function(){return this.$scrollLeft},this.getScreenWidth=function(){return this.$computeWidth(),this.lineWidgets?Math.max(this.getLineWidgetMaxWidth(),this.screenWidth):this.screenWidth},this.getLineWidgetMaxWidth=function(){if(null!=this.lineWidgetsWidth)return this.lineWidgetsWidth;var t=0;return this.lineWidgets.forEach(function(e){e&&e.screenWidth>t&&(t=e.screenWidth)}),this.lineWidgetWidth=t},this.$computeWidth=function(e){if(this.$modified||e){if(this.$modified=!1,this.$useWrapMode)return this.screenWidth=this.$wrapLimit;for(var t=this.doc.getAllLines(),n=this.$rowLengthCache,i=0,o=0,r=this.$foldData[o],s=r?r.start.row:Infinity,a=t.length,l=0;l<a;l++){if(s<l){if(a<=(l=r.end.row+1))break;s=(r=this.$foldData[o++])?r.start.row:Infinity}null==n[l]&&(n[l]=this.$getStringScreenWidth(t[l])[0]),n[l]>i&&(i=n[l])}this.screenWidth=i}},this.getLine=function(e){return this.doc.getLine(e)},this.getLines=function(e,t){return this.doc.getLines(e,t)},this.getLength=function(){return this.doc.getLength()},this.getTextRange=function(e){return this.doc.getTextRange(e||this.selection.getRange())},this.insert=function(e,t){return this.doc.insert(e,t)},this.remove=function(e){return this.doc.remove(e)},this.removeFullLines=function(e,t){return this.doc.removeFullLines(e,t)},this.undoChanges=function(e,t){if(e.length){this.$fromUndo=!0;for(var n=e.length-1;-1!=n;n--){var i=e[n];"insert"==i.action||"remove"==i.action?this.doc.revertDelta(i):i.folds&&this.addFolds(i.folds)}!t&&this.$undoSelect&&(e.selectionBefore?this.selection.fromJSON(e.selectionBefore):this.selection.setRange(this.$getUndoSelection(e,!0))),this.$fromUndo=!1}},this.redoChanges=function(e,t){if(e.length){this.$fromUndo=!0;for(var n=0;n<e.length;n++){var i=e[n];("insert"==i.action||"remove"==i.action)&&this.doc.applyDelta(i)}!t&&this.$undoSelect&&(e.selectionAfter?this.selection.fromJSON(e.selectionAfter):this.selection.setRange(this.$getUndoSelection(e,!1))),this.$fromUndo=!1}},this.setUndoSelect=function(e){this.$undoSelect=e},this.$getUndoSelection=function(e,t){function n(e){return t?"insert"!==e.action:"insert"===e.action}for(var i,o,r=0;r<e.length;r++){var s=e[r];s.start&&(i?n(s)?(o=s.start,-1==i.compare(o.row,o.column)&&i.setStart(o),o=s.end,1==i.compare(o.row,o.column)&&i.setEnd(o),!0):(o=s.start,-1==i.compare(o.row,o.column)&&(i=h.fromPoints(s.start,s.start)),!1):n(s)?(i=h.fromPoints(s.start,s.end),!0):(i=h.fromPoints(s.start,s.start),!1))}return i},this.replace=function(e,t){return this.doc.replace(e,t)},this.moveText=function(e,t,n){var i=this.getTextRange(e),o=this.getFoldsInRange(e),r=h.fromPoints(t,t);if(!n){this.remove(e);var s=e.start.row-e.end.row;(c=s?-e.end.column:e.start.column-e.end.column)&&(r.start.row==e.end.row&&r.start.column>e.end.column&&(r.start.column+=c),r.end.row==e.end.row&&r.end.column>e.end.column&&(r.end.column+=c)),s&&r.start.row>=e.end.row&&(r.start.row+=s,r.end.row+=s)}if(r.end=this.insert(r.start,i),o.length){var a=e.start,l=r.start,c=(s=l.row-a.row,l.column-a.column);this.addFolds(o.map(function(e){return(e=e.clone()).start.row==a.row&&(e.start.column+=c),e.end.row==a.row&&(e.end.column+=c),e.start.row+=s,e.end.row+=s,e}))}return r},this.indentRows=function(e,t,n){n=n.replace(/\t/g,this.getTabString());for(var i=e;i<=t;i++)this.doc.insertInLine({row:i,column:0},n)},this.outdentRows=function(e){for(var t=e.collapseRows(),n=new h(0,0,0,0),i=this.getTabSize(),o=t.start.row;o<=t.end.row;++o){var r=this.getLine(o);n.start.row=o,n.end.row=o;for(var s=0;s<i&&" "==r.charAt(s);++s);s<i&&"\t"==r.charAt(s)?(n.start.column=s,n.end.column=s+1):(n.start.column=0,n.end.column=s),this.remove(n)}},this.$moveLines=function(e,t,n){if(e=this.getRowFoldStart(e),t=this.getRowFoldEnd(t),n<0){if((o=this.getRowFoldStart(e+n))<0)return 0;var i=o-e}else if(0<n){var o;if((o=this.getRowFoldEnd(t+n))>this.doc.getLength()-1)return 0;i=o-t}else{e=this.$clipRowToDocument(e);i=(t=this.$clipRowToDocument(t))-e+1}var r=new h(e,0,t,Number.MAX_VALUE),s=this.getFoldsInRange(r).map(function(e){return(e=e.clone()).start.row+=i,e.end.row+=i,e}),a=0==n?this.doc.getLines(e,t
6
- ):this.doc.removeFullLines(e,t);return this.doc.insertFullLines(e+i,a),s.length&&this.addFolds(s),i},this.moveLinesUp=function(e,t){return this.$moveLines(e,t,-1)},this.moveLinesDown=function(e,t){return this.$moveLines(e,t,1)},this.duplicateLines=function(e,t){return this.$moveLines(e,t,0)},this.$clipRowToDocument=function(e){return Math.max(0,Math.min(e,this.doc.getLength()-1))},this.$clipColumnToRow=function(e,t){return t<0?0:Math.min(this.doc.getLine(e).length,t)},this.$clipPositionToDocument=function(e,t){if(t=Math.max(0,t),e<0)t=e=0;else{var n=this.doc.getLength();n<=e?(e=n-1,t=this.doc.getLine(n-1).length):t=Math.min(this.doc.getLine(e).length,t)}return{row:e,column:t}},this.$clipRangeToDocument=function(e){e.start.row<0?(e.start.row=0,e.start.column=0):e.start.column=this.$clipColumnToRow(e.start.row,e.start.column);var t=this.doc.getLength()-1;return e.end.row>t?(e.end.row=t,e.end.column=this.doc.getLine(t).length):e.end.column=this.$clipColumnToRow(e.end.row,e.end.column),e},this.$wrapLimit=80,this.$useWrapMode=!1,this.$wrapLimitRange={min:null,max:null},this.setUseWrapMode=function(e){if(e!=this.$useWrapMode){if(this.$useWrapMode=e,this.$modified=!0,this.$resetRowCache(0),e){var t=this.getLength();this.$wrapData=Array(t),this.$updateWrapData(0,t-1)}this._signal("changeWrapMode")}},this.getUseWrapMode=function(){return this.$useWrapMode},this.setWrapLimitRange=function(e,t){this.$wrapLimitRange.min===e&&this.$wrapLimitRange.max===t||(this.$wrapLimitRange={min:e,max:t},this.$modified=!0,this.$bidiHandler.markAsDirty(),this.$useWrapMode&&this._signal("changeWrapMode"))},this.adjustWrapLimit=function(e,t){var n=this.$wrapLimitRange;n.max<0&&(n={min:t,max:t});var i=this.$constrainWrapLimit(e,n.min,n.max);return i!=this.$wrapLimit&&1<i&&(this.$wrapLimit=i,this.$modified=!0,this.$useWrapMode&&(this.$updateWrapData(0,this.getLength()-1),this.$resetRowCache(0),this._signal("changeWrapLimit")),!0)},this.$constrainWrapLimit=function(e,t,n){return t&&(e=Math.max(t,e)),n&&(e=Math.min(n,e)),e},this.getWrapLimit=function(){return this.$wrapLimit},this.setWrapLimit=function(e){this.setWrapLimitRange(e,e)},this.getWrapLimitRange=function(){return{min:this.$wrapLimitRange.min,max:this.$wrapLimitRange.max}},this.$updateInternalDataOnChange=function(e){var t=this.$useWrapMode,n=e.action,i=e.start,o=e.end,r=i.row,s=o.row,a=s-r,l=null;if(this.$updating=!0,0!=a)if("remove"===n){this[t?"$wrapData":"$rowLengthCache"].splice(r,a);var c=this.$foldData;l=this.getFoldsInRange(e),this.removeFolds(l);var h=0;if(f=this.getFoldLine(o.row)){f.addRemoveChars(o.row,o.column,i.column-o.column),f.shiftRow(-a);var u=this.getFoldLine(r);u&&u!==f&&(u.merge(f),f=u),h=c.indexOf(f)+1}for(;h<c.length;h++){(f=c[h]).start.row>=o.row&&f.shiftRow(-a)}s=r}else{var d=Array(a);d.unshift(r,0);var g=t?this.$wrapData:this.$rowLengthCache;g.splice.apply(g,d);c=this.$foldData,h=0;if(f=this.getFoldLine(r)){var p=f.range.compareInside(i.row,i.column);0==p?(f=f.split(i.row,i.column))&&(f.shiftRow(a),f.addRemoveChars(s,0,o.column-i.column)):-1==p&&(f.addRemoveChars(r,0,o.column-i.column),f.shiftRow(a)),h=c.indexOf(f)+1}for(;h<c.length;h++){var f;(f=c[h]).start.row>=r&&f.shiftRow(a)}}else a=Math.abs(e.start.column-e.end.column),"remove"===n&&(l=this.getFoldsInRange(e),this.removeFolds(l),a=-a),(f=this.getFoldLine(r))&&f.addRemoveChars(r,i.column,a);return t&&this.$wrapData.length!=this.doc.getLength()&&console.error("doc.getLength() and $wrapData.length have to be the same!"),this.$updating=!1,t?this.$updateWrapData(r,s):this.$updateRowLengthCache(r,s),l},this.$updateRowLengthCache=function(e,t){this.$rowLengthCache[e]=null,this.$rowLengthCache[t]=null},this.$updateWrapData=function(e,t){var s,n,a=this.doc.getAllLines(),i=this.getTabSize(),o=this.$wrapData,r=this.$wrapLimit,l=e;for(t=Math.min(t,a.length-1);l<=t;)(n=this.getFoldLine(l,n))?(s=[],n.walk(function(e,t,n,i){var o;if(null!=e){(o=this.$getDisplayTokens(e,s.length))[0]=m;for(var r=1;r<o.length;r++)o[r]=v}else o=this.$getDisplayTokens(a[t].substring(i,n),s.length);s=s.concat(o)}.bind(this),n.end.row,a[n.end.row].length+1),o[n.start.row]=this.$computeWrapSplits(s,r,i),l=n.end.row+1):(s=this.$getDisplayTokens(a[l]),o[l]=this.$computeWrapSplits(s,r,i),l++)};var l=1,f=2,m=3,v=4,b=9,w=10,y=11,x=12;this.$computeWrapSplits=function(o,e,i){function r(){var e=0;if(0===u)return e;if(h)for(var t=0;t<o.length;t++){var n=o[t];if(n==w)e+=1;else{if(n!=y){if(n==x)continue;break}e+=i}}return c&&!1!==h&&(e+=i),Math.min(e,u)}function t(e){for(var t=e-a,n=a;n<e;n++){var i=o[n];12!==i&&2!==i||(t-=1)}s.length||(d=r(),s.indent=d),l+=t,s.push(l),a=e}if(0==o.length)return[];for(var s=[],n=o.length,a=0,l=0,c=this.$wrapAsCode,h=this.$indentedSoftWrap,u=e<=Math.max(2*i,8)||!1===h?0:Math.floor(e/2),d=0;e-d<n-a;){var g=a+e-d;if(o[g-1]>=w&&o[g]>=w)t(g);else if(o[g]!=m&&o[g]!=v){for(var p=Math.max(g-(e-(e>>2)),a-1);p<g&&o[g]<m;)g--;if(c){for(;p<g&&o[g]<m;)g--;for(;p<g&&o[g]==b;)g--}else for(;p<g&&o[g]<w;)g--;p<g?t(++g):(o[g=a+e]==f&&g--,t(g-d))}else{for(;g!=a-1&&o[g]!=m;g--);if(a<g){t(g);continue}for(g=a+e;g<o.length&&o[g]==v;g++);if(g==o.length)break;t(g)}}return s},this.$getDisplayTokens=function(e,t){var n,i=[];t=t||0;for(var o=0;o<e.length;o++){var r=e.charCodeAt(o);if(9==r){n=this.getScreenTabSize(i.length+t),i.push(y);for(var s=1;s<n;s++)i.push(x)}else 32==r?i.push(w):39<r&&r<48||57<r&&r<64?i.push(b):4352<=r&&a(r)?i.push(l,f):i.push(l)}return i},this.$getStringScreenWidth=function(e,t,n){if(0==t)return[0,0];var i,o;for(null==t&&(t=Infinity),n=n||0,o=0;o<e.length&&(9==(i=e.charCodeAt(o))?n+=this.getScreenTabSize(n):4352<=i&&a(i)?n+=2:n+=1,!(t<n));o++);return[n,o]},this.lineWidgets=null,this.getRowLength=function(e){if(this.lineWidgets)var t=this.lineWidgets[e]&&this.lineWidgets[e].rowCount||0;else t=0;return this.$useWrapMode&&this.$wrapData[e]?this.$wrapData[e].length+1+t:1+t},this.getRowLineCount=function(e){return this.$useWrapMode&&this.$wrapData[e]?this.$wrapData[e].length+1:1},this.getRowWrapIndent=function(e){if(this.$useWrapMode){var t=this.screenToDocumentPosition(e,Number.MAX_VALUE),n=this.$wrapData[t.row];return n.length&&n[0]<t.column?n.indent:0}return 0},this.getScreenLastRowColumn=function(e){var t=this.screenToDocumentPosition(e,Number.MAX_VALUE);return this.documentToScreenColumn(t.row,t.column)},this.getDocumentLastRowColumn=function(e,t){var n=this.documentToScreenRow(e,t);return this.getScreenLastRowColumn(n)},this.getDocumentLastRowColumnPosition=function(e,t){var n=this.documentToScreenRow(e,t);return this.screenToDocumentPosition(n,Number.MAX_VALUE/10)},this.getRowSplitData=function(e){return this.$useWrapMode?this.$wrapData[e]:undefined},this.getScreenTabSize=function(e){return this.$tabSize-(e%this.$tabSize|0)},this.screenToDocumentRow=function(e,t){return this.screenToDocumentPosition(e,t).row},this.screenToDocumentColumn=function(e,t){return this.screenToDocumentPosition(e,t).column},this.screenToDocumentPosition=function(e,t,n){if(e<0)return{row:0,column:0};var i,o,r=0,s=0,a=0,l=0,c=this.$screenRowCache,h=this.$getRowCacheIndex(c,e),u=c.length;if(u&&0<=h){a=c[h],r=this.$docRowCache[h];var d=e>c[u-1]}else d=!u;for(var g=this.getLength()-1,p=this.getNextFoldLine(r),f=p?p.start.row:Infinity;a<=e&&!(e<a+(l=this.getRowLength(r))||g<=r);)a+=l,f<++r&&(r=p.end.row+1,f=(p=this.getNextFoldLine(r,p))?p.start.row:Infinity),d&&(this.$docRowCache.push(r),this.$screenRowCache.push(a));if(p&&p.start.row<=r)i=this.getFoldDisplayLine(p),r=p.start.row;else{if(a+l<=e||g<r)return{row:g,column:this.getLine(g).length};i=this.getLine(r),p=null}var m=0,v=Math.floor(e-a);if(this.$useWrapMode){var b=this.$wrapData[r];b&&(o=b[v],0<v&&b.length&&(m=b.indent,s=b[v-1]||b[b.length-1],i=i.substring(s)))}return n!==undefined&&this.$bidiHandler.isBidiRow(a+v,r,v)&&(t=this.$bidiHandler.offsetToCol(n)),s+=this.$getStringScreenWidth(i,t-m)[1],this.$useWrapMode&&o<=s&&(s=o-1),p?p.idxToPosition(s):{row:r,column:s}},this.documentToScreenPosition=function(e,t){if(void 0===t)var n=this.$clipPositionToDocument(e.row,e.column);else n=this.$clipPositionToDocument(e,t);e=n.row,t=n.column;var i=0,o=null,r=null;(r=this.getFoldAt(e,t,1))&&(e=r.start.row,t=r.start.column);var s,a=0,l=this.$docRowCache,c=this.$getRowCacheIndex(l,e),h=l.length;if(h&&0<=c){a=l[c],i=this.$screenRowCache[c];var u=e>l[h-1]}else u=!h;for(var d=this.getNextFoldLine(a),g=d?d.start.row:Infinity;a<e;){if(g<=a){if(e<(s=d.end.row+1))break;g=(d=this.getNextFoldLine(s,d))?d.start.row:Infinity}else s=a+1;i+=this.getRowLength(a),a=s,u&&(this.$docRowCache.push(a),this.$screenRowCache.push(i))}var p="";d&&g<=a?(p=this.getFoldDisplayLine(d,e,t),o=d.start.row):(p=this.getLine(e).substring(0,t),o=e);var f=0;if(this.$useWrapMode){var m=this.$wrapData[o];if(m){for(var v=0;p.length>=m[v];)i++,v++;p=p.substring(m[v-1]||0,p.length),f=0<v?m.indent:0}}return{row:i,column:f+this.$getStringScreenWidth(p)[0]}},this.documentToScreenColumn=function(e,t){return this.documentToScreenPosition(e,t).column},this.documentToScreenRow=function(e,t){return this.documentToScreenPosition(e,t).row},this.getScreenLength=function(){var e=0,t=null;if(this.$useWrapMode)for(var n=this.$wrapData.length,i=0,o=(a=0,(t=this.$foldData[a++])?t.start.row:Infinity);i<n;){var r=this.$wrapData[i];e+=r?r.length+1:1,o<++i&&(i=t.end.row+1,o=(t=this.$foldData[a++])?t.start.row:Infinity)}else{e=this.getLength();for(var s=this.$foldData,a=0;a<s.length;a++)e-=(t=s[a]).end.row-t.start.row}return this.lineWidgets&&(e+=this.$getWidgetScreenLength()),e},this.$setFontMetrics=function(r){this.$enableVarChar&&(this.$getStringScreenWidth=function(e,t,n){if(0===t)return[0,0];var i,o;for(t||(t=Infinity),n=n||0,o=0;o<e.length&&!(t<(n+="\t"===(i=e.charAt(o))?this.getScreenTabSize(n):r.getCharacterWidth(i)));o++);return[n,o]})},this.destroy=function(){this.bgTokenizer&&(this.bgTokenizer.setDocument(null),this.bgTokenizer=null),this.$stopWorker()},this.isFullWidth=a}.call(g.prototype),e("./edit_session/folding").Folding.call(g.prototype),e("./edit_session/bracket_match").BracketMatch.call(g.prototype),r.defineOptions(g.prototype,"session",{wrap:{set:function(e){if(e&&"off"!=e?"free"==e?e=!0:"printMargin"==e?e=-1:"string"==typeof e&&(e=parseInt(e,10)||!1):e=!1,this.$wrap!=e)if(this.$wrap=e){var t="number"==typeof e?e:null;this.setWrapLimitRange(t,t),this.setUseWrapMode(!0)}else this.setUseWrapMode(!1)},get:function(){return this.getUseWrapMode()?-1==this.$wrap?"printMargin":this.getWrapLimitRange().min?this.$wrap:"free":"off"},handlesSet:!0},wrapMethod:{set:function(e){(e="auto"==e?"text"!=this.$mode.type:"text"!=e)!=this.$wrapAsCode&&(this.$wrapAsCode=e,this.$useWrapMode&&(this.$useWrapMode=!1,this.setUseWrapMode(!0)))},initialValue:"auto"},indentedSoftWrap:{set:function(){this.$useWrapMode&&(this.$useWrapMode=!1,this.setUseWrapMode(!0))},initialValue:!0},firstLineNumber:{set:function(){this._signal("changeBreakpoint")},initialValue:1},useWorker:{set:function(e){this.$useWorker=e,this.$stopWorker(),e&&this.$startWorker()},initialValue:!0},useSoftTabs:{initialValue:!0},tabSize:{set:function(e){0<(e=parseInt(e))&&this.$tabSize!==e&&(this.$modified=!0,this.$rowLengthCache=[],this.$tabSize=e,this._signal("changeTabSize"))},initialValue:4,handlesSet:!0},navigateWithinSoftTabs:{initialValue:!1},foldStyle:{set:function(e){this.setFoldStyle(e)},handlesSet:!0},overwrite:{set:function(){this._signal("changeOverwrite")},initialValue:!1},newLineMode:{set:function(e){this.doc.setNewLineMode(e)},get:function(){return this.doc.getNewLineMode()},handlesSet:!0},mode:{set:function(e){this.setMode(e)},get:function(){return this.$modeId},handlesSet:!0}}),t.EditSession=g}),ace.define("ace/search",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],function(e,t){"use strict";function r(e,t){function n(e){return/\w/.test(e)||t.regExp?"\\b":""}return n(e[0])+e+n(e[e.length-1])}var y=e("./lib/lang"),n=e("./lib/oop"),x=e("./range").Range,s=function(){this.$options={}};(function(){this.set=function(e){return n.mixin(this.$options,e),this},this.getOptions=function(){return y.copyObject(this.$options)},this.setOptions=function(e){this.$options=e},this.find=function(e){var o=this.$options,t=this.$matchIterator(e,o);if(!t)return!1;var r=null;return t.forEach(function(e,t,n,i){return r=new x(e,t,n,i),!(t==i&&o.start&&o.start.start&&0!=o.skipCurrent&&r.isEqual(o.start))||(r=null,!1)}),r},this.findAll=function(e){var t=this.$options;if(!t.needle)return[];this.$assembleRegExp(t);var n=t.range,i=n?e.getLines(n.start.row,n.end.row):e.doc.getAllLines(),o=[],r=t.re;if(t.$isMultiLine){var s,a=r.length,l=i.length-a;e:for(var c=r.offset||0;c<=l;c++){for(var h=0;h<a;h++)if(-1==i[c+h].search(r[h]))continue e;var u=i[c],d=i[c+a-1],g=u.length-u.match(r[0])[0].length,p=d.match(r[a-1])[0].length;s&&s.end.row===c&&s.end.column>g||(o.push(s=new x(c,g,c+a-1,p)),2<a&&(c=c+a-2))}}else for(var f=0;f<i.length;f++){var m=y.getMatchOffsets(i[f],r);for(h=0;h<m.length;h++){var v=m[h];o.push(new x(f,v.offset,f,v.offset+v.length))}}if(n){var b=n.start.column,w=n.start.column;for(f=0,h=o.length-1;f<h&&o[f].start.column<b&&o[f].start.row==n.start.row;)f++;for(;f<h&&o[h].end.column>w&&o[h].end.row==n.end.row;)h--;for(o=o.slice(f,h+1),f=0,h=o.length;f<h;f++)o[f].start.row+=n.start.row,o[f].end.row+=n.start.row}return o},this.replace=function(e,t){var n=this.$options,i=this.$assembleRegExp(n);if(n.$isMultiLine)return t;if(i){var o=i.exec(e);if(!o||o[0].length!=e.length)return null;if(t=e.replace(i,t),n.preserveCase){t=t.split("");for(var r=Math.min(e.length,e.length);r--;){var s=e[r];s&&s.toLowerCase()!=s?t[r]=t[r].toUpperCase():t[r]=t[r].toLowerCase()}t=t.join("")}return t}},this.$assembleRegExp=function(e,t){if(e.needle instanceof RegExp)return e.re=e.needle;var n=e.needle;if(!e.needle)return e.re=!1;e.regExp||(n=y.escapeRegExp(n)),e.wholeWord&&(n=r(n,e));var i=e.caseSensitive?"gm":"gmi";if(e.$isMultiLine=!t&&/[\n\r]/.test(n),e.$isMultiLine)return e.re=this.$assembleMultilineRegExp(n,i);try{var o=new RegExp(n,i)}catch(s){o=!1}return e.re=o},this.$assembleMultilineRegExp=function(e,t){for(var n=e.replace(/\r\n|\r|\n/g,"$\n^").split("\n"),i=[],o=0;o<n.length;o++)try{i.push(new RegExp(n[o],t))}catch(x){return!1}return i},this.$matchIterator=function(h,n){var u=this.$assembleRegExp(n);if(!u)return!1;var l=1==n.backwards,e=0!=n.skipCurrent,t=n.range,i=n.start;i||(i=t?t[l?"end":"start"]:h.selection.getRange()),i.start&&(i=i[e!=l?"end":"start"]);var o=t?t.start.row:0,r=t?t.end.row:h.getLength()-1;if(l)var s=function(e){var t=i.row;if(!a(t,i.column,e)){for(t--;o<=t;t--)if(a(t,Number.MAX_VALUE,e))return;if(0!=n.wrap)for(t=r,o=i.row;o<=t;t--)if(a(t,Number.MAX_VALUE,e))return}};else s=function(e){var t=i.row;if(!a(t,i.column,e)){for(t+=1;t<=r;t++)if(a(t,0,e))return;if(0!=n.wrap)for(t=o,r=i.row;t<=r;t++)if(a(t,0,e))return}};if(n.$isMultiLine)var c=u.length,a=function(e,t,n){var i=l?e-c+1:e;if(!(i<0)){var o=h.getLine(i),r=o.search(u[0]);if(!(!l&&r<t||-1===r)){for(var s=1;s<c;s++)if(-1==(o=h.getLine(i+s)).search(u[s]))return;var a=o.match(u[c-1])[0].length;if(!(l&&t<a))return!!n(i,r,i+c-1,a)||void 0}}};else if(l)a=function(e,t,n){var i,o=h.getLine(e),r=[],s=0;for(u.lastIndex=0;i=u.exec(o);){var a=i[0].length;if(s=i.index,!a){if(s>=o.length)break;u.lastIndex=s+=1}if(i.index+a>t)break;r.push(i.index,a)}for(var l=r.length-1;0<=l;l-=2){var c=r[l-1];if(n(e,c,e,c+(a=r[l])))return!0}};else a=function(e,t,n){var i,o,r=h.getLine(e);for(u.lastIndex=t;o=u.exec(r);){var s=o[0].length;if(n(e,i=o.index,e,i+s))return!0;if(!s&&(u.lastIndex=i+=1,i>=r.length))return!1}};return{forEach:s}}}).call(s.prototype),t.Search=s}),ace.define("ace/keyboard/hash_handler",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(e,t){"use strict";function n(e,t){this.platform=t||(o.isMac?"mac":"win"),this.commands={},this.commandKeyBinding={},this.addCommands(e),this.$singleCommand=!0}function i(e,t){n.call(this,e,t),this.$singleCommand=!1}var a=e("../lib/keys"),o=e("../lib/useragent"),l=a.KEY_MODS;i.prototype=n.prototype,function(){function s(e){return"object"==typeof e&&e.bindKey&&e.bindKey.position||(e.isDefault?-100:0)}this.addCommand=function(e){this.commands[e.name]&&this.removeCommand(e),(this.commands[e.name]=e).bindKey&&this._buildKeyHash(e)},this.removeCommand=function(e,t){var n=e&&("string"==typeof e?e:e.name);e=this.commands[n],t||delete this.commands[n];var i=this.commandKeyBinding;for(var o in i){var r=i[o];if(r==e)delete i[o];else if(Array.isArray(r)){var s=r.indexOf(e);-1!=s&&(r.splice(s,1),1==r.length&&(i[o]=r[0]))}}},this.bindKey=function(e,r,s){if("object"==typeof e&&e&&(s==undefined&&(s=e.position),e=e[this.platform]),e)return"function"==typeof r?this.addCommand({exec:r,bindKey:e,name:r.name||e}):void e.split("|").forEach(function(e){var i="";if(-1!=e.indexOf(" ")){var t=e.split(/\s+/);e=t.pop(),t.forEach(function(e){var t=this.parseKeys(e),n=l[t.hashId]+t.key;i+=(i?" ":"")+n,this._addCommandToBinding(i,"chainKeys")},this),i+=" "}var n=this.parseKeys(e),o=l[n.hashId]+n.key;this._addCommandToBinding(i+o,r,s)},this)},this._addCommandToBinding=function(e,t,n){var i,o=this.commandKeyBinding;if(t)if(!o[e]||this.$singleCommand)o[e]=t;else{Array.isArray(o[e])?-1!=(i=o[e].indexOf(t))&&o[e].splice(i,1):o[e]=[o[e]],"number"!=typeof n&&(n=s(t));var r=o[e];for(i=0;i<r.length;i++){if(n<s(r[i]))break}r.splice(i,0,t)}else delete o[e]},this.addCommands=function(n){n&&Object.keys(n).forEach(function(e){var t=n[e];if(t){if("string"==typeof t)return this.bindKey(t,e);"function"==typeof t&&(t={exec:t}),"object"==typeof t&&(t.name||(t.name=e),this.addCommand(t))}},this)},this.removeCommands=function(t){Object.keys(t).forEach(function(e){this.removeCommand(t[e])},this)},this.bindKeys=function(t){Object.keys(t).forEach(function(e){this.bindKey(e,t[e])},this)},this._buildKeyHash=function(e){this.bindKey(e.bindKey,e)},this.parseKeys=function(e){var t=e.toLowerCase().split(/[\-\+]([\-\+])?/).filter(function(e){return e}),n=t.pop(),i=a[n];if(a.FUNCTION_KEYS[i])n=a.FUNCTION_KEYS[i].toLowerCase();else{if(!t.length)return{key:n,hashId:-1};if(1==t.length&&"shift"==t[0])return{key:n.toUpperCase(),hashId:-1}}for(var o=0,r=t.length;r--;){var s=a.KEY_MODS[t[r]];if(null==s)return"undefined"!=typeof console&&console.error("invalid modifier "+t[r]+" in "+e),!1;o|=s}return{key:n,hashId:o}},this.findKeyCommand=function(e,t){var n=l[e]+t;return this.commandKeyBinding[n]},this.handleKeyboard=function(e,t,n,i){if(!(i<0)){var o=l[t]+n,r=this.commandKeyBinding[o];return e.$keyChain&&(e.$keyChain+=" "+o,r=this.commandKeyBinding[e.$keyChain]||r),!r||"chainKeys"!=r&&"chainKeys"!=r[r.length-1]?(e.$keyChain&&(t&&4!=t||1!=n.length?(-1==t||0<i)&&(e.$keyChain=""):e.$keyChain=e.$keyChain.slice(0,-o.length-1)),{command:r}):(e.$keyChain=e.$keyChain||o,{command:"null"})}},this.getStatusText=function(e,t){return t.$keyChain||""}}.call(n.prototype),t.HashHandler=n,t.MultiHashHandler=i}),ace.define("ace/commands/command_manager",["require","exports","module","ace/lib/oop","ace/keyboard/hash_handler","ace/lib/event_emitter"],function(e,t){"use strict";var n=e("../lib/oop"),i=e("../keyboard/hash_handler").MultiHashHandler,o=e("../lib/event_emitter").EventEmitter,r=function(e,t){i.call(this,t,e),this.byName=this.commands,this.setDefaultHandler("exec",function(e){return e.command.exec(e.editor,e.args||{})})};n.inherits(r,i),function(){n.implement(this,o),this.exec=function(e,t,n){if(Array.isArray(e)){for(var i=e.length;i--;)if(this.exec(e[i],t,n))return!0;return!1}if("string"==typeof e&&(e=this.commands[e]),!e)return!1;if(t&&t.$readOnly&&!e.readOnly)return!1;if(0!=this.$checkCommandState&&e.isAvailable&&!e.isAvailable(t))return!1;var o={editor:t,command:e,args:n};return o.returnValue=this._emit("exec",o),this._signal("afterExec",o),!1!==o.returnValue},this.toggleRecording=function(e){if(!this.$inReplay)return e&&e._emit("changeStatus"),this.recording?(this.macro.pop(),this.removeEventListener("exec",this.$addCommandToMacro),this.macro.length||(this.macro=this.oldMacro),this.recording=!1):(this.$addCommandToMacro||(this.$addCommandToMacro=function(e){this.macro.push([e.command,e.args])}.bind(this)),this.oldMacro=this.macro,this.macro=[],this.on("exec",this.$addCommandToMacro),this.recording=!0)},this.replay=function(t){if(!this.$inReplay&&this.macro){if(this.recording)return this.toggleRecording(t);try{this.$inReplay=!0,this.macro.forEach(function(e){"string"==typeof e?this.exec(e,t):this.exec(e[0],t,e[1])},this)}finally{this.$inReplay=!1}}},this.trimMacro=function(e){return e.map(function(e){return"string"!=typeof e[0]&&(e[0]=e[0].name),e[1]||(e=e[0]),e})}}.call(r.prototype),t.CommandManager=r}),ace.define("ace/commands/default_commands",["require","exports","module","ace/lib/lang","ace/config","ace/range"],function(e,t){"use strict";function n(e,t){return{win:e,mac:t}}var c=e("../lib/lang"),i=e("../config"),h=e("../range").Range;t.commands=[{name:"showSettingsMenu",bindKey:n("Ctrl-,","Command-,"),exec:function(t){i.loadModule("ace/ext/settings_menu",function(e){e.init(t),t.showSettingsMenu()})},readOnly:!0},{name:"goToNextError",bindKey:n("Alt-E","F4"),exec:function(t){i.loadModule("./ext/error_marker",function(e){e.showErrorMarker(t,1)})},scrollIntoView:"animate",readOnly:!0},{name:"goToPreviousError",bindKey:n("Alt-Shift-E","Shift-F4"),exec:function(t){i.loadModule("./ext/error_marker",function(e){e.showErrorMarker(t,-1)})},scrollIntoView:"animate",readOnly:!0},{name:"selectall",description:"Select all",bindKey:n("Ctrl-A","Command-A"),exec:function(e){e.selectAll()},readOnly:!0},{name:"centerselection",description:"Center selection",bindKey:n(null,"Ctrl-L"),exec:function(e){e.centerSelection()},readOnly:!0},{name:"gotoline",description:"Go to line...",bindKey:n("Ctrl-L","Command-L"),exec:function(e,t){"number"==typeof t&&!isNaN(t)&&e.gotoLine(t),e.prompt({$type:"gotoLine"})},readOnly:!0},{name:"fold",bindKey:n("Alt-L|Ctrl-F1","Command-Alt-L|Command-F1"),exec:function(e){e.session.toggleFold(!1)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"unfold",bindKey:n("Alt-Shift-L|Ctrl-Shift-F1","Command-Alt-Shift-L|Command-Shift-F1"),exec:function(e){e.session.toggleFold(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleFoldWidget",bindKey:n("F2","F2"),exec:function(e){e.session.toggleFoldWidget()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleParentFoldWidget",bindKey:n("Alt-F2","Alt-F2"),exec:function(e){e.session.toggleFoldWidget(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"foldall",description:"Fold all",bindKey:n(null,"Ctrl-Command-Option-0"),exec:function(e){e.session.foldAll()},scrollIntoView:"center",readOnly:!0},{name:"foldOther",description:"Fold other",bindKey:n("Alt-0","Command-Option-0"),exec:function(e){e.session.foldAll(),e.session.unfold(e.selection.getAllRanges())},scrollIntoView:"center",readOnly:!0},{name:"unfoldall",description:"Unfold all",bindKey:n("Alt-Shift-0","Command-Option-Shift-0"),exec:function(e){e.session.unfold()},scrollIntoView:"center",readOnly:!0},{name:"findnext",description:"Find next",bindKey:n("Ctrl-K","Command-G"),exec:function(e){e.findNext()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"findprevious",description:"Find previous",bindKey:n("Ctrl-Shift-K","Command-Shift-G"),exec:function(e){e.findPrevious()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"selectOrFindNext",description:"Select or find next",bindKey:n("Alt-K","Ctrl-G"),exec:function(e){e.selection.isEmpty()?e.selection.selectWord():e.findNext()},readOnly:!0},{name:"selectOrFindPrevious",description:"Select or find previous",bindKey:n("Alt-Shift-K","Ctrl-Shift-G"),exec:function(e){e.selection.isEmpty()?e.selection.selectWord():e.findPrevious()},readOnly:!0},{name:"find",description:"Find",bindKey:n("Ctrl-F","Command-F"),exec:function(t){i.loadModule("ace/ext/searchbox",function(e){e.Search(t)})},readOnly:!0},{name:"overwrite",description:"Overwrite",bindKey:"Insert",exec:function(e){e.toggleOverwrite()},readOnly:!0},{name:"selecttostart",description:"Select to start",bindKey:n("Ctrl-Shift-Home","Command-Shift-Home|Command-Shift-Up"),exec:function(e){e.getSelection().selectFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotostart",description:"Go to start",bindKey:n("Ctrl-Home","Command-Home|Command-Up"),exec:function(e){e.navigateFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectup",description:"Select up",bindKey:n("Shift-Up","Shift-Up|Ctrl-Shift-P"),exec:function(e){e.getSelection().selectUp()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golineup",description:"Go line up",bindKey:n("Up","Up|Ctrl-P"),exec:function(e,t){e.navigateUp(t.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttoend",description:"Select to end",bindKey:n("Ctrl-Shift-End","Command-Shift-End|Command-Shift-Down"),exec:function(e){e.getSelection().selectFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotoend",description:"Go to end",bindKey:n("Ctrl-End","Command-End|Command-Down"),exec:function(e){e.navigateFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectdown",description:"Select down",bindKey:n("Shift-Down","Shift-Down|Ctrl-Shift-N"),exec:function(e){e.getSelection().selectDown()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golinedown",description:"Go line down",bindKey:n("Down","Down|Ctrl-N"),exec:function(e,t){e.navigateDown(t.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordleft",description:"Select word left",bindKey:n("Ctrl-Shift-Left","Option-Shift-Left"),exec:function(e){e.getSelection().selectWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordleft",description:"Go to word left",bindKey:n("Ctrl-Left","Option-Left"),exec:function(e){e.navigateWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolinestart",description:"Select to line start",bindKey:n("Alt-Shift-Left","Command-Shift-Left|Ctrl-Shift-A"),exec:function(e){e.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolinestart",description:"Go to line start",bindKey:n("Alt-Left|Home","Command-Left|Home|Ctrl-A"),exec:function(e){e.navigateLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectleft",description:"Select left",bindKey:n("Shift-Left","Shift-Left|Ctrl-Shift-B"),exec:function(e){e.getSelection().selectLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoleft",description:"Go to left",bindKey:n("Left","Left|Ctrl-B"),exec:function(e,t){e.navigateLeft(t.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordright",description:"Select word right",bindKey:n("Ctrl-Shift-Right","Option-Shift-Right"),exec:function(e){e.getSelection().selectWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordright",description:"Go to word right",bindKey:n("Ctrl-Right","Option-Right"),exec:function(e){e.navigateWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolineend",description:"Select to line end",bindKey:n("Alt-Shift-Right","Command-Shift-Right|Shift-End|Ctrl-Shift-E"),exec:function(e){e.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolineend",description:"Go to line end",bindKey:n("Alt-Right|End","Command-Right|End|Ctrl-E"),exec:function(e){e.navigateLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectright",description:"Select right",bindKey:n("Shift-Right","Shift-Right"),exec:function(e){e.getSelection().selectRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoright",description:"Go to right",bindKey:n("Right","Right|Ctrl-F"),exec:function(e,t){e.navigateRight(t.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectpagedown",description:"Select page down",bindKey:"Shift-PageDown",exec:function(e){e.selectPageDown()},readOnly:!0},{name:"pagedown",description:"Page down",bindKey:n(null,"Option-PageDown"),exec:function(e){e.scrollPageDown()},readOnly:!0},{name:"gotopagedown",description:"Go to page down",bindKey:n("PageDown","PageDown|Ctrl-V"),exec:function(e){e.gotoPageDown()},readOnly:!0},{name:"selectpageup",description:"Select page up",bindKey:"Shift-PageUp",exec:function(e){e.selectPageUp()},readOnly:!0},{name:"pageup",description:"Page up",bindKey:n(null,"Option-PageUp"),exec:function(e){e.scrollPageUp()},readOnly:!0},{name:"gotopageup",description:"Go to page up",bindKey:"PageUp",exec:function(e){e.gotoPageUp()},readOnly:!0},{name:"scrollup",description:"Scroll up",bindKey:n("Ctrl-Up",null),exec:function(e){e.renderer.scrollBy(0,-2*e.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"scrolldown",description:"Scroll down",bindKey:n("Ctrl-Down",null),exec:function(e){e.renderer.scrollBy(0,2*e.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"selectlinestart",description:"Select line start",bindKey:"Shift-Home",exec:function(e){e.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectlineend",description:"Select line end",bindKey:"Shift-End",exec:function(e){e.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"togglerecording",description:"Toggle recording",bindKey:n("Ctrl-Alt-E","Command-Option-E"),exec:function(e){e.commands.toggleRecording(e)},readOnly:!0},{name:"replaymacro",description:"Replay macro",bindKey:n("Ctrl-Shift-E","Command-Shift-E"),exec:function(e){e.commands.replay(e)},readOnly:!0},{name:"jumptomatching",description:"Jump to matching",bindKey:n("Ctrl-\\|Ctrl-P","Command-\\"),exec:function(e){e.jumpToMatching()},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"selecttomatching",description:"Select to matching",bindKey:n("Ctrl-Shift-\\|Ctrl-Shift-P","Command-Shift-\\"),exec:function(e){e.jumpToMatching(!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"expandToMatching",description:"Expand to matching",bindKey:n("Ctrl-Shift-M","Ctrl-Shift-M"),exec:function(e){e.jumpToMatching(!0,!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"passKeysToBrowser",description:"Pass keys to browser",bindKey:n(null,null),exec:function(){},passEvent:!0,readOnly:!0},{name:"copy",description:"Copy",exec:function(){},readOnly:!0},{name:"cut",description:"Cut",exec:function(e){var t=e.$copyWithEmptySelection&&e.selection.isEmpty()?e.selection.getLineRange():e.selection.getRange();e._emit("cut",t),t.isEmpty()||e.session.remove(t),e.clearSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"paste",description:"Paste",exec:function(e,t){e.$handlePaste(t)},scrollIntoView:"cursor"},{name:"removeline",description:"Remove line",bindKey:n("Ctrl-D","Command-D"),exec:function(e){e.removeLines()},scrollIntoView:"cursor",multiSelectAction:"forEachLine"},{name:"duplicateSelection",description:"Duplicate selection",bindKey:n("Ctrl-Shift-D","Command-Shift-D"),exec:function(e){e.duplicateSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"sortlines",description:"Sort lines",bindKey:n("Ctrl-Alt-S","Command-Alt-S"),exec:function(e){e.sortLines()},scrollIntoView:"selection",multiSelectAction:"forEachLine"},{name:"togglecomment",description:"Toggle comment",bindKey:n("Ctrl-/","Command-/"),exec:function(e){e.toggleCommentLines()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"toggleBlockComment",description:"Toggle block comment",bindKey:n("Ctrl-Shift-/","Command-Shift-/"),exec:function(e){e.toggleBlockComment()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"modifyNumberUp",description:"Modify number up",bindKey:n("Ctrl-Shift-Up","Alt-Shift-Up"),exec:function(e){e.modifyNumber(1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"modifyNumberDown",description:"Modify number down",bindKey:n("Ctrl-Shift-Down","Alt-Shift-Down"),exec:function(e){e.modifyNumber(-1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"replace",description:"Replace",bindKey:n("Ctrl-H","Command-Option-F"),exec:function(t){i.loadModule("ace/ext/searchbox",function(e){e.Search(t,!0)})}},{
7
- name:"undo",description:"Undo",bindKey:n("Ctrl-Z","Command-Z"),exec:function(e){e.undo()}},{name:"redo",description:"Redo",bindKey:n("Ctrl-Shift-Z|Ctrl-Y","Command-Shift-Z|Command-Y"),exec:function(e){e.redo()}},{name:"copylinesup",description:"Copy lines up",bindKey:n("Alt-Shift-Up","Command-Option-Up"),exec:function(e){e.copyLinesUp()},scrollIntoView:"cursor"},{name:"movelinesup",description:"Move lines up",bindKey:n("Alt-Up","Option-Up"),exec:function(e){e.moveLinesUp()},scrollIntoView:"cursor"},{name:"copylinesdown",description:"Copy lines down",bindKey:n("Alt-Shift-Down","Command-Option-Down"),exec:function(e){e.copyLinesDown()},scrollIntoView:"cursor"},{name:"movelinesdown",description:"Move lines down",bindKey:n("Alt-Down","Option-Down"),exec:function(e){e.moveLinesDown()},scrollIntoView:"cursor"},{name:"del",description:"Delete",bindKey:n("Delete","Delete|Ctrl-D|Shift-Delete"),exec:function(e){e.remove("right")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"backspace",description:"Backspace",bindKey:n("Shift-Backspace|Backspace","Ctrl-Backspace|Shift-Backspace|Backspace|Ctrl-H"),exec:function(e){e.remove("left")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"cut_or_delete",description:"Cut or delete",bindKey:n("Shift-Delete",null),exec:function(e){if(!e.selection.isEmpty())return!1;e.remove("left")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestart",description:"Remove to line start",bindKey:n("Alt-Backspace","Command-Backspace"),exec:function(e){e.removeToLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineend",description:"Remove to line end",bindKey:n("Alt-Delete","Ctrl-K|Command-Delete"),exec:function(e){e.removeToLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestarthard",description:"Remove to line start hard",bindKey:n("Ctrl-Shift-Backspace",null),exec:function(e){var t=e.selection.getRange();t.start.column=0,e.session.remove(t)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineendhard",description:"Remove to line end hard",bindKey:n("Ctrl-Shift-Delete",null),exec:function(e){var t=e.selection.getRange();t.end.column=Number.MAX_VALUE,e.session.remove(t)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordleft",description:"Remove word left",bindKey:n("Ctrl-Backspace","Alt-Backspace|Ctrl-Alt-Backspace"),exec:function(e){e.removeWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordright",description:"Remove word right",bindKey:n("Ctrl-Delete","Alt-Delete"),exec:function(e){e.removeWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"outdent",description:"Outdent",bindKey:n("Shift-Tab","Shift-Tab"),exec:function(e){e.blockOutdent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"indent",description:"Indent",bindKey:n("Tab","Tab"),exec:function(e){e.indent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"blockoutdent",description:"Block outdent",bindKey:n("Ctrl-[","Ctrl-["),exec:function(e){e.blockOutdent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"blockindent",description:"Block indent",bindKey:n("Ctrl-]","Ctrl-]"),exec:function(e){e.blockIndent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"insertstring",description:"Insert string",exec:function(e,t){e.insert(t)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"inserttext",description:"Insert text",exec:function(e,t){e.insert(c.stringRepeat(t.text||"",t.times||1))},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"splitline",description:"Split line",bindKey:n(null,"Ctrl-O"),exec:function(e){e.splitLine()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"transposeletters",description:"Transpose letters",bindKey:n("Alt-Shift-X","Ctrl-T"),exec:function(e){e.transposeLetters()},multiSelectAction:function(e){e.transposeSelections(1)},scrollIntoView:"cursor"},{name:"touppercase",description:"To uppercase",bindKey:n("Ctrl-U","Ctrl-U"),exec:function(e){e.toUpperCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"tolowercase",description:"To lowercase",bindKey:n("Ctrl-Shift-U","Ctrl-Shift-U"),exec:function(e){e.toLowerCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"expandtoline",description:"Expand to line",bindKey:n("Ctrl-Shift-L","Command-Shift-L"),exec:function(e){var t=e.selection.getRange();t.start.column=t.end.column=0,t.end.row++,e.selection.setRange(t,!1)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"joinlines",description:"Join lines",bindKey:n(null,null),exec:function(e){for(var t=e.selection.isBackwards(),n=t?e.selection.getSelectionLead():e.selection.getSelectionAnchor(),i=t?e.selection.getSelectionAnchor():e.selection.getSelectionLead(),o=e.session.doc.getLine(n.row).length,r=e.session.doc.getTextRange(e.selection.getRange()).replace(/\n\s*/," ").length,s=e.session.doc.getLine(n.row),a=n.row+1;a<=i.row+1;a++){var l=c.stringTrimLeft(c.stringTrimRight(e.session.doc.getLine(a)));0!==l.length&&(l=" "+l),s+=l}i.row+1<e.session.doc.getLength()-1&&(s+=e.session.doc.getNewLineCharacter()),e.clearSelection(),e.session.doc.replace(new h(n.row,0,i.row+2,0),s),0<r?(e.selection.moveCursorTo(n.row,n.column),e.selection.selectTo(n.row,n.column+r)):(o=e.session.doc.getLine(n.row).length>o?o+1:o,e.selection.moveCursorTo(n.row,o))},multiSelectAction:"forEach",readOnly:!0},{name:"invertSelection",description:"Invert selection",bindKey:n(null,null),exec:function(e){var t=e.session.doc.getLength()-1,n=e.session.doc.getLine(t).length,i=e.selection.rangeList.ranges,o=[];i.length<1&&(i=[e.selection.getRange()]);for(var r=0;r<i.length;r++)r==i.length-1&&(i[r].end.row!==t||i[r].end.column!==n)&&o.push(new h(i[r].end.row,i[r].end.column,t,n)),0===r?(0!==i[r].start.row||0!==i[r].start.column)&&o.push(new h(0,0,i[r].start.row,i[r].start.column)):o.push(new h(i[r-1].end.row,i[r-1].end.column,i[r].start.row,i[r].start.column));e.exitMultiSelectMode(),e.clearSelection();for(r=0;r<o.length;r++)e.selection.addRange(o[r],!1)},readOnly:!0,scrollIntoView:"none"},{name:"openCommandPallete",description:"Open command pallete",bindKey:n("F1","F1"),exec:function(e){e.prompt({$type:"commands"})},readOnly:!0},{name:"modeSelect",description:"Change language mode...",bindKey:n(null,null),exec:function(e){e.prompt({$type:"modes"})},readOnly:!0}]}),ace.define("ace/editor",["require","exports","module","ace/lib/fixoldbrowsers","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/useragent","ace/keyboard/textinput","ace/mouse/mouse_handler","ace/mouse/fold_handler","ace/keyboard/keybinding","ace/edit_session","ace/search","ace/range","ace/lib/event_emitter","ace/commands/command_manager","ace/commands/default_commands","ace/config","ace/token_iterator","ace/clipboard"],function(e,t){"use strict";e("./lib/fixoldbrowsers");var r=e("./lib/oop"),n=e("./lib/dom"),m=e("./lib/lang"),o=e("./lib/useragent"),s=e("./keyboard/textinput").TextInput,a=e("./mouse/mouse_handler").MouseHandler,l=e("./mouse/fold_handler").FoldHandler,c=e("./keyboard/keybinding").KeyBinding,h=e("./edit_session").EditSession,u=e("./search").Search,f=e("./range").Range,i=e("./lib/event_emitter").EventEmitter,d=e("./commands/command_manager").CommandManager,g=e("./commands/default_commands").commands,p=e("./config"),v=e("./token_iterator").TokenIterator,b=e("./clipboard"),w=function(e,t,n){var i=e.getContainerElement();this.container=i,this.renderer=e,this.id="editor"+ ++w.$uid,this.commands=new d(o.isMac?"mac":"win",g),"object"==typeof document&&(this.textInput=new s(e.getTextAreaContainer(),this),this.renderer.textarea=this.textInput.getElement(),this.$mouseHandler=new a(this),new l(this)),this.keyBinding=new c(this),this.$search=(new u).set({wrap:!0}),this.$historyTracker=this.$historyTracker.bind(this),this.commands.on("exec",this.$historyTracker),this.$initOperationListeners(),this._$emitInputEvent=m.delayedCall(function(){this._signal("input",{}),this.session&&this.session.bgTokenizer&&this.session.bgTokenizer.scheduleStart()}.bind(this)),this.on("change",function(e,t){t._$emitInputEvent.schedule(31)}),this.setSession(t||n&&n.session||new h("")),p.resetOptions(this),n&&this.setOptions(n),p._signal("editor",this)};w.$uid=0,function(){r.implement(this,i),this.$initOperationListeners=function(){this.commands.on("exec",this.startOperation.bind(this),!0),this.commands.on("afterExec",this.endOperation.bind(this),!0),this.$opResetTimer=m.delayedCall(this.endOperation.bind(this,!0)),this.on("change",function(){this.curOp||(this.startOperation(),this.curOp.selectionBefore=this.$lastSel),this.curOp.docChanged=!0}.bind(this),!0),this.on("changeSelection",function(){this.curOp||(this.startOperation(),this.curOp.selectionBefore=this.$lastSel),this.curOp.selectionChanged=!0}.bind(this),!0)},this.curOp=null,this.prevOp={},this.startOperation=function(e){if(this.curOp){if(!e||this.curOp.command)return;this.prevOp=this.curOp}e||(this.previousCommand=null,e={}),this.$opResetTimer.schedule(),this.curOp=this.session.curOp={command:e.command||{},args:e.args,scrollTop:this.renderer.scrollTop},this.curOp.selectionBefore=this.selection.toJSON()},this.endOperation=function(e){if(this.curOp){if(e&&!1===e.returnValue)return this.curOp=null;if(1==e&&this.curOp.command&&"mouse"==this.curOp.command.name)return;if(this._signal("beforeEndOperation"),!this.curOp)return;var t=this.curOp.command,n=t&&t.scrollIntoView;if(n){switch(n){case"center-animate":n="animate";case"center":this.renderer.scrollCursorIntoView(null,.5);break;case"animate":case"cursor":this.renderer.scrollCursorIntoView();break;case"selectionPart":var i=this.selection.getRange(),o=this.renderer.layerConfig;(i.start.row>=o.lastRow||i.end.row<=o.firstRow)&&this.renderer.scrollSelectionIntoView(this.selection.anchor,this.selection.lead)}"animate"==n&&this.renderer.animateScrolling(this.curOp.scrollTop)}var r=this.selection.toJSON();this.curOp.selectionAfter=r,this.$lastSel=this.selection.toJSON(),this.session.getUndoManager().addSelection(r),this.prevOp=this.curOp,this.curOp=null}},this.$mergeableCommands=["backspace","del","insertstring"],this.$historyTracker=function(e){if(this.$mergeUndoDeltas){var t=this.prevOp,n=this.$mergeableCommands,i=t.command&&e.command.name==t.command.name;if("insertstring"==e.command.name){var o=e.args;this.mergeNextCommand===undefined&&(this.mergeNextCommand=!0),i=i&&this.mergeNextCommand&&(!/\s/.test(o)||/\s/.test(t.args)),this.mergeNextCommand=!0}else i=i&&-1!==n.indexOf(e.command.name);"always"!=this.$mergeUndoDeltas&&2e3<Date.now()-this.sequenceStartTime&&(i=!1),i?this.session.mergeUndoDeltas=!0:-1!==n.indexOf(e.command.name)&&(this.sequenceStartTime=Date.now())}},this.setKeyboardHandler=function(t,n){if(t&&"string"==typeof t&&"ace"!=t){this.$keybindingId=t;var i=this;p.loadModule(["keybinding",t],function(e){i.$keybindingId==t&&i.keyBinding.setKeyboardHandler(e&&e.handler),n&&n()})}else this.$keybindingId=null,this.keyBinding.setKeyboardHandler(t),n&&n()},this.getKeyboardHandler=function(){return this.keyBinding.getKeyboardHandler()},this.setSession=function(e){if(this.session!=e){this.curOp&&this.endOperation(),this.curOp={};var t=this.session;if(t){this.session.off("change",this.$onDocumentChange),this.session.off("changeMode",this.$onChangeMode),this.session.off("tokenizerUpdate",this.$onTokenizerUpdate),this.session.off("changeTabSize",this.$onChangeTabSize),this.session.off("changeWrapLimit",this.$onChangeWrapLimit),this.session.off("changeWrapMode",this.$onChangeWrapMode),this.session.off("changeFold",this.$onChangeFold),this.session.off("changeFrontMarker",this.$onChangeFrontMarker),this.session.off("changeBackMarker",this.$onChangeBackMarker),this.session.off("changeBreakpoint",this.$onChangeBreakpoint),this.session.off("changeAnnotation",this.$onChangeAnnotation),this.session.off("changeOverwrite",this.$onCursorChange),this.session.off("changeScrollTop",this.$onScrollTopChange),this.session.off("changeScrollLeft",this.$onScrollLeftChange);var n=this.session.getSelection();n.off("changeCursor",this.$onCursorChange),n.off("changeSelection",this.$onSelectionChange)}(this.session=e)?(this.$onDocumentChange=this.onDocumentChange.bind(this),e.on("change",this.$onDocumentChange),this.renderer.setSession(e),this.$onChangeMode=this.onChangeMode.bind(this),e.on("changeMode",this.$onChangeMode),this.$onTokenizerUpdate=this.onTokenizerUpdate.bind(this),e.on("tokenizerUpdate",this.$onTokenizerUpdate),this.$onChangeTabSize=this.renderer.onChangeTabSize.bind(this.renderer),e.on("changeTabSize",this.$onChangeTabSize),this.$onChangeWrapLimit=this.onChangeWrapLimit.bind(this),e.on("changeWrapLimit",this.$onChangeWrapLimit),this.$onChangeWrapMode=this.onChangeWrapMode.bind(this),e.on("changeWrapMode",this.$onChangeWrapMode),this.$onChangeFold=this.onChangeFold.bind(this),e.on("changeFold",this.$onChangeFold),this.$onChangeFrontMarker=this.onChangeFrontMarker.bind(this),this.session.on("changeFrontMarker",this.$onChangeFrontMarker),this.$onChangeBackMarker=this.onChangeBackMarker.bind(this),this.session.on("changeBackMarker",this.$onChangeBackMarker),this.$onChangeBreakpoint=this.onChangeBreakpoint.bind(this),this.session.on("changeBreakpoint",this.$onChangeBreakpoint),this.$onChangeAnnotation=this.onChangeAnnotation.bind(this),this.session.on("changeAnnotation",this.$onChangeAnnotation),this.$onCursorChange=this.onCursorChange.bind(this),this.session.on("changeOverwrite",this.$onCursorChange),this.$onScrollTopChange=this.onScrollTopChange.bind(this),this.session.on("changeScrollTop",this.$onScrollTopChange),this.$onScrollLeftChange=this.onScrollLeftChange.bind(this),this.session.on("changeScrollLeft",this.$onScrollLeftChange),this.selection=e.getSelection(),this.selection.on("changeCursor",this.$onCursorChange),this.$onSelectionChange=this.onSelectionChange.bind(this),this.selection.on("changeSelection",this.$onSelectionChange),this.onChangeMode(),this.onCursorChange(),this.onScrollTopChange(),this.onScrollLeftChange(),this.onSelectionChange(),this.onChangeFrontMarker(),this.onChangeBackMarker(),this.onChangeBreakpoint(),this.onChangeAnnotation(),this.session.getUseWrapMode()&&this.renderer.adjustWrapLimit(),this.renderer.updateFull()):(this.selection=null,this.renderer.setSession(e)),this._signal("changeSession",{session:e,oldSession:t}),this.curOp=null,t&&t._signal("changeEditor",{oldEditor:this}),e&&e._signal("changeEditor",{editor:this}),e&&e.bgTokenizer&&e.bgTokenizer.scheduleStart()}},this.getSession=function(){return this.session},this.setValue=function(e,t){return this.session.doc.setValue(e),t?1==t?this.navigateFileEnd():-1==t&&this.navigateFileStart():this.selectAll(),e},this.getValue=function(){return this.session.getValue()},this.getSelection=function(){return this.selection},this.resize=function(e){this.renderer.onResize(e)},this.setTheme=function(e,t){this.renderer.setTheme(e,t)},this.getTheme=function(){return this.renderer.getTheme()},this.setStyle=function(e){this.renderer.setStyle(e)},this.unsetStyle=function(e){this.renderer.unsetStyle(e)},this.getFontSize=function(){return this.getOption("fontSize")||n.computedStyle(this.container).fontSize},this.setFontSize=function(e){this.setOption("fontSize",e)},this.$highlightBrackets=function(){if(this.session.$bracketHighlight&&(this.session.removeMarker(this.session.$bracketHighlight),this.session.$bracketHighlight=null),!this.$highlightPending){var i=this;this.$highlightPending=!0,setTimeout(function(){i.$highlightPending=!1;var e=i.session;if(e&&e.bgTokenizer){var t=e.findMatchingBracket(i.getCursorPosition());if(t)var n=new f(t.row,t.column,t.row,t.column+1);else if(e.$mode.getMatching)n=e.$mode.getMatching(i.session);n&&(e.$bracketHighlight=e.addMarker(n,"ace_bracket","text"))}},50)}},this.$highlightTags=function(){if(!this.$highlightTagPending){var u=this;this.$highlightTagPending=!0,setTimeout(function(){u.$highlightTagPending=!1;var e=u.session;if(e&&e.bgTokenizer){var t=u.getCursorPosition(),n=new v(u.session,t.row,t.column),i=n.getCurrentToken();if(!i||!/\b(?:tag-open|tag-name)/.test(i.type))return e.removeMarker(e.$tagHighlight),void(e.$tagHighlight=null);if(-1==i.type.indexOf("tag-open")||(i=n.stepForward())){var o=i.value,r=0,s=n.stepBackward();if("<"==s.value)for(;s=i,(i=n.stepForward())&&i.value===o&&-1!==i.type.indexOf("tag-name")&&("<"===s.value?r++:"</"===s.value&&r--),i&&0<=r;);else{for(;i=s,s=n.stepBackward(),i&&i.value===o&&-1!==i.type.indexOf("tag-name")&&("<"===s.value?r++:"</"===s.value&&r--),s&&r<=0;);n.stepForward()}if(!i)return e.removeMarker(e.$tagHighlight),void(e.$tagHighlight=null);var a=n.getCurrentTokenRow(),l=n.getCurrentTokenColumn(),c=new f(a,l,a,l+i.value.length),h=e.$backMarkers[e.$tagHighlight];e.$tagHighlight&&h!=undefined&&0!==c.compareRange(h.range)&&(e.removeMarker(e.$tagHighlight),e.$tagHighlight=null),e.$tagHighlight||(e.$tagHighlight=e.addMarker(c,"ace_bracket","text"))}}},50)}},this.focus=function(){var e=this;setTimeout(function(){e.isFocused()||e.textInput.focus()}),this.textInput.focus()},this.isFocused=function(){return this.textInput.isFocused()},this.blur=function(){this.textInput.blur()},this.onFocus=function(e){this.$isFocused||(this.$isFocused=!0,this.renderer.showCursor(),this.renderer.visualizeFocus(),this._emit("focus",e))},this.onBlur=function(e){this.$isFocused&&(this.$isFocused=!1,this.renderer.hideCursor(),this.renderer.visualizeBlur(),this._emit("blur",e))},this.$cursorChange=function(){this.renderer.updateCursor()},this.onDocumentChange=function(e){var t=this.session.$useWrapMode,n=e.start.row==e.end.row?e.end.row:Infinity;this.renderer.updateLines(e.start.row,n,t),this._signal("change",e),this.$cursorChange(),this.$updateHighlightActiveLine()},this.onTokenizerUpdate=function(e){var t=e.data;this.renderer.updateLines(t.first,t.last)},this.onScrollTopChange=function(){this.renderer.scrollToY(this.session.getScrollTop())},this.onScrollLeftChange=function(){this.renderer.scrollToX(this.session.getScrollLeft())},this.onCursorChange=function(){this.$cursorChange(),this.$highlightBrackets(),this.$highlightTags(),this.$updateHighlightActiveLine(),this._signal("changeSelection")},this.$updateHighlightActiveLine=function(){var e,t=this.getSession();if(this.$highlightActiveLine&&("line"==this.$selectionStyle&&this.selection.isMultiLine()||(e=this.getCursorPosition()),this.renderer.theme&&this.renderer.theme.$selectionColorConflict&&!this.selection.isEmpty()&&(e=!1),this.renderer.$maxLines&&1===this.session.getLength()&&!(1<this.renderer.$minLines)&&(e=!1)),t.$highlightLineMarker&&!e)t.removeMarker(t.$highlightLineMarker.id),t.$highlightLineMarker=null;else if(!t.$highlightLineMarker&&e){var n=new f(e.row,e.column,e.row,Infinity);n.id=t.addMarker(n,"ace_active-line","screenLine"),t.$highlightLineMarker=n}else e&&(t.$highlightLineMarker.start.row=e.row,t.$highlightLineMarker.end.row=e.row,t.$highlightLineMarker.start.column=e.column,t._signal("changeBackMarker"))},this.onSelectionChange=function(){var e=this.session;if(e.$selectionMarker&&e.removeMarker(e.$selectionMarker),e.$selectionMarker=null,this.selection.isEmpty())this.$updateHighlightActiveLine();else{var t=this.selection.getRange(),n=this.getSelectionStyle();e.$selectionMarker=e.addMarker(t,"ace_selection",n)}var i=this.$highlightSelectedWord&&this.$getSelectionHighLightRegexp();this.session.highlight(i),this._signal("changeSelection")},this.$getSelectionHighLightRegexp=function(){var e=this.session,t=this.getSelectionRange();if(!t.isEmpty()&&!t.isMultiLine()){var n=t.start.column,i=t.end.column,o=e.getLine(t.start.row),r=o.substring(n,i);if(!(5e3<r.length)&&/[\w\d]/.test(r)){var s=this.$search.$assembleRegExp({wholeWord:!0,caseSensitive:!0,needle:r}),a=o.substring(n-1,i+1);if(s.test(a))return s}}},this.onChangeFrontMarker=function(){this.renderer.updateFrontMarkers()},this.onChangeBackMarker=function(){this.renderer.updateBackMarkers()},this.onChangeBreakpoint=function(){this.renderer.updateBreakpoints()},this.onChangeAnnotation=function(){this.renderer.setAnnotations(this.session.getAnnotations())},this.onChangeMode=function(e){this.renderer.updateText(),this._emit("changeMode",e)},this.onChangeWrapLimit=function(){this.renderer.updateFull()},this.onChangeWrapMode=function(){this.renderer.onResize(!0)},this.onChangeFold=function(){this.$updateHighlightActiveLine(),this.renderer.updateFull()},this.getSelectedText=function(){return this.session.getTextRange(this.getSelectionRange())},this.getCopyText=function(){var e=this.getSelectedText(),t=this.session.doc.getNewLineCharacter(),n=!1;if(!e&&this.$copyWithEmptySelection){n=!0;for(var i=this.selection.getAllRanges(),o=0;o<i.length;o++){var r=i[o];o&&i[o-1].start.row==r.start.row||(e+=this.session.getLine(r.start.row)+t)}}var s={text:e};return this._signal("copy",s),b.lineMode=n?s.text:"",s.text},this.onCopy=function(){this.commands.exec("copy",this)},this.onCut=function(){this.commands.exec("cut",this)},this.onPaste=function(e,t){var n={text:e,event:t};this.commands.exec("paste",this,n)},this.$handlePaste=function(e){"string"==typeof e&&(e={text:e}),this._signal("paste",e);var t=e.text,n=t==b.lineMode,i=this.session;if(!this.inMultiSelectMode||this.inVirtualSelectionMode)n?i.insert({row:this.selection.lead.row,column:0},t):this.insert(t);else if(n)this.selection.rangeList.ranges.forEach(function(e){i.insert({row:e.start.row,column:0},t)});else{var o=t.split(/\r\n|\r|\n/),r=this.selection.rangeList.ranges,s=!(2!=o.length||o[0]&&o[1]);if(o.length!=r.length||s)return this.commands.exec("insertstring",this,t);for(var a=r.length;a--;){var l=r[a];l.isEmpty()||i.remove(l),i.insert(l.start,o[a])}}},this.execCommand=function(e,t){return this.commands.exec(e,this,t)},this.insert=function(e,t){var n=this.session,i=n.getMode(),o=this.getCursorPosition();if(this.getBehavioursEnabled()&&!t){var r=i.transformAction(n.getState(o.row),"insertion",this,n,e);r&&(e!==r.text&&(this.inVirtualSelectionMode||(this.session.mergeUndoDeltas=!1,this.mergeNextCommand=!1)),e=r.text)}if("\t"==e&&(e=this.session.getTabString()),this.selection.isEmpty()){if(this.session.getOverwrite()&&-1==e.indexOf("\n")){(s=new f.fromPoints(o,o)).end.column+=e.length,this.session.remove(s)}}else{var s=this.getSelectionRange();o=this.session.remove(s),this.clearSelection()}if("\n"==e||"\r\n"==e){var a=n.getLine(o.row);if(o.column>a.search(/\S|$/)){var l=a.substr(o.column).search(/\S|$/);n.doc.removeInLine(o.row,o.column,o.column+l)}}this.clearSelection();var c=o.column,h=n.getState(o.row),u=(a=n.getLine(o.row),i.checkOutdent(h,a,e));if(n.insert(o,e),r&&r.selection&&(2==r.selection.length?this.selection.setSelectionRange(new f(o.row,c+r.selection[0],o.row,c+r.selection[1])):this.selection.setSelectionRange(new f(o.row+r.selection[0],r.selection[1],o.row+r.selection[2],r.selection[3]))),n.getDocument().isNewLine(e)){var d=i.getNextLineIndent(h,a.slice(0,o.column),n.getTabString());n.insert({row:o.row+1,column:0},d)}u&&i.autoOutdent(h,n,o.row)},this.onTextInput=function(e,t){if(!t)return this.keyBinding.onTextInput(e);this.startOperation({command:{name:"insertstring"}});var n=this.applyComposition.bind(this,e,t);this.selection.rangeCount?this.forEachSelection(n):n(),this.endOperation()},this.applyComposition=function(e,t){var n;(t.extendLeft||t.extendRight)&&((n=this.selection.getRange()).start.column-=t.extendLeft,n.end.column+=t.extendRight,this.selection.setRange(n),!e&&!n.isEmpty()&&this.remove());((e||!this.selection.isEmpty())&&this.insert(e,!0),t.restoreStart||t.restoreEnd)&&((n=this.selection.getRange()).start.column-=t.restoreStart,n.end.column-=t.restoreEnd,this.selection.setRange(n))},this.onCommandKey=function(e,t,n){return this.keyBinding.onCommandKey(e,t,n)},this.setOverwrite=function(e){this.session.setOverwrite(e)},this.getOverwrite=function(){return this.session.getOverwrite()},this.toggleOverwrite=function(){this.session.toggleOverwrite()},this.setScrollSpeed=function(e){this.setOption("scrollSpeed",e)},this.getScrollSpeed=function(){return this.getOption("scrollSpeed")},this.setDragDelay=function(e){this.setOption("dragDelay",e)},this.getDragDelay=function(){return this.getOption("dragDelay")},this.setSelectionStyle=function(e){this.setOption("selectionStyle",e)},this.getSelectionStyle=function(){return this.getOption("selectionStyle")},this.setHighlightActiveLine=function(e){this.setOption("highlightActiveLine",e)},this.getHighlightActiveLine=function(){return this.getOption("highlightActiveLine")},this.setHighlightGutterLine=function(e){this.setOption("highlightGutterLine",e)},this.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},this.setHighlightSelectedWord=function(e){this.setOption("highlightSelectedWord",e)},this.getHighlightSelectedWord=function(){return this.$highlightSelectedWord},this.setAnimatedScroll=function(e){this.renderer.setAnimatedScroll(e)},this.getAnimatedScroll=function(){return this.renderer.getAnimatedScroll()},this.setShowInvisibles=function(e){this.renderer.setShowInvisibles(e)},this.getShowInvisibles=function(){return this.renderer.getShowInvisibles()},this.setDisplayIndentGuides=function(e){this.renderer.setDisplayIndentGuides(e)},this.getDisplayIndentGuides=function(){return this.renderer.getDisplayIndentGuides()},this.setShowPrintMargin=function(e){this.renderer.setShowPrintMargin(e)},this.getShowPrintMargin=function(){return this.renderer.getShowPrintMargin()},this.setPrintMarginColumn=function(e){this.renderer.setPrintMarginColumn(e)},this.getPrintMarginColumn=function(){return this.renderer.getPrintMarginColumn()},this.setReadOnly=function(e){this.setOption("readOnly",e)},this.getReadOnly=function(){return this.getOption("readOnly")},this.setBehavioursEnabled=function(e){this.setOption("behavioursEnabled",e)},this.getBehavioursEnabled=function(){return this.getOption("behavioursEnabled")},this.setWrapBehavioursEnabled=function(e){this.setOption("wrapBehavioursEnabled",e)},this.getWrapBehavioursEnabled=function(){return this.getOption("wrapBehavioursEnabled")},this.setShowFoldWidgets=function(e){this.setOption("showFoldWidgets",e)},this.getShowFoldWidgets=function(){return this.getOption("showFoldWidgets")},this.setFadeFoldWidgets=function(e){this.setOption("fadeFoldWidgets",e)},this.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},this.remove=function(e){this.selection.isEmpty()&&("left"==e?this.selection.selectLeft():this.selection.selectRight());var t=this.getSelectionRange();if(this.getBehavioursEnabled()){var n=this.session,i=n.getState(t.start.row),o=n.getMode().transformAction(i,"deletion",this,n,t);if(0===t.end.column){var r=n.getTextRange(t);if("\n"==r[r.length-1]){var s=n.getLine(t.end.row);/^\s+$/.test(s)&&(t.end.column=s.length)}}o&&(t=o)}this.session.remove(t),this.clearSelection()},this.removeWordRight=function(){this.selection.isEmpty()&&this.selection.selectWordRight(),this.session.remove(this.getSelectionRange()),this.clearSelection()},this.removeWordLeft=function(){this.selection.isEmpty()&&this.selection.selectWordLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},this.removeToLineStart=function(){this.selection.isEmpty()&&this.selection.selectLineStart(),this.selection.isEmpty()&&this.selection.selectLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},this.removeToLineEnd=function(){this.selection.isEmpty()&&this.selection.selectLineEnd();var e=this.getSelectionRange();e.start.column==e.end.column&&e.start.row==e.end.row&&(e.end.column=0,e.end.row++),this.session.remove(e),this.clearSelection()},this.splitLine=function(){this.selection.isEmpty()||(this.session.remove(this.getSelectionRange()),this.clearSelection());var e=this.getCursorPosition();this.insert("\n"),this.moveCursorToPosition(e)},this.transposeLetters=function(){if(this.selection.isEmpty()){var e=this.getCursorPosition(),t=e.column;if(0!==t){var n,i,o=this.session.getLine(e.row);t<o.length?(n=o.charAt(t)+o.charAt(t-1),i=new f(e.row,t-1,e.row,t+1)):(n=o.charAt(t-1)+o.charAt(t-2),i=new f(e.row,t-2,e.row,t)),this.session.replace(i,n),this.session.selection.moveToPosition(i.end)}}},this.toLowerCase=function(){var e=this.getSelectionRange();this.selection.isEmpty()&&this.selection.selectWord();var t=this.getSelectionRange(),n=this.session.getTextRange(t);this.session.replace(t,n.toLowerCase()),this.selection.setSelectionRange(e)},this.toUpperCase=function(){var e=this.getSelectionRange();this.selection.isEmpty()&&this.selection.selectWord();var t=this.getSelectionRange(),n=this.session.getTextRange(t);this.session.replace(t,n.toUpperCase()),this.selection.setSelectionRange(e)},this.indent=function(){var e=this.session,t=this.getSelectionRange();if(!(t.start.row<t.end.row)){if(t.start.column<t.end.column){var n=e.getTextRange(t);if(!/^\s+$/.test(n)){c=this.$getSelectedRows();return void e.indentRows(c.first,c.last,"\t")}}var i=e.getLine(t.start.row),o=t.start,r=e.getTabSize(),s=e.documentToScreenColumn(o.row,o.column);if(this.session.getUseSoftTabs())var a=r-s%r,l=m.stringRepeat(" ",a);else{for(a=s%r;" "==i[t.start.column-1]&&a;)t.start.column--,a--;this.selection.setSelectionRange(t),l="\t"}return this.insert(l)}var c=this.$getSelectedRows();e.indentRows(c.first,c.last,"\t")},this.blockIndent=function(){var e=this.$getSelectedRows();this.session.indentRows(e.first,e.last,"\t")},this.blockOutdent=function(){var e=this.session.getSelection();this.session.outdentRows(e.getRange())},this.sortLines=function(){for(var e=this.$getSelectedRows(),t=this.session,n=[],i=e.first;i<=e.last;i++)n.push(t.getLine(i));n.sort(function(e,t){return e.toLowerCase()<t.toLowerCase()?-1:e.toLowerCase()>t.toLowerCase()?1:0});var o=new f(0,0,0,0);for(i=e.first;i<=e.last;i++){var r=t.getLine(i);o.start.row=i,o.end.row=i,o.end.column=r.length,t.replace(o,n[i-e.first])}},this.toggleCommentLines=function(){var e=this.session.getState(this.getCursorPosition().row),t=this.$getSelectedRows();this.session.getMode().toggleCommentLines(e,this.session,t.first,t.last)},this.toggleBlockComment=function(){var e=this.getCursorPosition(),t=this.session.getState(e.row),n=this.getSelectionRange();this.session.getMode().toggleBlockComment(t,this.session,n,e)},this.getNumberAt=function(e,t){var n=/[\-]?[0-9]+(?:\.[0-9]+)?/g;n.lastIndex=0;for(var i=this.session.getLine(e);n.lastIndex<t;){var o=n.exec(i);if(o.index<=t&&o.index+o[0].length>=t)return{value:o[0],start:o.index,end:o.index+o[0].length}}return null},this.modifyNumber=function(e){var t=this.selection.getCursor().row,n=this.selection.getCursor().column,i=new f(t,n-1,t,n),o=this.session.getTextRange(i);if(!isNaN(parseFloat(o))&&isFinite(o)){var r=this.getNumberAt(t,n);if(r){var s=0<=r.value.indexOf(".")?r.start+r.value.indexOf(".")+1:r.end,a=r.start+r.value.length-s,l=parseFloat(r.value);l*=Math.pow(10,a),s!==r.end&&n<s?e*=Math.pow(10,r.end-n-1):e*=Math.pow(10,r.end-n),l+=e;var c=(l/=Math.pow(10,a)).toFixed(a),h=new f(t,r.start,t,r.end);this.session.replace(h,c),this.moveCursorTo(t,Math.max(r.start+1,n+c.length-r.value.length))}}else this.toggleWord()},this.$toggleWordPairs=[["first","last"],["true","false"],["yes","no"],["width","height"],["top","bottom"],["right","left"],["on","off"],["x","y"],["get","set"],["max","min"],["horizontal","vertical"],["show","hide"],["add","remove"],["up","down"],["before","after"],["even","odd"],["inside","outside"],["next","previous"],["increase","decrease"],["attach","detach"],["&&","||"],["==","!="]],this.toggleWord=function(){var t=this.selection.getCursor().row,e=this.selection.getCursor().column;this.selection.selectWord();var n=this.getSelectedText(),i=this.selection.getWordRange().start.column,o=n.replace(/([a-z]+|[A-Z]+)(?=[A-Z_]|$)/g,"$1 ").split(/\s/),r=e-i-1;r<0&&(r=0);var s=0,a=0,l=this;n.match(/[A-Za-z0-9_]+/)&&o.forEach(function(e){a=s+e.length,s<=r&&r<=a&&(n=e,l.selection.clearSelection(),l.moveCursorTo(t,s+i),l.selection.selectTo(t,a+i)),s=a});for(var c,h=this.$toggleWordPairs,u=0;u<h.length;u++)for(var d=h[u],g=0;g<=1;g++){var p=+!g,f=n.match(new RegExp("^\\s?_?("+m.escapeRegExp(d[g])+")\\s?$","i"));if(f)n.match(new RegExp("([_]|^|\\s)("+m.escapeRegExp(f[1])+")($|\\s)","g"))&&(c=n.replace(new RegExp(m.escapeRegExp(d[g]),"i"),function(e){var t=d[p];return e.toUpperCase()==e?t=t.toUpperCase():e.charAt(0).toUpperCase()==e.charAt(0)&&(t=t.substr(0,0)+d[p].charAt(0).toUpperCase()+t.substr(1)),t}),this.insert(c),c="")}},this.removeLines=function(){var e=this.$getSelectedRows();this.session.removeFullLines(e.first,e.last),this.clearSelection()},this.duplicateSelection=function(){var e=this.selection,t=this.session,n=e.getRange(),
8
- i=e.isBackwards();if(n.isEmpty()){var o=n.start.row;t.duplicateLines(o,o)}else{var r=i?n.start:n.end,s=t.insert(r,t.getTextRange(n),!1);n.start=r,n.end=s,e.setSelectionRange(n,i)}},this.moveLinesDown=function(){this.$moveLines(1,!1)},this.moveLinesUp=function(){this.$moveLines(-1,!1)},this.moveText=function(e,t,n){return this.session.moveText(e,t,n)},this.copyLinesUp=function(){this.$moveLines(-1,!0)},this.copyLinesDown=function(){this.$moveLines(1,!0)},this.$moveLines=function(e,t){var n,i,o=this.selection;if(!o.inMultiSelectMode||this.inVirtualSelectionMode){var r=o.toOrientedRange();n=this.$getSelectedRows(r),i=this.session.$moveLines(n.first,n.last,t?0:e),t&&-1==e&&(i=0),r.moveBy(i,0),o.fromOrientedRange(r)}else{var s=o.rangeList.ranges;o.rangeList.detach(this.session),this.inVirtualSelectionMode=!0;for(var a=0,l=0,c=s.length,h=0;h<c;h++){var u=h;s[h].moveBy(a,0);for(var d=(n=this.$getSelectedRows(s[h])).first,g=n.last;++h<c;){l&&s[h].moveBy(l,0);var p=this.$getSelectedRows(s[h]);if(t&&p.first!=g)break;if(!t&&p.first>g+1)break;g=p.last}for(h--,a=this.session.$moveLines(d,g,t?0:e),t&&-1==e&&(u=h+1);u<=h;)s[u].moveBy(a,0),u++;t||(a=0),l+=a}o.fromOrientedRange(o.ranges[0]),o.rangeList.attach(this.session),this.inVirtualSelectionMode=!1}},this.$getSelectedRows=function(e){return e=(e||this.getSelectionRange()).collapseRows(),{first:this.session.getRowFoldStart(e.start.row),last:this.session.getRowFoldEnd(e.end.row)}},this.onCompositionStart=function(e){this.renderer.showComposition(e)},this.onCompositionUpdate=function(e){this.renderer.setCompositionText(e)},this.onCompositionEnd=function(){this.renderer.hideComposition()},this.getFirstVisibleRow=function(){return this.renderer.getFirstVisibleRow()},this.getLastVisibleRow=function(){return this.renderer.getLastVisibleRow()},this.isRowVisible=function(e){return e>=this.getFirstVisibleRow()&&e<=this.getLastVisibleRow()},this.isRowFullyVisible=function(e){return e>=this.renderer.getFirstFullyVisibleRow()&&e<=this.renderer.getLastFullyVisibleRow()},this.$getVisibleRowCount=function(){return this.renderer.getScrollBottomRow()-this.renderer.getScrollTopRow()+1},this.$moveByPage=function(e,t){var n=this.renderer,i=this.renderer.layerConfig,o=e*Math.floor(i.height/i.lineHeight);!0===t?this.selection.$moveSelection(function(){this.moveCursorBy(o,0)}):!1===t&&(this.selection.moveCursorBy(o,0),this.selection.clearSelection());var r=n.scrollTop;n.scrollBy(0,o*i.lineHeight),null!=t&&n.scrollCursorIntoView(null,.5),n.animateScrolling(r)},this.selectPageDown=function(){this.$moveByPage(1,!0)},this.selectPageUp=function(){this.$moveByPage(-1,!0)},this.gotoPageDown=function(){this.$moveByPage(1,!1)},this.gotoPageUp=function(){this.$moveByPage(-1,!1)},this.scrollPageDown=function(){this.$moveByPage(1)},this.scrollPageUp=function(){this.$moveByPage(-1)},this.scrollToRow=function(e){this.renderer.scrollToRow(e)},this.scrollToLine=function(e,t,n,i){this.renderer.scrollToLine(e,t,n,i)},this.centerSelection=function(){var e=this.getSelectionRange(),t={row:Math.floor(e.start.row+(e.end.row-e.start.row)/2),column:Math.floor(e.start.column+(e.end.column-e.start.column)/2)};this.renderer.alignCursor(t,.5)},this.getCursorPosition=function(){return this.selection.getCursor()},this.getCursorPositionScreen=function(){return this.session.documentToScreenPosition(this.getCursorPosition())},this.getSelectionRange=function(){return this.selection.getRange()},this.selectAll=function(){this.selection.selectAll()},this.clearSelection=function(){this.selection.clearSelection()},this.moveCursorTo=function(e,t){this.selection.moveCursorTo(e,t)},this.moveCursorToPosition=function(e){this.selection.moveCursorToPosition(e)},this.jumpToMatching=function(e,t){var n=this.getCursorPosition(),i=new v(this.session,n.row,n.column),o=i.getCurrentToken(),r=o||i.stepForward();if(r){var s,a,l=!1,c={},h=n.column-r.start,u={")":"(","(":"(","]":"[","[":"[","{":"{","}":"{"};do{if(r.value.match(/[{}()\[\]]/g)){for(;h<r.value.length&&!l;h++)if(u[r.value[h]])switch(a=u[r.value[h]]+"."+r.type.replace("rparen","lparen"),isNaN(c[a])&&(c[a]=0),r.value[h]){case"(":case"[":case"{":c[a]++;break;case")":case"]":case"}":c[a]--,-1===c[a]&&(s="bracket",l=!0)}}else-1!==r.type.indexOf("tag-name")&&(isNaN(c[r.value])&&(c[r.value]=0),"<"===o.value?c[r.value]++:"</"===o.value&&c[r.value]--,-1===c[r.value]&&(s="tag",l=!0));l||(o=r,r=i.stepForward(),h=0)}while(r&&!l);if(s){var d,g;if("bracket"===s)(d=this.session.getBracketRange(n))||(g=(d=new f(i.getCurrentTokenRow(),i.getCurrentTokenColumn()+h-1,i.getCurrentTokenRow(),i.getCurrentTokenColumn()+h-1)).start,(t||g.row===n.row&&Math.abs(g.column-n.column)<2)&&(d=this.session.getBracketRange(g)));else if("tag"===s){if(!r||-1===r.type.indexOf("tag-name"))return;var p=r.value;if(0===(d=new f(i.getCurrentTokenRow(),i.getCurrentTokenColumn()-2,i.getCurrentTokenRow(),i.getCurrentTokenColumn()-2)).compare(n.row,n.column))for(l=!1;r=o,(o=i.stepBackward())&&(-1!==o.type.indexOf("tag-close")&&d.setEnd(i.getCurrentTokenRow(),i.getCurrentTokenColumn()+1),r.value===p&&-1!==r.type.indexOf("tag-name")&&("<"===o.value?c[p]++:"</"===o.value&&c[p]--,0===c[p]&&(l=!0))),o&&!l;);r&&r.type.indexOf("tag-name")&&((g=d.start).row==n.row&&Math.abs(g.column-n.column)<2&&(g=d.end))}(g=d&&d.cursor||g)&&(e?d&&t?this.selection.setRange(d):d&&d.isEqual(this.getSelectionRange())?this.clearSelection():this.selection.selectTo(g.row,g.column):this.selection.moveTo(g.row,g.column))}}},this.gotoLine=function(e,t,n){this.selection.clearSelection(),this.session.unfold({row:e-1,column:t||0}),this.exitMultiSelectMode&&this.exitMultiSelectMode(),this.moveCursorTo(e-1,t||0),this.isRowFullyVisible(e-1)||this.scrollToLine(e-1,!0,n)},this.navigateTo=function(e,t){this.selection.moveTo(e,t)},this.navigateUp=function(e){if(this.selection.isMultiLine()&&!this.selection.isBackwards()){var t=this.selection.anchor.getPosition();return this.moveCursorToPosition(t)}this.selection.clearSelection(),this.selection.moveCursorBy(-e||-1,0)},this.navigateDown=function(e){if(this.selection.isMultiLine()&&this.selection.isBackwards()){var t=this.selection.anchor.getPosition();return this.moveCursorToPosition(t)}this.selection.clearSelection(),this.selection.moveCursorBy(e||1,0)},this.navigateLeft=function(e){if(this.selection.isEmpty())for(e=e||1;e--;)this.selection.moveCursorLeft();else{var t=this.getSelectionRange().start;this.moveCursorToPosition(t)}this.clearSelection()},this.navigateRight=function(e){if(this.selection.isEmpty())for(e=e||1;e--;)this.selection.moveCursorRight();else{var t=this.getSelectionRange().end;this.moveCursorToPosition(t)}this.clearSelection()},this.navigateLineStart=function(){this.selection.moveCursorLineStart(),this.clearSelection()},this.navigateLineEnd=function(){this.selection.moveCursorLineEnd(),this.clearSelection()},this.navigateFileEnd=function(){this.selection.moveCursorFileEnd(),this.clearSelection()},this.navigateFileStart=function(){this.selection.moveCursorFileStart(),this.clearSelection()},this.navigateWordRight=function(){this.selection.moveCursorWordRight(),this.clearSelection()},this.navigateWordLeft=function(){this.selection.moveCursorWordLeft(),this.clearSelection()},this.replace=function(e,t){t&&this.$search.set(t);var n=this.$search.find(this.session),i=0;return n&&(this.$tryReplace(n,e)&&(i=1),this.selection.setSelectionRange(n),this.renderer.scrollSelectionIntoView(n.start,n.end)),i},this.replaceAll=function(e,t){t&&this.$search.set(t);var n=this.$search.findAll(this.session),i=0;if(!n.length)return i;var o=this.getSelectionRange();this.selection.moveTo(0,0);for(var r=n.length-1;0<=r;--r)this.$tryReplace(n[r],e)&&i++;return this.selection.setSelectionRange(o),i},this.$tryReplace=function(e,t){var n=this.session.getTextRange(e);return null!==(t=this.$search.replace(n,t))?(e.end=this.session.replace(e,t),e):null},this.getLastSearchOptions=function(){return this.$search.getOptions()},this.find=function(e,t,n){t||(t={}),"string"==typeof e||e instanceof RegExp?t.needle=e:"object"==typeof e&&r.mixin(t,e);var i=this.selection.getRange();null==t.needle&&((e=this.session.getTextRange(i)||this.$search.$options.needle)||(i=this.session.getWordRange(i.start.row,i.start.column),e=this.session.getTextRange(i)),this.$search.set({needle:e})),this.$search.set(t),t.start||this.$search.set({start:i});var o=this.$search.find(this.session);return t.preventScroll?o:o?(this.revealRange(o,n),o):(t.backwards?i.start=i.end:i.end=i.start,void this.selection.setRange(i))},this.findNext=function(e,t){this.find({skipCurrent:!0,backwards:!1},e,t)},this.findPrevious=function(e,t){this.find(e,{skipCurrent:!0,backwards:!0},t)},this.revealRange=function(e,t){this.session.unfold(e),this.selection.setSelectionRange(e);var n=this.renderer.scrollTop;this.renderer.scrollSelectionIntoView(e.start,e.end,.5),!1!==t&&this.renderer.animateScrolling(n)},this.undo=function(){this.session.getUndoManager().undo(this.session),this.renderer.scrollCursorIntoView(null,.5)},this.redo=function(){this.session.getUndoManager().redo(this.session),this.renderer.scrollCursorIntoView(null,.5)},this.destroy=function(){this.renderer.destroy(),this._signal("destroy",this),this.session&&this.session.destroy()},this.setAutoScrollEditorIntoView=function(e){if(e){var o,r=this,s=!1;this.$scrollAnchor||(this.$scrollAnchor=document.createElement("div"));var a=this.$scrollAnchor;a.style.cssText="position:absolute",this.container.insertBefore(a,this.container.firstChild);var t=this.on("changeSelection",function(){s=!0}),n=this.renderer.on("beforeRender",function(){s&&(o=r.renderer.container.getBoundingClientRect())}),i=this.renderer.on("afterRender",function(){if(s&&o&&(r.isFocused()||r.searchBox&&r.searchBox.isFocused())){var e=r.renderer,t=e.$cursorLayer.$pixelPos,n=e.layerConfig,i=t.top-n.offset;null!=(s=0<=t.top&&i+o.top<0||!(t.top<n.height&&t.top+o.top+n.lineHeight>window.innerHeight)&&null)&&(a.style.top=i+"px",a.style.left=t.left+"px",a.style.height=n.lineHeight+"px",a.scrollIntoView(s)),s=o=null}});this.setAutoScrollEditorIntoView=function(e){e||(delete this.setAutoScrollEditorIntoView,this.off("changeSelection",t),this.renderer.off("afterRender",i),this.renderer.off("beforeRender",n))}}},this.$resetCursorStyle=function(){var e=this.$cursorStyle||"ace",t=this.renderer.$cursorLayer;t&&(t.setSmoothBlinking(/smooth/.test(e)),t.isBlinking=!this.$readOnly&&"wide"!=e,n.setCssClass(t.element,"ace_slim-cursors",/slim/.test(e)))},this.prompt=function(t,n,i){var o=this;p.loadModule("./ext/prompt",function(e){e.prompt(o,t,n,i)})}}.call(w.prototype),p.defineOptions(w.prototype,"editor",{selectionStyle:{set:function(e){this.onSelectionChange(),this._signal("changeSelectionStyle",{data:e})},initialValue:"line"},highlightActiveLine:{set:function(){this.$updateHighlightActiveLine()},initialValue:!0},highlightSelectedWord:{set:function(){this.$onSelectionChange()},initialValue:!0},readOnly:{set:function(e){this.textInput.setReadOnly(e),this.$resetCursorStyle()},initialValue:!1},copyWithEmptySelection:{set:function(e){this.textInput.setCopyWithEmptySelection(e)},initialValue:!1},cursorStyle:{set:function(){this.$resetCursorStyle()},values:["ace","slim","smooth","wide"],initialValue:"ace"},mergeUndoDeltas:{values:[!1,!0,"always"],initialValue:!0},behavioursEnabled:{initialValue:!0},wrapBehavioursEnabled:{initialValue:!0},autoScrollEditorIntoView:{set:function(e){this.setAutoScrollEditorIntoView(e)}},keyboardHandler:{set:function(e){this.setKeyboardHandler(e)},get:function(){return this.$keybindingId},handlesSet:!0},value:{set:function(e){this.session.setValue(e)},get:function(){return this.getValue()},handlesSet:!0,hidden:!0},session:{set:function(e){this.setSession(e)},get:function(){return this.session},handlesSet:!0,hidden:!0},showLineNumbers:{set:function(e){this.renderer.$gutterLayer.setShowLineNumbers(e),this.renderer.$loop.schedule(this.renderer.CHANGE_GUTTER),e&&this.$relativeLineNumbers?y.attach(this):y.detach(this)},initialValue:!0},relativeLineNumbers:{set:function(e){this.$showLineNumbers&&e?y.attach(this):y.detach(this)}},hScrollBarAlwaysVisible:"renderer",vScrollBarAlwaysVisible:"renderer",highlightGutterLine:"renderer",animatedScroll:"renderer",showInvisibles:"renderer",showPrintMargin:"renderer",printMarginColumn:"renderer",printMargin:"renderer",fadeFoldWidgets:"renderer",showFoldWidgets:"renderer",displayIndentGuides:"renderer",showGutter:"renderer",fontSize:"renderer",fontFamily:"renderer",maxLines:"renderer",minLines:"renderer",scrollPastEnd:"renderer",fixedWidthGutter:"renderer",theme:"renderer",hasCssTransforms:"renderer",maxPixelHeight:"renderer",useTextareaForIME:"renderer",scrollSpeed:"$mouseHandler",dragDelay:"$mouseHandler",dragEnabled:"$mouseHandler",focusTimeout:"$mouseHandler",tooltipFollowsMouse:"$mouseHandler",firstLineNumber:"session",overwrite:"session",newLineMode:"session",useWorker:"session",useSoftTabs:"session",navigateWithinSoftTabs:"session",tabSize:"session",wrap:"session",indentedSoftWrap:"session",foldStyle:"session",mode:"session"});var y={getText:function(e,t){return(Math.abs(e.selection.lead.row-t)||t+1+(t<9?"\xb7":""))+""},getWidth:function(e,t,n){return Math.max(t.toString().length,(n.lastRow+1).toString().length,2)*n.characterWidth},update:function(e,t){t.renderer.$loop.schedule(t.renderer.CHANGE_GUTTER)},attach:function(e){e.renderer.$gutterLayer.$renderer=this,e.on("changeSelection",this.update),this.update(null,e)},detach:function(e){e.renderer.$gutterLayer.$renderer==this&&(e.renderer.$gutterLayer.$renderer=null),e.off("changeSelection",this.update),this.update(null,e)}};t.Editor=w}),ace.define("ace/undomanager",["require","exports","module","ace/range"],function(e,t){"use strict";function r(e,t){for(var n=t;n--;){var i=e[n];if(i&&!i[0].ignore){for(;n<t-1;){var o=l(e[n],e[n+1]);e[n]=o[0],e[n+1]=o[1],n++}return!0}}}function a(e){return{row:e.row,column:e.column}}function s(e){return{start:a(e.start),end:a(e.end),action:e.action,lines:e.lines.slice()}}function n(e){if(e=e||this,Array.isArray(e))return e.map(n).join("\n");var t="";return e.action?(t="insert"==e.action?"+":"-",t+="["+e.lines+"]"):e.value&&(t=Array.isArray(e.value)?e.value.map(i).join("\n"):i(e.value)),e.start&&(t+=i(e)),(e.id||e.rev)&&(t+="\t("+(e.id||e.rev)+")"),t}function i(e){return e.start.row+":"+e.start.column+"=>"+e.end.row+":"+e.end.column}function o(e,t){var n="insert"==e.action,i="insert"==t.action;if(n&&i)if(0<=v(t.start,e.end))h(t,e,-1);else{if(!(v(t.start,e.start)<=0))return null;h(e,t,1)}else if(n&&!i)if(0<=v(t.start,e.end))h(t,e,-1);else{if(!(v(t.end,e.start)<=0))return null;h(e,t,-1)}else if(!n&&i)if(0<=v(t.start,e.start))h(t,e,1);else{if(!(v(t.start,e.start)<=0))return null;h(e,t,1)}else if(!n&&!i)if(0<=v(t.start,e.start))h(t,e,1);else{if(!(v(t.end,e.start)<=0))return null;h(e,t,-1)}return[t,e]}function l(e,t){for(var n=e.length;n--;)for(var i=0;i<t.length;i++)if(!o(e[n],t[i])){for(;n<e.length;){for(;i--;)o(t[i],e[n]);i=t.length,n++}return[e,t]}return e.selectionBefore=t.selectionBefore=e.selectionAfter=t.selectionAfter=null,[t,e]}function c(e,t){var n="insert"==e.action,i="insert"==t.action;if(n&&i)v(e.start,t.start)<0?h(t,e,1):h(e,t,1);else if(n&&!i)0<=v(e.start,t.end)?h(e,t,-1):(v(e.start,t.start)<=0||h(e,m.fromPoints(t.start,e.start),-1),h(t,e,1));else if(!n&&i)0<=v(t.start,e.end)?h(t,e,-1):(v(t.start,e.start)<=0||h(t,m.fromPoints(e.start,t.start),-1),h(e,t,1));else if(!n&&!i)if(0<=v(t.start,e.end))h(t,e,-1);else{var o,r;if(!(v(t.end,e.start)<=0))return v(e.start,t.start)<0&&(e=d(o=e,t.start)),0<v(e.end,t.end)&&(r=d(e,t.end)),u(t.end,e.start,e.end,-1),r&&!o&&(e.lines=r.lines,e.start=r.start,e.end=r.end,r=e),[t,o,r].filter(Boolean);h(e,t,-1)}return[t,e]}function h(e,t,n){u(e.start,t.start,t.end,n),u(e.end,t.start,t.end,n)}function u(e,t,n,i){e.row==(1==i?t:n).row&&(e.column+=i*(n.column-t.column)),e.row+=i*(n.row-t.row)}function d(e,t){var n=e.lines,i=e.end;e.end=a(t);var o=e.end.row-e.start.row,r=n.splice(o,n.length),s=o?t.column:t.column-e.start.column;return n.push(r[0].substring(0,s)),r[0]=r[0].substr(s),{start:a(t),end:i,lines:r,action:e.action}}function g(e,t){t=s(t);for(var n=e.length;n--;){for(var i=e[n],o=0;o<i.length;o++){var r=c(i[o],t);t=r[0],2!=r.length&&(r[2]?(i.splice(o+1,1,r[1],r[2]),o++):r[1]||(i.splice(o,1),o--))}i.length||e.splice(n,1)}return e}function p(e,t){for(var n=0;n<t.length;n++)for(var i=t[n],o=0;o<i.length;o++)g(e,i[o])}var f=function(){this.$maxRev=0,this.$fromUndo=!1,this.reset()};(function(){this.addSession=function(e){this.$session=e},this.add=function(e,t){this.$fromUndo||e!=this.$lastDelta&&(!1!==t&&this.lastDeltas||(this.lastDeltas=[],this.$undoStack.push(this.lastDeltas),e.id=this.$rev=++this.$maxRev),"remove"!=e.action&&"insert"!=e.action||(this.$lastDelta=e),this.lastDeltas.push(e))},this.addSelection=function(e,t){this.selections.push({value:e,rev:t||this.$rev})},this.startNewGroup=function(){return this.lastDeltas=null,this.$rev},this.markIgnored=function(e,t){null==t&&(t=this.$rev+1);for(var n=this.$undoStack,i=n.length;i--;){var o=n[i][0];if(o.id<=e)break;o.id<t&&(o.ignore=!0)}this.lastDeltas=null},this.getSelection=function(e,t){for(var n=this.selections,i=n.length;i--;){var o=n[i];if(o.rev<e)return t&&(o=n[i+1]),o}},this.getRevision=function(){return this.$rev},this.getDeltas=function(e,t){null==t&&(t=this.$rev+1);for(var n=this.$undoStack,i=null,o=0,r=n.length;r--;){var s=n[r][0];if(s.id<t&&!i&&(i=r+1),s.id<=e){o=r+1;break}}return n.slice(o,i)},this.getChangedRanges=function(e,t){null==t&&(t=this.$rev+1)},this.getChangedLines=function(e,t){null==t&&(t=this.$rev+1)},this.undo=function(e,t){this.lastDeltas=null;var n=this.$undoStack;if(r(n,n.length)){e||(e=this.$session),this.$redoStackBaseRev!==this.$rev&&this.$redoStack.length&&(this.$redoStack=[]),this.$fromUndo=!0;var i=n.pop(),o=null;return i&&i.length&&(o=e.undoChanges(i,t),this.$redoStack.push(i),this.$syncRev()),this.$fromUndo=!1,o}},this.redo=function(e,t){if(this.lastDeltas=null,e||(e=this.$session),this.$fromUndo=!0,this.$redoStackBaseRev!=this.$rev){var n=this.getDeltas(this.$redoStackBaseRev,this.$rev+1);p(this.$redoStack,n),this.$redoStackBaseRev=this.$rev,this.$redoStack.forEach(function(e){e[0].id=++this.$maxRev},this)}var i=this.$redoStack.pop(),o=null;return i&&(o=e.redoChanges(i,t),this.$undoStack.push(i),this.$syncRev()),this.$fromUndo=!1,o},this.$syncRev=function(){var e=this.$undoStack,t=e[e.length-1],n=t&&t[0].id||0;this.$redoStackBaseRev=n,this.$rev=n},this.reset=function(){this.lastDeltas=null,this.$lastDelta=null,this.$undoStack=[],this.$redoStack=[],this.$rev=0,this.mark=0,this.$redoStackBaseRev=this.$rev,this.selections=[]},this.canUndo=function(){return 0<this.$undoStack.length},this.canRedo=function(){return 0<this.$redoStack.length},this.bookmark=function(e){e==undefined&&(e=this.$rev),this.mark=e},this.isAtBookmark=function(){return this.$rev===this.mark},this.toJSON=function(){},this.fromJSON=function(){},this.hasUndo=this.canUndo,this.hasRedo=this.canRedo,this.isClean=this.isAtBookmark,this.markClean=this.bookmark,this.$prettyPrint=function(e){return e?n(e):n(this.$undoStack)+"\n---\n"+n(this.$redoStack)}}).call(f.prototype);var m=e("./range").Range,v=m.comparePoints;m.comparePoints;t.UndoManager=f}),ace.define("ace/layer/lines",["require","exports","module","ace/lib/dom"],function(e,t){"use strict";var s=e("../lib/dom"),n=function(e,t){this.element=e,this.canvasHeight=t||5e5,this.element.style.height=2*this.canvasHeight+"px",this.cells=[],this.cellCache=[],this.$offsetCoefficient=0};(function(){this.moveContainer=function(e){s.translate(this.element,0,-e.firstRowScreen*e.lineHeight%this.canvasHeight-e.offset*this.$offsetCoefficient)},this.pageChanged=function(e,t){return Math.floor(e.firstRowScreen*e.lineHeight/this.canvasHeight)!==Math.floor(t.firstRowScreen*t.lineHeight/this.canvasHeight)},this.computeLineTop=function(e,t,n){var i=t.firstRowScreen*t.lineHeight,o=Math.floor(i/this.canvasHeight);return n.documentToScreenRow(e,0)*t.lineHeight-o*this.canvasHeight},this.computeLineHeight=function(e,t,n){return t.lineHeight*n.getRowLength(e)},this.getLength=function(){return this.cells.length},this.get=function(e){return this.cells[e]},this.shift=function(){this.$cacheCell(this.cells.shift())},this.pop=function(){this.$cacheCell(this.cells.pop())},this.push=function(e){if(Array.isArray(e)){this.cells.push.apply(this.cells,e);for(var t=s.createFragment(this.element),n=0;n<e.length;n++)t.appendChild(e[n].element);this.element.appendChild(t)}else this.cells.push(e),this.element.appendChild(e.element)},this.unshift=function(e){if(Array.isArray(e)){this.cells.unshift.apply(this.cells,e);for(var t=s.createFragment(this.element),n=0;n<e.length;n++)t.appendChild(e[n].element);this.element.firstChild?this.element.insertBefore(t,this.element.firstChild):this.element.appendChild(t)}else this.cells.unshift(e),this.element.insertAdjacentElement("afterbegin",e.element)},this.last=function(){return this.cells.length?this.cells[this.cells.length-1]:null},this.$cacheCell=function(e){e&&(e.element.remove(),this.cellCache.push(e))},this.createCell=function(e,t,n,i){var o=this.cellCache.pop();if(!o){var r=s.createElement("div");i&&i(r),this.element.appendChild(r),o={element:r,text:"",row:e}}return o.row=e,o}}).call(n.prototype),t.Lines=n}),ace.define("ace/layer/gutter",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/layer/lines"],function(e,t){"use strict";function c(e){var t=document.createTextNode("");e.appendChild(t);var n=b.createElement("span");return e.appendChild(n),e}var b=e("../lib/dom"),n=e("../lib/oop"),a=e("../lib/lang"),i=e("../lib/event_emitter").EventEmitter,o=e("./lines").Lines,r=function(e){this.element=b.createElement("div"),this.element.className="ace_layer ace_gutter-layer",e.appendChild(this.element),this.setShowFoldWidgets(this.$showFoldWidgets),this.gutterWidth=0,this.$annotations=[],this.$updateAnnotations=this.$updateAnnotations.bind(this),this.$lines=new o(this.element),this.$lines.$offsetCoefficient=1};(function(){n.implement(this,i),this.setSession=function(e){this.session&&this.session.removeEventListener("change",this.$updateAnnotations),(this.session=e)&&e.on("change",this.$updateAnnotations)},this.addGutterDecoration=function(e,t){window.console&&console.warn&&console.warn("deprecated use session.addGutterDecoration"),this.session.addGutterDecoration(e,t)},this.removeGutterDecoration=function(e,t){window.console&&console.warn&&console.warn("deprecated use session.removeGutterDecoration"),this.session.removeGutterDecoration(e,t)},this.setAnnotations=function(e){this.$annotations=[];for(var t=0;t<e.length;t++){var n=e[t],i=n.row,o=this.$annotations[i];o||(o=this.$annotations[i]={text:[]});var r=n.text;r=r?a.escapeHTML(r):n.html||"",-1===o.text.indexOf(r)&&o.text.push(r);var s=n.type;"error"==s?o.className=" ace_error":"warning"==s&&" ace_error"!=o.className?o.className=" ace_warning":"info"==s&&!o.className&&(o.className=" ace_info")}},this.$updateAnnotations=function(e){if(this.$annotations.length){var t=e.start.row,n=e.end.row-t;if(0!==n)if("remove"==e.action)this.$annotations.splice(t,n+1,null);else{var i=new Array(n+1);i.unshift(t,1),this.$annotations.splice.apply(this.$annotations,i)}}},this.update=function(e){this.config=e;var t=this.session,n=e.firstRow,i=Math.min(e.lastRow+e.gutterOffset,t.getLength()-1);this.oldLastRow=i,this.config=e,this.$lines.moveContainer(e),this.$updateCursorRow();for(var o=t.getNextFoldLine(n),r=o?o.start.row:Infinity,s=null,a=-1,l=n;;){if(r<l&&(l=o.end.row+1,r=(o=t.getNextFoldLine(l,o))?o.start.row:Infinity),i<l){for(;this.$lines.getLength()>a+1;)this.$lines.pop();break}(s=this.$lines.get(++a))?s.row=l:(s=this.$lines.createCell(l,e,this.session,c),this.$lines.push(s)),this.$renderCell(s,e,o,l),l++}this._signal("afterRender"),this.$updateGutterWidth(e)},this.$updateGutterWidth=function(e){var t=this.session,n=t.gutterRenderer||this.$renderer,i=t.$firstLineNumber,o=this.$lines.last()?this.$lines.last().text:"";(this.$fixedWidth||t.$useWrapMode)&&(o=t.getLength()+i-1);var r=n?n.getWidth(t,o,e):o.toString().length*e.characterWidth,s=this.$padding||this.$computePadding();(r+=s.left+s.right)!==this.gutterWidth&&!isNaN(r)&&(this.gutterWidth=r,this.element.parentNode.style.width=this.element.style.width=Math.ceil(this.gutterWidth)+"px",this._signal("changeGutterWidth",r))},this.$updateCursorRow=function(){if(this.$highlightGutterLine){var e=this.session.selection.getCursor();this.$cursorRow!==e.row&&(this.$cursorRow=e.row)}},this.updateLineHighlight=function(){if(this.$highlightGutterLine){var e=this.session.selection.cursor.row;if(this.$cursorRow=e,!this.$cursorCell||this.$cursorCell.row!=e){this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ",""));var t=this.$lines.cells;this.$cursorCell=null;for(var n=0;n<t.length;n++){var i=t[n];if(i.row>=this.$cursorRow){if(i.row>this.$cursorRow){var o=this.session.getFoldLine(this.$cursorRow);if(!(0<n&&o&&o.start.row==t[n-1].row))break;i=t[n-1]}i.element.className="ace_gutter-active-line "+i.element.className,this.$cursorCell=i;break}}}}},this.scrollLines=function(e){var t=this.config;if(this.config=e,this.$updateCursorRow(),this.$lines.pageChanged(t,e))return this.update(e);this.$lines.moveContainer(e);var n=Math.min(e.lastRow+e.gutterOffset,this.session.getLength()-1),i=this.oldLastRow;if(this.oldLastRow=n,!t||i<e.firstRow)return this.update(e);if(n<t.firstRow)return this.update(e);if(t.firstRow<e.firstRow)for(var o=this.session.getFoldedRowCount(t.firstRow,e.firstRow-1);0<o;o--)this.$lines.shift();if(n<i)for(o=this.session.getFoldedRowCount(n+1,i);0<o;o--)this.$lines.pop();e.firstRow<t.firstRow&&this.$lines.unshift(this.$renderLines(e,e.firstRow,t.firstRow-1)),i<n&&this.$lines.push(this.$renderLines(e,i+1,n)),this.updateLineHighlight(),this._signal("afterRender"),this.$updateGutterWidth(e)},this.$renderLines=function(e,t,n){for(var i=[],o=t,r=this.session.getNextFoldLine(o),s=r?r.start.row:Infinity;s<o&&(o=r.end.row+1,s=(r=this.session.getNextFoldLine(o,r))?r.start.row:Infinity),!(n<o);){var a=this.$lines.createCell(o,e,this.session,c);this.$renderCell(a,e,r,o),i.push(a),o++}return i},this.$renderCell=function(e,t,n,i){var o=e.element,r=this.session,s=o.childNodes[0],a=o.childNodes[1],l=r.$firstLineNumber,c=r.$breakpoints,h=r.$decorations,u=r.gutterRenderer||this.$renderer,d=this.$showFoldWidgets&&r.foldWidgets,g=n?n.start.row:Number.MAX_VALUE,p="ace_gutter-cell ";if(this.$highlightGutterLine&&(i==this.$cursorRow||n&&i<this.$cursorRow&&g<=i&&this.$cursorRow<=n.end.row)&&(p+="ace_gutter-active-line ",this.$cursorCell!=e&&(this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ","")),this.$cursorCell=e)),c[i]&&(p+=c[i]),h[i]&&(p+=h[i]),this.$annotations[i]&&(p+=this.$annotations[i].className),o.className!=p&&(o.className=p),d){var f=d[i];null==f&&(f=d[i]=r.getFoldWidget(i))}if(f){p="ace_fold-widget ace_"+f;"start"==f&&i==g&&i<n.end.row?p+=" ace_closed":p+=" ace_open",a.className!=p&&(a.className=p);var m=t.lineHeight+"px";b.setStyle(a.style,"height",m),b.setStyle(a.style,"display","inline-block")}else a&&b.setStyle(a.style,"display","none");var v=(u?u.getText(r,i):i+l).toString();return v!==s.data&&(s.data=v),b.setStyle(e.element.style,"height",this.$lines.computeLineHeight(i,t,r)+"px"),b.setStyle(e.element.style,"top",this.$lines.computeLineTop(i,t,r)+"px"),e.text=v,e},this.$fixedWidth=!1,this.$highlightGutterLine=!0,this.$renderer="",this.setHighlightGutterLine=function(e){this.$highlightGutterLine=e},this.$showLineNumbers=!0,this.$renderer="",this.setShowLineNumbers=function(e){this.$renderer=!e&&{getWidth:function(){return 0},getText:function(){return""}}},this.getShowLineNumbers=function(){return this.$showLineNumbers},this.$showFoldWidgets=!0,this.setShowFoldWidgets=function(e){e?b.addCssClass(this.element,"ace_folding-enabled"):b.removeCssClass(this.element,"ace_folding-enabled"),this.$showFoldWidgets=e,this.$padding=null},this.getShowFoldWidgets=function(){return this.$showFoldWidgets},this.$computePadding=function(){if(!this.element.firstChild)return{left:0,right:0};var e=b.computedStyle(this.element.firstChild);return this.$padding={},this.$padding.left=(parseInt(e.borderLeftWidth)||0)+(parseInt(e.paddingLeft)||0)+1,this.$padding.right=(parseInt(e.borderRightWidth)||0)+(parseInt(e.paddingRight)||0),this.$padding},this.getRegion=function(e){var t=this.$padding||this.$computePadding(),n=this.element.getBoundingClientRect();return e.x<t.left+n.left?"markers":this.$showFoldWidgets&&e.x>n.right-t.right?"foldWidgets":void 0}}).call(r.prototype),t.Gutter=r}),ace.define("ace/layer/marker",["require","exports","module","ace/range","ace/lib/dom"],function(e,t){"use strict";var p=e("../range").Range,n=e("../lib/dom"),i=function(e){this.element=n.createElement("div"),this.element.className="ace_layer ace_marker-layer",e.appendChild(this.element)};(function(){function g(e,t,n,i){return(e?1:0)|(t?2:0)|(n?4:0)|(i?8:0)}this.$padding=0,this.setPadding=function(e){this.$padding=e},this.setSession=function(e){this.session=e},this.setMarkers=function(e){this.markers=e},this.elt=function(e,t){var n=-1!=this.i&&this.element.childNodes[this.i];n?this.i++:(n=document.createElement("div"),this.element.appendChild(n),this.i=-1),n.style.cssText=t,n.className=e},this.update=function(e){if(e){var t;for(var n in this.config=e,this.i=0,this.markers){var i=this.markers[n];if(i.range){var o=i.range.clipRows(e.firstRow,e.lastRow);if(!o.isEmpty())if(o=o.toScreenRange(this.session),i.renderer){var r=this.$getTop(o.start.row,e),s=this.$padding+o.start.column*e.characterWidth;i.renderer(t,o,s,r,e)}else"fullLine"==i.type?this.drawFullLineMarker(t,o,i.clazz,e):"screenLine"==i.type?this.drawScreenLineMarker(t,o,i.clazz,e):o.isMultiLine()?"text"==i.type?this.drawTextMarker(t,o,i.clazz,e):this.drawMultiLineMarker(t,o,i.clazz,e):this.drawSingleLineMarker(t,o,i.clazz+" ace_start ace_br15",e)}else i.update(t,this,this.session,e)}if(-1!=this.i)for(;this.i<this.element.childElementCount;)this.element.removeChild(this.element.lastChild)}},this.$getTop=function(e,t){return(e-t.firstRowScreen)*t.lineHeight},this.drawTextMarker=function(e,t,n,i,o){for(var r=this.session,s=t.start.row,a=t.end.row,l=s,c=0,h=0,u=r.getScreenLastRowColumn(l),d=new p(l,t.start.column,l,h);l<=a;l++)d.start.row=d.end.row=l,d.start.column=l==s?t.start.column:r.getRowWrapIndent(l),c=h,h=d.end.column=u,u=l+1<a?r.getScreenLastRowColumn(l+1):l==a?0:t.end.column,this.drawSingleLineMarker(e,d,n+(l==s?" ace_start":"")+" ace_br"+g(l==s||l==s+1&&t.start.column,c<h,u<h,l==a),i,l==a?0:1,o)},this.drawMultiLineMarker=function(e,t,n,i,o){var r=this.$padding,s=i.lineHeight,a=this.$getTop(t.start.row,i),l=r+t.start.column*i.characterWidth;(o=o||"",this.session.$bidiHandler.isBidiRow(t.start.row))?((c=t.clone()).end.row=c.start.row,c.end.column=this.session.getLine(c.start.row).length,this.drawBidiSingleLineMarker(e,c,n+" ace_br1 ace_start",i,null,o)):this.elt(n+" ace_br1 ace_start","height:"+s+"px;right:0;top:"+a+"px;left:"+l+"px;"+(o||""));if(this.session.$bidiHandler.isBidiRow(t.end.row)){var c;(c=t.clone()).start.row=c.end.row,c.start.column=0,this.drawBidiSingleLineMarker(e,c,n+" ace_br12",i,null,o)}else{a=this.$getTop(t.end.row,i);var h=t.end.column*i.characterWidth;this.elt(n+" ace_br12","height:"+s+"px;width:"+h+"px;top:"+a+"px;left:"+r+"px;"+(o||""))}if(!((s=(t.end.row-t.start.row-1)*i.lineHeight)<=0)){a=this.$getTop(t.start.row+1,i);var u=(t.start.column?1:0)|(t.end.column?0:8);this.elt(n+(u?" ace_br"+u:""),"height:"+s+"px;right:0;top:"+a+"px;left:"+r+"px;"+(o||""))}},this.drawSingleLineMarker=function(e,t,n,i,o,r){if(this.session.$bidiHandler.isBidiRow(t.start.row))return this.drawBidiSingleLineMarker(e,t,n,i,o,r);var s=i.lineHeight,a=(t.end.column+(o||0)-t.start.column)*i.characterWidth,l=this.$getTop(t.start.row,i),c=this.$padding+t.start.column*i.characterWidth;this.elt(n,"height:"+s+"px;width:"+a+"px;top:"+l+"px;left:"+c+"px;"+(r||""))},this.drawBidiSingleLineMarker=function(e,t,n,i,o,r){var s=i.lineHeight,a=this.$getTop(t.start.row,i),l=this.$padding;this.session.$bidiHandler.getSelections(t.start.column,t.end.column).forEach(function(e){this.elt(n,"height:"+s+"px;width:"+e.width+(o||0)+"px;top:"+a+"px;left:"+(l+e.left)+"px;"+(r||""))},this)},this.drawFullLineMarker=function(e,t,n,i,o){var r=this.$getTop(t.start.row,i),s=i.lineHeight;t.start.row!=t.end.row&&(s+=this.$getTop(t.end.row,i)-r),this.elt(n,"height:"+s+"px;top:"+r+"px;left:0;right:0;"+(o||""))},this.drawScreenLineMarker=function(e,t,n,i,o){var r=this.$getTop(t.start.row,i),s=i.lineHeight
9
- ;this.elt(n,"height:"+s+"px;top:"+r+"px;left:0;right:0;"+(o||""))}}).call(i.prototype),t.Marker=i}),ace.define("ace/layer/text",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/layer/lines","ace/lib/event_emitter"],function(e,t){"use strict";var n=e("../lib/oop"),c=e("../lib/dom"),b=e("../lib/lang"),i=e("./lines").Lines,o=e("../lib/event_emitter").EventEmitter,r=function(e){this.dom=c,this.element=this.dom.createElement("div"),this.element.className="ace_layer ace_text-layer",e.appendChild(this.element),this.$updateEolChar=this.$updateEolChar.bind(this),this.$lines=new i(this.element)};(function(){n.implement(this,o),this.EOF_CHAR="\xb6",this.EOL_CHAR_LF="\xac",this.EOL_CHAR_CRLF="\xa4",this.EOL_CHAR=this.EOL_CHAR_LF,this.TAB_CHAR="\u2014",this.SPACE_CHAR="\xb7",this.$padding=0,this.MAX_LINE_LENGTH=1e4,this.$updateEolChar=function(){var e=this.session.doc,t="\n"==e.getNewLineCharacter()&&"windows"!=e.getNewLineMode()?this.EOL_CHAR_LF:this.EOL_CHAR_CRLF;if(this.EOL_CHAR!=t)return this.EOL_CHAR=t,!0},this.setPadding=function(e){this.$padding=e,this.element.style.margin="0 "+e+"px"},this.getLineHeight=function(){return this.$fontMetrics.$characterSize.height||0},this.getCharacterWidth=function(){return this.$fontMetrics.$characterSize.width||0},this.$setFontMetrics=function(e){this.$fontMetrics=e,this.$fontMetrics.on("changeCharacterSize",function(e){this._signal("changeCharacterSize",e)}.bind(this)),this.$pollSizeChanges()},this.checkForSizeChanges=function(){this.$fontMetrics.checkForSizeChanges()},this.$pollSizeChanges=function(){return this.$pollSizeChangesTimer=this.$fontMetrics.$pollSizeChanges()},this.setSession=function(e){(this.session=e)&&this.$computeTabString()},this.showInvisibles=!1,this.setShowInvisibles=function(e){return this.showInvisibles!=e&&(this.showInvisibles=e,this.$computeTabString(),!0)},this.displayIndentGuides=!0,this.setDisplayIndentGuides=function(e){return this.displayIndentGuides!=e&&(this.displayIndentGuides=e,this.$computeTabString(),!0)},this.$tabStrings=[],this.onChangeTabSize=this.$computeTabString=function(){var e=this.session.getTabSize();this.tabSize=e;for(var t=this.$tabStrings=[0],n=1;n<e+1;n++)if(this.showInvisibles){(i=this.dom.createElement("span")).className="ace_invisible ace_invisible_tab",i.textContent=b.stringRepeat(this.TAB_CHAR,n),t.push(i)}else t.push(this.dom.createTextNode(b.stringRepeat(" ",n),this.element));if(this.displayIndentGuides){this.$indentGuideRe=/\s\S| \t|\t |\s$/;var i,o="ace_indent-guide",r="",s="";if(this.showInvisibles){o+=" ace_invisible",r=" ace_invisible_space",s=" ace_invisible_tab";var a=b.stringRepeat(this.SPACE_CHAR,this.tabSize),l=b.stringRepeat(this.TAB_CHAR,this.tabSize)}else l=a=b.stringRepeat(" ",this.tabSize);(i=this.dom.createElement("span")).className=o+r,i.textContent=a,this.$tabStrings[" "]=i,(i=this.dom.createElement("span")).className=o+s,i.textContent=l,this.$tabStrings["\t"]=i}},this.updateLines=function(e,t,n){if(this.config.lastRow!=e.lastRow||this.config.firstRow!=e.firstRow)return this.update(e);this.config=e;for(var i=Math.max(t,e.firstRow),o=Math.min(n,e.lastRow),r=this.element.childNodes,s=0,a=e.firstRow;a<i;a++){if(l=this.session.getFoldLine(a)){if(l.containsRow(i)){i=l.start.row;break}a=l.end.row}s++}for(var l,c=!1,h=(a=i,(l=this.session.getNextFoldLine(a))?l.start.row:Infinity);h<a&&(a=l.end.row+1,h=(l=this.session.getNextFoldLine(a,l))?l.start.row:Infinity),!(o<a);){var u=r[s++];if(u){this.dom.removeChildren(u),this.$renderLine(u,a,a==h&&l),c&&(u.style.top=this.$lines.computeLineTop(a,e,this.session)+"px");var d=e.lineHeight*this.session.getRowLength(a)+"px";u.style.height!=d&&(c=!0,u.style.height=d)}a++}if(c)for(;s<this.$lines.cells.length;){var g=this.$lines.cells[s++];g.element.style.top=this.$lines.computeLineTop(g.row,e,this.session)+"px"}},this.scrollLines=function(e){var t=this.config;if(this.config=e,this.$lines.pageChanged(t,e))return this.update(e);this.$lines.moveContainer(e);var n=e.lastRow,i=t?t.lastRow:-1;if(!t||i<e.firstRow)return this.update(e);if(n<t.firstRow)return this.update(e);if(!t||t.lastRow<e.firstRow)return this.update(e);if(e.lastRow<t.firstRow)return this.update(e);if(t.firstRow<e.firstRow)for(var o=this.session.getFoldedRowCount(t.firstRow,e.firstRow-1);0<o;o--)this.$lines.shift();if(t.lastRow>e.lastRow)for(o=this.session.getFoldedRowCount(e.lastRow+1,t.lastRow);0<o;o--)this.$lines.pop();e.firstRow<t.firstRow&&this.$lines.unshift(this.$renderLinesFragment(e,e.firstRow,t.firstRow-1)),e.lastRow>t.lastRow&&this.$lines.push(this.$renderLinesFragment(e,t.lastRow+1,e.lastRow))},this.$renderLinesFragment=function(e,t,n){for(var i=[],o=t,r=this.session.getNextFoldLine(o),s=r?r.start.row:Infinity;s<o&&(o=r.end.row+1,s=(r=this.session.getNextFoldLine(o,r))?r.start.row:Infinity),!(n<o);){var a=this.$lines.createCell(o,e,this.session),l=a.element;this.dom.removeChildren(l),c.setStyle(l.style,"height",this.$lines.computeLineHeight(o,e,this.session)+"px"),c.setStyle(l.style,"top",this.$lines.computeLineTop(o,e,this.session)+"px"),this.$renderLine(l,o,o==s&&r),this.$useLineGroups()?l.className="ace_line_group":l.className="ace_line",i.push(a),o++}return i},this.update=function(e){this.$lines.moveContainer(e);for(var t=(this.config=e).firstRow,n=e.lastRow,i=this.$lines;i.getLength();)i.pop();i.push(this.$renderLinesFragment(e,t,n))},this.$textToken={text:!0,rparen:!0,lparen:!0},this.$renderToken=function(e,t,n,i){for(var o,r=this,s=/(\t)|( +)|([\x00-\x1f\x80-\xa0\xad\u1680\u180E\u2000-\u200f\u2028\u2029\u202F\u205F\uFEFF\uFFF9-\uFFFC]+)|(\u3000)|([\u1100-\u115F\u11A3-\u11A7\u11FA-\u11FF\u2329-\u232A\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3001-\u303E\u3041-\u3096\u3099-\u30FF\u3105-\u312D\u3131-\u318E\u3190-\u31BA\u31C0-\u31E3\u31F0-\u321E\u3220-\u3247\u3250-\u32FE\u3300-\u4DBF\u4E00-\uA48C\uA490-\uA4C6\uA960-\uA97C\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFAFF\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE66\uFE68-\uFE6B\uFF01-\uFF60\uFFE0-\uFFE6]|[\uD800-\uDBFF][\uDC00-\uDFFF])/g,a=this.dom.createFragment(this.element),l=0;o=s.exec(i);){var c=o[1],h=o[2],u=o[3],d=o[4],g=o[5];if(r.showInvisibles||!h){var p=l!=o.index?i.slice(l,o.index):"";if(l=o.index+o[0].length,p&&a.appendChild(this.dom.createTextNode(p,this.element)),c){var f=r.session.getScreenTabSize(t+o.index);a.appendChild(r.$tabStrings[f].cloneNode(!0)),t+=f-1}else if(h)if(r.showInvisibles){(v=this.dom.createElement("span")).className="ace_invisible ace_invisible_space",v.textContent=b.stringRepeat(r.SPACE_CHAR,h.length),a.appendChild(v)}else a.appendChild(this.com.createTextNode(h,this.element));else if(u){(v=this.dom.createElement("span")).className="ace_invisible ace_invisible_space ace_invalid",v.textContent=b.stringRepeat(r.SPACE_CHAR,u.length),a.appendChild(v)}else if(d){t+=1,(v=this.dom.createElement("span")).style.width=2*r.config.characterWidth+"px",v.className=r.showInvisibles?"ace_cjk ace_invisible ace_invisible_space":"ace_cjk",v.textContent=r.showInvisibles?r.SPACE_CHAR:d,a.appendChild(v)}else if(g){t+=1,(v=this.dom.createElement("span")).style.width=2*r.config.characterWidth+"px",v.className="ace_cjk",v.textContent=g,a.appendChild(v)}}}if(a.appendChild(this.dom.createTextNode(l?i.slice(l):i,this.element)),this.$textToken[n.type])e.appendChild(a);else{var m="ace_"+n.type.replace(/\./g," ace_"),v=this.dom.createElement("span");"fold"==n.type&&(v.style.width=n.value.length*this.config.characterWidth+"px"),v.className=m,v.appendChild(a),e.appendChild(v)}return t+i.length},this.renderIndentGuide=function(e,t,n){var i=t.search(this.$indentGuideRe);if(i<=0||n<=i)return t;if(" "==t[0]){for(var o=(i-=i%this.tabSize)/this.tabSize,r=0;r<o;r++)e.appendChild(this.$tabStrings[" "].cloneNode(!0));return t.substr(i)}if("\t"!=t[0])return t;for(r=0;r<i;r++)e.appendChild(this.$tabStrings["\t"].cloneNode(!0));return t.substr(i)},this.$createLineElement=function(){var e=this.dom.createElement("div");return e.className="ace_line",e.style.height=this.config.lineHeight+"px",e},this.$renderWrappedLine=function(e,t,n){var i=0,o=0,r=n[0],s=0,a=this.$createLineElement();e.appendChild(a);for(var l=0;l<t.length;l++){var c=t[l],h=c.value;if(0==l&&this.displayIndentGuides){if(i=h.length,!(h=this.renderIndentGuide(a,h,r)))continue;i-=h.length}if(i+h.length<r)s=this.$renderToken(a,s,c,h),i+=h.length;else{for(;i+h.length>=r;)s=this.$renderToken(a,s,c,h.substring(0,r-i)),h=h.substring(r-i),i=r,a=this.$createLineElement(),e.appendChild(a),a.appendChild(this.dom.createTextNode(b.stringRepeat("\xa0",n.indent),this.element)),s=0,r=n[++o]||Number.MAX_VALUE;0!=h.length&&(i+=h.length,s=this.$renderToken(a,s,c,h))}}n[n.length-1]>this.MAX_LINE_LENGTH&&this.$renderOverflowMessage(a,s,null,"",!0)},this.$renderSimpleLine=function(e,t){var n=0,i=t[0],o=i.value;this.displayIndentGuides&&(o=this.renderIndentGuide(e,o)),o&&(n=this.$renderToken(e,n,i,o));for(var r=1;r<t.length;r++){if(n+(o=(i=t[r]).value).length>this.MAX_LINE_LENGTH)return this.$renderOverflowMessage(e,n,i,o);n=this.$renderToken(e,n,i,o)}},this.$renderOverflowMessage=function(e,t,n,i,o){n&&this.$renderToken(e,t,n,i.slice(0,this.MAX_LINE_LENGTH-t));var r=this.dom.createElement("span");r.className="ace_inline_button ace_keyword ace_toggle_wrap",r.textContent=o?"<hide>":"<click to see more...>",e.appendChild(r)},this.$renderLine=function(e,t,n){if(!n&&0!=n&&(n=this.session.getFoldLine(t)),n)var i=this.$getFoldLineTokens(t,n);else i=this.session.getTokens(t);var o=e;if(i.length){var r=this.session.getRowSplitData(t);if(r&&r.length){this.$renderWrappedLine(e,i,r);o=e.lastChild}else{o=e;this.$useLineGroups()&&(o=this.$createLineElement(),e.appendChild(o)),this.$renderSimpleLine(o,i)}}else this.$useLineGroups()&&(o=this.$createLineElement(),e.appendChild(o));if(this.showInvisibles&&o){n&&(t=n.end.row);var s=this.dom.createElement("span");s.className="ace_invisible ace_invisible_eol",s.textContent=t==this.session.getLength()-1?this.EOF_CHAR:this.EOL_CHAR,o.appendChild(s)}},this.$getFoldLineTokens=function(e,t){function r(e,t,n){for(var i=0,o=0;o+e[i].value.length<t;)if(o+=e[i].value.length,++i==e.length)return;o!=t&&((r=e[i].value.substring(t-o)).length>n-t&&(r=r.substring(0,n-t)),a.push({type:e[i].type,value:r}),o=t+r.length,i+=1);for(;o<n&&i<e.length;){var r;(r=e[i].value).length+o>n?a.push({type:e[i].type,value:r.substring(0,n-o)}):a.push(e[i]),o+=r.length,i+=1}}var s=this.session,a=[],l=s.getTokens(e);return t.walk(function(e,t,n,i,o){null!=e?a.push({type:"fold",value:e}):(o&&(l=s.getTokens(t)),l.length&&r(l,i,n))},t.end.row,this.session.getLine(t.end.row).length),a},this.$useLineGroups=function(){return this.session.getUseWrapMode()},this.destroy=function(){}}).call(r.prototype),t.Text=r}),ace.define("ace/layer/cursor",["require","exports","module","ace/lib/dom"],function(e,t){"use strict";var c=e("../lib/dom"),n=function(e){this.element=c.createElement("div"),this.element.className="ace_layer ace_cursor-layer",e.appendChild(this.element),this.isVisible=!1,this.isBlinking=!0,this.blinkInterval=1e3,this.smoothBlinking=!1,this.cursors=[],this.cursor=this.addCursor(),c.addCssClass(this.element,"ace_hidden-cursors"),this.$updateCursors=this.$updateOpacity.bind(this)};(function(){this.$updateOpacity=function(e){for(var t=this.cursors,n=t.length;n--;)c.setStyle(t[n].style,"opacity",e?"":"0")},this.$startCssAnimation=function(){for(var e=this.cursors,t=e.length;t--;)e[t].style.animationDuration=this.blinkInterval+"ms";setTimeout(function(){c.addCssClass(this.element,"ace_animate-blinking")}.bind(this))},this.$stopCssAnimation=function(){c.removeCssClass(this.element,"ace_animate-blinking")},this.$padding=0,this.setPadding=function(e){this.$padding=e},this.setSession=function(e){this.session=e},this.setBlinking=function(e){e!=this.isBlinking&&(this.isBlinking=e,this.restartTimer())},this.setBlinkInterval=function(e){e!=this.blinkInterval&&(this.blinkInterval=e,this.restartTimer())},this.setSmoothBlinking=function(e){e!=this.smoothBlinking&&(this.smoothBlinking=e,c.setCssClass(this.element,"ace_smooth-blinking",e),this.$updateCursors(!0),this.restartTimer())},this.addCursor=function(){var e=c.createElement("div");return e.className="ace_cursor",this.element.appendChild(e),this.cursors.push(e),e},this.removeCursor=function(){if(1<this.cursors.length){var e=this.cursors.pop();return e.parentNode.removeChild(e),e}},this.hideCursor=function(){this.isVisible=!1,c.addCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},this.showCursor=function(){this.isVisible=!0,c.removeCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},this.restartTimer=function(){var e=this.$updateCursors;if(clearInterval(this.intervalId),clearTimeout(this.timeoutId),this.$stopCssAnimation(),this.smoothBlinking&&c.removeCssClass(this.element,"ace_smooth-blinking"),e(!0),this.isBlinking&&this.blinkInterval&&this.isVisible)if(this.smoothBlinking&&setTimeout(function(){c.addCssClass(this.element,"ace_smooth-blinking")}.bind(this)),c.HAS_CSS_ANIMATION)this.$startCssAnimation();else{var t=function(){this.timeoutId=setTimeout(function(){e(!1)},.6*this.blinkInterval)}.bind(this);this.intervalId=setInterval(function(){e(!0),t()},this.blinkInterval),t()}else this.$stopCssAnimation()},this.getPixelPosition=function(e,t){if(!this.config||!this.session)return{left:0,top:0};e||(e=this.session.selection.getCursor());var n=this.session.documentToScreenPosition(e);return{left:this.$padding+(this.session.$bidiHandler.isBidiRow(n.row,e.row)?this.session.$bidiHandler.getPosLeft(n.column):n.column*this.config.characterWidth),top:(n.row-(t?this.config.firstRowScreen:0))*this.config.lineHeight}},this.isCursorInView=function(e,t){return 0<=e.top&&e.top<t.maxHeight},this.update=function(e){this.config=e;var t=this.session.$selectionMarkers,n=0,i=0;t!==undefined&&0!==t.length||(t=[{cursor:null}]);n=0;for(var o=t.length;n<o;n++){var r=this.getPixelPosition(t[n].cursor,!0);if(!((r.top>e.height+e.offset||r.top<0)&&1<n)){var s=this.cursors[i++]||this.addCursor(),a=s.style;this.drawCursor?this.drawCursor(s,r,e,t[n],this.session):this.isCursorInView(r,e)?(c.setStyle(a,"display","block"),c.translate(s,r.left,r.top),c.setStyle(a,"width",Math.round(e.characterWidth)+"px"),c.setStyle(a,"height",e.lineHeight+"px")):c.setStyle(a,"display","none")}}for(;this.cursors.length>i;)this.removeCursor();var l=this.session.getOverwrite();this.$setOverwrite(l),this.$pixelPos=r,this.restartTimer()},this.drawCursor=null,this.$setOverwrite=function(e){e!=this.overwrite&&((this.overwrite=e)?c.addCssClass(this.element,"ace_overwrite-cursors"):c.removeCssClass(this.element,"ace_overwrite-cursors"))},this.destroy=function(){clearInterval(this.intervalId),clearTimeout(this.timeoutId)}}).call(n.prototype),t.Cursor=n}),ace.define("ace/scrollbar",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],function(e,t){"use strict";var n=e("./lib/oop"),i=e("./lib/dom"),o=e("./lib/event"),r=e("./lib/event_emitter").EventEmitter,s=32768,a=function(e){this.element=i.createElement("div"),this.element.className="ace_scrollbar ace_scrollbar"+this.classSuffix,this.inner=i.createElement("div"),this.inner.className="ace_scrollbar-inner",this.inner.textContent="\xa0",this.element.appendChild(this.inner),e.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,o.addListener(this.element,"scroll",this.onScroll.bind(this)),o.addListener(this.element,"mousedown",o.preventDefault)};(function(){n.implement(this,r),this.setVisible=function(e){this.element.style.display=e?"":"none",this.isVisible=e,this.coeff=1}}).call(a.prototype);var l=function(e,t){a.call(this,e),this.scrollTop=0,this.scrollHeight=0,t.$scrollbarWidth=this.width=i.scrollbarWidth(e.ownerDocument),this.inner.style.width=this.element.style.width=(this.width||15)+5+"px",this.$minWidth=0};n.inherits(l,a),function(){this.classSuffix="-v",this.onScroll=function(){if(!this.skipEvent){if(this.scrollTop=this.element.scrollTop,1!=this.coeff){var e=this.element.clientHeight/this.scrollHeight;this.scrollTop=this.scrollTop*(1-e)/(this.coeff-e)}this._emit("scroll",{data:this.scrollTop})}this.skipEvent=!1},this.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},this.setHeight=function(e){this.element.style.height=e+"px"},this.setInnerHeight=this.setScrollHeight=function(e){this.scrollHeight=e,s<e?(this.coeff=s/e,e=s):1!=this.coeff&&(this.coeff=1),this.inner.style.height=e+"px"},this.setScrollTop=function(e){this.scrollTop!=e&&(this.skipEvent=!0,this.scrollTop=e,this.element.scrollTop=e*this.coeff)}}.call(l.prototype);var c=function(e,t){a.call(this,e),this.scrollLeft=0,this.height=t.$scrollbarWidth,this.inner.style.height=this.element.style.height=(this.height||15)+5+"px"};n.inherits(c,a),function(){this.classSuffix="-h",this.onScroll=function(){this.skipEvent||(this.scrollLeft=this.element.scrollLeft,this._emit("scroll",{data:this.scrollLeft})),this.skipEvent=!1},this.getHeight=function(){return this.isVisible?this.height:0},this.setWidth=function(e){this.element.style.width=e+"px"},this.setInnerWidth=function(e){this.inner.style.width=e+"px"},this.setScrollWidth=function(e){this.inner.style.width=e+"px"},this.setScrollLeft=function(e){this.scrollLeft!=e&&(this.skipEvent=!0,this.scrollLeft=this.element.scrollLeft=e)}}.call(c.prototype),t.ScrollBar=l,t.ScrollBarV=l,t.ScrollBarH=c,t.VScrollBar=l,t.HScrollBar=c}),ace.define("ace/renderloop",["require","exports","module","ace/lib/event"],function(e,t){"use strict";var i=e("./lib/event"),n=function(e,t){this.onRender=e,this.pending=!1,this.changes=0,this.$recursionLimit=2,this.window=t||window;var n=this;this._flush=function(){n.pending=!1;var e=n.changes;if(e&&(i.blockIdle(100),n.changes=0,n.onRender(e)),n.changes){if(n.$recursionLimit--<0)return;n.schedule()}else n.$recursionLimit=2}};(function(){this.schedule=function(e){this.changes=this.changes|e,this.changes&&!this.pending&&(i.nextFrame(this._flush),this.pending=!0)},this.clear=function(){var e=this.changes;return this.changes=0,e}}).call(n.prototype),t.RenderLoop=n}),ace.define("ace/layer/font_metrics",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/event","ace/lib/useragent","ace/lib/event_emitter"],function(e,t){var n=e("../lib/oop"),i=e("../lib/dom"),o=e("../lib/lang"),r=e("../lib/event"),s=e("../lib/useragent"),a=e("../lib/event_emitter").EventEmitter,l=256,c="function"==typeof ResizeObserver,w=200,h=t.FontMetrics=function(e){this.el=i.createElement("div"),this.$setMeasureNodeStyles(this.el.style,!0),this.$main=i.createElement("div"),this.$setMeasureNodeStyles(this.$main.style),this.$measureNode=i.createElement("div"),this.$setMeasureNodeStyles(this.$measureNode.style),this.el.appendChild(this.$main),this.el.appendChild(this.$measureNode),e.appendChild(this.el),this.$measureNode.innerHTML=o.stringRepeat("X",l),this.$characterSize={width:0,height:0},c?this.$addObserver():this.checkForSizeChanges()};(function(){n.implement(this,a),this.$characterSize={width:0,height:0},this.$setMeasureNodeStyles=function(e,t){e.width=e.height="auto",e.left=e.top="0px",e.visibility="hidden",e.position="absolute",e.whiteSpace="pre",s.isIE<8?e["font-family"]="inherit":e.font="inherit",e.overflow=t?"hidden":"visible"},this.checkForSizeChanges=function(e){if(e===undefined&&(e=this.$measureSizes()),e&&(this.$characterSize.width!==e.width||this.$characterSize.height!==e.height)){this.$measureNode.style.fontWeight="bold";var t=this.$measureSizes();this.$measureNode.style.fontWeight="",this.$characterSize=e,this.charSizes=Object.create(null),this.allowBoldFonts=t&&t.width===e.width&&t.height===e.height,this._emit("changeCharacterSize",{data:e})}},this.$addObserver=function(){var n=this;this.$observer=new window.ResizeObserver(function(e){var t=e[0].contentRect;n.checkForSizeChanges({height:t.height,width:t.width/l})}),this.$observer.observe(this.$measureNode)},this.$pollSizeChanges=function(){if(this.$pollSizeChangesTimer||this.$observer)return this.$pollSizeChangesTimer;var e=this;return this.$pollSizeChangesTimer=r.onIdle(function t(){e.checkForSizeChanges(),r.onIdle(t,500)},500)},this.setPolling=function(e){e?this.$pollSizeChanges():this.$pollSizeChangesTimer&&(clearInterval(this.$pollSizeChangesTimer),this.$pollSizeChangesTimer=0)},this.$measureSizes=function(e){var t={height:(e||this.$measureNode).clientHeight,width:(e||this.$measureNode).clientWidth/l};return 0===t.width||0===t.height?null:t},this.$measureCharWidth=function(e){return this.$main.innerHTML=o.stringRepeat(e,l),this.$main.getBoundingClientRect().width/l},this.getCharacterWidth=function(e){var t=this.charSizes[e];return t===undefined&&(t=this.charSizes[e]=this.$measureCharWidth(e)/this.$characterSize.width),t},this.destroy=function(){clearInterval(this.$pollSizeChangesTimer),this.$observer&&this.$observer.disconnect(),this.el&&this.el.parentNode&&this.el.parentNode.removeChild(this.el)},this.$getZoom=function t(e){return e?(window.getComputedStyle(e).zoom||1)*t(e.parentElement):1},this.$initTransformMeasureNodes=function(){var e=function(e,t){return["div",{style:"position: absolute;top:"+e+"px;left:"+t+"px;"}]};this.els=i.buildDom([e(0,0),e(w,0),e(0,w),e(w,w)],this.el)},this.transformCoordinates=function(e,t){function n(e,t,n){var i=e[1]*t[0]-e[0]*t[1];return[(-t[1]*n[0]+t[0]*n[1])/i,(+e[1]*n[0]-e[0]*n[1])/i]}function i(e,t){return[e[0]-t[0],e[1]-t[1]]}function o(e,t){return[e[0]+t[0],e[1]+t[1]]}function r(e,t){return[e*t[0],e*t[1]]}function s(e){var t=e.getBoundingClientRect();return[t.left,t.top]}e&&(e=r(1/this.$getZoom(this.el),e));this.els||this.$initTransformMeasureNodes();var a=s(this.els[0]),l=s(this.els[1]),c=s(this.els[2]),h=s(this.els[3]),u=n(i(h,l),i(h,c),i(o(l,c),o(h,a))),d=r(1+u[0],i(l,a)),g=r(1+u[1],i(c,a));if(t){var p=t,f=u[0]*p[0]/w+u[1]*p[1]/w+1,m=o(r(p[0],d),r(p[1],g));return o(r(1/f/w,m),a)}var v=i(e,a),b=n(i(d,r(u[0],v)),i(g,r(u[1],v)),v);return r(w,b)}}).call(h.prototype)}),ace.define("ace/virtual_renderer",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/config","ace/layer/gutter","ace/layer/marker","ace/layer/text","ace/layer/cursor","ace/scrollbar","ace/scrollbar","ace/renderloop","ace/layer/font_metrics","ace/lib/event_emitter","ace/lib/useragent"],function(e,t){"use strict";var n=e("./lib/oop"),h=e("./lib/dom"),r=e("./config"),o=e("./layer/gutter").Gutter,s=e("./layer/marker").Marker,a=e("./layer/text").Text,l=e("./layer/cursor").Cursor,c=e("./scrollbar").HScrollBar,u=e("./scrollbar").VScrollBar,d=e("./renderloop").RenderLoop,g=e("./layer/font_metrics").FontMetrics,i=e("./lib/event_emitter").EventEmitter,
10
- p='.ace_br1 {border-top-left-radius : 3px;}.ace_br2 {border-top-right-radius : 3px;}.ace_br3 {border-top-left-radius : 3px; border-top-right-radius: 3px;}.ace_br4 {border-bottom-right-radius: 3px;}.ace_br5 {border-top-left-radius : 3px; border-bottom-right-radius: 3px;}.ace_br6 {border-top-right-radius : 3px; border-bottom-right-radius: 3px;}.ace_br7 {border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px;}.ace_br8 {border-bottom-left-radius : 3px;}.ace_br9 {border-top-left-radius : 3px; border-bottom-left-radius: 3px;}.ace_br10{border-top-right-radius : 3px; border-bottom-left-radius: 3px;}.ace_br11{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br12{border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br13{border-top-left-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br14{border-top-right-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br15{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_editor {position: relative;overflow: hidden;font: 12px/normal \'Monaco\', \'Menlo\', \'Ubuntu Mono\', \'Consolas\', \'source-code-pro\', monospace;direction: ltr;text-align: left;-webkit-tap-highlight-color: rgba(0, 0, 0, 0);}.ace_scroller {position: absolute;overflow: hidden;top: 0;bottom: 0;background-color: inherit;-ms-user-select: none;-moz-user-select: none;-webkit-user-select: none;user-select: none;cursor: text;}.ace_content {position: absolute;box-sizing: border-box;min-width: 100%;contain: style size layout;}.ace_dragging .ace_scroller:before{position: absolute;top: 0;left: 0;right: 0;bottom: 0;content: \'\';background: rgba(250, 250, 250, 0.01);z-index: 1000;}.ace_dragging.ace_dark .ace_scroller:before{background: rgba(0, 0, 0, 0.01);}.ace_selecting, .ace_selecting * {cursor: text !important;}.ace_gutter {position: absolute;overflow : hidden;width: auto;top: 0;bottom: 0;left: 0;cursor: default;z-index: 4;-ms-user-select: none;-moz-user-select: none;-webkit-user-select: none;user-select: none;contain: style size layout;}.ace_gutter-active-line {position: absolute;left: 0;right: 0;}.ace_scroller.ace_scroll-left {box-shadow: 17px 0 16px -16px rgba(0, 0, 0, 0.4) inset;}.ace_gutter-cell {position: absolute;top: 0;left: 0;right: 0;padding-left: 19px;padding-right: 6px;background-repeat: no-repeat;}.ace_gutter-cell.ace_error {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAABOFBMVEX/////////QRswFAb/Ui4wFAYwFAYwFAaWGAfDRymzOSH/PxswFAb/SiUwFAYwFAbUPRvjQiDllog5HhHdRybsTi3/Tyv9Tir+Syj/UC3////XurebMBIwFAb/RSHbPx/gUzfdwL3kzMivKBAwFAbbvbnhPx66NhowFAYwFAaZJg8wFAaxKBDZurf/RB6mMxb/SCMwFAYwFAbxQB3+RB4wFAb/Qhy4Oh+4QifbNRcwFAYwFAYwFAb/QRzdNhgwFAYwFAbav7v/Uy7oaE68MBK5LxLewr/r2NXewLswFAaxJw4wFAbkPRy2PyYwFAaxKhLm1tMwFAazPiQwFAaUGAb/QBrfOx3bvrv/VC/maE4wFAbRPBq6MRO8Qynew8Dp2tjfwb0wFAbx6eju5+by6uns4uH9/f36+vr/GkHjAAAAYnRSTlMAGt+64rnWu/bo8eAA4InH3+DwoN7j4eLi4xP99Nfg4+b+/u9B/eDs1MD1mO7+4PHg2MXa347g7vDizMLN4eG+Pv7i5evs/v79yu7S3/DV7/498Yv24eH+4ufQ3Ozu/v7+y13sRqwAAADLSURBVHjaZc/XDsFgGIBhtDrshlitmk2IrbHFqL2pvXf/+78DPokj7+Fz9qpU/9UXJIlhmPaTaQ6QPaz0mm+5gwkgovcV6GZzd5JtCQwgsxoHOvJO15kleRLAnMgHFIESUEPmawB9ngmelTtipwwfASilxOLyiV5UVUyVAfbG0cCPHig+GBkzAENHS0AstVF6bacZIOzgLmxsHbt2OecNgJC83JERmePUYq8ARGkJx6XtFsdddBQgZE2nPR6CICZhawjA4Fb/chv+399kfR+MMMDGOQAAAABJRU5ErkJggg==");background-repeat: no-repeat;background-position: 2px center;}.ace_gutter-cell.ace_warning {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAmVBMVEX///8AAAD///8AAAAAAABPSzb/5sAAAAB/blH/73z/ulkAAAAAAAD85pkAAAAAAAACAgP/vGz/rkDerGbGrV7/pkQICAf////e0IsAAAD/oED/qTvhrnUAAAD/yHD/njcAAADuv2r/nz//oTj/p064oGf/zHAAAAA9Nir/tFIAAAD/tlTiuWf/tkIAAACynXEAAAAAAAAtIRW7zBpBAAAAM3RSTlMAABR1m7RXO8Ln31Z36zT+neXe5OzooRDfn+TZ4p3h2hTf4t3k3ucyrN1K5+Xaks52Sfs9CXgrAAAAjklEQVR42o3PbQ+CIBQFYEwboPhSYgoYunIqqLn6/z8uYdH8Vmdnu9vz4WwXgN/xTPRD2+sgOcZjsge/whXZgUaYYvT8QnuJaUrjrHUQreGczuEafQCO/SJTufTbroWsPgsllVhq3wJEk2jUSzX3CUEDJC84707djRc5MTAQxoLgupWRwW6UB5fS++NV8AbOZgnsC7BpEAAAAABJRU5ErkJggg==");background-position: 2px center;}.ace_gutter-cell.ace_info {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAAAAAA6mKC9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAJ0Uk5TAAB2k804AAAAPklEQVQY02NgIB68QuO3tiLznjAwpKTgNyDbMegwisCHZUETUZV0ZqOquBpXj2rtnpSJT1AEnnRmL2OgGgAAIKkRQap2htgAAAAASUVORK5CYII=");background-position: 2px center;}.ace_dark .ace_gutter-cell.ace_info {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAJFBMVEUAAAChoaGAgIAqKiq+vr6tra1ZWVmUlJSbm5s8PDxubm56enrdgzg3AAAAAXRSTlMAQObYZgAAAClJREFUeNpjYMAPdsMYHegyJZFQBlsUlMFVCWUYKkAZMxZAGdxlDMQBAG+TBP4B6RyJAAAAAElFTkSuQmCC");}.ace_scrollbar {contain: strict;position: absolute;right: 0;bottom: 0;z-index: 6;}.ace_scrollbar-inner {position: absolute;cursor: text;left: 0;top: 0;}.ace_scrollbar-v{overflow-x: hidden;overflow-y: scroll;top: 0;}.ace_scrollbar-h {overflow-x: scroll;overflow-y: hidden;left: 0;}.ace_print-margin {position: absolute;height: 100%;}.ace_text-input {position: absolute;z-index: 0;width: 0.5em;height: 1em;opacity: 0;background: transparent;-moz-appearance: none;appearance: none;border: none;resize: none;outline: none;overflow: hidden;font: inherit;padding: 0 1px;margin: 0 -1px;contain: strict;-ms-user-select: text;-moz-user-select: text;-webkit-user-select: text;user-select: text;white-space: pre!important;}.ace_text-input.ace_composition {background: transparent;color: inherit;z-index: 1000;opacity: 1;}.ace_composition_placeholder { color: transparent }.ace_composition_marker { border-bottom: 1px solid;position: absolute;border-radius: 0;margin-top: 1px;}[ace_nocontext=true] {transform: none!important;filter: none!important;perspective: none!important;clip-path: none!important;mask : none!important;contain: none!important;perspective: none!important;mix-blend-mode: initial!important;z-index: auto;}.ace_layer {z-index: 1;position: absolute;overflow: hidden;word-wrap: normal;white-space: pre;height: 100%;width: 100%;box-sizing: border-box;pointer-events: none;}.ace_gutter-layer {position: relative;width: auto;text-align: right;pointer-events: auto;height: 1000000px;contain: style size layout;}.ace_text-layer {font: inherit !important;position: absolute;height: 1000000px;width: 1000000px;contain: style size layout;}.ace_text-layer > .ace_line, .ace_text-layer > .ace_line_group {contain: style size layout;position: absolute;top: 0;left: 0;right: 0;}.ace_hidpi .ace_text-layer,.ace_hidpi .ace_gutter-layer,.ace_hidpi .ace_content,.ace_hidpi .ace_gutter {contain: strict;will-change: transform;}.ace_hidpi .ace_text-layer > .ace_line, .ace_hidpi .ace_text-layer > .ace_line_group {contain: strict;}.ace_cjk {display: inline-block;text-align: center;}.ace_cursor-layer {z-index: 4;}.ace_cursor {z-index: 4;position: absolute;box-sizing: border-box;border-left: 2px solid;transform: translatez(0);}.ace_multiselect .ace_cursor {border-left-width: 1px;}.ace_slim-cursors .ace_cursor {border-left-width: 1px;}.ace_overwrite-cursors .ace_cursor {border-left-width: 0;border-bottom: 1px solid;}.ace_hidden-cursors .ace_cursor {opacity: 0.2;}.ace_smooth-blinking .ace_cursor {transition: opacity 0.18s;}.ace_animate-blinking .ace_cursor {animation-duration: 1000ms;animation-timing-function: step-end;animation-name: blink-ace-animate;animation-iteration-count: infinite;}.ace_animate-blinking.ace_smooth-blinking .ace_cursor {animation-duration: 1000ms;animation-timing-function: ease-in-out;animation-name: blink-ace-animate-smooth;}@keyframes blink-ace-animate {from, to { opacity: 1; }60% { opacity: 0; }}@keyframes blink-ace-animate-smooth {from, to { opacity: 1; }45% { opacity: 1; }60% { opacity: 0; }85% { opacity: 0; }}.ace_marker-layer .ace_step, .ace_marker-layer .ace_stack {position: absolute;z-index: 3;}.ace_marker-layer .ace_selection {position: absolute;z-index: 5;}.ace_marker-layer .ace_bracket {position: absolute;z-index: 6;}.ace_marker-layer .ace_active-line {position: absolute;z-index: 2;}.ace_marker-layer .ace_selected-word {position: absolute;z-index: 4;box-sizing: border-box;}.ace_line .ace_fold {box-sizing: border-box;display: inline-block;height: 11px;margin-top: -2px;vertical-align: middle;background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACJJREFUeNpi+P//fxgTAwPDBxDxD078RSX+YeEyDFMCIMAAI3INmXiwf2YAAAAASUVORK5CYII=");background-repeat: no-repeat, repeat-x;background-position: center center, top left;color: transparent;border: 1px solid black;border-radius: 2px;cursor: pointer;pointer-events: auto;}.ace_dark .ace_fold {}.ace_fold:hover{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACBJREFUeNpi+P//fz4TAwPDZxDxD5X4i5fLMEwJgAADAEPVDbjNw87ZAAAAAElFTkSuQmCC");}.ace_tooltip {background-color: #FFF;background-image: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.1));border: 1px solid gray;border-radius: 1px;box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);color: black;max-width: 100%;padding: 3px 4px;position: fixed;z-index: 999999;box-sizing: border-box;cursor: default;white-space: pre;word-wrap: break-word;line-height: normal;font-style: normal;font-weight: normal;letter-spacing: normal;pointer-events: none;}.ace_folding-enabled > .ace_gutter-cell {padding-right: 13px;}.ace_fold-widget {box-sizing: border-box;margin: 0 -12px 0 1px;display: none;width: 11px;vertical-align: top;background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42mWKsQ0AMAzC8ixLlrzQjzmBiEjp0A6WwBCSPgKAXoLkqSot7nN3yMwR7pZ32NzpKkVoDBUxKAAAAABJRU5ErkJggg==");background-repeat: no-repeat;background-position: center;border-radius: 3px;border: 1px solid transparent;cursor: pointer;}.ace_folding-enabled .ace_fold-widget {display: inline-block; }.ace_fold-widget.ace_end {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42m3HwQkAMAhD0YzsRchFKI7sAikeWkrxwScEB0nh5e7KTPWimZki4tYfVbX+MNl4pyZXejUO1QAAAABJRU5ErkJggg==");}.ace_fold-widget.ace_closed {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAGCAYAAAAG5SQMAAAAOUlEQVR42jXKwQkAMAgDwKwqKD4EwQ26sSOkVWjgIIHAzPiCgaqiqnJHZnKICBERHN194O5b9vbLuAVRL+l0YWnZAAAAAElFTkSuQmCCXA==");}.ace_fold-widget:hover {border: 1px solid rgba(0, 0, 0, 0.3);background-color: rgba(255, 255, 255, 0.2);box-shadow: 0 1px 1px rgba(255, 255, 255, 0.7);}.ace_fold-widget:active {border: 1px solid rgba(0, 0, 0, 0.4);background-color: rgba(0, 0, 0, 0.05);box-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);}.ace_dark .ace_fold-widget {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHklEQVQIW2P4//8/AzoGEQ7oGCaLLAhWiSwB146BAQCSTPYocqT0AAAAAElFTkSuQmCC");}.ace_dark .ace_fold-widget.ace_end {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAH0lEQVQIW2P4//8/AxQ7wNjIAjDMgC4AxjCVKBirIAAF0kz2rlhxpAAAAABJRU5ErkJggg==");}.ace_dark .ace_fold-widget.ace_closed {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAFCAYAAACAcVaiAAAAHElEQVQIW2P4//+/AxAzgDADlOOAznHAKgPWAwARji8UIDTfQQAAAABJRU5ErkJggg==");}.ace_dark .ace_fold-widget:hover {box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);background-color: rgba(255, 255, 255, 0.1);}.ace_dark .ace_fold-widget:active {box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);}.ace_inline_button {border: 1px solid lightgray;display: inline-block;margin: -1px 8px;padding: 0 5px;pointer-events: auto;cursor: pointer;}.ace_inline_button:hover {border-color: gray;background: rgba(200,200,200,0.2);display: inline-block;pointer-events: auto;}.ace_fold-widget.ace_invalid {background-color: #FFB4B4;border-color: #DE5555;}.ace_fade-fold-widgets .ace_fold-widget {transition: opacity 0.4s ease 0.05s;opacity: 0;}.ace_fade-fold-widgets:hover .ace_fold-widget {transition: opacity 0.05s ease 0.05s;opacity:1;}.ace_underline {text-decoration: underline;}.ace_bold {font-weight: bold;}.ace_nobold .ace_bold {font-weight: normal;}.ace_italic {font-style: italic;}.ace_error-marker {background-color: rgba(255, 0, 0,0.2);position: absolute;z-index: 9;}.ace_highlight-marker {background-color: rgba(255, 255, 0,0.2);position: absolute;z-index: 8;}.ace_mobile-menu {position: absolute;line-height: 1.5;border-radius: 4px;-ms-user-select: none;-moz-user-select: none;-webkit-user-select: none;user-select: none;background: white;box-shadow: 1px 3px 2px grey;border: 1px solid #dcdcdc;color: black;}.ace_dark > .ace_mobile-menu {background: #333;color: #ccc;box-shadow: 1px 3px 2px grey;border: 1px solid #444;}.ace_mobile-button {padding: 2px;cursor: pointer;overflow: hidden;}.ace_mobile-button:hover {background-color: #eee;opacity:1;}.ace_mobile-button:active {background-color: #ddd;}',f=e("./lib/useragent"),m=f.isIE;h.importCssString(p,"ace_editor.css");var v=function(e,t){var n=this;this.container=e||h.createElement("div"),h.addCssClass(this.container,"ace_editor"),h.HI_DPI&&h.addCssClass(this.container,"ace_hidpi"),this.setTheme(t),this.$gutter=h.createElement("div"),this.$gutter.className="ace_gutter",this.container.appendChild(this.$gutter),this.$gutter.setAttribute("aria-hidden",!0),this.scroller=h.createElement("div"),this.scroller.className="ace_scroller",this.container.appendChild(this.scroller),this.content=h.createElement("div"),this.content.className="ace_content",this.scroller.appendChild(this.content),this.$gutterLayer=new o(this.$gutter),this.$gutterLayer.on("changeGutterWidth",this.onGutterResize.bind(this)),this.$markerBack=new s(this.content);var i=this.$textLayer=new a(this.content);this.canvas=i.element,this.$markerFront=new s(this.content),this.$cursorLayer=new l(this.content),this.$horizScroll=!1,this.$vScroll=!1,this.scrollBar=this.scrollBarV=new u(this.container,this),this.scrollBarH=new c(this.container,this),this.scrollBarV.addEventListener("scroll",function(e){n.$scrollAnimation||n.session.setScrollTop(e.data-n.scrollMargin.top)}),this.scrollBarH.addEventListener("scroll",function(e){n.$scrollAnimation||n.session.setScrollLeft(e.data-n.scrollMargin.left)}),this.scrollTop=0,this.scrollLeft=0,this.cursorPos={row:0,column:0},this.$fontMetrics=new g(this.container),this.$textLayer.$setFontMetrics(this.$fontMetrics),this.$textLayer.addEventListener("changeCharacterSize",function(e){n.updateCharacterSize(),n.onResize(!0,n.gutterWidth,n.$size.width,n.$size.height),n._signal("changeCharacterSize",e)}),this.$size={width:0,height:0,scrollerHeight:0,scrollerWidth:0,$dirty:!0},this.layerConfig={width:1,padding:0,firstRow:0,firstRowScreen:0,lastRow:0,lineHeight:0,characterWidth:0,minHeight:1,maxHeight:1,offset:0,height:1,gutterOffset:1},this.scrollMargin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.margin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.$keepTextAreaAtCursor=!f.isIOS,this.$loop=new d(this.$renderChanges.bind(this),this.container.ownerDocument.defaultView),this.$loop.schedule(this.CHANGE_FULL),this.updateCharacterSize(),this.setPadding(4),r.resetOptions(this),r._signal("renderer",this)};(function(){this.CHANGE_CURSOR=1,this.CHANGE_MARKER=2,this.CHANGE_GUTTER=4,this.CHANGE_SCROLL=8,this.CHANGE_LINES=16,this.CHANGE_TEXT=32,this.CHANGE_SIZE=64,this.CHANGE_MARKER_BACK=128,this.CHANGE_MARKER_FRONT=256,this.CHANGE_FULL=512,this.CHANGE_H_SCROLL=1024,n.implement(this,i),this.updateCharacterSize=function(){this.$textLayer.allowBoldFonts!=this.$allowBoldFonts&&(this.$allowBoldFonts=this.$textLayer.allowBoldFonts,this.setStyle("ace_nobold",!this.$allowBoldFonts)),this.layerConfig.characterWidth=this.characterWidth=this.$textLayer.getCharacterWidth(),this.layerConfig.lineHeight=this.lineHeight=this.$textLayer.getLineHeight(),this.$updatePrintMargin(),h.setStyle(this.scroller.style,"line-height",this.lineHeight+"px")},this.setSession=function(e){this.session&&this.session.doc.off("changeNewLineMode",this.onChangeNewLineMode),(this.session=e)&&this.scrollMargin.top&&e.getScrollTop()<=0&&e.setScrollTop(-this.scrollMargin.top),this.$cursorLayer.setSession(e),this.$markerBack.setSession(e),this.$markerFront.setSession(e),this.$gutterLayer.setSession(e),this.$textLayer.setSession(e),e&&(this.$loop.schedule(this.CHANGE_FULL),this.session.$setFontMetrics(this.$fontMetrics),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.onChangeNewLineMode=this.onChangeNewLineMode.bind(this),this.onChangeNewLineMode(),this.session.doc.on("changeNewLineMode",this.onChangeNewLineMode))},this.updateLines=function(e,t,n){if(t===undefined&&(t=Infinity),this.$changedLines?(this.$changedLines.firstRow>e&&(this.$changedLines.firstRow=e),this.$changedLines.lastRow<t&&(this.$changedLines.lastRow=t)):this.$changedLines={firstRow:e,lastRow:t},this.$changedLines.lastRow<this.layerConfig.firstRow){if(!n)return;this.$changedLines.lastRow=this.layerConfig.lastRow}this.$changedLines.firstRow>this.layerConfig.lastRow||this.$loop.schedule(this.CHANGE_LINES)},this.onChangeNewLineMode=function(){this.$loop.schedule(this.CHANGE_TEXT),this.$textLayer.$updateEolChar(),this.session.$bidiHandler.setEolChar(this.$textLayer.EOL_CHAR)},this.onChangeTabSize=function(){this.$loop.schedule(this.CHANGE_TEXT|this.CHANGE_MARKER),this.$textLayer.onChangeTabSize()},this.updateText=function(){this.$loop.schedule(this.CHANGE_TEXT)},this.updateFull=function(e){e?this.$renderChanges(this.CHANGE_FULL,!0):this.$loop.schedule(this.CHANGE_FULL)},this.updateFontSize=function(){this.$textLayer.checkForSizeChanges()},this.$changes=0,this.$updateSizeAsync=function(){this.$loop.pending?this.$size.$dirty=!0:this.onResize()},this.onResize=function(e,t,n,i){if(!(2<this.resizing)){0<this.resizing?this.resizing++:this.resizing=e?1:0;var o=this.container;i||(i=o.clientHeight||o.scrollHeight),n||(n=o.clientWidth||o.scrollWidth);var r=this.$updateCachedSize(e,t,n,i);if(!this.$size.scrollerHeight||!n&&!i)return this.resizing=0;e&&(this.$gutterLayer.$padding=null),e?this.$renderChanges(r|this.$changes,!0):this.$loop.schedule(r|this.$changes),this.resizing&&(this.resizing=0),this.scrollBarV.scrollLeft=this.scrollBarV.scrollTop=null}},this.$updateCachedSize=function(e,t,n,i){i-=this.$extraHeight||0;var o=0,r=this.$size,s={width:r.width,height:r.height,scrollerHeight:r.scrollerHeight,scrollerWidth:r.scrollerWidth};if(i&&(e||r.height!=i)&&(r.height=i,o|=this.CHANGE_SIZE,r.scrollerHeight=r.height,this.$horizScroll&&(r.scrollerHeight-=this.scrollBarH.getHeight()),this.scrollBarV.element.style.bottom=this.scrollBarH.getHeight()+"px",o|=this.CHANGE_SCROLL),n&&(e||r.width!=n)){o|=this.CHANGE_SIZE,r.width=n,null==t&&(t=this.$showGutter?this.$gutter.offsetWidth:0),this.gutterWidth=t,h.setStyle(this.scrollBarH.element.style,"left",t+"px"),h.setStyle(this.scroller.style,"left",t+this.margin.left+"px"),r.scrollerWidth=Math.max(0,n-t-this.scrollBarV.getWidth()-this.margin.h),h.setStyle(this.$gutter.style,"left",this.margin.left+"px");var a=this.scrollBarV.getWidth()+"px";h.setStyle(this.scrollBarH.element.style,"right",a),h.setStyle(this.scroller.style,"right",a),h.setStyle(this.scroller.style,"bottom",this.scrollBarH.getHeight()),(this.session&&this.session.getUseWrapMode()&&this.adjustWrapLimit()||e)&&(o|=this.CHANGE_FULL)}return r.$dirty=!n||!i,o&&this._signal("resize",s),o},this.onGutterResize=function(e){var t=this.$showGutter?e:0;t!=this.gutterWidth&&(this.$changes|=this.$updateCachedSize(!0,t,this.$size.width,this.$size.height)),this.session.getUseWrapMode()&&this.adjustWrapLimit()?this.$loop.schedule(this.CHANGE_FULL):this.$size.$dirty?this.$loop.schedule(this.CHANGE_FULL):this.$computeLayerConfig()},this.adjustWrapLimit=function(){var e=this.$size.scrollerWidth-2*this.$padding,t=Math.floor(e/this.characterWidth);return this.session.adjustWrapLimit(t,this.$showPrintMargin&&this.$printMarginColumn)},this.setAnimatedScroll=function(e){this.setOption("animatedScroll",e)},this.getAnimatedScroll=function(){return this.$animatedScroll},this.setShowInvisibles=function(e){this.setOption("showInvisibles",e),this.session.$bidiHandler.setShowInvisibles(e)},this.getShowInvisibles=function(){return this.getOption("showInvisibles")},this.getDisplayIndentGuides=function(){return this.getOption("displayIndentGuides")},this.setDisplayIndentGuides=function(e){this.setOption("displayIndentGuides",e)},this.setShowPrintMargin=function(e){this.setOption("showPrintMargin",e)},this.getShowPrintMargin=function(){return this.getOption("showPrintMargin")},this.setPrintMarginColumn=function(e){this.setOption("printMarginColumn",e)},this.getPrintMarginColumn=function(){return this.getOption("printMarginColumn")},this.getShowGutter=function(){return this.getOption("showGutter")},this.setShowGutter=function(e){return this.setOption("showGutter",e)},this.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},this.setFadeFoldWidgets=function(e){this.setOption("fadeFoldWidgets",e)},this.setHighlightGutterLine=function(e){this.setOption("highlightGutterLine",e)},this.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},this.$updatePrintMargin=function(){if(this.$showPrintMargin||this.$printMarginEl){if(!this.$printMarginEl){var e=h.createElement("div");e.className="ace_layer ace_print-margin-layer",this.$printMarginEl=h.createElement("div"),this.$printMarginEl.className="ace_print-margin",e.appendChild(this.$printMarginEl),this.content.insertBefore(e,this.content.firstChild)}var t=this.$printMarginEl.style;t.left=Math.round(this.characterWidth*this.$printMarginColumn+this.$padding)+"px",t.visibility=this.$showPrintMargin?"visible":"hidden",this.session&&-1==this.session.$wrap&&this.adjustWrapLimit()}},this.getContainerElement=function(){return this.container},this.getMouseEventTarget=function(){return this.scroller},this.getTextAreaContainer=function(){return this.container},this.$moveTextAreaToCursor=function(){if(!this.$isMousePressed){var e=this.textarea.style,t=this.$composition;if(this.$keepTextAreaAtCursor||t){var n=this.$cursorLayer.$pixelPos;if(n){t&&t.markerRange&&(n=this.$cursorLayer.getPixelPosition(t.markerRange.start,!0));var i=this.layerConfig,o=n.top,r=n.left;o-=i.offset;var s=t&&t.useTextareaForIME?this.lineHeight:m?0:1;if(o<0||o>i.height-s)h.translate(this.textarea,0,0);else{var a=1,l=this.$size.height-s;if(t)if(t.useTextareaForIME){var c=this.textarea.value;a=this.characterWidth*this.session.$getStringScreenWidth(c)[0],s+=2}else o+=this.lineHeight+2;else o+=this.lineHeight;(r-=this.scrollLeft)>this.$size.scrollerWidth-a&&(r=this.$size.scrollerWidth-a),r+=this.gutterWidth+this.margin.left,h.setStyle(e,"height",s+"px"),h.setStyle(e,"width",a+"px"),h.translate(this.textarea,Math.min(r,this.$size.scrollerWidth-a),Math.min(o,l))}}}else h.translate(this.textarea,-100,0)}},this.getFirstVisibleRow=function(){return this.layerConfig.firstRow},this.getFirstFullyVisibleRow=function(){return this.layerConfig.firstRow+(0===this.layerConfig.offset?0:1)},this.getLastFullyVisibleRow=function(){var e=this.layerConfig,t=e.lastRow;return this.session.documentToScreenRow(t,0)*e.lineHeight-this.session.getScrollTop()>e.height-e.lineHeight?t-1:t},this.getLastVisibleRow=function(){return this.layerConfig.lastRow},this.$padding=null,this.setPadding=function(e){this.$padding=e,this.$textLayer.setPadding(e),this.$cursorLayer.setPadding(e),this.$markerFront.setPadding(e),this.$markerBack.setPadding(e),this.$loop.schedule(this.CHANGE_FULL),this.$updatePrintMargin()},this.setScrollMargin=function(e,t,n,i){var o=this.scrollMargin;o.top=0|e,o.bottom=0|t,o.right=0|i,o.left=0|n,o.v=o.top+o.bottom,o.h=o.left+o.right,o.top&&this.scrollTop<=0&&this.session&&this.session.setScrollTop(-o.top),this.updateFull()},this.setMargin=function(e,t,n,i){var o=this.margin;o.top=0|e,o.bottom=0|t,o.right=0|i,o.left=0|n,o.v=o.top+o.bottom,o.h=o.left+o.right,this.$updateCachedSize(!0,this.gutterWidth,this.$size.width,this.$size.height),this.updateFull()},this.getHScrollBarAlwaysVisible=function(){return this.$hScrollBarAlwaysVisible},this.setHScrollBarAlwaysVisible=function(e){this.setOption("hScrollBarAlwaysVisible",e)},this.getVScrollBarAlwaysVisible=function(){return this.$vScrollBarAlwaysVisible},this.setVScrollBarAlwaysVisible=function(e){this.setOption("vScrollBarAlwaysVisible",e)},this.$updateScrollBarV=function(){var e=this.layerConfig.maxHeight,t=this.$size.scrollerHeight;!this.$maxLines&&this.$scrollPastEnd&&(e-=(t-this.lineHeight)*this.$scrollPastEnd,this.scrollTop>e-t&&(e=this.scrollTop+t,this.scrollBarV.scrollTop=null)),this.scrollBarV.setScrollHeight(e+this.scrollMargin.v),this.scrollBarV.setScrollTop(this.scrollTop+this.scrollMargin.top)},this.$updateScrollBarH=function(){this.scrollBarH.setScrollWidth(this.layerConfig.width+2*this.$padding+this.scrollMargin.h),this.scrollBarH.setScrollLeft(this.scrollLeft+this.scrollMargin.left)},this.$frozen=!1,this.freeze=function(){this.$frozen=!0},this.unfreeze=function(){this.$frozen=!1},this.$renderChanges=function(e,t){if(this.$changes&&(e|=this.$changes,this.$changes=0),this.session&&this.container.offsetWidth&&!this.$frozen&&(e||t)){if(this.$size.$dirty)return this.$changes|=e,this.onResize(!0);this.lineHeight||this.$textLayer.checkForSizeChanges(),this._signal("beforeRender"),this.session&&this.session.$bidiHandler&&this.session.$bidiHandler.updateCharacterWidths(this.$fontMetrics);var n=this.layerConfig;if(e&this.CHANGE_FULL||e&this.CHANGE_SIZE||e&this.CHANGE_TEXT||e&this.CHANGE_LINES||e&this.CHANGE_SCROLL||e&this.CHANGE_H_SCROLL){if(e|=this.$computeLayerConfig()|this.$loop.clear(),n.firstRow!=this.layerConfig.firstRow&&n.firstRowScreen==this.layerConfig.firstRowScreen){var i=this.scrollTop+(n.firstRow-this.layerConfig.firstRow)*this.lineHeight;0<i&&(this.scrollTop=i,e|=this.CHANGE_SCROLL,e|=this.$computeLayerConfig()|this.$loop.clear())}n=this.layerConfig,this.$updateScrollBarV(),e&this.CHANGE_H_SCROLL&&this.$updateScrollBarH(),h.translate(this.content,-this.scrollLeft,-n.offset);var o=n.width+2*this.$padding+"px",r=n.minHeight+"px";h.setStyle(this.content.style,"width",o),h.setStyle(this.content.style,"height",r)}return e&this.CHANGE_H_SCROLL&&(h.translate(this.content,-this.scrollLeft,-n.offset),this.scroller.className=this.scrollLeft<=0?"ace_scroller":"ace_scroller ace_scroll-left"),e&this.CHANGE_FULL?(this.$changedLines=null,this.$textLayer.update(n),this.$showGutter&&this.$gutterLayer.update(n),this.$markerBack.update(n),this.$markerFront.update(n),this.$cursorLayer.update(n),this.$moveTextAreaToCursor()):e&this.CHANGE_SCROLL?(this.$changedLines=null,e&this.CHANGE_TEXT||e&this.CHANGE_LINES?this.$textLayer.update(n):this.$textLayer.scrollLines(n),this.$showGutter&&(e&this.CHANGE_GUTTER||e&this.CHANGE_LINES?this.$gutterLayer.update(n):this.$gutterLayer.scrollLines(n)),this.$markerBack.update(n),this.$markerFront.update(n),this.$cursorLayer.update(n),this.$moveTextAreaToCursor()):(e&this.CHANGE_TEXT?(this.$changedLines=null,this.$textLayer.update(n),this.$showGutter&&this.$gutterLayer.update(n)):e&this.CHANGE_LINES?(this.$updateLines()||e&this.CHANGE_GUTTER&&this.$showGutter)&&this.$gutterLayer.update(n):e&this.CHANGE_TEXT||e&this.CHANGE_GUTTER?this.$showGutter&&this.$gutterLayer.update(n):e&this.CHANGE_CURSOR&&this.$highlightGutterLine&&this.$gutterLayer.updateLineHighlight(n),e&this.CHANGE_CURSOR&&(this.$cursorLayer.update(n),this.$moveTextAreaToCursor()),e&(this.CHANGE_MARKER|this.CHANGE_MARKER_FRONT)&&this.$markerFront.update(n),e&(this.CHANGE_MARKER|this.CHANGE_MARKER_BACK)&&this.$markerBack.update(n)),void this._signal("afterRender")}this.$changes|=e},this.$autosize=function(){var e=this.session.getScreenLength()*this.lineHeight,t=this.$maxLines*this.lineHeight,n=Math.min(t,Math.max((this.$minLines||1)*this.lineHeight,e))+this.scrollMargin.v+(this.$extraHeight||0);this.$horizScroll&&(n+=this.scrollBarH.getHeight()),this.$maxPixelHeight&&n>this.$maxPixelHeight&&(n=this.$maxPixelHeight);var i=!(n<=2*this.lineHeight)&&t<e;if(n!=this.desiredHeight||this.$size.height!=this.desiredHeight||i!=this.$vScroll){i!=this.$vScroll&&(this.$vScroll=i,this.scrollBarV.setVisible(i));var o=this.container.clientWidth;this.container.style.height=n+"px",this.$updateCachedSize(!0,this.$gutterWidth,o,n),this.desiredHeight=n,this._signal("autosize")}},this.$computeLayerConfig=function(){var e=this.session,t=this.$size,n=t.height<=2*this.lineHeight,i=this.session.getScreenLength()*this.lineHeight,o=this.$getLongestLine(),r=!n&&(this.$hScrollBarAlwaysVisible||t.scrollerWidth-o-2*this.$padding<0),s=this.$horizScroll!==r;s&&(this.$horizScroll=r,this.scrollBarH.setVisible(r));var a=this.$vScroll;this.$maxLines&&1<this.lineHeight&&this.$autosize();var l=t.scrollerHeight+this.lineHeight,c=!this.$maxLines&&this.$scrollPastEnd?(t.scrollerHeight-this.lineHeight)*this.$scrollPastEnd:0;i+=c;var h=this.scrollMargin;this.session.setScrollTop(Math.max(-h.top,Math.min(this.scrollTop,i-t.scrollerHeight+h.bottom))),this.session.setScrollLeft(Math.max(-h.left,Math.min(this.scrollLeft,o+2*this.$padding-t.scrollerWidth+h.right)));var u=!n&&(this.$vScrollBarAlwaysVisible||t.scrollerHeight-i+c<0||this.scrollTop>h.top),d=a!==u;d&&(this.$vScroll=u,this.scrollBarV.setVisible(u));var g,p,f=this.scrollTop%this.lineHeight,m=Math.ceil(l/this.lineHeight)-1,v=Math.max(0,Math.round((this.scrollTop-f)/this.lineHeight)),b=v+m,w=this.lineHeight;v=e.screenToDocumentRow(v,0);var y=e.getFoldLine(v);y&&(v=y.start.row),g=e.documentToScreenRow(v,0),p=e.getRowLength(v)*w,b=Math.min(e.screenToDocumentRow(b,0),e.getLength()-1),l=t.scrollerHeight+e.getRowLength(b)*w+p,f=this.scrollTop-g*w;var x=0;return(this.layerConfig.width!=o||s)&&(x=this.CHANGE_H_SCROLL),(s||d)&&(x|=this.$updateCachedSize(!0,this.gutterWidth,t.width,t.height),this._signal("scrollbarVisibilityChanged"),d&&(o=this.$getLongestLine())),this.layerConfig={width:o,padding:this.$padding,firstRow:v,firstRowScreen:g,lastRow:b,lineHeight:w,characterWidth:this.characterWidth,minHeight:l,maxHeight:i,offset:f,gutterOffset:w?Math.max(0,Math.ceil((f+t.height-t.scrollerHeight)/w)):0,height:this.$size.scrollerHeight},this.session.$bidiHandler&&this.session.$bidiHandler.setContentWidth(o-this.$padding),x},this.$updateLines=function(){if(this.$changedLines){var e=this.$changedLines.firstRow,t=this.$changedLines.lastRow;this.$changedLines=null;var n=this.layerConfig;if(!(e>n.lastRow+1||t<n.firstRow))return t===Infinity?(this.$showGutter&&this.$gutterLayer.update(n),void this.$textLayer.update(n)):(this.$textLayer.updateLines(n,e,t),!0)}},this.$getLongestLine=function(){var e=this.session.getScreenWidth();return this.showInvisibles&&!this.session.$useWrapMode&&(e+=1),this.$textLayer&&e>this.$textLayer.MAX_LINE_LENGTH&&(e=this.$textLayer.MAX_LINE_LENGTH+30),Math.max(this.$size.scrollerWidth-2*this.$padding,Math.round(e*this.characterWidth))},this.updateFrontMarkers=function(){this.$markerFront.setMarkers(this.session.getMarkers(!0)),this.$loop.schedule(this.CHANGE_MARKER_FRONT)},this.updateBackMarkers=function(){this.$markerBack.setMarkers(this.session.getMarkers()),this.$loop.schedule(this.CHANGE_MARKER_BACK)},this.addGutterDecoration=function(e,t){this.$gutterLayer.addGutterDecoration(e,t)},this.removeGutterDecoration=function(e,t){this.$gutterLayer.removeGutterDecoration(e,t)},this.updateBreakpoints=function(){this.$loop.schedule(this.CHANGE_GUTTER)},this.setAnnotations=function(e){this.$gutterLayer.setAnnotations(e),this.$loop.schedule(this.CHANGE_GUTTER)},this.updateCursor=function(){this.$loop.schedule(this.CHANGE_CURSOR)},this.hideCursor=function(){this.$cursorLayer.hideCursor()},this.showCursor=function(){this.$cursorLayer.showCursor()},this.scrollSelectionIntoView=function(e,t,n){this.scrollCursorIntoView(e,n),this.scrollCursorIntoView(t,n)},this.scrollCursorIntoView=function(e,t,n){if(
11
- 0!==this.$size.scrollerHeight){var i=this.$cursorLayer.getPixelPosition(e),o=i.left,r=i.top,s=n&&n.top||0,a=n&&n.bottom||0,l=this.$scrollAnimation?this.session.getScrollTop():this.scrollTop;r<l+s?(t&&l+s>r+this.lineHeight&&(r-=t*this.$size.scrollerHeight),0===r&&(r=-this.scrollMargin.top),this.session.setScrollTop(r)):l+this.$size.scrollerHeight-a<r+this.lineHeight&&(t&&l+this.$size.scrollerHeight-a<r-this.lineHeight&&(r+=t*this.$size.scrollerHeight),this.session.setScrollTop(r+this.lineHeight+a-this.$size.scrollerHeight));var c=this.scrollLeft;o<c?(o<this.$padding+2*this.layerConfig.characterWidth&&(o=-this.scrollMargin.left),this.session.setScrollLeft(o)):c+this.$size.scrollerWidth<o+this.characterWidth?this.session.setScrollLeft(Math.round(o+this.characterWidth-this.$size.scrollerWidth)):c<=this.$padding&&o-c<this.characterWidth&&this.session.setScrollLeft(0)}},this.getScrollTop=function(){return this.session.getScrollTop()},this.getScrollLeft=function(){return this.session.getScrollLeft()},this.getScrollTopRow=function(){return this.scrollTop/this.lineHeight},this.getScrollBottomRow=function(){return Math.max(0,Math.floor((this.scrollTop+this.$size.scrollerHeight)/this.lineHeight)-1)},this.scrollToRow=function(e){this.session.setScrollTop(e*this.lineHeight)},this.alignCursor=function(e,t){"number"==typeof e&&(e={row:e,column:0});var n=this.$cursorLayer.getPixelPosition(e),i=this.$size.scrollerHeight-this.lineHeight,o=n.top-i*(t||0);return this.session.setScrollTop(o),o},this.STEPS=8,this.$calcSteps=function(e,t){var n=0,i=this.STEPS,o=[],r=function(e,t,n){return n*(Math.pow(e-1,3)+1)+t};for(n=0;n<i;++n)o.push(r(n/this.STEPS,e,t-e));return o},this.scrollToLine=function(e,t,n,i){var o=this.$cursorLayer.getPixelPosition({row:e,column:0}).top;t&&(o-=this.$size.scrollerHeight/2);var r=this.scrollTop;this.session.setScrollTop(o),!1!==n&&this.animateScrolling(r,i)},this.animateScrolling=function(e,t){var n=this.scrollTop;if(this.$animatedScroll){var i=this;if(e!=n){if(this.$scrollAnimation){var o=this.$scrollAnimation.steps;if(o.length&&(e=o[0])==n)return}var r=i.$calcSteps(e,n);this.$scrollAnimation={from:e,to:n,steps:r},clearInterval(this.$timer),i.session.setScrollTop(r.shift()),i.session.$scrollTop=n,this.$timer=setInterval(function(){r.length?(i.session.setScrollTop(r.shift()),i.session.$scrollTop=n):null!=n?(i.session.$scrollTop=-1,i.session.setScrollTop(n),n=null):(i.$timer=clearInterval(i.$timer),i.$scrollAnimation=null,t&&t())},10)}}},this.scrollToY=function(e){this.scrollTop!==e&&(this.$loop.schedule(this.CHANGE_SCROLL),this.scrollTop=e)},this.scrollToX=function(e){this.scrollLeft!==e&&(this.scrollLeft=e),this.$loop.schedule(this.CHANGE_H_SCROLL)},this.scrollTo=function(e,t){this.session.setScrollTop(t),this.session.setScrollLeft(t)},this.scrollBy=function(e,t){t&&this.session.setScrollTop(this.session.getScrollTop()+t),e&&this.session.setScrollLeft(this.session.getScrollLeft()+e)},this.isScrollableBy=function(e,t){return t<0&&this.session.getScrollTop()>=1-this.scrollMargin.top||(0<t&&this.session.getScrollTop()+this.$size.scrollerHeight-this.layerConfig.maxHeight<-1+this.scrollMargin.bottom||(e<0&&this.session.getScrollLeft()>=1-this.scrollMargin.left||(0<e&&this.session.getScrollLeft()+this.$size.scrollerWidth-this.layerConfig.width<-1+this.scrollMargin.right||void 0)))},this.pixelToScreenCoordinates=function(e,t){var n;if(this.$hasCssTransforms){n={top:0,left:0};var i=this.$fontMetrics.transformCoordinates([e,t]);e=i[1]-this.gutterWidth-this.margin.left,t=i[0]}else n=this.scroller.getBoundingClientRect();var o=e+this.scrollLeft-n.left-this.$padding,r=o/this.characterWidth,s=Math.floor((t+this.scrollTop-n.top)/this.lineHeight),a=this.$blockCursor?Math.floor(r):Math.round(r);return{row:s,column:a,side:0<r-a?1:-1,offsetX:o}},this.screenToTextCoordinates=function(e,t){var n;if(this.$hasCssTransforms){n={top:0,left:0};var i=this.$fontMetrics.transformCoordinates([e,t]);e=i[1]-this.gutterWidth-this.margin.left,t=i[0]}else n=this.scroller.getBoundingClientRect();var o=e+this.scrollLeft-n.left-this.$padding,r=o/this.characterWidth,s=this.$blockCursor?Math.floor(r):Math.round(r),a=Math.floor((t+this.scrollTop-n.top)/this.lineHeight);return this.session.screenToDocumentPosition(a,Math.max(s,0),o)},this.textToScreenCoordinates=function(e,t){var n=this.scroller.getBoundingClientRect(),i=this.session.documentToScreenPosition(e,t),o=this.$padding+(this.session.$bidiHandler.isBidiRow(i.row,e)?this.session.$bidiHandler.getPosLeft(i.column):Math.round(i.column*this.characterWidth)),r=i.row*this.lineHeight;return{pageX:n.left+o-this.scrollLeft,pageY:n.top+r-this.scrollTop}},this.visualizeFocus=function(){h.addCssClass(this.container,"ace_focus")},this.visualizeBlur=function(){h.removeCssClass(this.container,"ace_focus")},this.showComposition=function(e){(this.$composition=e).cssText||(e.cssText=this.textarea.style.cssText),e.useTextareaForIME=this.$useTextareaForIME,this.$useTextareaForIME?(h.addCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText="",this.$moveTextAreaToCursor(),this.$cursorLayer.element.style.display="none"):e.markerId=this.session.addMarker(e.markerRange,"ace_composition_marker","text")},this.setCompositionText=function(e){var t=this.session.selection.cursor;this.addToken(e,"composition_placeholder",t.row,t.column),this.$moveTextAreaToCursor()},this.hideComposition=function(){this.$composition&&(this.$composition.markerId&&this.session.removeMarker(this.$composition.markerId),h.removeCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText=this.$composition.cssText,this.$composition=null,this.$cursorLayer.element.style.display="")},this.addToken=function(e,t,n,i){var o=this.session;o.bgTokenizer.lines[n]=null;var r={type:t,value:e},s=o.getTokens(n);if(null==i)s.push(r);else for(var a=0,l=0;l<s.length;l++){var c=s[l];if(i<=(a+=c.value.length)){var h=c.value.length-(a-i),u=c.value.slice(0,h),d=c.value.slice(h);s.splice(l,1,{type:c.type,value:u},r,{type:c.type,value:d});break}}this.updateLines(n,n)},this.setTheme=function(n,i){function e(e){if(o.$themeId!=n)return i&&i();if(!e||!e.cssClass)throw new Error("couldn't load module "+n+" or it didn't call define");e.$id&&(o.$themeId=e.$id),h.importCssString(e.cssText,e.cssClass,o.container),o.theme&&h.removeCssClass(o.container,o.theme.cssClass);var t="padding"in e?e.padding:"padding"in(o.theme||{})?4:o.$padding;o.$padding&&t!=o.$padding&&o.setPadding(t),o.$theme=e.cssClass,o.theme=e,h.addCssClass(o.container,e.cssClass),h.setCssClass(o.container,"ace_dark",e.isDark),o.$size&&(o.$size.width=0,o.$updateSizeAsync()),o._dispatchEvent("themeLoaded",{theme:e}),i&&i()}var o=this;if(this.$themeId=n,o._dispatchEvent("themeChange",{theme:n}),n&&"string"!=typeof n)e(n);else{var t=n||this.$options.theme.initialValue;r.loadModule(["theme",t],e)}},this.getTheme=function(){return this.$themeId},this.setStyle=function(e,t){h.setCssClass(this.container,e,!1!==t)},this.unsetStyle=function(e){h.removeCssClass(this.container,e)},this.setCursorStyle=function(e){h.setStyle(this.scroller.style,"cursor",e)},this.setMouseCursor=function(e){h.setStyle(this.scroller.style,"cursor",e)},this.attachToShadowRoot=function(){h.importCssString(p,"ace_editor.css",this.container)},this.destroy=function(){this.freeze(),this.$fontMetrics.destroy(),this.$cursorLayer.destroy()}}).call(v.prototype),r.defineOptions(v.prototype,"renderer",{animatedScroll:{initialValue:!1},showInvisibles:{set:function(e){this.$textLayer.setShowInvisibles(e)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!1},showPrintMargin:{set:function(){this.$updatePrintMargin()},initialValue:!0},printMarginColumn:{set:function(){this.$updatePrintMargin()},initialValue:80},printMargin:{set:function(e){"number"==typeof e&&(this.$printMarginColumn=e),this.$showPrintMargin=!!e,this.$updatePrintMargin()},get:function(){return this.$showPrintMargin&&this.$printMarginColumn}},showGutter:{set:function(e){this.$gutter.style.display=e?"block":"none",this.$loop.schedule(this.CHANGE_FULL),this.onGutterResize()},initialValue:!0},fadeFoldWidgets:{set:function(e){h.setCssClass(this.$gutter,"ace_fade-fold-widgets",e)},initialValue:!1},showFoldWidgets:{set:function(e){this.$gutterLayer.setShowFoldWidgets(e),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},displayIndentGuides:{set:function(e){this.$textLayer.setDisplayIndentGuides(e)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!0},highlightGutterLine:{set:function(e){this.$gutterLayer.setHighlightGutterLine(e),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},hScrollBarAlwaysVisible:{set:function(){(!this.$hScrollBarAlwaysVisible||!this.$horizScroll)&&this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},vScrollBarAlwaysVisible:{set:function(){(!this.$vScrollBarAlwaysVisible||!this.$vScroll)&&this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},fontSize:{set:function(e){"number"==typeof e&&(e+="px"),this.container.style.fontSize=e,this.updateFontSize()},initialValue:12},fontFamily:{set:function(e){this.container.style.fontFamily=e,this.updateFontSize()}},maxLines:{set:function(){this.updateFull()}},minLines:{set:function(){this.$minLines<562949953421311||(this.$minLines=0),this.updateFull()}},maxPixelHeight:{set:function(){this.updateFull()},initialValue:0},scrollPastEnd:{set:function(e){e=+e||0,this.$scrollPastEnd!=e&&(this.$scrollPastEnd=e,this.$loop.schedule(this.CHANGE_SCROLL))},initialValue:0,handlesSet:!0},fixedWidthGutter:{set:function(e){this.$gutterLayer.$fixedWidth=!!e,this.$loop.schedule(this.CHANGE_GUTTER)}},theme:{set:function(e){this.setTheme(e)},get:function(){return this.$themeId||this.theme},initialValue:"./theme/textmate",handlesSet:!0},hasCssTransforms:{},useTextareaForIME:{initialValue:!f.isMobile&&!f.isIE}}),t.VirtualRenderer=v}),ace.define("ace/worker/worker_client",["require","exports","module","ace/lib/oop","ace/lib/net","ace/lib/event_emitter","ace/config"],function(a,e,o){"use strict";function i(e){var t="importScripts('"+r.qualifyURL(e)+"');";try{return new Blob([t],{type:"application/javascript"})}catch(o){var n=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder,i=new n;return i.append(t),i.getBlob("application/javascript")}}function l(e){if("undefined"==typeof Worker)return{postMessage:function(){},terminate:function(){}};if(h.get("loadWorkerFromBlob")){var t=i(e),n=(window.URL||window.webkitURL).createObjectURL(t);return new Worker(n)}return new Worker(e)}var t=a("../lib/oop"),r=a("../lib/net"),c=a("../lib/event_emitter").EventEmitter,h=a("../config"),u=function(e){e.postMessage||(e=this.$createWorkerFromOldConfig.apply(this,arguments)),this.$worker=e,this.$sendDeltaQueue=this.$sendDeltaQueue.bind(this),this.changeListener=this.changeListener.bind(this),this.onMessage=this.onMessage.bind(this),this.callbackId=1,this.callbacks={},this.$worker.onmessage=this.onMessage};(function(){t.implement(this,c),this.$createWorkerFromOldConfig=function(e,t,n,i,o){if(a.nameToUrl&&!a.toUrl&&(a.toUrl=a.nameToUrl),h.get("packaged")||!a.toUrl)i=i||h.moduleUrl(t,"worker");else{var r=this.$normalizePath;i=i||r(a.toUrl("ace/worker/worker.js",null,"_"));var s={};e.forEach(function(e){s[e]=r(a.toUrl(e,null,"_").replace(/(\.js)?(\?.*)?$/,""))})}return this.$worker=l(i),o&&this.send("importScripts",o),this.$worker.postMessage({init:!0,tlns:s,module:t,classname:n}),this.$worker},this.onMessage=function(e){var t=e.data;switch(t.type){case"event":this._signal(t.name,{data:t.data});break;case"call":var n=this.callbacks[t.id];n&&(n(t.data),delete this.callbacks[t.id]);break;case"error":this.reportError(t.data);break;case"log":window.console&&console.log&&console.log.apply(console,t.data)}},this.reportError=function(e){window.console&&console.error&&console.error(e)},this.$normalizePath=function(e){return r.qualifyURL(e)},this.terminate=function(){this._signal("terminate",{}),this.deltaQueue=null,this.$worker.terminate(),this.$worker=null,this.$doc&&this.$doc.off("change",this.changeListener),this.$doc=null},this.send=function(e,t){this.$worker.postMessage({command:e,args:t})},this.call=function(e,t,n){if(n){var i=this.callbackId++;this.callbacks[i]=n,t.push(i)}this.send(e,t)},this.emit=function(e,t){try{t.data&&t.data.err&&(t.data.err={message:t.data.err.message,stack:t.data.err.stack,code:t.data.err.code}),this.$worker.postMessage({event:e,data:{data:t.data}})}catch(o){console.error(o.stack)}},this.attachToDocument=function(e){this.$doc&&this.terminate(),this.$doc=e,this.call("setValue",[e.getValue()]),e.on("change",this.changeListener)},this.changeListener=function(e){this.deltaQueue||(this.deltaQueue=[],setTimeout(this.$sendDeltaQueue,0)),"insert"==e.action?this.deltaQueue.push(e.start,e.lines):this.deltaQueue.push(e.start,e.end)},this.$sendDeltaQueue=function(){var e=this.deltaQueue;e&&(this.deltaQueue=null,50<e.length&&e.length>this.$doc.getLength()>>1?this.call("setValue",[this.$doc.getValue()]):this.emit("change",{data:e}))}}).call(u.prototype);var n=function(e,t,n){var i=null,o=!1,r=Object.create(c),s=[],a=new u({messageBuffer:s,terminate:function(){},postMessage:function(e){s.push(e),i&&(o?setTimeout(l):l())}});a.setEmitSync=function(e){o=e};var l=function(){var e=s.shift();e.command?i[e.command].apply(i,e.args):e.event&&r._signal(e.event,e.data)};return r.postMessage=function(e){a.onMessage({data:e})},r.callback=function(e,t){this.postMessage({type:"call",id:t,data:e})},r.emit=function(e,t){this.postMessage({type:"event",name:e,data:t})},h.loadModule(["worker",t],function(e){for(i=new e[n](r);s.length;)l()}),a};e.UIWorkerClient=n,e.WorkerClient=u,e.createWorker=l}),ace.define("ace/placeholder",["require","exports","module","ace/range","ace/lib/event_emitter","ace/lib/oop"],function(e,t){"use strict";var l=e("./range").Range,n=e("./lib/event_emitter").EventEmitter,i=e("./lib/oop"),o=function(e,t,n,i,o,r){var s=this;this.length=t,this.session=e,this.doc=e.getDocument(),this.mainClass=o,this.othersClass=r,this.$onUpdate=this.onUpdate.bind(this),this.doc.on("change",this.$onUpdate),this.$others=i,this.$onCursorChange=function(){setTimeout(function(){s.onCursorChange()})},this.$pos=n;var a=e.getUndoManager().$undoStack||e.getUndoManager().$undostack||{length:-1};this.$undoStackDepth=a.length,this.setup(),e.selection.on("changeCursor",this.$onCursorChange)};(function(){i.implement(this,n),this.setup=function(){var n=this,i=this.doc,e=this.session;this.selectionBefore=e.selection.toJSON(),e.selection.inMultiSelectMode&&e.selection.toSingleRange(),this.pos=i.createAnchor(this.$pos.row,this.$pos.column);var t=this.pos;t.$insertRight=!0,t.detach(),t.markerId=e.addMarker(new l(t.row,t.column,t.row,t.column+this.length),this.mainClass,null,!1),this.others=[],this.$others.forEach(function(e){var t=i.createAnchor(e.row,e.column);t.$insertRight=!0,t.detach(),n.others.push(t)}),e.setUndoSelect(!1)},this.showOtherMarkers=function(){if(!this.othersActive){var t=this.session,n=this;this.othersActive=!0,this.others.forEach(function(e){e.markerId=t.addMarker(new l(e.row,e.column,e.row,e.column+n.length),n.othersClass,null,!1)})}},this.hideOtherMarkers=function(){if(this.othersActive){this.othersActive=!1;for(var e=0;e<this.others.length;e++)this.session.removeMarker(this.others[e].markerId)}},this.onUpdate=function(e){if(this.$updating)return this.updateAnchors(e);var t=e;if(t.start.row===t.end.row&&t.start.row===this.pos.row){this.$updating=!0;var n="insert"===e.action?t.end.column-t.start.column:t.start.column-t.end.column,i=t.start.column>=this.pos.column&&t.start.column<=this.pos.column+this.length+1,o=t.start.column-this.pos.column;if(this.updateAnchors(e),i&&(this.length+=n),i&&!this.session.$fromUndo)if("insert"===e.action)for(var r=this.others.length-1;0<=r;r--){var s={row:(a=this.others[r]).row,column:a.column+o};this.doc.insertMergedLines(s,e.lines)}else if("remove"===e.action)for(r=this.others.length-1;0<=r;r--){var a;s={row:(a=this.others[r]).row,column:a.column+o};this.doc.remove(new l(s.row,s.column,s.row,s.column-n))}this.$updating=!1,this.updateMarkers()}},this.updateAnchors=function(e){this.pos.onChange(e);for(var t=this.others.length;t--;)this.others[t].onChange(e);this.updateMarkers()},this.updateMarkers=function(){if(!this.$updating){var n=this,i=this.session,e=function(e,t){i.removeMarker(e.markerId),e.markerId=i.addMarker(new l(e.row,e.column,e.row,e.column+n.length),t,null,!1)};e(this.pos,this.mainClass);for(var t=this.others.length;t--;)e(this.others[t],this.othersClass)}},this.onCursorChange=function(e){if(!this.$updating&&this.session){var t=this.session.selection.getCursor();t.row===this.pos.row&&t.column>=this.pos.column&&t.column<=this.pos.column+this.length?(this.showOtherMarkers(),this._emit("cursorEnter",e)):(this.hideOtherMarkers(),this._emit("cursorLeave",e))}},this.detach=function(){this.session.removeMarker(this.pos&&this.pos.markerId),this.hideOtherMarkers(),this.doc.removeEventListener("change",this.$onUpdate),this.session.selection.removeEventListener("changeCursor",this.$onCursorChange),this.session.setUndoSelect(!0),this.session=null},this.cancel=function(){if(-1!==this.$undoStackDepth){for(var e=this.session.getUndoManager(),t=(e.$undoStack||e.$undostack).length-this.$undoStackDepth,n=0;n<t;n++)e.undo(this.session,!0);this.selectionBefore&&this.session.selection.fromJSON(this.selectionBefore)}}}).call(o.prototype),t.PlaceHolder=o}),ace.define("ace/mouse/multi_select_handler",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(e,t){function L(e,t){return e.row==t.row&&e.column==t.column}function n(e){var t=e.domEvent,n=t.altKey,i=t.shiftKey,o=t.ctrlKey,r=e.getAccelKey(),s=e.getButton();if(o&&R.isMac&&(s=t.button),e.editor.inMultiSelectMode&&2==s)e.editor.textInput.onContextMenu(e.domEvent);else if(o||n||r){if(0===s){var a,l=e.editor,c=l.selection,h=l.inMultiSelectMode,u=e.getDocumentPosition(),d=c.getCursor(),g=e.inSelection()||c.isEmpty()&&L(u,d),p=e.x,f=e.y,m=function(e){p=e.clientX,f=e.clientY},v=l.session,b=l.renderer.pixelToScreenCoordinates(p,f),w=b;if(l.$mouseHandler.$enableJumpToDef)o&&n||r&&n?a=i?"block":"add":n&&l.$blockSelectEnabled&&(a="block");else if(r&&!n){if(a="add",!h&&i)return}else n&&l.$blockSelectEnabled&&(a="block");if(a&&R.isMac&&t.ctrlKey&&l.$mouseHandler.cancelContextMenu(),"add"==a){if(!h&&g)return;if(!h){var y=c.toOrientedRange();l.addSelectionMarker(y)}var x=c.rangeList.rangeAtPoint(u);l.inVirtualSelectionMode=!0,i&&(x=null,y=c.ranges[0]||y,l.removeSelectionMarker(y)),l.once("mouseup",function(){var e=c.toOrientedRange();x&&e.isEmpty()&&L(x.cursor,e.cursor)?c.substractPoint(e.cursor):(i?c.substractPoint(y.cursor):y&&(l.removeSelectionMarker(y),c.addRange(y)),c.addRange(e)),l.inVirtualSelectionMode=!1})}else if("block"==a){e.stop(),l.inVirtualSelectionMode=!0;var k,C=[],S=function(){var e=l.renderer.pixelToScreenCoordinates(p,f),t=v.screenToDocumentPosition(e.row,e.column,e.offsetX);L(w,e)&&L(t,c.lead)||(w=e,l.selection.moveToPosition(t),l.renderer.scrollCursorIntoView(),l.removeSelectionMarkers(C),C=c.rectangularRangeBlock(w,b),l.$mouseHandler.$clickSelection&&1==C.length&&C[0].isEmpty()&&(C[0]=l.$mouseHandler.$clickSelection.clone()),C.forEach(l.addSelectionMarker,l),l.updateSelectionMarkers())};h&&!r?c.toSingleRange():!h&&r&&(k=c.toOrientedRange(),l.addSelectionMarker(k)),i?b=v.documentToScreenPosition(c.lead):c.moveToPosition(u),w={row:-1,column:-1};var $=function(){S(),clearInterval(A),l.removeSelectionMarkers(C),C.length||(C=[c.toOrientedRange()]),k&&(l.removeSelectionMarker(k),c.toSingleRange(k));for(var e=0;e<C.length;e++)c.addRange(C[e]);l.inVirtualSelectionMode=!1,l.$mouseHandler.$clickSelection=null},_=S;M.capture(l.container,m,$);var A=setInterval(function(){_()},20);return e.preventDefault()}}}else 0===s&&e.editor.inMultiSelectMode&&e.editor.exitMultiSelectMode()}var M=e("../lib/event"),R=e("../lib/useragent");t.onMouseDown=n}),ace.define("ace/commands/multi_select_commands",["require","exports","module","ace/keyboard/hash_handler"],function(e,t){t.defaultCommands=[{name:"addCursorAbove",description:"Add cursor above",exec:function(e){e.selectMoreLines(-1)},bindKey:{win:"Ctrl-Alt-Up",mac:"Ctrl-Alt-Up"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorBelow",description:"Add cursor below",exec:function(e){e.selectMoreLines(1)},bindKey:{win:"Ctrl-Alt-Down",mac:"Ctrl-Alt-Down"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorAboveSkipCurrent",description:"Add cursor above (skip current)",exec:function(e){e.selectMoreLines(-1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Up",mac:"Ctrl-Alt-Shift-Up"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorBelowSkipCurrent",description:"Add cursor below (skip current)",exec:function(e){e.selectMoreLines(1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Down",mac:"Ctrl-Alt-Shift-Down"},scrollIntoView:"cursor",readOnly:!0},{name:"selectMoreBefore",description:"Select more before",exec:function(e){e.selectMore(-1)},bindKey:{win:"Ctrl-Alt-Left",mac:"Ctrl-Alt-Left"},scrollIntoView:"cursor",readOnly:!0},{name:"selectMoreAfter",description:"Select more after",exec:function(e){e.selectMore(1)},bindKey:{win:"Ctrl-Alt-Right",mac:"Ctrl-Alt-Right"},scrollIntoView:"cursor",readOnly:!0},{name:"selectNextBefore",description:"Select next before",exec:function(e){e.selectMore(-1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Left",mac:"Ctrl-Alt-Shift-Left"},scrollIntoView:"cursor",readOnly:!0},{name:"selectNextAfter",description:"Select next after",exec:function(e){e.selectMore(1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Right",mac:"Ctrl-Alt-Shift-Right"},scrollIntoView:"cursor",readOnly:!0},{name:"splitIntoLines",description:"Split into lines",exec:function(e){e.multiSelect.splitIntoLines()},bindKey:{win:"Ctrl-Alt-L",mac:"Ctrl-Alt-L"},readOnly:!0},{name:"alignCursors",description:"Align cursors",exec:function(e){e.alignCursors()},bindKey:{win:"Ctrl-Alt-A",mac:"Ctrl-Alt-A"},scrollIntoView:"cursor"},{name:"findAll",description:"Find all",exec:function(e){e.findAll()},bindKey:{win:"Ctrl-Alt-K",mac:"Ctrl-Alt-G"},scrollIntoView:"cursor",readOnly:!0}],t.multiSelectCommands=[{name:"singleSelection",description:"Single selection",bindKey:"esc",exec:function(e){e.exitMultiSelectMode()},scrollIntoView:"cursor",readOnly:!0,isAvailable:function(e){return e&&e.inMultiSelectMode}}];var n=e("../keyboard/hash_handler").HashHandler;t.keyboardHandler=new n(t.multiSelectCommands)}),ace.define("ace/multi_select",["require","exports","module","ace/range_list","ace/range","ace/selection","ace/mouse/multi_select_handler","ace/lib/event","ace/lib/lang","ace/commands/multi_select_commands","ace/search","ace/edit_session","ace/editor","ace/config"],function(e,t){function s(e,t,n){return c.$options.wrap=!0,c.$options.needle=t,c.$options.backwards=-1==n,c.find(e)}function b(e,t){return e.row==t.row&&e.column==t.column}function n(e){e.$multiselectOnSessionChange||(e.$onAddRange=e.$onAddRange.bind(e),e.$onRemoveRange=e.$onRemoveRange.bind(e),e.$onMultiSelect=e.$onMultiSelect.bind(e),e.$onSingleSelect=e.$onSingleSelect.bind(e),e.$multiselectOnSessionChange=t.onSessionChange.bind(e),e.$checkMultiselectChange=e.$checkMultiselectChange.bind(e),e.$multiselectOnSessionChange(e),e.on("changeSession",e.$multiselectOnSessionChange),e.on("mousedown",r),e.commands.addCommands(l.defaultCommands),i(e))}function i(n){function i(){o&&(n.renderer.setMouseCursor(""),o=!1)}if(n.textInput){var e=n.textInput.getElement(),o=!1;a.addListener(e,"keydown",function(e){var t=18==e.keyCode&&!(e.ctrlKey||e.shiftKey||e.metaKey);n.$blockSelectEnabled&&t?o||(n.renderer.setMouseCursor("crosshair"),o=!0):o&&i()}),a.addListener(e,"keyup",i),a.addListener(e,"blur",i)}}var o=e("./range_list").RangeList,w=e("./range").Range,f=e("./selection").Selection,r=e("./mouse/multi_select_handler").onMouseDown,a=e("./lib/event"),m=e("./lib/lang"),l=e("./commands/multi_select_commands");t.commands=l.defaultCommands.concat(l.multiSelectCommands);var c=new(e("./search").Search),h=e("./edit_session").EditSession;(function(){this.getSelectionMarkers=function(){return this.$selectionMarkers}}).call(h.prototype),function(){this.ranges=null,this.rangeList=null,this.addRange=function(e,t){if(e){if(!this.inMultiSelectMode&&0===this.rangeCount){var n=this.toOrientedRange();if(this.rangeList.add(n),this.rangeList.add(e),2!=this.rangeList.ranges.length)return this.rangeList.removeAll(),t||this.fromOrientedRange(e);this.rangeList.removeAll(),this.rangeList.add(n),this.$onAddRange(n)}e.cursor||(e.cursor=e.end);var i=this.rangeList.add(e);return this.$onAddRange(e),i.length&&this.$onRemoveRange(i),1<this.rangeCount&&!this.inMultiSelectMode&&(this._signal("multiSelect"),this.inMultiSelectMode=!0,this.session.$undoSelect=!1,this.rangeList.attach(this.session)),t||this.fromOrientedRange(e)}},this.toSingleRange=function(e){e=e||this.ranges[0];var t=this.rangeList.removeAll();t.length&&this.$onRemoveRange(t),e&&this.fromOrientedRange(e)},this.substractPoint=function(e){var t=this.rangeList.substractPoint(e);if(t)return this.$onRemoveRange(t),t[0]},this.mergeOverlappingRanges=function(){var e=this.rangeList.merge();e.length&&this.$onRemoveRange(e)},this.$onAddRange=function(e){this.rangeCount=this.rangeList.ranges.length,this.ranges.unshift(e),this._signal("addRange",{range:e})},this.$onRemoveRange=function(e){if(this.rangeCount=this.rangeList.ranges.length,1==this.rangeCount&&this.inMultiSelectMode){var t=this.rangeList.ranges.pop();e.push(t),this.rangeCount=0}for(var n=e.length;n--;){var i=this.ranges.indexOf(e[n]);this.ranges.splice(i,1)}this._signal("removeRange",{ranges:e}),0===this.rangeCount&&this.inMultiSelectMode&&(this.inMultiSelectMode=!1,this._signal("singleSelect"),this.session.$undoSelect=!0,this.rangeList.detach(this.session)),(t=t||this.ranges[0])&&!t.isEqual(this.getRange())&&this.fromOrientedRange(t)},this.$initRangeList=function(){this.rangeList||(this.rangeList=new o,this.ranges=[],this.rangeCount=0)},this.getAllRanges=function(){return this.rangeCount?this.rangeList.ranges.concat():[this.getRange()]},this.splitIntoLines=function(){if(1<this.rangeCount){var e=this.rangeList.ranges,t=e[e.length-1],n=w.fromPoints(e[0].start,t.end);this.toSingleRange(),this.setSelectionRange(n,t.cursor==t.start)}else{n=this.getRange();var i=this.isBackwards(),o=n.start.row,r=n.end.row;if(o==r){if(i)var s=n.end,a=n.start;else s=n.start,a=n.end;return this.addRange(w.fromPoints(a,a)),void this.addRange(w.fromPoints(s,s))}var l=[],c=this.getLineRange(o,!0);c.start.column=n.start.column,l.push(c);for(var h=o+1;h<r;h++)l.push(this.getLineRange(h,!0));(c=this.getLineRange(r,!0)).end.column=n.end.column,l.push(c),l.forEach(this.addRange,this)}},this.toggleBlockSelection=function(){if(1<this.rangeCount){var e=this.rangeList.ranges,t=e[e.length-1],n=w.fromPoints(e[0].start,t.end);this.toSingleRange(),this.setSelectionRange(n,t.cursor==t.start)}else{var i=this.session.documentToScreenPosition(this.cursor),o=this.session.documentToScreenPosition(this.anchor);this.rectangularRangeBlock(i,o).forEach(this.addRange,this)}},this.rectangularRangeBlock=function(e,t,n){var i=[],o=e.column<t.column;if(o)var r=e.column,s=t.column,a=e.offsetX,l=t.offsetX;else r=t.column,s=e.column,a=t.offsetX,l=e.offsetX;var c,h=e.row<t.row;if(h)var u=e.row,d=t.row;else u=t.row,d=e.row;r<0&&(r=0),u<0&&(u=0),u==d&&(n=!0);for(var g=u;g<=d;g++){var p=w.fromPoints(this.session.screenToDocumentPosition(g,r,a),this.session.screenToDocumentPosition(g,s,l));if(p.isEmpty()){if(c&&b(p.end,c))break;c=p.end}p.cursor=o?p.start:p.end,i.push(p)}if(h&&i.reverse(),!n){for(var f=i.length-1;i[f].isEmpty()&&0<f;)f--;if(0<f)for(var m=0;i[m].isEmpty();)m++;for(var v=f;m<=v;v--)i[v].isEmpty()&&i.splice(v,1)}return i}}.call(f.prototype);var u=e("./editor").Editor;(function(){this.updateSelectionMarkers=function(){this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.addSelectionMarker=function(e){e.cursor||(e.cursor=e.end);var t=this.getSelectionStyle();return e.marker=this.session.addMarker(e,"ace_selection",t),this.session.$selectionMarkers.push(e),this.session.selectionMarkerCount=this.session.$selectionMarkers.length,e},this.removeSelectionMarker=function(e){if(e.marker){this.session.removeMarker(e.marker);var t=this.session.$selectionMarkers.indexOf(e);-1!=t&&this.session.$selectionMarkers.splice(t,1),this.session.selectionMarkerCount=this.session.$selectionMarkers.length}},this.removeSelectionMarkers=function(e){for(var t=this.session.$selectionMarkers,n=e.length;n--;){var i=e[n];if(i.marker){this.session.removeMarker(i.marker);var o=t.indexOf(i);-1!=o&&t.splice(o,1)}}this.session.selectionMarkerCount=t.length},this.$onAddRange=function(e){this.addSelectionMarker(e.range),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onRemoveRange=function(e){this.removeSelectionMarkers(e.ranges),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onMultiSelect=function(){this.inMultiSelectMode||(this.inMultiSelectMode=!0,this.setStyle("ace_multiselect"),this.keyBinding.addKeyboardHandler(l.keyboardHandler),this.commands.setDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers())},this.$onSingleSelect=function(){this.session.multiSelect.inVirtualMode||(this.inMultiSelectMode=!1,this.unsetStyle("ace_multiselect"),this.keyBinding.removeKeyboardHandler(l.keyboardHandler),this.commands.removeDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers(),this._emit("changeSelection"))},this.$onMultiSelectExec=function(e){var t=e.command,n=e.editor;if(n.multiSelect){if(t.multiSelectAction)"forEach"==t.multiSelectAction?i=n.forEachSelection(t,e.args):"forEachLine"==t.multiSelectAction?i=n.forEachSelection(t,e.args,!0):"single"==t.multiSelectAction?(n.exitMultiSelectMode(),i=t.exec(n,e.args||{})):i=t.multiSelectAction(n,e.args||{});else{var i=t.exec(n,e.args||{});n.multiSelect.addRange(n.multiSelect.toOrientedRange()),n.multiSelect.mergeOverlappingRanges()}return i}},this.forEachSelection=function(e,t,n){if(!this.inVirtualSelectionMode){var i,o=n&&n.keepOrder,r=1==n||n&&n.$byLines,s=this.session,a=this.selection,l=a.rangeList,c=(o?a:l).ranges;if(!c.length)return e.exec?e.exec(this,t||{}):e(this,t||{});var h=a._eventRegistry;a._eventRegistry={};var u=new f(s);this.inVirtualSelectionMode=!0;for(var d=c.length;d--;){if(r)for(;0<d&&c[d].start.row==c[d-1].end.row;)d--;u.fromOrientedRange(c[d]),u.index=d,this.selection=s.selection=u;var g=e.exec?e.exec(this,t||{}):e(this,t||{});!i&&g!==undefined&&(i=g),u.toOrientedRange(c[d])}u.detach(),this.selection=s.selection=a,this.inVirtualSelectionMode=!1,a._eventRegistry=h,a.mergeOverlappingRanges(),a.ranges[0]&&a.fromOrientedRange(a.ranges[0]);var p=this.renderer.$scrollAnimation;return this.onCursorChange(),this.onSelectionChange(),p&&p.from==p.to&&this.renderer.animateScrolling(p.from),i}},this.exitMultiSelectMode=function(){this.inMultiSelectMode&&!this.inVirtualSelectionMode&&this.multiSelect.toSingleRange()},this.getSelectedText=function(){var e="";if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){for(var t=this.multiSelect.rangeList.ranges,n=[],i=0;i<t.length;i++)n.push(this.session.getTextRange(t[i]));var o=this.session.getDocument().getNewLineCharacter();(e=n.join(o)).length==(n.length-1)*o.length&&(e="")}else this.selection.isEmpty()||(e=this.session.getTextRange(this.getSelectionRange()));return e},this.$checkMultiselectChange=function(e,t){if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){var n=this.multiSelect.ranges[0];if(this.multiSelect.isEmpty()&&t==this.multiSelect.anchor)return;var i=t==this.multiSelect.anchor?n.cursor==n.start?n.end:n.start:n.cursor;i.row!=t.row||this.session.$clipPositionToDocument(i.row,i.column).column!=t.column?this.multiSelect.toSingleRange(this.multiSelect.toOrientedRange()):this.multiSelect.mergeOverlappingRanges()}},this.findAll=function(e,t,n){if((t=t||{}).needle=e||t.needle,t.needle==undefined){var i=this.selection.isEmpty()?this.selection.getWordRange():this.selection.getRange();t.needle=this.session.getTextRange(i)}this.$search.set(t);var o=this.$search.findAll(this.session);if(!o.length)return 0;var r=this.multiSelect;n||r.toSingleRange(o[0]);for(var s=o.length;s--;)r.addRange(o[s],!0);return i&&r.rangeList.rangeAtPoint(i.start)&&r.addRange(i,!0),o.length},this.selectMoreLines=function(e,t){var n=this.selection.toOrientedRange(),i=n.cursor==n.end,o=this.session.documentToScreenPosition(n.cursor);this.selection.$desiredColumn&&(o.column=this.selection.$desiredColumn);var r,s=this.session.screenToDocumentPosition(o.row+e,o.column);if(n.isEmpty())l=s;else var a=this.session.documentToScreenPosition(i?n.end:n.start),l=this.session.screenToDocumentPosition(a.row+e,a.column);i?(
12
- r=w.fromPoints(s,l)).cursor=r.start:(r=w.fromPoints(l,s)).cursor=r.end;if(r.desiredColumn=o.column,this.selection.inMultiSelectMode){if(t)var c=n.cursor}else this.selection.addRange(n);this.selection.addRange(r),c&&this.selection.substractPoint(c)},this.transposeSelections=function(e){for(var t=this.session,n=t.multiSelect,i=n.ranges,o=i.length;o--;){if((a=i[o]).isEmpty()){var r=t.getWordRange(a.start.row,a.start.column);a.start.row=r.start.row,a.start.column=r.start.column,a.end.row=r.end.row,a.end.column=r.end.column}}n.mergeOverlappingRanges();var s=[];for(o=i.length;o--;){var a=i[o];s.unshift(t.getTextRange(a))}e<0?s.unshift(s.pop()):s.push(s.shift());for(o=i.length;o--;){r=(a=i[o]).clone();t.replace(a,s[o]),a.start.row=r.start.row,a.start.column=r.start.column}n.fromOrientedRange(n.ranges[0])},this.selectMore=function(e,t,n){var i=this.session,o=i.multiSelect.toOrientedRange();if(!o.isEmpty()||((o=i.getWordRange(o.start.row,o.start.column)).cursor=-1==e?o.start:o.end,this.multiSelect.addRange(o),!n)){var r=s(i,i.getTextRange(o),e);r&&(r.cursor=-1==e?r.start:r.end,this.session.unfold(r),this.multiSelect.addRange(r),this.renderer.scrollCursorIntoView(null,.5)),t&&this.multiSelect.substractPoint(o.cursor)}},this.alignCursors=function(){var r=this.session,t=r.multiSelect,e=t.ranges,n=-1,i=e.filter(function(e){if(e.cursor.row==n)return!0;n=e.cursor.row});if(e.length&&i.length!=e.length-1){i.forEach(function(e){t.substractPoint(e.cursor)});var s=0,a=Infinity,l=e.map(function(e){var t=e.cursor,n=r.getLine(t.row).substr(t.column).search(/\S/g);return-1==n&&(n=0),t.column>s&&(s=t.column),n<a&&(a=n),n});e.forEach(function(e,t){var n=e.cursor,i=s-n.column,o=l[t]-a;o<i?r.insert(n,m.stringRepeat(" ",i-o)):r.remove(new w(n.row,n.column,n.row,n.column-i+o)),e.start.column=e.end.column=s,e.start.row=e.end.row=n.row,e.cursor=e.end}),t.fromOrientedRange(e[0]),this.renderer.updateCursor(),this.renderer.updateBackMarkers()}else{var o=this.selection.getRange(),c=o.start.row,h=o.end.row,u=c==h;if(u){for(var d,g=this.session.getLength();d=this.session.getLine(h),/[=:]/.test(d)&&++h<g;);for(;d=this.session.getLine(c),/[=:]/.test(d)&&0<--c;);c<0&&(c=0),g<=h&&(h=g-1)}var p=this.session.removeFullLines(c,h);p=this.$reAlignText(p,u),this.session.insert({row:c,column:0},p.join("\n")+"\n"),u||(o.start.column=0,o.end.column=p[p.length-1].length),this.selection.setRange(o)}},this.$reAlignText=function(e,t){function n(e){return m.stringRepeat(" ",e)}function i(e){return e[2]?n(s)+e[2]+n(a-e[2].length+l)+e[4].replace(/^([=:])\s+/,"$1 "):e[0]}function o(e){return e[2]?n(s+a-e[2].length)+e[2]+n(l)+e[4].replace(/^([=:])\s+/,"$1 "):e[0]}function r(e){return e[2]?n(s)+e[2]+n(l)+e[4].replace(/^([=:])\s+/,"$1 "):e[0]}var s,a,l,c=!0,h=!0;return e.map(function(e){var t=e.match(/(\s*)(.*?)(\s*)([=:].*)/);return t?(null==s?(s=t[1].length,a=t[2].length,l=t[3].length):(s+a+l!=t[1].length+t[2].length+t[3].length&&(h=!1),s!=t[1].length&&(c=!1),s>t[1].length&&(s=t[1].length),a<t[2].length&&(a=t[2].length),l>t[3].length&&(l=t[3].length)),t):[e]}).map(t?i:c?h?o:i:r)}}).call(u.prototype),t.onSessionChange=function(e){var t=e.session;t&&!t.multiSelect&&(t.$selectionMarkers=[],t.selection.$initRangeList(),t.multiSelect=t.selection),this.multiSelect=t&&t.multiSelect;var n=e.oldSession;n&&(n.multiSelect.off("addRange",this.$onAddRange),n.multiSelect.off("removeRange",this.$onRemoveRange),n.multiSelect.off("multiSelect",this.$onMultiSelect),n.multiSelect.off("singleSelect",this.$onSingleSelect),n.multiSelect.lead.off("change",this.$checkMultiselectChange),n.multiSelect.anchor.off("change",this.$checkMultiselectChange)),t&&(t.multiSelect.on("addRange",this.$onAddRange),t.multiSelect.on("removeRange",this.$onRemoveRange),t.multiSelect.on("multiSelect",this.$onMultiSelect),t.multiSelect.on("singleSelect",this.$onSingleSelect),t.multiSelect.lead.on("change",this.$checkMultiselectChange),t.multiSelect.anchor.on("change",this.$checkMultiselectChange)),t&&this.inMultiSelectMode!=t.selection.inMultiSelectMode&&(t.selection.inMultiSelectMode?this.$onMultiSelect():this.$onSingleSelect())},t.MultiSelect=n,e("./config").defineOptions(u.prototype,"editor",{enableMultiselect:{set:function(e){n(this),e?(this.on("changeSession",this.$multiselectOnSessionChange),this.on("mousedown",r)):(this.off("changeSession",this.$multiselectOnSessionChange),this.off("mousedown",r))},value:!0},enableBlockSelect:{set:function(e){this.$blockSelectEnabled=e},value:!0}})}),ace.define("ace/mode/folding/fold_mode",["require","exports","module","ace/range"],function(e,t){"use strict";var g=e("../../range").Range,n=t.FoldMode=function(){};(function(){this.foldingStartMarker=null,this.foldingStopMarker=null,this.getFoldWidget=function(e,t,n){var i=e.getLine(n);return this.foldingStartMarker.test(i)?"start":"markbeginend"==t&&this.foldingStopMarker&&this.foldingStopMarker.test(i)?"end":""},this.getFoldWidgetRange=function(){return null},this.indentationBlock=function(e,t,n){var i=/\S/,o=e.getLine(t),r=o.search(i);if(-1!=r){for(var s=n||o.length,a=e.getLength(),l=t,c=t;++t<a;){var h=e.getLine(t).search(i);if(-1!=h){if(h<=r){var u=e.getTokenAt(t,0);if(!u||"string"!==u.type)break}c=t}}if(l<c){var d=e.getLine(c).length;return new g(l,s,c,d)}}},this.openingBracketBlock=function(e,t,n,i,o){var r={row:n,column:i+1},s=e.$findClosingBracket(t,r,o);if(s){var a=e.foldWidgets[s.row];return null==a&&(a=e.getFoldWidget(s.row)),"start"==a&&s.row>r.row&&(s.row--,s.column=e.getLine(s.row).length),g.fromPoints(r,s)}},this.closingBracketBlock=function(e,t,n,i){var o={row:n,column:i},r=e.$findOpeningBracket(t,o);if(r)return r.column++,o.column--,g.fromPoints(r,o)}}).call(n.prototype)}),ace.define("ace/theme/textmate",["require","exports","module","ace/lib/dom"],function(e,t){"use strict";t.isDark=!1,t.cssClass="ace-tm",t.cssText='.ace-tm .ace_gutter {background: #f0f0f0;color: #333;}.ace-tm .ace_print-margin {width: 1px;background: #e8e8e8;}.ace-tm .ace_fold {background-color: #6B72E6;}.ace-tm {background-color: #FFFFFF;color: black;}.ace-tm .ace_cursor {color: black;}.ace-tm .ace_invisible {color: rgb(191, 191, 191);}.ace-tm .ace_storage,.ace-tm .ace_keyword {color: blue;}.ace-tm .ace_constant {color: rgb(197, 6, 11);}.ace-tm .ace_constant.ace_buildin {color: rgb(88, 72, 246);}.ace-tm .ace_constant.ace_language {color: rgb(88, 92, 246);}.ace-tm .ace_constant.ace_library {color: rgb(6, 150, 14);}.ace-tm .ace_invalid {background-color: rgba(255, 0, 0, 0.1);color: red;}.ace-tm .ace_support.ace_function {color: rgb(60, 76, 114);}.ace-tm .ace_support.ace_constant {color: rgb(6, 150, 14);}.ace-tm .ace_support.ace_type,.ace-tm .ace_support.ace_class {color: rgb(109, 121, 222);}.ace-tm .ace_keyword.ace_operator {color: rgb(104, 118, 135);}.ace-tm .ace_string {color: rgb(3, 106, 7);}.ace-tm .ace_comment {color: rgb(76, 136, 107);}.ace-tm .ace_comment.ace_doc {color: rgb(0, 102, 255);}.ace-tm .ace_comment.ace_doc.ace_tag {color: rgb(128, 159, 191);}.ace-tm .ace_constant.ace_numeric {color: rgb(0, 0, 205);}.ace-tm .ace_variable {color: rgb(49, 132, 149);}.ace-tm .ace_xml-pe {color: rgb(104, 104, 91);}.ace-tm .ace_entity.ace_name.ace_function {color: #0000A2;}.ace-tm .ace_heading {color: rgb(12, 7, 255);}.ace-tm .ace_list {color:rgb(185, 6, 144);}.ace-tm .ace_meta.ace_tag {color:rgb(0, 22, 142);}.ace-tm .ace_string.ace_regex {color: rgb(255, 0, 0)}.ace-tm .ace_marker-layer .ace_selection {background: rgb(181, 213, 255);}.ace-tm.ace_multiselect .ace_selection.ace_start {box-shadow: 0 0 3px 0px white;}.ace-tm .ace_marker-layer .ace_step {background: rgb(252, 255, 0);}.ace-tm .ace_marker-layer .ace_stack {background: rgb(164, 229, 101);}.ace-tm .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid rgb(192, 192, 192);}.ace-tm .ace_marker-layer .ace_active-line {background: rgba(0, 0, 0, 0.07);}.ace-tm .ace_gutter-active-line {background-color : #dcdcdc;}.ace-tm .ace_marker-layer .ace_selected-word {background: rgb(250, 250, 255);border: 1px solid rgb(200, 200, 250);}.ace-tm .ace_indent-guide {background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==") right repeat-y;}',t.$id="ace/theme/textmate",e("../lib/dom").importCssString(t.cssText,t.cssClass)}),ace.define("ace/line_widgets",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/range"],function(e,n){"use strict";function t(e){this.session=e,(this.session.widgetManager=this).session.getRowLength=this.getRowLength,this.session.$getWidgetScreenLength=this.$getWidgetScreenLength,this.updateOnChange=this.updateOnChange.bind(this),this.renderWidgets=this.renderWidgets.bind(this),this.measureWidgets=this.measureWidgets.bind(this),this.session._changedWidgets=[],this.$onChangeEditor=this.$onChangeEditor.bind(this),this.session.on("change",this.updateOnChange),this.session.on("changeFold",this.updateOnFold),this.session.on("changeEditor",this.$onChangeEditor)}e("./lib/oop");var r=e("./lib/dom");e("./range").Range;(function(){this.getRowLength=function(e){var t;return t=this.lineWidgets&&this.lineWidgets[e]&&this.lineWidgets[e].rowCount||0,this.$useWrapMode&&this.$wrapData[e]?this.$wrapData[e].length+1+t:1+t},this.$getWidgetScreenLength=function(){var t=0;return this.lineWidgets.forEach(function(e){e&&e.rowCount&&!e.hidden&&(t+=e.rowCount)}),t},this.$onChangeEditor=function(e){this.attach(e.editor)},this.attach=function(e){e&&e.widgetManager&&e.widgetManager!=this&&e.widgetManager.detach(),this.editor!=e&&(this.detach(),(this.editor=e)&&(e.widgetManager=this,e.renderer.on("beforeRender",this.measureWidgets),e.renderer.on("afterRender",this.renderWidgets)))},this.detach=function(){var e=this.editor;if(e){this.editor=null,e.widgetManager=null,e.renderer.off("beforeRender",this.measureWidgets),e.renderer.off("afterRender",this.renderWidgets);var t=this.session.lineWidgets;t&&t.forEach(function(e){e&&e.el&&e.el.parentNode&&(e._inDocument=!1,e.el.parentNode.removeChild(e.el))})}},this.updateOnFold=function(e,t){var n=t.lineWidgets;if(n&&e.action){for(var i=e.data,o=i.start.row,r=i.end.row,s="add"==e.action,a=o+1;a<r;a++)n[a]&&(n[a].hidden=s);n[r]&&(s?n[o]?n[r].hidden=s:n[o]=n[r]:(n[o]==n[r]&&(n[o]=undefined),n[r].hidden=s))}},this.updateOnChange=function(e){var t=this.session.lineWidgets;if(t){var n=e.start.row,i=e.end.row-n;if(0!==i)if("remove"==e.action){t.splice(n+1,i).forEach(function(e){e&&this.removeLineWidget(e)},this),this.$updateRows()}else{var o=new Array(i);o.unshift(n,0),t.splice.apply(t,o),this.$updateRows()}}},this.$updateRows=function(){var e=this.session.lineWidgets;if(e){var n=!0;e.forEach(function(e,t){if(e)for(n=!1,e.row=t;e.$oldWidget;)e.$oldWidget.row=t,e=e.$oldWidget}),n&&(this.session.lineWidgets=null)}},this.addLineWidget=function(e){this.session.lineWidgets||(this.session.lineWidgets=new Array(this.session.getLength()));var t=this.session.lineWidgets[e.row];t&&((e.$oldWidget=t).el&&t.el.parentNode&&(t.el.parentNode.removeChild(t.el),t._inDocument=!1)),(this.session.lineWidgets[e.row]=e).session=this.session;var n=this.editor.renderer;e.html&&!e.el&&(e.el=r.createElement("div"),e.el.innerHTML=e.html),e.el&&(r.addCssClass(e.el,"ace_lineWidgetContainer"),e.el.style.position="absolute",e.el.style.zIndex=5,n.container.appendChild(e.el),e._inDocument=!0),e.coverGutter||(e.el.style.zIndex=3),null==e.pixelHeight&&(e.pixelHeight=e.el.offsetHeight),null==e.rowCount&&(e.rowCount=e.pixelHeight/n.layerConfig.lineHeight);var i=this.session.getFoldAt(e.row,0);if(e.$fold=i){var o=this.session.lineWidgets;e.row!=i.end.row||o[i.start.row]?e.hidden=!0:o[i.start.row]=e}return this.session._emit("changeFold",{data:{start:{row:e.row}}}),this.$updateRows(),this.renderWidgets(null,n),this.onWidgetChanged(e),e},this.removeLineWidget=function(e){if(e._inDocument=!1,e.session=null,e.el&&e.el.parentNode&&e.el.parentNode.removeChild(e.el),e.editor&&e.editor.destroy)try{e.editor.destroy()}catch(n){}if(this.session.lineWidgets){var t=this.session.lineWidgets[e.row];if(t==e)this.session.lineWidgets[e.row]=e.$oldWidget,e.$oldWidget&&this.onWidgetChanged(e.$oldWidget);else for(;t;){if(t.$oldWidget==e){t.$oldWidget=e.$oldWidget;break}t=t.$oldWidget}}this.session._emit("changeFold",{data:{start:{row:e.row}}}),this.$updateRows()},this.getWidgetsAtRow=function(e){for(var t=this.session.lineWidgets,n=t&&t[e],i=[];n;)i.push(n),n=n.$oldWidget;return i},this.onWidgetChanged=function(e){this.session._changedWidgets.push(e),this.editor&&this.editor.renderer.updateFull()},this.measureWidgets=function(e,t){var n=this.session._changedWidgets,i=t.layerConfig;if(n&&n.length){for(var o=Infinity,r=0;r<n.length;r++){var s=n[r];if(s&&s.el&&s.session==this.session){if(!s._inDocument){if(this.session.lineWidgets[s.row]!=s)continue;s._inDocument=!0,t.container.appendChild(s.el)}s.h=s.el.offsetHeight,s.fixedWidth||(s.w=s.el.offsetWidth,s.screenWidth=Math.ceil(s.w/i.characterWidth));var a=s.h/i.lineHeight;s.coverLine&&((a-=this.session.getRowLineCount(s.row))<0&&(a=0)),s.rowCount!=a&&(s.rowCount=a,s.row<o&&(o=s.row))}}o!=Infinity&&(this.session._emit("changeFold",{data:{start:{row:o}}}),this.session.lineWidgetWidth=null),this.session._changedWidgets=[]}},this.renderWidgets=function(e,t){var n=t.layerConfig,i=this.session.lineWidgets;if(i){for(var o=Math.min(this.firstRow,n.firstRow),r=Math.max(this.lastRow,n.lastRow,i.length);0<o&&!i[o];)o--;this.firstRow=n.firstRow,this.lastRow=n.lastRow,t.$cursorLayer.config=n;for(var s=o;s<=r;s++){var a=i[s];if(a&&a.el)if(a.hidden)a.el.style.top=-100-(a.pixelHeight||0)+"px";else{a._inDocument||(a._inDocument=!0,t.container.appendChild(a.el));var l=t.$cursorLayer.getPixelPosition({row:s,column:0},!0).top;a.coverLine||(l+=n.lineHeight*this.session.getRowLineCount(a.row)),a.el.style.top=l-n.offset+"px";var c=a.coverGutter?0:t.gutterWidth;a.fixedWidth||(c-=t.scrollLeft),a.el.style.left=c+"px",a.fullWidth&&a.screenWidth&&(a.el.style.minWidth=n.width+2*n.padding+"px"),a.fixedWidth?a.el.style.right=t.scrollBar.getWidth()+"px":a.el.style.right=""}}}}}).call(t.prototype),n.LineWidgets=t}),ace.define("ace/ext/error_marker",["require","exports","module","ace/line_widgets","ace/lib/dom","ace/range"],function(e,t){"use strict";function a(e,t,n){for(var i=0,o=e.length-1;i<=o;){var r=i+o>>1,s=n(t,e[r]);if(0<s)i=r+1;else{if(!(s<0))return r;o=r-1}}return-(i+1)}function p(e,t,n){var i=e.getAnnotations().sort(l.comparePoints);if(i.length){var o=a(i,{row:t,column:-1},l.comparePoints);o<0&&(o=-o-1),o>=i.length?o=0<n?0:i.length-1:0===o&&n<0&&(o=i.length-1);var r=i[o];if(r&&n){if(r.row===t){for(;(r=i[o+=n])&&r.row===t;);if(!r)return i.slice()}var s=[];for(t=r.row;s[n<0?"unshift":"push"](r),(r=i[o+=n])&&r.row==t;);return s.length&&s}}}var f=e("../line_widgets").LineWidgets,m=e("../lib/dom"),l=e("../range").Range;t.showErrorMarker=function(e,t){var n=e.session;n.widgetManager||(n.widgetManager=new f(n),n.widgetManager.attach(e));var i=e.getCursorPosition(),o=i.row,r=n.widgetManager.getWidgetsAtRow(o).filter(function(e){return"errorMarker"==e.type})[0];r?r.destroy():o-=t;var s,a=p(n,o,t);if(a){var l=a[0];i.column=(l.pos&&"number"!=typeof l.column?l.pos.sc:l.column)||0,i.row=l.row,s=e.renderer.$gutterLayer.$annotations[i.row]}else{if(r)return;s={text:["Looks good!"],className:"ace_ok"}}e.session.unfold(i.row),e.selection.moveToPosition(i);var c={row:i.row,fixedWidth:!0,coverGutter:!0,el:m.createElement("div"),type:"errorMarker"},h=c.el.appendChild(m.createElement("div")),u=c.el.appendChild(m.createElement("div"));u.className="error_widget_arrow "+s.className;var d=e.renderer.$cursorLayer.getPixelPosition(i).left;u.style.left=d+e.renderer.gutterWidth-5+"px",c.el.className="error_widget_wrapper",h.className="error_widget "+s.className,h.innerHTML=s.text.join("<br>"),h.appendChild(m.createElement("div"));var g=function(e,t,n){if(0===t&&("esc"===n||"return"===n))return c.destroy(),{command:"null"}};c.destroy=function(){e.$mouseHandler.isMousePressed||(e.keyBinding.removeKeyboardHandler(g),n.widgetManager.removeLineWidget(c),e.off("changeSelection",c.destroy),e.off("changeSession",c.destroy),e.off("mouseup",c.destroy),e.off("change",c.destroy))},e.keyBinding.addKeyboardHandler(g),e.on("changeSelection",c.destroy),e.on("changeSession",c.destroy),e.on("mouseup",c.destroy),e.on("change",c.destroy),e.session.widgetManager.addLineWidget(c),c.el.onmousedown=e.focus.bind(e),e.renderer.scrollCursorIntoView(null,.5,{bottom:c.el.offsetHeight})},m.importCssString(" .error_widget_wrapper { background: inherit; color: inherit; border:none } .error_widget { border-top: solid 2px; border-bottom: solid 2px; margin: 5px 0; padding: 10px 40px; white-space: pre-wrap; } .error_widget.ace_error, .error_widget_arrow.ace_error{ border-color: #ff5a5a } .error_widget.ace_warning, .error_widget_arrow.ace_warning{ border-color: #F1D817 } .error_widget.ace_info, .error_widget_arrow.ace_info{ border-color: #5a5a5a } .error_widget.ace_ok, .error_widget_arrow.ace_ok{ border-color: #5aaa5a } .error_widget_arrow { position: absolute; border: solid 5px; border-top-color: transparent!important; border-right-color: transparent!important; border-left-color: transparent!important; top: -5px; }","")}),ace.define("ace/ace",["require","exports","module","ace/lib/fixoldbrowsers","ace/lib/dom","ace/lib/event","ace/range","ace/editor","ace/edit_session","ace/undomanager","ace/virtual_renderer","ace/worker/worker_client","ace/keyboard/hash_handler","ace/placeholder","ace/multi_select","ace/mode/folding/fold_mode","ace/theme/textmate","ace/ext/error_marker","ace/config"],function(e,l){"use strict";e("./lib/fixoldbrowsers");var c=e("./lib/dom"),h=e("./lib/event"),t=e("./range").Range,u=e("./editor").Editor,i=e("./edit_session").EditSession,o=e("./undomanager").UndoManager,d=e("./virtual_renderer").VirtualRenderer;e("./worker/worker_client"),e("./keyboard/hash_handler"),e("./placeholder"),e("./multi_select"),e("./mode/folding/fold_mode"),e("./theme/textmate"),e("./ext/error_marker"),l.config=e("./config"),l.require=e,"function"==typeof define&&(l.define=define),l.edit=function(e,t){if("string"==typeof e){var n=e;if(!(e=document.getElementById(n)))throw new Error("ace.edit can't find div #"+n)}if(e&&e.env&&e.env.editor instanceof u)return e.env.editor;var i="";if(e&&/input|textarea/i.test(e.tagName)){var o=e;i=o.value,e=c.createElement("pre"),o.parentNode.replaceChild(e,o)}else e&&(i=e.textContent,e.innerHTML="");var r=l.createEditSession(i),s=new u(new d(e),r,t),a={document:r,editor:s,onResize:s.resize.bind(s,null)};return o&&(a.textarea=o),h.addListener(window,"resize",a.onResize),s.on("destroy",function(){h.removeListener(window,"resize",a.onResize),a.editor.container.env=null}),s.container.env=s.env=a,s},l.createEditSession=function(e,t){var n=new i(e,t);return n.setUndoManager(new o),n},l.Range=t,l.Editor=u,l.EditSession=i,l.UndoManager=o,l.VirtualRenderer=d,l.version=l.config.version}),ace.require(["ace/ace"],function(e){for(var t in e&&(e.config.init(!0),e.define=ace.define),window.ace||(window.ace=e),e)e.hasOwnProperty(t)&&(window.ace[t]=e[t]);window.ace["default"]=window.ace,"object"==typeof module&&"object"==typeof exports&&module&&(module.exports=window.ace)}),ace.define("ace/mode/doc_comment_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,t){"use strict";var n=e("../lib/oop"),i=e("./text_highlight_rules").TextHighlightRules,o=function(){this.$rules={start:[{token:"comment.doc.tag",regex:"@[\\w\\d_]+"},o.getTagRule(),{defaultToken:"comment.doc",caseInsensitive:!0}]}};n.inherits(o,i),o.getTagRule=function(){return{token:"comment.doc.tag.storage.type",regex:"\\b(?:TODO|FIXME|XXX|HACK)\\b"}},o.getStartRule=function(e){return{token:"comment.doc",regex:"\\/\\*(?=\\*)",next:e}},o.getEndRule=function(e){return{token:"comment.doc",regex:"\\*\\/",next:e}},t.DocCommentHighlightRules=o}),ace.define("ace/mode/javascript_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/doc_comment_highlight_rules","ace/mode/text_highlight_rules"],function(e,t){"use strict";function o(){var e=a.replace("\\d","\\d\\-"),t={onMatch:function(e,t,n){var i="/"==e.charAt(1)?2:1;return 1==i?(t!=this.nextState?n.unshift(this.next,this.nextState,0):n.unshift(this.next),n[2]++):2==i&&t==this.nextState&&(n[1]--,(!n[1]||n[1]<0)&&(n.shift(),n.shift())),[{type:"meta.tag.punctuation."+(1==i?"":"end-")+"tag-open.xml",value:e.slice(0,i)},{type:"meta.tag.tag-name.xml",value:e.substr(i)}]},regex:"</?"+e,next:"jsxAttributes",nextState:"jsx"};this.$rules.start.unshift(t);var n={regex:"{",token:"paren.quasi.start",push:"start"};this.$rules.jsx=[n,t,{include:"reference"},{defaultToken:"string"}],this.$rules.jsxAttributes=[{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",onMatch:function(e,t,n){return t==n[0]&&n.shift(),2==e.length&&(n[0]==this.nextState&&n[1]--,(!n[1]||n[1]<0)&&n.splice(0,2)),this.next=n[0]||"start",[{type:this.token,value:e}]},nextState:"jsx"},n,r("jsxAttributes"),{token:"entity.other.attribute-name.xml",regex:e},{token:"keyword.operator.attribute-equals.xml",regex:"="},{token:"text.tag-whitespace.xml",regex:"\\s+"},{token:"string.attribute-value.xml",regex:"'",stateName:"jsx_attr_q",push:[{token:"string.attribute-value.xml",regex:"'",next:"pop"},{include:"reference"},{defaultToken:"string.attribute-value.xml"}]},{token:"string.attribute-value.xml",regex:'"',stateName:"jsx_attr_qq",push:[{token:"string.attribute-value.xml",regex:'"',next:"pop"},{include:"reference"},{defaultToken:"string.attribute-value.xml"}]},t],this.$rules.reference=[{token:"constant.language.escape.reference.xml",regex:"(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"}]}function r(e){return[{token:"comment",regex:/\/\*/,next:[s.getTagRule(),{token:"comment",regex:"\\*\\/",next:e||"pop"},{defaultToken:"comment",caseInsensitive:!0}]},{token:"comment",regex:"\\/\\/",next:[s.getTagRule(),{token:"comment",regex:"$|^",next:e||"pop"},{defaultToken:"comment",caseInsensitive:!0}]}]}var n=e("../lib/oop"),s=e("./doc_comment_highlight_rules").DocCommentHighlightRules,i=e("./text_highlight_rules").TextHighlightRules,a="[a-zA-Z\\$_\xa1-\uffff][a-zA-Z\\d\\$_\xa1-\uffff]*",l=function(e){var t=this.createKeywordMapper({"variable.language":"Array|Boolean|Date|Function|Iterator|Number|Object|RegExp|String|Proxy|Namespace|QName|XML|XMLList|ArrayBuffer|Float32Array|Float64Array|Int16Array|Int32Array|Int8Array|Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray|Error|EvalError|InternalError|RangeError|ReferenceError|StopIteration|SyntaxError|TypeError|URIError|decodeURI|decodeURIComponent|encodeURI|encodeURIComponent|eval|isFinite|isNaN|parseFloat|parseInt|JSON|Math|this|arguments|prototype|window|document",keyword:"const|yield|import|get|set|async|await|break|case|catch|continue|default|delete|do|else|finally|for|function|if|in|of|instanceof|new|return|switch|throw|try|typeof|let|var|while|with|debugger|__parent__|__count__|escape|unescape|with|__proto__|class|enum|extends|super|export|implements|private|public|interface|package|protected|static","storage.type":"const|let|var|function","constant.language":"null|Infinity|NaN|undefined","support.function":"alert","constant.language.boolean":"true|false"},"identifier"),n="case|do|else|finally|in|instanceof|return|throw|try|typeof|yield|void",i="\\\\(?:x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|u{[0-9a-fA-F]{1,6}}|[0-2][0-7]{0,2}|3[0-7][0-7]?|[4-7][0-7]?|.)";this.$rules={no_regex:[s.getStartRule("doc-start"),r("no_regex"),{token:"string",regex:"'(?=.)",next:"qstring"},{token:"string",regex:'"(?=.)',next:"qqstring"},{token:"constant.numeric",regex:/0(?:[xX][0-9a-fA-F]+|[oO][0-7]+|[bB][01]+)\b/},{token:"constant.numeric",regex:/(?:\d\d*(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+\b)?/},{token:["storage.type","punctuation.operator","support.function","punctuation.operator","entity.name.function","text","keyword.operator"],regex:"("+a+")(\\.)(prototype)(\\.)("+a+")(\\s*)(=)",next:"function_arguments"},{token:["storage.type","punctuation.operator","entity.name.function","text","keyword.operator","text","storage.type","text","paren.lparen"],regex:"("+a+")(\\.)("+a+")(\\s*)(=)(\\s*)(function)(\\s*)(\\()",next:"function_arguments"},{token:["entity.name.function","text","keyword.operator","text","storage.type","text","paren.lparen"],regex:"("+a+")(\\s*)(=)(\\s*)(function)(\\s*)(\\()",next:"function_arguments"},{token:["storage.type","punctuation.operator","entity.name.function","text","keyword.operator","text","storage.type","text","entity.name.function","text","paren.lparen"],regex:"("+a+")(\\.)("+a+")(\\s*)(=)(\\s*)(function)(\\s+)(\\w+)(\\s*)(\\()",next:"function_arguments"},{token:["storage.type","text","entity.name.function","text","paren.lparen"],regex:"(function)(\\s+)("+a+")(\\s*)(\\()",next:"function_arguments"},{token:["entity.name.function","text","punctuation.operator","text","storage.type","text","paren.lparen"],regex:"("+a+")(\\s*)(:)(\\s*)(function)(\\s*)(\\()",next:"function_arguments"},{token:["text","text","storage.type","text","paren.lparen"],regex:"(:)(\\s*)(function)(\\s*)(\\()",next:"function_arguments"},{token:"keyword",regex:"from(?=\\s*('|\"))"},{token:"keyword",regex:"(?:"+n+")\\b",next:"start"},{token:["support.constant"],regex:/that\b/},{token:["storage.type","punctuation.operator","support.function.firebug"],regex:/(console)(\.)(warn|info|log|error|time|trace|timeEnd|assert)\b/},{token:t,regex:a},{token:"punctuation.operator",regex:/[.](?![.])/,next:"property"},{token:"storage.type",regex:/=>/,next:"start"},{token:"keyword.operator",regex:/--|\+\+|\.{3}|===|==|=|!=|!==|<+=?|>+=?|!|&&|\|\||\?:|[!$%&*+\-~\/^]=?/,next:"start"},{token:"punctuation.operator",regex:/[?:,;.]/,next:"start"},{token:"paren.lparen",regex:/[\[({]/,next:"start"},{token:"paren.rparen",regex:/[\])}]/},{token:"comment",regex:/^#!.*$/}],property:[{token:"text",regex:"\\s+"},{token:["storage.type","punctuation.operator","entity.name.function","text","keyword.operator","text","storage.type","text","entity.name.function","text","paren.lparen"],regex:"("+a+")(\\.)("+a+")(\\s*)(=)(\\s*)(function)(?:(\\s+)(\\w+))?(\\s*)(\\()",next:"function_arguments"},{token:"punctuation.operator",regex:/[.](?![.])/},{token:"support.function",regex:/(s(?:h(?:ift|ow(?:Mod(?:elessDialog|alDialog)|Help))|croll(?:X|By(?:Pages|Lines)?|Y|To)?|t(?:op|rike)|i(?:n|zeToContent|debar|gnText)|ort|u(?:p|b(?:str(?:ing)?)?)|pli(?:ce|t)|e(?:nd|t(?:Re(?:sizable|questHeader)|M(?:i(?:nutes|lliseconds)|onth)|Seconds|Ho(?:tKeys|urs)|Year|Cursor|Time(?:out)?|Interval|ZOptions|Date|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Date|FullYear)|FullYear|Active)|arch)|qrt|lice|avePreferences|mall)|h(?:ome|andleEvent)|navigate|c(?:har(?:CodeAt|At)|o(?:s|n(?:cat|textual|firm)|mpile)|eil|lear(?:Timeout|Interval)?|a(?:ptureEvents|ll)|reate(?:StyleSheet|Popup|EventObject))|t(?:o(?:GMTString|S(?:tring|ource)|U(?:TCString|pperCase)|Lo(?:caleString|werCase))|est|a(?:n|int(?:Enabled)?))|i(?:s(?:NaN|Finite)|ndexOf|talics)|d(?:isableExternalCapture|ump|etachEvent)|u(?:n(?:shift|taint|escape|watch)|pdateCommands)|j(?:oin|avaEnabled)|p(?:o(?:p|w)|ush|lugins.refresh|a(?:ddings|rse(?:Int|Float)?)|r(?:int|ompt|eference))|e(?:scape|nableExternalCapture|val|lementFromPoint|x(?:p|ec(?:Script|Command)?))|valueOf|UTC|queryCommand(?:State|Indeterm|Enabled|Value)|f(?:i(?:nd|le(?:ModifiedDate|Size|CreatedDate|UpdatedDate)|xed)|o(?:nt(?:size|color)|rward)|loor|romCharCode)|watch|l(?:ink|o(?:ad|g)|astIndexOf)|a(?:sin|nchor|cos|t(?:tachEvent|ob|an(?:2)?)|pply|lert|b(?:s|ort))|r(?:ou(?:nd|teEvents)|e(?:size(?:By|To)|calc|turnValue|place|verse|l(?:oad|ease(?:Capture|Events)))|andom)|g(?:o|et(?:ResponseHeader|M(?:i(?:nutes|lliseconds)|onth)|Se(?:conds|lection)|Hours|Year|Time(?:zoneOffset)?|Da(?:y|te)|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Da(?:y|te)|FullYear)|FullYear|A(?:ttention|llResponseHeaders)))|m(?:in|ove(?:B(?:y|elow)|To(?:Absolute)?|Above)|ergeAttributes|a(?:tch|rgins|x))|b(?:toa|ig|o(?:ld|rderWidths)|link|ack))\b(?=\()/},{token:"support.function.dom",regex:/(s(?:ub(?:stringData|mit)|plitText|e(?:t(?:NamedItem|Attribute(?:Node)?)|lect))|has(?:ChildNodes|Feature)|namedItem|c(?:l(?:ick|o(?:se|neNode))|reate(?:C(?:omment|DATASection|aption)|T(?:Head|extNode|Foot)|DocumentFragment|ProcessingInstruction|E(?:ntityReference|lement)|Attribute))|tabIndex|i(?:nsert(?:Row|Before|Cell|Data)|tem)|open|delete(?:Row|C(?:ell|aption)|T(?:Head|Foot)|Data)|focus|write(?:ln)?|a(?:dd|ppend(?:Child|Data))|re(?:set|place(?:Child|Data)|move(?:NamedItem|Child|Attribute(?:Node)?)?)|get(?:NamedItem|Element(?:sBy(?:Name|TagName|ClassName)|ById)|Attribute(?:Node)?)|blur)\b(?=\()/},{token:"support.constant",regex:/(s(?:ystemLanguage|cr(?:ipts|ollbars|een(?:X|Y|Top|Left))|t(?:yle(?:Sheets)?|atus(?:Text|bar)?)|ibling(?:Below|Above)|ource|uffixes|e(?:curity(?:Policy)?|l(?:ection|f)))|h(?:istory|ost(?:name)?|as(?:h|Focus))|y|X(?:MLDocument|SLDocument)|n(?:ext|ame(?:space(?:s|URI)|Prop))|M(?:IN_VALUE|AX_VALUE)|c(?:haracterSet|o(?:n(?:structor|trollers)|okieEnabled|lorDepth|mp(?:onents|lete))|urrent|puClass|l(?:i(?:p(?:boardData)?|entInformation)|osed|asses)|alle(?:e|r)|rypto)|t(?:o(?:olbar|p)|ext(?:Transform|Indent|Decoration|Align)|ags)|SQRT(?:1_2|2)|i(?:n(?:ner(?:Height|Width)|put)|ds|gnoreCase)|zIndex|o(?:scpu|n(?:readystatechange|Line)|uter(?:Height|Width)|p(?:sProfile|ener)|ffscreenBuffering)|NEGATIVE_INFINITY|d(?:i(?:splay|alog(?:Height|Top|Width|Left|Arguments)|rectories)|e(?:scription|fault(?:Status|Ch(?:ecked|arset)|View)))|u(?:ser(?:Profile|Language|Agent)|n(?:iqueID|defined)|pdateInterval)|_content|p(?:ixelDepth|ort|ersonalbar|kcs11|l(?:ugins|atform)|a(?:thname|dding(?:Right|Bottom|Top|Left)|rent(?:Window|Layer)?|ge(?:X(?:Offset)?|Y(?:Offset)?))|r(?:o(?:to(?:col|type)|duct(?:Sub)?|mpter)|e(?:vious|fix)))|e(?:n(?:coding|abledPlugin)|x(?:ternal|pando)|mbeds)|v(?:isibility|endor(?:Sub)?|Linkcolor)|URLUnencoded|P(?:I|OSITIVE_INFINITY)|f(?:ilename|o(?:nt(?:Size|Family|Weight)|rmName)|rame(?:s|Element)|gColor)|E|whiteSpace|l(?:i(?:stStyleType|n(?:eHeight|kColor))|o(?:ca(?:tion(?:bar)?|lName)|wsrc)|e(?:ngth|ft(?:Context)?)|a(?:st(?:M(?:odified|atch)|Index|Paren)|yer(?:s|X)|nguage))|a(?:pp(?:MinorVersion|Name|Co(?:deName|re)|Version)|vail(?:Height|Top|Width|Left)|ll|r(?:ity|guments)|Linkcolor|bove)|r(?:ight(?:Context)?|e(?:sponse(?:XML|Text)|adyState))|global|x|m(?:imeTypes|ultiline|enubar|argin(?:Right|Bottom|Top|Left))|L(?:N(?:10|2)|OG(?:10E|2E))|b(?:o(?:ttom|rder(?:Width|RightWidth|BottomWidth|Style|Color|TopWidth|LeftWidth))|ufferDepth|elow|ackground(?:Color|Image)))\b/},{token:"identifier",regex:a},{regex:"",token:"empty",next:"no_regex"}],start:[s.getStartRule("doc-start"),r("start"),{token:"string.regexp",regex:"\\/",next:"regex"},{token:"text",regex:"\\s+|^$",next:"start"},{token:"empty",regex:"",next:"no_regex"}],regex:[{token:"regexp.keyword.operator",regex:"\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"},{token:"string.regexp",regex:"/[sxngimy]*",next:"no_regex"},{token:"invalid",regex:/\{\d+\b,?\d*\}[+*]|[+*$^?][+*]|[$^][?]|\?{3,}/},{token:"constant.language.escape",regex:/\(\?[:=!]|\)|\{\d+\b,?\d*\}|[+*]\?|[()$^+*?.]/},{token:"constant.language.delimiter",regex:/\|/},{token:"constant.language.escape",regex:/\[\^?/,next:"regex_character_class"},{token:"empty",regex:"$",next:"no_regex"},{defaultToken:"string.regexp"}],regex_character_class:[{token:"regexp.charclass.keyword.operator",regex:"\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"},{token:"constant.language.escape",regex:"]",next:"regex"},{token:"constant.language.escape",regex:"-"},{token:"empty",regex:"$",next:"no_regex"},{defaultToken:"string.regexp.charachterclass"}],function_arguments:[{token:"variable.parameter",regex:a},{token:"punctuation.operator",regex:"[, ]+"},{token:"punctuation.operator",regex:"$"},{token:"empty",regex:"",next:"no_regex"}],qqstring:[{token:"constant.language.escape",regex:i},{token:"string",regex:"\\\\$",consumeLineEnd:!0},{token:"string",regex:'"|$',next:"no_regex"},{defaultToken:"string"}],qstring:[{token:"constant.language.escape",regex:i},{token:"string",regex:"\\\\$",consumeLineEnd:!0},{token:"string",regex:"'|$",next:"no_regex"},{defaultToken:"string"}]},e&&e.noES6||(this.$rules.no_regex.unshift({regex:"[{}]",onMatch:function(e,t,n){if(this.next="{"==e?this.nextState:"","{"==e&&n.length)n.unshift("start",t);else if("}"==e&&n.length&&(n.shift(),this.next=n.shift(),-1!=this.next.indexOf("string")||-1!=this.next.indexOf("jsx")))return"paren.quasi.end";return"{"==e?"paren.lparen":"paren.rparen"},nextState:"start"},{token:"string.quasi.start",regex:/`/,push:[{
13
- token:"constant.language.escape",regex:i},{token:"paren.quasi.start",regex:/\${/,push:"start"},{token:"string.quasi.end",regex:/`/,next:"pop"},{defaultToken:"string.quasi"}]}),(!e||0!=e.jsx)&&o.call(this)),this.embedRules(s,"doc-",[s.getEndRule("no_regex")]),this.normalizeRules()};n.inherits(l,i),t.JavaScriptHighlightRules=l}),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(e,t){"use strict";var s=e("../range").Range,n=function(){};(function(){this.checkOutdent=function(e,t){return!!/^\s+$/.test(e)&&/^\s*\}/.test(t)},this.autoOutdent=function(e,t){var n=e.getLine(t).match(/^(\s*\})/);if(!n)return 0;var i=n[1].length,o=e.findMatchingBracket({row:t,column:i});if(!o||o.row==t)return 0;var r=this.$getIndent(e.getLine(o.row));e.replace(new s(t,0,t,i-1),r)},this.$getIndent=function(e){return e.match(/^\s*/)[0]}}).call(n.prototype),t.MatchingBraceOutdent=n}),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(e,t){"use strict";var n=e("../../lib/oop"),h=e("../../range").Range,i=e("./fold_mode").FoldMode,o=t.FoldMode=function(e){e&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+e.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+e.end)))};n.inherits(o,i),function(){this.foldingStartMarker=/([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(e,t,n){var i=e.getLine(n);if(this.singleLineBlockCommentRe.test(i)&&!this.startRegionRe.test(i)&&!this.tripleStarBlockCommentRe.test(i))return"";var o=this._getFoldWidgetBase(e,t,n);return!o&&this.startRegionRe.test(i)?"start":o},this.getFoldWidgetRange=function(e,t,n,i){var o,r=e.getLine(n);if(this.startRegionRe.test(r))return this.getCommentRegionBlock(e,r,n);if(o=r.match(this.foldingStartMarker)){var s=o.index;if(o[1])return this.openingBracketBlock(e,o[1],n,s);var a=e.getCommentFoldRange(n,s+o[0].length,1);return a&&!a.isMultiLine()&&(i?a=this.getSectionRange(e,n):"all"!=t&&(a=null)),a}if("markbegin"!==t&&(o=r.match(this.foldingStopMarker))){s=o.index+o[0].length;return o[1]?this.closingBracketBlock(e,o[1],n,s):e.getCommentFoldRange(n,s,-1)}},this.getSectionRange=function(e,t){for(var n=e.getLine(t),i=n.search(/\S/),o=t,r=n.length,s=t+=1,a=e.getLength();++t<a;){var l=(n=e.getLine(t)).search(/\S/);if(-1!==l){if(l<i)break;var c=this.getFoldWidgetRange(e,"all",t);if(c){if(c.start.row<=o)break;if(c.isMultiLine())t=c.end.row;else if(i==l)break}s=t}}return new h(o,r,s,e.getLine(s).length)},this.getCommentRegionBlock=function(e,t,n){for(var i=t.search(/\s*$/),o=e.getLength(),r=n,s=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,a=1;++n<o;){t=e.getLine(n);var l=s.exec(t);if(l&&(l[1]?a--:a++,!a))break}if(r<n)return new h(r,i,n,t.length)}}.call(o.prototype)}),ace.define("ace/mode/javascript",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/javascript_highlight_rules","ace/mode/matching_brace_outdent","ace/worker/worker_client","ace/mode/behaviour/cstyle","ace/mode/folding/cstyle"],function(e,t){"use strict";var n=e("../lib/oop"),i=e("./text").Mode,o=e("./javascript_highlight_rules").JavaScriptHighlightRules,r=e("./matching_brace_outdent").MatchingBraceOutdent,s=e("../worker/worker_client").WorkerClient,a=e("./behaviour/cstyle").CstyleBehaviour,l=e("./folding/cstyle").FoldMode,c=function(){this.HighlightRules=o,this.$outdent=new r,this.$behaviour=new a,this.foldingRules=new l};n.inherits(c,i),function(){this.lineCommentStart="//",this.blockComment={start:"/*",end:"*/"},this.$quotes={'"':'"',"'":"'","`":"`"},this.getNextLineIndent=function(e,t,n){var i=this.$getIndent(t),o=this.getTokenizer().getLineTokens(t,e),r=o.tokens,s=o.state;if(r.length&&"comment"==r[r.length-1].type)return i;if("start"==e||"no_regex"==e)(a=t.match(/^.*(?:\bcase\b.*:|[\{\(\[])\s*$/))&&(i+=n);else if("doc-start"==e){if("start"==s||"no_regex"==s)return"";var a;(a=t.match(/^\s*(\/?)\*/))&&(a[1]&&(i+=" "),i+="* ")}return i},this.checkOutdent=function(e,t,n){return this.$outdent.checkOutdent(t,n)},this.autoOutdent=function(e,t,n){this.$outdent.autoOutdent(t,n)},this.createWorker=function(t){var e=new s(["ace"],"ace/mode/javascript_worker","JavaScriptWorker");return e.attachToDocument(t.getDocument()),e.on("annotate",function(e){t.setAnnotations(e.data)}),e.on("terminate",function(){t.clearAnnotations()}),e},this.$id="ace/mode/javascript"}.call(c.prototype),t.Mode=c}),ace.define("ace/mode/xml_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,t){"use strict";var n=e("../lib/oop"),i=e("./text_highlight_rules").TextHighlightRules,o=function(){var e="[_:a-zA-Z\xc0-\uffff][-_:.a-zA-Z0-9\xc0-\uffff]*";this.$rules={start:[{token:"string.cdata.xml",regex:"<\\!\\[CDATA\\[",next:"cdata"},{token:["punctuation.instruction.xml","keyword.instruction.xml"],regex:"(<\\?)("+e+")",next:"processing_instruction"},{token:"comment.start.xml",regex:"<\\!--",next:"comment"},{token:["xml-pe.doctype.xml","xml-pe.doctype.xml"],regex:"(<\\!)(DOCTYPE)(?=[\\s])",next:"doctype",caseInsensitive:!0},{include:"tag"},{token:"text.end-tag-open.xml",regex:"</"},{token:"text.tag-open.xml",regex:"<"},{include:"reference"},{defaultToken:"text.xml"}],processing_instruction:[{token:"entity.other.attribute-name.decl-attribute-name.xml",regex:e},{token:"keyword.operator.decl-attribute-equals.xml",regex:"="},{include:"whitespace"},{include:"string"},{token:"punctuation.xml-decl.xml",regex:"\\?>",next:"start"}],doctype:[{include:"whitespace"},{include:"string"},{token:"xml-pe.doctype.xml",regex:">",next:"start"},{token:"xml-pe.xml",regex:"[-_a-zA-Z0-9:]+"},{token:"punctuation.int-subset",regex:"\\[",push:"int_subset"}],int_subset:[{token:"text.xml",regex:"\\s+"},{token:"punctuation.int-subset.xml",regex:"]",next:"pop"},{token:["punctuation.markup-decl.xml","keyword.markup-decl.xml"],regex:"(<\\!)("+e+")",push:[{token:"text",regex:"\\s+"},{token:"punctuation.markup-decl.xml",regex:">",next:"pop"},{include:"string"}]}],cdata:[{token:"string.cdata.xml",regex:"\\]\\]>",next:"start"},{token:"text.xml",regex:"\\s+"},{token:"text.xml",regex:"(?:[^\\]]|\\](?!\\]>))+"}],comment:[{token:"comment.end.xml",regex:"-->",next:"start"},{defaultToken:"comment.xml"}],reference:[{token:"constant.language.escape.reference.xml",regex:"(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"}],attr_reference:[{token:"constant.language.escape.reference.attribute-value.xml",regex:"(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"}],tag:[{token:["meta.tag.punctuation.tag-open.xml","meta.tag.punctuation.end-tag-open.xml","meta.tag.tag-name.xml"],regex:"(?:(<)|(</))((?:"+e+":)?"+e+")",next:[{include:"attributes"},{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",next:"start"}]}],tag_whitespace:[{token:"text.tag-whitespace.xml",regex:"\\s+"}],whitespace:[{token:"text.whitespace.xml",regex:"\\s+"}],string:[{token:"string.xml",regex:"'",push:[{token:"string.xml",regex:"'",next:"pop"},{defaultToken:"string.xml"}]},{token:"string.xml",regex:'"',push:[{token:"string.xml",regex:'"',next:"pop"},{defaultToken:"string.xml"}]}],attributes:[{token:"entity.other.attribute-name.xml",regex:e},{token:"keyword.operator.attribute-equals.xml",regex:"="},{include:"tag_whitespace"},{include:"attribute_value"}],attribute_value:[{token:"string.attribute-value.xml",regex:"'",push:[{token:"string.attribute-value.xml",regex:"'",next:"pop"},{include:"attr_reference"},{defaultToken:"string.attribute-value.xml"}]},{token:"string.attribute-value.xml",regex:'"',push:[{token:"string.attribute-value.xml",regex:'"',next:"pop"},{include:"attr_reference"},{defaultToken:"string.attribute-value.xml"}]}]},this.constructor===o&&this.normalizeRules()};(function(){this.embedTagRules=function(e,t,n){this.$rules.tag.unshift({token:["meta.tag.punctuation.tag-open.xml","meta.tag."+n+".tag-name.xml"],regex:"(<)("+n+"(?=\\s|>|$))",next:[{include:"attributes"},{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",next:t+"start"}]}),this.$rules[n+"-end"]=[{include:"attributes"},{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",next:"start",onMatch:function(e,t,n){return n.splice(0),this.token}}],this.embedRules(e,t,[{token:["meta.tag.punctuation.end-tag-open.xml","meta.tag."+n+".tag-name.xml"],regex:"(</)("+n+"(?=\\s|>|$))",next:n+"-end"},{token:"string.cdata.xml",regex:"<\\!\\[CDATA\\["},{token:"string.cdata.xml",regex:"\\]\\]>"}])}}).call(i.prototype),n.inherits(o,i),t.XmlHighlightRules=o}),ace.define("ace/mode/behaviour/xml",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator","ace/lib/lang"],function(e,t){"use strict";function g(e,t){return e&&-1<e.type.lastIndexOf(t+".xml")}var n=e("../../lib/oop"),i=e("../behaviour").Behaviour,p=e("../../token_iterator").TokenIterator,o=(e("../../lib/lang"),function(){this.add("string_dquotes","insertion",function(e,t,n,i,o){if('"'==o||"'"==o){var r=o,s=i.doc.getTextRange(n.getSelectionRange());if(""!==s&&"'"!==s&&'"'!=s&&n.getWrapBehavioursEnabled())return{text:r+s+r,selection:!1};var a=n.getCursorPosition(),l=i.doc.getLine(a.row).substring(a.column,a.column+1),c=new p(i,a.row,a.column),h=c.getCurrentToken();if(l==r&&(g(h,"attribute-value")||g(h,"string")))return{text:"",selection:[1,1]};if(h||(h=c.stepBackward()),!h)return;for(;g(h,"tag-whitespace")||g(h,"whitespace");)h=c.stepBackward();var u=!l||l.match(/\s/);if(g(h,"attribute-equals")&&(u||">"==l)||g(h,"decl-attribute-equals")&&(u||"?"==l))return{text:r+r,selection:[1,1]}}}),this.add("string_dquotes","deletion",function(e,t,n,i,o){var r=i.doc.getTextRange(o);if(!o.isMultiLine()&&('"'==r||"'"==r)&&i.doc.getLine(o.start.row).substring(o.start.column+1,o.start.column+2)==r)return o.end.column++,o}),this.add("autoclosing","insertion",function(e,t,n,i,o){if(">"==o){var r=n.getSelectionRange().start,s=new p(i,r.row,r.column),a=s.getCurrentToken()||s.stepBackward();if(!a||!(g(a,"tag-name")||g(a,"tag-whitespace")||g(a,"attribute-name")||g(a,"attribute-equals")||g(a,"attribute-value")))return;if(g(a,"reference.attribute-value"))return;if(g(a,"attribute-value")){var l=s.getCurrentTokenColumn()+a.value.length;if(r.column<l)return;if(r.column==l){var c=s.stepForward();if(c&&g(c,"attribute-value"))return;s.stepBackward()}}if(/^\s*>/.test(i.getLine(r.row).slice(r.column)))return;for(;!g(a,"tag-name");)if("<"==(a=s.stepBackward()).value){a=s.stepForward();break}var h=s.getCurrentTokenRow(),u=s.getCurrentTokenColumn();if(g(s.stepBackward(),"end-tag-open"))return;var d=a.value;if(h==r.row&&(d=d.substring(0,r.column-u)),this.voidElements.hasOwnProperty(d.toLowerCase()))return;return{text:"></"+d+">",selection:[1,1]}}}),this.add("autoindent","insertion",function(e,t,n,i,o){if("\n"==o){var r=n.getCursorPosition(),s=i.getLine(r.row),a=new p(i,r.row,r.column),l=a.getCurrentToken();if(l&&-1!==l.type.indexOf("tag-close")){if("/>"==l.value)return;for(;l&&-1===l.type.indexOf("tag-name");)l=a.stepBackward();if(!l)return;var c=l.value,h=a.getCurrentTokenRow();if(!(l=a.stepBackward())||-1!==l.type.indexOf("end-tag"))return;if(this.voidElements&&!this.voidElements[c]){var u=i.getTokenAt(r.row,r.column+1),d=(s=i.getLine(h),this.$getIndent(s)),g=d+i.getTabString();return u&&"</"===u.value?{text:"\n"+g+"\n"+d,selection:[1,g.length,1,g.length]}:{text:"\n"+g}}}}})});n.inherits(o,i),t.XmlBehaviour=o}),ace.define("ace/mode/folding/xml",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/range","ace/mode/folding/fold_mode","ace/token_iterator"],function(e,t){"use strict";function l(e,t){return-1<e.type.lastIndexOf(t+".xml")}var n=e("../../lib/oop"),c=(e("../../lib/lang"),e("../../range").Range),i=e("./fold_mode").FoldMode,h=e("../../token_iterator").TokenIterator,o=t.FoldMode=function(e,t){i.call(this),this.voidElements=e||{},this.optionalEndTags=n.mixin({},this.voidElements),t&&n.mixin(this.optionalEndTags,t)};n.inherits(o,i);var s=function(){this.tagName="",this.closing=!1,this.selfClosing=!1,this.start={row:0,column:0},this.end={row:0,column:0}};(function(){this.getFoldWidget=function(e,t,n){var i=this._getFirstTagInLine(e,n);return i?i.closing||!i.tagName&&i.selfClosing?"markbeginend"==t?"end":"":!i.tagName||i.selfClosing||this.voidElements.hasOwnProperty(i.tagName.toLowerCase())?"":this._findEndTagInLine(e,n,i.tagName,i.end.column)?"":"start":this.getCommentFoldWidget(e,n)},this.getCommentFoldWidget=function(e,t){return/comment/.test(e.getState(t))&&/<!-/.test(e.getLine(t))?"start":""},this._getFirstTagInLine=function(e,t){for(var n=e.getTokens(t),i=new s,o=0;o<n.length;o++){var r=n[o];if(l(r,"tag-open")){if(i.end.column=i.start.column+r.value.length,i.closing=l(r,"end-tag-open"),!(r=n[++o]))return null;for(i.tagName=r.value,i.end.column+=r.value.length,o++;o<n.length;o++)if(r=n[o],i.end.column+=r.value.length,l(r,"tag-close")){i.selfClosing="/>"==r.value;break}return i}if(l(r,"tag-close"))return i.selfClosing="/>"==r.value,i;i.start.column+=r.value.length}return null},this._findEndTagInLine=function(e,t,n,i){for(var o=e.getTokens(t),r=0,s=0;s<o.length;s++){var a=o[s];if(!((r+=a.value.length)<i)&&l(a,"end-tag-open")&&(a=o[s+1])&&a.value==n)return!0}return!1},this._readTagForward=function(e){var t=e.getCurrentToken();if(!t)return null;var n=new s;do{if(l(t,"tag-open"))n.closing=l(t,"end-tag-open"),n.start.row=e.getCurrentTokenRow(),n.start.column=e.getCurrentTokenColumn();else if(l(t,"tag-name"))n.tagName=t.value;else if(l(t,"tag-close"))return n.selfClosing="/>"==t.value,n.end.row=e.getCurrentTokenRow(),n.end.column=e.getCurrentTokenColumn()+t.value.length,e.stepForward(),n}while(t=e.stepForward());return null},this._readTagBackward=function(e){var t=e.getCurrentToken();if(!t)return null;var n=new s;do{if(l(t,"tag-open"))return n.closing=l(t,"end-tag-open"),n.start.row=e.getCurrentTokenRow(),n.start.column=e.getCurrentTokenColumn(),e.stepBackward(),n;l(t,"tag-name")?n.tagName=t.value:l(t,"tag-close")&&(n.selfClosing="/>"==t.value,n.end.row=e.getCurrentTokenRow(),n.end.column=e.getCurrentTokenColumn()+t.value.length)}while(t=e.stepBackward());return null},this._pop=function(e,t){for(;e.length;){var n=e[e.length-1];if(!t||n.tagName==t.tagName)return e.pop();if(!this.optionalEndTags.hasOwnProperty(n.tagName))return null;e.pop()}},this.getFoldWidgetRange=function(e,t,n){var i=this._getFirstTagInLine(e,n);if(!i)return this.getCommentFoldWidget(e,n)&&e.getCommentFoldRange(n,e.getLine(n).length);var o,r=[];if(i.closing||i.selfClosing){a=new h(e,n,i.end.column);for(var s={row:n,column:i.start.column};o=this._readTagBackward(a);)if(o.selfClosing){if(!r.length)return o.start.column+=o.tagName.length+2,o.end.column-=2,c.fromPoints(o.start,o.end)}else if(o.closing)r.push(o);else if(this._pop(r,o),0==r.length)return o.start.column+=o.tagName.length+2,o.start.row==o.end.row&&o.start.column<o.end.column&&(o.start.column=o.end.column),c.fromPoints(o.start,s)}else{var a=new h(e,n,i.start.column),l={row:n,column:i.start.column+i.tagName.length+2};for(i.start.row==i.end.row&&(l.column=i.end.column);o=this._readTagForward(a);)if(o.selfClosing){if(!r.length)return o.start.column+=o.tagName.length+2,o.end.column-=2,c.fromPoints(o.start,o.end)}else if(o.closing){if(this._pop(r,o),0==r.length)return c.fromPoints(l,o.start)}else r.push(o)}}}).call(o.prototype)}),ace.define("ace/mode/xml",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text","ace/mode/xml_highlight_rules","ace/mode/behaviour/xml","ace/mode/folding/xml","ace/worker/worker_client"],function(e,t){"use strict";var n=e("../lib/oop"),i=e("../lib/lang"),o=e("./text").Mode,r=e("./xml_highlight_rules").XmlHighlightRules,s=e("./behaviour/xml").XmlBehaviour,a=e("./folding/xml").FoldMode,l=e("../worker/worker_client").WorkerClient,c=function(){this.HighlightRules=r,this.$behaviour=new s,this.foldingRules=new a};n.inherits(c,o),function(){this.voidElements=i.arrayToMap([]),this.blockComment={start:"<!--",end:"-->"},this.createWorker=function(t){var e=new l(["ace"],"ace/mode/xml_worker","Worker");return e.attachToDocument(t.getDocument()),e.on("error",function(e){t.setAnnotations(e.data)}),e.on("terminate",function(){t.clearAnnotations()}),e},this.$id="ace/mode/xml"}.call(c.prototype),t.Mode=c}),ace.define("ace/mode/css_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text_highlight_rules"],function(e,t){"use strict";var n=e("../lib/oop"),i=(e("../lib/lang"),e("./text_highlight_rules").TextHighlightRules),o=t.supportType="align-content|align-items|align-self|all|animation|animation-delay|animation-direction|animation-duration|animation-fill-mode|animation-iteration-count|animation-name|animation-play-state|animation-timing-function|backface-visibility|background|background-attachment|background-blend-mode|background-clip|background-color|background-image|background-origin|background-position|background-repeat|background-size|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-shadow|box-sizing|caption-side|clear|clip|color|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|cursor|direction|display|empty-cells|filter|flex|flex-basis|flex-direction|flex-flow|flex-grow|flex-shrink|flex-wrap|float|font|font-family|font-size|font-size-adjust|font-stretch|font-style|font-variant|font-weight|hanging-punctuation|height|justify-content|left|letter-spacing|line-height|list-style|list-style-image|list-style-position|list-style-type|margin|margin-bottom|margin-left|margin-right|margin-top|max-height|max-width|max-zoom|min-height|min-width|min-zoom|nav-down|nav-index|nav-left|nav-right|nav-up|opacity|order|outline|outline-color|outline-offset|outline-style|outline-width|overflow|overflow-x|overflow-y|padding|padding-bottom|padding-left|padding-right|padding-top|page-break-after|page-break-before|page-break-inside|perspective|perspective-origin|position|quotes|resize|right|tab-size|table-layout|text-align|text-align-last|text-decoration|text-decoration-color|text-decoration-line|text-decoration-style|text-indent|text-justify|text-overflow|text-shadow|text-transform|top|transform|transform-origin|transform-style|transition|transition-delay|transition-duration|transition-property|transition-timing-function|unicode-bidi|user-select|user-zoom|vertical-align|visibility|white-space|width|word-break|word-spacing|word-wrap|z-index",r=t.supportFunction="rgb|rgba|url|attr|counter|counters",s=t.supportConstant="absolute|after-edge|after|all-scroll|all|alphabetic|always|antialiased|armenian|auto|avoid-column|avoid-page|avoid|balance|baseline|before-edge|before|below|bidi-override|block-line-height|block|bold|bolder|border-box|both|bottom|box|break-all|break-word|capitalize|caps-height|caption|center|central|char|circle|cjk-ideographic|clone|close-quote|col-resize|collapse|column|consider-shifts|contain|content-box|cover|crosshair|cubic-bezier|dashed|decimal-leading-zero|decimal|default|disabled|disc|disregard-shifts|distribute-all-lines|distribute-letter|distribute-space|distribute|dotted|double|e-resize|ease-in|ease-in-out|ease-out|ease|ellipsis|end|exclude-ruby|fill|fixed|georgian|glyphs|grid-height|groove|hand|hanging|hebrew|help|hidden|hiragana-iroha|hiragana|horizontal|icon|ideograph-alpha|ideograph-numeric|ideograph-parenthesis|ideograph-space|ideographic|inactive|include-ruby|inherit|initial|inline-block|inline-box|inline-line-height|inline-table|inline|inset|inside|inter-ideograph|inter-word|invert|italic|justify|katakana-iroha|katakana|keep-all|last|left|lighter|line-edge|line-through|line|linear|list-item|local|loose|lower-alpha|lower-greek|lower-latin|lower-roman|lowercase|lr-tb|ltr|mathematical|max-height|max-size|medium|menu|message-box|middle|move|n-resize|ne-resize|newspaper|no-change|no-close-quote|no-drop|no-open-quote|no-repeat|none|normal|not-allowed|nowrap|nw-resize|oblique|open-quote|outset|outside|overline|padding-box|page|pointer|pre-line|pre-wrap|pre|preserve-3d|progress|relative|repeat-x|repeat-y|repeat|replaced|reset-size|ridge|right|round|row-resize|rtl|s-resize|scroll|se-resize|separate|slice|small-caps|small-caption|solid|space|square|start|static|status-bar|step-end|step-start|steps|stretch|strict|sub|super|sw-resize|table-caption|table-cell|table-column-group|table-column|table-footer-group|table-header-group|table-row-group|table-row|table|tb-rl|text-after-edge|text-before-edge|text-bottom|text-size|text-top|text|thick|thin|transparent|underline|upper-alpha|upper-latin|upper-roman|uppercase|use-script|vertical-ideographic|vertical-text|visible|w-resize|wait|whitespace|z-index|zero|zoom",a=t.supportConstantColor="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|darkgrey|darkkhaki|darkmagenta|darkolivegreen|darkorange|darkorchid|darkred|darksalmon|darkseagreen|darkslateblue|darkslategray|darkslategrey|darkturquoise|darkviolet|deeppink|deepskyblue|dimgray|dimgrey|dodgerblue|firebrick|floralwhite|forestgreen|fuchsia|gainsboro|ghostwhite|gold|goldenrod|gray|green|greenyellow|grey|honeydew|hotpink|indianred|indigo|ivory|khaki|lavender|lavenderblush|lawngreen|lemonchiffon|lightblue|lightcoral|lightcyan|lightgoldenrodyellow|lightgray|lightgreen|lightgrey|lightpink|lightsalmon|lightseagreen|lightskyblue|lightslategray|lightslategrey|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|slategrey|snow|springgreen|steelblue|tan|teal|thistle|tomato|turquoise|violet|wheat|white|whitesmoke|yellow|yellowgreen",l=t.supportConstantFonts="arial|century|comic|courier|cursive|fantasy|garamond|georgia|helvetica|impact|lucida|symbol|system|tahoma|times|trebuchet|utopia|verdana|webdings|sans-serif|serif|monospace",c=t.numRe="\\-?(?:(?:[0-9]+(?:\\.[0-9]+)?)|(?:\\.[0-9]+))",h=t.pseudoElements="(\\:+)\\b(after|before|first-letter|first-line|moz-selection|selection)\\b",u=t.pseudoClasses="(:)\\b(active|checked|disabled|empty|enabled|first-child|first-of-type|focus|hover|indeterminate|invalid|last-child|last-of-type|link|not|nth-child|nth-last-child|nth-last-of-type|nth-of-type|only-child|only-of-type|required|root|target|valid|visited)\\b",d=function(){var e=this.createKeywordMapper({"support.function":r,"support.constant":s,"support.type":o,"support.constant.color":a,"support.constant.fonts":l},"text",!0);this.$rules={start:[{include:["strings","url","comments"]},{token:"paren.lparen",regex:"\\{",next:"ruleset"},{token:"paren.rparen",regex:"\\}"},{token:"string",regex:"@(?!viewport)",next:"media"},{token:"keyword",regex:"#[a-z0-9-_]+"},{token:"keyword",regex:"%"},{token:"variable",regex:"\\.[a-z0-9-_]+"},{token:"string",regex:":[a-z0-9-_]+"},{token:"constant.numeric",regex:c},{token:"constant",regex:"[a-z0-9-_]+"},{caseInsensitive:!0}],media:[{include:["strings","url","comments"]},{token:"paren.lparen",regex:"\\{",next:"start"},{token:"paren.rparen",regex:"\\}",next:"start"},{token:"string",regex:";",next:"start"},{token:"keyword",regex:"(?:media|supports|document|charset|import|namespace|media|supports|document|page|font|keyframes|viewport|counter-style|font-feature-values|swash|ornaments|annotation|stylistic|styleset|character-variant)"}],comments:[{token:"comment",regex:"\\/\\*",push:[{token:"comment",regex:"\\*\\/",next:"pop"},{defaultToken:"comment"}]}],ruleset:[{regex:"-(webkit|ms|moz|o)-",token:"text"},{token:"punctuation.operator",regex:"[:;]"},{token:"paren.rparen",regex:"\\}",next:"start"},{include:["strings","url","comments"]},{token:["constant.numeric","keyword"],regex:"("+c+")(ch|cm|deg|em|ex|fr|gd|grad|Hz|in|kHz|mm|ms|pc|pt|px|rad|rem|s|turn|vh|vmax|vmin|vm|vw|%)"},{token:"constant.numeric",regex:c},{token:"constant.numeric",regex:"#[a-f0-9]{6}"},{token:"constant.numeric",regex:"#[a-f0-9]{3}"},{token:["punctuation","entity.other.attribute-name.pseudo-element.css"],regex:h},{token:["punctuation","entity.other.attribute-name.pseudo-class.css"],regex:u},{include:"url"},{token:e,regex:"\\-?[a-zA-Z_][a-zA-Z0-9_\\-]*"},{caseInsensitive:!0}],url:[{token:"support.function",regex:"(?:url(:?-prefix)?|domain|regexp)\\(",push:[{token:"support.function",regex:"\\)",next:"pop"},{defaultToken:"string"}]}],strings:[{token:"string.start",regex:"'",push:[{token:"string.end",regex:"'|$",next:"pop"},{include:"escapes"},{token:"constant.language.escape",regex:/\\$/,consumeLineEnd:!0},{defaultToken:"string"}]},{token:"string.start",regex:'"',push:[{token:"string.end",regex:'"|$',next:"pop"},{include:"escapes"},{token:"constant.language.escape",regex:/\\$/,consumeLineEnd:!0},{defaultToken:"string"}]}],escapes:[{token:"constant.language.escape",regex:/\\([a-fA-F\d]{1,6}|[^a-fA-F\d])/}]},this.normalizeRules()};n.inherits(d,i),t.CssHighlightRules=d}),ace.define("ace/mode/css_completions",["require","exports","module"],function(e,t){"use strict";var s={background:{"#$0":1},"background-color":{"#$0":1,transparent:1,fixed:1},"background-image":{"url('/$0')":1},"background-repeat":{repeat:1,"repeat-x":1,"repeat-y":1,"no-repeat":1,inherit:1},"background-position":{bottom:2,center:2,left:2,right:2,top:2,inherit:2},"background-attachment":{scroll:1,fixed:1},"background-size":{cover:1,contain:1},"background-clip":{"border-box":1,"padding-box":1,"content-box":1},"background-origin":{"border-box":1,"padding-box":1,"content-box":1},border:{"solid $0":1,"dashed $0":1,"dotted $0":1,"#$0":1},"border-color":{"#$0":1},"border-style":{solid:2,dashed:2,dotted:2,"double":2,groove:2,hidden:2,inherit:2,inset:2,none:2,outset:2,ridged:2},"border-collapse":{collapse:1,separate:1},bottom:{px:1,em:1,"%":1},clear:{left:1,right:1,both:1,none:1},color:{"#$0":1,"rgb(#$00,0,0)":1},cursor:{"default":1,pointer:1,move:1,text:1,wait:1,help:1,progress:1,"n-resize":1,"ne-resize":1,"e-resize":1,"se-resize":1,"s-resize":1,"sw-resize":1,"w-resize":1,"nw-resize":1},display:{none:1,block:1,inline:1,"inline-block":1,"table-cell":1},"empty-cells":{show:1,hide:1},"float":{left:1,right:1,none:1},"font-family":{Arial:2,"Comic Sans MS":2,Consolas:2,"Courier New":2,Courier:2,Georgia:2,Monospace:2,"Sans-Serif":2,"Segoe UI":2,Tahoma:2,"Times New Roman":2,"Trebuchet MS":2,Verdana:1},"font-size":{px:1,em:1,"%":1},"font-weight":{bold:1,normal:1},"font-style":{italic:1,normal:1},"font-variant":{normal:1,"small-caps":1},height:{px:1,em:1,"%":1},left:{px:1,em:1,"%":1},"letter-spacing":{normal:1},"line-height":{normal:1},"list-style-type":{none:1,disc:1,circle:1,square:1,decimal:1,"decimal-leading-zero":1,"lower-roman":1,"upper-roman":1,"lower-greek":1,"lower-latin":1,"upper-latin":1,georgian:1,"lower-alpha":1,"upper-alpha":1},margin:{px:1,em:1,"%":1},"margin-right":{px:1,em:1,"%":1},"margin-left":{px:1,em:1,"%":1},"margin-top":{px:1,em:1,"%":1},"margin-bottom":{px:1,em:1,"%":1},"max-height":{px:1,em:1,"%":1},"max-width":{px:1,em:1,"%":1},"min-height":{px:1,em:1,"%":1},"min-width":{px:1,em:1,"%":1},overflow:{hidden:1,visible:1,auto:1,scroll:1},"overflow-x":{hidden:1,visible:1,auto:1,scroll:1},"overflow-y":{hidden:1,visible:1,auto:1,scroll:1},padding:{px:1,em:1,"%":1},"padding-top":{px:1,em:1,"%":1},"padding-right":{px:1,em:1,"%":1},"padding-bottom":{px:1,em:1,"%":1},"padding-left":{px:1,em:1,"%":1},"page-break-after":{auto:1,always:1,avoid:1,left:1,right:1},"page-break-before":{auto:1,always:1,avoid:1,left:1,right:1},position:{absolute:1,relative:1,fixed:1,"static":1},right:{px:1,em:1,"%":1},"table-layout":{fixed:1,auto:1},"text-decoration":{none:1,underline:1,"line-through":1,blink:1},"text-align":{left:1,right:1,center:1,justify:1},"text-transform":{capitalize:1,uppercase:1,lowercase:1,none:1},top:{px:1,em:1,"%":1},"vertical-align":{top:1,bottom:1},visibility:{hidden:1,visible:1},"white-space":{nowrap:1,normal:1,pre:1,"pre-line":1,"pre-wrap":1},width:{px:1,em:1,"%":1},"word-spacing":{normal:1},filter:{"alpha(opacity=$0100)":1},"text-shadow":{"$02px 2px 2px #777":1},"text-overflow":{"ellipsis-word":1,clip:1,ellipsis:1},"-moz-border-radius":1,"-moz-border-radius-topright":1,"-moz-border-radius-bottomright":1,"-moz-border-radius-topleft":1,"-moz-border-radius-bottomleft":1,"-webkit-border-radius":1,"-webkit-border-top-right-radius":1,"-webkit-border-top-left-radius":1,"-webkit-border-bottom-right-radius":1,"-webkit-border-bottom-left-radius":1,"-moz-box-shadow":1,"-webkit-box-shadow":1,transform:{"rotate($00deg)":1,"skew($00deg)":1},"-moz-transform":{"rotate($00deg)":1,"skew($00deg)":1},"-webkit-transform":{"rotate($00deg)":1,"skew($00deg)":1}},n=function(){};(function(){this.completionsDefined=!1,this.defineCompletions=function(){if(document){var e=document.createElement("c").style;for(var t in e)if("string"==typeof e[t]){var n=t.replace(/[A-Z]/g,function(e){return"-"+e.toLowerCase()});s.hasOwnProperty(n)||(s[n]=1)}}this.completionsDefined=!0},this.getCompletions=function(e,t,n,i){if(this.completionsDefined||this.defineCompletions(),"ruleset"!==e&&"ace/mode/scss"!=t.$mode.$id)return[];var o=t.getLine(n.row).substr(0,n.column);return/:[^;]+$/.test(o)?(/([\w\-]+):[^:]*$/.test(o),this.getPropertyValueCompletions(e,t,n,i)):this.getPropertyCompletions(e,t,n,i)},this.getPropertyCompletions=function(){return Object.keys(s).map(function(e){return{caption:e,snippet:e+": $0;",meta:"property",score:1e6}})},this.getPropertyValueCompletions=function(e,t,n){var i=t.getLine(n.row).substr(0,n.column),o=(/([\w\-]+):[^:]*$/.exec(i)||{})[1];if(!o)return[];var r=[];return o in s&&"object"==typeof s[o]&&(r=Object.keys(s[o])),r.map(function(e){return{caption:e,snippet:e,meta:"property value",score:1e6}})}}).call(n.prototype),t.CssCompletions=n}),ace.define("ace/mode/behaviour/css",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/mode/behaviour/cstyle","ace/token_iterator"],function(e,t){"use strict";var n=e("../../lib/oop"),i=(e("../behaviour").Behaviour,e("./cstyle").CstyleBehaviour),c=e("../../token_iterator").TokenIterator,o=function(){this.inherit(i),this.add("colon","insertion",function(e,t,n,i,o){if(":"===o&&n.selection.isEmpty()){var r=n.getCursorPosition(),s=new c(i,r.row,r.column),a=s.getCurrentToken();if(a&&a.value.match(/\s+/)&&(a=s.stepBackward()),a&&"support.type"===a.type){var l=i.doc.getLine(r.row);if(":"===l.substring(r.column,r.column+1))return{text:"",selection:[1,1]};if(/^(\s+[^;]|\s*$)/.test(l.substring(r.column)))return{text:":;",selection:[1,1]}}}}),this.add("colon","deletion",function(e,t,n,i,o){var r=i.doc.getTextRange(o);if(!o.isMultiLine()&&":"===r){var s=n.getCursorPosition(),a=new c(i,s.row,s.column),l=a.getCurrentToken();if(l&&l.value.match(/\s+/)&&(l=a.stepBackward()),l&&"support.type"===l.type)if(";"===i.doc.getLine(o.start.row).substring(o.end.column,o.end.column+1))return o.end.column++,o}}),this.add("semicolon","insertion",function(e,t,n,i,o){if(";"===o&&n.selection.isEmpty()){var r=n.getCursorPosition();if(";"===i.doc.getLine(r.row).substring(r.column,r.column+1))return{text:"",selection:[1,1]}}}),this.add("!important","insertion",function(e,t,n,i,o){if("!"===o&&n.selection.isEmpty()){var r=n.getCursorPosition(),s=i.doc.getLine(r.row);if(/^\s*(;|}|$)/.test(s.substring(r.column)))return{text:"!important",selection:[10,10]}}})};n.inherits(o,i),t.CssBehaviour=o}),ace.define("ace/mode/css",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/css_highlight_rules","ace/mode/matching_brace_outdent","ace/worker/worker_client",
14
- "ace/mode/css_completions","ace/mode/behaviour/css","ace/mode/folding/cstyle"],function(e,t){"use strict";var n=e("../lib/oop"),i=e("./text").Mode,o=e("./css_highlight_rules").CssHighlightRules,r=e("./matching_brace_outdent").MatchingBraceOutdent,s=e("../worker/worker_client").WorkerClient,a=e("./css_completions").CssCompletions,l=e("./behaviour/css").CssBehaviour,c=e("./folding/cstyle").FoldMode,h=function(){this.HighlightRules=o,this.$outdent=new r,this.$behaviour=new l,this.$completer=new a,this.foldingRules=new c};n.inherits(h,i),function(){this.foldingRules="cStyle",this.blockComment={start:"/*",end:"*/"},this.getNextLineIndent=function(e,t,n){var i=this.$getIndent(t),o=this.getTokenizer().getLineTokens(t,e).tokens;return o.length&&"comment"==o[o.length-1].type||t.match(/^.*\{\s*$/)&&(i+=n),i},this.checkOutdent=function(e,t,n){return this.$outdent.checkOutdent(t,n)},this.autoOutdent=function(e,t,n){this.$outdent.autoOutdent(t,n)},this.getCompletions=function(e,t,n,i){return this.$completer.getCompletions(e,t,n,i)},this.createWorker=function(t){var e=new s(["ace"],"ace/mode/css_worker","Worker");return e.attachToDocument(t.getDocument()),e.on("annotate",function(e){t.setAnnotations(e.data)}),e.on("terminate",function(){t.clearAnnotations()}),e},this.$id="ace/mode/css"}.call(h.prototype),t.Mode=h}),ace.define("ace/mode/html_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/css_highlight_rules","ace/mode/javascript_highlight_rules","ace/mode/xml_highlight_rules"],function(e,t){"use strict";var n=e("../lib/oop"),i=e("../lib/lang"),o=e("./css_highlight_rules").CssHighlightRules,r=e("./javascript_highlight_rules").JavaScriptHighlightRules,s=e("./xml_highlight_rules").XmlHighlightRules,a=i.createMap({a:"anchor",button:"form",form:"form",img:"image",input:"form",label:"form",option:"form",script:"script",select:"form",textarea:"form",style:"style",table:"table",tbody:"table",td:"table",tfoot:"table",th:"table",tr:"table"}),l=function(){s.call(this),this.addRules({attributes:[{include:"tag_whitespace"},{token:"entity.other.attribute-name.xml",regex:"[-_a-zA-Z0-9:.]+"},{token:"keyword.operator.attribute-equals.xml",regex:"=",push:[{include:"tag_whitespace"},{token:"string.unquoted.attribute-value.html",regex:"[^<>='\"`\\s]+",next:"pop"},{token:"empty",regex:"",next:"pop"}]},{include:"attribute_value"}],tag:[{token:function(e,t){var n=a[t];return["meta.tag.punctuation."+("<"==e?"":"end-")+"tag-open.xml","meta.tag"+(n?"."+n:"")+".tag-name.xml"]},regex:"(</?)([-_a-zA-Z0-9:.]+)",next:"tag_stuff"}],tag_stuff:[{include:"attributes"},{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",next:"start"}]}),this.embedTagRules(o,"css-","style"),this.embedTagRules(new r({jsx:!1}).getRules(),"js-","script"),this.constructor===l&&this.normalizeRules()};n.inherits(l,s),t.HtmlHighlightRules=l}),ace.define("ace/mode/folding/mixed",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode"],function(e,t){"use strict";var n=e("../../lib/oop"),i=e("./fold_mode").FoldMode,o=t.FoldMode=function(e,t){this.defaultMode=e,this.subModes=t};n.inherits(o,i),function(){this.$getMode=function(e){for(var t in"string"!=typeof e&&(e=e[0]),this.subModes)if(0===e.indexOf(t))return this.subModes[t];return null},this.$tryMode=function(e,t,n,i){var o=this.$getMode(e);return o?o.getFoldWidget(t,n,i):""},this.getFoldWidget=function(e,t,n){return this.$tryMode(e.getState(n-1),e,t,n)||this.$tryMode(e.getState(n),e,t,n)||this.defaultMode.getFoldWidget(e,t,n)},this.getFoldWidgetRange=function(e,t,n){var i=this.$getMode(e.getState(n-1));return i&&i.getFoldWidget(e,t,n)||(i=this.$getMode(e.getState(n))),i&&i.getFoldWidget(e,t,n)||(i=this.defaultMode),i.getFoldWidgetRange(e,t,n)}}.call(o.prototype)}),ace.define("ace/mode/folding/html",["require","exports","module","ace/lib/oop","ace/mode/folding/mixed","ace/mode/folding/xml","ace/mode/folding/cstyle"],function(e,t){"use strict";var n=e("../../lib/oop"),i=e("./mixed").FoldMode,o=e("./xml").FoldMode,r=e("./cstyle").FoldMode,s=t.FoldMode=function(e,t){i.call(this,new o(e,t),{"js-":new r,"css-":new r})};n.inherits(s,i)}),ace.define("ace/mode/html_completions",["require","exports","module","ace/token_iterator"],function(e,t){"use strict";function s(e,t){return-1<e.type.lastIndexOf(t+".xml")}function a(e,t){for(var n=new o(e,t.row,t.column),i=n.getCurrentToken();i&&!s(i,"tag-name");)i=n.stepBackward();if(i)return i.value}function l(e,t){for(var n=new o(e,t.row,t.column),i=n.getCurrentToken();i&&!s(i,"attribute-name");)i=n.stepBackward();if(i)return i.value}var o=e("../token_iterator").TokenIterator,n=["onabort","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncontextmenu","oncuechange","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onload","onloadeddata","onloadedmetadata","onloadstart","onmousedown","onmousemove","onmouseout","onmouseover","onmouseup","onmousewheel","onpause","onplay","onplaying","onprogress","onratechange","onreset","onscroll","onseeked","onseeking","onselect","onshow","onstalled","onsubmit","onsuspend","ontimeupdate","onvolumechange","onwaiting"],r=["accesskey","class","contenteditable","contextmenu","dir","draggable","dropzone","hidden","id","inert","itemid","itemprop","itemref","itemscope","itemtype","lang","spellcheck","style","tabindex","title","translate"].concat(n),c={a:{href:1,target:{_blank:1,top:1},ping:1,rel:{nofollow:1,alternate:1,author:1,bookmark:1,help:1,license:1,next:1,noreferrer:1,prefetch:1,prev:1,search:1,tag:1},media:1,hreflang:1,type:1},abbr:{},address:{},area:{shape:1,coords:1,href:1,hreflang:1,alt:1,target:1,media:1,rel:1,ping:1,type:1},article:{pubdate:1},aside:{},audio:{src:1,autobuffer:1,autoplay:{autoplay:1},loop:{loop:1},controls:{controls:1},muted:{muted:1},preload:{auto:1,metadata:1,none:1}},b:{},base:{href:1,target:1},bdi:{},bdo:{},blockquote:{cite:1},body:{onafterprint:1,onbeforeprint:1,onbeforeunload:1,onhashchange:1,onmessage:1,onoffline:1,onpopstate:1,onredo:1,onresize:1,onstorage:1,onundo:1,onunload:1},br:{},button:{autofocus:1,disabled:{disabled:1},form:1,formaction:1,formenctype:1,formmethod:1,formnovalidate:1,formtarget:1,name:1,value:1,type:{button:1,submit:1}},canvas:{width:1,height:1},caption:{},cite:{},code:{},col:{span:1},colgroup:{span:1},command:{type:1,label:1,icon:1,disabled:1,checked:1,radiogroup:1,command:1},data:{},datalist:{},dd:{},del:{cite:1,datetime:1},details:{open:1},dfn:{},dialog:{open:1},div:{},dl:{},dt:{},em:{},embed:{src:1,height:1,width:1,type:1},fieldset:{disabled:1,form:1,name:1},figcaption:{},figure:{},footer:{},form:{"accept-charset":1,action:1,autocomplete:1,enctype:{"multipart/form-data":1,"application/x-www-form-urlencoded":1},method:{get:1,post:1},name:1,novalidate:1,target:{_blank:1,top:1}},h1:{},h2:{},h3:{},h4:{},h5:{},h6:{},head:{},header:{},hr:{},html:{manifest:1},i:{},iframe:{name:1,src:1,height:1,width:1,sandbox:{"allow-same-origin":1,"allow-top-navigation":1,"allow-forms":1,"allow-scripts":1},seamless:{seamless:1}},img:{alt:1,src:1,height:1,width:1,usemap:1,ismap:1},input:{type:{text:1,password:1,hidden:1,checkbox:1,submit:1,radio:1,file:1,button:1,reset:1,image:31,color:1,date:1,datetime:1,"datetime-local":1,email:1,month:1,number:1,range:1,search:1,tel:1,time:1,url:1,week:1},accept:1,alt:1,autocomplete:{on:1,off:1},autofocus:{autofocus:1},checked:{checked:1},disabled:{disabled:1},form:1,formaction:1,formenctype:{"application/x-www-form-urlencoded":1,"multipart/form-data":1,"text/plain":1},formmethod:{get:1,post:1},formnovalidate:{formnovalidate:1},formtarget:{_blank:1,_self:1,_parent:1,_top:1},height:1,list:1,max:1,maxlength:1,min:1,multiple:{multiple:1},name:1,pattern:1,placeholder:1,readonly:{readonly:1},required:{required:1},size:1,src:1,step:1,width:1,files:1,value:1},ins:{cite:1,datetime:1},kbd:{},keygen:{autofocus:1,challenge:{challenge:1},disabled:{disabled:1},form:1,keytype:{rsa:1,dsa:1,ec:1},name:1},label:{form:1,"for":1},legend:{},li:{value:1},link:{href:1,hreflang:1,rel:{stylesheet:1,icon:1},media:{all:1,screen:1,print:1},type:{"text/css":1,"image/png":1,"image/jpeg":1,"image/gif":1},sizes:1},main:{},map:{name:1},mark:{},math:{},menu:{type:1,label:1},meta:{"http-equiv":{"content-type":1},name:{description:1,keywords:1},content:{"text/html; charset=UTF-8":1},charset:1},meter:{value:1,min:1,max:1,low:1,high:1,optimum:1},nav:{},noscript:{href:1},object:{param:1,data:1,type:1,height:1,width:1,usemap:1,name:1,form:1,classid:1},ol:{start:1,reversed:1},optgroup:{disabled:1,label:1},option:{disabled:1,selected:1,label:1,value:1},output:{"for":1,form:1,name:1},p:{},param:{name:1,value:1},pre:{},progress:{value:1,max:1},q:{cite:1},rp:{},rt:{},ruby:{},s:{},samp:{},script:{charset:1,type:{"text/javascript":1},src:1,defer:1,async:1},select:{autofocus:1,disabled:1,form:1,multiple:{multiple:1},name:1,size:1,readonly:{readonly:1}},small:{},source:{src:1,type:1,media:1},span:{},strong:{},style:{type:1,media:{all:1,screen:1,print:1},scoped:1},sub:{},sup:{},svg:{},table:{summary:1},tbody:{},td:{headers:1,rowspan:1,colspan:1},textarea:{autofocus:{autofocus:1},disabled:{disabled:1},form:1,maxlength:1,name:1,placeholder:1,readonly:{readonly:1},required:{required:1},rows:1,cols:1,wrap:{on:1,off:1,hard:1,soft:1}},tfoot:{},th:{headers:1,rowspan:1,colspan:1,scope:1},thead:{},time:{datetime:1},title:{},tr:{},track:{kind:1,src:1,srclang:1,label:1,"default":1},section:{},summary:{},u:{},ul:{},"var":{},video:{src:1,autobuffer:1,autoplay:{autoplay:1},loop:{loop:1},controls:{controls:1},width:1,height:1,poster:1,muted:{muted:1},preload:{auto:1,metadata:1,none:1}},wbr:{}},i=Object.keys(c),h=function(){};(function(){this.getCompletions=function(e,t,n,i){var o=t.getTokenAt(n.row,n.column);if(!o)return[];if(s(o,"tag-name")||s(o,"tag-open")||s(o,"end-tag-open"))return this.getTagCompletions(e,t,n,i);if(s(o,"tag-whitespace")||s(o,"attribute-name"))return this.getAttributeCompletions(e,t,n,i);if(s(o,"attribute-value"))return this.getAttributeValueCompletions(e,t,n,i);var r=t.getLine(n.row).substr(0,n.column);return/&[a-z]*$/i.test(r)?this.getHTMLEntityCompletions(e,t,n,i):[]},this.getTagCompletions=function(){return i.map(function(e){return{value:e,meta:"tag",score:1e6}})},this.getAttributeCompletions=function(e,t,n){var i=a(t,n);if(!i)return[];var o=r;return i in c&&(o=o.concat(Object.keys(c[i]))),o.map(function(e){return{caption:e,snippet:e+'="$0"',meta:"attribute",score:1e6}})},this.getAttributeValueCompletions=function(e,t,n){var i=a(t,n),o=l(t,n);if(!i)return[];var r=[];return i in c&&o in c[i]&&"object"==typeof c[i][o]&&(r=Object.keys(c[i][o])),r.map(function(e){return{caption:e,snippet:e,meta:"attribute value",score:1e6}})},this.getHTMLEntityCompletions=function(){return["Aacute;","aacute;","Acirc;","acirc;","acute;","AElig;","aelig;","Agrave;","agrave;","alefsym;","Alpha;","alpha;","amp;","and;","ang;","Aring;","aring;","asymp;","Atilde;","atilde;","Auml;","auml;","bdquo;","Beta;","beta;","brvbar;","bull;","cap;","Ccedil;","ccedil;","cedil;","cent;","Chi;","chi;","circ;","clubs;","cong;","copy;","crarr;","cup;","curren;","Dagger;","dagger;","dArr;","darr;","deg;","Delta;","delta;","diams;","divide;","Eacute;","eacute;","Ecirc;","ecirc;","Egrave;","egrave;","empty;","emsp;","ensp;","Epsilon;","epsilon;","equiv;","Eta;","eta;","ETH;","eth;","Euml;","euml;","euro;","exist;","fnof;","forall;","frac12;","frac14;","frac34;","frasl;","Gamma;","gamma;","ge;","gt;","hArr;","harr;","hearts;","hellip;","Iacute;","iacute;","Icirc;","icirc;","iexcl;","Igrave;","igrave;","image;","infin;","int;","Iota;","iota;","iquest;","isin;","Iuml;","iuml;","Kappa;","kappa;","Lambda;","lambda;","lang;","laquo;","lArr;","larr;","lceil;","ldquo;","le;","lfloor;","lowast;","loz;","lrm;","lsaquo;","lsquo;","lt;","macr;","mdash;","micro;","middot;","minus;","Mu;","mu;","nabla;","nbsp;","ndash;","ne;","ni;","not;","notin;","nsub;","Ntilde;","ntilde;","Nu;","nu;","Oacute;","oacute;","Ocirc;","ocirc;","OElig;","oelig;","Ograve;","ograve;","oline;","Omega;","omega;","Omicron;","omicron;","oplus;","or;","ordf;","ordm;","Oslash;","oslash;","Otilde;","otilde;","otimes;","Ouml;","ouml;","para;","part;","permil;","perp;","Phi;","phi;","Pi;","pi;","piv;","plusmn;","pound;","Prime;","prime;","prod;","prop;","Psi;","psi;","quot;","radic;","rang;","raquo;","rArr;","rarr;","rceil;","rdquo;","real;","reg;","rfloor;","Rho;","rho;","rlm;","rsaquo;","rsquo;","sbquo;","Scaron;","scaron;","sdot;","sect;","shy;","Sigma;","sigma;","sigmaf;","sim;","spades;","sub;","sube;","sum;","sup;","sup1;","sup2;","sup3;","supe;","szlig;","Tau;","tau;","there4;","Theta;","theta;","thetasym;","thinsp;","THORN;","thorn;","tilde;","times;","trade;","Uacute;","uacute;","uArr;","uarr;","Ucirc;","ucirc;","Ugrave;","ugrave;","uml;","upsih;","Upsilon;","upsilon;","Uuml;","uuml;","weierp;","Xi;","xi;","Yacute;","yacute;","yen;","Yuml;","yuml;","Zeta;","zeta;","zwj;","zwnj;"].map(function(e){return{caption:e,snippet:e,meta:"html entity",score:1e6}})}}).call(h.prototype),t.HtmlCompletions=h}),ace.define("ace/mode/html",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text","ace/mode/javascript","ace/mode/css","ace/mode/html_highlight_rules","ace/mode/behaviour/xml","ace/mode/folding/html","ace/mode/html_completions","ace/worker/worker_client"],function(e,t){"use strict";var n=e("../lib/oop"),i=e("../lib/lang"),o=e("./text").Mode,r=e("./javascript").Mode,s=e("./css").Mode,a=e("./html_highlight_rules").HtmlHighlightRules,l=e("./behaviour/xml").XmlBehaviour,c=e("./folding/html").FoldMode,h=e("./html_completions").HtmlCompletions,u=e("../worker/worker_client").WorkerClient,d=["area","base","br","col","embed","hr","img","input","keygen","link","meta","menuitem","param","source","track","wbr"],g=["li","dt","dd","p","rt","rp","optgroup","option","colgroup","td","th"],p=function(e){this.fragmentContext=e&&e.fragmentContext,this.HighlightRules=a,this.$behaviour=new l,this.$completer=new h,this.createModeDelegates({"js-":r,"css-":s}),this.foldingRules=new c(this.voidElements,i.arrayToMap(g))};n.inherits(p,o),function(){this.blockComment={start:"<!--",end:"-->"},this.voidElements=i.arrayToMap(d),this.getNextLineIndent=function(e,t){return this.$getIndent(t)},this.checkOutdent=function(){return!1},this.getCompletions=function(e,t,n,i){return this.$completer.getCompletions(e,t,n,i)},this.createWorker=function(t){if(this.constructor==p){var e=new u(["ace"],"ace/mode/html_worker","Worker");return e.attachToDocument(t.getDocument()),this.fragmentContext&&e.call("setOptions",[{context:this.fragmentContext}]),e.on("error",function(e){t.setAnnotations(e.data)}),e.on("terminate",function(){t.clearAnnotations()}),e}},this.$id="ace/mode/html"}.call(p.prototype),t.Mode=p}),ace.define("ace/mode/markdown_highlight_rules",["require","exports","module","ace/config","ace/lib/oop","ace/lib/lang","ace/mode/text_highlight_rules","ace/mode/html_highlight_rules"],function(e,t){"use strict";var c=e("../config").$modes,n=e("../lib/oop"),i=e("../lib/lang"),o=e("./text_highlight_rules").TextHighlightRules,r=e("./html_highlight_rules").HtmlHighlightRules,s=function(e){return"(?:[^"+i.escapeRegExp(e)+"\\\\]|\\\\.)*"},a=function(){r.call(this);var e={token:"support.function",regex:/^\s*(```+[^`]*|~~~+[^~]*)$/,onMatch:function(e,t,n){var i=e.match(/^(\s*)([`~]+)(.*)/),o=/[\w-]+|$/.exec(i[3])[0];return c[o]||(o=""),n.unshift("githubblock",[],[i[1],i[2],o],t),this.token},next:"githubblock"},t=[{token:"support.function",regex:".*",onMatch:function(e,t,n){var i=n[1],o=n[2][0],r=n[2][1],s=n[2][2],a=/^(\s*)(`+|~+)\s*$/.exec(e);if(a&&a[1].length<o.length+3&&a[2].length>=r.length&&a[2][0]==r[0])return n.splice(0,3),this.next=n.shift(),this.token;if(this.next="",s&&c[s]){var l=c[s].getTokenizer().getLineTokens(e,i.slice(0));return n[1]=l.state,l.tokens}return this.token}}];this.$rules.start.unshift({token:"empty_line",regex:"^$",next:"allowBlock"},{token:"markup.heading.1",regex:"^=+(?=\\s*$)"},{token:"markup.heading.2",regex:"^\\-+(?=\\s*$)"},{token:function(e){return"markup.heading."+e.length},regex:/^#{1,6}(?=\s|$)/,next:"header"},e,{token:"string.blockquote",regex:"^\\s*>\\s*(?:[*+-]|\\d+\\.)?\\s+",next:"blockquote"},{token:"constant",regex:"^ {0,2}(?:(?: ?\\* ?){3,}|(?: ?\\- ?){3,}|(?: ?\\_ ?){3,})\\s*$",next:"allowBlock"},{token:"markup.list",regex:"^\\s{0,3}(?:[*+-]|\\d+\\.)\\s+",next:"listblock-start"},{include:"basic"}),this.addRules({basic:[{token:"constant.language.escape",regex:/\\[\\`*_{}\[\]()#+\-.!]/},{token:"support.function",regex:"(`+)(.*?[^`])(\\1)"},{token:["text","constant","text","url","string","text"],regex:'^([ ]{0,3}\\[)([^\\]]+)(\\]:\\s*)([^ ]+)(\\s*(?:["][^"]+["])?(\\s*))$'},{token:["text","string","text","constant","text"],regex:"(\\[)("+s("]")+")(\\]\\s*\\[)("+s("]")+")(\\])"},{token:["text","string","text","markup.underline","string","text"],regex:"(\\!?\\[)("+s("]")+')(\\]\\()((?:[^\\)\\s\\\\]|\\\\.|\\s(?=[^"]))*)(\\s*"'+s('"')+'"\\s*)?(\\))'},{token:"string.strong",regex:"([*]{2}|[_]{2}(?=\\S))(.*?\\S[*_]*)(\\1)"},{token:"string.emphasis",regex:"([*]|[_](?=\\S))(.*?\\S[*_]*)(\\1)"},{token:["text","url","text"],regex:"(<)((?:https?|ftp|dict):[^'\">\\s]+|(?:mailto:)?[-.\\w]+\\@[-a-z0-9]+(?:\\.[-a-z0-9]+)*\\.[a-z]+)(>)"}],allowBlock:[{token:"support.function",regex:"^ {4}.+",next:"allowBlock"},{token:"empty_line",regex:"^$",next:"allowBlock"},{token:"empty",regex:"",next:"start"}],header:[{regex:"$",next:"start"},{include:"basic"},{defaultToken:"heading"}],"listblock-start":[{token:"support.variable",regex:/(?:\[[ x]\])?/,next:"listblock"}],listblock:[{token:"empty_line",regex:"^$",next:"start"},{token:"markup.list",regex:"^\\s{0,3}(?:[*+-]|\\d+\\.)\\s+",next:"listblock-start"},{include:"basic",noEscape:!0},e,{defaultToken:"list"}],blockquote:[{token:"empty_line",regex:"^\\s*$",next:"start"},{token:"string.blockquote",regex:"^\\s*>\\s*(?:[*+-]|\\d+\\.)?\\s+",next:"blockquote"},{include:"basic",noEscape:!0},{defaultToken:"string.blockquote"}],githubblock:t}),this.normalizeRules()};n.inherits(a,o),t.MarkdownHighlightRules=a}),ace.define("ace/mode/folding/markdown",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode","ace/range"],function(e,t){"use strict";var n=e("../../lib/oop"),i=e("./fold_mode").FoldMode,p=e("../../range").Range,o=t.FoldMode=function(){};n.inherits(o,i),function(){this.foldingStartMarker=/^(?:[=-]+\s*$|#{1,6} |`{3})/,this.getFoldWidget=function(e,t,n){var i=e.getLine(n);return this.foldingStartMarker.test(i)?"`"==i[0]&&"start"==e.bgTokenizer.getState(n)?"end":"start":""},this.getFoldWidgetRange=function(t,e,n){function i(e){return(h=t.getTokens(e)[0])&&0===h.type.lastIndexOf(u,0)}function o(){var e=h.value[0];return"="==e?6:"-"==e?5:7-h.value.search(/[^#]|$/)}var r=t.getLine(n),s=r.length,a=t.getLength(),l=n,c=n;if(r.match(this.foldingStartMarker)){if("`"==r[0]){if("start"!==t.bgTokenizer.getState(n)){for(;++n<a&&!("`"==(r=t.getLine(n))[0]&"```"==r.substring(0,3)););return new p(l,s,n,0)}for(;0<n--&&!("`"==(r=t.getLine(n))[0]&"```"==r.substring(0,3)););return new p(n,r.length,l,0)}var h,u="markup.heading";if(i(n)){for(var d=o();++n<a;){if(i(n))if(d<=o())break}if(l<(c=n-(h&&-1!=["=","-"].indexOf(h.value[0])?2:1)))for(;l<c&&/^\s*$/.test(t.getLine(c));)c--;if(l<c){var g=t.getLine(c).length;return new p(l,s,c,g)}}}}}.call(o.prototype)}),ace.define("ace/mode/sh_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,t){"use strict";var n=e("../lib/oop"),i=e("./text_highlight_rules").TextHighlightRules,h=t.reservedKeywords="!|{|}|case|do|done|elif|else|esac|fi|for|if|in|then|until|while|&|;|export|local|read|typeset|unset|elif|select|set|function|declare|readonly",u=t.languageConstructs="[|]|alias|bg|bind|break|builtin|cd|command|compgen|complete|continue|dirs|disown|echo|enable|eval|exec|exit|fc|fg|getopts|hash|help|history|jobs|kill|let|logout|popd|printf|pushd|pwd|return|set|shift|shopt|source|suspend|test|times|trap|type|ulimit|umask|unalias|wait",o=function(){var e=this.createKeywordMapper({keyword:h,"support.function.builtin":u,"invalid.deprecated":"debugger"},"identifier"),t="(?:(?:[1-9]\\d*)|(?:0))",n="(?:\\d+)",i="(?:(?:"+n+"?"+"(?:\\.\\d+)"+")|(?:"+n+"\\.))",o="(?:"+("(?:(?:"+i+"|"+n+"))")+"|"+i+")",r="(?:&"+n+")",s="[a-zA-Z_][a-zA-Z0-9_]*",a="(?:"+s+"(?==))",l="(?:\\$(?:SHLVL|\\$|\\!|\\?))",c="(?:"+s+"\\s*\\(\\))";this.$rules={start:[{token:"constant",regex:/\\./},{token:["text","comment"],regex:/(^|\s)(#.*)$/},{token:"string.start",regex:'"',push:[{token:"constant.language.escape",regex:/\\(?:[$`"\\]|$)/},{include:"variables"},{token:"keyword.operator",regex:/`/},{token:"string.end",regex:'"',next:"pop"},{defaultToken:"string"}]},{token:"string",regex:"\\$'",push:[{token:"constant.language.escape",regex:/\\(?:[abeEfnrtv\\'"]|x[a-fA-F\d]{1,2}|u[a-fA-F\d]{4}([a-fA-F\d]{4})?|c.|\d{1,3})/},{token:"string",regex:"'",next:"pop"},{defaultToken:"string"}]},{regex:"<<<",token:"keyword.operator"},{stateName:"heredoc",regex:"(<<-?)(\\s*)(['\"`]?)([\\w\\-]+)(['\"`]?)",onMatch:function(e,t,n){var i="-"==e[2]?"indentedHeredoc":"heredoc",o=e.split(this.splitRegex);return n.push(i,o[4]),[{type:"constant",value:o[1]},{type:"text",value:o[2]},{type:"string",value:o[3]},{type:"support.class",value:o[4]},{type:"string",value:o[5]}]},rules:{heredoc:[{onMatch:function(e,t,n){return e===n[1]?(n.shift(),n.shift(),this.next=n[0]||"start","support.class"):(this.next="","string")},regex:".*$",next:"start"}],indentedHeredoc:[{token:"string",regex:"^\t+"},{onMatch:function(e,t,n){return e===n[1]?(n.shift(),n.shift(),this.next=n[0]||"start","support.class"):(this.next="","string")},regex:".*$",next:"start"}]}},{regex:"$",token:"empty",next:function(e,t){return"heredoc"===t[0]||"indentedHeredoc"===t[0]?t[0]:e}},{token:["keyword","text","text","text","variable"],regex:/(declare|local|readonly)(\s+)(?:(-[fixar]+)(\s+))?([a-zA-Z_][a-zA-Z0-9_]*\b)/},{token:"variable.language",regex:l},{token:"variable",regex:a},{include:"variables"},{token:"support.function",regex:c},{token:"support.function",regex:r},{token:"string",start:"'",end:"'"},{token:"constant.numeric",regex:o},{token:"constant.numeric",regex:t+"\\b"},{token:e,regex:"[a-zA-Z_][a-zA-Z0-9_]*\\b"},{token:"keyword.operator",regex:"\\+|\\-|\\*|\\*\\*|\\/|\\/\\/|~|<|>|<=|=>|=|!=|[%&|`]"},{token:"punctuation.operator",regex:";"},{token:"paren.lparen",regex:"[\\[\\(\\{]"},{token:"paren.rparen",regex:"[\\]]"},{token:"paren.rparen",regex:"[\\)\\}]",next:"pop"}],variables:[{token:"variable",regex:/(\$)(\w+)/},{token:["variable","paren.lparen"],regex:/(\$)(\()/,push:"start"},{token:["variable","paren.lparen","keyword.operator","variable","keyword.operator"],regex:/(\$)(\{)([#!]?)(\w+|[*@#?\-$!0_])(:[?+\-=]?|##?|%%?|,,?\/|\^\^?)?/,push:"start"},{token:"variable",regex:/\$[*@#?\-$!0_]/},{token:["variable","paren.lparen"],regex:/(\$)(\{)/,push:"start"}]},this.normalizeRules()};n.inherits(o,i),t.ShHighlightRules=o}),ace.define("ace/mode/sh",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/sh_highlight_rules","ace/range","ace/mode/folding/cstyle","ace/mode/behaviour/cstyle"],function(e,t){"use strict";var n=e("../lib/oop"),i=e("./text").Mode,o=e("./sh_highlight_rules").ShHighlightRules,s=e("../range").Range,r=e("./folding/cstyle").FoldMode,a=e("./behaviour/cstyle").CstyleBehaviour,l=function(){this.HighlightRules=o,this.foldingRules=new r,this.$behaviour=new a};n.inherits(l,i),function(){this.lineCommentStart="#",this.getNextLineIndent=function(e,t,n){var i=this.$getIndent(t),o=this.getTokenizer().getLineTokens(t,e).tokens;if(o.length&&"comment"==o[o.length-1].type)return i;"start"==e&&(t.match(/^.*[\{\(\[:]\s*$/)&&(i+=n));return i};var r={pass:1,"return":1,raise:1,"break":1,"continue":1};this.checkOutdent=function(e,t,n){if("\r\n"!==n&&"\r"!==n&&"\n"!==n)return!1;var i=this.getTokenizer().getLineTokens(t.trim(),e).tokens;if(!i)return!1;do{var o=i.pop()}while(o&&("comment"==o.type||"text"==o.type&&o.value.match(/^\s+$/)));return!!o&&("keyword"==o.type&&r[o.value])},this.autoOutdent=function(e,t,n){n+=1;var i=this.$getIndent(t.getLine(n)),o=t.getTabString();i.slice(-o.length)==o&&t.remove(new s(n,i.length-o.length,n,i.length))},this.$id="ace/mode/sh"}.call(l.prototype),t.Mode=l}),ace.define("ace/mode/markdown",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/javascript","ace/mode/xml","ace/mode/html","ace/mode/markdown_highlight_rules","ace/mode/folding/markdown","ace/mode/javascript","ace/mode/html","ace/mode/sh","ace/mode/sh","ace/mode/xml","ace/mode/css"],function(e,t){"use strict";var n=e("../lib/oop"),i=e("./text").Mode,o=(e("./javascript").Mode,e("./xml").Mode,e("./html").Mode,e("./markdown_highlight_rules").MarkdownHighlightRules),r=e("./folding/markdown").FoldMode,s=function(){this.HighlightRules=o,this.createModeDelegates({javascript:e("./javascript").Mode,html:e("./html").Mode,bash:e("./sh").Mode,sh:e("./sh").Mode,xml:e("./xml").Mode,css:e("./css").Mode}),this.foldingRules=new r,this.$behaviour=this.$defaultBehaviour};n.inherits(s,i),function(){this.type="text",this.blockComment={start:"<!--",end:"-->"},this.$quotes={'"':'"',"`":"`"},this.getNextLineIndent=function(e,t){if("listblock"!=e)return this.$getIndent(t);var n=/^(\s*)(?:([-+*])|(\d+)\.)(\s+)/.exec(t);if(!n)return"";var i=n[2];return i||(i=parseInt(n[3],10)+1+"."),n[1]+i+n[4]},this.$id="ace/mode/markdown"}.call(s.prototype),t.Mode=s}),ace.require(["ace/mode/markdown"],function(e){"object"==typeof module&&"object"==typeof exports&&module&&(module.exports=e)}),ace.define("ace/mode/asciidoc_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,t){"use strict";var n=e("../lib/oop"),i=e("./text_highlight_rules").TextHighlightRules,o=function(){function e(e){return(/\w/.test(e)?"\\b":"(?:\\B|^)")+e+"[^"+e+"].*?"+e+"(?![\\w*])"}var t="[a-zA-Z\xa1-\uffff]+\\b";this.$rules={start:[{token:"empty",regex:/$/},{token:"literal",regex:/^\.{4,}\s*$/,next:"listingBlock"},{token:"literal",regex:/^-{4,}\s*$/,next:"literalBlock"},{token:"string",regex:/^\+{4,}\s*$/,next:"passthroughBlock"},{token:"keyword",regex:/^={4,}\s*$/},{token:"text",regex:/^\s*$/},{token:"empty",regex:"",next:"dissallowDelimitedBlock"}],dissallowDelimitedBlock:[{include:"paragraphEnd"},{token:"comment",regex:"^//.+$"},{token:"keyword",regex:"^(?:NOTE|TIP|IMPORTANT|WARNING|CAUTION):"},{include:"listStart"},{token:"literal",regex:/^\s+.+$/,next:"indentedBlock"},{token:"empty",regex:"",next:"text"}],paragraphEnd:[{token:"doc.comment",regex:/^\/{4,}\s*$/,next:"commentBlock"},{token:"tableBlock",regex:/^\s*[|!]=+\s*$/,next:"tableBlock"},{token:"keyword",regex:/^(?:--|''')\s*$/,next:"start"},{token:"option",regex:/^\[.*\]\s*$/,next:"start"},{token:"pageBreak",regex:/^>{3,}$/,next:"start"},{token:"literal",regex:/^\.{4,}\s*$/,next:"listingBlock"},{token:"titleUnderline",regex:/^(?:={2,}|-{2,}|~{2,}|\^{2,}|\+{2,})\s*$/,next:"start"},{token:"singleLineTitle",regex:/^={1,5}\s+\S.*$/,next:"start"},{token:"otherBlock",regex:/^(?:\*{2,}|_{2,})\s*$/,next:"start"},{token:"optionalTitle",regex:/^\.[^.\s].+$/,next:"start"}],listStart:[{token:"keyword",regex:/^\s*(?:\d+\.|[a-zA-Z]\.|[ixvmIXVM]+\)|\*{1,5}|-|\.{1,5})\s/,next:"listText"},{token:"meta.tag",regex:/^.+(?::{2,4}|;;)(?: |$)/,next:"listText"},{token:"support.function.list.callout",regex:/^(?:<\d+>|\d+>|>) /,next:"text"},{token:"keyword",regex:/^\+\s*$/,next:"start"}],text:[{token:["link","variable.language"],regex:/((?:https?:\/\/|ftp:\/\/|file:\/\/|mailto:|callto:)[^\s\[]+)(\[.*?\])/},{token:"link",regex:/(?:https?:\/\/|ftp:\/\/|file:\/\/|mailto:|callto:)[^\s\[]+/},{token:"link",regex:/\b[\w\.\/\-]+@[\w\.\/\-]+\b/},{include:"macros"},{include:"paragraphEnd"},{token:"literal",regex:/\+{3,}/,next:"smallPassthrough"},{token:"escape",regex:/\((?:C|TM|R)\)|\.{3}|->|<-|=>|<=|&#(?:\d+|x[a-fA-F\d]+);|(?: |^)--(?=\s+\S)/},{token:"escape",regex:/\\[_*'`+#]|\\{2}[_*'`+#]{2}/},{token:"keyword",regex:/\s\+$/},{token:"text",regex:t},{token:["keyword","string","keyword"],regex:/(<<[\w\d\-$]+,)(.*?)(>>|$)/},{token:"keyword",regex:/<<[\w\d\-$]+,?|>>/},{token:"constant.character",regex:/\({2,3}.*?\){2,3}/},{token:"keyword",regex:/\[\[.+?\]\]/},{token:"support",regex:/^\[{3}[\w\d =\-]+\]{3}/},{include:"quotes"},{token:"empty",regex:/^\s*$/,next:"start"}],listText:[{include:"listStart"},{include:"text"}],indentedBlock:[{token:"literal",regex:/^[\s\w].+$/,next:"indentedBlock"},{token:"literal",regex:"",next:"start"}],listingBlock:[{token:"literal",regex:/^\.{4,}\s*$/,next:"dissallowDelimitedBlock"},{token:"constant.numeric",regex:"<\\d+>"},{token:"literal",regex:"[^<]+"},{token:"literal",regex:"<"}],literalBlock:[{token:"literal",regex:/^-{4,}\s*$/,next:"dissallowDelimitedBlock"},{token:"constant.numeric",regex:"<\\d+>"},{token:"literal",regex:"[^<]+"},{token:"literal",regex:"<"}],passthroughBlock:[{token:"literal",regex:/^\+{4,}\s*$/,next:"dissallowDelimitedBlock"},{token:"literal",regex:t+"|\\d+"},{include:"macros"},{token:"literal",regex:"."}],smallPassthrough:[{token:"literal",regex:/[+]{3,}/,next:"dissallowDelimitedBlock"},{token:"literal",regex:/^\s*$/,next:"dissallowDelimitedBlock"},{token:"literal",regex:t+"|\\d+"},{include:"macros"}],commentBlock:[{token:"doc.comment",regex:/^\/{4,}\s*$/,next:"dissallowDelimitedBlock"},{token:"doc.comment",regex:"^.*$"}],tableBlock:[{token:"tableBlock",regex:/^\s*\|={3,}\s*$/,next:"dissallowDelimitedBlock"},{token:"tableBlock",regex:/^\s*!={3,}\s*$/,next:"innerTableBlock"},{token:"tableBlock",regex:/\|/},{include:"text",noEscape:!0}],innerTableBlock:[{token:"tableBlock",regex:/^\s*!={3,}\s*$/,next:"tableBlock"},{token:"tableBlock",regex:/^\s*|={3,}\s*$/,next:"dissallowDelimitedBlock"},{token:"tableBlock",regex:/!/}],macros:[{token:"macro",regex:/{[\w\-$]+}/},{token:["text","string","text","constant.character","text"],regex:/({)([\w\-$]+)(:)?(.+)?(})/},{token:["text","markup.list.macro","keyword","string"],regex:/(\w+)(footnote(?:ref)?::?)([^\s\[]+)?(\[.*?\])?/},{token:["markup.list.macro","keyword","string"],regex:/([a-zA-Z\-][\w\.\/\-]*::?)([^\s\[]+)(\[.*?\])?/},{token:["markup.list.macro","keyword"],regex:/([a-zA-Z\-][\w\.\/\-]+::?)(\[.*?\])/},{token:"keyword",regex:/^:.+?:(?= |$)/}],quotes:[{token:"string.italic",regex:/__[^_\s].*?__/},{token:"string.italic",regex:e("_")},{token:"keyword.bold",regex:/\*\*[^*\s].*?\*\*/},{token:"keyword.bold",regex:e("\\*")},{token:"literal",regex:e("\\+")},{token:"literal",regex:/\+\+[^+\s].*?\+\+/},{token:"literal",regex:/\$\$.+?\$\$/},{token:"literal",regex:e("`")},{token:"keyword",regex:e("^")},{token:"keyword",regex:e("~")},{token:"keyword",regex:/##?/},{token:"keyword",regex:/(?:\B|^)``|\b''/}]};var n={macro:"constant.character",tableBlock:"doc.comment",titleUnderline:"markup.heading",singleLineTitle:"markup.heading",pageBreak:"string",option:"string.regexp",otherBlock:"markup.list",literal:"support.function",optionalTitle:"constant.numeric",escape:"constant.language.escape",link:"markup.underline.list"};for(var i in this.$rules)for(var o=this.$rules[i],r=o.length;r--;){var s=o[r];if(s.include||"string"==typeof s){var a=[r,1].concat(this.$rules[s.include||s]);s.noEscape&&(a=a.filter(function(e){return!e.next})),o.splice.apply(o,a)}else s.token in n&&(s.token=n[s.token])}};n.inherits(o,i),t.AsciidocHighlightRules=o}),ace.define("ace/mode/folding/asciidoc",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode","ace/range"],function(e,t){"use strict";var n=e("../../lib/oop"),i=e("./fold_mode").FoldMode,m=e("../../range").Range,o=t.FoldMode=function(){};n.inherits(o,i),function(){this.foldingStartMarker=/^(?:\|={10,}|[\.\/=\-~^+]{4,}\s*$|={1,5} )/,this.singleLineHeadingRe=/^={1,5}(?=\s+\S)/,this.getFoldWidget=function(e,t,n){var i=e.getLine(n);return this.foldingStartMarker.test(i)?"="==i[0]?this.singleLineHeadingRe.test(i)?"start":e.getLine(n-1).length!=e.getLine(n).length?"":"start":"dissallowDelimitedBlock"==e.bgTokenizer.getState(n)?"end":"start":""},this.getFoldWidgetRange=function(n,e,i){function t(e){return(h=n.getTokens(e)[0])&&h.type}function o(){var e=h.value.match(g);if(e)return e[0].length;var t=u.indexOf(h.value[0])+1;return 1==t&&n.getLine(i-1).length!=n.getLine(i).length?Infinity:t}var r=n.getLine(i),s=r.length,a=n.getLength(),l=i,c=i;if(r.match(this.foldingStartMarker)){var h,u=["=","-","~","^","+"],d="markup.heading",g=this.singleLineHeadingRe;if(t(i)==d){for(var p=o();++i<a;){if(t(i)==d)if(o()<=p)break}if(l<(c=h&&h.value.match(this.singleLineHeadingRe)?i-1:i-2))for(;l<c&&(!t(c)||"["==h.value[0]);)c--;if(l<c){var f=n.getLine(c).length
15
- ;return new m(l,s,c,f)}}else{if("dissallowDelimitedBlock"==n.bgTokenizer.getState(i)){for(;0<i--&&-1!=n.bgTokenizer.getState(i).lastIndexOf("Block"););if((c=i+1)<l){f=n.getLine(i).length;return new m(c,5,l,s-5)}}else{for(;++i<a&&"dissallowDelimitedBlock"!=n.bgTokenizer.getState(i););if(l<(c=i)){f=n.getLine(i).length;return new m(l,5,c,f-5)}}}}}}.call(o.prototype)}),ace.define("ace/mode/asciidoc",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/asciidoc_highlight_rules","ace/mode/folding/asciidoc"],function(e,t){"use strict";var n=e("../lib/oop"),i=e("./text").Mode,o=e("./asciidoc_highlight_rules").AsciidocHighlightRules,r=e("./folding/asciidoc").FoldMode,s=function(){this.HighlightRules=o,this.foldingRules=new r};n.inherits(s,i),function(){this.type="text",this.getNextLineIndent=function(e,t){if("listblock"!=e)return this.$getIndent(t);var n=/^((?:.+)?)([-+*][ ]+)/.exec(t);return n?new Array(n[1].length+1).join(" ")+n[2]:""},this.$id="ace/mode/asciidoc"}.call(s.prototype),t.Mode=s}),ace.require(["ace/mode/asciidoc"],function(e){"object"==typeof module&&"object"==typeof exports&&module&&(module.exports=e)}),ace.require(["ace/mode/text"],function(e){"object"==typeof module&&"object"==typeof exports&&module&&(module.exports=e)}),ace.define("ace/mode/latex_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,t){"use strict";var n=e("../lib/oop"),i=e("./text_highlight_rules").TextHighlightRules,o=function(){this.$rules={start:[{token:"comment",regex:"%.*$"},{token:["keyword","lparen","variable.parameter","rparen","lparen","storage.type","rparen"],regex:"(\\\\(?:documentclass|usepackage|input))(?:(\\[)([^\\]]*)(\\]))?({)([^}]*)(})"},{token:["keyword","lparen","variable.parameter","rparen"],regex:"(\\\\(?:label|v?ref|cite(?:[^{]*)))(?:({)([^}]*)(}))?"},{token:["storage.type","lparen","variable.parameter","rparen"],regex:"(\\\\begin)({)(verbatim)(})",next:"verbatim"},{token:["storage.type","lparen","variable.parameter","rparen"],regex:"(\\\\begin)({)(lstlisting)(})",next:"lstlisting"},{token:["storage.type","lparen","variable.parameter","rparen"],regex:"(\\\\(?:begin|end))({)([\\w*]*)(})"},{token:"storage.type",regex:/\\verb\b\*?/,next:[{token:["keyword.operator","string","keyword.operator"],regex:"(.)(.*?)(\\1|$)|",next:"start"}]},{token:"storage.type",regex:"\\\\[a-zA-Z]+"},{token:"lparen",regex:"[[({]"},{token:"rparen",regex:"[\\])}]"},{token:"constant.character.escape",regex:"\\\\[^a-zA-Z]?"},{token:"string",regex:"\\${1,2}",next:"equation"}],equation:[{token:"comment",regex:"%.*$"},{token:"string",regex:"\\${1,2}",next:"start"},{token:"constant.character.escape",regex:"\\\\(?:[^a-zA-Z]|[a-zA-Z]+)"},{token:"error",regex:"^\\s*$",next:"start"},{defaultToken:"string"}],verbatim:[{token:["storage.type","lparen","variable.parameter","rparen"],regex:"(\\\\end)({)(verbatim)(})",next:"start"},{defaultToken:"text"}],lstlisting:[{token:["storage.type","lparen","variable.parameter","rparen"],regex:"(\\\\end)({)(lstlisting)(})",next:"start"},{defaultToken:"text"}]},this.normalizeRules()};n.inherits(o,i),t.LatexHighlightRules=o}),ace.define("ace/mode/rdoc_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text_highlight_rules","ace/mode/latex_highlight_rules"],function(e,t){"use strict";var n=e("../lib/oop"),i=(e("../lib/lang"),e("./text_highlight_rules").TextHighlightRules),o=(e("./latex_highlight_rules"),function(){this.$rules={start:[{token:"comment",regex:"%.*$"},{token:"text",regex:"\\\\[$&%#\\{\\}]"},{token:"keyword",regex:"\\\\(?:name|alias|method|S3method|S4method|item|code|preformatted|kbd|pkg|var|env|option|command|author|email|url|source|cite|acronym|href|code|preformatted|link|eqn|deqn|keyword|usage|examples|dontrun|dontshow|figure|if|ifelse|Sexpr|RdOpts|inputencoding|usepackage)\\b",next:"nospell"},{token:"keyword",regex:"\\\\(?:[a-zA-Z0-9]+|[^a-zA-Z0-9])"},{token:"paren.keyword.operator",regex:"[[({]"},{token:"paren.keyword.operator",regex:"[\\])}]"},{token:"text",regex:"\\s+"}],nospell:[{token:"comment",regex:"%.*$",next:"start"},{token:"nospell.text",regex:"\\\\[$&%#\\{\\}]"},{token:"keyword",regex:"\\\\(?:name|alias|method|S3method|S4method|item|code|preformatted|kbd|pkg|var|env|option|command|author|email|url|source|cite|acronym|href|code|preformatted|link|eqn|deqn|keyword|usage|examples|dontrun|dontshow|figure|if|ifelse|Sexpr|RdOpts|inputencoding|usepackage)\\b"},{token:"keyword",regex:"\\\\(?:[a-zA-Z0-9]+|[^a-zA-Z0-9])",next:"start"},{token:"paren.keyword.operator",regex:"[[({]"},{token:"paren.keyword.operator",regex:"[\\])]"},{token:"paren.keyword.operator",regex:"}",next:"start"},{token:"nospell.text",regex:"\\s+"},{token:"nospell.text",regex:"\\w+"}]}});n.inherits(o,i),t.RDocHighlightRules=o}),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(e,t){"use strict";var s=e("../range").Range,n=function(){};(function(){this.checkOutdent=function(e,t){return!!/^\s+$/.test(e)&&/^\s*\}/.test(t)},this.autoOutdent=function(e,t){var n=e.getLine(t).match(/^(\s*\})/);if(!n)return 0;var i=n[1].length,o=e.findMatchingBracket({row:t,column:i});if(!o||o.row==t)return 0;var r=this.$getIndent(e.getLine(o.row));e.replace(new s(t,0,t,i-1),r)},this.$getIndent=function(e){return e.match(/^\s*/)[0]}}).call(n.prototype),t.MatchingBraceOutdent=n}),ace.define("ace/mode/rdoc",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/rdoc_highlight_rules","ace/mode/matching_brace_outdent"],function(e,t){"use strict";var n=e("../lib/oop"),i=e("./text").Mode,o=e("./rdoc_highlight_rules").RDocHighlightRules,r=e("./matching_brace_outdent").MatchingBraceOutdent,s=function(){this.HighlightRules=o,this.$outdent=new r,this.$behaviour=this.$defaultBehaviour};n.inherits(s,i),function(){this.getNextLineIndent=function(e,t){return this.$getIndent(t)},this.$id="ace/mode/rdoc"}.call(s.prototype),t.Mode=s}),ace.require(["ace/mode/rdoc"],function(e){"object"==typeof module&&"object"==typeof exports&&module&&(module.exports=e)}),ace.define("ace/mode/textile_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,t){"use strict";var n=e("../lib/oop"),i=e("./text_highlight_rules").TextHighlightRules,o=function(){this.$rules={start:[{token:function(e){return"h"==e.charAt(0)?"markup.heading."+e.charAt(1):"markup.heading"},regex:"h1|h2|h3|h4|h5|h6|bq|p|bc|pre",next:"blocktag"},{token:"keyword",regex:"[\\*]+|[#]+"},{token:"text",regex:".+"}],blocktag:[{token:"keyword",regex:"\\. ",next:"start"},{token:"keyword",regex:"\\(",next:"blocktagproperties"}],blocktagproperties:[{token:"keyword",regex:"\\)",next:"blocktag"},{token:"string",regex:"[a-zA-Z0-9\\-_]+"},{token:"keyword",regex:"#"}]}};n.inherits(o,i),t.TextileHighlightRules=o}),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(e,t){"use strict";var s=e("../range").Range,n=function(){};(function(){this.checkOutdent=function(e,t){return!!/^\s+$/.test(e)&&/^\s*\}/.test(t)},this.autoOutdent=function(e,t){var n=e.getLine(t).match(/^(\s*\})/);if(!n)return 0;var i=n[1].length,o=e.findMatchingBracket({row:t,column:i});if(!o||o.row==t)return 0;var r=this.$getIndent(e.getLine(o.row));e.replace(new s(t,0,t,i-1),r)},this.$getIndent=function(e){return e.match(/^\s*/)[0]}}).call(n.prototype),t.MatchingBraceOutdent=n}),ace.define("ace/mode/textile",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/textile_highlight_rules","ace/mode/matching_brace_outdent"],function(e,t){"use strict";var n=e("../lib/oop"),i=e("./text").Mode,o=e("./textile_highlight_rules").TextileHighlightRules,r=e("./matching_brace_outdent").MatchingBraceOutdent,s=function(){this.HighlightRules=o,this.$outdent=new r,this.$behaviour=this.$defaultBehaviour};n.inherits(s,i),function(){this.type="text",this.getNextLineIndent=function(e,t,n){return"intag"==e?n:""},this.checkOutdent=function(e,t,n){return this.$outdent.checkOutdent(t,n)},this.autoOutdent=function(e,t,n){this.$outdent.autoOutdent(t,n)},this.$id="ace/mode/textile"}.call(s.prototype),t.Mode=s}),ace.require(["ace/mode/textile"],function(e){"object"==typeof module&&"object"==typeof exports&&module&&(module.exports=e)}),ace.define("ace/mode/rst_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text_highlight_rules"],function(e,t){"use strict";var n=e("../lib/oop"),i=(e("../lib/lang"),e("./text_highlight_rules").TextHighlightRules),o=function(){var e={title:"markup.heading",list:"markup.heading",table:"constant",directive:"keyword.operator",entity:"string",link:"markup.underline.list",bold:"markup.bold",italic:"markup.italic",literal:"support.function",comment:"comment"},t="(^|\\s|[\"'(<\\[{\\-/:])",n="(?:$|(?=\\s|[\\\\.,;!?\\-/:\"')>\\]}]))";this.$rules={start:[{token:e.title,regex:"(^)([\\=\\-`:\\.'\"~\\^_\\*\\+#])(\\2{2,}\\s*$)"},{token:["text",e.directive,e.literal],regex:"(^\\s*\\.\\. )([^: ]+::)(.*$)",next:"codeblock"},{token:e.directive,regex:"::$",next:"codeblock"},{token:[e.entity,e.link],regex:"(^\\.\\. _[^:]+:)(.*$)"},{token:[e.entity,e.link],regex:"(^__ )(https?://.*$)"},{token:e.entity,regex:"^\\.\\. \\[[^\\]]+\\] "},{token:e.comment,regex:"^\\.\\. .*$",next:"comment"},{token:e.list,regex:"^\\s*[\\*\\+-] "},{token:e.list,regex:"^\\s*(?:[A-Za-z]|[0-9]+|[ivxlcdmIVXLCDM]+)\\. "},{token:e.list,regex:"^\\s*\\(?(?:[A-Za-z]|[0-9]+|[ivxlcdmIVXLCDM]+)\\) "},{token:e.table,regex:"^={2,}(?: +={2,})+$"},{token:e.table,regex:"^\\+-{2,}(?:\\+-{2,})+\\+$"},{token:e.table,regex:"^\\+={2,}(?:\\+={2,})+\\+$"},{token:["text",e.literal],regex:t+"(``)(?=\\S)",next:"code"},{token:["text",e.bold],regex:t+"(\\*\\*)(?=\\S)",next:"bold"},{token:["text",e.italic],regex:t+"(\\*)(?=\\S)",next:"italic"},{token:e.entity,regex:"\\|[\\w\\-]+?\\|"},{token:e.entity,regex:":[\\w-:]+:`\\S",next:"entity"},{token:["text",e.entity],regex:t+"(_`)(?=\\S)",next:"entity"},{token:e.entity,regex:"_[A-Za-z0-9\\-]+?"},{token:["text",e.link],regex:t+"(`)(?=\\S)",next:"link"},{token:e.link,regex:"[A-Za-z0-9\\-]+?__?"},{token:e.link,regex:"\\[[^\\]]+?\\]_"},{token:e.link,regex:"https?://\\S+"},{token:e.table,regex:"\\|"}],codeblock:[{token:e.literal,regex:"^ +.+$",next:"codeblock"},{token:e.literal,regex:"^$",next:"codeblock"},{token:"empty",regex:"",next:"start"}],code:[{token:e.literal,regex:"\\S``"+n,next:"start"},{defaultToken:e.literal}],bold:[{token:e.bold,regex:"\\S\\*\\*"+n,next:"start"},{defaultToken:e.bold}],italic:[{token:e.italic,regex:"\\S\\*"+n,next:"start"},{defaultToken:e.italic}],entity:[{token:e.entity,regex:"\\S`"+n,next:"start"},{defaultToken:e.entity}],link:[{token:e.link,regex:"\\S`__?"+n,next:"start"},{defaultToken:e.link}],comment:[{token:e.comment,regex:"^ +.+$",next:"comment"},{token:e.comment,regex:"^$",next:"comment"},{token:"empty",regex:"",next:"start"}]}};n.inherits(o,i),t.RSTHighlightRules=o}),ace.define("ace/mode/rst",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/rst_highlight_rules"],function(e,t){"use strict";var n=e("../lib/oop"),i=e("./text").Mode,o=e("./rst_highlight_rules").RSTHighlightRules,r=function(){this.HighlightRules=o};n.inherits(r,i),function(){this.type="text",this.$id="ace/mode/rst"}.call(r.prototype),t.Mode=r}),ace.require(["ace/mode/rst"],function(e){"object"==typeof module&&"object"==typeof exports&&module&&(module.exports=e)}),ace.define("ace/mode/latex_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,t){"use strict";var n=e("../lib/oop"),i=e("./text_highlight_rules").TextHighlightRules,o=function(){this.$rules={start:[{token:"comment",regex:"%.*$"},{token:["keyword","lparen","variable.parameter","rparen","lparen","storage.type","rparen"],regex:"(\\\\(?:documentclass|usepackage|input))(?:(\\[)([^\\]]*)(\\]))?({)([^}]*)(})"},{token:["keyword","lparen","variable.parameter","rparen"],regex:"(\\\\(?:label|v?ref|cite(?:[^{]*)))(?:({)([^}]*)(}))?"},{token:["storage.type","lparen","variable.parameter","rparen"],regex:"(\\\\begin)({)(verbatim)(})",next:"verbatim"},{token:["storage.type","lparen","variable.parameter","rparen"],regex:"(\\\\begin)({)(lstlisting)(})",next:"lstlisting"},{token:["storage.type","lparen","variable.parameter","rparen"],regex:"(\\\\(?:begin|end))({)([\\w*]*)(})"},{token:"storage.type",regex:/\\verb\b\*?/,next:[{token:["keyword.operator","string","keyword.operator"],regex:"(.)(.*?)(\\1|$)|",next:"start"}]},{token:"storage.type",regex:"\\\\[a-zA-Z]+"},{token:"lparen",regex:"[[({]"},{token:"rparen",regex:"[\\])}]"},{token:"constant.character.escape",regex:"\\\\[^a-zA-Z]?"},{token:"string",regex:"\\${1,2}",next:"equation"}],equation:[{token:"comment",regex:"%.*$"},{token:"string",regex:"\\${1,2}",next:"start"},{token:"constant.character.escape",regex:"\\\\(?:[^a-zA-Z]|[a-zA-Z]+)"},{token:"error",regex:"^\\s*$",next:"start"},{defaultToken:"string"}],verbatim:[{token:["storage.type","lparen","variable.parameter","rparen"],regex:"(\\\\end)({)(verbatim)(})",next:"start"},{defaultToken:"text"}],lstlisting:[{token:["storage.type","lparen","variable.parameter","rparen"],regex:"(\\\\end)({)(lstlisting)(})",next:"start"},{defaultToken:"text"}]},this.normalizeRules()};n.inherits(o,i),t.LatexHighlightRules=o}),ace.define("ace/mode/folding/latex",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode","ace/range","ace/token_iterator"],function(e,t){"use strict";var n=e("../../lib/oop"),i=e("./fold_mode").FoldMode,p=e("../../range").Range,f=e("../../token_iterator").TokenIterator,c={"\\subparagraph":1,"\\paragraph":2,"\\subsubsubsection":3,"\\subsubsection":4,"\\subsection":5,"\\section":6,"\\chapter":7,"\\part":8,"\\begin":9,"\\end":10},o=t.FoldMode=function(){};n.inherits(o,i),function(){this.foldingStartMarker=/^\s*\\(begin)|\s*\\(part|chapter|(?:sub)*(?:section|paragraph))\b|{\s*$/,this.foldingStopMarker=/^\s*\\(end)\b|^\s*}/,this.getFoldWidgetRange=function(e,t,n){var i,o=e.doc.getLine(n);return(i=this.foldingStartMarker.exec(o))?i[1]?this.latexBlock(e,n,i[0].length-1):i[2]?this.latexSection(e,n,i[0].length-1):this.openingBracketBlock(e,"{",n,i.index):(i=this.foldingStopMarker.exec(o))?i[1]?this.latexBlock(e,n,i[0].length-1):this.closingBracketBlock(e,"}",n,i.index+i[0].length):void 0},this.latexBlock=function(e,t,n,i){var o={"\\begin":1,"\\end":-1},r=new f(e,t,n),s=r.getCurrentToken();if(s&&("storage.type"==s.type||"constant.character.escape"==s.type)){var a=o[s.value],l=function(){var e="lparen"==r.stepForward().type?r.stepForward().value:"";return-1===a&&(r.stepBackward(),e&&r.stepBackward()),e},c=[l()],h=-1===a?r.getCurrentTokenColumn():e.getLine(t).length,u=t;for(r.step=-1===a?r.stepBackward:r.stepForward;s=r.step();)if(s&&("storage.type"==s.type||"constant.character.escape"==s.type)){var d=o[s.value];if(d){var g=l();if(d===a)c.unshift(g);else if(c.shift()!==g||!c.length)break}}if(!c.length){if(1==a&&(r.stepBackward(),r.stepBackward()),i)return r.getCurrentTokenRange();t=r.getCurrentTokenRow();return-1===a?new p(t,e.getLine(t).length,u,h):new p(u,h,t,r.getCurrentTokenColumn())}}},this.latexSection=function(e,t,n){var i=new f(e,t,n),o=i.getCurrentToken();if(o&&"storage.type"==o.type){for(var r=c[o.value]||0,s=0,a=t;o=i.stepForward();)if("storage.type"===o.type){var l=c[o.value]||0;if(9<=l){if(s||(a=i.getCurrentTokenRow()-1),(s+=9==l?1:-1)<0)break}else if(r<=l)break}for(s||(a=i.getCurrentTokenRow()-1);t<a&&!/\S/.test(e.getLine(a));)a--;return new p(t,e.getLine(t).length,a,e.getLine(a).length)}}}.call(o.prototype)}),ace.define("ace/mode/latex",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/latex_highlight_rules","ace/mode/behaviour/cstyle","ace/mode/folding/latex"],function(e,t){"use strict";var n=e("../lib/oop"),i=e("./text").Mode,o=e("./latex_highlight_rules").LatexHighlightRules,r=e("./behaviour/cstyle").CstyleBehaviour,s=e("./folding/latex").FoldMode,a=function(){this.HighlightRules=o,this.foldingRules=new s,this.$behaviour=new r({braces:!0})};n.inherits(a,i),function(){this.type="text",this.lineCommentStart="%",this.$id="ace/mode/latex",this.getMatching=function(e,t,n){t==undefined&&(t=e.selection.lead),"object"==typeof t&&(n=t.column,t=t.row);var i=e.getTokenAt(t,n);if(i)return"\\begin"==i.value||"\\end"==i.value?this.foldingRules.latexBlock(e,t,n,!0):void 0}}.call(a.prototype),t.Mode=a}),ace.require(["ace/mode/latex"],function(e){"object"==typeof module&&"object"==typeof exports&&module&&(module.exports=e)}),ace.define("ace/theme/tomorrow",["require","exports","module","ace/lib/dom"],function(e,t){t.isDark=!1,t.cssClass="ace-tomorrow",t.cssText=".ace-tomorrow .ace_gutter {background: #f6f6f6;color: #4D4D4C}.ace-tomorrow .ace_print-margin {width: 1px;background: #f6f6f6}.ace-tomorrow {background-color: #FFFFFF;color: #4D4D4C}.ace-tomorrow .ace_cursor {color: #AEAFAD}.ace-tomorrow .ace_marker-layer .ace_selection {background: #D6D6D6}.ace-tomorrow.ace_multiselect .ace_selection.ace_start {box-shadow: 0 0 3px 0px #FFFFFF;}.ace-tomorrow .ace_marker-layer .ace_step {background: rgb(255, 255, 0)}.ace-tomorrow .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid #D1D1D1}.ace-tomorrow .ace_marker-layer .ace_active-line {background: #EFEFEF}.ace-tomorrow .ace_gutter-active-line {background-color : #dcdcdc}.ace-tomorrow .ace_marker-layer .ace_selected-word {border: 1px solid #D6D6D6}.ace-tomorrow .ace_invisible {color: #D1D1D1}.ace-tomorrow .ace_keyword,.ace-tomorrow .ace_meta,.ace-tomorrow .ace_storage,.ace-tomorrow .ace_storage.ace_type,.ace-tomorrow .ace_support.ace_type {color: #8959A8}.ace-tomorrow .ace_keyword.ace_operator {color: #3E999F}.ace-tomorrow .ace_constant.ace_character,.ace-tomorrow .ace_constant.ace_language,.ace-tomorrow .ace_constant.ace_numeric,.ace-tomorrow .ace_keyword.ace_other.ace_unit,.ace-tomorrow .ace_support.ace_constant,.ace-tomorrow .ace_variable.ace_parameter {color: #F5871F}.ace-tomorrow .ace_constant.ace_other {color: #666969}.ace-tomorrow .ace_invalid {color: #FFFFFF;background-color: #C82829}.ace-tomorrow .ace_invalid.ace_deprecated {color: #FFFFFF;background-color: #8959A8}.ace-tomorrow .ace_fold {background-color: #4271AE;border-color: #4D4D4C}.ace-tomorrow .ace_entity.ace_name.ace_function,.ace-tomorrow .ace_support.ace_function,.ace-tomorrow .ace_variable {color: #4271AE}.ace-tomorrow .ace_support.ace_class,.ace-tomorrow .ace_support.ace_type {color: #C99E00}.ace-tomorrow .ace_heading,.ace-tomorrow .ace_markup.ace_heading,.ace-tomorrow .ace_string {color: #718C00}.ace-tomorrow .ace_entity.ace_name.ace_tag,.ace-tomorrow .ace_entity.ace_other.ace_attribute-name,.ace-tomorrow .ace_meta.ace_tag,.ace-tomorrow .ace_string.ace_regexp,.ace-tomorrow .ace_variable {color: #C82829}.ace-tomorrow .ace_comment {color: #8E908C}.ace-tomorrow .ace_indent-guide {background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bdu3f/BwAlfgctduB85QAAAABJRU5ErkJggg==) right repeat-y}",e("../lib/dom").importCssString(t.cssText,t.cssClass)}),ace.require(["ace/theme/tomorrow"],function(e){"object"==typeof module&&"object"==typeof exports&&module&&(module.exports=e)}),ace.define("ace/keyboard/vim",["require","exports","module","ace/range","ace/lib/event_emitter","ace/lib/dom","ace/lib/oop","ace/lib/keys","ace/lib/event","ace/search","ace/lib/useragent","ace/search_highlight","ace/commands/multi_select_commands","ace/mode/text","ace/multi_select"],function(e,t){"use strict";function a(e){return{row:e.line,column:e.ch}}function c(e){return new Rt(e.row,e.column)}function n(e){e.setOption("disableInput",!0),e.setOption("showCursorWhenSelecting",!1),_t.signal(e,"vim-mode-change",{mode:"normal"}),e.on("cursorActivity",ot),S(e),_t.on(e.getInputField(),"paste",h(e))}function i(e){e.setOption("disableInput",!1),e.off("cursorActivity",ot),_t.off(e.getInputField(),"paste",h(e)),e.state.vim=null}function o(e,t){this==_t.keyMap.vim&&_t.rmClass(e.getWrapperElement(),"cm-fat-cursor"),(!t||t.attach!=r)&&i(e)}function r(e,t){this==_t.keyMap.vim&&_t.addClass(e.getWrapperElement(),"cm-fat-cursor"),(!t||t.attach!=r)&&n(e)}function s(e,t){if(!t)return undefined;if(this[e])return this[e];var n=l(e);if(!n)return!1;var i=_t.Vim.findKey(t,n);return"function"==typeof i&&_t.signal(t,"vim-keypress",n),i}function l(e){if("'"==e.charAt(0))return e.charAt(1);var t=e.split(/-(?!$)/),n=t[t.length-1];if(1==t.length&&1==t[0].length)return!1;if(2==t.length&&"Shift"==t[0]&&1==n.length)return!1;for(var i=!1,o=0;o<t.length;o++){var r=t[o];r in Et?t[o]=Et[r]:i=!0,r in Ot&&(t[o]=Ot[r])}return!!i&&(m(n)&&(t[t.length-1]=n.toLowerCase()),"<"+t.join("-")+">")}function h(e){var t=e.state.vim;return t.onPasteFn||(t.onPasteFn=function(){t.insertMode||(e.setCursor(N(e.getCursor(),0,1)),Yt.enterInsertMode(e,{},t))}),t.onPasteFn}function u(e,t){for(var n=[],i=e;i<e+t;i++)n.push(String.fromCharCode(i));return n}function f(e,t){return t>=e.firstLine()&&t<=e.lastLine()}function d(e){return/^[a-z]$/.test(e)}function g(e){return-1!="()[]{}".indexOf(e)}function p(e){return It.test(e)}function m(e){return/^[A-Z]$/.test(e)}function v(e){return/^\s*$/.test(e)}function b(e){return-1!=".?!".indexOf(e)}function w(e,t){for(var n=0;n<t.length;n++)if(t[n]==e)return!0;return!1}function y(e,t,n,i,o){if(t===undefined&&!o)throw Error("defaultValue is required unless callback is provided");if(n||(n="string"),zt[e]={type:n,defaultValue:t,callback:o},i)for(var r=0;r<i.length;r++)zt[i[r]]=zt[e];t&&x(e,t)}function x(e,t,n,i){var o=zt[e],r=(i=i||{}).scope;if(!o)return new Error("Unknown option: "+e);if("boolean"==o.type){if(t&&!0!==t)return new Error("Invalid argument: "+e+"="+t);!1!==t&&(t=!0)}o.callback?("local"!==r&&o.callback(t,undefined),"global"!==r&&n&&o.callback(t,n)):("local"!==r&&(o.value="boolean"==o.type?!!t:t),"global"!==r&&n&&(n.state.vim.options[e]={value:t}))}function k(e,t,n){var i=zt[e],o=(n=n||{}).scope;if(!i)return new Error("Unknown option: "+e);if(i.callback){var r=t&&i.callback(undefined,t);return"global"!==o&&r!==undefined?r:"local"!==o?i.callback():void 0}return((r="global"!==o&&t&&t.state.vim.options[e])||"local"!==o&&i||{}).value}function C(){this.latestRegister=undefined,this.isPlaying=!1,this.isRecording=!1,this.replaySearchQueries=[],this.onRecordingDone=undefined,this.lastInsertModeChanges=Gt()}function S(e){return e.state.vim||(e.state.vim={inputState:new _,lastEditInputState:undefined,lastEditActionCommand:undefined,lastHPos:-1,lastHSPos:-1,lastMotion:null,marks:{},fakeCursor:null,insertMode:!1,insertModeRepeat:undefined,visualMode:!1,visualLine:!1,visualBlock:!1,lastSelection:null,lastPastedText:null,sel:{},options:{}}),e.state.vim}function $(){for(var e in Kt={searchQuery:null,searchIsReversed:!1,lastSubstituteReplacePart:undefined,jumpList:Ut(),macroModeState:new C,lastCharacterSearch:{increment:0,forward:!0,selectedCharacter:""},registerController:new M({}),searchHistoryController:new R,exCommandHistoryController:new R},zt){var t=zt[e];t.value=t.defaultValue}}function _(){this.prefixRepeat=[],this.motionRepeat=[],this.operator=null,this.operatorArgs=null,this.motion=null,this.motionArgs=null,this.keyBuffer=[],this.registerName=null}function T(e,t){e.state.vim.inputState=new _,_t.signal(e,"vim-command-done",t)}function A(e,t,n){this.clear(),this.keyBuffer=[e||""],this.insertModeChanges=[],this.searchQueries=[],this.linewise=!!t,this.blockwise=!!n}function L(e,t){var n=Kt.registerController.registers;if(!e||1!=e.length)throw Error("Register name must be 1 character");n[e]=t,Wt.push(e)}function M(e){this.registers=e,this.unnamedRegister=e['"']=new A,e["."]=new A,e[":"]=new A,e["/"]=new A}function R(){this.historyBuffer=[],this.iterator=0,this.initialPrefix=null}function E(e,t){Xt[e]=t}function O(e,t){for(var n=[],i=0;i<t;i++)n.push(e);return n}function I(e,t){Qt[e]=t}function F(e,t){Yt[e]=t}function B(e,t,n){var i=Math.min(Math.max(e.firstLine(),t.line),e.lastLine()),o=X(e,i)-1;o=n?o+1:o;var r=Math.min(Math.max(0,t.ch),o);return Rt(i,r)}function H(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function N(e,t,n){return"object"==typeof t&&(n=t.ch,t=t.line),Rt(e.line+t,e.ch+n)}function P(e,t,n,i){for(var o,r=[],s=[],a=0;a<t.length;a++){var l=t[a];"insert"==n&&"insert"!=l.context||l.context&&l.context!=n||i.operator&&"action"==l.type||!(o=D(e,l.keys))||("partial"==o&&r.push(l),"full"==o&&s.push(l))}return{partial:r.length&&r,full:s.length&&s}}function D(e,t){if("<character>"!=t.slice(-11))return e==t?"full":0==t.indexOf(e)&&"partial";var n=t.length-11,i=e.slice(0,n),o=t.slice(0,n);return i==o&&e.length>n?"full":0==o.indexOf(i)&&"partial"}function W(e){var t=/^.*(<[^>]+>)$/.exec(e),n=t?t[1]:e.slice(-1);if(1<n.length)switch(n){case"<CR>":n="\n";break;case"<Space>":n=" ";break;default:n=""}return n}function z(t,n,i){return function(){for(var e=0;e<i;e++)n(t)}}function K(e){return Rt(e.line,e.ch)}function V(e,t){return e.ch==t.ch&&e.line==t.line}function U(e,t){return e.line<t.line||e.line==t.line&&e.ch<t.ch}function G(e,t){return 2<arguments.length&&(t=G.apply(undefined,Array.prototype.slice.call(arguments,1))),U(e,t)?e:t}function j(e,t){return 2<arguments.length&&(t=j.apply(undefined,Array.prototype.slice.call(arguments,1))),U(e,t)?t:e}function q(e,t,n){var i=U(e,t),o=U(t,n);return i&&o}function X(e,t){return e.getLine(t).length}function Q(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function Y(e){return e.replace(/([.?*+$\[\]\/\\(){}|\-])/g,"\\$1")}function J(e,t,n){var i=X(e,t),o=new Array(n-i+1).join(" ");e.setCursor(Rt(t,i)),e.replaceRange(o,e.getCursor())}function Z(e,t){var n=[],i=e.listSelections(),o=K(e.clipPos(t)),r=!V(t,o),s=te(i,e.getCursor("head")),a=V(i[s].head,i[s].anchor),l=i.length-1,c=s<l-s?l:0,h=i[c].anchor,u=Math.min(h.line,o.line),d=Math.max(h.line,o.line),g=h.ch,p=o.ch,f=i[c].head.ch-g,m=p-g;0<f&&m<=0?(g++,r||p--):f<0&&0<=m?(g--,a||p++):f<0&&-1==m&&(g--,p++);for(var v=u;v<=d;v++){var b={anchor:new Rt(v,g),head:new Rt(v,p)};n.push(b)}return e.setSelections(n),t.ch=p,h.ch=g,h}function ee(e,t,n){for(var i=[],o=0;o<n;o++){var r=N(t,o,0);i.push({anchor:r,head:r})}e.setSelections(i,0)}function te(e,t,n){for(var i=0;i<e.length;i++){var o="head"!=n&&V(e[i].anchor,t),r="anchor"!=n&&V(e[i].head,t);if(o||r)return i}return-1}function ne(d,e){var g=e.lastSelection,t=function(){var e=d.listSelections(),t=e[0],n=e[e.length-1];return[U(t.anchor,t.head)?t.anchor:t.head,U(n.anchor,n.head)?n.head:n.anchor]},n=function(){var e=d.getCursor(),t=d.getCursor(),n=g.visualBlock;if(n){var i=n.width,o=n.height;t=Rt(e.line+o,e.ch+i);for(var r=[],s=e.line;s<t.line;s++){var a={anchor:Rt(s,e.ch),head:Rt(s,t.ch)};r.push(a)}d.setSelections(r)}else{var l=g.anchorMark.find(),c=g.headMark.find(),h=c.line-l.line,u=c.ch-l.ch;t={line:t.line+h,ch:h?t.ch:u+t.ch},g.visualLine&&(e=Rt(e.line,0),t=Rt(t.line,X(d,t.line))),d.setSelection(e,t)}return[e,t]};return e.visualMode?t():n()}function ie(e,t){var n=t.sel.anchor,i=t.sel.head;t.lastPastedText&&(i=e.posFromIndex(e.indexFromPos(n)+t.lastPastedText.length),t.lastPastedText=null),t.lastSelection={anchorMark:e.setBookmark(n),headMark:e.setBookmark(i),anchor:K(n),head:K(i),visualMode:t.visualMode,visualLine:t.visualLine,visualBlock:t.visualBlock}}function oe(e,t,n){var i,o=e.state.vim.sel,r=o.head,s=o.anchor;return U(n,t)&&(i=n,n=t,t=i),U(r,s)?(r=G(t,r),s=j(s,n)):(s=G(t,s),-1==(r=N(r=j(r,n),0,-1)).ch&&r.line!=e.firstLine()&&(r=Rt(r.line-1,X(e,r.line-1)))),[s,r]}function re(e,t,n){var i=e.state.vim,o=se(e,t=t||i.sel,n=n||i.visualLine?"line":i.visualBlock?"block":"char");e.setSelections(o.ranges,o.primary),rt(e)}function se(e,t,n,i){var o=K(t.head),r=K(t.anchor);if("char"==n){var s=i||U(t.head,t.anchor)?0:1,a=U(t.head,t.anchor)?1:0;return o=N(t.head,0,s),{ranges:[{anchor:r=N(t.anchor,0,a),head:o}],primary:0}}if("line"==n){if(U(t.head,t.anchor))o.ch=0,r.ch=X(e,r.line);else{r.ch=0;var l=e.lastLine();o.line>l&&(o.line=l),o.ch=X(e,o.line)}return{ranges:[{anchor:r,head:o}],primary:0}}if("block"==n){for(var c=Math.min(r.line,o.line),h=Math.min(r.ch,o.ch),u=Math.max(r.line,o.line),d=Math.max(r.ch,o.ch)+1,g=u-c+1,p=o.line==c?0:g-1,f=[],m=0;m<g;m++)f.push({anchor:Rt(c+m,h),head:Rt(c+m,d)});return{ranges:f,primary:p}}}function ae(e){var t=e.getCursor("head");return 1==e.getSelection().length&&(t=G(t,e.getCursor("anchor"))),t}function le(e,t){var n=e.state.vim;!1!==t&&e.setCursor(B(e,n.sel.head)),ie(e,n),n.visualMode=!1,n.visualLine=!1,n.visualBlock=!1,_t.signal(e,"vim-mode-change",{mode:"normal"}),n.fakeCursor&&n.fakeCursor.clear()}function ce(e,t,n){var i=e.getRange(t,n);if(/\n\s*$/.test(i)){var o=i.split("\n");o.pop();for(var r=o.pop();0<o.length&&r&&v(r);r=o.pop())n.line--,n.ch=0;r?(n.line--,n.ch=X(e,n.line)):n.ch=0}}function he(e,t,n){t.ch=0,n.ch=0,n.line++}function ue(e){if(!e)return 0;var t=e.search(/\S/);return-1==t?e.length:t}function de(e,t,n,i,o){for(var r=ae(e),s=e.getLine(r.line),a=r.ch,l=o?Ft[0]:Bt[0];!l(s.charAt(a));)if(++a>=s.length)return null;i?l=Bt[0]:(l=Ft[0])(s.charAt(a))||(l=Ft[1]);for(var c=a,h=a;l(s.charAt(c))&&c<s.length;)c++;for(;l(s.charAt(h))&&0<=h;)h--;if(h++,t){for(var u=c;/\s/.test(s.charAt(c))&&c<s.length;)c++;if(u==c){for(var d=h;/\s/.test(s.charAt(h-1))&&0<h;)h--;h||(h=d)}}return{start:Rt(r.line,h),end:Rt(r.line,c)}}function ge(e,t,n){V(t,n)||Kt.jumpList.add(e,t,n)}function pe(e,t){Kt.lastCharacterSearch.increment=e,Kt.lastCharacterSearch.forward=t.forward,Kt.lastCharacterSearch.selectedCharacter=t.selectedCharacter}function fe(e,t,n,i){var o=K(e.getCursor()),r=n?1:-1,s=n?e.lineCount():-1,a=o.ch,l=o.line,c=e.getLine(l),h={lineText:c,nextCh:c.charAt(a),lastCh:null,index:a,symb:i,reverseSymb:(n?{")":"(","}":"{"}:{"(":")","{":"}"})[i],forward:n,depth:0,curMoveThrough:!1},u=Jt[i];if(!u)return o;var d=Zt[u].init,g=Zt[u].isComplete;for(d&&d(h);l!==s&&t;){if(h.index+=r,h.nextCh=h.lineText.charAt(h.index),!h.nextCh){if(l+=r,h.lineText=e.getLine(l)||"",0<r)h.index=0;else{var p=h.lineText.length;h.index=0<p?p-1:0}h.nextCh=h.lineText.charAt(h.index)}g(h)&&(o.line=l,o.ch=h.index,t--)}return h.nextCh||h.curMoveThrough?Rt(l,h.index):o}function me(e,t,n,i,o){var r=t.line,s=t.ch,a=e.getLine(r),l=n?1:-1,c=i?Bt:Ft;if(o&&""==a){if(r+=l,a=e.getLine(r),!f(e,r))return null;s=n?0:a.length}for(;;){if(o&&""==a)return{from:0,to:0,line:r};for(var h=0<l?a.length:-1,u=h,d=h;s!=h;){for(var g=!1,p=0;p<c.length&&!g;++p)if(c[p](a.charAt(s))){for(u=s;s!=h&&c[p](a.charAt(s));)s+=l;if(g=u!=(d=s),u==t.ch&&r==t.line&&d==u+l)continue;return{from:Math.min(u,d+1),to:Math.max(u,d),line:r}}g||(s+=l)}if(!f(e,r+=l))return null;a=e.getLine(r),s=0<l?0:a.length}}function ve(e,t,n,i,o,r){var s=K(t),a=[];(i&&!o||!i&&o)&&n++;for(var l=!i||!o,c=0;c<n;c++){var h=me(e,t,i,r,l);if(!h){var u=X(e,e.lastLine());a.push(i?{line:e.lastLine(),from:u,to:u}:{line:0,from:0,to:0});break}a.push(h),t=Rt(h.line,i?h.to-1:h.from)}var d=a.length!=n,g=a[0],p=a.pop();return i&&!o?(!d&&(g.from!=s.ch||g.line!=s.line)&&(p=a.pop()),Rt(p.line,p.from)):i&&o?Rt(p.line,p.to-1):!i&&o?(!d&&(g.to!=s.ch||g.line!=s.line)&&(p=a.pop()),Rt(p.line,p.to)):Rt(p.line,p.from)}function be(e,t,n,i){for(var o,r=e.getCursor(),s=r.ch,a=0;a<t;a++){if(-1==(o=xe(s,e.getLine(r.line),i,n,!0)))return null;s=o}return Rt(e.getCursor().line,o)}function we(e,t){var n=e.getCursor().line;return B(e,Rt(n,t-1))}function ye(e,t,n,i){w(n,Dt)&&(t.marks[n]&&t.marks[n].clear(),t.marks[n]=e.setBookmark(i))}function xe(e,t,n,i,o){var r;return i?-1!=(r=t.indexOf(n,e+1))&&!o&&(r-=1):-1!=(r=t.lastIndexOf(n,e-1))&&!o&&(r+=1),r}function ke(n,e,t,i,o){function r(e){return!/\S/.test(n.getLine(e))}function s(e,t,n){return n?r(e)!=r(e+t):!r(e)&&r(e+t)}function a(e){i=0<i?1:-1;var t=n.ace.session.getFoldLine(e);t&&e+i>t.start.row&&e+i<t.end.row&&(i=(0<i?t.end.row:t.start.row)-e)}var l,c=e.line,h=n.firstLine(),u=n.lastLine(),d=c;if(i){for(;h<=d&&d<=u&&0<t;)a(d),s(d,i)&&t--,d+=i;return new Rt(d,0)}var g=n.state.vim;if(g.visualLine&&s(c,1,!0)){var p=g.sel.anchor;s(p.line,-1,!0)&&(!o||p.line!=c)&&(c+=1)}var f=r(c);for(d=c;d<=u&&t;d++)s(d,1,!0)&&(!o||r(d)!=f)&&t--;for(l=new Rt(d,0),u<d&&!f?f=!0:o=!1,d=c;h<d&&(o&&r(d)!=f&&d!=c||!s(d,-1,!0));d--);return{start:new Rt(d,0),end:l}}function Ce(e,t,n,i){function h(e,t){if(t.pos+t.dir<0||t.pos+t.dir>=t.line.length){if(t.ln+=t.dir,!f(e,t.ln))return t.line=null,t.ln=null,void(t.pos=null);t.line=e.getLine(t.ln),t.pos=0<t.dir?0:t.line.length-1}else t.pos+=t.dir}function o(e,t,n,i){var o=""===(l=e.getLine(t)),r={line:l,ln:t,pos:n,dir:i},s={ln:r.ln,pos:r.pos},a=""===r.line;for(h(e,r);null!==r.line;){if(s.ln=r.ln,s.pos=r.pos,""===r.line&&!a)return{ln:r.ln,pos:r.pos};if(o&&""!==r.line&&!v(r.line[r.pos]))return{ln:r.ln,pos:r.pos};b(r.line[r.pos])&&!o&&(r.pos===r.line.length-1||v(r.line[r.pos+1]))&&(o=!0),h(e,r)}var l=e.getLine(s.ln);s.pos=0;for(var c=l.length-1;0<=c;--c
16
- )if(!v(l[c])){s.pos=c;break}return s}function r(e,t,n,i){var o={line:a=e.getLine(t),ln:t,pos:n,dir:i},r={ln:o.ln,pos:null},s=""===o.line;for(h(e,o);null!==o.line;){if(""===o.line&&!s)return null!==r.pos?r:{ln:o.ln,pos:o.pos};if(b(o.line[o.pos])&&null!==r.pos&&(o.ln!==r.ln||o.pos+1!==r.pos))return r;""!==o.line&&!v(o.line[o.pos])&&(s=!1,r={ln:o.ln,pos:o.pos}),h(e,o)}for(var a=e.getLine(r.ln),l=r.pos=0;l<a.length;++l)if(!v(a[l])){r.pos=l;break}return r}for(var s={ln:t.line,pos:t.ch};0<n;)s=i<0?r(e,s.ln,s.pos,i):o(e,s.ln,s.pos,i),n--;return Rt(s.ln,s.pos)}function Se(e,t,n,i){var o,r,s=t,a={"(":/[()]/,")":/[()]/,"[":/[[\]]/,"]":/[[\]]/,"{":/[{}]/,"}":/[{}]/,"<":/[<>]/,">":/[<>]/}[n],l={"(":"(",")":"(","[":"[","]":"[","{":"{","}":"{","<":"<",">":"<"}[n],c=e.getLine(s.line).charAt(s.ch)===l?1:0;if(o=e.scanForBracket(Rt(s.line,s.ch+c),-1,undefined,{bracketRegex:a}),r=e.scanForBracket(Rt(s.line,s.ch+c),1,undefined,{bracketRegex:a}),!o||!r)return{start:s,end:s};if(o=o.pos,r=r.pos,o.line==r.line&&o.ch>r.ch||o.line>r.line){var h=o;o=r,r=h}return i?r.ch+=1:o.ch+=1,{start:o,end:r}}function $e(e,t,n,i){var o,r,s,a,l=K(t),c=e.getLine(l.line).split(""),h=c.indexOf(n);if(l.ch<h?l.ch=h:h<l.ch&&c[l.ch]==n&&(r=l.ch,--l.ch),c[l.ch]!=n||r)for(s=l.ch;-1<s&&!o;s--)c[s]==n&&(o=s+1);else o=l.ch+1;if(o&&!r)for(s=o,a=c.length;s<a&&!r;s++)c[s]==n&&(r=s);return o&&r?(i&&(--o,++r),{start:Rt(l.line,o),end:Rt(l.line,r)}):{start:l,end:l}}function _e(){}function Ae(e){var t=e.state.vim;return t.searchState_||(t.searchState_=new _e)}function Le(e,t,n,i,o){e.openDialog?e.openDialog(t,i,{bottom:!0,value:o.value,onKeyDown:o.onKeyDown,onKeyUp:o.onKeyUp,selectValueOnOpen:!1,onClose:function(){e.state.vim&&(e.state.vim.status="",e.ace.renderer.$loop.schedule(e.ace.renderer.CHANGE_CURSOR))}}):i(prompt(n,""))}function Me(e){return Te(e,"/")}function Re(e){return Ee(e,"/")}function Te(e,t){var n=Ee(e,t)||[];if(!n.length)return[];var i=[];if(0===n[0]){for(var o=0;o<n.length;o++)"number"==typeof n[o]&&i.push(e.substring(n[o]+1,n[o+1]));return i}}function Ee(e,t){t||(t="/");for(var n=!1,i=[],o=0;o<e.length;o++){var r=e.charAt(o);!n&&r==t&&i.push(o),n=!n&&"\\"==r}return i}function Oe(e){for(var t="|(){",n="}",i=!1,o=[],r=-1;r<e.length;r++){var s=e.charAt(r)||"",a=e.charAt(r+1)||"",l=a&&-1!=t.indexOf(a);i?(("\\"!==s||!l)&&o.push(s),i=!1):"\\"===s?(i=!0,a&&-1!=n.indexOf(a)&&(l=!0),(!l||"\\"===a)&&o.push(s)):(o.push(s),l&&"\\"!==a&&o.push("\\"))}return o.join("")}function Ie(e){for(var t=!1,n=[],i=-1;i<e.length;i++){var o=e.charAt(i)||"",r=e.charAt(i+1)||"";en[o+r]?(n.push(en[o+r]),i++):t?(n.push(o),t=!1):"\\"===o?(t=!0,p(r)||"$"===r?n.push("$"):"/"!==r&&"\\"!==r&&n.push("\\")):("$"===o&&n.push("$"),n.push(o),"/"===r&&n.push("\\"))}return n.join("")}function Fe(e){for(var t=new _t.StringStream(e),n=[];!t.eol();){for(;t.peek()&&"\\"!=t.peek();)n.push(t.next());var i=!1;for(var o in tn)if(t.match(o,!0)){i=!0,n.push(tn[o]);break}i||n.push(t.next())}return n.join("")}function Be(e,t,n){if(Kt.registerController.getRegister("/").setText(e),e instanceof RegExp)return e;var i,o,r=Re(e);r.length?(i=e.substring(0,r[0]),o=-1!=e.substring(r[0]).indexOf("i")):i=e;return i?(k("pcre")||(i=Oe(i)),n&&(t=/^[^A-Z]*$/.test(i)),new RegExp(i,t||o?"i":undefined)):null}function He(e,t){e.openNotification?e.openNotification('<span style="color: red">'+t+"</span>",{bottom:!0,duration:5e3}):alert(t)}function Ne(e,t){var n='<span style="font-family: monospace; white-space: pre">'+(e||"")+'<input type="text" autocorrect="off" autocapitalize="none" autocomplete="off"></span>';return t&&(n+=' <span style="color: #888">'+t+"</span>"),n}function Pe(e,t){var n=(t.prefix||"")+" "+(t.desc||"");Le(e,Ne(t.prefix,t.desc),n,t.onClose,t)}function De(e,t){if(e instanceof RegExp&&t instanceof RegExp){for(var n=["global","multiline","ignoreCase","source"],i=0;i<n.length;i++){var o=n[i];if(e[o]!==t[o])return!1}return!0}return!1}function We(e,t,n,i){if(t){var o=Ae(e),r=Be(t,!!n,!!i);if(r)return Ke(e,r),De(r,o.getQuery())||o.setQuery(r),r}}function ze(n){if("^"==n.source.charAt(0))var i=!0;return{token:function(e){if(!i||e.sol()){var t=e.match(n,!1);if(t)return 0==t[0].length?(e.next(),"searching"):e.sol()||(e.backUp(1),n.exec(e.next()+t[0]))?(e.match(n),"searching"):(e.next(),null);for(;!e.eol()&&(e.next(),!e.match(n,!1)););}else e.skipToEnd()},query:n}}function Ke(e,t){var n=Ae(e),i=n.getOverlay();i&&t==i.query||(i&&e.removeOverlay(i),i=ze(t),e.addOverlay(i),e.showMatchesOnScrollbar&&(n.getScrollbarAnnotate()&&n.getScrollbarAnnotate().clear(),n.setScrollbarAnnotate(e.showMatchesOnScrollbar(t))),n.setOverlay(i))}function Ve(o,r,s,a){return a===undefined&&(a=1),o.operation(function(){for(var e=o.getCursor(),t=o.getSearchCursor(s,e),n=0;n<a;n++){var i=t.find(r);if(0==n&&i&&V(t.from(),e)&&(i=t.find(r)),!i&&!(t=o.getSearchCursor(s,r?Rt(o.lastLine()):Rt(o.firstLine(),0))).find(r))return}return t.from()})}function Ue(e){var t=Ae(e);e.removeOverlay(Ae(e).getOverlay()),t.setOverlay(null),t.getScrollbarAnnotate()&&(t.getScrollbarAnnotate().clear(),t.setScrollbarAnnotate(null))}function Ge(e,t,n){return"number"!=typeof e&&(e=e.line),t instanceof Array?w(e,t):n?t<=e&&e<=n:e==t}function je(e){var t=e.ace.renderer;return{top:t.getFirstFullyVisibleRow(),bottom:t.getLastFullyVisibleRow()}}function qe(e,t,n){var i=t.marks[n];return i&&i.find()}function Xe(o,e,t,n,i,r,s,a,l){function c(){o.operation(function(){for(;!p;)h(),u();d()})}function h(){var e=o.getRange(r.from(),r.to()).replace(s,a);r.replace(e)}function u(){for(;r.findNext()&&Ge(r.from(),n,i);)if(t||!f||r.from().line!=f.line)return o.scrollIntoView(r.from(),30),o.setSelection(r.from(),r.to()),f=r.from(),void(p=!1);p=!0}function d(e){if(e&&e(),o.focus(),f){o.setCursor(f);var t=o.state.vim;t.exMode=!1,t.lastHPos=t.lastHSPos=f.ch}l&&l()}function g(e,t,n){switch(_t.e_stop(e),_t.keyName(e)){case"Y":h(),u();break;case"N":u();break;case"A":var i=l;l=undefined,o.operation(c),l=i;break;case"L":h();case"Q":case"Esc":case"Ctrl-C":case"Ctrl-[":d(n)}return p&&d(n),!0}var p=!(o.state.vim.exMode=!0),f=r.from();if(u(),!p)return e?void Pe(o,{prefix:"replace with <strong>"+a+"</strong> (y/n/a/q/l)",onKeyDown:g}):(c(),void(l&&l()));He(o,"No matches for "+s.source)}function Qe(e){var t=e.state.vim,n=Kt.macroModeState,i=Kt.registerController.getRegister("."),o=n.isPlaying,r=n.lastInsertModeChanges;o||(e.off("change",it),_t.off(e.getInputField(),"keydown",lt)),!o&&1<t.insertModeRepeat&&(ct(e,t,t.insertModeRepeat-1,!0),t.lastEditInputState.repeatOverride=t.insertModeRepeat),delete t.insertModeRepeat,t.insertMode=!1,e.setCursor(e.getCursor().line,e.getCursor().ch-1),e.setOption("keyMap","vim"),e.setOption("disableInput",!0),e.toggleOverwrite(!1),i.setText(r.changes.join("")),_t.signal(e,"vim-mode-change",{mode:"normal"}),n.isRecording&&tt(n)}function Ye(e){At.unshift(e)}function Je(e,t,n,i,o){var r={keys:e,type:t};for(var s in r[t]=n,r[t+"Args"]=i,o)r[s]=o[s];Ye(r)}function Ze(e,t,n,i){var o=Kt.registerController.getRegister(i);if(":"==i)return o.keyBuffer[0]&&sn.processCommand(e,o.keyBuffer[0]),void(n.isPlaying=!1);var r=o.keyBuffer,s=0;n.isPlaying=!0,n.replaySearchQueries=o.searchQueries.slice(0);for(var a=0;a<r.length;a++)for(var l,c,h=r[a];h;)if(c=(l=/<\w+-.+?>|<\w+>|./.exec(h))[0],h=h.substring(l.index+c.length),_t.Vim.handleKey(e,c,"macro"),t.insertMode){var u=o.insertModeChanges[s++].changes;ht(e,Kt.macroModeState.lastInsertModeChanges.changes=u,1),Qe(e)}n.isPlaying=!1}function et(e,t){if(!e.isPlaying){var n=e.latestRegister,i=Kt.registerController.getRegister(n);i&&i.pushText(t)}}function tt(e){if(!e.isPlaying){var t=e.latestRegister,n=Kt.registerController.getRegister(t);n&&n.pushInsertModeChanges&&n.pushInsertModeChanges(e.lastInsertModeChanges)}}function nt(e,t){if(!e.isPlaying){var n=e.latestRegister,i=Kt.registerController.getRegister(n);i&&i.pushSearchQuery&&i.pushSearchQuery(t)}}function it(e,t){var n=Kt.macroModeState,i=n.lastInsertModeChanges;if(!n.isPlaying)for(;t;){if(i.expectCursorActivityForChange=!0,1<i.ignoreCount)i.ignoreCount--;else if("+input"==t.origin||"paste"==t.origin||t.origin===undefined){var o=e.listSelections().length;1<o&&(i.ignoreCount=o);var r=t.text.join("\n");i.maybeReset&&(i.changes=[],i.maybeReset=!1),r&&(e.state.overwrite&&!/\n/.test(r)?i.changes.push([r]):i.changes.push(r))}t=t.next}}function ot(e){var t=e.state.vim;if(t.insertMode){var n=Kt.macroModeState;if(n.isPlaying)return;var i=n.lastInsertModeChanges;i.expectCursorActivityForChange?i.expectCursorActivityForChange=!1:i.maybeReset=!0}else e.curOp.isVimOp||st(e,t);t.visualMode&&rt(e)}function rt(e){var t=e.state.vim,n=B(e,K(t.sel.head)),i=N(n,0,1);t.fakeCursor&&t.fakeCursor.clear(),t.fakeCursor=e.markText(n,i,{className:"cm-animate-fat-cursor"})}function st(e,t,n){var i=e.getCursor("anchor"),o=e.getCursor("head");if(t.visualMode&&!e.somethingSelected()?le(e,!1):!t.visualMode&&!t.insertMode&&e.somethingSelected()&&(t.visualMode=!0,t.visualLine=!1,_t.signal(e,"vim-mode-change",{mode:"visual"})),t.visualMode){var r=U(o,i)?0:-1,s=U(o,i)?-1:0;o=N(o,0,r),i=N(i,0,s),t.sel={anchor:i,head:o},ye(e,t,"<",G(o,i)),ye(e,t,">",j(o,i))}else!t.insertMode&&!n&&(t.lastHPos=e.getCursor().ch)}function at(e){this.keyName=e}function lt(e){function t(){return n.maybeReset&&(n.changes=[],n.maybeReset=!1),n.changes.push(new at(i)),!0}var n=Kt.macroModeState.lastInsertModeChanges,i=_t.keyName(e);i&&(-1!=i.indexOf("Delete")||-1!=i.indexOf("Backspace"))&&_t.lookupKey(i,"vim-insert",t)}function ct(n,i,e,t){function o(){a?qt.processAction(n,i,i.lastEditActionCommand):qt.evalInput(n,i)}function r(e){if(0<s.lastInsertModeChanges.changes.length){e=i.lastEditActionCommand?e:1;var t=s.lastInsertModeChanges;ht(n,t.changes,e)}}var s=Kt.macroModeState;s.isPlaying=!0;var a=!!i.lastEditActionCommand,l=i.inputState;if(i.inputState=i.lastEditInputState,a&&i.lastEditActionCommand.interlaceInsertRepeat)for(var c=0;c<e;c++)o(),r(1);else t||o(),r(e);i.inputState=l,i.insertMode&&!t&&Qe(n),s.isPlaying=!1}function ht(t,e,n){function i(e){return"string"==typeof e?_t.commands[e](t):e(t),!0}var o=t.getCursor("head"),r=Kt.macroModeState.lastInsertModeChanges.visualBlock;r&&(ee(t,o,r+1),n=t.listSelections().length,t.setCursor(o));for(var s=0;s<n;s++){r&&t.setCursor(N(o,s,0));for(var a=0;a<e.length;a++){var l=e[a];if(l instanceof at)_t.lookupKey(l.keyName,"vim-insert",i);else if("string"==typeof l){var c=t.getCursor();t.replaceRange(l,c,c)}else{var h=t.getCursor(),u=N(h,0,l[0].length);t.replaceRange(l[0],h,u)}}}r&&t.setCursor(N(o,0,1))}function ut(e,t,n){1<t.length&&"n"==t[0]&&(t=t.replace("numpad","")),t=an[t]||t;var i="";return n.ctrlKey&&(i+="C-"),n.altKey&&(i+="A-"),(i||1<t.length)&&n.shiftKey&&(i+="S-"),1<(i+=t).length&&(i="<"+i+">"),i}function dt(n){var i=new n.constructor;return Object.keys(n).forEach(function(e){var t=n[e];Array.isArray(t)?t=t.slice():t&&"object"==typeof t&&t.constructor!=Object&&(t=dt(t)),i[e]=t}),n.sel&&(i.sel={head:n.sel.head&&K(n.sel.head),anchor:n.sel.anchor&&K(n.sel.anchor)}),i}function gt(r,s,a){var l=!1,e=Tt.maybeInitVimState_(r),t=e.visualBlock||e.wasInVisualBlock,n=r.ace.inMultiSelectMode;if(e.wasInVisualBlock&&!n?e.wasInVisualBlock=!1:n&&e.visualBlock&&(e.wasInVisualBlock=!0),"<Esc>"!=s||e.insertMode||e.visualMode||!n)if(t||!n||r.ace.inVirtualSelectionMode)l=Tt.handleKey(r,s,a);else{var c=dt(e);r.operation(function(){r.ace.forEachSelection(function(){var e=r.ace.selection;r.state.vim.lastHPos=null==e.$desiredColumn?e.lead.column:e.$desiredColumn;var t=r.getCursor("head"),n=r.getCursor("anchor"),i=U(t,n)?0:-1,o=U(t,n)?-1:0;t=N(t,0,i),n=N(n,0,o),r.state.vim.sel.head=t,r.state.vim.sel.anchor=n,l=ln(r,s,a),e.$desiredColumn=-1==r.state.vim.lastHPos?null:r.state.vim.lastHPos,r.virtualSelectionMode()&&(r.state.vim=dt(c))}),r.curOp.cursorActivity&&!l&&(r.curOp.cursorActivity=!1)},!0)}else r.ace.exitMultiSelectMode();return l&&!e.visualMode&&!e.insert&&e.visualMode!=r.somethingSelected()&&st(r,e,!0),l}function pt(e,t){t.off("beforeEndOperation",pt);var n=t.state.cm.vimCmd;n&&t.execCommand(n.exec?n:n.name,n.args),t.curOp=t.prevOp}var ft=e("../range").Range,mt=e("../lib/event_emitter").EventEmitter,vt=e("../lib/dom"),bt=e("../lib/oop"),wt=e("../lib/keys"),yt=e("../lib/event"),xt=e("../search").Search,kt=e("../lib/useragent"),Ct=e("../search_highlight").SearchHighlight,St=e("../commands/multi_select_commands"),$t=e("../mode/text").Mode.prototype.tokenRe;e("../multi_select");var _t=function(e){this.ace=e,this.state={},this.marks={},this.$uid=0,this.onChange=this.onChange.bind(this),this.onSelectionChange=this.onSelectionChange.bind(this),this.onBeforeEndOperation=this.onBeforeEndOperation.bind(this),this.ace.on("change",this.onChange),this.ace.on("changeSelection",this.onSelectionChange),this.ace.on("beforeEndOperation",this.onBeforeEndOperation)};_t.Pos=function(e,t){if(!(this instanceof Rt))return new Rt(e,t);this.line=e,this.ch=t},_t.defineOption=function(){},_t.commands={redo:function(e){e.ace.redo()},undo:function(e){e.ace.undo()},newlineAndIndent:function(e){e.ace.insert("\n")}},_t.keyMap={},_t.addClass=_t.rmClass=function(){},_t.e_stop=_t.e_preventDefault=yt.stopEvent,_t.keyName=function(e){var t=wt[e.keyCode]||e.key||"";return 1==t.length&&(t=t.toUpperCase()),t=yt.getModifierString(e).replace(/(^|-)\w/g,function(e){return e.toUpperCase()})+t},_t.keyMap["default"]=function(n){return function(e){var t=e.ace.commands.commandKeyBinding[n.toLowerCase()];return t&&!1!==e.ace.execCommand(t)}},_t.lookupKey=function hn(e,t,n){t||(t="default"),"string"==typeof t&&(t=_t.keyMap[t]);var i="function"==typeof t?t(e):t[e];if(!1===i)return"nothing";if("..."===i)return"multi";if(null!=i&&n(i))return"handled";if(t.fallthrough){if(!Array.isArray(t.fallthrough))return hn(e,t.fallthrough,n);for(var o=0;o<t.fallthrough.length;o++){var r=hn(e,t.fallthrough[o],n);if(r)return r}}},_t.signal=function(e,t,n){return e._signal(t,n)},_t.on=yt.addListener,_t.off=yt.removeListener,_t.isWordChar=function(e){return e<"\x7f"?/^\w$/.test(e):($t.lastIndex=0,$t.test(e))},function(){bt.implement(_t.prototype,mt),this.destroy=function(){this.ace.off("change",this.onChange),this.ace.off("changeSelection",this.onSelectionChange),this.ace.off("beforeEndOperation",this.onBeforeEndOperation),this.removeOverlay()},this.virtualSelectionMode=function(){return this.ace.inVirtualSelectionMode&&this.ace.selection.index},this.onChange=function(e){var t={text:"i"==e.action[0]?e.lines:[]},n=this.curOp=this.curOp||{};n.changeHandlers||(n.changeHandlers=this._eventRegistry.change&&this._eventRegistry.change.slice()),n.lastChange?n.lastChange.next=n.lastChange=t:n.lastChange=n.change=t,this.$updateMarkers(e)},this.onSelectionChange=function(){var e=this.curOp=this.curOp||{};e.cursorActivityHandlers||(e.cursorActivityHandlers=this._eventRegistry.cursorActivity&&this._eventRegistry.cursorActivity.slice()),this.curOp.cursorActivity=!0,this.ace.inMultiSelectMode&&this.ace.keyBinding.removeKeyboardHandler(St.keyboardHandler)},this.operation=function(e,t){if(!t&&this.curOp||t&&this.curOp&&this.curOp.force)return e();if((t||!this.ace.curOp)&&this.curOp&&this.onBeforeEndOperation(),!this.ace.curOp){var n=this.ace.prevOp;this.ace.startOperation({command:{name:"vim",scrollIntoView:"cursor"}})}var i=this.curOp=this.curOp||{};this.curOp.force=t;var o=e();return this.ace.curOp&&"vim"==this.ace.curOp.command.name&&(this.state.dialog&&(this.ace.curOp.command.scrollIntoView=!1),this.ace.endOperation(),!i.cursorActivity&&!i.lastChange&&n&&(this.ace.prevOp=n)),(t||!this.ace.curOp)&&this.curOp&&this.onBeforeEndOperation(),o},this.onBeforeEndOperation=function(){var e=this.curOp;e&&(e.change&&this.signal("change",e.change,e),e&&e.cursorActivity&&this.signal("cursorActivity",null,e),this.curOp=null)},this.signal=function(e,t,n){var i=n?n[e+"Handlers"]:(this._eventRegistry||{})[e];if(i){i=i.slice();for(var o=0;o<i.length;o++)i[o](this,t)}},this.firstLine=function(){return 0},this.lastLine=function(){return this.ace.session.getLength()-1},this.lineCount=function(){return this.ace.session.getLength()},this.setCursor=function(e,t){"object"==typeof e&&(t=e.ch,e=e.line),this.ace.inVirtualSelectionMode||this.ace.exitMultiSelectMode(),this.ace.session.unfold({row:e,column:t}),this.ace.selection.moveTo(e,t)},this.getCursor=function(e){var t=this.ace.selection;return c("anchor"==e?t.isEmpty()?t.lead:t.anchor:"head"!=e&&e?t.getRange()[e]:t.lead)},this.listSelections=function(){var e=this.ace.multiSelect.rangeList.ranges;return!e.length||this.ace.inVirtualSelectionMode?[{anchor:this.getCursor("anchor"),head:this.getCursor("head")}]:e.map(function(e){return{anchor:this.clipPos(c(e.cursor==e.end?e.start:e.end)),head:this.clipPos(c(e.cursor))}},this)},this.setSelections=function(e,t){var n=this.ace.multiSelect,i=e.map(function(e){var t=a(e.anchor),n=a(e.head),i=ft.comparePoints(t,n)<0?new ft.fromPoints(t,n):new ft.fromPoints(n,t);return i.cursor=ft.comparePoints(i.start,n)?i.end:i.start,i});if(this.ace.inVirtualSelectionMode)this.ace.selection.fromOrientedRange(i[0]);else{t?i[t]&&i.push(i.splice(t,1)[0]):i=i.reverse(),n.toSingleRange(i[0].clone());for(var o=this.ace.session,r=0;r<i.length;r++){var s=o.$clipRangeToDocument(i[r]);n.addRange(s)}}},this.setSelection=function(e,t,n){var i=this.ace.selection;i.moveTo(e.line,e.ch),i.selectTo(t.line,t.ch),n&&"*mouse"==n.origin&&this.onBeforeEndOperation()},this.somethingSelected=function(){return!this.ace.selection.isEmpty()},this.clipPos=function(e){return c(this.ace.session.$clipPositionToDocument(e.line,e.ch))},this.markText=function(){return{clear:function(){},find:function(){}}},this.$updateMarkers=function(e){var t="insert"==e.action,n=e.start,i=e.end,o=(i.row-n.row)*(t?1:-1),r=(i.column-n.column)*(t?1:-1);for(var s in t&&(i=n),this.marks){var a=this.marks[s],l=ft.comparePoints(a,n);if(!(l<0)){if(0===l&&t){if(1!=a.bias){a.bias=-1;continue}l=1}var c=t?l:ft.comparePoints(a,i);0<c?(a.row+=o,a.column+=a.row==i.row?r:0):!t&&c<=0&&(a.row=n.row,a.column=n.column,0===c&&(a.bias=1))}}};var i=function(e,t,n,i){this.cm=e,this.id=t,this.row=n,this.column=i,e.marks[this.id]=this};i.prototype.clear=function(){delete this.cm.marks[this.id]},i.prototype.find=function(){return c(this)},this.setBookmark=function(e,t){var n=new i(this,this.$uid++,e.line,e.ch);return t&&t.insertLeft||(n.$insertRight=!0),this.marks[n.id]=n},this.moveH=function(e,t){if("char"==t){var n=this.ace.selection;n.clearSelection(),n.moveCursorBy(0,e)}},this.findPosV=function(e,t,n,i){if("page"==n){var o=this.ace.renderer.layerConfig;t*=Math.floor(o.height/o.lineHeight),n="line"}if("line"==n){var r=this.ace.session.documentToScreenPosition(e.line,e.ch);return null!=i&&(r.column=i),r.row+=t,r.row=Math.min(Math.max(0,r.row),this.ace.session.getScreenLength()-1),c(this.ace.session.screenToDocumentPosition(r.row,r.column))}},this.charCoords=function(e,t){if("div"==t||!t)return{left:(i=this.ace.session.documentToScreenPosition(e.line,e.ch)).column,top:i.row};if("local"==t){var n=this.ace.renderer,i=this.ace.session.documentToScreenPosition(e.line,e.ch),o=n.layerConfig.lineHeight,r=n.layerConfig.characterWidth,s=o*i.row;return{left:i.column*r,top:s,bottom:s+o}}},this.coordsChar=function(e,t){var n=this.ace.renderer;if("local"==t){var i=Math.max(0,Math.floor(e.top/n.lineHeight)),o=Math.max(0,Math.floor(e.left/n.characterWidth));return c(n.session.screenToDocumentPosition(i,o))}if("div"==t)throw"not implemented"},this.getSearchCursor=function(n,e){var i=!1,o=!1;n instanceof RegExp&&!n.global&&(i=!n.ignoreCase,n=n.source,o=!0);var r=new xt;e.ch==undefined&&(e.ch=Number.MAX_VALUE);var s={row:e.line,column:e.ch},a=this,l=null;return{findNext:function(){return this.find(!1)},findPrevious:function(){return this.find(!0)},find:function(e){r.setOptions({needle:n,caseSensitive:i,wrap:!1,backwards:e,regExp:o,start:l||s});var t=r.find(a.ace.session);return t&&t.isEmpty()&&a.getLine(t.start.row).length==t.start.column&&(r.$options.start=t,t=r.find(a.ace.session)),l=t},from:function(){return l&&c(l.start)},to:function(){return l&&c(l.end)},replace:function(e){l&&(l.end=a.ace.session.doc.replace(l,e))}}},this.scrollTo=function(e,t){var n=this.ace.renderer,i=n.layerConfig,o=i.maxHeight;o-=(n.$size.scrollerHeight-n.lineHeight)*n.$scrollPastEnd,null!=t&&this.ace.session.setScrollTop(Math.max(0,Math.min(t,o))),null!=e&&this.ace.session.setScrollLeft(Math.max(0,Math.min(e,i.width)))},this.scrollInfo=function(){return 0},this.scrollIntoView=function(e,t){if(e){var n=this.ace.renderer,i={top:0,bottom:t};n.scrollCursorIntoView(a(e),2*n.lineHeight/n.$size.scrollerHeight,i)}},this.getLine=function(e){return this.ace.session.getLine(e)},this.getRange=function(e,t){return this.ace.session.getTextRange(new ft(e.line,e.ch,t.line,t.ch))},this.replaceRange=function(e,t,n){return n||(n=t),this.ace.session.replace(new ft(t.line,t.ch,n.line,n.ch),e)},this.replaceSelections=function(e){var t=this.ace.selection;if(this.ace.inVirtualSelectionMode)this.ace.session.replace(t.getRange(),e[0]||"");else{t.inVirtualSelectionMode=!0;var n=t.rangeList.ranges;n.length||(n=[this.ace.multiSelect.getRange()]);for(var i=n.length;i--;)this.ace.session.replace(n[i],e[i]||"");t.inVirtualSelectionMode=!1}},this.getSelection=function(){return this.ace.getSelectedText()},this.getSelections=function(){return this.listSelections().map(function(e){return this.getRange(e.anchor,e.head)},this)},this.getInputField=function(){return this.ace.textInput.getElement()},this.getWrapperElement=function(){return this.ace.container};var o={indentWithTabs:"useSoftTabs",indentUnit:"tabSize",tabSize:"tabSize",firstLineNumber:"firstLineNumber",readOnly:"readOnly"};this.setOption=function(e,t){switch(this.state[e]=t,e){case"indentWithTabs":e=o[e],t=!t;break;case"keyMap":return void(this.state.$keyMap=t);default:e=o[e]}e&&this.ace.setOption(e,t)},this.getOption=function(e,t){var n=o[e];switch(n&&(t=this.ace.getOption(n)),e){case"indentWithTabs":return e=o[e],!t;case"keyMap":return this.state.$keyMap}return n?t:this.state[e]},this.toggleOverwrite=function(e){return this.state.overwrite=e,this.ace.setOverwrite(e)},this.addOverlay=function(e){if(!this.$searchHighlight||!this.$searchHighlight.session){var n=new Ct(null,"ace_highlight-marker","text"),t=this.ace.session.addDynamicMarker(n);n.id=t.id,n.session=this.ace.session,n.destroy=function(){n.session.off("change",n.updateOnChange),n.session.off("changeEditor",n.destroy),n.session.removeMarker(n.id),n.session=null},n.updateOnChange=function(e){var t=e.start.row;t==e.end.row?n.cache[t]=undefined:n.cache.splice(t,n.cache.length)},n.session.on("changeEditor",n.destroy),n.session.on("change",n.updateOnChange)}var i=new RegExp(e.query.source,"gmi");this.$searchHighlight=e.highlight=n,this.$searchHighlight.setRegexp(i),this.ace.renderer.updateBackMarkers()},this.removeOverlay=function(){this.$searchHighlight&&this.$searchHighlight.session&&this.$searchHighlight.destroy()},this.getScrollInfo=function(){var e=this.ace.renderer,t=e.layerConfig;return{left:e.scrollLeft,top:e.scrollTop,height:t.maxHeight,width:t.width,clientHeight:t.height,clientWidth:t.width}},this.getValue=function(){return this.ace.getValue()},this.setValue=function(e){return this.ace.setValue(e,-1)},this.getTokenTypeAt=function(e){var t=this.ace.session.getTokenAt(e.line,e.ch);return t&&/comment|string/.test(t.type)?"string":""},this.findMatchingBracket=function(e){var t=this.ace.session.findMatchingBracket(a(e));return{to:t&&c(t)}},this.indentLine=function(e,t){!0===t?this.ace.session.indentRows(e,e,"\t"):!1===t&&this.ace.session.outdentRows(new ft(e,0,e,0))},this.indexFromPos=function(e){return this.ace.session.doc.positionToIndex(a(e))},this.posFromIndex=function(e){return c(this.ace.session.doc.indexToPosition(e))},this.focus=function(){return this.ace.textInput.focus()},this.blur=function(){return this.ace.blur()},this.defaultTextHeight=function(){return this.ace.renderer.layerConfig.lineHeight},this.scanForBracket=function(e,t,n,i){var o=i.bracketRegex.source,r=/paren|text|operator|tag/;if(1==t)var s=this.ace.session.$findClosingBracket(o.slice(1,2),a(e),r);else s=this.ace.session.$findOpeningBracket(o.slice(-2,-1),{row:e.line,column:e.ch+1},r);return s&&{pos:c(s)}},this.refresh=function(){return this.ace.resize(!0)},this.getMode=function(){return{name:this.getOption("mode")}},this.execCommand=function(){}}.call(_t.prototype),(_t.StringStream=function(e,t){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0}).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(e){var t=this.string.charAt(this.pos);if("string"==typeof e)var n=t==e;else n=t&&(e.test?e.test(t):e(t));if(n)return++this.pos,t},eatWhile:function(e){for(var t=this.pos;this.eat(e););return this.pos>t},eatSpace:function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},skipToEnd:function(){this.pos=this.string.length},skipTo:function(e){var t=this.string.indexOf(e,this.pos);if(-1<t)return this.pos=t,!0},backUp:function(e){this.pos-=e},column:function(){throw"not implemented"},indentation:function(){throw"not implemented"},match:function(e,t,n){if("string"!=typeof e){var i=this.string.slice(this.pos).match(e);return i&&0<i.index?null:(i&&!1!==t&&(this.pos+=i[0].length),i)}var o=function(e){return n?e.toLowerCase():e};if(o(this.string.substr(this.pos,e.length))==o(e))return!1!==t&&(this.pos+=e.length),!0},current:function(){return this.string.slice(this.start,this.pos)},hideFirstChars:function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}}},_t.defineExtension=function(e,t){_t.prototype[e]=t},vt.importCssString(".normal-mode .ace_cursor{ border: none; background-color: rgba(255,0,0,0.5);}.normal-mode .ace_hidden-cursors .ace_cursor{ background-color: transparent; border: 1px solid red; opacity: 0.7}.ace_dialog { position: absolute; left: 0; right: 0; background: inherit; z-index: 15; padding: .1em .8em; overflow: hidden; color: inherit;}.ace_dialog-top { border-bottom: 1px solid #444; top: 0;}.ace_dialog-bottom { border-top: 1px solid #444; bottom: 0;}.ace_dialog input { border: none; outline: none; background: transparent; width: 20em; color: inherit; font-family: monospace;}","vimMode"),function(){function c(e,t,n){var i;return(i=e.ace.container.appendChild(document.createElement("div"))).className=n?"ace_dialog ace_dialog-bottom":"ace_dialog ace_dialog-top","string"==typeof t?i.innerHTML=t:i.appendChild(t),i}function h(e,t){e.state.currentNotificationClose&&e.state.currentNotificationClose(),e.state.currentNotificationClose=t}_t.defineExtension("openDialog",function(e,t,n){function i(e){if("string"==typeof e)l.value=e;else{if(s)return;if(e&&"blur"==e.type&&document.activeElement===l)return;a.state.dialog=null,s=!0,r.parentNode.removeChild(r),a.focus(),n.onClose&&n.onClose(r)}}if(!this.virtualSelectionMode()){n||(n={}),h(this,null);var o,r=c(this,e,n.bottom),s=!1,a=this,l=(this.state.dialog=r).getElementsByTagName("input")[0];return l?(n.value&&(l.value=n.value,!1!==n.selectValueOnOpen&&l.select()),n.onInput&&_t.on(l,"input",function(e){n.onInput(e,l.value,i)}),n.onKeyUp&&_t.on(l,"keyup",function(e){n.onKeyUp(e,l.value,i)}),_t.on(l,"keydown",function(e){n&&n.onKeyDown&&n.onKeyDown(e,l.value,i)||(13==e.keyCode&&t(l.value),(27==e.keyCode||!1!==n.closeOnEnter&&13==e.keyCode)&&(l.blur(),_t.e_stop(e),i()))}),!1!==n.closeOnBlur&&_t.on(l,"blur",i),l.focus()):(o=r.getElementsByTagName("button")[0])&&(_t.on(o,"click",function(){i(),a.focus()}),!1!==n.closeOnBlur&&_t.on(o,"blur",i),o.focus()),i}}),_t.defineExtension("openNotification",function(e,t){function n(){r||(r=!0,clearTimeout(i),o.parentNode.removeChild(o))}if(!this.virtualSelectionMode()){h(this,n);var i,o=c(this,e,t&&t.bottom),r=!1,s=t&&"undefined"!=typeof t.duration?t.duration:5e3;return _t.on(o,"click",function(e){_t.e_preventDefault(e),n()}),s&&(i=setTimeout(n,s)),n}})}();var At=[{keys:"<Left>",type:"keyToKey",toKeys:"h"},{keys:"<Right>",type:"keyToKey",toKeys:"l"},{keys:"<Up>",type:"keyToKey",toKeys:"k"},{keys:"<Down>",type:"keyToKey",toKeys:"j"},{keys:"<Space>",type:"keyToKey",toKeys:"l"},{keys:"<BS>",type:"keyToKey",toKeys:"h",context:"normal"},{keys:"<Del>",type:"keyToKey",toKeys:"x",context:"normal"},{keys:"<C-Space>",type:"keyToKey",toKeys:"W"},{keys:"<C-BS>",type:"keyToKey",toKeys:"B",context:"normal"},{keys:"<S-Space>",type:"keyToKey",toKeys:"w"},{keys:"<S-BS>",type:"keyToKey",toKeys:"b",context:"normal"},{keys:"<C-n>",type:"keyToKey",toKeys:"j"},{keys:"<C-p>",type:"keyToKey",toKeys:"k"},{keys:"<C-[>",type:"keyToKey",toKeys:"<Esc>"},{keys:"<C-c>",type:"keyToKey",toKeys:"<Esc>"},{keys:"<C-[>",type:"keyToKey",toKeys:"<Esc>",context:"insert"},{keys:"<C-c>",type:"keyToKey",toKeys:"<Esc>",context:"insert"},{keys:"s",type:"keyToKey",toKeys:"cl",context:"normal"},{keys:"s",type:"keyToKey",toKeys:"c",context:"visual"},{keys:"S",type:"keyToKey",toKeys:"cc",context:"normal"},{keys:"S",type:"keyToKey",toKeys:"VdO",context:"visual"},{keys:"<Home>",type:"keyToKey",toKeys:"0"},{keys:"<End>",type:"keyToKey",toKeys:"$"},{keys:"<PageUp>",type:"keyToKey",toKeys:"<C-b>"},{keys:"<PageDown>",type:"keyToKey",toKeys:"<C-f>"},{keys:"<CR>",type:"keyToKey",toKeys:"j^",context:"normal"},{keys:"<Ins>",type:"action",action:"toggleOverwrite",context:"insert"},{keys:"H",type:"motion",motion:"moveToTopLine",motionArgs:{linewise:!0,toJumplist:!0}},{keys:"M",type:"motion",motion:"moveToMiddleLine",motionArgs:{linewise:!0,toJumplist:!0}},{keys:"L",type:"motion",motion:"moveToBottomLine",motionArgs:{linewise:!0,toJumplist:!0}},{keys:"h",type:"motion",motion:"moveByCharacters",motionArgs:{forward:!1}},{keys:"l",type:"motion",motion:"moveByCharacters",motionArgs:{forward:!0}},{keys:"j",type:"motion",motion:"moveByLines",motionArgs:{forward:!0,linewise:!0}},{keys:"k",type:"motion",motion:"moveByLines",motionArgs:{forward:!1,linewise:!0}},{keys:"gj",type:"motion",motion:"moveByDisplayLines",motionArgs:{forward:!0}},{keys:"gk",type:"motion",motion:"moveByDisplayLines",motionArgs:{forward:!1}},{keys:"w",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!1}},{keys:"W",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!1,bigWord:!0}},{keys:"e",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!0,inclusive:!0}},{keys:"E",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!0,bigWord:!0,inclusive:!0}},{keys:"b",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!1}},{keys:"B",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!1,bigWord:!0}},{keys:"ge",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!0,inclusive:!0}},{keys:"gE",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!0,bigWord:!0,inclusive:!0}},{keys:"{",type:"motion",motion:"moveByParagraph",motionArgs:{forward:!1,toJumplist:!0}},{keys:"}",type:"motion",motion:"moveByParagraph",motionArgs:{forward:!0,toJumplist:!0}},{keys:"(",type:"motion",motion:"moveBySentence",motionArgs:{forward:!1}},{keys:")",type:"motion",motion:"moveBySentence",motionArgs:{forward:!0}},{keys:"<C-f>",type:"motion",motion:"moveByPage",motionArgs:{forward:!0}},{keys:"<C-b>",type:"motion",motion:"moveByPage",motionArgs:{forward:!1}},{keys:"<C-d>",type:"motion",motion:"moveByScroll",motionArgs:{forward:!0,explicitRepeat:!0}},{keys:"<C-u>",type:"motion",motion:"moveByScroll",motionArgs:{forward:!1,explicitRepeat:!0}},{keys:"gg",type:"motion",motion:"moveToLineOrEdgeOfDocument",motionArgs:{forward:!1,explicitRepeat:!0,linewise:!0,toJumplist:!0}},{keys:"G",type:"motion",motion:"moveToLineOrEdgeOfDocument",motionArgs:{forward:!0,explicitRepeat:!0,linewise:!0,toJumplist:!0}},{keys:"0",type:"motion",motion:"moveToStartOfLine"},{keys:"^",type:"motion",motion:"moveToFirstNonWhiteSpaceCharacter"},{keys:"+",type:"motion",motion:"moveByLines",motionArgs:{forward:!0,toFirstChar:!0}},{keys:"-",type:"motion",motion:"moveByLines",motionArgs:{forward:!1,toFirstChar:!0}},{keys:"_",type:"motion",motion:"moveByLines",motionArgs:{forward:!0,toFirstChar:!0,repeatOffset:-1}},{keys:"$",type:"motion",motion:"moveToEol",motionArgs:{inclusive:!0}},{keys:"%",type:"motion",motion:"moveToMatchedSymbol",motionArgs:{inclusive:!0,toJumplist:!0}},{keys:"f<character>",type:"motion",motion:"moveToCharacter",motionArgs:{forward:!0,inclusive:!0}},{keys:"F<character>",type:"motion",motion:"moveToCharacter",motionArgs:{forward:!1}},{keys:"t<character>",type:"motion",motion:"moveTillCharacter",motionArgs:{forward:!0,inclusive:!0}},{
17
- keys:"T<character>",type:"motion",motion:"moveTillCharacter",motionArgs:{forward:!1}},{keys:";",type:"motion",motion:"repeatLastCharacterSearch",motionArgs:{forward:!0}},{keys:",",type:"motion",motion:"repeatLastCharacterSearch",motionArgs:{forward:!1}},{keys:"'<character>",type:"motion",motion:"goToMark",motionArgs:{toJumplist:!0,linewise:!0}},{keys:"`<character>",type:"motion",motion:"goToMark",motionArgs:{toJumplist:!0}},{keys:"]`",type:"motion",motion:"jumpToMark",motionArgs:{forward:!0}},{keys:"[`",type:"motion",motion:"jumpToMark",motionArgs:{forward:!1}},{keys:"]'",type:"motion",motion:"jumpToMark",motionArgs:{forward:!0,linewise:!0}},{keys:"['",type:"motion",motion:"jumpToMark",motionArgs:{forward:!1,linewise:!0}},{keys:"]p",type:"action",action:"paste",isEdit:!0,actionArgs:{after:!0,isEdit:!0,matchIndent:!0}},{keys:"[p",type:"action",action:"paste",isEdit:!0,actionArgs:{after:!1,isEdit:!0,matchIndent:!0}},{keys:"]<character>",type:"motion",motion:"moveToSymbol",motionArgs:{forward:!0,toJumplist:!0}},{keys:"[<character>",type:"motion",motion:"moveToSymbol",motionArgs:{forward:!1,toJumplist:!0}},{keys:"|",type:"motion",motion:"moveToColumn"},{keys:"o",type:"motion",motion:"moveToOtherHighlightedEnd",context:"visual"},{keys:"O",type:"motion",motion:"moveToOtherHighlightedEnd",motionArgs:{sameLine:!0},context:"visual"},{keys:"d",type:"operator",operator:"delete"},{keys:"y",type:"operator",operator:"yank"},{keys:"c",type:"operator",operator:"change"},{keys:"=",type:"operator",operator:"indentAuto"},{keys:">",type:"operator",operator:"indent",operatorArgs:{indentRight:!0}},{keys:"<",type:"operator",operator:"indent",operatorArgs:{indentRight:!1}},{keys:"g~",type:"operator",operator:"changeCase"},{keys:"gu",type:"operator",operator:"changeCase",operatorArgs:{toLower:!0},isEdit:!0},{keys:"gU",type:"operator",operator:"changeCase",operatorArgs:{toLower:!1},isEdit:!0},{keys:"n",type:"motion",motion:"findNext",motionArgs:{forward:!0,toJumplist:!0}},{keys:"N",type:"motion",motion:"findNext",motionArgs:{forward:!1,toJumplist:!0}},{keys:"x",type:"operatorMotion",operator:"delete",motion:"moveByCharacters",motionArgs:{forward:!0},operatorMotionArgs:{visualLine:!1}},{keys:"X",type:"operatorMotion",operator:"delete",motion:"moveByCharacters",motionArgs:{forward:!1},operatorMotionArgs:{visualLine:!0}},{keys:"D",type:"operatorMotion",operator:"delete",motion:"moveToEol",motionArgs:{inclusive:!0},context:"normal"},{keys:"D",type:"operator",operator:"delete",operatorArgs:{linewise:!0},context:"visual"},{keys:"Y",type:"operatorMotion",operator:"yank",motion:"expandToLine",motionArgs:{linewise:!0},context:"normal"},{keys:"Y",type:"operator",operator:"yank",operatorArgs:{linewise:!0},context:"visual"},{keys:"C",type:"operatorMotion",operator:"change",motion:"moveToEol",motionArgs:{inclusive:!0},context:"normal"},{keys:"C",type:"operator",operator:"change",operatorArgs:{linewise:!0},context:"visual"},{keys:"~",type:"operatorMotion",operator:"changeCase",motion:"moveByCharacters",motionArgs:{forward:!0},operatorArgs:{shouldMoveCursor:!0},context:"normal"},{keys:"~",type:"operator",operator:"changeCase",context:"visual"},{keys:"<C-w>",type:"operatorMotion",operator:"delete",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!1},context:"insert"},{keys:"<C-w>",type:"idle",context:"normal"},{keys:"<C-i>",type:"action",action:"jumpListWalk",actionArgs:{forward:!0}},{keys:"<C-o>",type:"action",action:"jumpListWalk",actionArgs:{forward:!1}},{keys:"<C-e>",type:"action",action:"scroll",actionArgs:{forward:!0,linewise:!0}},{keys:"<C-y>",type:"action",action:"scroll",actionArgs:{forward:!1,linewise:!0}},{keys:"a",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"charAfter"},context:"normal"},{keys:"A",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"eol"},context:"normal"},{keys:"A",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"endOfSelectedArea"},context:"visual"},{keys:"i",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"inplace"},context:"normal"},{keys:"I",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"firstNonBlank"},context:"normal"},{keys:"I",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"startOfSelectedArea"},context:"visual"},{keys:"o",type:"action",action:"newLineAndEnterInsertMode",isEdit:!0,interlaceInsertRepeat:!0,actionArgs:{after:!0},context:"normal"},{keys:"O",type:"action",action:"newLineAndEnterInsertMode",isEdit:!0,interlaceInsertRepeat:!0,actionArgs:{after:!1},context:"normal"},{keys:"v",type:"action",action:"toggleVisualMode"},{keys:"V",type:"action",action:"toggleVisualMode",actionArgs:{linewise:!0}},{keys:"<C-v>",type:"action",action:"toggleVisualMode",actionArgs:{blockwise:!0}},{keys:"<C-q>",type:"action",action:"toggleVisualMode",actionArgs:{blockwise:!0}},{keys:"gv",type:"action",action:"reselectLastSelection"},{keys:"J",type:"action",action:"joinLines",isEdit:!0},{keys:"p",type:"action",action:"paste",isEdit:!0,actionArgs:{after:!0,isEdit:!0}},{keys:"P",type:"action",action:"paste",isEdit:!0,actionArgs:{after:!1,isEdit:!0}},{keys:"r<character>",type:"action",action:"replace",isEdit:!0},{keys:"@<character>",type:"action",action:"replayMacro"},{keys:"q<character>",type:"action",action:"enterMacroRecordMode"},{keys:"R",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{replace:!0},context:"normal"},{keys:"R",type:"operator",operator:"change",operatorArgs:{linewise:!0,fullLine:!0},context:"visual",exitVisualBlock:!0},{keys:"u",type:"action",action:"undo",context:"normal"},{keys:"u",type:"operator",operator:"changeCase",operatorArgs:{toLower:!0},context:"visual",isEdit:!0},{keys:"U",type:"operator",operator:"changeCase",operatorArgs:{toLower:!1},context:"visual",isEdit:!0},{keys:"<C-r>",type:"action",action:"redo"},{keys:"m<character>",type:"action",action:"setMark"},{keys:'"<character>',type:"action",action:"setRegister"},{keys:"zz",type:"action",action:"scrollToCursor",actionArgs:{position:"center"}},{keys:"z.",type:"action",action:"scrollToCursor",actionArgs:{position:"center"},motion:"moveToFirstNonWhiteSpaceCharacter"},{keys:"zt",type:"action",action:"scrollToCursor",actionArgs:{position:"top"}},{keys:"z<CR>",type:"action",action:"scrollToCursor",actionArgs:{position:"top"},motion:"moveToFirstNonWhiteSpaceCharacter"},{keys:"z-",type:"action",action:"scrollToCursor",actionArgs:{position:"bottom"}},{keys:"zb",type:"action",action:"scrollToCursor",actionArgs:{position:"bottom"},motion:"moveToFirstNonWhiteSpaceCharacter"},{keys:".",type:"action",action:"repeatLastEdit"},{keys:"<C-a>",type:"action",action:"incrementNumberToken",isEdit:!0,actionArgs:{increase:!0,backtrack:!1}},{keys:"<C-x>",type:"action",action:"incrementNumberToken",isEdit:!0,actionArgs:{increase:!1,backtrack:!1}},{keys:"<C-t>",type:"action",action:"indent",actionArgs:{indentRight:!0},context:"insert"},{keys:"<C-d>",type:"action",action:"indent",actionArgs:{indentRight:!1},context:"insert"},{keys:"a<character>",type:"motion",motion:"textObjectManipulation"},{keys:"i<character>",type:"motion",motion:"textObjectManipulation",motionArgs:{textObjectInner:!0}},{keys:"/",type:"search",searchArgs:{forward:!0,querySrc:"prompt",toJumplist:!0}},{keys:"?",type:"search",searchArgs:{forward:!1,querySrc:"prompt",toJumplist:!0}},{keys:"*",type:"search",searchArgs:{forward:!0,querySrc:"wordUnderCursor",wholeWordOnly:!0,toJumplist:!0}},{keys:"#",type:"search",searchArgs:{forward:!1,querySrc:"wordUnderCursor",wholeWordOnly:!0,toJumplist:!0}},{keys:"g*",type:"search",searchArgs:{forward:!0,querySrc:"wordUnderCursor",toJumplist:!0}},{keys:"g#",type:"search",searchArgs:{forward:!1,querySrc:"wordUnderCursor",toJumplist:!0}},{keys:":",type:"ex"}],Lt=At.length,Mt=[{name:"colorscheme",shortName:"colo"},{name:"map"},{name:"imap",shortName:"im"},{name:"nmap",shortName:"nm"},{name:"vmap",shortName:"vm"},{name:"unmap"},{name:"write",shortName:"w"},{name:"undo",shortName:"u"},{name:"redo",shortName:"red"},{name:"set",shortName:"se"},{name:"set",shortName:"se"},{name:"setlocal",shortName:"setl"},{name:"setglobal",shortName:"setg"},{name:"sort",shortName:"sor"},{name:"substitute",shortName:"s",possiblyAsync:!0},{name:"nohlsearch",shortName:"noh"},{name:"yank",shortName:"y"},{name:"delmarks",shortName:"delm"},{name:"registers",shortName:"reg",excludeFromCommandHistory:!0},{name:"global",shortName:"g"}],Rt=_t.Pos,Tt=function(){return jt};_t.defineOption("vimMode",!1,function(e,t,n){t&&"vim"!=e.getOption("keyMap")?e.setOption("keyMap","vim"):!t&&n!=_t.Init&&/^vim/.test(e.getOption("keyMap"))&&e.setOption("keyMap","default")});var Et={Shift:"S",Ctrl:"C",Alt:"A",Cmd:"D",Mod:"A"},Ot={Enter:"CR",Backspace:"BS",Delete:"Del",Insert:"Ins"},It=/[\d]/,Ft=[_t.isWordChar,function(e){return e&&!_t.isWordChar(e)&&!/\s/.test(e)}],Bt=[function(e){return/\S/.test(e)}],Ht=u(65,26),Nt=u(97,26),Pt=u(48,10),Dt=[].concat(Ht,Nt,Pt,["<",">"]),Wt=[].concat(Ht,Nt,Pt,["-",'"',".",":","/"]),zt={};y("filetype",undefined,"string",["ft"],function(e,t){if(t!==undefined){if(e===undefined)return"null"==(n=t.getOption("mode"))?"":n;var n=""==e?"null":e;t.setOption("mode",n)}});var Kt,Vt,Ut=function(){function e(i,e,t){function n(e){var t=++a%s,n=h[t];n&&n.clear(),h[t]=i.setBookmark(e)}var o=h[a%s];if(o){var r=o.find();r&&!V(r,e)&&n(e)}else n(e);n(t),(c=(l=a)-s+1)<0&&(c=0)}function t(e,t){l<(a+=t)?a=l:a<c&&(a=c);var n=h[(s+a)%s];if(n&&!n.find()){var i,o=0<t?1:-1,r=e.getCursor();do{if((n=h[(s+(a+=o))%s])&&(i=n.find())&&!V(r,i))break}while(a<l&&c<a)}return n}var s=100,a=-1,l=0,c=0,h=new Array(s);return{cachedCursor:undefined,add:e,move:t}},Gt=function(e){return e?{changes:e.changes,expectCursorActivityForChange:e.expectCursorActivityForChange}:{changes:[],expectCursorActivityForChange:!1}},jt={buildKeyMap:function(){},getRegisterController:function(){return Kt.registerController},resetVimGlobalState_:$,getVimGlobalState_:function(){return Kt},maybeInitVimState_:S,suppressErrorLogging:!(C.prototype={exitMacroRecordMode:function(){var e=Kt.macroModeState;e.onRecordingDone&&e.onRecordingDone(),e.onRecordingDone=undefined,e.isRecording=!1},enterMacroRecordMode:function(e,t){var n=Kt.registerController.getRegister(t);n&&(n.clear(),this.latestRegister=t,e.openDialog&&(this.onRecordingDone=e.openDialog("(recording)["+t+"]",null,{bottom:!0})),this.isRecording=!0)}}),InsertModeKey:at,map:function(e,t,n){sn.map(e,t,n)},unmap:function(e,t){sn.unmap(e,t)},noremap:function(e,t,n){function i(e){return e?[e]:["normal","insert","visual"]}for(var o=i(n),r=At.length,s=r-Lt;s<r&&o.length;s++){var a=At[s];if(!(a.keys!=t||n&&a.context&&a.context!==n||"ex"===a.type.substr(0,2)||"key"===a.type.substr(0,3))){var l={};for(var c in a)l[c]=a[c];l.keys=e,n&&!l.context&&(l.context=n),this._mapCommand(l);var h=i(a.context);o=o.filter(function(e){return-1===h.indexOf(e)})}}},mapclear:function(e){var t=At.length,n=Lt,i=At.slice(0,t-n);if(At=At.slice(t-n),e)for(var o=i.length-1;0<=o;o--){var r=i[o];if(e!==r.context)if(r.context)this._mapCommand(r);else{var s=["normal","insert","visual"];for(var a in s)if(s[a]!==e){var l={};for(var c in r)l[c]=r[c];l.context=s[a],this._mapCommand(l)}}}},setOption:x,getOption:k,defineOption:y,defineEx:function(e,t,n){if(t){if(0!==e.indexOf(t))throw new Error('(Vim.defineEx) "'+t+'" is not a prefix of "'+e+'", command not registered')}else t=e;rn[e]=n,sn.commandMap_[t]={name:e,shortName:t,type:"api"}},handleKey:function(e,t,n){var i=this.findKey(e,t,n);if("function"==typeof i)return i()},findKey:function(a,l,t){function o(){var e=Kt.macroModeState;if(e.isRecording){if("q"==l)return e.exitMacroRecordMode(),T(a),!0;"mapping"!=t&&et(e,l)}}function c(){if("<Esc>"==l)return T(a),h.visualMode?le(a):h.insertMode&&Qe(a),!0}function e(e){for(var t;e;)t=/<\w+-.+?>|<\w+>|./.exec(e),l=t[0],e=e.substring(t.index+l.length),_t.Vim.handleKey(a,l,"mapping")}function n(){if(c())return!0;for(var e=h.inputState.keyBuffer=h.inputState.keyBuffer+l,t=1==l.length,n=qt.matchCommand(e,At,h.inputState,"insert");1<e.length&&"full"!=n.type;){e=h.inputState.keyBuffer=e.slice(1);var i=qt.matchCommand(e,At,h.inputState,"insert");"none"!=i.type&&(n=i)}if("none"==n.type)return T(a),!1;if("partial"==n.type)return Vt&&window.clearTimeout(Vt),Vt=window.setTimeout(function(){h.insertMode&&h.inputState.keyBuffer&&T(a)},k("insertModeEscKeysTimeout")),!t;if(Vt&&window.clearTimeout(Vt),t){for(var o=a.listSelections(),r=0;r<o.length;r++){var s=o[r].head;a.replaceRange("",N(s,0,-(e.length-1)),s,"+input")}Kt.macroModeState.lastInsertModeChanges.changes.pop()}return T(a),n.command}function i(){if(o()||c())return!0;var e=h.inputState.keyBuffer=h.inputState.keyBuffer+l;if(/^[1-9]\d*$/.test(e))return!0;if(!(t=/^(\d*)(.*)$/.exec(e)))return T(a),!1;var t,n=h.visualMode?"visual":"normal",i=qt.matchCommand(t[2]||t[1],At,h.inputState,n);return"none"==i.type?(T(a),!1):"partial"==i.type||(h.inputState.keyBuffer="",(t=/^(\d*)(.*)$/.exec(e))[1]&&"0"!=t[1]&&h.inputState.pushRepeatDigit(t[1]),i.command)}var r,h=S(a);return!1===(r=h.insertMode?n():i())?undefined:!0===r?function(){return!0}:function(){if(!r.operator&&!r.isEdit||!a.getOption("readOnly"))return a.operation(function(){a.curOp.isVimOp=!0;try{"keyToKey"==r.type?e(r.toKeys):qt.processCommand(a,h,r)}catch(l){throw a.state.vim=undefined,S(a),_t.Vim.suppressErrorLogging||console.log(l),l}return!0})}},handleEx:function(e,t){sn.processCommand(e,t)},defineMotion:E,defineAction:F,defineOperator:I,mapCommand:Je,_mapCommand:Ye,defineRegister:L,exitVisualMode:le,exitInsertMode:Qe};_.prototype.pushRepeatDigit=function(e){this.operator?this.motionRepeat=this.motionRepeat.concat(e):this.prefixRepeat=this.prefixRepeat.concat(e)},_.prototype.getRepeat=function(){var e=0;return(0<this.prefixRepeat.length||0<this.motionRepeat.length)&&(e=1,0<this.prefixRepeat.length&&(e*=parseInt(this.prefixRepeat.join(""),10)),0<this.motionRepeat.length&&(e*=parseInt(this.motionRepeat.join(""),10))),e},A.prototype={setText:function(e,t,n){this.keyBuffer=[e||""],this.linewise=!!t,this.blockwise=!!n},pushText:function(e,t){t&&(this.linewise||this.keyBuffer.push("\n"),this.linewise=!0),this.keyBuffer.push(e)},pushInsertModeChanges:function(e){this.insertModeChanges.push(Gt(e))},pushSearchQuery:function(e){this.searchQueries.push(e)},clear:function(){this.keyBuffer=[],this.insertModeChanges=[],this.searchQueries=[],this.linewise=!1},toString:function(){return this.keyBuffer.join("")}},M.prototype={pushText:function(e,t,n,i,o){i&&"\n"!==n.charAt(n.length-1)&&(n+="\n");var r=this.isValidRegister(e)?this.getRegister(e):null;if(r){m(e)?r.pushText(n,i):r.setText(n,i,o),this.unnamedRegister.setText(r.toString(),i)}else{switch(t){case"yank":this.registers[0]=new A(n,i,o);break;case"delete":case"change":-1==n.indexOf("\n")?this.registers["-"]=new A(n,i):(this.shiftNumericRegisters_(),this.registers[1]=new A(n,i))}this.unnamedRegister.setText(n,i,o)}},getRegister:function(e){return this.isValidRegister(e)?(e=e.toLowerCase(),this.registers[e]||(this.registers[e]=new A),this.registers[e]):this.unnamedRegister},isValidRegister:function(e){return e&&w(e,Wt)},shiftNumericRegisters_:function(){for(var e=9;2<=e;e--)this.registers[e]=this.getRegister(""+(e-1))}},R.prototype={nextMatch:function(e,t){var n=this.historyBuffer,i=t?-1:1;null===this.initialPrefix&&(this.initialPrefix=e);for(var o=this.iterator+i;t?0<=o:o<n.length;o+=i)for(var r=n[o],s=0;s<=r.length;s++)if(this.initialPrefix==r.substring(0,s))return this.iterator=o,r;return o>=n.length?(this.iterator=n.length,this.initialPrefix):o<0?e:void 0},pushInput:function(e){var t=this.historyBuffer.indexOf(e);-1<t&&this.historyBuffer.splice(t,1),e.length&&this.historyBuffer.push(e)},reset:function(){this.initialPrefix=null,this.iterator=this.historyBuffer.length}};var qt={matchCommand:function(e,t,n,i){var o,r=P(e,t,i,n);if(!r.full&&!r.partial)return{type:"none"};if(!r.full&&r.partial)return{type:"partial"};for(var s=0;s<r.full.length;s++){var a=r.full[s];o||(o=a)}if("<character>"==o.keys.slice(-11)){var l=W(e);if(/<C-.>/.test(l)||!l)return{type:"none"};n.selectedCharacter=l}return{type:"full",command:o}},processCommand:function(e,t,n){switch(t.inputState.repeatOverride=n.repeatOverride,n.type){case"motion":this.processMotion(e,t,n);break;case"operator":this.processOperator(e,t,n);break;case"operatorMotion":this.processOperatorMotion(e,t,n);break;case"action":this.processAction(e,t,n);break;case"search":this.processSearch(e,t,n);break;case"ex":case"keyToEx":this.processEx(e,t,n)}},processMotion:function(e,t,n){t.inputState.motion=n.motion,t.inputState.motionArgs=H(n.motionArgs),this.evalInput(e,t)},processOperator:function(e,t,n){var i=t.inputState;if(i.operator){if(i.operator==n.operator)return i.motion="expandToLine",i.motionArgs={linewise:!0},void this.evalInput(e,t);T(e)}i.operator=n.operator,i.operatorArgs=H(n.operatorArgs),n.exitVisualBlock&&(t.visualBlock=!1,re(e)),t.visualMode&&this.evalInput(e,t)},processOperatorMotion:function(e,t,n){var i=t.visualMode,o=H(n.operatorMotionArgs);o&&i&&o.visualLine&&(t.visualLine=!0),this.processOperator(e,t,n),i||this.processMotion(e,t,n)},processAction:function(e,t,n){var i=t.inputState,o=i.getRepeat(),r=!!o,s=H(n.actionArgs)||{};i.selectedCharacter&&(s.selectedCharacter=i.selectedCharacter),n.operator&&this.processOperator(e,t,n),n.motion&&this.processMotion(e,t,n),(n.motion||n.operator)&&this.evalInput(e,t),s.repeat=o||1,s.repeatIsExplicit=r,s.registerName=i.registerName,T(e),t.lastMotion=null,n.isEdit&&this.recordLastEdit(t,i,n),Yt[n.action](e,s,t)},processSearch:function(a,i,o){function n(e,t,n){Kt.searchHistoryController.pushInput(e),Kt.searchHistoryController.reset();try{We(a,e,t,n)}catch(h){return He(a,"Invalid regex: "+e),void T(a)}qt.processMotion(a,i,{type:"motion",motion:"findNext",motionArgs:{forward:!0,toJumplist:o.searchArgs.toJumplist}})}function e(e){n(e,!0,!0);var t=Kt.macroModeState;t.isRecording&&nt(t,e)}function t(e,t,n){var i,o,r,s=_t.keyName(e);"Up"==s||"Down"==s?(i="Up"==s,o=e.target?e.target.selectionEnd:0,n(t=Kt.searchHistoryController.nextMatch(t,i)||""),o&&e.target&&(e.target.selectionEnd=e.target.selectionStart=Math.min(o,e.target.value.length))):"Left"!=s&&"Right"!=s&&"Ctrl"!=s&&"Alt"!=s&&"Shift"!=s&&Kt.searchHistoryController.reset();try{r=We(a,t,!0,!0)}catch(e){}r?a.scrollIntoView(Ve(a,!l,r),30):(Ue(a),a.scrollTo(u.left,u.top))}function r(e,t,n){var i=_t.keyName(e);"Esc"==i||"Ctrl-C"==i||"Ctrl-["==i||"Backspace"==i&&""==t?(Kt.searchHistoryController.pushInput(t),Kt.searchHistoryController.reset(),We(a,h),Ue(a),a.scrollTo(u.left,u.top),_t.e_stop(e),T(a),n(),a.focus()):"Up"==i||"Down"==i?_t.e_stop(e):"Ctrl-U"==i&&(_t.e_stop(e),n(""))}if(a.getSearchCursor){var l=o.searchArgs.forward,s=o.searchArgs.wholeWordOnly;Ae(a).setReversed(!l);var c=l?"/":"?",h=Ae(a).getQuery(),u=a.getScrollInfo();switch(o.searchArgs.querySrc){case"prompt":var d=Kt.macroModeState;if(d.isPlaying)n(f=d.replaySearchQueries.shift(),!0,!1);else Pe(a,{onClose:e,prefix:c,desc:nn,onKeyUp:t,onKeyDown:r});break;case"wordUnderCursor":var g=de(a,!1,!0,!1,!0),p=!0;if(g||(g=de(a,!1,!0,!1,!1),p=!1),!g)return;var f=a.getLine(g.start.line).substring(g.start.ch,g.end.ch);f=p&&s?"\\b"+f+"\\b":Y(f),Kt.jumpList.cachedCursor=a.getCursor(),a.setCursor(g.start),n(f,!0,!1)}}},processEx:function(s,e,t){function n(e){Kt.exCommandHistoryController.pushInput(e),Kt.exCommandHistoryController.reset(),sn.processCommand(s,e)}function i(e,t,n){var i,o,r=_t.keyName(e);("Esc"==r||"Ctrl-C"==r||"Ctrl-["==r||"Backspace"==r&&""==t)&&(Kt.exCommandHistoryController.pushInput(t),Kt.exCommandHistoryController.reset(),_t.e_stop(e),T(s),n(),s.focus()),"Up"==r||"Down"==r?(_t.e_stop(e),i="Up"==r,o=e.target?e.target.selectionEnd:0,n(t=Kt.exCommandHistoryController.nextMatch(t,i)||""),o&&e.target&&(e.target.selectionEnd=e.target.selectionStart=Math.min(o,e.target.value.length))):"Ctrl-U"==r?(_t.e_stop(e),n("")):"Left"!=r&&"Right"!=r&&"Ctrl"!=r&&"Alt"!=r&&"Shift"!=r&&Kt.exCommandHistoryController.reset()}"keyToEx"==t.type?sn.processCommand(s,t.exArgs.input):e.visualMode?Pe(s,{onClose:n,prefix:":",value:"'<,'>",onKeyDown:i,selectValueOnOpen:!1}):Pe(s,{onClose:n,prefix:":",onKeyDown:i})},evalInput:function(e,t){var n,i,o,r=t.inputState,s=r.motion,a=r.motionArgs||{},l=r.operator,c=r.operatorArgs||{},h=r.registerName,u=t.sel,d=K(t.visualMode?B(e,u.head):e.getCursor("head")),g=K(t.visualMode?B(e,u.anchor):e.getCursor("anchor")),p=K(d),f=K(g);if(l&&this.recordLastEdit(t,r),0<(o=r.repeatOverride!==undefined?r.repeatOverride:r.getRepeat())&&a.explicitRepeat?a.repeatIsExplicit=!0:(a.noRepeat||!a.explicitRepeat&&0===o)&&(o=1,a.repeatIsExplicit=!1),r.selectedCharacter&&(a.selectedCharacter=c.selectedCharacter=r.selectedCharacter),a.repeat=o,T(e),s){var m=Xt[s](e,d,a,t);if(t.lastMotion=Xt[s],!m)return;if(a.toJumplist){!l&&null!=e.ace.curOp&&(e.ace.curOp.command.scrollIntoView="center-animate");var v=Kt.jumpList,b=v.cachedCursor;b?(ge(e,b,m),delete v.cachedCursor):ge(e,d,m)}m instanceof Array?(i=m[0],n=m[1]):n=m,n||(n=K(d)),t.visualMode?(t.visualBlock&&n.ch===Infinity||(n=B(e,n,t.visualBlock)),i&&(i=B(e,i,!0)),i=i||f,u.anchor=i,u.head=n,re(e),ye(e,t,"<",U(i,n)?i:n),ye(e,t,">",U(i,n)?n:i)):l||(n=B(e,n),e.setCursor(n.line,n.ch))}if(l){if(c.lastSel){i=f;var w=c.lastSel,y=Math.abs(w.head.line-w.anchor.line),x=Math.abs(w.head.ch-w.anchor.ch);n=w.visualLine?Rt(f.line+y,f.ch):w.visualBlock?Rt(f.line+y,f.ch+x):w.head.line==w.anchor.line?Rt(f.line,f.ch+x):Rt(f.line+y,f.ch),t.visualMode=!0,t.visualLine=w.visualLine,t.visualBlock=w.visualBlock,u=t.sel={anchor:i,head:n},re(e)}else t.visualMode&&(c.lastSel={anchor:K(u.anchor),head:K(u.head),visualBlock:t.visualBlock,visualLine:t.visualLine});var k,C,S,$,_;if(t.visualMode){if(k=G(u.head,u.anchor),C=j(u.head,u.anchor),S=t.visualLine||c.linewise,_=se(e,{anchor:k,head:C},$=t.visualBlock?"block":S?"line":"char"),S){var A=_.ranges;if("block"==$)for(var L=0;L<A.length;L++)A[L].head.ch=X(e,A[L].head.line);else"line"==$&&(A[0].head=Rt(A[0].head.line+1,0))}}else{if(k=K(i||f),U(C=K(n||p),k)){var M=k;k=C,C=M}(S=a.linewise||c.linewise)?he(e,k,C):a.forward&&ce(e,k,C),_=se(e,{anchor:k,head:C},$="char",!a.inclusive||S)}e.setSelections(_.ranges,_.primary),t.lastMotion=null,c.repeat=o,c.registerName=h,c.linewise=S;var R=Qt[l](e,c,_.ranges,f,n);t.visualMode&&le(e,null!=R),R&&e.setCursor(R)}},recordLastEdit:function(e,t,n){var i=Kt.macroModeState;i.isPlaying||(e.lastEditInputState=t,e.lastEditActionCommand=n,i.lastInsertModeChanges.changes=[],i.lastInsertModeChanges.expectCursorActivityForChange=!1,i.lastInsertModeChanges.visualBlock=e.visualBlock?e.sel.head.line-e.sel.anchor.line:0)}},Xt={moveToTopLine:function(e,t,n){var i=je(e).top+n.repeat-1;return Rt(i,ue(e.getLine(i)))},moveToMiddleLine:function(e){var t=je(e),n=Math.floor(.5*(t.top+t.bottom));return Rt(n,ue(e.getLine(n)))},moveToBottomLine:function(e,t,n){var i=je(e).bottom-n.repeat+1;return Rt(i,ue(e.getLine(i)))},expandToLine:function(e,t,n){return Rt(t.line+n.repeat-1,Infinity)},findNext:function(e,t,n){var i=Ae(e),o=i.getQuery();if(o){var r=!n.forward;return r=i.isReversed()?!r:r,Ke(e,o),Ve(e,r,o,n.repeat)}},goToMark:function(e,t,n,i){var o=qe(e,i,n.selectedCharacter);return o?n.linewise?{line:o.line,ch:ue(e.getLine(o.line))}:o:null},moveToOtherHighlightedEnd:function(e,t,n,i){if(i.visualBlock&&n.sameLine){var o=i.sel;return[B(e,Rt(o.anchor.line,o.head.ch)),B(e,Rt(o.head.line,o.anchor.ch))]}return[i.sel.head,i.sel.anchor]},jumpToMark:function(e,t,n,i){for(var o=t,r=0;r<n.repeat;r++){var s=o;for(var a in i.marks)if(d(a)){var l=i.marks[a].find();if(!((n.forward?U(l,s):U(s,l))||n.linewise&&l.line==s.line)){var c=V(s,o),h=n.forward?q(s,l,o):q(o,l,s);(c||h)&&(o=l)}}}return n.linewise&&(o=Rt(o.line,ue(e.getLine(o.line)))),o},moveByCharacters:function(e,t,n){var i=t,o=n.repeat,r=n.forward?i.ch+o:i.ch-o;return Rt(i.line,r)},moveByLines:function(e,t,n,i){var o=t,r=o.ch;switch(i.lastMotion){case this.moveByLines:case this.moveByDisplayLines:case this.moveByScroll:case this.moveToColumn:case this.moveToEol:r=i.lastHPos;break;default:i.lastHPos=r}var s=n.repeat+(n.repeatOffset||0),a=n.forward?o.line+s:o.line-s,l=e.firstLine(),c=e.lastLine();if(a<l&&o.line==l)return this.moveToStartOfLine(e,t,n,i);if(c<a&&o.line==c)return this.moveToEol(e,t,n,i,!0);var h=e.ace.session.getFoldLine(a);return h&&(n.forward?a>h.start.row&&(a=h.end.row+1):a=h.start.row),n.toFirstChar&&(r=ue(e.getLine(a)),i.lastHPos=r),i.lastHSPos=e.charCoords(Rt(a,r),"div").left,Rt(a,r)},moveByDisplayLines:function(e,t,n,i){var o=t;switch(i.lastMotion){case this.moveByDisplayLines:case this.moveByScroll:case this.moveByLines:case this.moveToColumn:case this.moveToEol:break;default:i.lastHSPos=e.charCoords(o,"div").left}var r=n.repeat;if((a=e.findPosV(o,n.forward?r:-r,"line",i.lastHSPos)).hitSide)if(n.forward)var s={top:e.charCoords(a,"div").top+8,left:i.lastHSPos},a=e.coordsChar(s,"div");else{var l=e.charCoords(Rt(e.firstLine(),0),"div");l.left=i.lastHSPos,a=e.coordsChar(l,"div")}return i.lastHPos=a.ch,a},moveByPage:function(e,t,n){var i=t,o=n.repeat;return e.findPosV(i,n.forward?o:-o,"page")},moveByParagraph:function(e,t,n){var i=n.forward?1:-1;return ke(e,t,n.repeat,i)},moveBySentence:function(e,t,n){var i=n.forward?1:-1;return Ce(e,t,n.repeat,i)},moveByScroll:function(e,t,n,i){var o=e.getScrollInfo(),r=null,s=n.repeat;s||(s=o.clientHeight/(2*e.defaultTextHeight()));var a=e.charCoords(t,"local");if(n.repeat=s,!(r=Xt.moveByDisplayLines(e,t,n,i)))return null;var l=e.charCoords(r,"local");return e.scrollTo(null,o.top+l.top-a.top),r},moveByWords:function(e,t,n){return ve(e,t,n.repeat,!!n.forward,!!n.wordEnd,!!n.bigWord)},moveTillCharacter:function(e,t,n){var i=be(e,n.repeat,n.forward,n.selectedCharacter),o=n.forward?-1:1;return pe(o,n),i?(i.ch+=o,i):null},moveToCharacter:function(e,t,n){var i=n.repeat;return pe(0,n),be(e,i,n.forward,n.selectedCharacter)||t},moveToSymbol:function(e,t,n){return fe(e,n.repeat,n.forward,n.selectedCharacter)||t},moveToColumn:function(e,t,n,i){var o=n.repeat;return i.lastHPos=o-1,i.lastHSPos=e.charCoords(t,"div").left,we(e,o)},moveToEol:function(e,t,n,i,o){var r=Rt(t.line+n.repeat-1,Infinity),s=e.clipPos(r);return s.ch--,o||(i.lastHPos=Infinity,i.lastHSPos=e.charCoords(s,"div").left),r},moveToFirstNonWhiteSpaceCharacter:function(e,t){var n=t;return Rt(n.line,ue(e.getLine(n.line)))},moveToMatchedSymbol:function(e,t){for(var n,i=t,o=i.line,r=i.ch,s=e.getLine(o);r<s.length;r++)if((n=s.charAt(r))&&g(n)){var a=e.getTokenTypeAt(Rt(o,r+1));if("string"!==a&&"comment"!==a)break}if(r<s.length){var l=/[<>]/.test(s[r])?/[(){}[\]<>]/:/[(){}[\]]/;return e.findMatchingBracket(Rt(o,r+1),{bracketRegex:l}).to}return i},moveToStartOfLine:function(e,t){return Rt(t.line,0)},moveToLineOrEdgeOfDocument:function(e,t,n){var i=n.forward?e.lastLine():e.firstLine();return n.repeatIsExplicit&&(i=n.repeat-e.getOption("firstLineNumber")),Rt(i,ue(e.getLine(i)))},textObjectManipulation:function(e,t,n,i){var o={"(":")",")":"(","{":"}","}":"{","[":"]","]":"[","<":">",">":"<"},r={"'":!0,'"':!0,"`":!0},s=n.selectedCharacter;"b"==s?s="(":"B"==s&&(s="{");var a,l=!n.textObjectInner;if(o[s])a=Se(e,t,s,l);else if(r[s])a=$e(e,t,s,l);else if("W"===s)a=de(e,l,!0,!0);else if("w"===s)a=de(e,l,!0,!1);else{if("p"!==s)return null;if(a=ke(e,t,n.repeat,0,l),n.linewise=!0,i.visualMode)i.visualLine||(i.visualLine=!0);else{var c=i.inputState.operatorArgs;c&&(c.linewise=!0),a.end.line--}}return e.state.vim.visualMode?oe(e,a.start,a.end):[a.start,a.end]},repeatLastCharacterSearch:function(e,t,n){var i=Kt.lastCharacterSearch,o=n.repeat,r=n.forward===i.forward,s=(i.increment?1:0)*(r?-1:1);e.moveH(-s,"char"),n.inclusive=!!r;var a=be(e,o,r,i.selectedCharacter);return a?(a.ch+=s,a):(e.moveH(s,"char"),t)}},Qt={change:function(e,t,n){var i,o,r=e.state.vim,s=n[0].anchor,a=n[0].head;if(r.visualMode)if(t.fullLine)a.ch=Number.MAX_VALUE,a.line--,e.setSelection(s,a),o=e.getSelection(),e.replaceSelections(""),i=s;else{o=e.getSelection();var l=O("",n.length);e.replaceSelections(l),i=G(n[0].head,n[0].anchor)}else{o=e.getRange(s,a);var c=r.lastEditInputState||{};if("moveByWords"==c.motion&&!v(o)){var h=/\s+$/.exec(o);h&&c.motionArgs&&c.motionArgs.forward&&(a=N(a,0,-h[0].length),o=o.slice(0,-h[0].length))}var u=new Rt(s.line-1,Number.MAX_VALUE),d=e.firstLine()==e.lastLine();a.line>e.lastLine()&&t.linewise&&!d?e.replaceRange("",u,a):e.replaceRange("",s,a),t.linewise&&(d||(e.setCursor(u),_t.commands.newlineAndIndent(e)),s.ch=Number.MAX_VALUE),i=s}Kt.registerController.pushText(t.registerName,"change",o,t.linewise,1<n.length),Yt.enterInsertMode(e,{head:i},e.state.vim)},"delete":function(e,t,n){var i,o,r=e.state.vim;if(r.visualBlock){o=e.getSelection();var s=O("",n.length);e.replaceSelections(s),i=n[0].anchor}else{var a=n[0].anchor,l=n[0].head;t.linewise&&l.line!=e.firstLine()&&a.line==e.lastLine()&&a.line==l.line-1&&(a.line==e.firstLine()?a.ch=0:a=Rt(a.line-1,X(e,a.line-1))),o=e.getRange(a,l),e.replaceRange("",a,l),i=a,t.linewise&&(i=Xt.moveToFirstNonWhiteSpaceCharacter(e,a))}return Kt.registerController.pushText(t.registerName,"delete",o,t.linewise,r.visualBlock),B(e,i,r.insertMode)},indent:function(e,t,n){var i=e.state.vim,o=n[0].anchor.line,r=i.visualBlock?n[n.length-1].anchor.line:n[0].head.line,s=i.visualMode?t.repeat:1;t.linewise&&r--;for(var a=o;a<=r;a++)for(var l=0;l<s;l++)e.indentLine(a,t.indentRight);return Xt.moveToFirstNonWhiteSpaceCharacter(e,n[0].anchor)},indentAuto:function(e,t,n){return e.execCommand("indentAuto"),Xt.moveToFirstNonWhiteSpaceCharacter(e,n[0].anchor)},changeCase:function(e,t,n,i,o){for(var r=e.getSelections(),s=[],a=t.toLower,l=0;l<r.length;l++){var c=r[l],h="";if(!0===a)h=c.toLowerCase();else if(!1===a)h=c.toUpperCase();else for(var u=0;u<c.length;u++){var d=c.charAt(u);h+=m(d)?d.toLowerCase():d.toUpperCase()}s.push(h)}return e.replaceSelections(s),t.shouldMoveCursor?o:!e.state.vim.visualMode&&t.linewise&&n[0].anchor.line+1==n[0].head.line?Xt.moveToFirstNonWhiteSpaceCharacter(e,i):t.linewise?i:G(n[0].anchor,n[0].head)},yank:function(e,t,n,i){var o=e.state.vim,r=e.getSelection(),s=o.visualMode?G(o.sel.anchor,o.sel.head,n[0].head,n[0].anchor):i;return Kt.registerController.pushText(t.registerName,"yank",r,t.linewise,o.visualBlock),s}},Yt={jumpListWalk:function(e,t,n){if(!n.visualMode){var i=t.repeat,o=t.forward,r=Kt.jumpList.move(e,o?i:-i),s=r?r.find():undefined;s=s||e.getCursor(),e.setCursor(s),e.ace.curOp.command.scrollIntoView="center-animate"}},scroll:function(e,t,n){if(!n.visualMode){var i=t.repeat||1,o=e.defaultTextHeight(),r=e.getScrollInfo().top,s=o*i,a=t.forward?r+s:r-s,l=K(e.getCursor()),c=e.charCoords(l,"local");if(t.forward)a>c.top?(l.line+=(a-c.top)/o,l.line=Math.ceil(l.line),e.setCursor(l),c=e.charCoords(l,"local"),e.scrollTo(null,c.top)):e.scrollTo(null,a);else{var h=a+e.getScrollInfo().clientHeight;h<c.bottom?(l.line-=(c.bottom-h)/o,l.line=Math.floor(l.line),e.setCursor(l),c=e.charCoords(l,"local"),e.scrollTo(null,c.bottom-e.getScrollInfo().clientHeight)):e.scrollTo(null,a)}}},scrollToCursor:function(e,t){var n=e.getCursor().line,i=e.charCoords(Rt(n,0),"local"),o=e.getScrollInfo().clientHeight,r=i.top,s=i.bottom-r;switch(t.position){case"center":r=r-o/2+s;break;case"bottom":r=r-o+s}e.scrollTo(null,r)},replayMacro:function(e,t,n){var i=t.selectedCharacter,o=t.repeat,r=Kt.macroModeState;for("@"==i?i=r.latestRegister:r.latestRegister=i;o--;)Ze(e,n,r,i)},enterMacroRecordMode:function(e,t){var n=Kt.macroModeState,i=t.selectedCharacter;Kt.registerController.isValidRegister(i)&&n.enterMacroRecordMode(e,i)},toggleOverwrite:function(e){e.state.overwrite?(e.toggleOverwrite(!1),e.setOption("keyMap","vim-insert"),_t.signal(e,"vim-mode-change",{mode:"insert"})):(e.toggleOverwrite(!0),e.setOption("keyMap","vim-replace"),_t.signal(e,"vim-mode-change",{mode:"replace"}))},enterInsertMode:function(e,t,n){if(!e.getOption("readOnly")){n.insertMode=!0,n.insertModeRepeat=t&&t.repeat||1;var i=t?t.insertAt:null,o=n.sel,r=t.head||e.getCursor("head"),s=e.listSelections().length;if("eol"==i)r=Rt(r.line,X(e,r.line));else if("charAfter"==i)r=N(r,0,1);else if("firstNonBlank"==i)r=Xt.moveToFirstNonWhiteSpaceCharacter(e,r);else if("startOfSelectedArea"==i){if(!n.visualMode)return;n.visualBlock?(r=Rt(Math.min(o.head.line,o.anchor.line),Math.min(o.head.ch,o.anchor.ch)),s=Math.abs(o.head.line-o.anchor.line)+1):r=o.head.line<o.anchor.line?o.head:Rt(o.anchor.line,0)}else if("endOfSelectedArea"==i){if(!n.visualMode)return;n.visualBlock?(r=Rt(Math.min(o.head.line,o.anchor.line),Math.max(o.head.ch+1,o.anchor.ch)),s=Math.abs(o.head.line-o.anchor.line)+1):r=o.head.line>=o.anchor.line?N(o.head,0,1):Rt(o.anchor.line,0)}else if("inplace"==i&&n.visualMode)return;e.setOption("disableInput",!1),t&&t.replace?(e.toggleOverwrite(!0),e.setOption(
18
- "keyMap","vim-replace"),_t.signal(e,"vim-mode-change",{mode:"replace"})):(e.toggleOverwrite(!1),e.setOption("keyMap","vim-insert"),_t.signal(e,"vim-mode-change",{mode:"insert"})),Kt.macroModeState.isPlaying||(e.on("change",it),_t.on(e.getInputField(),"keydown",lt)),n.visualMode&&le(e),ee(e,r,s)}},toggleVisualMode:function(e,t,n){var i,o=t.repeat,r=e.getCursor();n.visualMode?n.visualLine^t.linewise||n.visualBlock^t.blockwise?(n.visualLine=!!t.linewise,n.visualBlock=!!t.blockwise,_t.signal(e,"vim-mode-change",{mode:"visual",subMode:n.visualLine?"linewise":n.visualBlock?"blockwise":""}),re(e)):le(e):(n.visualMode=!0,n.visualLine=!!t.linewise,n.visualBlock=!!t.blockwise,i=B(e,Rt(r.line,r.ch+o-1),!0),n.sel={anchor:r,head:i},_t.signal(e,"vim-mode-change",{mode:"visual",subMode:n.visualLine?"linewise":n.visualBlock?"blockwise":""}),re(e),ye(e,n,"<",G(r,i)),ye(e,n,">",j(r,i)))},reselectLastSelection:function(e,t,n){var i=n.lastSelection;if(n.visualMode&&ie(e,n),i){var o=i.anchorMark.find(),r=i.headMark.find();if(!o||!r)return;n.sel={anchor:o,head:r},n.visualMode=!0,n.visualLine=i.visualLine,n.visualBlock=i.visualBlock,re(e),ye(e,n,"<",G(o,r)),ye(e,n,">",j(o,r)),_t.signal(e,"vim-mode-change",{mode:"visual",subMode:n.visualLine?"linewise":n.visualBlock?"blockwise":""})}},joinLines:function(e,t,n){var i,o;if(n.visualMode){if(i=e.getCursor("anchor"),U(o=e.getCursor("head"),i)){var r=o;o=i,i=r}o.ch=X(e,o.line)-1}else{var s=Math.max(t.repeat,2);i=e.getCursor(),o=B(e,Rt(i.line+s-1,Infinity))}for(var a=0,l=i.line;l<o.line;l++){a=X(e,i.line);r=Rt(i.line+1,X(e,i.line+1));var c=e.getRange(i,r);c=c.replace(/\n\s*/g," "),e.replaceRange(c,i,r)}var h=Rt(i.line,a);n.visualMode&&le(e,!1),e.setCursor(h)},newLineAndEnterInsertMode:function(e,t,n){n.insertMode=!0;var i=K(e.getCursor());i.line!==e.firstLine()||t.after?(i.line=t.after?i.line:i.line-1,i.ch=X(e,i.line),e.setCursor(i),(_t.commands.newlineAndIndentContinueComment||_t.commands.newlineAndIndent)(e)):(e.replaceRange("\n",Rt(e.firstLine(),0)),e.setCursor(e.firstLine(),0));this.enterInsertMode(e,{repeat:t.repeat},n)},paste:function(i,e,t){var n=K(i.getCursor()),o=Kt.registerController.getRegister(e.registerName);if(d=o.toString()){if(e.matchIndent){var r=i.getOption("tabSize"),s=function(e){var t=e.split("\t").length-1,n=e.split(" ").length-1;return t*r+1*n},a=i.getLine(i.getCursor().line),l=s(a.match(/^\s*/)[0]),c=d.replace(/\n$/,""),h=d!==c,u=s(d.match(/^\s*/)[0]),d=c.replace(/^\s*/gm,function(e){var t=l+(s(e)-u);if(t<0)return"";if(i.getOption("indentWithTabs")){var n=Math.floor(t/r);return Array(n+1).join("\t")}return Array(t+1).join(" ")});d+=h?"\n":""}if(1<e.repeat)d=Array(e.repeat+1).join(d);var g,p,f=o.linewise,m=o.blockwise;if(m){d=d.split("\n"),f&&d.pop();for(var v=0;v<d.length;v++)d[v]=""==d[v]?" ":d[v];n.ch+=e.after?1:0,n.ch=Math.min(X(i,n.line),n.ch)}else f?t.visualMode?d=t.visualLine?d.slice(0,-1):"\n"+d.slice(0,d.length-1)+"\n":e.after?(d="\n"+d.slice(0,d.length-1),n.ch=X(i,n.line)):n.ch=0:n.ch+=e.after?1:0;if(t.visualMode){t.lastPastedText=d;var b,w=ne(i,t),y=w[0],x=w[1],k=i.getSelection(),C=i.listSelections(),S=new Array(C.length).join("1").split("1");t.lastSelection&&(b=t.lastSelection.headMark.find()),Kt.registerController.unnamedRegister.setText(k),m?(i.replaceSelections(S),x=Rt(y.line+d.length-1,y.ch),i.setCursor(y),Z(i,x),i.replaceSelections(d),g=y):t.visualBlock?(i.replaceSelections(S),i.setCursor(y),i.replaceRange(d,y,y),g=y):(i.replaceRange(d,y,x),g=i.posFromIndex(i.indexFromPos(y)+d.length-1)),b&&(t.lastSelection.headMark=i.setBookmark(b)),f&&(g.ch=0)}else if(m){i.setCursor(n);for(v=0;v<d.length;v++){var $=n.line+v;$>i.lastLine()&&i.replaceRange("\n",Rt($,0)),X(i,$)<n.ch&&J(i,$,n.ch)}i.setCursor(n),Z(i,Rt(n.line+d.length-1,n.ch)),i.replaceSelections(d),g=n}else i.replaceRange(d,n),f&&e.after?g=Rt(n.line+1,ue(i.getLine(n.line+1))):f&&!e.after?g=Rt(n.line,ue(i.getLine(n.line))):!f&&e.after?(p=i.indexFromPos(n),g=i.posFromIndex(p+d.length-1)):(p=i.indexFromPos(n),g=i.posFromIndex(p+d.length));t.visualMode&&le(i,!1),i.setCursor(g)}},undo:function(e,t){e.operation(function(){z(e,_t.commands.undo,t.repeat)(),e.setCursor(e.getCursor("anchor"))})},redo:function(e,t){z(e,_t.commands.redo,t.repeat)()},setRegister:function(e,t,n){n.inputState.registerName=t.selectedCharacter},setMark:function(e,t,n){ye(e,n,t.selectedCharacter,e.getCursor())},replace:function(e,t,n){var i,o,r=t.selectedCharacter,s=e.getCursor(),a=e.listSelections();if(n.visualMode)s=e.getCursor("start"),o=e.getCursor("end");else{var l=e.getLine(s.line);(i=s.ch+t.repeat)>l.length&&(i=l.length),o=Rt(s.line,i)}if("\n"==r)n.visualMode||e.replaceRange("",s,o),(_t.commands.newlineAndIndentContinueComment||_t.commands.newlineAndIndent)(e);else{var c=e.getRange(s,o);if(c=c.replace(/[^\n]/g,r),n.visualBlock){var h=new Array(e.getOption("tabSize")+1).join(" ");c=(c=e.getSelection()).replace(/\t/g,h).replace(/[^\n]/g,r).split("\n"),e.replaceSelections(c)}else e.replaceRange(c,s,o);n.visualMode?(s=U(a[0].anchor,a[0].head)?a[0].anchor:a[0].head,e.setCursor(s),le(e,!1)):e.setCursor(N(o,0,-1))}},incrementNumberToken:function(e,t){for(var n,i,o,r,s=e.getCursor(),a=e.getLine(s.line),l=/(-?)(?:(0x)([\da-f]+)|(0b|0|)(\d+))/gi;null!==(n=l.exec(a))&&(o=(i=n.index)+n[0].length,!(s.ch<o)););if((t.backtrack||!(o<=s.ch))&&n){var c=n[2]||n[4],h=n[3]||n[5],u=t.increase?1:-1,d={"0b":2,0:8,"":10,"0x":16}[c.toLowerCase()];r=(parseInt(n[1]+h,d)+u*t.repeat).toString(d);var g=c?new Array(h.length-r.length+1+n[1].length).join("0"):"";r="-"===r.charAt(0)?"-"+c+g+r.substr(1):c+g+r;var p=Rt(s.line,i),f=Rt(s.line,o);e.replaceRange(r,p,f),e.setCursor(Rt(s.line,i+r.length-1))}},repeatLastEdit:function(e,t,n){if(n.lastEditInputState){var i=t.repeat;i&&t.repeatIsExplicit?n.lastEditInputState.repeatOverride=i:i=n.lastEditInputState.repeatOverride||i,ct(e,n,i,!1)}},indent:function(e,t){e.indentLine(e.getCursor().line,t.indentRight)},exitInsertMode:Qe},Jt={"(":"bracket",")":"bracket","{":"bracket","}":"bracket","[":"section","]":"section","*":"comment","/":"comment",m:"method",M:"method","#":"preprocess"},Zt={bracket:{isComplete:function(e){if(e.nextCh===e.symb){if(e.depth++,1<=e.depth)return!0}else e.nextCh===e.reverseSymb&&e.depth--;return!1}},section:{init:function(e){e.curMoveThrough=!0,e.symb=(e.forward?"]":"[")===e.symb?"{":"}"},isComplete:function(e){return 0===e.index&&e.nextCh===e.symb}},comment:{isComplete:function(e){var t="*"===e.lastCh&&"/"===e.nextCh;return e.lastCh=e.nextCh,t}},method:{init:function(e){e.symb="m"===e.symb?"{":"}",e.reverseSymb="{"===e.symb?"}":"{"},isComplete:function(e){return e.nextCh===e.symb}},preprocess:{init:function(e){e.index=0},isComplete:function(e){if("#"===e.nextCh){var t=e.lineText.match(/#(\w+)/)[1];if("endif"===t){if(e.forward&&0===e.depth)return!0;e.depth++}else if("if"===t){if(!e.forward&&0===e.depth)return!0;e.depth--}if("else"===t&&0===e.depth)return!0}return!1}}};y("pcre",!0,"boolean"),_e.prototype={getQuery:function(){return Kt.query},setQuery:function(e){Kt.query=e},getOverlay:function(){return this.searchOverlay},setOverlay:function(e){this.searchOverlay=e},isReversed:function(){return Kt.isReversed},setReversed:function(e){Kt.isReversed=e},getScrollbarAnnotate:function(){return this.annotate},setScrollbarAnnotate:function(e){this.annotate=e}};var en={"\\n":"\n","\\r":"\r","\\t":"\t"},tn={"\\/":"/","\\\\":"\\","\\n":"\n","\\r":"\r","\\t":"\t"},nn="(Javascript regexp)",on=function(){this.buildCommandMap_()};on.prototype={processCommand:function(e,t,n){var i=this;e.operation(function(){e.curOp.isVimOp=!0,i._processCommand(e,t,n)})},_processCommand:function(e,t,n){var i=e.state.vim,o=Kt.registerController.getRegister(":"),r=o.toString();i.visualMode&&le(e);var s=new _t.StringStream(t);o.setText(t);var a,l,c=n||{};c.input=t;try{this.parseInput_(e,s,c)}catch(wt){throw He(e,wt),wt}if(c.commandName){if(a=this.matchCommand_(c.commandName)){if(l=a.name,a.excludeFromCommandHistory&&o.setText(r),this.parseCommandArgs_(s,c,a),"exToKey"==a.type){for(var h=0;h<a.toKeys.length;h++)_t.Vim.handleKey(e,a.toKeys[h],"mapping");return}if("exToEx"==a.type)return void this.processCommand(e,a.toInput)}}else c.line!==undefined&&(l="move");if(l)try{rn[l](e,c),(!a||!a.possiblyAsync)&&c.callback&&c.callback()}catch(wt){throw He(e,wt),wt}else He(e,'Not an editor command ":'+t+'"')},parseInput_:function(e,t,n){t.eatWhile(":"),t.eat("%")?(n.line=e.firstLine(),n.lineEnd=e.lastLine()):(n.line=this.parseLineSpec_(e,t),n.line!==undefined&&t.eat(",")&&(n.lineEnd=this.parseLineSpec_(e,t)));var i=t.match(/^(\w+)/);return n.commandName=i?i[1]:t.match(/.*/)[0],n},parseLineSpec_:function(e,t){var n=t.match(/^(\d+)/);if(n)return parseInt(n[1],10)-1;switch(t.next()){case".":return this.parseLineSpecOffset_(t,e.getCursor().line);case"$":return this.parseLineSpecOffset_(t,e.lastLine());case"'":var i=t.next(),o=qe(e,e.state.vim,i);if(!o)throw new Error("Mark not set");return this.parseLineSpecOffset_(t,o.line);case"-":case"+":return t.backUp(1),this.parseLineSpecOffset_(t,e.getCursor().line);default:return t.backUp(1),undefined}},parseLineSpecOffset_:function(e,t){var n=e.match(/^([+-])?(\d+)/);if(n){var i=parseInt(n[2],10);"-"==n[1]?t-=i:t+=i}return t},parseCommandArgs_:function(e,t,n){if(!e.eol()){t.argString=e.match(/.*/)[0];var i=n.argDelimiter||/\s+/,o=Q(t.argString).split(i);o.length&&o[0]&&(t.args=o)}},matchCommand_:function(e){for(var t=e.length;0<t;t--){var n=e.substring(0,t);if(this.commandMap_[n]){var i=this.commandMap_[n];if(0===i.name.indexOf(e))return i}}return null},buildCommandMap_:function(){this.commandMap_={};for(var e=0;e<Mt.length;e++){var t=Mt[e],n=t.shortName||t.name;this.commandMap_[n]=t}},map:function(e,t,n){if(":"!=e&&":"==e.charAt(0)){if(n)throw Error("Mode not supported for ex mappings");var i=e.substring(1);":"!=t&&":"==t.charAt(0)?this.commandMap_[i]={name:i,type:"exToEx",toInput:t.substring(1),user:!0}:this.commandMap_[i]={name:i,type:"exToKey",toKeys:t,user:!0}}else if(":"!=t&&":"==t.charAt(0)){var o={keys:e,type:"keyToEx",exArgs:{input:t.substring(1)}};n&&(o.context=n),At.unshift(o)}else{o={keys:e,type:"keyToKey",toKeys:t};n&&(o.context=n),At.unshift(o)}},unmap:function(e,t){if(":"!=e&&":"==e.charAt(0)){if(t)throw Error("Mode not supported for ex mappings");var n=e.substring(1);if(this.commandMap_[n]&&this.commandMap_[n].user)return void delete this.commandMap_[n]}else for(var i=e,o=0;o<At.length;o++)if(i==At[o].keys&&At[o].context===t)return void At.splice(o,1)}};var rn={colorscheme:function(e,t){!t.args||t.args.length<1?He(e,e.getOption("theme")):e.setOption("theme",t.args[0])},map:function(e,t,n){var i=t.args;!i||i.length<2?e&&He(e,"Invalid mapping: "+t.input):sn.map(i[0],i[1],n)},imap:function(e,t){this.map(e,t,"insert")},nmap:function(e,t){this.map(e,t,"normal")},vmap:function(e,t){this.map(e,t,"visual")},unmap:function(e,t,n){var i=t.args;!i||i.length<1?e&&He(e,"No such mapping: "+t.input):sn.unmap(i[0],n)},move:function(e,t){qt.processCommand(e,e.state.vim,{type:"motion",motion:"moveToLineOrEdgeOfDocument",motionArgs:{forward:!1,explicitRepeat:!0,linewise:!0},repeatOverride:t.line+1})},set:function(e,t){var n=t.args,i=t.setCfg||{};if(!n||n.length<1)e&&He(e,"Invalid mapping: "+t.input);else{var o=n[0].split("="),r=o[0],s=o[1],a=!1;if("?"==r.charAt(r.length-1)){if(s)throw Error("Trailing characters: "+t.argString);r=r.substring(0,r.length-1),a=!0}s===undefined&&"no"==r.substring(0,2)&&(r=r.substring(2),s=!1);var l=zt[r]&&"boolean"==zt[r].type;if(l&&s==undefined&&(s=!0),!l&&s===undefined||a){var c=k(r,e,i);c instanceof Error?He(e,c.message):He(e,!0===c||!1===c?" "+(c?"":"no")+r:" "+r+"="+c)}else{var h=x(r,s,e,i);h instanceof Error&&He(e,h.message)}}},setlocal:function(e,t){t.setCfg={scope:"local"},this.set(e,t)},setglobal:function(e,t){t.setCfg={scope:"global"},this.set(e,t)},registers:function(e,t){var n=t.args,i=Kt.registerController.registers,o="----------Registers----------<br><br>";if(n){n=n.join("");for(var r=0;r<n.length;r++){if(s=n.charAt(r),Kt.registerController.isValidRegister(s))o+='"'+s+" "+(i[s]||new A).toString()+"<br>"}}else for(var s in i){var a=i[s].toString();a.length&&(o+='"'+s+" "+a+"<br>")}He(e,o)},sort:function(e,r){function t(){if(r.argString){var e=new _t.StringStream(r.argString);if(e.eat("!")&&(s=!0),e.eol())return;if(!e.eatSpace())return"Invalid arguments";var t=e.match(/([dinuox]+)?\s*(\/.+\/)?\s*/);if(!t&&!e.eol())return"Invalid arguments";if(t[1]){a=-1!=t[1].indexOf("i"),l=-1!=t[1].indexOf("u");var n=-1!=t[1].indexOf("d")||-1!=t[1].indexOf("n")&&1,i=-1!=t[1].indexOf("x")&&1,o=-1!=t[1].indexOf("o")&&1;if(1<n+i+o)return"Invalid arguments";c=(n?"decimal":i&&"hex")||o&&"octal"}t[2]&&(h=new RegExp(t[2].substr(1,t[2].length-2),a?"i":""))}}function n(e,t){var n;s&&(n=e,e=t,t=n);a&&(e=e.toLowerCase(),t=t.toLowerCase());var i=c&&m.exec(e),o=c&&m.exec(t);return i?(i=parseInt((i[1]+i[2]).toLowerCase(),v))-(o=parseInt((o[1]+o[2]).toLowerCase(),v)):e<t?-1:1}function i(e,t){var n;s&&(n=e,e=t,t=n);return a&&(e[0]=e[0].toLowerCase(),t[0]=t[0].toLowerCase()),e[0]<t[0]?-1:1}var s,a,l,c,h,o=t();if(o)He(e,o+": "+r.argString);else{var u=r.line||e.firstLine(),d=r.lineEnd||r.line||e.lastLine();if(u!=d){var g=Rt(u,0),p=Rt(d,X(e,d)),f=e.getRange(g,p).split("\n"),m=h||("decimal"==c?/(-?)([\d]+)/:"hex"==c?/(-?)(?:0x)?([0-9a-f]+)/i:"octal"==c?/([0-7]+)/:null),v="decimal"==c?10:"hex"==c?16:"octal"==c?8:null,b=[],w=[];if(c||h)for(var y=0;y<f.length;y++){var x=h?f[y].match(h):null;x&&""!=x[0]?b.push(x):!h&&m.exec(f[y])?b.push(f[y]):w.push(f[y])}else w=f;if(b.sort(h?i:n),h)for(y=0;y<b.length;y++)b[y]=b[y].input;else c||w.sort(n);if(f=s?b.concat(w):w.concat(b),l){var k,C=f;f=[];for(y=0;y<C.length;y++)C[y]!=k&&f.push(C[y]),k=C[y]}e.replaceRange(f.join("\n"),g,p)}}},global:function(t,e){var n=e.argString;if(n){var i,o=e.line!==undefined?e.line:t.firstLine(),r=e.lineEnd||e.line||t.lastLine(),s=Me(n),a=n;if(s.length&&(a=s[0],i=s.slice(1,s.length).join("/")),a)try{We(t,a,!0,!0)}catch(wt){return void He(t,"Invalid regex: "+a)}for(var l=Ae(t).getQuery(),c=[],h="",u=o;u<=r;u++){l.test(t.getLine(u))&&(c.push(u+1),h+=t.getLine(u)+"<br>")}if(i){var d=0,g=function(){if(d<c.length){var e=c[d]+i;sn.processCommand(t,e,{callback:g})}d++};g()}else He(t,h)}else He(t,"Regular Expression missing from global")},substitute:function(e,t){if(!e.getSearchCursor)throw new Error("Search feature not available. Requires searchcursor.js or any other getSearchCursor implementation.");var n,i,o,r,s=t.argString,a=s?Te(s,s[0]):[],l="",c=!1,h=!1;if(a.length)n=a[0],l=a[1],n&&"$"===n[n.length-1]&&(n=n.slice(0,n.length-1)+"\\n",l=l?l+"\n":"\n"),l!==undefined&&(l=k("pcre")?Fe(l):Ie(l),Kt.lastSubstituteReplacePart=l),i=a[2]?a[2].split(" "):[];else if(s&&s.length)return void He(e,"Substitutions should be of the form :s/pattern/replace/");if(i&&(o=i[0],r=parseInt(i[1]),o&&(-1!=o.indexOf("c")&&(c=!0,o.replace("c","")),-1!=o.indexOf("g")&&(h=!0,o.replace("g","")),n=n.replace(/\//g,"\\/")+"/"+o)),n)try{We(e,n,!0,!0)}catch(kt){return void He(e,"Invalid regex: "+n)}if((l=l||Kt.lastSubstituteReplacePart)!==undefined){var u=Ae(e).getQuery(),d=t.line!==undefined?t.line:e.getCursor().line,g=t.lineEnd||d;d==e.firstLine()&&g==e.lastLine()&&(g=Infinity),r&&(g=(d=g)+r-1);var p=B(e,Rt(d,0));Xe(e,c,h,d,g,e.getSearchCursor(u,p),u,l,t.callback)}else He(e,"No previous substitute regular expression")},redo:_t.commands.redo,undo:_t.commands.undo,write:function(e){_t.commands.save?_t.commands.save(e):e.save&&e.save()},nohlsearch:function(e){Ue(e)},yank:function(e){var t=K(e.getCursor()).line,n=e.getLine(t);Kt.registerController.pushText("0","yank",n,!0,!0)},delmarks:function(e,t){if(t.argString&&Q(t.argString))for(var n=e.state.vim,i=new _t.StringStream(Q(t.argString));!i.eol();){i.eatSpace();var o=i.pos;if(!i.match(/[a-zA-Z]/,!1))return void He(e,"Invalid argument: "+t.argString.substring(o));var r=i.next();if(i.match("-",!0)){if(!i.match(/[a-zA-Z]/,!1))return void He(e,"Invalid argument: "+t.argString.substring(o));var s=r,a=i.next();if(!(d(s)&&d(a)||m(s)&&m(a)))return void He(e,"Invalid argument: "+s+"-");var l=s.charCodeAt(0),c=a.charCodeAt(0);if(c<=l)return void He(e,"Invalid argument: "+t.argString.substring(o));for(var h=0;h<=c-l;h++){var u=String.fromCharCode(l+h);delete n.marks[u]}}else delete n.marks[r]}else He(e,"Argument required")}},sn=new on;_t.keyMap.vim={attach:r,detach:o,call:s},y("insertModeEscKeysTimeout",200,"number"),_t.keyMap["vim-insert"]={fallthrough:["default"],attach:r,detach:o,call:s},_t.keyMap["vim-replace"]={Backspace:"goCharLeft",fallthrough:["vim-insert"],attach:r,detach:o,call:s},$(),_t.Vim=Tt(),Tt=_t.Vim;var an={"return":"CR",backspace:"BS","delete":"Del",esc:"Esc",left:"Left",right:"Right",up:"Up",down:"Down",space:"Space",home:"Home",end:"End",pageup:"PageUp",pagedown:"PageDown",enter:"CR"},ln=Tt.handleKey.bind(Tt);Tt.handleKey=function(e,t,n){return e.operation(function(){return ln(e,t,n)},!0)},t.CodeMirror=_t;var cn=Tt.maybeInitVimState_;t.handler={$id:"ace/keyboard/vim",drawCursor:function(e,t,n,i,o){var r=this.state.vim||{},s=n.characterWidth,a=n.lineHeight,l=t.top,c=t.left;r.insertMode||!(i.cursor?ft.comparePoints(i.cursor,i.start)<=0:o.selection.isBackwards()||o.selection.isEmpty())&&s<c&&(c-=s);!r.insertMode&&r.status&&(l+=a/=2),vt.translate(e,c,l),vt.setStyle(e.style,"width",s+"px"),vt.setStyle(e.style,"height",a+"px")},handleKeyboard:function(e,t,n,i,o){var r=e.editor,s=r.state.cm,a=cn(s);if(-1!=i){if(a.insertMode||(-1==t?(255<n.charCodeAt(0)&&e.inputKey&&((n=e.inputKey)&&4==e.inputHash&&(n=n.toUpperCase())),e.inputChar=n):4==t||0==t?e.inputKey==n&&e.inputHash==t&&e.inputChar?(n=e.inputChar,t=-1):(e.inputChar=null,e.inputKey=n,e.inputHash=t):e.inputChar=e.inputKey=null),"c"==n&&1==t&&!kt.isMac&&r.getCopyText())return r.once("copy",function(){r.selection.clearSelection()}),{command:"null",passEvent:!0};if("esc"==n&&!a.insertMode&&!a.visualMode&&!s.ace.inMultiSelectMode){var l=Ae(s).getOverlay();l&&s.removeOverlay(l)}if(-1==t||1&t||0===t&&1<n.length){var c=a.insertMode,h=ut(t,n,o||{});null==a.status&&(a.status="");var u=gt(s,h,"user");if(a=cn(s),u&&null!=a.status?a.status+=h:null==a.status&&(a.status=""),s._signal("changeStatus"),!u&&(-1!=t||c))return;return{command:"null",passEvent:!u}}}},attach:function(t){function e(){var e=cn(n).insertMode;n.ace.renderer.setStyle("normal-mode",!e),t.textInput.setCommandMode(!e),t.renderer.$keepTextAreaAtCursor=e,t.renderer.$blockCursor=!e}t.state||(t.state={});var n=new _t(t);t.state.cm=n,t.$vimModeHandler=this,_t.keyMap.vim.attach(n),cn(n).status=null,n.on("vim-command-done",function(){n.virtualSelectionMode()||(cn(n).status=null,n.ace._signal("changeStatus"),n.ace.session.markUndoGroup())}),n.on("changeStatus",function(){n.ace.renderer.updateCursor(),n.ace._signal("changeStatus")}),n.on("vim-mode-change",function(){n.virtualSelectionMode()||(e(),n._signal("changeStatus"))}),e(),t.renderer.$cursorLayer.drawCursor=this.drawCursor.bind(n)},detach:function(e){var t=e.state.cm;_t.keyMap.vim.detach(t),t.destroy(),e.state.cm=null,e.$vimModeHandler=null,e.renderer.$cursorLayer.drawCursor=null,e.renderer.setStyle("normal-mode",!1),e.textInput.setCommandMode(!1),e.renderer.$keepTextAreaAtCursor=!0},getStatusText:function(e){var t=e.state.cm,n=cn(t);if(n.insertMode)return"INSERT";var i="";return n.visualMode&&(i+="VISUAL",n.visualLine&&(i+=" LINE"),n.visualBlock&&(i+=" BLOCK")),n.status&&(i+=(i?" ":"")+n.status),i}},Tt.defineOption({name:"wrap",set:function(e,t){t&&t.ace.setOption("wrap",e)},type:"boolean"},!1),Tt.defineEx("write","w",function(){console.log(":write is not implemented")}),At.push({keys:"zc",type:"action",action:"fold",actionArgs:{open:!1}},{keys:"zC",type:"action",action:"fold",actionArgs:{open:!1,all:!0}},{keys:"zo",type:"action",action:"fold",actionArgs:{open:!0}},{keys:"zO",type:"action",action:"fold",actionArgs:{open:!0,all:!0}},{keys:"za",type:"action",action:"fold",actionArgs:{toggle:!0}},{keys:"zA",type:"action",action:"fold",actionArgs:{toggle:!0,all:!0}},{keys:"zf",type:"action",action:"fold",actionArgs:{open:!0,all:!0}},{keys:"zd",type:"action",action:"fold",actionArgs:{open:!0,all:!0}},{keys:"<C-A-k>",type:"action",action:"aceCommand",actionArgs:{name:"addCursorAbove"}},{keys:"<C-A-j>",type:"action",action:"aceCommand",actionArgs:{name:"addCursorBelow"}},{keys:"<C-A-S-k>",type:"action",action:"aceCommand",actionArgs:{name:"addCursorAboveSkipCurrent"}},{keys:"<C-A-S-j>",type:"action",action:"aceCommand",actionArgs:{name:"addCursorBelowSkipCurrent"}},{keys:"<C-A-h>",type:"action",action:"aceCommand",actionArgs:{name:"selectMoreBefore"}},{keys:"<C-A-l>",type:"action",action:"aceCommand",actionArgs:{name:"selectMoreAfter"}},{keys:"<C-A-S-h>",type:"action",action:"aceCommand",actionArgs:{name:"selectNextBefore"}},{keys:"<C-A-S-l>",type:"action",action:"aceCommand",actionArgs:{name:"selectNextAfter"}}),Yt.aceCommand=function(e,t){e.vimCmd=t,e.ace.inVirtualSelectionMode?e.ace.on("beforeEndOperation",pt):pt(null,e.ace)},Yt.fold=function(e,t){e.ace.execCommand(["toggleFoldWidget","toggleFoldWidget","foldOther","unfoldall"][(t.all?2:0)+(t.open?1:0)])},t.handler.defaultKeymap=At,t.handler.actions=Yt,t.Vim=Tt}),ace.require(["ace/keyboard/vim"],function(e){"object"==typeof module&&"object"==typeof exports&&module&&(module.exports=e)}),ace.define("ace/occur",["require","exports","module","ace/lib/oop","ace/range","ace/search","ace/edit_session","ace/search_highlight","ace/lib/dom"],function(e,t){"use strict";function n(){}var i=e("./lib/oop"),r=(e("./range").Range,e("./search").Search),s=e("./edit_session").EditSession,o=e("./search_highlight").SearchHighlight;i.inherits(n,r),function(){this.enter=function(e,t){if(!t.needle)return!1;var n=e.getCursorPosition();this.displayOccurContent(e,t);var i=this.originalToOccurPosition(e.session,n);return e.moveCursorToPosition(i),!0},this.exit=function(e,t){var n=t.translatePosition&&e.getCursorPosition(),i=n&&this.occurToOriginalPosition(e.session,n);return this.displayOriginalContent(e),i&&e.moveCursorToPosition(i),!0},this.highlight=function(e,t){(e.$occurHighlight=e.$occurHighlight||e.addDynamicMarker(new o(null,"ace_occur-highlight","text"))).setRegexp(t),e._emit("changeBackMarker")},this.displayOccurContent=function(e,t){this.$originalSession=e.session;var n=this.matchingLines(e.session,t),i=n.map(function(e){return e.content}),o=new s(i.join("\n"));o.$occur=this,o.$occurMatchingLines=n,e.setSession(o),this.$useEmacsStyleLineStart=this.$originalSession.$useEmacsStyleLineStart,o.$useEmacsStyleLineStart=this.$useEmacsStyleLineStart,this.highlight(o,t.re),o._emit("changeBackMarker")},this.displayOriginalContent=function(e){e.setSession(this.$originalSession),this.$originalSession.$useEmacsStyleLineStart=this.$useEmacsStyleLineStart},this.originalToOccurPosition=function(e,t){var n=e.$occurMatchingLines,i={row:0,column:0};if(!n)return i;for(var o=0;o<n.length;o++)if(n[o].row===t.row)return{row:o,column:t.column};return i},this.occurToOriginalPosition=function(e,t){var n=e.$occurMatchingLines;return n&&n[t.row]?{row:n[t.row].row,column:t.column}:t},this.matchingLines=function(o,e){if(e=i.mixin({},e),!o||!e.needle)return[];var t=new r;return t.set(e),t.findAll(o).reduce(function(e,t){var n=t.start.row,i=e[e.length-1];return i&&i.row===n?e:e.concat({row:n,content:o.getLine(n)})},[])}}.call(n.prototype),e("./lib/dom").importCssString(".ace_occur-highlight {\n border-radius: 4px;\n background-color: rgba(87, 255, 8, 0.25);\n position: absolute;\n z-index: 4;\n box-sizing: border-box;\n box-shadow: 0 0 4px rgb(91, 255, 50);\n}\n.ace_dark .ace_occur-highlight {\n background-color: rgb(80, 140, 85);\n box-shadow: 0 0 4px rgb(60, 120, 70);\n}\n","incremental-occur-highlighting"),t.Occur=n}),ace.define("ace/commands/occur_commands",["require","exports","module","ace/config","ace/occur","ace/keyboard/hash_handler","ace/lib/oop"],function(e,t){function i(){}e("../config");var o=e("../occur").Occur,n={name:"occur",exec:function(e,t){var n=!!e.session.$occur;(new o).enter(e,t)&&!n&&i.installIn(e)},readOnly:!0},s=[{name:"occurexit",bindKey:"esc|Ctrl-G",exec:function(e){var t=e.session.$occur;t&&(t.exit(e,{}),e.session.$occur||i.uninstallFrom(e))},readOnly:!0},{name:"occuraccept",bindKey:"enter",exec:function(e){var t=e.session.$occur;t&&(t.exit(e,{translatePosition:!0}),e.session.$occur||i.uninstallFrom(e))},readOnly:!0}],a=e("../keyboard/hash_handler").HashHandler;e("../lib/oop").inherits(i,a),function(){this.isOccurHandler=!0,this.attach=function(e){a.call(this,s,e.commands.platform),this.$editor=e};var r=this.handleKeyboard;this.handleKeyboard=function(e,t,n,i){var o=r.call(this,e,t,n,i);return o&&o.command?o:undefined}}.call(i.prototype),i.installIn=function(e){var t=new this;e.keyBinding.addKeyboardHandler(t),e.commands.addCommands(s)},i.uninstallFrom=function(e){e.commands.removeCommands(s);var t=e.getKeyboardHandler();t.isOccurHandler&&e.keyBinding.removeKeyboardHandler(t)},t.occurStartCommand=n}),ace.define("ace/commands/incremental_search_commands",["require","exports","module","ace/config","ace/lib/oop","ace/keyboard/hash_handler","ace/commands/occur_commands"],function(e,t){function n(e){this.$iSearch=e}var o=e("../config"),i=e("../lib/oop"),r=e("../keyboard/hash_handler").HashHandler,s=e("./occur_commands").occurStartCommand;t.iSearchStartCommands=[{name:"iSearch",bindKey:{win:"Ctrl-F",mac:"Command-F"},exec:function(n,i){o.loadModule(["core","ace/incremental_search"],function(e){var t=e.iSearch=e.iSearch||new e.IncrementalSearch;t.activate(n,i.backwards),i.jumpToFirstMatch&&t.next(i)})},readOnly:!0},{name:"iSearchBackwards",exec:function(e){e.execCommand("iSearch",{backwards:!0})},readOnly:!0},{name:"iSearchAndGo",bindKey:{win:"Ctrl-K",mac:"Command-G"},exec:function(e){e.execCommand("iSearch",{jumpToFirstMatch:!0,useCurrentOrPrevSearch:!0})},readOnly:!0},{name:"iSearchBackwardsAndGo",bindKey:{win:"Ctrl-Shift-K",mac:"Command-Shift-G"},exec:function(e){e.execCommand("iSearch",{jumpToFirstMatch:!0,backwards:!0,useCurrentOrPrevSearch:!0})},readOnly:!0}],t.iSearchCommands=[{name:"restartSearch",bindKey:{win:"Ctrl-F",mac:"Command-F"},exec:function(e){e.cancelSearch(!0)}},{name:"searchForward",bindKey:{win:"Ctrl-S|Ctrl-K",mac:"Ctrl-S|Command-G"},exec:function(e,t){t.useCurrentOrPrevSearch=!0,e.next(t)}},{name:"searchBackward",bindKey:{win:"Ctrl-R|Ctrl-Shift-K",mac:"Ctrl-R|Command-Shift-G"},exec:function(e,t){t.useCurrentOrPrevSearch=!0,t.backwards=!0,e.next(t)}},{name:"extendSearchTerm",exec:function(e,t){e.addString(t)}},{name:"extendSearchTermSpace",bindKey:"space",exec:function(e){e.addString(" ")}},{name:"shrinkSearchTerm",bindKey:"backspace",exec:function(e){e.removeChar()}},{name:"confirmSearch",bindKey:"return",exec:function(e){e.deactivate()}},{name:"cancelSearch",bindKey:"esc|Ctrl-G",exec:function(e){e.deactivate(!0)}},{name:"occurisearch",bindKey:"Ctrl-O",exec:function(e){var t=i.mixin({},e.$options);e.deactivate(),s.exec(e.$editor,t)}},{name:"yankNextWord",bindKey:"Ctrl-w",exec:function(e){var t=e.$editor,n=t.selection.getRangeOfMovements(function(e){e.moveCursorWordRight()}),i=t.session.getTextRange(n);e.addString(i)}},{name:"yankNextChar",bindKey:"Ctrl-Alt-y",exec:function(e){var t=e.$editor,n=t.selection.getRangeOfMovements(function(e){e.moveCursorRight()}),i=t.session.getTextRange(n);e.addString(i)}},{name:"recenterTopBottom",bindKey:"Ctrl-l",exec:function(e){e.$editor.execCommand("recenterTopBottom")}},{name:"selectAllMatches",bindKey:"Ctrl-space",exec:function(e){var t=e.$editor,n=t.session.$isearchHighlight,i=n&&n.cache?n.cache.reduce(function(e,t){return e.concat(t||[])},[]):[];e.deactivate(!1),i.forEach(t.selection.addRange.bind(t.selection))}},{name:"searchAsRegExp",bindKey:"Alt-r",exec:function(e){e.convertNeedleToRegExp()}}].map(function(e){return e.readOnly=!0,e.isIncrementalSearchCommand=!0,e.scrollIntoView="animate-cursor",e}),i.inherits(n,r),function(){this.attach=function(i){var o=this.$iSearch;r.call(this,t.iSearchCommands,i.commands.platform),this.$commandExecHandler=i.commands.addEventListener("exec",function(e){if(!e.command.isIncrementalSearchCommand)return o.deactivate();e.stopPropagation(),e.preventDefault();var t=i.session.getScrollTop(),n=e.command.exec(o,e.args||{});return i.renderer.scrollCursorIntoView(null,.5),i.renderer.animateScrolling(t),n})},this.detach=function(e){this.$commandExecHandler&&(e.commands.removeEventListener("exec",this.$commandExecHandler),delete this.$commandExecHandler)};var s=this.handleKeyboard;this.handleKeyboard=function(e,t,n,i){if((1===t||8===t)&&"v"===n||1===t&&"y"===n)return null;var o=s.call(this,e,t,n,i);if(o.command)return o;if(-1==t){var r=this.commands.extendSearchTerm;if(r)return{command:r,args:n}}return!1}}.call(n.prototype),t.IncrementalSearchKeyboardHandler=n}),ace.define("ace/incremental_search",["require","exports","module","ace/lib/oop","ace/range","ace/search","ace/search_highlight","ace/commands/incremental_search_commands","ace/lib/dom","ace/commands/command_manager","ace/editor","ace/config"],function(e,t){"use strict";function n(){this.$options={wrap:!1,skipCurrent:!1},this.$keyboardHandler=new d(this)}function i(e){return e instanceof RegExp}function o(e){var t=String(e),n=t.indexOf("/"),i=t.lastIndexOf("/");return{expression:t.slice(n+1,i),flags:t.slice(i+1)}}function r(e,t){try{return new RegExp(e,t)}catch(n){return e}}function s(e){return r(e.expression,e.flags)}var a=e("./lib/oop"),l=e("./range").Range,c=e("./search").Search,h=e("./search_highlight").SearchHighlight,u=e("./commands/incremental_search_commands"),d=u.IncrementalSearchKeyboardHandler;a.inherits(n,c),function(){this.activate=function(e,t){this.$editor=e,this.$startPos=this.$currentPos=e.getCursorPosition(),this.$options.needle="",this.$options.backwards=t,e.keyBinding.addKeyboardHandler(this.$keyboardHandler),this.$originalEditorOnPaste=e.onPaste,e.onPaste=this.onPaste.bind(this),this.$mousedownHandler=e.addEventListener("mousedown",this.onMouseDown.bind(this)),this.selectionFix(e),this.statusMessage(!0)},this.deactivate=function(e){this.cancelSearch(e);var t=this.$editor;t.keyBinding.removeKeyboardHandler(this.$keyboardHandler),this.$mousedownHandler&&(t.removeEventListener("mousedown",this.$mousedownHandler),delete this.$mousedownHandler),t.onPaste=this.$originalEditorOnPaste,this.message("")},this.selectionFix=function(e){e.selection.isEmpty()&&!e.session.$emacsMark&&e.clearSelection()},this.highlight=function(e){var t=this.$editor.session;(t.$isearchHighlight=t.$isearchHighlight||t.addDynamicMarker(new h(null,"ace_isearch-result","text"))).setRegexp(e),t._emit("changeBackMarker")},this.cancelSearch=function(e){var t=this.$editor;return this.$prevNeedle=this.$options.needle,this.$options.needle="",e?(t.moveCursorToPosition(this.$startPos),this.$currentPos=this.$startPos):t.pushEmacsMark&&t.pushEmacsMark(this.$startPos,!1),this.highlight(null),l.fromPoints(this.$currentPos,this.$currentPos)},this.highlightAndFindWithNeedle=function(e,t){if(!this.$editor)return null;var n=this.$options;if(t&&(n.needle=t.call(this,n.needle||"")||""),0===n.needle.length)return this.statusMessage(!0),this.cancelSearch(!0);n.start=this.$currentPos;var i=this.$editor.session,o=this.find(i),r=this.$editor.emacsMark?!!this.$editor.emacsMark():!this.$editor.selection.isEmpty();return o&&(n.backwards&&(o=l.fromPoints(o.end,o.start)),this.$editor.selection.setRange(l.fromPoints(r?this.$startPos:o.end,o.end)),e&&(this.$currentPos=o.end),this.highlight(n.re)),this.statusMessage(o),o},this.addString=function(n){return this.highlightAndFindWithNeedle(!1,function(e){if(!i(e))return e+n;var t=o(e);return t.expression+=n,s(t)})},this.removeChar=function(){return this.highlightAndFindWithNeedle(!1,function(e){if(!i(e))return e.substring(0,e.length-1);var t=o(e);return t.expression=t.expression.substring(0,t.expression.length-1),s(t)})},this.next=function(t){return t=t||{},this.$options.backwards=!!t.backwards,this.$currentPos=this.$editor.getCursorPosition(),this.highlightAndFindWithNeedle(!0,function(e){return t.useCurrentOrPrevSearch&&0===e.length?this.$prevNeedle||"":e})},this.onMouseDown=function(){return this.deactivate(),!0},this.onPaste=function(e){this.addString(e)},this.convertNeedleToRegExp=function(){return this.highlightAndFindWithNeedle(!1,function(e){return i(e)?e:r(e,"ig")})},this.convertNeedleToString=function(){return this.highlightAndFindWithNeedle(!1,function(e){return i(e)?o(e).expression:e})},this.statusMessage=function(e){var t=this.$options,n="";n+=t.backwards?"reverse-":"",n+="isearch: "+t.needle,n+=e?"":" (not found)",this.message(n)},this.message=function(e){this.$editor.showCommandLine?(this.$editor.showCommandLine(e),this.$editor.focus()):console.log(e)}}.call(n.prototype),t.IncrementalSearch=n
19
- ;var g=e("./lib/dom");g.importCssString&&g.importCssString(".ace_marker-layer .ace_isearch-result { position: absolute; z-index: 6; box-sizing: border-box;}div.ace_isearch-result { border-radius: 4px; background-color: rgba(255, 200, 0, 0.5); box-shadow: 0 0 4px rgb(255, 200, 0);}.ace_dark div.ace_isearch-result { background-color: rgb(100, 110, 160); box-shadow: 0 0 4px rgb(80, 90, 140);}","incremental-search-highlighting");var p=e("./commands/command_manager");(function(){this.setupIncrementalSearch=function(e,t){if(this.usesIncrementalSearch!=t){this.usesIncrementalSearch=t;var n=u.iSearchStartCommands;this[t?"addCommands":"removeCommands"](n)}}}).call(p.CommandManager.prototype);var f=e("./editor").Editor;e("./config").defineOptions(f.prototype,"editor",{useIncrementalSearch:{set:function(t){this.keyBinding.$handlers.forEach(function(e){e.setupIncrementalSearch&&e.setupIncrementalSearch(this,t)}),this._emit("incrementalSearchSettingChanged",{isEnabled:t})}}})}),ace.define("ace/keyboard/emacs",["require","exports","module","ace/lib/dom","ace/incremental_search","ace/commands/incremental_search_commands","ace/keyboard/hash_handler","ace/lib/keys"],function(e,r){"use strict";var t=e("../lib/dom");e("../incremental_search");var n=e("../commands/incremental_search_commands"),i=e("./hash_handler").HashHandler;r.handler=new i,r.handler.isEmacs=!0;var o,s,a=!(r.handler.$id="ace/keyboard/emacs");r.handler.attach=function(e){a||(a=!0,t.importCssString(" .emacs-mode .ace_cursor{ border: 1px rgba(50,250,50,0.8) solid!important; box-sizing: border-box!important; background-color: rgba(0,250,0,0.9); opacity: 0.5; } .emacs-mode .ace_hidden-cursors .ace_cursor{ opacity: 1; background-color: transparent; } .emacs-mode .ace_overwrite-cursors .ace_cursor { opacity: 1; background-color: transparent; border-width: 0 0 2px 2px !important; } .emacs-mode .ace_text-layer { z-index: 4 } .emacs-mode .ace_cursor-layer { z-index: 2 }","emacsMode")),o=e.session.$selectLongWords,e.session.$selectLongWords=!0,s=e.session.$useEmacsStyleLineStart,e.session.$useEmacsStyleLineStart=!0,e.session.$emacsMark=null,e.session.$emacsMarkRing=e.session.$emacsMarkRing||[],e.emacsMark=function(){return this.session.$emacsMark},e.setEmacsMark=function(e){this.session.$emacsMark=e},e.pushEmacsMark=function(e,t){var n=this.session.$emacsMark;n&&this.session.$emacsMarkRing.push(n),!e||t?this.setEmacsMark(e):this.session.$emacsMarkRing.push(e)},e.popEmacsMark=function(){var e=this.emacsMark();return e?(this.setEmacsMark(null),e):this.session.$emacsMarkRing.pop()},e.getLastEmacsMark=function(){return this.session.$emacsMark||this.session.$emacsMarkRing.slice(-1)[0]},e.emacsMarkForSelection=function(e){var t=this.selection,n=this.multiSelect?this.multiSelect.getAllRanges().length:1,i=t.index||0,o=this.session.$emacsMarkRing,r=o.length-(n-i),s=o[r]||t.anchor;return e&&o.splice(r,1,"row"in e&&"column"in e?e:undefined),s},e.on("click",c),e.on("changeSession",l),e.renderer.$blockCursor=!0,e.setStyle("emacs-mode"),e.commands.addCommands(d),r.handler.platform=e.commands.platform,e.$emacsModeHandler=this,e.addEventListener("copy",this.onCopy),e.addEventListener("paste",this.onPaste)},r.handler.detach=function(e){e.renderer.$blockCursor=!1,e.session.$selectLongWords=o,e.session.$useEmacsStyleLineStart=s,e.removeEventListener("click",c),e.removeEventListener("changeSession",l),e.unsetStyle("emacs-mode"),e.commands.removeCommands(d),e.removeEventListener("copy",this.onCopy),e.removeEventListener("paste",this.onPaste),e.$emacsModeHandler=null};var l=function(e){e.oldSession&&(e.oldSession.$selectLongWords=o,e.oldSession.$useEmacsStyleLineStart=s),o=e.session.$selectLongWords,e.session.$selectLongWords=!0,s=e.session.$useEmacsStyleLineStart,e.session.$useEmacsStyleLineStart=!0,e.session.hasOwnProperty("$emacsMark")||(e.session.$emacsMark=null),e.session.hasOwnProperty("$emacsMarkRing")||(e.session.$emacsMarkRing=[])},c=function(e){e.editor.session.$emacsMark=null},h=e("../lib/keys").KEY_MODS,u={C:"ctrl",S:"shift",M:"alt",CMD:"command"};["C-S-M-CMD","S-M-CMD","C-M-CMD","C-S-CMD","C-S-M","M-CMD","S-CMD","S-M","C-CMD","C-M","C-S","CMD","M","S","C"].forEach(function(e){var t=0;e.split("-").forEach(function(e){t|=h[u[e]]}),u[t]=e.toLowerCase()+"-"}),r.handler.onCopy=function(e,t){t.$handlesEmacsOnCopy||(t.$handlesEmacsOnCopy=!0,r.handler.commands.killRingSave.exec(t),t.$handlesEmacsOnCopy=!1)},r.handler.onPaste=function(e,t){t.pushEmacsMark(t.getCursorPosition())},r.handler.bindKey=function(e,t){if("object"==typeof e&&(e=e[this.platform]),e){var n=this.commandKeyBinding;e.split("|").forEach(function(e){e=e.toLowerCase(),n[e]=t,e.split(" ").slice(0,-1).reduce(function(e,t,n){var i=e[n-1]?e[n-1]+" ":"";return e.concat([i+t])},[]).forEach(function(e){n[e]||(n[e]="null")})},this)}},r.handler.getStatusText=function(e,t){var n="";return t.count&&(n+=t.count),t.keyChain&&(n+=" "+t.keyChain),n},r.handler.handleKeyboard=function(e,t,n,i){if(-1===i)return undefined;var o=e.editor;if(o._signal("changeStatus"),-1==t&&(o.pushEmacsMark(),e.count)){var r=new Array(e.count+1).join(n);return e.count=null,{command:"insertstring",args:r}}var s=u[t];if(("c-"==s||e.count)&&("number"==typeof(c=parseInt(n[n.length-1]))&&!isNaN(c)))return e.count=Math.max(e.count,0)||0,e.count=10*e.count+c,{command:"null"};s&&(n=s+n),e.keyChain&&(n=e.keyChain+=" "+n);var a,l=this.commandKeyBinding[n];if(e.keyChain="null"==l?n:"",!l)return undefined;if("null"===l)return{command:"null"};if("universalArgument"===l)return e.count=-4,{command:"null"};if("string"!=typeof l&&(a=l.args,l.command&&(l=l.command),"goorselect"===l&&(l=o.emacsMark()?a[1]:a[0],a=null)),"string"==typeof l&&(("insertstring"===l||"splitline"===l||"togglecomment"===l)&&o.pushEmacsMark(),!(l=this.commands[l]||o.commands.commands[l])))return undefined;if(!l.readOnly&&!l.isYank&&(e.lastCommand=null),!l.readOnly&&o.emacsMark()&&o.setEmacsMark(null),e.count){var c=e.count;if(e.count=0,!l||!l.handlesCount)return{args:a,command:{exec:function(e,t){for(var n=0;n<c;n++)l.exec(e,t)},multiSelectAction:l.multiSelectAction}};a||(a={}),"object"==typeof a&&(a.count=c)}return{command:l,args:a}},r.emacsKeys={"Up|C-p":{command:"goorselect",args:["golineup","selectup"]},"Down|C-n":{command:"goorselect",args:["golinedown","selectdown"]},"Left|C-b":{command:"goorselect",args:["gotoleft","selectleft"]},"Right|C-f":{command:"goorselect",args:["gotoright","selectright"]},"C-Left|M-b":{command:"goorselect",args:["gotowordleft","selectwordleft"]},"C-Right|M-f":{command:"goorselect",args:["gotowordright","selectwordright"]},"Home|C-a":{command:"goorselect",args:["gotolinestart","selecttolinestart"]},"End|C-e":{command:"goorselect",args:["gotolineend","selecttolineend"]},"C-Home|S-M-,":{command:"goorselect",args:["gotostart","selecttostart"]},"C-End|S-M-.":{command:"goorselect",args:["gotoend","selecttoend"]},"S-Up|S-C-p":"selectup","S-Down|S-C-n":"selectdown","S-Left|S-C-b":"selectleft","S-Right|S-C-f":"selectright","S-C-Left|S-M-b":"selectwordleft","S-C-Right|S-M-f":"selectwordright","S-Home|S-C-a":"selecttolinestart","S-End|S-C-e":"selecttolineend","S-C-Home":"selecttostart","S-C-End":"selecttoend","C-l":"recenterTopBottom","M-s":"centerselection","M-g":"gotoline","C-x C-p":"selectall","C-Down":{command:"goorselect",args:["gotopagedown","selectpagedown"]},"C-Up":{command:"goorselect",args:["gotopageup","selectpageup"]},"PageDown|C-v":{command:"goorselect",args:["gotopagedown","selectpagedown"]},"PageUp|M-v":{command:"goorselect",args:["gotopageup","selectpageup"]},"S-C-Down":"selectpagedown","S-C-Up":"selectpageup","C-s":"iSearch","C-r":"iSearchBackwards","M-C-s":"findnext","M-C-r":"findprevious","S-M-5":"replace",Backspace:"backspace","Delete|C-d":"del","Return|C-m":{command:"insertstring",args:"\n"},"C-o":"splitline","M-d|C-Delete":{command:"killWord",args:"right"},"C-Backspace|M-Backspace|M-Delete":{command:"killWord",args:"left"},"C-k":"killLine","C-y|S-Delete":"yank","M-y":"yankRotate","C-g":"keyboardQuit","C-w|C-S-W":"killRegion","M-w":"killRingSave","C-Space":"setMark","C-x C-x":"exchangePointAndMark","C-t":"transposeletters","M-u":"touppercase","M-l":"tolowercase","M-/":"autocomplete","C-u":"universalArgument","M-;":"togglecomment","C-/|C-x u|S-C--|C-z":"undo","S-C-/|S-C-x u|C--|S-C-z":"redo","C-x r":"selectRectangularRegion","M-x":{command:"focusCommandLine",args:"M-x "}},r.handler.bindKeys(r.emacsKeys),r.handler.addCommands({recenterTopBottom:function(e){var t=e.renderer,n=t.$cursorLayer.getPixelPosition(),i=t.$size.scrollerHeight-t.lineHeight,o=t.scrollTop;o=Math.abs(n.top-o)<2?n.top-i:Math.abs(n.top-o-.5*i)<2?n.top:n.top-.5*i,e.session.setScrollTop(o)},selectRectangularRegion:function(e){e.multiSelect.toggleBlockSelection()},setMark:{exec:function(t,e){function n(){var e=t.popEmacsMark();e&&t.moveCursorToPosition(e)}if(e&&e.count)return t.inMultiSelectMode?t.forEachSelection(n):n(),void n();var i=t.emacsMark(),o=t.selection.getAllRanges(),r=o.map(function(e){return{row:e.start.row,column:e.start.column}}),s=!0,a=o.every(function(e){return e.isEmpty()});return!s||!i&&a?i?void 0:(r.forEach(function(e){t.pushEmacsMark(e)}),void t.setEmacsMark(r[r.length-1])):(t.inMultiSelectMode?t.forEachSelection({exec:t.clearSelection.bind(t)}):t.clearSelection(),void(i&&t.pushEmacsMark(null)))},readOnly:!0,handlesCount:!0},exchangePointAndMark:{exec:function(e,t){var n=e.selection;if(t.count||n.isEmpty())if(t.count){var i={row:n.lead.row,column:n.lead.column};n.clearSelection(),n.moveCursorToPosition(e.emacsMarkForSelection(i))}else n.selectToPosition(e.emacsMarkForSelection());else n.setSelectionRange(n.getRange(),!n.isBackwards())},readOnly:!0,handlesCount:!0,multiSelectAction:"forEach"},killWord:{exec:function(e,t){e.clearSelection(),"left"==t?e.selection.selectWordLeft():e.selection.selectWordRight();var n=e.getSelectionRange(),i=e.session.getTextRange(n);r.killRing.add(i),e.session.remove(n),e.clearSelection()},multiSelectAction:"forEach"},killLine:function(e){e.pushEmacsMark(null),e.clearSelection();var t=e.getSelectionRange(),n=e.session.getLine(t.start.row);t.end.column=n.length,n=n.substr(t.start.column);var i=e.session.getFoldLine(t.start.row);i&&t.end.row!=i.end.row&&(t.end.row=i.end.row,n="x"),/^\s*$/.test(n)&&(t.end.row++,n=e.session.getLine(t.end.row),t.end.column=/^\s*$/.test(n)?n.length:0);var o=e.session.getTextRange(t);e.prevOp.command==this?r.killRing.append(o):r.killRing.add(o),e.session.remove(t),e.clearSelection()},yank:function(e){e.onPaste(r.killRing.get()||""),e.keyBinding.$data.lastCommand="yank"},yankRotate:function(e){"yank"==e.keyBinding.$data.lastCommand&&(e.undo(),e.session.$emacsMarkRing.pop(),e.onPaste(r.killRing.rotate()),e.keyBinding.$data.lastCommand="yank")},killRegion:{exec:function(e){r.killRing.add(e.getCopyText()),e.commands.byName.cut.exec(e),e.setEmacsMark(null)},readOnly:!0,multiSelectAction:"forEach"},killRingSave:{exec:function(i){i.$handlesEmacsOnCopy=!0;var t=i.session.$emacsMarkRing.slice(),o=[];r.killRing.add(i.getCopyText()),setTimeout(function(){function e(){var e=i.selection,t=e.getRange(),n=e.isBackwards()?t.end:t.start;o.push({row:n.row,column:n.column}),e.clearSelection()}i.$handlesEmacsOnCopy=!1,i.inMultiSelectMode?i.forEachSelection({exec:e}):e(),i.setEmacsMark(null),i.session.$emacsMarkRing=t.concat(o.reverse())},0)},readOnly:!0},keyboardQuit:function(e){e.selection.clearSelection(),e.setEmacsMark(null),e.keyBinding.$data.count=null},focusCommandLine:function(e,t){e.showCommandLine&&e.showCommandLine(t)}}),r.handler.addCommands(n.iSearchStartCommands);var d=r.handler.commands;d.yank.isYank=!0,d.yankRotate.isYank=!0,r.killRing={$data:[],add:function(e){e&&this.$data.push(e),30<this.$data.length&&this.$data.shift()},append:function(e){var t=this.$data.length-1,n=this.$data[t]||"";e&&(n+=e),n&&(this.$data[t]=n)},get:function(e){return e=e||1,this.$data.slice(this.$data.length-e,this.$data.length).reverse().join("\n")},pop:function(){return 1<this.$data.length&&this.$data.pop(),this.get()},rotate:function(){return this.$data.unshift(this.$data.pop()),this.get()}}}),ace.require(["ace/keyboard/emacs"],function(e){"object"==typeof module&&"object"==typeof exports&&module&&(module.exports=e)}),ace.define("ace/ext/elastic_tabstops_lite",["require","exports","module","ace/editor","ace/config"],function(e,t){"use strict";var n=function(e){this.$editor=e;var t=this,n=[],i=!1;this.onAfterExec=function(){i=!1,t.processRows(n),n=[]},this.onExec=function(){i=!0},this.onChange=function(e){i&&(-1==n.indexOf(e.start.row)&&n.push(e.start.row),e.end.row!=e.start.row&&n.push(e.end.row))}};(function(){this.processRows=function(e){this.$inChange=!0;for(var t=[],n=0,i=e.length;n<i;n++){var o=e[n];if(!(-1<t.indexOf(o)))for(var r=this.$findCellWidthsForBlock(o),s=this.$setBlockCellWidthsToMax(r.cellWidths),a=r.firstRow,l=0,c=s.length;l<c;l++){var h=s[l];t.push(a),this.$adjustRow(a,h),a++}}this.$inChange=!1},this.$findCellWidthsForBlock=function(e){for(var t,n=[],i=e;0<=i&&0!=(t=this.$cellWidthsForRow(i)).length;)n.unshift(t),i--;var o=i+1;i=e;for(var r=this.$editor.session.getLength();i<r-1&&(i++,0!=(t=this.$cellWidthsForRow(i)).length);)n.push(t);return{cellWidths:n,firstRow:o}},this.$cellWidthsForRow=function(e){for(var t=this.$selectionColumnsForRow(e),n=[-1].concat(this.$tabsForRow(e)),i=n.map(function(){return 0}).slice(1),o=this.$editor.session.getLine(e),r=0,s=n.length-1;r<s;r++){var a=n[r]+1,l=n[r+1],c=this.$rightmostSelectionInCell(t,l),h=o.substring(a,l);i[r]=Math.max(h.replace(/\s+$/g,"").length,c-a)}return i},this.$selectionColumnsForRow=function(e){var t=[],n=this.$editor.getCursorPosition();return this.$editor.session.getSelection().isEmpty()&&e==n.row&&t.push(n.column),t},this.$setBlockCellWidthsToMax=function(e){for(var t,n,i,o=!0,r=this.$izip_longest(e),s=0,a=r.length;s<a;s++){var l=r[s];if(l.push){l.push(NaN);for(var c=0,h=l.length;c<h;c++){var u=l[c];if(o&&(t=c,i=0,o=!1),isNaN(u)){n=c;for(var d=t;d<n;d++)e[d][s]=i;o=!0}i=Math.max(i,u)}}else console.error(l)}return e},this.$rightmostSelectionInCell=function(e,t){var n=0;if(e.length){for(var i=[],o=0,r=e.length;o<r;o++)e[o]<=t?i.push(o):i.push(0);n=Math.max.apply(Math,i)}return n},this.$tabsForRow=function(e){for(var t,n=[],i=this.$editor.session.getLine(e),o=/\t/g;null!=(t=o.exec(i));)n.push(t.index);return n},this.$adjustRow=function(e,t){var n=this.$tabsForRow(e);if(0!=n.length)for(var i=0,o=-1,r=this.$izip(t,n),s=0,a=r.length;s<a;s++){var l=r[s][0],c=r[s][1],h=(o+=1+l)-(c+=i);if(0!=h){var u=this.$editor.session.getLine(e).substr(0,c),d=u.replace(/\s*$/g,""),g=u.length-d.length;0<h&&(this.$editor.session.getDocument().insertInLine({row:e,column:c+1},Array(h+1).join(" ")+"\t"),this.$editor.session.getDocument().removeInLine(e,c,c+1),i+=h),h<0&&-h<=g&&(this.$editor.session.getDocument().removeInLine(e,c+h,c),i+=h)}}},this.$izip_longest=function(e){if(!e[0])return[];for(var t=e[0].length,n=e.length,i=1;i<n;i++){var o=e[i].length;t<o&&(t=o)}for(var r=[],s=0;s<t;s++){var a=[];for(i=0;i<n;i++)""===e[i][s]?a.push(NaN):a.push(e[i][s]);r.push(a)}return r},this.$izip=function(e,t){for(var n=e.length>=t.length?t.length:e.length,i=[],o=0;o<n;o++){var r=[e[o],t[o]];i.push(r)}return i}}).call(n.prototype),t.ElasticTabstopsLite=n;var i=e("../editor").Editor;e("../config").defineOptions(i.prototype,"editor",{useElasticTabstops:{set:function(e){e?(this.elasticTabstops||(this.elasticTabstops=new n(this)),this.commands.on("afterExec",this.elasticTabstops.onAfterExec),this.commands.on("exec",this.elasticTabstops.onExec),this.on("change",this.elasticTabstops.onChange)):this.elasticTabstops&&(this.commands.removeListener("afterExec",this.elasticTabstops.onAfterExec),this.commands.removeListener("exec",this.elasticTabstops.onExec),this.removeListener("change",this.elasticTabstops.onChange))}}})}),ace.require(["ace/ext/elastic_tabstops_lite"],function(e){"object"==typeof module&&"object"==typeof exports&&module&&(module.exports=e)}),ace.require(["ace/ext/error_marker"],function(e){"object"==typeof module&&"object"==typeof exports&&module&&(module.exports=e)}),ace.define("ace/ext/menu_tools/overlay_page",["require","exports","module","ace/lib/dom"],function(e,t,n){"use strict";var i="#ace_settingsmenu, #kbshortcutmenu {background-color: #F7F7F7;color: black;box-shadow: -5px 4px 5px rgba(126, 126, 126, 0.55);padding: 1em 0.5em 2em 1em;overflow: auto;position: absolute;margin: 0;bottom: 0;right: 0;top: 0;z-index: 9991;cursor: default;}.ace_dark #ace_settingsmenu, .ace_dark #kbshortcutmenu {box-shadow: -20px 10px 25px rgba(126, 126, 126, 0.25);background-color: rgba(255, 255, 255, 0.6);color: black;}.ace_optionsMenuEntry:hover {background-color: rgba(100, 100, 100, 0.1);transition: all 0.3s}.ace_closeButton {background: rgba(245, 146, 146, 0.5);border: 1px solid #F48A8A;border-radius: 50%;padding: 7px;position: absolute;right: -8px;top: -8px;z-index: 100000;}.ace_closeButton{background: rgba(245, 146, 146, 0.9);}.ace_optionsMenuKey {color: darkslateblue;font-weight: bold;}.ace_optionsMenuCommand {color: darkcyan;font-weight: normal;}.ace_optionsMenuEntry input, .ace_optionsMenuEntry button {vertical-align: middle;}.ace_optionsMenuEntry button[ace_selected_button=true] {background: #e7e7e7;box-shadow: 1px 0px 2px 0px #adadad inset;border-color: #adadad;}.ace_optionsMenuEntry button {background: white;border: 1px solid lightgray;margin: 0px;}.ace_optionsMenuEntry button:hover{background: #f0f0f0;}";e("../../lib/dom").importCssString(i),n.exports.overlayPage=function(e,t,n){function i(e){27===e.keyCode&&o()}function o(){r&&(document.removeEventListener("keydown",i),r.parentNode.removeChild(r),e.focus(),r=null,n&&n())}var r=document.createElement("div");return r.style.cssText="margin: 0; padding: 0; position: fixed; top:0; bottom:0; left:0; right:0;z-index: 9990; background-color: rgba(0, 0, 0, 0.3);",r.addEventListener("click",function(){o()}),document.addEventListener("keydown",i),t.addEventListener("click",function(e){e.stopPropagation()}),r.appendChild(t),document.body.appendChild(r),e.blur(),{close:o}}}),ace.define("ace/ext/menu_tools/get_editor_keyboard_shortcuts",["require","exports","module","ace/lib/keys"],function(e,t,n){"use strict";var i=e("../../lib/keys");n.exports.getEditorKeybordShortcuts=function(e){i.KEY_MODS;var r=[],s={};return e.keyBinding.$handlers.forEach(function(e){var t=e.commandKeyBinding;for(var n in t){var i=n.replace(/(^|-)\w/g,function(e){return e.toUpperCase()}),o=t[n];Array.isArray(o)||(o=[o]),o.forEach(function(e){"string"!=typeof e&&(e=e.name),s[e]?s[e].key+="|"+i:(s[e]={key:i,command:e},r.push(s[e]))})}}),r}}),ace.define("ace/ext/keybinding_menu",["require","exports","module","ace/editor","ace/ext/menu_tools/overlay_page","ace/ext/menu_tools/get_editor_keyboard_shortcuts"],function(r,e,t){"use strict";function n(e){if(!document.getElementById("kbshortcutmenu")){var t=r("./menu_tools/overlay_page").overlayPage,n=(0,r("./menu_tools/get_editor_keyboard_shortcuts").getEditorKeybordShortcuts)(e),i=document.createElement("div"),o=n.reduce(function(e,t){return e+'<div class="ace_optionsMenuEntry"><span class="ace_optionsMenuCommand">'+t.command+'</span> : <span class="ace_optionsMenuKey">'+t.key+"</span></div>"},"");i.id="kbshortcutmenu",i.innerHTML="<h1>Keyboard Shortcuts</h1>"+o+"</div>",t(e,i)}}var i=r("../editor").Editor;t.exports.init=function(e){i.prototype.showKeyboardShortcuts=function(){n(this)},e.commands.addCommands([{name:"showKeyboardShortcuts",bindKey:{win:"Ctrl-Alt-h",mac:"Command-Alt-h"},exec:function(e){e.showKeyboardShortcuts()}}])}}),ace.require(["ace/ext/keybinding_menu"],function(e){"object"==typeof module&&"object"==typeof exports&&module&&(module.exports=e)}),ace.define("ace/snippets",["require","exports","module","ace/lib/oop","ace/lib/event_emitter","ace/lib/lang","ace/range","ace/range_list","ace/keyboard/hash_handler","ace/tokenizer","ace/clipboard","ace/lib/dom","ace/editor"],function(e,a){"use strict";function t(e){var t=(new Date).toLocaleString("en-us",e);return 1==t.length?"0"+t:t}var n=e("./lib/oop"),i=e("./lib/event_emitter").EventEmitter,c=e("./lib/lang"),h=e("./range").Range,u=e("./range_list").RangeList,o=e("./keyboard/hash_handler").HashHandler,r=e("./tokenizer").Tokenizer,s=e("./clipboard"),l={CURRENT_WORD:function(e){return e.session.getTextRange(e.session.getWordRange())},SELECTION:function(e,t,n){var i=e.session.getTextRange();return n?i.replace(/\n\r?([ \t]*\S)/g,"\n"+n+"$1"):i},CURRENT_LINE:function(e){return e.session.getLine(e.getCursorPosition().row)},PREV_LINE:function(e){return e.session.getLine(e.getCursorPosition().row-1)},LINE_INDEX:function(e){return e.getCursorPosition().row},LINE_NUMBER:function(e){return e.getCursorPosition().row+1},SOFT_TABS:function(e){return e.session.getUseSoftTabs()?"YES":"NO"},TAB_SIZE:function(e){return e.session.getTabSize()},CLIPBOARD:function(){return s.getText&&s.getText()},FILENAME:function(e){return/[^/\\]*$/.exec(this.FILEPATH(e))[0]},FILENAME_BASE:function(e){return/[^/\\]*$/.exec(this.FILEPATH(e))[0].replace(/\.[^.]*$/,"")},DIRECTORY:function(e){return this.FILEPATH(e).replace(/[^/\\]*$/,"")},FILEPATH:function(){return"/not implemented.txt"},WORKSPACE_NAME:function(){return"Unknown"},FULLNAME:function(){return"Unknown"},BLOCK_COMMENT_START:function(e){var t=e.session.$mode||{};return t.blockComment&&t.blockComment.start||""},BLOCK_COMMENT_END:function(e){var t=e.session.$mode||{};return t.blockComment&&t.blockComment.end||""},LINE_COMMENT:function(e){return(e.session.$mode||{}).lineCommentStart||""},CURRENT_YEAR:t.bind(null,{year:"numeric"}),CURRENT_YEAR_SHORT:t.bind(null,{year:"2-digit"}),CURRENT_MONTH:t.bind(null,{month:"numeric"}),CURRENT_MONTH_NAME:t.bind(null,{month:"long"}),CURRENT_MONTH_NAME_SHORT:t.bind(null,{month:"short"}),CURRENT_DATE:t.bind(null,{day:"2-digit"}),CURRENT_DAY_NAME:t.bind(null,{weekday:"long"}),CURRENT_DAY_NAME_SHORT:t.bind(null,{weekday:"short"}),CURRENT_HOUR:t.bind(null,{hour:"2-digit",hour12:!1}),CURRENT_MINUTE:t.bind(null,{minute:"2-digit"}),CURRENT_SECOND:t.bind(null,{second:"2-digit"})};l.SELECTED_TEXT=l.SELECTION;var d=function(){this.snippetMap={},this.snippetNameMap={}};(function(){n.implement(this,i),this.getTokenizer=function(){return d.$tokenizer||this.createTokenizer()},this.createTokenizer=function(){function o(e){return e=e.substr(1),/^\d+$/.test(e)?[{tabstopId:parseInt(e,10)}]:[{text:e}]}function e(e){return"(?:[^\\\\"+e+"]|\\\\.)"}var t={regex:"/("+e("/")+"+)/",onMatch:function(e,t,n){var i=n[0];return i.fmtString=!0,i.guard=e.slice(1,-1),i.flag=""},next:"formatString"};return d.$tokenizer=new r({start:[{regex:/\\./,onMatch:function(e,t,n){var i=e[1];return"}"==i&&n.length?e=i:-1!="`$\\".indexOf(i)&&(e=i),[e]}},{regex:/}/,onMatch:function(e,t,n){return[n.length?n.shift():e]}},{regex:/\$(?:\d+|\w+)/,onMatch:o},{regex:/\$\{[\dA-Z_a-z]+/,onMatch:function(e,t,n){var i=o(e.substr(1));return n.unshift(i[0]),i},next:"snippetVar"},{regex:/\n/,token:"newline",merge:!1}],snippetVar:[{regex:"\\|"+e("\\|")+"*\\|",onMatch:function(e,t,n){var i=e.slice(1,-1).replace(/\\[,|\\]|,/g,function(e){return 2==e.length?e[1]:"\0"}).split("\0");return[(n[0].choices=i)[0]]},next:"start"},t,{regex:"([^:}\\\\]|\\\\.)*:?",token:"",next:"start"}],formatString:[{regex:/:/,onMatch:function(e,t,n){return n.length&&n[0].expectElse?(n[0].expectElse=!1,n[0].ifEnd={elseEnd:n[0]},[n[0].ifEnd]):":"}},{regex:/\\./,onMatch:function(e,t,n){var i=e[1];return"}"==i&&n.length?e=i:-1!="`$\\".indexOf(i)?e=i:"n"==i?e="\n":"t"==i?e="\t":-1!="ulULE".indexOf(i)&&(e={changeCase:i,local:"a"<i}),[e]}},{regex:"/\\w*}",onMatch:function(e,t,n){var i=n.shift();return i&&(i.flag=e.slice(1,-1)),this.next=i&&i.tabstopId?"start":"",[i||e]},next:"start"},{regex:/\$(?:\d+|\w+)/,onMatch:function(e){return[{text:e.slice(1)}]}},{regex:/\${\w+/,onMatch:function(e,t,n){var i={text:e.slice(2)};return n.unshift(i),[i]},next:"formatStringVar"},{regex:/\n/,token:"newline",merge:!1},{regex:/}/,onMatch:function(e,t,n){var i=n.shift();return this.next=i&&i.tabstopId?"start":"",[i||e]},next:"start"}],formatStringVar:[{regex:/:\/\w+}/,onMatch:function(e,t,n){return n[0].formatFunction=e.slice(2,-1),[n.shift()]},next:"formatString"},t,{regex:/:[\?\-+]?/,onMatch:function(e,t,n){"+"==e[1]&&(n[0].ifEnd=n[0]),"?"==e[1]&&(n[0].expectElse=!0)},next:"formatString"},{regex:"([^:}\\\\]|\\\\.)*:?",token:"",next:"formatString"}]}),d.$tokenizer},this.tokenizeTmSnippet=function(e,t){return this.getTokenizer().getLineTokens(e,t).tokens.map(function(e){return e.value||e})},this.getVariableValue=function(e,t,n){if(/^\d+$/.test(t))return(this.variables.__||{})[t]||"";if(/^[A-Z]\d+$/.test(t))return(this.variables[t[0]+"__"]||{})[t.substr(1)]||"";if(t=t.replace(/^TM_/,""),!this.variables.hasOwnProperty(t))return"";var i=this.variables[t];return"function"==typeof i&&(i=this.variables[t](e,t,n)),null==i?"":i},this.variables=l,this.tmStrFormat=function(e,t,s){if(!t.fmt)return e;var n=t.flag||"",i=t.guard;i=new RegExp(i,n.replace(/[^gim]/g,""));var a="string"==typeof t.fmt?this.tokenizeTmSnippet(t.fmt,"formatString"):t.fmt,l=this;return e.replace(i,function(){var e=l.variables.__;l.variables.__=[].slice.call(arguments);for(var t=l.resolveVariables(a,s),n="E",i=0;i<t.length;i++){var o=t[i];if("object"==typeof o)if(t[i]="",o.changeCase&&o.local){var r=t[i+1];r&&"string"==typeof r&&("u"==o.changeCase?t[i]=r[0].toUpperCase():t[i]=r[0].toLowerCase(),t[i+1]=r.substr(1))}else o.changeCase&&(n=o.changeCase);else"U"==n?t[i]=o.toUpperCase():"L"==n&&(t[i]=o.toLowerCase())}return l.variables.__=e,t.join("")})},this.tmFormatFunction=function(e,t){return"upcase"==t.formatFunction?e.toUpperCase():"downcase"==t.formatFunction?e.toLowerCase():e},this.resolveVariables=function(n,e){function t(e){var t=n.indexOf(e,s+1);-1!=t&&(s=t)}for(var i=[],o="",r=!0,s=0;s<n.length;s++){var a=n[s];if("string"!=typeof a){if(a){if(r=!1,a.fmtString){var l=n.indexOf(a,s+1);-1==l&&(l=n.length),a.fmt=n.slice(s+1,l),s=l}if(a.text){var c=this.getVariableValue(e,a.text,o)+"";a.fmtString&&(c=this.tmStrFormat(c,a,e)),a.formatFunction&&(c=this.tmFormatFunction(c,a,e)),c&&!a.ifEnd?(i.push(c),t(a)):!c&&a.ifEnd&&t(a.ifEnd)}else a.elseEnd?t(a.elseEnd):null!=a.tabstopId?i.push(a):null!=a.changeCase&&i.push(a)}}else i.push(a),"\n"==a?(r=!0,o=""):r&&(o=/^\t*/.exec(a)[0],r=/\S/.test(a))}return i},this.insertSnippetForSelection=function(e,t){function n(e){for(var t=[],n=0;n<e.length;n++){var i=e[n];if("object"==typeof i){if(c[i.tabstopId])continue;i=t[e.lastIndexOf(i,n-1)]||{tabstopId:i.tabstopId}}t[n]=i}return t}var i=e.getCursorPosition(),o=e.session.getLine(i.row),r=e.session.getTabString(),s=o.match(/^\s*/)[0];i.column<s.length&&(s=s.slice(0,i.column)),t=t.replace(/\r/g,"");var a=this.tokenizeTmSnippet(t);a=(a=this.resolveVariables(a,e)).map(function(e){return"\n"==e?e+s:"string"==typeof e?e.replace(/\t/g,r):e});var l=[];a.forEach(function(e,t){if("object"==typeof e){var n=e.tabstopId,i=l[n];if(i||((i=l[n]=[]).index=n,i.value="",i.parents={}),-1===i.indexOf(e)){e.choices&&!i.choices&&(i.choices=e.choices),i.push(e);var o=a.indexOf(e,t+1);if(-1!==o){var r=a.slice(t+1,o);r.some(function(e){return"object"==typeof e})&&!i.value?i.value=r:r.length&&(!i.value||"string"!=typeof i.value)&&(i.value=r.join(""))}}}}),l.forEach(function(e){e.length=0});for(var c={},h=0;h<a.length;h++){var u=a[h];if("object"==typeof u){var d=u.tabstopId,g=l[d],p=a.indexOf(u,h+1);if(c[d])c[d]===u&&(delete c[d],Object.keys(c).forEach(function(e){g.parents[e]=!0}));else{c[d]=u;var f=g.value;"string"!=typeof f?f=n(f):u.fmt&&(f=this.tmStrFormat(f,u,e)),a.splice.apply(a,[h+1,Math.max(0,p-h)].concat(f,u)),-1===g.indexOf(u)&&g.push(u)}}}var m=0,v=0,b="";a.forEach(function(e){if("string"==typeof e){var t=e.split("\n");1<t.length?(v=t[t.length-1].length,m+=t.length-1):v+=e.length,b+=e}else e&&(e.start?e.end={row:m,column:v}:e.start={row:m,column:v})});var w=e.getSelectionRange(),y=e.session.replace(w,b),x=new C(e),k=e.inVirtualSelectionMode&&e.selection.index;x.addTabstops(l,w.start,y,k)},this.insertSnippet=function(e,t){var n=this;if(e.inVirtualSelectionMode)return n.insertSnippetForSelection(e,t);e.forEachSelection(function(){n.insertSnippetForSelection(e,t)},null,{keepOrder:!0}),e.tabstopManager&&e.tabstopManager.tabNext()},this.$getScope=function(e){var t=e.session.$mode.$id||"";if("html"===(t=t.split("/").pop())||"php"===t){"php"===t&&!e.session.$mode.inlinePhp&&(t="html");var n=e.getCursorPosition(),i=e.session.getState(n.row);"object"==typeof i&&(i=i[0]),i.substring&&("js-"==i.substring(0,3)?t="javascript":"css-"==i.substring(0,4)?t="css":"php-"==i.substring(0,4)&&(t="php"))}return t},this.getActiveScopes=function(e){var t=this.$getScope(e),n=[t],i=this.snippetMap;return i[t]&&i[t].includeScopes&&n.push.apply(n,i[t].includeScopes),n.push("_"),n},this.expandWithTab=function(e,t){var n=this,i=e.forEachSelection(function(){return n.expandSnippetForSelection(e,t)},null,{keepOrder:!0});return i&&e.tabstopManager&&e.tabstopManager.tabNext(),i},this.expandSnippetForSelection=function(e,t){var n,i=e.getCursorPosition(),o=e.session.getLine(i.row),r=o.substring(0,i.column),s=o.substr(i.column),a=this.snippetMap;return this.getActiveScopes(e).some(function(e){var t=a[e];return t&&(n=this.findMatchingSnippet(t,r,s)),!!n},this),!!n&&(t&&t.dryRun||(e.session.doc.removeInLine(i.row,i.column-n.replaceBefore.length,i.column+n.replaceAfter.length),this.variables.M__=n.matchBefore,this.variables.T__=n.matchAfter,this.insertSnippetForSelection(e,n.content),this.variables.M__=this.variables.T__=null),!0)},this.findMatchingSnippet=function(e,t,n){for(var i=e.length;i--;){var o=e[i];if((!o.startRe||o.startRe.test(t))&&((!o.endRe||o.endRe.test(n))&&(o.startRe||o.endRe)))return o.matchBefore=o.startRe?o.startRe.exec(t):[""],o.matchAfter=o.endRe?o.endRe.exec(n):[""],o.replaceBefore=o.triggerRe?o.triggerRe.exec(t)[0]:"",o.replaceAfter=o.endTriggerRe?o.endTriggerRe.exec(n)[0]:"",o}},this.snippetMap={},this.snippetNameMap={},this.register=function(e,i){function o(e){return e&&!/^\^?\(.*\)\$?$|^\\b$/.test(e)&&(e="(?:"+e+")"),e||""}function r(e,t,n){return e=o(e),t=o(t),n?(e=t+e)&&"$"!=e[e.length-1]&&(e+="$"):(e+=t)&&"^"!=e[0]&&(e="^"+e),new RegExp(e)}function t(e){e.scope||(e.scope=i||"_"),i=e.scope,s[i]||(s[i]=[],a[i]={});var t=a[i];if(e.name){var n=t[e.name];n&&l.unregister(n),t[e.name]=e}s[i].push(e),e.tabTrigger&&!e.trigger&&(!e.guard&&/^\w/.test(e.tabTrigger)&&(e.guard="\\b"),e.trigger=c.escapeRegExp(e.tabTrigger)),(e.trigger||e.guard||e.endTrigger||e.endGuard)&&(e.startRe=r(e.trigger,e.guard,!0),e.triggerRe=new RegExp(e.trigger),e.endRe=r(e.endTrigger,e.endGuard,!0),e.endTriggerRe=new RegExp(e.endTrigger))}var s=this.snippetMap,a=this.snippetNameMap,l=this;e||(e=[]),e&&e.content?t(e):Array.isArray(e)&&e.forEach(t),this._signal("registerSnippets",{scope:i})},this.unregister=function(e,o){function t(e){var t=s[e.scope||o];if(t&&t[e.name]){delete t[e.name];var n=r[e.scope||o],i=n&&n.indexOf(e);0<=i&&n.splice(i,1)}}var r=this.snippetMap,s=this.snippetNameMap;e.content?t(e):Array.isArray(e)&&e.forEach(t)},this.parseSnippetFile=function(e){e=e.replace(/\r/g,"");for(var t,n=[],i={},o=/^#.*|^({[\s\S]*})\s*$|^(\S+) (.*)$|^((?:\n*\t.*)+)/gm;t=o.exec(e);){if(t[1])try{i=JSON.parse(t[1]),n.push(i)}catch(c){}if(t[4])i.content=t[4].replace(/^\t/gm,""),n.push(i),i={};else{var r=t[2],s=t[3];if("regex"==r){var a=/\/((?:[^\/\\]|\\.)*)|$/g;i.guard=a.exec(s)[1],i.trigger=a.exec(s)[1],i.endTrigger=a.exec(s)[1],i.endGuard=a.exec(s)[1]}else"snippet"==r?(i.tabTrigger=s.match(/^\S*/)[0],i.name||(i.name=s)):i[r]=s}}return n},this.getSnippetByName=function(n,e){var i,o=this.snippetNameMap;return this.getActiveScopes(e).some(function(e){var t=o[e];return t&&(i=t[n]),!!i},this),i}}).call(d.prototype);var C=function(e){if(e.tabstopManager)return e.tabstopManager;(e.tabstopManager=this).$onChange=this.onChange.bind(this),this.$onChangeSelection=c.delayedCall(this.onChangeSelection.bind(this)).schedule,this.$onChangeSession=this.onChangeSession.bind(this),this.$onAfterExec=this.onAfterExec.bind(this),this.attach(e)};(function(){this.attach=function(e){this.index=0,this.ranges=[],this.tabstops=[],this.$openTabstops=null,this.selectedTabstop=null,this.editor=e,this.editor.on("change",this.$onChange),this.editor.on("changeSelection",this.$onChangeSelection),this.editor.on("changeSession",this.$onChangeSession),this.editor.commands.on("afterExec",this.$onAfterExec),this.editor.keyBinding.addKeyboardHandler(this.keyboardHandler)},
20
- this.detach=function(){this.tabstops.forEach(this.removeTabstopMarkers,this),this.ranges=null,this.tabstops=null,this.selectedTabstop=null,this.editor.removeListener("change",this.$onChange),this.editor.removeListener("changeSelection",this.$onChangeSelection),this.editor.removeListener("changeSession",this.$onChangeSession),this.editor.commands.removeListener("afterExec",this.$onAfterExec),this.editor.keyBinding.removeKeyboardHandler(this.keyboardHandler),this.editor.tabstopManager=null,this.editor=null},this.onChange=function(e){for(var t="r"==e.action[0],n=this.selectedTabstop&&this.selectedTabstop.parents||{},i=(this.tabstops||[]).slice(),o=0;o<i.length;o++){var r=i[o],s=r==this.selectedTabstop||n[r.index];if(r.rangeList.$bias=s?0:1,"remove"==e.action&&r!==this.selectedTabstop){var a=r.parents&&r.parents[this.selectedTabstop.index],l=r.rangeList.pointIndex(e.start,a);l=l<0?-l-1:l+1;var c=r.rangeList.pointIndex(e.end,a);c=c<0?-c-1:c-1;for(var h=r.rangeList.ranges.slice(l,c),u=0;u<h.length;u++)this.removeRange(h[u])}r.rangeList.$onChange(e)}var d=this.editor.session;!this.$inChange&&t&&1==d.getLength()&&!d.getValue()&&this.detach()},this.updateLinkedFields=function(){var e=this.selectedTabstop;if(e&&e.hasLinkedRanges&&e.firstNonLinked){this.$inChange=!0;for(var t=this.editor.session,n=t.getTextRange(e.firstNonLinked),i=0;i<e.length;i++){var o=e[i];if(o.linked){var r=o.original,s=a.snippetManager.tmStrFormat(n,r,this.editor);t.replace(o,s)}}this.$inChange=!1}},this.onAfterExec=function(e){e.command&&!e.command.readOnly&&this.updateLinkedFields()},this.onChangeSelection=function(){if(this.editor){for(var e=this.editor.selection.lead,t=this.editor.selection.anchor,n=this.editor.selection.isEmpty(),i=0;i<this.ranges.length;i++)if(!this.ranges[i].linked){var o=this.ranges[i].contains(e.row,e.column),r=n||this.ranges[i].contains(t.row,t.column);if(o&&r)return}this.detach()}},this.onChangeSession=function(){this.detach()},this.tabNext=function(e){var t=this.tabstops.length,n=this.index+(e||1);(n=Math.min(Math.max(n,1),t))==t&&(n=0),this.selectTabstop(n),0===n&&this.detach()},this.selectTabstop=function(e){this.$openTabstops=null;var t=this.tabstops[this.index];if(t&&this.addTabstopMarkers(t),this.index=e,(t=this.tabstops[this.index])&&t.length){var n=(this.selectedTabstop=t).firstNonLinked||t;if(this.editor.inVirtualSelectionMode)this.editor.selection.setRange(n);else{var i=this.editor.multiSelect;i.toSingleRange(n.clone());for(var o=0;o<t.length;o++)t.hasLinkedRanges&&t[o].linked||i.addRange(t[o].clone(),!0);i.ranges[0]&&i.addRange(i.ranges[0].clone())}this.editor.keyBinding.addKeyboardHandler(this.keyboardHandler),this.selectedTabstop&&this.selectedTabstop.choices&&this.editor.execCommand("startAutocomplete",{matches:this.selectedTabstop.choices})}},this.addTabstops=function(e,s,t){var a=this.useLink||!this.editor.getOption("enableMultiselect");if(this.$openTabstops||(this.$openTabstops=[]),!e[0]){var n=h.fromPoints(t,t);p(n.start,s),p(n.end,s),e[0]=[n],e[0].index=0}var l=[this.index+1,0],c=this.ranges;e.forEach(function(e,t){var n=this.$openTabstops[t]||e;e.rangeList=new u;for(var i=e.rangeList.$bias=0;i<e.length;i++){var o=e[i],r=h.fromPoints(o.start,o.end||o.start);g(r.start,s),g(r.end,s),r.original=o,r.tabstop=n,c.push(r),e.rangeList.ranges.push(r),n!=e?n.unshift(r):n[i]=r,o.fmtString||n.firstNonLinked&&a?(r.linked=!0,n.hasLinkedRanges=!0):n.firstNonLinked||(n.firstNonLinked=r)}n.firstNonLinked||(n.hasLinkedRanges=!1),n===e&&(l.push(n),this.$openTabstops[t]=n),this.addTabstopMarkers(n)},this),2<l.length&&(this.tabstops.length&&l.push(l.splice(2,1)[0]),this.tabstops.splice.apply(this.tabstops,l))},this.addTabstopMarkers=function(e){var t=this.editor.session;e.forEach(function(e){e.markerId||(e.markerId=t.addMarker(e,"ace_snippet-marker","text"))})},this.removeTabstopMarkers=function(e){var t=this.editor.session;e.forEach(function(e){t.removeMarker(e.markerId),e.markerId=null})},this.removeRange=function(e){var t=e.tabstop.indexOf(e);-1!=t&&e.tabstop.splice(t,1),-1!=(t=this.ranges.indexOf(e))&&this.ranges.splice(t,1),-1!=(t=e.tabstop.rangeList.ranges.indexOf(e))&&e.tabstop.splice(t,1),this.editor.session.removeMarker(e.markerId),e.tabstop.length||(-1!=(t=this.tabstops.indexOf(e.tabstop))&&this.tabstops.splice(t,1),this.tabstops.length||this.detach())},this.keyboardHandler=new o,this.keyboardHandler.bindKeys({Tab:function(e){a.snippetManager&&a.snippetManager.expandWithTab(e)||e.tabstopManager.tabNext(1)},"Shift-Tab":function(e){e.tabstopManager.tabNext(-1)},Esc:function(e){e.tabstopManager.detach()},Return:function(){return!1}})}).call(C.prototype);var g=function(e,t){0==e.row&&(e.column+=t.column),e.row+=t.row},p=function(e,t){e.row==t.row&&(e.column-=t.column),e.row-=t.row};e("./lib/dom").importCssString(".ace_snippet-marker { -moz-box-sizing: border-box; box-sizing: border-box; background: rgba(194, 193, 208, 0.09); border: 1px dotted rgba(211, 208, 235, 0.62); position: absolute;}"),a.snippetManager=new d;var f=e("./editor").Editor;(function(){this.insertSnippet=function(e,t){return a.snippetManager.insertSnippet(this,e,t)},this.expandSnippet=function(e){return a.snippetManager.expandWithTab(this,e)}}).call(f.prototype)}),ace.define("ace/autocomplete/popup",["require","exports","module","ace/virtual_renderer","ace/editor","ace/range","ace/lib/event","ace/lib/lang","ace/lib/dom"],function(e,t){"use strict";var i=e("../virtual_renderer").VirtualRenderer,o=e("../editor").Editor,l=e("../range").Range,c=e("../lib/event"),u=e("../lib/lang"),g=e("../lib/dom"),p=function(e){var t=new i(e);t.$maxLines=4;var n=new o(t);return n.setHighlightActiveLine(!1),n.setShowPrintMargin(!1),n.renderer.setShowGutter(!1),n.renderer.setHighlightGutterLine(!1),n.$mouseHandler.$focusTimeout=0,n.$highlightTagPending=!0,n},n=function(e){var t=g.createElement("div"),d=new p(t);e&&e.appendChild(t),t.style.display="none",d.renderer.content.style.cursor="default",d.renderer.setStyle("ace_autocomplete"),d.setOption("displayIndentGuides",!1),d.setOption("dragDelay",150);var n=function(){};d.focus=n,d.$isFocused=!0,d.renderer.$cursorLayer.restartTimer=n,d.renderer.$cursorLayer.element.style.opacity=0,d.renderer.$maxLines=8,d.renderer.$keepTextAreaAtCursor=!1,d.setHighlightActiveLine(!1),d.session.highlight(""),d.session.$searchHighlight.clazz="ace_highlight-marker",d.on("mousedown",function(e){var t=e.getDocumentPosition();d.selection.moveToPosition(t),o.start.row=o.end.row=t.row,e.stop()});var h,i=new l(-1,0,-1,Infinity),o=new l(-1,0,-1,Infinity);o.id=d.session.addMarker(o,"ace_active-line","fullLine"),d.setSelectOnHover=function(e){e?i.id&&(d.session.removeMarker(i.id),i.id=null):i.id=d.session.addMarker(i,"ace_line-hover","fullLine")},d.setSelectOnHover(!1),d.on("mousemove",function(e){if(h){if(h.x!=e.x||h.y!=e.y){(h=e).scrollTop=d.renderer.scrollTop;var t=h.getDocumentPosition().row;i.start.row!=t&&(i.id||d.setRow(t),s(t))}}else h=e}),d.renderer.on("beforeRender",function(){if(h&&-1!=i.start.row){h.$pos=null;var e=h.getDocumentPosition().row;i.id||d.setRow(e),s(e,!0)}}),d.renderer.on("afterRender",function(){var e=d.getRow(),t=d.renderer.$textLayer,n=t.element.childNodes[e-t.config.firstRow];n!==t.selectedNode&&t.selectedNode&&g.removeCssClass(t.selectedNode,"ace_selected"),(t.selectedNode=n)&&g.addCssClass(n,"ace_selected")});var r=function(){s(-1)},s=function(e,t){e!==i.start.row&&(i.start.row=i.end.row=e,t||d.session._emit("changeBackMarker"),d._emit("changeHoverMarker"))};d.getHoveredRow=function(){return i.start.row},c.addListener(d.container,"mouseout",r),d.on("hide",r),d.on("changeSelection",r),d.session.doc.getLength=function(){return d.data.length},d.session.doc.getLine=function(e){var t=d.data[e];return"string"==typeof t?t:t&&t.value||""};var a=d.session.bgTokenizer;return a.$tokenizeRow=function(e){function t(e,t){e&&i.push({type:(n.className||"")+(t||""),value:e})}var n=d.data[e],i=[];if(!n)return i;"string"==typeof n&&(n={value:n});for(var o=n.caption||n.value||n.name,r=o.toLowerCase(),s=(d.filterText||"").toLowerCase(),a=0,l=0,c=0;c<=s.length;c++)if(c!=l&&(n.matchMask&1<<c||c==s.length)){var h=s.slice(l,c);l=c;var u=r.indexOf(h,a);if(-1==u)continue;t(o.slice(a,u),""),a=u+h.length,t(o.slice(u,a),"completion-highlight")}return t(o.slice(a,o.length),""),n.meta&&i.push({type:"completion-meta",value:n.meta}),n.message&&i.push({type:"completion-message",value:n.message}),i},a.$updateOnChange=n,a.start=n,d.session.$computeWidth=function(){return this.screenWidth=0},d.isOpen=!1,d.isTopdown=!1,d.autoSelect=!0,d.filterText="",d.data=[],d.setData=function(e,t){d.filterText=t||"",d.setValue(u.stringRepeat("\n",e.length),-1),d.data=e||[],d.setRow(0)},d.getData=function(e){return d.data[e]},d.getRow=function(){return o.start.row},d.setRow=function(e){e=Math.max(this.autoSelect?0:-1,Math.min(this.data.length,e)),o.start.row!=e&&(d.selection.clearSelection(),o.start.row=o.end.row=e||0,d.session._emit("changeBackMarker"),d.moveCursorTo(e||0,0),d.isOpen&&d._signal("select"))},d.on("changeSelection",function(){d.isOpen&&d.setRow(d.selection.lead.row),d.renderer.scrollCursorIntoView()}),d.hide=function(){this.container.style.display="none",this._signal("hide"),d.isOpen=!1},d.show=function(e,t,n){var i=this.container,o=window.innerHeight,r=window.innerWidth,s=this.renderer,a=s.$maxLines*t*1.4,l=e.top+this.$borderSize;o/2<l&&!n&&o<l+t+a?(s.$maxPixelHeight=l-2*this.$borderSize,i.style.top="",i.style.bottom=o-l+"px",d.isTopdown=!1):(l+=t,s.$maxPixelHeight=o-l-.2*t,i.style.top=l+"px",i.style.bottom="",d.isTopdown=!0),i.style.display="";var c=e.left;c+i.offsetWidth>r&&(c=r-i.offsetWidth),i.style.left=c+"px",this._signal("show"),h=null,d.isOpen=!0},d.goTo=function(e){var t=this.getRow(),n=this.session.getLength()-1;switch(e){case"up":t=t<=0?n:t-1;break;case"down":t=n<=t?-1:t+1;break;case"start":t=0;break;case"end":t=n}this.setRow(t)},d.getTextLeftOffset=function(){return this.$borderSize+this.renderer.$padding+this.$imageSize},d.$imageSize=0,d.$borderSize=1,d};g.importCssString(".ace_editor.ace_autocomplete .ace_marker-layer .ace_active-line { background-color: #CAD6FA; z-index: 1;}.ace_dark.ace_editor.ace_autocomplete .ace_marker-layer .ace_active-line { background-color: #3a674e;}.ace_editor.ace_autocomplete .ace_line-hover { border: 1px solid #abbffe; margin-top: -1px; background: rgba(233,233,253,0.4); position: absolute; z-index: 2;}.ace_dark.ace_editor.ace_autocomplete .ace_line-hover { border: 1px solid rgba(109, 150, 13, 0.8); background: rgba(58, 103, 78, 0.62);}.ace_completion-meta { opacity: 0.5; margin: 0.9em;}.ace_completion-message { color: blue;}.ace_editor.ace_autocomplete .ace_completion-highlight{ color: #2d69c7;}.ace_dark.ace_editor.ace_autocomplete .ace_completion-highlight{ color: #93ca12;}.ace_editor.ace_autocomplete { width: 300px; z-index: 200000; border: 1px lightgray solid; position: fixed; box-shadow: 2px 3px 5px rgba(0,0,0,.2); line-height: 1.4; background: #fefefe; color: #111;}.ace_dark.ace_editor.ace_autocomplete { border: 1px #484747 solid; box-shadow: 2px 3px 5px rgba(0, 0, 0, 0.51); line-height: 1.4; background: #25282c; color: #c1c1c1;}","autocompletion.css"),t.AcePopup=n,t.$singleLineEditor=p}),ace.define("ace/autocomplete/util",["require","exports","module"],function(e,t){"use strict";t.parForEach=function(e,t,n){var i=0,o=e.length;0===o&&n();for(var r=0;r<o;r++)t(e[r],function(e,t){++i===o&&n(e,t)})};var r=/[a-zA-Z_0-9\$\-\u00A2-\uFFFF]/;t.retrievePrecedingIdentifier=function(e,t,n){n=n||r;for(var i=[],o=t-1;0<=o&&n.test(e[o]);o--)i.push(e[o]);return i.reverse().join("")},t.retrieveFollowingIdentifier=function(e,t,n){n=n||r;for(var i=[],o=t;o<e.length&&n.test(e[o]);o++)i.push(e[o]);return i},t.getCompletionPrefix=function(e){var t,n=e.getCursorPosition(),i=e.session.getLine(n.row);return e.completers.forEach(function(e){e.identifierRegexps&&e.identifierRegexps.forEach(function(e){!t&&e&&(t=this.retrievePrecedingIdentifier(i,n.column,e))}.bind(this))}.bind(this)),t||this.retrievePrecedingIdentifier(i,n.column)}}),ace.define("ace/autocomplete",["require","exports","module","ace/keyboard/hash_handler","ace/autocomplete/popup","ace/autocomplete/util","ace/lib/lang","ace/lib/dom","ace/snippets","ace/config"],function(e,t){"use strict";var n=e("./keyboard/hash_handler").HashHandler,i=e("./autocomplete/popup").AcePopup,l=e("./autocomplete/util"),o=e("./lib/lang"),r=e("./lib/dom"),s=e("./snippets").snippetManager,a=e("./config"),c=function(){this.autoInsert=!1,this.autoSelect=!0,this.exactMatch=!1,this.gatherCompletionsId=0,this.keyboardHandler=new n,this.keyboardHandler.bindKeys(this.commands),this.blurListener=this.blurListener.bind(this),this.changeListener=this.changeListener.bind(this),this.mousedownListener=this.mousedownListener.bind(this),this.mousewheelListener=this.mousewheelListener.bind(this),this.changeTimer=o.delayedCall(function(){this.updateCompletions(!0)}.bind(this)),this.tooltipTimer=o.delayedCall(this.updateDocTooltip.bind(this),50)};(function(){this.$init=function(){return this.popup=new i(document.body||document.documentElement),this.popup.on("click",function(e){this.insertMatch(),e.stop()}.bind(this)),this.popup.focus=this.editor.focus.bind(this.editor),this.popup.on("show",this.tooltipTimer.bind(null,null)),this.popup.on("select",this.tooltipTimer.bind(null,null)),this.popup.on("changeHoverMarker",this.tooltipTimer.bind(null,null)),this.popup},this.getPopup=function(){return this.popup||this.$init()},this.openPopup=function(e,t,n){this.popup||this.$init(),this.popup.autoSelect=this.autoSelect,this.popup.setData(this.completions.filtered,this.completions.filterText),e.keyBinding.addKeyboardHandler(this.keyboardHandler);var i=e.renderer;if(this.popup.setRow(this.autoSelect?0:-1),n)n&&!t&&this.detach();else{this.popup.setTheme(e.getTheme()),this.popup.setFontSize(e.getFontSize());var o=i.layerConfig.lineHeight,r=i.$cursorLayer.getPixelPosition(this.base,!0);r.left-=this.popup.getTextLeftOffset();var s=e.container.getBoundingClientRect();r.top+=s.top-i.layerConfig.offset,r.left+=s.left-e.renderer.scrollLeft,r.left+=i.gutterWidth,this.popup.show(r,o)}},this.detach=function(){this.editor.keyBinding.removeKeyboardHandler(this.keyboardHandler),this.editor.off("changeSelection",this.changeListener),this.editor.off("blur",this.blurListener),this.editor.off("mousedown",this.mousedownListener),this.editor.off("mousewheel",this.mousewheelListener),this.changeTimer.cancel(),this.hideDocTooltip(),this.gatherCompletionsId+=1,this.popup&&this.popup.isOpen&&this.popup.hide(),this.base&&this.base.detach(),this.activated=!1,this.completions=this.base=null},this.changeListener=function(){var e=this.editor.selection.lead;(e.row!=this.base.row||e.column<this.base.column)&&this.detach(),this.activated?this.changeTimer.schedule():this.detach()},this.blurListener=function(e){var t=document.activeElement,n=this.editor.textInput.getElement(),i=e.relatedTarget&&this.tooltipNode&&this.tooltipNode.contains(e.relatedTarget),o=this.popup&&this.popup.container;t!=n&&t.parentNode!=o&&!i&&t!=this.tooltipNode&&e.relatedTarget!=n&&this.detach()},this.mousedownListener=function(){this.detach()},this.mousewheelListener=function(){this.detach()},this.goTo=function(e){this.popup.goTo(e)},this.insertMatch=function(e){if(e||(e=this.popup.getData(this.popup.getRow())),!e)return!1;if(e.completer&&e.completer.insertMatch)e.completer.insertMatch(this.editor,e);else{if(this.completions.filterText)for(var t,n=this.editor.selection.getAllRanges(),i=0;t=n[i];i++)t.start.column-=this.completions.filterText.length,this.editor.session.remove(t);e.snippet?s.insertSnippet(this.editor,e.snippet):this.editor.execCommand("insertstring",e.value||e)}this.detach()},this.commands={Up:function(e){e.completer.goTo("up")},Down:function(e){e.completer.goTo("down")},"Ctrl-Up|Ctrl-Home":function(e){e.completer.goTo("start")},"Ctrl-Down|Ctrl-End":function(e){e.completer.goTo("end")},Esc:function(e){e.completer.detach()},Return:function(e){return e.completer.insertMatch()},"Shift-Return":function(e){e.completer.insertMatch(null,{deleteSuffix:!0})},Tab:function(e){var t=e.completer.insertMatch();if(t||e.tabstopManager)return t;e.completer.goTo("down")},PageUp:function(e){e.completer.popup.gotoPageUp()},PageDown:function(e){e.completer.popup.gotoPageDown()}},this.gatherCompletions=function(n,i){var t=n.getSession(),o=n.getCursorPosition(),r=l.getCompletionPrefix(n);this.base=t.doc.createAnchor(o.row,o.column-r.length),this.base.$insertRight=!0;var s=[],a=n.completers.length;return n.completers.forEach(function(e){e.getCompletions(n,t,o,r,function(e,t){!e&&t&&(s=s.concat(t)),i(null,{prefix:l.getCompletionPrefix(n),matches:s,finished:0==--a})})}),!0},this.showPopup=function(e,t){this.editor&&this.detach(),this.activated=!0,(this.editor=e).completer!=this&&(e.completer&&e.completer.detach(),e.completer=this),e.on("changeSelection",this.changeListener),e.on("blur",this.blurListener),e.on("mousedown",this.mousedownListener),e.on("mousewheel",this.mousewheelListener),this.updateCompletions(!1,t)},this.updateCompletions=function(s,e){if(s&&this.base&&this.completions){var t=this.editor.getCursorPosition(),n=this.editor.session.getTextRange({start:this.base,end:t});if(n==this.completions.filterText)return;return this.completions.setFilter(n),this.completions.filtered.length?1!=this.completions.filtered.length||this.completions.filtered[0].value!=n||this.completions.filtered[0].snippet?void this.openPopup(this.editor,n,s):this.detach():this.detach()}if(e&&e.matches){t=this.editor.getSelectionRange().start;return this.base=this.editor.session.doc.createAnchor(t.row,t.column),this.base.$insertRight=!0,this.completions=new h(e.matches),this.openPopup(this.editor,"",s)}var a=this.gatherCompletionsId;this.gatherCompletions(this.editor,function(e,t){var n=function(){if(t.finished)return this.detach()}.bind(this),i=t.prefix,o=t&&t.matches;if(!o||!o.length)return n();if(0===i.indexOf(t.prefix)&&a==this.gatherCompletionsId){this.completions=new h(o),this.exactMatch&&(this.completions.exactMatch=!0),this.completions.setFilter(i);var r=this.completions.filtered;return r.length&&(1!=r.length||r[0].value!=i||r[0].snippet)?this.autoInsert&&1==r.length&&t.finished?this.insertMatch(r[0]):void this.openPopup(this.editor,i,s):n()}}.bind(this))},this.cancelContextMenu=function(){this.editor.$mouseHandler.cancelContextMenu()},this.updateDocTooltip=function(){var e=this.popup,t=e.data,n=t&&(t[e.getHoveredRow()]||t[e.getRow()]),i=null;return n&&this.editor&&this.popup.isOpen?(this.editor.completers.some(function(e){return e.getDocTooltip&&(i=e.getDocTooltip(n)),i}),!i&&"string"!=typeof n&&(i=n),"string"==typeof i&&(i={docText:i}),i&&(i.docHTML||i.docText)?void this.showDocTooltip(i):this.hideDocTooltip()):this.hideDocTooltip()},this.showDocTooltip=function(e){this.tooltipNode||(this.tooltipNode=r.createElement("div"),this.tooltipNode.className="ace_tooltip ace_doc-tooltip",this.tooltipNode.style.margin=0,this.tooltipNode.style.pointerEvents="auto",this.tooltipNode.tabIndex=-1,this.tooltipNode.onblur=this.blurListener.bind(this),this.tooltipNode.onclick=this.onTooltipClick.bind(this));var t=this.tooltipNode;e.docHTML?t.innerHTML=e.docHTML:e.docText&&(t.textContent=e.docText),t.parentNode||document.body.appendChild(t);var n=this.popup,i=n.container.getBoundingClientRect();t.style.top=n.container.style.top,t.style.bottom=n.container.style.bottom,t.style.display="block",window.innerWidth-i.right<320?i.left<320?(n.isTopdown?t.style.top=i.bottom+"px":t.style.top=n.container.offsetTop-t.offsetHeight+"px",t.style.left=i.left+"px",t.style.right="",t.style.bottom=""):(t.style.right=window.innerWidth-i.left+"px",t.style.left=""):(t.style.left=i.right+1+"px",t.style.right="")},this.hideDocTooltip=function(){if(this.tooltipTimer.cancel(),this.tooltipNode){var e=this.tooltipNode;!this.editor.isFocused()&&document.activeElement==e&&this.editor.focus(),this.tooltipNode=null,e.parentNode&&e.parentNode.removeChild(e)}},this.onTooltipClick=function(e){for(var t=e.target;t&&t!=this.tooltipNode;){if("A"==t.nodeName&&t.href){t.rel="noreferrer",t.target="_blank";break}t=t.parentNode}},this.destroy=function(){if(this.detach(),this.popup){this.popup.destroy();var e=this.popup.container;e&&e.parentNode&&e.parentNode.removeChild(e)}this.editor&&this.editor.completer==this&&this.editor.completer,this.popup=null}}).call(c.prototype),c["for"]=function(e){return e.completer||(a.get("sharedPopups")?(c.$shared||(c.$sharedInstance=new c),e.completer=c.$sharedInstance):(e.completer=new c,e.once("destroy",function(e,t){t.completer.destroy()}))),e.completer},c.startCommand={name:"startAutocomplete",exec:function(e,t){var n=c["for"](e);n.autoInsert=!1,n.autoSelect=!0,n.showPopup(e,t),n.cancelContextMenu()},bindKey:"Ctrl-Space|Ctrl-Shift-Space|Alt-Space"};var h=function(e,t){this.all=e,this.filtered=e,this.filterText=t||"",this.exactMatch=!1};(function(){this.setFilter=function(e){if(e.length>this.filterText&&0===e.lastIndexOf(this.filterText,0))var t=this.filtered;else t=this.all;this.filterText=e,t=(t=this.filterCompletions(t,this.filterText)).sort(function(e,t){return t.exactMatch-e.exactMatch||t.$score-e.$score||(e.caption||e.value).localeCompare(t.caption||t.value)});var n=null;t=t.filter(function(e){var t=e.snippet||e.caption||e.value;return t!==n&&(n=t,!0)}),this.filtered=t},this.filterCompletions=function(e,t){var n=[],i=t.toUpperCase(),o=t.toLowerCase();e:for(var r,s=0;r=e[s];s++){var a=r.caption||r.value||r.snippet;if(a){var l,c,h=-1,u=0,d=0;if(this.exactMatch){if(t!==a.substr(0,t.length))continue e}else{var g=a.toLowerCase().indexOf(o);if(-1<g)d=g;else for(var p=0;p<t.length;p++){var f=a.indexOf(o[p],h+1),m=a.indexOf(i[p],h+1);if((l=0<=f&&(m<0||f<m)?f:m)<0)continue e;0<(c=l-h-1)&&(-1===h&&(d+=10),d+=c,u|=1<<p),h=l}}r.matchMask=u,r.exactMatch=d?0:1,r.$score=(r.score||0)-d,n.push(r)}}return n}}).call(h.prototype),t.Autocomplete=c,t.FilteredList=h}),ace.define("ace/autocomplete/text_completer",["require","exports","module","ace/range"],function(e,t){function n(e,t){return e.getTextRange(i.fromPoints({row:0,column:0},t)).split(l).length-1}function s(e,t){var o=n(e,t),r=e.getValue().split(l),s=Object.create(null),a=r[o];return r.forEach(function(e,t){if(e&&e!==a){var n=Math.abs(o-t),i=r.length-n;s[e]?s[e]=Math.max(i,s[e]):s[e]=i}}),s}var i=e("../range").Range,l=/[^a-zA-Z_0-9\$\-\u00C0-\u1FFF\u2C00-\uD7FF\w]+/;t.getCompletions=function(e,t,n,i,o){var r=s(t,n);o(null,Object.keys(r).map(function(e){return{caption:e,value:e,score:r[e],meta:"local"}}))}}),ace.define("ace/ext/language_tools",["require","exports","module","ace/snippets","ace/autocomplete","ace/config","ace/lib/lang","ace/autocomplete/util","ace/autocomplete/text_completer","ace/editor","ace/config"],function(e,t){"use strict";var c=e("../snippets").snippetManager,o=e("../autocomplete").Autocomplete,n=e("../config"),i=e("../lib/lang"),r=e("../autocomplete/util"),s=e("../autocomplete/text_completer"),a={getCompletions:function(e,t,n,i,o){if(t.$mode.completer)return t.$mode.completer.getCompletions(e,t,n,i,o);var r=e.session.getState(n.row);o(null,t.$mode.getCompletions(r,t,n,i))}},l={getCompletions:function(e,t,n,i,o){var r=[],s=t.getTokenAt(n.row,n.column);s&&s.type.match(/(tag-name|tag-open|tag-whitespace|attribute-name|attribute-value)\.xml$/)?r.push("html-tag"):r=c.getActiveScopes(e);var a=c.snippetMap,l=[];r.forEach(function(e){for(var t=a[e]||[],n=t.length;n--;){var i=t[n],o=i.name||i.tabTrigger;o&&l.push({caption:o,snippet:i.content,meta:i.tabTrigger&&!i.name?i.tabTrigger+"\u21e5 ":"snippet",type:"snippet"})}},this),o(null,l)},getDocTooltip:function(e){"snippet"==e.type&&!e.docHTML&&(e.docHTML=["<b>",i.escapeHTML(e.caption),"</b>","<hr></hr>",i.escapeHTML(e.snippet)].join(""))}},h=[l,s,a];t.setCompleters=function(e){h.length=0,e&&h.push.apply(h,e)},t.addCompleter=function(e){h.push(e)},t.textCompleter=s,t.keyWordCompleter=a,t.snippetCompleter=l;var u={name:"expandSnippet",exec:function(e){return c.expandWithTab(e)},bindKey:"Tab"},d=function(e,t){g(t.session.$mode)},g=function(e){var t=e.$id;c.files||(c.files={}),p(t),e.modes&&e.modes.forEach(g)},p=function(t){if(t&&!c.files[t]){var e=t.replace("mode","snippets");c.files[t]={},n.loadModule(e,function(e){e&&(!(c.files[t]=e).snippets&&e.snippetText&&(e.snippets=c.parseSnippetFile(e.snippetText)),c.register(e.snippets||[],e.scope),e.includeScopes&&(c.snippetMap[e.scope].includeScopes=e.includeScopes,e.includeScopes.forEach(function(e){p("ace/mode/"+e)})))})}},f=function(e){var t=e.editor,n=t.completer&&t.completer.activated;if("backspace"===e.command.name)n&&!r.getCompletionPrefix(t)&&t.completer.detach();else if("insertstring"===e.command.name){if(r.getCompletionPrefix(t)&&!n){var i=o["for"](t);i.autoInsert=!1,i.showPopup(t)}}},m=e("../editor").Editor;e("../config").defineOptions(m.prototype,"editor",{enableBasicAutocompletion:{set:function(e){e?(this.completers||(this.completers=Array.isArray(e)?e:h),this.commands.addCommand(o.startCommand)):this.commands.removeCommand(o.startCommand)},value:!1},enableLiveAutocompletion:{set:function(e){e?(this.completers||(this.completers=Array.isArray(e)?e:h),this.commands.on("afterExec",f)):this.commands.removeListener("afterExec",f)},value:!1},enableSnippets:{set:function(e){e?(this.commands.addCommand(u),this.on("changeMode",d),d(null,this)):(this.commands.removeCommand(u),this.off("changeMode",d))},value:!1}})}),ace.require(["ace/ext/language_tools"],function(e){"object"==typeof module&&"object"==typeof exports&&module&&(module.exports=e)}),ace.define("ace/ext/linking",["require","exports","module","ace/editor","ace/config"],function(e,o){function t(e){var t=e.editor;if(e.getAccelKey()){t=e.editor;var n=e.getDocumentPosition(),i=t.session.getTokenAt(n.row,n.column);o.previousLinkingHover&&o.previousLinkingHover!=i&&t._emit("linkHoverOut"),t._emit("linkHover",{position:n,token:i}),o.previousLinkingHover=i}else o.previousLinkingHover&&(t._emit("linkHoverOut"),o.previousLinkingHover=!1)}function n(e){var t=e.getAccelKey();if(0==e.getButton()&&t){var n=e.editor,i=e.getDocumentPosition(),o=n.session.getTokenAt(i.row,i.column);n._emit("linkClick",{position:i,token:o})}}var i=e("../editor").Editor;e("../config").defineOptions(i.prototype,"editor",{enableLinking:{set:function(e){e?(this.on("click",n),this.on("mousemove",t)):(this.off("click",n),this.off("mousemove",t))},value:!1}}),o.previousLinkingHover=!1}),ace.require(["ace/ext/linking"],function(e){"object"==typeof module&&"object"==typeof exports&&module&&(module.exports=e)}),ace.define("ace/ext/rtl",["require","exports","module","ace/editor","ace/config"],function(e){"use strict";function t(e,t){var n=t.getSelection().lead;t.session.$bidiHandler.isRtlLine(n.row)&&0===n.column&&(t.session.$bidiHandler.isMoveLeftOperation&&0<n.row?t.getSelection().moveCursorTo(n.row-1,t.session.getLine(n.row-1).length):t.getSelection().isEmpty()?n.column+=1:n.setPosition(n.row,n.column+1))}function n(e){e.editor.session.$bidiHandler.isMoveLeftOperation=/gotoleft|selectleft|backspace|removewordleft/.test(e.command.name)}function i(e,t){var n=t.session;if(n.$bidiHandler.currentRow=null,n.$bidiHandler.isRtlLine(e.start.row)&&"insert"===e.action&&1<e.lines.length)for(var i=e.start.row;i<e.end.row;i++)n.getLine(i+1).charAt(0)!==n.$bidiHandler.RLE&&(n.doc.$lines[i+1]=n.$bidiHandler.RLE+n.getLine(i+1))}function o(e,t){var n=t.session.$bidiHandler,i=t.$textLayer.$lines.cells,o=t.layerConfig.width-t.layerConfig.padding+"px";i.forEach(function(e){var t=e.element.style;n&&n.isRtlLine(e.row)?(t.direction="rtl",t.textAlign="right",t.width=o):(t.direction="",t.textAlign="",t.width="")})}function r(e){function t(e){var t=e.element.style;t.direction=t.textAlign=t.width=""}var n=e.$textLayer.$lines;n.cells.forEach(t),n.cellCache.forEach(t)}var s=[{name:"leftToRight",bindKey:{win:"Ctrl-Alt-Shift-L",mac:"Command-Alt-Shift-L"},exec:function(e){e.session.$bidiHandler.setRtlDirection(e,!1)},readOnly:!0},{name:"rightToLeft",bindKey:{win:"Ctrl-Alt-Shift-R",mac:"Command-Alt-Shift-R"},exec:function(e){e.session.$bidiHandler.setRtlDirection(e,!0)},readOnly:!0}],a=e("../editor").Editor;e("../config").defineOptions(a.prototype,"editor",{rtlText:{set:function(e){e?(this.on("change",i),this.on("changeSelection",t),this.renderer.on("afterRender",o),this.commands.on("exec",n),this.commands.addCommands(s)):(this.off("change",i),this.off("changeSelection",t),this.renderer.off("afterRender",o),this.commands.off("exec",n),this.commands.removeCommands(s),r(this.renderer)),this.renderer.updateFull()}},rtl:{set:function(e){(this.session.$bidiHandler.$isRtl=e)?(this.setOption("rtlText",!1),this.renderer.on("afterRender",o),this.session.$bidiHandler.seenBidi=!0):(this.renderer.off("afterRender",o),r(this.renderer)),this.renderer.updateFull()}}})}),ace.require(["ace/ext/rtl"],function(e){"object"==typeof module&&"object"==typeof exports&&module&&(module.exports=e)}),ace.define("ace/ext/searchbox",["require","exports","module","ace/lib/dom","ace/lib/lang","ace/lib/event","ace/keyboard/hash_handler","ace/lib/keys"],function(e,t){"use strict";var o=e("../lib/dom"),n=e("../lib/lang"),s=e("../lib/event"),i='.ace_search {background-color: #ddd;color: #666;border: 1px solid #cbcbcb;border-top: 0 none;overflow: hidden;margin: 0;padding: 4px 6px 0 4px;position: absolute;top: 0;z-index: 99;white-space: normal;}.ace_search.left {border-left: 0 none;border-radius: 0px 0px 5px 0px;left: 0;}.ace_search.right {border-radius: 0px 0px 0px 5px;border-right: 0 none;right: 0;}.ace_search_form, .ace_replace_form {margin: 0 20px 4px 0;overflow: hidden;line-height: 1.9;}.ace_replace_form {margin-right: 0;}.ace_search_form.ace_nomatch {outline: 1px solid red;}.ace_search_field {border-radius: 3px 0 0 3px;background-color: white;color: black;border: 1px solid #cbcbcb;border-right: 0 none;outline: 0;padding: 0;font-size: inherit;margin: 0;line-height: inherit;padding: 0 6px;min-width: 17em;vertical-align: top;min-height: 1.8em;box-sizing: content-box;}.ace_searchbtn {border: 1px solid #cbcbcb;line-height: inherit;display: inline-block;padding: 0 6px;background: #fff;border-right: 0 none;border-left: 1px solid #dcdcdc;cursor: pointer;margin: 0;position: relative;color: #666;}.ace_searchbtn:last-child {border-radius: 0 3px 3px 0;border-right: 1px solid #cbcbcb;}.ace_searchbtn:disabled {background: none;cursor: default;}.ace_searchbtn:hover {background-color: #eef1f6;}.ace_searchbtn.prev, .ace_searchbtn.next {padding: 0px 0.7em}.ace_searchbtn.prev:after, .ace_searchbtn.next:after {content: "";border: solid 2px #888;width: 0.5em;height: 0.5em;border-width: 2px 0 0 2px;display:inline-block;transform: rotate(-45deg);}.ace_searchbtn.next:after {border-width: 0 2px 2px 0 ;}.ace_searchbtn_close {background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAcCAYAAABRVo5BAAAAZ0lEQVR42u2SUQrAMAhDvazn8OjZBilCkYVVxiis8H4CT0VrAJb4WHT3C5xU2a2IQZXJjiQIRMdkEoJ5Q2yMqpfDIo+XY4k6h+YXOyKqTIj5REaxloNAd0xiKmAtsTHqW8sR2W5f7gCu5nWFUpVjZwAAAABJRU5ErkJggg==) no-repeat 50% 0;border-radius: 50%;border: 0 none;color: #656565;cursor: pointer;font: 16px/16px Arial;padding: 0;height: 14px;width: 14px;top: 9px;right: 7px;position: absolute;}.ace_searchbtn_close:hover {background-color: #656565;background-position: 50% 100%;color: white;}.ace_button {margin-left: 2px;cursor: pointer;-webkit-user-select: none;-moz-user-select: none;-o-user-select: none;-ms-user-select: none;user-select: none;overflow: hidden;opacity: 0.7;border: 1px solid rgba(100,100,100,0.23);padding: 1px;box-sizing: border-box!important;color: black;}.ace_button:hover {background-color: #eee;opacity:1;}.ace_button:active {background-color: #ddd;}.ace_button.checked {border-color: #3399ff;opacity:1;}.ace_search_options{margin-bottom: 3px;text-align: right;-webkit-user-select: none;-moz-user-select: none;-o-user-select: none;-ms-user-select: none;user-select: none;clear: both;}.ace_search_counter {float: left;font-family: arial;padding: 0 8px;}',r=e("../keyboard/hash_handler").HashHandler,a=e("../lib/keys"),l=999;o.importCssString(i,"ace_searchbox");var c=function(e){var t=o.createElement("div");o.buildDom(["div",{"class":"ace_search right"},["span",{action:"hide","class":"ace_searchbtn_close"}],["div",{"class":"ace_search_form"},["input",{"class":"ace_search_field",placeholder:"Search for",spellcheck:"false"}],["span",{action:"findPrev","class":"ace_searchbtn prev"},"\u200b"],["span",{action:"findNext","class":"ace_searchbtn next"},"\u200b"],["span",{action:"findAll","class":"ace_searchbtn",title:"Alt-Enter"},"All"]],["div",{"class":"ace_replace_form"},["input",{"class":"ace_search_field",
21
- placeholder:"Replace with",spellcheck:"false"}],["span",{action:"replaceAndFindNext","class":"ace_searchbtn"},"Replace"],["span",{action:"replaceAll","class":"ace_searchbtn"},"All"]],["div",{"class":"ace_search_options"},["span",{action:"toggleReplace","class":"ace_button",title:"Toggle Replace mode",style:"float:left;margin-top:-2px;padding:0 5px;"},"+"],["span",{"class":"ace_search_counter"}],["span",{action:"toggleRegexpMode","class":"ace_button",title:"RegExp Search"},".*"],["span",{action:"toggleCaseSensitive","class":"ace_button",title:"CaseSensitive Search"},"Aa"],["span",{action:"toggleWholeWords","class":"ace_button",title:"Whole Word Search"},"\\b"],["span",{action:"searchInSelection","class":"ace_button",title:"Search In Selection"},"S"]]],t),this.element=t.firstChild,this.setSession=this.setSession.bind(this),this.$init(),this.setEditor(e),o.importCssString(i,"ace_searchbox",e.container)};(function(){this.setEditor=function(e){e.searchBox=this,e.renderer.scroller.appendChild(this.element),this.editor=e},this.setSession=function(){this.searchRange=null,this.$syncOptions(!0)},this.$initElements=function(e){this.searchBox=e.querySelector(".ace_search_form"),this.replaceBox=e.querySelector(".ace_replace_form"),this.searchOption=e.querySelector("[action=searchInSelection]"),this.replaceOption=e.querySelector("[action=toggleReplace]"),this.regExpOption=e.querySelector("[action=toggleRegexpMode]"),this.caseSensitiveOption=e.querySelector("[action=toggleCaseSensitive]"),this.wholeWordOption=e.querySelector("[action=toggleWholeWords]"),this.searchInput=this.searchBox.querySelector(".ace_search_field"),this.replaceInput=this.replaceBox.querySelector(".ace_search_field"),this.searchCounter=e.querySelector(".ace_search_counter")},this.$init=function(){var e=this.element;this.$initElements(e);var r=this;s.addListener(e,"mousedown",function(e){setTimeout(function(){r.activeInput.focus()},0),s.stopPropagation(e)}),s.addListener(e,"click",function(e){var t=(e.target||e.srcElement).getAttribute("action");t&&r[t]?r[t]():r.$searchBarKb.commands[t]&&r.$searchBarKb.commands[t].exec(r),s.stopPropagation(e)}),s.addCommandKeyListener(e,function(e,t,n){var i=a.keyCodeToString(n),o=r.$searchBarKb.findKeyCommand(t,i);o&&o.exec&&(o.exec(r),s.stopEvent(e))}),this.$onChange=n.delayedCall(function(){r.find(!1,!1)}),s.addListener(this.searchInput,"input",function(){r.$onChange.schedule(20)}),s.addListener(this.searchInput,"focus",function(){r.activeInput=r.searchInput,r.searchInput.value&&r.highlight()}),s.addListener(this.replaceInput,"focus",function(){r.activeInput=r.replaceInput,r.searchInput.value&&r.highlight()})},this.$closeSearchBarKb=new r([{bindKey:"Esc",name:"closeSearchBar",exec:function(e){e.searchBox.hide()}}]),this.$searchBarKb=new r,this.$searchBarKb.bindKeys({"Ctrl-f|Command-f":function(e){var t=e.isReplace=!e.isReplace;e.replaceBox.style.display=t?"":"none",e.replaceOption.checked=!1,e.$syncOptions(),e.searchInput.focus()},"Ctrl-H|Command-Option-F":function(e){e.editor.getReadOnly()||(e.replaceOption.checked=!0,e.$syncOptions(),e.replaceInput.focus())},"Ctrl-G|Command-G":function(e){e.findNext()},"Ctrl-Shift-G|Command-Shift-G":function(e){e.findPrev()},esc:function(e){setTimeout(function(){e.hide()})},Return:function(e){e.activeInput==e.replaceInput&&e.replace(),e.findNext()},"Shift-Return":function(e){e.activeInput==e.replaceInput&&e.replace(),e.findPrev()},"Alt-Return":function(e){e.activeInput==e.replaceInput&&e.replaceAll(),e.findAll()},Tab:function(e){(e.activeInput==e.replaceInput?e.searchInput:e.replaceInput).focus()}}),this.$searchBarKb.addCommands([{name:"toggleRegexpMode",bindKey:{win:"Alt-R|Alt-/",mac:"Ctrl-Alt-R|Ctrl-Alt-/"},exec:function(e){e.regExpOption.checked=!e.regExpOption.checked,e.$syncOptions()}},{name:"toggleCaseSensitive",bindKey:{win:"Alt-C|Alt-I",mac:"Ctrl-Alt-R|Ctrl-Alt-I"},exec:function(e){e.caseSensitiveOption.checked=!e.caseSensitiveOption.checked,e.$syncOptions()}},{name:"toggleWholeWords",bindKey:{win:"Alt-B|Alt-W",mac:"Ctrl-Alt-B|Ctrl-Alt-W"},exec:function(e){e.wholeWordOption.checked=!e.wholeWordOption.checked,e.$syncOptions()}},{name:"toggleReplace",exec:function(e){e.replaceOption.checked=!e.replaceOption.checked,e.$syncOptions()}},{name:"searchInSelection",exec:function(e){e.searchOption.checked=!e.searchRange,e.setSearchRange(e.searchOption.checked&&e.editor.getSelectionRange()),e.$syncOptions()}}]),this.setSearchRange=function(e){(this.searchRange=e)?this.searchRangeMarker=this.editor.session.addMarker(e,"ace_active-line"):this.searchRangeMarker&&(this.editor.session.removeMarker(this.searchRangeMarker),this.searchRangeMarker=null)},this.$syncOptions=function(e){o.setCssClass(this.replaceOption,"checked",this.searchRange),o.setCssClass(this.searchOption,"checked",this.searchOption.checked),this.replaceOption.textContent=this.replaceOption.checked?"-":"+",o.setCssClass(this.regExpOption,"checked",this.regExpOption.checked),o.setCssClass(this.wholeWordOption,"checked",this.wholeWordOption.checked),o.setCssClass(this.caseSensitiveOption,"checked",this.caseSensitiveOption.checked);var t=this.editor.getReadOnly();this.replaceOption.style.display=t?"none":"",this.replaceBox.style.display=this.replaceOption.checked&&!t?"":"none",this.find(!1,!1,e)},this.highlight=function(e){this.editor.session.highlight(e||this.editor.$search.$options.re),this.editor.renderer.updateBackMarkers()},this.find=function(e,t,n){var i=!this.editor.find(this.searchInput.value,{skipCurrent:e,backwards:t,wrap:!0,regExp:this.regExpOption.checked,caseSensitive:this.caseSensitiveOption.checked,wholeWord:this.wholeWordOption.checked,preventScroll:n,range:this.searchRange})&&this.searchInput.value;o.setCssClass(this.searchBox,"ace_nomatch",i),this.editor._emit("findSearchBox",{match:!i}),this.highlight(),this.updateCounter()},this.updateCounter=function(){var e=this.editor,t=e.$search.$options.re,n=0,i=0;if(t){var o=this.searchRange?e.session.getTextRange(this.searchRange):e.getValue(),r=e.session.doc.positionToIndex(e.selection.anchor);this.searchRange&&(r-=e.session.doc.positionToIndex(this.searchRange.start));for(var s,a=t.lastIndex=0;(s=t.exec(o))&&(n++,(a=s.index)<=r&&i++,!(l<n))&&(s[0]||(t.lastIndex=a+=1,!(a>=o.length))););}this.searchCounter.textContent=i+" of "+(l<n?l+"+":n)},this.findNext=function(){this.find(!0,!1)},this.findPrev=function(){this.find(!0,!0)},this.findAll=function(){var e=!this.editor.findAll(this.searchInput.value,{regExp:this.regExpOption.checked,caseSensitive:this.caseSensitiveOption.checked,wholeWord:this.wholeWordOption.checked})&&this.searchInput.value;o.setCssClass(this.searchBox,"ace_nomatch",e),this.editor._emit("findSearchBox",{match:!e}),this.highlight(),this.hide()},this.replace=function(){this.editor.getReadOnly()||this.editor.replace(this.replaceInput.value)},this.replaceAndFindNext=function(){this.editor.getReadOnly()||(this.editor.replace(this.replaceInput.value),this.findNext())},this.replaceAll=function(){this.editor.getReadOnly()||this.editor.replaceAll(this.replaceInput.value)},this.hide=function(){this.active=!1,this.setSearchRange(null),this.editor.off("changeSession",this.setSession),this.element.style.display="none",this.editor.keyBinding.removeKeyboardHandler(this.$closeSearchBarKb),this.editor.focus()},this.show=function(e,t){this.active=!0,this.editor.on("changeSession",this.setSession),this.element.style.display="",this.replaceOption.checked=t,e&&(this.searchInput.value=e),this.searchInput.focus(),this.searchInput.select(),this.editor.keyBinding.addKeyboardHandler(this.$closeSearchBarKb),this.$syncOptions(!0)},this.isFocused=function(){var e=document.activeElement;return e==this.searchInput||e==this.replaceInput}}).call(c.prototype),t.SearchBox=c,t.Search=function(e,t){(e.searchBox||new c(e)).show(e.session.getTextRange(),t)}}),ace.require(["ace/ext/searchbox"],function(e){"object"==typeof module&&"object"==typeof exports&&module&&(module.exports=e)}),ace.define("ace/ext/menu_tools/overlay_page",["require","exports","module","ace/lib/dom"],function(e,t,n){"use strict";var i="#ace_settingsmenu, #kbshortcutmenu {background-color: #F7F7F7;color: black;box-shadow: -5px 4px 5px rgba(126, 126, 126, 0.55);padding: 1em 0.5em 2em 1em;overflow: auto;position: absolute;margin: 0;bottom: 0;right: 0;top: 0;z-index: 9991;cursor: default;}.ace_dark #ace_settingsmenu, .ace_dark #kbshortcutmenu {box-shadow: -20px 10px 25px rgba(126, 126, 126, 0.25);background-color: rgba(255, 255, 255, 0.6);color: black;}.ace_optionsMenuEntry:hover {background-color: rgba(100, 100, 100, 0.1);transition: all 0.3s}.ace_closeButton {background: rgba(245, 146, 146, 0.5);border: 1px solid #F48A8A;border-radius: 50%;padding: 7px;position: absolute;right: -8px;top: -8px;z-index: 100000;}.ace_closeButton{background: rgba(245, 146, 146, 0.9);}.ace_optionsMenuKey {color: darkslateblue;font-weight: bold;}.ace_optionsMenuCommand {color: darkcyan;font-weight: normal;}.ace_optionsMenuEntry input, .ace_optionsMenuEntry button {vertical-align: middle;}.ace_optionsMenuEntry button[ace_selected_button=true] {background: #e7e7e7;box-shadow: 1px 0px 2px 0px #adadad inset;border-color: #adadad;}.ace_optionsMenuEntry button {background: white;border: 1px solid lightgray;margin: 0px;}.ace_optionsMenuEntry button:hover{background: #f0f0f0;}";e("../../lib/dom").importCssString(i),n.exports.overlayPage=function(e,t,n){function i(e){27===e.keyCode&&o()}function o(){r&&(document.removeEventListener("keydown",i),r.parentNode.removeChild(r),e.focus(),r=null,n&&n())}var r=document.createElement("div");return r.style.cssText="margin: 0; padding: 0; position: fixed; top:0; bottom:0; left:0; right:0;z-index: 9990; background-color: rgba(0, 0, 0, 0.3);",r.addEventListener("click",function(){o()}),document.addEventListener("keydown",i),t.addEventListener("click",function(e){e.stopPropagation()}),r.appendChild(t),document.body.appendChild(r),e.blur(),{close:o}}}),ace.define("ace/ext/modelist",["require","exports","module"],function(e,t,n){"use strict";function i(e){for(var t=l.text,n=e.split(/[\/\\]/).pop(),i=0;i<o.length;i++)if(o[i].supportsFile(n)){t=o[i];break}return t}var o=[],r=function(e,t,n){var i;this.name=e,this.caption=t,this.mode="ace/mode/"+e,this.extensions=n,i=/\^/.test(n)?n.replace(/\|(\^)?/g,function(e,t){return"$|"+(t?"^":"^.*\\.")})+"$":"^.*\\.("+n+")$",this.extRe=new RegExp(i,"gi")};r.prototype.supportsFile=function(e){return e.match(this.extRe)};var s={ABAP:["abap"],ABC:["abc"],ActionScript:["as"],ADA:["ada|adb"],Apache_Conf:["^htaccess|^htgroups|^htpasswd|^conf|htaccess|htgroups|htpasswd"],AsciiDoc:["asciidoc|adoc"],ASL:["dsl|asl"],Assembly_x86:["asm|a"],AutoHotKey:["ahk"],Apex:["apex|cls|trigger|tgr"],AQL:["aql"],BatchFile:["bat|cmd"],C_Cpp:["cpp|c|cc|cxx|h|hh|hpp|ino"],C9Search:["c9search_results"],Crystal:["cr"],Cirru:["cirru|cr"],Clojure:["clj|cljs"],Cobol:["CBL|COB"],coffee:["coffee|cf|cson|^Cakefile"],ColdFusion:["cfm"],CSharp:["cs"],Csound_Document:["csd"],Csound_Orchestra:["orc"],Csound_Score:["sco"],CSS:["css"],Curly:["curly"],D:["d|di"],Dart:["dart"],Diff:["diff|patch"],Dockerfile:["^Dockerfile"],Dot:["dot"],Drools:["drl"],Edifact:["edi"],Eiffel:["e|ge"],EJS:["ejs"],Elixir:["ex|exs"],Elm:["elm"],Erlang:["erl|hrl"],Forth:["frt|fs|ldr|fth|4th"],Fortran:["f|f90"],FSharp:["fsi|fs|ml|mli|fsx|fsscript"],FSL:["fsl"],FTL:["ftl"],Gcode:["gcode"],Gherkin:["feature"],Gitignore:["^.gitignore"],Glsl:["glsl|frag|vert"],Gobstones:["gbs"],golang:["go"],GraphQLSchema:["gql"],Groovy:["groovy"],HAML:["haml"],Handlebars:["hbs|handlebars|tpl|mustache"],Haskell:["hs"],Haskell_Cabal:["cabal"],haXe:["hx"],Hjson:["hjson"],HTML:["html|htm|xhtml|vue|we|wpy"],HTML_Elixir:["eex|html.eex"],HTML_Ruby:["erb|rhtml|html.erb"],INI:["ini|conf|cfg|prefs"],Io:["io"],Jack:["jack"],Jade:["jade|pug"],Java:["java"],JavaScript:["js|jsm|jsx"],JSON:["json"],JSONiq:["jq"],JSP:["jsp"],JSSM:["jssm|jssm_state"],JSX:["jsx"],Julia:["jl"],Kotlin:["kt|kts"],LaTeX:["tex|latex|ltx|bib"],LESS:["less"],Liquid:["liquid"],Lisp:["lisp"],LiveScript:["ls"],LogiQL:["logic|lql"],LSL:["lsl"],Lua:["lua"],LuaPage:["lp"],Lucene:["lucene"],Makefile:["^Makefile|^GNUmakefile|^makefile|^OCamlMakefile|make"],Markdown:["md|markdown"],Mask:["mask"],MATLAB:["matlab"],Maze:["mz"],MEL:["mel"],MIXAL:["mixal"],MUSHCode:["mc|mush"],MySQL:["mysql"],Nginx:["nginx|conf"],Nix:["nix"],Nim:["nim"],NSIS:["nsi|nsh"],ObjectiveC:["m|mm"],OCaml:["ml|mli"],Pascal:["pas|p"],Perl:["pl|pm"],Perl6:["p6|pl6|pm6"],pgSQL:["pgsql"],PHP_Laravel_blade:["blade.php"],PHP:["php|inc|phtml|shtml|php3|php4|php5|phps|phpt|aw|ctp|module"],Puppet:["epp|pp"],Pig:["pig"],Powershell:["ps1"],Praat:["praat|praatscript|psc|proc"],Prolog:["plg|prolog"],Properties:["properties"],Protobuf:["proto"],Python:["py"],R:["r"],Razor:["cshtml|asp"],RDoc:["Rd"],Red:["red|reds"],RHTML:["Rhtml"],RST:["rst"],Ruby:["rb|ru|gemspec|rake|^Guardfile|^Rakefile|^Gemfile"],Rust:["rs"],SASS:["sass"],SCAD:["scad"],Scala:["scala|sbt"],Scheme:["scm|sm|rkt|oak|scheme"],SCSS:["scss"],SH:["sh|bash|^.bashrc"],SJS:["sjs"],Slim:["slim|skim"],Smarty:["smarty|tpl"],snippets:["snippets"],Soy_Template:["soy"],Space:["space"],SQL:["sql"],SQLServer:["sqlserver"],Stylus:["styl|stylus"],SVG:["svg"],Swift:["swift"],Tcl:["tcl"],Terraform:["tf","tfvars","terragrunt"],Tex:["tex"],Text:["txt"],Textile:["textile"],Toml:["toml"],TSX:["tsx"],Twig:["latte|twig|swig"],Typescript:["ts|typescript|str"],Vala:["vala"],VBScript:["vbs|vb"],Velocity:["vm"],Verilog:["v|vh|sv|svh"],VHDL:["vhd|vhdl"],Visualforce:["vfp|component|page"],Wollok:["wlk|wpgm|wtest"],XML:["xml|rdf|rss|wsdl|xslt|atom|mathml|mml|xul|xbl|xaml"],XQuery:["xq"],YAML:["yaml|yml"],Zeek:["zeek|bro"],Django:["html"]},a={ObjectiveC:"Objective-C",CSharp:"C#",golang:"Go",C_Cpp:"C and C++",Csound_Document:"Csound Document",Csound_Orchestra:"Csound",Csound_Score:"Csound Score",coffee:"CoffeeScript",HTML_Ruby:"HTML (Ruby)",HTML_Elixir:"HTML (Elixir)",FTL:"FreeMarker",PHP_Laravel_blade:"PHP (Blade Template)",Perl6:"Perl 6",AutoHotKey:"AutoHotkey / AutoIt"},l={};for(var c in s){var h=s[c],u=(a[c]||c).replace(/_/g," "),d=c.toLowerCase(),g=new r(d,u,h[0]);l[d]=g,o.push(g)}n.exports={getModeForPath:i,modes:o,modesByName:l}}),ace.define("ace/ext/themelist",["require","exports","module"],function(e,i){"use strict";var t=[["Chrome"],["Clouds"],["Crimson Editor"],["Dawn"],["Dreamweaver"],["Eclipse"],["GitHub"],["IPlastic"],["Solarized Light"],["TextMate"],["Tomorrow"],["XCode"],["Kuroir"],["KatzenMilch"],["SQL Server","sqlserver","light"],["Ambiance","ambiance","dark"],["Chaos","chaos","dark"],["Clouds Midnight","clouds_midnight","dark"],["Dracula","","dark"],["Cobalt","cobalt","dark"],["Gruvbox","gruvbox","dark"],["Green on Black","gob","dark"],["idle Fingers","idle_fingers","dark"],["krTheme","kr_theme","dark"],["Merbivore","merbivore","dark"],["Merbivore Soft","merbivore_soft","dark"],["Mono Industrial","mono_industrial","dark"],["Monokai","monokai","dark"],["Pastel on dark","pastel_on_dark","dark"],["Solarized Dark","solarized_dark","dark"],["Terminal","terminal","dark"],["Tomorrow Night","tomorrow_night","dark"],["Tomorrow Night Blue","tomorrow_night_blue","dark"],["Tomorrow Night Bright","tomorrow_night_bright","dark"],["Tomorrow Night 80s","tomorrow_night_eighties","dark"],["Twilight","twilight","dark"],["Vibrant Ink","vibrant_ink","dark"]];i.themesByName={},i.themes=t.map(function(e){var t=e[1]||e[0].replace(/ /g,"_").toLowerCase(),n={caption:e[0],theme:"ace/theme/"+t,isDark:"dark"==e[2],name:t};return i.themesByName[t]=n})}),ace.define("ace/ext/options",["require","exports","module","ace/ext/menu_tools/overlay_page","ace/lib/dom","ace/lib/oop","ace/config","ace/lib/event_emitter","ace/ext/modelist","ace/ext/themelist"],function(e,t){"use strict";e("./menu_tools/overlay_page").overlayPage;var n=e("../lib/dom"),i=e("../lib/oop"),o=e("../config"),r=e("../lib/event_emitter").EventEmitter,s=n.buildDom,a=e("./modelist"),l=e("./themelist"),c={Bright:[],Dark:[]};l.themes.forEach(function(e){c[e.isDark?"Dark":"Bright"].push({caption:e.caption,value:e.theme})});var h={Main:{Mode:{path:"mode",type:"select",items:a.modes.map(function(e){return{caption:e.caption,value:e.mode}})},Theme:{path:"theme",type:"select",items:c},Keybinding:{type:"buttonBar",path:"keyboardHandler",items:[{caption:"Ace",value:null},{caption:"Vim",value:"ace/keyboard/vim"},{caption:"Emacs",value:"ace/keyboard/emacs"},{caption:"Sublime",value:"ace/keyboard/sublime"}]},"Font Size":{path:"fontSize",type:"number",defaultValue:12,defaults:[{caption:"12px",value:12},{caption:"24px",value:24}]},"Soft Wrap":{type:"buttonBar",path:"wrap",items:[{caption:"Off",value:"off"},{caption:"View",value:"free"},{caption:"margin",value:"printMargin"},{caption:"40",value:"40"}]},"Cursor Style":{path:"cursorStyle",items:[{caption:"Ace",value:"ace"},{caption:"Slim",value:"slim"},{caption:"Smooth",value:"smooth"},{caption:"Smooth And Slim",value:"smooth slim"},{caption:"Wide",value:"wide"}]},Folding:{path:"foldStyle",items:[{caption:"Manual",value:"manual"},{caption:"Mark begin",value:"markbegin"},{caption:"Mark begin and end",value:"markbeginend"}]},"Soft Tabs":[{path:"useSoftTabs"},{path:"tabSize",type:"number",values:[2,3,4,8,16]}],Overscroll:{type:"buttonBar",path:"scrollPastEnd",items:[{caption:"None",value:0},{caption:"Half",value:.5},{caption:"Full",value:1}]}},More:{"Atomic soft tabs":{path:"navigateWithinSoftTabs"},"Enable Behaviours":{path:"behavioursEnabled"},"Full Line Selection":{type:"checkbox",values:"text|line",path:"selectionStyle"},"Highlight Active Line":{path:"highlightActiveLine"},"Show Invisibles":{path:"showInvisibles"},"Show Indent Guides":{path:"displayIndentGuides"},"Persistent Scrollbar":[{path:"hScrollBarAlwaysVisible"},{path:"vScrollBarAlwaysVisible"}],"Animate scrolling":{path:"animatedScroll"},"Show Gutter":{path:"showGutter"},"Show Line Numbers":{path:"showLineNumbers"},"Relative Line Numbers":{path:"relativeLineNumbers"},"Fixed Gutter Width":{path:"fixedWidthGutter"},"Show Print Margin":[{path:"showPrintMargin"},{type:"number",path:"printMarginColumn"}],"Indented Soft Wrap":{path:"indentedSoftWrap"},"Highlight selected word":{path:"highlightSelectedWord"},"Fade Fold Widgets":{path:"fadeFoldWidgets"},"Use textarea for IME":{path:"useTextareaForIME"},"Merge Undo Deltas":{path:"mergeUndoDeltas",items:[{caption:"Always",value:"always"},{caption:"Never",value:"false"},{caption:"Timed",value:"true"}]},"Elastic Tabstops":{path:"useElasticTabstops"},"Incremental Search":{path:"useIncrementalSearch"},"Read-only":{path:"readOnly"},"Copy without selection":{path:"copyWithEmptySelection"},"Live Autocompletion":{path:"enableLiveAutocompletion"}}},u=function(e,t){this.editor=e,this.container=t||document.createElement("div"),this.groups=[],this.options={}};(function(){i.implement(this,r),this.add=function(e){e.Main&&i.mixin(h.Main,e.Main),e.More&&i.mixin(h.More,e.More)},this.render=function(){this.container.innerHTML="",s(["table",{id:"controls"},this.renderOptionGroup(h.Main),["tr",null,["td",{colspan:2},["table",{id:"more-controls"},this.renderOptionGroup(h.More)]]],["tr",null,["td",{colspan:2},"version "+o.version]]],this.container)},this.renderOptionGroup=function(i){return Object.keys(i).map(function(e,t){var n=i[e];return n.position||(n.position=t/1e4),n.label||(n.label=e),n}).sort(function(e,t){return e.position-t.position}).map(function(e){return this.renderOption(e.label,e)},this)},this.renderOptionControl=function(t,i){var o=this;if(Array.isArray(i))return i.map(function(e){return o.renderOptionControl(t,e)});var e,r=o.getOption(i);if(i.values&&"checkbox"!=i.type&&("string"==typeof i.values&&(i.values=i.values.split("|")),i.items=i.values.map(function(e){return{value:e,name:e}})),"buttonBar"==i.type)e=["div",i.items.map(function(n){return["button",{value:n.value,ace_selected_button:r==n.value,onclick:function(){o.setOption(i,n.value);for(var e=this.parentNode.querySelectorAll("[ace_selected_button]"),t=0;t<e.length;t++)e[t].removeAttribute("ace_selected_button");this.setAttribute("ace_selected_button",!0)}},n.desc||n.caption||n.name]})];else if("number"==i.type)e=["input",{type:"number",value:r||i.defaultValue,style:"width:3em",oninput:function(){o.setOption(i,parseInt(this.value))}}],i.defaults&&(e=[e,i.defaults.map(function(t){return["button",{onclick:function(){var e=this.parentNode.firstChild;e.value=t.value,e.oninput()}},t.caption]})]);else if(i.items){var n=function(e){return e.map(function(e){return["option",{value:e.value||e.name},e.desc||e.caption||e.name]})},s=Array.isArray(i.items)?n(i.items):Object.keys(i.items).map(function(e){return["optgroup",{label:e},n(i.items[e])]});e=["select",{id:t,value:r,onchange:function(){o.setOption(i,this.value)}},s]}else"string"==typeof i.values&&(i.values=i.values.split("|")),i.values&&(r=r==i.values[1]),e=["input",{type:"checkbox",id:t,checked:r||null,onchange:function(){var e=this.checked;i.values&&(e=i.values[e?1:0]),o.setOption(i,e)}}],"checkedNumber"==i.type&&(e=[e,[]]);return e},this.renderOption=function(e,t){if(!t.path||t.onchange||this.editor.$options[t.path]){var n="-"+(this.options[t.path]=t).path;return["tr",{"class":"ace_optionsMenuEntry"},["td",["label",{"for":n},e]],["td",this.renderOptionControl(n,t)]]}},this.setOption=function(e,t){"string"==typeof e&&(e=this.options[e]),"false"==t&&(t=!1),"true"==t&&(t=!0),"null"==t&&(t=null),"undefined"==t&&(t=undefined),"string"==typeof t&&parseFloat(t).toString()==t&&(t=parseFloat(t)),e.onchange?e.onchange(t):e.path&&this.editor.setOption(e.path,t),this._signal("setOption",{name:e.path,value:t})},this.getOption=function(e){return e.getValue?e.getValue():this.editor.getOption(e.path)}}).call(u.prototype),t.OptionPanel=u}),ace.define("ace/ext/settings_menu",["require","exports","module","ace/ext/options","ace/ext/menu_tools/overlay_page","ace/editor"],function(e,t,n){"use strict";function i(e){if(!document.getElementById("ace_settingsmenu")){var t=new o(e);t.render(),t.container.id="ace_settingsmenu",r(e,t.container),t.container.querySelector("select,input,button,checkbox").focus()}}var o=e("./options").OptionPanel,r=e("./menu_tools/overlay_page").overlayPage;n.exports.init=function(){e("../editor").Editor.prototype.showSettingsMenu=function(){i(this)}}}),ace.require(["ace/ext/settings_menu"],function(e){"object"==typeof module&&"object"==typeof exports&&module&&(module.exports=e)}),ace.define("ace/ext/spellcheck",["require","exports","module","ace/lib/event","ace/editor","ace/config"],function(e,t){"use strict";var h=e("../lib/event");t.contextMenuHandler=function(e){var n=e.target,i=n.textInput.getElement();if(n.selection.isEmpty()){var t=n.getCursorPosition(),o=n.session.getWordRange(t.row,t.column),r=n.session.getTextRange(o);if(n.session.tokenRe.lastIndex=0,n.session.tokenRe.test(r)){var s="\x01\x01",a=r+" "+s;i.value=a,i.setSelectionRange(r.length,r.length+1),i.setSelectionRange(0,0),i.setSelectionRange(0,r.length);var l=!1;h.addListener(i,"keydown",function c(){h.removeListener(i,"keydown",c),l=!0}),n.textInput.setInputHandler(function(e){if(console.log(e,a,i.selectionStart,i.selectionEnd),e==a)return"";if(0===e.lastIndexOf(a,0))return e.slice(a.length);if(e.substr(i.selectionEnd)==a)return e.slice(0,-a.length);if(e.slice(-2)==s){var t=e.slice(0,-2);if(" "==t.slice(-1))return l?t.substring(0,i.selectionEnd):(t=t.slice(0,-1),n.session.replace(o,t),"")}return e})}}};var n=e("../editor").Editor;e("../config").defineOptions(n.prototype,"editor",{spellcheck:{set:function(e){this.textInput.getElement().spellcheck=!!e,e?this.on("nativecontextmenu",t.contextMenuHandler):this.removeListener("nativecontextmenu",t.contextMenuHandler)},value:!0}})}),ace.require(["ace/ext/spellcheck"],function(e){"object"==typeof module&&"object"==typeof exports&&module&&(module.exports=e)}),ace.define("ace/split",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/editor","ace/virtual_renderer","ace/edit_session"],function(e,t){"use strict";var n=e("./lib/oop"),i=(e("./lib/lang"),e("./lib/event_emitter").EventEmitter),o=e("./editor").Editor,r=e("./virtual_renderer").VirtualRenderer,s=e("./edit_session").EditSession,a=function(e,t,n){this.BELOW=1,this.BESIDE=0,this.$container=e,this.$theme=t,this.$splits=0,this.$editorCSS="",this.$editors=[],this.$orientation=this.BESIDE,this.setSplits(n||1),this.$cEditor=this.$editors[0],this.on("focus",function(e){this.$cEditor=e}.bind(this))};(function(){n.implement(this,i),this.$createEditor=function(){var e=document.createElement("div");e.className=this.$editorCSS,e.style.cssText="position: absolute; top:0px; bottom:0px",this.$container.appendChild(e);var t=new o(new r(e,this.$theme));return t.on("focus",function(){this._emit("focus",t)}.bind(this)),this.$editors.push(t),t.setFontSize(this.$fontSize),t},this.setSplits=function(e){var t;if(e<1)throw"The number of splits have to be > 0!";if(e!=this.$splits){if(e>this.$splits){for(;this.$splits<this.$editors.length&&this.$splits<e;)t=this.$editors[this.$splits],this.$container.appendChild(t.container),t.setFontSize(this.$fontSize),this.$splits++;for(;this.$splits<e;)this.$createEditor(),this.$splits++}else for(;this.$splits>e;)t=this.$editors[this.$splits-1],this.$container.removeChild(t.container),this.$splits--;this.resize()}},this.getSplits=function(){return this.$splits},this.getEditor=function(e){return this.$editors[e]},this.getCurrentEditor=function(){return this.$cEditor},this.focus=function(){this.$cEditor.focus()},this.blur=function(){this.$cEditor.blur()},this.setTheme=function(t){this.$editors.forEach(function(e){e.setTheme(t)})},this.setKeyboardHandler=function(t){this.$editors.forEach(function(e){e.setKeyboardHandler(t)})},this.forEach=function(e,t){this.$editors.forEach(e,t)},this.$fontSize="",this.setFontSize=function(t){this.$fontSize=t,this.forEach(function(e){e.setFontSize(t)})},this.$cloneSession=function(e){var t=new s(e.getDocument(),e.getMode()),n=e.getUndoManager();return t.setUndoManager(n),t.setTabSize(e.getTabSize()),t.setUseSoftTabs(e.getUseSoftTabs()),t.setOverwrite(e.getOverwrite()),t.setBreakpoints(e.getBreakpoints()),t.setUseWrapMode(e.getUseWrapMode()),t.setUseWorker(e.getUseWorker()),t.setWrapLimitRange(e.$wrapLimitRange.min,e.$wrapLimitRange.max),t.$foldData=e.$cloneFoldData(),t},this.setSession=function(t,e){var n;return n=null==e?this.$cEditor:this.$editors[e],this.$editors.some(function(e){return e.session===t})&&(t=this.$cloneSession(t)),n.setSession(t),t},this.getOrientation=function(){return this.$orientation},this.setOrientation=function(e){this.$orientation!=e&&(this.$orientation=e,this.resize())},this.resize=function(){var e,t=this.$container.clientWidth,n=this.$container.clientHeight;if(this.$orientation==this.BESIDE)for(var i=t/this.$splits,o=0;o<this.$splits;o++)(e=this.$editors[o]).container.style.width=i+"px",e.container.style.top="0px",e.container.style.left=o*i+"px",e.container.style.height=n+"px",e.resize();else{var r=n/this.$splits;for(o=0;o<this.$splits;o++)(e=this.$editors[o]).container.style.width=t+"px",e.container.style.top=o*r+"px",e.container.style.left="0px",e.container.style.height=r+"px",e.resize()}}}).call(a.prototype),t.Split=a}),ace.define("ace/ext/split",["require","exports","module","ace/split"],function(e,t,n){"use strict";n.exports=e("../split")}),ace.require(["ace/ext/split"],function(e){"object"==typeof module&&"object"==typeof exports&&module&&(module.exports=e)}),ace.define("ace/ext/static_highlight",["require","exports","module","ace/edit_session","ace/layer/text","ace/config","ace/lib/dom","ace/lib/lang"],function(e,t,n){"use strict";function i(e){this.type=e,this.style={},this.textContent=""}var g=e("../edit_session").EditSession,o=e("../layer/text").Text,p=".ace_static_highlight {font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'source-code-pro', 'Droid Sans Mono', monospace;font-size: 12px;white-space: pre-wrap}.ace_static_highlight .ace_gutter {width: 2em;text-align: right;padding: 0 3px 0 0;margin-right: 3px;contain: none;}.ace_static_highlight.ace_show_gutter .ace_line {padding-left: 2.6em;}.ace_static_highlight .ace_line { position: relative; }.ace_static_highlight .ace_gutter-cell {-moz-user-select: -moz-none;-khtml-user-select: none;-webkit-user-select: none;user-select: none;top: 0;bottom: 0;left: 0;position: absolute;}.ace_static_highlight .ace_gutter-cell:before {content: counter(ace_line, decimal);counter-increment: ace_line;}.ace_static_highlight {counter-reset: ace_line;}",u=e("../config"),d=e("../lib/dom"),r=e("../lib/lang").escapeHTML;i.prototype.cloneNode=function(){return this},i.prototype.appendChild=function(e){this.textContent+=e.toString()},i.prototype.toString=function(){var e=[];if("fragment"!=this.type){e.push("<",this.type),this.className&&e.push(" class='",this.className,"'");var t=[];for(var n in this.style)t.push(n,":",this.style[n]);t.length&&e.push(" style='",t.join(""),"'"),e.push(">")}return this.textContent&&e.push(this.textContent),"fragment"!=this.type&&e.push("</",this.type,">"),e.join("")};var f={createTextNode:function(e){return r(e)},createElement:function(e){return new i(e)},createFragment:function(){return new i("fragment")}},m=function(){this.config={},this.dom=f};m.prototype=o.prototype;var v=function(s,e,a){var t=s.className.match(/lang-(\w+)/),n=e.mode||t&&"ace/mode/"+t[1];if(!n)return!1;var i=e.theme||"ace/theme/textmate",o="",l=[];if(s.firstElementChild)for(var r=0,c=0;c<s.childNodes.length;c++){var h=s.childNodes[c];3==h.nodeType?(r+=h.data.length,o+=h.data):l.push(r,h)}else o=s.textContent,e.trim&&(o=o.trim());v.render(o,n,i,e.firstLineNumber,!e.showGutter,function(e){d.importCssString(e.css,"ace_highlight"),s.innerHTML=e.html;for(var t=s.firstChild.firstChild,n=0;n<l.length;n+=2){var i=e.session.doc.indexToPosition(l[n]),o=l[n+1],r=t.children[i.row];r&&r.appendChild(o)}a&&a()})};v.render=function(t,n,i,o,r,s){function a(){var e=v.renderSync(t,n,i,o,r);return s?s(e):e}var l,c=1,h=g.prototype.$modes;return"string"==typeof i&&(c++,u.loadModule(["theme",i],function(e){i=e,--c||a()})),n&&"object"==typeof n&&!n.getTokenizer&&(n=(l=n).path),"string"==typeof n&&(c++,u.loadModule(["mode",n],function(e){h[n]&&!l||(h[n]=new e.Mode(l)),n=h[n],--c||a()})),--c||a()},v.renderSync=function(e,t,n,i,o){i=parseInt(i||1,10);var r=new g("");r.setUseWorker(!1),r.setMode(t);var s=new m;s.setSession(r),Object.keys(s.$tabStrings).forEach(function(e){if("string"==typeof s.$tabStrings[e]){var t=f.createFragment();t.textContent=s.$tabStrings[e],s.$tabStrings[e]=t}}),r.setValue(e);var a=r.getLength(),l=f.createElement("div");l.className=n.cssClass;var c=f.createElement("div");c.className="ace_static_highlight"+(o?"":" ace_show_gutter"),c.style["counter-reset"]="ace_line "+(i-1);for(var h=0;h<a;h++){var u=f.createElement("div");if(u.className="ace_line",!o){var d=f.createElement("span");d.className="ace_gutter ace_gutter-cell",d.textContent="",u.appendChild(d)}s.$renderLine(u,h,!1),u.textContent+="\n",c.appendChild(u)}return l.appendChild(c),{css:p+n.cssText,html:l.toString(),session:r}},n.exports=v,n.exports.highlight=v}),ace.require(["ace/ext/static_highlight"],function(e){"object"==typeof module&&"object"==typeof exports&&module&&(module.exports=e)}),ace.define("ace/ext/statusbar",["require","exports","module","ace/lib/dom","ace/lib/lang"],function(e,t){"use strict";var i=e("../lib/dom"),o=e("../lib/lang"),n=function(e,t){this.element=i.createElement("div"),this.element.className="ace_status-indicator",this.element.style.cssText="display: inline-block;",t.appendChild(this.element);var n=o.delayedCall(function(){this.updateStatus(e)}.bind(this)).schedule.bind(null,100);e.on("changeStatus",n),e.on("changeSelection",n),e.on("keyboardActivity",n)};(function(){this.updateStatus=function(e){function t(e,t){e&&n.push(e,t||"|")}var n=[];t(e.keyBinding.getStatusText(e)),e.commands.recording&&t("REC");var i=e.selection,o=i.lead;if(!i.isEmpty()){var r=e.getSelectionRange();t("("+(r.end.row-r.start.row)+":"+(r.end.column-r.start.column)+")"," ")}t(o.row+":"+o.column," "),i.rangeCount&&t("["+i.rangeCount+"]"," "),n.pop(),this.element.textContent=n.join("")}}).call(n.prototype),t.StatusBar=n}),ace.require(["ace/ext/statusbar"],function(e){"object"==typeof module&&"object"==typeof exports&&module&&(module.exports=e)}),ace.define("ace/theme/textmate",["require","exports","module","ace/lib/dom"],function(e,t){"use strict";t.isDark=!1,t.cssClass="ace-tm",
22
- t.cssText='.ace-tm .ace_gutter {background: #f0f0f0;color: #333;}.ace-tm .ace_print-margin {width: 1px;background: #e8e8e8;}.ace-tm .ace_fold {background-color: #6B72E6;}.ace-tm {background-color: #FFFFFF;color: black;}.ace-tm .ace_cursor {color: black;}.ace-tm .ace_invisible {color: rgb(191, 191, 191);}.ace-tm .ace_storage,.ace-tm .ace_keyword {color: blue;}.ace-tm .ace_constant {color: rgb(197, 6, 11);}.ace-tm .ace_constant.ace_buildin {color: rgb(88, 72, 246);}.ace-tm .ace_constant.ace_language {color: rgb(88, 92, 246);}.ace-tm .ace_constant.ace_library {color: rgb(6, 150, 14);}.ace-tm .ace_invalid {background-color: rgba(255, 0, 0, 0.1);color: red;}.ace-tm .ace_support.ace_function {color: rgb(60, 76, 114);}.ace-tm .ace_support.ace_constant {color: rgb(6, 150, 14);}.ace-tm .ace_support.ace_type,.ace-tm .ace_support.ace_class {color: rgb(109, 121, 222);}.ace-tm .ace_keyword.ace_operator {color: rgb(104, 118, 135);}.ace-tm .ace_string {color: rgb(3, 106, 7);}.ace-tm .ace_comment {color: rgb(76, 136, 107);}.ace-tm .ace_comment.ace_doc {color: rgb(0, 102, 255);}.ace-tm .ace_comment.ace_doc.ace_tag {color: rgb(128, 159, 191);}.ace-tm .ace_constant.ace_numeric {color: rgb(0, 0, 205);}.ace-tm .ace_variable {color: rgb(49, 132, 149);}.ace-tm .ace_xml-pe {color: rgb(104, 104, 91);}.ace-tm .ace_entity.ace_name.ace_function {color: #0000A2;}.ace-tm .ace_heading {color: rgb(12, 7, 255);}.ace-tm .ace_list {color:rgb(185, 6, 144);}.ace-tm .ace_meta.ace_tag {color:rgb(0, 22, 142);}.ace-tm .ace_string.ace_regex {color: rgb(255, 0, 0)}.ace-tm .ace_marker-layer .ace_selection {background: rgb(181, 213, 255);}.ace-tm.ace_multiselect .ace_selection.ace_start {box-shadow: 0 0 3px 0px white;}.ace-tm .ace_marker-layer .ace_step {background: rgb(252, 255, 0);}.ace-tm .ace_marker-layer .ace_stack {background: rgb(164, 229, 101);}.ace-tm .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid rgb(192, 192, 192);}.ace-tm .ace_marker-layer .ace_active-line {background: rgba(0, 0, 0, 0.07);}.ace-tm .ace_gutter-active-line {background-color : #dcdcdc;}.ace-tm .ace_marker-layer .ace_selected-word {background: rgb(250, 250, 255);border: 1px solid rgb(200, 200, 250);}.ace-tm .ace_indent-guide {background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==") right repeat-y;}',t.$id="ace/theme/textmate",e("../lib/dom").importCssString(t.cssText,t.cssClass)}),ace.define("ace/ext/textarea",["require","exports","module","ace/lib/event","ace/lib/useragent","ace/lib/net","ace/ace","ace/theme/textmate"],function(e,f,t){"use strict";function u(e,t){for(var n in t)e.style[n]=t[n]}function d(i,t){if("textarea"!=i.type)throw new Error("Textarea required!");var e=i.parentNode,o=document.createElement("div"),n=function(){var t="position:relative;";["margin-top","margin-left","margin-right","margin-bottom"].forEach(function(e){t+=e+":"+s(i,o,e)+";"});var e=s(i,o,"width")||i.clientWidth+"px",n=s(i,o,"height")||i.clientHeight+"px";t+="height:"+n+";width:"+e+";",t+="display:inline-block;",o.setAttribute("style",t)};for(m.addListener(window,"resize",n),n(),e.insertBefore(o,i.nextSibling);e!==document;){if("FORM"===e.tagName.toUpperCase()){var r=e.onsubmit;e.onsubmit=function(e){i.value=t(),r&&r.call(this,e)};break}e=e.parentNode}return o}function g(n,e,i,t,o){function r(e){return"true"===e||1==e}n.getSession(),n.renderer;return n.setDisplaySettings=function(e){null==e&&(e="none"==i.style.display),e?(i.style.display="block",i.hideButton.focus(),n.on("focus",function t(){n.removeListener("focus",t),i.style.display="none"})):n.focus()},n.$setOption=n.setOption,n.$getOption=n.getOption,n.setOption=function(e,t){switch(e){case"mode":n.$setOption("mode","ace/mode/"+t);break;case"theme":n.$setOption("theme","ace/theme/"+t);break;case"keybindings":switch(t){case"vim":n.setKeyboardHandler("ace/keyboard/vim");break;case"emacs":n.setKeyboardHandler("ace/keyboard/emacs");break;default:n.setKeyboardHandler(null)}break;case"wrap":case"fontSize":n.$setOption(e,t);break;default:n.$setOption(e,r(t))}},n.getOption=function(e){switch(e){case"mode":return n.$getOption("mode").substr("ace/mode/".length);case"theme":return n.$getOption("theme").substr("ace/theme/".length);case"keybindings":var t=n.getKeyboardHandler();switch(t&&t.$id){case"ace/keyboard/vim":return"vim";case"ace/keyboard/emacs":return"emacs";default:return"ace"}break;default:return n.$getOption(e)}},n.setOptions(o),n}function p(e,t,n){function i(e,t,n,i){if(n){for(var o in e.push("<select title='"+t+"'>"),n)e.push("<option value='"+o+"' "),i==o&&e.push(" selected "),e.push(">",n[o],"</option>");e.push("</select>")}else e.push("<input type='checkbox' title='",t,"' ",i+""=="true"?"checked='true'":"","'></input>")}var o=null,r={mode:"Mode:",wrap:"Soft Wrap:",theme:"Theme:",fontSize:"Font Size:",showGutter:"Display Gutter:",keybindings:"Keyboard",showPrintMargin:"Show Print Margin:",useSoftTabs:"Use Soft Tabs:",showInvisibles:"Show Invisibles"},s={mode:{text:"Plain",javascript:"JavaScript",xml:"XML",html:"HTML",css:"CSS",scss:"SCSS",python:"Python",php:"PHP",java:"Java",ruby:"Ruby",c_cpp:"C/C++",coffee:"CoffeeScript",json:"json",perl:"Perl",clojure:"Clojure",ocaml:"OCaml",csharp:"C#",haxe:"haXe",svg:"SVG",textile:"Textile",groovy:"Groovy",liquid:"Liquid",Scala:"Scala"},theme:{clouds:"Clouds",clouds_midnight:"Clouds Midnight",cobalt:"Cobalt",crimson_editor:"Crimson Editor",dawn:"Dawn",gob:"Green on Black",eclipse:"Eclipse",idle_fingers:"Idle Fingers",kr_theme:"Kr Theme",merbivore:"Merbivore",merbivore_soft:"Merbivore Soft",mono_industrial:"Mono Industrial",monokai:"Monokai",pastel_on_dark:"Pastel On Dark",solarized_dark:"Solarized Dark",solarized_light:"Solarized Light",textmate:"Textmate",twilight:"Twilight",vibrant_ink:"Vibrant Ink"},showGutter:o,fontSize:{"10px":"10px","11px":"11px","12px":"12px","14px":"14px","16px":"16px"},wrap:{off:"Off",40:"40",80:"80",free:"Free"},keybindings:{ace:"ace",vim:"vim",emacs:"emacs"},showPrintMargin:o,useSoftTabs:o,showInvisibles:o},a=[];for(var l in a.push("<table><tr><th>Setting</th><th>Value</th></tr>"),f.defaultOptions)a.push("<tr><td>",r[l],"</td>"),a.push("<td>"),i(a,l,s[l],n.getOption(l)),a.push("</td></tr>");a.push("</table>"),e.innerHTML=a.join("");for(var c=function(e){var t=e.currentTarget;n.setOption(t.title,t.value)},h=function(e){var t=e.currentTarget;n.setOption(t.title,t.checked)},u=e.getElementsByTagName("select"),d=0;d<u.length;d++)u[d].onchange=c;var g=e.getElementsByTagName("input");for(d=0;d<g.length;d++)g[d].onclick=h;var p=document.createElement("input");p.type="button",p.value="Hide",m.addListener(p,"click",function(){n.setDisplaySettings(!1)}),e.appendChild(p),e.hideButton=p}var m=e("../lib/event"),v=e("../lib/useragent"),b=(e("../lib/net"),e("../ace"));e("../theme/textmate"),t.exports=f=b;var s=function(e,t,n){var i=e.style[n];return i||(i=window.getComputedStyle?window.getComputedStyle(e,"").getPropertyValue(n):e.currentStyle[n]),i&&"auto"!=i&&"intrinsic"!=i||(i=t.style[n]),i};f.transformTextarea=function(e,t){var n,i=e.autofocus||document.activeElement==e,o=d(e,function(){return n.getValue()});e.style.display="none",o.style.background="white";var r=document.createElement("div");u(r,{top:"0px",left:"0px",right:"0px",bottom:"0px",border:"1px solid gray",position:"absolute"}),o.appendChild(r);var s=document.createElement("div");u(s,{position:"absolute",right:"0px",bottom:"0px",cursor:"nw-resize",border:"solid 9px",borderColor:"lightblue gray gray #ceade6",zIndex:101});var a=document.createElement("div"),l={top:"0px",left:"20%",right:"0px",bottom:"0px",position:"absolute",padding:"5px",zIndex:100,color:"white",display:"none",overflow:"auto",fontSize:"14px",boxShadow:"-5px 2px 3px gray"};v.isOldIE?l.backgroundColor="#333":l.backgroundColor="rgba(0, 0, 0, 0.6)",u(a,l),o.appendChild(a),t=t||f.defaultOptions;var c=b.edit(r);(n=c.getSession()).setValue(e.value||e.innerHTML),i&&c.focus(),o.appendChild(s),g(c,r,a,b,t),p(a,s,c);var h="";return m.addListener(s,"mousemove",function(e){var t=this.getBoundingClientRect();e.clientX-t.left+(e.clientY-t.top)<(t.width+t.height)/2?(this.style.cursor="pointer",h="toggle"):(h="resize",this.style.cursor="nw-resize")}),m.addListener(s,"mousedown",function(e){if(e.preventDefault(),"toggle"!=h){o.style.zIndex=1e5;var t=o.getBoundingClientRect(),n=t.width+t.left-e.clientX,i=t.height+t.top-e.clientY;m.capture(s,function(e){o.style.width=e.clientX-t.left+n+"px",o.style.height=e.clientY-t.top+i+"px",c.resize()},function(){})}else c.setDisplaySettings()}),c},f.defaultOptions={mode:"javascript",theme:"textmate",wrap:"off",fontSize:"12px",showGutter:"false",keybindings:"ace",showPrintMargin:"false",useSoftTabs:"true",showInvisibles:"false"}}),ace.require(["ace/ext/textarea"],function(e){"object"==typeof module&&"object"==typeof exports&&module&&(module.exports=e)}),ace.define("ace/ext/themelist",["require","exports","module"],function(e,i){"use strict";var t=[["Chrome"],["Clouds"],["Crimson Editor"],["Dawn"],["Dreamweaver"],["Eclipse"],["GitHub"],["IPlastic"],["Solarized Light"],["TextMate"],["Tomorrow"],["XCode"],["Kuroir"],["KatzenMilch"],["SQL Server","sqlserver","light"],["Ambiance","ambiance","dark"],["Chaos","chaos","dark"],["Clouds Midnight","clouds_midnight","dark"],["Dracula","","dark"],["Cobalt","cobalt","dark"],["Gruvbox","gruvbox","dark"],["Green on Black","gob","dark"],["idle Fingers","idle_fingers","dark"],["krTheme","kr_theme","dark"],["Merbivore","merbivore","dark"],["Merbivore Soft","merbivore_soft","dark"],["Mono Industrial","mono_industrial","dark"],["Monokai","monokai","dark"],["Pastel on dark","pastel_on_dark","dark"],["Solarized Dark","solarized_dark","dark"],["Terminal","terminal","dark"],["Tomorrow Night","tomorrow_night","dark"],["Tomorrow Night Blue","tomorrow_night_blue","dark"],["Tomorrow Night Bright","tomorrow_night_bright","dark"],["Tomorrow Night 80s","tomorrow_night_eighties","dark"],["Twilight","twilight","dark"],["Vibrant Ink","vibrant_ink","dark"]];i.themesByName={},i.themes=t.map(function(e){var t=e[1]||e[0].replace(/ /g,"_").toLowerCase(),n={caption:e[0],theme:"ace/theme/"+t,isDark:"dark"==e[2],name:t};return i.themesByName[t]=n})}),ace.require(["ace/ext/themelist"],function(e){"object"==typeof module&&"object"==typeof exports&&module&&(module.exports=e)}),ace.define("ace/ext/whitespace",["require","exports","module","ace/lib/lang"],function(e,i){"use strict";var v=e("../lib/lang");i.$detectIndentation=function(e){function t(e){for(var t=0,n=e;n<i.length;n+=e)t+=i[n]||0;return t}for(var i=[],n=[],o=0,r=0,s=Math.min(e.length,1e3),a=0;a<s;a++){var l=e[a];if(/^\s*[^*+\-\s]/.test(l)){if("\t"==l[0])o++,r=-Number.MAX_VALUE;else{var c=l.match(/^ */)[0].length;if(c&&"\t"!=l[c]){var h=c-r;0<h&&!(r%h)&&!(c%h)&&(n[h]=(n[h]||0)+1),i[c]=(i[c]||0)+1}r=c}for(;a<s&&"\\"==l[l.length-1];)l=e[a++]}}var u=n.reduce(function(e,t){return e+t},0),d={score:0,length:0},g=0;for(a=1;a<12;a++){var p=t(a);1==a?(g=p,p=i[1]?.9:.8,i.length||(p=0)):p/=g,n[a]&&(p+=n[a]/u),p>d.score&&(d={score:p,length:a})}if(d.score&&1.4<d.score)var f=d.length;return g+1<o?((1==f||g<o/4||d.score<1.8)&&(f=undefined),{ch:"\t",length:f}):o+1<g?{ch:" ",length:f}:void 0},i.detectIndentation=function(e){var t=e.getLines(0,1e3),n=i.$detectIndentation(t)||{};return n.ch&&e.setUseSoftTabs(" "==n.ch),n.length&&e.setTabSize(n.length),n},i.trimTrailingSpace=function(e,t){var n=e.getDocument(),i=n.getAllLines(),o=t&&t.trimEmpty?-1:0,r=[],s=-1;t&&t.keepCursorPosition&&(e.selection.rangeCount?e.selection.rangeList.ranges.forEach(function(e,t,n){var i=n[t+1];i&&i.cursor.row==e.cursor.row||r.push(e.cursor)}):r.push(e.selection.getCursor()),s=0);for(var a=r[s]&&r[s].row,l=0,c=i.length;l<c;l++){var h=i[l],u=h.search(/\s+$/);l==a&&(u<r[s].column&&o<u&&(u=r[s].column),a=r[++s]?r[s].row:-1),o<u&&n.removeInLine(l,u,h.length)}},i.convertIndentation=function(e,t,n){var i=e.getTabString()[0],o=e.getTabSize();n||(n=o),t||(t=i);for(var r="\t"==t?t:v.stringRepeat(t,n),s=e.doc,a=s.getAllLines(),l={},c={},h=0,u=a.length;h<u;h++){var d=a[h].match(/^\s*/)[0];if(d){var g=e.$getStringScreenWidth(d)[0],p=Math.floor(g/o),f=g%o,m=l[p]||(l[p]=v.stringRepeat(r,p));(m+=c[f]||(c[f]=v.stringRepeat(" ",f)))!=d&&(s.removeInLine(h,0,d.length),s.insertInLine({row:h,column:0},m))}}e.setTabSize(n),e.setUseSoftTabs(" "==t)},i.$parseStringArg=function(e){var t={};/t/.test(e)?t.ch="\t":/s/.test(e)&&(t.ch=" ");var n=e.match(/\d+/);return n&&(t.length=parseInt(n[0],10)),t},i.$parseArg=function(e){return e?"string"==typeof e?i.$parseStringArg(e):"string"==typeof e.text?i.$parseStringArg(e.text):e:{}},i.commands=[{name:"detectIndentation",description:"Detect indentation from content",exec:function(e){i.detectIndentation(e.session)}},{name:"trimTrailingSpace",description:"Trim trailing whitespace",exec:function(e,t){i.trimTrailingSpace(e.session,t)}},{name:"convertIndentation",description:"Convert indentation to ...",exec:function(e,t){var n=i.$parseArg(t);i.convertIndentation(e.session,n.ch,n.length)}},{name:"setIndentation",description:"Set indentation",exec:function(e,t){var n=i.$parseArg(t);n.length&&e.session.setTabSize(n.length),n.ch&&e.session.setUseSoftTabs(" "==n.ch)}}]}),ace.require(["ace/ext/whitespace"],function(e){"object"==typeof module&&"object"==typeof exports&&module&&(module.exports=e)});var GollumTagStart={token:"support.function",regex:"\\[\\[[^\\]]*\\]\\]",next:"start"},UMLBlock=[{token:"support.function",regex:"^\\@enduml$",next:"start"},{defaultToken:"support.function"}],UMLStart={token:"support.function",regex:"^(?:[ \\t]*)\\@startuml$",next:"umlblock"},GithubCodeBlock=[{token:"support.function",regex:".*",onMatch:function(e,t,n){var i=n[2][0],o=n[2][1],r=/^( {0,3})(~~[~]+|```)\s*$/.exec(e);return r&&r[2].length>=i&&r[2].charAt(0)==o?(n.splice(0,3),this.next=n.shift()):this.next="",this.token}},{defaultToken:"support.function"}],startCodeBlockMatch=function(e,t,n){var i=new RegExp(this.regex).exec(e);return n.unshift("githubblock",[],[i[2].length,i[2].charAt(0)],t),this.token},GollumCodeStart={token:"support.function",regex:"^( {0,3})(```)[^`]*$",onMatch:startCodeBlockMatch,next:"githubblock"},MarkdownCodeStart={token:"support.function",regex:"^( {0,3})(~~[~]+)[^`~]*$",onMatch:startCodeBlockMatch,next:"githubblock"};ace.define("GollumRstHighlightRules",[],function(e,t){"use strict";var n=e("ace/lib/oop"),i=e("ace/mode/rst_highlight_rules").RSTHighlightRules,o=function(){var e=new i;this.$rules=e.getRules(),this.$rules.start=this.$rules.start.filter(function(e){return!("githubblock"==e.next)}),this.$rules.start.unshift(GollumTagStart),this.$rules.start.unshift(UMLStart),this.$rules.start.unshift(GollumCodeStart),this.addRules({githubblock:GithubCodeBlock}),null!=this.$rules.listblock&&this.$rules.listblock.unshift(GollumTagStart),this.addRules({umlblock:UMLBlock}),null!=this.$rules.listblock&&this.$rules.listblock.unshift(GollumTagStart),this.normalizeRules()};n.inherits(o,i),t.GollumHighlightRules=o}),ace.define("GollumAsciidocHighlightRules",[],function(e,t){"use strict";var n=e("ace/lib/oop"),i=e("ace/mode/asciidoc_highlight_rules").AsciidocHighlightRules,o=function(){var e=new i;this.$rules=e.getRules(),this.$rules.start=this.$rules.start.filter(function(e){return!("githubblock"==e.next)}),this.$rules.start.unshift(UMLStart),this.$rules.start.unshift(GollumCodeStart),this.addRules({githubblock:GithubCodeBlock}),null!=this.$rules.listblock&&this.$rules.listblock.unshift(GollumTagStart),this.addRules({umlblock:UMLBlock}),null!=this.$rules.listblock&&this.$rules.listblock.unshift(GollumTagStart),this.normalizeRules()};n.inherits(o,i),t.GollumHighlightRules=o}),ace.define("GollumTextileHighlightRules",[],function(e,t){"use strict";var n=e("ace/lib/oop"),i=e("ace/mode/textile_highlight_rules").TextileHighlightRules,o=function(){var e=new i;this.$rules=e.getRules(),this.$rules.start=this.$rules.start.filter(function(e){return!("githubblock"==e.next)}),this.$rules.start.unshift(GollumTagStart),this.$rules.start.unshift(UMLStart),this.$rules.start.unshift(GollumCodeStart),this.addRules({githubblock:GithubCodeBlock}),null!=this.$rules.listblock&&this.$rules.listblock.unshift(GollumTagStart),this.addRules({umlblock:UMLBlock}),null!=this.$rules.listblock&&this.$rules.listblock.unshift(GollumTagStart),this.normalizeRules()};n.inherits(o,i),t.GollumHighlightRules=o}),ace.define("GollumTextHighlightRules",[],function(e,t){"use strict";var n=e("ace/lib/oop"),i=e("ace/mode/text_highlight_rules").TextHighlightRules,o=function(){var e=new i;this.$rules=e.getRules(),this.$rules.start=this.$rules.start.filter(function(e){return!("githubblock"==e.next)}),this.$rules.start.unshift(GollumTagStart),this.$rules.start.unshift(UMLStart),this.$rules.start.unshift(GollumCodeStart),this.addRules({githubblock:GithubCodeBlock}),null!=this.$rules.listblock&&this.$rules.listblock.unshift(GollumTagStart),this.addRules({umlblock:UMLBlock}),null!=this.$rules.listblock&&this.$rules.listblock.unshift(GollumTagStart),this.normalizeRules()};n.inherits(o,i),t.GollumHighlightRules=o}),ace.define("GollumRdocHighlightRules",[],function(e,t){"use strict";var n=e("ace/lib/oop"),i=e("ace/mode/rdoc_highlight_rules").RDocHighlightRules,o=function(){var e=new i;this.$rules=e.getRules(),this.$rules.start=this.$rules.start.filter(function(e){return!("githubblock"==e.next)}),this.$rules.start.unshift(GollumTagStart),this.$rules.start.unshift(UMLStart),this.$rules.start.unshift(GollumCodeStart),this.addRules({githubblock:GithubCodeBlock}),null!=this.$rules.listblock&&this.$rules.listblock.unshift(GollumTagStart),this.addRules({umlblock:UMLBlock}),null!=this.$rules.listblock&&this.$rules.listblock.unshift(GollumTagStart),this.normalizeRules()};n.inherits(o,i),t.GollumHighlightRules=o}),ace.define("GollumMarkdownHighlightRules",[],function(e,t){"use strict";var n=e("ace/lib/oop"),i=e("ace/mode/markdown_highlight_rules").MarkdownHighlightRules,o=function(){var e=new i;this.$rules=e.getRules(),this.$rules.start=this.$rules.start.filter(function(e){return!("githubblock"==e.next)}),this.$rules.start.unshift(GollumTagStart),this.$rules.start.unshift(UMLStart),this.$rules.start.unshift(GollumCodeStart),this.$rules.start.unshift(MarkdownCodeStart),this.addRules({githubblock:GithubCodeBlock}),null!=this.$rules.listblock&&this.$rules.listblock.unshift(GollumTagStart),this.addRules({umlblock:UMLBlock}),null!=this.$rules.listblock&&this.$rules.listblock.unshift(GollumTagStart),this.normalizeRules()};n.inherits(o,i),t.GollumHighlightRules=o}),function(e){var r={asciidoc:{mode:"asciidoc",highlighter:"GollumAsciidocHighlightRules"},creole:{mode:"text",highlighter:"GollumTextHighlightRules"},markdown:{mode:"markdown",highlighter:"GollumMarkdownHighlightRules"},mediawiki:{mode:"text",highlighter:"GollumTextHighlightRules"},bib:{mode:"latex"},org:{mode:"text",highlighter:"GollumTextHighlightRules"},rst:{mode:"rst",highlighter:"GollumRstHighlightRules"},txt:{mode:"text"},pod:{mode:"text",highlighter:"GollumTextHighlightRules"},rdoc:{mode:"rdoc",highlighter:"GollumRdocHighlightRules"},textile:{mode:"textile",highlighter:"GollumTextileHighlightRules"}};e.getEditorMode=function(e){var t=null;if(t=r[e]){var n=t.mode,i=t.highlighter;if(i){var o=new(ace.require("ace/mode/"+n).Mode);return o.HighlightRules=ace.require(i).GollumHighlightRules,o}return"ace/mode/"+n}return null}}(jQuery),function(v){function r(e){return new RegExp("^[^"+"A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u02b8\u0300-\u0590\u0800-\u1fff\u2c00-\ufb1c\ufdfe-\ufe6f\ufefd-\uffff"+"]*["+"\u0591-\u07ff\ufb1d-\ufdfd\ufe70-\ufefc"+"]").test(e)}function s(e){window.ace_editor.session.$bidiHandler.$isRtl=e,window.ace_editor.session.$bidiHandler.updateBidiMap(),window.ace_editor.renderer.updateFull()}function a(){e&&clearTimeout(e),v("#gollum-saved-msg").text("Saving..."),e=setTimeout(function(){localStorage.setItem(h,window.ace_editor.getSession().getValue()),v("#gollum-editor-header, #gollum-editor-footer, #gollum-editor-sidebar").each(function(e,t){var n=h+t.id.replace("gollum-editor-","_");localStorage.setItem(n,t.value)}),v("#gollum-saved-msg").text("Saved recovery text")},2e3)}var l={MarkupType:"markdown",EditorMode:"code",NewFile:!1,HasFunctionBar:!0,Debug:!1,NoDefinitionsFor:[]},c={},e=null,h="gollum_autorecover_"+window.location;v.GollumEditor=function(e){if(c=v.extend(l,e),v('textarea[id="gollum-editor-body"]').each(function(){var e=v(this),t=e.attr("data-markup-lang")?e.attr("data-markup-lang"):"markdown",n=v("<div>",{position:"absolute",height:e.height(),"class":e.attr("class"),id:"gollum-editor-body-ace"}).insertAfter(e);e.css("display","none");var i=ace.edit(n[0],{rtlText:!0});window.ace_editor=i;var o=localStorage.getItem(h);o&&(v("#gollum-autorecover-button").click(function(e){i.getSession().setValue(o),["header","footer","sidebar"].forEach(function(e){var t=localStorage.getItem(h+"_"+e);t&&v("#gollum-editor-"+e).val(t)}),v("#gollum-autorecover-msg")[0].hidden=!0,e.preventDefault()}),v("#gollum-autorecover-msg")[0].hidden=!1),i.setTheme("ace/theme/tomorrow"),i.setKeyboardHandler(),i.renderer.setShowGutter(!1),i.getSession().setUseWrapMode(!0),i.getSession().setValue(e.val()),i.getSession().setMode(v.getEditorMode(t)),i.getSession().on("change",function(){e.val(i.getSession().getValue()),a()}),v("#gollum-editor-header, #gollum-editor-footer, #gollum-editor-sidebar").on("change keyup paste",a),r(i.getSession().getLine(0))&&s(!0),i.commands.addCommand({name:"showKeyboardShortcuts",bindKey:{win:"Ctrl-Alt-h",mac:"Command-Alt-h"},exec:function(t){ace.config.loadModule("ace/ext/keybinding_menu",function(e){e.init(t),t.showKeyboardShortcuts()})}}),c.commands&&v.each(c.commands,function(e,t){i.commands.addCommand(t)})}),v("#gollum-editor-body-ace").resize(function(){window.ace_editor.resize()}),v("#wiki_format").change(function(){var e=v(this).val(),t=window.ace_editor;window.ace_editor.getSession().setMode(v.getEditorMode(e)),g.updateCommitMessage(e),t.focus()}),v("#keybinding").change(function(){var e=v(this).val(),t=window.ace_editor;"default"==e?t.setKeyboardHandler():"vim"==e||"emacs"==e?t.setKeyboardHandler("ace/keyboard/"+e):t.setKeyboardHandler(),t.focus()}),v("#gollum-editor-submit, #gollum-editor-cancel").click(function(){var t="gollum_autorecover_"+window.location;localStorage.removeItem(t),["header","footer","sidebar"].forEach(function(e){localStorage.removeItem(t+"_"+e)})}),b("GollumEditor loading"),d.baseEditorMarkup()){if(d.titleDisplayed()&&v("#gollum-editor-title-field").addClass("active"),d.editSummaryMarkup()&&(v.GollumEditor.Placeholder.add(v("#gollum-editor-edit-summary input")),v('#gollum-editor form[name="gollum-editor"]').submit(function(e){e.preventDefault(),b("submitting"),v(this).unbind("submit"),v(this).submit()})),d.collapsibleInputs()&&v("#gollum-editor .collapsed button.collapsable, #gollum-editor .expanded button.collapsable").click(function(e){e.preventDefault(),v(this).parent().toggleClass("expanded"),v(this).parent().toggleClass("collapsed"),buttons=v(this).parent().children("button"),hidden_button=buttons.filter(":hidden")[0],shown_button=buttons.not(":hidden")[0],hidden_button.hidden=!1,shown_button.hidden=!0}),d.previewButton())v("#gollum-editor #gollum-editor-preview").click(function(){var e=v("#gollum-editor form").attr("action"),t=v(v("#gollum-editor form").get(0));t.attr("action",this.href||routePath("preview")),t.attr("target","_blank");var n=window.location.pathname.split("/");return t.attr("page",decodeURIComponent(n[n.length-1])||""),t.submit(),t.attr("action",e),t.removeAttr("target"),!1});if(d.functionBar()){var t=v("#gollum-editor-body").attr("data-markup-lang");t&&(c.MarkupType=t),u.setActiveLanguage(c.MarkupType),d.formatSelector()&&g.init(v("#wiki_format")),d.dir()&&v("#function-text-direction").click(function(e){e.preventDefault(),s(!window.ace_editor.session.$bidiHandler.$isRtl)}),d.help()&&(v("#gollum-editor-help").hide(),v("#gollum-editor-help").removeClass("jaws"))}if(c.section&&v.markupSupportsEditableSections(c.MarkupType)){var n=v.findSection(c.section,u.getDefinitionFor("gollum-helpers"));n&&(window.ace_editor.gotoLine(n+1,0,animate=!1),window.ace_editor.scrollToLine(n,center=!1,animate=!1),window.ace_editor.focus())}if(d.dragDropUpload()){var o=v("#gollum-editor-body-ace"),i=v("#gollum-editor-body-ace")[0];i.ondragover=function(){return o.addClass("dragging"),!1},i.ondragleave=function(){return o.removeClass("dragging"),!1},i.ondrop=function(e){b("dropped file"),e.preventDefault(),o.removeClass("dragging").addClass("uploading");var i=e.dataTransfer.files[0],t=new FormData;return t.append("file",i),v.ajax({url:routePath("upload_file"),data:t,cache:!1,contentType:!1,processData:!1,type:"POST",success:function(){o.removeClass("uploading");var e=i.name.split(".").pop().toLowerCase(),t=["jpg","jpeg","tif","tiff","png","gif","svg","bmp"];if(uploadDest=uploadDest.replace(/%20/g," "),-1<t.indexOf(e))var n="[[/"+uploadDest+"/"+i.name+"]]";else n="[["+i.name+"|/"+uploadDest+"/"+i.name+"]]";window.ace_editor.insert(n)},error:function(e,t,n){409==e.status?alert("This file already exists."):alert("Error uploading file: "+t+" "+n),o.removeClass("uploading")}}),!1}}}},v.GollumEditor.defineLanguage=function(e,t){"object"==typeof t?u.define(e,t):b("GollumEditor.defineLanguage: definition for "+e+" is not an object")};var b=function(e){c.Debug&&"undefined"!=typeof console&&console.log(e)},u={_ACTIVE_LANG:"",_LOADED_LANGS:[],_LANG:{},define:function(e,t){if(u._ACTIVE_LANG=e,u._LOADED_LANGS.push(e),"object"==typeof v.GollumEditor.WikiLanguage){var n={};v.extend(n,v.GollumEditor.WikiLanguage,t),u._LANG[e]=n}else u._LANG[e]=t},getActiveLanguage:function(){return u._ACTIVE_LANG},setActiveLanguage:function(e){function t(t){return function(){var e=u.getDefinitionFor(t);"object"==typeof e&&n.executeAction(e)}}null!=u._ACTIVE_LANG&&u._ACTIVE_LANG.length<=0&&g.updateCommitMessage(e),u.getHookFunctionFor("deactivate")&&u.getHookFunctionFor("deactivate")(),u.isLoadedFor(e)?(u._ACTIVE_LANG=e,n.refresh()):(u._ACTIVE_LANG=null,d.functionBar()&&n.refresh(),u.isValid()&&d.formatSelector()&&g.updateSelected()),u.getHookFunctionFor("activate")&&u.getHookFunctionFor("activate")(),window.ace_editor.commands.addCommand({name:"header-1",bindKey:{win:"Ctrl-1",mac:"Command-1"},exec:t("function-h1")}),window.ace_editor.commands.addCommand({name:"header-2",bindKey:{win:"Ctrl-2",mac:"Command-2"},exec:t("function-h2")}),window.ace_editor.commands.addCommand({name:"header-3",bindKey:{win:"Ctrl-3",mac:"Command-3"},exec:t("function-h3")}),window.ace_editor.commands.addCommand({name:"bold-text",bindKey:{win:"Ctrl-b",mac:"Command-b"},exec:t("function-bold")}),window.ace_editor.commands.addCommand({name:"italic-text",bindKey:{win:"Ctrl-i",mac:"Command-i"},exec:t("function-italic")})},getHookFunctionFor:function(e,t){return t||(t=u._ACTIVE_LANG),u.isLoadedFor(t)&&u._LANG[t][e]&&"function"==typeof u._LANG[t][e]?u._LANG[t][e]:null},getDefinitionFor:function(e,t){return t||(t=u._ACTIVE_LANG),u.isLoadedFor(t)&&u._LANG[t][e]&&"object"==typeof u._LANG[t][e]?u._LANG[t][e]:null},isLoadedFor:function(e){if(0===u._LOADED_LANGS.length)return!1;for(var t=0;t<u._LOADED_LANGS.length;t++)if(u._LOADED_LANGS[t]==e)return!0;return!1},isValid:function(){return u._ACTIVE_LANG&&"object"==typeof u._LANG[u._ACTIVE_LANG]}},d={baseEditorMarkup:function(){return v("#gollum-editor").length&&v("#gollum-editor-body").length},collapsibleInputs:function(){return v("#gollum-editor .collapsed, #gollum-editor .expanded").length},formatSelector:function(){return v("#wiki_format").length},functionBar:function(){return c.HasFunctionBar&&v("#gollum-editor-function-bar").length},ff4Environment:function(){return new RegExp(/Firefox\/4.0b/).test(navigator.userAgent)},editSummaryMarkup:function(){return 0<v("input#gollum-editor-message-field").length},help:function(){return v("#gollum-editor #gollum-editor-help").length&&v("#gollum-editor #function-help").length},dir:function(){return v("#gollum-editor #function-text-direction").length},previewButton:function(){return v("#gollum-editor #gollum-editor-preview").length},titleDisplayed:function(){return c.NewFile},dragDropUpload:function(){return v("#gollum-editor.uploads-allowed").length}},n={isActive:!1,activate:function(){b("Activating function bar"),v("#gollum-editor-function-bar button.function-button").each(function(){u.getDefinitionFor(v(this).attr("id"))?(v(this).click(n.evtFunctionButtonClick),v(this).attr("disabled",!1)):["function-help","function-text-direction"].includes(v(this).attr("id"))||v(this).attr("disabled",!0)}),v("#gollum-editor-function-bar").addClass("active"),n.isActive=!0},deactivate:function(){v("#gollum-editor-function-bar button.function-button").not("#function-text-direction").unbind("click"),v("#gollum-editor-function-bar").removeClass("active"),n.isActive=!1},evtFunctionButtonClick:function(e){e.preventDefault();var t=u.getDefinitionFor(v(this).attr("id"));"object"==typeof t&&n.executeAction(t)},executeAction:function(e){var t=window.ace_editor,n=t.getValue(),i=!1,o=!1,r=t.getSelectionRange(),s=t.getSelectedText(),a=s.length,l=!1;if(""==s)if(e.whole_line&&1==e.whole_line){l=!0;var c=r.start.row;s=t.session.getLine(c),r=new(ace.require("ace/range").Range)(c,0,c,s.length)}else e.break_line&&1==e.break_line&&(o=i=!0);else e.break_line&&1==e.break_line&&(o=i=!0);var h=s;if(e.exec&&"function"==typeof e.exec)e.exec(n,s,v("#gollum-editor-body"),r);else{var u=/([^\n]+)/gi;if(e.search&&"object"==typeof e.search&&(b("Replacing search Regex"),u=null,u=new RegExp(e.search),b(u)),b('repText is "'+h+'"'),e.replace&&"string"==typeof e.replace){b("Running replacement - using "+e.replace);var d=e.replace;h=(h=(h=escape(h)).replace(u,d)).replace(/\$[\d]/g,""),""===(h=unescape(h))&&(b("Search string is empty"),h=d.replace(/\$[\d]/g,""));var g=undefined;if(0==l){repPosition=d.indexOf("$1"),-1==repPosition&&(repPosition=Math.floor(d.length/2));var p=d.substring(0,repPosition),f=p.split("\n").length-1,m=repPosition;0<f&&(m-=p.lastIndexOf("\n")),g=[f,m+=a]}}e.append&&"string"==typeof e.append&&(h+=e.append),h&&v.GollumEditor.replaceSelection(h,i,o,r,g)}},isShown:function(){return v("#gollum-editor-function-bar").is(":visible")},refresh:function(){d.functionBar()&&(b("Refreshing function bar"),u.isValid()?(n.deactivate(),n.activate(),o&&o.setActiveHelp(u.getActiveLanguage())):(b("Language definition is invalid."),n.isShown()&&n.deactivate(),o.isShown()&&o.hide()))}},g={$_SELECTOR:null,evtChangeFormat:function(){var e=v(this).val();g.updateCommitMessage(e),u.setActiveLanguage(e)},updateCommitMessage:function(e){var t=document.getElementById("gollum-editor-message-field"),n=t.value;/^(?:created|updated)/i.test(n)&&(t.value=n.replace(/\([^\)]*\)$/,"("+e+")"))},init:function(e){b("Initializing format selector"),g.$_SELECTOR&&"object"==typeof g.$_SELECTOR&&g.$_SELECTOR.unbind("change"),g.$_SELECTOR=e,g.updateSelected(),g.$_SELECTOR.change(g.evtChangeFormat)},updateSelected:function(){var e=u.getActiveLanguage();g.$_SELECTOR.val(e)}},o={_ACTIVE_HELP:"",_LOADED_HELP_LANGS:[],_HELP:{},define:function(e,t){o.isValidHelpFormat(t)?(b("help is a valid format"),o._ACTIVE_HELP_LANG=e,o._LOADED_HELP_LANGS.push(e),o._HELP[e]=t,v("#function-help").length&&(v("#function-help").attr("disabled")&&v("#function-help").attr("disabled",!1),v("#function-help").unbind("click"),v("#function-help").click(o.evtHelpButtonClick),o.generateHelpMenuFor(e),v("#gollum-editor-help").length&&void 0!==v("#gollum-editor-help").attr("data-autodisplay")&&"true"===v("#gollum-editor-help").attr("data-autodisplay")&&o.show())):v("#function-help").length&&v("#function-help").attr("disabled",!0)},generateHelpMenuFor:function(e){if(!o._HELP[e])return b("Help is not defined for "+e.toString()),!1;var t=o._HELP[e];v("#gollum-editor-help-parent").html(""),v("#gollum-editor-help-list").html(""),v("#gollum-editor-help-content").html("");for(var n=0;n<t.length&&"object"==typeof t[n];n++){var i=v('<li><a href="#" rel="'+n+'">'+t[n].menuName+"</a></li>");v("#gollum-editor-help-parent").append(i),0===n&&i.children("a").addClass("selected"),i.children("a").click(o.evtParentMenuClick)}o.generateSubMenu(t[0],0),v(v("#gollum-editor-help-list li a").get(0)).click()},generateSubMenu:function(e,t){v("#gollum-editor-help-list").html(""),v("#gollum-editor-help-content").html("");for(var n=0;n<e.content.length&&"object"==typeof e.content[n];n++){var i=v('<li><a href="#" rel="'+t+":"+n+'">'+e.content[n].menuName+"</a></li>");v("#gollum-editor-help-list").append(i),i.children("a").click(o.evtSubMenuClick)}},hide:function(){v.browser.msie?v("#gollum-editor-help").css("display","none"):v("#gollum-editor-help").animate({opacity:0},200,function(){v("#gollum-editor-help").animate({
23
- height:"hide"},200)})},show:function(){v.browser.msie?v("#gollum-editor-help").css("display","block"):v("#gollum-editor-help").animate({height:"show"},200,function(){v("#gollum-editor-help").animate({opacity:1},300)})},showHelpFor:function(e,t){var n=o._HELP[o._ACTIVE_HELP_LANG][e].content[t].data;v("#gollum-editor-help-content").html(n)},isLoadedFor:function(e){for(var t=0;t<o._LOADED_HELP_LANGS.length;t++)if(e==o._LOADED_HELP_LANGS[t])return!0;return!1},isShown:function(){return v("#gollum-editor-help").is(":visible")},isValidHelpFormat:function(e){return"object"==typeof e&&e.length&&"string"==typeof e[0].menuName&&"object"==typeof e[0].content&&e[0].content.length},setActiveHelp:function(e){o.isLoadedFor(e)?(o._ACTIVE_HELP_LANG=e,v("#function-help").length&&(v("#function-help").attr("disabled")&&v("#function-help").attr("disabled",!1),v("#function-help").unbind("click"),v("#function-help").click(o.evtHelpButtonClick),o.generateHelpMenuFor(e))):(v("#function-help").length&&v("#function-help").attr("disabled",!0),o.isShown()&&o.hide())},evtHelpButtonClick:function(e){e.preventDefault(),o.isShown()?(v("#gollum-editor-help").length&&"undefined"!==v("#gollum-editor-help").attr("data-autodisplay")&&"true"===v("#gollum-editor-help").attr("data-autodisplay")&&(v.post("/wiki/help?_method=delete"),v("#gollum-editor-help").attr("data-autodisplay","")),o.hide()):o.show()},evtParentMenuClick:function(e){if(e.preventDefault(),!v(this).hasClass("selected")){var t=v(this).attr("rel"),n=o._HELP[o._ACTIVE_HELP_LANG][t];v("#gollum-editor-help-parent li a").removeClass("selected"),v(this).addClass("selected"),o.generateSubMenu(n,t),v(v("#gollum-editor-help-list li a").get(0)).click()}},evtSubMenuClick:function(e){if(e.preventDefault(),!v(this).hasClass("selected")){var t=v(this).attr("rel").split(":");v("#gollum-editor-help-list li a").removeClass("selected"),v(this).addClass("selected"),o.showHelpFor(t[0],t[1])}}};v.GollumEditor.defineHelp=o.define,v.GollumEditor.Dialog=v.GollumDialog,v.GollumEditor.replaceSelection=function(e,t,n,i,o){var r=window.ace_editor,s=0;if(i==undefined)i=r.selection.getRange();if(1==t){var a=r.session.doc.getLine(i.start.row-1);0<i.start.column?(e="\n\n"+e,s=2):""!=a&&(e="\n"+e,s=1)}if(1==n){var l=r.session.doc.getLine(i.end.row+1);i.end.column<r.session.doc.getLine(i.end.row).length?e+="\n\n":""!=l&&(e+="\n")}r.session.replace(i,e),o!=undefined&&(totalVerticalOffset=o[0]+s+i.start.row,totalHorizontalOffset=o[1]+i.start.column,r.navigateTo(totalVerticalOffset,totalHorizontalOffset)),r.focus()},v.GollumEditor.Placeholder=v.GollumPlaceholder}(jQuery),function(r){r.constructLanguageDefinition=function(t){var n=r.extend(!0,{},r.DefaultLang,t);return Object.keys(t).forEach(function(e){"undefined"==typeof t[e]&&delete n[e]}),n};var n=function(e,t,n){r.GollumEditor.Dialog.init({title:e,fields:t,OK:function(e){r.GollumEditor.replaceSelection(n(e))}})};r.DefaultLang={"function-bold":{search:/([^\n]+)([\n\s]*)/g,replace:"**$1**$2"},"function-italic":{search:/([^\n]+)([\n\s]*)/g,replace:"_$1_$2"},"function-code":{search:/([^\n]+)([\n\s]*)/g,replace:"`$1`$2"},"function-hr":{append:"\n***\n"},"function-ul":{exec:function(e,t){for(var n="",i=t.split("\n"),o=0;o<i.length;o++)n+="* "+i[o]+"\n";n=n.substring(0,n.length-1),r.GollumEditor.replaceSelection(n,!0,!0)}},"function-ol":{line:function(e,t){return e.toString()+". "+t+"\n"},exec:function(e,t){for(var n="",i=t.split("\n"),o=0;o<i.length;o++)n+=this.line(o+1,i[o]);n=n.substring(0,n.length-1),r.GollumEditor.replaceSelection(n,!0,!0)}},"function-blockquote":{search:/(.+)([\n]?)/g,replace:"> $1$2",break_line:!0},"function-h1":{search:/(.+)([\n]?)/g,replace:"# $1$2",break_line:!0,whole_line:!0},"function-h2":{search:/(.+)([\n]?)/g,replace:"## $1$2",break_line:!0,whole_line:!0},"function-h3":{search:/(.+)([\n]?)/g,replace:"### $1$2",break_line:!0,whole_line:!0},"function-link":{replace:function(e){var t="";return e.text&&e.href&&(t="["+e.text+"]("+e.href+")"),t},exec:function(e,t){n("Insert Link",[{id:"text",name:"Link Text",type:"text",defaultValue:t},{id:"href",name:"URL",type:"text"}],this.replace)}},"function-image":{replace:function(e){var t="";return e.url&&e.alt&&(t="!["+e.alt+"]("+e.url+")"),t},exec:function(e,t){n("Insert Image",[{id:"url",name:"Image Url",type:"text",defaultValue:t},{id:"alt",name:"Alt Text",type:"text"}],this.replace)}},"function-critic-accept":{exec:function(e,t){var n=t.replace(/\{\+\+(.*?)\+\+[ \t]*(\[(.*?)\])?[ \t]*\}/gm,"$1").replace(/\{--(.*?)--[ \t]*(\[(.*?)\])?[ \t]*\}/gm,"").replace(/\{~~(.*?)~>(.*?)~~\}/gm,"$2").replace(/\{\=\=(.*?)[ \t]*(\[(.*?)\])?[ \t]*\=\=\}{>>(.*?)<<\}/gm,"$1").replace(/\{>>(.*?)<<\}/gm,"");r.GollumEditor.replaceSelection(n)}},"function-critic-reject":{exec:function(e,t){var n=t.replace(/\{\+\+(.*?)\+\+[ \t]*(\[(.*?)\])?[ \t]*\}/gm,"").replace(/\{--(.*?)--[ \t]*(\[(.*?)\])?[ \t]*\}/gm,"$1").replace(/\{~~(.*?)~>(.*?)~~\}/gm,"$1").replace(/\{\=\=(.*?)[ \t]*(\[(.*?)\])?[ \t]*\=\=\}{>>(.*?)<<\}/gm,"$1").replace(/\{>>(.*?)<<\}/gm,"");r.GollumEditor.replaceSelection(n)}}}}(jQuery),function(e){var t={"function-bold":{replace:"*$1*$2"},"function-hr":undefined,"function-blockquote":{replace:"----\n$1$2\n----"},"function-h1":{replace:"= $1$2"},"function-h2":{replace:"== $1$2"},"function-h3":{replace:"=== $1$2"},"function-link":{replace:function(e){var t="";return e.text&&e.href&&(t=e.href+"["+e.text+"]"),t}},"function-image":{replace:function(e){var t="";return e.url&&e.alt&&(t="image::"+e.url+"["+e.alt+"]"),t}}};e.GollumEditor.defineLanguage("asciidoc",e.constructLanguageDefinition(t));var n=[{menuName:"Text Formatting",content:[{menuName:"Headers",data:"<p>AsciiDoc headers can be written in two ways: with differing underlines or with different indentation using <code>=</code> (equals sign). AsciiDoc supports headings 1-4. The editor will automatically use the <code>=</code> notation. To create a level one header, prefix your line with one <code>=</code>. Level two headers are created with <code>==</code> and so on.</p>"},{menuName:"Bold / Italic",data:"<p>To display text as <strong>bold</strong>, wrap the text in <code>*</code> (asterisks). To display text as <em>italic</em>, wrap the text in <code>_</code> (underscores). To create <code>monospace</code> text, wrap the text in <code>`</code> (backtick)."},{menuName:"Scripts",data:"<p>Superscript and subscript is created the same way as other inline formats. To create superscript text, wrap your text in <code>^</code> (carats). To create subscript text, wrap your text in <code>~</code> (tildes).</p>"},{menuName:"Special Characters",data:"<p>AsciiDoc will automatically convert textual representations of commonly-used special characters. For example, <code>(R)</code> becomes &reg;, <code>(C)</code> becomes &copy; and <code>(TM)</code> becomes &trade;.</p>"}]},{menuName:"Blocks",content:[{menuName:"Paragraphs",data:"<p>AsciiDoc allows paragraphs to have optional titles or icons to denote special sections. To make a normal paragraph, simply add a line between blocks and a new paragraph will start. If you want to title your paragraphs, adda line prefixed by <code>.</code> (full stop). An example paragraph with optional title is displayed below:<br><br><code>.Optional Title<br><br>This is my paragraph. It is two sentences long.</code></p>"},{menuName:"Source Blocks",data:"<p>To create source blocks (long blocks of code), follow the same syntax as above but with an extra line denoting the inline source and lines of four dashes (<code>----</code>) delimiting the source block.. An example of Python source is below:<br><br><code>.python.py<br>[source,python]<br>----<br># i just wrote a comment in python<br># and maybe one more<br>----</code></p>"},{menuName:"Comment Blocks",data:"<p>Comment blocks are useful if you want to keep notes for yourself inline but do not want them displayed to the public. To create a comment block, simply wrap the paragraph in dividers with four slashes (<code>////</code>). An example comment block is below:<br><br><code>////<br>My comment block is here now<br><br>It can be multiple paragraphs. Really.<br>////</p>"},{menuName:"Quote Blocks",data:"<p>Quote blocks work much like comment blocks &mdash; simply create dividers using four underscores (<code>____</code>) around your quote. An example quote block is displayed below:<br><code>____<br>This is my quote block. Quote something nice here, otherwise there is no point in quoting.<br>____</code></p>"}]},{menuName:"Macros",content:[{menuName:"Links",data:'<p>To create links to external pages, you can simply write the URI if you want the URI to link to itself. (i.e., <code>http://github.com/</code> will automatically be parsed to <a href="javascript:void(0);">http://github.com/</a>. If you want different text to be displayed, simply append it to the end of the URI in between <code>[</code> (brackets.) For example, <code>http://github.com/[GitHub]</code> will be parsed as <a href="javascript:void(0);">GitHub</a>, with the URI pointing to <code>http://github.com</code>.</p>'},{menuName:"Images",data:"<p>Images in AsciiDoc work much like hyperlinks, but image URLs are prefixed with <code>image:</code>. For example, to link to an image at <code>images/icons/home.png</code>, write <code>image:images/icons/home.png</code>. Alt text can be added by appending the text to the URI in <code>[</code> (brackets).</p>"}]}];e.GollumEditor.defineHelp("asciidoc",n)}(jQuery),jQuery.GollumEditor.defineLanguage("bib",{}),function(e){var t={"function-italic":{replace:"//$1//$2"},"function-code":{replace:"{{{$1}}}$2"},"function-hr":{append:"\n\n----\n\n"},"function-blockquote":undefined,"function-ol":{line:function(e,t){return"# "+t+"\n"}},"function-h1":{replace:"== $1$2"},"function-h2":{replace:"=== $1$2"},"function-h3":{replace:"==== $1$2"},"function-link":{replace:function(e){var t="";return e.text&&e.href&&(t="[["+e.href+"|"+e.text+"]]"),t}},"function-image":{replace:function(e){var t="";return e.url&&e.alt&&(t="{{"+e.url,""!=e.alt&&(t+="|"+e.alt),t+="}}"),t}}};e.GollumEditor.defineLanguage("creole",e.constructLanguageDefinition(t))}(jQuery),function(e){var t={"gollum-helpers":{"find-header-line":function(e,t){if(t.match(/(^[=]+$)/)||t.match(/(^[-]+$)/)){var n=e-1,i=window.ace_editor.getSession().getLine(n);return 0<=n&&!/^\s+$/.test(i)?[i,n]:null}return null}}};e.GollumEditor.defineLanguage("markdown",e.constructLanguageDefinition(t));var n=[{menuName:"Block Elements",content:[{menuName:"Paragraphs &amp; Breaks",data:"<p>To create a paragraph, simply create a block of text that is not separated by one or more blank lines. Blocks of text separated by one or more blank lines will be parsed as paragraphs.</p><p>If you want to create a line break, end a line with two or more spaces, then hit Return/Enter.</p>"},{menuName:"Headers",data:"<p>Markdown supports two header formats. The wiki editor uses the &ldquo;atx&rsquo;-style headers. Simply prefix your header text with the number of <code>#</code> characters to specify heading depth. For example: <code># Header 1</code>, <code>## Header 2</code> and <code>### Header 3</code> will be progressively smaller headers. You may end your headers with any number of hashes.</p>"},{menuName:"Blockquotes",data:"<p>Markdown creates blockquotes email-style by prefixing each line with the <code>&gt;</code>. This looks best if you decide to hard-wrap text and prefix each line with a <code>&gt;</code> character, but Markdown supports just putting <code>&gt;</code> before your paragraph.</p>"},{menuName:"Lists",data:"<p>Markdown supports both ordered and unordered lists. To create an ordered list, simply prefix each line with a number (any number will do &mdash; this is why the editor only uses one number.) To create an unordered list, you can prefix each line with <code>*</code>, <code>+</code> or <code>-</code>.</p> List items can contain multiple paragraphs, however each paragraph must be indented by at least 4 spaces or a tab."},{menuName:"Code Blocks",data:"<p>Markdown wraps code blocks in pre-formatted tags to preserve indentation in your code blocks. To create a code block, indent the entire block by at least 4 spaces or one tab. Markdown will strip the extra indentation you&rsquo;ve added to the code block.</p>"},{menuName:"Horizontal Rules",data:"Horizontal rules are created by placing three or more hyphens, asterisks or underscores on a line by themselves. Spaces are allowed between the hyphens, asterisks or underscores."}]},{menuName:"Span Elements",content:[{menuName:"Links",data:"<p>Markdown has two types of links: <strong>inline</strong> and <strong>reference</strong>. For both types of links, the text you want to display to the user is placed in square brackets. For example, if you want your link to display the text &ldquo;GitHub&rdquo;, you write <code>[GitHub]</code>.</p><p>To create an inline link, create a set of parentheses immediately after the brackets and write your URL within the parentheses. (e.g., <code>[GitHub](http://github.com/)</code>). Relative paths are allowed in inline links.</p><p>To create a reference link, use two sets of square brackets. <code>[my internal link][internal-ref]</code> will link to the internal reference <code>internal-ref</code>.</p>"},{menuName:"Emphasis",data:"<p>Asterisks (<code>*</code>) and underscores (<code>_</code>) are treated as emphasis and are wrapped with an <code>&lt;em&gt;</code> tag, which usually displays as italics in most browsers. Double asterisks (<code>**</code>) or double underscores (<code>__</code>) are treated as bold using the <code>&lt;strong&gt;</code> tag. To create italic or bold text, simply wrap your words in single/double asterisks/underscores. For example, <code>**My double emphasis text**</code> becomes <strong>My double emphasis text</strong>, and <code>*My single emphasis text*</code> becomes <em>My single emphasis text</em>.</p>"},{menuName:"Code",data:"<p>To create inline spans of code, simply wrap the code in backticks (<code>`</code>). Markdown will turn <code>`myFunction`</code> into <code>myFunction</code>.</p>"},{menuName:"Images",data:"<p>Markdown image syntax looks a lot like the syntax for links; it is essentially the same syntax preceded by an exclamation point (<code>!</code>). For example, if you want to link to an image at <code>http://github.com/unicorn.png</code> with the alternate text <code>My Unicorn</code>, you would write <code>![My Unicorn](http://github.com/unicorn.png)</code>.</p>"}]},{menuName:"Miscellaneous",content:[{menuName:"Automatic Links",data:'<p>If you want to create a link that displays the actual URL, markdown allows you to quickly wrap the URL in <code>&lt;</code> and <code>&gt;</code> to do so. For example, the link <a href="javascript:void(0);">http://github.com/</a> is easily produced by writing <code>&lt;http://github.com/&gt;</code>.</p>'},{menuName:"Escaping",data:"<p>If you want to use a special Markdown character in your document (such as displaying literal asterisks), you can escape the character with the backslash (<code>\\</code>). Markdown will ignore the character directly after a backslash."},{menuName:"Emoji",data:'<p>See the <a href="http://emojione.com/demo/" target="_blank">EmojiOne demo</a> for all available emoji. To include one, wrap the emoji name in colons and use underscores instead of spaces (e.g. :heart: or :point_up:).'}]}];e.GollumEditor.defineHelp("markdown",n)}(jQuery),function(e){var t={"function-bold":{replace:"'''$1'''$2"},"function-italic":{replace:"''$1''$2"},"function-hr":{append:"\n---\n"},"function-code":{replace:"<code>$1</code>$2"},"function-ol":{link:function(e,t){return"# "+t+"\n"}},"function-blockquote":{replace:"<blockquote>\n$1$2\n</blockquote>"},"function-h1":{replace:"= $1$2 ="},"function-h2":{replace:"== $1$2 =="},"function-h3":{replace:"=== $1$2 ==="},"function-link":{replace:function(e){var t="";return e.text&&e.href&&(t="["+e.href+" | "+e.text+"]"),t}}};e.GollumEditor.defineLanguage("mediawiki",e.constructLanguageDefinition(t));var n=[{menuName:"Text Formatting",content:[{menuName:"Headers",data:"<p>MediaWiki headers are written with different indentation using <code>= Title =</code> (equals sign). MediaWiki supports headings 1-6.</p>"},{menuName:"Bold / Italic",data:"<p>To display text as <strong>bold</strong>, wrap the text in <code>'''</code>. To display text as <em>italic</em>, wrap the text in <code>''</code>. To create <code>monospace</code> text, wrap the text in <code>&lt;code&gt;&lt;/code&gt;</code>."},{menuName:"Special Characters",data:"<p>Use HTML special characters, e.g. <code>&copy;</code> or <code>&euro;</code></p>"}]},{menuName:"Blocks",content:[{menuName:"Paragraphs",data:"<p>MediaWiki ignores single line breaks. To start a new paragraph, leave an empty line. You can force a line break within a paragraph with the HTML tag <code><br /></code>.</p>"},{menuName:"Tables",data:'<p>Tables may be authored in wiki pages using either XHTML table elements directly, or using wikicode formatting to define the table. Wikitable syntax overview: <table cellpadding="5" cellspacing="0" border="1"><tr><td><pre> <code>{|</code></pre></td><td><b>table start</b></td></tr><tr><td><pre> <code>|+</code></pre></td><td>table <b>caption,</b> <i>optional;</i> only between <b>table start</b> and first <b>table row</b></td></tr><tr><td><pre> <code>|-</code></pre></td><td><b>table row,</b> <i>optional on first row</i> -- wiki engine assumes the first row</td></tr><tr><td><pre> <code>!</code></pre></td><td><b>table header</b> cell, <i>optional.</i> Consecutive <b>table header</b> cells may be added on same line separated by double marks (<code>!!</code>) or start on new lines, each with its own single mark (<code>!</code>).</td></tr><tr><td><pre> <code>|</code></pre></td><td><b>table data</b> cell, <i>required!</i> Consecutive <b>table data</b> cells may be added on same line separated by double marks (<code>||</code>) or start on new lines, each with its own single mark (<code>|</code>).</td></tr><tr><td><pre> <code>|}</code></pre></td><td><b>table end</b></td></tr></table></p>'}]},{menuName:"Macros",content:[{menuName:"Links",data:"<p>To create links to external pages, use single brackets, e.g. <code>[https://mediawiki.org MediaWiki]</code>. Internal links use double brackets: <code>[[Main Page]]</code>. To define the link text, use <code>[[Main Page | this is displayed]]</code> (note: the order of the URL/Page Name and the link text is reversed compared to Gollum pages in other markups).</p>"},{menuName:"Images",data:"<p>Use Gollum internal links, e.g. <code>[[sauron.jpg]]<code>, to insert images."}]}];e.GollumEditor.defineHelp("mediawiki",n)}(jQuery),function(e){var t={"function-bold":{replace:"*$1*$2"},"function-italic":{replace:"/$1/$2"},"function-code":{replace:"=$1=$2"},"function-hr":undefined,"function-blockquote":{replace:"#+BEGIN_QUOTE\n$1$2\n#+END_QUOTE"},"function-h1":{replace:"* $1$2"},"function-h2":{replace:"** $1$2"},"function-h3":{replace:"*** $1$2"},"function-link":{replace:function(e){var t="";return e.text&&e.href?t="[["+e.href+"]["+e.text+"]]":e.href&&(t="[["+e.href+"]]"),t}},"function-image":{replace:function(e){var t="";return e.url&&(t="[["+e.url+"]]"),t}}};e.GollumEditor.defineLanguage("org",e.constructLanguageDefinition(t));var n=[{menuName:"Block Elements",content:[{menuName:"Paragraphs &amp; Breaks",data:"<p>To create a paragraph, simply create a block of text that is not separated by one or more blank lines. Blocks of text separated by one or more blank lines will be parsed as paragraphs.</p>"},{menuName:"Headers",data:"<p>Simply prefix your header text with the number of <code>*</code> characters to specify heading depth. For example: <code>* Header 1</code>, <code>** Header 2</code> and <code>*** Header 3</code> will be progressively smaller headers.</p>"},{menuName:"Blockquotes",data:"<p>To create a blockquote, simple embed the text between <code>#+BEGIN_QUOTE</code> and <code>#+END_QUOTE</code>. An example quote block is displayed below:<br><code>#+BEGIN_QUOTE<br>This is my quote block. Quote something nice here, otherwise there is no point in quoting.<br>#+END_QUOTE</code></p>"},{menuName:"Lists",data:"<p>Org-mode supports both ordered and unordered lists. To create an ordered list, simply prefix each line with a number (any number will do &mdash; this is why the editor only uses one number.) To create an unordered list, you can prefix each line with <code>+</code> or <code>-</code>.</p>"},{menuName:"Code Blocks",data:"<p>Code Blocks are similar to blockquote, except that <code>#+BEGIN_EXAMPLE</code> and <code>#+END_EXAMPLE</code> are used.</p>"},{menuName:"Tables",data:"<p>Org-mode supports simple tables (tables with equal number of cells in each row). To create a simple table, just separate the contents of each cell with a <code>|</code> character. For example, <br><br><code>|one|two|three|<br>|four|five|six|</code><br><br> will appear as a table with two rows and three columns. Additionally, <br><br><code>|one|two|three|<br>|---+---+-----|<br>|four|five|six|</code><br><br> will also appear as a table, but the first row will be interpreted as a header row and the <code>&lt;th&gt;</code> tag will be used to render it. </p>"}]},{menuName:"Span Elements",content:[{menuName:"Links",data:'<p>To create links to external pages, you need to enclose the URI in double square brackets. (i.e., <code>[[http://github.com/]]</code> will automatically be parsed to <a href="javascript:void(0);">http://github.com/</a>)If you want to add text, to be displayed to the user, you write the URI and the text next to each other, both enclosed in square brackets and both of them together enclosed in another pair of square brackets. For example, if you want your link to display the text &ldquo;GitHub&rdquo;, you write <code>[[http://github.com][GitHub]]</code>.</p>'},{menuName:"Emphasis",data:"<p>Forward slashes (<code>/</code>) are treated as emphasis and are wrapped with an <code>&lt;i&gt;</code> tag. Asterisks (<code>*</code>) are treated as bold using the <code>&lt;b&gt;</code> tag.</p>"},{menuName:"Code",data:"<p>To create inline spans of code, simply wrap the code in equal signs (<code>=</code>). Orgmode will turn <code>=myFunction=</code> into <code>myFunction</code>.</p>"},{menuName:"Images",data:"<p>Org-mode image syntax is exactly same as the syntax that you would use for a URI to link to itself. The image URI is enclosed in double square brackets. Alt text on images is not currently supported by Gollum's Org-mode parser.</p>"}]}];e.GollumEditor.defineHelp("org",n)}(jQuery),jQuery.GollumEditor.defineLanguage("txt",{}),function(e){var t={"function-bold":{replace:"B<$1>$2"},"function-italic":{replace:"I<$1>$2"},"function-hr":undefined,"function-code":{replace:"C<$1>$2"},"function-h1":{replace:"=head1 $1$2"},"function-h2":{replace:"=head2 $1$2"},"function-h3":{replace:"=head3 $1$2"},"function-link":{replace:function(e){var t="";return e.text&&e.href&&(t="L<"+e.text+"|"+e.href+">"),t}},"function-image":undefined,"function-ul":undefined,"function-ol":undefined,"function-blockquote":undefined};e.GollumEditor.defineLanguage("pod",e.constructLanguageDefinition(t));var n=[{menuName:"Command Paragraphs",content:[{menuName:"Headings",data:"<p>All command paragraphs start with <code>=</code> (equals sign).</p><p>To create headings 1 through 4, begin your command paragraph with <code>=headN</code>, where <code>N</code> is the number of the heading 1 through 4. For example, to make a first-order heading (the largest possible,) write <code>=head1</code>, then on the next line begin your paragraph that you want under the heading.</p>"},{menuName:"Beginning &amp; Ending",data:"<p>Perl pod blocks should begin with <code>=pod</code> and end with <code>=cut</code>, signifying to Pod parsers that the pod block has begun and ended. These command paragraphs only signal the beginning and end of a pod block.</p>"},{menuName:"Other Formats",data:"<p>pod also allows blocks in other formats, such as HTML or plain text. To create one of these blocks, use the <code>=format SYNTAX</code> command paragraph, where <code>SYNTAX</code> is the syntax of the block (e.g. <code>html</code> or <code>txt</code>). At the end of your block, use the <code>=end SYNTAX</code> block.</p>"},{menuName:"Encoding",data:"<p>If you are having encoding troubles, use the <code>=encoding ENC_TYPE</code> command, where <code>ENC_TYPE</code> is the encoding type (e.g. <code>utf8</code>, <code>koi8-r</code>). This will affect the entire document, not just the block below the command.</p>"}]},{menuName:"Formatting",content:[{menuName:"Text",data:"<p>Formatting text as <strong>bold</strong>, <em>italic</em> or <code>code</code> works in the <code>S&lt;word&gt;</code> syntax, where <code>S</code> is an abbreviation for the type of text you are trying to create. For example, <code>B&lt;my bold text&gt;</code> becomes <strong>my bold text</strong>, <code>I&lt;italic text&gt;</code> becomes <em>italic text</em> and <code>C&lt;code here()&gt;</code> becomes <code>code here()</code>.</p>"},{menuName:"Hyperlinks",data:"<p>Writing hyperlinks in pod is much like formatting text, using the same <code>S&lt;&gt;</code> syntax. Instead of <code>B</code>, <code>I</code> or <code>C</code>, use <code>L</code> to begin a hyperlink.</p><p>pod allows you to hyperlink to a <code>man</code> page, a Perl documentation page, or another web page. To link to a <code>man</code> or Perl documentation page, simply include the page name in the link (e.g. <code>L&lt;perl(1)&gt;</code> or <code>L&lt;Net::Ping&gt;</code>). If you want to link to a web page, separate the URL and the link text with a pipe (e.g. to link to github.com, write <code>L&lt;GitHub|http://github.com/&gt;</code>)."}]}];e.GollumEditor.defineHelp("pod",n)}(jQuery),function(e){var t={"function-code":undefined,"function-h1":undefined,"function-h2":undefined,"function-h3":undefined,"function-link":undefined,"function-image":undefined,"function-hr":undefined,"function-blockquote":undefined};e.GollumEditor.defineLanguage("rdoc",e.constructLanguageDefinition(t))}(jQuery),function(s){var o=function(e,t,n){var i="";i=e.length?e:"Title here",adornment=n.repeat(i.length),i=i+"\n"+adornment+"\n",s.GollumEditor.replaceSelection(i,!1,!1,t)},e={"function-bold":{replace:"**$1**$2"},"function-italic":{replace:"*$1*$2"},"function-code":{replace:"``$1``$2"},"function-hr":{append:"\n\n----\n\n"},"function-blockquote":{exec:function(e,t){for(var n=" ",i=t.split("\n"),o=0;o<i.length;o++)i[o]=n+i[o];var r=i.join("\n");s.GollumEditor.replaceSelection(r)}},"function-h1":{symbol:"=",exec:function(e,t,n,i){o(t,i,this.symbol)}},"function-h2":{symbol:"-",exec:function(e,t,n,i){o(t,i,this.symbol)}},"function-h3":{symbol:"~",exec:function(e,t,n,i){o(t,i,this.symbol)}},"function-link":{replace:function(e){var t="";return e.text&&e.href&&(t="`"+e.text+" <"+e.href+">`_"),t}},"function-image":{replace:function(e){var t="";return e.url&&e.alt&&(t=".. image:: "+e.url+"\n :alt: "+e.alt),t}},"gollum-helpers":{"find-header-line":function(e){var t=e-1,n=window.ace_editor.getSession().getLine(t);return 0<=t&&!/^\s+$/.test(n)?[n,t]:null}}};s.GollumEditor.defineLanguage("rst",s.constructLanguageDefinition(e));var t=[{menuName:"Block Elements",content:[{menuName:"Paragraphs &amp; Breaks",data:"<p>To create a paragraph, simply create a block of text that is not separated by one or more blank lines. Blocks of text separated by one or more blank lines will be parsed as paragraphs.</p>"},{menuName:"Headers",data:"<p>Rest uses overline/underline adornments to indicate headers. To create a header, underline your header text with adornment characters such as the <code>=, ~, +, ^</code> characters. Make sure that the adornment is of the same length (or longer) as the header text. Use a different adornment character to specify a different heading depth.</p>"},{menuName:"Blockquotes",data:"<p>Rest creates blockquotes using indentation. This looks best if you use four spaces per level of indentation.</p>"},{menuName:"Lists",data:"<p>Rest supports both ordered and unordered lists. To create an ordered list, simply prefix each line with a number, or use <code>#</code> for auto enumeration. To create an unordered list, you can prefix each line with <code>*</code>, <code>+</code> or <code>-</code>.</p>"},{menuName:"Code Blocks",data:"<p>Rest wraps code blocks in pre-formatted tags to preserve indentation in your code blocks. To create a code block, indent the entire block by at least 4 spaces or one tab. Rest will strip the extra indentation you&rsquo;ve added to the code block.</p>"},{menuName:"Horizontal Rules",data:"<p>Horizontal rules are created by placing four or more hyphens, asterisks or underscores on a line by themselves.</p>"}]},{menuName:"Span Elements",content:[{menuName:"Links",data:"<p>To create an inline link, create a set of backticks, include the link title first, followed by the url in angled brackets (e.g., <code>`Python <http://www.python.org/>`_</code>).</p>"},{menuName:"Emphasis",data:"<p>Asterisks (<code>*</code>) are treated as emphasis and are wrapped with an <code>&lt;em&gt;</code> tag, which usually displays as italics in most browsers. Double asterisks (<code>**</code>) are treated as bold using the <code>&lt;strong&gt;</code> tag. To create italic or bold text, simply wrap your words in single/double asterisks. For example, <code>**My double emphasis text**</code> becomes <strong>My double emphasis text</strong>, and <code>*My single emphasis text*</code> becomes <em>My single emphasis text</em>.</p>"},{menuName:"Code",data:"<p>To create inline spans of code, simply wrap the code in backticks (<code>`</code>). Rest will turn <code>`myFunction`</code> into <code>myFunction</code>.</p>"},{menuName:"Images",data:'<p>Rest image syntax is two dots, followed by a space, the word "image", two colons, another space, and the url: <code>.. image:: http://image.com/image.png</code>.</p>'}]},{menuName:"Miscellaneous",content:[{menuName:"Escaping",data:"<p>If you want to use a special Rest character in your document (such as displaying literal asterisks), you can escape the character with the backslash (<code>\\</code>). Rest will ignore the character directly after a backslash."}]}];s.GollumEditor.defineHelp("rst",t)}(jQuery),function(e){var t={"function-hr":undefined,"function-code":{replace:"bc. $1$2",whole_line:!0},"function-ol":{line:function(e,t){return"# "+t+"\n"}},"function-blockquote":{replace:"bq. $1$2"},"function-h1":{replace:"h1. $1$2"},"function-h2":{replace:"h2. $1$2"},"function-h3":{replace:"h3. $1$2"},"function-link":{replace:function(e){var t="";return e.text&&e.href&&(t='"'+e.text+'":'+e.href),t}},"function-image":{replace:function(e){var t="";if(e.url){t="!"+e.url;return""!=e.alt&&(t+="("+e.alt+")"),t+="!"}}}};e.GollumEditor.defineLanguage("textile",e.constructLanguageDefinition(t));var n=[{menuName:"Phrase Modifiers",content:[{menuName:"Emphasis / Strength",data:"<p>To place emphasis or strength on inline text, simply place <code>_</code> (underscores) around the text for emphasis or <code>*</code> (asterisks) around the text for strength. In most browsers, <code>_mytext_</code> will appear as italics and <code>*mytext*</code> will appear as bold.</p><p>To force italics or bold, simply double the characters: <code>__mytext__</code> will appear italic and <code>**mytext**</code> will appear as bold text.</p>"},{menuName:"Citations / Editing",data:'<p>To display citations, wrap your text in <code>??</code> (two question marks).</p><p>To display edit marks such as deleted text (strikethrough) or inserted text (underlined text), wrap your text in <code>-</code> (minuses) or <code>+</code> (pluses). For example <code>-mytext-</code> will be rendered as <span style="text-decoration: line-through;">mytext</span> and <code>+mytext+</code> will be rendered as <span style="text-decoration: underline;">mytext</span></p>'},{menuName:"Superscript / Subscript",data:"<p>To display superscript, wrap your text in <code>^</code> (carets). To display subscript, wrap your text in <code>~</code> (tildes).</p>"},{menuName:"Code",data:"<p>To display monospace code, wrap your text in <code>@</code> (at symbol). For example, <code>@mytext@</code> will appear as <code>mytext</code>.</p>"},{menuName:"Acronyms",data:'<p>To create an acronym, suffix the acronym with the definition in parentheses. For example, <code>JS(JavaScript)</code> will be displayed as <abbr title="JavaScript">JS</abbr>.</p>'}]},{menuName:"Block Modifiers",content:[{menuName:"Headings",
24
- data:"<p>To display a heading in Textile, prefix your line of text with <code>hn.</code>, where <code>n</code> equals the heading size you want (1 is largest, 6 is smallest).</p>"},{menuName:"Paragraphs / Quotes",data:"<p>To create a new paragraph, prefix your first line of a block of text with <code>p.</code>.</p><p>To create a blockquote, make sure at least one blank line exists between your text and any surrounding text, and then prefix that block with <code>bq.</code> If you need to extend a blockquote to more than one text block, write <code>bq..</code> (note the two periods) and prefix your next normal paragraph with <code>p.</code></p>"},{menuName:"Code Blocks",data:"<p>Code blocks in textile are simply prefixed like any other block. To create a code block, place the beginning of the block on a separate line and prefix it with <code>bc.</code></p><p>To display a preformatted block, prefix the block with <code>pre.</code></p>"},{menuName:"Lists",data:"<p>To create ordered lists, prefix each line with <code>#</code>. To create unordered lists, prefix each line with <code>*</code>.</p>"}]},{menuName:"Links / Images",content:[{menuName:"Links",data:'<p>To display a link, put the text you want to display in quotes, then a colon (<code>:</code>), then the URL after the colon. For example <code>&quot;GitHub&quot;:http://github.com/</code> will appear as <a href="javascript:void(0);">GitHub</a>.</p>'},{menuName:"Images",data:"<p>To display an image, simply wrap the image&rsquo;s URL in <code>!</code> (exclamation points). If you want to link the image to a URL, you can blend the image and link syntax: place your image URL in the exclamation points and suffix that with a colon and your URL. For example, an image at <code>http://myurl/image.png</code> that should link to <code>http://myurl/</code> should be written as <code>!http://myurl/image.png!:http://myurl/</code>.</p>"}]}];e.GollumEditor.defineHelp("textile",n)}(jQuery);