@doenet/doenetml-iframe 0.7.21-dev.376 → 0.7.21-dev.378

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.
Files changed (3) hide show
  1. package/index.js +1486 -151
  2. package/index.js.map +1 -1
  3. package/package.json +1 -1
package/index.js CHANGED
@@ -440,6 +440,1323 @@ function IconBase(props) {
440
440
  function MdError(props) {
441
441
  return GenIcon({ "attr": { "viewBox": "0 0 24 24" }, "child": [{ "tag": "path", "attr": { "fill": "none", "d": "M0 0h24v24H0z" }, "child": [] }, { "tag": "path", "attr": { "d": "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-2h2zm0-4h-2V7h2z" }, "child": [] }] })(props);
442
442
  }
443
+ class FluentType {
444
+ /**
445
+ * Create a `FluentType` instance.
446
+ *
447
+ * @param value The JavaScript value to wrap.
448
+ */
449
+ constructor(value) {
450
+ this.value = value;
451
+ }
452
+ /**
453
+ * Unwrap the raw value stored by this `FluentType`.
454
+ */
455
+ valueOf() {
456
+ return this.value;
457
+ }
458
+ }
459
+ class FluentNone extends FluentType {
460
+ /**
461
+ * Create an instance of `FluentNone` with an optional fallback value.
462
+ * @param value The fallback value of this `FluentNone`.
463
+ */
464
+ constructor(value = "???") {
465
+ super(value);
466
+ }
467
+ /**
468
+ * Format this `FluentNone` to the fallback string.
469
+ */
470
+ toString(scope) {
471
+ return `{${this.value}}`;
472
+ }
473
+ }
474
+ class FluentNumber extends FluentType {
475
+ /**
476
+ * Create an instance of `FluentNumber` with options to the
477
+ * `Intl.NumberFormat` constructor.
478
+ *
479
+ * @param value The number value of this `FluentNumber`.
480
+ * @param opts Options which will be passed to `Intl.NumberFormat`.
481
+ */
482
+ constructor(value, opts = {}) {
483
+ super(value);
484
+ this.opts = opts;
485
+ }
486
+ /**
487
+ * Format this `FluentNumber` to a string.
488
+ */
489
+ toString(scope) {
490
+ if (scope) {
491
+ try {
492
+ const nf = scope.memoizeIntlObject(Intl.NumberFormat, this.opts);
493
+ return nf.format(this.value);
494
+ } catch (err) {
495
+ scope.reportError(err);
496
+ }
497
+ }
498
+ return this.value.toString(10);
499
+ }
500
+ }
501
+ class FluentDateTime extends FluentType {
502
+ static supportsValue(value) {
503
+ if (typeof value === "number")
504
+ return true;
505
+ if (value instanceof Date)
506
+ return true;
507
+ if (value instanceof FluentType)
508
+ return FluentDateTime.supportsValue(value.valueOf());
509
+ if ("Temporal" in globalThis) {
510
+ const _Temporal = globalThis.Temporal;
511
+ if (value instanceof _Temporal.Instant || value instanceof _Temporal.PlainDateTime || value instanceof _Temporal.PlainDate || value instanceof _Temporal.PlainMonthDay || value instanceof _Temporal.PlainTime || value instanceof _Temporal.PlainYearMonth) {
512
+ return true;
513
+ }
514
+ }
515
+ return false;
516
+ }
517
+ /**
518
+ * Create an instance of `FluentDateTime` with options to the
519
+ * `Intl.DateTimeFormat` constructor.
520
+ *
521
+ * @param value The number value of this `FluentDateTime`, in milliseconds.
522
+ * @param opts Options which will be passed to `Intl.DateTimeFormat`.
523
+ */
524
+ constructor(value, opts = {}) {
525
+ if (value instanceof FluentDateTime) {
526
+ opts = { ...value.opts, ...opts };
527
+ value = value.value;
528
+ } else if (value instanceof FluentType) {
529
+ value = value.valueOf();
530
+ }
531
+ if (typeof value === "object" && "calendarId" in value && opts.calendar === void 0) {
532
+ opts = { ...opts, calendar: value.calendarId };
533
+ }
534
+ super(value);
535
+ this.opts = opts;
536
+ }
537
+ [Symbol.toPrimitive](hint) {
538
+ return hint === "string" ? this.toString() : this.toNumber();
539
+ }
540
+ /**
541
+ * Convert this `FluentDateTime` to a number.
542
+ * Note that this isn't always possible due to the nature of Temporal objects.
543
+ * In such cases, a TypeError will be thrown.
544
+ */
545
+ toNumber() {
546
+ const value = this.value;
547
+ if (typeof value === "number")
548
+ return value;
549
+ if (value instanceof Date)
550
+ return value.getTime();
551
+ if ("epochMilliseconds" in value) {
552
+ return value.epochMilliseconds;
553
+ }
554
+ if ("toZonedDateTime" in value) {
555
+ return value.toZonedDateTime("UTC").epochMilliseconds;
556
+ }
557
+ throw new TypeError("Unwrapping a non-number value as a number");
558
+ }
559
+ /**
560
+ * Format this `FluentDateTime` to a string.
561
+ */
562
+ toString(scope) {
563
+ if (scope) {
564
+ try {
565
+ const dtf = scope.memoizeIntlObject(Intl.DateTimeFormat, this.opts);
566
+ return dtf.format(this.value);
567
+ } catch (err) {
568
+ scope.reportError(err);
569
+ }
570
+ }
571
+ if (typeof this.value === "number" || this.value instanceof Date) {
572
+ return new Date(this.value).toISOString();
573
+ }
574
+ return this.value.toString();
575
+ }
576
+ }
577
+ const MAX_PLACEABLES = 100;
578
+ const FSI = "⁨";
579
+ const PDI = "⁩";
580
+ function match$3(scope, selector2, key) {
581
+ if (key === selector2) {
582
+ return true;
583
+ }
584
+ if (key instanceof FluentNumber && selector2 instanceof FluentNumber && key.value === selector2.value) {
585
+ return true;
586
+ }
587
+ if (selector2 instanceof FluentNumber && typeof key === "string") {
588
+ let category = scope.memoizeIntlObject(Intl.PluralRules, selector2.opts).select(selector2.value);
589
+ if (key === category) {
590
+ return true;
591
+ }
592
+ }
593
+ return false;
594
+ }
595
+ function getDefault(scope, variants, star) {
596
+ if (variants[star]) {
597
+ return resolvePattern(scope, variants[star].value);
598
+ }
599
+ scope.reportError(new RangeError("No default"));
600
+ return new FluentNone();
601
+ }
602
+ function getArguments(scope, args) {
603
+ const positional = [];
604
+ const named = /* @__PURE__ */ Object.create(null);
605
+ for (const arg of args) {
606
+ if (arg.type === "narg") {
607
+ named[arg.name] = resolveExpression(scope, arg.value);
608
+ } else {
609
+ positional.push(resolveExpression(scope, arg));
610
+ }
611
+ }
612
+ return { positional, named };
613
+ }
614
+ function resolveExpression(scope, expr) {
615
+ switch (expr.type) {
616
+ case "str":
617
+ return expr.value;
618
+ case "num":
619
+ return new FluentNumber(expr.value, {
620
+ minimumFractionDigits: expr.precision
621
+ });
622
+ case "var":
623
+ return resolveVariableReference(scope, expr);
624
+ case "mesg":
625
+ return resolveMessageReference(scope, expr);
626
+ case "term":
627
+ return resolveTermReference(scope, expr);
628
+ case "func":
629
+ return resolveFunctionReference(scope, expr);
630
+ case "select":
631
+ return resolveSelectExpression(scope, expr);
632
+ default:
633
+ return new FluentNone();
634
+ }
635
+ }
636
+ function resolveVariableReference(scope, { name: name2 }) {
637
+ let arg;
638
+ if (scope.params) {
639
+ if (Object.prototype.hasOwnProperty.call(scope.params, name2)) {
640
+ arg = scope.params[name2];
641
+ } else {
642
+ return new FluentNone(`$${name2}`);
643
+ }
644
+ } else if (scope.args && Object.prototype.hasOwnProperty.call(scope.args, name2)) {
645
+ arg = scope.args[name2];
646
+ } else {
647
+ scope.reportError(new ReferenceError(`Unknown variable: $${name2}`));
648
+ return new FluentNone(`$${name2}`);
649
+ }
650
+ if (arg instanceof FluentType) {
651
+ return arg;
652
+ }
653
+ switch (typeof arg) {
654
+ case "string":
655
+ return arg;
656
+ case "number":
657
+ return new FluentNumber(arg);
658
+ case "object":
659
+ if (FluentDateTime.supportsValue(arg)) {
660
+ return new FluentDateTime(arg);
661
+ }
662
+ // eslint-disable-next-line no-fallthrough
663
+ default:
664
+ scope.reportError(new TypeError(`Variable type not supported: $${name2}, ${typeof arg}`));
665
+ return new FluentNone(`$${name2}`);
666
+ }
667
+ }
668
+ function resolveMessageReference(scope, { name: name2, attr }) {
669
+ const message = scope.bundle._messages.get(name2);
670
+ if (!message) {
671
+ scope.reportError(new ReferenceError(`Unknown message: ${name2}`));
672
+ return new FluentNone(name2);
673
+ }
674
+ if (attr) {
675
+ const attribute = message.attributes[attr];
676
+ if (attribute) {
677
+ return resolvePattern(scope, attribute);
678
+ }
679
+ scope.reportError(new ReferenceError(`Unknown attribute: ${attr}`));
680
+ return new FluentNone(`${name2}.${attr}`);
681
+ }
682
+ if (message.value) {
683
+ return resolvePattern(scope, message.value);
684
+ }
685
+ scope.reportError(new ReferenceError(`No value: ${name2}`));
686
+ return new FluentNone(name2);
687
+ }
688
+ function resolveTermReference(scope, { name: name2, attr, args }) {
689
+ const id2 = `-${name2}`;
690
+ const term = scope.bundle._terms.get(id2);
691
+ if (!term) {
692
+ scope.reportError(new ReferenceError(`Unknown term: ${id2}`));
693
+ return new FluentNone(id2);
694
+ }
695
+ if (attr) {
696
+ const attribute = term.attributes[attr];
697
+ if (attribute) {
698
+ scope.params = getArguments(scope, args).named;
699
+ const resolved2 = resolvePattern(scope, attribute);
700
+ scope.params = null;
701
+ return resolved2;
702
+ }
703
+ scope.reportError(new ReferenceError(`Unknown attribute: ${attr}`));
704
+ return new FluentNone(`${id2}.${attr}`);
705
+ }
706
+ scope.params = getArguments(scope, args).named;
707
+ const resolved = resolvePattern(scope, term.value);
708
+ scope.params = null;
709
+ return resolved;
710
+ }
711
+ function resolveFunctionReference(scope, { name: name2, args }) {
712
+ let func = scope.bundle._functions[name2];
713
+ if (!func) {
714
+ scope.reportError(new ReferenceError(`Unknown function: ${name2}()`));
715
+ return new FluentNone(`${name2}()`);
716
+ }
717
+ if (typeof func !== "function") {
718
+ scope.reportError(new TypeError(`Function ${name2}() is not callable`));
719
+ return new FluentNone(`${name2}()`);
720
+ }
721
+ try {
722
+ let resolved = getArguments(scope, args);
723
+ return func(resolved.positional, resolved.named);
724
+ } catch (err) {
725
+ scope.reportError(err);
726
+ return new FluentNone(`${name2}()`);
727
+ }
728
+ }
729
+ function resolveSelectExpression(scope, { selector: selector2, variants, star }) {
730
+ let sel = resolveExpression(scope, selector2);
731
+ if (sel instanceof FluentNone) {
732
+ return getDefault(scope, variants, star);
733
+ }
734
+ for (const variant of variants) {
735
+ const key = resolveExpression(scope, variant.key);
736
+ if (match$3(scope, sel, key)) {
737
+ return resolvePattern(scope, variant.value);
738
+ }
739
+ }
740
+ return getDefault(scope, variants, star);
741
+ }
742
+ function resolveComplexPattern(scope, ptn) {
743
+ if (scope.dirty.has(ptn)) {
744
+ scope.reportError(new RangeError("Cyclic reference"));
745
+ return new FluentNone();
746
+ }
747
+ scope.dirty.add(ptn);
748
+ const result2 = [];
749
+ const useIsolating = scope.bundle._useIsolating && ptn.length > 1;
750
+ for (const elem of ptn) {
751
+ if (typeof elem === "string") {
752
+ result2.push(scope.bundle._transform(elem));
753
+ continue;
754
+ }
755
+ scope.placeables++;
756
+ if (scope.placeables > MAX_PLACEABLES) {
757
+ scope.dirty.delete(ptn);
758
+ throw new RangeError(`Too many placeables expanded: ${scope.placeables}, max allowed is ${MAX_PLACEABLES}`);
759
+ }
760
+ if (useIsolating) {
761
+ result2.push(FSI);
762
+ }
763
+ result2.push(resolveExpression(scope, elem).toString(scope));
764
+ if (useIsolating) {
765
+ result2.push(PDI);
766
+ }
767
+ }
768
+ scope.dirty.delete(ptn);
769
+ return result2.join("");
770
+ }
771
+ function resolvePattern(scope, value) {
772
+ if (typeof value === "string") {
773
+ return scope.bundle._transform(value);
774
+ }
775
+ return resolveComplexPattern(scope, value);
776
+ }
777
+ class Scope {
778
+ constructor(bundle, errors, args) {
779
+ this.dirty = /* @__PURE__ */ new WeakSet();
780
+ this.params = null;
781
+ this.placeables = 0;
782
+ this.bundle = bundle;
783
+ this.errors = errors;
784
+ this.args = args;
785
+ }
786
+ reportError(error) {
787
+ if (!this.errors || !(error instanceof Error)) {
788
+ throw error;
789
+ }
790
+ this.errors.push(error);
791
+ }
792
+ memoizeIntlObject(ctor2, opts) {
793
+ let cache2 = this.bundle._intls.get(ctor2);
794
+ if (!cache2) {
795
+ cache2 = {};
796
+ this.bundle._intls.set(ctor2, cache2);
797
+ }
798
+ let id2 = JSON.stringify(opts);
799
+ if (!cache2[id2]) {
800
+ cache2[id2] = new ctor2(this.bundle.locales, opts);
801
+ }
802
+ return cache2[id2];
803
+ }
804
+ }
805
+ function values$2(opts, allowed) {
806
+ const unwrapped = /* @__PURE__ */ Object.create(null);
807
+ for (const [name2, opt] of Object.entries(opts)) {
808
+ if (allowed.includes(name2)) {
809
+ unwrapped[name2] = opt.valueOf();
810
+ }
811
+ }
812
+ return unwrapped;
813
+ }
814
+ const NUMBER_ALLOWED = [
815
+ "unitDisplay",
816
+ "currencyDisplay",
817
+ "useGrouping",
818
+ "minimumIntegerDigits",
819
+ "minimumFractionDigits",
820
+ "maximumFractionDigits",
821
+ "minimumSignificantDigits",
822
+ "maximumSignificantDigits"
823
+ ];
824
+ function NUMBER(args, opts) {
825
+ let arg = args[0];
826
+ if (arg instanceof FluentNone) {
827
+ return new FluentNone(`NUMBER(${arg.valueOf()})`);
828
+ }
829
+ if (arg instanceof FluentNumber) {
830
+ return new FluentNumber(arg.valueOf(), {
831
+ ...arg.opts,
832
+ ...values$2(opts, NUMBER_ALLOWED)
833
+ });
834
+ }
835
+ if (arg instanceof FluentDateTime) {
836
+ return new FluentNumber(arg.toNumber(), {
837
+ ...values$2(opts, NUMBER_ALLOWED)
838
+ });
839
+ }
840
+ throw new TypeError("Invalid argument to NUMBER");
841
+ }
842
+ const DATETIME_ALLOWED = [
843
+ "dateStyle",
844
+ "timeStyle",
845
+ "fractionalSecondDigits",
846
+ "dayPeriod",
847
+ "hour12",
848
+ "weekday",
849
+ "era",
850
+ "year",
851
+ "month",
852
+ "day",
853
+ "hour",
854
+ "minute",
855
+ "second",
856
+ "timeZoneName"
857
+ ];
858
+ function DATETIME(args, opts) {
859
+ let arg = args[0];
860
+ if (arg instanceof FluentNone) {
861
+ return new FluentNone(`DATETIME(${arg.valueOf()})`);
862
+ }
863
+ if (arg instanceof FluentDateTime || arg instanceof FluentNumber) {
864
+ return new FluentDateTime(arg, values$2(opts, DATETIME_ALLOWED));
865
+ }
866
+ throw new TypeError("Invalid argument to DATETIME");
867
+ }
868
+ const cache = /* @__PURE__ */ new Map();
869
+ function getMemoizerForLocale(locales) {
870
+ const stringLocale = Array.isArray(locales) ? locales.join(" ") : locales;
871
+ let memoizer = cache.get(stringLocale);
872
+ if (memoizer === void 0) {
873
+ memoizer = /* @__PURE__ */ new Map();
874
+ cache.set(stringLocale, memoizer);
875
+ }
876
+ return memoizer;
877
+ }
878
+ class FluentBundle {
879
+ /**
880
+ * Create an instance of `FluentBundle`.
881
+ *
882
+ * @example
883
+ * ```js
884
+ * let bundle = new FluentBundle(["en-US", "en"]);
885
+ *
886
+ * let bundle = new FluentBundle(locales, {useIsolating: false});
887
+ *
888
+ * let bundle = new FluentBundle(locales, {
889
+ * useIsolating: true,
890
+ * functions: {
891
+ * NODE_ENV: () => process.env.NODE_ENV
892
+ * }
893
+ * });
894
+ * ```
895
+ *
896
+ * @param locales - Used to instantiate `Intl` formatters used by translations.
897
+ * @param options - Optional configuration for the bundle.
898
+ */
899
+ constructor(locales, { functions: functions2, useIsolating = true, transform: transform2 = (v2) => v2 } = {}) {
900
+ this._terms = /* @__PURE__ */ new Map();
901
+ this._messages = /* @__PURE__ */ new Map();
902
+ this.locales = Array.isArray(locales) ? locales : [locales];
903
+ this._functions = {
904
+ NUMBER,
905
+ DATETIME,
906
+ ...functions2
907
+ };
908
+ this._useIsolating = useIsolating;
909
+ this._transform = transform2;
910
+ this._intls = getMemoizerForLocale(locales);
911
+ }
912
+ /**
913
+ * Check if a message is present in the bundle.
914
+ *
915
+ * @param id - The identifier of the message to check.
916
+ */
917
+ hasMessage(id2) {
918
+ return this._messages.has(id2);
919
+ }
920
+ /**
921
+ * Return a raw unformatted message object from the bundle.
922
+ *
923
+ * Raw messages are `{value, attributes}` shapes containing translation units
924
+ * called `Patterns`. `Patterns` are implementation-specific; they should be
925
+ * treated as black boxes and formatted with `FluentBundle.formatPattern`.
926
+ *
927
+ * @param id - The identifier of the message to check.
928
+ */
929
+ getMessage(id2) {
930
+ return this._messages.get(id2);
931
+ }
932
+ /**
933
+ * Add a translation resource to the bundle.
934
+ *
935
+ * @example
936
+ * ```js
937
+ * let res = new FluentResource("foo = Foo");
938
+ * bundle.addResource(res);
939
+ * bundle.getMessage("foo");
940
+ * // → {value: .., attributes: {..}}
941
+ * ```
942
+ *
943
+ * @param res
944
+ * @param options
945
+ */
946
+ addResource(res, { allowOverrides = false } = {}) {
947
+ const errors = [];
948
+ for (let i2 = 0; i2 < res.body.length; i2++) {
949
+ let entry = res.body[i2];
950
+ if (entry.id.startsWith("-")) {
951
+ if (allowOverrides === false && this._terms.has(entry.id)) {
952
+ errors.push(new Error(`Attempt to override an existing term: "${entry.id}"`));
953
+ continue;
954
+ }
955
+ this._terms.set(entry.id, entry);
956
+ } else {
957
+ if (allowOverrides === false && this._messages.has(entry.id)) {
958
+ errors.push(new Error(`Attempt to override an existing message: "${entry.id}"`));
959
+ continue;
960
+ }
961
+ this._messages.set(entry.id, entry);
962
+ }
963
+ }
964
+ return errors;
965
+ }
966
+ /**
967
+ * Format a `Pattern` to a string.
968
+ *
969
+ * Format a raw `Pattern` into a string. `args` will be used to resolve
970
+ * references to variables passed as arguments to the translation.
971
+ *
972
+ * In case of errors `formatPattern` will try to salvage as much of the
973
+ * translation as possible and will still return a string. For performance
974
+ * reasons, the encountered errors are not returned but instead are appended
975
+ * to the `errors` array passed as the third argument.
976
+ *
977
+ * If `errors` is omitted, the first encountered error will be thrown.
978
+ *
979
+ * @example
980
+ * ```js
981
+ * let errors = [];
982
+ * bundle.addResource(
983
+ * new FluentResource("hello = Hello, {$name}!"));
984
+ *
985
+ * let hello = bundle.getMessage("hello");
986
+ * if (hello.value) {
987
+ * bundle.formatPattern(hello.value, {name: "Jane"}, errors);
988
+ * // Returns "Hello, Jane!" and `errors` is empty.
989
+ *
990
+ * bundle.formatPattern(hello.value, undefined, errors);
991
+ * // Returns "Hello, {$name}!" and `errors` is now:
992
+ * // [<ReferenceError: Unknown variable: name>]
993
+ * }
994
+ * ```
995
+ */
996
+ formatPattern(pattern, args = null, errors = null) {
997
+ if (typeof pattern === "string") {
998
+ return this._transform(pattern);
999
+ }
1000
+ let scope = new Scope(this, errors, args);
1001
+ try {
1002
+ let value = resolveComplexPattern(scope, pattern);
1003
+ return value.toString(scope);
1004
+ } catch (err) {
1005
+ if (scope.errors && err instanceof Error) {
1006
+ scope.errors.push(err);
1007
+ return new FluentNone().toString(scope);
1008
+ }
1009
+ throw err;
1010
+ }
1011
+ }
1012
+ }
1013
+ const RE_MESSAGE_START = /^(-?[a-zA-Z][\w-]*) *= */gm;
1014
+ const RE_ATTRIBUTE_START = /\.([a-zA-Z][\w-]*) *= */y;
1015
+ const RE_VARIANT_START = /\*?\[/y;
1016
+ const RE_NUMBER_LITERAL = /(-?[0-9]+(?:\.([0-9]+))?)/y;
1017
+ const RE_IDENTIFIER = /([a-zA-Z][\w-]*)/y;
1018
+ const RE_REFERENCE = /([$-])?([a-zA-Z][\w-]*)(?:\.([a-zA-Z][\w-]*))?/y;
1019
+ const RE_FUNCTION_NAME = /^[A-Z][A-Z0-9_-]*$/;
1020
+ const RE_TEXT_RUN = /([^{}\n\r]+)/y;
1021
+ const RE_STRING_RUN = /([^\\"\n\r]*)/y;
1022
+ const RE_STRING_ESCAPE = /\\([\\"])/y;
1023
+ const RE_UNICODE_ESCAPE = /\\u([a-fA-F0-9]{4})|\\U([a-fA-F0-9]{6})/y;
1024
+ const RE_LEADING_NEWLINES = /^\n+/;
1025
+ const RE_TRAILING_SPACES = / +$/;
1026
+ const RE_BLANK_LINES = / *\r?\n/g;
1027
+ const RE_INDENT = /( *)$/;
1028
+ const TOKEN_BRACE_OPEN = /{\s*/y;
1029
+ const TOKEN_BRACE_CLOSE = /\s*}/y;
1030
+ const TOKEN_BRACKET_OPEN = /\[\s*/y;
1031
+ const TOKEN_BRACKET_CLOSE = /\s*] */y;
1032
+ const TOKEN_PAREN_OPEN = /\s*\(\s*/y;
1033
+ const TOKEN_ARROW = /\s*->\s*/y;
1034
+ const TOKEN_COLON = /\s*:\s*/y;
1035
+ const TOKEN_COMMA = /\s*,?\s*/y;
1036
+ const TOKEN_BLANK = /\s+/y;
1037
+ class FluentResource {
1038
+ constructor(source) {
1039
+ this.body = [];
1040
+ RE_MESSAGE_START.lastIndex = 0;
1041
+ let cursor = 0;
1042
+ while (true) {
1043
+ let next = RE_MESSAGE_START.exec(source);
1044
+ if (next === null) {
1045
+ break;
1046
+ }
1047
+ cursor = RE_MESSAGE_START.lastIndex;
1048
+ try {
1049
+ this.body.push(parseMessage(next[1]));
1050
+ } catch (err) {
1051
+ if (err instanceof SyntaxError) {
1052
+ continue;
1053
+ }
1054
+ throw err;
1055
+ }
1056
+ }
1057
+ function test(re2) {
1058
+ re2.lastIndex = cursor;
1059
+ return re2.test(source);
1060
+ }
1061
+ function consumeChar(char, errorClass) {
1062
+ if (source[cursor] === char) {
1063
+ cursor++;
1064
+ return true;
1065
+ }
1066
+ if (errorClass) {
1067
+ throw new errorClass(`Expected ${char}`);
1068
+ }
1069
+ return false;
1070
+ }
1071
+ function consumeToken(re2, errorClass) {
1072
+ if (test(re2)) {
1073
+ cursor = re2.lastIndex;
1074
+ return true;
1075
+ }
1076
+ if (errorClass) {
1077
+ throw new errorClass(`Expected ${re2.toString()}`);
1078
+ }
1079
+ return false;
1080
+ }
1081
+ function match2(re2) {
1082
+ re2.lastIndex = cursor;
1083
+ let result2 = re2.exec(source);
1084
+ if (result2 === null) {
1085
+ throw new SyntaxError(`Expected ${re2.toString()}`);
1086
+ }
1087
+ cursor = re2.lastIndex;
1088
+ return result2;
1089
+ }
1090
+ function match1(re2) {
1091
+ return match2(re2)[1];
1092
+ }
1093
+ function parseMessage(id2) {
1094
+ let value = parsePattern();
1095
+ let attributes = parseAttributes();
1096
+ if (value === null && Object.keys(attributes).length === 0) {
1097
+ throw new SyntaxError("Expected message value or attributes");
1098
+ }
1099
+ return { id: id2, value, attributes };
1100
+ }
1101
+ function parseAttributes() {
1102
+ let attrs = /* @__PURE__ */ Object.create(null);
1103
+ while (test(RE_ATTRIBUTE_START)) {
1104
+ let name2 = match1(RE_ATTRIBUTE_START);
1105
+ let value = parsePattern();
1106
+ if (value === null) {
1107
+ throw new SyntaxError("Expected attribute value");
1108
+ }
1109
+ attrs[name2] = value;
1110
+ }
1111
+ return attrs;
1112
+ }
1113
+ function parsePattern() {
1114
+ let first2;
1115
+ if (test(RE_TEXT_RUN)) {
1116
+ first2 = match1(RE_TEXT_RUN);
1117
+ }
1118
+ if (source[cursor] === "{" || source[cursor] === "}") {
1119
+ return parsePatternElements(first2 ? [first2] : [], Infinity);
1120
+ }
1121
+ let indent = parseIndent();
1122
+ if (indent) {
1123
+ if (first2) {
1124
+ return parsePatternElements([first2, indent], indent.length);
1125
+ }
1126
+ indent.value = trim(indent.value, RE_LEADING_NEWLINES);
1127
+ return parsePatternElements([indent], indent.length);
1128
+ }
1129
+ if (first2) {
1130
+ return trim(first2, RE_TRAILING_SPACES);
1131
+ }
1132
+ return null;
1133
+ }
1134
+ function parsePatternElements(elements = [], commonIndent) {
1135
+ while (true) {
1136
+ if (test(RE_TEXT_RUN)) {
1137
+ elements.push(match1(RE_TEXT_RUN));
1138
+ continue;
1139
+ }
1140
+ if (source[cursor] === "{") {
1141
+ elements.push(parsePlaceable());
1142
+ continue;
1143
+ }
1144
+ if (source[cursor] === "}") {
1145
+ throw new SyntaxError("Unbalanced closing brace");
1146
+ }
1147
+ let indent = parseIndent();
1148
+ if (indent) {
1149
+ elements.push(indent);
1150
+ commonIndent = Math.min(commonIndent, indent.length);
1151
+ continue;
1152
+ }
1153
+ break;
1154
+ }
1155
+ let lastIndex = elements.length - 1;
1156
+ let lastElement = elements[lastIndex];
1157
+ if (typeof lastElement === "string") {
1158
+ elements[lastIndex] = trim(lastElement, RE_TRAILING_SPACES);
1159
+ }
1160
+ let baked = [];
1161
+ for (let element of elements) {
1162
+ if (element instanceof Indent) {
1163
+ element = element.value.slice(0, element.value.length - commonIndent);
1164
+ }
1165
+ if (element) {
1166
+ baked.push(element);
1167
+ }
1168
+ }
1169
+ return baked;
1170
+ }
1171
+ function parsePlaceable() {
1172
+ consumeToken(TOKEN_BRACE_OPEN, SyntaxError);
1173
+ let selector2 = parseInlineExpression();
1174
+ if (consumeToken(TOKEN_BRACE_CLOSE)) {
1175
+ return selector2;
1176
+ }
1177
+ if (consumeToken(TOKEN_ARROW)) {
1178
+ let variants = parseVariants();
1179
+ consumeToken(TOKEN_BRACE_CLOSE, SyntaxError);
1180
+ return {
1181
+ type: "select",
1182
+ selector: selector2,
1183
+ ...variants
1184
+ };
1185
+ }
1186
+ throw new SyntaxError("Unclosed placeable");
1187
+ }
1188
+ function parseInlineExpression() {
1189
+ if (source[cursor] === "{") {
1190
+ return parsePlaceable();
1191
+ }
1192
+ if (test(RE_REFERENCE)) {
1193
+ let [, sigil, name2, attr = null] = match2(RE_REFERENCE);
1194
+ if (sigil === "$") {
1195
+ return { type: "var", name: name2 };
1196
+ }
1197
+ if (consumeToken(TOKEN_PAREN_OPEN)) {
1198
+ let args = parseArguments();
1199
+ if (sigil === "-") {
1200
+ return { type: "term", name: name2, attr, args };
1201
+ }
1202
+ if (RE_FUNCTION_NAME.test(name2)) {
1203
+ return { type: "func", name: name2, args };
1204
+ }
1205
+ throw new SyntaxError("Function names must be all upper-case");
1206
+ }
1207
+ if (sigil === "-") {
1208
+ return {
1209
+ type: "term",
1210
+ name: name2,
1211
+ attr,
1212
+ args: []
1213
+ };
1214
+ }
1215
+ return { type: "mesg", name: name2, attr };
1216
+ }
1217
+ return parseLiteral();
1218
+ }
1219
+ function parseArguments() {
1220
+ let args = [];
1221
+ while (true) {
1222
+ switch (source[cursor]) {
1223
+ case ")":
1224
+ cursor++;
1225
+ return args;
1226
+ case void 0:
1227
+ throw new SyntaxError("Unclosed argument list");
1228
+ }
1229
+ args.push(parseArgument());
1230
+ consumeToken(TOKEN_COMMA);
1231
+ }
1232
+ }
1233
+ function parseArgument() {
1234
+ let expr = parseInlineExpression();
1235
+ if (expr.type !== "mesg") {
1236
+ return expr;
1237
+ }
1238
+ if (consumeToken(TOKEN_COLON)) {
1239
+ return {
1240
+ type: "narg",
1241
+ name: expr.name,
1242
+ value: parseLiteral()
1243
+ };
1244
+ }
1245
+ return expr;
1246
+ }
1247
+ function parseVariants() {
1248
+ let variants = [];
1249
+ let count = 0;
1250
+ let star;
1251
+ while (test(RE_VARIANT_START)) {
1252
+ if (consumeChar("*")) {
1253
+ star = count;
1254
+ }
1255
+ let key = parseVariantKey();
1256
+ let value = parsePattern();
1257
+ if (value === null) {
1258
+ throw new SyntaxError("Expected variant value");
1259
+ }
1260
+ variants[count++] = { key, value };
1261
+ }
1262
+ if (count === 0) {
1263
+ return null;
1264
+ }
1265
+ if (star === void 0) {
1266
+ throw new SyntaxError("Expected default variant");
1267
+ }
1268
+ return { variants, star };
1269
+ }
1270
+ function parseVariantKey() {
1271
+ consumeToken(TOKEN_BRACKET_OPEN, SyntaxError);
1272
+ let key;
1273
+ if (test(RE_NUMBER_LITERAL)) {
1274
+ key = parseNumberLiteral();
1275
+ } else {
1276
+ key = {
1277
+ type: "str",
1278
+ value: match1(RE_IDENTIFIER)
1279
+ };
1280
+ }
1281
+ consumeToken(TOKEN_BRACKET_CLOSE, SyntaxError);
1282
+ return key;
1283
+ }
1284
+ function parseLiteral() {
1285
+ if (test(RE_NUMBER_LITERAL)) {
1286
+ return parseNumberLiteral();
1287
+ }
1288
+ if (source[cursor] === '"') {
1289
+ return parseStringLiteral();
1290
+ }
1291
+ throw new SyntaxError("Invalid expression");
1292
+ }
1293
+ function parseNumberLiteral() {
1294
+ let [, value, fraction = ""] = match2(RE_NUMBER_LITERAL);
1295
+ let precision = fraction.length;
1296
+ return {
1297
+ type: "num",
1298
+ value: parseFloat(value),
1299
+ precision
1300
+ };
1301
+ }
1302
+ function parseStringLiteral() {
1303
+ consumeChar('"', SyntaxError);
1304
+ let value = "";
1305
+ while (true) {
1306
+ value += match1(RE_STRING_RUN);
1307
+ if (source[cursor] === "\\") {
1308
+ value += parseEscapeSequence();
1309
+ continue;
1310
+ }
1311
+ if (consumeChar('"')) {
1312
+ return { type: "str", value };
1313
+ }
1314
+ throw new SyntaxError("Unclosed string literal");
1315
+ }
1316
+ }
1317
+ function parseEscapeSequence() {
1318
+ if (test(RE_STRING_ESCAPE)) {
1319
+ return match1(RE_STRING_ESCAPE);
1320
+ }
1321
+ if (test(RE_UNICODE_ESCAPE)) {
1322
+ let [, codepoint4, codepoint6] = match2(RE_UNICODE_ESCAPE);
1323
+ let codepoint = parseInt(codepoint4 || codepoint6, 16);
1324
+ return codepoint <= 55295 || 57344 <= codepoint ? (
1325
+ // It's a Unicode scalar value.
1326
+ String.fromCodePoint(codepoint)
1327
+ ) : (
1328
+ // Lonely surrogates can cause trouble when the parsing result is
1329
+ // saved using UTF-8. Use U+FFFD REPLACEMENT CHARACTER instead.
1330
+ "�"
1331
+ );
1332
+ }
1333
+ throw new SyntaxError("Unknown escape sequence");
1334
+ }
1335
+ function parseIndent() {
1336
+ let start = cursor;
1337
+ consumeToken(TOKEN_BLANK);
1338
+ switch (source[cursor]) {
1339
+ case ".":
1340
+ case "[":
1341
+ case "*":
1342
+ case "}":
1343
+ case void 0:
1344
+ return false;
1345
+ case "{":
1346
+ return makeIndent(source.slice(start, cursor));
1347
+ }
1348
+ if (source[cursor - 1] === " ") {
1349
+ return makeIndent(source.slice(start, cursor));
1350
+ }
1351
+ return false;
1352
+ }
1353
+ function trim(text, re2) {
1354
+ return text.replace(re2, "");
1355
+ }
1356
+ function makeIndent(blank) {
1357
+ let value = blank.replace(RE_BLANK_LINES, "\n");
1358
+ let length = RE_INDENT.exec(blank)[1].length;
1359
+ return new Indent(value, length);
1360
+ }
1361
+ }
1362
+ }
1363
+ class Indent {
1364
+ constructor(value, length) {
1365
+ this.value = value;
1366
+ this.length = length;
1367
+ }
1368
+ }
1369
+ const chrome$1 = "# Viewer chrome: buttons, panel headers, and other UI the reader interacts\n# with. Rendered on the main thread and selected by `uiLocale`.\n#\n# Message ids are lower-kebab-case Fluent identifiers, optionally with a\n# single `.attribute` suffix (`submit-button`, `answer-status.correct`).\n#\n# This catalog is the source of truth for every other locale: `lint:i18n`\n# rejects a translation that defines a key missing here. Run\n# `npm run codegen -w @doenet/i18n` after editing.\n\n\n## Answer submission — the check-work button and the status it reports.\n\nanswer-checking = Checking...\nanswer-submitting = Submitting...\n\n# Announced to a screen reader while the submission is in flight. Separate\n# from the button's own text, which is abbreviated.\nanswer-checking-status = Checking answer\nanswer-submitting-status = Submitting answer\n\nanswer-correct = Correct\nanswer-incorrect = Incorrect\n\n# Shown instead of a correctness verdict when the activity withholds\n# correctness: the response was recorded, nothing is claimed about it.\nanswer-response-saved = Response Saved\n\n# Partial credit. `-credit` is used when repeated attempts reduce the credit\n# available, `-correct` when they do not, and `-short` on a button too narrow\n# for a word.\nanswer-percent-credit = { $percent }% Credit\nanswer-percent-correct = { $percent }% Correct\nanswer-percent-short = { $percent } %\n\nmax-credit-available = Max credit available: { $percent }%\n\n# Fluent formats `{ $count }` with `Intl.NumberFormat`, so a four-digit\n# attempt count renders as \"1,000\" where the hand-built string said \"1000\".\n# That is the one place English output is not byte-identical to what this\n# replaced, and grouping is the locale-correct rendering, so it stands.\nattempts-remaining =\n { $count ->\n [0] no attempts remaining\n [one] { $count } attempt remaining\n *[other] { $count } attempts remaining\n }\n\n# Appended to an input's accessible name once its response has been graded,\n# so a screen reader reports the verdict along with the field.\nvalidation-correct = (Correct)\nvalidation-incorrect = (Incorrect)\nvalidation-partially-correct = (Partially correct)\n\n# Tooltip on the badge that reports how many responses have been submitted to\n# one answer, shown only to a host that asked for it. `$answerId` is the\n# answer's authored name and is never translated.\nanswer-show-responses =\n { $count ->\n [one] Show { $count } response to { $answerId }\n *[other] Show { $count } responses to { $answerId }\n }\n\n\n## Disclosure panels\n\nfeedback-heading = Feedback\n\n# Follows a disclosure panel's own heading — \"Solution (click to open)\" — and\n# is shared by `<solution>`, `<hint>`, and a collapsible `<section>`. The whole\n# parenthetical is one message: where the word for open or close falls inside\n# it is the translator's business.\ncollapsible-click-to-open = (click to open)\ncollapsible-click-to-close = (click to close)\n\n# Placeholder inside a panel that has been opened before its contents have\n# arrived from the core. Shared by `<solution>` and a collapsible `<section>`.\ncollapsible-initializing = Initializing...\n\n# Tooltip on a footnote marker, naming what activating it will do.\nfootnote-show = Show footnote\nfootnote-hide = Hide footnote\n\n# Tooltip on the ⓘ affordance that reveals an input's description.\ndescription-more-information = more information\n\n\n## Controls\n\nslider-previous = Prev\nslider-next = Next\n\nkeyboard-open = Open Keyboard\nkeyboard-close = Close Keyboard\n\n# Accessible names of a matrix input's size controls, whose visible labels are\n# the symbols `r-` `r+` `c-` `c+`.\nmatrix-remove-row = Remove row\nmatrix-add-row = Add row\nmatrix-remove-column = Remove column\nmatrix-add-column = Add column\n\n# Modes and actions of the subset-of-reals input's control strip. The button\n# that selects all of the reals is the symbol `R`, not a word, and stays in\n# place.\nsubset-add-remove-points = Add/Remove points\nsubset-toggle-points-intervals = Toggle points and intervals\nsubset-move-points = Move Points\nsubset-clear = Clear\n\n# Buttons that edit an orbital diagram: rows hold boxes, boxes hold up to\n# three spin arrows.\norbital-add-row = Add Row\norbital-remove-row = Remove Row\norbital-add-box = Add Box\norbital-remove-box = Remove Box\norbital-add-up-arrow = Add Up Arrow\norbital-add-down-arrow = Add Down Arrow\norbital-remove-arrow = Remove Arrow\n\n# Accessible name of the text field naming one row of an orbital diagram,\n# counting from 1.\norbital-row-label = Label for row { $row }\n\n# Labels the answer column of a pretzel exercise's grid.\npretzel-answer = Answer\n\n# Caption above the table a `<summaryStatistics>` renders. `$column` is the\n# authored name of the data column being summarized and is never translated.\n# The table's own headings (`mean`, `stdev`, `quartile1`, …) are the statistic\n# ids an author references, not prose, and stay in place.\nsummary-statistics-caption = Summary statistics of { $column }\n\n\n## Math input\n\n# Accessible name of the popover that previews the typed expression, and of\n# the rendered expression inside it.\nmath-input-preview-region = math expression preview\nmath-input-preview = Preview\nmath-input-invalid-expression = Invalid expression:\n\n\n## Document status\n\n# Shown while the core is still starting up and nothing can be rendered yet.\nviewer-initializing = Initializing...\n\n\n## Errors\n\n# Prefixes an error message wherever one is shown in place of content: an\n# `<error>` the core reported, the error boundary's fallback, and the\n# placeholder left where a renderer chunk failed to load.\nerror-heading = Error\n\n# Banner above a document that compiled with at least one error in it.\ndocument-contains-errors = This document contains errors!\n\n# Shown in place of the document when a renderer threw and the error boundary\n# caught it.\nsomething-went-wrong = Something went wrong.\n\n# Shown in place of a single renderer whose code chunk never arrived.\nrenderer-load-failed = a renderer failed to load. Please reload the page.\n\n# Shown in place of the document when the core worker could not be started\n# after retries, rather than leaving the pane blank.\ncore-start-failed = The document viewer could not be started. Please reload the page.\n";
1370
+ const content = '# Worker-generated content: style descriptions ("thick red line"), boolean\n# words, and other prose the core computes into the document. Selected by\n# `documentLocale`, which follows the content\'s language rather than the\n# reader\'s UI language.\n#\n# Message ids are lower-kebab-case Fluent identifiers, optionally with a\n# single `.attribute` suffix (`color.blue`, `noun.line-segment`).\n\n\n## Style vocabulary\n##\n## The words the style pipeline derives from a component\'s numeric and\n## enumerated style values. A word an author writes directly — `lineColorWord`,\n## `markerStyleWord`, and their siblings — passes through untranslated: the\n## author chose those words, and rewriting them would be a surprise. So does a\n## CSS named color asked for by name ("rebeccapurple"), which\n## `resolveColorWord` deliberately preserves.\n##\n## Every adjective here is handed `$gender`, the grammatical gender of the noun\n## it describes (see `noun-gender`). English has no agreement and ignores it; a\n## language that inflects selects on it.\n\n# The canonical color families a color value resolves to.\ncolor =\n .black = black\n .white = white\n .gray = gray\n .red = red\n .orange = orange\n .yellow = yellow\n .green = green\n .cyan = cyan\n .blue = blue\n .purple = purple\n .pink = pink\n .brown = brown\n\n# Stroke widths. Only the extremes are named — a middling width is described by\n# its color alone.\nline-width =\n .thick = thick\n .thin = thin\n\n# Dash patterns. A solid stroke is described by its color alone.\nline-style =\n .dashed = dashed\n .dotted = dotted\n\n# Patterns a shape\'s interior can be filled with. A solid fill is described by\n# its color alone.\nfill-style =\n .horizontal = horizontal lines\n .vertical = vertical lines\n .diagonal = diagonal lines\n .backdiagonal = reverse diagonal lines\n .dots = dots\n .diamonds = diamonds\n\n# The things being described. The shapes a point can be drawn as ("square",\n# "cross") are nouns too: a point\'s description names its marker shape rather\n# than always saying "point".\nnoun =\n .line = line\n .line-segment = line segment\n .ray = ray\n .vector = vector\n .curve = curve\n .function = function\n .parabola = parabola\n .polyline = polyline\n .polygon = polygon\n .triangle = triangle\n .rectangle = rectangle\n .circle = circle\n .region = region\n .point = point\n .square = square\n .diamond = diamond\n .cross = cross\n .plus = plus\n\n# A regular polygon names its side count, so it is a message of its own rather\n# than one of `noun`\'s attributes.\n#\n# `$part` splits the noun where a language needs it split: `head` is the word\n# the adjectives attach to, `tail` a complement that follows them. English\n# folds the side count into the head and has no tail; Spanish says "polígono\n# regular" and puts "de 5 lados" after the adjectives, so that they stay beside\n# the noun they agree with. `style-with-noun` and `style-filled-with-noun`\n# place the two halves.\n#\n# `$numSides` is a real number, so it is formatted by the locale\'s own rules —\n# a 1000-gon reads "1,000-sided" here and "de 1000 lados" in Spanish. That is\n# the number-formatting policy in the README, and the one place a description\n# is not character-for-character what the pre-catalog code produced.\nnoun-regular-polygon =\n { $part ->\n [tail] { "" }\n *[head] { $numSides }-sided regular polygon\n }\n\n# The grammatical gender of the noun being described, passed to every adjective\n# describing it so that translations can agree. English has no grammatical\n# gender, so every noun answers the same and the answer goes unused.\n#\n# `$noun` is one of `noun`\'s attribute names, `regular-polygon` for the shape\n# `noun-regular-polygon` names, or the head of a phrase the description builds\n# without naming it as a noun: `border`, `fill`, `text`, or `background`. A\n# word this message does not list falls to its default gender — which is also\n# what an author\'s own `markerStyleWord` gets, since the catalog has never seen\n# it.\nnoun-gender = neuter\n\n\n## Style composition\n##\n## `$parts` names which pieces the style actually supplies, so that a\n## translation can order and inflect each combination on its own terms instead\n## of substituting into a fixed English frame. An absent piece is a different\n## branch, never an empty placeable.\n\n# The adjectives describing a stroke: its width, its dash pattern, and its\n# color. Also describes a shape\'s border, where the color is dropped when it\n# matches the fill it surrounds.\nstyle-stroke =\n { $parts ->\n [width-style-color] { $width } { $lineStyle } { $color }\n [width-color] { $width } { $color }\n [style-color] { $lineStyle } { $color }\n [width-style] { $width } { $lineStyle }\n [width] { $width }\n [style] { $lineStyle }\n *[color] { $color }\n }\n\n# A style description followed by what it describes: "thick red line".\n#\n# `$nounTail` is the noun\'s trailing complement, for the nouns whose\n# translation splits around the adjectives (see `noun-regular-polygon`).\n# English has none today, so it only ever selects `noun` for itself — the other\n# variant is still what a partly-translated locale falls back to, and dropping\n# it would drop that locale\'s side count.\nstyle-with-noun =\n { $parts ->\n [noun-tail] { $description } { $noun } { $nounTail }\n *[noun] { $description } { $noun }\n }\n\n# The word marking a shape as filled.\n#\n# A key of its own, looked up by the code and handed to the messages below as\n# `$filled`, rather than literal text inside them: a language that inflects it\n# has to agree it with the shape. Referencing it from those messages would not\n# do — a term reference (`{ -filled }`) gets an empty scope and never sees\n# `$gender`, and a message reference resolves only inside its own bundle, so a\n# locale that translated `style-filled` but not this word would render the\n# reference literally instead of falling back to English.\nstyle-filled-word = filled\n\n# A filled shape, and the pattern its interior is drawn with, if any.\nstyle-filled =\n { $parts ->\n [pattern] { $filled } { $color } with { $pattern }\n *[plain] { $filled } { $color }\n }\n\n# The same, naming the shape: "filled blue circle with diamonds".\n#\n# The `-tail` variants carry the noun\'s trailing complement, as\n# `style-with-noun` does.\nstyle-filled-with-noun =\n { $parts ->\n [pattern] { $filled } { $color } { $noun } with { $pattern }\n [plain-tail] { $filled } { $color } { $noun } { $nounTail }\n [pattern-tail] { $filled } { $color } { $noun } { $nounTail } with { $pattern }\n *[plain] { $filled } { $color } { $noun }\n }\n\n# The border clause appended to a filled shape: "with a thick red border".\n#\n# `$parts` carries two distinctions English cares about: whether a fill pattern\n# was already mentioned, which makes this a further clause ("and") rather than\n# the first ("with"), and whether the surrounding description named the shape,\n# which is where English wants an article.\nstyle-border-clause =\n { $parts ->\n [with-article] with a { $border } border\n [and] and { $border } border\n [and-article] and a { $border } border\n *[with] with { $border } border\n }\n\n# How a shape\'s interior is filled, on its own: "blue diamonds".\nstyle-fill =\n { $parts ->\n [pattern] { $color } { $pattern }\n *[plain] { $color }\n }\n\nstyle-unfilled = unfilled\n\n# How a piece of text is styled: its color, and the background behind it.\nstyle-text =\n { $parts ->\n [background] { $color } with a { $background } background\n *[plain] { $color }\n }\n\n# What `backgroundColor` answers when nothing is drawn behind the text.\nstyle-background-none = none\n';
1371
+ const diagnostics = '# Errors and warnings surfaced to the reader or author. Produced by the worker\n# but addressed to whoever is looking at the screen, so these are selected by\n# `uiLocale`, not `documentLocale`.\n#\n# Message ids are lower-kebab-case Fluent identifiers, optionally with a\n# single `.attribute` suffix (`invalid-attribute-value`).\n#\n# Reached by stable diagnostic code rather than by a literal `t("key")` call:\n# `DIAGNOSTIC_CODES` in `src/diagnostics.ts` maps `doenet-w0001` to the id\n# below, and `lint:i18n` treats that registry as the call site. Adding a\n# message here without registering a code for it fails the lint as an orphan.\n#\n# Translators: `through`, `endpoint`, `midpointOffset`, `numDimensions` and the\n# like are DoenetML attribute names. They are part of the language, not prose,\n# and must be left in English exactly as written.\n\n## `<lineSegment>`\n\n# $attributes is a list of attribute names; $attributesCount is its length.\nline-segment-attributes-ignored-with-endpoints =\n { $attributesCount ->\n [one] { $attributes } is ignored when two endpoints are specified\n *[other] { $attributes } are ignored when two endpoints are specified\n }\n\n# $attributes is a list of attribute names; $attributesCount is its length.\nline-segment-attributes-ignored-with-endpoint-and-midpoint =\n { $attributesCount ->\n [one] { $attributes } is ignored when an endpoint and a midpoint are both specified\n *[other] { $attributes } are ignored when an endpoint and a midpoint are both specified\n }\n\nline-segment-midpoint-offset-without-midpoint = midpointOffset has no effect without a midpoint\n\n## `<line>`\n\nline-points-undetermined-dimensions = Line through points of undetermined dimensions.\n\nline-points-too-few-dimensions = Line must be through points of at least two dimensions.\n\n# $variables is a bare enumeration of variable names, not an "and" list.\nline-points-depend-on-variables = Line is through points that depend on variables: { $variables }.\n\nline-equation-invalid-format = Invalid format for equation of line in variables { $variable1 } and { $variable2 }.\n\n## `<ray>`\n\nray-overprescribed-through = Ray is prescribed by through, endpoint, and direction. Ignoring specified through.\n\nray-dimension-mismatch = numDimensions mismatch in ray.\n\n## `<vector>`\n\nvector-overprescribed-head = Vector is prescribed by head, tail, and displacement. Ignoring specified head.\n\nvector-dimension-mismatch = numDimensions mismatch in vector.\n\n## Attracting and constraining\n\n# $component is the DoenetML tag of the child that was named, e.g. "polygon".\nattract-to-without-nearest-point = Cannot attract to a `<{ $component }>` as it doesn\'t have a nearestPoint state variable.\n\nconstrain-to-without-nearest-point = Cannot constrain to a `<{ $component }>` as it doesn\'t have a nearestPoint state variable.\n\nconstrain-to-interior-without-nearest-point = Cannot constrain to interior of a `<{ $component }>` as it doesn\'t have a nearestPoint state variable.\n\n## `<choiceInput>`\n\n# Translators: `labelPosition` is an attribute name and stays in English.\nchoice-input-label-position-ignored = labelPosition is ignored for non-inline choiceInput\n\n## Ordering children by index\n##\n## These name the component in prose rather than as a tag, matching how the\n## messages have always read. The component names stay in English; the nouns\n## around them are prose and should be translated.\n\nchoice-input-indices-count-mismatch = Ignoring indices specified for choiceInput as number of indices doesn\'t match number of choice children.\n\npretzel-indices-count-mismatch = Ignoring indices specified for problem as number of indices doesn\'t match number of problem children.\n\nshuffle-indices-count-mismatch = Ignoring indices specified for shuffle as number of indices doesn\'t match number of components.\n\n# $component is `choiceInput`, `pretzel` or `shuffle` — a DoenetML component\n# name, so it stays in English.\nindices-ignored-out-of-range = Ignoring indices specified for { $component } as some indices out of range.\n\npretzel-indices-repeated = Ignoring indices specified for pretzel as some indices are repeated.\n\npretzel-circuit-first-index = Ignoring indices specified for pretzel in circuit mode as the first index must be 1.\n\n## `<shuffle>` and `<sort>`\n\n# $component is `shuffle` or `sort`. These two components accept the same\n# children and fail the same ways, so they share their messages.\nstring-children-need-type = For `<{ $component }>` to work with string children, a `type` attribute must be specified.\n\n# $type is what the author wrote; math, text, number and boolean are attribute\n# values and stay in English.\ninvalid-type-defaulting-to-math = Invalid type { $type } for { $component } component. Must be one of math, text, number, or boolean. Defaulting to math.\n\n# $value is the string child that could not be used.\nstring-not-valid-component-to-arrange = String "{ $value }" is not a valid component to { $component }. Ignoring.\n\n## Types and variables\n\ninvalid-type-defaulting-to-number = Invalid type { $type }, setting type to number.\n\ninvalid-variable-value = Invalid value of a variable: `{ $value }`\n\n## Variants\n\n# $index is what the author wrote, reproduced verbatim rather than as a number:\n# it reached this message precisely because it was not one.\nvariant-index-must-be-number = Variant index { $index } must be a number\n\nvariant-index-must-be-integer = Variant index { $index } must be an integer\n\n## `<sideBySide>`\n\n# $component is `sideBySide` or `sbsGroup`.\nside-by-side-absolute-widths = `<{ $component }>` is not implemented for absolute measurements. Setting widths to relative.\n\nside-by-side-absolute-margins = `<{ $component }>` is not implemented for absolute measurements. Setting margins to relative.\n\nside-by-side-no-block-child = Invalid `<{ $component }>`: it must have at least one block child.\n\n## `<label>`\n\n# Translators: `for` is an attribute name and stays in English.\nlabel-for-ignored-on-graphical = The `for` attribute on graphical `<label>` is ignored.\n\nlabel-for-must-resolve-to-one = The `for` attribute on `<label>` must resolve to exactly one component.\n\nlabel-for-unresolved = The `for` attribute on `<label>` could not be resolved to a component.\n\nlabel-for-answer-with-authored-inputs = The `for` attribute on `<label>` references an `<answer>` with explicitly authored inputs; reference the input directly.\n\nlabel-for-answer-without-input = The `for` attribute on `<label>` references an `<answer>` without an input to label.\n\nlabel-for-must-reference-input-or-answer = The `for` attribute on `<label>` must reference an input or an answer.\n\n## Accessibility\n\n# $component is a DoenetML tag, e.g. "graph" or "image".\naccessibility-short-description-or-decorative = For accessibility, `<{ $component }>` must either have a short description or be specified as decorative.\n\naccessibility-video-short-description = For accessibility, `<video>` must have a short description.\n\naccessibility-input-short-description-or-label = For accessibility, `<{ $component }>` must have a short description or a label.\n\n# The companion to the message above, for the input an `<answer>` creates on the\n# author\'s behalf. Two messages rather than one with the subject passed in: the\n# subject is a phrase here, not a name, and a phrase handed over as an argument\n# would never reach a translator.\naccessibility-answer-input-short-description-or-label = For accessibility, an `<answer>` creating an input must have a short description or a label.\n\naccessibility-short-description-contains-math = Short descriptions should not contain math components such as `<{ $component }>`. Spell out any math with words.\n\n# $colorName is an attribute name and stays in English. $ratio and $threshold\n# are contrast ratios; $mode says which theme the shortfall was measured in,\n# and is `dark` or `light`.\naccessibility-section-title-insufficient-contrast =\n { $mode ->\n [dark] { $colorName } has insufficient contrast for the section heading text (dark mode) ({ NUMBER($ratio, minimumFractionDigits: 2, maximumFractionDigits: 2) }:1; requires at least { $threshold }:1).\n *[other] { $colorName } has insufficient contrast for the section heading text ({ NUMBER($ratio, minimumFractionDigits: 2, maximumFractionDigits: 2) }:1; requires at least { $threshold }:1).\n }\n\n## `<circle>`\n\n# $count is the number of through points.\ncircle-through-points-non-numerical = Haven\'t implemented `<circle>` through { $count } points in case where the points don\'t have numerical values.\n\ncircle-too-many-through-points = Cannot calculate circle through more than 3 points.\n\ncircle-overprescribed-radius-center-points = Cannot calculate circle with specified radius, center and through points.\n\ncircle-center-with-multiple-points = Cannot calculate circle with specified center through more than 1 point.\n\n# $distance and $radius arrive as strings, not numbers: $radius is the author\'s\n# own value echoed back for diagnosis, and formatting it as a quantity would\n# round a radius of 0.0001 away to 0.\ncircle-radius-too-small = Cannot calculate circle: given that the distance between the two points is { $distance }, the specified radius { $radius } is too small.\n\ncircle-radius-with-many-points = Cannot create circle through more than two points with a specified radius.\n\ncircle-invalid-center-or-through-points = Invalid center or through points of circle.\n\ncircle-radius-center-with-multiple-points = Cannot calculate radius of circle with specified center through more than 1 point.\n\ncircle-change-radius-non-numerical = Cannot change radius of circle with non-numerical through points\n\ncircle-radius-with-points-non-numerical = Cannot create circle through more than one point with specified radius when don\'t have numerical values.\n\ncircle-change-center-non-numerical = Haven\'t implemented changing center of circle through points with non numerical values.\n\n## `<function>`\n\n# Two independent counts in one sentence, so the variants multiply out. A\n# select\'s variants each need their own line, so the inner one spans lines too;\n# that is safe because newlines inside a placeable never reach the rendered\n# value. Only text continuing onto a further line would.\nfunction-domain-insufficient-dimensions =\n { $intervals ->\n [one] Insufficient dimensions for domain for function. Domain has { $intervals } interval but the function has { $inputs ->\n [one] { $inputs } input\n *[other] { $inputs } inputs\n }.\n *[other] Insufficient dimensions for domain for function. Domain has { $intervals } intervals but the function has { $inputs ->\n [one] { $inputs } input\n *[other] { $inputs } inputs\n }.\n }\n\nfunction-domain-invalid-format = Invalid format for domain for function.\n\n# $type is what was being read off the point. It selects the wording rather\n# than being substituted into it: "maximum", "slope" and the rest are English\n# nouns, and a noun handed over as an argument would never reach a translator.\n# The catch-all reproduces the pre-catalog behavior for a value not listed here.\nfunction-ignoring-non-numerical =\n { $type ->\n [maximum] Ignoring non-numerical maximum of function.\n [minimum] Ignoring non-numerical minimum of function.\n [extremum] Ignoring non-numerical extremum of function.\n [point] Ignoring non-numerical point of function.\n [slope] Ignoring non-numerical slope of function.\n *[other] Ignoring non-numerical { $type } of function.\n }\n\nfunction-ignoring-empty =\n { $type ->\n [maximum] Ignoring empty maximum of function.\n [minimum] Ignoring empty minimum of function.\n [extremum] Ignoring empty extremum of function.\n [point] Ignoring empty point of function.\n *[other] Ignoring empty { $type } of function.\n }\n\nfunction-points-too-close = Function contains two points with locations too close together. Can\'t define function.\n\nfunction-iterates-input-output-mismatch =\n { $inputs ->\n [one] Function iterates are possible only if the number of inputs of the function is equal to the number of outputs. This function has { $inputs } input and { $outputs ->\n [one] { $outputs } output\n *[other] { $outputs } outputs\n }.\n *[other] Function iterates are possible only if the number of inputs of the function is equal to the number of outputs. This function has { $inputs } inputs and { $outputs ->\n [one] { $outputs } output\n *[other] { $outputs } outputs\n }.\n }\n\n## `<sequence>`\n\nsequence-invalid-length = Invalid length of sequence. Must be a non-negative integer.\n\n# $type is a sequence type: number, letters, or math.\nsequence-invalid-step = Invalid step of sequence. Must be a number for sequence of type { $type }.\n\n# $attribute is `from` or `to` — an attribute name, so it stays in English.\nsequence-invalid-endpoint-number = Invalid "{ $attribute }" of number sequence. Must be a number.\n\nsequence-invalid-endpoint-letters = Invalid "{ $attribute }" of letters sequence. Must be a letter combination.\n\nsequence-invalid-endpoint = Invalid "{ $attribute }" of sequence.\n\nselect-from-sequence-coprime-not-numbers = coprime ignored since not selecting numbers\n\nselect-from-sequence-coprime-with-exclude-combinations = coprime ignored since excludeCombinations specified\n\n## Resolving a `target`\n##\n## Raised by the components that take a `target` attribute. They resolve it\n## through the same code and fail the same two ways, so they share these two\n## messages rather than spelling each one out per component: $source is the tag\n## of the component that raised it, part of the DoenetML language, so it stays\n## in English.\n\ntarget-not-found = Invalid target for `<{ $source }>`: cannot find target.\n\n# $property is the state variable that was looked for; $component is the tag it\n# was looked for on.\ntarget-state-variable-not-found = Invalid target for `<{ $source }>`: cannot find a state variable named "{ $property }" on a `<{ $component }>`.\n\n## `<odeSystem>`\n\node-system-variables-match-independent = Variables of `<odeSystem>` must be different than independent variable.\n\node-system-duplicate-variable-names = Can\'t define ODE RHS functions with duplicate dependent variable names.\n\node-system-rhs-function-error = Cannot define ODE RHS function. Error creating mathjs function.\n\n## `<angle>`, `<parabola>`, and `<intersection>`\n\n# $count is how many line children were found.\nangle-too-many-lines = Cannot define an angle between { $count } lines\n\nangle-invalid-through-point = Invalid point in through of `<angle>`\n\nparabola-vertex-too-many-points = Haven\'t implemented parabola with vertex through more than 1 point.\n\nparabola-too-many-points = Haven\'t implemented parabola through more than 3 points.\n\nintersection-too-many-items = Haven\'t implemented intersection for more than two items\n\n## Other math components\n\nionic-compound-not-two-ions = Have not implemented ionic compound for anything other than two ions.\n\nionic-compound-needs-cation-and-anion = Ionic compound implemented only for one cation and one anion.\n\n# $equation is the equation as the author wrote it.\nsolve-equations-cannot-evaluate = Cannot solve equation as could not evaluate equation: { $equation }\n\n# Translators: `operandNumber` is an attribute name and stays in English.\nmath-operators-operand-number-required = Must specify a operandNumber when extracting a math operand.\n\neigen-decomposition-failed = Could not calculate eigenvalues of matrix\n\n## PreFigure renderer\n\n# Translators: xLabelPosition, yLabelPosition and their values are attribute\n# names and stay in English, as does the renderer\'s name.\nprefigure-x-label-position-unsupported = `<graph>`: xLabelPosition="left" is not supported in prefigure renderer; using right-position behavior.\n\nprefigure-y-label-position-unsupported = `<graph>`: yLabelPosition="bottom" is not supported in prefigure renderer; using top-position behavior.\n\nprefigure-invalid-axis-bounds = `<graph>`: invalid axis bounds for prefigure conversion; using default bbox (-10,-10,10,10).\n\nprefigure-invalid-width = `<graph>`: invalid width for prefigure conversion; using default diagram width 425.\n\nprefigure-invalid-aspect-ratio = `<graph>`: invalid aspectRatio for prefigure conversion; using default aspect ratio 1.\n\nprefigure-annotations-not-rendered = `<graph>`: annotations will not be rendered when not using the PreFigure renderer.\n\nmultiple-annotations-children = Multiple `<annotations>` children found in `<graph>`; all but the last one are ignored.\n\n## Referring to other components\n##\n## `<updateValue>`\'s own "cannot find target" messages are not here: it\n## resolves a target the same way `<animateFromSequence>` does and fails the\n## same ways, so the two share `target-not-found` and\n## `target-state-variable-not-found` above.\n\ncopy-unrecognized-component-type = Cannot extend or copy an unrecognized component type: { $type }.\n\ncopy-prop-not-found = Could not find prop { $property } on a component of type { $component }\n\ncollect-no-source = No source found for collect.\n\ncollect-invalid-component-type = Cannot collect components of type `<{ $component }>` as it is an invalid component type.\n\n# $reference is the reference exactly as the author wrote it, `$` and all —\n# the `$p.styleDescription[1]` of `<text extend="$p.styleDescription[1]" />`.\n# An index only means something applied to an array, and the thing named here\n# is not one. The reference is quoted back rather than explained because the\n# text in front of the author is the only part of this they can act on: the\n# state variable and component index the core knows about are its own business\n# and go to the console instead.\nreference-index-unavailable = Cannot reference index `{ $reference }`\n\n## `<callAction>`\n\n# $action is the `actionName` the author asked for, part of the DoenetML\n# language, so it stays in English. $reference is the `target` as written.\ncomponent-action-unavailable = Cannot call { $action } on component `{ $reference }`\n\n## `<dataFrame>`\n\n# $componentIdx is an internal index, passed as a string so it is not grouped\n# like a quantity; the odd spacing before the colon is reproduced from the\n# original message.\ndata-frame-inconsistent-row-lengths = Data has invalid shape. Rows has inconsistent lengths. Found in componentIdx :{ $componentIdx }\n\ndata-frame-duplicate-column-names = Data has duplicate column names. Found in componentIdx :{ $componentIdx }\n\ndata-frame-missing-column-name = Data is missing a column name. Found in componentIdx :{ $componentIdx }\n\n## `<answer>` and scoring\n\nanswer-award-depends-on-own-response = An award for this answer is based on the answer tag\'s own submitted response, which will lead to unexpected behavior.\n\n# Translators: maxNumAttempts and sectionWideCheckWork are attribute names.\nanswer-max-num-attempts-in-section-wide-check-work = Setting `maxNumAttempts` on an `<answer>` inside a container with `sectionWideCheckWork` has no effect, as the number of attempts is controlled by the container. Set `maxNumAttempts` on the container instead.\n\nnested-section-wide-check-work-max-num-attempts = Setting `maxNumAttempts` on a container with `sectionWideCheckWork` that is inside another container with `sectionWideCheckWork` has no effect, as the number of attempts is controlled by the outer container. Set `maxNumAttempts` on the outer container instead.\n\n# $attributes is a list of attribute names; $attributesCount is its length.\nanswer-attributes-need-symbolic-equality =\n { $attributesCount ->\n [one] The { $attributes } attribute will have no effect without symbolicEquality set.\n *[other] The { $attributes } attributes will have no effect without symbolicEquality set.\n }\n\nanswer-invalid-type = Invalid type for answer: { $type }\n\n## `<module>`, `<conditionalContent>`, `<slider>`, `<pretzel>`\n\nmodule-attribute-child-needs-name = Since the component `<{ $component }>` does not have a name, it cannot be used for a module attribute\n\nmodule-attribute-name-already-defined = The component `<{ $component } name="{ $name }">` cannot be used as an attribute for a module because the `<module>` component type already has a "{ $name }" attribute defined.\n\nconditional-content-condition-ignored = Attribute `condition` is ignored on a `<conditionalContent>` component with case or else children.\n\nslider-markers-type-mismatch = Markers type doesn\'t match slider type.\n\npretzel-problem-needs-statement-and-answer = Invalid pretzel: each `<problem>` must contain one `<statement>` and one `<answer>`.\n\npretzel-circuit-first-problem-distractor = Invalid pretzel: in mode="circuit", the first `<problem>` cannot be a distractor.\n\n## Attribute values\n\n# $values is a list of the values that were rejected, each already in\n# backticks; $valuesCount is how many there were.\nattribute-invalid-values =\n { $valuesCount ->\n [one] Invalid value { $values } for attribute `{ $attribute }`; ignoring.\n *[other] Invalid values { $values } for attribute `{ $attribute }`; ignoring.\n }\n\nattribute-must-be-references = Invalid value `{ $value }` for attribute `{ $attribute }`. Attribute must be composed of references that begin with a `$`.\n\n# $names is a list of the rejected names, each already in single quotes.\nmath-input-invalid-function-names = <mathInput>: ignored invalid function name(s) in { $attribute }: { $names }. Each name\'s display segment must be at least 2 characters (letters or dashes); an optional `|<mathspeak alternative>` suffix may follow.\n\n## Building components from the source\n\n# Raised while the source is being turned into components, by throwing rather\n# than by building a record: the thrower is caught, the component becomes an\n# `_error`, and the diagnostic is re-raised from it.\n\ncomponent-type-invalid = Invalid component type: `<{ $componentType }>`\n\nattribute-repeated = Cannot repeat attribute { $attribute }.\n\nattribute-invalid-for-component = Invalid attribute "{ $attribute }" for a component of type `<{ $componentType }>`.\n\n## Style definition contrast\n\n# $context names the pair being compared, $mode which colour scheme it was\n# rendered in. Both are symbolic — the phrase is chosen here so a translator\n# can rewrite it, rather than being handed over already in English.\nstyle-definition-insufficient-contrast =\n Style definition { $styleNumber } has insufficient contrast for { $context ->\n [text-on-background] text color against background color\n [high-contrast] high-contrast color against the canvas\n [line] line color against the canvas\n [marker] marker color against the canvas\n *[text-on-canvas] text color against the canvas\n }{ $mode ->\n [dark] { " (dark mode)" }\n *[light] { "" }\n } ({ NUMBER($ratio, minimumFractionDigits: 2, maximumFractionDigits: 2) }:1; requires at least { $threshold }:1).\n\n# $suggestion says whether a concrete replacement colour could be computed.\n# The attribute names and colour values in the `available` branch are\n# DoenetML source, not prose, and stay as they are in every language.\nstyle-definition-dark-mode-text-background-contrast =\n Although style definition { $styleNumber } has specified colors that provide sufficient contrast for light mode, the dark-mode colors derived from these values have insufficient contrast for the text color against the background color ({ NUMBER($ratio, minimumFractionDigits: 2, maximumFractionDigits: 2) }:1; requires at least { $threshold }:1). { $suggestion ->\n [available] To ensure sufficient contrast in dark mode, either increase the light-mode contrast (e.g., set { $lightAttribute }="{ $lightColor }") or override the dark-mode color (e.g., set { $darkAttribute }="{ $darkColor }").\n *[none] To ensure sufficient contrast in dark mode, increase the light-mode contrast or override the derived colors with textColorDarkMode and/or backgroundColorDarkMode.\n }\n\nstyle-definition-dark-mode-text-canvas-contrast =\n Although style definition { $styleNumber } has a specified text color that provides sufficient contrast for light mode, the dark-mode text color derived from this value has insufficient contrast against the canvas ({ NUMBER($ratio, minimumFractionDigits: 2, maximumFractionDigits: 2) }:1; requires at least { $threshold }:1). { $suggestion ->\n [available] To ensure sufficient contrast in dark mode, either increase the light-mode contrast (e.g., set textColor="{ $lightColor }") or override the dark-mode color (e.g., set textColorDarkMode="{ $darkColor }").\n *[none] To ensure sufficient contrast in dark mode, increase the light-mode contrast or override the derived color with textColorDarkMode.\n }\n\nsection-multiple-style-palettes = A section can select only one <stylePalette>; using the last one.\n\n## Unique variants\n\n# Explanations of why a component\'s unique variants could not be worked out.\n# $component is the tag that could not be analyzed and stays as written; the\n# reason is a separate message per situation, so a host can tell them apart by\n# code and a translator sees a whole sentence rather than a fragment.\n\nvariant-num-to-select-not-non-negative-integer = cannot determine unique variants of { $component } as numToSelect isn\'t a non-negative integer.\n\nvariant-num-to-select-not-constant-number = cannot determine unique variants of { $component } as numToSelect isn\'t constant number.\n\nvariant-with-replacement-not-constant-boolean = cannot determine unique variants of { $component } as withReplacement isn\'t constant boolean.\n\nvariant-select-weight-disables-unique = Unique variants for select disabled if have an option with selectWeight or selectForVariants specified\n\nvariant-coprime-undetermined = cannot determine unique variants of { $component } as cannot determine coprime is always false.\n\n# $attribute is an attribute name (`from`, `to`, `step`, `sort`, `length`) and\n# stays as written.\nvariant-attribute-not-constant = cannot determine unique variants of { $component } as { $attribute } isn\'t a constant.\n\nvariant-attribute-not-number = cannot determine unique variants of { $component } as { $attribute } isn\'t a number.\n\n# $type is the sequence type the component was declared with. $expected names\n# what the value had to be, symbolically, because which one applies depends on\n# both the type and the attribute.\nvariant-attribute-wrong-type-for-sequence =\n cannot determine unique variants of { $component } of { $type } type as { $attribute } isn\'t { $expected ->\n [letters-combination] a combination of letters\n [math-expression] a valid math expression\n [integer] an integer\n *[number] a number\n }.\n\nvariant-length-not-integer = cannot determine unique variants of { $component } as length isn\'t an integer.\n\nvariant-sort-not-implemented = have not implemented unique variants of a { $component } with sort\n\nvariant-exclude-combinations-not-implemented = have not implemented unique variants of a { $component } with excludeCombinations\n\nvariant-math-exclude-not-implemented = have not implemented unique variants of a { $component } of type math with exclude\n\nvariant-non-constant-exclude-not-implemented = have not implemented unique variants of a { $component } with non-constant exclude\n\n## PreFigure conversion\n\n# $subject identifies the component the warning is about, already written as\n# `<tag>` or `<tag> (name)`. It is composed in code rather than here because\n# Fluent terms cannot take a variable as an argument, so a shared subject\n# fragment cannot be parameterized from the catalog. It holds only a tag name,\n# a component name and punctuation — never a word — which is why a descendant\n# with no type reads `<?>` rather than `<unknown>`.\n\nprefigure-descendant-unsupported = { $subject }: unsupported in graph prefigure renderer; descendant skipped.\n\nprefigure-descendant-invalid-geometry = { $subject }: non-finite or incomplete geometry; descendant skipped.\n\nprefigure-curve-label-omitted = { $subject }: labels are not supported on converted curve elements; label omitted.\n\nprefigure-curve-unsupported-definition-type = { $subject }: unsupported curve function definition type \'{ $definitionType }\'; descendant skipped.\n\nprefigure-region-flip-functions-unsupported = { $subject }: unsupported flipFunctions attribute on regionBetweenCurves; descendant skipped.\n\nprefigure-region-non-formula-child = { $subject }: only formula-typed child functions are supported on regionBetweenCurves; descendant skipped.\n\n# $labelKind says which family of object carried the label, since the advice\n# is the same but the object is not.\nprefigure-label-position-unsupported =\n { $subject }: unsupported labelPosition \'{ $labelPosition }\' for { $labelKind ->\n [line-family] line-family label\n *[point] point label\n }; default PreFigure alignment used.\n\nprefigure-fill-style-unsupported = { $subject }: fill style \'{ $fillStyle }\' is unsupported by PreFigure; falling back to a solid fill.\n\nprefigure-line-style-unknown = { $subject }: unknown line style \'{ $lineStyle }\' omitted from PreFigure output.\n\nprefigure-marker-style-mapped-to-diamond = { $subject }: marker style \'{ $markerStyle }\' mapped to PreFigure style \'diamond\'.\n\nprefigure-marker-style-unsupported = { $subject }: marker style \'{ $markerStyle }\' is unsupported by PreFigure; default style used.\n\n## PreFigure annotations\n\nannotation-ref-unresolvable = `<annotation>`: invalid `ref`; cannot resolve target. Annotation omitted.\n\nannotation-ref-multiple-targets = `<annotation>`: `ref` resolved to multiple targets; using the first target.\n\nannotation-ref-outside-graph = `<annotation>`: invalid `ref`; target is outside the containing graph. Annotation omitted.\n\nannotation-ref-unsupported-target = `<annotation>`: invalid `ref`; target is not a supported graphical object in prefigure conversion. Annotation omitted.\n\nannotation-text-missing = `<annotation>`: missing or empty `text`; emitting empty text.\n\n## Composites and references\n\n# $componentType is the type the composite was asked to create, when it is\n# known; `none` when the composite did not say.\ncomposite-circular-dependency =\n { $componentType ->\n [none] Circular dependency detected.\n *[other] Circular dependency detected involving `<{ $componentType }>` component.\n }\n\n# $reference is the reference as the author wrote it, already carrying its `$`.\nreference-no-referent = No referent found for reference: `{ $reference }`\n\nreference-multiple-referents = Multiple referents found for reference: `{ $reference }`\n\n## Children that do not match\n\nchildren-invalid-attribute-format = Invalid format for attribute { $attribute } of `<{ $componentType }>`.\n\n# $children is the list of child types that did not match, already joined.\nchildren-invalid = Invalid children for `<{ $componentType }>`: Found invalid children: { $children }\n\n## Falling back to a default\n\nattribute-value-invalid-using-default = Invalid value `{ $value }` for attribute `{ $attribute }`, using value `{ $default }`\n\n## Loading a DoenetML version\n\n# $fallback is the version that will be used instead, or `none` when the\n# embedding page named a standalone bundle of its own.\ndoenetml-version-not-found =\n { $fallback ->\n [none] DoenetML version { $version } not found.\n *[other] DoenetML version { $version } not found. Falling back to version { $fallback }\n }\n\n## Reading the DoenetML\n\n# The parser\'s own diagnostics: what the author sees before anything runs, and\n# for a beginner usually the first Doenet message they ever read.\n#\n# The parser writes its English beside the code rather than rendering it from\n# here, because `@doenet/parser` is inside the language-server bundle and a\n# catalog there is dead weight on the editor\'s critical path\n# (`packages/lsp/scripts/check-server-bundle.mjs` fails if one arrives). The\n# two copies are held together by a test in that package, which parses a\n# corpus and asserts every coded error renders to exactly what the parser\n# wrote — so a message edited here without its counterpart fails there.\n#\n# $tag, $value, $attribute and their relatives quote the author\'s own source\n# back at them and stay exactly as written. The `Invalid DoenetML: ` opening is\n# repeated in each message instead of being a shared term: a term a locale\n# forgets to define renders as its own name, and a prefix on fifteen messages\n# is not worth that failure mode.\n\nparse-invalid-doenetml = Invalid DoenetML: { $content }\n\nparse-tag-missing-close-tag = Invalid DoenetML: The tag `{ $tag }` has no closing tag. Expected a self-closing tag or a `</{ $tagName }>` tag.\n\nparse-tag-error = Invalid DoenetML: Error in tag `<{ $tagName }>`\n\nparse-attribute-missing-value = Invalid DoenetML: Invalid attribute `{ $attribute }` appears to be missing a value.\n\nparse-attribute-invalid = Invalid DoenetML: Invalid attribute `{ $attribute }`\n\nparse-attribute-value-invalid = Invalid DoenetML: Invalid attribute value `{ $value }`\n\n# $quote is the quote character that would balance the pair: `"` or `\'`.\nparse-attribute-value-quote-mismatch = Invalid DoenetML: Invalid attribute value `{ $value }`. The quote marks do not match. You appear to be missing a `{ $quote }`\n\nparse-open-tag-name-missing = Invalid DoenetML: Found a tag without a tag name, e.g. `<`\n\nparse-tag-not-closed = Invalid DoenetML: Tag `{ $tag }` was not closed (a `>` appears to be missing).\n\nparse-self-closing-tag-name-missing = Invalid DoenetML: Found a tag without a tag name `<{ $content }>`\n\nparse-self-closing-tag-not-closed = Invalid DoenetML: Tag `{ $tag }` was not closed (`/>` appears to be missing).\n\nparse-tag-invalid-attributes = Invalid DoenetML: Tag `{ $tag }` is not valid. It may have incorrect attributes.\n\nparse-close-tag-name-missing = Invalid DoenetML: Found a closing tag without a tag name, e.g. `</`\n\n# $attribute is the attribute name and $value the unquoted token that followed\n# it, shown reassembled the way the author should have written it.\nparse-attribute-value-unquoted = Attribute values must be enclosed in quotes: `{ $attribute }="{ $value }"`\n\nparse-close-tag-without-open-tag = Invalid DoenetML: Found closing tag `{ $tag }`, but no corresponding opening tag\n\nparse-close-tag-mismatched = Invalid DoenetML: Mismatched closing tag. Expected `</{ $expected }>`. Found `{ $found }`\n\n# The conversion\'s fall-through: the syntax tree held a node shape it has no\n# case for. Reaching an author means the grammar and the conversion have gone\n# out of step, which is a bug in Doenet rather than in their document — hence\n# `parser-` rather than the `parse-` of every message above, which is about\n# what the author wrote. They are still the one looking at it, so it is\n# translated like any other error. $node is the node\'s own name and stays as\n# it is.\nparser-node-unconvertible = Could not convert node { $node } to Dast node.\n\n## Names\n\n# $reason says which rule the name broke, as a key rather than a phrase, so the\n# whole sentence is translatable rather than assembled from two halves.\nname-attribute-invalid =\n Invalid attribute name=\'{ $name }\'. { $reason ->\n [characters] Names can contain only letters, numbers, underscores or hyphens.\n *[start] Names must start with a letter.\n }\n\ncomponent-name-invalid-start = Invalid component name "{ $name }". Names must start with a letter.\n\n## `<answer>` sugar\n\nanswer-video-watched-missing-video = Answer with type videoWatched must have a video attribute\n\nanswer-video-watched-video-not-reference = Answer with type videoWatched must have video attribute that is a reference\n\nanswer-name-not-single-text = Answer name attribute must have a single text child\n\n## Referencing another document\n\n# $attribute is the attribute the URI was written in (`copyFrom`, `extend`, …)\n# and stays as written; $uri is the author\'s own value.\n\nexternal-doenetml-recursion-limit = Unable to retrieve external DoenetML due to too many levels of recursion. Is there a circular reference?\n\nexternal-doenetml-unavailable = Unable to retrieve DoenetML from { $attribute }="{ $uri }"\n\nexternal-doenetml-type-mismatch = Invalid DoenetML retrieved from { $attribute }="{ $uri }": it did not match the component type "{ $componentType }"\n\n## Deprecated syntax\n\n# $from and $to are attribute names and $component a tag name; all three stay\n# as written. $component is `none` for a rename that applies to every component\n# accepting the attribute, where naming one would be wrong.\n#\n# The `[deprecation]` opening is a literal marker shared by all three messages,\n# not a word: leave it as it is.\n\ndeprecated-attribute-renamed =\n { $component ->\n [none] [deprecation] Attribute `{ $from }` is deprecated; use `{ $to }` instead.\n *[other] [deprecation] Attribute `{ $from }` on `<{ $component }>` is deprecated; use `{ $to }` instead.\n }\n\ndeprecated-attribute-renamed-conflict =\n { $component ->\n [none] [deprecation] Attribute `{ $from }` is deprecated and ignored because `{ $to }` is also specified.\n *[other] [deprecation] Attribute `{ $from }` on `<{ $component }>` is deprecated and ignored because `{ $to }` is also specified.\n }\n\ndeprecated-attribute-ignored = [deprecation] Attribute `{ $attribute }` on `<{ $component }>` is deprecated and ignored.\n';
1372
+ const editor = "# Editor and language-server surfaces: formatter labels, completion detail\n# text, hover help. Selected by `uiLocale`.\n#\n# Intentionally empty in i18n Phase 0 (#1515). A later phase moves the editor\n# strings into this file; note that the LSP ships bundled with its DoenetML\n# version, so these catalogs are version-correct rather than always-latest.\n#\n# Message ids are lower-kebab-case Fluent identifiers, optionally with a\n# single `.attribute` suffix (`format-document`).\n";
1373
+ const CATALOG_NAMESPACES = [
1374
+ "chrome",
1375
+ "content",
1376
+ "diagnostics",
1377
+ "editor"
1378
+ ];
1379
+ const WORKER_NAMESPACES = ["content"];
1380
+ const CHROME_NAMESPACES = [
1381
+ "chrome",
1382
+ "diagnostics"
1383
+ ];
1384
+ function combineCatalogs(catalogs) {
1385
+ return CATALOG_NAMESPACES.map((namespace) => catalogs[namespace]).filter((source) => source !== void 0).join("\n");
1386
+ }
1387
+ const DEFAULT_LOCALE = "en";
1388
+ const EN_CATALOGS = {
1389
+ chrome: chrome$1,
1390
+ content,
1391
+ diagnostics,
1392
+ editor
1393
+ };
1394
+ const EN_CATALOG_SOURCE = combineCatalogs(EN_CATALOGS);
1395
+ function lookupPattern(bundle, key) {
1396
+ const separator = key.indexOf(".");
1397
+ const id2 = separator === -1 ? key : key.slice(0, separator);
1398
+ const attribute = separator === -1 ? null : key.slice(separator + 1);
1399
+ const message = bundle.getMessage(id2);
1400
+ if (!message) {
1401
+ return null;
1402
+ }
1403
+ if (attribute === null) {
1404
+ return message.value;
1405
+ }
1406
+ return message.attributes[attribute] ?? null;
1407
+ }
1408
+ function intlFormattingLocale(locale) {
1409
+ try {
1410
+ Intl.getCanonicalLocales(locale);
1411
+ return locale;
1412
+ } catch {
1413
+ return DEFAULT_LOCALE;
1414
+ }
1415
+ }
1416
+ function createChainLink(locale, source, useIsolating, onError) {
1417
+ const bundle = new FluentBundle(intlFormattingLocale(locale), {
1418
+ useIsolating
1419
+ });
1420
+ const errors = bundle.addResource(new FluentResource(source));
1421
+ for (const error of errors) {
1422
+ onError?.(error, "", locale);
1423
+ }
1424
+ return { locale, bundle };
1425
+ }
1426
+ function createTranslator(locales, resources, options = {}) {
1427
+ const {
1428
+ useIsolating = false,
1429
+ onError,
1430
+ includeBuiltinEnglish = true
1431
+ } = options;
1432
+ const bundles = [];
1433
+ for (const locale of locales) {
1434
+ const source = resources[locale];
1435
+ if (source !== void 0) {
1436
+ bundles.push(
1437
+ createChainLink(locale, source, useIsolating, onError)
1438
+ );
1439
+ }
1440
+ }
1441
+ if (includeBuiltinEnglish) {
1442
+ bundles.push(
1443
+ createChainLink(
1444
+ DEFAULT_LOCALE,
1445
+ EN_CATALOG_SOURCE,
1446
+ useIsolating,
1447
+ onError
1448
+ )
1449
+ );
1450
+ }
1451
+ const translate = (key, args, fallback) => {
1452
+ for (const { locale, bundle } of bundles) {
1453
+ const pattern = lookupPattern(bundle, key);
1454
+ if (pattern === null) {
1455
+ continue;
1456
+ }
1457
+ const errors = [];
1458
+ const formatted = bundle.formatPattern(pattern, args, errors);
1459
+ for (const error of errors) {
1460
+ onError?.(error, key, locale);
1461
+ }
1462
+ return formatted;
1463
+ }
1464
+ return fallback ?? key;
1465
+ };
1466
+ translate.localeOf = (key) => bundles.find(({ bundle }) => lookupPattern(bundle, key) !== null)?.locale;
1467
+ return translate;
1468
+ }
1469
+ const esChrome = "# Spanish viewer chrome. Translated from `locales/en/chrome.ftl`, which is the\n# source of truth: `lint:i18n` rejects a key that does not exist there, and\n# reports a key that exists there but not here as missing coverage.\n#\n# Message ids are never translated — only the text to the right of `=`.\n#\n# Register: impersonal throughout — infinitives and bare nouns, never a `tú`\n# or `usted` verb form. The viewer does not know how formally a deployment\n# addresses its readers, and an impersonal label is correct for both.\n\n\n## Answer submission\n\nanswer-checking = Comprobando...\nanswer-submitting = Enviando...\n\nanswer-checking-status = Comprobando la respuesta\nanswer-submitting-status = Enviando la respuesta\n\nanswer-correct = Correcto\nanswer-incorrect = Incorrecto\n\nanswer-response-saved = Respuesta guardada\n\n# Spanish typographic convention puts a space before the percent sign.\nanswer-percent-credit = { $percent } % de crédito\nanswer-percent-correct = { $percent } % correcto\nanswer-percent-short = { $percent } %\n\nmax-credit-available = Crédito máximo disponible: { $percent } %\n\nattempts-remaining =\n { $count ->\n [0] no quedan intentos\n [one] queda { $count } intento\n *[other] quedan { $count } intentos\n }\n\nvalidation-correct = (Correcto)\nvalidation-incorrect = (Incorrecto)\nvalidation-partially-correct = (Parcialmente correcto)\n\n# `Mostrar` is the infinitive, per the register note above.\nanswer-show-responses =\n { $count ->\n [one] Mostrar { $count } respuesta a { $answerId }\n *[other] Mostrar { $count } respuestas a { $answerId }\n }\n\n\n## Disclosure panels\n\nfeedback-heading = Comentarios\n\ncollapsible-click-to-open = (clic para abrir)\ncollapsible-click-to-close = (clic para cerrar)\ncollapsible-initializing = Inicializando...\n\nfootnote-show = Mostrar la nota al pie\nfootnote-hide = Ocultar la nota al pie\n\ndescription-more-information = más información\n\n\n## Controls\n\nslider-previous = Anterior\nslider-next = Siguiente\n\nkeyboard-open = Abrir el teclado\nkeyboard-close = Cerrar el teclado\n\nmatrix-remove-row = Eliminar fila\nmatrix-add-row = Añadir fila\nmatrix-remove-column = Eliminar columna\nmatrix-add-column = Añadir columna\n\nsubset-add-remove-points = Añadir/Eliminar puntos\nsubset-toggle-points-intervals = Alternar puntos e intervalos\nsubset-move-points = Mover puntos\nsubset-clear = Borrar\n\norbital-add-row = Añadir fila\norbital-remove-row = Eliminar fila\norbital-add-box = Añadir casilla\norbital-remove-box = Eliminar casilla\norbital-add-up-arrow = Añadir flecha hacia arriba\norbital-add-down-arrow = Añadir flecha hacia abajo\norbital-remove-arrow = Eliminar flecha\n\norbital-row-label = Etiqueta de la fila { $row }\n\npretzel-answer = Respuesta\n\nsummary-statistics-caption = Resumen estadístico de { $column }\n\n\n## Math input\n\nmath-input-preview-region = vista previa de la expresión matemática\nmath-input-preview = Vista previa\nmath-input-invalid-expression = Expresión no válida:\n\n\n## Document status\n\nviewer-initializing = Inicializando...\n\n\n## Errors\n\nerror-heading = Error\n\ndocument-contains-errors = ¡Este documento contiene errores!\n\nsomething-went-wrong = Algo salió mal.\n\n# Follows `error-heading` and a colon, so it begins in lower case, as in\n# English. The instruction is an infinitive, per the register note above.\nrenderer-load-failed = no se pudo cargar un componente. Recargar la página.\n\ncore-start-failed = No se pudo iniciar el visor del documento. Recargar la página.\n";
1470
+ const esContent = "# Spanish content catalog: the prose the core computes into the document.\n# Selected by `documentLocale` — the language the activity was written in.\n#\n# Spanish inflects. Adjectives follow their noun and agree with it in gender,\n# so every adjective below selects on `$gender`, the gender of the noun it\n# describes, and the composition messages put the noun first. Neither is\n# expressible by substituting into the English word order, which is why the\n# catalog controls the order and not the code.\n\n\n## Vocabulario de estilos\n\ncolor =\n .black =\n { $gender ->\n [f] negra\n *[m] negro\n }\n .white =\n { $gender ->\n [f] blanca\n *[m] blanco\n }\n .gray = gris\n .red =\n { $gender ->\n [f] roja\n *[m] rojo\n }\n .orange = naranja\n .yellow =\n { $gender ->\n [f] amarilla\n *[m] amarillo\n }\n .green = verde\n .cyan = cian\n .blue = azul\n .purple =\n { $gender ->\n [f] morada\n *[m] morado\n }\n .pink = rosa\n .brown = marrón\n\nline-width =\n .thick =\n { $gender ->\n [f] gruesa\n *[m] grueso\n }\n .thin =\n { $gender ->\n [f] delgada\n *[m] delgado\n }\n\nline-style =\n .dashed =\n { $gender ->\n [f] discontinua\n *[m] discontinuo\n }\n .dotted =\n { $gender ->\n [f] punteada\n *[m] punteado\n }\n\n# Sintagmas nominales: van detrás de «con» y no concuerdan con nada.\nfill-style =\n .horizontal = líneas horizontales\n .vertical = líneas verticales\n .diagonal = líneas diagonales\n .backdiagonal = líneas diagonales inversas\n .dots = puntos\n .diamonds = rombos\n\nnoun =\n .line = línea\n .line-segment = segmento\n .ray = semirrecta\n .vector = vector\n .curve = curva\n .function = función\n .parabola = parábola\n .polyline = polilínea\n .polygon = polígono\n .triangle = triángulo\n .rectangle = rectángulo\n .circle = círculo\n .region = región\n .point = punto\n .square = cuadrado\n .diamond = rombo\n .cross = cruz\n .plus = signo más\n\n# El nombre se parte: «polígono regular» lleva los adjetivos y «de 5 lados»\n# cierra el sintagma detrás de ellos. Si el complemento fuera delante, los\n# adjetivos quedarían separados del nombre con el que concuerdan («polígono\n# regular de 5 lados grueso rojo»).\nnoun-regular-polygon =\n { $part ->\n [tail] de { $numSides } lados\n *[head] polígono regular\n }\n\n# Además de los nombres de arriba, `$noun` puede ser «regular-polygon» (el\n# nombre que compone `noun-regular-polygon`) o el núcleo de un sintagma que no\n# se nombra en la descripción: «border», «fill», «text» y «background». Todos\n# ellos son masculinos en español —polígono, borde, relleno, texto, fondo—, así\n# que caen en el caso por defecto.\nnoun-gender =\n { $noun ->\n [line] f\n [ray] f\n [curve] f\n [function] f\n [parabola] f\n [polyline] f\n [region] f\n [cross] f\n *[other] m\n }\n\n\n## Composición de estilos\n\nstyle-stroke =\n { $parts ->\n [width-style-color] { $lineStyle } { $width } { $color }\n [width-color] { $width } { $color }\n [style-color] { $lineStyle } { $color }\n [width-style] { $lineStyle } { $width }\n [width] { $width }\n [style] { $lineStyle }\n *[color] { $color }\n }\n\n# El nombre va delante y los adjetivos detrás: «línea discontinua gruesa roja».\n# El complemento del nombre, si lo hay, cierra el sintagma: «polígono regular\n# grueso rojo de 5 lados».\nstyle-with-noun =\n { $parts ->\n [noun-tail] { $noun } { $description } { $nounTail }\n *[noun] { $noun } { $description }\n }\n\nstyle-filled-word =\n { $gender ->\n [f] rellena\n *[m] relleno\n }\n\nstyle-filled =\n { $parts ->\n [pattern] { $color } { $filled } con { $pattern }\n *[plain] { $color } { $filled }\n }\n\n# Aquí el complemento va pegado al nombre, y no al final como en\n# `style-with-noun`: «relleno de …» se lee como «lleno de …», así que «relleno\n# de 5 lados» diría otra cosa. «Polígono regular de 5 lados azul relleno».\nstyle-filled-with-noun =\n { $parts ->\n [pattern] { $noun } { $color } { $filled } con { $pattern }\n [plain-tail] { $noun } { $nounTail } { $color } { $filled }\n [pattern-tail] { $noun } { $nounTail } { $color } { $filled } con { $pattern }\n *[plain] { $noun } { $color } { $filled }\n }\n\n# «borde» es masculino, así que los adjetivos del borde concuerdan con él y no\n# con la figura que rodea.\nstyle-border-clause =\n { $parts ->\n [with-article] con un borde { $border }\n [and] y borde { $border }\n [and-article] y un borde { $border }\n *[with] con borde { $border }\n }\n\n# «de color» evita tener que concordar el color con un patrón en plural.\nstyle-fill =\n { $parts ->\n [pattern] { $pattern } de color { $color }\n *[plain] { $color }\n }\n\nstyle-unfilled = sin relleno\n\nstyle-text =\n { $parts ->\n [background] { $color } con un fondo { $background }\n *[plain] { $color }\n }\n\nstyle-background-none = ninguno\n";
1471
+ const esDiagnostics = '# Advertencias y errores mostrados a quien lee o escribe el documento.\n# Seleccionados por `uiLocale`.\n#\n# Los nombres de atributos y componentes de DoenetML (`through`, `endpoint`,\n# `numDimensions`, …) forman parte del lenguaje y se dejan en inglés.\n\n## `<lineSegment>`\n\nline-segment-attributes-ignored-with-endpoints =\n { $attributesCount ->\n [one] { $attributes } se ignora cuando se especifican los dos extremos\n *[other] { $attributes } se ignoran cuando se especifican los dos extremos\n }\n\nline-segment-attributes-ignored-with-endpoint-and-midpoint =\n { $attributesCount ->\n [one] { $attributes } se ignora cuando se especifican un extremo y el punto medio\n *[other] { $attributes } se ignoran cuando se especifican un extremo y el punto medio\n }\n\nline-segment-midpoint-offset-without-midpoint = midpointOffset no tiene efecto sin un punto medio\n\n## `<line>`\n\n# «Recta», no «línea», aunque `noun.line` en content.ftl diga «línea»: no es\n# una incoherencia, sino la diferencia entre describir el trazo dibujado («una\n# línea azul gruesa») y hablar del objeto geométrico, que en matemáticas es\n# una recta —de ahí «la ecuación de la recta».\n\nline-points-undetermined-dimensions = La recta pasa por puntos de dimensiones indeterminadas.\n\nline-points-too-few-dimensions = La recta debe pasar por puntos de al menos dos dimensiones.\n\nline-points-depend-on-variables = La recta pasa por puntos que dependen de las variables: { $variables }.\n\n# Enumeradas con coma en vez de «y»: las variables de <line> son `x` e `y` por\n# omisión, y «en las variables x y y» sería a la vez incorrecto (ante el sonido\n# /i/ la conjunción es «e») e ilegible. La coma es correcta sea cual sea el\n# nombre de la variable, que aquí no se conoce de antemano.\nline-equation-invalid-format = Formato no válido para la ecuación de la recta en las variables { $variable1 }, { $variable2 }.\n\n## `<ray>`\n\nray-overprescribed-through = La semirrecta está determinada por through, endpoint y direction. Se ignora el through especificado.\n\nray-dimension-mismatch = Discrepancia de numDimensions en la semirrecta.\n\n## `<vector>`\n\nvector-overprescribed-head = El vector está determinado por head, tail y displacement. Se ignora el head especificado.\n\nvector-dimension-mismatch = Discrepancia de numDimensions en el vector.\n\n## Atraer y restringir\n\nattract-to-without-nearest-point = No se puede atraer a un `<{ $component }>` porque no tiene la variable de estado nearestPoint.\n\nconstrain-to-without-nearest-point = No se puede restringir a un `<{ $component }>` porque no tiene la variable de estado nearestPoint.\n\nconstrain-to-interior-without-nearest-point = No se puede restringir al interior de un `<{ $component }>` porque no tiene la variable de estado nearestPoint.\n\n## `<choiceInput>`\n\nchoice-input-label-position-ignored = labelPosition se ignora en un choiceInput que no es inline\n\n## Ordenar hijos por índice\n\nchoice-input-indices-count-mismatch = Se ignoran los índices especificados para choiceInput porque su cantidad no coincide con la cantidad de hijos choice.\n\npretzel-indices-count-mismatch = Se ignoran los índices especificados para problem porque su cantidad no coincide con la cantidad de hijos problem.\n\nshuffle-indices-count-mismatch = Se ignoran los índices especificados para shuffle porque su cantidad no coincide con la cantidad de componentes.\n\nindices-ignored-out-of-range = Se ignoran los índices especificados para { $component } porque algunos están fuera de rango.\n\npretzel-indices-repeated = Se ignoran los índices especificados para pretzel porque algunos están repetidos.\n\npretzel-circuit-first-index = Se ignoran los índices especificados para pretzel en modo circuit porque el primer índice debe ser 1.\n\n## `<shuffle>` y `<sort>`\n\nstring-children-need-type = Para que `<{ $component }>` funcione con hijos de texto, se debe especificar el atributo `type`.\n\ninvalid-type-defaulting-to-math = Tipo no válido { $type } para el componente { $component }. Debe ser math, text, number o boolean. Se usa math.\n\nstring-not-valid-component-to-arrange = La cadena "{ $value }" no es un componente válido para { $component }. Se ignora.\n\n## Tipos y variables\n\ninvalid-type-defaulting-to-number = Tipo no válido { $type }, se establece el tipo en number.\n\ninvalid-variable-value = Valor no válido de una variable: `{ $value }`\n\n## Variantes\n\nvariant-index-must-be-number = El índice de variante { $index } debe ser un número\n\nvariant-index-must-be-integer = El índice de variante { $index } debe ser un número entero\n\n## `<sideBySide>`\n\nside-by-side-absolute-widths = `<{ $component }>` no está implementado para medidas absolutas. Los anchos se establecen como relativos.\n\nside-by-side-absolute-margins = `<{ $component }>` no está implementado para medidas absolutas. Los márgenes se establecen como relativos.\n\nside-by-side-no-block-child = `<{ $component }>` no es válido: debe tener al menos un hijo de bloque.\n\n## `<label>`\n\nlabel-for-ignored-on-graphical = Se ignora el atributo `for` en un `<label>` gráfico.\n\nlabel-for-must-resolve-to-one = El atributo `for` de `<label>` debe corresponder exactamente a un componente.\n\nlabel-for-unresolved = No se pudo resolver el atributo `for` de `<label>` a un componente.\n\nlabel-for-answer-with-authored-inputs = El atributo `for` de `<label>` hace referencia a un `<answer>` con entradas escritas explícitamente; haz referencia a la entrada directamente.\n\nlabel-for-answer-without-input = El atributo `for` de `<label>` hace referencia a un `<answer>` que no tiene ninguna entrada que etiquetar.\n\nlabel-for-must-reference-input-or-answer = El atributo `for` de `<label>` debe hacer referencia a una entrada o a un `<answer>`.\n\n## Accesibilidad\n\naccessibility-short-description-or-decorative = Por accesibilidad, `<{ $component }>` debe tener una descripción breve o estar marcado como decorativo.\n\naccessibility-video-short-description = Por accesibilidad, `<video>` debe tener una descripción breve.\n\naccessibility-input-short-description-or-label = Por accesibilidad, `<{ $component }>` debe tener una descripción breve o una etiqueta.\n\naccessibility-answer-input-short-description-or-label = Por accesibilidad, la entrada creada por un `<answer>` debe tener una descripción breve o una etiqueta.\n\naccessibility-short-description-contains-math = Las descripciones breves no deben contener componentes matemáticos como `<{ $component }>`. Expresa las matemáticas con palabras.\n\naccessibility-section-title-insufficient-contrast =\n { $mode ->\n [dark] { $colorName } no tiene suficiente contraste con el texto del encabezado de sección (modo oscuro) ({ NUMBER($ratio, minimumFractionDigits: 2, maximumFractionDigits: 2) }:1; se requiere al menos { $threshold }:1).\n *[other] { $colorName } no tiene suficiente contraste con el texto del encabezado de sección ({ NUMBER($ratio, minimumFractionDigits: 2, maximumFractionDigits: 2) }:1; se requiere al menos { $threshold }:1).\n }\n\n## `<circle>`\n\ncircle-through-points-non-numerical = No está implementado un `<circle>` que pase por { $count } puntos cuando los puntos no tienen valores numéricos.\n\ncircle-too-many-through-points = No se puede calcular una circunferencia que pase por más de 3 puntos.\n\ncircle-overprescribed-radius-center-points = No se puede calcular una circunferencia con radio, centro y puntos de paso especificados a la vez.\n\ncircle-center-with-multiple-points = No se puede calcular una circunferencia con centro especificado que pase por más de 1 punto.\n\ncircle-radius-too-small = No se puede calcular la circunferencia: dado que la distancia entre los dos puntos es { $distance }, el radio especificado { $radius } es demasiado pequeño.\n\ncircle-radius-with-many-points = No se puede crear una circunferencia que pase por más de dos puntos con un radio especificado.\n\ncircle-invalid-center-or-through-points = El centro o los puntos de paso de la circunferencia no son válidos.\n\ncircle-radius-center-with-multiple-points = No se puede calcular el radio de una circunferencia con centro especificado que pase por más de 1 punto.\n\ncircle-change-radius-non-numerical = No se puede cambiar el radio de una circunferencia con puntos de paso no numéricos\n\ncircle-radius-with-points-non-numerical = No se puede crear una circunferencia que pase por más de un punto con un radio especificado cuando no hay valores numéricos.\n\ncircle-change-center-non-numerical = No está implementado cambiar el centro de una circunferencia que pasa por puntos con valores no numéricos.\n\n## `<function>`\n\nfunction-domain-insufficient-dimensions =\n { $intervals ->\n [one] Dimensiones insuficientes para el dominio de la función. El dominio tiene { $intervals } intervalo pero la función tiene { $inputs ->\n [one] { $inputs } entrada\n *[other] { $inputs } entradas\n }.\n *[other] Dimensiones insuficientes para el dominio de la función. El dominio tiene { $intervals } intervalos pero la función tiene { $inputs ->\n [one] { $inputs } entrada\n *[other] { $inputs } entradas\n }.\n }\n\nfunction-domain-invalid-format = Formato no válido para el dominio de la función.\n\nfunction-ignoring-non-numerical =\n { $type ->\n [maximum] Se ignora el máximo no numérico de la función.\n [minimum] Se ignora el mínimo no numérico de la función.\n [extremum] Se ignora el extremo no numérico de la función.\n [point] Se ignora el punto no numérico de la función.\n [slope] Se ignora la pendiente no numérica de la función.\n *[other] Se ignora { $type } no numérico de la función.\n }\n\nfunction-ignoring-empty =\n { $type ->\n [maximum] Se ignora el máximo vacío de la función.\n [minimum] Se ignora el mínimo vacío de la función.\n [extremum] Se ignora el extremo vacío de la función.\n [point] Se ignora el punto vacío de la función.\n *[other] Se ignora { $type } vacío de la función.\n }\n\nfunction-points-too-close = La función contiene dos puntos demasiado próximos entre sí. No se puede definir la función.\n\nfunction-iterates-input-output-mismatch =\n { $inputs ->\n [one] Las iteraciones de una función solo son posibles si el número de entradas es igual al número de salidas. Esta función tiene { $inputs } entrada y { $outputs ->\n [one] { $outputs } salida\n *[other] { $outputs } salidas\n }.\n *[other] Las iteraciones de una función solo son posibles si el número de entradas es igual al número de salidas. Esta función tiene { $inputs } entradas y { $outputs ->\n [one] { $outputs } salida\n *[other] { $outputs } salidas\n }.\n }\n\n## `<sequence>`\n\nsequence-invalid-length = Longitud de la secuencia no válida. Debe ser un entero no negativo.\n\nsequence-invalid-step = Paso de la secuencia no válido. Debe ser un número para una secuencia de tipo { $type }.\n\nsequence-invalid-endpoint-number = El valor de "{ $attribute }" de la secuencia numérica no es válido. Debe ser un número.\n\nsequence-invalid-endpoint-letters = El valor de "{ $attribute }" de la secuencia de letras no es válido. Debe ser una combinación de letras.\n\nsequence-invalid-endpoint = El valor de "{ $attribute }" de la secuencia no es válido.\n\nselect-from-sequence-coprime-not-numbers = Se ignora coprime porque no se están seleccionando números\n\nselect-from-sequence-coprime-with-exclude-combinations = Se ignora coprime porque se especificó excludeCombinations\n\n## Resolución de `target`\n\ntarget-not-found = Destino no válido para `<{ $source }>`: no se encuentra el destino.\n\ntarget-state-variable-not-found = Destino no válido para `<{ $source }>`: no se encuentra una variable de estado llamada "{ $property }" en un `<{ $component }>`.\n\n## `<odeSystem>`\n\node-system-variables-match-independent = Las variables de `<odeSystem>` deben ser distintas de la variable independiente.\n\node-system-duplicate-variable-names = No se pueden definir las funciones del lado derecho de la EDO con nombres de variables dependientes repetidos.\n\node-system-rhs-function-error = No se puede definir la función del lado derecho de la EDO. Error al crear la función de mathjs.\n\n## `<angle>`, `<parabola>` e `<intersection>`\n\nangle-too-many-lines = No se puede definir un ángulo entre { $count } rectas\n\nangle-invalid-through-point = Punto no válido en through de `<angle>`\n\nparabola-vertex-too-many-points = No está implementada una parábola con vértice que pase por más de 1 punto.\n\nparabola-too-many-points = No está implementada una parábola que pase por más de 3 puntos.\n\nintersection-too-many-items = No está implementada la intersección de más de dos objetos\n\n## Otros componentes matemáticos\n\nionic-compound-not-two-ions = No está implementado el compuesto iónico para algo distinto de dos iones.\n\nionic-compound-needs-cation-and-anion = El compuesto iónico solo está implementado para un catión y un anión.\n\nsolve-equations-cannot-evaluate = No se puede resolver la ecuación porque no se pudo evaluar: { $equation }\n\nmath-operators-operand-number-required = Se debe especificar operandNumber al extraer un operando matemático.\n\neigen-decomposition-failed = No se pudieron calcular los valores propios de la matriz\n\n## Renderizador PreFigure\n\nprefigure-x-label-position-unsupported = `<graph>`: xLabelPosition="left" no es compatible con el renderizador prefigure; se usa el comportamiento de posición derecha.\n\nprefigure-y-label-position-unsupported = `<graph>`: yLabelPosition="bottom" no es compatible con el renderizador prefigure; se usa el comportamiento de posición superior.\n\nprefigure-invalid-axis-bounds = `<graph>`: los límites de los ejes no son válidos para la conversión a prefigure; se usa el bbox predeterminado (-10,-10,10,10).\n\nprefigure-invalid-width = `<graph>`: el ancho no es válido para la conversión a prefigure; se usa el ancho de diagrama predeterminado 425.\n\nprefigure-invalid-aspect-ratio = `<graph>`: aspectRatio no es válido para la conversión a prefigure; se usa la relación de aspecto predeterminada 1.\n\nprefigure-annotations-not-rendered = `<graph>`: las anotaciones no se representan si no se usa el renderizador PreFigure.\n\nmultiple-annotations-children = Se encontraron varios hijos `<annotations>` en `<graph>`; se ignoran todos menos el último.\n\n## Referencias a otros componentes\n\ncopy-unrecognized-component-type = No se puede extender ni copiar un tipo de componente desconocido: { $type }.\n\ncopy-prop-not-found = No se encontró la propiedad { $property } en un componente de tipo { $component }\n\ncollect-no-source = No se encontró ninguna fuente para collect.\n\ncollect-invalid-component-type = No se pueden recolectar componentes de tipo `<{ $component }>` porque no es un tipo de componente válido.\n\nreference-index-unavailable = No se puede referenciar el índice `{ $reference }`\n\n## `<callAction>`\n\ncomponent-action-unavailable = No se puede llamar a { $action } en el componente `{ $reference }`\n\n## `<dataFrame>`\n\ndata-frame-inconsistent-row-lengths = Los datos tienen una forma no válida. Las filas tienen longitudes distintas. Encontrado en componentIdx :{ $componentIdx }\n\ndata-frame-duplicate-column-names = Los datos tienen nombres de columna repetidos. Encontrado en componentIdx :{ $componentIdx }\n\ndata-frame-missing-column-name = A los datos les falta el nombre de una columna. Encontrado en componentIdx :{ $componentIdx }\n\n## `<answer>` y puntuación\n\nanswer-award-depends-on-own-response = Un award de esta respuesta depende de la respuesta enviada por el propio answer, lo que provocará un comportamiento inesperado.\n\nanswer-max-num-attempts-in-section-wide-check-work = Establecer `maxNumAttempts` en un `<answer>` dentro de un contenedor con `sectionWideCheckWork` no tiene efecto, porque el número de intentos lo controla el contenedor. Establece `maxNumAttempts` en el contenedor.\n\nnested-section-wide-check-work-max-num-attempts = Establecer `maxNumAttempts` en un contenedor con `sectionWideCheckWork` que está dentro de otro contenedor con `sectionWideCheckWork` no tiene efecto, porque el número de intentos lo controla el contenedor exterior. Establece `maxNumAttempts` en el contenedor exterior.\n\nanswer-attributes-need-symbolic-equality =\n { $attributesCount ->\n [one] El atributo { $attributes } no tendrá efecto si no se establece symbolicEquality.\n *[other] Los atributos { $attributes } no tendrán efecto si no se establece symbolicEquality.\n }\n\nanswer-invalid-type = Tipo no válido para answer: { $type }\n\n## `<module>`, `<conditionalContent>`, `<slider>` y pretzel\n\nmodule-attribute-child-needs-name = Como el componente `<{ $component }>` no tiene nombre, no se puede usar como atributo de módulo\n\nmodule-attribute-name-already-defined = El componente `<{ $component } name="{ $name }">` no se puede usar como atributo de un módulo porque el tipo de componente `<module>` ya tiene definido un atributo "{ $name }".\n\nconditional-content-condition-ignored = Se ignora el atributo `condition` en un `<conditionalContent>` que tiene hijos case o else.\n\nslider-markers-type-mismatch = El tipo de los marcadores no coincide con el tipo del slider.\n\npretzel-problem-needs-statement-and-answer = Pretzel no válido: cada `<problem>` debe contener un `<statement>` y un `<answer>`.\n\npretzel-circuit-first-problem-distractor = Pretzel no válido: en mode="circuit", el primer `<problem>` no puede ser un distractor.\n\n## Valores de atributos\n\nattribute-invalid-values =\n { $valuesCount ->\n [one] Valor no válido { $values } para el atributo `{ $attribute }`; se ignora.\n *[other] Valores no válidos { $values } para el atributo `{ $attribute }`; se ignoran.\n }\n\nattribute-must-be-references = Valor no válido `{ $value }` para el atributo `{ $attribute }`. El atributo debe estar compuesto de referencias que empiecen por `$`.\n\nmath-input-invalid-function-names = <mathInput>: se ignoran nombres de función no válidos en { $attribute }: { $names }. El segmento visible de cada nombre debe tener al menos 2 caracteres (letras o guiones); puede añadirse un sufijo opcional `|<alternativa de mathspeak>`.\n\n## Construcción de componentes a partir del código fuente\n\ncomponent-type-invalid = Tipo de componente no válido: `<{ $componentType }>`\n\nattribute-repeated = No se puede repetir el atributo { $attribute }.\n\nattribute-invalid-for-component = Atributo "{ $attribute }" no válido para un componente de tipo `<{ $componentType }>`.\n\n## Contraste de las definiciones de estilo\n\nstyle-definition-insufficient-contrast =\n La definición de estilo { $styleNumber } no tiene suficiente contraste para { $context ->\n [text-on-background] el color del texto sobre el color de fondo\n [high-contrast] el color de alto contraste sobre el lienzo\n [line] el color de las líneas sobre el lienzo\n [marker] el color de los marcadores sobre el lienzo\n *[text-on-canvas] el color del texto sobre el lienzo\n }{ $mode ->\n [dark] { " (modo oscuro)" }\n *[light] { "" }\n } ({ NUMBER($ratio, minimumFractionDigits: 2, maximumFractionDigits: 2) }:1; se requiere al menos { $threshold }:1).\n\nstyle-definition-dark-mode-text-background-contrast =\n Aunque la definición de estilo { $styleNumber } especifica colores con suficiente contraste en modo claro, los colores de modo oscuro derivados de esos valores no tienen suficiente contraste entre el color del texto y el color de fondo ({ NUMBER($ratio, minimumFractionDigits: 2, maximumFractionDigits: 2) }:1; se requiere al menos { $threshold }:1). { $suggestion ->\n [available] Para lograr suficiente contraste en modo oscuro, aumenta el contraste en modo claro (por ejemplo, con { $lightAttribute }="{ $lightColor }") o define el color de modo oscuro (por ejemplo, con { $darkAttribute }="{ $darkColor }").\n *[none] Para lograr suficiente contraste en modo oscuro, aumenta el contraste en modo claro o sustituye los colores derivados mediante textColorDarkMode o backgroundColorDarkMode.\n }\n\nstyle-definition-dark-mode-text-canvas-contrast =\n Aunque la definición de estilo { $styleNumber } especifica un color de texto con suficiente contraste en modo claro, el color de texto de modo oscuro derivado de ese valor no tiene suficiente contraste sobre el lienzo ({ NUMBER($ratio, minimumFractionDigits: 2, maximumFractionDigits: 2) }:1; se requiere al menos { $threshold }:1). { $suggestion ->\n [available] Para lograr suficiente contraste en modo oscuro, aumenta el contraste en modo claro (por ejemplo, con textColor="{ $lightColor }") o define el color de modo oscuro (por ejemplo, con textColorDarkMode="{ $darkColor }").\n *[none] Para lograr suficiente contraste en modo oscuro, aumenta el contraste en modo claro o sustituye el color derivado mediante textColorDarkMode.\n }\n\nsection-multiple-style-palettes = Una sección solo puede seleccionar un <stylePalette>; se usará el último.\n\n## Variantes únicas\n\nvariant-num-to-select-not-non-negative-integer = no se pueden determinar las variantes únicas de { $component } porque numToSelect no es un entero no negativo.\n\nvariant-num-to-select-not-constant-number = no se pueden determinar las variantes únicas de { $component } porque numToSelect no es un número constante.\n\nvariant-with-replacement-not-constant-boolean = no se pueden determinar las variantes únicas de { $component } porque withReplacement no es un booleano constante.\n\nvariant-select-weight-disables-unique = Las variantes únicas quedan desactivadas en select si alguna opción especifica selectWeight o selectForVariants\n\nvariant-coprime-undetermined = no se pueden determinar las variantes únicas de { $component } porque no se puede determinar si coprime es siempre falso.\n\nvariant-attribute-not-constant = no se pueden determinar las variantes únicas de { $component } porque { $attribute } no es constante.\n\nvariant-attribute-not-number = no se pueden determinar las variantes únicas de { $component } porque { $attribute } no es un número.\n\nvariant-attribute-wrong-type-for-sequence =\n no se pueden determinar las variantes únicas de { $component } de tipo { $type } porque { $attribute } no es { $expected ->\n [letters-combination] una combinación de letras\n [math-expression] una expresión matemática válida\n [integer] un entero\n *[number] un número\n }.\n\nvariant-length-not-integer = no se pueden determinar las variantes únicas de { $component } porque length no es un entero.\n\nvariant-sort-not-implemented = no se han implementado las variantes únicas de un { $component } con sort\n\nvariant-exclude-combinations-not-implemented = no se han implementado las variantes únicas de un { $component } con excludeCombinations\n\nvariant-math-exclude-not-implemented = no se han implementado las variantes únicas de un { $component } de tipo math con exclude\n\nvariant-non-constant-exclude-not-implemented = no se han implementado las variantes únicas de un { $component } con exclude no constante\n\n## Conversión a PreFigure\n\nprefigure-descendant-unsupported = { $subject }: no se admite en el renderizador prefigure de gráficos; se omite el descendiente.\n\nprefigure-descendant-invalid-geometry = { $subject }: geometría no finita o incompleta; se omite el descendiente.\n\nprefigure-curve-label-omitted = { $subject }: las etiquetas no se admiten en los elementos de curva convertidos; se omite la etiqueta.\n\nprefigure-curve-unsupported-definition-type = { $subject }: tipo de definición de función de curva no admitido \'{ $definitionType }\'; se omite el descendiente.\n\nprefigure-region-flip-functions-unsupported = { $subject }: atributo flipFunctions no admitido en regionBetweenCurves; se omite el descendiente.\n\nprefigure-region-non-formula-child = { $subject }: en regionBetweenCurves solo se admiten funciones hijas de tipo fórmula; se omite el descendiente.\n\nprefigure-label-position-unsupported =\n { $subject }: labelPosition \'{ $labelPosition }\' no admitido para { $labelKind ->\n [line-family] una etiqueta de la familia de líneas\n *[point] una etiqueta de punto\n }; se usa la alineación predeterminada de PreFigure.\n\nprefigure-fill-style-unsupported = { $subject }: PreFigure no admite el estilo de relleno \'{ $fillStyle }\'; se usa un relleno sólido.\n\nprefigure-line-style-unknown = { $subject }: estilo de línea desconocido \'{ $lineStyle }\'; se omite de la salida de PreFigure.\n\nprefigure-marker-style-mapped-to-diamond = { $subject }: el estilo de marcador \'{ $markerStyle }\' se asigna al estilo \'diamond\' de PreFigure.\n\nprefigure-marker-style-unsupported = { $subject }: PreFigure no admite el estilo de marcador \'{ $markerStyle }\'; se usa el estilo predeterminado.\n\n## Anotaciones de PreFigure\n\nannotation-ref-unresolvable = `<annotation>`: `ref` no válido; no se puede resolver el destino. Se omite la anotación.\n\nannotation-ref-multiple-targets = `<annotation>`: `ref` se resolvió a varios destinos; se usa el primero.\n\nannotation-ref-outside-graph = `<annotation>`: `ref` no válido; el destino está fuera del gráfico que lo contiene. Se omite la anotación.\n\nannotation-ref-unsupported-target = `<annotation>`: `ref` no válido; el destino no es un objeto gráfico admitido en la conversión a prefigure. Se omite la anotación.\n\nannotation-text-missing = `<annotation>`: falta `text` o está vacío; se emite texto vacío.\n\n## Composites y referencias\n\ncomposite-circular-dependency =\n { $componentType ->\n [none] Se detectó una dependencia circular.\n *[other] Se detectó una dependencia circular en la que participa un componente `<{ $componentType }>`.\n }\n\nreference-no-referent = No se encontró ningún referente para la referencia: `{ $reference }`\n\nreference-multiple-referents = Se encontraron varios referentes para la referencia: `{ $reference }`\n\n## Hijos que no coinciden\n\nchildren-invalid-attribute-format = Formato no válido para el atributo { $attribute } de `<{ $componentType }>`.\n\nchildren-invalid = Hijos no válidos para `<{ $componentType }>`: se encontraron hijos no válidos: { $children }\n\n## Se recurre a un valor predeterminado\n\nattribute-value-invalid-using-default = Valor no válido `{ $value }` para el atributo `{ $attribute }`; se usa el valor `{ $default }`\n\n## Carga de una versión de DoenetML\n\ndoenetml-version-not-found =\n { $fallback ->\n [none] No se encontró la versión { $version } de DoenetML.\n *[other] No se encontró la versión { $version } de DoenetML. Se recurrirá a la versión { $fallback }\n }\n\n## Lectura del DoenetML\n\n# Estos mensajes citan el propio texto del autor —`$tag`, `$value`,\n# `$attribute`…—, que se reproduce tal cual.\n\nparse-invalid-doenetml = DoenetML no válido: { $content }\n\nparse-tag-missing-close-tag = DoenetML no válido: la etiqueta `{ $tag }` no tiene etiqueta de cierre. Se esperaba una etiqueta autocerrada o una etiqueta `</{ $tagName }>`.\n\nparse-tag-error = DoenetML no válido: error en la etiqueta `<{ $tagName }>`\n\nparse-attribute-missing-value = DoenetML no válido: parece que al atributo `{ $attribute }` le falta un valor.\n\nparse-attribute-invalid = DoenetML no válido: atributo no válido `{ $attribute }`\n\nparse-attribute-value-invalid = DoenetML no válido: valor de atributo no válido `{ $value }`\n\n# $quote es la comilla que cerraría el par: `"` o `\'`.\nparse-attribute-value-quote-mismatch = DoenetML no válido: valor de atributo no válido `{ $value }`. Las comillas no coinciden. Parece que falta una `{ $quote }`\n\nparse-open-tag-name-missing = DoenetML no válido: se encontró una etiqueta sin nombre, por ejemplo `<`\n\nparse-tag-not-closed = DoenetML no válido: la etiqueta `{ $tag }` no se cerró (parece que falta un `>`).\n\nparse-self-closing-tag-name-missing = DoenetML no válido: se encontró una etiqueta sin nombre `<{ $content }>`\n\nparse-self-closing-tag-not-closed = DoenetML no válido: la etiqueta `{ $tag }` no se cerró (parece que falta `/>`).\n\nparse-tag-invalid-attributes = DoenetML no válido: la etiqueta `{ $tag }` no es válida. Puede que tenga atributos incorrectos.\n\nparse-close-tag-name-missing = DoenetML no válido: se encontró una etiqueta de cierre sin nombre, por ejemplo `</`\n\nparse-attribute-value-unquoted = Los valores de los atributos deben ir entre comillas: `{ $attribute }="{ $value }"`\n\nparse-close-tag-without-open-tag = DoenetML no válido: se encontró la etiqueta de cierre `{ $tag }`, pero no hay ninguna etiqueta de apertura que le corresponda\n\nparse-close-tag-mismatched = DoenetML no válido: la etiqueta de cierre no coincide. Se esperaba `</{ $expected }>`. Se encontró `{ $found }`\n\nparser-node-unconvertible = No se pudo convertir el nodo { $node } en un nodo Dast.\n\n## Nombres\n\nname-attribute-invalid =\n Atributo name=\'{ $name }\' no válido. { $reason ->\n [characters] Los nombres solo pueden contener letras, números, guiones bajos o guiones.\n *[start] Los nombres deben empezar por una letra.\n }\n\ncomponent-name-invalid-start = Nombre de componente "{ $name }" no válido. Los nombres deben empezar por una letra.\n\n## Azúcar sintáctico de `<answer>`\n\nanswer-video-watched-missing-video = Un `<answer>` de tipo videoWatched debe tener un atributo video\n\nanswer-video-watched-video-not-reference = Un `<answer>` de tipo videoWatched debe tener un atributo video que sea una referencia\n\nanswer-name-not-single-text = El atributo name de `<answer>` debe tener un único hijo de texto\n\n## Referencias a otro documento\n\nexternal-doenetml-recursion-limit = No se pudo obtener el DoenetML externo por exceso de niveles de recursión. ¿Hay alguna referencia circular?\n\nexternal-doenetml-unavailable = No se pudo obtener el DoenetML de { $attribute }="{ $uri }"\n\nexternal-doenetml-type-mismatch = El DoenetML obtenido de { $attribute }="{ $uri }" no es válido: no coincide con el tipo de componente "{ $componentType }"\n\n## Sintaxis obsoleta\n\n# `[deprecation]` es una marca literal que abre los tres mensajes; se deja\n# igual. $component es `none` cuando el cambio de nombre vale para todos los\n# componentes que aceptan el atributo y nombrar uno sería engañoso.\n\ndeprecated-attribute-renamed =\n { $component ->\n [none] [deprecation] El atributo `{ $from }` está obsoleto; usa `{ $to }` en su lugar.\n *[other] [deprecation] El atributo `{ $from }` de `<{ $component }>` está obsoleto; usa `{ $to }` en su lugar.\n }\n\ndeprecated-attribute-renamed-conflict =\n { $component ->\n [none] [deprecation] El atributo `{ $from }` está obsoleto y se ignora porque también se especificó `{ $to }`.\n *[other] [deprecation] El atributo `{ $from }` de `<{ $component }>` está obsoleto y se ignora porque también se especificó `{ $to }`.\n }\n\ndeprecated-attribute-ignored = [deprecation] El atributo `{ $attribute }` de `<{ $component }>` está obsoleto y se ignora.\n';
1472
+ const BUNDLED_TRANSLATIONS = {
1473
+ es: {
1474
+ chrome: esChrome,
1475
+ content: esContent,
1476
+ diagnostics: esDiagnostics
1477
+ }
1478
+ };
1479
+ function bundledResources(namespaces, { includeEnglish = false } = {}) {
1480
+ const resources = {};
1481
+ if (includeEnglish) {
1482
+ resources[DEFAULT_LOCALE] = pick$1(EN_CATALOGS, namespaces);
1483
+ }
1484
+ for (const [locale, catalogs] of Object.entries(BUNDLED_TRANSLATIONS)) {
1485
+ resources[locale] = pick$1(catalogs, namespaces);
1486
+ }
1487
+ return resources;
1488
+ }
1489
+ function pick$1(catalogs, namespaces) {
1490
+ const picked = {};
1491
+ for (const namespace of namespaces) {
1492
+ picked[namespace] = catalogs[namespace];
1493
+ }
1494
+ return combineCatalogs(picked);
1495
+ }
1496
+ bundledResources(
1497
+ CHROME_NAMESPACES,
1498
+ { includeEnglish: true }
1499
+ );
1500
+ bundledResources(WORKER_NAMESPACES);
1501
+ const DIAGNOSTIC_CODES = {
1502
+ "doenet-i0001": "line-segment-attributes-ignored-with-endpoints",
1503
+ "doenet-i0002": "line-segment-midpoint-offset-without-midpoint",
1504
+ "doenet-i0003": "line-segment-attributes-ignored-with-endpoint-and-midpoint",
1505
+ "doenet-i0004": "choice-input-indices-count-mismatch",
1506
+ "doenet-i0005": "pretzel-indices-count-mismatch",
1507
+ "doenet-i0006": "shuffle-indices-count-mismatch",
1508
+ "doenet-i0007": "indices-ignored-out-of-range",
1509
+ "doenet-i0008": "pretzel-indices-repeated",
1510
+ "doenet-i0009": "pretzel-circuit-first-index",
1511
+ "doenet-i0010": "variant-index-must-be-number",
1512
+ "doenet-i0011": "variant-index-must-be-integer",
1513
+ "doenet-i0012": "sequence-invalid-length",
1514
+ "doenet-i0013": "sequence-invalid-step",
1515
+ "doenet-i0014": "sequence-invalid-endpoint-number",
1516
+ "doenet-i0015": "sequence-invalid-endpoint-letters",
1517
+ "doenet-i0016": "sequence-invalid-endpoint",
1518
+ "doenet-i0017": "angle-too-many-lines",
1519
+ "doenet-i0018": "copy-prop-not-found",
1520
+ "doenet-i0019": "prefigure-annotations-not-rendered",
1521
+ "doenet-i0020": "multiple-annotations-children",
1522
+ "doenet-i0021": "attribute-invalid-values",
1523
+ "doenet-i0022": "variant-num-to-select-not-non-negative-integer",
1524
+ "doenet-i0023": "variant-num-to-select-not-constant-number",
1525
+ "doenet-i0024": "variant-with-replacement-not-constant-boolean",
1526
+ "doenet-i0025": "variant-select-weight-disables-unique",
1527
+ "doenet-i0026": "variant-coprime-undetermined",
1528
+ "doenet-i0027": "variant-attribute-not-constant",
1529
+ "doenet-i0028": "variant-attribute-not-number",
1530
+ "doenet-i0029": "variant-attribute-wrong-type-for-sequence",
1531
+ "doenet-i0030": "variant-length-not-integer",
1532
+ "doenet-i0031": "variant-sort-not-implemented",
1533
+ "doenet-i0032": "variant-exclude-combinations-not-implemented",
1534
+ "doenet-i0033": "variant-math-exclude-not-implemented",
1535
+ "doenet-i0034": "variant-non-constant-exclude-not-implemented",
1536
+ "doenet-i0048": "attribute-value-invalid-using-default",
1537
+ "doenet-w0001": "line-points-undetermined-dimensions",
1538
+ "doenet-w0002": "line-points-too-few-dimensions",
1539
+ "doenet-w0003": "line-points-depend-on-variables",
1540
+ "doenet-w0004": "line-equation-invalid-format",
1541
+ "doenet-w0005": "ray-overprescribed-through",
1542
+ "doenet-w0006": "ray-dimension-mismatch",
1543
+ "doenet-w0007": "vector-overprescribed-head",
1544
+ "doenet-w0008": "vector-dimension-mismatch",
1545
+ "doenet-w0009": "attract-to-without-nearest-point",
1546
+ "doenet-w0010": "constrain-to-without-nearest-point",
1547
+ "doenet-w0011": "constrain-to-interior-without-nearest-point",
1548
+ "doenet-w0012": "choice-input-label-position-ignored",
1549
+ "doenet-w0013": "string-children-need-type",
1550
+ "doenet-w0014": "invalid-type-defaulting-to-math",
1551
+ "doenet-w0015": "string-not-valid-component-to-arrange",
1552
+ "doenet-w0016": "invalid-type-defaulting-to-number",
1553
+ "doenet-w0017": "invalid-variable-value",
1554
+ "doenet-w0018": "side-by-side-absolute-widths",
1555
+ "doenet-w0019": "side-by-side-absolute-margins",
1556
+ "doenet-w0020": "side-by-side-no-block-child",
1557
+ "doenet-w0021": "label-for-ignored-on-graphical",
1558
+ "doenet-w0022": "label-for-must-resolve-to-one",
1559
+ "doenet-w0023": "label-for-unresolved",
1560
+ "doenet-w0024": "label-for-answer-with-authored-inputs",
1561
+ "doenet-w0025": "label-for-answer-without-input",
1562
+ "doenet-w0026": "label-for-must-reference-input-or-answer",
1563
+ "doenet-w0027": "circle-through-points-non-numerical",
1564
+ "doenet-w0028": "circle-too-many-through-points",
1565
+ "doenet-w0029": "circle-overprescribed-radius-center-points",
1566
+ "doenet-w0030": "circle-center-with-multiple-points",
1567
+ "doenet-w0031": "circle-radius-too-small",
1568
+ "doenet-w0032": "circle-radius-with-many-points",
1569
+ "doenet-w0033": "circle-invalid-center-or-through-points",
1570
+ "doenet-w0034": "circle-radius-center-with-multiple-points",
1571
+ "doenet-w0035": "circle-change-radius-non-numerical",
1572
+ "doenet-w0036": "circle-radius-with-points-non-numerical",
1573
+ "doenet-w0037": "circle-change-center-non-numerical",
1574
+ "doenet-w0038": "function-domain-insufficient-dimensions",
1575
+ "doenet-w0039": "function-domain-invalid-format",
1576
+ "doenet-w0040": "function-ignoring-non-numerical",
1577
+ "doenet-w0041": "function-ignoring-empty",
1578
+ "doenet-w0042": "function-points-too-close",
1579
+ "doenet-w0043": "target-not-found",
1580
+ "doenet-w0044": "target-state-variable-not-found",
1581
+ "doenet-w0045": "ode-system-variables-match-independent",
1582
+ "doenet-w0046": "ode-system-duplicate-variable-names",
1583
+ "doenet-w0047": "ode-system-rhs-function-error",
1584
+ "doenet-w0048": "angle-invalid-through-point",
1585
+ "doenet-w0049": "parabola-vertex-too-many-points",
1586
+ "doenet-w0050": "parabola-too-many-points",
1587
+ "doenet-w0051": "select-from-sequence-coprime-not-numbers",
1588
+ "doenet-w0052": "select-from-sequence-coprime-with-exclude-combinations",
1589
+ "doenet-w0053": "ionic-compound-not-two-ions",
1590
+ "doenet-w0054": "ionic-compound-needs-cation-and-anion",
1591
+ "doenet-w0055": "intersection-too-many-items",
1592
+ "doenet-w0056": "function-iterates-input-output-mismatch",
1593
+ "doenet-w0057": "solve-equations-cannot-evaluate",
1594
+ "doenet-w0058": "math-operators-operand-number-required",
1595
+ "doenet-w0059": "eigen-decomposition-failed",
1596
+ "doenet-w0060": "prefigure-x-label-position-unsupported",
1597
+ "doenet-w0061": "prefigure-y-label-position-unsupported",
1598
+ "doenet-w0062": "prefigure-invalid-axis-bounds",
1599
+ "doenet-w0063": "prefigure-invalid-width",
1600
+ "doenet-w0064": "prefigure-invalid-aspect-ratio",
1601
+ "doenet-w0065": "copy-unrecognized-component-type",
1602
+ "doenet-w0066": "data-frame-inconsistent-row-lengths",
1603
+ "doenet-w0067": "data-frame-duplicate-column-names",
1604
+ "doenet-w0068": "data-frame-missing-column-name",
1605
+ "doenet-w0069": "answer-award-depends-on-own-response",
1606
+ "doenet-w0070": "answer-max-num-attempts-in-section-wide-check-work",
1607
+ "doenet-w0071": "answer-attributes-need-symbolic-equality",
1608
+ "doenet-w0072": "collect-no-source",
1609
+ "doenet-w0073": "collect-invalid-component-type",
1610
+ "doenet-w0074": "module-attribute-child-needs-name",
1611
+ "doenet-w0075": "module-attribute-name-already-defined",
1612
+ "doenet-w0076": "pretzel-problem-needs-statement-and-answer",
1613
+ "doenet-w0077": "attribute-must-be-references",
1614
+ "doenet-w0078": "answer-invalid-type",
1615
+ "doenet-w0079": "conditional-content-condition-ignored",
1616
+ "doenet-w0080": "slider-markers-type-mismatch",
1617
+ "doenet-w0081": "nested-section-wide-check-work-max-num-attempts",
1618
+ "doenet-w0082": "math-input-invalid-function-names",
1619
+ "doenet-w0083": "section-multiple-style-palettes",
1620
+ "doenet-w0084": "prefigure-descendant-unsupported",
1621
+ "doenet-w0085": "prefigure-descendant-invalid-geometry",
1622
+ "doenet-w0086": "prefigure-curve-label-omitted",
1623
+ "doenet-w0087": "prefigure-curve-unsupported-definition-type",
1624
+ "doenet-w0088": "prefigure-region-flip-functions-unsupported",
1625
+ "doenet-w0089": "prefigure-region-non-formula-child",
1626
+ "doenet-w0090": "prefigure-label-position-unsupported",
1627
+ "doenet-w0091": "prefigure-fill-style-unsupported",
1628
+ "doenet-w0092": "prefigure-line-style-unknown",
1629
+ "doenet-w0093": "prefigure-marker-style-mapped-to-diamond",
1630
+ "doenet-w0094": "prefigure-marker-style-unsupported",
1631
+ "doenet-w0095": "annotation-ref-unresolvable",
1632
+ "doenet-w0096": "annotation-ref-multiple-targets",
1633
+ "doenet-w0097": "annotation-ref-outside-graph",
1634
+ "doenet-w0098": "annotation-ref-unsupported-target",
1635
+ "doenet-w0099": "annotation-text-missing",
1636
+ "doenet-w0100": "reference-index-unavailable",
1637
+ "doenet-w0102": "component-action-unavailable",
1638
+ "doenet-w0104": "reference-no-referent",
1639
+ "doenet-w0105": "reference-multiple-referents",
1640
+ "doenet-w0106": "children-invalid-attribute-format",
1641
+ "doenet-w0107": "children-invalid",
1642
+ "doenet-w0108": "deprecated-attribute-renamed",
1643
+ "doenet-w0109": "deprecated-attribute-renamed-conflict",
1644
+ "doenet-w0110": "deprecated-attribute-ignored",
1645
+ "doenet-e0001": "pretzel-circuit-first-problem-distractor",
1646
+ "doenet-e0002": "component-type-invalid",
1647
+ "doenet-e0003": "attribute-repeated",
1648
+ "doenet-e0004": "attribute-invalid-for-component",
1649
+ "doenet-e0005": "composite-circular-dependency",
1650
+ "doenet-e0006": "doenetml-version-not-found",
1651
+ "doenet-e0007": "parse-invalid-doenetml",
1652
+ "doenet-e0008": "parse-tag-missing-close-tag",
1653
+ "doenet-e0009": "parse-tag-error",
1654
+ "doenet-e0010": "parse-attribute-missing-value",
1655
+ "doenet-e0011": "parse-attribute-invalid",
1656
+ "doenet-e0012": "parse-attribute-value-invalid",
1657
+ "doenet-e0013": "parse-attribute-value-quote-mismatch",
1658
+ "doenet-e0014": "parse-open-tag-name-missing",
1659
+ "doenet-e0015": "parse-tag-not-closed",
1660
+ "doenet-e0016": "parse-self-closing-tag-name-missing",
1661
+ "doenet-e0017": "parse-self-closing-tag-not-closed",
1662
+ "doenet-e0018": "parse-tag-invalid-attributes",
1663
+ "doenet-e0019": "parse-close-tag-name-missing",
1664
+ "doenet-e0020": "parse-attribute-value-unquoted",
1665
+ "doenet-e0021": "parse-close-tag-without-open-tag",
1666
+ "doenet-e0022": "parse-close-tag-mismatched",
1667
+ "doenet-e0023": "parser-node-unconvertible",
1668
+ "doenet-e0024": "component-name-invalid-start",
1669
+ "doenet-e0025": "name-attribute-invalid",
1670
+ "doenet-e0026": "answer-video-watched-missing-video",
1671
+ "doenet-e0027": "answer-video-watched-video-not-reference",
1672
+ "doenet-e0028": "answer-name-not-single-text",
1673
+ "doenet-e0029": "external-doenetml-recursion-limit",
1674
+ "doenet-e0030": "external-doenetml-unavailable",
1675
+ "doenet-e0031": "external-doenetml-type-mismatch",
1676
+ "doenet-a0001": "accessibility-short-description-or-decorative",
1677
+ "doenet-a0002": "accessibility-video-short-description",
1678
+ "doenet-a0003": "accessibility-input-short-description-or-label",
1679
+ "doenet-a0004": "accessibility-answer-input-short-description-or-label",
1680
+ "doenet-a0005": "accessibility-short-description-contains-math",
1681
+ "doenet-a0006": "accessibility-section-title-insufficient-contrast",
1682
+ "doenet-a0007": "style-definition-insufficient-contrast",
1683
+ "doenet-a0008": "style-definition-dark-mode-text-background-contrast",
1684
+ "doenet-a0009": "style-definition-dark-mode-text-canvas-contrast"
1685
+ };
1686
+ function isDiagnosticCode(code) {
1687
+ return Object.prototype.hasOwnProperty.call(DIAGNOSTIC_CODES, code);
1688
+ }
1689
+ function asListArg(value) {
1690
+ if (Array.isArray(value)) {
1691
+ return { list: value };
1692
+ }
1693
+ if (typeof value === "object" && value !== null && "list" in value) {
1694
+ const candidate = value;
1695
+ return Array.isArray(candidate.list) ? candidate : void 0;
1696
+ }
1697
+ return void 0;
1698
+ }
1699
+ const LIST_TYPES = ["conjunction", "disjunction", "unit"];
1700
+ function listFormatFor(locale, type) {
1701
+ const options = {
1702
+ style: "long",
1703
+ type: LIST_TYPES.includes(type) ? type : "conjunction"
1704
+ };
1705
+ try {
1706
+ return new Intl.ListFormat(locale, options);
1707
+ } catch {
1708
+ return new Intl.ListFormat(DEFAULT_LOCALE, options);
1709
+ }
1710
+ }
1711
+ function lowerArgs(args, locale) {
1712
+ if (args === void 0 || args === null) {
1713
+ return void 0;
1714
+ }
1715
+ const lowered = {};
1716
+ for (const [name2, value] of Object.entries(args)) {
1717
+ if (typeof value === "string" || typeof value === "number") {
1718
+ lowered[name2] = value;
1719
+ continue;
1720
+ }
1721
+ const listArg = asListArg(value);
1722
+ if (listArg === void 0) {
1723
+ lowered[name2] = String(value);
1724
+ continue;
1725
+ }
1726
+ lowered[name2] = listFormatFor(locale, listArg.type).format(
1727
+ listArg.list.map((item) => String(item))
1728
+ );
1729
+ lowered[`${name2}Count`] = listArg.list.length;
1730
+ }
1731
+ return lowered;
1732
+ }
1733
+ let enTranslator;
1734
+ function formatEnglishDiagnostic(code, args) {
1735
+ if (!isDiagnosticCode(code)) {
1736
+ return String(code);
1737
+ }
1738
+ const key = DIAGNOSTIC_CODES[code];
1739
+ enTranslator ??= createTranslator([], {});
1740
+ return enTranslator(key, lowerArgs(args, DEFAULT_LOCALE), code);
1741
+ }
1742
+ function codedDiagnostic({
1743
+ type,
1744
+ code,
1745
+ args,
1746
+ position: position2,
1747
+ sourceDoc,
1748
+ level
1749
+ }) {
1750
+ return {
1751
+ type,
1752
+ message: formatEnglishDiagnostic(code, args),
1753
+ code,
1754
+ ...args === void 0 ? {} : { args },
1755
+ ...position2 === void 0 ? {} : { position: position2 },
1756
+ ...sourceDoc === void 0 ? {} : { sourceDoc },
1757
+ ...level === void 0 ? {} : { level }
1758
+ };
1759
+ }
443
1760
  var commonjsGlobal$1 = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
444
1761
  function getDefaultExportFromCjs$3(x2) {
445
1762
  return x2 && x2.__esModule && Object.prototype.hasOwnProperty.call(x2, "default") ? x2["default"] : x2;
@@ -28494,10 +29811,10 @@ class TreeCursor {
28494
29811
  get node() {
28495
29812
  if (!this.buffer)
28496
29813
  return this._tree;
28497
- let cache = this.bufferNode, result2 = null, depth = 0;
28498
- if (cache && cache.context == this.buffer) {
29814
+ let cache2 = this.bufferNode, result2 = null, depth = 0;
29815
+ if (cache2 && cache2.context == this.buffer) {
28499
29816
  scan: for (let index2 = this.index, d2 = this.stack.length; d2 >= 0; ) {
28500
- for (let c2 = cache; c2; c2 = c2._parent)
29817
+ for (let c2 = cache2; c2; c2 = c2._parent)
28501
29818
  if (c2.index == index2) {
28502
29819
  if (index2 == this.index)
28503
29820
  return c2;
@@ -30775,6 +32092,24 @@ const parser = LRParser.deserialize({
30775
32092
  topRules: { Document: [0, 6] },
30776
32093
  tokenPrec: 276
30777
32094
  });
32095
+ function codedDastError({
32096
+ code,
32097
+ message,
32098
+ args,
32099
+ position: position2,
32100
+ error_type,
32101
+ source_doc
32102
+ }) {
32103
+ return {
32104
+ type: "error",
32105
+ message,
32106
+ code,
32107
+ ...args === void 0 ? {} : { args },
32108
+ ...position2 === void 0 ? {} : { position: position2 },
32109
+ ...error_type === void 0 ? {} : { error_type },
32110
+ ...source_doc === void 0 ? {} : { source_doc }
32111
+ };
32112
+ }
30778
32113
  const _ENTITY_MAP = { "AEli": "Æ", "AElig": "Æ", "AM": "&", "AMP": "&", "Aacut": "Á", "Aacute": "Á", "Abreve": "Ă", "Acir": "Â", "Acirc": "Â", "Acy": "А", "Afr": "𝔄", "Agrav": "À", "Agrave": "À", "Alpha": "Α", "Amacr": "Ā", "And": "⩓", "Aogon": "Ą", "Aopf": "𝔸", "ApplyFunction": "⁡", "Arin": "Å", "Aring": "Å", "Ascr": "𝒜", "Assign": "≔", "Atild": "Ã", "Atilde": "Ã", "Aum": "Ä", "Auml": "Ä", "Backslash": "∖", "Barv": "⫧", "Barwed": "⌆", "Bcy": "Б", "Because": "∵", "Bernoullis": "ℬ", "Beta": "Β", "Bfr": "𝔅", "Bopf": "𝔹", "Breve": "˘", "Bscr": "ℬ", "Bumpeq": "≎", "CHcy": "Ч", "COP": "©", "COPY": "©", "Cacute": "Ć", "Cap": "⋒", "CapitalDifferentialD": "ⅅ", "Cayleys": "ℭ", "Ccaron": "Č", "Ccedi": "Ç", "Ccedil": "Ç", "Ccirc": "Ĉ", "Cconint": "∰", "Cdot": "Ċ", "Cedilla": "¸", "CenterDot": "·", "Cfr": "ℭ", "Chi": "Χ", "CircleDot": "⊙", "CircleMinus": "⊖", "CirclePlus": "⊕", "CircleTimes": "⊗", "ClockwiseContourIntegral": "∲", "CloseCurlyDoubleQuote": "”", "CloseCurlyQuote": "’", "Colon": "∷", "Colone": "⩴", "Congruent": "≡", "Conint": "∯", "ContourIntegral": "∮", "Copf": "ℂ", "Coproduct": "∐", "CounterClockwiseContourIntegral": "∳", "Cross": "⨯", "Cscr": "𝒞", "Cup": "⋓", "CupCap": "≍", "DD": "ⅅ", "DDotrahd": "⤑", "DJcy": "Ђ", "DScy": "Ѕ", "DZcy": "Џ", "Dagger": "‡", "Darr": "↡", "Dashv": "⫤", "Dcaron": "Ď", "Dcy": "Д", "Del": "∇", "Delta": "Δ", "Dfr": "𝔇", "DiacriticalAcute": "´", "DiacriticalDot": "˙", "DiacriticalDoubleAcute": "˝", "DiacriticalGrave": "`", "DiacriticalTilde": "˜", "Diamond": "⋄", "DifferentialD": "ⅆ", "Dopf": "𝔻", "Dot": "¨", "DotDot": "⃜", "DotEqual": "≐", "DoubleContourIntegral": "∯", "DoubleDot": "¨", "DoubleDownArrow": "⇓", "DoubleLeftArrow": "⇐", "DoubleLeftRightArrow": "⇔", "DoubleLeftTee": "⫤", "DoubleLongLeftArrow": "⟸", "DoubleLongLeftRightArrow": "⟺", "DoubleLongRightArrow": "⟹", "DoubleRightArrow": "⇒", "DoubleRightTee": "⊨", "DoubleUpArrow": "⇑", "DoubleUpDownArrow": "⇕", "DoubleVerticalBar": "∥", "DownArrow": "↓", "DownArrowBar": "⤓", "DownArrowUpArrow": "⇵", "DownBreve": "̑", "DownLeftRightVector": "⥐", "DownLeftTeeVector": "⥞", "DownLeftVector": "↽", "DownLeftVectorBar": "⥖", "DownRightTeeVector": "⥟", "DownRightVector": "⇁", "DownRightVectorBar": "⥗", "DownTee": "⊤", "DownTeeArrow": "↧", "Downarrow": "⇓", "Dscr": "𝒟", "Dstrok": "Đ", "ENG": "Ŋ", "ET": "Ð", "ETH": "Ð", "Eacut": "É", "Eacute": "É", "Ecaron": "Ě", "Ecir": "Ê", "Ecirc": "Ê", "Ecy": "Э", "Edot": "Ė", "Efr": "𝔈", "Egrav": "È", "Egrave": "È", "Element": "∈", "Emacr": "Ē", "EmptySmallSquare": "◻", "EmptyVerySmallSquare": "▫", "Eogon": "Ę", "Eopf": "𝔼", "Epsilon": "Ε", "Equal": "⩵", "EqualTilde": "≂", "Equilibrium": "⇌", "Escr": "ℰ", "Esim": "⩳", "Eta": "Η", "Eum": "Ë", "Euml": "Ë", "Exists": "∃", "ExponentialE": "ⅇ", "Fcy": "Ф", "Ffr": "𝔉", "FilledSmallSquare": "◼", "FilledVerySmallSquare": "▪", "Fopf": "𝔽", "ForAll": "∀", "Fouriertrf": "ℱ", "Fscr": "ℱ", "GJcy": "Ѓ", "G": ">", "GT": ">", "Gamma": "Γ", "Gammad": "Ϝ", "Gbreve": "Ğ", "Gcedil": "Ģ", "Gcirc": "Ĝ", "Gcy": "Г", "Gdot": "Ġ", "Gfr": "𝔊", "Gg": "⋙", "Gopf": "𝔾", "GreaterEqual": "≥", "GreaterEqualLess": "⋛", "GreaterFullEqual": "≧", "GreaterGreater": "⪢", "GreaterLess": "≷", "GreaterSlantEqual": "⩾", "GreaterTilde": "≳", "Gscr": "𝒢", "Gt": "≫", "HARDcy": "Ъ", "Hacek": "ˇ", "Hat": "^", "Hcirc": "Ĥ", "Hfr": "ℌ", "HilbertSpace": "ℋ", "Hopf": "ℍ", "HorizontalLine": "─", "Hscr": "ℋ", "Hstrok": "Ħ", "HumpDownHump": "≎", "HumpEqual": "≏", "IEcy": "Е", "IJlig": "IJ", "IOcy": "Ё", "Iacut": "Í", "Iacute": "Í", "Icir": "Î", "Icirc": "Î", "Icy": "И", "Idot": "İ", "Ifr": "ℑ", "Igrav": "Ì", "Igrave": "Ì", "Im": "ℑ", "Imacr": "Ī", "ImaginaryI": "ⅈ", "Implies": "⇒", "Int": "∬", "Integral": "∫", "Intersection": "⋂", "InvisibleComma": "⁣", "InvisibleTimes": "⁢", "Iogon": "Į", "Iopf": "𝕀", "Iota": "Ι", "Iscr": "ℐ", "Itilde": "Ĩ", "Iukcy": "І", "Ium": "Ï", "Iuml": "Ï", "Jcirc": "Ĵ", "Jcy": "Й", "Jfr": "𝔍", "Jopf": "𝕁", "Jscr": "𝒥", "Jsercy": "Ј", "Jukcy": "Є", "KHcy": "Х", "KJcy": "Ќ", "Kappa": "Κ", "Kcedil": "Ķ", "Kcy": "К", "Kfr": "𝔎", "Kopf": "𝕂", "Kscr": "𝒦", "LJcy": "Љ", "L": "<", "LT": "<", "Lacute": "Ĺ", "Lambda": "Λ", "Lang": "⟪", "Laplacetrf": "ℒ", "Larr": "↞", "Lcaron": "Ľ", "Lcedil": "Ļ", "Lcy": "Л", "LeftAngleBracket": "⟨", "LeftArrow": "←", "LeftArrowBar": "⇤", "LeftArrowRightArrow": "⇆", "LeftCeiling": "⌈", "LeftDoubleBracket": "⟦", "LeftDownTeeVector": "⥡", "LeftDownVector": "⇃", "LeftDownVectorBar": "⥙", "LeftFloor": "⌊", "LeftRightArrow": "↔", "LeftRightVector": "⥎", "LeftTee": "⊣", "LeftTeeArrow": "↤", "LeftTeeVector": "⥚", "LeftTriangle": "⊲", "LeftTriangleBar": "⧏", "LeftTriangleEqual": "⊴", "LeftUpDownVector": "⥑", "LeftUpTeeVector": "⥠", "LeftUpVector": "↿", "LeftUpVectorBar": "⥘", "LeftVector": "↼", "LeftVectorBar": "⥒", "Leftarrow": "⇐", "Leftrightarrow": "⇔", "LessEqualGreater": "⋚", "LessFullEqual": "≦", "LessGreater": "≶", "LessLess": "⪡", "LessSlantEqual": "⩽", "LessTilde": "≲", "Lfr": "𝔏", "Ll": "⋘", "Lleftarrow": "⇚", "Lmidot": "Ŀ", "LongLeftArrow": "⟵", "LongLeftRightArrow": "⟷", "LongRightArrow": "⟶", "Longleftarrow": "⟸", "Longleftrightarrow": "⟺", "Longrightarrow": "⟹", "Lopf": "𝕃", "LowerLeftArrow": "↙", "LowerRightArrow": "↘", "Lscr": "ℒ", "Lsh": "↰", "Lstrok": "Ł", "Lt": "≪", "Map": "⤅", "Mcy": "М", "MediumSpace": " ", "Mellintrf": "ℳ", "Mfr": "𝔐", "MinusPlus": "∓", "Mopf": "𝕄", "Mscr": "ℳ", "Mu": "Μ", "NJcy": "Њ", "Nacute": "Ń", "Ncaron": "Ň", "Ncedil": "Ņ", "Ncy": "Н", "NegativeMediumSpace": "​", "NegativeThickSpace": "​", "NegativeThinSpace": "​", "NegativeVeryThinSpace": "​", "NestedGreaterGreater": "≫", "NestedLessLess": "≪", "NewLine": "\n", "Nfr": "𝔑", "NoBreak": "⁠", "NonBreakingSpace": " ", "Nopf": "ℕ", "Not": "⫬", "NotCongruent": "≢", "NotCupCap": "≭", "NotDoubleVerticalBar": "∦", "NotElement": "∉", "NotEqual": "≠", "NotEqualTilde": "≂̸", "NotExists": "∄", "NotGreater": "≯", "NotGreaterEqual": "≱", "NotGreaterFullEqual": "≧̸", "NotGreaterGreater": "≫̸", "NotGreaterLess": "≹", "NotGreaterSlantEqual": "⩾̸", "NotGreaterTilde": "≵", "NotHumpDownHump": "≎̸", "NotHumpEqual": "≏̸", "NotLeftTriangle": "⋪", "NotLeftTriangleBar": "⧏̸", "NotLeftTriangleEqual": "⋬", "NotLess": "≮", "NotLessEqual": "≰", "NotLessGreater": "≸", "NotLessLess": "≪̸", "NotLessSlantEqual": "⩽̸", "NotLessTilde": "≴", "NotNestedGreaterGreater": "⪢̸", "NotNestedLessLess": "⪡̸", "NotPrecedes": "⊀", "NotPrecedesEqual": "⪯̸", "NotPrecedesSlantEqual": "⋠", "NotReverseElement": "∌", "NotRightTriangle": "⋫", "NotRightTriangleBar": "⧐̸", "NotRightTriangleEqual": "⋭", "NotSquareSubset": "⊏̸", "NotSquareSubsetEqual": "⋢", "NotSquareSuperset": "⊐̸", "NotSquareSupersetEqual": "⋣", "NotSubset": "⊂⃒", "NotSubsetEqual": "⊈", "NotSucceeds": "⊁", "NotSucceedsEqual": "⪰̸", "NotSucceedsSlantEqual": "⋡", "NotSucceedsTilde": "≿̸", "NotSuperset": "⊃⃒", "NotSupersetEqual": "⊉", "NotTilde": "≁", "NotTildeEqual": "≄", "NotTildeFullEqual": "≇", "NotTildeTilde": "≉", "NotVerticalBar": "∤", "Nscr": "𝒩", "Ntild": "Ñ", "Ntilde": "Ñ", "Nu": "Ν", "OElig": "Œ", "Oacut": "Ó", "Oacute": "Ó", "Ocir": "Ô", "Ocirc": "Ô", "Ocy": "О", "Odblac": "Ő", "Ofr": "𝔒", "Ograv": "Ò", "Ograve": "Ò", "Omacr": "Ō", "Omega": "Ω", "Omicron": "Ο", "Oopf": "𝕆", "OpenCurlyDoubleQuote": "“", "OpenCurlyQuote": "‘", "Or": "⩔", "Oscr": "𝒪", "Oslas": "Ø", "Oslash": "Ø", "Otild": "Õ", "Otilde": "Õ", "Otimes": "⨷", "Oum": "Ö", "Ouml": "Ö", "OverBar": "‾", "OverBrace": "⏞", "OverBracket": "⎴", "OverParenthesis": "⏜", "PartialD": "∂", "Pcy": "П", "Pfr": "𝔓", "Phi": "Φ", "Pi": "Π", "PlusMinus": "±", "Poincareplane": "ℌ", "Popf": "ℙ", "Pr": "⪻", "Precedes": "≺", "PrecedesEqual": "⪯", "PrecedesSlantEqual": "≼", "PrecedesTilde": "≾", "Prime": "″", "Product": "∏", "Proportion": "∷", "Proportional": "∝", "Pscr": "𝒫", "Psi": "Ψ", "QUO": '"', "QUOT": '"', "Qfr": "𝔔", "Qopf": "ℚ", "Qscr": "𝒬", "RBarr": "⤐", "RE": "®", "REG": "®", "Racute": "Ŕ", "Rang": "⟫", "Rarr": "↠", "Rarrtl": "⤖", "Rcaron": "Ř", "Rcedil": "Ŗ", "Rcy": "Р", "Re": "ℜ", "ReverseElement": "∋", "ReverseEquilibrium": "⇋", "ReverseUpEquilibrium": "⥯", "Rfr": "ℜ", "Rho": "Ρ", "RightAngleBracket": "⟩", "RightArrow": "→", "RightArrowBar": "⇥", "RightArrowLeftArrow": "⇄", "RightCeiling": "⌉", "RightDoubleBracket": "⟧", "RightDownTeeVector": "⥝", "RightDownVector": "⇂", "RightDownVectorBar": "⥕", "RightFloor": "⌋", "RightTee": "⊢", "RightTeeArrow": "↦", "RightTeeVector": "⥛", "RightTriangle": "⊳", "RightTriangleBar": "⧐", "RightTriangleEqual": "⊵", "RightUpDownVector": "⥏", "RightUpTeeVector": "⥜", "RightUpVector": "↾", "RightUpVectorBar": "⥔", "RightVector": "⇀", "RightVectorBar": "⥓", "Rightarrow": "⇒", "Ropf": "ℝ", "RoundImplies": "⥰", "Rrightarrow": "⇛", "Rscr": "ℛ", "Rsh": "↱", "RuleDelayed": "⧴", "SHCHcy": "Щ", "SHcy": "Ш", "SOFTcy": "Ь", "Sacute": "Ś", "Sc": "⪼", "Scaron": "Š", "Scedil": "Ş", "Scirc": "Ŝ", "Scy": "С", "Sfr": "𝔖", "ShortDownArrow": "↓", "ShortLeftArrow": "←", "ShortRightArrow": "→", "ShortUpArrow": "↑", "Sigma": "Σ", "SmallCircle": "∘", "Sopf": "𝕊", "Sqrt": "√", "Square": "□", "SquareIntersection": "⊓", "SquareSubset": "⊏", "SquareSubsetEqual": "⊑", "SquareSuperset": "⊐", "SquareSupersetEqual": "⊒", "SquareUnion": "⊔", "Sscr": "𝒮", "Star": "⋆", "Sub": "⋐", "Subset": "⋐", "SubsetEqual": "⊆", "Succeeds": "≻", "SucceedsEqual": "⪰", "SucceedsSlantEqual": "≽", "SucceedsTilde": "≿", "SuchThat": "∋", "Sum": "∑", "Sup": "⋑", "Superset": "⊃", "SupersetEqual": "⊇", "Supset": "⋑", "THOR": "Þ", "THORN": "Þ", "TRADE": "™", "TSHcy": "Ћ", "TScy": "Ц", "Tab": " ", "Tau": "Τ", "Tcaron": "Ť", "Tcedil": "Ţ", "Tcy": "Т", "Tfr": "𝔗", "Therefore": "∴", "Theta": "Θ", "ThickSpace": "  ", "ThinSpace": " ", "Tilde": "∼", "TildeEqual": "≃", "TildeFullEqual": "≅", "TildeTilde": "≈", "Topf": "𝕋", "TripleDot": "⃛", "Tscr": "𝒯", "Tstrok": "Ŧ", "Uacut": "Ú", "Uacute": "Ú", "Uarr": "↟", "Uarrocir": "⥉", "Ubrcy": "Ў", "Ubreve": "Ŭ", "Ucir": "Û", "Ucirc": "Û", "Ucy": "У", "Udblac": "Ű", "Ufr": "𝔘", "Ugrav": "Ù", "Ugrave": "Ù", "Umacr": "Ū", "UnderBar": "_", "UnderBrace": "⏟", "UnderBracket": "⎵", "UnderParenthesis": "⏝", "Union": "⋃", "UnionPlus": "⊎", "Uogon": "Ų", "Uopf": "𝕌", "UpArrow": "↑", "UpArrowBar": "⤒", "UpArrowDownArrow": "⇅", "UpDownArrow": "↕", "UpEquilibrium": "⥮", "UpTee": "⊥", "UpTeeArrow": "↥", "Uparrow": "⇑", "Updownarrow": "⇕", "UpperLeftArrow": "↖", "UpperRightArrow": "↗", "Upsi": "ϒ", "Upsilon": "Υ", "Uring": "Ů", "Uscr": "𝒰", "Utilde": "Ũ", "Uum": "Ü", "Uuml": "Ü", "VDash": "⊫", "Vbar": "⫫", "Vcy": "В", "Vdash": "⊩", "Vdashl": "⫦", "Vee": "⋁", "Verbar": "‖", "Vert": "‖", "VerticalBar": "∣", "VerticalLine": "|", "VerticalSeparator": "❘", "VerticalTilde": "≀", "VeryThinSpace": " ", "Vfr": "𝔙", "Vopf": "𝕍", "Vscr": "𝒱", "Vvdash": "⊪", "Wcirc": "Ŵ", "Wedge": "⋀", "Wfr": "𝔚", "Wopf": "𝕎", "Wscr": "𝒲", "Xfr": "𝔛", "Xi": "Ξ", "Xopf": "𝕏", "Xscr": "𝒳", "YAcy": "Я", "YIcy": "Ї", "YUcy": "Ю", "Yacut": "Ý", "Yacute": "Ý", "Ycirc": "Ŷ", "Ycy": "Ы", "Yfr": "𝔜", "Yopf": "𝕐", "Yscr": "𝒴", "Yuml": "Ÿ", "ZHcy": "Ж", "Zacute": "Ź", "Zcaron": "Ž", "Zcy": "З", "Zdot": "Ż", "ZeroWidthSpace": "​", "Zeta": "Ζ", "Zfr": "ℨ", "Zopf": "ℤ", "Zscr": "𝒵", "aacut": "á", "aacute": "á", "abreve": "ă", "ac": "∾", "acE": "∾̳", "acd": "∿", "acir": "â", "acirc": "â", "acut": "´", "acute": "´", "acy": "а", "aeli": "æ", "aelig": "æ", "af": "⁡", "afr": "𝔞", "agrav": "à", "agrave": "à", "alefsym": "ℵ", "aleph": "ℵ", "alpha": "α", "amacr": "ā", "amalg": "⨿", "am": "&", "amp": "&", "and": "∧", "andand": "⩕", "andd": "⩜", "andslope": "⩘", "andv": "⩚", "ang": "∠", "ange": "⦤", "angle": "∠", "angmsd": "∡", "angmsdaa": "⦨", "angmsdab": "⦩", "angmsdac": "⦪", "angmsdad": "⦫", "angmsdae": "⦬", "angmsdaf": "⦭", "angmsdag": "⦮", "angmsdah": "⦯", "angrt": "∟", "angrtvb": "⊾", "angrtvbd": "⦝", "angsph": "∢", "angst": "Å", "angzarr": "⍼", "aogon": "ą", "aopf": "𝕒", "ap": "≈", "apE": "⩰", "apacir": "⩯", "ape": "≊", "apid": "≋", "apos": "'", "approx": "≈", "approxeq": "≊", "arin": "å", "aring": "å", "ascr": "𝒶", "ast": "*", "asymp": "≈", "asympeq": "≍", "atild": "ã", "atilde": "ã", "aum": "ä", "auml": "ä", "awconint": "∳", "awint": "⨑", "bNot": "⫭", "backcong": "≌", "backepsilon": "϶", "backprime": "‵", "backsim": "∽", "backsimeq": "⋍", "barvee": "⊽", "barwed": "⌅", "barwedge": "⌅", "bbrk": "⎵", "bbrktbrk": "⎶", "bcong": "≌", "bcy": "б", "bdquo": "„", "becaus": "∵", "because": "∵", "bemptyv": "⦰", "bepsi": "϶", "bernou": "ℬ", "beta": "β", "beth": "ℶ", "between": "≬", "bfr": "𝔟", "bigcap": "⋂", "bigcirc": "◯", "bigcup": "⋃", "bigodot": "⨀", "bigoplus": "⨁", "bigotimes": "⨂", "bigsqcup": "⨆", "bigstar": "★", "bigtriangledown": "▽", "bigtriangleup": "△", "biguplus": "⨄", "bigvee": "⋁", "bigwedge": "⋀", "bkarow": "⤍", "blacklozenge": "⧫", "blacksquare": "▪", "blacktriangle": "▴", "blacktriangledown": "▾", "blacktriangleleft": "◂", "blacktriangleright": "▸", "blank": "␣", "blk12": "▒", "blk14": "░", "blk34": "▓", "block": "█", "bne": "=⃥", "bnequiv": "≡⃥", "bnot": "⌐", "bopf": "𝕓", "bot": "⊥", "bottom": "⊥", "bowtie": "⋈", "boxDL": "╗", "boxDR": "╔", "boxDl": "╖", "boxDr": "╓", "boxH": "═", "boxHD": "╦", "boxHU": "╩", "boxHd": "╤", "boxHu": "╧", "boxUL": "╝", "boxUR": "╚", "boxUl": "╜", "boxUr": "╙", "boxV": "║", "boxVH": "╬", "boxVL": "╣", "boxVR": "╠", "boxVh": "╫", "boxVl": "╢", "boxVr": "╟", "boxbox": "⧉", "boxdL": "╕", "boxdR": "╒", "boxdl": "┐", "boxdr": "┌", "boxh": "─", "boxhD": "╥", "boxhU": "╨", "boxhd": "┬", "boxhu": "┴", "boxminus": "⊟", "boxplus": "⊞", "boxtimes": "⊠", "boxuL": "╛", "boxuR": "╘", "boxul": "┘", "boxur": "└", "boxv": "│", "boxvH": "╪", "boxvL": "╡", "boxvR": "╞", "boxvh": "┼", "boxvl": "┤", "boxvr": "├", "bprime": "‵", "breve": "˘", "brvba": "¦", "brvbar": "¦", "bscr": "𝒷", "bsemi": "⁏", "bsim": "∽", "bsime": "⋍", "bsol": "\\", "bsolb": "⧅", "bsolhsub": "⟈", "bull": "•", "bullet": "•", "bump": "≎", "bumpE": "⪮", "bumpe": "≏", "bumpeq": "≏", "cacute": "ć", "cap": "∩", "capand": "⩄", "capbrcup": "⩉", "capcap": "⩋", "capcup": "⩇", "capdot": "⩀", "caps": "∩︀", "caret": "⁁", "caron": "ˇ", "ccaps": "⩍", "ccaron": "č", "ccedi": "ç", "ccedil": "ç", "ccirc": "ĉ", "ccups": "⩌", "ccupssm": "⩐", "cdot": "ċ", "cedi": "¸", "cedil": "¸", "cemptyv": "⦲", "cen": "¢", "cent": "¢", "centerdot": "·", "cfr": "𝔠", "chcy": "ч", "check": "✓", "checkmark": "✓", "chi": "χ", "cir": "○", "cirE": "⧃", "circ": "ˆ", "circeq": "≗", "circlearrowleft": "↺", "circlearrowright": "↻", "circledR": "®", "circledS": "Ⓢ", "circledast": "⊛", "circledcirc": "⊚", "circleddash": "⊝", "cire": "≗", "cirfnint": "⨐", "cirmid": "⫯", "cirscir": "⧂", "clubs": "♣", "clubsuit": "♣", "colon": ":", "colone": "≔", "coloneq": "≔", "comma": ",", "commat": "@", "comp": "∁", "compfn": "∘", "complement": "∁", "complexes": "ℂ", "cong": "≅", "congdot": "⩭", "conint": "∮", "copf": "𝕔", "coprod": "∐", "cop": "©", "copy": "©", "copysr": "℗", "crarr": "↵", "cross": "✗", "cscr": "𝒸", "csub": "⫏", "csube": "⫑", "csup": "⫐", "csupe": "⫒", "ctdot": "⋯", "cudarrl": "⤸", "cudarrr": "⤵", "cuepr": "⋞", "cuesc": "⋟", "cularr": "↶", "cularrp": "⤽", "cup": "∪", "cupbrcap": "⩈", "cupcap": "⩆", "cupcup": "⩊", "cupdot": "⊍", "cupor": "⩅", "cups": "∪︀", "curarr": "↷", "curarrm": "⤼", "curlyeqprec": "⋞", "curlyeqsucc": "⋟", "curlyvee": "⋎", "curlywedge": "⋏", "curre": "¤", "curren": "¤", "curvearrowleft": "↶", "curvearrowright": "↷", "cuvee": "⋎", "cuwed": "⋏", "cwconint": "∲", "cwint": "∱", "cylcty": "⌭", "dArr": "⇓", "dHar": "⥥", "dagger": "†", "daleth": "ℸ", "darr": "↓", "dash": "‐", "dashv": "⊣", "dbkarow": "⤏", "dblac": "˝", "dcaron": "ď", "dcy": "д", "dd": "ⅆ", "ddagger": "‡", "ddarr": "⇊", "ddotseq": "⩷", "de": "°", "deg": "°", "delta": "δ", "demptyv": "⦱", "dfisht": "⥿", "dfr": "𝔡", "dharl": "⇃", "dharr": "⇂", "diam": "⋄", "diamond": "⋄", "diamondsuit": "♦", "diams": "♦", "die": "¨", "digamma": "ϝ", "disin": "⋲", "div": "÷", "divid": "÷", "divide": "÷", "divideontimes": "⋇", "divonx": "⋇", "djcy": "ђ", "dlcorn": "⌞", "dlcrop": "⌍", "dollar": "$", "dopf": "𝕕", "dot": "˙", "doteq": "≐", "doteqdot": "≑", "dotminus": "∸", "dotplus": "∔", "dotsquare": "⊡", "doublebarwedge": "⌆", "downarrow": "↓", "downdownarrows": "⇊", "downharpoonleft": "⇃", "downharpoonright": "⇂", "drbkarow": "⤐", "drcorn": "⌟", "drcrop": "⌌", "dscr": "𝒹", "dscy": "ѕ", "dsol": "⧶", "dstrok": "đ", "dtdot": "⋱", "dtri": "▿", "dtrif": "▾", "duarr": "⇵", "duhar": "⥯", "dwangle": "⦦", "dzcy": "џ", "dzigrarr": "⟿", "eDDot": "⩷", "eDot": "≑", "eacut": "é", "eacute": "é", "easter": "⩮", "ecaron": "ě", "ecir": "ê", "ecirc": "ê", "ecolon": "≕", "ecy": "э", "edot": "ė", "ee": "ⅇ", "efDot": "≒", "efr": "𝔢", "eg": "⪚", "egrav": "è", "egrave": "è", "egs": "⪖", "egsdot": "⪘", "el": "⪙", "elinters": "⏧", "ell": "ℓ", "els": "⪕", "elsdot": "⪗", "emacr": "ē", "empty": "∅", "emptyset": "∅", "emptyv": "∅", "emsp13": " ", "emsp14": " ", "emsp": " ", "eng": "ŋ", "ensp": " ", "eogon": "ę", "eopf": "𝕖", "epar": "⋕", "eparsl": "⧣", "eplus": "⩱", "epsi": "ε", "epsilon": "ε", "epsiv": "ϵ", "eqcirc": "≖", "eqcolon": "≕", "eqsim": "≂", "eqslantgtr": "⪖", "eqslantless": "⪕", "equals": "=", "equest": "≟", "equiv": "≡", "equivDD": "⩸", "eqvparsl": "⧥", "erDot": "≓", "erarr": "⥱", "escr": "ℯ", "esdot": "≐", "esim": "≂", "eta": "η", "et": "ð", "eth": "ð", "eum": "ë", "euml": "ë", "euro": "€", "excl": "!", "exist": "∃", "expectation": "ℰ", "exponentiale": "ⅇ", "fallingdotseq": "≒", "fcy": "ф", "female": "♀", "ffilig": "ffi", "fflig": "ff", "ffllig": "ffl", "ffr": "𝔣", "filig": "fi", "fjlig": "fj", "flat": "♭", "fllig": "fl", "fltns": "▱", "fnof": "ƒ", "fopf": "𝕗", "forall": "∀", "fork": "⋔", "forkv": "⫙", "fpartint": "⨍", "frac1": "¼", "frac12": "½", "frac13": "⅓", "frac14": "¼", "frac15": "⅕", "frac16": "⅙", "frac18": "⅛", "frac23": "⅔", "frac25": "⅖", "frac3": "¾", "frac34": "¾", "frac35": "⅗", "frac38": "⅜", "frac45": "⅘", "frac56": "⅚", "frac58": "⅝", "frac78": "⅞", "frasl": "⁄", "frown": "⌢", "fscr": "𝒻", "gE": "≧", "gEl": "⪌", "gacute": "ǵ", "gamma": "γ", "gammad": "ϝ", "gap": "⪆", "gbreve": "ğ", "gcirc": "ĝ", "gcy": "г", "gdot": "ġ", "ge": "≥", "gel": "⋛", "geq": "≥", "geqq": "≧", "geqslant": "⩾", "ges": "⩾", "gescc": "⪩", "gesdot": "⪀", "gesdoto": "⪂", "gesdotol": "⪄", "gesl": "⋛︀", "gesles": "⪔", "gfr": "𝔤", "gg": "≫", "ggg": "⋙", "gimel": "ℷ", "gjcy": "ѓ", "gl": "≷", "glE": "⪒", "gla": "⪥", "glj": "⪤", "gnE": "≩", "gnap": "⪊", "gnapprox": "⪊", "gne": "⪈", "gneq": "⪈", "gneqq": "≩", "gnsim": "⋧", "gopf": "𝕘", "grave": "`", "gscr": "ℊ", "gsim": "≳", "gsime": "⪎", "gsiml": "⪐", "g": ">", "gt": ">", "gtcc": "⪧", "gtcir": "⩺", "gtdot": "⋗", "gtlPar": "⦕", "gtquest": "⩼", "gtrapprox": "⪆", "gtrarr": "⥸", "gtrdot": "⋗", "gtreqless": "⋛", "gtreqqless": "⪌", "gtrless": "≷", "gtrsim": "≳", "gvertneqq": "≩︀", "gvnE": "≩︀", "hArr": "⇔", "hairsp": " ", "half": "½", "hamilt": "ℋ", "hardcy": "ъ", "harr": "↔", "harrcir": "⥈", "harrw": "↭", "hbar": "ℏ", "hcirc": "ĥ", "hearts": "♥", "heartsuit": "♥", "hellip": "…", "hercon": "⊹", "hfr": "𝔥", "hksearow": "⤥", "hkswarow": "⤦", "hoarr": "⇿", "homtht": "∻", "hookleftarrow": "↩", "hookrightarrow": "↪", "hopf": "𝕙", "horbar": "―", "hscr": "𝒽", "hslash": "ℏ", "hstrok": "ħ", "hybull": "⁃", "hyphen": "‐", "iacut": "í", "iacute": "í", "ic": "⁣", "icir": "î", "icirc": "î", "icy": "и", "iecy": "е", "iexc": "¡", "iexcl": "¡", "iff": "⇔", "ifr": "𝔦", "igrav": "ì", "igrave": "ì", "ii": "ⅈ", "iiiint": "⨌", "iiint": "∭", "iinfin": "⧜", "iiota": "℩", "ijlig": "ij", "imacr": "ī", "image": "ℑ", "imagline": "ℐ", "imagpart": "ℑ", "imath": "ı", "imof": "⊷", "imped": "Ƶ", "in": "∈", "incare": "℅", "infin": "∞", "infintie": "⧝", "inodot": "ı", "int": "∫", "intcal": "⊺", "integers": "ℤ", "intercal": "⊺", "intlarhk": "⨗", "intprod": "⨼", "iocy": "ё", "iogon": "į", "iopf": "𝕚", "iota": "ι", "iprod": "⨼", "iques": "¿", "iquest": "¿", "iscr": "𝒾", "isin": "∈", "isinE": "⋹", "isindot": "⋵", "isins": "⋴", "isinsv": "⋳", "isinv": "∈", "it": "⁢", "itilde": "ĩ", "iukcy": "і", "ium": "ï", "iuml": "ï", "jcirc": "ĵ", "jcy": "й", "jfr": "𝔧", "jmath": "ȷ", "jopf": "𝕛", "jscr": "𝒿", "jsercy": "ј", "jukcy": "є", "kappa": "κ", "kappav": "ϰ", "kcedil": "ķ", "kcy": "к", "kfr": "𝔨", "kgreen": "ĸ", "khcy": "х", "kjcy": "ќ", "kopf": "𝕜", "kscr": "𝓀", "lAarr": "⇚", "lArr": "⇐", "lAtail": "⤛", "lBarr": "⤎", "lE": "≦", "lEg": "⪋", "lHar": "⥢", "lacute": "ĺ", "laemptyv": "⦴", "lagran": "ℒ", "lambda": "λ", "lang": "⟨", "langd": "⦑", "langle": "⟨", "lap": "⪅", "laqu": "«", "laquo": "«", "larr": "←", "larrb": "⇤", "larrbfs": "⤟", "larrfs": "⤝", "larrhk": "↩", "larrlp": "↫", "larrpl": "⤹", "larrsim": "⥳", "larrtl": "↢", "lat": "⪫", "latail": "⤙", "late": "⪭", "lates": "⪭︀", "lbarr": "⤌", "lbbrk": "❲", "lbrace": "{", "lbrack": "[", "lbrke": "⦋", "lbrksld": "⦏", "lbrkslu": "⦍", "lcaron": "ľ", "lcedil": "ļ", "lceil": "⌈", "lcub": "{", "lcy": "л", "ldca": "⤶", "ldquo": "“", "ldquor": "„", "ldrdhar": "⥧", "ldrushar": "⥋", "ldsh": "↲", "le": "≤", "leftarrow": "←", "leftarrowtail": "↢", "leftharpoondown": "↽", "leftharpoonup": "↼", "leftleftarrows": "⇇", "leftrightarrow": "↔", "leftrightarrows": "⇆", "leftrightharpoons": "⇋", "leftrightsquigarrow": "↭", "leftthreetimes": "⋋", "leg": "⋚", "leq": "≤", "leqq": "≦", "leqslant": "⩽", "les": "⩽", "lescc": "⪨", "lesdot": "⩿", "lesdoto": "⪁", "lesdotor": "⪃", "lesg": "⋚︀", "lesges": "⪓", "lessapprox": "⪅", "lessdot": "⋖", "lesseqgtr": "⋚", "lesseqqgtr": "⪋", "lessgtr": "≶", "lesssim": "≲", "lfisht": "⥼", "lfloor": "⌊", "lfr": "𝔩", "lg": "≶", "lgE": "⪑", "lhard": "↽", "lharu": "↼", "lharul": "⥪", "lhblk": "▄", "ljcy": "љ", "ll": "≪", "llarr": "⇇", "llcorner": "⌞", "llhard": "⥫", "lltri": "◺", "lmidot": "ŀ", "lmoust": "⎰", "lmoustache": "⎰", "lnE": "≨", "lnap": "⪉", "lnapprox": "⪉", "lne": "⪇", "lneq": "⪇", "lneqq": "≨", "lnsim": "⋦", "loang": "⟬", "loarr": "⇽", "lobrk": "⟦", "longleftarrow": "⟵", "longleftrightarrow": "⟷", "longmapsto": "⟼", "longrightarrow": "⟶", "looparrowleft": "↫", "looparrowright": "↬", "lopar": "⦅", "lopf": "𝕝", "loplus": "⨭", "lotimes": "⨴", "lowast": "∗", "lowbar": "_", "loz": "◊", "lozenge": "◊", "lozf": "⧫", "lpar": "(", "lparlt": "⦓", "lrarr": "⇆", "lrcorner": "⌟", "lrhar": "⇋", "lrhard": "⥭", "lrm": "‎", "lrtri": "⊿", "lsaquo": "‹", "lscr": "𝓁", "lsh": "↰", "lsim": "≲", "lsime": "⪍", "lsimg": "⪏", "lsqb": "[", "lsquo": "‘", "lsquor": "‚", "lstrok": "ł", "l": "<", "lt": "<", "ltcc": "⪦", "ltcir": "⩹", "ltdot": "⋖", "lthree": "⋋", "ltimes": "⋉", "ltlarr": "⥶", "ltquest": "⩻", "ltrPar": "⦖", "ltri": "◃", "ltrie": "⊴", "ltrif": "◂", "lurdshar": "⥊", "luruhar": "⥦", "lvertneqq": "≨︀", "lvnE": "≨︀", "mDDot": "∺", "mac": "¯", "macr": "¯", "male": "♂", "malt": "✠", "maltese": "✠", "map": "↦", "mapsto": "↦", "mapstodown": "↧", "mapstoleft": "↤", "mapstoup": "↥", "marker": "▮", "mcomma": "⨩", "mcy": "м", "mdash": "—", "measuredangle": "∡", "mfr": "𝔪", "mho": "℧", "micr": "µ", "micro": "µ", "mid": "∣", "midast": "*", "midcir": "⫰", "middo": "·", "middot": "·", "minus": "−", "minusb": "⊟", "minusd": "∸", "minusdu": "⨪", "mlcp": "⫛", "mldr": "…", "mnplus": "∓", "models": "⊧", "mopf": "𝕞", "mp": "∓", "mscr": "𝓂", "mstpos": "∾", "mu": "μ", "multimap": "⊸", "mumap": "⊸", "nGg": "⋙̸", "nGt": "≫⃒", "nGtv": "≫̸", "nLeftarrow": "⇍", "nLeftrightarrow": "⇎", "nLl": "⋘̸", "nLt": "≪⃒", "nLtv": "≪̸", "nRightarrow": "⇏", "nVDash": "⊯", "nVdash": "⊮", "nabla": "∇", "nacute": "ń", "nang": "∠⃒", "nap": "≉", "napE": "⩰̸", "napid": "≋̸", "napos": "ʼn", "napprox": "≉", "natur": "♮", "natural": "♮", "naturals": "ℕ", "nbs": " ", "nbsp": " ", "nbump": "≎̸", "nbumpe": "≏̸", "ncap": "⩃", "ncaron": "ň", "ncedil": "ņ", "ncong": "≇", "ncongdot": "⩭̸", "ncup": "⩂", "ncy": "н", "ndash": "–", "ne": "≠", "neArr": "⇗", "nearhk": "⤤", "nearr": "↗", "nearrow": "↗", "nedot": "≐̸", "nequiv": "≢", "nesear": "⤨", "nesim": "≂̸", "nexist": "∄", "nexists": "∄", "nfr": "𝔫", "ngE": "≧̸", "nge": "≱", "ngeq": "≱", "ngeqq": "≧̸", "ngeqslant": "⩾̸", "nges": "⩾̸", "ngsim": "≵", "ngt": "≯", "ngtr": "≯", "nhArr": "⇎", "nharr": "↮", "nhpar": "⫲", "ni": "∋", "nis": "⋼", "nisd": "⋺", "niv": "∋", "njcy": "њ", "nlArr": "⇍", "nlE": "≦̸", "nlarr": "↚", "nldr": "‥", "nle": "≰", "nleftarrow": "↚", "nleftrightarrow": "↮", "nleq": "≰", "nleqq": "≦̸", "nleqslant": "⩽̸", "nles": "⩽̸", "nless": "≮", "nlsim": "≴", "nlt": "≮", "nltri": "⋪", "nltrie": "⋬", "nmid": "∤", "nopf": "𝕟", "no": "¬", "not": "¬", "notin": "∉", "notinE": "⋹̸", "notindot": "⋵̸", "notinva": "∉", "notinvb": "⋷", "notinvc": "⋶", "notni": "∌", "notniva": "∌", "notnivb": "⋾", "notnivc": "⋽", "npar": "∦", "nparallel": "∦", "nparsl": "⫽⃥", "npart": "∂̸", "npolint": "⨔", "npr": "⊀", "nprcue": "⋠", "npre": "⪯̸", "nprec": "⊀", "npreceq": "⪯̸", "nrArr": "⇏", "nrarr": "↛", "nrarrc": "⤳̸", "nrarrw": "↝̸", "nrightarrow": "↛", "nrtri": "⋫", "nrtrie": "⋭", "nsc": "⊁", "nsccue": "⋡", "nsce": "⪰̸", "nscr": "𝓃", "nshortmid": "∤", "nshortparallel": "∦", "nsim": "≁", "nsime": "≄", "nsimeq": "≄", "nsmid": "∤", "nspar": "∦", "nsqsube": "⋢", "nsqsupe": "⋣", "nsub": "⊄", "nsubE": "⫅̸", "nsube": "⊈", "nsubset": "⊂⃒", "nsubseteq": "⊈", "nsubseteqq": "⫅̸", "nsucc": "⊁", "nsucceq": "⪰̸", "nsup": "⊅", "nsupE": "⫆̸", "nsupe": "⊉", "nsupset": "⊃⃒", "nsupseteq": "⊉", "nsupseteqq": "⫆̸", "ntgl": "≹", "ntild": "ñ", "ntilde": "ñ", "ntlg": "≸", "ntriangleleft": "⋪", "ntrianglelefteq": "⋬", "ntriangleright": "⋫", "ntrianglerighteq": "⋭", "nu": "ν", "num": "#", "numero": "№", "numsp": " ", "nvDash": "⊭", "nvHarr": "⤄", "nvap": "≍⃒", "nvdash": "⊬", "nvge": "≥⃒", "nvgt": ">⃒", "nvinfin": "⧞", "nvlArr": "⤂", "nvle": "≤⃒", "nvlt": "<⃒", "nvltrie": "⊴⃒", "nvrArr": "⤃", "nvrtrie": "⊵⃒", "nvsim": "∼⃒", "nwArr": "⇖", "nwarhk": "⤣", "nwarr": "↖", "nwarrow": "↖", "nwnear": "⤧", "oS": "Ⓢ", "oacut": "ó", "oacute": "ó", "oast": "⊛", "ocir": "ô", "ocirc": "ô", "ocy": "о", "odash": "⊝", "odblac": "ő", "odiv": "⨸", "odot": "⊙", "odsold": "⦼", "oelig": "œ", "ofcir": "⦿", "ofr": "𝔬", "ogon": "˛", "ograv": "ò", "ograve": "ò", "ogt": "⧁", "ohbar": "⦵", "ohm": "Ω", "oint": "∮", "olarr": "↺", "olcir": "⦾", "olcross": "⦻", "oline": "‾", "olt": "⧀", "omacr": "ō", "omega": "ω", "omicron": "ο", "omid": "⦶", "ominus": "⊖", "oopf": "𝕠", "opar": "⦷", "operp": "⦹", "oplus": "⊕", "or": "∨", "orarr": "↻", "ord": "º", "order": "ℴ", "orderof": "ℴ", "ordf": "ª", "ordm": "º", "origof": "⊶", "oror": "⩖", "orslope": "⩗", "orv": "⩛", "oscr": "ℴ", "oslas": "ø", "oslash": "ø", "osol": "⊘", "otild": "õ", "otilde": "õ", "otimes": "⊗", "otimesas": "⨶", "oum": "ö", "ouml": "ö", "ovbar": "⌽", "par": "¶", "para": "¶", "parallel": "∥", "parsim": "⫳", "parsl": "⫽", "part": "∂", "pcy": "п", "percnt": "%", "period": ".", "permil": "‰", "perp": "⊥", "pertenk": "‱", "pfr": "𝔭", "phi": "φ", "phiv": "ϕ", "phmmat": "ℳ", "phone": "☎", "pi": "π", "pitchfork": "⋔", "piv": "ϖ", "planck": "ℏ", "planckh": "ℎ", "plankv": "ℏ", "plus": "+", "plusacir": "⨣", "plusb": "⊞", "pluscir": "⨢", "plusdo": "∔", "plusdu": "⨥", "pluse": "⩲", "plusm": "±", "plusmn": "±", "plussim": "⨦", "plustwo": "⨧", "pm": "±", "pointint": "⨕", "popf": "𝕡", "poun": "£", "pound": "£", "pr": "≺", "prE": "⪳", "prap": "⪷", "prcue": "≼", "pre": "⪯", "prec": "≺", "precapprox": "⪷", "preccurlyeq": "≼", "preceq": "⪯", "precnapprox": "⪹", "precneqq": "⪵", "precnsim": "⋨", "precsim": "≾", "prime": "′", "primes": "ℙ", "prnE": "⪵", "prnap": "⪹", "prnsim": "⋨", "prod": "∏", "profalar": "⌮", "profline": "⌒", "profsurf": "⌓", "prop": "∝", "propto": "∝", "prsim": "≾", "prurel": "⊰", "pscr": "𝓅", "psi": "ψ", "puncsp": " ", "qfr": "𝔮", "qint": "⨌", "qopf": "𝕢", "qprime": "⁗", "qscr": "𝓆", "quaternions": "ℍ", "quatint": "⨖", "quest": "?", "questeq": "≟", "quo": '"', "quot": '"', "rAarr": "⇛", "rArr": "⇒", "rAtail": "⤜", "rBarr": "⤏", "rHar": "⥤", "race": "∽̱", "racute": "ŕ", "radic": "√", "raemptyv": "⦳", "rang": "⟩", "rangd": "⦒", "range": "⦥", "rangle": "⟩", "raqu": "»", "raquo": "»", "rarr": "→", "rarrap": "⥵", "rarrb": "⇥", "rarrbfs": "⤠", "rarrc": "⤳", "rarrfs": "⤞", "rarrhk": "↪", "rarrlp": "↬", "rarrpl": "⥅", "rarrsim": "⥴", "rarrtl": "↣", "rarrw": "↝", "ratail": "⤚", "ratio": "∶", "rationals": "ℚ", "rbarr": "⤍", "rbbrk": "❳", "rbrace": "}", "rbrack": "]", "rbrke": "⦌", "rbrksld": "⦎", "rbrkslu": "⦐", "rcaron": "ř", "rcedil": "ŗ", "rceil": "⌉", "rcub": "}", "rcy": "р", "rdca": "⤷", "rdldhar": "⥩", "rdquo": "”", "rdquor": "”", "rdsh": "↳", "real": "ℜ", "realine": "ℛ", "realpart": "ℜ", "reals": "ℝ", "rect": "▭", "re": "®", "reg": "®", "rfisht": "⥽", "rfloor": "⌋", "rfr": "𝔯", "rhard": "⇁", "rharu": "⇀", "rharul": "⥬", "rho": "ρ", "rhov": "ϱ", "rightarrow": "→", "rightarrowtail": "↣", "rightharpoondown": "⇁", "rightharpoonup": "⇀", "rightleftarrows": "⇄", "rightleftharpoons": "⇌", "rightrightarrows": "⇉", "rightsquigarrow": "↝", "rightthreetimes": "⋌", "ring": "˚", "risingdotseq": "≓", "rlarr": "⇄", "rlhar": "⇌", "rlm": "‏", "rmoust": "⎱", "rmoustache": "⎱", "rnmid": "⫮", "roang": "⟭", "roarr": "⇾", "robrk": "⟧", "ropar": "⦆", "ropf": "𝕣", "roplus": "⨮", "rotimes": "⨵", "rpar": ")", "rpargt": "⦔", "rppolint": "⨒", "rrarr": "⇉", "rsaquo": "›", "rscr": "𝓇", "rsh": "↱", "rsqb": "]", "rsquo": "’", "rsquor": "’", "rthree": "⋌", "rtimes": "⋊", "rtri": "▹", "rtrie": "⊵", "rtrif": "▸", "rtriltri": "⧎", "ruluhar": "⥨", "rx": "℞", "sacute": "ś", "sbquo": "‚", "sc": "≻", "scE": "⪴", "scap": "⪸", "scaron": "š", "sccue": "≽", "sce": "⪰", "scedil": "ş", "scirc": "ŝ", "scnE": "⪶", "scnap": "⪺", "scnsim": "⋩", "scpolint": "⨓", "scsim": "≿", "scy": "с", "sdot": "⋅", "sdotb": "⊡", "sdote": "⩦", "seArr": "⇘", "searhk": "⤥", "searr": "↘", "searrow": "↘", "sec": "§", "sect": "§", "semi": ";", "seswar": "⤩", "setminus": "∖", "setmn": "∖", "sext": "✶", "sfr": "𝔰", "sfrown": "⌢", "sharp": "♯", "shchcy": "щ", "shcy": "ш", "shortmid": "∣", "shortparallel": "∥", "sh": "­", "shy": "­", "sigma": "σ", "sigmaf": "ς", "sigmav": "ς", "sim": "∼", "simdot": "⩪", "sime": "≃", "simeq": "≃", "simg": "⪞", "simgE": "⪠", "siml": "⪝", "simlE": "⪟", "simne": "≆", "simplus": "⨤", "simrarr": "⥲", "slarr": "←", "smallsetminus": "∖", "smashp": "⨳", "smeparsl": "⧤", "smid": "∣", "smile": "⌣", "smt": "⪪", "smte": "⪬", "smtes": "⪬︀", "softcy": "ь", "sol": "/", "solb": "⧄", "solbar": "⌿", "sopf": "𝕤", "spades": "♠", "spadesuit": "♠", "spar": "∥", "sqcap": "⊓", "sqcaps": "⊓︀", "sqcup": "⊔", "sqcups": "⊔︀", "sqsub": "⊏", "sqsube": "⊑", "sqsubset": "⊏", "sqsubseteq": "⊑", "sqsup": "⊐", "sqsupe": "⊒", "sqsupset": "⊐", "sqsupseteq": "⊒", "squ": "□", "square": "□", "squarf": "▪", "squf": "▪", "srarr": "→", "sscr": "𝓈", "ssetmn": "∖", "ssmile": "⌣", "sstarf": "⋆", "star": "☆", "starf": "★", "straightepsilon": "ϵ", "straightphi": "ϕ", "strns": "¯", "sub": "⊂", "subE": "⫅", "subdot": "⪽", "sube": "⊆", "subedot": "⫃", "submult": "⫁", "subnE": "⫋", "subne": "⊊", "subplus": "⪿", "subrarr": "⥹", "subset": "⊂", "subseteq": "⊆", "subseteqq": "⫅", "subsetneq": "⊊", "subsetneqq": "⫋", "subsim": "⫇", "subsub": "⫕", "subsup": "⫓", "succ": "≻", "succapprox": "⪸", "succcurlyeq": "≽", "succeq": "⪰", "succnapprox": "⪺", "succneqq": "⪶", "succnsim": "⋩", "succsim": "≿", "sum": "∑", "sung": "♪", "sup": "⊃", "sup1": "¹", "sup2": "²", "sup3": "³", "supE": "⫆", "supdot": "⪾", "supdsub": "⫘", "supe": "⊇", "supedot": "⫄", "suphsol": "⟉", "suphsub": "⫗", "suplarr": "⥻", "supmult": "⫂", "supnE": "⫌", "supne": "⊋", "supplus": "⫀", "supset": "⊃", "supseteq": "⊇", "supseteqq": "⫆", "supsetneq": "⊋", "supsetneqq": "⫌", "supsim": "⫈", "supsub": "⫔", "supsup": "⫖", "swArr": "⇙", "swarhk": "⤦", "swarr": "↙", "swarrow": "↙", "swnwar": "⤪", "szli": "ß", "szlig": "ß", "target": "⌖", "tau": "τ", "tbrk": "⎴", "tcaron": "ť", "tcedil": "ţ", "tcy": "т", "tdot": "⃛", "telrec": "⌕", "tfr": "𝔱", "there4": "∴", "therefore": "∴", "theta": "θ", "thetasym": "ϑ", "thetav": "ϑ", "thickapprox": "≈", "thicksim": "∼", "thinsp": " ", "thkap": "≈", "thksim": "∼", "thor": "þ", "thorn": "þ", "tilde": "˜", "time": "×", "times": "×", "timesb": "⊠", "timesbar": "⨱", "timesd": "⨰", "tint": "∭", "toea": "⤨", "top": "⊤", "topbot": "⌶", "topcir": "⫱", "topf": "𝕥", "topfork": "⫚", "tosa": "⤩", "tprime": "‴", "trade": "™", "triangle": "▵", "triangledown": "▿", "triangleleft": "◃", "trianglelefteq": "⊴", "triangleq": "≜", "triangleright": "▹", "trianglerighteq": "⊵", "tridot": "◬", "trie": "≜", "triminus": "⨺", "triplus": "⨹", "trisb": "⧍", "tritime": "⨻", "trpezium": "⏢", "tscr": "𝓉", "tscy": "ц", "tshcy": "ћ", "tstrok": "ŧ", "twixt": "≬", "twoheadleftarrow": "↞", "twoheadrightarrow": "↠", "uArr": "⇑", "uHar": "⥣", "uacut": "ú", "uacute": "ú", "uarr": "↑", "ubrcy": "ў", "ubreve": "ŭ", "ucir": "û", "ucirc": "û", "ucy": "у", "udarr": "⇅", "udblac": "ű", "udhar": "⥮", "ufisht": "⥾", "ufr": "𝔲", "ugrav": "ù", "ugrave": "ù", "uharl": "↿", "uharr": "↾", "uhblk": "▀", "ulcorn": "⌜", "ulcorner": "⌜", "ulcrop": "⌏", "ultri": "◸", "umacr": "ū", "um": "¨", "uml": "¨", "uogon": "ų", "uopf": "𝕦", "uparrow": "↑", "updownarrow": "↕", "upharpoonleft": "↿", "upharpoonright": "↾", "uplus": "⊎", "upsi": "υ", "upsih": "ϒ", "upsilon": "υ", "upuparrows": "⇈", "urcorn": "⌝", "urcorner": "⌝", "urcrop": "⌎", "uring": "ů", "urtri": "◹", "uscr": "𝓊", "utdot": "⋰", "utilde": "ũ", "utri": "▵", "utrif": "▴", "uuarr": "⇈", "uum": "ü", "uuml": "ü", "uwangle": "⦧", "vArr": "⇕", "vBar": "⫨", "vBarv": "⫩", "vDash": "⊨", "vangrt": "⦜", "varepsilon": "ϵ", "varkappa": "ϰ", "varnothing": "∅", "varphi": "ϕ", "varpi": "ϖ", "varpropto": "∝", "varr": "↕", "varrho": "ϱ", "varsigma": "ς", "varsubsetneq": "⊊︀", "varsubsetneqq": "⫋︀", "varsupsetneq": "⊋︀", "varsupsetneqq": "⫌︀", "vartheta": "ϑ", "vartriangleleft": "⊲", "vartriangleright": "⊳", "vcy": "в", "vdash": "⊢", "vee": "∨", "veebar": "⊻", "veeeq": "≚", "vellip": "⋮", "verbar": "|", "vert": "|", "vfr": "𝔳", "vltri": "⊲", "vnsub": "⊂⃒", "vnsup": "⊃⃒", "vopf": "𝕧", "vprop": "∝", "vrtri": "⊳", "vscr": "𝓋", "vsubnE": "⫋︀", "vsubne": "⊊︀", "vsupnE": "⫌︀", "vsupne": "⊋︀", "vzigzag": "⦚", "wcirc": "ŵ", "wedbar": "⩟", "wedge": "∧", "wedgeq": "≙", "weierp": "℘", "wfr": "𝔴", "wopf": "𝕨", "wp": "℘", "wr": "≀", "wreath": "≀", "wscr": "𝓌", "xcap": "⋂", "xcirc": "◯", "xcup": "⋃", "xdtri": "▽", "xfr": "𝔵", "xhArr": "⟺", "xharr": "⟷", "xi": "ξ", "xlArr": "⟸", "xlarr": "⟵", "xmap": "⟼", "xnis": "⋻", "xodot": "⨀", "xopf": "𝕩", "xoplus": "⨁", "xotime": "⨂", "xrArr": "⟹", "xrarr": "⟶", "xscr": "𝓍", "xsqcup": "⨆", "xuplus": "⨄", "xutri": "△", "xvee": "⋁", "xwedge": "⋀", "yacut": "ý", "yacute": "ý", "yacy": "я", "ycirc": "ŷ", "ycy": "ы", "ye": "¥", "yen": "¥", "yfr": "𝔶", "yicy": "ї", "yopf": "𝕪", "yscr": "𝓎", "yucy": "ю", "yum": "ÿ", "yuml": "ÿ", "zacute": "ź", "zcaron": "ž", "zcy": "з", "zdot": "ż", "zeetrf": "ℨ", "zeta": "ζ", "zfr": "𝔷", "zhcy": "ж", "zigrarr": "⇝", "zopf": "𝕫", "zscr": "𝓏", "zwj": "‍", "zwnj": "‌" };
30779
32114
  const ENTITY_MAP = _ENTITY_MAP;
30780
32115
  function entityStringToRawString(entityStr) {
@@ -30980,24 +32315,24 @@ function createErrorNode(node, source, offsetToPositionMap) {
30980
32315
  if (!node.type.isError && !node.type.is(MissingCloseTag)) {
30981
32316
  throw new Error("Function can only be called on a node of type error.");
30982
32317
  }
30983
- function errorNode(message, options) {
32318
+ function errorNode(diagnostic, options) {
30984
32319
  const { startNode = node, endNode = node } = options ?? {};
30985
32320
  const startPos = lezerNodeToPosition(startNode, offsetToPositionMap);
30986
32321
  const endPos = startNode !== endNode ? lezerNodeToPosition(endNode, offsetToPositionMap) : startPos;
30987
- return {
30988
- type: "error",
30989
- message,
32322
+ return codedDastError({
32323
+ ...diagnostic,
30990
32324
  position: { start: startPos.start, end: endPos.end }
30991
- };
32325
+ });
30992
32326
  }
30993
32327
  const parent = node.parent;
30994
32328
  if (!parent) {
30995
- const message = `Invalid DoenetML: ${extractContent(node, source)}`;
30996
- return {
30997
- type: "error",
30998
- message,
32329
+ const content2 = extractContent(node, source);
32330
+ return codedDastError({
32331
+ code: "doenet-e0007",
32332
+ message: `Invalid DoenetML: ${content2}`,
32333
+ args: { content: content2 },
30999
32334
  position: lezerNodeToPosition(node, offsetToPositionMap)
31000
- };
32335
+ });
31001
32336
  }
31002
32337
  switch (parent.type.id) {
31003
32338
  case Element: {
@@ -31006,32 +32341,41 @@ function createErrorNode(node, source, offsetToPositionMap) {
31006
32341
  const tagNameTag = (openTag || parent.getChild(SelfClosingTag) || closeTag)?.getChild(TagName$7);
31007
32342
  const openTagName = tagNameTag ? extractContent(tagNameTag, source) : "";
31008
32343
  if (openTag && !closeTag) {
31009
- const openTagName2 = tagNameTag ? extractContent(tagNameTag, source) : "";
31010
- const message = `Invalid DoenetML: The tag \`${extractContent(
31011
- openTag,
31012
- source
31013
- )}\` has no closing tag. Expected a self-closing tag or a \`</${openTagName2}>\` tag.`;
31014
- return errorNode(message, {
31015
- startNode: openTag,
31016
- endNode: openTag
31017
- });
32344
+ const tag2 = extractContent(openTag, source);
32345
+ return errorNode(
32346
+ {
32347
+ code: "doenet-e0008",
32348
+ message: `Invalid DoenetML: The tag \`${tag2}\` has no closing tag. Expected a self-closing tag or a \`</${openTagName}>\` tag.`,
32349
+ args: { tag: tag2, tagName: openTagName }
32350
+ },
32351
+ {
32352
+ startNode: openTag,
32353
+ endNode: openTag
32354
+ }
32355
+ );
31018
32356
  }
31019
- return errorNode(
31020
- `Invalid DoenetML: Error in tag \`<${openTagName}>\``
31021
- );
32357
+ return errorNode({
32358
+ code: "doenet-e0009",
32359
+ message: `Invalid DoenetML: Error in tag \`<${openTagName}>\``,
32360
+ args: { tagName: openTagName }
32361
+ });
31022
32362
  }
31023
32363
  case Attribute: {
31024
32364
  const value = extractContent(parent, source);
31025
32365
  const attributeNameNode = parent.getChild("AttributeName");
31026
32366
  const isNode2 = parent.getChild("Is");
31027
32367
  if (attributeNameNode && isNode2) {
31028
- return errorNode(
31029
- `Invalid DoenetML: Invalid attribute \`${value}\` appears to be missing a value.`
31030
- );
32368
+ return errorNode({
32369
+ code: "doenet-e0010",
32370
+ message: `Invalid DoenetML: Invalid attribute \`${value}\` appears to be missing a value.`,
32371
+ args: { attribute: value }
32372
+ });
31031
32373
  }
31032
- return errorNode(
31033
- `Invalid DoenetML: Invalid attribute \`${value}\``
31034
- );
32374
+ return errorNode({
32375
+ code: "doenet-e0011",
32376
+ message: `Invalid DoenetML: Invalid attribute \`${value}\``,
32377
+ args: { attribute: value }
32378
+ });
31035
32379
  }
31036
32380
  case AttributeValue: {
31037
32381
  const attribute = parent.parent;
@@ -31039,29 +32383,36 @@ function createErrorNode(node, source, offsetToPositionMap) {
31039
32383
  const openQuote = value[0];
31040
32384
  const closeQuote = value[value.length - 1];
31041
32385
  if (!attribute || openQuote === closeQuote) {
31042
- return errorNode(
31043
- `Invalid DoenetML: Invalid attribute value \`${value}\``
31044
- );
32386
+ return errorNode({
32387
+ code: "doenet-e0012",
32388
+ message: `Invalid DoenetML: Invalid attribute value \`${value}\``,
32389
+ args: { value }
32390
+ });
31045
32391
  }
31046
32392
  const correctQuote = openQuote.match(/['"]/) ? openQuote : closeQuote.match(/['"]/) ? closeQuote : '"';
31047
- return errorNode(
31048
- `Invalid DoenetML: Invalid attribute value \`${value}\`. The quote marks do not match. You appear to be missing a \`${correctQuote}\``
31049
- );
32393
+ return errorNode({
32394
+ code: "doenet-e0013",
32395
+ message: `Invalid DoenetML: Invalid attribute value \`${value}\`. The quote marks do not match. You appear to be missing a \`${correctQuote}\``,
32396
+ args: { value, quote: correctQuote }
32397
+ });
31050
32398
  }
31051
32399
  case OpenTag: {
31052
32400
  const tagName = parent.getChild(TagName$7);
31053
32401
  if (!tagName) {
31054
- return errorNode(
31055
- `Invalid DoenetML: Found a tag without a tag name, e.g. \`<\``
31056
- );
32402
+ return errorNode({
32403
+ code: "doenet-e0014",
32404
+ message: `Invalid DoenetML: Found a tag without a tag name, e.g. \`<\``
32405
+ });
31057
32406
  }
31058
32407
  const endTag = parent.getChild(EndTag);
31059
32408
  if (!endTag) {
32409
+ const tag2 = extractContent(parent, source);
31060
32410
  return errorNode(
31061
- `Invalid DoenetML: Tag \`${extractContent(
31062
- parent,
31063
- source
31064
- )}\` was not closed (a \`>\` appears to be missing).`,
32411
+ {
32412
+ code: "doenet-e0015",
32413
+ message: `Invalid DoenetML: Tag \`${tag2}\` was not closed (a \`>\` appears to be missing).`,
32414
+ args: { tag: tag2 }
32415
+ },
31065
32416
  { startNode: parent, endNode: tagName }
31066
32417
  );
31067
32418
  }
@@ -31069,50 +32420,56 @@ function createErrorNode(node, source, offsetToPositionMap) {
31069
32420
  case SelfClosingTag: {
31070
32421
  const tagName = parent.getChild(TagName$7);
31071
32422
  if (!tagName) {
31072
- return errorNode(
31073
- `Invalid DoenetML: Found a tag without a tag name \`<${extractContent(
31074
- node,
31075
- source
31076
- )}>\``
31077
- );
32423
+ const content2 = extractContent(node, source);
32424
+ return errorNode({
32425
+ code: "doenet-e0016",
32426
+ message: `Invalid DoenetML: Found a tag without a tag name \`<${content2}>\``,
32427
+ args: { content: content2 }
32428
+ });
31078
32429
  }
31079
32430
  const endTag = parent.getChild(SelfCloseEndTag);
32431
+ const tag2 = extractContent(parent, source);
31080
32432
  if (!endTag) {
31081
- return errorNode(
31082
- `Invalid DoenetML: Tag \`${extractContent(
31083
- parent,
31084
- source
31085
- )}\` was not closed (\`/>\` appears to be missing).`
31086
- );
32433
+ return errorNode({
32434
+ code: "doenet-e0017",
32435
+ message: `Invalid DoenetML: Tag \`${tag2}\` was not closed (\`/>\` appears to be missing).`,
32436
+ args: { tag: tag2 }
32437
+ });
31087
32438
  }
31088
- return errorNode(
31089
- `Invalid DoenetML: Tag \`${extractContent(
31090
- parent,
31091
- source
31092
- )}\` is not valid. It may have incorrect attributes.`
31093
- );
32439
+ return errorNode({
32440
+ code: "doenet-e0018",
32441
+ message: `Invalid DoenetML: Tag \`${tag2}\` is not valid. It may have incorrect attributes.`,
32442
+ args: { tag: tag2 }
32443
+ });
31094
32444
  }
31095
32445
  case MismatchedCloseTag:
31096
32446
  case CloseTag: {
31097
32447
  const tagName = parent.getChild(TagName$7);
31098
32448
  if (!tagName) {
31099
- return errorNode(
31100
- `Invalid DoenetML: Found a closing tag without a tag name, e.g. \`</\``
31101
- );
32449
+ return errorNode({
32450
+ code: "doenet-e0019",
32451
+ message: `Invalid DoenetML: Found a closing tag without a tag name, e.g. \`</\``
32452
+ });
31102
32453
  }
31103
32454
  const endTag = parent.getChild(EndTag);
31104
32455
  if (!endTag) {
32456
+ const tag2 = extractContent(parent, source);
31105
32457
  return errorNode(
31106
- `Invalid DoenetML: Tag \`${extractContent(
31107
- parent,
31108
- source
31109
- )}\` was not closed (a \`>\` appears to be missing).`,
32458
+ {
32459
+ code: "doenet-e0015",
32460
+ message: `Invalid DoenetML: Tag \`${tag2}\` was not closed (a \`>\` appears to be missing).`,
32461
+ args: { tag: tag2 }
32462
+ },
31110
32463
  { startNode: parent, endNode: tagName }
31111
32464
  );
31112
32465
  }
31113
32466
  }
31114
32467
  }
31115
- return errorNode(`Could not convert node ${node} to Dast node.`);
32468
+ return errorNode({
32469
+ code: "doenet-e0023",
32470
+ message: `Could not convert node ${node} to Dast node.`,
32471
+ args: { node: String(node) }
32472
+ });
31116
32473
  }
31117
32474
  function unquotedAttributeValueMessage(assignName, valueName) {
31118
32475
  return `Attribute values must be enclosed in quotes: \`${assignName}="${valueName}"\``;
@@ -33234,14 +34591,20 @@ function _lezerToDast(node, source) {
33234
34591
  for (const { attrTag, dastAttr } of attrEntries) {
33235
34592
  const pair2 = pairByValueAttr.get(dastAttr);
33236
34593
  if (pair2) {
33237
- children.push({
33238
- type: "error",
33239
- message: unquotedAttributeValueMessage(
33240
- pair2.assignAttr.name,
33241
- pair2.valueAttr.name
33242
- ),
33243
- position: pair2.valueAttr.position
33244
- });
34594
+ children.push(
34595
+ codedDastError({
34596
+ code: "doenet-e0020",
34597
+ message: unquotedAttributeValueMessage(
34598
+ pair2.assignAttr.name,
34599
+ pair2.valueAttr.name
34600
+ ),
34601
+ args: {
34602
+ attribute: pair2.assignAttr.name,
34603
+ value: pair2.valueAttr.name
34604
+ },
34605
+ position: pair2.valueAttr.position
34606
+ })
34607
+ );
33245
34608
  continue;
33246
34609
  }
33247
34610
  if (pairedAssignAttrs.has(dastAttr)) {
@@ -33379,44 +34742,26 @@ function _lezerToDast(node, source) {
33379
34742
  const parent = node2.parent;
33380
34743
  const openTag = parent?.getChild(OpenTag);
33381
34744
  const closeTag = parent?.getChild(CloseTag);
33382
- if (!parent || !openTag) {
33383
- const message2 = `Invalid DoenetML: Found closing tag \`${extractContent(
33384
- node2,
33385
- source
33386
- )}\`, but no corresponding opening tag`;
34745
+ const tag2 = extractContent(node2, source);
34746
+ if (!parent || !openTag || closeTag) {
33387
34747
  return [
33388
- {
33389
- type: "error",
33390
- message: message2,
34748
+ codedDastError({
34749
+ code: "doenet-e0021",
34750
+ message: `Invalid DoenetML: Found closing tag \`${tag2}\`, but no corresponding opening tag`,
34751
+ args: { tag: tag2 },
33391
34752
  position: lezerNodeToPosition(node2, offsetMap)
33392
- }
33393
- ];
33394
- }
33395
- if (closeTag) {
33396
- const message2 = `Invalid DoenetML: Found closing tag \`${extractContent(
33397
- node2,
33398
- source
33399
- )}\`, but no corresponding opening tag`;
33400
- return [
33401
- {
33402
- type: "error",
33403
- message: message2,
33404
- position: lezerNodeToPosition(node2, offsetMap)
33405
- }
34753
+ })
33406
34754
  ];
33407
34755
  }
33408
34756
  const tagNameTag = openTag.getChild(TagName$7);
33409
34757
  const openTagName = tagNameTag ? extractContent(tagNameTag, source) : "";
33410
- const message = `Invalid DoenetML: Mismatched closing tag. Expected \`</${openTagName}>\`. Found \`${extractContent(
33411
- node2,
33412
- source
33413
- )}\``;
33414
34758
  return [
33415
- {
33416
- type: "error",
33417
- message,
34759
+ codedDastError({
34760
+ code: "doenet-e0022",
34761
+ message: `Invalid DoenetML: Mismatched closing tag. Expected \`</${openTagName}>\`. Found \`${tag2}\``,
34762
+ args: { expected: openTagName, found: tag2 },
33418
34763
  position: lezerNodeToPosition(node2, offsetMap)
33419
- }
34764
+ })
33420
34765
  ];
33421
34766
  }
33422
34767
  case "MissingCloseTag":
@@ -35233,11 +36578,7 @@ const SCORED_SECTION_COMPONENT_TYPES = [
35233
36578
  "p"
35234
36579
  ];
35235
36580
  function renamedScoredSectionAttribute(oldName, newName) {
35236
- const rule = {
35237
- to: newName,
35238
- warningMessage: `[deprecation] Attribute \`${oldName}\` is deprecated; use \`${newName}\` instead.`,
35239
- conflictWarningMessage: `[deprecation] Attribute \`${oldName}\` is deprecated and ignored because \`${newName}\` is also specified.`
35240
- };
36581
+ const rule = { from: oldName, to: newName };
35241
36582
  return Object.fromEntries(
35242
36583
  SCORED_SECTION_COMPONENT_TYPES.map((comp) => [
35243
36584
  comp,
@@ -35249,9 +36590,7 @@ function ignoredAttributes(componentName, attributeNames) {
35249
36590
  return Object.fromEntries(
35250
36591
  attributeNames.map((attributeName) => [
35251
36592
  attributeName,
35252
- {
35253
- warningMessage: `[deprecation] Attribute \`${attributeName}\` on \`<${componentName}>\` is deprecated and ignored.`
35254
- }
36593
+ { attribute: attributeName, component: componentName }
35255
36594
  ])
35256
36595
  );
35257
36596
  }
@@ -35269,45 +36608,45 @@ const DEPRECATION_REGISTRY = {
35269
36608
  // its own documentWideCheckWork rename.
35270
36609
  ...SCORED_SECTION_COLORING_RENAMES["document"],
35271
36610
  documentWideCheckWork: {
36611
+ from: "documentWideCheckWork",
35272
36612
  to: "sectionWideCheckWork",
35273
- warningMessage: "[deprecation] Attribute `documentWideCheckWork` on `<document>` is deprecated; use `sectionWideCheckWork` instead.",
35274
- conflictWarningMessage: "[deprecation] Attribute `documentWideCheckWork` on `<document>` is deprecated and ignored because `sectionWideCheckWork` is also specified."
36613
+ component: "document"
35275
36614
  }
35276
36615
  },
35277
36616
  selectFromSequence: {
35278
36617
  sortResults: {
36618
+ from: "sortResults",
35279
36619
  to: "sort",
35280
- warningMessage: "[deprecation] Attribute `sortResults` on `<selectFromSequence>` is deprecated; use `sort` instead.",
35281
- conflictWarningMessage: "[deprecation] Attribute `sortResults` on `<selectFromSequence>` is deprecated and ignored because `sort` is also specified."
36620
+ component: "selectFromSequence"
35282
36621
  }
35283
36622
  },
35284
36623
  selectPrimeNumbers: {
35285
36624
  minValue: {
36625
+ from: "minValue",
35286
36626
  to: "from",
35287
- warningMessage: "[deprecation] Attribute `minValue` on `<selectPrimeNumbers>` is deprecated; use `from` instead.",
35288
- conflictWarningMessage: "[deprecation] Attribute `minValue` on `<selectPrimeNumbers>` is deprecated and ignored because `from` is also specified."
36627
+ component: "selectPrimeNumbers"
35289
36628
  },
35290
36629
  maxValue: {
36630
+ from: "maxValue",
35291
36631
  to: "to",
35292
- warningMessage: "[deprecation] Attribute `maxValue` on `<selectPrimeNumbers>` is deprecated; use `to` instead.",
35293
- conflictWarningMessage: "[deprecation] Attribute `maxValue` on `<selectPrimeNumbers>` is deprecated and ignored because `to` is also specified."
36632
+ component: "selectPrimeNumbers"
35294
36633
  },
35295
36634
  sortResults: {
36635
+ from: "sortResults",
35296
36636
  to: "sort",
35297
- warningMessage: "[deprecation] Attribute `sortResults` on `<selectPrimeNumbers>` is deprecated; use `sort` instead.",
35298
- conflictWarningMessage: "[deprecation] Attribute `sortResults` on `<selectPrimeNumbers>` is deprecated and ignored because `sort` is also specified."
36637
+ component: "selectPrimeNumbers"
35299
36638
  }
35300
36639
  },
35301
36640
  samplePrimeNumbers: {
35302
36641
  minValue: {
36642
+ from: "minValue",
35303
36643
  to: "from",
35304
- warningMessage: "[deprecation] Attribute `minValue` on `<samplePrimeNumbers>` is deprecated; use `from` instead.",
35305
- conflictWarningMessage: "[deprecation] Attribute `minValue` on `<samplePrimeNumbers>` is deprecated and ignored because `from` is also specified."
36644
+ component: "samplePrimeNumbers"
35306
36645
  },
35307
36646
  maxValue: {
36647
+ from: "maxValue",
35308
36648
  to: "to",
35309
- warningMessage: "[deprecation] Attribute `maxValue` on `<samplePrimeNumbers>` is deprecated; use `to` instead.",
35310
- conflictWarningMessage: "[deprecation] Attribute `maxValue` on `<samplePrimeNumbers>` is deprecated and ignored because `to` is also specified."
36649
+ component: "samplePrimeNumbers"
35311
36650
  }
35312
36651
  }
35313
36652
  },
@@ -35334,8 +36673,7 @@ const DEPRECATION_REGISTRY = {
35334
36673
  "anchor",
35335
36674
  "positionFromAnchor"
35336
36675
  ])
35337
- },
35338
- componentRenames: {}
36676
+ }
35339
36677
  };
35340
36678
  function lowerKeys(o2) {
35341
36679
  return Object.fromEntries(
@@ -35355,15 +36693,6 @@ function buildDeprecationIndex(registry) {
35355
36693
  comp,
35356
36694
  lowerKeys(rules)
35357
36695
  ])
35358
- ),
35359
- componentRenames: Object.fromEntries(
35360
- Object.entries(registry.componentRenames).map(([comp, rule]) => [
35361
- comp,
35362
- rule.attributeRenames ? {
35363
- ...rule,
35364
- attributeRenames: lowerKeys(rule.attributeRenames)
35365
- } : rule
35366
- ])
35367
36696
  )
35368
36697
  };
35369
36698
  }
@@ -35975,12 +37304,12 @@ function Key({
35975
37304
  keyInfo,
35976
37305
  onClick
35977
37306
  }) {
35978
- let content = keyInfo.displayName;
37307
+ let content2 = keyInfo.displayName;
35979
37308
  if (keyInfo.isMath) {
35980
- content = /* @__PURE__ */ React__default.createElement("div", { style: { pointerEvents: "none" } }, /* @__PURE__ */ React__default.createElement(MathJax, null, "\\(" + content + "\\)"));
37309
+ content2 = /* @__PURE__ */ React__default.createElement("div", { style: { pointerEvents: "none" } }, /* @__PURE__ */ React__default.createElement(MathJax, null, "\\(" + content2 + "\\)"));
35981
37310
  }
35982
37311
  if (keyInfo.name === "backspace") {
35983
- content = BackspaceIcon;
37312
+ content2 = BackspaceIcon;
35984
37313
  }
35985
37314
  return /* @__PURE__ */ React__default.createElement(
35986
37315
  "button",
@@ -35992,7 +37321,7 @@ function Key({
35992
37321
  },
35993
37322
  title: `Type ${keyInfo.name}`
35994
37323
  },
35995
- content
37324
+ content2
35996
37325
  );
35997
37326
  }
35998
37327
  function Qwerty({
@@ -65543,7 +66872,7 @@ function ExternalVirtualKeyboard({
65543
66872
  }
65544
66873
  );
65545
66874
  }
65546
- const version = "0.7.21-dev.376";
66875
+ const version = "0.7.21-dev.378";
65547
66876
  const latestDoenetmlVersion = version;
65548
66877
  function subscribeToPinnedTheme() {
65549
66878
  return () => {
@@ -66466,17 +67795,23 @@ const DoenetEditor = React__default.forwardRef(function DoenetEditor2({
66466
67795
  if (foundAutoVersion) {
66467
67796
  setIgnoreDetectedVersion(true);
66468
67797
  setInErrorState("");
66469
- let message = `DoenetML version ${detectedVersion} not found.`;
66470
- if (!specifiedStandaloneUrl) {
66471
- message += ` Falling back to version ${specifiedDoenetmlVersion ?? latestDoenetmlVersion}`;
66472
- }
67798
+ const versionDiagnostic = codedDiagnostic({
67799
+ type: "error",
67800
+ code: "doenet-e0006",
67801
+ args: {
67802
+ version: String(detectedVersion),
67803
+ fallback: specifiedStandaloneUrl ? "none" : String(
67804
+ specifiedDoenetmlVersion ?? latestDoenetmlVersion
67805
+ )
67806
+ }
67807
+ });
66473
67808
  let allNewlines = findAllNewlines(doenetML);
66474
67809
  Object.assign(
66475
67810
  detectedDoenetMLrange,
66476
67811
  getLineCharRange(detectedDoenetMLrange, allNewlines)
66477
67812
  );
66478
67813
  setInitialDiagnostics([
66479
- { position: detectedDoenetMLrange, message, type: "error" }
67814
+ { ...versionDiagnostic, position: detectedDoenetMLrange }
66480
67815
  ]);
66481
67816
  return null;
66482
67817
  }