@doenet/doenetml 0.7.24-dev.495 → 0.7.24-dev.496
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/{AnswerResponseButton-Dh3-9gZO.js → AnswerResponseButton-BrrWb-sk.js} +2 -2
- package/{Description-C784Vv21.js → Description-BZ8oeOL9.js} +1 -1
- package/{DynamicMath-D1wKrLlg.js → DynamicMath-DNJy5-OC.js} +1 -1
- package/{EditorViewer-CgeqFSvi.js → EditorViewer-BtN3PY5x.js} +7 -7
- package/{GraphFrame-zEBOQLV2.js → GraphFrame-l_fXN6oJ.js} +2 -2
- package/{JSXGraphRenderer-CyYe0d3K.js → JSXGraphRenderer-xuqNYEMe.js} +1 -1
- package/{NonInlineMediaWrapper-C6IeqhUk.js → NonInlineMediaWrapper-CcmkTJmz.js} +1 -1
- package/Viewer/DocViewer.d.ts.map +1 -1
- package/Viewer/coreWorkerBoot.d.ts +9 -1
- package/Viewer/coreWorkerBoot.d.ts.map +1 -1
- package/{_error-hqesHzVC.js → _error-6wEbVswo.js} +2 -2
- package/{alert-axYiV_tJ.js → alert-DGIdSxd5.js} +3 -3
- package/{angle-BKq_hmKc.js → angle-B_yqY4eA.js} +7 -7
- package/{answer-BMMoGAJn.js → answer-CsP3EPMl.js} +6 -6
- package/{asList-CC2BVoI_.js → asList-DCXp-O5w.js} +2 -2
- package/{blockQuote-kj3Ck-pZ.js → blockQuote-BdOxQAZX.js} +3 -3
- package/{boolean-BuBdYx-N.js → boolean-w9_LHFn2.js} +2 -2
- package/{booleanInput-BcvmUpXs.js → booleanInput-WvLRmRvQ.js} +7 -7
- package/{br-BRIBO7bD.js → br-BkZHYEyb.js} +2 -2
- package/{button-CMX4IneM.js → button-eO4GcDK0.js} +5 -5
- package/{c-sY8VwhFg.js → c-BQKhLZrA.js} +3 -3
- package/{cell-L0R7RpcY.js → cell-C0WBTaNk.js} +3 -3
- package/{choiceInput-BrWYbJql.js → choiceInput-BhxWosVq.js} +4 -4
- package/{circle-C7ZgorN7.js → circle-CpKUhiP5.js} +6 -6
- package/{cobwebPolyline-DH3cUzkl.js → cobwebPolyline-_r-rG3Nw.js} +4 -4
- package/{codeEditor-D12aWsev.js → codeEditor-CszCj14f.js} +2 -2
- package/{composites-B9f9SwvS.js → composites-Bbo8IP1W.js} +1 -1
- package/{containerBlock-Cc3gEQrI.js → containerBlock-Dyrio5Dv.js} +4 -4
- package/{containerInline-CPpPik-D.js → containerInline--3XrSLzN.js} +4 -4
- package/{curve-C4GzvlkI.js → curve-kTH7dlHM.js} +4 -4
- package/{doenetml-BuSy6I1w.js → doenetml-CJXENjwD.js} +53 -17
- package/doenetml-external-worker.js +2 -2
- package/doenetml-inline-worker.js +3 -3
- package/doenetml-worker/index.esm.js +1 -1
- package/doenetml-worker/index.js +1 -1
- package/{ellipsis-DnFVuA9d.js → ellipsis-D80KnK2G.js} +2 -2
- package/{em-DdD05o3x.js → em-TShdxpOF.js} +3 -3
- package/{embed-B62WIgaH.js → embed-C-EstgJD.js} +2 -2
- package/{feedback-BcxDOMuZ.js → feedback-Cxw3lzpg.js} +4 -4
- package/{figure-CcLohmH5.js → figure--Rh8P7Sz.js} +3 -3
- package/{fillPatterns-CIOIFbrm.js → fillPatterns-B_8jtfYS.js} +1 -1
- package/{footnote-CPEytkdo.js → footnote-DptVzLcw.js} +3 -3
- package/{fractionInput-CiL7mOX5.js → fractionInput-DuK4ef-d.js} +4 -4
- package/{graph-9LOjGTCa.js → graph-CJH3fb_9.js} +6 -6
- package/{hint-C41Ch5XB.js → hint-B4OYwoCZ.js} +4 -4
- package/{hovercard-store-uHO3b4aw.js → hovercard-store-Cor2JG-E.js} +1 -1
- package/{hr-C84KrkaF.js → hr-DxyxAfyw.js} +2 -2
- package/{image-DsR4O6yd.js → image-CRE46C0H.js} +7 -7
- package/{index-CoqrVLpI.js → index-CBRP4-wN.js} +1 -1
- package/{index-B7k3y3yv.js → index-DsDLFuEL.js} +1 -1
- package/{index.es-DGwBETra.js → index.es-DEOewEZn.js} +1 -1
- package/index.js +1 -1
- package/{label-CodBWl3q.js → label-CIpj5Y63.js} +7 -7
- package/{labelWithLatex-Dz50ruqm.js → labelWithLatex-BicLyl1D.js} +2 -2
- package/{legend-D5qk1cn9.js → legend-B6iNoOk3.js} +4 -4
- package/{line-LKhHK3ao.js → line-uTSnEqNp.js} +7 -7
- package/{lineFamilyDragHandlers-B-CET7lf.js → lineFamilyDragHandlers-Df7osYz-.js} +1 -1
- package/{lineSegment-CMe7p4B8.js → lineSegment-Dfyje5QM.js} +5 -5
- package/{list-aDqq9E8_.js → list-D9pGeii4.js} +4 -4
- package/{lq-sk_kpM4g.js → lq-CZICWXNg.js} +2 -2
- package/{lsq-udYhMiy-.js → lsq-C5DeGe8L.js} +2 -2
- package/{markupRenderer-BGYjAPmU.js → markupRenderer-DiDBWayp.js} +1 -1
- package/{math-D5bR8goy.js → math--Up--LZT.js} +7 -7
- package/{mathInput-CqA8QGlC.js → mathInput-DiCsw8Xy.js} +7 -7
- package/{matrixInput-DZ5rWbAH.js → matrixInput-DeDRhwTH.js} +5 -5
- package/{mdash-ByqoX5jk.js → mdash-YpMtTzYb.js} +2 -2
- package/{nbsp-DJyyMGnV.js → nbsp-CzouLmyA.js} +2 -2
- package/{ndash-Cm01kWl7.js → ndash-CesSHMoZ.js} +2 -2
- package/{number-C22PBQNy.js → number-Dsi8t-oT.js} +7 -7
- package/{orbitalDiagram-CTmuEgi-.js → orbitalDiagram-DqW8lDXG.js} +2 -2
- package/{orbitalDiagramInput-ByYETH5z.js → orbitalDiagramInput-Ujhexiv5.js} +3 -3
- package/{p-TtFLz_x5.js → p-JkDCJkLt.js} +4 -4
- package/package.json +1 -1
- package/{paginatorControls-D0_5xOvO.js → paginatorControls-zeS4MeYM.js} +3 -3
- package/{pegboard-pPTxf8sE.js → pegboard-DzlzO4lr.js} +4 -4
- package/{point-D4b8U4lC.js → point-BnRGGL5k.js} +7 -7
- package/{polygon-iydeAeAK.js → polygon-BeS39j3N.js} +6 -6
- package/{polyline-D1Wqv7hE.js → polyline-DjMK8sjj.js} +5 -5
- package/{pre-CQ9y4D0C.js → pre-B9SF1WXw.js} +3 -3
- package/{prefigure-CJkNxksY.js → prefigure-CgQvLn5h.js} +1 -1
- package/{pretzel-CPkDoQpu.js → pretzel-DBniVxdm.js} +4 -4
- package/{q-CZXq0YKe.js → q-CLzPbBkU.js} +3 -3
- package/{ray-BXcVKK2Z.js → ray-Bg6L_yXO.js} +5 -5
- package/{ref-DU5u7LFH.js → ref-CCJXcMPu.js} +2 -2
- package/{regionBetweenCurveXAxis-D8UXPU8g.js → regionBetweenCurveXAxis-CS_AlIVf.js} +5 -5
- package/{regionBetweenCurves-DvRmJcwN.js → regionBetweenCurves-DNvowvoK.js} +5 -5
- package/{row-DvC8EdBh.js → row-Dle_oVKb.js} +2 -2
- package/{rq-JzDMJ0ZL.js → rq-CI5DfsFj.js} +2 -2
- package/{rsq-GgFYOjN0.js → rsq-BB9E3_NA.js} +2 -2
- package/{section-BrgbvDNu.js → section-p0dG4GrG.js} +5 -5
- package/{sha256-DT5xJ2Hv-zsQ-uelX.js → sha256-DT5xJ2Hv-nRhEg6Iu.js} +1 -1
- package/{sideBySide-DE2uxJzi.js → sideBySide-C0hv1H5l.js} +2 -2
- package/{slider-CkjyPDPg.js → slider-CvaKYTQl.js} +4 -4
- package/{slopeField-DzoDI_VI.js → slopeField-C7IAnOmN.js} +2 -2
- package/{solution-D61ajFGy.js → solution-WX05uux-.js} +4 -4
- package/{spreadsheet-DG_DFrQv.js → spreadsheet-YJjdy9w5.js} +2 -2
- package/{sq-Crt8B5Q9.js → sq-ChyPDsQB.js} +3 -3
- package/{subsetOfRealsInput-Cpy9vBVy.js → subsetOfRealsInput-BwDeYfV-.js} +3 -3
- package/{summaryStatistics-DW_aR-Nj.js → summaryStatistics-Dnv8WfMs.js} +2 -2
- package/{table-CbJlvUVx.js → table-DgDuWmAc.js} +2 -2
- package/{tabular-CrEPPxUm.js → tabular-DCqCE_YP.js} +2 -2
- package/{tag-sTOkSoGF.js → tag-Cz5m3LXR.js} +2 -2
- package/{text-BOFBX0YD.js → text-BpAMUhHw.js} +6 -6
- package/{textInput-TRboDv3U.js → textInput-DUcTr-gU.js} +6 -6
- package/{tooltip-provider-MdvzPbk6.js → tooltip-provider-C2iQu8q1.js} +2 -2
- package/{useAnchoredGraphDragHandler-CyQBCDpJ.js → useAnchoredGraphDragHandler-guvyhnhU.js} +1 -1
- package/useDoenetRenderer-BAtxQcWU.js +114 -0
- package/{useFieldCurve-DJVrRZ6y.js → useFieldCurve-DTQt88CG.js} +2 -2
- package/{useSubmitActionWithDelay-Bz9sbOOj.js → useSubmitActionWithDelay-DfA50-Kj.js} +2 -2
- package/utils/handshakeCensus.d.ts +52 -10
- package/utils/handshakeCensus.d.ts.map +1 -1
- package/{vector-QaINZf3K.js → vector-BWEByhmm.js} +7 -7
- package/{vectorField-PPj_aZIR.js → vectorField-De1Z4iOl.js} +2 -2
- package/{video-CYCSnFH1.js → video-BQM_T1_i.js} +4 -4
- package/useDoenetRenderer-BqmSXVL0.js +0 -114
|
@@ -31813,7 +31813,7 @@ async function cidFromArrayBuffer(data) {
|
|
|
31813
31813
|
await crypto.subtle.digest("SHA-256", new Uint8Array());
|
|
31814
31814
|
digest = (data2) => crypto.subtle.digest("SHA-256", data2);
|
|
31815
31815
|
} catch (e2) {
|
|
31816
|
-
const sha256 = (await import("./sha256-DT5xJ2Hv-
|
|
31816
|
+
const sha256 = (await import("./sha256-DT5xJ2Hv-nRhEg6Iu.js").then((n2) => n2.s)).default;
|
|
31817
31817
|
digest = (data2) => sha256(data2, {
|
|
31818
31818
|
asBytes: true
|
|
31819
31819
|
});
|
|
@@ -47637,8 +47637,11 @@ function lockManager() {
|
|
|
47637
47637
|
}
|
|
47638
47638
|
const HANDSHAKE_CENSUS_LOCK = "doenet-handshake-census";
|
|
47639
47639
|
const CENSUS_JOIN_TIMEOUT_MS = 1e3;
|
|
47640
|
-
const NO_CENSUS_SEAT = {
|
|
47641
|
-
|
|
47640
|
+
const NO_CENSUS_SEAT = {
|
|
47641
|
+
release: () => {
|
|
47642
|
+
},
|
|
47643
|
+
count: Promise.resolve(1)
|
|
47644
|
+
};
|
|
47642
47645
|
function reportedCores() {
|
|
47643
47646
|
try {
|
|
47644
47647
|
return typeof navigator !== "undefined" && navigator.hardwareConcurrency ? navigator.hardwareConcurrency : 0;
|
|
@@ -47671,8 +47674,15 @@ function joinHandshakeCensus() {
|
|
|
47671
47674
|
if (released) {
|
|
47672
47675
|
return Promise.resolve();
|
|
47673
47676
|
}
|
|
47677
|
+
const count = countConcurrentHandshakes().then(
|
|
47678
|
+
(inFlight2) => {
|
|
47679
|
+
lastKnownConcurrentHandshakes = inFlight2;
|
|
47680
|
+
return inFlight2;
|
|
47681
|
+
}
|
|
47682
|
+
);
|
|
47674
47683
|
return new Promise((release) => {
|
|
47675
47684
|
settle({
|
|
47685
|
+
count,
|
|
47676
47686
|
release: () => {
|
|
47677
47687
|
released = true;
|
|
47678
47688
|
release();
|
|
@@ -47755,17 +47765,32 @@ function retryDelayMs(attempt) {
|
|
|
47755
47765
|
}
|
|
47756
47766
|
const CORE_START_FAILED_MESSAGE = "This document could not be started. Please reload the page.";
|
|
47757
47767
|
const CORE_START_FAILED_BUSY_MESSAGE = "This document could not be started. Several documents were starting at once, which can take longer on a slower device. Reloading the page may help once the other documents have finished.";
|
|
47758
|
-
function withTimeout(task, ms, label) {
|
|
47768
|
+
function withTimeout(task, ms, label, widenedMs) {
|
|
47759
47769
|
return new Promise((resolve, reject2) => {
|
|
47760
47770
|
let settled = false;
|
|
47761
|
-
const
|
|
47771
|
+
const startedAt = Date.now();
|
|
47772
|
+
let budgetMs = ms;
|
|
47773
|
+
function expire() {
|
|
47762
47774
|
if (!settled) {
|
|
47763
47775
|
settled = true;
|
|
47764
|
-
const err = new Error(`${label} timed out after ${
|
|
47776
|
+
const err = new Error(`${label} timed out after ${budgetMs}ms`);
|
|
47765
47777
|
err[TIMEOUT_ERROR_FLAG] = true;
|
|
47766
47778
|
reject2(err);
|
|
47767
47779
|
}
|
|
47768
|
-
}
|
|
47780
|
+
}
|
|
47781
|
+
let timer = setTimeout(expire, ms);
|
|
47782
|
+
widenedMs?.then((wider) => {
|
|
47783
|
+
if (settled || !(wider > budgetMs)) {
|
|
47784
|
+
return;
|
|
47785
|
+
}
|
|
47786
|
+
budgetMs = wider;
|
|
47787
|
+
clearTimeout(timer);
|
|
47788
|
+
timer = setTimeout(
|
|
47789
|
+
expire,
|
|
47790
|
+
Math.max(0, startedAt + wider - Date.now())
|
|
47791
|
+
);
|
|
47792
|
+
}).catch(() => {
|
|
47793
|
+
});
|
|
47769
47794
|
task().then(
|
|
47770
47795
|
(value) => {
|
|
47771
47796
|
if (!settled) {
|
|
@@ -48558,7 +48583,7 @@ function DocViewer({
|
|
|
48558
48583
|
for (const rendererClassName of coreInfo.current.rendererTypesInDocument) {
|
|
48559
48584
|
rendererClassNames.push(rendererClassName);
|
|
48560
48585
|
rendererLoaders.push(
|
|
48561
|
-
() => __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "./renderers/GraphFrame.tsx": () => import("./GraphFrame-
|
|
48586
|
+
() => __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "./renderers/GraphFrame.tsx": () => import("./GraphFrame-l_fXN6oJ.js"), "./renderers/JSXGraphRenderer.tsx": () => import("./JSXGraphRenderer-xuqNYEMe.js").then((n2) => n2.m), "./renderers/_error.tsx": () => import("./_error-6wEbVswo.js"), "./renderers/alert.tsx": () => import("./alert-DGIdSxd5.js"), "./renderers/angle.tsx": () => import("./angle-B_yqY4eA.js"), "./renderers/answer.tsx": () => import("./answer-CsP3EPMl.js"), "./renderers/asList.tsx": () => import("./asList-DCXp-O5w.js"), "./renderers/blockQuote.tsx": () => import("./blockQuote-BdOxQAZX.js"), "./renderers/boolean.tsx": () => import("./boolean-w9_LHFn2.js"), "./renderers/booleanInput.tsx": () => import("./booleanInput-WvLRmRvQ.js"), "./renderers/br.tsx": () => import("./br-BkZHYEyb.js"), "./renderers/button.tsx": () => import("./button-eO4GcDK0.js"), "./renderers/c.tsx": () => import("./c-BQKhLZrA.js"), "./renderers/cell.tsx": () => import("./cell-C0WBTaNk.js"), "./renderers/choiceInput.tsx": () => import("./choiceInput-BhxWosVq.js"), "./renderers/circle.tsx": () => import("./circle-CpKUhiP5.js"), "./renderers/cobwebPolyline.tsx": () => import("./cobwebPolyline-_r-rG3Nw.js"), "./renderers/codeEditor.tsx": () => import("./codeEditor-CszCj14f.js"), "./renderers/containerBlock.tsx": () => import("./containerBlock-Dyrio5Dv.js"), "./renderers/containerInline.tsx": () => import("./containerInline--3XrSLzN.js"), "./renderers/curve.tsx": () => import("./curve-kTH7dlHM.js"), "./renderers/ellipsis.tsx": () => import("./ellipsis-D80KnK2G.js"), "./renderers/em.tsx": () => import("./em-TShdxpOF.js"), "./renderers/embed.tsx": () => import("./embed-C-EstgJD.js"), "./renderers/feedback.tsx": () => import("./feedback-Cxw3lzpg.js"), "./renderers/figure.tsx": () => import("./figure--Rh8P7Sz.js"), "./renderers/footnote.tsx": () => import("./footnote-DptVzLcw.js"), "./renderers/fractionInput.tsx": () => import("./fractionInput-DuK4ef-d.js"), "./renderers/graph.tsx": () => import("./graph-CJH3fb_9.js"), "./renderers/hint.tsx": () => import("./hint-B4OYwoCZ.js"), "./renderers/hr.tsx": () => import("./hr-DxyxAfyw.js"), "./renderers/image.tsx": () => import("./image-CRE46C0H.js"), "./renderers/label.tsx": () => import("./label-CIpj5Y63.js"), "./renderers/legend.tsx": () => import("./legend-B6iNoOk3.js"), "./renderers/line.tsx": () => import("./line-uTSnEqNp.js"), "./renderers/lineSegment.tsx": () => import("./lineSegment-Dfyje5QM.js"), "./renderers/list.tsx": () => import("./list-D9pGeii4.js"), "./renderers/lq.tsx": () => import("./lq-CZICWXNg.js"), "./renderers/lsq.tsx": () => import("./lsq-C5DeGe8L.js"), "./renderers/math.tsx": () => import("./math--Up--LZT.js"), "./renderers/mathInput.tsx": () => import("./mathInput-DiCsw8Xy.js"), "./renderers/matrixInput.tsx": () => import("./matrixInput-DeDRhwTH.js"), "./renderers/mdash.tsx": () => import("./mdash-YpMtTzYb.js"), "./renderers/nbsp.tsx": () => import("./nbsp-CzouLmyA.js"), "./renderers/ndash.tsx": () => import("./ndash-CesSHMoZ.js"), "./renderers/number.tsx": () => import("./number-Dsi8t-oT.js"), "./renderers/orbitalDiagram.tsx": () => import("./orbitalDiagram-DqW8lDXG.js"), "./renderers/orbitalDiagramInput.tsx": () => import("./orbitalDiagramInput-Ujhexiv5.js"), "./renderers/p.tsx": () => import("./p-JkDCJkLt.js"), "./renderers/paginatorControls.tsx": () => import("./paginatorControls-zeS4MeYM.js"), "./renderers/pegboard.tsx": () => import("./pegboard-DzlzO4lr.js"), "./renderers/point.tsx": () => import("./point-BnRGGL5k.js"), "./renderers/polygon.tsx": () => import("./polygon-BeS39j3N.js"), "./renderers/polyline.tsx": () => import("./polyline-DjMK8sjj.js"), "./renderers/pre.tsx": () => import("./pre-B9SF1WXw.js"), "./renderers/prefigure.tsx": () => import("./prefigure-CgQvLn5h.js"), "./renderers/pretzel.tsx": () => import("./pretzel-DBniVxdm.js"), "./renderers/q.tsx": () => import("./q-CLzPbBkU.js"), "./renderers/ray.tsx": () => import("./ray-Bg6L_yXO.js"), "./renderers/ref.tsx": () => import("./ref-CCJXcMPu.js"), "./renderers/regionBetweenCurveXAxis.tsx": () => import("./regionBetweenCurveXAxis-CS_AlIVf.js"), "./renderers/regionBetweenCurves.tsx": () => import("./regionBetweenCurves-DNvowvoK.js"), "./renderers/row.tsx": () => import("./row-Dle_oVKb.js"), "./renderers/rq.tsx": () => import("./rq-CI5DfsFj.js"), "./renderers/rsq.tsx": () => import("./rsq-BB9E3_NA.js"), "./renderers/section.tsx": () => import("./section-p0dG4GrG.js"), "./renderers/sideBySide.tsx": () => import("./sideBySide-C0hv1H5l.js"), "./renderers/slider.tsx": () => import("./slider-CvaKYTQl.js"), "./renderers/slopeField.tsx": () => import("./slopeField-C7IAnOmN.js"), "./renderers/solution.tsx": () => import("./solution-WX05uux-.js"), "./renderers/spreadsheet.tsx": () => import("./spreadsheet-YJjdy9w5.js"), "./renderers/sq.tsx": () => import("./sq-ChyPDsQB.js"), "./renderers/subsetOfRealsInput.tsx": () => import("./subsetOfRealsInput-BwDeYfV-.js"), "./renderers/summaryStatistics.tsx": () => import("./summaryStatistics-Dnv8WfMs.js"), "./renderers/table.tsx": () => import("./table-DgDuWmAc.js"), "./renderers/tabular.tsx": () => import("./tabular-DCqCE_YP.js"), "./renderers/tag.tsx": () => import("./tag-Cz5m3LXR.js"), "./renderers/text.tsx": () => import("./text-BpAMUhHw.js"), "./renderers/textInput.tsx": () => import("./textInput-DUcTr-gU.js"), "./renderers/vector.tsx": () => import("./vector-BWEByhmm.js"), "./renderers/vectorField.tsx": () => import("./vectorField-De1Z4iOl.js"), "./renderers/video.tsx": () => import("./video-BQM_T1_i.js") }), `./renderers/${rendererClassName}.tsx`, 3)
|
|
48562
48587
|
);
|
|
48563
48588
|
}
|
|
48564
48589
|
const documentComponentInstructions = coreInfo.current.documentToRender;
|
|
@@ -48877,6 +48902,12 @@ function DocViewer({
|
|
|
48877
48902
|
);
|
|
48878
48903
|
const handshakeWatchdogOverride = doenetGlobalConfig.coreHandshakeWatchdogMs;
|
|
48879
48904
|
const cores = reportedCores() || 1;
|
|
48905
|
+
function budgetMsFor(concurrentHandshakes) {
|
|
48906
|
+
return handshakeWatchdogOverride ?? handshakeWatchdogMsFor({
|
|
48907
|
+
concurrentHandshakes,
|
|
48908
|
+
hardwareConcurrency: cores
|
|
48909
|
+
});
|
|
48910
|
+
}
|
|
48880
48911
|
let thisCoreWorker = null;
|
|
48881
48912
|
let handshakeSucceeded = false;
|
|
48882
48913
|
let lastFailureWasContended = false;
|
|
@@ -48889,16 +48920,21 @@ function DocViewer({
|
|
|
48889
48920
|
return;
|
|
48890
48921
|
}
|
|
48891
48922
|
refreshHandshakeCensusCount();
|
|
48892
|
-
|
|
48893
|
-
const
|
|
48894
|
-
|
|
48895
|
-
|
|
48896
|
-
|
|
48923
|
+
let concurrentHandshakes = concurrentHandshakesSnapshot();
|
|
48924
|
+
const openingWatchdogMs = budgetMsFor(concurrentHandshakes);
|
|
48925
|
+
const seatWidenedWatchdogMs = attempt === 0 ? censusHandle.then(async (seat) => {
|
|
48926
|
+
concurrentHandshakes = Math.max(
|
|
48927
|
+
concurrentHandshakes,
|
|
48928
|
+
await seat.count
|
|
48929
|
+
);
|
|
48930
|
+
return budgetMsFor(concurrentHandshakes);
|
|
48931
|
+
}) : null;
|
|
48897
48932
|
try {
|
|
48898
48933
|
thisCoreWorker = await withTimeout(
|
|
48899
48934
|
() => handshakeCore(attempt, coreIdWhenCalled),
|
|
48900
|
-
|
|
48901
|
-
`core worker handshake (attempt ${attempt + 1}/${maxAttempts})
|
|
48935
|
+
openingWatchdogMs,
|
|
48936
|
+
`core worker handshake (attempt ${attempt + 1}/${maxAttempts})`,
|
|
48937
|
+
seatWidenedWatchdogMs
|
|
48902
48938
|
);
|
|
48903
48939
|
handshakeSucceeded = true;
|
|
48904
48940
|
break;
|
|
@@ -48917,7 +48953,7 @@ function DocViewer({
|
|
|
48917
48953
|
});
|
|
48918
48954
|
lastFailureWasContended = contended;
|
|
48919
48955
|
console.warn(
|
|
48920
|
-
`DocViewer: core worker handshake attempt ${attempt + 1} of ${maxAttempts} failed (watchdog ${
|
|
48956
|
+
`DocViewer: core worker handshake attempt ${attempt + 1} of ${maxAttempts} failed (watchdog ${budgetMsFor(concurrentHandshakes)}ms; ${concurrentHandshakes} handshake(s) in flight on ${cores} core(s))` + (attempt + 1 < maxAttempts ? "; retrying with a fresh worker." : "; giving up."),
|
|
48921
48957
|
err
|
|
48922
48958
|
);
|
|
48923
48959
|
await teardownCurrentCoreWorker({
|
|
@@ -112151,7 +112187,7 @@ function ExternalAwareVirtualKeyboard({
|
|
|
112151
112187
|
}
|
|
112152
112188
|
const LazyInner = React__default.lazy(async () => {
|
|
112153
112189
|
const module = await importRendererWithRetry(
|
|
112154
|
-
() => import("./EditorViewer-
|
|
112190
|
+
() => import("./EditorViewer-BtN3PY5x.js"),
|
|
112155
112191
|
"EditorViewer"
|
|
112156
112192
|
);
|
|
112157
112193
|
return { default: module.EditorViewer };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as hostProvidedWorkerUrl, o as doenetGlobalConfig } from "./doenetml-
|
|
2
|
-
import { D, a, c, b, d, f, g, e, h, i, m, j, r, s, k, l } from "./doenetml-
|
|
1
|
+
import { n as hostProvidedWorkerUrl, o as doenetGlobalConfig } from "./doenetml-CJXENjwD.js";
|
|
2
|
+
import { D, a, c, b, d, f, g, e, h, i, m, j, r, s, k, l } from "./doenetml-CJXENjwD.js";
|
|
3
3
|
const workerPath = "./doenetml-worker/index.js";
|
|
4
4
|
function resolveWorkerUrl() {
|
|
5
5
|
try {
|