@11ty/client 4.0.0-alpha.8 → 4.0.0-alpha.9

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/core-fs.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! Eleventy (Build Awesome) v4.0.0-alpha.8 (@11ty/client/core-fs Bundle) */
1
+ /*! Eleventy (Build Awesome) v4.0.0-alpha.9 (@11ty/client/core-fs Bundle) */
2
2
  var __create = Object.create;
3
3
  var __defProp = Object.defineProperty;
4
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -13172,7 +13172,7 @@ var require_IsPlainObject = __commonJS({
13172
13172
  var require_Merge = __commonJS({
13173
13173
  "../../node_modules/@11ty/eleventy-utils/src/Merge.js"(exports, module) {
13174
13174
  "use strict";
13175
- var isPlainObject17 = require_IsPlainObject();
13175
+ var isPlainObject18 = require_IsPlainObject();
13176
13176
  var OVERRIDE_PREFIX = "override:";
13177
13177
  function cleanKey(key, prefix) {
13178
13178
  if (prefix && key.startsWith(prefix)) {
@@ -13183,18 +13183,18 @@ var require_Merge = __commonJS({
13183
13183
  __name(cleanKey, "cleanKey");
13184
13184
  function getMergedItem(target, source, prefixes = {}) {
13185
13185
  let { override } = prefixes;
13186
- if (!target && isPlainObject17(source) && Object.isFrozen(source)) {
13186
+ if (!target && isPlainObject18(source) && Object.isFrozen(source)) {
13187
13187
  return source;
13188
13188
  }
13189
13189
  let sourcePlainObjectShortcut;
13190
- if (!target && isPlainObject17(source)) {
13190
+ if (!target && isPlainObject18(source)) {
13191
13191
  target = {};
13192
13192
  sourcePlainObjectShortcut = true;
13193
13193
  }
13194
13194
  if (Array.isArray(target) && Array.isArray(source)) {
13195
13195
  return target.concat(source);
13196
- } else if (isPlainObject17(target)) {
13197
- if (sourcePlainObjectShortcut || isPlainObject17(source)) {
13196
+ } else if (isPlainObject18(target)) {
13197
+ if (sourcePlainObjectShortcut || isPlainObject18(source)) {
13198
13198
  for (let key in source) {
13199
13199
  let overrideKey = cleanKey(key, override);
13200
13200
  target[overrideKey] = getMergedItem(target[key], source[key], prefixes);
@@ -13205,7 +13205,7 @@ var require_Merge = __commonJS({
13205
13205
  return source;
13206
13206
  }
13207
13207
  __name(getMergedItem, "getMergedItem");
13208
- function DeepCopy5(targetObject, ...sources) {
13208
+ function DeepCopy6(targetObject, ...sources) {
13209
13209
  for (let source of sources) {
13210
13210
  if (!source) {
13211
13211
  continue;
@@ -13214,9 +13214,9 @@ var require_Merge = __commonJS({
13214
13214
  }
13215
13215
  return targetObject;
13216
13216
  }
13217
- __name(DeepCopy5, "DeepCopy");
13218
- function Merge7(target, ...sources) {
13219
- if (isPlainObject17(target)) {
13217
+ __name(DeepCopy6, "DeepCopy");
13218
+ function Merge6(target, ...sources) {
13219
+ if (isPlainObject18(target)) {
13220
13220
  for (let key in target) {
13221
13221
  if (key.indexOf(OVERRIDE_PREFIX) === 0) {
13222
13222
  target[key.slice(OVERRIDE_PREFIX.length)] = target[key];
@@ -13234,9 +13234,9 @@ var require_Merge = __commonJS({
13234
13234
  }
13235
13235
  return target;
13236
13236
  }
13237
- __name(Merge7, "Merge");
13238
- module.exports = Merge7;
13239
- module.exports.DeepCopy = DeepCopy5;
13237
+ __name(Merge6, "Merge");
13238
+ module.exports = Merge6;
13239
+ module.exports.DeepCopy = DeepCopy6;
13240
13240
  }
13241
13241
  });
13242
13242
 
@@ -13663,17 +13663,17 @@ var require_CreateHash = __commonJS({
13663
13663
  var require_eleventy_utils = __commonJS({
13664
13664
  "../../node_modules/@11ty/eleventy-utils/index.js"(exports, module) {
13665
13665
  var TemplatePath33 = require_TemplatePath();
13666
- var isPlainObject17 = require_IsPlainObject();
13667
- var Merge7 = require_Merge();
13666
+ var isPlainObject18 = require_IsPlainObject();
13667
+ var Merge6 = require_Merge();
13668
13668
  var DateCompare = require_DateCompare();
13669
- var { DeepCopy: DeepCopy5 } = Merge7;
13669
+ var { DeepCopy: DeepCopy6 } = Merge6;
13670
13670
  var { createHash: createHash2, createHashHex, createHashSync, createHashHexSync } = require_CreateHash();
13671
13671
  var Buffer3 = require_Buffer();
13672
13672
  module.exports = {
13673
13673
  TemplatePath: TemplatePath33,
13674
- isPlainObject: isPlainObject17,
13675
- Merge: Merge7,
13676
- DeepCopy: DeepCopy5,
13674
+ isPlainObject: isPlainObject18,
13675
+ Merge: Merge6,
13676
+ DeepCopy: DeepCopy6,
13677
13677
  DateCompare,
13678
13678
  createHash: createHash2,
13679
13679
  createHashHex,
@@ -18082,9 +18082,9 @@ var require_lodash_custom = __commonJS({
18082
18082
  var Map2 = getNative(root, "Map"), nativeCreate = getNative(Object, "create");
18083
18083
  var realNames = {};
18084
18084
  var symbolProto = Symbol2 ? Symbol2.prototype : undefined2, symbolToString = symbolProto ? symbolProto.toString : undefined2;
18085
- function lodash11() {
18085
+ function lodash10() {
18086
18086
  }
18087
- __name(lodash11, "lodash");
18087
+ __name(lodash10, "lodash");
18088
18088
  function Hash(entries) {
18089
18089
  var index = -1, length = entries == null ? 0 : entries.length;
18090
18090
  this.clear();
@@ -18576,26 +18576,26 @@ var require_lodash_custom = __commonJS({
18576
18576
  return object == null ? object : baseSet(object, path16, value);
18577
18577
  }
18578
18578
  __name(set, "set");
18579
- lodash11.chunk = chunk;
18580
- lodash11.memoize = memoize;
18581
- lodash11.set = set;
18582
- lodash11.eq = eq;
18583
- lodash11.get = get;
18584
- lodash11.isArray = isArray2;
18585
- lodash11.isArrayLike = isArrayLike;
18586
- lodash11.isFunction = isFunction;
18587
- lodash11.isLength = isLength;
18588
- lodash11.isObject = isObject;
18589
- lodash11.isObjectLike = isObjectLike;
18590
- lodash11.isSymbol = isSymbol;
18591
- lodash11.toFinite = toFinite;
18592
- lodash11.toInteger = toInteger;
18593
- lodash11.toNumber = toNumber;
18594
- lodash11.toString = toString2;
18595
- lodash11.VERSION = VERSION;
18579
+ lodash10.chunk = chunk;
18580
+ lodash10.memoize = memoize;
18581
+ lodash10.set = set;
18582
+ lodash10.eq = eq;
18583
+ lodash10.get = get;
18584
+ lodash10.isArray = isArray2;
18585
+ lodash10.isArrayLike = isArrayLike;
18586
+ lodash10.isFunction = isFunction;
18587
+ lodash10.isLength = isLength;
18588
+ lodash10.isObject = isObject;
18589
+ lodash10.isObjectLike = isObjectLike;
18590
+ lodash10.isSymbol = isSymbol;
18591
+ lodash10.toFinite = toFinite;
18592
+ lodash10.toInteger = toInteger;
18593
+ lodash10.toNumber = toNumber;
18594
+ lodash10.toString = toString2;
18595
+ lodash10.VERSION = VERSION;
18596
18596
  if (freeModule) {
18597
- (freeModule.exports = lodash11)._ = lodash11;
18598
- freeExports._ = lodash11;
18597
+ (freeModule.exports = lodash10)._ = lodash10;
18598
+ freeExports._ = lodash10;
18599
18599
  }
18600
18600
  }).call(exports);
18601
18601
  }
@@ -25911,7 +25911,7 @@ var init_package = __esm({
25911
25911
  "../../package.json"() {
25912
25912
  package_default = {
25913
25913
  name: "@11ty/eleventy",
25914
- version: "4.0.0-alpha.8",
25914
+ version: "4.0.0-alpha.9",
25915
25915
  description: "A simpler way to build awesome web sites.",
25916
25916
  publishConfig: {
25917
25917
  access: "public",
@@ -25977,7 +25977,7 @@ var init_package = __esm({
25977
25977
  "nano-staged": "nano-staged",
25978
25978
  prepare: "simple-git-hooks"
25979
25979
  },
25980
- author: "Zach Leatherman <zachleatherman@gmail.com> (https://zachleat.com/)",
25980
+ author: "Zach Leatherman (https://zachleat.com/)",
25981
25981
  repository: {
25982
25982
  type: "git",
25983
25983
  url: "git+https://github.com/11ty/buildawesome.git"
@@ -26017,22 +26017,22 @@ var init_package = __esm({
26017
26017
  "@iarna/toml": "^2.2.5",
26018
26018
  "@mdx-js/node-loader": "^3.1.1",
26019
26019
  "@stylistic/eslint-plugin": "^5.10.0",
26020
- "@types/node": "^25.9.3",
26021
- "@vue/server-renderer": "^3.5.38",
26020
+ "@types/node": "^26.1.0",
26021
+ "@vue/server-renderer": "^3.5.39",
26022
26022
  "@zachleat/noop": "^1.0.7",
26023
26023
  ava: "^8.0.1",
26024
26024
  c8: "^11.0.0",
26025
26025
  "cross-env": "^10.1.0",
26026
- eslint: "^10.5.0",
26026
+ eslint: "^10.6.0",
26027
26027
  "eslint-config-prettier": "^10.1.8",
26028
- globals: "^17.6.0",
26028
+ globals: "^17.7.0",
26029
26029
  "jsx-async-runtime": "^2.1.3",
26030
26030
  luxon: "^3.7.2",
26031
26031
  "markdown-it-abbr": "^2.0.0",
26032
26032
  "markdown-it-emoji": "^3.0.0",
26033
26033
  marked: "^18.0.5",
26034
26034
  "nano-staged": "^1.0.2",
26035
- prettier: "^3.8.4",
26035
+ prettier: "^3.9.4",
26036
26036
  pretty: "^2.0.0",
26037
26037
  react: "^19.2.7",
26038
26038
  "react-dom": "^19.2.7",
@@ -26040,7 +26040,7 @@ var init_package = __esm({
26040
26040
  "simple-git-hooks": "^2.13.1",
26041
26041
  tsx: "^4.22.4",
26042
26042
  typescript: "6.0.3",
26043
- vue: "^3.5.38",
26043
+ vue: "^3.5.39",
26044
26044
  zod: "^4.4.3",
26045
26045
  "zod-validation-error": "^5.0.0"
26046
26046
  },
@@ -26049,12 +26049,12 @@ var init_package = __esm({
26049
26049
  "@11ty/dependency-tree-esm": "^2.0.4",
26050
26050
  "@11ty/dependency-tree-typescript": "^1.0.0",
26051
26051
  "@11ty/eleventy-dev-server": "^3.0.0-alpha.10",
26052
- "@11ty/eleventy-plugin-bundle": "^3.0.7",
26052
+ "@11ty/eleventy-plugin-bundle": "^4.0.2",
26053
26053
  "@11ty/eleventy-utils": "^2.0.7",
26054
26054
  "@11ty/gray-matter": "^2.1.0",
26055
26055
  "@11ty/lodash-custom": "^4.17.21",
26056
26056
  "@11ty/node-version-check": "^1.0.1",
26057
- "@11ty/nunjucks": "^4.0.0-alpha.1",
26057
+ "@11ty/nunjucks": "^4.0.0-alpha.3",
26058
26058
  "@11ty/parse-date-strings": "^2.0.6",
26059
26059
  "@11ty/posthtml-urls": "^1.0.3",
26060
26060
  "@11ty/recursive-copy": "^5.0.2",
@@ -26066,7 +26066,7 @@ var init_package = __esm({
26066
26066
  "import-module-string": "^2.0.3",
26067
26067
  "iso-639-1": "^3.1.5",
26068
26068
  kleur: "^4.1.5",
26069
- liquidjs: "^10.27.0",
26069
+ liquidjs: "^10.27.1",
26070
26070
  "markdown-it": "^14.2.0",
26071
26071
  minimist: "^1.2.8",
26072
26072
  moo: "0.5.2",
@@ -26075,7 +26075,7 @@ var init_package = __esm({
26075
26075
  picomatch: "^4.0.4",
26076
26076
  posthtml: "^0.16.7",
26077
26077
  "posthtml-match-helper": "^2.0.3",
26078
- semver: "^7.8.4",
26078
+ semver: "^7.8.5",
26079
26079
  tinyglobby: "^0.2.17"
26080
26080
  }
26081
26081
  };
@@ -26124,7 +26124,8 @@ var init_AsyncEventEmitter = __esm({
26124
26124
  static {
26125
26125
  __name(this, "AsyncEventEmitter");
26126
26126
  }
26127
- #handlerMode = "parallel";
26127
+ // Breaking change v4.0.0-alpha.9, changed from "parallel". See #4293
26128
+ #handlerMode = "sequential";
26128
26129
  /* Order matters */
26129
26130
  #emitAliases = {
26130
26131
  "buildawesome.before": ["beforeBuild", "eleventy.before", "buildawesome.before"],
@@ -28723,6 +28724,26 @@ var require_picomatch2 = __commonJS({
28723
28724
  }
28724
28725
  });
28725
28726
 
28727
+ // ../../src/Util/EnvironmentVars.cjs
28728
+ var require_EnvironmentVars = __commonJS({
28729
+ "../../src/Util/EnvironmentVars.cjs"(exports, module) {
28730
+ "use strict";
28731
+ module.exports.getEnvValue = function(key) {
28732
+ if (!process?.env) {
28733
+ return;
28734
+ }
28735
+ return process.env[`BUILDAWESOME_${key}`] || process.env[`ELEVENTY_${key}`];
28736
+ };
28737
+ module.exports.setEnvValue = function(key, value) {
28738
+ if (!process?.env) {
28739
+ return;
28740
+ }
28741
+ process.env[`BUILDAWESOME_${key}`] = value;
28742
+ process.env[`ELEVENTY_${key}`] = value;
28743
+ };
28744
+ }
28745
+ });
28746
+
28726
28747
  // ../../node_modules/semver/internal/lrucache.js
28727
28748
  var require_lrucache = __commonJS({
28728
28749
  "../../node_modules/semver/internal/lrucache.js"(exports, module) {
@@ -29667,15 +29688,16 @@ var require_range = __commonJS({
29667
29688
  }, "replaceTildes");
29668
29689
  var replaceTilde = /* @__PURE__ */ __name((comp, options) => {
29669
29690
  const r = options.loose ? re[t.TILDELOOSE] : re[t.TILDE];
29691
+ const z = options.includePrerelease ? "-0" : "";
29670
29692
  return comp.replace(r, (_, M, m, p, pr) => {
29671
29693
  debug34("tilde", comp, _, M, m, p, pr);
29672
29694
  let ret;
29673
29695
  if (isX(M)) {
29674
29696
  ret = "";
29675
29697
  } else if (isX(m)) {
29676
- ret = `>=${M}.0.0 <${+M + 1}.0.0-0`;
29698
+ ret = `>=${M}.0.0${z} <${+M + 1}.0.0-0`;
29677
29699
  } else if (isX(p)) {
29678
- ret = `>=${M}.${m}.0 <${M}.${+m + 1}.0-0`;
29700
+ ret = `>=${M}.${m}.0${z} <${M}.${+m + 1}.0-0`;
29679
29701
  } else if (pr) {
29680
29702
  debug34("replaceTilde pr", pr);
29681
29703
  ret = `>=${M}.${m}.${p}-${pr} <${M}.${+m + 1}.0-0`;
@@ -34025,26 +34047,6 @@ var require_gray_matter = __commonJS({
34025
34047
  }
34026
34048
  });
34027
34049
 
34028
- // ../../src/Util/EnvironmentVars.cjs
34029
- var require_EnvironmentVars = __commonJS({
34030
- "../../src/Util/EnvironmentVars.cjs"(exports, module) {
34031
- "use strict";
34032
- module.exports.getEnvValue = function(key) {
34033
- if (!process?.env) {
34034
- return;
34035
- }
34036
- return process.env[`BUILDAWESOME_${key}`] || process.env[`ELEVENTY_${key}`];
34037
- };
34038
- module.exports.setEnvValue = function(key, value) {
34039
- if (!process?.env) {
34040
- return;
34041
- }
34042
- process.env[`BUILDAWESOME_${key}`] = value;
34043
- process.env[`ELEVENTY_${key}`] = value;
34044
- };
34045
- }
34046
- });
34047
-
34048
34050
  // ../../node_modules/junk/index.js
34049
34051
  var require_junk = __commonJS({
34050
34052
  "../../node_modules/junk/index.js"(exports, module) {
@@ -37900,6 +37902,7 @@ var HtmlTransformer = class _HtmlTransformer {
37900
37902
  constructor() {
37901
37903
  this.callbacks = {};
37902
37904
  this.posthtmlProcessOptions = {
37905
+ xmlMode: false,
37903
37906
  recognizeNoValueAttribute: true,
37904
37907
  closingSingleTag: "closeAs"
37905
37908
  };
@@ -39233,7 +39236,6 @@ var ProjectDirectories = class _ProjectDirectories {
39233
39236
 
39234
39237
  // ../../src/TemplateConfig.js
39235
39238
  var import_eleventy_utils17 = __toESM(require_eleventy_utils(), 1);
39236
- var import_lodash_custom2 = __toESM(require_lodash_custom(), 1);
39237
39239
 
39238
39240
  // ../../node_modules/kleur/index.mjs
39239
39241
  var FORCE_COLOR;
@@ -39341,18 +39343,21 @@ var kleur_default = $;
39341
39343
  // ../../src/Adapters/Packages/chalk.js
39342
39344
  var chalk_default = kleur_default;
39343
39345
 
39344
- // ../../node_modules/@11ty/package-bundler/shims/debug.js
39345
- function debug_default() {
39346
- return function() {
39347
- };
39348
- }
39349
- __name(debug_default, "default");
39346
+ // ../../node_modules/@11ty/eleventy-plugin-bundle/src/BundlePlugin.js
39347
+ init_browser();
39348
+
39349
+ // ../../node_modules/@11ty/eleventy-plugin-bundle/src/BundleManagersPlugin.js
39350
+ init_browser();
39351
+
39352
+ // ../../node_modules/@11ty/eleventy-plugin-bundle/src/CodeManager.js
39353
+ init_browser();
39350
39354
 
39351
39355
  // ../../node_modules/@11ty/eleventy-plugin-bundle/src/BundleFileOutput.js
39352
39356
  init_shim_fs();
39353
39357
  var import_node_path9 = __toESM(require_path(), 1);
39358
+ init_browser();
39354
39359
  var import_eleventy_utils10 = __toESM(require_eleventy_utils(), 1);
39355
- var debug4 = debug_default("Eleventy:Bundle");
39360
+ var debug4 = createDebug2("Eleventy:Bundle");
39356
39361
  var hashCache = {};
39357
39362
  var directoryExistsCache = {};
39358
39363
  var writingCache = /* @__PURE__ */ new Set();
@@ -39408,8 +39413,8 @@ var BundleFileOutput = class {
39408
39413
  };
39409
39414
 
39410
39415
  // ../../node_modules/@11ty/eleventy-plugin-bundle/src/CodeManager.js
39411
- var debug5 = debug_default("Eleventy:Bundle");
39412
- var DEBUG_LOG_TRUNCATION_SIZE = 200;
39416
+ var debug5 = createDebug2("Eleventy:Bundle");
39417
+ var DEBUG_LOG_TRUNCATION_SIZE = 100;
39413
39418
  var CodeManager = class _CodeManager {
39414
39419
  static {
39415
39420
  __name(this, "CodeManager");
@@ -39424,11 +39429,18 @@ var CodeManager = class _CodeManager {
39424
39429
  this.reset();
39425
39430
  this.transforms = [];
39426
39431
  this.isHoisting = true;
39427
- this.fileExtension = void 0;
39432
+ this.fileExtension = name;
39428
39433
  this.toFileDirectory = void 0;
39429
39434
  this.bundleExportKey = "bundle";
39430
39435
  this.runsAfterHtmlTransformer = false;
39431
39436
  this.pluckedSelector = void 0;
39437
+ if (name === "js") {
39438
+ this.pruneEmptySelector = "script";
39439
+ } else if (name === "css") {
39440
+ this.pruneEmptySelector = `style,link[rel="stylesheet"]`;
39441
+ } else {
39442
+ this.pruneEmptySelector = void 0;
39443
+ }
39432
39444
  }
39433
39445
  setDelayed(isDelayed) {
39434
39446
  this.runsAfterHtmlTransformer = Boolean(isDelayed);
@@ -39439,10 +39451,17 @@ var CodeManager = class _CodeManager {
39439
39451
  // posthtml-match-selector friendly
39440
39452
  setPluckedSelector(selector) {
39441
39453
  this.pluckedSelector = selector;
39454
+ this.setDelayed(Boolean(selector));
39442
39455
  }
39443
39456
  getPluckedSelector() {
39444
39457
  return this.pluckedSelector;
39445
39458
  }
39459
+ setPruneEmptySelector(selector) {
39460
+ this.pruneEmptySelector = selector;
39461
+ }
39462
+ getPruneEmptySelector() {
39463
+ return this.pruneEmptySelector;
39464
+ }
39446
39465
  setFileExtension(ext) {
39447
39466
  this.fileExtension = ext;
39448
39467
  }
@@ -39529,6 +39548,7 @@ var CodeManager = class _CodeManager {
39529
39548
  }
39530
39549
  return Object.keys(this.pages[pageUrl]);
39531
39550
  }
39551
+ // Without Bundle Transforms
39532
39552
  getRawForPage(pageData, buckets = void 0) {
39533
39553
  let url = pageData.url;
39534
39554
  if (!this.pages[url]) {
@@ -39550,6 +39570,7 @@ var CodeManager = class _CodeManager {
39550
39570
  debug5("Retrieving %o for %o (buckets: %o, entries: %o, size: %o)", this.name, url, buckets, set.size, size);
39551
39571
  return set;
39552
39572
  }
39573
+ // With Bundle Transforms
39553
39574
  async getForPage(pageData, buckets = void 0) {
39554
39575
  let set = this.getRawForPage(pageData, buckets);
39555
39576
  let bundleContent = Array.from(set).join("\n");
@@ -39589,9 +39610,11 @@ var CodeManager = class _CodeManager {
39589
39610
  }
39590
39611
  };
39591
39612
 
39592
- // ../../node_modules/@11ty/eleventy-plugin-bundle/src/bundlePlucker.js
39593
- var debug6 = debug_default("Eleventy:Bundle");
39613
+ // ../../node_modules/@11ty/eleventy-plugin-bundle/src/BundlePlucker.js
39614
+ init_browser();
39615
+ var debug6 = createDebug2("Eleventy:Bundle");
39594
39616
  var ATTRS = {
39617
+ // TODO buildawesome:
39595
39618
  ignore: "eleventy:ignore",
39596
39619
  bucket: "eleventy:bucket"
39597
39620
  };
@@ -39612,7 +39635,7 @@ function addHtmlPlucker(eleventyConfig, bundleManager) {
39612
39635
  if (!pageUrl) {
39613
39636
  throw new Error("Internal error: missing `url` property from context.");
39614
39637
  }
39615
- return function(tree, ...args) {
39638
+ return function(tree) {
39616
39639
  tree.match(lib_default(matchSelector), function(node) {
39617
39640
  try {
39618
39641
  if (hasAttribute(node, ATTRS.ignore)) {
@@ -39620,7 +39643,7 @@ function addHtmlPlucker(eleventyConfig, bundleManager) {
39620
39643
  return node;
39621
39644
  }
39622
39645
  if (Array.isArray(node?.content) && node.content.length > 0) {
39623
- if (node?.content.find((entry) => entry.includes(`/*__EleventyBundle:`))) {
39646
+ if (node?.content.find((entry) => entry.includes(`__EleventyBundle:`) || entry.includes(`#BaBundle:`))) {
39624
39647
  return node;
39625
39648
  }
39626
39649
  let bucketName = node?.attrs?.[ATTRS.bucket];
@@ -39637,51 +39660,72 @@ function addHtmlPlucker(eleventyConfig, bundleManager) {
39637
39660
  },
39638
39661
  {
39639
39662
  // pluginOptions
39640
- name: POSTHTML_PLUGIN_NAME2
39663
+ name: POSTHTML_PLUGIN_NAME2,
39664
+ // needs to run before prune empty bundles, which has priority -1
39665
+ // priority: 0,
39666
+ // the `enabled` callback for plugins is available on v3.0.0-alpha.20+ and v3.0.0-beta.2+
39667
+ enabled: /* @__PURE__ */ __name(() => {
39668
+ return Object.keys(eleventyConfig.getBundleManagers()).length > 0;
39669
+ }, "enabled")
39641
39670
  }
39642
39671
  );
39643
39672
  }
39644
39673
  __name(addHtmlPlucker, "addHtmlPlucker");
39645
39674
 
39646
- // ../../node_modules/@11ty/eleventy-plugin-bundle/src/eleventy.bundleManagers.js
39647
- var debug7 = debug_default("Eleventy:Bundle");
39675
+ // ../../node_modules/@11ty/eleventy-plugin-bundle/src/BundleManagersPlugin.js
39676
+ var debug7 = createDebug2("Eleventy:Bundle");
39677
+ function generateManager(name, bundleOptions = {}) {
39678
+ let manager = new CodeManager(name);
39679
+ if (bundleOptions.delayed !== void 0) {
39680
+ manager.setDelayed(bundleOptions.delayed);
39681
+ }
39682
+ if (bundleOptions.hoist !== void 0) {
39683
+ manager.setHoisting(bundleOptions.hoist);
39684
+ }
39685
+ if (bundleOptions.bundleHtmlContentFromSelector !== void 0) {
39686
+ manager.setPluckedSelector(bundleOptions.bundleHtmlContentFromSelector);
39687
+ }
39688
+ if (bundleOptions.bundleExportKey !== void 0) {
39689
+ manager.setBundleExportKey(bundleOptions.bundleExportKey);
39690
+ }
39691
+ if (bundleOptions.outputFileExtension) {
39692
+ manager.setFileExtension(bundleOptions.outputFileExtension);
39693
+ }
39694
+ if (bundleOptions.toFileDirectory) {
39695
+ manager.setBundleDirectory(bundleOptions.toFileDirectory);
39696
+ }
39697
+ if (bundleOptions.transforms) {
39698
+ manager.setTransforms(bundleOptions.transforms);
39699
+ }
39700
+ return manager;
39701
+ }
39702
+ __name(generateManager, "generateManager");
39648
39703
  function eleventyBundleManagers(eleventyConfig, pluginOptions = {}) {
39649
39704
  if (pluginOptions.force) {
39650
39705
  } else if ("getBundleManagers" in eleventyConfig || "addBundle" in eleventyConfig) {
39651
39706
  throw new Error("Duplicate addPlugin calls for @11ty/eleventy-plugin-bundle");
39652
39707
  }
39653
39708
  let managers = {};
39654
- function addBundle(name, bundleOptions = {}) {
39655
- if (name in managers) {
39656
- debug7("Bundle exists %o, skipping.", name);
39657
- } else {
39658
- debug7("Creating new bundle %o", name);
39659
- managers[name] = new CodeManager(name);
39660
- if (bundleOptions.delayed !== void 0) {
39661
- managers[name].setDelayed(bundleOptions.delayed);
39662
- }
39663
- if (bundleOptions.hoist !== void 0) {
39664
- managers[name].setHoisting(bundleOptions.hoist);
39665
- }
39666
- if (bundleOptions.bundleHtmlContentFromSelector !== void 0) {
39667
- managers[name].setPluckedSelector(bundleOptions.bundleHtmlContentFromSelector);
39668
- managers[name].setDelayed(true);
39669
- addHtmlPlucker(eleventyConfig, managers[name]);
39670
- }
39671
- if (bundleOptions.bundleExportKey !== void 0) {
39672
- managers[name].setBundleExportKey(bundleOptions.bundleExportKey);
39673
- }
39674
- if (bundleOptions.outputFileExtension) {
39675
- managers[name].setFileExtension(bundleOptions.outputFileExtension);
39676
- }
39677
- if (bundleOptions.toFileDirectory) {
39678
- managers[name].setBundleDirectory(bundleOptions.toFileDirectory);
39679
- }
39680
- if (bundleOptions.transforms) {
39681
- managers[name].setTransforms(bundleOptions.transforms);
39709
+ eleventyConfig.addBundle = /* @__PURE__ */ __name(function addBundle(name, bundleOptions = {}) {
39710
+ let manager;
39711
+ let isCodeManagerInstance = name?.constructor?.name === "CodeManager";
39712
+ if (isCodeManagerInstance) {
39713
+ manager = name;
39714
+ name = manager.name;
39715
+ managers[name] = manager;
39716
+ } else if (typeof name === "string") {
39717
+ if (name in managers) {
39718
+ debug7("Bundle exists %o, skipping.", name);
39719
+ } else {
39720
+ debug7("Creating new bundle %o", name);
39721
+ manager = generateManager(name, bundleOptions);
39722
+ managers[name] = manager;
39682
39723
  }
39683
39724
  }
39684
- if (bundleOptions.shortcodeName !== false) {
39725
+ if (manager && manager.getPluckedSelector()) {
39726
+ addHtmlPlucker(eleventyConfig, manager);
39727
+ }
39728
+ if (isCodeManagerInstance || bundleOptions.shortcodeName !== false) {
39685
39729
  let shortcodeName = bundleOptions.shortcodeName || name;
39686
39730
  eleventyConfig.addPairedShortcode(shortcodeName, /* @__PURE__ */ __name(function addContent(content, bucket, explicitUrl) {
39687
39731
  let url = explicitUrl || this.page?.url;
@@ -39691,108 +39735,29 @@ function eleventyBundleManagers(eleventyConfig, pluginOptions = {}) {
39691
39735
  return "";
39692
39736
  }, "addContent"));
39693
39737
  }
39694
- }
39695
- __name(addBundle, "addBundle");
39696
- ;
39697
- eleventyConfig.addBundle = addBundle;
39738
+ }, "addBundle");
39698
39739
  eleventyConfig.getBundleManagers = function() {
39699
39740
  return managers;
39700
39741
  };
39701
39742
  eleventyConfig.on("eleventy.before", async () => {
39702
- for (let key in managers) {
39703
- managers[key].reset();
39743
+ for (let manager of Object.values(managers)) {
39744
+ manager.reset();
39704
39745
  }
39705
39746
  });
39706
39747
  }
39707
39748
  __name(eleventyBundleManagers, "eleventyBundleManagers");
39708
- var eleventy_bundleManagers_default = eleventyBundleManagers;
39709
39749
 
39710
- // ../../node_modules/@11ty/eleventy-plugin-bundle/src/eleventy.pruneEmptyBundles.js
39711
- var debug8 = debug_default("Eleventy:Bundle");
39712
- var ATTRS2 = {
39713
- keep: "eleventy:keep"
39714
- };
39715
- var POSTHTML_PLUGIN_NAME3 = "11ty/eleventy-bundle/prune-empty";
39716
- function getTextNodeContent2(node) {
39717
- if (!node.content) {
39718
- return "";
39719
- }
39720
- return node.content.map((entry) => {
39721
- if (typeof entry === "string") {
39722
- return entry;
39723
- }
39724
- if (Array.isArray(entry.content)) {
39725
- return getTextNodeContent2(entry);
39726
- }
39727
- return "";
39728
- }).join("");
39729
- }
39730
- __name(getTextNodeContent2, "getTextNodeContent");
39731
- function eleventyPruneEmptyBundles(eleventyConfig, options = {}) {
39732
- options.pruneEmptySelector = options.pruneEmptySelector ?? `style,script,link[rel="stylesheet"]`;
39733
- if (typeof eleventyConfig.htmlTransformer.remove === "function") {
39734
- eleventyConfig.htmlTransformer.remove("html", (entry) => {
39735
- if (entry.name === POSTHTML_PLUGIN_NAME3) {
39736
- return true;
39737
- }
39738
- let fnStr = entry.fn.toString();
39739
- return !entry.name && fnStr.startsWith("function (pluginOptions = {}) {") && fnStr.includes(`tree.match(matchHelper(options.pruneEmptySelector), function (node)`);
39740
- });
39741
- }
39742
- if (options.pruneEmptySelector === false) {
39743
- return;
39744
- }
39745
- if (!eleventyConfig.htmlTransformer || !eleventyConfig.htmlTransformer?.constructor?.SUPPORTS_PLUGINS_ENABLED_CALLBACK) {
39746
- debug8("You will need to upgrade your version of Eleventy core to remove empty bundle tags automatically (v3 or newer).");
39747
- return;
39748
- }
39749
- eleventyConfig.htmlTransformer.addPosthtmlPlugin(
39750
- "html",
39751
- /* @__PURE__ */ __name(function bundlePruneEmptyPosthtmlPlugin(pluginOptions = {}) {
39752
- return function(tree) {
39753
- tree.match(lib_default(options.pruneEmptySelector), function(node) {
39754
- if (node.attrs && node.attrs[ATTRS2.keep] !== void 0) {
39755
- delete node.attrs[ATTRS2.keep];
39756
- return node;
39757
- }
39758
- if (node.tag === "link") {
39759
- if (node.attrs?.rel === "stylesheet" && (node.attrs?.href || "").trim().length === 0) {
39760
- return false;
39761
- }
39762
- } else {
39763
- let content = getTextNodeContent2(node);
39764
- if (!content) {
39765
- if (node.tag === "script" && (node.attrs?.src || "").trim().length === 0) {
39766
- return false;
39767
- }
39768
- if (node.tag === "style") {
39769
- return false;
39770
- }
39771
- }
39772
- }
39773
- return node;
39774
- });
39775
- };
39776
- }, "bundlePruneEmptyPosthtmlPlugin"),
39777
- {
39778
- name: POSTHTML_PLUGIN_NAME3,
39779
- // the `enabled` callback for plugins is available on v3.0.0-alpha.20+ and v3.0.0-beta.2+
39780
- enabled: /* @__PURE__ */ __name(() => {
39781
- return Object.keys(eleventyConfig.getBundleManagers()).length > 0;
39782
- }, "enabled")
39783
- }
39784
- );
39785
- }
39786
- __name(eleventyPruneEmptyBundles, "eleventyPruneEmptyBundles");
39787
- var eleventy_pruneEmptyBundles_default = eleventyPruneEmptyBundles;
39750
+ // ../../node_modules/@11ty/eleventy-plugin-bundle/src/PruneEmptyBundlesPlugin.js
39751
+ init_browser();
39788
39752
 
39789
39753
  // ../../node_modules/@11ty/eleventy-plugin-bundle/src/OutOfOrderRender.js
39790
- var debug9 = debug_default("Eleventy:Bundle");
39754
+ init_browser();
39755
+ var debug8 = createDebug2("Eleventy:Bundle");
39791
39756
  var OutOfOrderRender = class _OutOfOrderRender {
39792
39757
  static {
39793
39758
  __name(this, "OutOfOrderRender");
39794
39759
  }
39795
- static SPLIT_REGEX = /(\/\*__EleventyBundle:[^:]*:[^:]*:[^:]*:EleventyBundle__\*\/)/;
39760
+ #regex = /((?:\<\!\-\-)#BaBundle:[^:]*:[^:]*:[^:]*:BaBundle#(?:\-\-\>))/;
39796
39761
  static SEPARATOR = ":";
39797
39762
  constructor(content) {
39798
39763
  this.content = content;
@@ -39806,10 +39771,10 @@ var OutOfOrderRender = class _OutOfOrderRender {
39806
39771
  } else {
39807
39772
  bucket = "";
39808
39773
  }
39809
- return `/*__EleventyBundle:${type}:${name}:${bucket || "default"}:EleventyBundle__*/`;
39774
+ return `<!--#BaBundle:${type}:${name}:${bucket || "default"}:BaBundle#-->`;
39810
39775
  }
39811
39776
  static parseAssetKey(str) {
39812
- if (str.startsWith("/*__EleventyBundle:")) {
39777
+ if (str.startsWith("#BaBundle:") || str.startsWith("<!--#BaBundle:")) {
39813
39778
  let [prefix, type, name, bucket, suffix] = str.split(_OutOfOrderRender.SEPARATOR);
39814
39779
  return { type, name, bucket };
39815
39780
  }
@@ -39826,7 +39791,8 @@ var OutOfOrderRender = class _OutOfOrderRender {
39826
39791
  return ret || match;
39827
39792
  }
39828
39793
  findAll() {
39829
- let matches = this.content.split(_OutOfOrderRender.SPLIT_REGEX);
39794
+ let regex = this.#regex;
39795
+ let matches = this.content.split(regex);
39830
39796
  let ret = [];
39831
39797
  for (let match of matches) {
39832
39798
  ret.push(this.normalizeMatch(match));
@@ -39907,33 +39873,154 @@ var OutOfOrderRender = class _OutOfOrderRender {
39907
39873
  for (let bucketInfo of availableBucketsForPage) {
39908
39874
  if (!usedBucketsOnPage.has(bucketInfo)) {
39909
39875
  let [name, bucketName] = bucketInfo.split("::");
39910
- debug9(`WARNING! \`${pageData.inputPath}\` has unbundled \`${name}\` assets (in the '${bucketName}' bucket) that were not written to or used on the page. You might want to add a call to \`getBundle('${name}', '${bucketName}')\` to your content! Learn more: https://github.com/11ty/eleventy-plugin-bundle#asset-bucketing`);
39876
+ debug8(`WARNING! \`${pageData.inputPath}\` has unbundled \`${name}\` assets (in the '${bucketName}' bucket) that were not written to or used on the page. You might want to add a call to \`getBundle('${name}', '${bucketName}')\` to your content! Learn more: https://github.com/11ty/eleventy-plugin-bundle#asset-bucketing`);
39911
39877
  }
39912
39878
  }
39913
39879
  return content.join("");
39914
39880
  }
39915
39881
  };
39916
39882
 
39917
- // ../../node_modules/@11ty/eleventy-plugin-bundle/src/eleventy.shortcodes.js
39918
- var debug10 = debug_default("Eleventy:Bundle");
39919
- function eleventy_shortcodes_default(eleventyConfig, pluginOptions = {}) {
39920
- let managers = eleventyConfig.getBundleManagers();
39883
+ // ../../node_modules/@11ty/eleventy-plugin-bundle/src/PruneEmptyBundlesPlugin.js
39884
+ var debug9 = createDebug2("Eleventy:Bundle");
39885
+ var ATTRS2 = {
39886
+ // TODO buildawesome:
39887
+ keep: "eleventy:keep"
39888
+ };
39889
+ var POSTHTML_PLUGIN_NAME3 = "11ty/eleventy-bundle/prune-empty";
39890
+ function getTextNodeContent2(node) {
39891
+ if (!node.content) {
39892
+ return "";
39893
+ }
39894
+ return node.content.map((entry) => {
39895
+ if (typeof entry === "string") {
39896
+ return entry;
39897
+ }
39898
+ if (Array.isArray(entry.content)) {
39899
+ return getTextNodeContent2(entry);
39900
+ }
39901
+ return "";
39902
+ }).join("");
39903
+ }
39904
+ __name(getTextNodeContent2, "getTextNodeContent");
39905
+ function hasEmptyBundle(bundleAssetKey, context, bundleManagers) {
39906
+ if (!bundleAssetKey) {
39907
+ return false;
39908
+ }
39909
+ let parsed = OutOfOrderRender.parseAssetKey(bundleAssetKey);
39910
+ if (!parsed) {
39911
+ return false;
39912
+ }
39913
+ let { name, bucket } = parsed;
39914
+ if (bundleManagers?.[name]?.getRawForPage(context, [bucket]).size === 0) {
39915
+ return true;
39916
+ }
39917
+ return false;
39918
+ }
39919
+ __name(hasEmptyBundle, "hasEmptyBundle");
39920
+ function getSelector(managers = {}) {
39921
+ if (Object.values(managers).find((manager) => {
39922
+ return typeof manager.getPruneEmptySelector !== "function";
39923
+ })) {
39924
+ return `style,script,link[rel="stylesheet"]`;
39925
+ }
39926
+ return Object.values(managers).map((manager) => {
39927
+ return manager.getPruneEmptySelector();
39928
+ }).filter(Boolean).join(",");
39929
+ }
39930
+ __name(getSelector, "getSelector");
39931
+ function eleventyPruneEmptyBundles(eleventyConfig, options = {}) {
39932
+ if (!eleventyConfig.htmlTransformer || !eleventyConfig.htmlTransformer?.constructor?.SUPPORTS_PLUGINS_ENABLED_CALLBACK) {
39933
+ debug9("You will need to upgrade your version of Eleventy core to remove empty bundle tags automatically (v3 or newer).");
39934
+ return;
39935
+ }
39936
+ if (typeof eleventyConfig.htmlTransformer?.remove === "function") {
39937
+ eleventyConfig.htmlTransformer.remove("html", (entry) => {
39938
+ if (entry.name === POSTHTML_PLUGIN_NAME3) {
39939
+ return true;
39940
+ }
39941
+ let fnStr = entry.fn.toString();
39942
+ return !entry.name && fnStr.startsWith("function (pluginOptions = {}) {") && fnStr.includes(`tree.match(matchHelper(options.pruneEmptySelector), function (node)`);
39943
+ });
39944
+ }
39945
+ eleventyConfig.htmlTransformer.addPosthtmlPlugin(
39946
+ "html",
39947
+ /* @__PURE__ */ __name(function bundlePruneEmptyPosthtmlPlugin(context = {}) {
39948
+ let pageUrl = context?.url;
39949
+ if (!pageUrl) {
39950
+ throw new Error("Internal error: missing `url` property from context.");
39951
+ }
39952
+ return function(tree) {
39953
+ let managers = eleventyConfig.getBundleManagers();
39954
+ let selector = getSelector(managers);
39955
+ if (!selector) {
39956
+ return;
39957
+ }
39958
+ tree.match(lib_default(selector), function(node) {
39959
+ if (node.attrs && node.attrs[ATTRS2.keep] !== void 0) {
39960
+ delete node.attrs[ATTRS2.keep];
39961
+ return node;
39962
+ }
39963
+ if (node.tag === "link") {
39964
+ if (node.attrs?.rel === "stylesheet") {
39965
+ if ((node.attrs?.href || "").trim().length === 0 || hasEmptyBundle(node.attrs?.href, context, managers)) {
39966
+ return false;
39967
+ }
39968
+ }
39969
+ } else {
39970
+ if (node.tag === "script" && typeof node.attrs?.src === "string") {
39971
+ if (node.attrs.src.trim().length === 0 || hasEmptyBundle(node.attrs.src, context, managers)) {
39972
+ return false;
39973
+ }
39974
+ }
39975
+ let content = getTextNodeContent2(node);
39976
+ if (node.tag === "script" && node.attrs?.src === void 0) {
39977
+ if (!content || hasEmptyBundle(content, context, managers)) {
39978
+ return false;
39979
+ }
39980
+ }
39981
+ if (node.tag === "style") {
39982
+ if (!content || hasEmptyBundle(content, context, managers)) {
39983
+ return false;
39984
+ }
39985
+ }
39986
+ }
39987
+ return node;
39988
+ });
39989
+ };
39990
+ }, "bundlePruneEmptyPosthtmlPlugin"),
39991
+ {
39992
+ name: POSTHTML_PLUGIN_NAME3,
39993
+ // needs to run *after* bundle plucker
39994
+ priority: -1,
39995
+ // the `enabled` callback for plugins is available on v3.0.0-alpha.20+ and v3.0.0-beta.2+
39996
+ enabled: /* @__PURE__ */ __name(() => {
39997
+ return options.pruneEmptySelector !== false && Boolean(getSelector(eleventyConfig.getBundleManagers()));
39998
+ }, "enabled")
39999
+ }
40000
+ );
40001
+ }
40002
+ __name(eleventyPruneEmptyBundles, "eleventyPruneEmptyBundles");
40003
+
40004
+ // ../../node_modules/@11ty/eleventy-plugin-bundle/src/ShortcodesPlugin.js
40005
+ init_browser();
40006
+ var debug10 = createDebug2("Eleventy:Bundle");
40007
+ function ShortcodesPlugin_default($config, pluginOptions = {}) {
40008
+ let managers = $config.getBundleManagers();
39921
40009
  let writeToFileSystem = true;
39922
40010
  function bundleTransform(content, stage = 0) {
39923
40011
  if (typeof content !== "string" || Object.keys(managers).length === 0) {
39924
40012
  return content;
39925
40013
  }
39926
- debug10("Processing %o", this.page.url);
39927
40014
  let render = new OutOfOrderRender(content);
39928
40015
  for (let key in managers) {
39929
40016
  render.setAssetManager(key, managers[key]);
39930
40017
  }
39931
- render.setOutputDirectory(eleventyConfig.directories.output);
40018
+ render.setOutputDirectory($config.directories.output);
39932
40019
  render.setWriteToFileSystem(writeToFileSystem);
39933
40020
  return render.replaceAll(this.page, stage);
39934
40021
  }
39935
40022
  __name(bundleTransform, "bundleTransform");
39936
- eleventyConfig.on("eleventy.before", async ({ outputMode }) => {
40023
+ $config.on("eleventy.before", async ({ outputMode }) => {
39937
40024
  if (Object.keys(managers).length === 0) {
39938
40025
  return;
39939
40026
  }
@@ -39942,43 +40029,45 @@ function eleventy_shortcodes_default(eleventyConfig, pluginOptions = {}) {
39942
40029
  debug10("Skipping writing to the file system due to output mode: %o", outputMode);
39943
40030
  }
39944
40031
  });
39945
- eleventyConfig.addShortcode("getBundle", /* @__PURE__ */ __name(function getContent(type, bucket, explicitUrl) {
40032
+ $config.addShortcode("getBundle", /* @__PURE__ */ __name(function getContent(type, bucket, explicitUrl) {
39946
40033
  if (!type || !(type in managers) || Object.keys(managers).length === 0) {
39947
40034
  throw new Error(`Invalid bundle type: ${type}. Available options: ${Object.keys(managers)}`);
39948
40035
  }
39949
40036
  return OutOfOrderRender.getAssetKey("get", type, bucket);
39950
40037
  }, "getContent"));
39951
- eleventyConfig.addShortcode("getBundleFileUrl", function(type, bucket, explicitUrl) {
40038
+ $config.addShortcode("getBundleFileUrl", function(type, bucket, explicitUrl) {
39952
40039
  if (!type || !(type in managers) || Object.keys(managers).length === 0) {
39953
40040
  throw new Error(`Invalid bundle type: ${type}. Available options: ${Object.keys(managers)}`);
39954
40041
  }
39955
40042
  return OutOfOrderRender.getAssetKey("file", type, bucket);
39956
40043
  });
39957
- eleventyConfig.addTransform("@11ty/eleventy-bundle", function(content) {
39958
- let hasNonDelayedManagers = Boolean(Object.values(eleventyConfig.getBundleManagers()).find((manager) => {
40044
+ $config.addTransform("@11ty/eleventy-bundle", function(content) {
40045
+ let managers2 = $config.getBundleManagers();
40046
+ let nonDelayedManager = Object.values(managers2).find((manager) => {
39959
40047
  return typeof manager.isDelayed !== "function" || !manager.isDelayed();
39960
- }));
39961
- if (hasNonDelayedManagers) {
39962
- return bundleTransform.call(this, content, 0);
40048
+ });
40049
+ if (!Boolean(nonDelayedManager)) {
40050
+ return content;
39963
40051
  }
39964
- return content;
40052
+ return bundleTransform.call(this, content, 0);
39965
40053
  });
39966
- eleventyConfig.addPlugin((eleventyConfig2) => {
39967
- eleventyConfig2.addTransform("@11ty/eleventy-bundle/delayed", function(content) {
39968
- let hasDelayedManagers = Boolean(Object.values(eleventyConfig2.getBundleManagers()).find((manager) => {
40054
+ $config.addPlugin(($config2) => {
40055
+ $config2.addTransform("@11ty/eleventy-bundle/delayed", function(content) {
40056
+ let managers2 = $config2.getBundleManagers();
40057
+ let delayedManager = Object.values(managers2).find((manager) => {
39969
40058
  return typeof manager.isDelayed === "function" && manager.isDelayed();
39970
- }));
39971
- if (hasDelayedManagers) {
39972
- return bundleTransform.call(this, content, 1);
40059
+ });
40060
+ if (!Boolean(delayedManager)) {
40061
+ return content;
39973
40062
  }
39974
- return content;
40063
+ return bundleTransform.call(this, content, 1);
39975
40064
  });
39976
40065
  });
39977
40066
  }
39978
- __name(eleventy_shortcodes_default, "default");
40067
+ __name(ShortcodesPlugin_default, "default");
39979
40068
 
39980
- // ../../node_modules/@11ty/eleventy-plugin-bundle/eleventy.bundle.js
39981
- var debug11 = debug_default("Eleventy:Bundle");
40069
+ // ../../node_modules/@11ty/eleventy-plugin-bundle/src/BundlePlugin.js
40070
+ var debug11 = createDebug2("Eleventy:Bundle");
39982
40071
  function normalizeOptions(options = {}) {
39983
40072
  options = Object.assign({
39984
40073
  // Plugin defaults
@@ -40001,17 +40090,17 @@ function normalizeOptions(options = {}) {
40001
40090
  }
40002
40091
  __name(normalizeOptions, "normalizeOptions");
40003
40092
  function eleventyBundlePlugin(eleventyConfig, pluginOptions = {}) {
40004
- eleventyConfig.versionCheck(">=3.0.0");
40093
+ eleventyConfig.versionCheck(">=4.0.0-0");
40005
40094
  pluginOptions = normalizeOptions(pluginOptions);
40006
40095
  let alreadyAdded = "getBundleManagers" in eleventyConfig || "addBundle" in eleventyConfig;
40007
40096
  if (!alreadyAdded || pluginOptions.force) {
40008
40097
  if (alreadyAdded && pluginOptions.force) {
40009
40098
  debug11("Bundle plugin already added via `addPlugin`, add was forced via `force: true`");
40010
40099
  }
40011
- eleventy_bundleManagers_default(eleventyConfig, pluginOptions);
40100
+ eleventyBundleManagers(eleventyConfig, pluginOptions);
40012
40101
  }
40013
- eleventy_pruneEmptyBundles_default(eleventyConfig, pluginOptions);
40014
- eleventy_shortcodes_default(eleventyConfig, pluginOptions);
40102
+ eleventyPruneEmptyBundles(eleventyConfig, pluginOptions);
40103
+ ShortcodesPlugin_default(eleventyConfig, pluginOptions);
40015
40104
  if (Array.isArray(pluginOptions.bundles)) {
40016
40105
  debug11("Adding bundles via `addPlugin`: %o", pluginOptions.bundles);
40017
40106
  pluginOptions.bundles.forEach((name) => {
@@ -40034,7 +40123,6 @@ __name(eleventyBundlePlugin, "eleventyBundlePlugin");
40034
40123
  Object.defineProperty(eleventyBundlePlugin, "eleventyPackage", {
40035
40124
  value: "@11ty/eleventy-plugin-bundle"
40036
40125
  });
40037
- var eleventy_bundle_default = eleventyBundlePlugin;
40038
40126
 
40039
40127
  // ../../node_modules/escape-string-regexp/index.js
40040
40128
  function escapeStringRegexp(string) {
@@ -42472,6 +42560,9 @@ function MemoizeFunction_default(callback2, options = {}) {
42472
42560
  }
42473
42561
  __name(MemoizeFunction_default, "default");
42474
42562
 
42563
+ // ../../src/defaultConfigExtended.js
42564
+ var import_EnvironmentVars = __toESM(require_EnvironmentVars(), 1);
42565
+
42475
42566
  // ../../src/Filters/GetCollectionItem.js
42476
42567
  function getCollectionItem(collection, page, modifier = 0) {
42477
42568
  let j = 0;
@@ -42539,51 +42630,53 @@ function getCollectionItemIndex(collection, page) {
42539
42630
  __name(getCollectionItemIndex, "getCollectionItemIndex");
42540
42631
 
42541
42632
  // ../../src/defaultConfigExtended.js
42542
- function defaultConfigExtended_default(config) {
42633
+ function defaultConfigExtended_default($config) {
42543
42634
  let htmlTransformer = new HtmlTransformer();
42544
- htmlTransformer.setUserConfig(config);
42545
- config.htmlTransformer = htmlTransformer;
42546
- config.addPlugin(eleventy_bundle_default, {
42547
- bundles: false,
42548
- // no default bundles included—must be opt-in.
42549
- immediate: true
42550
- });
42551
- config.addTransform("@11ty/eleventy/html-transformer", async function(content) {
42635
+ htmlTransformer.setUserConfig($config);
42636
+ $config.htmlTransformer = htmlTransformer;
42637
+ if (!(0, import_EnvironmentVars.getEnvValue)("SKIP_BUNDLE_PLUGIN")) {
42638
+ $config.addPlugin(eleventyBundlePlugin, {
42639
+ bundles: false,
42640
+ // no default bundles included—must be opt-in.
42641
+ immediate: true
42642
+ });
42643
+ }
42644
+ $config.addTransform("@11ty/eleventy/html-transformer", async function(content) {
42552
42645
  return htmlTransformer.transformContent(this.outputPath, content, this);
42553
42646
  });
42554
- config.addPlugin(HtmlRelativeCopyPlugin);
42555
- config.addPlugin(FilterPlugin, {
42647
+ $config.addPlugin(HtmlRelativeCopyPlugin);
42648
+ $config.addPlugin(FilterPlugin, {
42556
42649
  immediate: true
42557
42650
  });
42558
- config.addFilter("slug", function() {
42651
+ $config.addFilter("slug", function() {
42559
42652
  throw new Error(
42560
42653
  "The `slug` filter (deprecated since v1) has been removed in Eleventy v4. You can add it manually to your configuration file for backwards compatibility, read more at GitHub Issue #3893: https://github.com/11ty/eleventy/issues/3893 Alternatively (more risky), you can swap to use the `slugify` filter instead (outputs may be different and production URLs may break!)"
42561
42654
  );
42562
42655
  });
42563
- config.addFilter(
42656
+ $config.addFilter(
42564
42657
  "slugify",
42565
42658
  MemoizeFunction_default(
42566
42659
  function(str, options = {}) {
42567
42660
  options.decamelize ??= false;
42568
42661
  return slugify("" + str, options);
42569
42662
  },
42570
- { name: "slugify", bench: config.benchmarkManager.get("Configuration") }
42663
+ { name: "slugify", bench: $config.benchmarkManager.get("Configuration") }
42571
42664
  )
42572
42665
  );
42573
- config.addFilter("getCollectionItemIndex", function(collection, pageOverride) {
42666
+ $config.addFilter("getCollectionItemIndex", function(collection, pageOverride) {
42574
42667
  return getCollectionItemIndex.call(this, collection, pageOverride);
42575
42668
  });
42576
- config.addFilter("getCollectionItem", function(collection, pageOverride, langCode) {
42577
- return GetLocaleCollectionItem_default.call(this, config, collection, pageOverride, langCode, 0);
42669
+ $config.addFilter("getCollectionItem", function(collection, pageOverride, langCode) {
42670
+ return GetLocaleCollectionItem_default.call(this, $config, collection, pageOverride, langCode, 0);
42578
42671
  });
42579
- config.addFilter("getPreviousCollectionItem", function(collection, pageOverride, langCode) {
42580
- return GetLocaleCollectionItem_default.call(this, config, collection, pageOverride, langCode, -1);
42672
+ $config.addFilter("getPreviousCollectionItem", function(collection, pageOverride, langCode) {
42673
+ return GetLocaleCollectionItem_default.call(this, $config, collection, pageOverride, langCode, -1);
42581
42674
  });
42582
- config.addFilter("getNextCollectionItem", function(collection, pageOverride, langCode) {
42583
- return GetLocaleCollectionItem_default.call(this, config, collection, pageOverride, langCode, 1);
42675
+ $config.addFilter("getNextCollectionItem", function(collection, pageOverride, langCode) {
42676
+ return GetLocaleCollectionItem_default.call(this, $config, collection, pageOverride, langCode, 1);
42584
42677
  });
42585
42678
  let templateConfig = this;
42586
- config.addFilter("url", /* @__PURE__ */ __name(function addPathPrefixFilter(url, pathPrefixOverride) {
42679
+ $config.addFilter("url", /* @__PURE__ */ __name(function addPathPrefixFilter(url, pathPrefixOverride) {
42587
42680
  let pathPrefix;
42588
42681
  if (pathPrefixOverride && typeof pathPrefixOverride === "string") {
42589
42682
  pathPrefix = pathPrefixOverride;
@@ -42874,6 +42967,7 @@ init_BaseError();
42874
42967
 
42875
42968
  // ../../src/Util/ConsoleLogger.js
42876
42969
  init_DebugLogUtil();
42970
+ init_IsBuildAwesome();
42877
42971
  var debug14 = createDebug3("Logger");
42878
42972
  var ConsoleLogger = class {
42879
42973
  static {
@@ -42886,13 +42980,18 @@ var ConsoleLogger = class {
42886
42980
  /** @type {object|boolean|undefined} */
42887
42981
  #logger;
42888
42982
  /** @type {string} */
42889
- #logPrefix = "[11ty]";
42983
+ #defaultLogPrefix = "[11ty]";
42890
42984
  /** @type {object} */
42891
42985
  #colorFallbacks = {
42892
42986
  info: "blue",
42893
42987
  warn: "yellow",
42894
42988
  error: "red"
42895
42989
  };
42990
+ constructor() {
42991
+ if (isUsingBuildAwesome()) {
42992
+ this.setPrefix(`[buildawesome]`);
42993
+ }
42994
+ }
42896
42995
  isLoggingEnabled() {
42897
42996
  if (!this.isVerbose || process.env.DEBUG) {
42898
42997
  return true;
@@ -42900,7 +42999,7 @@ var ConsoleLogger = class {
42900
42999
  return this.#logger !== false;
42901
43000
  }
42902
43001
  setPrefix(prefix) {
42903
- this.#logPrefix = prefix;
43002
+ this.#defaultLogPrefix = prefix;
42904
43003
  }
42905
43004
  get isVerbose() {
42906
43005
  return this.#isVerbose;
@@ -42981,7 +43080,7 @@ var ConsoleLogger = class {
42981
43080
  debug14(message);
42982
43081
  } else if (this.#logger !== false) {
42983
43082
  if (prefix === void 0) {
42984
- prefix = this.#logPrefix;
43083
+ prefix = this.#defaultLogPrefix;
42985
43084
  }
42986
43085
  let prefixStr = prefix ? `${this.#dim(prefix)} ` : "";
42987
43086
  message = `${prefixStr}${message.split("\n").join(`
@@ -44240,7 +44339,7 @@ var UserConfig = class {
44240
44339
  _normalizeTemplateFormats() {
44241
44340
  throw new Error("The internal _normalizeTemplateFormats() method was removed in Eleventy v3");
44242
44341
  }
44243
- configureTemplateHandling(options = {}) {
44342
+ configureTemplateHandling() {
44244
44343
  throw new Error("Internal configuration API method `configureTemplateHandling` was removed.");
44245
44344
  }
44246
44345
  setDataDeepMerge(deepMerge) {
@@ -44921,7 +45020,6 @@ var ProjectTemplateFormats = class _ProjectTemplateFormats {
44921
45020
  var ProjectTemplateFormats_default = ProjectTemplateFormats;
44922
45021
 
44923
45022
  // ../../src/TemplateConfig.js
44924
- var { set: lodashSet2, get: lodashGet } = import_lodash_custom2.default;
44925
45023
  var debug19 = createDebug3("TemplateConfig");
44926
45024
  var ConfigError = class extends BaseError {
44927
45025
  static {
@@ -45959,12 +46057,12 @@ Object.assign(RenderPlugin, {
45959
46057
  var RenderPlugin_default = RenderPlugin;
45960
46058
 
45961
46059
  // ../../src/CoreMinimal.js
45962
- var import_eleventy_utils37 = __toESM(require_eleventy_utils(), 1);
46060
+ var import_eleventy_utils38 = __toESM(require_eleventy_utils(), 1);
45963
46061
 
45964
46062
  // ../../src/Data/TemplateData.js
45965
46063
  var import_node_path11 = __toESM(require_path(), 1);
45966
- var import_lodash_custom4 = __toESM(require_lodash_custom(), 1);
45967
- var import_eleventy_utils22 = __toESM(require_eleventy_utils(), 1);
46064
+ var import_lodash_custom3 = __toESM(require_lodash_custom(), 1);
46065
+ var import_eleventy_utils23 = __toESM(require_eleventy_utils(), 1);
45968
46066
 
45969
46067
  // ../../src/Adapters/Packages/inspect.core.js
45970
46068
  function inspect(target) {
@@ -46048,13 +46146,15 @@ __name(coerce2, "coerce");
46048
46146
  var import_TypeScriptFeatureTest3 = __toESM(require_TypeScriptFeatureTest_core(), 1);
46049
46147
 
46050
46148
  // ../../src/Data/ResolveConfigurationData.js
46051
- var import_lodash_custom3 = __toESM(require_lodash_custom(), 1);
46052
- var { set: lodashSet3, get: lodashGet2 } = import_lodash_custom3.default;
46149
+ var import_lodash_custom2 = __toESM(require_lodash_custom(), 1);
46150
+ var import_eleventy_utils22 = __toESM(require_eleventy_utils(), 1);
46151
+ var { get: lodashGet } = import_lodash_custom2.default;
46053
46152
  var ResolveConfigurationData = class _ResolveConfigurationData {
46054
46153
  static {
46055
46154
  __name(this, "ResolveConfigurationData");
46056
46155
  }
46057
46156
  static ELIGIBLE_PROPS = /* @__PURE__ */ new Set([
46157
+ // If these props are overridden by a user’s configuration, they will not be aliased (which is ok)
46058
46158
  "buildawesomeComputed",
46059
46159
  "buildawesomeDataSchema",
46060
46160
  "buildawesomeExcludeFromCollections",
@@ -46078,35 +46178,29 @@ var ResolveConfigurationData = class _ResolveConfigurationData {
46078
46178
  }
46079
46179
  return eligibleLocations;
46080
46180
  }
46081
- static resolve(data2, location) {
46082
- let eligible = this.getEligibleLocations(location);
46083
- for (let loc of eligible) {
46084
- let val = lodashGet2(data2, loc, void 0);
46085
- if (val !== void 0) {
46086
- return {
46087
- location: loc,
46088
- value: val
46089
- };
46090
- }
46091
- }
46092
- return {
46093
- location: void 0
46094
- };
46095
- }
46096
46181
  static getValue(data2, location) {
46097
46182
  let eligible = this.getEligibleLocations(location);
46183
+ let merging;
46098
46184
  for (let loc of eligible) {
46099
- let val = lodashGet2(data2, loc, void 0);
46100
- if (val !== void 0) {
46185
+ let val = lodashGet(data2, loc, void 0);
46186
+ if (val === void 0) {
46187
+ continue;
46188
+ }
46189
+ if ((0, import_eleventy_utils22.isPlainObject)(val)) {
46190
+ merging = (0, import_eleventy_utils22.DeepCopy)(merging || {}, val);
46191
+ } else if (Array.isArray(val)) {
46192
+ merging = (0, import_eleventy_utils22.DeepCopy)(merging || [], val);
46193
+ } else if (merging === void 0) {
46101
46194
  return val;
46102
46195
  }
46103
46196
  }
46197
+ return merging;
46104
46198
  }
46105
46199
  };
46106
46200
 
46107
46201
  // ../../src/Data/TemplateData.js
46108
46202
  init_DebugLogUtil();
46109
- var { set: lodashSet4, get: lodashGet3 } = import_lodash_custom4.default;
46203
+ var { set: lodashSet2, get: lodashGet2 } = import_lodash_custom3.default;
46110
46204
  var debugWarn = createDebug3("Warnings");
46111
46205
  var debug20 = createDebug3("TemplateData");
46112
46206
  var TemplateDataParseError = class extends BaseError {
@@ -46163,7 +46257,7 @@ var TemplateData = class _TemplateData {
46163
46257
  return this.dirs.data;
46164
46258
  }
46165
46259
  get absoluteDataDir() {
46166
- return import_eleventy_utils22.TemplatePath.absolutePath(this.dataDir);
46260
+ return import_eleventy_utils23.TemplatePath.absolutePath(this.dataDir);
46167
46261
  }
46168
46262
  // This was async in 2.0 and prior but doesn’t need to be any more.
46169
46263
  getInputDir() {
@@ -46281,7 +46375,7 @@ var TemplateData = class _TemplateData {
46281
46375
  if (suffixesSet.size > 0) {
46282
46376
  paths.push(`${this.inputDir}**/*.{${Array.from(suffixesSet).join(",")}}`);
46283
46377
  }
46284
- return import_eleventy_utils22.TemplatePath.addLeadingDotSlashArray(paths);
46378
+ return import_eleventy_utils23.TemplatePath.addLeadingDotSlashArray(paths);
46285
46379
  }
46286
46380
  // For spidering dependencies
46287
46381
  getTemplateJavaScriptDataFileGlob() {
@@ -46297,7 +46391,7 @@ var TemplateData = class _TemplateData {
46297
46391
  if (suffixes.length > 0) {
46298
46392
  paths.push(`${this.inputDir}**/*.{${suffixes.join(",")}}`);
46299
46393
  }
46300
- return import_eleventy_utils22.TemplatePath.addLeadingDotSlashArray(paths);
46394
+ return import_eleventy_utils23.TemplatePath.addLeadingDotSlashArray(paths);
46301
46395
  }
46302
46396
  getGlobalDataGlob() {
46303
46397
  let extGlob = this.getGlobalDataExtensionPriorities().join(",");
@@ -46343,8 +46437,8 @@ var TemplateData = class _TemplateData {
46343
46437
  return paths;
46344
46438
  }
46345
46439
  getObjectPathForDataFile(dataFilePath) {
46346
- let absoluteDataFilePath = import_eleventy_utils22.TemplatePath.absolutePath(dataFilePath);
46347
- let reducedPath = import_eleventy_utils22.TemplatePath.stripLeadingSubPath(absoluteDataFilePath, this.absoluteDataDir);
46440
+ let absoluteDataFilePath = import_eleventy_utils23.TemplatePath.absolutePath(dataFilePath);
46441
+ let reducedPath = import_eleventy_utils23.TemplatePath.stripLeadingSubPath(absoluteDataFilePath, this.absoluteDataDir);
46348
46442
  let parsed = import_node_path11.default.parse(reducedPath);
46349
46443
  let folders = parsed.dir ? parsed.dir.split("/") : [];
46350
46444
  folders.push(parsed.name);
@@ -46352,7 +46446,7 @@ var TemplateData = class _TemplateData {
46352
46446
  }
46353
46447
  async getAllGlobalData() {
46354
46448
  let globalData = {};
46355
- let files = import_eleventy_utils22.TemplatePath.addLeadingDotSlashArray(await this.getGlobalDataFiles());
46449
+ let files = import_eleventy_utils23.TemplatePath.addLeadingDotSlashArray(await this.getGlobalDataFiles());
46356
46450
  this.config.events.emit("buildawesome.globaldatafiles", files);
46357
46451
  let dataFileConflicts = {};
46358
46452
  for (let file of Object.values(files)) {
@@ -46363,12 +46457,12 @@ var TemplateData = class _TemplateData {
46363
46457
  debugWarn(
46364
46458
  `merging global data from ${file} with an already existing global data file (${dataFileConflicts[objectPathTargetString]}). Overriding existing keys.`
46365
46459
  );
46366
- let oldData = lodashGet3(globalData, objectPathTarget);
46367
- data2 = (0, import_eleventy_utils22.Merge)(oldData, data2);
46460
+ let oldData = lodashGet2(globalData, objectPathTarget);
46461
+ data2 = (0, import_eleventy_utils23.Merge)(oldData, data2);
46368
46462
  }
46369
46463
  dataFileConflicts[objectPathTargetString] = file;
46370
46464
  debug20(`Found global data file ${file} and adding as: ${objectPathTarget}`);
46371
- lodashSet4(globalData, objectPathTarget, data2);
46465
+ lodashSet2(globalData, objectPathTarget, data2);
46372
46466
  if (this.config.freezeReservedData) {
46373
46467
  ReservedData_default.check(globalData, file);
46374
46468
  }
@@ -46410,7 +46504,7 @@ var TemplateData = class _TemplateData {
46410
46504
  let rawImports = this.getRawImports();
46411
46505
  let configApiGlobalData = await this.getInitialGlobalData();
46412
46506
  let globalJson = await this.getAllGlobalData();
46413
- let mergedGlobalData = (0, import_eleventy_utils22.Merge)(globalJson, configApiGlobalData);
46507
+ let mergedGlobalData = (0, import_eleventy_utils23.Merge)(globalJson, configApiGlobalData);
46414
46508
  return Object.assign({}, mergedGlobalData, rawImports);
46415
46509
  }
46416
46510
  async getGlobalData() {
@@ -46435,7 +46529,7 @@ var TemplateData = class _TemplateData {
46435
46529
  let dataSource = {};
46436
46530
  for (let path16 of localDataPaths) {
46437
46531
  let dataForPath = await this.getDataValue(path16);
46438
- if (!(0, import_eleventy_utils22.isPlainObject)(dataForPath)) {
46532
+ if (!(0, import_eleventy_utils23.isPlainObject)(dataForPath)) {
46439
46533
  debug20(
46440
46534
  "Warning: Template and Directory data files expect an object to be returned, instead `%o` returned `%o`",
46441
46535
  path16,
@@ -46456,7 +46550,7 @@ var TemplateData = class _TemplateData {
46456
46550
  }
46457
46551
  dataSource[key] = path16;
46458
46552
  }
46459
- (0, import_eleventy_utils22.Merge)(localData, cleanedDataForPath);
46553
+ (0, import_eleventy_utils23.Merge)(localData, cleanedDataForPath);
46460
46554
  }
46461
46555
  }
46462
46556
  return localData;
@@ -46504,7 +46598,7 @@ var TemplateData = class _TemplateData {
46504
46598
  }
46505
46599
  }
46506
46600
  async getDataValue(path16) {
46507
- let extension = import_eleventy_utils22.TemplatePath.getExtension(path16);
46601
+ let extension = import_eleventy_utils23.TemplatePath.getExtension(path16);
46508
46602
  if (this.#eligibleJavaScriptExtensions.includes(extension)) {
46509
46603
  if (!this.exists(path16)) {
46510
46604
  return {};
@@ -46569,9 +46663,9 @@ var TemplateData = class _TemplateData {
46569
46663
  debug20("Using %o suffixes to find data files.", this.getConfigurationDataFileSuffixes());
46570
46664
  let filePathNoExt = parsed.dir + "/" + fileNameNoExt;
46571
46665
  this._addBaseToPaths(paths, filePathNoExt, userExtensions);
46572
- let allDirs = import_eleventy_utils22.TemplatePath.getAllDirs(parsed.dir);
46666
+ let allDirs = import_eleventy_utils23.TemplatePath.getAllDirs(parsed.dir);
46573
46667
  for (let dir of allDirs) {
46574
- let lastDir = import_eleventy_utils22.TemplatePath.getLastPathSegment(dir);
46668
+ let lastDir = import_eleventy_utils23.TemplatePath.getLastPathSegment(dir);
46575
46669
  let dirPathNoExt = dir + "/" + lastDir;
46576
46670
  if (!inputDir || dir.startsWith(inputDir) && dir !== inputDir) {
46577
46671
  if (this.config.dataFileDirBaseNameOverride) {
@@ -46583,11 +46677,11 @@ var TemplateData = class _TemplateData {
46583
46677
  }
46584
46678
  }
46585
46679
  if (inputDir) {
46586
- let lastInputDir = import_eleventy_utils22.TemplatePath.addLeadingDotSlash(
46587
- import_eleventy_utils22.TemplatePath.join(inputDir, import_eleventy_utils22.TemplatePath.getLastPathSegment(inputDir))
46680
+ let lastInputDir = import_eleventy_utils23.TemplatePath.addLeadingDotSlash(
46681
+ import_eleventy_utils23.TemplatePath.join(inputDir, import_eleventy_utils23.TemplatePath.getLastPathSegment(inputDir))
46588
46682
  );
46589
46683
  if (this.config.dataFileDirBaseNameOverride) {
46590
- let indexDataFile = import_eleventy_utils22.TemplatePath.getDirFromFilePath(lastInputDir) + "/" + this.config.dataFileDirBaseNameOverride;
46684
+ let indexDataFile = import_eleventy_utils23.TemplatePath.getDirFromFilePath(lastInputDir) + "/" + this.config.dataFileDirBaseNameOverride;
46591
46685
  this._addBaseToPaths(paths, indexDataFile, userExtensions, true);
46592
46686
  } else if (lastInputDir !== "./") {
46593
46687
  this._addBaseToPaths(paths, lastInputDir, userExtensions);
@@ -46600,7 +46694,7 @@ var TemplateData = class _TemplateData {
46600
46694
  /* Like cleanupData() but does not mutate */
46601
46695
  static getCleanedTagsImmutable(data2, options = {}) {
46602
46696
  let tags = [];
46603
- if ((0, import_eleventy_utils22.isPlainObject)(data2) && data2.tags) {
46697
+ if ((0, import_eleventy_utils23.isPlainObject)(data2) && data2.tags) {
46604
46698
  if (typeof data2.tags === "string") {
46605
46699
  tags = (data2.tags || "").split(",");
46606
46700
  } else if (Array.isArray(data2.tags)) {
@@ -46615,7 +46709,7 @@ var TemplateData = class _TemplateData {
46615
46709
  return tags;
46616
46710
  }
46617
46711
  static cleanupData(data2, options = {}) {
46618
- if ((0, import_eleventy_utils22.isPlainObject)(data2) && "tags" in data2) {
46712
+ if ((0, import_eleventy_utils23.isPlainObject)(data2) && "tags" in data2) {
46619
46713
  data2.tags = this.getCleanedTagsImmutable(data2, options);
46620
46714
  }
46621
46715
  return data2;
@@ -46653,13 +46747,13 @@ var TemplateData = class _TemplateData {
46653
46747
  var TemplateData_default = TemplateData;
46654
46748
 
46655
46749
  // ../../src/TemplateWriter.js
46656
- var import_eleventy_utils36 = __toESM(require_eleventy_utils(), 1);
46750
+ var import_eleventy_utils37 = __toESM(require_eleventy_utils(), 1);
46657
46751
 
46658
46752
  // ../../src/Template.js
46659
46753
  var import_node_path15 = __toESM(require_path(), 1);
46660
46754
  init_shim_fs();
46661
- var import_lodash_custom10 = __toESM(require_lodash_custom(), 1);
46662
- var import_eleventy_utils33 = __toESM(require_eleventy_utils(), 1);
46755
+ var import_lodash_custom9 = __toESM(require_lodash_custom(), 1);
46756
+ var import_eleventy_utils34 = __toESM(require_eleventy_utils(), 1);
46663
46757
  init_DebugLogUtil();
46664
46758
 
46665
46759
  // ../../src/Util/spawn.core.js
@@ -46697,8 +46791,8 @@ var getUpdatedTimestamp = MemoizeFunction_default(async function(filePath) {
46697
46791
  // ../../src/TemplateContent.js
46698
46792
  init_shim_fs();
46699
46793
  var import_gray_matter = __toESM(require_gray_matter(), 1);
46700
- var import_lodash_custom5 = __toESM(require_lodash_custom(), 1);
46701
- var import_eleventy_utils23 = __toESM(require_eleventy_utils(), 1);
46794
+ var import_lodash_custom4 = __toESM(require_lodash_custom(), 1);
46795
+ var import_eleventy_utils24 = __toESM(require_eleventy_utils(), 1);
46702
46796
 
46703
46797
  // ../../src/Util/RetrieveGlobals.core.js
46704
46798
  init_import_module_string();
@@ -46801,7 +46895,7 @@ var ErrorUtil = class _ErrorUtil {
46801
46895
 
46802
46896
  // ../../src/TemplateContent.js
46803
46897
  init_EventBus();
46804
- var { set: lodashSet5 } = import_lodash_custom5.default;
46898
+ var { set: lodashSet3 } = import_lodash_custom4.default;
46805
46899
  var debug21 = createDebug3("TemplateContent");
46806
46900
  var TemplateContentFrontMatterError = class extends BaseError {
46807
46901
  static {
@@ -46975,7 +47069,7 @@ var TemplateContent = class _TemplateContent {
46975
47069
  }
46976
47070
  getFrontMatterParsingOptions() {
46977
47071
  if (!this.#frontMatterOptions) {
46978
- this.#frontMatterOptions = (0, import_eleventy_utils23.DeepCopy)(
47072
+ this.#frontMatterOptions = (0, import_eleventy_utils24.DeepCopy)(
46979
47073
  {
46980
47074
  // Set a project-wide default.
46981
47075
  // language: "yaml",
@@ -47034,7 +47128,7 @@ var TemplateContent = class _TemplateContent {
47034
47128
  fm.content = fm.excerpt + fm.content.slice(excerptString.length);
47035
47129
  }
47036
47130
  let alias = options.excerpt_alias || "page.excerpt";
47037
- lodashSet5(fm.data, alias, fm.excerpt);
47131
+ lodashSet3(fm.data, alias, fm.excerpt);
47038
47132
  }
47039
47133
  return fm;
47040
47134
  } else {
@@ -47057,13 +47151,13 @@ var TemplateContent = class _TemplateContent {
47057
47151
  /* Incremental builds cache the Template instances (in TemplateWriter) but
47058
47152
  * these template specific caches are important for Pagination */
47059
47153
  static cache(path16, content) {
47060
- this._inputCache.set(import_eleventy_utils23.TemplatePath.absolutePath(path16), content);
47154
+ this._inputCache.set(import_eleventy_utils24.TemplatePath.absolutePath(path16), content);
47061
47155
  }
47062
47156
  static getCached(path16) {
47063
- return this._inputCache.get(import_eleventy_utils23.TemplatePath.absolutePath(path16));
47157
+ return this._inputCache.get(import_eleventy_utils24.TemplatePath.absolutePath(path16));
47064
47158
  }
47065
47159
  static deleteFromInputCache(path16) {
47066
- this._inputCache.delete(import_eleventy_utils23.TemplatePath.absolutePath(path16));
47160
+ this._inputCache.delete(import_eleventy_utils24.TemplatePath.absolutePath(path16));
47067
47161
  }
47068
47162
  // Used via clone
47069
47163
  setInputContent(content) {
@@ -47387,7 +47481,7 @@ TemplateContent._inputCache = /* @__PURE__ */ new Map();
47387
47481
  TemplateContent._compileCache = /* @__PURE__ */ new Map();
47388
47482
  EventBus_default.on("buildawesome.resourcemodified", (path16) => {
47389
47483
  TemplateContent.deleteFromInputCache(path16);
47390
- let normalized = import_eleventy_utils23.TemplatePath.addLeadingDotSlash(path16);
47484
+ let normalized = import_eleventy_utils24.TemplatePath.addLeadingDotSlash(path16);
47391
47485
  let compileCache = TemplateContent._compileCache.get(normalized);
47392
47486
  if (compileCache) {
47393
47487
  compileCache.clear();
@@ -47400,7 +47494,7 @@ var TemplateContent_default = TemplateContent;
47400
47494
 
47401
47495
  // ../../src/TemplatePermalink.js
47402
47496
  var import_node_path12 = __toESM(require_path(), 1);
47403
- var import_eleventy_utils24 = __toESM(require_eleventy_utils(), 1);
47497
+ var import_eleventy_utils25 = __toESM(require_eleventy_utils(), 1);
47404
47498
  var TemplatePermalink = class _TemplatePermalink {
47405
47499
  static {
47406
47500
  __name(this, "TemplatePermalink");
@@ -47408,7 +47502,7 @@ var TemplatePermalink = class _TemplatePermalink {
47408
47502
  #dynamicPermalinkEnabled;
47409
47503
  // `link` with template syntax should have already been rendered in Template.js
47410
47504
  constructor(link, extraSubdir, isDynamicPermalinkEnabled = true) {
47411
- let isLinkAnObject = (0, import_eleventy_utils24.isPlainObject)(link);
47505
+ let isLinkAnObject = (0, import_eleventy_utils25.isPlainObject)(link);
47412
47506
  this._isRendered = true;
47413
47507
  this._writeToFileSystem = true;
47414
47508
  this.#dynamicPermalinkEnabled = isDynamicPermalinkEnabled;
@@ -47468,7 +47562,7 @@ ${buildLink.toString()}` : "";
47468
47562
  }
47469
47563
  let cleanLink = this._addDefaultLinkFilename(this.buildLink);
47470
47564
  let parsed = import_node_path12.default.parse(cleanLink);
47471
- return import_eleventy_utils24.TemplatePath.join(parsed.dir, this.extraPaginationSubdir, parsed.base);
47565
+ return import_eleventy_utils25.TemplatePath.join(parsed.dir, this.extraPaginationSubdir, parsed.base);
47472
47566
  }
47473
47567
  // Used in url transforms feature
47474
47568
  static getUrlStem(original) {
@@ -47519,7 +47613,7 @@ ${buildLink.toString()}` : "";
47519
47613
  if (uri === false) {
47520
47614
  return false;
47521
47615
  }
47522
- return import_eleventy_utils24.TemplatePath.addLeadingDotSlash(import_eleventy_utils24.TemplatePath.normalize(outputDir + "/" + uri));
47616
+ return import_eleventy_utils25.TemplatePath.addLeadingDotSlash(import_eleventy_utils25.TemplatePath.normalize(outputDir + "/" + uri));
47523
47617
  }
47524
47618
  toPathFromRoot() {
47525
47619
  if (!this.buildLink) {
@@ -47529,7 +47623,7 @@ ${buildLink.toString()}` : "";
47529
47623
  if (uri === false) {
47530
47624
  return false;
47531
47625
  }
47532
- return import_eleventy_utils24.TemplatePath.addLeadingDotSlash(import_eleventy_utils24.TemplatePath.normalize(uri));
47626
+ return import_eleventy_utils25.TemplatePath.addLeadingDotSlash(import_eleventy_utils25.TemplatePath.normalize(uri));
47533
47627
  }
47534
47628
  static _hasDuplicateFolder(dir, base2) {
47535
47629
  let folders = dir.split("/");
@@ -47552,10 +47646,10 @@ ${buildLink.toString()}` : "";
47552
47646
  var TemplatePermalink_default = TemplatePermalink;
47553
47647
 
47554
47648
  // ../../src/TemplateLayout.js
47555
- var import_eleventy_utils27 = __toESM(require_eleventy_utils(), 1);
47649
+ var import_eleventy_utils28 = __toESM(require_eleventy_utils(), 1);
47556
47650
 
47557
47651
  // ../../src/TemplateLayoutPathResolver.js
47558
- var import_eleventy_utils25 = __toESM(require_eleventy_utils(), 1);
47652
+ var import_eleventy_utils26 = __toESM(require_eleventy_utils(), 1);
47559
47653
  var TemplateLayoutPathResolver = class {
47560
47654
  static {
47561
47655
  __name(this, "TemplateLayoutPathResolver");
@@ -47566,7 +47660,7 @@ var TemplateLayoutPathResolver = class {
47566
47660
  }
47567
47661
  this.templateConfig = templateConfig;
47568
47662
  this.originalPath = path16;
47569
- this.originalDisplayPath = import_eleventy_utils25.TemplatePath.join(this.layoutsDir, this.originalPath) + ` (via \`layout: ${this.originalPath}\`)`;
47663
+ this.originalDisplayPath = import_eleventy_utils26.TemplatePath.join(this.layoutsDir, this.originalPath) + ` (via \`layout: ${this.originalPath}\`)`;
47570
47664
  this.path = path16;
47571
47665
  this.aliases = {};
47572
47666
  this.extensionMap = extensionMap;
@@ -47658,13 +47752,13 @@ var TemplateLayoutPathResolver = class {
47658
47752
  }
47659
47753
  }
47660
47754
  getNormalizedLayoutKey() {
47661
- return import_eleventy_utils25.TemplatePath.stripLeadingSubPath(this.fullPath, this.layoutsDir);
47755
+ return import_eleventy_utils26.TemplatePath.stripLeadingSubPath(this.fullPath, this.layoutsDir);
47662
47756
  }
47663
47757
  };
47664
47758
  var TemplateLayoutPathResolver_default = TemplateLayoutPathResolver;
47665
47759
 
47666
47760
  // ../../src/LayoutCache.js
47667
- var import_eleventy_utils26 = __toESM(require_eleventy_utils(), 1);
47761
+ var import_eleventy_utils27 = __toESM(require_eleventy_utils(), 1);
47668
47762
  init_EventBus();
47669
47763
  var LayoutCache = class {
47670
47764
  static {
@@ -47704,7 +47798,7 @@ var LayoutCache = class {
47704
47798
  for (let key of keys) {
47705
47799
  this.cache[key] = layoutTemplate;
47706
47800
  }
47707
- let fullPath = import_eleventy_utils26.TemplatePath.stripLeadingDotSlash(layoutTemplate.inputPath);
47801
+ let fullPath = import_eleventy_utils27.TemplatePath.stripLeadingDotSlash(layoutTemplate.inputPath);
47708
47802
  this.cacheByInputPath[fullPath] = layoutTemplate;
47709
47803
  }
47710
47804
  has(key) {
@@ -47717,7 +47811,7 @@ var LayoutCache = class {
47717
47811
  return this.cache[key];
47718
47812
  }
47719
47813
  remove(layoutFilePath) {
47720
- layoutFilePath = import_eleventy_utils26.TemplatePath.stripLeadingDotSlash(layoutFilePath);
47814
+ layoutFilePath = import_eleventy_utils27.TemplatePath.stripLeadingDotSlash(layoutFilePath);
47721
47815
  if (!this.cacheByInputPath[layoutFilePath]) {
47722
47816
  return;
47723
47817
  }
@@ -47793,7 +47887,7 @@ var TemplateLayout = class _TemplateLayout extends TemplateContent_default {
47793
47887
  return /* @__PURE__ */ new Set([this.dataKeyLayoutPath, this.getFullKey(), this.key]);
47794
47888
  }
47795
47889
  static resolveFullKey(key, inputDir) {
47796
- return import_eleventy_utils27.TemplatePath.join(inputDir, key);
47890
+ return import_eleventy_utils28.TemplatePath.join(inputDir, key);
47797
47891
  }
47798
47892
  static getTemplate(key, eleventyConfig, extensionMap) {
47799
47893
  let config = eleventyConfig.getConfig();
@@ -47863,7 +47957,7 @@ var TemplateLayout = class _TemplateLayout extends TemplateContent_default {
47863
47957
  for (let j = map.length - 1; j >= 0; j--) {
47864
47958
  dataToMerge.push(map[j].frontMatterData);
47865
47959
  }
47866
- let data2 = (0, import_eleventy_utils27.Merge)({}, ...dataToMerge);
47960
+ let data2 = (0, import_eleventy_utils28.Merge)({}, ...dataToMerge);
47867
47961
  delete data2[this.config.keys.layout];
47868
47962
  return data2;
47869
47963
  }
@@ -47953,7 +48047,7 @@ var TemplateLayout_default = TemplateLayout;
47953
48047
 
47954
48048
  // ../../src/TemplateFileSlug.js
47955
48049
  var import_node_path13 = __toESM(require_path(), 1);
47956
- var import_eleventy_utils28 = __toESM(require_eleventy_utils(), 1);
48050
+ var import_eleventy_utils29 = __toESM(require_eleventy_utils(), 1);
47957
48051
  var TemplateFileSlug = class {
47958
48052
  static {
47959
48053
  __name(this, "TemplateFileSlug");
@@ -47961,10 +48055,10 @@ var TemplateFileSlug = class {
47961
48055
  constructor(inputPath, extensionMap, eleventyConfig) {
47962
48056
  let inputDir = eleventyConfig.directories.input;
47963
48057
  if (inputDir) {
47964
- inputPath = import_eleventy_utils28.TemplatePath.stripLeadingSubPath(inputPath, inputDir);
48058
+ inputPath = import_eleventy_utils29.TemplatePath.stripLeadingSubPath(inputPath, inputDir);
47965
48059
  }
47966
48060
  this.inputPath = inputPath;
47967
- this.cleanInputPath = import_eleventy_utils28.TemplatePath.stripLeadingDotSlash(inputPath);
48061
+ this.cleanInputPath = import_eleventy_utils29.TemplatePath.stripLeadingDotSlash(inputPath);
47968
48062
  let dirs = this.cleanInputPath.split("/");
47969
48063
  this.dirs = dirs;
47970
48064
  this.dirs.pop();
@@ -47973,7 +48067,7 @@ var TemplateFileSlug = class {
47973
48067
  }
47974
48068
  // `page.filePathStem` see https://v3.11ty.dev/docs/data-eleventy-supplied/#page-variable
47975
48069
  getFullPathWithoutExtension() {
47976
- return "/" + import_eleventy_utils28.TemplatePath.join(...this.dirs, this._getRawSlug());
48070
+ return "/" + import_eleventy_utils29.TemplatePath.join(...this.dirs, this._getRawSlug());
47977
48071
  }
47978
48072
  _getRawSlug() {
47979
48073
  let slug = this.filenameNoExt;
@@ -48003,7 +48097,7 @@ var TemplateFileSlug = class {
48003
48097
  var TemplateFileSlug_default = TemplateFileSlug;
48004
48098
 
48005
48099
  // ../../src/Data/ComputedData.js
48006
- var import_lodash_custom8 = __toESM(require_lodash_custom(), 1);
48100
+ var import_lodash_custom7 = __toESM(require_lodash_custom(), 1);
48007
48101
  init_DebugLogUtil();
48008
48102
 
48009
48103
  // ../../src/Data/ComputedDataQueue.js
@@ -48060,9 +48154,9 @@ var ComputedDataQueue = class {
48060
48154
  var ComputedDataQueue_default = ComputedDataQueue;
48061
48155
 
48062
48156
  // ../../src/Data/ComputedDataTemplateString.js
48063
- var import_lodash_custom6 = __toESM(require_lodash_custom(), 1);
48157
+ var import_lodash_custom5 = __toESM(require_lodash_custom(), 1);
48064
48158
  init_DebugLogUtil();
48065
- var { set: lodashSet6 } = import_lodash_custom6.default;
48159
+ var { set: lodashSet4 } = import_lodash_custom5.default;
48066
48160
  var debug22 = createDebug3("ComputedDataTemplateString");
48067
48161
  var ComputedDataTemplateString = class {
48068
48162
  static {
@@ -48080,7 +48174,7 @@ var ComputedDataTemplateString = class {
48080
48174
  getProxyData() {
48081
48175
  let proxyData = {};
48082
48176
  for (let key of this.computedKeys) {
48083
- lodashSet6(proxyData, key, this.prefix + key + this.suffix);
48177
+ lodashSet4(proxyData, key, this.prefix + key + this.suffix);
48084
48178
  }
48085
48179
  return proxyData;
48086
48180
  }
@@ -48112,9 +48206,9 @@ var ComputedDataTemplateString = class {
48112
48206
  var ComputedDataTemplateString_default = ComputedDataTemplateString;
48113
48207
 
48114
48208
  // ../../src/Data/ComputedDataProxy.js
48115
- var import_lodash_custom7 = __toESM(require_lodash_custom(), 1);
48116
- var import_eleventy_utils29 = __toESM(require_eleventy_utils(), 1);
48117
- var { set: lodashSet7, get: lodashGet4 } = import_lodash_custom7.default;
48209
+ var import_lodash_custom6 = __toESM(require_lodash_custom(), 1);
48210
+ var import_eleventy_utils30 = __toESM(require_eleventy_utils(), 1);
48211
+ var { set: lodashSet5, get: lodashGet3 } = import_lodash_custom6.default;
48118
48212
  var ComputedDataProxy = class {
48119
48213
  static {
48120
48214
  __name(this, "ComputedDataProxy");
@@ -48127,14 +48221,14 @@ var ComputedDataProxy = class {
48127
48221
  }
48128
48222
  }
48129
48223
  isArrayOrPlainObject(data2) {
48130
- return Array.isArray(data2) || (0, import_eleventy_utils29.isPlainObject)(data2);
48224
+ return Array.isArray(data2) || (0, import_eleventy_utils30.isPlainObject)(data2);
48131
48225
  }
48132
48226
  getProxyData(data2, keyRef) {
48133
48227
  let undefinedValue = "__11TY_UNDEFINED__";
48134
48228
  if (this.computedKeys) {
48135
48229
  for (let key of this.computedKeys) {
48136
- if (lodashGet4(data2, key, undefinedValue) === undefinedValue) {
48137
- lodashSet7(data2, key, "");
48230
+ if (lodashGet3(data2, key, undefinedValue) === undefinedValue) {
48231
+ lodashSet5(data2, key, "");
48138
48232
  }
48139
48233
  }
48140
48234
  }
@@ -48195,7 +48289,7 @@ var ComputedDataProxy = class {
48195
48289
  });
48196
48290
  }
48197
48291
  _getProxyData(data2, keyRef, parentKey = "") {
48198
- if ((0, import_eleventy_utils29.isPlainObject)(data2)) {
48292
+ if ((0, import_eleventy_utils30.isPlainObject)(data2)) {
48199
48293
  return this._getProxyForObject(data2, keyRef, parentKey);
48200
48294
  } else if (Array.isArray(data2)) {
48201
48295
  return this._getProxyForArray(data2, keyRef, parentKey);
@@ -48212,7 +48306,7 @@ var ComputedDataProxy = class {
48212
48306
  var ComputedDataProxy_default = ComputedDataProxy;
48213
48307
 
48214
48308
  // ../../src/Data/ComputedData.js
48215
- var { set: lodashSet8, get: lodashGet5 } = import_lodash_custom8.default;
48309
+ var { set: lodashSet6, get: lodashGet4 } = import_lodash_custom7.default;
48216
48310
  var debug23 = createDebug3("ComputedData");
48217
48311
  var ComputedData = class {
48218
48312
  static {
@@ -48240,9 +48334,9 @@ var ComputedData = class {
48240
48334
  fns.tmpl = templateInstance;
48241
48335
  renderFn = renderFn.bind(fns);
48242
48336
  }
48243
- lodashSet8(this.computed, key, renderFn);
48337
+ lodashSet6(this.computed, key, renderFn);
48244
48338
  if (symbolParseFn) {
48245
- lodashSet8(this.symbolParseFunctions, key, symbolParseFn);
48339
+ lodashSet6(this.symbolParseFunctions, key, symbolParseFn);
48246
48340
  }
48247
48341
  }
48248
48342
  addTemplateString(key, renderFn, declaredDependencies = [], symbolParseFn, templateInstance) {
@@ -48253,12 +48347,12 @@ var ComputedData = class {
48253
48347
  let proxyByTemplateString = new ComputedDataTemplateString_default(this.computedKeys);
48254
48348
  let proxyByProxy = new ComputedDataProxy_default(this.computedKeys);
48255
48349
  for (let key of this.computedKeys) {
48256
- let computed = lodashGet5(this.computed, key);
48350
+ let computed = lodashGet4(this.computed, key);
48257
48351
  if (typeof computed !== "function") {
48258
48352
  this.queue.addNode(key);
48259
48353
  } else {
48260
48354
  this.queue.uses(key, this.declaredDependencies[key]);
48261
- let symbolParseFn = lodashGet5(this.symbolParseFunctions, key);
48355
+ let symbolParseFn = lodashGet4(this.symbolParseFunctions, key);
48262
48356
  let varsUsed = [];
48263
48357
  if (symbolParseFn) {
48264
48358
  varsUsed = symbolParseFn();
@@ -48278,12 +48372,12 @@ var ComputedData = class {
48278
48372
  async _setupDataEntry(data2, order) {
48279
48373
  debug23("Computed data order of execution: %o", order);
48280
48374
  for (let key of order) {
48281
- let computed = lodashGet5(this.computed, key);
48375
+ let computed = lodashGet4(this.computed, key);
48282
48376
  if (typeof computed === "function") {
48283
48377
  let ret = await computed(data2);
48284
- lodashSet8(data2, key, ret);
48378
+ lodashSet6(data2, key, ret);
48285
48379
  } else if (computed !== void 0) {
48286
- lodashSet8(data2, key, computed);
48380
+ lodashSet6(data2, key, computed);
48287
48381
  }
48288
48382
  }
48289
48383
  }
@@ -48303,11 +48397,11 @@ var ComputedData = class {
48303
48397
  var ComputedData_default = ComputedData;
48304
48398
 
48305
48399
  // ../../src/Plugins/Pagination.js
48306
- var import_eleventy_utils30 = __toESM(require_eleventy_utils(), 1);
48307
- var import_lodash_custom9 = __toESM(require_lodash_custom(), 1);
48308
48400
  var import_eleventy_utils31 = __toESM(require_eleventy_utils(), 1);
48401
+ var import_lodash_custom8 = __toESM(require_lodash_custom(), 1);
48402
+ var import_eleventy_utils32 = __toESM(require_eleventy_utils(), 1);
48309
48403
  init_BaseError();
48310
- var { set: lodashSet9, get: lodashGet6, chunk: lodashChunk } = import_lodash_custom9.default;
48404
+ var { set: lodashSet7, get: lodashGet5, chunk: lodashChunk } = import_lodash_custom8.default;
48311
48405
  var PaginationConfigError = class extends BaseError {
48312
48406
  static {
48313
48407
  __name(this, "PaginationConfigError");
@@ -48404,11 +48498,11 @@ var Pagination = class _Pagination {
48404
48498
  return false;
48405
48499
  }
48406
48500
  _has(target, key) {
48407
- let data2 = lodashGet6(target, key, _Pagination.NOT_FOUND_VALUE);
48501
+ let data2 = lodashGet5(target, key, _Pagination.NOT_FOUND_VALUE);
48408
48502
  return data2 !== _Pagination.NOT_FOUND_VALUE;
48409
48503
  }
48410
48504
  _get(target, key) {
48411
- let data2 = lodashGet6(target, key, _Pagination.NOT_FOUND_VALUE);
48505
+ let data2 = lodashGet5(target, key, _Pagination.NOT_FOUND_VALUE);
48412
48506
  if (data2 === _Pagination.NOT_FOUND_VALUE) {
48413
48507
  throw new Error(
48414
48508
  `Could not find pagination data${this.inputPathForErrorMessages}, went looking for: ${key}`
@@ -48421,7 +48515,7 @@ var Pagination = class _Pagination {
48421
48515
  if (Array.isArray(this.fullDataSet)) {
48422
48516
  keys = this.fullDataSet;
48423
48517
  this.paginationTargetType = "array";
48424
- } else if ((0, import_eleventy_utils30.isPlainObject)(this.fullDataSet)) {
48518
+ } else if ((0, import_eleventy_utils31.isPlainObject)(this.fullDataSet)) {
48425
48519
  this.paginationTargetType = "object";
48426
48520
  if (this.shouldResolveDataToObjectValues()) {
48427
48521
  keys = Object.values(this.fullDataSet);
@@ -48529,7 +48623,7 @@ var Pagination = class _Pagination {
48529
48623
  if (collections) {
48530
48624
  delete this.data.collections;
48531
48625
  }
48532
- let parentData = (0, import_eleventy_utils31.DeepCopy)(
48626
+ let parentData = (0, import_eleventy_utils32.DeepCopy)(
48533
48627
  {
48534
48628
  pagination: {
48535
48629
  data: this.data.pagination.data,
@@ -48561,7 +48655,7 @@ var Pagination = class _Pagination {
48561
48655
  };
48562
48656
  Object.assign(paginationData.pagination, this.getOverrideDataPages(items, pageNumber));
48563
48657
  if (this.alias) {
48564
- lodashSet9(paginationData, this.alias, this.getNormalizedItems(items[pageNumber]));
48658
+ lodashSet7(paginationData, this.alias, this.getNormalizedItems(items[pageNumber]));
48565
48659
  }
48566
48660
  let clonedData = ProxyWrap(paginationData, parentData);
48567
48661
  let {
@@ -48599,7 +48693,7 @@ var Pagination = class _Pagination {
48599
48693
  var Pagination_default = Pagination;
48600
48694
 
48601
48695
  // ../../src/TemplateBehavior.js
48602
- var import_eleventy_utils32 = __toESM(require_eleventy_utils(), 1);
48696
+ var import_eleventy_utils33 = __toESM(require_eleventy_utils(), 1);
48603
48697
  var TemplateBehavior = class {
48604
48698
  static {
48605
48699
  __name(this, "TemplateBehavior");
@@ -48647,14 +48741,14 @@ var TemplateBehavior = class {
48647
48741
  // Duplicate logic with TemplatePermalink constructor
48648
48742
  setRenderViaDataCascade(data2) {
48649
48743
  let keys = /* @__PURE__ */ new Set();
48650
- if ((0, import_eleventy_utils32.isPlainObject)(data2.permalink)) {
48744
+ if ((0, import_eleventy_utils33.isPlainObject)(data2.permalink)) {
48651
48745
  for (let key of Object.keys(data2.permalink)) {
48652
48746
  keys.add(key);
48653
48747
  }
48654
48748
  }
48655
48749
  let computedData = ResolveConfigurationData.getValue(data2, this.config.keys.computed);
48656
48750
  let permalink = ResolveConfigurationData.getValue(computedData, this.config.keys.permalink);
48657
- if (computedData && (0, import_eleventy_utils32.isPlainObject)(permalink)) {
48751
+ if (computedData && (0, import_eleventy_utils33.isPlainObject)(permalink)) {
48658
48752
  for (let key of Object.keys(permalink)) {
48659
48753
  keys.add(key);
48660
48754
  }
@@ -48889,7 +48983,7 @@ var TemplatePreprocessors = class {
48889
48983
  };
48890
48984
 
48891
48985
  // ../../src/Template.js
48892
- var { set: lodashSet10, get: lodashGet7 } = import_lodash_custom10.default;
48986
+ var { set: lodashSet8, get: lodashGet6 } = import_lodash_custom9.default;
48893
48987
  var debug25 = createDebug3("Template");
48894
48988
  var Template = class _Template extends TemplateContent_default {
48895
48989
  static {
@@ -48901,7 +48995,6 @@ var Template = class _Template extends TemplateContent_default {
48901
48995
  #dataCache;
48902
48996
  #cacheRenderedPromise;
48903
48997
  #cacheRenderedTransformsAndLayoutsPromise;
48904
- #cacheRenderedDataLocationsTransformsAndLayoutsPromise;
48905
48998
  #preprocessors;
48906
48999
  #preprocessorCache;
48907
49000
  constructor(templatePath, templateData, extensionMap, config) {
@@ -48974,7 +49067,6 @@ var Template = class _Template extends TemplateContent_default {
48974
49067
  if (types2.render) {
48975
49068
  this.#cacheRenderedPromise = void 0;
48976
49069
  this.#cacheRenderedTransformsAndLayoutsPromise = void 0;
48977
- this.#cacheRenderedDataLocationsTransformsAndLayoutsPromise = void 0;
48978
49070
  }
48979
49071
  }
48980
49072
  setOutputFormat(to) {
@@ -48992,12 +49084,12 @@ var Template = class _Template extends TemplateContent_default {
48992
49084
  this.extraOutputSubdirectory = dir + "/";
48993
49085
  }
48994
49086
  getTemplateSubfolder() {
48995
- let dir = import_eleventy_utils33.TemplatePath.absolutePath(this.parsed.dir);
48996
- let inputDir = import_eleventy_utils33.TemplatePath.absolutePath(this.inputDir);
49087
+ let dir = import_eleventy_utils34.TemplatePath.absolutePath(this.parsed.dir);
49088
+ let inputDir = import_eleventy_utils34.TemplatePath.absolutePath(this.inputDir);
48997
49089
  if (inputDir === "/" && dir.startsWith("/")) {
48998
49090
  return dir;
48999
49091
  }
49000
- return import_eleventy_utils33.TemplatePath.stripLeadingSubPath(dir, inputDir);
49092
+ return import_eleventy_utils34.TemplatePath.stripLeadingSubPath(dir, inputDir);
49001
49093
  }
49002
49094
  templateUsesLayouts(pageData) {
49003
49095
  if (this.hasTemplateRender()) {
@@ -49030,7 +49122,7 @@ var Template = class _Template extends TemplateContent_default {
49030
49122
  permalinkValue = permalink;
49031
49123
  } else if (permalink && !isDynamicPermalinkEnabled) {
49032
49124
  permalinkValue = permalink;
49033
- } else if ((0, import_eleventy_utils33.isPlainObject)(permalink)) {
49125
+ } else if ((0, import_eleventy_utils34.isPlainObject)(permalink)) {
49034
49126
  let isEmptyObject = Object.keys(permalink).length === 0;
49035
49127
  if (!isEmptyObject) {
49036
49128
  let promises2 = [];
@@ -49172,12 +49264,12 @@ var Template = class _Template extends TemplateContent_default {
49172
49264
  }
49173
49265
  }
49174
49266
  try {
49175
- let mergedData = (0, import_eleventy_utils33.Merge)({}, globalData, mergedLayoutData, localData, frontMatterData);
49267
+ let mergedData = (0, import_eleventy_utils34.Merge)({}, globalData, mergedLayoutData, localData, frontMatterData);
49176
49268
  if (this.config.freezeReservedData) {
49177
49269
  ReservedData_default.checkSubset(mergedData);
49178
49270
  }
49179
49271
  let pageData = await this.getPageData(mergedData);
49180
- (0, import_eleventy_utils33.Merge)(mergedData, { page: pageData });
49272
+ (0, import_eleventy_utils34.Merge)(mergedData, { page: pageData });
49181
49273
  return mergedData;
49182
49274
  } catch (e) {
49183
49275
  if (!ReservedData_default.isReservedDataError(e) && ReservedData_default.isFrozenError(e)) {
@@ -49231,7 +49323,7 @@ var Template = class _Template extends TemplateContent_default {
49231
49323
  return this.#cacheRenderedPromise;
49232
49324
  }
49233
49325
  setLinters(linters) {
49234
- if (!(0, import_eleventy_utils33.isPlainObject)(linters)) {
49326
+ if (!(0, import_eleventy_utils34.isPlainObject)(linters)) {
49235
49327
  throw new Error("Object expected in setLinters");
49236
49328
  }
49237
49329
  this.linters = [];
@@ -49260,7 +49352,7 @@ var Template = class _Template extends TemplateContent_default {
49260
49352
  }
49261
49353
  }
49262
49354
  setTransforms(transforms) {
49263
- if (!(0, import_eleventy_utils33.isPlainObject)(transforms)) {
49355
+ if (!(0, import_eleventy_utils34.isPlainObject)(transforms)) {
49264
49356
  throw new Error("Object expected in setTransforms");
49265
49357
  }
49266
49358
  this.transforms = transforms;
@@ -49274,7 +49366,7 @@ var Template = class _Template extends TemplateContent_default {
49274
49366
  if (typeof entry === "string") {
49275
49367
  return this.renderComputedData(entry, data2);
49276
49368
  }
49277
- if ((0, import_eleventy_utils33.isPlainObject)(entry)) {
49369
+ if ((0, import_eleventy_utils34.isPlainObject)(entry)) {
49278
49370
  for (let key in entry) {
49279
49371
  entry[key] = await this.#renderComputedUnit(entry[key], data2);
49280
49372
  }
@@ -49299,7 +49391,7 @@ var Template = class _Template extends TemplateContent_default {
49299
49391
  this.getParseForSymbolsFunction(obj),
49300
49392
  this
49301
49393
  );
49302
- } else if ((0, import_eleventy_utils33.isPlainObject)(obj)) {
49394
+ } else if ((0, import_eleventy_utils34.isPlainObject)(obj)) {
49303
49395
  for (let key in obj) {
49304
49396
  let keys = [];
49305
49397
  if (parentKey) {
@@ -49314,7 +49406,7 @@ var Template = class _Template extends TemplateContent_default {
49314
49406
  }
49315
49407
  async addComputedData(data2) {
49316
49408
  let computedData = ResolveConfigurationData.getValue(data2, this.config.keys.computed);
49317
- if ((0, import_eleventy_utils33.isPlainObject)(computedData)) {
49409
+ if ((0, import_eleventy_utils34.isPlainObject)(computedData)) {
49318
49410
  this.computedData = new ComputedData_default(this.config);
49319
49411
  this.computedData.addTemplateString(
49320
49412
  "page.url",
@@ -49557,8 +49649,8 @@ var Template = class _Template extends TemplateContent_default {
49557
49649
  }
49558
49650
  let filtered = {};
49559
49651
  for (let selector of selectors) {
49560
- let value = lodashGet7(data2, selector);
49561
- lodashSet10(filtered, selector, value);
49652
+ let value = lodashGet6(data2, selector);
49653
+ lodashSet8(filtered, selector, value);
49562
49654
  }
49563
49655
  return filtered;
49564
49656
  }
@@ -49730,10 +49822,10 @@ var Template = class _Template extends TemplateContent_default {
49730
49822
  var Template_default = Template;
49731
49823
 
49732
49824
  // ../../src/TemplateMap.js
49733
- var import_eleventy_utils35 = __toESM(require_eleventy_utils(), 1);
49825
+ var import_eleventy_utils36 = __toESM(require_eleventy_utils(), 1);
49734
49826
 
49735
49827
  // ../../src/TemplateCollection.js
49736
- var import_eleventy_utils34 = __toESM(require_eleventy_utils(), 1);
49828
+ var import_eleventy_utils35 = __toESM(require_eleventy_utils(), 1);
49737
49829
 
49738
49830
  // ../../src/Util/Objects/Sortable.js
49739
49831
  var Sortable = class _Sortable {
@@ -49876,7 +49968,7 @@ var TemplateCollection = class extends Sortable_default {
49876
49968
  if (typeof globs === "string") {
49877
49969
  globs = [globs];
49878
49970
  }
49879
- globs = globs.map((glob2) => import_eleventy_utils34.TemplatePath.addLeadingDotSlash(glob2));
49971
+ globs = globs.map((glob2) => import_eleventy_utils35.TemplatePath.addLeadingDotSlash(glob2));
49880
49972
  return globs;
49881
49973
  }
49882
49974
  getFilteredByGlob(globs) {
@@ -49915,6 +50007,9 @@ var TemplateCollection = class extends Sortable_default {
49915
50007
  };
49916
50008
  var TemplateCollection_default = TemplateCollection;
49917
50009
 
50010
+ // ../../src/TemplateMap.js
50011
+ init_BaseError();
50012
+
49918
50013
  // ../../src/Errors/UsingCircularTemplateContentReferenceError.js
49919
50014
  init_BaseError();
49920
50015
  var UsingCircularTemplateContentReferenceError = class extends BaseError {
@@ -49954,7 +50049,6 @@ var TemplateMap = class {
49954
50049
  __name(this, "TemplateMap");
49955
50050
  }
49956
50051
  #dependencyMapInitialized = false;
49957
- #templateData;
49958
50052
  constructor(eleventyConfig) {
49959
50053
  if (!eleventyConfig || eleventyConfig.constructor.name !== "TemplateConfig") {
49960
50054
  throw new Error("Missing or invalid `eleventyConfig` argument.");
@@ -49981,9 +50075,6 @@ var TemplateMap = class {
49981
50075
  }
49982
50076
  return this._config;
49983
50077
  }
49984
- setTemplateData(templateData) {
49985
- this.#templateData = templateData;
49986
- }
49987
50078
  async add(template) {
49988
50079
  if (!template) {
49989
50080
  return;
@@ -50001,7 +50092,7 @@ var TemplateMap = class {
50001
50092
  return this.map;
50002
50093
  }
50003
50094
  #addToInputPathMap(mapEntry) {
50004
- let absoluteInputPath = import_eleventy_utils35.TemplatePath.absolutePath(mapEntry.inputPath);
50095
+ let absoluteInputPath = import_eleventy_utils36.TemplatePath.absolutePath(mapEntry.inputPath);
50005
50096
  this.inputPathMap.set(absoluteInputPath, mapEntry);
50006
50097
  }
50007
50098
  getTagTarget(str) {
@@ -50114,7 +50205,7 @@ var TemplateMap = class {
50114
50205
  if (GlobalDependencyMap_default.isCollection(entry)) {
50115
50206
  return entry;
50116
50207
  }
50117
- let inputPath = import_eleventy_utils35.TemplatePath.addLeadingDotSlash(entry);
50208
+ let inputPath = import_eleventy_utils36.TemplatePath.addLeadingDotSlash(entry);
50118
50209
  if (!this.hasMapEntryForInputPath(inputPath)) {
50119
50210
  return false;
50120
50211
  }
@@ -50178,7 +50269,7 @@ var TemplateMap = class {
50178
50269
  return Boolean(this.getMapEntryForInputPath(inputPath));
50179
50270
  }
50180
50271
  getMapEntryForInputPath(inputPath) {
50181
- let absoluteInputPath = import_eleventy_utils35.TemplatePath.absolutePath(inputPath);
50272
+ let absoluteInputPath = import_eleventy_utils36.TemplatePath.absolutePath(inputPath);
50182
50273
  return this.inputPathMap.get(absoluteInputPath);
50183
50274
  }
50184
50275
  #removeTagsFromTemplateOrder(maps) {
@@ -50190,17 +50281,20 @@ var TemplateMap = class {
50190
50281
  continue;
50191
50282
  }
50192
50283
  for (let pageEntry of map._pages) {
50193
- let { location: dataSchemaLocation, value: dataSchema } = ResolveConfigurationData.resolve(
50284
+ let dataSchemaCallback = ResolveConfigurationData.getValue(
50194
50285
  pageEntry.data,
50195
50286
  this.config.keys.dataSchema
50196
50287
  );
50197
- if (dataSchema !== void 0 && typeof dataSchema === "function") {
50288
+ if (dataSchemaCallback !== void 0 && typeof dataSchemaCallback === "function") {
50198
50289
  try {
50199
- await dataSchema(pageEntry.data);
50290
+ await dataSchemaCallback(pageEntry.data);
50200
50291
  } catch (e) {
50201
- throw new Error(
50202
- `Error in the data schema for: ${map.inputPath} (via \`${dataSchemaLocation}\`)`,
50203
- { cause: e }
50292
+ let dataSchemaLocation = ResolveConfigurationData.getEligibleLocations(
50293
+ this.config.keys.dataSchema
50294
+ );
50295
+ throw new BaseError(
50296
+ `Error in the data schema for: ${map.inputPath} (via \`${dataSchemaLocation.join("` or `")}\`)`,
50297
+ e
50204
50298
  );
50205
50299
  }
50206
50300
  }
@@ -50281,7 +50375,7 @@ var TemplateMap = class {
50281
50375
  continue;
50282
50376
  }
50283
50377
  for (let item of this.collectionsData[collectionName]) {
50284
- if (!(0, import_eleventy_utils35.isPlainObject)(item) || !("inputPath" in item)) {
50378
+ if (!(0, import_eleventy_utils36.isPlainObject)(item) || !("inputPath" in item)) {
50285
50379
  continue;
50286
50380
  }
50287
50381
  let entry = this.getMapEntryForInputPath(item.inputPath);
@@ -50388,7 +50482,7 @@ ${outputPaths[page.outputPath].map(function(inputPath, index) {
50388
50482
  this.#onEachPage((page) => {
50389
50483
  if (page.outputPath === false || page.url === false || page.data.eleventyAllowMissingExtension || EXTENSIONLESS_URL_ALLOWLIST.some((url) => page.url.endsWith(url))) {
50390
50484
  } else {
50391
- if (import_eleventy_utils35.TemplatePath.getExtension(page.outputPath) === "") {
50485
+ if (import_eleventy_utils36.TemplatePath.getExtension(page.outputPath) === "") {
50392
50486
  let e = new Error(`The template at '${page.inputPath}' attempted to write to '${page.outputPath}'${page.data.permalink ? ` (via \`permalink\` value: '${page.data.permalink}')` : ""}, which is a target on the file system that does not include a file extension.
50393
50487
 
50394
50488
  You *probably* want to add a file extension to your permalink so that hosts will know how to correctly serve this file to web browsers. Without a file extension, this file may not be reliably deployed without additional hosting configuration (it won\u2019t have a mime type) and may also cause local development issues if you later attempt to write to a subdirectory of the same name.
@@ -50454,110 +50548,8 @@ var TemplateMap_default = TemplateMap;
50454
50548
 
50455
50549
  // ../../src/TemplateWriter.js
50456
50550
  init_BaseError();
50457
-
50458
- // ../../src/Errors/ErrorHandler.js
50459
50551
  init_DebugLogUtil();
50460
- var debug27 = createDebug3("ErrorHandler");
50461
- var ErrorHandler = class _ErrorHandler {
50462
- static {
50463
- __name(this, "ErrorHandler");
50464
- }
50465
- #logger;
50466
- get logger() {
50467
- if (!this.#logger) {
50468
- throw new Error("Internal error: missing logger instance.");
50469
- }
50470
- return this.#logger;
50471
- }
50472
- set logger(logger) {
50473
- this.#logger = logger;
50474
- }
50475
- warn(e, msg) {
50476
- this.log(e, "warn", "yellow", void 0, [`${msg}:`]);
50477
- }
50478
- fatal(e, msg) {
50479
- this.error(e, msg);
50480
- process.exitCode = 1;
50481
- }
50482
- once(type, e, msg) {
50483
- if (e.__errorAlreadyLogged) {
50484
- return;
50485
- }
50486
- this[type || "error"](e, msg);
50487
- Object.defineProperty(e, "__errorAlreadyLogged", {
50488
- value: true
50489
- });
50490
- }
50491
- error(e, msg) {
50492
- this.log(e, "error", "red", true, [`${msg}:`]);
50493
- }
50494
- static getTotalErrorCount(e) {
50495
- let totalErrorCount = 0;
50496
- let errorCountRef = e;
50497
- while (errorCountRef) {
50498
- totalErrorCount++;
50499
- errorCountRef = errorCountRef.originalError;
50500
- }
50501
- return totalErrorCount;
50502
- }
50503
- //https://nodejs.org/api/process.html
50504
- log(e, type = "log", chalkColor = "", forceToConsole = false, messages = []) {
50505
- if (process.env.DEBUG) {
50506
- debug27("Full error object: %o", inspect(e));
50507
- }
50508
- let showStack = true;
50509
- if (e.skipOriginalStack) {
50510
- showStack = false;
50511
- }
50512
- let totalErrorCount = _ErrorHandler.getTotalErrorCount(e);
50513
- let ref2 = e;
50514
- let index = 1;
50515
- let debugs = [];
50516
- while (ref2) {
50517
- let nextRef = ref2.originalError;
50518
- if (nextRef?.cause) {
50519
- nextRef.originalError = nextRef.cause?.originalError ?? nextRef?.cause;
50520
- }
50521
- if (!nextRef && ErrorUtil.hasEmbeddedError(ref2.message)) {
50522
- nextRef = ErrorUtil.deconvertErrorToObject(ref2);
50523
- }
50524
- if (nextRef?.skipOriginalStack) {
50525
- showStack = false;
50526
- }
50527
- messages.push(
50528
- `${totalErrorCount > 1 ? `${index}. ` : ""}${(ErrorUtil.cleanMessage(ref2.message) || "(No error message provided)").trim()}${ref2.name !== "Error" ? ` (via ${ref2.name})` : ""}`
50529
- );
50530
- if (process.env.DEBUG) {
50531
- debugs.push(`(${type} stack): ${ref2.stack}`);
50532
- } else if (!nextRef) {
50533
- let stackStr = ref2.stack || "";
50534
- if (e.removeDuplicateErrorStringFromOutput) {
50535
- stackStr = stackStr.replace(
50536
- `${ref2.name}: ${ref2.message}`,
50537
- "(Repeated output has been truncated\u2026)"
50538
- );
50539
- }
50540
- if (showStack) {
50541
- messages.push("\nOriginal error stack trace: " + stackStr);
50542
- }
50543
- }
50544
- ref2 = nextRef;
50545
- index++;
50546
- }
50547
- if (messages.length) {
50548
- this.logger.message(messages.join("\n"), type, chalkColor, forceToConsole);
50549
- }
50550
- if (debugs.length > 0) {
50551
- for (let msg of debugs) {
50552
- debug27(msg);
50553
- }
50554
- }
50555
- }
50556
- };
50557
-
50558
- // ../../src/TemplateWriter.js
50559
- init_DebugLogUtil();
50560
- var debug28 = createDebug3("TemplateWriter");
50552
+ var debug27 = createDebug3("TemplateWriter");
50561
50553
  var TemplateWriterMissingConfigArgError = class extends BaseError {
50562
50554
  static {
50563
50555
  __name(this, "TemplateWriterMissingConfigArgError");
@@ -50659,7 +50651,7 @@ var TemplateWriter = class {
50659
50651
  return this.#eleventyFiles?.passthroughGlobs;
50660
50652
  }
50661
50653
  getPathsWithVirtualTemplates(paths) {
50662
- if (this.config.virtualTemplates && (0, import_eleventy_utils36.isPlainObject)(this.config.virtualTemplates)) {
50654
+ if (this.config.virtualTemplates && (0, import_eleventy_utils37.isPlainObject)(this.config.virtualTemplates)) {
50663
50655
  let virtualTemplates = Object.keys(this.config.virtualTemplates).filter((path16) => {
50664
50656
  return this.dirs.isTemplateFile(path16);
50665
50657
  }).map((path16) => {
@@ -50769,7 +50761,7 @@ var TemplateWriter = class {
50769
50761
  tmpl.setRenderableOverride(false);
50770
50762
  }
50771
50763
  }
50772
- let secondOrderRelevantArray = this.config.uses.getTemplatesRelevantToTemplateList(Object.keys(secondOrderRelevantLookup)).map((entry) => import_eleventy_utils36.TemplatePath.addLeadingDotSlash(entry));
50764
+ let secondOrderRelevantArray = this.config.uses.getTemplatesRelevantToTemplateList(Object.keys(secondOrderRelevantLookup)).map((entry) => import_eleventy_utils37.TemplatePath.addLeadingDotSlash(entry));
50773
50765
  let secondOrderTemplates = Object.fromEntries(
50774
50766
  Object.entries(secondOrderRelevantArray).map(([index, value]) => [value, true])
50775
50767
  );
@@ -50847,9 +50839,6 @@ var TemplateWriter = class {
50847
50839
  }
50848
50840
  async createTemplateMap(paths, to) {
50849
50841
  this.templateMap = new TemplateMap_default(this.templateConfig);
50850
- if (this.templateData) {
50851
- this.templateMap.setTemplateData(this.templateData);
50852
- }
50853
50842
  await this.#addToTemplateMap(paths, to);
50854
50843
  await this.templateMap.cache();
50855
50844
  return this.templateMap;
@@ -50874,7 +50863,7 @@ var TemplateWriter = class {
50874
50863
  async generateTemplates(paths, to = "fs") {
50875
50864
  let promises2 = [];
50876
50865
  await this.createTemplateMap(paths, to);
50877
- debug28("Template map created.");
50866
+ debug27("Template map created.");
50878
50867
  let usedTemplateContentTooEarlyMap = [];
50879
50868
  for (let mapEntry of this.templateMap.getMap()) {
50880
50869
  promises2.push(
@@ -50989,6 +50978,106 @@ var TemplateWriter = class {
50989
50978
  };
50990
50979
  var TemplateWriter_default = TemplateWriter;
50991
50980
 
50981
+ // ../../src/Errors/ErrorHandler.js
50982
+ init_DebugLogUtil();
50983
+ var debug28 = createDebug3("ErrorHandler");
50984
+ var ErrorHandler = class _ErrorHandler {
50985
+ static {
50986
+ __name(this, "ErrorHandler");
50987
+ }
50988
+ #logger;
50989
+ get logger() {
50990
+ if (!this.#logger) {
50991
+ throw new Error("Internal error: missing logger instance.");
50992
+ }
50993
+ return this.#logger;
50994
+ }
50995
+ set logger(logger) {
50996
+ this.#logger = logger;
50997
+ }
50998
+ warn(e, msg) {
50999
+ this.log(e, "warn", "yellow", void 0, [`${msg}:`]);
51000
+ }
51001
+ fatal(e, msg) {
51002
+ this.error(e, msg);
51003
+ process.exitCode = 1;
51004
+ }
51005
+ once(type, e, msg) {
51006
+ if (e.__errorAlreadyLogged) {
51007
+ return;
51008
+ }
51009
+ this[type || "error"](e, msg);
51010
+ Object.defineProperty(e, "__errorAlreadyLogged", {
51011
+ value: true
51012
+ });
51013
+ }
51014
+ error(e, msg) {
51015
+ this.log(e, "error", "red", true, [`${msg}:`]);
51016
+ }
51017
+ static getTotalErrorCount(e) {
51018
+ let totalErrorCount = 0;
51019
+ let errorCountRef = e;
51020
+ while (errorCountRef) {
51021
+ totalErrorCount++;
51022
+ errorCountRef = errorCountRef.originalError;
51023
+ }
51024
+ return totalErrorCount;
51025
+ }
51026
+ //https://nodejs.org/api/process.html
51027
+ log(e, type = "log", chalkColor = "", forceToConsole = false, messages = []) {
51028
+ if (process.env.DEBUG) {
51029
+ debug28("Full error object: %o", inspect(e));
51030
+ }
51031
+ let showStack = true;
51032
+ if (e.skipOriginalStack) {
51033
+ showStack = false;
51034
+ }
51035
+ let totalErrorCount = _ErrorHandler.getTotalErrorCount(e);
51036
+ let ref2 = e;
51037
+ let index = 1;
51038
+ let debugs = [];
51039
+ while (ref2) {
51040
+ let nextRef = ref2.originalError;
51041
+ if (nextRef?.cause) {
51042
+ nextRef.originalError = nextRef.cause?.originalError ?? nextRef?.cause;
51043
+ }
51044
+ if (!nextRef && ErrorUtil.hasEmbeddedError(ref2.message)) {
51045
+ nextRef = ErrorUtil.deconvertErrorToObject(ref2);
51046
+ }
51047
+ if (nextRef?.skipOriginalStack) {
51048
+ showStack = false;
51049
+ }
51050
+ messages.push(
51051
+ `${totalErrorCount > 1 ? `${index}. ` : ""}${(ErrorUtil.cleanMessage(ref2.message) || "(No error message provided)").trim()}${ref2.name !== "Error" ? ` (via ${ref2.name})` : ""}`
51052
+ );
51053
+ if (process.env.DEBUG) {
51054
+ debugs.push(`(${type} stack): ${ref2.stack}`);
51055
+ } else if (!nextRef) {
51056
+ let stackStr = ref2.stack || "";
51057
+ if (e.removeDuplicateErrorStringFromOutput) {
51058
+ stackStr = stackStr.replace(
51059
+ `${ref2.name}: ${ref2.message}`,
51060
+ "(Repeated output has been truncated\u2026)"
51061
+ );
51062
+ }
51063
+ if (showStack) {
51064
+ messages.push("\nOriginal error stack trace: " + stackStr);
51065
+ }
51066
+ }
51067
+ ref2 = nextRef;
51068
+ index++;
51069
+ }
51070
+ if (messages.length) {
51071
+ this.logger.message(messages.join("\n"), type, chalkColor, forceToConsole);
51072
+ }
51073
+ if (debugs.length > 0) {
51074
+ for (let msg of debugs) {
51075
+ debug28(msg);
51076
+ }
51077
+ }
51078
+ }
51079
+ };
51080
+
50992
51081
  // ../../src/CoreMinimal.js
50993
51082
  init_DebugLogUtil();
50994
51083
 
@@ -51014,8 +51103,7 @@ function Pluralize_default(count, singleWord, pluralWord) {
51014
51103
  __name(Pluralize_default, "default");
51015
51104
 
51016
51105
  // ../../src/CoreMinimal.js
51017
- var import_EnvironmentVars = __toESM(require_EnvironmentVars(), 1);
51018
- init_IsBuildAwesome();
51106
+ var import_EnvironmentVars2 = __toESM(require_EnvironmentVars(), 1);
51019
51107
  var pkg2 = getCorePackageJson();
51020
51108
  var debug29 = createDebug3("Core");
51021
51109
  var CoreMinimal = class _CoreMinimal {
@@ -51061,7 +51149,7 @@ var CoreMinimal = class _CoreMinimal {
51061
51149
  let output;
51062
51150
  let options;
51063
51151
  let eleventyConfig;
51064
- if ((0, import_eleventy_utils37.isPlainObject)(args[0])) {
51152
+ if ((0, import_eleventy_utils38.isPlainObject)(args[0])) {
51065
51153
  options = args[0] || {};
51066
51154
  input = options.input;
51067
51155
  output = options.output;
@@ -51154,9 +51242,6 @@ var CoreMinimal = class _CoreMinimal {
51154
51242
  await this.eleventyConfig.setProjectConfigPath(this.configPath);
51155
51243
  }
51156
51244
  this.#activeConfigurationPath = this.configPath ?? this.eleventyConfig.getLocalProjectConfigFile();
51157
- if (isUsingBuildAwesome()) {
51158
- this.logger.setPrefix(`[buildawesome]`);
51159
- }
51160
51245
  this.eleventyConfig.setRunMode(this.runMode);
51161
51246
  this.eleventyConfig.setProjectUsingEsm(this.isEsm);
51162
51247
  this.eleventyConfig.setLogger(this.logger);
@@ -51344,9 +51429,9 @@ Verbose Output: ${this.verboseMode}`;
51344
51429
  runMode: this.runMode
51345
51430
  };
51346
51431
  if (this.#activeConfigurationPath) {
51347
- values.config = import_eleventy_utils37.TemplatePath.absolutePath(this.#activeConfigurationPath);
51432
+ values.config = import_eleventy_utils38.TemplatePath.absolutePath(this.#activeConfigurationPath);
51348
51433
  }
51349
- values.root = import_eleventy_utils37.TemplatePath.getWorkingDir();
51434
+ values.root = import_eleventy_utils38.TemplatePath.getWorkingDir();
51350
51435
  values.source = this.source;
51351
51436
  Object.defineProperty(values, "isServerless", {
51352
51437
  enumerable: false,
@@ -51360,11 +51445,11 @@ Verbose Output: ${this.verboseMode}`;
51360
51445
  * @method
51361
51446
  */
51362
51447
  initializeEnvironmentVariables(env) {
51363
- (0, import_EnvironmentVars.setEnvValue)("VERSION", _CoreMinimal.getVersion());
51364
- (0, import_EnvironmentVars.setEnvValue)("ROOT", env.root);
51448
+ (0, import_EnvironmentVars2.setEnvValue)("VERSION", _CoreMinimal.getVersion());
51449
+ (0, import_EnvironmentVars2.setEnvValue)("ROOT", env.root);
51365
51450
  debug29("Setting process.env.ELEVENTY_ROOT and BUILDAWESOME_ROOT: %o", env.root);
51366
- (0, import_EnvironmentVars.setEnvValue)("SOURCE", env.source);
51367
- (0, import_EnvironmentVars.setEnvValue)("RUN_MODE", env.runMode);
51451
+ (0, import_EnvironmentVars2.setEnvValue)("SOURCE", env.source);
51452
+ (0, import_EnvironmentVars2.setEnvValue)("RUN_MODE", env.runMode);
51368
51453
  }
51369
51454
  /** @param {boolean} value */
51370
51455
  set verboseMode(value) {
@@ -51461,7 +51546,7 @@ Verbose Output: ${this.verboseMode}`;
51461
51546
  } else {
51462
51547
  throw new Error("Invalid argument for setIncrementalFiles, needs string or Array");
51463
51548
  }
51464
- let normalized = files.map((p) => import_eleventy_utils37.TemplatePath.addLeadingDotSlash(p));
51549
+ let normalized = files.map((p) => import_eleventy_utils38.TemplatePath.addLeadingDotSlash(p));
51465
51550
  this.programmaticApiIncrementalFile = normalized;
51466
51551
  this.watchQueue?.setActiveQueue(normalized);
51467
51552
  }
@@ -51678,7 +51763,7 @@ Open an issue: https://github.com/11ty/buildawesome/issues/new`);
51678
51763
  ret.push(
51679
51764
  `in ${chalk_default.bold(time.toFixed(2))} ${Pluralize_default(time.toFixed(2), "second", "seconds")}`
51680
51765
  );
51681
- let cfgStr = this.#activeConfigurationPath ? `, ${import_eleventy_utils37.TemplatePath.stripLeadingDotSlash(this.#activeConfigurationPath)}` : " no config file";
51766
+ let cfgStr = this.#activeConfigurationPath ? `, ${import_eleventy_utils38.TemplatePath.stripLeadingDotSlash(this.#activeConfigurationPath)}` : " no config file";
51682
51767
  if (time >= 1 && writeCount > 1) {
51683
51768
  ret.push(
51684
51769
  chalk_default.gray(`(${(time * 1e3 / writeCount).toFixed(1)}ms each, v${pkg2.version}${cfgStr})`)
@@ -52532,7 +52617,7 @@ async function glob(globInput, options) {
52532
52617
  __name(glob, "glob");
52533
52618
 
52534
52619
  // ../../src/FileSystemSearch.js
52535
- var import_eleventy_utils38 = __toESM(require_eleventy_utils(), 1);
52620
+ var import_eleventy_utils39 = __toESM(require_eleventy_utils(), 1);
52536
52621
  init_DebugLogUtil();
52537
52622
 
52538
52623
  // ../../src/Util/GlobRemap.js
@@ -52629,7 +52714,7 @@ var FileSystemSearch = class {
52629
52714
  globs = [globs];
52630
52715
  }
52631
52716
  globs = globs.map((entry) => {
52632
- return import_eleventy_utils38.TemplatePath.stripLeadingDotSlash(entry);
52717
+ return import_eleventy_utils39.TemplatePath.stripLeadingDotSlash(entry);
52633
52718
  });
52634
52719
  let cwd = GlobRemap_default.getCwd(globs);
52635
52720
  if (cwd) {
@@ -52637,7 +52722,7 @@ var FileSystemSearch = class {
52637
52722
  }
52638
52723
  if (options.ignore && Array.isArray(options.ignore)) {
52639
52724
  options.ignore = options.ignore.map((entry) => {
52640
- entry = import_eleventy_utils38.TemplatePath.stripLeadingDotSlash(entry);
52725
+ entry = import_eleventy_utils39.TemplatePath.stripLeadingDotSlash(entry);
52641
52726
  return GlobRemap_default.remapInput(entry, cwd);
52642
52727
  });
52643
52728
  debug30("Glob search (%o) ignoring: %o", key, options.ignore);
@@ -52664,7 +52749,7 @@ var FileSystemSearch = class {
52664
52749
  this.outputs[cacheKey] = new Set(
52665
52750
  results.map((entry) => {
52666
52751
  let remapped = GlobRemap_default.remapOutput(entry, options.cwd);
52667
- return import_eleventy_utils38.TemplatePath.standardizeFilePath(remapped);
52752
+ return import_eleventy_utils39.TemplatePath.standardizeFilePath(remapped);
52668
52753
  })
52669
52754
  );
52670
52755
  return Array.from(this.outputs[cacheKey]);
@@ -52673,8 +52758,8 @@ var FileSystemSearch = class {
52673
52758
  return this.promises[cacheKey];
52674
52759
  }
52675
52760
  _modify(path16, setOperation) {
52676
- path16 = import_eleventy_utils38.TemplatePath.stripLeadingDotSlash(path16);
52677
- let normalized = import_eleventy_utils38.TemplatePath.standardizeFilePath(path16);
52761
+ path16 = import_eleventy_utils39.TemplatePath.stripLeadingDotSlash(path16);
52762
+ let normalized = import_eleventy_utils39.TemplatePath.standardizeFilePath(path16);
52678
52763
  for (let key in this.inputs) {
52679
52764
  let { input, options } = this.inputs[key];
52680
52765
  if (isGlobMatch(path16, input, {
@@ -52699,7 +52784,7 @@ var FileSystemSearch_default = FileSystemSearch;
52699
52784
 
52700
52785
  // ../../src/Files.js
52701
52786
  init_shim_fs();
52702
- var import_eleventy_utils39 = __toESM(require_eleventy_utils(), 1);
52787
+ var import_eleventy_utils40 = __toESM(require_eleventy_utils(), 1);
52703
52788
  init_DebugLogUtil();
52704
52789
 
52705
52790
  // ../../src/Util/PassthroughCopyBehaviorCheck.js
@@ -52859,11 +52944,11 @@ var Files = class {
52859
52944
  }
52860
52945
  let ignores = [];
52861
52946
  for (let ignorePath of ignoreFiles) {
52862
- ignorePath = import_eleventy_utils39.TemplatePath.normalize(ignorePath);
52947
+ ignorePath = import_eleventy_utils40.TemplatePath.normalize(ignorePath);
52863
52948
  if (this.templateConfig.existsCache.exists(ignorePath)) {
52864
52949
  let ignoreContent = readFileSync(ignorePath, "utf8");
52865
52950
  if (ignoreContent) {
52866
- let dir = import_eleventy_utils39.TemplatePath.getDirFromFilePath(ignorePath);
52951
+ let dir = import_eleventy_utils40.TemplatePath.getDirFromFilePath(ignorePath);
52867
52952
  ignores = ignores.concat(this.normalizeIgnoreContent(dir, ignoreContent));
52868
52953
  }
52869
52954
  }
@@ -52890,7 +52975,7 @@ var Files = class {
52890
52975
  return line.length > 0 && line.charAt(0) !== "#" && line.charAt(0) !== "!";
52891
52976
  }).map((line) => {
52892
52977
  let path16 = TemplateGlob_default.normalizePath(dir, "/", line);
52893
- path16 = import_eleventy_utils39.TemplatePath.addLeadingDotSlash(import_eleventy_utils39.TemplatePath.relativePath(path16));
52978
+ path16 = import_eleventy_utils40.TemplatePath.addLeadingDotSlash(import_eleventy_utils40.TemplatePath.relativePath(path16));
52894
52979
  if (this.templateConfig.existsCache.isDirectory(path16)) {
52895
52980
  return path16 + "/**";
52896
52981
  }
@@ -52921,13 +53006,13 @@ var Files = class {
52921
53006
  let ignoreFiles = /* @__PURE__ */ new Set();
52922
53007
  let rootDirectory = this.localPathRoot || ".";
52923
53008
  if (this.config.useGitIgnore) {
52924
- ignoreFiles.add(import_eleventy_utils39.TemplatePath.join(rootDirectory, ".gitignore"));
53009
+ ignoreFiles.add(import_eleventy_utils40.TemplatePath.join(rootDirectory, ".gitignore"));
52925
53010
  }
52926
53011
  if (this.eleventyIgnoreContent === false) {
52927
- let absoluteInputDir = import_eleventy_utils39.TemplatePath.absolutePath(this.inputDir);
52928
- ignoreFiles.add(import_eleventy_utils39.TemplatePath.join(rootDirectory, ".eleventyignore"));
53012
+ let absoluteInputDir = import_eleventy_utils40.TemplatePath.absolutePath(this.inputDir);
53013
+ ignoreFiles.add(import_eleventy_utils40.TemplatePath.join(rootDirectory, ".eleventyignore"));
52929
53014
  if (rootDirectory !== absoluteInputDir) {
52930
- ignoreFiles.add(import_eleventy_utils39.TemplatePath.join(this.inputDir, ".eleventyignore"));
53015
+ ignoreFiles.add(import_eleventy_utils40.TemplatePath.join(this.inputDir, ".eleventyignore"));
52931
53016
  }
52932
53017
  }
52933
53018
  return Array.from(ignoreFiles);
@@ -52969,7 +53054,7 @@ var Files = class {
52969
53054
  let bench = this.aggregateBench.get("Searching the file system (templates)");
52970
53055
  bench.before();
52971
53056
  let globResults = await this._globSearch();
52972
- let paths = import_eleventy_utils39.TemplatePath.addLeadingDotSlashArray(globResults);
53057
+ let paths = import_eleventy_utils40.TemplatePath.addLeadingDotSlashArray(globResults);
52973
53058
  bench.after();
52974
53059
  this.pathCache = paths;
52975
53060
  return paths;
@@ -53015,7 +53100,7 @@ var Files = class {
53015
53100
  let globs = this.templateData.getTemplateJavaScriptDataFileGlob();
53016
53101
  let bench = this.aggregateBench.get("Searching the file system (watching)");
53017
53102
  bench.before();
53018
- let results = import_eleventy_utils39.TemplatePath.addLeadingDotSlashArray(
53103
+ let results = import_eleventy_utils40.TemplatePath.addLeadingDotSlashArray(
53019
53104
  await this.fileSystemSearch.search("js-dependencies", globs, {
53020
53105
  ignore: [
53021
53106
  "**/node_modules/**",
@@ -53031,7 +53116,7 @@ var Files = class {
53031
53116
  /* Ignored by `eleventy --watch` */
53032
53117
  getGlobWatcherIgnores() {
53033
53118
  let entries = new Set(
53034
- this.fileIgnores.map((ignore2) => import_eleventy_utils39.TemplatePath.stripLeadingDotSlash(ignore2))
53119
+ this.fileIgnores.map((ignore2) => import_eleventy_utils40.TemplatePath.stripLeadingDotSlash(ignore2))
53035
53120
  );
53036
53121
  for (let ignore2 of this.config.watchIgnores) {
53037
53122
  entries.add(this.normalizeIgnoreEntry(ignore2));
@@ -53054,13 +53139,13 @@ var Files = class {
53054
53139
  };
53055
53140
 
53056
53141
  // ../../src/TemplatePassthroughManager.js
53057
- var import_eleventy_utils41 = __toESM(require_eleventy_utils(), 1);
53142
+ var import_eleventy_utils42 = __toESM(require_eleventy_utils(), 1);
53058
53143
  init_BaseError();
53059
53144
 
53060
53145
  // ../../src/TemplatePassthrough.js
53061
53146
  var import_node_path17 = __toESM(require_path(), 1);
53062
53147
  var import_recursive_copy = __toESM(require_recursive_copy(), 1);
53063
- var import_eleventy_utils40 = __toESM(require_eleventy_utils(), 1);
53148
+ var import_eleventy_utils41 = __toESM(require_eleventy_utils(), 1);
53064
53149
  init_BaseError();
53065
53150
  init_DebugLogUtil();
53066
53151
  var debug32 = createDebug3("TemplatePassthrough");
@@ -53139,38 +53224,38 @@ var TemplatePassthrough = class _TemplatePassthrough {
53139
53224
  let { inputDir, outputDir, outputPath, inputPath } = this;
53140
53225
  if (outputPath === true) {
53141
53226
  if (this.isDirectory(inputPath)) {
53142
- let inputRelativePath = import_eleventy_utils40.TemplatePath.stripLeadingSubPath(
53227
+ let inputRelativePath = import_eleventy_utils41.TemplatePath.stripLeadingSubPath(
53143
53228
  inputFileFromGlob || inputPath,
53144
53229
  inputDir
53145
53230
  );
53146
53231
  return ProjectDirectories.normalizeDirectory(
53147
- import_eleventy_utils40.TemplatePath.join(outputDir, inputRelativePath)
53232
+ import_eleventy_utils41.TemplatePath.join(outputDir, inputRelativePath)
53148
53233
  );
53149
53234
  }
53150
- return import_eleventy_utils40.TemplatePath.normalize(
53151
- import_eleventy_utils40.TemplatePath.join(
53235
+ return import_eleventy_utils41.TemplatePath.normalize(
53236
+ import_eleventy_utils41.TemplatePath.join(
53152
53237
  outputDir,
53153
- import_eleventy_utils40.TemplatePath.stripLeadingSubPath(inputFileFromGlob || inputPath, inputDir)
53238
+ import_eleventy_utils41.TemplatePath.stripLeadingSubPath(inputFileFromGlob || inputPath, inputDir)
53154
53239
  )
53155
53240
  );
53156
53241
  }
53157
53242
  if (inputFileFromGlob) {
53158
53243
  return this.getOutputPathForGlobFile(inputFileFromGlob);
53159
53244
  }
53160
- let fullOutputPath = import_eleventy_utils40.TemplatePath.normalize(import_eleventy_utils40.TemplatePath.join(outputDir, outputPath));
53245
+ let fullOutputPath = import_eleventy_utils41.TemplatePath.normalize(import_eleventy_utils41.TemplatePath.join(outputDir, outputPath));
53161
53246
  if (outputPath === "" || this.isDirectory(inputPath)) {
53162
53247
  fullOutputPath = ProjectDirectories.normalizeDirectory(fullOutputPath);
53163
53248
  }
53164
53249
  if (!this.#isInputPathGlob && this.isExists(inputPath) && !this.isDirectory(inputPath) && this.isDirectory(fullOutputPath)) {
53165
53250
  let filename = import_node_path17.default.parse(inputPath).base;
53166
- return import_eleventy_utils40.TemplatePath.normalize(import_eleventy_utils40.TemplatePath.join(fullOutputPath, filename));
53251
+ return import_eleventy_utils41.TemplatePath.normalize(import_eleventy_utils41.TemplatePath.join(fullOutputPath, filename));
53167
53252
  }
53168
53253
  return fullOutputPath;
53169
53254
  }
53170
53255
  async getOutputPathForGlobFile(inputFileFromGlob) {
53171
- return import_eleventy_utils40.TemplatePath.join(
53256
+ return import_eleventy_utils41.TemplatePath.join(
53172
53257
  await this.getOutputPath(),
53173
- import_eleventy_utils40.TemplatePath.getLastPathSegment(inputFileFromGlob)
53258
+ import_eleventy_utils41.TemplatePath.getLastPathSegment(inputFileFromGlob)
53174
53259
  );
53175
53260
  }
53176
53261
  setDryRun(isDryRun) {
@@ -53189,7 +53274,7 @@ var TemplatePassthrough = class _TemplatePassthrough {
53189
53274
  if (!this.fileSystemSearch) {
53190
53275
  throw new Error("Internal error: Missing `fileSystemSearch` property.");
53191
53276
  }
53192
- let files = import_eleventy_utils40.TemplatePath.addLeadingDotSlashArray(
53277
+ let files = import_eleventy_utils41.TemplatePath.addLeadingDotSlashArray(
53193
53278
  await this.fileSystemSearch.search("passthrough", glob2, {
53194
53279
  ignore: [
53195
53280
  // *only* ignores output dir (not node_modules!)
@@ -53441,10 +53526,10 @@ var TemplatePassthroughManager = class {
53441
53526
  this.incrementalFiles = void 0;
53442
53527
  }
53443
53528
  #normalizePath(path16, outputPath, copyOptions = {}) {
53444
- let inputPath = import_eleventy_utils41.TemplatePath.addLeadingDotSlash(path16);
53529
+ let inputPath = import_eleventy_utils42.TemplatePath.addLeadingDotSlash(path16);
53445
53530
  return {
53446
53531
  inputPath,
53447
- outputPath: outputPath ? import_eleventy_utils41.TemplatePath.stripLeadingDotSlash(outputPath) : true,
53532
+ outputPath: outputPath ? import_eleventy_utils42.TemplatePath.stripLeadingDotSlash(outputPath) : true,
53448
53533
  copyOptions,
53449
53534
  // eligible if args.length > 1
53450
53535
  isDynamicPattern: outputPath && isDynamicPattern(inputPath)
@@ -53462,7 +53547,7 @@ var TemplatePassthroughManager = class {
53462
53547
  }
53463
53548
  getConfigPathGlobs() {
53464
53549
  return this.getConfigPaths().map((path16) => {
53465
- return import_eleventy_utils41.TemplatePath.convertToRecursiveGlobSync(path16.inputPath);
53550
+ return import_eleventy_utils42.TemplatePath.convertToRecursiveGlobSync(path16.inputPath);
53466
53551
  });
53467
53552
  }
53468
53553
  getNonTemplatePaths(paths) {
@@ -53511,7 +53596,7 @@ var TemplatePassthroughManager = class {
53511
53596
  if (src !== this.conflictMap[dest]) {
53512
53597
  let paths = [src, this.conflictMap[dest]].sort();
53513
53598
  throw new TemplatePassthroughManagerCopyError(
53514
- `Multiple passthrough copy files are trying to write to the same output file (${import_eleventy_utils41.TemplatePath.standardizeFilePath(dest)}). ${paths.map((p) => import_eleventy_utils41.TemplatePath.standardizeFilePath(p)).join(" and ")}`
53599
+ `Multiple passthrough copy files are trying to write to the same output file (${import_eleventy_utils42.TemplatePath.standardizeFilePath(dest)}). ${paths.map((p) => import_eleventy_utils42.TemplatePath.standardizeFilePath(p)).join(" and ")}`
53515
53600
  );
53516
53601
  } else {
53517
53602
  debug33(
@@ -53564,7 +53649,7 @@ var TemplatePassthroughManager = class {
53564
53649
  return changedFilePath;
53565
53650
  }
53566
53651
  let eligibleConfigPath = configPaths.find((configPath) => {
53567
- if (import_eleventy_utils41.TemplatePath.startsWithSubPath(changedFilePath, configPath.inputPath)) {
53652
+ if (import_eleventy_utils42.TemplatePath.startsWithSubPath(changedFilePath, configPath.inputPath)) {
53568
53653
  return true;
53569
53654
  }
53570
53655
  if (configPath.isDynamicPattern && isGlobMatch(changedFilePath, [configPath.inputPath])) {
@@ -53620,7 +53705,7 @@ var TemplatePassthroughManager = class {
53620
53705
  let entries = {};
53621
53706
  for (let entry of result) {
53622
53707
  for (let src in entry.map) {
53623
- let dest = import_eleventy_utils41.TemplatePath.stripLeadingSubPath(entry.map[src], this.outputDir);
53708
+ let dest = import_eleventy_utils42.TemplatePath.stripLeadingSubPath(entry.map[src], this.outputDir);
53624
53709
  entries["/" + encodeURI(dest)] = src;
53625
53710
  }
53626
53711
  }