mirror of
https://github.com/danog/telegram-tt.git
synced 2024-12-13 01:27:37 +01:00
1 line
12 KiB
Plaintext
1 line
12 KiB
Plaintext
{"version":3,"file":"3108.8f30bf9e3324a376f4ee.js","mappings":"qFAsWAA,EAAOC,QA1VP,SAAgBC,GAwUd,MAAO,CACLC,KAAM,SACNC,QAAS,CACP,QACA,MAEFC,kBAAkB,EAClBC,QAAS,0CACTC,SAAU,CACRC,SAAU,2BACVC,QAhVa,CACf,SACA,SACA,YACA,iBACA,WACA,cACA,QACA,UACA,YACA,WACA,WACA,UACA,iBACA,oBACA,kBACA,iBACA,SACA,qBACA,WACA,qBACA,UACA,aACA,MACA,aACA,YACA,UACA,mBACA,iBACA,SACA,YACA,aACA,UACA,SACA,SACA,WACA,WACA,WACA,MACA,KACA,KACA,MACA,QACA,QACA,QACA,KACA,SACA,KACA,OACA,OACA,WACA,UACA,SACA,QACA,OACA,OACA,MACA,WACA,OACA,SACA,YACA,aACA,WACA,QACA,WACA,QACA,OACA,QACA,YACA,SACA,OACA,aACA,MACA,QACA,MACA,KACA,KACA,QACA,YACA,WACA,KACA,QACA,KACA,WACA,OACA,MACA,QACA,SACA,SACA,OACA,UACA,QACA,SACA,OACA,SACA,UAkPEC,KA7OU,CACZ,OACA,gBACA,OACA,YACA,WACA,UACA,UACA,YACA,iBACA,yBACA,OACA,eACA,mBACA,mBACA,cACA,UACA,aACA,WACA,YACA,gBACA,WACA,eACA,YACA,UACA,aACA,kBACA,eACA,YACA,WACA,cACA,cACA,mBACA,UACA,YACA,sBACA,WACA,cACA,aACA,UACA,YACA,QACA,WACA,YACA,aACA,wBACA,qBACA,UACA,SACA,WACA,UACA,wBACA,mBACA,iBACA,mBACA,kBACA,qBACA,uBACA,sBAoLEC,QAjLa,CACf,KACA,KACA,KACA,KACA,KACA,KACA,KACA,SACA,UACA,eACA,uBACA,cACA,cACA,sBACA,WACA,aACA,qBACA,cACA,sBACA,QA+JAC,SA1Be,CA/EL,CACVC,UAAW,WACXC,MAAO,eApDQ,CACfD,UAAW,WACXE,SAAU,CACR,CACED,MAAO,WACPE,IAAK,6IAEP,CACEF,MAAO,SACPE,IAAK,qEAEP,CACEF,MAAO,UACPE,IAAK,4EAEP,CACEF,MAAO,QACPE,IAAK,KACLC,YAAY,GAEd,CACEH,MAAO,QACPE,IAAK,KACLC,YAAY,GAGd,CAAEH,MAAO,+2DACT,CACEA,MAAO,WACPE,IAAK,KACLC,YAAY,GAEd,CACEH,MAAO,SACPE,IAAK,sEAEP,CACEF,MAAO,uCACPE,IAAK,KACLC,YAAY,KAsBH,CACbJ,UAAW,SACXE,SAAU,CACR,CACED,MAAO,IACPE,IAAK,IACLJ,SAAU,CACR,CACEE,MAAO,KACPI,UAAW,KAIjB,CACEJ,MAAO,IACPE,IAAK,IACLJ,SAAU,CACR,CACEE,MAAO,KACPI,UAAW,OAzBN,CACbL,UAAW,SACXC,MAAO,uEACPI,UAAW,GAkCG,CACdL,UAAW,UACXC,MAAO,MACPE,IAAK,MACLE,UAAW,GACXN,SAAU,CACR,CACEC,UAAW,SACXC,MAAO,UAbM,CACjBD,UAAW,OACXC,MAAO,aA7CK,CACZD,UAAW,QACXC,MAAO,qDACPE,IAAK,KA6DU,CACfG,cAAe,4DACfH,IAAK,KACLC,YAAY,GAIC,CACbH,MAAO,sCACPE,IAAK,iBACLI,YAAa,MACbR,SAAU,CACR,CACEE,MAAO,KACPE,IAAK,KACLI,YAAa,UAEf","sources":["webpack://telegram-t/./node_modules/highlight.js/lib/languages/xquery.js"],"sourcesContent":["/*\nLanguage: XQuery\nAuthor: Dirk Kirsten <dk@basex.org>\nContributor: Duncan Paterson\nDescription: Supports XQuery 3.1 including XQuery Update 3, so also XPath (as it is a superset)\nRefactored to process xml constructor syntax and function-bodies. Added missing data-types, xpath operands, inbuilt functions, and query prologs\nWebsite: https://www.w3.org/XML/Query/\nCategory: functional\nAudit: 2020\n*/\n\n/** @type LanguageFn */\nfunction xquery(_hljs) {\n // see https://www.w3.org/TR/xquery/#id-terminal-delimitation\n const KEYWORDS = [\n \"module\",\n \"schema\",\n \"namespace\",\n \"boundary-space\",\n \"preserve\",\n \"no-preserve\",\n \"strip\",\n \"default\",\n \"collation\",\n \"base-uri\",\n \"ordering\",\n \"context\",\n \"decimal-format\",\n \"decimal-separator\",\n \"copy-namespaces\",\n \"empty-sequence\",\n \"except\",\n \"exponent-separator\",\n \"external\",\n \"grouping-separator\",\n \"inherit\",\n \"no-inherit\",\n \"lax\",\n \"minus-sign\",\n \"per-mille\",\n \"percent\",\n \"schema-attribute\",\n \"schema-element\",\n \"strict\",\n \"unordered\",\n \"zero-digit\",\n \"declare\",\n \"import\",\n \"option\",\n \"function\",\n \"validate\",\n \"variable\",\n \"for\",\n \"at\",\n \"in\",\n \"let\",\n \"where\",\n \"order\",\n \"group\",\n \"by\",\n \"return\",\n \"if\",\n \"then\",\n \"else\",\n \"tumbling\",\n \"sliding\",\n \"window\",\n \"start\",\n \"when\",\n \"only\",\n \"end\",\n \"previous\",\n \"next\",\n \"stable\",\n \"ascending\",\n \"descending\",\n \"allowing\",\n \"empty\",\n \"greatest\",\n \"least\",\n \"some\",\n \"every\",\n \"satisfies\",\n \"switch\",\n \"case\",\n \"typeswitch\",\n \"try\",\n \"catch\",\n \"and\",\n \"or\",\n \"to\",\n \"union\",\n \"intersect\",\n \"instance\",\n \"of\",\n \"treat\",\n \"as\",\n \"castable\",\n \"cast\",\n \"map\",\n \"array\",\n \"delete\",\n \"insert\",\n \"into\",\n \"replace\",\n \"value\",\n \"rename\",\n \"copy\",\n \"modify\",\n \"update\"\n ];\n\n // Node Types (sorted by inheritance)\n // atomic types (sorted by inheritance)\n const TYPES = [\n \"item\",\n \"document-node\",\n \"node\",\n \"attribute\",\n \"document\",\n \"element\",\n \"comment\",\n \"namespace\",\n \"namespace-node\",\n \"processing-instruction\",\n \"text\",\n \"construction\",\n \"xs:anyAtomicType\",\n \"xs:untypedAtomic\",\n \"xs:duration\",\n \"xs:time\",\n \"xs:decimal\",\n \"xs:float\",\n \"xs:double\",\n \"xs:gYearMonth\",\n \"xs:gYear\",\n \"xs:gMonthDay\",\n \"xs:gMonth\",\n \"xs:gDay\",\n \"xs:boolean\",\n \"xs:base64Binary\",\n \"xs:hexBinary\",\n \"xs:anyURI\",\n \"xs:QName\",\n \"xs:NOTATION\",\n \"xs:dateTime\",\n \"xs:dateTimeStamp\",\n \"xs:date\",\n \"xs:string\",\n \"xs:normalizedString\",\n \"xs:token\",\n \"xs:language\",\n \"xs:NMTOKEN\",\n \"xs:Name\",\n \"xs:NCName\",\n \"xs:ID\",\n \"xs:IDREF\",\n \"xs:ENTITY\",\n \"xs:integer\",\n \"xs:nonPositiveInteger\",\n \"xs:negativeInteger\",\n \"xs:long\",\n \"xs:int\",\n \"xs:short\",\n \"xs:byte\",\n \"xs:nonNegativeInteger\",\n \"xs:unisignedLong\",\n \"xs:unsignedInt\",\n \"xs:unsignedShort\",\n \"xs:unsignedByte\",\n \"xs:positiveInteger\",\n \"xs:yearMonthDuration\",\n \"xs:dayTimeDuration\"\n ];\n\n const LITERALS = [\n \"eq\",\n \"ne\",\n \"lt\",\n \"le\",\n \"gt\",\n \"ge\",\n \"is\",\n \"self::\",\n \"child::\",\n \"descendant::\",\n \"descendant-or-self::\",\n \"attribute::\",\n \"following::\",\n \"following-sibling::\",\n \"parent::\",\n \"ancestor::\",\n \"ancestor-or-self::\",\n \"preceding::\",\n \"preceding-sibling::\",\n \"NaN\"\n ];\n\n // functions (TODO: find regex for op: without breaking build)\n const BUILT_IN = {\n className: 'built_in',\n variants: [\n {\n begin: /\\barray:/,\n end: /(?:append|filter|flatten|fold-(?:left|right)|for-each(?:-pair)?|get|head|insert-before|join|put|remove|reverse|size|sort|subarray|tail)\\b/\n },\n {\n begin: /\\bmap:/,\n end: /(?:contains|entry|find|for-each|get|keys|merge|put|remove|size)\\b/\n },\n {\n begin: /\\bmath:/,\n end: /(?:a(?:cos|sin|tan[2]?)|cos|exp(?:10)?|log(?:10)?|pi|pow|sin|sqrt|tan)\\b/\n },\n {\n begin: /\\bop:/,\n end: /\\(/,\n excludeEnd: true\n },\n {\n begin: /\\bfn:/,\n end: /\\(/,\n excludeEnd: true\n },\n // do not highlight inbuilt strings as variable or xml element names\n { begin: /[^</$:'\"-]\\b(?:abs|accumulator-(?:after|before)|adjust-(?:date(?:Time)?|time)-to-timezone|analyze-string|apply|available-(?:environment-variables|system-properties)|avg|base-uri|boolean|ceiling|codepoints?-(?:equal|to-string)|collation-key|collection|compare|concat|contains(?:-token)?|copy-of|count|current(?:-)?(?:date(?:Time)?|time|group(?:ing-key)?|output-uri|merge-(?:group|key))?data|dateTime|days?-from-(?:date(?:Time)?|duration)|deep-equal|default-(?:collation|language)|distinct-values|document(?:-uri)?|doc(?:-available)?|element-(?:available|with-id)|empty|encode-for-uri|ends-with|environment-variable|error|escape-html-uri|exactly-one|exists|false|filter|floor|fold-(?:left|right)|for-each(?:-pair)?|format-(?:date(?:Time)?|time|integer|number)|function-(?:arity|available|lookup|name)|generate-id|has-children|head|hours-from-(?:dateTime|duration|time)|id(?:ref)?|implicit-timezone|in-scope-prefixes|index-of|innermost|insert-before|iri-to-uri|json-(?:doc|to-xml)|key|lang|last|load-xquery-module|local-name(?:-from-QName)?|(?:lower|upper)-case|matches|max|minutes-from-(?:dateTime|duration|time)|min|months?-from-(?:date(?:Time)?|duration)|name(?:space-uri-?(?:for-prefix|from-QName)?)?|nilled|node-name|normalize-(?:space|unicode)|not|number|one-or-more|outermost|parse-(?:ietf-date|json)|path|position|(?:prefix-from-)?QName|random-number-generator|regex-group|remove|replace|resolve-(?:QName|uri)|reverse|root|round(?:-half-to-even)?|seconds-from-(?:dateTime|duration|time)|snapshot|sort|starts-with|static-base-uri|stream-available|string-?(?:join|length|to-codepoints)?|subsequence|substring-?(?:after|before)?|sum|system-property|tail|timezone-from-(?:date(?:Time)?|time)|tokenize|trace|trans(?:form|late)|true|type-available|unordered|unparsed-(?:entity|text)?-?(?:public-id|uri|available|lines)?|uri-collection|xml-to-json|years?-from-(?:date(?:Time)?|duration)|zero-or-one)\\b/ },\n {\n begin: /\\blocal:/,\n end: /\\(/,\n excludeEnd: true\n },\n {\n begin: /\\bzip:/,\n end: /(?:zip-file|(?:xml|html|text|binary)-entry| (?:update-)?entries)\\b/\n },\n {\n begin: /\\b(?:util|db|functx|app|xdmp|xmldb):/,\n end: /\\(/,\n excludeEnd: true\n }\n ]\n };\n\n const TITLE = {\n className: 'title',\n begin: /\\bxquery version \"[13]\\.[01]\"\\s?(?:encoding \".+\")?/,\n end: /;/\n };\n\n const VAR = {\n className: 'variable',\n begin: /[$][\\w\\-:]+/\n };\n\n const NUMBER = {\n className: 'number',\n begin: /(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b/,\n relevance: 0\n };\n\n const STRING = {\n className: 'string',\n variants: [\n {\n begin: /\"/,\n end: /\"/,\n contains: [\n {\n begin: /\"\"/,\n relevance: 0\n }\n ]\n },\n {\n begin: /'/,\n end: /'/,\n contains: [\n {\n begin: /''/,\n relevance: 0\n }\n ]\n }\n ]\n };\n\n const ANNOTATION = {\n className: 'meta',\n begin: /%[\\w\\-:]+/\n };\n\n const COMMENT = {\n className: 'comment',\n begin: /\\(:/,\n end: /:\\)/,\n relevance: 10,\n contains: [\n {\n className: 'doctag',\n begin: /@\\w+/\n }\n ]\n };\n\n // see https://www.w3.org/TR/xquery/#id-computedConstructors\n // mocha: computed_inbuilt\n // see https://www.regexpal.com/?fam=99749\n const COMPUTED = {\n beginKeywords: 'element attribute comment document processing-instruction',\n end: /\\{/,\n excludeEnd: true\n };\n\n // mocha: direct_method\n const DIRECT = {\n begin: /<([\\w._:-]+)(\\s+\\S*=('|\").*('|\"))?>/,\n end: /(\\/[\\w._:-]+>)/,\n subLanguage: 'xml',\n contains: [\n {\n begin: /\\{/,\n end: /\\}/,\n subLanguage: 'xquery'\n },\n 'self'\n ]\n };\n\n const CONTAINS = [\n VAR,\n BUILT_IN,\n STRING,\n NUMBER,\n COMMENT,\n ANNOTATION,\n TITLE,\n COMPUTED,\n DIRECT\n ];\n\n return {\n name: 'XQuery',\n aliases: [\n 'xpath',\n 'xq'\n ],\n case_insensitive: false,\n illegal: /(proc)|(abstract)|(extends)|(until)|(#)/,\n keywords: {\n $pattern: /[a-zA-Z$][a-zA-Z0-9_:-]*/,\n keyword: KEYWORDS,\n type: TYPES,\n literal: LITERALS\n },\n contains: CONTAINS\n };\n}\n\nmodule.exports = xquery;\n"],"names":["module","exports","_hljs","name","aliases","case_insensitive","illegal","keywords","$pattern","keyword","type","literal","contains","className","begin","variants","end","excludeEnd","relevance","beginKeywords","subLanguage"],"sourceRoot":""} |