{# Hidden anchor: jump target for the disclosures box. The offset below keeps the sticky header from covering the box after an anchor jump. #}
<div class="mcu-disclosure-anchor" style="height: 0; overflow: hidden; visibility: hidden;">
     
  </div>
{% require_css %}
<style>
  .mcu-disclosure-anchor,
  .mcu-disclosure-anchor * { scroll-margin-top: calc(var(--mcu-anchor-offset, 100px) + 12px); }
</style>
{% end_require_css %}
{% require_js %}
<script>
(function () {
  if (window.mcuAnchorOffsetReady) return;
  window.mcuAnchorOffsetReady = true;
  var root = document.documentElement;
  var header = document.querySelector('header.header');
  if (!header) return;

  // Full height of the sticky header (top bar + main bar), measured from the page so it follows any breakpoint.
  function update() {
    var top = header.querySelector('.top-part');
    var bottom = header.querySelector('.bottom-part');
    if (!bottom) return;
    var h = (top ? top.offsetHeight : 0) + bottom.offsetHeight;
    if (h) root.style.setProperty('--mcu-anchor-offset', h + 'px');
  }

  // If the page opened with #anchor in the URL, re-land once the real offset is known.
  function relandOnHash() {
    var id = decodeURIComponent(location.hash.slice(1));
    if (!id) return;
    var el = document.getElementById(id);
    if (el && el.closest('.mcu-disclosure-anchor')) el.scrollIntoView();
  }

  update();
  window.addEventListener('resize', update);
  window.addEventListener('load', function () { update(); relandOnHash(); });
  if (window.ResizeObserver) new ResizeObserver(update).observe(header);
  new MutationObserver(update).observe(document.body, { attributes: true, attributeFilter: ['class'] });
})();
</script>
{% end_require_js %}

{% set depTableId = '412552756' %}

{# Page-specific footnote markers (repeater): each marker is a superscript placed at the start of paragraph number "line" of disclosure number "target". No new line, no new text. #}
{% macro markerData(markers, target) %}
  {%- for m in markers -%}
    {%- if (m.target|int) == target and (m.line|int) > 0 and (m.marker|trim) != '' -%}:;{%- endif -%}
  {%- endfor -%}
{% endmacro %}

{% set fnData1 = '' %}{% if module.footnote_markers_toggle %}{% set fnData1 = markerData(module.footnote_markers, 1) | trim %}{% endif %}
{% set fnData2 = '' %}{% if module.footnote_markers_toggle %}{% set fnData2 = markerData(module.footnote_markers, 2) | trim %}{% endif %}
{% set fnData3 = '' %}{% if module.footnote_markers_toggle %}{% set fnData3 = markerData(module.footnote_markers, 3) | trim %}{% endif %}
{% set fnData4 = '' %}{% if module.footnote_markers_toggle %}{% set fnData4 = markerData(module.footnote_markers, 4) | trim %}{% endif %}

{% set title1 = '' %}{% set html1 = '' %}{% set key1 = '' %}{% set dep1 = false %}
{% set title2 = '' %}{% set html2 = '' %}{% set key2 = '' %}{% set dep2 = false %}
{% set title3 = '' %}{% set html3 = '' %}{% set key3 = '' %}{% set dep3 = false %}
{% set title4 = '' %}{% set html4 = '' %}{% set key4 = '' %}{% set dep4 = false %}

{% if module.table_id_1 and module.row_id_1 %}
  {% set row1 = hubdb_table_row(module.table_id_1, module.row_id_1) %}
  {% set title1 = row1.disclosure_title %}
  {% set html1 = row1.disclosure_html %}
  {% set key1 = (module.table_id_1|string|trim) + '|' + (module.row_id_1|string|trim) %}
  {% set dep1 = ((module.table_id_1|string|trim) == depTableId) %}
{% endif %}
{% if module.include_additional_table_disclosures and module.table_id_2 and module.row_id_2 %}
  {% set row2 = hubdb_table_row(module.table_id_2, module.row_id_2) %}
  {% set title2 = row2.disclosure_title %}
  {% set html2 = row2.disclosure_html %}
  {% set key2 = (module.table_id_2|string|trim) + '|' + (module.row_id_2|string|trim) %}
  {% set dep2 = ((module.table_id_2|string|trim) == depTableId) %}
{% endif %}
{% if module.include_additional_table_disclosures and module.table_id_3 and module.row_id_3 %}
  {% set row3 = hubdb_table_row(module.table_id_3, module.row_id_3) %}
  {% set title3 = row3.disclosure_title %}
  {% set html3 = row3.disclosure_html %}
  {% set key3 = (module.table_id_3|string|trim) + '|' + (module.row_id_3|string|trim) %}
  {% set dep3 = ((module.table_id_3|string|trim) == depTableId) %}
{% endif %}
{% if module.include_additional_table_disclosures and module.table_id_4 and module.row_id_4 %}
  {% set row4 = hubdb_table_row(module.table_id_4, module.row_id_4) %}
  {% set title4 = row4.disclosure_title %}
  {% set html4 = row4.disclosure_html %}
  {% set key4 = (module.table_id_4|string|trim) + '|' + (module.row_id_4|string|trim) %}
  {% set dep4 = ((module.table_id_4|string|trim) == depTableId) %}
{% endif %}

{# Each row shows its own disclosure. Deposit Rates rows: one per disclosure_title. Other tables: skip only if the same row is repeated. #}
{% set show1 = (html1|trim != '') %}

{% set show2 = (html2|trim != '') %}
{% if show2 %}
  {% if dep2 %}
    {% if title2 and show1 and dep1 and title2 == title1 %}{% set show2 = false %}{% endif %}
  {% elif show1 and key2 == key1 %}
    {% set show2 = false %}
  {% endif %}
{% endif %}

{% set show3 = (html3|trim != '') %}
{% if show3 %}
  {% if dep3 %}
    {% if title3 and ((show1 and dep1 and title3 == title1) or (show2 and dep2 and title3 == title2)) %}{% set show3 = false %}{% endif %}
  {% elif (show1 and key3 == key1) or (show2 and key3 == key2) %}
    {% set show3 = false %}
  {% endif %}
{% endif %}

{% set show4 = (html4|trim != '') %}
{% if show4 %}
  {% if dep4 %}
    {% if title4 and ((show1 and dep1 and title4 == title1) or (show2 and dep2 and title4 == title2) or (show3 and dep3 and title4 == title3)) %}{% set show4 = false %}{% endif %}
  {% elif (show1 and key4 == key1) or (show2 and key4 == key2) or (show3 and key4 == key3) %}
    {% set show4 = false %}
  {% endif %}
{% endif %}

{# Hide Disclosure Title: only honored when exactly one HubDB disclosure is shown #}
{% set hubdbCount = 0 %}
{% if show1 %}{% set hubdbCount = hubdbCount + 1 %}{% endif %}
{% if show2 %}{% set hubdbCount = hubdbCount + 1 %}{% endif %}
{% if show3 %}{% set hubdbCount = hubdbCount + 1 %}{% endif %}
{% if show4 %}{% set hubdbCount = hubdbCount + 1 %}{% endif %}
{% set hideHeading = module.hide_disclosure_title and hubdbCount == 1 %}

{% set manualOn = module.manual_disclosure_toggle and module.manual_disclosure_approval and (module.manual_disclosure_reason|trim != '') and (module.disclosures_content|trim != '') %}
{% set manualAbove = manualOn and module.manual_disclosure_position == 'first' %}
{% set manualBelow = manualOn and module.manual_disclosure_position != 'first' %}

{% set firstShown = 0 %}
{% if show1 %}{% set firstShown = 1 %}{% elif show2 %}{% set firstShown = 2 %}{% elif show3 %}{% set firstShown = 3 %}{% elif show4 %}{% set firstShown = 4 %}{% endif %}
{% set lastShown = 0 %}
{% if show4 %}{% set lastShown = 4 %}{% elif show3 %}{% set lastShown = 3 %}{% elif show2 %}{% set lastShown = 2 %}{% elif show1 %}{% set lastShown = 1 %}{% endif %}

{% set anyHubdb = module.table_id_1 or (module.include_additional_table_disclosures and (module.table_id_2 or module.table_id_3 or module.table_id_4)) %}
{% set legacyOn = (not module.manual_disclosure_toggle) and (not anyHubdb) and (module.disclosures_content|trim != '') %}

<div class="disclosures-wrapper">
<div class="container disclosures-section">
  <div class="disclosures-header">
  <span class="disclosures-title"></span>
  <button class="disclosures-show-all" aria-expanded="false">+ Show All</button>
</div>
  <div class="disclosures-box">
    <div class="disclosures-scroll">
      {% if manualAbove %}
      <!-- manual disclosure | page published:  | approved text:  -->
      <div class="disclosure-item"></div>
      {% endif %}
      {% if show1 %}<div class="disclosure-item{% if manualAbove and firstShown == 1 %} disclosure-after-manual{% endif %}{% if manualBelow and lastShown == 1 %} disclosure-before-manual{% endif %}"{% if fnData1 %} data-fn=""{% endif %}>{% set row = row1 %}{% set allRows = hubdb_table_rows(module.table_id_1) %}{% if title1 and not hideHeading %}<div class="disclosure-heading"></div>{% endif %}</div>{% endif %}
      {% if show2 %}<div class="disclosure-item{% if manualAbove and firstShown == 2 %} disclosure-after-manual{% endif %}{% if manualBelow and lastShown == 2 %} disclosure-before-manual{% endif %}"{% if fnData2 %} data-fn=""{% endif %}>{% set row = row2 %}{% set allRows = hubdb_table_rows(module.table_id_2) %}{% if title2 and not hideHeading and not (show1 and title2 == title1) %}<div class="disclosure-heading"></div>{% endif %}</div>{% endif %}
      {% if show3 %}<div class="disclosure-item{% if manualAbove and firstShown == 3 %} disclosure-after-manual{% endif %}{% if manualBelow and lastShown == 3 %} disclosure-before-manual{% endif %}"{% if fnData3 %} data-fn=""{% endif %}>{% set row = row3 %}{% set allRows = hubdb_table_rows(module.table_id_3) %}{% if title3 and not hideHeading and not ((show1 and title3 == title1) or (show2 and title3 == title2)) %}<div class="disclosure-heading"></div>{% endif %}</div>{% endif %}
      {% if show4 %}<div class="disclosure-item{% if manualAbove and firstShown == 4 %} disclosure-after-manual{% endif %}{% if manualBelow and lastShown == 4 %} disclosure-before-manual{% endif %}"{% if fnData4 %} data-fn=""{% endif %}>{% set row = row4 %}{% set allRows = hubdb_table_rows(module.table_id_4) %}{% if title4 and not hideHeading and not ((show1 and title4 == title1) or (show2 and title4 == title2) or (show3 and title4 == title3)) %}<div class="disclosure-heading"></div>{% endif %}</div>{% endif %}
      {% if manualBelow %}
      <!-- manual disclosure | page published:  | approved text:  -->
      <div class="disclosure-item"></div>
      {% endif %}
      {% if legacyOn %}
      <!-- legacy manual disclosure (grandfathered, not yet migrated) -->
      <div class="disclosure-item"></div>
      {% endif %}
    </div>
    <div class="disclosures-scroll-hint">↓ scroll for more</div>
  </div>
</div>
</div>

{% require_css %}
<style>
  {% scope_css %}
  .disclosures-wrapper {
    width: 100%;
    background-color: rgba(, );
  }
  /* Tighter "scroll for more" row: smaller hint line and less padding under the scrolling text */
  .disclosures-wrapper .disclosures-scroll {
    padding-bottom: 4px;
  }
  .disclosures-wrapper .disclosures-scroll-hint {
    line-height: 1;
    padding: 0 12px 4px;
  }
  /* Same content width as the disclosure boxes attached to the other modules (container max-width minus 20px side padding) */
  .disclosures-wrapper .container.disclosures-section {
    padding: 12px 20px !important;
  }
  @media (max-width: 767px) {
    .disclosures-wrapper .container.disclosures-section {
      padding: 24px 16px !important;
    }
  }
  {% end_scope_css %}
</style>
{% end_require_css %}
