@doenet/v06-to-v07 0.7.26-dev.574 → 0.7.26-dev.576
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{index-LyXd__pZ.js → index-6zFPvLAn.js} +544 -161
- package/{index-LyXd__pZ.js.map → index-6zFPvLAn.js.map} +1 -1
- package/index.js +1 -1
- package/package.json +1 -1
- package/{sha256-8sXzDnE0-DFnuPt73-BG1JUGfj.js → sha256-8sXzDnE0-DG0srRpC-wEOUJcTD.js} +2 -2
- package/{sha256-8sXzDnE0-DFnuPt73-BG1JUGfj.js.map → sha256-8sXzDnE0-DG0srRpC-wEOUJcTD.js.map} +1 -1
|
@@ -6071,7 +6071,8 @@ const _MacroParser$1 = (
|
|
|
6071
6071
|
const peg$FAILED = {};
|
|
6072
6072
|
const peg$source = options.grammarSource;
|
|
6073
6073
|
const peg$startRuleFunctions = {
|
|
6074
|
-
top: peg$parsetop
|
|
6074
|
+
top: peg$parsetop,
|
|
6075
|
+
MacroTail: peg$parseMacroTail
|
|
6075
6076
|
};
|
|
6076
6077
|
let peg$startRuleFunction = peg$parsetop;
|
|
6077
6078
|
const peg$c0 = ".";
|
|
@@ -6103,25 +6104,25 @@ const _MacroParser$1 = (
|
|
|
6103
6104
|
const peg$r13 = /^[^"$]/;
|
|
6104
6105
|
const peg$r14 = /^[^"]/;
|
|
6105
6106
|
const peg$r15 = /^[ \t\r\n]/;
|
|
6106
|
-
const peg$e0 = peg$
|
|
6107
|
-
const peg$e1 = peg$
|
|
6108
|
-
const peg$e2 = peg$classExpectation([["a", "z"], ["A", "Z"],
|
|
6109
|
-
const peg$e3 = peg$
|
|
6110
|
-
const peg$e4 = peg$
|
|
6111
|
-
const peg$e5 = peg$literalExpectation("
|
|
6112
|
-
const peg$e6 = peg$literalExpectation("
|
|
6113
|
-
const peg$e7 = peg$literalExpectation("
|
|
6114
|
-
const peg$e8 = peg$literalExpectation("
|
|
6115
|
-
const peg$e9 = peg$literalExpectation("
|
|
6116
|
-
const peg$e10 = peg$literalExpectation("
|
|
6117
|
-
const peg$e11 = peg$literalExpectation("
|
|
6118
|
-
const peg$e12 = peg$literalExpectation("
|
|
6119
|
-
const peg$e13 = peg$literalExpectation("
|
|
6120
|
-
const peg$e14 = peg$
|
|
6121
|
-
const peg$e15 = peg$
|
|
6122
|
-
const peg$e16 = peg$literalExpectation("'
|
|
6123
|
-
const peg$e17 = peg$
|
|
6124
|
-
const peg$e18 = peg$
|
|
6107
|
+
const peg$e0 = peg$literalExpectation(".", false);
|
|
6108
|
+
const peg$e1 = peg$anyExpectation();
|
|
6109
|
+
const peg$e2 = peg$classExpectation([["a", "z"], ["A", "Z"], "_"], false, false, false);
|
|
6110
|
+
const peg$e3 = peg$classExpectation([["a", "z"], ["A", "Z"], ["0", "9"], "_"], false, false, false);
|
|
6111
|
+
const peg$e4 = peg$classExpectation([["a", "z"], ["A", "Z"], ["0", "9"], "_", "-"], false, false, false);
|
|
6112
|
+
const peg$e5 = peg$literalExpectation("$", false);
|
|
6113
|
+
const peg$e6 = peg$literalExpectation("(", false);
|
|
6114
|
+
const peg$e7 = peg$literalExpectation(")", false);
|
|
6115
|
+
const peg$e8 = peg$literalExpectation("$$", false);
|
|
6116
|
+
const peg$e9 = peg$literalExpectation(",", false);
|
|
6117
|
+
const peg$e10 = peg$literalExpectation("{", false);
|
|
6118
|
+
const peg$e11 = peg$literalExpectation("}", false);
|
|
6119
|
+
const peg$e12 = peg$literalExpectation("[", false);
|
|
6120
|
+
const peg$e13 = peg$literalExpectation("]", false);
|
|
6121
|
+
const peg$e14 = peg$literalExpectation("=", false);
|
|
6122
|
+
const peg$e15 = peg$classExpectation([["a", "z"], ["A", "Z"], ["0", "9"], "_", ":", "-"], false, false, false);
|
|
6123
|
+
const peg$e16 = peg$literalExpectation('"', false);
|
|
6124
|
+
const peg$e17 = peg$literalExpectation("'", false);
|
|
6125
|
+
const peg$e18 = peg$classExpectation(["$"], true, false, false);
|
|
6125
6126
|
const peg$e19 = peg$classExpectation(["(", ")", ",", "$"], true, false, false);
|
|
6126
6127
|
const peg$e20 = peg$classExpectation(["(", ")", ","], true, false, false);
|
|
6127
6128
|
const peg$e21 = peg$classExpectation(["(", ")", "$"], true, false, false);
|
|
@@ -6133,105 +6134,111 @@ const _MacroParser$1 = (
|
|
|
6133
6134
|
const peg$e27 = peg$classExpectation(['"', "$"], true, false, false);
|
|
6134
6135
|
const peg$e28 = peg$classExpectation(['"'], true, false, false);
|
|
6135
6136
|
const peg$e29 = peg$classExpectation([" ", " ", "\r", "\n"], false, false, false);
|
|
6136
|
-
function peg$f0(
|
|
6137
|
+
function peg$f0(index2, parts, attrsOffset, attrs, remainder) {
|
|
6138
|
+
return { type: "macroTail", index: index2, parts, attrsOffset, attrs, remainder };
|
|
6139
|
+
}
|
|
6140
|
+
function peg$f1() {
|
|
6141
|
+
return location().start.offset;
|
|
6142
|
+
}
|
|
6143
|
+
function peg$f2(name2, index2) {
|
|
6137
6144
|
return withPosition({ type: "pathPart", name: name2, index: index2 });
|
|
6138
6145
|
}
|
|
6139
|
-
function peg$
|
|
6146
|
+
function peg$f3(name2, index2) {
|
|
6140
6147
|
return withPosition({ type: "pathPart", name: name2, index: index2 });
|
|
6141
6148
|
}
|
|
6142
|
-
function peg$
|
|
6149
|
+
function peg$f4(start, rest2) {
|
|
6143
6150
|
return [start, ...rest2];
|
|
6144
6151
|
}
|
|
6145
|
-
function peg$
|
|
6152
|
+
function peg$f5(start, rest2) {
|
|
6146
6153
|
return [start, ...rest2];
|
|
6147
6154
|
}
|
|
6148
|
-
function peg$
|
|
6155
|
+
function peg$f6(macro) {
|
|
6149
6156
|
return withPosition(macro);
|
|
6150
6157
|
}
|
|
6151
|
-
function peg$
|
|
6158
|
+
function peg$f7(macro) {
|
|
6152
6159
|
return withPosition(macro);
|
|
6153
6160
|
}
|
|
6154
|
-
function peg$
|
|
6161
|
+
function peg$f8(path, attrs) {
|
|
6155
6162
|
return withPosition({
|
|
6156
6163
|
type: "macro",
|
|
6157
6164
|
path,
|
|
6158
6165
|
attributes: attrs || {}
|
|
6159
6166
|
});
|
|
6160
6167
|
}
|
|
6161
|
-
function peg$
|
|
6168
|
+
function peg$f9(path, attrs) {
|
|
6162
6169
|
return withPosition({
|
|
6163
6170
|
type: "macro",
|
|
6164
6171
|
path,
|
|
6165
6172
|
attributes: attrs || {}
|
|
6166
6173
|
});
|
|
6167
6174
|
}
|
|
6168
|
-
function peg$
|
|
6175
|
+
function peg$f10(path, input2) {
|
|
6169
6176
|
return withPosition({
|
|
6170
6177
|
type: "function",
|
|
6171
6178
|
path,
|
|
6172
6179
|
input: input2
|
|
6173
6180
|
});
|
|
6174
6181
|
}
|
|
6175
|
-
function peg$
|
|
6182
|
+
function peg$f11(path, input2) {
|
|
6176
6183
|
return withPosition({
|
|
6177
6184
|
type: "function",
|
|
6178
6185
|
path,
|
|
6179
6186
|
input: input2
|
|
6180
6187
|
});
|
|
6181
6188
|
}
|
|
6182
|
-
function peg$
|
|
6189
|
+
function peg$f12(start, rest2) {
|
|
6183
6190
|
return [start, ...rest2];
|
|
6184
6191
|
}
|
|
6185
|
-
function peg$
|
|
6192
|
+
function peg$f13(a2, rest2, b2) {
|
|
6186
6193
|
return [a2, ...rest2, b2];
|
|
6187
6194
|
}
|
|
6188
|
-
function peg$
|
|
6195
|
+
function peg$f14(x2) {
|
|
6189
6196
|
return x2.flat();
|
|
6190
6197
|
}
|
|
6191
|
-
function peg$
|
|
6198
|
+
function peg$f15(a2, rest2, b2) {
|
|
6192
6199
|
return [a2, ...rest2, b2];
|
|
6193
6200
|
}
|
|
6194
|
-
function peg$
|
|
6201
|
+
function peg$f16(x2) {
|
|
6195
6202
|
return x2.flat();
|
|
6196
6203
|
}
|
|
6197
|
-
function peg$
|
|
6204
|
+
function peg$f17(attrs) {
|
|
6198
6205
|
return Object.fromEntries(attrs.map((a2) => [a2.name, a2]));
|
|
6199
6206
|
}
|
|
6200
|
-
function peg$
|
|
6207
|
+
function peg$f18(value) {
|
|
6201
6208
|
return withPosition({ type: "index", value });
|
|
6202
6209
|
}
|
|
6203
|
-
function peg$
|
|
6210
|
+
function peg$f19(name2, children) {
|
|
6204
6211
|
return withPosition({ type: "attribute", name: name2, children });
|
|
6205
6212
|
}
|
|
6206
|
-
function peg$
|
|
6213
|
+
function peg$f20(name2) {
|
|
6207
6214
|
return withPosition({
|
|
6208
6215
|
type: "attribute",
|
|
6209
6216
|
name: name2,
|
|
6210
6217
|
children: []
|
|
6211
6218
|
});
|
|
6212
6219
|
}
|
|
6213
|
-
function peg$
|
|
6220
|
+
function peg$f21(value) {
|
|
6214
6221
|
return withPosition({ type: "text", value });
|
|
6215
6222
|
}
|
|
6216
|
-
function peg$
|
|
6223
|
+
function peg$f23() {
|
|
6217
6224
|
return withPosition({ type: "text", value: "(" });
|
|
6218
6225
|
}
|
|
6219
|
-
function peg$
|
|
6226
|
+
function peg$f24() {
|
|
6220
6227
|
return withPosition({ type: "text", value: ")" });
|
|
6221
6228
|
}
|
|
6222
|
-
function peg$
|
|
6229
|
+
function peg$f25(value) {
|
|
6223
6230
|
return withPosition({ type: "text", value });
|
|
6224
6231
|
}
|
|
6225
|
-
function peg$
|
|
6232
|
+
function peg$f26(value) {
|
|
6226
6233
|
return withPosition({ type: "text", value });
|
|
6227
6234
|
}
|
|
6228
|
-
function peg$
|
|
6235
|
+
function peg$f27(value) {
|
|
6229
6236
|
return withPosition({ type: "text", value });
|
|
6230
6237
|
}
|
|
6231
|
-
function peg$
|
|
6238
|
+
function peg$f28(value) {
|
|
6232
6239
|
return withPosition({ type: "text", value });
|
|
6233
6240
|
}
|
|
6234
|
-
function peg$
|
|
6241
|
+
function peg$f29(value) {
|
|
6235
6242
|
return withPosition({ type: "text", value });
|
|
6236
6243
|
}
|
|
6237
6244
|
let peg$currPos = options.peg$currPos | 0;
|
|
@@ -6358,6 +6365,105 @@ const _MacroParser$1 = (
|
|
|
6358
6365
|
}
|
|
6359
6366
|
return s0;
|
|
6360
6367
|
}
|
|
6368
|
+
function peg$parseMacroTail() {
|
|
6369
|
+
let s0, s1, s2, s3, s4, s5, s6, s7;
|
|
6370
|
+
s0 = peg$currPos;
|
|
6371
|
+
s1 = [];
|
|
6372
|
+
s2 = peg$parsePropIndex();
|
|
6373
|
+
while (s2 !== peg$FAILED) {
|
|
6374
|
+
s1.push(s2);
|
|
6375
|
+
s2 = peg$parsePropIndex();
|
|
6376
|
+
}
|
|
6377
|
+
s2 = [];
|
|
6378
|
+
s3 = peg$currPos;
|
|
6379
|
+
if (input.charCodeAt(peg$currPos) === 46) {
|
|
6380
|
+
s4 = peg$c0;
|
|
6381
|
+
peg$currPos++;
|
|
6382
|
+
} else {
|
|
6383
|
+
s4 = peg$FAILED;
|
|
6384
|
+
if (peg$silentFails === 0) {
|
|
6385
|
+
peg$fail(peg$e0);
|
|
6386
|
+
}
|
|
6387
|
+
}
|
|
6388
|
+
if (s4 !== peg$FAILED) {
|
|
6389
|
+
s5 = peg$parseSimplePathPart();
|
|
6390
|
+
if (s5 !== peg$FAILED) {
|
|
6391
|
+
s3 = s5;
|
|
6392
|
+
} else {
|
|
6393
|
+
peg$currPos = s3;
|
|
6394
|
+
s3 = peg$FAILED;
|
|
6395
|
+
}
|
|
6396
|
+
} else {
|
|
6397
|
+
peg$currPos = s3;
|
|
6398
|
+
s3 = peg$FAILED;
|
|
6399
|
+
}
|
|
6400
|
+
while (s3 !== peg$FAILED) {
|
|
6401
|
+
s2.push(s3);
|
|
6402
|
+
s3 = peg$currPos;
|
|
6403
|
+
if (input.charCodeAt(peg$currPos) === 46) {
|
|
6404
|
+
s4 = peg$c0;
|
|
6405
|
+
peg$currPos++;
|
|
6406
|
+
} else {
|
|
6407
|
+
s4 = peg$FAILED;
|
|
6408
|
+
if (peg$silentFails === 0) {
|
|
6409
|
+
peg$fail(peg$e0);
|
|
6410
|
+
}
|
|
6411
|
+
}
|
|
6412
|
+
if (s4 !== peg$FAILED) {
|
|
6413
|
+
s5 = peg$parseSimplePathPart();
|
|
6414
|
+
if (s5 !== peg$FAILED) {
|
|
6415
|
+
s3 = s5;
|
|
6416
|
+
} else {
|
|
6417
|
+
peg$currPos = s3;
|
|
6418
|
+
s3 = peg$FAILED;
|
|
6419
|
+
}
|
|
6420
|
+
} else {
|
|
6421
|
+
peg$currPos = s3;
|
|
6422
|
+
s3 = peg$FAILED;
|
|
6423
|
+
}
|
|
6424
|
+
}
|
|
6425
|
+
s3 = peg$parseCurrentOffset();
|
|
6426
|
+
s4 = peg$parsePropAttrs();
|
|
6427
|
+
if (s4 === peg$FAILED) {
|
|
6428
|
+
s4 = null;
|
|
6429
|
+
}
|
|
6430
|
+
s5 = peg$currPos;
|
|
6431
|
+
s6 = [];
|
|
6432
|
+
if (input.length > peg$currPos) {
|
|
6433
|
+
s7 = input.charAt(peg$currPos);
|
|
6434
|
+
peg$currPos++;
|
|
6435
|
+
} else {
|
|
6436
|
+
s7 = peg$FAILED;
|
|
6437
|
+
if (peg$silentFails === 0) {
|
|
6438
|
+
peg$fail(peg$e1);
|
|
6439
|
+
}
|
|
6440
|
+
}
|
|
6441
|
+
while (s7 !== peg$FAILED) {
|
|
6442
|
+
s6.push(s7);
|
|
6443
|
+
if (input.length > peg$currPos) {
|
|
6444
|
+
s7 = input.charAt(peg$currPos);
|
|
6445
|
+
peg$currPos++;
|
|
6446
|
+
} else {
|
|
6447
|
+
s7 = peg$FAILED;
|
|
6448
|
+
if (peg$silentFails === 0) {
|
|
6449
|
+
peg$fail(peg$e1);
|
|
6450
|
+
}
|
|
6451
|
+
}
|
|
6452
|
+
}
|
|
6453
|
+
s5 = input.substring(s5, peg$currPos);
|
|
6454
|
+
peg$savedPos = s0;
|
|
6455
|
+
s0 = peg$f0(s1, s2, s3, s4, s5);
|
|
6456
|
+
return s0;
|
|
6457
|
+
}
|
|
6458
|
+
function peg$parseCurrentOffset() {
|
|
6459
|
+
let s0, s1;
|
|
6460
|
+
s0 = peg$currPos;
|
|
6461
|
+
s1 = "";
|
|
6462
|
+
peg$savedPos = s0;
|
|
6463
|
+
s1 = peg$f1();
|
|
6464
|
+
s0 = s1;
|
|
6465
|
+
return s0;
|
|
6466
|
+
}
|
|
6361
6467
|
function peg$parseSimpleIdent() {
|
|
6362
6468
|
let s0, s1, s2, s3, s4;
|
|
6363
6469
|
s0 = peg$currPos;
|
|
@@ -6368,7 +6474,7 @@ const _MacroParser$1 = (
|
|
|
6368
6474
|
} else {
|
|
6369
6475
|
s2 = peg$FAILED;
|
|
6370
6476
|
if (peg$silentFails === 0) {
|
|
6371
|
-
peg$fail(peg$
|
|
6477
|
+
peg$fail(peg$e2);
|
|
6372
6478
|
}
|
|
6373
6479
|
}
|
|
6374
6480
|
if (s2 !== peg$FAILED) {
|
|
@@ -6379,7 +6485,7 @@ const _MacroParser$1 = (
|
|
|
6379
6485
|
} else {
|
|
6380
6486
|
s4 = peg$FAILED;
|
|
6381
6487
|
if (peg$silentFails === 0) {
|
|
6382
|
-
peg$fail(peg$
|
|
6488
|
+
peg$fail(peg$e3);
|
|
6383
6489
|
}
|
|
6384
6490
|
}
|
|
6385
6491
|
while (s4 !== peg$FAILED) {
|
|
@@ -6390,7 +6496,7 @@ const _MacroParser$1 = (
|
|
|
6390
6496
|
} else {
|
|
6391
6497
|
s4 = peg$FAILED;
|
|
6392
6498
|
if (peg$silentFails === 0) {
|
|
6393
|
-
peg$fail(peg$
|
|
6499
|
+
peg$fail(peg$e3);
|
|
6394
6500
|
}
|
|
6395
6501
|
}
|
|
6396
6502
|
}
|
|
@@ -6417,7 +6523,7 @@ const _MacroParser$1 = (
|
|
|
6417
6523
|
} else {
|
|
6418
6524
|
s2 = peg$FAILED;
|
|
6419
6525
|
if (peg$silentFails === 0) {
|
|
6420
|
-
peg$fail(peg$
|
|
6526
|
+
peg$fail(peg$e4);
|
|
6421
6527
|
}
|
|
6422
6528
|
}
|
|
6423
6529
|
if (s2 !== peg$FAILED) {
|
|
@@ -6429,7 +6535,7 @@ const _MacroParser$1 = (
|
|
|
6429
6535
|
} else {
|
|
6430
6536
|
s2 = peg$FAILED;
|
|
6431
6537
|
if (peg$silentFails === 0) {
|
|
6432
|
-
peg$fail(peg$
|
|
6538
|
+
peg$fail(peg$e4);
|
|
6433
6539
|
}
|
|
6434
6540
|
}
|
|
6435
6541
|
}
|
|
@@ -6455,7 +6561,7 @@ const _MacroParser$1 = (
|
|
|
6455
6561
|
s3 = peg$parsePropIndex();
|
|
6456
6562
|
}
|
|
6457
6563
|
peg$savedPos = s0;
|
|
6458
|
-
s0 = peg$
|
|
6564
|
+
s0 = peg$f2(s1, s2);
|
|
6459
6565
|
} else {
|
|
6460
6566
|
peg$currPos = s0;
|
|
6461
6567
|
s0 = peg$FAILED;
|
|
@@ -6474,7 +6580,7 @@ const _MacroParser$1 = (
|
|
|
6474
6580
|
s3 = peg$parsePropIndex();
|
|
6475
6581
|
}
|
|
6476
6582
|
peg$savedPos = s0;
|
|
6477
|
-
s0 = peg$
|
|
6583
|
+
s0 = peg$f3(s1, s2);
|
|
6478
6584
|
} else {
|
|
6479
6585
|
peg$currPos = s0;
|
|
6480
6586
|
s0 = peg$FAILED;
|
|
@@ -6494,7 +6600,7 @@ const _MacroParser$1 = (
|
|
|
6494
6600
|
} else {
|
|
6495
6601
|
s4 = peg$FAILED;
|
|
6496
6602
|
if (peg$silentFails === 0) {
|
|
6497
|
-
peg$fail(peg$
|
|
6603
|
+
peg$fail(peg$e0);
|
|
6498
6604
|
}
|
|
6499
6605
|
}
|
|
6500
6606
|
if (s4 !== peg$FAILED) {
|
|
@@ -6518,7 +6624,7 @@ const _MacroParser$1 = (
|
|
|
6518
6624
|
} else {
|
|
6519
6625
|
s4 = peg$FAILED;
|
|
6520
6626
|
if (peg$silentFails === 0) {
|
|
6521
|
-
peg$fail(peg$
|
|
6627
|
+
peg$fail(peg$e0);
|
|
6522
6628
|
}
|
|
6523
6629
|
}
|
|
6524
6630
|
if (s4 !== peg$FAILED) {
|
|
@@ -6535,7 +6641,7 @@ const _MacroParser$1 = (
|
|
|
6535
6641
|
}
|
|
6536
6642
|
}
|
|
6537
6643
|
peg$savedPos = s0;
|
|
6538
|
-
s0 = peg$
|
|
6644
|
+
s0 = peg$f4(s1, s2);
|
|
6539
6645
|
} else {
|
|
6540
6646
|
peg$currPos = s0;
|
|
6541
6647
|
s0 = peg$FAILED;
|
|
@@ -6555,7 +6661,7 @@ const _MacroParser$1 = (
|
|
|
6555
6661
|
} else {
|
|
6556
6662
|
s4 = peg$FAILED;
|
|
6557
6663
|
if (peg$silentFails === 0) {
|
|
6558
|
-
peg$fail(peg$
|
|
6664
|
+
peg$fail(peg$e0);
|
|
6559
6665
|
}
|
|
6560
6666
|
}
|
|
6561
6667
|
if (s4 !== peg$FAILED) {
|
|
@@ -6579,7 +6685,7 @@ const _MacroParser$1 = (
|
|
|
6579
6685
|
} else {
|
|
6580
6686
|
s4 = peg$FAILED;
|
|
6581
6687
|
if (peg$silentFails === 0) {
|
|
6582
|
-
peg$fail(peg$
|
|
6688
|
+
peg$fail(peg$e0);
|
|
6583
6689
|
}
|
|
6584
6690
|
}
|
|
6585
6691
|
if (s4 !== peg$FAILED) {
|
|
@@ -6596,7 +6702,7 @@ const _MacroParser$1 = (
|
|
|
6596
6702
|
}
|
|
6597
6703
|
}
|
|
6598
6704
|
peg$savedPos = s0;
|
|
6599
|
-
s0 = peg$
|
|
6705
|
+
s0 = peg$f5(s1, s2);
|
|
6600
6706
|
} else {
|
|
6601
6707
|
peg$currPos = s0;
|
|
6602
6708
|
s0 = peg$FAILED;
|
|
@@ -6612,7 +6718,7 @@ const _MacroParser$1 = (
|
|
|
6612
6718
|
} else {
|
|
6613
6719
|
s1 = peg$FAILED;
|
|
6614
6720
|
if (peg$silentFails === 0) {
|
|
6615
|
-
peg$fail(peg$
|
|
6721
|
+
peg$fail(peg$e5);
|
|
6616
6722
|
}
|
|
6617
6723
|
}
|
|
6618
6724
|
if (s1 !== peg$FAILED) {
|
|
@@ -6622,7 +6728,7 @@ const _MacroParser$1 = (
|
|
|
6622
6728
|
} else {
|
|
6623
6729
|
s2 = peg$FAILED;
|
|
6624
6730
|
if (peg$silentFails === 0) {
|
|
6625
|
-
peg$fail(peg$
|
|
6731
|
+
peg$fail(peg$e6);
|
|
6626
6732
|
}
|
|
6627
6733
|
}
|
|
6628
6734
|
if (s2 !== peg$FAILED) {
|
|
@@ -6634,12 +6740,12 @@ const _MacroParser$1 = (
|
|
|
6634
6740
|
} else {
|
|
6635
6741
|
s4 = peg$FAILED;
|
|
6636
6742
|
if (peg$silentFails === 0) {
|
|
6637
|
-
peg$fail(peg$
|
|
6743
|
+
peg$fail(peg$e7);
|
|
6638
6744
|
}
|
|
6639
6745
|
}
|
|
6640
6746
|
if (s4 !== peg$FAILED) {
|
|
6641
6747
|
peg$savedPos = s0;
|
|
6642
|
-
s0 = peg$
|
|
6748
|
+
s0 = peg$f6(s3);
|
|
6643
6749
|
} else {
|
|
6644
6750
|
peg$currPos = s0;
|
|
6645
6751
|
s0 = peg$FAILED;
|
|
@@ -6664,14 +6770,14 @@ const _MacroParser$1 = (
|
|
|
6664
6770
|
} else {
|
|
6665
6771
|
s1 = peg$FAILED;
|
|
6666
6772
|
if (peg$silentFails === 0) {
|
|
6667
|
-
peg$fail(peg$
|
|
6773
|
+
peg$fail(peg$e5);
|
|
6668
6774
|
}
|
|
6669
6775
|
}
|
|
6670
6776
|
if (s1 !== peg$FAILED) {
|
|
6671
6777
|
s2 = peg$parseSimpleAddressMacro();
|
|
6672
6778
|
if (s2 !== peg$FAILED) {
|
|
6673
6779
|
peg$savedPos = s0;
|
|
6674
|
-
s0 = peg$
|
|
6780
|
+
s0 = peg$f7(s2);
|
|
6675
6781
|
} else {
|
|
6676
6782
|
peg$currPos = s0;
|
|
6677
6783
|
s0 = peg$FAILED;
|
|
@@ -6693,7 +6799,7 @@ const _MacroParser$1 = (
|
|
|
6693
6799
|
s2 = null;
|
|
6694
6800
|
}
|
|
6695
6801
|
peg$savedPos = s0;
|
|
6696
|
-
s0 = peg$
|
|
6802
|
+
s0 = peg$f8(s1, s2);
|
|
6697
6803
|
} else {
|
|
6698
6804
|
peg$currPos = s0;
|
|
6699
6805
|
s0 = peg$FAILED;
|
|
@@ -6710,7 +6816,7 @@ const _MacroParser$1 = (
|
|
|
6710
6816
|
s2 = null;
|
|
6711
6817
|
}
|
|
6712
6818
|
peg$savedPos = s0;
|
|
6713
|
-
s0 = peg$
|
|
6819
|
+
s0 = peg$f9(s1, s2);
|
|
6714
6820
|
} else {
|
|
6715
6821
|
peg$currPos = s0;
|
|
6716
6822
|
s0 = peg$FAILED;
|
|
@@ -6726,7 +6832,7 @@ const _MacroParser$1 = (
|
|
|
6726
6832
|
} else {
|
|
6727
6833
|
s1 = peg$FAILED;
|
|
6728
6834
|
if (peg$silentFails === 0) {
|
|
6729
|
-
peg$fail(peg$
|
|
6835
|
+
peg$fail(peg$e8);
|
|
6730
6836
|
}
|
|
6731
6837
|
}
|
|
6732
6838
|
if (s1 !== peg$FAILED) {
|
|
@@ -6736,7 +6842,7 @@ const _MacroParser$1 = (
|
|
|
6736
6842
|
} else {
|
|
6737
6843
|
s2 = peg$FAILED;
|
|
6738
6844
|
if (peg$silentFails === 0) {
|
|
6739
|
-
peg$fail(peg$
|
|
6845
|
+
peg$fail(peg$e6);
|
|
6740
6846
|
}
|
|
6741
6847
|
}
|
|
6742
6848
|
if (s2 !== peg$FAILED) {
|
|
@@ -6748,7 +6854,7 @@ const _MacroParser$1 = (
|
|
|
6748
6854
|
} else {
|
|
6749
6855
|
s4 = peg$FAILED;
|
|
6750
6856
|
if (peg$silentFails === 0) {
|
|
6751
|
-
peg$fail(peg$
|
|
6857
|
+
peg$fail(peg$e7);
|
|
6752
6858
|
}
|
|
6753
6859
|
}
|
|
6754
6860
|
if (s4 !== peg$FAILED) {
|
|
@@ -6757,7 +6863,7 @@ const _MacroParser$1 = (
|
|
|
6757
6863
|
s5 = null;
|
|
6758
6864
|
}
|
|
6759
6865
|
peg$savedPos = s0;
|
|
6760
|
-
s0 = peg$
|
|
6866
|
+
s0 = peg$f10(s3, s5);
|
|
6761
6867
|
} else {
|
|
6762
6868
|
peg$currPos = s0;
|
|
6763
6869
|
s0 = peg$FAILED;
|
|
@@ -6782,7 +6888,7 @@ const _MacroParser$1 = (
|
|
|
6782
6888
|
} else {
|
|
6783
6889
|
s1 = peg$FAILED;
|
|
6784
6890
|
if (peg$silentFails === 0) {
|
|
6785
|
-
peg$fail(peg$
|
|
6891
|
+
peg$fail(peg$e8);
|
|
6786
6892
|
}
|
|
6787
6893
|
}
|
|
6788
6894
|
if (s1 !== peg$FAILED) {
|
|
@@ -6793,7 +6899,7 @@ const _MacroParser$1 = (
|
|
|
6793
6899
|
s3 = null;
|
|
6794
6900
|
}
|
|
6795
6901
|
peg$savedPos = s0;
|
|
6796
|
-
s0 = peg$
|
|
6902
|
+
s0 = peg$f11(s2, s3);
|
|
6797
6903
|
} else {
|
|
6798
6904
|
peg$currPos = s0;
|
|
6799
6905
|
s0 = peg$FAILED;
|
|
@@ -6814,7 +6920,7 @@ const _MacroParser$1 = (
|
|
|
6814
6920
|
} else {
|
|
6815
6921
|
s1 = peg$FAILED;
|
|
6816
6922
|
if (peg$silentFails === 0) {
|
|
6817
|
-
peg$fail(peg$
|
|
6923
|
+
peg$fail(peg$e6);
|
|
6818
6924
|
}
|
|
6819
6925
|
}
|
|
6820
6926
|
if (s1 !== peg$FAILED) {
|
|
@@ -6827,7 +6933,7 @@ const _MacroParser$1 = (
|
|
|
6827
6933
|
} else {
|
|
6828
6934
|
s5 = peg$FAILED;
|
|
6829
6935
|
if (peg$silentFails === 0) {
|
|
6830
|
-
peg$fail(peg$
|
|
6936
|
+
peg$fail(peg$e7);
|
|
6831
6937
|
}
|
|
6832
6938
|
}
|
|
6833
6939
|
if (s5 !== peg$FAILED) {
|
|
@@ -6855,7 +6961,7 @@ const _MacroParser$1 = (
|
|
|
6855
6961
|
} else {
|
|
6856
6962
|
s5 = peg$FAILED;
|
|
6857
6963
|
if (peg$silentFails === 0) {
|
|
6858
|
-
peg$fail(peg$
|
|
6964
|
+
peg$fail(peg$e9);
|
|
6859
6965
|
}
|
|
6860
6966
|
}
|
|
6861
6967
|
if (s5 !== peg$FAILED) {
|
|
@@ -6876,7 +6982,7 @@ const _MacroParser$1 = (
|
|
|
6876
6982
|
} else {
|
|
6877
6983
|
s5 = peg$FAILED;
|
|
6878
6984
|
if (peg$silentFails === 0) {
|
|
6879
|
-
peg$fail(peg$
|
|
6985
|
+
peg$fail(peg$e9);
|
|
6880
6986
|
}
|
|
6881
6987
|
}
|
|
6882
6988
|
if (s5 !== peg$FAILED) {
|
|
@@ -6889,7 +6995,7 @@ const _MacroParser$1 = (
|
|
|
6889
6995
|
}
|
|
6890
6996
|
}
|
|
6891
6997
|
peg$savedPos = s0;
|
|
6892
|
-
s0 = peg$
|
|
6998
|
+
s0 = peg$f12(s1, s2);
|
|
6893
6999
|
return s0;
|
|
6894
7000
|
}
|
|
6895
7001
|
function peg$parseBalancedParenTextNoComma() {
|
|
@@ -6909,7 +7015,7 @@ const _MacroParser$1 = (
|
|
|
6909
7015
|
s5 = peg$parseCloseParen();
|
|
6910
7016
|
if (s5 !== peg$FAILED) {
|
|
6911
7017
|
peg$savedPos = s2;
|
|
6912
|
-
s2 = peg$
|
|
7018
|
+
s2 = peg$f13(s3, s4, s5);
|
|
6913
7019
|
} else {
|
|
6914
7020
|
peg$currPos = s2;
|
|
6915
7021
|
s2 = peg$FAILED;
|
|
@@ -6936,7 +7042,7 @@ const _MacroParser$1 = (
|
|
|
6936
7042
|
s5 = peg$parseCloseParen();
|
|
6937
7043
|
if (s5 !== peg$FAILED) {
|
|
6938
7044
|
peg$savedPos = s2;
|
|
6939
|
-
s2 = peg$
|
|
7045
|
+
s2 = peg$f13(s3, s4, s5);
|
|
6940
7046
|
} else {
|
|
6941
7047
|
peg$currPos = s2;
|
|
6942
7048
|
s2 = peg$FAILED;
|
|
@@ -6950,7 +7056,7 @@ const _MacroParser$1 = (
|
|
|
6950
7056
|
}
|
|
6951
7057
|
}
|
|
6952
7058
|
peg$savedPos = s0;
|
|
6953
|
-
s1 = peg$
|
|
7059
|
+
s1 = peg$f14(s1);
|
|
6954
7060
|
s0 = s1;
|
|
6955
7061
|
return s0;
|
|
6956
7062
|
}
|
|
@@ -6971,7 +7077,7 @@ const _MacroParser$1 = (
|
|
|
6971
7077
|
s5 = peg$parseCloseParen();
|
|
6972
7078
|
if (s5 !== peg$FAILED) {
|
|
6973
7079
|
peg$savedPos = s2;
|
|
6974
|
-
s2 = peg$
|
|
7080
|
+
s2 = peg$f15(s3, s4, s5);
|
|
6975
7081
|
} else {
|
|
6976
7082
|
peg$currPos = s2;
|
|
6977
7083
|
s2 = peg$FAILED;
|
|
@@ -6998,7 +7104,7 @@ const _MacroParser$1 = (
|
|
|
6998
7104
|
s5 = peg$parseCloseParen();
|
|
6999
7105
|
if (s5 !== peg$FAILED) {
|
|
7000
7106
|
peg$savedPos = s2;
|
|
7001
|
-
s2 = peg$
|
|
7107
|
+
s2 = peg$f15(s3, s4, s5);
|
|
7002
7108
|
} else {
|
|
7003
7109
|
peg$currPos = s2;
|
|
7004
7110
|
s2 = peg$FAILED;
|
|
@@ -7012,7 +7118,7 @@ const _MacroParser$1 = (
|
|
|
7012
7118
|
}
|
|
7013
7119
|
}
|
|
7014
7120
|
peg$savedPos = s0;
|
|
7015
|
-
s1 = peg$
|
|
7121
|
+
s1 = peg$f16(s1);
|
|
7016
7122
|
s0 = s1;
|
|
7017
7123
|
return s0;
|
|
7018
7124
|
}
|
|
@@ -7025,7 +7131,7 @@ const _MacroParser$1 = (
|
|
|
7025
7131
|
} else {
|
|
7026
7132
|
s1 = peg$FAILED;
|
|
7027
7133
|
if (peg$silentFails === 0) {
|
|
7028
|
-
peg$fail(peg$
|
|
7134
|
+
peg$fail(peg$e10);
|
|
7029
7135
|
}
|
|
7030
7136
|
}
|
|
7031
7137
|
if (s1 !== peg$FAILED) {
|
|
@@ -7058,12 +7164,12 @@ const _MacroParser$1 = (
|
|
|
7058
7164
|
} else {
|
|
7059
7165
|
s4 = peg$FAILED;
|
|
7060
7166
|
if (peg$silentFails === 0) {
|
|
7061
|
-
peg$fail(peg$
|
|
7167
|
+
peg$fail(peg$e11);
|
|
7062
7168
|
}
|
|
7063
7169
|
}
|
|
7064
7170
|
if (s4 !== peg$FAILED) {
|
|
7065
7171
|
peg$savedPos = s0;
|
|
7066
|
-
s0 = peg$
|
|
7172
|
+
s0 = peg$f17(s3);
|
|
7067
7173
|
} else {
|
|
7068
7174
|
peg$currPos = s0;
|
|
7069
7175
|
s0 = peg$FAILED;
|
|
@@ -7083,7 +7189,7 @@ const _MacroParser$1 = (
|
|
|
7083
7189
|
} else {
|
|
7084
7190
|
s1 = peg$FAILED;
|
|
7085
7191
|
if (peg$silentFails === 0) {
|
|
7086
|
-
peg$fail(peg$
|
|
7192
|
+
peg$fail(peg$e12);
|
|
7087
7193
|
}
|
|
7088
7194
|
}
|
|
7089
7195
|
if (s1 !== peg$FAILED) {
|
|
@@ -7128,12 +7234,12 @@ const _MacroParser$1 = (
|
|
|
7128
7234
|
} else {
|
|
7129
7235
|
s4 = peg$FAILED;
|
|
7130
7236
|
if (peg$silentFails === 0) {
|
|
7131
|
-
peg$fail(peg$
|
|
7237
|
+
peg$fail(peg$e13);
|
|
7132
7238
|
}
|
|
7133
7239
|
}
|
|
7134
7240
|
if (s4 !== peg$FAILED) {
|
|
7135
7241
|
peg$savedPos = s0;
|
|
7136
|
-
s0 = peg$
|
|
7242
|
+
s0 = peg$f18(s3);
|
|
7137
7243
|
} else {
|
|
7138
7244
|
peg$currPos = s0;
|
|
7139
7245
|
s0 = peg$FAILED;
|
|
@@ -7156,7 +7262,7 @@ const _MacroParser$1 = (
|
|
|
7156
7262
|
} else {
|
|
7157
7263
|
s3 = peg$FAILED;
|
|
7158
7264
|
if (peg$silentFails === 0) {
|
|
7159
|
-
peg$fail(peg$
|
|
7265
|
+
peg$fail(peg$e14);
|
|
7160
7266
|
}
|
|
7161
7267
|
}
|
|
7162
7268
|
if (s3 !== peg$FAILED) {
|
|
@@ -7164,7 +7270,7 @@ const _MacroParser$1 = (
|
|
|
7164
7270
|
s5 = peg$parseAttrValue();
|
|
7165
7271
|
if (s5 !== peg$FAILED) {
|
|
7166
7272
|
peg$savedPos = s0;
|
|
7167
|
-
s0 = peg$
|
|
7273
|
+
s0 = peg$f19(s1, s5);
|
|
7168
7274
|
} else {
|
|
7169
7275
|
peg$currPos = s0;
|
|
7170
7276
|
s0 = peg$FAILED;
|
|
@@ -7182,7 +7288,7 @@ const _MacroParser$1 = (
|
|
|
7182
7288
|
s1 = peg$parseAttrName();
|
|
7183
7289
|
if (s1 !== peg$FAILED) {
|
|
7184
7290
|
peg$savedPos = s0;
|
|
7185
|
-
s1 = peg$
|
|
7291
|
+
s1 = peg$f20(s1);
|
|
7186
7292
|
}
|
|
7187
7293
|
s0 = s1;
|
|
7188
7294
|
}
|
|
@@ -7198,7 +7304,7 @@ const _MacroParser$1 = (
|
|
|
7198
7304
|
} else {
|
|
7199
7305
|
s2 = peg$FAILED;
|
|
7200
7306
|
if (peg$silentFails === 0) {
|
|
7201
|
-
peg$fail(peg$
|
|
7307
|
+
peg$fail(peg$e15);
|
|
7202
7308
|
}
|
|
7203
7309
|
}
|
|
7204
7310
|
if (s2 !== peg$FAILED) {
|
|
@@ -7210,7 +7316,7 @@ const _MacroParser$1 = (
|
|
|
7210
7316
|
} else {
|
|
7211
7317
|
s2 = peg$FAILED;
|
|
7212
7318
|
if (peg$silentFails === 0) {
|
|
7213
|
-
peg$fail(peg$
|
|
7319
|
+
peg$fail(peg$e15);
|
|
7214
7320
|
}
|
|
7215
7321
|
}
|
|
7216
7322
|
}
|
|
@@ -7233,7 +7339,7 @@ const _MacroParser$1 = (
|
|
|
7233
7339
|
} else {
|
|
7234
7340
|
s1 = peg$FAILED;
|
|
7235
7341
|
if (peg$silentFails === 0) {
|
|
7236
|
-
peg$fail(peg$
|
|
7342
|
+
peg$fail(peg$e16);
|
|
7237
7343
|
}
|
|
7238
7344
|
}
|
|
7239
7345
|
if (s1 !== peg$FAILED) {
|
|
@@ -7261,7 +7367,7 @@ const _MacroParser$1 = (
|
|
|
7261
7367
|
} else {
|
|
7262
7368
|
s3 = peg$FAILED;
|
|
7263
7369
|
if (peg$silentFails === 0) {
|
|
7264
|
-
peg$fail(peg$
|
|
7370
|
+
peg$fail(peg$e16);
|
|
7265
7371
|
}
|
|
7266
7372
|
}
|
|
7267
7373
|
if (s3 !== peg$FAILED) {
|
|
@@ -7282,7 +7388,7 @@ const _MacroParser$1 = (
|
|
|
7282
7388
|
} else {
|
|
7283
7389
|
s1 = peg$FAILED;
|
|
7284
7390
|
if (peg$silentFails === 0) {
|
|
7285
|
-
peg$fail(peg$
|
|
7391
|
+
peg$fail(peg$e17);
|
|
7286
7392
|
}
|
|
7287
7393
|
}
|
|
7288
7394
|
if (s1 !== peg$FAILED) {
|
|
@@ -7310,7 +7416,7 @@ const _MacroParser$1 = (
|
|
|
7310
7416
|
} else {
|
|
7311
7417
|
s3 = peg$FAILED;
|
|
7312
7418
|
if (peg$silentFails === 0) {
|
|
7313
|
-
peg$fail(peg$
|
|
7419
|
+
peg$fail(peg$e17);
|
|
7314
7420
|
}
|
|
7315
7421
|
}
|
|
7316
7422
|
if (s3 !== peg$FAILED) {
|
|
@@ -7337,7 +7443,7 @@ const _MacroParser$1 = (
|
|
|
7337
7443
|
} else {
|
|
7338
7444
|
s3 = peg$FAILED;
|
|
7339
7445
|
if (peg$silentFails === 0) {
|
|
7340
|
-
peg$fail(peg$
|
|
7446
|
+
peg$fail(peg$e18);
|
|
7341
7447
|
}
|
|
7342
7448
|
}
|
|
7343
7449
|
if (s3 !== peg$FAILED) {
|
|
@@ -7349,7 +7455,7 @@ const _MacroParser$1 = (
|
|
|
7349
7455
|
} else {
|
|
7350
7456
|
s3 = peg$FAILED;
|
|
7351
7457
|
if (peg$silentFails === 0) {
|
|
7352
|
-
peg$fail(peg$
|
|
7458
|
+
peg$fail(peg$e18);
|
|
7353
7459
|
}
|
|
7354
7460
|
}
|
|
7355
7461
|
}
|
|
@@ -7368,13 +7474,13 @@ const _MacroParser$1 = (
|
|
|
7368
7474
|
} else {
|
|
7369
7475
|
s1 = peg$FAILED;
|
|
7370
7476
|
if (peg$silentFails === 0) {
|
|
7371
|
-
peg$fail(peg$
|
|
7477
|
+
peg$fail(peg$e1);
|
|
7372
7478
|
}
|
|
7373
7479
|
}
|
|
7374
7480
|
}
|
|
7375
7481
|
if (s1 !== peg$FAILED) {
|
|
7376
7482
|
peg$savedPos = s0;
|
|
7377
|
-
s1 = peg$
|
|
7483
|
+
s1 = peg$f21(s1);
|
|
7378
7484
|
}
|
|
7379
7485
|
s0 = s1;
|
|
7380
7486
|
return s0;
|
|
@@ -7388,12 +7494,12 @@ const _MacroParser$1 = (
|
|
|
7388
7494
|
} else {
|
|
7389
7495
|
s1 = peg$FAILED;
|
|
7390
7496
|
if (peg$silentFails === 0) {
|
|
7391
|
-
peg$fail(peg$
|
|
7497
|
+
peg$fail(peg$e6);
|
|
7392
7498
|
}
|
|
7393
7499
|
}
|
|
7394
7500
|
if (s1 !== peg$FAILED) {
|
|
7395
7501
|
peg$savedPos = s0;
|
|
7396
|
-
s1 = peg$
|
|
7502
|
+
s1 = peg$f23();
|
|
7397
7503
|
}
|
|
7398
7504
|
s0 = s1;
|
|
7399
7505
|
return s0;
|
|
@@ -7407,12 +7513,12 @@ const _MacroParser$1 = (
|
|
|
7407
7513
|
} else {
|
|
7408
7514
|
s1 = peg$FAILED;
|
|
7409
7515
|
if (peg$silentFails === 0) {
|
|
7410
|
-
peg$fail(peg$
|
|
7516
|
+
peg$fail(peg$e7);
|
|
7411
7517
|
}
|
|
7412
7518
|
}
|
|
7413
7519
|
if (s1 !== peg$FAILED) {
|
|
7414
7520
|
peg$savedPos = s0;
|
|
7415
|
-
s1 = peg$
|
|
7521
|
+
s1 = peg$f24();
|
|
7416
7522
|
}
|
|
7417
7523
|
s0 = s1;
|
|
7418
7524
|
return s0;
|
|
@@ -7465,7 +7571,7 @@ const _MacroParser$1 = (
|
|
|
7465
7571
|
}
|
|
7466
7572
|
if (s1 !== peg$FAILED) {
|
|
7467
7573
|
peg$savedPos = s0;
|
|
7468
|
-
s1 = peg$
|
|
7574
|
+
s1 = peg$f25(s1);
|
|
7469
7575
|
}
|
|
7470
7576
|
s0 = s1;
|
|
7471
7577
|
return s0;
|
|
@@ -7518,7 +7624,7 @@ const _MacroParser$1 = (
|
|
|
7518
7624
|
}
|
|
7519
7625
|
if (s1 !== peg$FAILED) {
|
|
7520
7626
|
peg$savedPos = s0;
|
|
7521
|
-
s1 = peg$
|
|
7627
|
+
s1 = peg$f26(s1);
|
|
7522
7628
|
}
|
|
7523
7629
|
s0 = s1;
|
|
7524
7630
|
return s0;
|
|
@@ -7571,7 +7677,7 @@ const _MacroParser$1 = (
|
|
|
7571
7677
|
}
|
|
7572
7678
|
if (s1 !== peg$FAILED) {
|
|
7573
7679
|
peg$savedPos = s0;
|
|
7574
|
-
s1 = peg$
|
|
7680
|
+
s1 = peg$f27(s1);
|
|
7575
7681
|
}
|
|
7576
7682
|
s0 = s1;
|
|
7577
7683
|
return s0;
|
|
@@ -7624,7 +7730,7 @@ const _MacroParser$1 = (
|
|
|
7624
7730
|
}
|
|
7625
7731
|
if (s1 !== peg$FAILED) {
|
|
7626
7732
|
peg$savedPos = s0;
|
|
7627
|
-
s1 = peg$
|
|
7733
|
+
s1 = peg$f28(s1);
|
|
7628
7734
|
}
|
|
7629
7735
|
s0 = s1;
|
|
7630
7736
|
return s0;
|
|
@@ -7677,7 +7783,7 @@ const _MacroParser$1 = (
|
|
|
7677
7783
|
}
|
|
7678
7784
|
if (s1 !== peg$FAILED) {
|
|
7679
7785
|
peg$savedPos = s0;
|
|
7680
|
-
s1 = peg$
|
|
7786
|
+
s1 = peg$f29(s1);
|
|
7681
7787
|
}
|
|
7682
7788
|
s0 = s1;
|
|
7683
7789
|
return s0;
|
|
@@ -7755,7 +7861,7 @@ const _MacroParser$1 = (
|
|
|
7755
7861
|
}
|
|
7756
7862
|
}
|
|
7757
7863
|
return {
|
|
7758
|
-
StartRules: ["top"],
|
|
7864
|
+
StartRules: ["top", "MacroTail"],
|
|
7759
7865
|
SyntaxError: peg$SyntaxError,
|
|
7760
7866
|
parse: peg$parse
|
|
7761
7867
|
};
|
|
@@ -7765,6 +7871,9 @@ const MacroParser$1 = _MacroParser$1;
|
|
|
7765
7871
|
function parseMacros(str) {
|
|
7766
7872
|
return MacroParser$1.parse(str);
|
|
7767
7873
|
}
|
|
7874
|
+
function parseMacroTail(str) {
|
|
7875
|
+
return MacroParser$1.parse(str, { startRule: "MacroTail" });
|
|
7876
|
+
}
|
|
7768
7877
|
function gobbleFunctionArguments(nodes) {
|
|
7769
7878
|
if (!nodes.some((node) => node.type === "function" && node.input == null)) {
|
|
7770
7879
|
return nodes;
|
|
@@ -7811,7 +7920,11 @@ function gobbleFunctionArguments(nodes) {
|
|
|
7811
7920
|
}
|
|
7812
7921
|
if (nextNode.value === "," && parenDepth <= 1) {
|
|
7813
7922
|
functionNode.input.push(
|
|
7814
|
-
trimWhitespace$1(
|
|
7923
|
+
trimWhitespace$1(
|
|
7924
|
+
gobbleFunctionArguments(
|
|
7925
|
+
currentFunctionArg
|
|
7926
|
+
)
|
|
7927
|
+
)
|
|
7815
7928
|
);
|
|
7816
7929
|
currentFunctionArg = [];
|
|
7817
7930
|
i2++;
|
|
@@ -7852,7 +7965,12 @@ function splitTextAtSpecialChars$1(node, specialChars = /[\(\),]/) {
|
|
|
7852
7965
|
}
|
|
7853
7966
|
const [left, middle, right] = splitTextNodeAt$1(node, pos);
|
|
7854
7967
|
const ret = [left, middle, ...splitTextAtSpecialChars$1(right, specialChars)];
|
|
7855
|
-
|
|
7968
|
+
const kept = ret.filter((node2) => node2.value !== "");
|
|
7969
|
+
const last2 = kept[kept.length - 1];
|
|
7970
|
+
if (last2?.position && node.position) {
|
|
7971
|
+
last2.position.end = { ...node.position.end };
|
|
7972
|
+
}
|
|
7973
|
+
return kept;
|
|
7856
7974
|
}
|
|
7857
7975
|
const DEFAULT_POSITION$1 = {
|
|
7858
7976
|
start: { offset: 0, line: 1, column: 1 },
|
|
@@ -7937,7 +8055,21 @@ function trimWhitespace$1(nodes) {
|
|
|
7937
8055
|
}
|
|
7938
8056
|
return nodes;
|
|
7939
8057
|
}
|
|
7940
|
-
function gobblePropIndices(nodes) {
|
|
8058
|
+
function gobblePropIndices(nodes, offsetMap, options = {}) {
|
|
8059
|
+
const { warnOnly = false } = options;
|
|
8060
|
+
if (warnOnly) {
|
|
8061
|
+
for (const node of nodes) {
|
|
8062
|
+
if (node.type === "function" && node.input) {
|
|
8063
|
+
node.input = node.input.map(
|
|
8064
|
+
(argument) => gobblePropIndices(
|
|
8065
|
+
argument,
|
|
8066
|
+
offsetMap,
|
|
8067
|
+
options
|
|
8068
|
+
)
|
|
8069
|
+
);
|
|
8070
|
+
}
|
|
8071
|
+
}
|
|
8072
|
+
}
|
|
7941
8073
|
if (!mayHaveAnElementIndex(nodes)) {
|
|
7942
8074
|
return nodes;
|
|
7943
8075
|
}
|
|
@@ -7980,14 +8112,12 @@ function gobblePropIndices(nodes) {
|
|
|
7980
8112
|
}
|
|
7981
8113
|
break;
|
|
7982
8114
|
}
|
|
7983
|
-
if (
|
|
7984
|
-
ret.push(
|
|
7985
|
-
indexWarning(node, split2[i2 + 1], "called")
|
|
7986
|
-
);
|
|
8115
|
+
if (warnOnly) {
|
|
7987
8116
|
break;
|
|
7988
8117
|
}
|
|
7989
|
-
ret.push(...attachIndex(node, group2));
|
|
8118
|
+
ret.push(...attachIndex(node, group2, offsetMap));
|
|
7990
8119
|
i2 = group2.closeIdx;
|
|
8120
|
+
graftTail(split2, i2 + 1, node, offsetMap);
|
|
7991
8121
|
}
|
|
7992
8122
|
}
|
|
7993
8123
|
return mergeAdjacentTextInArray(ret);
|
|
@@ -8026,13 +8156,6 @@ function collectBracketGroup(nodes, openIdx) {
|
|
|
8026
8156
|
}
|
|
8027
8157
|
return null;
|
|
8028
8158
|
}
|
|
8029
|
-
function isCallFollowing(nodes, group2) {
|
|
8030
|
-
const next = nodes[group2.closeIdx + 1];
|
|
8031
|
-
if (!(next?.type === "text" && next.value.startsWith("("))) {
|
|
8032
|
-
return false;
|
|
8033
|
-
}
|
|
8034
|
-
return nodes.slice(group2.closeIdx + 1).some((node) => node.type === "text" && node.value.includes(")"));
|
|
8035
|
-
}
|
|
8036
8159
|
function whatClosedThePath(reference) {
|
|
8037
8160
|
const lastPart = reference.path[reference.path.length - 1];
|
|
8038
8161
|
const referenceEnd = reference.position?.end?.offset;
|
|
@@ -8048,17 +8171,124 @@ function whatClosedThePath(reference) {
|
|
|
8048
8171
|
}
|
|
8049
8172
|
const referenceStart = reference.position?.start?.offset;
|
|
8050
8173
|
const firstStart = reference.path[0]?.position?.start?.offset;
|
|
8051
|
-
const
|
|
8052
|
-
if (referenceStart == null || firstStart == null || firstStart > referenceStart +
|
|
8174
|
+
const dollarCount = reference.type === "function" ? 2 : 1;
|
|
8175
|
+
if (referenceStart == null || firstStart == null || firstStart > referenceStart + dollarCount) {
|
|
8053
8176
|
return reference.type === "function" ? "parensFunction" : "parens";
|
|
8054
8177
|
}
|
|
8055
8178
|
return "braces";
|
|
8056
8179
|
}
|
|
8057
|
-
function
|
|
8180
|
+
function graftTail(nodes, startIdx, reference, offsetMap) {
|
|
8181
|
+
let endIdx = startIdx;
|
|
8182
|
+
while (nodes[endIdx]?.type === "text") {
|
|
8183
|
+
endIdx++;
|
|
8184
|
+
}
|
|
8185
|
+
if (endIdx === startIdx) {
|
|
8186
|
+
return false;
|
|
8187
|
+
}
|
|
8188
|
+
const run = nodes.slice(startIdx, endIdx);
|
|
8189
|
+
const first2 = run[0];
|
|
8190
|
+
const last2 = run[run.length - 1];
|
|
8191
|
+
if (!first2.position || !last2.position) {
|
|
8192
|
+
return false;
|
|
8193
|
+
}
|
|
8194
|
+
const joined = run.map((n2) => n2.value).join("");
|
|
8195
|
+
const tail = parseMacroTail(joined);
|
|
8196
|
+
const takesAttributes = reference.type === "macro";
|
|
8197
|
+
const attrs = takesAttributes ? tail.attrs : null;
|
|
8198
|
+
const consumed = takesAttributes ? joined.length - tail.remainder.length : tail.attrsOffset;
|
|
8199
|
+
if (consumed === 0) {
|
|
8200
|
+
return false;
|
|
8201
|
+
}
|
|
8202
|
+
const claimed = [
|
|
8203
|
+
...tail.index,
|
|
8204
|
+
...tail.parts,
|
|
8205
|
+
...attrs ? Object.values(attrs) : []
|
|
8206
|
+
];
|
|
8207
|
+
for (const node of findNodesWithPositionInfo(claimed)) {
|
|
8208
|
+
if (!node.position) {
|
|
8209
|
+
continue;
|
|
8210
|
+
}
|
|
8211
|
+
node.position.start = pointAtDecoded(
|
|
8212
|
+
run,
|
|
8213
|
+
node.position.start.offset ?? 0,
|
|
8214
|
+
offsetMap
|
|
8215
|
+
);
|
|
8216
|
+
node.position.end = pointAtDecoded(
|
|
8217
|
+
run,
|
|
8218
|
+
node.position.end.offset ?? 0,
|
|
8219
|
+
offsetMap
|
|
8220
|
+
);
|
|
8221
|
+
}
|
|
8222
|
+
const lastPart = reference.path[reference.path.length - 1];
|
|
8223
|
+
lastPart.index.push(...tail.index);
|
|
8224
|
+
if (tail.index.length > 0 && lastPart.position) {
|
|
8225
|
+
const grownTo = lastPart.index[lastPart.index.length - 1].position?.end;
|
|
8226
|
+
if (grownTo) {
|
|
8227
|
+
lastPart.position.end = {
|
|
8228
|
+
...grownTo
|
|
8229
|
+
};
|
|
8230
|
+
}
|
|
8231
|
+
}
|
|
8232
|
+
reference.path.push(...tail.parts);
|
|
8233
|
+
if (attrs && reference.type === "macro") {
|
|
8234
|
+
reference.attributes = {
|
|
8235
|
+
...reference.attributes,
|
|
8236
|
+
...attrs
|
|
8237
|
+
};
|
|
8238
|
+
}
|
|
8239
|
+
if (reference.position) {
|
|
8240
|
+
reference.position.end = pointAtDecoded(
|
|
8241
|
+
run,
|
|
8242
|
+
consumed,
|
|
8243
|
+
offsetMap
|
|
8244
|
+
);
|
|
8245
|
+
}
|
|
8246
|
+
const leftover = joined.slice(consumed);
|
|
8247
|
+
const replacement = leftover ? splitTextAtSpecialChars$1(
|
|
8248
|
+
{
|
|
8249
|
+
type: "text",
|
|
8250
|
+
value: leftover,
|
|
8251
|
+
position: {
|
|
8252
|
+
start: pointAtDecoded(run, consumed, offsetMap),
|
|
8253
|
+
end: { ...last2.position.end }
|
|
8254
|
+
}
|
|
8255
|
+
},
|
|
8256
|
+
/[\[\]]/
|
|
8257
|
+
) : [];
|
|
8258
|
+
nodes.splice(startIdx, endIdx - startIdx, ...replacement);
|
|
8259
|
+
return true;
|
|
8260
|
+
}
|
|
8261
|
+
function pointAtDecoded(run, decodedOffset, offsetMap) {
|
|
8262
|
+
const point2 = (offset) => ({
|
|
8263
|
+
offset,
|
|
8264
|
+
line: offsetMap.rowMap[offset] + 1,
|
|
8265
|
+
column: offsetMap.columnMap[offset] + 1
|
|
8266
|
+
});
|
|
8267
|
+
let decoded = 0;
|
|
8268
|
+
for (const node of run) {
|
|
8269
|
+
const start = node.position?.start.offset ?? 0;
|
|
8270
|
+
const end = node.position?.end.offset ?? start;
|
|
8271
|
+
if (decodedOffset === decoded) {
|
|
8272
|
+
return point2(start);
|
|
8273
|
+
}
|
|
8274
|
+
if (decodedOffset < decoded + node.value.length) {
|
|
8275
|
+
return point2(start + (decodedOffset - decoded));
|
|
8276
|
+
}
|
|
8277
|
+
if (decodedOffset === decoded + node.value.length) {
|
|
8278
|
+
return point2(end);
|
|
8279
|
+
}
|
|
8280
|
+
decoded += node.value.length;
|
|
8281
|
+
}
|
|
8282
|
+
const last2 = run[run.length - 1];
|
|
8283
|
+
return point2(last2.position?.end.offset ?? 0);
|
|
8284
|
+
}
|
|
8285
|
+
function attachIndex(reference, group2, offsetMap) {
|
|
8058
8286
|
const lastPart = reference.path[reference.path.length - 1];
|
|
8059
8287
|
const content2 = group2.content;
|
|
8060
|
-
const processed =
|
|
8061
|
-
gobblePropIndices(content2)
|
|
8288
|
+
const processed = gobblePropIndices(
|
|
8289
|
+
gobbleFunctionArguments(gobblePropIndices(content2, offsetMap)),
|
|
8290
|
+
offsetMap,
|
|
8291
|
+
{ warnOnly: true }
|
|
8062
8292
|
);
|
|
8063
8293
|
const errors = processed.filter(
|
|
8064
8294
|
(node) => node.type === "error"
|
|
@@ -8094,7 +8324,6 @@ function indexWarning(reference, openBracket, reason) {
|
|
|
8094
8324
|
parens: "`$(…)` ends a reference, so `[…]` written after it is ordinary text. Give the element a name and write the index inside the parentheses, as `$(x[$idx])`.",
|
|
8095
8325
|
parensFunction: "`$$(…)` ends a function reference, so `[…]` written after it is ordinary text. Give the element a name and write the index inside the parentheses, as `$$(f[$idx])`.",
|
|
8096
8326
|
arguments: "A function reference's arguments end it, so `[…]` written after them is ordinary text. An index written before the arguments would pick which function to call rather than part of what it returns; to index the result, give the result a name and index that.",
|
|
8097
|
-
called: "An index before a function reference's arguments picks which function to call, and a computed one there is not supported. To index what the call returns, give the result a name and index that.",
|
|
8098
8327
|
unclosed: "Its `[` is never closed."
|
|
8099
8328
|
}[reason];
|
|
8100
8329
|
return codedDastError({
|
|
@@ -8125,8 +8354,12 @@ function _lezerToDast$1(node, source) {
|
|
|
8125
8354
|
const offsetMap = createOffsetToPositionMap(source);
|
|
8126
8355
|
return {
|
|
8127
8356
|
type: "root",
|
|
8128
|
-
children:
|
|
8129
|
-
|
|
8357
|
+
children: gobblePropIndices(
|
|
8358
|
+
gobbleFunctionArguments(
|
|
8359
|
+
gobblePropIndices(lezerNodeToDastNode(node), offsetMap)
|
|
8360
|
+
),
|
|
8361
|
+
offsetMap,
|
|
8362
|
+
{ warnOnly: true }
|
|
8130
8363
|
),
|
|
8131
8364
|
position: lezerNodeToPosition(node, offsetMap),
|
|
8132
8365
|
sources: [source]
|
|
@@ -8260,8 +8493,12 @@ function _lezerToDast$1(node, source) {
|
|
|
8260
8493
|
(n2) => lezerNodeToDastNode(n2)
|
|
8261
8494
|
)
|
|
8262
8495
|
);
|
|
8263
|
-
children =
|
|
8264
|
-
|
|
8496
|
+
children = gobblePropIndices(
|
|
8497
|
+
gobbleFunctionArguments(
|
|
8498
|
+
gobblePropIndices(children, offsetMap)
|
|
8499
|
+
),
|
|
8500
|
+
offsetMap,
|
|
8501
|
+
{ warnOnly: true }
|
|
8265
8502
|
);
|
|
8266
8503
|
return [
|
|
8267
8504
|
{
|
|
@@ -38895,7 +39132,7 @@ class Indent {
|
|
|
38895
39132
|
}
|
|
38896
39133
|
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 name of the button that drops one selected choice from an inline\n# `<choiceInput selectMultiple>`. The button itself is drawn as a bare cross,\n# so `$choice` — the choice's own text, which is never translated — is the\n# only thing that says which chip it belongs to.\nchoice-input-remove-choice = Remove { $choice }\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. It used to name the\n# data column being summarized; the statistics now come from values written in\n# the document, so there is no column to name and the message takes no\n# placeable. The table's own headings (`mean`, `stdev`, `quartile1`, …) are the\n# statistic ids an author references, not prose, and stay in place.\n#\n# Every translation of the old message named the column inside the sentence —\n# «Resumen estadístico de { $column }» — so none of them survives the placeable\n# being dropped, and the key was removed from the other catalogs rather than\n# truncated to whatever precedes the connector. Those locales fall back to\n# English here until the caption is translated again.\nsummary-statistics-caption = Summary statistics\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# Follows the error's own message inside that box, saying where in the source\n# the error was found. $span selects the sentence — one line or a range of\n# them — as a key rather than a phrase, so a translation is free to reorder the\n# whole of it. $startLine and $endLine are line numbers, and arrive as text\n# rather than as numbers so that line 1234 is not grouped as \"1,234\": a line\n# number is an identifier, not a quantity.\nerror-found-at =\n { $span ->\n [line] Found on line { $startLine }.\n *[lines] Found on lines { $startLine }–{ $endLine }.\n }\n\n# Banner above a document that compiled with at least one error in it.\ndocument-contains-errors = This document contains errors!\n\n# Headings of the tooltip the editor shows over a squiggle, naming what kind\n# of diagnostic it is. `-information` and `-hint` are styled identically but\n# are two different words; `-hint` is unreachable today, since nothing Doenet\n# raises is an LSP hint, and is here so the set is complete.\ndiagnostic-heading-error = Error\ndiagnostic-heading-warning = Warning\ndiagnostic-heading-information = Info\ndiagnostic-heading-hint = Hint\n\n# Headings of the same tooltip over an accessibility diagnostic, which says\n# what kind of problem it is rather than how severe. Level 1 is a failure\n# against the WCAG AA success criteria; level 2 is Doenet's own advice, which\n# no standard requires.\naccessibility-heading-level-1 = WCAG AA Accessibility Violation\naccessibility-heading-level-2 = Accessibility alert\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 = This document could not be started. Please reload the page.\n\n# Replaces `core-start-failed` when several documents were starting at the\n# same time — counted across every same-origin tab, so not necessarily all on\n# the page the reader sees. Naming the contention keeps the reader from\n# concluding the service is broken.\ncore-start-failed-busy = This document could not be started. Several documents were starting at once, which can take longer on a slower device. Reloading the page may help once the other documents have finished.\n\n# Shown for a core-start failure the reader can still retry, next to the\n# button that does it (`core-start-retry`). It leaves out the advice to\n# reload that the messages above carry: the button is the cheaper action,\n# and a reader told to reload will reload the whole page — restarting every\n# other document on it, which is what produced the failure in the first\n# place on a page that was already busy.\ncore-start-failed-retry = This document could not be started.\n\n# The contended variant of `core-start-failed-retry`, named for the same\n# reason `core-start-failed-busy` is: a reader who is told that several\n# documents were starting at once has a reason to try again in a moment\n# rather than concluding the service is broken.\ncore-start-failed-busy-retry = This document could not be started. Several documents were starting at once, which can take longer on a slower device.\n\n# Label of the button that starts a failed document over without reloading\n# the page. Offered once per document; a retry that fails too falls back to\n# `core-start-failed` / `core-start-failed-busy`, which advise the reload.\ncore-start-retry = Try again\n\n# Shown beside a document that is on screen and working, when the host\n# answered `SPLICE.getState` with an error and so the document started\n# without the reader's saved work (#1741). The host's own wording follows\n# this lead-in, so it says what was lost rather than why.\nsaved-state-unavailable = Your saved work could not be loaded.\n";
|
|
38897
39134
|
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`), and `$role`, the syntactic position the\n## phrase it belongs to is going into. English has no agreement and ignores\n## both; a language that inflects selects on them.\n##\n## `$role` is one of:\n##\n## standalone the phrase stands on its own, which is where all but\n## the three below are\n## border-clause inside `style-border-clause`, behind its preposition\n## background-clause the background colour inside `style-text`, behind its\n## preposition\n## text-clause the text colour beside it, inside `style-text`\n##\n## The last three exist because those words are rendered in two places each —\n## once alone, as `borderStyleDescription`, `backgroundColor` and `textColor`\n## report them, and once embedded in a clause. A language that inflects for\n## case needs a different form in each, and no amount of `$gender` can say\n## which is wanted. Which case a position governs is the catalog\'s business:\n## `border-clause` is a dative in German, an instrumental in Russian and\n## Polish, and nothing at all in a language that does not inflect.\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 .slope-field = slope field\n .vector-field = vector field\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.\n#\n# The phrase it builds is never governed by anything, so its `$role` is always\n# `standalone`.\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.\n#\n# Said only of the shape itself, so its `$role` is always `standalone`.\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.\n#\n# The only composition message with no `$role`: its two words sit in two\n# different positions, so they arrive already inflected for `text-clause` and\n# `background-clause` respectively and no one token would describe them both.\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\n\n## Boolean words\n##\n## What a `<boolean>` or `<booleanInput>` *displays*.\n##\n## Not what it parses or serializes. `true` and `false` are DoenetML syntax —\n## an author writes them in the source, `<award>` compares against them, and\n## saved state stores them — so they stay English everywhere, in every\n## language, exactly as `<` stays `<`. Only the word the reader sees moves.\n##\n## The consequence is that a value has two spellings in a translated document,\n## and both have to be accepted where one is read back in: see\n## `booleanFromWord` in the worker.\n\nboolean-true = true\nboolean-false = false\n\n\n## Answer buttons\n##\n## The default text on an answer\'s submit button. Only the *default* is\n## translated: an author who writes `submitLabel="Ready?"` gets "Ready?" in\n## every locale, because they chose those words for their document and a\n## translation of it is not Doenet\'s to make.\n\n# Shown when the answer will report whether the response was right.\nanswer-submit-label = Check Work\n\n# Shown when it will not — the reader submits, and is told nothing more.\nanswer-submit-label-no-correctness = Submit Response\n\n\n## Sectional blocks\n##\n## The word a sectional block calls itself, which the reader sees in its\n## heading and on a `<solution>`\'s reveal control. Keyed by the element the\n## author writes, so `<subsection>` and `<subsubsection>` share `.section` —\n## they are all called a section.\n##\n## An author who writes `renameTo` has named the block themselves, and that\n## name passes through in every language.\n\nsection-name =\n .activity = Activity\n .aside = Aside\n .cascade = Cascade\n .definition = Definition\n .example = Example\n .exercise = Exercise\n .exercises = Exercises\n .given-answer = Answer\n .note = Note\n .objectives = Objectives\n .paragraphs = Paragraphs\n .part = Part\n .problem = Problem\n .problems = Problems\n .proof = Proof\n .question = Question\n .section = Section\n .solution = Solution\n .task = Task\n .theorem = Theorem\n\n# The heading a section builds for itself: "Example 2", "Section 1.3: Limits".\n#\n# `$parts` names which pieces are present and whether a `<title>` follows, so\n# that a translation orders and punctuates each combination on its own terms\n# rather than substituting into an English frame. English puts the word first\n# and separates a title with a colon — or with a period when the heading is a\n# bare number — and none of that is a given.\n#\n# The `-title` variants end in the separator, because what follows them is the\n# title child, rendered separately. Fluent trims trailing whitespace, so the\n# separator is written as a string literal to keep its space.\n#\n# `$sectionNumber` arrives as text ("2", "1.3") rather than as a number: it is\n# an identifier made of counters, and it is not the catalog\'s to reformat.\nsection-title-prefix =\n { $parts ->\n [name] { $sectionName }\n [number] { $sectionNumber }\n [name-title] { $sectionName }{ ": " }\n [number-title] { $sectionNumber }{ ". " }\n [name-number-title] { $sectionName } { $sectionNumber }{ ": " }\n *[name-number] { $sectionName } { $sectionNumber }\n }\n\n# The heading a `<hint>` shows when the author gave it no `<title>`.\nhint-title = Hint\n\n\n## Tables and figures\n##\n## The name a `<table>` or `<figure>` gives itself, which the renderer sets in\n## bold at the head of the title or caption: "Table 2", "Figure 3". An\n## unnumbered one is named by the bare word.\n##\n## The word and the number are one message rather than a word the code\n## concatenates a number onto, so that a language which orders or punctuates\n## them differently can say so.\n##\n## `$enumeration` arrives as text rather than as a number: it identifies the\n## table, so the thousandth one is "Table 1000" and not "Table 1,000".\n##\n## The `-title` and `-caption` branches end in the separator joining the name\n## to the authored title or caption, which the renderer used to write as a\n## literal `": "` of its own. That child is arbitrary marked-up content\n## rendered after this string rather than an argument passed into it, so where\n## it sits is the one thing a translation cannot reorder — the same shape\n## `section-title-prefix` has.\n\n## The name a `<chart>` gives a series that the author did not label.\n##\n## This is not decoration: it is the text a screen reader announces on the\n## level between the chart and its marks, so a reader stopping there is told\n## which group they have reached. A bare number would be indistinguishable\n## from a value or a category, which are what the levels either side of it\n## announce.\n##\n## `$position` arrives as text rather than as a number, for the reason\n## `table-name`\'s `$enumeration` does: it identifies the series, so the\n## thousandth one is "series 1000" and not "series 1,000".\nchart-unlabeled-series =\n series { $position }\n\ntable-name =\n { $parts ->\n [numbered] Table { $enumeration }\n [numbered-title] Table { $enumeration }{ ": " }\n [unnumbered-title] Table{ ": " }\n *[unnumbered] Table\n }\n\nfigure-name =\n { $parts ->\n [numbered] Figure { $enumeration }\n [numbered-caption] Figure { $enumeration }{ ": " }\n [unnumbered-caption] Figure{ ": " }\n *[unnumbered] Figure\n }\n\n\n## Paginator controls\n##\n## The strip of controls that steps through a `<paginator>`\'s pages. All three\n## words are author-overridable attributes, so only the default is translated.\n\npaginator-previous = Previous\npaginator-next = Next\npaginator-page = Page\n\n# The status between the two buttons: "Page 3 of 5".\n#\n# Composed in the worker rather than in the renderer so that the whole of it is\n# in one language: `$pageLabel` is the `pageLabel` attribute, which an author\n# may have written themselves, and the words joining it to the counts have to\n# sit beside it in the same tongue.\n#\n# The two counts arrive as text, for the same reason `$enumeration` does above.\npaginator-page-status = { $pageLabel } { $currentPage } of { $numPages }\n\n\n## Piecewise functions\n##\n## `<piecewiseFunction>` renders each branch\'s domain as mathematics and writes\n## these three words around it: "if 1 < x < 2 or 4 < x < 5", and "otherwise"\n## for the branch that catches what the others leave. The inequalities are\n## notation and stay as they are; these are prose, and are read aloud as prose.\n##\n## `or` is the only conjunction the core composes into content. Everything else\n## that reads as "a, b, and c" is a diagnostic, and those are joined by\n## `Intl.ListFormat` at the moment the reader\'s language is known rather than\n## by a catalog word (see `DiagnosticListArg`).\n\npiecewise-condition-or = or\n\n# Introduces the domain a branch applies on; the mathematics follows it.\npiecewise-condition-if = if\n\n# The last branch, which applies wherever none of the earlier ones do.\npiecewise-condition-otherwise = otherwise\n\n\n## Chemistry\n##\n## The names the chemistry components generate. Symbols (`H`, `Fe`), formulas,\n## and anything an author\'s `<award>` compares against by value stay as they\n## are; only what is displayed as prose is here.\n##\n## Element names are keyed by symbol, which is the identifier the atom database\n## is read through and is itself never translated.\n##\n## An element\'s periodic group, its phase at STP and its metal category are not\n## here. They are enumerated values an author\'s `<award>` compares against —\n## `$atom.groupName = Noble Gas` — and translating one would break that\n## comparison the moment a document declared a language (#1577).\n\nelement-name =\n .h = Hydrogen\n .he = Helium\n .li = Lithium\n .be = Beryllium\n .b = Boron\n .c = Carbon\n .n = Nitrogen\n .o = Oxygen\n .f = Fluorine\n .ne = Neon\n .na = Sodium\n .mg = Magnesium\n .al = Aluminum\n .si = Silicon\n .p = Phosphorus\n .s = Sulfur\n .cl = Chlorine\n .ar = Argon\n .k = Potassium\n .ca = Calcium\n .sc = Scandium\n .ti = Titanium\n .v = Vanadium\n .cr = Chromium\n .mn = Manganese\n .fe = Iron\n .co = Cobalt\n .ni = Nickel\n .cu = Copper\n .zn = Zinc\n .ga = Gallium\n .ge = Germanium\n .as = Arsenic\n .se = Selenium\n .br = Bromine\n .kr = Krypton\n .rb = Rubidium\n .sr = Strontium\n .y = Yttrium\n .zr = Zirconium\n .nb = Niobium\n .mo = Molybdenum\n .tc = Technetium\n .ru = Ruthenium\n .rh = Rhodium\n .pd = Palladium\n .ag = Silver\n .cd = Cadmium\n .in = Indium\n .sn = Tin\n .sb = Antimony\n .te = Tellurium\n .i = Iodine\n .xe = Xenon\n .cs = Cesium\n .ba = Barium\n .la = Lanthanum\n .ce = Cerium\n .pr = Praseodymium\n .nd = Neodymium\n .pm = Promethium\n .sm = Samarium\n .eu = Europium\n .gd = Gadolinium\n .tb = Terbium\n .dy = Dysprosium\n .ho = Holmium\n .er = Erbium\n .tm = Thulium\n .yb = Ytterbium\n .lu = Lutetium\n .hf = Hafnium\n .ta = Tantalum\n .w = Tungsten\n .re = Rhenium\n .os = Osmium\n .ir = Iridium\n .pt = Platinum\n .au = Gold\n .hg = Mercury\n .tl = Thallium\n .pb = Lead\n .bi = Bismuth\n .po = Polonium\n .at = Astatine\n .rn = Radon\n .fr = Francium\n .ra = Radium\n .ac = Actinium\n .th = Thorium\n .pa = Protactinium\n .u = Uranium\n .np = Neptunium\n .pu = Plutonium\n .am = Americium\n .cm = Curium\n .bk = Berkelium\n .cf = Californium\n .es = Einsteinium\n .fm = Fermium\n .md = Mendelevium\n .no = Nobelium\n .lr = Lawrencium\n .rf = Rutherfordium\n .db = Dubnium\n .sg = Seaborgium\n .bh = Bohrium\n .hs = Hassium\n .mt = Meitnerium\n .ds = Darmstadtium\n .rg = Roentgenium\n .cn = Copernicium\n .nh = Nihonium\n .fl = Flerovium\n .mc = Moscovium\n .lv = Livermorium\n .ts = Tennessine\n .og = Oganesson\n\n# The name an anion takes, for the elements that have one.\n#\n# English derives these — strip a trailing "ine", add "ide", with a small table\n# for the words that rule does not fit — but that is English morphology, not a\n# fact about anions. So each language supplies the names it uses. An element\n# with no entry here is called by its own name, which is also what the English\n# rule does for everything it does not match.\nelement-anion-name =\n .h = Hydride\n .c = Carbide\n .n = Nitride\n .o = Oxide\n .f = Fluoride\n .p = Phosphide\n .s = Sulfide\n .cl = Chloride\n .br = Bromide\n .i = Iodide\n .at = Astatide\n .ts = Tennesside\n\n# A transition metal\'s ion, named with its oxidation state: "Iron (II)".\n#\n# The Roman numeral is IUPAC notation and is the same in every language. Where\n# it sits and how it is punctuated is not, which is why this is a message and\n# not a suffix the code appends.\nion-name-oxidation-state = { $name } ({ $numeral })\n\n# Shown in place of a chemical symbol or formula that names nothing. Rendered\n# into mathematics as well as into text, so the brackets around it are added by\n# the code — inside `\\text{}` for the LaTeX form — and are not part of the\n# message.\nchemistry-invalid-symbol = Invalid Chemical Symbol\nchemistry-invalid-ionic-compound = Invalid Ionic Compound\n\n## Inputs embedded in math\n\n# Names the gap an input fills when it is drawn inside a typeset expression, so\n# that a screen reader reads "x equals blank plus 3" rather than skipping over\n# it. Written into the mathematics itself and never shown on screen, so keep it\n# to a word or two.\nmath-embedded-input-blank = blank\n\n# The same, when one expression has more than one gap, so that a reader can tell\n# which one they have reached.\nmath-embedded-input-blank-ordinal = blank { $ordinal } of { $total }\n\n# The five-number summary a `<chart type="box">` gives a screen reader on each\n# box it draws.\n#\n# Words rather than five bare numbers. A bar is announced as its category and\n# its value, and a point as its coordinates, because in both the position says\n# which number it is; a box reports five numbers at one position, and nothing\n# but the naming tells them apart. A histogram\'s bar needs a word for the same\n# reason — see `chart-histogram-bin` below, which names its count.\n#\n# Each number arrives as text, already written the way the chart writes the\n# numbers on its own axis. Passed as a number instead, a translation would\n# format it a second time — grouping it, and rounding it to three fraction\n# digits — so a reader would hear a different figure from the one drawn.\nchart-box-summary =\n minimum { $minimum }, first quartile { $quartile1 }, median { $median }, third quartile { $quartile3 }, maximum { $maximum }\n\n# The name a `<chart type="box">` gives one observation drawn beyond a whisker.\n#\n# Named rather than announced as a bare number, for the reason the summary\n# above is worded: after the five numbers of the box, a further number on its\n# own says nothing about why it is drawn apart from them.\nchart-box-outlier =\n outlier { $value }\n\n# What a `<chart type="histogram">` gives a screen reader on each bar it draws:\n# the stretch of the scale the bar covers, and how many observations fell in it.\n#\n# The count is named where the two cut points are not, because the position says\n# what they are — a reader hears them in the order they are drawn in, as the ends\n# of the bar — and says nothing about the third number, which is measured up the\n# other axis.\n#\n# Each number arrives as text, already written the way the chart writes the\n# numbers on its own axis, for the reason the box plot\'s summary gives: passed\n# as a number, a translation would format it a second time and a reader would\n# hear a different figure from the one drawn.\nchart-histogram-bin =\n { $from } to { $to }, count { $count }\n';
|
|
38898
|
-
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# Raised when `type` names something that is not one of the four readings. The\n# value is dropped rather than replaced by a guess, so the children are read as\n# though no type had been written. $type is what the author wrote.\ninvalid-type-ignored =\n Invalid type { $type } for { $component } component. Must be one of math, text, number, or boolean. Ignoring it and reading the values as though no type had been given.\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## `<matchesPattern>`\n\n# Translators: `parameters` is an attribute name and stays in English.\n# $parameters lists the parameters as the author wrote them;\n# $parametersCount is how many there were.\nmatches-pattern-parameter-not-in-pattern =\n { $parametersCount ->\n [one] `<matchesPattern>`: the parameter { $parameters } does not occur in the pattern, so it will always match a blank.\n *[other] `<matchesPattern>`: the parameters { $parameters } do not occur in the pattern, so they will always match a blank.\n }\n\n## `<graph>`\n\n# Translators: grid is an attribute name and none, medium and dense are its\n# values; all four stay in English, as does the example. $grid is the value the\n# author wrote, reproduced verbatim — it reached this message precisely because\n# it was not one of the forms listed.\ngraph-grid-invalid = `<graph>`: cannot interpret grid="{ $grid }". It must be none, medium, dense, or two positive numbers separated by a space, such as grid="1 0.5". No grid is drawn.\n\n## `<slopeField>` and `<vectorField>`\n\n# $component is the field\'s tag and $alternative the sibling field component\'s,\n# or `none` when the function would not suit it either; both are DoenetML tags\n# and stay in English, as do the example expressions. $expected is how many\n# outputs the component needs, $found how many the given function has. What a\n# field draws a mark from is the function\'s outputs, so the wrong number of\n# them means there is nothing to draw — and the author almost always wanted the\n# other component.\nfield-function-wrong-num-outputs =\n `<{ $component }>` needs a function with { $expected ->\n [one] one output, the slope y\' at each point, such as `y - x`\n *[other] two outputs, the vector at each point, such as `(y, -x)`\n }, but the function it was given has { $found ->\n [one] { $found } output\n *[other] { $found } outputs\n }. { $alternative ->\n [none] Nothing is drawn.\n *[other] `<{ $alternative }>` is the component for that function. Nothing is drawn.\n }\n\n# Translators: retired. `function` is an attribute name and stays in English.\n# It warned that a field had been given its function both as an attribute and\n# inside the component; the attribute no longer exists, so the two can no\n# longer disagree. Kept because diagnostic codes are never reused.\nfield-function-attribute-ignored-with-child = The `function` attribute is ignored because the function is also given inside the component; the one inside is used. Give the function only one of the two ways.\n\n# Translators: `variables` and `function` are a DoenetML attribute and tag and\n# stay in English, as does $component, the field\'s own tag. The attribute names\n# the inputs of an expression written directly inside the component; when there\n# is no such expression there is nothing for it to name, and $reason says which\n# of the two ways that happened.\nfield-variables-ignored =\n `<{ $component }>`: the `variables` attribute names the variables of an expression written directly inside the component. { $reason ->\n [function-child] The function here is given as a `<function>` child, which names its own variables, so `variables` is ignored.\n *[no-expression] No such expression is given here, so `variables` is ignored.\n }\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\n# Translators: the renderer\'s name, prefigure, stays in English. "grid" here is\n# the coordinate grid itself rather than the attribute that asks for one, so it\n# is prose and is translated.\nprefigure-grid-spacing-too-fine = `<graph>`: the grid spacing is too fine for the axis limits; the grid is omitted in the prefigure renderer.\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\n# The attribute had a default to fall back to, and the message names it: the\n# component went on to behave as though the author had written that value, and\n# an author not told which one goes looking for the difference in the wrong\n# place.\nattribute-value-invalid-using-default = Invalid value `{ $value }` for attribute `{ $attribute }`, using value `{ $default }`\n\n# The same rejection where the attribute has no default to fall back to, so\n# nothing stood in for the value and the component behaves as though the\n# attribute had not been written. A separate message rather than the one above\n# with a blank in it: "using value `null`" would describe a substitution that\n# did not happen, and name a value no author could have typed. What follows is\n# usually a second message from the component itself, saying what it did\n# without the attribute.\nattribute-value-invalid-ignoring = Invalid value `{ $value }` for attribute `{ $attribute }`, ignoring it\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## Reference indices\n\n# Raised when an element sits in brackets immediately after a reference but the\n# brackets cannot be read as an index. $name is the reference as the author wrote\n# it, including its leading sigil — one `$` for a reference and two for a\n# function reference. $reason says why the brackets could not be read, as a key\n# rather than a phrase, so the whole sentence is translatable rather than\n# assembled from halves.\n#\n# The `braces` branch is about `$x{…}`, which v0.7 no longer gives any meaning:\n# it still parses, but the braces and whatever is in them are dropped. So the\n# remedy is to delete them, not to write the index somewhere else around them.\n#\n# The other five: `parens` and `parensFunction` are `$(x)[…]` and `$$(f)[…]`,\n# which differ only in which sigil the remedy shows — following the `$(…)` one\n# for a function reference would turn it into an ordinary reference. `arguments`\n# is `$$f(1)[…]`, where the argument list ran past the path. `called` is\n# `$$f[<n/>](y)`, where the index is where the grammar wants it but a computed\n# one on a reference that is then called cannot be built. `unclosed` is the\n# default because it states a fact rather than offering a remedy.\n#\n# The `parens` branch is about `$(x)[…]`. The index does belong inside the\n# parentheses, but an element written in there is not read as an index either —\n# what is between `$(` and `)` is read as text — so the remedy is to name the\n# element first and reference it inside the parentheses.\n#\n# The `arguments` branch is about `$$f(1)[…]`. Neither place around the\n# arguments takes the index the author wrote: inside the parentheses it would\n# become one more argument, and before them it would choose which function is\n# called rather than part of what the call returns. So the message offers the\n# one spelling that does work, which is to name the result and index that.\n\nindex-element-not-used-as-index =\n The element in brackets after `{ $name }` was not read as an index. { $reason ->\n [braces] `{"{…}"}` is not part of a reference, so `[…]` written after it is ordinary text. Remove the `{"{…}"}`.\n [parens] `$(…)` ends a reference, so `[…]` written after it is ordinary text. Give the element a name and write the index inside the parentheses, as `$(x[$idx])`.\n [parensFunction] `$$(…)` ends a function reference, so `[…]` written after it is ordinary text. Give the element a name and write the index inside the parentheses, as `$$(f[$idx])`.\n [arguments] A function reference\'s arguments end it, so `[…]` written after them is ordinary text. An index written before the arguments would pick which function to call rather than part of what it returns; to index the result, give the result a name and index that.\n [called] An index before a function reference\'s arguments picks which function to call, and a computed one there is not supported. To index what the call returns, give the result a name and index that.\n *[unclosed] Its `[` is never closed.\n }\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 four 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\n# An attribute replaced by a child element rather than by another attribute:\n# $attribute and $component stay as written, and so does $child, which is the\n# tag name of the child to write instead.\n\ndeprecated-attribute-to-child = [deprecation] Attribute `{ $attribute }` on `<{ $component }>` is deprecated; use a `<{ $child }>` child instead.\n\n# One value of an attribute is deprecated while the attribute itself stays:\n# $value is what the author wrote and $to what to write instead, with\n# $attribute and $component naming where. All four stay as written.\n\ndeprecated-attribute-value-renamed = [deprecation] Value `{ $value }` of attribute `{ $attribute }` on `<{ $component }>` is deprecated; use `{ $to }` instead.\n\n\n## Language coverage\n\n# `<pluralize>` runs an English part-of-speech model over its text and puts the\n# nouns in the plural. There is no equivalent for an arbitrary language — a\n# correct plural needs that language\'s own morphology, and often its\n# dictionary — so in a document written in anything else the word is left as\n# the author typed it, and this says so rather than silently doing nothing.\n#\n# Raised only when there is nothing else to fall back on: a `pluralForm` is the\n# author supplying their own language\'s plural, and that is honored in every\n# language, which is why this can recommend it.\n#\n# $locale is the document\'s language tag, as declared.\npluralize-english-only = `<pluralize>` can only pluralize English, so its text is left unchanged in a document written in { $locale }. Write the plural form directly, or set it with the `pluralForm` attribute.\n\n\n## Checking against the schema\n\n# What the editor draws a squiggle under: the language server\'s own check of\n# the document against the DoenetML schema, run on every keystroke and\n# answered before anything is evaluated. A beginner meets these first, and\n# usually only these, because a document that does not pass them rarely gets\n# as far as producing a diagnostic from the core.\n#\n# `@doenet/lsp-tools` writes its English beside the code rather than rendering\n# it from here, for the same reason `@doenet/parser` does: it is inside the\n# language-server bundle, which `@doenet/codemirror` embeds verbatim and\n# starts as a blob worker, and a catalog on the editor\'s critical path is what\n# `packages/lsp/scripts/check-server-bundle.mjs` exists to reject. The two\n# copies are held together by a test in that package, which runs the checker\n# over a corpus and asserts every coded violation renders to exactly what the\n# checker wrote — so a message edited here without its counterpart fails\n# there.\n#\n# $tag, $parent and $attribute quote the author\'s own source back at them and\n# stay exactly as written; the angle brackets and backticks around them are\n# punctuation this catalog supplies, not part of the name.\n\nschema-element-unrecognized = Element `<{ $tag }>` is not a recognized Doenet element.\n\nschema-element-not-allowed-at-root = Element `<{ $tag }>` is not allowed at the root of the document.\n\nschema-element-not-allowed-inside = Element `<{ $tag }>` is not allowed inside of `<{ $parent }>`.\n\nschema-attribute-unrecognized = Element `<{ $tag }>` doesn\'t have an attribute called `{ $attribute }`.\n\n# $allowed is the attribute\'s permitted values, each already in double quotes\n# and joined for the reader\'s language. $isList says whether the attribute\n# takes several of them at once: one situation, two sentences, because the\n# reader has to be told they are choosing a whole list rather than a value.\nschema-attribute-value-not-allowed =\n { $isList ->\n [true] Attribute `{ $attribute }` of element `<{ $tag }>` must be a list whose items are each one of: { $allowed }\n *[other] Attribute `{ $attribute }` of element `<{ $tag }>` must be one of: { $allowed }\n }\n\n\n## The `<select>` family\'s error boxes\n##\n## The messages that replace the whole component with a red box rather than\n## warning beside it: nothing can be selected, so there is nothing to render.\n## They were the last uncoded `_error` path in the worker (#1581).\n##\n## Counts arrive as numbers rather than as text, so a language that agrees a\n## noun with them can select on them. English does not agree here — it says\n## "1 options" today and these messages reproduce it exactly, because the box\'s\n## text is what the existing suites pin.\n##\n## Being numbers, they are grouped: a count of 1500 renders as "1,500" in\n## English where the concatenated sentence these replaced wrote "1500". That is\n## the one way the English moved, and it moved in the right direction — these\n## are quantities, not identifiers like a line or a section number, which is\n## the distinction that decides between a number and a string everywhere in\n## these catalogs.\n##\n## Translators: component and attribute names — `selectFromSequence`,\n## `selectPrimeNumbers`, `from`, `to`, `step` — are DoenetML identifiers, not\n## words. They are written into these messages as they stand and must be left\n## in English exactly as written.\n\nselect-variant-name-option-count-mismatch = Invalid variant name for select. Variant name { $variantName } appears in { $numOptions } options but number to select is { $numToSelect }.\n\nselect-variant-name-without-options = Some variants are specified for select but no options are specified for possible variant name: { $variantName }.\n\nselect-variant-name-not-possible = Variant name { $variantName } that is specified for select is not a possible variant name.\n\nselect-too-few-options = Cannot select { $numToSelect } components from only { $numOptions }.\n\nselect-from-sequence-too-few-values = Cannot select { $numToSelect } values from a sequence of length { $length }.\n\nselect-from-sequence-indices-count-mismatch = Number of indices specified for select must match number to select\n\nselect-from-sequence-indices-not-integers = All indices specified for select must be integers\n\nselect-from-sequence-index-excluded = Specified index of selectfromsequence that was excluded\n\nselect-from-sequence-indices-excluded-combination = Specified indices of selectfromsequence that was an excluded combination\n\nselect-from-sequence-coprime-not-positive-integers = Cannot select coprime combinations as not selecting positive integers.\n\n# Translators: from, to and step are attribute names. They are written into\n# the message rather than passed in because these three never vary — an\n# argument is for a name that changes from one call to the next.\nselect-from-sequence-coprime-common-factor = Cannot select coprime numbers. All possible values share a common factor. (Specified values of "from" or "to" must be coprime with "step".)\n\nselect-from-sequence-coprime-single-number = Cannot select coprime combinations from a single number that is not 1.\n\nselect-from-sequence-excluded-too-many-combinations = Excluded over 70% of combinations in selectFromSequence\n\n# The sibling of `select-from-sequence-coprime-common-factor`, and a different\n# situation rather than a rewording of it: that one is decided up front, from\n# the sequence\'s own arithmetic. This one is what is left after two hundred\n# draws found no coprime combination among values that could have supplied one.\nselect-from-sequence-coprime-none-found = Could not select coprime numbers. All possible values share a common factor.\n\nselect-from-sequence-too-few-unique-values = Cannot select { $numToSelect } unique values from sequence of length { $numPossibleValues }\n\nselect-prime-numbers-too-few-values = Cannot select { $numToSelect } values from a list of primes of length { $numValues }\n\nselect-prime-numbers-values-count-mismatch = Number of values specified for select must match number to select\n\nselect-prime-numbers-values-not-prime = All values specified for select prime number must be in the list of primes\n\nselect-prime-numbers-values-excluded-combination = Specified values of selectPrimeNumbers was an excluded combination\n\nselect-prime-numbers-excluded-too-many-combinations = Excluded over 70% of combinations in selectPrimeNumbers\n\n# Both flukes are shared by `<selectFromSequence>` and `<selectPrimeNumbers>`,\n# which say the same thing in the same words. Neither is reachable in practice\n# — each follows two hundred independent draws — but an unreachable box is\n# still a box, and it renders in whatever language the rest of the page does.\nselect-random-combination-fluke = By extremely unlikely fluke, couldn\'t select combination of random values\n\nselect-random-value-fluke = By extremely unlikely fluke, couldn\'t select random value\n\n## Inputs embedded in math\n\n# Translators: $component is the input\'s own DoenetML tag and stays in English,\n# as do the attribute names `inline`, `expanded` and `width`. An input written\n# inside `<m>` is drawn in the place it is written, inside the typeset\n# expression, which makes room for it as it grows. That needs a control small\n# enough to sit in a line of mathematics, with a width the expression can\n# measure, in an expression that is not drawn on a graph; $reason says which of\n# those this input fails. When it fails, the input is not shown at all, and the\n# expression is typeset with the input\'s value in its place — a text input\'s\n# text, a math input\'s mathematics — or with nothing there for a choice input.\nmath-embedded-input-shape-unsuitable =\n { $reason ->\n [not-inline] This `<{ $component }>` is not shown because it is inside math and is not `inline`. Add `inline` so it becomes a drop-down list, which fits inside an expression.\n [expanded] This `<{ $component }>` is not shown because it is inside math and is `expanded`. Remove `expanded`; a multi-line box does not fit inside an expression.\n [on-graph] This `<{ $component }>` is not shown because it is inside math drawn on a graph, which has no room for an input.\n *[relative-width] This `<{ $component }>` is not shown because it is inside math and has a relative width. Give the width in absolute units, such as `px`, instead.\n }\n\n## `<sampleRandomNumbers>` and `<selectRandomNumbers>`\n##\n## Translators: `mean`, `standardDeviation`, `variance`, `numTotal`,\n## `numSuccesses`, `numDraws`, `numTrials`, `probability` and `numSamples` are\n## DoenetML attribute names. They are written into these messages as they stand\n## and must be left in English exactly as written. Each of these names the\n## attribute the author has to change, so a message that translated one would\n## point at an attribute that does not exist.\n\n# The spread reaches the sampler as a standard deviation however it was written,\n# so a negative `variance` arrives here as a `standardDeviation` of NaN and the\n# message has to name both for the author to know what to edit.\nsample-gaussian-parameters-invalid =\n Invalid mean ({ $mean }) or standardDeviation ({ $standardDeviation }) for a gaussian random variable. The mean must be a finite number, and the standardDeviation (or the variance it is derived from) must be finite and non-negative. No numbers can be sampled.\n\n# These three attributes are the only ones with no default, so leaving one out is\n# the commonest way to reach this message. Each arrives either as the number the\n# author wrote or as `not-set` for an attribute they left off entirely; translate\n# the "not set" wording, but leave the `not-set` key that selects it untouched.\nsample-hypergeometric-parameters-invalid =\n Invalid numTotal ({ $numTotal ->\n [not-set] not set\n *[other] { $numTotal }\n }), numSuccesses ({ $numSuccesses ->\n [not-set] not set\n *[other] { $numSuccesses }\n }), or numDraws ({ $numDraws ->\n [not-set] not set\n *[other] { $numDraws }\n }) for a hypergeometric random variable. numTotal must be a positive whole number, and numSuccesses and numDraws must be non-negative whole numbers no larger than numTotal. All three must also stay below about nine quadrillion, past which whole numbers can no longer be counted exactly.\n\n# $maxDraws is the largest number of random draws allowed for a single sample.\nsample-hypergeometric-draws-too-many =\n Drawing { $numDraws } items from a population of { $numTotal } would need more than { $maxDraws } random draws for each sample, which would stop the page from responding. Reduce numDraws, or bring it closer to numTotal.\n\nsample-binomial-parameters-invalid =\n Invalid numTrials ({ $numTrials }) or probability ({ $probability }) for a binomial random variable. numTrials must be a non-negative whole number below about nine quadrillion, past which whole numbers can no longer be counted exactly, and probability must be between 0 and 1.\n\n# $maxDraws is the largest number of random draws allowed for a single sample.\nsample-binomial-trials-too-many =\n Running { $numTrials } trials would need more than { $maxDraws } random draws for each sample, which would stop the page from responding. Reduce numTrials.\n\nsample-poisson-mean-invalid =\n Invalid mean ({ $mean }) for a poisson random variable. The mean must be a finite, non-negative number.\n\n# $maxDraws is the largest number of random draws allowed for a single sample.\nsample-poisson-mean-too-large =\n A poisson mean of { $mean } would need more than { $maxDraws } random draws for each sample, which would stop the page from responding. Reduce the mean.\n\n# $distribution names the distribution being sampled, e.g. "binomial" or\n# "multivariate hypergeometric"; $draws is roughly how many random draws each value\n# needs. Raised by `<sampleRandomNumbers>`, `<selectRandomNumbers>` and\n# `<sampleMultivariateRandomNumber>`, which count values with `numSamples`,\n# `numToSelect` and one vector respectively, so the wording names no attribute.\nsample-distribution-slow =\n Each value from this { $distribution } distribution needs about { $draws } random draws, so sampling may be slow. Reduce the distribution\'s parameters, or ask for fewer values, if the page feels sluggish.\n\n## List index operators\n\n# Raised by the index-returning list operators (`<indexOf>`, `<searchSorted>`)\n# when no `target` was given. $component names the tag the author wrote.\nindex-operator-missing-target =\n `{ $component }` has no `target` to look for, so it cannot report a position and gives 0.\n\n# Raised when the operator had no values to look through — an empty list, or one\n# whose only children were references that produced nothing.\nindex-operator-no-values =\n `{ $component }` has no values to look through, so it gives 0, which is not the index of any item.\n## `<sampleMultivariateRandomNumber>`\n##\n## Translators: `type`, `numInCategories` and `numDraws` are DoenetML attribute\n## names, and `hypergeometric` is one of the values `type` takes. They are written\n## into these messages as they stand and must be left in English exactly as\n## written. Each names the attribute the author has to change, so a message that\n## translated one would point at an attribute that does not exist.\n\n# Neither attribute has a default that names a population — numDraws has none at\n# all, and numInCategories falls back to a list with no categories in it — so\n# leaving one out is the commonest way to reach this message. Each arrives either\n# as the value the author wrote or as `not-set`: for numDraws when it is missing,\n# and for numInCategories when it names no categories, whether it was left off or\n# written empty. Translate the "not set" wording, but leave the `not-set` key that\n# selects it untouched.\nsample-multivariate-parameters-invalid =\n Invalid numInCategories ({ $numInCategories ->\n [not-set] not set\n *[other] { $numInCategories }\n }) or numDraws ({ $numDraws ->\n [not-set] not set\n *[other] { $numDraws }\n }) for a multivariate hypergeometric random variable. numInCategories must list at least one category, each a non-negative whole number, and numDraws must be a non-negative whole number no larger than their total. Each category, that total, and numDraws must also stay below about nine quadrillion, past which whole numbers can no longer be counted exactly.\n\n# $maxDraws is the largest number of random draws allowed for a single sample.\n# Drawing nearly the whole population is as cheap as drawing almost none of it, so\n# raising numDraws is a fix as well as lowering it. "could need" rather than "would\n# need": each category is counted at the most its draw could cost, so the count\n# these parameters are refused on is an upper bound on the work they really take.\nsample-multivariate-draws-too-many =\n Drawing { $numDraws } items from a population of { $numTotal } split into { $numCategories } categories could need more than { $maxDraws } random draws for each sample, which would stop the page from responding. Reduce numDraws, bring it closer to numTotal, or use fewer categories.\n\n# `type` has no default, so this is what leaving it off gets. A type the attribute\n# does not recognize falls back to no type at all and reaches this message too,\n# after a separate one naming the value that was rejected — hence "no distribution\n# was named" rather than wording that assumes the attribute is missing.\nsample-multivariate-type-not-specified =\n No multivariate distribution was named for this random variable, so nothing was sampled. Give the type attribute the name of a distribution, such as `type="hypergeometric"`.\n\n## Counting operators\n\n# Raised by `<tally>` when the author named `categories` explicitly and some\n# values matched none of them, so those values were not counted anywhere. Info\n# rather than a warning: a list fed by an input legitimately holds\n# non-categories while a student is typing. It deliberately does not say how\n# many such values there were: the diagnostics queue is append-only and\n# deduplicates by message, so a count would leave one permanent entry behind\n# for every number of stray values the list passed through while being typed.\ntally-values-outside-categories =\n Some values matched none of the declared categories, so they were not counted.\n\n# Raised by `<chart type="histogram">` when an observation falls outside the\n# outermost cut points. Only cut points an author wrote can leave any — bins the\n# chart chooses cover the data — so this says what a written `bins` left out.\n# Info rather than a warning, for the reason the message above is: leaving part\n# of a sample out of a picture is something an author may have meant, and a\n# column fed by an input passes through values outside the bins while a student\n# is typing. It deliberately does not say how many: the diagnostics queue is\n# append-only and deduplicates by message, so a count would leave one permanent\n# entry behind for every number the column passed through.\nchart-histogram-values-outside-bins =\n Some observations fell outside the `bins` cut points, so they were not counted in any bar.\n\n# Raised by `<tally>` when `categories` names the same category more than once.\n# A warning rather than info: unlike a stray value, a repeated category is a\n# property of what the author wrote, so it stays true of a settled document. The\n# message says what the counts will be, since the behavior is defensible but not\n# what an author who repeated a category by accident expects.\ntally-repeated-category =\n `categories` names the same category more than once. Each count reports the values equal to its own category, so the repeated ones all report the same number.\n\n# Raised by `<binCounts>` when no `bins` attribute was given, so there are no\n# intervals to count into. $component names the tag the author wrote.\nbin-counts-missing-bins =\n `{ $component }` has no `bins` cut points, so there are no intervals to count into and it gives no counts.\n\n# Raised by `<binCounts>` when `bins` held fewer than the two cut points needed\n# to define a single interval. $count is how many were given, and can be 0 or 1,\n# so the sentence is worded to read for both without forking on the number.\nbin-counts-too-few-cut-points =\n `bins` needs at least 2 cut points to define an interval, but received { $count }.\n\n# Raised by `<binCounts>` when its values are not all numeric, so they cannot be\n# placed between numeric cut points. $component names the tag the author wrote.\nbin-counts-values-not-numeric =\n `{ $component }` can only count numeric values into bins, but not every value it was given is numeric. All counts are 0.\n\n# Raised by `<binCounts>` when the `bins` cut points do not climb: one is\n# smaller than the one before it, so a bin would run backwards and its count\n# would come out negative, or one is not a number at all, which has the same\n# effect. Equal adjacent cut points are accepted, so the message says "at least\n# as large as" rather than "increasing": what is rejected is a decrease, not a\n# failure to strictly increase. Between two interior cut points that names an\n# empty bin; at either end the outermost-edge rule can still put a value in it.\nbin-counts-cut-points-decreasing =\n Each `bins` cut point must be a number at least as large as the one before it, but one is not a number or is smaller than its predecessor, so no counts were produced.\n\n## Charts\n\n# Raised by `<chart type="bar">` when a value is not a finite number, so it gets\n# no bar. The alternative reading of a missing bar is a value of zero, which the\n# author cannot distinguish by looking, so the absence is stated rather than left\n# to be inferred. No count: the queue is append-only and deduplicates by message,\n# and the number of such values changes as an input is typed into. (The message\n# key is `bar-chart-…` because a code names one situation forever and this one\n# was issued while the component was still spelled `<barChart>`.)\nbar-chart-values-not-drawable =\n A bar chart draws no bar for a value that is not a finite number, so those places on the chart are empty rather than zero.\n\n# Raised by `<chart type="bar">` when `barWidth` is outside the (0, 1] range a\n# fraction of a bar\'s slot can take. $barWidth is what the author wrote.\nbar-chart-bar-width-invalid =\n `barWidth` must be greater than 0 and at most 1, but { $barWidth } was given. Using 0.8 instead.\n\n# `type` has no default, so this is what `<chart>` on its own gets. A type the\n# attribute does not recognize falls back to no type at all and reaches this\n# message too, after a separate one naming the value that was rejected — hence\n# "no chart type was named" rather than wording that assumes the attribute is\n# missing.\nchart-type-not-specified =\n No chart type was named, so nothing was drawn. Give the type attribute the name of a chart, such as `type="bar"`.\n\n# Raised by `<chart>` when values are written beside its `<series>` children.\n# A value outside every series belongs to no group of the data, so there is no\n# place on the chart to draw it; saying so matters because the alternative\n# reading of the missing bar is that the value was zero.\nchart-values-outside-series =\n A chart with `<series>` children draws only the values inside them, so values written beside a series were not drawn. Move them into a series of their own.\n\n# Raised by `<chart type="line">` and `<chart type="scatter">` when a point\n# cannot be placed. Two situations reach it and the message covers both: a value\n# that is not a finite number, and a value with no `x` beside it — which is what\n# a series given fewer horizontal coordinates than values produces from the\n# position they run out. Neither is distinguishable by looking from having asked\n# for fewer points. No count: the queue deduplicates by message, and the number\n# changes as an input is typed into.\nchart-points-not-drawable =\n A point needs a finite number for both coordinates, so values with no coordinate beside them, and coordinates with no value, were not drawn.\n\n# Raised by `<chart type="pie">` for a value that is not a finite number. The\n# bar chart\'s message says the place on the chart is empty rather than zero; a\n# pie has no places, so this says the slice is missing instead. No count, for\n# the reason the others give: the queue deduplicates by message.\nchart-pie-values-not-drawable =\n A pie chart draws no slice for a value that is not a finite number, and leaves it out of the total.\n\n# Raised by `<chart type="pie">` for a negative value. Its own message rather\n# than the one above, because the reason is different in kind: a negative bar\n# hangs below the baseline it is measured from, and a pie has no baseline to\n# hang anything from, so a negative value is not merely undrawable but has no\n# reading as a share of a total. It is left out of the total as well, so the\n# slices that are drawn are shares of what was actually charted.\nchart-pie-negative-values =\n A slice is a share of a total, so a pie chart draws no slice for a negative value and leaves it out of the total.\n\n# Raised by `<chart type="pie">` when the values that could be shares of a\n# total came to zero. Nothing is drawn: there is no share to take of zero, and\n# dividing by it would put `NaN` in every angle. Not raised for a pie with no\n# values at all, which is one being written rather than one that is wrong, nor\n# for one whose every value was rejected — those already have a message naming\n# the reason.\nchart-pie-total-not-positive =\n The values of this pie chart total zero, so there are no shares to draw. A pie needs at least one value above zero.\n\n# Raised by `<chart type="pie">` holding more than one `<series>` that is not\n# hidden — a hidden one is dropped before the count, like any drawn child of a\n# container that is hidden on its own account. Concentric\n# rings are not a standard chart and a donut is a styling variant rather than a\n# second group, so there is nowhere on a pie for a second series to go.\nchart-pie-one-series =\n A pie chart draws one series, so only the first was drawn. Chart the others separately, or use a type that draws several series at once.\n\n# Raised by `<chart type="pie">` whose `<xLabel>` or `<yLabel>` child has text\n# in it; a blank one asks for nothing and is not reported. A pie\n# has no axes for either to name, so the text is authored prose with nowhere on\n# the page to go — which is worth a message where an ignored *attribute* is not,\n# because what was dropped is something the author wrote for a reader to see.\nchart-pie-axis-name-ignored =\n A pie chart has no axes, so an `<xLabel>` or `<yLabel>` was not drawn. Put the text in a `<title>` instead, or in prose beside the chart.\n\n# Raised by `<chart type="box">` for an observation that is not a finite\n# number. Left out of the summary rather than read as zero, which would move\n# every quartile of the box drawn from it. No count, for the reason the others\n# give: the queue deduplicates by message, and the number changes as an input is\n# typed into.\nchart-box-values-not-drawable =\n A box plot summarizes finite numbers, so an observation that is not one was left out of its summary.\n\n# Raised by `<chart type="box">` carrying a `categories` attribute. A box chart\n# has no categories: each of its series is one position on the axis and is named\n# by its own `<label>`, so the names in `categories` are authored text with\n# nowhere on the page to go — which is worth a message where an ignored\n# *attribute* is not, because what was dropped is something the author wrote for\n# a reader to see.\nchart-box-categories-ignored =\n A box plot names each of its boxes after the series it was drawn from, so `categories` was not used. Give each `<series>` a `<label>` instead.\n\n# Raised by `<chart type="histogram">` for an observation that is not a finite\n# number, which falls in no bin. Its own message rather than the box plot\'s,\n# because what is lost differs: there a quartile moves, here a bar is one\n# shorter. No count, for the reason the others give: the queue deduplicates by\n# message, and the number changes as an input is typed into.\nchart-histogram-values-not-drawable =\n A histogram counts finite numbers, so an observation that is not one fell in no bin.\n\n# Raised by `<chart type="histogram">` holding more than one `<series>` that is\n# not hidden — a hidden one is dropped before the count, like any drawn child of\n# a container that is hidden on its own account. Two samples counted into the\n# same bars would have to be stacked or drawn through each other, and neither is\n# a reading a histogram can be given without being told which was meant.\nchart-histogram-one-series =\n A histogram draws one series, so only the first was drawn. Chart the others separately, or compare them with `type="box"`.\n\n# Raised by `<chart type="histogram">` whose `bins` is a single number that is\n# not a number of bins: not a whole number, not positive, or more bins than a\n# picture can hold. $bins is what the author wrote and $maximum the most that\n# may be asked for. Two or more numbers are read as cut points instead, and are\n# reported by the message below.\nchart-histogram-bin-count-invalid =\n `bins` must be a whole number of bins from 1 to { $maximum }, or two or more cut points, but { $bins } was given. Choosing bins from the data instead.\n\n# Raised by `<chart type="histogram">` whose `bins` holds two or more numbers\n# that do not describe bins to draw. `<binCounts>` has a message of its own for\n# the same list, and this one differs in what happens next: a chart has data to\n# choose bins from, so it draws those rather than drawing nothing.\n#\n# A cut point that is not finite is reported here too, where `<binCounts>`\n# counts into a bin with no far end quite happily — a bar with no far end is not\n# something a picture can hold.\nchart-histogram-cut-points-invalid =\n Each `bins` cut point must be a finite number at least as large as the one before it. Choosing bins from the data instead.\n\n# Raised by `<chart type="histogram">` carrying a `categories` attribute. A\n# histogram has no categories: its positions are the bins it divided the scale\n# into, named by the numbers they run between, so the names in `categories` are\n# authored text with nowhere on the page to go — which is worth a message where\n# an ignored *attribute* is not, because what was dropped is something the\n# author wrote for a reader to see.\nchart-histogram-categories-ignored =\n A histogram names its bars by the cut points they run between, so `categories` was not used. Give `bins` the cut points you want instead.\n\n# Raised by `<chart type="histogram">` carrying a `barWidth` attribute. The gap\n# a `barWidth` below 1 leaves is what says two bars stand for separate things,\n# and a histogram\'s bars are neighboring stretches of one continuous scale —\n# so there is no slot for a width to be a fraction of.\nchart-histogram-bar-width-ignored =\n A histogram\'s bars are adjacent, with no gap between them, so `barWidth` was not used. Give `bins` fewer cut points to draw wider bars.\n';
|
|
39135
|
+
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# Raised when `type` names something that is not one of the four readings. The\n# value is dropped rather than replaced by a guess, so the children are read as\n# though no type had been written. $type is what the author wrote.\ninvalid-type-ignored =\n Invalid type { $type } for { $component } component. Must be one of math, text, number, or boolean. Ignoring it and reading the values as though no type had been given.\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## `<matchesPattern>`\n\n# Translators: `parameters` is an attribute name and stays in English.\n# $parameters lists the parameters as the author wrote them;\n# $parametersCount is how many there were.\nmatches-pattern-parameter-not-in-pattern =\n { $parametersCount ->\n [one] `<matchesPattern>`: the parameter { $parameters } does not occur in the pattern, so it will always match a blank.\n *[other] `<matchesPattern>`: the parameters { $parameters } do not occur in the pattern, so they will always match a blank.\n }\n\n## `<graph>`\n\n# Translators: grid is an attribute name and none, medium and dense are its\n# values; all four stay in English, as does the example. $grid is the value the\n# author wrote, reproduced verbatim — it reached this message precisely because\n# it was not one of the forms listed.\ngraph-grid-invalid = `<graph>`: cannot interpret grid="{ $grid }". It must be none, medium, dense, or two positive numbers separated by a space, such as grid="1 0.5". No grid is drawn.\n\n## `<slopeField>` and `<vectorField>`\n\n# $component is the field\'s tag and $alternative the sibling field component\'s,\n# or `none` when the function would not suit it either; both are DoenetML tags\n# and stay in English, as do the example expressions. $expected is how many\n# outputs the component needs, $found how many the given function has. What a\n# field draws a mark from is the function\'s outputs, so the wrong number of\n# them means there is nothing to draw — and the author almost always wanted the\n# other component.\nfield-function-wrong-num-outputs =\n `<{ $component }>` needs a function with { $expected ->\n [one] one output, the slope y\' at each point, such as `y - x`\n *[other] two outputs, the vector at each point, such as `(y, -x)`\n }, but the function it was given has { $found ->\n [one] { $found } output\n *[other] { $found } outputs\n }. { $alternative ->\n [none] Nothing is drawn.\n *[other] `<{ $alternative }>` is the component for that function. Nothing is drawn.\n }\n\n# Translators: retired. `function` is an attribute name and stays in English.\n# It warned that a field had been given its function both as an attribute and\n# inside the component; the attribute no longer exists, so the two can no\n# longer disagree. Kept because diagnostic codes are never reused.\nfield-function-attribute-ignored-with-child = The `function` attribute is ignored because the function is also given inside the component; the one inside is used. Give the function only one of the two ways.\n\n# Translators: `variables` and `function` are a DoenetML attribute and tag and\n# stay in English, as does $component, the field\'s own tag. The attribute names\n# the inputs of an expression written directly inside the component; when there\n# is no such expression there is nothing for it to name, and $reason says which\n# of the two ways that happened.\nfield-variables-ignored =\n `<{ $component }>`: the `variables` attribute names the variables of an expression written directly inside the component. { $reason ->\n [function-child] The function here is given as a `<function>` child, which names its own variables, so `variables` is ignored.\n *[no-expression] No such expression is given here, so `variables` is ignored.\n }\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\n# Translators: the renderer\'s name, prefigure, stays in English. "grid" here is\n# the coordinate grid itself rather than the attribute that asks for one, so it\n# is prose and is translated.\nprefigure-grid-spacing-too-fine = `<graph>`: the grid spacing is too fine for the axis limits; the grid is omitted in the prefigure renderer.\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# Raised when what was written between a reference\'s index brackets did not come\n# out as a whole number — usually because that component reported an error of its\n# own, which is the diagnostic the author should act on. This one says why the\n# reference then found nothing, so the two read together rather than the reference\n# failing silently.\nreference-index-not-a-number = The index of `{ $reference }` did not work out to a number, so the reference found nothing.\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\n# The attribute had a default to fall back to, and the message names it: the\n# component went on to behave as though the author had written that value, and\n# an author not told which one goes looking for the difference in the wrong\n# place.\nattribute-value-invalid-using-default = Invalid value `{ $value }` for attribute `{ $attribute }`, using value `{ $default }`\n\n# The same rejection where the attribute has no default to fall back to, so\n# nothing stood in for the value and the component behaves as though the\n# attribute had not been written. A separate message rather than the one above\n# with a blank in it: "using value `null`" would describe a substitution that\n# did not happen, and name a value no author could have typed. What follows is\n# usually a second message from the component itself, saying what it did\n# without the attribute.\nattribute-value-invalid-ignoring = Invalid value `{ $value }` for attribute `{ $attribute }`, ignoring it\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## Reference indices\n\n# Raised when an element sits in brackets immediately after a reference but the\n# brackets cannot be read as an index. $name is the reference as the author wrote\n# it, including its leading `$` — one for a reference and two for a\n# function reference. $reason says why the brackets could not be read, as a key\n# rather than a phrase, so the whole sentence is translatable rather than\n# assembled from halves.\n#\n# The `braces` branch is about `$x{…}`, which v0.7 no longer gives any meaning:\n# it still parses, but the braces and whatever is in them are dropped. So the\n# remedy is to delete them, not to write the index somewhere else around them.\n#\n# The other four: `parens` and `parensFunction` are `$(x)[…]` and `$$(f)[…]`,\n# which differ only in how many dollars the remedy shows — following the `$(…)` one\n# for a function reference would turn it into an ordinary reference. `arguments`\n# is `$$f(1)[…]`, where the argument list ran past the path. `unclosed` is the\n# default because it states a fact rather than offering a remedy.\n#\n# There is deliberately no branch for an index on a function reference that is\n# then called. `$$fs[<n/>](3)` picks which of the functions in `fs` to call and\n# is taken like any other index on an open path.\n#\n# The `parens` branch is about `$(x)[…]`. The index does belong inside the\n# parentheses, but an element written in there is not read as an index either —\n# what is between `$(` and `)` is read as text — so the remedy is to name the\n# element first and reference it inside the parentheses.\n#\n# The `arguments` branch is about `$$f(1)[…]`. Neither place around the\n# arguments takes the index the author wrote: inside the parentheses it would\n# become one more argument, and before them it would choose which function is\n# called rather than part of what the call returns. So the message offers the\n# one spelling that does work, which is to name the result and index that.\n\nindex-element-not-used-as-index =\n The element in brackets after `{ $name }` was not read as an index. { $reason ->\n [braces] `{"{…}"}` is not part of a reference, so `[…]` written after it is ordinary text. Remove the `{"{…}"}`.\n [parens] `$(…)` ends a reference, so `[…]` written after it is ordinary text. Give the element a name and write the index inside the parentheses, as `$(x[$idx])`.\n [parensFunction] `$$(…)` ends a function reference, so `[…]` written after it is ordinary text. Give the element a name and write the index inside the parentheses, as `$$(f[$idx])`.\n [arguments] A function reference\'s arguments end it, so `[…]` written after them is ordinary text. An index written before the arguments would pick which function to call rather than part of what it returns; to index the result, give the result a name and index that.\n *[unclosed] Its `[` is never closed.\n }\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 four 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\n# An attribute replaced by a child element rather than by another attribute:\n# $attribute and $component stay as written, and so does $child, which is the\n# tag name of the child to write instead.\n\ndeprecated-attribute-to-child = [deprecation] Attribute `{ $attribute }` on `<{ $component }>` is deprecated; use a `<{ $child }>` child instead.\n\n# One value of an attribute is deprecated while the attribute itself stays:\n# $value is what the author wrote and $to what to write instead, with\n# $attribute and $component naming where. All four stay as written.\n\ndeprecated-attribute-value-renamed = [deprecation] Value `{ $value }` of attribute `{ $attribute }` on `<{ $component }>` is deprecated; use `{ $to }` instead.\n\n\n## Language coverage\n\n# `<pluralize>` runs an English part-of-speech model over its text and puts the\n# nouns in the plural. There is no equivalent for an arbitrary language — a\n# correct plural needs that language\'s own morphology, and often its\n# dictionary — so in a document written in anything else the word is left as\n# the author typed it, and this says so rather than silently doing nothing.\n#\n# Raised only when there is nothing else to fall back on: a `pluralForm` is the\n# author supplying their own language\'s plural, and that is honored in every\n# language, which is why this can recommend it.\n#\n# $locale is the document\'s language tag, as declared.\npluralize-english-only = `<pluralize>` can only pluralize English, so its text is left unchanged in a document written in { $locale }. Write the plural form directly, or set it with the `pluralForm` attribute.\n\n\n## Checking against the schema\n\n# What the editor draws a squiggle under: the language server\'s own check of\n# the document against the DoenetML schema, run on every keystroke and\n# answered before anything is evaluated. A beginner meets these first, and\n# usually only these, because a document that does not pass them rarely gets\n# as far as producing a diagnostic from the core.\n#\n# `@doenet/lsp-tools` writes its English beside the code rather than rendering\n# it from here, for the same reason `@doenet/parser` does: it is inside the\n# language-server bundle, which `@doenet/codemirror` embeds verbatim and\n# starts as a blob worker, and a catalog on the editor\'s critical path is what\n# `packages/lsp/scripts/check-server-bundle.mjs` exists to reject. The two\n# copies are held together by a test in that package, which runs the checker\n# over a corpus and asserts every coded violation renders to exactly what the\n# checker wrote — so a message edited here without its counterpart fails\n# there.\n#\n# $tag, $parent and $attribute quote the author\'s own source back at them and\n# stay exactly as written; the angle brackets and backticks around them are\n# punctuation this catalog supplies, not part of the name.\n\nschema-element-unrecognized = Element `<{ $tag }>` is not a recognized Doenet element.\n\nschema-element-not-allowed-at-root = Element `<{ $tag }>` is not allowed at the root of the document.\n\nschema-element-not-allowed-inside = Element `<{ $tag }>` is not allowed inside of `<{ $parent }>`.\n\nschema-attribute-unrecognized = Element `<{ $tag }>` doesn\'t have an attribute called `{ $attribute }`.\n\n# $allowed is the attribute\'s permitted values, each already in double quotes\n# and joined for the reader\'s language. $isList says whether the attribute\n# takes several of them at once: one situation, two sentences, because the\n# reader has to be told they are choosing a whole list rather than a value.\nschema-attribute-value-not-allowed =\n { $isList ->\n [true] Attribute `{ $attribute }` of element `<{ $tag }>` must be a list whose items are each one of: { $allowed }\n *[other] Attribute `{ $attribute }` of element `<{ $tag }>` must be one of: { $allowed }\n }\n\n\n## The `<select>` family\'s error boxes\n##\n## The messages that replace the whole component with a red box rather than\n## warning beside it: nothing can be selected, so there is nothing to render.\n## They were the last uncoded `_error` path in the worker (#1581).\n##\n## Counts arrive as numbers rather than as text, so a language that agrees a\n## noun with them can select on them. English does not agree here — it says\n## "1 options" today and these messages reproduce it exactly, because the box\'s\n## text is what the existing suites pin.\n##\n## Being numbers, they are grouped: a count of 1500 renders as "1,500" in\n## English where the concatenated sentence these replaced wrote "1500". That is\n## the one way the English moved, and it moved in the right direction — these\n## are quantities, not identifiers like a line or a section number, which is\n## the distinction that decides between a number and a string everywhere in\n## these catalogs.\n##\n## Translators: component and attribute names — `selectFromSequence`,\n## `selectPrimeNumbers`, `from`, `to`, `step` — are DoenetML identifiers, not\n## words. They are written into these messages as they stand and must be left\n## in English exactly as written.\n\nselect-variant-name-option-count-mismatch = Invalid variant name for select. Variant name { $variantName } appears in { $numOptions } options but number to select is { $numToSelect }.\n\nselect-variant-name-without-options = Some variants are specified for select but no options are specified for possible variant name: { $variantName }.\n\nselect-variant-name-not-possible = Variant name { $variantName } that is specified for select is not a possible variant name.\n\nselect-too-few-options = Cannot select { $numToSelect } components from only { $numOptions }.\n\nselect-from-sequence-too-few-values = Cannot select { $numToSelect } values from a sequence of length { $length }.\n\nselect-from-sequence-indices-count-mismatch = Number of indices specified for select must match number to select\n\nselect-from-sequence-indices-not-integers = All indices specified for select must be integers\n\nselect-from-sequence-index-excluded = Specified index of selectfromsequence that was excluded\n\nselect-from-sequence-indices-excluded-combination = Specified indices of selectfromsequence that was an excluded combination\n\nselect-from-sequence-coprime-not-positive-integers = Cannot select coprime combinations as not selecting positive integers.\n\n# Translators: from, to and step are attribute names. They are written into\n# the message rather than passed in because these three never vary — an\n# argument is for a name that changes from one call to the next.\nselect-from-sequence-coprime-common-factor = Cannot select coprime numbers. All possible values share a common factor. (Specified values of "from" or "to" must be coprime with "step".)\n\nselect-from-sequence-coprime-single-number = Cannot select coprime combinations from a single number that is not 1.\n\nselect-from-sequence-excluded-too-many-combinations = Excluded over 70% of combinations in selectFromSequence\n\n# The sibling of `select-from-sequence-coprime-common-factor`, and a different\n# situation rather than a rewording of it: that one is decided up front, from\n# the sequence\'s own arithmetic. This one is what is left after two hundred\n# draws found no coprime combination among values that could have supplied one.\nselect-from-sequence-coprime-none-found = Could not select coprime numbers. All possible values share a common factor.\n\nselect-from-sequence-too-few-unique-values = Cannot select { $numToSelect } unique values from sequence of length { $numPossibleValues }\n\nselect-prime-numbers-too-few-values = Cannot select { $numToSelect } values from a list of primes of length { $numValues }\n\nselect-prime-numbers-values-count-mismatch = Number of values specified for select must match number to select\n\nselect-prime-numbers-values-not-prime = All values specified for select prime number must be in the list of primes\n\nselect-prime-numbers-values-excluded-combination = Specified values of selectPrimeNumbers was an excluded combination\n\nselect-prime-numbers-excluded-too-many-combinations = Excluded over 70% of combinations in selectPrimeNumbers\n\n# Both flukes are shared by `<selectFromSequence>` and `<selectPrimeNumbers>`,\n# which say the same thing in the same words. Neither is reachable in practice\n# — each follows two hundred independent draws — but an unreachable box is\n# still a box, and it renders in whatever language the rest of the page does.\nselect-random-combination-fluke = By extremely unlikely fluke, couldn\'t select combination of random values\n\nselect-random-value-fluke = By extremely unlikely fluke, couldn\'t select random value\n\n## Inputs embedded in math\n\n# Translators: $component is the input\'s own DoenetML tag and stays in English,\n# as do the attribute names `inline`, `expanded` and `width`. An input written\n# inside `<m>` is drawn in the place it is written, inside the typeset\n# expression, which makes room for it as it grows. That needs a control small\n# enough to sit in a line of mathematics, with a width the expression can\n# measure, in an expression that is not drawn on a graph; $reason says which of\n# those this input fails. When it fails, the input is not shown at all, and the\n# expression is typeset with the input\'s value in its place — a text input\'s\n# text, a math input\'s mathematics — or with nothing there for a choice input.\nmath-embedded-input-shape-unsuitable =\n { $reason ->\n [not-inline] This `<{ $component }>` is not shown because it is inside math and is not `inline`. Add `inline` so it becomes a drop-down list, which fits inside an expression.\n [expanded] This `<{ $component }>` is not shown because it is inside math and is `expanded`. Remove `expanded`; a multi-line box does not fit inside an expression.\n [on-graph] This `<{ $component }>` is not shown because it is inside math drawn on a graph, which has no room for an input.\n *[relative-width] This `<{ $component }>` is not shown because it is inside math and has a relative width. Give the width in absolute units, such as `px`, instead.\n }\n\n## `<sampleRandomNumbers>` and `<selectRandomNumbers>`\n##\n## Translators: `mean`, `standardDeviation`, `variance`, `numTotal`,\n## `numSuccesses`, `numDraws`, `numTrials`, `probability` and `numSamples` are\n## DoenetML attribute names. They are written into these messages as they stand\n## and must be left in English exactly as written. Each of these names the\n## attribute the author has to change, so a message that translated one would\n## point at an attribute that does not exist.\n\n# The spread reaches the sampler as a standard deviation however it was written,\n# so a negative `variance` arrives here as a `standardDeviation` of NaN and the\n# message has to name both for the author to know what to edit.\nsample-gaussian-parameters-invalid =\n Invalid mean ({ $mean }) or standardDeviation ({ $standardDeviation }) for a gaussian random variable. The mean must be a finite number, and the standardDeviation (or the variance it is derived from) must be finite and non-negative. No numbers can be sampled.\n\n# These three attributes are the only ones with no default, so leaving one out is\n# the commonest way to reach this message. Each arrives either as the number the\n# author wrote or as `not-set` for an attribute they left off entirely; translate\n# the "not set" wording, but leave the `not-set` key that selects it untouched.\nsample-hypergeometric-parameters-invalid =\n Invalid numTotal ({ $numTotal ->\n [not-set] not set\n *[other] { $numTotal }\n }), numSuccesses ({ $numSuccesses ->\n [not-set] not set\n *[other] { $numSuccesses }\n }), or numDraws ({ $numDraws ->\n [not-set] not set\n *[other] { $numDraws }\n }) for a hypergeometric random variable. numTotal must be a positive whole number, and numSuccesses and numDraws must be non-negative whole numbers no larger than numTotal. All three must also stay below about nine quadrillion, past which whole numbers can no longer be counted exactly.\n\n# $maxDraws is the largest number of random draws allowed for a single sample.\nsample-hypergeometric-draws-too-many =\n Drawing { $numDraws } items from a population of { $numTotal } would need more than { $maxDraws } random draws for each sample, which would stop the page from responding. Reduce numDraws, or bring it closer to numTotal.\n\nsample-binomial-parameters-invalid =\n Invalid numTrials ({ $numTrials }) or probability ({ $probability }) for a binomial random variable. numTrials must be a non-negative whole number below about nine quadrillion, past which whole numbers can no longer be counted exactly, and probability must be between 0 and 1.\n\n# $maxDraws is the largest number of random draws allowed for a single sample.\nsample-binomial-trials-too-many =\n Running { $numTrials } trials would need more than { $maxDraws } random draws for each sample, which would stop the page from responding. Reduce numTrials.\n\nsample-poisson-mean-invalid =\n Invalid mean ({ $mean }) for a poisson random variable. The mean must be a finite, non-negative number.\n\n# $maxDraws is the largest number of random draws allowed for a single sample.\nsample-poisson-mean-too-large =\n A poisson mean of { $mean } would need more than { $maxDraws } random draws for each sample, which would stop the page from responding. Reduce the mean.\n\n# $distribution names the distribution being sampled, e.g. "binomial" or\n# "multivariate hypergeometric"; $draws is roughly how many random draws each value\n# needs. Raised by `<sampleRandomNumbers>`, `<selectRandomNumbers>` and\n# `<sampleMultivariateRandomNumber>`, which count values with `numSamples`,\n# `numToSelect` and one vector respectively, so the wording names no attribute.\nsample-distribution-slow =\n Each value from this { $distribution } distribution needs about { $draws } random draws, so sampling may be slow. Reduce the distribution\'s parameters, or ask for fewer values, if the page feels sluggish.\n\n## List index operators\n\n# Raised by the index-returning list operators (`<indexOf>`, `<searchSorted>`)\n# when no `target` was given. $component names the tag the author wrote.\nindex-operator-missing-target =\n `{ $component }` has no `target` to look for, so it cannot report a position and gives 0.\n\n# Raised when the operator had no values to look through — an empty list, or one\n# whose only children were references that produced nothing.\nindex-operator-no-values =\n `{ $component }` has no values to look through, so it gives 0, which is not the index of any item.\n## `<sampleMultivariateRandomNumber>`\n##\n## Translators: `type`, `numInCategories` and `numDraws` are DoenetML attribute\n## names, and `hypergeometric` is one of the values `type` takes. They are written\n## into these messages as they stand and must be left in English exactly as\n## written. Each names the attribute the author has to change, so a message that\n## translated one would point at an attribute that does not exist.\n\n# Neither attribute has a default that names a population — numDraws has none at\n# all, and numInCategories falls back to a list with no categories in it — so\n# leaving one out is the commonest way to reach this message. Each arrives either\n# as the value the author wrote or as `not-set`: for numDraws when it is missing,\n# and for numInCategories when it names no categories, whether it was left off or\n# written empty. Translate the "not set" wording, but leave the `not-set` key that\n# selects it untouched.\nsample-multivariate-parameters-invalid =\n Invalid numInCategories ({ $numInCategories ->\n [not-set] not set\n *[other] { $numInCategories }\n }) or numDraws ({ $numDraws ->\n [not-set] not set\n *[other] { $numDraws }\n }) for a multivariate hypergeometric random variable. numInCategories must list at least one category, each a non-negative whole number, and numDraws must be a non-negative whole number no larger than their total. Each category, that total, and numDraws must also stay below about nine quadrillion, past which whole numbers can no longer be counted exactly.\n\n# $maxDraws is the largest number of random draws allowed for a single sample.\n# Drawing nearly the whole population is as cheap as drawing almost none of it, so\n# raising numDraws is a fix as well as lowering it. "could need" rather than "would\n# need": each category is counted at the most its draw could cost, so the count\n# these parameters are refused on is an upper bound on the work they really take.\nsample-multivariate-draws-too-many =\n Drawing { $numDraws } items from a population of { $numTotal } split into { $numCategories } categories could need more than { $maxDraws } random draws for each sample, which would stop the page from responding. Reduce numDraws, bring it closer to numTotal, or use fewer categories.\n\n# `type` has no default, so this is what leaving it off gets. A type the attribute\n# does not recognize falls back to no type at all and reaches this message too,\n# after a separate one naming the value that was rejected — hence "no distribution\n# was named" rather than wording that assumes the attribute is missing.\nsample-multivariate-type-not-specified =\n No multivariate distribution was named for this random variable, so nothing was sampled. Give the type attribute the name of a distribution, such as `type="hypergeometric"`.\n\n## Counting operators\n\n# Raised by `<tally>` when the author named `categories` explicitly and some\n# values matched none of them, so those values were not counted anywhere. Info\n# rather than a warning: a list fed by an input legitimately holds\n# non-categories while a student is typing. It deliberately does not say how\n# many such values there were: the diagnostics queue is append-only and\n# deduplicates by message, so a count would leave one permanent entry behind\n# for every number of stray values the list passed through while being typed.\ntally-values-outside-categories =\n Some values matched none of the declared categories, so they were not counted.\n\n# Raised by `<chart type="histogram">` when an observation falls outside the\n# outermost cut points. Only cut points an author wrote can leave any — bins the\n# chart chooses cover the data — so this says what a written `bins` left out.\n# Info rather than a warning, for the reason the message above is: leaving part\n# of a sample out of a picture is something an author may have meant, and a\n# column fed by an input passes through values outside the bins while a student\n# is typing. It deliberately does not say how many: the diagnostics queue is\n# append-only and deduplicates by message, so a count would leave one permanent\n# entry behind for every number the column passed through.\nchart-histogram-values-outside-bins =\n Some observations fell outside the `bins` cut points, so they were not counted in any bar.\n\n# Raised by `<tally>` when `categories` names the same category more than once.\n# A warning rather than info: unlike a stray value, a repeated category is a\n# property of what the author wrote, so it stays true of a settled document. The\n# message says what the counts will be, since the behavior is defensible but not\n# what an author who repeated a category by accident expects.\ntally-repeated-category =\n `categories` names the same category more than once. Each count reports the values equal to its own category, so the repeated ones all report the same number.\n\n# Raised by `<binCounts>` when no `bins` attribute was given, so there are no\n# intervals to count into. $component names the tag the author wrote.\nbin-counts-missing-bins =\n `{ $component }` has no `bins` cut points, so there are no intervals to count into and it gives no counts.\n\n# Raised by `<binCounts>` when `bins` held fewer than the two cut points needed\n# to define a single interval. $count is how many were given, and can be 0 or 1,\n# so the sentence is worded to read for both without forking on the number.\nbin-counts-too-few-cut-points =\n `bins` needs at least 2 cut points to define an interval, but received { $count }.\n\n# Raised by `<binCounts>` when its values are not all numeric, so they cannot be\n# placed between numeric cut points. $component names the tag the author wrote.\nbin-counts-values-not-numeric =\n `{ $component }` can only count numeric values into bins, but not every value it was given is numeric. All counts are 0.\n\n# Raised by `<binCounts>` when the `bins` cut points do not climb: one is\n# smaller than the one before it, so a bin would run backwards and its count\n# would come out negative, or one is not a number at all, which has the same\n# effect. Equal adjacent cut points are accepted, so the message says "at least\n# as large as" rather than "increasing": what is rejected is a decrease, not a\n# failure to strictly increase. Between two interior cut points that names an\n# empty bin; at either end the outermost-edge rule can still put a value in it.\nbin-counts-cut-points-decreasing =\n Each `bins` cut point must be a number at least as large as the one before it, but one is not a number or is smaller than its predecessor, so no counts were produced.\n\n## Charts\n\n# Raised by `<chart type="bar">` when a value is not a finite number, so it gets\n# no bar. The alternative reading of a missing bar is a value of zero, which the\n# author cannot distinguish by looking, so the absence is stated rather than left\n# to be inferred. No count: the queue is append-only and deduplicates by message,\n# and the number of such values changes as an input is typed into. (The message\n# key is `bar-chart-…` because a code names one situation forever and this one\n# was issued while the component was still spelled `<barChart>`.)\nbar-chart-values-not-drawable =\n A bar chart draws no bar for a value that is not a finite number, so those places on the chart are empty rather than zero.\n\n# Raised by `<chart type="bar">` when `barWidth` is outside the (0, 1] range a\n# fraction of a bar\'s slot can take. $barWidth is what the author wrote.\nbar-chart-bar-width-invalid =\n `barWidth` must be greater than 0 and at most 1, but { $barWidth } was given. Using 0.8 instead.\n\n# `type` has no default, so this is what `<chart>` on its own gets. A type the\n# attribute does not recognize falls back to no type at all and reaches this\n# message too, after a separate one naming the value that was rejected — hence\n# "no chart type was named" rather than wording that assumes the attribute is\n# missing.\nchart-type-not-specified =\n No chart type was named, so nothing was drawn. Give the type attribute the name of a chart, such as `type="bar"`.\n\n# Raised by `<chart>` when values are written beside its `<series>` children.\n# A value outside every series belongs to no group of the data, so there is no\n# place on the chart to draw it; saying so matters because the alternative\n# reading of the missing bar is that the value was zero.\nchart-values-outside-series =\n A chart with `<series>` children draws only the values inside them, so values written beside a series were not drawn. Move them into a series of their own.\n\n# Raised by `<chart type="line">` and `<chart type="scatter">` when a point\n# cannot be placed. Two situations reach it and the message covers both: a value\n# that is not a finite number, and a value with no `x` beside it — which is what\n# a series given fewer horizontal coordinates than values produces from the\n# position they run out. Neither is distinguishable by looking from having asked\n# for fewer points. No count: the queue deduplicates by message, and the number\n# changes as an input is typed into.\nchart-points-not-drawable =\n A point needs a finite number for both coordinates, so values with no coordinate beside them, and coordinates with no value, were not drawn.\n\n# Raised by `<chart type="pie">` for a value that is not a finite number. The\n# bar chart\'s message says the place on the chart is empty rather than zero; a\n# pie has no places, so this says the slice is missing instead. No count, for\n# the reason the others give: the queue deduplicates by message.\nchart-pie-values-not-drawable =\n A pie chart draws no slice for a value that is not a finite number, and leaves it out of the total.\n\n# Raised by `<chart type="pie">` for a negative value. Its own message rather\n# than the one above, because the reason is different in kind: a negative bar\n# hangs below the baseline it is measured from, and a pie has no baseline to\n# hang anything from, so a negative value is not merely undrawable but has no\n# reading as a share of a total. It is left out of the total as well, so the\n# slices that are drawn are shares of what was actually charted.\nchart-pie-negative-values =\n A slice is a share of a total, so a pie chart draws no slice for a negative value and leaves it out of the total.\n\n# Raised by `<chart type="pie">` when the values that could be shares of a\n# total came to zero. Nothing is drawn: there is no share to take of zero, and\n# dividing by it would put `NaN` in every angle. Not raised for a pie with no\n# values at all, which is one being written rather than one that is wrong, nor\n# for one whose every value was rejected — those already have a message naming\n# the reason.\nchart-pie-total-not-positive =\n The values of this pie chart total zero, so there are no shares to draw. A pie needs at least one value above zero.\n\n# Raised by `<chart type="pie">` holding more than one `<series>` that is not\n# hidden — a hidden one is dropped before the count, like any drawn child of a\n# container that is hidden on its own account. Concentric\n# rings are not a standard chart and a donut is a styling variant rather than a\n# second group, so there is nowhere on a pie for a second series to go.\nchart-pie-one-series =\n A pie chart draws one series, so only the first was drawn. Chart the others separately, or use a type that draws several series at once.\n\n# Raised by `<chart type="pie">` whose `<xLabel>` or `<yLabel>` child has text\n# in it; a blank one asks for nothing and is not reported. A pie\n# has no axes for either to name, so the text is authored prose with nowhere on\n# the page to go — which is worth a message where an ignored *attribute* is not,\n# because what was dropped is something the author wrote for a reader to see.\nchart-pie-axis-name-ignored =\n A pie chart has no axes, so an `<xLabel>` or `<yLabel>` was not drawn. Put the text in a `<title>` instead, or in prose beside the chart.\n\n# Raised by `<chart type="box">` for an observation that is not a finite\n# number. Left out of the summary rather than read as zero, which would move\n# every quartile of the box drawn from it. No count, for the reason the others\n# give: the queue deduplicates by message, and the number changes as an input is\n# typed into.\nchart-box-values-not-drawable =\n A box plot summarizes finite numbers, so an observation that is not one was left out of its summary.\n\n# Raised by `<chart type="box">` carrying a `categories` attribute. A box chart\n# has no categories: each of its series is one position on the axis and is named\n# by its own `<label>`, so the names in `categories` are authored text with\n# nowhere on the page to go — which is worth a message where an ignored\n# *attribute* is not, because what was dropped is something the author wrote for\n# a reader to see.\nchart-box-categories-ignored =\n A box plot names each of its boxes after the series it was drawn from, so `categories` was not used. Give each `<series>` a `<label>` instead.\n\n# Raised by `<chart type="histogram">` for an observation that is not a finite\n# number, which falls in no bin. Its own message rather than the box plot\'s,\n# because what is lost differs: there a quartile moves, here a bar is one\n# shorter. No count, for the reason the others give: the queue deduplicates by\n# message, and the number changes as an input is typed into.\nchart-histogram-values-not-drawable =\n A histogram counts finite numbers, so an observation that is not one fell in no bin.\n\n# Raised by `<chart type="histogram">` holding more than one `<series>` that is\n# not hidden — a hidden one is dropped before the count, like any drawn child of\n# a container that is hidden on its own account. Two samples counted into the\n# same bars would have to be stacked or drawn through each other, and neither is\n# a reading a histogram can be given without being told which was meant.\nchart-histogram-one-series =\n A histogram draws one series, so only the first was drawn. Chart the others separately, or compare them with `type="box"`.\n\n# Raised by `<chart type="histogram">` whose `bins` is a single number that is\n# not a number of bins: not a whole number, not positive, or more bins than a\n# picture can hold. $bins is what the author wrote and $maximum the most that\n# may be asked for. Two or more numbers are read as cut points instead, and are\n# reported by the message below.\nchart-histogram-bin-count-invalid =\n `bins` must be a whole number of bins from 1 to { $maximum }, or two or more cut points, but { $bins } was given. Choosing bins from the data instead.\n\n# Raised by `<chart type="histogram">` whose `bins` holds two or more numbers\n# that do not describe bins to draw. `<binCounts>` has a message of its own for\n# the same list, and this one differs in what happens next: a chart has data to\n# choose bins from, so it draws those rather than drawing nothing.\n#\n# A cut point that is not finite is reported here too, where `<binCounts>`\n# counts into a bin with no far end quite happily — a bar with no far end is not\n# something a picture can hold.\nchart-histogram-cut-points-invalid =\n Each `bins` cut point must be a finite number at least as large as the one before it. Choosing bins from the data instead.\n\n# Raised by `<chart type="histogram">` carrying a `categories` attribute. A\n# histogram has no categories: its positions are the bins it divided the scale\n# into, named by the numbers they run between, so the names in `categories` are\n# authored text with nowhere on the page to go — which is worth a message where\n# an ignored *attribute* is not, because what was dropped is something the\n# author wrote for a reader to see.\nchart-histogram-categories-ignored =\n A histogram names its bars by the cut points they run between, so `categories` was not used. Give `bins` the cut points you want instead.\n\n# Raised by `<chart type="histogram">` carrying a `barWidth` attribute. The gap\n# a `barWidth` below 1 leaves is what says two bars stand for separate things,\n# and a histogram\'s bars are neighboring stretches of one continuous scale —\n# so there is no slot for a width to be a fraction of.\nchart-histogram-bar-width-ignored =\n A histogram\'s bars are adjacent, with no gap between them, so `barWidth` was not used. Give `bins` fewer cut points to draw wider bars.\n';
|
|
38899
39136
|
const editor = '# Editor and language-server surfaces: the footer, the diagnostics panel, the\n# variant picker, the accessibility button, and the context-help panel beside\n# them. Selected by `uiLocale`.\n#\n# The editor binds to *one* language, and it is the one the viewer below it\n# resolved rather than the one the surrounding host chrome uses: the panel\n# lists diagnostics rendered down there, where an authored `<document lang>` is\n# known, and a footer in one language above a panel in another reads worse than\n# either choice on its own (#1580).\n#\n# The LSP ships bundled with its DoenetML version, so these catalogs are\n# 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\n\n## The viewer\'s controls\n##\n## `editor-update-viewer` names the button that recompiles the document. Its\n## word depends on whether the source changed or only the document\'s state\n## did, which is a distinction the code makes and a `$action` says: the button\n## is otherwise identical, and splitting it into two messages would let the two\n## drift.\n##\n## The keyboard hint is a separate branch rather than text appended after the\n## title, because where a shortcut sits in a sentence is not the same in every\n## language. `$shortcut` is a key combination and stays as written.\n##\n## The tooltip takes the word as `$word` rather than referencing the message\n## above it: a message reference resolves only inside its own bundle, so a\n## locale that translated the tooltip but not the word would render the\n## reference literally instead of falling back to English. This is the shape\n## `paginator-page-status` already uses.\n\n# Button label. "Update" recompiles after a source edit; "Reset" reverts\n# only the document\'s live state to match — same button, different verb.\n# Keep both forms short enough to fit a toolbar button.\neditor-update-viewer =\n { $action ->\n [reset] Reset\n *[update] Update\n }\n\n# Tooltip on the button above. { $word } is that button\'s own current label\n# ("Update" or "Reset"), so this reads as e.g. "Update Viewer" or\n# "Reset Viewer". { $shortcut } appends the keyboard shortcut when one exists.\neditor-update-viewer-title =\n { $shortcut ->\n [none] { $word } Viewer\n *[other] { $word } Viewer { $shortcut }\n }\n\n\n## The variant picker\n\n# Label for the variant picker control itself (a noun, like a field label).\neditor-variant = Variant\n\n# Placeholder text shown in the empty filter input, before the user types\n# anything — not a button or instruction.\neditor-variant-filter = Filter...\n\n# Button/action label: advances to the next variant in the list.\neditor-variant-next = Select next variant\n\n# Button/action label: goes back to the previous variant in the list.\neditor-variant-previous = Select previous variant\n\n\n## The accessibility status button\n##\n## `WCAG AA` is the name of the standard and is not translated, the way\n## `accessibility-heading-level-1` already leaves it.\n##\n## The tooltip and the label are separate messages rather than one with an\n## extra clause: the label counts the violations and the tooltip does not, and\n## a screen reader and a hover are different audiences.\n##\n## `$action` is whether clicking opens or closes the report — an interpolated\n## English verb before this, which no locale could reach and which no language\n## has to place where English does.\n\neditor-accessibility-title =\n { $status ->\n [violations] WCAG AA accessibility violation identified. Click to { $action ->\n [close] close\n *[open] open\n } accessibility report.\n [advisories] Click to { $action ->\n [close] close\n *[open] open\n } accessibility report. No WCAG AA violations were found, but additional accessibility recommendations are available.\n *[clean] Click to { $action ->\n [close] close\n *[open] open\n } accessibility report. No accessibility issues were found.\n }\n\neditor-accessibility-label =\n { $status ->\n [violations] WCAG AA accessibility violation identified. { $count ->\n [one] { $count } WCAG AA violation\n *[other] { $count } WCAG AA violations\n } found. Click to { $action ->\n [close] close\n *[open] open\n } accessibility report.\n [advisories] No WCAG AA violations identified. { $count ->\n [one] { $count } additional accessibility recommendation\n *[other] { $count } additional accessibility recommendations\n } found. Click to { $action ->\n [close] close\n *[open] open\n } accessibility report.\n *[clean] No WCAG AA violations identified. Click to { $action ->\n [close] close\n *[open] open\n } accessibility report.\n }\n\n# The word on the button itself, beside the icon, when there are violations.\neditor-accessibility-badge = WCAG\n\n\n## The footer\n##\n## `$version` is a version number and stays as written.\n\neditor-version-title = DoenetML version { $version }\n\neditor-tab-help = Context-sensitive help\n# The word beside the icon on that tab, which has room for one word.\neditor-tab-help-short = Context\neditor-tab-errors = Errors\neditor-tab-warnings = Warnings\neditor-tab-info = Info\neditor-tab-accessibility = Accessibility\neditor-tab-responses = Submitted responses\n\n# A tab\'s accessible name when it carries a count: "Errors: 3".\neditor-tab-with-count = { $label }: { $count }\n\neditor-options = Editor options\neditor-format-as-doenetml = Format as DoenetML\neditor-format-as-xml = Format as XML\n\n\n## The diagnostics panel\n\n# Where in the source a diagnostic was found. `$line` arrives as text, not as a\n# number: it identifies the line, so line 1234 is "#1234" and not "#1,234".\neditor-diagnostic-line = Line #{ $line }\n\neditor-no-errors = No Errors\neditor-no-warnings = No Warnings\neditor-no-info = No Info Diagnostics\n\neditor-show-info-annotations = Show info diagnostics in editor\neditor-show-accessibility-annotations = Show accessibility diagnostics in editor\n\n# Links into the documentation, which has no translated pages yet. The words\n# move; where they point does not (#1580).\neditor-accessibility-learn-more = Learn how Doenet approaches accessibility\n\n# The heading over the WCAG AA failures. The standard\'s name is a link, so it\n# arrives as an argument rather than being written into the sentence — the\n# brackets around it are this catalog\'s punctuation, and the link is the code\'s.\neditor-accessibility-violations-heading = Accessibility violations ({ $standard })\n\neditor-accessibility-other-heading = Other accessibility issues\neditor-none-found = None found\n\n\n## Submitted responses\n\neditor-no-responses = No submitted responses yet\neditor-response-answer-id = Answer Id\neditor-response-response = Response\neditor-response-credit = Credit\neditor-response-submitted = Submitted\n\n\n## The context-help panel\n##\n## The panel beside the diagnostics, which explains whatever the cursor is on.\n## It is the last of the surfaces the header above names.\n##\n## Several of these sentences have marked-up fragments in them — an element\n## name in `<code>`, a link, a rendered piece of inline markdown. Those arrive\n## as arguments and are put back as React nodes after the message is formatted,\n## so a translation owns the whole sentence including where each fragment sits\n## and the punctuation around it. A translation that drops one simply renders\n## without it rather than losing the sentence.\n##\n## Element names, attribute names and `styleNumber` are DoenetML identifiers\n## and stay as written. The descriptions and summaries the panel shows come\n## from the schema, which is generated from the documentation and is not\n## translated, and the values it resolves — a color\'s derived word, a\n## function name, a type — come from the language server in the same state.\n## What is here is the panel\'s own prose around them (#1580).\n\nhelp-placeholder = Place cursor on a tag name, attribute, or { $ref } for documentation.\n\nhelp-unsupported-ref-chain = Help for multi-part references like { $example } is not yet supported.\n\nhelp-unresolved-ref =\n { $reason ->\n [notFound] No referent found for reference: { $ref }.\n [multiple] Multiple referents found for reference: { $ref }.\n *[indeterminate] A referent for { $ref } could not be determined.\n }\n\n# Both links end in an arrow, which is direction rather than punctuation and is\n# the same in every language this ships in — but it is inside the message, so a\n# language written right to left can turn it around.\nhelp-learn-about-references = Learn about references →\nhelp-reference-page = Reference page →\n\n# What can go where the cursor is. Two selectors joined: where the cursor sits,\n# and what the schema allows there.\nhelp-suggestions-header =\n { $location ->\n [inside] Inside { $element }\n *[top] At the top level\n }{ $allowed ->\n [none] { " — nothing goes here." }\n [text] { " — type text here." }\n [text-and-components] { " — type text here, or try:" }\n *[components] { " — things to try:" }\n }\n\n# `$shortcut` is a key combination and stays as written. `$total` is a real\n# count, so a language that agrees a noun with it can select on it.\nhelp-suggestions-footer = Press { $shortcut } to see all { $total } components.\n\n# An element\'s name joined to its one-line summary. `$name` is empty where the\n# panel has already printed the name beside this — a suggestion in the list —\n# and only the separator is wanted, so the message has to read as punctuation\n# on its own.\nhelp-name-summary = { $name } — { $summary }\n\n# `$line` is text, not a number: it identifies a line, so line 1234 is "1234"\n# and not "1,234". `none` is how a position that is not known selects a\n# sentence without one rather than substituting an empty parenthesis.\nhelp-ref-is-reference =\n { $line ->\n [none] { $ref } is a reference to { $target }.\n *[other] { $ref } is a reference to { $target } (line { $line }).\n }\n\nhelp-ref-derived-from =\n { $line ->\n [none] Introduced by { $owner } as { $role }.\n *[other] Introduced by { $owner } on line { $line } as { $role }.\n }\n\nhelp-property-is-reference =\n { $line ->\n [none] { $ref } is a reference to the { $property } property of { $element }.\n *[other] { $ref } is a reference to the { $property } property of { $element } (line { $line }).\n }\n\n# The badge on the title row saying what kind of thing the panel is explaining.\nhelp-kind-attribute = attribute\nhelp-kind-snippet = snippet\nhelp-kind-array-entry = array entry\n\nhelp-default = Default:\nhelp-active-default = Active default:\n\n# Appended after the active default\'s value. `styleNumber` is the attribute\'s\n# own name and stays as written; the space and brackets around it do not.\nhelp-style-number-annotation = { " " }(styleNumber { $styleNumber })\n\nhelp-allowed-values =\n { $perItem ->\n [true] Allowed values (one per item):\n *[other] Allowed values:\n }\n\n# Heading for values the editor offers without requiring: the attribute accepts\n# others too, and nothing warns about them. Distinct from `help-allowed-values`\n# so a translation can pick a word that suggests rather than constrains.\nhelp-suggested-values = Suggested values:\n\nhelp-inserts = Inserts:\n\nhelp-coordinates =\n { $count ->\n [one] Coordinate:\n *[other] Coordinates:\n }\n\nhelp-type = Type:\n\nhelp-resolved-style = Resolved style (styleNumber { $styleNumber }):\n\nhelp-resolved-function-names = Resolved function names:\nhelp-reset-list = Reset list on this input:\nhelp-added-on-input = Added on this input:\nhelp-removed-on-input = Removed on this input:\n\n# The three names are attributes an author writes, so they stay as written.\nhelp-reset-overrides = { $reset } overrides { $additional } and { $removed }.\n\n# Length syntax for a `componentSize` attribute (`width`, `height`). The values\n# listed alongside this label are examples the panel renders as chips.\nhelp-accepted-sizes = Accepted sizes:\nhelp-size-units = A bare number is pixels. A percentage is a share of the width around the component.\n\n# For a `height`, which is offered no percentage: the note must not raise a form\n# the attribute does not support.\nhelp-size-units-absolute = A bare number is pixels.\n\n# For a width that picks a named `size` preset (`<graph>`, `<image>`, `<video>`):\n# a percentage there is a share of the largest width any component may take, not\n# of the space around this one.\nhelp-size-units-preset = A bare number is pixels, and a percentage is a share of the widest a component can be.\n\n# For a side-by-side `width`, which is offered no absolute form: the same rule,\n# the other way round.\nhelp-size-units-relative = A percentage is a share of the width around the component.\n\n# `size` names a sibling attribute an author writes, so it stays as written.\nhelp-size-snaps-to-preset = This width picks the nearest { $size } preset rather than being used exactly.\n';
|
|
38900
39137
|
const CATALOG_NAMESPACES = [
|
|
38901
39138
|
"chrome",
|
|
@@ -43170,6 +43407,7 @@ const DIAGNOSTIC_CODES = {
|
|
|
43170
43407
|
"doenet-w0160": "chart-histogram-categories-ignored",
|
|
43171
43408
|
"doenet-w0161": "chart-histogram-bar-width-ignored",
|
|
43172
43409
|
"doenet-w0162": "index-element-not-used-as-index",
|
|
43410
|
+
"doenet-w0163": "reference-index-not-a-number",
|
|
43173
43411
|
"doenet-e0001": "pretzel-circuit-first-problem-distractor",
|
|
43174
43412
|
"doenet-e0002": "component-type-invalid",
|
|
43175
43413
|
"doenet-e0003": "attribute-repeated",
|
|
@@ -47588,7 +47826,7 @@ async function cidFromArrayBuffer(data) {
|
|
|
47588
47826
|
await crypto.subtle.digest("SHA-256", new Uint8Array());
|
|
47589
47827
|
digest = (data2) => crypto.subtle.digest("SHA-256", data2);
|
|
47590
47828
|
} catch (e22) {
|
|
47591
|
-
const sha256 = (await import("./sha256-8sXzDnE0-
|
|
47829
|
+
const sha256 = (await import("./sha256-8sXzDnE0-DG0srRpC-wEOUJcTD.js").then((n2) => n2.s)).default;
|
|
47592
47830
|
digest = (data2) => sha256(data2, {
|
|
47593
47831
|
asBytes: true
|
|
47594
47832
|
});
|
|
@@ -53004,6 +53242,19 @@ function doenetMLStringForReference(originalPath, allDoenetMLs) {
|
|
|
53004
53242
|
}
|
|
53005
53243
|
return allDoenetMLs?.[sourceDoc]?.substring(startOffset, endOffset) ?? "";
|
|
53006
53244
|
}
|
|
53245
|
+
function doenetMLDollarsForReference(originalPath, allDoenetMLs) {
|
|
53246
|
+
const startOffset = originalPath?.[0]?.position?.start.offset;
|
|
53247
|
+
if (startOffset == void 0) {
|
|
53248
|
+
return "$";
|
|
53249
|
+
}
|
|
53250
|
+
const sourceDoc = originalPath[0].sourceDoc ?? 0;
|
|
53251
|
+
const source = allDoenetMLs?.[sourceDoc];
|
|
53252
|
+
if (source == void 0) {
|
|
53253
|
+
return "$";
|
|
53254
|
+
}
|
|
53255
|
+
const dollarsEnd = source[startOffset - 1] === "(" ? startOffset - 1 : startOffset;
|
|
53256
|
+
return source.substring(dollarsEnd - 2, dollarsEnd) === "$$" ? "$$" : "$";
|
|
53257
|
+
}
|
|
53007
53258
|
const TAG_NAME_REGEX = /^[A-Za-z0-9_:-]+/;
|
|
53008
53259
|
function narrowPositionToOpeningTag(position2, source) {
|
|
53009
53260
|
if (!position2 || !source) {
|
|
@@ -53655,6 +53906,7 @@ function convertRefsToCopies({
|
|
|
53655
53906
|
sourceDoc: index2.sourceDoc
|
|
53656
53907
|
};
|
|
53657
53908
|
} else if (comp.componentType === "number" || comp.componentType === "integer") {
|
|
53909
|
+
comp.authoredComponentType = comp.componentType;
|
|
53658
53910
|
comp.componentType = "integer";
|
|
53659
53911
|
return {
|
|
53660
53912
|
value: [comp],
|
|
@@ -53731,6 +53983,9 @@ function convertRefsToCopies({
|
|
|
53731
53983
|
}
|
|
53732
53984
|
return { components: newComponents, nComponents };
|
|
53733
53985
|
}
|
|
53986
|
+
function dropIndexComponents(path) {
|
|
53987
|
+
return path.map((pathPart) => ({ ...pathPart, index: [] }));
|
|
53988
|
+
}
|
|
53734
53989
|
function convertEvaluate({
|
|
53735
53990
|
evaluateComponent,
|
|
53736
53991
|
refResolution,
|
|
@@ -53747,7 +54002,15 @@ function convertEvaluate({
|
|
|
53747
54002
|
attributes: {},
|
|
53748
54003
|
doenetAttributes: {},
|
|
53749
54004
|
state: {},
|
|
53750
|
-
extending: evaluateComponent.extending
|
|
54005
|
+
extending: evaluateComponent.extending,
|
|
54006
|
+
// This component is synthesized rather than written, but it is the one
|
|
54007
|
+
// that carries the reference — so anything that reports a problem with
|
|
54008
|
+
// the reference reports it from here. Without a position such a
|
|
54009
|
+
// diagnostic has no location to show the author, and two of them
|
|
54010
|
+
// covering different references look identical and are deduplicated
|
|
54011
|
+
// into one. The `<evaluate>`'s own span is where the author wrote it.
|
|
54012
|
+
position: evaluateComponent.position,
|
|
54013
|
+
sourceDoc: evaluateComponent.sourceDoc
|
|
53751
54014
|
};
|
|
53752
54015
|
let res = convertRefsToCopies({
|
|
53753
54016
|
serializedComponents: [functionComponent],
|
|
@@ -53782,6 +54045,14 @@ function convertEvaluate({
|
|
|
53782
54045
|
name: "function",
|
|
53783
54046
|
children: res.components
|
|
53784
54047
|
};
|
|
54048
|
+
evaluateComponent.extending = addSource(
|
|
54049
|
+
{
|
|
54050
|
+
...refResolution,
|
|
54051
|
+
originalPath: dropIndexComponents(refResolution.originalPath),
|
|
54052
|
+
unresolvedPath: refResolution.unresolvedPath === null ? null : dropIndexComponents(refResolution.unresolvedPath)
|
|
54053
|
+
},
|
|
54054
|
+
evaluateComponent.extending
|
|
54055
|
+
);
|
|
53785
54056
|
let listChildren = [];
|
|
53786
54057
|
if (evaluateComponent.children.length > 0) {
|
|
53787
54058
|
listChildren = {
|
|
@@ -54009,7 +54280,8 @@ function expandUnflattenedToSerializedComponents({
|
|
|
54009
54280
|
componentClass,
|
|
54010
54281
|
componentInfoObjects: componentInfoObjects2,
|
|
54011
54282
|
nComponents,
|
|
54012
|
-
stateIdInfo
|
|
54283
|
+
stateIdInfo,
|
|
54284
|
+
authoredComponentType: component.authoredComponentType
|
|
54013
54285
|
});
|
|
54014
54286
|
let attributes = expandResult.attributes;
|
|
54015
54287
|
diagnostics2.push(...expandResult.diagnostics);
|
|
@@ -54171,7 +54443,8 @@ function expandAllUnflattenedAttributes({
|
|
|
54171
54443
|
componentClass,
|
|
54172
54444
|
componentInfoObjects: componentInfoObjects2,
|
|
54173
54445
|
nComponents,
|
|
54174
|
-
stateIdInfo
|
|
54446
|
+
stateIdInfo,
|
|
54447
|
+
authoredComponentType
|
|
54175
54448
|
}) {
|
|
54176
54449
|
let classAttributes = componentClass.createAttributesObject();
|
|
54177
54450
|
const diagnostics2 = [];
|
|
@@ -54217,7 +54490,11 @@ function expandAllUnflattenedAttributes({
|
|
|
54217
54490
|
code: "doenet-e0004",
|
|
54218
54491
|
args: {
|
|
54219
54492
|
attribute: attr,
|
|
54220
|
-
|
|
54493
|
+
// What the author wrote, not what the component was
|
|
54494
|
+
// retyped to. Naming `<integer>` for a `<number>` written
|
|
54495
|
+
// between index brackets points at markup that is nowhere
|
|
54496
|
+
// in their document (#1919).
|
|
54497
|
+
componentType: authoredComponentType ?? componentClass.componentType
|
|
54221
54498
|
}
|
|
54222
54499
|
});
|
|
54223
54500
|
}
|
|
@@ -64420,6 +64697,9 @@ const _ReplacementDependency = class _ReplacementDependency2 extends Dependency
|
|
|
64420
64697
|
};
|
|
64421
64698
|
_ReplacementDependency.dependencyType = "replacement";
|
|
64422
64699
|
let ReplacementDependency = _ReplacementDependency;
|
|
64700
|
+
function dropPathIndices(path) {
|
|
64701
|
+
return path.map((pathPart) => ({ ...pathPart, index: [] }));
|
|
64702
|
+
}
|
|
64423
64703
|
const _RefResolutionIndexDependencies = class _RefResolutionIndexDependencies2 extends Dependency {
|
|
64424
64704
|
setUpParameters() {
|
|
64425
64705
|
if (this.definition.compositeIdx != void 0) {
|
|
@@ -64472,7 +64752,15 @@ const _RefResolutionIndexDependencies = class _RefResolutionIndexDependencies2 e
|
|
|
64472
64752
|
// If successfully found all integer components return
|
|
64473
64753
|
// - success: true,
|
|
64474
64754
|
// - componentList: a list of the component indices of the "integer" components found in the unresolved path
|
|
64475
|
-
//
|
|
64755
|
+
//
|
|
64756
|
+
// An index that did not come out as a single integer component is simply left
|
|
64757
|
+
// out of `componentList`. It used to throw, which blanked the document
|
|
64758
|
+
// (#1917): the index of a component that had already been turned into an
|
|
64759
|
+
// `_error` is not an integer, so an ordinary authoring slip -- a mistyped
|
|
64760
|
+
// attribute on an `<indexOf>` -- took down the page and the diagnostic about
|
|
64761
|
+
// that slip with it. `resolveComponentsInPathIndices` sees the same component
|
|
64762
|
+
// and is the single place that decides the reference is dead, so there is
|
|
64763
|
+
// nothing to report from here.
|
|
64476
64764
|
async gatherComponentsInPath(originalPath) {
|
|
64477
64765
|
const componentList = [];
|
|
64478
64766
|
let foundUnexpanded = false;
|
|
@@ -64500,17 +64788,13 @@ const _RefResolutionIndexDependencies = class _RefResolutionIndexDependencies2 e
|
|
|
64500
64788
|
indexComponent.componentIdx
|
|
64501
64789
|
);
|
|
64502
64790
|
if (indexComponent.replacements.length !== 1) {
|
|
64503
|
-
|
|
64504
|
-
"Something went wrong as path index is not an integer"
|
|
64505
|
-
);
|
|
64791
|
+
continue;
|
|
64506
64792
|
}
|
|
64507
64793
|
indexComponent = indexComponent.replacements[0];
|
|
64508
64794
|
}
|
|
64509
64795
|
}
|
|
64510
64796
|
if (!foundUnexpanded && indexComponent.componentType !== "integer") {
|
|
64511
|
-
|
|
64512
|
-
"Something went wrong as path index is not an integer"
|
|
64513
|
-
);
|
|
64797
|
+
continue;
|
|
64514
64798
|
}
|
|
64515
64799
|
componentList.push(indexComponent.componentIdx);
|
|
64516
64800
|
}
|
|
@@ -64654,6 +64938,35 @@ const _RefResolutionDependency = class _RefResolutionDependency2 extends Depende
|
|
|
64654
64938
|
composite.refResolution.originalPath,
|
|
64655
64939
|
force
|
|
64656
64940
|
);
|
|
64941
|
+
if (resolveComponentResult.indexIsNotANumber) {
|
|
64942
|
+
this.dependencyHandler.core.addDiagnostic(
|
|
64943
|
+
codedDiagnostic({
|
|
64944
|
+
type: "warning",
|
|
64945
|
+
code: "doenet-w0163",
|
|
64946
|
+
args: {
|
|
64947
|
+
reference: `${doenetMLDollarsForReference(
|
|
64948
|
+
composite.refResolution.originalPath,
|
|
64949
|
+
this.dependencyHandler.core.allDoenetMLs
|
|
64950
|
+
)}${doenetMLStringForReference(
|
|
64951
|
+
composite.refResolution.originalPath,
|
|
64952
|
+
this.dependencyHandler.core.allDoenetMLs
|
|
64953
|
+
)}`
|
|
64954
|
+
},
|
|
64955
|
+
position: composite.position,
|
|
64956
|
+
sourceDoc: composite.sourceDoc
|
|
64957
|
+
})
|
|
64958
|
+
);
|
|
64959
|
+
this.extendIdx = -1;
|
|
64960
|
+
this.originalPath = dropPathIndices(
|
|
64961
|
+
composite.refResolution.originalPath
|
|
64962
|
+
);
|
|
64963
|
+
this.unresolvedPath = this.originalPath;
|
|
64964
|
+
return {
|
|
64965
|
+
success: true,
|
|
64966
|
+
downstreamComponentIndices: [],
|
|
64967
|
+
downstreamComponentTypes: []
|
|
64968
|
+
};
|
|
64969
|
+
}
|
|
64657
64970
|
if (!resolveComponentResult.success) {
|
|
64658
64971
|
return {
|
|
64659
64972
|
success: false,
|
|
@@ -64698,6 +65011,10 @@ const _RefResolutionDependency = class _RefResolutionDependency2 extends Depende
|
|
|
64698
65011
|
composite.refResolution.originalPath,
|
|
64699
65012
|
this.dependencyHandler.core.allDoenetMLs
|
|
64700
65013
|
);
|
|
65014
|
+
const getDollarsForReference = () => doenetMLDollarsForReference(
|
|
65015
|
+
composite.refResolution.originalPath,
|
|
65016
|
+
this.dependencyHandler.core.allDoenetMLs
|
|
65017
|
+
);
|
|
64701
65018
|
const skip_parent_search = resolveComponentResult.path[0].name === "";
|
|
64702
65019
|
let refResolution;
|
|
64703
65020
|
let selfReferentialResolution;
|
|
@@ -64733,7 +65050,9 @@ const _RefResolutionDependency = class _RefResolutionDependency2 extends Depende
|
|
|
64733
65050
|
// code has to sit next to `code:` as a literal, or
|
|
64734
65051
|
// `lint:i18n` reads it as a code nothing raises.
|
|
64735
65052
|
...firstResolutionError === "NonUniqueReferent" ? { code: "doenet-w0105" } : { code: "doenet-w0104" },
|
|
64736
|
-
args: {
|
|
65053
|
+
args: {
|
|
65054
|
+
reference: `${getDollarsForReference()}${referenceText}`
|
|
65055
|
+
},
|
|
64737
65056
|
position: composite.position,
|
|
64738
65057
|
sourceDoc: composite.sourceDoc
|
|
64739
65058
|
})
|
|
@@ -64798,7 +65117,9 @@ const _RefResolutionDependency = class _RefResolutionDependency2 extends Depende
|
|
|
64798
65117
|
codedDiagnostic({
|
|
64799
65118
|
type: "warning",
|
|
64800
65119
|
code: "doenet-w0104",
|
|
64801
|
-
args: {
|
|
65120
|
+
args: {
|
|
65121
|
+
reference: `${getDollarsForReference()}${referenceText}`
|
|
65122
|
+
},
|
|
64802
65123
|
position: composite.position,
|
|
64803
65124
|
sourceDoc: composite.sourceDoc
|
|
64804
65125
|
})
|
|
@@ -64855,6 +65176,12 @@ const _RefResolutionDependency = class _RefResolutionDependency2 extends Depende
|
|
|
64855
65176
|
* Resolve its `value` state variable, which should be an integer,
|
|
64856
65177
|
* and use its string value instead of the component.
|
|
64857
65178
|
*
|
|
65179
|
+
* A component that is not an integer -- or a composite that did not produce
|
|
65180
|
+
* exactly one replacement -- means the index cannot be worked out at all.
|
|
65181
|
+
* That returns `indexIsNotANumber`, and the caller reports it and leaves the
|
|
65182
|
+
* reference resolving to nothing. It used to throw, and since nothing between
|
|
65183
|
+
* here and the worker catches, the whole document went blank (#1917).
|
|
65184
|
+
*
|
|
64858
65185
|
* Note: we use strings rather than numbers for the literal indices
|
|
64859
65186
|
* so that the unresolved path follows the `FlatPathPart` assumed by the resolver.
|
|
64860
65187
|
*/
|
|
@@ -64889,16 +65216,12 @@ const _RefResolutionDependency = class _RefResolutionDependency2 extends Depende
|
|
|
64889
65216
|
indexComponent.componentIdx
|
|
64890
65217
|
);
|
|
64891
65218
|
if (indexComponent.replacements.length !== 1) {
|
|
64892
|
-
|
|
64893
|
-
"Something went wrong as path index is not an integer"
|
|
64894
|
-
);
|
|
65219
|
+
return { success: true, indexIsNotANumber: true };
|
|
64895
65220
|
}
|
|
64896
65221
|
indexComponent = indexComponent.replacements[0];
|
|
64897
65222
|
}
|
|
64898
65223
|
if (indexComponent.componentType !== "integer") {
|
|
64899
|
-
|
|
64900
|
-
"Something went wrong as path index is not an integer"
|
|
64901
|
-
);
|
|
65224
|
+
return { success: true, indexIsNotANumber: true };
|
|
64902
65225
|
}
|
|
64903
65226
|
index2.push({
|
|
64904
65227
|
value: [
|
|
@@ -210897,6 +211220,66 @@ class Spreadsheet extends BlockComponent {
|
|
|
210897
211220
|
};
|
|
210898
211221
|
}
|
|
210899
211222
|
};
|
|
211223
|
+
stateVariableDefinitions.cellsFixed = {
|
|
211224
|
+
additionalStateVariablesDefined: [
|
|
211225
|
+
{
|
|
211226
|
+
variableName: "cellsInHeader",
|
|
211227
|
+
forRenderer: true
|
|
211228
|
+
}
|
|
211229
|
+
],
|
|
211230
|
+
forRenderer: true,
|
|
211231
|
+
returnDependencies: () => ({
|
|
211232
|
+
numRows: {
|
|
211233
|
+
dependencyType: "stateVariable",
|
|
211234
|
+
variableName: "numRows"
|
|
211235
|
+
},
|
|
211236
|
+
numColumns: {
|
|
211237
|
+
dependencyType: "stateVariable",
|
|
211238
|
+
variableName: "numColumns"
|
|
211239
|
+
},
|
|
211240
|
+
cellIdxToRowCol: {
|
|
211241
|
+
dependencyType: "stateVariable",
|
|
211242
|
+
variableName: "cellIdxToRowCol"
|
|
211243
|
+
},
|
|
211244
|
+
cellDescendants: {
|
|
211245
|
+
dependencyType: "descendant",
|
|
211246
|
+
componentTypes: ["cell"],
|
|
211247
|
+
variableNames: ["fixed", "inHeader"],
|
|
211248
|
+
// A `<cell>` accepts any content, including another
|
|
211249
|
+
// spreadsheet. Those cells belong to that spreadsheet's
|
|
211250
|
+
// map, not to this one.
|
|
211251
|
+
recurseToMatchedChildren: false
|
|
211252
|
+
}
|
|
211253
|
+
}),
|
|
211254
|
+
definition({ dependencyValues }) {
|
|
211255
|
+
const { numRows, numColumns, cellIdxToRowCol } = dependencyValues;
|
|
211256
|
+
const cellsFixed = [];
|
|
211257
|
+
const cellsInHeader = [];
|
|
211258
|
+
for (let rowInd = 0; rowInd < numRows; rowInd++) {
|
|
211259
|
+
const fixedRow = [];
|
|
211260
|
+
const inHeaderRow = [];
|
|
211261
|
+
for (let colInd = 0; colInd < numColumns; colInd++) {
|
|
211262
|
+
fixedRow.push(false);
|
|
211263
|
+
inHeaderRow.push(false);
|
|
211264
|
+
}
|
|
211265
|
+
cellsFixed.push(fixedRow);
|
|
211266
|
+
cellsInHeader.push(inHeaderRow);
|
|
211267
|
+
}
|
|
211268
|
+
for (const cell of dependencyValues.cellDescendants) {
|
|
211269
|
+
const rowCol = cellIdxToRowCol[cell.componentIdx];
|
|
211270
|
+
if (!rowCol) {
|
|
211271
|
+
continue;
|
|
211272
|
+
}
|
|
211273
|
+
const [rowInd, colInd] = rowCol;
|
|
211274
|
+
if (!Number.isInteger(rowInd) || !Number.isInteger(colInd) || rowInd < 0 || colInd < 0 || rowInd >= numRows || colInd >= numColumns) {
|
|
211275
|
+
continue;
|
|
211276
|
+
}
|
|
211277
|
+
cellsFixed[rowInd][colInd] = cell.stateValues.fixed === true;
|
|
211278
|
+
cellsInHeader[rowInd][colInd] = cell.stateValues.inHeader === true;
|
|
211279
|
+
}
|
|
211280
|
+
return { setValue: { cellsFixed, cellsInHeader } };
|
|
211281
|
+
}
|
|
211282
|
+
};
|
|
210900
211283
|
stateVariableDefinitions.evaluatedCells = {
|
|
210901
211284
|
isArray: true,
|
|
210902
211285
|
public: true,
|
|
@@ -248114,4 +248497,4 @@ export {
|
|
|
248114
248497
|
getDefaultExportFromCjs$1 as g,
|
|
248115
248498
|
updateSyntaxFromV06toV07 as u
|
|
248116
248499
|
};
|
|
248117
|
-
//# sourceMappingURL=index-
|
|
248500
|
+
//# sourceMappingURL=index-6zFPvLAn.js.map
|