/* Copyright (c) 2006, Ivan Sagalaev. All rights reserved. SPDX-License-Identifier: BSD-3-Clause */ 'use strict';var decimalDigits$$module$third_party$javascript$highlightjs$src$languages$lib$java="[0-9](_*[0-9])*";var frac$$module$third_party$javascript$highlightjs$src$languages$lib$java=`\\.(${decimalDigits$$module$third_party$javascript$highlightjs$src$languages$lib$java})`;var hexDigits$$module$third_party$javascript$highlightjs$src$languages$lib$java="[0-9a-fA-F](_*[0-9a-fA-F])*"; var NUMERIC$$module$third_party$javascript$highlightjs$src$languages$lib$java={className:"number",variants:[{begin:`(\\b(${decimalDigits$$module$third_party$javascript$highlightjs$src$languages$lib$java})((${frac$$module$third_party$javascript$highlightjs$src$languages$lib$java})|\\.)?|(${frac$$module$third_party$javascript$highlightjs$src$languages$lib$java}))`+`[eE][+-]?(${decimalDigits$$module$third_party$javascript$highlightjs$src$languages$lib$java})[fFdD]?\\b`},{begin:`\\b(${decimalDigits$$module$third_party$javascript$highlightjs$src$languages$lib$java})((${frac$$module$third_party$javascript$highlightjs$src$languages$lib$java})[fFdD]?\\b|\\.([fFdD]\\b)?)`}, {begin:`(${frac$$module$third_party$javascript$highlightjs$src$languages$lib$java})[fFdD]?\\b`},{begin:`\\b(${decimalDigits$$module$third_party$javascript$highlightjs$src$languages$lib$java})[fFdD]\\b`},{begin:`\\b0[xX]((${hexDigits$$module$third_party$javascript$highlightjs$src$languages$lib$java})\\.?|(${hexDigits$$module$third_party$javascript$highlightjs$src$languages$lib$java})?\\.(${hexDigits$$module$third_party$javascript$highlightjs$src$languages$lib$java}))`+`[pP][+-]?(${decimalDigits$$module$third_party$javascript$highlightjs$src$languages$lib$java})[fFdD]?\\b`}, {begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${hexDigits$$module$third_party$javascript$highlightjs$src$languages$lib$java})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};var module$third_party$javascript$highlightjs$src$languages$lib$java={};module$third_party$javascript$highlightjs$src$languages$lib$java.NUMERIC=NUMERIC$$module$third_party$javascript$highlightjs$src$languages$lib$java;var $jscompDefaultExport$$module$third_party$javascript$highlightjs$src$languages$kotlin=function(hljs){const KEYWORDS={keyword:"abstract as val var vararg get set class object open private protected public noinline "+"crossinline dynamic final enum if else do while for when throw try catch finally "+"import package is in fun override companion reified inline lateinit init "+"interface annotation data sealed internal infix operator out by constructor super "+"tailrec where const inner suspend typealias external expect actual", built_in:"Byte Short Char Int Long Boolean Float Double Void Unit Nothing",literal:"true false null"};const KEYWORDS_WITH_LABEL={className:"keyword",begin:/\b(break|continue|return|this)\b/,starts:{contains:[{className:"symbol",begin:/@\w+/}]}};const LABEL={className:"symbol",begin:hljs.UNDERSCORE_IDENT_RE+"@"};const SUBST={className:"subst",begin:/\$\{/,end:/\}/,contains:[hljs.C_NUMBER_MODE]};const VARIABLE={className:"variable",begin:"\\$"+hljs.UNDERSCORE_IDENT_RE};const STRING={className:"string", variants:[{begin:'"""',end:'"""(?=[^"])',contains:[VARIABLE,SUBST]},{begin:"'",end:"'",illegal:/\n/,contains:[hljs.BACKSLASH_ESCAPE]},{begin:'"',end:'"',illegal:/\n/,contains:[hljs.BACKSLASH_ESCAPE,VARIABLE,SUBST]}]};SUBST.contains.push(STRING);const ANNOTATION_USE_SITE={className:"meta",begin:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+hljs.UNDERSCORE_IDENT_RE+")?"};const ANNOTATION={className:"meta",begin:"@"+hljs.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,end:/\)/, contains:[hljs.inherit(STRING,{className:"meta-string"})]}]};const KOTLIN_NUMBER_MODE=NUMERIC$$module$third_party$javascript$highlightjs$src$languages$lib$java;const KOTLIN_NESTED_COMMENT=hljs.COMMENT("/\\*","\\*/",{contains:[hljs.C_BLOCK_COMMENT_MODE]});const KOTLIN_PAREN_TYPE={variants:[{className:"type",begin:hljs.UNDERSCORE_IDENT_RE},{begin:/\(/,end:/\)/,contains:[]}]};const KOTLIN_PAREN_TYPE2=KOTLIN_PAREN_TYPE;KOTLIN_PAREN_TYPE2.variants[1].contains=[KOTLIN_PAREN_TYPE];KOTLIN_PAREN_TYPE.variants[1].contains= [KOTLIN_PAREN_TYPE2];return{name:"Kotlin",aliases:["kt"],keywords:KEYWORDS,contains:[hljs.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),hljs.C_LINE_COMMENT_MODE,KOTLIN_NESTED_COMMENT,KEYWORDS_WITH_LABEL,LABEL,ANNOTATION_USE_SITE,ANNOTATION,{className:"function",beginKeywords:"fun",end:"[(]|$",returnBegin:true,excludeEnd:true,keywords:KEYWORDS,relevance:5,contains:[{begin:hljs.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:true,relevance:0,contains:[hljs.UNDERSCORE_TITLE_MODE]}, {className:"type",begin://,keywords:"reified",relevance:0},{className:"params",begin:/\(/,end:/\)/,endsParent:true,keywords:KEYWORDS,relevance:0,contains:[{begin:/:/,end:/[=,\/]/,endsWithParent:true,contains:[KOTLIN_PAREN_TYPE,hljs.C_LINE_COMMENT_MODE,KOTLIN_NESTED_COMMENT],relevance:0},hljs.C_LINE_COMMENT_MODE,KOTLIN_NESTED_COMMENT,ANNOTATION_USE_SITE,ANNOTATION,STRING,hljs.C_NUMBER_MODE]},KOTLIN_NESTED_COMMENT]},{className:"class",beginKeywords:"class interface trait",end:/[:\{(]|$/,excludeEnd:true, illegal:"extends implements",contains:[{beginKeywords:"public protected internal private constructor"},hljs.UNDERSCORE_TITLE_MODE,{className:"type",begin://,excludeBegin:true,excludeEnd:true,relevance:0},{className:"type",begin:/[,:]\s*/,end:/[<\(,]|$/,excludeBegin:true,returnEnd:true},ANNOTATION_USE_SITE,ANNOTATION]},STRING,{className:"meta",begin:"^#!/usr/bin/env",end:"$",illegal:"\n"},KOTLIN_NUMBER_MODE]}};var module$third_party$javascript$highlightjs$src$languages$kotlin={}; module$third_party$javascript$highlightjs$src$languages$kotlin.default=$jscompDefaultExport$$module$third_party$javascript$highlightjs$src$languages$kotlin;globalThis.hljs_kotlin=$jscompDefaultExport$$module$third_party$javascript$highlightjs$src$languages$kotlin;var module$third_party$javascript$highlightjs$export_shims$export_kotlin={};