@yungu-fed/question-editor 0.3.3 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -155,8 +155,8 @@ function C(e) {
155
155
  return e;
156
156
  }
157
157
  var ee = ["richText", "inlineFill", "wordBuilder", "fill", "choice", "judgement", "classification", "lineConnect", "matching", "ordering", "textMarker", "textResponse"],
158
- te = ["solvingProcess", "solvingStrategy", "keyInformation", "commonMistake", "solvingHint", "scoringRule", "sampleAnswer", "extensionExplanation"],
159
- w = {
158
+ w = ["solvingProcess", "solvingStrategy", "keyInformation", "commonMistake", "solvingHint", "scoringRule", "sampleAnswer", "extensionExplanation"],
159
+ T = {
160
160
  commonMistake: "\u6613\u9519\u63D0\u9192",
161
161
  extensionExplanation: "\u62D3\u5C55\u8BB2\u89E3",
162
162
  keyInformation: "\u5173\u952E\u4FE1\u606F",
@@ -166,7 +166,7 @@ var ee = ["richText", "inlineFill", "wordBuilder", "fill", "choice", "judgement"
166
166
  solvingProcess: "\u89E3\u9898\u8FC7\u7A0B",
167
167
  solvingStrategy: "\u89E3\u9898\u7B56\u7565"
168
168
  },
169
- ne = {
169
+ te = {
170
170
  commonMistake: "Common mistake reminder",
171
171
  extensionExplanation: "Extension explanation",
172
172
  keyInformation: "Key information",
@@ -176,7 +176,7 @@ var ee = ["richText", "inlineFill", "wordBuilder", "fill", "choice", "judgement"
176
176
  solvingProcess: "Solving process",
177
177
  solvingStrategy: "Solving strategy"
178
178
  },
179
- re = {
179
+ ne = {
180
180
  choice: "\u9009\u62E9",
181
181
  classification: "\u5206\u7C7B",
182
182
  fill: "\u586B\u7A7A",
@@ -190,7 +190,7 @@ var ee = ["richText", "inlineFill", "wordBuilder", "fill", "choice", "judgement"
190
190
  textResponse: "\u6587\u672C\u4F5C\u7B54",
191
191
  wordBuilder: "\u7EC4\u8BCD\u62FC\u5199"
192
192
  },
193
- ie = {
193
+ re = {
194
194
  choice: "Choice",
195
195
  classification: "Classification",
196
196
  fill: "Blank group",
@@ -204,7 +204,7 @@ var ee = ["richText", "inlineFill", "wordBuilder", "fill", "choice", "judgement"
204
204
  textResponse: "Text response",
205
205
  wordBuilder: "Word builder"
206
206
  };
207
- function ae() {
207
+ function ie() {
208
208
  return {
209
209
  description: "",
210
210
  elements: [],
@@ -220,21 +220,21 @@ function ae() {
220
220
  version: ""
221
221
  };
222
222
  }
223
- function oe(e) {
223
+ function ae(e) {
224
224
  var t = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
225
225
  return {
226
- clientId: be(),
227
- enName: ve(e),
228
- name: _e(e),
226
+ clientId: ye(),
227
+ enName: _e(e),
228
+ name: ge(e),
229
229
  type: e
230
230
  };
231
231
  }
232
- function se(e) {
232
+ function oe(e) {
233
233
  var t = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
234
- var n = be();
235
- return e === "classification" || e === "fill" || e === "richText" || e === "textMarker" || e === "textResponse" || e === "ordering" ? xe(e, n) : ce(e, n);
234
+ var n = ye();
235
+ return e === "classification" || e === "fill" || e === "richText" || e === "textMarker" || e === "textResponse" || e === "ordering" ? be(e, n) : se(e, n);
236
236
  }
237
- function ce(e, t) {
237
+ function se(e, t) {
238
238
  switch (e) {
239
239
  case "inlineFill":
240
240
  return {
@@ -243,8 +243,8 @@ function ce(e, t) {
243
243
  allowCandidateReuse: !1,
244
244
  candidateMode: "none"
245
245
  },
246
- enName: E(e),
247
- name: T(e),
246
+ enName: D(e),
247
+ name: E(e),
248
248
  type: e
249
249
  };
250
250
  case "wordBuilder":
@@ -253,8 +253,8 @@ function ce(e, t) {
253
253
  config: {
254
254
  builderMode: "spelling"
255
255
  },
256
- enName: E(e),
257
- name: T(e),
256
+ enName: D(e),
257
+ name: E(e),
258
258
  type: e
259
259
  };
260
260
  case "judgement":
@@ -263,8 +263,8 @@ function ce(e, t) {
263
263
  config: {
264
264
  judgeAnswerMode: "correctWrong"
265
265
  },
266
- enName: E(e),
267
- name: T(e),
266
+ enName: D(e),
267
+ name: E(e),
268
268
  type: e
269
269
  };
270
270
  case "choice":
@@ -275,17 +275,17 @@ function ce(e, t) {
275
275
  renderer: "standard",
276
276
  selectionType: "single"
277
277
  },
278
- enName: E(e),
279
- name: T(e),
278
+ enName: D(e),
279
+ name: E(e),
280
280
  type: e
281
281
  };
282
282
  case "lineConnect":
283
- return le(e, t);
283
+ return ce(e, t);
284
284
  case "matching":
285
- return le(e, t);
285
+ return ce(e, t);
286
286
  }
287
287
  }
288
- function le(e, t) {
288
+ function ce(e, t) {
289
289
  return {
290
290
  clientId: t,
291
291
  config: {
@@ -295,74 +295,74 @@ function le(e, t) {
295
295
  labelStyle: "upperAlpha"
296
296
  }]
297
297
  },
298
- enName: E(e),
299
- name: T(e),
298
+ enName: D(e),
299
+ name: E(e),
300
300
  type: e
301
301
  };
302
302
  }
303
- function ue(e, t) {
303
+ function le(e, t) {
304
304
  return C(C({}, e), {}, {
305
305
  extras: e.extras.filter(function (e) {
306
306
  return e.clientId !== t;
307
307
  })
308
308
  });
309
309
  }
310
- function de(e, t) {
310
+ function ue(e, t) {
311
311
  return C(C({}, e), {}, {
312
312
  elements: e.elements.filter(function (e) {
313
313
  return e.clientId !== t;
314
314
  })
315
315
  });
316
316
  }
317
- function fe(e, t, n) {
317
+ function de(e, t, n) {
318
318
  var r = e.elements.findIndex(function (e) {
319
319
  return e.clientId === t;
320
320
  }),
321
321
  i = r + n;
322
322
  if (r < 0 || i < 0 || i >= e.elements.length) return e;
323
- var a = Se(e.elements, r),
324
- o = Se(e.elements, i);
323
+ var a = xe(e.elements, r),
324
+ o = xe(e.elements, i);
325
325
  return !a || !o ? e : C(C({}, e), {}, {
326
326
  elements: e.elements.map(function (e, t) {
327
327
  return t === r ? o : t === i ? a : e;
328
328
  })
329
329
  });
330
330
  }
331
- function pe(e, t, n) {
331
+ function fe(e, t, n) {
332
332
  return C(C({}, e), {}, {
333
333
  extras: e.extras.map(function (e) {
334
334
  return e.clientId === t ? n : e;
335
335
  })
336
336
  });
337
337
  }
338
- function me(e, t, n) {
338
+ function pe(e, t, n) {
339
339
  return C(C({}, e), {}, {
340
340
  elements: e.elements.map(function (e) {
341
341
  return e.clientId === t ? n : e;
342
342
  })
343
343
  });
344
344
  }
345
- function he(e, t) {
345
+ function me(e, t) {
346
346
  return C(C({}, e), {}, {
347
347
  globalConfig: C(C({}, e.globalConfig), t)
348
348
  });
349
349
  }
350
- function ge(e, t) {
350
+ function he(e, t) {
351
351
  return C(C({}, e), t);
352
352
  }
353
- function T(e) {
353
+ function E(e) {
354
+ return ne[e];
355
+ }
356
+ function D(e) {
354
357
  return re[e];
355
358
  }
356
- function E(e) {
357
- return ie[e];
359
+ function ge(e) {
360
+ return ve(T, e);
358
361
  }
359
362
  function _e(e) {
360
- return ye(w, e);
361
- }
362
- function ve(e) {
363
- return ye(ne, e);
363
+ return ve(te, e);
364
364
  }
365
- function ye(e, t) {
365
+ function ve(e, t) {
366
366
  var n, r;
367
367
  return (n = (r = Object.entries(e).find(function (_ref) {
368
368
  var _ref2 = _slicedToArray(_ref, 1),
@@ -370,24 +370,24 @@ function ye(e, t) {
370
370
  return e === t;
371
371
  })) == null ? void 0 : r[1]) == null ? "" : n;
372
372
  }
373
- function be() {
373
+ function ye() {
374
374
  return h();
375
375
  }
376
- function xe(e, t) {
376
+ function be(e, t) {
377
377
  return {
378
378
  clientId: t,
379
379
  config: {},
380
- enName: E(e),
381
- name: T(e),
380
+ enName: D(e),
381
+ name: E(e),
382
382
  type: e
383
383
  };
384
384
  }
385
- function Se(e, t) {
385
+ function xe(e, t) {
386
386
  return e.find(function (e, n) {
387
387
  return n === t;
388
388
  });
389
389
  }
390
- var Ce = {
390
+ var Se = {
391
391
  nodes: [{
392
392
  codecs: {
393
393
  html: {
@@ -405,15 +405,15 @@ var Ce = {
405
405
  },
406
406
  serialize: function serialize(_ref4) {
407
407
  var e = _ref4.node;
408
- return e.type === "blank" ? "<span data-rte-node=\"blank\" data-blank-id=\"".concat(Te(e.blankId), "\" data-label=\"").concat(Te(e.label), "\"></span>") : null;
408
+ return e.type === "blank" ? "<span data-rte-node=\"blank\" data-blank-id=\"".concat(we(e.blankId), "\" data-label=\"").concat(we(e.label), "\"></span>") : null;
409
409
  }
410
410
  },
411
411
  json: {
412
412
  deserialize: function deserialize(_ref5) {
413
413
  var e = _ref5.input;
414
- return we(e) ? {
415
- blankId: Te(e.blankId),
416
- label: Te(e.label),
414
+ return Ce(e) ? {
415
+ blankId: we(e.blankId),
416
+ label: we(e.label),
417
417
  children: [{
418
418
  text: ""
419
419
  }],
@@ -423,8 +423,8 @@ var Ce = {
423
423
  serialize: function serialize(_ref6) {
424
424
  var e = _ref6.node;
425
425
  return e.type === "blank" ? {
426
- blankId: Te(e.blankId),
427
- label: Te(e.label),
426
+ blankId: we(e.blankId),
427
+ label: we(e.label),
428
428
  type: "blank"
429
429
  } : null;
430
430
  }
@@ -438,35 +438,35 @@ var Ce = {
438
438
  type: "blank"
439
439
  }]
440
440
  };
441
- function we(e) {
441
+ function Ce(e) {
442
442
  return !!(e && _typeof(e) == "object" && "type" in e && e.type === "blank");
443
443
  }
444
- function Te(e) {
444
+ function we(e) {
445
445
  return _typeof(e) == "string" ? e : "";
446
446
  }
447
- function Ee() {
447
+ function Te() {
448
448
  var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "";
449
- return De({
450
- json: ke(e)
449
+ return Ee({
450
+ json: Oe(e)
451
451
  });
452
452
  }
453
- function De(e) {
454
- var t = Oe(e);
453
+ function Ee(e) {
454
+ var t = De(e);
455
455
  return {
456
- html: Me(t),
456
+ html: je(t),
457
457
  json: t,
458
- text: Ae(t)
458
+ text: ke(t)
459
459
  };
460
460
  }
461
- function Oe(t) {
461
+ function De(t) {
462
462
  var n;
463
463
  return t != null && t.json ? (0, e.deserializeRichTextEditorJson)(t.json, {
464
- plugins: [Ce]
464
+ plugins: [Se]
465
465
  }) : t != null && t.html ? (0, e.deserializeRichTextEditorHtml)(t.html, {
466
- plugins: [Ce]
467
- }) : ke((n = t == null ? void 0 : t.text) == null ? "" : n);
466
+ plugins: [Se]
467
+ }) : Oe((n = t == null ? void 0 : t.text) == null ? "" : n);
468
468
  }
469
- function ke(e) {
469
+ function Oe(e) {
470
470
  return [{
471
471
  children: [{
472
472
  text: e
@@ -474,22 +474,22 @@ function ke(e) {
474
474
  type: "paragraph"
475
475
  }];
476
476
  }
477
- function Ae(e) {
478
- return e.map(je).join("\n");
477
+ function ke(e) {
478
+ return e.map(Ae).join("\n");
479
479
  }
480
- function je(e) {
481
- return "text" in e && _typeof(e.text) == "string" ? e.text : Ne(e) ? e.type === "blank" ? "____" : e.children.map(je).join("") : "";
480
+ function Ae(e) {
481
+ return "text" in e && _typeof(e.text) == "string" ? e.text : Me(e) ? e.type === "blank" ? "____" : e.children.map(Ae).join("") : "";
482
482
  }
483
- function Me(t) {
483
+ function je(t) {
484
484
  return (0, e.serializeRichTextEditorHtml)(t, {
485
- plugins: [Ce]
485
+ plugins: [Se]
486
486
  });
487
487
  }
488
- function Ne(e) {
488
+ function Me(e) {
489
489
  return !!(e && _typeof(e) == "object" && "children" in e && Array.isArray(e.children));
490
490
  }
491
- var Pe = ["A", "B", "C", "D"];
492
- function Fe(e, t) {
491
+ var Ne = ["A", "B", "C", "D"];
492
+ function Pe(e, t) {
493
493
  return e.columns.length <= 1 || t < 0 ? e : C(C({}, e), {}, {
494
494
  columns: e.columns.filter(function (e, n) {
495
495
  return n !== t;
@@ -503,67 +503,67 @@ function Fe(e, t) {
503
503
  })
504
504
  });
505
505
  }
506
- function Ie(e, t, n) {
506
+ function Fe(e, t, n) {
507
507
  return n === "single" ? e.includes(t) ? [] : [t] : e.includes(t) ? e.filter(function (e) {
508
508
  return e !== t;
509
509
  }) : [].concat(_toConsumableArray(e), [t]);
510
510
  }
511
- function Le(e) {
512
- return e === "table" ? [We(1), We(2)] : [{
513
- content: Ee("\u9009\u9879"),
511
+ function Ie(e) {
512
+ return e === "table" ? [Ue(1), Ue(2)] : [{
513
+ content: Te("\u9009\u9879"),
514
514
  id: g()
515
515
  }];
516
516
  }
517
- function Re(e, t) {
518
- var n = Ge(e.map(function (e) {
517
+ function Le(e, t) {
518
+ var n = We(e.map(function (e) {
519
519
  return e.id;
520
520
  })),
521
521
  r = e.map(function (e, t) {
522
522
  var r;
523
523
  return {
524
- content: De(e.content),
524
+ content: Ee(e.content),
525
525
  id: (r = n[t]) == null ? g() : r
526
526
  };
527
527
  });
528
- return r.length > 0 ? r : Le(t);
528
+ return r.length > 0 ? r : Ie(t);
529
529
  }
530
- function ze(e) {
531
- return Pe.map(function (t) {
530
+ function Re(e) {
531
+ return Ne.map(function (t) {
532
532
  return {
533
533
  cells: e.map(function (e, n) {
534
- return Ee(n === 0 ? "\u9009\u9879 ".concat(t) : "");
534
+ return Te(n === 0 ? "\u9009\u9879 ".concat(t) : "");
535
535
  }),
536
536
  id: g()
537
537
  };
538
538
  });
539
539
  }
540
- function Be(e, t) {
540
+ function ze(e, t) {
541
541
  var n = e.length;
542
542
  return {
543
543
  cells: t.map(function (e, t) {
544
- return Ee(t === 0 ? "\u9009\u9879 ".concat(n + 1) : "");
544
+ return Te(t === 0 ? "\u9009\u9879 ".concat(n + 1) : "");
545
545
  }),
546
546
  id: g()
547
547
  };
548
548
  }
549
- function Ve(e, t) {
550
- var n = Ge(e.map(function (e) {
549
+ function Be(e, t) {
550
+ var n = We(e.map(function (e) {
551
551
  return e.id;
552
552
  })),
553
553
  r = e.map(function (e, r) {
554
554
  var i;
555
555
  return {
556
556
  cells: t.map(function (t, n) {
557
- return De(e.cells.find(function (e, t) {
557
+ return Ee(e.cells.find(function (e, t) {
558
558
  return t === n;
559
559
  }));
560
560
  }),
561
561
  id: (i = n[r]) == null ? g() : i
562
562
  };
563
563
  });
564
- return r.length > 0 ? r : ze(t);
564
+ return r.length > 0 ? r : Re(t);
565
565
  }
566
- function He(e, t, n) {
566
+ function Ve(e, t, n) {
567
567
  var r;
568
568
  var i = new Set(t.map(function (e) {
569
569
  return e.id;
@@ -575,22 +575,22 @@ function He(e, t, n) {
575
575
  optionIds: n === "single" ? a.slice(0, 1) : a
576
576
  };
577
577
  }
578
- function Ue(e) {
579
- return We(e.length + 1);
578
+ function He(e) {
579
+ return Ue(e.length + 1);
580
580
  }
581
- function We(e) {
581
+ function Ue(e) {
582
582
  return {
583
- content: Ee("\u5217 ".concat(e)),
583
+ content: Te("\u5217 ".concat(e)),
584
584
  id: g()
585
585
  };
586
586
  }
587
- function Ge(e) {
587
+ function We(e) {
588
588
  var t = new Set();
589
589
  return e.map(function (e) {
590
590
  return _(String(e || ""), t);
591
591
  });
592
592
  }
593
- function Ke(e, t, n) {
593
+ function Ge(e, t, n) {
594
594
  var r = new Set(t.map(function (e) {
595
595
  return e.id;
596
596
  })),
@@ -604,22 +604,22 @@ function Ke(e, t, n) {
604
604
  return i.has(t) && r.has(n) ? C(C({}, e), {}, _defineProperty({}, t, n)) : e;
605
605
  }, {});
606
606
  }
607
- function qe(e, t, n) {
607
+ function Ke(e, t, n) {
608
608
  if (!n) {
609
609
  var _n2 = C({}, e);
610
610
  return delete _n2[t], _n2;
611
611
  }
612
612
  return C(C({}, e), {}, _defineProperty({}, t, n));
613
613
  }
614
- var Je = ["number", "upperAlpha", "lowerAlpha", "lowerRoman", "chineseNumber", "none"],
615
- Ye = {
614
+ var qe = ["number", "upperAlpha", "lowerAlpha", "lowerRoman", "chineseNumber", "none"],
615
+ Je = {
616
616
  max: 5,
617
617
  min: 2
618
618
  };
619
- function Xe(e, t) {
619
+ function Ye(e, t) {
620
620
  return t > e;
621
621
  }
622
- function Ze(e, t) {
622
+ function Xe(e, t) {
623
623
  return e.columnIndex === t.columnIndex ? null : e.columnIndex < t.columnIndex ? {
624
624
  fromItemId: e.itemId,
625
625
  toItemId: t.itemId
@@ -628,20 +628,20 @@ function Ze(e, t) {
628
628
  toItemId: e.itemId
629
629
  };
630
630
  }
631
- var Qe = ["number", "upperAlpha"],
632
- $e = ["\u4E00", "\u4E8C", "\u4E09", "\u56DB", "\u4E94"],
633
- et = ["i", "ii", "iii", "iv", "v"],
634
- tt = {
631
+ var Ze = ["number", "upperAlpha"],
632
+ Qe = ["\u4E00", "\u4E8C", "\u4E09", "\u56DB", "\u4E94"],
633
+ $e = ["i", "ii", "iii", "iv", "v"],
634
+ et = {
635
635
  chineseNumber: function chineseNumber(e) {
636
636
  var t;
637
- return (t = $e[e]) == null ? String(e + 1) : t;
637
+ return (t = Qe[e]) == null ? String(e + 1) : t;
638
638
  },
639
639
  lowerAlpha: function lowerAlpha(e) {
640
640
  return String.fromCharCode(97 + e);
641
641
  },
642
642
  lowerRoman: function lowerRoman(e) {
643
643
  var t;
644
- return (t = et[e]) == null ? String(e + 1) : t;
644
+ return (t = $e[e]) == null ? String(e + 1) : t;
645
645
  },
646
646
  none: function none() {
647
647
  return "";
@@ -653,7 +653,7 @@ var Qe = ["number", "upperAlpha"],
653
653
  return String.fromCharCode(65 + e);
654
654
  }
655
655
  };
656
- function nt(e, t) {
656
+ function tt(e, t) {
657
657
  return Object.entries(e == null ? {} : e).reduce(function (e, _ref9) {
658
658
  var _ref0 = _slicedToArray(_ref9, 2),
659
659
  n = _ref0[0],
@@ -662,12 +662,12 @@ function nt(e, t) {
662
662
  if (i === void 0) return e;
663
663
  var a = r.filter(function (e, n, r) {
664
664
  var a = t.get(e);
665
- return a !== void 0 && Xe(i, a) && r.indexOf(e) === n;
665
+ return a !== void 0 && Ye(i, a) && r.indexOf(e) === n;
666
666
  });
667
667
  return a.length > 0 ? C(C({}, e), {}, _defineProperty({}, n, a)) : e;
668
668
  }, {});
669
669
  }
670
- function rt(e, t, n) {
670
+ function nt(e, t, n) {
671
671
  var r;
672
672
  var i = (r = e[t]) == null ? [] : r,
673
673
  a = i.includes(n) ? i.filter(function (e) {
@@ -681,34 +681,34 @@ function rt(e, t, n) {
681
681
  }, {});
682
682
  return a.length > 0 ? C(C({}, o), {}, _defineProperty({}, t, a)) : o;
683
683
  }
684
- function it(e) {
684
+ function rt(e) {
685
685
  var t;
686
- var n = (t = e == null ? void 0 : e.slice(0, Ye.max).map(function (e, t) {
686
+ var n = (t = e == null ? void 0 : e.slice(0, Je.max).map(function (e, t) {
687
687
  var n;
688
688
  return {
689
- labelStyle: ot(e.labelStyle, (n = Qe[t]) == null ? "number" : n)
689
+ labelStyle: at(e.labelStyle, (n = Ze[t]) == null ? "number" : n)
690
690
  };
691
691
  })) == null ? [] : t;
692
- return n.length >= Ye.min ? n : [].concat(_toConsumableArray(n), _toConsumableArray(Qe.slice(n.length, Ye.min).map(function (e) {
692
+ return n.length >= Je.min ? n : [].concat(_toConsumableArray(n), _toConsumableArray(Ze.slice(n.length, Je.min).map(function (e) {
693
693
  return {
694
694
  labelStyle: e
695
695
  };
696
696
  })));
697
697
  }
698
- function at(e, t) {
699
- return tt[e](t);
698
+ function it(e, t) {
699
+ return et[e](t);
700
700
  }
701
- function ot(e, t) {
702
- return Je.includes(e) ? e : t;
701
+ function at(e, t) {
702
+ return qe.includes(e) ? e : t;
703
703
  }
704
- var st = {
704
+ var ot = {
705
705
  max: 2,
706
706
  min: 2
707
707
  };
708
- function ct(e, t) {
708
+ function st(e, t) {
709
709
  return e === 0 && t === 1;
710
710
  }
711
- function lt(e, t) {
711
+ function ct(e, t) {
712
712
  if (e.columnIndex === t.columnIndex) return null;
713
713
  var n = e.columnIndex < t.columnIndex ? {
714
714
  fromItemId: e.itemId,
@@ -717,10 +717,10 @@ function lt(e, t) {
717
717
  fromItemId: t.itemId,
718
718
  toItemId: e.itemId
719
719
  };
720
- return ct(Math.min(e.columnIndex, t.columnIndex), Math.max(e.columnIndex, t.columnIndex)) ? n : null;
720
+ return st(Math.min(e.columnIndex, t.columnIndex), Math.max(e.columnIndex, t.columnIndex)) ? n : null;
721
721
  }
722
- var ut = ["number", "upperAlpha"];
723
- function dt(e, t) {
722
+ var lt = ["number", "upperAlpha"];
723
+ function ut(e, t) {
724
724
  var n = new Set();
725
725
  return Object.entries(e == null ? {} : e).reduce(function (e, _ref11) {
726
726
  var _ref12 = _slicedToArray(_ref11, 2),
@@ -733,7 +733,7 @@ function dt(e, t) {
733
733
  return a ? (n.add(a), C(C({}, e), {}, _defineProperty({}, r, [a]))) : e;
734
734
  }, {});
735
735
  }
736
- function ft(e, t, n) {
736
+ function dt(e, t, n) {
737
737
  var r, i;
738
738
  return (r = (i = e[t]) == null ? void 0 : i.includes(n)) != null && r ? Object.entries(e).reduce(function (e, _ref13) {
739
739
  var _ref14 = _slicedToArray(_ref13, 2),
@@ -751,29 +751,29 @@ function ft(e, t, n) {
751
751
  return a.length > 0 ? C(C({}, e), {}, _defineProperty({}, r, a)) : e;
752
752
  }, {})), {}, _defineProperty({}, t, [n]));
753
753
  }
754
- function pt(e) {
754
+ function ft(e) {
755
755
  var t;
756
- var n = (t = e == null ? void 0 : e.slice(0, st.max).map(function (e, t) {
756
+ var n = (t = e == null ? void 0 : e.slice(0, ot.max).map(function (e, t) {
757
757
  var n;
758
758
  return {
759
- labelStyle: ot(e.labelStyle, (n = ut[t]) == null ? "number" : n)
759
+ labelStyle: at(e.labelStyle, (n = lt[t]) == null ? "number" : n)
760
760
  };
761
761
  })) == null ? [] : t;
762
- return n.length >= st.min ? n : [].concat(_toConsumableArray(n), _toConsumableArray(ut.slice(n.length, st.min).map(function (e) {
762
+ return n.length >= ot.min ? n : [].concat(_toConsumableArray(n), _toConsumableArray(lt.slice(n.length, ot.min).map(function (e) {
763
763
  return {
764
764
  labelStyle: e
765
765
  };
766
766
  })));
767
767
  }
768
- function mt(e, t) {
769
- return at(e, t);
768
+ function pt(e, t) {
769
+ return it(e, t);
770
770
  }
771
- var ht = "mark.textMarker",
772
- gt = "markerId",
773
- _t = {
774
- marks: [vt()]
771
+ var mt = "mark.textMarker",
772
+ ht = "markerId",
773
+ gt = {
774
+ marks: [_t()]
775
775
  };
776
- function vt(e) {
776
+ function _t(e) {
777
777
  return {
778
778
  behavior: {
779
779
  clearOnSelectionDelete: !0
@@ -782,36 +782,36 @@ function vt(e) {
782
782
  html: {
783
783
  deserialize: function deserialize(_ref17) {
784
784
  var e = _ref17.element;
785
- var t = wt(e.dataset.markerId);
786
- return t ? _defineProperty({}, gt, t) : null;
785
+ var t = Ct(e.dataset.markerId);
786
+ return t ? _defineProperty({}, ht, t) : null;
787
787
  },
788
788
  serialize: function serialize(_ref19) {
789
789
  var e = _ref19.leaf,
790
790
  t = _ref19.text;
791
- var n = St(e);
792
- return n ? "<span data-marker-id=\"".concat(Tt(n), "\">").concat(t, "</span>") : null;
791
+ var n = xt(e);
792
+ return n ? "<span data-marker-id=\"".concat(wt(n), "\">").concat(t, "</span>") : null;
793
793
  }
794
794
  }
795
795
  },
796
796
  commands: [{
797
- command: ht,
798
- markKey: gt
797
+ command: mt,
798
+ markKey: ht
799
799
  }],
800
800
  render: e
801
801
  };
802
802
  }
803
- function yt(e) {
803
+ function vt(e) {
804
804
  var t = [];
805
- return Ct(e == null ? [] : e, function (e) {
806
- var n = St(e);
805
+ return St(e == null ? [] : e, function (e) {
806
+ var n = xt(e);
807
807
  n && !t.includes(n) && t.push(n);
808
808
  }), t;
809
809
  }
810
- function bt(e) {
810
+ function yt(e) {
811
811
  var t = [];
812
- return Ct(e == null ? [] : e, function (e) {
813
- var n = St(e),
814
- r = Et(e) && _typeof(e.text) == "string" ? e.text : "";
812
+ return St(e == null ? [] : e, function (e) {
813
+ var n = xt(e),
814
+ r = Tt(e) && _typeof(e.text) == "string" ? e.text : "";
815
815
  if (!n || !r) return;
816
816
  var i = t.slice(t.length - 1)[0];
817
817
  if ((i == null ? void 0 : i.markerId) === n) {
@@ -827,30 +827,30 @@ function bt(e) {
827
827
  });
828
828
  }), t;
829
829
  }
830
- function xt() {
830
+ function bt() {
831
831
  return g();
832
832
  }
833
- function St(e) {
834
- return Et(e) ? wt(e[gt]) : "";
833
+ function xt(e) {
834
+ return Tt(e) ? Ct(e[ht]) : "";
835
835
  }
836
- function Ct(e, t) {
836
+ function St(e, t) {
837
837
  e.forEach(function (e) {
838
- t(e), Et(e) && Array.isArray(e.children) && Ct(e.children, t);
838
+ t(e), Tt(e) && Array.isArray(e.children) && St(e.children, t);
839
839
  });
840
840
  }
841
- function wt(e) {
841
+ function Ct(e) {
842
842
  return _typeof(e) == "string" ? e.trim() : "";
843
843
  }
844
- function Tt(e) {
844
+ function wt(e) {
845
845
  return e.replace(/&/g, "&amp;").replace(/"/g, "&quot;").replace(/</g, "&lt;").replace(/>/g, "&gt;");
846
846
  }
847
- function Et(e) {
847
+ function Tt(e) {
848
848
  return _typeof(e) == "object" && !!e;
849
849
  }
850
- var Dt = {
850
+ var Et = {
851
851
  "blank-underline": "_blank-underline_1wnlx_1"
852
852
  },
853
- Ot = {
853
+ Dt = {
854
854
  nodes: [{
855
855
  codecs: {
856
856
  html: {
@@ -868,15 +868,15 @@ var Dt = {
868
868
  },
869
869
  serialize: function serialize(_ref21) {
870
870
  var e = _ref21.node;
871
- return e.type === "blank" ? "<span data-rte-node=\"blank\" data-blank-id=\"".concat(D(e.blankId), "\" data-label=\"").concat(D(e.label), "\"></span>") : null;
871
+ return e.type === "blank" ? "<span data-rte-node=\"blank\" data-blank-id=\"".concat(jt(e.blankId), "\" data-label=\"").concat(jt(e.label), "\"></span>") : null;
872
872
  }
873
873
  },
874
874
  json: {
875
875
  deserialize: function deserialize(_ref22) {
876
876
  var e = _ref22.input;
877
- return kt(e) ? {
878
- blankId: D(e.blankId),
879
- label: D(e.label),
877
+ return Ot(e) ? {
878
+ blankId: jt(e.blankId),
879
+ label: jt(e.label),
880
880
  children: [{
881
881
  text: ""
882
882
  }],
@@ -886,8 +886,8 @@ var Dt = {
886
886
  serialize: function serialize(_ref23) {
887
887
  var e = _ref23.node;
888
888
  return e.type === "blank" ? {
889
- blankId: D(e.blankId),
890
- label: D(e.label),
889
+ blankId: jt(e.blankId),
890
+ label: jt(e.label),
891
891
  type: "blank"
892
892
  } : null;
893
893
  }
@@ -897,8 +897,8 @@ var Dt = {
897
897
  insert: function insert(_ref24) {
898
898
  var e = _ref24.payload;
899
899
  return {
900
- blankId: At(e),
901
- label: jt(e),
900
+ blankId: kt(e),
901
+ label: At(e),
902
902
  type: "blank"
903
903
  };
904
904
  }
@@ -910,25 +910,25 @@ var Dt = {
910
910
  var e = _ref25.element,
911
911
  n = _ref25.selected;
912
912
  return (0, t.jsx)("span", {
913
- className: Dt["blank-underline"],
913
+ className: Et["blank-underline"],
914
914
  "data-selected": n ? "true" : void 0,
915
- children: D(e.label) || D(e.blankId) || "Blank"
915
+ children: jt(e.label) || jt(e.blankId) || "Blank"
916
916
  });
917
917
  }
918
918
  },
919
919
  type: "blank"
920
920
  }]
921
921
  };
922
- function kt(e) {
922
+ function Ot(e) {
923
923
  return !!(e && _typeof(e) == "object" && "type" in e && e.type === "blank");
924
924
  }
925
+ function kt(e) {
926
+ return e && _typeof(e) == "object" && "blankId" in e ? jt(e.blankId) : "";
927
+ }
925
928
  function At(e) {
926
- return e && _typeof(e) == "object" && "blankId" in e ? D(e.blankId) : "";
929
+ return e && _typeof(e) == "object" && "label" in e ? jt(e.label) : "";
927
930
  }
928
931
  function jt(e) {
929
- return e && _typeof(e) == "object" && "label" in e ? D(e.label) : "";
930
- }
931
- function D(e) {
932
932
  return _typeof(e) == "string" ? e : "";
933
933
  }
934
934
  var Mt = 1,
@@ -1030,7 +1030,7 @@ function O() {
1030
1030
  return Wt(t == null ? gi(e) : t);
1031
1031
  }
1032
1032
  function Wt(t) {
1033
- var n = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [Ot];
1033
+ var n = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [Dt];
1034
1034
  var r = wi(t, n);
1035
1035
  return {
1036
1036
  html: (0, e.serializeRichTextEditorHtml)(r, {
@@ -1044,15 +1044,15 @@ function Gt() {
1044
1044
  var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "";
1045
1045
  var t = arguments.length > 1 ? arguments[1] : undefined;
1046
1046
  var n = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : "";
1047
- return Wt(Kt(e, t, n), [_t]);
1047
+ return Wt(Kt(e, t, n), [gt]);
1048
1048
  }
1049
1049
  function Kt(t, n, r) {
1050
1050
  return n && Ci(n) ? n : r ? (0, e.deserializeRichTextEditorHtml)(r, {
1051
- plugins: [_t]
1051
+ plugins: [gt]
1052
1052
  }) : gi(t);
1053
1053
  }
1054
1054
  function qt(e) {
1055
- return bt(e.content.json).filter(function (t) {
1055
+ return yt(e.content.json).filter(function (t) {
1056
1056
  return e.answers.includes(t.markerId);
1057
1057
  }).map(function (e) {
1058
1058
  return e.text.trim();
@@ -1081,10 +1081,10 @@ function Zt(e, t) {
1081
1081
  return Lt[e](t);
1082
1082
  }
1083
1083
  function Qt(e, t) {
1084
- return at(e, t);
1084
+ return it(e, t);
1085
1085
  }
1086
1086
  function $t(e, t) {
1087
- return mt(e, t);
1087
+ return pt(e, t);
1088
1088
  }
1089
1089
  function en(e) {
1090
1090
  switch (e) {
@@ -1214,7 +1214,7 @@ function hn(e, t, n, r) {
1214
1214
  }
1215
1215
  function gn(e, t, n) {
1216
1216
  var r = Gt(t.text, t.json, t.html),
1217
- i = yt(r.json);
1217
+ i = vt(r.json);
1218
1218
  return C(C({}, e), {}, {
1219
1219
  answers: n ? li(e.answers, i) : [],
1220
1220
  content: r,
@@ -1578,15 +1578,15 @@ function Wn(e, t) {
1578
1578
  return n !== t;
1579
1579
  });
1580
1580
  return C(C({}, e), {}, {
1581
- answers: He(e.answers, n, "multiple"),
1581
+ answers: Ve(e.answers, n, "multiple"),
1582
1582
  options: n
1583
1583
  });
1584
1584
  }
1585
1585
  function Gn(e, t, n) {
1586
- return Ie(e, t, n);
1586
+ return Fe(e, t, n);
1587
1587
  }
1588
1588
  function Kn(e) {
1589
- var t = [].concat(_toConsumableArray(e.columns), [Ue(e.columns)]);
1589
+ var t = [].concat(_toConsumableArray(e.columns), [He(e.columns)]);
1590
1590
  return C(C({}, e), {}, {
1591
1591
  columns: t,
1592
1592
  options: e.options.map(function (e) {
@@ -1597,7 +1597,7 @@ function Kn(e) {
1597
1597
  });
1598
1598
  }
1599
1599
  function qn(e, t) {
1600
- return Fe(e, t);
1600
+ return Pe(e, t);
1601
1601
  }
1602
1602
  function Jn(e) {
1603
1603
  return tr(e);
@@ -1608,7 +1608,7 @@ function Yn(e, t) {
1608
1608
  return n !== t;
1609
1609
  });
1610
1610
  return C(C({}, e), {}, {
1611
- answers: He(e.answers, n, "multiple"),
1611
+ answers: Ve(e.answers, n, "multiple"),
1612
1612
  options: n
1613
1613
  });
1614
1614
  }
@@ -1634,10 +1634,10 @@ function Zn(e, t, n) {
1634
1634
  }
1635
1635
  function Qn(e, t, n) {
1636
1636
  er(e);
1637
- var r = Re(e.columns, t.config.renderer),
1638
- i = Ve(e.options, r);
1637
+ var r = Le(e.columns, t.config.renderer),
1638
+ i = Be(e.options, r);
1639
1639
  return C(C({}, e), {}, {
1640
- answers: n ? He(e.answers, i, t.config.selectionType) : {
1640
+ answers: n ? Ve(e.answers, i, t.config.selectionType) : {
1641
1641
  optionIds: []
1642
1642
  },
1643
1643
  columns: r,
@@ -1662,7 +1662,7 @@ function er(e) {
1662
1662
  }
1663
1663
  function tr(e) {
1664
1664
  return C(C({}, e), {}, {
1665
- options: [].concat(_toConsumableArray(e.options), [Be(e.options, e.columns)])
1665
+ options: [].concat(_toConsumableArray(e.options), [ze(e.options, e.columns)])
1666
1666
  });
1667
1667
  }
1668
1668
  function nr(e, t, n) {
@@ -1673,14 +1673,14 @@ function nr(e, t, n) {
1673
1673
  });
1674
1674
  }
1675
1675
  function rr(e) {
1676
- if (e.columns.length >= Ye.max) return e;
1676
+ if (e.columns.length >= Je.max) return e;
1677
1677
  var t = e.columns.length;
1678
1678
  return C(C({}, e), {}, {
1679
1679
  columns: [].concat(_toConsumableArray(e.columns), [ni(ei(t))])
1680
1680
  });
1681
1681
  }
1682
1682
  function ir(e, t) {
1683
- if (e.columns.length <= Ye.min) return e;
1683
+ if (e.columns.length <= Je.min) return e;
1684
1684
  var n = e.columns.filter(function (e) {
1685
1685
  return e.columnId !== t;
1686
1686
  });
@@ -1712,7 +1712,7 @@ function cr(e, t, n) {
1712
1712
  return vr(e, t, n);
1713
1713
  }
1714
1714
  function lr(e, t, n) {
1715
- return rt(e, t, n);
1715
+ return nt(e, t, n);
1716
1716
  }
1717
1717
  function ur(e, t, n) {
1718
1718
  var r = ai(e.columns, t);
@@ -1756,7 +1756,7 @@ function hr(e, t, n) {
1756
1756
  return vr(e, t, n);
1757
1757
  }
1758
1758
  function gr(e, t, n) {
1759
- return ft(e, t, n);
1759
+ return dt(e, t, n);
1760
1760
  }
1761
1761
  function _r(e, t, n) {
1762
1762
  return C(C({}, e), {}, {
@@ -1784,7 +1784,7 @@ function yr(e, t) {
1784
1784
  var n = qr(e.categories),
1785
1785
  r = Jr(e.items);
1786
1786
  return C(C({}, e), {}, {
1787
- answers: t ? Ke(e.answers, n, r) : {},
1787
+ answers: t ? Ge(e.answers, n, r) : {},
1788
1788
  categories: n,
1789
1789
  items: r
1790
1790
  });
@@ -1802,7 +1802,7 @@ function xr(e, t) {
1802
1802
  return e.id !== t;
1803
1803
  });
1804
1804
  return C(C({}, e), {}, {
1805
- answers: Ke(e.answers, n, e.items),
1805
+ answers: Ge(e.answers, n, e.items),
1806
1806
  categories: n
1807
1807
  });
1808
1808
  }
@@ -1828,7 +1828,7 @@ function wr(e, t) {
1828
1828
  return e.id !== t;
1829
1829
  });
1830
1830
  return C(C({}, e), {}, {
1831
- answers: Ke(e.answers, e.categories, n),
1831
+ answers: Ge(e.answers, e.categories, n),
1832
1832
  items: n
1833
1833
  });
1834
1834
  }
@@ -1842,7 +1842,7 @@ function Tr(e, t, n) {
1842
1842
  });
1843
1843
  }
1844
1844
  function Er(e, t, n) {
1845
- return qe(e, t, n);
1845
+ return Ke(e, t, n);
1846
1846
  }
1847
1847
  function Dr(e, t) {
1848
1848
  var n = ui(e.sortOptions);
@@ -2039,13 +2039,13 @@ function Gr(e) {
2039
2039
  };
2040
2040
  }
2041
2041
  function Kr(e) {
2042
- var t = Le(e.config.renderer);
2042
+ var t = Ie(e.config.renderer);
2043
2043
  return {
2044
2044
  answers: {
2045
2045
  optionIds: []
2046
2046
  },
2047
2047
  columns: t,
2048
- options: ze(t),
2048
+ options: Re(t),
2049
2049
  type: "choice"
2050
2050
  };
2051
2051
  }
@@ -2094,12 +2094,12 @@ function Zr(e, t) {
2094
2094
  r = new Set(),
2095
2095
  i = new Set(),
2096
2096
  a = $r(t);
2097
- return n.slice(0, Ye.max).map(function (e, t) {
2097
+ return n.slice(0, Je.max).map(function (e, t) {
2098
2098
  var n, o;
2099
2099
  return {
2100
2100
  columnId: _(e.columnId, r),
2101
2101
  items: ti(e.items, i),
2102
- labelStyle: ot(e.labelStyle, (n = (o = a[t]) == null ? void 0 : o.labelStyle) == null ? "number" : n)
2102
+ labelStyle: at(e.labelStyle, (n = (o = a[t]) == null ? void 0 : o.labelStyle) == null ? "number" : n)
2103
2103
  };
2104
2104
  });
2105
2105
  }
@@ -2109,11 +2109,11 @@ function Qr(e) {
2109
2109
  });
2110
2110
  }
2111
2111
  function $r(e) {
2112
- return it(e.config.columns);
2112
+ return rt(e.config.columns);
2113
2113
  }
2114
2114
  function ei(e) {
2115
2115
  var t, n;
2116
- return (t = (n = it([])[e]) == null ? void 0 : n.labelStyle) == null ? "number" : t;
2116
+ return (t = (n = rt([])[e]) == null ? void 0 : n.labelStyle) == null ? "number" : t;
2117
2117
  }
2118
2118
  function ti(e, t) {
2119
2119
  var n = e.map(function (e) {
@@ -2143,24 +2143,24 @@ function ri(e) {
2143
2143
  });
2144
2144
  }
2145
2145
  function ii(e, t) {
2146
- return nt(e, mi(t));
2146
+ return tt(e, mi(t));
2147
2147
  }
2148
2148
  function ai(e, t) {
2149
2149
  var n = e.length > 0 ? e : oi(t),
2150
2150
  r = new Set(),
2151
2151
  i = new Set(),
2152
- a = pt(t.config.columns);
2153
- return n.slice(0, st.max).map(function (e, t) {
2152
+ a = ft(t.config.columns);
2153
+ return n.slice(0, ot.max).map(function (e, t) {
2154
2154
  var n, o;
2155
2155
  return {
2156
2156
  columnId: _(e.columnId, r),
2157
2157
  items: ti(e.items, i),
2158
- labelStyle: ot(e.labelStyle, (n = (o = a[t]) == null ? void 0 : o.labelStyle) == null ? "number" : n)
2158
+ labelStyle: at(e.labelStyle, (n = (o = a[t]) == null ? void 0 : o.labelStyle) == null ? "number" : n)
2159
2159
  };
2160
2160
  });
2161
2161
  }
2162
2162
  function oi(e) {
2163
- return pt(e.config.columns).map(function (e) {
2163
+ return ft(e.config.columns).map(function (e) {
2164
2164
  return si(e.labelStyle);
2165
2165
  });
2166
2166
  }
@@ -2180,7 +2180,7 @@ function si(e) {
2180
2180
  };
2181
2181
  }
2182
2182
  function ci(e, t) {
2183
- return dt(e, mi(t));
2183
+ return ut(e, mi(t));
2184
2184
  }
2185
2185
  function li(e, t) {
2186
2186
  var n = new Set(t);
@@ -2277,7 +2277,7 @@ function Ci(e) {
2277
2277
  return Array.isArray(e) && e.length > 0;
2278
2278
  }
2279
2279
  function wi(t) {
2280
- var n = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [Ot];
2280
+ var n = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [Dt];
2281
2281
  return Ci(t) ? (0, e.deserializeRichTextEditorJson)(t, {
2282
2282
  plugins: n
2283
2283
  }) : gi("");
@@ -2521,10 +2521,10 @@ var na = {
2521
2521
  marker: "_marker_rlnj7_1"
2522
2522
  },
2523
2523
  ra = {
2524
- marks: [vt(function (_ref35) {
2524
+ marks: [_t(function (_ref35) {
2525
2525
  var e = _ref35.children,
2526
2526
  t = _ref35.leaf;
2527
- return St(t) ? ia(e) : e;
2527
+ return xt(t) ? ia(e) : e;
2528
2528
  })]
2529
2529
  };
2530
2530
  function ia(e) {
@@ -3264,7 +3264,7 @@ function Da(_ref50) {
3264
3264
  "aria-label": r,
3265
3265
  className: "".concat(P.textarea, " rich-content-editor-surface"),
3266
3266
  onChange: function onChange(e) {
3267
- return a(Ee(e.target.value));
3267
+ return a(Te(e.target.value));
3268
3268
  },
3269
3269
  placeholder: s,
3270
3270
  value: f.text
@@ -3317,7 +3317,7 @@ function Da(_ref50) {
3317
3317
  className: ja(i),
3318
3318
  initialValue: f.json,
3319
3319
  onChange: function onChange(e) {
3320
- return a(De({
3320
+ return a(Ee({
3321
3321
  json: e
3322
3322
  }));
3323
3323
  },
@@ -3354,7 +3354,7 @@ function Ma(_ref52) {
3354
3354
  className: ja(i),
3355
3355
  initialValue: s.json,
3356
3356
  onChange: function onChange(e) {
3357
- return a(De({
3357
+ return a(Ee({
3358
3358
  json: e
3359
3359
  }));
3360
3360
  },
@@ -3470,7 +3470,7 @@ function Na(_ref54) {
3470
3470
  answers: p
3471
3471
  }), l, d)), S());
3472
3472
  }
3473
- function te(n, r) {
3473
+ function w(n, r) {
3474
3474
  return (0, t.jsxs)("div", {
3475
3475
  className: "flex min-w-0 flex-wrap items-start gap-3",
3476
3476
  children: [r.answerPools.map(function (i, a) {
@@ -3514,7 +3514,7 @@ function Na(_ref54) {
3514
3514
  })]
3515
3515
  });
3516
3516
  }
3517
- function w(n, r, a, o) {
3517
+ function T(n, r, a, o) {
3518
3518
  var s = b(n);
3519
3519
  return (0, t.jsxs)("section", {
3520
3520
  className: "flex min-w-0 flex-wrap items-center gap-4 rounded-md border border-slate-200 bg-white px-4 py-3",
@@ -3556,7 +3556,7 @@ function Na(_ref54) {
3556
3556
  })]
3557
3557
  }), (0, t.jsx)("div", {
3558
3558
  className: "min-w-72 flex-1",
3559
- children: te(a, o)
3559
+ children: w(a, o)
3560
3560
  }), (0, t.jsx)(M, {
3561
3561
  "aria-label": c("questionContentEditor.actions.deleteBlank", {
3562
3562
  index: r + 1
@@ -3574,7 +3574,7 @@ function Na(_ref54) {
3574
3574
  })]
3575
3575
  }, n);
3576
3576
  }
3577
- function ne(n, r, a) {
3577
+ function te(n, r, a) {
3578
3578
  return (0, t.jsxs)("section", {
3579
3579
  className: "flex min-w-0 flex-col gap-3 rounded-md border border-blue-200 bg-blue-50/40 px-4 py-3",
3580
3580
  children: [(0, t.jsxs)("div", {
@@ -3604,10 +3604,10 @@ function Na(_ref54) {
3604
3604
  strong: !0,
3605
3605
  children: c("questionContentEditor.blank.sharedAnswer")
3606
3606
  })]
3607
- }), te(r, n)]
3607
+ }), w(r, n)]
3608
3608
  }, "shared-group-".concat(r));
3609
3609
  }
3610
- function re() {
3610
+ function ne() {
3611
3611
  var e = new Set();
3612
3612
  return i.blanks.reduce(function (t, n, r) {
3613
3613
  var i = p.findIndex(function (e) {
@@ -3620,9 +3620,9 @@ function Na(_ref54) {
3620
3620
  var _n4 = m.findIndex(function (e) {
3621
3621
  return e.groupIndex === i;
3622
3622
  });
3623
- return e.add(i), t.push(ne(a, i, _n4)), t;
3623
+ return e.add(i), t.push(te(a, i, _n4)), t;
3624
3624
  }
3625
- return t.push(w(n, r, i, a)), t;
3625
+ return t.push(T(n, r, i, a)), t;
3626
3626
  }, []);
3627
3627
  }
3628
3628
  return r ? (0, t.jsxs)(t.Fragment, {
@@ -3630,7 +3630,7 @@ function Na(_ref54) {
3630
3630
  className: "flex min-w-0 flex-col gap-4",
3631
3631
  children: (0, t.jsx)("div", {
3632
3632
  className: "flex min-w-0 flex-col gap-3",
3633
- children: re()
3633
+ children: ne()
3634
3634
  })
3635
3635
  }), (0, t.jsx)(_a, {
3636
3636
  cancelText: c("questionContentEditor.actions.cancel"),
@@ -3939,7 +3939,7 @@ function La(_ref62) {
3939
3939
  candidateOptions: bn(e)
3940
3940
  }));
3941
3941
  }
3942
- function te(e, t) {
3942
+ function w(e, t) {
3943
3943
  var n = jn(v.blankOptionGroups, v.blanks).map(function (n) {
3944
3944
  return n.blankId === e ? C(C({}, t), {}, {
3945
3945
  blankId: e
@@ -3949,24 +3949,24 @@ function La(_ref62) {
3949
3949
  blankOptionGroups: n
3950
3950
  }));
3951
3951
  }
3952
- function w() {
3952
+ function T() {
3953
3953
  return v.answers.filter(function (e) {
3954
3954
  return "answerOptionIds" in e;
3955
3955
  });
3956
3956
  }
3957
- function ne(e) {
3957
+ function te(e) {
3958
3958
  return e.blankIds.join("__");
3959
3959
  }
3960
- function re(e) {
3960
+ function ne(e) {
3961
3961
  x(C(C({}, v), {}, {
3962
3962
  answers: e
3963
3963
  }));
3964
3964
  }
3965
- function ie(e, t, n) {
3966
- var r = w(),
3965
+ function re(e, t, n) {
3966
+ var r = T(),
3967
3967
  i = r.slice(e, e + 1)[0];
3968
3968
  if (!i) return;
3969
- var a = ne(i),
3969
+ var a = te(i),
3970
3970
  o = (t < i.answerOptionIds.length ? i.answerOptionIds.map(function (e, r) {
3971
3971
  return r === t ? n : e;
3972
3972
  }) : [].concat(_toConsumableArray(i.answerOptionIds), [n])).filter(function (e, t, n) {
@@ -3974,41 +3974,41 @@ function La(_ref62) {
3974
3974
  });
3975
3975
  t >= i.answerOptionIds.length && n && p(function (e) {
3976
3976
  return C(C({}, e), {}, _defineProperty({}, a, Math.max(0, Ra(e, a) - 1)));
3977
- }), re(r.map(function (t, n) {
3977
+ }), ne(r.map(function (t, n) {
3978
3978
  return n === e ? C(C({}, t), {}, {
3979
3979
  answerOptionIds: o
3980
3980
  }) : t;
3981
3981
  }));
3982
3982
  }
3983
- function ae(e) {
3983
+ function ie(e) {
3984
3984
  var t = jn(v.blankOptionGroups, v.blanks).find(function (t) {
3985
3985
  return t.blankId === e;
3986
3986
  });
3987
3987
  if (!t) throw Error("Missing option group for blank ".concat(e, "."));
3988
3988
  return t;
3989
3989
  }
3990
- function oe(e, t, n, r) {
3990
+ function ae(e, t, n, r) {
3991
3991
  t(e.map(function (e) {
3992
3992
  return e.optionId === n ? C(C({}, e), {}, {
3993
3993
  content: r
3994
3994
  }) : e;
3995
3995
  }));
3996
3996
  }
3997
- function se(e, t, n) {
3997
+ function oe(e, t, n) {
3998
3998
  t(e.filter(function (e) {
3999
3999
  return e.optionId !== n;
4000
4000
  }));
4001
4001
  }
4002
- function ce() {
4003
- return w().reduce(function (e, t, n) {
4002
+ function se() {
4003
+ return T().reduce(function (e, t, n) {
4004
4004
  return t.blankIds.length >= 2 && e.push({
4005
4005
  group: t,
4006
4006
  groupIndex: n
4007
4007
  }), e;
4008
4008
  }, []);
4009
4009
  }
4010
- function le(e) {
4011
- return w().filter(function (e) {
4010
+ function ce(e) {
4011
+ return T().filter(function (e) {
4012
4012
  return e.blankIds.length === 1;
4013
4013
  }).map(function (e) {
4014
4014
  return e.blankIds[0];
@@ -4016,22 +4016,22 @@ function La(_ref62) {
4016
4016
  return !!t && t !== e;
4017
4017
  });
4018
4018
  }
4019
- function ue(e, t) {
4019
+ function le(e, t) {
4020
4020
  if (t === "__single__") {
4021
- ge(e);
4021
+ he(e);
4022
4022
  return;
4023
4023
  }
4024
4024
  if (t === "__new__") {
4025
- fe(e);
4025
+ de(e);
4026
4026
  return;
4027
4027
  }
4028
4028
  var n = Number(t.replace("group:", ""));
4029
- Number.isNaN(n) || de(e, n);
4029
+ Number.isNaN(n) || ue(e, n);
4030
4030
  }
4031
- function de(e, t) {
4032
- var n = w(),
4031
+ function ue(e, t) {
4032
+ var n = T(),
4033
4033
  r = n.slice(t, t + 1)[0];
4034
- !r || r.blankIds.length < 2 || r.blankIds.includes(e) || re(n.map(function (n, r) {
4034
+ !r || r.blankIds.length < 2 || r.blankIds.includes(e) || ne(n.map(function (n, r) {
4035
4035
  return r === t ? C(C({}, n), {}, {
4036
4036
  blankIds: [].concat(_toConsumableArray(n.blankIds), [e])
4037
4037
  }) : C(C({}, n), {}, {
@@ -4043,24 +4043,24 @@ function La(_ref62) {
4043
4043
  return e.blankIds.length > 0;
4044
4044
  }));
4045
4045
  }
4046
- function fe(e) {
4047
- var t = le(e)[0];
4046
+ function de(e) {
4047
+ var t = ce(e)[0];
4048
4048
  t && (h(e), _(t));
4049
4049
  }
4050
- function pe() {
4050
+ function fe() {
4051
4051
  h(null), _(null);
4052
4052
  }
4053
- function me() {
4054
- !m || !g || (he(m, g), pe());
4053
+ function pe() {
4054
+ !m || !g || (me(m, g), fe());
4055
4055
  }
4056
- function he(e, t) {
4056
+ function me(e, t) {
4057
4057
  var n;
4058
4058
  if (e === t) return;
4059
- var r = w(),
4059
+ var r = T(),
4060
4060
  i = r.find(function (t) {
4061
4061
  return t.blankIds.includes(e);
4062
4062
  });
4063
- re([].concat(_toConsumableArray(r.map(function (n) {
4063
+ ne([].concat(_toConsumableArray(r.map(function (n) {
4064
4064
  return C(C({}, n), {}, {
4065
4065
  blankIds: n.blankIds.filter(function (n) {
4066
4066
  return n !== e && n !== t;
@@ -4073,13 +4073,13 @@ function La(_ref62) {
4073
4073
  return e.blankIds.length > 0;
4074
4074
  }));
4075
4075
  }
4076
- function ge(e) {
4076
+ function he(e) {
4077
4077
  var t;
4078
- var n = w(),
4078
+ var n = T(),
4079
4079
  r = n.find(function (t) {
4080
4080
  return t.blankIds.includes(e);
4081
4081
  });
4082
- re([].concat(_toConsumableArray(n.map(function (t) {
4082
+ ne([].concat(_toConsumableArray(n.map(function (t) {
4083
4083
  return C(C({}, t), {}, {
4084
4084
  blankIds: t.blankIds.filter(function (t) {
4085
4085
  return t !== e;
@@ -4092,13 +4092,13 @@ function La(_ref62) {
4092
4092
  return e.blankIds.length > 0;
4093
4093
  }));
4094
4094
  }
4095
- function T(e) {
4096
- var t = ne(e);
4095
+ function E(e) {
4096
+ var t = te(e);
4097
4097
  p(function (e) {
4098
4098
  return C(C({}, e), {}, _defineProperty({}, t, Ra(e, t) + 1));
4099
4099
  });
4100
4100
  }
4101
- function E(e, t) {
4101
+ function D(e, t) {
4102
4102
  return [{
4103
4103
  label: u("questionContentEditor.blank.singleAnswer"),
4104
4104
  value: "__single__"
@@ -4110,13 +4110,13 @@ function La(_ref62) {
4110
4110
  }),
4111
4111
  value: "group:".concat(e)
4112
4112
  };
4113
- })), _toConsumableArray(le(e).length > 0 ? [{
4113
+ })), _toConsumableArray(ce(e).length > 0 ? [{
4114
4114
  label: u("questionContentEditor.blank.newAnswerGroup"),
4115
4115
  value: "__new__"
4116
4116
  }] : []));
4117
4117
  }
4118
- function _e() {
4119
- return le(m == null ? "" : m).map(function (e) {
4118
+ function ge() {
4119
+ return ce(m == null ? "" : m).map(function (e) {
4120
4120
  return {
4121
4121
  label: u("questionContentEditor.blank.shortLabel", {
4122
4122
  index: v.blanks.indexOf(e) + 1
@@ -4125,7 +4125,7 @@ function La(_ref62) {
4125
4125
  };
4126
4126
  });
4127
4127
  }
4128
- function ve(e, t) {
4128
+ function _e(e, t) {
4129
4129
  var n = new Set(e.map(function (e) {
4130
4130
  return e.optionId;
4131
4131
  })),
@@ -4134,7 +4134,7 @@ function La(_ref62) {
4134
4134
  for (; n.has(i);) r += 1, i = "".concat(t).concat(r);
4135
4135
  return i;
4136
4136
  }
4137
- function ye(n, r) {
4137
+ function ve(n, r) {
4138
4138
  return (0, t.jsx)("div", {
4139
4139
  className: "flex min-w-0 flex-col gap-2",
4140
4140
  children: n.map(function (i, a) {
@@ -4152,7 +4152,7 @@ function La(_ref62) {
4152
4152
  index: a + 1
4153
4153
  }),
4154
4154
  onChange: function onChange(e) {
4155
- return oe(n, r, i.optionId, e);
4155
+ return ae(n, r, i.optionId, e);
4156
4156
  },
4157
4157
  placeholder: u("questionContentEditor.placeholders.candidateOption"),
4158
4158
  value: i.content,
@@ -4165,7 +4165,7 @@ function La(_ref62) {
4165
4165
  disabled: e || n.length <= 1,
4166
4166
  icon: "\xD7",
4167
4167
  onClick: function onClick() {
4168
- return se(n, r, i.optionId);
4168
+ return oe(n, r, i.optionId);
4169
4169
  },
4170
4170
  size: "small"
4171
4171
  })]
@@ -4173,7 +4173,7 @@ function La(_ref62) {
4173
4173
  })
4174
4174
  });
4175
4175
  }
4176
- function be(n, r, i, a) {
4176
+ function ye(n, r, i, a) {
4177
4177
  return (0, t.jsxs)("section", {
4178
4178
  className: "flex min-w-0 flex-col gap-3 rounded-md border border-slate-200 bg-white px-4 py-3",
4179
4179
  children: [(0, t.jsxs)("div", {
@@ -4185,22 +4185,22 @@ function La(_ref62) {
4185
4185
  disabled: e,
4186
4186
  icon: "+",
4187
4187
  onClick: function onClick() {
4188
- return r([].concat(_toConsumableArray(n), [yn(ve(n, a))]));
4188
+ return r([].concat(_toConsumableArray(n), [yn(_e(n, a))]));
4189
4189
  },
4190
4190
  size: "small",
4191
4191
  children: u("questionContentEditor.actions.addCandidateOption")
4192
4192
  })]
4193
- }), ye(n, r)]
4193
+ }), ve(n, r)]
4194
4194
  });
4195
4195
  }
4196
- function xe() {
4196
+ function be() {
4197
4197
  var e;
4198
4198
  return (e = v.candidateOptions) == null ? [] : e;
4199
4199
  }
4200
- function Se(e) {
4200
+ function xe(e) {
4201
4201
  if (r.config.candidateMode !== "sharedPool" || r.config.allowCandidateReuse) return new Set();
4202
4202
  var t = new Set(e.blankIds);
4203
- return new Set(w().filter(function (e) {
4203
+ return new Set(T().filter(function (e) {
4204
4204
  return e.blankIds.every(function (e) {
4205
4205
  return !t.has(e);
4206
4206
  });
@@ -4208,8 +4208,8 @@ function La(_ref62) {
4208
4208
  return [].concat(_toConsumableArray(e), _toConsumableArray(t.answerOptionIds));
4209
4209
  }, []));
4210
4210
  }
4211
- function Ce(n, r) {
4212
- var i = ne(n),
4211
+ function Se(n, r) {
4212
+ var i = te(n),
4213
4213
  a = Mn(n),
4214
4214
  o = a.length ? [].concat(_toConsumableArray(a), _toConsumableArray(Array.from({
4215
4215
  length: Ra(f, i)
@@ -4220,8 +4220,8 @@ function La(_ref62) {
4220
4220
  }, function () {
4221
4221
  return "";
4222
4222
  }),
4223
- s = Se(n),
4224
- c = xe().map(function (e, t) {
4223
+ s = xe(n),
4224
+ c = be().map(function (e, t) {
4225
4225
  var n = Zt("upperAlpha", t),
4226
4226
  r = a.includes(e.optionId);
4227
4227
  return {
@@ -4244,7 +4244,7 @@ function La(_ref62) {
4244
4244
  className: "min-w-60",
4245
4245
  disabled: e,
4246
4246
  onChange: function onChange(e) {
4247
- return ie(r, a, e);
4247
+ return re(r, a, e);
4248
4248
  },
4249
4249
  options: c,
4250
4250
  placeholder: u("questionContentEditor.placeholders.blankAnswer"),
@@ -4255,18 +4255,18 @@ function La(_ref62) {
4255
4255
  disabled: e,
4256
4256
  icon: "+",
4257
4257
  onClick: function onClick() {
4258
- return T(n);
4258
+ return E(n);
4259
4259
  },
4260
4260
  type: "dashed",
4261
4261
  children: u("questionContentEditor.actions.addAnswerPool")
4262
4262
  })]
4263
4263
  });
4264
4264
  }
4265
- function we(n) {
4265
+ function Ce(n) {
4266
4266
  return (0, t.jsx)(M, {
4267
4267
  disabled: e,
4268
4268
  onClick: function onClick() {
4269
- return ge(n);
4269
+ return he(n);
4270
4270
  },
4271
4271
  size: "small",
4272
4272
  children: u("questionContentEditor.blank.memberDetach", {
@@ -4274,7 +4274,7 @@ function La(_ref62) {
4274
4274
  })
4275
4275
  }, n);
4276
4276
  }
4277
- function Te(e, n, r) {
4277
+ function we(e, n, r) {
4278
4278
  return (0, t.jsxs)("section", {
4279
4279
  className: "flex min-w-0 flex-col gap-3 rounded-md border border-blue-200 bg-blue-50/40 px-4 py-3",
4280
4280
  children: [(0, t.jsxs)("div", {
@@ -4286,15 +4286,15 @@ function La(_ref62) {
4286
4286
  children: u("questionContentEditor.blank.answerGroup", {
4287
4287
  index: r + 1
4288
4288
  })
4289
- }), e.blankIds.map(we)]
4289
+ }), e.blankIds.map(Ce)]
4290
4290
  }), (0, t.jsx)(N.Text, {
4291
4291
  strong: !0,
4292
4292
  children: u("questionContentEditor.blank.sharedAnswer")
4293
4293
  })]
4294
- }), Ce(e, n)]
4294
+ }), Se(e, n)]
4295
4295
  }, "candidate-shared-group-".concat(n));
4296
4296
  }
4297
- function Ee(n, r, i, a, o) {
4297
+ function Te(n, r, i, a, o) {
4298
4298
  return (0, t.jsxs)("section", {
4299
4299
  className: "flex min-w-0 flex-wrap items-center gap-4 rounded-md border border-slate-200 bg-white px-4 py-3",
4300
4300
  children: [(0, t.jsx)(N.Text, {
@@ -4310,18 +4310,18 @@ function La(_ref62) {
4310
4310
  className: "w-48",
4311
4311
  disabled: e,
4312
4312
  onChange: function onChange(e) {
4313
- return ue(n, e == null ? "__single__" : e);
4313
+ return le(n, e == null ? "__single__" : e);
4314
4314
  },
4315
- options: E(n, o),
4315
+ options: D(n, o),
4316
4316
  value: "__single__"
4317
4317
  }), (0, t.jsx)("div", {
4318
4318
  className: "min-w-72 flex-1",
4319
- children: Ce(i, a)
4319
+ children: Se(i, a)
4320
4320
  })]
4321
4321
  }, n);
4322
4322
  }
4323
- function De() {
4324
- return w().map(function (e, t) {
4323
+ function Ee() {
4324
+ return T().map(function (e, t) {
4325
4325
  return {
4326
4326
  firstBlankIndex: Math.min.apply(Math, _toConsumableArray(e.blankIds.map(function (e) {
4327
4327
  return v.blanks.indexOf(e);
@@ -4333,36 +4333,36 @@ function La(_ref62) {
4333
4333
  return e.firstBlankIndex - t.firstBlankIndex;
4334
4334
  });
4335
4335
  }
4336
- function Oe() {
4337
- var e = ce();
4336
+ function De() {
4337
+ var e = se();
4338
4338
  return (0, t.jsxs)("div", {
4339
4339
  className: "flex min-w-0 flex-col gap-3",
4340
4340
  children: [(0, t.jsx)(N.Text, {
4341
4341
  strong: !0,
4342
4342
  children: u("questionContentEditor.blank.groupsTitle")
4343
- }), De().map(function (_ref70) {
4343
+ }), Ee().map(function (_ref70) {
4344
4344
  var t = _ref70.group,
4345
4345
  n = _ref70.groupIndex;
4346
- if (t.blankIds.length > 1) return Te(t, n, e.findIndex(function (e) {
4346
+ if (t.blankIds.length > 1) return we(t, n, e.findIndex(function (e) {
4347
4347
  return e.groupIndex === n;
4348
4348
  }));
4349
4349
  var r = t.blankIds[0];
4350
- return r ? Ee(r, v.blanks.indexOf(r), t, n, e) : null;
4350
+ return r ? Te(r, v.blanks.indexOf(r), t, n, e) : null;
4351
4351
  })]
4352
4352
  });
4353
4353
  }
4354
- function ke(e) {
4354
+ function Oe(e) {
4355
4355
  var t, n;
4356
4356
  var r = v.answers.find(function (t) {
4357
4357
  return "answerOptionId" in t && t.blankId === e;
4358
4358
  }),
4359
- i = (t = (n = ae(e).options[0]) == null ? void 0 : n.optionId) == null ? "" : t;
4359
+ i = (t = (n = ie(e).options[0]) == null ? void 0 : n.optionId) == null ? "" : t;
4360
4360
  return {
4361
4361
  answerOptionId: (r == null ? void 0 : r.answerOptionId) || i,
4362
4362
  blankId: e
4363
4363
  };
4364
4364
  }
4365
- function Ae(e, t) {
4365
+ function ke(e, t) {
4366
4366
  x(C(C({}, v), {}, {
4367
4367
  answers: v.answers.map(function (n) {
4368
4368
  return "answerOptionId" in n && n.blankId === e ? C(C({}, n), {}, {
@@ -4371,14 +4371,14 @@ function La(_ref62) {
4371
4371
  })
4372
4372
  }));
4373
4373
  }
4374
- function je(e, t) {
4375
- te(e, {
4374
+ function Ae(e, t) {
4375
+ w(e, {
4376
4376
  blankId: e,
4377
4377
  options: t
4378
4378
  });
4379
4379
  }
4380
- function Me(n, r) {
4381
- var a = ke(n.blankId),
4380
+ function je(n, r) {
4381
+ var a = Oe(n.blankId),
4382
4382
  o = n.options.map(function (e, t) {
4383
4383
  return {
4384
4384
  label: "".concat(Zt("upperAlpha", t), ". ").concat(e.content.text || u("questionContentEditor.fields.candidateOption", {
@@ -4410,7 +4410,7 @@ function La(_ref62) {
4410
4410
  className: "min-w-48",
4411
4411
  disabled: e,
4412
4412
  onChange: function onChange(e) {
4413
- return e ? Ae(n.blankId, e) : void 0;
4413
+ return e ? ke(n.blankId, e) : void 0;
4414
4414
  },
4415
4415
  options: o,
4416
4416
  value: a.answerOptionId
@@ -4418,22 +4418,22 @@ function La(_ref62) {
4418
4418
  }) : null, (0, t.jsx)(M, {
4419
4419
  disabled: e,
4420
4420
  onClick: function onClick() {
4421
- return je(n.blankId, [].concat(_toConsumableArray(n.options), [yn(ve(n.options, "".concat(n.blankId, "_option_")))]));
4421
+ return Ae(n.blankId, [].concat(_toConsumableArray(n.options), [yn(_e(n.options, "".concat(n.blankId, "_option_")))]));
4422
4422
  },
4423
4423
  size: "small",
4424
4424
  children: u("questionContentEditor.actions.addBlankOption")
4425
4425
  })]
4426
4426
  })]
4427
- }), ye(n.options, function (e) {
4428
- return je(n.blankId, e);
4427
+ }), ve(n.options, function (e) {
4428
+ return Ae(n.blankId, e);
4429
4429
  })]
4430
4430
  }, n.blankId);
4431
4431
  }
4432
- function Ne() {
4432
+ function Me() {
4433
4433
  if (r.config.candidateMode === "sharedPool") {
4434
4434
  var e;
4435
4435
  return (0, t.jsxs)(t.Fragment, {
4436
- children: [be((e = v.candidateOptions) == null ? [] : e, ee, u("questionContentEditor.fields.candidateOptions"), "option_"), i ? Oe() : null]
4436
+ children: [ye((e = v.candidateOptions) == null ? [] : e, ee, u("questionContentEditor.fields.candidateOptions"), "option_"), i ? De() : null]
4437
4437
  });
4438
4438
  }
4439
4439
  var n = jn(v.blankOptionGroups, v.blanks);
@@ -4442,7 +4442,7 @@ function La(_ref62) {
4442
4442
  children: [(0, t.jsx)(N.Text, {
4443
4443
  strong: !0,
4444
4444
  children: u("questionContentEditor.blank.perBlankOptionsTitle")
4445
- }), n.map(Me)]
4445
+ }), n.map(je)]
4446
4446
  });
4447
4447
  }
4448
4448
  return (0, t.jsxs)("div", {
@@ -4477,15 +4477,15 @@ function La(_ref62) {
4477
4477
  onChange: S,
4478
4478
  richTextControls: s,
4479
4479
  translator: l
4480
- }) : Ne(), (0, t.jsx)(_a, {
4480
+ }) : Me(), (0, t.jsx)(_a, {
4481
4481
  cancelText: u("questionContentEditor.actions.cancel"),
4482
4482
  closeLabel: u("questionContentEditor.actions.close"),
4483
4483
  okButtonProps: {
4484
4484
  disabled: !g
4485
4485
  },
4486
4486
  okText: u("questionContentEditor.actions.confirmCreateAnswerGroup"),
4487
- onCancel: pe,
4488
- onOk: me,
4487
+ onCancel: fe,
4488
+ onOk: pe,
4489
4489
  open: !!m,
4490
4490
  title: u("questionContentEditor.blank.createGroupTitle"),
4491
4491
  children: (0, t.jsxs)("div", {
@@ -4497,7 +4497,7 @@ function La(_ref62) {
4497
4497
  onChange: function onChange(e) {
4498
4498
  return _(String(e.target.value));
4499
4499
  },
4500
- options: _e(),
4500
+ options: ge(),
4501
4501
  value: g
4502
4502
  })]
4503
4503
  })
@@ -4571,7 +4571,7 @@ function Ha(e) {
4571
4571
  return Array.isArray(e);
4572
4572
  }
4573
4573
  function Ua(e, t) {
4574
- var n = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : Xe;
4574
+ var n = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : Ye;
4575
4575
  var r = e.columns.reduce(function (e, t, n) {
4576
4576
  return t.items.forEach(function (t, r) {
4577
4577
  return e.set(t.itemId, {
@@ -4741,26 +4741,26 @@ function Qa(_ref77) {
4741
4741
  function ee(e, t) {
4742
4742
  S(cr(g, e, t));
4743
4743
  }
4744
- function te(e, t) {
4744
+ function w(e, t) {
4745
4745
  S(C(C({}, g), {}, {
4746
4746
  answers: lr(g.answers, e, t)
4747
4747
  }));
4748
4748
  }
4749
- function w(t, n, r) {
4749
+ function T(t, n, r) {
4750
4750
  if (e || !i) return;
4751
4751
  var a = {
4752
4752
  columnIndex: t,
4753
4753
  itemId: n,
4754
4754
  label: r
4755
4755
  },
4756
- o = u ? Ze(u, a) : null;
4756
+ o = u ? Xe(u, a) : null;
4757
4757
  if (o) {
4758
- te(o.fromItemId, o.toItemId), d(null);
4758
+ w(o.fromItemId, o.toItemId), d(null);
4759
4759
  return;
4760
4760
  }
4761
4761
  d(a);
4762
4762
  }
4763
- function ne() {
4763
+ function te() {
4764
4764
  return i ? (0, t.jsx)("div", {
4765
4765
  "aria-live": "polite",
4766
4766
  className: "rounded-md border border-blue-100 bg-blue-50 px-3 py-2 text-sm text-blue-700",
@@ -4769,7 +4769,7 @@ function Qa(_ref77) {
4769
4769
  }) : l("questionContentEditor.lineConnect.connectHintIdle")
4770
4770
  }) : null;
4771
4771
  }
4772
- function re(n, r) {
4772
+ function ne(n, r) {
4773
4773
  return (0, t.jsxs)("section", {
4774
4774
  className: L.column,
4775
4775
  children: [(0, t.jsxs)("div", {
@@ -4812,7 +4812,7 @@ function Qa(_ref77) {
4812
4812
  }), (0, t.jsx)("div", {
4813
4813
  className: "flex min-w-0 flex-col gap-2",
4814
4814
  children: n.items.map(function (e, t) {
4815
- return ie(n, r, e, t);
4815
+ return re(n, r, e, t);
4816
4816
  })
4817
4817
  }), (0, t.jsx)(M, {
4818
4818
  "aria-label": l("questionContentEditor.lineConnect.addItem", {
@@ -4830,7 +4830,7 @@ function Qa(_ref77) {
4830
4830
  })]
4831
4831
  }, n.columnId);
4832
4832
  }
4833
- function ie(n, r, a, o) {
4833
+ function re(n, r, a, o) {
4834
4834
  var c = Qt(n.labelStyle, o),
4835
4835
  d = c ? "".concat(c, ". ").concat(a.content.text) : a.content.text,
4836
4836
  f = (u == null ? void 0 : u.itemId) === a.itemId,
@@ -4842,7 +4842,7 @@ function Qa(_ref77) {
4842
4842
  className: ro(f, h),
4843
4843
  "data-testid": "line-connect-item-".concat(a.itemId),
4844
4844
  style: _,
4845
- children: [ae(r, a, o, c, d, p), (0, t.jsx)(F, {
4845
+ children: [ie(r, a, o, c, d, p), (0, t.jsx)(F, {
4846
4846
  controls: s,
4847
4847
  disabled: e,
4848
4848
  label: l("questionContentEditor.lineConnect.itemAria", {
@@ -4869,17 +4869,17 @@ function Qa(_ref77) {
4869
4869
  return S(sr(g, a.itemId));
4870
4870
  },
4871
4871
  size: "small"
4872
- }), oe(r, a, o, d, f, m)]
4872
+ }), ae(r, a, o, d, f, m)]
4873
4873
  }, a.itemId);
4874
4874
  }
4875
- function ae(n, r, a, o, s, c) {
4875
+ function ie(n, r, a, o, s, c) {
4876
4876
  return i ? (0, t.jsx)("button", {
4877
- "aria-label": se("incoming", n, a, r.content.text),
4877
+ "aria-label": oe("incoming", n, a, r.content.text),
4878
4878
  "aria-pressed": c,
4879
4879
  className: Ba(R.marker, R["incoming-marker"], c && R["connect-button-connected"]),
4880
4880
  disabled: e,
4881
4881
  onClick: function onClick() {
4882
- return w(n, r.itemId, s);
4882
+ return T(n, r.itemId, s);
4883
4883
  },
4884
4884
  ref: x(r.itemId, "incoming"),
4885
4885
  title: u ? l("questionContentEditor.lineConnect.connectHintActive", {
@@ -4896,15 +4896,15 @@ function Qa(_ref77) {
4896
4896
  children: o
4897
4897
  });
4898
4898
  }
4899
- function oe(n, r, a, o, s, c) {
4899
+ function ae(n, r, a, o, s, c) {
4900
4900
  return i ? (0, t.jsx)("button", {
4901
- "aria-label": se("outgoing", n, a, r.content.text),
4901
+ "aria-label": oe("outgoing", n, a, r.content.text),
4902
4902
  "aria-pressed": s,
4903
4903
  className: Ba(R["connect-handle"], R["connect-handle-outgoing"], s && R["connect-button-selected"], c && R["connect-button-connected"]),
4904
4904
  disabled: e,
4905
4905
  ref: x(r.itemId, "outgoing"),
4906
4906
  onClick: function onClick() {
4907
- return w(n, r.itemId, o);
4907
+ return T(n, r.itemId, o);
4908
4908
  },
4909
4909
  title: u ? l("questionContentEditor.lineConnect.connectHintActive", {
4910
4910
  label: u.label
@@ -4916,7 +4916,7 @@ function Qa(_ref77) {
4916
4916
  })
4917
4917
  }) : null;
4918
4918
  }
4919
- function se(e, t, n, r) {
4919
+ function oe(e, t, n, r) {
4920
4920
  return l("questionContentEditor.lineConnect.".concat(e === "incoming" ? "connectToAria" : "connectFromAria"), {
4921
4921
  column: t + 1,
4922
4922
  content: r,
@@ -4925,7 +4925,7 @@ function Qa(_ref77) {
4925
4925
  }
4926
4926
  return (0, t.jsxs)("div", {
4927
4927
  className: "flex min-w-0 flex-col gap-4",
4928
- children: [ne(), (0, t.jsxs)("div", {
4928
+ children: [te(), (0, t.jsxs)("div", {
4929
4929
  className: L.board,
4930
4930
  "data-testid": "line-connect-editor-board",
4931
4931
  ref: m,
@@ -4951,7 +4951,7 @@ function Qa(_ref77) {
4951
4951
  }) : null, (0, t.jsx)("div", {
4952
4952
  className: L.columns,
4953
4953
  style: _,
4954
- children: g.columns.map(re)
4954
+ children: g.columns.map(ne)
4955
4955
  })]
4956
4956
  }), (0, t.jsx)(M, {
4957
4957
  "aria-label": l("questionContentEditor.lineConnect.addColumn"),
@@ -5023,7 +5023,7 @@ function oo(_ref82) {
5023
5023
  gridTemplateColumns: "repeat(".concat(g.columns.length, ", minmax(16rem, 1fr))")
5024
5024
  },
5025
5025
  v = (0, n.useMemo)(function () {
5026
- return i ? Ua(g, g.answers, ct) : [];
5026
+ return i ? Ua(g, g.answers, st) : [];
5027
5027
  }, [i, g]),
5028
5028
  y = (0, n.useMemo)(function () {
5029
5029
  return JSON.stringify({
@@ -5094,14 +5094,14 @@ function oo(_ref82) {
5094
5094
  function ee(e, t) {
5095
5095
  S(hr(g, e, t));
5096
5096
  }
5097
- function te(t, n, r) {
5097
+ function w(t, n, r) {
5098
5098
  if (e || !i) return;
5099
5099
  var a = {
5100
5100
  columnIndex: t,
5101
5101
  itemId: n,
5102
5102
  label: r
5103
5103
  },
5104
- o = u ? lt(u, a) : null;
5104
+ o = u ? ct(u, a) : null;
5105
5105
  if (o) {
5106
5106
  S(C(C({}, g), {}, {
5107
5107
  answers: gr(g.answers, o.fromItemId, o.toItemId)
@@ -5110,7 +5110,7 @@ function oo(_ref82) {
5110
5110
  }
5111
5111
  d(a);
5112
5112
  }
5113
- function w(n, r) {
5113
+ function T(n, r) {
5114
5114
  return (0, t.jsxs)("section", {
5115
5115
  className: z.column,
5116
5116
  children: [(0, t.jsx)("div", {
@@ -5134,7 +5134,7 @@ function oo(_ref82) {
5134
5134
  }), (0, t.jsx)("div", {
5135
5135
  className: z.items,
5136
5136
  children: n.items.map(function (e, t) {
5137
- return ne(n, r, e, t);
5137
+ return te(n, r, e, t);
5138
5138
  })
5139
5139
  }), (0, t.jsx)(M, {
5140
5140
  "aria-label": l("questionContentEditor.matching.addItem", {
@@ -5150,7 +5150,7 @@ function oo(_ref82) {
5150
5150
  })]
5151
5151
  }, n.columnId);
5152
5152
  }
5153
- function ne(n, r, a, o) {
5153
+ function te(n, r, a, o) {
5154
5154
  var c = $t(n.labelStyle, o),
5155
5155
  d = (u == null ? void 0 : u.itemId) === a.itemId,
5156
5156
  f = so(g, a.itemId),
@@ -5162,7 +5162,7 @@ function oo(_ref82) {
5162
5162
  className: Ba(z.item, d ? z.selected : "", m ? z.matched : ""),
5163
5163
  "data-testid": "matching-editor-item-".concat(a.itemId),
5164
5164
  style: _,
5165
- children: [re(r, a, o, c, h, f), (0, t.jsx)(F, {
5165
+ children: [ne(r, a, o, c, h, f), (0, t.jsx)(F, {
5166
5166
  controls: s,
5167
5167
  disabled: e,
5168
5168
  label: l("questionContentEditor.matching.itemAria", {
@@ -5189,17 +5189,17 @@ function oo(_ref82) {
5189
5189
  return S(mr(g, a.itemId));
5190
5190
  },
5191
5191
  size: "small"
5192
- }), ie(r, a, o, h, d, p)]
5192
+ }), re(r, a, o, h, d, p)]
5193
5193
  }, a.itemId);
5194
5194
  }
5195
- function re(n, r, a, o, s, c) {
5195
+ function ne(n, r, a, o, s, c) {
5196
5196
  return i ? (0, t.jsx)("button", {
5197
- "aria-label": ae("incoming", n, a, r.content.text),
5197
+ "aria-label": ie("incoming", n, a, r.content.text),
5198
5198
  "aria-pressed": c,
5199
5199
  className: Ba(z.marker, R["incoming-marker"], c && R["connect-button-connected"]),
5200
5200
  disabled: e,
5201
5201
  onClick: function onClick() {
5202
- return te(n, r.itemId, s);
5202
+ return w(n, r.itemId, s);
5203
5203
  },
5204
5204
  ref: x(r.itemId, "incoming"),
5205
5205
  title: u ? l("questionContentEditor.matching.connectHintActive", {
@@ -5215,14 +5215,14 @@ function oo(_ref82) {
5215
5215
  children: o
5216
5216
  }) : (0, t.jsx)("span", {});
5217
5217
  }
5218
- function ie(n, r, a, o, s, c) {
5218
+ function re(n, r, a, o, s, c) {
5219
5219
  return i ? (0, t.jsx)("button", {
5220
- "aria-label": ae("outgoing", n, a, r.content.text),
5220
+ "aria-label": ie("outgoing", n, a, r.content.text),
5221
5221
  "aria-pressed": s,
5222
5222
  className: Ba(R["connect-handle"], R["connect-handle-outgoing"], s && R["connect-button-selected"], c && R["connect-button-connected"]),
5223
5223
  disabled: e,
5224
5224
  onClick: function onClick() {
5225
- return te(n, r.itemId, o);
5225
+ return w(n, r.itemId, o);
5226
5226
  },
5227
5227
  ref: x(r.itemId, "outgoing"),
5228
5228
  title: u ? l("questionContentEditor.matching.connectHintActive", {
@@ -5235,7 +5235,7 @@ function oo(_ref82) {
5235
5235
  })
5236
5236
  }) : null;
5237
5237
  }
5238
- function ae(e, t, n, r) {
5238
+ function ie(e, t, n, r) {
5239
5239
  return l("questionContentEditor.matching.".concat(e === "incoming" ? "connectToAria" : "connectFromAria"), {
5240
5240
  column: t + 1,
5241
5241
  content: r,
@@ -5277,7 +5277,7 @@ function oo(_ref82) {
5277
5277
  className: z.columns,
5278
5278
  style: _,
5279
5279
  children: g.columns.map(function (e, t) {
5280
- return w(e, t);
5280
+ return T(e, t);
5281
5281
  })
5282
5282
  })]
5283
5283
  })]
@@ -5703,13 +5703,13 @@ function go(_ref91) {
5703
5703
  c = _ref91.translator;
5704
5704
  var l = (0, n.useRef)(null),
5705
5705
  u = c.t,
5706
- d = bt(i.content.json);
5706
+ d = yt(i.content.json);
5707
5707
  function f(e) {
5708
5708
  a(gn(e, e.content, r));
5709
5709
  }
5710
5710
  function p() {
5711
5711
  var e;
5712
- var t = xt();
5712
+ var t = bt();
5713
5713
  (e = l.current) == null || e.runCommand({
5714
5714
  command: "mark.textMarker",
5715
5715
  payload: t
@@ -6335,7 +6335,7 @@ function Bo(_ref100) {
6335
6335
  y = Io(_ ? v.children : []);
6336
6336
  if (!_) return (0, t.jsxs)("section", {
6337
6337
  className: "flex min-w-0 flex-col gap-3 border-b border-l-2 border-slate-200 border-l-blue-600 bg-white py-4 pr-0 pl-3 last:border-b-0 sm:pl-4",
6338
- children: [te(null), w((0, t.jsx)(ba, {
6338
+ children: [w(null), T((0, t.jsx)(ba, {
6339
6339
  description: p("questionContentEditor.subquestion.missingTemplate")
6340
6340
  }))]
6341
6341
  });
@@ -6368,7 +6368,7 @@ function Bo(_ref100) {
6368
6368
  }
6369
6369
  return (0, t.jsxs)("section", {
6370
6370
  className: "flex min-w-0 flex-col gap-3 border-b border-l-2 border-slate-200 border-l-blue-600 bg-white py-4 pr-0 pl-3 last:border-b-0 sm:pl-4",
6371
- children: [te(b), w(Uo(i, v, o, l, _, f)), v.children.length === 0 ? null : (0, t.jsx)("div", {
6371
+ children: [w(b), T(Uo(i, v, o, l, _, f)), v.children.length === 0 ? null : (0, t.jsx)("div", {
6372
6372
  className: "ml-3 flex min-w-0 flex-col pl-3 sm:ml-4 sm:pl-4",
6373
6373
  children: y.map(function (e, n) {
6374
6374
  return (0, t.jsx)(Bo, {
@@ -6394,7 +6394,7 @@ function Bo(_ref100) {
6394
6394
  })
6395
6395
  })]
6396
6396
  });
6397
- function te(r) {
6397
+ function w(r) {
6398
6398
  return (0, t.jsxs)("div", {
6399
6399
  className: "flex min-w-0 flex-wrap items-start justify-between gap-3",
6400
6400
  children: [(0, t.jsx)("span", {
@@ -6445,7 +6445,7 @@ function Bo(_ref100) {
6445
6445
  })]
6446
6446
  });
6447
6447
  }
6448
- function w(e) {
6448
+ function T(e) {
6449
6449
  return (0, t.jsx)(Ao, {
6450
6450
  number: Do(m, u) ? h : null,
6451
6451
  children: e
@@ -6585,7 +6585,7 @@ function qo(_ref102) {
6585
6585
  f = Zi(o, l),
6586
6586
  p = (0, n.useMemo)(function () {
6587
6587
  return {
6588
- plugins: [Ot, ra],
6588
+ plugins: [Dt, ra],
6589
6589
  uploadImage: s
6590
6590
  };
6591
6591
  }, [s]);
@@ -6687,7 +6687,7 @@ function Xo(e, t) {
6687
6687
  }),
6688
6688
  extras: e.extras.map(function (e) {
6689
6689
  return {
6690
- name: ls(e, _e(e.type), ve(e.type), t),
6690
+ name: ls(e, ge(e.type), _e(e.type), t),
6691
6691
  type: e.type
6692
6692
  };
6693
6693
  }),
@@ -6808,7 +6808,7 @@ function os(e) {
6808
6808
  function ss(e, t) {
6809
6809
  return e.type === "fill" || e.type === "classification" || e.type === "ordering" || e.type === "richText" || e.type === "textMarker" || e.type === "textResponse" ? {
6810
6810
  config: {},
6811
- name: ls(e, T(e.type), E(e.type), t),
6811
+ name: ls(e, E(e.type), D(e.type), t),
6812
6812
  type: e.type
6813
6813
  } : cs(e, t);
6814
6814
  }
@@ -6820,7 +6820,7 @@ function cs(e, t) {
6820
6820
  allowCandidateReuse: !!e.config.allowCandidateReuse,
6821
6821
  candidateMode: e.config.candidateMode
6822
6822
  },
6823
- name: ls(e, T("inlineFill"), E("inlineFill"), t),
6823
+ name: ls(e, E("inlineFill"), D("inlineFill"), t),
6824
6824
  type: "inlineFill"
6825
6825
  };
6826
6826
  case "wordBuilder":
@@ -6828,7 +6828,7 @@ function cs(e, t) {
6828
6828
  config: {
6829
6829
  builderMode: e.config.builderMode
6830
6830
  },
6831
- name: ls(e, T("wordBuilder"), E("wordBuilder"), t),
6831
+ name: ls(e, E("wordBuilder"), D("wordBuilder"), t),
6832
6832
  type: "wordBuilder"
6833
6833
  };
6834
6834
  case "judgement":
@@ -6836,7 +6836,7 @@ function cs(e, t) {
6836
6836
  config: {
6837
6837
  judgeAnswerMode: e.config.judgeAnswerMode
6838
6838
  },
6839
- name: ls(e, T("judgement"), E("judgement"), t),
6839
+ name: ls(e, E("judgement"), D("judgement"), t),
6840
6840
  type: "judgement"
6841
6841
  };
6842
6842
  case "choice":
@@ -6846,7 +6846,7 @@ function cs(e, t) {
6846
6846
  renderer: e.config.renderer,
6847
6847
  selectionType: e.config.selectionType
6848
6848
  },
6849
- name: ls(e, T("choice"), E("choice"), t),
6849
+ name: ls(e, E("choice"), D("choice"), t),
6850
6850
  type: "choice"
6851
6851
  };
6852
6852
  case "lineConnect":
@@ -6856,7 +6856,7 @@ function cs(e, t) {
6856
6856
  return C({}, e);
6857
6857
  })
6858
6858
  },
6859
- name: ls(e, T("lineConnect"), E("lineConnect"), t),
6859
+ name: ls(e, E("lineConnect"), D("lineConnect"), t),
6860
6860
  type: "lineConnect"
6861
6861
  };
6862
6862
  case "matching":
@@ -6866,7 +6866,7 @@ function cs(e, t) {
6866
6866
  return C({}, e);
6867
6867
  })
6868
6868
  },
6869
- name: ls(e, T("matching"), E("matching"), t),
6869
+ name: ls(e, E("matching"), D("matching"), t),
6870
6870
  type: "matching"
6871
6871
  };
6872
6872
  }
@@ -6905,11 +6905,11 @@ var ps = {
6905
6905
  text: ""
6906
6906
  };
6907
6907
  function ms(e, t) {
6908
- As(e, t);
6908
+ js(e, t);
6909
6909
  var n = t.elements.filter(function (e) {
6910
6910
  return e.type !== "richText";
6911
6911
  });
6912
- return Ns("elementAnswers", e.items.length, n.length), Ns("children", e.children.length, t.children.length), {
6912
+ return Ps("elementAnswers", e.items.length, n.length), Ps("children", e.children.length, t.children.length), {
6913
6913
  children: e.children.map(function (e, n) {
6914
6914
  return ms(e, t.children[n]);
6915
6915
  }),
@@ -6922,11 +6922,11 @@ function ms(e, t) {
6922
6922
  };
6923
6923
  }
6924
6924
  function hs(e, t) {
6925
- As(e, t);
6925
+ js(e, t);
6926
6926
  var n = t.elements.filter(function (e) {
6927
6927
  return e.type !== "richText";
6928
6928
  });
6929
- return Ns("elementAnswers", e.elementAnswers.length, n.length), Ns("children", e.children.length, t.children.length), {
6929
+ return Ps("elementAnswers", e.elementAnswers.length, n.length), Ps("children", e.children.length, t.children.length), {
6930
6930
  children: e.children.map(function (e, n) {
6931
6931
  return hs(e, t.children[n]);
6932
6932
  }),
@@ -6939,14 +6939,14 @@ function hs(e, t) {
6939
6939
  };
6940
6940
  }
6941
6941
  function gs(e, t) {
6942
- switch (js(e.type, t.type), e.type) {
6942
+ switch (Ms(e.type, t.type), e.type) {
6943
6943
  case "fill":
6944
- return Ms(t, "fill"), {
6945
- answers: Ss(t, e.answers),
6944
+ return Ns(t, "fill"), {
6945
+ answers: Ss(t.blanks, e.answers),
6946
6946
  type: e.type
6947
6947
  };
6948
6948
  case "inlineFill":
6949
- return Ms(t, "inlineFill"), {
6949
+ return Ns(t, "inlineFill"), {
6950
6950
  answers: Cs(t, e.answers),
6951
6951
  type: e.type
6952
6952
  };
@@ -7008,15 +7008,15 @@ function vs(e) {
7008
7008
  }
7009
7009
  }
7010
7010
  function ys(e, t) {
7011
- switch (js(e.type, t.type), e.type) {
7011
+ switch (Ms(e.type, t.type), e.type) {
7012
7012
  case "fill":
7013
- return {
7014
- answers: Es(e.answers),
7013
+ return Ns(t, "fill"), {
7014
+ answers: Ds(t.blanks, e.answers),
7015
7015
  type: e.type
7016
7016
  };
7017
7017
  case "inlineFill":
7018
- return Ms(t, "inlineFill"), {
7019
- answers: Ds(t, e.answers),
7018
+ return Ns(t, "inlineFill"), {
7019
+ answers: Os(t, e.answers),
7020
7020
  type: e.type
7021
7021
  };
7022
7022
  default:
@@ -7048,7 +7048,7 @@ function bs(e) {
7048
7048
  case "lineConnect":
7049
7049
  case "matching":
7050
7050
  return {
7051
- connections: Os(e.answers),
7051
+ connections: ks(e.answers),
7052
7052
  type: e.type
7053
7053
  };
7054
7054
  default:
@@ -7075,21 +7075,18 @@ function xs(e) {
7075
7075
  }
7076
7076
  }
7077
7077
  function Ss(e, t) {
7078
- return k(e.answers, e.blanks).map(function (e) {
7078
+ return e.map(function (e) {
7079
7079
  var n;
7080
7080
  return {
7081
- answerPools: [ks((n = e.blankIds.map(function (e) {
7082
- var n;
7083
- return (n = t[e]) == null ? "" : n;
7084
- }).find(Boolean)) == null ? "" : n)],
7085
- blankIds: _toConsumableArray(e.blankIds)
7081
+ blankId: e,
7082
+ content: As((n = t[e]) == null ? "" : n)
7086
7083
  };
7087
7084
  });
7088
7085
  }
7089
7086
  function Cs(e, t) {
7090
7087
  return e.blanks.map(function (n) {
7091
7088
  return {
7092
- answerPools: [ks(ws(e, n, t[n]))],
7089
+ answerPools: [As(ws(e, n, t[n]))],
7093
7090
  blankIds: [n]
7094
7091
  };
7095
7092
  });
@@ -7119,6 +7116,15 @@ function Es(e) {
7119
7116
  }, {});
7120
7117
  }
7121
7118
  function Ds(e, t) {
7119
+ var n = t.reduce(function (e, t) {
7120
+ return e.has(t.blankId) || e.set(t.blankId, t), e;
7121
+ }, new Map());
7122
+ return e.reduce(function (e, t) {
7123
+ var r, i;
7124
+ return C(C({}, e), {}, _defineProperty({}, t, (r = (i = n.get(t)) == null ? void 0 : i.content.text) == null ? "" : r));
7125
+ }, {});
7126
+ }
7127
+ function Os(e, t) {
7122
7128
  return Object.entries(Es(t)).reduce(function (t, _ref103) {
7123
7129
  var _ref104 = _slicedToArray(_ref103, 2),
7124
7130
  n = _ref104[0],
@@ -7139,107 +7145,107 @@ function Ds(e, t) {
7139
7145
  return C(C({}, t), {}, _defineProperty({}, n, c));
7140
7146
  }, {});
7141
7147
  }
7142
- function Os(e) {
7148
+ function ks(e) {
7143
7149
  return Object.keys(e).reduce(function (t, n) {
7144
7150
  return C(C({}, t), {}, _defineProperty({}, n, _toConsumableArray(e[n])));
7145
7151
  }, {});
7146
7152
  }
7147
- function ks(e) {
7153
+ function As(e) {
7148
7154
  return e.length === 0 ? ps : {
7149
7155
  html: e,
7150
7156
  json: [],
7151
7157
  text: e
7152
7158
  };
7153
7159
  }
7154
- function As(e, t) {
7160
+ function js(e, t) {
7155
7161
  if (e.id !== t.id || e.questionTypeKey !== t.questionTypeKey || e.version !== t.version) throw Error("QuestionPlayer response identity mismatch: questionId=".concat(String(t.id), ", responseId=").concat(String(e.id), ", questionTypeKey=").concat(String(t.questionTypeKey), ", responseQuestionTypeKey=").concat(String(e.questionTypeKey), ", questionVersion=").concat(t.version, ", responseVersion=").concat(e.version));
7156
7162
  }
7157
- function js(e, t) {
7163
+ function Ms(e, t) {
7158
7164
  if (e !== t) throw Error("QuestionPlayer response element mismatch: expected=".concat(t, ", actual=").concat(e));
7159
7165
  }
7160
- function Ms(e, t) {
7166
+ function Ns(e, t) {
7161
7167
  if (e.type !== t) throw Error("QuestionPlayer content element mismatch: expected=".concat(t, ", actual=").concat(e.type));
7162
7168
  }
7163
- function Ns(e, t, n) {
7169
+ function Ps(e, t, n) {
7164
7170
  if (t !== n) throw Error("QuestionPlayer response ".concat(e, " length mismatch: expected=").concat(n, ", actual=").concat(t));
7165
7171
  }
7166
- function Ps(e, t) {
7172
+ function Fs(e, t) {
7167
7173
  var n = us(e, t);
7168
- return ms(Fs(n, t), n);
7174
+ return ms(Is(n, t), n);
7169
7175
  }
7170
- function Fs(e, t) {
7176
+ function Is(e, t) {
7171
7177
  var n = Yi(t, e.questionTypeKey),
7172
7178
  r = n ? Rt(n) : !1;
7173
7179
  return {
7174
7180
  questionTypeKey: e.questionTypeKey,
7175
7181
  children: e.children.map(function (e) {
7176
- return Fs(e, t);
7182
+ return Is(e, t);
7177
7183
  }),
7178
7184
  id: e.id,
7179
7185
  items: !n || r ? [] : n.elements.reduce(function (t, n, r) {
7180
- var i = nc(n, Yt(e, r, n));
7186
+ var i = rc(n, Yt(e, r, n));
7181
7187
  return i ? [].concat(_toConsumableArray(t), [i]) : t;
7182
7188
  }, []),
7183
7189
  version: e.version
7184
7190
  };
7185
7191
  }
7186
- function Is(e, t) {
7192
+ function Ls(e, t) {
7187
7193
  var n;
7188
7194
  return (n = V(e, t, "choice")) == null ? {
7189
7195
  selectedOptionIds: [],
7190
7196
  type: "choice"
7191
7197
  } : n;
7192
7198
  }
7193
- function Ls(e, t, n) {
7199
+ function Rs(e, t, n) {
7194
7200
  var r;
7195
7201
  return (r = V(e, t, "fill")) == null ? {
7196
- answers: hc(n),
7202
+ answers: gc(n),
7197
7203
  type: "fill"
7198
7204
  } : r;
7199
7205
  }
7200
- function Rs(e, t, n, r) {
7206
+ function zs(e, t, n, r) {
7201
7207
  var i;
7202
7208
  return (i = V(e, t, "inlineFill")) == null ? {
7203
- answers: gc(n, r),
7209
+ answers: _c(n, r),
7204
7210
  type: "inlineFill"
7205
7211
  } : i;
7206
7212
  }
7207
- function zs(e, t, n) {
7213
+ function Bs(e, t, n) {
7208
7214
  var r;
7209
7215
  return (r = V(e, t, "wordBuilder")) == null ? {
7210
- answers: hc(n),
7216
+ answers: gc(n),
7211
7217
  type: "wordBuilder"
7212
7218
  } : r;
7213
7219
  }
7214
- function Bs(e, t) {
7220
+ function Vs(e, t) {
7215
7221
  var n;
7216
7222
  return (n = V(e, t, "judgement")) == null ? {
7217
7223
  selectedValues: [],
7218
7224
  type: "judgement"
7219
7225
  } : n;
7220
7226
  }
7221
- function Vs(e, t) {
7227
+ function Hs(e, t) {
7222
7228
  var n;
7223
7229
  return (n = V(e, t, "classification")) == null ? {
7224
7230
  placements: {},
7225
7231
  type: "classification"
7226
7232
  } : n;
7227
7233
  }
7228
- function Hs(e, t) {
7234
+ function Us(e, t) {
7229
7235
  var n;
7230
7236
  return (n = V(e, t, "lineConnect")) == null ? {
7231
7237
  connections: {},
7232
7238
  type: "lineConnect"
7233
7239
  } : n;
7234
7240
  }
7235
- function Us(e, t) {
7241
+ function Ws(e, t) {
7236
7242
  var n;
7237
7243
  return (n = V(e, t, "matching")) == null ? {
7238
7244
  connections: {},
7239
7245
  type: "matching"
7240
7246
  } : n;
7241
7247
  }
7242
- function Ws(e, t, n) {
7248
+ function Gs(e, t, n) {
7243
7249
  var r;
7244
7250
  return (r = V(e, t, "ordering")) == null ? {
7245
7251
  orderedOptionIds: n.sortOptions.map(function (e) {
@@ -7248,137 +7254,137 @@ function Ws(e, t, n) {
7248
7254
  type: "ordering"
7249
7255
  } : r;
7250
7256
  }
7251
- function Gs(e, t) {
7257
+ function Ks(e, t) {
7252
7258
  var n;
7253
7259
  return (n = V(e, t, "textMarker")) == null ? {
7254
7260
  selectedMarkers: [],
7255
7261
  type: "textMarker"
7256
7262
  } : n;
7257
7263
  }
7258
- function Ks(e, t) {
7264
+ function qs(e, t) {
7259
7265
  var n;
7260
7266
  return (n = V(e, t, "textResponse")) == null ? {
7261
7267
  content: O(),
7262
7268
  type: "textResponse"
7263
7269
  } : n;
7264
7270
  }
7265
- function qs(e, t, n) {
7271
+ function Js(e, t, n) {
7266
7272
  return C(C({}, e), {}, {
7267
7273
  items: e.items.map(function (e, r) {
7268
7274
  return r === t ? n : e;
7269
7275
  })
7270
7276
  });
7271
7277
  }
7272
- function Js(e, t, n) {
7278
+ function Ys(e, t, n) {
7273
7279
  return C(C({}, e), {}, {
7274
7280
  children: e.children.map(function (e, r) {
7275
7281
  return r === t ? n : e;
7276
7282
  })
7277
7283
  });
7278
7284
  }
7279
- function Ys(e, t, n) {
7280
- return Ie(e, t, n);
7285
+ function Xs(e, t, n) {
7286
+ return Fe(e, t, n);
7281
7287
  }
7282
- function Xs(e, t) {
7288
+ function Zs(e, t) {
7283
7289
  var n = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : "single";
7284
7290
  return {
7285
7291
  kind: "option",
7286
- optionIds: Ie((e == null ? void 0 : e.kind) === "option" ? e.optionIds : [], t, n)
7292
+ optionIds: Fe((e == null ? void 0 : e.kind) === "option" ? e.optionIds : [], t, n)
7287
7293
  };
7288
7294
  }
7289
- function Zs(e, t, n) {
7290
- return rt(e, t, n);
7291
- }
7292
7295
  function Qs(e, t, n) {
7293
- return ft(e, t, n);
7296
+ return nt(e, t, n);
7294
7297
  }
7295
7298
  function $s(e, t, n) {
7296
- return qe(e, t, n);
7299
+ return dt(e, t, n);
7300
+ }
7301
+ function ec(e, t, n) {
7302
+ return Ke(e, t, n);
7297
7303
  }
7298
- function ec(e, t, n, r) {
7304
+ function tc(e, t, n, r) {
7299
7305
  return Mr(e, t.sortOptions, n, r);
7300
7306
  }
7301
- function tc(e, t) {
7307
+ function nc(e, t) {
7302
7308
  return e.includes(t) ? e.filter(function (e) {
7303
7309
  return e !== t;
7304
7310
  }) : [].concat(_toConsumableArray(e), [t]);
7305
7311
  }
7306
- function nc(e, t) {
7312
+ function rc(e, t) {
7307
7313
  return e.type === "richText" ? null : e.type === "textResponse" ? {
7308
7314
  content: O(),
7309
7315
  type: "textResponse"
7310
- } : e.type === "ordering" ? pc(t) : e.type === "classification" ? ic(t) : e.type === "fill" ? sc(t) : rc(e, t);
7316
+ } : e.type === "ordering" ? mc(t) : e.type === "classification" ? ac(t) : e.type === "fill" ? cc(t) : ic(e, t);
7311
7317
  }
7312
- function rc(e, t) {
7318
+ function ic(e, t) {
7313
7319
  switch (e.type) {
7314
7320
  case "choice":
7315
- return oc();
7321
+ return sc();
7316
7322
  case "inlineFill":
7317
- return cc(e, t);
7323
+ return lc(e, t);
7318
7324
  case "wordBuilder":
7319
- return ac(t);
7325
+ return oc(t);
7320
7326
  case "judgement":
7321
- return lc();
7322
- case "lineConnect":
7323
7327
  return uc();
7324
- case "matching":
7328
+ case "lineConnect":
7325
7329
  return dc();
7330
+ case "matching":
7331
+ return fc();
7326
7332
  case "textMarker":
7327
- return mc();
7333
+ return hc();
7328
7334
  }
7329
7335
  }
7330
- function ic(e) {
7336
+ function ac(e) {
7331
7337
  return e.type === "classification" ? {
7332
- placements: fc({}, e),
7338
+ placements: pc({}, e),
7333
7339
  type: "classification"
7334
7340
  } : null;
7335
7341
  }
7336
- function ac(e) {
7342
+ function oc(e) {
7337
7343
  return e.type === "wordBuilder" ? {
7338
- answers: hc(e.blanks),
7344
+ answers: gc(e.blanks),
7339
7345
  type: "wordBuilder"
7340
7346
  } : null;
7341
7347
  }
7342
- function oc() {
7348
+ function sc() {
7343
7349
  return {
7344
7350
  selectedOptionIds: [],
7345
7351
  type: "choice"
7346
7352
  };
7347
7353
  }
7348
- function sc(e) {
7354
+ function cc(e) {
7349
7355
  return e.type === "fill" ? {
7350
- answers: hc(e.blanks),
7356
+ answers: gc(e.blanks),
7351
7357
  type: "fill"
7352
7358
  } : null;
7353
7359
  }
7354
- function cc(e, t) {
7360
+ function lc(e, t) {
7355
7361
  return t.type === "inlineFill" ? {
7356
- answers: gc(e, t.blanks),
7362
+ answers: _c(e, t.blanks),
7357
7363
  type: "inlineFill"
7358
7364
  } : null;
7359
7365
  }
7360
- function lc() {
7366
+ function uc() {
7361
7367
  return {
7362
7368
  selectedValues: [],
7363
7369
  type: "judgement"
7364
7370
  };
7365
7371
  }
7366
- function uc() {
7372
+ function dc() {
7367
7373
  return {
7368
7374
  connections: {},
7369
7375
  type: "lineConnect"
7370
7376
  };
7371
7377
  }
7372
- function dc() {
7378
+ function fc() {
7373
7379
  return {
7374
7380
  connections: {},
7375
7381
  type: "matching"
7376
7382
  };
7377
7383
  }
7378
- function fc(e, t) {
7379
- return Ke(e, t.categories, t.items);
7384
+ function pc(e, t) {
7385
+ return Ge(e, t.categories, t.items);
7380
7386
  }
7381
- function pc(e) {
7387
+ function mc(e) {
7382
7388
  return e.type === "ordering" ? {
7383
7389
  orderedOptionIds: e.sortOptions.map(function (e) {
7384
7390
  return e.id;
@@ -7386,18 +7392,18 @@ function pc(e) {
7386
7392
  type: "ordering"
7387
7393
  } : null;
7388
7394
  }
7389
- function mc() {
7395
+ function hc() {
7390
7396
  return {
7391
7397
  selectedMarkers: [],
7392
7398
  type: "textMarker"
7393
7399
  };
7394
7400
  }
7395
- function hc(e) {
7401
+ function gc(e) {
7396
7402
  return e.reduce(function (e, t) {
7397
7403
  return C(C({}, e), {}, _defineProperty({}, t, ""));
7398
7404
  }, {});
7399
7405
  }
7400
- function gc(e, t) {
7406
+ function _c(e, t) {
7401
7407
  return t.reduce(function (t, n) {
7402
7408
  return C(C({}, t), {}, _defineProperty({}, n, e.config.candidateMode === "none" ? {
7403
7409
  kind: "text",
@@ -7410,12 +7416,12 @@ function gc(e, t) {
7410
7416
  }
7411
7417
  function V(e, t, n) {
7412
7418
  var r = e.items[t];
7413
- return r && _c(r, n) ? r : void 0;
7419
+ return r && vc(r, n) ? r : void 0;
7414
7420
  }
7415
- function _c(e, t) {
7421
+ function vc(e, t) {
7416
7422
  return e.type === t;
7417
7423
  }
7418
- var vc = {
7424
+ var yc = {
7419
7425
  "en-US": {
7420
7426
  addBlank: "Add blank",
7421
7427
  addCard: "Add card",
@@ -7545,13 +7551,13 @@ var vc = {
7545
7551
  previewEmpty: "\u6682\u65E0\u9898\u76EE\u5185\u5BB9\u3002"
7546
7552
  }
7547
7553
  };
7548
- function yc() {
7554
+ function bc() {
7549
7555
  var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "zh-CN";
7550
7556
  switch (e) {
7551
7557
  case "en-US":
7552
- return vc["en-US"];
7558
+ return yc["en-US"];
7553
7559
  case "zh-CN":
7554
- return vc["zh-CN"];
7560
+ return yc["zh-CN"];
7555
7561
  }
7556
7562
  }
7557
7563
  function H() {
@@ -7560,7 +7566,7 @@ function H() {
7560
7566
  }
7561
7567
  return e.filter(Boolean).join(" ");
7562
7568
  }
7563
- function bc(e, t, n) {
7569
+ function xc(e, t, n) {
7564
7570
  return e.map(function (e) {
7565
7571
  return t.indexOf(e) + 1;
7566
7572
  }).filter(function (e) {
@@ -7569,22 +7575,22 @@ function bc(e, t, n) {
7569
7575
  return "".concat(n).concat(e);
7570
7576
  }).join(" ");
7571
7577
  }
7572
- function xc(e) {
7578
+ function Sc(e) {
7573
7579
  return "answerPools" in e;
7574
7580
  }
7575
- function Sc(e) {
7581
+ function Cc(e) {
7576
7582
  return "answerOptionId" in e;
7577
7583
  }
7578
- function Cc(e) {
7584
+ function wc(e) {
7579
7585
  return "answerOptionIds" in e;
7580
7586
  }
7581
- function wc(e, t) {
7587
+ function Tc(e, t) {
7582
7588
  var n, r;
7583
7589
  return (n = e == null || (r = e.find(function (e) {
7584
7590
  return e.optionId === t;
7585
7591
  })) == null ? void 0 : r.content) == null ? null : n;
7586
7592
  }
7587
- function Tc(e, t, n) {
7593
+ function Ec(e, t, n) {
7588
7594
  var r, i;
7589
7595
  return (r = e == null || (i = e.find(function (e) {
7590
7596
  return e.blankId === t;
@@ -7592,26 +7598,26 @@ function Tc(e, t, n) {
7592
7598
  return e.optionId === n;
7593
7599
  })) == null ? void 0 : i.content) == null ? null : r;
7594
7600
  }
7595
- function Ec(e) {
7601
+ function Dc(e) {
7596
7602
  return e.answers.reduce(function (t, n) {
7597
- if (xc(n)) return Dc(t, {
7603
+ if (Sc(n)) return Oc(t, {
7598
7604
  blankIds: n.blankIds,
7599
7605
  contents: n.answerPools
7600
7606
  });
7601
- if (Sc(n)) {
7602
- var _r4 = Tc(e.blankOptionGroups, n.blankId, n.answerOptionId);
7603
- return Dc(t, {
7607
+ if (Cc(n)) {
7608
+ var _r4 = Ec(e.blankOptionGroups, n.blankId, n.answerOptionId);
7609
+ return Oc(t, {
7604
7610
  blankIds: [n.blankId],
7605
7611
  contents: _r4 ? [_r4] : []
7606
7612
  });
7607
7613
  }
7608
- if (Cc(n)) {
7614
+ if (wc(n)) {
7609
7615
  var _r5 = n.answerOptionIds.map(function (t) {
7610
- return wc(e.candidateOptions, t);
7616
+ return Tc(e.candidateOptions, t);
7611
7617
  }).filter(function (e) {
7612
7618
  return !!e;
7613
7619
  });
7614
- return Dc(t, {
7620
+ return Oc(t, {
7615
7621
  blankIds: n.blankIds,
7616
7622
  contents: _r5
7617
7623
  });
@@ -7619,7 +7625,7 @@ function Ec(e) {
7619
7625
  return t;
7620
7626
  }, []);
7621
7627
  }
7622
- function Dc(e, t) {
7628
+ function Oc(e, t) {
7623
7629
  var n = t.contents.filter(function (e) {
7624
7630
  return e.text.trim() !== "";
7625
7631
  });
@@ -7628,31 +7634,31 @@ function Dc(e, t) {
7628
7634
  contents: n
7629
7635
  }]) : e;
7630
7636
  }
7631
- var Oc = {
7637
+ var kc = {
7632
7638
  title: "_title_hrc5o_1"
7633
7639
  };
7634
- function kc(_ref105) {
7640
+ function Ac(_ref105) {
7635
7641
  var e = _ref105.children;
7636
7642
  return (0, t.jsx)("h3", {
7637
- className: Oc.title,
7643
+ className: kc.title,
7638
7644
  children: e
7639
7645
  });
7640
7646
  }
7641
7647
  var U = {
7642
- root: "_root_1owdb_1",
7643
- "element-list": "_element-list_1owdb_19",
7644
- children: "_children_1owdb_20",
7645
- "control-list": "_control-list_1owdb_21",
7646
- "fill-text": "_fill-text_1owdb_22",
7647
- element: "_element_1owdb_19",
7648
- extra: "_extra_1owdb_32",
7649
- child: "_child_1owdb_20",
7650
- "field-label": "_field-label_1owdb_44",
7651
- empty: "_empty_1owdb_50",
7652
- input: "_input_1owdb_62",
7653
- field: "_field_1owdb_44"
7648
+ root: "_root_nr9um_1",
7649
+ "element-list": "_element-list_nr9um_18",
7650
+ children: "_children_nr9um_19",
7651
+ "control-list": "_control-list_nr9um_20",
7652
+ "fill-text": "_fill-text_nr9um_21",
7653
+ element: "_element_nr9um_18",
7654
+ extra: "_extra_nr9um_31",
7655
+ child: "_child_nr9um_19",
7656
+ "field-label": "_field-label_nr9um_43",
7657
+ empty: "_empty_nr9um_49",
7658
+ input: "_input_nr9um_61",
7659
+ field: "_field_nr9um_43"
7654
7660
  };
7655
- function Ac(_ref106) {
7661
+ function jc(_ref106) {
7656
7662
  var _ref106$childIndexPat = _ref106.childIndexPath,
7657
7663
  e = _ref106$childIndexPat === void 0 ? [] : _ref106$childIndexPat,
7658
7664
  n = _ref106.messages,
@@ -7705,7 +7711,7 @@ function G(_ref107) {
7705
7711
  var n = _ref107.className,
7706
7712
  r = _ref107.content;
7707
7713
  var i = r.html || (0, e.serializeRichTextEditorHtml)(Jt(r), {
7708
- plugins: [Ot]
7714
+ plugins: [Dt]
7709
7715
  });
7710
7716
  return (0, t.jsx)("div", {
7711
7717
  className: n ? "".concat(W["rich-content"], " ").concat(n) : W["rich-content"],
@@ -7714,7 +7720,7 @@ function G(_ref107) {
7714
7720
  }
7715
7721
  });
7716
7722
  }
7717
- var jc = {
7723
+ var Mc = {
7718
7724
  "answer-panel": "_answer-panel_1bkkd_1",
7719
7725
  "answer-list": "_answer-list_1bkkd_8",
7720
7726
  "answer-row": "_answer-row_1bkkd_16",
@@ -7731,22 +7737,22 @@ function K(_ref108) {
7731
7737
  });
7732
7738
  return r.length === 0 ? null : (0, t.jsxs)("section", {
7733
7739
  "aria-label": n,
7734
- className: jc["answer-panel"],
7735
- children: [(0, t.jsx)(kc, {
7740
+ className: Mc["answer-panel"],
7741
+ children: [(0, t.jsx)(Ac, {
7736
7742
  children: n
7737
7743
  }), (0, t.jsx)("ol", {
7738
- className: jc["answer-list"],
7744
+ className: Mc["answer-list"],
7739
7745
  children: r.map(function (e, n) {
7740
7746
  return (0, t.jsxs)("li", {
7741
- className: jc["answer-row"],
7747
+ className: Mc["answer-row"],
7742
7748
  children: [e.marker ? (0, t.jsx)("span", {
7743
- className: e.kind === "markerOnly" ? "".concat(jc["answer-marker"], " ").concat(jc["answer-marker-only"]) : jc["answer-marker"],
7749
+ className: e.kind === "markerOnly" ? "".concat(Mc["answer-marker"], " ").concat(Mc["answer-marker-only"]) : Mc["answer-marker"],
7744
7750
  children: e.marker
7745
7751
  }) : null, e.kind === "detailed" ? (0, t.jsx)("div", {
7746
- className: jc["answer-content-list"],
7752
+ className: Mc["answer-content-list"],
7747
7753
  children: e.contents.map(function (e, n) {
7748
7754
  return (0, t.jsx)("div", {
7749
- className: jc["answer-value"],
7755
+ className: Mc["answer-value"],
7750
7756
  children: e
7751
7757
  }, "answer-".concat(n));
7752
7758
  })
@@ -7756,7 +7762,7 @@ function K(_ref108) {
7756
7762
  })]
7757
7763
  });
7758
7764
  }
7759
- function Mc(_ref109) {
7765
+ function Nc(_ref109) {
7760
7766
  var e = _ref109.disabled,
7761
7767
  n = _ref109.item,
7762
7768
  r = _ref109.messages,
@@ -7764,7 +7770,7 @@ function Mc(_ref109) {
7764
7770
  a = _ref109.response,
7765
7771
  o = _ref109.responseIndex,
7766
7772
  s = _ref109.showAnswer;
7767
- var c = Ls(a, o, n.blanks),
7773
+ var c = Rs(a, o, n.blanks),
7768
7774
  l = k(n.answers, n.blanks).map(function (e, i) {
7769
7775
  return {
7770
7776
  kind: "detailed",
@@ -7773,7 +7779,7 @@ function Mc(_ref109) {
7773
7779
  content: e
7774
7780
  }, "group-".concat(i, "-answer-").concat(n));
7775
7781
  }),
7776
- marker: bc(e.blankIds, n.blanks, r.blankLabel)
7782
+ marker: xc(e.blankIds, n.blanks, r.blankLabel)
7777
7783
  };
7778
7784
  });
7779
7785
  function u(e, t) {
@@ -7795,19 +7801,19 @@ function Mc(_ref109) {
7795
7801
  onChange: function onChange(e) {
7796
7802
  return u(n, e.target.value);
7797
7803
  },
7798
- value: Pc(c.answers, n)
7804
+ value: Fc(c.answers, n)
7799
7805
  })]
7800
- }, Nc(n, i));
7806
+ }, Pc(n, i));
7801
7807
  }), s ? (0, t.jsx)(K, {
7802
7808
  groups: l,
7803
7809
  title: r.standardAnswer
7804
7810
  }) : null]
7805
7811
  });
7806
7812
  }
7807
- function Nc(e, t) {
7813
+ function Pc(e, t) {
7808
7814
  return e || "blank-".concat(t + 1);
7809
7815
  }
7810
- function Pc(e, t) {
7816
+ function Fc(e, t) {
7811
7817
  var n, r;
7812
7818
  return (n = (r = Object.entries(e).find(function (_ref110) {
7813
7819
  var _ref111 = _slicedToArray(_ref110, 1),
@@ -7815,7 +7821,7 @@ function Pc(e, t) {
7815
7821
  return e === t;
7816
7822
  })) == null ? void 0 : r[1]) == null ? "" : n;
7817
7823
  }
7818
- function Fc(e) {
7824
+ function Ic(e) {
7819
7825
  return e.categories.map(function (n) {
7820
7826
  return {
7821
7827
  kind: "detailed",
@@ -7843,7 +7849,7 @@ var q = {
7843
7849
  incorrect: "_incorrect_1f76b_81",
7844
7850
  unanswered: "_unanswered_1f76b_85"
7845
7851
  };
7846
- function Ic(_ref112) {
7852
+ function Lc(_ref112) {
7847
7853
  var e = _ref112.disabled,
7848
7854
  r = _ref112.item,
7849
7855
  i = _ref112.messages,
@@ -7855,14 +7861,14 @@ function Ic(_ref112) {
7855
7861
  _ref114 = _slicedToArray(_ref113, 2),
7856
7862
  l = _ref114[0],
7857
7863
  u = _ref114[1],
7858
- d = Vs(o, s),
7859
- f = Rc(d.placements, r),
7864
+ d = Hs(o, s),
7865
+ f = zc(d.placements, r),
7860
7866
  p = r.items.find(function (e) {
7861
7867
  return e.id === l;
7862
7868
  });
7863
7869
  function m(e, t) {
7864
7870
  a(C(C({}, d), {}, {
7865
- placements: Rc($s(f, e, t), r)
7871
+ placements: zc(ec(f, e, t), r)
7866
7872
  })), u("");
7867
7873
  }
7868
7874
  function h(t, n) {
@@ -7872,7 +7878,7 @@ function Ic(_ref112) {
7872
7878
  }
7873
7879
  function g(n) {
7874
7880
  var i = l === n.id,
7875
- a = Lc(n.id, f, r, c);
7881
+ a = Rc(n.id, f, r, c);
7876
7882
  return (0, t.jsx)("button", {
7877
7883
  "aria-pressed": i,
7878
7884
  className: H(q.item, i && q.selected, a === "correct" && q.correct, a === "incorrect" && q.incorrect, a === "unanswered" && q.unanswered),
@@ -7946,21 +7952,21 @@ function Ic(_ref112) {
7946
7952
  })
7947
7953
  })]
7948
7954
  }), c ? (0, t.jsx)(K, {
7949
- groups: Fc(r),
7955
+ groups: Ic(r),
7950
7956
  title: i.standardAnswer
7951
7957
  }) : null]
7952
7958
  });
7953
7959
  }
7954
- function Lc(e, t, n, r) {
7960
+ function Rc(e, t, n, r) {
7955
7961
  var i, a;
7956
7962
  var o = (i = t[e]) == null ? "" : i,
7957
7963
  s = (a = n.answers[e]) == null ? "" : a;
7958
7964
  if (!(!r || !s)) return o ? s === o ? "correct" : "incorrect" : "unanswered";
7959
7965
  }
7960
- function Rc(e, t) {
7961
- return Ke(e, t.categories, t.items);
7966
+ function zc(e, t) {
7967
+ return Ge(e, t.categories, t.items);
7962
7968
  }
7963
- function zc(_ref115) {
7969
+ function Bc(_ref115) {
7964
7970
  var e = _ref115.className,
7965
7971
  n = _ref115.content,
7966
7972
  r = _ref115.renderBlank;
@@ -7968,7 +7974,7 @@ function zc(_ref115) {
7968
7974
  return (0, t.jsx)("div", {
7969
7975
  className: [W["rich-content"], e == null ? "" : e].filter(Boolean).join(" "),
7970
7976
  children: n.json.map(function (e, t) {
7971
- return Bc(e, {
7977
+ return Vc(e, {
7972
7978
  blankIndexes: i,
7973
7979
  key: "node-".concat(t),
7974
7980
  renderBlank: r
@@ -7976,17 +7982,17 @@ function zc(_ref115) {
7976
7982
  })
7977
7983
  });
7978
7984
  }
7979
- function Bc(e, r) {
7985
+ function Vc(e, r) {
7980
7986
  if (_typeof(e.text) == "string") return (0, t.jsx)(n.Fragment, {
7981
7987
  children: e.text
7982
7988
  }, r.key);
7983
7989
  if (e.type === "blank") return (0, t.jsx)(n.Fragment, {
7984
- children: Vc(e, r)
7990
+ children: Hc(e, r)
7985
7991
  }, r.key);
7986
- var i = Uc(e.children, r);
7992
+ var i = Wc(e.children, r);
7987
7993
  switch (e.type) {
7988
7994
  case "heading":
7989
- return Wc(e, i, r.key);
7995
+ return Gc(e, i, r.key);
7990
7996
  case "table":
7991
7997
  return (0, t.jsx)("table", {
7992
7998
  children: i
@@ -8005,29 +8011,29 @@ function Bc(e, r) {
8005
8011
  }, r.key);
8006
8012
  }
8007
8013
  }
8008
- function Vc(e, t) {
8009
- var n = Gc(e.blankId),
8010
- r = Hc(t.blankIndexes, n);
8014
+ function Hc(e, t) {
8015
+ var n = Kc(e.blankId),
8016
+ r = Uc(t.blankIndexes, n);
8011
8017
  return t.renderBlank({
8012
8018
  blankId: n,
8013
8019
  index: r,
8014
- label: Gc(e.label)
8020
+ label: Kc(e.label)
8015
8021
  });
8016
8022
  }
8017
- function Hc(e, t) {
8023
+ function Uc(e, t) {
8018
8024
  var n = e.get(t);
8019
8025
  if (n !== void 0) return n;
8020
8026
  var r = e.size;
8021
8027
  return e.set(t, r), r;
8022
8028
  }
8023
- function Uc(e, t) {
8029
+ function Wc(e, t) {
8024
8030
  return (e == null ? [] : e).map(function (e, n) {
8025
- return Bc(e, C(C({}, t), {}, {
8031
+ return Vc(e, C(C({}, t), {}, {
8026
8032
  key: "".concat(t.key, "-").concat(n)
8027
8033
  }));
8028
8034
  });
8029
8035
  }
8030
- function Wc(e, n, r) {
8036
+ function Gc(e, n, r) {
8031
8037
  switch (e.level) {
8032
8038
  case 1:
8033
8039
  return (0, t.jsx)("h1", {
@@ -8047,7 +8053,7 @@ function Wc(e, n, r) {
8047
8053
  }, r);
8048
8054
  }
8049
8055
  }
8050
- function Gc(e) {
8056
+ function Kc(e) {
8051
8057
  return _typeof(e) == "string" ? e : "";
8052
8058
  }
8053
8059
  var J = {
@@ -8066,17 +8072,17 @@ var J = {
8066
8072
  "per-blank-candidate-list": "_per-blank-candidate-list_2je8q_140",
8067
8073
  selected: "_selected_2je8q_161"
8068
8074
  };
8069
- function Kc(_ref116) {
8075
+ function qc(_ref116) {
8070
8076
  var e = _ref116.answers,
8071
8077
  n = _ref116.disabled,
8072
8078
  r = _ref116.item,
8073
8079
  i = _ref116.messages,
8074
8080
  a = _ref116.onAnswerChange,
8075
8081
  o = _ref116.structure;
8076
- return (0, t.jsx)(zc, {
8082
+ return (0, t.jsx)(Bc, {
8077
8083
  content: r.content,
8078
8084
  renderBlank: function renderBlank(t) {
8079
- return qc(t, {
8085
+ return Jc(t, {
8080
8086
  answers: e,
8081
8087
  blankLabel: i.blankLabel,
8082
8088
  disabled: n,
@@ -8087,12 +8093,12 @@ function Kc(_ref116) {
8087
8093
  }
8088
8094
  });
8089
8095
  }
8090
- function qc(e, n) {
8096
+ function Jc(e, n) {
8091
8097
  var r = e.blankId,
8092
8098
  i = n.item.blanks.indexOf(r),
8093
- a = $c(e.label, n.blankLabel, i);
8099
+ a = el(e.label, n.blankLabel, i);
8094
8100
  if (n.structure.config.candidateMode === "none") {
8095
- var _e2 = Yc(n.answers, r);
8101
+ var _e2 = Xc(n.answers, r);
8096
8102
  return (0, t.jsx)("input", {
8097
8103
  "aria-label": a,
8098
8104
  className: J["inline-input"],
@@ -8106,9 +8112,9 @@ function qc(e, n) {
8106
8112
  value: (_e2 == null ? void 0 : _e2.kind) === "text" ? _e2.value : ""
8107
8113
  });
8108
8114
  }
8109
- if (n.structure.config.candidateMode === "sharedPool") return Jc(r, a, n);
8110
- var o = Yc(n.answers, r),
8111
- s = Zc(n.item, r, n.structure.config.candidateMode, o);
8115
+ if (n.structure.config.candidateMode === "sharedPool") return Yc(r, a, n);
8116
+ var o = Xc(n.answers, r),
8117
+ s = Qc(n.item, r, n.structure.config.candidateMode, o);
8112
8118
  return (0, t.jsx)("span", {
8113
8119
  "aria-label": a,
8114
8120
  className: J["inline-blank-underline"],
@@ -8118,11 +8124,11 @@ function qc(e, n) {
8118
8124
  }) : a
8119
8125
  });
8120
8126
  }
8121
- function Jc(e, n, r) {
8127
+ function Yc(e, n, r) {
8122
8128
  var i, a;
8123
- var o = Yc(r.answers, e),
8129
+ var o = Xc(r.answers, e),
8124
8130
  s = (i = ((o == null ? void 0 : o.kind) === "option" ? o.optionIds : []).slice(0, 1)[0]) == null ? "" : i,
8125
- c = Qc(r.answers, e);
8131
+ c = $c(r.answers, e);
8126
8132
  return (0, t.jsxs)("select", {
8127
8133
  "aria-label": n,
8128
8134
  className: J["inline-select"],
@@ -8146,7 +8152,7 @@ function Jc(e, n, r) {
8146
8152
  })]
8147
8153
  });
8148
8154
  }
8149
- function Yc(e, t) {
8155
+ function Xc(e, t) {
8150
8156
  var n;
8151
8157
  return (n = Object.entries(e).find(function (_ref117) {
8152
8158
  var _ref118 = _slicedToArray(_ref117, 1),
@@ -8154,7 +8160,7 @@ function Yc(e, t) {
8154
8160
  return e === t;
8155
8161
  })) == null ? void 0 : n[1];
8156
8162
  }
8157
- function Xc(e, t, n) {
8163
+ function Zc(e, t, n) {
8158
8164
  var r, i;
8159
8165
  if (n === "sharedPool") {
8160
8166
  var a;
@@ -8164,13 +8170,13 @@ function Xc(e, t, n) {
8164
8170
  return e.blankId === t;
8165
8171
  })) == null ? void 0 : i.options) == null ? [] : r;
8166
8172
  }
8167
- function Zc(e, t, n, r) {
8173
+ function Qc(e, t, n, r) {
8168
8174
  var i = (r == null ? void 0 : r.kind) === "option" ? r.optionIds[0] : void 0;
8169
- if (i) return Xc(e, t, n).find(function (e) {
8175
+ if (i) return Zc(e, t, n).find(function (e) {
8170
8176
  return e.optionId === i;
8171
8177
  });
8172
8178
  }
8173
- function Qc(e, t) {
8179
+ function $c(e, t) {
8174
8180
  var n = new Set(),
8175
8181
  r = Object.entries(e);
8176
8182
  for (var _i2 = 0, _r6 = r; _i2 < _r6.length; _i2++) {
@@ -8194,10 +8200,10 @@ function Qc(e, t) {
8194
8200
  }
8195
8201
  return n;
8196
8202
  }
8197
- function $c(e, t, n) {
8203
+ function el(e, t, n) {
8198
8204
  return e || "".concat(t, " ").concat(n + 1);
8199
8205
  }
8200
- function el(_ref119) {
8206
+ function tl(_ref119) {
8201
8207
  var e = _ref119.disabled,
8202
8208
  n = _ref119.element,
8203
8209
  r = _ref119.item,
@@ -8207,8 +8213,8 @@ function el(_ref119) {
8207
8213
  s = _ref119.responseIndex,
8208
8214
  c = _ref119.showAnswer;
8209
8215
  var l = vn(r, n, !0),
8210
- u = Ec(l),
8211
- d = Rs(o, s, n, l.blanks),
8216
+ u = Dc(l),
8217
+ d = zs(o, s, n, l.blanks),
8212
8218
  f = u.map(function (e, n) {
8213
8219
  return {
8214
8220
  kind: "detailed",
@@ -8217,7 +8223,7 @@ function el(_ref119) {
8217
8223
  content: e
8218
8224
  }, "group-".concat(n, "-answer-").concat(r));
8219
8225
  }),
8220
- marker: bc(e.blankIds, l.blanks, i.blankLabel)
8226
+ marker: xc(e.blankIds, l.blanks, i.blankLabel)
8221
8227
  };
8222
8228
  });
8223
8229
  function p(e, t) {
@@ -8227,14 +8233,14 @@ function el(_ref119) {
8227
8233
  }
8228
8234
  return (0, t.jsxs)("div", {
8229
8235
  className: U["fill-text"],
8230
- children: [(0, t.jsx)(Kc, {
8236
+ children: [(0, t.jsx)(qc, {
8231
8237
  answers: d.answers,
8232
8238
  disabled: e,
8233
8239
  item: l,
8234
8240
  messages: i,
8235
8241
  onAnswerChange: p,
8236
8242
  structure: n
8237
- }), tl(l, n.config.candidateMode, i.candidateOptions), nl({
8243
+ }), nl(l, n.config.candidateMode, i.candidateOptions), rl({
8238
8244
  disabled: e,
8239
8245
  item: l,
8240
8246
  onAnswerChange: p,
@@ -8245,7 +8251,7 @@ function el(_ref119) {
8245
8251
  }) : null]
8246
8252
  });
8247
8253
  }
8248
- function tl(e, n, r) {
8254
+ function nl(e, n, r) {
8249
8255
  var i;
8250
8256
  var a = (i = e.candidateOptions) == null ? [] : i;
8251
8257
  return n !== "sharedPool" || a.length === 0 ? null : (0, t.jsxs)("div", {
@@ -8267,7 +8273,7 @@ function tl(e, n, r) {
8267
8273
  })]
8268
8274
  });
8269
8275
  }
8270
- function nl(_ref120) {
8276
+ function rl(_ref120) {
8271
8277
  var e = _ref120.disabled,
8272
8278
  n = _ref120.item,
8273
8279
  r = _ref120.onAnswerChange,
@@ -8287,7 +8293,7 @@ function nl(_ref120) {
8287
8293
  children: a.map(function (_ref121) {
8288
8294
  var t = _ref121.group,
8289
8295
  n = _ref121.marker;
8290
- return rl({
8296
+ return il({
8291
8297
  disabled: e,
8292
8298
  group: t,
8293
8299
  marker: n,
@@ -8297,7 +8303,7 @@ function nl(_ref120) {
8297
8303
  })
8298
8304
  });
8299
8305
  }
8300
- function rl(_ref122) {
8306
+ function il(_ref122) {
8301
8307
  var e = _ref122.disabled,
8302
8308
  n = _ref122.group,
8303
8309
  r = _ref122.marker,
@@ -8313,7 +8319,7 @@ function rl(_ref122) {
8313
8319
  }), (0, t.jsx)("div", {
8314
8320
  className: J["per-blank-candidate-list"],
8315
8321
  children: n.options.map(function (t) {
8316
- return il({
8322
+ return al({
8317
8323
  activeAnswer: o,
8318
8324
  blankId: n.blankId,
8319
8325
  disabled: e,
@@ -8324,7 +8330,7 @@ function rl(_ref122) {
8324
8330
  })]
8325
8331
  }, n.blankId);
8326
8332
  }
8327
- function il(_ref123) {
8333
+ function al(_ref123) {
8328
8334
  var e = _ref123.activeAnswer,
8329
8335
  n = _ref123.blankId,
8330
8336
  r = _ref123.disabled,
@@ -8337,7 +8343,7 @@ function il(_ref123) {
8337
8343
  "data-selected": o ? "true" : void 0,
8338
8344
  disabled: r,
8339
8345
  onClick: function onClick() {
8340
- return i(n, Xs(e, a.optionId, "single"));
8346
+ return i(n, Zs(e, a.optionId, "single"));
8341
8347
  },
8342
8348
  type: "button",
8343
8349
  children: (0, t.jsx)(G, {
@@ -8358,7 +8364,7 @@ var Y = {
8358
8364
  "option-marker": "_option-marker_3nny2_86",
8359
8365
  "table-option-marker": "_table-option-marker_3nny2_87"
8360
8366
  };
8361
- function al(_ref124) {
8367
+ function ol(_ref124) {
8362
8368
  var e = _ref124.disabled,
8363
8369
  n = _ref124.element,
8364
8370
  r = _ref124.item,
@@ -8367,7 +8373,7 @@ function al(_ref124) {
8367
8373
  o = _ref124.response,
8368
8374
  s = _ref124.responseIndex,
8369
8375
  c = _ref124.showAnswer;
8370
- var l = Bs(o, s),
8376
+ var l = Vs(o, s),
8371
8377
  u = tn(n.config.judgeAnswerMode),
8372
8378
  d = [{
8373
8379
  kind: "detailed",
@@ -8408,8 +8414,8 @@ function al(_ref124) {
8408
8414
  }) : null]
8409
8415
  });
8410
8416
  }
8411
- function ol(e) {
8412
- var n = sl(e);
8417
+ function sl(e) {
8418
+ var n = cl(e);
8413
8419
  return e.columns.reduce(function (r, i, a) {
8414
8420
  var o = i.items.map(function (r, o) {
8415
8421
  var s;
@@ -8417,7 +8423,7 @@ function ol(e) {
8417
8423
  kind: "detailed",
8418
8424
  contents: ((s = e.answers[r.itemId]) == null ? [] : s).map(function (e) {
8419
8425
  var t = n.get(e);
8420
- return t && Xe(a, t.columnIndex) ? t.item : void 0;
8426
+ return t && Ye(a, t.columnIndex) ? t.item : void 0;
8421
8427
  }).filter(function (e) {
8422
8428
  return !!e;
8423
8429
  }).map(function (e, n) {
@@ -8431,7 +8437,7 @@ function ol(e) {
8431
8437
  return [].concat(_toConsumableArray(r), _toConsumableArray(o));
8432
8438
  }, []);
8433
8439
  }
8434
- function sl(e) {
8440
+ function cl(e) {
8435
8441
  return e.columns.reduce(function (e, t, n) {
8436
8442
  return t.items.forEach(function (t) {
8437
8443
  return e.set(t.itemId, {
@@ -8441,7 +8447,7 @@ function sl(e) {
8441
8447
  }), e;
8442
8448
  }, new Map());
8443
8449
  }
8444
- function cl(_ref126) {
8450
+ function ll(_ref126) {
8445
8451
  var e = _ref126.disabled,
8446
8452
  r = _ref126.item,
8447
8453
  i = _ref126.messages,
@@ -8459,7 +8465,7 @@ function cl(_ref126) {
8459
8465
  f = _ref130[1],
8460
8466
  p = (0, n.useRef)(null),
8461
8467
  m = (0, n.useRef)(new Map()),
8462
- h = Hs(o, s),
8468
+ h = Us(o, s),
8463
8469
  g = {
8464
8470
  gridTemplateColumns: "repeat(".concat(r.columns.length, ", minmax(12rem, 1fr))")
8465
8471
  },
@@ -8530,13 +8536,13 @@ function cl(_ref126) {
8530
8536
  }
8531
8537
  function x(t, n) {
8532
8538
  if (e) return;
8533
- var r = l ? Ze(l, {
8539
+ var r = l ? Xe(l, {
8534
8540
  columnIndex: t,
8535
8541
  itemId: n
8536
8542
  }) : null;
8537
8543
  if (r) {
8538
8544
  a(C(C({}, h), {}, {
8539
- connections: Zs(h.connections, r.fromItemId, r.toItemId)
8545
+ connections: Qs(h.connections, r.fromItemId, r.toItemId)
8540
8546
  })), u(null);
8541
8547
  return;
8542
8548
  }
@@ -8607,12 +8613,12 @@ function cl(_ref126) {
8607
8613
  })
8608
8614
  })]
8609
8615
  }), c ? (0, t.jsx)(K, {
8610
- groups: ol(r),
8616
+ groups: sl(r),
8611
8617
  title: i.standardAnswer
8612
8618
  }) : null]
8613
8619
  });
8614
8620
  }
8615
- function ll(e) {
8621
+ function ul(e) {
8616
8622
  var n, r;
8617
8623
  var i = e.columns[0],
8618
8624
  a = e.columns[1],
@@ -8635,7 +8641,7 @@ function ll(e) {
8635
8641
  };
8636
8642
  });
8637
8643
  }
8638
- var ul = {
8644
+ var dl = {
8639
8645
  board: "_board_1q6ar_1",
8640
8646
  "matched-rows": "_matched-rows_1q6ar_6",
8641
8647
  "matched-row": "_matched-row_1q6ar_6",
@@ -8646,7 +8652,7 @@ var ul = {
8646
8652
  matched: "_matched_1q6ar_6",
8647
8653
  marker: "_marker_1q6ar_66"
8648
8654
  };
8649
- function dl(_ref131) {
8655
+ function fl(_ref131) {
8650
8656
  var e = _ref131.disabled,
8651
8657
  r = _ref131.item,
8652
8658
  i = _ref131.messages,
@@ -8658,17 +8664,17 @@ function dl(_ref131) {
8658
8664
  _ref133 = _slicedToArray(_ref132, 2),
8659
8665
  l = _ref133[0],
8660
8666
  u = _ref133[1],
8661
- d = Us(o, s),
8662
- f = fl(r, d.connections);
8667
+ d = Ws(o, s),
8668
+ f = pl(r, d.connections);
8663
8669
  function p(t, n) {
8664
8670
  if (e) return;
8665
- var r = l ? lt(l, {
8671
+ var r = l ? ct(l, {
8666
8672
  columnIndex: t,
8667
8673
  itemId: n
8668
8674
  }) : null;
8669
8675
  if (r) {
8670
8676
  a(C(C({}, d), {}, {
8671
- connections: Qs(d.connections, r.fromItemId, r.toItemId)
8677
+ connections: $s(d.connections, r.fromItemId, r.toItemId)
8672
8678
  })), u(null);
8673
8679
  return;
8674
8680
  }
@@ -8681,7 +8687,7 @@ function dl(_ref131) {
8681
8687
  var i = (l == null ? void 0 : l.itemId) === n.item.itemId;
8682
8688
  return (0, t.jsxs)("button", {
8683
8689
  "aria-pressed": i,
8684
- className: H(ul.item, i && ul.selected, r && ul.matched),
8690
+ className: H(dl.item, i && dl.selected, r && dl.matched),
8685
8691
  "data-testid": "matching-player-item-".concat(n.item.itemId),
8686
8692
  disabled: e,
8687
8693
  onClick: function onClick() {
@@ -8689,7 +8695,7 @@ function dl(_ref131) {
8689
8695
  },
8690
8696
  type: "button",
8691
8697
  children: [n.marker ? (0, t.jsx)("span", {
8692
- className: ul.marker,
8698
+ className: dl.marker,
8693
8699
  children: n.marker
8694
8700
  }) : null, (0, t.jsx)(G, {
8695
8701
  content: n.item.content
@@ -8699,12 +8705,12 @@ function dl(_ref131) {
8699
8705
  return (0, t.jsxs)("div", {
8700
8706
  className: W.element,
8701
8707
  children: [(0, t.jsxs)("div", {
8702
- className: ul.board,
8708
+ className: dl.board,
8703
8709
  children: [f.rows.length > 0 ? (0, t.jsx)("div", {
8704
- className: ul["matched-rows"],
8710
+ className: dl["matched-rows"],
8705
8711
  children: f.rows.map(function (e) {
8706
8712
  return (0, t.jsxs)("div", {
8707
- className: ul["matched-row"],
8713
+ className: dl["matched-row"],
8708
8714
  "data-testid": "matching-player-row-".concat(e.from.item.itemId, "-").concat(e.to.item.itemId),
8709
8715
  children: [m(e.from, !0), m(e.to, !0)]
8710
8716
  }, "".concat(e.from.item.itemId, "-").concat(e.to.item.itemId));
@@ -8712,11 +8718,11 @@ function dl(_ref131) {
8712
8718
  }) : null, f.unmatchedColumns.some(function (e) {
8713
8719
  return e.length > 0;
8714
8720
  }) ? (0, t.jsx)("div", {
8715
- className: ul.columns,
8721
+ className: dl.columns,
8716
8722
  children: f.unmatchedColumns.map(function (e, n) {
8717
8723
  var i, a;
8718
8724
  return (0, t.jsx)("section", {
8719
- className: ul.column,
8725
+ className: dl.column,
8720
8726
  children: e.map(function (e) {
8721
8727
  return m(e, !1);
8722
8728
  })
@@ -8724,12 +8730,12 @@ function dl(_ref131) {
8724
8730
  })
8725
8731
  }) : null]
8726
8732
  }), c ? (0, t.jsx)(K, {
8727
- groups: ll(r),
8733
+ groups: ul(r),
8728
8734
  title: i.standardAnswer
8729
8735
  }) : null]
8730
8736
  });
8731
8737
  }
8732
- function fl(e, t) {
8738
+ function pl(e, t) {
8733
8739
  var n;
8734
8740
  var r = e.columns.map(function (e, t) {
8735
8741
  return e.items.map(function (n, r) {
@@ -8767,7 +8773,7 @@ function fl(e, t) {
8767
8773
  })
8768
8774
  };
8769
8775
  }
8770
- function pl(e, t) {
8776
+ function ml(e, t) {
8771
8777
  return an(t, e.config.optionLabelStyle).map(function (e) {
8772
8778
  return {
8773
8779
  kind: "markerOnly",
@@ -8775,7 +8781,7 @@ function pl(e, t) {
8775
8781
  };
8776
8782
  });
8777
8783
  }
8778
- function ml(_ref134) {
8784
+ function hl(_ref134) {
8779
8785
  var e = _ref134.availableWidth,
8780
8786
  t = _ref134.columnGap,
8781
8787
  n = _ref134.optionCount,
@@ -8785,10 +8791,10 @@ function ml(_ref134) {
8785
8791
  for (var _n5 = i; _n5 >= 2; --_n5) if (i % _n5 === 0 && (e - Math.max(0, t) * (_n5 - 1)) / _n5 >= r) return _n5;
8786
8792
  return 1;
8787
8793
  }
8788
- var hl = {
8794
+ var gl = {
8789
8795
  list: "_list_1xo1n_1"
8790
8796
  };
8791
- function gl(_ref135) {
8797
+ function _l(_ref135) {
8792
8798
  var e = _ref135.children;
8793
8799
  var r = (0, n.useRef)(null),
8794
8800
  _ref136 = (0, n.useState)(1),
@@ -8805,8 +8811,8 @@ function gl(_ref135) {
8805
8811
  function o() {
8806
8812
  var r = t.getBoundingClientRect().width,
8807
8813
  i = Number.parseFloat(getComputedStyle(t).columnGap) || 0,
8808
- o = _l(t),
8809
- s = ml({
8814
+ o = vl(t),
8815
+ s = hl({
8810
8816
  availableWidth: r,
8811
8817
  columnGap: i,
8812
8818
  optionCount: n.Children.count(e),
@@ -8827,7 +8833,7 @@ function gl(_ref135) {
8827
8833
  i !== null && cancelAnimationFrame(i), t.removeEventListener("load", s, !0), c.disconnect();
8828
8834
  };
8829
8835
  }), (0, t.jsx)("ol", {
8830
- className: "".concat(W["option-list"], " ").concat(hl.list),
8836
+ className: "".concat(W["option-list"], " ").concat(gl.list),
8831
8837
  "data-column-count": i,
8832
8838
  "data-question-option-grid": "true",
8833
8839
  ref: r,
@@ -8835,7 +8841,7 @@ function gl(_ref135) {
8835
8841
  children: e
8836
8842
  });
8837
8843
  }
8838
- function _l(e) {
8844
+ function vl(e) {
8839
8845
  var t = e.parentElement;
8840
8846
  if (!t || e.children.length === 0) return 0;
8841
8847
  var n = e.cloneNode(!1);
@@ -8854,13 +8860,13 @@ function _l(e) {
8854
8860
  var r = n.getBoundingClientRect().width;
8855
8861
  return n.remove(), r;
8856
8862
  }
8857
- var vl = {
8863
+ var yl = {
8858
8864
  "table-wrap": "_table-wrap_n67ah_1",
8859
8865
  table: "_table_n67ah_1",
8860
8866
  "table-option-column": "_table-option-column_n67ah_17",
8861
8867
  "table-option-marker": "_table-option-marker_n67ah_45"
8862
8868
  };
8863
- function yl(_ref138) {
8869
+ function bl(_ref138) {
8864
8870
  var e = _ref138.disabled,
8865
8871
  n = _ref138.element,
8866
8872
  r = _ref138.item,
@@ -8869,24 +8875,24 @@ function yl(_ref138) {
8869
8875
  o = _ref138.response,
8870
8876
  s = _ref138.responseIndex,
8871
8877
  c = _ref138.showAnswer;
8872
- var l = Is(o, s),
8878
+ var l = Ls(o, s),
8873
8879
  u = rn(r, n.config.optionLabelStyle);
8874
8880
  function d(e) {
8875
8881
  a(C(C({}, l), {}, {
8876
- selectedOptionIds: Ys(l.selectedOptionIds, e, n.config.selectionType)
8882
+ selectedOptionIds: Xs(l.selectedOptionIds, e, n.config.selectionType)
8877
8883
  }));
8878
8884
  }
8879
8885
  if (n.config.renderer === "table") {
8880
- var _a2 = pl(n, r);
8886
+ var _a2 = ml(n, r);
8881
8887
  return (0, t.jsxs)("div", {
8882
8888
  className: W.element,
8883
8889
  children: [(0, t.jsx)("div", {
8884
- className: vl["table-wrap"],
8890
+ className: yl["table-wrap"],
8885
8891
  children: (0, t.jsxs)("table", {
8886
- className: vl.table,
8892
+ className: yl.table,
8887
8893
  children: [(0, t.jsxs)("colgroup", {
8888
8894
  children: [(0, t.jsx)("col", {
8889
- className: vl["table-option-column"]
8895
+ className: yl["table-option-column"]
8890
8896
  }), r.columns.map(function (e) {
8891
8897
  return (0, t.jsx)("col", {}, e.id);
8892
8898
  })]
@@ -8949,10 +8955,10 @@ function yl(_ref138) {
8949
8955
  }) : null]
8950
8956
  });
8951
8957
  }
8952
- var f = pl(n, r);
8958
+ var f = ml(n, r);
8953
8959
  return (0, t.jsxs)("div", {
8954
8960
  className: W.element,
8955
- children: [(0, t.jsx)(gl, {
8961
+ children: [(0, t.jsx)(_l, {
8956
8962
  children: u.map(function (n) {
8957
8963
  var r = l.selectedOptionIds.includes(n.optionId);
8958
8964
  return (0, t.jsx)("li", {
@@ -8982,7 +8988,7 @@ function yl(_ref138) {
8982
8988
  }) : null]
8983
8989
  });
8984
8990
  }
8985
- function bl(e) {
8991
+ function xl(e) {
8986
8992
  var n = new Map(e.sortOptions.map(function (e) {
8987
8993
  return [e.id, e];
8988
8994
  }));
@@ -8997,7 +9003,7 @@ function bl(e) {
8997
9003
  };
8998
9004
  });
8999
9005
  }
9000
- function xl(_ref139) {
9006
+ function Sl(_ref139) {
9001
9007
  var e = _ref139.disabled,
9002
9008
  n = _ref139.item,
9003
9009
  r = _ref139.messages,
@@ -9005,7 +9011,7 @@ function xl(_ref139) {
9005
9011
  a = _ref139.response,
9006
9012
  o = _ref139.responseIndex,
9007
9013
  s = _ref139.showAnswer;
9008
- var c = Ws(a, o, n),
9014
+ var c = Gs(a, o, n),
9009
9015
  l = new Map(n.sortOptions.map(function (e) {
9010
9016
  return [e.id, e];
9011
9017
  })),
@@ -9016,7 +9022,7 @@ function xl(_ref139) {
9016
9022
  });
9017
9023
  function d(e, t) {
9018
9024
  i(C(C({}, c), {}, {
9019
- orderedOptionIds: ec(c.orderedOptionIds, n, e, t)
9025
+ orderedOptionIds: tc(c.orderedOptionIds, n, e, t)
9020
9026
  }));
9021
9027
  }
9022
9028
  return (0, t.jsxs)("div", {
@@ -9056,12 +9062,12 @@ function xl(_ref139) {
9056
9062
  }, n.id);
9057
9063
  })
9058
9064
  }), s ? (0, t.jsx)(K, {
9059
- groups: bl(n),
9065
+ groups: xl(n),
9060
9066
  title: r.standardAnswer
9061
9067
  }) : null]
9062
9068
  });
9063
9069
  }
9064
- var Sl = {
9070
+ var Cl = {
9065
9071
  content: "_content_63948_1",
9066
9072
  paragraph: "_paragraph_63948_10",
9067
9073
  marker: "_marker_63948_14",
@@ -9069,7 +9075,7 @@ var Sl = {
9069
9075
  "marker-selected": "_marker-selected_63948_31",
9070
9076
  "marker-answer": "_marker-answer_63948_37"
9071
9077
  };
9072
- function Cl(_ref140) {
9078
+ function wl(_ref140) {
9073
9079
  var _ref140$answerMarkers = _ref140.answerMarkers,
9074
9080
  e = _ref140$answerMarkers === void 0 ? [] : _ref140$answerMarkers,
9075
9081
  r = _ref140.content,
@@ -9087,26 +9093,26 @@ function Cl(_ref140) {
9087
9093
  type: "paragraph"
9088
9094
  }];
9089
9095
  return (0, t.jsx)("div", {
9090
- className: Sl.content,
9096
+ className: Cl.content,
9091
9097
  children: c.map(function (e, t) {
9092
9098
  return l(e, "node-".concat(t));
9093
9099
  })
9094
9100
  });
9095
9101
  function l(e, n) {
9096
- if (Tl(e)) return u(e, n);
9097
- if (!wl(e)) return null;
9102
+ if (El(e)) return u(e, n);
9103
+ if (!Tl(e)) return null;
9098
9104
  var r = e.children.map(function (e, t) {
9099
9105
  return l(e, "".concat(n, "-").concat(t));
9100
9106
  });
9101
9107
  return e.type === "paragraph" ? (0, t.jsx)("p", {
9102
- className: Sl.paragraph,
9108
+ className: Cl.paragraph,
9103
9109
  children: r
9104
9110
  }, n) : (0, t.jsx)("span", {
9105
9111
  children: r
9106
9112
  }, n);
9107
9113
  }
9108
9114
  function u(e, r) {
9109
- var i = St(e);
9115
+ var i = xt(e);
9110
9116
  if (!i) return (0, t.jsx)(n.Fragment, {
9111
9117
  children: e.text
9112
9118
  }, r);
@@ -9118,7 +9124,7 @@ function Cl(_ref140) {
9118
9124
  r = s && e.includes(t);
9119
9125
  return {
9120
9126
  answer: r,
9121
- className: Ba(Sl.marker, a ? Sl["marker-button"] : "", n ? Sl["marker-selected"] : "", r ? Sl["marker-answer"] : ""),
9127
+ className: Ba(Cl.marker, a ? Cl["marker-button"] : "", n ? Cl["marker-selected"] : "", r ? Cl["marker-answer"] : ""),
9122
9128
  selected: n
9123
9129
  };
9124
9130
  }
@@ -9146,23 +9152,23 @@ function Cl(_ref140) {
9146
9152
  }, r);
9147
9153
  }
9148
9154
  }
9149
- function wl(e) {
9155
+ function Tl(e) {
9150
9156
  return !!(e && _typeof(e) == "object" && "children" in e && Array.isArray(e.children));
9151
9157
  }
9152
- function Tl(e) {
9158
+ function El(e) {
9153
9159
  return !!(e && _typeof(e) == "object" && "text" in e && _typeof(e.text) == "string");
9154
9160
  }
9155
- function El(_ref141) {
9161
+ function Dl(_ref141) {
9156
9162
  var e = _ref141.item,
9157
9163
  n = _ref141.messages,
9158
9164
  r = _ref141.showAnswer;
9159
- var i = bt(e.content.json).filter(function (t) {
9165
+ var i = yt(e.content.json).filter(function (t) {
9160
9166
  return e.answers.includes(t.markerId);
9161
9167
  }).map(function (e) {
9162
9168
  return e.text;
9163
9169
  });
9164
9170
  return (0, t.jsxs)(t.Fragment, {
9165
- children: [(0, t.jsx)(Cl, {
9171
+ children: [(0, t.jsx)(wl, {
9166
9172
  answerMarkers: e.answers,
9167
9173
  content: e.content,
9168
9174
  showAnswer: r
@@ -9176,7 +9182,7 @@ function El(_ref141) {
9176
9182
  }) : null]
9177
9183
  });
9178
9184
  }
9179
- function Dl(_ref142) {
9185
+ function Ol(_ref142) {
9180
9186
  var e = _ref142.disabled,
9181
9187
  n = _ref142.item,
9182
9188
  r = _ref142.messages,
@@ -9184,24 +9190,24 @@ function Dl(_ref142) {
9184
9190
  a = _ref142.response,
9185
9191
  o = _ref142.responseIndex,
9186
9192
  s = _ref142.showAnswer;
9187
- var c = Gs(a, o);
9188
- return s ? (0, t.jsx)(El, {
9193
+ var c = Ks(a, o);
9194
+ return s ? (0, t.jsx)(Dl, {
9189
9195
  item: n,
9190
9196
  messages: r,
9191
9197
  showAnswer: s
9192
- }) : (0, t.jsx)(Cl, {
9198
+ }) : (0, t.jsx)(wl, {
9193
9199
  answerMarkers: n.answers,
9194
9200
  content: n.content,
9195
9201
  disabled: e,
9196
9202
  onMarkerClick: function onMarkerClick(e) {
9197
9203
  return i(C(C({}, c), {}, {
9198
- selectedMarkers: tc(c.selectedMarkers, e)
9204
+ selectedMarkers: nc(c.selectedMarkers, e)
9199
9205
  }));
9200
9206
  },
9201
9207
  selectedMarkers: c.selectedMarkers
9202
9208
  });
9203
9209
  }
9204
- function Ol(_ref143) {
9210
+ function kl(_ref143) {
9205
9211
  var e = _ref143.disabled,
9206
9212
  n = _ref143.locale,
9207
9213
  r = _ref143.label,
@@ -9210,7 +9216,7 @@ function Ol(_ref143) {
9210
9216
  o = _ref143.response,
9211
9217
  s = _ref143.responseIndex,
9212
9218
  c = _ref143.uploadImage;
9213
- var l = Ks(o, s);
9219
+ var l = qs(o, s);
9214
9220
  return e ? A(l.content) ? null : (0, t.jsx)(G, {
9215
9221
  content: l.content
9216
9222
  }) : (0, t.jsx)(Da, {
@@ -9228,7 +9234,7 @@ function Ol(_ref143) {
9228
9234
  value: l.content
9229
9235
  });
9230
9236
  }
9231
- function kl(e, n) {
9237
+ function Al(e, n) {
9232
9238
  return e.blanks.reduce(function (r, i) {
9233
9239
  var a;
9234
9240
  var o = (a = e.answers[i]) == null ? void 0 : a.trim();
@@ -9237,15 +9243,15 @@ function kl(e, n) {
9237
9243
  contents: [(0, t.jsx)(G, {
9238
9244
  content: O(o)
9239
9245
  }, "".concat(i, "-answer"))],
9240
- marker: bc([i], e.blanks, n)
9246
+ marker: xc([i], e.blanks, n)
9241
9247
  }]) : r;
9242
9248
  }, []);
9243
9249
  }
9244
- var Al = {
9250
+ var jl = {
9245
9251
  "word-builder-blank": "_word-builder-blank_ftw6q_1",
9246
9252
  "word-builder-candidate-list": "_word-builder-candidate-list_ftw6q_30"
9247
9253
  };
9248
- function jl(_ref144) {
9254
+ function Ml(_ref144) {
9249
9255
  var e = _ref144.disabled,
9250
9256
  n = _ref144.element,
9251
9257
  r = _ref144.item,
@@ -9255,8 +9261,8 @@ function jl(_ref144) {
9255
9261
  s = _ref144.responseIndex,
9256
9262
  c = _ref144.showAnswer;
9257
9263
  var l = _n(r, !0, n),
9258
- u = zs(o, s, l.blanks),
9259
- d = kl(l, i.blankLabel);
9264
+ u = Bs(o, s, l.blanks),
9265
+ d = Al(l, i.blankLabel);
9260
9266
  function f(e, t) {
9261
9267
  a(C(C({}, u), {}, {
9262
9268
  answers: C(C({}, u.answers), {}, _defineProperty({}, e, t))
@@ -9285,7 +9291,7 @@ function jl(_ref144) {
9285
9291
  }
9286
9292
  return (0, t.jsxs)("div", {
9287
9293
  className: U["fill-text"],
9288
- children: [(0, t.jsx)(zc, {
9294
+ children: [(0, t.jsx)(Bc, {
9289
9295
  content: l.content,
9290
9296
  renderBlank: function renderBlank(_ref145) {
9291
9297
  var n = _ref145.blankId,
@@ -9293,7 +9299,7 @@ function jl(_ref144) {
9293
9299
  a = _ref145.label;
9294
9300
  var o, s;
9295
9301
  var c = (o = u.answers[n]) == null ? "" : o,
9296
- l = Ml({
9302
+ l = Nl({
9297
9303
  answers: c,
9298
9304
  blankLabel: i.blankLabel,
9299
9305
  canClear: !e && !!c.trim(),
@@ -9302,7 +9308,7 @@ function jl(_ref144) {
9302
9308
  });
9303
9309
  return (0, t.jsx)("button", {
9304
9310
  "aria-label": l,
9305
- className: Al["word-builder-blank"],
9311
+ className: jl["word-builder-blank"],
9306
9312
  disabled: e,
9307
9313
  onClick: function onClick() {
9308
9314
  return p(n);
@@ -9319,7 +9325,7 @@ function jl(_ref144) {
9319
9325
  });
9320
9326
  }
9321
9327
  }), (0, t.jsx)("div", {
9322
- className: Al["word-builder-candidate-list"],
9328
+ className: jl["word-builder-candidate-list"],
9323
9329
  children: l.candidateOptions.map(function (n, r) {
9324
9330
  return (0, t.jsx)("button", {
9325
9331
  disabled: e,
@@ -9340,7 +9346,7 @@ function jl(_ref144) {
9340
9346
  }) : null]
9341
9347
  });
9342
9348
  }
9343
- function Ml(_ref146) {
9349
+ function Nl(_ref146) {
9344
9350
  var e = _ref146.answers,
9345
9351
  t = _ref146.blankLabel,
9346
9352
  n = _ref146.canClear,
@@ -9349,7 +9355,7 @@ function Ml(_ref146) {
9349
9355
  var a = i || "".concat(t).concat(r + 1);
9350
9356
  return !n || !e.trim() ? a : t === "\u7A7A" ? "".concat(a, "\uFF0C\u70B9\u51FB\u6E05\u7A7A") : "".concat(a, ", click to clear");
9351
9357
  }
9352
- function Nl(_ref147) {
9358
+ function Pl(_ref147) {
9353
9359
  var e = _ref147.disabled,
9354
9360
  n = _ref147.element,
9355
9361
  r = _ref147.item,
@@ -9363,7 +9369,7 @@ function Nl(_ref147) {
9363
9369
  if (n.type !== r.type) throw Error("\u9898\u76EE\u5143\u7D20\u7ED3\u6784\u4E0D\u5339\u914D\uFF0Cexpected=".concat(n.type, "\uFF0Cactual=").concat(r.type));
9364
9370
  return n.type === "richText" ? (0, t.jsx)(G, {
9365
9371
  content: r.content
9366
- }) : n.type === "textResponse" ? (0, t.jsx)(Ol, {
9372
+ }) : n.type === "textResponse" ? (0, t.jsx)(kl, {
9367
9373
  disabled: e,
9368
9374
  label: n.name,
9369
9375
  locale: i,
@@ -9372,7 +9378,7 @@ function Nl(_ref147) {
9372
9378
  response: s,
9373
9379
  responseIndex: c,
9374
9380
  uploadImage: u
9375
- }) : n.type === "ordering" ? (0, t.jsx)(xl, {
9381
+ }) : n.type === "ordering" ? (0, t.jsx)(Sl, {
9376
9382
  disabled: e,
9377
9383
  item: r,
9378
9384
  messages: a,
@@ -9380,7 +9386,7 @@ function Nl(_ref147) {
9380
9386
  response: s,
9381
9387
  responseIndex: c,
9382
9388
  showAnswer: l
9383
- }) : n.type === "classification" ? (0, t.jsx)(Ic, {
9389
+ }) : n.type === "classification" ? (0, t.jsx)(Lc, {
9384
9390
  disabled: e,
9385
9391
  item: r,
9386
9392
  messages: a,
@@ -9388,7 +9394,7 @@ function Nl(_ref147) {
9388
9394
  response: s,
9389
9395
  responseIndex: c,
9390
9396
  showAnswer: l
9391
- }) : n.type === "textMarker" ? (0, t.jsx)(Dl, {
9397
+ }) : n.type === "textMarker" ? (0, t.jsx)(Ol, {
9392
9398
  disabled: e,
9393
9399
  item: r,
9394
9400
  messages: a,
@@ -9396,7 +9402,7 @@ function Nl(_ref147) {
9396
9402
  response: s,
9397
9403
  responseIndex: c,
9398
9404
  showAnswer: l
9399
- }) : Pl({
9405
+ }) : Fl({
9400
9406
  disabled: e,
9401
9407
  element: n,
9402
9408
  item: r,
@@ -9409,7 +9415,7 @@ function Nl(_ref147) {
9409
9415
  uploadImage: u
9410
9416
  });
9411
9417
  }
9412
- function Pl(_ref148) {
9418
+ function Fl(_ref148) {
9413
9419
  var e = _ref148.disabled,
9414
9420
  n = _ref148.element,
9415
9421
  r = _ref148.item,
@@ -9420,7 +9426,7 @@ function Pl(_ref148) {
9420
9426
  c = _ref148.showAnswer;
9421
9427
  switch (n.type) {
9422
9428
  case "choice":
9423
- return (0, t.jsx)(yl, {
9429
+ return (0, t.jsx)(bl, {
9424
9430
  disabled: e,
9425
9431
  element: n,
9426
9432
  item: r,
@@ -9431,7 +9437,7 @@ function Pl(_ref148) {
9431
9437
  showAnswer: c
9432
9438
  });
9433
9439
  case "fill":
9434
- return (0, t.jsx)(Mc, {
9440
+ return (0, t.jsx)(Nc, {
9435
9441
  disabled: e,
9436
9442
  item: r,
9437
9443
  messages: i,
@@ -9441,7 +9447,7 @@ function Pl(_ref148) {
9441
9447
  showAnswer: c
9442
9448
  });
9443
9449
  case "inlineFill":
9444
- return (0, t.jsx)(el, {
9450
+ return (0, t.jsx)(tl, {
9445
9451
  disabled: e,
9446
9452
  element: n,
9447
9453
  item: r,
@@ -9452,7 +9458,7 @@ function Pl(_ref148) {
9452
9458
  showAnswer: c
9453
9459
  });
9454
9460
  case "wordBuilder":
9455
- return (0, t.jsx)(jl, {
9461
+ return (0, t.jsx)(Ml, {
9456
9462
  disabled: e,
9457
9463
  element: n,
9458
9464
  item: r,
@@ -9463,7 +9469,7 @@ function Pl(_ref148) {
9463
9469
  showAnswer: c
9464
9470
  });
9465
9471
  case "judgement":
9466
- return (0, t.jsx)(al, {
9472
+ return (0, t.jsx)(ol, {
9467
9473
  disabled: e,
9468
9474
  element: n,
9469
9475
  item: r,
@@ -9474,7 +9480,7 @@ function Pl(_ref148) {
9474
9480
  showAnswer: c
9475
9481
  });
9476
9482
  case "lineConnect":
9477
- return (0, t.jsx)(cl, {
9483
+ return (0, t.jsx)(ll, {
9478
9484
  disabled: e,
9479
9485
  item: r,
9480
9486
  messages: i,
@@ -9484,7 +9490,7 @@ function Pl(_ref148) {
9484
9490
  showAnswer: c
9485
9491
  });
9486
9492
  case "matching":
9487
- return (0, t.jsx)(dl, {
9493
+ return (0, t.jsx)(fl, {
9488
9494
  disabled: e,
9489
9495
  item: r,
9490
9496
  messages: i,
@@ -9495,17 +9501,17 @@ function Pl(_ref148) {
9495
9501
  });
9496
9502
  }
9497
9503
  }
9498
- var Fl = ["locale"];
9499
- function Il(e) {
9504
+ var Il = ["locale"];
9505
+ function Ll(e) {
9500
9506
  var _e$locale = e.locale,
9501
9507
  n = _e$locale === void 0 ? "zh-CN" : _e$locale,
9502
- r = ma(e, Fl),
9508
+ r = ma(e, Il),
9503
9509
  i = us(r.value, r.questionTypeTemplates),
9504
9510
  a = hs(r.response, i);
9505
- return (0, t.jsx)(Ll, C(C({}, r), {}, {
9511
+ return (0, t.jsx)(Rl, C(C({}, r), {}, {
9506
9512
  childIndexPath: [],
9507
9513
  locale: n,
9508
- messages: yc(n),
9514
+ messages: bc(n),
9509
9515
  onResponseChange: function onResponseChange(e) {
9510
9516
  return r.onResponseChange(ms(e, i));
9511
9517
  },
@@ -9513,7 +9519,7 @@ function Il(e) {
9513
9519
  value: i
9514
9520
  }));
9515
9521
  }
9516
- function Ll(_ref149) {
9522
+ function Rl(_ref149) {
9517
9523
  var e = _ref149.childIndexPath,
9518
9524
  n = _ref149.className,
9519
9525
  _ref149$disabled = _ref149.disabled,
@@ -9539,7 +9545,7 @@ function Ll(_ref149) {
9539
9545
  children: a.missingQuestionTypeTemplate
9540
9546
  })
9541
9547
  });
9542
- var h = Rl({
9548
+ var h = zl({
9543
9549
  childIndexPath: e,
9544
9550
  disabled: r,
9545
9551
  locale: i,
@@ -9556,18 +9562,18 @@ function Ll(_ref149) {
9556
9562
  });
9557
9563
  return (0, t.jsx)("div", {
9558
9564
  className: H(U.root, n),
9559
- children: Hl(m, p) ? (0, t.jsx)("div", {
9565
+ children: Ul(m, p) ? (0, t.jsx)("div", {
9560
9566
  className: U.empty,
9561
9567
  children: a.previewEmpty
9562
9568
  }) : h
9563
9569
  });
9564
9570
  }
9565
- function Rl(e) {
9571
+ function zl(e) {
9566
9572
  return (0, t.jsxs)(t.Fragment, {
9567
- children: [zl(e), Vl(e), Bl(e)]
9573
+ children: [Bl(e), Hl(e), Vl(e)]
9568
9574
  });
9569
9575
  }
9570
- function zl(_ref150) {
9576
+ function Bl(_ref150) {
9571
9577
  var e = _ref150.disabled,
9572
9578
  n = _ref150.locale,
9573
9579
  r = _ref150.messages,
@@ -9586,14 +9592,14 @@ function zl(_ref150) {
9586
9592
  }).length;
9587
9593
  return (0, t.jsx)("section", {
9588
9594
  className: U.element,
9589
- children: (0, t.jsx)(Nl, {
9595
+ children: (0, t.jsx)(Pl, {
9590
9596
  disabled: e,
9591
9597
  element: u,
9592
9598
  item: f,
9593
9599
  locale: n,
9594
9600
  messages: r,
9595
9601
  onResponseItemChange: function onResponseItemChange(e) {
9596
- return i(qs(a, p, e));
9602
+ return i(Js(a, p, e));
9597
9603
  },
9598
9604
  response: a,
9599
9605
  responseIndex: p,
@@ -9604,7 +9610,7 @@ function zl(_ref150) {
9604
9610
  })
9605
9611
  });
9606
9612
  }
9607
- function Bl(_ref151) {
9613
+ function Vl(_ref151) {
9608
9614
  var e = _ref151.disabled,
9609
9615
  n = _ref151.locale,
9610
9616
  r = _ref151.messages,
@@ -9619,12 +9625,12 @@ function Bl(_ref151) {
9619
9625
  var l = Xt(c, o, a);
9620
9626
  return A(l.content) ? null : (0, t.jsxs)("section", {
9621
9627
  className: U.extra,
9622
- children: [(0, t.jsx)(kc, {
9628
+ children: [(0, t.jsx)(Ac, {
9623
9629
  children: a.name
9624
- }), (0, t.jsx)(Nl, {
9630
+ }), (0, t.jsx)(Pl, {
9625
9631
  disabled: e,
9626
- element: Ul(a),
9627
- item: Wl(l),
9632
+ element: Wl(a),
9633
+ item: Gl(l),
9628
9634
  locale: n,
9629
9635
  messages: r,
9630
9636
  onResponseItemChange: function onResponseItemChange() {
@@ -9639,7 +9645,7 @@ function Bl(_ref151) {
9639
9645
  })
9640
9646
  }) : null;
9641
9647
  }
9642
- function Vl(_ref152) {
9648
+ function Hl(_ref152) {
9643
9649
  var e = _ref152.childIndexPath,
9644
9650
  n = _ref152.disabled,
9645
9651
  r = _ref152.locale,
@@ -9652,16 +9658,16 @@ function Vl(_ref152) {
9652
9658
  u = _ref152.questionTypeTemplates,
9653
9659
  d = _ref152.uploadImage,
9654
9660
  f = _ref152.value;
9655
- return f.children.length === 0 ? null : (0, t.jsx)(Ac, {
9661
+ return f.children.length === 0 ? null : (0, t.jsx)(jc, {
9656
9662
  childIndexPath: e,
9657
9663
  disabled: n,
9658
9664
  messages: i,
9659
9665
  onChildResponseChange: function onChildResponseChange(e, t) {
9660
- return a(Js(o, e, t));
9666
+ return a(Ys(o, e, t));
9661
9667
  },
9662
9668
  response: o,
9663
9669
  renderChild: function renderChild(e, a, o, f) {
9664
- return (0, t.jsx)(Ll, {
9670
+ return (0, t.jsx)(Rl, {
9665
9671
  childIndexPath: f,
9666
9672
  disabled: n,
9667
9673
  locale: r,
@@ -9680,28 +9686,28 @@ function Vl(_ref152) {
9680
9686
  value: f
9681
9687
  });
9682
9688
  }
9683
- function Hl(e, t) {
9689
+ function Ul(e, t) {
9684
9690
  return t.elements.length === 0 && t.extras.length === 0 && t.children.length === 0;
9685
9691
  }
9686
- function Ul(e) {
9692
+ function Wl(e) {
9687
9693
  return {
9688
9694
  config: {},
9689
9695
  name: e.name,
9690
9696
  type: "richText"
9691
9697
  };
9692
9698
  }
9693
- function Wl(e) {
9699
+ function Gl(e) {
9694
9700
  return {
9695
9701
  content: e.content,
9696
9702
  type: "richText"
9697
9703
  };
9698
9704
  }
9699
- var Gl = {
9705
+ var Kl = {
9700
9706
  "blank-list": "_blank-list_12ccp_1",
9701
9707
  "blank-item": "_blank-item_12ccp_11",
9702
9708
  "blank-field": "_blank-field_12ccp_17"
9703
9709
  };
9704
- function Kl(_ref153) {
9710
+ function ql(_ref153) {
9705
9711
  var e = _ref153.item,
9706
9712
  n = _ref153.messages,
9707
9713
  r = _ref153.showAnswer;
@@ -9713,21 +9719,21 @@ function Kl(_ref153) {
9713
9719
  content: e
9714
9720
  }, "group-".concat(i, "-answer-").concat(n));
9715
9721
  }),
9716
- marker: bc(r.blankIds, e.blanks, n.blankLabel)
9722
+ marker: xc(r.blankIds, e.blanks, n.blankLabel)
9717
9723
  };
9718
9724
  });
9719
9725
  return (0, t.jsxs)("div", {
9720
9726
  className: W.element,
9721
9727
  children: [(0, t.jsx)("ol", {
9722
- className: Gl["blank-list"],
9728
+ className: Kl["blank-list"],
9723
9729
  children: e.blanks.map(function (e, r) {
9724
9730
  return (0, t.jsx)("li", {
9725
- className: Gl["blank-item"],
9731
+ className: Kl["blank-item"],
9726
9732
  children: (0, t.jsxs)("span", {
9727
- className: Gl["blank-field"],
9733
+ className: Kl["blank-field"],
9728
9734
  children: [n.blankLabel, " ", r + 1]
9729
9735
  })
9730
- }, ql(e, r));
9736
+ }, Jl(e, r));
9731
9737
  })
9732
9738
  }), r ? (0, t.jsx)(K, {
9733
9739
  groups: i,
@@ -9735,10 +9741,10 @@ function Kl(_ref153) {
9735
9741
  }) : null]
9736
9742
  });
9737
9743
  }
9738
- function ql(e, t) {
9744
+ function Jl(e, t) {
9739
9745
  return e || "blank-".concat(t + 1);
9740
9746
  }
9741
- function Jl(_ref154) {
9747
+ function Yl(_ref154) {
9742
9748
  var e = _ref154.item,
9743
9749
  n = _ref154.messages,
9744
9750
  r = _ref154.showAnswer;
@@ -9774,18 +9780,18 @@ function Jl(_ref154) {
9774
9780
  })
9775
9781
  })]
9776
9782
  }), r ? (0, t.jsx)(K, {
9777
- groups: Fc(e),
9783
+ groups: Ic(e),
9778
9784
  title: n.standardAnswer
9779
9785
  }) : null]
9780
9786
  });
9781
9787
  }
9782
- function Yl(_ref155) {
9788
+ function Xl(_ref155) {
9783
9789
  var e = _ref155.element,
9784
9790
  n = _ref155.item,
9785
9791
  r = _ref155.messages,
9786
9792
  i = _ref155.showAnswer;
9787
9793
  var a = vn(n, e, !0),
9788
- o = Ec(a).map(function (e, n) {
9794
+ o = Dc(a).map(function (e, n) {
9789
9795
  return {
9790
9796
  kind: "detailed",
9791
9797
  contents: e.contents.map(function (e, r) {
@@ -9793,20 +9799,20 @@ function Yl(_ref155) {
9793
9799
  content: e
9794
9800
  }, "group-".concat(n, "-answer-").concat(r));
9795
9801
  }),
9796
- marker: bc(e.blankIds, a.blanks, r.blankLabel)
9802
+ marker: xc(e.blankIds, a.blanks, r.blankLabel)
9797
9803
  };
9798
9804
  });
9799
9805
  return (0, t.jsxs)("div", {
9800
9806
  className: W.element,
9801
9807
  children: [(0, t.jsx)(G, {
9802
9808
  content: a.content
9803
- }), Xl(a, r.candidateOptions), i ? (0, t.jsx)(K, {
9809
+ }), Zl(a, r.candidateOptions), i ? (0, t.jsx)(K, {
9804
9810
  groups: o,
9805
9811
  title: r.standardAnswer
9806
9812
  }) : null]
9807
9813
  });
9808
9814
  }
9809
- function Xl(e, n) {
9815
+ function Zl(e, n) {
9810
9816
  var r, i;
9811
9817
  var a = (r = e.candidateOptions) == null ? [] : r,
9812
9818
  o = (i = e.blankOptionGroups) == null ? [] : i;
@@ -9837,7 +9843,7 @@ function Xl(e, n) {
9837
9843
  })]
9838
9844
  });
9839
9845
  }
9840
- function Zl(_ref156) {
9846
+ function Ql(_ref156) {
9841
9847
  var e = _ref156.element,
9842
9848
  n = _ref156.item,
9843
9849
  r = _ref156.messages,
@@ -9866,7 +9872,7 @@ function Zl(_ref156) {
9866
9872
  }) : null]
9867
9873
  });
9868
9874
  }
9869
- function Ql(_ref158) {
9875
+ function $l(_ref158) {
9870
9876
  var e = _ref158.item,
9871
9877
  n = _ref158.messages,
9872
9878
  r = _ref158.showAnswer;
@@ -9902,37 +9908,37 @@ function Ql(_ref158) {
9902
9908
  })
9903
9909
  })
9904
9910
  }), r ? (0, t.jsx)(K, {
9905
- groups: ol(e),
9911
+ groups: sl(e),
9906
9912
  title: n.standardAnswer
9907
9913
  }) : null]
9908
9914
  });
9909
9915
  }
9910
- var $l = {
9916
+ var eu = {
9911
9917
  board: "_board_5xarh_1",
9912
9918
  columns: "_columns_5xarh_6",
9913
9919
  column: "_column_5xarh_6",
9914
9920
  item: "_item_5xarh_18",
9915
9921
  marker: "_marker_5xarh_42"
9916
9922
  };
9917
- function eu(_ref159) {
9923
+ function tu(_ref159) {
9918
9924
  var e = _ref159.item,
9919
9925
  n = _ref159.messages,
9920
9926
  r = _ref159.showAnswer;
9921
9927
  return (0, t.jsxs)("div", {
9922
9928
  className: W.element,
9923
9929
  children: [(0, t.jsx)("div", {
9924
- className: $l.board,
9930
+ className: eu.board,
9925
9931
  children: (0, t.jsx)("div", {
9926
- className: $l.columns,
9932
+ className: eu.columns,
9927
9933
  children: e.columns.map(function (e) {
9928
9934
  return (0, t.jsx)("section", {
9929
- className: $l.column,
9935
+ className: eu.column,
9930
9936
  children: e.items.map(function (n, r) {
9931
9937
  var i = $t(e.labelStyle, r);
9932
9938
  return (0, t.jsxs)("div", {
9933
- className: $l.item,
9939
+ className: eu.item,
9934
9940
  children: [i ? (0, t.jsx)("span", {
9935
- className: $l.marker,
9941
+ className: eu.marker,
9936
9942
  children: i
9937
9943
  }) : null, (0, t.jsx)(G, {
9938
9944
  content: n.content
@@ -9943,28 +9949,28 @@ function eu(_ref159) {
9943
9949
  })
9944
9950
  })
9945
9951
  }), r ? (0, t.jsx)(K, {
9946
- groups: ll(e),
9952
+ groups: ul(e),
9947
9953
  title: n.standardAnswer
9948
9954
  }) : null]
9949
9955
  });
9950
9956
  }
9951
- function tu(_ref160) {
9957
+ function nu(_ref160) {
9952
9958
  var e = _ref160.element,
9953
9959
  n = _ref160.item,
9954
9960
  r = _ref160.messages,
9955
9961
  i = _ref160.showAnswer;
9956
9962
  var a = rn(n, e.config.optionLabelStyle);
9957
9963
  if (e.config.renderer === "table") {
9958
- var _o3 = pl(e, n);
9964
+ var _o3 = ml(e, n);
9959
9965
  return (0, t.jsxs)("div", {
9960
9966
  className: W.element,
9961
9967
  children: [(0, t.jsx)("div", {
9962
- className: vl["table-wrap"],
9968
+ className: yl["table-wrap"],
9963
9969
  children: (0, t.jsxs)("table", {
9964
- className: vl.table,
9970
+ className: yl.table,
9965
9971
  children: [(0, t.jsxs)("colgroup", {
9966
9972
  children: [(0, t.jsx)("col", {
9967
- className: vl["table-option-column"]
9973
+ className: yl["table-option-column"]
9968
9974
  }), n.columns.map(function (e) {
9969
9975
  return (0, t.jsx)("col", {}, e.id);
9970
9976
  })]
@@ -9985,7 +9991,7 @@ function tu(_ref160) {
9985
9991
  return (0, t.jsxs)("tr", {
9986
9992
  children: [(0, t.jsx)("td", {
9987
9993
  children: (0, t.jsx)("span", {
9988
- className: vl["table-option-marker"],
9994
+ className: yl["table-option-marker"],
9989
9995
  children: e.marker
9990
9996
  })
9991
9997
  }), e.cells.map(function (n, r) {
@@ -10005,10 +10011,10 @@ function tu(_ref160) {
10005
10011
  }) : null]
10006
10012
  });
10007
10013
  }
10008
- var o = pl(e, n);
10014
+ var o = ml(e, n);
10009
10015
  return (0, t.jsxs)("div", {
10010
10016
  className: W.element,
10011
- children: [(0, t.jsx)(gl, {
10017
+ children: [(0, t.jsx)(_l, {
10012
10018
  children: a.map(function (e) {
10013
10019
  return (0, t.jsxs)("li", {
10014
10020
  className: W["option-item"],
@@ -10026,7 +10032,7 @@ function tu(_ref160) {
10026
10032
  }) : null]
10027
10033
  });
10028
10034
  }
10029
- function nu(_ref161) {
10035
+ function ru(_ref161) {
10030
10036
  var e = _ref161.item,
10031
10037
  n = _ref161.messages,
10032
10038
  r = _ref161.showAnswer;
@@ -10046,21 +10052,21 @@ function nu(_ref161) {
10046
10052
  }, e.id);
10047
10053
  })
10048
10054
  }), r ? (0, t.jsx)(K, {
10049
- groups: bl(e),
10055
+ groups: xl(e),
10050
10056
  title: n.standardAnswer
10051
10057
  }) : null]
10052
10058
  });
10053
10059
  }
10054
- function ru(_ref162) {
10060
+ function iu(_ref162) {
10055
10061
  var e = _ref162.element,
10056
10062
  n = _ref162.item,
10057
10063
  r = _ref162.messages,
10058
10064
  i = _ref162.showAnswer;
10059
10065
  var a = _n(n, !0, e),
10060
- o = kl(a, r.blankLabel);
10066
+ o = Al(a, r.blankLabel);
10061
10067
  return (0, t.jsxs)("div", {
10062
10068
  className: W.element,
10063
- children: [(0, t.jsx)(zc, {
10069
+ children: [(0, t.jsx)(Bc, {
10064
10070
  content: a.content,
10065
10071
  renderBlank: function renderBlank(_ref163) {
10066
10072
  var e = _ref163.blankId,
@@ -10092,7 +10098,7 @@ function ru(_ref162) {
10092
10098
  }) : null]
10093
10099
  });
10094
10100
  }
10095
- function iu(_ref164) {
10101
+ function au(_ref164) {
10096
10102
  var e = _ref164.element,
10097
10103
  n = _ref164.item,
10098
10104
  r = _ref164.messages,
@@ -10100,73 +10106,73 @@ function iu(_ref164) {
10100
10106
  if (e.type !== n.type) throw Error("\u9898\u76EE\u5143\u7D20\u7ED3\u6784\u4E0D\u5339\u914D\uFF0Cexpected=".concat(e.type, "\uFF0Cactual=").concat(n.type));
10101
10107
  return e.type === "richText" ? (0, t.jsx)(G, {
10102
10108
  content: n.content
10103
- }) : e.type === "textResponse" ? null : e.type === "ordering" ? (0, t.jsx)(nu, {
10109
+ }) : e.type === "textResponse" ? null : e.type === "ordering" ? (0, t.jsx)(ru, {
10104
10110
  item: n,
10105
10111
  messages: r,
10106
10112
  showAnswer: i
10107
- }) : e.type === "classification" ? (0, t.jsx)(Jl, {
10113
+ }) : e.type === "classification" ? (0, t.jsx)(Yl, {
10108
10114
  item: n,
10109
10115
  messages: r,
10110
10116
  showAnswer: i
10111
- }) : e.type === "textMarker" ? (0, t.jsx)(El, {
10117
+ }) : e.type === "textMarker" ? (0, t.jsx)(Dl, {
10112
10118
  item: n,
10113
10119
  messages: r,
10114
10120
  showAnswer: i
10115
- }) : au({
10121
+ }) : ou({
10116
10122
  element: e,
10117
10123
  item: n,
10118
10124
  messages: r,
10119
10125
  showAnswer: i
10120
10126
  });
10121
10127
  }
10122
- function au(_ref165) {
10128
+ function ou(_ref165) {
10123
10129
  var e = _ref165.element,
10124
10130
  n = _ref165.item,
10125
10131
  r = _ref165.messages,
10126
10132
  i = _ref165.showAnswer;
10127
10133
  switch (e.type) {
10128
10134
  case "choice":
10129
- return (0, t.jsx)(tu, {
10135
+ return (0, t.jsx)(nu, {
10130
10136
  element: e,
10131
10137
  item: n,
10132
10138
  messages: r,
10133
10139
  showAnswer: i
10134
10140
  });
10135
10141
  case "fill":
10136
- return (0, t.jsx)(Kl, {
10142
+ return (0, t.jsx)(ql, {
10137
10143
  item: n,
10138
10144
  messages: r,
10139
10145
  showAnswer: i
10140
10146
  });
10141
10147
  case "inlineFill":
10142
- return (0, t.jsx)(Yl, {
10148
+ return (0, t.jsx)(Xl, {
10143
10149
  element: e,
10144
10150
  item: n,
10145
10151
  messages: r,
10146
10152
  showAnswer: i
10147
10153
  });
10148
10154
  case "wordBuilder":
10149
- return (0, t.jsx)(ru, {
10155
+ return (0, t.jsx)(iu, {
10150
10156
  element: e,
10151
10157
  item: n,
10152
10158
  messages: r,
10153
10159
  showAnswer: i
10154
10160
  });
10155
10161
  case "judgement":
10156
- return (0, t.jsx)(Zl, {
10162
+ return (0, t.jsx)(Ql, {
10157
10163
  element: e,
10158
10164
  item: n,
10159
10165
  messages: r,
10160
10166
  showAnswer: i
10161
10167
  });
10162
10168
  case "lineConnect":
10163
- return (0, t.jsx)(Ql, {
10169
+ return (0, t.jsx)($l, {
10164
10170
  item: n,
10165
10171
  messages: r,
10166
10172
  showAnswer: i
10167
10173
  });
10168
10174
  case "matching":
10169
- return (0, t.jsx)(eu, {
10175
+ return (0, t.jsx)(tu, {
10170
10176
  item: n,
10171
10177
  messages: r,
10172
10178
  showAnswer: i
@@ -10174,15 +10180,15 @@ function au(_ref165) {
10174
10180
  }
10175
10181
  }
10176
10182
  var X = {
10177
- root: "_root_1jseb_1",
10178
- empty: "_empty_1jseb_18",
10179
- "element-list": "_element-list_1jseb_30",
10180
- children: "_children_1jseb_31",
10181
- element: "_element_1jseb_30",
10182
- extra: "_extra_1jseb_41",
10183
- child: "_child_1jseb_31"
10183
+ root: "_root_13x11_1",
10184
+ empty: "_empty_13x11_17",
10185
+ "element-list": "_element-list_13x11_29",
10186
+ children: "_children_13x11_30",
10187
+ element: "_element_13x11_29",
10188
+ extra: "_extra_13x11_40",
10189
+ child: "_child_13x11_30"
10184
10190
  };
10185
- function ou(_ref166) {
10191
+ function su(_ref166) {
10186
10192
  var _ref166$childIndexPat = _ref166.childIndexPath,
10187
10193
  e = _ref166$childIndexPat === void 0 ? [] : _ref166$childIndexPat,
10188
10194
  n = _ref166.messages,
@@ -10208,19 +10214,19 @@ function ou(_ref166) {
10208
10214
  })
10209
10215
  });
10210
10216
  }
10211
- var su = ["locale"];
10212
- function cu(e) {
10217
+ var cu = ["locale"];
10218
+ function lu(e) {
10213
10219
  var _e$locale2 = e.locale,
10214
10220
  n = _e$locale2 === void 0 ? "zh-CN" : _e$locale2,
10215
- r = ma(e, su),
10221
+ r = ma(e, cu),
10216
10222
  i = us(r.value, r.questionTypeTemplates);
10217
- return (0, t.jsx)(lu, C(C({}, r), {}, {
10223
+ return (0, t.jsx)(uu, C(C({}, r), {}, {
10218
10224
  childIndexPath: [],
10219
- messages: yc(n),
10225
+ messages: bc(n),
10220
10226
  value: i
10221
10227
  }));
10222
10228
  }
10223
- function lu(_ref167) {
10229
+ function uu(_ref167) {
10224
10230
  var e = _ref167.childIndexPath,
10225
10231
  n = _ref167.className,
10226
10232
  r = _ref167.messages,
@@ -10245,7 +10251,7 @@ function lu(_ref167) {
10245
10251
  var i = Yt(c, n, e);
10246
10252
  return (0, t.jsx)("section", {
10247
10253
  className: X.element,
10248
- children: (0, t.jsx)(iu, {
10254
+ children: (0, t.jsx)(au, {
10249
10255
  element: e,
10250
10256
  item: i,
10251
10257
  messages: r,
@@ -10260,11 +10266,11 @@ function lu(_ref167) {
10260
10266
  var i = Xt(c, n, e);
10261
10267
  return A(i.content) ? null : (0, t.jsxs)("section", {
10262
10268
  className: X.extra,
10263
- children: [(0, t.jsx)(kc, {
10269
+ children: [(0, t.jsx)(Ac, {
10264
10270
  children: e.name
10265
- }), (0, t.jsx)(iu, {
10266
- element: du(e),
10267
- item: fu(i),
10271
+ }), (0, t.jsx)(au, {
10272
+ element: fu(e),
10273
+ item: pu(i),
10268
10274
  messages: r,
10269
10275
  showAnswer: !1
10270
10276
  })]
@@ -10272,11 +10278,11 @@ function lu(_ref167) {
10272
10278
  })
10273
10279
  }) : null,
10274
10280
  f = (0, t.jsxs)(t.Fragment, {
10275
- children: [u, c.children.length === 0 ? null : (0, t.jsx)(ou, {
10281
+ children: [u, c.children.length === 0 ? null : (0, t.jsx)(su, {
10276
10282
  childIndexPath: e,
10277
10283
  messages: r,
10278
10284
  renderChild: function renderChild(e, n) {
10279
- return (0, t.jsx)(lu, {
10285
+ return (0, t.jsx)(uu, {
10280
10286
  childIndexPath: n,
10281
10287
  messages: r,
10282
10288
  rootQuestionNumber: i,
@@ -10292,29 +10298,29 @@ function lu(_ref167) {
10292
10298
  });
10293
10299
  return (0, t.jsx)("div", {
10294
10300
  className: H(X.root, n),
10295
- children: uu(l, c) ? (0, t.jsx)("div", {
10301
+ children: du(l, c) ? (0, t.jsx)("div", {
10296
10302
  className: X.empty,
10297
10303
  children: r.previewEmpty
10298
10304
  }) : f
10299
10305
  });
10300
10306
  }
10301
- function uu(e, t) {
10307
+ function du(e, t) {
10302
10308
  return t.elements.length === 0 && t.extras.length === 0 && t.children.length === 0;
10303
10309
  }
10304
- function du(e) {
10310
+ function fu(e) {
10305
10311
  return {
10306
10312
  config: {},
10307
10313
  name: e.name,
10308
10314
  type: "richText"
10309
10315
  };
10310
10316
  }
10311
- function fu(e) {
10317
+ function pu(e) {
10312
10318
  return {
10313
10319
  content: e.content,
10314
10320
  type: "richText"
10315
10321
  };
10316
10322
  }
10317
- var pu = {
10323
+ var mu = {
10318
10324
  root: "_root_17bqr_1",
10319
10325
  toolbar: "_toolbar_17bqr_26",
10320
10326
  "toolbar-title": "_toolbar-title_17bqr_36",
@@ -10369,7 +10375,7 @@ var pu = {
10369
10375
  "palette-section-title": "_palette-section-title_vhj2r_62",
10370
10376
  "palette-button": "_palette-button_vhj2r_70"
10371
10377
  },
10372
- mu = {
10378
+ hu = {
10373
10379
  "en-US": {
10374
10380
  addElement: "Add element",
10375
10381
  addExtra: "Add extra attribute",
@@ -10503,26 +10509,26 @@ var pu = {
10503
10509
  wordBuilderLabel: "\u7EC4\u8BCD\u62FC\u5199"
10504
10510
  }
10505
10511
  };
10506
- function hu(e, t) {
10512
+ function gu(e, t) {
10507
10513
  var n;
10508
10514
  return (n = e.extraDescriptions.get(t)) == null ? t : n;
10509
10515
  }
10510
- function gu(e, t) {
10516
+ function _u(e, t) {
10511
10517
  var n;
10512
10518
  return (n = e.extraLabels.get(t)) == null ? t : n;
10513
10519
  }
10514
- function _u(e) {
10520
+ function vu(e) {
10515
10521
  switch (e) {
10516
10522
  case "en-US":
10517
- return mu["en-US"];
10523
+ return hu["en-US"];
10518
10524
  case "zh-CN":
10519
- return mu["zh-CN"];
10525
+ return hu["zh-CN"];
10520
10526
  }
10521
10527
  }
10522
- function vu(e, t) {
10523
- return t === "richText" ? e.richTextDescription : t === "ordering" ? e.orderingDescription : xu(e, t);
10528
+ function yu(e, t) {
10529
+ return t === "richText" ? e.richTextDescription : t === "ordering" ? e.orderingDescription : Su(e, t);
10524
10530
  }
10525
- var yu = {
10531
+ var bu = {
10526
10532
  choice: function choice(e) {
10527
10533
  return e.optionGroupDescription;
10528
10534
  },
@@ -10554,7 +10560,7 @@ var yu = {
10554
10560
  return e.wordBuilderDescription;
10555
10561
  }
10556
10562
  },
10557
- bu = {
10563
+ xu = {
10558
10564
  choice: function choice(e) {
10559
10565
  return e.optionGroupLabel;
10560
10566
  },
@@ -10586,28 +10592,28 @@ var yu = {
10586
10592
  return e.wordBuilderLabel;
10587
10593
  }
10588
10594
  };
10589
- function xu(e, t) {
10590
- return yu[t](e);
10591
- }
10592
10595
  function Su(e, t) {
10593
- return t === "richText" ? e.richTextLabel : t === "ordering" ? e.orderingLabel : Cu(e, t);
10596
+ return bu[t](e);
10594
10597
  }
10595
10598
  function Cu(e, t) {
10596
- return bu[t](e);
10599
+ return t === "richText" ? e.richTextLabel : t === "ordering" ? e.orderingLabel : wu(e, t);
10597
10600
  }
10598
10601
  function wu(e, t) {
10602
+ return xu[t](e);
10603
+ }
10604
+ function Tu(e, t) {
10599
10605
  var n;
10600
10606
  return (n = e.optionValueLabels.get(t)) == null ? t : n;
10601
10607
  }
10602
- function Tu(e, t) {
10608
+ function Eu(e, t) {
10603
10609
  var n;
10604
10610
  return (n = e.candidateModeValueLabels.get(t)) == null ? t : n;
10605
10611
  }
10606
- function Eu(e, t) {
10612
+ function Du(e, t) {
10607
10613
  var n;
10608
10614
  return (n = e.lineConnectLabelStyleLabels.get(t)) == null ? t : n;
10609
10615
  }
10610
- function Du(_ref168) {
10616
+ function Ou(_ref168) {
10611
10617
  var e = _ref168.elements,
10612
10618
  r = _ref168.extras,
10613
10619
  i = _ref168.labels,
@@ -10638,7 +10644,7 @@ function Du(_ref168) {
10638
10644
  className: Z["element-list"],
10639
10645
  children: [e.map(function (n, r) {
10640
10646
  var o = n.clientId === l,
10641
- f = Su(i, n.type);
10647
+ f = Cu(i, n.type);
10642
10648
  return (0, t.jsxs)("div", {
10643
10649
  className: "".concat(Z["element-card"], " ").concat(o ? Z.active : ""),
10644
10650
  onClick: function onClick() {
@@ -10707,7 +10713,7 @@ function Du(_ref168) {
10707
10713
  children: i.extraTitle
10708
10714
  }) : null, r.map(function (n, r) {
10709
10715
  var a = n.clientId === l,
10710
- s = gu(i, n.type);
10716
+ s = _u(i, n.type);
10711
10717
  return (0, t.jsxs)("div", {
10712
10718
  className: "".concat(Z["element-card"], " ").concat(a ? Z.active : ""),
10713
10719
  onClick: function onClick() {
@@ -10759,7 +10765,7 @@ function Du(_ref168) {
10759
10765
  })]
10760
10766
  });
10761
10767
  }
10762
- function Ou(_ref171) {
10768
+ function ku(_ref171) {
10763
10769
  var e = _ref171.addedExtraTypes,
10764
10770
  n = _ref171.labels,
10765
10771
  r = _ref171.onAddElement,
@@ -10777,16 +10783,16 @@ function Ou(_ref171) {
10777
10783
  className: Q.palette,
10778
10784
  children: ee.map(function (e) {
10779
10785
  return (0, t.jsxs)("button", {
10780
- "aria-label": "".concat(n.addElement, ": ").concat(Su(n, e)),
10786
+ "aria-label": "".concat(n.addElement, ": ").concat(Cu(n, e)),
10781
10787
  className: Q["palette-button"],
10782
10788
  onClick: function onClick() {
10783
10789
  return r(e);
10784
10790
  },
10785
10791
  type: "button",
10786
10792
  children: [(0, t.jsx)("strong", {
10787
- children: Su(n, e)
10793
+ children: Cu(n, e)
10788
10794
  }), (0, t.jsx)("small", {
10789
- children: vu(n, e)
10795
+ children: yu(n, e)
10790
10796
  })]
10791
10797
  }, e);
10792
10798
  })
@@ -10797,10 +10803,10 @@ function Ou(_ref171) {
10797
10803
  children: n.extraTitle
10798
10804
  }), (0, t.jsx)("div", {
10799
10805
  className: Q.palette,
10800
- children: te.map(function (e) {
10806
+ children: w.map(function (e) {
10801
10807
  var r = a.has(e);
10802
10808
  return (0, t.jsxs)("button", {
10803
- "aria-label": "".concat(n.addExtra, ": ").concat(gu(n, e)),
10809
+ "aria-label": "".concat(n.addExtra, ": ").concat(_u(n, e)),
10804
10810
  className: Q["palette-button"],
10805
10811
  disabled: r,
10806
10812
  onClick: function onClick() {
@@ -10808,9 +10814,9 @@ function Ou(_ref171) {
10808
10814
  },
10809
10815
  type: "button",
10810
10816
  children: [(0, t.jsx)("strong", {
10811
- children: gu(n, e)
10817
+ children: _u(n, e)
10812
10818
  }), (0, t.jsx)("small", {
10813
- children: hu(n, e)
10819
+ children: gu(n, e)
10814
10820
  })]
10815
10821
  }, e);
10816
10822
  })
@@ -10828,15 +10834,15 @@ var $ = {
10828
10834
  textarea: "_textarea_tgswd_28",
10829
10835
  empty: "_empty_tgswd_61"
10830
10836
  },
10831
- ku = ["none", "sharedPool", "perBlankOptions"],
10832
- Au = ["upperAlpha", "lowerAlpha", "number"],
10833
- ju = ["number", "upperAlpha", "lowerAlpha", "lowerRoman", "chineseNumber", "none"],
10834
- Mu = [2, 3, 4, 5],
10835
- Nu = ["standard", "table"],
10836
- Pu = ["single", "multiple"],
10837
- Fu = ["spelling", "sentence"],
10838
- Iu = ["correctWrong", "yesNo", "validInvalid", "tf", "rightWrong", "checkCross"];
10839
- function Lu(_ref172) {
10837
+ Au = ["none", "sharedPool", "perBlankOptions"],
10838
+ ju = ["upperAlpha", "lowerAlpha", "number"],
10839
+ Mu = ["number", "upperAlpha", "lowerAlpha", "lowerRoman", "chineseNumber", "none"],
10840
+ Nu = [2, 3, 4, 5],
10841
+ Pu = ["standard", "table"],
10842
+ Fu = ["single", "multiple"],
10843
+ Iu = ["spelling", "sentence"],
10844
+ Lu = ["correctWrong", "yesNo", "validInvalid", "tf", "rightWrong", "checkCross"];
10845
+ function Ru(_ref172) {
10840
10846
  var e = _ref172.description,
10841
10847
  n = _ref172.globalConfig,
10842
10848
  r = _ref172.isSubjective,
@@ -10847,7 +10853,7 @@ function Lu(_ref172) {
10847
10853
  c = _ref172.onMetadataChange,
10848
10854
  l = _ref172.selectedExtra,
10849
10855
  u = _ref172.selectedElement;
10850
- var d = Ru({
10856
+ var d = zu({
10851
10857
  labels: i,
10852
10858
  onElementChange: a,
10853
10859
  onExtraChange: o,
@@ -10958,7 +10964,7 @@ function Lu(_ref172) {
10958
10964
  })]
10959
10965
  });
10960
10966
  }
10961
- function Ru(_ref173) {
10967
+ function zu(_ref173) {
10962
10968
  var e = _ref173.labels,
10963
10969
  n = _ref173.onElementChange,
10964
10970
  r = _ref173.onExtraChange,
@@ -10992,7 +10998,7 @@ function Ru(_ref173) {
10992
10998
  },
10993
10999
  value: i.enName
10994
11000
  })]
10995
- }), zu(i, e, n)]
11001
+ }), Bu(i, e, n)]
10996
11002
  }) : a ? (0, t.jsxs)("div", {
10997
11003
  className: $["form-stack"],
10998
11004
  children: [(0, t.jsxs)("label", {
@@ -11027,10 +11033,10 @@ function Ru(_ref173) {
11027
11033
  children: e.noElement
11028
11034
  });
11029
11035
  }
11030
- function zu(e, t, n) {
11031
- return e.type === "fill" || e.type === "classification" || e.type === "ordering" || e.type === "richText" || e.type === "textMarker" || e.type === "textResponse" ? null : Bu(e, t, n);
11036
+ function Bu(e, t, n) {
11037
+ return e.type === "fill" || e.type === "classification" || e.type === "ordering" || e.type === "richText" || e.type === "textMarker" || e.type === "textResponse" ? null : Vu(e, t, n);
11032
11038
  }
11033
- function Bu(e, n, r) {
11039
+ function Vu(e, n, r) {
11034
11040
  switch (e.type) {
11035
11041
  case "inlineFill":
11036
11042
  return (0, t.jsxs)(t.Fragment, {
@@ -11048,10 +11054,10 @@ function Bu(e, n, r) {
11048
11054
  }));
11049
11055
  },
11050
11056
  value: e.config.candidateMode,
11051
- children: ku.map(function (e) {
11057
+ children: Au.map(function (e) {
11052
11058
  return (0, t.jsx)("option", {
11053
11059
  value: e,
11054
- children: Tu(n, e)
11060
+ children: Eu(n, e)
11055
11061
  }, e);
11056
11062
  })
11057
11063
  })]
@@ -11087,10 +11093,10 @@ function Bu(e, n, r) {
11087
11093
  }));
11088
11094
  },
11089
11095
  value: e.config.builderMode,
11090
- children: Fu.map(function (e) {
11096
+ children: Iu.map(function (e) {
11091
11097
  return (0, t.jsx)("option", {
11092
11098
  value: e,
11093
- children: wu(n, e)
11099
+ children: Tu(n, e)
11094
11100
  }, e);
11095
11101
  })
11096
11102
  })]
@@ -11110,23 +11116,23 @@ function Bu(e, n, r) {
11110
11116
  }));
11111
11117
  },
11112
11118
  value: e.config.judgeAnswerMode,
11113
- children: Iu.map(function (e) {
11119
+ children: Lu.map(function (e) {
11114
11120
  return (0, t.jsx)("option", {
11115
11121
  value: e,
11116
- children: wu(n, e)
11122
+ children: Tu(n, e)
11117
11123
  }, e);
11118
11124
  })
11119
11125
  })]
11120
11126
  });
11121
11127
  case "choice":
11122
- return Vu(e, n, r);
11123
- case "lineConnect":
11124
11128
  return Hu(e, n, r);
11125
- case "matching":
11129
+ case "lineConnect":
11126
11130
  return Uu(e, n, r);
11131
+ case "matching":
11132
+ return Wu(e, n, r);
11127
11133
  }
11128
11134
  }
11129
- function Vu(e, n, r) {
11135
+ function Hu(e, n, r) {
11130
11136
  return (0, t.jsxs)(t.Fragment, {
11131
11137
  children: [(0, t.jsxs)("label", {
11132
11138
  className: $["form-row"],
@@ -11142,10 +11148,10 @@ function Vu(e, n, r) {
11142
11148
  }));
11143
11149
  },
11144
11150
  value: e.config.selectionType,
11145
- children: Pu.map(function (e) {
11151
+ children: Fu.map(function (e) {
11146
11152
  return (0, t.jsx)("option", {
11147
11153
  value: e,
11148
- children: wu(n, e)
11154
+ children: Tu(n, e)
11149
11155
  }, e);
11150
11156
  })
11151
11157
  })]
@@ -11163,10 +11169,10 @@ function Vu(e, n, r) {
11163
11169
  }));
11164
11170
  },
11165
11171
  value: e.config.optionLabelStyle,
11166
- children: Au.map(function (e) {
11172
+ children: ju.map(function (e) {
11167
11173
  return (0, t.jsx)("option", {
11168
11174
  value: e,
11169
- children: wu(n, e)
11175
+ children: Tu(n, e)
11170
11176
  }, e);
11171
11177
  })
11172
11178
  })]
@@ -11184,18 +11190,18 @@ function Vu(e, n, r) {
11184
11190
  }));
11185
11191
  },
11186
11192
  value: e.config.renderer,
11187
- children: Nu.map(function (e) {
11193
+ children: Pu.map(function (e) {
11188
11194
  return (0, t.jsx)("option", {
11189
11195
  value: e,
11190
- children: wu(n, e)
11196
+ children: Tu(n, e)
11191
11197
  }, e);
11192
11198
  })
11193
11199
  })]
11194
11200
  })]
11195
11201
  });
11196
11202
  }
11197
- function Hu(e, n, r) {
11198
- var i = Wu(e.config.columns);
11203
+ function Uu(e, n, r) {
11204
+ var i = Gu(e.config.columns);
11199
11205
  return (0, t.jsxs)(t.Fragment, {
11200
11206
  children: [(0, t.jsxs)("label", {
11201
11207
  className: $["form-row"],
@@ -11206,12 +11212,12 @@ function Hu(e, n, r) {
11206
11212
  onChange: function onChange(t) {
11207
11213
  return r(C(C({}, e), {}, {
11208
11214
  config: {
11209
- columns: Ku(i, Number(t.target.value))
11215
+ columns: qu(i, Number(t.target.value))
11210
11216
  }
11211
11217
  }));
11212
11218
  },
11213
11219
  value: i.length,
11214
- children: Mu.map(function (e) {
11220
+ children: Nu.map(function (e) {
11215
11221
  return (0, t.jsx)("option", {
11216
11222
  value: e,
11217
11223
  children: e
@@ -11237,10 +11243,10 @@ function Hu(e, n, r) {
11237
11243
  }));
11238
11244
  },
11239
11245
  value: a.labelStyle,
11240
- children: ju.map(function (e) {
11246
+ children: Mu.map(function (e) {
11241
11247
  return (0, t.jsx)("option", {
11242
11248
  value: e,
11243
- children: Eu(n, e)
11249
+ children: Du(n, e)
11244
11250
  }, e);
11245
11251
  })
11246
11252
  })]
@@ -11248,8 +11254,8 @@ function Hu(e, n, r) {
11248
11254
  })]
11249
11255
  });
11250
11256
  }
11251
- function Uu(e, n, r) {
11252
- var i = Gu(e.config.columns);
11257
+ function Wu(e, n, r) {
11258
+ var i = Ku(e.config.columns);
11253
11259
  return (0, t.jsx)(t.Fragment, {
11254
11260
  children: i.map(function (a, o) {
11255
11261
  return (0, t.jsxs)("label", {
@@ -11270,10 +11276,10 @@ function Uu(e, n, r) {
11270
11276
  }));
11271
11277
  },
11272
11278
  value: a.labelStyle,
11273
- children: ju.map(function (e) {
11279
+ children: Mu.map(function (e) {
11274
11280
  return (0, t.jsx)("option", {
11275
11281
  value: e,
11276
- children: Eu(n, e)
11282
+ children: Du(n, e)
11277
11283
  }, e);
11278
11284
  })
11279
11285
  })]
@@ -11281,48 +11287,48 @@ function Uu(e, n, r) {
11281
11287
  })
11282
11288
  });
11283
11289
  }
11284
- function Wu(e) {
11290
+ function Gu(e) {
11285
11291
  var t = e.slice(0, 5);
11286
- return t.length >= 2 ? t : [].concat(_toConsumableArray(t), _toConsumableArray(ju.slice(t.length, 2).map(function (e) {
11292
+ return t.length >= 2 ? t : [].concat(_toConsumableArray(t), _toConsumableArray(Mu.slice(t.length, 2).map(function (e) {
11287
11293
  return {
11288
11294
  labelStyle: e
11289
11295
  };
11290
11296
  })));
11291
11297
  }
11292
- function Gu(e) {
11298
+ function Ku(e) {
11293
11299
  var t = e.slice(0, 2);
11294
- return t.length >= 2 ? t : [].concat(_toConsumableArray(t), _toConsumableArray(ju.slice(t.length, 2).map(function (e) {
11300
+ return t.length >= 2 ? t : [].concat(_toConsumableArray(t), _toConsumableArray(Mu.slice(t.length, 2).map(function (e) {
11295
11301
  return {
11296
11302
  labelStyle: e
11297
11303
  };
11298
11304
  })));
11299
11305
  }
11300
- function Ku(e, t) {
11306
+ function qu(e, t) {
11301
11307
  return Array.from({
11302
11308
  length: Math.min(5, Math.max(2, t))
11303
11309
  }, function (t, n) {
11304
11310
  var r, i;
11305
11311
  return (r = e.slice(n, n + 1)[0]) == null ? {
11306
- labelStyle: (i = ju[n]) == null ? "number" : i
11312
+ labelStyle: (i = Mu[n]) == null ? "number" : i
11307
11313
  } : r;
11308
11314
  });
11309
11315
  }
11310
- function qu(_ref174) {
11316
+ function Ju(_ref174) {
11311
11317
  var _ref174$locale = _ref174.locale,
11312
11318
  e = _ref174$locale === void 0 ? "zh-CN" : _ref174$locale,
11313
11319
  r = _ref174.onChange,
11314
11320
  i = _ref174.value;
11315
11321
  var a, o, s, c;
11316
- var l = _u(e),
11322
+ var l = vu(e),
11317
11323
  _ref175 = (0, n.useState)((a = (o = i.elements[0]) == null ? void 0 : o.clientId) == null ? null : a),
11318
11324
  _ref176 = _slicedToArray(_ref175, 2),
11319
11325
  u = _ref176[0],
11320
11326
  d = _ref176[1],
11321
- _Ju = Ju(i, u),
11322
- f = _Ju.selectedElement,
11323
- p = _Ju.selectedExtra;
11327
+ _Yu = Yu(i, u),
11328
+ f = _Yu.selectedElement,
11329
+ p = _Yu.selectedExtra;
11324
11330
  function m(e) {
11325
- var t = se(e, i.elements);
11331
+ var t = oe(e, i.elements);
11326
11332
  r(C(C({}, i), {}, {
11327
11333
  elements: [].concat(_toConsumableArray(i.elements), [t])
11328
11334
  })), d(t.clientId);
@@ -11331,56 +11337,56 @@ function qu(_ref174) {
11331
11337
  if (i.extras.some(function (t) {
11332
11338
  return t.type === e;
11333
11339
  })) return;
11334
- var t = oe(e, i.extras);
11340
+ var t = ae(e, i.extras);
11335
11341
  r(C(C({}, i), {}, {
11336
11342
  extras: [].concat(_toConsumableArray(i.extras), [t])
11337
11343
  })), d(t.clientId);
11338
11344
  }
11339
11345
  function g(e) {
11340
- var t = de(i, e);
11341
- r(t), d(Yu(t));
11346
+ var t = ue(i, e);
11347
+ r(t), d(Xu(t));
11342
11348
  }
11343
11349
  function _(e) {
11344
- var t = ue(i, e);
11345
- r(t), d(Yu(t));
11350
+ var t = le(i, e);
11351
+ r(t), d(Xu(t));
11346
11352
  }
11347
11353
  function v(e) {
11348
- r(me(i, e.clientId, e));
11354
+ r(pe(i, e.clientId, e));
11349
11355
  }
11350
11356
  function y(e) {
11351
- r(pe(i, e.clientId, e));
11357
+ r(fe(i, e.clientId, e));
11352
11358
  }
11353
11359
  function b(e) {
11354
- r(he(i, e));
11360
+ r(me(i, e));
11355
11361
  }
11356
11362
  function x(e) {
11357
- r(ge(i, e));
11363
+ r(he(i, e));
11358
11364
  }
11359
11365
  return (0, t.jsx)("section", {
11360
- className: pu.root,
11366
+ className: mu.root,
11361
11367
  children: (0, t.jsx)("div", {
11362
11368
  className: Q.shell,
11363
11369
  children: (0, t.jsxs)("div", {
11364
11370
  className: Q.grid,
11365
- children: [(0, t.jsx)(Ou, {
11371
+ children: [(0, t.jsx)(ku, {
11366
11372
  addedExtraTypes: i.extras.map(function (e) {
11367
11373
  return e.type;
11368
11374
  }),
11369
11375
  labels: l,
11370
11376
  onAddElement: m,
11371
11377
  onAddExtra: h
11372
- }), (0, t.jsx)(Du, {
11378
+ }), (0, t.jsx)(Ou, {
11373
11379
  elements: i.elements,
11374
11380
  extras: i.extras,
11375
11381
  labels: l,
11376
11382
  onDeleteElement: g,
11377
11383
  onDeleteExtra: _,
11378
11384
  onMoveElement: function onMoveElement(e, t) {
11379
- return r(fe(i, e, t));
11385
+ return r(de(i, e, t));
11380
11386
  },
11381
11387
  onSelectElement: d,
11382
11388
  selectedElementClientId: (s = (c = f == null ? void 0 : f.clientId) == null ? p == null ? void 0 : p.clientId : c) == null ? null : s
11383
- }), (0, t.jsx)(Lu, {
11389
+ }), (0, t.jsx)(Ru, {
11384
11390
  description: i.description,
11385
11391
  globalConfig: i.globalConfig,
11386
11392
  isSubjective: i.isSubjective,
@@ -11396,7 +11402,7 @@ function qu(_ref174) {
11396
11402
  })
11397
11403
  });
11398
11404
  }
11399
- function Ju(e, t) {
11405
+ function Yu(e, t) {
11400
11406
  var n, r, i, a;
11401
11407
  var o = (n = e.elements.find(function (e) {
11402
11408
  return e.clientId === t;
@@ -11412,8 +11418,8 @@ function Ju(e, t) {
11412
11418
  selectedExtra: e.elements[0] || (a = e.extras[0]) == null ? null : a
11413
11419
  };
11414
11420
  }
11415
- function Yu(e) {
11421
+ function Xu(e) {
11416
11422
  var t, n, r, i;
11417
11423
  return (t = (n = (r = e.elements[0]) == null ? void 0 : r.clientId) == null ? (i = e.extras[0]) == null ? void 0 : i.clientId : n) == null ? null : t;
11418
11424
  }
11419
- exports.QuestionContentEditor = qo, exports.QuestionPlayer = Il, exports.QuestionPreview = cu, exports.QuestionRichContentView = G, exports.QuestionStructureEditor = qu, exports.addBlankToGroup = Fn, exports.alignQuestionContentDraftWithStructure = ln, exports.assignBlankToAnswerGroup = Rn, exports.cn = Ba, exports.createBlankAnswerGroupWithBlank = zn, exports.createEmptyQuestionContentDraft = zt, exports.createEmptyQuestionPlayerResponse = Ps, exports.createEmptyQuestionStructureDraft = ae, exports.createQuestionContentDraftFromSerialized = cn, exports.createQuestionContentId = g, exports.createQuestionContentStructureFromDraft = Xo, exports.createQuestionPreviewDraft = Zo, exports.createQuestionStructureElement = se, exports.createQuestionStructureExtra = oe, exports.createRichContentValue = O, exports.createRichContentValueFromDocument = Wt, exports.createRichTextContent = Ee, exports.deleteBlankFromGroup = In, exports.deleteQuestionStructureElement = de, exports.deleteQuestionStructureExtra = ue, exports.detachBlankFromAnswerGroup = Bn, exports.findQuestionContentQuestionTypeStructure = Yi, exports.findQuestionContentQuestionTypeTemplate = $i, exports.getQuestionContentJudgementOptions = en, exports.getQuestionContentOptionMarker = Zt, exports.getQuestionContentTextMarkerAnswerText = qt, exports.getQuestionStructureDraftChangeKind = $o, exports.getQuestionStructureElementDefaultEnName = E, exports.getQuestionStructureElementDefaultName = T, exports.getQuestionStructureExtraDefaultEnName = ve, exports.getQuestionStructureExtraDefaultName = _e, exports.getRichContentDocument = Jt, exports.getSharedBlankAnswerGroups = Ln, exports.isCompositeQuestionContentStructure = Rt, exports.isQuestionContentDraftEmpty = on, exports.moveQuestionStructureElement = fe, exports.normalizeFillTextCandidateState = vn, exports.normalizeRichTextContent = De, exports.questionStructureElementTypes = ee, exports.questionStructureExtraTypes = te, exports.reconcileQuestionContentDraftWithTemplates = ea, exports.serializeQuestionContentDraft = sn, exports.serializeQuestionStructureDraft = Qo, exports.updateQuestionStructureElement = me, exports.updateQuestionStructureExtra = pe, exports.updateQuestionStructureGlobalConfig = he, exports.updateQuestionStructureMetadata = ge;
11425
+ exports.QuestionContentEditor = qo, exports.QuestionPlayer = Ll, exports.QuestionPreview = lu, exports.QuestionRichContentView = G, exports.QuestionStructureEditor = Ju, exports.addBlankToGroup = Fn, exports.alignQuestionContentDraftWithStructure = ln, exports.assignBlankToAnswerGroup = Rn, exports.cn = Ba, exports.createBlankAnswerGroupWithBlank = zn, exports.createEmptyQuestionContentDraft = zt, exports.createEmptyQuestionPlayerResponse = Fs, exports.createEmptyQuestionStructureDraft = ie, exports.createQuestionContentDraftFromSerialized = cn, exports.createQuestionContentId = g, exports.createQuestionContentStructureFromDraft = Xo, exports.createQuestionPreviewDraft = Zo, exports.createQuestionStructureElement = oe, exports.createQuestionStructureExtra = ae, exports.createRichContentValue = O, exports.createRichContentValueFromDocument = Wt, exports.createRichTextContent = Te, exports.deleteBlankFromGroup = In, exports.deleteQuestionStructureElement = ue, exports.deleteQuestionStructureExtra = le, exports.detachBlankFromAnswerGroup = Bn, exports.findQuestionContentQuestionTypeStructure = Yi, exports.findQuestionContentQuestionTypeTemplate = $i, exports.getQuestionContentJudgementOptions = en, exports.getQuestionContentOptionMarker = Zt, exports.getQuestionContentTextMarkerAnswerText = qt, exports.getQuestionStructureDraftChangeKind = $o, exports.getQuestionStructureElementDefaultEnName = D, exports.getQuestionStructureElementDefaultName = E, exports.getQuestionStructureExtraDefaultEnName = _e, exports.getQuestionStructureExtraDefaultName = ge, exports.getRichContentDocument = Jt, exports.getSharedBlankAnswerGroups = Ln, exports.isCompositeQuestionContentStructure = Rt, exports.isQuestionContentDraftEmpty = on, exports.moveQuestionStructureElement = de, exports.normalizeFillTextCandidateState = vn, exports.normalizeRichTextContent = Ee, exports.questionStructureElementTypes = ee, exports.questionStructureExtraTypes = w, exports.reconcileQuestionContentDraftWithTemplates = ea, exports.serializeQuestionContentDraft = sn, exports.serializeQuestionStructureDraft = Qo, exports.updateQuestionStructureElement = pe, exports.updateQuestionStructureExtra = fe, exports.updateQuestionStructureGlobalConfig = me, exports.updateQuestionStructureMetadata = he;