docks_theme_api 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (237) hide show
  1. checksums.yaml +15 -0
  2. data/.babelrc +4 -0
  3. data/.editorconfig +8 -0
  4. data/.eslintrc +115 -0
  5. data/.gitignore +24 -0
  6. data/.rubocop.yml +20 -0
  7. data/.travis.yml +16 -0
  8. data/Gemfile +4 -0
  9. data/README.md +5 -0
  10. data/Rakefile +3 -0
  11. data/assets/images/icons.svg +63 -0
  12. data/assets/scripts/coffeescript/pattern_library_helpers.coffee +8 -0
  13. data/assets/scripts/javascript/pattern_library_helpers.js +11 -0
  14. data/assets/scripts/pattern_library.js +10380 -0
  15. data/assets/scripts/pattern_library_demo.js +0 -0
  16. data/assets/styles/less/pattern-library-helpers.less +103 -0
  17. data/assets/styles/pattern-library-demo.css +1882 -0
  18. data/assets/styles/pattern-library.css +1882 -0
  19. data/assets/styles/sass/pattern-library-helpers.sass +90 -0
  20. data/assets/styles/scss/pattern-library-helpers.scss +99 -0
  21. data/assets/styles/stylus/pattern-library-helpers.styl +90 -0
  22. data/assets/templates/erb/demo.erb +26 -0
  23. data/assets/templates/erb/layouts/demo.erb +17 -0
  24. data/assets/templates/erb/layouts/pattern.erb +76 -0
  25. data/assets/templates/erb/partials/sidebar.erb +124 -0
  26. data/assets/templates/erb/partials/symbols/class.erb +1 -0
  27. data/assets/templates/erb/partials/symbols/demo.erb +40 -0
  28. data/assets/templates/erb/partials/symbols/factory.erb +70 -0
  29. data/assets/templates/erb/partials/symbols/function.erb +103 -0
  30. data/assets/templates/erb/partials/symbols/mixin.erb +62 -0
  31. data/assets/templates/erb/partials/symbols/variable.erb +59 -0
  32. data/assets/templates/erb/pattern.erb +102 -0
  33. data/assets/templates/haml/demo.haml +14 -0
  34. data/assets/templates/haml/layouts/demo.haml +6 -0
  35. data/assets/templates/haml/layouts/pattern.haml +38 -0
  36. data/assets/templates/haml/partials/sidebar.haml +68 -0
  37. data/assets/templates/haml/partials/symbols/class.haml +1 -0
  38. data/assets/templates/haml/partials/symbols/demo.haml +23 -0
  39. data/assets/templates/haml/partials/symbols/factory.haml +38 -0
  40. data/assets/templates/haml/partials/symbols/function.haml +54 -0
  41. data/assets/templates/haml/partials/symbols/mixin.haml +31 -0
  42. data/assets/templates/haml/partials/symbols/variable.haml +22 -0
  43. data/assets/templates/haml/pattern.haml +54 -0
  44. data/assets/templates/slim/demo.slim +24 -0
  45. data/assets/templates/slim/layouts/demo.slim +5 -0
  46. data/assets/templates/slim/layouts/pattern.slim +48 -0
  47. data/assets/templates/slim/partials/sidebar.slim +112 -0
  48. data/assets/templates/slim/partials/symbols/class.slim +1 -0
  49. data/assets/templates/slim/partials/symbols/demo.slim +30 -0
  50. data/assets/templates/slim/partials/symbols/factory.slim +57 -0
  51. data/assets/templates/slim/partials/symbols/function.slim +81 -0
  52. data/assets/templates/slim/partials/symbols/mixin.slim +45 -0
  53. data/assets/templates/slim/partials/symbols/variable.slim +35 -0
  54. data/assets/templates/slim/pattern.slim +63 -0
  55. data/docks_config.rb +32 -0
  56. data/docks_theme_api.gemspec +37 -0
  57. data/gulpfile.js +88 -0
  58. data/karma.conf.js +6 -0
  59. data/lib/docks_theme_api/components/base_component.rb +99 -0
  60. data/lib/docks_theme_api/components/code_block_component.rb +10 -0
  61. data/lib/docks_theme_api/components/popover_component.rb +15 -0
  62. data/lib/docks_theme_api/components/table_component.rb +34 -0
  63. data/lib/docks_theme_api/components/tablist_component.rb +11 -0
  64. data/lib/docks_theme_api/components.rb +21 -0
  65. data/lib/docks_theme_api/helpers/ui_helper.rb +69 -0
  66. data/lib/docks_theme_api/theme.rb +21 -0
  67. data/lib/docks_theme_api.rb +1 -0
  68. data/package.json +60 -0
  69. data/source/behaviors/filterable/filterable.coffee +353 -0
  70. data/source/behaviors/filterable/filterable.js +0 -0
  71. data/source/behaviors/filterable/filterable.scss +34 -0
  72. data/source/behaviors/filterable/package.json +3 -0
  73. data/source/behaviors/index.js +0 -0
  74. data/source/components/avatar/avatar.erb +20 -0
  75. data/source/components/avatar/avatar.js +142 -0
  76. data/source/components/avatar/avatar.scss +200 -0
  77. data/source/components/avatar/avatar_container.erb +13 -0
  78. data/source/components/avatar/package.json +3 -0
  79. data/source/components/avatar/spec/avatar_spec.js +81 -0
  80. data/source/components/badge/badge.scss +158 -0
  81. data/source/components/button/button.scss +213 -0
  82. data/source/components/card/card.scss +32 -0
  83. data/source/components/code_block/code-block.scss +353 -0
  84. data/source/components/code_block/code_block.erb +95 -0
  85. data/source/components/code_block/code_block.js +444 -0
  86. data/source/components/code_block/package.json +3 -0
  87. data/source/components/code_block/spec/code_block_spec.js +10 -0
  88. data/source/components/demo/demo.js +244 -0
  89. data/source/components/demo/demo.scss +90 -0
  90. data/source/components/demo/package.json +3 -0
  91. data/source/components/exploded/exploded.erb +25 -0
  92. data/source/components/exploded/exploded.js +694 -0
  93. data/source/components/exploded/exploded.scss +166 -0
  94. data/source/components/exploded/package.json +3 -0
  95. data/source/components/field/field.js +24 -0
  96. data/source/components/field/field.scss +101 -0
  97. data/source/components/field/package.json +3 -0
  98. data/source/components/header/header.scss +33 -0
  99. data/source/components/iframe/iframe.erb +12 -0
  100. data/source/components/iframe/iframe.js +381 -0
  101. data/source/components/iframe/package.json +3 -0
  102. data/source/components/index.js +37 -0
  103. data/source/components/inline_group/inline-group.scss +14 -0
  104. data/source/components/internal_link/internal_link.js +49 -0
  105. data/source/components/internal_link/package.json +3 -0
  106. data/source/components/list/list.scss +230 -0
  107. data/source/components/modal/modal.coffee +84 -0
  108. data/source/components/modal/modal.erb +19 -0
  109. data/source/components/modal/modal.js +0 -0
  110. data/source/components/modal/modal.scss +57 -0
  111. data/source/components/modal/package.json +3 -0
  112. data/source/components/notice/notice.scss +48 -0
  113. data/source/components/popover/package.json +3 -0
  114. data/source/components/popover/popover.coffee +562 -0
  115. data/source/components/popover/popover.erb +21 -0
  116. data/source/components/popover/popover.js +0 -0
  117. data/source/components/popover/popover.scss +139 -0
  118. data/source/components/range/range.scss +78 -0
  119. data/source/components/resizable/package.json +3 -0
  120. data/source/components/resizable/resizable.erb +30 -0
  121. data/source/components/resizable/resizable.js +250 -0
  122. data/source/components/resizable/resizable.scss +245 -0
  123. data/source/components/resizable/size_buttons.js +249 -0
  124. data/source/components/scroll_container/package.json +3 -0
  125. data/source/components/scroll_container/scroll-container.scss +4 -0
  126. data/source/components/scroll_container/scroll_container.js +24 -0
  127. data/source/components/section/section.scss +99 -0
  128. data/source/components/select/package.json +3 -0
  129. data/source/components/select/select.erb +21 -0
  130. data/source/components/select/select.js +35 -0
  131. data/source/components/select/select.scss +163 -0
  132. data/source/components/table/package.json +3 -0
  133. data/source/components/table/table.erb +16 -0
  134. data/source/components/table/table.js +351 -0
  135. data/source/components/table/table.scss +236 -0
  136. data/source/components/tablist/package.json +3 -0
  137. data/source/components/tablist/tablist.erb +13 -0
  138. data/source/components/tablist/tablist.js +246 -0
  139. data/source/components/tablist/tablist.scss +191 -0
  140. data/source/components/tablist/tablist_panel.erb +14 -0
  141. data/source/components/tablist/tablist_tab.erb +20 -0
  142. data/source/components/toggle/package.json +3 -0
  143. data/source/components/toggle/toggle.erb +11 -0
  144. data/source/components/toggle/toggle.js +211 -0
  145. data/source/components/toggle/toggle_container.erb +30 -0
  146. data/source/components/vertical_spacer/vertical-spacer.scss +3 -0
  147. data/source/components/vertical_stack/vertical-stack.scss +19 -0
  148. data/source/components/xray/package.json +3 -0
  149. data/source/components/xray/xray.erb +50 -0
  150. data/source/components/xray/xray.js +123 -0
  151. data/source/components/xray/xray.scss +79 -0
  152. data/source/foundation/app/app.js +15 -0
  153. data/source/foundation/app/package.json +3 -0
  154. data/source/pattern-library-demo.scss +13 -0
  155. data/source/pattern-library.scss +13 -0
  156. data/source/pattern_library.js +8 -0
  157. data/source/pattern_library_demo.js +8 -0
  158. data/source/structures/index.js +11 -0
  159. data/source/structures/sidebar/package.json +3 -0
  160. data/source/structures/sidebar/sidebar.js +69 -0
  161. data/source/structures/sidebar/sidebar.scss +79 -0
  162. data/source/utilities/builder/builder.js +138 -0
  163. data/source/utilities/builder/package.json +3 -0
  164. data/source/utilities/client/client.js +7 -0
  165. data/source/utilities/client/package.json +3 -0
  166. data/source/utilities/colors/colors.scss +112 -0
  167. data/source/utilities/defaults/defaults.scss +38 -0
  168. data/source/utilities/dom_cache/dom_cache.js +24 -0
  169. data/source/utilities/dom_cache/package.json +3 -0
  170. data/source/utilities/events/events.js +25 -0
  171. data/source/utilities/events/package.json +3 -0
  172. data/source/utilities/font_sizes/font-sizes.scss +85 -0
  173. data/source/utilities/foundation/a11y.scss +10 -0
  174. data/source/utilities/foundation/base.scss +29 -0
  175. data/source/utilities/foundation/icon.scss +114 -0
  176. data/source/utilities/foundation/layout.scss +67 -0
  177. data/source/utilities/foundation/page.scss +39 -0
  178. data/source/utilities/foundation/type.scss +208 -0
  179. data/source/utilities/functions/functions.scss +127 -0
  180. data/source/utilities/keycodes/keycodes.js +23 -0
  181. data/source/utilities/keycodes/package.json +3 -0
  182. data/source/utilities/markup/markup.js +90 -0
  183. data/source/utilities/markup/package.json +3 -0
  184. data/source/utilities/media/media.scss +172 -0
  185. data/source/utilities/mixins/mixins.scss +89 -0
  186. data/source/utilities/naming_convention/naming_convention.js +3 -0
  187. data/source/utilities/naming_convention/package.json +3 -0
  188. data/source/utilities/numbers/numbers.js +14 -0
  189. data/source/utilities/numbers/package.json +3 -0
  190. data/source/utilities/painting/package.json +3 -0
  191. data/source/utilities/painting/painting.js +7 -0
  192. data/source/utilities/pattern/package.json +3 -0
  193. data/source/utilities/pattern/pattern.js +50 -0
  194. data/source/utilities/query_string/package.json +3 -0
  195. data/source/utilities/query_string/query_string.js +24 -0
  196. data/source/utilities/template/package.json +3 -0
  197. data/source/utilities/template/template.js +10 -0
  198. data/source/utilities/text_range/package.json +3 -0
  199. data/source/utilities/text_range/text_range.js +30 -0
  200. data/source/utilities/ui_events/package.json +3 -0
  201. data/source/utilities/ui_events/ui_events.js +85 -0
  202. data/source/utilities/variables/variables.scss +18 -0
  203. data/source/utilities/z_indexes/z-indexes.scss +88 -0
  204. data/source/vendor/array_includes.js +28 -0
  205. data/source/vendor/highlight.js +1142 -0
  206. data/source/vendor/index.js +1 -0
  207. data/source/vendor/matrix.js +399 -0
  208. data/source/vendor/query_string.js +66 -0
  209. data/spec/assets/.eslintrc +9 -0
  210. data/spec/assets/spec_fixture.js +33 -0
  211. data/spec/assets/spec_helper.js +19 -0
  212. data/spec/lib/components/base_component_spec.rb +156 -0
  213. data/spec/lib/components_spec.rb +30 -0
  214. data/spec/lib/helpers/ui_helper_spec.rb +62 -0
  215. data/spec/lib/theme_spec.rb +25 -0
  216. data/spec/spec_helper.rb +15 -0
  217. data/tasks/gulp/.eslintrc +6 -0
  218. data/tasks/gulp/browser_sync.js +8 -0
  219. data/tasks/gulp/code_quality/scripts.js +10 -0
  220. data/tasks/gulp/config/index.js +116 -0
  221. data/tasks/gulp/minify/scripts.js +13 -0
  222. data/tasks/gulp/minify/styles.js +13 -0
  223. data/tasks/gulp/pattern_library/index.js +5 -0
  224. data/tasks/gulp/pattern_library/scripts.js +10 -0
  225. data/tasks/gulp/pattern_library/styles.js +10 -0
  226. data/tasks/gulp/scripts.js +8 -0
  227. data/tasks/gulp/spec/scripts.js +11 -0
  228. data/tasks/gulp/styles.js +17 -0
  229. data/tasks/gulp/utilities/babel/relative_require.js +22 -0
  230. data/tasks/gulp/utilities/babel/spec_helper.js +20 -0
  231. data/tasks/gulp/utilities/browserify_bundler.js +22 -0
  232. data/tasks/gulp/utilities/handle_errors.js +13 -0
  233. data/tasks/gulp/watch.js +9 -0
  234. data/tasks/rake/rspec.rake +7 -0
  235. data/tasks/rake/rubocop.rake +8 -0
  236. data/tasks/rake/templates.rake +50 -0
  237. metadata +470 -0
@@ -0,0 +1,1142 @@
1
+ var hljs;
2
+
3
+ ! function(e) {
4
+ hljs = e({});
5
+ }(function(e) {
6
+ function n(e) {
7
+ return e.replace(/&/gm, "&amp;").replace(/</gm, "&lt;").replace(/>/gm, "&gt;")
8
+ }
9
+
10
+ function t(e) {
11
+ return e.nodeName.toLowerCase()
12
+ }
13
+
14
+ function r(e, n) {
15
+ var t = e && e.exec(n);
16
+ return t && 0 == t.index
17
+ }
18
+
19
+ function a(e) {
20
+ var n = (e.className + " " + (e.parentNode ? e.parentNode.className : "")).split(/\s+/);
21
+ return n = n.map(function(e) {
22
+ return e.replace(/^lang(uage)?-/, "")
23
+ }), n.filter(function(e) {
24
+ return N(e) || /no(-?)highlight/.test(e)
25
+ })[0]
26
+ }
27
+
28
+ function o(e, n) {
29
+ var t = {};
30
+ for (var r in e) t[r] = e[r];
31
+ if (n)
32
+ for (var r in n) t[r] = n[r];
33
+ return t
34
+ }
35
+
36
+ function i(e) {
37
+ var n = [];
38
+ return function r(e, a) {
39
+ for (var o = e.firstChild; o; o = o.nextSibling) 3 == o.nodeType ? a += o.nodeValue.length : 1 == o.nodeType && (n.push({
40
+ event: "start",
41
+ offset: a,
42
+ node: o
43
+ }), a = r(o, a), t(o).match(/br|hr|img|input/) || n.push({
44
+ event: "stop",
45
+ offset: a,
46
+ node: o
47
+ }));
48
+ return a
49
+ }(e, 0), n
50
+ }
51
+
52
+ function c(e, r, a) {
53
+ function o() {
54
+ return e.length && r.length ? e[0].offset != r[0].offset ? e[0].offset < r[0].offset ? e : r : "start" == r[0].event ? e : r : e.length ? e : r
55
+ }
56
+
57
+ function i(e) {
58
+ function r(e) {
59
+ return " " + e.nodeName + '="' + n(e.value) + '"'
60
+ }
61
+ l += "<" + t(e) + Array.prototype.map.call(e.attributes, r).join("") + ">"
62
+ }
63
+
64
+ function c(e) {
65
+ l += "</" + t(e) + ">"
66
+ }
67
+
68
+ function u(e) {
69
+ ("start" == e.event ? i : c)(e.node)
70
+ }
71
+ for (var s = 0, l = "", f = []; e.length || r.length;) {
72
+ var g = o();
73
+ if (l += n(a.substr(s, g[0].offset - s)), s = g[0].offset, g == e) {
74
+ f.reverse().forEach(c);
75
+ do u(g.splice(0, 1)[0]), g = o(); while (g == e && g.length && g[0].offset == s);
76
+ f.reverse().forEach(i)
77
+ } else "start" == g[0].event ? f.push(g[0].node) : f.pop(), u(g.splice(0, 1)[0])
78
+ }
79
+ return l + n(a.substr(s))
80
+ }
81
+
82
+ function u(e) {
83
+ function n(e) {
84
+ return e && e.source || e
85
+ }
86
+
87
+ function t(t, r) {
88
+ return RegExp(n(t), "m" + (e.cI ? "i" : "") + (r ? "g" : ""))
89
+ }
90
+
91
+ function r(a, i) {
92
+ if (!a.compiled) {
93
+ if (a.compiled = !0, a.k = a.k || a.bK, a.k) {
94
+ var c = {},
95
+ u = function(n, t) {
96
+ e.cI && (t = t.toLowerCase()), t.split(" ").forEach(function(e) {
97
+ var t = e.split("|");
98
+ c[t[0]] = [n, t[1] ? Number(t[1]) : 1]
99
+ })
100
+ };
101
+ "string" == typeof a.k ? u("keyword", a.k) : Object.keys(a.k).forEach(function(e) {
102
+ u(e, a.k[e])
103
+ }), a.k = c
104
+ }
105
+ a.lR = t(a.l || /\b[A-Za-z0-9_]+\b/, !0), i && (a.bK && (a.b = "\\b(" + a.bK.split(" ").join("|") + ")\\b"), a.b || (a.b = /\B|\b/), a.bR = t(a.b), a.e || a.eW || (a.e = /\B|\b/), a.e && (a.eR = t(a.e)), a.tE = n(a.e) || "", a.eW && i.tE && (a.tE += (a.e ? "|" : "") + i.tE)), a.i && (a.iR = t(a.i)), void 0 === a.r && (a.r = 1), a.c || (a.c = []);
106
+ var s = [];
107
+ a.c.forEach(function(e) {
108
+ e.v ? e.v.forEach(function(n) {
109
+ s.push(o(e, n))
110
+ }) : s.push("self" == e ? a : e)
111
+ }), a.c = s, a.c.forEach(function(e) {
112
+ r(e, a)
113
+ }), a.starts && r(a.starts, i);
114
+ var l = a.c.map(function(e) {
115
+ return e.bK ? "\\.?(" + e.b + ")\\.?" : e.b
116
+ }).concat([a.tE, a.i]).map(n).filter(Boolean);
117
+ a.t = l.length ? t(l.join("|"), !0) : {
118
+ exec: function() {
119
+ return null
120
+ }
121
+ }
122
+ }
123
+ }
124
+ r(e)
125
+ }
126
+
127
+ function s(e, t, a, o) {
128
+ function i(e, n) {
129
+ for (var t = 0; t < n.c.length; t++)
130
+ if (r(n.c[t].bR, e)) return n.c[t]
131
+ }
132
+
133
+ function c(e, n) {
134
+ return r(e.eR, n) ? e : e.eW ? c(e.parent, n) : void 0
135
+ }
136
+
137
+ function f(e, n) {
138
+ return !a && r(n.iR, e)
139
+ }
140
+
141
+ function g(e, n) {
142
+ var t = x.cI ? n[0].toLowerCase() : n[0];
143
+ return e.k.hasOwnProperty(t) && e.k[t]
144
+ }
145
+
146
+ function p(e, n, t, r) {
147
+ var a = r ? "" : E.classPrefix,
148
+ o = '<span class="' + a,
149
+ i = t ? "" : "</span>";
150
+ return o += e + '">', o + n + i
151
+ }
152
+
153
+ function d() {
154
+ if (!w.k) return n(y);
155
+ var e = "",
156
+ t = 0;
157
+ w.lR.lastIndex = 0;
158
+ for (var r = w.lR.exec(y); r;) {
159
+ e += n(y.substr(t, r.index - t));
160
+ var a = g(w, r);
161
+ a ? (B += a[1], e += p(a[0], n(r[0]))) : e += n(r[0]), t = w.lR.lastIndex, r = w.lR.exec(y)
162
+ }
163
+ return e + n(y.substr(t))
164
+ }
165
+
166
+ function h() {
167
+ if (w.sL && !R[w.sL]) return n(y);
168
+ var e = w.sL ? s(w.sL, y, !0, L[w.sL]) : l(y);
169
+ return w.r > 0 && (B += e.r), "continuous" == w.subLanguageMode && (L[w.sL] = e.top), p(e.language, e.value, !1, !0)
170
+ }
171
+
172
+ function v() {
173
+ return void 0 !== w.sL ? h() : d()
174
+ }
175
+
176
+ function b(e, t) {
177
+ var r = e.cN ? p(e.cN, "", !0) : "";
178
+ e.rB ? (M += r, y = "") : e.eB ? (M += n(t) + r, y = "") : (M += r, y = t), w = Object.create(e, {
179
+ parent: {
180
+ value: w
181
+ }
182
+ })
183
+ }
184
+
185
+ function m(e, t) {
186
+ if (y += e, void 0 === t) return M += v(), 0;
187
+ var r = i(t, w);
188
+ if (r) return M += v(), b(r, t), r.rB ? 0 : t.length;
189
+ var a = c(w, t);
190
+ if (a) {
191
+ var o = w;
192
+ o.rE || o.eE || (y += t), M += v();
193
+ do w.cN && (M += "</span>"), B += w.r, w = w.parent; while (w != a.parent);
194
+ return o.eE && (M += n(t)), y = "", a.starts && b(a.starts, ""), o.rE ? 0 : t.length
195
+ }
196
+ if (f(t, w)) throw new Error('Illegal lexeme "' + t + '" for mode "' + (w.cN || "<unnamed>") + '"');
197
+ return y += t, t.length || 1
198
+ }
199
+ var x = N(e);
200
+ if (!x) throw new Error('Unknown language: "' + e + '"');
201
+ u(x);
202
+ for (var w = o || x, L = {}, M = "", k = w; k != x; k = k.parent) k.cN && (M = p(k.cN, "", !0) + M);
203
+ var y = "",
204
+ B = 0;
205
+ try {
206
+ for (var C, j, I = 0;;) {
207
+ if (w.t.lastIndex = I, C = w.t.exec(t), !C) break;
208
+ j = m(t.substr(I, C.index - I), C[0]), I = C.index + j
209
+ }
210
+ m(t.substr(I));
211
+ for (var k = w; k.parent; k = k.parent) k.cN && (M += "</span>");
212
+ return {
213
+ r: B,
214
+ value: M,
215
+ language: e,
216
+ top: w
217
+ }
218
+ } catch (A) {
219
+ if (-1 != A.message.indexOf("Illegal")) return {
220
+ r: 0,
221
+ value: n(t)
222
+ };
223
+ throw A
224
+ }
225
+ }
226
+
227
+ function l(e, t) {
228
+ t = t || E.languages || Object.keys(R);
229
+ var r = {
230
+ r: 0,
231
+ value: n(e)
232
+ },
233
+ a = r;
234
+ return t.forEach(function(n) {
235
+ if (N(n)) {
236
+ var t = s(n, e, !1);
237
+ t.language = n, t.r > a.r && (a = t), t.r > r.r && (a = r, r = t)
238
+ }
239
+ }), a.language && (r.second_best = a), r
240
+ }
241
+
242
+ function f(e) {
243
+ return E.tabReplace && (e = e.replace(/^((<[^>]+>|\t)+)/gm, function(e, n) {
244
+ return n.replace(/\t/g, E.tabReplace)
245
+ })), E.useBR && (e = e.replace(/\n/g, "<br>")), e
246
+ }
247
+
248
+ function g(e, n, t) {
249
+ var r = n ? x[n] : t,
250
+ a = [e.trim()];
251
+ return e.match(/(\s|^)hljs(\s|$)/) || a.push("hljs"), r && a.push(r), a.join(" ").trim()
252
+ }
253
+
254
+ function p(e) {
255
+ var n = a(e);
256
+ if (!/no(-?)highlight/.test(n)) {
257
+ var t;
258
+ E.useBR ? (t = document.createElementNS("http://www.w3.org/1999/xhtml", "div"), t.innerHTML = e.innerHTML.replace(/\n/g, "").replace(/<br[ \/]*>/g, "\n")) : t = e;
259
+ var r = t.textContent,
260
+ o = n ? s(n, r, !0) : l(r),
261
+ u = i(t);
262
+ if (u.length) {
263
+ var p = document.createElementNS("http://www.w3.org/1999/xhtml", "div");
264
+ p.innerHTML = o.value, o.value = c(u, i(p), r)
265
+ }
266
+ o.value = f(o.value), e.innerHTML = o.value, e.className = g(e.className, n, o.language), e.result = {
267
+ language: o.language,
268
+ re: o.r
269
+ }, o.second_best && (e.second_best = {
270
+ language: o.second_best.language,
271
+ re: o.second_best.r
272
+ })
273
+ }
274
+ }
275
+
276
+ function d(e) {
277
+ E = o(E, e)
278
+ }
279
+
280
+ function h() {
281
+ if (!h.called) {
282
+ h.called = !0;
283
+ var e = document.querySelectorAll("pre code");
284
+ Array.prototype.forEach.call(e, p)
285
+ }
286
+ }
287
+
288
+ function v() {
289
+ addEventListener("DOMContentLoaded", h, !1), addEventListener("load", h, !1)
290
+ }
291
+
292
+ function b(n, t) {
293
+ var r = R[n] = t(e);
294
+ r.aliases && r.aliases.forEach(function(e) {
295
+ x[e] = n
296
+ })
297
+ }
298
+
299
+ function m() {
300
+ return Object.keys(R)
301
+ }
302
+
303
+ function N(e) {
304
+ return R[e] || R[x[e]]
305
+ }
306
+ var E = {
307
+ classPrefix: "hljs-",
308
+ tabReplace: null,
309
+ useBR: !1,
310
+ languages: void 0
311
+ },
312
+ R = {},
313
+ x = {};
314
+ return e.highlight = s, e.highlightAuto = l, e.fixMarkup = f, e.highlightBlock = p, e.configure = d, e.initHighlighting = h, e.initHighlightingOnLoad = v, e.registerLanguage = b, e.listLanguages = m, e.getLanguage = N, e.inherit = o, e.IR = "[a-zA-Z][a-zA-Z0-9_]*", e.UIR = "[a-zA-Z_][a-zA-Z0-9_]*", e.NR = "\\b\\d+(\\.\\d+)?", e.CNR = "(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)", e.BNR = "\\b(0b[01]+)", e.RSR = "!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~", e.BE = {
315
+ b: "\\\\[\\s\\S]",
316
+ r: 0
317
+ }, e.ASM = {
318
+ cN: "string",
319
+ b: "'",
320
+ e: "'",
321
+ i: "\\n",
322
+ c: [e.BE]
323
+ }, e.QSM = {
324
+ cN: "string",
325
+ b: '"',
326
+ e: '"',
327
+ i: "\\n",
328
+ c: [e.BE]
329
+ }, e.PWM = {
330
+ b: /\b(a|an|the|are|I|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such)\b/
331
+ }, e.CLCM = {
332
+ cN: "comment",
333
+ b: "//",
334
+ e: "$",
335
+ c: [e.PWM]
336
+ }, e.CBCM = {
337
+ cN: "comment",
338
+ b: "/\\*",
339
+ e: "\\*/",
340
+ c: [e.PWM]
341
+ }, e.HCM = {
342
+ cN: "comment",
343
+ b: "#",
344
+ e: "$",
345
+ c: [e.PWM]
346
+ }, e.NM = {
347
+ cN: "number",
348
+ b: e.NR,
349
+ r: 0
350
+ }, e.CNM = {
351
+ cN: "number",
352
+ b: e.CNR,
353
+ r: 0
354
+ }, e.BNM = {
355
+ cN: "number",
356
+ b: e.BNR,
357
+ r: 0
358
+ }, e.CSSNM = {
359
+ cN: "number",
360
+ b: e.NR + "(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",
361
+ r: 0
362
+ }, e.RM = {
363
+ cN: "regexp",
364
+ b: /\//,
365
+ e: /\/[gimuy]*/,
366
+ i: /\n/,
367
+ c: [e.BE, {
368
+ b: /\[/,
369
+ e: /\]/,
370
+ r: 0,
371
+ c: [e.BE]
372
+ }]
373
+ }, e.TM = {
374
+ cN: "title",
375
+ b: e.IR,
376
+ r: 0
377
+ }, e.UTM = {
378
+ cN: "title",
379
+ b: e.UIR,
380
+ r: 0
381
+ }, e
382
+ });
383
+
384
+ hljs.registerLanguage("coffeescript", function(e) {
385
+ var c = {
386
+ keyword: "in if for while finally new do return else break catch instanceof throw try this switch continue typeof delete debugger super then unless until loop of by when and or is isnt not",
387
+ literal: "true false null undefined yes no on off",
388
+ reserved: "case default function var void with const let enum export import native __hasProp __extends __slice __bind __indexOf",
389
+ built_in: "npm require console print module global window document"
390
+ },
391
+ n = "[A-Za-z$_][0-9A-Za-z$_]*",
392
+ t = {
393
+ cN: "subst",
394
+ b: /#\{/,
395
+ e: /}/,
396
+ k: c
397
+ },
398
+ r = [e.BNM, e.inherit(e.CNM, {
399
+ starts: {
400
+ e: "(\\s*/)?",
401
+ r: 0
402
+ }
403
+ }), {
404
+ cN: "string",
405
+ v: [{
406
+ b: /'''/,
407
+ e: /'''/,
408
+ c: [e.BE]
409
+ }, {
410
+ b: /'/,
411
+ e: /'/,
412
+ c: [e.BE]
413
+ }, {
414
+ b: /"""/,
415
+ e: /"""/,
416
+ c: [e.BE, t]
417
+ }, {
418
+ b: /"/,
419
+ e: /"/,
420
+ c: [e.BE, t]
421
+ }]
422
+ }, {
423
+ cN: "regexp",
424
+ v: [{
425
+ b: "///",
426
+ e: "///",
427
+ c: [t, e.HCM]
428
+ }, {
429
+ b: "//[gim]*",
430
+ r: 0
431
+ }, {
432
+ b: /\/(?![ *])(\\\/|.)*?\/[gim]*(?=\W|$)/
433
+ }]
434
+ }, {
435
+ cN: "property",
436
+ b: "@" + n
437
+ }, {
438
+ b: "`",
439
+ e: "`",
440
+ eB: !0,
441
+ eE: !0,
442
+ sL: "javascript"
443
+ }];
444
+ t.c = r;
445
+ var i = e.inherit(e.TM, {
446
+ b: n
447
+ }),
448
+ s = "(\\(.*\\))?\\s*\\B[-=]>",
449
+ o = {
450
+ cN: "params",
451
+ b: "\\([^\\(]",
452
+ rB: !0,
453
+ c: [{
454
+ b: /\(/,
455
+ e: /\)/,
456
+ k: c,
457
+ c: ["self"].concat(r)
458
+ }]
459
+ };
460
+ return {
461
+ aliases: ["coffee", "cson", "iced"],
462
+ k: c,
463
+ i: /\/\*/,
464
+ c: r.concat([{
465
+ cN: "comment",
466
+ b: "###",
467
+ e: "###",
468
+ c: [e.PWM]
469
+ }, e.HCM, {
470
+ cN: "function",
471
+ b: "^\\s*" + n + "\\s*=\\s*" + s,
472
+ e: "[-=]>",
473
+ rB: !0,
474
+ c: [i, o]
475
+ }, {
476
+ b: /[:\(,=]\s*/,
477
+ r: 0,
478
+ c: [{
479
+ cN: "function",
480
+ b: s,
481
+ e: "[-=]>",
482
+ rB: !0,
483
+ c: [o]
484
+ }]
485
+ }, {
486
+ cN: "class",
487
+ bK: "class",
488
+ e: "$",
489
+ i: /[:="\[\]]/,
490
+ c: [{
491
+ bK: "extends",
492
+ eW: !0,
493
+ i: /[:="\[\]]/,
494
+ c: [i]
495
+ }, i]
496
+ }, {
497
+ cN: "attribute",
498
+ b: n + ":",
499
+ e: ":",
500
+ rB: !0,
501
+ rE: !0,
502
+ r: 0
503
+ }])
504
+ }
505
+ });
506
+ hljs.registerLanguage("xml", function() {
507
+ var t = "[A-Za-z0-9\\._:-]+",
508
+ e = {
509
+ b: /<\?(php)?(?!\w)/,
510
+ e: /\?>/,
511
+ sL: "php",
512
+ subLanguageMode: "continuous"
513
+ },
514
+ c = {
515
+ eW: !0,
516
+ i: /</,
517
+ r: 0,
518
+ c: [e, {
519
+ cN: "attribute",
520
+ b: t,
521
+ r: 0
522
+ }, {
523
+ b: "=",
524
+ r: 0,
525
+ c: [{
526
+ cN: "value",
527
+ c: [e],
528
+ v: [{
529
+ b: /"/,
530
+ e: /"/
531
+ }, {
532
+ b: /'/,
533
+ e: /'/
534
+ }, {
535
+ b: /[^\s\/>]+/
536
+ }]
537
+ }]
538
+ }]
539
+ };
540
+ return {
541
+ aliases: ["html", "xhtml", "rss", "atom", "xsl", "plist"],
542
+ cI: !0,
543
+ c: [{
544
+ cN: "doctype",
545
+ b: "<!DOCTYPE",
546
+ e: ">",
547
+ r: 10,
548
+ c: [{
549
+ b: "\\[",
550
+ e: "\\]"
551
+ }]
552
+ }, {
553
+ cN: "comment",
554
+ b: "<!--",
555
+ e: "-->",
556
+ r: 10
557
+ }, {
558
+ cN: "cdata",
559
+ b: "<\\!\\[CDATA\\[",
560
+ e: "\\]\\]>",
561
+ r: 10
562
+ }, {
563
+ cN: "tag",
564
+ b: "<style(?=\\s|>|$)",
565
+ e: ">",
566
+ k: {
567
+ title: "style"
568
+ },
569
+ c: [c],
570
+ starts: {
571
+ e: "</style>",
572
+ rE: !0,
573
+ sL: "css"
574
+ }
575
+ }, {
576
+ cN: "tag",
577
+ b: "<script(?=\\s|>|$)",
578
+ e: ">",
579
+ k: {
580
+ title: "script"
581
+ },
582
+ c: [c],
583
+ starts: {
584
+ e: "</script>",
585
+ rE: !0,
586
+ sL: "javascript"
587
+ }
588
+ }, e, {
589
+ cN: "pi",
590
+ b: /<\?\w+/,
591
+ e: /\?>/,
592
+ r: 10
593
+ }, {
594
+ cN: "tag",
595
+ b: "</?",
596
+ e: "/?>",
597
+ c: [{
598
+ cN: "title",
599
+ b: /[^ \/><\n\t]+/,
600
+ r: 0
601
+ }, c]
602
+ }]
603
+ }
604
+ });
605
+ hljs.registerLanguage("haml", function() {
606
+ return {
607
+ cI: !0,
608
+ c: [{
609
+ cN: "doctype",
610
+ b: "^!!!( (5|1\\.1|Strict|Frameset|Basic|Mobile|RDFa|XML\\b.*))?$",
611
+ r: 10
612
+ }, {
613
+ cN: "comment",
614
+ b: "^\\s*(!=#|=#|-#|/).*$",
615
+ r: 0
616
+ }, {
617
+ b: "^\\s*(-|=|!=)(?!#)",
618
+ starts: {
619
+ e: "\\n",
620
+ sL: "ruby"
621
+ }
622
+ }, {
623
+ cN: "tag",
624
+ b: "^\\s*%",
625
+ c: [{
626
+ cN: "title",
627
+ b: "\\w+"
628
+ }, {
629
+ cN: "value",
630
+ b: "[#\\.]\\w+"
631
+ }, {
632
+ b: "{\\s*",
633
+ e: "\\s*}",
634
+ eE: !0,
635
+ c: [{
636
+ b: ":\\w+\\s*=>",
637
+ e: ",\\s+",
638
+ rB: !0,
639
+ eW: !0,
640
+ c: [{
641
+ cN: "symbol",
642
+ b: ":\\w+"
643
+ }, {
644
+ cN: "string",
645
+ b: '"',
646
+ e: '"'
647
+ }, {
648
+ cN: "string",
649
+ b: "'",
650
+ e: "'"
651
+ }, {
652
+ b: "\\w+",
653
+ r: 0
654
+ }]
655
+ }]
656
+ }, {
657
+ b: "\\(\\s*",
658
+ e: "\\s*\\)",
659
+ eE: !0,
660
+ c: [{
661
+ b: "\\w+\\s*=",
662
+ e: "\\s+",
663
+ rB: !0,
664
+ eW: !0,
665
+ c: [{
666
+ cN: "attribute",
667
+ b: "\\w+",
668
+ r: 0
669
+ }, {
670
+ cN: "string",
671
+ b: '"',
672
+ e: '"'
673
+ }, {
674
+ cN: "string",
675
+ b: "'",
676
+ e: "'"
677
+ }, {
678
+ b: "\\w+",
679
+ r: 0
680
+ }]
681
+ }]
682
+ }]
683
+ }, {
684
+ cN: "bullet",
685
+ b: "^\\s*[=~]\\s*",
686
+ r: 0
687
+ }, {
688
+ b: "#{",
689
+ starts: {
690
+ e: "}",
691
+ sL: "ruby"
692
+ }
693
+ }]
694
+ }
695
+ });
696
+ hljs.registerLanguage("ruby", function(e) {
697
+ var b = "[a-zA-Z_]\\w*[!?=]?|[-+~]\\@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?",
698
+ r = "and false then defined module in return redo if BEGIN retry end for true self when next until do begin unless END rescue nil else break undef not super class case require yield alias while ensure elsif or include attr_reader attr_writer attr_accessor",
699
+ c = {
700
+ cN: "yardoctag",
701
+ b: "@[A-Za-z]+"
702
+ },
703
+ a = {
704
+ cN: "value",
705
+ b: "#<",
706
+ e: ">"
707
+ },
708
+ s = {
709
+ cN: "comment",
710
+ v: [{
711
+ b: "#",
712
+ e: "$",
713
+ c: [c]
714
+ }, {
715
+ b: "^\\=begin",
716
+ e: "^\\=end",
717
+ c: [c],
718
+ r: 10
719
+ }, {
720
+ b: "^__END__",
721
+ e: "\\n$"
722
+ }]
723
+ },
724
+ n = {
725
+ cN: "subst",
726
+ b: "#\\{",
727
+ e: "}",
728
+ k: r
729
+ },
730
+ t = {
731
+ cN: "string",
732
+ c: [e.BE, n],
733
+ v: [{
734
+ b: /'/,
735
+ e: /'/
736
+ }, {
737
+ b: /"/,
738
+ e: /"/
739
+ }, {
740
+ b: /`/,
741
+ e: /`/
742
+ }, {
743
+ b: "%[qQwWx]?\\(",
744
+ e: "\\)"
745
+ }, {
746
+ b: "%[qQwWx]?\\[",
747
+ e: "\\]"
748
+ }, {
749
+ b: "%[qQwWx]?{",
750
+ e: "}"
751
+ }, {
752
+ b: "%[qQwWx]?<",
753
+ e: ">"
754
+ }, {
755
+ b: "%[qQwWx]?/",
756
+ e: "/"
757
+ }, {
758
+ b: "%[qQwWx]?%",
759
+ e: "%"
760
+ }, {
761
+ b: "%[qQwWx]?-",
762
+ e: "-"
763
+ }, {
764
+ b: "%[qQwWx]?\\|",
765
+ e: "\\|"
766
+ }, {
767
+ b: /\B\?(\\\d{1,3}|\\x[A-Fa-f0-9]{1,2}|\\u[A-Fa-f0-9]{4}|\\?\S)\b/
768
+ }]
769
+ },
770
+ i = {
771
+ cN: "params",
772
+ b: "\\(",
773
+ e: "\\)",
774
+ k: r
775
+ },
776
+ d = [t, a, s, {
777
+ cN: "class",
778
+ bK: "class module",
779
+ e: "$|;",
780
+ i: /=/,
781
+ c: [e.inherit(e.TM, {
782
+ b: "[A-Za-z_]\\w*(::\\w+)*(\\?|\\!)?"
783
+ }), {
784
+ cN: "inheritance",
785
+ b: "<\\s*",
786
+ c: [{
787
+ cN: "parent",
788
+ b: "(" + e.IR + "::)?" + e.IR
789
+ }]
790
+ }, s]
791
+ }, {
792
+ cN: "function",
793
+ bK: "def",
794
+ e: " |$|;",
795
+ r: 0,
796
+ c: [e.inherit(e.TM, {
797
+ b: b
798
+ }), i, s]
799
+ }, {
800
+ cN: "constant",
801
+ b: "(::)?(\\b[A-Z]\\w*(::)?)+",
802
+ r: 0
803
+ }, {
804
+ cN: "symbol",
805
+ b: e.UIR + "(\\!|\\?)?:",
806
+ r: 0
807
+ }, {
808
+ cN: "symbol",
809
+ b: ":",
810
+ c: [t, {
811
+ b: b
812
+ }],
813
+ r: 0
814
+ }, {
815
+ cN: "number",
816
+ b: "(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b",
817
+ r: 0
818
+ }, {
819
+ cN: "variable",
820
+ b: "(\\$\\W)|((\\$|\\@\\@?)(\\w+))"
821
+ }, {
822
+ b: "(" + e.RSR + ")\\s*",
823
+ c: [a, s, {
824
+ cN: "regexp",
825
+ c: [e.BE, n],
826
+ i: /\n/,
827
+ v: [{
828
+ b: "/",
829
+ e: "/[a-z]*"
830
+ }, {
831
+ b: "%r{",
832
+ e: "}[a-z]*"
833
+ }, {
834
+ b: "%r\\(",
835
+ e: "\\)[a-z]*"
836
+ }, {
837
+ b: "%r!",
838
+ e: "![a-z]*"
839
+ }, {
840
+ b: "%r\\[",
841
+ e: "\\][a-z]*"
842
+ }]
843
+ }],
844
+ r: 0
845
+ }];
846
+ n.c = d, i.c = d;
847
+ var l = "[>?]>",
848
+ u = "[\\w#]+\\(\\w+\\):\\d+:\\d+>",
849
+ N = "(\\w+-)?\\d+\\.\\d+\\.\\d(p\\d+)?[^>]+>",
850
+ o = [{
851
+ b: /^\s*=>/,
852
+ cN: "status",
853
+ starts: {
854
+ e: "$",
855
+ c: d
856
+ }
857
+ }, {
858
+ cN: "prompt",
859
+ b: "^(" + l + "|" + u + "|" + N + ")",
860
+ starts: {
861
+ e: "$",
862
+ c: d
863
+ }
864
+ }];
865
+ return {
866
+ aliases: ["rb", "gemspec", "podspec", "thor", "irb"],
867
+ k: r,
868
+ c: [s].concat(o).concat(d)
869
+ }
870
+ });
871
+ hljs.registerLanguage("javascript", function(r) {
872
+ return {
873
+ aliases: ["js"],
874
+ k: {
875
+ keyword: "in if for while finally var new function do return void else break catch instanceof with throw case default try this switch continue typeof delete let yield const class",
876
+ literal: "true false null undefined NaN Infinity",
877
+ built_in: "eval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent encodeURI encodeURIComponent escape unescape Object Function Boolean Error EvalError InternalError RangeError ReferenceError StopIteration SyntaxError TypeError URIError Number Math Date String RegExp Array Float32Array Float64Array Int16Array Int32Array Int8Array Uint16Array Uint32Array Uint8Array Uint8ClampedArray ArrayBuffer DataView JSON Intl arguments require module console window document"
878
+ },
879
+ c: [{
880
+ cN: "pi",
881
+ r: 10,
882
+ v: [{
883
+ b: /^\s*('|")use strict('|")/
884
+ }, {
885
+ b: /^\s*('|")use asm('|")/
886
+ }]
887
+ }, r.ASM, r.QSM, r.CLCM, r.CBCM, r.CNM, {
888
+ b: "(" + r.RSR + "|\\b(case|return|throw)\\b)\\s*",
889
+ k: "return throw case",
890
+ c: [r.CLCM, r.CBCM, r.RM, {
891
+ b: /</,
892
+ e: />;/,
893
+ r: 0,
894
+ sL: "xml"
895
+ }],
896
+ r: 0
897
+ }, {
898
+ cN: "function",
899
+ bK: "function",
900
+ e: /\{/,
901
+ eE: !0,
902
+ c: [r.inherit(r.TM, {
903
+ b: /[A-Za-z$_][0-9A-Za-z$_]*/
904
+ }), {
905
+ cN: "params",
906
+ b: /\(/,
907
+ e: /\)/,
908
+ c: [r.CLCM, r.CBCM],
909
+ i: /["'\(]/
910
+ }],
911
+ i: /\[|%/
912
+ }, {
913
+ b: /\$[(.]/
914
+ }, {
915
+ b: "\\." + r.IR,
916
+ r: 0
917
+ }]
918
+ }
919
+ });
920
+ hljs.registerLanguage("erb", function() {
921
+ return {
922
+ sL: "xml",
923
+ subLanguageMode: "continuous",
924
+ c: [{
925
+ cN: "comment",
926
+ b: "<%#",
927
+ e: "%>"
928
+ }, {
929
+ b: "<%[%=-]?",
930
+ e: "[%-]?%>",
931
+ sL: "ruby",
932
+ eB: !0,
933
+ eE: !0
934
+ }]
935
+ }
936
+ });
937
+ hljs.registerLanguage("scss", function(e) {
938
+ {
939
+ var t = "[a-zA-Z-][a-zA-Z0-9_-]*",
940
+ i = {
941
+ cN: "variable",
942
+ b: "(\\$" + t + ")\\b"
943
+ },
944
+ r = {
945
+ cN: "function",
946
+ b: t + "\\(",
947
+ rB: !0,
948
+ eE: !0,
949
+ e: "\\("
950
+ },
951
+ o = {
952
+ cN: "hexcolor",
953
+ b: "#[0-9A-Fa-f]+"
954
+ };
955
+ ({
956
+ cN: "attribute",
957
+ b: "[A-Z\\_\\.\\-]+",
958
+ e: ":",
959
+ eE: !0,
960
+ i: "[^\\s]",
961
+ starts: {
962
+ cN: "value",
963
+ eW: !0,
964
+ eE: !0,
965
+ c: [r, o, e.CSSNM, e.QSM, e.ASM, e.CBCM, {
966
+ cN: "important",
967
+ b: "!important"
968
+ }]
969
+ }
970
+ })
971
+ }
972
+ return {
973
+ cI: !0,
974
+ i: "[=/|']",
975
+ c: [e.CLCM, e.CBCM, r, {
976
+ cN: "id",
977
+ b: "\\#[A-Za-z0-9_-]+",
978
+ r: 0
979
+ }, {
980
+ cN: "class",
981
+ b: "\\.[A-Za-z0-9_-]+",
982
+ r: 0
983
+ }, {
984
+ cN: "attr_selector",
985
+ b: "\\[",
986
+ e: "\\]",
987
+ i: "$"
988
+ }, {
989
+ cN: "tag",
990
+ b: "\\b(a|abbr|acronym|address|area|article|aside|audio|b|base|big|blockquote|body|br|button|canvas|caption|cite|code|col|colgroup|command|datalist|dd|del|details|dfn|div|dl|dt|em|embed|fieldset|figcaption|figure|footer|form|frame|frameset|(h[1-6])|head|header|hgroup|hr|html|i|iframe|img|input|ins|kbd|keygen|label|legend|li|link|map|mark|meta|meter|nav|noframes|noscript|object|ol|optgroup|option|output|p|param|pre|progress|q|rp|rt|ruby|samp|script|section|select|small|span|strike|strong|style|sub|sup|table|tbody|td|textarea|tfoot|th|thead|time|title|tr|tt|ul|var|video)\\b",
991
+ r: 0
992
+ }, {
993
+ cN: "pseudo",
994
+ b: ":(visited|valid|root|right|required|read-write|read-only|out-range|optional|only-of-type|only-child|nth-of-type|nth-last-of-type|nth-last-child|nth-child|not|link|left|last-of-type|last-child|lang|invalid|indeterminate|in-range|hover|focus|first-of-type|first-line|first-letter|first-child|first|enabled|empty|disabled|default|checked|before|after|active)"
995
+ }, {
996
+ cN: "pseudo",
997
+ b: "::(after|before|choices|first-letter|first-line|repeat-index|repeat-item|selection|value)"
998
+ }, i, {
999
+ cN: "attribute",
1000
+ b: "\\b(z-index|word-wrap|word-spacing|word-break|width|widows|white-space|visibility|vertical-align|unicode-bidi|transition-timing-function|transition-property|transition-duration|transition-delay|transition|transform-style|transform-origin|transform|top|text-underline-position|text-transform|text-shadow|text-rendering|text-overflow|text-indent|text-decoration-style|text-decoration-line|text-decoration-color|text-decoration|text-align-last|text-align|tab-size|table-layout|right|resize|quotes|position|pointer-events|perspective-origin|perspective|page-break-inside|page-break-before|page-break-after|padding-top|padding-right|padding-left|padding-bottom|padding|overflow-y|overflow-x|overflow-wrap|overflow|outline-width|outline-style|outline-offset|outline-color|outline|orphans|order|opacity|object-position|object-fit|normal|none|nav-up|nav-right|nav-left|nav-index|nav-down|min-width|min-height|max-width|max-height|mask|marks|margin-top|margin-right|margin-left|margin-bottom|margin|list-style-type|list-style-position|list-style-image|list-style|line-height|letter-spacing|left|justify-content|initial|inherit|ime-mode|image-orientation|image-resolution|image-rendering|icon|hyphens|height|font-weight|font-variant-ligatures|font-variant|font-style|font-stretch|font-size-adjust|font-size|font-language-override|font-kerning|font-feature-settings|font-family|font|float|flex-wrap|flex-shrink|flex-grow|flex-flow|flex-direction|flex-basis|flex|filter|empty-cells|display|direction|cursor|counter-reset|counter-increment|content|column-width|column-span|column-rule-width|column-rule-style|column-rule-color|column-rule|column-gap|column-fill|column-count|columns|color|clip-path|clip|clear|caption-side|break-inside|break-before|break-after|box-sizing|box-shadow|box-decoration-break|bottom|border-width|border-top-width|border-top-style|border-top-right-radius|border-top-left-radius|border-top-color|border-top|border-style|border-spacing|border-right-width|border-right-style|border-right-color|border-right|border-radius|border-left-width|border-left-style|border-left-color|border-left|border-image-width|border-image-source|border-image-slice|border-image-repeat|border-image-outset|border-image|border-color|border-collapse|border-bottom-width|border-bottom-style|border-bottom-right-radius|border-bottom-left-radius|border-bottom-color|border-bottom|border|background-size|background-repeat|background-position|background-origin|background-image|background-color|background-clip|background-attachment|background|backface-visibility|auto|animation-timing-function|animation-play-state|animation-name|animation-iteration-count|animation-fill-mode|animation-duration|animation-direction|animation-delay|animation|align-self|align-items|align-content)\\b",
1001
+ i: "[^\\s]"
1002
+ }, {
1003
+ cN: "value",
1004
+ b: "\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middle|medium|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|list-item|line|line-through|line-edge|lighter|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline|inline-block|inherit|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|horizontal|hidden|help|hand|groove|fixed|ellipsis|e-resize|double|dotted|distribute|distribute-space|distribute-letter|distribute-all-lines|disc|disabled|default|decimal|dashed|crosshair|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|bolder|bold|block|bidi-override|below|baseline|auto|always|all-scroll|absolute|table|table-cell)\\b"
1005
+ }, {
1006
+ cN: "value",
1007
+ b: ":",
1008
+ e: ";",
1009
+ c: [r, i, o, e.CSSNM, e.QSM, e.ASM, {
1010
+ cN: "important",
1011
+ b: "!important"
1012
+ }]
1013
+ }, {
1014
+ cN: "at_rule",
1015
+ b: "@",
1016
+ e: "[{;]",
1017
+ k: "mixin include extend for if else each while charset import debug media page content font-face namespace warn",
1018
+ c: [r, i, e.QSM, e.ASM, o, e.CSSNM, {
1019
+ cN: "preprocessor",
1020
+ b: "\\s[A-Za-z0-9_.-]+",
1021
+ r: 0
1022
+ }]
1023
+ }]
1024
+ }
1025
+ });
1026
+ hljs.registerLanguage("css", function(e) {
1027
+ var c = "[a-zA-Z-][a-zA-Z0-9_-]*",
1028
+ a = {
1029
+ cN: "function",
1030
+ b: c + "\\(",
1031
+ rB: !0,
1032
+ eE: !0,
1033
+ e: "\\("
1034
+ };
1035
+ return {
1036
+ cI: !0,
1037
+ i: "[=/|']",
1038
+ c: [e.CBCM, {
1039
+ cN: "id",
1040
+ b: "\\#[A-Za-z0-9_-]+"
1041
+ }, {
1042
+ cN: "class",
1043
+ b: "\\.[A-Za-z0-9_-]+",
1044
+ r: 0
1045
+ }, {
1046
+ cN: "attr_selector",
1047
+ b: "\\[",
1048
+ e: "\\]",
1049
+ i: "$"
1050
+ }, {
1051
+ cN: "pseudo",
1052
+ b: ":(:)?[a-zA-Z0-9\\_\\-\\+\\(\\)\\\"\\']+"
1053
+ }, {
1054
+ cN: "at_rule",
1055
+ b: "@(font-face|page)",
1056
+ l: "[a-z-]+",
1057
+ k: "font-face page"
1058
+ }, {
1059
+ cN: "at_rule",
1060
+ b: "@",
1061
+ e: "[{;]",
1062
+ c: [{
1063
+ cN: "keyword",
1064
+ b: /\S+/
1065
+ }, {
1066
+ b: /\s/,
1067
+ eW: !0,
1068
+ eE: !0,
1069
+ r: 0,
1070
+ c: [a, e.ASM, e.QSM, e.CSSNM]
1071
+ }]
1072
+ }, {
1073
+ cN: "tag",
1074
+ b: c,
1075
+ r: 0
1076
+ }, {
1077
+ cN: "rules",
1078
+ b: "{",
1079
+ e: "}",
1080
+ i: "[^\\s]",
1081
+ r: 0,
1082
+ c: [e.CBCM, {
1083
+ cN: "rule",
1084
+ b: "[^\\s]",
1085
+ rB: !0,
1086
+ e: ";",
1087
+ eW: !0,
1088
+ c: [{
1089
+ cN: "attribute",
1090
+ b: "[A-Z\\_\\.\\-]+",
1091
+ e: ":",
1092
+ eE: !0,
1093
+ i: "[^\\s]",
1094
+ starts: {
1095
+ cN: "value",
1096
+ eW: !0,
1097
+ eE: !0,
1098
+ c: [a, e.CSSNM, e.QSM, e.ASM, e.CBCM, {
1099
+ cN: "hexcolor",
1100
+ b: "#[0-9A-Fa-f]+"
1101
+ }, {
1102
+ cN: "important",
1103
+ b: "!important"
1104
+ }]
1105
+ }
1106
+ }]
1107
+ }]
1108
+ }]
1109
+ }
1110
+ });
1111
+ hljs.registerLanguage("handlebars", function() {
1112
+ var e = "each in with if else unless bindattr action collection debugger log outlet template unbound view yield";
1113
+ return {
1114
+ aliases: ["hbs", "html.hbs", "html.handlebars"],
1115
+ cI: !0,
1116
+ sL: "xml",
1117
+ subLanguageMode: "continuous",
1118
+ c: [{
1119
+ cN: "expression",
1120
+ b: "{{",
1121
+ e: "}}",
1122
+ c: [{
1123
+ cN: "begin-block",
1124
+ b: "#[a-zA-Z- .]+",
1125
+ k: e
1126
+ }, {
1127
+ cN: "string",
1128
+ b: '"',
1129
+ e: '"'
1130
+ }, {
1131
+ cN: "end-block",
1132
+ b: "\\/[a-zA-Z- .]+",
1133
+ k: e
1134
+ }, {
1135
+ cN: "variable",
1136
+ b: "[a-zA-Z-.]+",
1137
+ k: e
1138
+ }]
1139
+ }]
1140
+ }
1141
+ });
1142
+ module.exports = hljs;