"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 __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var dynamicId_exports = {};
__export(dynamicId_exports, {
  isDynamicId: () => isDynamicId
});
module.exports = __toCommonJS(dynamicId_exports);
function isDynamicId(id) {
  if (/^react-aria\d+/.test(id)) return true;
  if (/^mui-\d+/.test(id)) return true;
  if (/^(mat|cdk)-[a-z]+-\d+$/.test(id)) return true;
  if (/[-_]\d+$/.test(id)) return true;
  if (/\d{2,}[_-][a-zA-Z]/.test(id)) return true;
  if (/^\d+$/.test(id)) return true;
  if (/\d{4,}$/.test(id)) return true;
  if (/[-_][0-9a-f]{6,}$/i.test(id)) return true;
  const shortHexMatch = id.match(/[-_]([0-9a-f]{3,5})$/i);
  if (shortHexMatch && /[0-9]/.test(shortHexMatch[1])) return true;
  if (/[a-zA-Z][0-9]{3,}$/.test(id)) return true;
  if (id.includes(":")) return true;
  if (/^.+__search_[a-zA-Z0-9]{4,}$/.test(id)) return true;
  return false;
}
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
  isDynamicId
});
