/*! * Bootstrap Native Scrollspy v5.1.10 (https://thednp.github.io/bootstrap.native/) * Copyright 2026 © thednp * Licensed under MIT (https://github.com/thednp/bootstrap.native/blob/master/LICENSE) */ "use strict"; import { Data, ObjectKeys, addClass, closest, createCustomEvent, dispatchEvent, getAttribute, getBoundingClientRect, getDocument, getDocumentElement, getElementById, getElementsByTagName, getInstance, hasClass, isElement, isString, mouseclickEvent, normalizeOptions, querySelector, removeClass } from "@thednp/shorty"; import PositionObserver from "@thednp/position-observer"; import { addListener, removeListener } from "@thednp/event-listener"; //#region src/strings/activeClass.ts /** * Global namespace for most components active class. */ const activeClass = "active"; //#endregion //#region src/strings/scrollspyString.ts /** @type {string} */ const scrollspyString = "scrollspy"; //#endregion //#region src/strings/scrollspyComponent.ts /** @type {string} */ const scrollspyComponent = "ScrollSpy"; //#endregion //#region src/util/isDisabled.ts /** * Check if interactive element is disabled. * @param target either a `