Source: all.mjs

/**
 * @module kongUtil
 */
/**
 * Top-level-await is still experimental in webpack, due to [its doc](https://webpack.js.org/configuration/experiments/).
 * Therefore here we cannot import dynamically.
 *
 * And [it seems](https://stackoverflow.com/a/57580866/1998874) that
 * `export * from ...` does not re-export the default one,
 * so I have to import each sub-module once more
 * to have this module having its default export to everything.
 *
 * Well, maybe this file itself shall be dynamically created instead of manually maintained.
 */
import kongUtil from "./core.mjs";
import utilArray from "./array.mjs";
import utilAsync from "./async.mjs";
import utilDebug from "./debug.mjs";
import utilDom from "./dom.mjs";
import utilHtmlElem from "./html-elem.mjs";
import utilEvent from "./event.mjs";
import utilImage from "./image.mjs";
import utilObject from "./object.mjs";
import utilString from "./string.mjs";
import utilWeb from "./web.mjs";
import utilBootstrap from "./bootstrap.mjs";

export * from "./core.mjs";
export * from "./array.mjs";
export * from "./async.mjs";
export {
    $, $$, parseHTML, getNodes,
    isEventInElement,
    downloadURL, downloadData,
    setText,
    setAria,
    setAttributes,
    setAttributesInElement,
    createElementFromJsonML
} from "./dom.mjs";
export * from "./html-elem.mjs";
export * from "./debug.mjs";
export * from "./event.mjs";
export * from "./image.mjs";
export * from "./object.mjs";
export * from "./string.mjs";
export * from "./web.mjs";
export * from "./bootstrap.mjs";

/**
 * @func extendPrototype
 * @desc Add methods to native classes.
 */
export const extendPrototype = () => {
    utilArray.extendArrayPrototype();
    utilEvent.extendEventTargetPrototype();
    utilHtmlElem.extendElementPrototype();
};


Object.assign(kongUtil,
    utilArray,
    utilAsync,
    utilDom,
    utilHtmlElem,
    utilDebug,
    utilEvent,
    utilImage,
    utilObject,
    utilString,
    utilWeb,
    utilBootstrap,
    {extendPrototype}
);

export default kongUtil;