<!-- preamble start -->
<!DOCTYPE html> 
<html lang="en">
  <head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>tinytable_m4thvn8u3cwpmj8hiuwk</title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet">
  </head>
  <body>
<!-- preamble end -->

    <script>
      function styleCell_m4thvn8u3cwpmj8hiuwk(i, j, css_id) {
        var table = document.getElementById("tinytable_m4thvn8u3cwpmj8hiuwk");
        table.rows[i].cells[j].classList.add(css_id);
      }
      function insertSpanRow_evu8i6m1snsv5kmmasu3(i, colspan, content) {
        var table = document.getElementById('tinytable_m4thvn8u3cwpmj8hiuwk');
        var newRow = table.insertRow(i);
        var newCell = newRow.insertCell(0);
        newCell.setAttribute("colspan", colspan);
        // newCell.innerText = content;
        // this may be unsafe, but innerText does not interpret <br>
        newCell.innerHTML = content;
      }
      function spanCell_m4thvn8u3cwpmj8hiuwk(i, j, rowspan, colspan) {
        var table = document.getElementById("tinytable_m4thvn8u3cwpmj8hiuwk");
        const targetRow = table.rows[i];
        const targetCell = targetRow.cells[j];
        for (let r = 0; r < rowspan; r++) {
          // Only start deleting cells to the right for the first row (r == 0)
          if (r === 0) {
            // Delete cells to the right of the target cell in the first row
            for (let c = colspan - 1; c > 0; c--) {
              if (table.rows[i + r].cells[j + c]) {
                table.rows[i + r].deleteCell(j + c);
              }
            }
          }
          // For rows below the first, delete starting from the target column
          if (r > 0) {
            for (let c = colspan - 1; c >= 0; c--) {
              if (table.rows[i + r] && table.rows[i + r].cells[j]) {
                table.rows[i + r].deleteCell(j);
              }
            }
          }
        }
        // Set rowspan and colspan of the target cell
        targetCell.rowSpan = rowspan;
        targetCell.colSpan = colspan;
      }
window.addEventListener('load', function () { insertSpanRow_evu8i6m1snsv5kmmasu3(9, 5, 'World') });
window.addEventListener('load', function () { insertSpanRow_evu8i6m1snsv5kmmasu3(4, 5, 'Hello') });
window.addEventListener('load', function () { styleCell_m4thvn8u3cwpmj8hiuwk(0, 0, 'tinytable_css_idvaw2hfkppewiyp5c5w5m') })
window.addEventListener('load', function () { styleCell_m4thvn8u3cwpmj8hiuwk(0, 1, 'tinytable_css_id7eqhzcv7sizz32zmnli7') })
window.addEventListener('load', function () { styleCell_m4thvn8u3cwpmj8hiuwk(0, 2, 'tinytable_css_id7eqhzcv7sizz32zmnli7') })
window.addEventListener('load', function () { styleCell_m4thvn8u3cwpmj8hiuwk(0, 3, 'tinytable_css_idvaw2hfkppewiyp5c5w5m') })
window.addEventListener('load', function () { styleCell_m4thvn8u3cwpmj8hiuwk(0, 4, 'tinytable_css_idvaw2hfkppewiyp5c5w5m') })
window.addEventListener('load', function () { styleCell_m4thvn8u3cwpmj8hiuwk(1, 0, 'tinytable_css_id5ksktliasr5ex8ow1hyj') })
window.addEventListener('load', function () { styleCell_m4thvn8u3cwpmj8hiuwk(1, 1, 'tinytable_css_id5ksktliasr5ex8ow1hyj') })
window.addEventListener('load', function () { styleCell_m4thvn8u3cwpmj8hiuwk(1, 2, 'tinytable_css_id5ksktliasr5ex8ow1hyj') })
window.addEventListener('load', function () { styleCell_m4thvn8u3cwpmj8hiuwk(1, 3, 'tinytable_css_id5ksktliasr5ex8ow1hyj') })
window.addEventListener('load', function () { styleCell_m4thvn8u3cwpmj8hiuwk(1, 4, 'tinytable_css_id5ksktliasr5ex8ow1hyj') })
window.addEventListener('load', function () { styleCell_m4thvn8u3cwpmj8hiuwk(2, 0, 'tinytable_css_idjelmvubahbw3b3gkec4r') })
window.addEventListener('load', function () { styleCell_m4thvn8u3cwpmj8hiuwk(3, 0, 'tinytable_css_idjelmvubahbw3b3gkec4r') })
window.addEventListener('load', function () { styleCell_m4thvn8u3cwpmj8hiuwk(5, 0, 'tinytable_css_idjelmvubahbw3b3gkec4r') })
window.addEventListener('load', function () { styleCell_m4thvn8u3cwpmj8hiuwk(6, 0, 'tinytable_css_idjelmvubahbw3b3gkec4r') })
window.addEventListener('load', function () { styleCell_m4thvn8u3cwpmj8hiuwk(7, 0, 'tinytable_css_idjelmvubahbw3b3gkec4r') })
window.addEventListener('load', function () { styleCell_m4thvn8u3cwpmj8hiuwk(8, 0, 'tinytable_css_idjelmvubahbw3b3gkec4r') })
window.addEventListener('load', function () { styleCell_m4thvn8u3cwpmj8hiuwk(9, 0, 'tinytable_css_idjelmvubahbw3b3gkec4r') })
window.addEventListener('load', function () { styleCell_m4thvn8u3cwpmj8hiuwk(11, 0, 'tinytable_css_idjelmvubahbw3b3gkec4r') })
window.addEventListener('load', function () { styleCell_m4thvn8u3cwpmj8hiuwk(12, 0, 'tinytable_css_idjelmvubahbw3b3gkec4r') })
window.addEventListener('load', function () { styleCell_m4thvn8u3cwpmj8hiuwk(13, 0, 'tinytable_css_idjelmvubahbw3b3gkec4r') })
    </script>

    <style>
    .table td.tinytable_css_idvaw2hfkppewiyp5c5w5m, .table th.tinytable_css_idvaw2hfkppewiyp5c5w5m {  text-align: center; }
    .table td.tinytable_css_id7eqhzcv7sizz32zmnli7, .table th.tinytable_css_id7eqhzcv7sizz32zmnli7 {  text-align: center;  border-bottom: solid 0.05em #d3d8dc; }
    .table td.tinytable_css_id5ksktliasr5ex8ow1hyj, .table th.tinytable_css_id5ksktliasr5ex8ow1hyj {  border-bottom: solid 0.1em #d3d8dc; }
    .table td.tinytable_css_idjelmvubahbw3b3gkec4r, .table th.tinytable_css_idjelmvubahbw3b3gkec4r { padding-left: 1em; }
    </style>
    <div class="container">
      <table class="table table-borderless" id="tinytable_m4thvn8u3cwpmj8hiuwk" style="width: auto; margin-left: auto; margin-right: auto;" data-quarto-disable-processing='true'>
        <thead>
<tr>
<th scope="col" align="center" colspan=1> </th>
<th scope="col" align="center" colspan=2>Foo</th>
<th scope="col" align="center" colspan=2>Bar</th>
</tr>
        
              <tr>
                <th scope="col">mpg</th>
                <th scope="col">cyl</th>
                <th scope="col">disp</th>
                <th scope="col">hp</th>
                <th scope="col">drat</th>
              </tr>
        </thead>
        
        <tbody>
                <tr>
                  <td>21.0</td>
                  <td>6</td>
                  <td>160.0</td>
                  <td>110</td>
                  <td>3.90</td>
                </tr>
                <tr>
                  <td>21.0</td>
                  <td>6</td>
                  <td>160.0</td>
                  <td>110</td>
                  <td>3.90</td>
                </tr>
                <tr>
                  <td>22.8</td>
                  <td>4</td>
                  <td>108.0</td>
                  <td> 93</td>
                  <td>3.85</td>
                </tr>
                <tr>
                  <td>21.4</td>
                  <td>6</td>
                  <td>258.0</td>
                  <td>110</td>
                  <td>3.08</td>
                </tr>
                <tr>
                  <td>18.7</td>
                  <td>8</td>
                  <td>360.0</td>
                  <td>175</td>
                  <td>3.15</td>
                </tr>
                <tr>
                  <td>18.1</td>
                  <td>6</td>
                  <td>225.0</td>
                  <td>105</td>
                  <td>2.76</td>
                </tr>
                <tr>
                  <td>14.3</td>
                  <td>8</td>
                  <td>360.0</td>
                  <td>245</td>
                  <td>3.21</td>
                </tr>
                <tr>
                  <td>24.4</td>
                  <td>4</td>
                  <td>146.7</td>
                  <td> 62</td>
                  <td>3.69</td>
                </tr>
                <tr>
                  <td>22.8</td>
                  <td>4</td>
                  <td>140.8</td>
                  <td> 95</td>
                  <td>3.92</td>
                </tr>
                <tr>
                  <td>19.2</td>
                  <td>6</td>
                  <td>167.6</td>
                  <td>123</td>
                  <td>3.92</td>
                </tr>
        </tbody>
      </table>
    </div>
<!-- postamble start -->
  </body>

</html>
<!-- postamble end -->
<!-- hack to avoid NA insertion in last line -->
