mirror of
https://github.com/danog/telegram-tt.git
synced 2024-11-27 04:45:08 +01:00
1 line
7.0 KiB
Plaintext
1 line
7.0 KiB
Plaintext
{"version":3,"file":"4686.125b32545c1a0a0d5d3e.js","mappings":"sFAmQAA,EAAOC,QA1PP,SAAcC,GACZ,MAAMC,EAAQD,EAAKC,MACbC,EAAiB,CACrB,eACA,UACA,gBACA,YACA,QACA,WACA,eACA,oBACA,aACA,QACA,OACA,OACA,aACA,SACA,WACA,cACA,YACA,aACA,YACA,WACA,aACA,cACA,eACA,UACA,aACA,cACA,aACA,MACA,MACA,SACA,SACA,SACA,QACA,gBACA,SACA,aACA,SACA,uBACA,SA2EF,IAAIC,EAAY,CACd,QACA,aACA,QACA,QACA,aACA,KACA,QACA,UACA,SACA,QACA,MACA,aACA,OACA,KACA,SACA,UACA,QACA,UACA,MACA,YACA,QACA,uBACA,cACA,MACA,WACA,QAGFA,EAAYA,EAAUC,OAAOD,EAAUE,KAAIC,GAAK,MAAMA,OAEtD,MAAMC,EAAS,CACbC,MAAO,SACPC,SAAU,CACR,CACEC,MAAO,IACPC,IAAK,KAEP,CACED,MAAO,IACPC,IAAK,OAKLC,EAAS,CACbJ,MAAO,SACPK,MAAO,OAGHC,EAAS,CACbJ,MAAO,KACPC,IAAK,KACLI,cAAc,EACdC,YAAY,EACZC,SAAU,CACRV,EACAK,IAKEM,EAAY,CAChBC,cAAejB,EAAekB,KAAK,KACnCC,SAAU,CAAEC,KAAMpB,GAClBqB,UAAW,EACXN,SAAU,CAAEH,IAGRU,EAAS,CACbX,MAAO,qBACPY,WAAY,cACZF,UAAW,EACXN,SAAU,CACR,CACEJ,MAAO,eACPQ,SApJU,CACd,MACA,aACA,cACA,QACA,aACA,SACA,mBACA,eACA,gBACA,kBACA,WACA,OACA,cACA,UACA,SACA,eACA,YACA,gBACA,SACA,QACA,SACA,cACA,sBACA,kBACA,cACA,kBACA,cACA,wBACA,gBACA,cACA,mBACA,WACA,eACA,aACA,OACA,cACA,OACA,gBACA,OACA,SACA,cACA,QACA,MACA,WACA,mBACA,QACA,QACA,gBACA,MACA,SACA,UACA,UACA,QACA,QACA,OACA,OACA,YACA,QACA,YACA,gBACA,QACA,QACA,cACA,OACA,MACA,QACA,aACA,YACA,kBAoFIK,EAAW,CAACC,GAAYJ,UAAAA,MACrB,CACLE,WAAY,CACV,EAAG,eACH,EAAG,QAELF,UAAWA,GAAa,EACxBK,SAAU,eACVlB,MAAO,CACL,MACA,MACAT,EAAM4B,UAAUF,IAElBhB,IAAK,MACLU,SAAU,KACVJ,SAAU,CACRO,EACAN,EACAX,EACAK,KAMAkB,EAAMJ,EAASvB,EAAW,CAAEoB,UAAW,IACvCQ,EAAaL,EAAS,CAFN,WAEyB,CAAEH,UAAW,IAE5D,MAAO,CACLD,KAAM,OACNU,QAAS,CAAE,YACXC,kBAAkB,EAClBC,YAAa,MACbjB,SAAU,CACRjB,EAAKmC,QAAQ,MAAO,OACpBL,EACAC,EACA,CACEK,UAAW,oBACX1B,MAAO,OACPC,IAAK,OACLM,SAAU,CACR,OACAO,EACAN,EACAX,EACAK","sources":["webpack://telegram-t/./node_modules/highlight.js/lib/languages/twig.js"],"sourcesContent":["/*\nLanguage: Twig\nRequires: xml.js\nAuthor: Luke Holder <lukemh@gmail.com>\nDescription: Twig is a templating language for PHP\nWebsite: https://twig.symfony.com\nCategory: template\n*/\n\nfunction twig(hljs) {\n const regex = hljs.regex;\n const FUNCTION_NAMES = [\n \"absolute_url\",\n \"asset|0\",\n \"asset_version\",\n \"attribute\",\n \"block\",\n \"constant\",\n \"controller|0\",\n \"country_timezones\",\n \"csrf_token\",\n \"cycle\",\n \"date\",\n \"dump\",\n \"expression\",\n \"form|0\",\n \"form_end\",\n \"form_errors\",\n \"form_help\",\n \"form_label\",\n \"form_rest\",\n \"form_row\",\n \"form_start\",\n \"form_widget\",\n \"html_classes\",\n \"include\",\n \"is_granted\",\n \"logout_path\",\n \"logout_url\",\n \"max\",\n \"min\",\n \"parent\",\n \"path|0\",\n \"random\",\n \"range\",\n \"relative_path\",\n \"render\",\n \"render_esi\",\n \"source\",\n \"template_from_string\",\n \"url|0\"\n ];\n\n const FILTERS = [\n \"abs\",\n \"abbr_class\",\n \"abbr_method\",\n \"batch\",\n \"capitalize\",\n \"column\",\n \"convert_encoding\",\n \"country_name\",\n \"currency_name\",\n \"currency_symbol\",\n \"data_uri\",\n \"date\",\n \"date_modify\",\n \"default\",\n \"escape\",\n \"file_excerpt\",\n \"file_link\",\n \"file_relative\",\n \"filter\",\n \"first\",\n \"format\",\n \"format_args\",\n \"format_args_as_text\",\n \"format_currency\",\n \"format_date\",\n \"format_datetime\",\n \"format_file\",\n \"format_file_from_text\",\n \"format_number\",\n \"format_time\",\n \"html_to_markdown\",\n \"humanize\",\n \"inky_to_html\",\n \"inline_css\",\n \"join\",\n \"json_encode\",\n \"keys\",\n \"language_name\",\n \"last\",\n \"length\",\n \"locale_name\",\n \"lower\",\n \"map\",\n \"markdown\",\n \"markdown_to_html\",\n \"merge\",\n \"nl2br\",\n \"number_format\",\n \"raw\",\n \"reduce\",\n \"replace\",\n \"reverse\",\n \"round\",\n \"slice\",\n \"slug\",\n \"sort\",\n \"spaceless\",\n \"split\",\n \"striptags\",\n \"timezone_name\",\n \"title\",\n \"trans\",\n \"transchoice\",\n \"trim\",\n \"u|0\",\n \"upper\",\n \"url_encode\",\n \"yaml_dump\",\n \"yaml_encode\"\n ];\n\n let TAG_NAMES = [\n \"apply\",\n \"autoescape\",\n \"block\",\n \"cache\",\n \"deprecated\",\n \"do\",\n \"embed\",\n \"extends\",\n \"filter\",\n \"flush\",\n \"for\",\n \"form_theme\",\n \"from\",\n \"if\",\n \"import\",\n \"include\",\n \"macro\",\n \"sandbox\",\n \"set\",\n \"stopwatch\",\n \"trans\",\n \"trans_default_domain\",\n \"transchoice\",\n \"use\",\n \"verbatim\",\n \"with\"\n ];\n\n TAG_NAMES = TAG_NAMES.concat(TAG_NAMES.map(t => `end${t}`));\n\n const STRING = {\n scope: 'string',\n variants: [\n {\n begin: /'/,\n end: /'/\n },\n {\n begin: /\"/,\n end: /\"/\n },\n ]\n };\n\n const NUMBER = {\n scope: \"number\",\n match: /\\d+/\n };\n\n const PARAMS = {\n begin: /\\(/,\n end: /\\)/,\n excludeBegin: true,\n excludeEnd: true,\n contains: [\n STRING,\n NUMBER\n ]\n };\n\n\n const FUNCTIONS = {\n beginKeywords: FUNCTION_NAMES.join(\" \"),\n keywords: { name: FUNCTION_NAMES },\n relevance: 0,\n contains: [ PARAMS ]\n };\n\n const FILTER = {\n match: /\\|(?=[A-Za-z_]+:?)/,\n beginScope: \"punctuation\",\n relevance: 0,\n contains: [\n {\n match: /[A-Za-z_]+:?/,\n keywords: FILTERS\n },\n ]\n };\n\n const tagNamed = (tagnames, { relevance }) => {\n return {\n beginScope: {\n 1: 'template-tag',\n 3: 'name'\n },\n relevance: relevance || 2,\n endScope: 'template-tag',\n begin: [\n /\\{%/,\n /\\s*/,\n regex.either(...tagnames)\n ],\n end: /%\\}/,\n keywords: \"in\",\n contains: [\n FILTER,\n FUNCTIONS,\n STRING,\n NUMBER\n ]\n };\n };\n\n const CUSTOM_TAG_RE = /[a-z_]+/;\n const TAG = tagNamed(TAG_NAMES, { relevance: 2 });\n const CUSTOM_TAG = tagNamed([ CUSTOM_TAG_RE ], { relevance: 1 });\n\n return {\n name: 'Twig',\n aliases: [ 'craftcms' ],\n case_insensitive: true,\n subLanguage: 'xml',\n contains: [\n hljs.COMMENT(/\\{#/, /#\\}/),\n TAG,\n CUSTOM_TAG,\n {\n className: 'template-variable',\n begin: /\\{\\{/,\n end: /\\}\\}/,\n contains: [\n 'self',\n FILTER,\n FUNCTIONS,\n STRING,\n NUMBER\n ]\n }\n ]\n };\n}\n\nmodule.exports = twig;\n"],"names":["module","exports","hljs","regex","FUNCTION_NAMES","TAG_NAMES","concat","map","t","STRING","scope","variants","begin","end","NUMBER","match","PARAMS","excludeBegin","excludeEnd","contains","FUNCTIONS","beginKeywords","join","keywords","name","relevance","FILTER","beginScope","tagNamed","tagnames","endScope","either","TAG","CUSTOM_TAG","aliases","case_insensitive","subLanguage","COMMENT","className"],"sourceRoot":""} |