@doenet/v06-to-v07 0.7.21-dev.399 → 0.7.21-dev.400

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.
@@ -38828,15 +38828,9 @@ function negotiateLocales(requested, available, options = {}) {
38828
38828
  defaultLocale
38829
38829
  });
38830
38830
  }
38831
- function declaredDocumentLocale(authoredLang, hostLocale) {
38832
- const tag2 = (authoredLang ?? "").trim() || (hostLocale ?? "").trim();
38833
- if (tag2 === "") {
38834
- return void 0;
38835
- }
38836
- return normalizeLocaleTag(tag2) || void 0;
38837
- }
38838
38831
  function resolveDocumentLocale(authoredLang, hostLocale) {
38839
- return declaredDocumentLocale(authoredLang, hostLocale) ?? DEFAULT_LOCALE;
38832
+ const declared = (authoredLang ?? "").trim() || (hostLocale ?? "").trim();
38833
+ return normalizeLocaleTag(declared) || DEFAULT_LOCALE;
38840
38834
  }
38841
38835
  function normalizeLocaleTag(tag2) {
38842
38836
  const trimmed = tag2.trim();
@@ -43410,7 +43404,7 @@ async function cidFromArrayBuffer(data) {
43410
43404
  await crypto.subtle.digest("SHA-256", new Uint8Array());
43411
43405
  digest = (data2) => crypto.subtle.digest("SHA-256", data2);
43412
43406
  } catch (e22) {
43413
- const sha256 = (await import("./sha256-AuWkkb03-DrXgTBsC-BdcCzzbW.js").then((n2) => n2.s)).default;
43407
+ const sha256 = (await import("./sha256-AuWkkb03-B0t08K-E-DXKlqzPy.js").then((n2) => n2.s)).default;
43414
43408
  digest = (data2) => sha256(data2, {
43415
43409
  asBytes: true
43416
43410
  });
@@ -234231,4 +234225,4 @@ export {
234231
234225
  getDefaultExportFromCjs$1 as g,
234232
234226
  updateSyntaxFromV06toV07 as u
234233
234227
  };
234234
- //# sourceMappingURL=index-Bj7irL1X.js.map
234228
+ //# sourceMappingURL=index-BtQ850CV.js.map