2 lines
22 KiB
JavaScript
2 lines
22 KiB
JavaScript
|
var ie=Object.assign;(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[60942],{60942:function(Ee,j,F){"use strict";F.r(j),F.d(j,{clike:function(){return h},c:function(){return le},cpp:function(){return ce},java:function(){return ue},csharp:function(){return se},scala:function(){return fe},kotlin:function(){return pe},shader:function(){return he},nesC:function(){return ye},objectiveC:function(){return ke},objectiveCpp:function(){return me},squirrel:function(){return ge},ceylon:function(){return be},dart:function(){return Se}});function E(e,n,t,l,s,d){this.indented=e,this.column=n,this.type=t,this.info=l,this.align=s,this.prev=d}function D(e,n,t,l){var s=e.indented;return e.context&&e.context.type=="statement"&&t!="statement"&&(s=e.context.indented),e.context=new E(s,n,t,l,null,e.context)}function _(e){var n=e.context.type;return(n==")"||n=="]"||n=="}")&&(e.indented=e.context.indented),e.context=e.context.prev}function B(e,n,t){if(n.prevToken=="variable"||n.prevToken=="type"||/\S(?:[^- ]>|[*\]])\s*$|\*$/.test(e.string.slice(0,t))||n.typeAtEndOfLine&&e.column()==e.indentation())return!0}function P(e){for(;;){if(!e||e.type=="top")return!0;if(e.type=="}"&&e.prev.info!="namespace")return!1;e=e.prev}}function h(e){var n=e.statementIndentUnit,t=e.dontAlignCalls,l=e.keywords||{},s=e.types||{},d=e.builtin||{},b=e.blockKeywords||{},N=e.defKeywords||{},w=e.atoms||{},k=e.hooks||{},Te=e.multiLineStrings,Ie=e.indentStatements!==!1,Ne=e.indentSwitch!==!1,Z=e.namespaceSeparator,De=e.isPunctuationChar||/[\[\]{}\(\),;\:\.]/,Le=e.numberStart||/[\d\.]/,ze=e.number||/^(?:0x[a-f\d]+|0b[01]+|(?:\d+\.?\d*|\.\d+)(?:e[-+]?\d+)?)(u|ll?|l|f)?/i,X=e.isOperatorChar||/[+\-*&%=<>!?|\/]/,Y=e.isIdentifierChar||/[\w\$_\xa1-\uffff]/,J=e.isReservedIdentifier||!1,p,O;function ee(i,a){var c=i.next();if(k[c]){var o=k[c](i,a);if(o!==!1)return o}if(c=='"'||c=="'")return a.tokenize=Ce(c),a.tokenize(i,a);if(Le.test(c)){if(i.backUp(1),i.match(ze))return"number";i.next()}if(De.test(c))return p=c,null;if(c=="/"){if(i.eat("*"))return a.tokenize=ne,ne(i,a);if(i.eat("/"))return i.skipToEnd(),"comment"}if(X.test(c)){for(;!i.match(/^\/[\/*]/,!1)&&i.eat(X););return"operator"}if(i.eatWhile(Y),Z)for(;i.match(Z);)i.eatWhile(Y);var f=i.current();return y(l,f)?(y(b,f)&&(p="newstatement"),y(N,f)&&(O=!0),"keyword"):y(s,f)?"type":y(d,f)||J&&J(f)?(y(b,f)&&(p="newstatement"),"builtin"):y(w,f)?"atom":"variable"}function Ce(i){return function(a,c){for(var o=!1,f,v=!1;(f=a.next())!=null;){if(f==i&&!o){v=!0;break}o=!o&&f=="\\"}return(v||!(o||Te))&&(c.tokenize=null),"string"}}function ne(i,a){for(var c=!1,o;o=i.next();){if(o=="/"&&c){a.tokenize=null;break}c=o=="*"}return"comment"}function te(i,a){e.typeFirstDefinitions&&i.eol()&&P(a.context)&&(a.typeAtEndOfLine=B(i,a,i.pos))}return{name:e.name,startState:function(i){return{tokenize:null,context:new E(-i,0,"top",null,!1),indented:0,startOfLine:!0,prevToken:null}},token:function(i,a){var c=a.context;if(i.sol()&&(c.align==null&&(c.align=!1),a.indented=i.indentation(),a.startOfLine=!0),i.eatSpace())return te(i,a),null;p=O=null;var o=(a.tokenize||ee)(i,a);if(o=="comment"||o=="meta")return o;if(c.align==null&&(c.align=!0),p==";"||p==":"||p==","&&i.match(/^\s*(?:\/\/.*)?$/,!1))for(;a.context.type=="statement";)_(a);else if(p=="{")D(a,i.column(),"}");else if(p=="[")D(a,i.column(),"]");else if(p=="(")D(a,i.column(),")");else if(p=="}"){for(;c.type=="statement";)c=_(a);for(c.type=="}"&&(c=_(a));c.type=="statement";)c=_(a)}else p==c.type?_(a):Ie&&((c.type=="}"||c.type=="top")&&p!=";"||c.type=="statement"&&p=="newstatement")&&D(a,i.column(),"statement",i.current());if(o=="variable"&&(a.prevToken=="def"||e.typeFirstDefinitions&&B(i,a,i.start)&&P(a.context)&&i.match(/^\s*\(/,!1))&&(o="def"),k.token){var f=k.token(i,a,o);f!==void 0&&(o=f)}return o=="def"&&e.styleDefs===!1&&(o="variable"),a.startOfLine=!1,a.prevToken=O?"def":o||p,te(i,a),o},indent:function(i,a,c){if(i.tokenize!=ee&&i.tokenize!=null||i.typeAtEndOfLine&&P(i.context))return null;var o=i.context,f=a&&a.charAt(0),v=f==o.type;if(o.type=="statement"&&f=="}"&&(o=o.pre
|