"use strict";
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
  for (var name in all)
    __defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
  if (from && typeof from === "object" || typeof from === "function") {
    for (let key of __getOwnPropNames(from))
      if (!__hasOwnProp.call(to, key) && key !== except)
        __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
  }
  return to;
};
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var index_exports = {};
__export(index_exports, {
  registerBuiltins: () => registerBuiltins
});
module.exports = __toCommonJS(index_exports);
var import_tokkit_core = require("@cyberlangke/tokkit-core");
__reExport(index_exports, require("@cyberlangke/tokkit-core"), module.exports);
const BUILTIN_FAMILIES = [
  {
    family: "mistral-7b-v0.1",
    aliases: ["mistral_7b_v0_1"],
    models: [
      "mistralai/Mistral-7B-v0.1",
      "mistralai/Mistral-7B-Instruct-v0.1",
      "mistralai/Mistral-7B-Instruct-v0.2",
      "mistralai/Mixtral-8x7B-Instruct-v0.1"
    ],
    modulePath: "./generated/mistral_7b_v0_1.js"
  },
  {
    family: "mistral-7b-v0.3",
    aliases: ["mistral_7b_v0_3"],
    models: ["mistralai/Mistral-7B-v0.3", "mistralai/Mistral-7B-Instruct-v0.3"],
    modulePath: "./generated/mistral_7b_v0_3.js"
  },
  {
    family: "mixtral-8x7b",
    aliases: ["mixtral_8x7b"],
    models: ["mistralai/Mixtral-8x7B-v0.1"],
    modulePath: "./generated/mixtral_8x7b.js"
  },
  {
    family: "ministral-8b",
    aliases: ["ministral_8b"],
    models: ["mistralai/Ministral-8B-Instruct-2410"],
    modulePath: "./generated/ministral_8b.js"
  },
  {
    family: "devstral-small-2",
    aliases: ["devstral_small_2"],
    models: ["mistralai/Devstral-Small-2-24B-Instruct-2512"],
    modulePath: "./generated/devstral_small_2.js"
  },
  {
    family: "mistral-small-3.1",
    aliases: ["mistral_small_3_1"],
    models: ["mistralai/Mistral-Small-3.1-24B-Instruct-2503"],
    modulePath: "./generated/mistral_small_3_1.js"
  }
];
function registerBuiltins() {
  for (const spec of BUILTIN_FAMILIES) {
    (0, import_tokkit_core.registerTokenizerFamily)({
      family: spec.family,
      aliases: [...spec.aliases],
      models: [...spec.models],
      load: () => loadFamilyAsset(spec.modulePath)
    });
  }
}
async function loadFamilyAsset(modulePath) {
  const module2 = await import(modulePath);
  return (0, import_tokkit_core.unpackPackedAsset)(module2.default);
}
registerBuiltins();
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
  registerBuiltins,
  ...require("@cyberlangke/tokkit-core")
});
