parent
9ec594ff90
commit
c0c95124dc
File diff suppressed because one or more lines are too long
@ -0,0 +1,475 @@
|
||||
"use strict";
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[12814],{
|
||||
|
||||
/***/ 12814:
|
||||
/*!**********************************************************************!*\
|
||||
!*** ./node_modules/monaco-editor/esm/vs/basic-languages/ecl/ecl.js ***!
|
||||
\**********************************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
||||
/* harmony export */ "conf": function() { return /* binding */ conf; },
|
||||
/* harmony export */ "language": function() { return /* binding */ language; }
|
||||
/* harmony export */ });
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
var conf = {
|
||||
comments: {
|
||||
lineComment: '//',
|
||||
blockComment: ['/*', '*/']
|
||||
},
|
||||
brackets: [
|
||||
['{', '}'],
|
||||
['[', ']'],
|
||||
['(', ')']
|
||||
],
|
||||
autoClosingPairs: [
|
||||
{ open: '{', close: '}' },
|
||||
{ open: '[', close: ']' },
|
||||
{ open: '(', close: ')' },
|
||||
{ open: "'", close: "'", notIn: ['string', 'comment'] },
|
||||
{ open: '"', close: '"', notIn: ['string', 'comment'] }
|
||||
],
|
||||
surroundingPairs: [
|
||||
{ open: '{', close: '}' },
|
||||
{ open: '[', close: ']' },
|
||||
{ open: '(', close: ')' },
|
||||
{ open: '<', close: '>' },
|
||||
{ open: "'", close: "'" },
|
||||
{ open: '"', close: '"' }
|
||||
]
|
||||
};
|
||||
var language = {
|
||||
defaultToken: '',
|
||||
tokenPostfix: '.ecl',
|
||||
ignoreCase: true,
|
||||
brackets: [
|
||||
{ open: '{', close: '}', token: 'delimiter.curly' },
|
||||
{ open: '[', close: ']', token: 'delimiter.square' },
|
||||
{ open: '(', close: ')', token: 'delimiter.parenthesis' },
|
||||
{ open: '<', close: '>', token: 'delimiter.angle' }
|
||||
],
|
||||
pounds: [
|
||||
'append',
|
||||
'break',
|
||||
'declare',
|
||||
'demangle',
|
||||
'end',
|
||||
'for',
|
||||
'getdatatype',
|
||||
'if',
|
||||
'inmodule',
|
||||
'loop',
|
||||
'mangle',
|
||||
'onwarning',
|
||||
'option',
|
||||
'set',
|
||||
'stored',
|
||||
'uniquename'
|
||||
].join('|'),
|
||||
keywords: [
|
||||
'__compressed__',
|
||||
'after',
|
||||
'all',
|
||||
'and',
|
||||
'any',
|
||||
'as',
|
||||
'atmost',
|
||||
'before',
|
||||
'beginc',
|
||||
'best',
|
||||
'between',
|
||||
'case',
|
||||
'cluster',
|
||||
'compressed',
|
||||
'compression',
|
||||
'const',
|
||||
'counter',
|
||||
'csv',
|
||||
'default',
|
||||
'descend',
|
||||
'embed',
|
||||
'encoding',
|
||||
'encrypt',
|
||||
'end',
|
||||
'endc',
|
||||
'endembed',
|
||||
'endmacro',
|
||||
'enum',
|
||||
'escape',
|
||||
'except',
|
||||
'exclusive',
|
||||
'expire',
|
||||
'export',
|
||||
'extend',
|
||||
'fail',
|
||||
'few',
|
||||
'fileposition',
|
||||
'first',
|
||||
'flat',
|
||||
'forward',
|
||||
'from',
|
||||
'full',
|
||||
'function',
|
||||
'functionmacro',
|
||||
'group',
|
||||
'grouped',
|
||||
'heading',
|
||||
'hole',
|
||||
'ifblock',
|
||||
'import',
|
||||
'in',
|
||||
'inner',
|
||||
'interface',
|
||||
'internal',
|
||||
'joined',
|
||||
'keep',
|
||||
'keyed',
|
||||
'last',
|
||||
'left',
|
||||
'limit',
|
||||
'linkcounted',
|
||||
'literal',
|
||||
'little_endian',
|
||||
'load',
|
||||
'local',
|
||||
'locale',
|
||||
'lookup',
|
||||
'lzw',
|
||||
'macro',
|
||||
'many',
|
||||
'maxcount',
|
||||
'maxlength',
|
||||
'min skew',
|
||||
'module',
|
||||
'mofn',
|
||||
'multiple',
|
||||
'named',
|
||||
'namespace',
|
||||
'nocase',
|
||||
'noroot',
|
||||
'noscan',
|
||||
'nosort',
|
||||
'not',
|
||||
'noxpath',
|
||||
'of',
|
||||
'onfail',
|
||||
'only',
|
||||
'opt',
|
||||
'or',
|
||||
'outer',
|
||||
'overwrite',
|
||||
'packed',
|
||||
'partition',
|
||||
'penalty',
|
||||
'physicallength',
|
||||
'pipe',
|
||||
'prefetch',
|
||||
'quote',
|
||||
'record',
|
||||
'repeat',
|
||||
'retry',
|
||||
'return',
|
||||
'right',
|
||||
'right1',
|
||||
'right2',
|
||||
'rows',
|
||||
'rowset',
|
||||
'scan',
|
||||
'scope',
|
||||
'self',
|
||||
'separator',
|
||||
'service',
|
||||
'shared',
|
||||
'skew',
|
||||
'skip',
|
||||
'smart',
|
||||
'soapaction',
|
||||
'sql',
|
||||
'stable',
|
||||
'store',
|
||||
'terminator',
|
||||
'thor',
|
||||
'threshold',
|
||||
'timelimit',
|
||||
'timeout',
|
||||
'token',
|
||||
'transform',
|
||||
'trim',
|
||||
'type',
|
||||
'unicodeorder',
|
||||
'unordered',
|
||||
'unsorted',
|
||||
'unstable',
|
||||
'update',
|
||||
'use',
|
||||
'validate',
|
||||
'virtual',
|
||||
'whole',
|
||||
'width',
|
||||
'wild',
|
||||
'within',
|
||||
'wnotrim',
|
||||
'xml',
|
||||
'xpath'
|
||||
],
|
||||
functions: [
|
||||
'abs',
|
||||
'acos',
|
||||
'aggregate',
|
||||
'allnodes',
|
||||
'apply',
|
||||
'ascii',
|
||||
'asin',
|
||||
'assert',
|
||||
'asstring',
|
||||
'atan',
|
||||
'atan2',
|
||||
'ave',
|
||||
'build',
|
||||
'buildindex',
|
||||
'case',
|
||||
'catch',
|
||||
'choose',
|
||||
'choosen',
|
||||
'choosesets',
|
||||
'clustersize',
|
||||
'combine',
|
||||
'correlation',
|
||||
'cos',
|
||||
'cosh',
|
||||
'count',
|
||||
'covariance',
|
||||
'cron',
|
||||
'dataset',
|
||||
'dedup',
|
||||
'define',
|
||||
'denormalize',
|
||||
'dictionary',
|
||||
'distribute',
|
||||
'distributed',
|
||||
'distribution',
|
||||
'ebcdic',
|
||||
'enth',
|
||||
'error',
|
||||
'evaluate',
|
||||
'event',
|
||||
'eventextra',
|
||||
'eventname',
|
||||
'exists',
|
||||
'exp',
|
||||
'fail',
|
||||
'failcode',
|
||||
'failmessage',
|
||||
'fetch',
|
||||
'fromunicode',
|
||||
'fromxml',
|
||||
'getenv',
|
||||
'getisvalid',
|
||||
'global',
|
||||
'graph',
|
||||
'group',
|
||||
'hash',
|
||||
'hash32',
|
||||
'hash64',
|
||||
'hashcrc',
|
||||
'hashmd5',
|
||||
'having',
|
||||
'httpcall',
|
||||
'httpheader',
|
||||
'if',
|
||||
'iff',
|
||||
'index',
|
||||
'intformat',
|
||||
'isvalid',
|
||||
'iterate',
|
||||
'join',
|
||||
'keydiff',
|
||||
'keypatch',
|
||||
'keyunicode',
|
||||
'length',
|
||||
'library',
|
||||
'limit',
|
||||
'ln',
|
||||
'loadxml',
|
||||
'local',
|
||||
'log',
|
||||
'loop',
|
||||
'map',
|
||||
'matched',
|
||||
'matchlength',
|
||||
'matchposition',
|
||||
'matchtext',
|
||||
'matchunicode',
|
||||
'max',
|
||||
'merge',
|
||||
'mergejoin',
|
||||
'min',
|
||||
'nofold',
|
||||
'nolocal',
|
||||
'nonempty',
|
||||
'normalize',
|
||||
'nothor',
|
||||
'notify',
|
||||
'output',
|
||||
'parallel',
|
||||
'parse',
|
||||
'pipe',
|
||||
'power',
|
||||
'preload',
|
||||
'process',
|
||||
'project',
|
||||
'pull',
|
||||
'random',
|
||||
'range',
|
||||
'rank',
|
||||
'ranked',
|
||||
'realformat',
|
||||
'recordof',
|
||||
'regexfind',
|
||||
'regexreplace',
|
||||
'regroup',
|
||||
'rejected',
|
||||
'rollup',
|
||||
'round',
|
||||
'roundup',
|
||||
'row',
|
||||
'rowdiff',
|
||||
'sample',
|
||||
'sequential',
|
||||
'set',
|
||||
'sin',
|
||||
'sinh',
|
||||
'sizeof',
|
||||
'soapcall',
|
||||
'sort',
|
||||
'sorted',
|
||||
'sqrt',
|
||||
'stepped',
|
||||
'stored',
|
||||
'sum',
|
||||
'table',
|
||||
'tan',
|
||||
'tanh',
|
||||
'thisnode',
|
||||
'topn',
|
||||
'tounicode',
|
||||
'toxml',
|
||||
'transfer',
|
||||
'transform',
|
||||
'trim',
|
||||
'truncate',
|
||||
'typeof',
|
||||
'ungroup',
|
||||
'unicodeorder',
|
||||
'variance',
|
||||
'wait',
|
||||
'which',
|
||||
'workunit',
|
||||
'xmldecode',
|
||||
'xmlencode',
|
||||
'xmltext',
|
||||
'xmlunicode'
|
||||
],
|
||||
typesint: ['integer', 'unsigned'].join('|'),
|
||||
typesnum: ['data', 'qstring', 'string', 'unicode', 'utf8', 'varstring', 'varunicode'],
|
||||
typesone: [
|
||||
'ascii',
|
||||
'big_endian',
|
||||
'boolean',
|
||||
'data',
|
||||
'decimal',
|
||||
'ebcdic',
|
||||
'grouped',
|
||||
'integer',
|
||||
'linkcounted',
|
||||
'pattern',
|
||||
'qstring',
|
||||
'real',
|
||||
'record',
|
||||
'rule',
|
||||
'set of',
|
||||
'streamed',
|
||||
'string',
|
||||
'token',
|
||||
'udecimal',
|
||||
'unicode',
|
||||
'unsigned',
|
||||
'utf8',
|
||||
'varstring',
|
||||
'varunicode'
|
||||
].join('|'),
|
||||
operators: ['+', '-', '/', ':=', '<', '<>', '=', '>', '\\', 'and', 'in', 'not', 'or'],
|
||||
symbols: /[=><!~?:&|+\-*\/\^%]+/,
|
||||
// escape sequences
|
||||
escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
|
||||
// The main tokenizer for our languages
|
||||
tokenizer: {
|
||||
root: [
|
||||
[/@typesint[4|8]/, 'type'],
|
||||
[/#(@pounds)/, 'type'],
|
||||
[/@typesone/, 'type'],
|
||||
[
|
||||
/[a-zA-Z_$][\w-$]*/,
|
||||
{
|
||||
cases: {
|
||||
'@functions': 'keyword.function',
|
||||
'@keywords': 'keyword',
|
||||
'@operators': 'operator'
|
||||
}
|
||||
}
|
||||
],
|
||||
// whitespace
|
||||
{ include: '@whitespace' },
|
||||
[/[{}()\[\]]/, '@brackets'],
|
||||
[/[<>](?!@symbols)/, '@brackets'],
|
||||
[
|
||||
/@symbols/,
|
||||
{
|
||||
cases: {
|
||||
'@operators': 'delimiter',
|
||||
'@default': ''
|
||||
}
|
||||
}
|
||||
],
|
||||
// numbers
|
||||
[/[0-9_]*\.[0-9_]+([eE][\-+]?\d+)?/, 'number.float'],
|
||||
[/0[xX][0-9a-fA-F_]+/, 'number.hex'],
|
||||
[/0[bB][01]+/, 'number.hex'],
|
||||
[/[0-9_]+/, 'number'],
|
||||
// delimiter: after number because of .\d floats
|
||||
[/[;,.]/, 'delimiter'],
|
||||
// strings
|
||||
[/"([^"\\]|\\.)*$/, 'string.invalid'],
|
||||
[/"/, 'string', '@string'],
|
||||
// characters
|
||||
[/'[^\\']'/, 'string'],
|
||||
[/(')(@escapes)(')/, ['string', 'string.escape', 'string']],
|
||||
[/'/, 'string.invalid']
|
||||
],
|
||||
whitespace: [
|
||||
[/[ \t\v\f\r\n]+/, ''],
|
||||
[/\/\*/, 'comment', '@comment'],
|
||||
[/\/\/.*$/, 'comment']
|
||||
],
|
||||
comment: [
|
||||
[/[^\/*]+/, 'comment'],
|
||||
[/\*\//, 'comment', '@pop'],
|
||||
[/[\/*]/, 'comment']
|
||||
],
|
||||
string: [
|
||||
[/[^\\']+/, 'string'],
|
||||
[/@escapes/, 'string.escape'],
|
||||
[/\\./, 'string.escape.invalid'],
|
||||
[/'/, 'string', '@pop']
|
||||
]
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
/***/ })
|
||||
|
||||
}]);
|
||||
@ -0,0 +1,165 @@
|
||||
"use strict";
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[14188],{
|
||||
|
||||
/***/ 14188:
|
||||
/*!**************************************************************************!*\
|
||||
!*** ./node_modules/monaco-editor/esm/vs/basic-languages/flow9/flow9.js ***!
|
||||
\**************************************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
||||
/* harmony export */ "conf": function() { return /* binding */ conf; },
|
||||
/* harmony export */ "language": function() { return /* binding */ language; }
|
||||
/* harmony export */ });
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
var conf = {
|
||||
comments: {
|
||||
blockComment: ['/*', '*/'],
|
||||
lineComment: '//'
|
||||
},
|
||||
brackets: [
|
||||
['{', '}'],
|
||||
['[', ']'],
|
||||
['(', ')']
|
||||
],
|
||||
autoClosingPairs: [
|
||||
{ open: '{', close: '}', notIn: ['string'] },
|
||||
{ open: '[', close: ']', notIn: ['string'] },
|
||||
{ open: '(', close: ')', notIn: ['string'] },
|
||||
{ open: '"', close: '"', notIn: ['string'] },
|
||||
{ open: "'", close: "'", notIn: ['string'] }
|
||||
],
|
||||
surroundingPairs: [
|
||||
{ open: '{', close: '}' },
|
||||
{ open: '[', close: ']' },
|
||||
{ open: '(', close: ')' },
|
||||
{ open: '"', close: '"' },
|
||||
{ open: "'", close: "'" },
|
||||
{ open: '<', close: '>' }
|
||||
]
|
||||
};
|
||||
var language = {
|
||||
defaultToken: '',
|
||||
tokenPostfix: '.flow',
|
||||
keywords: [
|
||||
'import',
|
||||
'require',
|
||||
'export',
|
||||
'forbid',
|
||||
'native',
|
||||
'if',
|
||||
'else',
|
||||
'cast',
|
||||
'unsafe',
|
||||
'switch',
|
||||
'default'
|
||||
],
|
||||
types: [
|
||||
'io',
|
||||
'mutable',
|
||||
'bool',
|
||||
'int',
|
||||
'double',
|
||||
'string',
|
||||
'flow',
|
||||
'void',
|
||||
'ref',
|
||||
'true',
|
||||
'false',
|
||||
'with'
|
||||
],
|
||||
operators: [
|
||||
'=',
|
||||
'>',
|
||||
'<',
|
||||
'<=',
|
||||
'>=',
|
||||
'==',
|
||||
'!',
|
||||
'!=',
|
||||
':=',
|
||||
'::=',
|
||||
'&&',
|
||||
'||',
|
||||
'+',
|
||||
'-',
|
||||
'*',
|
||||
'/',
|
||||
'@',
|
||||
'&',
|
||||
'%',
|
||||
':',
|
||||
'->',
|
||||
'\\',
|
||||
'$',
|
||||
'??',
|
||||
'^'
|
||||
],
|
||||
symbols: /[@$=><!~?:&|+\-*\\\/\^%]+/,
|
||||
escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
|
||||
// The main tokenizer for our languages
|
||||
tokenizer: {
|
||||
root: [
|
||||
// identifiers and keywords
|
||||
[
|
||||
/[a-zA-Z_]\w*/,
|
||||
{
|
||||
cases: {
|
||||
'@keywords': 'keyword',
|
||||
'@types': 'type',
|
||||
'@default': 'identifier'
|
||||
}
|
||||
}
|
||||
],
|
||||
// whitespace
|
||||
{ include: '@whitespace' },
|
||||
// delimiters and operators
|
||||
[/[{}()\[\]]/, 'delimiter'],
|
||||
[/[<>](?!@symbols)/, 'delimiter'],
|
||||
[
|
||||
/@symbols/,
|
||||
{
|
||||
cases: {
|
||||
'@operators': 'delimiter',
|
||||
'@default': ''
|
||||
}
|
||||
}
|
||||
],
|
||||
// numbers
|
||||
[
|
||||
/((0(x|X)[0-9a-fA-F]*)|(([0-9]+\.?[0-9]*)|(\.[0-9]+))((e|E)(\+|-)?[0-9]+)?)/,
|
||||
'number'
|
||||
],
|
||||
// delimiter: after number because of .\d floats
|
||||
[/[;,.]/, 'delimiter'],
|
||||
// strings
|
||||
[/"([^"\\]|\\.)*$/, 'string.invalid'],
|
||||
[/"/, 'string', '@string']
|
||||
],
|
||||
whitespace: [
|
||||
[/[ \t\r\n]+/, ''],
|
||||
[/\/\*/, 'comment', '@comment'],
|
||||
[/\/\/.*$/, 'comment']
|
||||
],
|
||||
comment: [
|
||||
[/[^\/*]+/, 'comment'],
|
||||
[/\*\//, 'comment', '@pop'],
|
||||
[/[\/*]/, 'comment']
|
||||
],
|
||||
string: [
|
||||
[/[^\\"]+/, 'string'],
|
||||
[/@escapes/, 'string.escape'],
|
||||
[/\\./, 'string.escape.invalid'],
|
||||
[/"/, 'string', '@pop']
|
||||
]
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
/***/ })
|
||||
|
||||
}]);
|
||||
@ -0,0 +1,157 @@
|
||||
"use strict";
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[23682],{
|
||||
|
||||
/***/ 23682:
|
||||
/*!**********************************************************************!*\
|
||||
!*** ./node_modules/monaco-editor/esm/vs/basic-languages/pla/pla.js ***!
|
||||
\**********************************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
||||
/* harmony export */ "conf": function() { return /* binding */ conf; },
|
||||
/* harmony export */ "language": function() { return /* binding */ language; }
|
||||
/* harmony export */ });
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
var conf = {
|
||||
comments: {
|
||||
lineComment: '#'
|
||||
},
|
||||
brackets: [
|
||||
['[', ']'],
|
||||
['<', '>'],
|
||||
['(', ')']
|
||||
],
|
||||
autoClosingPairs: [
|
||||
{ open: '[', close: ']' },
|
||||
{ open: '<', close: '>' },
|
||||
{ open: '(', close: ')' }
|
||||
],
|
||||
surroundingPairs: [
|
||||
{ open: '[', close: ']' },
|
||||
{ open: '<', close: '>' },
|
||||
{ open: '(', close: ')' }
|
||||
]
|
||||
};
|
||||
var language = {
|
||||
defaultToken: '',
|
||||
tokenPostfix: '.pla',
|
||||
brackets: [
|
||||
{ open: '[', close: ']', token: 'delimiter.square' },
|
||||
{ open: '<', close: '>', token: 'delimiter.angle' },
|
||||
{ open: '(', close: ')', token: 'delimiter.parenthesis' }
|
||||
],
|
||||
keywords: [
|
||||
'.i',
|
||||
'.o',
|
||||
'.mv',
|
||||
'.ilb',
|
||||
'.ob',
|
||||
'.label',
|
||||
'.type',
|
||||
'.phase',
|
||||
'.pair',
|
||||
'.symbolic',
|
||||
'.symbolic-output',
|
||||
'.kiss',
|
||||
'.p',
|
||||
'.e',
|
||||
'.end'
|
||||
],
|
||||
// regular expressions
|
||||
comment: /#.*$/,
|
||||
identifier: /[a-zA-Z]+[a-zA-Z0-9_\-]*/,
|
||||
plaContent: /[01\-~\|]+/,
|
||||
// The main tokenizer for our languages
|
||||
tokenizer: {
|
||||
root: [
|
||||
// comments and whitespace
|
||||
{ include: '@whitespace' },
|
||||
[/@comment/, 'comment'],
|
||||
// keyword
|
||||
[
|
||||
/\.([a-zA-Z_\-]+)/,
|
||||
{
|
||||
cases: {
|
||||
'@eos': { token: 'keyword.$1' },
|
||||
'@keywords': {
|
||||
cases: {
|
||||
'.type': { token: 'keyword.$1', next: '@type' },
|
||||
'@default': { token: 'keyword.$1', next: '@keywordArg' }
|
||||
}
|
||||
},
|
||||
'@default': { token: 'keyword.$1' }
|
||||
}
|
||||
}
|
||||
],
|
||||
// identifiers
|
||||
[/@identifier/, 'identifier'],
|
||||
// PLA row
|
||||
[/@plaContent/, 'string']
|
||||
],
|
||||
whitespace: [[/[ \t\r\n]+/, '']],
|
||||
type: [{ include: '@whitespace' }, [/\w+/, { token: 'type', next: '@pop' }]],
|
||||
keywordArg: [
|
||||
// whitespace
|
||||
[
|
||||
/[ \t\r\n]+/,
|
||||
{
|
||||
cases: {
|
||||
'@eos': { token: '', next: '@pop' },
|
||||
'@default': ''
|
||||
}
|
||||
}
|
||||
],
|
||||
// comments
|
||||
[/@comment/, 'comment', '@pop'],
|
||||
// brackets
|
||||
[
|
||||
/[<>()\[\]]/,
|
||||
{
|
||||
cases: {
|
||||
'@eos': { token: '@brackets', next: '@pop' },
|
||||
'@default': '@brackets'
|
||||
}
|
||||
}
|
||||
],
|
||||
// numbers
|
||||
[
|
||||
/\-?\d+/,
|
||||
{
|
||||
cases: {
|
||||
'@eos': { token: 'number', next: '@pop' },
|
||||
'@default': 'number'
|
||||
}
|
||||
}
|
||||
],
|
||||
// identifiers
|
||||
[
|
||||
/@identifier/,
|
||||
{
|
||||
cases: {
|
||||
'@eos': { token: 'identifier', next: '@pop' },
|
||||
'@default': 'identifier'
|
||||
}
|
||||
}
|
||||
],
|
||||
// delimiter
|
||||
[
|
||||
/[;=]/,
|
||||
{
|
||||
cases: {
|
||||
'@eos': { token: 'delimiter', next: '@pop' },
|
||||
'@default': 'delimiter'
|
||||
}
|
||||
}
|
||||
]
|
||||
]
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
/***/ })
|
||||
|
||||
}]);
|
||||
@ -1,705 +0,0 @@
|
||||
"use strict";
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[2441],{
|
||||
|
||||
/***/ 84567:
|
||||
/*!************************************************************!*\
|
||||
!*** ./node_modules/antd/es/checkbox/index.js + 3 modules ***!
|
||||
\************************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
|
||||
// EXPORTS
|
||||
__webpack_require__.d(__webpack_exports__, {
|
||||
"Z": function() { return /* binding */ es_checkbox; }
|
||||
});
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/classnames/index.js
|
||||
var classnames = __webpack_require__(94184);
|
||||
var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames);
|
||||
// EXTERNAL MODULE: ./node_modules/rc-checkbox/es/index.js + 5 modules
|
||||
var es = __webpack_require__(95860);
|
||||
// EXTERNAL MODULE: ./node_modules/react/index.js
|
||||
var react = __webpack_require__(67294);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/config-provider/context.js
|
||||
var config_provider_context = __webpack_require__(53124);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/config-provider/DisabledContext.js
|
||||
var DisabledContext = __webpack_require__(98866);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/form/context.js
|
||||
var context = __webpack_require__(65223);
|
||||
;// CONCATENATED MODULE: ./node_modules/antd/es/checkbox/GroupContext.js
|
||||
|
||||
const GroupContext = /*#__PURE__*/react.createContext(null);
|
||||
/* harmony default export */ var checkbox_GroupContext = (GroupContext);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/checkbox/style/index.js
|
||||
var checkbox_style = __webpack_require__(63185);
|
||||
;// CONCATENATED MODULE: ./node_modules/antd/es/checkbox/Checkbox.js
|
||||
var __rest = undefined && undefined.__rest || function (s, e) {
|
||||
var t = {};
|
||||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
||||
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
||||
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
||||
}
|
||||
return t;
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
const InternalCheckbox = (props, ref) => {
|
||||
var _a;
|
||||
const {
|
||||
prefixCls: customizePrefixCls,
|
||||
className,
|
||||
rootClassName,
|
||||
children,
|
||||
indeterminate = false,
|
||||
style,
|
||||
onMouseEnter,
|
||||
onMouseLeave,
|
||||
skipGroup = false,
|
||||
disabled
|
||||
} = props,
|
||||
restProps = __rest(props, ["prefixCls", "className", "rootClassName", "children", "indeterminate", "style", "onMouseEnter", "onMouseLeave", "skipGroup", "disabled"]);
|
||||
const {
|
||||
getPrefixCls,
|
||||
direction,
|
||||
checkbox
|
||||
} = react.useContext(config_provider_context/* ConfigContext */.E_);
|
||||
const checkboxGroup = react.useContext(checkbox_GroupContext);
|
||||
const {
|
||||
isFormItemInput
|
||||
} = react.useContext(context/* FormItemInputContext */.aM);
|
||||
const contextDisabled = react.useContext(DisabledContext/* default */.Z);
|
||||
const mergedDisabled = (_a = (checkboxGroup === null || checkboxGroup === void 0 ? void 0 : checkboxGroup.disabled) || disabled) !== null && _a !== void 0 ? _a : contextDisabled;
|
||||
const prevValue = react.useRef(restProps.value);
|
||||
react.useEffect(() => {
|
||||
checkboxGroup === null || checkboxGroup === void 0 ? void 0 : checkboxGroup.registerValue(restProps.value);
|
||||
false ? 0 : void 0;
|
||||
}, []);
|
||||
react.useEffect(() => {
|
||||
if (skipGroup) {
|
||||
return;
|
||||
}
|
||||
if (restProps.value !== prevValue.current) {
|
||||
checkboxGroup === null || checkboxGroup === void 0 ? void 0 : checkboxGroup.cancelValue(prevValue.current);
|
||||
checkboxGroup === null || checkboxGroup === void 0 ? void 0 : checkboxGroup.registerValue(restProps.value);
|
||||
prevValue.current = restProps.value;
|
||||
}
|
||||
return () => checkboxGroup === null || checkboxGroup === void 0 ? void 0 : checkboxGroup.cancelValue(restProps.value);
|
||||
}, [restProps.value]);
|
||||
const prefixCls = getPrefixCls('checkbox', customizePrefixCls);
|
||||
const [wrapSSR, hashId] = (0,checkbox_style/* default */.ZP)(prefixCls);
|
||||
const checkboxProps = Object.assign({}, restProps);
|
||||
if (checkboxGroup && !skipGroup) {
|
||||
checkboxProps.onChange = function () {
|
||||
if (restProps.onChange) {
|
||||
restProps.onChange.apply(restProps, arguments);
|
||||
}
|
||||
if (checkboxGroup.toggleOption) {
|
||||
checkboxGroup.toggleOption({
|
||||
label: children,
|
||||
value: restProps.value
|
||||
});
|
||||
}
|
||||
};
|
||||
checkboxProps.name = checkboxGroup.name;
|
||||
checkboxProps.checked = checkboxGroup.value.includes(restProps.value);
|
||||
}
|
||||
const classString = classnames_default()(`${prefixCls}-wrapper`, {
|
||||
[`${prefixCls}-rtl`]: direction === 'rtl',
|
||||
[`${prefixCls}-wrapper-checked`]: checkboxProps.checked,
|
||||
[`${prefixCls}-wrapper-disabled`]: mergedDisabled,
|
||||
[`${prefixCls}-wrapper-in-form-item`]: isFormItemInput
|
||||
}, checkbox === null || checkbox === void 0 ? void 0 : checkbox.className, className, rootClassName, hashId);
|
||||
const checkboxClass = classnames_default()({
|
||||
[`${prefixCls}-indeterminate`]: indeterminate
|
||||
}, hashId);
|
||||
const ariaChecked = indeterminate ? 'mixed' : undefined;
|
||||
return wrapSSR(
|
||||
/*#__PURE__*/
|
||||
// eslint-disable-next-line jsx-a11y/label-has-associated-control
|
||||
react.createElement("label", {
|
||||
className: classString,
|
||||
style: Object.assign(Object.assign({}, checkbox === null || checkbox === void 0 ? void 0 : checkbox.style), style),
|
||||
onMouseEnter: onMouseEnter,
|
||||
onMouseLeave: onMouseLeave
|
||||
}, /*#__PURE__*/react.createElement(es/* default */.Z, Object.assign({
|
||||
"aria-checked": ariaChecked
|
||||
}, checkboxProps, {
|
||||
prefixCls: prefixCls,
|
||||
className: checkboxClass,
|
||||
disabled: mergedDisabled,
|
||||
ref: ref
|
||||
})), children !== undefined && /*#__PURE__*/react.createElement("span", null, children)));
|
||||
};
|
||||
const Checkbox = /*#__PURE__*/react.forwardRef(InternalCheckbox);
|
||||
if (false) {}
|
||||
/* harmony default export */ var checkbox_Checkbox = (Checkbox);
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + 2 modules
|
||||
var toConsumableArray = __webpack_require__(74902);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/node_modules/rc-util/es/omit.js
|
||||
var omit = __webpack_require__(10366);
|
||||
;// CONCATENATED MODULE: ./node_modules/antd/es/checkbox/Group.js
|
||||
|
||||
var Group_rest = undefined && undefined.__rest || function (s, e) {
|
||||
var t = {};
|
||||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
||||
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
||||
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
||||
}
|
||||
return t;
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
const InternalGroup = (props, ref) => {
|
||||
const {
|
||||
defaultValue,
|
||||
children,
|
||||
options = [],
|
||||
prefixCls: customizePrefixCls,
|
||||
className,
|
||||
rootClassName,
|
||||
style,
|
||||
onChange
|
||||
} = props,
|
||||
restProps = Group_rest(props, ["defaultValue", "children", "options", "prefixCls", "className", "rootClassName", "style", "onChange"]);
|
||||
const {
|
||||
getPrefixCls,
|
||||
direction
|
||||
} = react.useContext(config_provider_context/* ConfigContext */.E_);
|
||||
const [value, setValue] = react.useState(restProps.value || defaultValue || []);
|
||||
const [registeredValues, setRegisteredValues] = react.useState([]);
|
||||
react.useEffect(() => {
|
||||
if ('value' in restProps) {
|
||||
setValue(restProps.value || []);
|
||||
}
|
||||
}, [restProps.value]);
|
||||
const memoOptions = react.useMemo(() => options.map(option => {
|
||||
if (typeof option === 'string' || typeof option === 'number') {
|
||||
return {
|
||||
label: option,
|
||||
value: option
|
||||
};
|
||||
}
|
||||
return option;
|
||||
}), [options]);
|
||||
const cancelValue = val => {
|
||||
setRegisteredValues(prevValues => prevValues.filter(v => v !== val));
|
||||
};
|
||||
const registerValue = val => {
|
||||
setRegisteredValues(prevValues => [].concat((0,toConsumableArray/* default */.Z)(prevValues), [val]));
|
||||
};
|
||||
const toggleOption = option => {
|
||||
const optionIndex = value.indexOf(option.value);
|
||||
const newValue = (0,toConsumableArray/* default */.Z)(value);
|
||||
if (optionIndex === -1) {
|
||||
newValue.push(option.value);
|
||||
} else {
|
||||
newValue.splice(optionIndex, 1);
|
||||
}
|
||||
if (!('value' in restProps)) {
|
||||
setValue(newValue);
|
||||
}
|
||||
onChange === null || onChange === void 0 ? void 0 : onChange(newValue.filter(val => registeredValues.includes(val)).sort((a, b) => {
|
||||
const indexA = memoOptions.findIndex(opt => opt.value === a);
|
||||
const indexB = memoOptions.findIndex(opt => opt.value === b);
|
||||
return indexA - indexB;
|
||||
}));
|
||||
};
|
||||
const prefixCls = getPrefixCls('checkbox', customizePrefixCls);
|
||||
const groupPrefixCls = `${prefixCls}-group`;
|
||||
const [wrapSSR, hashId] = (0,checkbox_style/* default */.ZP)(prefixCls);
|
||||
const domProps = (0,omit/* default */.Z)(restProps, ['value', 'disabled']);
|
||||
const childrenNode = options.length ? memoOptions.map(option => /*#__PURE__*/react.createElement(checkbox_Checkbox, {
|
||||
prefixCls: prefixCls,
|
||||
key: option.value.toString(),
|
||||
disabled: 'disabled' in option ? option.disabled : restProps.disabled,
|
||||
value: option.value,
|
||||
checked: value.includes(option.value),
|
||||
onChange: option.onChange,
|
||||
className: `${groupPrefixCls}-item`,
|
||||
style: option.style,
|
||||
title: option.title
|
||||
}, option.label)) : children;
|
||||
// eslint-disable-next-line react/jsx-no-constructed-context-values
|
||||
const context = {
|
||||
toggleOption,
|
||||
value,
|
||||
disabled: restProps.disabled,
|
||||
name: restProps.name,
|
||||
// https://github.com/ant-design/ant-design/issues/16376
|
||||
registerValue,
|
||||
cancelValue
|
||||
};
|
||||
const classString = classnames_default()(groupPrefixCls, {
|
||||
[`${groupPrefixCls}-rtl`]: direction === 'rtl'
|
||||
}, className, rootClassName, hashId);
|
||||
return wrapSSR( /*#__PURE__*/react.createElement("div", Object.assign({
|
||||
className: classString,
|
||||
style: style
|
||||
}, domProps, {
|
||||
ref: ref
|
||||
}), /*#__PURE__*/react.createElement(checkbox_GroupContext.Provider, {
|
||||
value: context
|
||||
}, childrenNode)));
|
||||
};
|
||||
|
||||
const CheckboxGroup = /*#__PURE__*/react.forwardRef(InternalGroup);
|
||||
/* harmony default export */ var Group = (/*#__PURE__*/react.memo(CheckboxGroup));
|
||||
;// CONCATENATED MODULE: ./node_modules/antd/es/checkbox/index.js
|
||||
'use client';
|
||||
|
||||
|
||||
|
||||
const es_checkbox_Checkbox = checkbox_Checkbox;
|
||||
es_checkbox_Checkbox.Group = Group;
|
||||
es_checkbox_Checkbox.__ANT_CHECKBOX = true;
|
||||
if (false) {}
|
||||
/* harmony default export */ var es_checkbox = (es_checkbox_Checkbox);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 63185:
|
||||
/*!******************************************************!*\
|
||||
!*** ./node_modules/antd/es/checkbox/style/index.js ***!
|
||||
\******************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
||||
/* harmony export */ "C2": function() { return /* binding */ getStyle; }
|
||||
/* harmony export */ });
|
||||
/* unused harmony export genCheckboxStyle */
|
||||
/* harmony import */ var _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @ant-design/cssinjs */ 73559);
|
||||
/* harmony import */ var _style__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../style */ 14747);
|
||||
/* harmony import */ var _theme_internal__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../theme/internal */ 45503);
|
||||
/* harmony import */ var _theme_internal__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../theme/internal */ 67968);
|
||||
|
||||
|
||||
|
||||
// ============================== Motion ==============================
|
||||
const antCheckboxEffect = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antCheckboxEffect', {
|
||||
'0%': {
|
||||
transform: 'scale(1)',
|
||||
opacity: 0.5
|
||||
},
|
||||
'100%': {
|
||||
transform: 'scale(1.6)',
|
||||
opacity: 0
|
||||
}
|
||||
});
|
||||
// ============================== Styles ==============================
|
||||
const genCheckboxStyle = token => {
|
||||
const {
|
||||
checkboxCls
|
||||
} = token;
|
||||
const wrapperCls = `${checkboxCls}-wrapper`;
|
||||
return [
|
||||
// ===================== Basic =====================
|
||||
{
|
||||
// Group
|
||||
[`${checkboxCls}-group`]: Object.assign(Object.assign({}, (0,_style__WEBPACK_IMPORTED_MODULE_1__/* .resetComponent */ .Wf)(token)), {
|
||||
display: 'inline-flex',
|
||||
flexWrap: 'wrap',
|
||||
columnGap: token.marginXS,
|
||||
// Group > Grid
|
||||
[`> ${token.antCls}-row`]: {
|
||||
flex: 1
|
||||
}
|
||||
}),
|
||||
// Wrapper
|
||||
[wrapperCls]: Object.assign(Object.assign({}, (0,_style__WEBPACK_IMPORTED_MODULE_1__/* .resetComponent */ .Wf)(token)), {
|
||||
display: 'inline-flex',
|
||||
alignItems: 'baseline',
|
||||
cursor: 'pointer',
|
||||
// Fix checkbox & radio in flex align #30260
|
||||
'&:after': {
|
||||
display: 'inline-block',
|
||||
width: 0,
|
||||
overflow: 'hidden',
|
||||
content: "'\\a0'"
|
||||
},
|
||||
// Checkbox near checkbox
|
||||
[`& + ${wrapperCls}`]: {
|
||||
marginInlineStart: 0
|
||||
},
|
||||
[`&${wrapperCls}-in-form-item`]: {
|
||||
'input[type="checkbox"]': {
|
||||
width: 14,
|
||||
height: 14 // FIXME: magic
|
||||
}
|
||||
}
|
||||
}),
|
||||
|
||||
// Wrapper > Checkbox
|
||||
[checkboxCls]: Object.assign(Object.assign({}, (0,_style__WEBPACK_IMPORTED_MODULE_1__/* .resetComponent */ .Wf)(token)), {
|
||||
position: 'relative',
|
||||
whiteSpace: 'nowrap',
|
||||
lineHeight: 1,
|
||||
cursor: 'pointer',
|
||||
// To make alignment right when `controlHeight` is changed
|
||||
// Ref: https://github.com/ant-design/ant-design/issues/41564
|
||||
alignSelf: 'center',
|
||||
// Wrapper > Checkbox > input
|
||||
[`${checkboxCls}-input`]: {
|
||||
position: 'absolute',
|
||||
// Since baseline align will get additional space offset,
|
||||
// we need to move input to top to make it align with text.
|
||||
// Ref: https://github.com/ant-design/ant-design/issues/38926#issuecomment-1486137799
|
||||
inset: 0,
|
||||
zIndex: 1,
|
||||
cursor: 'pointer',
|
||||
opacity: 0,
|
||||
margin: 0,
|
||||
[`&:focus-visible + ${checkboxCls}-inner`]: Object.assign({}, (0,_style__WEBPACK_IMPORTED_MODULE_1__/* .genFocusOutline */ .oN)(token))
|
||||
},
|
||||
// Wrapper > Checkbox > inner
|
||||
[`${checkboxCls}-inner`]: {
|
||||
boxSizing: 'border-box',
|
||||
position: 'relative',
|
||||
top: 0,
|
||||
insetInlineStart: 0,
|
||||
display: 'block',
|
||||
width: token.checkboxSize,
|
||||
height: token.checkboxSize,
|
||||
direction: 'ltr',
|
||||
backgroundColor: token.colorBgContainer,
|
||||
border: `${token.lineWidth}px ${token.lineType} ${token.colorBorder}`,
|
||||
borderRadius: token.borderRadiusSM,
|
||||
borderCollapse: 'separate',
|
||||
transition: `all ${token.motionDurationSlow}`,
|
||||
'&:after': {
|
||||
boxSizing: 'border-box',
|
||||
position: 'absolute',
|
||||
top: '50%',
|
||||
insetInlineStart: '21.5%',
|
||||
display: 'table',
|
||||
width: token.checkboxSize / 14 * 5,
|
||||
height: token.checkboxSize / 14 * 8,
|
||||
border: `${token.lineWidthBold}px solid ${token.colorWhite}`,
|
||||
borderTop: 0,
|
||||
borderInlineStart: 0,
|
||||
transform: 'rotate(45deg) scale(0) translate(-50%,-50%)',
|
||||
opacity: 0,
|
||||
content: '""',
|
||||
transition: `all ${token.motionDurationFast} ${token.motionEaseInBack}, opacity ${token.motionDurationFast}`
|
||||
}
|
||||
},
|
||||
// Wrapper > Checkbox + Text
|
||||
'& + span': {
|
||||
paddingInlineStart: token.paddingXS,
|
||||
paddingInlineEnd: token.paddingXS
|
||||
}
|
||||
})
|
||||
},
|
||||
// ===================== Hover =====================
|
||||
{
|
||||
// Wrapper
|
||||
[`${wrapperCls}:hover ${checkboxCls}:after`]: {
|
||||
visibility: 'visible'
|
||||
},
|
||||
// Wrapper & Wrapper > Checkbox
|
||||
[`
|
||||
${wrapperCls}:not(${wrapperCls}-disabled),
|
||||
${checkboxCls}:not(${checkboxCls}-disabled)
|
||||
`]: {
|
||||
[`&:hover ${checkboxCls}-inner`]: {
|
||||
borderColor: token.colorPrimary
|
||||
}
|
||||
},
|
||||
[`${wrapperCls}:not(${wrapperCls}-disabled)`]: {
|
||||
[`&:hover ${checkboxCls}-checked:not(${checkboxCls}-disabled) ${checkboxCls}-inner`]: {
|
||||
backgroundColor: token.colorPrimaryHover,
|
||||
borderColor: 'transparent'
|
||||
},
|
||||
[`&:hover ${checkboxCls}-checked:not(${checkboxCls}-disabled):after`]: {
|
||||
borderColor: token.colorPrimaryHover
|
||||
}
|
||||
}
|
||||
},
|
||||
// ==================== Checked ====================
|
||||
{
|
||||
// Wrapper > Checkbox
|
||||
[`${checkboxCls}-checked`]: {
|
||||
[`${checkboxCls}-inner`]: {
|
||||
backgroundColor: token.colorPrimary,
|
||||
borderColor: token.colorPrimary,
|
||||
'&:after': {
|
||||
opacity: 1,
|
||||
transform: 'rotate(45deg) scale(1) translate(-50%,-50%)',
|
||||
transition: `all ${token.motionDurationMid} ${token.motionEaseOutBack} ${token.motionDurationFast}`
|
||||
}
|
||||
},
|
||||
// Checked Effect
|
||||
'&:after': {
|
||||
position: 'absolute',
|
||||
top: 0,
|
||||
insetInlineStart: 0,
|
||||
width: '100%',
|
||||
height: '100%',
|
||||
borderRadius: token.borderRadiusSM,
|
||||
visibility: 'hidden',
|
||||
border: `${token.lineWidthBold}px solid ${token.colorPrimary}`,
|
||||
animationName: antCheckboxEffect,
|
||||
animationDuration: token.motionDurationSlow,
|
||||
animationTimingFunction: 'ease-in-out',
|
||||
animationFillMode: 'backwards',
|
||||
content: '""',
|
||||
transition: `all ${token.motionDurationSlow}`
|
||||
}
|
||||
},
|
||||
[`
|
||||
${wrapperCls}-checked:not(${wrapperCls}-disabled),
|
||||
${checkboxCls}-checked:not(${checkboxCls}-disabled)
|
||||
`]: {
|
||||
[`&:hover ${checkboxCls}-inner`]: {
|
||||
backgroundColor: token.colorPrimaryHover,
|
||||
borderColor: 'transparent'
|
||||
},
|
||||
[`&:hover ${checkboxCls}:after`]: {
|
||||
borderColor: token.colorPrimaryHover
|
||||
}
|
||||
}
|
||||
},
|
||||
// ================= Indeterminate =================
|
||||
{
|
||||
[checkboxCls]: {
|
||||
'&-indeterminate': {
|
||||
// Wrapper > Checkbox > inner
|
||||
[`${checkboxCls}-inner`]: {
|
||||
backgroundColor: token.colorBgContainer,
|
||||
borderColor: token.colorBorder,
|
||||
'&:after': {
|
||||
top: '50%',
|
||||
insetInlineStart: '50%',
|
||||
width: token.fontSizeLG / 2,
|
||||
height: token.fontSizeLG / 2,
|
||||
backgroundColor: token.colorPrimary,
|
||||
border: 0,
|
||||
transform: 'translate(-50%, -50%) scale(1)',
|
||||
opacity: 1,
|
||||
content: '""'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
// ==================== Disable ====================
|
||||
{
|
||||
// Wrapper
|
||||
[`${wrapperCls}-disabled`]: {
|
||||
cursor: 'not-allowed'
|
||||
},
|
||||
// Wrapper > Checkbox
|
||||
[`${checkboxCls}-disabled`]: {
|
||||
// Wrapper > Checkbox > input
|
||||
[`&, ${checkboxCls}-input`]: {
|
||||
cursor: 'not-allowed',
|
||||
// Disabled for native input to enable Tooltip event handler
|
||||
// ref: https://github.com/ant-design/ant-design/issues/39822#issuecomment-1365075901
|
||||
pointerEvents: 'none'
|
||||
},
|
||||
// Wrapper > Checkbox > inner
|
||||
[`${checkboxCls}-inner`]: {
|
||||
background: token.colorBgContainerDisabled,
|
||||
borderColor: token.colorBorder,
|
||||
'&:after': {
|
||||
borderColor: token.colorTextDisabled
|
||||
}
|
||||
},
|
||||
'&:after': {
|
||||
display: 'none'
|
||||
},
|
||||
'& + span': {
|
||||
color: token.colorTextDisabled
|
||||
},
|
||||
[`&${checkboxCls}-indeterminate ${checkboxCls}-inner::after`]: {
|
||||
background: token.colorTextDisabled
|
||||
}
|
||||
}
|
||||
}];
|
||||
};
|
||||
// ============================== Export ==============================
|
||||
function getStyle(prefixCls, token) {
|
||||
const checkboxToken = (0,_theme_internal__WEBPACK_IMPORTED_MODULE_2__/* .merge */ .TS)(token, {
|
||||
checkboxCls: `.${prefixCls}`,
|
||||
checkboxSize: token.controlInteractiveSize
|
||||
});
|
||||
return [genCheckboxStyle(checkboxToken)];
|
||||
}
|
||||
/* harmony default export */ __webpack_exports__["ZP"] = ((0,_theme_internal__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)('Checkbox', (token, _ref) => {
|
||||
let {
|
||||
prefixCls
|
||||
} = _ref;
|
||||
return [getStyle(prefixCls, token)];
|
||||
}));
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 85418:
|
||||
/*!************************************************************!*\
|
||||
!*** ./node_modules/antd/es/dropdown/index.js + 1 modules ***!
|
||||
\************************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
|
||||
// EXPORTS
|
||||
__webpack_require__.d(__webpack_exports__, {
|
||||
"Z": function() { return /* binding */ es_dropdown; }
|
||||
});
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/dropdown/dropdown.js + 9 modules
|
||||
var dropdown = __webpack_require__(35874);
|
||||
// EXTERNAL MODULE: ./node_modules/classnames/index.js
|
||||
var classnames = __webpack_require__(94184);
|
||||
var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames);
|
||||
// EXTERNAL MODULE: ./node_modules/react/index.js
|
||||
var react = __webpack_require__(67294);
|
||||
// EXTERNAL MODULE: ./node_modules/@ant-design/icons/es/icons/EllipsisOutlined.js + 1 modules
|
||||
var EllipsisOutlined = __webpack_require__(89705);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/button/index.js
|
||||
var es_button = __webpack_require__(71577);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/config-provider/context.js
|
||||
var context = __webpack_require__(53124);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/space/index.js + 2 modules
|
||||
var space = __webpack_require__(42075);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/space/Compact.js
|
||||
var Compact = __webpack_require__(4173);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/dropdown/style/index.js + 1 modules
|
||||
var style = __webpack_require__(66748);
|
||||
;// CONCATENATED MODULE: ./node_modules/antd/es/dropdown/dropdown-button.js
|
||||
var __rest = undefined && undefined.__rest || function (s, e) {
|
||||
var t = {};
|
||||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
||||
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
||||
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
||||
}
|
||||
return t;
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
const DropdownButton = props => {
|
||||
const {
|
||||
getPopupContainer: getContextPopupContainer,
|
||||
getPrefixCls,
|
||||
direction
|
||||
} = react.useContext(context/* ConfigContext */.E_);
|
||||
const {
|
||||
prefixCls: customizePrefixCls,
|
||||
type = 'default',
|
||||
danger,
|
||||
disabled,
|
||||
loading,
|
||||
onClick,
|
||||
htmlType,
|
||||
children,
|
||||
className,
|
||||
menu,
|
||||
arrow,
|
||||
autoFocus,
|
||||
overlay,
|
||||
trigger,
|
||||
align,
|
||||
open,
|
||||
onOpenChange,
|
||||
placement,
|
||||
getPopupContainer,
|
||||
href,
|
||||
icon = /*#__PURE__*/react.createElement(EllipsisOutlined/* default */.Z, null),
|
||||
title,
|
||||
buttonsRender = buttons => buttons,
|
||||
mouseEnterDelay,
|
||||
mouseLeaveDelay,
|
||||
overlayClassName,
|
||||
overlayStyle,
|
||||
destroyPopupOnHide,
|
||||
dropdownRender
|
||||
} = props,
|
||||
restProps = __rest(props, ["prefixCls", "type", "danger", "disabled", "loading", "onClick", "htmlType", "children", "className", "menu", "arrow", "autoFocus", "overlay", "trigger", "align", "open", "onOpenChange", "placement", "getPopupContainer", "href", "icon", "title", "buttonsRender", "mouseEnterDelay", "mouseLeaveDelay", "overlayClassName", "overlayStyle", "destroyPopupOnHide", "dropdownRender"]);
|
||||
const prefixCls = getPrefixCls('dropdown', customizePrefixCls);
|
||||
const buttonPrefixCls = `${prefixCls}-button`;
|
||||
const [wrapSSR, hashId] = (0,style/* default */.Z)(prefixCls);
|
||||
const dropdownProps = {
|
||||
menu,
|
||||
arrow,
|
||||
autoFocus,
|
||||
align,
|
||||
disabled,
|
||||
trigger: disabled ? [] : trigger,
|
||||
onOpenChange,
|
||||
getPopupContainer: getPopupContainer || getContextPopupContainer,
|
||||
mouseEnterDelay,
|
||||
mouseLeaveDelay,
|
||||
overlayClassName,
|
||||
overlayStyle,
|
||||
destroyPopupOnHide,
|
||||
dropdownRender
|
||||
};
|
||||
const {
|
||||
compactSize,
|
||||
compactItemClassnames
|
||||
} = (0,Compact/* useCompactItemContext */.ri)(prefixCls, direction);
|
||||
const classes = classnames_default()(buttonPrefixCls, compactItemClassnames, className, hashId);
|
||||
if ('overlay' in props) {
|
||||
dropdownProps.overlay = overlay;
|
||||
}
|
||||
if ('open' in props) {
|
||||
dropdownProps.open = open;
|
||||
}
|
||||
if ('placement' in props) {
|
||||
dropdownProps.placement = placement;
|
||||
} else {
|
||||
dropdownProps.placement = direction === 'rtl' ? 'bottomLeft' : 'bottomRight';
|
||||
}
|
||||
const leftButton = /*#__PURE__*/react.createElement(es_button/* default */.ZP, {
|
||||
type: type,
|
||||
danger: danger,
|
||||
disabled: disabled,
|
||||
loading: loading,
|
||||
onClick: onClick,
|
||||
htmlType: htmlType,
|
||||
href: href,
|
||||
title: title
|
||||
}, children);
|
||||
const rightButton = /*#__PURE__*/react.createElement(es_button/* default */.ZP, {
|
||||
type: type,
|
||||
danger: danger,
|
||||
icon: icon
|
||||
});
|
||||
const [leftButtonToRender, rightButtonToRender] = buttonsRender([leftButton, rightButton]);
|
||||
return wrapSSR( /*#__PURE__*/react.createElement(space/* default.Compact */.Z.Compact, Object.assign({
|
||||
className: classes,
|
||||
size: compactSize,
|
||||
block: true
|
||||
}, restProps), leftButtonToRender, /*#__PURE__*/react.createElement(dropdown/* default */.Z, Object.assign({}, dropdownProps), rightButtonToRender)));
|
||||
};
|
||||
DropdownButton.__ANT_BUTTON = true;
|
||||
/* harmony default export */ var dropdown_button = (DropdownButton);
|
||||
;// CONCATENATED MODULE: ./node_modules/antd/es/dropdown/index.js
|
||||
'use client';
|
||||
|
||||
|
||||
|
||||
const Dropdown = dropdown/* default */.Z;
|
||||
Dropdown.Button = dropdown_button;
|
||||
/* harmony default export */ var es_dropdown = (Dropdown);
|
||||
|
||||
/***/ })
|
||||
|
||||
}]);
|
||||
@ -0,0 +1,230 @@
|
||||
"use strict";
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[38906],{
|
||||
|
||||
/***/ 38906:
|
||||
/*!********************************************************************!*\
|
||||
!*** ./node_modules/monaco-editor/esm/vs/basic-languages/m3/m3.js ***!
|
||||
\********************************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
||||
/* harmony export */ "conf": function() { return /* binding */ conf; },
|
||||
/* harmony export */ "language": function() { return /* binding */ language; }
|
||||
/* harmony export */ });
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
var conf = {
|
||||
comments: {
|
||||
blockComment: ['(*', '*)']
|
||||
},
|
||||
brackets: [
|
||||
['{', '}'],
|
||||
['[', ']'],
|
||||
['(', ')']
|
||||
],
|
||||
autoClosingPairs: [
|
||||
{ open: '[', close: ']' },
|
||||
{ open: '{', close: '}' },
|
||||
{ open: '(', close: ')' },
|
||||
{ open: '(*', close: '*)' },
|
||||
{ open: '<*', close: '*>' },
|
||||
{ open: "'", close: "'", notIn: ['string', 'comment'] },
|
||||
{ open: '"', close: '"', notIn: ['string', 'comment'] }
|
||||
]
|
||||
};
|
||||
var language = {
|
||||
defaultToken: '',
|
||||
tokenPostfix: '.m3',
|
||||
brackets: [
|
||||
{ token: 'delimiter.curly', open: '{', close: '}' },
|
||||
{ token: 'delimiter.parenthesis', open: '(', close: ')' },
|
||||
{ token: 'delimiter.square', open: '[', close: ']' }
|
||||
],
|
||||
keywords: [
|
||||
'AND',
|
||||
'ANY',
|
||||
'ARRAY',
|
||||
'AS',
|
||||
'BEGIN',
|
||||
'BITS',
|
||||
'BRANDED',
|
||||
'BY',
|
||||
'CASE',
|
||||
'CONST',
|
||||
'DIV',
|
||||
'DO',
|
||||
'ELSE',
|
||||
'ELSIF',
|
||||
'END',
|
||||
'EVAL',
|
||||
'EXCEPT',
|
||||
'EXCEPTION',
|
||||
'EXIT',
|
||||
'EXPORTS',
|
||||
'FINALLY',
|
||||
'FOR',
|
||||
'FROM',
|
||||
'GENERIC',
|
||||
'IF',
|
||||
'IMPORT',
|
||||
'IN',
|
||||
'INTERFACE',
|
||||
'LOCK',
|
||||
'LOOP',
|
||||
'METHODS',
|
||||
'MOD',
|
||||
'MODULE',
|
||||
'NOT',
|
||||
'OBJECT',
|
||||
'OF',
|
||||
'OR',
|
||||
'OVERRIDES',
|
||||
'PROCEDURE',
|
||||
'RAISE',
|
||||
'RAISES',
|
||||
'READONLY',
|
||||
'RECORD',
|
||||
'REF',
|
||||
'REPEAT',
|
||||
'RETURN',
|
||||
'REVEAL',
|
||||
'SET',
|
||||
'THEN',
|
||||
'TO',
|
||||
'TRY',
|
||||
'TYPE',
|
||||
'TYPECASE',
|
||||
'UNSAFE',
|
||||
'UNTIL',
|
||||
'UNTRACED',
|
||||
'VALUE',
|
||||
'VAR',
|
||||
'WHILE',
|
||||
'WITH'
|
||||
],
|
||||
reservedConstNames: [
|
||||
'ABS',
|
||||
'ADR',
|
||||
'ADRSIZE',
|
||||
'BITSIZE',
|
||||
'BYTESIZE',
|
||||
'CEILING',
|
||||
'DEC',
|
||||
'DISPOSE',
|
||||
'FALSE',
|
||||
'FIRST',
|
||||
'FLOAT',
|
||||
'FLOOR',
|
||||
'INC',
|
||||
'ISTYPE',
|
||||
'LAST',
|
||||
'LOOPHOLE',
|
||||
'MAX',
|
||||
'MIN',
|
||||
'NARROW',
|
||||
'NEW',
|
||||
'NIL',
|
||||
'NUMBER',
|
||||
'ORD',
|
||||
'ROUND',
|
||||
'SUBARRAY',
|
||||
'TRUE',
|
||||
'TRUNC',
|
||||
'TYPECODE',
|
||||
'VAL'
|
||||
],
|
||||
reservedTypeNames: [
|
||||
'ADDRESS',
|
||||
'ANY',
|
||||
'BOOLEAN',
|
||||
'CARDINAL',
|
||||
'CHAR',
|
||||
'EXTENDED',
|
||||
'INTEGER',
|
||||
'LONGCARD',
|
||||
'LONGINT',
|
||||
'LONGREAL',
|
||||
'MUTEX',
|
||||
'NULL',
|
||||
'REAL',
|
||||
'REFANY',
|
||||
'ROOT',
|
||||
'TEXT'
|
||||
],
|
||||
operators: ['+', '-', '*', '/', '&', '^', '.'],
|
||||
relations: ['=', '#', '<', '<=', '>', '>=', '<:', ':'],
|
||||
delimiters: ['|', '..', '=>', ',', ';', ':='],
|
||||
symbols: /[>=<#.,:;+\-*/&^]+/,
|
||||
escapes: /\\(?:[\\fnrt"']|[0-7]{3})/,
|
||||
tokenizer: {
|
||||
root: [
|
||||
// Identifiers and keywords
|
||||
[/_\w*/, 'invalid'],
|
||||
[
|
||||
/[a-zA-Z][a-zA-Z0-9_]*/,
|
||||
{
|
||||
cases: {
|
||||
'@keywords': { token: 'keyword.$0' },
|
||||
'@reservedConstNames': { token: 'constant.reserved.$0' },
|
||||
'@reservedTypeNames': { token: 'type.reserved.$0' },
|
||||
'@default': 'identifier'
|
||||
}
|
||||
}
|
||||
],
|
||||
// Whitespace
|
||||
{ include: '@whitespace' },
|
||||
[/[{}()\[\]]/, '@brackets'],
|
||||
// Integer- and real literals
|
||||
[/[0-9]+\.[0-9]+(?:[DdEeXx][\+\-]?[0-9]+)?/, 'number.float'],
|
||||
[/[0-9]+(?:\_[0-9a-fA-F]+)?L?/, 'number'],
|
||||
// Operators, relations, and delimiters
|
||||
[
|
||||
/@symbols/,
|
||||
{
|
||||
cases: {
|
||||
'@operators': 'operators',
|
||||
'@relations': 'operators',
|
||||
'@delimiters': 'delimiter',
|
||||
'@default': 'invalid'
|
||||
}
|
||||
}
|
||||
],
|
||||
// Character literals
|
||||
[/'[^\\']'/, 'string.char'],
|
||||
[/(')(@escapes)(')/, ['string.char', 'string.escape', 'string.char']],
|
||||
[/'/, 'invalid'],
|
||||
// Text literals
|
||||
[/"([^"\\]|\\.)*$/, 'invalid'],
|
||||
[/"/, 'string.text', '@text']
|
||||
],
|
||||
text: [
|
||||
[/[^\\"]+/, 'string.text'],
|
||||
[/@escapes/, 'string.escape'],
|
||||
[/\\./, 'invalid'],
|
||||
[/"/, 'string.text', '@pop']
|
||||
],
|
||||
comment: [
|
||||
[/\(\*/, 'comment', '@push'],
|
||||
[/\*\)/, 'comment', '@pop'],
|
||||
[/./, 'comment']
|
||||
],
|
||||
pragma: [
|
||||
[/<\*/, 'keyword.pragma', '@push'],
|
||||
[/\*>/, 'keyword.pragma', '@pop'],
|
||||
[/./, 'keyword.pragma']
|
||||
],
|
||||
whitespace: [
|
||||
[/[ \t\r\n]+/, 'white'],
|
||||
[/\(\*/, 'comment', '@comment'],
|
||||
[/<\*/, 'keyword.pragma', '@pragma']
|
||||
]
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
/***/ })
|
||||
|
||||
}]);
|
||||
@ -0,0 +1,301 @@
|
||||
"use strict";
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[39343],{
|
||||
|
||||
/***/ 39343:
|
||||
/*!************************************************************************!*\
|
||||
!*** ./node_modules/monaco-editor/esm/vs/basic-languages/dart/dart.js ***!
|
||||
\************************************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
||||
/* harmony export */ "conf": function() { return /* binding */ conf; },
|
||||
/* harmony export */ "language": function() { return /* binding */ language; }
|
||||
/* harmony export */ });
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
var conf = {
|
||||
comments: {
|
||||
lineComment: '//',
|
||||
blockComment: ['/*', '*/']
|
||||
},
|
||||
brackets: [
|
||||
['{', '}'],
|
||||
['[', ']'],
|
||||
['(', ')']
|
||||
],
|
||||
autoClosingPairs: [
|
||||
{ open: '{', close: '}' },
|
||||
{ open: '[', close: ']' },
|
||||
{ open: '(', close: ')' },
|
||||
{ open: "'", close: "'", notIn: ['string', 'comment'] },
|
||||
{ open: '"', close: '"', notIn: ['string'] },
|
||||
{ open: '`', close: '`', notIn: ['string', 'comment'] },
|
||||
{ open: '/**', close: ' */', notIn: ['string'] }
|
||||
],
|
||||
surroundingPairs: [
|
||||
{ open: '{', close: '}' },
|
||||
{ open: '[', close: ']' },
|
||||
{ open: '(', close: ')' },
|
||||
{ open: '<', close: '>' },
|
||||
{ open: "'", close: "'" },
|
||||
{ open: '(', close: ')' },
|
||||
{ open: '"', close: '"' },
|
||||
{ open: '`', close: '`' }
|
||||
],
|
||||
folding: {
|
||||
markers: {
|
||||
start: /^\s*\s*#?region\b/,
|
||||
end: /^\s*\s*#?endregion\b/
|
||||
}
|
||||
}
|
||||
};
|
||||
var language = {
|
||||
defaultToken: 'invalid',
|
||||
tokenPostfix: '.dart',
|
||||
keywords: [
|
||||
'abstract',
|
||||
'dynamic',
|
||||
'implements',
|
||||
'show',
|
||||
'as',
|
||||
'else',
|
||||
'import',
|
||||
'static',
|
||||
'assert',
|
||||
'enum',
|
||||
'in',
|
||||
'super',
|
||||
'async',
|
||||
'export',
|
||||
'interface',
|
||||
'switch',
|
||||
'await',
|
||||
'extends',
|
||||
'is',
|
||||
'sync',
|
||||
'break',
|
||||
'external',
|
||||
'library',
|
||||
'this',
|
||||
'case',
|
||||
'factory',
|
||||
'mixin',
|
||||
'throw',
|
||||
'catch',
|
||||
'false',
|
||||
'new',
|
||||
'true',
|
||||
'class',
|
||||
'final',
|
||||
'null',
|
||||
'try',
|
||||
'const',
|
||||
'finally',
|
||||
'on',
|
||||
'typedef',
|
||||
'continue',
|
||||
'for',
|
||||
'operator',
|
||||
'var',
|
||||
'covariant',
|
||||
'Function',
|
||||
'part',
|
||||
'void',
|
||||
'default',
|
||||
'get',
|
||||
'rethrow',
|
||||
'while',
|
||||
'deferred',
|
||||
'hide',
|
||||
'return',
|
||||
'with',
|
||||
'do',
|
||||
'if',
|
||||
'set',
|
||||
'yield'
|
||||
],
|
||||
typeKeywords: ['int', 'double', 'String', 'bool'],
|
||||
operators: [
|
||||
'+',
|
||||
'-',
|
||||
'*',
|
||||
'/',
|
||||
'~/',
|
||||
'%',
|
||||
'++',
|
||||
'--',
|
||||
'==',
|
||||
'!=',
|
||||
'>',
|
||||
'<',
|
||||
'>=',
|
||||
'<=',
|
||||
'=',
|
||||
'-=',
|
||||
'/=',
|
||||
'%=',
|
||||
'>>=',
|
||||
'^=',
|
||||
'+=',
|
||||
'*=',
|
||||
'~/=',
|
||||
'<<=',
|
||||
'&=',
|
||||
'!=',
|
||||
'||',
|
||||
'&&',
|
||||
'&',
|
||||
'|',
|
||||
'^',
|
||||
'~',
|
||||
'<<',
|
||||
'>>',
|
||||
'!',
|
||||
'>>>',
|
||||
'??',
|
||||
'?',
|
||||
':',
|
||||
'|='
|
||||
],
|
||||
// we include these common regular expressions
|
||||
symbols: /[=><!~?:&|+\-*\/\^%]+/,
|
||||
escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
|
||||
digits: /\d+(_+\d+)*/,
|
||||
octaldigits: /[0-7]+(_+[0-7]+)*/,
|
||||
binarydigits: /[0-1]+(_+[0-1]+)*/,
|
||||
hexdigits: /[[0-9a-fA-F]+(_+[0-9a-fA-F]+)*/,
|
||||
regexpctl: /[(){}\[\]\$\^|\-*+?\.]/,
|
||||
regexpesc: /\\(?:[bBdDfnrstvwWn0\\\/]|@regexpctl|c[A-Z]|x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4})/,
|
||||
// The main tokenizer for our languages
|
||||
tokenizer: {
|
||||
root: [[/[{}]/, 'delimiter.bracket'], { include: 'common' }],
|
||||
common: [
|
||||
// identifiers and keywords
|
||||
[
|
||||
/[a-z_$][\w$]*/,
|
||||
{
|
||||
cases: {
|
||||
'@typeKeywords': 'type.identifier',
|
||||
'@keywords': 'keyword',
|
||||
'@default': 'identifier'
|
||||
}
|
||||
}
|
||||
],
|
||||
[/[A-Z_$][\w\$]*/, 'type.identifier'],
|
||||
// [/[A-Z][\w\$]*/, 'identifier'],
|
||||
// whitespace
|
||||
{ include: '@whitespace' },
|
||||
// regular expression: ensure it is terminated before beginning (otherwise it is an opeator)
|
||||
[
|
||||
/\/(?=([^\\\/]|\\.)+\/([gimsuy]*)(\s*)(\.|;|,|\)|\]|\}|$))/,
|
||||
{ token: 'regexp', bracket: '@open', next: '@regexp' }
|
||||
],
|
||||
// @ annotations.
|
||||
[/@[a-zA-Z]+/, 'annotation'],
|
||||
// variable
|
||||
// delimiters and operators
|
||||
[/[()\[\]]/, '@brackets'],
|
||||
[/[<>](?!@symbols)/, '@brackets'],
|
||||
[/!(?=([^=]|$))/, 'delimiter'],
|
||||
[
|
||||
/@symbols/,
|
||||
{
|
||||
cases: {
|
||||
'@operators': 'delimiter',
|
||||
'@default': ''
|
||||
}
|
||||
}
|
||||
],
|
||||
// numbers
|
||||
[/(@digits)[eE]([\-+]?(@digits))?/, 'number.float'],
|
||||
[/(@digits)\.(@digits)([eE][\-+]?(@digits))?/, 'number.float'],
|
||||
[/0[xX](@hexdigits)n?/, 'number.hex'],
|
||||
[/0[oO]?(@octaldigits)n?/, 'number.octal'],
|
||||
[/0[bB](@binarydigits)n?/, 'number.binary'],
|
||||
[/(@digits)n?/, 'number'],
|
||||
// delimiter: after number because of .\d floats
|
||||
[/[;,.]/, 'delimiter'],
|
||||
// strings
|
||||
[/"([^"\\]|\\.)*$/, 'string.invalid'],
|
||||
[/'([^'\\]|\\.)*$/, 'string.invalid'],
|
||||
[/"/, 'string', '@string_double'],
|
||||
[/'/, 'string', '@string_single']
|
||||
// [/[a-zA-Z]+/, "variable"]
|
||||
],
|
||||
whitespace: [
|
||||
[/[ \t\r\n]+/, ''],
|
||||
[/\/\*\*(?!\/)/, 'comment.doc', '@jsdoc'],
|
||||
[/\/\*/, 'comment', '@comment'],
|
||||
[/\/\/\/.*$/, 'comment.doc'],
|
||||
[/\/\/.*$/, 'comment']
|
||||
],
|
||||
comment: [
|
||||
[/[^\/*]+/, 'comment'],
|
||||
[/\*\//, 'comment', '@pop'],
|
||||
[/[\/*]/, 'comment']
|
||||
],
|
||||
jsdoc: [
|
||||
[/[^\/*]+/, 'comment.doc'],
|
||||
[/\*\//, 'comment.doc', '@pop'],
|
||||
[/[\/*]/, 'comment.doc']
|
||||
],
|
||||
// We match regular expression quite precisely
|
||||
regexp: [
|
||||
[
|
||||
/(\{)(\d+(?:,\d*)?)(\})/,
|
||||
['regexp.escape.control', 'regexp.escape.control', 'regexp.escape.control']
|
||||
],
|
||||
[
|
||||
/(\[)(\^?)(?=(?:[^\]\\\/]|\\.)+)/,
|
||||
['regexp.escape.control', { token: 'regexp.escape.control', next: '@regexrange' }]
|
||||
],
|
||||
[/(\()(\?:|\?=|\?!)/, ['regexp.escape.control', 'regexp.escape.control']],
|
||||
[/[()]/, 'regexp.escape.control'],
|
||||
[/@regexpctl/, 'regexp.escape.control'],
|
||||
[/[^\\\/]/, 'regexp'],
|
||||
[/@regexpesc/, 'regexp.escape'],
|
||||
[/\\\./, 'regexp.invalid'],
|
||||
[
|
||||
/(\/)([gimsuy]*)/,
|
||||
[{ token: 'regexp', bracket: '@close', next: '@pop' }, 'keyword.other']
|
||||
]
|
||||
],
|
||||
regexrange: [
|
||||
[/-/, 'regexp.escape.control'],
|
||||
[/\^/, 'regexp.invalid'],
|
||||
[/@regexpesc/, 'regexp.escape'],
|
||||
[/[^\]]/, 'regexp'],
|
||||
[
|
||||
/\]/,
|
||||
{
|
||||
token: 'regexp.escape.control',
|
||||
next: '@pop',
|
||||
bracket: '@close'
|
||||
}
|
||||
]
|
||||
],
|
||||
string_double: [
|
||||
[/[^\\"\$]+/, 'string'],
|
||||
[/[^\\"]+/, 'string'],
|
||||
[/@escapes/, 'string.escape'],
|
||||
[/\\./, 'string.escape.invalid'],
|
||||
[/"/, 'string', '@pop'],
|
||||
[/\$\w+/, 'identifier']
|
||||
],
|
||||
string_single: [
|
||||
[/[^\\'\$]+/, 'string'],
|
||||
[/@escapes/, 'string.escape'],
|
||||
[/\\./, 'string.escape.invalid'],
|
||||
[/'/, 'string', '@pop'],
|
||||
[/\$\w+/, 'identifier']
|
||||
]
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
/***/ })
|
||||
|
||||
}]);
|
||||
@ -0,0 +1,127 @@
|
||||
"use strict";
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[47131],{
|
||||
|
||||
/***/ 47131:
|
||||
/*!**************************************************************************!*\
|
||||
!*** ./node_modules/monaco-editor/esm/vs/basic-languages/bicep/bicep.js ***!
|
||||
\**************************************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
||||
/* harmony export */ "conf": function() { return /* binding */ conf; },
|
||||
/* harmony export */ "language": function() { return /* binding */ language; }
|
||||
/* harmony export */ });
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
var bounded = function (text) { return "\\b" + text + "\\b"; };
|
||||
var identifierStart = '[_a-zA-Z]';
|
||||
var identifierContinue = '[_a-zA-Z0-9]';
|
||||
var identifier = bounded("" + identifierStart + identifierContinue + "*");
|
||||
var keywords = [
|
||||
'targetScope',
|
||||
'resource',
|
||||
'module',
|
||||
'param',
|
||||
'var',
|
||||
'output',
|
||||
'for',
|
||||
'in',
|
||||
'if',
|
||||
'existing'
|
||||
];
|
||||
var namedLiterals = ['true', 'false', 'null'];
|
||||
var nonCommentWs = "[ \\t\\r\\n]";
|
||||
var numericLiteral = "[0-9]+";
|
||||
var conf = {
|
||||
comments: {
|
||||
lineComment: '//',
|
||||
blockComment: ['/*', '*/']
|
||||
},
|
||||
brackets: [
|
||||
['{', '}'],
|
||||
['[', ']'],
|
||||
['(', ')']
|
||||
],
|
||||
surroundingPairs: [
|
||||
{ open: '{', close: '}' },
|
||||
{ open: '[', close: ']' },
|
||||
{ open: '(', close: ')' },
|
||||
{ open: "'", close: "'" },
|
||||
{ open: "'''", close: "'''" }
|
||||
],
|
||||
autoClosingPairs: [
|
||||
{ open: '{', close: '}' },
|
||||
{ open: '[', close: ']' },
|
||||
{ open: '(', close: ')' },
|
||||
{ open: "'", close: "'", notIn: ['string', 'comment'] },
|
||||
{ open: "'''", close: "'''", notIn: ['string', 'comment'] }
|
||||
],
|
||||
autoCloseBefore: ":.,=}])' \n\t",
|
||||
indentationRules: {
|
||||
increaseIndentPattern: new RegExp('^((?!\\/\\/).)*(\\{[^}"\'`]*|\\([^)"\'`]*|\\[[^\\]"\'`]*)$'),
|
||||
decreaseIndentPattern: new RegExp('^((?!.*?\\/\\*).*\\*/)?\\s*[\\}\\]].*$')
|
||||
}
|
||||
};
|
||||
var language = {
|
||||
defaultToken: '',
|
||||
tokenPostfix: '.bicep',
|
||||
brackets: [
|
||||
{ open: '{', close: '}', token: 'delimiter.curly' },
|
||||
{ open: '[', close: ']', token: 'delimiter.square' },
|
||||
{ open: '(', close: ')', token: 'delimiter.parenthesis' }
|
||||
],
|
||||
symbols: /[=><!~?:&|+\-*/^%]+/,
|
||||
keywords: keywords,
|
||||
namedLiterals: namedLiterals,
|
||||
escapes: "\\\\(u{[0-9A-Fa-f]+}|n|r|t|\\\\|'|\\${)",
|
||||
tokenizer: {
|
||||
root: [{ include: '@expression' }, { include: '@whitespace' }],
|
||||
stringVerbatim: [
|
||||
{ regex: "(|'|'')[^']", action: { token: 'string' } },
|
||||
{ regex: "'''", action: { token: 'string.quote', next: '@pop' } }
|
||||
],
|
||||
stringLiteral: [
|
||||
{ regex: "\\${", action: { token: 'delimiter.bracket', next: '@bracketCounting' } },
|
||||
{ regex: "[^\\\\'$]+", action: { token: 'string' } },
|
||||
{ regex: '@escapes', action: { token: 'string.escape' } },
|
||||
{ regex: "\\\\.", action: { token: 'string.escape.invalid' } },
|
||||
{ regex: "'", action: { token: 'string', next: '@pop' } }
|
||||
],
|
||||
bracketCounting: [
|
||||
{ regex: "{", action: { token: 'delimiter.bracket', next: '@bracketCounting' } },
|
||||
{ regex: "}", action: { token: 'delimiter.bracket', next: '@pop' } },
|
||||
{ include: 'expression' }
|
||||
],
|
||||
comment: [
|
||||
{ regex: "[^\\*]+", action: { token: 'comment' } },
|
||||
{ regex: "\\*\\/", action: { token: 'comment', next: '@pop' } },
|
||||
{ regex: "[\\/*]", action: { token: 'comment' } }
|
||||
],
|
||||
whitespace: [
|
||||
{ regex: nonCommentWs },
|
||||
{ regex: "\\/\\*", action: { token: 'comment', next: '@comment' } },
|
||||
{ regex: "\\/\\/.*$", action: { token: 'comment' } }
|
||||
],
|
||||
expression: [
|
||||
{ regex: "'''", action: { token: 'string.quote', next: '@stringVerbatim' } },
|
||||
{ regex: "'", action: { token: 'string.quote', next: '@stringLiteral' } },
|
||||
{ regex: numericLiteral, action: { token: 'number' } },
|
||||
{
|
||||
regex: identifier,
|
||||
action: {
|
||||
cases: {
|
||||
'@keywords': { token: 'keyword' },
|
||||
'@namedLiterals': { token: 'keyword' },
|
||||
'@default': { token: 'identifier' }
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
/***/ })
|
||||
|
||||
}]);
|
||||
@ -1,830 +0,0 @@
|
||||
"use strict";
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[49017],{
|
||||
|
||||
/***/ 11475:
|
||||
/*!******************************************************************************************!*\
|
||||
!*** ./node_modules/@ant-design/icons/es/icons/ExclamationCircleOutlined.js + 1 modules ***!
|
||||
\******************************************************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
|
||||
// EXPORTS
|
||||
__webpack_require__.d(__webpack_exports__, {
|
||||
"Z": function() { return /* binding */ icons_ExclamationCircleOutlined; }
|
||||
});
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
|
||||
var esm_extends = __webpack_require__(87462);
|
||||
// EXTERNAL MODULE: ./node_modules/react/index.js
|
||||
var react = __webpack_require__(67294);
|
||||
;// CONCATENATED MODULE: ./node_modules/@ant-design/icons-svg/es/asn/ExclamationCircleOutlined.js
|
||||
// This icon file is generated automatically.
|
||||
var ExclamationCircleOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" } }, { "tag": "path", "attrs": { "d": "M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z" } }] }, "name": "exclamation-circle", "theme": "outlined" };
|
||||
/* harmony default export */ var asn_ExclamationCircleOutlined = (ExclamationCircleOutlined);
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/@ant-design/icons/es/components/AntdIcon.js + 8 modules
|
||||
var AntdIcon = __webpack_require__(74643);
|
||||
;// CONCATENATED MODULE: ./node_modules/@ant-design/icons/es/icons/ExclamationCircleOutlined.js
|
||||
|
||||
// GENERATE BY ./scripts/generate.ts
|
||||
// DON NOT EDIT IT MANUALLY
|
||||
|
||||
|
||||
|
||||
|
||||
var ExclamationCircleOutlined_ExclamationCircleOutlined = function ExclamationCircleOutlined(props, ref) {
|
||||
return /*#__PURE__*/react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
|
||||
ref: ref,
|
||||
icon: asn_ExclamationCircleOutlined
|
||||
}));
|
||||
};
|
||||
if (false) {}
|
||||
/* harmony default export */ var icons_ExclamationCircleOutlined = (/*#__PURE__*/react.forwardRef(ExclamationCircleOutlined_ExclamationCircleOutlined));
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 8745:
|
||||
/*!*************************************************!*\
|
||||
!*** ./node_modules/antd/es/_util/PurePanel.js ***!
|
||||
\*************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
||||
/* harmony export */ "Z": function() { return /* binding */ genPurePanel; }
|
||||
/* harmony export */ });
|
||||
/* harmony import */ var rc_util_es_hooks_useMergedState__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! rc-util/es/hooks/useMergedState */ 5663);
|
||||
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ 67294);
|
||||
/* harmony import */ var _config_provider__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../config-provider */ 53124);
|
||||
/* harmony import */ var _config_provider__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../config-provider */ 17093);
|
||||
|
||||
|
||||
|
||||
/* istanbul ignore next */
|
||||
function genPurePanel(Component, defaultPrefixCls, getDropdownCls, postProps) {
|
||||
return function PurePanel(props) {
|
||||
const {
|
||||
prefixCls: customizePrefixCls,
|
||||
style
|
||||
} = props;
|
||||
const holderRef = react__WEBPACK_IMPORTED_MODULE_1__.useRef(null);
|
||||
const [popupHeight, setPopupHeight] = react__WEBPACK_IMPORTED_MODULE_1__.useState(0);
|
||||
const [popupWidth, setPopupWidth] = react__WEBPACK_IMPORTED_MODULE_1__.useState(0);
|
||||
const [open, setOpen] = (0,rc_util_es_hooks_useMergedState__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(false, {
|
||||
value: props.open
|
||||
});
|
||||
const {
|
||||
getPrefixCls
|
||||
} = react__WEBPACK_IMPORTED_MODULE_1__.useContext(_config_provider__WEBPACK_IMPORTED_MODULE_2__/* .ConfigContext */ .E_);
|
||||
const prefixCls = getPrefixCls(defaultPrefixCls || 'select', customizePrefixCls);
|
||||
react__WEBPACK_IMPORTED_MODULE_1__.useEffect(() => {
|
||||
// We do not care about ssr
|
||||
setOpen(true);
|
||||
if (typeof ResizeObserver !== 'undefined') {
|
||||
const resizeObserver = new ResizeObserver(entries => {
|
||||
const element = entries[0].target;
|
||||
setPopupHeight(element.offsetHeight + 8);
|
||||
setPopupWidth(element.offsetWidth);
|
||||
});
|
||||
const interval = setInterval(() => {
|
||||
var _a;
|
||||
const dropdownCls = getDropdownCls ? `.${getDropdownCls(prefixCls)}` : `.${prefixCls}-dropdown`;
|
||||
const popup = (_a = holderRef.current) === null || _a === void 0 ? void 0 : _a.querySelector(dropdownCls);
|
||||
if (popup) {
|
||||
clearInterval(interval);
|
||||
resizeObserver.observe(popup);
|
||||
}
|
||||
}, 10);
|
||||
return () => {
|
||||
clearInterval(interval);
|
||||
resizeObserver.disconnect();
|
||||
};
|
||||
}
|
||||
}, []);
|
||||
let mergedProps = Object.assign(Object.assign({}, props), {
|
||||
style: Object.assign(Object.assign({}, style), {
|
||||
margin: 0
|
||||
}),
|
||||
open,
|
||||
visible: open,
|
||||
getPopupContainer: () => holderRef.current
|
||||
});
|
||||
if (postProps) {
|
||||
mergedProps = postProps(mergedProps);
|
||||
}
|
||||
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(_config_provider__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP, {
|
||||
theme: {
|
||||
token: {
|
||||
motion: false
|
||||
}
|
||||
}
|
||||
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", {
|
||||
ref: holderRef,
|
||||
style: {
|
||||
paddingBottom: popupHeight,
|
||||
position: 'relative',
|
||||
minWidth: popupWidth
|
||||
}
|
||||
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(Component, Object.assign({}, mergedProps))));
|
||||
};
|
||||
}
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 66367:
|
||||
/*!*************************************************!*\
|
||||
!*** ./node_modules/antd/es/_util/getScroll.js ***!
|
||||
\*************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
||||
/* harmony export */ "F": function() { return /* binding */ isWindow; },
|
||||
/* harmony export */ "Z": function() { return /* binding */ getScroll; }
|
||||
/* harmony export */ });
|
||||
function isWindow(obj) {
|
||||
return obj !== null && obj !== undefined && obj === obj.window;
|
||||
}
|
||||
function getScroll(target, top) {
|
||||
var _a, _b;
|
||||
if (typeof window === 'undefined') {
|
||||
return 0;
|
||||
}
|
||||
const method = top ? 'scrollTop' : 'scrollLeft';
|
||||
let result = 0;
|
||||
if (isWindow(target)) {
|
||||
result = target[top ? 'pageYOffset' : 'pageXOffset'];
|
||||
} else if (target instanceof Document) {
|
||||
result = target.documentElement[method];
|
||||
} else if (target instanceof HTMLElement) {
|
||||
result = target[method];
|
||||
} else if (target) {
|
||||
// According to the type inference, the `target` is `never` type.
|
||||
// Since we configured the loose mode type checking, and supports mocking the target with such shape below::
|
||||
// `{ documentElement: { scrollLeft: 200, scrollTop: 400 } }`,
|
||||
// the program may falls into this branch.
|
||||
// Check the corresponding tests for details. Don't sure what is the real scenario this happens.
|
||||
result = target[method];
|
||||
}
|
||||
if (target && !isWindow(target) && typeof result !== 'number') {
|
||||
result = (_b = ((_a = target.ownerDocument) !== null && _a !== void 0 ? _a : target).documentElement) === null || _b === void 0 ? void 0 : _b[method];
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 58375:
|
||||
/*!************************************************************!*\
|
||||
!*** ./node_modules/antd/es/_util/scrollTo.js + 1 modules ***!
|
||||
\************************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
|
||||
// EXPORTS
|
||||
__webpack_require__.d(__webpack_exports__, {
|
||||
"Z": function() { return /* binding */ scrollTo; }
|
||||
});
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/antd/node_modules/rc-util/es/raf.js
|
||||
var raf = __webpack_require__(96523);
|
||||
;// CONCATENATED MODULE: ./node_modules/antd/es/_util/easings.js
|
||||
// eslint-disable-next-line import/prefer-default-export
|
||||
function easeInOutCubic(t, b, c, d) {
|
||||
const cc = c - b;
|
||||
t /= d / 2;
|
||||
if (t < 1) {
|
||||
return cc / 2 * t * t * t + b;
|
||||
}
|
||||
// eslint-disable-next-line no-return-assign
|
||||
return cc / 2 * ((t -= 2) * t * t + 2) + b;
|
||||
}
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/_util/getScroll.js
|
||||
var getScroll = __webpack_require__(66367);
|
||||
;// CONCATENATED MODULE: ./node_modules/antd/es/_util/scrollTo.js
|
||||
|
||||
|
||||
|
||||
function scrollTo(y) {
|
||||
let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
||||
const {
|
||||
getContainer = () => window,
|
||||
callback,
|
||||
duration = 450
|
||||
} = options;
|
||||
const container = getContainer();
|
||||
const scrollTop = (0,getScroll/* default */.Z)(container, true);
|
||||
const startTime = Date.now();
|
||||
const frameFunc = () => {
|
||||
const timestamp = Date.now();
|
||||
const time = timestamp - startTime;
|
||||
const nextScrollTop = easeInOutCubic(time > duration ? duration : time, scrollTop, y, duration);
|
||||
if ((0,getScroll/* isWindow */.F)(container)) {
|
||||
container.scrollTo(window.pageXOffset, nextScrollTop);
|
||||
} else if (container instanceof Document || container.constructor.name === 'HTMLDocument') {
|
||||
container.documentElement.scrollTop = nextScrollTop;
|
||||
} else {
|
||||
container.scrollTop = nextScrollTop;
|
||||
}
|
||||
if (time < duration) {
|
||||
(0,raf/* default */.Z)(frameFunc);
|
||||
} else if (typeof callback === 'function') {
|
||||
callback();
|
||||
}
|
||||
};
|
||||
(0,raf/* default */.Z)(frameFunc);
|
||||
}
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 48783:
|
||||
/*!****************************************************************!*\
|
||||
!*** ./node_modules/antd/es/_util/throttleByAnimationFrame.js ***!
|
||||
\****************************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
/* harmony import */ var _babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/toConsumableArray */ 74902);
|
||||
/* harmony import */ var rc_util_es_raf__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! rc-util/es/raf */ 96523);
|
||||
|
||||
|
||||
function throttleByAnimationFrame(fn) {
|
||||
let requestId;
|
||||
const later = args => () => {
|
||||
requestId = null;
|
||||
fn.apply(void 0, (0,_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(args));
|
||||
};
|
||||
const throttled = function () {
|
||||
if (requestId == null) {
|
||||
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
||||
args[_key] = arguments[_key];
|
||||
}
|
||||
requestId = (0,rc_util_es_raf__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(later(args));
|
||||
}
|
||||
};
|
||||
throttled.cancel = () => {
|
||||
rc_util_es_raf__WEBPACK_IMPORTED_MODULE_0__/* ["default"].cancel */ .Z.cancel(requestId);
|
||||
requestId = null;
|
||||
};
|
||||
return throttled;
|
||||
}
|
||||
/* harmony default export */ __webpack_exports__["Z"] = (throttleByAnimationFrame);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 15455:
|
||||
/*!************************************************************!*\
|
||||
!*** ./node_modules/antd/es/back-top/index.js + 3 modules ***!
|
||||
\************************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
|
||||
// EXPORTS
|
||||
__webpack_require__.d(__webpack_exports__, {
|
||||
"Z": function() { return /* binding */ back_top; }
|
||||
});
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
|
||||
var esm_extends = __webpack_require__(87462);
|
||||
// EXTERNAL MODULE: ./node_modules/react/index.js
|
||||
var react = __webpack_require__(67294);
|
||||
;// CONCATENATED MODULE: ./node_modules/@ant-design/icons-svg/es/asn/VerticalAlignTopOutlined.js
|
||||
// This icon file is generated automatically.
|
||||
var VerticalAlignTopOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M859.9 168H164.1c-4.5 0-8.1 3.6-8.1 8v60c0 4.4 3.6 8 8.1 8h695.8c4.5 0 8.1-3.6 8.1-8v-60c0-4.4-3.6-8-8.1-8zM518.3 355a8 8 0 00-12.6 0l-112 141.7a7.98 7.98 0 006.3 12.9h73.9V848c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V509.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 355z" } }] }, "name": "vertical-align-top", "theme": "outlined" };
|
||||
/* harmony default export */ var asn_VerticalAlignTopOutlined = (VerticalAlignTopOutlined);
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/@ant-design/icons/es/components/AntdIcon.js + 8 modules
|
||||
var AntdIcon = __webpack_require__(74643);
|
||||
;// CONCATENATED MODULE: ./node_modules/@ant-design/icons/es/icons/VerticalAlignTopOutlined.js
|
||||
|
||||
// GENERATE BY ./scripts/generate.ts
|
||||
// DON NOT EDIT IT MANUALLY
|
||||
|
||||
|
||||
|
||||
|
||||
var VerticalAlignTopOutlined_VerticalAlignTopOutlined = function VerticalAlignTopOutlined(props, ref) {
|
||||
return /*#__PURE__*/react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
|
||||
ref: ref,
|
||||
icon: asn_VerticalAlignTopOutlined
|
||||
}));
|
||||
};
|
||||
if (false) {}
|
||||
/* harmony default export */ var icons_VerticalAlignTopOutlined = (/*#__PURE__*/react.forwardRef(VerticalAlignTopOutlined_VerticalAlignTopOutlined));
|
||||
// EXTERNAL MODULE: ./node_modules/classnames/index.js
|
||||
var classnames = __webpack_require__(94184);
|
||||
var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/node_modules/rc-motion/es/index.js + 18 modules
|
||||
var es = __webpack_require__(38379);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/node_modules/rc-util/es/omit.js
|
||||
var omit = __webpack_require__(10366);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/_util/getScroll.js
|
||||
var getScroll = __webpack_require__(66367);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/_util/reactNode.js
|
||||
var reactNode = __webpack_require__(96159);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/_util/scrollTo.js + 1 modules
|
||||
var scrollTo = __webpack_require__(58375);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/_util/throttleByAnimationFrame.js
|
||||
var throttleByAnimationFrame = __webpack_require__(48783);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/config-provider/context.js
|
||||
var context = __webpack_require__(53124);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/theme/util/genComponentStyleHook.js
|
||||
var genComponentStyleHook = __webpack_require__(67968);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/theme/util/statistic.js
|
||||
var statistic = __webpack_require__(45503);
|
||||
// EXTERNAL MODULE: ./node_modules/antd/es/style/index.js
|
||||
var style = __webpack_require__(14747);
|
||||
;// CONCATENATED MODULE: ./node_modules/antd/es/back-top/style/index.js
|
||||
|
||||
|
||||
// ============================== Shared ==============================
|
||||
const genSharedBackTopStyle = token => {
|
||||
const {
|
||||
componentCls,
|
||||
backTopFontSize,
|
||||
backTopSize,
|
||||
zIndexPopup
|
||||
} = token;
|
||||
return {
|
||||
[componentCls]: Object.assign(Object.assign({}, (0,style/* resetComponent */.Wf)(token)), {
|
||||
position: 'fixed',
|
||||
insetInlineEnd: token.backTopInlineEnd,
|
||||
insetBlockEnd: token.backTopBlockEnd,
|
||||
zIndex: zIndexPopup,
|
||||
width: 40,
|
||||
height: 40,
|
||||
cursor: 'pointer',
|
||||
'&:empty': {
|
||||
display: 'none'
|
||||
},
|
||||
[`${componentCls}-content`]: {
|
||||
width: backTopSize,
|
||||
height: backTopSize,
|
||||
overflow: 'hidden',
|
||||
color: token.backTopColor,
|
||||
textAlign: 'center',
|
||||
backgroundColor: token.backTopBackground,
|
||||
borderRadius: backTopSize,
|
||||
transition: `all ${token.motionDurationMid}`,
|
||||
'&:hover': {
|
||||
backgroundColor: token.backTopHoverBackground,
|
||||
transition: `all ${token.motionDurationMid}`
|
||||
}
|
||||
},
|
||||
// change to .backtop .backtop-icon
|
||||
[`${componentCls}-icon`]: {
|
||||
fontSize: backTopFontSize,
|
||||
lineHeight: `${backTopSize}px`
|
||||
}
|
||||
})
|
||||
};
|
||||
};
|
||||
const genMediaBackTopStyle = token => {
|
||||
const {
|
||||
componentCls
|
||||
} = token;
|
||||
return {
|
||||
[`@media (max-width: ${token.screenMD}px)`]: {
|
||||
[componentCls]: {
|
||||
insetInlineEnd: token.backTopInlineEndMD
|
||||
}
|
||||
},
|
||||
[`@media (max-width: ${token.screenXS}px)`]: {
|
||||
[componentCls]: {
|
||||
insetInlineEnd: token.backTopInlineEndXS
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
// ============================== Export ==============================
|
||||
/* harmony default export */ var back_top_style = ((0,genComponentStyleHook/* default */.Z)('BackTop', token => {
|
||||
const {
|
||||
fontSizeHeading3,
|
||||
colorTextDescription,
|
||||
colorTextLightSolid,
|
||||
colorText,
|
||||
controlHeightLG
|
||||
} = token;
|
||||
const backTopToken = (0,statistic/* merge */.TS)(token, {
|
||||
backTopBackground: colorTextDescription,
|
||||
backTopColor: colorTextLightSolid,
|
||||
backTopHoverBackground: colorText,
|
||||
backTopFontSize: fontSizeHeading3,
|
||||
backTopSize: controlHeightLG,
|
||||
backTopBlockEnd: controlHeightLG * 1.25,
|
||||
backTopInlineEnd: controlHeightLG * 2.5,
|
||||
backTopInlineEndMD: controlHeightLG * 1.5,
|
||||
backTopInlineEndXS: controlHeightLG * 0.5
|
||||
});
|
||||
return [genSharedBackTopStyle(backTopToken), genMediaBackTopStyle(backTopToken)];
|
||||
}, token => ({
|
||||
zIndexPopup: token.zIndexBase + 10
|
||||
})));
|
||||
;// CONCATENATED MODULE: ./node_modules/antd/es/back-top/index.js
|
||||
'use client';
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
const BackTop = props => {
|
||||
const {
|
||||
prefixCls: customizePrefixCls,
|
||||
className,
|
||||
rootClassName,
|
||||
visibilityHeight = 400,
|
||||
target,
|
||||
onClick,
|
||||
duration = 450
|
||||
} = props;
|
||||
const [visible, setVisible] = react.useState(visibilityHeight === 0);
|
||||
const ref = react.useRef(null);
|
||||
const getDefaultTarget = () => ref.current && ref.current.ownerDocument ? ref.current.ownerDocument : window;
|
||||
const handleScroll = (0,throttleByAnimationFrame/* default */.Z)(e => {
|
||||
const scrollTop = (0,getScroll/* default */.Z)(e.target, true);
|
||||
setVisible(scrollTop >= visibilityHeight);
|
||||
});
|
||||
if (false) {}
|
||||
react.useEffect(() => {
|
||||
const getTarget = target || getDefaultTarget;
|
||||
const container = getTarget();
|
||||
handleScroll({
|
||||
target: container
|
||||
});
|
||||
container === null || container === void 0 ? void 0 : container.addEventListener('scroll', handleScroll);
|
||||
return () => {
|
||||
handleScroll.cancel();
|
||||
container === null || container === void 0 ? void 0 : container.removeEventListener('scroll', handleScroll);
|
||||
};
|
||||
}, [target]);
|
||||
const scrollToTop = e => {
|
||||
(0,scrollTo/* default */.Z)(0, {
|
||||
getContainer: target || getDefaultTarget,
|
||||
duration
|
||||
});
|
||||
onClick === null || onClick === void 0 ? void 0 : onClick(e);
|
||||
};
|
||||
const {
|
||||
getPrefixCls,
|
||||
direction
|
||||
} = react.useContext(context/* ConfigContext */.E_);
|
||||
const prefixCls = getPrefixCls('back-top', customizePrefixCls);
|
||||
const rootPrefixCls = getPrefixCls();
|
||||
const [wrapSSR, hashId] = back_top_style(prefixCls);
|
||||
const classString = classnames_default()(hashId, prefixCls, {
|
||||
[`${prefixCls}-rtl`]: direction === 'rtl'
|
||||
}, className, rootClassName);
|
||||
// fix https://fb.me/react-unknown-prop
|
||||
const divProps = (0,omit/* default */.Z)(props, ['prefixCls', 'className', 'rootClassName', 'children', 'visibilityHeight', 'target']);
|
||||
const defaultElement = /*#__PURE__*/react.createElement("div", {
|
||||
className: `${prefixCls}-content`
|
||||
}, /*#__PURE__*/react.createElement("div", {
|
||||
className: `${prefixCls}-icon`
|
||||
}, /*#__PURE__*/react.createElement(icons_VerticalAlignTopOutlined, null)));
|
||||
return wrapSSR( /*#__PURE__*/react.createElement("div", Object.assign({}, divProps, {
|
||||
className: classString,
|
||||
onClick: scrollToTop,
|
||||
ref: ref
|
||||
}), /*#__PURE__*/react.createElement(es["default"], {
|
||||
visible: visible,
|
||||
motionName: `${rootPrefixCls}-fade`
|
||||
}, _ref => {
|
||||
let {
|
||||
className: motionClassName
|
||||
} = _ref;
|
||||
return (0,reactNode/* cloneElement */.Tm)(props.children || defaultElement, _ref2 => {
|
||||
let {
|
||||
className: cloneCls
|
||||
} = _ref2;
|
||||
return {
|
||||
className: classnames_default()(motionClassName, cloneCls)
|
||||
};
|
||||
});
|
||||
})));
|
||||
};
|
||||
if (false) {}
|
||||
/* harmony default export */ var back_top = (BackTop);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 33297:
|
||||
/*!***************************************************!*\
|
||||
!*** ./node_modules/antd/es/style/motion/move.js ***!
|
||||
\***************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
||||
/* harmony export */ "Fm": function() { return /* binding */ initMoveMotion; }
|
||||
/* harmony export */ });
|
||||
/* unused harmony exports moveDownIn, moveDownOut, moveLeftIn, moveLeftOut, moveRightIn, moveRightOut, moveUpIn, moveUpOut */
|
||||
/* harmony import */ var _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @ant-design/cssinjs */ 73559);
|
||||
/* harmony import */ var _motion__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./motion */ 93590);
|
||||
|
||||
|
||||
const moveDownIn = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antMoveDownIn', {
|
||||
'0%': {
|
||||
transform: 'translate3d(0, 100%, 0)',
|
||||
transformOrigin: '0 0',
|
||||
opacity: 0
|
||||
},
|
||||
'100%': {
|
||||
transform: 'translate3d(0, 0, 0)',
|
||||
transformOrigin: '0 0',
|
||||
opacity: 1
|
||||
}
|
||||
});
|
||||
const moveDownOut = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antMoveDownOut', {
|
||||
'0%': {
|
||||
transform: 'translate3d(0, 0, 0)',
|
||||
transformOrigin: '0 0',
|
||||
opacity: 1
|
||||
},
|
||||
'100%': {
|
||||
transform: 'translate3d(0, 100%, 0)',
|
||||
transformOrigin: '0 0',
|
||||
opacity: 0
|
||||
}
|
||||
});
|
||||
const moveLeftIn = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antMoveLeftIn', {
|
||||
'0%': {
|
||||
transform: 'translate3d(-100%, 0, 0)',
|
||||
transformOrigin: '0 0',
|
||||
opacity: 0
|
||||
},
|
||||
'100%': {
|
||||
transform: 'translate3d(0, 0, 0)',
|
||||
transformOrigin: '0 0',
|
||||
opacity: 1
|
||||
}
|
||||
});
|
||||
const moveLeftOut = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antMoveLeftOut', {
|
||||
'0%': {
|
||||
transform: 'translate3d(0, 0, 0)',
|
||||
transformOrigin: '0 0',
|
||||
opacity: 1
|
||||
},
|
||||
'100%': {
|
||||
transform: 'translate3d(-100%, 0, 0)',
|
||||
transformOrigin: '0 0',
|
||||
opacity: 0
|
||||
}
|
||||
});
|
||||
const moveRightIn = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antMoveRightIn', {
|
||||
'0%': {
|
||||
transform: 'translate3d(100%, 0, 0)',
|
||||
transformOrigin: '0 0',
|
||||
opacity: 0
|
||||
},
|
||||
'100%': {
|
||||
transform: 'translate3d(0, 0, 0)',
|
||||
transformOrigin: '0 0',
|
||||
opacity: 1
|
||||
}
|
||||
});
|
||||
const moveRightOut = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antMoveRightOut', {
|
||||
'0%': {
|
||||
transform: 'translate3d(0, 0, 0)',
|
||||
transformOrigin: '0 0',
|
||||
opacity: 1
|
||||
},
|
||||
'100%': {
|
||||
transform: 'translate3d(100%, 0, 0)',
|
||||
transformOrigin: '0 0',
|
||||
opacity: 0
|
||||
}
|
||||
});
|
||||
const moveUpIn = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antMoveUpIn', {
|
||||
'0%': {
|
||||
transform: 'translate3d(0, -100%, 0)',
|
||||
transformOrigin: '0 0',
|
||||
opacity: 0
|
||||
},
|
||||
'100%': {
|
||||
transform: 'translate3d(0, 0, 0)',
|
||||
transformOrigin: '0 0',
|
||||
opacity: 1
|
||||
}
|
||||
});
|
||||
const moveUpOut = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antMoveUpOut', {
|
||||
'0%': {
|
||||
transform: 'translate3d(0, 0, 0)',
|
||||
transformOrigin: '0 0',
|
||||
opacity: 1
|
||||
},
|
||||
'100%': {
|
||||
transform: 'translate3d(0, -100%, 0)',
|
||||
transformOrigin: '0 0',
|
||||
opacity: 0
|
||||
}
|
||||
});
|
||||
const moveMotion = {
|
||||
'move-up': {
|
||||
inKeyframes: moveUpIn,
|
||||
outKeyframes: moveUpOut
|
||||
},
|
||||
'move-down': {
|
||||
inKeyframes: moveDownIn,
|
||||
outKeyframes: moveDownOut
|
||||
},
|
||||
'move-left': {
|
||||
inKeyframes: moveLeftIn,
|
||||
outKeyframes: moveLeftOut
|
||||
},
|
||||
'move-right': {
|
||||
inKeyframes: moveRightIn,
|
||||
outKeyframes: moveRightOut
|
||||
}
|
||||
};
|
||||
const initMoveMotion = (token, motionName) => {
|
||||
const {
|
||||
antCls
|
||||
} = token;
|
||||
const motionCls = `${antCls}-${motionName}`;
|
||||
const {
|
||||
inKeyframes,
|
||||
outKeyframes
|
||||
} = moveMotion[motionName];
|
||||
return [(0,_motion__WEBPACK_IMPORTED_MODULE_1__/* .initMotion */ .R)(motionCls, inKeyframes, outKeyframes, token.motionDurationMid), {
|
||||
[`
|
||||
${motionCls}-enter,
|
||||
${motionCls}-appear
|
||||
`]: {
|
||||
opacity: 0,
|
||||
animationTimingFunction: token.motionEaseOutCirc
|
||||
},
|
||||
[`${motionCls}-leave`]: {
|
||||
animationTimingFunction: token.motionEaseInOutCirc
|
||||
}
|
||||
}];
|
||||
};
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 67771:
|
||||
/*!****************************************************!*\
|
||||
!*** ./node_modules/antd/es/style/motion/slide.js ***!
|
||||
\****************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
||||
/* harmony export */ "Qt": function() { return /* binding */ slideDownIn; },
|
||||
/* harmony export */ "Uw": function() { return /* binding */ slideUpOut; },
|
||||
/* harmony export */ "fJ": function() { return /* binding */ slideUpIn; },
|
||||
/* harmony export */ "ly": function() { return /* binding */ slideDownOut; },
|
||||
/* harmony export */ "oN": function() { return /* binding */ initSlideMotion; }
|
||||
/* harmony export */ });
|
||||
/* unused harmony exports slideLeftIn, slideLeftOut, slideRightIn, slideRightOut */
|
||||
/* harmony import */ var _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @ant-design/cssinjs */ 73559);
|
||||
/* harmony import */ var _motion__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./motion */ 93590);
|
||||
|
||||
|
||||
const slideUpIn = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideUpIn', {
|
||||
'0%': {
|
||||
transform: 'scaleY(0.8)',
|
||||
transformOrigin: '0% 0%',
|
||||
opacity: 0
|
||||
},
|
||||
'100%': {
|
||||
transform: 'scaleY(1)',
|
||||
transformOrigin: '0% 0%',
|
||||
opacity: 1
|
||||
}
|
||||
});
|
||||
const slideUpOut = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideUpOut', {
|
||||
'0%': {
|
||||
transform: 'scaleY(1)',
|
||||
transformOrigin: '0% 0%',
|
||||
opacity: 1
|
||||
},
|
||||
'100%': {
|
||||
transform: 'scaleY(0.8)',
|
||||
transformOrigin: '0% 0%',
|
||||
opacity: 0
|
||||
}
|
||||
});
|
||||
const slideDownIn = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideDownIn', {
|
||||
'0%': {
|
||||
transform: 'scaleY(0.8)',
|
||||
transformOrigin: '100% 100%',
|
||||
opacity: 0
|
||||
},
|
||||
'100%': {
|
||||
transform: 'scaleY(1)',
|
||||
transformOrigin: '100% 100%',
|
||||
opacity: 1
|
||||
}
|
||||
});
|
||||
const slideDownOut = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideDownOut', {
|
||||
'0%': {
|
||||
transform: 'scaleY(1)',
|
||||
transformOrigin: '100% 100%',
|
||||
opacity: 1
|
||||
},
|
||||
'100%': {
|
||||
transform: 'scaleY(0.8)',
|
||||
transformOrigin: '100% 100%',
|
||||
opacity: 0
|
||||
}
|
||||
});
|
||||
const slideLeftIn = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideLeftIn', {
|
||||
'0%': {
|
||||
transform: 'scaleX(0.8)',
|
||||
transformOrigin: '0% 0%',
|
||||
opacity: 0
|
||||
},
|
||||
'100%': {
|
||||
transform: 'scaleX(1)',
|
||||
transformOrigin: '0% 0%',
|
||||
opacity: 1
|
||||
}
|
||||
});
|
||||
const slideLeftOut = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideLeftOut', {
|
||||
'0%': {
|
||||
transform: 'scaleX(1)',
|
||||
transformOrigin: '0% 0%',
|
||||
opacity: 1
|
||||
},
|
||||
'100%': {
|
||||
transform: 'scaleX(0.8)',
|
||||
transformOrigin: '0% 0%',
|
||||
opacity: 0
|
||||
}
|
||||
});
|
||||
const slideRightIn = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideRightIn', {
|
||||
'0%': {
|
||||
transform: 'scaleX(0.8)',
|
||||
transformOrigin: '100% 0%',
|
||||
opacity: 0
|
||||
},
|
||||
'100%': {
|
||||
transform: 'scaleX(1)',
|
||||
transformOrigin: '100% 0%',
|
||||
opacity: 1
|
||||
}
|
||||
});
|
||||
const slideRightOut = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideRightOut', {
|
||||
'0%': {
|
||||
transform: 'scaleX(1)',
|
||||
transformOrigin: '100% 0%',
|
||||
opacity: 1
|
||||
},
|
||||
'100%': {
|
||||
transform: 'scaleX(0.8)',
|
||||
transformOrigin: '100% 0%',
|
||||
opacity: 0
|
||||
}
|
||||
});
|
||||
const slideMotion = {
|
||||
'slide-up': {
|
||||
inKeyframes: slideUpIn,
|
||||
outKeyframes: slideUpOut
|
||||
},
|
||||
'slide-down': {
|
||||
inKeyframes: slideDownIn,
|
||||
outKeyframes: slideDownOut
|
||||
},
|
||||
'slide-left': {
|
||||
inKeyframes: slideLeftIn,
|
||||
outKeyframes: slideLeftOut
|
||||
},
|
||||
'slide-right': {
|
||||
inKeyframes: slideRightIn,
|
||||
outKeyframes: slideRightOut
|
||||
}
|
||||
};
|
||||
const initSlideMotion = (token, motionName) => {
|
||||
const {
|
||||
antCls
|
||||
} = token;
|
||||
const motionCls = `${antCls}-${motionName}`;
|
||||
const {
|
||||
inKeyframes,
|
||||
outKeyframes
|
||||
} = slideMotion[motionName];
|
||||
return [(0,_motion__WEBPACK_IMPORTED_MODULE_1__/* .initMotion */ .R)(motionCls, inKeyframes, outKeyframes, token.motionDurationMid), {
|
||||
[`
|
||||
${motionCls}-enter,
|
||||
${motionCls}-appear
|
||||
`]: {
|
||||
transform: 'scale(0)',
|
||||
transformOrigin: '0% 0%',
|
||||
opacity: 0,
|
||||
animationTimingFunction: token.motionEaseOutQuint,
|
||||
[`&-prepare`]: {
|
||||
transform: 'scale(1)'
|
||||
}
|
||||
},
|
||||
[`${motionCls}-leave`]: {
|
||||
animationTimingFunction: token.motionEaseInQuint
|
||||
}
|
||||
}];
|
||||
};
|
||||
|
||||
/***/ })
|
||||
|
||||
}]);
|
||||
@ -0,0 +1,13 @@
|
||||
/*!***********************************************************************************************************************************************************************************************************************************************************************************!*\
|
||||
!*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].oneOf[1].use[1]!./node_modules/@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[4].oneOf[1].use[2]!./node_modules/monaco-editor/esm/vs/editor/contrib/anchorSelect/anchorSelect.css ***!
|
||||
\***********************************************************************************************************************************************************************************************************************************************************************************/
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
.monaco-editor .selection-anchor {
|
||||
background-color: #007ACC;
|
||||
width: 2px !important;
|
||||
}
|
||||
|
||||
@ -0,0 +1,203 @@
|
||||
"use strict";
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[53632],{
|
||||
|
||||
/***/ 53632:
|
||||
/*!**********************************************************************!*\
|
||||
!*** ./node_modules/monaco-editor/esm/vs/basic-languages/hcl/hcl.js ***!
|
||||
\**********************************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
||||
/* harmony export */ "conf": function() { return /* binding */ conf; },
|
||||
/* harmony export */ "language": function() { return /* binding */ language; }
|
||||
/* harmony export */ });
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
var conf = {
|
||||
comments: {
|
||||
lineComment: '#',
|
||||
blockComment: ['/*', '*/']
|
||||
},
|
||||
brackets: [
|
||||
['{', '}'],
|
||||
['[', ']'],
|
||||
['(', ')']
|
||||
],
|
||||
autoClosingPairs: [
|
||||
{ open: '{', close: '}' },
|
||||
{ open: '[', close: ']' },
|
||||
{ open: '(', close: ')' },
|
||||
{ open: '"', close: '"', notIn: ['string'] }
|
||||
],
|
||||
surroundingPairs: [
|
||||
{ open: '{', close: '}' },
|
||||
{ open: '[', close: ']' },
|
||||
{ open: '(', close: ')' },
|
||||
{ open: '"', close: '"' }
|
||||
]
|
||||
};
|
||||
var language = {
|
||||
defaultToken: '',
|
||||
tokenPostfix: '.hcl',
|
||||
keywords: [
|
||||
'var',
|
||||
'local',
|
||||
'path',
|
||||
'for_each',
|
||||
'any',
|
||||
'string',
|
||||
'number',
|
||||
'bool',
|
||||
'true',
|
||||
'false',
|
||||
'null',
|
||||
'if ',
|
||||
'else ',
|
||||
'endif ',
|
||||
'for ',
|
||||
'in',
|
||||
'endfor'
|
||||
],
|
||||
operators: [
|
||||
'=',
|
||||
'>=',
|
||||
'<=',
|
||||
'==',
|
||||
'!=',
|
||||
'+',
|
||||
'-',
|
||||
'*',
|
||||
'/',
|
||||
'%',
|
||||
'&&',
|
||||
'||',
|
||||
'!',
|
||||
'<',
|
||||
'>',
|
||||
'?',
|
||||
'...',
|
||||
':'
|
||||
],
|
||||
symbols: /[=><!~?:&|+\-*\/\^%]+/,
|
||||
escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
|
||||
terraformFunctions: /(abs|ceil|floor|log|max|min|pow|signum|chomp|format|formatlist|indent|join|lower|regex|regexall|replace|split|strrev|substr|title|trimspace|upper|chunklist|coalesce|coalescelist|compact|concat|contains|distinct|element|flatten|index|keys|length|list|lookup|map|matchkeys|merge|range|reverse|setintersection|setproduct|setunion|slice|sort|transpose|values|zipmap|base64decode|base64encode|base64gzip|csvdecode|jsondecode|jsonencode|urlencode|yamldecode|yamlencode|abspath|dirname|pathexpand|basename|file|fileexists|fileset|filebase64|templatefile|formatdate|timeadd|timestamp|base64sha256|base64sha512|bcrypt|filebase64sha256|filebase64sha512|filemd5|filemd1|filesha256|filesha512|md5|rsadecrypt|sha1|sha256|sha512|uuid|uuidv5|cidrhost|cidrnetmask|cidrsubnet|tobool|tolist|tomap|tonumber|toset|tostring)/,
|
||||
terraformMainBlocks: /(module|data|terraform|resource|provider|variable|output|locals)/,
|
||||
tokenizer: {
|
||||
root: [
|
||||
// highlight main blocks
|
||||
[
|
||||
/^@terraformMainBlocks([ \t]*)([\w-]+|"[\w-]+"|)([ \t]*)([\w-]+|"[\w-]+"|)([ \t]*)(\{)/,
|
||||
['type', '', 'string', '', 'string', '', '@brackets']
|
||||
],
|
||||
// highlight all the remaining blocks
|
||||
[
|
||||
/(\w+[ \t]+)([ \t]*)([\w-]+|"[\w-]+"|)([ \t]*)([\w-]+|"[\w-]+"|)([ \t]*)(\{)/,
|
||||
['identifier', '', 'string', '', 'string', '', '@brackets']
|
||||
],
|
||||
// highlight block
|
||||
[
|
||||
/(\w+[ \t]+)([ \t]*)([\w-]+|"[\w-]+"|)([ \t]*)([\w-]+|"[\w-]+"|)(=)(\{)/,
|
||||
['identifier', '', 'string', '', 'operator', '', '@brackets']
|
||||
],
|
||||
// terraform general highlight - shared with expressions
|
||||
{ include: '@terraform' }
|
||||
],
|
||||
terraform: [
|
||||
// highlight terraform functions
|
||||
[/@terraformFunctions(\()/, ['type', '@brackets']],
|
||||
// all other words are variables or keywords
|
||||
[
|
||||
/[a-zA-Z_]\w*-*/,
|
||||
{
|
||||
cases: {
|
||||
'@keywords': { token: 'keyword.$0' },
|
||||
'@default': 'variable'
|
||||
}
|
||||
}
|
||||
],
|
||||
{ include: '@whitespace' },
|
||||
{ include: '@heredoc' },
|
||||
// delimiters and operators
|
||||
[/[{}()\[\]]/, '@brackets'],
|
||||
[/[<>](?!@symbols)/, '@brackets'],
|
||||
[
|
||||
/@symbols/,
|
||||
{
|
||||
cases: {
|
||||
'@operators': 'operator',
|
||||
'@default': ''
|
||||
}
|
||||
}
|
||||
],
|
||||
// numbers
|
||||
[/\d*\d+[eE]([\-+]?\d+)?/, 'number.float'],
|
||||
[/\d*\.\d+([eE][\-+]?\d+)?/, 'number.float'],
|
||||
[/\d[\d']*/, 'number'],
|
||||
[/\d/, 'number'],
|
||||
[/[;,.]/, 'delimiter'],
|
||||
// strings
|
||||
[/"/, 'string', '@string'],
|
||||
[/'/, 'invalid']
|
||||
],
|
||||
heredoc: [
|
||||
[
|
||||
/<<[-]*\s*["]?([\w\-]+)["]?/,
|
||||
{ token: 'string.heredoc.delimiter', next: '@heredocBody.$1' }
|
||||
]
|
||||
],
|
||||
heredocBody: [
|
||||
[
|
||||
/([\w\-]+)$/,
|
||||
{
|
||||
cases: {
|
||||
'$1==$S2': [
|
||||
{
|
||||
token: 'string.heredoc.delimiter',
|
||||
next: '@popall'
|
||||
}
|
||||
],
|
||||
'@default': 'string.heredoc'
|
||||
}
|
||||
}
|
||||
],
|
||||
[/./, 'string.heredoc']
|
||||
],
|
||||
whitespace: [
|
||||
[/[ \t\r\n]+/, ''],
|
||||
[/\/\*/, 'comment', '@comment'],
|
||||
[/\/\/.*$/, 'comment'],
|
||||
[/#.*$/, 'comment']
|
||||
],
|
||||
comment: [
|
||||
[/[^\/*]+/, 'comment'],
|
||||
[/\*\//, 'comment', '@pop'],
|
||||
[/[\/*]/, 'comment']
|
||||
],
|
||||
string: [
|
||||
[/\$\{/, { token: 'delimiter', next: '@stringExpression' }],
|
||||
[/[^\\"\$]+/, 'string'],
|
||||
[/@escapes/, 'string.escape'],
|
||||
[/\\./, 'string.escape.invalid'],
|
||||
[/"/, 'string', '@popall']
|
||||
],
|
||||
stringInsideExpression: [
|
||||
[/[^\\"]+/, 'string'],
|
||||
[/@escapes/, 'string.escape'],
|
||||
[/\\./, 'string.escape.invalid'],
|
||||
[/"/, 'string', '@pop']
|
||||
],
|
||||
stringExpression: [
|
||||
[/\}/, { token: 'delimiter', next: '@pop' }],
|
||||
[/"/, 'string', '@stringInsideExpression'],
|
||||
{ include: '@terraform' }
|
||||
]
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
/***/ })
|
||||
|
||||
}]);
|
||||
File diff suppressed because one or more lines are too long
@ -0,0 +1,434 @@
|
||||
"use strict";
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[63760],{
|
||||
|
||||
/***/ 63760:
|
||||
/*!********************************************************************************!*\
|
||||
!*** ./node_modules/monaco-editor/esm/vs/basic-languages/protobuf/protobuf.js ***!
|
||||
\********************************************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
||||
/* harmony export */ "conf": function() { return /* binding */ conf; },
|
||||
/* harmony export */ "language": function() { return /* binding */ language; }
|
||||
/* harmony export */ });
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
var namedLiterals = ['true', 'false'];
|
||||
var conf = {
|
||||
comments: {
|
||||
lineComment: '//',
|
||||
blockComment: ['/*', '*/']
|
||||
},
|
||||
brackets: [
|
||||
['{', '}'],
|
||||
['[', ']'],
|
||||
['(', ')'],
|
||||
['<', '>']
|
||||
],
|
||||
surroundingPairs: [
|
||||
{ open: '{', close: '}' },
|
||||
{ open: '[', close: ']' },
|
||||
{ open: '(', close: ')' },
|
||||
{ open: '<', close: '>' },
|
||||
{ open: '"', close: '"' },
|
||||
{ open: "'", close: "'" }
|
||||
],
|
||||
autoClosingPairs: [
|
||||
{ open: '{', close: '}' },
|
||||
{ open: '[', close: ']' },
|
||||
{ open: '(', close: ')' },
|
||||
{ open: '<', close: '>' },
|
||||
{ open: '"', close: '"', notIn: ['string'] },
|
||||
{ open: "'", close: "'", notIn: ['string'] }
|
||||
],
|
||||
autoCloseBefore: ".,=}])>' \n\t",
|
||||
indentationRules: {
|
||||
increaseIndentPattern: new RegExp('^((?!\\/\\/).)*(\\{[^}"\'`]*|\\([^)"\'`]*|\\[[^\\]"\'`]*)$'),
|
||||
decreaseIndentPattern: new RegExp('^((?!.*?\\/\\*).*\\*/)?\\s*[\\}\\]].*$')
|
||||
}
|
||||
};
|
||||
var language = {
|
||||
defaultToken: '',
|
||||
tokenPostfix: '.proto',
|
||||
brackets: [
|
||||
{ open: '{', close: '}', token: 'delimiter.curly' },
|
||||
{ open: '[', close: ']', token: 'delimiter.square' },
|
||||
{ open: '(', close: ')', token: 'delimiter.parenthesis' },
|
||||
{ open: '<', close: '>', token: 'delimiter.angle' }
|
||||
],
|
||||
symbols: /[=><!~?:&|+\-*/^%]+/,
|
||||
keywords: [
|
||||
'syntax',
|
||||
'import',
|
||||
'weak',
|
||||
'public',
|
||||
'package',
|
||||
'option',
|
||||
'repeated',
|
||||
'oneof',
|
||||
'map',
|
||||
'reserved',
|
||||
'to',
|
||||
'max',
|
||||
'enum',
|
||||
'message',
|
||||
'service',
|
||||
'rpc',
|
||||
'stream',
|
||||
'returns',
|
||||
'package',
|
||||
'optional',
|
||||
'true',
|
||||
'false'
|
||||
],
|
||||
builtinTypes: [
|
||||
'double',
|
||||
'float',
|
||||
'int32',
|
||||
'int64',
|
||||
'uint32',
|
||||
'uint64',
|
||||
'sint32',
|
||||
'sint64',
|
||||
'fixed32',
|
||||
'fixed64',
|
||||
'sfixed32',
|
||||
'sfixed64',
|
||||
'bool',
|
||||
'string',
|
||||
'bytes'
|
||||
],
|
||||
operators: ['=', '+', '-'],
|
||||
namedLiterals: namedLiterals,
|
||||
escapes: "\\\\(u{[0-9A-Fa-f]+}|n|r|t|\\\\|'|\\${)",
|
||||
identifier: /[a-zA-Z]\w*/,
|
||||
fullIdentifier: /@identifier(?:\s*\.\s*@identifier)*/,
|
||||
optionName: /(?:@identifier|\(\s*@fullIdentifier\s*\))(?:\s*\.\s*@identifier)*/,
|
||||
messageName: /@identifier/,
|
||||
enumName: /@identifier/,
|
||||
messageType: /\.?\s*(?:@identifier\s*\.\s*)*@messageName/,
|
||||
enumType: /\.?\s*(?:@identifier\s*\.\s*)*@enumName/,
|
||||
floatLit: /[0-9]+\s*\.\s*[0-9]*(?:@exponent)?|[0-9]+@exponent|\.[0-9]+(?:@exponent)?/,
|
||||
exponent: /[eE]\s*[+-]?\s*[0-9]+/,
|
||||
boolLit: /true\b|false\b/,
|
||||
decimalLit: /[1-9][0-9]*/,
|
||||
octalLit: /0[0-7]*/,
|
||||
hexLit: /0[xX][0-9a-fA-F]+/,
|
||||
type: /double|float|int32|int64|uint32|uint64|sint32|sint64|fixed32|fixed64|sfixed32|sfixed64|bool|string|bytes|@messageType|@enumType/,
|
||||
keyType: /int32|int64|uint32|uint64|sint32|sint64|fixed32|fixed64|sfixed32|sfixed64|bool|string/,
|
||||
tokenizer: {
|
||||
root: [
|
||||
{ include: '@whitespace' },
|
||||
[/syntax/, 'keyword'],
|
||||
[/=/, 'operators'],
|
||||
[/;/, 'delimiter'],
|
||||
[
|
||||
/(")(proto3)(")/,
|
||||
['string.quote', 'string', { token: 'string.quote', switchTo: '@topLevel.proto3' }]
|
||||
],
|
||||
[
|
||||
/(")(proto2)(")/,
|
||||
['string.quote', 'string', { token: 'string.quote', switchTo: '@topLevel.proto2' }]
|
||||
]
|
||||
],
|
||||
topLevel: [
|
||||
// whitespace
|
||||
{ include: '@whitespace' },
|
||||
{ include: '@constant' },
|
||||
[/=/, 'operators'],
|
||||
[/[;.]/, 'delimiter'],
|
||||
[
|
||||
/@fullIdentifier/,
|
||||
{
|
||||
cases: {
|
||||
option: { token: 'keyword', next: '@option.$S2' },
|
||||
enum: { token: 'keyword', next: '@enumDecl.$S2' },
|
||||
message: { token: 'keyword', next: '@messageDecl.$S2' },
|
||||
service: { token: 'keyword', next: '@serviceDecl.$S2' },
|
||||
extend: {
|
||||
cases: {
|
||||
'$S2==proto2': { token: 'keyword', next: '@extendDecl.$S2' }
|
||||
}
|
||||
},
|
||||
'@keywords': 'keyword',
|
||||
'@default': 'identifier'
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
enumDecl: [
|
||||
{ include: '@whitespace' },
|
||||
[/@identifier/, 'type.identifier'],
|
||||
[/{/, { token: '@brackets', bracket: '@open', switchTo: '@enumBody.$S2' }]
|
||||
],
|
||||
enumBody: [
|
||||
{ include: '@whitespace' },
|
||||
{ include: '@constant' },
|
||||
[/=/, 'operators'],
|
||||
[/;/, 'delimiter'],
|
||||
[/option\b/, 'keyword', '@option.$S2'],
|
||||
[/@identifier/, 'identifier'],
|
||||
[/\[/, { token: '@brackets', bracket: '@open', next: '@options.$S2' }],
|
||||
[/}/, { token: '@brackets', bracket: '@close', next: '@pop' }]
|
||||
],
|
||||
messageDecl: [
|
||||
{ include: '@whitespace' },
|
||||
[/@identifier/, 'type.identifier'],
|
||||
[/{/, { token: '@brackets', bracket: '@open', switchTo: '@messageBody.$S2' }]
|
||||
],
|
||||
messageBody: [
|
||||
{ include: '@whitespace' },
|
||||
{ include: '@constant' },
|
||||
[/=/, 'operators'],
|
||||
[/;/, 'delimiter'],
|
||||
[
|
||||
'(map)(s*)(<)',
|
||||
['keyword', 'white', { token: '@brackets', bracket: '@open', next: '@map.$S2' }]
|
||||
],
|
||||
[
|
||||
/@identifier/,
|
||||
{
|
||||
cases: {
|
||||
option: { token: 'keyword', next: '@option.$S2' },
|
||||
enum: { token: 'keyword', next: '@enumDecl.$S2' },
|
||||
message: { token: 'keyword', next: '@messageDecl.$S2' },
|
||||
oneof: { token: 'keyword', next: '@oneofDecl.$S2' },
|
||||
extensions: {
|
||||
cases: {
|
||||
'$S2==proto2': { token: 'keyword', next: '@reserved.$S2' }
|
||||
}
|
||||
},
|
||||
reserved: { token: 'keyword', next: '@reserved.$S2' },
|
||||
'(?:repeated|optional)': { token: 'keyword', next: '@field.$S2' },
|
||||
required: {
|
||||
cases: {
|
||||
'$S2==proto2': { token: 'keyword', next: '@field.$S2' }
|
||||
}
|
||||
},
|
||||
'$S2==proto3': { token: '@rematch', next: '@field.$S2' }
|
||||
}
|
||||
}
|
||||
],
|
||||
[/\[/, { token: '@brackets', bracket: '@open', next: '@options.$S2' }],
|
||||
[/}/, { token: '@brackets', bracket: '@close', next: '@pop' }]
|
||||
],
|
||||
extendDecl: [
|
||||
{ include: '@whitespace' },
|
||||
[/@identifier/, 'type.identifier'],
|
||||
[/{/, { token: '@brackets', bracket: '@open', switchTo: '@extendBody.$S2' }]
|
||||
],
|
||||
extendBody: [
|
||||
{ include: '@whitespace' },
|
||||
{ include: '@constant' },
|
||||
[/;/, 'delimiter'],
|
||||
[/(?:repeated|optional|required)/, 'keyword', '@field.$S2'],
|
||||
[/\[/, { token: '@brackets', bracket: '@open', next: '@options.$S2' }],
|
||||
[/}/, { token: '@brackets', bracket: '@close', next: '@pop' }]
|
||||
],
|
||||
options: [
|
||||
{ include: '@whitespace' },
|
||||
{ include: '@constant' },
|
||||
[/;/, 'delimiter'],
|
||||
[/@optionName/, 'annotation'],
|
||||
[/[()]/, 'annotation.brackets'],
|
||||
[/=/, 'operator'],
|
||||
[/\]/, { token: '@brackets', bracket: '@close', next: '@pop' }]
|
||||
],
|
||||
option: [
|
||||
{ include: '@whitespace' },
|
||||
[/@optionName/, 'annotation'],
|
||||
[/[()]/, 'annotation.brackets'],
|
||||
[/=/, 'operator', '@pop']
|
||||
],
|
||||
oneofDecl: [
|
||||
{ include: '@whitespace' },
|
||||
[/@identifier/, 'identifier'],
|
||||
[/{/, { token: '@brackets', bracket: '@open', switchTo: '@oneofBody.$S2' }]
|
||||
],
|
||||
oneofBody: [
|
||||
{ include: '@whitespace' },
|
||||
{ include: '@constant' },
|
||||
[/;/, 'delimiter'],
|
||||
[/(@identifier)(\s*)(=)/, ['identifier', 'white', 'delimiter']],
|
||||
[
|
||||
/@fullIdentifier|\./,
|
||||
{
|
||||
cases: {
|
||||
'@builtinTypes': 'keyword',
|
||||
'@default': 'type.identifier'
|
||||
}
|
||||
}
|
||||
],
|
||||
[/\[/, { token: '@brackets', bracket: '@open', next: '@options.$S2' }],
|
||||
[/}/, { token: '@brackets', bracket: '@close', next: '@pop' }]
|
||||
],
|
||||
reserved: [
|
||||
{ include: '@whitespace' },
|
||||
[/,/, 'delimiter'],
|
||||
[/;/, 'delimiter', '@pop'],
|
||||
{ include: '@constant' },
|
||||
[/to\b|max\b/, 'keyword']
|
||||
],
|
||||
map: [
|
||||
{ include: '@whitespace' },
|
||||
[
|
||||
/@fullIdentifier|\./,
|
||||
{
|
||||
cases: {
|
||||
'@builtinTypes': 'keyword',
|
||||
'@default': 'type.identifier'
|
||||
}
|
||||
}
|
||||
],
|
||||
[/,/, 'delimiter'],
|
||||
[/>/, { token: '@brackets', bracket: '@close', switchTo: 'identifier' }]
|
||||
],
|
||||
field: [
|
||||
{ include: '@whitespace' },
|
||||
[
|
||||
'group',
|
||||
{
|
||||
cases: {
|
||||
'$S2==proto2': { token: 'keyword', switchTo: '@groupDecl.$S2' }
|
||||
}
|
||||
}
|
||||
],
|
||||
[
|
||||
/(@identifier)(\s*)(=)/,
|
||||
['identifier', 'white', { token: 'delimiter', next: '@pop' }]
|
||||
],
|
||||
[
|
||||
/@fullIdentifier|\./,
|
||||
{
|
||||
cases: {
|
||||
'@builtinTypes': 'keyword',
|
||||
'@default': 'type.identifier'
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
groupDecl: [
|
||||
{ include: '@whitespace' },
|
||||
[/@identifier/, 'identifier'],
|
||||
['=', 'operator'],
|
||||
[/{/, { token: '@brackets', bracket: '@open', switchTo: '@messageBody.$S2' }],
|
||||
{ include: '@constant' }
|
||||
],
|
||||
type: [
|
||||
{ include: '@whitespace' },
|
||||
[/@identifier/, 'type.identifier', '@pop'],
|
||||
[/./, 'delimiter']
|
||||
],
|
||||
identifier: [{ include: '@whitespace' }, [/@identifier/, 'identifier', '@pop']],
|
||||
serviceDecl: [
|
||||
{ include: '@whitespace' },
|
||||
[/@identifier/, 'identifier'],
|
||||
[/{/, { token: '@brackets', bracket: '@open', switchTo: '@serviceBody.$S2' }]
|
||||
],
|
||||
serviceBody: [
|
||||
{ include: '@whitespace' },
|
||||
{ include: '@constant' },
|
||||
[/;/, 'delimiter'],
|
||||
[/option\b/, 'keyword', '@option.$S2'],
|
||||
[/rpc\b/, 'keyword', '@rpc.$S2'],
|
||||
[/\[/, { token: '@brackets', bracket: '@open', next: '@options.$S2' }],
|
||||
[/}/, { token: '@brackets', bracket: '@close', next: '@pop' }]
|
||||
],
|
||||
rpc: [
|
||||
{ include: '@whitespace' },
|
||||
[/@identifier/, 'identifier'],
|
||||
[/\(/, { token: '@brackets', bracket: '@open', switchTo: '@request.$S2' }],
|
||||
[/{/, { token: '@brackets', bracket: '@open', next: '@methodOptions.$S2' }],
|
||||
[/;/, 'delimiter', '@pop']
|
||||
],
|
||||
request: [
|
||||
{ include: '@whitespace' },
|
||||
[
|
||||
/@messageType/,
|
||||
{
|
||||
cases: {
|
||||
stream: { token: 'keyword', next: '@type.$S2' },
|
||||
'@default': 'type.identifier'
|
||||
}
|
||||
}
|
||||
],
|
||||
[/\)/, { token: '@brackets', bracket: '@close', switchTo: '@returns.$S2' }]
|
||||
],
|
||||
returns: [
|
||||
{ include: '@whitespace' },
|
||||
[/returns\b/, 'keyword'],
|
||||
[/\(/, { token: '@brackets', bracket: '@open', switchTo: '@response.$S2' }]
|
||||
],
|
||||
response: [
|
||||
{ include: '@whitespace' },
|
||||
[
|
||||
/@messageType/,
|
||||
{
|
||||
cases: {
|
||||
stream: { token: 'keyword', next: '@type.$S2' },
|
||||
'@default': 'type.identifier'
|
||||
}
|
||||
}
|
||||
],
|
||||
[/\)/, { token: '@brackets', bracket: '@close', switchTo: '@rpc.$S2' }]
|
||||
],
|
||||
methodOptions: [
|
||||
{ include: '@whitespace' },
|
||||
{ include: '@constant' },
|
||||
[/;/, 'delimiter'],
|
||||
['option', 'keyword'],
|
||||
[/@optionName/, 'annotation'],
|
||||
[/[()]/, 'annotation.brackets'],
|
||||
[/=/, 'operator'],
|
||||
[/}/, { token: '@brackets', bracket: '@close', next: '@pop' }]
|
||||
],
|
||||
comment: [
|
||||
[/[^\/*]+/, 'comment'],
|
||||
[/\/\*/, 'comment', '@push'],
|
||||
['\\*/', 'comment', '@pop'],
|
||||
[/[\/*]/, 'comment']
|
||||
],
|
||||
string: [
|
||||
[/[^\\"]+/, 'string'],
|
||||
[/@escapes/, 'string.escape'],
|
||||
[/\\./, 'string.escape.invalid'],
|
||||
[/"/, { token: 'string.quote', bracket: '@close', next: '@pop' }]
|
||||
],
|
||||
stringSingle: [
|
||||
[/[^\\']+/, 'string'],
|
||||
[/@escapes/, 'string.escape'],
|
||||
[/\\./, 'string.escape.invalid'],
|
||||
[/'/, { token: 'string.quote', bracket: '@close', next: '@pop' }]
|
||||
],
|
||||
constant: [
|
||||
['@boolLit', 'keyword.constant'],
|
||||
['@hexLit', 'number.hex'],
|
||||
['@octalLit', 'number.octal'],
|
||||
['@decimalLit', 'number'],
|
||||
['@floatLit', 'number.float'],
|
||||
[/("([^"\\]|\\.)*|'([^'\\]|\\.)*)$/, 'string.invalid'],
|
||||
[/"/, { token: 'string.quote', bracket: '@open', next: '@string' }],
|
||||
[/'/, { token: 'string.quote', bracket: '@open', next: '@stringSingle' }],
|
||||
[/{/, { token: '@brackets', bracket: '@open', next: '@prototext' }],
|
||||
[/identifier/, 'identifier']
|
||||
],
|
||||
whitespace: [
|
||||
[/[ \t\r\n]+/, 'white'],
|
||||
[/\/\*/, 'comment', '@comment'],
|
||||
[/\/\/.*$/, 'comment']
|
||||
],
|
||||
prototext: [
|
||||
{ include: '@whitespace' },
|
||||
{ include: '@constant' },
|
||||
[/@identifier/, 'identifier'],
|
||||
[/[:;]/, 'delimiter'],
|
||||
[/}/, { token: '@brackets', bracket: '@close', next: '@pop' }]
|
||||
]
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
/***/ })
|
||||
|
||||
}]);
|
||||
@ -0,0 +1,177 @@
|
||||
"use strict";
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[64912],{
|
||||
|
||||
/***/ 64912:
|
||||
/*!**************************************************************************!*\
|
||||
!*** ./node_modules/monaco-editor/esm/vs/basic-languages/lexon/lexon.js ***!
|
||||
\**************************************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
||||
/* harmony export */ "conf": function() { return /* binding */ conf; },
|
||||
/* harmony export */ "language": function() { return /* binding */ language; }
|
||||
/* harmony export */ });
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
var conf = {
|
||||
comments: {
|
||||
lineComment: 'COMMENT'
|
||||
// blockComment: ['COMMENT', '.'],
|
||||
},
|
||||
brackets: [['(', ')']],
|
||||
autoClosingPairs: [
|
||||
{ open: '{', close: '}' },
|
||||
{ open: '[', close: ']' },
|
||||
{ open: '(', close: ')' },
|
||||
{ open: '"', close: '"' },
|
||||
{ open: ':', close: '.' }
|
||||
],
|
||||
surroundingPairs: [
|
||||
{ open: '{', close: '}' },
|
||||
{ open: '[', close: ']' },
|
||||
{ open: '(', close: ')' },
|
||||
{ open: '`', close: '`' },
|
||||
{ open: '"', close: '"' },
|
||||
{ open: "'", close: "'" },
|
||||
{ open: ':', close: '.' }
|
||||
],
|
||||
folding: {
|
||||
markers: {
|
||||
start: new RegExp('^\\s*(::\\s*|COMMENT\\s+)#region'),
|
||||
end: new RegExp('^\\s*(::\\s*|COMMENT\\s+)#endregion')
|
||||
}
|
||||
}
|
||||
};
|
||||
var language = {
|
||||
// Set defaultToken to invalid to see what you do not tokenize yet
|
||||
// defaultToken: 'invalid',
|
||||
tokenPostfix: '.lexon',
|
||||
ignoreCase: true,
|
||||
keywords: [
|
||||
'lexon',
|
||||
'lex',
|
||||
'clause',
|
||||
'terms',
|
||||
'contracts',
|
||||
'may',
|
||||
'pay',
|
||||
'pays',
|
||||
'appoints',
|
||||
'into',
|
||||
'to'
|
||||
],
|
||||
typeKeywords: ['amount', 'person', 'key', 'time', 'date', 'asset', 'text'],
|
||||
operators: [
|
||||
'less',
|
||||
'greater',
|
||||
'equal',
|
||||
'le',
|
||||
'gt',
|
||||
'or',
|
||||
'and',
|
||||
'add',
|
||||
'added',
|
||||
'subtract',
|
||||
'subtracted',
|
||||
'multiply',
|
||||
'multiplied',
|
||||
'times',
|
||||
'divide',
|
||||
'divided',
|
||||
'is',
|
||||
'be',
|
||||
'certified'
|
||||
],
|
||||
// we include these common regular expressions
|
||||
symbols: /[=><!~?:&|+\-*\/\^%]+/,
|
||||
// The main tokenizer for our languages
|
||||
tokenizer: {
|
||||
root: [
|
||||
// comment
|
||||
[/^(\s*)(comment:?(?:\s.*|))$/, ['', 'comment']],
|
||||
// special identifier cases
|
||||
[
|
||||
/"/,
|
||||
{
|
||||
token: 'identifier.quote',
|
||||
bracket: '@open',
|
||||
next: '@quoted_identifier'
|
||||
}
|
||||
],
|
||||
[
|
||||
'LEX$',
|
||||
{
|
||||
token: 'keyword',
|
||||
bracket: '@open',
|
||||
next: '@identifier_until_period'
|
||||
}
|
||||
],
|
||||
['LEXON', { token: 'keyword', bracket: '@open', next: '@semver' }],
|
||||
[
|
||||
':',
|
||||
{
|
||||
token: 'delimiter',
|
||||
bracket: '@open',
|
||||
next: '@identifier_until_period'
|
||||
}
|
||||
],
|
||||
// identifiers and keywords
|
||||
[
|
||||
/[a-z_$][\w$]*/,
|
||||
{
|
||||
cases: {
|
||||
'@operators': 'operator',
|
||||
'@typeKeywords': 'keyword.type',
|
||||
'@keywords': 'keyword',
|
||||
'@default': 'identifier'
|
||||
}
|
||||
}
|
||||
],
|
||||
// whitespace
|
||||
{ include: '@whitespace' },
|
||||
// delimiters and operators
|
||||
[/[{}()\[\]]/, '@brackets'],
|
||||
[/[<>](?!@symbols)/, '@brackets'],
|
||||
[/@symbols/, 'delimiter'],
|
||||
// numbers
|
||||
[/\d*\.\d*\.\d*/, 'number.semver'],
|
||||
[/\d*\.\d+([eE][\-+]?\d+)?/, 'number.float'],
|
||||
[/0[xX][0-9a-fA-F]+/, 'number.hex'],
|
||||
[/\d+/, 'number'],
|
||||
// delimiter: after number because of .\d floats
|
||||
[/[;,.]/, 'delimiter']
|
||||
],
|
||||
quoted_identifier: [
|
||||
[/[^\\"]+/, 'identifier'],
|
||||
[/"/, { token: 'identifier.quote', bracket: '@close', next: '@pop' }]
|
||||
],
|
||||
space_identifier_until_period: [
|
||||
[':', 'delimiter'],
|
||||
[' ', { token: 'white', next: '@identifier_rest' }]
|
||||
],
|
||||
identifier_until_period: [
|
||||
{ include: '@whitespace' },
|
||||
[':', { token: 'delimiter', next: '@identifier_rest' }],
|
||||
[/[^\\.]+/, 'identifier'],
|
||||
[/\./, { token: 'delimiter', bracket: '@close', next: '@pop' }]
|
||||
],
|
||||
identifier_rest: [
|
||||
[/[^\\.]+/, 'identifier'],
|
||||
[/\./, { token: 'delimiter', bracket: '@close', next: '@pop' }]
|
||||
],
|
||||
semver: [
|
||||
{ include: '@whitespace' },
|
||||
[':', 'delimiter'],
|
||||
[/\d*\.\d*\.\d*/, { token: 'number.semver', bracket: '@close', next: '@pop' }]
|
||||
],
|
||||
whitespace: [[/[ \t\r\n]+/, 'white']]
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
/***/ })
|
||||
|
||||
}]);
|
||||
@ -0,0 +1,304 @@
|
||||
"use strict";
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[69400],{
|
||||
|
||||
/***/ 69400:
|
||||
/*!****************************************************************************!*\
|
||||
!*** ./node_modules/monaco-editor/esm/vs/basic-languages/qsharp/qsharp.js ***!
|
||||
\****************************************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
||||
/* harmony export */ "conf": function() { return /* binding */ conf; },
|
||||
/* harmony export */ "language": function() { return /* binding */ language; }
|
||||
/* harmony export */ });
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
var conf = {
|
||||
comments: {
|
||||
lineComment: '//'
|
||||
},
|
||||
brackets: [
|
||||
['{', '}'],
|
||||
['[', ']'],
|
||||
['(', ')']
|
||||
],
|
||||
autoClosingPairs: [
|
||||
{ open: '{', close: '}' },
|
||||
{ open: '[', close: ']' },
|
||||
{ open: '(', close: ')' },
|
||||
{ open: '"', close: '"', notIn: ['string', 'comment'] }
|
||||
],
|
||||
surroundingPairs: [
|
||||
{ open: '{', close: '}' },
|
||||
{ open: '[', close: ']' },
|
||||
{ open: '(', close: ')' },
|
||||
{ open: '"', close: '"' }
|
||||
]
|
||||
};
|
||||
var language = {
|
||||
// Set defaultToken to invalid to see what you do not tokenize yet
|
||||
keywords: [
|
||||
'namespace',
|
||||
'open',
|
||||
'as',
|
||||
'operation',
|
||||
'function',
|
||||
'body',
|
||||
'adjoint',
|
||||
'newtype',
|
||||
'controlled',
|
||||
'if',
|
||||
'elif',
|
||||
'else',
|
||||
'repeat',
|
||||
'until',
|
||||
'fixup',
|
||||
'for',
|
||||
'in',
|
||||
'while',
|
||||
'return',
|
||||
'fail',
|
||||
'within',
|
||||
'apply',
|
||||
'Adjoint',
|
||||
'Controlled',
|
||||
'Adj',
|
||||
'Ctl',
|
||||
'is',
|
||||
'self',
|
||||
'auto',
|
||||
'distribute',
|
||||
'invert',
|
||||
'intrinsic',
|
||||
'let',
|
||||
'set',
|
||||
'w/',
|
||||
'new',
|
||||
'not',
|
||||
'and',
|
||||
'or',
|
||||
'use',
|
||||
'borrow',
|
||||
'using',
|
||||
'borrowing',
|
||||
'mutable'
|
||||
],
|
||||
typeKeywords: [
|
||||
'Unit',
|
||||
'Int',
|
||||
'BigInt',
|
||||
'Double',
|
||||
'Bool',
|
||||
'String',
|
||||
'Qubit',
|
||||
'Result',
|
||||
'Pauli',
|
||||
'Range'
|
||||
],
|
||||
invalidKeywords: [
|
||||
'abstract',
|
||||
'base',
|
||||
'bool',
|
||||
'break',
|
||||
'byte',
|
||||
'case',
|
||||
'catch',
|
||||
'char',
|
||||
'checked',
|
||||
'class',
|
||||
'const',
|
||||
'continue',
|
||||
'decimal',
|
||||
'default',
|
||||
'delegate',
|
||||
'do',
|
||||
'double',
|
||||
'enum',
|
||||
'event',
|
||||
'explicit',
|
||||
'extern',
|
||||
'finally',
|
||||
'fixed',
|
||||
'float',
|
||||
'foreach',
|
||||
'goto',
|
||||
'implicit',
|
||||
'int',
|
||||
'interface',
|
||||
'lock',
|
||||
'long',
|
||||
'null',
|
||||
'object',
|
||||
'operator',
|
||||
'out',
|
||||
'override',
|
||||
'params',
|
||||
'private',
|
||||
'protected',
|
||||
'public',
|
||||
'readonly',
|
||||
'ref',
|
||||
'sbyte',
|
||||
'sealed',
|
||||
'short',
|
||||
'sizeof',
|
||||
'stackalloc',
|
||||
'static',
|
||||
'string',
|
||||
'struct',
|
||||
'switch',
|
||||
'this',
|
||||
'throw',
|
||||
'try',
|
||||
'typeof',
|
||||
'unit',
|
||||
'ulong',
|
||||
'unchecked',
|
||||
'unsafe',
|
||||
'ushort',
|
||||
'virtual',
|
||||
'void',
|
||||
'volatile'
|
||||
],
|
||||
constants: ['true', 'false', 'PauliI', 'PauliX', 'PauliY', 'PauliZ', 'One', 'Zero'],
|
||||
builtin: [
|
||||
'X',
|
||||
'Y',
|
||||
'Z',
|
||||
'H',
|
||||
'HY',
|
||||
'S',
|
||||
'T',
|
||||
'SWAP',
|
||||
'CNOT',
|
||||
'CCNOT',
|
||||
'MultiX',
|
||||
'R',
|
||||
'RFrac',
|
||||
'Rx',
|
||||
'Ry',
|
||||
'Rz',
|
||||
'R1',
|
||||
'R1Frac',
|
||||
'Exp',
|
||||
'ExpFrac',
|
||||
'Measure',
|
||||
'M',
|
||||
'MultiM',
|
||||
'Message',
|
||||
'Length',
|
||||
'Assert',
|
||||
'AssertProb',
|
||||
'AssertEqual'
|
||||
],
|
||||
operators: [
|
||||
'and=',
|
||||
'<-',
|
||||
'->',
|
||||
'*',
|
||||
'*=',
|
||||
'@',
|
||||
'!',
|
||||
'^',
|
||||
'^=',
|
||||
':',
|
||||
'::',
|
||||
'..',
|
||||
'==',
|
||||
'...',
|
||||
'=',
|
||||
'=>',
|
||||
'>',
|
||||
'>=',
|
||||
'<',
|
||||
'<=',
|
||||
'-',
|
||||
'-=',
|
||||
'!=',
|
||||
'or=',
|
||||
'%',
|
||||
'%=',
|
||||
'|',
|
||||
'+',
|
||||
'+=',
|
||||
'?',
|
||||
'/',
|
||||
'/=',
|
||||
'&&&',
|
||||
'&&&=',
|
||||
'^^^',
|
||||
'^^^=',
|
||||
'>>>',
|
||||
'>>>=',
|
||||
'<<<',
|
||||
'<<<=',
|
||||
'|||',
|
||||
'|||=',
|
||||
'~~~',
|
||||
'_',
|
||||
'w/',
|
||||
'w/='
|
||||
],
|
||||
namespaceFollows: ['namespace', 'open'],
|
||||
symbols: /[=><!~?:&|+\-*\/\^%@._]+/,
|
||||
escapes: /\\[\s\S]/,
|
||||
// The main tokenizer for our languages
|
||||
tokenizer: {
|
||||
root: [
|
||||
// identifiers and keywords
|
||||
[
|
||||
/[a-zA-Z_$][\w$]*/,
|
||||
{
|
||||
cases: {
|
||||
'@namespaceFollows': {
|
||||
token: 'keyword.$0',
|
||||
next: '@namespace'
|
||||
},
|
||||
'@typeKeywords': 'type',
|
||||
'@keywords': 'keyword',
|
||||
'@constants': 'constant',
|
||||
'@builtin': 'keyword',
|
||||
'@invalidKeywords': 'invalid',
|
||||
'@default': 'identifier'
|
||||
}
|
||||
}
|
||||
],
|
||||
// whitespace
|
||||
{ include: '@whitespace' },
|
||||
// delimiters and operators
|
||||
[/[{}()\[\]]/, '@brackets'],
|
||||
[/@symbols/, { cases: { '@operators': 'operator', '@default': '' } }],
|
||||
// numbers
|
||||
[/\d*\.\d+([eE][\-+]?\d+)?/, 'number.float'],
|
||||
[/\d+/, 'number'],
|
||||
// delimiter: after number because of .\d floats
|
||||
[/[;,.]/, 'delimiter'],
|
||||
// strings
|
||||
//[/"([^"\\]|\\.)*$/, 'string.invalid' ], // non-teminated string
|
||||
[/"/, { token: 'string.quote', bracket: '@open', next: '@string' }]
|
||||
],
|
||||
string: [
|
||||
[/[^\\"]+/, 'string'],
|
||||
[/@escapes/, 'string.escape'],
|
||||
[/"/, { token: 'string.quote', bracket: '@close', next: '@pop' }]
|
||||
],
|
||||
namespace: [
|
||||
{ include: '@whitespace' },
|
||||
[/[A-Za-z]\w*/, 'namespace'],
|
||||
[/[\.=]/, 'delimiter'],
|
||||
['', '', '@pop']
|
||||
],
|
||||
whitespace: [
|
||||
[/[ \t\r\n]+/, 'white'],
|
||||
[/(\/\/).*/, 'comment']
|
||||
]
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
/***/ })
|
||||
|
||||
}]);
|
||||
@ -0,0 +1,591 @@
|
||||
"use strict";
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[81886],{
|
||||
|
||||
/***/ 81886:
|
||||
/*!******************************************************************************************!*\
|
||||
!*** ./node_modules/monaco-editor/esm/vs/basic-languages/systemverilog/systemverilog.js ***!
|
||||
\******************************************************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
||||
/* harmony export */ "conf": function() { return /* binding */ conf; },
|
||||
/* harmony export */ "language": function() { return /* binding */ language; }
|
||||
/* harmony export */ });
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
var conf = {
|
||||
comments: {
|
||||
lineComment: '//',
|
||||
blockComment: ['/*', '*/']
|
||||
},
|
||||
brackets: [
|
||||
['{', '}'],
|
||||
['[', ']'],
|
||||
['(', ')'],
|
||||
['begin', 'end'],
|
||||
['case', 'endcase'],
|
||||
['casex', 'endcase'],
|
||||
['casez', 'endcase'],
|
||||
['checker', 'endchecker'],
|
||||
['class', 'endclass'],
|
||||
['clocking', 'endclocking'],
|
||||
['config', 'endconfig'],
|
||||
['function', 'endfunction'],
|
||||
['generate', 'endgenerate'],
|
||||
['group', 'endgroup'],
|
||||
['interface', 'endinterface'],
|
||||
['module', 'endmodule'],
|
||||
['package', 'endpackage'],
|
||||
['primitive', 'endprimitive'],
|
||||
['program', 'endprogram'],
|
||||
['property', 'endproperty'],
|
||||
['specify', 'endspecify'],
|
||||
['sequence', 'endsequence'],
|
||||
['table', 'endtable'],
|
||||
['task', 'endtask']
|
||||
],
|
||||
autoClosingPairs: [
|
||||
{ open: '[', close: ']' },
|
||||
{ open: '{', close: '}' },
|
||||
{ open: '(', close: ')' },
|
||||
{ open: "'", close: "'", notIn: ['string', 'comment'] },
|
||||
{ open: '"', close: '"', notIn: ['string'] }
|
||||
],
|
||||
surroundingPairs: [
|
||||
{ open: '{', close: '}' },
|
||||
{ open: '[', close: ']' },
|
||||
{ open: '(', close: ')' },
|
||||
{ open: '"', close: '"' },
|
||||
{ open: "'", close: "'" }
|
||||
],
|
||||
folding: {
|
||||
offSide: false,
|
||||
markers: {
|
||||
start: new RegExp('^(?:\\s*|.*(?!\\/[\\/\\*])[^\\w])(?:begin|case(x|z)?|class|clocking|config|covergroup|function|generate|interface|module|package|primitive|property|program|sequence|specify|table|task)\\b'),
|
||||
end: new RegExp('^(?:\\s*|.*(?!\\/[\\/\\*])[^\\w])(?:end|endcase|endclass|endclocking|endconfig|endgroup|endfunction|endgenerate|endinterface|endmodule|endpackage|endprimitive|endproperty|endprogram|endsequence|endspecify|endtable|endtask)\\b')
|
||||
}
|
||||
}
|
||||
};
|
||||
var language = {
|
||||
defaultToken: '',
|
||||
tokenPostfix: '.sv',
|
||||
brackets: [
|
||||
{ token: 'delimiter.curly', open: '{', close: '}' },
|
||||
{ token: 'delimiter.parenthesis', open: '(', close: ')' },
|
||||
{ token: 'delimiter.square', open: '[', close: ']' },
|
||||
{ token: 'delimiter.angle', open: '<', close: '>' }
|
||||
],
|
||||
keywords: [
|
||||
'accept_on',
|
||||
'alias',
|
||||
'always',
|
||||
'always_comb',
|
||||
'always_ff',
|
||||
'always_latch',
|
||||
'and',
|
||||
'assert',
|
||||
'assign',
|
||||
'assume',
|
||||
'automatic',
|
||||
'before',
|
||||
'begin',
|
||||
'bind',
|
||||
'bins',
|
||||
'binsof',
|
||||
'bit',
|
||||
'break',
|
||||
'buf',
|
||||
'bufif0',
|
||||
'bufif1',
|
||||
'byte',
|
||||
'case',
|
||||
'casex',
|
||||
'casez',
|
||||
'cell',
|
||||
'chandle',
|
||||
'checker',
|
||||
'class',
|
||||
'clocking',
|
||||
'cmos',
|
||||
'config',
|
||||
'const',
|
||||
'constraint',
|
||||
'context',
|
||||
'continue',
|
||||
'cover',
|
||||
'covergroup',
|
||||
'coverpoint',
|
||||
'cross',
|
||||
'deassign',
|
||||
'default',
|
||||
'defparam',
|
||||
'design',
|
||||
'disable',
|
||||
'dist',
|
||||
'do',
|
||||
'edge',
|
||||
'else',
|
||||
'end',
|
||||
'endcase',
|
||||
'endchecker',
|
||||
'endclass',
|
||||
'endclocking',
|
||||
'endconfig',
|
||||
'endfunction',
|
||||
'endgenerate',
|
||||
'endgroup',
|
||||
'endinterface',
|
||||
'endmodule',
|
||||
'endpackage',
|
||||
'endprimitive',
|
||||
'endprogram',
|
||||
'endproperty',
|
||||
'endspecify',
|
||||
'endsequence',
|
||||
'endtable',
|
||||
'endtask',
|
||||
'enum',
|
||||
'event',
|
||||
'eventually',
|
||||
'expect',
|
||||
'export',
|
||||
'extends',
|
||||
'extern',
|
||||
'final',
|
||||
'first_match',
|
||||
'for',
|
||||
'force',
|
||||
'foreach',
|
||||
'forever',
|
||||
'fork',
|
||||
'forkjoin',
|
||||
'function',
|
||||
'generate',
|
||||
'genvar',
|
||||
'global',
|
||||
'highz0',
|
||||
'highz1',
|
||||
'if',
|
||||
'iff',
|
||||
'ifnone',
|
||||
'ignore_bins',
|
||||
'illegal_bins',
|
||||
'implements',
|
||||
'implies',
|
||||
'import',
|
||||
'incdir',
|
||||
'include',
|
||||
'initial',
|
||||
'inout',
|
||||
'input',
|
||||
'inside',
|
||||
'instance',
|
||||
'int',
|
||||
'integer',
|
||||
'interconnect',
|
||||
'interface',
|
||||
'intersect',
|
||||
'join',
|
||||
'join_any',
|
||||
'join_none',
|
||||
'large',
|
||||
'let',
|
||||
'liblist',
|
||||
'library',
|
||||
'local',
|
||||
'localparam',
|
||||
'logic',
|
||||
'longint',
|
||||
'macromodule',
|
||||
'matches',
|
||||
'medium',
|
||||
'modport',
|
||||
'module',
|
||||
'nand',
|
||||
'negedge',
|
||||
'nettype',
|
||||
'new',
|
||||
'nexttime',
|
||||
'nmos',
|
||||
'nor',
|
||||
'noshowcancelled',
|
||||
'not',
|
||||
'notif0',
|
||||
'notif1',
|
||||
'null',
|
||||
'or',
|
||||
'output',
|
||||
'package',
|
||||
'packed',
|
||||
'parameter',
|
||||
'pmos',
|
||||
'posedge',
|
||||
'primitive',
|
||||
'priority',
|
||||
'program',
|
||||
'property',
|
||||
'protected',
|
||||
'pull0',
|
||||
'pull1',
|
||||
'pulldown',
|
||||
'pullup',
|
||||
'pulsestyle_ondetect',
|
||||
'pulsestyle_onevent',
|
||||
'pure',
|
||||
'rand',
|
||||
'randc',
|
||||
'randcase',
|
||||
'randsequence',
|
||||
'rcmos',
|
||||
'real',
|
||||
'realtime',
|
||||
'ref',
|
||||
'reg',
|
||||
'reject_on',
|
||||
'release',
|
||||
'repeat',
|
||||
'restrict',
|
||||
'return',
|
||||
'rnmos',
|
||||
'rpmos',
|
||||
'rtran',
|
||||
'rtranif0',
|
||||
'rtranif1',
|
||||
's_always',
|
||||
's_eventually',
|
||||
's_nexttime',
|
||||
's_until',
|
||||
's_until_with',
|
||||
'scalared',
|
||||
'sequence',
|
||||
'shortint',
|
||||
'shortreal',
|
||||
'showcancelled',
|
||||
'signed',
|
||||
'small',
|
||||
'soft',
|
||||
'solve',
|
||||
'specify',
|
||||
'specparam',
|
||||
'static',
|
||||
'string',
|
||||
'strong',
|
||||
'strong0',
|
||||
'strong1',
|
||||
'struct',
|
||||
'super',
|
||||
'supply0',
|
||||
'supply1',
|
||||
'sync_accept_on',
|
||||
'sync_reject_on',
|
||||
'table',
|
||||
'tagged',
|
||||
'task',
|
||||
'this',
|
||||
'throughout',
|
||||
'time',
|
||||
'timeprecision',
|
||||
'timeunit',
|
||||
'tran',
|
||||
'tranif0',
|
||||
'tranif1',
|
||||
'tri',
|
||||
'tri0',
|
||||
'tri1',
|
||||
'triand',
|
||||
'trior',
|
||||
'trireg',
|
||||
'type',
|
||||
'typedef',
|
||||
'union',
|
||||
'unique',
|
||||
'unique0',
|
||||
'unsigned',
|
||||
'until',
|
||||
'until_with',
|
||||
'untyped',
|
||||
'use',
|
||||
'uwire',
|
||||
'var',
|
||||
'vectored',
|
||||
'virtual',
|
||||
'void',
|
||||
'wait',
|
||||
'wait_order',
|
||||
'wand',
|
||||
'weak',
|
||||
'weak0',
|
||||
'weak1',
|
||||
'while',
|
||||
'wildcard',
|
||||
'wire',
|
||||
'with',
|
||||
'within',
|
||||
'wor',
|
||||
'xnor',
|
||||
'xor'
|
||||
],
|
||||
builtin_gates: [
|
||||
'and',
|
||||
'nand',
|
||||
'nor',
|
||||
'or',
|
||||
'xor',
|
||||
'xnor',
|
||||
'buf',
|
||||
'not',
|
||||
'bufif0',
|
||||
'bufif1',
|
||||
'notif1',
|
||||
'notif0',
|
||||
'cmos',
|
||||
'nmos',
|
||||
'pmos',
|
||||
'rcmos',
|
||||
'rnmos',
|
||||
'rpmos',
|
||||
'tran',
|
||||
'tranif1',
|
||||
'tranif0',
|
||||
'rtran',
|
||||
'rtranif1',
|
||||
'rtranif0'
|
||||
],
|
||||
operators: [
|
||||
// assignment operators
|
||||
'=',
|
||||
'+=',
|
||||
'-=',
|
||||
'*=',
|
||||
'/=',
|
||||
'%=',
|
||||
'&=',
|
||||
'|=',
|
||||
'^=',
|
||||
'<<=',
|
||||
'>>+',
|
||||
'<<<=',
|
||||
'>>>=',
|
||||
// conditional expression
|
||||
'?',
|
||||
':',
|
||||
// Unary operators
|
||||
'+',
|
||||
'-',
|
||||
'!',
|
||||
'~',
|
||||
'&',
|
||||
'~&',
|
||||
'|',
|
||||
'~|',
|
||||
'^',
|
||||
'~^',
|
||||
'^~',
|
||||
//binary operators
|
||||
'+',
|
||||
'-',
|
||||
'*',
|
||||
'/',
|
||||
'%',
|
||||
'==',
|
||||
'!=',
|
||||
'===',
|
||||
'!==',
|
||||
'==?',
|
||||
'!=?',
|
||||
'&&',
|
||||
'||',
|
||||
'**',
|
||||
'<',
|
||||
'<=',
|
||||
'>',
|
||||
'>=',
|
||||
'&',
|
||||
'|',
|
||||
'^',
|
||||
'>>',
|
||||
'<<',
|
||||
'>>>',
|
||||
'<<<',
|
||||
// increment or decrement operator
|
||||
'++',
|
||||
'--',
|
||||
//binary logical operator
|
||||
'->',
|
||||
'<->',
|
||||
// binary set membership operator
|
||||
'inside',
|
||||
// binary distrubution operator
|
||||
'dist',
|
||||
'::',
|
||||
'+:',
|
||||
'-:',
|
||||
'*>',
|
||||
'&&&',
|
||||
'|->',
|
||||
'|=>',
|
||||
'#=#'
|
||||
],
|
||||
// we include these common regular expressions
|
||||
symbols: /[=><!~?:&|+\-*\/\^%#]+/,
|
||||
escapes: /%%|\\(?:[antvf\\"']|x[0-9A-Fa-f]{1,2}|[0-7]{1,3})/,
|
||||
identifier: /(?:[a-zA-Z_][a-zA-Z0-9_$\.]*|\\\S+ )/,
|
||||
systemcall: /[$][a-zA-Z0-9_]+/,
|
||||
timeunits: /s|ms|us|ns|ps|fs/,
|
||||
// The main tokenizer for our languages
|
||||
tokenizer: {
|
||||
root: [
|
||||
// module instances
|
||||
[
|
||||
/^(\s*)(@identifier)/,
|
||||
[
|
||||
'',
|
||||
{
|
||||
cases: {
|
||||
'@builtin_gates': {
|
||||
token: 'keyword.$2',
|
||||
next: '@module_instance'
|
||||
},
|
||||
table: {
|
||||
token: 'keyword.$2',
|
||||
next: '@table'
|
||||
},
|
||||
'@keywords': { token: 'keyword.$2' },
|
||||
'@default': {
|
||||
token: 'identifier',
|
||||
next: '@module_instance'
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
// include statements
|
||||
[/^\s*`include/, { token: 'keyword.directive.include', next: '@include' }],
|
||||
// Preprocessor directives
|
||||
[/^\s*`\s*\w+/, 'keyword'],
|
||||
// identifiers and keywords
|
||||
{ include: '@identifier_or_keyword' },
|
||||
// whitespace and comments
|
||||
{ include: '@whitespace' },
|
||||
// (* attributes *).
|
||||
[/\(\*.*\*\)/, 'annotation'],
|
||||
// Systemcall
|
||||
[/@systemcall/, 'variable.predefined'],
|
||||
// delimiters and operators
|
||||
[/[{}()\[\]]/, '@brackets'],
|
||||
[/[<>](?!@symbols)/, '@brackets'],
|
||||
[
|
||||
/@symbols/,
|
||||
{
|
||||
cases: {
|
||||
'@operators': 'delimiter',
|
||||
'@default': ''
|
||||
}
|
||||
}
|
||||
],
|
||||
// numbers
|
||||
{ include: '@numbers' },
|
||||
// delimiter: after number because of .\d floats
|
||||
[/[;,.]/, 'delimiter'],
|
||||
// strings
|
||||
{ include: '@strings' }
|
||||
],
|
||||
identifier_or_keyword: [
|
||||
[
|
||||
/@identifier/,
|
||||
{
|
||||
cases: {
|
||||
'@keywords': { token: 'keyword.$0' },
|
||||
'@default': 'identifier'
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
numbers: [
|
||||
[/\d+?[\d_]*(?:\.[\d_]+)?[eE][\-+]?\d+/, 'number.float'],
|
||||
[/\d+?[\d_]*\.[\d_]+(?:\s*@timeunits)?/, 'number.float'],
|
||||
[/(?:\d+?[\d_]*\s*)?'[sS]?[dD]\s*[0-9xXzZ?]+?[0-9xXzZ?_]*/, 'number'],
|
||||
[/(?:\d+?[\d_]*\s*)?'[sS]?[bB]\s*[0-1xXzZ?]+?[0-1xXzZ?_]*/, 'number.binary'],
|
||||
[/(?:\d+?[\d_]*\s*)?'[sS]?[oO]\s*[0-7xXzZ?]+?[0-7xXzZ?_]*/, 'number.octal'],
|
||||
[/(?:\d+?[\d_]*\s*)?'[sS]?[hH]\s*[0-9a-fA-FxXzZ?]+?[0-9a-fA-FxXzZ?_]*/, 'number.hex'],
|
||||
[/1step/, 'number'],
|
||||
[/[\dxXzZ]+?[\dxXzZ_]*(?:\s*@timeunits)?/, 'number'],
|
||||
[/'[01xXzZ]+/, 'number']
|
||||
],
|
||||
module_instance: [
|
||||
{ include: '@whitespace' },
|
||||
[/(#?)(\()/, ['', { token: '@brackets', next: '@port_connection' }]],
|
||||
[/@identifier\s*[;={}\[\],]/, { token: '@rematch', next: '@pop' }],
|
||||
[/@symbols|[;={}\[\],]/, { token: '@rematch', next: '@pop' }],
|
||||
[/@identifier/, 'type'],
|
||||
[/;/, 'delimiter', '@pop']
|
||||
],
|
||||
port_connection: [
|
||||
{ include: '@identifier_or_keyword' },
|
||||
{ include: '@whitespace' },
|
||||
[/@systemcall/, 'variable.predefined'],
|
||||
{ include: '@numbers' },
|
||||
{ include: '@strings' },
|
||||
[/[,]/, 'delimiter'],
|
||||
[/\(/, '@brackets', '@port_connection'],
|
||||
[/\)/, '@brackets', '@pop']
|
||||
],
|
||||
whitespace: [
|
||||
[/[ \t\r\n]+/, ''],
|
||||
[/\/\*/, 'comment', '@comment'],
|
||||
[/\/\/.*$/, 'comment']
|
||||
],
|
||||
comment: [
|
||||
[/[^\/*]+/, 'comment'],
|
||||
[/\*\//, 'comment', '@pop'],
|
||||
[/[\/*]/, 'comment']
|
||||
],
|
||||
strings: [
|
||||
[/"([^"\\]|\\.)*$/, 'string.invalid'],
|
||||
[/"/, 'string', '@string']
|
||||
],
|
||||
string: [
|
||||
[/[^\\"]+/, 'string'],
|
||||
[/@escapes/, 'string.escape'],
|
||||
[/\\./, 'string.escape.invalid'],
|
||||
[/"/, 'string', '@pop']
|
||||
],
|
||||
include: [
|
||||
[
|
||||
/(\s*)(")([\w*\/*]*)(.\w*)(")/,
|
||||
[
|
||||
'',
|
||||
'string.include.identifier',
|
||||
'string.include.identifier',
|
||||
'string.include.identifier',
|
||||
{ token: 'string.include.identifier', next: '@pop' }
|
||||
]
|
||||
],
|
||||
[
|
||||
/(\s*)(<)([\w*\/*]*)(.\w*)(>)/,
|
||||
[
|
||||
'',
|
||||
'string.include.identifier',
|
||||
'string.include.identifier',
|
||||
'string.include.identifier',
|
||||
{ token: 'string.include.identifier', next: '@pop' }
|
||||
]
|
||||
]
|
||||
],
|
||||
table: [
|
||||
{ include: '@whitespace' },
|
||||
[/[()]/, '@brackets'],
|
||||
[/[:;]/, 'delimiter'],
|
||||
[/[01\-*?xXbBrRfFpPnN]/, 'variable.predefined'],
|
||||
['endtable', 'keyword.endtable', '@pop']
|
||||
]
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
/***/ })
|
||||
|
||||
}]);
|
||||
@ -0,0 +1,222 @@
|
||||
"use strict";
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[85962],{
|
||||
|
||||
/***/ 85962:
|
||||
/*!****************************************************************************!*\
|
||||
!*** ./node_modules/monaco-editor/esm/vs/basic-languages/sparql/sparql.js ***!
|
||||
\****************************************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
||||
/* harmony export */ "conf": function() { return /* binding */ conf; },
|
||||
/* harmony export */ "language": function() { return /* binding */ language; }
|
||||
/* harmony export */ });
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
var conf = {
|
||||
comments: {
|
||||
lineComment: '#'
|
||||
},
|
||||
brackets: [
|
||||
['{', '}'],
|
||||
['[', ']'],
|
||||
['(', ')']
|
||||
],
|
||||
autoClosingPairs: [
|
||||
{ open: "'", close: "'", notIn: ['string'] },
|
||||
{ open: '"', close: '"', notIn: ['string'] },
|
||||
{ open: '{', close: '}' },
|
||||
{ open: '[', close: ']' },
|
||||
{ open: '(', close: ')' }
|
||||
]
|
||||
};
|
||||
var language = {
|
||||
defaultToken: '',
|
||||
tokenPostfix: '.rq',
|
||||
brackets: [
|
||||
{ token: 'delimiter.curly', open: '{', close: '}' },
|
||||
{ token: 'delimiter.parenthesis', open: '(', close: ')' },
|
||||
{ token: 'delimiter.square', open: '[', close: ']' },
|
||||
{ token: 'delimiter.angle', open: '<', close: '>' }
|
||||
],
|
||||
keywords: [
|
||||
'add',
|
||||
'as',
|
||||
'asc',
|
||||
'ask',
|
||||
'base',
|
||||
'by',
|
||||
'clear',
|
||||
'construct',
|
||||
'copy',
|
||||
'create',
|
||||
'data',
|
||||
'delete',
|
||||
'desc',
|
||||
'describe',
|
||||
'distinct',
|
||||
'drop',
|
||||
'false',
|
||||
'filter',
|
||||
'from',
|
||||
'graph',
|
||||
'group',
|
||||
'having',
|
||||
'in',
|
||||
'insert',
|
||||
'limit',
|
||||
'load',
|
||||
'minus',
|
||||
'move',
|
||||
'named',
|
||||
'not',
|
||||
'offset',
|
||||
'optional',
|
||||
'order',
|
||||
'prefix',
|
||||
'reduced',
|
||||
'select',
|
||||
'service',
|
||||
'silent',
|
||||
'to',
|
||||
'true',
|
||||
'undef',
|
||||
'union',
|
||||
'using',
|
||||
'values',
|
||||
'where',
|
||||
'with'
|
||||
],
|
||||
builtinFunctions: [
|
||||
'a',
|
||||
'abs',
|
||||
'avg',
|
||||
'bind',
|
||||
'bnode',
|
||||
'bound',
|
||||
'ceil',
|
||||
'coalesce',
|
||||
'concat',
|
||||
'contains',
|
||||
'count',
|
||||
'datatype',
|
||||
'day',
|
||||
'encode_for_uri',
|
||||
'exists',
|
||||
'floor',
|
||||
'group_concat',
|
||||
'hours',
|
||||
'if',
|
||||
'iri',
|
||||
'isblank',
|
||||
'isiri',
|
||||
'isliteral',
|
||||
'isnumeric',
|
||||
'isuri',
|
||||
'lang',
|
||||
'langmatches',
|
||||
'lcase',
|
||||
'max',
|
||||
'md5',
|
||||
'min',
|
||||
'minutes',
|
||||
'month',
|
||||
'now',
|
||||
'rand',
|
||||
'regex',
|
||||
'replace',
|
||||
'round',
|
||||
'sameterm',
|
||||
'sample',
|
||||
'seconds',
|
||||
'sha1',
|
||||
'sha256',
|
||||
'sha384',
|
||||
'sha512',
|
||||
'str',
|
||||
'strafter',
|
||||
'strbefore',
|
||||
'strdt',
|
||||
'strends',
|
||||
'strlang',
|
||||
'strlen',
|
||||
'strstarts',
|
||||
'struuid',
|
||||
'substr',
|
||||
'sum',
|
||||
'timezone',
|
||||
'tz',
|
||||
'ucase',
|
||||
'uri',
|
||||
'uuid',
|
||||
'year'
|
||||
],
|
||||
// describe tokens
|
||||
ignoreCase: true,
|
||||
tokenizer: {
|
||||
root: [
|
||||
// resource indicators
|
||||
[/<[^\s\u00a0>]*>?/, 'tag'],
|
||||
// strings
|
||||
{ include: '@strings' },
|
||||
// line comment
|
||||
[/#.*/, 'comment'],
|
||||
// special chars with special meaning
|
||||
[/[{}()\[\]]/, '@brackets'],
|
||||
[/[;,.]/, 'delimiter'],
|
||||
// (prefixed) name
|
||||
[
|
||||
/[_\w\d]+:(\.(?=[\w_\-\\%])|[:\w_-]|\\[-\\_~.!$&'()*+,;=/?#@%]|%[a-f\d][a-f\d])*/,
|
||||
'tag'
|
||||
],
|
||||
[/:(\.(?=[\w_\-\\%])|[:\w_-]|\\[-\\_~.!$&'()*+,;=/?#@%]|%[a-f\d][a-f\d])+/, 'tag'],
|
||||
// identifiers, builtinFunctions and keywords
|
||||
[
|
||||
/[$?]?[_\w\d]+/,
|
||||
{
|
||||
cases: {
|
||||
'@keywords': { token: 'keyword' },
|
||||
'@builtinFunctions': { token: 'predefined.sql' },
|
||||
'@default': 'identifier'
|
||||
}
|
||||
}
|
||||
],
|
||||
// operators
|
||||
[/\^\^/, 'operator.sql'],
|
||||
[/\^[*+\-<>=&|^\/!?]*/, 'operator.sql'],
|
||||
[/[*+\-<>=&|\/!?]/, 'operator.sql'],
|
||||
// symbol
|
||||
[/@[a-z\d\-]*/, 'metatag.html'],
|
||||
// whitespaces
|
||||
[/\s+/, 'white']
|
||||
],
|
||||
strings: [
|
||||
[/'([^'\\]|\\.)*$/, 'string.invalid'],
|
||||
[/'$/, 'string.sql', '@pop'],
|
||||
[/'/, 'string.sql', '@stringBody'],
|
||||
[/"([^"\\]|\\.)*$/, 'string.invalid'],
|
||||
[/"$/, 'string.sql', '@pop'],
|
||||
[/"/, 'string.sql', '@dblStringBody']
|
||||
],
|
||||
// single-quoted strings
|
||||
stringBody: [
|
||||
[/[^\\']+/, 'string.sql'],
|
||||
[/\\./, 'string.escape'],
|
||||
[/'/, 'string.sql', '@pop']
|
||||
],
|
||||
// double-quoted strings
|
||||
dblStringBody: [
|
||||
[/[^\\"]+/, 'string.sql'],
|
||||
[/\\./, 'string.escape'],
|
||||
[/"/, 'string.sql', '@pop']
|
||||
]
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
/***/ })
|
||||
|
||||
}]);
|
||||
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,577 @@
|
||||
"use strict";
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[92240],{
|
||||
|
||||
/***/ 92240:
|
||||
/*!****************************************************************************!*\
|
||||
!*** ./node_modules/monaco-editor/esm/vs/basic-languages/elixir/elixir.js ***!
|
||||
\****************************************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
||||
/* harmony export */ "conf": function() { return /* binding */ conf; },
|
||||
/* harmony export */ "language": function() { return /* binding */ language; }
|
||||
/* harmony export */ });
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
var conf = {
|
||||
comments: {
|
||||
lineComment: '#'
|
||||
},
|
||||
brackets: [
|
||||
['{', '}'],
|
||||
['[', ']'],
|
||||
['(', ')']
|
||||
],
|
||||
surroundingPairs: [
|
||||
{ open: '{', close: '}' },
|
||||
{ open: '[', close: ']' },
|
||||
{ open: '(', close: ')' },
|
||||
{ open: "'", close: "'" },
|
||||
{ open: '"', close: '"' }
|
||||
],
|
||||
autoClosingPairs: [
|
||||
{ open: "'", close: "'", notIn: ['string', 'comment'] },
|
||||
{ open: '"', close: '"', notIn: ['comment'] },
|
||||
{ open: '"""', close: '"""' },
|
||||
{ open: '`', close: '`', notIn: ['string', 'comment'] },
|
||||
{ open: '(', close: ')' },
|
||||
{ open: '{', close: '}' },
|
||||
{ open: '[', close: ']' },
|
||||
{ open: '<<', close: '>>' }
|
||||
],
|
||||
indentationRules: {
|
||||
increaseIndentPattern: /^\s*(after|else|catch|rescue|fn|[^#]*(do|<\-|\->|\{|\[|\=))\s*$/,
|
||||
decreaseIndentPattern: /^\s*((\}|\])\s*$|(after|else|catch|rescue|end)\b)/
|
||||
}
|
||||
};
|
||||
/**
|
||||
* A Monarch lexer for the Elixir language.
|
||||
*
|
||||
* References:
|
||||
*
|
||||
* * Monarch documentation - https://microsoft.github.io/monaco-editor/monarch.html
|
||||
* * Elixir lexer - https://github.com/elixir-makeup/makeup_elixir/blob/master/lib/makeup/lexers/elixir_lexer.ex
|
||||
* * TextMate lexer (elixir-tmbundle) - https://github.com/elixir-editors/elixir-tmbundle/blob/master/Syntaxes/Elixir.tmLanguage
|
||||
* * TextMate lexer (vscode-elixir-ls) - https://github.com/elixir-lsp/vscode-elixir-ls/blob/master/syntaxes/elixir.json
|
||||
*/
|
||||
var language = {
|
||||
defaultToken: 'source',
|
||||
tokenPostfix: '.elixir',
|
||||
brackets: [
|
||||
{ open: '[', close: ']', token: 'delimiter.square' },
|
||||
{ open: '(', close: ')', token: 'delimiter.parenthesis' },
|
||||
{ open: '{', close: '}', token: 'delimiter.curly' },
|
||||
{ open: '<<', close: '>>', token: 'delimiter.angle.special' }
|
||||
],
|
||||
// Below are lists/regexps to which we reference later.
|
||||
declarationKeywords: [
|
||||
'def',
|
||||
'defp',
|
||||
'defn',
|
||||
'defnp',
|
||||
'defguard',
|
||||
'defguardp',
|
||||
'defmacro',
|
||||
'defmacrop',
|
||||
'defdelegate',
|
||||
'defcallback',
|
||||
'defmacrocallback',
|
||||
'defmodule',
|
||||
'defprotocol',
|
||||
'defexception',
|
||||
'defimpl',
|
||||
'defstruct'
|
||||
],
|
||||
operatorKeywords: ['and', 'in', 'not', 'or', 'when'],
|
||||
namespaceKeywords: ['alias', 'import', 'require', 'use'],
|
||||
otherKeywords: [
|
||||
'after',
|
||||
'case',
|
||||
'catch',
|
||||
'cond',
|
||||
'do',
|
||||
'else',
|
||||
'end',
|
||||
'fn',
|
||||
'for',
|
||||
'if',
|
||||
'quote',
|
||||
'raise',
|
||||
'receive',
|
||||
'rescue',
|
||||
'super',
|
||||
'throw',
|
||||
'try',
|
||||
'unless',
|
||||
'unquote_splicing',
|
||||
'unquote',
|
||||
'with'
|
||||
],
|
||||
constants: ['true', 'false', 'nil'],
|
||||
nameBuiltin: ['__MODULE__', '__DIR__', '__ENV__', '__CALLER__', '__STACKTRACE__'],
|
||||
// Matches any of the operator names:
|
||||
// <<< >>> ||| &&& ^^^ ~~~ === !== ~>> <~> |~> <|> == != <= >= && || \\ <> ++ -- |> =~ -> <- ~> <~ :: .. = < > + - * / | . ^ & !
|
||||
operator: /-[->]?|!={0,2}|\*|\/|\\\\|&{1,3}|\.\.?|\^(?:\^\^)?|\+\+?|<(?:-|<<|=|>|\|>|~>?)?|=~|={1,3}|>(?:=|>>)?|\|~>|\|>|\|{1,3}|~>>?|~~~|::/,
|
||||
// See https://hexdocs.pm/elixir/syntax-reference.html#variables
|
||||
variableName: /[a-z_][a-zA-Z0-9_]*[?!]?/,
|
||||
// See https://hexdocs.pm/elixir/syntax-reference.html#atoms
|
||||
atomName: /[a-zA-Z_][a-zA-Z0-9_@]*[?!]?|@specialAtomName|@operator/,
|
||||
specialAtomName: /\.\.\.|<<>>|%\{\}|%|\{\}/,
|
||||
aliasPart: /[A-Z][a-zA-Z0-9_]*/,
|
||||
moduleName: /@aliasPart(?:\.@aliasPart)*/,
|
||||
// Sigil pairs are: """ """, ''' ''', " ", ' ', / /, | |, < >, { }, [ ], ( )
|
||||
sigilSymmetricDelimiter: /"""|'''|"|'|\/|\|/,
|
||||
sigilStartDelimiter: /@sigilSymmetricDelimiter|<|\{|\[|\(/,
|
||||
sigilEndDelimiter: /@sigilSymmetricDelimiter|>|\}|\]|\)/,
|
||||
decimal: /\d(?:_?\d)*/,
|
||||
hex: /[0-9a-fA-F](_?[0-9a-fA-F])*/,
|
||||
octal: /[0-7](_?[0-7])*/,
|
||||
binary: /[01](_?[01])*/,
|
||||
// See https://hexdocs.pm/elixir/master/String.html#module-escape-characters
|
||||
escape: /\\u[0-9a-fA-F]{4}|\\x[0-9a-fA-F]{2}|\\./,
|
||||
// The keys below correspond to tokenizer states.
|
||||
// We start from the root state and match against its rules
|
||||
// until we explicitly transition into another state.
|
||||
// The `include` simply brings in all operations from the given state
|
||||
// and is useful for improving readability.
|
||||
tokenizer: {
|
||||
root: [
|
||||
{ include: '@whitespace' },
|
||||
{ include: '@comments' },
|
||||
// Keywords start as either an identifier or a string,
|
||||
// but end with a : so it's important to match this first.
|
||||
{ include: '@keywordsShorthand' },
|
||||
{ include: '@numbers' },
|
||||
{ include: '@identifiers' },
|
||||
{ include: '@strings' },
|
||||
{ include: '@atoms' },
|
||||
{ include: '@sigils' },
|
||||
{ include: '@attributes' },
|
||||
{ include: '@symbols' }
|
||||
],
|
||||
// Whitespace
|
||||
whitespace: [[/\s+/, 'white']],
|
||||
// Comments
|
||||
comments: [[/(#)(.*)/, ['comment.punctuation', 'comment']]],
|
||||
// Keyword list shorthand
|
||||
keywordsShorthand: [
|
||||
[/(@atomName)(:)/, ['constant', 'constant.punctuation']],
|
||||
// Use positive look-ahead to ensure the string is followed by :
|
||||
// and should be considered a keyword.
|
||||
[
|
||||
/"(?=([^"]|#\{.*?\}|\\")*":)/,
|
||||
{ token: 'constant.delimiter', next: '@doubleQuotedStringKeyword' }
|
||||
],
|
||||
[
|
||||
/'(?=([^']|#\{.*?\}|\\')*':)/,
|
||||
{ token: 'constant.delimiter', next: '@singleQuotedStringKeyword' }
|
||||
]
|
||||
],
|
||||
doubleQuotedStringKeyword: [
|
||||
[/":/, { token: 'constant.delimiter', next: '@pop' }],
|
||||
{ include: '@stringConstantContentInterpol' }
|
||||
],
|
||||
singleQuotedStringKeyword: [
|
||||
[/':/, { token: 'constant.delimiter', next: '@pop' }],
|
||||
{ include: '@stringConstantContentInterpol' }
|
||||
],
|
||||
// Numbers
|
||||
numbers: [
|
||||
[/0b@binary/, 'number.binary'],
|
||||
[/0o@octal/, 'number.octal'],
|
||||
[/0x@hex/, 'number.hex'],
|
||||
[/@decimal\.@decimal([eE]-?@decimal)?/, 'number.float'],
|
||||
[/@decimal/, 'number']
|
||||
],
|
||||
// Identifiers
|
||||
identifiers: [
|
||||
// Tokenize identifier name in function-like definitions.
|
||||
// Note: given `def a + b, do: nil`, `a` is not a function name,
|
||||
// so we use negative look-ahead to ensure there's no operator.
|
||||
[
|
||||
/\b(defp?|defnp?|defmacrop?|defguardp?|defdelegate)(\s+)(@variableName)(?!\s+@operator)/,
|
||||
[
|
||||
'keyword.declaration',
|
||||
'white',
|
||||
{
|
||||
cases: {
|
||||
unquote: 'keyword',
|
||||
'@default': 'function'
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
// Tokenize function calls
|
||||
[
|
||||
// In-scope call - an identifier followed by ( or .(
|
||||
/(@variableName)(?=\s*\.?\s*\()/,
|
||||
{
|
||||
cases: {
|
||||
// Tokenize as keyword in cases like `if(..., do: ..., else: ...)`
|
||||
'@declarationKeywords': 'keyword.declaration',
|
||||
'@namespaceKeywords': 'keyword',
|
||||
'@otherKeywords': 'keyword',
|
||||
'@default': 'function.call'
|
||||
}
|
||||
}
|
||||
],
|
||||
[
|
||||
// Referencing function in a module
|
||||
/(@moduleName)(\s*)(\.)(\s*)(@variableName)/,
|
||||
['type.identifier', 'white', 'operator', 'white', 'function.call']
|
||||
],
|
||||
[
|
||||
// Referencing function in an Erlang module
|
||||
/(:)(@atomName)(\s*)(\.)(\s*)(@variableName)/,
|
||||
['constant.punctuation', 'constant', 'white', 'operator', 'white', 'function.call']
|
||||
],
|
||||
[
|
||||
// Piping into a function (tokenized separately as it may not have parentheses)
|
||||
/(\|>)(\s*)(@variableName)/,
|
||||
[
|
||||
'operator',
|
||||
'white',
|
||||
{
|
||||
cases: {
|
||||
'@otherKeywords': 'keyword',
|
||||
'@default': 'function.call'
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
[
|
||||
// Function reference passed to another function
|
||||
/(&)(\s*)(@variableName)/,
|
||||
['operator', 'white', 'function.call']
|
||||
],
|
||||
// Language keywords, builtins, constants and variables
|
||||
[
|
||||
/@variableName/,
|
||||
{
|
||||
cases: {
|
||||
'@declarationKeywords': 'keyword.declaration',
|
||||
'@operatorKeywords': 'keyword.operator',
|
||||
'@namespaceKeywords': 'keyword',
|
||||
'@otherKeywords': 'keyword',
|
||||
'@constants': 'constant.language',
|
||||
'@nameBuiltin': 'variable.language',
|
||||
'_.*': 'comment.unused',
|
||||
'@default': 'identifier'
|
||||
}
|
||||
}
|
||||
],
|
||||
// Module names
|
||||
[/@moduleName/, 'type.identifier']
|
||||
],
|
||||
// Strings
|
||||
strings: [
|
||||
[/"""/, { token: 'string.delimiter', next: '@doubleQuotedHeredoc' }],
|
||||
[/'''/, { token: 'string.delimiter', next: '@singleQuotedHeredoc' }],
|
||||
[/"/, { token: 'string.delimiter', next: '@doubleQuotedString' }],
|
||||
[/'/, { token: 'string.delimiter', next: '@singleQuotedString' }]
|
||||
],
|
||||
doubleQuotedHeredoc: [
|
||||
[/"""/, { token: 'string.delimiter', next: '@pop' }],
|
||||
{ include: '@stringContentInterpol' }
|
||||
],
|
||||
singleQuotedHeredoc: [
|
||||
[/'''/, { token: 'string.delimiter', next: '@pop' }],
|
||||
{ include: '@stringContentInterpol' }
|
||||
],
|
||||
doubleQuotedString: [
|
||||
[/"/, { token: 'string.delimiter', next: '@pop' }],
|
||||
{ include: '@stringContentInterpol' }
|
||||
],
|
||||
singleQuotedString: [
|
||||
[/'/, { token: 'string.delimiter', next: '@pop' }],
|
||||
{ include: '@stringContentInterpol' }
|
||||
],
|
||||
// Atoms
|
||||
atoms: [
|
||||
[/(:)(@atomName)/, ['constant.punctuation', 'constant']],
|
||||
[/:"/, { token: 'constant.delimiter', next: '@doubleQuotedStringAtom' }],
|
||||
[/:'/, { token: 'constant.delimiter', next: '@singleQuotedStringAtom' }]
|
||||
],
|
||||
doubleQuotedStringAtom: [
|
||||
[/"/, { token: 'constant.delimiter', next: '@pop' }],
|
||||
{ include: '@stringConstantContentInterpol' }
|
||||
],
|
||||
singleQuotedStringAtom: [
|
||||
[/'/, { token: 'constant.delimiter', next: '@pop' }],
|
||||
{ include: '@stringConstantContentInterpol' }
|
||||
],
|
||||
// Sigils
|
||||
// See https://elixir-lang.org/getting-started/sigils.html
|
||||
// Sigils allow for typing values using their textual representation.
|
||||
// All sigils start with ~ followed by a letter indicating sigil type
|
||||
// and then a delimiter pair enclosing the textual representation.
|
||||
// Optional modifiers are allowed after the closing delimiter.
|
||||
// For instance a regular expressions can be written as:
|
||||
// ~r/foo|bar/ ~r{foo|bar} ~r/foo|bar/g
|
||||
//
|
||||
// In general lowercase sigils allow for interpolation
|
||||
// and escaped characters, whereas uppercase sigils don't
|
||||
//
|
||||
// During tokenization we want to distinguish some
|
||||
// specific sigil types, namely string and regexp,
|
||||
// so that they cen be themed separately.
|
||||
//
|
||||
// To reasonably handle all those combinations we leverage
|
||||
// dot-separated states, so if we transition to @sigilStart.interpol.s.{.}
|
||||
// then "sigilStart.interpol.s" state will match and also all
|
||||
// the individual dot-separated parameters can be accessed.
|
||||
sigils: [
|
||||
[/~[a-z]@sigilStartDelimiter/, { token: '@rematch', next: '@sigil.interpol' }],
|
||||
[/~[A-Z]@sigilStartDelimiter/, { token: '@rematch', next: '@sigil.noInterpol' }]
|
||||
],
|
||||
sigil: [
|
||||
[/~([a-zA-Z])\{/, { token: '@rematch', switchTo: '@sigilStart.$S2.$1.{.}' }],
|
||||
[/~([a-zA-Z])\[/, { token: '@rematch', switchTo: '@sigilStart.$S2.$1.[.]' }],
|
||||
[/~([a-zA-Z])\(/, { token: '@rematch', switchTo: '@sigilStart.$S2.$1.(.)' }],
|
||||
[/~([a-zA-Z])\</, { token: '@rematch', switchTo: '@sigilStart.$S2.$1.<.>' }],
|
||||
[
|
||||
/~([a-zA-Z])(@sigilSymmetricDelimiter)/,
|
||||
{ token: '@rematch', switchTo: '@sigilStart.$S2.$1.$2.$2' }
|
||||
]
|
||||
],
|
||||
// The definitions below expect states to be of the form:
|
||||
//
|
||||
// sigilStart.<interpol-or-noInterpol>.<sigil-letter>.<start-delimiter>.<end-delimiter>
|
||||
// sigilContinue.<interpol-or-noInterpol>.<sigil-letter>.<start-delimiter>.<end-delimiter>
|
||||
//
|
||||
// The sigilStart state is used only to properly classify the token (as string/regex/sigil)
|
||||
// and immediately switches to the sigilContinue sate, which handles the actual content
|
||||
// and waits for the corresponding end delimiter.
|
||||
'sigilStart.interpol.s': [
|
||||
[
|
||||
/~s@sigilStartDelimiter/,
|
||||
{
|
||||
token: 'string.delimiter',
|
||||
switchTo: '@sigilContinue.$S2.$S3.$S4.$S5'
|
||||
}
|
||||
]
|
||||
],
|
||||
'sigilContinue.interpol.s': [
|
||||
[
|
||||
/(@sigilEndDelimiter)[a-zA-Z]*/,
|
||||
{
|
||||
cases: {
|
||||
'$1==$S5': { token: 'string.delimiter', next: '@pop' },
|
||||
'@default': 'string'
|
||||
}
|
||||
}
|
||||
],
|
||||
{ include: '@stringContentInterpol' }
|
||||
],
|
||||
'sigilStart.noInterpol.S': [
|
||||
[
|
||||
/~S@sigilStartDelimiter/,
|
||||
{
|
||||
token: 'string.delimiter',
|
||||
switchTo: '@sigilContinue.$S2.$S3.$S4.$S5'
|
||||
}
|
||||
]
|
||||
],
|
||||
'sigilContinue.noInterpol.S': [
|
||||
// Ignore escaped sigil end
|
||||
[/(^|[^\\])\\@sigilEndDelimiter/, 'string'],
|
||||
[
|
||||
/(@sigilEndDelimiter)[a-zA-Z]*/,
|
||||
{
|
||||
cases: {
|
||||
'$1==$S5': { token: 'string.delimiter', next: '@pop' },
|
||||
'@default': 'string'
|
||||
}
|
||||
}
|
||||
],
|
||||
{ include: '@stringContent' }
|
||||
],
|
||||
'sigilStart.interpol.r': [
|
||||
[
|
||||
/~r@sigilStartDelimiter/,
|
||||
{
|
||||
token: 'regexp.delimiter',
|
||||
switchTo: '@sigilContinue.$S2.$S3.$S4.$S5'
|
||||
}
|
||||
]
|
||||
],
|
||||
'sigilContinue.interpol.r': [
|
||||
[
|
||||
/(@sigilEndDelimiter)[a-zA-Z]*/,
|
||||
{
|
||||
cases: {
|
||||
'$1==$S5': { token: 'regexp.delimiter', next: '@pop' },
|
||||
'@default': 'regexp'
|
||||
}
|
||||
}
|
||||
],
|
||||
{ include: '@regexpContentInterpol' }
|
||||
],
|
||||
'sigilStart.noInterpol.R': [
|
||||
[
|
||||
/~R@sigilStartDelimiter/,
|
||||
{
|
||||
token: 'regexp.delimiter',
|
||||
switchTo: '@sigilContinue.$S2.$S3.$S4.$S5'
|
||||
}
|
||||
]
|
||||
],
|
||||
'sigilContinue.noInterpol.R': [
|
||||
// Ignore escaped sigil end
|
||||
[/(^|[^\\])\\@sigilEndDelimiter/, 'regexp'],
|
||||
[
|
||||
/(@sigilEndDelimiter)[a-zA-Z]*/,
|
||||
{
|
||||
cases: {
|
||||
'$1==$S5': { token: 'regexp.delimiter', next: '@pop' },
|
||||
'@default': 'regexp'
|
||||
}
|
||||
}
|
||||
],
|
||||
{ include: '@regexpContent' }
|
||||
],
|
||||
// Fallback to the generic sigil by default
|
||||
'sigilStart.interpol': [
|
||||
[
|
||||
/~([a-zA-Z])@sigilStartDelimiter/,
|
||||
{
|
||||
token: 'sigil.delimiter',
|
||||
switchTo: '@sigilContinue.$S2.$S3.$S4.$S5'
|
||||
}
|
||||
]
|
||||
],
|
||||
'sigilContinue.interpol': [
|
||||
[
|
||||
/(@sigilEndDelimiter)[a-zA-Z]*/,
|
||||
{
|
||||
cases: {
|
||||
'$1==$S5': { token: 'sigil.delimiter', next: '@pop' },
|
||||
'@default': 'sigil'
|
||||
}
|
||||
}
|
||||
],
|
||||
{ include: '@sigilContentInterpol' }
|
||||
],
|
||||
'sigilStart.noInterpol': [
|
||||
[
|
||||
/~([a-zA-Z])@sigilStartDelimiter/,
|
||||
{
|
||||
token: 'sigil.delimiter',
|
||||
switchTo: '@sigilContinue.$S2.$S3.$S4.$S5'
|
||||
}
|
||||
]
|
||||
],
|
||||
'sigilContinue.noInterpol': [
|
||||
// Ignore escaped sigil end
|
||||
[/(^|[^\\])\\@sigilEndDelimiter/, 'sigil'],
|
||||
[
|
||||
/(@sigilEndDelimiter)[a-zA-Z]*/,
|
||||
{
|
||||
cases: {
|
||||
'$1==$S5': { token: 'sigil.delimiter', next: '@pop' },
|
||||
'@default': 'sigil'
|
||||
}
|
||||
}
|
||||
],
|
||||
{ include: '@sigilContent' }
|
||||
],
|
||||
// Attributes
|
||||
attributes: [
|
||||
// Module @doc* attributes - tokenized as comments
|
||||
[
|
||||
/\@(module|type)?doc (~[sS])?"""/,
|
||||
{
|
||||
token: 'comment.block.documentation',
|
||||
next: '@doubleQuotedHeredocDocstring'
|
||||
}
|
||||
],
|
||||
[
|
||||
/\@(module|type)?doc (~[sS])?"/,
|
||||
{
|
||||
token: 'comment.block.documentation',
|
||||
next: '@doubleQuotedStringDocstring'
|
||||
}
|
||||
],
|
||||
[/\@(module|type)?doc false/, 'comment.block.documentation'],
|
||||
// Module attributes
|
||||
[/\@(@variableName)/, 'variable']
|
||||
],
|
||||
doubleQuotedHeredocDocstring: [
|
||||
[/"""/, { token: 'comment.block.documentation', next: '@pop' }],
|
||||
{ include: '@docstringContent' }
|
||||
],
|
||||
doubleQuotedStringDocstring: [
|
||||
[/"/, { token: 'comment.block.documentation', next: '@pop' }],
|
||||
{ include: '@docstringContent' }
|
||||
],
|
||||
// Operators, punctuation, brackets
|
||||
symbols: [
|
||||
// Code point operator (either with regular character ?a or an escaped one ?\n)
|
||||
[/\?(\\.|[^\\\s])/, 'number.constant'],
|
||||
// Anonymous function arguments
|
||||
[/&\d+/, 'operator'],
|
||||
// Bitshift operators (must go before delimiters, so that << >> don't match first)
|
||||
[/<<<|>>>/, 'operator'],
|
||||
// Delimiter pairs
|
||||
[/[()\[\]\{\}]|<<|>>/, '@brackets'],
|
||||
// Triple dot is a valid name (must go before operators, so that .. doesn't match instead)
|
||||
[/\.\.\./, 'identifier'],
|
||||
// Punctuation => (must go before operators, so it's not tokenized as = then >)
|
||||
[/=>/, 'punctuation'],
|
||||
// Operators
|
||||
[/@operator/, 'operator'],
|
||||
// Punctuation
|
||||
[/[:;,.%]/, 'punctuation']
|
||||
],
|
||||
// Generic helpers
|
||||
stringContentInterpol: [
|
||||
{ include: '@interpolation' },
|
||||
{ include: '@escapeChar' },
|
||||
{ include: '@stringContent' }
|
||||
],
|
||||
stringContent: [[/./, 'string']],
|
||||
stringConstantContentInterpol: [
|
||||
{ include: '@interpolation' },
|
||||
{ include: '@escapeChar' },
|
||||
{ include: '@stringConstantContent' }
|
||||
],
|
||||
stringConstantContent: [[/./, 'constant']],
|
||||
regexpContentInterpol: [
|
||||
{ include: '@interpolation' },
|
||||
{ include: '@escapeChar' },
|
||||
{ include: '@regexpContent' }
|
||||
],
|
||||
regexpContent: [
|
||||
// # may be a regular regexp char, so we use a heuristic
|
||||
// assuming a # surrounded by whitespace is actually a comment.
|
||||
[/(\s)(#)(\s.*)$/, ['white', 'comment.punctuation', 'comment']],
|
||||
[/./, 'regexp']
|
||||
],
|
||||
sigilContentInterpol: [
|
||||
{ include: '@interpolation' },
|
||||
{ include: '@escapeChar' },
|
||||
{ include: '@sigilContent' }
|
||||
],
|
||||
sigilContent: [[/./, 'sigil']],
|
||||
docstringContent: [[/./, 'comment.block.documentation']],
|
||||
escapeChar: [[/@escape/, 'constant.character.escape']],
|
||||
interpolation: [
|
||||
[/#{/, { token: 'delimiter.bracket.embed', next: '@interpolationContinue' }]
|
||||
],
|
||||
interpolationContinue: [
|
||||
[/}/, { token: 'delimiter.bracket.embed', next: '@pop' }],
|
||||
// Interpolation brackets may contain arbitrary code,
|
||||
// so we simply match against all the root rules,
|
||||
// until we reach interpolation end (the above matches).
|
||||
{ include: '@root' }
|
||||
]
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
/***/ })
|
||||
|
||||
}]);
|
||||
@ -0,0 +1,247 @@
|
||||
"use strict";
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[94028],{
|
||||
|
||||
/***/ 94028:
|
||||
/*!****************************************************************************!*\
|
||||
!*** ./node_modules/monaco-editor/esm/vs/basic-languages/liquid/liquid.js ***!
|
||||
\****************************************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
||||
/* harmony export */ "conf": function() { return /* binding */ conf; },
|
||||
/* harmony export */ "language": function() { return /* binding */ language; }
|
||||
/* harmony export */ });
|
||||
/* harmony import */ var _fillers_monaco_editor_core_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../fillers/monaco-editor-core.js */ 89587);
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
var EMPTY_ELEMENTS = [
|
||||
'area',
|
||||
'base',
|
||||
'br',
|
||||
'col',
|
||||
'embed',
|
||||
'hr',
|
||||
'img',
|
||||
'input',
|
||||
'keygen',
|
||||
'link',
|
||||
'menuitem',
|
||||
'meta',
|
||||
'param',
|
||||
'source',
|
||||
'track',
|
||||
'wbr'
|
||||
];
|
||||
var conf = {
|
||||
wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,
|
||||
brackets: [
|
||||
['<!--', '-->'],
|
||||
['<', '>'],
|
||||
['{{', '}}'],
|
||||
['{%', '%}'],
|
||||
['{', '}'],
|
||||
['(', ')']
|
||||
],
|
||||
autoClosingPairs: [
|
||||
{ open: '{', close: '}' },
|
||||
{ open: '%', close: '%' },
|
||||
{ open: '[', close: ']' },
|
||||
{ open: '(', close: ')' },
|
||||
{ open: '"', close: '"' },
|
||||
{ open: "'", close: "'" }
|
||||
],
|
||||
surroundingPairs: [
|
||||
{ open: '<', close: '>' },
|
||||
{ open: '"', close: '"' },
|
||||
{ open: "'", close: "'" }
|
||||
],
|
||||
onEnterRules: [
|
||||
{
|
||||
beforeText: new RegExp("<(?!(?:" + EMPTY_ELEMENTS.join('|') + "))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$", 'i'),
|
||||
afterText: /^<\/(\w[\w\d]*)\s*>$/i,
|
||||
action: {
|
||||
indentAction: _fillers_monaco_editor_core_js__WEBPACK_IMPORTED_MODULE_0__/* .languages.IndentAction.IndentOutdent */ .Mj.IndentAction.IndentOutdent
|
||||
}
|
||||
},
|
||||
{
|
||||
beforeText: new RegExp("<(?!(?:" + EMPTY_ELEMENTS.join('|') + "))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$", 'i'),
|
||||
action: { indentAction: _fillers_monaco_editor_core_js__WEBPACK_IMPORTED_MODULE_0__/* .languages.IndentAction.Indent */ .Mj.IndentAction.Indent }
|
||||
}
|
||||
]
|
||||
};
|
||||
var language = {
|
||||
defaultToken: '',
|
||||
tokenPostfix: '',
|
||||
builtinTags: [
|
||||
'if',
|
||||
'else',
|
||||
'elseif',
|
||||
'endif',
|
||||
'render',
|
||||
'assign',
|
||||
'capture',
|
||||
'endcapture',
|
||||
'case',
|
||||
'endcase',
|
||||
'comment',
|
||||
'endcomment',
|
||||
'cycle',
|
||||
'decrement',
|
||||
'for',
|
||||
'endfor',
|
||||
'include',
|
||||
'increment',
|
||||
'layout',
|
||||
'raw',
|
||||
'endraw',
|
||||
'render',
|
||||
'tablerow',
|
||||
'endtablerow',
|
||||
'unless',
|
||||
'endunless'
|
||||
],
|
||||
builtinFilters: [
|
||||
'abs',
|
||||
'append',
|
||||
'at_least',
|
||||
'at_most',
|
||||
'capitalize',
|
||||
'ceil',
|
||||
'compact',
|
||||
'date',
|
||||
'default',
|
||||
'divided_by',
|
||||
'downcase',
|
||||
'escape',
|
||||
'escape_once',
|
||||
'first',
|
||||
'floor',
|
||||
'join',
|
||||
'json',
|
||||
'last',
|
||||
'lstrip',
|
||||
'map',
|
||||
'minus',
|
||||
'modulo',
|
||||
'newline_to_br',
|
||||
'plus',
|
||||
'prepend',
|
||||
'remove',
|
||||
'remove_first',
|
||||
'replace',
|
||||
'replace_first',
|
||||
'reverse',
|
||||
'round',
|
||||
'rstrip',
|
||||
'size',
|
||||
'slice',
|
||||
'sort',
|
||||
'sort_natural',
|
||||
'split',
|
||||
'strip',
|
||||
'strip_html',
|
||||
'strip_newlines',
|
||||
'times',
|
||||
'truncate',
|
||||
'truncatewords',
|
||||
'uniq',
|
||||
'upcase',
|
||||
'url_decode',
|
||||
'url_encode',
|
||||
'where'
|
||||
],
|
||||
constants: ['true', 'false'],
|
||||
operators: ['==', '!=', '>', '<', '>=', '<='],
|
||||
symbol: /[=><!]+/,
|
||||
identifier: /[a-zA-Z_][\w]*/,
|
||||
tokenizer: {
|
||||
root: [
|
||||
[/\{\%\s*comment\s*\%\}/, 'comment.start.liquid', '@comment'],
|
||||
[/\{\{/, { token: '@rematch', switchTo: '@liquidState.root' }],
|
||||
[/\{\%/, { token: '@rematch', switchTo: '@liquidState.root' }],
|
||||
[/(<)([\w\-]+)(\/>)/, ['delimiter.html', 'tag.html', 'delimiter.html']],
|
||||
[/(<)([:\w]+)/, ['delimiter.html', { token: 'tag.html', next: '@otherTag' }]],
|
||||
[/(<\/)([\w\-]+)/, ['delimiter.html', { token: 'tag.html', next: '@otherTag' }]],
|
||||
[/</, 'delimiter.html'],
|
||||
[/\{/, 'delimiter.html'],
|
||||
[/[^<{]+/] // text
|
||||
],
|
||||
comment: [
|
||||
[/\{\%\s*endcomment\s*\%\}/, 'comment.end.liquid', '@pop'],
|
||||
[/./, 'comment.content.liquid']
|
||||
],
|
||||
otherTag: [
|
||||
[
|
||||
/\{\{/,
|
||||
{
|
||||
token: '@rematch',
|
||||
switchTo: '@liquidState.otherTag'
|
||||
}
|
||||
],
|
||||
[
|
||||
/\{\%/,
|
||||
{
|
||||
token: '@rematch',
|
||||
switchTo: '@liquidState.otherTag'
|
||||
}
|
||||
],
|
||||
[/\/?>/, 'delimiter.html', '@pop'],
|
||||
[/"([^"]*)"/, 'attribute.value'],
|
||||
[/'([^']*)'/, 'attribute.value'],
|
||||
[/[\w\-]+/, 'attribute.name'],
|
||||
[/=/, 'delimiter'],
|
||||
[/[ \t\r\n]+/] // whitespace
|
||||
],
|
||||
liquidState: [
|
||||
[/\{\{/, 'delimiter.output.liquid'],
|
||||
[/\}\}/, { token: 'delimiter.output.liquid', switchTo: '@$S2.$S3' }],
|
||||
[/\{\%/, 'delimiter.tag.liquid'],
|
||||
[/raw\s*\%\}/, 'delimiter.tag.liquid', '@liquidRaw'],
|
||||
[/\%\}/, { token: 'delimiter.tag.liquid', switchTo: '@$S2.$S3' }],
|
||||
{ include: 'liquidRoot' }
|
||||
],
|
||||
liquidRaw: [
|
||||
[/^(?!\{\%\s*endraw\s*\%\}).+/],
|
||||
[/\{\%/, 'delimiter.tag.liquid'],
|
||||
[/@identifier/],
|
||||
[/\%\}/, { token: 'delimiter.tag.liquid', next: '@root' }]
|
||||
],
|
||||
liquidRoot: [
|
||||
[/\d+(\.\d+)?/, 'number.liquid'],
|
||||
[/"[^"]*"/, 'string.liquid'],
|
||||
[/'[^']*'/, 'string.liquid'],
|
||||
[/\s+/],
|
||||
[
|
||||
/@symbol/,
|
||||
{
|
||||
cases: {
|
||||
'@operators': 'operator.liquid',
|
||||
'@default': ''
|
||||
}
|
||||
}
|
||||
],
|
||||
[/\./],
|
||||
[
|
||||
/@identifier/,
|
||||
{
|
||||
cases: {
|
||||
'@constants': 'keyword.liquid',
|
||||
'@builtinFilters': 'predefined.liquid',
|
||||
'@builtinTags': 'predefined.liquid',
|
||||
'@default': 'variable.liquid'
|
||||
}
|
||||
}
|
||||
],
|
||||
[/[^}|%]/, 'variable.liquid']
|
||||
]
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
/***/ })
|
||||
|
||||
}]);
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
Before Width: | Height: | Size: 1.4 MiB |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
After Width: | Height: | Size: 1.4 MiB |
Loading…
Reference in new issue