@doenet/doenetml-iframe 0.7.24-dev.489 → 0.7.24-dev.491

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.js CHANGED
@@ -24953,7 +24953,7 @@ function simplify_integers_in_roots$1(t4) {
24953
24953
  let r3 = simplify_integers_in_roots$1(i2);
24954
24954
  Array.isArray(r3) && r3[0] === `*` ? typeof r3[1] == `number` ? (t5 *= r3[1], n3.push(...r3.slice(2))) : n3.push(...r3.slice(1)) : n3.push(r3);
24955
24955
  }
24956
- return t5 !== 1 && n3.unshift(t5), [`*`, ...n3];
24956
+ return n3.length === 0 ? t5 : (t5 !== 1 && n3.unshift(t5), [`*`, ...n3]);
24957
24957
  }
24958
24958
  if (n2 === `apply` && [`sqrt`, `cbrt`, `nthroot`].includes(r2[0])) {
24959
24959
  let t5 = r2[0], n3 = 2, i2 = r2[1];
@@ -29752,7 +29752,7 @@ function workerCreationUrl(workerUrl) {
29752
29752
  }
29753
29753
  } catch {
29754
29754
  }
29755
- const bootstrap = `importScripts(${JSON.stringify(workerUrl)});`;
29755
+ const bootstrap = `self.__doenetWorkerScriptUrl = ${JSON.stringify(workerUrl)};importScripts(${JSON.stringify(workerUrl)});`;
29756
29756
  return URL.createObjectURL(
29757
29757
  new Blob([bootstrap], { type: "text/javascript" })
29758
29758
  );
@@ -64190,7 +64190,7 @@ function simplify_integers_in_roots(t4) {
64190
64190
  let r3 = simplify_integers_in_roots(i2);
64191
64191
  Array.isArray(r3) && r3[0] === `*` ? typeof r3[1] == `number` ? (t5 *= r3[1], n3.push(...r3.slice(2))) : n3.push(...r3.slice(1)) : n3.push(r3);
64192
64192
  }
64193
- return t5 !== 1 && n3.unshift(t5), [`*`, ...n3];
64193
+ return n3.length === 0 ? t5 : (t5 !== 1 && n3.unshift(t5), [`*`, ...n3]);
64194
64194
  }
64195
64195
  if (n2 === `apply` && [`sqrt`, `cbrt`, `nthroot`].includes(r2[0])) {
64196
64196
  let t5 = r2[0], n3 = 2, i2 = r2[1];
@@ -68530,7 +68530,7 @@ function ExternalVirtualKeyboard({
68530
68530
  }
68531
68531
  );
68532
68532
  }
68533
- const version = "0.7.24-dev.489";
68533
+ const version = "0.7.24-dev.491";
68534
68534
  const latestDoenetmlVersion = version;
68535
68535
  function subscribeToPinnedTheme() {
68536
68536
  return () => {