angular-docs-cn/aio/dist/assets-js-prettify-js-es5.b...

2 lines
15 KiB
JavaScript
Raw Normal View History

(window.webpackJsonp=window.webpackJsonp||[]).push([[4],{Ue1H:function(e,t){window.PR_SHOULD_USE_CONTINUATION=!0,function(){function e(e,t,n,r,a){n&&(r(e={h:e,l:1,j:null,m:null,a:n,c:null,i:t,g:null}),a.push.apply(a,e.g))}function t(e){for(var t=void 0,n=e.firstChild;n;n=n.nextSibling){var r=n.nodeType;t=1===r?t?e:n:3===r&&m.test(n.nodeValue)?e:t}return t===e?void 0:t}function n(t,n){var r,a={};!function(){for(var e=t.concat(n),l=[],s={},i=0,o=e.length;i<o;++i){var u=e[i],c=u[3];if(c)for(var p=c.length;0<=--p;)a[c.charAt(p)]=u;s.hasOwnProperty(c=""+(u=u[1]))||(l.push(u),s[c]=null)}l.push(/[\0-\uffff]/),r=function(e){function t(e){var t=e.charCodeAt(0);if(92!==t)return t;var n=e.charAt(1);return(t=p[n])?t:"0"<=n&&"7">=n?parseInt(e.substring(1),8):"u"===n||"x"===n?parseInt(e.substring(2),16):e.charCodeAt(1)}function n(e){return 32>e?(16>e?"\\x0":"\\x")+e.toString(16):"\\"===(e=String.fromCharCode(e))||"-"===e||"]"===e||"^"===e?"\\"+e:e}function r(e){var r=e.substring(1,e.length-1).match(/\\u[0-9A-Fa-f]{4}|\\x[0-9A-Fa-f]{2}|\\[0-3][0-7]{0,2}|\\[0-7]{1,2}|\\[\s\S]|-|[^-\\]/g);e=[];var a=["["];(l="^"===r[0])&&a.push("^");for(var l=l?1:0,s=r.length;l<s;++l)if(/\\[bdsw]/i.test(o=r[l]))a.push(o);else{var i,o=t(o);l+2<s&&"-"===r[l+1]?(i=t(r[l+2]),l+=2):i=o,e.push([o,i]),65>i||122<o||(65>i||90<o||e.push([32|Math.max(65,o),32|Math.min(i,90)]),97>i||122<o||e.push([-33&Math.max(97,o),-33&Math.min(i,122)]))}for(e.sort(function(e,t){return e[0]-t[0]||t[1]-e[1]}),r=[],s=[],l=0;l<e.length;++l)(o=e[l])[0]<=s[1]+1?s[1]=Math.max(s[1],o[1]):r.push(s=o);for(l=0;l<r.length;++l)a.push(n((o=r[l])[0])),o[1]>o[0]&&(o[1]+1>o[0]&&a.push("-"),a.push(n(o[1])));return a.push("]"),a.join("")}function a(e){for(var t=e.source.match(/(?:\[(?:[^\x5C\x5D]|\\[\s\S])*\]|\\u[A-Fa-f0-9]{4}|\\x[A-Fa-f0-9]{2}|\\[0-9]+|\\[^ux0-9]|\(\?[:!=]|[\(\)\^]|[^\x5B\x5C\(\)\^]+)/g),a=t.length,i=[],o=0,u=0;o<a;++o){var c=t[o];"("===c?++u:"\\"===c.charAt(0)&&(c=+c.substring(1))&&(c<=u?i[c]=-1:t[o]=n(c))}for(o=1;o<i.length;++o)-1===i[o]&&(i[o]=++l);for(u=o=0;o<a;++o)"("===(c=t[o])?i[++u]||(t[o]="(?:"):"\\"===c.charAt(0)&&(c=+c.substring(1))&&c<=u&&(t[o]="\\"+i[c]);for(o=0;o<a;++o)"^"===t[o]&&"^"!==t[o+1]&&(t[o]="");if(e.ignoreCase&&s)for(o=0;o<a;++o)e=(c=t[o]).charAt(0),2<=c.length&&"["===e?t[o]=r(c):"\\"!==e&&(t[o]=c.replace(/[a-zA-Z]/g,function(e){return e=e.charCodeAt(0),"["+String.fromCharCode(-33&e,32|e)+"]"}));return t.join("")}for(var l=0,s=!1,i=!1,o=0,u=e.length;o<u;++o){var c=e[o];if(c.ignoreCase)i=!0;else if(/[a-z]/i.test(c.source.replace(/\\u[0-9a-f]{4}|\\x[0-9a-f]{2}|\\[^ux]/gi,""))){s=!0,i=!1;break}}var p={b:8,t:9,n:10,v:11,f:12,r:13},d=[];for(o=0,u=e.length;o<u;++o){if((c=e[o]).global||c.multiline)throw Error(""+c);d.push("(?:"+a(c)+")")}return new RegExp(d.join("|"),i?"gi":"g")}(l)}();var l=n.length;return function t(i){for(var o=i.i,u=i.h,c=[o,"pln"],p=0,d=i.a.match(r)||[],f={},g=0,h=d.length;g<h;++g){var m,y=d[g],v=f[y],b=void 0;if("string"==typeof v)m=!1;else{var w=a[y.charAt(0)];if(w)b=y.match(w[1]),v=w[0];else{for(m=0;m<l;++m)if(b=y.match((w=n[m])[1])){v=w[0];break}b||(v="pln")}!(m=5<=v.length&&"lang-"===v.substring(0,5))||b&&"string"==typeof b[1]||(m=!1,v="src"),m||(f[y]=v)}if(w=p,p+=y.length,m){var x=y.indexOf(m=b[1]),S=x+m.length;b[2]&&(x=(S=y.length-b[2].length)-m.length),v=v.substring(5),e(u,o+w,y.substring(0,x),t,c),e(u,o+w+x,m,s(v,m),c),e(u,o+w+S,y.substring(S),t,c)}else c.push(o+w,v)}i.g=c}}function r(e){var t=[],r=[];t.push(e.tripleQuotedStrings?["str",/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,"'\""]:e.multiLineStrings?["str",/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"]:["str",/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,"\"'"]),e.verbatimStrings&&r.push(["str",/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null]);var a=e.hashComments;if(a&&(e.cStyleComments?(t.push(1<a?["com",/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"
//# sourceMappingURL=assets-js-prettify-js-es5.b6cbad02a0e3ac8af12a.js.map