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10/dist/index.cjs.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/@analys/table-init@0.4.10/dist/index.cjs.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","'use strict';\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\nvar veho = require('veho');\n\n/** @typedef {{head:*[],rows:*[][]}} TableObject */\n\n/**\n *\n * @param {*[]} head\n * @param {*[][]} rows\n * @returns {TableObject}\n */\n\nconst slice = ({\n  head,\n  rows\n}) => ({\n  head,\n  rows\n});\n/**\n *\n * @param {*[]} head\n * @param {*[][]} rows\n * @returns {TableObject}\n */\n\nconst shallow = ({\n  head,\n  rows\n}) => ({\n  head: head.slice(),\n  rows: rows.map(row => row.slice())\n});\n/**\n *\n * @param {*[]} head\n * @param {*[][]} rows\n * @returns {TableObject}\n */\n\nconst clone = ({\n  head,\n  rows\n}) => ({\n  head: head.slice(),\n  rows: veho.Mx.clone(rows)\n});\n\n/**\n * @typedef {{head:*[],rows:*[][]}} TableObject\n */\n\n/**\n *\n * @param {Object} o\n * @returns {TableObject}\n */\n\nconst matchSlice = (o = {}) => {\n  var _o$head, _o$rows;\n\n  const head = (_o$head = o.head) !== null && _o$head !== void 0 ? _o$head : o.banner,\n        rows = (_o$rows = o.rows) !== null && _o$rows !== void 0 ? _o$rows : o.matrix;\n  return {\n    head,\n    rows\n  };\n};\n/**\n *\n * @param {Object} o\n * @returns {TableObject}\n */\n\nconst matchShallow = (o = {}) => {\n  var _o$head2, _o$rows2;\n\n  const head = (_o$head2 = o.head) !== null && _o$head2 !== void 0 ? _o$head2 : o.banner,\n        rows = (_o$rows2 = o.rows) !== null && _o$rows2 !== void 0 ? _o$rows2 : o.matrix;\n  return {\n    head: head.slice(),\n    rows: rows.map(row => row.slice())\n  };\n};\n/**\n *\n * @param {Object} o\n * @returns {TableObject}\n */\n\nconst matchClone = (o = {}) => {\n  var _o$head3, _o$rows3;\n\n  const head = (_o$head3 = o.head) !== null && _o$head3 !== void 0 ? _o$head3 : o.banner,\n        rows = (_o$rows3 = o.rows) !== null && _o$rows3 !== void 0 ? _o$rows3 : o.matrix;\n  return {\n    head: head.slice(),\n    rows: veho.Mx.clone(rows)\n  };\n};\n\nexports.clone = clone;\nexports.matchClone = matchClone;\nexports.matchShallow = matchShallow;\nexports.matchSlice = matchSlice;\nexports.shallow = shallow;\nexports.slice = slice;\n"]}