@ylzcc/editor 0.4.7 → 0.4.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/editor.es.js CHANGED
@@ -28650,6 +28650,7 @@ const Heading = Node$1.create({
28650
28650
  name: "title",
28651
28651
  group: "block",
28652
28652
  content: "inline*",
28653
+ marks: "",
28653
28654
  parseHTML() {
28654
28655
  return [{
28655
28656
  tag: "div"
@@ -135,7 +135,7 @@ img.ProseMirror-separator {
135
135
  `},addCommands(){return{setHardBreak:()=>({commands:kh,chain:Ff,state:x_,editor:B_})=>kh.first([()=>kh.exitCode(),()=>kh.command(()=>{const{selection:$_,storedMarks:$P}=x_;if($_.$from.parent.type.spec.isolating)return!1;const{keepMarks:zP}=this.options,{splittableMarks:e0e}=B_.extensionManager,t0e=$P||$_.$to.parentOffset&&$_.$from.marks();return Ff().insertContent({type:this.name}).command(({tr:n0e,dispatch:r0e})=>{if(r0e&&t0e&&zP){const i0e=t0e.filter(o0e=>e0e.includes(o0e.type.name));n0e.ensureMarks(i0e)}return!0}).run()})])}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}});function cPlusPlus(kh){const Ff=kh.regex,x_=kh.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),B_="decltype\\(auto\\)",$_="[a-zA-Z_]\\w*::",zP="(?!struct)("+B_+"|"+Ff.optional($_)+"[a-zA-Z_]\\w*"+Ff.optional("<[^<>]+>")+")",e0e={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},n0e={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[kh.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},kh.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},r0e={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},i0e={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},kh.inherit(n0e,{className:"string"}),{className:"string",begin:/<.*?>/},x_,kh.C_BLOCK_COMMENT_MODE]},o0e={className:"title",begin:Ff.optional($_)+kh.IDENT_RE,relevance:0},s0e=Ff.optional($_)+kh.IDENT_RE+"\\s*\\(",c0e=["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],d0e=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],a0e=["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"],l0e=["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"],f0e={type:d0e,keyword:c0e,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:a0e},p0e={className:"function.dispatch",relevance:0,keywords:{_hint:l0e},begin:Ff.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,kh.IDENT_RE,Ff.lookahead(/(<[^<>]+>|)\s*\(/))},g0e=[p0e,i0e,e0e,x_,kh.C_BLOCK_COMMENT_MODE,r0e,n0e],y0e={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:f0e,contains:g0e.concat([{begin:/\(/,end:/\)/,keywords:f0e,contains:g0e.concat(["self"]),relevance:0}]),relevance:0},m0e={className:"function",begin:"("+zP+"[\\*&\\s]+)+"+s0e,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:f0e,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:B_,keywords:f0e,relevance:0},{begin:s0e,returnBegin:!0,contains:[o0e],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[n0e,r0e]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:f0e,relevance:0,contains:[x_,kh.C_BLOCK_COMMENT_MODE,n0e,r0e,e0e,{begin:/\(/,end:/\)/,keywords:f0e,relevance:0,contains:["self",x_,kh.C_BLOCK_COMMENT_MODE,n0e,r0e,e0e]}]},e0e,x_,kh.C_BLOCK_COMMENT_MODE,i0e]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:f0e,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(y0e,m0e,p0e,g0e,[i0e,{begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function)\\s*<(?!<)",end:">",keywords:f0e,contains:["self",e0e]},{begin:kh.IDENT_RE+"::",keywords:f0e},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}function arduino(kh){const Ff={type:["boolean","byte","word","String"],built_in:["KeyboardController","MouseController","SoftwareSerial","EthernetServer","EthernetClient","LiquidCrystal","RobotControl","GSMVoiceCall","EthernetUDP","EsploraTFT","HttpClient","RobotMotor","WiFiClient","GSMScanner","FileSystem","Scheduler","GSMServer","YunClient","YunServer","IPAddress","GSMClient","GSMModem","Keyboard","Ethernet","Console","GSMBand","Esplora","Stepper","Process","WiFiUDP","GSM_SMS","Mailbox","USBHost","Firmata","PImage","Client","Server","GSMPIN","FileIO","Bridge","Serial","EEPROM","Stream","Mouse","Audio","Servo","File","Task","GPRS","WiFi","Wire","TFT","GSM","SPI","SD"],_hints:["setup","loop","runShellCommandAsynchronously","analogWriteResolution","retrieveCallingNumber","printFirmwareVersion","analogReadResolution","sendDigitalPortPair","noListenOnLocalhost","readJoystickButton","setFirmwareVersion","readJoystickSwitch","scrollDisplayRight","getVoiceCallStatus","scrollDisplayLeft","writeMicroseconds","delayMicroseconds","beginTransmission","getSignalStrength","runAsynchronously","getAsynchronously","listenOnLocalhost","getCurrentCarrier","readAccelerometer","messageAvailable","sendDigitalPorts","lineFollowConfig","countryNameWrite","runShellCommand","readStringUntil","rewindDirectory","readTemperature","setClockDivider","readLightSensor","endTransmission","analogReference","detachInterrupt","countryNameRead","attachInterrupt","encryptionType","readBytesUntil","robotNameWrite","readMicrophone","robotNameRead","cityNameWrite","userNameWrite","readJoystickY","readJoystickX","mouseReleased","openNextFile","scanNetworks","noInterrupts","digitalWrite","beginSpeaker","mousePressed","isActionDone","mouseDragged","displayLogos","noAutoscroll","addParameter","remoteNumber","getModifiers","keyboardRead","userNameRead","waitContinue","processInput","parseCommand","printVersion","readNetworks","writeMessage","blinkVersion","cityNameRead","readMessage","setDataMode","parsePacket","isListening","setBitOrder","beginPacket","isDirectory","motorsWrite","drawCompass","digitalRead","clearScreen","serialEvent","rightToLeft","setTextSize","leftToRight","requestFrom","keyReleased","compassRead","analogWrite","interrupts","WiFiServer","disconnect","playMelody","parseFloat","autoscroll","getPINUsed","setPINUsed","setTimeout","sendAnalog","readSlider","analogRead","beginWrite","createChar","motorsStop","keyPressed","tempoWrite","readButton","subnetMask","debugPrint","macAddress","writeGreen","randomSeed","attachGPRS","readString","sendString","remotePort","releaseAll","mouseMoved","background","getXChange","getYChange","answerCall","getResult","voiceCall","endPacket","constrain","getSocket","writeJSON","getButton","available","connected","findUntil","readBytes","exitValue","readGreen","writeBlue","startLoop","IPAddress","isPressed","sendSysex","pauseMode","gatewayIP","setCursor","getOemKey","tuneWrite","noDisplay","loadImage","switchPIN","onRequest","onReceive","changePIN","playFile","noBuffer","parseInt","overflow","checkPIN","knobRead","beginTFT","bitClear","updateIR","bitWrite","position","writeRGB","highByte","writeRed","setSpeed","readBlue","noStroke","remoteIP","transfer","shutdown","hangCall","beginSMS","endWrite","attached","maintain","noCursor","checkReg","checkPUK","shiftOut","isValid","shiftIn","pulseIn","connect","println","localIP","pinMode","getIMEI","display","noBlink","process","getBand","running","beginSD","drawBMP","lowByte","setBand","release","bitRead","prepare","pointTo","readRed","setMode","noFill","remove","listen","stroke","detach","attach","noTone","exists","buffer","height","bitSet","circle","config","cursor","random","IRread","setDNS","endSMS","getKey","micros","millis","begin","print","write","ready","flush","width","isPIN","blink","clear","press","mkdir","rmdir","close","point","yield","image","BSSID","click","delay","read","text","move","peek","beep","rect","line","open","seek","fill","size","turn","stop","home","find","step","tone","sqrt","RSSI","SSID","end","bit","tan","cos","sin","pow","map","abs","max","min","get","run","put"],literal:["DIGITAL_MESSAGE","FIRMATA_STRING","ANALOG_MESSAGE","REPORT_DIGITAL","REPORT_ANALOG","INPUT_PULLUP","SET_PIN_MODE","INTERNAL2V56","SYSTEM_RESET","LED_BUILTIN","INTERNAL1V1","SYSEX_START","INTERNAL","EXTERNAL","DEFAULT","OUTPUT","INPUT","HIGH","LOW"]},x_=cPlusPlus(kh),B_=x_.keywords;return B_.type=[...B_.type,...Ff.type],B_.literal=[...B_.literal,...Ff.literal],B_.built_in=[...B_.built_in,...Ff.built_in],B_._hints=Ff._hints,x_.name="Arduino",x_.aliases=["ino"],x_.supersetOf="cpp",x_}function bash(kh){const Ff=kh.regex,x_={},B_={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[x_]}]};Object.assign(x_,{className:"variable",variants:[{begin:Ff.concat(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},B_]});const $_={className:"subst",begin:/\$\(/,end:/\)/,contains:[kh.BACKSLASH_ESCAPE]},$P={begin:/<<-?\s*(?=\w+)/,starts:{contains:[kh.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},zP={className:"string",begin:/"/,end:/"/,contains:[kh.BACKSLASH_ESCAPE,x_,$_]};$_.contains.push(zP);const e0e={className:"",begin:/\\"/},t0e={className:"string",begin:/'/,end:/'/},n0e={begin:/\$?\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},kh.NUMBER_MODE,x_]},r0e=["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"],i0e=kh.SHEBANG({binary:`(${r0e.join("|")})`,relevance:10}),o0e={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[kh.inherit(kh.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0},s0e=["if","then","else","elif","fi","for","while","in","do","done","case","esac","function"],c0e=["true","false"],d0e={match:/(\/[a-z._-]+)+/},a0e=["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset"],l0e=["alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","type","typeset","ulimit","unalias"],u0e=["autoload","bg","bindkey","bye","cap","chdir","clone","comparguments","compcall","compctl","compdescribe","compfiles","compgroups","compquote","comptags","comptry","compvalues","dirs","disable","disown","echotc","echoti","emulate","fc","fg","float","functions","getcap","getln","history","integer","jobs","kill","limit","log","noglob","popd","print","pushd","pushln","rehash","sched","setcap","setopt","stat","suspend","ttyctl","unfunction","unhash","unlimit","unsetopt","vared","wait","whence","where","which","zcompile","zformat","zftp","zle","zmodload","zparseopts","zprof","zpty","zregexparse","zsocket","zstyle","ztcp"],h0e=["chcon","chgrp","chown","chmod","cp","dd","df","dir","dircolors","ln","ls","mkdir","mkfifo","mknod","mktemp","mv","realpath","rm","rmdir","shred","sync","touch","truncate","vdir","b2sum","base32","base64","cat","cksum","comm","csplit","cut","expand","fmt","fold","head","join","md5sum","nl","numfmt","od","paste","ptx","pr","sha1sum","sha224sum","sha256sum","sha384sum","sha512sum","shuf","sort","split","sum","tac","tail","tr","tsort","unexpand","uniq","wc","arch","basename","chroot","date","dirname","du","echo","env","expr","factor","groups","hostid","id","link","logname","nice","nohup","nproc","pathchk","pinky","printenv","printf","pwd","readlink","runcon","seq","sleep","stat","stdbuf","stty","tee","test","timeout","tty","uname","unlink","uptime","users","who","whoami","yes"];return{name:"Bash",aliases:["sh"],keywords:{$pattern:/\b[a-z][a-z0-9._-]+\b/,keyword:s0e,literal:c0e,built_in:[...a0e,...l0e,"set","shopt",...u0e,...h0e]},contains:[i0e,kh.SHEBANG(),o0e,n0e,kh.HASH_COMMENT_MODE,$P,d0e,zP,e0e,t0e,x_]}}function c$1(kh){const Ff=kh.regex,x_=kh.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),B_="decltype\\(auto\\)",$_="[a-zA-Z_]\\w*::",zP="("+B_+"|"+Ff.optional($_)+"[a-zA-Z_]\\w*"+Ff.optional("<[^<>]+>")+")",e0e={className:"type",variants:[{begin:"\\b[a-z\\d_]*_t\\b"},{match:/\batomic_[a-z]{3,6}\b/}]},n0e={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[kh.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},kh.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},r0e={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},i0e={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},kh.inherit(n0e,{className:"string"}),{className:"string",begin:/<.*?>/},x_,kh.C_BLOCK_COMMENT_MODE]},o0e={className:"title",begin:Ff.optional($_)+kh.IDENT_RE,relevance:0},s0e=Ff.optional($_)+kh.IDENT_RE+"\\s*\\(",a0e={keyword:["asm","auto","break","case","continue","default","do","else","enum","extern","for","fortran","goto","if","inline","register","restrict","return","sizeof","struct","switch","typedef","union","volatile","while","_Alignas","_Alignof","_Atomic","_Generic","_Noreturn","_Static_assert","_Thread_local","alignas","alignof","noreturn","static_assert","thread_local","_Pragma"],type:["float","double","signed","unsigned","int","short","long","char","void","_Bool","_Complex","_Imaginary","_Decimal32","_Decimal64","_Decimal128","const","static","complex","bool","imaginary"],literal:"true false NULL",built_in:"std string wstring cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set pair bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap priority_queue make_pair array shared_ptr abort terminate abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf future isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr"},l0e=[i0e,e0e,x_,kh.C_BLOCK_COMMENT_MODE,r0e,n0e],u0e={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:a0e,contains:l0e.concat([{begin:/\(/,end:/\)/,keywords:a0e,contains:l0e.concat(["self"]),relevance:0}]),relevance:0},h0e={begin:"("+zP+"[\\*&\\s]+)+"+s0e,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:a0e,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:B_,keywords:a0e,relevance:0},{begin:s0e,returnBegin:!0,contains:[kh.inherit(o0e,{className:"title.function"})],relevance:0},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:a0e,relevance:0,contains:[x_,kh.C_BLOCK_COMMENT_MODE,n0e,r0e,e0e,{begin:/\(/,end:/\)/,keywords:a0e,relevance:0,contains:["self",x_,kh.C_BLOCK_COMMENT_MODE,n0e,r0e,e0e]}]},e0e,x_,kh.C_BLOCK_COMMENT_MODE,i0e]};return{name:"C",aliases:["h"],keywords:a0e,disableAutodetect:!0,illegal:"</",contains:[].concat(u0e,h0e,l0e,[i0e,{begin:kh.IDENT_RE+"::",keywords:a0e},{className:"class",beginKeywords:"enum class struct union",end:/[{;:<>=]/,contains:[{beginKeywords:"final class struct"},kh.TITLE_MODE]}]),exports:{preprocessor:i0e,strings:n0e,keywords:a0e}}}function cpp(kh){const Ff=kh.regex,x_=kh.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),B_="decltype\\(auto\\)",$_="[a-zA-Z_]\\w*::",zP="(?!struct)("+B_+"|"+Ff.optional($_)+"[a-zA-Z_]\\w*"+Ff.optional("<[^<>]+>")+")",e0e={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},n0e={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[kh.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},kh.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},r0e={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},i0e={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},kh.inherit(n0e,{className:"string"}),{className:"string",begin:/<.*?>/},x_,kh.C_BLOCK_COMMENT_MODE]},o0e={className:"title",begin:Ff.optional($_)+kh.IDENT_RE,relevance:0},s0e=Ff.optional($_)+kh.IDENT_RE+"\\s*\\(",c0e=["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],d0e=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],a0e=["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"],l0e=["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"],f0e={type:d0e,keyword:c0e,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:a0e},p0e={className:"function.dispatch",relevance:0,keywords:{_hint:l0e},begin:Ff.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,kh.IDENT_RE,Ff.lookahead(/(<[^<>]+>|)\s*\(/))},g0e=[p0e,i0e,e0e,x_,kh.C_BLOCK_COMMENT_MODE,r0e,n0e],y0e={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:f0e,contains:g0e.concat([{begin:/\(/,end:/\)/,keywords:f0e,contains:g0e.concat(["self"]),relevance:0}]),relevance:0},m0e={className:"function",begin:"("+zP+"[\\*&\\s]+)+"+s0e,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:f0e,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:B_,keywords:f0e,relevance:0},{begin:s0e,returnBegin:!0,contains:[o0e],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[n0e,r0e]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:f0e,relevance:0,contains:[x_,kh.C_BLOCK_COMMENT_MODE,n0e,r0e,e0e,{begin:/\(/,end:/\)/,keywords:f0e,relevance:0,contains:["self",x_,kh.C_BLOCK_COMMENT_MODE,n0e,r0e,e0e]}]},e0e,x_,kh.C_BLOCK_COMMENT_MODE,i0e]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:f0e,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(y0e,m0e,p0e,g0e,[i0e,{begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function)\\s*<(?!<)",end:">",keywords:f0e,contains:["self",e0e]},{begin:kh.IDENT_RE+"::",keywords:f0e},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}function csharp(kh){const Ff=["bool","byte","char","decimal","delegate","double","dynamic","enum","float","int","long","nint","nuint","object","sbyte","short","string","ulong","uint","ushort"],x_=["public","private","protected","static","internal","protected","abstract","async","extern","override","unsafe","virtual","new","sealed","partial"],B_=["default","false","null","true"],$_=["abstract","as","base","break","case","catch","class","const","continue","do","else","event","explicit","extern","finally","fixed","for","foreach","goto","if","implicit","in","interface","internal","is","lock","namespace","new","operator","out","override","params","private","protected","public","readonly","record","ref","return","scoped","sealed","sizeof","stackalloc","static","struct","switch","this","throw","try","typeof","unchecked","unsafe","using","virtual","void","volatile","while"],$P=["add","alias","and","ascending","async","await","by","descending","equals","from","get","global","group","init","into","join","let","nameof","not","notnull","on","or","orderby","partial","remove","select","set","unmanaged","value|0","var","when","where","with","yield"],zP={keyword:$_.concat($P),built_in:Ff,literal:B_},e0e=kh.inherit(kh.TITLE_MODE,{begin:"[a-zA-Z](\\.?\\w)*"}),t0e={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)(u|U|l|L|ul|UL|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},n0e={className:"string",begin:'@"',end:'"',contains:[{begin:'""'}]},r0e=kh.inherit(n0e,{illegal:/\n/}),i0e={className:"subst",begin:/\{/,end:/\}/,keywords:zP},o0e=kh.inherit(i0e,{illegal:/\n/}),s0e={className:"string",begin:/\$"/,end:'"',illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},kh.BACKSLASH_ESCAPE,o0e]},c0e={className:"string",begin:/\$@"/,end:'"',contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},i0e]},d0e=kh.inherit(c0e,{illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},o0e]});i0e.contains=[c0e,s0e,n0e,kh.APOS_STRING_MODE,kh.QUOTE_STRING_MODE,t0e,kh.C_BLOCK_COMMENT_MODE],o0e.contains=[d0e,s0e,r0e,kh.APOS_STRING_MODE,kh.QUOTE_STRING_MODE,t0e,kh.inherit(kh.C_BLOCK_COMMENT_MODE,{illegal:/\n/})];const a0e={variants:[c0e,s0e,n0e,kh.APOS_STRING_MODE,kh.QUOTE_STRING_MODE]},l0e={begin:"<",end:">",contains:[{beginKeywords:"in out"},e0e]},u0e=kh.IDENT_RE+"(<"+kh.IDENT_RE+"(\\s*,\\s*"+kh.IDENT_RE+")*>)?(\\[\\])?",h0e={begin:"@"+kh.IDENT_RE,relevance:0};return{name:"C#",aliases:["cs","c#"],keywords:zP,illegal:/::/,contains:[kh.COMMENT("///","$",{returnBegin:!0,contains:[{className:"doctag",variants:[{begin:"///",relevance:0},{begin:"<!--|-->"},{begin:"</?",end:">"}]}]}),kh.C_LINE_COMMENT_MODE,kh.C_BLOCK_COMMENT_MODE,{className:"meta",begin:"#",end:"$",keywords:{keyword:"if else elif endif define undef warning error line region endregion pragma checksum"}},a0e,t0e,{beginKeywords:"class interface",relevance:0,end:/[{;=]/,illegal:/[^\s:,]/,contains:[{beginKeywords:"where class"},e0e,l0e,kh.C_LINE_COMMENT_MODE,kh.C_BLOCK_COMMENT_MODE]},{beginKeywords:"namespace",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[e0e,kh.C_LINE_COMMENT_MODE,kh.C_BLOCK_COMMENT_MODE]},{beginKeywords:"record",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[e0e,l0e,kh.C_LINE_COMMENT_MODE,kh.C_BLOCK_COMMENT_MODE]},{className:"meta",begin:"^\\s*\\[(?=[\\w])",excludeBegin:!0,end:"\\]",excludeEnd:!0,contains:[{className:"string",begin:/"/,end:/"/}]},{beginKeywords:"new return throw await else",relevance:0},{className:"function",begin:"("+u0e+"\\s+)+"+kh.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,end:/\s*[{;=]/,excludeEnd:!0,keywords:zP,contains:[{beginKeywords:x_.join(" "),relevance:0},{begin:kh.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,contains:[kh.TITLE_MODE,l0e],relevance:0},{match:/\(\)/},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:zP,relevance:0,contains:[a0e,t0e,kh.C_BLOCK_COMMENT_MODE]},kh.C_LINE_COMMENT_MODE,kh.C_BLOCK_COMMENT_MODE]},h0e]}}const MODES$4=kh=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:kh.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[kh.APOS_STRING_MODE,kh.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:kh.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z][A-Za-z0-9_-]*/}}),TAGS$2=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],MEDIA_FEATURES$2=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"],PSEUDO_CLASSES$2=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"],PSEUDO_ELEMENTS$2=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],ATTRIBUTES$2=["align-content","align-items","align-self","all","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","content-visibility","counter-increment","counter-reset","cue","cue-after","cue-before","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-synthesis","font-variant","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inline-size","isolation","justify-content","left","letter-spacing","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","pause","pause-after","pause-before","perspective","perspective-origin","pointer-events","position","quotes","resize","rest","rest-after","rest-before","right","row-gap","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","speak","speak-as","src","tab-size","table-layout","text-align","text-align-all","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-box","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index"].reverse();function css(kh){const Ff=kh.regex,x_=MODES$4(kh),B_={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},$_="and or not only",$P=/@-?\w[\w]*(-\w+)*/,zP="[a-zA-Z-][a-zA-Z0-9_-]*",e0e=[kh.APOS_STRING_MODE,kh.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[x_.BLOCK_COMMENT,B_,x_.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+zP,relevance:0},x_.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+PSEUDO_CLASSES$2.join("|")+")"},{begin:":(:)?("+PSEUDO_ELEMENTS$2.join("|")+")"}]},x_.CSS_VARIABLE,{className:"attribute",begin:"\\b("+ATTRIBUTES$2.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[x_.BLOCK_COMMENT,x_.HEXCOLOR,x_.IMPORTANT,x_.CSS_NUMBER_MODE,...e0e,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...e0e,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},x_.FUNCTION_DISPATCH]},{begin:Ff.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:$P},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:$_,attribute:MEDIA_FEATURES$2.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...e0e,x_.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+TAGS$2.join("|")+")\\b"}]}}function diff(kh){const Ff=kh.regex;return{name:"Diff",aliases:["patch"],contains:[{className:"meta",relevance:10,match:Ff.either(/^@@ +-\d+,\d+ +\+\d+,\d+ +@@/,/^\*\*\* +\d+,\d+ +\*\*\*\*$/,/^--- +\d+,\d+ +----$/)},{className:"comment",variants:[{begin:Ff.either(/Index: /,/^index/,/={3,}/,/^-{3}/,/^\*{3} /,/^\+{3}/,/^diff --git/),end:/$/},{match:/^\*{15}$/}]},{className:"addition",begin:/^\+/,end:/$/},{className:"deletion",begin:/^-/,end:/$/},{className:"addition",begin:/^!/,end:/$/}]}}function go$1(kh){const $P={keyword:["break","case","chan","const","continue","default","defer","else","fallthrough","for","func","go","goto","if","import","interface","map","package","range","return","select","struct","switch","type","var"],type:["bool","byte","complex64","complex128","error","float32","float64","int8","int16","int32","int64","string","uint8","uint16","uint32","uint64","int","uint","uintptr","rune"],literal:["true","false","iota","nil"],built_in:["append","cap","close","complex","copy","imag","len","make","new","panic","print","println","real","recover","delete"]};return{name:"Go",aliases:["golang"],keywords:$P,illegal:"</",contains:[kh.C_LINE_COMMENT_MODE,kh.C_BLOCK_COMMENT_MODE,{className:"string",variants:[kh.QUOTE_STRING_MODE,kh.APOS_STRING_MODE,{begin:"`",end:"`"}]},{className:"number",variants:[{begin:kh.C_NUMBER_RE+"[i]",relevance:1},kh.C_NUMBER_MODE]},{begin:/:=/},{className:"function",beginKeywords:"func",end:"\\s*(\\{|$)",excludeEnd:!0,contains:[kh.TITLE_MODE,{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:$P,illegal:/["']/}]}]}}function graphql(kh){const Ff=kh.regex,x_=/[_A-Za-z][_0-9A-Za-z]*/;return{name:"GraphQL",aliases:["gql"],case_insensitive:!0,disableAutodetect:!1,keywords:{keyword:["query","mutation","subscription","type","input","schema","directive","interface","union","scalar","fragment","enum","on"],literal:["true","false","null"]},contains:[kh.HASH_COMMENT_MODE,kh.QUOTE_STRING_MODE,kh.NUMBER_MODE,{scope:"punctuation",match:/[.]{3}/,relevance:0},{scope:"punctuation",begin:/[\!\(\)\:\=\[\]\{\|\}]{1}/,relevance:0},{scope:"variable",begin:/\$/,end:/\W/,excludeEnd:!0,relevance:0},{scope:"meta",match:/@\w+/,excludeEnd:!0},{scope:"symbol",begin:Ff.concat(x_,Ff.lookahead(/\s*:/)),relevance:0}],illegal:[/[;<']/,/BEGIN/]}}function ini(kh){const Ff=kh.regex,x_={className:"number",relevance:0,variants:[{begin:/([+-]+)?[\d]+_[\d_]+/},{begin:kh.NUMBER_RE}]},B_=kh.COMMENT();B_.variants=[{begin:/;/,end:/$/},{begin:/#/,end:/$/}];const $_={className:"variable",variants:[{begin:/\$[\w\d"][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},$P={className:"literal",begin:/\bon|off|true|false|yes|no\b/},zP={className:"string",contains:[kh.BACKSLASH_ESCAPE],variants:[{begin:"'''",end:"'''",relevance:10},{begin:'"""',end:'"""',relevance:10},{begin:'"',end:'"'},{begin:"'",end:"'"}]},e0e={begin:/\[/,end:/\]/,contains:[B_,$P,$_,zP,x_,"self"],relevance:0},t0e=/[A-Za-z0-9_-]+/,n0e=/"(\\"|[^"])*"/,r0e=/'[^']*'/,i0e=Ff.either(t0e,n0e,r0e),o0e=Ff.concat(i0e,"(\\s*\\.\\s*",i0e,")*",Ff.lookahead(/\s*=\s*[^#\s]/));return{name:"TOML, also INI",aliases:["toml"],case_insensitive:!0,illegal:/\S/,contains:[B_,{className:"section",begin:/\[+/,end:/\]+/},{begin:o0e,className:"attr",starts:{end:/$/,contains:[B_,e0e,$P,$_,zP,x_]}}]}}var decimalDigits$1="[0-9](_*[0-9])*",frac$1=`\\.(${decimalDigits$1})`,hexDigits$1="[0-9a-fA-F](_*[0-9a-fA-F])*",NUMERIC$1={className:"number",variants:[{begin:`(\\b(${decimalDigits$1})((${frac$1})|\\.)?|(${frac$1}))[eE][+-]?(${decimalDigits$1})[fFdD]?\\b`},{begin:`\\b(${decimalDigits$1})((${frac$1})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${frac$1})[fFdD]?\\b`},{begin:`\\b(${decimalDigits$1})[fFdD]\\b`},{begin:`\\b0[xX]((${hexDigits$1})\\.?|(${hexDigits$1})?\\.(${hexDigits$1}))[pP][+-]?(${decimalDigits$1})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${hexDigits$1})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function recurRegex(kh,Ff,x_){return x_===-1?"":kh.replace(Ff,B_=>recurRegex(kh,Ff,x_-1))}function java(kh){const Ff=kh.regex,x_="[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*",B_=x_+recurRegex("(?:<"+x_+"~~~(?:\\s*,\\s*"+x_+"~~~)*>)?",/~~~/g,2),t0e={keyword:["synchronized","abstract","private","var","static","if","const ","for","while","strictfp","finally","protected","import","native","final","void","enum","else","break","transient","catch","instanceof","volatile","case","assert","package","default","public","try","switch","continue","throws","protected","public","private","module","requires","exports","do","sealed","yield","permits"],literal:["false","true","null"],type:["char","boolean","long","float","int","byte","short","double"],built_in:["super","this"]},n0e={className:"meta",begin:"@"+x_,contains:[{begin:/\(/,end:/\)/,contains:["self"]}]},r0e={className:"params",begin:/\(/,end:/\)/,keywords:t0e,relevance:0,contains:[kh.C_BLOCK_COMMENT_MODE],endsParent:!0};return{name:"Java",aliases:["jsp"],keywords:t0e,illegal:/<\/|#/,contains:[kh.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}),{begin:/import java\.[a-z]+\./,keywords:"import",relevance:2},kh.C_LINE_COMMENT_MODE,kh.C_BLOCK_COMMENT_MODE,{begin:/"""/,end:/"""/,className:"string",contains:[kh.BACKSLASH_ESCAPE]},kh.APOS_STRING_MODE,kh.QUOTE_STRING_MODE,{match:[/\b(?:class|interface|enum|extends|implements|new)/,/\s+/,x_],className:{1:"keyword",3:"title.class"}},{match:/non-sealed/,scope:"keyword"},{begin:[Ff.concat(/(?!else)/,x_),/\s+/,x_,/\s+/,/=(?!=)/],className:{1:"type",3:"variable",5:"operator"}},{begin:[/record/,/\s+/,x_],className:{1:"keyword",3:"title.class"},contains:[r0e,kh.C_LINE_COMMENT_MODE,kh.C_BLOCK_COMMENT_MODE]},{beginKeywords:"new throw return else",relevance:0},{begin:["(?:"+B_+"\\s+)",kh.UNDERSCORE_IDENT_RE,/\s*(?=\()/],className:{2:"title.function"},keywords:t0e,contains:[{className:"params",begin:/\(/,end:/\)/,keywords:t0e,relevance:0,contains:[n0e,kh.APOS_STRING_MODE,kh.QUOTE_STRING_MODE,NUMERIC$1,kh.C_BLOCK_COMMENT_MODE]},kh.C_LINE_COMMENT_MODE,kh.C_BLOCK_COMMENT_MODE]},NUMERIC$1,n0e]}}const IDENT_RE$3="[A-Za-z$_][0-9A-Za-z$_]*",KEYWORDS$1=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],LITERALS$1=["true","false","null","undefined","NaN","Infinity"],TYPES$1=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],ERROR_TYPES$1=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],BUILT_IN_GLOBALS$1=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],BUILT_IN_VARIABLES$1=["arguments","this","super","console","window","document","localStorage","module","global"],BUILT_INS$1=[].concat(BUILT_IN_GLOBALS$1,TYPES$1,ERROR_TYPES$1);function javascript$1(kh){const Ff=kh.regex,x_=(P0e,{after:x0e})=>{const L0e="</"+P0e[0].slice(1);return P0e.input.indexOf(L0e,x0e)!==-1},B_=IDENT_RE$3,$_={begin:"<>",end:"</>"},$P=/<[A-Za-z0-9\\._:-]+\s*\/>/,zP={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(P0e,x0e)=>{const L0e=P0e[0].length+P0e.index,C0e=P0e.input[L0e];if(C0e==="<"||C0e===","){x0e.ignoreMatch();return}C0e===">"&&(x_(P0e,{after:L0e})||x0e.ignoreMatch());let D0e;const F0e=P0e.input.substring(L0e);if(D0e=F0e.match(/^\s*=/)){x0e.ignoreMatch();return}if((D0e=F0e.match(/^\s+extends\s+/))&&D0e.index===0){x0e.ignoreMatch();return}}},e0e={$pattern:IDENT_RE$3,keyword:KEYWORDS$1,literal:LITERALS$1,built_in:BUILT_INS$1,"variable.language":BUILT_IN_VARIABLES$1},t0e="[0-9](_?[0-9])*",n0e=`\\.(${t0e})`,r0e="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",i0e={className:"number",variants:[{begin:`(\\b(${r0e})((${n0e})|\\.)?|(${n0e}))[eE][+-]?(${t0e})\\b`},{begin:`\\b(${r0e})\\b((${n0e})\\b|\\.)?|(${n0e})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},o0e={className:"subst",begin:"\\$\\{",end:"\\}",keywords:e0e,contains:[]},s0e={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[kh.BACKSLASH_ESCAPE,o0e],subLanguage:"xml"}},c0e={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[kh.BACKSLASH_ESCAPE,o0e],subLanguage:"css"}},d0e={className:"string",begin:"`",end:"`",contains:[kh.BACKSLASH_ESCAPE,o0e]},l0e={className:"comment",variants:[kh.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:B_+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),kh.C_BLOCK_COMMENT_MODE,kh.C_LINE_COMMENT_MODE]},u0e=[kh.APOS_STRING_MODE,kh.QUOTE_STRING_MODE,s0e,c0e,d0e,{match:/\$\d+/},i0e];o0e.contains=u0e.concat({begin:/\{/,end:/\}/,keywords:e0e,contains:["self"].concat(u0e)});const h0e=[].concat(l0e,o0e.contains),f0e=h0e.concat([{begin:/\(/,end:/\)/,keywords:e0e,contains:["self"].concat(h0e)}]),p0e={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:e0e,contains:f0e},g0e={variants:[{match:[/class/,/\s+/,B_,/\s+/,/extends/,/\s+/,Ff.concat(B_,"(",Ff.concat(/\./,B_),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,B_],scope:{1:"keyword",3:"title.class"}}]},y0e={relevance:0,match:Ff.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...TYPES$1,...ERROR_TYPES$1]}},m0e={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},v0e={variants:[{match:[/function/,/\s+/,B_,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[p0e],illegal:/%/},b0e={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function E0e(P0e){return Ff.concat("(?!",P0e.join("|"),")")}const w0e={match:Ff.concat(/\b/,E0e([...BUILT_IN_GLOBALS$1,"super","import"]),B_,Ff.lookahead(/\(/)),className:"title.function",relevance:0},O0e={begin:Ff.concat(/\./,Ff.lookahead(Ff.concat(B_,/(?![0-9A-Za-z$_(])/))),end:B_,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},T0e={match:[/get|set/,/\s+/,B_,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},p0e]},B0e="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+kh.UNDERSCORE_IDENT_RE+")\\s*=>",N0e={match:[/const|var|let/,/\s+/,B_,/\s*/,/=\s*/,/(async\s*)?/,Ff.lookahead(B0e)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[p0e]};return{name:"Javascript",aliases:["js","jsx","mjs","cjs"],keywords:e0e,exports:{PARAMS_CONTAINS:f0e,CLASS_REFERENCE:y0e},illegal:/#(?![$_A-z])/,contains:[kh.SHEBANG({label:"shebang",binary:"node",relevance:5}),m0e,kh.APOS_STRING_MODE,kh.QUOTE_STRING_MODE,s0e,c0e,d0e,l0e,{match:/\$\d+/},i0e,y0e,{className:"attr",begin:B_+Ff.lookahead(":"),relevance:0},N0e,{begin:"("+kh.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[l0e,kh.REGEXP_MODE,{className:"function",begin:B0e,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:kh.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:e0e,contains:f0e}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:$_.begin,end:$_.end},{match:$P},{begin:zP.begin,"on:begin":zP.isTrulyOpeningTag,end:zP.end}],subLanguage:"xml",contains:[{begin:zP.begin,end:zP.end,skip:!0,contains:["self"]}]}]},v0e,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+kh.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[p0e,kh.inherit(kh.TITLE_MODE,{begin:B_,className:"title.function"})]},{match:/\.\.\./,relevance:0},O0e,{match:"\\$"+B_,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[p0e]},w0e,b0e,g0e,T0e,{match:/\$[(.]/}]}}function json(kh){const Ff={className:"attr",begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/,relevance:1.01},x_={match:/[{}[\],:]/,className:"punctuation",relevance:0},B_=["true","false","null"],$_={scope:"literal",beginKeywords:B_.join(" ")};return{name:"JSON",keywords:{literal:B_},contains:[Ff,x_,kh.QUOTE_STRING_MODE,$_,kh.C_NUMBER_MODE,kh.C_LINE_COMMENT_MODE,kh.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}var decimalDigits="[0-9](_*[0-9])*",frac=`\\.(${decimalDigits})`,hexDigits="[0-9a-fA-F](_*[0-9a-fA-F])*",NUMERIC={className:"number",variants:[{begin:`(\\b(${decimalDigits})((${frac})|\\.)?|(${frac}))[eE][+-]?(${decimalDigits})[fFdD]?\\b`},{begin:`\\b(${decimalDigits})((${frac})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${frac})[fFdD]?\\b`},{begin:`\\b(${decimalDigits})[fFdD]\\b`},{begin:`\\b0[xX]((${hexDigits})\\.?|(${hexDigits})?\\.(${hexDigits}))[pP][+-]?(${decimalDigits})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${hexDigits})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function kotlin(kh){const Ff={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"},x_={className:"keyword",begin:/\b(break|continue|return|this)\b/,starts:{contains:[{className:"symbol",begin:/@\w+/}]}},B_={className:"symbol",begin:kh.UNDERSCORE_IDENT_RE+"@"},$_={className:"subst",begin:/\$\{/,end:/\}/,contains:[kh.C_NUMBER_MODE]},$P={className:"variable",begin:"\\$"+kh.UNDERSCORE_IDENT_RE},zP={className:"string",variants:[{begin:'"""',end:'"""(?=[^"])',contains:[$P,$_]},{begin:"'",end:"'",illegal:/\n/,contains:[kh.BACKSLASH_ESCAPE]},{begin:'"',end:'"',illegal:/\n/,contains:[kh.BACKSLASH_ESCAPE,$P,$_]}]};$_.contains.push(zP);const e0e={className:"meta",begin:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+kh.UNDERSCORE_IDENT_RE+")?"},t0e={className:"meta",begin:"@"+kh.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,end:/\)/,contains:[kh.inherit(zP,{className:"string"}),"self"]}]},n0e=NUMERIC,r0e=kh.COMMENT("/\\*","\\*/",{contains:[kh.C_BLOCK_COMMENT_MODE]}),i0e={variants:[{className:"type",begin:kh.UNDERSCORE_IDENT_RE},{begin:/\(/,end:/\)/,contains:[]}]},o0e=i0e;return o0e.variants[1].contains=[i0e],i0e.variants[1].contains=[o0e],{name:"Kotlin",aliases:["kt","kts"],keywords:Ff,contains:[kh.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),kh.C_LINE_COMMENT_MODE,r0e,x_,B_,e0e,t0e,{className:"function",beginKeywords:"fun",end:"[(]|$",returnBegin:!0,excludeEnd:!0,keywords:Ff,relevance:5,contains:[{begin:kh.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[kh.UNDERSCORE_TITLE_MODE]},{className:"type",begin:/</,end:/>/,keywords:"reified",relevance:0},{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:Ff,relevance:0,contains:[{begin:/:/,end:/[=,\/]/,endsWithParent:!0,contains:[i0e,kh.C_LINE_COMMENT_MODE,r0e],relevance:0},kh.C_LINE_COMMENT_MODE,r0e,e0e,t0e,zP,kh.C_NUMBER_MODE]},r0e]},{begin:[/class|interface|trait/,/\s+/,kh.UNDERSCORE_IDENT_RE],beginScope:{3:"title.class"},keywords:"class interface trait",end:/[:\{(]|$/,excludeEnd:!0,illegal:"extends implements",contains:[{beginKeywords:"public protected internal private constructor"},kh.UNDERSCORE_TITLE_MODE,{className:"type",begin:/</,end:/>/,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:/[,:]\s*/,end:/[<\(,){\s]|$/,excludeBegin:!0,returnEnd:!0},e0e,t0e]},zP,{className:"meta",begin:"^#!/usr/bin/env",end:"$",illegal:`
136
136
  `},n0e]}}const MODES$3=kh=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:kh.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[kh.APOS_STRING_MODE,kh.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:kh.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z][A-Za-z0-9_-]*/}}),TAGS$1=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],MEDIA_FEATURES$1=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"],PSEUDO_CLASSES$1=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"],PSEUDO_ELEMENTS$1=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],ATTRIBUTES$1=["align-content","align-items","align-self","all","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","content-visibility","counter-increment","counter-reset","cue","cue-after","cue-before","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-synthesis","font-variant","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inline-size","isolation","justify-content","left","letter-spacing","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","pause","pause-after","pause-before","perspective","perspective-origin","pointer-events","position","quotes","resize","rest","rest-after","rest-before","right","row-gap","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","speak","speak-as","src","tab-size","table-layout","text-align","text-align-all","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-box","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index"].reverse(),PSEUDO_SELECTORS=PSEUDO_CLASSES$1.concat(PSEUDO_ELEMENTS$1);function less(kh){const Ff=MODES$3(kh),x_=PSEUDO_SELECTORS,B_="and or not only",$_="[\\w-]+",$P="("+$_+"|@\\{"+$_+"\\})",zP=[],e0e=[],t0e=function(h0e){return{className:"string",begin:"~?"+h0e+".*?"+h0e}},n0e=function(h0e,f0e,p0e){return{className:h0e,begin:f0e,relevance:p0e}},r0e={$pattern:/[a-z-]+/,keyword:B_,attribute:MEDIA_FEATURES$1.join(" ")},i0e={begin:"\\(",end:"\\)",contains:e0e,keywords:r0e,relevance:0};e0e.push(kh.C_LINE_COMMENT_MODE,kh.C_BLOCK_COMMENT_MODE,t0e("'"),t0e('"'),Ff.CSS_NUMBER_MODE,{begin:"(url|data-uri)\\(",starts:{className:"string",end:"[\\)\\n]",excludeEnd:!0}},Ff.HEXCOLOR,i0e,n0e("variable","@@?"+$_,10),n0e("variable","@\\{"+$_+"\\}"),n0e("built_in","~?`[^`]*?`"),{className:"attribute",begin:$_+"\\s*:",end:":",returnBegin:!0,excludeEnd:!0},Ff.IMPORTANT,{beginKeywords:"and not"},Ff.FUNCTION_DISPATCH);const o0e=e0e.concat({begin:/\{/,end:/\}/,contains:zP}),s0e={beginKeywords:"when",endsWithParent:!0,contains:[{beginKeywords:"and not"}].concat(e0e)},c0e={begin:$P+"\\s*:",returnBegin:!0,end:/[;}]/,relevance:0,contains:[{begin:/-(webkit|moz|ms|o)-/},Ff.CSS_VARIABLE,{className:"attribute",begin:"\\b("+ATTRIBUTES$1.join("|")+")\\b",end:/(?=:)/,starts:{endsWithParent:!0,illegal:"[<=$]",relevance:0,contains:e0e}}]},d0e={className:"keyword",begin:"@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b",starts:{end:"[;{}]",keywords:r0e,returnEnd:!0,contains:e0e,relevance:0}},a0e={className:"variable",variants:[{begin:"@"+$_+"\\s*:",relevance:15},{begin:"@"+$_}],starts:{end:"[;}]",returnEnd:!0,contains:o0e}},l0e={variants:[{begin:"[\\.#:&\\[>]",end:"[;{}]"},{begin:$P,end:/\{/}],returnBegin:!0,returnEnd:!0,illegal:`[<='$"]`,relevance:0,contains:[kh.C_LINE_COMMENT_MODE,kh.C_BLOCK_COMMENT_MODE,s0e,n0e("keyword","all\\b"),n0e("variable","@\\{"+$_+"\\}"),{begin:"\\b("+TAGS$1.join("|")+")\\b",className:"selector-tag"},Ff.CSS_NUMBER_MODE,n0e("selector-tag",$P,0),n0e("selector-id","#"+$P),n0e("selector-class","\\."+$P,0),n0e("selector-tag","&",0),Ff.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",begin:":("+PSEUDO_CLASSES$1.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+PSEUDO_ELEMENTS$1.join("|")+")"},{begin:/\(/,end:/\)/,relevance:0,contains:o0e},{begin:"!important"},Ff.FUNCTION_DISPATCH]},u0e={begin:$_+`:(:)?(${x_.join("|")})`,returnBegin:!0,contains:[l0e]};return zP.push(kh.C_LINE_COMMENT_MODE,kh.C_BLOCK_COMMENT_MODE,d0e,a0e,u0e,c0e,l0e,s0e,Ff.FUNCTION_DISPATCH),{name:"Less",case_insensitive:!0,illegal:`[=>'/<($"]`,contains:zP}}function lua(kh){const Ff="\\[=*\\[",x_="\\]=*\\]",B_={begin:Ff,end:x_,contains:["self"]},$_=[kh.COMMENT("--(?!"+Ff+")","$"),kh.COMMENT("--"+Ff,x_,{contains:[B_],relevance:10})];return{name:"Lua",keywords:{$pattern:kh.UNDERSCORE_IDENT_RE,literal:"true false nil",keyword:"and break do else elseif end for goto if in local not or repeat return then until while",built_in:"_G _ENV _VERSION __index __newindex __mode __call __metatable __tostring __len __gc __add __sub __mul __div __mod __pow __concat __unm __eq __lt __le assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall arg self coroutine resume yield status wrap create running debug getupvalue debug sethook getmetatable gethook setmetatable setlocal traceback setfenv getinfo setupvalue getlocal getregistry getfenv io lines write close flush open output type read stderr stdin input stdout popen tmpfile math log max acos huge ldexp pi cos tanh pow deg tan cosh sinh random randomseed frexp ceil floor rad abs sqrt modf asin min mod fmod log10 atan2 exp sin atan os exit setlocale date getenv difftime remove time clock tmpname rename execute package preload loadlib loaded loaders cpath config path seeall string sub upper len gfind rep find match char dump gmatch reverse byte format gsub lower table setn insert getn foreachi maxn foreach concat sort remove"},contains:$_.concat([{className:"function",beginKeywords:"function",end:"\\)",contains:[kh.inherit(kh.TITLE_MODE,{begin:"([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*"}),{className:"params",begin:"\\(",endsWithParent:!0,contains:$_}].concat($_)},kh.C_NUMBER_MODE,kh.APOS_STRING_MODE,kh.QUOTE_STRING_MODE,{className:"string",begin:Ff,end:x_,contains:[B_],relevance:5}])}}function makefile(kh){const Ff={className:"variable",variants:[{begin:"\\$\\("+kh.UNDERSCORE_IDENT_RE+"\\)",contains:[kh.BACKSLASH_ESCAPE]},{begin:/\$[@%<?\^\+\*]/}]},x_={className:"string",begin:/"/,end:/"/,contains:[kh.BACKSLASH_ESCAPE,Ff]},B_={className:"variable",begin:/\$\([\w-]+\s/,end:/\)/,keywords:{built_in:"subst patsubst strip findstring filter filter-out sort word wordlist firstword lastword dir notdir suffix basename addsuffix addprefix join wildcard realpath abspath error warning shell origin flavor foreach if or and call eval file value"},contains:[Ff]},$_={begin:"^"+kh.UNDERSCORE_IDENT_RE+"\\s*(?=[:+?]?=)"},$P={className:"meta",begin:/^\.PHONY:/,end:/$/,keywords:{$pattern:/[\.\w]+/,keyword:".PHONY"}},zP={className:"section",begin:/^[^\s]+:/,end:/$/,contains:[Ff]};return{name:"Makefile",aliases:["mk","mak","make"],keywords:{$pattern:/[\w-]+/,keyword:"define endef undefine ifdef ifndef ifeq ifneq else endif include -include sinclude override export unexport private vpath"},contains:[kh.HASH_COMMENT_MODE,Ff,x_,B_,$_,$P,zP]}}function markdown(kh){const Ff=kh.regex,x_={begin:/<\/?[A-Za-z_]/,end:">",subLanguage:"xml",relevance:0},B_={begin:"^[-\\*]{3,}",end:"$"},$_={className:"code",variants:[{begin:"(`{3,})[^`](.|\\n)*?\\1`*[ ]*"},{begin:"(~{3,})[^~](.|\\n)*?\\1~*[ ]*"},{begin:"```",end:"```+[ ]*$"},{begin:"~~~",end:"~~~+[ ]*$"},{begin:"`.+?`"},{begin:"(?=^( {4}|\\t))",contains:[{begin:"^( {4}|\\t)",end:"(\\n)$"}],relevance:0}]},$P={className:"bullet",begin:"^[ ]*([*+-]|(\\d+\\.))(?=\\s+)",end:"\\s+",excludeEnd:!0},zP={begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]},e0e=/[A-Za-z][A-Za-z0-9+.-]*/,t0e={variants:[{begin:/\[.+?\]\[.*?\]/,relevance:0},{begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/,relevance:2},{begin:Ff.concat(/\[.+?\]\(/,e0e,/:\/\/.*?\)/),relevance:2},{begin:/\[.+?\]\([./?&#].*?\)/,relevance:1},{begin:/\[.*?\]\(.*?\)/,relevance:0}],returnBegin:!0,contains:[{match:/\[(?=\])/},{className:"string",relevance:0,begin:"\\[",end:"\\]",excludeBegin:!0,returnEnd:!0},{className:"link",relevance:0,begin:"\\]\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0},{className:"symbol",relevance:0,begin:"\\]\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0}]},n0e={className:"strong",contains:[],variants:[{begin:/_{2}(?!\s)/,end:/_{2}/},{begin:/\*{2}(?!\s)/,end:/\*{2}/}]},r0e={className:"emphasis",contains:[],variants:[{begin:/\*(?![*\s])/,end:/\*/},{begin:/_(?![_\s])/,end:/_/,relevance:0}]},i0e=kh.inherit(n0e,{contains:[]}),o0e=kh.inherit(r0e,{contains:[]});n0e.contains.push(o0e),r0e.contains.push(i0e);let s0e=[x_,t0e];return[n0e,r0e,i0e,o0e].forEach(a0e=>{a0e.contains=a0e.contains.concat(s0e)}),s0e=s0e.concat(n0e,r0e),{name:"Markdown",aliases:["md","mkdown","mkd"],contains:[{className:"section",variants:[{begin:"^#{1,6}",end:"$",contains:s0e},{begin:"(?=^.+?\\n[=-]{2,}$)",contains:[{begin:"^[=-]*$"},{begin:"^",end:"\\n",contains:s0e}]}]},x_,$P,n0e,r0e,{className:"quote",begin:"^>\\s+",contains:s0e,end:"$"},$_,B_,t0e,zP]}}function objectivec(kh){const Ff={className:"built_in",begin:"\\b(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)\\w+"},x_=/[a-zA-Z@][a-zA-Z0-9_]*/,e0e={"variable.language":["this","super"],$pattern:x_,keyword:["while","export","sizeof","typedef","const","struct","for","union","volatile","static","mutable","if","do","return","goto","enum","else","break","extern","asm","case","default","register","explicit","typename","switch","continue","inline","readonly","assign","readwrite","self","@synchronized","id","typeof","nonatomic","IBOutlet","IBAction","strong","weak","copy","in","out","inout","bycopy","byref","oneway","__strong","__weak","__block","__autoreleasing","@private","@protected","@public","@try","@property","@end","@throw","@catch","@finally","@autoreleasepool","@synthesize","@dynamic","@selector","@optional","@required","@encode","@package","@import","@defs","@compatibility_alias","__bridge","__bridge_transfer","__bridge_retained","__bridge_retain","__covariant","__contravariant","__kindof","_Nonnull","_Nullable","_Null_unspecified","__FUNCTION__","__PRETTY_FUNCTION__","__attribute__","getter","setter","retain","unsafe_unretained","nonnull","nullable","null_unspecified","null_resettable","class","instancetype","NS_DESIGNATED_INITIALIZER","NS_UNAVAILABLE","NS_REQUIRES_SUPER","NS_RETURNS_INNER_POINTER","NS_INLINE","NS_AVAILABLE","NS_DEPRECATED","NS_ENUM","NS_OPTIONS","NS_SWIFT_UNAVAILABLE","NS_ASSUME_NONNULL_BEGIN","NS_ASSUME_NONNULL_END","NS_REFINED_FOR_SWIFT","NS_SWIFT_NAME","NS_SWIFT_NOTHROW","NS_DURING","NS_HANDLER","NS_ENDHANDLER","NS_VALUERETURN","NS_VOIDRETURN"],literal:["false","true","FALSE","TRUE","nil","YES","NO","NULL"],built_in:["dispatch_once_t","dispatch_queue_t","dispatch_sync","dispatch_async","dispatch_once"],type:["int","float","char","unsigned","signed","short","long","double","wchar_t","unichar","void","bool","BOOL","id|0","_Bool"]},t0e={$pattern:x_,keyword:["@interface","@class","@protocol","@implementation"]};return{name:"Objective-C",aliases:["mm","objc","obj-c","obj-c++","objective-c++"],keywords:e0e,illegal:"</",contains:[Ff,kh.C_LINE_COMMENT_MODE,kh.C_BLOCK_COMMENT_MODE,kh.C_NUMBER_MODE,kh.QUOTE_STRING_MODE,kh.APOS_STRING_MODE,{className:"string",variants:[{begin:'@"',end:'"',illegal:"\\n",contains:[kh.BACKSLASH_ESCAPE]}]},{className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},kh.inherit(kh.QUOTE_STRING_MODE,{className:"string"}),{className:"string",begin:/<.*?>/,end:/$/,illegal:"\\n"},kh.C_LINE_COMMENT_MODE,kh.C_BLOCK_COMMENT_MODE]},{className:"class",begin:"("+t0e.keyword.join("|")+")\\b",end:/(\{|$)/,excludeEnd:!0,keywords:t0e,contains:[kh.UNDERSCORE_TITLE_MODE]},{begin:"\\."+kh.UNDERSCORE_IDENT_RE,relevance:0}]}}function perl(kh){const Ff=kh.regex,x_=["abs","accept","alarm","and","atan2","bind","binmode","bless","break","caller","chdir","chmod","chomp","chop","chown","chr","chroot","close","closedir","connect","continue","cos","crypt","dbmclose","dbmopen","defined","delete","die","do","dump","each","else","elsif","endgrent","endhostent","endnetent","endprotoent","endpwent","endservent","eof","eval","exec","exists","exit","exp","fcntl","fileno","flock","for","foreach","fork","format","formline","getc","getgrent","getgrgid","getgrnam","gethostbyaddr","gethostbyname","gethostent","getlogin","getnetbyaddr","getnetbyname","getnetent","getpeername","getpgrp","getpriority","getprotobyname","getprotobynumber","getprotoent","getpwent","getpwnam","getpwuid","getservbyname","getservbyport","getservent","getsockname","getsockopt","given","glob","gmtime","goto","grep","gt","hex","if","index","int","ioctl","join","keys","kill","last","lc","lcfirst","length","link","listen","local","localtime","log","lstat","lt","ma","map","mkdir","msgctl","msgget","msgrcv","msgsnd","my","ne","next","no","not","oct","open","opendir","or","ord","our","pack","package","pipe","pop","pos","print","printf","prototype","push","q|0","qq","quotemeta","qw","qx","rand","read","readdir","readline","readlink","readpipe","recv","redo","ref","rename","require","reset","return","reverse","rewinddir","rindex","rmdir","say","scalar","seek","seekdir","select","semctl","semget","semop","send","setgrent","sethostent","setnetent","setpgrp","setpriority","setprotoent","setpwent","setservent","setsockopt","shift","shmctl","shmget","shmread","shmwrite","shutdown","sin","sleep","socket","socketpair","sort","splice","split","sprintf","sqrt","srand","stat","state","study","sub","substr","symlink","syscall","sysopen","sysread","sysseek","system","syswrite","tell","telldir","tie","tied","time","times","tr","truncate","uc","ucfirst","umask","undef","unless","unlink","unpack","unshift","untie","until","use","utime","values","vec","wait","waitpid","wantarray","warn","when","while","write","x|0","xor","y|0"],B_=/[dualxmsipngr]{0,12}/,$_={$pattern:/[\w.]+/,keyword:x_.join(" ")},$P={className:"subst",begin:"[$@]\\{",end:"\\}",keywords:$_},zP={begin:/->\{/,end:/\}/},e0e={variants:[{begin:/\$\d/},{begin:Ff.concat(/[$%@](\^\w\b|#\w+(::\w+)*|\{\w+\}|\w+(::\w*)*)/,"(?![A-Za-z])(?![@$%])")},{begin:/[$%@][^\s\w{]/,relevance:0}]},t0e=[kh.BACKSLASH_ESCAPE,$P,e0e],n0e=[/!/,/\//,/\|/,/\?/,/'/,/"/,/#/],r0e=(s0e,c0e,d0e="\\1")=>{const a0e=d0e==="\\1"?d0e:Ff.concat(d0e,c0e);return Ff.concat(Ff.concat("(?:",s0e,")"),c0e,/(?:\\.|[^\\\/])*?/,a0e,/(?:\\.|[^\\\/])*?/,d0e,B_)},i0e=(s0e,c0e,d0e)=>Ff.concat(Ff.concat("(?:",s0e,")"),c0e,/(?:\\.|[^\\\/])*?/,d0e,B_),o0e=[e0e,kh.HASH_COMMENT_MODE,kh.COMMENT(/^=\w/,/=cut/,{endsWithParent:!0}),zP,{className:"string",contains:t0e,variants:[{begin:"q[qwxr]?\\s*\\(",end:"\\)",relevance:5},{begin:"q[qwxr]?\\s*\\[",end:"\\]",relevance:5},{begin:"q[qwxr]?\\s*\\{",end:"\\}",relevance:5},{begin:"q[qwxr]?\\s*\\|",end:"\\|",relevance:5},{begin:"q[qwxr]?\\s*<",end:">",relevance:5},{begin:"qw\\s+q",end:"q",relevance:5},{begin:"'",end:"'",contains:[kh.BACKSLASH_ESCAPE]},{begin:'"',end:'"'},{begin:"`",end:"`",contains:[kh.BACKSLASH_ESCAPE]},{begin:/\{\w+\}/,relevance:0},{begin:"-?\\w+\\s*=>",relevance:0}]},{className:"number",begin:"(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b",relevance:0},{begin:"(\\/\\/|"+kh.RE_STARTERS_RE+"|\\b(split|return|print|reverse|grep)\\b)\\s*",keywords:"split return print reverse grep",relevance:0,contains:[kh.HASH_COMMENT_MODE,{className:"regexp",variants:[{begin:r0e("s|tr|y",Ff.either(...n0e,{capture:!0}))},{begin:r0e("s|tr|y","\\(","\\)")},{begin:r0e("s|tr|y","\\[","\\]")},{begin:r0e("s|tr|y","\\{","\\}")}],relevance:2},{className:"regexp",variants:[{begin:/(m|qr)\/\//,relevance:0},{begin:i0e("(?:m|qr)?",/\//,/\//)},{begin:i0e("m|qr",Ff.either(...n0e,{capture:!0}),/\1/)},{begin:i0e("m|qr",/\(/,/\)/)},{begin:i0e("m|qr",/\[/,/\]/)},{begin:i0e("m|qr",/\{/,/\}/)}]}]},{className:"function",beginKeywords:"sub",end:"(\\s*\\(.*?\\))?[;{]",excludeEnd:!0,relevance:5,contains:[kh.TITLE_MODE]},{begin:"-\\w\\b",relevance:0},{begin:"^__DATA__$",end:"^__END__$",subLanguage:"mojolicious",contains:[{begin:"^@@.*",end:"$",className:"comment"}]}];return $P.contains=o0e,zP.contains=o0e,{name:"Perl",aliases:["pl","pm"],keywords:$_,contains:o0e}}function php(kh){const Ff=kh.regex,x_=/(?![A-Za-z0-9])(?![$])/,B_=Ff.concat(/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/,x_),$_=Ff.concat(/(\\?[A-Z][a-z0-9_\x7f-\xff]+|\\?[A-Z]+(?=[A-Z][a-z0-9_\x7f-\xff])){1,}/,x_),$P={scope:"variable",match:"\\$+"+B_},zP={scope:"meta",variants:[{begin:/<\?php/,relevance:10},{begin:/<\?=/},{begin:/<\?/,relevance:.1},{begin:/\?>/}]},e0e={scope:"subst",variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]},t0e=kh.inherit(kh.APOS_STRING_MODE,{illegal:null}),n0e=kh.inherit(kh.QUOTE_STRING_MODE,{illegal:null,contains:kh.QUOTE_STRING_MODE.contains.concat(e0e)}),r0e=kh.END_SAME_AS_BEGIN({begin:/<<<[ \t]*(\w+)\n/,end:/[ \t]*(\w+)\b/,contains:kh.QUOTE_STRING_MODE.contains.concat(e0e)}),i0e=`[
137
137
  ]`,o0e={scope:"string",variants:[n0e,t0e,r0e]},s0e={scope:"number",variants:[{begin:"\\b0[bB][01]+(?:_[01]+)*\\b"},{begin:"\\b0[oO][0-7]+(?:_[0-7]+)*\\b"},{begin:"\\b0[xX][\\da-fA-F]+(?:_[\\da-fA-F]+)*\\b"},{begin:"(?:\\b\\d+(?:_\\d+)*(\\.(?:\\d+(?:_\\d+)*))?|\\B\\.\\d+)(?:[eE][+-]?\\d+)?"}],relevance:0},c0e=["false","null","true"],d0e=["__CLASS__","__DIR__","__FILE__","__FUNCTION__","__COMPILER_HALT_OFFSET__","__LINE__","__METHOD__","__NAMESPACE__","__TRAIT__","die","echo","exit","include","include_once","print","require","require_once","array","abstract","and","as","binary","bool","boolean","break","callable","case","catch","class","clone","const","continue","declare","default","do","double","else","elseif","empty","enddeclare","endfor","endforeach","endif","endswitch","endwhile","enum","eval","extends","final","finally","float","for","foreach","from","global","goto","if","implements","instanceof","insteadof","int","integer","interface","isset","iterable","list","match|0","mixed","new","never","object","or","private","protected","public","readonly","real","return","string","switch","throw","trait","try","unset","use","var","void","while","xor","yield"],a0e=["Error|0","AppendIterator","ArgumentCountError","ArithmeticError","ArrayIterator","ArrayObject","AssertionError","BadFunctionCallException","BadMethodCallException","CachingIterator","CallbackFilterIterator","CompileError","Countable","DirectoryIterator","DivisionByZeroError","DomainException","EmptyIterator","ErrorException","Exception","FilesystemIterator","FilterIterator","GlobIterator","InfiniteIterator","InvalidArgumentException","IteratorIterator","LengthException","LimitIterator","LogicException","MultipleIterator","NoRewindIterator","OutOfBoundsException","OutOfRangeException","OuterIterator","OverflowException","ParentIterator","ParseError","RangeException","RecursiveArrayIterator","RecursiveCachingIterator","RecursiveCallbackFilterIterator","RecursiveDirectoryIterator","RecursiveFilterIterator","RecursiveIterator","RecursiveIteratorIterator","RecursiveRegexIterator","RecursiveTreeIterator","RegexIterator","RuntimeException","SeekableIterator","SplDoublyLinkedList","SplFileInfo","SplFileObject","SplFixedArray","SplHeap","SplMaxHeap","SplMinHeap","SplObjectStorage","SplObserver","SplPriorityQueue","SplQueue","SplStack","SplSubject","SplTempFileObject","TypeError","UnderflowException","UnexpectedValueException","UnhandledMatchError","ArrayAccess","BackedEnum","Closure","Fiber","Generator","Iterator","IteratorAggregate","Serializable","Stringable","Throwable","Traversable","UnitEnum","WeakReference","WeakMap","Directory","__PHP_Incomplete_Class","parent","php_user_filter","self","static","stdClass"],u0e={keyword:d0e,literal:(w0e=>{const O0e=[];return w0e.forEach(T0e=>{O0e.push(T0e),T0e.toLowerCase()===T0e?O0e.push(T0e.toUpperCase()):O0e.push(T0e.toLowerCase())}),O0e})(c0e),built_in:a0e},h0e=w0e=>w0e.map(O0e=>O0e.replace(/\|\d+$/,"")),f0e={variants:[{match:[/new/,Ff.concat(i0e,"+"),Ff.concat("(?!",h0e(a0e).join("\\b|"),"\\b)"),$_],scope:{1:"keyword",4:"title.class"}}]},p0e=Ff.concat(B_,"\\b(?!\\()"),g0e={variants:[{match:[Ff.concat(/::/,Ff.lookahead(/(?!class\b)/)),p0e],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[$_,Ff.concat(/::/,Ff.lookahead(/(?!class\b)/)),p0e],scope:{1:"title.class",3:"variable.constant"}},{match:[$_,Ff.concat("::",Ff.lookahead(/(?!class\b)/))],scope:{1:"title.class"}},{match:[$_,/::/,/class/],scope:{1:"title.class",3:"variable.language"}}]},y0e={scope:"attr",match:Ff.concat(B_,Ff.lookahead(":"),Ff.lookahead(/(?!::)/))},m0e={relevance:0,begin:/\(/,end:/\)/,keywords:u0e,contains:[y0e,$P,g0e,kh.C_BLOCK_COMMENT_MODE,o0e,s0e,f0e]},v0e={relevance:0,match:[/\b/,Ff.concat("(?!fn\\b|function\\b|",h0e(d0e).join("\\b|"),"|",h0e(a0e).join("\\b|"),"\\b)"),B_,Ff.concat(i0e,"*"),Ff.lookahead(/(?=\()/)],scope:{3:"title.function.invoke"},contains:[m0e]};m0e.contains.push(v0e);const b0e=[y0e,g0e,kh.C_BLOCK_COMMENT_MODE,o0e,s0e,f0e],E0e={begin:Ff.concat(/#\[\s*/,$_),beginScope:"meta",end:/]/,endScope:"meta",keywords:{literal:c0e,keyword:["new","array"]},contains:[{begin:/\[/,end:/]/,keywords:{literal:c0e,keyword:["new","array"]},contains:["self",...b0e]},...b0e,{scope:"meta",match:$_}]};return{case_insensitive:!1,keywords:u0e,contains:[E0e,kh.HASH_COMMENT_MODE,kh.COMMENT("//","$"),kh.COMMENT("/\\*","\\*/",{contains:[{scope:"doctag",match:"@[A-Za-z]+"}]}),{match:/__halt_compiler\(\);/,keywords:"__halt_compiler",starts:{scope:"comment",end:kh.MATCH_NOTHING_RE,contains:[{match:/\?>/,scope:"meta",endsParent:!0}]}},zP,{scope:"variable.language",match:/\$this\b/},$P,v0e,g0e,{match:[/const/,/\s/,B_],scope:{1:"keyword",3:"variable.constant"}},f0e,{scope:"function",relevance:0,beginKeywords:"fn function",end:/[;{]/,excludeEnd:!0,illegal:"[$%\\[]",contains:[{beginKeywords:"use"},kh.UNDERSCORE_TITLE_MODE,{begin:"=>",endsParent:!0},{scope:"params",begin:"\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0,keywords:u0e,contains:["self",$P,g0e,kh.C_BLOCK_COMMENT_MODE,o0e,s0e]}]},{scope:"class",variants:[{beginKeywords:"enum",illegal:/[($"]/},{beginKeywords:"class interface trait",illegal:/[:($"]/}],relevance:0,end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},kh.UNDERSCORE_TITLE_MODE]},{beginKeywords:"namespace",relevance:0,end:";",illegal:/[.']/,contains:[kh.inherit(kh.UNDERSCORE_TITLE_MODE,{scope:"title.class"})]},{beginKeywords:"use",relevance:0,end:";",contains:[{match:/\b(as|const|function)\b/,scope:"keyword"},kh.UNDERSCORE_TITLE_MODE]},o0e,s0e]}}function phpTemplate(kh){return{name:"PHP template",subLanguage:"xml",contains:[{begin:/<\?(php|=)?/,end:/\?>/,subLanguage:"php",contains:[{begin:"/\\*",end:"\\*/",skip:!0},{begin:'b"',end:'"',skip:!0},{begin:"b'",end:"'",skip:!0},kh.inherit(kh.APOS_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0}),kh.inherit(kh.QUOTE_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0})]}]}}function plaintext(kh){return{name:"Plain text",aliases:["text","txt"],disableAutodetect:!0}}function python(kh){const Ff=kh.regex,x_=new RegExp("[\\p{XID_Start}_]\\p{XID_Continue}*","u"),B_=["and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","match","nonlocal|10","not","or","pass","raise","return","try","while","with","yield"],e0e={$pattern:/[A-Za-z]\w+|__\w+__/,keyword:B_,built_in:["__import__","abs","all","any","ascii","bin","bool","breakpoint","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip"],literal:["__debug__","Ellipsis","False","None","NotImplemented","True"],type:["Any","Callable","Coroutine","Dict","List","Literal","Generic","Optional","Sequence","Set","Tuple","Type","Union"]},t0e={className:"meta",begin:/^(>>>|\.\.\.) /},n0e={className:"subst",begin:/\{/,end:/\}/,keywords:e0e,illegal:/#/},r0e={begin:/\{\{/,relevance:0},i0e={className:"string",contains:[kh.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[kh.BACKSLASH_ESCAPE,t0e],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[kh.BACKSLASH_ESCAPE,t0e],relevance:10},{begin:/([fF][rR]|[rR][fF]|[fF])'''/,end:/'''/,contains:[kh.BACKSLASH_ESCAPE,t0e,r0e,n0e]},{begin:/([fF][rR]|[rR][fF]|[fF])"""/,end:/"""/,contains:[kh.BACKSLASH_ESCAPE,t0e,r0e,n0e]},{begin:/([uU]|[rR])'/,end:/'/,relevance:10},{begin:/([uU]|[rR])"/,end:/"/,relevance:10},{begin:/([bB]|[bB][rR]|[rR][bB])'/,end:/'/},{begin:/([bB]|[bB][rR]|[rR][bB])"/,end:/"/},{begin:/([fF][rR]|[rR][fF]|[fF])'/,end:/'/,contains:[kh.BACKSLASH_ESCAPE,r0e,n0e]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/,contains:[kh.BACKSLASH_ESCAPE,r0e,n0e]},kh.APOS_STRING_MODE,kh.QUOTE_STRING_MODE]},o0e="[0-9](_?[0-9])*",s0e=`(\\b(${o0e}))?\\.(${o0e})|\\b(${o0e})\\.`,c0e=`\\b|${B_.join("|")}`,d0e={className:"number",relevance:0,variants:[{begin:`(\\b(${o0e})|(${s0e}))[eE][+-]?(${o0e})[jJ]?(?=${c0e})`},{begin:`(${s0e})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${c0e})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${c0e})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${c0e})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${c0e})`},{begin:`\\b(${o0e})[jJ](?=${c0e})`}]},a0e={className:"comment",begin:Ff.lookahead(/# type:/),end:/$/,keywords:e0e,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},l0e={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:e0e,contains:["self",t0e,d0e,i0e,kh.HASH_COMMENT_MODE]}]};return n0e.contains=[i0e,d0e,t0e],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:e0e,illegal:/(<\/|->|\?)|=>/,contains:[t0e,d0e,{begin:/\bself\b/},{beginKeywords:"if",relevance:0},i0e,a0e,kh.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,x_],scope:{1:"keyword",3:"title.function"},contains:[l0e]},{variants:[{match:[/\bclass/,/\s+/,x_,/\s*/,/\(\s*/,x_,/\s*\)/]},{match:[/\bclass/,/\s+/,x_]}],scope:{1:"keyword",3:"title.class",6:"title.class.inherited"}},{className:"meta",begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[d0e,l0e,i0e]}]}}function pythonRepl(kh){return{aliases:["pycon"],contains:[{className:"meta.prompt",starts:{end:/ |$/,starts:{end:"$",subLanguage:"python"}},variants:[{begin:/^>>>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}function r$2(kh){const Ff=kh.regex,x_=/(?:(?:[a-zA-Z]|\.[._a-zA-Z])[._a-zA-Z0-9]*)|\.(?!\d)/,B_=Ff.either(/0[xX][0-9a-fA-F]+\.[0-9a-fA-F]*[pP][+-]?\d+i?/,/0[xX][0-9a-fA-F]+(?:[pP][+-]?\d+)?[Li]?/,/(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?[Li]?/),$_=/[=!<>:]=|\|\||&&|:::?|<-|<<-|->>|->|\|>|[-+*\/?!$&|:<=>@^~]|\*\*/,$P=Ff.either(/[()]/,/[{}]/,/\[\[/,/[[\]]/,/\\/,/,/);return{name:"R",keywords:{$pattern:x_,keyword:"function if in break next repeat else for while",literal:"NULL NA TRUE FALSE Inf NaN NA_integer_|10 NA_real_|10 NA_character_|10 NA_complex_|10",built_in:"LETTERS letters month.abb month.name pi T F abs acos acosh all any anyNA Arg as.call as.character as.complex as.double as.environment as.integer as.logical as.null.default as.numeric as.raw asin asinh atan atanh attr attributes baseenv browser c call ceiling class Conj cos cosh cospi cummax cummin cumprod cumsum digamma dim dimnames emptyenv exp expression floor forceAndCall gamma gc.time globalenv Im interactive invisible is.array is.atomic is.call is.character is.complex is.double is.environment is.expression is.finite is.function is.infinite is.integer is.language is.list is.logical is.matrix is.na is.name is.nan is.null is.numeric is.object is.pairlist is.raw is.recursive is.single is.symbol lazyLoadDBfetch length lgamma list log max min missing Mod names nargs nzchar oldClass on.exit pos.to.env proc.time prod quote range Re rep retracemem return round seq_along seq_len seq.int sign signif sin sinh sinpi sqrt standardGeneric substitute sum switch tan tanh tanpi tracemem trigamma trunc unclass untracemem UseMethod xtfrm"},contains:[kh.COMMENT(/#'/,/$/,{contains:[{scope:"doctag",match:/@examples/,starts:{end:Ff.lookahead(Ff.either(/\n^#'\s*(?=@[a-zA-Z]+)/,/\n^(?!#')/)),endsParent:!0}},{scope:"doctag",begin:"@param",end:/$/,contains:[{scope:"variable",variants:[{match:x_},{match:/`(?:\\.|[^`\\])+`/}],endsParent:!0}]},{scope:"doctag",match:/@[a-zA-Z]+/},{scope:"keyword",match:/\\[a-zA-Z]+/}]}),kh.HASH_COMMENT_MODE,{scope:"string",contains:[kh.BACKSLASH_ESCAPE],variants:[kh.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\(/,end:/\)(-*)"/}),kh.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\{/,end:/\}(-*)"/}),kh.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\[/,end:/\](-*)"/}),kh.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\(/,end:/\)(-*)'/}),kh.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\{/,end:/\}(-*)'/}),kh.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\[/,end:/\](-*)'/}),{begin:'"',end:'"',relevance:0},{begin:"'",end:"'",relevance:0}]},{relevance:0,variants:[{scope:{1:"operator",2:"number"},match:[$_,B_]},{scope:{1:"operator",2:"number"},match:[/%[^%]*%/,B_]},{scope:{1:"punctuation",2:"number"},match:[$P,B_]},{scope:{2:"number"},match:[/[^a-zA-Z0-9._]|^/,B_]}]},{scope:{3:"operator"},match:[x_,/\s+/,/<-/,/\s+/]},{scope:"operator",relevance:0,variants:[{match:$_},{match:/%[^%]*%/}]},{scope:"punctuation",relevance:0,match:$P},{begin:"`",end:"`",contains:[{begin:/\\./}]}]}}function ruby(kh){const Ff=kh.regex,x_="([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)",B_=Ff.either(/\b([A-Z]+[a-z0-9]+)+/,/\b([A-Z]+[a-z0-9]+)+[A-Z]+/),$_=Ff.concat(B_,/(::\w+)*/),zP={"variable.constant":["__FILE__","__LINE__","__ENCODING__"],"variable.language":["self","super"],keyword:["alias","and","begin","BEGIN","break","case","class","defined","do","else","elsif","end","END","ensure","for","if","in","module","next","not","or","redo","require","rescue","retry","return","then","undef","unless","until","when","while","yield",...["include","extend","prepend","public","private","protected","raise","throw"]],built_in:["proc","lambda","attr_accessor","attr_reader","attr_writer","define_method","private_constant","module_function"],literal:["true","false","nil"]},e0e={className:"doctag",begin:"@[A-Za-z]+"},t0e={begin:"#<",end:">"},n0e=[kh.COMMENT("#","$",{contains:[e0e]}),kh.COMMENT("^=begin","^=end",{contains:[e0e],relevance:10}),kh.COMMENT("^__END__",kh.MATCH_NOTHING_RE)],r0e={className:"subst",begin:/#\{/,end:/\}/,keywords:zP},i0e={className:"string",contains:[kh.BACKSLASH_ESCAPE,r0e],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:/%[qQwWx]?\(/,end:/\)/},{begin:/%[qQwWx]?\[/,end:/\]/},{begin:/%[qQwWx]?\{/,end:/\}/},{begin:/%[qQwWx]?</,end:/>/},{begin:/%[qQwWx]?\//,end:/\//},{begin:/%[qQwWx]?%/,end:/%/},{begin:/%[qQwWx]?-/,end:/-/},{begin:/%[qQwWx]?\|/,end:/\|/},{begin:/\B\?(\\\d{1,3})/},{begin:/\B\?(\\x[A-Fa-f0-9]{1,2})/},{begin:/\B\?(\\u\{?[A-Fa-f0-9]{1,6}\}?)/},{begin:/\B\?(\\M-\\C-|\\M-\\c|\\c\\M-|\\M-|\\C-\\M-)[\x20-\x7e]/},{begin:/\B\?\\(c|C-)[\x20-\x7e]/},{begin:/\B\?\\?\S/},{begin:Ff.concat(/<<[-~]?'?/,Ff.lookahead(/(\w+)(?=\W)[^\n]*\n(?:[^\n]*\n)*?\s*\1\b/)),contains:[kh.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,contains:[kh.BACKSLASH_ESCAPE,r0e]})]}]},o0e="[1-9](_?[0-9])*|0",s0e="[0-9](_?[0-9])*",c0e={className:"number",relevance:0,variants:[{begin:`\\b(${o0e})(\\.(${s0e}))?([eE][+-]?(${s0e})|r)?i?\\b`},{begin:"\\b0[dD][0-9](_?[0-9])*r?i?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*r?i?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*r?i?\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*r?i?\\b"},{begin:"\\b0(_?[0-7])+r?i?\\b"}]},d0e={variants:[{match:/\(\)/},{className:"params",begin:/\(/,end:/(?=\))/,excludeBegin:!0,endsParent:!0,keywords:zP}]},g0e=[i0e,{variants:[{match:[/class\s+/,$_,/\s+<\s+/,$_]},{match:[/\b(class|module)\s+/,$_]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:zP},{match:[/(include|extend)\s+/,$_],scope:{2:"title.class"},keywords:zP},{relevance:0,match:[$_,/\.new[. (]/],scope:{1:"title.class"}},{relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"},{relevance:0,match:B_,scope:"title.class"},{match:[/def/,/\s+/,x_],scope:{1:"keyword",3:"title.function"},contains:[d0e]},{begin:kh.IDENT_RE+"::"},{className:"symbol",begin:kh.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":(?!\\s)",contains:[i0e,{begin:x_}],relevance:0},c0e,{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])"},{className:"params",begin:/\|/,end:/\|/,excludeBegin:!0,excludeEnd:!0,relevance:0,keywords:zP},{begin:"("+kh.RE_STARTERS_RE+"|unless)\\s*",keywords:"unless",contains:[{className:"regexp",contains:[kh.BACKSLASH_ESCAPE,r0e],illegal:/\n/,variants:[{begin:"/",end:"/[a-z]*"},{begin:/%r\{/,end:/\}[a-z]*/},{begin:"%r\\(",end:"\\)[a-z]*"},{begin:"%r!",end:"![a-z]*"},{begin:"%r\\[",end:"\\][a-z]*"}]}].concat(t0e,n0e),relevance:0}].concat(t0e,n0e);r0e.contains=g0e,d0e.contains=g0e;const b0e=[{begin:/^\s*=>/,starts:{end:"$",contains:g0e}},{className:"meta.prompt",begin:"^("+"[>?]>"+"|"+"[\\w#]+\\(\\w+\\):\\d+:\\d+[>*]"+"|"+"(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>"+")(?=[ ])",starts:{end:"$",keywords:zP,contains:g0e}}];return n0e.unshift(t0e),{name:"Ruby",aliases:["rb","gemspec","podspec","thor","irb"],keywords:zP,illegal:/\/\*/,contains:[kh.SHEBANG({binary:"ruby"})].concat(b0e).concat(n0e).concat(g0e)}}function rust(kh){const Ff=kh.regex,x_={className:"title.function.invoke",relevance:0,begin:Ff.concat(/\b/,/(?!let\b)/,kh.IDENT_RE,Ff.lookahead(/\s*\(/))},B_="([ui](8|16|32|64|128|size)|f(32|64))?",$_=["abstract","as","async","await","become","box","break","const","continue","crate","do","dyn","else","enum","extern","false","final","fn","for","if","impl","in","let","loop","macro","match","mod","move","mut","override","priv","pub","ref","return","self","Self","static","struct","super","trait","true","try","type","typeof","unsafe","unsized","use","virtual","where","while","yield"],$P=["true","false","Some","None","Ok","Err"],zP=["drop ","Copy","Send","Sized","Sync","Drop","Fn","FnMut","FnOnce","ToOwned","Clone","Debug","PartialEq","PartialOrd","Eq","Ord","AsRef","AsMut","Into","From","Default","Iterator","Extend","IntoIterator","DoubleEndedIterator","ExactSizeIterator","SliceConcatExt","ToString","assert!","assert_eq!","bitflags!","bytes!","cfg!","col!","concat!","concat_idents!","debug_assert!","debug_assert_eq!","env!","panic!","file!","format!","format_args!","include_bytes!","include_str!","line!","local_data_key!","module_path!","option_env!","print!","println!","select!","stringify!","try!","unimplemented!","unreachable!","vec!","write!","writeln!","macro_rules!","assert_ne!","debug_assert_ne!"],e0e=["i8","i16","i32","i64","i128","isize","u8","u16","u32","u64","u128","usize","f32","f64","str","char","bool","Box","Option","Result","String","Vec"];return{name:"Rust",aliases:["rs"],keywords:{$pattern:kh.IDENT_RE+"!?",type:e0e,keyword:$_,literal:$P,built_in:zP},illegal:"</",contains:[kh.C_LINE_COMMENT_MODE,kh.COMMENT("/\\*","\\*/",{contains:["self"]}),kh.inherit(kh.QUOTE_STRING_MODE,{begin:/b?"/,illegal:null}),{className:"string",variants:[{begin:/b?r(#*)"(.|\n)*?"\1(?!#)/},{begin:/b?'\\?(x\w{2}|u\w{4}|U\w{8}|.)'/}]},{className:"symbol",begin:/'[a-zA-Z_][a-zA-Z0-9_]*/},{className:"number",variants:[{begin:"\\b0b([01_]+)"+B_},{begin:"\\b0o([0-7_]+)"+B_},{begin:"\\b0x([A-Fa-f0-9_]+)"+B_},{begin:"\\b(\\d[\\d_]*(\\.[0-9_]+)?([eE][+-]?[0-9_]+)?)"+B_}],relevance:0},{begin:[/fn/,/\s+/,kh.UNDERSCORE_IDENT_RE],className:{1:"keyword",3:"title.function"}},{className:"meta",begin:"#!?\\[",end:"\\]",contains:[{className:"string",begin:/"/,end:/"/}]},{begin:[/let/,/\s+/,/(?:mut\s+)?/,kh.UNDERSCORE_IDENT_RE],className:{1:"keyword",3:"keyword",4:"variable"}},{begin:[/for/,/\s+/,kh.UNDERSCORE_IDENT_RE,/\s+/,/in/],className:{1:"keyword",3:"variable",5:"keyword"}},{begin:[/type/,/\s+/,kh.UNDERSCORE_IDENT_RE],className:{1:"keyword",3:"title.class"}},{begin:[/(?:trait|enum|struct|union|impl|for)/,/\s+/,kh.UNDERSCORE_IDENT_RE],className:{1:"keyword",3:"title.class"}},{begin:kh.IDENT_RE+"::",keywords:{keyword:"Self",built_in:zP,type:e0e}},{className:"punctuation",begin:"->"},x_]}}const MODES$2=kh=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:kh.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[kh.APOS_STRING_MODE,kh.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:kh.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z][A-Za-z0-9_-]*/}}),TAGS=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],MEDIA_FEATURES=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"],PSEUDO_CLASSES=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"],PSEUDO_ELEMENTS=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],ATTRIBUTES=["align-content","align-items","align-self","all","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","content-visibility","counter-increment","counter-reset","cue","cue-after","cue-before","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-synthesis","font-variant","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inline-size","isolation","justify-content","left","letter-spacing","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","pause","pause-after","pause-before","perspective","perspective-origin","pointer-events","position","quotes","resize","rest","rest-after","rest-before","right","row-gap","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","speak","speak-as","src","tab-size","table-layout","text-align","text-align-all","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-box","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index"].reverse();function scss(kh){const Ff=MODES$2(kh),x_=PSEUDO_ELEMENTS,B_=PSEUDO_CLASSES,$_="@[a-z-]+",$P="and or not only",e0e={className:"variable",begin:"(\\$"+"[a-zA-Z-][a-zA-Z0-9_-]*"+")\\b",relevance:0};return{name:"SCSS",case_insensitive:!0,illegal:"[=/|']",contains:[kh.C_LINE_COMMENT_MODE,kh.C_BLOCK_COMMENT_MODE,Ff.CSS_NUMBER_MODE,{className:"selector-id",begin:"#[A-Za-z0-9_-]+",relevance:0},{className:"selector-class",begin:"\\.[A-Za-z0-9_-]+",relevance:0},Ff.ATTRIBUTE_SELECTOR_MODE,{className:"selector-tag",begin:"\\b("+TAGS.join("|")+")\\b",relevance:0},{className:"selector-pseudo",begin:":("+B_.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+x_.join("|")+")"},e0e,{begin:/\(/,end:/\)/,contains:[Ff.CSS_NUMBER_MODE]},Ff.CSS_VARIABLE,{className:"attribute",begin:"\\b("+ATTRIBUTES.join("|")+")\\b"},{begin:"\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middle|medium|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|list-item|line|line-through|line-edge|lighter|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline|inline-block|inherit|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|horizontal|hidden|help|hand|groove|fixed|ellipsis|e-resize|double|dotted|distribute|distribute-space|distribute-letter|distribute-all-lines|disc|disabled|default|decimal|dashed|crosshair|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|bolder|bold|block|bidi-override|below|baseline|auto|always|all-scroll|absolute|table|table-cell)\\b"},{begin:/:/,end:/[;}{]/,relevance:0,contains:[Ff.BLOCK_COMMENT,e0e,Ff.HEXCOLOR,Ff.CSS_NUMBER_MODE,kh.QUOTE_STRING_MODE,kh.APOS_STRING_MODE,Ff.IMPORTANT,Ff.FUNCTION_DISPATCH]},{begin:"@(page|font-face)",keywords:{$pattern:$_,keyword:"@page @font-face"}},{begin:"@",end:"[{;]",returnBegin:!0,keywords:{$pattern:/[a-z-]+/,keyword:$P,attribute:MEDIA_FEATURES.join(" ")},contains:[{begin:$_,className:"keyword"},{begin:/[a-z-]+(?=:)/,className:"attribute"},e0e,kh.QUOTE_STRING_MODE,kh.APOS_STRING_MODE,Ff.HEXCOLOR,Ff.CSS_NUMBER_MODE]},Ff.FUNCTION_DISPATCH]}}function shell(kh){return{name:"Shell Session",aliases:["console","shellsession"],contains:[{className:"meta.prompt",begin:/^\s{0,3}[/~\w\d[\]()@-]*[>%$#][ ]?/,starts:{end:/[^\\](?=\s*$)/,subLanguage:"bash"}}]}}function sql(kh){const Ff=kh.regex,x_=kh.COMMENT("--","$"),B_={className:"string",variants:[{begin:/'/,end:/'/,contains:[{begin:/''/}]}]},$_={begin:/"/,end:/"/,contains:[{begin:/""/}]},$P=["true","false","unknown"],zP=["double precision","large object","with timezone","without timezone"],e0e=["bigint","binary","blob","boolean","char","character","clob","date","dec","decfloat","decimal","float","int","integer","interval","nchar","nclob","national","numeric","real","row","smallint","time","timestamp","varchar","varying","varbinary"],t0e=["add","asc","collation","desc","final","first","last","view"],n0e=["abs","acos","all","allocate","alter","and","any","are","array","array_agg","array_max_cardinality","as","asensitive","asin","asymmetric","at","atan","atomic","authorization","avg","begin","begin_frame","begin_partition","between","bigint","binary","blob","boolean","both","by","call","called","cardinality","cascaded","case","cast","ceil","ceiling","char","char_length","character","character_length","check","classifier","clob","close","coalesce","collate","collect","column","commit","condition","connect","constraint","contains","convert","copy","corr","corresponding","cos","cosh","count","covar_pop","covar_samp","create","cross","cube","cume_dist","current","current_catalog","current_date","current_default_transform_group","current_path","current_role","current_row","current_schema","current_time","current_timestamp","current_path","current_role","current_transform_group_for_type","current_user","cursor","cycle","date","day","deallocate","dec","decimal","decfloat","declare","default","define","delete","dense_rank","deref","describe","deterministic","disconnect","distinct","double","drop","dynamic","each","element","else","empty","end","end_frame","end_partition","end-exec","equals","escape","every","except","exec","execute","exists","exp","external","extract","false","fetch","filter","first_value","float","floor","for","foreign","frame_row","free","from","full","function","fusion","get","global","grant","group","grouping","groups","having","hold","hour","identity","in","indicator","initial","inner","inout","insensitive","insert","int","integer","intersect","intersection","interval","into","is","join","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","language","large","last_value","lateral","lead","leading","left","like","like_regex","listagg","ln","local","localtime","localtimestamp","log","log10","lower","match","match_number","match_recognize","matches","max","member","merge","method","min","minute","mod","modifies","module","month","multiset","national","natural","nchar","nclob","new","no","none","normalize","not","nth_value","ntile","null","nullif","numeric","octet_length","occurrences_regex","of","offset","old","omit","on","one","only","open","or","order","out","outer","over","overlaps","overlay","parameter","partition","pattern","per","percent","percent_rank","percentile_cont","percentile_disc","period","portion","position","position_regex","power","precedes","precision","prepare","primary","procedure","ptf","range","rank","reads","real","recursive","ref","references","referencing","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","release","result","return","returns","revoke","right","rollback","rollup","row","row_number","rows","running","savepoint","scope","scroll","search","second","seek","select","sensitive","session_user","set","show","similar","sin","sinh","skip","smallint","some","specific","specifictype","sql","sqlexception","sqlstate","sqlwarning","sqrt","start","static","stddev_pop","stddev_samp","submultiset","subset","substring","substring_regex","succeeds","sum","symmetric","system","system_time","system_user","table","tablesample","tan","tanh","then","time","timestamp","timezone_hour","timezone_minute","to","trailing","translate","translate_regex","translation","treat","trigger","trim","trim_array","true","truncate","uescape","union","unique","unknown","unnest","update","upper","user","using","value","values","value_of","var_pop","var_samp","varbinary","varchar","varying","versioning","when","whenever","where","width_bucket","window","with","within","without","year"],r0e=["abs","acos","array_agg","asin","atan","avg","cast","ceil","ceiling","coalesce","corr","cos","cosh","count","covar_pop","covar_samp","cume_dist","dense_rank","deref","element","exp","extract","first_value","floor","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","last_value","lead","listagg","ln","log","log10","lower","max","min","mod","nth_value","ntile","nullif","percent_rank","percentile_cont","percentile_disc","position","position_regex","power","rank","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","row_number","sin","sinh","sqrt","stddev_pop","stddev_samp","substring","substring_regex","sum","tan","tanh","translate","translate_regex","treat","trim","trim_array","unnest","upper","value_of","var_pop","var_samp","width_bucket"],i0e=["current_catalog","current_date","current_default_transform_group","current_path","current_role","current_schema","current_transform_group_for_type","current_user","session_user","system_time","system_user","current_time","localtime","current_timestamp","localtimestamp"],o0e=["create table","insert into","primary key","foreign key","not null","alter table","add constraint","grouping sets","on overflow","character set","respect nulls","ignore nulls","nulls first","nulls last","depth first","breadth first"],s0e=r0e,c0e=[...n0e,...t0e].filter(h0e=>!r0e.includes(h0e)),d0e={className:"variable",begin:/@[a-z0-9]+/},a0e={className:"operator",begin:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0},l0e={begin:Ff.concat(/\b/,Ff.either(...s0e),/\s*\(/),relevance:0,keywords:{built_in:s0e}};function u0e(h0e,{exceptions:f0e,when:p0e}={}){const g0e=p0e;return f0e=f0e||[],h0e.map(y0e=>y0e.match(/\|\d+$/)||f0e.includes(y0e)?y0e:g0e(y0e)?`${y0e}|0`:y0e)}return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:u0e(c0e,{when:h0e=>h0e.length<3}),literal:$P,type:e0e,built_in:i0e},contains:[{begin:Ff.either(...o0e),relevance:0,keywords:{$pattern:/[\w\.]+/,keyword:c0e.concat(o0e),literal:$P,type:e0e}},{className:"type",begin:Ff.either(...zP)},l0e,d0e,B_,$_,kh.C_NUMBER_MODE,kh.C_BLOCK_COMMENT_MODE,x_,a0e]}}function source$2(kh){return kh?typeof kh=="string"?kh:kh.source:null}function lookahead$2(kh){return concat$2("(?=",kh,")")}function concat$2(...kh){return kh.map(x_=>source$2(x_)).join("")}function stripOptionsFromArgs$2(kh){const Ff=kh[kh.length-1];return typeof Ff=="object"&&Ff.constructor===Object?(kh.splice(kh.length-1,1),Ff):{}}function either$2(...kh){return"("+(stripOptionsFromArgs$2(kh).capture?"":"?:")+kh.map(B_=>source$2(B_)).join("|")+")"}const keywordWrapper=kh=>concat$2(/\b/,kh,/\w$/.test(kh)?/\b/:/\B/),dotKeywords=["Protocol","Type"].map(keywordWrapper),optionalDotKeywords=["init","self"].map(keywordWrapper),keywordTypes=["Any","Self"],keywords=["actor","any","associatedtype","async","await",/as\?/,/as!/,"as","break","case","catch","class","continue","convenience","default","defer","deinit","didSet","distributed","do","dynamic","else","enum","extension","fallthrough",/fileprivate\(set\)/,"fileprivate","final","for","func","get","guard","if","import","indirect","infix",/init\?/,/init!/,"inout",/internal\(set\)/,"internal","in","is","isolated","nonisolated","lazy","let","mutating","nonmutating",/open\(set\)/,"open","operator","optional","override","postfix","precedencegroup","prefix",/private\(set\)/,"private","protocol",/public\(set\)/,"public","repeat","required","rethrows","return","set","some","static","struct","subscript","super","switch","throws","throw",/try\?/,/try!/,"try","typealias",/unowned\(safe\)/,/unowned\(unsafe\)/,"unowned","var","weak","where","while","willSet"],literals=["false","nil","true"],precedencegroupKeywords=["assignment","associativity","higherThan","left","lowerThan","none","right"],numberSignKeywords=["#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warn_unqualified_access","#warning"],builtIns=["abs","all","any","assert","assertionFailure","debugPrint","dump","fatalError","getVaList","isKnownUniquelyReferenced","max","min","numericCast","pointwiseMax","pointwiseMin","precondition","preconditionFailure","print","readLine","repeatElement","sequence","stride","swap","swift_unboxFromSwiftValueWithType","transcode","type","unsafeBitCast","unsafeDowncast","withExtendedLifetime","withUnsafeMutablePointer","withUnsafePointer","withVaList","withoutActuallyEscaping","zip"],operatorHead=either$2(/[/=\-+!*%<>&|^~?]/,/[\u00A1-\u00A7]/,/[\u00A9\u00AB]/,/[\u00AC\u00AE]/,/[\u00B0\u00B1]/,/[\u00B6\u00BB\u00BF\u00D7\u00F7]/,/[\u2016-\u2017]/,/[\u2020-\u2027]/,/[\u2030-\u203E]/,/[\u2041-\u2053]/,/[\u2055-\u205E]/,/[\u2190-\u23FF]/,/[\u2500-\u2775]/,/[\u2794-\u2BFF]/,/[\u2E00-\u2E7F]/,/[\u3001-\u3003]/,/[\u3008-\u3020]/,/[\u3030]/),operatorCharacter=either$2(operatorHead,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),operator=concat$2(operatorHead,operatorCharacter,"*"),identifierHead=either$2(/[a-zA-Z_]/,/[\u00A8\u00AA\u00AD\u00AF\u00B2-\u00B5\u00B7-\u00BA]/,/[\u00BC-\u00BE\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF]/,/[\u0100-\u02FF\u0370-\u167F\u1681-\u180D\u180F-\u1DBF]/,/[\u1E00-\u1FFF]/,/[\u200B-\u200D\u202A-\u202E\u203F-\u2040\u2054\u2060-\u206F]/,/[\u2070-\u20CF\u2100-\u218F\u2460-\u24FF\u2776-\u2793]/,/[\u2C00-\u2DFF\u2E80-\u2FFF]/,/[\u3004-\u3007\u3021-\u302F\u3031-\u303F\u3040-\uD7FF]/,/[\uF900-\uFD3D\uFD40-\uFDCF\uFDF0-\uFE1F\uFE30-\uFE44]/,/[\uFE47-\uFEFE\uFF00-\uFFFD]/),identifierCharacter=either$2(identifierHead,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),identifier=concat$2(identifierHead,identifierCharacter,"*"),typeIdentifier=concat$2(/[A-Z]/,identifierCharacter,"*"),keywordAttributes=["autoclosure",concat$2(/convention\(/,either$2("swift","block","c"),/\)/),"discardableResult","dynamicCallable","dynamicMemberLookup","escaping","frozen","GKInspectable","IBAction","IBDesignable","IBInspectable","IBOutlet","IBSegueAction","inlinable","main","nonobjc","NSApplicationMain","NSCopying","NSManaged",concat$2(/objc\(/,identifier,/\)/),"objc","objcMembers","propertyWrapper","requires_stored_property_inits","resultBuilder","testable","UIApplicationMain","unknown","usableFromInline"],availabilityKeywords=["iOS","iOSApplicationExtension","macOS","macOSApplicationExtension","macCatalyst","macCatalystApplicationExtension","watchOS","watchOSApplicationExtension","tvOS","tvOSApplicationExtension","swift"];function swift(kh){const Ff={match:/\s+/,relevance:0},x_=kh.COMMENT("/\\*","\\*/",{contains:["self"]}),B_=[kh.C_LINE_COMMENT_MODE,x_],$_={match:[/\./,either$2(...dotKeywords,...optionalDotKeywords)],className:{2:"keyword"}},$P={match:concat$2(/\./,either$2(...keywords)),relevance:0},zP=keywords.filter(j0e=>typeof j0e=="string").concat(["_|0"]),e0e=keywords.filter(j0e=>typeof j0e!="string").concat(keywordTypes).map(keywordWrapper),t0e={variants:[{className:"keyword",match:either$2(...e0e,...optionalDotKeywords)}]},n0e={$pattern:either$2(/\b\w+/,/#\w+/),keyword:zP.concat(numberSignKeywords),literal:literals},r0e=[$_,$P,t0e],i0e={match:concat$2(/\./,either$2(...builtIns)),relevance:0},o0e={className:"built_in",match:concat$2(/\b/,either$2(...builtIns),/(?=\()/)},s0e=[i0e,o0e],c0e={match:/->/,relevance:0},d0e={className:"operator",relevance:0,variants:[{match:operator},{match:`\\.(\\.|${operatorCharacter})+`}]},a0e=[c0e,d0e],l0e="([0-9]_*)+",u0e="([0-9a-fA-F]_*)+",h0e={className:"number",relevance:0,variants:[{match:`\\b(${l0e})(\\.(${l0e}))?([eE][+-]?(${l0e}))?\\b`},{match:`\\b0x(${u0e})(\\.(${u0e}))?([pP][+-]?(${l0e}))?\\b`},{match:/\b0o([0-7]_*)+\b/},{match:/\b0b([01]_*)+\b/}]},f0e=(j0e="")=>({className:"subst",variants:[{match:concat$2(/\\/,j0e,/[0\\tnr"']/)},{match:concat$2(/\\/,j0e,/u\{[0-9a-fA-F]{1,8}\}/)}]}),p0e=(j0e="")=>({className:"subst",match:concat$2(/\\/,j0e,/[\t ]*(?:[\r\n]|\r\n)/)}),g0e=(j0e="")=>({className:"subst",label:"interpol",begin:concat$2(/\\/,j0e,/\(/),end:/\)/}),y0e=(j0e="")=>({begin:concat$2(j0e,/"""/),end:concat$2(/"""/,j0e),contains:[f0e(j0e),p0e(j0e),g0e(j0e)]}),m0e=(j0e="")=>({begin:concat$2(j0e,/"/),end:concat$2(/"/,j0e),contains:[f0e(j0e),g0e(j0e)]}),v0e={className:"string",variants:[y0e(),y0e("#"),y0e("##"),y0e("###"),m0e(),m0e("#"),m0e("##"),m0e("###")]},b0e={match:concat$2(/`/,identifier,/`/)},E0e={className:"variable",match:/\$\d+/},w0e={className:"variable",match:`\\$${identifierCharacter}+`},O0e=[b0e,E0e,w0e],T0e={match:/(@|#(un)?)available/,className:"keyword",starts:{contains:[{begin:/\(/,end:/\)/,keywords:availabilityKeywords,contains:[...a0e,h0e,v0e]}]}},B0e={className:"keyword",match:concat$2(/@/,either$2(...keywordAttributes))},N0e={className:"meta",match:concat$2(/@/,identifier)},P0e=[T0e,B0e,N0e],x0e={match:lookahead$2(/\b[A-Z]/),relevance:0,contains:[{className:"type",match:concat$2(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/,identifierCharacter,"+")},{className:"type",match:typeIdentifier,relevance:0},{match:/[?!]+/,relevance:0},{match:/\.\.\./,relevance:0},{match:concat$2(/\s+&\s+/,lookahead$2(typeIdentifier)),relevance:0}]},L0e={begin:/</,end:/>/,keywords:n0e,contains:[...B_,...r0e,...P0e,c0e,x0e]};x0e.contains.push(L0e);const C0e={match:concat$2(identifier,/\s*:/),keywords:"_|0",relevance:0},D0e={begin:/\(/,end:/\)/,relevance:0,keywords:n0e,contains:["self",C0e,...B_,...r0e,...s0e,...a0e,h0e,v0e,...O0e,...P0e,x0e]},F0e={begin:/</,end:/>/,contains:[...B_,x0e]},S0e={begin:either$2(lookahead$2(concat$2(identifier,/\s*:/)),lookahead$2(concat$2(identifier,/\s+/,identifier,/\s*:/))),end:/:/,relevance:0,contains:[{className:"keyword",match:/\b_\b/},{className:"params",match:identifier}]},A0e={begin:/\(/,end:/\)/,keywords:n0e,contains:[S0e,...B_,...r0e,...a0e,h0e,v0e,...P0e,x0e,D0e],endsParent:!0,illegal:/["']/},R0e={match:[/func/,/\s+/,either$2(b0e.match,identifier,operator)],className:{1:"keyword",3:"title.function"},contains:[F0e,A0e,Ff],illegal:[/\[/,/%/]},k0e={match:[/\b(?:subscript|init[?!]?)/,/\s*(?=[<(])/],className:{1:"keyword"},contains:[F0e,A0e,Ff],illegal:/\[|%/},_0e={match:[/operator/,/\s+/,operator],className:{1:"keyword",3:"title"}},M0e={begin:[/precedencegroup/,/\s+/,typeIdentifier],className:{1:"keyword",3:"title"},contains:[x0e],keywords:[...precedencegroupKeywords,...literals],end:/}/};for(const j0e of v0e.variants){const z0e=j0e.contains.find(U0e=>U0e.label==="interpol");z0e.keywords=n0e;const H0e=[...r0e,...s0e,...a0e,h0e,v0e,...O0e];z0e.contains=[...H0e,{begin:/\(/,end:/\)/,contains:["self",...H0e]}]}return{name:"Swift",keywords:n0e,contains:[...B_,R0e,k0e,{beginKeywords:"struct protocol class extension enum actor",end:"\\{",excludeEnd:!0,keywords:n0e,contains:[kh.inherit(kh.TITLE_MODE,{className:"title.class",begin:/[A-Za-z$_][\u00C0-\u02B80-9A-Za-z$_]*/}),...r0e]},_0e,M0e,{beginKeywords:"import",end:/$/,contains:[...B_],relevance:0},...r0e,...s0e,...a0e,h0e,v0e,...O0e,...P0e,x0e,D0e]}}const IDENT_RE$2="[A-Za-z$_][0-9A-Za-z$_]*",KEYWORDS=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],LITERALS=["true","false","null","undefined","NaN","Infinity"],TYPES=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],ERROR_TYPES=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],BUILT_IN_GLOBALS=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],BUILT_IN_VARIABLES=["arguments","this","super","console","window","document","localStorage","module","global"],BUILT_INS=[].concat(BUILT_IN_GLOBALS,TYPES,ERROR_TYPES);function javascript(kh){const Ff=kh.regex,x_=(P0e,{after:x0e})=>{const L0e="</"+P0e[0].slice(1);return P0e.input.indexOf(L0e,x0e)!==-1},B_=IDENT_RE$2,$_={begin:"<>",end:"</>"},$P=/<[A-Za-z0-9\\._:-]+\s*\/>/,zP={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(P0e,x0e)=>{const L0e=P0e[0].length+P0e.index,C0e=P0e.input[L0e];if(C0e==="<"||C0e===","){x0e.ignoreMatch();return}C0e===">"&&(x_(P0e,{after:L0e})||x0e.ignoreMatch());let D0e;const F0e=P0e.input.substring(L0e);if(D0e=F0e.match(/^\s*=/)){x0e.ignoreMatch();return}if((D0e=F0e.match(/^\s+extends\s+/))&&D0e.index===0){x0e.ignoreMatch();return}}},e0e={$pattern:IDENT_RE$2,keyword:KEYWORDS,literal:LITERALS,built_in:BUILT_INS,"variable.language":BUILT_IN_VARIABLES},t0e="[0-9](_?[0-9])*",n0e=`\\.(${t0e})`,r0e="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",i0e={className:"number",variants:[{begin:`(\\b(${r0e})((${n0e})|\\.)?|(${n0e}))[eE][+-]?(${t0e})\\b`},{begin:`\\b(${r0e})\\b((${n0e})\\b|\\.)?|(${n0e})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},o0e={className:"subst",begin:"\\$\\{",end:"\\}",keywords:e0e,contains:[]},s0e={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[kh.BACKSLASH_ESCAPE,o0e],subLanguage:"xml"}},c0e={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[kh.BACKSLASH_ESCAPE,o0e],subLanguage:"css"}},d0e={className:"string",begin:"`",end:"`",contains:[kh.BACKSLASH_ESCAPE,o0e]},l0e={className:"comment",variants:[kh.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:B_+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),kh.C_BLOCK_COMMENT_MODE,kh.C_LINE_COMMENT_MODE]},u0e=[kh.APOS_STRING_MODE,kh.QUOTE_STRING_MODE,s0e,c0e,d0e,{match:/\$\d+/},i0e];o0e.contains=u0e.concat({begin:/\{/,end:/\}/,keywords:e0e,contains:["self"].concat(u0e)});const h0e=[].concat(l0e,o0e.contains),f0e=h0e.concat([{begin:/\(/,end:/\)/,keywords:e0e,contains:["self"].concat(h0e)}]),p0e={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:e0e,contains:f0e},g0e={variants:[{match:[/class/,/\s+/,B_,/\s+/,/extends/,/\s+/,Ff.concat(B_,"(",Ff.concat(/\./,B_),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,B_],scope:{1:"keyword",3:"title.class"}}]},y0e={relevance:0,match:Ff.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...TYPES,...ERROR_TYPES]}},m0e={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},v0e={variants:[{match:[/function/,/\s+/,B_,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[p0e],illegal:/%/},b0e={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function E0e(P0e){return Ff.concat("(?!",P0e.join("|"),")")}const w0e={match:Ff.concat(/\b/,E0e([...BUILT_IN_GLOBALS,"super","import"]),B_,Ff.lookahead(/\(/)),className:"title.function",relevance:0},O0e={begin:Ff.concat(/\./,Ff.lookahead(Ff.concat(B_,/(?![0-9A-Za-z$_(])/))),end:B_,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},T0e={match:[/get|set/,/\s+/,B_,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},p0e]},B0e="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+kh.UNDERSCORE_IDENT_RE+")\\s*=>",N0e={match:[/const|var|let/,/\s+/,B_,/\s*/,/=\s*/,/(async\s*)?/,Ff.lookahead(B0e)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[p0e]};return{name:"Javascript",aliases:["js","jsx","mjs","cjs"],keywords:e0e,exports:{PARAMS_CONTAINS:f0e,CLASS_REFERENCE:y0e},illegal:/#(?![$_A-z])/,contains:[kh.SHEBANG({label:"shebang",binary:"node",relevance:5}),m0e,kh.APOS_STRING_MODE,kh.QUOTE_STRING_MODE,s0e,c0e,d0e,l0e,{match:/\$\d+/},i0e,y0e,{className:"attr",begin:B_+Ff.lookahead(":"),relevance:0},N0e,{begin:"("+kh.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[l0e,kh.REGEXP_MODE,{className:"function",begin:B0e,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:kh.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:e0e,contains:f0e}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:$_.begin,end:$_.end},{match:$P},{begin:zP.begin,"on:begin":zP.isTrulyOpeningTag,end:zP.end}],subLanguage:"xml",contains:[{begin:zP.begin,end:zP.end,skip:!0,contains:["self"]}]}]},v0e,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+kh.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[p0e,kh.inherit(kh.TITLE_MODE,{begin:B_,className:"title.function"})]},{match:/\.\.\./,relevance:0},O0e,{match:"\\$"+B_,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[p0e]},w0e,b0e,g0e,T0e,{match:/\$[(.]/}]}}function typescript(kh){const Ff=javascript(kh),x_=IDENT_RE$2,B_=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],$_={beginKeywords:"namespace",end:/\{/,excludeEnd:!0,contains:[Ff.exports.CLASS_REFERENCE]},$P={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:B_},contains:[Ff.exports.CLASS_REFERENCE]},zP={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},e0e=["type","namespace","interface","public","private","protected","implements","declare","abstract","readonly","enum","override"],t0e={$pattern:IDENT_RE$2,keyword:KEYWORDS.concat(e0e),literal:LITERALS,built_in:BUILT_INS.concat(B_),"variable.language":BUILT_IN_VARIABLES},n0e={className:"meta",begin:"@"+x_},r0e=(o0e,s0e,c0e)=>{const d0e=o0e.contains.findIndex(a0e=>a0e.label===s0e);if(d0e===-1)throw new Error("can not find mode to replace");o0e.contains.splice(d0e,1,c0e)};Object.assign(Ff.keywords,t0e),Ff.exports.PARAMS_CONTAINS.push(n0e),Ff.contains=Ff.contains.concat([n0e,$_,$P]),r0e(Ff,"shebang",kh.SHEBANG()),r0e(Ff,"use_strict",zP);const i0e=Ff.contains.find(o0e=>o0e.label==="func.def");return i0e.relevance=0,Object.assign(Ff,{name:"TypeScript",aliases:["ts","tsx"]}),Ff}function vbnet(kh){const Ff=kh.regex,x_={className:"string",begin:/"(""|[^/n])"C\b/},B_={className:"string",begin:/"/,end:/"/,illegal:/\n/,contains:[{begin:/""/}]},$_=/\d{1,2}\/\d{1,2}\/\d{4}/,$P=/\d{4}-\d{1,2}-\d{1,2}/,zP=/(\d|1[012])(:\d+){0,2} *(AM|PM)/,e0e=/\d{1,2}(:\d{1,2}){1,2}/,t0e={className:"literal",variants:[{begin:Ff.concat(/# */,Ff.either($P,$_),/ *#/)},{begin:Ff.concat(/# */,e0e,/ *#/)},{begin:Ff.concat(/# */,zP,/ *#/)},{begin:Ff.concat(/# */,Ff.either($P,$_),/ +/,Ff.either(zP,e0e),/ *#/)}]},n0e={className:"number",relevance:0,variants:[{begin:/\b\d[\d_]*((\.[\d_]+(E[+-]?[\d_]+)?)|(E[+-]?[\d_]+))[RFD@!#]?/},{begin:/\b\d[\d_]*((U?[SIL])|[%&])?/},{begin:/&H[\dA-F_]+((U?[SIL])|[%&])?/},{begin:/&O[0-7_]+((U?[SIL])|[%&])?/},{begin:/&B[01_]+((U?[SIL])|[%&])?/}]},r0e={className:"label",begin:/^\w+:/},i0e=kh.COMMENT(/'''/,/$/,{contains:[{className:"doctag",begin:/<\/?/,end:/>/}]}),o0e=kh.COMMENT(null,/$/,{variants:[{begin:/'/},{begin:/([\t ]|^)REM(?=\s)/}]});return{name:"Visual Basic .NET",aliases:["vb"],case_insensitive:!0,classNameAliases:{label:"symbol"},keywords:{keyword:"addhandler alias aggregate ansi as async assembly auto binary by byref byval call case catch class compare const continue custom declare default delegate dim distinct do each equals else elseif end enum erase error event exit explicit finally for friend from function get global goto group handles if implements imports in inherits interface into iterator join key let lib loop me mid module mustinherit mustoverride mybase myclass namespace narrowing new next notinheritable notoverridable of off on operator option optional order overloads overridable overrides paramarray partial preserve private property protected public raiseevent readonly redim removehandler resume return select set shadows shared skip static step stop structure strict sub synclock take text then throw to try unicode until using when where while widening with withevents writeonly yield",built_in:"addressof and andalso await directcast gettype getxmlnamespace is isfalse isnot istrue like mod nameof new not or orelse trycast typeof xor cbool cbyte cchar cdate cdbl cdec cint clng cobj csbyte cshort csng cstr cuint culng cushort",type:"boolean byte char date decimal double integer long object sbyte short single string uinteger ulong ushort",literal:"true false nothing"},illegal:"//|\\{|\\}|endif|gosub|variant|wend|^\\$ ",contains:[x_,B_,t0e,n0e,r0e,i0e,o0e,{className:"meta",begin:/[\t ]*#(const|disable|else|elseif|enable|end|externalsource|if|region)\b/,end:/$/,keywords:{keyword:"const disable else elseif enable end externalsource if region then"},contains:[o0e]}]}}function wasm(kh){kh.regex;const Ff=kh.COMMENT(/\(;/,/;\)/);Ff.contains.push("self");const x_=kh.COMMENT(/;;/,/$/),B_=["anyfunc","block","br","br_if","br_table","call","call_indirect","data","drop","elem","else","end","export","func","global.get","global.set","local.get","local.set","local.tee","get_global","get_local","global","if","import","local","loop","memory","memory.grow","memory.size","module","mut","nop","offset","param","result","return","select","set_global","set_local","start","table","tee_local","then","type","unreachable"],$_={begin:[/(?:func|call|call_indirect)/,/\s+/,/\$[^\s)]+/],className:{1:"keyword",3:"title.function"}},$P={className:"variable",begin:/\$[\w_]+/},zP={match:/(\((?!;)|\))+/,className:"punctuation",relevance:0},e0e={className:"number",relevance:0,match:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/},t0e={match:/(i32|i64|f32|f64)(?!\.)/,className:"type"},n0e={className:"keyword",match:/\b(f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|nearest|neg?|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|store(?:8|16|32)?|sqrt|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))\b/};return{name:"WebAssembly",keywords:{$pattern:/[\w.]+/,keyword:B_},contains:[x_,Ff,{match:[/(?:offset|align)/,/\s*/,/=/],className:{1:"keyword",3:"operator"}},$P,zP,$_,kh.QUOTE_STRING_MODE,t0e,n0e,e0e]}}function xml(kh){const Ff=kh.regex,x_=Ff.concat(/[\p{L}_]/u,Ff.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),B_=/[\p{L}0-9._:-]+/u,$_={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},$P={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},zP=kh.inherit($P,{begin:/\(/,end:/\)/}),e0e=kh.inherit(kh.APOS_STRING_MODE,{className:"string"}),t0e=kh.inherit(kh.QUOTE_STRING_MODE,{className:"string"}),n0e={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:B_,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[$_]},{begin:/'/,end:/'/,contains:[$_]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[$P,t0e,e0e,zP,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[$P,zP,t0e,e0e]}]}]},kh.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},$_,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[t0e]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[n0e],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[n0e],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:Ff.concat(/</,Ff.lookahead(Ff.concat(x_,Ff.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:x_,relevance:0,starts:n0e}]},{className:"tag",begin:Ff.concat(/<\//,Ff.lookahead(Ff.concat(x_,/>/))),contains:[{className:"name",begin:x_,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}function yaml(kh){const Ff="true false yes no null",x_="[\\w#;/?:@&=+$,.~*'()[\\]]+",B_={className:"attr",variants:[{begin:"\\w[\\w :\\/.-]*:(?=[ ]|$)"},{begin:'"\\w[\\w :\\/.-]*":(?=[ ]|$)'},{begin:"'\\w[\\w :\\/.-]*':(?=[ ]|$)"}]},$_={className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]},$P={className:"string",relevance:0,variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/\S+/}],contains:[kh.BACKSLASH_ESCAPE,$_]},zP=kh.inherit($P,{variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),i0e={className:"number",begin:"\\b"+"[0-9]{4}(-[0-9][0-9]){0,2}"+"([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?"+"(\\.[0-9]*)?"+"([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?"+"\\b"},o0e={end:",",endsWithParent:!0,excludeEnd:!0,keywords:Ff,relevance:0},s0e={begin:/\{/,end:/\}/,contains:[o0e],illegal:"\\n",relevance:0},c0e={begin:"\\[",end:"\\]",contains:[o0e],illegal:"\\n",relevance:0},d0e=[B_,{className:"meta",begin:"^---\\s*$",relevance:10},{className:"string",begin:"[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*"},{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:"!\\w+!"+x_},{className:"type",begin:"!<"+x_+">"},{className:"type",begin:"!"+x_},{className:"type",begin:"!!"+x_},{className:"meta",begin:"&"+kh.UNDERSCORE_IDENT_RE+"$"},{className:"meta",begin:"\\*"+kh.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"-(?=[ ]|$)",relevance:0},kh.HASH_COMMENT_MODE,{beginKeywords:Ff,keywords:{literal:Ff}},i0e,{className:"number",begin:kh.C_NUMBER_RE+"\\b",relevance:0},s0e,c0e,$P],a0e=[...d0e];return a0e.pop(),a0e.push(zP),o0e.contains=a0e,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:d0e}}var deepFreezeEs6={exports:{}};function deepFreeze$1(kh){return kh instanceof Map?kh.clear=kh.delete=kh.set=function(){throw new Error("map is read-only")}:kh instanceof Set&&(kh.add=kh.clear=kh.delete=function(){throw new Error("set is read-only")}),Object.freeze(kh),Object.getOwnPropertyNames(kh).forEach(function(Ff){var x_=kh[Ff];typeof x_=="object"&&!Object.isFrozen(x_)&&deepFreeze$1(x_)}),kh}deepFreezeEs6.exports=deepFreeze$1,deepFreezeEs6.exports.default=deepFreeze$1;let Response$1=class{constructor(Ff){Ff.data===void 0&&(Ff.data={}),this.data=Ff.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}};function escapeHTML$1(kh){return kh.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function inherit$1$1(kh,...Ff){const x_=Object.create(null);for(const B_ in kh)x_[B_]=kh[B_];return Ff.forEach(function(B_){for(const $_ in B_)x_[$_]=B_[$_]}),x_}const SPAN_CLOSE$1="</span>",emitsWrappingTags$1=kh=>!!kh.scope||kh.sublanguage&&kh.language,scopeToCSSClass$1=(kh,{prefix:Ff})=>{if(kh.includes(".")){const x_=kh.split(".");return[`${Ff}${x_.shift()}`,...x_.map((B_,$_)=>`${B_}${"_".repeat($_+1)}`)].join(" ")}return`${Ff}${kh}`};let HTMLRenderer$1=class{constructor(Ff,x_){this.buffer="",this.classPrefix=x_.classPrefix,Ff.walk(this)}addText(Ff){this.buffer+=escapeHTML$1(Ff)}openNode(Ff){if(!emitsWrappingTags$1(Ff))return;let x_="";Ff.sublanguage?x_=`language-${Ff.language}`:x_=scopeToCSSClass$1(Ff.scope,{prefix:this.classPrefix}),this.span(x_)}closeNode(Ff){emitsWrappingTags$1(Ff)&&(this.buffer+=SPAN_CLOSE$1)}value(){return this.buffer}span(Ff){this.buffer+=`<span class="${Ff}">`}};const newNode$1=(kh={})=>{const Ff={children:[]};return Object.assign(Ff,kh),Ff};let TokenTree$1=class Qye{constructor(){this.rootNode=newNode$1(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(Ff){this.top.children.push(Ff)}openNode(Ff){const x_=newNode$1({scope:Ff});this.add(x_),this.stack.push(x_)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(Ff){return this.constructor._walk(Ff,this.rootNode)}static _walk(Ff,x_){return typeof x_=="string"?Ff.addText(x_):x_.children&&(Ff.openNode(x_),x_.children.forEach(B_=>this._walk(Ff,B_)),Ff.closeNode(x_)),Ff}static _collapse(Ff){typeof Ff!="string"&&Ff.children&&(Ff.children.every(x_=>typeof x_=="string")?Ff.children=[Ff.children.join("")]:Ff.children.forEach(x_=>{Qye._collapse(x_)}))}},TokenTreeEmitter$1=class extends TokenTree$1{constructor(Ff){super(),this.options=Ff}addKeyword(Ff,x_){Ff!==""&&(this.openNode(x_),this.addText(Ff),this.closeNode())}addText(Ff){Ff!==""&&this.add(Ff)}addSublanguage(Ff,x_){const B_=Ff.root;B_.sublanguage=!0,B_.language=x_,this.add(B_)}toHTML(){return new HTMLRenderer$1(this,this.options).value()}finalize(){return!0}};function source$1(kh){return kh?typeof kh=="string"?kh:kh.source:null}function lookahead$1(kh){return concat$1("(?=",kh,")")}function anyNumberOfTimes$1(kh){return concat$1("(?:",kh,")*")}function optional$1(kh){return concat$1("(?:",kh,")?")}function concat$1(...kh){return kh.map(x_=>source$1(x_)).join("")}function stripOptionsFromArgs$1(kh){const Ff=kh[kh.length-1];return typeof Ff=="object"&&Ff.constructor===Object?(kh.splice(kh.length-1,1),Ff):{}}function either$1(...kh){return"("+(stripOptionsFromArgs$1(kh).capture?"":"?:")+kh.map(B_=>source$1(B_)).join("|")+")"}function countMatchGroups$1(kh){return new RegExp(kh.toString()+"|").exec("").length-1}function startsWith$1(kh,Ff){const x_=kh&&kh.exec(Ff);return x_&&x_.index===0}const BACKREF_RE$1=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function _rewriteBackreferences$1(kh,{joinWith:Ff}){let x_=0;return kh.map(B_=>{x_+=1;const $_=x_;let $P=source$1(B_),zP="";for(;$P.length>0;){const e0e=BACKREF_RE$1.exec($P);if(!e0e){zP+=$P;break}zP+=$P.substring(0,e0e.index),$P=$P.substring(e0e.index+e0e[0].length),e0e[0][0]==="\\"&&e0e[1]?zP+="\\"+String(Number(e0e[1])+$_):(zP+=e0e[0],e0e[0]==="("&&x_++)}return zP}).map(B_=>`(${B_})`).join(Ff)}const MATCH_NOTHING_RE$1=/\b\B/,IDENT_RE$1="[a-zA-Z]\\w*",UNDERSCORE_IDENT_RE$1="[a-zA-Z_]\\w*",NUMBER_RE$1="\\b\\d+(\\.\\d+)?",C_NUMBER_RE$1="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",BINARY_NUMBER_RE$1="\\b(0b[01]+)",RE_STARTERS_RE$1="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",SHEBANG$1=(kh={})=>{const Ff=/^#![ ]*\//;return kh.binary&&(kh.begin=concat$1(Ff,/.*\b/,kh.binary,/\b.*/)),inherit$1$1({scope:"meta",begin:Ff,end:/$/,relevance:0,"on:begin":(x_,B_)=>{x_.index!==0&&B_.ignoreMatch()}},kh)},BACKSLASH_ESCAPE$1={begin:"\\\\[\\s\\S]",relevance:0},APOS_STRING_MODE$1={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[BACKSLASH_ESCAPE$1]},QUOTE_STRING_MODE$1={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[BACKSLASH_ESCAPE$1]},PHRASAL_WORDS_MODE$1={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},COMMENT$1=function(kh,Ff,x_={}){const B_=inherit$1$1({scope:"comment",begin:kh,end:Ff,contains:[]},x_);B_.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const $_=either$1("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return B_.contains.push({begin:concat$1(/[ ]+/,"(",$_,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),B_},C_LINE_COMMENT_MODE$1=COMMENT$1("//","$"),C_BLOCK_COMMENT_MODE$1=COMMENT$1("/\\*","\\*/"),HASH_COMMENT_MODE$1=COMMENT$1("#","$"),NUMBER_MODE$1={scope:"number",begin:NUMBER_RE$1,relevance:0},C_NUMBER_MODE$1={scope:"number",begin:C_NUMBER_RE$1,relevance:0},BINARY_NUMBER_MODE$1={scope:"number",begin:BINARY_NUMBER_RE$1,relevance:0},REGEXP_MODE$1={begin:/(?=\/[^/\n]*\/)/,contains:[{scope:"regexp",begin:/\//,end:/\/[gimuy]*/,illegal:/\n/,contains:[BACKSLASH_ESCAPE$1,{begin:/\[/,end:/\]/,relevance:0,contains:[BACKSLASH_ESCAPE$1]}]}]},TITLE_MODE$1={scope:"title",begin:IDENT_RE$1,relevance:0},UNDERSCORE_TITLE_MODE$1={scope:"title",begin:UNDERSCORE_IDENT_RE$1,relevance:0},METHOD_GUARD$1={begin:"\\.\\s*"+UNDERSCORE_IDENT_RE$1,relevance:0},END_SAME_AS_BEGIN$1=function(kh){return Object.assign(kh,{"on:begin":(Ff,x_)=>{x_.data._beginMatch=Ff[1]},"on:end":(Ff,x_)=>{x_.data._beginMatch!==Ff[1]&&x_.ignoreMatch()}})};var MODES$1=Object.freeze({__proto__:null,MATCH_NOTHING_RE:MATCH_NOTHING_RE$1,IDENT_RE:IDENT_RE$1,UNDERSCORE_IDENT_RE:UNDERSCORE_IDENT_RE$1,NUMBER_RE:NUMBER_RE$1,C_NUMBER_RE:C_NUMBER_RE$1,BINARY_NUMBER_RE:BINARY_NUMBER_RE$1,RE_STARTERS_RE:RE_STARTERS_RE$1,SHEBANG:SHEBANG$1,BACKSLASH_ESCAPE:BACKSLASH_ESCAPE$1,APOS_STRING_MODE:APOS_STRING_MODE$1,QUOTE_STRING_MODE:QUOTE_STRING_MODE$1,PHRASAL_WORDS_MODE:PHRASAL_WORDS_MODE$1,COMMENT:COMMENT$1,C_LINE_COMMENT_MODE:C_LINE_COMMENT_MODE$1,C_BLOCK_COMMENT_MODE:C_BLOCK_COMMENT_MODE$1,HASH_COMMENT_MODE:HASH_COMMENT_MODE$1,NUMBER_MODE:NUMBER_MODE$1,C_NUMBER_MODE:C_NUMBER_MODE$1,BINARY_NUMBER_MODE:BINARY_NUMBER_MODE$1,REGEXP_MODE:REGEXP_MODE$1,TITLE_MODE:TITLE_MODE$1,UNDERSCORE_TITLE_MODE:UNDERSCORE_TITLE_MODE$1,METHOD_GUARD:METHOD_GUARD$1,END_SAME_AS_BEGIN:END_SAME_AS_BEGIN$1});function skipIfHasPrecedingDot$1(kh,Ff){kh.input[kh.index-1]==="."&&Ff.ignoreMatch()}function scopeClassName$1(kh,Ff){kh.className!==void 0&&(kh.scope=kh.className,delete kh.className)}function beginKeywords$1(kh,Ff){Ff&&kh.beginKeywords&&(kh.begin="\\b("+kh.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",kh.__beforeBegin=skipIfHasPrecedingDot$1,kh.keywords=kh.keywords||kh.beginKeywords,delete kh.beginKeywords,kh.relevance===void 0&&(kh.relevance=0))}function compileIllegal$1(kh,Ff){Array.isArray(kh.illegal)&&(kh.illegal=either$1(...kh.illegal))}function compileMatch$1(kh,Ff){if(kh.match){if(kh.begin||kh.end)throw new Error("begin & end are not supported with match");kh.begin=kh.match,delete kh.match}}function compileRelevance$1(kh,Ff){kh.relevance===void 0&&(kh.relevance=1)}const beforeMatchExt$1=(kh,Ff)=>{if(!kh.beforeMatch)return;if(kh.starts)throw new Error("beforeMatch cannot be used with starts");const x_=Object.assign({},kh);Object.keys(kh).forEach(B_=>{delete kh[B_]}),kh.keywords=x_.keywords,kh.begin=concat$1(x_.beforeMatch,lookahead$1(x_.begin)),kh.starts={relevance:0,contains:[Object.assign(x_,{endsParent:!0})]},kh.relevance=0,delete x_.beforeMatch},COMMON_KEYWORDS$1=["of","and","for","in","not","or","if","then","parent","list","value"],DEFAULT_KEYWORD_SCOPE$1="keyword";function compileKeywords$1(kh,Ff,x_=DEFAULT_KEYWORD_SCOPE$1){const B_=Object.create(null);return typeof kh=="string"?$_(x_,kh.split(" ")):Array.isArray(kh)?$_(x_,kh):Object.keys(kh).forEach(function($P){Object.assign(B_,compileKeywords$1(kh[$P],Ff,$P))}),B_;function $_($P,zP){Ff&&(zP=zP.map(e0e=>e0e.toLowerCase())),zP.forEach(function(e0e){const t0e=e0e.split("|");B_[t0e[0]]=[$P,scoreForKeyword$1(t0e[0],t0e[1])]})}}function scoreForKeyword$1(kh,Ff){return Ff?Number(Ff):commonKeyword$1(kh)?0:1}function commonKeyword$1(kh){return COMMON_KEYWORDS$1.includes(kh.toLowerCase())}const seenDeprecations$1={},error$2=kh=>{console.error(kh)},warn$2=(kh,...Ff)=>{console.log(`WARN: ${kh}`,...Ff)},deprecated$1=(kh,Ff)=>{seenDeprecations$1[`${kh}/${Ff}`]||(console.log(`Deprecated as of ${kh}. ${Ff}`),seenDeprecations$1[`${kh}/${Ff}`]=!0)},MultiClassError$1=new Error;function remapScopeNames$1(kh,Ff,{key:x_}){let B_=0;const $_=kh[x_],$P={},zP={};for(let e0e=1;e0e<=Ff.length;e0e++)zP[e0e+B_]=$_[e0e],$P[e0e+B_]=!0,B_+=countMatchGroups$1(Ff[e0e-1]);kh[x_]=zP,kh[x_]._emit=$P,kh[x_]._multi=!0}function beginMultiClass$1(kh){if(Array.isArray(kh.begin)){if(kh.skip||kh.excludeBegin||kh.returnBegin)throw error$2("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),MultiClassError$1;if(typeof kh.beginScope!="object"||kh.beginScope===null)throw error$2("beginScope must be object"),MultiClassError$1;remapScopeNames$1(kh,kh.begin,{key:"beginScope"}),kh.begin=_rewriteBackreferences$1(kh.begin,{joinWith:""})}}function endMultiClass$1(kh){if(Array.isArray(kh.end)){if(kh.skip||kh.excludeEnd||kh.returnEnd)throw error$2("skip, excludeEnd, returnEnd not compatible with endScope: {}"),MultiClassError$1;if(typeof kh.endScope!="object"||kh.endScope===null)throw error$2("endScope must be object"),MultiClassError$1;remapScopeNames$1(kh,kh.end,{key:"endScope"}),kh.end=_rewriteBackreferences$1(kh.end,{joinWith:""})}}function scopeSugar$1(kh){kh.scope&&typeof kh.scope=="object"&&kh.scope!==null&&(kh.beginScope=kh.scope,delete kh.scope)}function MultiClass$1(kh){scopeSugar$1(kh),typeof kh.beginScope=="string"&&(kh.beginScope={_wrap:kh.beginScope}),typeof kh.endScope=="string"&&(kh.endScope={_wrap:kh.endScope}),beginMultiClass$1(kh),endMultiClass$1(kh)}function compileLanguage$1(kh){function Ff(zP,e0e){return new RegExp(source$1(zP),"m"+(kh.case_insensitive?"i":"")+(kh.unicodeRegex?"u":"")+(e0e?"g":""))}class x_{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(e0e,t0e){t0e.position=this.position++,this.matchIndexes[this.matchAt]=t0e,this.regexes.push([t0e,e0e]),this.matchAt+=countMatchGroups$1(e0e)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const e0e=this.regexes.map(t0e=>t0e[1]);this.matcherRe=Ff(_rewriteBackreferences$1(e0e,{joinWith:"|"}),!0),this.lastIndex=0}exec(e0e){this.matcherRe.lastIndex=this.lastIndex;const t0e=this.matcherRe.exec(e0e);if(!t0e)return null;const n0e=t0e.findIndex((i0e,o0e)=>o0e>0&&i0e!==void 0),r0e=this.matchIndexes[n0e];return t0e.splice(0,n0e),Object.assign(t0e,r0e)}}class B_{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(e0e){if(this.multiRegexes[e0e])return this.multiRegexes[e0e];const t0e=new x_;return this.rules.slice(e0e).forEach(([n0e,r0e])=>t0e.addRule(n0e,r0e)),t0e.compile(),this.multiRegexes[e0e]=t0e,t0e}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(e0e,t0e){this.rules.push([e0e,t0e]),t0e.type==="begin"&&this.count++}exec(e0e){const t0e=this.getMatcher(this.regexIndex);t0e.lastIndex=this.lastIndex;let n0e=t0e.exec(e0e);if(this.resumingScanAtSamePosition()&&!(n0e&&n0e.index===this.lastIndex)){const r0e=this.getMatcher(0);r0e.lastIndex=this.lastIndex+1,n0e=r0e.exec(e0e)}return n0e&&(this.regexIndex+=n0e.position+1,this.regexIndex===this.count&&this.considerAll()),n0e}}function $_(zP){const e0e=new B_;return zP.contains.forEach(t0e=>e0e.addRule(t0e.begin,{rule:t0e,type:"begin"})),zP.terminatorEnd&&e0e.addRule(zP.terminatorEnd,{type:"end"}),zP.illegal&&e0e.addRule(zP.illegal,{type:"illegal"}),e0e}function $P(zP,e0e){const t0e=zP;if(zP.isCompiled)return t0e;[scopeClassName$1,compileMatch$1,MultiClass$1,beforeMatchExt$1].forEach(r0e=>r0e(zP,e0e)),kh.compilerExtensions.forEach(r0e=>r0e(zP,e0e)),zP.__beforeBegin=null,[beginKeywords$1,compileIllegal$1,compileRelevance$1].forEach(r0e=>r0e(zP,e0e)),zP.isCompiled=!0;let n0e=null;return typeof zP.keywords=="object"&&zP.keywords.$pattern&&(zP.keywords=Object.assign({},zP.keywords),n0e=zP.keywords.$pattern,delete zP.keywords.$pattern),n0e=n0e||/\w+/,zP.keywords&&(zP.keywords=compileKeywords$1(zP.keywords,kh.case_insensitive)),t0e.keywordPatternRe=Ff(n0e,!0),e0e&&(zP.begin||(zP.begin=/\B|\b/),t0e.beginRe=Ff(t0e.begin),!zP.end&&!zP.endsWithParent&&(zP.end=/\B|\b/),zP.end&&(t0e.endRe=Ff(t0e.end)),t0e.terminatorEnd=source$1(t0e.end)||"",zP.endsWithParent&&e0e.terminatorEnd&&(t0e.terminatorEnd+=(zP.end?"|":"")+e0e.terminatorEnd)),zP.illegal&&(t0e.illegalRe=Ff(zP.illegal)),zP.contains||(zP.contains=[]),zP.contains=[].concat(...zP.contains.map(function(r0e){return expandOrCloneMode$1(r0e==="self"?zP:r0e)})),zP.contains.forEach(function(r0e){$P(r0e,t0e)}),zP.starts&&$P(zP.starts,e0e),t0e.matcher=$_(t0e),t0e}if(kh.compilerExtensions||(kh.compilerExtensions=[]),kh.contains&&kh.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return kh.classNameAliases=inherit$1$1(kh.classNameAliases||{}),$P(kh)}function dependencyOnParent$1(kh){return kh?kh.endsWithParent||dependencyOnParent$1(kh.starts):!1}function expandOrCloneMode$1(kh){return kh.variants&&!kh.cachedVariants&&(kh.cachedVariants=kh.variants.map(function(Ff){return inherit$1$1(kh,{variants:null},Ff)})),kh.cachedVariants?kh.cachedVariants:dependencyOnParent$1(kh)?inherit$1$1(kh,{starts:kh.starts?inherit$1$1(kh.starts):null}):Object.isFrozen(kh)?inherit$1$1(kh):kh}var version$1="11.7.0";let HTMLInjectionError$1=class extends Error{constructor(Ff,x_){super(Ff),this.name="HTMLInjectionError",this.html=x_}};const escape$2=escapeHTML$1,inherit$2=inherit$1$1,NO_MATCH$1=Symbol("nomatch"),MAX_KEYWORD_HITS$1=7,HLJS$1=function(kh){const Ff=Object.create(null),x_=Object.create(null),B_=[];let $_=!0;const $P="Could not find the language '{}', did you forget to load/include a language module?",zP={disableAutodetect:!0,name:"Plain text",contains:[]};let e0e={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:TokenTreeEmitter$1};function t0e(N0e){return e0e.noHighlightRe.test(N0e)}function n0e(N0e){let P0e=N0e.className+" ";P0e+=N0e.parentNode?N0e.parentNode.className:"";const x0e=e0e.languageDetectRe.exec(P0e);if(x0e){const L0e=v0e(x0e[1]);return L0e||(warn$2($P.replace("{}",x0e[1])),warn$2("Falling back to no-highlight mode for this block.",N0e)),L0e?x0e[1]:"no-highlight"}return P0e.split(/\s+/).find(L0e=>t0e(L0e)||v0e(L0e))}function r0e(N0e,P0e,x0e){let L0e="",C0e="";typeof P0e=="object"?(L0e=N0e,x0e=P0e.ignoreIllegals,C0e=P0e.language):(deprecated$1("10.7.0","highlight(lang, code, ...args) has been deprecated."),deprecated$1("10.7.0",`Please use highlight(code, options) instead.
138
- https://github.com/highlightjs/highlight.js/issues/2277`),C0e=N0e,L0e=P0e),x0e===void 0&&(x0e=!0);const D0e={code:L0e,language:C0e};T0e("before:highlight",D0e);const F0e=D0e.result?D0e.result:i0e(D0e.language,D0e.code,x0e);return F0e.code=D0e.code,T0e("after:highlight",F0e),F0e}function i0e(N0e,P0e,x0e,L0e){const C0e=Object.create(null);function D0e(ome,_me){return ome.keywords[_me]}function F0e(){if(!Y0e.keywords){wme.addText(xme);return}let ome=0;Y0e.keywordPatternRe.lastIndex=0;let _me=Y0e.keywordPatternRe.exec(xme),W0e="";for(;_me;){W0e+=xme.substring(ome,_me.index);const nme=K0e.case_insensitive?_me[0].toLowerCase():_me[0],Sme=D0e(Y0e,nme);if(Sme){const[Ome,Mme]=Sme;if(wme.addText(W0e),W0e="",C0e[nme]=(C0e[nme]||0)+1,C0e[nme]<=MAX_KEYWORD_HITS$1&&(Rme+=Mme),Ome.startsWith("_"))W0e+=_me[0];else{const Lme=K0e.classNameAliases[Ome]||Ome;wme.addKeyword(_me[0],Lme)}}else W0e+=_me[0];ome=Y0e.keywordPatternRe.lastIndex,_me=Y0e.keywordPatternRe.exec(xme)}W0e+=xme.substring(ome),wme.addText(W0e)}function S0e(){if(xme==="")return;let ome=null;if(typeof Y0e.subLanguage=="string"){if(!Ff[Y0e.subLanguage]){wme.addText(xme);return}ome=i0e(Y0e.subLanguage,xme,!0,Tme[Y0e.subLanguage]),Tme[Y0e.subLanguage]=ome._top}else ome=s0e(xme,Y0e.subLanguage.length?Y0e.subLanguage:null);Y0e.relevance>0&&(Rme+=ome.relevance),wme.addSublanguage(ome._emitter,ome.language)}function A0e(){Y0e.subLanguage!=null?S0e():F0e(),xme=""}function R0e(ome,_me){let W0e=1;const nme=_me.length-1;for(;W0e<=nme;){if(!ome._emit[W0e]){W0e++;continue}const Sme=K0e.classNameAliases[ome[W0e]]||ome[W0e],Ome=_me[W0e];Sme?wme.addKeyword(Ome,Sme):(xme=Ome,F0e(),xme=""),W0e++}}function k0e(ome,_me){return ome.scope&&typeof ome.scope=="string"&&wme.openNode(K0e.classNameAliases[ome.scope]||ome.scope),ome.beginScope&&(ome.beginScope._wrap?(wme.addKeyword(xme,K0e.classNameAliases[ome.beginScope._wrap]||ome.beginScope._wrap),xme=""):ome.beginScope._multi&&(R0e(ome.beginScope,_me),xme="")),Y0e=Object.create(ome,{parent:{value:Y0e}}),Y0e}function _0e(ome,_me,W0e){let nme=startsWith$1(ome.endRe,W0e);if(nme){if(ome["on:end"]){const Sme=new Response$1(ome);ome["on:end"](_me,Sme),Sme.isMatchIgnored&&(nme=!1)}if(nme){for(;ome.endsParent&&ome.parent;)ome=ome.parent;return ome}}if(ome.endsWithParent)return _0e(ome.parent,_me,W0e)}function M0e(ome){return Y0e.matcher.regexIndex===0?(xme+=ome[0],1):(dme=!0,0)}function j0e(ome){const _me=ome[0],W0e=ome.rule,nme=new Response$1(W0e),Sme=[W0e.__beforeBegin,W0e["on:begin"]];for(const Ome of Sme)if(Ome&&(Ome(ome,nme),nme.isMatchIgnored))return M0e(_me);return W0e.skip?xme+=_me:(W0e.excludeBegin&&(xme+=_me),A0e(),!W0e.returnBegin&&!W0e.excludeBegin&&(xme=_me)),k0e(W0e,ome),W0e.returnBegin?0:_me.length}function z0e(ome){const _me=ome[0],W0e=P0e.substring(ome.index),nme=_0e(Y0e,ome,W0e);if(!nme)return NO_MATCH$1;const Sme=Y0e;Y0e.endScope&&Y0e.endScope._wrap?(A0e(),wme.addKeyword(_me,Y0e.endScope._wrap)):Y0e.endScope&&Y0e.endScope._multi?(A0e(),R0e(Y0e.endScope,ome)):Sme.skip?xme+=_me:(Sme.returnEnd||Sme.excludeEnd||(xme+=_me),A0e(),Sme.excludeEnd&&(xme=_me));do Y0e.scope&&wme.closeNode(),!Y0e.skip&&!Y0e.subLanguage&&(Rme+=Y0e.relevance),Y0e=Y0e.parent;while(Y0e!==nme.parent);return nme.starts&&k0e(nme.starts,ome),Sme.returnEnd?0:_me.length}function H0e(){const ome=[];for(let _me=Y0e;_me!==K0e;_me=_me.parent)_me.scope&&ome.unshift(_me.scope);ome.forEach(_me=>wme.openNode(_me))}let U0e={};function Z0e(ome,_me){const W0e=_me&&_me[0];if(xme+=ome,W0e==null)return A0e(),0;if(U0e.type==="begin"&&_me.type==="end"&&U0e.index===_me.index&&W0e===""){if(xme+=P0e.slice(_me.index,_me.index+1),!$_){const nme=new Error(`0 width match regex (${N0e})`);throw nme.languageName=N0e,nme.badRule=U0e.rule,nme}return 1}if(U0e=_me,_me.type==="begin")return j0e(_me);if(_me.type==="illegal"&&!x0e){const nme=new Error('Illegal lexeme "'+W0e+'" for mode "'+(Y0e.scope||"<unnamed>")+'"');throw nme.mode=Y0e,nme}else if(_me.type==="end"){const nme=z0e(_me);if(nme!==NO_MATCH$1)return nme}if(_me.type==="illegal"&&W0e==="")return 1;if(lme>1e5&&lme>_me.index*3)throw new Error("potential infinite loop, way more iterations than matches");return xme+=W0e,W0e.length}const K0e=v0e(N0e);if(!K0e)throw error$2($P.replace("{}",N0e)),new Error('Unknown language: "'+N0e+'"');const Q0e=compileLanguage$1(K0e);let mme="",Y0e=L0e||Q0e;const Tme={},wme=new e0e.__emitter(e0e);H0e();let xme="",Rme=0,bme=0,lme=0,dme=!1;try{for(Y0e.matcher.considerAll();;){lme++,dme?dme=!1:Y0e.matcher.considerAll(),Y0e.matcher.lastIndex=bme;const ome=Y0e.matcher.exec(P0e);if(!ome)break;const _me=P0e.substring(bme,ome.index),W0e=Z0e(_me,ome);bme=ome.index+W0e}return Z0e(P0e.substring(bme)),wme.closeAllNodes(),wme.finalize(),mme=wme.toHTML(),{language:N0e,value:mme,relevance:Rme,illegal:!1,_emitter:wme,_top:Y0e}}catch(ome){if(ome.message&&ome.message.includes("Illegal"))return{language:N0e,value:escape$2(P0e),illegal:!0,relevance:0,_illegalBy:{message:ome.message,index:bme,context:P0e.slice(bme-100,bme+100),mode:ome.mode,resultSoFar:mme},_emitter:wme};if($_)return{language:N0e,value:escape$2(P0e),illegal:!1,relevance:0,errorRaised:ome,_emitter:wme,_top:Y0e};throw ome}}function o0e(N0e){const P0e={value:escape$2(N0e),illegal:!1,relevance:0,_top:zP,_emitter:new e0e.__emitter(e0e)};return P0e._emitter.addText(N0e),P0e}function s0e(N0e,P0e){P0e=P0e||e0e.languages||Object.keys(Ff);const x0e=o0e(N0e),L0e=P0e.filter(v0e).filter(E0e).map(A0e=>i0e(A0e,N0e,!1));L0e.unshift(x0e);const C0e=L0e.sort((A0e,R0e)=>{if(A0e.relevance!==R0e.relevance)return R0e.relevance-A0e.relevance;if(A0e.language&&R0e.language){if(v0e(A0e.language).supersetOf===R0e.language)return 1;if(v0e(R0e.language).supersetOf===A0e.language)return-1}return 0}),[D0e,F0e]=C0e,S0e=D0e;return S0e.secondBest=F0e,S0e}function c0e(N0e,P0e,x0e){const L0e=P0e&&x_[P0e]||x0e;N0e.classList.add("hljs"),N0e.classList.add(`language-${L0e}`)}function d0e(N0e){let P0e=null;const x0e=n0e(N0e);if(t0e(x0e))return;if(T0e("before:highlightElement",{el:N0e,language:x0e}),N0e.children.length>0&&(e0e.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(N0e)),e0e.throwUnescapedHTML))throw new HTMLInjectionError$1("One of your code blocks includes unescaped HTML.",N0e.innerHTML);P0e=N0e;const L0e=P0e.textContent,C0e=x0e?r0e(L0e,{language:x0e,ignoreIllegals:!0}):s0e(L0e);N0e.innerHTML=C0e.value,c0e(N0e,x0e,C0e.language),N0e.result={language:C0e.language,re:C0e.relevance,relevance:C0e.relevance},C0e.secondBest&&(N0e.secondBest={language:C0e.secondBest.language,relevance:C0e.secondBest.relevance}),T0e("after:highlightElement",{el:N0e,result:C0e,text:L0e})}function a0e(N0e){e0e=inherit$2(e0e,N0e)}const l0e=()=>{f0e(),deprecated$1("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function u0e(){f0e(),deprecated$1("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let h0e=!1;function f0e(){if(document.readyState==="loading"){h0e=!0;return}document.querySelectorAll(e0e.cssSelector).forEach(d0e)}function p0e(){h0e&&f0e()}typeof window<"u"&&window.addEventListener&&window.addEventListener("DOMContentLoaded",p0e,!1);function g0e(N0e,P0e){let x0e=null;try{x0e=P0e(kh)}catch(L0e){if(error$2("Language definition for '{}' could not be registered.".replace("{}",N0e)),$_)error$2(L0e);else throw L0e;x0e=zP}x0e.name||(x0e.name=N0e),Ff[N0e]=x0e,x0e.rawDefinition=P0e.bind(null,kh),x0e.aliases&&b0e(x0e.aliases,{languageName:N0e})}function y0e(N0e){delete Ff[N0e];for(const P0e of Object.keys(x_))x_[P0e]===N0e&&delete x_[P0e]}function m0e(){return Object.keys(Ff)}function v0e(N0e){return N0e=(N0e||"").toLowerCase(),Ff[N0e]||Ff[x_[N0e]]}function b0e(N0e,{languageName:P0e}){typeof N0e=="string"&&(N0e=[N0e]),N0e.forEach(x0e=>{x_[x0e.toLowerCase()]=P0e})}function E0e(N0e){const P0e=v0e(N0e);return P0e&&!P0e.disableAutodetect}function w0e(N0e){N0e["before:highlightBlock"]&&!N0e["before:highlightElement"]&&(N0e["before:highlightElement"]=P0e=>{N0e["before:highlightBlock"](Object.assign({block:P0e.el},P0e))}),N0e["after:highlightBlock"]&&!N0e["after:highlightElement"]&&(N0e["after:highlightElement"]=P0e=>{N0e["after:highlightBlock"](Object.assign({block:P0e.el},P0e))})}function O0e(N0e){w0e(N0e),B_.push(N0e)}function T0e(N0e,P0e){const x0e=N0e;B_.forEach(function(L0e){L0e[x0e]&&L0e[x0e](P0e)})}function B0e(N0e){return deprecated$1("10.7.0","highlightBlock will be removed entirely in v12.0"),deprecated$1("10.7.0","Please use highlightElement now."),d0e(N0e)}Object.assign(kh,{highlight:r0e,highlightAuto:s0e,highlightAll:f0e,highlightElement:d0e,highlightBlock:B0e,configure:a0e,initHighlighting:l0e,initHighlightingOnLoad:u0e,registerLanguage:g0e,unregisterLanguage:y0e,listLanguages:m0e,getLanguage:v0e,registerAliases:b0e,autoDetection:E0e,inherit:inherit$2,addPlugin:O0e}),kh.debugMode=function(){$_=!1},kh.safeMode=function(){$_=!0},kh.versionString=version$1,kh.regex={concat:concat$1,lookahead:lookahead$1,either:either$1,optional:optional$1,anyNumberOfTimes:anyNumberOfTimes$1};for(const N0e in MODES$1)typeof MODES$1[N0e]=="object"&&deepFreezeEs6.exports(MODES$1[N0e]);return Object.assign(kh,MODES$1),kh};var highlight$2=HLJS$1({}),core$1=highlight$2;highlight$2.HighlightJS=highlight$2,highlight$2.default=highlight$2;const HighlightJS$1=getDefaultExportFromCjs(core$1);var format={exports:{}};(function(kh){(function(){var Ff;Ff=kh.exports=$_,Ff.format=$_,Ff.vsprintf=B_,typeof console<"u"&&typeof console.log=="function"&&(Ff.printf=x_);function x_(){console.log($_.apply(null,arguments))}function B_($P,zP){return $_.apply(null,[$P].concat(zP))}function $_($P){for(var zP=1,e0e=[].slice.call(arguments),t0e=0,n0e=$P.length,r0e="",i0e,o0e=!1,s0e,c0e,d0e=!1,a0e,l0e=function(){return e0e[zP++]},u0e=function(){for(var h0e="";/\d/.test($P[t0e]);)h0e+=$P[t0e++],i0e=$P[t0e];return h0e.length>0?parseInt(h0e):null};t0e<n0e;++t0e)if(i0e=$P[t0e],o0e)switch(o0e=!1,i0e=="."?(d0e=!1,i0e=$P[++t0e]):i0e=="0"&&$P[t0e+1]=="."?(d0e=!0,t0e+=2,i0e=$P[t0e]):d0e=!0,a0e=u0e(),i0e){case"b":r0e+=parseInt(l0e(),10).toString(2);break;case"c":s0e=l0e(),typeof s0e=="string"||s0e instanceof String?r0e+=s0e:r0e+=String.fromCharCode(parseInt(s0e,10));break;case"d":r0e+=parseInt(l0e(),10);break;case"f":c0e=String(parseFloat(l0e()).toFixed(a0e||6)),r0e+=d0e?c0e:c0e.replace(/^0/,"");break;case"j":r0e+=JSON.stringify(l0e());break;case"o":r0e+="0"+parseInt(l0e(),10).toString(8);break;case"s":r0e+=l0e();break;case"x":r0e+="0x"+parseInt(l0e(),10).toString(16);break;case"X":r0e+="0x"+parseInt(l0e(),10).toString(16).toUpperCase();break;default:r0e+=i0e;break}else i0e==="%"?o0e=!0:r0e+=i0e;return r0e}})()})(format);var formatExports=format.exports;const formatter=getDefaultExportFromCjs(formatExports),fault=Object.assign(create(Error),{eval:create(EvalError),range:create(RangeError),reference:create(ReferenceError),syntax:create(SyntaxError),type:create(TypeError),uri:create(URIError)});function create(kh){return Ff.displayName=kh.displayName||kh.name,Ff;function Ff(x_,...B_){const $_=x_&&formatter(x_,...B_);return new kh($_)}}const own$4={}.hasOwnProperty,defaultPrefix="hljs-";function highlight$1(kh,Ff,x_={}){let B_=x_.prefix;if(typeof kh!="string")throw fault("Expected `string` for name, got `%s`",kh);if(!HighlightJS$1.getLanguage(kh))throw fault("Unknown language: `%s` is not registered",kh);if(typeof Ff!="string")throw fault("Expected `string` for value, got `%s`",Ff);B_==null&&(B_=defaultPrefix),HighlightJS$1.configure({__emitter:HastEmitter,classPrefix:B_});const $_=HighlightJS$1.highlight(Ff,{language:kh,ignoreIllegals:!0});if(HighlightJS$1.configure({}),$_.errorRaised)throw $_.errorRaised;return $_._emitter.root.data.language=$_.language,$_._emitter.root.data.relevance=$_.relevance,$_._emitter.root}function highlightAuto(kh,Ff={}){const x_=Ff.subset||HighlightJS$1.listLanguages();Ff.prefix;let B_=-1,$_={type:"root",data:{language:null,relevance:0},children:[]};if(typeof kh!="string")throw fault("Expected `string` for value, got `%s`",kh);for(;++B_<x_.length;){const $P=x_[B_];if(!HighlightJS$1.getLanguage($P))continue;const zP=highlight$1($P,kh,Ff);zP.data.relevance>$_.data.relevance&&($_=zP)}return $_}function registerLanguage(kh,Ff){HighlightJS$1.registerLanguage(kh,Ff)}const registerAlias=function(kh,Ff){if(typeof kh=="string")HighlightJS$1.registerAliases(Ff,{languageName:kh});else{let x_;for(x_ in kh)own$4.call(kh,x_)&&HighlightJS$1.registerAliases(kh[x_],{languageName:x_})}};function registered$1(kh){return!!HighlightJS$1.getLanguage(kh)}function listLanguages(){return HighlightJS$1.listLanguages()}class HastEmitter{constructor(Ff){this.options=Ff,this.root={type:"root",data:{language:null,relevance:0},children:[]},this.stack=[this.root]}addText(Ff){if(Ff==="")return;const x_=this.stack[this.stack.length-1],B_=x_.children[x_.children.length-1];B_&&B_.type==="text"?B_.value+=Ff:x_.children.push({type:"text",value:Ff})}addKeyword(Ff,x_){this.openNode(x_),this.addText(Ff),this.closeNode()}addSublanguage(Ff,x_){const B_=this.stack[this.stack.length-1],$_=Ff.root.children;x_?B_.children.push({type:"element",tagName:"span",properties:{className:[x_]},children:$_}):B_.children.push(...$_)}openNode(Ff){const x_=Ff.split(".").map(($P,zP)=>zP?$P+"_".repeat(zP):this.options.classPrefix+$P),B_=this.stack[this.stack.length-1],$_={type:"element",tagName:"span",properties:{className:x_},children:[]};B_.children.push($_),this.stack.push($_)}closeNode(){this.stack.pop()}closeAllNodes(){}finalize(){}toHTML(){return""}}const lowlight={highlight:highlight$1,highlightAuto,registerLanguage,registered:registered$1,listLanguages,registerAlias};lowlight.registerLanguage("arduino",arduino),lowlight.registerLanguage("bash",bash),lowlight.registerLanguage("c",c$1),lowlight.registerLanguage("cpp",cpp),lowlight.registerLanguage("csharp",csharp),lowlight.registerLanguage("css",css),lowlight.registerLanguage("diff",diff),lowlight.registerLanguage("go",go$1),lowlight.registerLanguage("graphql",graphql),lowlight.registerLanguage("ini",ini),lowlight.registerLanguage("java",java),lowlight.registerLanguage("javascript",javascript$1),lowlight.registerLanguage("json",json),lowlight.registerLanguage("kotlin",kotlin),lowlight.registerLanguage("less",less),lowlight.registerLanguage("lua",lua),lowlight.registerLanguage("makefile",makefile),lowlight.registerLanguage("markdown",markdown),lowlight.registerLanguage("objectivec",objectivec),lowlight.registerLanguage("perl",perl),lowlight.registerLanguage("php",php),lowlight.registerLanguage("php-template",phpTemplate),lowlight.registerLanguage("plaintext",plaintext),lowlight.registerLanguage("python",python),lowlight.registerLanguage("python-repl",pythonRepl),lowlight.registerLanguage("r",r$2),lowlight.registerLanguage("ruby",ruby),lowlight.registerLanguage("rust",rust),lowlight.registerLanguage("scss",scss),lowlight.registerLanguage("shell",shell),lowlight.registerLanguage("sql",sql),lowlight.registerLanguage("swift",swift),lowlight.registerLanguage("typescript",typescript),lowlight.registerLanguage("vbnet",vbnet),lowlight.registerLanguage("wasm",wasm),lowlight.registerLanguage("xml",xml),lowlight.registerLanguage("yaml",yaml);let getRandomValues;const rnds8=new Uint8Array(16);function rng(){if(!getRandomValues&&(getRandomValues=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!getRandomValues))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return getRandomValues(rnds8)}const byteToHex=[];for(let kh=0;kh<256;++kh)byteToHex.push((kh+256).toString(16).slice(1));function unsafeStringify(kh,Ff=0){return byteToHex[kh[Ff+0]]+byteToHex[kh[Ff+1]]+byteToHex[kh[Ff+2]]+byteToHex[kh[Ff+3]]+"-"+byteToHex[kh[Ff+4]]+byteToHex[kh[Ff+5]]+"-"+byteToHex[kh[Ff+6]]+byteToHex[kh[Ff+7]]+"-"+byteToHex[kh[Ff+8]]+byteToHex[kh[Ff+9]]+"-"+byteToHex[kh[Ff+10]]+byteToHex[kh[Ff+11]]+byteToHex[kh[Ff+12]]+byteToHex[kh[Ff+13]]+byteToHex[kh[Ff+14]]+byteToHex[kh[Ff+15]]}const randomUUID=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),native={randomUUID};function v4$1(kh,Ff,x_){if(native.randomUUID&&!Ff&&!kh)return native.randomUUID();kh=kh||{};const B_=kh.random||(kh.rng||rng)();if(B_[6]=B_[6]&15|64,B_[8]=B_[8]&63|128,Ff){x_=x_||0;for(let $_=0;$_<16;++$_)Ff[x_+$_]=B_[$_];return Ff}return unsafeStringify(B_)}const Heading=Node$1.create({name:"heading",addOptions(){return{levels:[1,2,3,4,5,6],HTMLAttributes:{}}},content:"inline*",group:"block",defining:!0,addAttributes(){return{level:{default:1,rendered:!1},id:{default:null}}},parseHTML(){var kh;return(kh=this==null?void 0:this.options)==null?void 0:kh.levels.map(Ff=>({tag:`h${Ff}`,attrs:{level:Ff}}))},renderHTML({node:kh,HTMLAttributes:Ff}){var $P,zP,e0e,t0e;const B_=this.options.levels.includes(($P=kh==null?void 0:kh.attrs)==null?void 0:$P.level)?(zP=kh==null?void 0:kh.attrs)==null?void 0:zP.level:(e0e=this==null?void 0:this.options)==null?void 0:e0e.levels[0],$_=mergeAttributes((t0e=this==null?void 0:this.options)==null?void 0:t0e.HTMLAttributes,Ff);return $_.id=v4$1(),[`h${B_}`,$_,0]},addCommands(){return{setHeading:kh=>({commands:Ff})=>{var x_,B_;return(B_=(x_=this.options)==null?void 0:x_.levels)!=null&&B_.includes(kh==null?void 0:kh.level)?Ff.setNode(this.name,kh):!1},toggleHeading:kh=>({commands:Ff})=>{var x_,B_;return(B_=(x_=this.options)==null?void 0:x_.levels)!=null&&B_.includes(kh==null?void 0:kh.level)?Ff.toggleNode(this.name,"paragraph",kh):!1}}},addKeyboardShortcuts(){return this.options.levels.reduce((kh,Ff)=>({...kh,[`Mod-Alt-${Ff}`]:()=>this.editor.commands.toggleHeading({level:Ff})}),{})},addInputRules(){return this.options.levels.map(kh=>textblockTypeInputRule({find:new RegExp(`^(#{1,${kh}})\\s$`),type:this.type,getAttributes:{level:kh}}))}}),Document$3=Node$1.create({name:"document",topNode:!0,content:"title block+"}),Paragraph=Node$1.create({name:"paragraph",addOptions(){return{HTMLAttributes:{class:"tiptap-paragraph"}}},group:"block",priority:1e3,content:"inline*",parseHTML(){return[{tag:"p"}]},renderHTML({HTMLAttributes:kh}){return["p",mergeAttributes(this.options.HTMLAttributes,kh),0]},addCommands(){return{setParagraph:()=>({commands:kh})=>kh.setNode(this.name)}}}),Text$1=Node$1.create({name:"text",group:"inline"}),Title=Node$1.create({name:"title",group:"block",content:"inline*",parseHTML(){return[{tag:"div"}]},renderHTML({HTMLAttributes:kh}){return["div",mergeAttributes(this.options.HTMLAttributes,kh),0]},addOptions(){return{HTMLAttributes:{class:"tiptap-title"},limitChar:10,onChange:()=>{},titleEditable:!0}},addKeyboardShortcuts(){return{}},addProseMirrorPlugins(){const{limitChar:kh,onChange:Ff,titleEditable:x_}=this.options,{editor:B_}=this;return[new Plugin({key:new PluginKey("titleLimit"),view:$_=>({update($P,zP){const{state:e0e}=$P,{doc:t0e}=e0e,n0e=t0e.firstChild,r0e=zP.doc.firstChild;x_&&(n0e==null?void 0:n0e.textContent)!==(r0e==null?void 0:r0e.textContent)&&Ff(n0e==null?void 0:n0e.textContent)}}),props:{handleTextInput($_,$P,zP,e0e){var c0e;const{state:t0e}=$_,{selection:n0e,doc:r0e}=t0e,{anchor:i0e,$from:o0e}=n0e,s0e=r0e.firstChild;if(s0e&&i0e<(s0e==null?void 0:s0e.nodeSize)){if(!x_)return!0;if($_.composing)return!1;if(s0e!=null&&s0e.textContent&&((c0e=s0e==null?void 0:s0e.textContent)==null?void 0:c0e.length)>=kh)return!0;const d0e=new RegExp("^[a-zA-Z0-9 \\u4e00-\\u9fa5\\_\\-]+$");if(s0e!=null&&s0e.textContent&&!d0e.test((s0e==null?void 0:s0e.textContent)+e0e))return!0}return!1},handleKeyDown($_,$P){const{state:zP}=$_,{selection:e0e,doc:t0e}=zP,{anchor:n0e,$from:r0e}=e0e,i0e=t0e.firstChild;return $P.key==="Enter"&&i0e&&n0e<=(i0e==null?void 0:i0e.nodeSize)?(B_.commands.focus((i0e==null?void 0:i0e.nodeSize)+1),!0):!1}},filterTransaction($_,$P){if(x_)return!0;{const zP=$_.doc.firstChild,e0e=$P.doc.firstChild;if(B_.isFocused&&(zP==null?void 0:zP.textContent)!==(e0e==null?void 0:e0e.textContent))return!1}return!0}})]}}),Placeholder=Extension.create({name:"placeholder",addOptions(){return{emptyEditorClass:"tiptap-editor-is-empty",emptyNodeClass:"tiptap-is-empty",placeholder:"点击“+”或输入“/”快速添加",showOnlyWhenEditable:!0,considerAnyAsEmpty:!1,showOnlyCurrent:!0,includeChildren:!1}},addProseMirrorPlugins(){return[new Plugin({key:new PluginKey("placeholder"),props:{decorations:({doc:kh,selection:Ff})=>{const x_=this.editor.isEditable||!this.options.showOnlyWhenEditable,{anchor:B_}=Ff,$_=[];if(!x_)return null;const $P=kh.child(1),zP=$P&&$P.type.isLeaf,e0e=$P&&$P.isAtom,t0e=this.options.considerAnyAsEmpty?!0:!!$P,n0e=kh.content.childCount<=2&&$P&&t0e&&$P.nodeSize<=2&&(!zP||!e0e);return kh.descendants((r0e,i0e)=>{const o0e=B_>=i0e&&B_<i0e+r0e.nodeSize,s0e=!r0e.isLeaf&&!r0e.childCount;if(["active","pdf"].includes(r0e.type.name))return this.options.includeChildren;if(r0e.type.name==="title"){if(s0e){const c0e=Decoration.node(i0e,i0e+r0e.nodeSize,{class:"tiptap-title-is-empty","data-placeholder":"未命名,请输入标题"});$_.push(c0e)}}else if(r0e===$P){if(this.editor.isFocused){if((o0e||!this.options.showOnlyCurrent)&&s0e){const c0e=[this.options.emptyNodeClass];n0e&&c0e.push(this.options.emptyEditorClass);const d0e=Decoration.node(i0e,i0e+r0e.nodeSize,{class:c0e.join(" "),"data-placeholder":this.options.placeholder});$_.push(d0e)}}else if(s0e){const c0e=Decoration.node(i0e,i0e+r0e.nodeSize,{class:`tiptap-editor-nofocus-is-empty ${this.options.emptyEditorClass}`,"data-placeholder":"单击此处开始编辑"});$_.push(c0e)}}else if((o0e||!this.options.showOnlyCurrent)&&s0e&&this.editor.isFocused){const c0e=[this.options.emptyNodeClass],d0e=Decoration.node(i0e,i0e+r0e.nodeSize,{class:c0e.join(" "),"data-placeholder":typeof this.options.placeholder=="function"?this.options.placeholder({editor:this.editor,node:r0e,pos:i0e,hasAnchor:o0e}):this.options.placeholder});$_.push(d0e)}return this.options.includeChildren}),DecorationSet.create(kh,$_)}}})]}}),build$1=(kh,Ff,x_,B_)=>{var $P,zP,e0e,t0e,n0e;const $_=new ReactRenderer(($P=kh==null?void 0:kh.options)==null?void 0:$P.component,{editor:kh==null?void 0:kh.editor,props:{editor:kh==null?void 0:kh.editor,from:Ff,to:x_,tipShow:B_}});!$_||!($_!=null&&$_.element)||((e0e=(zP=kh==null?void 0:kh.options)==null?void 0:zP.tippy)==null||e0e.setContent($_==null?void 0:$_.element),(n0e=(t0e=kh==null?void 0:kh.options)==null?void 0:t0e.tippy)==null||n0e.setProps({getReferenceClientRect:()=>{var r0e;return posToDOMRect((r0e=kh==null?void 0:kh.editor)==null?void 0:r0e.view,Ff,x_)}}))},isIgnoreTypes=(kh,Ff,x_)=>{var e0e,t0e,n0e,r0e,i0e,o0e;const B_=(t0e=(e0e=kh==null?void 0:kh.editor)==null?void 0:e0e.view)==null?void 0:t0e.domAtPos(Ff,x_);if(!B_)return!1;const{node:$_}=B_;let $P=$_;if(!$P)return!0;for(;!($P!=null&&$P.pmViewDesc)&&($P!=null&&$P.parentElement)&&($P=$P==null?void 0:$P.parentElement,!($P!=null&&$P.pmViewDesc)););if(!$P||!($P!=null&&$P.pmViewDesc))return!0;let zP=$P==null?void 0:$P.pmViewDesc;for(;zP;){if((o0e=(n0e=kh==null?void 0:kh.options)==null?void 0:n0e.ignoreTypes)!=null&&o0e.includes((i0e=(r0e=zP==null?void 0:zP.node)==null?void 0:r0e.type)==null?void 0:i0e.name))return!0;zP=zP==null?void 0:zP.parent}return!1},BubbleMenu$1=Extension.create({name:"bubbleMenu",onCreate(){var kh,Ff,x_;!((kh=this==null?void 0:this.options)!=null&&kh.tippy)&&(this.options.tippy=tippy((x_=(Ff=this==null?void 0:this.editor)==null?void 0:Ff.view)==null?void 0:x_.dom,{getReferenceClientRect:null,appendTo:document.body,hideOnClick:!0,interactive:!0,trigger:"manual",placement:"bottom-start",maxWidth:"none"}))},onTransaction(){var zP,e0e,t0e,n0e,r0e,i0e,o0e,s0e,c0e,d0e,a0e,l0e;if(document.querySelectorAll(".h-link").length>0||!((zP=this==null?void 0:this.editor)!=null&&zP.isFocused)||!((e0e=this==null?void 0:this.editor)!=null&&e0e.isEditable)||!((t0e=this==null?void 0:this.options)!=null&&t0e.component))return;const Ff=(i0e=(r0e=(n0e=this==null?void 0:this.editor)==null?void 0:n0e.view)==null?void 0:r0e.state)==null?void 0:i0e.selection,{empty:x_,from:B_,to:$_,anchor:$P}=Ff;if(x_||B_===$_||((s0e=(o0e=Ff==null?void 0:Ff.node)==null?void 0:o0e.type)==null?void 0:s0e.name)==="image"){(d0e=(c0e=this==null?void 0:this.options)==null?void 0:c0e.tippy)==null||d0e.hide();return}else{let u0e=!1;const{doc:h0e}=this.editor.state;if(h0e.descendants((f0e,p0e)=>{const g0e=$P>=p0e&&$P<p0e+f0e.nodeSize;return f0e.type.name==="active"&&g0e&&(u0e=!0),!1}),u0e){(l0e=(a0e=this==null?void 0:this.options)==null?void 0:a0e.tippy)==null||l0e.hide();return}}build$1(this,B_,$_)},onSelectionUpdate(){var Ff,x_,B_;document.querySelectorAll(".h-link").length>0||((Ff=this==null?void 0:this.options)!=null&&Ff.debounce&&clearTimeout((x_=this==null?void 0:this.options)==null?void 0:x_.debounce),this.options.debounce=setTimeout(()=>{var t0e,n0e,r0e,i0e,o0e,s0e,c0e,d0e,a0e,l0e,u0e,h0e,f0e,p0e;if(!((t0e=this==null?void 0:this.editor)!=null&&t0e.isFocused)||!((n0e=this==null?void 0:this.editor)!=null&&n0e.isEditable)||!((r0e=this==null?void 0:this.options)!=null&&r0e.component))return;const $_=(s0e=(o0e=(i0e=this==null?void 0:this.editor)==null?void 0:i0e.view)==null?void 0:o0e.state)==null?void 0:s0e.selection,{empty:$P,from:zP,to:e0e}=$_;$P||zP===e0e||zP===0||(d0e=(c0e=this==null?void 0:this.options)==null?void 0:c0e.ignoreTypes)!=null&&d0e.length&&isIgnoreTypes(this,zP,(e0e-zP)/2)||(build$1(this,zP,e0e),(l0e=(a0e=this==null?void 0:this.editor)==null?void 0:a0e.commands)!=null&&l0e.hideTip&&((h0e=(u0e=this==null?void 0:this.editor)==null?void 0:u0e.commands)==null||h0e.hideTip()),(p0e=(f0e=this==null?void 0:this.editor)==null?void 0:f0e.commands)==null||p0e.showBubbleMenu())},((B_=this==null?void 0:this.options)==null?void 0:B_.delay)??100))},onDestroy(){var kh,Ff,x_,B_;(Ff=(kh=this.options)==null?void 0:kh.tippy)==null||Ff.destroy(),(x_=this.options)!=null&&x_.debounce&&clearTimeout((B_=this==null?void 0:this.options)==null?void 0:B_.debounce),this.options.tippy=null,this.options.debounce=null},addOptions(){return{ignoreTypes:["codeBlock","title","image"],component:null,zIndex:9999,tippy:null,delay:100,debounce:null}},addCommands(){return{showBubbleMenu:kh=>()=>{var x_,B_,$_,$P,zP,e0e;return kh&&(build$1(this,kh==null?void 0:kh.from,kh==null?void 0:kh.to,!0),(B_=(x_=this==null?void 0:this.editor)==null?void 0:x_.commands)==null||B_.hideLinkTip()),($P=($_=this==null?void 0:this.options)==null?void 0:$_.tippy)==null||$P.show(),document.querySelectorAll(".lintView").length>0&&((e0e=(zP=this==null?void 0:this.editor)==null?void 0:zP.commands)==null||e0e.hideLinkTip()),!0},hideBubbleMenu:()=>()=>{var kh,Ff;return(Ff=(kh=this==null?void 0:this.options)==null?void 0:kh.tippy)==null||Ff.hide(),!0}}}}),setAlign=kh=>{if(kh!=null&&kh.isActive({textAlign:"left"}))return"left";if(kh!=null&&kh.isActive({textAlign:"center"}))return"center";if(kh!=null&&kh.isActive({textAlign:"right"}))return"right"},textDropDown=kh=>{const Ff=x_=>{var $_,$P,zP,e0e;const B_=setAlign(kh)??"left";(e0e=(zP=($P=($_=kh==null?void 0:kh.chain())==null?void 0:$_.focus())==null?void 0:$P.toggleHeading({level:x_}))==null?void 0:zP.setTextAlign(B_))==null||e0e.run()};return[{label:jsxRuntimeExports.jsxs("div",{className:"MenuProps-item",children:[jsxRuntimeExports.jsxs("div",{className:"MenuProps-item-left",children:[jsxRuntimeExports.jsx("div",{style:{width:"16px",height:"16px"},className:kh!=null&&kh.isActive("paragraph")?"":"MenuProps-item-left-svg",children:jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:kh!=null&&kh.isActive("paragraph")?"#1677FF":"#999999",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M8.66732 4.00033V14.0003H7.33398V4.00033H3.33398V2.66699H12.6673V4.00033H8.66732Z"})})}),jsxRuntimeExports.jsx("div",{className:kh!=null&&kh.isActive("paragraph")?"":"MenuProps-item-left-text",style:{fontSize:"13px",marginLeft:"16px",color:kh!=null&&kh.isActive("paragraph")?"#1677FF":"#666666"},children:"文本"})]}),(kh==null?void 0:kh.isActive("paragraph"))&&jsxRuntimeExports.jsx("div",{style:{height:"16px",width:"16px"},children:jsxRuntimeExports.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsxRuntimeExports.jsx("path",{d:"M7.11535 11.422C6.97707 11.422 6.83801 11.3744 6.72488 11.2772L3.67347 8.65437C3.42254 8.43859 3.39394 8.06015 3.60957 7.80922C3.82535 7.55828 4.20379 7.52969 4.45472 7.74531L7.50613 10.3681C7.75707 10.5839 7.78566 10.9623 7.57004 11.2133C7.4516 11.3512 7.28394 11.422 7.11535 11.422Z",fill:"#1677FF"}),jsxRuntimeExports.jsx("path",{d:"M7.34114 11.4222C7.20817 11.4222 7.07442 11.3782 6.96332 11.2879C6.70661 11.079 6.6677 10.7015 6.87661 10.4447L11.4694 4.79834C11.6783 4.54146 12.0558 4.50271 12.3125 4.71162C12.5693 4.92052 12.6082 5.29802 12.3993 5.55474L7.80645 11.2011C7.68801 11.3466 7.5152 11.4222 7.34114 11.4222Z",fill:"#1677FF"})]})})]}),key:"paragraph",onClick:()=>{var B_,$_,$P,zP;const x_=setAlign(kh)??"left";(zP=($P=($_=(B_=kh==null?void 0:kh.chain())==null?void 0:B_.focus())==null?void 0:$_.setParagraph())==null?void 0:$P.setTextAlign(x_))==null||zP.run()}},{label:jsxRuntimeExports.jsxs("div",{className:"MenuProps-item",children:[jsxRuntimeExports.jsxs("div",{className:"MenuProps-item-left",children:[jsxRuntimeExports.jsx("div",{style:{width:"16px",height:"16px"},className:kh!=null&&kh.isActive("heading",{level:1})?"":"MenuProps-item-left-svg",children:jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:kh!=null&&kh.isActive("heading",{level:1})?"#1677FF":"#999999",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M8.66732 13.3337H7.33398V8.66699H2.66732V13.3337H1.33398V2.66699H2.66732V7.33366H7.33398V2.66699H8.66732V13.3337ZM14.001 5.33366V13.3337H12.6677L12.6673 6.80299L11.334 7.16033V5.78033L13.001 5.33366H14.001Z"})})}),jsxRuntimeExports.jsx("div",{className:kh!=null&&kh.isActive("heading",{level:1})?"":"MenuProps-item-left-text",style:{fontSize:"13px",marginLeft:"16px",color:kh!=null&&kh.isActive("heading",{level:1})?"#1677FF":"#666666"},children:"一级标题"})]}),(kh==null?void 0:kh.isActive("heading",{level:1}))&&jsxRuntimeExports.jsx("div",{style:{height:"16px",width:"16px"},children:jsxRuntimeExports.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsxRuntimeExports.jsx("path",{d:"M7.11535 11.422C6.97707 11.422 6.83801 11.3744 6.72488 11.2772L3.67347 8.65437C3.42254 8.43859 3.39394 8.06015 3.60957 7.80922C3.82535 7.55828 4.20379 7.52969 4.45472 7.74531L7.50613 10.3681C7.75707 10.5839 7.78566 10.9623 7.57004 11.2133C7.4516 11.3512 7.28394 11.422 7.11535 11.422Z",fill:"#1677FF"}),jsxRuntimeExports.jsx("path",{d:"M7.34114 11.4222C7.20817 11.4222 7.07442 11.3782 6.96332 11.2879C6.70661 11.079 6.6677 10.7015 6.87661 10.4447L11.4694 4.79834C11.6783 4.54146 12.0558 4.50271 12.3125 4.71162C12.5693 4.92052 12.6082 5.29802 12.3993 5.55474L7.80645 11.2011C7.68801 11.3466 7.5152 11.4222 7.34114 11.4222Z",fill:"#1677FF"})]})})]}),key:"heading1",onClick:()=>{Ff(1)}},{label:jsxRuntimeExports.jsxs("div",{className:"MenuProps-item",children:[jsxRuntimeExports.jsxs("div",{className:"MenuProps-item-left",children:[jsxRuntimeExports.jsx("div",{style:{width:"16px",height:"16px"},className:kh!=null&&kh.isActive("heading",{level:2})?"":"MenuProps-item-left-svg",children:jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:kh!=null&&kh.isActive("heading",{level:2})?"#1677FF":"#999999",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M2.66732 2.66699V7.33366H7.33398V2.66699H8.66732V13.3337H7.33398V8.66699H2.66732V13.3337H1.33398V2.66699H2.66732ZM12.334 5.33366C13.7147 5.33366 14.834 6.45295 14.834 7.83366C14.834 8.40526 14.6422 8.93206 14.3194 9.35312L14.2208 9.47379L12.0235 12.0003H14.6673V13.3337H10.0007L10.0002 12.2963L13.2145 8.59906C13.3927 8.39419 13.5007 8.12653 13.5007 7.83366C13.5007 7.18933 12.9783 6.66699 12.334 6.66699C11.7219 6.66699 11.2199 7.13839 11.1712 7.73799L11.1673 7.83366H9.83398C9.83398 6.45295 10.9533 5.33366 12.334 5.33366Z"})})}),jsxRuntimeExports.jsx("div",{className:kh!=null&&kh.isActive("heading",{level:2})?"":"MenuProps-item-left-text",style:{fontSize:"13px",marginLeft:"16px",color:kh!=null&&kh.isActive("heading",{level:2})?"#1677FF":"#666666"},children:"二级标题"})]}),(kh==null?void 0:kh.isActive("heading",{level:2}))&&jsxRuntimeExports.jsx("div",{style:{height:"16px",width:"16px"},children:jsxRuntimeExports.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsxRuntimeExports.jsx("path",{d:"M7.11535 11.422C6.97707 11.422 6.83801 11.3744 6.72488 11.2772L3.67347 8.65437C3.42254 8.43859 3.39394 8.06015 3.60957 7.80922C3.82535 7.55828 4.20379 7.52969 4.45472 7.74531L7.50613 10.3681C7.75707 10.5839 7.78566 10.9623 7.57004 11.2133C7.4516 11.3512 7.28394 11.422 7.11535 11.422Z",fill:"#1677FF"}),jsxRuntimeExports.jsx("path",{d:"M7.34114 11.4222C7.20817 11.4222 7.07442 11.3782 6.96332 11.2879C6.70661 11.079 6.6677 10.7015 6.87661 10.4447L11.4694 4.79834C11.6783 4.54146 12.0558 4.50271 12.3125 4.71162C12.5693 4.92052 12.6082 5.29802 12.3993 5.55474L7.80645 11.2011C7.68801 11.3466 7.5152 11.4222 7.34114 11.4222Z",fill:"#1677FF"})]})})]}),key:"heading2",onClick:()=>{Ff(2)}},{label:jsxRuntimeExports.jsxs("div",{className:"MenuProps-item",children:[jsxRuntimeExports.jsxs("div",{className:"MenuProps-item-left",children:[jsxRuntimeExports.jsx("div",{style:{width:"16px",height:"16px"},className:kh!=null&&kh.isActive("heading",{level:3})?"":"MenuProps-item-left-svg",children:jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:kh!=null&&kh.isActive("heading",{level:3})?"#1677FF":"#999999",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M14.6673 5.33366L14.6663 6.66699L12.9963 8.58899C14.0555 8.87926 14.834 9.84886 14.834 11.0003C14.834 12.3811 13.7147 13.5003 12.334 13.5003C11.1167 13.5003 10.1025 12.6303 9.87958 11.4781L11.1887 11.2238C11.2929 11.7612 11.7661 12.167 12.334 12.167C12.9783 12.167 13.5007 11.6447 13.5007 11.0003C13.5007 10.356 12.9783 9.83366 12.334 9.83366C12.1433 9.83366 11.9633 9.87939 11.8044 9.96053L10.9335 8.92913L12.8996 6.66699H10.0007V5.33366H14.6673ZM2.66732 2.66699V7.33366H7.33398V2.66699H8.66732V13.3337H7.33398V8.66699H2.66732V13.3337H1.33398V2.66699H2.66732Z"})})}),jsxRuntimeExports.jsx("div",{className:kh!=null&&kh.isActive("heading",{level:3})?"":"MenuProps-item-left-text",style:{fontSize:"13px",marginLeft:"16px",color:kh!=null&&kh.isActive("heading",{level:3})?"#1677FF":"#666666"},children:"三级标题"})]}),(kh==null?void 0:kh.isActive("heading",{level:3}))&&jsxRuntimeExports.jsx("div",{style:{height:"16px",width:"16px"},children:jsxRuntimeExports.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsxRuntimeExports.jsx("path",{d:"M7.11535 11.422C6.97707 11.422 6.83801 11.3744 6.72488 11.2772L3.67347 8.65437C3.42254 8.43859 3.39394 8.06015 3.60957 7.80922C3.82535 7.55828 4.20379 7.52969 4.45472 7.74531L7.50613 10.3681C7.75707 10.5839 7.78566 10.9623 7.57004 11.2133C7.4516 11.3512 7.28394 11.422 7.11535 11.422Z",fill:"#1677FF"}),jsxRuntimeExports.jsx("path",{d:"M7.34114 11.4222C7.20817 11.4222 7.07442 11.3782 6.96332 11.2879C6.70661 11.079 6.6677 10.7015 6.87661 10.4447L11.4694 4.79834C11.6783 4.54146 12.0558 4.50271 12.3125 4.71162C12.5693 4.92052 12.6082 5.29802 12.3993 5.55474L7.80645 11.2011C7.68801 11.3466 7.5152 11.4222 7.34114 11.4222Z",fill:"#1677FF"})]})})]}),key:"heading3",onClick:()=>{Ff(3)}},{label:jsxRuntimeExports.jsxs("div",{className:"MenuProps-item",children:[jsxRuntimeExports.jsxs("div",{className:"MenuProps-item-left",children:[jsxRuntimeExports.jsx("div",{style:{width:"16px",height:"16px"},className:kh!=null&&kh.isActive("heading",{level:4})?"":"MenuProps-item-left-svg",children:jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:kh!=null&&kh.isActive("heading",{level:4})?"#1677FF":"#999999",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M8.66732 13.3337H7.33398V8.66699H2.66732V13.3337H1.33398V2.66699H2.66732V7.33366H7.33398V2.66699H8.66732V13.3337ZM14.6673 5.33366V10.667H15.6673V12.0003H14.6673V13.3337H13.334V12.0003H9.66732V11.107L13.0007 5.33366H14.6673ZM13.334 7.42233L11.4607 10.667H13.334V7.42233Z"})})}),jsxRuntimeExports.jsx("div",{className:kh!=null&&kh.isActive("heading",{level:4})?"":"MenuProps-item-left-text",style:{fontSize:"13px",marginLeft:"16px",color:kh!=null&&kh.isActive("heading",{level:4})?"#1677FF":"#666666"},children:"四级标题"})]}),(kh==null?void 0:kh.isActive("heading",{level:4}))&&jsxRuntimeExports.jsx("div",{style:{height:"16px",width:"16px"},children:jsxRuntimeExports.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsxRuntimeExports.jsx("path",{d:"M7.11535 11.422C6.97707 11.422 6.83801 11.3744 6.72488 11.2772L3.67347 8.65437C3.42254 8.43859 3.39394 8.06015 3.60957 7.80922C3.82535 7.55828 4.20379 7.52969 4.45472 7.74531L7.50613 10.3681C7.75707 10.5839 7.78566 10.9623 7.57004 11.2133C7.4516 11.3512 7.28394 11.422 7.11535 11.422Z",fill:"#1677FF"}),jsxRuntimeExports.jsx("path",{d:"M7.34114 11.4222C7.20817 11.4222 7.07442 11.3782 6.96332 11.2879C6.70661 11.079 6.6677 10.7015 6.87661 10.4447L11.4694 4.79834C11.6783 4.54146 12.0558 4.50271 12.3125 4.71162C12.5693 4.92052 12.6082 5.29802 12.3993 5.55474L7.80645 11.2011C7.68801 11.3466 7.5152 11.4222 7.34114 11.4222Z",fill:"#1677FF"})]})})]}),key:"heading4",onClick:()=>{Ff(4)}},{label:jsxRuntimeExports.jsxs("div",{className:"MenuProps-item",children:[jsxRuntimeExports.jsxs("div",{className:"MenuProps-item-left",children:[jsxRuntimeExports.jsx("div",{style:{width:"16px",height:"16px"},className:kh!=null&&kh.isActive("heading",{level:5})?"":"MenuProps-item-left-svg",children:jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:kh!=null&&kh.isActive("heading",{level:5})?"#1677FF":"#999999",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M14.6673 5.33366V6.66699H11.7853L11.4757 8.42419C11.6963 8.36513 11.9281 8.33366 12.1673 8.33366C13.6401 8.33366 14.834 9.52759 14.834 11.0003C14.834 12.4731 13.6401 13.667 12.1673 13.667C10.9495 13.667 9.92245 12.8507 9.60325 11.7355L10.8854 11.3683C11.0451 11.9257 11.5586 12.3337 12.1673 12.3337C12.9037 12.3337 13.5007 11.7367 13.5007 11.0003C13.5007 10.2639 12.9037 9.66699 12.1673 9.66699C11.7469 9.66699 11.372 9.86153 11.1276 10.1655L9.92085 9.56293L10.6673 5.33366H14.6673ZM2.66732 2.66699V7.33366H7.33398V2.66699H8.66732V13.3337H7.33398V8.66699H2.66732V13.3337H1.33398V2.66699H2.66732Z"})})}),jsxRuntimeExports.jsx("div",{className:kh!=null&&kh.isActive("heading",{level:5})?"":"MenuProps-item-left-text",style:{fontSize:"13px",marginLeft:"16px",color:kh!=null&&kh.isActive("heading",{level:5})?"#1677FF":"#666666"},children:"五级标题"})]}),(kh==null?void 0:kh.isActive("heading",{level:5}))&&jsxRuntimeExports.jsx("div",{style:{height:"16px",width:"16px"},children:jsxRuntimeExports.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsxRuntimeExports.jsx("path",{d:"M7.11535 11.422C6.97707 11.422 6.83801 11.3744 6.72488 11.2772L3.67347 8.65437C3.42254 8.43859 3.39394 8.06015 3.60957 7.80922C3.82535 7.55828 4.20379 7.52969 4.45472 7.74531L7.50613 10.3681C7.75707 10.5839 7.78566 10.9623 7.57004 11.2133C7.4516 11.3512 7.28394 11.422 7.11535 11.422Z",fill:"#1677FF"}),jsxRuntimeExports.jsx("path",{d:"M7.34114 11.4222C7.20817 11.4222 7.07442 11.3782 6.96332 11.2879C6.70661 11.079 6.6677 10.7015 6.87661 10.4447L11.4694 4.79834C11.6783 4.54146 12.0558 4.50271 12.3125 4.71162C12.5693 4.92052 12.6082 5.29802 12.3993 5.55474L7.80645 11.2011C7.68801 11.3466 7.5152 11.4222 7.34114 11.4222Z",fill:"#1677FF"})]})})]}),key:"heading5",onClick:()=>{Ff(5)}},{label:jsxRuntimeExports.jsxs("div",{className:"MenuProps-item",children:[jsxRuntimeExports.jsxs("div",{className:"MenuProps-item-left",children:[jsxRuntimeExports.jsx("div",{style:{width:"16px",height:"16px"},className:kh!=null&&kh.isActive("heading",{level:6})?"":"MenuProps-item-left-svg",children:jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:kh!=null&&kh.isActive("heading",{level:6})?"#1677FF":"#999999",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M14.0653 5.33366L12.3333 8.33366C13.8067 8.33366 15.0007 9.52759 15.0007 11.0003C15.0007 12.4731 13.8067 13.667 12.334 13.667C10.8613 13.667 9.66732 12.4731 9.66732 11.0003C9.66732 10.5094 9.79998 10.0495 10.0314 9.65439L12.526 5.33366H14.0653ZM2.66732 2.66699V7.33366H7.33398V2.66699H8.66732V13.3337H7.33398V8.66699H2.66732V13.3337H1.33398V2.66699H2.66732ZM12.334 9.66699C11.5976 9.66699 11.0007 10.2639 11.0007 11.0003C11.0007 11.7367 11.5976 12.3337 12.334 12.3337C13.0704 12.3337 13.6673 11.7367 13.6673 11.0003C13.6673 10.2639 13.0704 9.66699 12.334 9.66699Z"})})}),jsxRuntimeExports.jsx("div",{className:kh!=null&&kh.isActive("heading",{level:6})?"":"MenuProps-item-left-text",style:{fontSize:"13px",marginLeft:"16px",color:kh!=null&&kh.isActive("heading",{level:6})?"#1677FF":"#666666"},children:"六级标题"})]}),(kh==null?void 0:kh.isActive("heading",{level:6}))&&jsxRuntimeExports.jsx("div",{style:{height:"16px",width:"16px"},children:jsxRuntimeExports.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsxRuntimeExports.jsx("path",{d:"M7.11535 11.422C6.97707 11.422 6.83801 11.3744 6.72488 11.2772L3.67347 8.65437C3.42254 8.43859 3.39394 8.06015 3.60957 7.80922C3.82535 7.55828 4.20379 7.52969 4.45472 7.74531L7.50613 10.3681C7.75707 10.5839 7.78566 10.9623 7.57004 11.2133C7.4516 11.3512 7.28394 11.422 7.11535 11.422Z",fill:"#1677FF"}),jsxRuntimeExports.jsx("path",{d:"M7.34114 11.4222C7.20817 11.4222 7.07442 11.3782 6.96332 11.2879C6.70661 11.079 6.6677 10.7015 6.87661 10.4447L11.4694 4.79834C11.6783 4.54146 12.0558 4.50271 12.3125 4.71162C12.5693 4.92052 12.6082 5.29802 12.3993 5.55474L7.80645 11.2011C7.68801 11.3466 7.5152 11.4222 7.34114 11.4222Z",fill:"#1677FF"})]})})]}),key:"heading6",onClick:()=>{Ff(6)}}]},alignDropDown=kh=>[{label:jsxRuntimeExports.jsxs("div",{className:"MenuProps-item",children:[jsxRuntimeExports.jsxs("div",{className:"MenuProps-item-left",children:[jsxRuntimeExports.jsx("div",{style:{width:"16px",height:"16px"},className:kh!=null&&kh.isActive({textAlign:"left"})?"":"MenuProps-item-left-svg",children:jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:kh!=null&&kh.isActive({textAlign:"left"})?"#1677FF":"#999999",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M2 2.66699H14V4.00033H2V2.66699ZM2 12.667H11.3333V14.0003H2V12.667ZM2 9.33366H14V10.667H2V9.33366ZM2 6.00033H11.3333V7.33366H2V6.00033Z"})})}),jsxRuntimeExports.jsx("div",{className:kh!=null&&kh.isActive({textAlign:"left"})?"":"MenuProps-item-left-text",style:{fontSize:"13px",marginLeft:"16px",color:kh!=null&&kh.isActive({textAlign:"left"})?"#1677FF":"#666666"},children:"左对齐"})]}),(kh==null?void 0:kh.isActive({textAlign:"left"}))&&jsxRuntimeExports.jsx("div",{style:{height:"16px",width:"16px"},children:jsxRuntimeExports.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsxRuntimeExports.jsx("path",{d:"M7.11535 11.422C6.97707 11.422 6.83801 11.3744 6.72488 11.2772L3.67347 8.65437C3.42254 8.43859 3.39394 8.06015 3.60957 7.80922C3.82535 7.55828 4.20379 7.52969 4.45472 7.74531L7.50613 10.3681C7.75707 10.5839 7.78566 10.9623 7.57004 11.2133C7.4516 11.3512 7.28394 11.422 7.11535 11.422Z",fill:"#1677FF"}),jsxRuntimeExports.jsx("path",{d:"M7.34114 11.4222C7.20817 11.4222 7.07442 11.3782 6.96332 11.2879C6.70661 11.079 6.6677 10.7015 6.87661 10.4447L11.4694 4.79834C11.6783 4.54146 12.0558 4.50271 12.3125 4.71162C12.5693 4.92052 12.6082 5.29802 12.3993 5.55474L7.80645 11.2011C7.68801 11.3466 7.5152 11.4222 7.34114 11.4222Z",fill:"#1677FF"})]})})]}),key:"left",onClick:()=>{var Ff,x_,B_;(B_=(x_=(Ff=kh==null?void 0:kh.chain())==null?void 0:Ff.focus())==null?void 0:x_.setTextAlign("left"))==null||B_.run()}},{label:jsxRuntimeExports.jsxs("div",{className:"MenuProps-item",children:[jsxRuntimeExports.jsxs("div",{className:"MenuProps-item-left",children:[jsxRuntimeExports.jsx("div",{style:{width:"16px",height:"16px"},className:kh!=null&&kh.isActive({textAlign:"center"})?"":"MenuProps-item-left-svg",children:jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:kh!=null&&kh.isActive({textAlign:"center"})?"#1677FF":"#999999",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M2 2.66699H14V4.00033H2V2.66699ZM3.33333 12.667H12.6667V14.0003H3.33333V12.667ZM2 9.33366H14V10.667H2V9.33366ZM3.33333 6.00033H12.6667V7.33366H3.33333V6.00033Z"})})}),jsxRuntimeExports.jsx("div",{className:kh!=null&&kh.isActive({textAlign:"center"})?"":"MenuProps-item-left-text",style:{fontSize:"13px",marginLeft:"16px",color:kh!=null&&kh.isActive({textAlign:"center"})?"#1677FF":"#666666"},children:"居中对齐"})]}),(kh==null?void 0:kh.isActive({textAlign:"center"}))&&jsxRuntimeExports.jsx("div",{style:{height:"16px",width:"16px"},children:jsxRuntimeExports.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsxRuntimeExports.jsx("path",{d:"M7.11535 11.422C6.97707 11.422 6.83801 11.3744 6.72488 11.2772L3.67347 8.65437C3.42254 8.43859 3.39394 8.06015 3.60957 7.80922C3.82535 7.55828 4.20379 7.52969 4.45472 7.74531L7.50613 10.3681C7.75707 10.5839 7.78566 10.9623 7.57004 11.2133C7.4516 11.3512 7.28394 11.422 7.11535 11.422Z",fill:"#1677FF"}),jsxRuntimeExports.jsx("path",{d:"M7.34114 11.4222C7.20817 11.4222 7.07442 11.3782 6.96332 11.2879C6.70661 11.079 6.6677 10.7015 6.87661 10.4447L11.4694 4.79834C11.6783 4.54146 12.0558 4.50271 12.3125 4.71162C12.5693 4.92052 12.6082 5.29802 12.3993 5.55474L7.80645 11.2011C7.68801 11.3466 7.5152 11.4222 7.34114 11.4222Z",fill:"#1677FF"})]})})]}),key:"center",onClick:()=>{var Ff,x_,B_;(B_=(x_=(Ff=kh==null?void 0:kh.chain())==null?void 0:Ff.focus())==null?void 0:x_.setTextAlign("center"))==null||B_.run()}},{label:jsxRuntimeExports.jsxs("div",{className:"MenuProps-item",children:[jsxRuntimeExports.jsxs("div",{className:"MenuProps-item-left",children:[jsxRuntimeExports.jsx("div",{style:{width:"16px",height:"16px"},className:kh!=null&&kh.isActive({textAlign:"right"})?"":"MenuProps-item-left-svg",children:jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:kh!=null&&kh.isActive({textAlign:"right"})?"#1677FF":"#999999",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M2 2.66699H14V4.00033H2V2.66699ZM4.66667 12.667H14V14.0003H4.66667V12.667ZM2 9.33366H14V10.667H2V9.33366ZM4.66667 6.00033H14V7.33366H4.66667V6.00033Z"})})}),jsxRuntimeExports.jsx("div",{className:kh!=null&&kh.isActive({textAlign:"right"})?"":"MenuProps-item-left-text",style:{fontSize:"13px",marginLeft:"16px",color:kh!=null&&kh.isActive({textAlign:"right"})?"#1677FF":"#666666"},children:"右对齐"})]}),(kh==null?void 0:kh.isActive({textAlign:"right"}))&&jsxRuntimeExports.jsx("div",{style:{height:"16px",width:"16px"},children:jsxRuntimeExports.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsxRuntimeExports.jsx("path",{d:"M7.11535 11.422C6.97707 11.422 6.83801 11.3744 6.72488 11.2772L3.67347 8.65437C3.42254 8.43859 3.39394 8.06015 3.60957 7.80922C3.82535 7.55828 4.20379 7.52969 4.45472 7.74531L7.50613 10.3681C7.75707 10.5839 7.78566 10.9623 7.57004 11.2133C7.4516 11.3512 7.28394 11.422 7.11535 11.422Z",fill:"#1677FF"}),jsxRuntimeExports.jsx("path",{d:"M7.34114 11.4222C7.20817 11.4222 7.07442 11.3782 6.96332 11.2879C6.70661 11.079 6.6677 10.7015 6.87661 10.4447L11.4694 4.79834C11.6783 4.54146 12.0558 4.50271 12.3125 4.71162C12.5693 4.92052 12.6082 5.29802 12.3993 5.55474L7.80645 11.2011C7.68801 11.3466 7.5152 11.4222 7.34114 11.4222Z",fill:"#1677FF"})]})})]}),key:"right",onClick:()=>{var Ff,x_,B_;(B_=(x_=(Ff=kh==null?void 0:kh.chain())==null?void 0:Ff.focus())==null?void 0:x_.setTextAlign("right"))==null||B_.run()}}],HyperlinkContent=kh=>{const{editor:Ff,from:x_,to:B_,changeLink:$_}=kh,$P=React.useRef(null),[zP,e0e]=React.useState(),[t0e,n0e]=React.useState(),[r0e,i0e]=React.useState(!1),o0e=()=>{$_&&$_()},s0e=()=>{var d0e,a0e,l0e,u0e,h0e,f0e;if(t0e&&c0e(t0e)){const p0e=Ff==null?void 0:Ff.view,g0e=p0e==null?void 0:p0e.state.tr;g0e&&(g0e==null||g0e.deleteRange(x_,B_),zP?g0e==null||g0e.insertText(zP,x_):g0e==null||g0e.insertText(t0e,x_),p0e==null||p0e.dispatch(g0e));const y0e=(d0e=p0e==null?void 0:p0e.state)==null?void 0:d0e.selection.to;console.log(p0e,y0e),(a0e=Ff==null?void 0:Ff.commands)==null||a0e.setTextSelection({from:x_,to:y0e??x_}),(l0e=Ff==null?void 0:Ff.view)==null||l0e.focus(),(f0e=(h0e=(u0e=Ff==null?void 0:Ff.chain())==null?void 0:u0e.focus())==null?void 0:h0e.setLink({href:t0e,target:"_blank"}))==null||f0e.run(),$_&&$_()}},c0e=d0e=>/^https?:\/\//.test(d0e);return React.useEffect(()=>{var f0e,p0e;if(!Ff)return;const d0e=Ff.state.doc,a0e=(p0e=(f0e=Ff==null?void 0:Ff.view)==null?void 0:f0e.state)==null?void 0:p0e.selection,{$from:l0e,$to:u0e}=a0e,h0e=d0e.textBetween(l0e.pos,u0e.pos," ");if(e0e(h0e??""),Ff!=null&&Ff.isActive("link")){const g0e=l0e.node();g0e==null||g0e.forEach(y0e=>{var m0e;y0e!=null&&y0e.marks&&((m0e=y0e==null?void 0:y0e.marks)==null||m0e.forEach(v0e=>{var b0e,E0e,w0e,O0e;(b0e=v0e==null?void 0:v0e.attrs)!=null&&b0e.href&&n0e(((E0e=v0e==null?void 0:v0e.attrs)==null?void 0:E0e.href)??""),(w0e=v0e==null?void 0:v0e.attrs)!=null&&w0e.href&&c0e((O0e=v0e==null?void 0:v0e.attrs)==null?void 0:O0e.href)}))})}},[Ff,x_,B_]),jsxRuntimeExports.jsxs("div",{className:"h-link",onClick:()=>{},children:[jsxRuntimeExports.jsxs("div",{className:"h-link-line",children:[jsxRuntimeExports.jsx("div",{className:"text",children:"文本"}),jsxRuntimeExports.jsx(antd.Input,{placeholder:"请输入文本",value:zP,onChange:d0e=>{e0e(d0e.target.value)}})]}),jsxRuntimeExports.jsxs("div",{className:"h-link-line",children:[jsxRuntimeExports.jsx("div",{className:"text",children:"链接"}),jsxRuntimeExports.jsx(antd.Input,{ref:$P,placeholder:"请粘贴或输入链接",onBlur:()=>{c0e(t0e)||!t0e?i0e(!1):i0e(!0)},onFocus:()=>{i0e(!1)},value:t0e,onChange:d0e=>{c0e(d0e.target.value),n0e(d0e.target.value)}}),r0e&&jsxRuntimeExports.jsx("div",{className:"h-link-line-tip",children:"请输入链接"})]}),jsxRuntimeExports.jsxs("div",{className:"h-link-bottoms",children:[jsxRuntimeExports.jsx("div",{className:"cancleBtn",onClick:o0e,children:"取消"}),jsxRuntimeExports.jsx("div",{className:"conBtn",style:{background:t0e&&c0e(t0e)?"#1677FF":"#cccccc",cursor:t0e&&c0e(t0e)?"pointer":"not-allowed"},onClick:()=>{s0e()},children:"确定"})]})]})},BubbleMenuView$1=kh=>{var o0e,s0e,c0e,d0e,a0e,l0e,u0e,h0e,f0e,p0e,g0e,y0e,m0e,v0e,b0e,E0e,w0e,O0e,T0e,B0e;const{editor:Ff,from:x_,to:B_,tipShow:$_=!1}=kh,[$P,zP]=React.useState(!1);React.useState(!1);const[e0e,t0e]=React.useState($_),n0e=N0e=>{let P0e;return N0e==="text"?P0e=textDropDown(Ff):N0e==="align"&&(P0e=alignDropDown(Ff)),{items:P0e}},r0e=n0e("text");n0e("align");const i0e=N0e=>{zP(N0e)};return jsxRuntimeExports.jsx("div",{className:"bubble-new",style:{display:Ff!=null&&Ff.isEditable?"flex":"none"},children:e0e?jsxRuntimeExports.jsx(antd.Space,{children:jsxRuntimeExports.jsx(HyperlinkContent,{editor:Ff,from:x_,to:B_,changeLink:()=>{var N0e;t0e(!1),(N0e=Ff==null?void 0:Ff.view)==null||N0e.focus()}})}):jsxRuntimeExports.jsxs(antd.Space,{className:"bubble-menu",children:[Ff!=null&&Ff.isActive("listItem")?jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{}):jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(antd.Dropdown,{overlayClassName:"bubbleMenuDropdown",menu:r0e,onOpenChange:i0e,children:jsxRuntimeExports.jsxs("div",{className:"bubble-menu-other-item",children:[jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M8.66732 4.00033V14.0003H7.33398V4.00033H3.33398V2.66699H12.6673V4.00033H8.66732Z",fill:"#666666"})}),jsxRuntimeExports.jsx("div",{style:{width:"2px"}}),jsxRuntimeExports.jsx("div",{className:"bubble-menu-other-item-icon",style:{transform:$P?"rotate(180deg)":"rotate(0deg)"},children:jsxRuntimeExports.jsxs("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsxRuntimeExports.jsx("rect",{opacity:"0.01",width:"10",height:"10",fill:"#666666"}),jsxRuntimeExports.jsx("path",{d:"M7.36526 3.29136L4.88867 5.97454L2.41185 3.29136C2.28414 3.15298 2.06842 3.14433 1.93003 3.27204C1.79165 3.39976 1.783 3.61548 1.91072 3.75386L4.63799 6.70841C4.70253 6.77837 4.79338 6.81816 4.88856 6.81816C4.98374 6.81816 5.07459 6.77837 5.13913 6.70841L7.8664 3.75386C7.99411 3.61548 7.98547 3.39976 7.84708 3.27204C7.7087 3.14433 7.49298 3.15298 7.36526 3.29136",fill:"#999"})]})})]})}),jsxRuntimeExports.jsx("div",{className:"dropdownLine"})]}),jsxRuntimeExports.jsx("div",{className:"bubble-menu-item",style:{background:Ff!=null&&Ff.isActive("bold")?"rgba(22,119,255,0.10)":"",cursor:(d0e=(c0e=(s0e=(o0e=Ff==null?void 0:Ff.can())==null?void 0:o0e.chain())==null?void 0:s0e.focus())==null?void 0:c0e.toggleBold())!=null&&d0e.run()?"pointer":"not-allowed"},onClick:()=>{var N0e,P0e,x0e,L0e,C0e,D0e,F0e;(L0e=(x0e=(P0e=(N0e=Ff==null?void 0:Ff.can())==null?void 0:N0e.chain())==null?void 0:P0e.focus())==null?void 0:x0e.toggleBold())!=null&&L0e.run()&&((F0e=(D0e=(C0e=Ff==null?void 0:Ff.chain())==null?void 0:C0e.focus())==null?void 0:D0e.toggleBold())==null||F0e.run())},children:jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M5.33333 7.33366H8.33333C9.2538 7.33366 10 6.58747 10 5.66699C10 4.74652 9.2538 4.00033 8.33333 4.00033H5.33333V7.33366ZM12 10.3337C12 11.9905 10.6569 13.3337 9 13.3337H4V2.66699H8.33333C9.9902 2.66699 11.3333 4.01014 11.3333 5.66699C11.3333 6.46987 11.0179 7.19906 10.5043 7.73753C11.3986 8.25679 12 9.22499 12 10.3337ZM5.33333 8.66699V12.0003H9C9.92047 12.0003 10.6667 11.2541 10.6667 10.3337C10.6667 9.41319 9.92047 8.66699 9 8.66699H5.33333Z",fill:Ff!=null&&Ff.isActive("bold")?"#1677FF":"#666666"})})}),jsxRuntimeExports.jsx("div",{className:"bubble-menu-item",style:{background:Ff!=null&&Ff.isActive("strike")?"rgba(22,119,255,0.10)":"",cursor:(h0e=(u0e=(l0e=(a0e=Ff==null?void 0:Ff.can())==null?void 0:a0e.chain())==null?void 0:l0e.focus())==null?void 0:u0e.toggleStrike())!=null&&h0e.run()?"pointer":"not-allowed"},onClick:()=>{var N0e,P0e,x0e,L0e,C0e,D0e,F0e;(L0e=(x0e=(P0e=(N0e=Ff==null?void 0:Ff.can())==null?void 0:N0e.chain())==null?void 0:P0e.focus())==null?void 0:x0e.toggleStrike())!=null&&L0e.run()&&((F0e=(D0e=(C0e=Ff==null?void 0:Ff.chain())==null?void 0:C0e.focus())==null?void 0:D0e.toggleStrike())==null||F0e.run())},children:jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M11.4359 9.33366C11.5897 9.67773 11.6667 10.0599 11.6667 10.4801C11.6667 11.3753 11.3175 12.0747 10.6191 12.5783C9.9206 13.0819 8.95567 13.3337 7.72413 13.3337C6.63116 13.3337 5.5489 13.0793 4.47728 12.5707V11.0676C5.49025 11.6525 6.5272 11.945 7.58813 11.945C9.28887 11.945 10.1419 11.4567 10.1472 10.4801C10.1472 10.0629 10.0033 9.70686 9.7154 9.41186C9.68927 9.38513 9.6626 9.35906 9.6354 9.33366H2V8.00033H14V9.33366H11.4359ZM8.71733 7.33366H5.08605C4.97107 7.22919 4.86411 7.11313 4.76517 6.98553C4.47728 6.61422 4.33333 6.16405 4.33333 5.63504C4.33333 4.81101 4.64389 4.11033 5.26499 3.53299C5.88611 2.95565 6.84707 2.66699 8.14793 2.66699C9.12893 2.66699 10.0673 2.88571 10.9629 3.32317V4.7576C10.1632 4.2998 9.2862 4.07091 8.33187 4.07091C6.67913 4.07091 5.85278 4.59228 5.85278 5.63504C5.85278 5.91481 5.99806 6.15897 6.28862 6.36752C6.57919 6.57607 6.93773 6.74266 7.3642 6.86726C7.77767 6.98806 8.22873 7.14353 8.71733 7.33366Z",fill:Ff!=null&&Ff.isActive("strike")?"#1677FF":"#666666"})})}),jsxRuntimeExports.jsx("div",{className:"bubble-menu-item",style:{background:Ff!=null&&Ff.isActive("italic")?"rgba(22,119,255,0.10)":"",cursor:(y0e=(g0e=(p0e=(f0e=Ff==null?void 0:Ff.can())==null?void 0:f0e.chain())==null?void 0:p0e.focus())==null?void 0:g0e.toggleItalic())!=null&&y0e.run()?"pointer":"not-allowed"},onClick:()=>{var N0e,P0e,x0e,L0e,C0e,D0e,F0e;(L0e=(x0e=(P0e=(N0e=Ff==null?void 0:Ff.can())==null?void 0:N0e.chain())==null?void 0:P0e.focus())==null?void 0:x0e.toggleItalic())!=null&&L0e.run()&&((F0e=(D0e=(C0e=Ff==null?void 0:Ff.chain())==null?void 0:C0e.focus())==null?void 0:D0e.toggleItalic())==null||F0e.run())},children:jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M9.99935 13.3337H4.66602V12.0003H6.61709L8.02768 4.00033H5.99935V2.66699H11.3327V4.00033H9.38162L7.97102 12.0003H9.99935V13.3337Z",fill:Ff!=null&&Ff.isActive("italic")?"#1677FF":"#666666"})})}),jsxRuntimeExports.jsx("div",{className:"bubble-menu-item",style:{background:Ff!=null&&Ff.isActive("underline")?"rgba(22,119,255,0.10)":"",cursor:(E0e=(b0e=(v0e=(m0e=Ff==null?void 0:Ff.can())==null?void 0:m0e.chain())==null?void 0:v0e.focus())==null?void 0:b0e.toggleUnderline())!=null&&E0e.run()?"pointer":"not-allowed"},onClick:()=>{var N0e,P0e,x0e,L0e,C0e,D0e,F0e;(L0e=(x0e=(P0e=(N0e=Ff==null?void 0:Ff.can())==null?void 0:N0e.chain())==null?void 0:P0e.focus())==null?void 0:x0e.toggleUnderline())!=null&&L0e.run()&&((F0e=(D0e=(C0e=Ff==null?void 0:Ff.chain())==null?void 0:C0e.focus())==null?void 0:D0e.toggleUnderline())==null||F0e.run())},children:jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M5.33268 2V8C5.33268 9.47273 6.52659 10.6667 7.99935 10.6667C9.47208 10.6667 10.666 9.47273 10.666 8V2H11.9993V8C11.9993 10.2091 10.2085 12 7.99935 12C5.79021 12 3.99935 10.2091 3.99935 8V2H5.33268ZM2.66602 13.3333H13.3327V14.6667H2.66602V13.3333Z",fill:Ff!=null&&Ff.isActive("underline")?"#1677FF":"#666666"})})}),jsxRuntimeExports.jsx("div",{className:"bubble-menu-item",style:{background:Ff!=null&&Ff.isActive("link")?"rgba(22,119,255,0.10)":"",cursor:(B0e=(T0e=(O0e=(w0e=Ff==null?void 0:Ff.can())==null?void 0:w0e.chain())==null?void 0:O0e.focus())==null?void 0:T0e.toggleLink())!=null&&B0e.run()?"pointer":"not-allowed"},onClick:()=>{var N0e,P0e,x0e,L0e;(L0e=(x0e=(P0e=(N0e=Ff==null?void 0:Ff.can())==null?void 0:N0e.chain())==null?void 0:P0e.focus())==null?void 0:x0e.toggleLink())!=null&&L0e.run()&&(t0e(!0),setTimeout(()=>{var C0e;(C0e=Ff==null?void 0:Ff.view)==null||C0e.focus()},100))},children:jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M12.2422 10.3565L11.2993 9.41374L12.2422 8.47094C13.5439 7.16921 13.5439 5.05865 12.2422 3.75691C10.9404 2.45516 8.82988 2.45516 7.52815 3.75691L6.58533 4.69972L5.64253 3.75691L6.58533 2.8141C8.40781 0.991654 11.3625 0.991654 13.185 2.8141C15.0074 4.63655 15.0074 7.59134 13.185 9.41374L12.2422 10.3565ZM10.3565 12.2422L9.41375 13.185C7.59135 15.0075 4.63655 15.0075 2.8141 13.185C0.991654 11.3625 0.991654 8.40781 2.8141 6.58533L3.75691 5.64253L4.69971 6.58533L3.75691 7.52814C2.45516 8.82987 2.45516 10.9405 3.75691 12.2422C5.05865 13.5439 7.16921 13.5439 8.47095 12.2422L9.41375 11.2994L10.3565 12.2422ZM9.88515 5.17112L10.8279 6.11393L6.11393 10.828L5.17112 9.88514L9.88515 5.17112Z",fill:Ff!=null&&Ff.isActive("link")?"#1677FF":"#666666"})})})]})})},bubbleModules={BubbleMenu:BubbleMenu$1,BubbleMenuView:BubbleMenuView$1},Catalogue=kh=>{const{editor:Ff,canOpenCatalogue:x_=!0,isUpdate:B_=!1,onChangeVisible:$_}=kh,$P=React.useRef(!1),[zP,e0e]=React.useState([]),[t0e,n0e]=React.useState([]),[r0e,i0e]=React.useState([]),[o0e,s0e]=React.useState(),[c0e,d0e]=React.useState(!0),[a0e,l0e]=React.useState(!1),u0e=()=>{d0e(!1),$_==null||$_(!1)},h0e=()=>{l0e(!1),d0e(!0),$_==null||$_(!0)},f0e=()=>{l0e(!0),d0e(!0)},p0e=()=>{a0e&&(l0e(!1),d0e(!1))},g0e=(w0e,O0e)=>{const T0e=w0e==null?void 0:w0e.target;(T0e==null?void 0:T0e.scrollWidth)>(T0e==null?void 0:T0e.clientWidth)&&(zP[O0e].showTooltip=!0,e0e([...zP]))},y0e=(w0e,O0e)=>{zP[O0e].showTooltip=!1,e0e([...zP])},m0e=w0e=>{r0e.includes(w0e)?r0e.splice(r0e.indexOf(w0e),1):r0e.push(w0e),i0e([...r0e]),v0e(zP,r0e)},v0e=(w0e,O0e)=>{w0e==null||w0e.forEach(T0e=>T0e.hidden=!1),O0e!=null&&O0e.length&&(O0e==null||O0e.forEach(T0e=>{var N0e;const B0e=(N0e=w0e[T0e])==null?void 0:N0e.level;for(let P0e=T0e+1;P0e<(w0e==null?void 0:w0e.length);P0e++){const x0e=w0e[P0e];if((x0e==null?void 0:x0e.level)>B0e)x0e.hidden=!0;else break}})),e0e([...w0e])},b0e=w0e=>{$P.current=!0,s0e(w0e==null?void 0:w0e.id);const O0e=document.getElementById(w0e.id);O0e==null||O0e.scrollIntoView({behavior:"smooth",block:"start",inline:"nearest"})},E0e=()=>{var B0e,N0e,P0e,x0e,L0e;if(!c0e)return;const w0e=(N0e=(B0e=Ff==null?void 0:Ff.view)==null?void 0:B0e.docView)==null?void 0:N0e.children;if(!w0e)return;const O0e=(P0e=w0e==null?void 0:w0e.filter(C0e=>{var D0e,F0e;return((F0e=(D0e=C0e==null?void 0:C0e.node)==null?void 0:D0e.type)==null?void 0:F0e.name)==="heading"}))==null?void 0:P0e.map(C0e=>{var D0e,F0e,S0e,A0e;return{from:C0e==null?void 0:C0e.posAtStart,to:C0e==null?void 0:C0e.posAtEnd,text:(D0e=C0e==null?void 0:C0e.node)==null?void 0:D0e.textContent,level:(S0e=(F0e=C0e==null?void 0:C0e.node)==null?void 0:F0e.attrs)==null?void 0:S0e.level,id:(A0e=C0e==null?void 0:C0e.nodeDOM)==null?void 0:A0e.id}});v0e(O0e,r0e);const T0e=(L0e=(x0e=O0e==null?void 0:O0e.map(C0e=>C0e==null?void 0:C0e.level))==null?void 0:x0e.filter((C0e,D0e,F0e)=>F0e.indexOf(C0e)===D0e))==null?void 0:L0e.sort((C0e,D0e)=>C0e-D0e);n0e(T0e)};return React.useEffect(()=>(Ff&&(Ff==null||Ff.on("update",E0e)),()=>{Ff&&(Ff==null||Ff.off("update",E0e))}),[Ff,r0e,c0e]),React.useEffect(()=>{const w0e=()=>{if($P!=null&&$P.current){$P.current=!1;return}const T0e=document.getElementById("ylz-editor-container"),B0e=(T0e==null?void 0:T0e.querySelectorAll("h1, h2, h3, h4, h5, h6"))||[],N0e=(T0e==null?void 0:T0e.scrollTop)||0;let P0e=null;for(let x0e=0;x0e<(B0e==null?void 0:B0e.length);x0e++){const L0e=B0e[x0e];if(((L0e==null?void 0:L0e.offsetTop)||0)>N0e){P0e=L0e;break}}s0e((P0e==null?void 0:P0e.id)||"")},O0e=document.getElementById("ylz-editor-container");return O0e==null||O0e.addEventListener("scroll",w0e),()=>{O0e==null||O0e.removeEventListener("scroll",w0e)}},[]),React.useEffect(()=>{x_===!1&&d0e(!1)},[x_]),React.useEffect(()=>{B_&&E0e()},[B_]),React.useEffect(()=>{c0e&&E0e()},[c0e]),jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:c0e?jsxRuntimeExports.jsxs("div",{className:`catalogue${a0e?" catalogue-hover":""}`,onMouseLeave:p0e,children:[jsxRuntimeExports.jsxs("div",{className:"catalogue-header",children:[jsxRuntimeExports.jsx("span",{children:"目录"}),x_===!1?jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{cursor:"not-allowed"},children:jsxRuntimeExports.jsx("path",{d:"M8.0015 2C11.5962 2 14.5869 4.58651 15.2139 8C14.5869 11.4135 11.5962 14 8.0015 14C4.40672 14 1.41607 11.4135 0.789062 8C1.41607 4.58651 4.40672 2 8.0015 2ZM8.0015 12.6667C10.8252 12.6667 13.2415 10.7013 13.8531 8C13.2415 5.29869 10.8252 3.33333 8.0015 3.33333C5.1777 3.33333 2.76145 5.29869 2.14982 8C2.76145 10.7013 5.1777 12.6667 8.0015 12.6667ZM8.0015 11C6.34462 11 5.00148 9.65687 5.00148 8C5.00148 6.34315 6.34462 5 8.0015 5C9.6583 5 11.0015 6.34315 11.0015 8C11.0015 9.65687 9.6583 11 8.0015 11ZM8.0015 9.66667C8.92197 9.66667 9.66817 8.92047 9.66817 8C9.66817 7.07953 8.92197 6.33333 8.0015 6.33333C7.08104 6.33333 6.33481 7.07953 6.33481 8C6.33481 8.92047 7.08104 9.66667 8.0015 9.66667Z",fill:"#CCCCCC"})}):jsxRuntimeExports.jsx(antd.Tooltip,{placement:"bottomLeft",arrow:!1,title:a0e?"显示目录":"隐藏目录",color:"white",overlayClassName:"ylz-editor-tooltip",children:jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:a0e?jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:h0e,children:jsxRuntimeExports.jsx("path",{d:"M8.0015 2C11.5962 2 14.5869 4.58651 15.2139 8C14.5869 11.4135 11.5962 14 8.0015 14C4.40672 14 1.41607 11.4135 0.789062 8C1.41607 4.58651 4.40672 2 8.0015 2ZM8.0015 12.6667C10.8252 12.6667 13.2415 10.7013 13.8531 8C13.2415 5.29869 10.8252 3.33333 8.0015 3.33333C5.1777 3.33333 2.76145 5.29869 2.14982 8C2.76145 10.7013 5.1777 12.6667 8.0015 12.6667ZM8.0015 11C6.34462 11 5.00148 9.65687 5.00148 8C5.00148 6.34315 6.34462 5 8.0015 5C9.6583 5 11.0015 6.34315 11.0015 8C11.0015 9.65687 9.6583 11 8.0015 11ZM8.0015 9.66667C8.92197 9.66667 9.66817 8.92047 9.66817 8C9.66817 7.07953 8.92197 6.33333 8.0015 6.33333C7.08104 6.33333 6.33481 7.07953 6.33481 8C6.33481 8.92047 7.08104 9.66667 8.0015 9.66667Z",fill:"#666666"})}):jsxRuntimeExports.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:()=>u0e(),children:[jsxRuntimeExports.jsx("g",{clipPath:"url(#clip0_3702_1182)",children:jsxRuntimeExports.jsx("path",{d:"M11.9211 12.8647C10.7869 13.5838 9.44188 14.0003 7.99955 14.0003C4.40476 14.0003 1.41412 11.4138 0.787109 8.0003C1.07823 6.41538 1.8789 5.00877 3.013 3.95655L0.928456 1.87201L1.87127 0.929199L15.0706 14.1285L14.1278 15.0714L11.9211 12.8647ZM3.95642 4.89997C3.0705 5.70693 2.42455 6.7783 2.14787 8.0003C2.7595 10.7016 5.17575 12.667 7.99955 12.667C9.06582 12.667 10.074 12.3867 10.9489 11.8924L9.59668 10.5402C9.13422 10.8316 8.58655 11.0003 7.99955 11.0003C6.34267 11.0003 4.99952 9.6571 4.99952 8.0003C4.99952 7.41323 5.16813 6.86557 5.45956 6.40311L3.95642 4.89997ZM8.60862 9.55217L6.44766 7.39123C6.37355 7.5799 6.33286 7.7853 6.33286 8.0003C6.33286 8.92077 7.07908 9.66697 7.99955 9.66697C8.21448 9.66697 8.41995 9.62623 8.60862 9.55217ZM13.8705 11.0618L12.9167 10.108C13.3539 9.4847 13.6763 8.77257 13.8511 8.0003C13.2395 5.29895 10.8233 3.33361 7.99955 3.33361C7.43562 3.33361 6.88795 3.41199 6.36768 3.55895L5.31566 2.50693C6.14686 2.17989 7.05222 2.00027 7.99955 2.00027C11.5943 2.00027 14.5849 4.58678 15.2119 8.0003C15.0038 9.13337 14.5352 10.1754 13.8705 11.0618ZM7.81462 5.00588C7.87575 5.00216 7.93742 5.00027 7.99955 5.00027C9.65635 5.00027 10.9995 6.34342 10.9995 8.0003C10.9995 8.06237 10.9976 8.12403 10.9939 8.18517L7.81462 5.00588Z",fill:"#666666"})}),jsxRuntimeExports.jsx("defs",{children:jsxRuntimeExports.jsx("clipPath",{id:"clip0_3702_1182",children:jsxRuntimeExports.jsx("rect",{width:"16",height:"16",fill:"white"})})})]})})})]}),jsxRuntimeExports.jsx("div",{className:"catalogue-main",children:zP==null?void 0:zP.map((w0e,O0e)=>{var T0e;return jsxRuntimeExports.jsx(React.Fragment,{children:w0e!=null&&w0e.hidden?jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{}):jsxRuntimeExports.jsxs("div",{className:`indent-level-${(t0e==null?void 0:t0e.indexOf(w0e==null?void 0:w0e.level))+1} ${o0e===(w0e==null?void 0:w0e.id)?"active":""}`,children:[jsxRuntimeExports.jsx("span",{className:`catalogue-collapse ${r0e!=null&&r0e.includes(O0e)?"collapsed":""}`,children:(w0e==null?void 0:w0e.level)<((T0e=zP[O0e+1])==null?void 0:T0e.level)?jsxRuntimeExports.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 14 14",xmlns:"http://www.w3.org/2000/svg",onClick:()=>m0e(O0e),children:[jsxRuntimeExports.jsx("rect",{opacity:"0.01",width:"14",height:"14"}),jsxRuntimeExports.jsx("path",{d:"M10.3079 4.60869L6.84062 8.36514L3.37308 4.60869C3.19428 4.41495 2.89227 4.40284 2.69853 4.58164C2.50479 4.76045 2.49269 5.06245 2.67149 5.25619L6.48967 9.39255C6.58002 9.49049 6.70721 9.5462 6.84046 9.5462C6.97372 9.5462 7.10091 9.49049 7.19126 9.39255L11.0094 5.25619C11.1882 5.06245 11.1761 4.76045 10.9824 4.58164C10.7887 4.40284 10.4867 4.41495 10.3079 4.60869"}),jsxRuntimeExports.jsx("path",{d:"M7.38411 9.53907C7.18421 9.77894 6.81579 9.77894 6.61589 9.53907L2.68341 4.82009C2.41202 4.49443 2.6436 4 3.06752 4L10.9325 4C11.3564 4 11.588 4.49443 11.3166 4.82009L7.38411 9.53907Z"})]}):jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{})}),jsxRuntimeExports.jsx(antd.Tooltip,{open:!!(w0e!=null&&w0e.showTooltip),placement:"bottomLeft",arrow:!1,title:w0e==null?void 0:w0e.text,color:"white",overlayClassName:"ylz-editor-tooltip",children:jsxRuntimeExports.jsx("span",{className:"catalogue-text",onMouseEnter:B0e=>g0e(B0e,O0e),onMouseLeave:B0e=>y0e(B0e,O0e),onClick:()=>b0e(w0e),children:w0e==null?void 0:w0e.text})},w0e==null?void 0:w0e.form)]})},(w0e==null?void 0:w0e.id)||(w0e==null?void 0:w0e.form))})})]}):jsxRuntimeExports.jsx("div",{className:"catalogue-folded",children:jsxRuntimeExports.jsx("div",{onMouseEnter:f0e,children:"目录"})})})},backtickInputRegex$1=/^```([a-z]+)?[\s\n]$/,tildeInputRegex=/^~~~([a-z]+)?[\s\n]$/,CodeBlock=Node$1.create({name:"codeBlock",addOptions(){return{languageClassPrefix:"language-",exitOnTripleEnter:!0,exitOnArrowDown:!0,HTMLAttributes:{}}},content:"text*",marks:"",group:"block",code:!0,defining:!0,addAttributes(){return{language:{default:null,parseHTML:kh=>{var $P;const{languageClassPrefix:Ff}=this.options,$_=[...(($P=kh.firstElementChild)==null?void 0:$P.classList)||[]].filter(zP=>zP.startsWith(Ff)).map(zP=>zP.replace(Ff,""))[0];return $_||null},rendered:!1},exec:{default:!1,rendered:!1}}},parseHTML(){return[{tag:"pre",preserveWhitespace:"full"}]},renderHTML({node:kh,HTMLAttributes:Ff}){return["pre",mergeAttributes(this.options.HTMLAttributes,Ff),["code",{class:kh.attrs.language?this.options.languageClassPrefix+kh.attrs.language:null},0]]},addCommands(){return{setCodeBlock:kh=>({commands:Ff})=>Ff.setNode(this.name,kh),toggleCodeBlock:kh=>({commands:Ff})=>Ff.toggleNode(this.name,"paragraph",kh)}},addKeyboardShortcuts(){return{"Mod-Alt-c":()=>this.editor.commands.toggleCodeBlock(),Backspace:()=>{const{empty:kh,$anchor:Ff}=this.editor.state.selection,x_=Ff.pos===1;return!kh||Ff.parent.type.name!==this.name?!1:x_||!Ff.parent.textContent.length?this.editor.commands.clearNodes():!1},Enter:({editor:kh})=>{if(!this.options.exitOnTripleEnter)return!1;const{state:Ff}=kh,{selection:x_}=Ff,{$from:B_,empty:$_}=x_;if(!$_||B_.parent.type!==this.type)return!1;const $P=B_.parentOffset===B_.parent.nodeSize-2,zP=B_.parent.textContent.endsWith(`
138
+ https://github.com/highlightjs/highlight.js/issues/2277`),C0e=N0e,L0e=P0e),x0e===void 0&&(x0e=!0);const D0e={code:L0e,language:C0e};T0e("before:highlight",D0e);const F0e=D0e.result?D0e.result:i0e(D0e.language,D0e.code,x0e);return F0e.code=D0e.code,T0e("after:highlight",F0e),F0e}function i0e(N0e,P0e,x0e,L0e){const C0e=Object.create(null);function D0e(ome,_me){return ome.keywords[_me]}function F0e(){if(!Y0e.keywords){wme.addText(xme);return}let ome=0;Y0e.keywordPatternRe.lastIndex=0;let _me=Y0e.keywordPatternRe.exec(xme),W0e="";for(;_me;){W0e+=xme.substring(ome,_me.index);const nme=K0e.case_insensitive?_me[0].toLowerCase():_me[0],Sme=D0e(Y0e,nme);if(Sme){const[Ome,Mme]=Sme;if(wme.addText(W0e),W0e="",C0e[nme]=(C0e[nme]||0)+1,C0e[nme]<=MAX_KEYWORD_HITS$1&&(Rme+=Mme),Ome.startsWith("_"))W0e+=_me[0];else{const Lme=K0e.classNameAliases[Ome]||Ome;wme.addKeyword(_me[0],Lme)}}else W0e+=_me[0];ome=Y0e.keywordPatternRe.lastIndex,_me=Y0e.keywordPatternRe.exec(xme)}W0e+=xme.substring(ome),wme.addText(W0e)}function S0e(){if(xme==="")return;let ome=null;if(typeof Y0e.subLanguage=="string"){if(!Ff[Y0e.subLanguage]){wme.addText(xme);return}ome=i0e(Y0e.subLanguage,xme,!0,Tme[Y0e.subLanguage]),Tme[Y0e.subLanguage]=ome._top}else ome=s0e(xme,Y0e.subLanguage.length?Y0e.subLanguage:null);Y0e.relevance>0&&(Rme+=ome.relevance),wme.addSublanguage(ome._emitter,ome.language)}function A0e(){Y0e.subLanguage!=null?S0e():F0e(),xme=""}function R0e(ome,_me){let W0e=1;const nme=_me.length-1;for(;W0e<=nme;){if(!ome._emit[W0e]){W0e++;continue}const Sme=K0e.classNameAliases[ome[W0e]]||ome[W0e],Ome=_me[W0e];Sme?wme.addKeyword(Ome,Sme):(xme=Ome,F0e(),xme=""),W0e++}}function k0e(ome,_me){return ome.scope&&typeof ome.scope=="string"&&wme.openNode(K0e.classNameAliases[ome.scope]||ome.scope),ome.beginScope&&(ome.beginScope._wrap?(wme.addKeyword(xme,K0e.classNameAliases[ome.beginScope._wrap]||ome.beginScope._wrap),xme=""):ome.beginScope._multi&&(R0e(ome.beginScope,_me),xme="")),Y0e=Object.create(ome,{parent:{value:Y0e}}),Y0e}function _0e(ome,_me,W0e){let nme=startsWith$1(ome.endRe,W0e);if(nme){if(ome["on:end"]){const Sme=new Response$1(ome);ome["on:end"](_me,Sme),Sme.isMatchIgnored&&(nme=!1)}if(nme){for(;ome.endsParent&&ome.parent;)ome=ome.parent;return ome}}if(ome.endsWithParent)return _0e(ome.parent,_me,W0e)}function M0e(ome){return Y0e.matcher.regexIndex===0?(xme+=ome[0],1):(dme=!0,0)}function j0e(ome){const _me=ome[0],W0e=ome.rule,nme=new Response$1(W0e),Sme=[W0e.__beforeBegin,W0e["on:begin"]];for(const Ome of Sme)if(Ome&&(Ome(ome,nme),nme.isMatchIgnored))return M0e(_me);return W0e.skip?xme+=_me:(W0e.excludeBegin&&(xme+=_me),A0e(),!W0e.returnBegin&&!W0e.excludeBegin&&(xme=_me)),k0e(W0e,ome),W0e.returnBegin?0:_me.length}function z0e(ome){const _me=ome[0],W0e=P0e.substring(ome.index),nme=_0e(Y0e,ome,W0e);if(!nme)return NO_MATCH$1;const Sme=Y0e;Y0e.endScope&&Y0e.endScope._wrap?(A0e(),wme.addKeyword(_me,Y0e.endScope._wrap)):Y0e.endScope&&Y0e.endScope._multi?(A0e(),R0e(Y0e.endScope,ome)):Sme.skip?xme+=_me:(Sme.returnEnd||Sme.excludeEnd||(xme+=_me),A0e(),Sme.excludeEnd&&(xme=_me));do Y0e.scope&&wme.closeNode(),!Y0e.skip&&!Y0e.subLanguage&&(Rme+=Y0e.relevance),Y0e=Y0e.parent;while(Y0e!==nme.parent);return nme.starts&&k0e(nme.starts,ome),Sme.returnEnd?0:_me.length}function H0e(){const ome=[];for(let _me=Y0e;_me!==K0e;_me=_me.parent)_me.scope&&ome.unshift(_me.scope);ome.forEach(_me=>wme.openNode(_me))}let U0e={};function Z0e(ome,_me){const W0e=_me&&_me[0];if(xme+=ome,W0e==null)return A0e(),0;if(U0e.type==="begin"&&_me.type==="end"&&U0e.index===_me.index&&W0e===""){if(xme+=P0e.slice(_me.index,_me.index+1),!$_){const nme=new Error(`0 width match regex (${N0e})`);throw nme.languageName=N0e,nme.badRule=U0e.rule,nme}return 1}if(U0e=_me,_me.type==="begin")return j0e(_me);if(_me.type==="illegal"&&!x0e){const nme=new Error('Illegal lexeme "'+W0e+'" for mode "'+(Y0e.scope||"<unnamed>")+'"');throw nme.mode=Y0e,nme}else if(_me.type==="end"){const nme=z0e(_me);if(nme!==NO_MATCH$1)return nme}if(_me.type==="illegal"&&W0e==="")return 1;if(lme>1e5&&lme>_me.index*3)throw new Error("potential infinite loop, way more iterations than matches");return xme+=W0e,W0e.length}const K0e=v0e(N0e);if(!K0e)throw error$2($P.replace("{}",N0e)),new Error('Unknown language: "'+N0e+'"');const Q0e=compileLanguage$1(K0e);let mme="",Y0e=L0e||Q0e;const Tme={},wme=new e0e.__emitter(e0e);H0e();let xme="",Rme=0,bme=0,lme=0,dme=!1;try{for(Y0e.matcher.considerAll();;){lme++,dme?dme=!1:Y0e.matcher.considerAll(),Y0e.matcher.lastIndex=bme;const ome=Y0e.matcher.exec(P0e);if(!ome)break;const _me=P0e.substring(bme,ome.index),W0e=Z0e(_me,ome);bme=ome.index+W0e}return Z0e(P0e.substring(bme)),wme.closeAllNodes(),wme.finalize(),mme=wme.toHTML(),{language:N0e,value:mme,relevance:Rme,illegal:!1,_emitter:wme,_top:Y0e}}catch(ome){if(ome.message&&ome.message.includes("Illegal"))return{language:N0e,value:escape$2(P0e),illegal:!0,relevance:0,_illegalBy:{message:ome.message,index:bme,context:P0e.slice(bme-100,bme+100),mode:ome.mode,resultSoFar:mme},_emitter:wme};if($_)return{language:N0e,value:escape$2(P0e),illegal:!1,relevance:0,errorRaised:ome,_emitter:wme,_top:Y0e};throw ome}}function o0e(N0e){const P0e={value:escape$2(N0e),illegal:!1,relevance:0,_top:zP,_emitter:new e0e.__emitter(e0e)};return P0e._emitter.addText(N0e),P0e}function s0e(N0e,P0e){P0e=P0e||e0e.languages||Object.keys(Ff);const x0e=o0e(N0e),L0e=P0e.filter(v0e).filter(E0e).map(A0e=>i0e(A0e,N0e,!1));L0e.unshift(x0e);const C0e=L0e.sort((A0e,R0e)=>{if(A0e.relevance!==R0e.relevance)return R0e.relevance-A0e.relevance;if(A0e.language&&R0e.language){if(v0e(A0e.language).supersetOf===R0e.language)return 1;if(v0e(R0e.language).supersetOf===A0e.language)return-1}return 0}),[D0e,F0e]=C0e,S0e=D0e;return S0e.secondBest=F0e,S0e}function c0e(N0e,P0e,x0e){const L0e=P0e&&x_[P0e]||x0e;N0e.classList.add("hljs"),N0e.classList.add(`language-${L0e}`)}function d0e(N0e){let P0e=null;const x0e=n0e(N0e);if(t0e(x0e))return;if(T0e("before:highlightElement",{el:N0e,language:x0e}),N0e.children.length>0&&(e0e.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(N0e)),e0e.throwUnescapedHTML))throw new HTMLInjectionError$1("One of your code blocks includes unescaped HTML.",N0e.innerHTML);P0e=N0e;const L0e=P0e.textContent,C0e=x0e?r0e(L0e,{language:x0e,ignoreIllegals:!0}):s0e(L0e);N0e.innerHTML=C0e.value,c0e(N0e,x0e,C0e.language),N0e.result={language:C0e.language,re:C0e.relevance,relevance:C0e.relevance},C0e.secondBest&&(N0e.secondBest={language:C0e.secondBest.language,relevance:C0e.secondBest.relevance}),T0e("after:highlightElement",{el:N0e,result:C0e,text:L0e})}function a0e(N0e){e0e=inherit$2(e0e,N0e)}const l0e=()=>{f0e(),deprecated$1("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function u0e(){f0e(),deprecated$1("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let h0e=!1;function f0e(){if(document.readyState==="loading"){h0e=!0;return}document.querySelectorAll(e0e.cssSelector).forEach(d0e)}function p0e(){h0e&&f0e()}typeof window<"u"&&window.addEventListener&&window.addEventListener("DOMContentLoaded",p0e,!1);function g0e(N0e,P0e){let x0e=null;try{x0e=P0e(kh)}catch(L0e){if(error$2("Language definition for '{}' could not be registered.".replace("{}",N0e)),$_)error$2(L0e);else throw L0e;x0e=zP}x0e.name||(x0e.name=N0e),Ff[N0e]=x0e,x0e.rawDefinition=P0e.bind(null,kh),x0e.aliases&&b0e(x0e.aliases,{languageName:N0e})}function y0e(N0e){delete Ff[N0e];for(const P0e of Object.keys(x_))x_[P0e]===N0e&&delete x_[P0e]}function m0e(){return Object.keys(Ff)}function v0e(N0e){return N0e=(N0e||"").toLowerCase(),Ff[N0e]||Ff[x_[N0e]]}function b0e(N0e,{languageName:P0e}){typeof N0e=="string"&&(N0e=[N0e]),N0e.forEach(x0e=>{x_[x0e.toLowerCase()]=P0e})}function E0e(N0e){const P0e=v0e(N0e);return P0e&&!P0e.disableAutodetect}function w0e(N0e){N0e["before:highlightBlock"]&&!N0e["before:highlightElement"]&&(N0e["before:highlightElement"]=P0e=>{N0e["before:highlightBlock"](Object.assign({block:P0e.el},P0e))}),N0e["after:highlightBlock"]&&!N0e["after:highlightElement"]&&(N0e["after:highlightElement"]=P0e=>{N0e["after:highlightBlock"](Object.assign({block:P0e.el},P0e))})}function O0e(N0e){w0e(N0e),B_.push(N0e)}function T0e(N0e,P0e){const x0e=N0e;B_.forEach(function(L0e){L0e[x0e]&&L0e[x0e](P0e)})}function B0e(N0e){return deprecated$1("10.7.0","highlightBlock will be removed entirely in v12.0"),deprecated$1("10.7.0","Please use highlightElement now."),d0e(N0e)}Object.assign(kh,{highlight:r0e,highlightAuto:s0e,highlightAll:f0e,highlightElement:d0e,highlightBlock:B0e,configure:a0e,initHighlighting:l0e,initHighlightingOnLoad:u0e,registerLanguage:g0e,unregisterLanguage:y0e,listLanguages:m0e,getLanguage:v0e,registerAliases:b0e,autoDetection:E0e,inherit:inherit$2,addPlugin:O0e}),kh.debugMode=function(){$_=!1},kh.safeMode=function(){$_=!0},kh.versionString=version$1,kh.regex={concat:concat$1,lookahead:lookahead$1,either:either$1,optional:optional$1,anyNumberOfTimes:anyNumberOfTimes$1};for(const N0e in MODES$1)typeof MODES$1[N0e]=="object"&&deepFreezeEs6.exports(MODES$1[N0e]);return Object.assign(kh,MODES$1),kh};var highlight$2=HLJS$1({}),core$1=highlight$2;highlight$2.HighlightJS=highlight$2,highlight$2.default=highlight$2;const HighlightJS$1=getDefaultExportFromCjs(core$1);var format={exports:{}};(function(kh){(function(){var Ff;Ff=kh.exports=$_,Ff.format=$_,Ff.vsprintf=B_,typeof console<"u"&&typeof console.log=="function"&&(Ff.printf=x_);function x_(){console.log($_.apply(null,arguments))}function B_($P,zP){return $_.apply(null,[$P].concat(zP))}function $_($P){for(var zP=1,e0e=[].slice.call(arguments),t0e=0,n0e=$P.length,r0e="",i0e,o0e=!1,s0e,c0e,d0e=!1,a0e,l0e=function(){return e0e[zP++]},u0e=function(){for(var h0e="";/\d/.test($P[t0e]);)h0e+=$P[t0e++],i0e=$P[t0e];return h0e.length>0?parseInt(h0e):null};t0e<n0e;++t0e)if(i0e=$P[t0e],o0e)switch(o0e=!1,i0e=="."?(d0e=!1,i0e=$P[++t0e]):i0e=="0"&&$P[t0e+1]=="."?(d0e=!0,t0e+=2,i0e=$P[t0e]):d0e=!0,a0e=u0e(),i0e){case"b":r0e+=parseInt(l0e(),10).toString(2);break;case"c":s0e=l0e(),typeof s0e=="string"||s0e instanceof String?r0e+=s0e:r0e+=String.fromCharCode(parseInt(s0e,10));break;case"d":r0e+=parseInt(l0e(),10);break;case"f":c0e=String(parseFloat(l0e()).toFixed(a0e||6)),r0e+=d0e?c0e:c0e.replace(/^0/,"");break;case"j":r0e+=JSON.stringify(l0e());break;case"o":r0e+="0"+parseInt(l0e(),10).toString(8);break;case"s":r0e+=l0e();break;case"x":r0e+="0x"+parseInt(l0e(),10).toString(16);break;case"X":r0e+="0x"+parseInt(l0e(),10).toString(16).toUpperCase();break;default:r0e+=i0e;break}else i0e==="%"?o0e=!0:r0e+=i0e;return r0e}})()})(format);var formatExports=format.exports;const formatter=getDefaultExportFromCjs(formatExports),fault=Object.assign(create(Error),{eval:create(EvalError),range:create(RangeError),reference:create(ReferenceError),syntax:create(SyntaxError),type:create(TypeError),uri:create(URIError)});function create(kh){return Ff.displayName=kh.displayName||kh.name,Ff;function Ff(x_,...B_){const $_=x_&&formatter(x_,...B_);return new kh($_)}}const own$4={}.hasOwnProperty,defaultPrefix="hljs-";function highlight$1(kh,Ff,x_={}){let B_=x_.prefix;if(typeof kh!="string")throw fault("Expected `string` for name, got `%s`",kh);if(!HighlightJS$1.getLanguage(kh))throw fault("Unknown language: `%s` is not registered",kh);if(typeof Ff!="string")throw fault("Expected `string` for value, got `%s`",Ff);B_==null&&(B_=defaultPrefix),HighlightJS$1.configure({__emitter:HastEmitter,classPrefix:B_});const $_=HighlightJS$1.highlight(Ff,{language:kh,ignoreIllegals:!0});if(HighlightJS$1.configure({}),$_.errorRaised)throw $_.errorRaised;return $_._emitter.root.data.language=$_.language,$_._emitter.root.data.relevance=$_.relevance,$_._emitter.root}function highlightAuto(kh,Ff={}){const x_=Ff.subset||HighlightJS$1.listLanguages();Ff.prefix;let B_=-1,$_={type:"root",data:{language:null,relevance:0},children:[]};if(typeof kh!="string")throw fault("Expected `string` for value, got `%s`",kh);for(;++B_<x_.length;){const $P=x_[B_];if(!HighlightJS$1.getLanguage($P))continue;const zP=highlight$1($P,kh,Ff);zP.data.relevance>$_.data.relevance&&($_=zP)}return $_}function registerLanguage(kh,Ff){HighlightJS$1.registerLanguage(kh,Ff)}const registerAlias=function(kh,Ff){if(typeof kh=="string")HighlightJS$1.registerAliases(Ff,{languageName:kh});else{let x_;for(x_ in kh)own$4.call(kh,x_)&&HighlightJS$1.registerAliases(kh[x_],{languageName:x_})}};function registered$1(kh){return!!HighlightJS$1.getLanguage(kh)}function listLanguages(){return HighlightJS$1.listLanguages()}class HastEmitter{constructor(Ff){this.options=Ff,this.root={type:"root",data:{language:null,relevance:0},children:[]},this.stack=[this.root]}addText(Ff){if(Ff==="")return;const x_=this.stack[this.stack.length-1],B_=x_.children[x_.children.length-1];B_&&B_.type==="text"?B_.value+=Ff:x_.children.push({type:"text",value:Ff})}addKeyword(Ff,x_){this.openNode(x_),this.addText(Ff),this.closeNode()}addSublanguage(Ff,x_){const B_=this.stack[this.stack.length-1],$_=Ff.root.children;x_?B_.children.push({type:"element",tagName:"span",properties:{className:[x_]},children:$_}):B_.children.push(...$_)}openNode(Ff){const x_=Ff.split(".").map(($P,zP)=>zP?$P+"_".repeat(zP):this.options.classPrefix+$P),B_=this.stack[this.stack.length-1],$_={type:"element",tagName:"span",properties:{className:x_},children:[]};B_.children.push($_),this.stack.push($_)}closeNode(){this.stack.pop()}closeAllNodes(){}finalize(){}toHTML(){return""}}const lowlight={highlight:highlight$1,highlightAuto,registerLanguage,registered:registered$1,listLanguages,registerAlias};lowlight.registerLanguage("arduino",arduino),lowlight.registerLanguage("bash",bash),lowlight.registerLanguage("c",c$1),lowlight.registerLanguage("cpp",cpp),lowlight.registerLanguage("csharp",csharp),lowlight.registerLanguage("css",css),lowlight.registerLanguage("diff",diff),lowlight.registerLanguage("go",go$1),lowlight.registerLanguage("graphql",graphql),lowlight.registerLanguage("ini",ini),lowlight.registerLanguage("java",java),lowlight.registerLanguage("javascript",javascript$1),lowlight.registerLanguage("json",json),lowlight.registerLanguage("kotlin",kotlin),lowlight.registerLanguage("less",less),lowlight.registerLanguage("lua",lua),lowlight.registerLanguage("makefile",makefile),lowlight.registerLanguage("markdown",markdown),lowlight.registerLanguage("objectivec",objectivec),lowlight.registerLanguage("perl",perl),lowlight.registerLanguage("php",php),lowlight.registerLanguage("php-template",phpTemplate),lowlight.registerLanguage("plaintext",plaintext),lowlight.registerLanguage("python",python),lowlight.registerLanguage("python-repl",pythonRepl),lowlight.registerLanguage("r",r$2),lowlight.registerLanguage("ruby",ruby),lowlight.registerLanguage("rust",rust),lowlight.registerLanguage("scss",scss),lowlight.registerLanguage("shell",shell),lowlight.registerLanguage("sql",sql),lowlight.registerLanguage("swift",swift),lowlight.registerLanguage("typescript",typescript),lowlight.registerLanguage("vbnet",vbnet),lowlight.registerLanguage("wasm",wasm),lowlight.registerLanguage("xml",xml),lowlight.registerLanguage("yaml",yaml);let getRandomValues;const rnds8=new Uint8Array(16);function rng(){if(!getRandomValues&&(getRandomValues=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!getRandomValues))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return getRandomValues(rnds8)}const byteToHex=[];for(let kh=0;kh<256;++kh)byteToHex.push((kh+256).toString(16).slice(1));function unsafeStringify(kh,Ff=0){return byteToHex[kh[Ff+0]]+byteToHex[kh[Ff+1]]+byteToHex[kh[Ff+2]]+byteToHex[kh[Ff+3]]+"-"+byteToHex[kh[Ff+4]]+byteToHex[kh[Ff+5]]+"-"+byteToHex[kh[Ff+6]]+byteToHex[kh[Ff+7]]+"-"+byteToHex[kh[Ff+8]]+byteToHex[kh[Ff+9]]+"-"+byteToHex[kh[Ff+10]]+byteToHex[kh[Ff+11]]+byteToHex[kh[Ff+12]]+byteToHex[kh[Ff+13]]+byteToHex[kh[Ff+14]]+byteToHex[kh[Ff+15]]}const randomUUID=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),native={randomUUID};function v4$1(kh,Ff,x_){if(native.randomUUID&&!Ff&&!kh)return native.randomUUID();kh=kh||{};const B_=kh.random||(kh.rng||rng)();if(B_[6]=B_[6]&15|64,B_[8]=B_[8]&63|128,Ff){x_=x_||0;for(let $_=0;$_<16;++$_)Ff[x_+$_]=B_[$_];return Ff}return unsafeStringify(B_)}const Heading=Node$1.create({name:"heading",addOptions(){return{levels:[1,2,3,4,5,6],HTMLAttributes:{}}},content:"inline*",group:"block",defining:!0,addAttributes(){return{level:{default:1,rendered:!1},id:{default:null}}},parseHTML(){var kh;return(kh=this==null?void 0:this.options)==null?void 0:kh.levels.map(Ff=>({tag:`h${Ff}`,attrs:{level:Ff}}))},renderHTML({node:kh,HTMLAttributes:Ff}){var $P,zP,e0e,t0e;const B_=this.options.levels.includes(($P=kh==null?void 0:kh.attrs)==null?void 0:$P.level)?(zP=kh==null?void 0:kh.attrs)==null?void 0:zP.level:(e0e=this==null?void 0:this.options)==null?void 0:e0e.levels[0],$_=mergeAttributes((t0e=this==null?void 0:this.options)==null?void 0:t0e.HTMLAttributes,Ff);return $_.id=v4$1(),[`h${B_}`,$_,0]},addCommands(){return{setHeading:kh=>({commands:Ff})=>{var x_,B_;return(B_=(x_=this.options)==null?void 0:x_.levels)!=null&&B_.includes(kh==null?void 0:kh.level)?Ff.setNode(this.name,kh):!1},toggleHeading:kh=>({commands:Ff})=>{var x_,B_;return(B_=(x_=this.options)==null?void 0:x_.levels)!=null&&B_.includes(kh==null?void 0:kh.level)?Ff.toggleNode(this.name,"paragraph",kh):!1}}},addKeyboardShortcuts(){return this.options.levels.reduce((kh,Ff)=>({...kh,[`Mod-Alt-${Ff}`]:()=>this.editor.commands.toggleHeading({level:Ff})}),{})},addInputRules(){return this.options.levels.map(kh=>textblockTypeInputRule({find:new RegExp(`^(#{1,${kh}})\\s$`),type:this.type,getAttributes:{level:kh}}))}}),Document$3=Node$1.create({name:"document",topNode:!0,content:"title block+"}),Paragraph=Node$1.create({name:"paragraph",addOptions(){return{HTMLAttributes:{class:"tiptap-paragraph"}}},group:"block",priority:1e3,content:"inline*",parseHTML(){return[{tag:"p"}]},renderHTML({HTMLAttributes:kh}){return["p",mergeAttributes(this.options.HTMLAttributes,kh),0]},addCommands(){return{setParagraph:()=>({commands:kh})=>kh.setNode(this.name)}}}),Text$1=Node$1.create({name:"text",group:"inline"}),Title=Node$1.create({name:"title",group:"block",content:"inline*",marks:"",parseHTML(){return[{tag:"div"}]},renderHTML({HTMLAttributes:kh}){return["div",mergeAttributes(this.options.HTMLAttributes,kh),0]},addOptions(){return{HTMLAttributes:{class:"tiptap-title"},limitChar:10,onChange:()=>{},titleEditable:!0}},addKeyboardShortcuts(){return{}},addProseMirrorPlugins(){const{limitChar:kh,onChange:Ff,titleEditable:x_}=this.options,{editor:B_}=this;return[new Plugin({key:new PluginKey("titleLimit"),view:$_=>({update($P,zP){const{state:e0e}=$P,{doc:t0e}=e0e,n0e=t0e.firstChild,r0e=zP.doc.firstChild;x_&&(n0e==null?void 0:n0e.textContent)!==(r0e==null?void 0:r0e.textContent)&&Ff(n0e==null?void 0:n0e.textContent)}}),props:{handleTextInput($_,$P,zP,e0e){var c0e;const{state:t0e}=$_,{selection:n0e,doc:r0e}=t0e,{anchor:i0e,$from:o0e}=n0e,s0e=r0e.firstChild;if(s0e&&i0e<(s0e==null?void 0:s0e.nodeSize)){if(!x_)return!0;if($_.composing)return!1;if(s0e!=null&&s0e.textContent&&((c0e=s0e==null?void 0:s0e.textContent)==null?void 0:c0e.length)>=kh)return!0;const d0e=new RegExp("^[a-zA-Z0-9 \\u4e00-\\u9fa5\\_\\-]+$");if(s0e!=null&&s0e.textContent&&!d0e.test((s0e==null?void 0:s0e.textContent)+e0e))return!0}return!1},handleKeyDown($_,$P){const{state:zP}=$_,{selection:e0e,doc:t0e}=zP,{anchor:n0e,$from:r0e}=e0e,i0e=t0e.firstChild;return $P.key==="Enter"&&i0e&&n0e<=(i0e==null?void 0:i0e.nodeSize)?(B_.commands.focus((i0e==null?void 0:i0e.nodeSize)+1),!0):!1}},filterTransaction($_,$P){if(x_)return!0;{const zP=$_.doc.firstChild,e0e=$P.doc.firstChild;if(B_.isFocused&&(zP==null?void 0:zP.textContent)!==(e0e==null?void 0:e0e.textContent))return!1}return!0}})]}}),Placeholder=Extension.create({name:"placeholder",addOptions(){return{emptyEditorClass:"tiptap-editor-is-empty",emptyNodeClass:"tiptap-is-empty",placeholder:"点击“+”或输入“/”快速添加",showOnlyWhenEditable:!0,considerAnyAsEmpty:!1,showOnlyCurrent:!0,includeChildren:!1}},addProseMirrorPlugins(){return[new Plugin({key:new PluginKey("placeholder"),props:{decorations:({doc:kh,selection:Ff})=>{const x_=this.editor.isEditable||!this.options.showOnlyWhenEditable,{anchor:B_}=Ff,$_=[];if(!x_)return null;const $P=kh.child(1),zP=$P&&$P.type.isLeaf,e0e=$P&&$P.isAtom,t0e=this.options.considerAnyAsEmpty?!0:!!$P,n0e=kh.content.childCount<=2&&$P&&t0e&&$P.nodeSize<=2&&(!zP||!e0e);return kh.descendants((r0e,i0e)=>{const o0e=B_>=i0e&&B_<i0e+r0e.nodeSize,s0e=!r0e.isLeaf&&!r0e.childCount;if(["active","pdf"].includes(r0e.type.name))return this.options.includeChildren;if(r0e.type.name==="title"){if(s0e){const c0e=Decoration.node(i0e,i0e+r0e.nodeSize,{class:"tiptap-title-is-empty","data-placeholder":"未命名,请输入标题"});$_.push(c0e)}}else if(r0e===$P){if(this.editor.isFocused){if((o0e||!this.options.showOnlyCurrent)&&s0e){const c0e=[this.options.emptyNodeClass];n0e&&c0e.push(this.options.emptyEditorClass);const d0e=Decoration.node(i0e,i0e+r0e.nodeSize,{class:c0e.join(" "),"data-placeholder":this.options.placeholder});$_.push(d0e)}}else if(s0e){const c0e=Decoration.node(i0e,i0e+r0e.nodeSize,{class:`tiptap-editor-nofocus-is-empty ${this.options.emptyEditorClass}`,"data-placeholder":"单击此处开始编辑"});$_.push(c0e)}}else if((o0e||!this.options.showOnlyCurrent)&&s0e&&this.editor.isFocused){const c0e=[this.options.emptyNodeClass],d0e=Decoration.node(i0e,i0e+r0e.nodeSize,{class:c0e.join(" "),"data-placeholder":typeof this.options.placeholder=="function"?this.options.placeholder({editor:this.editor,node:r0e,pos:i0e,hasAnchor:o0e}):this.options.placeholder});$_.push(d0e)}return this.options.includeChildren}),DecorationSet.create(kh,$_)}}})]}}),build$1=(kh,Ff,x_,B_)=>{var $P,zP,e0e,t0e,n0e;const $_=new ReactRenderer(($P=kh==null?void 0:kh.options)==null?void 0:$P.component,{editor:kh==null?void 0:kh.editor,props:{editor:kh==null?void 0:kh.editor,from:Ff,to:x_,tipShow:B_}});!$_||!($_!=null&&$_.element)||((e0e=(zP=kh==null?void 0:kh.options)==null?void 0:zP.tippy)==null||e0e.setContent($_==null?void 0:$_.element),(n0e=(t0e=kh==null?void 0:kh.options)==null?void 0:t0e.tippy)==null||n0e.setProps({getReferenceClientRect:()=>{var r0e;return posToDOMRect((r0e=kh==null?void 0:kh.editor)==null?void 0:r0e.view,Ff,x_)}}))},isIgnoreTypes=(kh,Ff,x_)=>{var e0e,t0e,n0e,r0e,i0e,o0e;const B_=(t0e=(e0e=kh==null?void 0:kh.editor)==null?void 0:e0e.view)==null?void 0:t0e.domAtPos(Ff,x_);if(!B_)return!1;const{node:$_}=B_;let $P=$_;if(!$P)return!0;for(;!($P!=null&&$P.pmViewDesc)&&($P!=null&&$P.parentElement)&&($P=$P==null?void 0:$P.parentElement,!($P!=null&&$P.pmViewDesc)););if(!$P||!($P!=null&&$P.pmViewDesc))return!0;let zP=$P==null?void 0:$P.pmViewDesc;for(;zP;){if((o0e=(n0e=kh==null?void 0:kh.options)==null?void 0:n0e.ignoreTypes)!=null&&o0e.includes((i0e=(r0e=zP==null?void 0:zP.node)==null?void 0:r0e.type)==null?void 0:i0e.name))return!0;zP=zP==null?void 0:zP.parent}return!1},BubbleMenu$1=Extension.create({name:"bubbleMenu",onCreate(){var kh,Ff,x_;!((kh=this==null?void 0:this.options)!=null&&kh.tippy)&&(this.options.tippy=tippy((x_=(Ff=this==null?void 0:this.editor)==null?void 0:Ff.view)==null?void 0:x_.dom,{getReferenceClientRect:null,appendTo:document.body,hideOnClick:!0,interactive:!0,trigger:"manual",placement:"bottom-start",maxWidth:"none"}))},onTransaction(){var zP,e0e,t0e,n0e,r0e,i0e,o0e,s0e,c0e,d0e,a0e,l0e;if(document.querySelectorAll(".h-link").length>0||!((zP=this==null?void 0:this.editor)!=null&&zP.isFocused)||!((e0e=this==null?void 0:this.editor)!=null&&e0e.isEditable)||!((t0e=this==null?void 0:this.options)!=null&&t0e.component))return;const Ff=(i0e=(r0e=(n0e=this==null?void 0:this.editor)==null?void 0:n0e.view)==null?void 0:r0e.state)==null?void 0:i0e.selection,{empty:x_,from:B_,to:$_,anchor:$P}=Ff;if(x_||B_===$_||((s0e=(o0e=Ff==null?void 0:Ff.node)==null?void 0:o0e.type)==null?void 0:s0e.name)==="image"){(d0e=(c0e=this==null?void 0:this.options)==null?void 0:c0e.tippy)==null||d0e.hide();return}else{let u0e=!1;const{doc:h0e}=this.editor.state;if(h0e.descendants((f0e,p0e)=>{const g0e=$P>=p0e&&$P<p0e+f0e.nodeSize;return f0e.type.name==="active"&&g0e&&(u0e=!0),!1}),u0e){(l0e=(a0e=this==null?void 0:this.options)==null?void 0:a0e.tippy)==null||l0e.hide();return}}build$1(this,B_,$_)},onSelectionUpdate(){var Ff,x_,B_;document.querySelectorAll(".h-link").length>0||((Ff=this==null?void 0:this.options)!=null&&Ff.debounce&&clearTimeout((x_=this==null?void 0:this.options)==null?void 0:x_.debounce),this.options.debounce=setTimeout(()=>{var t0e,n0e,r0e,i0e,o0e,s0e,c0e,d0e,a0e,l0e,u0e,h0e,f0e,p0e;if(!((t0e=this==null?void 0:this.editor)!=null&&t0e.isFocused)||!((n0e=this==null?void 0:this.editor)!=null&&n0e.isEditable)||!((r0e=this==null?void 0:this.options)!=null&&r0e.component))return;const $_=(s0e=(o0e=(i0e=this==null?void 0:this.editor)==null?void 0:i0e.view)==null?void 0:o0e.state)==null?void 0:s0e.selection,{empty:$P,from:zP,to:e0e}=$_;$P||zP===e0e||zP===0||(d0e=(c0e=this==null?void 0:this.options)==null?void 0:c0e.ignoreTypes)!=null&&d0e.length&&isIgnoreTypes(this,zP,(e0e-zP)/2)||(build$1(this,zP,e0e),(l0e=(a0e=this==null?void 0:this.editor)==null?void 0:a0e.commands)!=null&&l0e.hideTip&&((h0e=(u0e=this==null?void 0:this.editor)==null?void 0:u0e.commands)==null||h0e.hideTip()),(p0e=(f0e=this==null?void 0:this.editor)==null?void 0:f0e.commands)==null||p0e.showBubbleMenu())},((B_=this==null?void 0:this.options)==null?void 0:B_.delay)??100))},onDestroy(){var kh,Ff,x_,B_;(Ff=(kh=this.options)==null?void 0:kh.tippy)==null||Ff.destroy(),(x_=this.options)!=null&&x_.debounce&&clearTimeout((B_=this==null?void 0:this.options)==null?void 0:B_.debounce),this.options.tippy=null,this.options.debounce=null},addOptions(){return{ignoreTypes:["codeBlock","title","image"],component:null,zIndex:9999,tippy:null,delay:100,debounce:null}},addCommands(){return{showBubbleMenu:kh=>()=>{var x_,B_,$_,$P,zP,e0e;return kh&&(build$1(this,kh==null?void 0:kh.from,kh==null?void 0:kh.to,!0),(B_=(x_=this==null?void 0:this.editor)==null?void 0:x_.commands)==null||B_.hideLinkTip()),($P=($_=this==null?void 0:this.options)==null?void 0:$_.tippy)==null||$P.show(),document.querySelectorAll(".lintView").length>0&&((e0e=(zP=this==null?void 0:this.editor)==null?void 0:zP.commands)==null||e0e.hideLinkTip()),!0},hideBubbleMenu:()=>()=>{var kh,Ff;return(Ff=(kh=this==null?void 0:this.options)==null?void 0:kh.tippy)==null||Ff.hide(),!0}}}}),setAlign=kh=>{if(kh!=null&&kh.isActive({textAlign:"left"}))return"left";if(kh!=null&&kh.isActive({textAlign:"center"}))return"center";if(kh!=null&&kh.isActive({textAlign:"right"}))return"right"},textDropDown=kh=>{const Ff=x_=>{var $_,$P,zP,e0e;const B_=setAlign(kh)??"left";(e0e=(zP=($P=($_=kh==null?void 0:kh.chain())==null?void 0:$_.focus())==null?void 0:$P.toggleHeading({level:x_}))==null?void 0:zP.setTextAlign(B_))==null||e0e.run()};return[{label:jsxRuntimeExports.jsxs("div",{className:"MenuProps-item",children:[jsxRuntimeExports.jsxs("div",{className:"MenuProps-item-left",children:[jsxRuntimeExports.jsx("div",{style:{width:"16px",height:"16px"},className:kh!=null&&kh.isActive("paragraph")?"":"MenuProps-item-left-svg",children:jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:kh!=null&&kh.isActive("paragraph")?"#1677FF":"#999999",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M8.66732 4.00033V14.0003H7.33398V4.00033H3.33398V2.66699H12.6673V4.00033H8.66732Z"})})}),jsxRuntimeExports.jsx("div",{className:kh!=null&&kh.isActive("paragraph")?"":"MenuProps-item-left-text",style:{fontSize:"13px",marginLeft:"16px",color:kh!=null&&kh.isActive("paragraph")?"#1677FF":"#666666"},children:"文本"})]}),(kh==null?void 0:kh.isActive("paragraph"))&&jsxRuntimeExports.jsx("div",{style:{height:"16px",width:"16px"},children:jsxRuntimeExports.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsxRuntimeExports.jsx("path",{d:"M7.11535 11.422C6.97707 11.422 6.83801 11.3744 6.72488 11.2772L3.67347 8.65437C3.42254 8.43859 3.39394 8.06015 3.60957 7.80922C3.82535 7.55828 4.20379 7.52969 4.45472 7.74531L7.50613 10.3681C7.75707 10.5839 7.78566 10.9623 7.57004 11.2133C7.4516 11.3512 7.28394 11.422 7.11535 11.422Z",fill:"#1677FF"}),jsxRuntimeExports.jsx("path",{d:"M7.34114 11.4222C7.20817 11.4222 7.07442 11.3782 6.96332 11.2879C6.70661 11.079 6.6677 10.7015 6.87661 10.4447L11.4694 4.79834C11.6783 4.54146 12.0558 4.50271 12.3125 4.71162C12.5693 4.92052 12.6082 5.29802 12.3993 5.55474L7.80645 11.2011C7.68801 11.3466 7.5152 11.4222 7.34114 11.4222Z",fill:"#1677FF"})]})})]}),key:"paragraph",onClick:()=>{var B_,$_,$P,zP;const x_=setAlign(kh)??"left";(zP=($P=($_=(B_=kh==null?void 0:kh.chain())==null?void 0:B_.focus())==null?void 0:$_.setParagraph())==null?void 0:$P.setTextAlign(x_))==null||zP.run()}},{label:jsxRuntimeExports.jsxs("div",{className:"MenuProps-item",children:[jsxRuntimeExports.jsxs("div",{className:"MenuProps-item-left",children:[jsxRuntimeExports.jsx("div",{style:{width:"16px",height:"16px"},className:kh!=null&&kh.isActive("heading",{level:1})?"":"MenuProps-item-left-svg",children:jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:kh!=null&&kh.isActive("heading",{level:1})?"#1677FF":"#999999",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M8.66732 13.3337H7.33398V8.66699H2.66732V13.3337H1.33398V2.66699H2.66732V7.33366H7.33398V2.66699H8.66732V13.3337ZM14.001 5.33366V13.3337H12.6677L12.6673 6.80299L11.334 7.16033V5.78033L13.001 5.33366H14.001Z"})})}),jsxRuntimeExports.jsx("div",{className:kh!=null&&kh.isActive("heading",{level:1})?"":"MenuProps-item-left-text",style:{fontSize:"13px",marginLeft:"16px",color:kh!=null&&kh.isActive("heading",{level:1})?"#1677FF":"#666666"},children:"一级标题"})]}),(kh==null?void 0:kh.isActive("heading",{level:1}))&&jsxRuntimeExports.jsx("div",{style:{height:"16px",width:"16px"},children:jsxRuntimeExports.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsxRuntimeExports.jsx("path",{d:"M7.11535 11.422C6.97707 11.422 6.83801 11.3744 6.72488 11.2772L3.67347 8.65437C3.42254 8.43859 3.39394 8.06015 3.60957 7.80922C3.82535 7.55828 4.20379 7.52969 4.45472 7.74531L7.50613 10.3681C7.75707 10.5839 7.78566 10.9623 7.57004 11.2133C7.4516 11.3512 7.28394 11.422 7.11535 11.422Z",fill:"#1677FF"}),jsxRuntimeExports.jsx("path",{d:"M7.34114 11.4222C7.20817 11.4222 7.07442 11.3782 6.96332 11.2879C6.70661 11.079 6.6677 10.7015 6.87661 10.4447L11.4694 4.79834C11.6783 4.54146 12.0558 4.50271 12.3125 4.71162C12.5693 4.92052 12.6082 5.29802 12.3993 5.55474L7.80645 11.2011C7.68801 11.3466 7.5152 11.4222 7.34114 11.4222Z",fill:"#1677FF"})]})})]}),key:"heading1",onClick:()=>{Ff(1)}},{label:jsxRuntimeExports.jsxs("div",{className:"MenuProps-item",children:[jsxRuntimeExports.jsxs("div",{className:"MenuProps-item-left",children:[jsxRuntimeExports.jsx("div",{style:{width:"16px",height:"16px"},className:kh!=null&&kh.isActive("heading",{level:2})?"":"MenuProps-item-left-svg",children:jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:kh!=null&&kh.isActive("heading",{level:2})?"#1677FF":"#999999",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M2.66732 2.66699V7.33366H7.33398V2.66699H8.66732V13.3337H7.33398V8.66699H2.66732V13.3337H1.33398V2.66699H2.66732ZM12.334 5.33366C13.7147 5.33366 14.834 6.45295 14.834 7.83366C14.834 8.40526 14.6422 8.93206 14.3194 9.35312L14.2208 9.47379L12.0235 12.0003H14.6673V13.3337H10.0007L10.0002 12.2963L13.2145 8.59906C13.3927 8.39419 13.5007 8.12653 13.5007 7.83366C13.5007 7.18933 12.9783 6.66699 12.334 6.66699C11.7219 6.66699 11.2199 7.13839 11.1712 7.73799L11.1673 7.83366H9.83398C9.83398 6.45295 10.9533 5.33366 12.334 5.33366Z"})})}),jsxRuntimeExports.jsx("div",{className:kh!=null&&kh.isActive("heading",{level:2})?"":"MenuProps-item-left-text",style:{fontSize:"13px",marginLeft:"16px",color:kh!=null&&kh.isActive("heading",{level:2})?"#1677FF":"#666666"},children:"二级标题"})]}),(kh==null?void 0:kh.isActive("heading",{level:2}))&&jsxRuntimeExports.jsx("div",{style:{height:"16px",width:"16px"},children:jsxRuntimeExports.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsxRuntimeExports.jsx("path",{d:"M7.11535 11.422C6.97707 11.422 6.83801 11.3744 6.72488 11.2772L3.67347 8.65437C3.42254 8.43859 3.39394 8.06015 3.60957 7.80922C3.82535 7.55828 4.20379 7.52969 4.45472 7.74531L7.50613 10.3681C7.75707 10.5839 7.78566 10.9623 7.57004 11.2133C7.4516 11.3512 7.28394 11.422 7.11535 11.422Z",fill:"#1677FF"}),jsxRuntimeExports.jsx("path",{d:"M7.34114 11.4222C7.20817 11.4222 7.07442 11.3782 6.96332 11.2879C6.70661 11.079 6.6677 10.7015 6.87661 10.4447L11.4694 4.79834C11.6783 4.54146 12.0558 4.50271 12.3125 4.71162C12.5693 4.92052 12.6082 5.29802 12.3993 5.55474L7.80645 11.2011C7.68801 11.3466 7.5152 11.4222 7.34114 11.4222Z",fill:"#1677FF"})]})})]}),key:"heading2",onClick:()=>{Ff(2)}},{label:jsxRuntimeExports.jsxs("div",{className:"MenuProps-item",children:[jsxRuntimeExports.jsxs("div",{className:"MenuProps-item-left",children:[jsxRuntimeExports.jsx("div",{style:{width:"16px",height:"16px"},className:kh!=null&&kh.isActive("heading",{level:3})?"":"MenuProps-item-left-svg",children:jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:kh!=null&&kh.isActive("heading",{level:3})?"#1677FF":"#999999",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M14.6673 5.33366L14.6663 6.66699L12.9963 8.58899C14.0555 8.87926 14.834 9.84886 14.834 11.0003C14.834 12.3811 13.7147 13.5003 12.334 13.5003C11.1167 13.5003 10.1025 12.6303 9.87958 11.4781L11.1887 11.2238C11.2929 11.7612 11.7661 12.167 12.334 12.167C12.9783 12.167 13.5007 11.6447 13.5007 11.0003C13.5007 10.356 12.9783 9.83366 12.334 9.83366C12.1433 9.83366 11.9633 9.87939 11.8044 9.96053L10.9335 8.92913L12.8996 6.66699H10.0007V5.33366H14.6673ZM2.66732 2.66699V7.33366H7.33398V2.66699H8.66732V13.3337H7.33398V8.66699H2.66732V13.3337H1.33398V2.66699H2.66732Z"})})}),jsxRuntimeExports.jsx("div",{className:kh!=null&&kh.isActive("heading",{level:3})?"":"MenuProps-item-left-text",style:{fontSize:"13px",marginLeft:"16px",color:kh!=null&&kh.isActive("heading",{level:3})?"#1677FF":"#666666"},children:"三级标题"})]}),(kh==null?void 0:kh.isActive("heading",{level:3}))&&jsxRuntimeExports.jsx("div",{style:{height:"16px",width:"16px"},children:jsxRuntimeExports.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsxRuntimeExports.jsx("path",{d:"M7.11535 11.422C6.97707 11.422 6.83801 11.3744 6.72488 11.2772L3.67347 8.65437C3.42254 8.43859 3.39394 8.06015 3.60957 7.80922C3.82535 7.55828 4.20379 7.52969 4.45472 7.74531L7.50613 10.3681C7.75707 10.5839 7.78566 10.9623 7.57004 11.2133C7.4516 11.3512 7.28394 11.422 7.11535 11.422Z",fill:"#1677FF"}),jsxRuntimeExports.jsx("path",{d:"M7.34114 11.4222C7.20817 11.4222 7.07442 11.3782 6.96332 11.2879C6.70661 11.079 6.6677 10.7015 6.87661 10.4447L11.4694 4.79834C11.6783 4.54146 12.0558 4.50271 12.3125 4.71162C12.5693 4.92052 12.6082 5.29802 12.3993 5.55474L7.80645 11.2011C7.68801 11.3466 7.5152 11.4222 7.34114 11.4222Z",fill:"#1677FF"})]})})]}),key:"heading3",onClick:()=>{Ff(3)}},{label:jsxRuntimeExports.jsxs("div",{className:"MenuProps-item",children:[jsxRuntimeExports.jsxs("div",{className:"MenuProps-item-left",children:[jsxRuntimeExports.jsx("div",{style:{width:"16px",height:"16px"},className:kh!=null&&kh.isActive("heading",{level:4})?"":"MenuProps-item-left-svg",children:jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:kh!=null&&kh.isActive("heading",{level:4})?"#1677FF":"#999999",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M8.66732 13.3337H7.33398V8.66699H2.66732V13.3337H1.33398V2.66699H2.66732V7.33366H7.33398V2.66699H8.66732V13.3337ZM14.6673 5.33366V10.667H15.6673V12.0003H14.6673V13.3337H13.334V12.0003H9.66732V11.107L13.0007 5.33366H14.6673ZM13.334 7.42233L11.4607 10.667H13.334V7.42233Z"})})}),jsxRuntimeExports.jsx("div",{className:kh!=null&&kh.isActive("heading",{level:4})?"":"MenuProps-item-left-text",style:{fontSize:"13px",marginLeft:"16px",color:kh!=null&&kh.isActive("heading",{level:4})?"#1677FF":"#666666"},children:"四级标题"})]}),(kh==null?void 0:kh.isActive("heading",{level:4}))&&jsxRuntimeExports.jsx("div",{style:{height:"16px",width:"16px"},children:jsxRuntimeExports.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsxRuntimeExports.jsx("path",{d:"M7.11535 11.422C6.97707 11.422 6.83801 11.3744 6.72488 11.2772L3.67347 8.65437C3.42254 8.43859 3.39394 8.06015 3.60957 7.80922C3.82535 7.55828 4.20379 7.52969 4.45472 7.74531L7.50613 10.3681C7.75707 10.5839 7.78566 10.9623 7.57004 11.2133C7.4516 11.3512 7.28394 11.422 7.11535 11.422Z",fill:"#1677FF"}),jsxRuntimeExports.jsx("path",{d:"M7.34114 11.4222C7.20817 11.4222 7.07442 11.3782 6.96332 11.2879C6.70661 11.079 6.6677 10.7015 6.87661 10.4447L11.4694 4.79834C11.6783 4.54146 12.0558 4.50271 12.3125 4.71162C12.5693 4.92052 12.6082 5.29802 12.3993 5.55474L7.80645 11.2011C7.68801 11.3466 7.5152 11.4222 7.34114 11.4222Z",fill:"#1677FF"})]})})]}),key:"heading4",onClick:()=>{Ff(4)}},{label:jsxRuntimeExports.jsxs("div",{className:"MenuProps-item",children:[jsxRuntimeExports.jsxs("div",{className:"MenuProps-item-left",children:[jsxRuntimeExports.jsx("div",{style:{width:"16px",height:"16px"},className:kh!=null&&kh.isActive("heading",{level:5})?"":"MenuProps-item-left-svg",children:jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:kh!=null&&kh.isActive("heading",{level:5})?"#1677FF":"#999999",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M14.6673 5.33366V6.66699H11.7853L11.4757 8.42419C11.6963 8.36513 11.9281 8.33366 12.1673 8.33366C13.6401 8.33366 14.834 9.52759 14.834 11.0003C14.834 12.4731 13.6401 13.667 12.1673 13.667C10.9495 13.667 9.92245 12.8507 9.60325 11.7355L10.8854 11.3683C11.0451 11.9257 11.5586 12.3337 12.1673 12.3337C12.9037 12.3337 13.5007 11.7367 13.5007 11.0003C13.5007 10.2639 12.9037 9.66699 12.1673 9.66699C11.7469 9.66699 11.372 9.86153 11.1276 10.1655L9.92085 9.56293L10.6673 5.33366H14.6673ZM2.66732 2.66699V7.33366H7.33398V2.66699H8.66732V13.3337H7.33398V8.66699H2.66732V13.3337H1.33398V2.66699H2.66732Z"})})}),jsxRuntimeExports.jsx("div",{className:kh!=null&&kh.isActive("heading",{level:5})?"":"MenuProps-item-left-text",style:{fontSize:"13px",marginLeft:"16px",color:kh!=null&&kh.isActive("heading",{level:5})?"#1677FF":"#666666"},children:"五级标题"})]}),(kh==null?void 0:kh.isActive("heading",{level:5}))&&jsxRuntimeExports.jsx("div",{style:{height:"16px",width:"16px"},children:jsxRuntimeExports.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsxRuntimeExports.jsx("path",{d:"M7.11535 11.422C6.97707 11.422 6.83801 11.3744 6.72488 11.2772L3.67347 8.65437C3.42254 8.43859 3.39394 8.06015 3.60957 7.80922C3.82535 7.55828 4.20379 7.52969 4.45472 7.74531L7.50613 10.3681C7.75707 10.5839 7.78566 10.9623 7.57004 11.2133C7.4516 11.3512 7.28394 11.422 7.11535 11.422Z",fill:"#1677FF"}),jsxRuntimeExports.jsx("path",{d:"M7.34114 11.4222C7.20817 11.4222 7.07442 11.3782 6.96332 11.2879C6.70661 11.079 6.6677 10.7015 6.87661 10.4447L11.4694 4.79834C11.6783 4.54146 12.0558 4.50271 12.3125 4.71162C12.5693 4.92052 12.6082 5.29802 12.3993 5.55474L7.80645 11.2011C7.68801 11.3466 7.5152 11.4222 7.34114 11.4222Z",fill:"#1677FF"})]})})]}),key:"heading5",onClick:()=>{Ff(5)}},{label:jsxRuntimeExports.jsxs("div",{className:"MenuProps-item",children:[jsxRuntimeExports.jsxs("div",{className:"MenuProps-item-left",children:[jsxRuntimeExports.jsx("div",{style:{width:"16px",height:"16px"},className:kh!=null&&kh.isActive("heading",{level:6})?"":"MenuProps-item-left-svg",children:jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:kh!=null&&kh.isActive("heading",{level:6})?"#1677FF":"#999999",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M14.0653 5.33366L12.3333 8.33366C13.8067 8.33366 15.0007 9.52759 15.0007 11.0003C15.0007 12.4731 13.8067 13.667 12.334 13.667C10.8613 13.667 9.66732 12.4731 9.66732 11.0003C9.66732 10.5094 9.79998 10.0495 10.0314 9.65439L12.526 5.33366H14.0653ZM2.66732 2.66699V7.33366H7.33398V2.66699H8.66732V13.3337H7.33398V8.66699H2.66732V13.3337H1.33398V2.66699H2.66732ZM12.334 9.66699C11.5976 9.66699 11.0007 10.2639 11.0007 11.0003C11.0007 11.7367 11.5976 12.3337 12.334 12.3337C13.0704 12.3337 13.6673 11.7367 13.6673 11.0003C13.6673 10.2639 13.0704 9.66699 12.334 9.66699Z"})})}),jsxRuntimeExports.jsx("div",{className:kh!=null&&kh.isActive("heading",{level:6})?"":"MenuProps-item-left-text",style:{fontSize:"13px",marginLeft:"16px",color:kh!=null&&kh.isActive("heading",{level:6})?"#1677FF":"#666666"},children:"六级标题"})]}),(kh==null?void 0:kh.isActive("heading",{level:6}))&&jsxRuntimeExports.jsx("div",{style:{height:"16px",width:"16px"},children:jsxRuntimeExports.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsxRuntimeExports.jsx("path",{d:"M7.11535 11.422C6.97707 11.422 6.83801 11.3744 6.72488 11.2772L3.67347 8.65437C3.42254 8.43859 3.39394 8.06015 3.60957 7.80922C3.82535 7.55828 4.20379 7.52969 4.45472 7.74531L7.50613 10.3681C7.75707 10.5839 7.78566 10.9623 7.57004 11.2133C7.4516 11.3512 7.28394 11.422 7.11535 11.422Z",fill:"#1677FF"}),jsxRuntimeExports.jsx("path",{d:"M7.34114 11.4222C7.20817 11.4222 7.07442 11.3782 6.96332 11.2879C6.70661 11.079 6.6677 10.7015 6.87661 10.4447L11.4694 4.79834C11.6783 4.54146 12.0558 4.50271 12.3125 4.71162C12.5693 4.92052 12.6082 5.29802 12.3993 5.55474L7.80645 11.2011C7.68801 11.3466 7.5152 11.4222 7.34114 11.4222Z",fill:"#1677FF"})]})})]}),key:"heading6",onClick:()=>{Ff(6)}}]},alignDropDown=kh=>[{label:jsxRuntimeExports.jsxs("div",{className:"MenuProps-item",children:[jsxRuntimeExports.jsxs("div",{className:"MenuProps-item-left",children:[jsxRuntimeExports.jsx("div",{style:{width:"16px",height:"16px"},className:kh!=null&&kh.isActive({textAlign:"left"})?"":"MenuProps-item-left-svg",children:jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:kh!=null&&kh.isActive({textAlign:"left"})?"#1677FF":"#999999",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M2 2.66699H14V4.00033H2V2.66699ZM2 12.667H11.3333V14.0003H2V12.667ZM2 9.33366H14V10.667H2V9.33366ZM2 6.00033H11.3333V7.33366H2V6.00033Z"})})}),jsxRuntimeExports.jsx("div",{className:kh!=null&&kh.isActive({textAlign:"left"})?"":"MenuProps-item-left-text",style:{fontSize:"13px",marginLeft:"16px",color:kh!=null&&kh.isActive({textAlign:"left"})?"#1677FF":"#666666"},children:"左对齐"})]}),(kh==null?void 0:kh.isActive({textAlign:"left"}))&&jsxRuntimeExports.jsx("div",{style:{height:"16px",width:"16px"},children:jsxRuntimeExports.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsxRuntimeExports.jsx("path",{d:"M7.11535 11.422C6.97707 11.422 6.83801 11.3744 6.72488 11.2772L3.67347 8.65437C3.42254 8.43859 3.39394 8.06015 3.60957 7.80922C3.82535 7.55828 4.20379 7.52969 4.45472 7.74531L7.50613 10.3681C7.75707 10.5839 7.78566 10.9623 7.57004 11.2133C7.4516 11.3512 7.28394 11.422 7.11535 11.422Z",fill:"#1677FF"}),jsxRuntimeExports.jsx("path",{d:"M7.34114 11.4222C7.20817 11.4222 7.07442 11.3782 6.96332 11.2879C6.70661 11.079 6.6677 10.7015 6.87661 10.4447L11.4694 4.79834C11.6783 4.54146 12.0558 4.50271 12.3125 4.71162C12.5693 4.92052 12.6082 5.29802 12.3993 5.55474L7.80645 11.2011C7.68801 11.3466 7.5152 11.4222 7.34114 11.4222Z",fill:"#1677FF"})]})})]}),key:"left",onClick:()=>{var Ff,x_,B_;(B_=(x_=(Ff=kh==null?void 0:kh.chain())==null?void 0:Ff.focus())==null?void 0:x_.setTextAlign("left"))==null||B_.run()}},{label:jsxRuntimeExports.jsxs("div",{className:"MenuProps-item",children:[jsxRuntimeExports.jsxs("div",{className:"MenuProps-item-left",children:[jsxRuntimeExports.jsx("div",{style:{width:"16px",height:"16px"},className:kh!=null&&kh.isActive({textAlign:"center"})?"":"MenuProps-item-left-svg",children:jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:kh!=null&&kh.isActive({textAlign:"center"})?"#1677FF":"#999999",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M2 2.66699H14V4.00033H2V2.66699ZM3.33333 12.667H12.6667V14.0003H3.33333V12.667ZM2 9.33366H14V10.667H2V9.33366ZM3.33333 6.00033H12.6667V7.33366H3.33333V6.00033Z"})})}),jsxRuntimeExports.jsx("div",{className:kh!=null&&kh.isActive({textAlign:"center"})?"":"MenuProps-item-left-text",style:{fontSize:"13px",marginLeft:"16px",color:kh!=null&&kh.isActive({textAlign:"center"})?"#1677FF":"#666666"},children:"居中对齐"})]}),(kh==null?void 0:kh.isActive({textAlign:"center"}))&&jsxRuntimeExports.jsx("div",{style:{height:"16px",width:"16px"},children:jsxRuntimeExports.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsxRuntimeExports.jsx("path",{d:"M7.11535 11.422C6.97707 11.422 6.83801 11.3744 6.72488 11.2772L3.67347 8.65437C3.42254 8.43859 3.39394 8.06015 3.60957 7.80922C3.82535 7.55828 4.20379 7.52969 4.45472 7.74531L7.50613 10.3681C7.75707 10.5839 7.78566 10.9623 7.57004 11.2133C7.4516 11.3512 7.28394 11.422 7.11535 11.422Z",fill:"#1677FF"}),jsxRuntimeExports.jsx("path",{d:"M7.34114 11.4222C7.20817 11.4222 7.07442 11.3782 6.96332 11.2879C6.70661 11.079 6.6677 10.7015 6.87661 10.4447L11.4694 4.79834C11.6783 4.54146 12.0558 4.50271 12.3125 4.71162C12.5693 4.92052 12.6082 5.29802 12.3993 5.55474L7.80645 11.2011C7.68801 11.3466 7.5152 11.4222 7.34114 11.4222Z",fill:"#1677FF"})]})})]}),key:"center",onClick:()=>{var Ff,x_,B_;(B_=(x_=(Ff=kh==null?void 0:kh.chain())==null?void 0:Ff.focus())==null?void 0:x_.setTextAlign("center"))==null||B_.run()}},{label:jsxRuntimeExports.jsxs("div",{className:"MenuProps-item",children:[jsxRuntimeExports.jsxs("div",{className:"MenuProps-item-left",children:[jsxRuntimeExports.jsx("div",{style:{width:"16px",height:"16px"},className:kh!=null&&kh.isActive({textAlign:"right"})?"":"MenuProps-item-left-svg",children:jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:kh!=null&&kh.isActive({textAlign:"right"})?"#1677FF":"#999999",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M2 2.66699H14V4.00033H2V2.66699ZM4.66667 12.667H14V14.0003H4.66667V12.667ZM2 9.33366H14V10.667H2V9.33366ZM4.66667 6.00033H14V7.33366H4.66667V6.00033Z"})})}),jsxRuntimeExports.jsx("div",{className:kh!=null&&kh.isActive({textAlign:"right"})?"":"MenuProps-item-left-text",style:{fontSize:"13px",marginLeft:"16px",color:kh!=null&&kh.isActive({textAlign:"right"})?"#1677FF":"#666666"},children:"右对齐"})]}),(kh==null?void 0:kh.isActive({textAlign:"right"}))&&jsxRuntimeExports.jsx("div",{style:{height:"16px",width:"16px"},children:jsxRuntimeExports.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsxRuntimeExports.jsx("path",{d:"M7.11535 11.422C6.97707 11.422 6.83801 11.3744 6.72488 11.2772L3.67347 8.65437C3.42254 8.43859 3.39394 8.06015 3.60957 7.80922C3.82535 7.55828 4.20379 7.52969 4.45472 7.74531L7.50613 10.3681C7.75707 10.5839 7.78566 10.9623 7.57004 11.2133C7.4516 11.3512 7.28394 11.422 7.11535 11.422Z",fill:"#1677FF"}),jsxRuntimeExports.jsx("path",{d:"M7.34114 11.4222C7.20817 11.4222 7.07442 11.3782 6.96332 11.2879C6.70661 11.079 6.6677 10.7015 6.87661 10.4447L11.4694 4.79834C11.6783 4.54146 12.0558 4.50271 12.3125 4.71162C12.5693 4.92052 12.6082 5.29802 12.3993 5.55474L7.80645 11.2011C7.68801 11.3466 7.5152 11.4222 7.34114 11.4222Z",fill:"#1677FF"})]})})]}),key:"right",onClick:()=>{var Ff,x_,B_;(B_=(x_=(Ff=kh==null?void 0:kh.chain())==null?void 0:Ff.focus())==null?void 0:x_.setTextAlign("right"))==null||B_.run()}}],HyperlinkContent=kh=>{const{editor:Ff,from:x_,to:B_,changeLink:$_}=kh,$P=React.useRef(null),[zP,e0e]=React.useState(),[t0e,n0e]=React.useState(),[r0e,i0e]=React.useState(!1),o0e=()=>{$_&&$_()},s0e=()=>{var d0e,a0e,l0e,u0e,h0e,f0e;if(t0e&&c0e(t0e)){const p0e=Ff==null?void 0:Ff.view,g0e=p0e==null?void 0:p0e.state.tr;g0e&&(g0e==null||g0e.deleteRange(x_,B_),zP?g0e==null||g0e.insertText(zP,x_):g0e==null||g0e.insertText(t0e,x_),p0e==null||p0e.dispatch(g0e));const y0e=(d0e=p0e==null?void 0:p0e.state)==null?void 0:d0e.selection.to;console.log(p0e,y0e),(a0e=Ff==null?void 0:Ff.commands)==null||a0e.setTextSelection({from:x_,to:y0e??x_}),(l0e=Ff==null?void 0:Ff.view)==null||l0e.focus(),(f0e=(h0e=(u0e=Ff==null?void 0:Ff.chain())==null?void 0:u0e.focus())==null?void 0:h0e.setLink({href:t0e,target:"_blank"}))==null||f0e.run(),$_&&$_()}},c0e=d0e=>/^https?:\/\//.test(d0e);return React.useEffect(()=>{var f0e,p0e;if(!Ff)return;const d0e=Ff.state.doc,a0e=(p0e=(f0e=Ff==null?void 0:Ff.view)==null?void 0:f0e.state)==null?void 0:p0e.selection,{$from:l0e,$to:u0e}=a0e,h0e=d0e.textBetween(l0e.pos,u0e.pos," ");if(e0e(h0e??""),Ff!=null&&Ff.isActive("link")){const g0e=l0e.node();g0e==null||g0e.forEach(y0e=>{var m0e;y0e!=null&&y0e.marks&&((m0e=y0e==null?void 0:y0e.marks)==null||m0e.forEach(v0e=>{var b0e,E0e,w0e,O0e;(b0e=v0e==null?void 0:v0e.attrs)!=null&&b0e.href&&n0e(((E0e=v0e==null?void 0:v0e.attrs)==null?void 0:E0e.href)??""),(w0e=v0e==null?void 0:v0e.attrs)!=null&&w0e.href&&c0e((O0e=v0e==null?void 0:v0e.attrs)==null?void 0:O0e.href)}))})}},[Ff,x_,B_]),jsxRuntimeExports.jsxs("div",{className:"h-link",onClick:()=>{},children:[jsxRuntimeExports.jsxs("div",{className:"h-link-line",children:[jsxRuntimeExports.jsx("div",{className:"text",children:"文本"}),jsxRuntimeExports.jsx(antd.Input,{placeholder:"请输入文本",value:zP,onChange:d0e=>{e0e(d0e.target.value)}})]}),jsxRuntimeExports.jsxs("div",{className:"h-link-line",children:[jsxRuntimeExports.jsx("div",{className:"text",children:"链接"}),jsxRuntimeExports.jsx(antd.Input,{ref:$P,placeholder:"请粘贴或输入链接",onBlur:()=>{c0e(t0e)||!t0e?i0e(!1):i0e(!0)},onFocus:()=>{i0e(!1)},value:t0e,onChange:d0e=>{c0e(d0e.target.value),n0e(d0e.target.value)}}),r0e&&jsxRuntimeExports.jsx("div",{className:"h-link-line-tip",children:"请输入链接"})]}),jsxRuntimeExports.jsxs("div",{className:"h-link-bottoms",children:[jsxRuntimeExports.jsx("div",{className:"cancleBtn",onClick:o0e,children:"取消"}),jsxRuntimeExports.jsx("div",{className:"conBtn",style:{background:t0e&&c0e(t0e)?"#1677FF":"#cccccc",cursor:t0e&&c0e(t0e)?"pointer":"not-allowed"},onClick:()=>{s0e()},children:"确定"})]})]})},BubbleMenuView$1=kh=>{var o0e,s0e,c0e,d0e,a0e,l0e,u0e,h0e,f0e,p0e,g0e,y0e,m0e,v0e,b0e,E0e,w0e,O0e,T0e,B0e;const{editor:Ff,from:x_,to:B_,tipShow:$_=!1}=kh,[$P,zP]=React.useState(!1);React.useState(!1);const[e0e,t0e]=React.useState($_),n0e=N0e=>{let P0e;return N0e==="text"?P0e=textDropDown(Ff):N0e==="align"&&(P0e=alignDropDown(Ff)),{items:P0e}},r0e=n0e("text");n0e("align");const i0e=N0e=>{zP(N0e)};return jsxRuntimeExports.jsx("div",{className:"bubble-new",style:{display:Ff!=null&&Ff.isEditable?"flex":"none"},children:e0e?jsxRuntimeExports.jsx(antd.Space,{children:jsxRuntimeExports.jsx(HyperlinkContent,{editor:Ff,from:x_,to:B_,changeLink:()=>{var N0e;t0e(!1),(N0e=Ff==null?void 0:Ff.view)==null||N0e.focus()}})}):jsxRuntimeExports.jsxs(antd.Space,{className:"bubble-menu",children:[Ff!=null&&Ff.isActive("listItem")?jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{}):jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(antd.Dropdown,{overlayClassName:"bubbleMenuDropdown",menu:r0e,onOpenChange:i0e,children:jsxRuntimeExports.jsxs("div",{className:"bubble-menu-other-item",children:[jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M8.66732 4.00033V14.0003H7.33398V4.00033H3.33398V2.66699H12.6673V4.00033H8.66732Z",fill:"#666666"})}),jsxRuntimeExports.jsx("div",{style:{width:"2px"}}),jsxRuntimeExports.jsx("div",{className:"bubble-menu-other-item-icon",style:{transform:$P?"rotate(180deg)":"rotate(0deg)"},children:jsxRuntimeExports.jsxs("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsxRuntimeExports.jsx("rect",{opacity:"0.01",width:"10",height:"10",fill:"#666666"}),jsxRuntimeExports.jsx("path",{d:"M7.36526 3.29136L4.88867 5.97454L2.41185 3.29136C2.28414 3.15298 2.06842 3.14433 1.93003 3.27204C1.79165 3.39976 1.783 3.61548 1.91072 3.75386L4.63799 6.70841C4.70253 6.77837 4.79338 6.81816 4.88856 6.81816C4.98374 6.81816 5.07459 6.77837 5.13913 6.70841L7.8664 3.75386C7.99411 3.61548 7.98547 3.39976 7.84708 3.27204C7.7087 3.14433 7.49298 3.15298 7.36526 3.29136",fill:"#999"})]})})]})}),jsxRuntimeExports.jsx("div",{className:"dropdownLine"})]}),jsxRuntimeExports.jsx("div",{className:"bubble-menu-item",style:{background:Ff!=null&&Ff.isActive("bold")?"rgba(22,119,255,0.10)":"",cursor:(d0e=(c0e=(s0e=(o0e=Ff==null?void 0:Ff.can())==null?void 0:o0e.chain())==null?void 0:s0e.focus())==null?void 0:c0e.toggleBold())!=null&&d0e.run()?"pointer":"not-allowed"},onClick:()=>{var N0e,P0e,x0e,L0e,C0e,D0e,F0e;(L0e=(x0e=(P0e=(N0e=Ff==null?void 0:Ff.can())==null?void 0:N0e.chain())==null?void 0:P0e.focus())==null?void 0:x0e.toggleBold())!=null&&L0e.run()&&((F0e=(D0e=(C0e=Ff==null?void 0:Ff.chain())==null?void 0:C0e.focus())==null?void 0:D0e.toggleBold())==null||F0e.run())},children:jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M5.33333 7.33366H8.33333C9.2538 7.33366 10 6.58747 10 5.66699C10 4.74652 9.2538 4.00033 8.33333 4.00033H5.33333V7.33366ZM12 10.3337C12 11.9905 10.6569 13.3337 9 13.3337H4V2.66699H8.33333C9.9902 2.66699 11.3333 4.01014 11.3333 5.66699C11.3333 6.46987 11.0179 7.19906 10.5043 7.73753C11.3986 8.25679 12 9.22499 12 10.3337ZM5.33333 8.66699V12.0003H9C9.92047 12.0003 10.6667 11.2541 10.6667 10.3337C10.6667 9.41319 9.92047 8.66699 9 8.66699H5.33333Z",fill:Ff!=null&&Ff.isActive("bold")?"#1677FF":"#666666"})})}),jsxRuntimeExports.jsx("div",{className:"bubble-menu-item",style:{background:Ff!=null&&Ff.isActive("strike")?"rgba(22,119,255,0.10)":"",cursor:(h0e=(u0e=(l0e=(a0e=Ff==null?void 0:Ff.can())==null?void 0:a0e.chain())==null?void 0:l0e.focus())==null?void 0:u0e.toggleStrike())!=null&&h0e.run()?"pointer":"not-allowed"},onClick:()=>{var N0e,P0e,x0e,L0e,C0e,D0e,F0e;(L0e=(x0e=(P0e=(N0e=Ff==null?void 0:Ff.can())==null?void 0:N0e.chain())==null?void 0:P0e.focus())==null?void 0:x0e.toggleStrike())!=null&&L0e.run()&&((F0e=(D0e=(C0e=Ff==null?void 0:Ff.chain())==null?void 0:C0e.focus())==null?void 0:D0e.toggleStrike())==null||F0e.run())},children:jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M11.4359 9.33366C11.5897 9.67773 11.6667 10.0599 11.6667 10.4801C11.6667 11.3753 11.3175 12.0747 10.6191 12.5783C9.9206 13.0819 8.95567 13.3337 7.72413 13.3337C6.63116 13.3337 5.5489 13.0793 4.47728 12.5707V11.0676C5.49025 11.6525 6.5272 11.945 7.58813 11.945C9.28887 11.945 10.1419 11.4567 10.1472 10.4801C10.1472 10.0629 10.0033 9.70686 9.7154 9.41186C9.68927 9.38513 9.6626 9.35906 9.6354 9.33366H2V8.00033H14V9.33366H11.4359ZM8.71733 7.33366H5.08605C4.97107 7.22919 4.86411 7.11313 4.76517 6.98553C4.47728 6.61422 4.33333 6.16405 4.33333 5.63504C4.33333 4.81101 4.64389 4.11033 5.26499 3.53299C5.88611 2.95565 6.84707 2.66699 8.14793 2.66699C9.12893 2.66699 10.0673 2.88571 10.9629 3.32317V4.7576C10.1632 4.2998 9.2862 4.07091 8.33187 4.07091C6.67913 4.07091 5.85278 4.59228 5.85278 5.63504C5.85278 5.91481 5.99806 6.15897 6.28862 6.36752C6.57919 6.57607 6.93773 6.74266 7.3642 6.86726C7.77767 6.98806 8.22873 7.14353 8.71733 7.33366Z",fill:Ff!=null&&Ff.isActive("strike")?"#1677FF":"#666666"})})}),jsxRuntimeExports.jsx("div",{className:"bubble-menu-item",style:{background:Ff!=null&&Ff.isActive("italic")?"rgba(22,119,255,0.10)":"",cursor:(y0e=(g0e=(p0e=(f0e=Ff==null?void 0:Ff.can())==null?void 0:f0e.chain())==null?void 0:p0e.focus())==null?void 0:g0e.toggleItalic())!=null&&y0e.run()?"pointer":"not-allowed"},onClick:()=>{var N0e,P0e,x0e,L0e,C0e,D0e,F0e;(L0e=(x0e=(P0e=(N0e=Ff==null?void 0:Ff.can())==null?void 0:N0e.chain())==null?void 0:P0e.focus())==null?void 0:x0e.toggleItalic())!=null&&L0e.run()&&((F0e=(D0e=(C0e=Ff==null?void 0:Ff.chain())==null?void 0:C0e.focus())==null?void 0:D0e.toggleItalic())==null||F0e.run())},children:jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M9.99935 13.3337H4.66602V12.0003H6.61709L8.02768 4.00033H5.99935V2.66699H11.3327V4.00033H9.38162L7.97102 12.0003H9.99935V13.3337Z",fill:Ff!=null&&Ff.isActive("italic")?"#1677FF":"#666666"})})}),jsxRuntimeExports.jsx("div",{className:"bubble-menu-item",style:{background:Ff!=null&&Ff.isActive("underline")?"rgba(22,119,255,0.10)":"",cursor:(E0e=(b0e=(v0e=(m0e=Ff==null?void 0:Ff.can())==null?void 0:m0e.chain())==null?void 0:v0e.focus())==null?void 0:b0e.toggleUnderline())!=null&&E0e.run()?"pointer":"not-allowed"},onClick:()=>{var N0e,P0e,x0e,L0e,C0e,D0e,F0e;(L0e=(x0e=(P0e=(N0e=Ff==null?void 0:Ff.can())==null?void 0:N0e.chain())==null?void 0:P0e.focus())==null?void 0:x0e.toggleUnderline())!=null&&L0e.run()&&((F0e=(D0e=(C0e=Ff==null?void 0:Ff.chain())==null?void 0:C0e.focus())==null?void 0:D0e.toggleUnderline())==null||F0e.run())},children:jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M5.33268 2V8C5.33268 9.47273 6.52659 10.6667 7.99935 10.6667C9.47208 10.6667 10.666 9.47273 10.666 8V2H11.9993V8C11.9993 10.2091 10.2085 12 7.99935 12C5.79021 12 3.99935 10.2091 3.99935 8V2H5.33268ZM2.66602 13.3333H13.3327V14.6667H2.66602V13.3333Z",fill:Ff!=null&&Ff.isActive("underline")?"#1677FF":"#666666"})})}),jsxRuntimeExports.jsx("div",{className:"bubble-menu-item",style:{background:Ff!=null&&Ff.isActive("link")?"rgba(22,119,255,0.10)":"",cursor:(B0e=(T0e=(O0e=(w0e=Ff==null?void 0:Ff.can())==null?void 0:w0e.chain())==null?void 0:O0e.focus())==null?void 0:T0e.toggleLink())!=null&&B0e.run()?"pointer":"not-allowed"},onClick:()=>{var N0e,P0e,x0e,L0e;(L0e=(x0e=(P0e=(N0e=Ff==null?void 0:Ff.can())==null?void 0:N0e.chain())==null?void 0:P0e.focus())==null?void 0:x0e.toggleLink())!=null&&L0e.run()&&(t0e(!0),setTimeout(()=>{var C0e;(C0e=Ff==null?void 0:Ff.view)==null||C0e.focus()},100))},children:jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M12.2422 10.3565L11.2993 9.41374L12.2422 8.47094C13.5439 7.16921 13.5439 5.05865 12.2422 3.75691C10.9404 2.45516 8.82988 2.45516 7.52815 3.75691L6.58533 4.69972L5.64253 3.75691L6.58533 2.8141C8.40781 0.991654 11.3625 0.991654 13.185 2.8141C15.0074 4.63655 15.0074 7.59134 13.185 9.41374L12.2422 10.3565ZM10.3565 12.2422L9.41375 13.185C7.59135 15.0075 4.63655 15.0075 2.8141 13.185C0.991654 11.3625 0.991654 8.40781 2.8141 6.58533L3.75691 5.64253L4.69971 6.58533L3.75691 7.52814C2.45516 8.82987 2.45516 10.9405 3.75691 12.2422C5.05865 13.5439 7.16921 13.5439 8.47095 12.2422L9.41375 11.2994L10.3565 12.2422ZM9.88515 5.17112L10.8279 6.11393L6.11393 10.828L5.17112 9.88514L9.88515 5.17112Z",fill:Ff!=null&&Ff.isActive("link")?"#1677FF":"#666666"})})})]})})},bubbleModules={BubbleMenu:BubbleMenu$1,BubbleMenuView:BubbleMenuView$1},Catalogue=kh=>{const{editor:Ff,canOpenCatalogue:x_=!0,isUpdate:B_=!1,onChangeVisible:$_}=kh,$P=React.useRef(!1),[zP,e0e]=React.useState([]),[t0e,n0e]=React.useState([]),[r0e,i0e]=React.useState([]),[o0e,s0e]=React.useState(),[c0e,d0e]=React.useState(!0),[a0e,l0e]=React.useState(!1),u0e=()=>{d0e(!1),$_==null||$_(!1)},h0e=()=>{l0e(!1),d0e(!0),$_==null||$_(!0)},f0e=()=>{l0e(!0),d0e(!0)},p0e=()=>{a0e&&(l0e(!1),d0e(!1))},g0e=(w0e,O0e)=>{const T0e=w0e==null?void 0:w0e.target;(T0e==null?void 0:T0e.scrollWidth)>(T0e==null?void 0:T0e.clientWidth)&&(zP[O0e].showTooltip=!0,e0e([...zP]))},y0e=(w0e,O0e)=>{zP[O0e].showTooltip=!1,e0e([...zP])},m0e=w0e=>{r0e.includes(w0e)?r0e.splice(r0e.indexOf(w0e),1):r0e.push(w0e),i0e([...r0e]),v0e(zP,r0e)},v0e=(w0e,O0e)=>{w0e==null||w0e.forEach(T0e=>T0e.hidden=!1),O0e!=null&&O0e.length&&(O0e==null||O0e.forEach(T0e=>{var N0e;const B0e=(N0e=w0e[T0e])==null?void 0:N0e.level;for(let P0e=T0e+1;P0e<(w0e==null?void 0:w0e.length);P0e++){const x0e=w0e[P0e];if((x0e==null?void 0:x0e.level)>B0e)x0e.hidden=!0;else break}})),e0e([...w0e])},b0e=w0e=>{$P.current=!0,s0e(w0e==null?void 0:w0e.id);const O0e=document.getElementById(w0e.id);O0e==null||O0e.scrollIntoView({behavior:"smooth",block:"start",inline:"nearest"})},E0e=()=>{var B0e,N0e,P0e,x0e,L0e;if(!c0e)return;const w0e=(N0e=(B0e=Ff==null?void 0:Ff.view)==null?void 0:B0e.docView)==null?void 0:N0e.children;if(!w0e)return;const O0e=(P0e=w0e==null?void 0:w0e.filter(C0e=>{var D0e,F0e;return((F0e=(D0e=C0e==null?void 0:C0e.node)==null?void 0:D0e.type)==null?void 0:F0e.name)==="heading"}))==null?void 0:P0e.map(C0e=>{var D0e,F0e,S0e,A0e;return{from:C0e==null?void 0:C0e.posAtStart,to:C0e==null?void 0:C0e.posAtEnd,text:(D0e=C0e==null?void 0:C0e.node)==null?void 0:D0e.textContent,level:(S0e=(F0e=C0e==null?void 0:C0e.node)==null?void 0:F0e.attrs)==null?void 0:S0e.level,id:(A0e=C0e==null?void 0:C0e.nodeDOM)==null?void 0:A0e.id}});v0e(O0e,r0e);const T0e=(L0e=(x0e=O0e==null?void 0:O0e.map(C0e=>C0e==null?void 0:C0e.level))==null?void 0:x0e.filter((C0e,D0e,F0e)=>F0e.indexOf(C0e)===D0e))==null?void 0:L0e.sort((C0e,D0e)=>C0e-D0e);n0e(T0e)};return React.useEffect(()=>(Ff&&(Ff==null||Ff.on("update",E0e)),()=>{Ff&&(Ff==null||Ff.off("update",E0e))}),[Ff,r0e,c0e]),React.useEffect(()=>{const w0e=()=>{if($P!=null&&$P.current){$P.current=!1;return}const T0e=document.getElementById("ylz-editor-container"),B0e=(T0e==null?void 0:T0e.querySelectorAll("h1, h2, h3, h4, h5, h6"))||[],N0e=(T0e==null?void 0:T0e.scrollTop)||0;let P0e=null;for(let x0e=0;x0e<(B0e==null?void 0:B0e.length);x0e++){const L0e=B0e[x0e];if(((L0e==null?void 0:L0e.offsetTop)||0)>N0e){P0e=L0e;break}}s0e((P0e==null?void 0:P0e.id)||"")},O0e=document.getElementById("ylz-editor-container");return O0e==null||O0e.addEventListener("scroll",w0e),()=>{O0e==null||O0e.removeEventListener("scroll",w0e)}},[]),React.useEffect(()=>{x_===!1&&d0e(!1)},[x_]),React.useEffect(()=>{B_&&E0e()},[B_]),React.useEffect(()=>{c0e&&E0e()},[c0e]),jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:c0e?jsxRuntimeExports.jsxs("div",{className:`catalogue${a0e?" catalogue-hover":""}`,onMouseLeave:p0e,children:[jsxRuntimeExports.jsxs("div",{className:"catalogue-header",children:[jsxRuntimeExports.jsx("span",{children:"目录"}),x_===!1?jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{cursor:"not-allowed"},children:jsxRuntimeExports.jsx("path",{d:"M8.0015 2C11.5962 2 14.5869 4.58651 15.2139 8C14.5869 11.4135 11.5962 14 8.0015 14C4.40672 14 1.41607 11.4135 0.789062 8C1.41607 4.58651 4.40672 2 8.0015 2ZM8.0015 12.6667C10.8252 12.6667 13.2415 10.7013 13.8531 8C13.2415 5.29869 10.8252 3.33333 8.0015 3.33333C5.1777 3.33333 2.76145 5.29869 2.14982 8C2.76145 10.7013 5.1777 12.6667 8.0015 12.6667ZM8.0015 11C6.34462 11 5.00148 9.65687 5.00148 8C5.00148 6.34315 6.34462 5 8.0015 5C9.6583 5 11.0015 6.34315 11.0015 8C11.0015 9.65687 9.6583 11 8.0015 11ZM8.0015 9.66667C8.92197 9.66667 9.66817 8.92047 9.66817 8C9.66817 7.07953 8.92197 6.33333 8.0015 6.33333C7.08104 6.33333 6.33481 7.07953 6.33481 8C6.33481 8.92047 7.08104 9.66667 8.0015 9.66667Z",fill:"#CCCCCC"})}):jsxRuntimeExports.jsx(antd.Tooltip,{placement:"bottomLeft",arrow:!1,title:a0e?"显示目录":"隐藏目录",color:"white",overlayClassName:"ylz-editor-tooltip",children:jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:a0e?jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:h0e,children:jsxRuntimeExports.jsx("path",{d:"M8.0015 2C11.5962 2 14.5869 4.58651 15.2139 8C14.5869 11.4135 11.5962 14 8.0015 14C4.40672 14 1.41607 11.4135 0.789062 8C1.41607 4.58651 4.40672 2 8.0015 2ZM8.0015 12.6667C10.8252 12.6667 13.2415 10.7013 13.8531 8C13.2415 5.29869 10.8252 3.33333 8.0015 3.33333C5.1777 3.33333 2.76145 5.29869 2.14982 8C2.76145 10.7013 5.1777 12.6667 8.0015 12.6667ZM8.0015 11C6.34462 11 5.00148 9.65687 5.00148 8C5.00148 6.34315 6.34462 5 8.0015 5C9.6583 5 11.0015 6.34315 11.0015 8C11.0015 9.65687 9.6583 11 8.0015 11ZM8.0015 9.66667C8.92197 9.66667 9.66817 8.92047 9.66817 8C9.66817 7.07953 8.92197 6.33333 8.0015 6.33333C7.08104 6.33333 6.33481 7.07953 6.33481 8C6.33481 8.92047 7.08104 9.66667 8.0015 9.66667Z",fill:"#666666"})}):jsxRuntimeExports.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:()=>u0e(),children:[jsxRuntimeExports.jsx("g",{clipPath:"url(#clip0_3702_1182)",children:jsxRuntimeExports.jsx("path",{d:"M11.9211 12.8647C10.7869 13.5838 9.44188 14.0003 7.99955 14.0003C4.40476 14.0003 1.41412 11.4138 0.787109 8.0003C1.07823 6.41538 1.8789 5.00877 3.013 3.95655L0.928456 1.87201L1.87127 0.929199L15.0706 14.1285L14.1278 15.0714L11.9211 12.8647ZM3.95642 4.89997C3.0705 5.70693 2.42455 6.7783 2.14787 8.0003C2.7595 10.7016 5.17575 12.667 7.99955 12.667C9.06582 12.667 10.074 12.3867 10.9489 11.8924L9.59668 10.5402C9.13422 10.8316 8.58655 11.0003 7.99955 11.0003C6.34267 11.0003 4.99952 9.6571 4.99952 8.0003C4.99952 7.41323 5.16813 6.86557 5.45956 6.40311L3.95642 4.89997ZM8.60862 9.55217L6.44766 7.39123C6.37355 7.5799 6.33286 7.7853 6.33286 8.0003C6.33286 8.92077 7.07908 9.66697 7.99955 9.66697C8.21448 9.66697 8.41995 9.62623 8.60862 9.55217ZM13.8705 11.0618L12.9167 10.108C13.3539 9.4847 13.6763 8.77257 13.8511 8.0003C13.2395 5.29895 10.8233 3.33361 7.99955 3.33361C7.43562 3.33361 6.88795 3.41199 6.36768 3.55895L5.31566 2.50693C6.14686 2.17989 7.05222 2.00027 7.99955 2.00027C11.5943 2.00027 14.5849 4.58678 15.2119 8.0003C15.0038 9.13337 14.5352 10.1754 13.8705 11.0618ZM7.81462 5.00588C7.87575 5.00216 7.93742 5.00027 7.99955 5.00027C9.65635 5.00027 10.9995 6.34342 10.9995 8.0003C10.9995 8.06237 10.9976 8.12403 10.9939 8.18517L7.81462 5.00588Z",fill:"#666666"})}),jsxRuntimeExports.jsx("defs",{children:jsxRuntimeExports.jsx("clipPath",{id:"clip0_3702_1182",children:jsxRuntimeExports.jsx("rect",{width:"16",height:"16",fill:"white"})})})]})})})]}),jsxRuntimeExports.jsx("div",{className:"catalogue-main",children:zP==null?void 0:zP.map((w0e,O0e)=>{var T0e;return jsxRuntimeExports.jsx(React.Fragment,{children:w0e!=null&&w0e.hidden?jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{}):jsxRuntimeExports.jsxs("div",{className:`indent-level-${(t0e==null?void 0:t0e.indexOf(w0e==null?void 0:w0e.level))+1} ${o0e===(w0e==null?void 0:w0e.id)?"active":""}`,children:[jsxRuntimeExports.jsx("span",{className:`catalogue-collapse ${r0e!=null&&r0e.includes(O0e)?"collapsed":""}`,children:(w0e==null?void 0:w0e.level)<((T0e=zP[O0e+1])==null?void 0:T0e.level)?jsxRuntimeExports.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 14 14",xmlns:"http://www.w3.org/2000/svg",onClick:()=>m0e(O0e),children:[jsxRuntimeExports.jsx("rect",{opacity:"0.01",width:"14",height:"14"}),jsxRuntimeExports.jsx("path",{d:"M10.3079 4.60869L6.84062 8.36514L3.37308 4.60869C3.19428 4.41495 2.89227 4.40284 2.69853 4.58164C2.50479 4.76045 2.49269 5.06245 2.67149 5.25619L6.48967 9.39255C6.58002 9.49049 6.70721 9.5462 6.84046 9.5462C6.97372 9.5462 7.10091 9.49049 7.19126 9.39255L11.0094 5.25619C11.1882 5.06245 11.1761 4.76045 10.9824 4.58164C10.7887 4.40284 10.4867 4.41495 10.3079 4.60869"}),jsxRuntimeExports.jsx("path",{d:"M7.38411 9.53907C7.18421 9.77894 6.81579 9.77894 6.61589 9.53907L2.68341 4.82009C2.41202 4.49443 2.6436 4 3.06752 4L10.9325 4C11.3564 4 11.588 4.49443 11.3166 4.82009L7.38411 9.53907Z"})]}):jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{})}),jsxRuntimeExports.jsx(antd.Tooltip,{open:!!(w0e!=null&&w0e.showTooltip),placement:"bottomLeft",arrow:!1,title:w0e==null?void 0:w0e.text,color:"white",overlayClassName:"ylz-editor-tooltip",children:jsxRuntimeExports.jsx("span",{className:"catalogue-text",onMouseEnter:B0e=>g0e(B0e,O0e),onMouseLeave:B0e=>y0e(B0e,O0e),onClick:()=>b0e(w0e),children:w0e==null?void 0:w0e.text})},w0e==null?void 0:w0e.form)]})},(w0e==null?void 0:w0e.id)||(w0e==null?void 0:w0e.form))})})]}):jsxRuntimeExports.jsx("div",{className:"catalogue-folded",children:jsxRuntimeExports.jsx("div",{onMouseEnter:f0e,children:"目录"})})})},backtickInputRegex$1=/^```([a-z]+)?[\s\n]$/,tildeInputRegex=/^~~~([a-z]+)?[\s\n]$/,CodeBlock=Node$1.create({name:"codeBlock",addOptions(){return{languageClassPrefix:"language-",exitOnTripleEnter:!0,exitOnArrowDown:!0,HTMLAttributes:{}}},content:"text*",marks:"",group:"block",code:!0,defining:!0,addAttributes(){return{language:{default:null,parseHTML:kh=>{var $P;const{languageClassPrefix:Ff}=this.options,$_=[...(($P=kh.firstElementChild)==null?void 0:$P.classList)||[]].filter(zP=>zP.startsWith(Ff)).map(zP=>zP.replace(Ff,""))[0];return $_||null},rendered:!1},exec:{default:!1,rendered:!1}}},parseHTML(){return[{tag:"pre",preserveWhitespace:"full"}]},renderHTML({node:kh,HTMLAttributes:Ff}){return["pre",mergeAttributes(this.options.HTMLAttributes,Ff),["code",{class:kh.attrs.language?this.options.languageClassPrefix+kh.attrs.language:null},0]]},addCommands(){return{setCodeBlock:kh=>({commands:Ff})=>Ff.setNode(this.name,kh),toggleCodeBlock:kh=>({commands:Ff})=>Ff.toggleNode(this.name,"paragraph",kh)}},addKeyboardShortcuts(){return{"Mod-Alt-c":()=>this.editor.commands.toggleCodeBlock(),Backspace:()=>{const{empty:kh,$anchor:Ff}=this.editor.state.selection,x_=Ff.pos===1;return!kh||Ff.parent.type.name!==this.name?!1:x_||!Ff.parent.textContent.length?this.editor.commands.clearNodes():!1},Enter:({editor:kh})=>{if(!this.options.exitOnTripleEnter)return!1;const{state:Ff}=kh,{selection:x_}=Ff,{$from:B_,empty:$_}=x_;if(!$_||B_.parent.type!==this.type)return!1;const $P=B_.parentOffset===B_.parent.nodeSize-2,zP=B_.parent.textContent.endsWith(`
139
139
 
140
140
  `);return!$P||!zP?!1:kh.chain().command(({tr:e0e})=>(e0e.delete(B_.pos-2,B_.pos),!0)).exitCode().run()},ArrowDown:({editor:kh})=>{if(!this.options.exitOnArrowDown)return!1;const{state:Ff}=kh,{selection:x_,doc:B_}=Ff,{$from:$_,empty:$P}=x_;if(!$P||$_.parent.type!==this.type||!($_.parentOffset===$_.parent.nodeSize-2))return!1;const e0e=$_.after();return e0e===void 0||B_.nodeAt(e0e)?!1:kh.commands.exitCode()}}},addInputRules(){return[textblockTypeInputRule({find:backtickInputRegex$1,type:this.type,getAttributes:kh=>({language:kh[1]})}),textblockTypeInputRule({find:tildeInputRegex,type:this.type,getAttributes:kh=>({language:kh[1]})})]},addProseMirrorPlugins(){return[new Plugin({key:new PluginKey("codeBlockVSCodeHandler"),props:{handlePaste:(kh,Ff)=>{if(!Ff.clipboardData||this.editor.isActive(this.type.name))return!1;const x_=Ff.clipboardData.getData("text/plain"),B_=Ff.clipboardData.getData("vscode-editor-data"),$_=B_?JSON.parse(B_):void 0,$P=$_==null?void 0:$_.mode;if(!x_||!$P)return!1;const{tr:zP}=kh.state;return zP.replaceSelectionWith(this.type.create({language:$P})),zP.setSelection(TextSelection.near(zP.doc.resolve(Math.max(0,zP.selection.from-1)))),zP.insertText(x_.replace(/\r\n?/g,`
141
141
  `)),zP.setMeta("paste",!0),kh.dispatch(zP),!0}}})]}});function deepFreeze(kh){return kh instanceof Map?kh.clear=kh.delete=kh.set=function(){throw new Error("map is read-only")}:kh instanceof Set&&(kh.add=kh.clear=kh.delete=function(){throw new Error("set is read-only")}),Object.freeze(kh),Object.getOwnPropertyNames(kh).forEach(Ff=>{const x_=kh[Ff],B_=typeof x_;(B_==="object"||B_==="function")&&!Object.isFrozen(x_)&&deepFreeze(x_)}),kh}class Response{constructor(Ff){Ff.data===void 0&&(Ff.data={}),this.data=Ff.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function escapeHTML(kh){return kh.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function inherit$1(kh,...Ff){const x_=Object.create(null);for(const B_ in kh)x_[B_]=kh[B_];return Ff.forEach(function(B_){for(const $_ in B_)x_[$_]=B_[$_]}),x_}const SPAN_CLOSE="</span>",emitsWrappingTags=kh=>!!kh.scope,scopeToCSSClass=(kh,{prefix:Ff})=>{if(kh.startsWith("language:"))return kh.replace("language:","language-");if(kh.includes(".")){const x_=kh.split(".");return[`${Ff}${x_.shift()}`,...x_.map((B_,$_)=>`${B_}${"_".repeat($_+1)}`)].join(" ")}return`${Ff}${kh}`};class HTMLRenderer{constructor(Ff,x_){this.buffer="",this.classPrefix=x_.classPrefix,Ff.walk(this)}addText(Ff){this.buffer+=escapeHTML(Ff)}openNode(Ff){if(!emitsWrappingTags(Ff))return;const x_=scopeToCSSClass(Ff.scope,{prefix:this.classPrefix});this.span(x_)}closeNode(Ff){emitsWrappingTags(Ff)&&(this.buffer+=SPAN_CLOSE)}value(){return this.buffer}span(Ff){this.buffer+=`<span class="${Ff}">`}}const newNode=(kh={})=>{const Ff={children:[]};return Object.assign(Ff,kh),Ff};class TokenTree{constructor(){this.rootNode=newNode(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(Ff){this.top.children.push(Ff)}openNode(Ff){const x_=newNode({scope:Ff});this.add(x_),this.stack.push(x_)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(Ff){return this.constructor._walk(Ff,this.rootNode)}static _walk(Ff,x_){return typeof x_=="string"?Ff.addText(x_):x_.children&&(Ff.openNode(x_),x_.children.forEach(B_=>this._walk(Ff,B_)),Ff.closeNode(x_)),Ff}static _collapse(Ff){typeof Ff!="string"&&Ff.children&&(Ff.children.every(x_=>typeof x_=="string")?Ff.children=[Ff.children.join("")]:Ff.children.forEach(x_=>{TokenTree._collapse(x_)}))}}class TokenTreeEmitter extends TokenTree{constructor(Ff){super(),this.options=Ff}addText(Ff){Ff!==""&&this.add(Ff)}startScope(Ff){this.openNode(Ff)}endScope(){this.closeNode()}__addSublanguage(Ff,x_){const B_=Ff.root;x_&&(B_.scope=`language:${x_}`),this.add(B_)}toHTML(){return new HTMLRenderer(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function source(kh){return kh?typeof kh=="string"?kh:kh.source:null}function lookahead(kh){return concat("(?=",kh,")")}function anyNumberOfTimes(kh){return concat("(?:",kh,")*")}function optional(kh){return concat("(?:",kh,")?")}function concat(...kh){return kh.map(x_=>source(x_)).join("")}function stripOptionsFromArgs(kh){const Ff=kh[kh.length-1];return typeof Ff=="object"&&Ff.constructor===Object?(kh.splice(kh.length-1,1),Ff):{}}function either(...kh){return"("+(stripOptionsFromArgs(kh).capture?"":"?:")+kh.map(B_=>source(B_)).join("|")+")"}function countMatchGroups(kh){return new RegExp(kh.toString()+"|").exec("").length-1}function startsWith(kh,Ff){const x_=kh&&kh.exec(Ff);return x_&&x_.index===0}const BACKREF_RE=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function _rewriteBackreferences(kh,{joinWith:Ff}){let x_=0;return kh.map(B_=>{x_+=1;const $_=x_;let $P=source(B_),zP="";for(;$P.length>0;){const e0e=BACKREF_RE.exec($P);if(!e0e){zP+=$P;break}zP+=$P.substring(0,e0e.index),$P=$P.substring(e0e.index+e0e[0].length),e0e[0][0]==="\\"&&e0e[1]?zP+="\\"+String(Number(e0e[1])+$_):(zP+=e0e[0],e0e[0]==="("&&x_++)}return zP}).map(B_=>`(${B_})`).join(Ff)}const MATCH_NOTHING_RE=/\b\B/,IDENT_RE="[a-zA-Z]\\w*",UNDERSCORE_IDENT_RE="[a-zA-Z_]\\w*",NUMBER_RE="\\b\\d+(\\.\\d+)?",C_NUMBER_RE="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",BINARY_NUMBER_RE="\\b(0b[01]+)",RE_STARTERS_RE="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",SHEBANG=(kh={})=>{const Ff=/^#![ ]*\//;return kh.binary&&(kh.begin=concat(Ff,/.*\b/,kh.binary,/\b.*/)),inherit$1({scope:"meta",begin:Ff,end:/$/,relevance:0,"on:begin":(x_,B_)=>{x_.index!==0&&B_.ignoreMatch()}},kh)},BACKSLASH_ESCAPE={begin:"\\\\[\\s\\S]",relevance:0},APOS_STRING_MODE={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[BACKSLASH_ESCAPE]},QUOTE_STRING_MODE={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[BACKSLASH_ESCAPE]},PHRASAL_WORDS_MODE={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},COMMENT=function(kh,Ff,x_={}){const B_=inherit$1({scope:"comment",begin:kh,end:Ff,contains:[]},x_);B_.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const $_=either("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return B_.contains.push({begin:concat(/[ ]+/,"(",$_,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),B_},C_LINE_COMMENT_MODE=COMMENT("//","$"),C_BLOCK_COMMENT_MODE=COMMENT("/\\*","\\*/"),HASH_COMMENT_MODE=COMMENT("#","$"),NUMBER_MODE={scope:"number",begin:NUMBER_RE,relevance:0},C_NUMBER_MODE={scope:"number",begin:C_NUMBER_RE,relevance:0},BINARY_NUMBER_MODE={scope:"number",begin:BINARY_NUMBER_RE,relevance:0},REGEXP_MODE={begin:/(?=\/[^/\n]*\/)/,contains:[{scope:"regexp",begin:/\//,end:/\/[gimuy]*/,illegal:/\n/,contains:[BACKSLASH_ESCAPE,{begin:/\[/,end:/\]/,relevance:0,contains:[BACKSLASH_ESCAPE]}]}]},TITLE_MODE={scope:"title",begin:IDENT_RE,relevance:0},UNDERSCORE_TITLE_MODE={scope:"title",begin:UNDERSCORE_IDENT_RE,relevance:0},METHOD_GUARD={begin:"\\.\\s*"+UNDERSCORE_IDENT_RE,relevance:0},END_SAME_AS_BEGIN=function(kh){return Object.assign(kh,{"on:begin":(Ff,x_)=>{x_.data._beginMatch=Ff[1]},"on:end":(Ff,x_)=>{x_.data._beginMatch!==Ff[1]&&x_.ignoreMatch()}})};var MODES=Object.freeze({__proto__:null,MATCH_NOTHING_RE,IDENT_RE,UNDERSCORE_IDENT_RE,NUMBER_RE,C_NUMBER_RE,BINARY_NUMBER_RE,RE_STARTERS_RE,SHEBANG,BACKSLASH_ESCAPE,APOS_STRING_MODE,QUOTE_STRING_MODE,PHRASAL_WORDS_MODE,COMMENT,C_LINE_COMMENT_MODE,C_BLOCK_COMMENT_MODE,HASH_COMMENT_MODE,NUMBER_MODE,C_NUMBER_MODE,BINARY_NUMBER_MODE,REGEXP_MODE,TITLE_MODE,UNDERSCORE_TITLE_MODE,METHOD_GUARD,END_SAME_AS_BEGIN});function skipIfHasPrecedingDot(kh,Ff){kh.input[kh.index-1]==="."&&Ff.ignoreMatch()}function scopeClassName(kh,Ff){kh.className!==void 0&&(kh.scope=kh.className,delete kh.className)}function beginKeywords(kh,Ff){Ff&&kh.beginKeywords&&(kh.begin="\\b("+kh.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",kh.__beforeBegin=skipIfHasPrecedingDot,kh.keywords=kh.keywords||kh.beginKeywords,delete kh.beginKeywords,kh.relevance===void 0&&(kh.relevance=0))}function compileIllegal(kh,Ff){Array.isArray(kh.illegal)&&(kh.illegal=either(...kh.illegal))}function compileMatch(kh,Ff){if(kh.match){if(kh.begin||kh.end)throw new Error("begin & end are not supported with match");kh.begin=kh.match,delete kh.match}}function compileRelevance(kh,Ff){kh.relevance===void 0&&(kh.relevance=1)}const beforeMatchExt=(kh,Ff)=>{if(!kh.beforeMatch)return;if(kh.starts)throw new Error("beforeMatch cannot be used with starts");const x_=Object.assign({},kh);Object.keys(kh).forEach(B_=>{delete kh[B_]}),kh.keywords=x_.keywords,kh.begin=concat(x_.beforeMatch,lookahead(x_.begin)),kh.starts={relevance:0,contains:[Object.assign(x_,{endsParent:!0})]},kh.relevance=0,delete x_.beforeMatch},COMMON_KEYWORDS=["of","and","for","in","not","or","if","then","parent","list","value"],DEFAULT_KEYWORD_SCOPE="keyword";function compileKeywords(kh,Ff,x_=DEFAULT_KEYWORD_SCOPE){const B_=Object.create(null);return typeof kh=="string"?$_(x_,kh.split(" ")):Array.isArray(kh)?$_(x_,kh):Object.keys(kh).forEach(function($P){Object.assign(B_,compileKeywords(kh[$P],Ff,$P))}),B_;function $_($P,zP){Ff&&(zP=zP.map(e0e=>e0e.toLowerCase())),zP.forEach(function(e0e){const t0e=e0e.split("|");B_[t0e[0]]=[$P,scoreForKeyword(t0e[0],t0e[1])]})}}function scoreForKeyword(kh,Ff){return Ff?Number(Ff):commonKeyword(kh)?0:1}function commonKeyword(kh){return COMMON_KEYWORDS.includes(kh.toLowerCase())}const seenDeprecations={},error$1=kh=>{console.error(kh)},warn$1=(kh,...Ff)=>{console.log(`WARN: ${kh}`,...Ff)},deprecated=(kh,Ff)=>{seenDeprecations[`${kh}/${Ff}`]||(console.log(`Deprecated as of ${kh}. ${Ff}`),seenDeprecations[`${kh}/${Ff}`]=!0)},MultiClassError=new Error;function remapScopeNames(kh,Ff,{key:x_}){let B_=0;const $_=kh[x_],$P={},zP={};for(let e0e=1;e0e<=Ff.length;e0e++)zP[e0e+B_]=$_[e0e],$P[e0e+B_]=!0,B_+=countMatchGroups(Ff[e0e-1]);kh[x_]=zP,kh[x_]._emit=$P,kh[x_]._multi=!0}function beginMultiClass(kh){if(Array.isArray(kh.begin)){if(kh.skip||kh.excludeBegin||kh.returnBegin)throw error$1("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),MultiClassError;if(typeof kh.beginScope!="object"||kh.beginScope===null)throw error$1("beginScope must be object"),MultiClassError;remapScopeNames(kh,kh.begin,{key:"beginScope"}),kh.begin=_rewriteBackreferences(kh.begin,{joinWith:""})}}function endMultiClass(kh){if(Array.isArray(kh.end)){if(kh.skip||kh.excludeEnd||kh.returnEnd)throw error$1("skip, excludeEnd, returnEnd not compatible with endScope: {}"),MultiClassError;if(typeof kh.endScope!="object"||kh.endScope===null)throw error$1("endScope must be object"),MultiClassError;remapScopeNames(kh,kh.end,{key:"endScope"}),kh.end=_rewriteBackreferences(kh.end,{joinWith:""})}}function scopeSugar(kh){kh.scope&&typeof kh.scope=="object"&&kh.scope!==null&&(kh.beginScope=kh.scope,delete kh.scope)}function MultiClass(kh){scopeSugar(kh),typeof kh.beginScope=="string"&&(kh.beginScope={_wrap:kh.beginScope}),typeof kh.endScope=="string"&&(kh.endScope={_wrap:kh.endScope}),beginMultiClass(kh),endMultiClass(kh)}function compileLanguage(kh){function Ff(zP,e0e){return new RegExp(source(zP),"m"+(kh.case_insensitive?"i":"")+(kh.unicodeRegex?"u":"")+(e0e?"g":""))}class x_{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(e0e,t0e){t0e.position=this.position++,this.matchIndexes[this.matchAt]=t0e,this.regexes.push([t0e,e0e]),this.matchAt+=countMatchGroups(e0e)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const e0e=this.regexes.map(t0e=>t0e[1]);this.matcherRe=Ff(_rewriteBackreferences(e0e,{joinWith:"|"}),!0),this.lastIndex=0}exec(e0e){this.matcherRe.lastIndex=this.lastIndex;const t0e=this.matcherRe.exec(e0e);if(!t0e)return null;const n0e=t0e.findIndex((i0e,o0e)=>o0e>0&&i0e!==void 0),r0e=this.matchIndexes[n0e];return t0e.splice(0,n0e),Object.assign(t0e,r0e)}}class B_{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(e0e){if(this.multiRegexes[e0e])return this.multiRegexes[e0e];const t0e=new x_;return this.rules.slice(e0e).forEach(([n0e,r0e])=>t0e.addRule(n0e,r0e)),t0e.compile(),this.multiRegexes[e0e]=t0e,t0e}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(e0e,t0e){this.rules.push([e0e,t0e]),t0e.type==="begin"&&this.count++}exec(e0e){const t0e=this.getMatcher(this.regexIndex);t0e.lastIndex=this.lastIndex;let n0e=t0e.exec(e0e);if(this.resumingScanAtSamePosition()&&!(n0e&&n0e.index===this.lastIndex)){const r0e=this.getMatcher(0);r0e.lastIndex=this.lastIndex+1,n0e=r0e.exec(e0e)}return n0e&&(this.regexIndex+=n0e.position+1,this.regexIndex===this.count&&this.considerAll()),n0e}}function $_(zP){const e0e=new B_;return zP.contains.forEach(t0e=>e0e.addRule(t0e.begin,{rule:t0e,type:"begin"})),zP.terminatorEnd&&e0e.addRule(zP.terminatorEnd,{type:"end"}),zP.illegal&&e0e.addRule(zP.illegal,{type:"illegal"}),e0e}function $P(zP,e0e){const t0e=zP;if(zP.isCompiled)return t0e;[scopeClassName,compileMatch,MultiClass,beforeMatchExt].forEach(r0e=>r0e(zP,e0e)),kh.compilerExtensions.forEach(r0e=>r0e(zP,e0e)),zP.__beforeBegin=null,[beginKeywords,compileIllegal,compileRelevance].forEach(r0e=>r0e(zP,e0e)),zP.isCompiled=!0;let n0e=null;return typeof zP.keywords=="object"&&zP.keywords.$pattern&&(zP.keywords=Object.assign({},zP.keywords),n0e=zP.keywords.$pattern,delete zP.keywords.$pattern),n0e=n0e||/\w+/,zP.keywords&&(zP.keywords=compileKeywords(zP.keywords,kh.case_insensitive)),t0e.keywordPatternRe=Ff(n0e,!0),e0e&&(zP.begin||(zP.begin=/\B|\b/),t0e.beginRe=Ff(t0e.begin),!zP.end&&!zP.endsWithParent&&(zP.end=/\B|\b/),zP.end&&(t0e.endRe=Ff(t0e.end)),t0e.terminatorEnd=source(t0e.end)||"",zP.endsWithParent&&e0e.terminatorEnd&&(t0e.terminatorEnd+=(zP.end?"|":"")+e0e.terminatorEnd)),zP.illegal&&(t0e.illegalRe=Ff(zP.illegal)),zP.contains||(zP.contains=[]),zP.contains=[].concat(...zP.contains.map(function(r0e){return expandOrCloneMode(r0e==="self"?zP:r0e)})),zP.contains.forEach(function(r0e){$P(r0e,t0e)}),zP.starts&&$P(zP.starts,e0e),t0e.matcher=$_(t0e),t0e}if(kh.compilerExtensions||(kh.compilerExtensions=[]),kh.contains&&kh.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return kh.classNameAliases=inherit$1(kh.classNameAliases||{}),$P(kh)}function dependencyOnParent(kh){return kh?kh.endsWithParent||dependencyOnParent(kh.starts):!1}function expandOrCloneMode(kh){return kh.variants&&!kh.cachedVariants&&(kh.cachedVariants=kh.variants.map(function(Ff){return inherit$1(kh,{variants:null},Ff)})),kh.cachedVariants?kh.cachedVariants:dependencyOnParent(kh)?inherit$1(kh,{starts:kh.starts?inherit$1(kh.starts):null}):Object.isFrozen(kh)?inherit$1(kh):kh}var version="11.8.0";class HTMLInjectionError extends Error{constructor(Ff,x_){super(Ff),this.name="HTMLInjectionError",this.html=x_}}const escape$1=escapeHTML,inherit=inherit$1,NO_MATCH=Symbol("nomatch"),MAX_KEYWORD_HITS=7,HLJS=function(kh){const Ff=Object.create(null),x_=Object.create(null),B_=[];let $_=!0;const $P="Could not find the language '{}', did you forget to load/include a language module?",zP={disableAutodetect:!0,name:"Plain text",contains:[]};let e0e={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:TokenTreeEmitter};function t0e(P0e){return e0e.noHighlightRe.test(P0e)}function n0e(P0e){let x0e=P0e.className+" ";x0e+=P0e.parentNode?P0e.parentNode.className:"";const L0e=e0e.languageDetectRe.exec(x0e);if(L0e){const C0e=v0e(L0e[1]);return C0e||(warn$1($P.replace("{}",L0e[1])),warn$1("Falling back to no-highlight mode for this block.",P0e)),C0e?L0e[1]:"no-highlight"}return x0e.split(/\s+/).find(C0e=>t0e(C0e)||v0e(C0e))}function r0e(P0e,x0e,L0e){let C0e="",D0e="";typeof x0e=="object"?(C0e=P0e,L0e=x0e.ignoreIllegals,D0e=x0e.language):(deprecated("10.7.0","highlight(lang, code, ...args) has been deprecated."),deprecated("10.7.0",`Please use highlight(code, options) instead.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ylzcc/editor",
3
- "version": "0.4.7",
3
+ "version": "0.4.8",
4
4
  "type": "module",
5
5
  "description": "editor ui components",
6
6
  "keywords": [
@@ -60,7 +60,6 @@
60
60
  "@wangeditor/editor": "^5.1.23",
61
61
  "@ylzcc/remark-code": "^0.0.8",
62
62
  "@ylzcc/xterm": "1.4.2",
63
- "antd": "^5.6.1",
64
63
  "axios": "^1.6.7",
65
64
  "highlight.js": "11.8.0",
66
65
  "lowlight": "2.8.1",
@@ -90,5 +89,8 @@
90
89
  "typescript": "^5.2.2",
91
90
  "vite": "^5.1.4",
92
91
  "vite-plugin-libcss": "^1.1.1"
92
+ },
93
+ "peerDependencies": {
94
+ "antd": "^5.6.1"
93
95
  }
94
96
  }