filesbox/web/dist/34591.d8c38160.async.js

2 lines
37 KiB
JavaScript
Raw Permalink Normal View History

2024-07-26 06:10:54 +00:00
(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[34591],{34591:function(Z,_,y){"use strict";y.r(_),y.d(_,{sql:function(){return s},standardSQL:function(){return L},msSQL:function(){return j},mySQL:function(){return N},mariaDB:function(){return F},sqlite:function(){return T},cassandra:function(){return B},plSQL:function(){return D},hive:function(){return O},pgSQL:function(){return $},gql:function(){return E},gpSQL:function(){return A},sparkSQL:function(){return P},esper:function(){return W}});function s(n){var c=n.client||{},g=n.atoms||{false:!0,true:!0,null:!0},p=n.builtin||e(x),H=n.keywords||e(d),w=n.operatorChars||/^[*+\-%<>!=&|~^\/]/,o=n.support||{},k=n.hooks||{},R=n.dateSQL||{date:!0,time:!0,timestamp:!0},I=n.backslashStringEscapes!==!1,U=n.brackets||/^[\{}\(\)\[\]]/,q=n.punctuation||/^[;.,:]/;function h(t,a){var r=t.next();if(k[r]){var i=k[r](t,a);if(i!==!1)return i}if(o.hexNumber&&(r=="0"&&t.match(/^[xX][0-9a-fA-F]+/)||(r=="x"||r=="X")&&t.match(/^'[0-9a-fA-F]*'/)))return"number";if(o.binaryNumber&&((r=="b"||r=="B")&&t.match(/^'[01]+'/)||r=="0"&&t.match(/^b[01]*/)))return"number";if(r.charCodeAt(0)>47&&r.charCodeAt(0)<58)return t.match(/^[0-9]*(\.[0-9]+)?([eE][-+]?[0-9]+)?/),o.decimallessFloat&&t.match(/^\.(?!\.)/),"number";if(r=="?"&&(t.eatSpace()||t.eol()||t.eat(";")))return"macroName";if(r=="'"||r=='"'&&o.doubleQuote)return a.tokenize=z(r),a.tokenize(t,a);if((o.nCharCast&&(r=="n"||r=="N")||o.charsetCast&&r=="_"&&t.match(/[a-z][a-z0-9]*/i))&&(t.peek()=="'"||t.peek()=='"'))return"keyword";if(o.escapeConstant&&(r=="e"||r=="E")&&(t.peek()=="'"||t.peek()=='"'&&o.doubleQuote))return a.tokenize=function(m,C){return(C.tokenize=z(m.next(),!0))(m,C)},"keyword";if(o.commentSlashSlash&&r=="/"&&t.eat("/"))return t.skipToEnd(),"comment";if(o.commentHash&&r=="#"||r=="-"&&t.eat("-")&&(!o.commentSpaceRequired||t.eat(" ")))return t.skipToEnd(),"comment";if(r=="/"&&t.eat("*"))return a.tokenize=f(1),a.tokenize(t,a);if(r=="."){if(o.zerolessFloat&&t.match(/^(?:\d+(?:e[+-]?\d+)?)/i))return"number";if(t.match(/^\.+/))return null;if(o.ODBCdotTable&&t.match(/^[\w\d_$#]+/))return"type"}else{if(w.test(r))return t.eatWhile(w),"operator";if(U.test(r))return"bracket";if(q.test(r))return t.eatWhile(q),"punctuation";if(r=="{"&&(t.match(/^( )*(d|D|t|T|ts|TS)( )*'[^']*'( )*}/)||t.match(/^( )*(d|D|t|T|ts|TS)( )*"[^"]*"( )*}/)))return"number";t.eatWhile(/^[_\w\d]/);var l=t.current().toLowerCase();return R.hasOwnProperty(l)&&(t.match(/^( )+'[^']*'/)||t.match(/^( )+"[^"]*"/))?"number":g.hasOwnProperty(l)?"atom":p.hasOwnProperty(l)?"type":H.hasOwnProperty(l)?"keyword":c.hasOwnProperty(l)?"builtin":null}}function z(t,a){return function(r,i){for(var l=!1,m;(m=r.next())!=null;){if(m==t&&!l){i.tokenize=h;break}l=(I||a)&&!l&&m=="\\"}return"string"}}function f(t){return function(a,r){var i=a.match(/^.*?(\/\*|\*\/)/);return i?i[1]=="/*"?r.tokenize=f(t+1):t>1?r.tokenize=f(t-1):r.tokenize=h:a.skipToEnd(),"comment"}}function S(t,a,r){a.context={prev:a.context,indent:t.indentation(),col:t.column(),type:r}}function X(t){t.indent=t.context.indent,t.context=t.context.prev}return{name:"sql",startState:function(){return{tokenize:h,context:null}},token:function(t,a){if(t.sol()&&a.context&&a.context.align==null&&(a.context.align=!1),a.tokenize==h&&t.eatSpace())return null;var r=a.tokenize(t,a);if(r=="comment")return r;a.context&&a.context.align==null&&(a.context.align=!0);var i=t.current();return i=="("?S(t,a,")"):i=="["?S(t,a,"]"):a.context&&a.context.type==i&&X(a),r},indent:function(t,a,r){var i=t.context;if(!i)return null;var l=a.charAt(0)==i.type;return i.align?i.col+(l?0:1):i.indent+(l?0:r.unit)},languageData:{commentTokens:{line:o.commentSlashSlash?"//":o.commentHash?"#":"--",block:{open:"/*",close:"*/"}},closeBrackets:{brackets:["(","[","{","'",'"',"`"]}}}}function b(n){for(var c;(c=n.next())!=null;)if(c=="`"&&!n.eat("`"))return"string.special";return n.backUp(n.current().length-1),n.eatWhile(/\w/)?"string.special":null}function Q(n){for(var c;(c=n.next())!=null;)if(c=='"'&&!n.eat('"'))return"string.special";return n.backUp(n.current(