1 | var q = null;
|
2 | window.PR_SHOULD_USE_CONTINUATION = !0;
|
3 | (function() {
|
4 | function L(a) {
|
5 | function m(a) {
|
6 | var f = a.charCodeAt(0);
|
7 | if (f !== 92) return f;
|
8 | var b = a.charAt(1);
|
9 | return (f = r[b]) ? f : "0" <= b && b <= "7" ? parseInt(a.substring(1), 8) : b === "u" || b === "x" ? parseInt(a.substring(2), 16) : a.charCodeAt(1)
|
10 | }
|
11 |
|
12 | function e(a) {
|
13 | if (a < 32) return (a < 16 ? "\\x0" : "\\x") + a.toString(16);
|
14 | a = String.fromCharCode(a);
|
15 | if (a === "\\" || a === "-" || a === "[" || a === "]") a = "\\" + a;
|
16 | return a
|
17 | }
|
18 |
|
19 | function h(a) {
|
20 | for (var f = a.substring(1, a.length - 1).match(/\\u[\dA-Fa-f]{4}|\\x[\dA-Fa-f]{2}|\\[0-3][0-7]{0,2}|\\[0-7]{1,2}|\\[\S\s]|[^\\]/g), a = [], b = [], o = f[0] === "^", c = o ? 1 : 0, i = f.length; c < i; ++c) {
|
21 | var j = f[c];
|
22 | if (/\\[bdsw]/i.test(j)) a.push(j);
|
23 | else {
|
24 | var j = m(j),
|
25 | d;
|
26 | c + 2 < i && "-" === f[c + 1] ? (d = m(f[c + 2]), c += 2) : d = j;
|
27 | b.push([j, d]);
|
28 | d < 65 || j > 122 || (d < 65 || j > 90 || b.push([Math.max(65, j) | 32, Math.min(d, 90) | 32]), d < 97 || j > 122 || b.push([Math.max(97, j) & -33, Math.min(d, 122) & -33]))
|
29 | }
|
30 | }
|
31 | b.sort(function(a, f) {
|
32 | return a[0] - f[0] || f[1] - a[1]
|
33 | });
|
34 | f = [];
|
35 | j = [NaN, NaN];
|
36 | for (c = 0; c < b.length; ++c) i = b[c], i[0] <= j[1] + 1 ? j[1] = Math.max(j[1], i[1]) : f.push(j = i);
|
37 | b = ["["];
|
38 | o && b.push("^");
|
39 | b.push.apply(b, a);
|
40 | for (c = 0; c < f.length; ++c) i = f[c], b.push(e(i[0])), i[1] > i[0] && (i[1] + 1 > i[0] && b.push("-"), b.push(e(i[1])));
|
41 | b.push("]");
|
42 | return b.join("")
|
43 | }
|
44 |
|
45 | function y(a) {
|
46 | for (var f = a.source.match(/\[(?:[^\\\]]|\\[\S\s])*]|\\u[\dA-Fa-f]{4}|\\x[\dA-Fa-f]{2}|\\\d+|\\[^\dux]|\(\?[!:=]|[()^]|[^()[\\^]+/g), b = f.length, d = [], c = 0, i = 0; c < b; ++c) {
|
47 | var j = f[c];
|
48 | j === "(" ? ++i : "\\" === j.charAt(0) && (j = +j.substring(1)) && j <= i && (d[j] = -1)
|
49 | }
|
50 | for (c = 1; c < d.length; ++c) - 1 === d[c] && (d[c] = ++t);
|
51 | for (i = c = 0; c < b; ++c) j = f[c], j === "(" ? (++i, d[i] === void 0 && (f[c] = "(?:")) : "\\" === j.charAt(0) && (j = +j.substring(1)) && j <= i && (f[c] = "\\" + d[i]);
|
52 | for (i = c = 0; c < b; ++c)"^" === f[c] && "^" !== f[c + 1] && (f[c] = "");
|
53 | if (a.ignoreCase && s) for (c = 0; c < b; ++c) j = f[c], a = j.charAt(0), j.length >= 2 && a === "[" ? f[c] = h(j) : a !== "\\" && (f[c] = j.replace(/[A-Za-z]/g, function(a) {
|
54 | a = a.charCodeAt(0);
|
55 | return "[" + String.fromCharCode(a & -33, a | 32) + "]"
|
56 | }));
|
57 | return f.join("")
|
58 | }
|
59 | for (var t = 0, s = !1, l = !1, p = 0, d = a.length; p < d; ++p) {
|
60 | var g = a[p];
|
61 | if (g.ignoreCase) l = !0;
|
62 | else if (/[a-z]/i.test(g.source.replace(/\\u[\da-f]{4}|\\x[\da-f]{2}|\\[^UXux]/gi, ""))) {
|
63 | s = !0;
|
64 | l = !1;
|
65 | break
|
66 | }
|
67 | }
|
68 | for (var r = {
|
69 | b: 8,
|
70 | t: 9,
|
71 | n: 10,
|
72 | v: 11,
|
73 | f: 12,
|
74 | r: 13
|
75 | }, n = [], p = 0, d = a.length; p < d; ++p) {
|
76 | g = a[p];
|
77 | if (g.global || g.multiline) throw Error("" + g);
|
78 | n.push("(?:" + y(g) + ")")
|
79 | }
|
80 | return RegExp(n.join("|"), l ? "gi" : "g")
|
81 | }
|
82 |
|
83 | function M(a) {
|
84 | function m(a) {
|
85 | switch (a.nodeType) {
|
86 | case 1:
|
87 | if (e.test(a.className)) break;
|
88 | for (var g = a.firstChild; g; g = g.nextSibling) m(g);
|
89 | g = a.nodeName;
|
90 | if ("BR" === g || "LI" === g) h[s] = "\n", t[s << 1] = y++, t[s++ << 1 | 1] = a;
|
91 | break;
|
92 | case 3:
|
93 | case 4:
|
94 | g = a.nodeValue, g.length && (g = p ? g.replace(/\r\n?/g, "\n") : g.replace(/[\t\n\r ]+/g, " "), h[s] = g, t[s << 1] = y, y += g.length, t[s++ << 1 | 1] = a)
|
95 | }
|
96 | }
|
97 | var e = /(?:^|\s)nocode(?:\s|$)/,
|
98 | h = [],
|
99 | y = 0,
|
100 | t = [],
|
101 | s = 0,
|
102 | l;
|
103 | a.currentStyle ? l = a.currentStyle.whiteSpace : window.getComputedStyle && (l = document.defaultView.getComputedStyle(a, q).getPropertyValue("white-space"));
|
104 | var p = l && "pre" === l.substring(0, 3);
|
105 | m(a);
|
106 | return {
|
107 | a: h.join("").replace(/\n$/, ""),
|
108 | c: t
|
109 | }
|
110 | }
|
111 |
|
112 | function B(a, m, e, h) {
|
113 | m && (a = {
|
114 | a: m,
|
115 | d: a
|
116 | }, e(a), h.push.apply(h, a.e))
|
117 | }
|
118 |
|
119 | function x(a, m) {
|
120 | function e(a) {
|
121 | for (var l = a.d, p = [l, "pln"], d = 0, g = a.a.match(y) || [], r = {}, n = 0, z = g.length; n < z; ++n) {
|
122 | var f = g[n],
|
123 | b = r[f],
|
124 | o = void 0,
|
125 | c;
|
126 | if (typeof b === "string") c = !1;
|
127 | else {
|
128 | var i = h[f.charAt(0)];
|
129 | if (i) o = f.match(i[1]), b = i[0];
|
130 | else {
|
131 | for (c = 0; c < t; ++c) if (i = m[c], o = f.match(i[1])) {
|
132 | b = i[0];
|
133 | break
|
134 | }
|
135 | o || (b = "pln")
|
136 | }
|
137 | if ((c = b.length >= 5 && "lang-" === b.substring(0, 5)) && !(o && typeof o[1] === "string")) c = !1, b = "src";
|
138 | c || (r[f] = b)
|
139 | }
|
140 | i = d;
|
141 | d += f.length;
|
142 | if (c) {
|
143 | c = o[1];
|
144 | var j = f.indexOf(c),
|
145 | k = j + c.length;
|
146 | o[2] && (k = f.length - o[2].length, j = k - c.length);
|
147 | b = b.substring(5);
|
148 | B(l + i, f.substring(0, j), e, p);
|
149 | B(l + i + j, c, C(b, c), p);
|
150 | B(l + i + k, f.substring(k), e, p)
|
151 | } else p.push(l + i, b)
|
152 | }
|
153 | a.e = p
|
154 | }
|
155 | var h = {},
|
156 | y;
|
157 | (function() {
|
158 | for (var e = a.concat(m), l = [], p = {}, d = 0, g = e.length; d < g; ++d) {
|
159 | var r = e[d],
|
160 | n = r[3];
|
161 | if (n) for (var k = n.length; --k >= 0;) h[n.charAt(k)] = r;
|
162 | r = r[1];
|
163 | n = "" + r;
|
164 | p.hasOwnProperty(n) || (l.push(r), p[n] = q)
|
165 | }
|
166 | l.push(/[\S\s]/);
|
167 | y = L(l)
|
168 | })();
|
169 | var t = m.length;
|
170 | return e
|
171 | }
|
172 |
|
173 | function u(a) {
|
174 | var m = [],
|
175 | e = [];
|
176 | a.tripleQuotedStrings ? m.push(["str", /^(?:'''(?:[^'\\]|\\[\S\s]|''?(?=[^']))*(?:'''|$)|"""(?:[^"\\]|\\[\S\s]|""?(?=[^"]))*(?:"""|$)|'(?:[^'\\]|\\[\S\s])*(?:'|$)|"(?:[^"\\]|\\[\S\s])*(?:"|$))/, q, "'\""]) : a.multiLineStrings ? m.push(["str", /^(?:'(?:[^'\\]|\\[\S\s])*(?:'|$)|"(?:[^"\\]|\\[\S\s])*(?:"|$)|`(?:[^\\`]|\\[\S\s])*(?:`|$))/, q, "'\"`"]) : m.push(["str", /^(?:'(?:[^\n\r'\\]|\\.)*(?:'|$)|"(?:[^\n\r"\\]|\\.)*(?:"|$))/, q, "\"'"]);
|
177 | a.verbatimStrings && e.push(["str", /^@"(?:[^"]|"")*(?:"|$)/, q]);
|
178 | var h = a.hashComments;
|
179 | h && (a.cStyleComments ? (h > 1 ? m.push(["com", /^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/, q, "#"]) : m.push(["com", /^#(?:(?:define|elif|else|endif|error|ifdef|include|ifndef|line|pragma|undef|warning)\b|[^\n\r]*)/, q, "#"]), e.push(["str", /^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h|[a-z]\w*)>/, q])) : m.push(["com", /^#[^\n\r]*/, q, "#"]));
|
180 | a.cStyleComments && (e.push(["com", /^\/\/[^\n\r]*/, q]), e.push(["com", /^\/\*[\S\s]*?(?:\*\/|$)/, q]));
|
181 | a.regexLiterals && e.push(["lang-regex", /^(?:^^\.?|[!+-]|!=|!==|#|%|%=|&|&&|&&=|&=|\(|\*|\*=|\+=|,|-=|->|\/|\/=|:|::|;|<|<<|<<=|<=|=|==|===|>|>=|>>|>>=|>>>|>>>=|[?@[^]|\^=|\^\^|\^\^=|{|\||\|=|\|\||\|\|=|~|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\s*(\/(?=[^*/])(?:[^/[\\]|\\[\S\s]|\[(?:[^\\\]]|\\[\S\s])*(?:]|$))+\/)/]);
|
182 | (h = a.types) && e.push(["typ", h]);
|
183 | a = ("" + a.keywords).replace(/^ | $/g, "");
|
184 | a.length && e.push(["kwd", RegExp("^(?:" + a.replace(/[\s,]+/g, "|") + ")\\b"), q]);
|
185 | m.push(["pln", /^\s+/, q, " \r\n\t\xa0"]);
|
186 | e.push(["lit", /^@[$_a-z][\w$@]*/i, q], ["typ", /^(?:[@_]?[A-Z]+[a-z][\w$@]*|\w+_t\b)/, q], ["pln", /^[$_a-z][\w$@]*/i, q], ["lit", /^(?:0x[\da-f]+|(?:\d(?:_\d+)*\d*(?:\.\d*)?|\.\d\+)(?:e[+-]?\d+)?)[a-z]*/i, q, "0123456789"], ["pln", /^\\[\S\s]?/, q], ["pun", /^.[^\s\w"-$'./@\\`]*/, q]);
|
187 | return x(m, e)
|
188 | }
|
189 |
|
190 | function D(a, m) {
|
191 | function e(a) {
|
192 | switch (a.nodeType) {
|
193 | case 1:
|
194 | if (k.test(a.className)) break;
|
195 | if ("BR" === a.nodeName) h(a), a.parentNode && a.parentNode.removeChild(a);
|
196 | else for (a = a.firstChild; a; a = a.nextSibling) e(a);
|
197 | break;
|
198 | case 3:
|
199 | case 4:
|
200 | if (p) {
|
201 | var b = a.nodeValue,
|
202 | d = b.match(t);
|
203 | if (d) {
|
204 | var c = b.substring(0, d.index);
|
205 | a.nodeValue = c;
|
206 | (b = b.substring(d.index + d[0].length)) && a.parentNode.insertBefore(s.createTextNode(b), a.nextSibling);
|
207 | h(a);
|
208 | c || a.parentNode.removeChild(a)
|
209 | }
|
210 | }
|
211 | }
|
212 | }
|
213 |
|
214 | function h(a) {
|
215 | function b(a, d) {
|
216 | var e = d ? a.cloneNode(!1) : a,
|
217 | f = a.parentNode;
|
218 | if (f) {
|
219 | var f = b(f, 1),
|
220 | g = a.nextSibling;
|
221 | f.appendChild(e);
|
222 | for (var h = g; h; h = g) g = h.nextSibling, f.appendChild(h)
|
223 | }
|
224 | return e
|
225 | }
|
226 | for (; !a.nextSibling;) if (a = a.parentNode, !a) return;
|
227 | for (var a = b(a.nextSibling, 0), e;
|
228 | (e = a.parentNode) && e.nodeType === 1;) a = e;
|
229 | d.push(a)
|
230 | }
|
231 | var k = /(?:^|\s)nocode(?:\s|$)/,
|
232 | t = /\r\n?|\n/,
|
233 | s = a.ownerDocument,
|
234 | l;
|
235 | a.currentStyle ? l = a.currentStyle.whiteSpace : window.getComputedStyle && (l = s.defaultView.getComputedStyle(a, q).getPropertyValue("white-space"));
|
236 | var p = l && "pre" === l.substring(0, 3);
|
237 | for (l = s.createElement("LI"); a.firstChild;) l.appendChild(a.firstChild);
|
238 | for (var d = [l], g = 0; g < d.length; ++g) e(d[g]);
|
239 | m === (m | 0) && d[0].setAttribute("value", m);
|
240 | var r = s.createElement("OL");
|
241 | r.className = "linenums";
|
242 | for (var n = Math.max(0, m - 1 | 0) || 0, g = 0, z = d.length; g < z; ++g) l = d[g], l.className = "L" + (g + n) % 10, l.firstChild || l.appendChild(s.createTextNode("\xa0")), r.appendChild(l);
|
243 | a.appendChild(r)
|
244 | }
|
245 |
|
246 | function k(a, m) {
|
247 | for (var e = m.length; --e >= 0;) {
|
248 | var h = m[e];
|
249 | A.hasOwnProperty(h) ? window.console && console.warn("cannot override language handler %s", h) : A[h] = a
|
250 | }
|
251 | }
|
252 |
|
253 | function C(a, m) {
|
254 | if (!a || !A.hasOwnProperty(a)) a = /^\s*</.test(m) ? "default-markup" : "default-code";
|
255 | return A[a]
|
256 | }
|
257 |
|
258 | function E(a) {
|
259 | var m =
|
260 | a.g;
|
261 | try {
|
262 | var e = M(a.h),
|
263 | h = e.a;
|
264 | a.a = h;
|
265 | a.c = e.c;
|
266 | a.d = 0;
|
267 | C(m, h)(a);
|
268 | var k = /\bMSIE\b/.test(navigator.userAgent),
|
269 | m = /\n/g,
|
270 | t = a.a,
|
271 | s = t.length,
|
272 | e = 0,
|
273 | l = a.c,
|
274 | p = l.length,
|
275 | h = 0,
|
276 | d = a.e,
|
277 | g = d.length,
|
278 | a = 0;
|
279 | d[g] = s;
|
280 | var r, n;
|
281 | for (n = r = 0; n < g;) d[n] !== d[n + 2] ? (d[r++] = d[n++], d[r++] = d[n++]) : n += 2;
|
282 | g = r;
|
283 | for (n = r = 0; n < g;) {
|
284 | for (var z = d[n], f = d[n + 1], b = n + 2; b + 2 <= g && d[b + 1] === f;) b += 2;
|
285 | d[r++] = z;
|
286 | d[r++] = f;
|
287 | n = b
|
288 | }
|
289 | for (d.length = r; h < p;) {
|
290 | var o = l[h + 2] || s,
|
291 | c = d[a + 2] || s,
|
292 | b = Math.min(o, c),
|
293 | i = l[h + 1],
|
294 | j;
|
295 | if (i.nodeType !== 1 && (j = t.substring(e, b))) {
|
296 | k && (j = j.replace(m, "\r"));
|
297 | i.nodeValue =
|
298 | j;
|
299 | var u = i.ownerDocument,
|
300 | v = u.createElement("SPAN");
|
301 | v.className = d[a + 1];
|
302 | var x = i.parentNode;
|
303 | x.replaceChild(v, i);
|
304 | v.appendChild(i);
|
305 | e < o && (l[h + 1] = i = u.createTextNode(t.substring(b, o)), x.insertBefore(i, v.nextSibling))
|
306 | }
|
307 | e = b;
|
308 | e >= o && (h += 2);
|
309 | e >= c && (a += 2)
|
310 | }
|
311 | } catch (w) {
|
312 | "console" in window && console.log(w && w.stack ? w.stack : w)
|
313 | }
|
314 | }
|
315 | var v = ["break,continue,do,else,for,if,return,while"],
|
316 | w = [
|
317 | [v, "auto,case,char,const,default,double,enum,extern,float,goto,int,long,register,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"], "catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],
|
318 | F = [w, "alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,dynamic_cast,explicit,export,friend,inline,late_check,mutable,namespace,nullptr,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"],
|
319 | G = [w, "abstract,boolean,byte,extends,final,finally,implements,import,instanceof,null,native,package,strictfp,super,synchronized,throws,transient"],
|
320 | H = [G, "as,base,by,checked,decimal,delegate,descending,dynamic,event,fixed,foreach,from,group,implicit,in,interface,internal,into,is,lock,object,out,override,orderby,params,partial,readonly,ref,sbyte,sealed,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,var"],
|
321 | w = [w, "debugger,eval,export,function,get,null,set,undefined,var,with,Infinity,NaN"],
|
322 | I = [v, "and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"],
|
323 | J = [v, "alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END"],
|
324 | v = [v, "case,done,elif,esac,eval,fi,function,in,local,set,then,until"],
|
325 | K = /^(DIR|FILE|vector|(de|priority_)?queue|list|stack|(const_)?iterator|(multi)?(set|map)|bitset|u?(int|float)\d*)/,
|
326 | N = /\S/,
|
327 | O = u({
|
328 | keywords: [F, H, w, "caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END" + I, J, v],
|
329 | hashComments: !0,
|
330 | cStyleComments: !0,
|
331 | multiLineStrings: !0,
|
332 | regexLiterals: !0
|
333 | }),
|
334 | A = {};
|
335 | k(O, ["default-code"]);
|
336 | k(x([], [
|
337 | ["pln", /^[^<?]+/],
|
338 | ["dec", /^<!\w[^>]*(?:>|$)/],
|
339 | ["com", /^<\!--[\S\s]*?(?:--\>|$)/],
|
340 | ["lang-", /^<\?([\S\s]+?)(?:\?>|$)/],
|
341 | ["lang-", /^<%([\S\s]+?)(?:%>|$)/],
|
342 | ["pun", /^(?:<[%?]|[%?]>)/],
|
343 | ["lang-", /^<xmp\b[^>]*>([\S\s]+?)<\/xmp\b[^>]*>/i],
|
344 | ["lang-js", /^<script\b[^>]*>([\S\s]*?)(<\/script\b[^>]*>)/i],
|
345 | ["lang-css", /^<style\b[^>]*>([\S\s]*?)(<\/style\b[^>]*>)/i],
|
346 | ["lang-in.tag", /^(<\/?[a-z][^<>]*>)/i]
|
347 | ]), ["default-markup", "htm", "html", "mxml", "xhtml", "xml", "xsl"]);
|
348 | k(x([
|
349 | ["pln", /^\s+/, q, " \t\r\n"],
|
350 | ["atv", /^(?:"[^"]*"?|'[^']*'?)/, q, "\"'"]
|
351 | ], [
|
352 | ["tag", /^^<\/?[a-z](?:[\w-.:]*\w)?|\/?>$/i],
|
353 | ["atn", /^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],
|
354 | ["lang-uq.val", /^=\s*([^\s"'>]*(?:[^\s"'/>]|\/(?=\s)))/],
|
355 | ["pun", /^[/<->]+/],
|
356 | ["lang-js", /^on\w+\s*=\s*"([^"]+)"/i],
|
357 | ["lang-js", /^on\w+\s*=\s*'([^']+)'/i],
|
358 | ["lang-js", /^on\w+\s*=\s*([^\s"'>]+)/i],
|
359 | ["lang-css", /^style\s*=\s*"([^"]+)"/i],
|
360 | ["lang-css", /^style\s*=\s*'([^']+)'/i],
|
361 | ["lang-css", /^style\s*=\s*([^\s"'>]+)/i]
|
362 | ]), ["in.tag"]);
|
363 | k(x([], [
|
364 | ["atv", /^[\S\s]+/]
|
365 | ]), ["uq.val"]);
|
366 | k(u({
|
367 | keywords: F,
|
368 | hashComments: !0,
|
369 | cStyleComments: !0,
|
370 | types: K
|
371 | }), ["c", "cc", "cpp", "cxx", "cyc", "m"]);
|
372 | k(u({
|
373 | keywords: "null,true,false"
|
374 | }), ["json"]);
|
375 | k(u({
|
376 | keywords: H,
|
377 | hashComments: !0,
|
378 | cStyleComments: !0,
|
379 | verbatimStrings: !0,
|
380 | types: K
|
381 | }), ["cs"]);
|
382 | k(u({
|
383 | keywords: G,
|
384 | cStyleComments: !0
|
385 | }), ["java"]);
|
386 | k(u({
|
387 | keywords: v,
|
388 | hashComments: !0,
|
389 | multiLineStrings: !0
|
390 | }), ["bsh", "csh", "sh"]);
|
391 | k(u({
|
392 | keywords: I,
|
393 | hashComments: !0,
|
394 | multiLineStrings: !0,
|
395 | tripleQuotedStrings: !0
|
396 | }), ["cv", "py"]);
|
397 | k(u({
|
398 | keywords: "caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END",
|
399 | hashComments: !0,
|
400 | multiLineStrings: !0,
|
401 | regexLiterals: !0
|
402 | }), ["perl", "pl", "pm"]);
|
403 | k(u({
|
404 | keywords: J,
|
405 | hashComments: !0,
|
406 | multiLineStrings: !0,
|
407 | regexLiterals: !0
|
408 | }), ["rb"]);
|
409 | k(u({
|
410 | keywords: w,
|
411 | cStyleComments: !0,
|
412 | regexLiterals: !0
|
413 | }), ["js"]);
|
414 | k(u({
|
415 | keywords: "all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,true,try,unless,until,when,while,yes",
|
416 | hashComments: 3,
|
417 | cStyleComments: !0,
|
418 | multilineStrings: !0,
|
419 | tripleQuotedStrings: !0,
|
420 | regexLiterals: !0
|
421 | }), ["coffee"]);
|
422 | k(x([], [
|
423 | ["str", /^[\S\s]+/]
|
424 | ]), ["regex"]);
|
425 | window.prettyPrintOne = function(a, m, e) {
|
426 | var h = document.createElement("PRE");
|
427 | h.innerHTML = a;
|
428 | e && D(h, e);
|
429 | E({
|
430 | g: m,
|
431 | i: e,
|
432 | h: h
|
433 | });
|
434 | return h.innerHTML
|
435 | };
|
436 | window.prettyPrint = function(a) {
|
437 | function m() {
|
438 | for (var e = window.PR_SHOULD_USE_CONTINUATION ? l.now() + 250 : Infinity; p < h.length && l.now() < e; p++) {
|
439 | var n = h[p],
|
440 | k = n.className;
|
441 | if (k.indexOf("prettyprint") >= 0) {
|
442 | var k = k.match(g),
|
443 | f, b;
|
444 | if (b = !k) {
|
445 | b = n;
|
446 | for (var o = void 0, c = b.firstChild; c; c = c.nextSibling) var i = c.nodeType,
|
447 | o = i === 1 ? o ? b : c : i === 3 ? N.test(c.nodeValue) ? b : o : o;
|
448 | b = (f = o === b ? void 0 : o) && "CODE" === f.tagName
|
449 | }
|
450 | b && (k = f.className.match(g));
|
451 | k && (k = k[1]);
|
452 | b = !1;
|
453 | for (o = n.parentNode; o; o = o.parentNode) if ((o.tagName === "pre" || o.tagName === "code" || o.tagName === "xmp") && o.className && o.className.indexOf("prettyprint") >= 0) {
|
454 | b = !0;
|
455 | break
|
456 | }
|
457 | b || ((b = (b = n.className.match(/\blinenums\b(?::(\d+))?/)) ? b[1] && b[1].length ? +b[1] : !0 : !1) && D(n, b), d = {
|
458 | g: k,
|
459 | h: n,
|
460 | i: b
|
461 | }, E(d))
|
462 | }
|
463 | }
|
464 | p < h.length ? setTimeout(m, 250) : a && a()
|
465 | }
|
466 | for (var e = [document.getElementsByTagName("pre"), document.getElementsByTagName("code"), document.getElementsByTagName("xmp")], h = [], k = 0; k < e.length; ++k) for (var t = 0, s = e[k].length; t < s; ++t) h.push(e[k][t]);
|
467 | var e = q,
|
468 | l = Date;
|
469 | l.now || (l = {
|
470 | now: function() {
|
471 | return +new Date
|
472 | }
|
473 | });
|
474 | var p = 0,
|
475 | d, g = /\blang(?:uage)?-([\w.]+)(?!\S)/;
|
476 | m()
|
477 | };
|
478 | window.PR = {
|
479 | createSimpleLexer: x,
|
480 | registerLangHandler: k,
|
481 | sourceDecorator: u,
|
482 | PR_ATTRIB_NAME: "atn",
|
483 | PR_ATTRIB_VALUE: "atv",
|
484 | PR_COMMENT: "com",
|
485 | PR_DECLARATION: "dec",
|
486 | PR_KEYWORD: "kwd",
|
487 | PR_LITERAL: "lit",
|
488 | PR_NOCODE: "nocode",
|
489 | PR_PLAIN: "pln",
|
490 | PR_PUNCTUATION: "pun",
|
491 | PR_SOURCE: "src",
|
492 | PR_STRING: "str",
|
493 | PR_TAG: "tag",
|
494 | PR_TYPE: "typ"
|
495 | }
|
496 | })(); |
\ | No newline at end of file |