@kakadu/components 6.14.1 → 6.15.0
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/build/components/code.d.ts +3 -1
- package/build/components/code.js +4 -4
- package/build/components/code.mjs +367 -363
- package/build/components/input.d.ts +1 -0
- package/build/components/input.js +2 -2
- package/build/components/input.mjs +2 -1
- package/build/components.css +1 -1
- package/build/hooks/use-local-storage.js +1 -1
- package/build/hooks/use-local-storage.mjs +60 -70
- package/build/index.js +1 -1
- package/build/index.mjs +198 -197
- package/package.json +1 -1
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import { j as
|
|
1
|
+
import { j as O } from "../jsx-runtime-z6PQ6F3d.mjs";
|
|
2
2
|
import { useMemo as an } from "react";
|
|
3
|
-
import { cx as
|
|
4
|
-
import En from "
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
3
|
+
import { cx as j } from "@kuma-ui/core";
|
|
4
|
+
import { overflowProtectionStyles as En } from "../theme.mjs";
|
|
5
|
+
import Sn from "./copy-icon-button.mjs";
|
|
6
|
+
import { legendStyles as wn, InputAttachment as An } from "./input.mjs";
|
|
7
|
+
import { SkeletonInstance as kn } from "./skeleton.mjs";
|
|
8
|
+
import { Span as Tn } from "./text.mjs";
|
|
7
9
|
$.displayName = "clike";
|
|
8
10
|
$.aliases = [];
|
|
9
11
|
function $(e) {
|
|
@@ -220,18 +222,18 @@ function re(e) {
|
|
|
220
222
|
);
|
|
221
223
|
})(e);
|
|
222
224
|
}
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
function
|
|
225
|
+
fe.displayName = "arduino";
|
|
226
|
+
fe.aliases = ["ino"];
|
|
227
|
+
function fe(e) {
|
|
226
228
|
e.register(re), e.languages.arduino = e.languages.extend("cpp", {
|
|
227
229
|
keyword: /\b(?:String|array|bool|boolean|break|byte|case|catch|continue|default|do|double|else|finally|for|function|goto|if|in|instanceof|int|integer|long|loop|new|null|return|setup|string|switch|throw|try|void|while|word)\b/,
|
|
228
230
|
constant: /\b(?:ANALOG_MESSAGE|DEFAULT|DIGITAL_MESSAGE|EXTERNAL|FIRMATA_STRING|HIGH|INPUT|INPUT_PULLUP|INTERNAL|INTERNAL1V1|INTERNAL2V56|LED_BUILTIN|LOW|OUTPUT|REPORT_ANALOG|REPORT_DIGITAL|SET_PIN_MODE|SYSEX_START|SYSTEM_RESET)\b/,
|
|
229
231
|
builtin: /\b(?:Audio|BSSID|Bridge|Client|Console|EEPROM|Esplora|EsploraTFT|Ethernet|EthernetClient|EthernetServer|EthernetUDP|File|FileIO|FileSystem|Firmata|GPRS|GSM|GSMBand|GSMClient|GSMModem|GSMPIN|GSMScanner|GSMServer|GSMVoiceCall|GSM_SMS|HttpClient|IPAddress|IRread|Keyboard|KeyboardController|LiquidCrystal|LiquidCrystal_I2C|Mailbox|Mouse|MouseController|PImage|Process|RSSI|RobotControl|RobotMotor|SD|SPI|SSID|Scheduler|Serial|Server|Servo|SoftwareSerial|Stepper|Stream|TFT|Task|USBHost|WiFi|WiFiClient|WiFiServer|WiFiUDP|Wire|YunClient|YunServer|abs|addParameter|analogRead|analogReadResolution|analogReference|analogWrite|analogWriteResolution|answerCall|attach|attachGPRS|attachInterrupt|attached|autoscroll|available|background|beep|begin|beginPacket|beginSD|beginSMS|beginSpeaker|beginTFT|beginTransmission|beginWrite|bit|bitClear|bitRead|bitSet|bitWrite|blink|blinkVersion|buffer|changePIN|checkPIN|checkPUK|checkReg|circle|cityNameRead|cityNameWrite|clear|clearScreen|click|close|compassRead|config|connect|connected|constrain|cos|countryNameRead|countryNameWrite|createChar|cursor|debugPrint|delay|delayMicroseconds|detach|detachInterrupt|digitalRead|digitalWrite|disconnect|display|displayLogos|drawBMP|drawCompass|encryptionType|end|endPacket|endSMS|endTransmission|endWrite|exists|exitValue|fill|find|findUntil|flush|gatewayIP|get|getAsynchronously|getBand|getButton|getCurrentCarrier|getIMEI|getKey|getModifiers|getOemKey|getPINUsed|getResult|getSignalStrength|getSocket|getVoiceCallStatus|getXChange|getYChange|hangCall|height|highByte|home|image|interrupts|isActionDone|isDirectory|isListening|isPIN|isPressed|isValid|keyPressed|keyReleased|keyboardRead|knobRead|leftToRight|line|lineFollowConfig|listen|listenOnLocalhost|loadImage|localIP|lowByte|macAddress|maintain|map|max|messageAvailable|micros|millis|min|mkdir|motorsStop|motorsWrite|mouseDragged|mouseMoved|mousePressed|mouseReleased|move|noAutoscroll|noBlink|noBuffer|noCursor|noDisplay|noFill|noInterrupts|noListenOnLocalhost|noStroke|noTone|onReceive|onRequest|open|openNextFile|overflow|parseCommand|parseFloat|parseInt|parsePacket|pauseMode|peek|pinMode|playFile|playMelody|point|pointTo|position|pow|prepare|press|print|printFirmwareVersion|printVersion|println|process|processInput|pulseIn|put|random|randomSeed|read|readAccelerometer|readBlue|readButton|readBytes|readBytesUntil|readGreen|readJoystickButton|readJoystickSwitch|readJoystickX|readJoystickY|readLightSensor|readMessage|readMicrophone|readNetworks|readRed|readSlider|readString|readStringUntil|readTemperature|ready|rect|release|releaseAll|remoteIP|remoteNumber|remotePort|remove|requestFrom|retrieveCallingNumber|rewindDirectory|rightToLeft|rmdir|robotNameRead|robotNameWrite|run|runAsynchronously|runShellCommand|runShellCommandAsynchronously|running|scanNetworks|scrollDisplayLeft|scrollDisplayRight|seek|sendAnalog|sendDigitalPortPair|sendDigitalPorts|sendString|sendSysex|serialEvent|setBand|setBitOrder|setClockDivider|setCursor|setDNS|setDataMode|setFirmwareVersion|setMode|setPINUsed|setSpeed|setTextSize|setTimeout|shiftIn|shiftOut|shutdown|sin|size|sqrt|startLoop|step|stop|stroke|subnetMask|switchPIN|tan|tempoWrite|text|tone|transfer|tuneWrite|turn|updateIR|userNameRead|userNameWrite|voiceCall|waitContinue|width|write|writeBlue|writeGreen|writeJSON|writeMessage|writeMicroseconds|writeRGB|writeRed|yield)\b/
|
|
230
232
|
}), e.languages.ino = e.languages.arduino;
|
|
231
233
|
}
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
function
|
|
234
|
+
be.displayName = "bash";
|
|
235
|
+
be.aliases = ["sh", "shell"];
|
|
236
|
+
function be(e) {
|
|
235
237
|
(function(n) {
|
|
236
238
|
var t = "\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b", r = {
|
|
237
239
|
pattern: /(^(["']?)\w+\2)[ \t]+\S.*/,
|
|
@@ -452,9 +454,9 @@ function fe(e) {
|
|
|
452
454
|
n.languages.sh = n.languages.bash, n.languages.shell = n.languages.bash;
|
|
453
455
|
})(e);
|
|
454
456
|
}
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
function
|
|
457
|
+
he.displayName = "csharp";
|
|
458
|
+
he.aliases = ["cs", "dotnet"];
|
|
459
|
+
function he(e) {
|
|
458
460
|
e.register($), (function(n) {
|
|
459
461
|
function t(q, z) {
|
|
460
462
|
return q.replace(/<<(\d+)>>/g, function(ee, yn) {
|
|
@@ -495,22 +497,22 @@ function be(e) {
|
|
|
495
497
|
o.typeDeclaration + " " + o.contextual + " " + o.other
|
|
496
498
|
), g = s(
|
|
497
499
|
o.type + " " + o.typeDeclaration + " " + o.other
|
|
498
|
-
),
|
|
500
|
+
), S = a(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source, 2), E = a(/\((?:[^()]|<<self>>)*\)/.source, 2), h = /@?\b[A-Za-z_]\w*\b/.source, w = t(/<<0>>(?:\s*<<1>>)?/.source, [h, S]), m = t(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source, [
|
|
499
501
|
c,
|
|
500
|
-
|
|
501
|
-
]), y = /\[\s*(?:,\s*)*\]/.source,
|
|
502
|
+
w
|
|
503
|
+
]), y = /\[\s*(?:,\s*)*\]/.source, A = t(
|
|
502
504
|
/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,
|
|
503
505
|
[m, y]
|
|
504
506
|
), R = t(
|
|
505
507
|
/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,
|
|
506
|
-
[
|
|
508
|
+
[S, E, y]
|
|
507
509
|
), T = t(/\(<<0>>+(?:,<<0>>+)+\)/.source, [R]), f = t(
|
|
508
510
|
/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,
|
|
509
511
|
[T, m, y]
|
|
510
512
|
), v = {
|
|
511
513
|
keyword: u,
|
|
512
514
|
punctuation: /[<>()?,.:[\]]/
|
|
513
|
-
}, L = /'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,
|
|
515
|
+
}, L = /'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source, C = /"(?:\\.|[^\\"\r\n])*"/.source, I = /@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;
|
|
514
516
|
n.languages.csharp = n.languages.extend("clike", {
|
|
515
517
|
string: [
|
|
516
518
|
{
|
|
@@ -519,7 +521,7 @@ function be(e) {
|
|
|
519
521
|
greedy: !0
|
|
520
522
|
},
|
|
521
523
|
{
|
|
522
|
-
pattern: r(/(^|[^@$\\])<<0>>/.source, [
|
|
524
|
+
pattern: r(/(^|[^@$\\])<<0>>/.source, [C]),
|
|
523
525
|
lookbehind: !0,
|
|
524
526
|
greedy: !0
|
|
525
527
|
}
|
|
@@ -556,7 +558,7 @@ function be(e) {
|
|
|
556
558
|
// interface Foo<out A, B>
|
|
557
559
|
pattern: r(/(\b<<0>>\s+)<<1>>/.source, [
|
|
558
560
|
i,
|
|
559
|
-
|
|
561
|
+
w
|
|
560
562
|
]),
|
|
561
563
|
lookbehind: !0,
|
|
562
564
|
inside: v
|
|
@@ -580,7 +582,7 @@ function be(e) {
|
|
|
580
582
|
// as Foo<A>, is Bar<B>
|
|
581
583
|
// (things like if(a is Foo b) is covered by variable declaration)
|
|
582
584
|
pattern: r(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source, [
|
|
583
|
-
|
|
585
|
+
A
|
|
584
586
|
]),
|
|
585
587
|
lookbehind: !0,
|
|
586
588
|
inside: v
|
|
@@ -628,7 +630,7 @@ function be(e) {
|
|
|
628
630
|
// default(Foo), typeof(Foo<Bar>), sizeof(int)
|
|
629
631
|
pattern: r(
|
|
630
632
|
/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,
|
|
631
|
-
[
|
|
633
|
+
[E]
|
|
632
634
|
),
|
|
633
635
|
lookbehind: !0,
|
|
634
636
|
alias: "class-name",
|
|
@@ -660,11 +662,11 @@ function be(e) {
|
|
|
660
662
|
},*/
|
|
661
663
|
"generic-method": {
|
|
662
664
|
// foo<Bar>()
|
|
663
|
-
pattern: r(/<<0>>\s*<<1>>(?=\s*\()/.source, [h,
|
|
665
|
+
pattern: r(/<<0>>\s*<<1>>(?=\s*\()/.source, [h, S]),
|
|
664
666
|
inside: {
|
|
665
667
|
function: r(/^<<0>>/.source, [h]),
|
|
666
668
|
generic: {
|
|
667
|
-
pattern: RegExp(
|
|
669
|
+
pattern: RegExp(S),
|
|
668
670
|
alias: "class-name",
|
|
669
671
|
inside: v
|
|
670
672
|
}
|
|
@@ -678,11 +680,11 @@ function be(e) {
|
|
|
678
680
|
/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,
|
|
679
681
|
[
|
|
680
682
|
i,
|
|
681
|
-
|
|
683
|
+
w,
|
|
682
684
|
h,
|
|
683
685
|
f,
|
|
684
686
|
u.source,
|
|
685
|
-
|
|
687
|
+
E,
|
|
686
688
|
/\bnew\s*\(\s*\)/.source
|
|
687
689
|
]
|
|
688
690
|
),
|
|
@@ -690,8 +692,8 @@ function be(e) {
|
|
|
690
692
|
inside: {
|
|
691
693
|
"record-arguments": {
|
|
692
694
|
pattern: r(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source, [
|
|
693
|
-
|
|
694
|
-
|
|
695
|
+
w,
|
|
696
|
+
E
|
|
695
697
|
]),
|
|
696
698
|
lookbehind: !0,
|
|
697
699
|
greedy: !0,
|
|
@@ -720,17 +722,17 @@ function be(e) {
|
|
|
720
722
|
}
|
|
721
723
|
}
|
|
722
724
|
});
|
|
723
|
-
var G =
|
|
725
|
+
var G = C + "|" + L, M = t(
|
|
724
726
|
/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,
|
|
725
727
|
[G]
|
|
726
|
-
),
|
|
728
|
+
), D = a(
|
|
727
729
|
t(/[^"'/()]|<<0>>|\(<<self>>*\)/.source, [
|
|
728
730
|
M
|
|
729
731
|
]),
|
|
730
732
|
2
|
|
731
|
-
),
|
|
733
|
+
), _ = /\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source, b = t(/<<0>>(?:\s*\(<<1>>*\))?/.source, [
|
|
732
734
|
m,
|
|
733
|
-
|
|
735
|
+
D
|
|
734
736
|
]);
|
|
735
737
|
n.languages.insertBefore("csharp", "class-name", {
|
|
736
738
|
attribute: {
|
|
@@ -738,17 +740,17 @@ function be(e) {
|
|
|
738
740
|
// [Foo], [Foo(1), Bar(2, Prop = "foo")], [return: Foo(1), Bar(2)], [assembly: Foo(Bar)]
|
|
739
741
|
pattern: r(
|
|
740
742
|
/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,
|
|
741
|
-
[
|
|
743
|
+
[_, b]
|
|
742
744
|
),
|
|
743
745
|
lookbehind: !0,
|
|
744
746
|
greedy: !0,
|
|
745
747
|
inside: {
|
|
746
748
|
target: {
|
|
747
|
-
pattern: r(/^<<0>>(?=\s*:)/.source, [
|
|
749
|
+
pattern: r(/^<<0>>(?=\s*:)/.source, [_]),
|
|
748
750
|
alias: "keyword"
|
|
749
751
|
},
|
|
750
752
|
"attribute-arguments": {
|
|
751
|
-
pattern: r(/\(<<0>>*\)/.source, [
|
|
753
|
+
pattern: r(/\(<<0>>*\)/.source, [D]),
|
|
752
754
|
inside: n.languages.csharp
|
|
753
755
|
},
|
|
754
756
|
"class-name": {
|
|
@@ -766,20 +768,20 @@ function be(e) {
|
|
|
766
768
|
M
|
|
767
769
|
]),
|
|
768
770
|
2
|
|
769
|
-
),
|
|
771
|
+
), He = t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source, [
|
|
770
772
|
V,
|
|
771
773
|
B
|
|
772
|
-
]),
|
|
774
|
+
]), Pe = a(
|
|
773
775
|
t(
|
|
774
776
|
/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,
|
|
775
777
|
[G]
|
|
776
778
|
),
|
|
777
779
|
2
|
|
778
|
-
),
|
|
779
|
-
|
|
780
|
+
), Ve = t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source, [
|
|
781
|
+
Pe,
|
|
780
782
|
B
|
|
781
783
|
]);
|
|
782
|
-
function
|
|
784
|
+
function je(q, z) {
|
|
783
785
|
return {
|
|
784
786
|
interpolation: {
|
|
785
787
|
pattern: r(/((?:^|[^{])(?:\{\{)*)<<0>>/.source, [q]),
|
|
@@ -811,19 +813,19 @@ function be(e) {
|
|
|
811
813
|
{
|
|
812
814
|
pattern: r(
|
|
813
815
|
/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,
|
|
814
|
-
[
|
|
816
|
+
[He]
|
|
815
817
|
),
|
|
816
818
|
lookbehind: !0,
|
|
817
819
|
greedy: !0,
|
|
818
|
-
inside:
|
|
820
|
+
inside: je(He, V)
|
|
819
821
|
},
|
|
820
822
|
{
|
|
821
823
|
pattern: r(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source, [
|
|
822
|
-
|
|
824
|
+
Ve
|
|
823
825
|
]),
|
|
824
826
|
lookbehind: !0,
|
|
825
827
|
greedy: !0,
|
|
826
|
-
inside: Ve
|
|
828
|
+
inside: je(Ve, Pe)
|
|
827
829
|
}
|
|
828
830
|
],
|
|
829
831
|
char: {
|
|
@@ -1004,9 +1006,9 @@ function J(e) {
|
|
|
1004
1006
|
}
|
|
1005
1007
|
}), e.languages.html = e.languages.markup, e.languages.mathml = e.languages.markup, e.languages.svg = e.languages.markup, e.languages.xml = e.languages.extend("markup", {}), e.languages.ssml = e.languages.xml, e.languages.atom = e.languages.xml, e.languages.rss = e.languages.xml;
|
|
1006
1008
|
}
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
function
|
|
1009
|
+
Y.displayName = "css";
|
|
1010
|
+
Y.aliases = [];
|
|
1011
|
+
function Y(e) {
|
|
1010
1012
|
(function(n) {
|
|
1011
1013
|
var t = /(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;
|
|
1012
1014
|
n.languages.css = {
|
|
@@ -1070,9 +1072,9 @@ function j(e) {
|
|
|
1070
1072
|
r && (r.tag.addInlined("style", "css"), r.tag.addAttribute("style", "css"));
|
|
1071
1073
|
})(e);
|
|
1072
1074
|
}
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
function
|
|
1075
|
+
me.displayName = "diff";
|
|
1076
|
+
me.aliases = [];
|
|
1077
|
+
function me(e) {
|
|
1076
1078
|
(function(n) {
|
|
1077
1079
|
n.languages.diff = {
|
|
1078
1080
|
coord: [
|
|
@@ -1119,9 +1121,9 @@ function he(e) {
|
|
|
1119
1121
|
});
|
|
1120
1122
|
})(e);
|
|
1121
1123
|
}
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
function
|
|
1124
|
+
ye.displayName = "go";
|
|
1125
|
+
ye.aliases = [];
|
|
1126
|
+
function ye(e) {
|
|
1125
1127
|
e.register($), e.languages.go = e.languages.extend("clike", {
|
|
1126
1128
|
string: {
|
|
1127
1129
|
pattern: /(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,
|
|
@@ -1147,9 +1149,9 @@ function me(e) {
|
|
|
1147
1149
|
}
|
|
1148
1150
|
}), delete e.languages.go["class-name"];
|
|
1149
1151
|
}
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
function
|
|
1152
|
+
Ee.displayName = "ini";
|
|
1153
|
+
Ee.aliases = [];
|
|
1154
|
+
function Ee(e) {
|
|
1153
1155
|
e.languages.ini = {
|
|
1154
1156
|
/**
|
|
1155
1157
|
* The component mimics the behavior of the Win32 API parser.
|
|
@@ -1191,9 +1193,9 @@ function ye(e) {
|
|
|
1191
1193
|
punctuation: /=/
|
|
1192
1194
|
};
|
|
1193
1195
|
}
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
function
|
|
1196
|
+
Se.displayName = "java";
|
|
1197
|
+
Se.aliases = [];
|
|
1198
|
+
function Se(e) {
|
|
1197
1199
|
e.register($), (function(n) {
|
|
1198
1200
|
var t = /\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record(?!\s*[(){}[\]<>=%~.:,;?+\-*/&|^])|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/, r = /(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source, a = {
|
|
1199
1201
|
pattern: RegExp(
|
|
@@ -1322,9 +1324,9 @@ function Ee(e) {
|
|
|
1322
1324
|
});
|
|
1323
1325
|
})(e);
|
|
1324
1326
|
}
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
function
|
|
1327
|
+
we.displayName = "regex";
|
|
1328
|
+
we.aliases = [];
|
|
1329
|
+
function we(e) {
|
|
1328
1330
|
(function(n) {
|
|
1329
1331
|
var t = {
|
|
1330
1332
|
pattern: /\\[\\(){}[\]^$+*?|.]/,
|
|
@@ -1552,9 +1554,9 @@ function ae(e) {
|
|
|
1552
1554
|
"javascript"
|
|
1553
1555
|
)), e.languages.js = e.languages.javascript;
|
|
1554
1556
|
}
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
function
|
|
1557
|
+
Ae.displayName = "json";
|
|
1558
|
+
Ae.aliases = ["webmanifest"];
|
|
1559
|
+
function Ae(e) {
|
|
1558
1560
|
e.languages.json = {
|
|
1559
1561
|
property: {
|
|
1560
1562
|
pattern: /(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,
|
|
@@ -1580,9 +1582,9 @@ function we(e) {
|
|
|
1580
1582
|
}
|
|
1581
1583
|
}, e.languages.webmanifest = e.languages.json;
|
|
1582
1584
|
}
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
function
|
|
1585
|
+
ke.displayName = "kotlin";
|
|
1586
|
+
ke.aliases = ["kt", "kts"];
|
|
1587
|
+
function ke(e) {
|
|
1586
1588
|
e.register($), (function(n) {
|
|
1587
1589
|
n.languages.kotlin = n.languages.extend("clike", {
|
|
1588
1590
|
keyword: {
|
|
@@ -1659,10 +1661,10 @@ function Ae(e) {
|
|
|
1659
1661
|
}), n.languages.kt = n.languages.kotlin, n.languages.kts = n.languages.kotlin;
|
|
1660
1662
|
})(e);
|
|
1661
1663
|
}
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
function
|
|
1665
|
-
e.register(
|
|
1664
|
+
Te.displayName = "less";
|
|
1665
|
+
Te.aliases = [];
|
|
1666
|
+
function Te(e) {
|
|
1667
|
+
e.register(Y), e.languages.less = e.languages.extend("css", {
|
|
1666
1668
|
comment: [
|
|
1667
1669
|
/\/\*[\s\S]*?\*\//,
|
|
1668
1670
|
{
|
|
@@ -1705,9 +1707,9 @@ function ke(e) {
|
|
|
1705
1707
|
}
|
|
1706
1708
|
});
|
|
1707
1709
|
}
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
function
|
|
1710
|
+
ve.displayName = "lua";
|
|
1711
|
+
ve.aliases = [];
|
|
1712
|
+
function ve(e) {
|
|
1711
1713
|
e.languages.lua = {
|
|
1712
1714
|
comment: /^#!.+|--(?:\[(=*)\[[\s\S]*?\]\1\]|.*)/m,
|
|
1713
1715
|
// \z may be used to skip the following space
|
|
@@ -1729,9 +1731,9 @@ function Te(e) {
|
|
|
1729
1731
|
punctuation: /[\[\](){},;]|\.+|:+/
|
|
1730
1732
|
};
|
|
1731
1733
|
}
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
function
|
|
1734
|
+
Re.displayName = "makefile";
|
|
1735
|
+
Re.aliases = [];
|
|
1736
|
+
function Re(e) {
|
|
1735
1737
|
e.languages.makefile = {
|
|
1736
1738
|
comment: {
|
|
1737
1739
|
pattern: /(^|[^\\])#(?:\\(?:\r\n|[\s\S])|[^\\\r\n])*/,
|
|
@@ -1763,9 +1765,9 @@ function ve(e) {
|
|
|
1763
1765
|
punctuation: /[:;(){}]/
|
|
1764
1766
|
};
|
|
1765
1767
|
}
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
function
|
|
1768
|
+
Ne.displayName = "yaml";
|
|
1769
|
+
Ne.aliases = ["yml"];
|
|
1770
|
+
function Ne(e) {
|
|
1769
1771
|
(function(n) {
|
|
1770
1772
|
var t = /[*&][^\s[\]{},]+/, r = /!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/, a = "(?:" + r.source + "(?:[ ]+" + t.source + ")?|" + t.source + "(?:[ ]+" + r.source + ")?)", o = /(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(
|
|
1771
1773
|
/<PLAIN>/g,
|
|
@@ -1848,9 +1850,9 @@ function Re(e) {
|
|
|
1848
1850
|
}, n.languages.yml = n.languages.yaml;
|
|
1849
1851
|
})(e);
|
|
1850
1852
|
}
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
function
|
|
1853
|
+
Ie.displayName = "markdown";
|
|
1854
|
+
Ie.aliases = ["md"];
|
|
1855
|
+
function Ie(e) {
|
|
1854
1856
|
e.register(J), (function(n) {
|
|
1855
1857
|
var t = /(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;
|
|
1856
1858
|
function r(i) {
|
|
@@ -2110,18 +2112,18 @@ function Ne(e) {
|
|
|
2110
2112
|
return;
|
|
2111
2113
|
function u(c) {
|
|
2112
2114
|
if (!(!c || typeof c == "string"))
|
|
2113
|
-
for (var g = 0,
|
|
2114
|
-
var
|
|
2115
|
-
if (
|
|
2116
|
-
u(
|
|
2115
|
+
for (var g = 0, S = c.length; g < S; g++) {
|
|
2116
|
+
var E = c[g];
|
|
2117
|
+
if (E.type !== "code") {
|
|
2118
|
+
u(E.content);
|
|
2117
2119
|
continue;
|
|
2118
2120
|
}
|
|
2119
|
-
var h =
|
|
2120
|
-
if (h &&
|
|
2121
|
+
var h = E.content[1], w = E.content[3];
|
|
2122
|
+
if (h && w && h.type === "code-language" && w.type === "code-block" && typeof h.content == "string") {
|
|
2121
2123
|
var m = h.content.replace(/\b#/g, "sharp").replace(/\b\+\+/g, "pp");
|
|
2122
2124
|
m = (/[a-z][\w-]*/i.exec(m) || [""])[0].toLowerCase();
|
|
2123
2125
|
var y = "language-" + m;
|
|
2124
|
-
|
|
2126
|
+
w.alias ? typeof w.alias == "string" ? w.alias = [w.alias, y] : w.alias.push(y) : w.alias = [y];
|
|
2125
2127
|
}
|
|
2126
2128
|
}
|
|
2127
2129
|
}
|
|
@@ -2129,9 +2131,9 @@ function Ne(e) {
|
|
|
2129
2131
|
}), n.hooks.add("wrap", function(i) {
|
|
2130
2132
|
if (i.type === "code-block") {
|
|
2131
2133
|
for (var u = "", c = 0, g = i.classes.length; c < g; c++) {
|
|
2132
|
-
var
|
|
2133
|
-
if (
|
|
2134
|
-
u =
|
|
2134
|
+
var S = i.classes[c], E = /language-(.+)/.exec(S);
|
|
2135
|
+
if (E) {
|
|
2136
|
+
u = E[1];
|
|
2135
2137
|
break;
|
|
2136
2138
|
}
|
|
2137
2139
|
}
|
|
@@ -2139,9 +2141,9 @@ function Ne(e) {
|
|
|
2139
2141
|
if (h)
|
|
2140
2142
|
i.content = n.highlight(i.content.value, h, u);
|
|
2141
2143
|
else if (u && u !== "none" && n.plugins.autoloader) {
|
|
2142
|
-
var
|
|
2143
|
-
i.attributes.id =
|
|
2144
|
-
var m = document.getElementById(
|
|
2144
|
+
var w = "md-" + (/* @__PURE__ */ new Date()).valueOf() + "-" + Math.floor(Math.random() * 1e16);
|
|
2145
|
+
i.attributes.id = w, n.plugins.autoloader.loadLanguages(u, function() {
|
|
2146
|
+
var m = document.getElementById(w);
|
|
2145
2147
|
m && (m.innerHTML = n.highlight(
|
|
2146
2148
|
m.textContent,
|
|
2147
2149
|
n.languages[u],
|
|
@@ -2153,9 +2155,9 @@ function Ne(e) {
|
|
|
2153
2155
|
}), RegExp(n.languages.markup.tag.pattern.source, "gi"), n.languages.md = n.languages.markdown;
|
|
2154
2156
|
})(e);
|
|
2155
2157
|
}
|
|
2156
|
-
|
|
2157
|
-
|
|
2158
|
-
function
|
|
2158
|
+
xe.displayName = "objectivec";
|
|
2159
|
+
xe.aliases = ["objc"];
|
|
2160
|
+
function xe(e) {
|
|
2159
2161
|
e.register(X), e.languages.objectivec = e.languages.extend("c", {
|
|
2160
2162
|
string: {
|
|
2161
2163
|
pattern: /@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,
|
|
@@ -2165,9 +2167,9 @@ function Ie(e) {
|
|
|
2165
2167
|
operator: /-[->]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|\|?|[~^%?*\/@]/
|
|
2166
2168
|
}), delete e.languages.objectivec["class-name"], e.languages.objc = e.languages.objectivec;
|
|
2167
2169
|
}
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
function
|
|
2170
|
+
Le.displayName = "perl";
|
|
2171
|
+
Le.aliases = [];
|
|
2172
|
+
function Le(e) {
|
|
2171
2173
|
(function(n) {
|
|
2172
2174
|
var t = /(?:\((?:[^()\\]|\\[\s\S])*\)|\{(?:[^{}\\]|\\[\s\S])*\}|\[(?:[^[\]\\]|\\[\s\S])*\]|<(?:[^<>\\]|\\[\s\S])*>)/.source;
|
|
2173
2175
|
n.languages.perl = {
|
|
@@ -2349,16 +2351,16 @@ function oe(e) {
|
|
|
2349
2351
|
for (var c = 0; c < u.length && !(o >= s.length); c++) {
|
|
2350
2352
|
var g = u[c];
|
|
2351
2353
|
if (typeof g == "string" || g.content && typeof g.content == "string") {
|
|
2352
|
-
var
|
|
2354
|
+
var S = s[o], E = r.tokenStack[S], h = typeof g == "string" ? g : g.content, w = t(a, S), m = h.indexOf(w);
|
|
2353
2355
|
if (m > -1) {
|
|
2354
2356
|
++o;
|
|
2355
|
-
var y = h.substring(0, m),
|
|
2357
|
+
var y = h.substring(0, m), A = new n.Token(
|
|
2356
2358
|
a,
|
|
2357
|
-
n.tokenize(
|
|
2359
|
+
n.tokenize(E, r.grammar),
|
|
2358
2360
|
"language-" + a,
|
|
2359
|
-
|
|
2360
|
-
), R = h.substring(m +
|
|
2361
|
-
y && T.push.apply(T, i([y])), T.push(
|
|
2361
|
+
E
|
|
2362
|
+
), R = h.substring(m + w.length), T = [];
|
|
2363
|
+
y && T.push.apply(T, i([y])), T.push(A), R && T.push.apply(T, i([R])), typeof g == "string" ? u.splice.apply(u, [c, 1].concat(T)) : g.content = T;
|
|
2362
2364
|
}
|
|
2363
2365
|
} else g.content && i(g.content);
|
|
2364
2366
|
}
|
|
@@ -2370,9 +2372,9 @@ function oe(e) {
|
|
|
2370
2372
|
});
|
|
2371
2373
|
})(e);
|
|
2372
2374
|
}
|
|
2373
|
-
|
|
2374
|
-
|
|
2375
|
-
function
|
|
2375
|
+
Oe.displayName = "php";
|
|
2376
|
+
Oe.aliases = [];
|
|
2377
|
+
function Oe(e) {
|
|
2376
2378
|
e.register(oe), (function(n) {
|
|
2377
2379
|
var t = /\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/, r = [
|
|
2378
2380
|
{
|
|
@@ -2694,9 +2696,9 @@ function Le(e) {
|
|
|
2694
2696
|
});
|
|
2695
2697
|
})(e);
|
|
2696
2698
|
}
|
|
2697
|
-
|
|
2698
|
-
|
|
2699
|
-
function
|
|
2699
|
+
Ce.displayName = "python";
|
|
2700
|
+
Ce.aliases = ["py"];
|
|
2701
|
+
function Ce(e) {
|
|
2700
2702
|
e.languages.python = {
|
|
2701
2703
|
comment: {
|
|
2702
2704
|
pattern: /(^|[^\\])#.*/,
|
|
@@ -2759,9 +2761,9 @@ function Oe(e) {
|
|
|
2759
2761
|
punctuation: /[{}[\];(),.:]/
|
|
2760
2762
|
}, e.languages.python["string-interpolation"].inside.interpolation.inside.rest = e.languages.python, e.languages.py = e.languages.python;
|
|
2761
2763
|
}
|
|
2762
|
-
|
|
2763
|
-
|
|
2764
|
-
function
|
|
2764
|
+
De.displayName = "r";
|
|
2765
|
+
De.aliases = [];
|
|
2766
|
+
function De(e) {
|
|
2765
2767
|
e.languages.r = {
|
|
2766
2768
|
comment: /#.*/,
|
|
2767
2769
|
string: {
|
|
@@ -2785,9 +2787,9 @@ function Ce(e) {
|
|
|
2785
2787
|
punctuation: /[(){}\[\],;]/
|
|
2786
2788
|
};
|
|
2787
2789
|
}
|
|
2788
|
-
|
|
2789
|
-
|
|
2790
|
-
function
|
|
2790
|
+
_e.displayName = "ruby";
|
|
2791
|
+
_e.aliases = ["rb"];
|
|
2792
|
+
function _e(e) {
|
|
2791
2793
|
e.register($), (function(n) {
|
|
2792
2794
|
n.languages.ruby = n.languages.extend("clike", {
|
|
2793
2795
|
comment: {
|
|
@@ -2960,9 +2962,9 @@ function De(e) {
|
|
|
2960
2962
|
}), n.languages.rb = n.languages.ruby;
|
|
2961
2963
|
})(e);
|
|
2962
2964
|
}
|
|
2963
|
-
|
|
2964
|
-
|
|
2965
|
-
function
|
|
2965
|
+
Fe.displayName = "rust";
|
|
2966
|
+
Fe.aliases = [];
|
|
2967
|
+
function Fe(e) {
|
|
2966
2968
|
(function(n) {
|
|
2967
2969
|
for (var t = /\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source, r = 0; r < 2; r++)
|
|
2968
2970
|
t = t.replace(/<self>/g, function() {
|
|
@@ -3080,10 +3082,10 @@ function _e(e) {
|
|
|
3080
3082
|
}, n.languages.rust["closure-params"].inside.rest = n.languages.rust, n.languages.rust.attribute.inside.string = n.languages.rust.string;
|
|
3081
3083
|
})(e);
|
|
3082
3084
|
}
|
|
3083
|
-
|
|
3084
|
-
|
|
3085
|
-
function
|
|
3086
|
-
e.register(
|
|
3085
|
+
Me.displayName = "sass";
|
|
3086
|
+
Me.aliases = [];
|
|
3087
|
+
function Me(e) {
|
|
3088
|
+
e.register(Y), (function(n) {
|
|
3087
3089
|
n.languages.sass = n.languages.extend("css", {
|
|
3088
3090
|
// Sass comments don't need to be closed, only indented
|
|
3089
3091
|
comment: {
|
|
@@ -3147,10 +3149,10 @@ function Fe(e) {
|
|
|
3147
3149
|
});
|
|
3148
3150
|
})(e);
|
|
3149
3151
|
}
|
|
3150
|
-
|
|
3151
|
-
|
|
3152
|
-
function
|
|
3153
|
-
e.register(
|
|
3152
|
+
Ue.displayName = "scss";
|
|
3153
|
+
Ue.aliases = [];
|
|
3154
|
+
function Ue(e) {
|
|
3155
|
+
e.register(Y), e.languages.scss = e.languages.extend("css", {
|
|
3154
3156
|
comment: {
|
|
3155
3157
|
pattern: /(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,
|
|
3156
3158
|
lookbehind: !0
|
|
@@ -3224,9 +3226,9 @@ function Me(e) {
|
|
|
3224
3226
|
}
|
|
3225
3227
|
}), e.languages.scss.atrule.inside.rest = e.languages.scss;
|
|
3226
3228
|
}
|
|
3227
|
-
|
|
3228
|
-
|
|
3229
|
-
function
|
|
3229
|
+
qe.displayName = "sql";
|
|
3230
|
+
qe.aliases = [];
|
|
3231
|
+
function qe(e) {
|
|
3230
3232
|
e.languages.sql = {
|
|
3231
3233
|
comment: {
|
|
3232
3234
|
pattern: /(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,
|
|
@@ -3261,9 +3263,9 @@ function Ue(e) {
|
|
|
3261
3263
|
punctuation: /[;[\]()`,.]/
|
|
3262
3264
|
};
|
|
3263
3265
|
}
|
|
3264
|
-
|
|
3265
|
-
|
|
3266
|
-
function
|
|
3266
|
+
Be.displayName = "swift";
|
|
3267
|
+
Be.aliases = [];
|
|
3268
|
+
function Be(e) {
|
|
3267
3269
|
e.languages.swift = {
|
|
3268
3270
|
comment: {
|
|
3269
3271
|
// Nested comments are supported up to 2 levels
|
|
@@ -3384,9 +3386,9 @@ function qe(e) {
|
|
|
3384
3386
|
n.inside.interpolation.inside = e.languages.swift;
|
|
3385
3387
|
});
|
|
3386
3388
|
}
|
|
3387
|
-
|
|
3388
|
-
|
|
3389
|
-
function
|
|
3389
|
+
$e.displayName = "typescript";
|
|
3390
|
+
$e.aliases = ["ts"];
|
|
3391
|
+
function $e(e) {
|
|
3390
3392
|
e.register(ae), (function(n) {
|
|
3391
3393
|
n.languages.typescript = n.languages.extend("javascript", {
|
|
3392
3394
|
"class-name": {
|
|
@@ -3454,9 +3456,9 @@ function le(e) {
|
|
|
3454
3456
|
punctuation: /[,;:()]/
|
|
3455
3457
|
};
|
|
3456
3458
|
}
|
|
3457
|
-
|
|
3458
|
-
|
|
3459
|
-
function
|
|
3459
|
+
Ge.displayName = "vbnet";
|
|
3460
|
+
Ge.aliases = [];
|
|
3461
|
+
function Ge(e) {
|
|
3460
3462
|
e.register(le), e.languages.vbnet = e.languages.extend("basic", {
|
|
3461
3463
|
comment: [
|
|
3462
3464
|
{
|
|
@@ -3532,25 +3534,25 @@ F.prototype.overloadedBoolean = !1;
|
|
|
3532
3534
|
F.prototype.property = "";
|
|
3533
3535
|
F.prototype.spaceSeparated = !1;
|
|
3534
3536
|
F.prototype.space = void 0;
|
|
3535
|
-
let
|
|
3536
|
-
const p = P(), N = P(),
|
|
3537
|
+
let vn = 0;
|
|
3538
|
+
const p = P(), N = P(), ue = P(), l = P(), k = P(), H = P(), U = P();
|
|
3537
3539
|
function P() {
|
|
3538
|
-
return 2 ** ++
|
|
3540
|
+
return 2 ** ++vn;
|
|
3539
3541
|
}
|
|
3540
|
-
const
|
|
3542
|
+
const ce = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3541
3543
|
__proto__: null,
|
|
3542
3544
|
boolean: p,
|
|
3543
3545
|
booleanish: N,
|
|
3544
3546
|
commaOrSpaceSeparated: U,
|
|
3545
3547
|
commaSeparated: H,
|
|
3546
3548
|
number: l,
|
|
3547
|
-
overloadedBoolean:
|
|
3548
|
-
spaceSeparated:
|
|
3549
|
+
overloadedBoolean: ue,
|
|
3550
|
+
spaceSeparated: k
|
|
3549
3551
|
}, Symbol.toStringTag, { value: "Module" })), ie = (
|
|
3550
3552
|
/** @type {ReadonlyArray<keyof typeof types>} */
|
|
3551
|
-
Object.keys(
|
|
3553
|
+
Object.keys(ce)
|
|
3552
3554
|
);
|
|
3553
|
-
class
|
|
3555
|
+
class ze extends F {
|
|
3554
3556
|
/**
|
|
3555
3557
|
* @constructor
|
|
3556
3558
|
* @param {string} property
|
|
@@ -3566,21 +3568,21 @@ class Ge extends F {
|
|
|
3566
3568
|
*/
|
|
3567
3569
|
constructor(n, t, r, a) {
|
|
3568
3570
|
let o = -1;
|
|
3569
|
-
if (super(n, t),
|
|
3571
|
+
if (super(n, t), Ye(this, "space", a), typeof r == "number")
|
|
3570
3572
|
for (; ++o < ie.length; ) {
|
|
3571
3573
|
const s = ie[o];
|
|
3572
|
-
|
|
3574
|
+
Ye(this, ie[o], (r & ce[s]) === ce[s]);
|
|
3573
3575
|
}
|
|
3574
3576
|
}
|
|
3575
3577
|
}
|
|
3576
|
-
|
|
3577
|
-
function
|
|
3578
|
+
ze.prototype.defined = !0;
|
|
3579
|
+
function Ye(e, n, t) {
|
|
3578
3580
|
t && (e[n] = t);
|
|
3579
3581
|
}
|
|
3580
|
-
function
|
|
3582
|
+
function W(e) {
|
|
3581
3583
|
const n = {}, t = {};
|
|
3582
3584
|
for (const [r, a] of Object.entries(e.properties)) {
|
|
3583
|
-
const o = new
|
|
3585
|
+
const o = new ze(
|
|
3584
3586
|
r,
|
|
3585
3587
|
e.transform(e.attributes || {}, r),
|
|
3586
3588
|
a,
|
|
@@ -3590,7 +3592,7 @@ function Y(e) {
|
|
|
3590
3592
|
}
|
|
3591
3593
|
return new Q(n, t, e.space);
|
|
3592
3594
|
}
|
|
3593
|
-
const ln =
|
|
3595
|
+
const ln = W({
|
|
3594
3596
|
properties: {
|
|
3595
3597
|
ariaActiveDescendant: null,
|
|
3596
3598
|
ariaAtomic: N,
|
|
@@ -3600,36 +3602,36 @@ const ln = Y({
|
|
|
3600
3602
|
ariaColCount: l,
|
|
3601
3603
|
ariaColIndex: l,
|
|
3602
3604
|
ariaColSpan: l,
|
|
3603
|
-
ariaControls:
|
|
3605
|
+
ariaControls: k,
|
|
3604
3606
|
ariaCurrent: null,
|
|
3605
|
-
ariaDescribedBy:
|
|
3607
|
+
ariaDescribedBy: k,
|
|
3606
3608
|
ariaDetails: null,
|
|
3607
3609
|
ariaDisabled: N,
|
|
3608
|
-
ariaDropEffect:
|
|
3610
|
+
ariaDropEffect: k,
|
|
3609
3611
|
ariaErrorMessage: null,
|
|
3610
3612
|
ariaExpanded: N,
|
|
3611
|
-
ariaFlowTo:
|
|
3613
|
+
ariaFlowTo: k,
|
|
3612
3614
|
ariaGrabbed: N,
|
|
3613
3615
|
ariaHasPopup: null,
|
|
3614
3616
|
ariaHidden: N,
|
|
3615
3617
|
ariaInvalid: null,
|
|
3616
3618
|
ariaKeyShortcuts: null,
|
|
3617
3619
|
ariaLabel: null,
|
|
3618
|
-
ariaLabelledBy:
|
|
3620
|
+
ariaLabelledBy: k,
|
|
3619
3621
|
ariaLevel: l,
|
|
3620
3622
|
ariaLive: null,
|
|
3621
3623
|
ariaModal: N,
|
|
3622
3624
|
ariaMultiLine: N,
|
|
3623
3625
|
ariaMultiSelectable: N,
|
|
3624
3626
|
ariaOrientation: null,
|
|
3625
|
-
ariaOwns:
|
|
3627
|
+
ariaOwns: k,
|
|
3626
3628
|
ariaPlaceholder: null,
|
|
3627
3629
|
ariaPosInSet: l,
|
|
3628
3630
|
ariaPressed: N,
|
|
3629
3631
|
ariaReadOnly: N,
|
|
3630
3632
|
ariaRelevant: null,
|
|
3631
3633
|
ariaRequired: N,
|
|
3632
|
-
ariaRoleDescription:
|
|
3634
|
+
ariaRoleDescription: k,
|
|
3633
3635
|
ariaRowCount: l,
|
|
3634
3636
|
ariaRowIndex: l,
|
|
3635
3637
|
ariaRowSpan: l,
|
|
@@ -3652,7 +3654,7 @@ function sn(e, n) {
|
|
|
3652
3654
|
function un(e, n) {
|
|
3653
3655
|
return sn(e, n.toLowerCase());
|
|
3654
3656
|
}
|
|
3655
|
-
const
|
|
3657
|
+
const Rn = W({
|
|
3656
3658
|
attributes: {
|
|
3657
3659
|
acceptcharset: "accept-charset",
|
|
3658
3660
|
classname: "class",
|
|
@@ -3664,8 +3666,8 @@ const kn = Y({
|
|
|
3664
3666
|
// Standard Properties.
|
|
3665
3667
|
abbr: null,
|
|
3666
3668
|
accept: H,
|
|
3667
|
-
acceptCharset:
|
|
3668
|
-
accessKey:
|
|
3669
|
+
acceptCharset: k,
|
|
3670
|
+
accessKey: k,
|
|
3669
3671
|
action: null,
|
|
3670
3672
|
allow: null,
|
|
3671
3673
|
allowFullScreen: p,
|
|
@@ -3676,15 +3678,15 @@ const kn = Y({
|
|
|
3676
3678
|
as: null,
|
|
3677
3679
|
async: p,
|
|
3678
3680
|
autoCapitalize: null,
|
|
3679
|
-
autoComplete:
|
|
3681
|
+
autoComplete: k,
|
|
3680
3682
|
autoFocus: p,
|
|
3681
3683
|
autoPlay: p,
|
|
3682
|
-
blocking:
|
|
3684
|
+
blocking: k,
|
|
3683
3685
|
capture: null,
|
|
3684
3686
|
charSet: null,
|
|
3685
3687
|
checked: p,
|
|
3686
3688
|
cite: null,
|
|
3687
|
-
className:
|
|
3689
|
+
className: k,
|
|
3688
3690
|
closedBy: null,
|
|
3689
3691
|
colorSpace: null,
|
|
3690
3692
|
cols: l,
|
|
@@ -3694,7 +3696,7 @@ const kn = Y({
|
|
|
3694
3696
|
content: null,
|
|
3695
3697
|
contentEditable: N,
|
|
3696
3698
|
controls: p,
|
|
3697
|
-
controlsList:
|
|
3699
|
+
controlsList: k,
|
|
3698
3700
|
coords: l | H,
|
|
3699
3701
|
crossOrigin: null,
|
|
3700
3702
|
data: null,
|
|
@@ -3705,7 +3707,7 @@ const kn = Y({
|
|
|
3705
3707
|
dir: null,
|
|
3706
3708
|
dirName: null,
|
|
3707
3709
|
disabled: p,
|
|
3708
|
-
download:
|
|
3710
|
+
download: ue,
|
|
3709
3711
|
draggable: N,
|
|
3710
3712
|
encType: null,
|
|
3711
3713
|
enterKeyHint: null,
|
|
@@ -3716,14 +3718,14 @@ const kn = Y({
|
|
|
3716
3718
|
formMethod: null,
|
|
3717
3719
|
formNoValidate: p,
|
|
3718
3720
|
formTarget: null,
|
|
3719
|
-
headers:
|
|
3721
|
+
headers: k,
|
|
3720
3722
|
height: l,
|
|
3721
|
-
hidden:
|
|
3723
|
+
hidden: ue,
|
|
3722
3724
|
high: l,
|
|
3723
3725
|
href: null,
|
|
3724
3726
|
hrefLang: null,
|
|
3725
|
-
htmlFor:
|
|
3726
|
-
httpEquiv:
|
|
3727
|
+
htmlFor: k,
|
|
3728
|
+
httpEquiv: k,
|
|
3727
3729
|
id: null,
|
|
3728
3730
|
imageSizes: null,
|
|
3729
3731
|
imageSrcSet: null,
|
|
@@ -3733,10 +3735,10 @@ const kn = Y({
|
|
|
3733
3735
|
is: null,
|
|
3734
3736
|
isMap: p,
|
|
3735
3737
|
itemId: null,
|
|
3736
|
-
itemProp:
|
|
3737
|
-
itemRef:
|
|
3738
|
+
itemProp: k,
|
|
3739
|
+
itemRef: k,
|
|
3738
3740
|
itemScope: p,
|
|
3739
|
-
itemType:
|
|
3741
|
+
itemType: k,
|
|
3740
3742
|
kind: null,
|
|
3741
3743
|
label: null,
|
|
3742
3744
|
lang: null,
|
|
@@ -3849,7 +3851,7 @@ const kn = Y({
|
|
|
3849
3851
|
open: p,
|
|
3850
3852
|
optimum: l,
|
|
3851
3853
|
pattern: null,
|
|
3852
|
-
ping:
|
|
3854
|
+
ping: k,
|
|
3853
3855
|
placeholder: null,
|
|
3854
3856
|
playsInline: p,
|
|
3855
3857
|
popover: null,
|
|
@@ -3859,12 +3861,12 @@ const kn = Y({
|
|
|
3859
3861
|
preload: null,
|
|
3860
3862
|
readOnly: p,
|
|
3861
3863
|
referrerPolicy: null,
|
|
3862
|
-
rel:
|
|
3864
|
+
rel: k,
|
|
3863
3865
|
required: p,
|
|
3864
3866
|
reversed: p,
|
|
3865
3867
|
rows: l,
|
|
3866
3868
|
rowSpan: l,
|
|
3867
|
-
sandbox:
|
|
3869
|
+
sandbox: k,
|
|
3868
3870
|
scope: null,
|
|
3869
3871
|
scoped: p,
|
|
3870
3872
|
seamless: p,
|
|
@@ -3904,7 +3906,7 @@ const kn = Y({
|
|
|
3904
3906
|
// Several. Use CSS `text-align` instead,
|
|
3905
3907
|
aLink: null,
|
|
3906
3908
|
// `<body>`. Use CSS `a:active {color}` instead
|
|
3907
|
-
archive:
|
|
3909
|
+
archive: k,
|
|
3908
3910
|
// `<object>`. List of URIs to archives
|
|
3909
3911
|
axis: null,
|
|
3910
3912
|
// `<td>` and `<th>`. Use `scope` on `<th>`
|
|
@@ -4014,7 +4016,7 @@ const kn = Y({
|
|
|
4014
4016
|
disablePictureInPicture: p,
|
|
4015
4017
|
disableRemotePlayback: p,
|
|
4016
4018
|
exportParts: H,
|
|
4017
|
-
part:
|
|
4019
|
+
part: k,
|
|
4018
4020
|
prefix: null,
|
|
4019
4021
|
property: null,
|
|
4020
4022
|
results: l,
|
|
@@ -4023,7 +4025,7 @@ const kn = Y({
|
|
|
4023
4025
|
},
|
|
4024
4026
|
space: "html",
|
|
4025
4027
|
transform: un
|
|
4026
|
-
}),
|
|
4028
|
+
}), Nn = W({
|
|
4027
4029
|
attributes: {
|
|
4028
4030
|
accentHeight: "accent-height",
|
|
4029
4031
|
alignmentBaseline: "alignment-baseline",
|
|
@@ -4223,7 +4225,7 @@ const kn = Y({
|
|
|
4223
4225
|
by: null,
|
|
4224
4226
|
calcMode: null,
|
|
4225
4227
|
capHeight: l,
|
|
4226
|
-
className:
|
|
4228
|
+
className: k,
|
|
4227
4229
|
clip: null,
|
|
4228
4230
|
clipPath: null,
|
|
4229
4231
|
clipPathUnits: null,
|
|
@@ -4459,7 +4461,7 @@ const kn = Y({
|
|
|
4459
4461
|
patternTransform: null,
|
|
4460
4462
|
patternUnits: null,
|
|
4461
4463
|
phase: null,
|
|
4462
|
-
ping:
|
|
4464
|
+
ping: k,
|
|
4463
4465
|
pitch: null,
|
|
4464
4466
|
playbackOrder: null,
|
|
4465
4467
|
pointerEvents: null,
|
|
@@ -4584,7 +4586,7 @@ const kn = Y({
|
|
|
4584
4586
|
},
|
|
4585
4587
|
space: "svg",
|
|
4586
4588
|
transform: sn
|
|
4587
|
-
}), cn =
|
|
4589
|
+
}), cn = W({
|
|
4588
4590
|
properties: {
|
|
4589
4591
|
xLinkActuate: null,
|
|
4590
4592
|
xLinkArcRole: null,
|
|
@@ -4598,46 +4600,46 @@ const kn = Y({
|
|
|
4598
4600
|
transform(e, n) {
|
|
4599
4601
|
return "xlink:" + n.slice(5).toLowerCase();
|
|
4600
4602
|
}
|
|
4601
|
-
}), dn =
|
|
4603
|
+
}), dn = W({
|
|
4602
4604
|
attributes: { xmlnsxlink: "xmlns:xlink" },
|
|
4603
4605
|
properties: { xmlnsXLink: null, xmlns: null },
|
|
4604
4606
|
space: "xmlns",
|
|
4605
4607
|
transform: un
|
|
4606
|
-
}), pn =
|
|
4608
|
+
}), pn = W({
|
|
4607
4609
|
properties: { xmlBase: null, xmlLang: null, xmlSpace: null },
|
|
4608
4610
|
space: "xml",
|
|
4609
4611
|
transform(e, n) {
|
|
4610
4612
|
return "xml:" + n.slice(3).toLowerCase();
|
|
4611
4613
|
}
|
|
4612
|
-
}),
|
|
4613
|
-
function
|
|
4614
|
+
}), In = /[A-Z]/g, We = /-[a-z]/g, xn = /^data[-\w.:]+$/i;
|
|
4615
|
+
function Ln(e, n) {
|
|
4614
4616
|
const t = K(n);
|
|
4615
4617
|
let r = n, a = F;
|
|
4616
4618
|
if (t in e.normal)
|
|
4617
4619
|
return e.property[e.normal[t]];
|
|
4618
|
-
if (t.length > 4 && t.slice(0, 4) === "data" &&
|
|
4620
|
+
if (t.length > 4 && t.slice(0, 4) === "data" && xn.test(n)) {
|
|
4619
4621
|
if (n.charAt(4) === "-") {
|
|
4620
|
-
const o = n.slice(5).replace(
|
|
4622
|
+
const o = n.slice(5).replace(We, Cn);
|
|
4621
4623
|
r = "data" + o.charAt(0).toUpperCase() + o.slice(1);
|
|
4622
4624
|
} else {
|
|
4623
4625
|
const o = n.slice(4);
|
|
4624
|
-
if (!
|
|
4625
|
-
let s = o.replace(
|
|
4626
|
+
if (!We.test(o)) {
|
|
4627
|
+
let s = o.replace(In, On);
|
|
4626
4628
|
s.charAt(0) !== "-" && (s = "-" + s), n = "data" + s;
|
|
4627
4629
|
}
|
|
4628
4630
|
}
|
|
4629
|
-
a =
|
|
4631
|
+
a = ze;
|
|
4630
4632
|
}
|
|
4631
4633
|
return new a(r, n);
|
|
4632
4634
|
}
|
|
4633
|
-
function
|
|
4635
|
+
function On(e) {
|
|
4634
4636
|
return "-" + e.toLowerCase();
|
|
4635
4637
|
}
|
|
4636
|
-
function
|
|
4638
|
+
function Cn(e) {
|
|
4637
4639
|
return e.charAt(1).toUpperCase();
|
|
4638
4640
|
}
|
|
4639
|
-
const
|
|
4640
|
-
function
|
|
4641
|
+
const Dn = on([ln, Rn, cn, dn, pn], "html"), _n = on([ln, Nn, cn, dn, pn], "svg");
|
|
4642
|
+
function Ze(e) {
|
|
4641
4643
|
const n = [], t = String(e || "");
|
|
4642
4644
|
let r = t.indexOf(","), a = 0, o = !1;
|
|
4643
4645
|
for (; !o; ) {
|
|
@@ -4647,13 +4649,13 @@ function We(e) {
|
|
|
4647
4649
|
}
|
|
4648
4650
|
return n;
|
|
4649
4651
|
}
|
|
4650
|
-
const
|
|
4651
|
-
function
|
|
4652
|
+
const Ke = /[#.]/g;
|
|
4653
|
+
function Fn(e, n) {
|
|
4652
4654
|
const t = e || "", r = {};
|
|
4653
4655
|
let a = 0, o, s;
|
|
4654
4656
|
for (; a < t.length; ) {
|
|
4655
|
-
|
|
4656
|
-
const i =
|
|
4657
|
+
Ke.lastIndex = a;
|
|
4658
|
+
const i = Ke.exec(t), u = t.slice(a, i ? i.index : t.length);
|
|
4657
4659
|
u && (o ? o === "#" ? r.id = u : Array.isArray(r.className) ? r.className.push(u) : r.className = [u] : s = u, a += u.length), i && (o = i[0], a++);
|
|
4658
4660
|
}
|
|
4659
4661
|
return {
|
|
@@ -4664,12 +4666,12 @@ function Cn(e, n) {
|
|
|
4664
4666
|
children: []
|
|
4665
4667
|
};
|
|
4666
4668
|
}
|
|
4667
|
-
function
|
|
4669
|
+
function Xe(e) {
|
|
4668
4670
|
const n = String(e || "").trim();
|
|
4669
4671
|
return n ? n.split(/[ \t\n\r\f]+/g) : [];
|
|
4670
4672
|
}
|
|
4671
4673
|
function gn(e, n, t) {
|
|
4672
|
-
const r = t ?
|
|
4674
|
+
const r = t ? Bn(t) : void 0;
|
|
4673
4675
|
function a(o, s, ...i) {
|
|
4674
4676
|
let u;
|
|
4675
4677
|
if (o == null) {
|
|
@@ -4680,21 +4682,21 @@ function gn(e, n, t) {
|
|
|
4680
4682
|
);
|
|
4681
4683
|
i.unshift(c);
|
|
4682
4684
|
} else {
|
|
4683
|
-
u =
|
|
4685
|
+
u = Fn(o, n);
|
|
4684
4686
|
const c = u.tagName.toLowerCase(), g = r ? r.get(c) : void 0;
|
|
4685
|
-
if (u.tagName = g || c,
|
|
4687
|
+
if (u.tagName = g || c, Mn(s))
|
|
4686
4688
|
i.unshift(s);
|
|
4687
4689
|
else
|
|
4688
|
-
for (const [
|
|
4689
|
-
|
|
4690
|
+
for (const [S, E] of Object.entries(s))
|
|
4691
|
+
Un(e, u.properties, S, E);
|
|
4690
4692
|
}
|
|
4691
4693
|
for (const c of i)
|
|
4692
|
-
|
|
4694
|
+
de(u.children, c);
|
|
4693
4695
|
return u.type === "element" && u.tagName === "template" && (u.content = { type: "root", children: u.children }, u.children = []), u;
|
|
4694
4696
|
}
|
|
4695
4697
|
return a;
|
|
4696
4698
|
}
|
|
4697
|
-
function
|
|
4699
|
+
function Mn(e) {
|
|
4698
4700
|
if (e === null || typeof e != "object" || Array.isArray(e))
|
|
4699
4701
|
return !0;
|
|
4700
4702
|
if (typeof e.type != "string") return !1;
|
|
@@ -4717,20 +4719,20 @@ function Dn(e) {
|
|
|
4717
4719
|
}
|
|
4718
4720
|
return !!("children" in e && Array.isArray(e.children));
|
|
4719
4721
|
}
|
|
4720
|
-
function
|
|
4721
|
-
const a =
|
|
4722
|
+
function Un(e, n, t, r) {
|
|
4723
|
+
const a = Ln(e, t);
|
|
4722
4724
|
let o;
|
|
4723
4725
|
if (r != null) {
|
|
4724
4726
|
if (typeof r == "number") {
|
|
4725
4727
|
if (Number.isNaN(r)) return;
|
|
4726
4728
|
o = r;
|
|
4727
|
-
} else typeof r == "boolean" ? o = r : typeof r == "string" ? a.spaceSeparated ? o =
|
|
4729
|
+
} else typeof r == "boolean" ? o = r : typeof r == "string" ? a.spaceSeparated ? o = Xe(r) : a.commaSeparated ? o = Ze(r) : a.commaOrSpaceSeparated ? o = Xe(Ze(r).join(" ")) : o = Je(a, a.property, r) : Array.isArray(r) ? o = [...r] : o = a.property === "style" ? qn(r) : String(r);
|
|
4728
4730
|
if (Array.isArray(o)) {
|
|
4729
4731
|
const s = [];
|
|
4730
4732
|
for (const i of o)
|
|
4731
4733
|
s.push(
|
|
4732
4734
|
/** @type {number | string} */
|
|
4733
|
-
|
|
4735
|
+
Je(a, a.property, i)
|
|
4734
4736
|
);
|
|
4735
4737
|
o = s;
|
|
4736
4738
|
}
|
|
@@ -4740,18 +4742,18 @@ function _n(e, n, t, r) {
|
|
|
4740
4742
|
)), n[a.property] = o;
|
|
4741
4743
|
}
|
|
4742
4744
|
}
|
|
4743
|
-
function
|
|
4745
|
+
function de(e, n) {
|
|
4744
4746
|
if (n != null) if (typeof n == "number" || typeof n == "string")
|
|
4745
4747
|
e.push({ type: "text", value: String(n) });
|
|
4746
4748
|
else if (Array.isArray(n))
|
|
4747
4749
|
for (const t of n)
|
|
4748
|
-
|
|
4750
|
+
de(e, t);
|
|
4749
4751
|
else if (typeof n == "object" && "type" in n)
|
|
4750
|
-
n.type === "root" ?
|
|
4752
|
+
n.type === "root" ? de(e, n.children) : e.push(n);
|
|
4751
4753
|
else
|
|
4752
4754
|
throw new Error("Expected node, nodes, or string, got `" + n + "`");
|
|
4753
4755
|
}
|
|
4754
|
-
function
|
|
4756
|
+
function Je(e, n, t) {
|
|
4755
4757
|
if (typeof t == "string") {
|
|
4756
4758
|
if (e.number && t && !Number.isNaN(Number(t)))
|
|
4757
4759
|
return Number(t);
|
|
@@ -4760,19 +4762,19 @@ function Xe(e, n, t) {
|
|
|
4760
4762
|
}
|
|
4761
4763
|
return t;
|
|
4762
4764
|
}
|
|
4763
|
-
function
|
|
4765
|
+
function qn(e) {
|
|
4764
4766
|
const n = [];
|
|
4765
4767
|
for (const [t, r] of Object.entries(e))
|
|
4766
4768
|
n.push([t, r].join(": "));
|
|
4767
4769
|
return n.join("; ");
|
|
4768
4770
|
}
|
|
4769
|
-
function
|
|
4771
|
+
function Bn(e) {
|
|
4770
4772
|
const n = /* @__PURE__ */ new Map();
|
|
4771
4773
|
for (const t of e)
|
|
4772
4774
|
n.set(t.toLowerCase(), t);
|
|
4773
4775
|
return n;
|
|
4774
4776
|
}
|
|
4775
|
-
const
|
|
4777
|
+
const $n = [
|
|
4776
4778
|
"altGlyph",
|
|
4777
4779
|
"altGlyphDef",
|
|
4778
4780
|
"altGlyphItem",
|
|
@@ -4812,9 +4814,9 @@ const Un = [
|
|
|
4812
4814
|
"solidColor",
|
|
4813
4815
|
"textArea",
|
|
4814
4816
|
"textPath"
|
|
4815
|
-
],
|
|
4816
|
-
gn(
|
|
4817
|
-
const
|
|
4817
|
+
], Gn = gn(Dn, "div");
|
|
4818
|
+
gn(_n, "g", $n);
|
|
4819
|
+
const zn = [
|
|
4818
4820
|
"AElig",
|
|
4819
4821
|
"AMP",
|
|
4820
4822
|
"Aacute",
|
|
@@ -4921,7 +4923,7 @@ const Bn = [
|
|
|
4921
4923
|
"yacute",
|
|
4922
4924
|
"yen",
|
|
4923
4925
|
"yuml"
|
|
4924
|
-
],
|
|
4926
|
+
], Qe = {
|
|
4925
4927
|
0: "�",
|
|
4926
4928
|
128: "€",
|
|
4927
4929
|
130: "‚",
|
|
@@ -4955,18 +4957,18 @@ function fn(e) {
|
|
|
4955
4957
|
const n = typeof e == "string" ? e.charCodeAt(0) : e;
|
|
4956
4958
|
return n >= 48 && n <= 57;
|
|
4957
4959
|
}
|
|
4958
|
-
function
|
|
4960
|
+
function Hn(e) {
|
|
4959
4961
|
const n = typeof e == "string" ? e.charCodeAt(0) : e;
|
|
4960
4962
|
return n >= 97 && n <= 102 || n >= 65 && n <= 70 || n >= 48 && n <= 57;
|
|
4961
4963
|
}
|
|
4962
|
-
function
|
|
4964
|
+
function Pn(e) {
|
|
4963
4965
|
const n = typeof e == "string" ? e.charCodeAt(0) : e;
|
|
4964
4966
|
return n >= 97 && n <= 122 || n >= 65 && n <= 90;
|
|
4965
4967
|
}
|
|
4966
|
-
function
|
|
4967
|
-
return
|
|
4968
|
+
function en(e) {
|
|
4969
|
+
return Pn(e) || fn(e);
|
|
4968
4970
|
}
|
|
4969
|
-
const
|
|
4971
|
+
const nn = {
|
|
4970
4972
|
AElig: "Æ",
|
|
4971
4973
|
AMP: "&",
|
|
4972
4974
|
Aacute: "Á",
|
|
@@ -7093,11 +7095,11 @@ const en = {
|
|
|
7093
7095
|
zscr: "𝓏",
|
|
7094
7096
|
zwj: "",
|
|
7095
7097
|
zwnj: ""
|
|
7096
|
-
},
|
|
7097
|
-
function
|
|
7098
|
-
return
|
|
7098
|
+
}, Vn = {}.hasOwnProperty;
|
|
7099
|
+
function tn(e) {
|
|
7100
|
+
return Vn.call(nn, e) ? nn[e] : !1;
|
|
7099
7101
|
}
|
|
7100
|
-
const
|
|
7102
|
+
const jn = [
|
|
7101
7103
|
"",
|
|
7102
7104
|
/* 1: Non terminated (named) */
|
|
7103
7105
|
"Named character references must be terminated by a semicolon",
|
|
@@ -7114,116 +7116,116 @@ const Hn = [
|
|
|
7114
7116
|
/* 7: Prohibited (numeric) */
|
|
7115
7117
|
"Numeric character references cannot be outside the permissible Unicode range"
|
|
7116
7118
|
];
|
|
7117
|
-
function
|
|
7119
|
+
function Yn(e, n) {
|
|
7118
7120
|
const t = {}, r = typeof t.additional == "string" ? t.additional.charCodeAt(0) : t.additional, a = [];
|
|
7119
7121
|
let o = 0, s = -1, i = "", u, c;
|
|
7120
7122
|
t.position && ("start" in t.position || "indent" in t.position ? (c = t.position.indent, u = t.position.start) : u = t.position);
|
|
7121
|
-
let g = (u ? u.line : 0) || 1,
|
|
7123
|
+
let g = (u ? u.line : 0) || 1, S = (u ? u.column : 0) || 1, E = w(), h;
|
|
7122
7124
|
for (o--; ++o <= e.length; )
|
|
7123
|
-
if (h === 10 && (
|
|
7124
|
-
const
|
|
7125
|
-
if (
|
|
7126
|
-
i += String.fromCharCode(h),
|
|
7125
|
+
if (h === 10 && (S = (c ? c[s] : 0) || 1), h = e.charCodeAt(o), h === 38) {
|
|
7126
|
+
const A = e.charCodeAt(o + 1);
|
|
7127
|
+
if (A === 9 || A === 10 || A === 12 || A === 32 || A === 38 || A === 60 || Number.isNaN(A) || r && A === r) {
|
|
7128
|
+
i += String.fromCharCode(h), S++;
|
|
7127
7129
|
continue;
|
|
7128
7130
|
}
|
|
7129
7131
|
const R = o + 1;
|
|
7130
7132
|
let T = R, f = R, v;
|
|
7131
|
-
if (
|
|
7133
|
+
if (A === 35) {
|
|
7132
7134
|
f = ++T;
|
|
7133
7135
|
const b = e.charCodeAt(f);
|
|
7134
7136
|
b === 88 || b === 120 ? (v = "hexadecimal", f = ++T) : v = "decimal";
|
|
7135
7137
|
} else
|
|
7136
7138
|
v = "named";
|
|
7137
|
-
let L = "",
|
|
7138
|
-
const G = v === "named" ?
|
|
7139
|
+
let L = "", C = "", I = "";
|
|
7140
|
+
const G = v === "named" ? en : v === "decimal" ? fn : Hn;
|
|
7139
7141
|
for (f--; ++f <= e.length; ) {
|
|
7140
7142
|
const b = e.charCodeAt(f);
|
|
7141
7143
|
if (!G(b))
|
|
7142
7144
|
break;
|
|
7143
|
-
I += String.fromCharCode(b), v === "named" &&
|
|
7145
|
+
I += String.fromCharCode(b), v === "named" && zn.includes(I) && (L = I, C = tn(I));
|
|
7144
7146
|
}
|
|
7145
7147
|
let M = e.charCodeAt(f) === 59;
|
|
7146
7148
|
if (M) {
|
|
7147
7149
|
f++;
|
|
7148
|
-
const b = v === "named" ?
|
|
7149
|
-
b && (L = I,
|
|
7150
|
+
const b = v === "named" ? tn(I) : !1;
|
|
7151
|
+
b && (L = I, C = b);
|
|
7150
7152
|
}
|
|
7151
|
-
let
|
|
7153
|
+
let D = 1 + f - R, _ = "";
|
|
7152
7154
|
if (!(!M && t.nonTerminated === !1)) if (!I)
|
|
7153
|
-
v !== "named" && m(4,
|
|
7155
|
+
v !== "named" && m(4, D);
|
|
7154
7156
|
else if (v === "named") {
|
|
7155
|
-
if (M && !
|
|
7157
|
+
if (M && !C)
|
|
7156
7158
|
m(5, 1);
|
|
7157
|
-
else if (L !== I && (f = T + L.length,
|
|
7159
|
+
else if (L !== I && (f = T + L.length, D = 1 + f - T, M = !1), !M) {
|
|
7158
7160
|
const b = L ? 1 : 3;
|
|
7159
7161
|
if (t.attribute) {
|
|
7160
7162
|
const B = e.charCodeAt(f);
|
|
7161
|
-
B === 61 ? (m(b,
|
|
7163
|
+
B === 61 ? (m(b, D), C = "") : en(B) ? C = "" : m(b, D);
|
|
7162
7164
|
} else
|
|
7163
|
-
m(b,
|
|
7165
|
+
m(b, D);
|
|
7164
7166
|
}
|
|
7165
|
-
|
|
7167
|
+
_ = C;
|
|
7166
7168
|
} else {
|
|
7167
|
-
M || m(2,
|
|
7169
|
+
M || m(2, D);
|
|
7168
7170
|
let b = Number.parseInt(
|
|
7169
7171
|
I,
|
|
7170
7172
|
v === "hexadecimal" ? 16 : 10
|
|
7171
7173
|
);
|
|
7172
|
-
if (
|
|
7173
|
-
m(7,
|
|
7174
|
-
else if (b in
|
|
7175
|
-
m(6,
|
|
7174
|
+
if (Wn(b))
|
|
7175
|
+
m(7, D), _ = "�";
|
|
7176
|
+
else if (b in Qe)
|
|
7177
|
+
m(6, D), _ = Qe[b];
|
|
7176
7178
|
else {
|
|
7177
7179
|
let B = "";
|
|
7178
|
-
|
|
7180
|
+
Zn(b) && m(6, D), b > 65535 && (b -= 65536, B += String.fromCharCode(
|
|
7179
7181
|
b >>> 10 | 55296
|
|
7180
|
-
), b = 56320 | b & 1023),
|
|
7182
|
+
), b = 56320 | b & 1023), _ = B + String.fromCharCode(b);
|
|
7181
7183
|
}
|
|
7182
7184
|
}
|
|
7183
|
-
if (
|
|
7184
|
-
y(),
|
|
7185
|
-
const b =
|
|
7185
|
+
if (_) {
|
|
7186
|
+
y(), E = w(), o = f - 1, S += f - R + 1, a.push(_);
|
|
7187
|
+
const b = w();
|
|
7186
7188
|
b.offset++, t.reference && t.reference.call(
|
|
7187
7189
|
t.referenceContext || void 0,
|
|
7188
|
-
|
|
7189
|
-
{ start:
|
|
7190
|
+
_,
|
|
7191
|
+
{ start: E, end: b },
|
|
7190
7192
|
e.slice(R - 1, f)
|
|
7191
|
-
),
|
|
7193
|
+
), E = b;
|
|
7192
7194
|
} else
|
|
7193
|
-
I = e.slice(R - 1, f), i += I,
|
|
7195
|
+
I = e.slice(R - 1, f), i += I, S += I.length, o = f - 1;
|
|
7194
7196
|
} else
|
|
7195
|
-
h === 10 && (g++, s++,
|
|
7197
|
+
h === 10 && (g++, s++, S = 0), Number.isNaN(h) ? y() : (i += String.fromCharCode(h), S++);
|
|
7196
7198
|
return a.join("");
|
|
7197
|
-
function
|
|
7199
|
+
function w() {
|
|
7198
7200
|
return {
|
|
7199
7201
|
line: g,
|
|
7200
|
-
column:
|
|
7202
|
+
column: S,
|
|
7201
7203
|
offset: o + ((u ? u.offset : 0) || 0)
|
|
7202
7204
|
};
|
|
7203
7205
|
}
|
|
7204
|
-
function m(
|
|
7206
|
+
function m(A, R) {
|
|
7205
7207
|
let T;
|
|
7206
|
-
t.warning && (T =
|
|
7208
|
+
t.warning && (T = w(), T.column += R, T.offset += R, t.warning.call(
|
|
7207
7209
|
t.warningContext || void 0,
|
|
7208
|
-
|
|
7210
|
+
jn[A],
|
|
7209
7211
|
T,
|
|
7210
|
-
|
|
7212
|
+
A
|
|
7211
7213
|
));
|
|
7212
7214
|
}
|
|
7213
7215
|
function y() {
|
|
7214
7216
|
i && (a.push(i), t.text && t.text.call(t.textContext || void 0, i, {
|
|
7215
|
-
start:
|
|
7216
|
-
end:
|
|
7217
|
+
start: E,
|
|
7218
|
+
end: w()
|
|
7217
7219
|
}), i = "");
|
|
7218
7220
|
}
|
|
7219
7221
|
}
|
|
7220
|
-
function
|
|
7222
|
+
function Wn(e) {
|
|
7221
7223
|
return e >= 55296 && e <= 57343 || e > 1114111;
|
|
7222
7224
|
}
|
|
7223
|
-
function
|
|
7225
|
+
function Zn(e) {
|
|
7224
7226
|
return e >= 1 && e <= 8 || e === 11 || e >= 13 && e <= 31 || e >= 127 && e <= 159 || e >= 64976 && e <= 65007 || (e & 65535) === 65535 || (e & 65535) === 65534;
|
|
7225
7227
|
}
|
|
7226
|
-
var
|
|
7228
|
+
var Kn = 0, ne = {}, x = {
|
|
7227
7229
|
/**
|
|
7228
7230
|
* A namespace for utility methods.
|
|
7229
7231
|
*
|
|
@@ -7260,7 +7262,7 @@ var Yn = 0, ne = {}, x = {
|
|
|
7260
7262
|
* @returns {number}
|
|
7261
7263
|
*/
|
|
7262
7264
|
objId: function(e) {
|
|
7263
|
-
return e.__id || Object.defineProperty(e, "__id", { value: ++
|
|
7265
|
+
return e.__id || Object.defineProperty(e, "__id", { value: ++Kn }), e.__id;
|
|
7264
7266
|
},
|
|
7265
7267
|
/**
|
|
7266
7268
|
* Creates a deep clone of the given object.
|
|
@@ -7514,8 +7516,8 @@ var Yn = 0, ne = {}, x = {
|
|
|
7514
7516
|
n[r] = t[r];
|
|
7515
7517
|
delete n.rest;
|
|
7516
7518
|
}
|
|
7517
|
-
var a = new
|
|
7518
|
-
return te(a, a.head, e), bn(e, a, n, a.head, 0),
|
|
7519
|
+
var a = new Xn();
|
|
7520
|
+
return te(a, a.head, e), bn(e, a, n, a.head, 0), Qn(a);
|
|
7519
7521
|
},
|
|
7520
7522
|
/**
|
|
7521
7523
|
* @namespace
|
|
@@ -7561,7 +7563,7 @@ var Yn = 0, ne = {}, x = {
|
|
|
7561
7563
|
function Z(e, n, t, r) {
|
|
7562
7564
|
this.type = e, this.content = n, this.alias = t, this.length = (r || "").length | 0;
|
|
7563
7565
|
}
|
|
7564
|
-
function
|
|
7566
|
+
function rn(e, n, t, r) {
|
|
7565
7567
|
e.lastIndex = n;
|
|
7566
7568
|
var a = e.exec(t);
|
|
7567
7569
|
if (a && r && a[1]) {
|
|
@@ -7578,51 +7580,51 @@ function bn(e, n, t, r, a, o) {
|
|
|
7578
7580
|
for (var u = 0; u < i.length; ++u) {
|
|
7579
7581
|
if (o && o.cause == s + "," + u)
|
|
7580
7582
|
return;
|
|
7581
|
-
var c = i[u], g = c.inside,
|
|
7582
|
-
if (
|
|
7583
|
-
var
|
|
7584
|
-
c.pattern = RegExp(c.pattern.source,
|
|
7583
|
+
var c = i[u], g = c.inside, S = !!c.lookbehind, E = !!c.greedy, h = c.alias;
|
|
7584
|
+
if (E && !c.pattern.global) {
|
|
7585
|
+
var w = c.pattern.toString().match(/[imsuy]*$/)[0];
|
|
7586
|
+
c.pattern = RegExp(c.pattern.source, w + "g");
|
|
7585
7587
|
}
|
|
7586
|
-
for (var m = c.pattern || c, y = r.next,
|
|
7588
|
+
for (var m = c.pattern || c, y = r.next, A = a; y !== n.tail && !(o && A >= o.reach); A += y.value.length, y = y.next) {
|
|
7587
7589
|
var R = y.value;
|
|
7588
7590
|
if (n.length > e.length)
|
|
7589
7591
|
return;
|
|
7590
7592
|
if (!(R instanceof Z)) {
|
|
7591
7593
|
var T = 1, f;
|
|
7592
|
-
if (
|
|
7593
|
-
if (f =
|
|
7594
|
+
if (E) {
|
|
7595
|
+
if (f = rn(m, A, e, S), !f || f.index >= e.length)
|
|
7594
7596
|
break;
|
|
7595
|
-
var I = f.index, v = f.index + f[0].length, L =
|
|
7597
|
+
var I = f.index, v = f.index + f[0].length, L = A;
|
|
7596
7598
|
for (L += y.value.length; I >= L; )
|
|
7597
7599
|
y = y.next, L += y.value.length;
|
|
7598
|
-
if (L -= y.value.length,
|
|
7600
|
+
if (L -= y.value.length, A = L, y.value instanceof Z)
|
|
7599
7601
|
continue;
|
|
7600
|
-
for (var
|
|
7601
|
-
T++, L +=
|
|
7602
|
-
T--, R = e.slice(
|
|
7603
|
-
} else if (f =
|
|
7602
|
+
for (var C = y; C !== n.tail && (L < v || typeof C.value == "string"); C = C.next)
|
|
7603
|
+
T++, L += C.value.length;
|
|
7604
|
+
T--, R = e.slice(A, L), f.index -= A;
|
|
7605
|
+
} else if (f = rn(m, 0, R, S), !f)
|
|
7604
7606
|
continue;
|
|
7605
|
-
var I = f.index, G = f[0], M = R.slice(0, I),
|
|
7606
|
-
o &&
|
|
7607
|
+
var I = f.index, G = f[0], M = R.slice(0, I), D = R.slice(I + G.length), _ = A + R.length;
|
|
7608
|
+
o && _ > o.reach && (o.reach = _);
|
|
7607
7609
|
var b = y.prev;
|
|
7608
|
-
M && (b = te(n, b, M),
|
|
7610
|
+
M && (b = te(n, b, M), A += M.length), Jn(n, b, T);
|
|
7609
7611
|
var B = new Z(
|
|
7610
7612
|
s,
|
|
7611
7613
|
g ? x.tokenize(G, g) : G,
|
|
7612
7614
|
h,
|
|
7613
7615
|
G
|
|
7614
7616
|
);
|
|
7615
|
-
if (y = te(n, b, B),
|
|
7617
|
+
if (y = te(n, b, B), D && te(n, y, D), T > 1) {
|
|
7616
7618
|
var V = {
|
|
7617
7619
|
cause: s + "," + u,
|
|
7618
|
-
reach:
|
|
7620
|
+
reach: _
|
|
7619
7621
|
};
|
|
7620
7622
|
bn(
|
|
7621
7623
|
e,
|
|
7622
7624
|
n,
|
|
7623
7625
|
t,
|
|
7624
7626
|
y.prev,
|
|
7625
|
-
|
|
7627
|
+
A,
|
|
7626
7628
|
V
|
|
7627
7629
|
), o && V.reach > o.reach && (o.reach = V.reach);
|
|
7628
7630
|
}
|
|
@@ -7631,7 +7633,7 @@ function bn(e, n, t, r, a, o) {
|
|
|
7631
7633
|
}
|
|
7632
7634
|
}
|
|
7633
7635
|
}
|
|
7634
|
-
function
|
|
7636
|
+
function Xn() {
|
|
7635
7637
|
var e = { value: null, prev: null, next: null }, n = { value: null, prev: e, next: null };
|
|
7636
7638
|
e.next = n, this.head = e, this.tail = n, this.length = 0;
|
|
7637
7639
|
}
|
|
@@ -7639,12 +7641,12 @@ function te(e, n, t) {
|
|
|
7639
7641
|
var r = n.next, a = { value: t, prev: n, next: r };
|
|
7640
7642
|
return n.next = a, r.prev = a, e.length++, a;
|
|
7641
7643
|
}
|
|
7642
|
-
function
|
|
7644
|
+
function Jn(e, n, t) {
|
|
7643
7645
|
for (var r = n.next, a = 0; a < t && r !== e.tail; a++)
|
|
7644
7646
|
r = r.next;
|
|
7645
7647
|
n.next = r, r.prev = n, e.length -= a;
|
|
7646
7648
|
}
|
|
7647
|
-
function
|
|
7649
|
+
function Qn(e) {
|
|
7648
7650
|
for (var n = [], t = e.head.next; t !== e.tail; )
|
|
7649
7651
|
n.push(t.value), t = t.next;
|
|
7650
7652
|
return n;
|
|
@@ -7654,14 +7656,14 @@ function mn() {
|
|
|
7654
7656
|
}
|
|
7655
7657
|
mn.prototype = hn;
|
|
7656
7658
|
const d = new mn();
|
|
7657
|
-
d.highlight =
|
|
7658
|
-
d.register =
|
|
7659
|
-
d.alias =
|
|
7660
|
-
d.registered =
|
|
7661
|
-
d.listLanguages =
|
|
7662
|
-
d.util.encode =
|
|
7663
|
-
d.Token.stringify =
|
|
7664
|
-
function
|
|
7659
|
+
d.highlight = et;
|
|
7660
|
+
d.register = nt;
|
|
7661
|
+
d.alias = tt;
|
|
7662
|
+
d.registered = rt;
|
|
7663
|
+
d.listLanguages = at;
|
|
7664
|
+
d.util.encode = ot;
|
|
7665
|
+
d.Token.stringify = pe;
|
|
7666
|
+
function et(e, n) {
|
|
7665
7667
|
if (typeof e != "string")
|
|
7666
7668
|
throw new TypeError("Expected `string` for `value`, got `" + e + "`");
|
|
7667
7669
|
let t, r;
|
|
@@ -7681,12 +7683,12 @@ function Xn(e, n) {
|
|
|
7681
7683
|
children: hn.highlight.call(d, e, t, r)
|
|
7682
7684
|
};
|
|
7683
7685
|
}
|
|
7684
|
-
function
|
|
7686
|
+
function nt(e) {
|
|
7685
7687
|
if (typeof e != "function" || !e.displayName)
|
|
7686
7688
|
throw new Error("Expected `function` for `syntax`, got `" + e + "`");
|
|
7687
7689
|
Object.hasOwn(d.languages, e.displayName) || e(d);
|
|
7688
7690
|
}
|
|
7689
|
-
function
|
|
7691
|
+
function tt(e, n) {
|
|
7690
7692
|
const t = d.languages;
|
|
7691
7693
|
let r = {};
|
|
7692
7694
|
typeof e == "string" ? n && (r[e] = n) : r = e;
|
|
@@ -7699,21 +7701,21 @@ function Qn(e, n) {
|
|
|
7699
7701
|
t[s[i]] = t[a];
|
|
7700
7702
|
}
|
|
7701
7703
|
}
|
|
7702
|
-
function
|
|
7704
|
+
function rt(e) {
|
|
7703
7705
|
if (typeof e != "string")
|
|
7704
7706
|
throw new TypeError(
|
|
7705
7707
|
"Expected `string` for `aliasOrLanguage`, got `" + e + "`"
|
|
7706
7708
|
);
|
|
7707
7709
|
return Object.hasOwn(d.languages, e);
|
|
7708
7710
|
}
|
|
7709
|
-
function
|
|
7711
|
+
function at() {
|
|
7710
7712
|
const e = d.languages, n = [];
|
|
7711
7713
|
let t;
|
|
7712
7714
|
for (t in e)
|
|
7713
7715
|
Object.hasOwn(e, t) && typeof e[t] == "object" && n.push(t);
|
|
7714
7716
|
return n;
|
|
7715
7717
|
}
|
|
7716
|
-
function
|
|
7718
|
+
function pe(e, n) {
|
|
7717
7719
|
if (typeof e == "string")
|
|
7718
7720
|
return { type: "text", value: e };
|
|
7719
7721
|
if (Array.isArray(e)) {
|
|
@@ -7722,50 +7724,49 @@ function de(e, n) {
|
|
|
7722
7724
|
for (; ++a < e.length; )
|
|
7723
7725
|
e[a] !== null && e[a] !== void 0 && e[a] !== "" && r.push(
|
|
7724
7726
|
/** @type {Element | Text} */
|
|
7725
|
-
|
|
7727
|
+
pe(e[a], n)
|
|
7726
7728
|
);
|
|
7727
7729
|
return r;
|
|
7728
7730
|
}
|
|
7729
7731
|
const t = {
|
|
7730
7732
|
attributes: {},
|
|
7731
7733
|
classes: ["token", e.type],
|
|
7732
|
-
content:
|
|
7734
|
+
content: pe(e.content, n),
|
|
7733
7735
|
language: n,
|
|
7734
7736
|
tag: "span",
|
|
7735
7737
|
type: e.type
|
|
7736
7738
|
};
|
|
7737
7739
|
return e.alias && t.classes.push(
|
|
7738
7740
|
...typeof e.alias == "string" ? [e.alias] : e.alias
|
|
7739
|
-
), d.hooks.run("wrap", t),
|
|
7741
|
+
), d.hooks.run("wrap", t), Gn(
|
|
7740
7742
|
t.tag + "." + t.classes.join("."),
|
|
7741
|
-
|
|
7743
|
+
lt(t.attributes),
|
|
7742
7744
|
t.content
|
|
7743
7745
|
);
|
|
7744
7746
|
}
|
|
7745
|
-
function
|
|
7747
|
+
function ot(e) {
|
|
7746
7748
|
return e;
|
|
7747
7749
|
}
|
|
7748
|
-
function
|
|
7750
|
+
function lt(e) {
|
|
7749
7751
|
let n;
|
|
7750
7752
|
for (n in e)
|
|
7751
|
-
Object.hasOwn(e, n) && (e[n] =
|
|
7753
|
+
Object.hasOwn(e, n) && (e[n] = Yn(e[n]));
|
|
7752
7754
|
return e;
|
|
7753
7755
|
}
|
|
7754
7756
|
d.register($);
|
|
7755
7757
|
d.register(X);
|
|
7756
7758
|
d.register(re);
|
|
7757
|
-
d.register(ge);
|
|
7758
7759
|
d.register(fe);
|
|
7759
7760
|
d.register(be);
|
|
7760
|
-
d.register(J);
|
|
7761
|
-
d.register(j);
|
|
7762
7761
|
d.register(he);
|
|
7762
|
+
d.register(J);
|
|
7763
|
+
d.register(Y);
|
|
7763
7764
|
d.register(me);
|
|
7764
7765
|
d.register(ye);
|
|
7765
7766
|
d.register(Ee);
|
|
7766
7767
|
d.register(Se);
|
|
7767
|
-
d.register(ae);
|
|
7768
7768
|
d.register(we);
|
|
7769
|
+
d.register(ae);
|
|
7769
7770
|
d.register(Ae);
|
|
7770
7771
|
d.register(ke);
|
|
7771
7772
|
d.register(Te);
|
|
@@ -7774,8 +7775,8 @@ d.register(Re);
|
|
|
7774
7775
|
d.register(Ne);
|
|
7775
7776
|
d.register(Ie);
|
|
7776
7777
|
d.register(xe);
|
|
7777
|
-
d.register(oe);
|
|
7778
7778
|
d.register(Le);
|
|
7779
|
+
d.register(oe);
|
|
7779
7780
|
d.register(Oe);
|
|
7780
7781
|
d.register(Ce);
|
|
7781
7782
|
d.register(De);
|
|
@@ -7785,9 +7786,10 @@ d.register(Me);
|
|
|
7785
7786
|
d.register(Ue);
|
|
7786
7787
|
d.register(qe);
|
|
7787
7788
|
d.register(Be);
|
|
7788
|
-
d.register(le);
|
|
7789
7789
|
d.register($e);
|
|
7790
|
-
|
|
7790
|
+
d.register(le);
|
|
7791
|
+
d.register(Ge);
|
|
7792
|
+
function it(e) {
|
|
7791
7793
|
const n = e.split(`
|
|
7792
7794
|
`);
|
|
7793
7795
|
let t = Number.POSITIVE_INFINITY;
|
|
@@ -7800,45 +7802,47 @@ function at(e) {
|
|
|
7800
7802
|
return n.map((a) => a.length > 0 ? a.slice(t) : a).join(`
|
|
7801
7803
|
`).trim();
|
|
7802
7804
|
}
|
|
7803
|
-
function
|
|
7804
|
-
return an(() =>
|
|
7805
|
+
function st(e) {
|
|
7806
|
+
return an(() => it(e), [e]);
|
|
7805
7807
|
}
|
|
7806
|
-
function
|
|
7808
|
+
function ge(e) {
|
|
7807
7809
|
if (e.type === "root")
|
|
7808
|
-
return /* @__PURE__ */
|
|
7810
|
+
return /* @__PURE__ */ O.jsx(O.Fragment, { children: e.children.map((n, t) => (
|
|
7809
7811
|
// eslint-disable-next-line react/no-array-index-key
|
|
7810
|
-
/* @__PURE__ */
|
|
7812
|
+
/* @__PURE__ */ O.jsx(ge, { ...n }, n.type + t)
|
|
7811
7813
|
)) });
|
|
7812
7814
|
if (e.type === "element" && e.tagName === "span") {
|
|
7813
7815
|
const n = e.properties.className;
|
|
7814
|
-
return !n || !Array.isArray(n) ? null : /* @__PURE__ */
|
|
7816
|
+
return !n || !Array.isArray(n) ? null : /* @__PURE__ */ O.jsx("span", { className: j(n.includes("operator") && "kakadu-components-1667726031", n.includes("boolean") && "kakadu-components-384894690", n.includes("tag") && "kakadu-components-2912867647", n.includes("number") && "kakadu-components-1802647269", (n.includes("string") || n.includes("attr-value")) && "kakadu-components-3418498183", n.includes("function") && "kakadu-components-3194749274", n.includes("comment") && "kakadu-components-1827768978", n.includes("keyword") && "kakadu-components-2707971154"), children: e.children.map((t, r) => (
|
|
7815
7817
|
// eslint-disable-next-line react/no-array-index-key
|
|
7816
|
-
/* @__PURE__ */
|
|
7818
|
+
/* @__PURE__ */ O.jsx(ge, { ...t }, t.type + r)
|
|
7817
7819
|
)) });
|
|
7818
7820
|
}
|
|
7819
7821
|
return e.type === "text" ? e.value : null;
|
|
7820
7822
|
}
|
|
7821
|
-
const
|
|
7822
|
-
function
|
|
7823
|
+
const se = "kakadu-components-674963254";
|
|
7824
|
+
function mt({
|
|
7823
7825
|
language: e,
|
|
7824
|
-
|
|
7825
|
-
|
|
7826
|
-
|
|
7827
|
-
|
|
7828
|
-
|
|
7829
|
-
|
|
7830
|
-
|
|
7831
|
-
|
|
7826
|
+
label: n,
|
|
7827
|
+
footnote: t,
|
|
7828
|
+
isBlock: r,
|
|
7829
|
+
isSkeleton: a,
|
|
7830
|
+
isSkeletonAnimated: o,
|
|
7831
|
+
children: s,
|
|
7832
|
+
className: i,
|
|
7833
|
+
innerClassName: u,
|
|
7834
|
+
...c
|
|
7832
7835
|
}) {
|
|
7833
|
-
const
|
|
7834
|
-
return
|
|
7835
|
-
/* @__PURE__ */
|
|
7836
|
-
|
|
7837
|
-
|
|
7838
|
-
|
|
7836
|
+
const g = st(s), S = an(() => e && !a ? d.highlight(g, e) : void 0, [g, e, a]), E = /* @__PURE__ */ O.jsx("code", { className: j("kakadu-components-1675352502", r ? u : i), ...r ? {} : c, children: S ? /* @__PURE__ */ O.jsx(ge, { ...S }) : g });
|
|
7837
|
+
return r ? /* @__PURE__ */ O.jsxs("div", { className: j("kakadu-components-2766718931", i), children: [
|
|
7838
|
+
n ? /* @__PURE__ */ O.jsx(Tn, { className: j(En, wn, a && se, "kakadu-components-286976053"), children: /* @__PURE__ */ O.jsx("span", { children: n }) }) : null,
|
|
7839
|
+
/* @__PURE__ */ O.jsx("pre", { className: j("kakadu-components-2825366733", a && se, !!n && "kakadu-components-4241084816"), ...c, children: E }),
|
|
7840
|
+
a ? null : /* @__PURE__ */ O.jsx("div", { className: "kakadu-components-449901473", children: /* @__PURE__ */ O.jsx(Sn, { value: g }) }),
|
|
7841
|
+
t ? /* @__PURE__ */ O.jsx(An, { className: j(a && se), children: t }) : null,
|
|
7842
|
+
a ? /* @__PURE__ */ O.jsx("div", { className: "kakadu-components-1103515533", children: /* @__PURE__ */ O.jsx(kn, { width: "100%", height: "100%", isAnimated: o }) }) : null
|
|
7839
7843
|
] }) : E;
|
|
7840
7844
|
}
|
|
7841
7845
|
export {
|
|
7842
|
-
|
|
7843
|
-
|
|
7846
|
+
mt as default,
|
|
7847
|
+
it as formatCode
|
|
7844
7848
|
};
|