"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 extract_exports = {};
__export(extract_exports, {
  extract: () => extract
});
module.exports = __toCommonJS(extract_exports);
var import_function = require("fp-ts-esm/function");
var import_modifier_infra = require("./../../ricos-content/lib/modifier-infra.js");
const nodesAccessor = (node) => node.content || [];
const getRootNode = (content) => Array.isArray(content) ? {
  type: "root",
  content
} : content;
const extract = (0, import_function.flow)(
  getRootNode,
  (0, import_modifier_infra.getExtractor)(nodesAccessor)
);
//# sourceMappingURL=extract.js.map
