diff --git a/.github/workflows/nvl-entrypoint-test.yml b/.github/workflows/nvl-entrypoint-test.yml index 0568c68..e8944dc 100644 --- a/.github/workflows/nvl-entrypoint-test.yml +++ b/.github/workflows/nvl-entrypoint-test.yml @@ -28,7 +28,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: - node-version: "24.x" + node-version: "lts/*" - name: Setup run: yarn - name: Build diff --git a/changelog.md b/changelog.md index f33527e..ec98836 100644 --- a/changelog.md +++ b/changelog.md @@ -2,13 +2,14 @@ ## Breaking changes - ## New features - ## Bug fixes +- Fixed a bug with the theme detection inn VSCode. + ## Improvements +- Allow setting the theme manually in `VG.render(theme="light")` and `VG.render_widget(theme="dark")`. ## Other changes diff --git a/js-applet/src/graph-widget.tsx b/js-applet/src/graph-widget.tsx index 3a7f00e..3f7b75f 100644 --- a/js-applet/src/graph-widget.tsx +++ b/js-applet/src/graph-widget.tsx @@ -1,119 +1,132 @@ -import { createRender, useModelState } from "@anywidget/react"; +import {createRender, useModelState} from "@anywidget/react"; import "@neo4j-ndl/base/lib/neo4j-ds-styles.css"; -import { GraphVisualization } from "@neo4j-ndl/react-graph"; -import type { Layout, NvlOptions } from "@neo4j-nvl/base"; -import { useEffect, useMemo, useState } from "react"; +import {GraphVisualization} from "@neo4j-ndl/react-graph"; +import type {Layout, NvlOptions} from "@neo4j-nvl/base"; +import {useEffect, useMemo, useState} from "react"; import { - SerializedNode, - SerializedRelationship, - transformNodes, - transformRelationships, + SerializedNode, + SerializedRelationship, + transformNodes, + transformRelationships, } from "./data-transforms"; -import { GraphErrorBoundary } from "./graph-error-boundary"; +import {GraphErrorBoundary} from "./graph-error-boundary"; export type Theme = "dark" | "light" | "auto"; export type GraphOptions = { - layout?: Layout; - nvlOptions?: Partial; - zoom?: number; - pan?: { x: number; y: number }; - layoutOptions?: Record; + layout?: Layout; + nvlOptions?: Partial; + zoom?: number; + pan?: { x: number; y: number }; + layoutOptions?: Record; }; export type WidgetData = { - nodes: SerializedNode[]; - relationships: SerializedRelationship[]; - options: GraphOptions; - height: string; - width: string; - theme: Theme; + nodes: SerializedNode[]; + relationships: SerializedRelationship[]; + options: GraphOptions; + height: string; + width: string; + theme: Theme; }; function detectTheme(): "light" | "dark" { - const backgroundColorString = window - .getComputedStyle(document.body, null) - .getPropertyValue("background-color"); - const colorsArray = backgroundColorString.match(/\d+/g); - if (!colorsArray || colorsArray.length < 3) { - return "light"; - } - const brightness = - Number(colorsArray[0]) * 0.2126 + - Number(colorsArray[1]) * 0.7152 + - Number(colorsArray[2]) * 0.0722; - return brightness < 128 ? "dark" : "light"; + if (document.body.classList.contains("vscode-light")) { + return "light"; + } + if (document.body.classList.contains("vscode-dark")) { + return "dark"; + } + + const backgroundColorString = window + .getComputedStyle(document.body, null) + .getPropertyValue("background-color"); + const colorsArray = backgroundColorString.match(/\d+/g); + if (!colorsArray || colorsArray.length < 3) { + return "light"; + } + const brightness = + Number(colorsArray[0]) * 0.2126 + + Number(colorsArray[1]) * 0.7152 + + Number(colorsArray[2]) * 0.0722; + + // VSCode reports: rgba(0, 0, 0, 0) as the background color independent of the theme, default to light here + if (brightness === 0 && colorsArray.length > 3 && colorsArray[3] === "0") { + return "light"; + } + + return brightness < 128 ? "dark" : "light"; } function useTheme(theme: Theme) { - useEffect(() => { - const resolved = theme === "auto" ? detectTheme() : theme; - document.documentElement.className = `ndl-theme-${resolved}`; - }, [theme]); + useEffect(() => { + const resolved = theme === "auto" ? detectTheme() : theme; + document.documentElement.className = `ndl-theme-${resolved}`; + }, [theme]); } function GraphWidget() { - const [nodes] = useModelState("nodes"); - const [relationships] = - useModelState("relationships"); - const [options] = useModelState("options"); - const [height] = useModelState("height"); - const [width] = useModelState("width"); - const [theme] = useModelState("theme"); - - useTheme(theme ?? "auto"); - - const { layout, nvlOptions, zoom, pan, layoutOptions } = options ?? {}; - const [neoNodes, neoRelationships] = useMemo( - () => [ - transformNodes(nodes ?? []), - transformRelationships(relationships ?? []), - ], - [nodes, relationships], - ); - - const nvlOptionsWithoutWorkers = useMemo( - () => ({ - ...nvlOptions, - minZoom: 0, - maxZoom: 1000, - disableWebWorkers: true, - }), - [nvlOptions], - ); - const [isSidePanelOpen, setIsSidePanelOpen] = useState(false); - const [sidePanelWidth, setSidePanelWidth] = useState(300); - - return ( -
- , - }} - /> -
- ); + const [nodes] = useModelState("nodes"); + const [relationships] = + useModelState("relationships"); + const [options] = useModelState("options"); + const [height] = useModelState("height"); + const [width] = useModelState("width"); + const [theme] = useModelState("theme"); + + useTheme(theme ?? "auto"); + + const {layout, nvlOptions, zoom, pan, layoutOptions} = options ?? {}; + const [neoNodes, neoRelationships] = useMemo( + () => [ + transformNodes(nodes ?? []), + transformRelationships(relationships ?? []), + ], + [nodes, relationships], + ); + + const nvlOptionsWithoutWorkers = useMemo( + () => ({ + ...nvlOptions, + minZoom: 0, + maxZoom: 1000, + disableWebWorkers: true, + }), + [nvlOptions], + ); + const [isSidePanelOpen, setIsSidePanelOpen] = useState(false); + const [sidePanelWidth, setSidePanelWidth] = useState(300); + + return ( +
+ , + }} + /> +
+ ); } function GraphWidgetWithErrorBoundary() { - return ( - - - - ); + return ( + + + + ); } const render = createRender(GraphWidgetWithErrorBoundary); -export default { render }; +export default {render}; diff --git a/js-applet/yarn.lock b/js-applet/yarn.lock index 13a802c..922cb6b 100644 --- a/js-applet/yarn.lock +++ b/js-applet/yarn.lock @@ -613,7 +613,7 @@ dependencies: "@floating-ui/utils" "^0.2.10" -"@floating-ui/dom@^1.0.1", "@floating-ui/dom@^1.7.4", "@floating-ui/dom@^1.7.5": +"@floating-ui/dom@^1.0.1", "@floating-ui/dom@^1.7.5": version "1.7.5" resolved "https://registry.yarnpkg.com/@floating-ui/dom/-/dom-1.7.5.tgz#60bfc83a4d1275b2a90db76bf42ca2a5f2c231c2" integrity sha512-N0bD2kIPInNHUHehXhMke1rBGs1dwqvC9O9KYMyyjK7iXt7GAhnro7UlcuYcGdS/yYOlq0MAVgrow8IbWJwyqg== @@ -621,26 +621,19 @@ "@floating-ui/core" "^1.7.4" "@floating-ui/utils" "^0.2.10" -"@floating-ui/react-dom@2.1.6": - version "2.1.6" - resolved "https://registry.yarnpkg.com/@floating-ui/react-dom/-/react-dom-2.1.6.tgz#189f681043c1400561f62972f461b93f01bf2231" - integrity sha512-4JX6rEatQEvlmgU80wZyq9RT96HZJa88q8hp0pBd+LrczeDI4o6uA2M+uvxngVHo4Ihr8uibXxH6+70zhAFrVw== - dependencies: - "@floating-ui/dom" "^1.7.4" - -"@floating-ui/react-dom@^2.1.6", "@floating-ui/react-dom@^2.1.7": +"@floating-ui/react-dom@2.1.7", "@floating-ui/react-dom@^2.1.7": version "2.1.7" resolved "https://registry.yarnpkg.com/@floating-ui/react-dom/-/react-dom-2.1.7.tgz#529475cc16ee4976ba3387968117e773d9aa703e" integrity sha512-0tLRojf/1Go2JgEVm+3Frg9A3IW8bJgKgdO0BN5RkF//ufuz2joZM63Npau2ff3J6lUVYgDSNzNkR+aH3IVfjg== dependencies: "@floating-ui/dom" "^1.7.5" -"@floating-ui/react@0.27.16": - version "0.27.16" - resolved "https://registry.yarnpkg.com/@floating-ui/react/-/react-0.27.16.tgz#6e485b5270b7a3296fdc4d0faf2ac9abf955a2f7" - integrity sha512-9O8N4SeG2z++TSM8QA/KTeKFBVCNEz/AGS7gWPJf6KFRzmRWixFRnCnkPHRDwSVZW6QPDO6uT0P2SpWNKCc9/g== +"@floating-ui/react@0.27.17": + version "0.27.17" + resolved "https://registry.yarnpkg.com/@floating-ui/react/-/react-0.27.17.tgz#f1d74e01cf10016825a4167b3b0139a4d5af118a" + integrity sha512-LGVZKHwmWGg6MRHjLLgsfyaX2y2aCNgnD1zT/E6B+/h+vxg+nIJUqHPAlTzsHDyqdgEpJ1Np5kxWuFEErXzoGg== dependencies: - "@floating-ui/react-dom" "^2.1.6" + "@floating-ui/react-dom" "^2.1.7" "@floating-ui/utils" "^0.2.10" tabbable "^6.0.0" @@ -822,22 +815,22 @@ integrity sha512-e6LK0H7uQj56F7lbTLTdQDlKgvCs8XE3I7zMx8Itt+qzMq5QNcHQ7OU7RU9x7w7EzNwWjeMBry3AT0PtMaCHHA== "@neo4j-ndl/react-graph@^1.2.8": - version "1.2.19" - resolved "https://registry.yarnpkg.com/@neo4j-ndl/react-graph/-/react-graph-1.2.19.tgz#f50667bfe5647065ad3f91fae0244322f3681bf3" - integrity sha512-RPf3gq9ACU3YHf2FnezrCX9pALxJe8Txqcf3Vf4wMfaic+evC5gg+AFKZxsl69xNyZ2l65/v18pawxY7eJ5iQQ== + version "1.2.20" + resolved "https://registry.yarnpkg.com/@neo4j-ndl/react-graph/-/react-graph-1.2.20.tgz#d8454b6014c57c77d582a441dd92a912398f2476" + integrity sha512-ptLMNaKHcFDXZECZcVfSoZ4Xc7+mjGEs66SHrsrr4UboHelMAU9/lBQZIXXQ7grNg6cesHRJ2ULdU0E/Vnu0PQ== dependencies: classnames "2.5.1" re-resizable "6.11.2" "@neo4j-ndl/react@^4.7.3": - version "4.9.1" - resolved "https://registry.yarnpkg.com/@neo4j-ndl/react/-/react-4.9.1.tgz#fc980b9a3b2d983e14561bda6521d2edcad3386d" - integrity sha512-EQrHZHwQjfk/ENjo4DPR4J7Aw9oBF5CBtYDBbgcO0jbjzaNC30FjQhv9dfS9VnOixYQQ/UxRIQGa+1k6tpsYpA== + version "4.9.2" + resolved "https://registry.yarnpkg.com/@neo4j-ndl/react/-/react-4.9.2.tgz#c8ac8c88c5d176162383eba36ea8d8b84b84f0e6" + integrity sha512-fFJagmWp1zPDmVO+2mJhxvrFmTYxYk6HrOE1bo+gN8mLyCxgYFTEc/6z3k81u/8I+Krn0iEuBMDf5Zd6MUChoQ== dependencies: "@dnd-kit/core" "6.3.1" "@dnd-kit/sortable" "10.0.0" - "@floating-ui/react" "0.27.16" - "@floating-ui/react-dom" "2.1.6" + "@floating-ui/react" "0.27.17" + "@floating-ui/react-dom" "2.1.7" "@heroicons/react" "2.2.0" "@neo4j-devtools/word-color" "0.0.8" "@uiw/react-color" "2.8.0" @@ -2032,130 +2025,130 @@ resolved "https://registry.yarnpkg.com/@rolldown/pluginutils/-/pluginutils-1.0.0-beta.27.tgz#47d2bf4cef6d470b22f5831b420f8964e0bf755f" integrity sha512-+d0F4MKMCbeVUJwG96uQ4SgAznZNSq93I3V+9NHA4OpvqG8mRCpGdKmK8l/dl02h2CCDHwW2FqilnTyDcAnqjA== -"@rollup/rollup-android-arm-eabi@4.58.0": - version "4.58.0" - resolved "https://registry.yarnpkg.com/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.58.0.tgz#4cda52aeff1d38539ff823b371dfe85064c1252e" - integrity sha512-mr0tmS/4FoVk1cnaeN244A/wjvGDNItZKR8hRhnmCzygyRXYtKF5jVDSIILR1U97CTzAYmbgIj/Dukg62ggG5w== - -"@rollup/rollup-android-arm64@4.58.0": - version "4.58.0" - resolved "https://registry.yarnpkg.com/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.58.0.tgz#ceffd87180d55701fb362c8fda9a380d64976c9e" - integrity sha512-+s++dbp+/RTte62mQD9wLSbiMTV+xr/PeRJEc/sFZFSBRlHPNPVaf5FXlzAL77Mr8FtSfQqCN+I598M8U41ccQ== - -"@rollup/rollup-darwin-arm64@4.58.0": - version "4.58.0" - resolved "https://registry.yarnpkg.com/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.58.0.tgz#fe0e54a3b2affd1a951fec7c35b9013d1d0ec5f6" - integrity sha512-MFWBwTcYs0jZbINQBXHfSrpSQJq3IUOakcKPzfeSznONop14Pxuqa0Kg19GD0rNBMPQI2tFtu3UzapZpH0Uc1Q== - -"@rollup/rollup-darwin-x64@4.58.0": - version "4.58.0" - resolved "https://registry.yarnpkg.com/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.58.0.tgz#0509fab5a7f3e77cbd4b26f011e75cdc69e2205d" - integrity sha512-yiKJY7pj9c9JwzuKYLFaDZw5gma3fI9bkPEIyofvVfsPqjCWPglSHdpdwXpKGvDeYDms3Qal8qGMEHZ1M/4Udg== - -"@rollup/rollup-freebsd-arm64@4.58.0": - version "4.58.0" - resolved "https://registry.yarnpkg.com/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.58.0.tgz#dbe79b0ef383eae698623d0c1d6b959c2b4584ac" - integrity sha512-x97kCoBh5MOevpn/CNK9W1x8BEzO238541BGWBc315uOlN0AD/ifZ1msg+ZQB05Ux+VF6EcYqpiagfLJ8U3LvQ== - -"@rollup/rollup-freebsd-x64@4.58.0": - version "4.58.0" - resolved "https://registry.yarnpkg.com/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.58.0.tgz#b65254c46414c59698316671d69d6ea6ee462737" - integrity sha512-Aa8jPoZ6IQAG2eIrcXPpjRcMjROMFxCt1UYPZZtCxRV68WkuSigYtQ/7Zwrcr2IvtNJo7T2JfDXyMLxq5L4Jlg== - -"@rollup/rollup-linux-arm-gnueabihf@4.58.0": - version "4.58.0" - resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.58.0.tgz#5a85c07b0a7083f7db33a9c9acb8415aa87e4efb" - integrity sha512-Ob8YgT5kD/lSIYW2Rcngs5kNB/44Q2RzBSPz9brf2WEtcGR7/f/E9HeHn1wYaAwKBni+bdXEwgHvUd0x12lQSA== - -"@rollup/rollup-linux-arm-musleabihf@4.58.0": - version "4.58.0" - resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.58.0.tgz#b29ff496f689529603bd3761e6d46325aba4d542" - integrity sha512-K+RI5oP1ceqoadvNt1FecL17Qtw/n9BgRSzxif3rTL2QlIu88ccvY+Y9nnHe/cmT5zbH9+bpiJuG1mGHRVwF4Q== - -"@rollup/rollup-linux-arm64-gnu@4.58.0": - version "4.58.0" - resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.58.0.tgz#f188f24ab4ed307391bd12d9ce6021414ab33858" - integrity sha512-T+17JAsCKUjmbopcKepJjHWHXSjeW7O5PL7lEFaeQmiVyw4kkc5/lyYKzrv6ElWRX/MrEWfPiJWqbTvfIvjM1Q== - -"@rollup/rollup-linux-arm64-musl@4.58.0": - version "4.58.0" - resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.58.0.tgz#8c0f105952ab6eaf3b7c335d67866a12f6e9701d" - integrity sha512-cCePktb9+6R9itIJdeCFF9txPU7pQeEHB5AbHu/MKsfH/k70ZtOeq1k4YAtBv9Z7mmKI5/wOLYjQ+B9QdxR6LA== - -"@rollup/rollup-linux-loong64-gnu@4.58.0": - version "4.58.0" - resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-loong64-gnu/-/rollup-linux-loong64-gnu-4.58.0.tgz#5637c6293d20c2a42e32bc176fe91f25df29a589" - integrity sha512-iekUaLkfliAsDl4/xSdoCJ1gnnIXvoNz85C8U8+ZxknM5pBStfZjeXgB8lXobDQvvPRCN8FPmmuTtH+z95HTmg== - -"@rollup/rollup-linux-loong64-musl@4.58.0": - version "4.58.0" - resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-loong64-musl/-/rollup-linux-loong64-musl-4.58.0.tgz#232cc97d391a8e2a31f012d31e527a10d2b7624f" - integrity sha512-68ofRgJNl/jYJbxFjCKE7IwhbfxOl1muPN4KbIqAIe32lm22KmU7E8OPvyy68HTNkI2iV/c8y2kSPSm2mW/Q9Q== - -"@rollup/rollup-linux-ppc64-gnu@4.58.0": - version "4.58.0" - resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-ppc64-gnu/-/rollup-linux-ppc64-gnu-4.58.0.tgz#dd67db4a17c577eca6903d8f2e6427729318946f" - integrity sha512-dpz8vT0i+JqUKuSNPCP5SYyIV2Lh0sNL1+FhM7eLC457d5B9/BC3kDPp5BBftMmTNsBarcPcoz5UGSsnCiw4XQ== - -"@rollup/rollup-linux-ppc64-musl@4.58.0": - version "4.58.0" - resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-ppc64-musl/-/rollup-linux-ppc64-musl-4.58.0.tgz#2faf62360f3b98d252a03c9b83ba38013048edf4" - integrity sha512-4gdkkf9UJ7tafnweBCR/mk4jf3Jfl0cKX9Np80t5i78kjIH0ZdezUv/JDI2VtruE5lunfACqftJ8dIMGN4oHew== - -"@rollup/rollup-linux-riscv64-gnu@4.58.0": - version "4.58.0" - resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.58.0.tgz#5281964be59302d441abcd8ad2440beb92999be3" - integrity sha512-YFS4vPnOkDTD/JriUeeZurFYoJhPf9GQQEF/v4lltp3mVcBmnsAdjEWhr2cjUCZzZNzxCG0HZOvJU44UGHSdzw== - -"@rollup/rollup-linux-riscv64-musl@4.58.0": - version "4.58.0" - resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-riscv64-musl/-/rollup-linux-riscv64-musl-4.58.0.tgz#aff5c40462868bb3ec5dc3950b5c57f34b64e36e" - integrity sha512-x2xgZlFne+QVNKV8b4wwaCS8pwq3y14zedZ5DqLzjdRITvreBk//4Knbcvm7+lWmms9V9qFp60MtUd0/t/PXPw== - -"@rollup/rollup-linux-s390x-gnu@4.58.0": - version "4.58.0" - resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.58.0.tgz#4203a0d06289b6e684e4d2b643a0d16e66bb4435" - integrity sha512-jIhrujyn4UnWF8S+DHSkAkDEO3hLX0cjzxJZPLF80xFyzyUIYgSMRcYQ3+uqEoyDD2beGq7Dj7edi8OnJcS/hg== - -"@rollup/rollup-linux-x64-gnu@4.58.0": - version "4.58.0" - resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.58.0.tgz#1ec45245ea6b8699d14386e91ba78ea0107d982f" - integrity sha512-+410Srdoh78MKSJxTQ+hZ/Mx+ajd6RjjPwBPNd0R3J9FtL6ZA0GqiiyNjCO9In0IzZkCNrpGymSfn+kgyPQocg== - -"@rollup/rollup-linux-x64-musl@4.58.0": - version "4.58.0" - resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.58.0.tgz#42ca10181712a325a5392d423e49804813a390ce" - integrity sha512-ZjMyby5SICi227y1MTR3VYBpFTdZs823Rs/hpakufleBoufoOIB6jtm9FEoxn/cgO7l6PM2rCEl5Kre5vX0QrQ== - -"@rollup/rollup-openbsd-x64@4.58.0": - version "4.58.0" - resolved "https://registry.yarnpkg.com/@rollup/rollup-openbsd-x64/-/rollup-openbsd-x64-4.58.0.tgz#02cfab92d507419194f7ee9b4a76ad9d101ca4a1" - integrity sha512-ds4iwfYkSQ0k1nb8LTcyXw//ToHOnNTJtceySpL3fa7tc/AsE+UpUFphW126A6fKBGJD5dhRvg8zw1rvoGFxmw== - -"@rollup/rollup-openharmony-arm64@4.58.0": - version "4.58.0" - resolved "https://registry.yarnpkg.com/@rollup/rollup-openharmony-arm64/-/rollup-openharmony-arm64-4.58.0.tgz#34d1ffb17a72819611cf277474e2e6b35e6beaa7" - integrity sha512-fd/zpJniln4ICdPkjWFhZYeY/bpnaN9pGa6ko+5WD38I0tTqk9lXMgXZg09MNdhpARngmxiCg0B0XUamNw/5BQ== - -"@rollup/rollup-win32-arm64-msvc@4.58.0": - version "4.58.0" - resolved "https://registry.yarnpkg.com/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.58.0.tgz#c9cbe2d5a5a741222301b473f29069781e8a0f77" - integrity sha512-YpG8dUOip7DCz3nr/JUfPbIUo+2d/dy++5bFzgi4ugOGBIox+qMbbqt/JoORwvI/C9Kn2tz6+Bieoqd5+B1CjA== - -"@rollup/rollup-win32-ia32-msvc@4.58.0": - version "4.58.0" - resolved "https://registry.yarnpkg.com/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.58.0.tgz#b4b393de58f38f87fa66ca1371d865366756a24c" - integrity sha512-b9DI8jpFQVh4hIXFr0/+N/TzLdpBIoPzjt0Rt4xJbW3mzguV3mduR9cNgiuFcuL/TeORejJhCWiAXe3E/6PxWA== - -"@rollup/rollup-win32-x64-gnu@4.58.0": - version "4.58.0" - resolved "https://registry.yarnpkg.com/@rollup/rollup-win32-x64-gnu/-/rollup-win32-x64-gnu-4.58.0.tgz#583097cf2e8403c14df49da1a93ce94fde2bca22" - integrity sha512-CSrVpmoRJFN06LL9xhkitkwUcTZtIotYAF5p6XOR2zW0Zz5mzb3IPpcoPhB02frzMHFNo1reQ9xSF5fFm3hUsQ== - -"@rollup/rollup-win32-x64-msvc@4.58.0": - version "4.58.0" - resolved "https://registry.yarnpkg.com/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.58.0.tgz#de01bb79f597fdba7c205e4d7d7f85760f8b2645" - integrity sha512-QFsBgQNTnh5K0t/sBsjJLq24YVqEIVkGpfN2VHsnN90soZyhaiA9UUHufcctVNL4ypJY0wrwad0wslx2KJQ1/w== +"@rollup/rollup-android-arm-eabi@4.59.0": + version "4.59.0" + resolved "https://registry.yarnpkg.com/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.59.0.tgz#a6742c74c7d9d6d604ef8a48f99326b4ecda3d82" + integrity sha512-upnNBkA6ZH2VKGcBj9Fyl9IGNPULcjXRlg0LLeaioQWueH30p6IXtJEbKAgvyv+mJaMxSm1l6xwDXYjpEMiLMg== + +"@rollup/rollup-android-arm64@4.59.0": + version "4.59.0" + resolved "https://registry.yarnpkg.com/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.59.0.tgz#97247be098de4df0c11971089fd2edf80a5da8cf" + integrity sha512-hZ+Zxj3SySm4A/DylsDKZAeVg0mvi++0PYVceVyX7hemkw7OreKdCvW2oQ3T1FMZvCaQXqOTHb8qmBShoqk69Q== + +"@rollup/rollup-darwin-arm64@4.59.0": + version "4.59.0" + resolved "https://registry.yarnpkg.com/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.59.0.tgz#674852cf14cf11b8056e0b1a2f4e872b523576cf" + integrity sha512-W2Psnbh1J8ZJw0xKAd8zdNgF9HRLkdWwwdWqubSVk0pUuQkoHnv7rx4GiF9rT4t5DIZGAsConRE3AxCdJ4m8rg== + +"@rollup/rollup-darwin-x64@4.59.0": + version "4.59.0" + resolved "https://registry.yarnpkg.com/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.59.0.tgz#36dfd7ed0aaf4d9d89d9ef983af72632455b0246" + integrity sha512-ZW2KkwlS4lwTv7ZVsYDiARfFCnSGhzYPdiOU4IM2fDbL+QGlyAbjgSFuqNRbSthybLbIJ915UtZBtmuLrQAT/w== + +"@rollup/rollup-freebsd-arm64@4.59.0": + version "4.59.0" + resolved "https://registry.yarnpkg.com/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.59.0.tgz#2f87c2074b4220260fdb52a9996246edfc633c22" + integrity sha512-EsKaJ5ytAu9jI3lonzn3BgG8iRBjV4LxZexygcQbpiU0wU0ATxhNVEpXKfUa0pS05gTcSDMKpn3Sx+QB9RlTTA== + +"@rollup/rollup-freebsd-x64@4.59.0": + version "4.59.0" + resolved "https://registry.yarnpkg.com/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.59.0.tgz#9b5a26522a38a95dc06616d1939d4d9a76937803" + integrity sha512-d3DuZi2KzTMjImrxoHIAODUZYoUUMsuUiY4SRRcJy6NJoZ6iIqWnJu9IScV9jXysyGMVuW+KNzZvBLOcpdl3Vg== + +"@rollup/rollup-linux-arm-gnueabihf@4.59.0": + version "4.59.0" + resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.59.0.tgz#86aa4859385a8734235b5e40a48e52d770758c3a" + integrity sha512-t4ONHboXi/3E0rT6OZl1pKbl2Vgxf9vJfWgmUoCEVQVxhW6Cw/c8I6hbbu7DAvgp82RKiH7TpLwxnJeKv2pbsw== + +"@rollup/rollup-linux-arm-musleabihf@4.59.0": + version "4.59.0" + resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.59.0.tgz#cbe70e56e6ece8dac83eb773b624fc9e5a460976" + integrity sha512-CikFT7aYPA2ufMD086cVORBYGHffBo4K8MQ4uPS/ZnY54GKj36i196u8U+aDVT2LX4eSMbyHtyOh7D7Zvk2VvA== + +"@rollup/rollup-linux-arm64-gnu@4.59.0": + version "4.59.0" + resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.59.0.tgz#d14992a2e653bc3263d284bc6579b7a2890e1c45" + integrity sha512-jYgUGk5aLd1nUb1CtQ8E+t5JhLc9x5WdBKew9ZgAXg7DBk0ZHErLHdXM24rfX+bKrFe+Xp5YuJo54I5HFjGDAA== + +"@rollup/rollup-linux-arm64-musl@4.59.0": + version "4.59.0" + resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.59.0.tgz#2fdd1ddc434ea90aeaa0851d2044789b4d07f6da" + integrity sha512-peZRVEdnFWZ5Bh2KeumKG9ty7aCXzzEsHShOZEFiCQlDEepP1dpUl/SrUNXNg13UmZl+gzVDPsiCwnV1uI0RUA== + +"@rollup/rollup-linux-loong64-gnu@4.59.0": + version "4.59.0" + resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-loong64-gnu/-/rollup-linux-loong64-gnu-4.59.0.tgz#8a181e6f89f969f21666a743cd411416c80099e7" + integrity sha512-gbUSW/97f7+r4gHy3Jlup8zDG190AuodsWnNiXErp9mT90iCy9NKKU0Xwx5k8VlRAIV2uU9CsMnEFg/xXaOfXg== + +"@rollup/rollup-linux-loong64-musl@4.59.0": + version "4.59.0" + resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-loong64-musl/-/rollup-linux-loong64-musl-4.59.0.tgz#904125af2babc395f8061daa27b5af1f4e3f2f78" + integrity sha512-yTRONe79E+o0FWFijasoTjtzG9EBedFXJMl888NBEDCDV9I2wGbFFfJQQe63OijbFCUZqxpHz1GzpbtSFikJ4Q== + +"@rollup/rollup-linux-ppc64-gnu@4.59.0": + version "4.59.0" + resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-ppc64-gnu/-/rollup-linux-ppc64-gnu-4.59.0.tgz#a57970ac6864c9a3447411a658224bdcf948be22" + integrity sha512-sw1o3tfyk12k3OEpRddF68a1unZ5VCN7zoTNtSn2KndUE+ea3m3ROOKRCZxEpmT9nsGnogpFP9x6mnLTCaoLkA== + +"@rollup/rollup-linux-ppc64-musl@4.59.0": + version "4.59.0" + resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-ppc64-musl/-/rollup-linux-ppc64-musl-4.59.0.tgz#bb84de5b26870567a4267666e08891e80bb56a63" + integrity sha512-+2kLtQ4xT3AiIxkzFVFXfsmlZiG5FXYW7ZyIIvGA7Bdeuh9Z0aN4hVyXS/G1E9bTP/vqszNIN/pUKCk/BTHsKA== + +"@rollup/rollup-linux-riscv64-gnu@4.59.0": + version "4.59.0" + resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.59.0.tgz#72d00d2c7fb375ce3564e759db33f17a35bffab9" + integrity sha512-NDYMpsXYJJaj+I7UdwIuHHNxXZ/b/N2hR15NyH3m2qAtb/hHPA4g4SuuvrdxetTdndfj9b1WOmy73kcPRoERUg== + +"@rollup/rollup-linux-riscv64-musl@4.59.0": + version "4.59.0" + resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-riscv64-musl/-/rollup-linux-riscv64-musl-4.59.0.tgz#4c166ef58e718f9245bd31873384ba15a5c1a883" + integrity sha512-nLckB8WOqHIf1bhymk+oHxvM9D3tyPndZH8i8+35p/1YiVoVswPid2yLzgX7ZJP0KQvnkhM4H6QZ5m0LzbyIAg== + +"@rollup/rollup-linux-s390x-gnu@4.59.0": + version "4.59.0" + resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.59.0.tgz#bb5025cde9a61db478c2ca7215808ad3bce73a09" + integrity sha512-oF87Ie3uAIvORFBpwnCvUzdeYUqi2wY6jRFWJAy1qus/udHFYIkplYRW+wo+GRUP4sKzYdmE1Y3+rY5Gc4ZO+w== + +"@rollup/rollup-linux-x64-gnu@4.59.0": + version "4.59.0" + resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.59.0.tgz#9b66b1f9cd95c6624c788f021c756269ffed1552" + integrity sha512-3AHmtQq/ppNuUspKAlvA8HtLybkDflkMuLK4DPo77DfthRb71V84/c4MlWJXixZz4uruIH4uaa07IqoAkG64fg== + +"@rollup/rollup-linux-x64-musl@4.59.0": + version "4.59.0" + resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.59.0.tgz#b007ca255dc7166017d57d7d2451963f0bd23fd9" + integrity sha512-2UdiwS/9cTAx7qIUZB/fWtToJwvt0Vbo0zmnYt7ED35KPg13Q0ym1g442THLC7VyI6JfYTP4PiSOWyoMdV2/xg== + +"@rollup/rollup-openbsd-x64@4.59.0": + version "4.59.0" + resolved "https://registry.yarnpkg.com/@rollup/rollup-openbsd-x64/-/rollup-openbsd-x64-4.59.0.tgz#e8b357b2d1aa2c8d76a98f5f0d889eabe93f4ef9" + integrity sha512-M3bLRAVk6GOwFlPTIxVBSYKUaqfLrn8l0psKinkCFxl4lQvOSz8ZrKDz2gxcBwHFpci0B6rttydI4IpS4IS/jQ== + +"@rollup/rollup-openharmony-arm64@4.59.0": + version "4.59.0" + resolved "https://registry.yarnpkg.com/@rollup/rollup-openharmony-arm64/-/rollup-openharmony-arm64-4.59.0.tgz#96c2e3f4aacd3d921981329831ff8dde492204dc" + integrity sha512-tt9KBJqaqp5i5HUZzoafHZX8b5Q2Fe7UjYERADll83O4fGqJ49O1FsL6LpdzVFQcpwvnyd0i+K/VSwu/o/nWlA== + +"@rollup/rollup-win32-arm64-msvc@4.59.0": + version "4.59.0" + resolved "https://registry.yarnpkg.com/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.59.0.tgz#2d865149d706d938df8b4b8f117e69a77646d581" + integrity sha512-V5B6mG7OrGTwnxaNUzZTDTjDS7F75PO1ae6MJYdiMu60sq0CqN5CVeVsbhPxalupvTX8gXVSU9gq+Rx1/hvu6A== + +"@rollup/rollup-win32-ia32-msvc@4.59.0": + version "4.59.0" + resolved "https://registry.yarnpkg.com/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.59.0.tgz#abe1593be0fa92325e9971c8da429c5e05b92c36" + integrity sha512-UKFMHPuM9R0iBegwzKF4y0C4J9u8C6MEJgFuXTBerMk7EJ92GFVFYBfOZaSGLu6COf7FxpQNqhNS4c4icUPqxA== + +"@rollup/rollup-win32-x64-gnu@4.59.0": + version "4.59.0" + resolved "https://registry.yarnpkg.com/@rollup/rollup-win32-x64-gnu/-/rollup-win32-x64-gnu-4.59.0.tgz#c4af3e9518c9a5cd4b1c163dc81d0ad4d82e7eab" + integrity sha512-laBkYlSS1n2L8fSo1thDNGrCTQMmxjYY5G0WFWjFFYZkKPjsMBsgJfGf4TLxXrF6RyhI60L8TMOjBMvXiTcxeA== + +"@rollup/rollup-win32-x64-msvc@4.59.0": + version "4.59.0" + resolved "https://registry.yarnpkg.com/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.59.0.tgz#4584a8a87b29188a4c1fe987a9fcf701e256d86c" + integrity sha512-2HRCml6OztYXyJXAvdDXPKcawukWY2GpR5/nxKp4iBgiO3wcoEGkAaqctIbZcNB6KlUQBIqt8VYkNSj2397EfA== "@segment/analytics-core@1.8.2": version "1.8.2" @@ -2287,9 +2280,9 @@ integrity sha512-l2aFy5jALhniG5HgqrD6jXLi/rUWrKvqN/qJx6yoJsgKhblVd+iqqU4RCXavm/jPityDo5TCvKMnpjKnOriy0w== "@swc/helpers@^0.5.0": - version "0.5.18" - resolved "https://registry.yarnpkg.com/@swc/helpers/-/helpers-0.5.18.tgz#feeeabea0d10106ee25aaf900165df911ab6d3b1" - integrity sha512-TXTnIcNJQEKwThMMqBXsZ4VGAza6bvN4pa41Rkqoio6QBKMvo+5lexeTMScGCIxtzgQJzElcvIltani+adC5PQ== + version "0.5.19" + resolved "https://registry.yarnpkg.com/@swc/helpers/-/helpers-0.5.19.tgz#9a8c8a0bdaecfdfb9b8ae5421c0c8e09246dfee9" + integrity sha512-QamiFeIK3txNjgUTNppE6MiG3p7TdninpZu0E0PbqVh1a9FNLT2FRhisaa4NcaX52XVhA5l7Pk58Ft7Sqi/2sA== dependencies: tslib "^2.8.0" @@ -3019,9 +3012,9 @@ callsites@^3.0.0: integrity sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ== caniuse-lite@^1.0.30001759: - version "1.0.30001770" - resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001770.tgz#4dc47d3b263a50fbb243448034921e0a88591a84" - integrity sha512-x/2CLQ1jHENRbHg5PSId2sXq1CIO1CISvwWAj027ltMVG2UNgW+w9oH2+HzgEIRFembL8bUlXtfbBHR1fCg2xw== + version "1.0.30001774" + resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001774.tgz#0e576b6f374063abcd499d202b9ba1301be29b70" + integrity sha512-DDdwPGz99nmIEv216hKSgLD+D4ikHQHjBC/seF98N9CPqRX4M5mSxT9eTV6oyisnJcuzxtZy4n17yKKQYmYQOA== ccount@^2.0.0: version "2.0.1" @@ -4190,9 +4183,9 @@ json5@^2.2.3: integrity sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg== katex@^0.16.0, katex@^0.16.22: - version "0.16.28" - resolved "https://registry.yarnpkg.com/katex/-/katex-0.16.28.tgz#64068425b5a29b41b136aae0d51cbb2c71d64c39" - integrity sha512-YHzO7721WbmAL6Ov1uzN/l5mY5WWWhJBSW+jq4tkfZfsxmo1hu6frS0EOswvjBUnWE6NtjEs48SFn5CQESRLZg== + version "0.16.32" + resolved "https://registry.yarnpkg.com/katex/-/katex-0.16.32.tgz#4f0cbfb68db20f2ea333173c35e8e45d729a65fa" + integrity sha512-ac0FzkRJlpw4WyH3Zu/OgU9LmPKqjHr6O2BxfSrBt8uJ1BhvH2YK3oJ4ut/K+O+6qQt2MGpdbn0MrffVEnnUDQ== dependencies: commander "^8.3.0" @@ -4307,9 +4300,9 @@ mdast-util-find-and-replace@^3.0.0: unist-util-visit-parents "^6.0.0" mdast-util-from-markdown@^2.0.0: - version "2.0.2" - resolved "https://registry.yarnpkg.com/mdast-util-from-markdown/-/mdast-util-from-markdown-2.0.2.tgz#4850390ca7cf17413a9b9a0fbefcd1bc0eb4160a" - integrity sha512-uZhTV/8NBuw0WHkPTrCqDOl0zVe1BIng5ZtHoDk49ME1qqcjYmmLmOf0gELgcRMxN4w2iuIeVso5/6QymSrgmA== + version "2.0.3" + resolved "https://registry.yarnpkg.com/mdast-util-from-markdown/-/mdast-util-from-markdown-2.0.3.tgz#c95822b91aab75f18a4cbe8b2f51b873ed2cf0c7" + integrity sha512-W4mAWTvSlKvf8L6J+VN9yLSqQ9AOAAvHuoDAmPkz4dHf553m5gVj2ejadHJhoJmcmxEnOv6Pa8XJhpxE93kb8Q== dependencies: "@types/mdast" "^4.0.0" "@types/unist" "^3.0.0" @@ -5419,37 +5412,37 @@ robust-predicates@^3.0.2: integrity sha512-IXgzBWvWQwE6PrDI05OvmXUIruQTcoMDzRsOd5CDvHCVLcLHMTSYvOK5Cm46kWqlV3yAbuSpBZdJ5oP5OUoStg== rollup@^4.34.9, rollup@^4.43.0: - version "4.58.0" - resolved "https://registry.yarnpkg.com/rollup/-/rollup-4.58.0.tgz#cdbbb79d48ff94f192d9974988c1728f9dd1994c" - integrity sha512-wbT0mBmWbIvvq8NeEYWWvevvxnOyhKChir47S66WCxw1SXqhw7ssIYejnQEVt7XYQpsj2y8F9PM+Cr3SNEa0gw== + version "4.59.0" + resolved "https://registry.yarnpkg.com/rollup/-/rollup-4.59.0.tgz#cf74edac17c1486f562d728a4d923a694abdf06f" + integrity sha512-2oMpl67a3zCH9H79LeMcbDhXW/UmWG/y2zuqnF2jQq5uq9TbM9TVyXvA4+t+ne2IIkBdrLpAaRQAvo7YI/Yyeg== dependencies: "@types/estree" "1.0.8" optionalDependencies: - "@rollup/rollup-android-arm-eabi" "4.58.0" - "@rollup/rollup-android-arm64" "4.58.0" - "@rollup/rollup-darwin-arm64" "4.58.0" - "@rollup/rollup-darwin-x64" "4.58.0" - "@rollup/rollup-freebsd-arm64" "4.58.0" - "@rollup/rollup-freebsd-x64" "4.58.0" - "@rollup/rollup-linux-arm-gnueabihf" "4.58.0" - "@rollup/rollup-linux-arm-musleabihf" "4.58.0" - "@rollup/rollup-linux-arm64-gnu" "4.58.0" - "@rollup/rollup-linux-arm64-musl" "4.58.0" - "@rollup/rollup-linux-loong64-gnu" "4.58.0" - "@rollup/rollup-linux-loong64-musl" "4.58.0" - "@rollup/rollup-linux-ppc64-gnu" "4.58.0" - "@rollup/rollup-linux-ppc64-musl" "4.58.0" - "@rollup/rollup-linux-riscv64-gnu" "4.58.0" - "@rollup/rollup-linux-riscv64-musl" "4.58.0" - "@rollup/rollup-linux-s390x-gnu" "4.58.0" - "@rollup/rollup-linux-x64-gnu" "4.58.0" - "@rollup/rollup-linux-x64-musl" "4.58.0" - "@rollup/rollup-openbsd-x64" "4.58.0" - "@rollup/rollup-openharmony-arm64" "4.58.0" - "@rollup/rollup-win32-arm64-msvc" "4.58.0" - "@rollup/rollup-win32-ia32-msvc" "4.58.0" - "@rollup/rollup-win32-x64-gnu" "4.58.0" - "@rollup/rollup-win32-x64-msvc" "4.58.0" + "@rollup/rollup-android-arm-eabi" "4.59.0" + "@rollup/rollup-android-arm64" "4.59.0" + "@rollup/rollup-darwin-arm64" "4.59.0" + "@rollup/rollup-darwin-x64" "4.59.0" + "@rollup/rollup-freebsd-arm64" "4.59.0" + "@rollup/rollup-freebsd-x64" "4.59.0" + "@rollup/rollup-linux-arm-gnueabihf" "4.59.0" + "@rollup/rollup-linux-arm-musleabihf" "4.59.0" + "@rollup/rollup-linux-arm64-gnu" "4.59.0" + "@rollup/rollup-linux-arm64-musl" "4.59.0" + "@rollup/rollup-linux-loong64-gnu" "4.59.0" + "@rollup/rollup-linux-loong64-musl" "4.59.0" + "@rollup/rollup-linux-ppc64-gnu" "4.59.0" + "@rollup/rollup-linux-ppc64-musl" "4.59.0" + "@rollup/rollup-linux-riscv64-gnu" "4.59.0" + "@rollup/rollup-linux-riscv64-musl" "4.59.0" + "@rollup/rollup-linux-s390x-gnu" "4.59.0" + "@rollup/rollup-linux-x64-gnu" "4.59.0" + "@rollup/rollup-linux-x64-musl" "4.59.0" + "@rollup/rollup-openbsd-x64" "4.59.0" + "@rollup/rollup-openharmony-arm64" "4.59.0" + "@rollup/rollup-win32-arm64-msvc" "4.59.0" + "@rollup/rollup-win32-ia32-msvc" "4.59.0" + "@rollup/rollup-win32-x64-gnu" "4.59.0" + "@rollup/rollup-win32-x64-msvc" "4.59.0" fsevents "~2.3.2" roughjs@^4.6.6: diff --git a/justfile b/justfile index f03074d..efc7cb5 100644 --- a/justfile +++ b/justfile @@ -39,6 +39,9 @@ js-dev: js-rebuild: ./scripts/clean_js_applet.sh && ./scripts/build_js_applet.sh +js-build: + ./scripts/build_js_applet.sh + streamlit: ./scripts/run_streamlit_example.sh diff --git a/python-wrapper/src/neo4j_viz/nvl.py b/python-wrapper/src/neo4j_viz/nvl.py index 372ac72..ffabec8 100644 --- a/python-wrapper/src/neo4j_viz/nvl.py +++ b/python-wrapper/src/neo4j_viz/nvl.py @@ -38,12 +38,14 @@ def render( render_options: RenderOptions, width: str, height: str, + theme: str, ) -> HTML: data_dict: dict[str, object] = { "nodes": [_serialize_entity(node) for node in nodes], "relationships": [_serialize_entity(rel) for rel in relationships], "width": width, "height": height, + "theme": theme, "options": render_options.to_js_options(), } data_json = json.dumps(data_dict) diff --git a/python-wrapper/src/neo4j_viz/resources/nvl_entrypoint/index.html b/python-wrapper/src/neo4j_viz/resources/nvl_entrypoint/index.html index f899f06..f623001 100644 --- a/python-wrapper/src/neo4j_viz/resources/nvl_entrypoint/index.html +++ b/python-wrapper/src/neo4j_viz/resources/nvl_entrypoint/index.html @@ -15,7 +15,7 @@ Python (nvl.py) injects a + `,new Error("window.__NEO4J_VIZ_DATA__ is not defined");const Zle={get(r){return pE[r]},on(){},off(){},set(){},save_changes(){}},gE=document.getElementById("neo4j-viz-container");if(!gE)throw new Error("Container element #neo4j-viz-container not found");gE.style.width=pE.width??"100%";gE.style.height=pE.height??"100vh";Kle.render({model:Zle,el:gE}); diff --git a/python-wrapper/src/neo4j_viz/resources/nvl_entrypoint/widget.js b/python-wrapper/src/neo4j_viz/resources/nvl_entrypoint/widget.js index 0a17d29..c1be496 100644 --- a/python-wrapper/src/neo4j_viz/resources/nvl_entrypoint/widget.js +++ b/python-wrapper/src/neo4j_viz/resources/nvl_entrypoint/widget.js @@ -40,7 +40,7 @@ function KG(r) { }); }), t; } -var HE = { exports: {} }, U0 = {}; +var VE = { exports: {} }, U0 = {}; /** * @license React * react-jsx-runtime.production.js @@ -74,9 +74,9 @@ function ZG() { } var QD; function QG() { - return QD || (QD = 1, HE.exports = ZG()), HE.exports; + return QD || (QD = 1, VE.exports = ZG()), VE.exports; } -var Te = QG(), WE = { exports: {} }, fn = {}; +var Ce = QG(), HE = { exports: {} }, fn = {}; /** * @license React * react.production.js @@ -105,23 +105,23 @@ function JG() { enqueueSetState: function() { } }, g = Object.assign, y = {}; - function b(X, Q, ue) { - this.props = X, this.context = Q, this.refs = y, this.updater = ue || p; + function b(X, Z, ue) { + this.props = X, this.context = Z, this.refs = y, this.updater = ue || p; } - b.prototype.isReactComponent = {}, b.prototype.setState = function(X, Q) { + b.prototype.isReactComponent = {}, b.prototype.setState = function(X, Z) { if (typeof X != "object" && typeof X != "function" && X != null) throw Error( "takes an object of state variables to update or a function which returns an object of state variables." ); - this.updater.enqueueSetState(this, X, Q, "setState"); + this.updater.enqueueSetState(this, X, Z, "setState"); }, b.prototype.forceUpdate = function(X) { this.updater.enqueueForceUpdate(this, X, "forceUpdate"); }; function _() { } _.prototype = b.prototype; - function m(X, Q, ue) { - this.props = X, this.context = Q, this.refs = y, this.updater = ue || p; + function m(X, Z, ue) { + this.props = X, this.context = Z, this.refs = y, this.updater = ue || p; } var x = m.prototype = new _(); x.constructor = m, g(x, b.prototype), x.isPureReactComponent = !0; @@ -129,31 +129,31 @@ function JG() { function O() { } var E = { H: null, A: null, T: null, S: null }, T = Object.prototype.hasOwnProperty; - function P(X, Q, ue) { + function P(X, Z, ue) { var re = ue.ref; return { $$typeof: r, type: X, - key: Q, + key: Z, ref: re !== void 0 ? re : null, props: ue }; } - function I(X, Q) { - return P(X.type, Q, X.props); + function I(X, Z) { + return P(X.type, Z, X.props); } function k(X) { return typeof X == "object" && X !== null && X.$$typeof === r; } function L(X) { - var Q = { "=": "=0", ":": "=2" }; + var Z = { "=": "=0", ":": "=2" }; return "$" + X.replace(/[=:]/g, function(ue) { - return Q[ue]; + return Z[ue]; }); } var B = /\/+/g; - function j(X, Q) { - return typeof X == "object" && X !== null && X.key != null ? L("" + X.key) : Q.toString(36); + function j(X, Z) { + return typeof X == "object" && X !== null && X.key != null ? L("" + X.key) : Z.toString(36); } function z(X) { switch (X.status) { @@ -163,11 +163,11 @@ function JG() { throw X.reason; default: switch (typeof X.status == "string" ? X.then(O, O) : (X.status = "pending", X.then( - function(Q) { - X.status === "pending" && (X.status = "fulfilled", X.value = Q); + function(Z) { + X.status === "pending" && (X.status = "fulfilled", X.value = Z); }, - function(Q) { - X.status === "pending" && (X.status = "rejected", X.reason = Q); + function(Z) { + X.status === "pending" && (X.status = "rejected", X.reason = Z); } )), X.status) { case "fulfilled": @@ -178,7 +178,7 @@ function JG() { } throw X; } - function H(X, Q, ue, re, ne) { + function H(X, Z, ue, re, ne) { var le = typeof X; (le === "undefined" || le === "boolean") && (X = null); var ce = !1; @@ -199,7 +199,7 @@ function JG() { case c: return ce = X._init, H( ce(X._payload), - Q, + Z, ue, re, ne @@ -207,7 +207,7 @@ function JG() { } } if (ce) - return ne = ne(X), ce = re === "" ? "." + j(X, 0) : re, S(ne) ? (ue = "", ce != null && (ue = ce.replace(B, "$&/") + "/"), H(ne, Q, ue, "", function(se) { + return ne = ne(X), ce = re === "" ? "." + j(X, 0) : re, S(ne) ? (ue = "", ce != null && (ue = ce.replace(B, "$&/") + "/"), H(ne, Z, ue, "", function(se) { return se; })) : ne != null && (k(ne) && (ne = I( ne, @@ -215,14 +215,14 @@ function JG() { B, "$&/" ) + "/") + ce - )), Q.push(ne)), 1; + )), Z.push(ne)), 1; ce = 0; var pe = re === "" ? "." : re + ":"; if (S(X)) for (var fe = 0; fe < X.length; fe++) re = X[fe], le = pe + j(re, fe), ce += H( re, - Q, + Z, ue, le, ne @@ -231,7 +231,7 @@ function JG() { for (X = fe.call(X), fe = 0; !(re = X.next()).done; ) re = re.value, le = pe + j(re, fe++), ce += H( re, - Q, + Z, ue, le, ne @@ -240,48 +240,48 @@ function JG() { if (typeof X.then == "function") return H( z(X), - Q, + Z, ue, re, ne ); - throw Q = String(X), Error( - "Objects are not valid as a React child (found: " + (Q === "[object Object]" ? "object with keys {" + Object.keys(X).join(", ") + "}" : Q) + "). If you meant to render a collection of children, use an array instead." + throw Z = String(X), Error( + "Objects are not valid as a React child (found: " + (Z === "[object Object]" ? "object with keys {" + Object.keys(X).join(", ") + "}" : Z) + "). If you meant to render a collection of children, use an array instead." ); } return ce; } - function q(X, Q, ue) { + function q(X, Z, ue) { if (X == null) return X; var re = [], ne = 0; return H(X, re, "", "", function(le) { - return Q.call(ue, le, ne++); + return Z.call(ue, le, ne++); }), re; } function W(X) { if (X._status === -1) { - var Q = X._result; - Q = Q(), Q.then( + var Z = X._result; + Z = Z(), Z.then( function(ue) { (X._status === 0 || X._status === -1) && (X._status = 1, X._result = ue); }, function(ue) { (X._status === 0 || X._status === -1) && (X._status = 2, X._result = ue); } - ), X._status === -1 && (X._status = 0, X._result = Q); + ), X._status === -1 && (X._status = 0, X._result = Z); } if (X._status === 1) return X._result.default; throw X._result; } var $ = typeof reportError == "function" ? reportError : function(X) { if (typeof window == "object" && typeof window.ErrorEvent == "function") { - var Q = new window.ErrorEvent("error", { + var Z = new window.ErrorEvent("error", { bubbles: !0, cancelable: !0, message: typeof X == "object" && X !== null && typeof X.message == "string" ? String(X.message) : String(X), error: X }); - if (!window.dispatchEvent(Q)) return; + if (!window.dispatchEvent(Z)) return; } else if (typeof process == "object" && typeof process.emit == "function") { process.emit("uncaughtException", X); return; @@ -289,24 +289,24 @@ function JG() { console.error(X); }, J = { map: q, - forEach: function(X, Q, ue) { + forEach: function(X, Z, ue) { q( X, function() { - Q.apply(this, arguments); + Z.apply(this, arguments); }, ue ); }, count: function(X) { - var Q = 0; + var Z = 0; return q(X, function() { - Q++; - }), Q; + Z++; + }), Z; }, toArray: function(X) { - return q(X, function(Q) { - return Q; + return q(X, function(Z) { + return Z; }) || []; }, only: function(X) { @@ -328,15 +328,15 @@ function JG() { }; }, fn.cacheSignal = function() { return null; - }, fn.cloneElement = function(X, Q, ue) { + }, fn.cloneElement = function(X, Z, ue) { if (X == null) throw Error( "The argument must be a React element, but you passed " + X + "." ); var re = g({}, X.props), ne = X.key; - if (Q != null) - for (le in Q.key !== void 0 && (ne = "" + Q.key), Q) - !T.call(Q, le) || le === "key" || le === "__self" || le === "__source" || le === "ref" && Q.ref === void 0 || (re[le] = Q[le]); + if (Z != null) + for (le in Z.key !== void 0 && (ne = "" + Z.key), Z) + !T.call(Z, le) || le === "key" || le === "__self" || le === "__source" || le === "ref" && Z.ref === void 0 || (re[le] = Z[le]); var le = arguments.length - 2; if (le === 1) re.children = ue; else if (1 < le) { @@ -357,11 +357,11 @@ function JG() { $$typeof: a, _context: X }, X; - }, fn.createElement = function(X, Q, ue) { + }, fn.createElement = function(X, Z, ue) { var re, ne = {}, le = null; - if (Q != null) - for (re in Q.key !== void 0 && (le = "" + Q.key), Q) - T.call(Q, re) && re !== "key" && re !== "__self" && re !== "__source" && (ne[re] = Q[re]); + if (Z != null) + for (re in Z.key !== void 0 && (le = "" + Z.key), Z) + T.call(Z, re) && re !== "key" && re !== "__self" && re !== "__source" && (ne[re] = Z[re]); var ce = arguments.length - 2; if (ce === 1) ne.children = ue; else if (1 < ce) { @@ -383,14 +383,14 @@ function JG() { _payload: { _status: -1, _result: X }, _init: W }; - }, fn.memo = function(X, Q) { + }, fn.memo = function(X, Z) { return { $$typeof: l, type: X, - compare: Q === void 0 ? null : Q + compare: Z === void 0 ? null : Z }; }, fn.startTransition = function(X) { - var Q = E.T, ue = {}; + var Z = E.T, ue = {}; E.T = ue; try { var re = X(), ne = E.S; @@ -398,47 +398,47 @@ function JG() { } catch (le) { $(le); } finally { - Q !== null && ue.types !== null && (Q.types = ue.types), E.T = Q; + Z !== null && ue.types !== null && (Z.types = ue.types), E.T = Z; } }, fn.unstable_useCacheRefresh = function() { return E.H.useCacheRefresh(); }, fn.use = function(X) { return E.H.use(X); - }, fn.useActionState = function(X, Q, ue) { - return E.H.useActionState(X, Q, ue); - }, fn.useCallback = function(X, Q) { - return E.H.useCallback(X, Q); + }, fn.useActionState = function(X, Z, ue) { + return E.H.useActionState(X, Z, ue); + }, fn.useCallback = function(X, Z) { + return E.H.useCallback(X, Z); }, fn.useContext = function(X) { return E.H.useContext(X); }, fn.useDebugValue = function() { - }, fn.useDeferredValue = function(X, Q) { - return E.H.useDeferredValue(X, Q); - }, fn.useEffect = function(X, Q) { - return E.H.useEffect(X, Q); + }, fn.useDeferredValue = function(X, Z) { + return E.H.useDeferredValue(X, Z); + }, fn.useEffect = function(X, Z) { + return E.H.useEffect(X, Z); }, fn.useEffectEvent = function(X) { return E.H.useEffectEvent(X); }, fn.useId = function() { return E.H.useId(); - }, fn.useImperativeHandle = function(X, Q, ue) { - return E.H.useImperativeHandle(X, Q, ue); - }, fn.useInsertionEffect = function(X, Q) { - return E.H.useInsertionEffect(X, Q); - }, fn.useLayoutEffect = function(X, Q) { - return E.H.useLayoutEffect(X, Q); - }, fn.useMemo = function(X, Q) { - return E.H.useMemo(X, Q); - }, fn.useOptimistic = function(X, Q) { - return E.H.useOptimistic(X, Q); - }, fn.useReducer = function(X, Q, ue) { - return E.H.useReducer(X, Q, ue); + }, fn.useImperativeHandle = function(X, Z, ue) { + return E.H.useImperativeHandle(X, Z, ue); + }, fn.useInsertionEffect = function(X, Z) { + return E.H.useInsertionEffect(X, Z); + }, fn.useLayoutEffect = function(X, Z) { + return E.H.useLayoutEffect(X, Z); + }, fn.useMemo = function(X, Z) { + return E.H.useMemo(X, Z); + }, fn.useOptimistic = function(X, Z) { + return E.H.useOptimistic(X, Z); + }, fn.useReducer = function(X, Z, ue) { + return E.H.useReducer(X, Z, ue); }, fn.useRef = function(X) { return E.H.useRef(X); }, fn.useState = function(X) { return E.H.useState(X); - }, fn.useSyncExternalStore = function(X, Q, ue) { + }, fn.useSyncExternalStore = function(X, Z, ue) { return E.H.useSyncExternalStore( X, - Q, + Z, ue ); }, fn.useTransition = function() { @@ -446,15 +446,15 @@ function JG() { }, fn.version = "19.2.4", fn; } var ek; -function x5() { - return ek || (ek = 1, WE.exports = JG()), WE.exports; +function w5() { + return ek || (ek = 1, HE.exports = JG()), HE.exports; } -var me = x5(); +var me = w5(); const ao = /* @__PURE__ */ Bp(me), B9 = /* @__PURE__ */ $G({ __proto__: null, default: ao }, [me]); -var YE = { exports: {} }, z0 = {}, XE = { exports: {} }, $E = {}; +var WE = { exports: {} }, z0 = {}, YE = { exports: {} }, XE = {}; /** * @license React * scheduler.production.js @@ -486,9 +486,9 @@ function eV() { if (W !== q) { H[0] = W; e: for (var $ = 0, J = H.length, X = J >>> 1; $ < X; ) { - var Q = 2 * ($ + 1) - 1, ue = H[Q], re = Q + 1, ne = H[re]; + var Z = 2 * ($ + 1) - 1, ue = H[Z], re = Z + 1, ne = H[re]; if (0 > i(ue, W)) - re < J && 0 > i(ne, ue) ? (H[$] = ne, H[re] = W, $ = re) : (H[$] = ue, H[Q] = W, $ = Q); + re < J && 0 > i(ne, ue) ? (H[$] = ne, H[re] = W, $ = re) : (H[$] = ue, H[Z] = W, $ = Z); else if (re < J && 0 > i(ne, W)) H[$] = ne, H[re] = W, $ = re; else break e; @@ -682,13 +682,13 @@ function eV() { } }; }; - })($E)), $E; + })(XE)), XE; } var rk; function tV() { - return rk || (rk = 1, XE.exports = eV()), XE.exports; + return rk || (rk = 1, YE.exports = eV()), YE.exports; } -var KE = { exports: {} }, Vu = {}; +var $E = { exports: {} }, Vu = {}; /** * @license React * react-dom.production.js @@ -702,7 +702,7 @@ var nk; function rV() { if (nk) return Vu; nk = 1; - var r = x5(); + var r = w5(); function e(u) { var l = "https://react.dev/errors/" + u; if (1 < arguments.length) { @@ -833,7 +833,7 @@ function rV() { } var ik; function F9() { - if (ik) return KE.exports; + if (ik) return $E.exports; ik = 1; function r() { if (!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ > "u" || typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE != "function")) @@ -843,7 +843,7 @@ function F9() { console.error(e); } } - return r(), KE.exports = rV(), KE.exports; + return r(), $E.exports = rV(), $E.exports; } /** * @license React @@ -858,7 +858,7 @@ var ak; function nV() { if (ak) return z0; ak = 1; - var r = tV(), e = x5(), t = F9(); + var r = tV(), e = w5(), t = F9(); function n(v) { var w = "https://react.dev/errors/" + v; if (1 < arguments.length) { @@ -1022,7 +1022,7 @@ function nV() { function X(v) { return { current: v }; } - function Q(v) { + function Z(v) { 0 > J || (v.current = $[J], $[J] = null, J--); } function ue(v, w) { @@ -1050,10 +1050,10 @@ function nV() { v = 0; } } - Q(re), ue(re, v); + Z(re), ue(re, v); } function fe() { - Q(re), Q(ne), Q(le); + Z(re), Z(ne), Z(le); } function se(v) { v.memoizedState !== null && ue(ce, v); @@ -1061,7 +1061,7 @@ function nV() { w !== C && (ue(ne, v), ue(re, C)); } function de(v) { - ne.current === v && (Q(re), Q(ne)), ce.current === v && (Q(ce), Zv._currentValue = W); + ne.current === v && (Z(re), Z(ne)), ce.current === v && (Z(ce), Zv._currentValue = W); } var ge, Oe; function ke(v) { @@ -1076,10 +1076,10 @@ function nV() { return ` ` + ge + v + Oe; } - var Me = !1; + var De = !1; function Ne(v, w) { - if (!v || Me) return ""; - Me = !0; + if (!v || De) return ""; + De = !0; var C = Error.prepareStackTrace; Error.prepareStackTrace = void 0; try { @@ -1163,11 +1163,11 @@ function nV() { } } } finally { - Me = !1, Error.prepareStackTrace = C; + De = !1, Error.prepareStackTrace = C; } return (C = v ? v.displayName || v.name : "") ? ke(C) : ""; } - function Ce(v, w) { + function Te(v, w) { switch (v.tag) { case 26: case 27: @@ -1196,7 +1196,7 @@ function nV() { try { var w = "", C = null; do - w += Ce(v, C), C = v, v = v.return; + w += Te(v, C), C = v, v = v.return; while (v); return w; } catch (M) { @@ -1205,7 +1205,7 @@ Error generating stack: ` + M.message + ` ` + M.stack; } } - var Z = Object.prototype.hasOwnProperty, ie = r.unstable_scheduleCallback, we = r.unstable_cancelCallback, Ee = r.unstable_shouldYield, De = r.unstable_requestPaint, Ie = r.unstable_now, Ye = r.unstable_getCurrentPriorityLevel, ot = r.unstable_ImmediatePriority, mt = r.unstable_UserBlockingPriority, wt = r.unstable_NormalPriority, Mt = r.unstable_LowPriority, Dt = r.unstable_IdlePriority, vt = r.log, tt = r.unstable_setDisableYieldValue, _e = null, Ue = null; + var Q = Object.prototype.hasOwnProperty, ie = r.unstable_scheduleCallback, we = r.unstable_cancelCallback, Ee = r.unstable_shouldYield, Me = r.unstable_requestPaint, Ie = r.unstable_now, Ye = r.unstable_getCurrentPriorityLevel, ot = r.unstable_ImmediatePriority, mt = r.unstable_UserBlockingPriority, wt = r.unstable_NormalPriority, Mt = r.unstable_LowPriority, Dt = r.unstable_IdlePriority, vt = r.log, tt = r.unstable_setDisableYieldValue, _e = null, Ue = null; function Qe(v) { if (typeof vt == "function" && tt(v), Ue && typeof Ue.setStrictMode == "function") try { @@ -1475,7 +1475,7 @@ Error generating stack: ` + M.message + ` "^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$" ), na = {}, Fs = {}; function hu(v) { - return Z.call(Fs, v) ? !0 : Z.call(na, v) ? !1 : Nr.test(v) ? Fs[v] = !0 : (na[v] = !0, !1); + return Q.call(Fs, v) ? !0 : Q.call(na, v) ? !1 : Nr.test(v) ? Fs[v] = !0 : (na[v] = !0, !1); } function ga(v, w, C) { if (hu(w)) @@ -2255,7 +2255,7 @@ Error generating stack: ` + M.message + ` if (C.length !== M.length) return !1; for (M = 0; M < C.length; M++) { var F = C[M]; - if (!Z.call(w, F) || !ri(v[F], w[F])) + if (!Q.call(w, F) || !ri(v[F], w[F])) return !1; } return !0; @@ -2439,7 +2439,7 @@ Error generating stack: ` + M.message + ` var ae = 0; if (M = v, typeof v == "function") Ba(v) && (ae = 1); else if (typeof v == "string") - ae = LE( + ae = NE( v, C, re.current @@ -2657,7 +2657,7 @@ Error generating stack: ` + M.message + ` ue(ar, w._currentValue), w._currentValue = C; } function Cu(v) { - v._currentValue = ar.current, Q(ar); + v._currentValue = ar.current, Z(ar); } function hl(v, w, C) { for (; v !== null; ) { @@ -3171,8 +3171,8 @@ Error generating stack: ` + M.message + ` } for (or = M(or); !Qn.done; pn++, Qn = rt.next()) Qn = lt(or, Xe, pn, Qn.value, bt), Qn !== null && (v && Qn.alternate !== null && or.delete(Qn.key === null ? pn : Qn.key), Ve = V(Qn, Ve, pn), Zn === null ? wr = Qn : Zn.sibling = Qn, Zn = Qn); - return v && or.forEach(function(VE) { - return w(Xe, VE); + return v && or.forEach(function(GE) { + return w(Xe, GE); }), hn && Ua(Xe, pn), wr; } function Ti(Xe, Ve, rt, bt) { @@ -3456,7 +3456,7 @@ Error generating stack: ` + M.message + ` ue(Ss, Ga), ue(Zs, Zs.current); } function Nu() { - Ga = Ss.current, Q(Zs), Q(Ss); + Ga = Ss.current, Z(Zs), Z(Ss); } var er = X(null), ho = null; function Qs(v) { @@ -3473,7 +3473,7 @@ Error generating stack: ` + M.message + ` ue(Pi, Pi.current), ue(er, er.current); } function Wn(v) { - Q(er), ho === v && (ho = null), Q(Pi); + Z(er), ho === v && (ho = null), Z(Pi); } var Pi = X(0); function es(v) { @@ -5437,7 +5437,7 @@ Error generating stack: ` + M.message + ` C ), dd(v, w), v === null && (w.flags |= 4194304), w.child; case 5: - return v === null && hn && ((F = M = Rn) && (M = CE( + return v === null && hn && ((F = M = Rn) && (M = TE( M, w.type, w.pendingProps, @@ -5793,7 +5793,7 @@ Error generating stack: ` + M.message + ` case 10: return Cu(w.type), pi(w), null; case 19: - if (Q(Pi), M = w.memoizedState, M === null) return pi(w), null; + if (Z(Pi), M = w.memoizedState, M === null) return pi(w), null; if (F = (w.flags & 128) !== 0, V = M.rendering, V === null) if (F) Vh(M, !1); else { @@ -5826,7 +5826,7 @@ Error generating stack: ` + M.message + ` ), hn && Ua(w, M.treeForkCount), v) : (pi(w), null); case 22: case 23: - return Wn(w), Nu(), M = w.memoizedState !== null, v !== null ? v.memoizedState !== null !== M && (w.flags |= 8192) : M && (w.flags |= 8192), M ? (C & 536870912) !== 0 && (w.flags & 128) === 0 && (pi(w), w.subtreeFlags & 6 && (w.flags |= 8192)) : pi(w), C = w.updateQueue, C !== null && Hd(w, C.retryQueue), C = null, v !== null && v.memoizedState !== null && v.memoizedState.cachePool !== null && (C = v.memoizedState.cachePool.pool), M = null, w.memoizedState !== null && w.memoizedState.cachePool !== null && (M = w.memoizedState.cachePool.pool), M !== C && (w.flags |= 2048), v !== null && Q(Ta), null; + return Wn(w), Nu(), M = w.memoizedState !== null, v !== null ? v.memoizedState !== null !== M && (w.flags |= 8192) : M && (w.flags |= 8192), M ? (C & 536870912) !== 0 && (w.flags & 128) === 0 && (pi(w), w.subtreeFlags & 6 && (w.flags |= 8192)) : pi(w), C = w.updateQueue, C !== null && Hd(w, C.retryQueue), C = null, v !== null && v.memoizedState !== null && v.memoizedState.cachePool !== null && (C = v.memoizedState.cachePool.pool), M = null, w.memoizedState !== null && w.memoizedState.cachePool !== null && (M = w.memoizedState.cachePool.pool), M !== C && (w.flags |= 2048), v !== null && Z(Ta), null; case 24: return C = null, v !== null && (C = v.memoizedState.cache), w.memoizedState.cache !== C && (w.flags |= 2048), Cu($i), pi(w), null; case 25: @@ -5861,14 +5861,14 @@ Error generating stack: ` + M.message + ` } return v = w.flags, v & 65536 ? (w.flags = v & -65537 | 128, w) : null; case 19: - return Q(Pi), null; + return Z(Pi), null; case 4: return fe(), null; case 10: return Cu(w.type), null; case 22: case 23: - return Wn(w), Nu(), v !== null && Q(Ta), v = w.flags, v & 65536 ? (w.flags = v & -65537 | 128, w) : null; + return Wn(w), Nu(), v !== null && Z(Ta), v = w.flags, v & 65536 ? (w.flags = v & -65537 | 128, w) : null; case 24: return Cu($i), null; case 25: @@ -5897,14 +5897,14 @@ Error generating stack: ` + M.message + ` Wn(w); break; case 19: - Q(Pi); + Z(Pi); break; case 10: Cu(w.type); break; case 22: case 23: - Wn(w), Nu(), v !== null && Q(Ta); + Wn(w), Nu(), v !== null && Z(Ta); break; case 24: Cu($i); @@ -6042,7 +6042,7 @@ Error generating stack: ` + M.message + ` function jv(v, w, C) { try { var M = v.stateNode; - SE(M, v.type, C, w), M[Nn] = w; + EE(M, v.type, C, w), M[Nn] = w; } catch (F) { yi(v, v.return, F); } @@ -6267,7 +6267,7 @@ Error generating stack: ` + M.message + ` he(v, C), M & 4 && wy(v, C), M & 64 && (v = C.memoizedState, v !== null && (v = v.dehydrated, v !== null && (C = Cy.bind( null, C - ), AE(v, C)))); + ), CE(v, C)))); break; case 22: if (M = C.memoizedState !== null || Tl, !M) { @@ -6439,7 +6439,7 @@ Error generating stack: ` + M.message + ` w.forEach(function(M) { if (!C.has(M)) { C.add(M); - var F = _E.bind(null, v, M); + var F = bE.bind(null, v, M); M.then(F, F); } }); @@ -7277,7 +7277,7 @@ Error generating stack: ` + M.message + ` } function l_(v, w, C) { if ((zt & 6) !== 0) throw Error(n(327)); - var M = !C && (w & 127) === 0 && (w & v.expiredLanes) === 0 || Ut(v, w), F = M ? yE(v, w) : d0(v, w, !0), V = M; + var M = !C && (w & 127) === 0 && (w & v.expiredLanes) === 0 || Ut(v, w), F = M ? gE(v, w) : d0(v, w, !0), V = M; do { if (F === 0) { eu && !M && vd(v, w, 0, !1); @@ -7413,7 +7413,7 @@ Error generating stack: ` + M.message + ` _t ); var rr = (V & 62914560) === V ? ag - Ie() : (V & 4194048) === V ? o_ - Ie() : 0; - if (rr = jE( + if (rr = LE( _t, rr ), rr !== null) { @@ -7501,7 +7501,7 @@ Error generating stack: ` + M.message + ` } function qv(v, w) { var C = v.timeoutHandle; - C !== -1 && (v.timeoutHandle = -1, TE(C)), C = v.cancelPendingCommit, C !== null && (v.cancelPendingCommit = null, C()), hd = 0, f0(), Hr = v, fr = C = Oo(v.current, null), Mr = w, _r = 0, ui = null, po = !1, eu = Ut(v, w), Yc = !1, $c = Lo = Xh = xc = Xc = qi = 0, go = Xd = null, $d = !1, (w & 8) !== 0 && (w |= w & 32); + C !== -1 && (v.timeoutHandle = -1, OE(C)), C = v.cancelPendingCommit, C !== null && (v.cancelPendingCommit = null, C()), hd = 0, f0(), Hr = v, fr = C = Oo(v.current, null), Mr = w, _r = 0, ui = null, po = !1, eu = Ut(v, w), Yc = !1, $c = Lo = Xh = xc = Xc = qi = 0, go = Xd = null, $d = !1, (w & 8) !== 0 && (w |= w & 32); var M = v.entangledLanes; if (M !== 0) for (v = v.entanglements, M &= w; 0 < M; ) { @@ -7565,7 +7565,7 @@ Error generating stack: ` + M.message + ` it = _r, _r = 0, ui = null, Gv(v, Se, Fe, it); } } - gE(), ae = qi; + pE(), ae = qi; break; } catch (ht) { d_(v, ht); @@ -7573,10 +7573,10 @@ Error generating stack: ` + M.message + ` while (!0); return w && v.shellSuspendCounter++, Tu = Yr = null, zt = M, H.H = F, H.A = V, fr === null && (Hr = null, Mr = 0, Ws()), ae; } - function gE() { + function pE() { for (; fr !== null; ) p_(fr); } - function yE(v, w) { + function gE(v, w) { var C = zt; zt |= 2; var M = h_(), F = v_(); @@ -7643,7 +7643,7 @@ Error generating stack: ` + M.message + ` throw Error(n(462)); } } - mE(); + yE(); break; } catch (ht) { d_(v, ht); @@ -7651,7 +7651,7 @@ Error generating stack: ` + M.message + ` while (!0); return Tu = Yr = null, H.H = M, H.A = F, zt = C, fr !== null ? 0 : (Hr = null, Mr = 0, Ws(), qi); } - function mE() { + function yE() { for (; fr !== null && !Ee(); ) p_(fr); } @@ -7775,7 +7775,7 @@ Error generating stack: ` + M.message + ` ae, Se, Fe - ), v === Hr && (fr = Hr = null, Mr = 0), zv = w, Zd = v, hd = C, u0 = V, l0 = F, s_ = M, (w.subtreeFlags & 10256) !== 0 || (w.flags & 10256) !== 0 ? (v.callbackNode = null, v.callbackPriority = 0, wE(wt, function() { + ), v === Hr && (fr = Hr = null, Mr = 0), zv = w, Zd = v, hd = C, u0 = V, l0 = F, s_ = M, (w.subtreeFlags & 10256) !== 0 || (w.flags & 10256) !== 0 ? (v.callbackNode = null, v.callbackPriority = 0, _E(wt, function() { return g0(), null; })) : (v.callbackNode = null, v.callbackPriority = 0), M = (w.flags & 13878) !== 0, (w.subtreeFlags & 13878) !== 0 || M) { M = H.T, H.T = null, F = q.p, q.p = 2, ae = zt, zt |= 4; @@ -7871,7 +7871,7 @@ Error generating stack: ` + M.message + ` } function Ty() { if (yo === 4 || yo === 3) { - yo = 0, De(); + yo = 0, Me(); var v = Zd, w = zv, C = hd, M = s_; (w.subtreeFlags & 10256) !== 0 || (w.flags & 10256) !== 0 ? yo = 5 : (yo = 0, zv = Zd = null, p0(v, v.pendingLanes)); var F = v.pendingLanes; @@ -7970,9 +7970,9 @@ Error generating stack: ` + M.message + ` M.set(w, F); } else F = M.get(w), F === void 0 && (F = /* @__PURE__ */ new Set(), M.set(w, F)); - F.has(C) || (Yc = !0, F.add(C), v = bE.bind(null, v, w, C), w.then(v, v)); + F.has(C) || (Yc = !0, F.add(C), v = mE.bind(null, v, w, C), w.then(v, v)); } - function bE(v, w, C) { + function mE(v, w, C) { var M = v.pingCache; M !== null && M.delete(w), v.pingedLanes |= v.suspendedLanes & C, v.warmLanes &= ~C, Hr === v && (Mr & C) === C && (qi === 4 || qi === 3 && (Mr & 62914560) === Mr && 300 > Ie() - ag ? (zt & 2) === 0 && qv(v, 0) : Xh |= C, $c === Mr && ($c = 0)), Af(v); } @@ -7983,7 +7983,7 @@ Error generating stack: ` + M.message + ` var w = v.memoizedState, C = 0; w !== null && (C = w.retryLane), cg(v, C); } - function _E(v, w) { + function bE(v, w) { var C = 0; switch (v.tag) { case 31: @@ -8002,12 +8002,12 @@ Error generating stack: ` + M.message + ` } M !== null && M.delete(w), cg(v, C); } - function wE(v, w) { + function _E(v, w) { return ie(v, w); } var Vv = null, Kh = null, b0 = !1, Ay = !1, _0 = !1, Qd = 0; function Af(v) { - v !== Kh && v.next === null && (Kh === null ? Vv = Kh = v : Kh = Kh.next = v), Ay = !0, b0 || (b0 = !0, EE()); + v !== Kh && v.next === null && (Kh === null ? Vv = Kh = v : Kh = Kh.next = v), Ay = !0, b0 || (b0 = !0, xE()); } function fg(v, w) { if (!_0 && Ay) { @@ -8034,13 +8034,13 @@ Error generating stack: ` + M.message + ` _0 = !1; } } - function xE() { + function wE() { m_(); } function m_() { Ay = b0 = !1; var v = 0; - Qd !== 0 && OE() && (v = Qd); + Qd !== 0 && SE() && (v = Qd); for (var w = Ie(), C = null, M = Vv; M !== null; ) { var F = M.next, V = b_(M, w); V === 0 ? (M.next = null, C === null ? Vv = F : C.next = F, F === null && (Kh = C)) : (C = M, (v !== 0 || (V & 3) !== 0) && (Ay = !0)), M = F; @@ -8095,11 +8095,11 @@ Error generating stack: ` + M.message + ` if (lg()) return null; l_(v, w, !0); } - function EE() { + function xE() { P_(function() { (zt & 6) !== 0 ? ie( ot, - xE + wE ) : m_(); }); } @@ -8268,10 +8268,10 @@ Error generating stack: ` + M.message + ` function Py(v, w, C, M) { switch (K_(w)) { case 2: - var F = FE; + var F = BE; break; case 8: - F = UE; + F = FE; break; default: F = N0; @@ -9096,7 +9096,7 @@ Error generating stack: ` + M.message + ` for (Se in C) C.hasOwnProperty(Se) && (M = C[Se], M != null && Oi(v, w, Se, M, C, null)); } - function SE(v, w, C, M) { + function EE(v, w, C, M) { switch (w) { case "div": case "span": @@ -9405,11 +9405,11 @@ Error generating stack: ` + M.message + ` return v === "textarea" || v === "noscript" || typeof w.children == "string" || typeof w.children == "number" || typeof w.children == "bigint" || typeof w.dangerouslySetInnerHTML == "object" && w.dangerouslySetInnerHTML !== null && w.dangerouslySetInnerHTML.__html != null; } var A0 = null; - function OE() { + function SE() { var v = window.event; return v && v.type === "popstate" ? v === A0 ? !1 : (A0 = v, !0) : (A0 = null, !1); } - var A_ = typeof setTimeout == "function" ? setTimeout : void 0, TE = typeof clearTimeout == "function" ? clearTimeout : void 0, R_ = typeof Promise == "function" ? Promise : void 0, P_ = typeof queueMicrotask == "function" ? queueMicrotask : typeof R_ < "u" ? function(v) { + var A_ = typeof setTimeout == "function" ? setTimeout : void 0, OE = typeof clearTimeout == "function" ? clearTimeout : void 0, R_ = typeof Promise == "function" ? Promise : void 0, P_ = typeof queueMicrotask == "function" ? queueMicrotask : typeof R_ < "u" ? function(v) { return R_.resolve(null).then(v).catch(pd); } : A_; function pd(v) { @@ -9480,7 +9480,7 @@ Error generating stack: ` + M.message + ` v.removeChild(C); } } - function CE(v, w, C, M) { + function TE(v, w, C, M) { for (; v.nodeType === 1; ) { var F = C; if (v.nodeName.toLowerCase() !== w.toLowerCase()) { @@ -9534,7 +9534,7 @@ Error generating stack: ` + M.message + ` function Hv(v) { return v.data === "$!" || v.data === "$?" && v.ownerDocument.readyState !== "loading"; } - function AE(v, w) { + function CE(v, w) { var C = v.ownerDocument; if (v.data === "$~") v._reactRetry = w; else if (v.data !== "$?" || C.readyState !== "loading") @@ -9615,21 +9615,21 @@ Error generating stack: ` + M.message + ` } var gd = q.d; q.d = { - f: RE, - r: PE, + f: AE, + r: RE, D: M0, - C: ME, - L: DE, - m: kE, + C: PE, + L: ME, + m: DE, X: Gu, S: jo, - M: IE + M: kE }; - function RE() { + function AE() { var v = gd.f(), w = Ey(); return v || w; } - function PE(v) { + function RE(v) { var w = Bt(v); w !== null && w.tag === 5 && w.type === "form" ? $p(w) : gd.r(v); } @@ -9644,10 +9644,10 @@ Error generating stack: ` + M.message + ` function M0(v) { gd.D(v), L_("dns-prefetch", v, null); } - function ME(v, w) { + function PE(v, w) { gd.C(v, w), L_("preconnect", v, w); } - function DE(v, w, C) { + function ME(v, w, C) { gd.L(v, w, C); var M = th; if (M && v && w) { @@ -9675,7 +9675,7 @@ Error generating stack: ` + M.message + ` ), Sc.set(V, v), M.querySelector(F) !== null || w === "style" && M.querySelector(Yv(V)) || w === "script" && M.querySelector($v(V)) || (w = M.createElement("link"), as(w, "link", v), Hn(w), M.head.appendChild(w))); } } - function kE(v, w) { + function DE(v, w) { gd.m(v, w); var C = th; if (C && v) { @@ -9753,7 +9753,7 @@ Error generating stack: ` + M.message + ` }, M.set(F, V)); } } - function IE(v, w) { + function kE(v, w) { gd.M(v, w); var C = th; if (C && v) { @@ -9804,7 +9804,7 @@ Error generating stack: ` + M.message + ` media: C.media, hrefLang: C.hrefLang, referrerPolicy: C.referrerPolicy - }, Sc.set(v, C), V || NE( + }, Sc.set(v, C), V || IE( F, v, C, @@ -9841,7 +9841,7 @@ Error generating stack: ` + M.message + ` precedence: null }); } - function NE(v, w, C, M) { + function IE(v, w, C, M) { v.querySelector('link[rel="preload"][as="style"][' + w + "]") ? M.loading = 1 : (w = v.createElement("link"), M.preload = w, w.addEventListener("load", function() { return M.loading |= 1; }), w.addEventListener("error", function() { @@ -9938,7 +9938,7 @@ Error generating stack: ` + M.message + ` w === "title" ? v.querySelector("head > title") : null ); } - function LE(v, w, C) { + function NE(v, w, C) { if (C === 1 || w.itemProp != null) return !1; switch (v) { case "meta": @@ -9986,7 +9986,7 @@ Error generating stack: ` + M.message + ` } } var k0 = 0; - function jE(v, w) { + function LE(v, w) { return v.stylesheets && v.count === 0 && Fy(v, v.stylesheets), 0 < v.count || 0 < v.imgCount ? function(C) { var M = setTimeout(function() { if (v.stylesheets && Fy(v, v.stylesheets), v.unsuspend) { @@ -10047,11 +10047,11 @@ Error generating stack: ` + M.message + ` _currentValue2: W, _threadCount: 0 }; - function BE(v, w, C, M, F, V, ae, Se, Fe) { + function jE(v, w, C, M, F, V, ae, Se, Fe) { this.tag = 1, this.containerInfo = v, this.pingCache = this.current = this.pendingChildren = null, this.timeoutHandle = -1, this.callbackNode = this.next = this.pendingContext = this.context = this.cancelPendingCommit = null, this.callbackPriority = 0, this.expirationTimes = Vr(-1), this.entangledLanes = this.shellSuspendCounter = this.errorRecoveryDisabledLanes = this.expiredLanes = this.warmLanes = this.pingedLanes = this.suspendedLanes = this.pendingLanes = 0, this.entanglements = Vr(0), this.hiddenUpdates = Vr(null), this.identifierPrefix = M, this.onUncaughtError = F, this.onCaughtError = V, this.onRecoverableError = ae, this.pooledCache = null, this.pooledCacheLanes = 0, this.formState = Fe, this.incompleteTransitions = /* @__PURE__ */ new Map(); } function V_(v, w, C, M, F, V, ae, Se, Fe, it, ht, _t) { - return v = new BE( + return v = new jE( v, w, C, @@ -10097,7 +10097,7 @@ Error generating stack: ` + M.message + ` } } var Uy = !0; - function FE(v, w, C, M) { + function BE(v, w, C, M) { var F = H.T; H.T = null; var V = q.p; @@ -10107,7 +10107,7 @@ Error generating stack: ` + M.message + ` q.p = V, H.T = F; } } - function UE(v, w, C, M) { + function FE(v, w, C, M) { var F = H.T; H.T = null; var V = q.p; @@ -10136,7 +10136,7 @@ Error generating stack: ` + M.message + ` M )) M.stopPropagation(); - else if (Z_(v, M), w & 4 && -1 < zE.indexOf(v)) { + else if (Z_(v, M), w & 4 && -1 < UE.indexOf(v)) { for (; F !== null; ) { var V = Bt(F); if (V !== null) @@ -10296,7 +10296,7 @@ Error generating stack: ` + M.message + ` return 32; } } - var B0 = !1, rh = null, nh = null, ih = null, _g = /* @__PURE__ */ new Map(), wg = /* @__PURE__ */ new Map(), ah = [], zE = "mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split( + var B0 = !1, rh = null, nh = null, ih = null, _g = /* @__PURE__ */ new Map(), wg = /* @__PURE__ */ new Map(), ah = [], UE = "mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split( " " ); function Z_(v, w) { @@ -10435,13 +10435,13 @@ Error generating stack: ` + M.message + ` function J_(v, w, C) { qy(v) && C.delete(w); } - function qE() { + function zE() { B0 = !1, rh !== null && qy(rh) && (rh = null), nh !== null && qy(nh) && (nh = null), ih !== null && qy(ih) && (ih = null), _g.forEach(J_), wg.forEach(J_); } function Qv(v, w) { v.blockedOn === w && (v.blockedOn = null, B0 || (B0 = !0, r.unstable_scheduleCallback( r.unstable_NormalPriority, - qE + zE ))); } var Gy = null; @@ -10574,7 +10574,7 @@ Error generating stack: ` + M.message + ` throw typeof v.render == "function" ? Error(n(188)) : (v = Object.keys(v).join(","), Error(n(268, v))); return v = l(w), v = v !== null ? c(v) : null, v = v === null ? null : v.stateNode, v; }; - var GE = { + var qE = { bundleType: 0, version: "19.2.4", rendererPackageName: "react-dom", @@ -10586,7 +10586,7 @@ Error generating stack: ` + M.message + ` if (!Hy.isDisabled && Hy.supportsFiber) try { _e = Hy.inject( - GE + qE ), Ue = Hy; } catch { } @@ -10629,7 +10629,7 @@ Error generating stack: ` + M.message + ` } var ok; function iV() { - if (ok) return YE.exports; + if (ok) return WE.exports; ok = 1; function r() { if (!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ > "u" || typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE != "function")) @@ -10639,7 +10639,7 @@ function iV() { console.error(e); } } - return r(), YE.exports = nV(), YE.exports; + return r(), WE.exports = nV(), WE.exports; } var aV = iV(); let U9 = me.createContext( @@ -11470,7 +11470,7 @@ Object.assign(Object.assign({}, fV), { extend: { zIndex: Object.assign({}, Ds.zIndex), spacing: Object.assign(Object.assign({}, Object.keys(Ds.space).reduce((r, e) => Object.assign(Object.assign({}, r), { [`token-${e}`]: Ds.space[e] }), {})), { 0: "0px", px: "1px", 0.5: "2px", 1: "4px", 1.5: "6px", 2: "8px", 2.5: "10px", 3: "12px", 3.5: "14px", 4: "16px", 5: "20px", 6: "24px", 7: "28px", 8: "32px", 9: "36px", 10: "40px", 11: "44px", 12: "48px", 14: "56px", 16: "64px", 20: "20px", 24: "96px", 28: "112px", 32: "128px", 36: "144px", 40: "160px", 44: "176px", 48: "192px", 52: "208px", 56: "224px", 60: "240px", 64: "256px", 72: "288px", 80: "320px", 96: "384px" }) } }); -var ZE = { exports: {} }; +var KE = { exports: {} }; /*! Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see @@ -11507,10 +11507,10 @@ function dV() { } r.exports ? (t.default = t, r.exports = t) : window.classNames = t; })(); - })(ZE)), ZE.exports; + })(KE)), KE.exports; } var hV = dV(); -const Vn = /* @__PURE__ */ Bp(hV), JP = (r) => console.warn(`[🪡 Needle]: ${r}`); +const Vn = /* @__PURE__ */ Bp(hV), QP = (r) => console.warn(`[🪡 Needle]: ${r}`); var vV = function(r, e) { var t = {}; for (var n in r) Object.prototype.hasOwnProperty.call(r, n) && e.indexOf(n) < 0 && (t[n] = r[n]); @@ -11525,7 +11525,7 @@ const pV = (r) => { "ndl-divider-horizontal": e === "horizontal", "ndl-divider-vertical": e === "vertical" }), l = t || "div"; - return Te.jsx(l, Object.assign({ className: u, style: n, role: "separator", "aria-orientation": e, ref: o }, s, a)); + return Ce.jsx(l, Object.assign({ className: u, style: n, role: "separator", "aria-orientation": e, ref: o }, s, a)); }; var gV = function(r, e) { var t = {}; @@ -11541,12 +11541,12 @@ function zo(r) { var { className: n = "", style: i, ref: a, htmlAttributes: o } = t, s = gV(t, ["className", "style", "ref", "htmlAttributes"]); return ( // @ts-expect-error – Original is of any type and we don't know what props it accepts - Te.jsx(r, Object.assign({ strokeWidth: 1.5, style: i, className: `${yV} ${n}`.trim(), "aria-hidden": "true" }, s, o, { ref: a })) + Ce.jsx(r, Object.assign({ strokeWidth: 1.5, style: i, className: `${yV} ${n}`.trim(), "aria-hidden": "true" }, s, o, { ref: a })) ); }; return ao.memo(e); } -const mV = (r) => Te.jsx("svg", Object.assign({ viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, r, { children: Te.jsx("path", { d: "M13.0312 13.5625C12.6824 13.5625 12.337 13.4938 12.0147 13.3603C11.6925 13.2268 11.3997 13.0312 11.153 12.7845C10.9063 12.5378 10.7107 12.245 10.5772 11.9228C10.4437 11.6005 10.375 11.2551 10.375 10.9062C10.375 10.5574 10.4437 10.212 10.5772 9.88975C10.7107 9.56748 10.9063 9.27465 11.153 9.028C11.3997 8.78134 11.6925 8.58568 12.0147 8.45219C12.337 8.31871 12.6824 8.25 13.0312 8.25C13.3801 8.25 13.7255 8.31871 14.0478 8.45219C14.37 8.58568 14.6628 8.78134 14.9095 9.028C15.1562 9.27465 15.3518 9.56748 15.4853 9.88975C15.6188 10.212 15.6875 10.5574 15.6875 10.9062C15.6875 11.2551 15.6188 11.6005 15.4853 11.9228C15.3518 12.245 15.1562 12.5378 14.9095 12.7845C14.6628 13.0312 14.37 13.2268 14.0478 13.3603C13.7255 13.4938 13.3801 13.5625 13.0312 13.5625ZM13.0312 13.5625V16.75M13.0312 16.75C13.4539 16.75 13.8593 16.9179 14.1582 17.2168C14.4571 17.5157 14.625 17.9211 14.625 18.3438C14.625 18.7664 14.4571 19.1718 14.1582 19.4707C13.8593 19.7696 13.4539 19.9375 13.0312 19.9375C12.6086 19.9375 12.2032 19.7696 11.9043 19.4707C11.6054 19.1718 11.4375 18.7664 11.4375 18.3438C11.4375 17.9211 11.6054 17.5157 11.9043 17.2168C12.2032 16.9179 12.6086 16.75 13.0312 16.75ZM14.9091 9.02926L17.2182 6.72009M15.3645 12.177L16.983 13.7955M11.1548 12.7827L6.71997 17.2176M10.5528 9.95081L7.4425 8.08435M16.75 5.59375C16.75 6.01644 16.9179 6.42182 17.2168 6.7207C17.5157 7.01959 17.9211 7.1875 18.3438 7.1875C18.7664 7.1875 19.1718 7.01959 19.4707 6.7207C19.7696 6.42182 19.9375 6.01644 19.9375 5.59375C19.9375 5.17106 19.7696 4.76568 19.4707 4.4668C19.1718 4.16791 18.7664 4 18.3438 4C17.9211 4 17.5157 4.16791 17.2168 4.4668C16.9179 4.76568 16.75 5.17106 16.75 5.59375ZM16.75 14.625C16.75 15.0477 16.9179 15.4531 17.2168 15.752C17.5157 16.0508 17.9211 16.2187 18.3438 16.2187C18.7664 16.2187 19.1718 16.0508 19.4707 15.752C19.7696 15.4531 19.9375 15.0477 19.9375 14.625C19.9375 14.2023 19.7696 13.7969 19.4707 13.498C19.1718 13.1992 18.7664 13.0312 18.3438 13.0312C17.9211 13.0312 17.5157 13.1992 17.2168 13.498C16.9179 13.7969 16.75 14.2023 16.75 14.625ZM4 18.3438C4 18.553 4.04122 18.7603 4.12132 18.9537C4.20141 19.147 4.31881 19.3227 4.4668 19.4707C4.61479 19.6187 4.79049 19.7361 4.98385 19.8162C5.17721 19.8963 5.38446 19.9375 5.59375 19.9375C5.80304 19.9375 6.01029 19.8963 6.20365 19.8162C6.39701 19.7361 6.57271 19.6187 6.7207 19.4707C6.86869 19.3227 6.98609 19.147 7.06618 18.9537C7.14628 18.7603 7.1875 18.553 7.1875 18.3438C7.1875 18.1345 7.14628 17.9272 7.06618 17.7338C6.98609 17.5405 6.86869 17.3648 6.7207 17.2168C6.57271 17.0688 6.39701 16.9514 6.20365 16.8713C6.01029 16.7912 5.80304 16.75 5.59375 16.75C5.38446 16.75 5.17721 16.7912 4.98385 16.8713C4.79049 16.9514 4.61479 17.0688 4.4668 17.2168C4.31881 17.3648 4.20141 17.5405 4.12132 17.7338C4.04122 17.9272 4 18.1345 4 18.3438ZM4.53125 7.1875C4.53125 7.61019 4.69916 8.01557 4.99805 8.31445C5.29693 8.61334 5.70231 8.78125 6.125 8.78125C6.54769 8.78125 6.95307 8.61334 7.25195 8.31445C7.55084 8.01557 7.71875 7.61019 7.71875 7.1875C7.71875 6.76481 7.55084 6.35943 7.25195 6.06055C6.95307 5.76166 6.54769 5.59375 6.125 5.59375C5.70231 5.59375 5.29693 5.76166 4.99805 6.06055C4.69916 6.35943 4.53125 6.76481 4.53125 7.1875Z", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }) })), bV = zo(mV), _V = (r) => Te.jsxs("svg", Object.assign({ viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, r, { children: [Te.jsx("rect", { x: 5.94, y: 5.94, width: 12.12, height: 12.12, rx: 1.5, stroke: "currentColor", strokeWidth: 1.5 }), Te.jsx("path", { d: "M3 9.75V5.25C3 4.01 4.01 3 5.25 3H9.75", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round" }), Te.jsx("path", { d: "M14.25 3H18.75C19.99 3 21 4.01 21 5.25V9.75", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round" }), Te.jsx("path", { d: "M3 14.25V18.75C3 19.99 4.01 21 5.25 21H9.75", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round" }), Te.jsx("path", { d: "M21 14.25V18.75C21 19.99 19.99 21 18.75 21H14.25", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round" })] })), wV = zo(_V), xV = (r) => Te.jsx("svg", Object.assign({ viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, r, { children: Te.jsx("path", { d: "M11.9992 6.60001C11.5218 6.60001 11.064 6.41036 10.7264 6.0728C10.3889 5.73523 10.1992 5.27739 10.1992 4.8C10.1992 4.32261 10.3889 3.86477 10.7264 3.52721C11.064 3.18964 11.5218 3 11.9992 3C12.4766 3 12.9344 3.18964 13.272 3.52721C13.6096 3.86477 13.7992 4.32261 13.7992 4.8C13.7992 5.27739 13.6096 5.73523 13.272 6.0728C12.9344 6.41036 12.4766 6.60001 11.9992 6.60001ZM11.9992 6.60001V17.4M11.9992 17.4C12.4766 17.4 12.9344 17.5897 13.272 17.9272C13.6096 18.2648 13.7992 18.7226 13.7992 19.2C13.7992 19.6774 13.6096 20.1353 13.272 20.4728C12.9344 20.8104 12.4766 21 11.9992 21C11.5218 21 11.064 20.8104 10.7264 20.4728C10.3889 20.1353 10.1992 19.6774 10.1992 19.2C10.1992 18.7226 10.3889 18.2648 10.7264 17.9272C11.064 17.5897 11.5218 17.4 11.9992 17.4ZM5.39844 17.4C5.39844 16.1269 5.90415 14.906 6.80433 14.0059C7.7045 13.1057 8.9254 12.6 10.1984 12.6H13.7984C15.0715 12.6 16.2924 13.1057 17.1926 14.0059C18.0927 14.906 18.5985 16.1269 18.5985 17.4M3.59961 19.2C3.59961 19.6774 3.78925 20.1353 4.12682 20.4728C4.46438 20.8104 4.92222 21 5.39961 21C5.877 21 6.33484 20.8104 6.67241 20.4728C7.00997 20.1353 7.19961 19.6774 7.19961 19.2C7.19961 18.7226 7.00997 18.2648 6.67241 17.9272C6.33484 17.5897 5.877 17.4 5.39961 17.4C4.92222 17.4 4.46438 17.5897 4.12682 17.9272C3.78925 18.2648 3.59961 18.7226 3.59961 19.2ZM16.8008 19.2C16.8008 19.6774 16.9904 20.1353 17.328 20.4728C17.6656 20.8104 18.1234 21 18.6008 21C19.0782 21 19.536 20.8104 19.8736 20.4728C20.2111 20.1353 20.4008 19.6774 20.4008 19.2C20.4008 18.7226 20.2111 18.2648 19.8736 17.9272C19.536 17.5897 19.0782 17.4 18.6008 17.4C18.1234 17.4 17.6656 17.5897 17.328 17.9272C16.9904 18.2648 16.8008 18.7226 16.8008 19.2Z", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }) })), EV = zo(xV), SV = (r) => Te.jsx("svg", Object.assign({ viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, r, { children: Te.jsx("path", { d: "M9.95398 16.3762C11.4106 18.0304 12.3812 19.1337 12.3768 21.2003M7.8431 20.2339C10.0323 20.2339 10.5789 18.6865 10.5789 17.912C10.5789 17.1405 10.0309 15.593 7.8431 15.593C5.65388 15.593 5.1073 17.1405 5.1073 17.9135C5.1073 18.6865 5.65532 20.2339 7.8431 20.2339ZM11.9941 16.0464C4.49482 16.0464 2.62 11.6305 2.62 9.4225C2.62 7.21598 4.49482 2.80005 11.9941 2.80005C19.4934 2.80005 21.3682 7.21598 21.3682 9.4225C21.3682 11.6305 19.4934 16.0464 11.9941 16.0464Z", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }) })), z9 = zo(SV), OV = (r) => Te.jsx("svg", Object.assign({ viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, r, { children: Te.jsx("path", { d: "M14.0601 5.25V18.75M20.4351 18C20.4351 18.45 20.1351 18.75 19.6851 18.75H4.31006C3.86006 18.75 3.56006 18.45 3.56006 18V6C3.56006 5.55 3.86006 5.25 4.31006 5.25H19.6851C20.1351 5.25 20.4351 5.55 20.4351 6V18Z", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }) })), TV = zo(OV), CV = (r) => Te.jsx("svg", Object.assign({ viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, r, { children: Te.jsx("path", { d: "M16.3229 22.0811L11.9385 14.4876M11.9385 14.4876L8.6037 19.5387L5.09035 2.62536L17.9807 14.1249L11.9385 14.4876Z", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }) })), l2 = zo(CV), AV = (r) => Te.jsx("svg", Object.assign({ viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, r, { children: Te.jsx("path", { d: "M20.9998 19.0001C20.9998 20.1046 20.1046 20.9998 19.0001 20.9998M3 4.99969C3 3.8953 3.8953 3 4.99969 3M19.0001 3C20.1046 3 20.9998 3.8953 20.9998 4.99969M3 19.0001C3 20.1046 3.8953 20.9998 4.99969 20.9998M20.9972 10.0067V14.0061M3 14.0061V10.0067M9.99854 3H13.9979M9.99854 20.9972H13.9979", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }) })), q9 = zo(AV); +const mV = (r) => Ce.jsx("svg", Object.assign({ viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, r, { children: Ce.jsx("path", { d: "M13.0312 13.5625C12.6824 13.5625 12.337 13.4938 12.0147 13.3603C11.6925 13.2268 11.3997 13.0312 11.153 12.7845C10.9063 12.5378 10.7107 12.245 10.5772 11.9228C10.4437 11.6005 10.375 11.2551 10.375 10.9062C10.375 10.5574 10.4437 10.212 10.5772 9.88975C10.7107 9.56748 10.9063 9.27465 11.153 9.028C11.3997 8.78134 11.6925 8.58568 12.0147 8.45219C12.337 8.31871 12.6824 8.25 13.0312 8.25C13.3801 8.25 13.7255 8.31871 14.0478 8.45219C14.37 8.58568 14.6628 8.78134 14.9095 9.028C15.1562 9.27465 15.3518 9.56748 15.4853 9.88975C15.6188 10.212 15.6875 10.5574 15.6875 10.9062C15.6875 11.2551 15.6188 11.6005 15.4853 11.9228C15.3518 12.245 15.1562 12.5378 14.9095 12.7845C14.6628 13.0312 14.37 13.2268 14.0478 13.3603C13.7255 13.4938 13.3801 13.5625 13.0312 13.5625ZM13.0312 13.5625V16.75M13.0312 16.75C13.4539 16.75 13.8593 16.9179 14.1582 17.2168C14.4571 17.5157 14.625 17.9211 14.625 18.3438C14.625 18.7664 14.4571 19.1718 14.1582 19.4707C13.8593 19.7696 13.4539 19.9375 13.0312 19.9375C12.6086 19.9375 12.2032 19.7696 11.9043 19.4707C11.6054 19.1718 11.4375 18.7664 11.4375 18.3438C11.4375 17.9211 11.6054 17.5157 11.9043 17.2168C12.2032 16.9179 12.6086 16.75 13.0312 16.75ZM14.9091 9.02926L17.2182 6.72009M15.3645 12.177L16.983 13.7955M11.1548 12.7827L6.71997 17.2176M10.5528 9.95081L7.4425 8.08435M16.75 5.59375C16.75 6.01644 16.9179 6.42182 17.2168 6.7207C17.5157 7.01959 17.9211 7.1875 18.3438 7.1875C18.7664 7.1875 19.1718 7.01959 19.4707 6.7207C19.7696 6.42182 19.9375 6.01644 19.9375 5.59375C19.9375 5.17106 19.7696 4.76568 19.4707 4.4668C19.1718 4.16791 18.7664 4 18.3438 4C17.9211 4 17.5157 4.16791 17.2168 4.4668C16.9179 4.76568 16.75 5.17106 16.75 5.59375ZM16.75 14.625C16.75 15.0477 16.9179 15.4531 17.2168 15.752C17.5157 16.0508 17.9211 16.2187 18.3438 16.2187C18.7664 16.2187 19.1718 16.0508 19.4707 15.752C19.7696 15.4531 19.9375 15.0477 19.9375 14.625C19.9375 14.2023 19.7696 13.7969 19.4707 13.498C19.1718 13.1992 18.7664 13.0312 18.3438 13.0312C17.9211 13.0312 17.5157 13.1992 17.2168 13.498C16.9179 13.7969 16.75 14.2023 16.75 14.625ZM4 18.3438C4 18.553 4.04122 18.7603 4.12132 18.9537C4.20141 19.147 4.31881 19.3227 4.4668 19.4707C4.61479 19.6187 4.79049 19.7361 4.98385 19.8162C5.17721 19.8963 5.38446 19.9375 5.59375 19.9375C5.80304 19.9375 6.01029 19.8963 6.20365 19.8162C6.39701 19.7361 6.57271 19.6187 6.7207 19.4707C6.86869 19.3227 6.98609 19.147 7.06618 18.9537C7.14628 18.7603 7.1875 18.553 7.1875 18.3438C7.1875 18.1345 7.14628 17.9272 7.06618 17.7338C6.98609 17.5405 6.86869 17.3648 6.7207 17.2168C6.57271 17.0688 6.39701 16.9514 6.20365 16.8713C6.01029 16.7912 5.80304 16.75 5.59375 16.75C5.38446 16.75 5.17721 16.7912 4.98385 16.8713C4.79049 16.9514 4.61479 17.0688 4.4668 17.2168C4.31881 17.3648 4.20141 17.5405 4.12132 17.7338C4.04122 17.9272 4 18.1345 4 18.3438ZM4.53125 7.1875C4.53125 7.61019 4.69916 8.01557 4.99805 8.31445C5.29693 8.61334 5.70231 8.78125 6.125 8.78125C6.54769 8.78125 6.95307 8.61334 7.25195 8.31445C7.55084 8.01557 7.71875 7.61019 7.71875 7.1875C7.71875 6.76481 7.55084 6.35943 7.25195 6.06055C6.95307 5.76166 6.54769 5.59375 6.125 5.59375C5.70231 5.59375 5.29693 5.76166 4.99805 6.06055C4.69916 6.35943 4.53125 6.76481 4.53125 7.1875Z", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }) })), bV = zo(mV), _V = (r) => Ce.jsxs("svg", Object.assign({ viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, r, { children: [Ce.jsx("rect", { x: 5.94, y: 5.94, width: 12.12, height: 12.12, rx: 1.5, stroke: "currentColor", strokeWidth: 1.5 }), Ce.jsx("path", { d: "M3 9.75V5.25C3 4.01 4.01 3 5.25 3H9.75", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round" }), Ce.jsx("path", { d: "M14.25 3H18.75C19.99 3 21 4.01 21 5.25V9.75", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round" }), Ce.jsx("path", { d: "M3 14.25V18.75C3 19.99 4.01 21 5.25 21H9.75", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round" }), Ce.jsx("path", { d: "M21 14.25V18.75C21 19.99 19.99 21 18.75 21H14.25", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round" })] })), wV = zo(_V), xV = (r) => Ce.jsx("svg", Object.assign({ viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, r, { children: Ce.jsx("path", { d: "M11.9992 6.60001C11.5218 6.60001 11.064 6.41036 10.7264 6.0728C10.3889 5.73523 10.1992 5.27739 10.1992 4.8C10.1992 4.32261 10.3889 3.86477 10.7264 3.52721C11.064 3.18964 11.5218 3 11.9992 3C12.4766 3 12.9344 3.18964 13.272 3.52721C13.6096 3.86477 13.7992 4.32261 13.7992 4.8C13.7992 5.27739 13.6096 5.73523 13.272 6.0728C12.9344 6.41036 12.4766 6.60001 11.9992 6.60001ZM11.9992 6.60001V17.4M11.9992 17.4C12.4766 17.4 12.9344 17.5897 13.272 17.9272C13.6096 18.2648 13.7992 18.7226 13.7992 19.2C13.7992 19.6774 13.6096 20.1353 13.272 20.4728C12.9344 20.8104 12.4766 21 11.9992 21C11.5218 21 11.064 20.8104 10.7264 20.4728C10.3889 20.1353 10.1992 19.6774 10.1992 19.2C10.1992 18.7226 10.3889 18.2648 10.7264 17.9272C11.064 17.5897 11.5218 17.4 11.9992 17.4ZM5.39844 17.4C5.39844 16.1269 5.90415 14.906 6.80433 14.0059C7.7045 13.1057 8.9254 12.6 10.1984 12.6H13.7984C15.0715 12.6 16.2924 13.1057 17.1926 14.0059C18.0927 14.906 18.5985 16.1269 18.5985 17.4M3.59961 19.2C3.59961 19.6774 3.78925 20.1353 4.12682 20.4728C4.46438 20.8104 4.92222 21 5.39961 21C5.877 21 6.33484 20.8104 6.67241 20.4728C7.00997 20.1353 7.19961 19.6774 7.19961 19.2C7.19961 18.7226 7.00997 18.2648 6.67241 17.9272C6.33484 17.5897 5.877 17.4 5.39961 17.4C4.92222 17.4 4.46438 17.5897 4.12682 17.9272C3.78925 18.2648 3.59961 18.7226 3.59961 19.2ZM16.8008 19.2C16.8008 19.6774 16.9904 20.1353 17.328 20.4728C17.6656 20.8104 18.1234 21 18.6008 21C19.0782 21 19.536 20.8104 19.8736 20.4728C20.2111 20.1353 20.4008 19.6774 20.4008 19.2C20.4008 18.7226 20.2111 18.2648 19.8736 17.9272C19.536 17.5897 19.0782 17.4 18.6008 17.4C18.1234 17.4 17.6656 17.5897 17.328 17.9272C16.9904 18.2648 16.8008 18.7226 16.8008 19.2Z", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }) })), EV = zo(xV), SV = (r) => Ce.jsx("svg", Object.assign({ viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, r, { children: Ce.jsx("path", { d: "M9.95398 16.3762C11.4106 18.0304 12.3812 19.1337 12.3768 21.2003M7.8431 20.2339C10.0323 20.2339 10.5789 18.6865 10.5789 17.912C10.5789 17.1405 10.0309 15.593 7.8431 15.593C5.65388 15.593 5.1073 17.1405 5.1073 17.9135C5.1073 18.6865 5.65532 20.2339 7.8431 20.2339ZM11.9941 16.0464C4.49482 16.0464 2.62 11.6305 2.62 9.4225C2.62 7.21598 4.49482 2.80005 11.9941 2.80005C19.4934 2.80005 21.3682 7.21598 21.3682 9.4225C21.3682 11.6305 19.4934 16.0464 11.9941 16.0464Z", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }) })), z9 = zo(SV), OV = (r) => Ce.jsx("svg", Object.assign({ viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, r, { children: Ce.jsx("path", { d: "M14.0601 5.25V18.75M20.4351 18C20.4351 18.45 20.1351 18.75 19.6851 18.75H4.31006C3.86006 18.75 3.56006 18.45 3.56006 18V6C3.56006 5.55 3.86006 5.25 4.31006 5.25H19.6851C20.1351 5.25 20.4351 5.55 20.4351 6V18Z", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }) })), TV = zo(OV), CV = (r) => Ce.jsx("svg", Object.assign({ viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, r, { children: Ce.jsx("path", { d: "M16.3229 22.0811L11.9385 14.4876M11.9385 14.4876L8.6037 19.5387L5.09035 2.62536L17.9807 14.1249L11.9385 14.4876Z", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }) })), l2 = zo(CV), AV = (r) => Ce.jsx("svg", Object.assign({ viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, r, { children: Ce.jsx("path", { d: "M20.9998 19.0001C20.9998 20.1046 20.1046 20.9998 19.0001 20.9998M3 4.99969C3 3.8953 3.8953 3 4.99969 3M19.0001 3C20.1046 3 20.9998 3.8953 20.9998 4.99969M3 19.0001C3 20.1046 3.8953 20.9998 4.99969 20.9998M20.9972 10.0067V14.0061M3 14.0061V10.0067M9.99854 3H13.9979M9.99854 20.9972H13.9979", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }) })), q9 = zo(AV); function RV({ title: r, titleId: e, @@ -11867,7 +11867,7 @@ var cH = function(r, e) { }; const Ed = (r) => { const { as: e, className: t = "", children: n, variant: i, htmlAttributes: a, ref: o } = r, s = cH(r, ["as", "className", "children", "variant", "htmlAttributes", "ref"]), u = Vn(`n-${i}`, t), l = e ?? "span"; - return Te.jsx(l, Object.assign({ className: u, ref: o }, s, a, { children: n })); + return Ce.jsx(l, Object.assign({ className: u, ref: o }, s, a, { children: n })); }; var fH = function(r, e) { var t = {}; @@ -11884,13 +11884,13 @@ const h1 = (r) => { "ndl-medium": t === "medium", "ndl-small": t === "small" }); - return Te.jsx(s, Object.assign({ className: u, role: "status", "aria-label": "Loading content", "aria-live": "polite", ref: a }, o, i, { children: Te.jsx("div", { className: "ndl-spin" }) })); + return Ce.jsx(s, Object.assign({ className: u, role: "status", "aria-label": "Loading content", "aria-live": "polite", ref: a }, o, i, { children: Ce.jsx("div", { className: "ndl-spin" }) })); }; function c2() { return typeof window < "u"; } function Fp(r) { - return E5(r) ? (r.nodeName || "").toLowerCase() : "#document"; + return x5(r) ? (r.nodeName || "").toLowerCase() : "#document"; } function Fl(r) { var e; @@ -11898,9 +11898,9 @@ function Fl(r) { } function Sh(r) { var e; - return (e = (E5(r) ? r.ownerDocument : r.document) || window.document) == null ? void 0 : e.documentElement; + return (e = (x5(r) ? r.ownerDocument : r.document) || window.document) == null ? void 0 : e.documentElement; } -function E5(r) { +function x5(r) { return c2() ? r instanceof Node || r instanceof Fl(r).Node : !1; } function da(r) { @@ -11937,14 +11937,14 @@ function f2(r) { }); } const gH = ["transform", "translate", "scale", "rotate", "perspective"], yH = ["transform", "translate", "scale", "rotate", "perspective", "filter"], mH = ["paint", "layout", "strict", "content"]; -function S5(r) { +function E5(r) { const e = d2(), t = da(r) ? Ff(r) : r; return gH.some((n) => t[n] ? t[n] !== "none" : !1) || (t.containerType ? t.containerType !== "normal" : !1) || !e && (t.backdropFilter ? t.backdropFilter !== "none" : !1) || !e && (t.filter ? t.filter !== "none" : !1) || yH.some((n) => (t.willChange || "").includes(n)) || mH.some((n) => (t.contain || "").includes(n)); } function bH(r) { let e = hv(r); for (; bo(e) && !cv(e); ) { - if (S5(e)) + if (E5(e)) return e; if (f2(e)) return null; @@ -11992,12 +11992,12 @@ function wp(r, e, t) { e === void 0 && (e = []), t === void 0 && (t = !0); const i = W9(r), a = i === ((n = r.ownerDocument) == null ? void 0 : n.body), o = Fl(i); if (a) { - const s = eM(o); + const s = JP(o); return e.concat(o, o.visualViewport || [], B1(i) ? i : [], s && t ? wp(s) : []); } return e.concat(i, wp(i, [], t)); } -function eM(r) { +function JP(r) { return r.parent && Object.getPrototypeOf(r.parent) ? r.frameElement : null; } const px = Math.min, Bg = Math.max, gx = Math.round, hm = Math.floor, _h = (r) => ({ @@ -12045,9 +12045,9 @@ function SH(r, e, t) { } function OH(r) { const e = yx(r); - return [tM(r), e, tM(e)]; + return [eM(r), e, eM(e)]; } -function tM(r) { +function eM(r) { return r.replace(/start|end/g, (e) => xH[e]); } const fk = ["left", "right"], dk = ["right", "left"], TH = ["top", "bottom"], CH = ["bottom", "top"]; @@ -12066,7 +12066,7 @@ function AH(r, e, t) { function RH(r, e, t, n) { const i = p2(r); let a = AH(qg(r), t === "start", n); - return i && (a = a.map((o) => o + "-" + i), e && (a = a.concat(a.map(tM)))), a; + return i && (a = a.map((o) => o + "-" + i), e && (a = a.concat(a.map(eM)))), a; } function yx(r) { return r.replace(/left|right|bottom|top/g, (e) => wH[e]); @@ -12270,11 +12270,11 @@ var DH = ["input:not([inert]):not([inert] *)", "select:not([inert]):not([inert] t = t.parentElement; } return !1; -}, rM = function(e, t) { +}, tM = function(e, t) { return !(t.disabled || LH(t) || GH(t, e) || // For a details element with a summary, the summary element gets the focus jH(t) || VH(t)); -}, nM = function(e, t) { - return !(zH(t) || J9(t) < 0 || !rM(e, t)); +}, rM = function(e, t) { + return !(zH(t) || J9(t) < 0 || !tM(e, t)); }, HH = function(e) { var t = parseInt(e.getAttribute("tabindex"), 10); return !!(isNaN(t) || t >= 0); @@ -12296,23 +12296,23 @@ var DH = ["input:not([inert]):not([inert] *)", "select:not([inert]):not([inert] t = t || {}; var n; return t.getShadowRoot ? n = xx([e], t.includeContainer, { - filter: nM.bind(null, t), + filter: rM.bind(null, t), flatten: !1, getShadowRoot: t.getShadowRoot, shadowRootFilter: HH - }) : n = Z9(e, t.includeContainer, nM.bind(null, t)), t7(n); + }) : n = Z9(e, t.includeContainer, rM.bind(null, t)), t7(n); }, WH = function(e, t) { t = t || {}; var n; return t.getShadowRoot ? n = xx([e], t.includeContainer, { - filter: rM.bind(null, t), + filter: tM.bind(null, t), flatten: !0, getShadowRoot: t.getShadowRoot - }) : n = Z9(e, t.includeContainer, rM.bind(null, t)), n; + }) : n = Z9(e, t.includeContainer, tM.bind(null, t)), n; }, r7 = function(e, t) { if (t = t || {}, !e) throw new Error("No node provided"); - return Im.call(e, bx) === !1 ? !1 : nM(t, e); + return Im.call(e, bx) === !1 ? !1 : rM(t, e); }; function n7() { const r = navigator.userAgentData; @@ -12331,7 +12331,7 @@ function i7() { function a7() { return /apple/i.test(navigator.vendor); } -function iM() { +function nM() { const r = /android/i; return r.test(n7()) || r.test(i7()); } @@ -12341,7 +12341,7 @@ function YH() { function o7() { return i7().includes("jsdom/"); } -const vk = "data-floating-ui-focusable", XH = "input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])", QE = "ArrowLeft", JE = "ArrowRight", $H = "ArrowUp", KH = "ArrowDown"; +const vk = "data-floating-ui-focusable", XH = "input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])", ZE = "ArrowLeft", QE = "ArrowRight", $H = "ArrowUp", KH = "ArrowDown"; function yh(r) { let e = r.activeElement; for (; ((t = e) == null || (t = t.shadowRoot) == null ? void 0 : t.activeElement) != null; ) { @@ -12369,7 +12369,7 @@ function Is(r, e) { function mh(r) { return "composedPath" in r ? r.composedPath()[0] : r.target; } -function eS(r, e) { +function JE(r, e) { if (e == null) return !1; if ("composedPath" in r) @@ -12383,11 +12383,11 @@ function ZH(r) { function ou(r) { return (r == null ? void 0 : r.ownerDocument) || document; } -function O5(r) { +function S5(r) { return bo(r) && r.matches(XH); } -function aM(r) { - return r ? r.getAttribute("role") === "combobox" && O5(r) : !1; +function iM(r) { + return r ? r.getAttribute("role") === "combobox" && S5(r) : !1; } function QH(r) { if (!r || o7()) return !0; @@ -12431,10 +12431,10 @@ function eW(r) { return "nativeEvent" in r; } function s7(r) { - return r.mozInputSource === 0 && r.isTrusted ? !0 : iM() && r.pointerType ? r.type === "click" && r.buttons === 1 : r.detail === 0 && !r.pointerType; + return r.mozInputSource === 0 && r.isTrusted ? !0 : nM() && r.pointerType ? r.type === "click" && r.buttons === 1 : r.detail === 0 && !r.pointerType; } function u7(r) { - return o7() ? !1 : !iM() && r.width === 0 && r.height === 0 || iM() && r.width === 1 && r.height === 1 && r.pressure === 0 && r.detail === 0 && r.pointerType === "mouse" || // iOS VoiceOver returns 0.333• for width/height. + return o7() ? !1 : !nM() && r.width === 0 && r.height === 0 || nM() && r.width === 1 && r.height === 1 && r.pressure === 0 && r.detail === 0 && r.pointerType === "mouse" || // iOS VoiceOver returns 0.333• for width/height. r.width < 1 && r.height < 1 && r.pressure === 0 && r.detail === 0 && r.pointerType === "touch"; } function Nm(r, e) { @@ -12470,7 +12470,7 @@ function rw(r, e, t) { function Rb(r, e) { return e < 0 || e >= r.current.length; } -function tS(r, e) { +function eS(r, e) { return Wu(r, { disabledIndices: e }); @@ -12531,7 +12531,7 @@ function oW(r, e) { disabledIndices: s }))), Rb(r, d) && (d = c)), n === "both") { const h = hm(c / o); - t.key === (a ? QE : JE) && (f && au(t), c % o !== o - 1 ? (d = Wu(r, { + t.key === (a ? ZE : QE) && (f && au(t), c % o !== o - 1 ? (d = Wu(r, { startingIndex: c, disabledIndices: s }), i && rw(d, o, h) && (d = Wu(r, { @@ -12540,7 +12540,7 @@ function oW(r, e) { }))) : i && (d = Wu(r, { startingIndex: c - c % o - 1, disabledIndices: s - })), rw(d, o, h) && (d = c)), t.key === (a ? JE : QE) && (f && au(t), c % o !== 0 ? (d = Wu(r, { + })), rw(d, o, h) && (d = c)), t.key === (a ? QE : ZE) && (f && au(t), c % o !== 0 ? (d = Wu(r, { startingIndex: c, decrement: !0, disabledIndices: s @@ -12554,7 +12554,7 @@ function oW(r, e) { disabledIndices: s })), rw(d, o, h) && (d = c)); const p = hm(l / o) === h; - Rb(r, d) && (i && p ? d = t.key === (a ? JE : QE) ? l : Wu(r, { + Rb(r, d) && (i && p ? d = t.key === (a ? QE : ZE) ? l : Wu(r, { startingIndex: c - c % o - 1, disabledIndices: s }) : d = c); @@ -12998,11 +12998,11 @@ function d7(r) { $: s }; } -function T5(r) { +function O5(r) { return da(r) ? r : r.contextElement; } function bm(r) { - const e = T5(r); + const e = O5(r); if (!bo(e)) return _h(1); const t = e.getBoundingClientRect(), { @@ -13029,17 +13029,17 @@ function bW(r, e, t) { } function Gg(r, e, t, n) { e === void 0 && (e = !1), t === void 0 && (t = !1); - const i = r.getBoundingClientRect(), a = T5(r); + const i = r.getBoundingClientRect(), a = O5(r); let o = _h(1); e && (n ? da(n) && (o = bm(n)) : o = bm(r)); const s = bW(a, t, n) ? h7(a) : _h(0); let u = (i.left + s.x) / o.x, l = (i.top + s.y) / o.y, c = i.width / o.x, f = i.height / o.y; if (a) { const d = Fl(a), h = n && da(n) ? Fl(n) : n; - let p = d, g = eM(p); + let p = d, g = JP(p); for (; g && n && h !== p; ) { const y = bm(g), b = g.getBoundingClientRect(), _ = Ff(g), m = b.left + (g.clientLeft + parseFloat(_.paddingLeft)) * y.x, x = b.top + (g.clientTop + parseFloat(_.paddingTop)) * y.y; - u *= y.x, l *= y.y, c *= y.x, f *= y.y, u += m, l += x, p = Fl(g), g = eM(p); + u *= y.x, l *= y.y, c *= y.x, f *= y.y, u += m, l += x, p = Fl(g), g = JP(p); } } return mx({ @@ -13163,7 +13163,7 @@ function TW(r, e) { const a = Ff(r).position === "fixed"; let o = a ? hv(r) : r; for (; da(o) && !cv(o); ) { - const s = Ff(o), u = S5(o); + const s = Ff(o), u = E5(o); !u && s.position === "fixed" && (i = null), (a ? !u && !i : !u && s.position === "static" && !!i && SW.has(i.position) || B1(o) && !u && p7(r, o)) ? n = n.filter((c) => c !== o) : i = s, o = hv(o); } return e.set(r, n), n; @@ -13220,7 +13220,7 @@ function RW(r, e, t) { height: o.height }; } -function rS(r) { +function tS(r) { return Ff(r).position === "static"; } function wk(r, e) { @@ -13238,16 +13238,16 @@ function g7(r, e) { if (!bo(r)) { let i = hv(r); for (; i && !cv(i); ) { - if (da(i) && !rS(i)) + if (da(i) && !tS(i)) return i; i = hv(i); } return t; } let n = wk(r, e); - for (; n && vH(n) && rS(n); ) + for (; n && vH(n) && tS(n); ) n = wk(n, e); - return n && cv(n) && rS(n) && !S5(n) ? t : n || bH(r) || t; + return n && cv(n) && tS(n) && !E5(n) ? t : n || bH(r) || t; } const PW = async function(r) { const e = this.getOffsetParent || g7, t = this.getDimensions, n = await t(r.floating); @@ -13325,7 +13325,7 @@ function kW(r, e) { } return o(!0), a; } -function C5(r, e, t, n) { +function T5(r, e, t, n) { n === void 0 && (n = {}); const { ancestorScroll: i = !0, @@ -13333,7 +13333,7 @@ function C5(r, e, t, n) { elementResize: o = typeof ResizeObserver == "function", layoutShift: s = typeof IntersectionObserver == "function", animationFrame: u = !1 - } = n, l = T5(r), c = i || a ? [...l ? wp(l) : [], ...wp(e)] : []; + } = n, l = O5(r), c = i || a ? [...l ? wp(l) : [], ...wp(e)] : []; c.forEach((b) => { i && b.addEventListener("scroll", t, { passive: !0 @@ -13413,7 +13413,7 @@ function xk(r, e) { const t = m7(r); return Math.round(e * t) / t; } -function nS(r) { +function rS(r) { const e = me.useRef(r); return Yw(() => { e.current = r; @@ -13446,7 +13446,7 @@ function UW(r) { W !== O.current && (O.current = W, g(W)); }, []), m = me.useCallback((W) => { W !== E.current && (E.current = W, b(W)); - }, []), x = a || p, S = o || y, O = me.useRef(null), E = me.useRef(null), T = me.useRef(c), P = u != null, I = nS(u), k = nS(i), L = nS(l), B = me.useCallback(() => { + }, []), x = a || p, S = o || y, O = me.useRef(null), E = me.useRef(null), T = me.useRef(c), P = u != null, I = rS(u), k = rS(i), L = rS(l), B = me.useCallback(() => { if (!O.current || !E.current) return; const W = { @@ -13521,13 +13521,13 @@ function UW(r) { floatingStyles: q }), [c, B, z, H, q]); } -const A5 = (r, e) => ({ +const C5 = (r, e) => ({ ...IW(r), options: [r, e] -}), R5 = (r, e) => ({ +}), A5 = (r, e) => ({ ...NW(r), options: [r, e] -}), P5 = (r, e) => ({ +}), R5 = (r, e) => ({ ...LW(r), options: [r, e] }); @@ -13586,7 +13586,7 @@ function qW(r) { l.set(f, d); }), l; }, [i]); - return /* @__PURE__ */ Te.jsx(b7.Provider, { + return /* @__PURE__ */ Ce.jsx(b7.Provider, { value: me.useMemo(() => ({ register: o, unregister: s, @@ -13684,7 +13684,7 @@ function $W(r) { children: e, id: t } = r, n = Up(); - return /* @__PURE__ */ Te.jsx(x7.Provider, { + return /* @__PURE__ */ Ce.jsx(x7.Provider, { value: me.useMemo(() => ({ id: t, parentId: n @@ -13700,7 +13700,7 @@ function KW(r) { }, []), i = me.useCallback((o) => { t.current = t.current.filter((s) => s !== o); }, []), [a] = me.useState(() => w7()); - return /* @__PURE__ */ Te.jsx(E7.Provider, { + return /* @__PURE__ */ Ce.jsx(E7.Provider, { value: me.useMemo(() => ({ nodesRef: t, addNode: n, @@ -13717,7 +13717,7 @@ function iu(r) { r.current !== -1 && (clearTimeout(r.current), r.current = -1); } const Ck = /* @__PURE__ */ Vg("safe-polygon"); -function iS(r, e, t) { +function nS(r, e, t) { if (t && !Nm(t)) return 0; if (typeof r == "number") @@ -13728,7 +13728,7 @@ function iS(r, e, t) { } return r == null ? void 0 : r[e]; } -function aS(r) { +function iS(r) { return typeof r == "function" ? r() : r; } function S7(r, e) { @@ -13775,7 +13775,7 @@ function S7(r, e) { }, [o.floating, t, n, s, g, k]); const L = me.useCallback(function(q, W, $) { W === void 0 && (W = !0), $ === void 0 && ($ = "hover"); - const J = iS(y.current, "close", m.current); + const J = nS(y.current, "close", m.current); J && !S.current ? (iu(x), x.current = window.setTimeout(() => n(!1, q, $), J)) : W && (iu(x), n(!1, q, $)); }, [y, n]), B = Wa(() => { P.current(), S.current = void 0; @@ -13787,15 +13787,15 @@ function S7(r, e) { }), z = Wa(() => i.current.openEvent ? ["click", "mousedown"].includes(i.current.openEvent.type) : !1); me.useEffect(() => { if (!s) return; - function q(Q) { - if (iu(x), E.current = !1, c && !Nm(m.current) || aS(_.current) > 0 && !iS(y.current, "open")) + function q(Z) { + if (iu(x), E.current = !1, c && !Nm(m.current) || iS(_.current) > 0 && !nS(y.current, "open")) return; - const ue = iS(y.current, "open", m.current); + const ue = nS(y.current, "open", m.current); ue ? x.current = window.setTimeout(() => { - b.current || n(!0, Q, "hover"); - }, ue) : t || n(!0, Q, "hover"); + b.current || n(!0, Z, "hover"); + }, ue) : t || n(!0, Z, "hover"); } - function W(Q) { + function W(Z) { if (z()) { j(); return; @@ -13806,10 +13806,10 @@ function S7(r, e) { t || iu(x), S.current = g.current({ ...i.current.floatingContext, tree: h, - x: Q.clientX, - y: Q.clientY, + x: Z.clientX, + y: Z.clientY, onClose() { - j(), B(), z() || L(Q, !0, "safe-polygon"); + j(), B(), z() || L(Z, !0, "safe-polygon"); } }); const ne = S.current; @@ -13818,31 +13818,31 @@ function S7(r, e) { }; return; } - (m.current === "touch" ? !Is(o.floating, Q.relatedTarget) : !0) && L(Q); + (m.current === "touch" ? !Is(o.floating, Z.relatedTarget) : !0) && L(Z); } - function $(Q) { + function $(Z) { z() || i.current.floatingContext && (g.current == null || g.current({ ...i.current.floatingContext, tree: h, - x: Q.clientX, - y: Q.clientY, + x: Z.clientX, + y: Z.clientY, onClose() { - j(), B(), z() || L(Q); + j(), B(), z() || L(Z); } - })(Q)); + })(Z)); } function J() { iu(x); } - function X(Q) { - z() || L(Q, !1); + function X(Z) { + z() || L(Z, !1); } if (da(o.domReference)) { - const Q = o.domReference, ue = o.floating; - return t && Q.addEventListener("mouseleave", $), d && Q.addEventListener("mousemove", q, { + const Z = o.domReference, ue = o.floating; + return t && Z.addEventListener("mouseleave", $), d && Z.addEventListener("mousemove", q, { once: !0 - }), Q.addEventListener("mouseenter", q), Q.addEventListener("mouseleave", W), ue && (ue.addEventListener("mouseleave", $), ue.addEventListener("mouseenter", J), ue.addEventListener("mouseleave", X)), () => { - t && Q.removeEventListener("mouseleave", $), d && Q.removeEventListener("mousemove", q), Q.removeEventListener("mouseenter", q), Q.removeEventListener("mouseleave", W), ue && (ue.removeEventListener("mouseleave", $), ue.removeEventListener("mouseenter", J), ue.removeEventListener("mouseleave", X)); + }), Z.addEventListener("mouseenter", q), Z.addEventListener("mouseleave", W), ue && (ue.addEventListener("mouseleave", $), ue.addEventListener("mouseenter", J), ue.addEventListener("mouseleave", X)), () => { + t && Z.removeEventListener("mouseleave", $), d && Z.removeEventListener("mousemove", q), Z.removeEventListener("mouseenter", q), Z.removeEventListener("mouseleave", W), ue && (ue.removeEventListener("mouseleave", $), ue.removeEventListener("mouseenter", J), ue.removeEventListener("mouseleave", X)); }; } }, [o, s, r, c, d, L, B, j, n, t, b, h, y, g, i, z, _]), Di(() => { @@ -13854,8 +13854,8 @@ function S7(r, e) { var W; const J = ou(o.floating).body; J.setAttribute(Ck, ""); - const X = o.domReference, Q = h == null || (W = h.nodesRef.current.find((ue) => ue.id === p)) == null || (W = W.context) == null ? void 0 : W.elements.floating; - return Q && (Q.style.pointerEvents = ""), J.style.pointerEvents = "none", X.style.pointerEvents = "auto", $.style.pointerEvents = "auto", () => { + const X = o.domReference, Z = h == null || (W = h.nodesRef.current.find((ue) => ue.id === p)) == null || (W = W.context) == null ? void 0 : W.elements.floating; + return Z && (Z.style.pointerEvents = ""), J.style.pointerEvents = "none", X.style.pointerEvents = "auto", $.style.pointerEvents = "auto", () => { J.style.pointerEvents = "", X.style.pointerEvents = "", $.style.pointerEvents = ""; }; } @@ -13879,7 +13879,7 @@ function S7(r, e) { function J() { !E.current && !b.current && n(!0, $, "hover"); } - c && !Nm(m.current) || t || aS(_.current) === 0 || I.current && W.movementX ** 2 + W.movementY ** 2 < 2 || (iu(O), m.current === "touch" ? J() : (I.current = !0, O.current = window.setTimeout(J, aS(_.current)))); + c && !Nm(m.current) || t || iS(_.current) === 0 || I.current && W.movementX ** 2 + W.movementY ** 2 < 2 || (iu(O), m.current === "touch" ? J() : (I.current = !0, O.current = window.setTimeout(J, iS(_.current)))); } }; }, [c, n, t, b, _]); @@ -13901,7 +13901,7 @@ function Tg(r, e) { }); i ? a() : Ak = requestAnimationFrame(a); } -function oS(r, e) { +function aS(r, e) { if (!r || !e) return !1; const t = e.getRootNode == null ? void 0 : e.getRootNode(); @@ -13931,7 +13931,7 @@ const _m = { function Rk(r) { return r === "inert" ? _m.inert : r === "aria-hidden" ? _m["aria-hidden"] : _m.none; } -let nw = /* @__PURE__ */ new WeakSet(), iw = {}, sS = 0; +let nw = /* @__PURE__ */ new WeakSet(), iw = {}, oS = 0; const JW = () => typeof HTMLElement < "u" && "inert" in HTMLElement.prototype, O7 = (r) => r && (r.host || O7(r.parentNode)), eY = (r, e) => e.map((t) => { if (r.contains(t)) return t; @@ -13957,11 +13957,11 @@ function tY(r, e, t, n) { } }); } - return sS++, () => { + return oS++, () => { l.forEach((h) => { const p = Rk(a), y = (p.get(h) || 0) - 1, b = (c.get(h) || 0) - 1; p.set(h, y), c.set(h, b), y || (!nw.has(h) && a && h.removeAttribute(a), nw.delete(h)), b || h.removeAttribute(i); - }), sS--, sS || (_m.inert = /* @__PURE__ */ new WeakMap(), _m["aria-hidden"] = /* @__PURE__ */ new WeakMap(), _m.none = /* @__PURE__ */ new WeakMap(), nw = /* @__PURE__ */ new WeakSet(), iw = {}); + }), oS--, oS || (_m.inert = /* @__PURE__ */ new WeakMap(), _m["aria-hidden"] = /* @__PURE__ */ new WeakMap(), _m.none = /* @__PURE__ */ new WeakMap(), nw = /* @__PURE__ */ new WeakSet(), iw = {}); }; } function Pk(r, e, t) { @@ -13969,7 +13969,7 @@ function Pk(r, e, t) { const n = QW(r[0]).body; return tY(r.concat(Array.from(n.querySelectorAll('[aria-live],[role="status"],output'))), n, e, t); } -const x2 = { +const P5 = { border: 0, clip: "rect(0 0 0 0)", height: "1px", @@ -13993,14 +13993,19 @@ const x2 = { role: n, "aria-hidden": n ? void 0 : !0, [Vg("focus-guard")]: "", - style: x2 + style: P5 }; - return /* @__PURE__ */ Te.jsx("span", { + return /* @__PURE__ */ Ce.jsx("span", { ...e, ...a }); -}), T7 = /* @__PURE__ */ me.createContext(null), Mk = /* @__PURE__ */ Vg("portal"); -function rY(r) { +}), rY = { + clipPath: "inset(50%)", + position: "fixed", + top: 0, + left: 0 +}, T7 = /* @__PURE__ */ me.createContext(null), Mk = /* @__PURE__ */ Vg("portal"); +function nY(r) { r === void 0 && (r = {}); const { id: e, @@ -14019,7 +14024,7 @@ function rY(r) { }, [e, n]), Di(() => { if (t === null || !n || s.current) return; let u = t || (i == null ? void 0 : i.portalNode); - u && !E5(u) && (u = u.current), u = u || document.body; + u && !x5(u) && (u = u.current), u = u || document.body; let l = null; e && (l = document.createElement("div"), l.id = e, u.appendChild(l)); const c = document.createElement("div"); @@ -14032,7 +14037,7 @@ function Tx(r) { id: t, root: n, preserveTabOrder: i = !0 - } = r, a = rY({ + } = r, a = nY({ id: t, root: n }), [o, s] = me.useState(null), u = me.useRef(null), l = me.useRef(null), c = me.useRef(null), f = me.useRef(null), d = o == null ? void 0 : o.modal, h = o == null ? void 0 : o.open, p = ( @@ -14053,7 +14058,7 @@ function Tx(r) { }; }, [a, i, d]), me.useEffect(() => { a && (h || yk(a)); - }, [h, a]), /* @__PURE__ */ Te.jsxs(T7.Provider, { + }, [h, a]), /* @__PURE__ */ Ce.jsxs(T7.Provider, { value: me.useMemo(() => ({ preserveTabOrder: i, beforeOutsideRef: u, @@ -14063,7 +14068,7 @@ function Tx(r) { portalNode: a, setFocusManagerState: s }), [i, a]), - children: [p && a && /* @__PURE__ */ Te.jsx(Ox, { + children: [p && a && /* @__PURE__ */ Ce.jsx(Ox, { "data-type": "outside", ref: u, onFocus: (g) => { @@ -14075,10 +14080,10 @@ function Tx(r) { _ == null || _.focus(); } } - }), p && a && /* @__PURE__ */ Te.jsx("span", { + }), p && a && /* @__PURE__ */ Ce.jsx("span", { "aria-owns": a.id, - style: x2 - }), a && /* @__PURE__ */ y2.createPortal(e, a), p && a && /* @__PURE__ */ Te.jsx(Ox, { + style: rY + }), a && /* @__PURE__ */ y2.createPortal(e, a), p && a && /* @__PURE__ */ Ce.jsx(Ox, { "data-type": "outside", ref: l, onFocus: (g) => { @@ -14101,18 +14106,18 @@ function Dk(r) { }); }, r); } -const nY = 20; +const iY = 20; let hp = []; function M5() { hp = hp.filter((r) => r.isConnected); } -function iY(r) { - M5(), r && Fp(r) !== "body" && (hp.push(r), hp.length > nY && (hp = hp.slice(-20))); +function aY(r) { + M5(), r && Fp(r) !== "body" && (hp.push(r), hp.length > iY && (hp = hp.slice(-20))); } function kk() { return M5(), hp[hp.length - 1]; } -function aY(r) { +function oY(r) { const e = F1(); return r7(r, e) ? r : g2(r, e)[0] || r; } @@ -14126,13 +14131,13 @@ function Ik(r, e) { }), o = r.getAttribute("tabindex"); e.current.includes("floating") || a.length === 0 ? o !== "0" && r.setAttribute("tabindex", "0") : (o !== "-1" || r.hasAttribute("data-tabindex") && r.getAttribute("data-tabindex") !== "-1") && (r.setAttribute("tabindex", "-1"), r.setAttribute("data-tabindex", "-1")); } -const oY = /* @__PURE__ */ me.forwardRef(function(e, t) { - return /* @__PURE__ */ Te.jsx("button", { +const sY = /* @__PURE__ */ me.forwardRef(function(e, t) { + return /* @__PURE__ */ Ce.jsx("button", { ...e, type: "button", ref: t, tabIndex: -1, - style: x2 + style: P5 }); }); function D5(r) { @@ -14162,7 +14167,7 @@ function D5(r) { } = e, x = Wa(() => { var ge; return (ge = b.current.floatingContext) == null ? void 0 : ge.nodeId; - }), S = Wa(h), O = typeof o == "number" && o < 0, E = aM(_) && O, T = JW(), P = T ? a : !0, I = !P || T && d, k = Ns(i), L = Ns(o), B = Ns(s), j = bv(), z = C7(), H = me.useRef(null), q = me.useRef(null), W = me.useRef(!1), $ = me.useRef(!1), J = me.useRef(-1), X = me.useRef(-1), Q = z != null, ue = Ex(m), re = Wa(function(ge) { + }), S = Wa(h), O = typeof o == "number" && o < 0, E = iM(_) && O, T = JW(), P = T ? a : !0, I = !P || T && d, k = Ns(i), L = Ns(o), B = Ns(s), j = bv(), z = C7(), H = me.useRef(null), q = me.useRef(null), W = me.useRef(!1), $ = me.useRef(!1), J = me.useRef(-1), X = me.useRef(-1), Z = z != null, ue = Ex(m), re = Wa(function(ge) { return ge === void 0 && (ge = ue), ge ? g2(ge, F1()) : []; }), ne = Wa((ge) => { const Oe = re(ge); @@ -14173,8 +14178,8 @@ function D5(r) { function ge(ke) { if (ke.key === "Tab") { Is(ue, yh(ou(ue))) && re().length === 0 && !E && au(ke); - const Me = ne(), Ne = mh(ke); - k.current[0] === "reference" && Ne === _ && (au(ke), ke.shiftKey ? Tg(Me[Me.length - 1]) : Tg(Me[1])), k.current[1] === "floating" && Ne === ue && ke.shiftKey && (au(ke), Tg(Me[0])); + const De = ne(), Ne = mh(ke); + k.current[0] === "reference" && Ne === _ && (au(ke), ke.shiftKey ? Tg(De[De.length - 1]) : Tg(De[1])), k.current[1] === "floating" && Ne === ue && ke.shiftKey && (au(ke), Tg(De[0])); } } const Oe = ou(ue); @@ -14198,47 +14203,47 @@ function D5(r) { }); } function Oe(Ne) { - const Ce = Ne.relatedTarget, Y = Ne.currentTarget, Z = mh(Ne); + const Te = Ne.relatedTarget, Y = Ne.currentTarget, Q = mh(Ne); queueMicrotask(() => { - const ie = x(), we = !(Is(_, Ce) || Is(m, Ce) || Is(Ce, m) || Is(z == null ? void 0 : z.portalNode, Ce) || Ce != null && Ce.hasAttribute(Vg("focus-guard")) || j && (Fg(j.nodesRef.current, ie).find((Ee) => { - var De, Ie; - return Is((De = Ee.context) == null ? void 0 : De.elements.floating, Ce) || Is((Ie = Ee.context) == null ? void 0 : Ie.elements.domReference, Ce); + const ie = x(), we = !(Is(_, Te) || Is(m, Te) || Is(Te, m) || Is(z == null ? void 0 : z.portalNode, Te) || Te != null && Te.hasAttribute(Vg("focus-guard")) || j && (Fg(j.nodesRef.current, ie).find((Ee) => { + var Me, Ie; + return Is((Me = Ee.context) == null ? void 0 : Me.elements.floating, Te) || Is((Ie = Ee.context) == null ? void 0 : Ie.elements.domReference, Te); }) || pk(j.nodesRef.current, ie).find((Ee) => { - var De, Ie, Ye; - return [(De = Ee.context) == null ? void 0 : De.elements.floating, Ex((Ie = Ee.context) == null ? void 0 : Ie.elements.floating)].includes(Ce) || ((Ye = Ee.context) == null ? void 0 : Ye.elements.domReference) === Ce; + var Me, Ie, Ye; + return [(Me = Ee.context) == null ? void 0 : Me.elements.floating, Ex((Ie = Ee.context) == null ? void 0 : Ie.elements.floating)].includes(Te) || ((Ye = Ee.context) == null ? void 0 : Ye.elements.domReference) === Te; }))); - if (Y === _ && ue && Ik(ue, k), u && Y !== _ && !(Z != null && Z.isConnected) && yh(ou(ue)) === ou(ue).body) { + if (Y === _ && ue && Ik(ue, k), u && Y !== _ && !(Q != null && Q.isConnected) && yh(ou(ue)) === ou(ue).body) { bo(ue) && ue.focus(); - const Ee = J.current, De = re(), Ie = De[Ee] || De[De.length - 1] || ue; + const Ee = J.current, Me = re(), Ie = Me[Ee] || Me[Me.length - 1] || ue; bo(Ie) && Ie.focus(); } if (b.current.insideReactTree) { b.current.insideReactTree = !1; return; } - (E || !l) && Ce && we && !$.current && // Fix React 18 Strict Mode returnFocus due to double rendering. - Ce !== kk() && (W.current = !0, g(!1, Ne, "focus-out")); + (E || !l) && Te && we && !$.current && // Fix React 18 Strict Mode returnFocus due to double rendering. + Te !== kk() && (W.current = !0, g(!1, Ne, "focus-out")); }); } const ke = !!(!j && z); - function Me() { + function De() { iu(X), b.current.insideReactTree = !0, X.current = window.setTimeout(() => { b.current.insideReactTree = !1; }); } if (m && bo(_)) - return _.addEventListener("focusout", Oe), _.addEventListener("pointerdown", ge), m.addEventListener("focusout", Oe), ke && m.addEventListener("focusout", Me, !0), () => { - _.removeEventListener("focusout", Oe), _.removeEventListener("pointerdown", ge), m.removeEventListener("focusout", Oe), ke && m.removeEventListener("focusout", Me, !0); + return _.addEventListener("focusout", Oe), _.addEventListener("pointerdown", ge), m.addEventListener("focusout", Oe), ke && m.addEventListener("focusout", De, !0), () => { + _.removeEventListener("focusout", Oe), _.removeEventListener("pointerdown", ge), m.removeEventListener("focusout", Oe), ke && m.removeEventListener("focusout", De, !0); }; }, [n, _, m, ue, l, j, z, g, f, u, re, E, x, k, b]); const le = me.useRef(null), ce = me.useRef(null), pe = Dk([le, z == null ? void 0 : z.beforeInsideRef]), fe = Dk([ce, z == null ? void 0 : z.afterInsideRef]); me.useEffect(() => { var ge, Oe; if (n || !m) return; - const ke = Array.from((z == null || (ge = z.portalNode) == null ? void 0 : ge.querySelectorAll("[" + Vg("portal") + "]")) || []), Ne = (Oe = (j ? pk(j.nodesRef.current, x()) : []).find((Z) => { + const ke = Array.from((z == null || (ge = z.portalNode) == null ? void 0 : ge.querySelectorAll("[" + Vg("portal") + "]")) || []), Ne = (Oe = (j ? pk(j.nodesRef.current, x()) : []).find((Q) => { var ie; - return aM(((ie = Z.context) == null ? void 0 : ie.elements.domReference) || null); - })) == null || (Oe = Oe.context) == null ? void 0 : Oe.elements.domReference, Ce = [m, Ne, ...ke, ...S(), H.current, q.current, le.current, ce.current, z == null ? void 0 : z.beforeOutsideRef.current, z == null ? void 0 : z.afterOutsideRef.current, k.current.includes("reference") || E ? _ : null].filter((Z) => Z != null), Y = l || E ? Pk(Ce, !I, I) : Pk(Ce); + return iM(((ie = Q.context) == null ? void 0 : ie.elements.domReference) || null); + })) == null || (Oe = Oe.context) == null ? void 0 : Oe.elements.domReference, Te = [m, Ne, ...ke, ...S(), H.current, q.current, le.current, ce.current, z == null ? void 0 : z.beforeOutsideRef.current, z == null ? void 0 : z.afterOutsideRef.current, k.current.includes("reference") || E ? _ : null].filter((Q) => Q != null), Y = l || E ? Pk(Te, !I, I) : Pk(Te); return () => { Y(); }; @@ -14246,25 +14251,25 @@ function D5(r) { if (n || !bo(ue)) return; const ge = ou(ue), Oe = yh(ge); queueMicrotask(() => { - const ke = ne(ue), Me = L.current, Ne = (typeof Me == "number" ? ke[Me] : Me.current) || ue, Ce = Is(ue, Oe); - !O && !Ce && p && Tg(Ne, { + const ke = ne(ue), De = L.current, Ne = (typeof De == "number" ? ke[De] : De.current) || ue, Te = Is(ue, Oe); + !O && !Te && p && Tg(Ne, { preventScroll: Ne === ue }); }); }, [n, p, ue, O, ne, L]), Di(() => { if (n || !ue) return; const ge = ou(ue), Oe = yh(ge); - iY(Oe); - function ke(Ce) { + aY(Oe); + function ke(Te) { let { reason: Y, - event: Z, + event: Q, nested: ie - } = Ce; - if (["hover", "safe-polygon"].includes(Y) && Z.type === "mouseleave" && (W.current = !0), Y === "outside-press") + } = Te; + if (["hover", "safe-polygon"].includes(Y) && Q.type === "mouseleave" && (W.current = !0), Y === "outside-press") if (ie) W.current = !1; - else if (s7(Z) || u7(Z)) + else if (s7(Q) || u7(Q)) W.current = !1; else { let we = !1; @@ -14276,33 +14281,33 @@ function D5(r) { } } y.on("openchange", ke); - const Me = ge.createElement("span"); - Me.setAttribute("tabindex", "-1"), Me.setAttribute("aria-hidden", "true"), Object.assign(Me.style, x2), Q && _ && _.insertAdjacentElement("afterend", Me); + const De = ge.createElement("span"); + De.setAttribute("tabindex", "-1"), De.setAttribute("aria-hidden", "true"), Object.assign(De.style, P5), Z && _ && _.insertAdjacentElement("afterend", De); function Ne() { if (typeof B.current == "boolean") { - const Ce = _ || kk(); - return Ce && Ce.isConnected ? Ce : Me; + const Te = _ || kk(); + return Te && Te.isConnected ? Te : De; } - return B.current.current || Me; + return B.current.current || De; } return () => { y.off("openchange", ke); - const Ce = yh(ge), Y = Is(m, Ce) || j && Fg(j.nodesRef.current, x(), !1).some((ie) => { + const Te = yh(ge), Y = Is(m, Te) || j && Fg(j.nodesRef.current, x(), !1).some((ie) => { var we; - return Is((we = ie.context) == null ? void 0 : we.elements.floating, Ce); - }), Z = Ne(); + return Is((we = ie.context) == null ? void 0 : we.elements.floating, Te); + }), Q = Ne(); queueMicrotask(() => { - const ie = aY(Z); + const ie = oY(Q); // eslint-disable-next-line react-hooks/exhaustive-deps B.current && !W.current && bo(ie) && // If the focus moved somewhere else after mount, avoid returning focus // since it likely entered a different element which should be // respected: https://github.com/floating-ui/floating-ui/issues/2607 - (!(ie !== Ce && Ce !== ge.body) || Y) && ie.focus({ + (!(ie !== Te && Te !== ge.body) || Y) && ie.focus({ preventScroll: !0 - }), Me.remove(); + }), De.remove(); }); }; - }, [n, m, ue, B, b, y, j, Q, _, x]), me.useEffect(() => (queueMicrotask(() => { + }, [n, m, ue, B, b, y, j, Z, _, x]), me.useEffect(() => (queueMicrotask(() => { W.current = !1; }), () => { queueMicrotask(M5); @@ -14321,15 +14326,15 @@ function D5(r) { n || ue && Ik(ue, k); }, [n, ue, k]); function se(ge) { - return n || !c || !l ? null : /* @__PURE__ */ Te.jsx(oY, { + return n || !c || !l ? null : /* @__PURE__ */ Ce.jsx(sY, { ref: ge === "start" ? H : q, onClick: (Oe) => g(!1, Oe.nativeEvent), children: typeof c == "string" ? c : "Dismiss" }); } - const de = !n && P && (l ? !E : !0) && (Q || l); - return /* @__PURE__ */ Te.jsxs(Te.Fragment, { - children: [de && /* @__PURE__ */ Te.jsx(Ox, { + const de = !n && P && (l ? !E : !0) && (Z || l); + return /* @__PURE__ */ Ce.jsxs(Ce.Fragment, { + children: [de && /* @__PURE__ */ Ce.jsx(Ox, { "data-type": "inside", ref: pe, onFocus: (ge) => { @@ -14345,7 +14350,7 @@ function D5(r) { (Oe = z.beforeOutsideRef.current) == null || Oe.focus(); } } - }), !E && se("start"), t, se("end"), de && /* @__PURE__ */ Te.jsx(Ox, { + }), !E && se("start"), t, se("end"), de && /* @__PURE__ */ Ce.jsx(Ox, { "data-type": "inside", ref: fe, onFocus: (ge) => { @@ -14366,11 +14371,11 @@ function D5(r) { function Nk(r) { return bo(r.target) && r.target.tagName === "BUTTON"; } -function sY(r) { +function uY(r) { return bo(r.target) && r.target.tagName === "A"; } function Lk(r) { - return O5(r); + return S5(r); } function k5(r, e) { e === void 0 && (e = {}); @@ -14405,7 +14410,7 @@ function k5(r, e) { Nm(y, !0) && l || (t && u && (!(i.current.openEvent && f) || i.current.openEvent.type === "click") ? n(!1, g.nativeEvent, "click") : n(!0, g.nativeEvent, "click")); }, onKeyDown(g) { - d.current = void 0, !(g.defaultPrevented || !c || Nk(g)) && (g.key === " " && !Lk(a) && (g.preventDefault(), h.current = !0), !sY(g) && g.key === "Enter" && n(!(t && u), g.nativeEvent, "click")); + d.current = void 0, !(g.defaultPrevented || !c || Nk(g)) && (g.key === " " && !Lk(a) && (g.preventDefault(), h.current = !0), !uY(g) && g.key === "Enter" && n(!(t && u), g.nativeEvent, "click")); }, onKeyUp(g) { g.defaultPrevented || !c || Nk(g) || Lk(a) || g.key === " " && h.current && (h.current = !1, n(!(t && u), g.nativeEvent, "click")); @@ -14415,7 +14420,7 @@ function k5(r, e) { reference: p } : {}, [o, p]); } -function uY(r, e) { +function lY(r, e) { let t = null, n = null, i = !1; return { contextElement: r || void 0, @@ -14444,7 +14449,7 @@ function uY(r, e) { function jk(r) { return r != null && r.clientX != null; } -function lY(r, e) { +function cY(r, e) { e === void 0 && (e = {}); const { open: t, @@ -14460,7 +14465,7 @@ function lY(r, e) { x: l = null, y: c = null } = e, f = me.useRef(!1), d = me.useRef(null), [h, p] = me.useState(), [g, y] = me.useState([]), b = Wa((O, E) => { - f.current || n.current.openEvent && !jk(n.current.openEvent) || o.setPositionReference(uY(a, { + f.current || n.current.openEvent && !jk(n.current.openEvent) || o.setPositionReference(lY(a, { x: O, y: E, axis: u, @@ -14510,11 +14515,11 @@ function lY(r, e) { reference: S } : {}, [s, S]); } -const cY = { +const fY = { pointerdown: "onPointerDown", mousedown: "onMouseDown", click: "onClick" -}, fY = { +}, dY = { pointerdown: "onPointerDownCapture", mousedown: "onMouseDownCapture", click: "onClickCapture" @@ -14597,13 +14602,13 @@ function I5(r, e) { if (Oe || ke) return; } - const Q = (z = a.current.floatingContext) == null ? void 0 : z.nodeId, ue = g && Fg(g.nodesRef.current, Q).some((ne) => { + const Z = (z = a.current.floatingContext) == null ? void 0 : z.nodeId, ue = g && Fg(g.nodesRef.current, Z).some((ne) => { var le; - return eS(j, (le = ne.context) == null ? void 0 : le.elements.floating); + return JE(j, (le = ne.context) == null ? void 0 : le.elements.floating); }); - if (eS(j, i.floating) || eS(j, i.domReference) || ue) + if (JE(j, i.floating) || JE(j, i.domReference) || ue) return; - const re = g ? Fg(g.nodesRef.current, Q) : []; + const re = g ? Fg(g.nodesRef.current, Z) : []; if (re.length > 0) { let ne = !0; if (re.forEach((le) => { @@ -14666,7 +14671,7 @@ function I5(r, e) { const L = me.useMemo(() => ({ onKeyDown: T, ...c && { - [cY[f]]: (j) => { + [fY[f]]: (j) => { n(!1, j.nativeEvent, "reference-press"); }, ...f !== "click" && { @@ -14683,7 +14688,7 @@ function I5(r, e) { onMouseUp() { _.current = !0; }, - [fY[l]]: () => { + [dY[l]]: () => { a.current.insideReactTree = !0; } }), [T, l, a]); @@ -14692,7 +14697,7 @@ function I5(r, e) { floating: B } : {}, [o, L, B]); } -function dY(r) { +function hY(r) { const { open: e = !1, onOpenChange: t, @@ -14725,7 +14730,7 @@ function N5(r) { r === void 0 && (r = {}); const { nodeId: e - } = r, t = dY({ + } = r, t = hY({ ...r, elements: { reference: null, @@ -14782,10 +14787,10 @@ function N5(r) { elements: b }), [h, y, b, _]); } -function uS() { +function sS() { return YH() && a7(); } -function hY(r, e) { +function vY(r, e) { e === void 0 && (e = {}); const { open: t, @@ -14809,8 +14814,8 @@ function hY(r, e) { function y() { f.current = !1; } - return h.addEventListener("blur", p), uS() && (h.addEventListener("keydown", g, !0), h.addEventListener("pointerdown", y, !0)), () => { - h.removeEventListener("blur", p), uS() && (h.removeEventListener("keydown", g, !0), h.removeEventListener("pointerdown", y, !0)); + return h.addEventListener("blur", p), sS() && (h.addEventListener("keydown", g, !0), h.addEventListener("pointerdown", y, !0)), () => { + h.removeEventListener("blur", p), sS() && (h.removeEventListener("keydown", g, !0), h.removeEventListener("pointerdown", y, !0)); }; }, [o.domReference, t, s]), me.useEffect(() => { if (!s) return; @@ -14834,8 +14839,8 @@ function hY(r, e) { if (l.current) return; const p = mh(h.nativeEvent); if (u && da(p)) { - if (uS() && !h.relatedTarget) { - if (!f.current && !O5(p)) + if (sS() && !h.relatedTarget) { + if (!f.current && !S5(p)) return; } else if (!QH(p)) return; @@ -14856,7 +14861,7 @@ function hY(r, e) { reference: d } : {}, [s, d]); } -function lS(r, e, t) { +function uS(r, e, t) { const n = /* @__PURE__ */ new Map(), i = t === "item"; let a = r; if (i && r) { @@ -14896,15 +14901,15 @@ function lS(r, e, t) { function L5(r) { r === void 0 && (r = []); const e = r.map((s) => s == null ? void 0 : s.reference), t = r.map((s) => s == null ? void 0 : s.floating), n = r.map((s) => s == null ? void 0 : s.item), i = me.useCallback( - (s) => lS(s, r, "reference"), + (s) => uS(s, r, "reference"), // eslint-disable-next-line react-hooks/exhaustive-deps e ), a = me.useCallback( - (s) => lS(s, r, "floating"), + (s) => uS(s, r, "floating"), // eslint-disable-next-line react-hooks/exhaustive-deps t ), o = me.useCallback( - (s) => lS(s, r, "item"), + (s) => uS(s, r, "item"), // eslint-disable-next-line react-hooks/exhaustive-deps n ); @@ -14914,8 +14919,8 @@ function L5(r) { getItemProps: o }), [i, a, o]); } -const vY = "Escape"; -function E2(r, e, t) { +const pY = "Escape"; +function x2(r, e, t) { switch (r) { case "vertical": return e; @@ -14926,19 +14931,19 @@ function E2(r, e, t) { } } function aw(r, e) { - return E2(e, r === _7 || r === _2, r === U1 || r === z1); + return x2(e, r === _7 || r === _2, r === U1 || r === z1); } -function cS(r, e, t) { - return E2(e, r === _2, t ? r === U1 : r === z1) || r === "Enter" || r === " " || r === ""; +function lS(r, e, t) { + return x2(e, r === _2, t ? r === U1 : r === z1) || r === "Enter" || r === " " || r === ""; } function Fk(r, e, t) { - return E2(e, t ? r === U1 : r === z1, r === _2); + return x2(e, t ? r === U1 : r === z1, r === _2); } function Uk(r, e, t, n) { const i = t ? r === z1 : r === U1, a = r === _7; - return e === "both" || e === "horizontal" && n && n > 1 ? r === vY : E2(e, i, a); + return e === "both" || e === "horizontal" && n && n > 1 ? r === pY : x2(e, i, a); } -function pY(r, e) { +function gY(r, e) { const { open: t, onOpenChange: n, @@ -14973,7 +14978,7 @@ function pY(r, e) { }, [r, x]); const z = Wa(() => { u(W.current === -1 ? null : W.current); - }), H = aM(i.domReference), q = me.useRef(y), W = me.useRef(c ?? -1), $ = me.useRef(null), J = me.useRef(!0), X = me.useRef(z), Q = me.useRef(!!i.floating), ue = me.useRef(t), re = me.useRef(!1), ne = me.useRef(!1), le = Ns(m), ce = Ns(t), pe = Ns(E), fe = Ns(c), [se, de] = me.useState(), [ge, Oe] = me.useState(), ke = Wa(() => { + }), H = iM(i.domReference), q = me.useRef(y), W = me.useRef(c ?? -1), $ = me.useRef(null), J = me.useRef(!0), X = me.useRef(z), Z = me.useRef(!!i.floating), ue = me.useRef(t), re = me.useRef(!1), ne = me.useRef(!1), le = Ns(m), ce = Ns(t), pe = Ns(E), fe = Ns(c), [se, de] = me.useState(), [ge, Oe] = me.useState(), ke = Wa(() => { function Ee(ot) { if (g) { var mt; @@ -14984,11 +14989,11 @@ function pY(r, e) { preventScroll: !0 }); } - const De = o.current[W.current], Ie = ne.current; - De && Ee(De), (re.current ? (ot) => ot() : requestAnimationFrame)(() => { - const ot = o.current[W.current] || De; + const Me = o.current[W.current], Ie = ne.current; + Me && Ee(Me), (re.current ? (ot) => ot() : requestAnimationFrame)(() => { + const ot = o.current[W.current] || Me; if (!ot) return; - De || Ee(ot); + Me || Ee(ot); const mt = pe.current; mt && Ne && (Ie || !J.current) && (ot.scrollIntoView == null || ot.scrollIntoView(typeof mt == "boolean" ? { block: "nearest", @@ -14997,42 +15002,42 @@ function pY(r, e) { }); }); Di(() => { - l && (t && i.floating ? q.current && c != null && (ne.current = !0, W.current = c, z()) : Q.current && (W.current = -1, X.current())); + l && (t && i.floating ? q.current && c != null && (ne.current = !0, W.current = c, z()) : Z.current && (W.current = -1, X.current())); }, [l, t, i.floating, c, z]), Di(() => { if (l && t && i.floating) if (s == null) { if (re.current = !1, fe.current != null) return; - if (Q.current && (W.current = -1, ke()), (!ue.current || !Q.current) && q.current && ($.current != null || q.current === !0 && $.current == null)) { + if (Z.current && (W.current = -1, ke()), (!ue.current || !Z.current) && q.current && ($.current != null || q.current === !0 && $.current == null)) { let Ee = 0; - const De = () => { - o.current[0] == null ? (Ee < 2 && (Ee ? requestAnimationFrame : queueMicrotask)(De), Ee++) : (W.current = $.current == null || cS($.current, x, p) || h ? tS(o, le.current) : gk(o, le.current), $.current = null, z()); + const Me = () => { + o.current[0] == null ? (Ee < 2 && (Ee ? requestAnimationFrame : queueMicrotask)(Me), Ee++) : (W.current = $.current == null || lS($.current, x, p) || h ? eS(o, le.current) : gk(o, le.current), $.current = null, z()); }; - De(); + Me(); } } else Rb(o, s) || (W.current = s, ke(), ne.current = !1); }, [l, t, i.floating, s, fe, h, o, x, p, z, ke, le]), Di(() => { var Ee; - if (!l || i.floating || !j || g || !Q.current) + if (!l || i.floating || !j || g || !Z.current) return; - const De = j.nodesRef.current, Ie = (Ee = De.find((mt) => mt.id === B)) == null || (Ee = Ee.context) == null ? void 0 : Ee.elements.floating, Ye = yh(ou(i.floating)), ot = De.some((mt) => mt.context && Is(mt.context.elements.floating, Ye)); + const Me = j.nodesRef.current, Ie = (Ee = Me.find((mt) => mt.id === B)) == null || (Ee = Ee.context) == null ? void 0 : Ee.elements.floating, Ye = yh(ou(i.floating)), ot = Me.some((mt) => mt.context && Is(mt.context.elements.floating, Ye)); Ie && !ot && J.current && Ie.focus({ preventScroll: !0 }); }, [l, i.floating, j, B, g]), Di(() => { if (!l || !j || !g || B) return; - function Ee(De) { - Oe(De.id), T && (T.current = De); + function Ee(Me) { + Oe(Me.id), T && (T.current = Me); } return j.events.on("virtualfocus", Ee), () => { j.events.off("virtualfocus", Ee); }; }, [l, j, g, B, T]), Di(() => { - X.current = z, ue.current = t, Q.current = !!i.floating; + X.current = z, ue.current = t, Z.current = !!i.floating; }), Di(() => { t || ($.current = null, q.current = y); }, [t, y]); - const Me = s != null, Ne = me.useMemo(() => { + const De = s != null, Ne = me.useMemo(() => { function Ee(Ie) { if (!ce.current) return; const Ye = o.current.indexOf(Ie); @@ -15072,17 +15077,17 @@ function pY(r, e) { } } }; - }, [ce, L, b, o, z, g]), Ce = me.useCallback(() => { + }, [ce, L, b, o, z, g]), Te = me.useCallback(() => { var Ee; - return S ?? (j == null || (Ee = j.nodesRef.current.find((De) => De.id === B)) == null || (Ee = Ee.context) == null || (Ee = Ee.dataRef) == null ? void 0 : Ee.current.orientation); + return S ?? (j == null || (Ee = j.nodesRef.current.find((Me) => Me.id === B)) == null || (Ee = Ee.context) == null || (Ee = Ee.dataRef) == null ? void 0 : Ee.current.orientation); }, [B, j, S]), Y = Wa((Ee) => { if (J.current = !1, re.current = !0, Ee.which === 229 || !ce.current && Ee.currentTarget === L.current) return; if (h && Uk(Ee.key, x, p, O)) { - aw(Ee.key, Ce()) || au(Ee), n(!1, Ee.nativeEvent, "list-navigation"), bo(i.domReference) && (g ? j == null || j.events.emit("virtualfocus", i.domReference) : i.domReference.focus()); + aw(Ee.key, Te()) || au(Ee), n(!1, Ee.nativeEvent, "list-navigation"), bo(i.domReference) && (g ? j == null || j.events.emit("virtualfocus", i.domReference) : i.domReference.focus()); return; } - const De = W.current, Ie = tS(o, m), Ye = gk(o, m); + const Me = W.current, Ie = eS(o, m), Ye = gk(o, m); if (H || (Ee.key === "Home" && (au(Ee), W.current = Ie, z()), Ee.key === "End" && (au(Ee), W.current = Ye, z())), O > 1) { const ot = P || Array.from({ length: o.current.length @@ -15119,46 +15124,46 @@ function pY(r, e) { } if (aw(Ee.key, x)) { if (au(Ee), t && !g && yh(Ee.currentTarget.ownerDocument) === Ee.currentTarget) { - W.current = cS(Ee.key, x, p) ? Ie : Ye, z(); + W.current = lS(Ee.key, x, p) ? Ie : Ye, z(); return; } - cS(Ee.key, x, p) ? d ? W.current = De >= Ye ? f && De !== o.current.length ? -1 : Ie : Wu(o, { - startingIndex: De, + lS(Ee.key, x, p) ? d ? W.current = Me >= Ye ? f && Me !== o.current.length ? -1 : Ie : Wu(o, { + startingIndex: Me, disabledIndices: m }) : W.current = Math.min(Ye, Wu(o, { - startingIndex: De, + startingIndex: Me, disabledIndices: m - })) : d ? W.current = De <= Ie ? f && De !== -1 ? o.current.length : Ye : Wu(o, { - startingIndex: De, + })) : d ? W.current = Me <= Ie ? f && Me !== -1 ? o.current.length : Ye : Wu(o, { + startingIndex: Me, decrement: !0, disabledIndices: m }) : W.current = Math.max(Ie, Wu(o, { - startingIndex: De, + startingIndex: Me, decrement: !0, disabledIndices: m })), Rb(o, W.current) && (W.current = -1), z(); } - }), Z = me.useMemo(() => g && t && Me && { + }), Q = me.useMemo(() => g && t && De && { "aria-activedescendant": ge || se - }, [g, t, Me, ge, se]), ie = me.useMemo(() => ({ + }, [g, t, De, ge, se]), ie = me.useMemo(() => ({ "aria-orientation": x === "both" ? void 0 : x, - ...H ? {} : Z, + ...H ? {} : Q, onKeyDown: Y, onPointerMove() { J.current = !0; } - }), [Z, Y, x, H]), we = me.useMemo(() => { + }), [Q, Y, x, H]), we = me.useMemo(() => { function Ee(Ie) { y === "auto" && s7(Ie.nativeEvent) && (q.current = !0); } - function De(Ie) { + function Me(Ie) { q.current = y, y === "auto" && u7(Ie.nativeEvent) && (q.current = !0); } return { - ...Z, + ...Q, onKeyDown(Ie) { J.current = !1; - const Ye = Ie.key.startsWith("Arrow"), ot = ["Home", "End"].includes(Ie.key), mt = Ye || ot, wt = Fk(Ie.key, x, p), Mt = Uk(Ie.key, x, p, O), Dt = Fk(Ie.key, Ce(), p), vt = aw(Ie.key, x), tt = (h ? Dt : vt) || Ie.key === "Enter" || Ie.key.trim() === ""; + const Ye = Ie.key.startsWith("Arrow"), ot = ["Home", "End"].includes(Ie.key), mt = Ye || ot, wt = Fk(Ie.key, x, p), Mt = Uk(Ie.key, x, p, O), Dt = Fk(Ie.key, Te(), p), vt = aw(Ie.key, x), tt = (h ? Dt : vt) || Ie.key === "Enter" || Ie.key.trim() === ""; if (g && t) { const Ze = j == null ? void 0 : j.nodesRef.current.find((It) => It.parentId == null), nt = j && Ze ? JH(j.nodesRef.current, Ze.id) : null; if (mt && nt && T) { @@ -15181,11 +15186,11 @@ function pY(r, e) { } if (!(!t && !_ && Ye)) { if (tt) { - const Ze = aw(Ie.key, Ce()); + const Ze = aw(Ie.key, Te()); $.current = h && Ze ? null : Ie.key; } if (h) { - Dt && (au(Ie), t ? (W.current = tS(o, le.current), z()) : n(!0, Ie.nativeEvent, "list-navigation")); + Dt && (au(Ie), t ? (W.current = eS(o, le.current), z()) : n(!0, Ie.nativeEvent, "list-navigation")); return; } vt && (c != null && (W.current = c), au(Ie), !t && _ ? n(!0, Ie.nativeEvent, "list-navigation") : Y(Ie), t && z()); @@ -15194,19 +15199,19 @@ function pY(r, e) { onFocus() { t && !g && (W.current = -1, z()); }, - onPointerDown: De, - onPointerEnter: De, + onPointerDown: Me, + onPointerEnter: Me, onMouseDown: Ee, onClick: Ee }; - }, [se, Z, O, Y, le, y, o, h, z, n, t, _, x, Ce, p, c, j, g, T]); + }, [se, Q, O, Y, le, y, o, h, z, n, t, _, x, Te, p, c, j, g, T]); return me.useMemo(() => l ? { reference: we, floating: ie, item: Ne } : {}, [l, we, ie, Ne]); } -const gY = /* @__PURE__ */ new Map([["select", "listbox"], ["combobox", "listbox"], ["label", !1]]); +const yY = /* @__PURE__ */ new Map([["select", "listbox"], ["combobox", "listbox"], ["label", !1]]); function j5(r, e) { var t, n; e === void 0 && (e = {}); @@ -15220,7 +15225,7 @@ function j5(r, e) { } = e, l = w2(), c = ((t = a.domReference) == null ? void 0 : t.id) || l, f = me.useMemo(() => { var _; return ((_ = Ex(a.floating)) == null ? void 0 : _.id) || o; - }, [a.floating, o]), d = (n = gY.get(u)) != null ? n : u, p = Up() != null, g = me.useMemo(() => d === "tooltip" || u === "label" ? { + }, [a.floating, o]), d = (n = yY.get(u)) != null ? n : u, p = Up() != null, g = me.useMemo(() => d === "tooltip" || u === "label" ? { ["aria-" + (u === "label" ? "labelledby" : "describedby")]: i ? f : void 0 } : { "aria-expanded": i ? "true" : "false", @@ -15285,7 +15290,7 @@ const zk = (r) => r.replace(/[A-Z]+(?![a-z])|[A-Z]/g, (e, t) => (t ? "-" : "") + function Yy(r, e) { return typeof r == "function" ? r(e) : r; } -function yY(r, e) { +function mY(r, e) { const [t, n] = me.useState(r); return r && !t && n(!0), me.useEffect(() => { if (!r && t) { @@ -15294,7 +15299,7 @@ function yY(r, e) { } }, [r, t, e]), t; } -function mY(r, e) { +function bY(r, e) { e === void 0 && (e = {}); const { open: t, @@ -15303,7 +15308,7 @@ function mY(r, e) { } } = r, { duration: i = 250 - } = e, o = (typeof i == "number" ? i : i.close) || 0, [s, u] = me.useState("unmounted"), l = yY(t, o); + } = e, o = (typeof i == "number" ? i : i.close) || 0, [s, u] = me.useState("unmounted"), l = mY(t, o); return !l && s === "close" && u("unmounted"), Di(() => { if (n) { if (t) { @@ -15324,7 +15329,7 @@ function mY(r, e) { status: s }; } -function bY(r, e) { +function _Y(r, e) { e === void 0 && (e = {}); const { initial: t = { @@ -15343,7 +15348,7 @@ function bY(r, e) { })), { isMounted: g, status: y - } = mY(r, { + } = bY(r, { duration: o }), b = Ns(t), _ = Ns(n), m = Ns(i), x = Ns(a); return Di(() => { @@ -15371,7 +15376,7 @@ function bY(r, e) { styles: h }; } -function _Y(r, e) { +function wY(r, e) { var t; const { open: n, @@ -15444,7 +15449,7 @@ function qk(r, e) { } return i; } -function wY(r, e) { +function xY(r, e) { return r[0] >= e.x && r[0] <= e.x + e.width && r[1] >= e.y && r[1] <= e.y + e.height; } function R7(r) { @@ -15483,24 +15488,24 @@ function R7(r) { const { clientX: O, clientY: E - } = x, T = [O, E], P = ZW(x), I = x.type === "mouseleave", k = oS(g.floating, P), L = oS(g.domReference, P), B = g.domReference.getBoundingClientRect(), j = g.floating.getBoundingClientRect(), z = p.split("-")[0], H = d > j.right - j.width / 2, q = h > j.bottom - j.height / 2, W = wY(T, B), $ = j.width > B.width, J = j.height > B.height, X = ($ ? B : j).left, Q = ($ ? B : j).right, ue = (J ? B : j).top, re = (J ? B : j).bottom; + } = x, T = [O, E], P = ZW(x), I = x.type === "mouseleave", k = aS(g.floating, P), L = aS(g.domReference, P), B = g.domReference.getBoundingClientRect(), j = g.floating.getBoundingClientRect(), z = p.split("-")[0], H = d > j.right - j.width / 2, q = h > j.bottom - j.height / 2, W = xY(T, B), $ = j.width > B.width, J = j.height > B.height, X = ($ ? B : j).left, Z = ($ ? B : j).right, ue = (J ? B : j).top, re = (J ? B : j).bottom; if (k && (a = !0, !I)) return; if (L && (a = !1), L && !I) { a = !0; return; } - if (I && da(x.relatedTarget) && oS(g.floating, x.relatedTarget) || _ && A7(_.nodesRef.current, b).length) + if (I && da(x.relatedTarget) && aS(g.floating, x.relatedTarget) || _ && A7(_.nodesRef.current, b).length) return; if (z === "top" && h >= B.bottom - 1 || z === "bottom" && h <= B.top + 1 || z === "left" && d >= B.right - 1 || z === "right" && d <= B.left + 1) return S(); let ne = []; switch (z) { case "top": - ne = [[X, B.top + 1], [X, j.bottom - 1], [Q, j.bottom - 1], [Q, B.top + 1]]; + ne = [[X, B.top + 1], [X, j.bottom - 1], [Z, j.bottom - 1], [Z, B.top + 1]]; break; case "bottom": - ne = [[X, j.top + 1], [X, B.bottom - 1], [Q, B.bottom - 1], [Q, j.top + 1]]; + ne = [[X, j.top + 1], [X, B.bottom - 1], [Z, B.bottom - 1], [Z, j.top + 1]]; break; case "left": ne = [[j.right - 1, re], [j.right - 1, ue], [B.left + 1, ue], [B.left + 1, re]]; @@ -15546,33 +15551,33 @@ function R7(r) { blockPointerEvents: t }, c; } -const v1 = ({ shouldWrap: r, wrap: e, children: t }) => r ? e(t) : t, xY = ao.createContext(null), B5 = () => !!me.useContext(xY), EY = me.createContext(void 0), SY = me.createContext(void 0), S2 = () => { - let r = me.useContext(EY); +const v1 = ({ shouldWrap: r, wrap: e, children: t }) => r ? e(t) : t, EY = ao.createContext(null), B5 = () => !!me.useContext(EY), SY = me.createContext(void 0), OY = me.createContext(void 0), E2 = () => { + let r = me.useContext(SY); r === void 0 && (r = "light"); - const e = me.useContext(SY); + const e = me.useContext(OY); return { theme: r, themeClassName: `ndl-theme-${r}`, tokens: e }; }; -function OY({ isInitialOpen: r = !1, placement: e = "top", isOpen: t, onOpenChange: n, type: i = "simple", isPortaled: a = !0, strategy: o = "absolute", hoverDelay: s = void 0, shouldCloseOnReferenceClick: u = !1, autoUpdateOptions: l, isDisabled: c = !1 } = {}) { +function TY({ isInitialOpen: r = !1, placement: e = "top", isOpen: t, onOpenChange: n, type: i = "simple", isPortaled: a = !0, strategy: o = "absolute", hoverDelay: s = void 0, shouldCloseOnReferenceClick: u = !1, autoUpdateOptions: l, isDisabled: c = !1 } = {}) { const [f, d] = me.useState(r), h = t ?? f, p = n ?? d, g = N5({ middleware: [ - A5(5), - P5({ + C5(5), + R5({ crossAxis: e.includes("-"), fallbackAxisSideDirection: "start", padding: 5 }), - R5({ padding: 5 }) + A5({ padding: 5 }) ], onOpenChange: p, open: h, placement: e, strategy: o, whileElementsMounted(E, T, P) { - return C5(E, T, P, Object.assign({}, l)); + return T5(E, T, P, Object.assign({}, l)); } }), y = g.context, b = S7(y, { delay: s, @@ -15581,7 +15586,7 @@ function OY({ isInitialOpen: r = !1, placement: e = "top", isOpen: t, onOpenChan move: !1 }), _ = k5(y, { enabled: i === "rich" && !c - }), m = hY(y, { + }), m = vY(y, { enabled: i === "simple" && !c, visibleOnly: !0 }), x = I5(y, { @@ -15613,7 +15618,7 @@ var G1 = function(r, e) { return t; }; const M7 = ({ children: r, isDisabled: e = !1, type: t, isInitialOpen: n, placement: i, isOpen: a, onOpenChange: o, isPortaled: s, floatingStrategy: u, hoverDelay: l, shouldCloseOnReferenceClick: c, autoUpdateOptions: f }) => { - const d = B5(), g = OY({ + const d = B5(), g = TY({ autoUpdateOptions: f, hoverDelay: l, isDisabled: e, @@ -15627,10 +15632,10 @@ const M7 = ({ children: r, isDisabled: e = !1, type: t, isInitialOpen: n, placem strategy: u ?? (d ? "fixed" : "absolute"), type: t }); - return Te.jsx(P7.Provider, { value: g, children: r }); + return Ce.jsx(P7.Provider, { value: g, children: r }); }; M7.displayName = "Tooltip"; -const TY = (r) => { +const CY = (r) => { var { children: e, hasButtonWrapper: t = !1, htmlAttributes: n, className: i, style: a, ref: o } = r, s = G1(r, ["children", "hasButtonWrapper", "htmlAttributes", "className", "style", "ref"]); const u = q1(), l = e.props, c = mv([ u.refs.setReference, @@ -15644,40 +15649,40 @@ const TY = (r) => { const d = Object.assign(Object.assign(Object.assign({ className: f }, n), l), { ref: c }); return me.cloneElement(e, u.getReferenceProps(d)); } - return Te.jsx("button", Object.assign({ type: "button", className: f, style: a, ref: c }, u.getReferenceProps(n), s, { children: e })); -}, CY = (r) => { + return Ce.jsx("button", Object.assign({ type: "button", className: f, style: a, ref: c }, u.getReferenceProps(n), s, { children: e })); +}, AY = (r) => { var { children: e, style: t, htmlAttributes: n, className: i, ref: a } = r, o = G1(r, ["children", "style", "htmlAttributes", "className", "ref"]); - const s = q1(), u = mv([s.refs.setFloating, a]), { themeClassName: l } = S2(); + const s = q1(), u = mv([s.refs.setFloating, a]), { themeClassName: l } = E2(); if (!s.isOpen) return null; const c = Vn("ndl-tooltip-content", l, i, { "ndl-tooltip-content-rich": s.type === "rich", "ndl-tooltip-content-simple": s.type === "simple" }); - return s.type === "simple" ? Te.jsx(v1, { shouldWrap: s.isPortaled, wrap: (f) => Te.jsx(Tx, { children: f }), children: Te.jsx("div", Object.assign({ ref: u, className: c, style: Object.assign(Object.assign({}, s.floatingStyles), t) }, o, s.getFloatingProps(n), { children: Te.jsx(Ed, { variant: "body-medium", children: e }) })) }) : Te.jsx(v1, { shouldWrap: s.isPortaled, wrap: (f) => Te.jsx(Tx, { children: f }), children: Te.jsx(D5, { context: s.context, returnFocus: !0, modal: !1, initialFocus: -1, closeOnFocusOut: !0, children: Te.jsx("div", Object.assign({ ref: u, className: c, style: Object.assign(Object.assign({}, s.floatingStyles), t) }, o, s.getFloatingProps(n), { children: e })) }) }); -}, AY = (r) => { + return s.type === "simple" ? Ce.jsx(v1, { shouldWrap: s.isPortaled, wrap: (f) => Ce.jsx(Tx, { children: f }), children: Ce.jsx("div", Object.assign({ ref: u, className: c, style: Object.assign(Object.assign({}, s.floatingStyles), t) }, o, s.getFloatingProps(n), { children: Ce.jsx(Ed, { variant: "body-medium", children: e }) })) }) : Ce.jsx(v1, { shouldWrap: s.isPortaled, wrap: (f) => Ce.jsx(Tx, { children: f }), children: Ce.jsx(D5, { context: s.context, returnFocus: !0, modal: !1, initialFocus: -1, closeOnFocusOut: !0, children: Ce.jsx("div", Object.assign({ ref: u, className: c, style: Object.assign(Object.assign({}, s.floatingStyles), t) }, o, s.getFloatingProps(n), { children: e })) }) }); +}, RY = (r) => { var { children: e, passThroughProps: t, typographyVariant: n = "subheading-medium", className: i, style: a, htmlAttributes: o, ref: s } = r, u = G1(r, ["children", "passThroughProps", "typographyVariant", "className", "style", "htmlAttributes", "ref"]); const l = q1(), c = Vn("ndl-tooltip-header", i); - return l.isOpen ? Te.jsx(Ed, Object.assign({ ref: s, variant: n, className: c, style: a, htmlAttributes: o }, t, u, { children: e })) : null; -}, RY = (r) => { + return l.isOpen ? Ce.jsx(Ed, Object.assign({ ref: s, variant: n, className: c, style: a, htmlAttributes: o }, t, u, { children: e })) : null; +}, PY = (r) => { var { children: e, className: t, style: n, htmlAttributes: i, passThroughProps: a, ref: o } = r, s = G1(r, ["children", "className", "style", "htmlAttributes", "passThroughProps", "ref"]); const u = q1(), l = Vn("ndl-tooltip-body", t); - return u.isOpen ? Te.jsx(Ed, Object.assign({ ref: o, variant: "body-medium", className: l, style: n, htmlAttributes: i }, a, s, { children: e })) : null; -}, PY = (r) => { + return u.isOpen ? Ce.jsx(Ed, Object.assign({ ref: o, variant: "body-medium", className: l, style: n, htmlAttributes: i }, a, s, { children: e })) : null; +}, MY = (r) => { var { children: e, className: t, style: n, htmlAttributes: i, ref: a } = r, o = G1(r, ["children", "className", "style", "htmlAttributes", "ref"]); const s = q1(), u = mv([s.refs.setFloating, a]); if (!s.isOpen) return null; const l = Vn("ndl-tooltip-actions", t); - return Te.jsx("div", Object.assign({ className: l, ref: u, style: n }, o, i, { children: e })); + return Ce.jsx("div", Object.assign({ className: l, ref: u, style: n }, o, i, { children: e })); }, Bf = Object.assign(M7, { - Actions: PY, - Body: RY, - Content: CY, - Header: AY, - Trigger: TY + Actions: MY, + Body: PY, + Content: AY, + Header: RY, + Trigger: CY }); -var MY = function(r, e) { +var DY = function(r, e) { var t = {}; for (var n in r) Object.prototype.hasOwnProperty.call(r, n) && e.indexOf(n) < 0 && (t[n] = r[n]); if (r != null && typeof Object.getOwnPropertySymbols == "function") @@ -15704,7 +15709,7 @@ const D7 = (r) => { htmlAttributes: p, onClick: g, ref: y - } = r, b = MY(r, ["children", "as", "iconButtonVariant", "isLoading", "isDisabled", "size", "isFloating", "isActive", "description", "tooltipProps", "className", "style", "variant", "htmlAttributes", "onClick", "ref"]); + } = r, b = DY(r, ["children", "as", "iconButtonVariant", "isLoading", "isDisabled", "size", "isFloating", "isActive", "description", "tooltipProps", "className", "style", "variant", "htmlAttributes", "onClick", "ref"]); const _ = t ?? "button", m = !a && !i, x = n === "clean", O = Vn("ndl-icon-btn", f, { "ndl-active": !!u, "ndl-clean": x, @@ -15718,7 +15723,7 @@ const D7 = (r) => { }); if (x && s) throw new Error('BaseIconButton: Cannot use isFloating and iconButtonVariant="clean" at the same time.'); - !l && !(p != null && p["aria-label"]) && JP("Icon buttons do not have text, be sure to include a description or an aria-label for screen readers link: https://dequeuniversity.com/rules/axe/4.4/button-name?application=axeAPI"); + !l && !(p != null && p["aria-label"]) && QP("Icon buttons do not have text, be sure to include a description or an aria-label for screen readers link: https://dequeuniversity.com/rules/axe/4.4/button-name?application=axeAPI"); const E = (T) => { if (!m) { T.preventDefault(), T.stopPropagation(); @@ -15726,12 +15731,12 @@ const D7 = (r) => { } g && g(T); }; - return Te.jsxs(Bf, Object.assign({ hoverDelay: { + return Ce.jsxs(Bf, Object.assign({ hoverDelay: { close: 0, open: 500 - } }, c == null ? void 0 : c.root, { type: "simple", isDisabled: l === null || a, children: [Te.jsx(Bf.Trigger, Object.assign({}, c == null ? void 0 : c.trigger, { hasButtonWrapper: !0, children: Te.jsx(_, Object.assign({ type: "button", onClick: E, disabled: a, "aria-disabled": !m, "aria-label": l, "aria-pressed": u, className: O, style: d, ref: y }, b, p, { children: Te.jsx("div", { className: "ndl-icon-btn-inner", children: i ? Te.jsx(h1, { size: "small" }) : Te.jsx("div", { className: "ndl-icon", children: e }) }) })) })), Te.jsx(Bf.Content, Object.assign({}, c == null ? void 0 : c.content, { children: l }))] })); + } }, c == null ? void 0 : c.root, { type: "simple", isDisabled: l === null || a, children: [Ce.jsx(Bf.Trigger, Object.assign({}, c == null ? void 0 : c.trigger, { hasButtonWrapper: !0, children: Ce.jsx(_, Object.assign({ type: "button", onClick: E, disabled: a, "aria-disabled": !m, "aria-label": l, "aria-pressed": u, className: O, style: d, ref: y }, b, p, { children: Ce.jsx("div", { className: "ndl-icon-btn-inner", children: i ? Ce.jsx(h1, { size: "small" }) : Ce.jsx("div", { className: "ndl-icon", children: e }) }) })) })), Ce.jsx(Bf.Content, Object.assign({}, c == null ? void 0 : c.content, { children: l }))] })); }; -var DY = function(r, e) { +var kY = function(r, e) { var t = {}; for (var n in r) Object.prototype.hasOwnProperty.call(r, n) && e.indexOf(n) < 0 && (t[n] = r[n]); if (r != null && typeof Object.getOwnPropertySymbols == "function") @@ -15739,7 +15744,7 @@ var DY = function(r, e) { e.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(r, n[i]) && (t[n[i]] = r[n[i]]); return t; }; -const O2 = (r) => { +const S2 = (r) => { var { children: e, as: t, @@ -15756,30 +15761,30 @@ const O2 = (r) => { htmlAttributes: d, onClick: h, ref: p - } = r, g = DY(r, ["children", "as", "isLoading", "isDisabled", "size", "isActive", "variant", "description", "tooltipProps", "className", "style", "htmlAttributes", "onClick", "ref"]); - return Te.jsx(D7, Object.assign({ as: t, iconButtonVariant: "clean", isDisabled: i, size: a, isLoading: n, isActive: o, variant: s, description: u, tooltipProps: l, className: c, style: f, htmlAttributes: d, onClick: h, ref: p }, g, { children: e })); + } = r, g = kY(r, ["children", "as", "isLoading", "isDisabled", "size", "isActive", "variant", "description", "tooltipProps", "className", "style", "htmlAttributes", "onClick", "ref"]); + return Ce.jsx(D7, Object.assign({ as: t, iconButtonVariant: "clean", isDisabled: i, size: a, isLoading: n, isActive: o, variant: s, description: u, tooltipProps: l, className: c, style: f, htmlAttributes: d, onClick: h, ref: p }, g, { children: e })); }; -function kY({ state: r, onChange: e, isControlled: t, inputType: n = "text" }) { +function IY({ state: r, onChange: e, isControlled: t, inputType: n = "text" }) { const [i, a] = me.useState(r), o = me.useMemo(() => t === !0 ? r : i, [t, r, i]), s = me.useCallback((u) => { let l; ["checkbox", "radio", "switch"].includes(n) ? l = u.target.checked : l = u.target.value, t !== !0 && a(l), e == null || e(u); }, [t, e, n]); return [o, s]; } -function IY({ isInitialOpen: r = !1, placement: e = "bottom", isOpen: t, onOpenChange: n, offsetOption: i = 10, anchorElement: a, anchorPosition: o, anchorElementAsPortalAnchor: s, shouldCaptureFocus: u, initialFocus: l, role: c, closeOnClickOutside: f, strategy: d = "absolute", isPortaled: h = !0 } = {}) { +function NY({ isInitialOpen: r = !1, placement: e = "bottom", isOpen: t, onOpenChange: n, offsetOption: i = 10, anchorElement: a, anchorPosition: o, anchorElementAsPortalAnchor: s, shouldCaptureFocus: u, initialFocus: l, role: c, closeOnClickOutside: f, strategy: d = "absolute", isPortaled: h = !0 } = {}) { var p; const [g, y] = me.useState(r), [b, _] = me.useState(), [m, x] = me.useState(), S = t ?? g, O = n ?? y, E = N5({ elements: { reference: a }, middleware: [ - A5(i), - P5({ + C5(i), + R5({ crossAxis: e.includes("-"), fallbackAxisSideDirection: "end", padding: 5 }), - R5() + A5() ], onOpenChange: (z, H) => { O(z), n == null || n(z, H); @@ -15787,18 +15792,18 @@ function IY({ isInitialOpen: r = !1, placement: e = "bottom", isOpen: t, onOpenC open: S, placement: e, strategy: d, - whileElementsMounted: C5 + whileElementsMounted: T5 }), T = E.context, P = k5(T, { enabled: t === void 0 }), I = I5(T, { outsidePress: f }), k = j5(T, { role: c - }), L = lY(T, { + }), L = cY(T, { enabled: o !== void 0, x: o == null ? void 0 : o.x, y: o == null ? void 0 : o.y - }), B = L5([P, I, k, L]), { styles: j } = bY(T, { + }), B = L5([P, I, k, L]), { styles: j } = _Y(T, { duration: (p = Number.parseInt(Yu.motion.duration.quick)) !== null && p !== void 0 ? p : 0 }); return me.useMemo(() => Object.assign(Object.assign(Object.assign({ @@ -15828,7 +15833,7 @@ function IY({ isInitialOpen: r = !1, placement: e = "bottom", isOpen: t, onOpenC h ]); } -function NY() { +function LY() { me.useEffect(() => { const r = () => { document.querySelectorAll("[data-floating-ui-focus-guard]").forEach((n) => { @@ -15847,7 +15852,7 @@ function NY() { }; }, []); } -var oM = function(r, e) { +var aM = function(r, e) { var t = {}; for (var n in r) Object.prototype.hasOwnProperty.call(r, n) && e.indexOf(n) < 0 && (t[n] = r[n]); if (r != null && typeof Object.getOwnPropertySymbols == "function") @@ -15873,8 +15878,8 @@ const k7 = { if (r === null) throw new Error("Popover components must be wrapped in "); return r; -}, LY = ({ children: r, anchorElement: e, placement: t, isOpen: n, offset: i, anchorPosition: a, hasAnchorPortal: o, shouldCaptureFocus: s = !1, initialFocus: u, onOpenChange: l, role: c, closeOnClickOutside: f = !0, isPortaled: d, strategy: h }) => { - const p = B5(), g = p ? "fixed" : "absolute", _ = IY({ +}, jY = ({ children: r, anchorElement: e, placement: t, isOpen: n, offset: i, anchorPosition: a, hasAnchorPortal: o, shouldCaptureFocus: s = !1, initialFocus: u, onOpenChange: l, role: c, closeOnClickOutside: f = !0, isPortaled: d, strategy: h }) => { + const p = B5(), g = p ? "fixed" : "absolute", _ = NY({ anchorElement: e, anchorElementAsPortalAnchor: o ?? p, anchorPosition: a, @@ -15889,26 +15894,26 @@ const k7 = { shouldCaptureFocus: s, strategy: h ?? g }); - return Te.jsx(I7.Provider, { value: _, children: r }); -}, jY = (r) => { - var { children: e, hasButtonWrapper: t = !1, ref: n } = r, i = oM(r, ["children", "hasButtonWrapper", "ref"]); + return Ce.jsx(I7.Provider, { value: _, children: r }); +}, BY = (r) => { + var { children: e, hasButtonWrapper: t = !1, ref: n } = r, i = aM(r, ["children", "hasButtonWrapper", "ref"]); const a = N7(), o = e.props, s = mv([ a.refs.setReference, n, o == null ? void 0 : o.ref ]); - return t && ao.isValidElement(e) ? ao.cloneElement(e, a.getReferenceProps(Object.assign(Object.assign(Object.assign({}, i), o), { "data-state": a.isOpen ? "open" : "closed", ref: s }))) : Te.jsx("button", Object.assign({ ref: a.refs.setReference, type: "button", "data-state": a.isOpen ? "open" : "closed" }, a.getReferenceProps(i), { children: e })); -}, BY = (r) => { - var { as: e, className: t, style: n, children: i, htmlAttributes: a, ref: o } = r, s = oM(r, ["as", "className", "style", "children", "htmlAttributes", "ref"]); - const u = N7(), { context: l } = u, c = oM(u, ["context"]), f = mv([c.refs.setFloating, o]), { themeClassName: d } = S2(), h = Vn("ndl-popover", d, t), p = e ?? "div"; - return NY(), l.open ? Te.jsx(v1, { shouldWrap: c.isPortaled, wrap: (g) => { + return t && ao.isValidElement(e) ? ao.cloneElement(e, a.getReferenceProps(Object.assign(Object.assign(Object.assign({}, i), o), { "data-state": a.isOpen ? "open" : "closed", ref: s }))) : Ce.jsx("button", Object.assign({ ref: a.refs.setReference, type: "button", "data-state": a.isOpen ? "open" : "closed" }, a.getReferenceProps(i), { children: e })); +}, FY = (r) => { + var { as: e, className: t, style: n, children: i, htmlAttributes: a, ref: o } = r, s = aM(r, ["as", "className", "style", "children", "htmlAttributes", "ref"]); + const u = N7(), { context: l } = u, c = aM(u, ["context"]), f = mv([c.refs.setFloating, o]), { themeClassName: d } = E2(), h = Vn("ndl-popover", d, t), p = e ?? "div"; + return LY(), l.open ? Ce.jsx(v1, { shouldWrap: c.isPortaled, wrap: (g) => { var y; - return Te.jsx(Tx, { root: (y = c.anchorElementAsPortalAnchor) !== null && y !== void 0 && y ? c.refs.reference.current : void 0, children: g }); - }, children: Te.jsx(D5, { context: l, modal: c.shouldCaptureFocus, initialFocus: c.initialFocus, children: Te.jsx(p, Object.assign({ className: h, "aria-labelledby": c.labelId, "aria-describedby": c.descriptionId, style: Object.assign(Object.assign(Object.assign({}, c.floatingStyles), c.transitionStyles), n), ref: f }, c.getFloatingProps(Object.assign({}, a)), s, { children: i })) }) }) : null; + return Ce.jsx(Tx, { root: (y = c.anchorElementAsPortalAnchor) !== null && y !== void 0 && y ? c.refs.reference.current : void 0, children: g }); + }, children: Ce.jsx(D5, { context: l, modal: c.shouldCaptureFocus, initialFocus: c.initialFocus, children: Ce.jsx(p, Object.assign({ className: h, "aria-labelledby": c.labelId, "aria-describedby": c.descriptionId, style: Object.assign(Object.assign(Object.assign({}, c.floatingStyles), c.transitionStyles), n), ref: f }, c.getFloatingProps(Object.assign({}, a)), s, { children: i })) }) }) : null; }; -Object.assign(LY, { - Content: BY, - Trigger: jY +Object.assign(jY, { + Content: FY, + Trigger: BY }); var Xm = function(r, e) { var t = {}; @@ -15928,35 +15933,35 @@ const p1 = me.createContext({ // oxlint-disable-next-line @typescript-eslint/no-empty-function setHasFocusInside: () => { } -}), FY = (r) => Up() === null ? Te.jsx(KW, { children: Te.jsx(Gk, Object.assign({}, r, { isRoot: !0 })) }) : Te.jsx(Gk, Object.assign({}, r)), Gk = ({ children: r, isOpen: e, onClose: t, isRoot: n, anchorRef: i, as: a, className: o, placement: s, minWidth: u, title: l, isDisabled: c, description: f, icon: d, isPortaled: h = !0, portalTarget: p, htmlAttributes: g, strategy: y, ref: b, style: _ }) => { - const [m, x] = me.useState(!1), [S, O] = me.useState(!1), [E, T] = me.useState(null), P = me.useRef([]), I = me.useRef([]), k = me.useContext(p1), L = B5(), B = bv(), j = XW(), z = Up(), H = b2(), { themeClassName: q } = S2(); +}), UY = (r) => Up() === null ? Ce.jsx(KW, { children: Ce.jsx(Gk, Object.assign({}, r, { isRoot: !0 })) }) : Ce.jsx(Gk, Object.assign({}, r)), Gk = ({ children: r, isOpen: e, onClose: t, isRoot: n, anchorRef: i, as: a, className: o, placement: s, minWidth: u, title: l, isDisabled: c, description: f, icon: d, isPortaled: h = !0, portalTarget: p, htmlAttributes: g, strategy: y, ref: b, style: _ }) => { + const [m, x] = me.useState(!1), [S, O] = me.useState(!1), [E, T] = me.useState(null), P = me.useRef([]), I = me.useRef([]), k = me.useContext(p1), L = B5(), B = bv(), j = XW(), z = Up(), H = b2(), { themeClassName: q } = E2(); me.useEffect(() => { e !== void 0 && x(e); }, [e]), me.useEffect(() => { m && T(0); }, [m]); - const W = a ?? "div", $ = z !== null, J = $ ? "right-start" : "bottom-start", { floatingStyles: X, refs: Q, context: ue } = N5({ + const W = a ?? "div", $ = z !== null, J = $ ? "right-start" : "bottom-start", { floatingStyles: X, refs: Z, context: ue } = N5({ elements: { reference: i == null ? void 0 : i.current }, middleware: [ - A5({ + C5({ alignmentAxis: $ ? -4 : 0, mainAxis: $ ? 0 : 4 }), - P5({ + R5({ fallbackPlacements: ["left-start", "right-start"] }), - R5() + A5() ], nodeId: j, - onOpenChange: (Me, Ne) => { - e === void 0 && x(Me), Me || (Ne instanceof PointerEvent ? t == null || t(Ne, { type: "backdropClick" }) : Ne instanceof KeyboardEvent && (t == null || t(Ne, { type: "escapeKeyDown" }))); + onOpenChange: (Ne, Te) => { + e === void 0 && x(Ne), Ne || (Te instanceof PointerEvent ? t == null || t(Te, { type: "backdropClick" }) : Te instanceof KeyboardEvent ? t == null || t(Te, { type: "escapeKeyDown" }) : Te instanceof FocusEvent && (t == null || t(Te, { type: "focusOut" }))); }, open: m, placement: s ? k7[s] : J, strategy: y ?? (L ? "fixed" : "absolute"), - whileElementsMounted: C5 + whileElementsMounted: T5 }), re = S7(ue, { delay: { open: 75 }, enabled: $, @@ -15965,12 +15970,12 @@ const p1 = me.createContext({ event: "mousedown", ignoreMouse: $, toggle: !$ - }), le = j5(ue, { role: "menu" }), ce = I5(ue, { bubbles: !0 }), pe = pY(ue, { + }), le = j5(ue, { role: "menu" }), ce = I5(ue, { bubbles: !0 }), pe = gY(ue, { activeIndex: E, listRef: P, nested: $, onNavigate: T - }), fe = _Y(ue, { + }), fe = wY(ue, { activeIndex: E, listRef: I, onMatch: m ? T : void 0 @@ -15978,41 +15983,48 @@ const p1 = me.createContext({ me.useEffect(() => { if (!B) return; - function Me(Ce) { - e === void 0 && x(!1), t == null || t(void 0, { id: Ce == null ? void 0 : Ce.id, type: "itemClick" }); + function Ne(Y) { + e === void 0 && x(!1), t == null || t(void 0, { id: Y == null ? void 0 : Y.id, type: "itemClick" }); } - function Ne(Ce) { - Ce.nodeId !== j && Ce.parentId === z && (e === void 0 && x(!1), t == null || t(void 0, { type: "itemClick" })); + function Te(Y) { + Y.nodeId !== j && Y.parentId === z && (e === void 0 && x(!1), t == null || t(void 0, { type: "itemClick" })); } - return B.events.on("click", Me), B.events.on("menuopen", Ne), () => { - B.events.off("click", Me), B.events.off("menuopen", Ne); + return B.events.on("click", Ne), B.events.on("menuopen", Te), () => { + B.events.off("click", Ne), B.events.off("menuopen", Te); }; }, [B, j, z, t, e]), me.useEffect(() => { m && B && B.events.emit("menuopen", { nodeId: j, parentId: z }); }, [B, m, j, z]); - const Oe = Vn("ndl-menu", q, o), ke = mv([Q.setReference, H.ref, b]); - return Te.jsxs($W, { id: j, children: [n !== !0 && Te.jsx(zY, { ref: ke, className: $ ? "MenuItem" : "RootMenu", isDisabled: c, style: _, htmlAttributes: Object.assign(Object.assign({ "data-focus-inside": S ? "" : void 0, "data-nested": $ ? "" : void 0, "data-open": m ? "" : void 0, role: $ ? "menuitem" : void 0, tabIndex: $ ? k.activeIndex === H.index ? 0 : -1 : void 0 }, g), se(k.getItemProps({ - onFocus(Me) { - var Ne; - (Ne = g == null ? void 0 : g.onFocus) === null || Ne === void 0 || Ne.call(g, Me), O(!1), k.setHasFocusInside(!0); + const Oe = me.useCallback((Ne) => { + Ne.key === "Tab" && Ne.shiftKey && requestAnimationFrame(() => { + const Te = Z.floating.current; + Te && !Te.contains(document.activeElement) && (e === void 0 && x(!1), t == null || t(void 0, { type: "focusOut" })); + }); + }, [e, t, Z]), ke = Vn("ndl-menu", q, o), De = mv([Z.setReference, H.ref, b]); + return Ce.jsxs($W, { id: j, children: [n !== !0 && Ce.jsx(qY, { ref: De, className: $ ? "MenuItem" : "RootMenu", isDisabled: c, style: _, htmlAttributes: Object.assign(Object.assign({ "data-focus-inside": S ? "" : void 0, "data-nested": $ ? "" : void 0, "data-open": m ? "" : void 0, role: $ ? "menuitem" : void 0, tabIndex: $ ? k.activeIndex === H.index ? 0 : -1 : void 0 }, g), se(k.getItemProps({ + onFocus(Ne) { + var Te; + (Te = g == null ? void 0 : g.onFocus) === null || Te === void 0 || Te.call(g, Ne), O(!1), k.setHasFocusInside(!0); } - }))), title: l, description: f, leadingVisual: d }), Te.jsx(p1.Provider, { value: { + }))), title: l, description: f, leadingVisual: d }), Ce.jsx(p1.Provider, { value: { activeIndex: E, getItemProps: ge, isOpen: c === !0 ? !1 : m, setActiveIndex: T, setHasFocusInside: O - }, children: Te.jsx(qW, { elementsRef: P, labelsRef: I, children: m && Te.jsx(v1, { shouldWrap: h, wrap: (Me) => Te.jsx(Tx, { root: p, children: Me }), children: Te.jsx(D5, { context: ue, modal: !1, initialFocus: 0, returnFocus: !$, closeOnFocusOut: !0, guards: !0, children: Te.jsx(W, Object.assign({ ref: Q.setFloating, className: Oe, style: Object.assign(Object.assign({ minWidth: u !== void 0 ? `${u}px` : void 0 }, X), _) }, de(), { children: r })) }) }) }) })] }); + }, children: Ce.jsx(qW, { elementsRef: P, labelsRef: I, children: m && Ce.jsx(v1, { shouldWrap: h, wrap: (Ne) => Ce.jsx(Tx, { root: p, children: Ne }), children: Ce.jsx(D5, { context: ue, modal: !1, initialFocus: 0, returnFocus: !$, closeOnFocusOut: !0, guards: !0, children: Ce.jsx(W, Object.assign({ ref: Z.setFloating, className: ke, style: Object.assign(Object.assign({ minWidth: u !== void 0 ? `${u}px` : void 0 }, X), _) }, de({ + onKeyDown: Oe + }), { children: r })) }) }) }) })] }); }, F5 = (r) => { var { title: e, leadingContent: t, trailingContent: n, preLeadingContent: i, description: a, isDisabled: o, as: s, className: u, style: l, htmlAttributes: c, ref: f } = r, d = Xm(r, ["title", "leadingContent", "trailingContent", "preLeadingContent", "description", "isDisabled", "as", "className", "style", "htmlAttributes", "ref"]); const h = Vn("ndl-menu-item", u, { "ndl-disabled": o }), p = s ?? "button"; - return Te.jsx(p, Object.assign({ className: h, ref: f, type: "button", role: "menuitem", disabled: o, style: l }, d, c, { children: Te.jsxs("div", { className: "ndl-menu-item-inner", children: [!!i && Te.jsx("div", { className: "ndl-menu-item-pre-leading-content", children: i }), !!t && Te.jsx("div", { className: "ndl-menu-item-leading-content", children: t }), Te.jsxs("div", { className: "ndl-menu-item-title-wrapper", children: [Te.jsx("div", { className: "ndl-menu-item-title", children: e }), !!a && Te.jsx("div", { className: "ndl-menu-item-description", children: a })] }), !!n && Te.jsx("div", { className: "ndl-menu-item-trailing-content", children: n })] }) })); -}, UY = (r) => { + return Ce.jsx(p, Object.assign({ className: h, ref: f, type: "button", role: "menuitem", disabled: o, style: l }, d, c, { children: Ce.jsxs("div", { className: "ndl-menu-item-inner", children: [!!i && Ce.jsx("div", { className: "ndl-menu-item-pre-leading-content", children: i }), !!t && Ce.jsx("div", { className: "ndl-menu-item-leading-content", children: t }), Ce.jsxs("div", { className: "ndl-menu-item-title-wrapper", children: [Ce.jsx("div", { className: "ndl-menu-item-title", children: e }), !!a && Ce.jsx("div", { className: "ndl-menu-item-description", children: a })] }), !!n && Ce.jsx("div", { className: "ndl-menu-item-trailing-content", children: n })] }) })); +}, zY = (r) => { var { title: e, className: t, style: n, leadingVisual: i, trailingContent: a, description: o, isDisabled: s, as: u, onClick: l, onFocus: c, htmlAttributes: f, id: d, ref: h } = r, p = Xm(r, ["title", "className", "style", "leadingVisual", "trailingContent", "description", "isDisabled", "as", "onClick", "onFocus", "htmlAttributes", "id", "ref"]); const g = me.useContext(p1), b = b2({ label: s === !0 ? null : typeof e == "string" ? e : void 0 }), _ = bv(), m = b.index === g.activeIndex, x = mv([b.ref, h]); - return Te.jsx(F5, Object.assign({ as: u ?? "button", style: n, className: t, ref: x, title: e, description: o, leadingContent: i, trailingContent: a, isDisabled: s, htmlAttributes: Object.assign(Object.assign(Object.assign({}, f), { tabIndex: m ? 0 : -1 }), g.getItemProps({ + return Ce.jsx(F5, Object.assign({ as: u ?? "button", style: n, className: t, ref: x, title: e, description: o, leadingContent: i, trailingContent: a, isDisabled: s, htmlAttributes: Object.assign(Object.assign(Object.assign({}, f), { tabIndex: m ? 0 : -1 }), g.getItemProps({ id: d, onClick(S) { l == null || l(S), _ == null || _.events.emit("click", { id: d }); @@ -16021,9 +16033,9 @@ const p1 = me.createContext({ c == null || c(S), g.setHasFocusInside(!0); } })) }, p)); -}, zY = ({ title: r, isDisabled: e, description: t, leadingVisual: n, as: i, onFocus: a, onClick: o, className: s, style: u, htmlAttributes: l, id: c, ref: f }) => { +}, qY = ({ title: r, isDisabled: e, description: t, leadingVisual: n, as: i, onFocus: a, onClick: o, className: s, style: u, htmlAttributes: l, id: c, ref: f }) => { const d = me.useContext(p1), p = b2({ label: e === !0 ? null : typeof r == "string" ? r : void 0 }), g = p.index === d.activeIndex, y = mv([p.ref, f]); - return Te.jsx(F5, { as: i ?? "button", style: u, className: s, ref: y, title: r, description: t, leadingContent: n, trailingContent: Te.jsx(V9, { className: "ndl-menu-item-chevron" }), isDisabled: e, htmlAttributes: Object.assign(Object.assign(Object.assign(Object.assign({}, l), { tabIndex: g ? 0 : -1 }), d.getItemProps({ + return Ce.jsx(F5, { as: i ?? "button", style: u, className: s, ref: y, title: r, description: t, leadingContent: n, trailingContent: Ce.jsx(V9, { className: "ndl-menu-item-chevron" }), isDisabled: e, htmlAttributes: Object.assign(Object.assign(Object.assign(Object.assign({}, l), { tabIndex: g ? 0 : -1 }), d.getItemProps({ onClick(b) { o == null || o(b); }, @@ -16034,16 +16046,16 @@ const p1 = me.createContext({ d.setHasFocusInside(!0); } })), { id: c }) }); -}, qY = (r) => { +}, GY = (r) => { var { children: e, className: t, style: n, as: i, htmlAttributes: a, ref: o } = r, s = Xm(r, ["children", "className", "style", "as", "htmlAttributes", "ref"]); const u = Vn("ndl-menu-category-item", t), l = i ?? "div"; - return Te.jsx(l, Object.assign({ className: u, style: n, ref: o }, s, a, { children: e })); -}, GY = (r) => { + return Ce.jsx(l, Object.assign({ className: u, style: n, ref: o }, s, a, { children: e })); +}, VY = (r) => { var { title: e, leadingVisual: t, trailingContent: n, description: i, isDisabled: a, isChecked: o = !1, onClick: s, onFocus: u, className: l, style: c, as: f, id: d, htmlAttributes: h, ref: p } = r, g = Xm(r, ["title", "leadingVisual", "trailingContent", "description", "isDisabled", "isChecked", "onClick", "onFocus", "className", "style", "as", "id", "htmlAttributes", "ref"]); const y = me.useContext(p1), _ = b2({ label: a === !0 ? null : typeof e == "string" ? e : void 0 }), m = bv(), x = _.index === y.activeIndex, S = mv([_.ref, p]), O = Vn("ndl-menu-radio-item", l, { "ndl-checked": o }); - return Te.jsx(F5, Object.assign({ as: f ?? "button", style: c, className: O, ref: S, title: e, description: i, preLeadingContent: o ? Te.jsx(IV, { className: "n-size-5 n-shrink-0 n-self-center" }) : null, leadingContent: t, trailingContent: n, isDisabled: a, htmlAttributes: Object.assign(Object.assign(Object.assign({}, h), { "aria-checked": o, role: "menuitemradio", tabIndex: x ? 0 : -1 }), y.getItemProps({ + return Ce.jsx(F5, Object.assign({ as: f ?? "button", style: c, className: O, ref: S, title: e, description: i, preLeadingContent: o ? Ce.jsx(IV, { className: "n-size-5 n-shrink-0 n-self-center" }) : null, leadingContent: t, trailingContent: n, isDisabled: a, htmlAttributes: Object.assign(Object.assign(Object.assign({}, h), { "aria-checked": o, role: "menuitemradio", tabIndex: x ? 0 : -1 }), y.getItemProps({ id: d, onClick(E) { s == null || s(E), m == null || m.events.emit("click", { id: d }); @@ -16052,26 +16064,26 @@ const p1 = me.createContext({ u == null || u(E), y.setHasFocusInside(!0); } })) }, g)); -}, VY = (r) => { +}, HY = (r) => { var { as: e, children: t, className: n, htmlAttributes: i, style: a, ref: o } = r, s = Xm(r, ["as", "children", "className", "htmlAttributes", "style", "ref"]); const u = Vn("ndl-menu-items", n), l = e ?? "div"; - return Te.jsx(l, Object.assign({ className: u, style: a, ref: o }, s, i, { children: t })); -}, HY = (r) => { + return Ce.jsx(l, Object.assign({ className: u, style: a, ref: o }, s, i, { children: t })); +}, WY = (r) => { var { children: e, className: t, htmlAttributes: n, style: i, ref: a } = r, o = Xm(r, ["children", "className", "htmlAttributes", "style", "ref"]); const s = Vn("ndl-menu-group", t); - return Te.jsx("div", Object.assign({ className: s, style: i, ref: a, role: "group" }, o, n, { children: e })); -}, Lm = Object.assign(FY, { - CategoryItem: qY, + return Ce.jsx("div", Object.assign({ className: s, style: i, ref: a, role: "group" }, o, n, { children: e })); +}, Lm = Object.assign(UY, { + CategoryItem: GY, Divider: pV, - Group: HY, - Item: UY, + Group: WY, + Item: zY, /** * @deprecated Use Menu.Group instead if you want to group items together. If not, you can just omit this component in your implementation. */ - Items: VY, - RadioItem: GY -}), WY = "aria label not detected when using a custom label, be sure to include an aria label for screen readers link: https://dequeuniversity.com/rules/axe/4.2/label?application=axeAPI"; -var YY = function(r, e) { + Items: HY, + RadioItem: VY +}), YY = "aria label not detected when using a custom label, be sure to include an aria label for screen readers link: https://dequeuniversity.com/rules/axe/4.2/label?application=axeAPI"; +var XY = function(r, e) { var t = {}; for (var n in r) Object.prototype.hasOwnProperty.call(r, n) && e.indexOf(n) < 0 && (t[n] = r[n]); if (r != null && typeof Object.getOwnPropertySymbols == "function") @@ -16080,15 +16092,15 @@ var YY = function(r, e) { return t; }; const cb = (r) => { - var { as: e, shape: t = "rectangular", className: n, style: i, height: a, width: o, isLoading: s = !0, children: u, htmlAttributes: l, onBackground: c = "default", ref: f } = r, d = YY(r, ["as", "shape", "className", "style", "height", "width", "isLoading", "children", "htmlAttributes", "onBackground", "ref"]); + var { as: e, shape: t = "rectangular", className: n, style: i, height: a, width: o, isLoading: s = !0, children: u, htmlAttributes: l, onBackground: c = "default", ref: f } = r, d = XY(r, ["as", "shape", "className", "style", "height", "width", "isLoading", "children", "htmlAttributes", "onBackground", "ref"]); const h = e ?? "div", p = Vn(`ndl-skeleton ndl-skeleton-${t}`, c && `ndl-skeleton-${c}`, n); - return Te.jsx(v1, { shouldWrap: s, wrap: (g) => Te.jsx(h, Object.assign({ ref: f, className: p, style: Object.assign(Object.assign({}, i), { + return Ce.jsx(v1, { shouldWrap: s, wrap: (g) => Ce.jsx(h, Object.assign({ ref: f, className: p, style: Object.assign(Object.assign({}, i), { height: a, width: o - }), "aria-busy": !0, tabIndex: -1 }, d, l, { children: Te.jsx("div", { "aria-hidden": s, className: "ndl-skeleton-content", tabIndex: -1, children: g }) })), children: u }); + }), "aria-busy": !0, tabIndex: -1 }, d, l, { children: Ce.jsx("div", { "aria-hidden": s, className: "ndl-skeleton-content", tabIndex: -1, children: g }) })), children: u }); }; cb.displayName = "Skeleton"; -var XY = function(r, e) { +var $Y = function(r, e) { var t = {}; for (var n in r) Object.prototype.hasOwnProperty.call(r, n) && e.indexOf(n) < 0 && (t[n] = r[n]); if (r != null && typeof Object.getOwnPropertySymbols == "function") @@ -16096,9 +16108,9 @@ var XY = function(r, e) { e.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(r, n[i]) && (t[n[i]] = r[n[i]]); return t; }; -const $Y = (r) => { - var { label: e, isFluid: t, errorText: n, helpText: i, leadingElement: a, trailingElement: o, showRequiredOrOptionalLabel: s = !1, moreInformationText: u, size: l = "medium", placeholder: c, value: f, tooltipProps: d, htmlAttributes: h, isDisabled: p, isReadOnly: g, isRequired: y, onChange: b, isClearable: _ = !1, className: m, style: x, isSkeletonLoading: S = !1, isLoading: O = !1, skeletonProps: E, ref: T } = r, P = XY(r, ["label", "isFluid", "errorText", "helpText", "leadingElement", "trailingElement", "showRequiredOrOptionalLabel", "moreInformationText", "size", "placeholder", "value", "tooltipProps", "htmlAttributes", "isDisabled", "isReadOnly", "isRequired", "onChange", "isClearable", "className", "style", "isSkeletonLoading", "isLoading", "skeletonProps", "ref"]); - const [I, k] = kY({ +const KY = (r) => { + var { label: e, isFluid: t, errorText: n, helpText: i, leadingElement: a, trailingElement: o, showRequiredOrOptionalLabel: s = !1, moreInformationText: u, size: l = "medium", placeholder: c, value: f, tooltipProps: d, htmlAttributes: h, isDisabled: p, isReadOnly: g, isRequired: y, onChange: b, isClearable: _ = !1, className: m, style: x, isSkeletonLoading: S = !1, isLoading: O = !1, skeletonProps: E, ref: T } = r, P = $Y(r, ["label", "isFluid", "errorText", "helpText", "leadingElement", "trailingElement", "showRequiredOrOptionalLabel", "moreInformationText", "size", "placeholder", "value", "tooltipProps", "htmlAttributes", "isDisabled", "isReadOnly", "isRequired", "onChange", "isClearable", "className", "style", "isSkeletonLoading", "isLoading", "skeletonProps", "ref"]); + const [I, k] = IY({ inputType: "text", isControlled: f !== void 0, onChange: b, @@ -16116,14 +16128,14 @@ const $Y = (r) => { }), H = e == null || e === "", q = Vn("ndl-form-item-label", { "ndl-fluid": t, "ndl-form-item-no-label": H - }), W = Object.assign(Object.assign({}, h), { className: Vn("ndl-input", h == null ? void 0 : h.className) }), $ = W["aria-label"], X = !!e && typeof e != "string" && ($ === void 0 || $ === ""), Q = _ || O, ue = (le) => { + }), W = Object.assign(Object.assign({}, h), { className: Vn("ndl-input", h == null ? void 0 : h.className) }), $ = W["aria-label"], X = !!e && typeof e != "string" && ($ === void 0 || $ === ""), Z = _ || O, ue = (le) => { var ce; _ && le.key === "Escape" && I && (le.preventDefault(), le.stopPropagation(), k == null || k({ target: { value: "" } })), (ce = h == null ? void 0 : h.onKeyDown) === null || ce === void 0 || ce.call(h, le); }; me.useMemo(() => { - !e && !$ && JP("A TextInput without a label does not have an aria label, be sure to include an aria label for screen readers. Link: https://dequeuniversity.com/rules/axe/4.2/label?application=axeAPI"), X && JP(WY); + !e && !$ && QP("A TextInput without a label does not have an aria label, be sure to include an aria label for screen readers. Link: https://dequeuniversity.com/rules/axe/4.2/label?application=axeAPI"), X && QP(YY); }, [e, $, X]); const re = Vn({ "ndl-information-icon-large": l === "large", @@ -16132,23 +16144,23 @@ const $Y = (r) => { const le = [L]; return i && !n ? le.push(B) : n && le.push(j), le.join(" "); }, [L, i, n, B, j]); - return Te.jsxs("div", { className: z, style: x, children: [Te.jsxs("label", { className: q, children: [!H && Te.jsx(cb, Object.assign({ onBackground: "weak", shape: "rectangular" }, E, { isLoading: S, children: Te.jsxs("div", { className: "ndl-label-text-wrapper", children: [Te.jsx(Ed, { variant: l === "large" ? "body-large" : "body-medium", className: "ndl-label-text", children: e }), !!u && Te.jsxs(Bf, Object.assign({}, d == null ? void 0 : d.root, { type: "simple", children: [Te.jsx(Bf.Trigger, Object.assign({}, d == null ? void 0 : d.trigger, { className: re, hasButtonWrapper: !0, children: Te.jsx("div", { tabIndex: 0, role: "button", "aria-label": "Information icon", children: Te.jsx(YV, {}) }) })), Te.jsx(Bf.Content, Object.assign({}, d == null ? void 0 : d.content, { children: u }))] })), s && Te.jsx(Ed, { variant: l === "large" ? "body-large" : "body-medium", className: "ndl-form-item-optional", children: y === !0 ? "Required" : "Optional" })] }) })), Te.jsx(cb, Object.assign({ onBackground: "weak", shape: "rectangular" }, E, { isLoading: S, children: Te.jsxs("div", { className: "ndl-input-wrapper", children: [(a || O && !o) && Te.jsx("div", { className: "ndl-element-leading ndl-element", children: O ? Te.jsx(h1, { size: l === "large" ? "medium" : "small", className: l === "large" ? "ndl-medium-spinner" : "ndl-small-spinner" }) : a }), Te.jsxs("div", { className: Vn("ndl-input-container", { + return Ce.jsxs("div", { className: z, style: x, children: [Ce.jsxs("label", { className: q, children: [!H && Ce.jsx(cb, Object.assign({ onBackground: "weak", shape: "rectangular" }, E, { isLoading: S, children: Ce.jsxs("div", { className: "ndl-label-text-wrapper", children: [Ce.jsx(Ed, { variant: l === "large" ? "body-large" : "body-medium", className: "ndl-label-text", children: e }), !!u && Ce.jsxs(Bf, Object.assign({}, d == null ? void 0 : d.root, { type: "simple", children: [Ce.jsx(Bf.Trigger, Object.assign({}, d == null ? void 0 : d.trigger, { className: re, hasButtonWrapper: !0, children: Ce.jsx("div", { tabIndex: 0, role: "button", "aria-label": "Information icon", children: Ce.jsx(YV, {}) }) })), Ce.jsx(Bf.Content, Object.assign({}, d == null ? void 0 : d.content, { children: u }))] })), s && Ce.jsx(Ed, { variant: l === "large" ? "body-large" : "body-medium", className: "ndl-form-item-optional", children: y === !0 ? "Required" : "Optional" })] }) })), Ce.jsx(cb, Object.assign({ onBackground: "weak", shape: "rectangular" }, E, { isLoading: S, children: Ce.jsxs("div", { className: "ndl-input-wrapper", children: [(a || O && !o) && Ce.jsx("div", { className: "ndl-element-leading ndl-element", children: O ? Ce.jsx(h1, { size: l === "large" ? "medium" : "small", className: l === "large" ? "ndl-medium-spinner" : "ndl-small-spinner" }) : a }), Ce.jsxs("div", { className: Vn("ndl-input-container", { "ndl-clearable": _ - }), children: [Te.jsx("input", Object.assign({ ref: T, readOnly: g, disabled: p, required: y, value: I, placeholder: c, type: "text", onChange: k, "aria-describedby": ne }, W, { onKeyDown: ue }, P)), Q && Te.jsxs("span", { id: L, className: "ndl-text-input-hint", "aria-hidden": !0, children: [O && "Loading ", _ && "Press Escape to clear input."] }), _ && !!I && Te.jsx("div", { className: "ndl-element-clear ndl-element", children: Te.jsx("button", { tabIndex: -1, "aria-hidden": !0, type: "button", title: "Clear input (Esc)", onClick: () => { + }), children: [Ce.jsx("input", Object.assign({ ref: T, readOnly: g, disabled: p, required: y, value: I, placeholder: c, type: "text", onChange: k, "aria-describedby": ne }, W, { onKeyDown: ue }, P)), Z && Ce.jsxs("span", { id: L, className: "ndl-text-input-hint", "aria-hidden": !0, children: [O && "Loading ", _ && "Press Escape to clear input."] }), _ && !!I && Ce.jsx("div", { className: "ndl-element-clear ndl-element", children: Ce.jsx("button", { tabIndex: -1, "aria-hidden": !0, type: "button", title: "Clear input (Esc)", onClick: () => { k == null || k({ target: { value: "" } }); - }, children: Te.jsx(H9, { className: "n-size-4" }) }) })] }), o && Te.jsx("div", { className: "ndl-element-trailing ndl-element", children: O && !a ? Te.jsx(h1, { size: l === "large" ? "medium" : "small", className: l === "large" ? "ndl-medium-spinner" : "ndl-small-spinner" }) : o })] }) }))] }), !!i && !n && Te.jsx(cb, { onBackground: "weak", shape: "rectangular", isLoading: S, children: Te.jsx(Ed, { variant: l === "large" ? "body-medium" : "body-small", className: "ndl-form-message", htmlAttributes: { + }, children: Ce.jsx(H9, { className: "n-size-4" }) }) })] }), o && Ce.jsx("div", { className: "ndl-element-trailing ndl-element", children: O && !a ? Ce.jsx(h1, { size: l === "large" ? "medium" : "small", className: l === "large" ? "ndl-medium-spinner" : "ndl-small-spinner" }) : o })] }) }))] }), !!i && !n && Ce.jsx(cb, { onBackground: "weak", shape: "rectangular", isLoading: S, children: Ce.jsx(Ed, { variant: l === "large" ? "body-medium" : "body-small", className: "ndl-form-message", htmlAttributes: { "aria-live": "polite", id: B }, children: i }) }), !!n && // TODO v4: We might want to have a min width for the container for the messages to help skeleton loading. // Currently the message fills 100% of the width while the rest of the text input has a set width. - Te.jsx(cb, Object.assign({ onBackground: "weak", shape: "rectangular", width: "fit-content" }, E, { isLoading: S, children: Te.jsxs("div", { className: "ndl-form-message", children: [Te.jsx("div", { className: "ndl-error-icon", children: Te.jsx(lH, {}) }), Te.jsx(Ed, { className: "ndl-error-text", variant: l === "large" ? "body-medium" : "body-small", htmlAttributes: { + Ce.jsx(cb, Object.assign({ onBackground: "weak", shape: "rectangular", width: "fit-content" }, E, { isLoading: S, children: Ce.jsxs("div", { className: "ndl-form-message", children: [Ce.jsx("div", { className: "ndl-error-icon", children: Ce.jsx(lH, {}) }), Ce.jsx(Ed, { className: "ndl-error-text", variant: l === "large" ? "body-medium" : "body-small", htmlAttributes: { "aria-live": "polite", id: j }, children: n })] }) }))] }); }; -var KY = function(r, e) { +var ZY = function(r, e) { var t = {}; for (var n in r) Object.prototype.hasOwnProperty.call(r, n) && e.indexOf(n) < 0 && (t[n] = r[n]); if (r != null && typeof Object.getOwnPropertySymbols == "function") @@ -16157,7 +16169,7 @@ var KY = function(r, e) { return t; }; const L7 = (r) => { - var { as: e, buttonFill: t = "filled", children: n, className: i, variant: a = "primary", htmlAttributes: o, isDisabled: s = !1, isFloating: u = !1, isFluid: l = !1, isLoading: c = !1, leadingVisual: f, onClick: d, ref: h, size: p = "medium", style: g, type: y = "button" } = r, b = KY(r, ["as", "buttonFill", "children", "className", "variant", "htmlAttributes", "isDisabled", "isFloating", "isFluid", "isLoading", "leadingVisual", "onClick", "ref", "size", "style", "type"]); + var { as: e, buttonFill: t = "filled", children: n, className: i, variant: a = "primary", htmlAttributes: o, isDisabled: s = !1, isFloating: u = !1, isFluid: l = !1, isLoading: c = !1, leadingVisual: f, onClick: d, ref: h, size: p = "medium", style: g, type: y = "button" } = r, b = ZY(r, ["as", "buttonFill", "children", "className", "variant", "htmlAttributes", "isDisabled", "isFloating", "isFluid", "isLoading", "leadingVisual", "onClick", "ref", "size", "style", "type"]); const _ = e ?? "button", m = !s && !c, x = Vn(i, "ndl-btn", { "ndl-disabled": s, "ndl-floating": u, @@ -16173,9 +16185,9 @@ const L7 = (r) => { } d && d(O); }; - return Te.jsx(_, Object.assign({ type: y, onClick: S, disabled: s, "aria-disabled": !m, className: x, style: g, ref: h }, b, o, { children: Te.jsxs("div", { className: "ndl-btn-inner", children: [c && Te.jsx("span", { className: "ndl-btn-spinner-wrapper", children: Te.jsx(h1, { size: p }) }), !!f && Te.jsx("div", { className: "ndl-btn-leading-element", children: f }), !!n && Te.jsx("span", { className: "ndl-btn-content", children: n })] }) })); + return Ce.jsx(_, Object.assign({ type: y, onClick: S, disabled: s, "aria-disabled": !m, className: x, style: g, ref: h }, b, o, { children: Ce.jsxs("div", { className: "ndl-btn-inner", children: [c && Ce.jsx("span", { className: "ndl-btn-spinner-wrapper", children: Ce.jsx(h1, { size: p }) }), !!f && Ce.jsx("div", { className: "ndl-btn-leading-element", children: f }), !!n && Ce.jsx("span", { className: "ndl-btn-content", children: n })] }) })); }; -var ZY = function(r, e) { +var QY = function(r, e) { var t = {}; for (var n in r) Object.prototype.hasOwnProperty.call(r, n) && e.indexOf(n) < 0 && (t[n] = r[n]); if (r != null && typeof Object.getOwnPropertySymbols == "function") @@ -16183,11 +16195,11 @@ var ZY = function(r, e) { e.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(r, n[i]) && (t[n[i]] = r[n[i]]); return t; }; -const QY = (r) => { - var { children: e, as: t, type: n = "button", isLoading: i = !1, variant: a = "primary", isDisabled: o = !1, size: s = "medium", onClick: u, isFloating: l = !1, className: c, style: f, htmlAttributes: d, ref: h } = r, p = ZY(r, ["children", "as", "type", "isLoading", "variant", "isDisabled", "size", "onClick", "isFloating", "className", "style", "htmlAttributes", "ref"]); - return Te.jsx(L7, Object.assign({ as: t, buttonFill: "outlined", variant: a, className: c, isDisabled: o, isFloating: l, isLoading: i, onClick: u, size: s, style: f, type: n, htmlAttributes: d, ref: h }, p, { children: e })); +const JY = (r) => { + var { children: e, as: t, type: n = "button", isLoading: i = !1, variant: a = "primary", isDisabled: o = !1, size: s = "medium", onClick: u, isFloating: l = !1, className: c, style: f, htmlAttributes: d, ref: h } = r, p = QY(r, ["children", "as", "type", "isLoading", "variant", "isDisabled", "size", "onClick", "isFloating", "className", "style", "htmlAttributes", "ref"]); + return Ce.jsx(L7, Object.assign({ as: t, buttonFill: "outlined", variant: a, className: c, isDisabled: o, isFloating: l, isLoading: i, onClick: u, size: s, style: f, type: n, htmlAttributes: d, ref: h }, p, { children: e })); }; -var JY = function(r, e) { +var eX = function(r, e) { var t = {}; for (var n in r) Object.prototype.hasOwnProperty.call(r, n) && e.indexOf(n) < 0 && (t[n] = r[n]); if (r != null && typeof Object.getOwnPropertySymbols == "function") @@ -16195,13 +16207,13 @@ var JY = function(r, e) { e.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(r, n[i]) && (t[n[i]] = r[n[i]]); return t; }; -const eX = (r) => { - var { children: e, as: t, type: n = "button", isLoading: i = !1, variant: a = "primary", isDisabled: o = !1, size: s = "medium", onClick: u, className: l, style: c, htmlAttributes: f, ref: d } = r, h = JY(r, ["children", "as", "type", "isLoading", "variant", "isDisabled", "size", "onClick", "className", "style", "htmlAttributes", "ref"]); - return Te.jsx(L7, Object.assign({ as: t, buttonFill: "text", variant: a, className: l, isDisabled: o, isLoading: i, onClick: u, size: s, style: c, type: n, htmlAttributes: f, ref: d }, h, { children: e })); +const tX = (r) => { + var { children: e, as: t, type: n = "button", isLoading: i = !1, variant: a = "primary", isDisabled: o = !1, size: s = "medium", onClick: u, className: l, style: c, htmlAttributes: f, ref: d } = r, h = eX(r, ["children", "as", "type", "isLoading", "variant", "isDisabled", "size", "onClick", "className", "style", "htmlAttributes", "ref"]); + return Ce.jsx(L7, Object.assign({ as: t, buttonFill: "text", variant: a, className: l, isDisabled: o, isLoading: i, onClick: u, size: s, style: c, type: n, htmlAttributes: f, ref: d }, h, { children: e })); }; -var fS, Vk; -function tX() { - if (Vk) return fS; +var cS, Vk; +function rX() { + if (Vk) return cS; Vk = 1; var r = "Expected a function", e = NaN, t = "[object Symbol]", n = /^\s+|\s+$/g, i = /^[-+]0x[0-9a-f]+$/i, a = /^0b[01]+$/i, o = /^0o[0-7]+$/i, s = parseInt, u = typeof Lf == "object" && Lf && Lf.Object === Object && Lf, l = typeof self == "object" && self && self.Object === Object && self, c = u || l || Function("return this")(), f = Object.prototype, d = f.toString, h = Math.max, p = Math.min, g = function() { return c.Date.now(); @@ -16216,7 +16228,7 @@ function tX() { return T = P = void 0, j = ce, k = S.apply(fe, pe), k; } function $(ce) { - return j = ce, L = setTimeout(Q, O), z ? W(ce) : k; + return j = ce, L = setTimeout(Z, O), z ? W(ce) : k; } function J(ce) { var pe = ce - B, fe = ce - j, se = O - pe; @@ -16226,11 +16238,11 @@ function tX() { var pe = ce - B, fe = ce - j; return B === void 0 || pe >= O || pe < 0 || H && fe >= I; } - function Q() { + function Z() { var ce = g(); if (X(ce)) return ue(ce); - L = setTimeout(Q, J(ce)); + L = setTimeout(Z, J(ce)); } function ue(ce) { return L = void 0, q && T ? W(ce) : (T = P = void 0, k); @@ -16247,9 +16259,9 @@ function tX() { if (L === void 0) return $(B); if (H) - return L = setTimeout(Q, O), W(B); + return L = setTimeout(Z, O), W(B); } - return L === void 0 && (L = setTimeout(Q, O)), k; + return L === void 0 && (L = setTimeout(Z, O)), k; } return le.cancel = re, le.flush = ne, le; } @@ -16278,10 +16290,10 @@ function tX() { var E = a.test(S); return E || o.test(S) ? s(S.slice(2), E ? 2 : 8) : i.test(S) ? e : +S; } - return fS = y, fS; + return cS = y, cS; } -tX(); -function rX() { +rX(); +function nX() { const [r, e] = me.useState(null), t = me.useCallback(async (n) => { if (!(navigator != null && navigator.clipboard)) return console.warn("Clipboard not supported"), !1; @@ -16301,13 +16313,13 @@ function Cx(r) { return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e; }, Cx(r); } -var nX = /^\s+/, iX = /\s+$/; +var iX = /^\s+/, aX = /\s+$/; function dr(r, e) { if (r = r || "", e = e || {}, r instanceof dr) return r; if (!(this instanceof dr)) return new dr(r, e); - var t = aX(r); + var t = oX(r); this._originalInput = r, this._r = t.r, this._g = t.g, this._b = t.b, this._a = t.a, this._roundA = Math.round(100 * this._a) / 100, this._format = e.format || t.format, this._gradientType = e.gradientType, this._r < 1 && (this._r = Math.round(this._r)), this._g < 1 && (this._g = Math.round(this._g)), this._b < 1 && (this._b = Math.round(this._b)), this._ok = t.ok; } dr.prototype = { @@ -16373,7 +16385,7 @@ dr.prototype = { return "#" + this.toHex(e); }, toHex8: function(e) { - return lX(this._r, this._g, this._b, this._a, e); + return cX(this._r, this._g, this._b, this._a, e); }, toHex8String: function(e) { return "#" + this.toHex8(e); @@ -16401,7 +16413,7 @@ dr.prototype = { return this._a == 1 ? "rgb(" + Math.round(Ma(this._r, 255) * 100) + "%, " + Math.round(Ma(this._g, 255) * 100) + "%, " + Math.round(Ma(this._b, 255) * 100) + "%)" : "rgba(" + Math.round(Ma(this._r, 255) * 100) + "%, " + Math.round(Ma(this._g, 255) * 100) + "%, " + Math.round(Ma(this._b, 255) * 100) + "%, " + this._roundA + ")"; }, toName: function() { - return this._a === 0 ? "transparent" : this._a < 1 ? !1 : wX[Yk(this._r, this._g, this._b, !0)] || !1; + return this._a === 0 ? "transparent" : this._a < 1 ? !1 : xX[Yk(this._r, this._g, this._b, !0)] || !1; }, toFilter: function(e) { var t = "#" + Xk(this._r, this._g, this._b, this._a), n = t, i = this._gradientType ? "GradientType = 1, " : ""; @@ -16425,40 +16437,40 @@ dr.prototype = { return this._r = n._r, this._g = n._g, this._b = n._b, this.setAlpha(n._a), this; }, lighten: function() { - return this._applyModification(hX, arguments); + return this._applyModification(vX, arguments); }, brighten: function() { - return this._applyModification(vX, arguments); + return this._applyModification(pX, arguments); }, darken: function() { - return this._applyModification(pX, arguments); + return this._applyModification(gX, arguments); }, desaturate: function() { - return this._applyModification(cX, arguments); + return this._applyModification(fX, arguments); }, saturate: function() { - return this._applyModification(fX, arguments); + return this._applyModification(dX, arguments); }, greyscale: function() { - return this._applyModification(dX, arguments); + return this._applyModification(hX, arguments); }, spin: function() { - return this._applyModification(gX, arguments); + return this._applyModification(yX, arguments); }, _applyCombination: function(e, t) { return e.apply(null, [this].concat([].slice.call(t))); }, analogous: function() { - return this._applyCombination(bX, arguments); + return this._applyCombination(_X, arguments); }, complement: function() { - return this._applyCombination(yX, arguments); + return this._applyCombination(mX, arguments); }, monochromatic: function() { - return this._applyCombination(_X, arguments); + return this._applyCombination(wX, arguments); }, splitcomplement: function() { - return this._applyCombination(mX, arguments); + return this._applyCombination(bX, arguments); }, // Disabled until https://github.com/bgrins/TinyColor/issues/254 // polyad: function (number) { @@ -16480,13 +16492,13 @@ dr.fromRatio = function(r, e) { } return dr(r, e); }; -function aX(r) { +function oX(r) { var e = { r: 0, g: 0, b: 0 }, t = 1, n = null, i = null, a = null, o = !1, s = !1; - return typeof r == "string" && (r = OX(r)), Cx(r) == "object" && (ev(r.r) && ev(r.g) && ev(r.b) ? (e = oX(r.r, r.g, r.b), o = !0, s = String(r.r).substr(-1) === "%" ? "prgb" : "rgb") : ev(r.h) && ev(r.s) && ev(r.v) ? (n = fb(r.s), i = fb(r.v), e = uX(r.h, n, i), o = !0, s = "hsv") : ev(r.h) && ev(r.s) && ev(r.l) && (n = fb(r.s), a = fb(r.l), e = sX(r.h, n, a), o = !0, s = "hsl"), r.hasOwnProperty("a") && (t = r.a)), t = j7(t), { + return typeof r == "string" && (r = TX(r)), Cx(r) == "object" && (ev(r.r) && ev(r.g) && ev(r.b) ? (e = sX(r.r, r.g, r.b), o = !0, s = String(r.r).substr(-1) === "%" ? "prgb" : "rgb") : ev(r.h) && ev(r.s) && ev(r.v) ? (n = fb(r.s), i = fb(r.v), e = lX(r.h, n, i), o = !0, s = "hsv") : ev(r.h) && ev(r.s) && ev(r.l) && (n = fb(r.s), a = fb(r.l), e = uX(r.h, n, a), o = !0, s = "hsl"), r.hasOwnProperty("a") && (t = r.a)), t = j7(t), { ok: o, format: r.format || s, r: Math.min(255, Math.max(e.r, 0)), @@ -16495,7 +16507,7 @@ function aX(r) { a: t }; } -function oX(r, e, t) { +function sX(r, e, t) { return { r: Ma(r, 255) * 255, g: Ma(e, 255) * 255, @@ -16528,7 +16540,7 @@ function Hk(r, e, t) { l: s }; } -function sX(r, e, t) { +function uX(r, e, t) { var n, i, a; r = Ma(r, 360), e = Ma(e, 100), t = Ma(t, 100); function o(l, c, f) { @@ -16571,7 +16583,7 @@ function Wk(r, e, t) { v: s }; } -function uX(r, e, t) { +function lX(r, e, t) { r = Ma(r, 360) * 6, e = Ma(e, 100), t = Ma(t, 100); var n = Math.floor(r), i = r - n, a = t * (1 - e), o = t * (1 - i * e), s = t * (1 - (1 - i) * e), u = n % 6, l = [t, o, a, a, s, t][u], c = [s, t, t, o, a, a][u], f = [a, a, s, t, t, o][u]; return { @@ -16584,7 +16596,7 @@ function Yk(r, e, t, n) { var i = [Sd(Math.round(r).toString(16)), Sd(Math.round(e).toString(16)), Sd(Math.round(t).toString(16))]; return n && i[0].charAt(0) == i[0].charAt(1) && i[1].charAt(0) == i[1].charAt(1) && i[2].charAt(0) == i[2].charAt(1) ? i[0].charAt(0) + i[1].charAt(0) + i[2].charAt(0) : i.join(""); } -function lX(r, e, t, n, i) { +function cX(r, e, t, n, i) { var a = [Sd(Math.round(r).toString(16)), Sd(Math.round(e).toString(16)), Sd(Math.round(t).toString(16)), Sd(B7(n))]; return i && a[0].charAt(0) == a[0].charAt(1) && a[1].charAt(0) == a[1].charAt(1) && a[2].charAt(0) == a[2].charAt(1) && a[3].charAt(0) == a[3].charAt(1) ? a[0].charAt(0) + a[1].charAt(0) + a[2].charAt(0) + a[3].charAt(0) : a.join(""); } @@ -16602,39 +16614,39 @@ dr.random = function() { b: Math.random() }); }; -function cX(r, e) { +function fX(r, e) { e = e === 0 ? 0 : e || 10; var t = dr(r).toHsl(); - return t.s -= e / 100, t.s = T2(t.s), dr(t); + return t.s -= e / 100, t.s = O2(t.s), dr(t); } -function fX(r, e) { +function dX(r, e) { e = e === 0 ? 0 : e || 10; var t = dr(r).toHsl(); - return t.s += e / 100, t.s = T2(t.s), dr(t); + return t.s += e / 100, t.s = O2(t.s), dr(t); } -function dX(r) { +function hX(r) { return dr(r).desaturate(100); } -function hX(r, e) { +function vX(r, e) { e = e === 0 ? 0 : e || 10; var t = dr(r).toHsl(); - return t.l += e / 100, t.l = T2(t.l), dr(t); + return t.l += e / 100, t.l = O2(t.l), dr(t); } -function vX(r, e) { +function pX(r, e) { e = e === 0 ? 0 : e || 10; var t = dr(r).toRgb(); return t.r = Math.max(0, Math.min(255, t.r - Math.round(255 * -(e / 100)))), t.g = Math.max(0, Math.min(255, t.g - Math.round(255 * -(e / 100)))), t.b = Math.max(0, Math.min(255, t.b - Math.round(255 * -(e / 100)))), dr(t); } -function pX(r, e) { +function gX(r, e) { e = e === 0 ? 0 : e || 10; var t = dr(r).toHsl(); - return t.l -= e / 100, t.l = T2(t.l), dr(t); + return t.l -= e / 100, t.l = O2(t.l), dr(t); } -function gX(r, e) { +function yX(r, e) { var t = dr(r).toHsl(), n = (t.h + e) % 360; return t.h = n < 0 ? 360 + n : n, dr(t); } -function yX(r) { +function mX(r) { var e = dr(r).toHsl(); return e.h = (e.h + 180) % 360, dr(e); } @@ -16649,7 +16661,7 @@ function $k(r, e) { })); return n; } -function mX(r) { +function bX(r) { var e = dr(r).toHsl(), t = e.h; return [dr(r), dr({ h: (t + 72) % 360, @@ -16661,14 +16673,14 @@ function mX(r) { l: e.l })]; } -function bX(r, e, t) { +function _X(r, e, t) { e = e || 6, t = t || 30; var n = dr(r).toHsl(), i = 360 / t, a = [dr(r)]; for (n.h = (n.h - (i * e >> 1) + 720) % 360; --e; ) n.h = (n.h + i) % 360, a.push(dr(n)); return a; } -function _X(r, e) { +function wX(r, e) { e = e || 6; for (var t = dr(r).toHsv(), n = t.h, i = t.s, a = t.v, o = [], s = 1 / e; e--; ) o.push(dr({ @@ -16694,7 +16706,7 @@ dr.readability = function(r, e) { }; dr.isReadable = function(r, e, t) { var n = dr.readability(r, e), i, a; - switch (a = !1, i = TX(t), i.level + i.size) { + switch (a = !1, i = CX(t), i.level + i.size) { case "AAsmall": case "AAAlarge": a = n >= 4.5; @@ -16718,7 +16730,7 @@ dr.mostReadable = function(r, e, t) { size: u }) || !o ? n : (t.includeFallbackColors = !1, dr.mostReadable(r, ["#fff", "#000"], t)); }; -var sM = dr.names = { +var oM = dr.names = { aliceblue: "f0f8ff", antiquewhite: "faebd7", aqua: "0ff", @@ -16868,8 +16880,8 @@ var sM = dr.names = { whitesmoke: "f5f5f5", yellow: "ff0", yellowgreen: "9acd32" -}, wX = dr.hexNames = xX(sM); -function xX(r) { +}, xX = dr.hexNames = EX(oM); +function EX(r) { var e = {}; for (var t in r) r.hasOwnProperty(t) && (e[r[t]] = t); @@ -16879,20 +16891,20 @@ function j7(r) { return r = parseFloat(r), (isNaN(r) || r < 0 || r > 1) && (r = 1), r; } function Ma(r, e) { - EX(r) && (r = "100%"); - var t = SX(r); + SX(r) && (r = "100%"); + var t = OX(r); return r = Math.min(e, Math.max(0, parseFloat(r))), t && (r = parseInt(r * e, 10) / 100), Math.abs(r - e) < 1e-6 ? 1 : r % e / parseFloat(e); } -function T2(r) { +function O2(r) { return Math.min(1, Math.max(0, r)); } function Jc(r) { return parseInt(r, 16); } -function EX(r) { +function SX(r) { return typeof r == "string" && r.indexOf(".") != -1 && parseFloat(r) === 1; } -function SX(r) { +function OX(r) { return typeof r == "string" && r.indexOf("%") != -1; } function Sd(r) { @@ -16926,11 +16938,11 @@ var md = (function() { function ev(r) { return !!md.CSS_UNIT.exec(r); } -function OX(r) { - r = r.replace(nX, "").replace(iX, "").toLowerCase(); +function TX(r) { + r = r.replace(iX, "").replace(aX, "").toLowerCase(); var e = !1; - if (sM[r]) - r = sM[r], e = !0; + if (oM[r]) + r = oM[r], e = !0; else if (r == "transparent") return { r: 0, @@ -16991,7 +17003,7 @@ function OX(r) { format: e ? "name" : "hex" } : !1; } -function TX(r) { +function CX(r) { var e, t; return r = r || { level: "AA", @@ -17001,18 +17013,18 @@ function TX(r) { size: t }; } -const CX = (r) => dr.mostReadable(r, [ +const AX = (r) => dr.mostReadable(r, [ Yu.theme.light.color.neutral.text.default, Yu.theme.light.color.neutral.text.inverse ], { includeFallbackColors: !0 -}).toString(), AX = (r) => dr(r).toHsl().l < 0.5 ? dr(r).lighten(10).toString() : dr(r).darken(10).toString(), RX = (r) => dr.mostReadable(r, [ +}).toString(), RX = (r) => dr(r).toHsl().l < 0.5 ? dr(r).lighten(10).toString() : dr(r).darken(10).toString(), PX = (r) => dr.mostReadable(r, [ Yu.theme.light.color.neutral.text.weakest, Yu.theme.light.color.neutral.text.weaker, Yu.theme.light.color.neutral.text.weak, Yu.theme.light.color.neutral.text.inverse ]).toString(); -var PX = function(r, e) { +var MX = function(r, e) { var t = {}; for (var n in r) Object.prototype.hasOwnProperty.call(r, n) && e.indexOf(n) < 0 && (t[n] = r[n]); if (r != null && typeof Object.getOwnPropertySymbols == "function") @@ -17025,15 +17037,15 @@ const Zk = ({ direction: r = "left", color: e, htmlAttributes: t, height: n = 24 "ndl-left": r === "left", "ndl-right": r === "right" }); - return Te.jsxs("div", Object.assign({ className: i }, t, { children: [Te.jsx("svg", { "aria-hidden": !0, className: "ndl-hexagon-end-inner", fill: "none", height: n, preserveAspectRatio: "none", viewBox: "0 0 9 24", width: "9", xmlns: "http://www.w3.org/2000/svg", children: Te.jsx("path", { style: { fill: e }, fillRule: "evenodd", clipRule: "evenodd", d: "M5.73024 1.03676C6.08165 0.397331 6.75338 0 7.48301 0H9V24H7.483C6.75338 24 6.08165 23.6027 5.73024 22.9632L0.315027 13.1094C-0.105009 12.4376 -0.105009 11.5624 0.315026 10.8906L5.73024 1.03676Z" }) }), Te.jsx("svg", { "aria-hidden": !0, className: "ndl-hexagon-end-active", fill: "none", height: n + 6, preserveAspectRatio: "none", viewBox: "0 0 13 30", width: "13", xmlns: "http://www.w3.org/2000/svg", children: Te.jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M10.075 2C9.12474 2 8.24318 2.54521 7.74867 3.43873L2.21419 13.4387C1.68353 14.3976 1.68353 15.6024 2.21419 16.5613L7.74867 26.5613C8.24318 27.4548 9.12474 28 10.075 28H13V30H10.075C8.49126 30 7.022 29.0913 6.1978 27.6021L0.663324 17.6021C-0.221109 16.0041 -0.221108 13.9959 0.663325 12.3979L6.1978 2.39789C7.022 0.90869 8.49126 0 10.075 0H13V2H10.075Z" }) })] })); + return Ce.jsxs("div", Object.assign({ className: i }, t, { children: [Ce.jsx("svg", { "aria-hidden": !0, className: "ndl-hexagon-end-inner", fill: "none", height: n, preserveAspectRatio: "none", viewBox: "0 0 9 24", width: "9", xmlns: "http://www.w3.org/2000/svg", children: Ce.jsx("path", { style: { fill: e }, fillRule: "evenodd", clipRule: "evenodd", d: "M5.73024 1.03676C6.08165 0.397331 6.75338 0 7.48301 0H9V24H7.483C6.75338 24 6.08165 23.6027 5.73024 22.9632L0.315027 13.1094C-0.105009 12.4376 -0.105009 11.5624 0.315026 10.8906L5.73024 1.03676Z" }) }), Ce.jsx("svg", { "aria-hidden": !0, className: "ndl-hexagon-end-active", fill: "none", height: n + 6, preserveAspectRatio: "none", viewBox: "0 0 13 30", width: "13", xmlns: "http://www.w3.org/2000/svg", children: Ce.jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M10.075 2C9.12474 2 8.24318 2.54521 7.74867 3.43873L2.21419 13.4387C1.68353 14.3976 1.68353 15.6024 2.21419 16.5613L7.74867 26.5613C8.24318 27.4548 9.12474 28 10.075 28H13V30H10.075C8.49126 30 7.022 29.0913 6.1978 27.6021L0.663324 17.6021C-0.221109 16.0041 -0.221108 13.9959 0.663325 12.3979L6.1978 2.39789C7.022 0.90869 8.49126 0 10.075 0H13V2H10.075Z" }) })] })); }, Qk = ({ direction: r = "left", color: e, height: t = 24, htmlAttributes: n }) => { const i = Vn("ndl-square-end", { "ndl-left": r === "left", "ndl-right": r === "right" }); - return Te.jsxs("div", Object.assign({ className: i }, n, { children: [Te.jsx("div", { className: "ndl-square-end-inner", style: { backgroundColor: e } }), Te.jsx("svg", { className: "ndl-square-end-active", width: "7", height: t + 6, preserveAspectRatio: "none", viewBox: "0 0 7 30", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: Te.jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M 3.8774 2 C 3.2697 2 2.7917 2.248 2.3967 2.6605 C 1.928 3.1498 1.7993 3.8555 1.7993 4.5331 V 13.8775 V 25.4669 C 1.7993 26.1445 1.928 26.8502 2.3967 27.3395 C 2.7917 27.752 3.2697 28 3.8774 28 H 7 V 30 H 3.8774 C 2.6211 30 1.4369 29.4282 0.5895 28.4485 C 0.1462 27.936 0.0002 27.2467 0.0002 26.5691 L -0.0002 13.8775 L 0.0002 3.4309 C 0.0002 2.7533 0.1462 2.064 0.5895 1.5515 C 1.4368 0.5718 2.6211 0 3.8774 0 H 7 V 2 H 3.8774 Z" }) })] })); -}, MX = ({ height: r = 24 }) => Te.jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", height: r + 6, preserveAspectRatio: "none", viewBox: "0 0 37 30", fill: "none", className: "ndl-relationship-label-lines", children: [Te.jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M 37 2 H 0 V 0 H 37 V 2 Z" }), Te.jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M 37 30 H 0 V 28 H 37 V 30 Z" })] }), dS = 200, Ax = (r) => { - var { type: e = "node", color: t, isDisabled: n = !1, isSelected: i = !1, as: a, onClick: o, className: s, style: u, children: l, htmlAttributes: c, isFluid: f = !1, size: d = "large", ref: h } = r, p = PX(r, ["type", "color", "isDisabled", "isSelected", "as", "onClick", "className", "style", "children", "htmlAttributes", "isFluid", "size", "ref"]); + return Ce.jsxs("div", Object.assign({ className: i }, n, { children: [Ce.jsx("div", { className: "ndl-square-end-inner", style: { backgroundColor: e } }), Ce.jsx("svg", { className: "ndl-square-end-active", width: "7", height: t + 6, preserveAspectRatio: "none", viewBox: "0 0 7 30", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: Ce.jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M 3.8774 2 C 3.2697 2 2.7917 2.248 2.3967 2.6605 C 1.928 3.1498 1.7993 3.8555 1.7993 4.5331 V 13.8775 V 25.4669 C 1.7993 26.1445 1.928 26.8502 2.3967 27.3395 C 2.7917 27.752 3.2697 28 3.8774 28 H 7 V 30 H 3.8774 C 2.6211 30 1.4369 29.4282 0.5895 28.4485 C 0.1462 27.936 0.0002 27.2467 0.0002 26.5691 L -0.0002 13.8775 L 0.0002 3.4309 C 0.0002 2.7533 0.1462 2.064 0.5895 1.5515 C 1.4368 0.5718 2.6211 0 3.8774 0 H 7 V 2 H 3.8774 Z" }) })] })); +}, DX = ({ height: r = 24 }) => Ce.jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", height: r + 6, preserveAspectRatio: "none", viewBox: "0 0 37 30", fill: "none", className: "ndl-relationship-label-lines", children: [Ce.jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M 37 2 H 0 V 0 H 37 V 2 Z" }), Ce.jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M 37 30 H 0 V 28 H 37 V 30 Z" })] }), fS = 200, Ax = (r) => { + var { type: e = "node", color: t, isDisabled: n = !1, isSelected: i = !1, as: a, onClick: o, className: s, style: u, children: l, htmlAttributes: c, isFluid: f = !1, size: d = "large", ref: h } = r, p = MX(r, ["type", "color", "isDisabled", "isSelected", "as", "onClick", "className", "style", "children", "htmlAttributes", "isFluid", "size", "ref"]); const [g, y] = me.useState(!1), b = (k) => { y(!0), c && c.onMouseEnter !== void 0 && c.onMouseEnter(k); }, _ = (k) => { @@ -17060,7 +17072,7 @@ const Zk = ({ direction: r = "left", color: e, htmlAttributes: t, height: n = 24 } return t; }, [t, e]); - const E = me.useMemo(() => AX(O || Yu.palette.lemon[40]), [O]), T = me.useMemo(() => CX(O || Yu.palette.lemon[40]), [O]), P = me.useMemo(() => RX(O || Yu.palette.lemon[40]), [O]); + const E = me.useMemo(() => RX(O || Yu.palette.lemon[40]), [O]), T = me.useMemo(() => AX(O || Yu.palette.lemon[40]), [O]), P = me.useMemo(() => PX(O || Yu.palette.lemon[40]), [O]); g && !n && (O = E); const I = Vn("ndl-graph-label", s, { "ndl-disabled": n, @@ -17070,29 +17082,29 @@ const Zk = ({ direction: r = "left", color: e, htmlAttributes: t, height: n = 24 }); if (e === "node") { const k = Vn("ndl-node-label", I); - return Te.jsx(m, Object.assign({ className: k, ref: h, style: Object.assign({ backgroundColor: O, color: n ? P : T, maxWidth: f ? "100%" : dS }, u) }, x && { + return Ce.jsx(m, Object.assign({ className: k, ref: h, style: Object.assign({ backgroundColor: O, color: n ? P : T, maxWidth: f ? "100%" : fS }, u) }, x && { disabled: n, onClick: S, onMouseEnter: b, onMouseLeave: _, type: "button" - }, c, { children: Te.jsx("div", { className: "ndl-node-label-content", children: l }) })); + }, c, { children: Ce.jsx("div", { className: "ndl-node-label-content", children: l }) })); } else if (e === "relationship" || e === "relationshipLeft" || e === "relationshipRight") { const k = Vn("ndl-relationship-label", I), L = d === "small" ? 20 : 24; - return Te.jsxs(m, Object.assign({ style: Object.assign(Object.assign({ maxWidth: f ? "100%" : dS }, u), { color: n ? P : T }), className: k }, x && { + return Ce.jsxs(m, Object.assign({ style: Object.assign(Object.assign({ maxWidth: f ? "100%" : fS }, u), { color: n ? P : T }), className: k }, x && { disabled: n, onClick: S, onMouseEnter: b, onMouseLeave: _, type: "button" - }, { ref: h }, p, c, { children: [e === "relationshipLeft" || e === "relationship" ? Te.jsx(Zk, { direction: "left", color: O, height: L }) : Te.jsx(Qk, { direction: "left", color: O, height: L }), Te.jsxs("div", { className: "ndl-relationship-label-container", style: { + }, { ref: h }, p, c, { children: [e === "relationshipLeft" || e === "relationship" ? Ce.jsx(Zk, { direction: "left", color: O, height: L }) : Ce.jsx(Qk, { direction: "left", color: O, height: L }), Ce.jsxs("div", { className: "ndl-relationship-label-container", style: { backgroundColor: O - }, children: [Te.jsx("div", { className: "ndl-relationship-label-content", children: l }), Te.jsx(MX, { height: L })] }), e === "relationshipRight" || e === "relationship" ? Te.jsx(Zk, { direction: "right", color: O, height: L }) : Te.jsx(Qk, { direction: "right", color: O, height: L })] })); + }, children: [Ce.jsx("div", { className: "ndl-relationship-label-content", children: l }), Ce.jsx(DX, { height: L })] }), e === "relationshipRight" || e === "relationship" ? Ce.jsx(Zk, { direction: "right", color: O, height: L }) : Ce.jsx(Qk, { direction: "right", color: O, height: L })] })); } else { const k = Vn("ndl-property-key-label", I); - return Te.jsx(m, Object.assign({}, x && { + return Ce.jsx(m, Object.assign({}, x && { type: "button" - }, { style: Object.assign({ backgroundColor: O, color: n ? P : T, maxWidth: f ? "100%" : dS }, u), className: k, onClick: S, onMouseEnter: b, onMouseLeave: _, ref: h }, c, { children: Te.jsx("div", { className: "ndl-property-key-label-content", children: l }) })); + }, { style: Object.assign({ backgroundColor: O, color: n ? P : T, maxWidth: f ? "100%" : fS }, u), className: k, onClick: S, onMouseEnter: b, onMouseLeave: _, ref: h }, c, { children: Ce.jsx("div", { className: "ndl-property-key-label-content", children: l }) })); } }; var Bo = function() { @@ -17120,7 +17132,7 @@ var Bo = function() { height: "20px", position: "absolute", zIndex: 1 -}, DX = { +}, kX = { top: Bo(Bo({}, Jk), { top: "-5px" }), right: Bo(Bo({}, eI), { left: void 0, right: "-5px" }), bottom: Bo(Bo({}, Jk), { top: void 0, bottom: "-5px" }), @@ -17129,16 +17141,16 @@ var Bo = function() { bottomRight: Bo(Bo({}, ow), { right: "-10px", bottom: "-10px", cursor: "se-resize" }), bottomLeft: Bo(Bo({}, ow), { left: "-10px", bottom: "-10px", cursor: "sw-resize" }), topLeft: Bo(Bo({}, ow), { left: "-10px", top: "-10px", cursor: "nw-resize" }) -}, kX = me.memo(function(r) { +}, IX = me.memo(function(r) { var e = r.onResizeStart, t = r.direction, n = r.children, i = r.replaceStyles, a = r.className, o = me.useCallback(function(l) { e(l, t); }, [e, t]), s = me.useCallback(function(l) { e(l, t); }, [e, t]), u = me.useMemo(function() { - return Bo(Bo({ position: "absolute", userSelect: "none" }, DX[t]), i ?? {}); + return Bo(Bo({ position: "absolute", userSelect: "none" }, kX[t]), i ?? {}); }, [i, t]); - return Te.jsx("div", { className: a || void 0, style: u, onMouseDown: o, onTouchStart: s, children: n }); -}), IX = /* @__PURE__ */ (function() { + return Ce.jsx("div", { className: a || void 0, style: u, onMouseDown: o, onTouchStart: s, children: n }); +}), NX = /* @__PURE__ */ (function() { var r = function(e, t) { return r = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, i) { n.__proto__ = i; @@ -17163,7 +17175,7 @@ var Bo = function() { } return r; }, gh.apply(this, arguments); -}, NX = { +}, LX = { width: "auto", height: "auto" }, sw = function(r, e, t) { @@ -17175,7 +17187,7 @@ var Bo = function() { return new RegExp(r, "i").test(e); }, uw = function(r) { return !!(r.touches && r.touches.length); -}, LX = function(r) { +}, jX = function(r) { return !!((r.clientX || r.clientX === 0) && (r.clientY || r.clientY === 0)); }, rI = function(r, e, t) { t === void 0 && (t = 0); @@ -17183,7 +17195,7 @@ var Bo = function() { return Math.abs(o - r) < Math.abs(e[a] - r) ? s : a; }, 0), i = Math.abs(e[n] - r); return t === 0 || i < t ? e[n] : r; -}, hS = function(r) { +}, dS = function(r) { return r = r.toString(), r === "auto" || r.endsWith("px") || r.endsWith("%") || r.endsWith("vh") || r.endsWith("vw") || r.endsWith("vmax") || r.endsWith("vmin") ? r : "".concat(r, "px"); }, lw = function(r, e, t, n) { if (r && typeof r == "string") { @@ -17203,16 +17215,16 @@ var Bo = function() { } } return r; -}, jX = function(r, e, t, n, i, a, o) { +}, BX = function(r, e, t, n, i, a, o) { return n = lw(n, r.width, e, t), i = lw(i, r.height, e, t), a = lw(a, r.width, e, t), o = lw(o, r.height, e, t), { maxWidth: typeof n > "u" ? void 0 : Number(n), maxHeight: typeof i > "u" ? void 0 : Number(i), minWidth: typeof a > "u" ? void 0 : Number(a), minHeight: typeof o > "u" ? void 0 : Number(o) }; -}, BX = function(r) { +}, FX = function(r) { return Array.isArray(r) ? r : [r, r]; -}, FX = [ +}, UX = [ "as", "ref", "style", @@ -17244,10 +17256,10 @@ var Bo = function() { "scale", "resizeRatio", "snapGap" -], nI = "__resizable_base__", UX = ( +], nI = "__resizable_base__", zX = ( /** @class */ (function(r) { - IX(e, r); + NX(e, r); function e(t) { var n, i, a, o, s = r.call(this, t) || this; return s.ratio = 1, s.resizable = null, s.parentLeft = 0, s.parentTop = 0, s.resizableLeft = 0, s.resizableRight = 0, s.resizableTop = 0, s.resizableBottom = 0, s.targetLeft = 0, s.targetTop = 0, s.delta = { @@ -17305,7 +17317,7 @@ var Bo = function() { configurable: !0 }), Object.defineProperty(e.prototype, "propsSize", { get: function() { - return this.props.size || this.props.defaultSize || NX; + return this.props.size || this.props.defaultSize || LX; }, enumerable: !1, configurable: !0 @@ -17332,8 +17344,8 @@ var Bo = function() { var l = t.getParentSize(), c = Number(t.state[s].toString().replace("px", "")), f = c / l[s] * 100; return "".concat(f, "%"); } - return hS(t.state[s]); - }, a = n && typeof n.width < "u" && !this.state.isResizing ? hS(n.width) : i("width"), o = n && typeof n.height < "u" && !this.state.isResizing ? hS(n.height) : i("height"); + return dS(t.state[s]); + }, a = n && typeof n.width < "u" && !this.state.isResizing ? dS(n.width) : i("width"), o = n && typeof n.height < "u" && !this.state.isResizing ? dS(n.height) : i("height"); return { width: a, height: o }; }, enumerable: !1, @@ -17380,7 +17392,7 @@ var Bo = function() { } else this.props.bounds === "window" ? this.window && (u = o ? this.resizableRight : this.window.innerWidth - this.resizableLeft, l = s ? this.resizableBottom : this.window.innerHeight - this.resizableTop) : this.props.bounds && (u = o ? this.resizableRight - this.targetLeft : this.props.bounds.offsetWidth + (this.targetLeft - this.resizableLeft), l = s ? this.resizableBottom - this.targetTop : this.props.bounds.offsetHeight + (this.targetTop - this.resizableTop)); return u && Number.isFinite(u) && (t = t && t < u ? t : u), l && Number.isFinite(l) && (n = n && n < l ? n : l), { maxWidth: t, maxHeight: n }; }, e.prototype.calculateNewSizeFromDirection = function(t, n) { - var i = this.props.scale || 1, a = BX(this.props.resizeRatio || 1), o = a[0], s = a[1], u = this.state, l = u.direction, c = u.original, f = this.props, d = f.lockAspectRatio, h = f.lockAspectRatioExtraHeight, p = f.lockAspectRatioExtraWidth, g = c.width, y = c.height, b = h || 0, _ = p || 0; + var i = this.props.scale || 1, a = FX(this.props.resizeRatio || 1), o = a[0], s = a[1], u = this.state, l = u.direction, c = u.original, f = this.props, d = f.lockAspectRatio, h = f.lockAspectRatioExtraHeight, p = f.lockAspectRatioExtraWidth, g = c.width, y = c.height, b = h || 0, _ = p || 0; return Xy("right", l) && (g = c.width + (t - c.x) * o / i, d && (y = (g - _) / this.ratio + b)), Xy("left", l) && (g = c.width - (t - c.x) * o / i, d && (y = (g - _) / this.ratio + b)), Xy("bottom", l) && (y = c.height + (n - c.y) * s / i, d && (g = (y - b) * this.ratio + _)), Xy("top", l) && (y = c.height - (n - c.y) * s / i, d && (g = (y - b) * this.ratio + _)), { newWidth: g, newHeight: y }; }, e.prototype.calculateNewSizeFromAspectRatio = function(t, n, i, a) { var o = this.props, s = o.lockAspectRatio, u = o.lockAspectRatioExtraHeight, l = o.lockAspectRatioExtraWidth, c = typeof a.width > "u" ? 10 : a.width, f = typeof i.width > "u" || i.width < 0 ? t : i.width, d = typeof a.height > "u" ? 10 : a.height, h = typeof i.height > "u" || i.height < 0 ? n : i.height, p = u || 0, g = l || 0; @@ -17410,7 +17422,7 @@ var Bo = function() { }, e.prototype.onResizeStart = function(t, n) { if (!(!this.resizable || !this.window)) { var i = 0, a = 0; - if (t.nativeEvent && LX(t.nativeEvent) ? (i = t.nativeEvent.clientX, a = t.nativeEvent.clientY) : t.nativeEvent && uw(t.nativeEvent) && (i = t.nativeEvent.touches[0].clientX, a = t.nativeEvent.touches[0].clientY), this.props.onResizeStart && this.resizable) { + if (t.nativeEvent && jX(t.nativeEvent) ? (i = t.nativeEvent.clientX, a = t.nativeEvent.clientY) : t.nativeEvent && uw(t.nativeEvent) && (i = t.nativeEvent.touches[0].clientX, a = t.nativeEvent.touches[0].clientY), this.props.onResizeStart && this.resizable) { var o = this.props.onResizeStart(t, n, this.resizable); if (o === !1) return; @@ -17447,7 +17459,7 @@ var Bo = function() { t.preventDefault(), t.stopPropagation(); } catch { } - var i = this.props, a = i.maxWidth, o = i.maxHeight, s = i.minWidth, u = i.minHeight, l = uw(t) ? t.touches[0].clientX : t.clientX, c = uw(t) ? t.touches[0].clientY : t.clientY, f = this.state, d = f.direction, h = f.original, p = f.width, g = f.height, y = this.getParentSize(), b = jX(y, this.window.innerWidth, this.window.innerHeight, a, o, s, u); + var i = this.props, a = i.maxWidth, o = i.maxHeight, s = i.minWidth, u = i.minHeight, l = uw(t) ? t.touches[0].clientX : t.clientX, c = uw(t) ? t.touches[0].clientY : t.clientY, f = this.state, d = f.direction, h = f.original, p = f.width, g = f.height, y = this.getParentSize(), b = BX(y, this.window.innerWidth, this.window.innerHeight, a, o, s, u); a = b.maxWidth, o = b.maxHeight, s = b.minWidth, u = b.minHeight; var _ = this.calculateNewSizeFromDirection(l, c), m = _.newHeight, x = _.newWidth, S = this.calculateNewMaxFromBoundary(a, o); this.props.snap && this.props.snap.x && (x = rI(x, this.props.snap.x, this.props.snapGap)), this.props.snap && this.props.snap.y && (m = rI(m, this.props.snap.y, this.props.snapGap)); @@ -17508,22 +17520,22 @@ var Bo = function() { if (!i) return null; var c = Object.keys(i).map(function(f) { - return i[f] !== !1 ? Te.jsx(kX, { direction: f, onResizeStart: t.onResizeStart, replaceStyles: a && a[f], className: o && o[f], children: l && l[f] ? l[f] : null }, f) : null; + return i[f] !== !1 ? Ce.jsx(IX, { direction: f, onResizeStart: t.onResizeStart, replaceStyles: a && a[f], className: o && o[f], children: l && l[f] ? l[f] : null }, f) : null; }); - return Te.jsx("div", { className: u, style: s, children: c }); + return Ce.jsx("div", { className: u, style: s, children: c }); }, e.prototype.render = function() { var t = this, n = Object.keys(this.props).reduce(function(o, s) { - return FX.indexOf(s) !== -1 || (o[s] = t.props[s]), o; + return UX.indexOf(s) !== -1 || (o[s] = t.props[s]), o; }, {}), i = gh(gh(gh({ position: "relative", userSelect: this.state.isResizing ? "none" : "auto" }, this.props.style), this.sizeStyle), { maxWidth: this.props.maxWidth, maxHeight: this.props.maxHeight, minWidth: this.props.minWidth, minHeight: this.props.minHeight, boxSizing: "border-box", flexShrink: 0 }); this.state.flexBasis && (i.flexBasis = this.state.flexBasis); var a = this.props.as || "div"; - return Te.jsxs(a, gh({ style: i, className: this.props.className }, n, { + return Ce.jsxs(a, gh({ style: i, className: this.props.className }, n, { // `ref` is after `extendsProps` to ensure this one wins over a version // passed in ref: function(o) { o && (t.resizable = o); }, - children: [this.state.isResizing && Te.jsx("div", { style: this.state.backgroundStyle }), this.props.children, this.renderResizer()] + children: [this.state.isResizing && Ce.jsx("div", { style: this.state.backgroundStyle }), this.props.children, this.renderResizer()] })); }, e.defaultProps = { as: "div", @@ -17554,7 +17566,7 @@ var Bo = function() { snapGap: 0 }, e; })(me.PureComponent) -), zX = function(r, e) { +), qX = function(r, e) { var t = {}; for (var n in r) Object.prototype.hasOwnProperty.call(r, n) && e.indexOf(n) < 0 && (t[n] = r[n]); if (r != null && typeof Object.getOwnPropertySymbols == "function") @@ -17562,7 +17574,7 @@ var Bo = function() { e.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(r, n[i]) && (t[n[i]] = r[n[i]]); return t; }; -const C2 = (r) => { +const T2 = (r) => { var { children: e, as: t, @@ -17580,10 +17592,10 @@ const C2 = (r) => { htmlAttributes: h, onClick: p, ref: g - } = r, y = zX(r, ["children", "as", "isLoading", "isDisabled", "size", "isFloating", "isActive", "variant", "description", "tooltipProps", "className", "style", "htmlAttributes", "onClick", "ref"]); - return Te.jsx(D7, Object.assign({ as: t, iconButtonVariant: "default", isDisabled: i, size: a, isLoading: n, isActive: s, isFloating: o, description: l, tooltipProps: c, className: f, style: d, variant: u, htmlAttributes: h, onClick: p, ref: g }, y, { children: e })); + } = r, y = qX(r, ["children", "as", "isLoading", "isDisabled", "size", "isFloating", "isActive", "variant", "description", "tooltipProps", "className", "style", "htmlAttributes", "onClick", "ref"]); + return Ce.jsx(D7, Object.assign({ as: t, iconButtonVariant: "default", isDisabled: i, size: a, isLoading: n, isActive: s, isFloating: o, description: l, tooltipProps: c, className: f, style: d, variant: u, htmlAttributes: h, onClick: p, ref: g }, y, { children: e })); }; -var qX = function(r, e) { +var GX = function(r, e) { var t = {}; for (var n in r) Object.prototype.hasOwnProperty.call(r, n) && e.indexOf(n) < 0 && (t[n] = r[n]); if (r != null && typeof Object.getOwnPropertySymbols == "function") @@ -17591,8 +17603,8 @@ var qX = function(r, e) { e.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(r, n[i]) && (t[n[i]] = r[n[i]]); return t; }; -const GX = (r) => { - var { description: e, actionFeedbackText: t, icon: n, children: i, onClick: a, htmlAttributes: o, tooltipProps: s, type: u = "clean-icon-button" } = r, l = qX(r, ["description", "actionFeedbackText", "icon", "children", "onClick", "htmlAttributes", "tooltipProps", "type"]); +const VX = (r) => { + var { description: e, actionFeedbackText: t, icon: n, children: i, onClick: a, htmlAttributes: o, tooltipProps: s, type: u = "clean-icon-button" } = r, l = GX(r, ["description", "actionFeedbackText", "icon", "children", "onClick", "htmlAttributes", "tooltipProps", "type"]); const [c, f] = ao.useState(null), [d, h] = ao.useState(!1), p = () => { c !== null && clearTimeout(c); const _ = window.setTimeout(() => { @@ -17605,7 +17617,7 @@ const GX = (r) => { h(!0); }, b = c === null ? e : t; if (u === "clean-icon-button") - return Te.jsx(O2, Object.assign({}, l.cleanIconButtonProps, { description: b, tooltipProps: { + return Ce.jsx(S2, Object.assign({}, l.cleanIconButtonProps, { description: b, tooltipProps: { root: Object.assign(Object.assign({}, s), { isOpen: d || c !== null }), trigger: { htmlAttributes: { @@ -17619,7 +17631,7 @@ const GX = (r) => { a && a(_), p(); }, className: l.className, htmlAttributes: o, children: n })); if (u === "icon-button") - return Te.jsx(C2, Object.assign({}, l.iconButtonProps, { description: b, tooltipProps: { + return Ce.jsx(T2, Object.assign({}, l.iconButtonProps, { description: b, tooltipProps: { root: Object.assign(Object.assign({}, s), { isOpen: d || c !== null }), trigger: { htmlAttributes: { @@ -17633,20 +17645,20 @@ const GX = (r) => { a && a(_), p(); }, className: l.className, htmlAttributes: o, children: n })); if (u === "outlined-button") - return Te.jsxs(Bf, Object.assign({ type: "simple", isOpen: d || c !== null }, s, { onOpenChange: (_) => { + return Ce.jsxs(Bf, Object.assign({ type: "simple", isOpen: d || c !== null }, s, { onOpenChange: (_) => { var m; _ ? y() : g(), (m = s == null ? void 0 : s.onOpenChange) === null || m === void 0 || m.call(s, _); - }, children: [Te.jsx(Bf.Trigger, { hasButtonWrapper: !0, htmlAttributes: { + }, children: [Ce.jsx(Bf.Trigger, { hasButtonWrapper: !0, htmlAttributes: { "aria-label": b, onBlur: g, onFocus: y, onMouseEnter: y, onMouseLeave: g - }, children: Te.jsx(QY, Object.assign({ variant: "neutral" }, l.buttonProps, { onClick: (_) => { + }, children: Ce.jsx(JY, Object.assign({ variant: "neutral" }, l.buttonProps, { onClick: (_) => { a && a(_), p(); - }, leadingVisual: n, className: l.className, htmlAttributes: o, children: i })) }), Te.jsx(Bf.Content, { children: b })] })); + }, leadingVisual: n, className: l.className, htmlAttributes: o, children: i })) }), Ce.jsx(Bf.Content, { children: b })] })); }, F7 = ({ textToCopy: r, isDisabled: e, size: t, tooltipProps: n, htmlAttributes: i, type: a }) => { - const [, o] = rX(), l = a === "outlined-button" ? { + const [, o] = nX(), l = a === "outlined-button" ? { outlinedButtonProps: { isDisabled: e, size: t @@ -17667,9 +17679,9 @@ const GX = (r) => { }, type: "clean-icon-button" }; - return Te.jsx(GX, Object.assign({ onClick: () => o(r), description: "Copy to clipboard", actionFeedbackText: "Copied" }, l, { tooltipProps: n, className: "n-gap-token-8", icon: Te.jsx(iH, { className: "ndl-icon-svg" }), htmlAttributes: Object.assign({ "aria-live": "polite" }, i), children: a === "outlined-button" && "Copy" })); + return Ce.jsx(VX, Object.assign({ onClick: () => o(r), description: "Copy to clipboard", actionFeedbackText: "Copied" }, l, { tooltipProps: n, className: "n-gap-token-8", icon: Ce.jsx(iH, { className: "ndl-icon-svg" }), htmlAttributes: Object.assign({ "aria-live": "polite" }, i), children: a === "outlined-button" && "Copy" })); }; -var VX = function(r, e) { +var HX = function(r, e) { var t = {}; for (var n in r) Object.prototype.hasOwnProperty.call(r, n) && e.indexOf(n) < 0 && (t[n] = r[n]); if (r != null && typeof Object.getOwnPropertySymbols == "function") @@ -17677,17 +17689,17 @@ var VX = function(r, e) { e.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(r, n[i]) && (t[n[i]] = r[n[i]]); return t; }; -const U7 = ({ children: r }) => Te.jsx(Te.Fragment, { children: r }); +const U7 = ({ children: r }) => Ce.jsx(Ce.Fragment, { children: r }); U7.displayName = "CollapsibleButtonWrapper"; -const HX = (r) => { - var { children: e, as: t, isFloating: n = !1, orientation: i = "horizontal", size: a = "medium", className: o, style: s, htmlAttributes: u, ref: l } = r, c = VX(r, ["children", "as", "isFloating", "orientation", "size", "className", "style", "htmlAttributes", "ref"]); +const WX = (r) => { + var { children: e, as: t, isFloating: n = !1, orientation: i = "horizontal", size: a = "medium", className: o, style: s, htmlAttributes: u, ref: l } = r, c = HX(r, ["children", "as", "isFloating", "orientation", "size", "className", "style", "htmlAttributes", "ref"]); const [f, d] = ao.useState(!0), h = Vn("ndl-icon-btn-array", o, { "ndl-array-floating": n, "ndl-col": i === "vertical", "ndl-row": i === "horizontal", [`ndl-${a}`]: a - }), p = t || "div", g = ao.Children.toArray(e), y = g.filter((x) => !ao.isValidElement(x) || x.type.displayName !== "CollapsibleButtonWrapper"), b = g.find((x) => ao.isValidElement(x) && x.type.displayName === "CollapsibleButtonWrapper"), _ = b ? b.props.children : null, m = () => i === "horizontal" ? f ? Te.jsx(V9, {}) : Te.jsx(FV, {}) : f ? Te.jsx(G9, {}) : Te.jsx(VV, {}); - return Te.jsxs(p, Object.assign({ role: "group", className: h, ref: l, style: s }, c, u, { children: [y, _ && Te.jsxs(Te.Fragment, { children: [!f && _, Te.jsx(O2, { onClick: () => { + }), p = t || "div", g = ao.Children.toArray(e), y = g.filter((x) => !ao.isValidElement(x) || x.type.displayName !== "CollapsibleButtonWrapper"), b = g.find((x) => ao.isValidElement(x) && x.type.displayName === "CollapsibleButtonWrapper"), _ = b ? b.props.children : null, m = () => i === "horizontal" ? f ? Ce.jsx(V9, {}) : Ce.jsx(FV, {}) : f ? Ce.jsx(G9, {}) : Ce.jsx(VV, {}); + return Ce.jsxs(p, Object.assign({ role: "group", className: h, ref: l, style: s }, c, u, { children: [y, _ && Ce.jsxs(Ce.Fragment, { children: [!f && _, Ce.jsx(S2, { onClick: () => { d((x) => !x); }, size: a, description: f ? "Show more" : "Show less", tooltipProps: { root: { @@ -17696,7 +17708,7 @@ const HX = (r) => { }, htmlAttributes: { "aria-expanded": !f }, children: m() })] })] })); -}, WX = Object.assign(HX, { +}, YX = Object.assign(WX, { CollapsibleButtonWrapper: U7 }); function z7() { @@ -17705,7 +17717,7 @@ function z7() { const r = window.navigator.userAgent.toLowerCase(); return r.includes("mac") ? "mac" : r.includes("win") ? "windows" : "linux"; } -function YX(r = z7()) { +function XX(r = z7()) { return { alt: r === "mac" ? "⌥" : "alt", capslock: "⇪", @@ -17728,7 +17740,7 @@ function YX(r = z7()) { up: "↑" }; } -function XX(r = z7()) { +function $X(r = z7()) { return { alt: "Alt", capslock: "Caps Lock", @@ -17751,7 +17763,7 @@ function XX(r = z7()) { up: "Up" }; } -var $X = function(r, e) { +var KX = function(r, e) { var t = {}; for (var n in r) Object.prototype.hasOwnProperty.call(r, n) && e.indexOf(n) < 0 && (t[n] = r[n]); if (r != null && typeof Object.getOwnPropertySymbols == "function") @@ -17759,17 +17771,17 @@ var $X = function(r, e) { e.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(r, n[i]) && (t[n[i]] = r[n[i]]); return t; }; -const KX = (r) => { - var { modifierKeys: e, keys: t, os: n, as: i, className: a, style: o, htmlAttributes: s, ref: u } = r, l = $X(r, ["modifierKeys", "keys", "os", "as", "className", "style", "htmlAttributes", "ref"]); +const ZX = (r) => { + var { modifierKeys: e, keys: t, os: n, as: i, className: a, style: o, htmlAttributes: s, ref: u } = r, l = KX(r, ["modifierKeys", "keys", "os", "as", "className", "style", "htmlAttributes", "ref"]); const c = i ?? "span", f = me.useMemo(() => { if (e === void 0) return null; - const p = YX(n), g = XX(n); - return e == null ? void 0 : e.map((y) => Te.jsx("abbr", { className: "ndl-kbd-key", title: g[y], children: p[y] }, y)); - }, [e, n]), d = me.useMemo(() => t === void 0 ? null : t == null ? void 0 : t.map((p, g) => g === 0 ? Te.jsx("span", { className: "ndl-kbd-key", children: p }, p == null ? void 0 : p.toString()) : Te.jsxs(Te.Fragment, { children: [Te.jsx("span", { className: "ndl-kbd-then", children: "Then" }), Te.jsx("span", { className: "ndl-kbd-key", children: p }, p == null ? void 0 : p.toString())] })), [t]), h = Vn("ndl-kbd", a); - return Te.jsxs(c, Object.assign({ className: h, style: o, ref: u }, l, s, { children: [f, d] })); + const p = XX(n), g = $X(n); + return e == null ? void 0 : e.map((y) => Ce.jsx("abbr", { className: "ndl-kbd-key", title: g[y], children: p[y] }, y)); + }, [e, n]), d = me.useMemo(() => t === void 0 ? null : t == null ? void 0 : t.map((p, g) => g === 0 ? Ce.jsx("span", { className: "ndl-kbd-key", children: p }, p == null ? void 0 : p.toString()) : Ce.jsxs(Ce.Fragment, { children: [Ce.jsx("span", { className: "ndl-kbd-then", children: "Then" }), Ce.jsx("span", { className: "ndl-kbd-key", children: p }, p == null ? void 0 : p.toString())] })), [t]), h = Vn("ndl-kbd", a); + return Ce.jsxs(c, Object.assign({ className: h, style: o, ref: u }, l, s, { children: [f, d] })); }; -var ZX = function(r, e) { +var QX = function(r, e) { var t = {}; for (var n in r) Object.prototype.hasOwnProperty.call(r, n) && e.indexOf(n) < 0 && (t[n] = r[n]); if (r != null && typeof Object.getOwnPropertySymbols == "function") @@ -17778,7 +17790,7 @@ var ZX = function(r, e) { return t; }; const q7 = (r) => { - var { children: e, size: t = "medium", isDisabled: n = !1, isLoading: i = !1, isOpen: a = !1, className: o, description: s, tooltipProps: u, onClick: l, style: c, htmlAttributes: f, ref: d } = r, h = ZX(r, ["children", "size", "isDisabled", "isLoading", "isOpen", "className", "description", "tooltipProps", "onClick", "style", "htmlAttributes", "ref"]); + var { children: e, size: t = "medium", isDisabled: n = !1, isLoading: i = !1, isOpen: a = !1, className: o, description: s, tooltipProps: u, onClick: l, style: c, htmlAttributes: f, ref: d } = r, h = QX(r, ["children", "size", "isDisabled", "isLoading", "isOpen", "className", "description", "tooltipProps", "onClick", "style", "htmlAttributes", "ref"]); const p = Vn("ndl-select-icon-btn", o, { "ndl-active": a, "ndl-disabled": n, @@ -17787,40 +17799,40 @@ const q7 = (r) => { "ndl-medium": t === "medium", "ndl-small": t === "small" }), g = !n && !i; - return Te.jsxs(Bf, Object.assign({ hoverDelay: { + return Ce.jsxs(Bf, Object.assign({ hoverDelay: { close: 0, open: 500 } }, u == null ? void 0 : u.root, { type: "simple", // We disable the tooltip if the button is disabled or open, so it doesn't interfere with a menu open isDisabled: s === null || n || a === !0, - children: [Te.jsx(Bf.Trigger, Object.assign({}, u == null ? void 0 : u.trigger, { hasButtonWrapper: !0, children: Te.jsxs("button", Object.assign({ type: "button", ref: d, className: p, style: c, disabled: !g, "aria-disabled": !g, "aria-label": s ?? void 0, "aria-expanded": a, onClick: l }, h, f, { children: [Te.jsx("div", { className: "ndl-select-icon-btn-inner", children: i ? Te.jsx(h1, { size: "small" }) : Te.jsx("div", { className: "ndl-icon", children: e }) }), Te.jsx(G9, { className: Vn("ndl-select-icon-btn-icon", { + children: [Ce.jsx(Bf.Trigger, Object.assign({}, u == null ? void 0 : u.trigger, { hasButtonWrapper: !0, children: Ce.jsxs("button", Object.assign({ type: "button", ref: d, className: p, style: c, disabled: !g, "aria-disabled": !g, "aria-label": s ?? void 0, "aria-expanded": a, onClick: l }, h, f, { children: [Ce.jsx("div", { className: "ndl-select-icon-btn-inner", children: i ? Ce.jsx(h1, { size: "small" }) : Ce.jsx("div", { className: "ndl-icon", children: e }) }), Ce.jsx(G9, { className: Vn("ndl-select-icon-btn-icon", { "ndl-select-icon-btn-icon-open": a === !0 - }) })] })) })), Te.jsx(Bf.Content, Object.assign({}, u == null ? void 0 : u.content, { children: s }))] + }) })] })) })), Ce.jsx(Bf.Content, Object.assign({}, u == null ? void 0 : u.content, { children: s }))] })); }; -function uM(r, e) { +function sM(r, e) { (e == null || e > r.length) && (e = r.length); for (var t = 0, n = Array(e); t < e; t++) n[t] = r[t]; return n; } -function QX(r) { +function JX(r) { if (Array.isArray(r)) return r; } -function JX(r) { - if (Array.isArray(r)) return uM(r); +function e$(r) { + if (Array.isArray(r)) return sM(r); } function zp(r, e) { if (!(r instanceof e)) throw new TypeError("Cannot call a class as a function"); } -function e$(r, e) { +function t$(r, e) { for (var t = 0; t < e.length; t++) { var n = e[t]; n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(r, V7(n.key), n); } } function qp(r, e, t) { - return e && e$(r.prototype, e), Object.defineProperty(r, "prototype", { + return e && t$(r.prototype, e), Object.defineProperty(r, "prototype", { writable: !1 }), r; } @@ -17879,10 +17891,10 @@ function G7(r, e, t) { writable: !0 }) : r[e] = t, r; } -function t$(r) { +function r$(r) { if (typeof Symbol < "u" && r[Symbol.iterator] != null || r["@@iterator"] != null) return Array.from(r); } -function r$(r, e) { +function n$(r, e) { var t = r == null ? null : typeof Symbol < "u" && r[Symbol.iterator] || r["@@iterator"]; if (t != null) { var n, i, a, o, s = [], u = !0, l = !1; @@ -17903,21 +17915,21 @@ function r$(r, e) { return s; } } -function n$() { +function i$() { throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`); } -function i$() { +function a$() { throw new TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`); } function Uo(r, e) { - return QX(r) || r$(r, e) || U5(r, e) || n$(); + return JX(r) || n$(r, e) || U5(r, e) || i$(); } function Rx(r) { - return JX(r) || t$(r) || U5(r) || i$(); + return e$(r) || r$(r) || U5(r) || a$(); } -function a$(r, e) { +function o$(r, e) { if (typeof r != "object" || !r) return r; var t = r[Symbol.toPrimitive]; if (t !== void 0) { @@ -17928,7 +17940,7 @@ function a$(r, e) { return String(r); } function V7(r) { - var e = a$(r, "string"); + var e = o$(r, "string"); return typeof e == "symbol" ? e : e + ""; } function ls(r) { @@ -17941,32 +17953,32 @@ function ls(r) { } function U5(r, e) { if (r) { - if (typeof r == "string") return uM(r, e); + if (typeof r == "string") return sM(r, e); var t = {}.toString.call(r).slice(8, -1); - return t === "Object" && r.constructor && (t = r.constructor.name), t === "Map" || t === "Set" ? Array.from(r) : t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? uM(r, e) : void 0; + return t === "Object" && r.constructor && (t = r.constructor.name), t === "Map" || t === "Set" ? Array.from(r) : t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? sM(r, e) : void 0; } } var ss = typeof window > "u" ? null : window, iI = ss ? ss.navigator : null; ss && ss.document; -var o$ = ls(""), H7 = ls({}), s$ = ls(function() { -}), u$ = typeof HTMLElement > "u" ? "undefined" : ls(HTMLElement), V1 = function(e) { +var s$ = ls(""), H7 = ls({}), u$ = ls(function() { +}), l$ = typeof HTMLElement > "u" ? "undefined" : ls(HTMLElement), V1 = function(e) { return e && e.instanceString && Ya(e.instanceString) ? e.instanceString() : null; }, Ar = function(e) { - return e != null && ls(e) == o$; + return e != null && ls(e) == s$; }, Ya = function(e) { - return e != null && ls(e) === s$; + return e != null && ls(e) === u$; }, ra = function(e) { return !rf(e) && (Array.isArray ? Array.isArray(e) : e != null && e instanceof Array); }, ai = function(e) { return e != null && ls(e) === H7 && !ra(e) && e.constructor === Object; -}, l$ = function(e) { +}, c$ = function(e) { return e != null && ls(e) === H7; }, Ht = function(e) { return e != null && ls(e) === ls(1) && !isNaN(e); -}, c$ = function(e) { +}, f$ = function(e) { return Ht(e) && Math.floor(e) === e; }, Px = function(e) { - if (u$ !== "undefined") + if (l$ !== "undefined") return e != null && e instanceof HTMLElement; }, rf = function(e) { return H1(e) || W7(e); @@ -17978,17 +17990,17 @@ var o$ = ls(""), H7 = ls({}), s$ = ls(function() { return V1(e) === "core"; }, Y7 = function(e) { return V1(e) === "stylesheet"; -}, f$ = function(e) { +}, d$ = function(e) { return V1(e) === "event"; }, Rp = function(e) { return e == null ? !0 : !!(e === "" || e.match(/^\s+$/)); -}, d$ = function(e) { - return typeof HTMLElement > "u" ? !1 : e instanceof HTMLElement; }, h$ = function(e) { - return ai(e) && Ht(e.x1) && Ht(e.x2) && Ht(e.y1) && Ht(e.y2); + return typeof HTMLElement > "u" ? !1 : e instanceof HTMLElement; }, v$ = function(e) { - return l$(e) && Ya(e.then); -}, p$ = function() { + return ai(e) && Ht(e.x1) && Ht(e.x2) && Ht(e.y1) && Ht(e.y2); +}, p$ = function(e) { + return c$(e) && Ya(e.then); +}, g$ = function() { return iI && iI.userAgent.match(/msie|trident|edge/i); }, jm = function(e, t) { t || (t = function() { @@ -18009,7 +18021,7 @@ var o$ = ls(""), H7 = ls({}), s$ = ls(function() { return r.replace(/([A-Z])/g, function(e) { return "-" + e.toLowerCase(); }); -}), A2 = jm(function(r) { +}), C2 = jm(function(r) { return r.replace(/(-\w)/g, function(e) { return e[1].toUpperCase(); }); @@ -18021,9 +18033,9 @@ var o$ = ls(""), H7 = ls({}), s$ = ls(function() { return Rp(e) ? e : e.charAt(0).toUpperCase() + e.substring(1); }, vp = function(e, t) { return e.slice(-1 * t.length) === t; -}, us = "(?:[-+]?(?:(?:\\d+|\\d*\\.\\d+)(?:[Ee][+-]?\\d+)?))", g$ = "rgb[a]?\\((" + us + "[%]?)\\s*,\\s*(" + us + "[%]?)\\s*,\\s*(" + us + "[%]?)(?:\\s*,\\s*(" + us + "))?\\)", y$ = "rgb[a]?\\((?:" + us + "[%]?)\\s*,\\s*(?:" + us + "[%]?)\\s*,\\s*(?:" + us + "[%]?)(?:\\s*,\\s*(?:" + us + "))?\\)", m$ = "hsl[a]?\\((" + us + ")\\s*,\\s*(" + us + "[%])\\s*,\\s*(" + us + "[%])(?:\\s*,\\s*(" + us + "))?\\)", b$ = "hsl[a]?\\((?:" + us + ")\\s*,\\s*(?:" + us + "[%])\\s*,\\s*(?:" + us + "[%])(?:\\s*,\\s*(?:" + us + "))?\\)", _$ = "\\#[0-9a-fA-F]{3}", w$ = "\\#[0-9a-fA-F]{6}", $7 = function(e, t) { +}, us = "(?:[-+]?(?:(?:\\d+|\\d*\\.\\d+)(?:[Ee][+-]?\\d+)?))", y$ = "rgb[a]?\\((" + us + "[%]?)\\s*,\\s*(" + us + "[%]?)\\s*,\\s*(" + us + "[%]?)(?:\\s*,\\s*(" + us + "))?\\)", m$ = "rgb[a]?\\((?:" + us + "[%]?)\\s*,\\s*(?:" + us + "[%]?)\\s*,\\s*(?:" + us + "[%]?)(?:\\s*,\\s*(?:" + us + "))?\\)", b$ = "hsl[a]?\\((" + us + ")\\s*,\\s*(" + us + "[%])\\s*,\\s*(" + us + "[%])(?:\\s*,\\s*(" + us + "))?\\)", _$ = "hsl[a]?\\((?:" + us + ")\\s*,\\s*(?:" + us + "[%])\\s*,\\s*(?:" + us + "[%])(?:\\s*,\\s*(?:" + us + "))?\\)", w$ = "\\#[0-9a-fA-F]{3}", x$ = "\\#[0-9a-fA-F]{6}", $7 = function(e, t) { return e < t ? -1 : e > t ? 1 : 0; -}, x$ = function(e, t) { +}, E$ = function(e, t) { return -1 * $7(e, t); }, kr = Object.assign != null ? Object.assign.bind(Object) : function(r) { for (var e = arguments, t = 1; t < e.length; t++) { @@ -18035,17 +18047,17 @@ var o$ = ls(""), H7 = ls({}), s$ = ls(function() { } } return r; -}, E$ = function(e) { +}, S$ = function(e) { if (!(!(e.length === 4 || e.length === 7) || e[0] !== "#")) { var t = e.length === 4, n, i, a, o = 16; return t ? (n = parseInt(e[1] + e[1], o), i = parseInt(e[2] + e[2], o), a = parseInt(e[3] + e[3], o)) : (n = parseInt(e[1] + e[2], o), i = parseInt(e[3] + e[4], o), a = parseInt(e[5] + e[6], o)), [n, i, a]; } -}, S$ = function(e) { +}, O$ = function(e) { var t, n, i, a, o, s, u, l; function c(p, g, y) { return y < 0 && (y += 1), y > 1 && (y -= 1), y < 1 / 6 ? p + (g - p) * 6 * y : y < 1 / 2 ? g : y < 2 / 3 ? p + (g - p) * (2 / 3 - y) * 6 : p; } - var f = new RegExp("^" + m$ + "$").exec(e); + var f = new RegExp("^" + b$ + "$").exec(e); if (f) { if (n = parseInt(f[1]), n < 0 ? n = (360 - -1 * n % 360) % 360 : n > 360 && (n = n % 360), n /= 360, i = parseFloat(f[2]), i < 0 || i > 100 || (i = i / 100, a = parseFloat(f[3]), a < 0 || a > 100) || (a = a / 100, o = f[4], o !== void 0 && (o = parseFloat(o), o < 0 || o > 1))) return; @@ -18058,8 +18070,8 @@ var o$ = ls(""), H7 = ls({}), s$ = ls(function() { t = [s, u, l, o]; } return t; -}, O$ = function(e) { - var t, n = new RegExp("^" + g$ + "$").exec(e); +}, T$ = function(e) { + var t, n = new RegExp("^" + y$ + "$").exec(e); if (n) { t = []; for (var i = [], a = 1; a <= 3; a++) { @@ -18079,11 +18091,11 @@ var o$ = ls(""), H7 = ls({}), s$ = ls(function() { } } return t; -}, T$ = function(e) { - return C$[e.toLowerCase()]; +}, C$ = function(e) { + return A$[e.toLowerCase()]; }, K7 = function(e) { - return (ra(e) ? e : null) || T$(e) || E$(e) || O$(e) || S$(e); -}, C$ = { + return (ra(e) ? e : null) || C$(e) || S$(e) || T$(e) || O$(e); +}, A$ = { // special colour names transparent: [0, 0, 0, 0], // NB alpha === 0 @@ -18255,42 +18267,42 @@ var o$ = ls(""), H7 = ls({}), s$ = ls(function() { function W1(r) { return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r; } -var vS, oI; +var hS, oI; function Y1() { - if (oI) return vS; + if (oI) return hS; oI = 1; function r(e) { var t = typeof e; return e != null && (t == "object" || t == "function"); } - return vS = r, vS; + return hS = r, hS; } -var pS, sI; -function A$() { - if (sI) return pS; +var vS, sI; +function R$() { + if (sI) return vS; sI = 1; var r = typeof cw == "object" && cw && cw.Object === Object && cw; - return pS = r, pS; + return vS = r, vS; } -var gS, uI; -function R2() { - if (uI) return gS; +var pS, uI; +function A2() { + if (uI) return pS; uI = 1; - var r = A$(), e = typeof self == "object" && self && self.Object === Object && self, t = r || e || Function("return this")(); - return gS = t, gS; + var r = R$(), e = typeof self == "object" && self && self.Object === Object && self, t = r || e || Function("return this")(); + return pS = t, pS; } -var yS, lI; -function R$() { - if (lI) return yS; +var gS, lI; +function P$() { + if (lI) return gS; lI = 1; - var r = R2(), e = function() { + var r = A2(), e = function() { return r.Date.now(); }; - return yS = e, yS; + return gS = e, gS; } -var mS, cI; -function P$() { - if (cI) return mS; +var yS, cI; +function M$() { + if (cI) return yS; cI = 1; var r = /\s/; function e(t) { @@ -18298,28 +18310,28 @@ function P$() { ; return n; } - return mS = e, mS; + return yS = e, yS; } -var bS, fI; -function M$() { - if (fI) return bS; +var mS, fI; +function D$() { + if (fI) return mS; fI = 1; - var r = P$(), e = /^\s+/; + var r = M$(), e = /^\s+/; function t(n) { return n && n.slice(0, r(n) + 1).replace(e, ""); } - return bS = t, bS; + return mS = t, mS; } -var _S, dI; +var bS, dI; function G5() { - if (dI) return _S; + if (dI) return bS; dI = 1; - var r = R2(), e = r.Symbol; - return _S = e, _S; + var r = A2(), e = r.Symbol; + return bS = e, bS; } -var wS, hI; -function D$() { - if (hI) return wS; +var _S, hI; +function k$() { + if (hI) return _S; hI = 1; var r = G5(), e = Object.prototype, t = e.hasOwnProperty, n = e.toString, i = r ? r.toStringTag : void 0; function a(o) { @@ -18332,52 +18344,52 @@ function D$() { var c = n.call(o); return l && (s ? o[i] = u : delete o[i]), c; } - return wS = a, wS; + return _S = a, _S; } -var xS, vI; -function k$() { - if (vI) return xS; +var wS, vI; +function I$() { + if (vI) return wS; vI = 1; var r = Object.prototype, e = r.toString; function t(n) { return e.call(n); } - return xS = t, xS; + return wS = t, wS; } -var ES, pI; +var xS, pI; function J7() { - if (pI) return ES; + if (pI) return xS; pI = 1; - var r = G5(), e = D$(), t = k$(), n = "[object Null]", i = "[object Undefined]", a = r ? r.toStringTag : void 0; + var r = G5(), e = k$(), t = I$(), n = "[object Null]", i = "[object Undefined]", a = r ? r.toStringTag : void 0; function o(s) { return s == null ? s === void 0 ? i : n : a && a in Object(s) ? e(s) : t(s); } - return ES = o, ES; + return xS = o, xS; } -var SS, gI; -function I$() { - if (gI) return SS; +var ES, gI; +function N$() { + if (gI) return ES; gI = 1; function r(e) { return e != null && typeof e == "object"; } - return SS = r, SS; + return ES = r, ES; } -var OS, yI; +var SS, yI; function X1() { - if (yI) return OS; + if (yI) return SS; yI = 1; - var r = J7(), e = I$(), t = "[object Symbol]"; + var r = J7(), e = N$(), t = "[object Symbol]"; function n(i) { return typeof i == "symbol" || e(i) && r(i) == t; } - return OS = n, OS; + return SS = n, SS; } -var TS, mI; -function N$() { - if (mI) return TS; +var OS, mI; +function L$() { + if (mI) return OS; mI = 1; - var r = M$(), e = Y1(), t = X1(), n = NaN, i = /^[-+]0x[0-9a-f]+$/i, a = /^0b[01]+$/i, o = /^0o[0-7]+$/i, s = parseInt; + var r = D$(), e = Y1(), t = X1(), n = NaN, i = /^[-+]0x[0-9a-f]+$/i, a = /^0b[01]+$/i, o = /^0o[0-7]+$/i, s = parseInt; function u(l) { if (typeof l == "number") return l; @@ -18393,13 +18405,13 @@ function N$() { var f = a.test(l); return f || o.test(l) ? s(l.slice(2), f ? 2 : 8) : i.test(l) ? n : +l; } - return TS = u, TS; + return OS = u, OS; } -var CS, bI; -function L$() { - if (bI) return CS; +var TS, bI; +function j$() { + if (bI) return TS; bI = 1; - var r = Y1(), e = R$(), t = N$(), n = "Expected a function", i = Math.max, a = Math.min; + var r = Y1(), e = P$(), t = L$(), n = "Expected a function", i = Math.max, a = Math.min; function o(s, u, l) { var c, f, d, h, p, g, y = 0, b = !1, _ = !1, m = !0; if (typeof s != "function") @@ -18447,13 +18459,13 @@ function L$() { } return L.cancel = I, L.flush = k, L; } - return CS = o, CS; + return TS = o, TS; } -var j$ = L$(), $1 = /* @__PURE__ */ W1(j$), AS = ss ? ss.performance : null, eF = AS && AS.now ? function() { - return AS.now(); +var B$ = j$(), $1 = /* @__PURE__ */ W1(B$), CS = ss ? ss.performance : null, eF = CS && CS.now ? function() { + return CS.now(); } : function() { return Date.now(); -}, B$ = (function() { +}, F$ = (function() { if (ss) { if (ss.requestAnimationFrame) return function(r) { @@ -18478,7 +18490,7 @@ var j$ = L$(), $1 = /* @__PURE__ */ W1(j$), AS = ss ? ss.performance : null, eF }, 1e3 / 60); }; })(), Mx = function(e) { - return B$(e); + return F$(e); }, vv = eF, Ig = 9261, tF = 65599, lm = 5381, rF = function(e) { for (var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Ig, n = t, i; i = e.next(), !i.done; ) n = n * tF + i.value | 0; @@ -18489,7 +18501,7 @@ var j$ = L$(), $1 = /* @__PURE__ */ W1(j$), AS = ss ? ss.performance : null, eF }, y1 = function(e) { var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : lm; return (t << 5) + t + e | 0; -}, F$ = function(e, t) { +}, U$ = function(e, t) { return e * 2097152 + t; }, ep = function(e) { return e[0] * 2097152 + e[1]; @@ -18516,36 +18528,36 @@ var j$ = L$(), $1 = /* @__PURE__ */ W1(j$), AS = ss ? ss.performance : null, eF }; return rF(o, t); }, nF = function() { - return U$(arguments); -}, U$ = function(e) { + return z$(arguments); +}, z$ = function(e) { for (var t, n = 0; n < e.length; n++) { var i = e[n]; n === 0 ? t = Hg(i) : t = Hg(i, t); } return t; }; -function z$(r, e, t, n, i) { +function q$(r, e, t, n, i) { var a = i * Math.PI / 180, o = Math.cos(a) * (r - t) - Math.sin(a) * (e - n) + t, s = Math.sin(a) * (r - t) + Math.cos(a) * (e - n) + n; return { x: o, y: s }; } -var q$ = function(e, t, n, i, a, o) { +var G$ = function(e, t, n, i, a, o) { return { x: (e - n) * a + n, y: (t - i) * o + i }; }; -function G$(r, e, t) { +function V$(r, e, t) { if (t === 0) return r; - var n = (e.x1 + e.x2) / 2, i = (e.y1 + e.y2) / 2, a = e.w / e.h, o = 1 / a, s = z$(r.x, r.y, n, i, t), u = q$(s.x, s.y, n, i, a, o); + var n = (e.x1 + e.x2) / 2, i = (e.y1 + e.y2) / 2, a = e.w / e.h, o = 1 / a, s = q$(r.x, r.y, n, i, t), u = G$(s.x, s.y, n, i, a, o); return { x: u.x, y: u.y }; } -var wI = !0, V$ = console.warn != null, H$ = console.trace != null, V5 = Number.MAX_SAFE_INTEGER || 9007199254740991, iF = function() { +var wI = !0, H$ = console.warn != null, W$ = console.trace != null, V5 = Number.MAX_SAFE_INTEGER || 9007199254740991, iF = function() { return !0; }, Dx = function() { return !1; @@ -18560,12 +18572,12 @@ var wI = !0, V$ = console.warn != null, H$ = console.trace != null, V5 = Number. else return wI; }, Ai = function(e) { - aF() && (V$ ? console.warn(e) : (console.log(e), H$ && console.trace())); -}, W$ = function(e) { + aF() && (H$ ? console.warn(e) : (console.log(e), W$ && console.trace())); +}, Y$ = function(e) { return kr({}, e); }, bh = function(e) { - return e == null ? e : ra(e) ? e.slice() : ai(e) ? W$(e) : e; -}, Y$ = function(e) { + return e == null ? e : ra(e) ? e.slice() : ai(e) ? Y$(e) : e; +}, X$ = function(e) { return e.slice(); }, oF = function(e, t) { for ( @@ -18583,8 +18595,8 @@ var wI = !0, V$ = console.warn != null, H$ = console.trace != null, V5 = Number. ) : "-" ) ; return t; -}, X$ = {}, sF = function() { - return X$; +}, $$ = {}, sF = function() { + return $$; }, fu = function(e) { var t = Object.keys(e); return function(n) { @@ -18599,7 +18611,7 @@ var wI = !0, V$ = console.warn != null, H$ = console.trace != null, V5 = Number. e[i] === t && e.splice(i, 1); }, W5 = function(e) { e.splice(0, e.length); -}, $$ = function(e, t) { +}, K$ = function(e, t) { for (var n = 0; n < t.length; n++) { var i = t[n]; e.push(i); @@ -18608,7 +18620,7 @@ var wI = !0, V$ = console.warn != null, H$ = console.trace != null, V5 = Number. return n && (t = X7(n, t)), e[t]; }, ov = function(e, t, n, i) { n && (t = X7(n, t)), e[t] = i; -}, K$ = /* @__PURE__ */ (function() { +}, Z$ = /* @__PURE__ */ (function() { function r() { zp(this, r), this._obj = {}; } @@ -18638,7 +18650,7 @@ var wI = !0, V$ = console.warn != null, H$ = console.trace != null, V5 = Number. return this._obj[t]; } }]); -})(), sv = typeof Map < "u" ? Map : K$, Z$ = "undefined", Q$ = /* @__PURE__ */ (function() { +})(), sv = typeof Map < "u" ? Map : Z$, Q$ = "undefined", J$ = /* @__PURE__ */ (function() { function r(e) { if (zp(this, r), this._obj = /* @__PURE__ */ Object.create(null), this.size = 0, e != null) { var t; @@ -18688,7 +18700,7 @@ var wI = !0, V$ = console.warn != null, H$ = console.trace != null, V5 = Number. return this.toArray().forEach(t, n); } }]); -})(), $m = (typeof Set > "u" ? "undefined" : ls(Set)) !== Z$ ? Set : Q$, P2 = function(e, t) { +})(), $m = (typeof Set > "u" ? "undefined" : ls(Set)) !== Q$ ? Set : J$, R2 = function(e, t) { var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0; if (e === void 0 || t === void 0 || !z5(e)) { Ia("An element must have a core reference and parameters set"); @@ -18834,8 +18846,8 @@ var wI = !0, V$ = console.warn != null, H$ = console.trace != null, V5 = Number. return 1; for (var X = B.connectedEdges().filter(function(le) { return (!a || le.source().same(B)) && _.has(le); - }), Q = 0; Q < X.length; Q++) { - var ue = X[Q], re = ue.connectedNodes().filter(function(le) { + }), Z = 0; Z < X.length; Z++) { + var ue = X[Z], re = ue.connectedNodes().filter(function(le) { return !le.same(B) && b.has(le); }), ne = re.id(); re.length !== 0 && !h[ne] && (re = re[0], l.push(re), e.bfs && (h[ne] = !0, c.push(re)), f[ne] = ue, d[ne] = d[j] + 1); @@ -18861,8 +18873,8 @@ var wI = !0, V$ = console.warn != null, H$ = console.trace != null, V5 = Number. }; m1.bfs = m1.breadthFirstSearch; m1.dfs = m1.depthFirstSearch; -var Xw = { exports: {} }, J$ = Xw.exports, SI; -function eK() { +var Xw = { exports: {} }, eK = Xw.exports, SI; +function tK() { return SI || (SI = 1, (function(r, e) { (function() { var t, n, i, a, o, s, u, l, c, f, d, h, p, g, y; @@ -18972,20 +18984,20 @@ function eK() { })(this, function() { return t; }); - }).call(J$); + }).call(eK); })(Xw)), Xw.exports; } -var RS, OI; -function tK() { - return OI || (OI = 1, RS = eK()), RS; +var AS, OI; +function rK() { + return OI || (OI = 1, AS = tK()), AS; } -var rK = tK(), K1 = /* @__PURE__ */ W1(rK), nK = fu({ +var nK = rK(), K1 = /* @__PURE__ */ W1(nK), iK = fu({ root: null, weight: function(e) { return 1; }, directed: !1 -}), iK = { +}), aK = { dijkstra: function(e) { if (!ai(e)) { var t = arguments; @@ -18995,7 +19007,7 @@ var rK = tK(), K1 = /* @__PURE__ */ W1(rK), nK = fu({ directed: t[2] }; } - var n = nK(e), i = n.root, a = n.weight, o = n.directed, s = this, u = a, l = Ar(i) ? this.filter(i)[0] : i[0], c = {}, f = {}, d = {}, h = this.byGroup(), p = h.nodes, g = h.edges; + var n = iK(e), i = n.root, a = n.weight, o = n.directed, s = this, u = a, l = Ar(i) ? this.filter(i)[0] : i[0], c = {}, f = {}, d = {}, h = this.byGroup(), p = h.nodes, g = h.edges; g.unmergeBy(function(z) { return z.isLoop(); }); @@ -19011,8 +19023,8 @@ var rK = tK(), K1 = /* @__PURE__ */ W1(rK), nK = fu({ } for (var S = function(H, q) { for (var W = (o ? H.edgesTo(q) : H.edgesWith(q)).intersect(g), $ = 1 / 0, J, X = 0; X < W.length; X++) { - var Q = W[X], ue = u(Q); - (ue < $ || !J) && ($ = ue, J = Q); + var Z = W[X], ue = u(Z); + (ue < $ || !J) && ($ = ue, J = Z); } return { edge: J, @@ -19045,7 +19057,7 @@ var rK = tK(), K1 = /* @__PURE__ */ W1(rK), nK = fu({ } }; } -}, aK = { +}, oK = { // kruskal's algorithm (finds min spanning tree, assuming undirected graph) // implemented from pseudocode from wikipedia kruskal: function(e) { @@ -19068,7 +19080,7 @@ var rK = tK(), K1 = /* @__PURE__ */ W1(rK), nK = fu({ } return s; } -}, oK = fu({ +}, sK = fu({ root: null, goal: null, weight: function(e) { @@ -19078,15 +19090,15 @@ var rK = tK(), K1 = /* @__PURE__ */ W1(rK), nK = fu({ return 0; }, directed: !1 -}), sK = { +}), uK = { // Implemented from pseudocode from wikipedia aStar: function(e) { - var t = this.cy(), n = oK(e), i = n.root, a = n.goal, o = n.heuristic, s = n.directed, u = n.weight; + var t = this.cy(), n = sK(e), i = n.root, a = n.goal, o = n.heuristic, s = n.directed, u = n.weight; i = t.collection(i)[0], a = t.collection(a)[0]; var l = i.id(), c = a.id(), f = {}, d = {}, h = {}, p = new K1(function(J, X) { return d[J.id()] - d[X.id()]; - }), g = new $m(), y = {}, b = {}, _ = function(X, Q) { - p.push(X), g.add(Q); + }), g = new $m(), y = {}, b = {}, _ = function(X, Z) { + p.push(X), g.add(Z); }, m, x, S = function() { m = p.pop(), x = m.id(), g.delete(x); }, O = function(X) { @@ -19127,15 +19139,15 @@ var rK = tK(), K1 = /* @__PURE__ */ W1(rK), nK = fu({ steps: E }; } -}, uK = fu({ +}, lK = fu({ weight: function(e) { return 1; }, directed: !1 -}), lK = { +}), cK = { // Implemented from pseudocode from wikipedia floydWarshall: function(e) { - for (var t = this.cy(), n = uK(e), i = n.weight, a = n.directed, o = i, s = this.byGroup(), u = s.nodes, l = s.edges, c = u.length, f = c * c, d = function(ue) { + for (var t = this.cy(), n = lK(e), i = n.weight, a = n.directed, o = i, s = this.byGroup(), u = s.nodes, l = s.edges, c = u.length, f = c * c, d = function(ue) { return u.indexOf(ue); }, h = function(ue) { return u[ue]; @@ -19183,32 +19195,32 @@ var rK = tK(), K1 = /* @__PURE__ */ W1(rK), nK = fu({ return X; } // floydWarshall -}, cK = fu({ +}, fK = fu({ weight: function(e) { return 1; }, directed: !1, root: null -}), fK = { +}), dK = { // Implemented from pseudocode from wikipedia bellmanFord: function(e) { - var t = this, n = cK(e), i = n.weight, a = n.directed, o = n.root, s = i, u = this, l = this.cy(), c = this.byGroup(), f = c.edges, d = c.nodes, h = d.length, p = new sv(), g = !1, y = []; - o = l.collection(o)[0], f.unmergeBy(function(Ce) { - return Ce.isLoop(); + var t = this, n = fK(e), i = n.weight, a = n.directed, o = n.root, s = i, u = this, l = this.cy(), c = this.byGroup(), f = c.edges, d = c.nodes, h = d.length, p = new sv(), g = !1, y = []; + o = l.collection(o)[0], f.unmergeBy(function(Te) { + return Te.isLoop(); }); for (var b = f.length, _ = function(Y) { - var Z = p.get(Y.id()); - return Z || (Z = {}, p.set(Y.id(), Z)), Z; + var Q = p.get(Y.id()); + return Q || (Q = {}, p.set(Y.id(), Q)), Q; }, m = function(Y) { return (Ar(Y) ? l.$(Y) : Y)[0]; }, x = function(Y) { return _(m(Y)).dist; }, S = function(Y) { - for (var Z = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : o, ie = m(Y), we = [], Ee = ie; ; ) { + for (var Q = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : o, ie = m(Y), we = [], Ee = ie; ; ) { if (Ee == null) return t.spawn(); - var De = _(Ee), Ie = De.edge, Ye = De.pred; - if (we.unshift(Ee[0]), Ee.same(Z) && we.length > 0) + var Me = _(Ee), Ie = Me.edge, Ye = Me.pred; + if (we.unshift(Ee[0]), Ee.same(Q) && we.length > 0) break; Ie != null && we.unshift(Ie), Ee = Ye; } @@ -19217,8 +19229,8 @@ var rK = tK(), K1 = /* @__PURE__ */ W1(rK), nK = fu({ var E = d[O], T = _(E); E.same(o) ? T.dist = 0 : T.dist = 1 / 0, T.pred = null, T.edge = null; } - for (var P = !1, I = function(Y, Z, ie, we, Ee, De) { - var Ie = we.dist + De; + for (var P = !1, I = function(Y, Q, ie, we, Ee, Me) { + var Ie = we.dist + Me; Ie < Ee.dist && !ie.same(we.edge) && (Ee.dist = Ie, Ee.pred = Y, Ee.edge = ie, P = !0); }, k = 1; k < h; k++) { P = !1; @@ -19231,22 +19243,22 @@ var rK = tK(), K1 = /* @__PURE__ */ W1(rK), nK = fu({ } if (P) for (var $ = [], J = 0; J < b; J++) { - var X = f[J], Q = X.source(), ue = X.target(), re = s(X), ne = _(Q).dist, le = _(ue).dist; + var X = f[J], Z = X.source(), ue = X.target(), re = s(X), ne = _(Z).dist, le = _(ue).dist; if (ne + re < le || !a && le + re < ne) if (g || (Ai("Graph contains a negative weight cycle for Bellman-Ford"), g = !0), e.findNegativeWeightCycles !== !1) { var ce = []; - ne + re < le && ce.push(Q), !a && le + re < ne && ce.push(ue); + ne + re < le && ce.push(Z), !a && le + re < ne && ce.push(ue); for (var pe = ce.length, fe = 0; fe < pe; fe++) { var se = ce[fe], de = [se]; de.push(_(se).edge); for (var ge = _(se).pred; de.indexOf(ge) === -1; ) de.push(ge), de.push(_(ge).edge), ge = _(ge).pred; de = de.slice(de.indexOf(ge)); - for (var Oe = de[0].id(), ke = 0, Me = 2; Me < de.length; Me += 2) - de[Me].id() < Oe && (Oe = de[Me].id(), ke = Me); + for (var Oe = de[0].id(), ke = 0, De = 2; De < de.length; De += 2) + de[De].id() < Oe && (Oe = de[De].id(), ke = De); de = de.slice(ke).concat(de.slice(0, ke)), de.push(de[0]); - var Ne = de.map(function(Ce) { - return Ce.id(); + var Ne = de.map(function(Te) { + return Te.id(); }).join(","); $.indexOf(Ne) === -1 && (y.push(u.spawn(de)), $.push(Ne)); } @@ -19261,7 +19273,7 @@ var rK = tK(), K1 = /* @__PURE__ */ W1(rK), nK = fu({ }; } // bellmanFord -}, dK = Math.sqrt(2), hK = function(e, t, n) { +}, hK = Math.sqrt(2), vK = function(e, t, n) { n.length === 0 && Ia("Karger-Stein must be run on a connected (sub)graph"); for (var i = n[e], a = i[1], o = i[2], s = t[a], u = t[o], l = n, c = l.length - 1; c >= 0; c--) { var f = l[c], d = f[1], h = f[2]; @@ -19274,13 +19286,13 @@ var rK = tK(), K1 = /* @__PURE__ */ W1(rK), nK = fu({ for (var y = 0; y < t.length; y++) t[y] === u && (t[y] = s); return l; -}, PS = function(e, t, n, i) { +}, RS = function(e, t, n, i) { for (; n > i; ) { var a = Math.floor(Math.random() * t.length); - t = hK(a, e, t), n--; + t = vK(a, e, t), n--; } return t; -}, vK = { +}, pK = { // Computes the minimum cut of an undirected graph // Returns the correct answer with high probability kargerStein: function() { @@ -19288,7 +19300,7 @@ var rK = tK(), K1 = /* @__PURE__ */ W1(rK), nK = fu({ i.unmergeBy(function(W) { return W.isLoop(); }); - var a = n.length, o = i.length, s = Math.ceil(Math.pow(Math.log(a) / Math.LN2, 2)), u = Math.floor(a / dK); + var a = n.length, o = i.length, s = Math.ceil(Math.pow(Math.log(a) / Math.LN2, 2)), u = Math.floor(a / hK); if (a < 2) { Ia("At least 2 nodes are required for Karger-Stein algorithm"); return; @@ -19303,9 +19315,9 @@ var rK = tK(), K1 = /* @__PURE__ */ W1(rK), nK = fu({ }, _ = 0; _ <= s; _++) { for (var m = 0; m < a; m++) g[m] = m; - var x = PS(g, l.slice(), a, u), S = x.slice(); + var x = RS(g, l.slice(), a, u), S = x.slice(); b(g, y); - var O = PS(g, x, u, 2), E = PS(y, S, u, 2); + var O = RS(g, x, u, 2), E = RS(y, S, u, 2); O.length <= E.length && O.length < d ? (d = O.length, h = O, b(g, p)) : E.length <= O.length && E.length < d && (d = E.length, h = E, b(y, p)); } for (var T = this.spawn(h.map(function(W) { @@ -19317,8 +19329,8 @@ var rK = tK(), K1 = /* @__PURE__ */ W1(rK), nK = fu({ var z = function($) { var J = e.spawn(); return $.forEach(function(X) { - J.merge(X), X.connectedEdges().forEach(function(Q) { - e.contains(Q) && !T.contains(Q) && J.merge(Q); + J.merge(X), X.connectedEdges().forEach(function(Z) { + e.contains(Z) && !T.contains(Z) && J.merge(Z); }); }), J; }, H = [z(P), z(I)], q = { @@ -19331,12 +19343,12 @@ var rK = tK(), K1 = /* @__PURE__ */ W1(rK), nK = fu({ }; return q; } -}, MS, pK = function(e) { +}, PS, gK = function(e) { return { x: e.x, y: e.y }; -}, M2 = function(e, t, n) { +}, P2 = function(e, t, n) { return { x: e.x * t + n.x, y: e.y * t + n.y @@ -19351,25 +19363,25 @@ var rK = tK(), K1 = /* @__PURE__ */ W1(rK), nK = fu({ x: e[0], y: e[1] }; -}, gK = function(e) { +}, yK = function(e) { for (var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : e.length, i = 1 / 0, a = t; a < n; a++) { var o = e[a]; isFinite(o) && (i = Math.min(o, i)); } return i; -}, yK = function(e) { +}, mK = function(e) { for (var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : e.length, i = -1 / 0, a = t; a < n; a++) { var o = e[a]; isFinite(o) && (i = Math.max(o, i)); } return i; -}, mK = function(e) { +}, bK = function(e) { for (var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : e.length, i = 0, a = 0, o = t; o < n; o++) { var s = e[o]; isFinite(s) && (i += s, a++); } return i / a; -}, bK = function(e) { +}, _K = function(e) { var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : e.length, i = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : !0, a = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !0, o = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : !0; i ? e = e.slice(t, n) : (n < e.length && e.splice(n, e.length - n), t > 0 && e.splice(0, t)); for (var s = 0, u = e.length - 1; u >= 0; u--) { @@ -19381,7 +19393,7 @@ var rK = tK(), K1 = /* @__PURE__ */ W1(rK), nK = fu({ }); var c = e.length, f = Math.floor(c / 2); return c % 2 !== 0 ? e[f + 1 + s] : (e[f - 1 + s] + e[f + s]) / 2; -}, _K = function(e) { +}, wK = function(e) { return Math.PI * e / 180; }, dw = function(e, t) { return Math.atan2(t, e) - Math.PI / 2; @@ -19394,7 +19406,7 @@ var rK = tK(), K1 = /* @__PURE__ */ W1(rK), nK = fu({ }, Cg = function(e, t) { var n = t.x - e.x, i = t.y - e.y; return n * n + i * i; -}, wK = function(e) { +}, xK = function(e) { for (var t = e.length, n = 0, i = 0; i < t; i++) n += e[i]; for (var a = 0; a < t; a++) @@ -19407,7 +19419,7 @@ var rK = tK(), K1 = /* @__PURE__ */ W1(rK), nK = fu({ x: ks(e.x, t.x, n.x, i), y: ks(e.y, t.y, n.y, i) }; -}, xK = function(e, t, n, i) { +}, EK = function(e, t, n, i) { var a = { x: t.x - e.x, y: t.y - e.y @@ -19451,7 +19463,7 @@ var rK = tK(), K1 = /* @__PURE__ */ W1(rK), nK = fu({ h: e.h }; } -}, EK = function(e) { +}, SK = function(e) { return { x1: e.x1, x2: e.x2, @@ -19460,9 +19472,9 @@ var rK = tK(), K1 = /* @__PURE__ */ W1(rK), nK = fu({ y2: e.y2, h: e.h }; -}, SK = function(e) { +}, OK = function(e) { e.x1 = 1 / 0, e.y1 = 1 / 0, e.x2 = -1 / 0, e.y2 = -1 / 0, e.w = 0, e.h = 0; -}, OK = function(e, t) { +}, TK = function(e, t) { e.x1 = Math.min(e.x1, t.x1), e.x2 = Math.max(e.x2, t.x2), e.w = e.x2 - e.x1, e.y1 = Math.min(e.y1, t.y1), e.y2 = Math.max(e.y2, t.y2), e.h = e.y2 - e.y1; }, lF = function(e, t, n) { e.x1 = Math.min(e.x1, t), e.x2 = Math.max(e.x2, t), e.w = e.x2 - e.x1, e.y1 = Math.min(e.y1, n), e.y2 = Math.max(e.y2, n), e.h = e.y2 - e.y1; @@ -19490,10 +19502,10 @@ var rK = tK(), K1 = /* @__PURE__ */ W1(rK), nK = fu({ return pp(e, t.x, t.y); }, cF = function(e, t) { return pp(e, t.x1, t.y1) && pp(e, t.x2, t.y2); -}, TK = (MS = Math.hypot) !== null && MS !== void 0 ? MS : function(r, e) { +}, CK = (PS = Math.hypot) !== null && PS !== void 0 ? PS : function(r, e) { return Math.sqrt(r * r + e * e); }; -function CK(r, e) { +function AK(r, e) { if (r.length < 3) throw new Error("Need at least 3 vertices"); var t = function(T, P) { @@ -19514,7 +19526,7 @@ function CK(r, e) { }, a = function(T, P) { return T.x * P.y - T.y * P.x; }, o = function(T) { - var P = TK(T.x, T.y); + var P = CK(T.x, T.y); return P === 0 ? { x: 0, y: 0 @@ -19560,8 +19572,8 @@ function CK(r, e) { } return _; } -function AK(r, e, t, n, i, a) { - var o = jK(r, e, t, n, i), s = CK(o, a), u = zl(); +function RK(r, e, t, n, i, a) { + var o = BK(r, e, t, n, i), s = AK(o, a), u = zl(); return s.forEach(function(l) { return lF(u, l.x, l.y); }), u; @@ -19607,15 +19619,15 @@ var fF = function(e, t, n, i, a, o, s) { return [z[0], z[1]]; } { - var Q = n - c + l, ue = i + f - l; - if (z = db(e, t, n, i, Q, ue, l + s), z.length > 0 && z[0] <= Q && z[1] >= ue) + var Z = n - c + l, ue = i + f - l; + if (z = db(e, t, n, i, Z, ue, l + s), z.length > 0 && z[0] <= Z && z[1] >= ue) return [z[0], z[1]]; } return []; -}, RK = function(e, t, n, i, a, o, s) { +}, PK = function(e, t, n, i, a, o, s) { var u = s, l = Math.min(n, a), c = Math.max(n, a), f = Math.min(i, o), d = Math.max(i, o); return l - u <= e && e <= c + u && f - u <= t && t <= d + u; -}, PK = function(e, t, n, i, a, o, s, u, l) { +}, MK = function(e, t, n, i, a, o, s, u, l) { var c = { x1: Math.min(n, s, a) - l, x2: Math.max(n, s, a) + l, @@ -19623,14 +19635,14 @@ var fF = function(e, t, n, i, a, o, s) { y2: Math.max(i, u, o) + l }; return !(e < c.x1 || e > c.x2 || t < c.y1 || t > c.y2); -}, MK = function(e, t, n, i) { +}, DK = function(e, t, n, i) { n -= i; var a = t * t - 4 * e * n; if (a < 0) return []; var o = Math.sqrt(a), s = 2 * e, u = (-t + o) / s, l = (-t - o) / s; return [u, l]; -}, DK = function(e, t, n, i, a) { +}, kK = function(e, t, n, i, a) { var o = 1e-5; e === 0 && (e = o), t /= e, n /= e, i /= e; var s, u, l, c, f, d, h, p; @@ -19643,16 +19655,16 @@ var fF = function(e, t, n, i, a, o, s) { return; } u = -u, c = u * u * u, c = Math.acos(l / Math.sqrt(c)), p = 2 * Math.sqrt(u), a[0] = -h + p * Math.cos(c / 3), a[2] = -h + p * Math.cos((c + 2 * Math.PI) / 3), a[4] = -h + p * Math.cos((c + 4 * Math.PI) / 3); -}, kK = function(e, t, n, i, a, o, s, u) { +}, IK = function(e, t, n, i, a, o, s, u) { var l = 1 * n * n - 4 * n * a + 2 * n * s + 4 * a * a - 4 * a * s + s * s + i * i - 4 * i * o + 2 * i * u + 4 * o * o - 4 * o * u + u * u, c = 9 * n * a - 3 * n * n - 3 * n * s - 6 * a * a + 3 * a * s + 9 * i * o - 3 * i * i - 3 * i * u - 6 * o * o + 3 * o * u, f = 3 * n * n - 6 * n * a + n * s - n * e + 2 * a * a + 2 * a * e - s * e + 3 * i * i - 6 * i * o + i * u - i * t + 2 * o * o + 2 * o * t - u * t, d = 1 * n * a - n * n + n * e - a * e + i * o - i * i + i * t - o * t, h = []; - DK(l, c, f, d, h); + kK(l, c, f, d, h); for (var p = 1e-7, g = [], y = 0; y < 6; y += 2) Math.abs(h[y + 1]) < p && h[y] >= 0 && h[y] <= 1 && g.push(h[y]); g.push(1), g.push(0); for (var b = -1, _, m, x, S = 0; S < g.length; S++) _ = Math.pow(1 - g[S], 2) * n + 2 * (1 - g[S]) * g[S] * a + g[S] * g[S] * s, m = Math.pow(1 - g[S], 2) * i + 2 * (1 - g[S]) * g[S] * o + g[S] * g[S] * u, x = Math.pow(_ - e, 2) + Math.pow(m - t, 2), b >= 0 ? x < b && (b = x) : b = x; return b; -}, IK = function(e, t, n, i, a, o) { +}, NK = function(e, t, n, i, a, o) { var s = [e - n, t - i], u = [a - n, o - i], l = u[0] * u[0] + u[1] * u[1], c = s[0] * s[0] + s[1] * s[1], f = s[0] * u[0] + s[1] * u[1], d = f * f / l; return f < 0 ? c : d > l ? (e - a) * (e - a) + (t - o) * (t - o) : c - d; }, Cc = function(e, t, n) { @@ -19674,7 +19686,7 @@ var fF = function(e, t, n, i, a, o, s) { } else g = c; return Cc(e, t, g); -}, NK = function(e, t, n, i, a, o, s, u) { +}, LK = function(e, t, n, i, a, o, s, u) { for (var l = new Array(n.length * 2), c = 0; c < u.length; c++) { var f = u[c]; l[c * 4 + 0] = f.startX, l[c * 4 + 1] = f.startY, l[c * 4 + 2] = f.stopX, l[c * 4 + 3] = f.stopY; @@ -19697,7 +19709,7 @@ var fF = function(e, t, n, i, a, o, s) { n[u * 4] = i + d * t, n[u * 4 + 1] = a + h * t, n[u * 4 + 2] = o + d * t, n[u * 4 + 3] = s + h * t; } return n; -}, LK = function(e, t, n, i, a, o) { +}, jK = function(e, t, n, i, a, o) { var s = n - e, u = i - t; s /= a, u /= o; var l = Math.sqrt(s * s + u * u), c = l - 1; @@ -19722,7 +19734,7 @@ var fF = function(e, t, n, i, a, o, s) { return [m, x, S, O]; } else return [m, x]; -}, DS = function(e, t, n) { +}, MS = function(e, t, n) { return t <= e && e <= n || n <= e && e <= t ? e : e <= t && t <= n || n <= t && t <= e ? t : n; }, gp = function(e, t, n, i, a, o, s, u, l) { var c = e - a, f = n - e, d = s - a, h = t - o, p = i - t, g = u - o, y = d * h - g * c, b = f * h - p * c, _ = g * f - d * p; @@ -19730,8 +19742,8 @@ var fF = function(e, t, n, i, a, o, s) { var m = y / _, x = b / _, S = 1e-3, O = 0 - S, E = 1 + S; return O <= m && m <= E && O <= x && x <= E ? [e + m * f, t + m * p] : l ? [e + m * f, t + m * p] : []; } else - return y === 0 || b === 0 ? DS(e, n, s) === s ? [s, u] : DS(e, n, a) === a ? [a, o] : DS(a, s, n) === n ? [n, i] : [] : []; -}, jK = function(e, t, n, i, a) { + return y === 0 || b === 0 ? MS(e, n, s) === s ? [s, u] : MS(e, n, a) === a ? [a, o] : MS(a, s, n) === n ? [n, i] : [] : []; +}, BK = function(e, t, n, i, a) { var o = [], s = i / 2, u = a / 2, l = t, c = n; o.push({ x: l + s * e[0], @@ -19760,7 +19772,7 @@ var fF = function(e, t, n, i, a, o, s) { for (var y, b, _, m, x = 0; x < h.length / 2; x++) y = h[x * 2], b = h[x * 2 + 1], x < h.length / 2 - 1 ? (_ = h[(x + 1) * 2], m = h[(x + 1) * 2 + 1]) : (_ = h[0], m = h[1]), c = gp(e, t, i, a, y, b, _, m), c.length !== 0 && l.push(c[0], c[1]); return l; -}, BK = function(e, t, n, i, a, o, s, u, l) { +}, FK = function(e, t, n, i, a, o, s, u, l) { var c = [], f, d = new Array(n.length * 2); l.forEach(function(_, m) { m === 0 ? (d[d.length - 2] = _.startX, d[d.length - 1] = _.startY) : (d[m * 4 - 2] = _.startX, d[m * 4 - 1] = _.startY), d[m * 4] = _.stopX, d[m * 4 + 1] = _.stopY, f = db(e, t, i, a, _.cx, _.cy, _.radius), f.length !== 0 && c.push(f[0], f[1]); @@ -19779,7 +19791,7 @@ var fF = function(e, t, n, i, a, o, s) { var i = [e[0] - t[0], e[1] - t[1]], a = Math.sqrt(i[0] * i[0] + i[1] * i[1]), o = (a - n) / a; return o < 0 && (o = 1e-5), [t[0] + o * i[0], t[1] + o * i[1]]; }, Bl = function(e, t) { - var n = lM(e, t); + var n = uM(e, t); return n = dF(n), n; }, dF = function(e) { for (var t, n, i = e.length / 2, a = 1 / 0, o = 1 / 0, s = -1 / 0, u = -1 / 0, l = 0; l < i; l++) @@ -19790,7 +19802,7 @@ var fF = function(e, t, n, i, a, o, s) { for (var h = 0; h < i; h++) n = e[2 * h + 1] = e[2 * h + 1] + (-1 - o); return e; -}, lM = function(e, t) { +}, uM = function(e, t) { var n = 1 / e * 2 * Math.PI, i = e % 2 === 0 ? Math.PI / 2 + n / 2 : Math.PI / 2; i += t; for (var a = new Array(e * 2), o, s = 0; s < e; s++) @@ -19802,16 +19814,16 @@ var fF = function(e, t, n, i, a, o, s) { return Math.min(e / 10, t / 10, 8); }, K5 = function() { return 8; -}, FK = function(e, t, n) { +}, UK = function(e, t, n) { return [e - 2 * t + n, 2 * (t - e), e]; -}, cM = function(e, t) { +}, lM = function(e, t) { return { heightOffset: Math.min(15, 0.05 * t), widthOffset: Math.min(100, 0.25 * e), ctrlPtOffsetPct: 0.05 }; }; -function kS(r, e) { +function DS(r, e) { function t(f) { for (var d = [], h = 0; h < f.length; h++) { var p = f[h], g = f[(h + 1) % f.length], y = { @@ -19862,16 +19874,16 @@ function kS(r, e) { } return !0; } -var UK = fu({ +var zK = fu({ dampingFactor: 0.8, precision: 1e-6, iterations: 200, weight: function(e) { return 1; } -}), zK = { +}), qK = { pageRank: function(e) { - for (var t = UK(e), n = t.dampingFactor, i = t.precision, a = t.iterations, o = t.weight, s = this._private.cy, u = this.byGroup(), l = u.nodes, c = u.edges, f = l.length, d = f * f, h = c.length, p = new Array(d), g = new Array(f), y = (1 - n) / f, b = 0; b < f; b++) { + for (var t = zK(e), n = t.dampingFactor, i = t.precision, a = t.iterations, o = t.weight, s = this._private.cy, u = this.byGroup(), l = u.nodes, c = u.edges, f = l.length, d = f * f, h = c.length, p = new Array(d), g = new Array(f), y = (1 - n) / f, b = 0; b < f; b++) { for (var _ = 0; _ < f; _++) { var m = b * f + _; p[m] = 0; @@ -19898,7 +19910,7 @@ var UK = fu({ } for (var W = new Array(f), $ = new Array(f), J, X = 0; X < f; X++) W[X] = 1; - for (var Q = 0; Q < a; Q++) { + for (var Z = 0; Z < a; Z++) { for (var ue = 0; ue < f; ue++) $[ue] = 0; for (var re = 0; re < f; re++) @@ -19906,7 +19918,7 @@ var UK = fu({ var le = re * f + ne; $[re] += p[le] * W[ne]; } - wK($), J = W, W = $, $ = J; + xK($), J = W, W = $, $ = J; for (var ce = 0, pe = 0; pe < f; pe++) { var fe = J[pe] - W[pe]; ce += fe * fe; @@ -20041,13 +20053,13 @@ var RI = fu({ }; Em.cc = Em.closenessCentrality; Em.ccn = Em.closenessCentralityNormalised = Em.closenessCentralityNormalized; -var qK = fu({ +var GK = fu({ weight: null, directed: !1 -}), fM = { +}), cM = { // Implemented from the algorithm in the paper "On Variants of Shortest-Path Betweenness Centrality and their Generic Computation" by Ulrik Brandes betweennessCentrality: function(e) { - for (var t = qK(e), n = t.directed, i = t.weight, a = i != null, o = this.cy(), s = this.nodes(), u = {}, l = {}, c = 0, f = { + for (var t = GK(e), n = t.directed, i = t.weight, a = i != null, o = this.cy(), s = this.nodes(), u = {}, l = {}, c = 0, f = { set: function(m, x) { l[m] = x, x > c && (c = x); }, @@ -20083,8 +20095,8 @@ var qK = fu({ for (var $ = {}, J = 0; J < s.length; J++) $[s[J].id()] = 0; for (; x.length > 0; ) { - for (var X = x.pop(), Q = 0; Q < S[X].length; Q++) { - var ue = S[X][Q]; + for (var X = x.pop(), Z = 0; Z < S[X].length; Z++) { + var ue = S[X][Z]; $[ue] = $[ue] + O[ue] / O[X] * (1 + $[X]); } X != s[y].id() && f.set(X, f.get(X) + $[X]); @@ -20107,8 +20119,8 @@ var qK = fu({ } // betweennessCentrality }; -fM.bc = fM.betweennessCentrality; -var GK = fu({ +cM.bc = cM.betweennessCentrality; +var VK = fu({ expandFactor: 2, // affects time of computation and cluster granularity to some extent: M * M inflateFactor: 2, @@ -20123,13 +20135,13 @@ var GK = fu({ return 1; } ] -}), VK = function(e) { - return GK(e); -}, HK = function(e, t) { +}), HK = function(e) { + return VK(e); +}, WK = function(e, t) { for (var n = 0, i = 0; i < t.length; i++) n += t[i](e); return n; -}, WK = function(e, t, n) { +}, YK = function(e, t, n) { for (var i = 0; i < t; i++) e[i * t + i] = n; }, vF = function(e, t) { @@ -20140,7 +20152,7 @@ var GK = fu({ for (var o = 0; o < t; o++) e[o * t + i] = e[o * t + i] / n; } -}, YK = function(e, t, n) { +}, XK = function(e, t, n) { for (var i = new Array(n * n), a = 0; a < n; a++) { for (var o = 0; o < n; o++) i[a * n + o] = 0; @@ -20149,56 +20161,56 @@ var GK = fu({ i[a * n + u] += e[a * n + s] * t[s * n + u]; } return i; -}, XK = function(e, t, n) { +}, $K = function(e, t, n) { for (var i = e.slice(0), a = 1; a < n; a++) - e = YK(e, i, t); + e = XK(e, i, t); return e; -}, $K = function(e, t, n) { +}, KK = function(e, t, n) { for (var i = new Array(t * t), a = 0; a < t * t; a++) i[a] = Math.pow(e[a], n); return vF(i, t), i; -}, KK = function(e, t, n, i) { +}, ZK = function(e, t, n, i) { for (var a = 0; a < n; a++) { var o = Math.round(e[a] * Math.pow(10, i)) / Math.pow(10, i), s = Math.round(t[a] * Math.pow(10, i)) / Math.pow(10, i); if (o !== s) return !1; } return !0; -}, ZK = function(e, t, n, i) { +}, QK = function(e, t, n, i) { for (var a = [], o = 0; o < t; o++) { for (var s = [], u = 0; u < t; u++) Math.round(e[o * t + u] * 1e3) / 1e3 > 0 && s.push(n[u]); s.length !== 0 && a.push(i.collection(s)); } return a; -}, QK = function(e, t) { +}, JK = function(e, t) { for (var n = 0; n < e.length; n++) if (!t[n] || e[n].id() !== t[n].id()) return !1; return !0; -}, JK = function(e) { +}, eZ = function(e) { for (var t = 0; t < e.length; t++) for (var n = 0; n < e.length; n++) - t != n && QK(e[t], e[n]) && e.splice(n, 1); + t != n && JK(e[t], e[n]) && e.splice(n, 1); return e; }, PI = function(e) { - for (var t = this.nodes(), n = this.edges(), i = this.cy(), a = VK(e), o = {}, s = 0; s < t.length; s++) + for (var t = this.nodes(), n = this.edges(), i = this.cy(), a = HK(e), o = {}, s = 0; s < t.length; s++) o[t[s].id()] = s; for (var u = t.length, l = u * u, c = new Array(l), f, d = 0; d < l; d++) c[d] = 0; for (var h = 0; h < n.length; h++) { - var p = n[h], g = o[p.source().id()], y = o[p.target().id()], b = HK(p, a.attributes); + var p = n[h], g = o[p.source().id()], y = o[p.target().id()], b = WK(p, a.attributes); c[g * u + y] += b, c[y * u + g] += b; } - WK(c, u, a.multFactor), vF(c, u); + YK(c, u, a.multFactor), vF(c, u); for (var _ = !0, m = 0; _ && m < a.maxIterations; ) - _ = !1, f = XK(c, u, a.expandFactor), c = $K(f, u, a.inflateFactor), KK(c, f, l, 4) || (_ = !0), m++; - var x = ZK(c, u, t, i); - return x = JK(x), x; -}, eZ = { + _ = !1, f = $K(c, u, a.expandFactor), c = KK(f, u, a.inflateFactor), ZK(c, f, l, 4) || (_ = !0), m++; + var x = QK(c, u, t, i); + return x = eZ(x), x; +}, tZ = { markovClustering: PI, mcl: PI -}, tZ = function(e) { +}, rZ = function(e) { return e; }, pF = function(e, t) { return Math.abs(t - e); @@ -20206,17 +20218,17 @@ var GK = fu({ return e + pF(t, n); }, DI = function(e, t, n) { return e + Math.pow(n - t, 2); -}, rZ = function(e) { +}, nZ = function(e) { return Math.sqrt(e); -}, nZ = function(e, t, n) { +}, iZ = function(e, t, n) { return Math.max(e, pF(t, n)); }, q0 = function(e, t, n, i, a) { - for (var o = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : tZ, s = i, u, l, c = 0; c < e; c++) + for (var o = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : rZ, s = i, u, l, c = 0; c < e; c++) u = t(c), l = n(c), s = a(s, u, l); return o(s); }, Bm = { euclidean: function(e, t, n) { - return e >= 2 ? q0(e, t, n, 0, DI, rZ) : q0(e, t, n, 0, MI); + return e >= 2 ? q0(e, t, n, 0, DI, nZ) : q0(e, t, n, 0, MI); }, squaredEuclidean: function(e, t, n) { return q0(e, t, n, 0, DI); @@ -20225,16 +20237,16 @@ var GK = fu({ return q0(e, t, n, 0, MI); }, max: function(e, t, n) { - return q0(e, t, n, -1 / 0, nZ); + return q0(e, t, n, -1 / 0, iZ); } }; Bm["squared-euclidean"] = Bm.squaredEuclidean; Bm.squaredeuclidean = Bm.squaredEuclidean; -function D2(r, e, t, n, i, a) { +function M2(r, e, t, n, i, a) { var o; return Ya(r) ? o = r : o = Bm[r] || Bm.euclidean, e === 0 && Ya(r) ? o(i, a) : o(e, t, n, i, a); } -var iZ = fu({ +var aZ = fu({ k: 2, m: 2, sensitivityThreshold: 1e-4, @@ -20244,7 +20256,7 @@ var iZ = fu({ testMode: !1, testCentroids: null }), Z5 = function(e) { - return iZ(e); + return aZ(e); }, Nx = function(e, t, n, i, a) { var o = a !== "kMedoids", s = o ? function(f) { return n[f]; @@ -20253,8 +20265,8 @@ var iZ = fu({ }, u = function(d) { return i[d](t); }, l = n, c = t; - return D2(e, i.length, s, u, l, c); -}, IS = function(e, t, n) { + return M2(e, i.length, s, u, l, c); +}, kS = function(e, t, n) { for (var i = n.length, a = new Array(i), o = new Array(i), s = new Array(t), u = null, l = 0; l < i; l++) a[l] = e.min(n[l]).value, o[l] = e.max(n[l]).value; for (var c = 0; c < t; c++) { @@ -20274,9 +20286,9 @@ var iZ = fu({ for (var i = [], a = null, o = 0; o < t.length; o++) a = t[o], n[a.id()] === e && i.push(a); return i; -}, aZ = function(e, t, n) { - return Math.abs(t - e) <= n; }, oZ = function(e, t, n) { + return Math.abs(t - e) <= n; +}, sZ = function(e, t, n) { for (var i = 0; i < e.length; i++) for (var a = 0; a < e[i].length; a++) { var o = Math.abs(e[i][a] - t[i][a]); @@ -20284,7 +20296,7 @@ var iZ = fu({ return !1; } return !0; -}, sZ = function(e, t, n) { +}, uZ = function(e, t, n) { for (var i = 0; i < n; i++) if (e === t[i]) return !0; return !1; @@ -20292,7 +20304,7 @@ var iZ = fu({ var n = new Array(t); if (e.length < 50) for (var i = 0; i < t; i++) { - for (var a = e[Math.floor(Math.random() * e.length)]; sZ(a, n, i); ) + for (var a = e[Math.floor(Math.random() * e.length)]; uZ(a, n, i); ) a = e[Math.floor(Math.random() * e.length)]; n[i] = a; } @@ -20304,9 +20316,9 @@ var iZ = fu({ for (var i = 0, a = 0; a < t.length; a++) i += Nx("manhattan", t[a], e, n, "kMedoids"); return i; -}, uZ = function(e) { +}, lZ = function(e) { var t = this.cy(), n = this.nodes(), i = null, a = Z5(e), o = new Array(a.k), s = {}, u; - a.testMode ? typeof a.testCentroids == "number" ? (a.testCentroids, u = IS(n, a.k, a.attributes)) : ls(a.testCentroids) === "object" ? u = a.testCentroids : u = IS(n, a.k, a.attributes) : u = IS(n, a.k, a.attributes); + a.testMode ? typeof a.testCentroids == "number" ? (a.testCentroids, u = kS(n, a.k, a.attributes)) : ls(a.testCentroids) === "object" ? u = a.testCentroids : u = kS(n, a.k, a.attributes) : u = kS(n, a.k, a.attributes); for (var l = !0, c = 0; l && c < a.maxIterations; ) { for (var f = 0; f < n.length; f++) i = n[f], s[i.id()] = gF(i, u, a.distance, a.attributes, "kMeans"); @@ -20318,7 +20330,7 @@ var iZ = fu({ b[_] = 0; for (var m = 0; m < h.length; m++) i = h[m], b[_] += a.attributes[_](i); - y[_] = b[_] / h.length, aZ(y[_], g[_], a.sensitivityThreshold) || (l = !0); + y[_] = b[_] / h.length, oZ(y[_], g[_], a.sensitivityThreshold) || (l = !0); } u[d] = y, o[d] = t.collection(h); } @@ -20326,7 +20338,7 @@ var iZ = fu({ c++; } return o; -}, lZ = function(e) { +}, cZ = function(e) { var t = this.cy(), n = this.nodes(), i = null, a = Z5(e), o = new Array(a.k), s, u = {}, l, c = new Array(a.k); a.testMode ? typeof a.testCentroids == "number" || (ls(a.testCentroids) === "object" ? s = a.testCentroids : s = kI(n, a.k)) : s = kI(n, a.k); for (var f = !0, d = 0; f && d < a.maxIterations; ) { @@ -20345,7 +20357,7 @@ var iZ = fu({ d++; } return o; -}, cZ = function(e, t, n, i, a) { +}, fZ = function(e, t, n, i, a) { for (var o, s, u = 0; u < t.length; u++) for (var l = 0; l < e.length; l++) i[u][l] = Math.pow(n[u][l], a.m); @@ -20356,7 +20368,7 @@ var iZ = fu({ o += i[d][c] * a.attributes[f](t[d]), s += i[d][c]; e[c][f] = o / s; } -}, fZ = function(e, t, n, i, a) { +}, dZ = function(e, t, n, i, a) { for (var o = 0; o < e.length; o++) t[o] = e[o].slice(); for (var s, u, l, c = 2 / (a.m - 1), f = 0; f < n.length; f++) @@ -20366,7 +20378,7 @@ var iZ = fu({ u = Nx(a.distance, i[d], n[f], a.attributes, "cmeans"), l = Nx(a.distance, i[d], n[h], a.attributes, "cmeans"), s += Math.pow(u / l, c); e[d][f] = 1 / s; } -}, dZ = function(e, t, n, i) { +}, hZ = function(e, t, n, i) { for (var a = new Array(n.k), o = 0; o < a.length; o++) a[o] = []; for (var s, u, l = 0; l < t.length; l++) { @@ -20399,17 +20411,17 @@ var iZ = fu({ for (var b = 0; b < n.length; b++) l[b] = new Array(i.k); for (var _ = !0, m = 0; _ && m < i.maxIterations; ) - _ = !1, cZ(o, n, s, l, i), fZ(s, u, o, n, i), oZ(s, u, i.sensitivityThreshold) || (_ = !0), m++; - return a = dZ(n, s, i, t), { + _ = !1, fZ(o, n, s, l, i), dZ(s, u, o, n, i), sZ(s, u, i.sensitivityThreshold) || (_ = !0), m++; + return a = hZ(n, s, i, t), { clusters: a, degreeOfMembership: s }; -}, hZ = { - kMeans: uZ, - kMedoids: lZ, +}, vZ = { + kMeans: lZ, + kMedoids: cZ, fuzzyCMeans: NI, fcm: NI -}, vZ = fu({ +}, pZ = fu({ distance: "euclidean", // distance metric to compare nodes linkage: "min", @@ -20425,15 +20437,15 @@ var iZ = fu({ // depth at which dendrogram branches are merged into the returned clusters attributes: [] // array of attr functions -}), pZ = { +}), gZ = { single: "min", complete: "max" -}, gZ = function(e) { - var t = vZ(e), n = pZ[t.linkage]; +}, yZ = function(e) { + var t = pZ(e), n = gZ[t.linkage]; return n != null && (t.linkage = n), t; }, LI = function(e, t, n, i, a) { for (var o = 0, s = 1 / 0, u, l = a.attributes, c = function(P, I) { - return D2(a.distance, l.length, function(k) { + return M2(a.distance, l.length, function(k) { return l[k](P); }, function(k) { return l[k](I); @@ -20471,10 +20483,10 @@ var iZ = fu({ return p.key = g.key = p.index = g.index = null, !0; }, pm = function(e, t, n) { e && (e.value ? t.push(e.value) : (e.left && pm(e.left, t), e.right && pm(e.right, t))); -}, dM = function(e, t) { +}, fM = function(e, t) { if (!e) return ""; if (e.left && e.right) { - var n = dM(e.left, t), i = dM(e.right, t), a = t.add({ + var n = fM(e.left, t), i = fM(e.right, t), a = t.add({ group: "nodes", data: { id: n + "," + i @@ -20495,13 +20507,13 @@ var iZ = fu({ }), a.id(); } else if (e.value) return e.value.id(); -}, hM = function(e, t, n) { +}, dM = function(e, t, n) { if (!e) return []; var i = [], a = [], o = []; - return t === 0 ? (e.left && pm(e.left, i), e.right && pm(e.right, a), o = i.concat(a), [n.collection(o)]) : t === 1 ? e.value ? [n.collection(e.value)] : (e.left && pm(e.left, i), e.right && pm(e.right, a), [n.collection(i), n.collection(a)]) : e.value ? [n.collection(e.value)] : (e.left && (i = hM(e.left, t - 1, n)), e.right && (a = hM(e.right, t - 1, n)), i.concat(a)); + return t === 0 ? (e.left && pm(e.left, i), e.right && pm(e.right, a), o = i.concat(a), [n.collection(o)]) : t === 1 ? e.value ? [n.collection(e.value)] : (e.left && pm(e.left, i), e.right && pm(e.right, a), [n.collection(i), n.collection(a)]) : e.value ? [n.collection(e.value)] : (e.left && (i = dM(e.left, t - 1, n)), e.right && (a = dM(e.right, t - 1, n)), i.concat(a)); }, jI = function(e) { - for (var t = this.cy(), n = this.nodes(), i = gZ(e), a = i.attributes, o = function(m, x) { - return D2(i.distance, a.length, function(S) { + for (var t = this.cy(), n = this.nodes(), i = yZ(e), a = i.attributes, o = function(m, x) { + return M2(i.distance, a.length, function(S) { return a[S](m); }, function(S) { return a[S](x); @@ -20522,13 +20534,13 @@ var iZ = fu({ for (var y = LI(s, c, u, l, i); y; ) y = LI(s, c, u, l, i); var b; - return i.mode === "dendrogram" ? (b = hM(s[0], i.dendrogramDepth, t), i.addDendrogram && dM(s[0], t)) : (b = new Array(s.length), s.forEach(function(_, m) { + return i.mode === "dendrogram" ? (b = dM(s[0], i.dendrogramDepth, t), i.addDendrogram && fM(s[0], t)) : (b = new Array(s.length), s.forEach(function(_, m) { _.key = _.index = null, b[m] = t.collection(_.value); })), b; -}, yZ = { +}, mZ = { hierarchicalClustering: jI, hca: jI -}, mZ = fu({ +}, bZ = fu({ distance: "euclidean", // distance metric to compare attributes between two nodes preference: "median", @@ -20543,7 +20555,7 @@ var iZ = fu({ // functions to quantify the similarity between any two points // e.g. node => node.data('weight') ] -}), bZ = function(e) { +}), _Z = function(e) { var t = e.damping, n = e.preference; 0.5 <= t && t < 1 || Ia("Damping must range on [0.5, 1). Got: ".concat(t)); var i = ["median", "mean", "min", "max"]; @@ -20551,20 +20563,20 @@ var iZ = fu({ return a === n; }) || Ht(n) || Ia("Preference must be one of [".concat(i.map(function(a) { return "'".concat(a, "'"); - }).join(", "), "] or a number. Got: ").concat(n)), mZ(e); -}, _Z = function(e, t, n, i) { + }).join(", "), "] or a number. Got: ").concat(n)), bZ(e); +}, wZ = function(e, t, n, i) { var a = function(s, u) { return i[u](s); }; - return -D2(e, i.length, function(o) { + return -M2(e, i.length, function(o) { return a(t, o); }, function(o) { return a(n, o); }, t, n); -}, wZ = function(e, t) { +}, xZ = function(e, t) { var n = null; - return t === "median" ? n = bK(e) : t === "mean" ? n = mK(e) : t === "min" ? n = gK(e) : t === "max" ? n = yK(e) : n = t, n; -}, xZ = function(e, t, n) { + return t === "median" ? n = _K(e) : t === "mean" ? n = bK(e) : t === "min" ? n = yK(e) : t === "max" ? n = mK(e) : n = t, n; +}, EZ = function(e, t, n) { for (var i = [], a = 0; a < e; a++) t[a * e + a] + n[a * e + a] > 0 && i.push(a); return i; @@ -20579,7 +20591,7 @@ var iZ = fu({ for (var c = 0; c < n.length; c++) i[n[c]] = n[c]; return i; -}, EZ = function(e, t, n) { +}, SZ = function(e, t, n) { for (var i = BI(e, t, n), a = 0; a < n.length; a++) { for (var o = [], s = 0; s < i.length; s++) i[s] === n[a] && o.push(s); @@ -20592,7 +20604,7 @@ var iZ = fu({ } return i = BI(e, t, n), i; }, FI = function(e) { - for (var t = this.cy(), n = this.nodes(), i = bZ(e), a = {}, o = 0; o < n.length; o++) + for (var t = this.cy(), n = this.nodes(), i = _Z(e), a = {}, o = 0; o < n.length; o++) a[n[o].id()] = o; var s, u, l, c, f, d; s = n.length, u = s * s, l = new Array(u); @@ -20600,8 +20612,8 @@ var iZ = fu({ l[h] = -1 / 0; for (var p = 0; p < s; p++) for (var g = 0; g < s; g++) - p !== g && (l[p * s + g] = _Z(i.distance, n[p], n[g], i.attributes)); - c = wZ(l, i.preference); + p !== g && (l[p * s + g] = wZ(i.distance, n[p], n[g], i.attributes)); + c = xZ(l, i.preference); for (var y = 0; y < s; y++) l[y * s + y] = c; f = new Array(u); @@ -20631,9 +20643,9 @@ var iZ = fu({ d[J * s + q] = (1 - i.damping) * Math.min(0, W - x[J]) + i.damping * m[J]; d[q * s + q] = (1 - i.damping) * (W - x[q]) + i.damping * m[q]; } - for (var X = 0, Q = 0; Q < s; Q++) { - var ue = d[Q * s + Q] + f[Q * s + Q] > 0 ? 1 : 0; - E[P % i.minIterations * s + Q] = ue, X += ue; + for (var X = 0, Z = 0; Z < s; Z++) { + var ue = d[Z * s + Z] + f[Z * s + Z] > 0 ? 1 : 0; + E[P % i.minIterations * s + Z] = ue, X += ue; } if (X > 0 && (P >= i.minIterations - 1 || P == i.maxIterations - 1)) { for (var re = 0, ne = 0; ne < s; ne++) { @@ -20646,22 +20658,22 @@ var iZ = fu({ break; } } - for (var ce = xZ(s, f, d), pe = EZ(s, l, ce), fe = {}, se = 0; se < ce.length; se++) + for (var ce = EZ(s, f, d), pe = SZ(s, l, ce), fe = {}, se = 0; se < ce.length; se++) fe[ce[se]] = []; for (var de = 0; de < n.length; de++) { var ge = a[n[de].id()], Oe = pe[ge]; Oe != null && fe[Oe].push(n[de]); } - for (var ke = new Array(ce.length), Me = 0; Me < ce.length; Me++) - ke[Me] = t.collection(fe[ce[Me]]); + for (var ke = new Array(ce.length), De = 0; De < ce.length; De++) + ke[De] = t.collection(fe[ce[De]]); return ke; -}, SZ = { +}, OZ = { affinityPropagation: FI, ap: FI -}, OZ = fu({ +}, TZ = fu({ root: void 0, directed: !1 -}), TZ = { +}), CZ = { hierholzer: function(e) { if (!ai(e)) { var t = arguments; @@ -20670,7 +20682,7 @@ var iZ = fu({ directed: t[1] }; } - var n = OZ(e), i = n.root, a = n.directed, o = this, s = !1, u, l, c; + var n = TZ(e), i = n.root, a = n.directed, o = this, s = !1, u, l, c; i && (c = Ar(i) ? this.filter(i)[0].id() : i[0].id()); var f = {}, d = {}; a ? o.forEach(function(_) { @@ -20774,7 +20786,7 @@ var iZ = fu({ cut: e.spawn(c), components: a }; -}, CZ = { +}, AZ = { hopcroftTarjanBiconnected: vw, htbc: vw, htb: vw, @@ -20809,13 +20821,13 @@ var iZ = fu({ cut: o, components: i }; -}, AZ = { +}, RZ = { tarjanStronglyConnected: pw, tsc: pw, tscc: pw, tarjanStronglyConnectedComponents: pw }, mF = {}; -[m1, iK, aK, sK, lK, fK, vK, zK, xm, Em, fM, eZ, hZ, yZ, SZ, TZ, CZ, AZ].forEach(function(r) { +[m1, aK, oK, uK, cK, dK, pK, qK, xm, Em, cM, tZ, vZ, mZ, OZ, CZ, AZ, RZ].forEach(function(r) { kr(mF, r); }); /*! @@ -20937,7 +20949,7 @@ Pd.reject = function(r) { t(r); }); }; -var Km = typeof Promise < "u" ? Promise : Pd, vM = function(e, t, n) { +var Km = typeof Promise < "u" ? Promise : Pd, hM = function(e, t, n) { var i = z5(e), a = !i, o = this._private = kr({ duration: 1e3 }, t, n); @@ -20956,7 +20968,7 @@ var Km = typeof Promise < "u" ? Promise : Pd, vM = function(e, t, n) { }, o.startZoom = e.zoom(); } this.length = 1, this[0] = this; -}, Yg = vM.prototype; +}, Yg = hM.prototype; kr(Yg, { instanceString: function() { return "animation"; @@ -21043,7 +21055,7 @@ kr(Yg, { Yg.complete = Yg.completed; Yg.run = Yg.play; Yg.running = Yg.playing; -var RZ = { +var PZ = { animated: function() { return function() { var t = this, n = t.length !== void 0, i = n ? t : [t], a = this._private.cy || this; @@ -21099,7 +21111,7 @@ var RZ = { t = kr({}, t, n); var f = Object.keys(t).length === 0; if (f) - return new vM(o[0], t); + return new hM(o[0], t); switch (t.duration === void 0 && (t.duration = 400), t.duration) { case "slow": t.duration = 600; @@ -21132,7 +21144,7 @@ var RZ = { var S = s.getZoomedViewport(t.zoom); S != null ? (S.zoomed && (t.zoom = S.zoom), S.panned && (t.pan = S.pan)) : t.zoom = null; } - return new vM(o[0], t); + return new hM(o[0], t); }; }, // animate @@ -21168,29 +21180,29 @@ var RZ = { }; } // stop -}, NS, GI; -function k2() { - if (GI) return NS; +}, IS, GI; +function D2() { + if (GI) return IS; GI = 1; var r = Array.isArray; - return NS = r, NS; + return IS = r, IS; } -var LS, VI; -function PZ() { - if (VI) return LS; +var NS, VI; +function MZ() { + if (VI) return NS; VI = 1; - var r = k2(), e = X1(), t = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, n = /^\w*$/; + var r = D2(), e = X1(), t = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, n = /^\w*$/; function i(a, o) { if (r(a)) return !1; var s = typeof a; return s == "number" || s == "symbol" || s == "boolean" || a == null || e(a) ? !0 : n.test(a) || !t.test(a) || o != null && a in Object(o); } - return LS = i, LS; + return NS = i, NS; } -var jS, HI; -function MZ() { - if (HI) return jS; +var LS, HI; +function DZ() { + if (HI) return LS; HI = 1; var r = J7(), e = Y1(), t = "[object AsyncFunction]", n = "[object Function]", i = "[object GeneratorFunction]", a = "[object Proxy]"; function o(s) { @@ -21199,31 +21211,31 @@ function MZ() { var u = r(s); return u == n || u == i || u == t || u == a; } - return jS = o, jS; + return LS = o, LS; } -var BS, WI; -function DZ() { - if (WI) return BS; +var jS, WI; +function kZ() { + if (WI) return jS; WI = 1; - var r = R2(), e = r["__core-js_shared__"]; - return BS = e, BS; + var r = A2(), e = r["__core-js_shared__"]; + return jS = e, jS; } -var FS, YI; -function kZ() { - if (YI) return FS; +var BS, YI; +function IZ() { + if (YI) return BS; YI = 1; - var r = DZ(), e = (function() { + var r = kZ(), e = (function() { var n = /[^.]+$/.exec(r && r.keys && r.keys.IE_PROTO || ""); return n ? "Symbol(src)_1." + n : ""; })(); function t(n) { return !!e && e in n; } - return FS = t, FS; + return BS = t, BS; } -var US, XI; -function IZ() { - if (XI) return US; +var FS, XI; +function NZ() { + if (XI) return FS; XI = 1; var r = Function.prototype, e = r.toString; function t(n) { @@ -21239,13 +21251,13 @@ function IZ() { } return ""; } - return US = t, US; + return FS = t, FS; } -var zS, $I; -function NZ() { - if ($I) return zS; +var US, $I; +function LZ() { + if ($I) return US; $I = 1; - var r = MZ(), e = kZ(), t = Y1(), n = IZ(), i = /[\\^$.*+?()[\]{}|]/g, a = /^\[object .+?Constructor\]$/, o = Function.prototype, s = Object.prototype, u = o.toString, l = s.hasOwnProperty, c = RegExp( + var r = DZ(), e = IZ(), t = Y1(), n = NZ(), i = /[\\^$.*+?()[\]{}|]/g, a = /^\[object .+?Constructor\]$/, o = Function.prototype, s = Object.prototype, u = o.toString, l = s.hasOwnProperty, c = RegExp( "^" + u.call(l).replace(i, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$" ); function f(d) { @@ -21254,60 +21266,60 @@ function NZ() { var h = r(d) ? c : a; return h.test(n(d)); } - return zS = f, zS; + return US = f, US; } -var qS, KI; -function LZ() { - if (KI) return qS; +var zS, KI; +function jZ() { + if (KI) return zS; KI = 1; function r(e, t) { return e == null ? void 0 : e[t]; } - return qS = r, qS; + return zS = r, zS; } -var GS, ZI; +var qS, ZI; function Q5() { - if (ZI) return GS; + if (ZI) return qS; ZI = 1; - var r = NZ(), e = LZ(); + var r = LZ(), e = jZ(); function t(n, i) { var a = e(n, i); return r(a) ? a : void 0; } - return GS = t, GS; + return qS = t, qS; } -var VS, QI; -function I2() { - if (QI) return VS; +var GS, QI; +function k2() { + if (QI) return GS; QI = 1; var r = Q5(), e = r(Object, "create"); - return VS = e, VS; + return GS = e, GS; } -var HS, JI; -function jZ() { - if (JI) return HS; +var VS, JI; +function BZ() { + if (JI) return VS; JI = 1; - var r = I2(); + var r = k2(); function e() { this.__data__ = r ? r(null) : {}, this.size = 0; } - return HS = e, HS; + return VS = e, VS; } -var WS, eN; -function BZ() { - if (eN) return WS; +var HS, eN; +function FZ() { + if (eN) return HS; eN = 1; function r(e) { var t = this.has(e) && delete this.__data__[e]; return this.size -= t ? 1 : 0, t; } - return WS = r, WS; + return HS = r, HS; } -var YS, tN; -function FZ() { - if (tN) return YS; +var WS, tN; +function UZ() { + if (tN) return WS; tN = 1; - var r = I2(), e = "__lodash_hash_undefined__", t = Object.prototype, n = t.hasOwnProperty; + var r = k2(), e = "__lodash_hash_undefined__", t = Object.prototype, n = t.hasOwnProperty; function i(a) { var o = this.__data__; if (r) { @@ -21316,35 +21328,35 @@ function FZ() { } return n.call(o, a) ? o[a] : void 0; } - return YS = i, YS; + return WS = i, WS; } -var XS, rN; -function UZ() { - if (rN) return XS; +var YS, rN; +function zZ() { + if (rN) return YS; rN = 1; - var r = I2(), e = Object.prototype, t = e.hasOwnProperty; + var r = k2(), e = Object.prototype, t = e.hasOwnProperty; function n(i) { var a = this.__data__; return r ? a[i] !== void 0 : t.call(a, i); } - return XS = n, XS; + return YS = n, YS; } -var $S, nN; -function zZ() { - if (nN) return $S; +var XS, nN; +function qZ() { + if (nN) return XS; nN = 1; - var r = I2(), e = "__lodash_hash_undefined__"; + var r = k2(), e = "__lodash_hash_undefined__"; function t(n, i) { var a = this.__data__; return this.size += this.has(n) ? 0 : 1, a[n] = r && i === void 0 ? e : i, this; } - return $S = t, $S; + return XS = t, XS; } -var KS, iN; -function qZ() { - if (iN) return KS; +var $S, iN; +function GZ() { + if (iN) return $S; iN = 1; - var r = jZ(), e = BZ(), t = FZ(), n = UZ(), i = zZ(); + var r = BZ(), e = FZ(), t = UZ(), n = zZ(), i = qZ(); function a(o) { var s = -1, u = o == null ? 0 : o.length; for (this.clear(); ++s < u; ) { @@ -21352,29 +21364,29 @@ function qZ() { this.set(l[0], l[1]); } } - return a.prototype.clear = r, a.prototype.delete = e, a.prototype.get = t, a.prototype.has = n, a.prototype.set = i, KS = a, KS; + return a.prototype.clear = r, a.prototype.delete = e, a.prototype.get = t, a.prototype.has = n, a.prototype.set = i, $S = a, $S; } -var ZS, aN; -function GZ() { - if (aN) return ZS; +var KS, aN; +function VZ() { + if (aN) return KS; aN = 1; function r() { this.__data__ = [], this.size = 0; } - return ZS = r, ZS; + return KS = r, KS; } -var QS, oN; +var ZS, oN; function SF() { - if (oN) return QS; + if (oN) return ZS; oN = 1; function r(e, t) { return e === t || e !== e && t !== t; } - return QS = r, QS; + return ZS = r, ZS; } -var JS, sN; -function N2() { - if (sN) return JS; +var QS, sN; +function I2() { + if (sN) return QS; sN = 1; var r = SF(); function e(t, n) { @@ -21383,13 +21395,13 @@ function N2() { return i; return -1; } - return JS = e, JS; + return QS = e, QS; } -var eO, uN; -function VZ() { - if (uN) return eO; +var JS, uN; +function HZ() { + if (uN) return JS; uN = 1; - var r = N2(), e = Array.prototype, t = e.splice; + var r = I2(), e = Array.prototype, t = e.splice; function n(i) { var a = this.__data__, o = r(a, i); if (o < 0) @@ -21397,45 +21409,45 @@ function VZ() { var s = a.length - 1; return o == s ? a.pop() : t.call(a, o, 1), --this.size, !0; } - return eO = n, eO; + return JS = n, JS; } -var tO, lN; -function HZ() { - if (lN) return tO; +var eO, lN; +function WZ() { + if (lN) return eO; lN = 1; - var r = N2(); + var r = I2(); function e(t) { var n = this.__data__, i = r(n, t); return i < 0 ? void 0 : n[i][1]; } - return tO = e, tO; + return eO = e, eO; } -var rO, cN; -function WZ() { - if (cN) return rO; +var tO, cN; +function YZ() { + if (cN) return tO; cN = 1; - var r = N2(); + var r = I2(); function e(t) { return r(this.__data__, t) > -1; } - return rO = e, rO; + return tO = e, tO; } -var nO, fN; -function YZ() { - if (fN) return nO; +var rO, fN; +function XZ() { + if (fN) return rO; fN = 1; - var r = N2(); + var r = I2(); function e(t, n) { var i = this.__data__, a = r(i, t); return a < 0 ? (++this.size, i.push([t, n])) : i[a][1] = n, this; } - return nO = e, nO; + return rO = e, rO; } -var iO, dN; -function XZ() { - if (dN) return iO; +var nO, dN; +function $Z() { + if (dN) return nO; dN = 1; - var r = GZ(), e = VZ(), t = HZ(), n = WZ(), i = YZ(); + var r = VZ(), e = HZ(), t = WZ(), n = YZ(), i = XZ(); function a(o) { var s = -1, u = o == null ? 0 : o.length; for (this.clear(); ++s < u; ) { @@ -21443,20 +21455,20 @@ function XZ() { this.set(l[0], l[1]); } } - return a.prototype.clear = r, a.prototype.delete = e, a.prototype.get = t, a.prototype.has = n, a.prototype.set = i, iO = a, iO; + return a.prototype.clear = r, a.prototype.delete = e, a.prototype.get = t, a.prototype.has = n, a.prototype.set = i, nO = a, nO; } -var aO, hN; -function $Z() { - if (hN) return aO; +var iO, hN; +function KZ() { + if (hN) return iO; hN = 1; - var r = Q5(), e = R2(), t = r(e, "Map"); - return aO = t, aO; + var r = Q5(), e = A2(), t = r(e, "Map"); + return iO = t, iO; } -var oO, vN; -function KZ() { - if (vN) return oO; +var aO, vN; +function ZZ() { + if (vN) return aO; vN = 1; - var r = qZ(), e = XZ(), t = $Z(); + var r = GZ(), e = $Z(), t = KZ(); function n() { this.size = 0, this.__data__ = { hash: new r(), @@ -21464,76 +21476,76 @@ function KZ() { string: new r() }; } - return oO = n, oO; + return aO = n, aO; } -var sO, pN; -function ZZ() { - if (pN) return sO; +var oO, pN; +function QZ() { + if (pN) return oO; pN = 1; function r(e) { var t = typeof e; return t == "string" || t == "number" || t == "symbol" || t == "boolean" ? e !== "__proto__" : e === null; } - return sO = r, sO; + return oO = r, oO; } -var uO, gN; -function L2() { - if (gN) return uO; +var sO, gN; +function N2() { + if (gN) return sO; gN = 1; - var r = ZZ(); + var r = QZ(); function e(t, n) { var i = t.__data__; return r(n) ? i[typeof n == "string" ? "string" : "hash"] : i.map; } - return uO = e, uO; + return sO = e, sO; } -var lO, yN; -function QZ() { - if (yN) return lO; +var uO, yN; +function JZ() { + if (yN) return uO; yN = 1; - var r = L2(); + var r = N2(); function e(t) { var n = r(this, t).delete(t); return this.size -= n ? 1 : 0, n; } - return lO = e, lO; + return uO = e, uO; } -var cO, mN; -function JZ() { - if (mN) return cO; +var lO, mN; +function eQ() { + if (mN) return lO; mN = 1; - var r = L2(); + var r = N2(); function e(t) { return r(this, t).get(t); } - return cO = e, cO; + return lO = e, lO; } -var fO, bN; -function eQ() { - if (bN) return fO; +var cO, bN; +function tQ() { + if (bN) return cO; bN = 1; - var r = L2(); + var r = N2(); function e(t) { return r(this, t).has(t); } - return fO = e, fO; + return cO = e, cO; } -var dO, _N; -function tQ() { - if (_N) return dO; +var fO, _N; +function rQ() { + if (_N) return fO; _N = 1; - var r = L2(); + var r = N2(); function e(t, n) { var i = r(this, t), a = i.size; return i.set(t, n), this.size += i.size == a ? 0 : 1, this; } - return dO = e, dO; + return fO = e, fO; } -var hO, wN; -function rQ() { - if (wN) return hO; +var dO, wN; +function nQ() { + if (wN) return dO; wN = 1; - var r = KZ(), e = QZ(), t = JZ(), n = eQ(), i = tQ(); + var r = ZZ(), e = JZ(), t = eQ(), n = tQ(), i = rQ(); function a(o) { var s = -1, u = o == null ? 0 : o.length; for (this.clear(); ++s < u; ) { @@ -21541,13 +21553,13 @@ function rQ() { this.set(l[0], l[1]); } } - return a.prototype.clear = r, a.prototype.delete = e, a.prototype.get = t, a.prototype.has = n, a.prototype.set = i, hO = a, hO; + return a.prototype.clear = r, a.prototype.delete = e, a.prototype.get = t, a.prototype.has = n, a.prototype.set = i, dO = a, dO; } -var vO, xN; -function nQ() { - if (xN) return vO; +var hO, xN; +function iQ() { + if (xN) return hO; xN = 1; - var r = rQ(), e = "Expected a function"; + var r = nQ(), e = "Expected a function"; function t(n, i) { if (typeof n != "function" || i != null && typeof i != "function") throw new TypeError(e); @@ -21560,49 +21572,49 @@ function nQ() { }; return a.cache = new (t.Cache || r)(), a; } - return t.Cache = r, vO = t, vO; + return t.Cache = r, hO = t, hO; } -var pO, EN; -function iQ() { - if (EN) return pO; +var vO, EN; +function aQ() { + if (EN) return vO; EN = 1; - var r = nQ(), e = 500; + var r = iQ(), e = 500; function t(n) { var i = r(n, function(o) { return a.size === e && a.clear(), o; }), a = i.cache; return i; } - return pO = t, pO; + return vO = t, vO; } -var gO, SN; +var pO, SN; function OF() { - if (SN) return gO; + if (SN) return pO; SN = 1; - var r = iQ(), e = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, t = /\\(\\)?/g, n = r(function(i) { + var r = aQ(), e = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, t = /\\(\\)?/g, n = r(function(i) { var a = []; return i.charCodeAt(0) === 46 && a.push(""), i.replace(e, function(o, s, u, l) { a.push(u ? l.replace(t, "$1") : s || o); }), a; }); - return gO = n, gO; + return pO = n, pO; } -var yO, ON; +var gO, ON; function TF() { - if (ON) return yO; + if (ON) return gO; ON = 1; function r(e, t) { for (var n = -1, i = e == null ? 0 : e.length, a = Array(i); ++n < i; ) a[n] = t(e[n], n, e); return a; } - return yO = r, yO; + return gO = r, gO; } -var mO, TN; -function aQ() { - if (TN) return mO; +var yO, TN; +function oQ() { + if (TN) return yO; TN = 1; - var r = G5(), e = TF(), t = k2(), n = X1(), i = r ? r.prototype : void 0, a = i ? i.toString : void 0; + var r = G5(), e = TF(), t = D2(), n = X1(), i = r ? r.prototype : void 0, a = i ? i.toString : void 0; function o(s) { if (typeof s == "string") return s; @@ -21613,31 +21625,31 @@ function aQ() { var u = s + ""; return u == "0" && 1 / s == -1 / 0 ? "-0" : u; } - return mO = o, mO; + return yO = o, yO; } -var bO, CN; +var mO, CN; function CF() { - if (CN) return bO; + if (CN) return mO; CN = 1; - var r = aQ(); + var r = oQ(); function e(t) { return t == null ? "" : r(t); } - return bO = e, bO; + return mO = e, mO; } -var _O, AN; +var bO, AN; function AF() { - if (AN) return _O; + if (AN) return bO; AN = 1; - var r = k2(), e = PZ(), t = OF(), n = CF(); + var r = D2(), e = MZ(), t = OF(), n = CF(); function i(a, o) { return r(a) ? a : e(a, o) ? [a] : t(n(a)); } - return _O = i, _O; + return bO = i, bO; } -var wO, RN; +var _O, RN; function J5() { - if (RN) return wO; + if (RN) return _O; RN = 1; var r = X1(); function e(t) { @@ -21646,11 +21658,11 @@ function J5() { var n = t + ""; return n == "0" && 1 / t == -1 / 0 ? "-0" : n; } - return wO = e, wO; + return _O = e, _O; } -var xO, PN; -function oQ() { - if (PN) return xO; +var wO, PN; +function sQ() { + if (PN) return wO; PN = 1; var r = AF(), e = J5(); function t(n, i) { @@ -21659,22 +21671,22 @@ function oQ() { n = n[e(i[a++])]; return a && a == o ? n : void 0; } - return xO = t, xO; + return wO = t, wO; } -var EO, MN; -function sQ() { - if (MN) return EO; +var xO, MN; +function uQ() { + if (MN) return xO; MN = 1; - var r = oQ(); + var r = sQ(); function e(t, n, i) { var a = t == null ? void 0 : r(t, n); return a === void 0 ? i : a; } - return EO = e, EO; + return xO = e, xO; } -var uQ = sQ(), lQ = /* @__PURE__ */ W1(uQ), SO, DN; -function cQ() { - if (DN) return SO; +var lQ = uQ(), cQ = /* @__PURE__ */ W1(lQ), EO, DN; +function fQ() { + if (DN) return EO; DN = 1; var r = Q5(), e = (function() { try { @@ -21683,13 +21695,13 @@ function cQ() { } catch { } })(); - return SO = e, SO; + return EO = e, EO; } -var OO, kN; -function fQ() { - if (kN) return OO; +var SO, kN; +function dQ() { + if (kN) return SO; kN = 1; - var r = cQ(); + var r = fQ(); function e(t, n, i) { n == "__proto__" && r ? r(t, n, { configurable: !0, @@ -21698,35 +21710,35 @@ function fQ() { writable: !0 }) : t[n] = i; } - return OO = e, OO; + return SO = e, SO; } -var TO, IN; -function dQ() { - if (IN) return TO; +var OO, IN; +function hQ() { + if (IN) return OO; IN = 1; - var r = fQ(), e = SF(), t = Object.prototype, n = t.hasOwnProperty; + var r = dQ(), e = SF(), t = Object.prototype, n = t.hasOwnProperty; function i(a, o, s) { var u = a[o]; (!(n.call(a, o) && e(u, s)) || s === void 0 && !(o in a)) && r(a, o, s); } - return TO = i, TO; + return OO = i, OO; } -var CO, NN; -function hQ() { - if (NN) return CO; +var TO, NN; +function vQ() { + if (NN) return TO; NN = 1; var r = 9007199254740991, e = /^(?:0|[1-9]\d*)$/; function t(n, i) { var a = typeof n; return i = i ?? r, !!i && (a == "number" || a != "symbol" && e.test(n)) && n > -1 && n % 1 == 0 && n < i; } - return CO = t, CO; + return TO = t, TO; } -var AO, LN; -function vQ() { - if (LN) return AO; +var CO, LN; +function pQ() { + if (LN) return CO; LN = 1; - var r = dQ(), e = AF(), t = hQ(), n = Y1(), i = J5(); + var r = hQ(), e = AF(), t = vQ(), n = Y1(), i = J5(); function a(o, s, u, l) { if (!n(o)) return o; @@ -21743,21 +21755,21 @@ function vQ() { } return o; } - return AO = a, AO; + return CO = a, CO; } -var RO, jN; -function pQ() { - if (jN) return RO; +var AO, jN; +function gQ() { + if (jN) return AO; jN = 1; - var r = vQ(); + var r = pQ(); function e(t, n, i) { return t == null ? t : r(t, n, i); } - return RO = e, RO; + return AO = e, AO; } -var gQ = pQ(), yQ = /* @__PURE__ */ W1(gQ), PO, BN; -function mQ() { - if (BN) return PO; +var yQ = gQ(), mQ = /* @__PURE__ */ W1(yQ), RO, BN; +function bQ() { + if (BN) return RO; BN = 1; function r(e, t) { var n = -1, i = e.length; @@ -21765,19 +21777,19 @@ function mQ() { t[n] = e[n]; return t; } - return PO = r, PO; + return RO = r, RO; } -var MO, FN; -function bQ() { - if (FN) return MO; +var PO, FN; +function _Q() { + if (FN) return PO; FN = 1; - var r = TF(), e = mQ(), t = k2(), n = X1(), i = OF(), a = J5(), o = CF(); + var r = TF(), e = bQ(), t = D2(), n = X1(), i = OF(), a = J5(), o = CF(); function s(u) { return t(u) ? r(u, a) : n(u) ? [u] : e(i(o(u))); } - return MO = s, MO; + return PO = s, PO; } -var _Q = bQ(), wQ = /* @__PURE__ */ W1(_Q), xQ = { +var wQ = _Q(), xQ = /* @__PURE__ */ W1(wQ), EQ = { // access data field data: function(e) { var t = { @@ -21805,10 +21817,10 @@ var _Q = bQ(), wQ = /* @__PURE__ */ W1(_Q), xQ = { return e = kr({}, t, e), function(i, a) { var o = e, s = this, u = s.length !== void 0, l = u ? s : [s], c = u ? s[0] : s; if (Ar(i)) { - var f = i.indexOf(".") !== -1, d = f && wQ(i); + var f = i.indexOf(".") !== -1, d = f && xQ(i); if (o.allowGetting && a === void 0) { var h; - return c && (o.beforeGet(c), d && c._private[o.field][i] === void 0 ? h = lQ(c._private[o.field], d) : h = c._private[o.field][i]), h; + return c && (o.beforeGet(c), d && c._private[o.field][i] === void 0 ? h = cQ(c._private[o.field], d) : h = c._private[o.field][i]), h; } else if (o.allowSetting && a !== void 0) { var p = !o.immutableKeys[i]; if (p) { @@ -21816,7 +21828,7 @@ var _Q = bQ(), wQ = /* @__PURE__ */ W1(_Q), xQ = { o.beforeSet(s, g); for (var y = 0, b = l.length; y < b; y++) { var _ = l[y]; - o.canSet(_) && (d && c._private[o.field][i] === void 0 ? yQ(_._private[o.field], d, a) : _._private[o.field][i] = a); + o.canSet(_) && (d && c._private[o.field][i] === void 0 ? mQ(_._private[o.field], d, a) : _._private[o.field][i] = a); } o.updateStyle && s.updateStyle(), o.onSet(s), o.settingTriggersEvent && s[o.triggerFnName](o.settingEvent); } @@ -21880,7 +21892,7 @@ var _Q = bQ(), wQ = /* @__PURE__ */ W1(_Q), xQ = { }; } // removeData -}, EQ = { +}, SQ = { eventAliasesOn: function(e) { var t = e; t.addListener = t.listen = t.bind = t.on, t.unlisten = t.unbind = t.off = t.removeListener, t.trigger = t.emit, t.pon = t.promiseOn = function(n, i) { @@ -21894,10 +21906,10 @@ var _Q = bQ(), wQ = /* @__PURE__ */ W1(_Q), xQ = { }; } }, Ci = {}; -[RZ, xQ, EQ].forEach(function(r) { +[PZ, EQ, SQ].forEach(function(r) { kr(Ci, r); }); -var SQ = { +var OQ = { animate: Ci.animate(), animation: Ci.animation(), animated: Ci.animated(), @@ -22037,7 +22049,7 @@ var Vi = function() { COMPOUND_SPLIT: 19, /** Always matches, useful placeholder for subject in `COMPOUND_SPLIT` */ TRUE: 20 -}, pM = [{ +}, vM = [{ selector: ":selected", matches: function(e) { return e.selected(); @@ -22183,14 +22195,14 @@ var Vi = function() { return !e.backgrounding(); } }].sort(function(r, e) { - return x$(r.selector, e.selector); -}), OQ = (function() { - for (var r = {}, e, t = 0; t < pM.length; t++) - e = pM[t], r[e.selector] = e.matches; + return E$(r.selector, e.selector); +}), TQ = (function() { + for (var r = {}, e, t = 0; t < vM.length; t++) + e = vM[t], r[e.selector] = e.matches; return r; -})(), TQ = function(e, t) { - return OQ[e](t); -}, CQ = "(" + pM.map(function(r) { +})(), CQ = function(e, t) { + return TQ[e](t); +}, AQ = "(" + vM.map(function(r) { return r.selector; }).join("|") + ")", $y = function(e) { return e.replace(new RegExp("\\\\(" + ni.metaChar + ")", "g"), function(t, n) { @@ -22198,7 +22210,7 @@ var Vi = function() { }); }, tp = function(e, t, n) { e[e.length - 1] = n; -}, gM = [{ +}, pM = [{ name: "group", // just used for identifying when debugging query: !0, @@ -22213,7 +22225,7 @@ var Vi = function() { }, { name: "state", query: !0, - regex: CQ, + regex: AQ, populate: function(e, t, n) { var i = Uo(n, 1), a = i[0]; t.checks.push({ @@ -22433,12 +22445,12 @@ var Vi = function() { a === nr.DIRECTED_EDGE ? i.type = nr.NODE_TARGET : a === nr.UNDIRECTED_EDGE && (i.type = nr.NODE_NEIGHBOR, i.node = i.nodes[1], i.neighbor = i.nodes[0], i.nodes = null); } }]; -gM.forEach(function(r) { +pM.forEach(function(r) { return r.regexObj = new RegExp("^" + r.regex); }); -var AQ = function(e) { - for (var t, n, i, a = 0; a < gM.length; a++) { - var o = gM[a], s = o.name, u = e.match(o.regexObj); +var RQ = function(e) { + for (var t, n, i, a = 0; a < pM.length; a++) { + var o = pM[a], s = o.name, u = e.match(o.regexObj); if (u != null) { n = u, t = o, i = s; var l = u[0]; @@ -22452,17 +22464,17 @@ var AQ = function(e) { name: i, remaining: e }; -}, RQ = function(e) { +}, PQ = function(e) { var t = e.match(/^\s+/); if (t) { var n = t[0]; e = e.substring(n.length); } return e; -}, PQ = function(e) { +}, MQ = function(e) { var t = this, n = t.inputText = e, i = t[0] = Vi(); - for (t.length = 1, n = RQ(n); ; ) { - var a = AQ(n); + for (t.length = 1, n = PQ(n); ; ) { + var a = RQ(n); if (a.expr == null) return Ai("The selector `" + e + "`is invalid"), !1; var o = a.match.slice(1), s = a.expr.populate(t, i, o); @@ -22482,7 +22494,7 @@ var AQ = function(e) { c.edgeCount === 1 && Ai("The selector `" + e + "` is deprecated. Edge selectors do not take effect on changes to source and target nodes after an edge is added, for performance reasons. Use a class or data selector on edges instead, updating the class or data of an edge when your app detects a change in source or target nodes."); } return !0; -}, MQ = function() { +}, DQ = function() { if (this.toStringCache != null) return this.toStringCache; for (var e = function(c) { @@ -22542,9 +22554,9 @@ var AQ = function(e) { o += a(u, u.subject), this.length > 1 && s < this.length - 1 && (o += ", "); } return this.toStringCache = o, o; -}, DQ = { - parse: PQ, - toString: MQ +}, kQ = { + parse: MQ, + toString: DQ }, RF = function(e, t, n) { var i, a = Ar(e), o = Ht(e), s = Ar(n), u, l, c = !1, f = !1, d = !1; switch (t.indexOf("!") >= 0 && (t = t.replace("!", ""), f = !0), t.indexOf("@") >= 0 && (t = t.replace("@", ""), c = !0), (a || s || c) && (u = !a && !o ? "" : "" + e, l = "" + n), c && (e = u = u.toLowerCase(), n = l = l.toLowerCase()), t) { @@ -22577,7 +22589,7 @@ var AQ = function(e) { break; } return f && (e != null || !d) && (i = !i), i; -}, kQ = function(e, t) { +}, IQ = function(e, t) { switch (t) { case "?": return !!e; @@ -22586,11 +22598,11 @@ var AQ = function(e) { case "^": return e === void 0; } -}, IQ = function(e) { +}, NQ = function(e) { return e !== void 0; }, eD = function(e, t) { return e.data(t); -}, NQ = function(e, t) { +}, LQ = function(e, t) { return e[t](); }, oo = [], Ea = function(e, t) { return e.checks.every(function(n) { @@ -22603,7 +22615,7 @@ oo[nr.GROUP] = function(r, e) { }; oo[nr.STATE] = function(r, e) { var t = r.value; - return TQ(t, e); + return CQ(t, e); }; oo[nr.ID] = function(r, e) { var t = r.value; @@ -22615,7 +22627,7 @@ oo[nr.CLASS] = function(r, e) { }; oo[nr.META_COMPARE] = function(r, e) { var t = r.field, n = r.operator, i = r.value; - return RF(NQ(e, t), n, i); + return RF(LQ(e, t), n, i); }; oo[nr.DATA_COMPARE] = function(r, e) { var t = r.field, n = r.operator, i = r.value; @@ -22623,11 +22635,11 @@ oo[nr.DATA_COMPARE] = function(r, e) { }; oo[nr.DATA_BOOL] = function(r, e) { var t = r.field, n = r.operator; - return kQ(eD(e, t), n); + return IQ(eD(e, t), n); }; oo[nr.DATA_EXIST] = function(r, e) { var t = r.field; - return r.operator, IQ(eD(e, t)); + return r.operator, NQ(eD(e, t)); }; oo[nr.UNDIRECTED_EDGE] = function(r, e) { var t = r.nodes[0], n = r.nodes[1], i = e.source(), a = e.target(); @@ -22683,7 +22695,7 @@ oo[nr.FILTER] = function(r, e) { var t = r.value; return t(e); }; -var LQ = function(e) { +var jQ = function(e) { var t = this; if (t.length === 1 && t[0].checks.length === 1 && t[0].checks[0].type === nr.ID) return e.getElementById(t[0].checks[0].value).collection(); @@ -22698,16 +22710,16 @@ var LQ = function(e) { return t.text() == null && (n = function() { return !0; }), e.filter(n); -}, jQ = function(e) { +}, BQ = function(e) { for (var t = this, n = 0; n < t.length; n++) { var i = t[n]; if (Ea(i, e)) return !0; } return !1; -}, BQ = { - matches: jQ, - filter: LQ +}, FQ = { + matches: BQ, + filter: jQ }, Dp = function(e) { this.inputText = e, this.currentSubject = null, this.compoundCount = 0, this.edgeCount = 0, this.length = 0, e == null || Ar(e) && e.match(/^\s*$/) || (rf(e) ? this.addQuery({ checks: [{ @@ -22721,7 +22733,7 @@ var LQ = function(e) { }] }) : Ar(e) ? this.parse(e) || (this.invalid = !0) : Ia("A selector must be created from a string; found ")); }, kp = Dp.prototype; -[DQ, BQ].forEach(function(r) { +[kQ, FQ].forEach(function(r) { return kr(kp, r); }); kp.text = function() { @@ -22923,12 +22935,12 @@ Fm.forEachUp = function(r) { var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0; return tD(this, r, e, MF); }; -function FQ(r, e, t) { +function UQ(r, e, t) { MF(r, e, t), PF(r, e, t); } Fm.forEachUpAndDown = function(r) { var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0; - return tD(this, r, e, FQ); + return tD(this, r, e, UQ); }; Fm.ancestors = Fm.parents; var w1, DF; @@ -23000,8 +23012,8 @@ w1 = DF = { }; w1.attr = w1.data; w1.removeAttr = w1.removeData; -var UQ = DF, j2 = {}; -function DO(r) { +var zQ = DF, L2 = {}; +function MO(r) { return function(e) { var t = this; if (e === void 0 && (e = !0), t.length !== 0) @@ -23015,14 +23027,14 @@ function DO(r) { return; }; } -kr(j2, { - degree: DO(function(r, e) { +kr(L2, { + degree: MO(function(r, e) { return e.source().same(e.target()) ? 2 : 1; }), - indegree: DO(function(r, e) { + indegree: MO(function(r, e) { return e.target().same(r) ? 1 : 0; }), - outdegree: DO(function(r, e) { + outdegree: MO(function(r, e) { return e.source().same(r) ? 1 : 0; }) }); @@ -23035,7 +23047,7 @@ function Ky(r, e) { return n; }; } -kr(j2, { +kr(L2, { minDegree: Ky("degree", function(r, e) { return r < e; }), @@ -23055,7 +23067,7 @@ kr(j2, { return r > e; }) }); -kr(j2, { +kr(L2, { totalDegree: function(e) { for (var t = 0, n = this.nodes(), i = 0; i < n.length; i++) t += n[i].degree(e); @@ -23167,7 +23179,7 @@ Cd = kF = { } else { var f = n.position(); - return s = M2(f, a, o), e === void 0 ? s : s[e]; + return s = P2(f, a, o), e === void 0 ? s : s[e]; } else if (!u) return; @@ -23211,7 +23223,7 @@ Cd.modelPosition = Cd.point = Cd.position; Cd.modelPositions = Cd.points = Cd.positions; Cd.renderedPoint = Cd.renderedPosition; Cd.relativePoint = Cd.relativePosition; -var zQ = kF, Sm, Gp; +var qQ = kF, Sm, Gp; Sm = Gp = {}; Gp.renderedBoundingBox = function(r) { var e = this.boundingBox(r), t = this.cy(), n = t.zoom(), i = t.pan(), a = e.x1 * n + i.x, o = e.x2 * n + i.x, s = e.y1 * n + i.y, u = e.y2 * n + i.y; @@ -23323,7 +23335,7 @@ var If = function(e) { f.x1 = u - o, f.y1 = l - o, f.x2 = u + o, f.y2 = l + o, f.w = f.x2 - f.x1, f.h = f.y2 - f.y1, $w(f, 1), xd(e, f.x1, f.y1, f.x2, f.y2); } } -}, kO = function(e, t, n) { +}, DO = function(e, t, n) { if (!t.cy().headless()) { var i; n ? i = n + "-" : i = ""; @@ -23360,9 +23372,9 @@ var If = function(e) { k += z, L += H, B += q, j += W; var $ = n || "main", J = a.labelBounds, X = J[$] = J[$] || {}; X.x1 = k, X.y1 = B, X.x2 = L, X.y2 = j, X.w = L - k, X.h = j - B, X.leftPad = z, X.rightPad = H, X.topPad = q, X.botPad = W; - var Q = y && b.strValue === "autorotate", ue = b.pfValue != null && b.pfValue !== 0; - if (Q || ue) { - var re = Q ? G0(a.rstyle, "labelAngle", n) : b.pfValue, ne = Math.cos(re), le = Math.sin(re), ce = (k + L) / 2, pe = (B + j) / 2; + var Z = y && b.strValue === "autorotate", ue = b.pfValue != null && b.pfValue !== 0; + if (Z || ue) { + var re = Z ? G0(a.rstyle, "labelAngle", n) : b.pfValue, ne = Math.cos(re), le = Math.sin(re), ce = (k + L) / 2, pe = (B + j) / 2; if (!y) { switch (u.value) { case "left": @@ -23381,16 +23393,16 @@ var If = function(e) { break; } } - var fe = function(Ce, Y) { - return Ce = Ce - ce, Y = Y - pe, { - x: Ce * ne - Y * le + ce, - y: Ce * le + Y * ne + pe + var fe = function(Te, Y) { + return Te = Te - ce, Y = Y - pe, { + x: Te * ne - Y * le + ce, + y: Te * le + Y * ne + pe }; }, se = fe(k, B), de = fe(k, j), ge = fe(L, B), Oe = fe(L, j); k = Math.min(se.x, de.x, ge.x, Oe.x), L = Math.max(se.x, de.x, ge.x, Oe.x), B = Math.min(se.y, de.y, ge.y, Oe.y), j = Math.max(se.y, de.y, ge.y, Oe.y); } - var ke = $ + "Rot", Me = J[ke] = J[ke] || {}; - Me.x1 = k, Me.y1 = B, Me.x2 = L, Me.y2 = j, Me.w = L - k, Me.h = j - B, xd(e, k, B, L, j), xd(a.labelBounds.all, k, B, L, j); + var ke = $ + "Rot", De = J[ke] = J[ke] || {}; + De.x1 = k, De.y1 = B, De.x2 = L, De.y2 = j, De.w = L - k, De.h = j - B, xd(e, k, B, L, j), xd(a.labelBounds.all, k, B, L, j); } return e; } @@ -23408,12 +23420,12 @@ var If = function(e) { cp(e, g); } else o != null && o > 0 && Kw(e, [o, o, o, o]); } -}, qQ = function(e, t) { +}, GQ = function(e, t) { if (!t.cy().headless()) { var n = t.pstyle("border-opacity").value, i = t.pstyle("border-width").pfValue, a = t.pstyle("border-position").value; NF(e, t, n, i, a); } -}, GQ = function(e, t) { +}, VQ = function(e, t) { var n = e._private.cy, i = n.styleEnabled(), a = n.headless(), o = zl(), s = e._private, u = e.isNode(), l = e.isEdge(), c, f, d, h, p, g, y = s.rstyle, b = u && i ? e.pstyle("bounds-expansion").pfValue : [0], _ = function(Ne) { return Ne.pstyle("display").value !== "none"; }, m = !i || _(e) && (!l || _(e.source()) && _(e.target())); @@ -23427,7 +23439,7 @@ var If = function(e) { var k = e.position(); p = k.x, g = k.y; var L = e.outerWidth(), B = L / 2, j = e.outerHeight(), z = j / 2; - c = p - B, f = p + B, d = g - z, h = g + z, xd(o, c, d, f, h), i && zN(o, e), i && t.includeOutlines && !a && zN(o, e), i && qQ(o, e); + c = p - B, f = p + B, d = g - z, h = g + z, xd(o, c, d, f, h), i && zN(o, e), i && t.includeOutlines && !a && zN(o, e), i && GQ(o, e); } else if (l && t.includeEdges) if (i && !a) { var H = e.pstyle("curve-style").strValue; @@ -23460,8 +23472,8 @@ var If = function(e) { } if (J != null) for (var X = 0; X < J.length; X++) { - var Q = J[X]; - c = Q.x - I, f = Q.x + I, d = Q.y - I, h = Q.y + I, xd(o, c, d, f, h); + var Z = J[X]; + c = Z.x - I, f = Z.x + I, d = Z.y - I, h = Z.y + I, xd(o, c, d, f, h); } } } else { @@ -23488,7 +23500,7 @@ var If = function(e) { var Oe = s.overlayBounds = s.overlayBounds || {}; TI(Oe, o), Kw(Oe, b), $w(Oe, 1); var ke = s.labelBounds = s.labelBounds || {}; - ke.all != null ? SK(ke.all) : ke.all = zl(), i && t.includeLabels && (t.includeMainLabels && kO(o, e, null), l && (t.includeSourceLabels && kO(o, e, "source"), t.includeTargetLabels && kO(o, e, "target"))); + ke.all != null ? OK(ke.all) : ke.all = zl(), i && t.includeLabels && (t.includeMainLabels && DO(o, e, null), l && (t.includeSourceLabels && DO(o, e, "source"), t.includeTargetLabels && DO(o, e, "target"))); } return o.x1 = If(o.x1), o.y1 = If(o.y1), o.x2 = If(o.x2), o.y2 = If(o.y2), o.w = If(o.x2 - o.x1), o.h = If(o.y2 - o.y1), o.w > 0 && o.h > 0 && m && (Kw(o, b), $w(o, 1)), o; }, LF = function(e) { @@ -23509,7 +23521,7 @@ var If = function(e) { } }, qN = function(e, t) { var n = e._private, i, a = e.isEdge(), o = t == null ? GN : LF(t), s = o === GN; - if (n.bbCache == null ? (i = GQ(e, x1), n.bbCache = i, n.bbCachePosKey = jF(e)) : i = n.bbCache, !s) { + if (n.bbCache == null ? (i = VQ(e, x1), n.bbCache = i, n.bbCachePosKey = jF(e)) : i = n.bbCache, !s) { var u = e.isNode(); i = zl(), (t.includeNodes && u || t.includeEdges && !u) && (t.includeOverlays ? cp(i, n.overlayBounds) : cp(i, n.bodyBounds)), t.includeLabels && (t.includeMainLabels && (!a || t.includeSourceLabels && t.includeTargetLabels) ? cp(i, n.labelBounds.all) : (t.includeMainLabels && cp(i, n.labelBounds.mainRot), t.includeSourceLabels && cp(i, n.labelBounds.sourceRot), t.includeTargetLabels && cp(i, n.labelBounds.targetRot))), i.w = i.x2 - i.x1, i.h = i.y2 - i.y1; } @@ -23569,14 +23581,14 @@ Gp.boundingBoxAt = function(r) { return c._private.bbAtOldPos; }; t.startBatch(), e.forEach(o).silentPositions(r), n && (i.dirtyCompoundBoundsCache(), i.dirtyBoundingBoxCache(), i.updateCompoundBounds(!0)); - var u = EK(this.boundingBox({ + var u = SK(this.boundingBox({ useCache: !1 })); return e.silentPositions(s), n && (i.dirtyCompoundBoundsCache(), i.dirtyBoundingBoxCache(), i.updateCompoundBounds(!0)), t.endBatch(), u; }; Sm.boundingbox = Sm.bb = Sm.boundingBox; Sm.renderedBoundingbox = Sm.renderedBoundingBox; -var VQ = Gp, hb, Z1; +var HQ = Gp, hb, Z1; hb = Z1 = {}; var BF = function(e) { e.uppercaseName = aI(e.name), e.autoName = "auto" + e.uppercaseName, e.labelName = "label" + e.uppercaseName, e.outerName = "outer" + e.uppercaseName, e.uppercaseOuterName = aI(e.outerName), hb[e.name] = function() { @@ -23636,61 +23648,61 @@ Z1.paddedWidth = function() { var r = this[0]; return r.width() + 2 * r.padding(); }; -var HQ = Z1, WQ = function(e, t) { +var WQ = Z1, YQ = function(e, t) { if (e.isEdge() && e.takesUpSpace()) return t(e); -}, YQ = function(e, t) { +}, XQ = function(e, t) { if (e.isEdge() && e.takesUpSpace()) { var n = e.cy(); - return M2(t(e), n.zoom(), n.pan()); + return P2(t(e), n.zoom(), n.pan()); } -}, XQ = function(e, t) { +}, $Q = function(e, t) { if (e.isEdge() && e.takesUpSpace()) { var n = e.cy(), i = n.pan(), a = n.zoom(); return t(e).map(function(o) { - return M2(o, a, i); + return P2(o, a, i); }); } -}, $Q = function(e) { - return e.renderer().getControlPoints(e); }, KQ = function(e) { - return e.renderer().getSegmentPoints(e); + return e.renderer().getControlPoints(e); }, ZQ = function(e) { - return e.renderer().getSourceEndpoint(e); + return e.renderer().getSegmentPoints(e); }, QQ = function(e) { - return e.renderer().getTargetEndpoint(e); + return e.renderer().getSourceEndpoint(e); }, JQ = function(e) { + return e.renderer().getTargetEndpoint(e); +}, eJ = function(e) { return e.renderer().getEdgeMidpoint(e); }, HN = { controlPoints: { - get: $Q, + get: KQ, mult: !0 }, segmentPoints: { - get: KQ, + get: ZQ, mult: !0 }, sourceEndpoint: { - get: ZQ + get: QQ }, targetEndpoint: { - get: QQ + get: JQ }, midpoint: { - get: JQ + get: eJ } -}, eJ = function(e) { +}, tJ = function(e) { return "rendered" + e[0].toUpperCase() + e.substr(1); -}, tJ = Object.keys(HN).reduce(function(r, e) { - var t = HN[e], n = eJ(e); +}, rJ = Object.keys(HN).reduce(function(r, e) { + var t = HN[e], n = tJ(e); return r[e] = function() { - return WQ(this, t.get); + return YQ(this, t.get); }, t.mult ? r[n] = function() { - return XQ(this, t.get); + return $Q(this, t.get); } : r[n] = function() { - return YQ(this, t.get); + return XQ(this, t.get); }, r; -}, {}), rJ = kr({}, zQ, VQ, HQ, tJ); +}, {}), nJ = kr({}, qQ, HQ, WQ, rJ); /*! Event object based on jQuery events, MIT license @@ -23738,7 +23750,7 @@ FF.prototype = { isPropagationStopped: V0, isImmediatePropagationStopped: V0 }; -var UF = /^([^.]+)(\.(?:[^.]+))?$/, nJ = ".*", zF = { +var UF = /^([^.]+)(\.(?:[^.]+))?$/, iJ = ".*", zF = { qualifierCompare: function(e, t) { return e === t; }, @@ -23761,15 +23773,15 @@ var UF = /^([^.]+)(\.(?:[^.]+))?$/, nJ = ".*", zF = { return null; }, context: null -}, WN = Object.keys(zF), iJ = {}; -function B2() { - for (var r = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : iJ, e = arguments.length > 1 ? arguments[1] : void 0, t = 0; t < WN.length; t++) { +}, WN = Object.keys(zF), aJ = {}; +function j2() { + for (var r = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : aJ, e = arguments.length > 1 ? arguments[1] : void 0, t = 0; t < WN.length; t++) { var n = WN[t]; this[n] = r[n] || zF[n]; } this.context = e || this.context, this.listeners = [], this.emitting = 0; } -var Ip = B2.prototype, qF = function(e, t, n, i, a, o, s) { +var Ip = j2.prototype, qF = function(e, t, n, i, a, o, s) { Ya(i) && (a = i, i = null), s && (o == null ? o = s : o = kr({}, o, s)); for (var u = ra(n) ? n : n.split(/\s+/), l = 0; l < u.length; l++) { var c = u[l]; @@ -23784,8 +23796,8 @@ var Ip = B2.prototype, qF = function(e, t, n, i, a, o, s) { } }, YN = function(e, t) { return e.addEventFields(e.context, t), new FF(t.type, t); -}, aJ = function(e, t, n) { - if (f$(n)) { +}, oJ = function(e, t, n) { + if (d$(n)) { t(e, n); return; } else if (ai(n)) { @@ -23832,7 +23844,7 @@ Ip.one = function(r, e, t, n) { }; Ip.removeListener = Ip.off = function(r, e, t, n) { var i = this; - this.emitting !== 0 && (this.listeners = Y$(this.listeners)); + this.emitting !== 0 && (this.listeners = X$(this.listeners)); for (var a = this.listeners, o = function(l) { var c = a[l]; qF(i, function(f, d, h, p, g, y) { @@ -23848,7 +23860,7 @@ Ip.removeAllListeners = function() { }; Ip.emit = Ip.trigger = function(r, e, t) { var n = this.listeners, i = n.length; - return this.emitting++, ra(e) || (e = [e]), aJ(this, function(a, o) { + return this.emitting++, ra(e) || (e = [e]), oJ(this, function(a, o) { t != null && (n = [{ event: o.event, type: o.type, @@ -23857,9 +23869,9 @@ Ip.emit = Ip.trigger = function(r, e, t) { }], i = n.length); for (var s = function() { var c = n[u]; - if (c.type === o.type && (!c.namespace || c.namespace === o.namespace || c.namespace === nJ) && a.eventMatches(a.context, c, o)) { + if (c.type === o.type && (!c.namespace || c.namespace === o.namespace || c.namespace === iJ) && a.eventMatches(a.context, c, o)) { var f = [o]; - e != null && $$(f, e), a.beforeEmit(a.context, c, o), c.conf && c.conf.one && (a.listeners = a.listeners.filter(function(p) { + e != null && K$(f, e), a.beforeEmit(a.context, c, o), c.conf && c.conf.one && (a.listeners = a.listeners.filter(function(p) { return p !== c; })); var d = a.callbackContext(a.context, c, o), h = c.callback.apply(d, f); @@ -23870,7 +23882,7 @@ Ip.emit = Ip.trigger = function(r, e, t) { a.bubble(a.context) && !o.isPropagationStopped() && a.parent(a.context).emit(o, e); }, r), this.emitting--, this; }; -var oJ = { +var sJ = { qualifierCompare: function(e, t) { return e == null || t == null ? e == null && t == null : e.sameText(t); }, @@ -23899,7 +23911,7 @@ var oJ = { createEmitter: function() { for (var e = 0; e < this.length; e++) { var t = this[e], n = t._private; - n.emitter || (n.emitter = new B2(oJ, t)); + n.emitter || (n.emitter = new j2(sJ, t)); } return this; }, @@ -24160,7 +24172,7 @@ ci.n = ci["&"] = ci["."] = ci.and = ci.intersection = ci.intersect; ci["^"] = ci["(+)"] = ci["(-)"] = ci.symmetricDifference = ci.symdiff = ci.xor; ci.fnFilter = ci.filterFn = ci.stdFilter = ci.filter; ci.complement = ci.abscomp = ci.absoluteComplement; -var sJ = { +var uJ = { isNode: function() { return this.group() === "nodes"; }, @@ -24260,7 +24272,7 @@ var sJ = { } }; Lx.each = Lx.forEach; -var uJ = function() { +var lJ = function() { var e = "undefined", t = (typeof Symbol > "u" ? "undefined" : ls(Symbol)) != e && ls(Symbol.iterator) != e; t && (Lx[Symbol.iterator] = function() { var n = this, i = { @@ -24276,13 +24288,13 @@ var uJ = function() { }); }); }; -uJ(); -var lJ = fu({ +lJ(); +var cJ = fu({ nodeDimensionsIncludeLabels: !1 }), Qw = { // Calculates and returns node dimensions { x, y } based on options given layoutDimensions: function(e) { - e = lJ(e); + e = cJ(e); var t; if (!this.takesUpSpace()) t = { @@ -24409,12 +24421,12 @@ function WF(r, e, t) { var n = t._private, i = n.styleCache = n.styleCache || [], a; return (a = i[r]) != null || (a = i[r] = e(t)), a; } -function F2(r, e) { +function B2(r, e) { return r = Hg(r), function(n) { return WF(r, e, n); }; } -function U2(r, e) { +function F2(r, e) { r = Hg(r); var t = function(i) { return e.call(i); @@ -24579,7 +24591,7 @@ var su = { return !!t._private.backgrounding; } }; -function IO(r, e) { +function kO(r, e) { var t = r._private, n = t.data.parent ? r.parents() : null; if (n) for (var i = 0; i < n.length; i++) { @@ -24601,26 +24613,26 @@ function rD(r) { if (!e(a)) return !1; if (a.isNode()) - return !o || IO(a, n); + return !o || kO(a, n); var u = s.source, l = s.target; - return t(u) && (!o || IO(u, t)) && (u === l || t(l) && (!o || IO(l, t))); + return t(u) && (!o || kO(u, t)) && (u === l || t(l) && (!o || kO(l, t))); } }; } -var Zm = F2("eleTakesUpSpace", function(r) { +var Zm = B2("eleTakesUpSpace", function(r) { return r.pstyle("display").value === "element" && r.width() !== 0 && (r.isNode() ? r.height() !== 0 : !0); }); -su.takesUpSpace = U2("takesUpSpace", rD({ +su.takesUpSpace = F2("takesUpSpace", rD({ ok: Zm })); -var cJ = F2("eleInteractive", function(r) { +var fJ = B2("eleInteractive", function(r) { return r.pstyle("events").value === "yes" && r.pstyle("visibility").value === "visible" && Zm(r); -}), fJ = F2("parentInteractive", function(r) { +}), dJ = B2("parentInteractive", function(r) { return r.pstyle("visibility").value === "visible" && Zm(r); }); -su.interactive = U2("interactive", rD({ - ok: cJ, - parentOk: fJ, +su.interactive = F2("interactive", rD({ + ok: fJ, + parentOk: dJ, edgeOkViaNode: Zm })); su.noninteractive = function() { @@ -24628,19 +24640,19 @@ su.noninteractive = function() { if (r) return !r.interactive(); }; -var dJ = F2("eleVisible", function(r) { +var hJ = B2("eleVisible", function(r) { return r.pstyle("visibility").value === "visible" && r.pstyle("opacity").pfValue !== 0 && Zm(r); -}), hJ = Zm; -su.visible = U2("visible", rD({ - ok: dJ, - edgeOkViaNode: hJ +}), vJ = Zm; +su.visible = F2("visible", rD({ + ok: hJ, + edgeOkViaNode: vJ })); su.hidden = function() { var r = this[0]; if (r) return !r.visible(); }; -su.isBundledBezier = U2("isBundledBezier", function() { +su.isBundledBezier = F2("isBundledBezier", function() { return this.cy().styleEnabled() ? !this.removed() && this.pstyle("curve-style").value === "bezier" && this.takesUpSpace() : !1; }); su.bypass = su.css = su.style; @@ -24982,7 +24994,7 @@ var uu = function(e, t) { d.id = oF(); else if (e.hasElementWithId(d.id) || u.has(d.id)) continue; - var h = new P2(e, f, !1); + var h = new R2(e, f, !1); s.push(h), u.add(d.id); } t = s; @@ -25017,7 +25029,7 @@ var uu = function(e, t) { } } }, n && (this._private.map = a), o && !i && this.restore(); -}, va = P2.prototype = uu.prototype = Object.create(Array.prototype); +}, va = R2.prototype = uu.prototype = Object.create(Array.prototype); va.instanceString = function() { return "collection"; }; @@ -25118,7 +25130,7 @@ va.jsons = function() { }; va.clone = function() { for (var r = this.cy(), e = [], t = 0; t < this.length; t++) { - var n = this[t], i = n.json(), a = new P2(r, i, !1); + var n = this[t], i = n.json(), a = new R2(r, i, !1); e.push(a); } return new uu(r, e); @@ -25197,8 +25209,8 @@ va.restore = function() { var X = $[J]; X.isNode() || (X.parallelEdges().clearTraversalCache(), X.source().clearTraversalCache(), X.target().clearTraversalCache()); } - var Q; - i.hasCompoundNodes ? Q = n.collection().merge($).merge($.connectedNodes()).merge($.parent()) : Q = $, Q.dirtyCompoundBoundsCache().dirtyBoundingBoxCache().updateStyle(r), r ? $.emitAndNotify("add") : e && $.emit("add"); + var Z; + i.hasCompoundNodes ? Z = n.collection().merge($).merge($.connectedNodes()).merge($.parent()) : Z = $, Z.dirtyCompoundBoundsCache().dirtyBoundingBoxCache().updateStyle(r), r ? $.emitAndNotify("add") : e && $.emit("add"); } return t; }; @@ -25306,10 +25318,10 @@ va.move = function(r) { } return this; }; -[mF, SQ, Zw, xp, Fm, UQ, j2, rJ, GF, VF, sJ, Lx, Qw, su, Ep, $u].forEach(function(r) { +[mF, OQ, Zw, xp, Fm, zQ, L2, nJ, GF, VF, uJ, Lx, Qw, su, Ep, $u].forEach(function(r) { kr(va, r); }); -var vJ = { +var pJ = { add: function(e) { var t, n = this; if (rf(e)) { @@ -25340,7 +25352,7 @@ var vJ = { t = new uu(n, c); } else { var m = e; - t = new P2(n, m).collection(); + t = new R2(n, m).collection(); } return t; }, @@ -25355,7 +25367,7 @@ var vJ = { } }; /*! Bezier curve function generator. Copyright Gaetan Renaudeau. MIT License: http://en.wikipedia.org/wiki/MIT_License */ -function pJ(r, e, t, n) { +function gJ(r, e, t, n) { var i = 4, a = 1e-3, o = 1e-7, s = 10, u = 11, l = 1 / (u - 1), c = typeof Float32Array < "u"; if (arguments.length !== 4) return !1; @@ -25429,7 +25441,7 @@ function pJ(r, e, t, n) { }, T; } /*! Runge-Kutta spring physics function generator. Adapted from Framer.js, copyright Koen Bok. MIT License: http://en.wikipedia.org/wiki/MIT_License */ -var gJ = /* @__PURE__ */ (function() { +var yJ = /* @__PURE__ */ (function() { function r(n) { return -n.tension * n.x - n.friction * n.v; } @@ -25466,7 +25478,7 @@ var gJ = /* @__PURE__ */ (function() { } : l; }; })(), fa = function(e, t, n, i) { - var a = pJ(e, t, n, i); + var a = gJ(e, t, n, i); return function(o, s, u) { return o + (s - o) * a(u); }; @@ -25511,7 +25523,7 @@ var gJ = /* @__PURE__ */ (function() { spring: function(e, t, n) { if (n === 0) return Jw.linear; - var i = gJ(e, t, n); + var i = yJ(e, t, n); return function(a, o, s) { return a + (o - a) * i(s); }; @@ -25545,7 +25557,7 @@ function Zy(r, e, t, n, i) { return u; } } -function yJ(r, e, t, n) { +function mJ(r, e, t, n) { var i = !n, a = r._private, o = e._private, s = o.easing, u = o.startTime, l = n ? r : r.cy(), c = l.style(); if (!o.easingImpl) if (s == null) @@ -25587,7 +25599,7 @@ function yJ(r, e, t, n) { function H0(r, e) { return r == null || e == null ? !1 : Ht(r) && Ht(e) ? !0 : !!(r && e); } -function mJ(r, e, t, n) { +function bJ(r, e, t, n) { var i = e._private; i.started = !0, i.startTime = t - i.progress * i.duration; } @@ -25611,7 +25623,7 @@ function n3(r, e) { h.splice(_, 1), x.hooked = !1, x.playing = !1, x.started = !1, b(x.frames); continue; } - !x.playing && !x.applying || (x.playing && x.applying && (x.applying = !1), x.started || mJ(c, m, r), yJ(c, m, r, f), x.applying && (x.applying = !1), b(x.frames), x.step != null && x.step(r), m.completed() && (h.splice(_, 1), x.hooked = !1, x.playing = !1, x.started = !1, b(x.completes)), g = !0); + !x.playing && !x.applying || (x.playing && x.applying && (x.applying = !1), x.started || bJ(c, m, r), mJ(c, m, r, f), x.applying && (x.applying = !1), b(x.frames), x.step != null && x.step(r), m.completed() && (h.splice(_, 1), x.hooked = !1, x.playing = !1, x.started = !1, b(x.completes)), g = !0); } return !f && h.length === 0 && p.length === 0 && n.push(c), g; } @@ -25622,7 +25634,7 @@ function n3(r, e) { var l = i(e, !0); (a || l) && (t.length > 0 ? e.notify("draw", t) : e.notify("draw")), t.unmerge(n), e.emit("step"); } -var bJ = { +var _J = { // pull in animation functions animate: Ci.animate(), animation: Ci.animation(), @@ -25652,7 +25664,7 @@ var bJ = { n3(o, e); }, n.beforeRenderPriorities.animations) : t(); } -}, _J = { +}, wJ = { qualifierCompare: function(e, t) { return e == null || t == null ? e == null && t == null : e.sameText(t); }, @@ -25671,7 +25683,7 @@ var bJ = { }, YF = { createEmitter: function() { var e = this._private; - return e.emitter || (e.emitter = new B2(_J, this)), this; + return e.emitter || (e.emitter = new j2(wJ, this)), this; }, emitter: function() { return this._private.emitter; @@ -25699,7 +25711,7 @@ var bJ = { } }; Ci.eventAliasesOn(YF); -var yM = { +var gM = { png: function(e) { var t = this._private.renderer; return e = e || {}, t.png(e); @@ -25709,7 +25721,7 @@ var yM = { return e = e || {}, e.bg = e.bg || "#fff", t.jpg(e); } }; -yM.jpeg = yM.jpg; +gM.jpeg = gM.jpg; var ex = { layout: function(e) { var t = this; @@ -25736,7 +25748,7 @@ var ex = { } }; ex.createLayout = ex.makeLayout = ex.layout; -var wJ = { +var xJ = { notify: function(e, t) { var n = this._private; if (this.batching()) { @@ -25791,7 +25803,7 @@ var wJ = { } }); } -}, xJ = fu({ +}, EJ = fu({ hideEdgesOnViewport: !1, textureOnViewport: !1, motionBlur: !1, @@ -25813,7 +25825,7 @@ var wJ = { webglBatchSize: 2048, webglTexPerBatch: 14, webglBgColor: [255, 255, 255] -}), mM = { +}), yM = { renderTo: function(e, t, n, i) { var a = this._private.renderer; return a.renderTo(e, t, n, i), this; @@ -25834,7 +25846,7 @@ var wJ = { return; } e.wheelSensitivity !== void 0 && Ai("You have set a custom wheel sensitivity. This will make your app zoom unnaturally when using mainstream mice. You should change this value from the default only if you can guarantee that all your users will use the same hardware and OS configuration as your current machine."); - var i = xJ(e); + var i = EJ(e); i.cy = t, t._private.renderer = new n(i), this.notify("init"); }, destroyRenderer: function() { @@ -25856,7 +25868,7 @@ var wJ = { return this.off("render", e); } }; -mM.invalidateDimensions = mM.resize; +yM.invalidateDimensions = yM.resize; var tx = { // get a collection // - empty collection on no args @@ -25887,7 +25899,7 @@ var tx = { } }; tx.elements = tx.filter = tx.$; -var js = {}, Mb = "t", EJ = "f"; +var js = {}, Mb = "t", SJ = "f"; js.apply = function(r) { for (var e = this, t = e._private, n = t.cy, i = n.collection(), a = 0; a < r.length; a++) { var o = r[a], s = e.getContextMeta(o); @@ -25924,7 +25936,7 @@ js.getPropertiesDiff = function(r, e) { js.getContextMeta = function(r) { for (var e = this, t = "", n, i = r._private.styleCxtKey || "", a = 0; a < e.length; a++) { var o = e[a], s = o.selector && o.selector.matches(r); - s ? t += Mb : t += EJ; + s ? t += Mb : t += SJ; } return n = e.getPropertiesDiff(i, t), r._private.styleCxtKey = t, { key: t, @@ -25999,8 +26011,8 @@ js.updateStyleHints = function(r) { f(ge, Oe), d(ge, Oe); }, p = function(ge, Oe) { for (var ke = 0; ke < ge.length; ke++) { - var Me = ge.charCodeAt(ke); - f(Me, Oe), d(Me, Oe); + var De = ge.charCodeAt(ke); + f(De, Oe), d(De, Oe); } }, g = 2e9, y = function(ge) { return -128 < ge && ge < 128 && Math.floor(ge) !== ge ? g - (ge * 1024 | 0) : ge; @@ -26021,7 +26033,7 @@ js.updateStyleHints = function(r) { var H = i[z], q = e.styleKeys[H]; j[0] = g1(q[0], j[0]), j[1] = y1(q[1], j[1]); } - e.styleKey = F$(j[0], j[1]); + e.styleKey = U$(j[0], j[1]); var W = e.styleKeys; e.labelDimsKey = ep(W.labelDimensions); var $ = a(r, ["label"], W.labelDimensions); @@ -26032,7 +26044,7 @@ js.updateStyleHints = function(r) { e.targetLabelKey = ep(X), e.targetLabelStyleKey = ep(fw(W.commonLabel, X)); } if (s) { - var Q = e.styleKeys, ue = Q.nodeBody, re = Q.nodeBorder, ne = Q.nodeOutline, le = Q.backgroundImage, ce = Q.compound, pe = Q.pie, fe = Q.stripe, se = [ue, re, ne, le, ce, pe, fe].filter(function(de) { + var Z = e.styleKeys, ue = Z.nodeBody, re = Z.nodeBorder, ne = Z.nodeOutline, le = Z.backgroundImage, ce = Z.compound, pe = Z.pie, fe = Z.stripe, se = [ue, re, ne, le, ce, pe, fe].filter(function(de) { return de != null; }).reduce(fw, [Ig, lm]); e.nodeKey = ep(se), e.hasPie = pe != null && pe[0] !== Ig && pe[1] !== lm, e.hasStripe = fe != null && fe[0] !== Ig && fe[1] !== lm; @@ -26223,7 +26235,7 @@ Q1.applyBypass = function(r, e, t, n) { n = t; for (var h = Object.keys(d), p = 0; p < h.length; p++) { var g = h[p], y = d[g]; - if (y === void 0 && (y = d[A2(g)]), y !== void 0) { + if (y === void 0 && (y = d[C2(g)]), y !== void 0) { var b = this.parse(g, y, !0); b && a.push(b); } @@ -26290,7 +26302,7 @@ wh.getRawStyle = function(r, e) { if (r = r[0], r) { for (var n = {}, i = 0; i < t.properties.length; i++) { var a = t.properties[i], o = t.getStylePropertyValue(r, a.name, e); - o != null && (n[a.name] = o, n[A2(a.name)] = o); + o != null && (n[a.name] = o, n[C2(a.name)] = o); } return n; } @@ -26354,8 +26366,8 @@ wh.getNonDefaultPropertiesHash = function(r, e, t) { return n; }; wh.getPropertiesHash = wh.getNonDefaultPropertiesHash; -var z2 = {}; -z2.appendFromJson = function(r) { +var U2 = {}; +U2.appendFromJson = function(r) { for (var e = this, t = 0; t < r.length; t++) { var n = r[t], i = n.selector, a = n.style || n.css, o = Object.keys(a); e.selector(i); @@ -26366,11 +26378,11 @@ z2.appendFromJson = function(r) { } return e; }; -z2.fromJson = function(r) { +U2.fromJson = function(r) { var e = this; return e.resetToDefault(), e.appendFromJson(r), e; }; -z2.json = function() { +U2.json = function() { for (var r = [], e = this.defaultLength; e < this.length; e++) { for (var t = this[e], n = t.selector, i = t.properties, a = {}, o = 0; o < i.length; o++) { var s = i[o]; @@ -26457,7 +26469,7 @@ iD.fromString = function(r) { }; var Fo = {}; (function() { - var r = us, e = y$, t = b$, n = _$, i = w$, a = function(de) { + var r = us, e = m$, t = _$, n = w$, i = x$, a = function(de) { return "^" + de + "\\s*\\(\\s*([\\w\\.]+)\\s*\\)$"; }, o = function(de) { var ge = r + "|\\w+|" + e + "|" + t + "|" + n + "|" + i; @@ -27528,8 +27540,8 @@ var Fo = {}; edgeLine: I, edgeArrow: q, core: L - }, X = Fo.propertyGroupNames = {}, Q = Fo.propertyGroupKeys = Object.keys(J); - Q.forEach(function(se) { + }, X = Fo.propertyGroupNames = {}, Z = Fo.propertyGroupKeys = Object.keys(J); + Z.forEach(function(se) { X[se] = J[se].map(function(de) { return de.name; }), J[se].forEach(function(de) { @@ -27860,19 +27872,19 @@ Fo.addDefaultStylesheet = function() { "overlay-opacity": 0.25 }), this.defaultLength = this.length; }; -var q2 = {}; -q2.parse = function(r, e, t, n) { +var z2 = {}; +z2.parse = function(r, e, t, n) { var i = this; if (Ya(e)) return i.parseImplWarn(r, e, t, n); var a = n === "mapping" || n === !0 || n === !1 || n == null ? "dontcare" : n, o = t ? "t" : "f", s = "" + e, u = nF(r, s, o, a), l = i.propCache = i.propCache || [], c; return (c = l[u]) || (c = l[u] = i.parseImplWarn(r, e, t, n)), (t || n === "mapping") && (c = bh(c), c && (c.value = bh(c.value))), c; }; -q2.parseImplWarn = function(r, e, t, n) { +z2.parseImplWarn = function(r, e, t, n) { var i = this.parseImpl(r, e, t, n); return !i && e != null && Ai("The style property `".concat(r, ": ").concat(e, "` is invalid")), i && (i.name === "width" || i.name === "height") && e === "label" && Ai("The style value of `label` is deprecated for `" + i.name + "`"), i; }; -q2.parseImpl = function(r, e, t, n) { +z2.parseImpl = function(r, e, t, n) { var i = this; r = q5(r); var a = i.properties[r], o = e, s = i.types; @@ -27996,7 +28008,7 @@ q2.parseImpl = function(r, e, t, n) { return null; if (isNaN(e) && l.enums !== void 0) return e = o, k(); - if (l.integer && !c$(e) || l.min !== void 0 && (e < l.min || l.strictMin && e === l.min) || l.max !== void 0 && (e > l.max || l.strictMax && e === l.max)) + if (l.integer && !f$(e) || l.min !== void 0 && (e < l.min || l.strictMin && e === l.min) || l.max !== void 0 && (e > l.max || l.strictMax && e === l.max)) return null; var H = { name: r, @@ -28005,7 +28017,7 @@ q2.parseImpl = function(r, e, t, n) { units: L, bypass: t }; - return l.unitless || L !== "px" && L !== "em" ? H.pfValue = e : H.pfValue = L === "px" || !L ? e : this.getEmSizeInPixels() * e, (L === "ms" || L === "s") && (H.pfValue = L === "ms" ? e : 1e3 * e), (L === "deg" || L === "rad") && (H.pfValue = L === "rad" ? e : _K(e)), L === "%" && (H.pfValue = e / 100), H; + return l.unitless || L !== "px" && L !== "em" ? H.pfValue = e : H.pfValue = L === "px" || !L ? e : this.getEmSizeInPixels() * e, (L === "ms" || L === "s") && (H.pfValue = L === "ms" ? e : 1e3 * e), (L === "deg" || L === "rad") && (H.pfValue = L === "rad" ? e : wK(e)), L === "%" && (H.pfValue = e / 100), H; } else if (l.propList) { var q = [], W = "" + e; if (W !== "none") { @@ -28023,12 +28035,12 @@ q2.parseImpl = function(r, e, t, n) { bypass: t }; } else if (l.color) { - var Q = K7(e); - return Q ? { + var Z = K7(e); + return Z ? { name: r, - value: Q, - pfValue: Q, - strValue: "rgb(" + Q[0] + "," + Q[1] + "," + Q[2] + ")", + value: Z, + pfValue: Z, + strValue: "rgb(" + Z[0] + "," + Z[1] + "," + Z[2] + ")", // n.b. no spaces b/c of multiple support bypass: t } : null; @@ -28099,7 +28111,7 @@ Ku.css = function() { if (e.length === 1) for (var t = e[0], n = 0; n < r.properties.length; n++) { var i = r.properties[n], a = t[i.name]; - a === void 0 && (a = t[A2(i.name)]), a !== void 0 && this.cssRule(i.name, a); + a === void 0 && (a = t[C2(i.name)]), a !== void 0 && this.cssRule(i.name, a); } else e.length === 2 && this.cssRule(e[0], e[1]); return this; @@ -28125,7 +28137,7 @@ Ls.fromJson = function(r, e) { Ls.fromString = function(r, e) { return new Ls(r).fromString(e); }; -[js, Q1, nD, wh, z2, iD, Fo, q2].forEach(function(r) { +[js, Q1, nD, wh, U2, iD, Fo, z2].forEach(function(r) { kr(Ku, r); }); Ls.types = Ku.types; @@ -28133,7 +28145,7 @@ Ls.properties = Ku.properties; Ls.propertyGroups = Ku.propertyGroups; Ls.propertyGroupNames = Ku.propertyGroupNames; Ls.propertyGroupKeys = Ku.propertyGroupKeys; -var SJ = { +var OJ = { style: function(e) { if (e) { var t = this.setStyle(e); @@ -28149,7 +28161,7 @@ var SJ = { updateStyle: function() { this.mutableElements().updateStyle(); } -}, OJ = "single", Xg = { +}, TJ = "single", Xg = { autolock: function(e) { if (e !== void 0) this._private.autolock = !!e; @@ -28173,7 +28185,7 @@ var SJ = { }, selectionType: function(e) { var t = this._private; - if (t.selectionType == null && (t.selectionType = OJ), e !== void 0) + if (t.selectionType == null && (t.selectionType = TJ), e !== void 0) (e === "additive" || e === "single") && (t.selectionType = e); else return t.selectionType; @@ -28267,7 +28279,7 @@ var SJ = { if (Ar(e)) { var i = e; e = this.$(i); - } else if (h$(e)) { + } else if (v$(e)) { var a = e; n = { x1: a.x1, @@ -28314,7 +28326,7 @@ var SJ = { }, getZoomedViewport: function(e) { var t = this._private, n = t.pan, i = t.zoom, a, o, s = !1; - if (t.zoomingEnabled || (s = !0), Ht(e) ? o = e : ai(e) && (o = e.level, e.position != null ? a = M2(e.position, i, n) : e.renderedPosition != null && (a = e.renderedPosition), a != null && !t.panningEnabled && (s = !0)), o = o > t.maxZoom ? t.maxZoom : o, o = o < t.minZoom ? t.minZoom : o, s || !Ht(o) || o === i || a != null && (!Ht(a.x) || !Ht(a.y))) + if (t.zoomingEnabled || (s = !0), Ht(e) ? o = e : ai(e) && (o = e.level, e.position != null ? a = P2(e.position, i, n) : e.renderedPosition != null && (a = e.renderedPosition), a != null && !t.panningEnabled && (s = !0)), o = o > t.maxZoom ? t.maxZoom : o, o = o < t.minZoom ? t.minZoom : o, s || !Ht(o) || o === i || a != null && (!Ht(a.x) || !Ht(a.y))) return null; if (a != null) { var u = n, l = i, c = o, f = { @@ -28551,7 +28563,7 @@ var S1 = function(e) { max: s.maxZoom }); var c = function(p, g) { - var y = p.some(v$); + var y = p.some(p$); if (y) return Km.all(p).then(g); g(p); @@ -28713,10 +28725,10 @@ kr(jx, { } }); jx.$id = jx.getElementById; -[vJ, bJ, YF, yM, ex, wJ, mM, tx, SJ, Xg, E1].forEach(function(r) { +[pJ, _J, YF, gM, ex, xJ, yM, tx, OJ, Xg, E1].forEach(function(r) { kr(jx, r); }); -var TJ = { +var CJ = { fit: !0, // whether to fit the viewport to the graph directed: !1, @@ -28759,7 +28771,7 @@ var TJ = { return t; } // transform a given node position. Useful for changing flow direction in discrete layouts -}, CJ = { +}, AJ = { maximal: !1, // whether to shift nodes down their natural BFS depths in order to avoid upwards edges (DAGS only); setting acyclic to true sets maximal to true also acyclic: !1 @@ -28770,11 +28782,11 @@ var TJ = { return e.scratch("breadthfirst", t); }; function XF(r) { - this.options = kr({}, TJ, CJ, r); + this.options = kr({}, CJ, AJ, r); } XF.prototype.run = function() { - var r = this.options, e = r.cy, t = r.eles, n = t.nodes().filter(function(Z) { - return Z.isChildless(); + var r = this.options, e = r.cy, t = r.eles, n = t.nodes().filter(function(Q) { + return Q.isChildless(); }), i = t, a = r.directed, o = r.acyclic || r.maximal || r.maximalAdjustments > 0, s = !!r.boundingBox, u = zl(s ? r.boundingBox : structuredClone(e.extent())), l; if (rf(r.roots)) l = r.roots; @@ -28792,8 +28804,8 @@ XF.prototype.run = function() { var p = t.components(); l = e.collection(); for (var g = function() { - var ie = p[y], we = ie.maxDegree(!1), Ee = ie.filter(function(De) { - return De.degree(!1) === we; + var ie = p[y], we = ie.maxDegree(!1), Ee = ie.filter(function(Me) { + return Me.degree(!1) === we; }); l = l.add(Ee); }, y = 0; y < p.length; y++) @@ -28807,13 +28819,13 @@ XF.prototype.run = function() { depth: we }); }, x = function(ie, we) { - var Ee = Qy(ie), De = Ee.depth, Ie = Ee.index; - b[De][Ie] = null, ie.isChildless() && m(ie, we); + var Ee = Qy(ie), Me = Ee.depth, Ie = Ee.index; + b[Me][Ie] = null, ie.isChildless() && m(ie, we); }; i.bfs({ roots: l, directed: r.directed, - visit: function(ie, we, Ee, De, Ie) { + visit: function(ie, we, Ee, Me, Ie) { var Ye = ie[0], ot = Ye.id(); Ye.isChildless() && m(Ye, Ie), _[ot] = !0; } @@ -28824,21 +28836,21 @@ XF.prototype.run = function() { } var T = function(ie) { for (var we = b[ie], Ee = 0; Ee < we.length; Ee++) { - var De = we[Ee]; - if (De == null) { + var Me = we[Ee]; + if (Me == null) { we.splice(Ee, 1), Ee--; continue; } - i3(De, { + i3(Me, { depth: ie, index: Ee }); } }, P = function(ie, we) { - for (var Ee = Qy(ie), De = ie.incomers().filter(function(Dt) { + for (var Ee = Qy(ie), Me = ie.incomers().filter(function(Dt) { return Dt.isNode() && t.has(Dt); - }), Ie = -1, Ye = ie.id(), ot = 0; ot < De.length; ot++) { - var mt = De[ot], wt = Qy(mt); + }), Ie = -1, Ye = ie.id(), ot = 0; ot < Me.length; ot++) { + var mt = Me[ot], wt = Qy(mt); Ie = Math.max(Ie, wt.depth); } if (Ee.depth <= Ie) { @@ -28855,13 +28867,13 @@ XF.prototype.run = function() { }, B = function() { return I.shift(); }; - for (n.forEach(function(Z) { - return I.push(Z); + for (n.forEach(function(Q) { + return I.push(Q); }); I.length > 0; ) { var j = B(), z = P(j, k); if (z) - j.outgoers().filter(function(Z) { - return Z.isNode() && t.has(Z); + j.outgoers().filter(function(Q) { + return Q.isNode() && t.has(Q); }).forEach(L); else if (z === null) { Ai("Detected double maximal shift for node `" + j.id() + "`. Bailing maximal adjustment due to cycle. Use `options.maximal: true` only on DAGs."); @@ -28875,10 +28887,10 @@ XF.prototype.run = function() { var W = n[q], $ = W.layoutDimensions(r), J = $.w, X = $.h; H = Math.max(H, J, X); } - var Q = {}, ue = function(ie) { - if (Q[ie.id()]) - return Q[ie.id()]; - for (var we = Qy(ie).depth, Ee = ie.neighborhood(), De = 0, Ie = 0, Ye = 0; Ye < Ee.length; Ye++) { + var Z = {}, ue = function(ie) { + if (Z[ie.id()]) + return Z[ie.id()]; + for (var we = Qy(ie).depth, Ee = ie.neighborhood(), Me = 0, Ie = 0, Ye = 0; Ye < Ee.length; Ye++) { var ot = Ee[Ye]; if (!(ot.isEdge() || ot.isParent() || !n.has(ot))) { var mt = Qy(ot); @@ -28886,14 +28898,14 @@ XF.prototype.run = function() { var wt = mt.index, Mt = mt.depth; if (!(wt == null || Mt == null)) { var Dt = b[Mt].length; - Mt < we && (De += wt / Dt, Ie++); + Mt < we && (Me += wt / Dt, Ie++); } } } } - return Ie = Math.max(1, Ie), De = De / Ie, Ie === 0 && (De = 0), Q[ie.id()] = De, De; + return Ie = Math.max(1, Ie), Me = Me / Ie, Ie === 0 && (Me = 0), Z[ie.id()] = Me, Me; }, re = function(ie, we) { - var Ee = ue(ie), De = ue(we), Ie = Ee - De; + var Ee = ue(ie), Me = ue(we), Ie = Ee - Me; return Ie === 0 ? $7(ie.id(), we.id()) : Ie; }; r.depthSort !== void 0 && (re = r.depthSort); @@ -28911,11 +28923,11 @@ XF.prototype.run = function() { var ge = { x: u.x1 + u.w / 2, y: u.y1 + u.h / 2 - }, Oe = n.reduce(function(Z, ie) { + }, Oe = n.reduce(function(Q, ie) { return (function(we) { return { - w: Z.w === -1 ? we.w : (Z.w + we.w) / 2, - h: Z.h === -1 ? we.h : (Z.h + we.h) / 2 + w: Q.w === -1 ? we.w : (Q.w + we.w) / 2, + h: Q.h === -1 ? we.h : (Q.h + we.h) / 2 }; })(ie.boundingBox({ includeLabels: r.nodeDimensionsIncludeLabels @@ -28930,14 +28942,14 @@ XF.prototype.run = function() { s ? (u.h - r.padding * 2 - Oe.h) / (ne - 1) : (u.h - r.padding * 2 - Oe.h) / (ne + 1) ), H - ), Me = b.reduce(function(Z, ie) { - return Math.max(Z, ie.length); + ), De = b.reduce(function(Q, ie) { + return Math.max(Q, ie.length); }, 0), Ne = function(ie) { - var we = Qy(ie), Ee = we.depth, De = we.index; + var we = Qy(ie), Ee = we.depth, Me = we.index; if (r.circle) { var Ie = Math.min(u.w / 2 / ne, u.h / 2 / ne); Ie = Math.max(Ie, H); - var Ye = Ie * Ee + Ie - (ne > 0 && b[0].length <= 3 ? Ie / 2 : 0), ot = 2 * Math.PI / b[Ee].length * De; + var Ye = Ie * Ee + Ie - (ne > 0 && b[0].length <= 3 ? Ie / 2 : 0), ot = 2 * Math.PI / b[Ee].length * Me; return Ee === 0 && b[0].length === 1 && (Ye = 1), { x: ge.x + Ye * Math.cos(ot), y: ge.y + Ye * Math.sin(ot) @@ -28947,28 +28959,28 @@ XF.prototype.run = function() { // only one depth mt === 1 ? 0 : ( // inside a bounding box, no need for left & right padding - s ? (u.w - r.padding * 2 - Oe.w) / ((r.grid ? Me : mt) - 1) : (u.w - r.padding * 2 - Oe.w) / ((r.grid ? Me : mt) + 1) + s ? (u.w - r.padding * 2 - Oe.w) / ((r.grid ? De : mt) - 1) : (u.w - r.padding * 2 - Oe.w) / ((r.grid ? De : mt) + 1) ), H ), Mt = { - x: ge.x + (De + 1 - (mt + 1) / 2) * wt, + x: ge.x + (Me + 1 - (mt + 1) / 2) * wt, y: ge.y + (Ee + 1 - (ne + 1) / 2) * ke }; return Mt; } - }, Ce = { + }, Te = { downward: 0, leftward: 90, upward: 180, rightward: -90 }; - Object.keys(Ce).indexOf(r.direction) === -1 && Ia("Invalid direction '".concat(r.direction, "' specified for breadthfirst layout. Valid values are: ").concat(Object.keys(Ce).join(", "))); + Object.keys(Te).indexOf(r.direction) === -1 && Ia("Invalid direction '".concat(r.direction, "' specified for breadthfirst layout. Valid values are: ").concat(Object.keys(Te).join(", "))); var Y = function(ie) { - return G$(Ne(ie), u, Ce[r.direction]); + return V$(Ne(ie), u, Te[r.direction]); }; return t.nodes().layoutPositions(this, r, Y), this; }; -var AJ = { +var RJ = { fit: !0, // whether to fit the viewport to the graph padding: 30, @@ -29011,7 +29023,7 @@ var AJ = { // transform a given node position. Useful for changing flow direction in discrete layouts }; function $F(r) { - this.options = kr({}, AJ, r); + this.options = kr({}, RJ, r); } $F.prototype.run = function() { var r = this.options, e = r, t = r.cy, n = e.eles, i = e.counterclockwise !== void 0 ? !e.counterclockwise : e.clockwise, a = n.nodes().not(":parent"); @@ -29042,7 +29054,7 @@ $F.prototype.run = function() { }; return n.nodes().layoutPositions(this, e, x), this; }; -var RJ = { +var PJ = { fit: !0, // whether to fit the viewport to the graph padding: 30, @@ -29095,7 +29107,7 @@ var RJ = { // transform a given node position. Useful for changing flow direction in discrete layouts }; function KF(r) { - this.options = kr({}, RJ, r); + this.options = kr({}, PJ, r); } KF.prototype.run = function() { for (var r = this.options, e = r, t = e.counterclockwise !== void 0 ? !e.counterclockwise : e.clockwise, n = r.cy, i = e.eles, a = i.nodes().not(":parent"), o = zl(e.boundingBox ? e.boundingBox : { @@ -29118,8 +29130,8 @@ KF.prototype.run = function() { var p = a[h], g = p.layoutDimensions(e); l = Math.max(l, g.w, g.h); } - u.sort(function(ke, Me) { - return Me.value - ke.value; + u.sort(function(ke, De) { + return De.value - ke.value; }); for (var y = e.levelWidth(a), b = [[]], _ = b[0], m = 0; m < u.length; m++) { var x = u[m]; @@ -29144,8 +29156,8 @@ KF.prototype.run = function() { } if (e.equidistant) { for (var W = 0, $ = 0, J = 0; J < b.length; J++) { - var X = b[J], Q = X.r - $; - W = Math.max(W, Q); + var X = b[J], Z = X.r - $; + W = Math.max(W, Z); } $ = 0; for (var ue = 0; ue < b.length; ue++) { @@ -29162,11 +29174,11 @@ KF.prototype.run = function() { ne[de.node.id()] = Oe; } return i.nodes().layoutPositions(this, e, function(ke) { - var Me = ke.id(); - return ne[Me]; + var De = ke.id(); + return ne[De]; }), this; }; -var NO, PJ = { +var IO, MJ = { // Called on `layoutready` ready: function() { }, @@ -29232,8 +29244,8 @@ var NO, PJ = { // Lower temperature threshold (below this point the layout will end) minTemp: 1 }; -function G2(r) { - this.options = kr({}, PJ, r), this.options.layout = this; +function q2(r) { + this.options = kr({}, MJ, r), this.options.layout = this; var e = this.options.eles.nodes(), t = this.options.eles.edges(), n = t.filter(function(i) { var a = i.source().data("id"), o = i.target().data("id"), s = e.some(function(l) { return l.data("id") === a; @@ -29244,18 +29256,18 @@ function G2(r) { }); this.options.eles = this.options.eles.not(n); } -G2.prototype.run = function() { +q2.prototype.run = function() { var r = this.options, e = r.cy, t = this; t.stopped = !1, (r.animate === !0 || r.animate === !1) && t.emit({ type: "layoutstart", layout: t - }), r.debug === !0 ? NO = !0 : NO = !1; - var n = MJ(e, t, r); - NO && kJ(n), r.randomize && IJ(n); + }), r.debug === !0 ? IO = !0 : IO = !1; + var n = DJ(e, t, r); + IO && IJ(n), r.randomize && NJ(n); var i = vv(), a = function() { - NJ(n, e, r), r.fit === !0 && e.fit(r.padding); + LJ(n, e, r), r.fit === !0 && e.fit(r.padding); }, o = function(d) { - return !(t.stopped || d >= r.numIter || (LJ(n, r), n.temperature = n.temperature * r.coolingFactor, n.temperature < r.minTemp)); + return !(t.stopped || d >= r.numIter || (jJ(n, r), n.temperature = n.temperature * r.coolingFactor, n.temperature < r.minTemp)); }, s = function() { if (r.animate === !0 || r.animate === !1) a(), t.one("layoutstop", r.stop), t.emit({ @@ -29286,13 +29298,13 @@ G2.prototype.run = function() { } return this; }; -G2.prototype.stop = function() { +q2.prototype.stop = function() { return this.stopped = !0, this.thread && this.thread.stop(), this.emit("layoutstop"), this; }; -G2.prototype.destroy = function() { +q2.prototype.destroy = function() { return this.thread && this.thread.stop(), this; }; -var MJ = function(e, t, n) { +var DJ = function(e, t, n) { for (var i = n.eles.edges(), a = n.eles.nodes(), o = zl(n.boundingBox ? n.boundingBox : { x1: 0, y1: 0, @@ -29342,7 +29354,7 @@ var MJ = function(e, t, n) { L.id = k.data("id"), L.sourceId = k.data("source"), L.targetId = k.data("target"); var B = Ya(n.idealEdgeLength) ? n.idealEdgeLength(k) : n.idealEdgeLength, j = Ya(n.edgeElasticity) ? n.edgeElasticity(k) : n.edgeElasticity, z = s.idToIndex[L.sourceId], H = s.idToIndex[L.targetId], q = s.indexToGraph[z], W = s.indexToGraph[H]; if (q != W) { - for (var $ = DJ(L.sourceId, L.targetId, s), J = s.graphSet[$], X = 0, y = s.layoutNodes[z]; J.indexOf(y.id) === -1; ) + for (var $ = kJ(L.sourceId, L.targetId, s), J = s.graphSet[$], X = 0, y = s.layoutNodes[z]; J.indexOf(y.id) === -1; ) y = s.layoutNodes[s.idToIndex[y.parentId]], X++; for (y = s.layoutNodes[H]; J.indexOf(y.id) === -1; ) y = s.layoutNodes[s.idToIndex[y.parentId]], X++; @@ -29351,7 +29363,7 @@ var MJ = function(e, t, n) { L.idealLength = B, L.elasticity = j, s.layoutEdges.push(L); } return s; -}, DJ = function(e, t, n) { +}, kJ = function(e, t, n) { var i = ZF(e, t, 0, n); return 2 > i.count ? 0 : i.graph; }, ZF = function(e, t, n, i) { @@ -29377,7 +29389,7 @@ var MJ = function(e, t, n) { count: o, graph: n }; -}, kJ, IJ = function(e, t) { +}, IJ, NJ = function(e, t) { for (var n = e.clientWidth, i = e.clientHeight, a = 0; a < e.nodeSize; a++) { var o = e.layoutNodes[a]; o.children.length === 0 && !o.isLocked && (o.positionX = Math.random() * n, o.positionY = Math.random() * i); @@ -29406,36 +29418,36 @@ var MJ = function(e, t, n) { y: u.positionY }; }; -}, NJ = function(e, t, n) { +}, LJ = function(e, t, n) { var i = n.layout, a = n.eles.nodes(), o = QF(e, n, a); a.positions(o), e.ready !== !0 && (e.ready = !0, i.one("layoutready", n.ready), i.emit({ type: "layoutready", layout: this })); -}, LJ = function(e, t, n) { - jJ(e, t), UJ(e), zJ(e, t), qJ(e), GJ(e); -}, jJ = function(e, t) { +}, jJ = function(e, t, n) { + BJ(e, t), zJ(e), qJ(e, t), GJ(e), VJ(e); +}, BJ = function(e, t) { for (var n = 0; n < e.graphSet.length; n++) for (var i = e.graphSet[n], a = i.length, o = 0; o < a; o++) for (var s = e.layoutNodes[e.idToIndex[i[o]]], u = o + 1; u < a; u++) { var l = e.layoutNodes[e.idToIndex[i[u]]]; - BJ(s, l, e, t); + FJ(s, l, e, t); } }, a3 = function(e) { return -1 + 2 * e * Math.random(); -}, BJ = function(e, t, n, i) { +}, FJ = function(e, t, n, i) { var a = e.cmptId, o = t.cmptId; if (!(a !== o && !n.isCompound)) { var s = t.positionX - e.positionX, u = t.positionY - e.positionY, l = 1; s === 0 && u === 0 && (s = a3(l), u = a3(l)); - var c = FJ(e, t, s, u); + var c = UJ(e, t, s, u); if (c > 0) var f = i.nodeOverlap * c, d = Math.sqrt(s * s + u * u), h = f * s / d, p = f * u / d; else var g = Bx(e, s, u), y = Bx(t, -1 * s, -1 * u), b = y.x - g.x, _ = y.y - g.y, m = b * b + _ * _, d = Math.sqrt(m), f = (e.nodeRepulsion + t.nodeRepulsion) / m, h = f * b / d, p = f * _ / d; e.isLocked || (e.offsetX -= h, e.offsetY -= p), t.isLocked || (t.offsetX += h, t.offsetY += p); } -}, FJ = function(e, t, n, i) { +}, UJ = function(e, t, n, i) { if (n > 0) var a = e.maxX - t.minX; else @@ -29448,7 +29460,7 @@ var MJ = function(e, t, n) { }, Bx = function(e, t, n) { var i = e.positionX, a = e.positionY, o = e.height || 1, s = e.width || 1, u = n / t, l = o / s, c = {}; return t === 0 && 0 < n || t === 0 && 0 > n ? (c.x = i, c.y = a + o / 2, c) : 0 < t && -1 * l <= u && u <= l ? (c.x = i + s / 2, c.y = a + s * n / 2 / t, c) : 0 > t && -1 * l <= u && u <= l ? (c.x = i - s / 2, c.y = a - s * n / 2 / t, c) : 0 < n && (u <= -1 * l || u >= l) ? (c.x = i + o * t / 2 / n, c.y = a + o / 2, c) : (0 > n && (u <= -1 * l || u >= l) && (c.x = i - o * t / 2 / n, c.y = a - o / 2), c); -}, UJ = function(e, t) { +}, zJ = function(e, t) { for (var n = 0; n < e.edgeSize; n++) { var i = e.layoutEdges[n], a = e.idToIndex[i.sourceId], o = e.layoutNodes[a], s = e.idToIndex[i.targetId], u = e.layoutNodes[s], l = u.positionX - o.positionX, c = u.positionY - o.positionY; if (!(l === 0 && c === 0)) { @@ -29460,7 +29472,7 @@ var MJ = function(e, t, n) { o.isLocked || (o.offsetX += b, o.offsetY += _), u.isLocked || (u.offsetX -= b, u.offsetY -= _); } } -}, zJ = function(e, t) { +}, qJ = function(e, t) { if (t.gravity !== 0) for (var n = 1, i = 0; i < e.graphSet.length; i++) { var a = e.graphSet[i], o = a.length; @@ -29479,7 +29491,7 @@ var MJ = function(e, t, n) { } } } -}, qJ = function(e, t) { +}, GJ = function(e, t) { var n = [], i = 0, a = -1; for (n.push.apply(n, e.graphSet[0]), a += e.graphSet[0].length; i <= a; ) { var o = n[i++], s = e.idToIndex[o], u = e.layoutNodes[s], l = u.children; @@ -29491,7 +29503,7 @@ var MJ = function(e, t, n) { u.offsetX = 0, u.offsetY = 0; } } -}, GJ = function(e, t) { +}, VJ = function(e, t) { for (var n = 0; n < e.nodeSize; n++) { var i = e.layoutNodes[n]; 0 < i.children.length && (i.maxX = void 0, i.minX = void 0, i.maxY = void 0, i.minY = void 0); @@ -29499,7 +29511,7 @@ var MJ = function(e, t, n) { for (var n = 0; n < e.nodeSize; n++) { var i = e.layoutNodes[n]; if (!(0 < i.children.length || i.isLocked)) { - var a = VJ(i.offsetX, i.offsetY, e.temperature); + var a = HJ(i.offsetX, i.offsetY, e.temperature); i.positionX += a.x, i.positionY += a.y, i.offsetX = 0, i.offsetY = 0, i.minX = i.positionX - i.width, i.maxX = i.positionX + i.width, i.minY = i.positionY - i.height, i.maxY = i.positionY + i.height, JF(i, e); } } @@ -29507,7 +29519,7 @@ var MJ = function(e, t, n) { var i = e.layoutNodes[n]; 0 < i.children.length && !i.isLocked && (i.positionX = (i.maxX + i.minX) / 2, i.positionY = (i.maxY + i.minY) / 2, i.width = i.maxX - i.minX, i.height = i.maxY - i.minY); } -}, VJ = function(e, t, n) { +}, HJ = function(e, t, n) { var i = Math.sqrt(e * e + t * t); if (i > n) var a = { @@ -29556,7 +29568,7 @@ var MJ = function(e, t, n) { h += c.w + t.componentSpacing, g += c.w + t.componentSpacing, y = Math.max(y, c.h), g > b && (p += y + t.componentSpacing, h = 0, g = 0, y = 0); } } -}, HJ = { +}, WJ = { fit: !0, // whether to fit the viewport to the graph padding: 30, @@ -29602,7 +29614,7 @@ var MJ = function(e, t, n) { // transform a given node position. Useful for changing flow direction in discrete layouts }; function eU(r) { - this.options = kr({}, HJ, r); + this.options = kr({}, WJ, r); } eU.prototype.run = function() { var r = this.options, e = r, t = r.cy, n = e.eles, i = n.nodes().not(":parent"); @@ -29676,7 +29688,7 @@ eU.prototype.run = function() { q[$.id()] = X, B(X.row, X.col); } } - var Q = function(re, ne) { + var Z = function(re, ne) { var le, ce; if (re.locked() || re.isParent()) return !1; @@ -29693,11 +29705,11 @@ eU.prototype.run = function() { y: ce }; }; - i.layoutPositions(this, e, Q); + i.layoutPositions(this, e, Z); } return this; }; -var WJ = { +var YJ = { ready: function() { }, // on layoutready @@ -29706,7 +29718,7 @@ var WJ = { // on layoutstop }; function aD(r) { - this.options = kr({}, WJ, r); + this.options = kr({}, YJ, r); } aD.prototype.run = function() { var r = this.options, e = r.eles, t = this; @@ -29720,7 +29732,7 @@ aD.prototype.run = function() { aD.prototype.stop = function() { return this; }; -var YJ = { +var XJ = { positions: void 0, // map of (node id) => (position obj); or function(node){ return somPos; } zoom: void 0, @@ -29753,13 +29765,13 @@ var YJ = { // transform a given node position. Useful for changing flow direction in discrete layouts }; function tU(r) { - this.options = kr({}, YJ, r); + this.options = kr({}, XJ, r); } tU.prototype.run = function() { var r = this.options, e = r.eles, t = e.nodes(), n = Ya(r.positions); function i(a) { if (r.positions == null) - return pK(a.position()); + return gK(a.position()); if (n) return r.positions(a); var o = r.positions[a._private.data.id]; @@ -29770,7 +29782,7 @@ tU.prototype.run = function() { return a.locked() || s == null ? !1 : s; }), this; }; -var XJ = { +var $J = { fit: !0, // whether to fit to viewport padding: 30, @@ -29797,7 +29809,7 @@ var XJ = { // transform a given node position. Useful for changing flow direction in discrete layouts }; function rU(r) { - this.options = kr({}, XJ, r); + this.options = kr({}, $J, r); } rU.prototype.run = function() { var r = this.options, e = r.cy, t = r.eles, n = zl(r.boundingBox ? r.boundingBox : { @@ -29813,7 +29825,7 @@ rU.prototype.run = function() { }; return t.nodes().layoutPositions(this, r, i), this; }; -var $J = [{ +var KJ = [{ name: "breadthfirst", impl: XF }, { @@ -29824,7 +29836,7 @@ var $J = [{ impl: KF }, { name: "cose", - impl: G2 + impl: q2 }, { name: "grid", impl: eU @@ -30073,11 +30085,11 @@ ry.findNearestElements = function(r, e, t, n) { var T = E._private, P = T.rscratch, I = E.pstyle("width").pfValue, k = E.pstyle("arrow-scale").value, L = I / 2 + c, B = L * L, j = L * 2, W = T.source, $ = T.target, z; if (P.edgeType === "segments" || P.edgeType === "straight" || P.edgeType === "haystack") { for (var H = P.allpts, q = 0; q + 3 < H.length; q += 2) - if (RK(r, e, H[q], H[q + 1], H[q + 2], H[q + 3], j) && B > (z = IK(r, e, H[q], H[q + 1], H[q + 2], H[q + 3]))) + if (PK(r, e, H[q], H[q + 1], H[q + 2], H[q + 3], j) && B > (z = NK(r, e, H[q], H[q + 1], H[q + 2], H[q + 3]))) return y(E, z), !0; } else if (P.edgeType === "bezier" || P.edgeType === "multibezier" || P.edgeType === "self" || P.edgeType === "compound") { for (var H = P.allpts, q = 0; q + 5 < P.allpts.length; q += 4) - if (PK(r, e, H[q], H[q + 1], H[q + 2], H[q + 3], H[q + 4], H[q + 5], j) && B > (z = kK(r, e, H[q], H[q + 1], H[q + 2], H[q + 3], H[q + 4], H[q + 5]))) + if (MK(r, e, H[q], H[q + 1], H[q + 2], H[q + 3], H[q + 4], H[q + 5], j) && B > (z = IK(r, e, H[q], H[q + 1], H[q + 2], H[q + 3], H[q + 4], H[q + 5]))) return y(E, z), !0; } for (var W = W || T.source, $ = $ || T.target, J = i.getArrowWidth(I, k), X = [{ @@ -30101,13 +30113,13 @@ ry.findNearestElements = function(r, e, t, n) { y: P.midY, angle: P.midtgtArrowAngle }], q = 0; q < X.length; q++) { - var Q = X[q], ue = a.arrowShapes[E.pstyle(Q.name + "-arrow-shape").value], re = E.pstyle("width").pfValue; - if (ue.roughCollide(r, e, J, Q.angle, { - x: Q.x, - y: Q.y - }, re, c) && ue.collide(r, e, J, Q.angle, { - x: Q.x, - y: Q.y + var Z = X[q], ue = a.arrowShapes[E.pstyle(Z.name + "-arrow-shape").value], re = E.pstyle("width").pfValue; + if (ue.roughCollide(r, e, J, Z.angle, { + x: Z.x, + y: Z.y + }, re, c) && ue.collide(r, e, J, Z.angle, { + x: Z.x, + y: Z.y }, re, c)) return y(E), !0; } @@ -30121,14 +30133,14 @@ ry.findNearestElements = function(r, e, t, n) { T ? k = T + "-" : k = "", E.boundingBox(); var L = P.labelBounds[T || "main"], B = E.pstyle(k + "label").value, j = E.pstyle("text-events").strValue === "yes"; if (!(!j || !B)) { - var z = m(P.rscratch, "labelX", T), H = m(P.rscratch, "labelY", T), q = m(P.rscratch, "labelAngle", T), W = E.pstyle(k + "text-margin-x").pfValue, $ = E.pstyle(k + "text-margin-y").pfValue, J = L.x1 - I - W, X = L.x2 + I - W, Q = L.y1 - I - $, ue = L.y2 + I - $; + var z = m(P.rscratch, "labelX", T), H = m(P.rscratch, "labelY", T), q = m(P.rscratch, "labelAngle", T), W = E.pstyle(k + "text-margin-x").pfValue, $ = E.pstyle(k + "text-margin-y").pfValue, J = L.x1 - I - W, X = L.x2 + I - W, Z = L.y1 - I - $, ue = L.y2 + I - $; if (q) { var re = Math.cos(q), ne = Math.sin(q), le = function(Oe, ke) { return Oe = Oe - z, ke = ke - H, { x: Oe * re - ke * ne + z, y: Oe * ne + ke * re + H }; - }, ce = le(J, Q), pe = le(J, ue), fe = le(X, Q), se = le(X, ue), de = [ + }, ce = le(J, Z), pe = le(J, ue), fe = le(X, Z), se = le(X, ue), de = [ // with the margin added after the rotation is applied ce.x + W, ce.y + $, @@ -30172,20 +30184,20 @@ ry.getAllInBox = function(r, e, t, n) { x: d.x1, y: d.y2 }], p = [[h[0], h[1]], [h[1], h[2]], [h[2], h[3]], [h[3], h[0]]]; - function g(Oe, ke, Me) { - return Tc(Oe, ke, Me); + function g(Oe, ke, De) { + return Tc(Oe, ke, De); } function y(Oe, ke) { - var Me = Oe._private, Ne = o, Ce = ""; + var De = Oe._private, Ne = o, Te = ""; Oe.boundingBox(); - var Y = Me.labelBounds.main; + var Y = De.labelBounds.main; if (!Y) return null; - var Z = g(Me.rscratch, "labelX", ke), ie = g(Me.rscratch, "labelY", ke), we = g(Me.rscratch, "labelAngle", ke), Ee = Oe.pstyle(Ce + "text-margin-x").pfValue, De = Oe.pstyle(Ce + "text-margin-y").pfValue, Ie = Y.x1 - Ne - Ee, Ye = Y.x2 + Ne - Ee, ot = Y.y1 - Ne - De, mt = Y.y2 + Ne - De; + var Q = g(De.rscratch, "labelX", ke), ie = g(De.rscratch, "labelY", ke), we = g(De.rscratch, "labelAngle", ke), Ee = Oe.pstyle(Te + "text-margin-x").pfValue, Me = Oe.pstyle(Te + "text-margin-y").pfValue, Ie = Y.x1 - Ne - Ee, Ye = Y.x2 + Ne - Ee, ot = Y.y1 - Ne - Me, mt = Y.y2 + Ne - Me; if (we) { var wt = Math.cos(we), Mt = Math.sin(we), Dt = function(tt, _e) { - return tt = tt - Z, _e = _e - ie, { - x: tt * wt - _e * Mt + Z, + return tt = tt - Q, _e = _e - ie, { + x: tt * wt - _e * Mt + Q, y: tt * Mt + _e * wt + ie }; }; @@ -30205,11 +30217,11 @@ ry.getAllInBox = function(r, e, t, n) { y: mt }]; } - function b(Oe, ke, Me, Ne) { - function Ce(Y, Z, ie) { - return (ie.y - Y.y) * (Z.x - Y.x) > (Z.y - Y.y) * (ie.x - Y.x); + function b(Oe, ke, De, Ne) { + function Te(Y, Q, ie) { + return (ie.y - Y.y) * (Q.x - Y.x) > (Q.y - Y.y) * (ie.x - Y.x); } - return Ce(Oe, Me, Ne) !== Ce(ke, Me, Ne) && Ce(Oe, ke, Me) !== Ce(Oe, ke, Ne); + return Te(Oe, De, Ne) !== Te(ke, De, Ne) && Te(Oe, ke, De) !== Te(Oe, ke, Ne); } for (var _ = 0; _ < i.length; _++) { var m = i[_]; @@ -30226,7 +30238,7 @@ ry.getAllInBox = function(r, e, t, n) { var I = !1; if (E && S) { var k = y(x); - k && kS(k, h) && (s.push(x), I = !0); + k && DS(k, h) && (s.push(x), I = !0); } !I && cF(d, P) && s.push(x); } else if (O === "overlap" && $5(d, P)) { @@ -30250,11 +30262,11 @@ ry.getAllInBox = function(r, e, t, n) { x: L.x1, y: L.y2 }]; - if (kS(B, h)) + if (DS(B, h)) s.push(x); else { var j = y(x); - j && kS(j, h) && s.push(x); + j && DS(j, h) && s.push(x); } } } else { @@ -30273,17 +30285,17 @@ ry.getAllInBox = function(r, e, t, n) { J && s.push(z); } else q.edgeType === "straight" && s.push(z); } else if (W === "overlap") { - var Q = !1; + var Z = !1; if (q.startX != null && q.startY != null && q.endX != null && q.endY != null && (pp(d, q.startX, q.startY) || pp(d, q.endX, q.endY))) - s.push(z), Q = !0; - else if (!Q && q.edgeType === "haystack") { + s.push(z), Z = !0; + else if (!Z && q.edgeType === "haystack") { for (var ue = H.rstyle.haystackPts, re = 0; re < ue.length; re++) if (CI(d, ue[re])) { - s.push(z), Q = !0; + s.push(z), Z = !0; break; } } - if (!Q) { + if (!Z) { var ne = H.rstyle.bezierPts || H.rstyle.linePts || H.rstyle.haystackPts; if ((!ne || ne.length < 2) && q.edgeType === "straight" && q.startX != null && q.startY != null && q.endX != null && q.endY != null && (ne = [{ x: q.startX, @@ -30296,11 +30308,11 @@ ry.getAllInBox = function(r, e, t, n) { for (var ce = ne[le], pe = ne[le + 1], fe = 0; fe < p.length; fe++) { var se = Uo(p[fe], 2), de = se[0], ge = se[1]; if (b(ce, pe, de, ge)) { - s.push(z), Q = !0; + s.push(z), Z = !0; break; } } - if (Q) break; + if (Z) break; } } } @@ -30364,16 +30376,16 @@ Fx.getArrowWidth = Fx.getArrowHeight = function(r, e) { var t = this.arrowWidthCache = this.arrowWidthCache || {}, n = t[r + ", " + e]; return n || (n = Math.max(Math.pow(r * 13.37, 0.9), 29) * e, t[r + ", " + e] = n, n); }; -var bM, _M, ph = {}, Df = {}, l3, c3, Ng, rx, tv, Eg, Ag, sh, Jy, _w, iU, aU, wM, xM, f3, d3 = function(e, t, n) { +var mM, bM, ph = {}, Df = {}, l3, c3, Ng, rx, tv, Eg, Ag, sh, Jy, _w, iU, aU, _M, wM, f3, d3 = function(e, t, n) { n.x = t.x - e.x, n.y = t.y - e.y, n.len = Math.sqrt(n.x * n.x + n.y * n.y), n.nx = n.x / n.len, n.ny = n.y / n.len, n.ang = Math.atan2(n.ny, n.nx); -}, KJ = function(e, t) { +}, ZJ = function(e, t) { t.x = e.x * -1, t.y = e.y * -1, t.nx = e.nx * -1, t.ny = e.ny * -1, t.ang = e.ang > 0 ? -(Math.PI - e.ang) : Math.PI + e.ang; -}, ZJ = function(e, t, n, i, a) { - if (e !== f3 ? d3(t, e, ph) : KJ(Df, ph), d3(t, n, Df), l3 = ph.nx * Df.ny - ph.ny * Df.nx, c3 = ph.nx * Df.nx - ph.ny * -Df.ny, tv = Math.asin(Math.max(-1, Math.min(1, l3))), Math.abs(tv) < 1e-6) { - bM = t.x, _M = t.y, Ag = Jy = 0; +}, QJ = function(e, t, n, i, a) { + if (e !== f3 ? d3(t, e, ph) : ZJ(Df, ph), d3(t, n, Df), l3 = ph.nx * Df.ny - ph.ny * Df.nx, c3 = ph.nx * Df.nx - ph.ny * -Df.ny, tv = Math.asin(Math.max(-1, Math.min(1, l3))), Math.abs(tv) < 1e-6) { + mM = t.x, bM = t.y, Ag = Jy = 0; return; } - Ng = 1, rx = !1, c3 < 0 ? tv < 0 ? tv = Math.PI + tv : (tv = Math.PI - tv, Ng = -1, rx = !0) : tv > 0 && (Ng = -1, rx = !0), t.radius !== void 0 ? Jy = t.radius : Jy = i, Eg = tv / 2, _w = Math.min(ph.len / 2, Df.len / 2), a ? (sh = Math.abs(Math.cos(Eg) * Jy / Math.sin(Eg)), sh > _w ? (sh = _w, Ag = Math.abs(sh * Math.sin(Eg) / Math.cos(Eg))) : Ag = Jy) : (sh = Math.min(_w, Jy), Ag = Math.abs(sh * Math.sin(Eg) / Math.cos(Eg))), wM = t.x + Df.nx * sh, xM = t.y + Df.ny * sh, bM = wM - Df.ny * Ag * Ng, _M = xM + Df.nx * Ag * Ng, iU = t.x + ph.nx * sh, aU = t.y + ph.ny * sh, f3 = t; + Ng = 1, rx = !1, c3 < 0 ? tv < 0 ? tv = Math.PI + tv : (tv = Math.PI - tv, Ng = -1, rx = !0) : tv > 0 && (Ng = -1, rx = !0), t.radius !== void 0 ? Jy = t.radius : Jy = i, Eg = tv / 2, _w = Math.min(ph.len / 2, Df.len / 2), a ? (sh = Math.abs(Math.cos(Eg) * Jy / Math.sin(Eg)), sh > _w ? (sh = _w, Ag = Math.abs(sh * Math.sin(Eg) / Math.cos(Eg))) : Ag = Jy) : (sh = Math.min(_w, Jy), Ag = Math.abs(sh * Math.sin(Eg) / Math.cos(Eg))), _M = t.x + Df.nx * sh, wM = t.y + Df.ny * sh, mM = _M - Df.ny * Ag * Ng, bM = wM + Df.nx * Ag * Ng, iU = t.x + ph.nx * sh, aU = t.y + ph.ny * sh, f3 = t; }; function oU(r, e) { e.radius === 0 ? r.lineTo(e.cx, e.cy) : r.arc(e.cx, e.cy, e.radius, e.startAngle, e.endAngle, e.counterClockwise); @@ -30391,20 +30403,20 @@ function sD(r, e, t, n) { startAngle: void 0, endAngle: void 0, counterClockwise: void 0 - } : (ZJ(r, e, t, n, i), { - cx: bM, - cy: _M, + } : (QJ(r, e, t, n, i), { + cx: mM, + cy: bM, radius: Ag, startX: iU, startY: aU, - stopX: wM, - stopY: xM, + stopX: _M, + stopY: wM, startAngle: ph.ang + Math.PI / 2 * Ng, endAngle: Df.ang - Math.PI / 2 * Ng, counterClockwise: rx }); } -var O1 = 0.01, QJ = Math.sqrt(2 * O1), Zu = {}; +var O1 = 0.01, JJ = Math.sqrt(2 * O1), Zu = {}; Zu.findMidptPtsEtc = function(r, e) { var t = e.posPts, n = e.intersectionPts, i = e.vectorNormInverse, a, o = r.pstyle("source-endpoint"), s = r.pstyle("target-endpoint"), u = o.units != null && s.units != null, l = function(S, O, E, T) { var P = T - O, I = E - S, k = Math.sqrt(I * I + P * P); @@ -30519,8 +30531,8 @@ Zu.findTaxiPoints = function(r, e) { !(z && (x || O)) && (_ === s && W < 0 || _ === u && W > 0 || _ === a && W > 0 || _ === o && W < 0) && ($ *= -1, q = $ * Math.abs(q), J = !0); var X; if (x) { - var Q = S < 0 ? 1 + S : S; - X = Q * q; + var Z = S < 0 ? 1 + S : S; + X = Z * q; } else { var ue = S < 0 ? q : 0; X = ue + S * $; @@ -30535,18 +30547,18 @@ Zu.findTaxiPoints = function(r, e) { var se = (c.x1 + c.x2) / 2, de = c.y1, ge = c.y2; t.segpts = [se, de, se, ge]; } else if (fe) { - var Oe = (c.y1 + c.y2) / 2, ke = c.x1, Me = c.x2; - t.segpts = [ke, Oe, Me, Oe]; + var Oe = (c.y1 + c.y2) / 2, ke = c.x1, De = c.x2; + t.segpts = [ke, Oe, De, Oe]; } else t.segpts = [c.x1, c.y2]; } else { - var Ne = Math.abs(W) <= f / 2, Ce = Math.abs(k) <= p / 2; + var Ne = Math.abs(W) <= f / 2, Te = Math.abs(k) <= p / 2; if (Ne) { - var Y = (c.y1 + c.y2) / 2, Z = c.x1, ie = c.x2; - t.segpts = [Z, Y, ie, Y]; - } else if (Ce) { - var we = (c.x1 + c.x2) / 2, Ee = c.y1, De = c.y2; - t.segpts = [we, Ee, we, De]; + var Y = (c.y1 + c.y2) / 2, Q = c.x1, ie = c.x2; + t.segpts = [Q, Y, ie, Y]; + } else if (Te) { + var we = (c.x1 + c.x2) / 2, Ee = c.y1, Me = c.y2; + t.segpts = [we, Ee, we, Me]; } else t.segpts = [c.x2, c.y1]; } @@ -30609,8 +30621,8 @@ Zu.tryToCorrectInvalidPoints = function(r, e) { // *2 radius guarantees outside shape x: t.ctrlpts[0] + $.x * 2 * J, y: t.ctrlpts[1] + $.y * 2 * J - }, Q = c.intersectLine(i.x, i.y, s, u, X.x, X.y, 0, d, p); - P ? (t.ctrlpts[0] = t.ctrlpts[0] + $.x * (S - T), t.ctrlpts[1] = t.ctrlpts[1] + $.y * (S - T)) : (t.ctrlpts[0] = Q[0] + $.x * S, t.ctrlpts[1] = Q[1] + $.y * S); + }, Z = c.intersectLine(i.x, i.y, s, u, X.x, X.y, 0, d, p); + P ? (t.ctrlpts[0] = t.ctrlpts[0] + $.x * (S - T), t.ctrlpts[1] = t.ctrlpts[1] + $.y * (S - T)) : (t.ctrlpts[0] = Z[0] + $.x * S, t.ctrlpts[1] = Z[1] + $.y * S); } I && this.findEndpoints(r); } @@ -30714,7 +30726,7 @@ Zu.findEdgeControlPoints = function(r) { var $ = q; q = W, W = $; } - var J = B.srcPos = q.position(), X = B.tgtPos = W.position(), Q = B.srcW = q.outerWidth(), ue = B.srcH = q.outerHeight(), re = B.tgtW = W.outerWidth(), ne = B.tgtH = W.outerHeight(), le = B.srcShape = t.nodeShapes[e.getNodeShape(q)], ce = B.tgtShape = t.nodeShapes[e.getNodeShape(W)], pe = B.srcCornerRadius = q.pstyle("corner-radius").value === "auto" ? "auto" : q.pstyle("corner-radius").pfValue, fe = B.tgtCornerRadius = W.pstyle("corner-radius").value === "auto" ? "auto" : W.pstyle("corner-radius").pfValue, se = B.tgtRs = W._private.rscratch, de = B.srcRs = q._private.rscratch; + var J = B.srcPos = q.position(), X = B.tgtPos = W.position(), Z = B.srcW = q.outerWidth(), ue = B.srcH = q.outerHeight(), re = B.tgtW = W.outerWidth(), ne = B.tgtH = W.outerHeight(), le = B.srcShape = t.nodeShapes[e.getNodeShape(q)], ce = B.tgtShape = t.nodeShapes[e.getNodeShape(W)], pe = B.srcCornerRadius = q.pstyle("corner-radius").value === "auto" ? "auto" : q.pstyle("corner-radius").pfValue, fe = B.tgtCornerRadius = W.pstyle("corner-radius").value === "auto" ? "auto" : W.pstyle("corner-radius").pfValue, se = B.tgtRs = W._private.rscratch, de = B.srcRs = q._private.rscratch; B.dirCounts = { north: 0, west: 0, @@ -30726,21 +30738,21 @@ Zu.findEdgeControlPoints = function(r) { southeast: 0 }; for (var ge = 0; ge < B.eles.length; ge++) { - var Oe = B.eles[ge], ke = Oe[0]._private.rscratch, Me = Oe.pstyle("curve-style").value, Ne = Me === "unbundled-bezier" || vp(Me, "segments") || vp(Me, "taxi"), Ce = !q.same(Oe.source()); + var Oe = B.eles[ge], ke = Oe[0]._private.rscratch, De = Oe.pstyle("curve-style").value, Ne = De === "unbundled-bezier" || vp(De, "segments") || vp(De, "taxi"), Te = !q.same(Oe.source()); if (!B.calculatedIntersection && q !== W && (B.hasBezier || B.hasUnbundled)) { B.calculatedIntersection = !0; - var Y = le.intersectLine(J.x, J.y, Q, ue, X.x, X.y, 0, pe, de), Z = B.srcIntn = Y, ie = ce.intersectLine(X.x, X.y, re, ne, J.x, J.y, 0, fe, se), we = B.tgtIntn = ie, Ee = B.intersectionPts = { + var Y = le.intersectLine(J.x, J.y, Z, ue, X.x, X.y, 0, pe, de), Q = B.srcIntn = Y, ie = ce.intersectLine(X.x, X.y, re, ne, J.x, J.y, 0, fe, se), we = B.tgtIntn = ie, Ee = B.intersectionPts = { x1: Y[0], x2: ie[0], y1: Y[1], y2: ie[1] - }, De = B.posPts = { + }, Me = B.posPts = { x1: J.x, x2: X.x, y1: J.y, y2: X.y }, Ie = ie[1] - Y[1], Ye = ie[0] - Y[0], ot = Math.sqrt(Ye * Ye + Ie * Ie); - Ht(ot) && ot >= QJ || (ot = Math.sqrt(Math.max(Ye * Ye, O1) + Math.max(Ie * Ie, O1))); + Ht(ot) && ot >= JJ || (ot = Math.sqrt(Math.max(Ye * Ye, O1) + Math.max(Ie * Ie, O1))); var mt = B.vector = { x: Ye, y: Ie @@ -30751,7 +30763,7 @@ Zu.findEdgeControlPoints = function(r) { x: -wt.y, y: wt.x }; - B.nodesOverlap = !Ht(ot) || ce.checkPoint(Y[0], Y[1], 0, re, ne, X.x, X.y, fe, se) || le.checkPoint(ie[0], ie[1], 0, Q, ue, J.x, J.y, pe, de), B.vectorNormInverse = Mt, j = { + B.nodesOverlap = !Ht(ot) || ce.checkPoint(Y[0], Y[1], 0, re, ne, X.x, X.y, fe, se) || le.checkPoint(ie[0], ie[1], 0, Z, ue, J.x, J.y, pe, de), B.vectorNormInverse = Mt, j = { nodesOverlap: B.nodesOverlap, dirCounts: B.dirCounts, calculatedIntersection: !0, @@ -30764,17 +30776,17 @@ Zu.findEdgeControlPoints = function(r) { tgtRs: de, srcW: re, srcH: ne, - tgtW: Q, + tgtW: Z, tgtH: ue, srcIntn: we, - tgtIntn: Z, + tgtIntn: Q, srcShape: ce, tgtShape: le, posPts: { - x1: De.x2, - y1: De.y2, - x2: De.x1, - y2: De.y1 + x1: Me.x2, + y1: Me.y2, + x2: Me.x1, + y2: Me.y1 }, intersectionPts: { x1: Ee.x2, @@ -30796,8 +30808,8 @@ Zu.findEdgeControlPoints = function(r) { } }; } - var Dt = Ce ? j : B; - ke.nodesOverlap = Dt.nodesOverlap, ke.srcIntn = Dt.srcIntn, ke.tgtIntn = Dt.tgtIntn, ke.isRound = Me.startsWith("round"), i && (q.isParent() || q.isChild() || W.isParent() || W.isChild()) && (q.parents().anySame(W) || W.parents().anySame(q) || q.same(W) && q.isParent()) ? e.findCompoundLoopPoints(Oe, Dt, ge, Ne) : q === W ? e.findLoopPoints(Oe, Dt, ge, Ne) : Me.endsWith("segments") ? e.findSegmentsPoints(Oe, Dt) : Me.endsWith("taxi") ? e.findTaxiPoints(Oe, Dt) : Me === "straight" || !Ne && B.eles.length % 2 === 1 && ge === Math.floor(B.eles.length / 2) ? e.findStraightEdgePoints(Oe) : e.findBezierPoints(Oe, Dt, ge, Ne, Ce), e.findEndpoints(Oe), e.tryToCorrectInvalidPoints(Oe, Dt), e.checkForInvalidEdgeWarning(Oe), e.storeAllpts(Oe), e.storeEdgeProjections(Oe), e.calculateArrowAngles(Oe), e.recalculateEdgeLabelProjections(Oe), e.calculateLabelAngles(Oe); + var Dt = Te ? j : B; + ke.nodesOverlap = Dt.nodesOverlap, ke.srcIntn = Dt.srcIntn, ke.tgtIntn = Dt.tgtIntn, ke.isRound = De.startsWith("round"), i && (q.isParent() || q.isChild() || W.isParent() || W.isChild()) && (q.parents().anySame(W) || W.parents().anySame(q) || q.same(W) && q.isParent()) ? e.findCompoundLoopPoints(Oe, Dt, ge, Ne) : q === W ? e.findLoopPoints(Oe, Dt, ge, Ne) : De.endsWith("segments") ? e.findSegmentsPoints(Oe, Dt) : De.endsWith("taxi") ? e.findTaxiPoints(Oe, Dt) : De === "straight" || !Ne && B.eles.length % 2 === 1 && ge === Math.floor(B.eles.length / 2) ? e.findStraightEdgePoints(Oe) : e.findBezierPoints(Oe, Dt, ge, Ne, Te), e.findEndpoints(Oe), e.tryToCorrectInvalidPoints(Oe, Dt), e.checkForInvalidEdgeWarning(Oe), e.storeAllpts(Oe), e.storeEdgeProjections(Oe), e.calculateArrowAngles(Oe), e.recalculateEdgeLabelProjections(Oe), e.calculateLabelAngles(Oe); } }, E = 0; E < s.length; E++) O(); @@ -30854,12 +30866,12 @@ J1.manualEndptToPx = function(r, e) { J1.findEndpoints = function(r) { var e, t, n, i, a = this, o, s = r.source()[0], u = r.target()[0], l = s.position(), c = u.position(), f = r.pstyle("target-arrow-shape").value, d = r.pstyle("source-arrow-shape").value, h = r.pstyle("target-distance-from-node").pfValue, p = r.pstyle("source-distance-from-node").pfValue, g = s._private.rscratch, y = u._private.rscratch, b = r.pstyle("curve-style").value, _ = r._private.rscratch, m = _.edgeType, x = vp(b, "taxi"), S = m === "self" || m === "compound", O = m === "bezier" || m === "multibezier" || S, E = m !== "bezier", T = m === "straight" || m === "segments", P = m === "segments", I = O || E || T, k = S || x, L = r.pstyle("source-endpoint"), B = k ? "outside-to-node" : L.value, j = s.pstyle("corner-radius").value === "auto" ? "auto" : s.pstyle("corner-radius").pfValue, z = r.pstyle("target-endpoint"), H = k ? "outside-to-node" : z.value, q = u.pstyle("corner-radius").value === "auto" ? "auto" : u.pstyle("corner-radius").pfValue; _.srcManEndpt = L, _.tgtManEndpt = z; - var W, $, J, X, Q = (e = (z == null || (t = z.pfValue) === null || t === void 0 ? void 0 : t.length) === 2 ? z.pfValue : null) !== null && e !== void 0 ? e : [0, 0], ue = (n = (L == null || (i = L.pfValue) === null || i === void 0 ? void 0 : i.length) === 2 ? L.pfValue : null) !== null && n !== void 0 ? n : [0, 0]; + var W, $, J, X, Z = (e = (z == null || (t = z.pfValue) === null || t === void 0 ? void 0 : t.length) === 2 ? z.pfValue : null) !== null && e !== void 0 ? e : [0, 0], ue = (n = (L == null || (i = L.pfValue) === null || i === void 0 ? void 0 : i.length) === 2 ? L.pfValue : null) !== null && n !== void 0 ? n : [0, 0]; if (O) { var re = [_.ctrlpts[0], _.ctrlpts[1]], ne = E ? [_.ctrlpts[_.ctrlpts.length - 2], _.ctrlpts[_.ctrlpts.length - 1]] : re; W = ne, $ = re; } else if (T) { - var le = P ? _.segpts.slice(0, 2) : [c.x + Q[0], c.y + Q[1]], ce = P ? _.segpts.slice(_.segpts.length - 2) : [l.x + ue[0], l.y + ue[1]]; + var le = P ? _.segpts.slice(0, 2) : [c.x + Z[0], c.y + Z[1]], ce = P ? _.segpts.slice(_.segpts.length - 2) : [l.x + ue[0], l.y + ue[1]]; W = ce, $ = le; } if (H === "inside-to-node") @@ -30869,24 +30881,24 @@ J1.findEndpoints = function(r) { else if (H === "outside-to-line") o = _.tgtIntn; else if (H === "outside-to-node" || H === "outside-to-node-or-label" ? J = W : (H === "outside-to-line" || H === "outside-to-line-or-label") && (J = [l.x, l.y]), o = a.nodeShapes[this.getNodeShape(u)].intersectLine(c.x, c.y, u.outerWidth(), u.outerHeight(), J[0], J[1], 0, q, y), H === "outside-to-node-or-label" || H === "outside-to-line-or-label") { - var pe = u._private.rscratch, fe = pe.labelWidth, se = pe.labelHeight, de = pe.labelX, ge = pe.labelY, Oe = fe / 2, ke = se / 2, Me = u.pstyle("text-valign").value; - Me === "top" ? ge -= ke : Me === "bottom" && (ge += ke); + var pe = u._private.rscratch, fe = pe.labelWidth, se = pe.labelHeight, de = pe.labelX, ge = pe.labelY, Oe = fe / 2, ke = se / 2, De = u.pstyle("text-valign").value; + De === "top" ? ge -= ke : De === "bottom" && (ge += ke); var Ne = u.pstyle("text-halign").value; Ne === "left" ? de -= Oe : Ne === "right" && (de += Oe); - var Ce = _1(J[0], J[1], [de - Oe, ge - ke, de + Oe, ge - ke, de + Oe, ge + ke, de - Oe, ge + ke], c.x, c.y); - if (Ce.length > 0) { - var Y = l, Z = Cg(Y, vm(o)), ie = Cg(Y, vm(Ce)), we = Z; - if (ie < Z && (o = Ce, we = ie), Ce.length > 2) { + var Te = _1(J[0], J[1], [de - Oe, ge - ke, de + Oe, ge - ke, de + Oe, ge + ke, de - Oe, ge + ke], c.x, c.y); + if (Te.length > 0) { + var Y = l, Q = Cg(Y, vm(o)), ie = Cg(Y, vm(Te)), we = Q; + if (ie < Q && (o = Te, we = ie), Te.length > 2) { var Ee = Cg(Y, { - x: Ce[2], - y: Ce[3] + x: Te[2], + y: Te[3] }); - Ee < we && (o = [Ce[2], Ce[3]]); + Ee < we && (o = [Te[2], Te[3]]); } } } - var De = hw(o, W, a.arrowShapes[f].spacing(r) + h), Ie = hw(o, W, a.arrowShapes[f].gap(r) + h); - if (_.endX = Ie[0], _.endY = Ie[1], _.arrowEndX = De[0], _.arrowEndY = De[1], B === "inside-to-node") + var Me = hw(o, W, a.arrowShapes[f].spacing(r) + h), Ie = hw(o, W, a.arrowShapes[f].gap(r) + h); + if (_.endX = Ie[0], _.endY = Ie[1], _.arrowEndX = Me[0], _.arrowEndY = Me[1], B === "inside-to-node") o = [l.x, l.y]; else if (L.units) o = this.manualEndptToPx(s, L); @@ -30943,7 +30955,7 @@ J1.getTargetEndpoint = function(r) { } }; var uD = {}; -function JJ(r, e, t) { +function eee(r, e, t) { for (var n = function(l, c, f, d) { return ks(l, c, f, d); }, i = e._private, a = i.rstyle.bezierPts, o = 0; o < r.bezierProjPcts.length; o++) { @@ -30959,7 +30971,7 @@ uD.storeEdgeProjections = function(r) { if (e.rstyle.bezierPts = null, e.rstyle.linePts = null, e.rstyle.haystackPts = null, n === "multibezier" || n === "bezier" || n === "self" || n === "compound") { e.rstyle.bezierPts = []; for (var i = 0; i + 5 < t.allpts.length; i += 4) - JJ(this, r, t.allpts.slice(i, i + 6)); + eee(this, r, t.allpts.slice(i, i + 6)); } else if (n === "segments") for (var a = e.rstyle.linePts = [], i = 0; i + 1 < t.allpts.length; i += 2) a.push({ @@ -31015,7 +31027,7 @@ var uU = function(e, t) { }, lU = function(e, t) { var n = t.x - e.x, i = t.y - e.y; return uU(n, i); -}, eee = function(e, t, n, i) { +}, tee = function(e, t, n, i) { var a = b1(0, i - 1e-3, 1), o = b1(0, i + 1e-3, 1), s = wm(e, t, n, a), u = wm(e, t, n, o); return lU(s, u); }; @@ -31103,7 +31115,7 @@ Oh.recalculateEdgeLabelProjections = function(r) { break; } var T = y.cp, P = y.segment, I = (p - b) / P.length, k = P.t1 - P.t0, L = h ? P.t0 + k * I : P.t1 - k * I; - L = b1(0, L, 1), e = wm(T.p0, T.p1, T.p2, L), d = eee(T.p0, T.p1, T.p2, L); + L = b1(0, L, 1), e = wm(T.p0, T.p1, T.p2, L), d = tee(T.p0, T.p1, T.p2, L); break; } case "straight": @@ -31124,7 +31136,7 @@ Oh.recalculateEdgeLabelProjections = function(r) { }), j = Wg(H, q), z = B, B += j, !(B >= p)); $ += 2) ; var J = p - z, X = J / j; - X = b1(0, X, 1), e = xK(H, q, X), d = lU(H, q); + X = b1(0, X, 1), e = EK(H, q, X), d = lU(H, q); break; } } @@ -31173,8 +31185,8 @@ Oh.getLabelText = function(r, e) { var B = O.length === 0 ? L : O + L + k, j = this.calculateLabelDimensions(r, B), z = j.width; z <= f ? O += L + k : (O && p.push(O), O = L + k); } - } catch (Q) { - T.e(Q); + } catch (Z) { + T.e(Z); } finally { T.f(); } @@ -31254,8 +31266,8 @@ cU.getNodeShape = function(r) { } return t; }; -var V2 = {}; -V2.registerCalculationListeners = function() { +var G2 = {}; +G2.registerCalculationListeners = function() { var r = this.cy, e = r.collection(), t = this, n = function(o) { var s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0; if (e.merge(o), s) @@ -31291,11 +31303,11 @@ V2.registerCalculationListeners = function() { i(!0); }, t.beforeRender(i, t.beforeRenderPriorities.eleCalcs); }; -V2.onUpdateEleCalcs = function(r) { +G2.onUpdateEleCalcs = function(r) { var e = this.onUpdateEleCalcsFns = this.onUpdateEleCalcsFns || []; e.push(r); }; -V2.recalculateRenderedStyle = function(r, e) { +G2.recalculateRenderedStyle = function(r, e) { var t = function(x) { return x._private.rstyle.cleanConnected; }; @@ -31321,8 +31333,8 @@ V2.recalculateRenderedStyle = function(r, e) { } } }; -var H2 = {}; -H2.updateCachedGrabbedEles = function() { +var V2 = {}; +V2.updateCachedGrabbedEles = function() { var r = this.cachedZSortedEles; if (r) { r.drag = [], r.nondrag = []; @@ -31336,10 +31348,10 @@ H2.updateCachedGrabbedEles = function() { } } }; -H2.invalidateCachedZSortedEles = function() { +V2.invalidateCachedZSortedEles = function() { this.cachedZSortedEles = null; }; -H2.getCachedZSortedEles = function(r) { +V2.getCachedZSortedEles = function(r) { if (r || !this.cachedZSortedEles) { var e = this.cy.mutableElements().toArray(); e.sort(HF), e.interactive = e.filter(function(t) { @@ -31350,7 +31362,7 @@ H2.getCachedZSortedEles = function(r) { return e; }; var fU = {}; -[ry, Fx, Zu, J1, uD, Oh, cU, V2, H2].forEach(function(r) { +[ry, Fx, Zu, J1, uD, Oh, cU, G2, V2].forEach(function(r) { kr(fU, r); }); var dU = {}; @@ -31383,7 +31395,7 @@ Jm.registerBinding = function(r, e, t, n) { return u.on.apply(u, i); }; Jm.binder = function(r) { - var e = this, t = e.cy.window(), n = r === t || r === t.document || r === t.document.body || d$(r); + var e = this, t = e.cy.window(), n = r === t || r === t.document || r === t.document.body || h$(r); if (e.supportsPassiveEvents == null) { var i = !1; try { @@ -31871,12 +31883,12 @@ Jm.load = function() { } }); }, !1); - var Q, ue, re, ne, le, ce, pe, fe, se, de, ge, Oe, ke, Me = function(_e, Ue, Qe, Ze) { + var Z, ue, re, ne, le, ce, pe, fe, se, de, ge, Oe, ke, De = function(_e, Ue, Qe, Ze) { return Math.sqrt((Qe - _e) * (Qe - _e) + (Ze - Ue) * (Ze - Ue)); }, Ne = function(_e, Ue, Qe, Ze) { return (Qe - _e) * (Qe - _e) + (Ze - Ue) * (Ze - Ue); - }, Ce; - r.registerBinding(r.container, "touchstart", Ce = function(_e) { + }, Te; + r.registerBinding(r.container, "touchstart", Te = function(_e) { if (r.hasTouchStarted = !0, !!I(_e)) { m(), r.touchData.capture = !0, r.data.bgActivePosistion = void 0; var Ue = r.cy, Qe = r.touchData.now, Ze = r.touchData.earlier; @@ -31905,9 +31917,9 @@ Jm.load = function() { if (_e.touches[1]) { r.touchData.singleTouchMoved = !0, b(r.dragData.touchDragEles); var ct = r.findContainerClientCoords(); - se = ct[0], de = ct[1], ge = ct[2], Oe = ct[3], Q = _e.touches[0].clientX - se, ue = _e.touches[0].clientY - de, re = _e.touches[1].clientX - se, ne = _e.touches[1].clientY - de, ke = 0 <= Q && Q <= ge && 0 <= re && re <= ge && 0 <= ue && ue <= Oe && 0 <= ne && ne <= Oe; + se = ct[0], de = ct[1], ge = ct[2], Oe = ct[3], Z = _e.touches[0].clientX - se, ue = _e.touches[0].clientY - de, re = _e.touches[1].clientX - se, ne = _e.touches[1].clientY - de, ke = 0 <= Z && Z <= ge && 0 <= re && re <= ge && 0 <= ue && ue <= Oe && 0 <= ne && ne <= Oe; var Lt = Ue.pan(), Rt = Ue.zoom(); - le = Me(Q, ue, re, ne), ce = Ne(Q, ue, re, ne), pe = [(Q + re) / 2, (ue + ne) / 2], fe = [(pe[0] - Lt.x) / Rt, (pe[1] - Lt.y) / Rt]; + le = De(Z, ue, re, ne), ce = Ne(Z, ue, re, ne), pe = [(Z + re) / 2, (ue + ne) / 2], fe = [(pe[0] - Lt.x) / Rt, (pe[1] - Lt.y) / Rt]; var jt = 200, Yt = jt * jt; if (ce < Yt && !_e.touches[2]) { var sr = r.findNearestElement(Qe[0], Qe[1], !0, !0), Ut = r.findNearestElement(Qe[2], Qe[3], !0, !0); @@ -32013,9 +32025,9 @@ Jm.load = function() { _i.grabbed = !1, _i.rscratch.inDragLayer = !1; } } - var Ir = r.touchData.start, ur = _e.touches[0].clientX - se, sn = _e.touches[0].clientY - de, Fr = _e.touches[1].clientX - se, un = _e.touches[1].clientY - de, pa = Me(ur, sn, Fr, un), di = pa / le; + var Ir = r.touchData.start, ur = _e.touches[0].clientX - se, sn = _e.touches[0].clientY - de, Fr = _e.touches[1].clientX - se, un = _e.touches[1].clientY - de, pa = De(ur, sn, Fr, un), di = pa / le; if (ke) { - var Bt = ur - Q, hr = sn - ue, ei = Fr - re, Hn = un - ne, fs = (Bt + ei) / 2, Na = (hr + Hn) / 2, ki = Ze.zoom(), Wr = ki * di, Nr = Ze.pan(), na = fe[0] * ki + Nr.x, Fs = fe[1] * ki + Nr.y, hu = { + var Bt = ur - Z, hr = sn - ue, ei = Fr - re, Hn = un - ne, fs = (Bt + ei) / 2, Na = (hr + Hn) / 2, ki = Ze.zoom(), Wr = ki * di, Nr = Ze.pan(), na = fe[0] * ki + Nr.x, Fs = fe[1] * ki + Nr.y, hu = { x: -Wr / ki * (na - Nr.x - fs) + na, y: -Wr / ki * (Fs - Nr.y - Na) + Fs }; @@ -32027,7 +32039,7 @@ Jm.load = function() { zoom: Wr, pan: hu, cancelOnFailedZoom: !0 - }), Ze.emit(Rt("pinchzoom")), le = pa, Q = ur, ue = sn, re = Fr, ne = un, r.pinching = !0; + }), Ze.emit(Rt("pinchzoom")), le = pa, Z = ur, ue = sn, re = Fr, ne = un, r.pinching = !0; } if (_e.touches[0]) { var Lt = r.projectIntoViewport(_e.touches[0].clientX, _e.touches[0].clientY); @@ -32087,12 +32099,12 @@ Jm.load = function() { Ue && _e.touches.length > 0 && !r.hoverData.draggingEles && !r.swipePanning && r.data.bgActivePosistion != null && (r.data.bgActivePosistion = void 0, r.redrawHint("select", !0), r.redraw()); } }, !1); - var Z; - r.registerBinding(e, "touchcancel", Z = function(_e) { + var Q; + r.registerBinding(e, "touchcancel", Q = function(_e) { var Ue = r.touchData.start; r.touchData.capture = !1, Ue && Ue.unactivate(); }); - var ie, we, Ee, De; + var ie, we, Ee, Me; if (r.registerBinding(e, "touchend", ie = function(_e) { var Ue = r.touchData.start, Qe = r.touchData.capture; if (Qe) @@ -32167,7 +32179,7 @@ Jm.load = function() { r.touchData.singleTouchMoved || (Ue || nt.$(":selected").unselect(["tapunselect"]), i(Ue, ["tap", "vclick"], _e, { x: ct[0], y: ct[1] - }), we = !1, _e.timeStamp - De <= nt.multiClickDebounceTime() ? (Ee && clearTimeout(Ee), we = !0, De = null, i(Ue, ["dbltap", "vdblclick"], _e, { + }), we = !1, _e.timeStamp - Me <= nt.multiClickDebounceTime() ? (Ee && clearTimeout(Ee), we = !0, Me = null, i(Ue, ["dbltap", "vdblclick"], _e, { x: ct[0], y: ct[1] })) : (Ee = setTimeout(function() { @@ -32175,7 +32187,7 @@ Jm.load = function() { x: ct[0], y: ct[1] }); - }, nt.multiClickDebounceTime()), De = _e.timeStamp)), Ue != null && !r.dragData.didDrag && Ue._private.selectable && bn < r.touchTapThreshold2 && !r.pinching && (nt.selectionType() === "single" ? (nt.$(t).unmerge(Ue).unselect(["tapunselect"]), Ue.select(["tapselect"])) : Ue.selected() ? Ue.unselect(["tapunselect"]) : Ue.select(["tapselect"]), r.redrawHint("eles", !0)), r.touchData.singleTouchMoved = !0; + }, nt.multiClickDebounceTime()), Me = _e.timeStamp)), Ue != null && !r.dragData.didDrag && Ue._private.selectable && bn < r.touchTapThreshold2 && !r.pinching && (nt.selectionType() === "single" ? (nt.$(t).unmerge(Ue).unselect(["tapunselect"]), Ue.select(["tapselect"])) : Ue.selected() ? Ue.unselect(["tapunselect"]) : Ue.select(["tapselect"]), r.redrawHint("eles", !0)), r.touchData.singleTouchMoved = !0; } } } @@ -32225,11 +32237,11 @@ Jm.load = function() { return _e.pointerType === "mouse" || _e.pointerType === 4; }; r.registerBinding(r.container, "pointerdown", function(tt) { - vt(tt) || (tt.preventDefault(), mt(tt), Dt(tt), Ce(tt)); + vt(tt) || (tt.preventDefault(), mt(tt), Dt(tt), Te(tt)); }), r.registerBinding(r.container, "pointerup", function(tt) { vt(tt) || (wt(tt), Dt(tt), ie(tt)); }), r.registerBinding(r.container, "pointercancel", function(tt) { - vt(tt) || (wt(tt), Dt(tt), Z(tt)); + vt(tt) || (wt(tt), Dt(tt), Q(tt)); }), r.registerBinding(r.container, "pointermove", function(tt) { vt(tt) || (tt.preventDefault(), Mt(tt), Dt(tt), Y(tt)); }); @@ -32252,7 +32264,7 @@ _v.generatePolygon = function(r, e) { }, hasMiterBounds: r !== "rectangle", miterBounds: function(n, i, a, o, s, u) { - return AK(this.points, n, i, a, o, s); + return RK(this.points, n, i, a, o, s); } }; }; @@ -32264,7 +32276,7 @@ _v.generateEllipse = function() { this.renderer.nodeShapeImpl(this.name, e, t, n, i, a); }, intersectLine: function(e, t, n, i, a, o, s, u) { - return LK(a, o, e, t, n / 2 + s, i / 2 + s); + return jK(a, o, e, t, n / 2 + s, i / 2 + s); }, checkPoint: function(e, t, n, i, a, o, s, u) { return jg(e, t, i, a, o, s, n); @@ -32296,10 +32308,10 @@ _v.generateRoundPolygon = function(r, e) { this.renderer.nodeShapeImpl("round-polygon", n, i, a, o, s, this.points, this.getOrCreateCorners(i, a, o, s, u, l, "drawCorners")); }, intersectLine: function(n, i, a, o, s, u, l, c, f) { - return BK(s, u, this.points, n, i, a, o, l, this.getOrCreateCorners(n, i, a, o, c, f, "corners")); + return FK(s, u, this.points, n, i, a, o, l, this.getOrCreateCorners(n, i, a, o, c, f, "corners")); }, checkPoint: function(n, i, a, o, s, u, l, c, f) { - return NK(n, i, this.points, u, l, o, s, this.getOrCreateCorners(u, l, o, s, c, f, "corners")); + return LK(n, i, this.points, u, l, o, s, this.getOrCreateCorners(u, l, o, s, c, f, "corners")); } }; }; @@ -32396,7 +32408,7 @@ _v.generateBarrel = function() { return _1(a, o, p, e, t); }, generateBarrelBezierPts: function(e, t, n, i) { - var a = t / 2, o = e / 2, s = n - o, u = n + o, l = i - a, c = i + a, f = cM(e, t), d = f.heightOffset, h = f.widthOffset, p = f.ctrlPtOffsetPct * e, g = { + var a = t / 2, o = e / 2, s = n - o, u = n + o, l = i - a, c = i + a, f = lM(e, t), d = f.heightOffset, h = f.widthOffset, p = f.ctrlPtOffsetPct * e, g = { topLeft: [s, l + d, s + p, l, s + h, l], topRight: [u - h, l, u - p, l, u, l + d], bottomRight: [u, c - d, u - p, c, u - h, c], @@ -32405,17 +32417,17 @@ _v.generateBarrel = function() { return g.topLeft.isTop = !0, g.topRight.isTop = !0, g.bottomLeft.isBottom = !0, g.bottomRight.isBottom = !0, g; }, checkPoint: function(e, t, n, i, a, o, s, u) { - var l = cM(i, a), c = l.heightOffset, f = l.widthOffset; + var l = lM(i, a), c = l.heightOffset, f = l.widthOffset; if (pv(e, t, this.points, o, s, i, a - 2 * c, [0, -1], n) || pv(e, t, this.points, o, s, i - 2 * f, a, [0, -1], n)) return !0; for (var d = this.generateBarrelBezierPts(i, a, o, s), h = function(T, P, I) { var k = I[4], L = I[2], B = I[0], j = I[5], z = I[1], H = Math.min(k, B), q = Math.max(k, B), W = Math.min(j, z), $ = Math.max(j, z); if (H <= T && T <= q && W <= P && P <= $) { - var J = FK(k, L, B), X = MK(J[0], J[1], J[2], T), Q = X.filter(function(ue) { + var J = UK(k, L, B), X = DK(J[0], J[1], J[2], T), Z = X.filter(function(ue) { return 0 <= ue && ue <= 1; }); - if (Q.length > 0) - return Q[0]; + if (Z.length > 0) + return Z[0]; } return null; }, p = Object.keys(d), g = 0; g < p.length; g++) { @@ -32462,7 +32474,7 @@ _v.registerNodeShapes = function() { this.generatePolygon("pentagon", Bl(5, 0)), this.generateRoundPolygon("round-pentagon", Bl(5, 0)), this.generatePolygon("hexagon", Bl(6, 0)), this.generateRoundPolygon("round-hexagon", Bl(6, 0)), this.generatePolygon("heptagon", Bl(7, 0)), this.generateRoundPolygon("round-heptagon", Bl(7, 0)), this.generatePolygon("octagon", Bl(8, 0)), this.generateRoundPolygon("round-octagon", Bl(8, 0)); var n = new Array(20); { - var i = lM(5, 0), a = lM(5, Math.PI / 5), o = 0.5 * (3 - Math.sqrt(5)); + var i = uM(5, 0), a = uM(5, Math.PI / 5), o = 0.5 * (3 - Math.sqrt(5)); o *= 1.57; for (var s = 0; s < a.length / 2; s++) a[s * 2] *= o, a[s * 2 + 1] *= o; @@ -32526,9 +32538,9 @@ e_.startRenderLoop = function() { Mx(t); } }; -var tee = function(e) { +var ree = function(e) { this.init(e); -}, hU = tee, e0 = hU.prototype; +}, hU = ree, e0 = hU.prototype; e0.clientFunctions = ["redrawHint", "render", "renderTo", "matchCanvasSize", "nodeShapeImpl", "arrowShapeImpl"]; e0.init = function(r) { var e = this; @@ -32604,7 +32616,7 @@ e0.isHeadless = function() { [oD, fU, dU, Jm, _v, e_].forEach(function(r) { kr(e0, r); }); -var LO = 1e3 / 60, vU = { +var NO = 1e3 / 60, vU = { setupDequeueing: function(e) { return function() { var n = this, i = this.renderer; @@ -32616,14 +32628,14 @@ var LO = 1e3 / 60, vU = { var f = vv(), d = i.averageRedrawTime, h = i.lastRedrawTime, p = [], g = i.cy.extent(), y = i.getPixelRatio(); for (l || i.flushRenderedStyleQueue(); ; ) { var b = vv(), _ = b - f, m = b - c; - if (h < LO) { - var x = LO - (l ? d : 0); + if (h < NO) { + var x = NO - (l ? d : 0); if (m >= e.deqFastCost * x) break; } else if (l) { if (_ >= e.deqCost * h || _ >= e.deqAvgCost * d) break; - } else if (m >= e.deqNoDrawCost * LO) + } else if (m >= e.deqNoDrawCost * NO) break; var S = e.deq(n, y, g); if (S.length > 0) @@ -32638,7 +32650,7 @@ var LO = 1e3 / 60, vU = { } }; } -}, ree = /* @__PURE__ */ (function() { +}, nee = /* @__PURE__ */ (function() { function r(e) { var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Dx; zp(this, r), this.idsByKey = new sv(), this.keyForId = new sv(), this.cachesByLvl = new sv(), this.lvls = [], this.getKey = e, this.doesEleInvalidateKey = t; @@ -32762,11 +32774,11 @@ var LO = 1e3 / 60, vU = { return a && this.invalidateKey(i), a || this.getNumberOfIdsForKey(i) === 0; } }]); -})(), g3 = 25, ww = 50, nx = -4, EM = 3, pU = 7.99, nee = 8, iee = 1024, aee = 1024, oee = 1024, see = 0.2, uee = 0.8, lee = 10, cee = 0.15, fee = 0.1, dee = 0.9, hee = 0.9, vee = 100, pee = 1, gm = { +})(), g3 = 25, ww = 50, nx = -4, xM = 3, pU = 7.99, iee = 8, aee = 1024, oee = 1024, see = 1024, uee = 0.2, lee = 0.8, cee = 10, fee = 0.15, dee = 0.1, hee = 0.9, vee = 0.9, pee = 100, gee = 1, gm = { dequeue: "dequeue", downscale: "downscale", highQuality: "highQuality" -}, gee = fu({ +}, yee = fu({ getKey: null, doesEleInvalidateKey: Dx, drawElement: null, @@ -32779,8 +32791,8 @@ var LO = 1e3 / 60, vU = { }), vb = function(e, t) { var n = this; n.renderer = e, n.onDequeues = []; - var i = gee(t); - kr(n, i), n.lookup = new ree(i.getKey, i.doesEleInvalidateKey), n.setupDequeueing(); + var i = yee(t); + kr(n, i), n.lookup = new nee(i.getKey, i.doesEleInvalidateKey), n.setupDequeueing(); }, cs = vb.prototype; cs.reasons = gm; cs.getTextureQueue = function(r) { @@ -32807,7 +32819,7 @@ cs.getElement = function(r, e, t, n, i) { return null; if (n == null && (n = Math.ceil(Y5(s * t))), n < nx) n = nx; - else if (s >= pU || n > EM) + else if (s >= pU || n > xM) return null; var l = Math.pow(2, n), c = e.h * l, f = e.w * l, d = o.eleTextBiggerThanMin(r, l); if (!this.isVisible(r, d)) @@ -32816,7 +32828,7 @@ cs.getElement = function(r, e, t, n, i) { if (h && h.invalidated && (h.invalidated = !1, h.texture.invalidatedWidth -= h.width), h) return h; var p; - if (c <= g3 ? p = g3 : c <= ww ? p = ww : p = Math.ceil(c / ww) * ww, c > oee || f > aee) + if (c <= g3 ? p = g3 : c <= ww ? p = ww : p = Math.ceil(c / ww) * ww, c > see || f > oee) return null; var g = a.getTextureQueue(p), y = g[g.length - 2], b = function() { return a.recycleTexture(p, f) || a.addTexture(p, f); @@ -32824,7 +32836,7 @@ cs.getElement = function(r, e, t, n, i) { y || (y = g[g.length - 1]), y || (y = b()), y.width - y.usedWidth < f && (y = b()); for (var _ = function(H) { return H && H.scaledLabelShown === d; - }, m = i && i === gm.dequeue, x = i && i === gm.highQuality, S = i && i === gm.downscale, O, E = n + 1; E <= EM; E++) { + }, m = i && i === gm.dequeue, x = i && i === gm.highQuality, S = i && i === gm.downscale, O, E = n + 1; E <= xM; E++) { var T = u.get(r, E); if (T) { O = T; @@ -32865,7 +32877,7 @@ cs.getElement = function(r, e, t, n, i) { width: f, height: c, scaledLabelShown: d - }, y.usedWidth += Math.ceil(f + nee), y.eleCaches.push(h), u.set(r, n, h), a.checkTextureFullness(y), h; + }, y.usedWidth += Math.ceil(f + iee), y.eleCaches.push(h), u.set(r, n, h), a.checkTextureFullness(y), h; }; cs.invalidateElements = function(r) { for (var e = 0; e < r.length; e++) @@ -32874,7 +32886,7 @@ cs.invalidateElements = function(r) { cs.invalidateElement = function(r) { var e = this, t = e.lookup, n = [], i = t.isInvalid(r); if (i) { - for (var a = nx; a <= EM; a++) { + for (var a = nx; a <= xM; a++) { var o = t.getForCachedKey(r, a); o && n.push(o); } @@ -32888,11 +32900,11 @@ cs.invalidateElement = function(r) { } }; cs.checkTextureUtility = function(r) { - r.invalidatedWidth >= see * r.width && this.retireTexture(r); + r.invalidatedWidth >= uee * r.width && this.retireTexture(r); }; cs.checkTextureFullness = function(r) { var e = this, t = e.getTextureQueue(r.height); - r.usedWidth / r.width > uee && r.fullnessChecks >= lee ? Pp(t, r) : r.fullnessChecks++; + r.usedWidth / r.width > lee && r.fullnessChecks >= cee ? Pp(t, r) : r.fullnessChecks++; }; cs.retireTexture = function(r) { var e = this, t = r.height, n = e.getTextureQueue(t), i = this.lookup; @@ -32907,7 +32919,7 @@ cs.retireTexture = function(r) { }; cs.addTexture = function(r, e) { var t = this, n = t.getTextureQueue(r), i = {}; - return n.push(i), i.eleCaches = [], i.height = r, i.width = Math.max(iee, e), i.usedWidth = 0, i.invalidatedWidth = 0, i.fullnessChecks = 0, i.canvas = t.renderer.makeOffscreenCanvas(i.width, i.height), i.context = i.canvas.getContext("2d"), i; + return n.push(i), i.eleCaches = [], i.height = r, i.width = Math.max(aee, e), i.usedWidth = 0, i.invalidatedWidth = 0, i.fullnessChecks = 0, i.canvas = t.renderer.makeOffscreenCanvas(i.width, i.height), i.context = i.canvas.getContext("2d"), i; }; cs.recycleTexture = function(r, e) { for (var t = this, n = t.getTextureQueue(r), i = t.getRetiredTextureQueue(r), a = 0; a < i.length; a++) { @@ -32931,7 +32943,7 @@ cs.queueElement = function(r, e) { } }; cs.dequeue = function(r) { - for (var e = this, t = e.getElementQueue(), n = e.getElementKeyToQueue(), i = [], a = e.lookup, o = 0; o < pee && t.size() > 0; o++) { + for (var e = this, t = e.getElementQueue(), n = e.getElementKeyToQueue(), i = [], a = e.lookup, o = 0; o < gee && t.size() > 0; o++) { var s = t.pop(), u = s.key, l = s.eles[0], c = a.hasCache(l, s.level); if (n[u] = null, c) continue; @@ -32952,11 +32964,11 @@ cs.offDequeue = function(r) { Pp(this.onDequeues, r); }; cs.setupDequeueing = vU.setupDequeueing({ - deqRedrawThreshold: vee, - deqCost: cee, - deqAvgCost: fee, - deqNoDrawCost: dee, - deqFastCost: hee, + deqRedrawThreshold: pee, + deqCost: fee, + deqAvgCost: dee, + deqNoDrawCost: hee, + deqFastCost: vee, deq: function(e, t, n) { return e.dequeue(t, n); }, @@ -32979,21 +32991,21 @@ cs.setupDequeueing = vU.setupDequeueing({ return e.renderer.beforeRenderPriorities.eleTxrDeq; } }); -var yee = 1, Db = -4, Ux = 2, mee = 3.99, bee = 50, _ee = 50, wee = 0.15, xee = 0.1, Eee = 0.9, See = 0.9, Oee = 1, y3 = 250, Tee = 4e3 * 4e3, m3 = 32767, Cee = !0, gU = function(e) { +var mee = 1, Db = -4, Ux = 2, bee = 3.99, _ee = 50, wee = 50, xee = 0.15, Eee = 0.1, See = 0.9, Oee = 0.9, Tee = 1, y3 = 250, Cee = 4e3 * 4e3, m3 = 32767, Aee = !0, gU = function(e) { var t = this, n = t.renderer = e, i = n.cy; t.layersByLevel = {}, t.firstGet = !0, t.lastInvalidationTime = vv() - 2 * y3, t.skipping = !1, t.eleTxrDeqs = i.collection(), t.scheduleElementRefinement = $1(function() { t.refineElementTextures(t.eleTxrDeqs), t.eleTxrDeqs.unmerge(t.eleTxrDeqs); - }, _ee), n.beforeRender(function(o, s) { + }, wee), n.beforeRender(function(o, s) { s - t.lastInvalidationTime <= y3 ? t.skipping = !0 : t.skipping = !1; }, n.beforeRenderPriorities.lyrTxrSkip); var a = function(s, u) { return u.reqs - s.reqs; }; t.layersQueue = new K1(a), t.setupDequeueing(); -}, du = gU.prototype, b3 = 0, Aee = Math.pow(2, 53) - 1; +}, du = gU.prototype, b3 = 0, Ree = Math.pow(2, 53) - 1; du.makeLayer = function(r, e) { var t = Math.pow(2, e), n = Math.ceil(r.w * t), i = Math.ceil(r.h * t), a = this.renderer.makeOffscreenCanvas(n, i), o = { - id: b3 = ++b3 % Aee, + id: b3 = ++b3 % Ree, bb: r, level: e, width: n, @@ -33011,7 +33023,7 @@ du.getLayers = function(r, e, t) { if (n.firstGet = !1, t == null) { if (t = Math.ceil(Y5(o * e)), t < Db) t = Db; - else if (o >= mee || t > Ux) + else if (o >= bee || t > Ux) return null; } n.validateLayersElesOrdering(t, r); @@ -33038,7 +33050,7 @@ du.getLayers = function(r, e, t) { if (!f) { f = zl(); for (var I = 0; I < r.length; I++) - OK(f, r[I].boundingBox()); + TK(f, r[I].boundingBox()); } return f; }, y = function(I) { @@ -33049,7 +33061,7 @@ du.getLayers = function(r, e, t) { if (L > m3 || B > m3) return null; var j = L * B; - if (j > Tee) + if (j > Cee) return null; var z = n.makeLayer(f, t); if (k != null) { @@ -33060,7 +33072,7 @@ du.getLayers = function(r, e, t) { }; if (n.skipping && !s) return null; - for (var b = null, _ = r.length / yee, m = !s, x = 0; x < r.length; x++) { + for (var b = null, _ = r.length / mee, m = !s, x = 0; x < r.length; x++) { var S = r[x], O = S._private.rscratch, E = O.imgLayerCaches = O.imgLayerCaches || {}, T = E[t]; if (T) { b = T; @@ -33080,7 +33092,7 @@ du.getEleLevelForLayerLevel = function(r, e) { }; du.drawEleInLayer = function(r, e, t, n) { var i = this, a = this.renderer, o = r.context, s = e.boundingBox(); - s.w === 0 || s.h === 0 || !e.visible() || (t = i.getEleLevelForLayerLevel(t, n), a.setImgSmoothing(o, !1), a.drawCachedElement(o, e, null, null, t, Cee), a.setImgSmoothing(o, !0)); + s.w === 0 || s.h === 0 || !e.visible() || (t = i.getEleLevelForLayerLevel(t, n), a.setImgSmoothing(o, !1), a.drawCachedElement(o, e, null, null, t, Aee), a.setImgSmoothing(o, !0)); }; du.levelIsComplete = function(r, e) { var t = this, n = t.layersByLevel[r]; @@ -33171,7 +33183,7 @@ du.queueLayer = function(r, e) { } }; du.dequeue = function(r) { - for (var e = this, t = e.layersQueue, n = [], i = 0; i < Oee && t.size() !== 0; ) { + for (var e = this, t = e.layersQueue, n = [], i = 0; i < Tee && t.size() !== 0; ) { var a = t.peek(); if (a.replacement) { t.pop(); @@ -33206,11 +33218,11 @@ du.requestRedraw = $1(function() { r.redrawHint("eles", !0), r.redrawHint("drag", !0), r.redraw(); }, 100); du.setupDequeueing = vU.setupDequeueing({ - deqRedrawThreshold: bee, - deqCost: wee, - deqAvgCost: xee, - deqNoDrawCost: Eee, - deqFastCost: See, + deqRedrawThreshold: _ee, + deqCost: xee, + deqAvgCost: Eee, + deqNoDrawCost: See, + deqFastCost: Oee, deq: function(e, t) { return e.dequeue(t); }, @@ -33221,13 +33233,13 @@ du.setupDequeueing = vU.setupDequeueing({ } }); var yU = {}, _3; -function Ree(r, e) { +function Pee(r, e) { for (var t = 0; t < e.length; t++) { var n = e[t]; r.lineTo(n.x, n.y); } } -function Pee(r, e, t) { +function Mee(r, e, t) { for (var n, i = 0; i < e.length; i++) { var a = e[i]; i === 0 && (n = a), r.lineTo(a.x, a.y); @@ -33248,7 +33260,7 @@ function w3(r, e, t) { } r.closePath && r.closePath(); } -function Mee(r, e, t, n, i) { +function Dee(r, e, t, n, i) { r.beginPath && r.beginPath(), r.arc(t, n, i, 0, Math.PI * 2, !1); var a = e, o = a[0]; r.moveTo(o.x, o.y); @@ -33258,17 +33270,17 @@ function Mee(r, e, t, n, i) { } r.closePath && r.closePath(); } -function Dee(r, e, t, n) { +function kee(r, e, t, n) { r.arc(e, t, n, 0, Math.PI * 2, !1); } yU.arrowShapeImpl = function(r) { return (_3 || (_3 = { - polygon: Ree, - "triangle-backcurve": Pee, + polygon: Pee, + "triangle-backcurve": Mee, "triangle-tee": w3, - "circle-triangle": Mee, + "circle-triangle": Dee, "triangle-cross": w3, - circle: Dee + circle: kee }))[r]; }; var Th = {}; @@ -33306,24 +33318,24 @@ Th.drawCachedElementPortion = function(r, e, t, n, i, a, o, s) { t.drawElement(r, e); } }; -var kee = function() { +var Iee = function() { return 0; -}, Iee = function(e, t) { - return e.getTextAngle(t, null); }, Nee = function(e, t) { - return e.getTextAngle(t, "source"); + return e.getTextAngle(t, null); }, Lee = function(e, t) { - return e.getTextAngle(t, "target"); + return e.getTextAngle(t, "source"); }, jee = function(e, t) { + return e.getTextAngle(t, "target"); +}, Bee = function(e, t) { return t.effectiveOpacity(); -}, jO = function(e, t) { +}, LO = function(e, t) { return t.pstyle("text-opacity").pfValue * t.effectiveOpacity(); }; Th.drawCachedElement = function(r, e, t, n, i, a) { var o = this, s = o.data, u = s.eleTxrCache, l = s.lblTxrCache, c = s.slbTxrCache, f = s.tlbTxrCache, d = e.boundingBox(), h = a === !0 ? u.reasons.highQuality : null; if (!(d.w === 0 || d.h === 0 || !e.visible()) && (!n || $5(d, n))) { var p = e.isEdge(), g = e.element()._private.rscratch.badLine; - o.drawElementUnderlay(r, e), o.drawCachedElementPortion(r, e, u, t, i, h, kee, jee), (!p || !g) && o.drawCachedElementPortion(r, e, l, t, i, h, Iee, jO), p && !g && (o.drawCachedElementPortion(r, e, c, t, i, h, Nee, jO), o.drawCachedElementPortion(r, e, f, t, i, h, Lee, jO)), o.drawElementOverlay(r, e); + o.drawElementUnderlay(r, e), o.drawCachedElementPortion(r, e, u, t, i, h, Iee, Bee), (!p || !g) && o.drawCachedElementPortion(r, e, l, t, i, h, Nee, LO), p && !g && (o.drawCachedElementPortion(r, e, c, t, i, h, Lee, LO), o.drawCachedElementPortion(r, e, f, t, i, h, jee, LO)), o.drawElementOverlay(r, e); } }; Th.drawElements = function(r, e) { @@ -33529,8 +33541,8 @@ lD.drawInscribedImage = function(r, e, t, n, i) { H === "%" ? B += (y - I) * q : B += q; var W = u - b / 2, $ = c(t, "background-position-y", "units", n), J = c(t, "background-position-y", "pfValue", n); $ === "%" ? W += (b - k) * J : W += J; - var X = c(t, "background-offset-y", "units", n), Q = c(t, "background-offset-y", "pfValue", n); - X === "%" ? W += (b - k) * Q : W += Q, _.pathCache && (B -= s, W -= u, s = 0, u = 0); + var X = c(t, "background-offset-y", "units", n), Z = c(t, "background-offset-y", "pfValue", n); + X === "%" ? W += (b - k) * Z : W += Z, _.pathCache && (B -= s, W -= u, s = 0, u = 0); var ue = r.globalAlpha; r.globalAlpha = S; var re = a.getImgSmoothing(r), ne = !1; @@ -33588,7 +33600,7 @@ ny.setupTextStyle = function(r, e) { var t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0, n = e.pstyle("font-style").strValue, i = e.pstyle("font-size").pfValue + "px", a = e.pstyle("font-family").strValue, o = e.pstyle("font-weight").strValue, s = t ? e.effectiveOpacity() * e.pstyle("text-opacity").value : 1, u = e.pstyle("text-outline-opacity").value * s, l = e.pstyle("color").value, c = e.pstyle("text-outline-color").value; r.font = n + " " + o + " " + i + " " + a, r.lineJoin = "round", this.colorFillStyle(r, l[0], l[1], l[2], s), this.colorStrokeStyle(r, c[0], c[1], c[2], u); }; -function Bee(r, e, t, n, i) { +function Fee(r, e, t, n, i) { var a = Math.min(n, i), o = a / 2, s = e + n / 2, u = t + i / 2; r.beginPath(), r.arc(s, u, o, 0, Math.PI * 2), r.closePath(); } @@ -33626,13 +33638,13 @@ ny.drawText = function(r, e, t) { } var O = e.pstyle("text-background-opacity").value, E = e.pstyle("text-border-opacity").value, T = e.pstyle("text-border-width").pfValue, P = e.pstyle("text-background-padding").pfValue, I = e.pstyle("text-background-shape").strValue, k = I === "round-rectangle" || I === "roundrectangle", L = I === "circle", B = 2; if (O > 0 || T > 0 && E > 0) { - var j = r.fillStyle, z = r.strokeStyle, H = r.lineWidth, q = e.pstyle("text-background-color").value, W = e.pstyle("text-border-color").value, $ = e.pstyle("text-border-style").value, J = O > 0, X = T > 0 && E > 0, Q = u - P; + var j = r.fillStyle, z = r.strokeStyle, H = r.lineWidth, q = e.pstyle("text-background-color").value, W = e.pstyle("text-border-color").value, $ = e.pstyle("text-border-style").value, J = O > 0, X = T > 0 && E > 0, Z = u - P; switch (m) { case "left": - Q -= p; + Z -= p; break; case "center": - Q -= p / 2; + Z -= p / 2; break; } var ue = l - g - P, re = p + 2 * P, ne = g + 2 * P; @@ -33652,9 +33664,9 @@ ny.drawText = function(r, e, t) { r.setLineDash([]); break; } - if (k ? (r.beginPath(), x3(r, Q, ue, re, ne, B)) : L ? (r.beginPath(), Bee(r, Q, ue, re, ne)) : (r.beginPath(), r.rect(Q, ue, re, ne)), J && r.fill(), X && r.stroke(), X && $ === "double") { + if (k ? (r.beginPath(), x3(r, Z, ue, re, ne, B)) : L ? (r.beginPath(), Fee(r, Z, ue, re, ne)) : (r.beginPath(), r.rect(Z, ue, re, ne)), J && r.fill(), X && r.stroke(), X && $ === "double") { var le = T / 2; - r.beginPath(), k ? x3(r, Q + le, ue + le, re - 2 * le, ne - 2 * le, B) : r.rect(Q + le, ue + le, re - 2 * le, ne - 2 * le), r.stroke(); + r.beginPath(), k ? x3(r, Z + le, ue + le, re - 2 * le, ne - 2 * le, B) : r.rect(Z + le, ue + le, re - 2 * le, ne - 2 * le), r.stroke(); } r.fillStyle = j, r.strokeStyle = z, r.lineWidth = H, r.setLineDash && r.setLineDash([]); } @@ -33695,7 +33707,7 @@ Vp.drawNode = function(r, e, t) { }); } } - var k = e.pstyle("background-blacken").value, L = e.pstyle("border-width").pfValue, B = e.pstyle("background-opacity").value * d, j = e.pstyle("border-color").value, z = e.pstyle("border-style").value, H = e.pstyle("border-join").value, q = e.pstyle("border-cap").value, W = e.pstyle("border-position").value, $ = e.pstyle("border-dash-pattern").pfValue, J = e.pstyle("border-dash-offset").pfValue, X = e.pstyle("border-opacity").value * d, Q = e.pstyle("outline-width").pfValue, ue = e.pstyle("outline-color").value, re = e.pstyle("outline-style").value, ne = e.pstyle("outline-opacity").value * d, le = e.pstyle("outline-offset").value, ce = e.pstyle("corner-radius").value; + var k = e.pstyle("background-blacken").value, L = e.pstyle("border-width").pfValue, B = e.pstyle("background-opacity").value * d, j = e.pstyle("border-color").value, z = e.pstyle("border-style").value, H = e.pstyle("border-join").value, q = e.pstyle("border-cap").value, W = e.pstyle("border-position").value, $ = e.pstyle("border-dash-pattern").pfValue, J = e.pstyle("border-dash-offset").pfValue, X = e.pstyle("border-opacity").value * d, Z = e.pstyle("outline-width").pfValue, ue = e.pstyle("outline-color").value, re = e.pstyle("outline-style").value, ne = e.pstyle("outline-opacity").value * d, le = e.pstyle("outline-offset").value, ce = e.pstyle("corner-radius").value; ce !== "auto" && (ce = e.pstyle("corner-radius").pfValue); var pe = function() { var vt = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : B; @@ -33718,7 +33730,7 @@ Vp.drawNode = function(r, e, t) { var ke = de(s, u, ge, Oe); p = ke.path, g = ke.cacheHit; } - var Me = function() { + var De = function() { if (!g) { var vt = f; h && (vt = { @@ -33737,13 +33749,13 @@ Vp.drawNode = function(r, e, t) { x[Qe] && S[Qe].complete && !S[Qe].error && (Ue++, o.drawInscribedImage(r, S[Qe], e, Qe, vt)); } l.backgrounding = Ue !== O, _e !== l.backgrounding && e.updateStyle(!1); - }, Ce = function() { + }, Te = function() { var vt = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1, tt = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : d; o.hasPie(e) && (o.drawPie(r, e, tt), vt && (h || o.nodeShapes[o.getNodeShape(e)].draw(r, f.x, f.y, s, u, ce, c))); }, Y = function() { var vt = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1, tt = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : d; o.hasStripe(e) && (r.save(), h ? r.clip(c.pathCache) : (o.nodeShapes[o.getNodeShape(e)].draw(r, f.x, f.y, s, u, ce, c), r.clip()), o.drawStripe(r, e, tt), r.restore(), vt && (h || o.nodeShapes[o.getNodeShape(e)].draw(r, f.x, f.y, s, u, ce, c))); - }, Z = function() { + }, Q = function() { var vt = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : d, tt = (k > 0 ? k : -k) * vt, _e = k > 0 ? 0 : 255; k !== 0 && (o.colorFillStyle(r, _e, _e, _e, tt), h ? r.fill(p) : r.fill()); }, ie = function() { @@ -33779,8 +33791,8 @@ Vp.drawNode = function(r, e, t) { r.setLineDash && r.setLineDash([]); } }, we = function() { - if (Q > 0) { - if (r.lineWidth = Q, r.lineCap = "butt", r.setLineDash) + if (Z > 0) { + if (r.lineWidth = Z, r.lineCap = "butt", r.setLineDash) switch (re) { case "dotted": r.setLineDash([1, 1]); @@ -33800,7 +33812,7 @@ Vp.drawNode = function(r, e, t) { }); var tt = o.getNodeShape(e), _e = L; W === "inside" && (_e = 0), W === "outside" && (_e *= 2); - var Ue = (s + _e + (Q + le)) / s, Qe = (u + _e + (Q + le)) / u, Ze = s * Ue, nt = u * Qe, It = o.nodeShapes[tt].points, ct; + var Ue = (s + _e + (Z + le)) / s, Qe = (u + _e + (Z + le)) / u, Ze = s * Ue, nt = u * Qe, It = o.nodeShapes[tt].points, ct; if (h) { var Lt = de(Ze, nt, tt, It); ct = Lt.path; @@ -33809,8 +33821,8 @@ Vp.drawNode = function(r, e, t) { o.drawEllipsePath(ct || r, vt.x, vt.y, Ze, nt); else if (["round-diamond", "round-heptagon", "round-hexagon", "round-octagon", "round-pentagon", "round-polygon", "round-triangle", "round-tag"].includes(tt)) { var Rt = 0, jt = 0, Yt = 0; - tt === "round-diamond" ? Rt = (_e + le + Q) * 1.4 : tt === "round-heptagon" ? (Rt = (_e + le + Q) * 1.075, Yt = -(_e / 2 + le + Q) / 35) : tt === "round-hexagon" ? Rt = (_e + le + Q) * 1.12 : tt === "round-pentagon" ? (Rt = (_e + le + Q) * 1.13, Yt = -(_e / 2 + le + Q) / 15) : tt === "round-tag" ? (Rt = (_e + le + Q) * 1.12, jt = (_e / 2 + Q + le) * 0.07) : tt === "round-triangle" && (Rt = (_e + le + Q) * (Math.PI / 2), Yt = -(_e + le / 2 + Q) / Math.PI), Rt !== 0 && (Ue = (s + Rt) / s, Ze = s * Ue, ["round-hexagon", "round-tag"].includes(tt) || (Qe = (u + Rt) / u, nt = u * Qe)), ce = ce === "auto" ? hF(Ze, nt) : ce; - for (var sr = Ze / 2, Ut = nt / 2, Rr = ce + (_e + Q + le) / 2, Xt = new Array(It.length / 2), Vr = new Array(It.length / 2), Br = 0; Br < It.length / 2; Br++) + tt === "round-diamond" ? Rt = (_e + le + Z) * 1.4 : tt === "round-heptagon" ? (Rt = (_e + le + Z) * 1.075, Yt = -(_e / 2 + le + Z) / 35) : tt === "round-hexagon" ? Rt = (_e + le + Z) * 1.12 : tt === "round-pentagon" ? (Rt = (_e + le + Z) * 1.13, Yt = -(_e / 2 + le + Z) / 15) : tt === "round-tag" ? (Rt = (_e + le + Z) * 1.12, jt = (_e / 2 + Z + le) * 0.07) : tt === "round-triangle" && (Rt = (_e + le + Z) * (Math.PI / 2), Yt = -(_e + le / 2 + Z) / Math.PI), Rt !== 0 && (Ue = (s + Rt) / s, Ze = s * Ue, ["round-hexagon", "round-tag"].includes(tt) || (Qe = (u + Rt) / u, nt = u * Qe)), ce = ce === "auto" ? hF(Ze, nt) : ce; + for (var sr = Ze / 2, Ut = nt / 2, Rr = ce + (_e + Z + le) / 2, Xt = new Array(It.length / 2), Vr = new Array(It.length / 2), Br = 0; Br < It.length / 2; Br++) Xt[Br] = { x: vt.x + jt + sr * It[Br * 2], y: vt.y + Yt + Ut * It[Br * 2 + 1] @@ -33820,18 +33832,18 @@ Vp.drawNode = function(r, e, t) { sn = Xt[mr % un], Fr = Xt[(mr + 1) % un], Vr[mr] = sD(ur, sn, Fr, Rr), ur = sn, sn = Fr; o.drawRoundPolygonPath(ct || r, vt.x + jt, vt.y + Yt, s * Ue, u * Qe, It, Vr); } else if (["roundrectangle", "round-rectangle"].includes(tt)) - ce = ce === "auto" ? Mp(Ze, nt) : ce, o.drawRoundRectanglePath(ct || r, vt.x, vt.y, Ze, nt, ce + (_e + Q + le) / 2); + ce = ce === "auto" ? Mp(Ze, nt) : ce, o.drawRoundRectanglePath(ct || r, vt.x, vt.y, Ze, nt, ce + (_e + Z + le) / 2); else if (["cutrectangle", "cut-rectangle"].includes(tt)) - ce = ce === "auto" ? K5() : ce, o.drawCutRectanglePath(ct || r, vt.x, vt.y, Ze, nt, null, ce + (_e + Q + le) / 4); + ce = ce === "auto" ? K5() : ce, o.drawCutRectanglePath(ct || r, vt.x, vt.y, Ze, nt, null, ce + (_e + Z + le) / 4); else if (["bottomroundrectangle", "bottom-round-rectangle"].includes(tt)) - ce = ce === "auto" ? Mp(Ze, nt) : ce, o.drawBottomRoundRectanglePath(ct || r, vt.x, vt.y, Ze, nt, ce + (_e + Q + le) / 2); + ce = ce === "auto" ? Mp(Ze, nt) : ce, o.drawBottomRoundRectanglePath(ct || r, vt.x, vt.y, Ze, nt, ce + (_e + Z + le) / 2); else if (tt === "barrel") o.drawBarrelPath(ct || r, vt.x, vt.y, Ze, nt); else if (tt.startsWith("polygon") || ["rhomboid", "right-rhomboid", "round-tag", "tag", "vee"].includes(tt)) { - var bn = (_e + Q + le) / s; + var bn = (_e + Z + le) / s; It = kx(Ix(It, bn)), o.drawPolygonPath(ct || r, vt.x, vt.y, s, u, It); } else { - var wn = (_e + Q + le) / s; + var wn = (_e + Z + le) / s; It = kx(Ix(It, -wn)), o.drawPolygonPath(ct || r, vt.x, vt.y, s, u, It); } if (h ? r.stroke(ct) : r.stroke(), re === "double") { @@ -33843,16 +33855,16 @@ Vp.drawNode = function(r, e, t) { } }, Ee = function() { i && o.drawNodeOverlay(r, e, f, s, u); - }, De = function() { + }, Me = function() { i && o.drawNodeUnderlay(r, e, f, s, u); }, Ie = function() { o.drawElementText(r, e, null, n); }, Ye = e.pstyle("ghost").value === "yes"; if (Ye) { var ot = e.pstyle("ghost-offset-x").pfValue, mt = e.pstyle("ghost-offset-y").pfValue, wt = e.pstyle("ghost-opacity").value, Mt = wt * d; - r.translate(ot, mt), se(), we(), pe(wt * B), Me(), Ne(Mt, !0), fe(wt * X), ie(), Ce(k !== 0 || L !== 0), Y(k !== 0 || L !== 0), Ne(Mt, !1), Z(Mt), r.translate(-ot, -mt); + r.translate(ot, mt), se(), we(), pe(wt * B), De(), Ne(Mt, !0), fe(wt * X), ie(), Te(k !== 0 || L !== 0), Y(k !== 0 || L !== 0), Ne(Mt, !1), Q(Mt), r.translate(-ot, -mt); } - h && r.translate(-f.x, -f.y), De(), h && r.translate(f.x, f.y), se(), we(), pe(), Me(), Ne(d, !0), fe(), ie(), Ce(k !== 0 || L !== 0), Y(k !== 0 || L !== 0), Ne(d, !1), Z(), h && r.translate(-f.x, -f.y), Ie(), Ee(), t && r.translate(b.x1, b.y1); + h && r.translate(-f.x, -f.y), Me(), h && r.translate(f.x, f.y), se(), we(), pe(), De(), Ne(d, !0), fe(), ie(), Te(k !== 0 || L !== 0), Y(k !== 0 || L !== 0), Ne(d, !1), Q(), h && r.translate(-f.x, -f.y), Ie(), Ee(), t && r.translate(b.x1, b.y1); } }; var bU = function(e) { @@ -33914,7 +33926,7 @@ Vp.drawStripe = function(r, e, t, n) { } r.restore(); }; -var Gl = {}, Fee = 100; +var Gl = {}, Uee = 100; Gl.getPixelRatio = function() { var r = this.data.contexts[0]; if (this.forcedPixelRatio != null) @@ -34114,12 +34126,12 @@ Gl.render = function(r) { } else e.textureOnViewport && !n && (e.textureCache = null); var W = t.extent(), $ = e.pinching || e.hoverData.dragging || e.swipePanning || e.data.wheelZooming || e.hoverData.draggingEles || e.cy.animated(), J = e.hideEdgesOnViewport && $, X = []; if (X[e.NODE] = !c[e.NODE] && d && !e.clearedForMotionBlur[e.NODE] || e.clearingMotionBlur, X[e.NODE] && (e.clearedForMotionBlur[e.NODE] = !0), X[e.DRAG] = !c[e.DRAG] && d && !e.clearedForMotionBlur[e.DRAG] || e.clearingMotionBlur, X[e.DRAG] && (e.clearedForMotionBlur[e.DRAG] = !0), c[e.NODE] || i || a || X[e.NODE]) { - var Q = d && !X[e.NODE] && h !== 1, j = n || (Q ? e.data.bufferContexts[e.MOTIONBLUR_BUFFER_NODE] : l.contexts[e.NODE]), ue = d && !Q ? "motionBlur" : void 0; + var Z = d && !X[e.NODE] && h !== 1, j = n || (Z ? e.data.bufferContexts[e.MOTIONBLUR_BUFFER_NODE] : l.contexts[e.NODE]), ue = d && !Z ? "motionBlur" : void 0; L(j, ue), J ? e.drawCachedNodes(j, I.nondrag, u, W) : e.drawLayeredElements(j, I.nondrag, u, W), e.debug && e.drawDebugPoints(j, I.nondrag), !i && !d && (c[e.NODE] = !1); } if (!a && (c[e.DRAG] || i || X[e.DRAG])) { - var Q = d && !X[e.DRAG] && h !== 1, j = n || (Q ? e.data.bufferContexts[e.MOTIONBLUR_BUFFER_DRAG] : l.contexts[e.DRAG]); - L(j, d && !Q ? "motionBlur" : void 0), J ? e.drawCachedNodes(j, I.drag, u, W) : e.drawCachedElements(j, I.drag, u, W), e.debug && e.drawDebugPoints(j, I.drag), !i && !d && (c[e.DRAG] = !1); + var Z = d && !X[e.DRAG] && h !== 1, j = n || (Z ? e.data.bufferContexts[e.MOTIONBLUR_BUFFER_DRAG] : l.contexts[e.DRAG]); + L(j, d && !Z ? "motionBlur" : void 0), J ? e.drawCachedNodes(j, I.drag, u, W) : e.drawCachedElements(j, I.drag, u, W), e.debug && e.drawDebugPoints(j, I.drag), !i && !d && (c[e.DRAG] = !1); } if (this.drawSelectionRectangle(r, L), d && h !== 1) { var re = l.contexts[e.NODE], ne = e.data.bufferCanvases[e.MOTIONBLUR_BUFFER_NODE], le = l.contexts[e.DRAG], ce = e.data.bufferCanvases[e.MOTIONBLUR_BUFFER_DRAG], pe = function(se, de, ge) { @@ -34146,7 +34158,7 @@ Gl.render = function(r) { } e.prevViewport = E, e.clearingMotionBlur && (e.clearingMotionBlur = !1, e.motionBlurCleared = !0, e.motionBlur = !0), d && (e.motionBlurTimeout = setTimeout(function() { e.motionBlurTimeout = null, e.clearedForMotionBlur[e.NODE] = !1, e.clearedForMotionBlur[e.DRAG] = !1, e.motionBlur = !1, e.clearingMotionBlur = !f, e.mbFrames = 0, c[e.NODE] = !0, c[e.DRAG] = !0, e.redraw(); - }, Fee)), n || t.emit("render"); + }, Uee)), n || t.emit("render"); }; var W0; Gl.drawSelectionRectangle = function(r, e) { @@ -34182,13 +34194,13 @@ function E3(r, e, t) { throw new Error(r.getShaderInfoLog(n)); return n; } -function Uee(r, e, t) { +function zee(r, e, t) { var n = E3(r, r.VERTEX_SHADER, e), i = E3(r, r.FRAGMENT_SHADER, t), a = r.createProgram(); if (r.attachShader(a, n), r.attachShader(a, i), r.linkProgram(a), !r.getProgramParameter(a, r.LINK_STATUS)) throw new Error("Could not initialize shaders"); return a; } -function zee(r, e, t) { +function qee(r, e, t) { t === void 0 && (t = e); var n = r.makeOffscreenCanvas(e, t), i = n.context = n.getContext("2d"); return n.clear = function() { @@ -34205,18 +34217,18 @@ function cD(r) { } }; } -function qee(r) { +function Gee(r) { var e = r.pixelRatio, t = r.cy.zoom(); return t * e; } -function Gee(r, e, t, n, i) { +function Vee(r, e, t, n, i) { var a = n * t + e.x, o = i * t + e.y; return o = Math.round(r.canvasHeight - o), [a, o]; } -function Vee(r) { +function Hee(r) { return r.pstyle("background-fill").value !== "solid" || r.pstyle("background-image").strValue !== "none" ? !1 : r.pstyle("border-width").value === 0 || r.pstyle("border-opacity").value === 0 ? !0 : r.pstyle("border-style").value === "solid"; } -function Hee(r, e) { +function Wee(r, e) { if (r.length !== e.length) return !1; for (var t = 0; t < r.length; t++) @@ -34232,10 +34244,10 @@ function em(r, e) { var t = e || new Array(4); return t[0] = (r >> 0 & 255) / 255, t[1] = (r >> 8 & 255) / 255, t[2] = (r >> 16 & 255) / 255, t[3] = (r >> 24 & 255) / 255, t; } -function Wee(r) { +function Yee(r) { return r[0] + (r[1] << 8) + (r[2] << 16) + (r[3] << 24); } -function Yee(r, e) { +function Xee(r, e) { var t = r.createTexture(); return t.buffer = function(n) { r.bindTexture(r.TEXTURE_2D, t), r.texParameteri(r.TEXTURE_2D, r.TEXTURE_WRAP_S, r.CLAMP_TO_EDGE), r.texParameteri(r.TEXTURE_2D, r.TEXTURE_WRAP_T, r.CLAMP_TO_EDGE), r.texParameteri(r.TEXTURE_2D, r.TEXTURE_MAG_FILTER, r.LINEAR), r.texParameteri(r.TEXTURE_2D, r.TEXTURE_MIN_FILTER, r.LINEAR_MIPMAP_NEAREST), r.pixelStorei(r.UNPACK_PREMULTIPLY_ALPHA_WEBGL, !0), r.texImage2D(r.TEXTURE_2D, 0, r.RGBA, r.RGBA, r.UNSIGNED_BYTE, n), r.generateMipmap(r.TEXTURE_2D), r.bindTexture(r.TEXTURE_2D, null); @@ -34267,7 +34279,7 @@ function wU(r, e, t) { return new Int32Array(t); } } -function Xee(r, e, t, n, i, a) { +function $ee(r, e, t, n, i, a) { switch (e) { case r.FLOAT: return new Float32Array(t.buffer, a * n, i); @@ -34275,7 +34287,7 @@ function Xee(r, e, t, n, i, a) { return new Int32Array(t.buffer, a * n, i); } } -function $ee(r, e, t, n) { +function Kee(r, e, t, n) { var i = _U(r, e), a = Uo(i, 2), o = a[0], s = a[1], u = wU(r, s, n), l = r.createBuffer(); return r.bindBuffer(r.ARRAY_BUFFER, l), r.bufferData(r.ARRAY_BUFFER, u, r.STATIC_DRAW), s === r.FLOAT ? r.vertexAttribPointer(t, o, s, !1, 0, 0) : s === r.INT && r.vertexAttribIPointer(t, o, s, 0, 0), r.enableVertexAttribArray(t), r.bindBuffer(r.ARRAY_BUFFER, null), l; } @@ -34283,7 +34295,7 @@ function uh(r, e, t, n) { var i = _U(r, t), a = Uo(i, 3), o = a[0], s = a[1], u = a[2], l = wU(r, s, e * o), c = o * u, f = r.createBuffer(); r.bindBuffer(r.ARRAY_BUFFER, f), r.bufferData(r.ARRAY_BUFFER, e * c, r.DYNAMIC_DRAW), r.enableVertexAttribArray(n), s === r.FLOAT ? r.vertexAttribPointer(n, o, s, !1, c, 0) : s === r.INT && r.vertexAttribIPointer(n, o, s, c, 0), r.vertexAttribDivisor(n, 1), r.bindBuffer(r.ARRAY_BUFFER, null); for (var d = new Array(e), h = 0; h < e; h++) - d[h] = Xee(r, s, l, c, o, h); + d[h] = $ee(r, s, l, c, o, h); return f.dataArray = l, f.stride = c, f.size = o, f.getView = function(p) { return d[p]; }, f.setPoint = function(p, g, y) { @@ -34293,7 +34305,7 @@ function uh(r, e, t, n) { r.bindBuffer(r.ARRAY_BUFFER, f), p ? r.bufferSubData(r.ARRAY_BUFFER, 0, l, 0, p * o) : r.bufferSubData(r.ARRAY_BUFFER, 0, l); }, f; } -function Kee(r, e, t) { +function Zee(r, e, t) { for (var n = 9, i = new Float32Array(e * n), a = new Array(e), o = 0; o < e; o++) { var s = o * n * 4; a[o] = new Float32Array(i.buffer, s, n); @@ -34312,7 +34324,7 @@ function Kee(r, e, t) { r.bindBuffer(r.ARRAY_BUFFER, u), r.bufferSubData(r.ARRAY_BUFFER, 0, i); }, u; } -function Zee(r) { +function Qee(r) { var e = r.createFramebuffer(); r.bindFramebuffer(r.FRAMEBUFFER, e); var t = r.createTexture(); @@ -34326,14 +34338,14 @@ Math.hypot || (Math.hypot = function() { r += arguments[e] * arguments[e]; return Math.sqrt(r); }); -function BO() { +function jO() { var r = new S3(9); return S3 != Float32Array && (r[1] = 0, r[2] = 0, r[3] = 0, r[5] = 0, r[6] = 0, r[7] = 0), r[0] = 1, r[4] = 1, r[8] = 1, r; } function O3(r) { return r[0] = 1, r[1] = 0, r[2] = 0, r[3] = 0, r[4] = 1, r[5] = 0, r[6] = 0, r[7] = 0, r[8] = 1, r; } -function Qee(r, e, t) { +function Jee(r, e, t) { var n = e[0], i = e[1], a = e[2], o = e[3], s = e[4], u = e[5], l = e[6], c = e[7], f = e[8], d = t[0], h = t[1], p = t[2], g = t[3], y = t[4], b = t[5], _ = t[6], m = t[7], x = t[8]; return r[0] = d * n + h * o + p * l, r[1] = d * i + h * s + p * c, r[2] = d * a + h * u + p * f, r[3] = g * n + y * o + b * l, r[4] = g * i + y * s + b * c, r[5] = g * a + y * u + b * f, r[6] = _ * n + m * o + x * l, r[7] = _ * i + m * s + x * c, r[8] = _ * a + m * u + x * f, r; } @@ -34345,14 +34357,14 @@ function T3(r, e, t) { var n = e[0], i = e[1], a = e[2], o = e[3], s = e[4], u = e[5], l = e[6], c = e[7], f = e[8], d = Math.sin(t), h = Math.cos(t); return r[0] = h * n + d * o, r[1] = h * i + d * s, r[2] = h * a + d * u, r[3] = h * o - d * n, r[4] = h * s - d * i, r[5] = h * u - d * a, r[6] = l, r[7] = c, r[8] = f, r; } -function SM(r, e, t) { +function EM(r, e, t) { var n = t[0], i = t[1]; return r[0] = n * e[0], r[1] = n * e[1], r[2] = n * e[2], r[3] = i * e[3], r[4] = i * e[4], r[5] = i * e[5], r[6] = e[6], r[7] = e[7], r[8] = e[8], r; } -function Jee(r, e, t) { +function ete(r, e, t) { return r[0] = 2 / e, r[1] = 0, r[2] = 0, r[3] = 0, r[4] = -2 / t, r[5] = 0, r[6] = -1, r[7] = 1, r[8] = 1, r; } -var ete = /* @__PURE__ */ (function() { +var tte = /* @__PURE__ */ (function() { function r(e, t, n, i) { zp(this, r), this.debugID = Math.floor(Math.random() * 1e4), this.r = e, this.texSize = t, this.texRows = n, this.texHeight = Math.floor(t / n), this.enableWrapping = !0, this.locked = !1, this.texture = null, this.needsBuffer = !0, this.freePointer = { x: 0, @@ -34461,7 +34473,7 @@ var ete = /* @__PURE__ */ (function() { }, { key: "bufferIfNeeded", value: function(t) { - this.texture || (this.texture = Yee(t, this.debugID)), this.needsBuffer && (this.texture.buffer(this.canvas), this.needsBuffer = !1, this.locked && (this.canvas = null, this.scratch = null)); + this.texture || (this.texture = Xee(t, this.debugID)), this.needsBuffer && (this.texture.buffer(this.canvas), this.needsBuffer = !1, this.locked && (this.canvas = null, this.scratch = null)); } }, { key: "dispose", @@ -34469,7 +34481,7 @@ var ete = /* @__PURE__ */ (function() { this.texture && (this.texture.deleteTexture(), this.texture = null), this.canvas = null, this.scratch = null, this.locked = !0; } }]); -})(), tte = /* @__PURE__ */ (function() { +})(), rte = /* @__PURE__ */ (function() { function r(e, t, n, i) { zp(this, r), this.r = e, this.texSize = t, this.texRows = n, this.createTextureCanvas = i, this.atlases = [], this.styleKeyToAtlas = /* @__PURE__ */ new Map(), this.markedKeys = /* @__PURE__ */ new Set(); } @@ -34482,7 +34494,7 @@ var ete = /* @__PURE__ */ (function() { key: "_createAtlas", value: function() { var t = this.r, n = this.texSize, i = this.texRows, a = this.createTextureCanvas; - return new ete(t, n, i, a); + return new tte(t, n, i, a); } }, { key: "_getScratchCanvas", @@ -34525,7 +34537,7 @@ var ete = /* @__PURE__ */ (function() { var i = [], a = /* @__PURE__ */ new Map(), o = null, s = Ac(this.atlases), u; try { var l = function() { - var f = u.value, d = f.getKeys(), h = rte(n, d); + var f = u.value, d = f.getKeys(), h = nte(n, d); if (h.size === 0) return i.push(f), d.forEach(function(S) { return a.set(S, f); @@ -34600,12 +34612,12 @@ var ete = /* @__PURE__ */ (function() { } }]); })(); -function rte(r, e) { +function nte(r, e) { return r.intersection ? r.intersection(e) : new Set(Rx(r).filter(function(t) { return e.has(t); })); } -var nte = /* @__PURE__ */ (function() { +var ite = /* @__PURE__ */ (function() { function r(e, t) { zp(this, r), this.r = e, this.globalOptions = t, this.atlasSize = t.webglTexSize, this.maxAtlasesPerBatch = t.webglTexPerBatch, this.renderTypes = /* @__PURE__ */ new Map(), this.collections = /* @__PURE__ */ new Map(), this.typeAndIdToKey = /* @__PURE__ */ new Map(); } @@ -34617,7 +34629,7 @@ var nte = /* @__PURE__ */ (function() { }, { key: "addAtlasCollection", value: function(t, n) { - var i = this.globalOptions, a = i.webglTexSize, o = i.createTextureCanvas, s = n.texRows, u = this._cacheScratchCanvas(o), l = new tte(this.r, a, s, u); + var i = this.globalOptions, a = i.webglTexSize, o = i.createTextureCanvas, s = n.texRows, u = this._cacheScratchCanvas(o), l = new rte(this.r, a, s, u); this.collections.set(t, l); } }, { @@ -34679,7 +34691,7 @@ var nte = /* @__PURE__ */ (function() { }), d = !0; else { var P = x.getID ? x.getID(g) : g.id(), I = n._key(S, P), k = n.typeAndIdToKey.get(I); - k !== void 0 && !Hee(T, k) && (f = !0, n.typeAndIdToKey.delete(I), k.forEach(function(L) { + k !== void 0 && !Wee(T, k) && (f = !0, n.typeAndIdToKey.delete(I), k.forEach(function(L) { return O.markKeyForGC(L); })); } @@ -34765,7 +34777,7 @@ var nte = /* @__PURE__ */ (function() { return t; } }]); -})(), ite = /* @__PURE__ */ (function() { +})(), ate = /* @__PURE__ */ (function() { function r(e) { zp(this, r), this.globalOptions = e, this.atlasSize = e.webglTexSize, this.maxAtlasesPerBatch = e.webglTexPerBatch, this.batchAtlases = []; } @@ -34820,23 +34832,23 @@ var nte = /* @__PURE__ */ (function() { return n; } }]); -})(), ate = ` +})(), ote = ` float circleSD(vec2 p, float r) { return distance(vec2(0), p) - r; // signed distance } -`, ote = ` +`, ste = ` float rectangleSD(vec2 p, vec2 b) { vec2 d = abs(p)-b; return distance(vec2(0),max(d,0.0)) + min(max(d.x,d.y),0.0); } -`, ste = ` +`, ute = ` float roundRectangleSD(vec2 p, vec2 b, vec4 cr) { cr.xy = (p.x > 0.0) ? cr.xy : cr.zw; cr.x = (p.y > 0.0) ? cr.x : cr.y; vec2 q = abs(p) - b + cr.x; return min(max(q.x, q.y), 0.0) + distance(vec2(0), max(q, 0.0)) - cr.x; } -`, ute = ` +`, lte = ` float ellipseSD(vec2 p, vec2 ab) { p = abs( p ); // symmetry @@ -34871,9 +34883,9 @@ var nte = /* @__PURE__ */ (function() { // don't render the texture at all USE_BB: 2 // render the bounding box as an opaque rectangle -}, FO = 0, C3 = 1, A3 = 2, UO = 3, tm = 4, xw = 5, Y0 = 6, X0 = 7, lte = /* @__PURE__ */ (function() { +}, BO = 0, C3 = 1, A3 = 2, FO = 3, tm = 4, xw = 5, Y0 = 6, X0 = 7, cte = /* @__PURE__ */ (function() { function r(e, t, n) { - zp(this, r), this.r = e, this.gl = t, this.maxInstances = n.webglBatchSize, this.atlasSize = n.webglTexSize, this.bgColor = n.bgColor, this.debug = n.webglDebug, this.batchDebugInfo = [], n.enableWrapping = !0, n.createTextureCanvas = zee, this.atlasManager = new nte(e, n), this.batchManager = new ite(n), this.simpleShapeOptions = /* @__PURE__ */ new Map(), this.program = this._createShaderProgram(kb.SCREEN), this.pickingProgram = this._createShaderProgram(kb.PICKING), this.vao = this._createVAO(); + zp(this, r), this.r = e, this.gl = t, this.maxInstances = n.webglBatchSize, this.atlasSize = n.webglTexSize, this.bgColor = n.bgColor, this.debug = n.webglDebug, this.batchDebugInfo = [], n.enableWrapping = !0, n.createTextureCanvas = qee, this.atlasManager = new ite(e, n), this.batchManager = new ate(n), this.simpleShapeOptions = /* @__PURE__ */ new Map(), this.program = this._createShaderProgram(kb.SCREEN), this.pickingProgram = this._createShaderProgram(kb.PICKING), this.vao = this._createVAO(); } return qp(r, [{ key: "addAtlasCollection", @@ -35000,7 +35012,7 @@ var nte = /* @__PURE__ */ (function() { int vid = gl_VertexID; vec2 position = aPosition; // TODO make this a vec3, simplifies some code below - if(aVertType == `.concat(FO, `) { + if(aVertType == `.concat(BO, `) { float texX = aTex.x; // texture coordinates float texY = aTex.y; float texW = aTex.z; @@ -35098,7 +35110,7 @@ var nte = /* @__PURE__ */ (function() { vColor = aColor; } - else if(aVertType == `).concat(UO, ` && vid < 3) { + else if(aVertType == `).concat(FO, ` && vid < 3) { // massage the first triangle into an edge arrow if(vid == 0) position = vec2(-0.15, -0.3); @@ -35145,10 +35157,10 @@ var nte = /* @__PURE__ */ (function() { out vec4 outColor; - `).concat(ate, ` `).concat(ote, ` `).concat(ste, ` `).concat(ute, ` + `).concat(lte, ` vec4 blend(vec4 top, vec4 bot) { // blend colors with premultiplied alpha return vec4( @@ -35164,14 +35176,14 @@ var nte = /* @__PURE__ */ (function() { } void main(void) { - if(vVertType == `).concat(FO, `) { + if(vVertType == `).concat(BO, `) { // look up the texel from the texture unit `).concat(a.map(function(l) { return "if(vAtlasId == ".concat(l, ") outColor = texture(uTexture").concat(l, ", vTexCoord);"); }).join(` else `), ` } - else if(vVertType == `).concat(UO, `) { + else if(vVertType == `).concat(FO, `) { // mimics how canvas renderer uses context.globalCompositeOperation = 'destination-out'; outColor = blend(vColor, uBGColor); outColor.a = 1.0; // make opaque, masks out line under arrow @@ -35235,7 +35247,7 @@ var nte = /* @__PURE__ */ (function() { `).concat(t.picking ? `if(outColor.a == 0.0) discard; else outColor = vIndex;` : "", ` } - `), s = Uee(n, i, o); + `), s = zee(n, i, o); s.aPosition = n.getAttribLocation(s, "aPosition"), s.aIndex = n.getAttribLocation(s, "aIndex"), s.aVertType = n.getAttribLocation(s, "aVertType"), s.aTransform = n.getAttribLocation(s, "aTransform"), s.aAtlasId = n.getAttribLocation(s, "aAtlasId"), s.aTex = n.getAttribLocation(s, "aTex"), s.aPointAPointB = n.getAttribLocation(s, "aPointAPointB"), s.aPointCPointD = n.getAttribLocation(s, "aPointCPointD"), s.aLineWidth = n.getAttribLocation(s, "aLineWidth"), s.aColor = n.getAttribLocation(s, "aColor"), s.aCornerRadius = n.getAttribLocation(s, "aCornerRadius"), s.aBorderColor = n.getAttribLocation(s, "aBorderColor"), s.uPanZoomMatrix = n.getUniformLocation(s, "uPanZoomMatrix"), s.uAtlasSize = n.getUniformLocation(s, "uAtlasSize"), s.uBGColor = n.getUniformLocation(s, "uBGColor"), s.uZoom = n.getUniformLocation(s, "uZoom"), s.uTextures = []; for (var u = 0; u < this.batchManager.getMaxAtlasesPerBatch(); u++) s.uTextures.push(n.getUniformLocation(s, "uTexture".concat(u))); @@ -35247,7 +35259,7 @@ var nte = /* @__PURE__ */ (function() { var t = [0, 0, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1]; this.vertexCount = t.length / 2; var n = this.maxInstances, i = this.gl, a = this.program, o = i.createVertexArray(); - return i.bindVertexArray(o), $ee(i, "vec2", a.aPosition, t), this.transformBuffer = Kee(i, n, a.aTransform), this.indexBuffer = uh(i, n, "vec4", a.aIndex), this.vertTypeBuffer = uh(i, n, "int", a.aVertType), this.atlasIdBuffer = uh(i, n, "int", a.aAtlasId), this.texBuffer = uh(i, n, "vec4", a.aTex), this.pointAPointBBuffer = uh(i, n, "vec4", a.aPointAPointB), this.pointCPointDBuffer = uh(i, n, "vec4", a.aPointCPointD), this.lineWidthBuffer = uh(i, n, "vec2", a.aLineWidth), this.colorBuffer = uh(i, n, "vec4", a.aColor), this.cornerRadiusBuffer = uh(i, n, "vec4", a.aCornerRadius), this.borderColorBuffer = uh(i, n, "vec4", a.aBorderColor), i.bindVertexArray(null), o; + return i.bindVertexArray(o), Kee(i, "vec2", a.aPosition, t), this.transformBuffer = Zee(i, n, a.aTransform), this.indexBuffer = uh(i, n, "vec4", a.aIndex), this.vertTypeBuffer = uh(i, n, "int", a.aVertType), this.atlasIdBuffer = uh(i, n, "int", a.aAtlasId), this.texBuffer = uh(i, n, "vec4", a.aTex), this.pointAPointBBuffer = uh(i, n, "vec4", a.aPointAPointB), this.pointCPointDBuffer = uh(i, n, "vec4", a.aPointCPointD), this.lineWidthBuffer = uh(i, n, "vec2", a.aLineWidth), this.colorBuffer = uh(i, n, "vec4", a.aColor), this.cornerRadiusBuffer = uh(i, n, "vec4", a.aCornerRadius), this.borderColorBuffer = uh(i, n, "vec4", a.aBorderColor), i.bindVertexArray(null), o; } }, { key: "buffers", @@ -35306,7 +35318,7 @@ var nte = /* @__PURE__ */ (function() { var m = Uo(_[b], 2), x = m[0], S = m[1]; if (x.w != 0) { var O = this.instanceCount; - this.vertTypeBuffer.getView(O)[0] = FO; + this.vertTypeBuffer.getView(O)[0] = BO; var E = this.indexBuffer.getView(O); em(n, E); var T = this.atlasIdBuffer.getView(O); @@ -35356,7 +35368,7 @@ var nte = /* @__PURE__ */ (function() { o = d.x + (n.xOffset || 0), s = d.y + (n.yOffset || 0); } else o = n.x1, s = n.y1; - ix(t, t, [o, s]), SM(t, t, [n.w, n.h]); + ix(t, t, [o, s]), EM(t, t, [n.w, n.h]); } /** * Adjusts a node or label BB to accomodate padding and split for wrapped textures. @@ -35478,7 +35490,7 @@ var nte = /* @__PURE__ */ (function() { var l = t.pstyle(i + "-arrow-shape").value; if (l !== "none") { var c = t.pstyle(i + "-arrow-color").value, f = t.pstyle("opacity").value, d = t.pstyle("line-opacity").value, h = f * d, p = t.pstyle("width").pfValue, g = t.pstyle("arrow-scale").value, y = this.r.getArrowWidth(p, g), b = this.instanceCount, _ = this.transformBuffer.getMatrixView(b); - O3(_), ix(_, _, [o, s]), SM(_, _, [y, y]), T3(_, _, u), this.vertTypeBuffer.getView(b)[0] = UO; + O3(_), ix(_, _, [o, s]), EM(_, _, [y, y]), T3(_, _, u), this.vertTypeBuffer.getView(b)[0] = FO; var m = this.indexBuffer.getView(b); em(n, m); var x = this.colorBuffer.getView(b); @@ -35603,7 +35615,7 @@ var nte = /* @__PURE__ */ (function() { c[f].bufferIfNeeded(t); for (var d = 0; d < c.length; d++) t.activeTexture(t.TEXTURE0 + d), t.bindTexture(t.TEXTURE_2D, c[d].texture), t.uniform1i(o.uTextures[d], d); - t.uniform1f(o.uZoom, qee(this.r)), t.uniformMatrix3fv(o.uPanZoomMatrix, !1, this.panZoomMatrix), t.uniform1i(o.uAtlasSize, this.batchManager.getAtlasSize()); + t.uniform1f(o.uZoom, Gee(this.r)), t.uniformMatrix3fv(o.uPanZoomMatrix, !1, this.panZoomMatrix), t.uniform1i(o.uAtlasSize, this.batchManager.getAtlasSize()); var h = Sg(this.bgColor, 1); t.uniform4fv(o.uBGColor, h), t.drawArraysInstanced(t.TRIANGLES, 0, i, a), t.bindVertexArray(null), t.bindTexture(t.TEXTURE_2D, null), this.debug && this.batchDebugInfo.push({ count: a, @@ -35634,7 +35646,7 @@ var nte = /* @__PURE__ */ (function() { })(), xU = {}; xU.initWebgl = function(r, e) { var t = this, n = t.data.contexts[t.WEBGL]; - r.bgColor = cte(t), r.webglTexSize = Math.min(r.webglTexSize, n.getParameter(n.MAX_TEXTURE_SIZE)), r.webglTexRows = Math.min(r.webglTexRows, 54), r.webglTexRowsNodes = Math.min(r.webglTexRowsNodes, 54), r.webglBatchSize = Math.min(r.webglBatchSize, 16384), r.webglTexPerBatch = Math.min(r.webglTexPerBatch, n.getParameter(n.MAX_TEXTURE_IMAGE_UNITS)), t.webglDebug = r.webglDebug, t.webglDebugShowAtlases = r.webglDebugShowAtlases, t.pickingFrameBuffer = Zee(n), t.pickingFrameBuffer.needsDraw = !0, t.drawing = new lte(t, n, r); + r.bgColor = fte(t), r.webglTexSize = Math.min(r.webglTexSize, n.getParameter(n.MAX_TEXTURE_SIZE)), r.webglTexRows = Math.min(r.webglTexRows, 54), r.webglTexRowsNodes = Math.min(r.webglTexRowsNodes, 54), r.webglBatchSize = Math.min(r.webglBatchSize, 16384), r.webglTexPerBatch = Math.min(r.webglTexPerBatch, n.getParameter(n.MAX_TEXTURE_IMAGE_UNITS)), t.webglDebug = r.webglDebug, t.webglDebugShowAtlases = r.webglDebugShowAtlases, t.pickingFrameBuffer = Qee(n), t.pickingFrameBuffer.needsDraw = !0, t.drawing = new cte(t, n, r); var i = function(f) { return function(d) { return t.getTextAngle(d, f); @@ -35671,7 +35683,7 @@ xU.initWebgl = function(r, e) { drawElement: e.drawElement }), t.drawing.addSimpleShapeRenderType("node-body", { getBoundingBox: u, - isSimple: Vee, + isSimple: Hee, shapeProps: { shape: "shape", color: "background-color", @@ -35703,8 +35715,8 @@ xU.initWebgl = function(r, e) { // node label or edge mid label collection: "label", getTexPickingMode: s, - getKey: zO(e.getLabelKey, null), - getBoundingBox: qO(e.getLabelBox, null), + getKey: UO(e.getLabelKey, null), + getBoundingBox: zO(e.getLabelBox, null), drawClipped: !0, drawElement: e.drawLabel, getRotation: i(null), @@ -35714,8 +35726,8 @@ xU.initWebgl = function(r, e) { }), t.drawing.addTextureAtlasRenderType("edge-source-label", { collection: "label", getTexPickingMode: s, - getKey: zO(e.getSourceLabelKey, "source"), - getBoundingBox: qO(e.getSourceLabelBox, "source"), + getKey: UO(e.getSourceLabelKey, "source"), + getBoundingBox: zO(e.getSourceLabelBox, "source"), drawClipped: !0, drawElement: e.drawSourceLabel, getRotation: i("source"), @@ -35725,8 +35737,8 @@ xU.initWebgl = function(r, e) { }), t.drawing.addTextureAtlasRenderType("edge-target-label", { collection: "label", getTexPickingMode: s, - getKey: zO(e.getTargetLabelKey, "target"), - getBoundingBox: qO(e.getTargetLabelBox, "target"), + getKey: UO(e.getTargetLabelKey, "target"), + getBoundingBox: zO(e.getTargetLabelBox, "target"), drawClipped: !0, drawElement: e.drawTargetLabel, getRotation: i("target"), @@ -35740,9 +35752,9 @@ xU.initWebgl = function(r, e) { t.onUpdateEleCalcs(function(c, f) { var d = !1; f && f.length > 0 && (d |= t.drawing.invalidate(f)), d && l(); - }), fte(t); + }), dte(t); }; -function cte(r) { +function fte(r) { var e = r.cy.container(), t = e && e.style && e.style.backgroundColor || "white"; return K7(t); } @@ -35750,14 +35762,14 @@ function EU(r, e) { var t = r._private.rscratch; return Tc(t, "labelWrapCachedLines", e) || []; } -var zO = function(e, t) { +var UO = function(e, t) { return function(n) { var i = e(n), a = EU(n, t); return a.length > 1 ? a.map(function(o, s) { return "".concat(i, "_").concat(s); }) : i; }; -}, qO = function(e, t) { +}, zO = function(e, t) { return function(n, i) { var a = e(n); if (typeof i == "string") { @@ -35776,13 +35788,13 @@ var zO = function(e, t) { return a; }; }; -function fte(r) { +function dte(r) { { var e = r.render; r.render = function(a) { a = a || {}; var o = r.cy; - r.webgl && (o.zoom() > pU ? (dte(r), e.call(r, a)) : (hte(r), OU(r, a, kb.SCREEN))); + r.webgl && (o.zoom() > pU ? (hte(r), e.call(r, a)) : (vte(r), OU(r, a, kb.SCREEN))); }; } { @@ -35792,7 +35804,7 @@ function fte(r) { }; } r.findNearestElements = function(a, o, s, u) { - return bte(r, a, o); + return _te(r, a, o); }; { var n = r.invalidateCachedZSortedEles; @@ -35809,38 +35821,38 @@ function fte(r) { }; } } -function dte(r) { +function hte(r) { var e = r.data.contexts[r.WEBGL]; e.clear(e.COLOR_BUFFER_BIT | e.DEPTH_BUFFER_BIT); } -function hte(r) { +function vte(r) { var e = function(n) { n.save(), n.setTransform(1, 0, 0, 1, 0, 0), n.clearRect(0, 0, r.canvasWidth, r.canvasHeight), n.restore(); }; e(r.data.contexts[r.NODE]), e(r.data.contexts[r.DRAG]); } -function vte(r) { - var e = r.canvasWidth, t = r.canvasHeight, n = cD(r), i = n.pan, a = n.zoom, o = BO(); - ix(o, o, [i.x, i.y]), SM(o, o, [a, a]); - var s = BO(); - Jee(s, e, t); - var u = BO(); - return Qee(u, s, o), u; +function pte(r) { + var e = r.canvasWidth, t = r.canvasHeight, n = cD(r), i = n.pan, a = n.zoom, o = jO(); + ix(o, o, [i.x, i.y]), EM(o, o, [a, a]); + var s = jO(); + ete(s, e, t); + var u = jO(); + return Jee(u, s, o), u; } function SU(r, e) { var t = r.canvasWidth, n = r.canvasHeight, i = cD(r), a = i.pan, o = i.zoom; e.setTransform(1, 0, 0, 1, 0, 0), e.clearRect(0, 0, t, n), e.translate(a.x, a.y), e.scale(o, o); } -function pte(r, e) { +function gte(r, e) { r.drawSelectionRectangle(e, function(t) { return SU(r, t); }); } -function gte(r) { +function yte(r) { var e = r.data.contexts[r.NODE]; e.save(), SU(r, e), e.strokeStyle = "rgba(0, 0, 0, 0.3)", e.beginPath(), e.moveTo(-1e3, 0), e.lineTo(1e3, 0), e.stroke(), e.beginPath(), e.moveTo(0, -1e3), e.lineTo(0, 1e3), e.stroke(), e.restore(); } -function yte(r) { +function mte(r) { var e = function(i, a, o) { for (var s = i.atlasManager.getAtlasCollection(a), u = r.data.contexts[r.NODE], l = s.atlases, c = 0; c < l.length; c++) { var f = l[c], d = f.canvas; @@ -35852,10 +35864,10 @@ function yte(r) { }, t = 0; e(r.drawing, "node", t++), e(r.drawing, "label", t++); } -function mte(r, e, t, n, i) { +function bte(r, e, t, n, i) { var a, o, s, u, l = cD(r), c = l.pan, f = l.zoom; { - var d = Gee(r, c, f, e, t), h = Uo(d, 2), p = h[0], g = h[1], y = 6; + var d = Vee(r, c, f, e, t), h = Uo(d, 2), p = h[0], g = h[1], y = 6; a = p - y / 2, o = g - y / 2, s = y, u = y; } if (s === 0 || u === 0) @@ -35865,13 +35877,13 @@ function mte(r, e, t, n, i) { var _ = s * u, m = new Uint8Array(_ * 4); b.readPixels(a, o, s, u, b.RGBA, b.UNSIGNED_BYTE, m), b.bindFramebuffer(b.FRAMEBUFFER, null); for (var x = /* @__PURE__ */ new Set(), S = 0; S < _; S++) { - var O = m.slice(S * 4, S * 4 + 4), E = Wee(O) - 1; + var O = m.slice(S * 4, S * 4 + 4), E = Yee(O) - 1; E >= 0 && x.add(E); } return x; } -function bte(r, e, t) { - var n = mte(r, e, t), i = r.getCachedZSortedEles(), a, o, s = Ac(n), u; +function _te(r, e, t) { + var n = bte(r, e, t), i = r.getCachedZSortedEles(), a, o, s = Ac(n), u; try { for (s.s(); !(u = s.n()).done; ) { var l = u.value, c = i[l]; @@ -35885,7 +35897,7 @@ function bte(r, e, t) { } return [a, o].filter(Boolean); } -function GO(r, e, t) { +function qO(r, e, t) { var n = r.drawing; e += 1, t.isNode() ? (n.drawNode(t, e, "node-underlay"), n.drawNode(t, e, "node-body"), n.drawTexture(t, e, "label"), n.drawNode(t, e, "node-overlay")) : (n.drawEdgeLine(t, e), n.drawEdgeArrow(t, e, "source"), n.drawEdgeArrow(t, e, "target"), n.drawTexture(t, e, "label"), n.drawTexture(t, e, "edge-source-label"), n.drawTexture(t, e, "edge-target-label")); } @@ -35893,19 +35905,19 @@ function OU(r, e, t) { var n; r.webglDebug && (n = performance.now()); var i = r.drawing, a = 0; - if (t.screen && r.data.canvasNeedsRedraw[r.SELECT_BOX] && pte(r, e), r.data.canvasNeedsRedraw[r.NODE] || t.picking) { + if (t.screen && r.data.canvasNeedsRedraw[r.SELECT_BOX] && gte(r, e), r.data.canvasNeedsRedraw[r.NODE] || t.picking) { var o = r.data.contexts[r.WEBGL]; t.screen ? (o.clearColor(0, 0, 0, 0), o.enable(o.BLEND), o.blendFunc(o.ONE, o.ONE_MINUS_SRC_ALPHA)) : o.disable(o.BLEND), o.clear(o.COLOR_BUFFER_BIT | o.DEPTH_BUFFER_BIT), o.viewport(0, 0, o.canvas.width, o.canvas.height); - var s = vte(r), u = r.getCachedZSortedEles(); + var s = pte(r), u = r.getCachedZSortedEles(); if (a = u.length, i.startFrame(s, t), t.screen) { for (var l = 0; l < u.nondrag.length; l++) - GO(r, l, u.nondrag[l]); + qO(r, l, u.nondrag[l]); for (var c = 0; c < u.drag.length; c++) - GO(r, c, u.drag[c]); + qO(r, c, u.drag[c]); } else if (t.picking) for (var f = 0; f < u.length; f++) - GO(r, f, u[f]); - i.endFrame(), t.screen && r.webglDebugShowAtlases && (gte(r), yte(r)), r.data.canvasNeedsRedraw[r.NODE] = !1, r.data.canvasNeedsRedraw[r.DRAG] = !1; + qO(r, f, u[f]); + i.endFrame(), t.screen && r.webglDebugShowAtlases && (yte(r), mte(r)), r.data.canvasNeedsRedraw[r.NODE] = !1, r.data.canvasNeedsRedraw[r.DRAG] = !1; } if (r.webglDebug) { var d = performance.now(), h = !1, p = Math.ceil(d - n), g = i.getDebugInfo(), y = ["".concat(a, " elements"), "".concat(g.totalInstances, " instances"), "".concat(g.batchCount, " batches"), "".concat(g.totalAtlases, " atlases"), "".concat(g.wrappedCount, " wrapped textures"), "".concat(g.simpleCount, " simple shapes")].join(", "); @@ -35955,18 +35967,18 @@ Hp.drawCutRectanglePath = function(r, e, t, n, i, a, o) { r.beginPath && r.beginPath(), r.moveTo(e - s + l, t - u), r.lineTo(e + s - l, t - u), r.lineTo(e + s, t - u + l), r.lineTo(e + s, t + u - l), r.lineTo(e + s - l, t + u), r.lineTo(e - s + l, t + u), r.lineTo(e - s, t + u - l), r.lineTo(e - s, t - u + l), r.closePath(); }; Hp.drawBarrelPath = function(r, e, t, n, i) { - var a = n / 2, o = i / 2, s = e - a, u = e + a, l = t - o, c = t + o, f = cM(n, i), d = f.widthOffset, h = f.heightOffset, p = f.ctrlPtOffsetPct * d; + var a = n / 2, o = i / 2, s = e - a, u = e + a, l = t - o, c = t + o, f = lM(n, i), d = f.widthOffset, h = f.heightOffset, p = f.ctrlPtOffsetPct * d; r.beginPath && r.beginPath(), r.moveTo(s, l + h), r.lineTo(s, c - h), r.quadraticCurveTo(s + p, c, s + d, c), r.lineTo(u - d, c), r.quadraticCurveTo(u - p, c, u, c - h), r.lineTo(u, l + h), r.quadraticCurveTo(u - p, l, u - d, l), r.lineTo(s + d, l), r.quadraticCurveTo(s + p, l, s, l + h), r.closePath(); }; -var R3 = Math.sin(0), P3 = Math.cos(0), OM = {}, TM = {}, TU = Math.PI / 40; +var R3 = Math.sin(0), P3 = Math.cos(0), SM = {}, OM = {}, TU = Math.PI / 40; for (var rm = 0 * Math.PI; rm < 2 * Math.PI; rm += TU) - OM[rm] = Math.sin(rm), TM[rm] = Math.cos(rm); + SM[rm] = Math.sin(rm), OM[rm] = Math.cos(rm); Hp.drawEllipsePath = function(r, e, t, n, i) { if (r.beginPath && r.beginPath(), r.ellipse) r.ellipse(e, t, n / 2, i / 2, 0, 0, 2 * Math.PI); else for (var a, o, s = n / 2, u = i / 2, l = 0 * Math.PI; l < 2 * Math.PI; l += TU) - a = e - s * OM[l] * R3 + s * TM[l] * P3, o = t + u * TM[l] * R3 + u * OM[l] * P3, l === 0 ? r.moveTo(a, o) : r.lineTo(a, o); + a = e - s * SM[l] * R3 + s * OM[l] * P3, o = t + u * OM[l] * R3 + u * SM[l] * P3, l === 0 ? r.moveTo(a, o) : r.lineTo(a, o); r.closePath(); }; var t_ = {}; @@ -36002,7 +36014,7 @@ t_.bufferCanvasImage = function(r) { } return d; }; -function _te(r, e) { +function wte(r, e) { for (var t = atob(r), n = new ArrayBuffer(t.length), i = new Uint8Array(n), a = 0; a < t.length; a++) i[a] = t.charCodeAt(a); return new Blob([n], { @@ -36029,7 +36041,7 @@ function CU(r, e, t) { } }); case "blob": - return _te(M3(n()), t); + return wte(M3(n()), t); case "base64": return M3(n()); case "base64uri": @@ -36065,7 +36077,7 @@ AU.nodeShapeImpl = function(r, e, t, n, i, a, o, s) { return this.drawBarrelPath(e, t, n, i, a); } }; -var wte = RU, An = RU.prototype; +var xte = RU, An = RU.prototype; An.CANVAS_LAYERS = 3; An.SELECT_BOX = 0; An.DRAG = 1; @@ -36098,7 +36110,7 @@ function RU(r) { "-webkit-tap-highlight-color": "rgba(0,0,0,0)", "outline-style": "none" }; - p$() && (u["-ms-touch-action"] = "none", u["touch-action"] = "none"); + g$() && (u["-ms-touch-action"] = "none", u["touch-action"] = "none"); for (var l = 0; l < An.CANVAS_LAYERS; l++) { var c = e.data.canvases[l] = n.createElement("canvas"), f = An.CANVAS_TYPES[l]; e.data.contexts[l] = c.getContext(f), e.data.contexts[l] || Ia("Could not create canvas of type " + f), Object.keys(u).forEach(function(fe) { @@ -36174,7 +36186,7 @@ function RU(r) { return p(I(se)); }, X = function(se) { return p(k(se)); - }, Q = function(se) { + }, Z = function(se) { var de = P(se), ge = p(P(se)); if (se.isNode()) { switch (se.pstyle("text-halign").value) { @@ -36209,7 +36221,7 @@ function RU(r) { drawElement: S, getBoundingBox: P, getRotationPoint: H, - getRotationOffset: Q, + getRotationOffset: Z, isVisible: L }), ne = e.data.slbTxrCache = new vb(e, { getKey: _, @@ -36255,7 +36267,7 @@ function RU(r) { getLabelRotationPoint: H, getSourceLabelRotationPoint: q, getTargetLabelRotationPoint: W, - getLabelRotationOffset: Q, + getLabelRotationOffset: Z, getSourceLabelRotationOffset: J, getTargetLabelRotationOffset: X }); @@ -36277,14 +36289,14 @@ An.redrawHint = function(r, e) { break; } }; -var xte = typeof Path2D < "u"; +var Ete = typeof Path2D < "u"; An.path2dEnabled = function(r) { if (r === void 0) return this.pathsEnabled; this.pathsEnabled = !!r; }; An.usePaths = function() { - return xte && this.pathsEnabled; + return Ete && this.pathsEnabled; }; An.setImgSmoothing = function(r, e) { r.imageSmoothingEnabled != null ? r.imageSmoothingEnabled = e : (r.webkitImageSmoothingEnabled = e, r.mozImageSmoothingEnabled = e, r.msImageSmoothingEnabled = e); @@ -36305,7 +36317,7 @@ An.makeOffscreenCanvas = function(r, e) { [yU, Th, wv, lD, ny, Vp, Gl, xU, Hp, t_, AU].forEach(function(r) { kr(An, r); }); -var Ete = [{ +var Ste = [{ name: "null", impl: nU }, { @@ -36313,13 +36325,13 @@ var Ete = [{ impl: hU }, { name: "canvas", - impl: wte -}], Ste = [{ + impl: xte +}], Ote = [{ type: "layout", - extensions: $J + extensions: KJ }, { type: "renderer", - extensions: Ete + extensions: Ste }], PU = {}, MU = {}; function DU(r, e, t) { var n = t, i = function(T) { @@ -36377,7 +36389,7 @@ function DU(r, e, t) { }; kr(o, { createEmitter: function() { - return this._private.emitter = new B2(d, this), this; + return this._private.emitter = new j2(d, this), this; }, emitter: function() { return this._private.emitter; @@ -36432,32 +36444,32 @@ function kU(r, e) { keys: [r, e] }); } -function Ote(r, e, t, n, i) { +function Tte(r, e, t, n, i) { return Z7({ map: MU, keys: [r, e, t, n], value: i }); } -function Tte(r, e, t, n) { +function Cte(r, e, t, n) { return Q7({ map: MU, keys: [r, e, t, n] }); } -var CM = function() { +var TM = function() { if (arguments.length === 2) return kU.apply(null, arguments); if (arguments.length === 3) return DU.apply(null, arguments); if (arguments.length === 4) - return Tte.apply(null, arguments); + return Cte.apply(null, arguments); if (arguments.length === 5) - return Ote.apply(null, arguments); + return Tte.apply(null, arguments); Ia("Invalid extension access syntax"); }; -S1.prototype.extension = CM; -Ste.forEach(function(r) { +S1.prototype.extension = TM; +Ote.forEach(function(r) { r.extensions.forEach(function(e) { DU(r.type, e.name, e.impl); }); @@ -36488,7 +36500,7 @@ $g.css = function(r, e) { for (var n = r, i = Object.keys(n), a = 0; a < i.length; a++) { var o = i[a], s = n[o]; if (s != null) { - var u = Ls.properties[o] || Ls.properties[A2(o)]; + var u = Ls.properties[o] || Ls.properties[C2(o)]; if (u != null) { var l = u.name, c = s; this[t].properties.push({ @@ -36516,11 +36528,11 @@ $g.appendToStyle = function(r) { } return r; }; -var Cte = "3.33.1", Np = function(e) { +var Ate = "3.33.1", Np = function(e) { if (e === void 0 && (e = {}), ai(e)) return new S1(e); if (Ar(e)) - return CM.apply(CM, arguments); + return TM.apply(TM, arguments); }; Np.use = function(r) { var e = Array.prototype.slice.call(arguments, 1); @@ -36529,14 +36541,14 @@ Np.use = function(r) { Np.warnings = function(r) { return aF(r); }; -Np.version = Cte; +Np.version = Ate; Np.stylesheet = Np.Stylesheet = qx; -var ax = { exports: {} }, ox = { exports: {} }, sx = { exports: {} }, Ate = sx.exports, D3; -function Rte() { +var ax = { exports: {} }, ox = { exports: {} }, sx = { exports: {} }, Rte = sx.exports, D3; +function Pte() { return D3 || (D3 = 1, (function(r, e) { (function(n, i) { r.exports = i(); - })(Ate, function() { + })(Rte, function() { return ( /******/ (function(t) { @@ -37177,22 +37189,22 @@ function Rte() { if (c < d) return l[0] = y, l[1] = f, l[2] = O, l[3] = h, !1; } else { - var H = s.height / s.width, q = u.height / u.width, W = (h - f) / (d - c), $ = void 0, J = void 0, X = void 0, Q = void 0, ue = void 0, re = void 0; + var H = s.height / s.width, q = u.height / u.width, W = (h - f) / (d - c), $ = void 0, J = void 0, X = void 0, Z = void 0, ue = void 0, re = void 0; if (-H === W ? c > d ? (l[0] = b, l[1] = _, j = !0) : (l[0] = y, l[1] = g, j = !0) : H === W && (c > d ? (l[0] = p, l[1] = g, j = !0) : (l[0] = m, l[1] = _, j = !0)), -q === W ? d > c ? (l[2] = P, l[3] = I, z = !0) : (l[2] = T, l[3] = E, z = !0) : q === W && (d > c ? (l[2] = O, l[3] = E, z = !0) : (l[2] = k, l[3] = I, z = !0)), j && z) return !1; if (c > d ? f > h ? ($ = this.getCardinalDirection(H, W, 4), J = this.getCardinalDirection(q, W, 2)) : ($ = this.getCardinalDirection(-H, W, 3), J = this.getCardinalDirection(-q, W, 1)) : f > h ? ($ = this.getCardinalDirection(-H, W, 1), J = this.getCardinalDirection(-q, W, 3)) : ($ = this.getCardinalDirection(H, W, 2), J = this.getCardinalDirection(q, W, 4)), !j) switch ($) { case 1: - Q = g, X = c + -S / W, l[0] = X, l[1] = Q; + Z = g, X = c + -S / W, l[0] = X, l[1] = Z; break; case 2: - X = m, Q = f + x * W, l[0] = X, l[1] = Q; + X = m, Z = f + x * W, l[0] = X, l[1] = Z; break; case 3: - Q = _, X = c + S / W, l[0] = X, l[1] = Q; + Z = _, X = c + S / W, l[0] = X, l[1] = Z; break; case 4: - X = b, Q = f + -x * W, l[0] = X, l[1] = Q; + X = b, Z = f + -x * W, l[0] = X, l[1] = Z; break; } if (!z) @@ -38135,12 +38147,12 @@ function Rte() { }); })(sx)), sx.exports; } -var Pte = ox.exports, k3; -function Mte() { +var Mte = ox.exports, k3; +function Dte() { return k3 || (k3 = 1, (function(r, e) { (function(n, i) { - r.exports = i(Rte()); - })(Pte, function(t) { + r.exports = i(Pte()); + })(Mte, function(t) { return ( /******/ (function(n) { @@ -38433,14 +38445,14 @@ function Mte() { W = W.concat(E.getEdges()); var $ = W.length; T != null && $--; - for (var J = 0, X = W.length, Q, ue = E.getEdgesBetween(T); ue.length > 1; ) { + for (var J = 0, X = W.length, Z, ue = E.getEdgesBetween(T); ue.length > 1; ) { var re = ue[0]; ue.splice(0, 1); var ne = W.indexOf(re); ne >= 0 && W.splice(ne, 1), X--, $--; } - T != null ? Q = (W.indexOf(ue[0]) + 1) % X : Q = 0; - for (var le = Math.abs(I - P) / $, ce = Q; J != $; ce = ++ce % X) { + T != null ? Z = (W.indexOf(ue[0]) + 1) % X : Z = 0; + for (var le = Math.abs(I - P) / $, ce = Z; J != $; ce = ++ce % X) { var pe = W[ce].getOtherEnd(E); if (pe != T) { var fe = (P + J * le) % 360, se = (fe + le) % 360; @@ -38475,8 +38487,8 @@ function Mte() { var $ = E.getGraphManager().add(E.newGraph(), W), J = q.getChild(); J.add(W); for (var X = 0; X < T[z].length; X++) { - var Q = T[z][X]; - J.remove(Q), $.add(Q); + var Z = T[z][X]; + J.remove(Z), $.add(Z); } } }); @@ -38662,14 +38674,14 @@ function Mte() { if (k > 0) for (var J = B; J <= j; J++) $[3] += this.grid[k - 1][J].length + this.grid[k][J].length - 1; - for (var X = b.MAX_VALUE, Q, ue, re = 0; re < $.length; re++) - $[re] < X ? (X = $[re], Q = 1, ue = re) : $[re] == X && Q++; - if (Q == 3 && X == 0) + for (var X = b.MAX_VALUE, Z, ue, re = 0; re < $.length; re++) + $[re] < X ? (X = $[re], Z = 1, ue = re) : $[re] == X && Z++; + if (Z == 3 && X == 0) $[0] == 0 && $[1] == 0 && $[2] == 0 ? T = 1 : $[0] == 0 && $[1] == 0 && $[3] == 0 ? T = 0 : $[0] == 0 && $[2] == 0 && $[3] == 0 ? T = 3 : $[1] == 0 && $[2] == 0 && $[3] == 0 && (T = 2); - else if (Q == 2 && X == 0) { + else if (Z == 2 && X == 0) { var ne = Math.floor(Math.random() * 2); $[0] == 0 && $[1] == 0 ? ne == 0 ? T = 0 : T = 1 : $[0] == 0 && $[2] == 0 ? ne == 0 ? T = 0 : T = 2 : $[0] == 0 && $[3] == 0 ? ne == 0 ? T = 0 : T = 3 : $[1] == 0 && $[2] == 0 ? ne == 0 ? T = 1 : T = 2 : $[1] == 0 && $[3] == 0 ? ne == 0 ? T = 1 : T = 3 : ne == 0 ? T = 2 : T = 3; - } else if (Q == 4 && X == 0) { + } else if (Z == 4 && X == 0) { var ne = Math.floor(Math.random() * 4); T = ne; } else @@ -38689,12 +38701,12 @@ function Mte() { }); })(ox)), ox.exports; } -var Dte = ax.exports, I3; -function kte() { +var kte = ax.exports, I3; +function Ite() { return I3 || (I3 = 1, (function(r, e) { (function(n, i) { - r.exports = i(Mte()); - })(Dte, function(t) { + r.exports = i(Dte()); + })(kte, function(t) { return ( /******/ (function(n) { @@ -38849,10 +38861,10 @@ function kte() { S.checkLayoutSuccess() && !S.isSubLayout && S.doPostLayout(), S.tilingPostLayout && S.tilingPostLayout(), S.isLayoutFinished = !0, O.options.eles.nodes().positions(z), W(), O.cy.one("layoutstop", O.options.stop), O.cy.trigger({ type: "layoutstop", layout: O }), m && cancelAnimationFrame(m), _ = !1; return; } - var Q = O.layout.getPositionsData(); + var Z = O.layout.getPositionsData(); x.eles.nodes().positions(function(ue, re) { if (typeof ue == "number" && (ue = re), !ue.isParent()) { - for (var ne = ue.id(), le = Q[ne], ce = ue; le == null && (le = Q[ce.data("parent")] || Q["DummyCompound_" + ce.data("parent")], Q[ne] = le, ce = ce.parent()[0], ce != null); ) + for (var ne = ue.id(), le = Z[ne], ce = ue; le == null && (le = Z[ce.data("parent")] || Z["DummyCompound_" + ce.data("parent")], Z[ne] = le, ce = ce.parent()[0], ce != null); ) ; return le != null ? { x: le.x, @@ -38908,10 +38920,10 @@ function kte() { }); })(ax)), ax.exports; } -var Ite = kte(); -const Nte = /* @__PURE__ */ Bp(Ite); -Np.use(Nte); -const Lte = "cose-bilkent", jte = (r, e) => { +var Nte = Ite(); +const Lte = /* @__PURE__ */ Bp(Nte); +Np.use(Lte); +const jte = "cose-bilkent", Bte = (r, e) => { const t = Np({ headless: !0, styleEnabled: !1 @@ -38919,7 +38931,7 @@ const Lte = "cose-bilkent", jte = (r, e) => { t.add(r); const n = {}; return t.layout({ - name: Lte, + name: jte, animate: !1, spacingFactor: e, quality: "default", @@ -38934,11 +38946,11 @@ const Lte = "cose-bilkent", jte = (r, e) => { positions: n }; }; -class Bte { +class Fte { start() { } postMessage(e) { - const { elements: t, spacingFactor: n } = e, i = jte(t, n); + const { elements: t, spacingFactor: n } = e, i = Bte(t, n); this.onmessage({ data: i }); } onmessage() { @@ -38946,9 +38958,9 @@ class Bte { close() { } } -const Fte = { - port: new Bte() -}, Ute = () => new SharedWorker(new URL( +const Ute = { + port: new Fte() +}, zte = () => new SharedWorker(new URL( /* @vite-ignore */ "/assets/CoseBilkentLayout.worker-DQV9PnDH.js", import.meta.url @@ -38956,30 +38968,30 @@ const Fte = { type: "module", name: "CoseBilkentLayout" }); -function zte(r) { +function qte(r) { throw new Error('Could not dynamically require "' + r + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.'); } -var VO, N3; -function qte() { - if (N3) return VO; +var GO, N3; +function Gte() { + if (N3) return GO; N3 = 1; function r() { this.__data__ = [], this.size = 0; } - return VO = r, VO; + return GO = r, GO; } -var HO, L3; +var VO, L3; function fD() { - if (L3) return HO; + if (L3) return VO; L3 = 1; function r(e, t) { return e === t || e !== e && t !== t; } - return HO = r, HO; + return VO = r, VO; } -var WO, j3; -function W2() { - if (j3) return WO; +var HO, j3; +function H2() { + if (j3) return HO; j3 = 1; var r = fD(); function e(t, n) { @@ -38988,13 +39000,13 @@ function W2() { return i; return -1; } - return WO = e, WO; + return HO = e, HO; } -var YO, B3; -function Gte() { - if (B3) return YO; +var WO, B3; +function Vte() { + if (B3) return WO; B3 = 1; - var r = W2(), e = Array.prototype, t = e.splice; + var r = H2(), e = Array.prototype, t = e.splice; function n(i) { var a = this.__data__, o = r(a, i); if (o < 0) @@ -39002,45 +39014,45 @@ function Gte() { var s = a.length - 1; return o == s ? a.pop() : t.call(a, o, 1), --this.size, !0; } - return YO = n, YO; + return WO = n, WO; } -var XO, F3; -function Vte() { - if (F3) return XO; +var YO, F3; +function Hte() { + if (F3) return YO; F3 = 1; - var r = W2(); + var r = H2(); function e(t) { var n = this.__data__, i = r(n, t); return i < 0 ? void 0 : n[i][1]; } - return XO = e, XO; + return YO = e, YO; } -var $O, U3; -function Hte() { - if (U3) return $O; +var XO, U3; +function Wte() { + if (U3) return XO; U3 = 1; - var r = W2(); + var r = H2(); function e(t) { return r(this.__data__, t) > -1; } - return $O = e, $O; + return XO = e, XO; } -var KO, z3; -function Wte() { - if (z3) return KO; +var $O, z3; +function Yte() { + if (z3) return $O; z3 = 1; - var r = W2(); + var r = H2(); function e(t, n) { var i = this.__data__, a = r(i, t); return a < 0 ? (++this.size, i.push([t, n])) : i[a][1] = n, this; } - return KO = e, KO; + return $O = e, $O; } -var ZO, q3; -function Y2() { - if (q3) return ZO; +var KO, q3; +function W2() { + if (q3) return KO; q3 = 1; - var r = qte(), e = Gte(), t = Vte(), n = Hte(), i = Wte(); + var r = Gte(), e = Vte(), t = Hte(), n = Wte(), i = Yte(); function a(o) { var s = -1, u = o == null ? 0 : o.length; for (this.clear(); ++s < u; ) { @@ -39048,70 +39060,70 @@ function Y2() { this.set(l[0], l[1]); } } - return a.prototype.clear = r, a.prototype.delete = e, a.prototype.get = t, a.prototype.has = n, a.prototype.set = i, ZO = a, ZO; + return a.prototype.clear = r, a.prototype.delete = e, a.prototype.get = t, a.prototype.has = n, a.prototype.set = i, KO = a, KO; } -var QO, G3; -function Yte() { - if (G3) return QO; +var ZO, G3; +function Xte() { + if (G3) return ZO; G3 = 1; - var r = Y2(); + var r = W2(); function e() { this.__data__ = new r(), this.size = 0; } - return QO = e, QO; + return ZO = e, ZO; } -var JO, V3; -function Xte() { - if (V3) return JO; +var QO, V3; +function $te() { + if (V3) return QO; V3 = 1; function r(e) { var t = this.__data__, n = t.delete(e); return this.size = t.size, n; } - return JO = r, JO; + return QO = r, QO; } -var eT, H3; -function $te() { - if (H3) return eT; +var JO, H3; +function Kte() { + if (H3) return JO; H3 = 1; function r(e) { return this.__data__.get(e); } - return eT = r, eT; + return JO = r, JO; } -var tT, W3; -function Kte() { - if (W3) return tT; +var eT, W3; +function Zte() { + if (W3) return eT; W3 = 1; function r(e) { return this.__data__.has(e); } - return tT = r, tT; + return eT = r, eT; } -var rT, Y3; +var tT, Y3; function IU() { - if (Y3) return rT; + if (Y3) return tT; Y3 = 1; var r = typeof Lf == "object" && Lf && Lf.Object === Object && Lf; - return rT = r, rT; + return tT = r, tT; } -var nT, X3; +var rT, X3; function Ch() { - if (X3) return nT; + if (X3) return rT; X3 = 1; var r = IU(), e = typeof self == "object" && self && self.Object === Object && self, t = r || e || Function("return this")(); - return nT = t, nT; + return rT = t, rT; } -var iT, $3; +var nT, $3; function t0() { - if ($3) return iT; + if ($3) return nT; $3 = 1; var r = Ch(), e = r.Symbol; - return iT = e, iT; + return nT = e, nT; } -var aT, K3; -function Zte() { - if (K3) return aT; +var iT, K3; +function Qte() { + if (K3) return iT; K3 = 1; var r = t0(), e = Object.prototype, t = e.hasOwnProperty, n = e.toString, i = r ? r.toStringTag : void 0; function a(o) { @@ -39124,41 +39136,41 @@ function Zte() { var c = n.call(o); return l && (s ? o[i] = u : delete o[i]), c; } - return aT = a, aT; + return iT = a, iT; } -var oT, Z3; -function Qte() { - if (Z3) return oT; +var aT, Z3; +function Jte() { + if (Z3) return aT; Z3 = 1; var r = Object.prototype, e = r.toString; function t(n) { return e.call(n); } - return oT = t, oT; + return aT = t, aT; } -var sT, Q3; +var oT, Q3; function r0() { - if (Q3) return sT; + if (Q3) return oT; Q3 = 1; - var r = t0(), e = Zte(), t = Qte(), n = "[object Null]", i = "[object Undefined]", a = r ? r.toStringTag : void 0; + var r = t0(), e = Qte(), t = Jte(), n = "[object Null]", i = "[object Undefined]", a = r ? r.toStringTag : void 0; function o(s) { return s == null ? s === void 0 ? i : n : a && a in Object(s) ? e(s) : t(s); } - return sT = o, sT; + return oT = o, oT; } -var uT, J3; +var sT, J3; function iy() { - if (J3) return uT; + if (J3) return sT; J3 = 1; function r(e) { var t = typeof e; return e != null && (t == "object" || t == "function"); } - return uT = r, uT; + return sT = r, sT; } -var lT, eL; -function X2() { - if (eL) return lT; +var uT, eL; +function Y2() { + if (eL) return uT; eL = 1; var r = r0(), e = iy(), t = "[object AsyncFunction]", n = "[object Function]", i = "[object GeneratorFunction]", a = "[object Proxy]"; function o(s) { @@ -39167,31 +39179,31 @@ function X2() { var u = r(s); return u == n || u == i || u == t || u == a; } - return lT = o, lT; + return uT = o, uT; } -var cT, tL; -function Jte() { - if (tL) return cT; +var lT, tL; +function ere() { + if (tL) return lT; tL = 1; var r = Ch(), e = r["__core-js_shared__"]; - return cT = e, cT; + return lT = e, lT; } -var fT, rL; -function ere() { - if (rL) return fT; +var cT, rL; +function tre() { + if (rL) return cT; rL = 1; - var r = Jte(), e = (function() { + var r = ere(), e = (function() { var n = /[^.]+$/.exec(r && r.keys && r.keys.IE_PROTO || ""); return n ? "Symbol(src)_1." + n : ""; })(); function t(n) { return !!e && e in n; } - return fT = t, fT; + return cT = t, cT; } -var dT, nL; +var fT, nL; function NU() { - if (nL) return dT; + if (nL) return fT; nL = 1; var r = Function.prototype, e = r.toString; function t(n) { @@ -39207,13 +39219,13 @@ function NU() { } return ""; } - return dT = t, dT; + return fT = t, fT; } -var hT, iL; -function tre() { - if (iL) return hT; +var dT, iL; +function rre() { + if (iL) return dT; iL = 1; - var r = X2(), e = ere(), t = iy(), n = NU(), i = /[\\^$.*+?()[\]{}|]/g, a = /^\[object .+?Constructor\]$/, o = Function.prototype, s = Object.prototype, u = o.toString, l = s.hasOwnProperty, c = RegExp( + var r = Y2(), e = tre(), t = iy(), n = NU(), i = /[\\^$.*+?()[\]{}|]/g, a = /^\[object .+?Constructor\]$/, o = Function.prototype, s = Object.prototype, u = o.toString, l = s.hasOwnProperty, c = RegExp( "^" + u.call(l).replace(i, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$" ); function f(d) { @@ -39222,67 +39234,67 @@ function tre() { var h = r(d) ? c : a; return h.test(n(d)); } - return hT = f, hT; + return dT = f, dT; } -var vT, aL; -function rre() { - if (aL) return vT; +var hT, aL; +function nre() { + if (aL) return hT; aL = 1; function r(e, t) { return e == null ? void 0 : e[t]; } - return vT = r, vT; + return hT = r, hT; } -var pT, oL; +var vT, oL; function ay() { - if (oL) return pT; + if (oL) return vT; oL = 1; - var r = tre(), e = rre(); + var r = rre(), e = nre(); function t(n, i) { var a = e(n, i); return r(a) ? a : void 0; } - return pT = t, pT; + return vT = t, vT; } -var gT, sL; +var pT, sL; function dD() { - if (sL) return gT; + if (sL) return pT; sL = 1; var r = ay(), e = Ch(), t = r(e, "Map"); - return gT = t, gT; + return pT = t, pT; } -var yT, uL; -function $2() { - if (uL) return yT; +var gT, uL; +function X2() { + if (uL) return gT; uL = 1; var r = ay(), e = r(Object, "create"); - return yT = e, yT; + return gT = e, gT; } -var mT, lL; -function nre() { - if (lL) return mT; +var yT, lL; +function ire() { + if (lL) return yT; lL = 1; - var r = $2(); + var r = X2(); function e() { this.__data__ = r ? r(null) : {}, this.size = 0; } - return mT = e, mT; + return yT = e, yT; } -var bT, cL; -function ire() { - if (cL) return bT; +var mT, cL; +function are() { + if (cL) return mT; cL = 1; function r(e) { var t = this.has(e) && delete this.__data__[e]; return this.size -= t ? 1 : 0, t; } - return bT = r, bT; + return mT = r, mT; } -var _T, fL; -function are() { - if (fL) return _T; +var bT, fL; +function ore() { + if (fL) return bT; fL = 1; - var r = $2(), e = "__lodash_hash_undefined__", t = Object.prototype, n = t.hasOwnProperty; + var r = X2(), e = "__lodash_hash_undefined__", t = Object.prototype, n = t.hasOwnProperty; function i(a) { var o = this.__data__; if (r) { @@ -39291,35 +39303,35 @@ function are() { } return n.call(o, a) ? o[a] : void 0; } - return _T = i, _T; + return bT = i, bT; } -var wT, dL; -function ore() { - if (dL) return wT; +var _T, dL; +function sre() { + if (dL) return _T; dL = 1; - var r = $2(), e = Object.prototype, t = e.hasOwnProperty; + var r = X2(), e = Object.prototype, t = e.hasOwnProperty; function n(i) { var a = this.__data__; return r ? a[i] !== void 0 : t.call(a, i); } - return wT = n, wT; + return _T = n, _T; } -var xT, hL; -function sre() { - if (hL) return xT; +var wT, hL; +function ure() { + if (hL) return wT; hL = 1; - var r = $2(), e = "__lodash_hash_undefined__"; + var r = X2(), e = "__lodash_hash_undefined__"; function t(n, i) { var a = this.__data__; return this.size += this.has(n) ? 0 : 1, a[n] = r && i === void 0 ? e : i, this; } - return xT = t, xT; + return wT = t, wT; } -var ET, vL; -function ure() { - if (vL) return ET; +var xT, vL; +function lre() { + if (vL) return xT; vL = 1; - var r = nre(), e = ire(), t = are(), n = ore(), i = sre(); + var r = ire(), e = are(), t = ore(), n = sre(), i = ure(); function a(o) { var s = -1, u = o == null ? 0 : o.length; for (this.clear(); ++s < u; ) { @@ -39327,13 +39339,13 @@ function ure() { this.set(l[0], l[1]); } } - return a.prototype.clear = r, a.prototype.delete = e, a.prototype.get = t, a.prototype.has = n, a.prototype.set = i, ET = a, ET; + return a.prototype.clear = r, a.prototype.delete = e, a.prototype.get = t, a.prototype.has = n, a.prototype.set = i, xT = a, xT; } -var ST, pL; -function lre() { - if (pL) return ST; +var ET, pL; +function cre() { + if (pL) return ET; pL = 1; - var r = ure(), e = Y2(), t = dD(); + var r = lre(), e = W2(), t = dD(); function n() { this.size = 0, this.__data__ = { hash: new r(), @@ -39341,76 +39353,76 @@ function lre() { string: new r() }; } - return ST = n, ST; + return ET = n, ET; } -var OT, gL; -function cre() { - if (gL) return OT; +var ST, gL; +function fre() { + if (gL) return ST; gL = 1; function r(e) { var t = typeof e; return t == "string" || t == "number" || t == "symbol" || t == "boolean" ? e !== "__proto__" : e === null; } - return OT = r, OT; + return ST = r, ST; } -var TT, yL; -function K2() { - if (yL) return TT; +var OT, yL; +function $2() { + if (yL) return OT; yL = 1; - var r = cre(); + var r = fre(); function e(t, n) { var i = t.__data__; return r(n) ? i[typeof n == "string" ? "string" : "hash"] : i.map; } - return TT = e, TT; + return OT = e, OT; } -var CT, mL; -function fre() { - if (mL) return CT; +var TT, mL; +function dre() { + if (mL) return TT; mL = 1; - var r = K2(); + var r = $2(); function e(t) { var n = r(this, t).delete(t); return this.size -= n ? 1 : 0, n; } - return CT = e, CT; + return TT = e, TT; } -var AT, bL; -function dre() { - if (bL) return AT; +var CT, bL; +function hre() { + if (bL) return CT; bL = 1; - var r = K2(); + var r = $2(); function e(t) { return r(this, t).get(t); } - return AT = e, AT; + return CT = e, CT; } -var RT, _L; -function hre() { - if (_L) return RT; +var AT, _L; +function vre() { + if (_L) return AT; _L = 1; - var r = K2(); + var r = $2(); function e(t) { return r(this, t).has(t); } - return RT = e, RT; + return AT = e, AT; } -var PT, wL; -function vre() { - if (wL) return PT; +var RT, wL; +function pre() { + if (wL) return RT; wL = 1; - var r = K2(); + var r = $2(); function e(t, n) { var i = r(this, t), a = i.size; return i.set(t, n), this.size += i.size == a ? 0 : 1, this; } - return PT = e, PT; + return RT = e, RT; } -var MT, xL; +var PT, xL; function hD() { - if (xL) return MT; + if (xL) return PT; xL = 1; - var r = lre(), e = fre(), t = dre(), n = hre(), i = vre(); + var r = cre(), e = dre(), t = hre(), n = vre(), i = pre(); function a(o) { var s = -1, u = o == null ? 0 : o.length; for (this.clear(); ++s < u; ) { @@ -39418,13 +39430,13 @@ function hD() { this.set(l[0], l[1]); } } - return a.prototype.clear = r, a.prototype.delete = e, a.prototype.get = t, a.prototype.has = n, a.prototype.set = i, MT = a, MT; + return a.prototype.clear = r, a.prototype.delete = e, a.prototype.get = t, a.prototype.has = n, a.prototype.set = i, PT = a, PT; } -var DT, EL; -function pre() { - if (EL) return DT; +var MT, EL; +function gre() { + if (EL) return MT; EL = 1; - var r = Y2(), e = dD(), t = hD(), n = 200; + var r = W2(), e = dD(), t = hD(), n = 200; function i(a, o) { var s = this.__data__; if (s instanceof r) { @@ -39435,33 +39447,33 @@ function pre() { } return s.set(a, o), this.size = s.size, this; } - return DT = i, DT; + return MT = i, MT; } -var kT, SL; +var DT, SL; function vD() { - if (SL) return kT; + if (SL) return DT; SL = 1; - var r = Y2(), e = Yte(), t = Xte(), n = $te(), i = Kte(), a = pre(); + var r = W2(), e = Xte(), t = $te(), n = Kte(), i = Zte(), a = gre(); function o(s) { var u = this.__data__ = new r(s); this.size = u.size; } - return o.prototype.clear = e, o.prototype.delete = t, o.prototype.get = n, o.prototype.has = i, o.prototype.set = a, kT = o, kT; + return o.prototype.clear = e, o.prototype.delete = t, o.prototype.get = n, o.prototype.has = i, o.prototype.set = a, DT = o, DT; } -var IT, OL; +var kT, OL; function pD() { - if (OL) return IT; + if (OL) return kT; OL = 1; function r(e, t) { for (var n = -1, i = e == null ? 0 : e.length; ++n < i && t(e[n], n, e) !== !1; ) ; return e; } - return IT = r, IT; + return kT = r, kT; } -var NT, TL; +var IT, TL; function LU() { - if (TL) return NT; + if (TL) return IT; TL = 1; var r = ay(), e = (function() { try { @@ -39470,11 +39482,11 @@ function LU() { } catch { } })(); - return NT = e, NT; + return IT = e, IT; } -var LT, CL; +var NT, CL; function jU() { - if (CL) return LT; + if (CL) return NT; CL = 1; var r = LU(); function e(t, n, i) { @@ -39485,22 +39497,22 @@ function jU() { writable: !0 }) : t[n] = i; } - return LT = e, LT; + return NT = e, NT; } -var jT, AL; +var LT, AL; function BU() { - if (AL) return jT; + if (AL) return LT; AL = 1; var r = jU(), e = fD(), t = Object.prototype, n = t.hasOwnProperty; function i(a, o, s) { var u = a[o]; (!(n.call(a, o) && e(u, s)) || s === void 0 && !(o in a)) && r(a, o, s); } - return jT = i, jT; + return LT = i, LT; } -var BT, RL; -function Z2() { - if (RL) return BT; +var jT, RL; +function K2() { + if (RL) return jT; RL = 1; var r = BU(), e = jU(); function t(n, i, a, o) { @@ -39512,115 +39524,115 @@ function Z2() { } return a; } - return BT = t, BT; + return jT = t, jT; } -var FT, PL; -function gre() { - if (PL) return FT; +var BT, PL; +function yre() { + if (PL) return BT; PL = 1; function r(e, t) { for (var n = -1, i = Array(e); ++n < e; ) i[n] = t(n); return i; } - return FT = r, FT; + return BT = r, BT; } -var UT, ML; +var FT, ML; function xv() { - if (ML) return UT; + if (ML) return FT; ML = 1; function r(e) { return e != null && typeof e == "object"; } - return UT = r, UT; + return FT = r, FT; } -var zT, DL; -function yre() { - if (DL) return zT; +var UT, DL; +function mre() { + if (DL) return UT; DL = 1; var r = r0(), e = xv(), t = "[object Arguments]"; function n(i) { return e(i) && r(i) == t; } - return zT = n, zT; + return UT = n, UT; } -var qT, kL; -function Q2() { - if (kL) return qT; +var zT, kL; +function Z2() { + if (kL) return zT; kL = 1; - var r = yre(), e = xv(), t = Object.prototype, n = t.hasOwnProperty, i = t.propertyIsEnumerable, a = r(/* @__PURE__ */ (function() { + var r = mre(), e = xv(), t = Object.prototype, n = t.hasOwnProperty, i = t.propertyIsEnumerable, a = r(/* @__PURE__ */ (function() { return arguments; })()) ? r : function(o) { return e(o) && n.call(o, "callee") && !i.call(o, "callee"); }; - return qT = a, qT; + return zT = a, zT; } -var GT, IL; +var qT, IL; function Bs() { - if (IL) return GT; + if (IL) return qT; IL = 1; var r = Array.isArray; - return GT = r, GT; + return qT = r, qT; } -var pb = { exports: {} }, VT, NL; -function mre() { - if (NL) return VT; +var pb = { exports: {} }, GT, NL; +function bre() { + if (NL) return GT; NL = 1; function r() { return !1; } - return VT = r, VT; + return GT = r, GT; } pb.exports; var LL; function r_() { return LL || (LL = 1, (function(r, e) { - var t = Ch(), n = mre(), i = e && !e.nodeType && e, a = i && !0 && r && !r.nodeType && r, o = a && a.exports === i, s = o ? t.Buffer : void 0, u = s ? s.isBuffer : void 0, l = u || n; + var t = Ch(), n = bre(), i = e && !e.nodeType && e, a = i && !0 && r && !r.nodeType && r, o = a && a.exports === i, s = o ? t.Buffer : void 0, u = s ? s.isBuffer : void 0, l = u || n; r.exports = l; })(pb, pb.exports)), pb.exports; } -var HT, jL; +var VT, jL; function FU() { - if (jL) return HT; + if (jL) return VT; jL = 1; var r = 9007199254740991, e = /^(?:0|[1-9]\d*)$/; function t(n, i) { var a = typeof n; return i = i ?? r, !!i && (a == "number" || a != "symbol" && e.test(n)) && n > -1 && n % 1 == 0 && n < i; } - return HT = t, HT; + return VT = t, VT; } -var WT, BL; +var HT, BL; function gD() { - if (BL) return WT; + if (BL) return HT; BL = 1; var r = 9007199254740991; function e(t) { return typeof t == "number" && t > -1 && t % 1 == 0 && t <= r; } - return WT = e, WT; + return HT = e, HT; } -var YT, FL; -function bre() { - if (FL) return YT; +var WT, FL; +function _re() { + if (FL) return WT; FL = 1; var r = r0(), e = gD(), t = xv(), n = "[object Arguments]", i = "[object Array]", a = "[object Boolean]", o = "[object Date]", s = "[object Error]", u = "[object Function]", l = "[object Map]", c = "[object Number]", f = "[object Object]", d = "[object RegExp]", h = "[object Set]", p = "[object String]", g = "[object WeakMap]", y = "[object ArrayBuffer]", b = "[object DataView]", _ = "[object Float32Array]", m = "[object Float64Array]", x = "[object Int8Array]", S = "[object Int16Array]", O = "[object Int32Array]", E = "[object Uint8Array]", T = "[object Uint8ClampedArray]", P = "[object Uint16Array]", I = "[object Uint32Array]", k = {}; k[_] = k[m] = k[x] = k[S] = k[O] = k[E] = k[T] = k[P] = k[I] = !0, k[n] = k[i] = k[y] = k[a] = k[b] = k[o] = k[s] = k[u] = k[l] = k[c] = k[f] = k[d] = k[h] = k[p] = k[g] = !1; function L(B) { return t(B) && e(B.length) && !!k[r(B)]; } - return YT = L, YT; + return WT = L, WT; } -var XT, UL; +var YT, UL; function yD() { - if (UL) return XT; + if (UL) return YT; UL = 1; function r(e) { return function(t) { return e(t); }; } - return XT = r, XT; + return YT = r, YT; } var gb = { exports: {} }; gb.exports; @@ -39637,18 +39649,18 @@ function mD() { r.exports = s; })(gb, gb.exports)), gb.exports; } -var $T, qL; -function J2() { - if (qL) return $T; +var XT, qL; +function Q2() { + if (qL) return XT; qL = 1; - var r = bre(), e = yD(), t = mD(), n = t && t.isTypedArray, i = n ? e(n) : r; - return $T = i, $T; + var r = _re(), e = yD(), t = mD(), n = t && t.isTypedArray, i = n ? e(n) : r; + return XT = i, XT; } -var KT, GL; +var $T, GL; function UU() { - if (GL) return KT; + if (GL) return $T; GL = 1; - var r = gre(), e = Q2(), t = Bs(), n = r_(), i = FU(), a = J2(), o = Object.prototype, s = o.hasOwnProperty; + var r = yre(), e = Z2(), t = Bs(), n = r_(), i = FU(), a = Q2(), o = Object.prototype, s = o.hasOwnProperty; function u(l, c) { var f = t(l), d = !f && e(l), h = !f && !d && n(l), p = !f && !d && !h && a(l), g = f || d || h || p, y = g ? r(l.length, String) : [], b = y.length; for (var _ in l) @@ -39659,42 +39671,42 @@ function UU() { i(_, b))) && y.push(_); return y; } - return KT = u, KT; + return $T = u, $T; } -var ZT, VL; -function eE() { - if (VL) return ZT; +var KT, VL; +function J2() { + if (VL) return KT; VL = 1; var r = Object.prototype; function e(t) { var n = t && t.constructor, i = typeof n == "function" && n.prototype || r; return t === i; } - return ZT = e, ZT; + return KT = e, KT; } -var QT, HL; +var ZT, HL; function zU() { - if (HL) return QT; + if (HL) return ZT; HL = 1; function r(e, t) { return function(n) { return e(t(n)); }; } - return QT = r, QT; + return ZT = r, ZT; } -var JT, WL; -function _re() { - if (WL) return JT; +var QT, WL; +function wre() { + if (WL) return QT; WL = 1; var r = zU(), e = r(Object.keys, Object); - return JT = e, JT; + return QT = e, QT; } -var eC, YL; +var JT, YL; function bD() { - if (YL) return eC; + if (YL) return JT; YL = 1; - var r = eE(), e = _re(), t = Object.prototype, n = t.hasOwnProperty; + var r = J2(), e = wre(), t = Object.prototype, n = t.hasOwnProperty; function i(a) { if (!r(a)) return e(a); @@ -39703,41 +39715,41 @@ function bD() { n.call(a, s) && s != "constructor" && o.push(s); return o; } - return eC = i, eC; + return JT = i, JT; } -var tC, XL; +var eC, XL; function oy() { - if (XL) return tC; + if (XL) return eC; XL = 1; - var r = X2(), e = gD(); + var r = Y2(), e = gD(); function t(n) { return n != null && e(n.length) && !r(n); } - return tC = t, tC; + return eC = t, eC; } -var rC, $L; +var tC, $L; function sy() { - if ($L) return rC; + if ($L) return tC; $L = 1; var r = UU(), e = bD(), t = oy(); function n(i) { return t(i) ? r(i) : e(i); } - return rC = n, rC; + return tC = n, tC; } -var nC, KL; -function wre() { - if (KL) return nC; +var rC, KL; +function xre() { + if (KL) return rC; KL = 1; - var r = Z2(), e = sy(); + var r = K2(), e = sy(); function t(n, i) { return n && r(i, e(i), n); } - return nC = t, nC; + return rC = t, rC; } -var iC, ZL; -function xre() { - if (ZL) return iC; +var nC, ZL; +function Ere() { + if (ZL) return nC; ZL = 1; function r(e) { var t = []; @@ -39746,13 +39758,13 @@ function xre() { t.push(n); return t; } - return iC = r, iC; + return nC = r, nC; } -var aC, QL; -function Ere() { - if (QL) return aC; +var iC, QL; +function Sre() { + if (QL) return iC; QL = 1; - var r = iy(), e = eE(), t = xre(), n = Object.prototype, i = n.hasOwnProperty; + var r = iy(), e = J2(), t = Ere(), n = Object.prototype, i = n.hasOwnProperty; function a(o) { if (!r(o)) return t(o); @@ -39761,32 +39773,32 @@ function Ere() { l == "constructor" && (s || !i.call(o, l)) || u.push(l); return u; } - return aC = a, aC; + return iC = a, iC; } -var oC, JL; +var aC, JL; function _D() { - if (JL) return oC; + if (JL) return aC; JL = 1; - var r = UU(), e = Ere(), t = oy(); + var r = UU(), e = Sre(), t = oy(); function n(i) { return t(i) ? r(i, !0) : e(i); } - return oC = n, oC; + return aC = n, aC; } -var sC, e4; -function Sre() { - if (e4) return sC; +var oC, e4; +function Ore() { + if (e4) return oC; e4 = 1; - var r = Z2(), e = _D(); + var r = K2(), e = _D(); function t(n, i) { return n && r(i, e(i), n); } - return sC = t, sC; + return oC = t, oC; } var yb = { exports: {} }; yb.exports; var t4; -function Ore() { +function Tre() { return t4 || (t4 = 1, (function(r, e) { var t = Ch(), n = e && !e.nodeType && e, i = n && !0 && r && !r.nodeType && r, a = i && i.exports === n, o = a ? t.Buffer : void 0, s = o ? o.allocUnsafe : void 0; function u(l, c) { @@ -39798,9 +39810,9 @@ function Ore() { r.exports = u; })(yb, yb.exports)), yb.exports; } -var uC, r4; -function Tre() { - if (r4) return uC; +var sC, r4; +function Cre() { + if (r4) return sC; r4 = 1; function r(e, t) { var n = -1, i = e.length; @@ -39808,11 +39820,11 @@ function Tre() { t[n] = e[n]; return t; } - return uC = r, uC; + return sC = r, sC; } -var lC, n4; +var uC, n4; function qU() { - if (n4) return lC; + if (n4) return uC; n4 = 1; function r(e, t) { for (var n = -1, i = e == null ? 0 : e.length, a = 0, o = []; ++n < i; ) { @@ -39821,141 +39833,141 @@ function qU() { } return o; } - return lC = r, lC; + return uC = r, uC; } -var cC, i4; +var lC, i4; function GU() { - if (i4) return cC; + if (i4) return lC; i4 = 1; function r() { return []; } - return cC = r, cC; + return lC = r, lC; } -var fC, a4; +var cC, a4; function wD() { - if (a4) return fC; + if (a4) return cC; a4 = 1; var r = qU(), e = GU(), t = Object.prototype, n = t.propertyIsEnumerable, i = Object.getOwnPropertySymbols, a = i ? function(o) { return o == null ? [] : (o = Object(o), r(i(o), function(s) { return n.call(o, s); })); } : e; - return fC = a, fC; + return cC = a, cC; } -var dC, o4; -function Cre() { - if (o4) return dC; +var fC, o4; +function Are() { + if (o4) return fC; o4 = 1; - var r = Z2(), e = wD(); + var r = K2(), e = wD(); function t(n, i) { return r(n, e(n), i); } - return dC = t, dC; + return fC = t, fC; } -var hC, s4; +var dC, s4; function xD() { - if (s4) return hC; + if (s4) return dC; s4 = 1; function r(e, t) { for (var n = -1, i = t.length, a = e.length; ++n < i; ) e[a + n] = t[n]; return e; } - return hC = r, hC; + return dC = r, dC; } -var vC, u4; +var hC, u4; function ED() { - if (u4) return vC; + if (u4) return hC; u4 = 1; var r = zU(), e = r(Object.getPrototypeOf, Object); - return vC = e, vC; + return hC = e, hC; } -var pC, l4; +var vC, l4; function VU() { - if (l4) return pC; + if (l4) return vC; l4 = 1; var r = xD(), e = ED(), t = wD(), n = GU(), i = Object.getOwnPropertySymbols, a = i ? function(o) { for (var s = []; o; ) r(s, t(o)), o = e(o); return s; } : n; - return pC = a, pC; + return vC = a, vC; } -var gC, c4; -function Are() { - if (c4) return gC; +var pC, c4; +function Rre() { + if (c4) return pC; c4 = 1; - var r = Z2(), e = VU(); + var r = K2(), e = VU(); function t(n, i) { return r(n, e(n), i); } - return gC = t, gC; + return pC = t, pC; } -var yC, f4; +var gC, f4; function HU() { - if (f4) return yC; + if (f4) return gC; f4 = 1; var r = xD(), e = Bs(); function t(n, i, a) { var o = i(n); return e(n) ? o : r(o, a(n)); } - return yC = t, yC; + return gC = t, gC; } -var mC, d4; +var yC, d4; function WU() { - if (d4) return mC; + if (d4) return yC; d4 = 1; var r = HU(), e = wD(), t = sy(); function n(i) { return r(i, t, e); } - return mC = n, mC; + return yC = n, yC; } -var bC, h4; -function Rre() { - if (h4) return bC; +var mC, h4; +function Pre() { + if (h4) return mC; h4 = 1; var r = HU(), e = VU(), t = _D(); function n(i) { return r(i, t, e); } - return bC = n, bC; + return mC = n, mC; } -var _C, v4; -function Pre() { - if (v4) return _C; +var bC, v4; +function Mre() { + if (v4) return bC; v4 = 1; var r = ay(), e = Ch(), t = r(e, "DataView"); - return _C = t, _C; + return bC = t, bC; } -var wC, p4; -function Mre() { - if (p4) return wC; +var _C, p4; +function Dre() { + if (p4) return _C; p4 = 1; var r = ay(), e = Ch(), t = r(e, "Promise"); - return wC = t, wC; + return _C = t, _C; } -var xC, g4; +var wC, g4; function YU() { - if (g4) return xC; + if (g4) return wC; g4 = 1; var r = ay(), e = Ch(), t = r(e, "Set"); - return xC = t, xC; + return wC = t, wC; } -var EC, y4; -function Dre() { - if (y4) return EC; +var xC, y4; +function kre() { + if (y4) return xC; y4 = 1; var r = ay(), e = Ch(), t = r(e, "WeakMap"); - return EC = t, EC; + return xC = t, xC; } -var SC, m4; +var EC, m4; function n0() { - if (m4) return SC; + if (m4) return EC; m4 = 1; - var r = Pre(), e = dD(), t = Mre(), n = YU(), i = Dre(), a = r0(), o = NU(), s = "[object Map]", u = "[object Object]", l = "[object Promise]", c = "[object Set]", f = "[object WeakMap]", d = "[object DataView]", h = o(r), p = o(e), g = o(t), y = o(n), b = o(i), _ = a; + var r = Mre(), e = dD(), t = Dre(), n = YU(), i = kre(), a = r0(), o = NU(), s = "[object Map]", u = "[object Object]", l = "[object Promise]", c = "[object Set]", f = "[object WeakMap]", d = "[object DataView]", h = o(r), p = o(e), g = o(t), y = o(n), b = o(i), _ = a; return (r && _(new r(new ArrayBuffer(1))) != d || e && _(new e()) != s || t && _(t.resolve()) != l || n && _(new n()) != c || i && _(new i()) != f) && (_ = function(m) { var x = a(m), S = x == u ? m.constructor : void 0, O = S ? o(S) : ""; if (O) @@ -39972,85 +39984,85 @@ function n0() { return f; } return x; - }), SC = _, SC; + }), EC = _, EC; } -var OC, b4; -function kre() { - if (b4) return OC; +var SC, b4; +function Ire() { + if (b4) return SC; b4 = 1; var r = Object.prototype, e = r.hasOwnProperty; function t(n) { var i = n.length, a = new n.constructor(i); return i && typeof n[0] == "string" && e.call(n, "index") && (a.index = n.index, a.input = n.input), a; } - return OC = t, OC; + return SC = t, SC; } -var TC, _4; +var OC, _4; function XU() { - if (_4) return TC; + if (_4) return OC; _4 = 1; var r = Ch(), e = r.Uint8Array; - return TC = e, TC; + return OC = e, OC; } -var CC, w4; +var TC, w4; function SD() { - if (w4) return CC; + if (w4) return TC; w4 = 1; var r = XU(); function e(t) { var n = new t.constructor(t.byteLength); return new r(n).set(new r(t)), n; } - return CC = e, CC; + return TC = e, TC; } -var AC, x4; -function Ire() { - if (x4) return AC; +var CC, x4; +function Nre() { + if (x4) return CC; x4 = 1; var r = SD(); function e(t, n) { var i = n ? r(t.buffer) : t.buffer; return new t.constructor(i, t.byteOffset, t.byteLength); } - return AC = e, AC; + return CC = e, CC; } -var RC, E4; -function Nre() { - if (E4) return RC; +var AC, E4; +function Lre() { + if (E4) return AC; E4 = 1; var r = /\w*$/; function e(t) { var n = new t.constructor(t.source, r.exec(t)); return n.lastIndex = t.lastIndex, n; } - return RC = e, RC; + return AC = e, AC; } -var PC, S4; -function Lre() { - if (S4) return PC; +var RC, S4; +function jre() { + if (S4) return RC; S4 = 1; var r = t0(), e = r ? r.prototype : void 0, t = e ? e.valueOf : void 0; function n(i) { return t ? Object(t.call(i)) : {}; } - return PC = n, PC; + return RC = n, RC; } -var MC, O4; -function jre() { - if (O4) return MC; +var PC, O4; +function Bre() { + if (O4) return PC; O4 = 1; var r = SD(); function e(t, n) { var i = n ? r(t.buffer) : t.buffer; return new t.constructor(i, t.byteOffset, t.length); } - return MC = e, MC; + return PC = e, PC; } -var DC, T4; -function Bre() { - if (T4) return DC; +var MC, T4; +function Fre() { + if (T4) return MC; T4 = 1; - var r = SD(), e = Ire(), t = Nre(), n = Lre(), i = jre(), a = "[object Boolean]", o = "[object Date]", s = "[object Map]", u = "[object Number]", l = "[object RegExp]", c = "[object Set]", f = "[object String]", d = "[object Symbol]", h = "[object ArrayBuffer]", p = "[object DataView]", g = "[object Float32Array]", y = "[object Float64Array]", b = "[object Int8Array]", _ = "[object Int16Array]", m = "[object Int32Array]", x = "[object Uint8Array]", S = "[object Uint8ClampedArray]", O = "[object Uint16Array]", E = "[object Uint32Array]"; + var r = SD(), e = Nre(), t = Lre(), n = jre(), i = Bre(), a = "[object Boolean]", o = "[object Date]", s = "[object Map]", u = "[object Number]", l = "[object RegExp]", c = "[object Set]", f = "[object String]", d = "[object Symbol]", h = "[object ArrayBuffer]", p = "[object DataView]", g = "[object Float32Array]", y = "[object Float64Array]", b = "[object Int8Array]", _ = "[object Int16Array]", m = "[object Int32Array]", x = "[object Uint8Array]", S = "[object Uint8ClampedArray]", O = "[object Uint16Array]", E = "[object Uint32Array]"; function T(P, I, k) { var L = P.constructor; switch (I) { @@ -40084,11 +40096,11 @@ function Bre() { return n(P); } } - return DC = T, DC; + return MC = T, MC; } -var kC, C4; +var DC, C4; function $U() { - if (C4) return kC; + if (C4) return DC; C4 = 1; var r = iy(), e = Object.create, t = /* @__PURE__ */ (function() { function n() { @@ -40103,121 +40115,121 @@ function $U() { return n.prototype = void 0, a; }; })(); - return kC = t, kC; + return DC = t, DC; } -var IC, A4; -function Fre() { - if (A4) return IC; +var kC, A4; +function Ure() { + if (A4) return kC; A4 = 1; - var r = $U(), e = ED(), t = eE(); + var r = $U(), e = ED(), t = J2(); function n(i) { return typeof i.constructor == "function" && !t(i) ? r(e(i)) : {}; } - return IC = n, IC; + return kC = n, kC; } -var NC, R4; -function Ure() { - if (R4) return NC; +var IC, R4; +function zre() { + if (R4) return IC; R4 = 1; var r = n0(), e = xv(), t = "[object Map]"; function n(i) { return e(i) && r(i) == t; } - return NC = n, NC; + return IC = n, IC; } -var LC, P4; -function zre() { - if (P4) return LC; +var NC, P4; +function qre() { + if (P4) return NC; P4 = 1; - var r = Ure(), e = yD(), t = mD(), n = t && t.isMap, i = n ? e(n) : r; - return LC = i, LC; + var r = zre(), e = yD(), t = mD(), n = t && t.isMap, i = n ? e(n) : r; + return NC = i, NC; } -var jC, M4; -function qre() { - if (M4) return jC; +var LC, M4; +function Gre() { + if (M4) return LC; M4 = 1; var r = n0(), e = xv(), t = "[object Set]"; function n(i) { return e(i) && r(i) == t; } - return jC = n, jC; + return LC = n, LC; } -var BC, D4; -function Gre() { - if (D4) return BC; +var jC, D4; +function Vre() { + if (D4) return jC; D4 = 1; - var r = qre(), e = yD(), t = mD(), n = t && t.isSet, i = n ? e(n) : r; - return BC = i, BC; + var r = Gre(), e = yD(), t = mD(), n = t && t.isSet, i = n ? e(n) : r; + return jC = i, jC; } -var FC, k4; -function Vre() { - if (k4) return FC; +var BC, k4; +function Hre() { + if (k4) return BC; k4 = 1; - var r = vD(), e = pD(), t = BU(), n = wre(), i = Sre(), a = Ore(), o = Tre(), s = Cre(), u = Are(), l = WU(), c = Rre(), f = n0(), d = kre(), h = Bre(), p = Fre(), g = Bs(), y = r_(), b = zre(), _ = iy(), m = Gre(), x = sy(), S = _D(), O = 1, E = 2, T = 4, P = "[object Arguments]", I = "[object Array]", k = "[object Boolean]", L = "[object Date]", B = "[object Error]", j = "[object Function]", z = "[object GeneratorFunction]", H = "[object Map]", q = "[object Number]", W = "[object Object]", $ = "[object RegExp]", J = "[object Set]", X = "[object String]", Q = "[object Symbol]", ue = "[object WeakMap]", re = "[object ArrayBuffer]", ne = "[object DataView]", le = "[object Float32Array]", ce = "[object Float64Array]", pe = "[object Int8Array]", fe = "[object Int16Array]", se = "[object Int32Array]", de = "[object Uint8Array]", ge = "[object Uint8ClampedArray]", Oe = "[object Uint16Array]", ke = "[object Uint32Array]", Me = {}; - Me[P] = Me[I] = Me[re] = Me[ne] = Me[k] = Me[L] = Me[le] = Me[ce] = Me[pe] = Me[fe] = Me[se] = Me[H] = Me[q] = Me[W] = Me[$] = Me[J] = Me[X] = Me[Q] = Me[de] = Me[ge] = Me[Oe] = Me[ke] = !0, Me[B] = Me[j] = Me[ue] = !1; - function Ne(Ce, Y, Z, ie, we, Ee) { - var De, Ie = Y & O, Ye = Y & E, ot = Y & T; - if (Z && (De = we ? Z(Ce, ie, we, Ee) : Z(Ce)), De !== void 0) - return De; - if (!_(Ce)) - return Ce; - var mt = g(Ce); + var r = vD(), e = pD(), t = BU(), n = xre(), i = Ore(), a = Tre(), o = Cre(), s = Are(), u = Rre(), l = WU(), c = Pre(), f = n0(), d = Ire(), h = Fre(), p = Ure(), g = Bs(), y = r_(), b = qre(), _ = iy(), m = Vre(), x = sy(), S = _D(), O = 1, E = 2, T = 4, P = "[object Arguments]", I = "[object Array]", k = "[object Boolean]", L = "[object Date]", B = "[object Error]", j = "[object Function]", z = "[object GeneratorFunction]", H = "[object Map]", q = "[object Number]", W = "[object Object]", $ = "[object RegExp]", J = "[object Set]", X = "[object String]", Z = "[object Symbol]", ue = "[object WeakMap]", re = "[object ArrayBuffer]", ne = "[object DataView]", le = "[object Float32Array]", ce = "[object Float64Array]", pe = "[object Int8Array]", fe = "[object Int16Array]", se = "[object Int32Array]", de = "[object Uint8Array]", ge = "[object Uint8ClampedArray]", Oe = "[object Uint16Array]", ke = "[object Uint32Array]", De = {}; + De[P] = De[I] = De[re] = De[ne] = De[k] = De[L] = De[le] = De[ce] = De[pe] = De[fe] = De[se] = De[H] = De[q] = De[W] = De[$] = De[J] = De[X] = De[Z] = De[de] = De[ge] = De[Oe] = De[ke] = !0, De[B] = De[j] = De[ue] = !1; + function Ne(Te, Y, Q, ie, we, Ee) { + var Me, Ie = Y & O, Ye = Y & E, ot = Y & T; + if (Q && (Me = we ? Q(Te, ie, we, Ee) : Q(Te)), Me !== void 0) + return Me; + if (!_(Te)) + return Te; + var mt = g(Te); if (mt) { - if (De = d(Ce), !Ie) - return o(Ce, De); + if (Me = d(Te), !Ie) + return o(Te, Me); } else { - var wt = f(Ce), Mt = wt == j || wt == z; - if (y(Ce)) - return a(Ce, Ie); + var wt = f(Te), Mt = wt == j || wt == z; + if (y(Te)) + return a(Te, Ie); if (wt == W || wt == P || Mt && !we) { - if (De = Ye || Mt ? {} : p(Ce), !Ie) - return Ye ? u(Ce, i(De, Ce)) : s(Ce, n(De, Ce)); + if (Me = Ye || Mt ? {} : p(Te), !Ie) + return Ye ? u(Te, i(Me, Te)) : s(Te, n(Me, Te)); } else { - if (!Me[wt]) - return we ? Ce : {}; - De = h(Ce, wt, Ie); + if (!De[wt]) + return we ? Te : {}; + Me = h(Te, wt, Ie); } } Ee || (Ee = new r()); - var Dt = Ee.get(Ce); + var Dt = Ee.get(Te); if (Dt) return Dt; - Ee.set(Ce, De), m(Ce) ? Ce.forEach(function(_e) { - De.add(Ne(_e, Y, Z, _e, Ce, Ee)); - }) : b(Ce) && Ce.forEach(function(_e, Ue) { - De.set(Ue, Ne(_e, Y, Z, Ue, Ce, Ee)); + Ee.set(Te, Me), m(Te) ? Te.forEach(function(_e) { + Me.add(Ne(_e, Y, Q, _e, Te, Ee)); + }) : b(Te) && Te.forEach(function(_e, Ue) { + Me.set(Ue, Ne(_e, Y, Q, Ue, Te, Ee)); }); - var vt = ot ? Ye ? c : l : Ye ? S : x, tt = mt ? void 0 : vt(Ce); - return e(tt || Ce, function(_e, Ue) { - tt && (Ue = _e, _e = Ce[Ue]), t(De, Ue, Ne(_e, Y, Z, Ue, Ce, Ee)); - }), De; + var vt = ot ? Ye ? c : l : Ye ? S : x, tt = mt ? void 0 : vt(Te); + return e(tt || Te, function(_e, Ue) { + tt && (Ue = _e, _e = Te[Ue]), t(Me, Ue, Ne(_e, Y, Q, Ue, Te, Ee)); + }), Me; } - return FC = Ne, FC; + return BC = Ne, BC; } -var UC, I4; -function Hre() { - if (I4) return UC; +var FC, I4; +function Wre() { + if (I4) return FC; I4 = 1; - var r = Vre(), e = 4; + var r = Hre(), e = 4; function t(n) { return r(n, e); } - return UC = t, UC; + return FC = t, FC; } -var zC, N4; +var UC, N4; function KU() { - if (N4) return zC; + if (N4) return UC; N4 = 1; function r(e) { return function() { return e; }; } - return zC = r, zC; + return UC = r, UC; } -var qC, L4; -function Wre() { - if (L4) return qC; +var zC, L4; +function Yre() { + if (L4) return zC; L4 = 1; function r(e) { return function(t, n, i) { @@ -40229,28 +40241,28 @@ function Wre() { return t; }; } - return qC = r, qC; + return zC = r, zC; } -var GC, j4; -function Yre() { - if (j4) return GC; +var qC, j4; +function Xre() { + if (j4) return qC; j4 = 1; - var r = Wre(), e = r(); - return GC = e, GC; + var r = Yre(), e = r(); + return qC = e, qC; } -var VC, B4; +var GC, B4; function ZU() { - if (B4) return VC; + if (B4) return GC; B4 = 1; - var r = Yre(), e = sy(); + var r = Xre(), e = sy(); function t(n, i) { return n && r(n, i, e); } - return VC = t, VC; + return GC = t, GC; } -var HC, F4; -function Xre() { - if (F4) return HC; +var VC, F4; +function $re() { + if (F4) return VC; F4 = 1; var r = oy(); function e(t, n) { @@ -40264,96 +40276,96 @@ function Xre() { return i; }; } - return HC = e, HC; + return VC = e, VC; } -var WC, U4; -function tE() { - if (U4) return WC; +var HC, U4; +function eE() { + if (U4) return HC; U4 = 1; - var r = ZU(), e = Xre(), t = e(r); - return WC = t, WC; + var r = ZU(), e = $re(), t = e(r); + return HC = t, HC; } -var YC, z4; -function rE() { - if (z4) return YC; +var WC, z4; +function tE() { + if (z4) return WC; z4 = 1; function r(e) { return e; } - return YC = r, YC; + return WC = r, WC; } -var XC, q4; -function $re() { - if (q4) return XC; +var YC, q4; +function Kre() { + if (q4) return YC; q4 = 1; - var r = rE(); + var r = tE(); function e(t) { return typeof t == "function" ? t : r; } - return XC = e, XC; + return YC = e, YC; } -var $C, G4; -function Kre() { - if (G4) return $C; +var XC, G4; +function Zre() { + if (G4) return XC; G4 = 1; - var r = pD(), e = tE(), t = $re(), n = Bs(); + var r = pD(), e = eE(), t = Kre(), n = Bs(); function i(a, o) { var s = n(a) ? r : e; return s(a, t(o)); } - return $C = i, $C; + return XC = i, XC; } -var KC, V4; -function Zre() { - return V4 || (V4 = 1, KC = Kre()), KC; -} -var ZC, H4; +var $C, V4; function Qre() { - if (H4) return ZC; + return V4 || (V4 = 1, $C = Zre()), $C; +} +var KC, H4; +function Jre() { + if (H4) return KC; H4 = 1; - var r = tE(); + var r = eE(); function e(t, n) { var i = []; return r(t, function(a, o, s) { n(a, o, s) && i.push(a); }), i; } - return ZC = e, ZC; + return KC = e, KC; } -var QC, W4; -function Jre() { - if (W4) return QC; +var ZC, W4; +function ene() { + if (W4) return ZC; W4 = 1; var r = "__lodash_hash_undefined__"; function e(t) { return this.__data__.set(t, r), this; } - return QC = e, QC; + return ZC = e, ZC; } -var JC, Y4; -function ene() { - if (Y4) return JC; +var QC, Y4; +function tne() { + if (Y4) return QC; Y4 = 1; function r(e) { return this.__data__.has(e); } - return JC = r, JC; + return QC = r, QC; } -var eA, X4; +var JC, X4; function QU() { - if (X4) return eA; + if (X4) return JC; X4 = 1; - var r = hD(), e = Jre(), t = ene(); + var r = hD(), e = ene(), t = tne(); function n(i) { var a = -1, o = i == null ? 0 : i.length; for (this.__data__ = new r(); ++a < o; ) this.add(i[a]); } - return n.prototype.add = n.prototype.push = e, n.prototype.has = t, eA = n, eA; + return n.prototype.add = n.prototype.push = e, n.prototype.has = t, JC = n, JC; } -var tA, $4; -function tne() { - if ($4) return tA; +var eA, $4; +function rne() { + if ($4) return eA; $4 = 1; function r(e, t) { for (var n = -1, i = e == null ? 0 : e.length; ++n < i; ) @@ -40361,22 +40373,22 @@ function tne() { return !0; return !1; } - return tA = r, tA; + return eA = r, eA; } -var rA, K4; +var tA, K4; function JU() { - if (K4) return rA; + if (K4) return tA; K4 = 1; function r(e, t) { return e.has(t); } - return rA = r, rA; + return tA = r, tA; } -var nA, Z4; +var rA, Z4; function ez() { - if (Z4) return nA; + if (Z4) return rA; Z4 = 1; - var r = QU(), e = tne(), t = JU(), n = 1, i = 2; + var r = QU(), e = rne(), t = JU(), n = 1, i = 2; function a(o, s, u, l, c, f) { var d = u & n, h = o.length, p = s.length; if (h != p && !(d && p > h)) @@ -40410,11 +40422,11 @@ function ez() { } return f.delete(o), f.delete(s), _; } - return nA = a, nA; + return rA = a, rA; } -var iA, Q4; -function rne() { - if (Q4) return iA; +var nA, Q4; +function nne() { + if (Q4) return nA; Q4 = 1; function r(e) { var t = -1, n = Array(e.size); @@ -40422,11 +40434,11 @@ function rne() { n[++t] = [a, i]; }), n; } - return iA = r, iA; + return nA = r, nA; } -var aA, J4; +var iA, J4; function OD() { - if (J4) return aA; + if (J4) return iA; J4 = 1; function r(e) { var t = -1, n = Array(e.size); @@ -40434,13 +40446,13 @@ function OD() { n[++t] = i; }), n; } - return aA = r, aA; + return iA = r, iA; } -var oA, ej; -function nne() { - if (ej) return oA; +var aA, ej; +function ine() { + if (ej) return aA; ej = 1; - var r = t0(), e = XU(), t = fD(), n = ez(), i = rne(), a = OD(), o = 1, s = 2, u = "[object Boolean]", l = "[object Date]", c = "[object Error]", f = "[object Map]", d = "[object Number]", h = "[object RegExp]", p = "[object Set]", g = "[object String]", y = "[object Symbol]", b = "[object ArrayBuffer]", _ = "[object DataView]", m = r ? r.prototype : void 0, x = m ? m.valueOf : void 0; + var r = t0(), e = XU(), t = fD(), n = ez(), i = nne(), a = OD(), o = 1, s = 2, u = "[object Boolean]", l = "[object Date]", c = "[object Error]", f = "[object Map]", d = "[object Number]", h = "[object RegExp]", p = "[object Set]", g = "[object String]", y = "[object Symbol]", b = "[object ArrayBuffer]", _ = "[object DataView]", m = r ? r.prototype : void 0, x = m ? m.valueOf : void 0; function S(O, E, T, P, I, k, L) { switch (T) { case _: @@ -40476,11 +40488,11 @@ function nne() { } return !1; } - return oA = S, oA; + return aA = S, aA; } -var sA, tj; -function ine() { - if (tj) return sA; +var oA, tj; +function ane() { + if (tj) return oA; tj = 1; var r = WU(), e = 1, t = Object.prototype, n = t.hasOwnProperty; function i(a, o, s, u, l, c) { @@ -40514,13 +40526,13 @@ function ine() { } return c.delete(a), c.delete(o), x; } - return sA = i, sA; + return oA = i, oA; } -var uA, rj; -function ane() { - if (rj) return uA; +var sA, rj; +function one() { + if (rj) return sA; rj = 1; - var r = vD(), e = ez(), t = nne(), n = ine(), i = n0(), a = Bs(), o = r_(), s = J2(), u = 1, l = "[object Arguments]", c = "[object Array]", f = "[object Object]", d = Object.prototype, h = d.hasOwnProperty; + var r = vD(), e = ez(), t = ine(), n = ane(), i = n0(), a = Bs(), o = r_(), s = Q2(), u = 1, l = "[object Arguments]", c = "[object Array]", f = "[object Object]", d = Object.prototype, h = d.hasOwnProperty; function p(g, y, b, _, m, x) { var S = a(g), O = a(y), E = S ? c : i(g), T = O ? c : i(y); E = E == l ? f : E, T = T == l ? f : T; @@ -40541,21 +40553,21 @@ function ane() { } return k ? (x || (x = new r()), n(g, y, b, _, m, x)) : !1; } - return uA = p, uA; + return sA = p, sA; } -var lA, nj; +var uA, nj; function tz() { - if (nj) return lA; + if (nj) return uA; nj = 1; - var r = ane(), e = xv(); + var r = one(), e = xv(); function t(n, i, a, o, s) { return n === i ? !0 : n == null || i == null || !e(n) && !e(i) ? n !== n && i !== i : r(n, i, a, o, t, s); } - return lA = t, lA; + return uA = t, uA; } -var cA, ij; -function one() { - if (ij) return cA; +var lA, ij; +function sne() { + if (ij) return lA; ij = 1; var r = vD(), e = tz(), t = 1, n = 2; function i(a, o, s, u) { @@ -40583,21 +40595,21 @@ function one() { } return !0; } - return cA = i, cA; + return lA = i, lA; } -var fA, aj; +var cA, aj; function rz() { - if (aj) return fA; + if (aj) return cA; aj = 1; var r = iy(); function e(t) { return t === t && !r(t); } - return fA = e, fA; + return cA = e, cA; } -var dA, oj; -function sne() { - if (oj) return dA; +var fA, oj; +function une() { + if (oj) return fA; oj = 1; var r = rz(), e = sy(); function t(n) { @@ -40607,45 +40619,45 @@ function sne() { } return i; } - return dA = t, dA; + return fA = t, fA; } -var hA, sj; +var dA, sj; function nz() { - if (sj) return hA; + if (sj) return dA; sj = 1; function r(e, t) { return function(n) { return n == null ? !1 : n[e] === t && (t !== void 0 || e in Object(n)); }; } - return hA = r, hA; + return dA = r, dA; } -var vA, uj; -function une() { - if (uj) return vA; +var hA, uj; +function lne() { + if (uj) return hA; uj = 1; - var r = one(), e = sne(), t = nz(); + var r = sne(), e = une(), t = nz(); function n(i) { var a = e(i); return a.length == 1 && a[0][2] ? t(a[0][0], a[0][1]) : function(o) { return o === i || r(o, i, a); }; } - return vA = n, vA; + return hA = n, hA; } -var pA, lj; +var vA, lj; function TD() { - if (lj) return pA; + if (lj) return vA; lj = 1; var r = r0(), e = xv(), t = "[object Symbol]"; function n(i) { return typeof i == "symbol" || e(i) && r(i) == t; } - return pA = n, pA; + return vA = n, vA; } -var gA, cj; +var pA, cj; function CD() { - if (cj) return gA; + if (cj) return pA; cj = 1; var r = Bs(), e = TD(), t = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, n = /^\w*$/; function i(a, o) { @@ -40654,11 +40666,11 @@ function CD() { var s = typeof a; return s == "number" || s == "symbol" || s == "boolean" || a == null || e(a) ? !0 : n.test(a) || !t.test(a) || o != null && a in Object(o); } - return gA = i, gA; + return pA = i, pA; } -var yA, fj; -function lne() { - if (fj) return yA; +var gA, fj; +function cne() { + if (fj) return gA; fj = 1; var r = hD(), e = "Expected a function"; function t(n, i) { @@ -40673,47 +40685,47 @@ function lne() { }; return a.cache = new (t.Cache || r)(), a; } - return t.Cache = r, yA = t, yA; + return t.Cache = r, gA = t, gA; } -var mA, dj; -function cne() { - if (dj) return mA; +var yA, dj; +function fne() { + if (dj) return yA; dj = 1; - var r = lne(), e = 500; + var r = cne(), e = 500; function t(n) { var i = r(n, function(o) { return a.size === e && a.clear(), o; }), a = i.cache; return i; } - return mA = t, mA; + return yA = t, yA; } -var bA, hj; -function fne() { - if (hj) return bA; +var mA, hj; +function dne() { + if (hj) return mA; hj = 1; - var r = cne(), e = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, t = /\\(\\)?/g, n = r(function(i) { + var r = fne(), e = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, t = /\\(\\)?/g, n = r(function(i) { var a = []; return i.charCodeAt(0) === 46 && a.push(""), i.replace(e, function(o, s, u, l) { a.push(u ? l.replace(t, "$1") : s || o); }), a; }); - return bA = n, bA; + return mA = n, mA; } -var _A, vj; +var bA, vj; function AD() { - if (vj) return _A; + if (vj) return bA; vj = 1; function r(e, t) { for (var n = -1, i = e == null ? 0 : e.length, a = Array(i); ++n < i; ) a[n] = t(e[n], n, e); return a; } - return _A = r, _A; + return bA = r, bA; } -var wA, pj; -function dne() { - if (pj) return wA; +var _A, pj; +function hne() { + if (pj) return _A; pj = 1; var r = t0(), e = AD(), t = Bs(), n = TD(), i = r ? r.prototype : void 0, a = i ? i.toString : void 0; function o(s) { @@ -40726,31 +40738,31 @@ function dne() { var u = s + ""; return u == "0" && 1 / s == -1 / 0 ? "-0" : u; } - return wA = o, wA; + return _A = o, _A; } -var xA, gj; -function hne() { - if (gj) return xA; +var wA, gj; +function vne() { + if (gj) return wA; gj = 1; - var r = dne(); + var r = hne(); function e(t) { return t == null ? "" : r(t); } - return xA = e, xA; + return wA = e, wA; } -var EA, yj; +var xA, yj; function iz() { - if (yj) return EA; + if (yj) return xA; yj = 1; - var r = Bs(), e = CD(), t = fne(), n = hne(); + var r = Bs(), e = CD(), t = dne(), n = vne(); function i(a, o) { return r(a) ? a : e(a, o) ? [a] : t(n(a)); } - return EA = i, EA; + return xA = i, xA; } -var SA, mj; -function nE() { - if (mj) return SA; +var EA, mj; +function rE() { + if (mj) return EA; mj = 1; var r = TD(); function e(t) { @@ -40759,46 +40771,46 @@ function nE() { var n = t + ""; return n == "0" && 1 / t == -1 / 0 ? "-0" : n; } - return SA = e, SA; + return EA = e, EA; } -var OA, bj; +var SA, bj; function az() { - if (bj) return OA; + if (bj) return SA; bj = 1; - var r = iz(), e = nE(); + var r = iz(), e = rE(); function t(n, i) { i = r(i, n); for (var a = 0, o = i.length; n != null && a < o; ) n = n[e(i[a++])]; return a && a == o ? n : void 0; } - return OA = t, OA; + return SA = t, SA; } -var TA, _j; -function vne() { - if (_j) return TA; +var OA, _j; +function pne() { + if (_j) return OA; _j = 1; var r = az(); function e(t, n, i) { var a = t == null ? void 0 : r(t, n); return a === void 0 ? i : a; } - return TA = e, TA; + return OA = e, OA; } -var CA, wj; -function pne() { - if (wj) return CA; +var TA, wj; +function gne() { + if (wj) return TA; wj = 1; function r(e, t) { return e != null && t in Object(e); } - return CA = r, CA; + return TA = r, TA; } -var AA, xj; +var CA, xj; function oz() { - if (xj) return AA; + if (xj) return CA; xj = 1; - var r = iz(), e = Q2(), t = Bs(), n = FU(), i = gD(), a = nE(); + var r = iz(), e = Z2(), t = Bs(), n = FU(), i = gD(), a = rE(); function o(s, u, l) { u = r(u, s); for (var c = -1, f = u.length, d = !1; ++c < f; ) { @@ -40809,45 +40821,45 @@ function oz() { } return d || ++c != f ? d : (f = s == null ? 0 : s.length, !!f && i(f) && n(h, f) && (t(s) || e(s))); } - return AA = o, AA; + return CA = o, CA; } -var RA, Ej; -function gne() { - if (Ej) return RA; +var AA, Ej; +function yne() { + if (Ej) return AA; Ej = 1; - var r = pne(), e = oz(); + var r = gne(), e = oz(); function t(n, i) { return n != null && e(n, i, r); } - return RA = t, RA; + return AA = t, AA; } -var PA, Sj; -function yne() { - if (Sj) return PA; +var RA, Sj; +function mne() { + if (Sj) return RA; Sj = 1; - var r = tz(), e = vne(), t = gne(), n = CD(), i = rz(), a = nz(), o = nE(), s = 1, u = 2; + var r = tz(), e = pne(), t = yne(), n = CD(), i = rz(), a = nz(), o = rE(), s = 1, u = 2; function l(c, f) { return n(c) && i(f) ? a(o(c), f) : function(d) { var h = e(d, c); return h === void 0 && h === f ? t(d, c) : r(f, h, s | u); }; } - return PA = l, PA; + return RA = l, RA; } -var MA, Oj; +var PA, Oj; function sz() { - if (Oj) return MA; + if (Oj) return PA; Oj = 1; function r(e) { return function(t) { return t == null ? void 0 : t[e]; }; } - return MA = r, MA; + return PA = r, PA; } -var DA, Tj; -function mne() { - if (Tj) return DA; +var MA, Tj; +function bne() { + if (Tj) return MA; Tj = 1; var r = az(); function e(t) { @@ -40855,64 +40867,64 @@ function mne() { return r(n, t); }; } - return DA = e, DA; + return MA = e, MA; } -var kA, Cj; -function bne() { - if (Cj) return kA; +var DA, Cj; +function _ne() { + if (Cj) return DA; Cj = 1; - var r = sz(), e = mne(), t = CD(), n = nE(); + var r = sz(), e = bne(), t = CD(), n = rE(); function i(a) { return t(a) ? r(n(a)) : e(a); } - return kA = i, kA; + return DA = i, DA; } -var IA, Aj; -function iE() { - if (Aj) return IA; +var kA, Aj; +function nE() { + if (Aj) return kA; Aj = 1; - var r = une(), e = yne(), t = rE(), n = Bs(), i = bne(); + var r = lne(), e = mne(), t = tE(), n = Bs(), i = _ne(); function a(o) { return typeof o == "function" ? o : o == null ? t : typeof o == "object" ? n(o) ? e(o[0], o[1]) : r(o) : i(o); } - return IA = a, IA; + return kA = a, kA; } -var NA, Rj; -function _ne() { - if (Rj) return NA; +var IA, Rj; +function wne() { + if (Rj) return IA; Rj = 1; - var r = qU(), e = Qre(), t = iE(), n = Bs(); + var r = qU(), e = Jre(), t = nE(), n = Bs(); function i(a, o) { var s = n(a) ? r : e; return s(a, t(o, 3)); } - return NA = i, NA; + return IA = i, IA; } -var LA, Pj; -function wne() { - if (Pj) return LA; +var NA, Pj; +function xne() { + if (Pj) return NA; Pj = 1; var r = Object.prototype, e = r.hasOwnProperty; function t(n, i) { return n != null && e.call(n, i); } - return LA = t, LA; + return NA = t, NA; } -var jA, Mj; -function xne() { - if (Mj) return jA; +var LA, Mj; +function Ene() { + if (Mj) return LA; Mj = 1; - var r = wne(), e = oz(); + var r = xne(), e = oz(); function t(n, i) { return n != null && e(n, i, r); } - return jA = t, jA; + return LA = t, LA; } -var BA, Dj; -function Ene() { - if (Dj) return BA; +var jA, Dj; +function Sne() { + if (Dj) return jA; Dj = 1; - var r = bD(), e = n0(), t = Q2(), n = Bs(), i = oy(), a = r_(), o = eE(), s = J2(), u = "[object Map]", l = "[object Set]", c = Object.prototype, f = c.hasOwnProperty; + var r = bD(), e = n0(), t = Z2(), n = Bs(), i = oy(), a = r_(), o = J2(), s = Q2(), u = "[object Map]", l = "[object Set]", c = Object.prototype, f = c.hasOwnProperty; function d(h) { if (h == null) return !0; @@ -40928,44 +40940,44 @@ function Ene() { return !1; return !0; } - return BA = d, BA; + return jA = d, jA; } -var FA, kj; -function Sne() { - if (kj) return FA; +var BA, kj; +function One() { + if (kj) return BA; kj = 1; function r(e) { return e === void 0; } - return FA = r, FA; + return BA = r, BA; } -var UA, Ij; -function One() { - if (Ij) return UA; +var FA, Ij; +function Tne() { + if (Ij) return FA; Ij = 1; - var r = tE(), e = oy(); + var r = eE(), e = oy(); function t(n, i) { var a = -1, o = e(n) ? Array(n.length) : []; return r(n, function(s, u, l) { o[++a] = i(s, u, l); }), o; } - return UA = t, UA; + return FA = t, FA; } -var zA, Nj; -function Tne() { - if (Nj) return zA; +var UA, Nj; +function Cne() { + if (Nj) return UA; Nj = 1; - var r = AD(), e = iE(), t = One(), n = Bs(); + var r = AD(), e = nE(), t = Tne(), n = Bs(); function i(a, o) { var s = n(a) ? r : t; return s(a, e(o, 3)); } - return zA = i, zA; + return UA = i, UA; } -var qA, Lj; -function Cne() { - if (Lj) return qA; +var zA, Lj; +function Ane() { + if (Lj) return zA; Lj = 1; function r(e, t, n, i) { var a = -1, o = e == null ? 0 : e.length; @@ -40973,60 +40985,60 @@ function Cne() { n = t(n, e[a], a, e); return n; } - return qA = r, qA; + return zA = r, zA; } -var GA, jj; -function Ane() { - if (jj) return GA; +var qA, jj; +function Rne() { + if (jj) return qA; jj = 1; function r(e, t, n, i, a) { return a(e, function(o, s, u) { n = i ? (i = !1, o) : t(n, o, s, u); }), n; } - return GA = r, GA; + return qA = r, qA; } -var VA, Bj; -function Rne() { - if (Bj) return VA; +var GA, Bj; +function Pne() { + if (Bj) return GA; Bj = 1; - var r = Cne(), e = tE(), t = iE(), n = Ane(), i = Bs(); + var r = Ane(), e = eE(), t = nE(), n = Rne(), i = Bs(); function a(o, s, u) { var l = i(o) ? r : n, c = arguments.length < 3; return l(o, t(s, 4), u, c, e); } - return VA = a, VA; + return GA = a, GA; } -var HA, Fj; -function Pne() { - if (Fj) return HA; +var VA, Fj; +function Mne() { + if (Fj) return VA; Fj = 1; var r = r0(), e = Bs(), t = xv(), n = "[object String]"; function i(a) { return typeof a == "string" || !e(a) && t(a) && r(a) == n; } - return HA = i, HA; + return VA = i, VA; } -var WA, Uj; -function Mne() { - if (Uj) return WA; +var HA, Uj; +function Dne() { + if (Uj) return HA; Uj = 1; var r = sz(), e = r("length"); - return WA = e, WA; + return HA = e, HA; } -var YA, zj; -function Dne() { - if (zj) return YA; +var WA, zj; +function kne() { + if (zj) return WA; zj = 1; var r = "\\ud800-\\udfff", e = "\\u0300-\\u036f", t = "\\ufe20-\\ufe2f", n = "\\u20d0-\\u20ff", i = e + t + n, a = "\\ufe0e\\ufe0f", o = "\\u200d", s = RegExp("[" + o + r + i + a + "]"); function u(l) { return s.test(l); } - return YA = u, YA; + return WA = u, WA; } -var XA, qj; -function kne() { - if (qj) return XA; +var YA, qj; +function Ine() { + if (qj) return YA; qj = 1; var r = "\\ud800-\\udfff", e = "\\u0300-\\u036f", t = "\\ufe20-\\ufe2f", n = "\\u20d0-\\u20ff", i = e + t + n, a = "\\ufe0e\\ufe0f", o = "[" + r + "]", s = "[" + i + "]", u = "\\ud83c[\\udffb-\\udfff]", l = "(?:" + s + "|" + u + ")", c = "[^" + r + "]", f = "(?:\\ud83c[\\udde6-\\uddff]){2}", d = "[\\ud800-\\udbff][\\udc00-\\udfff]", h = "\\u200d", p = l + "?", g = "[" + a + "]?", y = "(?:" + h + "(?:" + [c, f, d].join("|") + ")" + g + p + ")*", b = g + p + y, _ = "(?:" + [c + s + "?", s, f, d, o].join("|") + ")", m = RegExp(u + "(?=" + u + ")|" + _ + b, "g"); function x(S) { @@ -41034,23 +41046,23 @@ function kne() { ++O; return O; } - return XA = x, XA; + return YA = x, YA; } -var $A, Gj; -function Ine() { - if (Gj) return $A; +var XA, Gj; +function Nne() { + if (Gj) return XA; Gj = 1; - var r = Mne(), e = Dne(), t = kne(); + var r = Dne(), e = kne(), t = Ine(); function n(i) { return e(i) ? t(i) : r(i); } - return $A = n, $A; + return XA = n, XA; } -var KA, Vj; -function Nne() { - if (Vj) return KA; +var $A, Vj; +function Lne() { + if (Vj) return $A; Vj = 1; - var r = bD(), e = n0(), t = oy(), n = Pne(), i = Ine(), a = "[object Map]", o = "[object Set]"; + var r = bD(), e = n0(), t = oy(), n = Mne(), i = Nne(), a = "[object Map]", o = "[object Set]"; function s(u) { if (u == null) return 0; @@ -41059,13 +41071,13 @@ function Nne() { var l = e(u); return l == a || l == o ? u.size : r(u).length; } - return KA = s, KA; + return $A = s, $A; } -var ZA, Hj; -function Lne() { - if (Hj) return ZA; +var KA, Hj; +function jne() { + if (Hj) return KA; Hj = 1; - var r = pD(), e = $U(), t = ZU(), n = iE(), i = ED(), a = Bs(), o = r_(), s = X2(), u = iy(), l = J2(); + var r = pD(), e = $U(), t = ZU(), n = nE(), i = ED(), a = Bs(), o = r_(), s = Y2(), u = iy(), l = Q2(); function c(f, d, h) { var p = a(f), g = p || o(f) || l(f); if (d = n(d, 4), h == null) { @@ -41076,23 +41088,23 @@ function Lne() { return d(h, b, _, m); }), h; } - return ZA = c, ZA; + return KA = c, KA; } -var QA, Wj; -function jne() { - if (Wj) return QA; +var ZA, Wj; +function Bne() { + if (Wj) return ZA; Wj = 1; - var r = t0(), e = Q2(), t = Bs(), n = r ? r.isConcatSpreadable : void 0; + var r = t0(), e = Z2(), t = Bs(), n = r ? r.isConcatSpreadable : void 0; function i(a) { return t(a) || e(a) || !!(n && a && a[n]); } - return QA = i, QA; + return ZA = i, ZA; } -var JA, Yj; -function Bne() { - if (Yj) return JA; +var QA, Yj; +function Fne() { + if (Yj) return QA; Yj = 1; - var r = xD(), e = jne(); + var r = xD(), e = Bne(); function t(n, i, a, o, s) { var u = -1, l = n.length; for (a || (a = e), s || (s = []); ++u < l; ) { @@ -41101,11 +41113,11 @@ function Bne() { } return s; } - return JA = t, JA; + return QA = t, QA; } -var eR, Xj; -function Fne() { - if (Xj) return eR; +var JA, Xj; +function Une() { + if (Xj) return JA; Xj = 1; function r(e, t, n) { switch (n.length) { @@ -41120,13 +41132,13 @@ function Fne() { } return e.apply(t, n); } - return eR = r, eR; + return JA = r, JA; } -var tR, $j; -function Une() { - if ($j) return tR; +var eR, $j; +function zne() { + if ($j) return eR; $j = 1; - var r = Fne(), e = Math.max; + var r = Une(), e = Math.max; function t(n, i, a) { return i = e(i === void 0 ? n.length - 1 : i, 0), function() { for (var o = arguments, s = -1, u = e(o.length - i, 0), l = Array(u); ++s < u; ) @@ -41137,13 +41149,13 @@ function Une() { return c[i] = a(l), r(n, this, c); }; } - return tR = t, tR; + return eR = t, eR; } -var rR, Kj; -function zne() { - if (Kj) return rR; +var tR, Kj; +function qne() { + if (Kj) return tR; Kj = 1; - var r = KU(), e = LU(), t = rE(), n = e ? function(i, a) { + var r = KU(), e = LU(), t = tE(), n = e ? function(i, a) { return e(i, "toString", { configurable: !0, enumerable: !1, @@ -41151,11 +41163,11 @@ function zne() { writable: !0 }); } : t; - return rR = n, rR; + return tR = n, tR; } -var nR, Zj; -function qne() { - if (Zj) return nR; +var rR, Zj; +function Gne() { + if (Zj) return rR; Zj = 1; var r = 800, e = 16, t = Date.now; function n(i) { @@ -41170,28 +41182,28 @@ function qne() { return i.apply(void 0, arguments); }; } - return nR = n, nR; + return rR = n, rR; } -var iR, Qj; -function Gne() { - if (Qj) return iR; +var nR, Qj; +function Vne() { + if (Qj) return nR; Qj = 1; - var r = zne(), e = qne(), t = e(r); - return iR = t, iR; + var r = qne(), e = Gne(), t = e(r); + return nR = t, nR; } -var aR, Jj; -function Vne() { - if (Jj) return aR; +var iR, Jj; +function Hne() { + if (Jj) return iR; Jj = 1; - var r = rE(), e = Une(), t = Gne(); + var r = tE(), e = zne(), t = Vne(); function n(i, a) { return t(e(i, a, r), i + ""); } - return aR = n, aR; + return iR = n, iR; } -var oR, e6; -function Hne() { - if (e6) return oR; +var aR, e6; +function Wne() { + if (e6) return aR; e6 = 1; function r(e, t, n, i) { for (var a = e.length, o = n + (i ? 1 : -1); i ? o-- : ++o < a; ) @@ -41199,20 +41211,20 @@ function Hne() { return o; return -1; } - return oR = r, oR; + return aR = r, aR; } -var sR, t6; -function Wne() { - if (t6) return sR; +var oR, t6; +function Yne() { + if (t6) return oR; t6 = 1; function r(e) { return e !== e; } - return sR = r, sR; + return oR = r, oR; } -var uR, r6; -function Yne() { - if (r6) return uR; +var sR, r6; +function Xne() { + if (r6) return sR; r6 = 1; function r(e, t, n) { for (var i = n - 1, a = e.length; ++i < a; ) @@ -41220,32 +41232,32 @@ function Yne() { return i; return -1; } - return uR = r, uR; + return sR = r, sR; } -var lR, n6; -function Xne() { - if (n6) return lR; +var uR, n6; +function $ne() { + if (n6) return uR; n6 = 1; - var r = Hne(), e = Wne(), t = Yne(); + var r = Wne(), e = Yne(), t = Xne(); function n(i, a, o) { return a === a ? t(i, a, o) : r(i, e, o); } - return lR = n, lR; + return uR = n, uR; } -var cR, i6; -function $ne() { - if (i6) return cR; +var lR, i6; +function Kne() { + if (i6) return lR; i6 = 1; - var r = Xne(); + var r = $ne(); function e(t, n) { var i = t == null ? 0 : t.length; return !!i && r(t, n, 0) > -1; } - return cR = e, cR; + return lR = e, lR; } -var fR, a6; -function Kne() { - if (a6) return fR; +var cR, a6; +function Zne() { + if (a6) return cR; a6 = 1; function r(e, t, n) { for (var i = -1, a = e == null ? 0 : e.length; ++i < a; ) @@ -41253,30 +41265,30 @@ function Kne() { return !0; return !1; } - return fR = r, fR; + return cR = r, cR; } -var dR, o6; -function Zne() { - if (o6) return dR; +var fR, o6; +function Qne() { + if (o6) return fR; o6 = 1; function r() { } - return dR = r, dR; + return fR = r, fR; } -var hR, s6; -function Qne() { - if (s6) return hR; +var dR, s6; +function Jne() { + if (s6) return dR; s6 = 1; - var r = YU(), e = Zne(), t = OD(), n = 1 / 0, i = r && 1 / t(new r([, -0]))[1] == n ? function(a) { + var r = YU(), e = Qne(), t = OD(), n = 1 / 0, i = r && 1 / t(new r([, -0]))[1] == n ? function(a) { return new r(a); } : e; - return hR = i, hR; + return dR = i, dR; } -var vR, u6; -function Jne() { - if (u6) return vR; +var hR, u6; +function eie() { + if (u6) return hR; u6 = 1; - var r = QU(), e = $ne(), t = Kne(), n = JU(), i = Qne(), a = OD(), o = 200; + var r = QU(), e = Kne(), t = Zne(), n = JU(), i = Jne(), a = OD(), o = 200; function s(u, l, c) { var f = -1, d = e, h = u.length, p = !0, g = [], y = g; if (c) @@ -41300,30 +41312,30 @@ function Jne() { } return g; } - return vR = s, vR; + return hR = s, hR; } -var pR, l6; -function eie() { - if (l6) return pR; +var vR, l6; +function tie() { + if (l6) return vR; l6 = 1; var r = oy(), e = xv(); function t(n) { return e(n) && r(n); } - return pR = t, pR; + return vR = t, vR; } -var gR, c6; -function tie() { - if (c6) return gR; +var pR, c6; +function rie() { + if (c6) return pR; c6 = 1; - var r = Bne(), e = Vne(), t = Jne(), n = eie(), i = e(function(a) { + var r = Fne(), e = Hne(), t = eie(), n = tie(), i = e(function(a) { return t(r(a, 1, n, !0)); }); - return gR = i, gR; + return pR = i, pR; } -var yR, f6; -function rie() { - if (f6) return yR; +var gR, f6; +function nie() { + if (f6) return gR; f6 = 1; var r = AD(); function e(t, n) { @@ -41331,53 +41343,53 @@ function rie() { return t[i]; }); } - return yR = e, yR; + return gR = e, gR; } -var mR, d6; -function nie() { - if (d6) return mR; +var yR, d6; +function iie() { + if (d6) return yR; d6 = 1; - var r = rie(), e = sy(); + var r = nie(), e = sy(); function t(n) { return n == null ? [] : r(n, e(n)); } - return mR = t, mR; + return yR = t, yR; } -var bR, h6; +var mR, h6; function qf() { - if (h6) return bR; + if (h6) return mR; h6 = 1; var r; - if (typeof zte == "function") + if (typeof qte == "function") try { r = { - clone: Hre(), + clone: Wre(), constant: KU(), - each: Zre(), - filter: _ne(), - has: xne(), + each: Qre(), + filter: wne(), + has: Ene(), isArray: Bs(), - isEmpty: Ene(), - isFunction: X2(), - isUndefined: Sne(), + isEmpty: Sne(), + isFunction: Y2(), + isUndefined: One(), keys: sy(), - map: Tne(), - reduce: Rne(), - size: Nne(), - transform: Lne(), - union: tie(), - values: nie() + map: Cne(), + reduce: Pne(), + size: Lne(), + transform: jne(), + union: rie(), + values: iie() }; } catch { } - return r || (r = window._), bR = r, bR; + return r || (r = window._), mR = r, mR; } -var _R, v6; +var bR, v6; function RD() { - if (v6) return _R; + if (v6) return bR; v6 = 1; var r = qf(); - _R = i; + bR = i; var e = "\0", t = "\0", n = ""; function i(c) { this._isDirected = r.has(c, "directed") ? c.directed : !0, this._isMultigraph = r.has(c, "multigraph") ? c.multigraph : !1, this._isCompound = r.has(c, "compound") ? c.compound : !1, this._label = void 0, this._defaultNodeLabelFn = r.constant(void 0), this._defaultEdgeLabelFn = r.constant(void 0), this._nodes = {}, this._isCompound && (this._parent = {}, this._children = {}, this._children[t] = {}), this._in = {}, this._preds = {}, this._out = {}, this._sucs = {}, this._edgeObjs = {}, this._edgeLabels = {}; @@ -41576,25 +41588,25 @@ function RD() { function l(c, f) { return s(c, f.v, f.w, f.name); } - return _R; + return bR; } -var wR, p6; -function iie() { - return p6 || (p6 = 1, wR = "2.1.8"), wR; -} -var xR, g6; +var _R, p6; function aie() { - return g6 || (g6 = 1, xR = { - Graph: RD(), - version: iie() - }), xR; + return p6 || (p6 = 1, _R = "2.1.8"), _R; } -var ER, y6; +var wR, g6; function oie() { - if (y6) return ER; + return g6 || (g6 = 1, wR = { + Graph: RD(), + version: aie() + }), wR; +} +var xR, y6; +function sie() { + if (y6) return xR; y6 = 1; var r = qf(), e = RD(); - ER = { + xR = { write: t, read: a }; @@ -41630,14 +41642,14 @@ function oie() { s.setEdge({ v: u.v, w: u.w, name: u.name }, u.value); }), s; } - return ER; + return xR; } -var SR, m6; -function sie() { - if (m6) return SR; +var ER, m6; +function uie() { + if (m6) return ER; m6 = 1; var r = qf(); - SR = e; + ER = e; function e(t) { var n = {}, i = [], a; function o(s) { @@ -41647,14 +41659,14 @@ function sie() { a = [], o(s), a.length && i.push(a); }), i; } - return SR; + return ER; } -var OR, b6; +var SR, b6; function uz() { - if (b6) return OR; + if (b6) return SR; b6 = 1; var r = qf(); - OR = e; + SR = e; function e() { this._arr = [], this._keyIndices = {}; } @@ -41699,14 +41711,14 @@ function uz() { }, e.prototype._swap = function(t, n) { var i = this._arr, a = this._keyIndices, o = i[t], s = i[n]; i[t] = s, i[n] = o, a[s.key] = t, a[o.key] = n; - }, OR; + }, SR; } -var TR, _6; +var OR, _6; function lz() { - if (_6) return TR; + if (_6) return OR; _6 = 1; var r = qf(), e = uz(); - TR = n; + OR = n; var t = r.constant(1); function n(a, o, s, u) { return i( @@ -41732,27 +41744,27 @@ function lz() { u(f).forEach(h); return l; } - return TR; + return OR; } -var CR, w6; -function uie() { - if (w6) return CR; +var TR, w6; +function lie() { + if (w6) return TR; w6 = 1; var r = lz(), e = qf(); - CR = t; + TR = t; function t(n, i, a) { return e.transform(n.nodes(), function(o, s) { o[s] = r(n, s, i, a); }, {}); } - return CR; + return TR; } -var AR, x6; +var CR, x6; function cz() { - if (x6) return AR; + if (x6) return CR; x6 = 1; var r = qf(); - AR = e; + CR = e; function e(t) { var n = 0, i = [], a = {}, o = []; function s(u) { @@ -41775,27 +41787,27 @@ function cz() { r.has(a, u) || s(u); }), o; } - return AR; + return CR; } -var RR, E6; -function lie() { - if (E6) return RR; +var AR, E6; +function cie() { + if (E6) return AR; E6 = 1; var r = qf(), e = cz(); - RR = t; + AR = t; function t(n) { return r.filter(e(n), function(i) { return i.length > 1 || i.length === 1 && n.hasEdge(i[0], i[0]); }); } - return RR; + return AR; } -var PR, S6; -function cie() { - if (S6) return PR; +var RR, S6; +function fie() { + if (S6) return RR; S6 = 1; var r = qf(); - PR = t; + RR = t; var e = r.constant(1); function t(i, a, o) { return n( @@ -41826,14 +41838,14 @@ function cie() { }); }), s; } - return PR; + return RR; } -var MR, O6; +var PR, O6; function fz() { - if (O6) return MR; + if (O6) return PR; O6 = 1; var r = qf(); - MR = e, e.CycleException = t; + PR = e, e.CycleException = t; function e(n) { var i = {}, a = {}, o = []; function s(u) { @@ -41847,14 +41859,14 @@ function fz() { } function t() { } - return t.prototype = new Error(), MR; + return t.prototype = new Error(), PR; } -var DR, T6; -function fie() { - if (T6) return DR; +var MR, T6; +function die() { + if (T6) return MR; T6 = 1; var r = fz(); - DR = e; + MR = e; function e(t) { try { r(t); @@ -41865,14 +41877,14 @@ function fie() { } return !0; } - return DR; + return MR; } -var kR, C6; +var DR, C6; function dz() { - if (C6) return kR; + if (C6) return DR; C6 = 1; var r = qf(); - kR = e; + DR = e; function e(n, i, a) { r.isArray(i) || (i = [i]); var o = (n.isDirected() ? n.successors : n.neighbors).bind(n), s = [], u = {}; @@ -41887,36 +41899,36 @@ function dz() { t(n, l, a, o, s, u); }), a && u.push(i)); } - return kR; + return DR; } -var IR, A6; -function die() { - if (A6) return IR; +var kR, A6; +function hie() { + if (A6) return kR; A6 = 1; var r = dz(); - IR = e; + kR = e; function e(t, n) { return r(t, n, "post"); } - return IR; + return kR; } -var NR, R6; -function hie() { - if (R6) return NR; +var IR, R6; +function vie() { + if (R6) return IR; R6 = 1; var r = dz(); - NR = e; + IR = e; function e(t, n) { return r(t, n, "pre"); } - return NR; + return IR; } -var LR, P6; -function vie() { - if (P6) return LR; +var NR, P6; +function pie() { + if (P6) return NR; P6 = 1; var r = qf(), e = RD(), t = uz(); - LR = n; + NR = n; function n(i, a) { var o = new e(), s = {}, u = new t(), l; function c(d) { @@ -41943,35 +41955,35 @@ function vie() { } return o; } - return LR; + return NR; } -var jR, M6; -function pie() { - return M6 || (M6 = 1, jR = { - components: sie(), +var LR, M6; +function gie() { + return M6 || (M6 = 1, LR = { + components: uie(), dijkstra: lz(), - dijkstraAll: uie(), - findCycles: lie(), - floydWarshall: cie(), - isAcyclic: fie(), - postorder: die(), - preorder: hie(), - prim: vie(), + dijkstraAll: lie(), + findCycles: cie(), + floydWarshall: fie(), + isAcyclic: die(), + postorder: hie(), + preorder: vie(), + prim: pie(), tarjan: cz(), topsort: fz() - }), jR; + }), LR; } -var BR, D6; +var jR, D6; function Uf() { - if (D6) return BR; + if (D6) return jR; D6 = 1; - var r = aie(); - return BR = { + var r = oie(); + return jR = { Graph: r.Graph, - json: oie(), - alg: pie(), + json: sie(), + alg: gie(), version: r.version - }, BR; + }, jR; } var mb = { exports: {} }; /** @@ -41982,11 +41994,11 @@ var mb = { exports: {} }; * Based on Underscore.js 1.8.3 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors */ -var gie = mb.exports, k6; +var yie = mb.exports, k6; function Sa() { return k6 || (k6 = 1, (function(r, e) { (function() { - var t, n = "4.17.23", i = 200, a = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", o = "Expected a function", s = "Invalid `variable` option passed into `_.template`", u = "__lodash_hash_undefined__", l = 500, c = "__lodash_placeholder__", f = 1, d = 2, h = 4, p = 1, g = 2, y = 1, b = 2, _ = 4, m = 8, x = 16, S = 32, O = 64, E = 128, T = 256, P = 512, I = 30, k = "...", L = 800, B = 16, j = 1, z = 2, H = 3, q = 1 / 0, W = 9007199254740991, $ = 17976931348623157e292, J = NaN, X = 4294967295, Q = X - 1, ue = X >>> 1, re = [ + var t, n = "4.17.23", i = 200, a = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", o = "Expected a function", s = "Invalid `variable` option passed into `_.template`", u = "__lodash_hash_undefined__", l = 500, c = "__lodash_placeholder__", f = 1, d = 2, h = 4, p = 1, g = 2, y = 1, b = 2, _ = 4, m = 8, x = 16, S = 32, O = 64, E = 128, T = 256, P = 512, I = 30, k = "...", L = 800, B = 16, j = 1, z = 2, H = 3, q = 1 / 0, W = 9007199254740991, $ = 17976931348623157e292, J = NaN, X = 4294967295, Z = X - 1, ue = X >>> 1, re = [ ["ary", E], ["bind", y], ["bindKey", b], @@ -41996,7 +42008,7 @@ function Sa() { ["partial", S], ["partialRight", O], ["rearg", T] - ], ne = "[object Arguments]", le = "[object Array]", ce = "[object AsyncFunction]", pe = "[object Boolean]", fe = "[object Date]", se = "[object DOMException]", de = "[object Error]", ge = "[object Function]", Oe = "[object GeneratorFunction]", ke = "[object Map]", Me = "[object Number]", Ne = "[object Null]", Ce = "[object Object]", Y = "[object Promise]", Z = "[object Proxy]", ie = "[object RegExp]", we = "[object Set]", Ee = "[object String]", De = "[object Symbol]", Ie = "[object Undefined]", Ye = "[object WeakMap]", ot = "[object WeakSet]", mt = "[object ArrayBuffer]", wt = "[object DataView]", Mt = "[object Float32Array]", Dt = "[object Float64Array]", vt = "[object Int8Array]", tt = "[object Int16Array]", _e = "[object Int32Array]", Ue = "[object Uint8Array]", Qe = "[object Uint8ClampedArray]", Ze = "[object Uint16Array]", nt = "[object Uint32Array]", It = /\b__p \+= '';/g, ct = /\b(__p \+=) '' \+/g, Lt = /(__e\(.*?\)|\b__t\)) \+\n'';/g, Rt = /&(?:amp|lt|gt|quot|#39);/g, jt = /[&<>"']/g, Yt = RegExp(Rt.source), sr = RegExp(jt.source), Ut = /<%-([\s\S]+?)%>/g, Rr = /<%([\s\S]+?)%>/g, Xt = /<%=([\s\S]+?)%>/g, Vr = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, Br = /^\w*$/, mr = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, ur = /[\\^$.*+?()[\]{}|]/g, sn = RegExp(ur.source), Fr = /^\s+/, un = /\s/, bn = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/, wn = /\{\n\/\* \[wrapped with (.+)\] \*/, _n = /,? & /, xn = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g, on = /[()=,{}\[\]\/\s]/, Nn = /\\(\\)?/g, fi = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g, gn = /\w*$/, yn = /^[-+]0x[0-9a-f]+$/i, Jn = /^0b[01]+$/i, _i = /^\[object .+?Constructor\]$/, Ir = /^0o[0-7]+$/i, pa = /^(?:0|[1-9]\d*)$/, di = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, Bt = /($^)/, hr = /['\n\r\u2028\u2029\\]/g, ei = "\\ud800-\\udfff", Hn = "\\u0300-\\u036f", fs = "\\ufe20-\\ufe2f", Na = "\\u20d0-\\u20ff", ki = Hn + fs + Na, Wr = "\\u2700-\\u27bf", Nr = "a-z\\xdf-\\xf6\\xf8-\\xff", na = "\\xac\\xb1\\xd7\\xf7", Fs = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", hu = "\\u2000-\\u206f", ga = " \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000", Us = "A-Z\\xc0-\\xd6\\xd8-\\xde", Ln = "\\ufe0e\\ufe0f", Ii = na + Fs + hu + ga, Ni = "['’]", Pc = "[" + ei + "]", vu = "[" + Ii + "]", ia = "[" + ki + "]", Hl = "\\d+", Md = "[" + Wr + "]", Xa = "[" + Nr + "]", Wl = "[^" + ei + Ii + Hl + Wr + Nr + Us + "]", Yl = "\\ud83c[\\udffb-\\udfff]", nf = "(?:" + ia + "|" + Yl + ")", Wi = "[^" + ei + "]", af = "(?:\\ud83c[\\udde6-\\uddff]){2}", La = "[\\ud800-\\udbff][\\udc00-\\udfff]", qo = "[" + Us + "]", Gf = "\\u200d", ds = "(?:" + Xa + "|" + Wl + ")", Mc = "(?:" + qo + "|" + Wl + ")", Xl = "(?:" + Ni + "(?:d|ll|m|re|s|t|ve))?", ti = "(?:" + Ni + "(?:D|LL|M|RE|S|T|VE))?", zs = nf + "?", Qu = "[" + Ln + "]?", qs = "(?:" + Gf + "(?:" + [Wi, af, La].join("|") + ")" + Qu + zs + ")*", $l = "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])", of = "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])", pu = Qu + zs + qs, _o = "(?:" + [Md, af, La].join("|") + ")" + pu, wo = "(?:" + [Wi + ia + "?", ia, af, La, Pc].join("|") + ")", Vf = RegExp(Ni, "g"), sf = RegExp(ia, "g"), gu = RegExp(Yl + "(?=" + Yl + ")|" + wo + pu, "g"), so = RegExp([ + ], ne = "[object Arguments]", le = "[object Array]", ce = "[object AsyncFunction]", pe = "[object Boolean]", fe = "[object Date]", se = "[object DOMException]", de = "[object Error]", ge = "[object Function]", Oe = "[object GeneratorFunction]", ke = "[object Map]", De = "[object Number]", Ne = "[object Null]", Te = "[object Object]", Y = "[object Promise]", Q = "[object Proxy]", ie = "[object RegExp]", we = "[object Set]", Ee = "[object String]", Me = "[object Symbol]", Ie = "[object Undefined]", Ye = "[object WeakMap]", ot = "[object WeakSet]", mt = "[object ArrayBuffer]", wt = "[object DataView]", Mt = "[object Float32Array]", Dt = "[object Float64Array]", vt = "[object Int8Array]", tt = "[object Int16Array]", _e = "[object Int32Array]", Ue = "[object Uint8Array]", Qe = "[object Uint8ClampedArray]", Ze = "[object Uint16Array]", nt = "[object Uint32Array]", It = /\b__p \+= '';/g, ct = /\b(__p \+=) '' \+/g, Lt = /(__e\(.*?\)|\b__t\)) \+\n'';/g, Rt = /&(?:amp|lt|gt|quot|#39);/g, jt = /[&<>"']/g, Yt = RegExp(Rt.source), sr = RegExp(jt.source), Ut = /<%-([\s\S]+?)%>/g, Rr = /<%([\s\S]+?)%>/g, Xt = /<%=([\s\S]+?)%>/g, Vr = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, Br = /^\w*$/, mr = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, ur = /[\\^$.*+?()[\]{}|]/g, sn = RegExp(ur.source), Fr = /^\s+/, un = /\s/, bn = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/, wn = /\{\n\/\* \[wrapped with (.+)\] \*/, _n = /,? & /, xn = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g, on = /[()=,{}\[\]\/\s]/, Nn = /\\(\\)?/g, fi = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g, gn = /\w*$/, yn = /^[-+]0x[0-9a-f]+$/i, Jn = /^0b[01]+$/i, _i = /^\[object .+?Constructor\]$/, Ir = /^0o[0-7]+$/i, pa = /^(?:0|[1-9]\d*)$/, di = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, Bt = /($^)/, hr = /['\n\r\u2028\u2029\\]/g, ei = "\\ud800-\\udfff", Hn = "\\u0300-\\u036f", fs = "\\ufe20-\\ufe2f", Na = "\\u20d0-\\u20ff", ki = Hn + fs + Na, Wr = "\\u2700-\\u27bf", Nr = "a-z\\xdf-\\xf6\\xf8-\\xff", na = "\\xac\\xb1\\xd7\\xf7", Fs = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", hu = "\\u2000-\\u206f", ga = " \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000", Us = "A-Z\\xc0-\\xd6\\xd8-\\xde", Ln = "\\ufe0e\\ufe0f", Ii = na + Fs + hu + ga, Ni = "['’]", Pc = "[" + ei + "]", vu = "[" + Ii + "]", ia = "[" + ki + "]", Hl = "\\d+", Md = "[" + Wr + "]", Xa = "[" + Nr + "]", Wl = "[^" + ei + Ii + Hl + Wr + Nr + Us + "]", Yl = "\\ud83c[\\udffb-\\udfff]", nf = "(?:" + ia + "|" + Yl + ")", Wi = "[^" + ei + "]", af = "(?:\\ud83c[\\udde6-\\uddff]){2}", La = "[\\ud800-\\udbff][\\udc00-\\udfff]", qo = "[" + Us + "]", Gf = "\\u200d", ds = "(?:" + Xa + "|" + Wl + ")", Mc = "(?:" + qo + "|" + Wl + ")", Xl = "(?:" + Ni + "(?:d|ll|m|re|s|t|ve))?", ti = "(?:" + Ni + "(?:D|LL|M|RE|S|T|VE))?", zs = nf + "?", Qu = "[" + Ln + "]?", qs = "(?:" + Gf + "(?:" + [Wi, af, La].join("|") + ")" + Qu + zs + ")*", $l = "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])", of = "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])", pu = Qu + zs + qs, _o = "(?:" + [Md, af, La].join("|") + ")" + pu, wo = "(?:" + [Wi + ia + "?", ia, af, La, Pc].join("|") + ")", Vf = RegExp(Ni, "g"), sf = RegExp(ia, "g"), gu = RegExp(Yl + "(?=" + Yl + ")|" + wo + pu, "g"), so = RegExp([ qo + "?" + Xa + "+" + Xl + "(?=" + [vu, qo, "$"].join("|") + ")", Mc + "+" + ti + "(?=" + [vu, qo + ds, "$"].join("|") + ")", qo + "?" + ds + "+" + Xl, @@ -42037,9 +42049,9 @@ function Sa() { "parseInt", "setTimeout" ], hs = -1, jn = {}; - jn[Mt] = jn[Dt] = jn[vt] = jn[tt] = jn[_e] = jn[Ue] = jn[Qe] = jn[Ze] = jn[nt] = !0, jn[ne] = jn[le] = jn[mt] = jn[pe] = jn[wt] = jn[fe] = jn[de] = jn[ge] = jn[ke] = jn[Me] = jn[Ce] = jn[ie] = jn[we] = jn[Ee] = jn[Ye] = !1; + jn[Mt] = jn[Dt] = jn[vt] = jn[tt] = jn[_e] = jn[Ue] = jn[Qe] = jn[Ze] = jn[nt] = !0, jn[ne] = jn[le] = jn[mt] = jn[pe] = jn[wt] = jn[fe] = jn[de] = jn[ge] = jn[ke] = jn[De] = jn[Te] = jn[ie] = jn[we] = jn[Ee] = jn[Ye] = !1; var Zr = {}; - Zr[ne] = Zr[le] = Zr[mt] = Zr[wt] = Zr[pe] = Zr[fe] = Zr[Mt] = Zr[Dt] = Zr[vt] = Zr[tt] = Zr[_e] = Zr[ke] = Zr[Me] = Zr[Ce] = Zr[ie] = Zr[we] = Zr[Ee] = Zr[De] = Zr[Ue] = Zr[Qe] = Zr[Ze] = Zr[nt] = !0, Zr[de] = Zr[ge] = Zr[Ye] = !1; + Zr[ne] = Zr[le] = Zr[mt] = Zr[wt] = Zr[pe] = Zr[fe] = Zr[Mt] = Zr[Dt] = Zr[vt] = Zr[tt] = Zr[_e] = Zr[ke] = Zr[De] = Zr[Te] = Zr[ie] = Zr[we] = Zr[Ee] = Zr[Me] = Zr[Ue] = Zr[Qe] = Zr[Ze] = Zr[nt] = !0, Zr[de] = Zr[ge] = Zr[Ye] = !1; var Zl = { // Latin-1 Supplement block. À: "A", @@ -42855,7 +42867,7 @@ function Sa() { var Pt = vo(A), Qt = Pt == ge || Pt == Oe; if (Jd(A)) return Mn(A, qe); - if (Pt == Ce || Pt == ne || Qt && !ve) { + if (Pt == Te || Pt == ne || Qt && !ve) { if (Le = $e || Qt ? {} : Qp(A), !qe) return $e ? Tf(A, Du(Le, A)) : sd(A, co(Le, A)); } else { @@ -43036,8 +43048,8 @@ function Sa() { } function Sr(A, D, U, ee, ve, Ae) { var Le = rn(A), qe = rn(D), $e = Le ? le : vo(A), Ot = qe ? le : vo(D); - $e = $e == ne ? Ce : $e, Ot = Ot == ne ? Ce : Ot; - var Tt = $e == Ce, Pt = Ot == Ce, Qt = $e == Ot; + $e = $e == ne ? Te : $e, Ot = Ot == ne ? Te : Ot; + var Tt = $e == Te, Pt = Ot == Te, Qt = $e == Ot; if (Qt && Jd(A)) { if (!Jd(D)) return !1; @@ -43309,7 +43321,7 @@ function Sa() { else Ot ? Gr = qr && (ee || Qt) : qe ? Gr = qr && Qt && (ee || !pr) : $e ? Gr = qr && Qt && !pr && (ee || !Tn) : pr || Tn ? Gr = !1 : Gr = ee ? Pt <= D : Pt < D; Gr ? ve = Tt + 1 : Ae = Tt; } - return Sn(Ae, Q); + return Sn(Ae, Z); } function Zt(A, D) { for (var U = -1, ee = A.length, ve = 0, Ae = []; ++U < ee; ) { @@ -43853,7 +43865,7 @@ function Sa() { return !(A.byteLength != D.byteLength || !Ae(new ac(A), new ac(D))); case pe: case fe: - case Me: + case De: return Al(+A, +D); case de: return A.name == D.name && A.message == D.message; @@ -43872,7 +43884,7 @@ function Sa() { ee |= g, Le.set(A, D); var Tt = qd(qe(A), qe(D), ee, ve, Ae, Le); return Le.delete(A), Tt; - case De: + case Me: if (bs) return bs.call(A) == bs.call(D); } @@ -43972,7 +43984,7 @@ function Sa() { return D; } : _t, vo = Qi; (Fa && vo(new Fa(new ArrayBuffer(1))) != wt || Ua && vo(new Ua()) != ke || cl && vo(cl.resolve()) != Y || Xs && vo(new Xs()) != we || uc && vo(new uc()) != Ye) && (vo = function(A) { - var D = Qi(A), U = D == Ce ? A.constructor : t, ee = U ? ro(U) : ""; + var D = Qi(A), U = D == Te ? A.constructor : t, ee = U ? ro(U) : ""; if (ee) switch (ee) { case hn: @@ -44051,14 +44063,14 @@ function Sa() { return ju(A, U); case ke: return new ee(); - case Me: + case De: case Ee: return new ee(A); case ie: return ts(A); case we: return new ee(); - case De: + case Me: return _l(A); } } @@ -44630,15 +44642,15 @@ function Sa() { var ee = rn(A) ? Ev : kc, ve = arguments.length < 3; return ee(A, br(D, 4), U, ve, nd); } - function gE(A, D) { + function pE(A, D) { var U = rn(A) ? ja : ws; return U(A, Cy(br(D, 3))); } - function yE(A) { + function gE(A) { var D = rn(A) ? Ca : ze; return D(A); } - function mE(A, D, U) { + function yE(A, D, U) { (U ? Io(A, D, U) : D === t) ? D = 1 : D = zr(D); var ee = rn(A) ? Qo : Ge; return ee(A, D); @@ -44763,7 +44775,7 @@ function Sa() { }), m0 = Pe(function(A, D, U) { return wf(A, Pl(D) || 0, U); }); - function bE(A) { + function mE(A) { return eo(A, P); } function cg(A, D) { @@ -44797,10 +44809,10 @@ function Sa() { return !A.apply(this, D); }; } - function _E(A) { + function bE(A) { return v0(2, A); } - var wE = Ji(function(A, D) { + var _E = Ji(function(A, D) { D = D.length == 1 && rn(D[0]) ? xi(D[0], xo(br())) : xi(Zi(D, 1), xo(br())); var U = D.length; return Pe(function(ee) { @@ -44846,7 +44858,7 @@ function Sa() { function fg(A, D) { return Vv(tn(D), A); } - function xE() { + function wE() { if (!arguments.length) return []; var A = arguments[0]; @@ -44864,7 +44876,7 @@ function Sa() { function w_(A, D) { return D = typeof D == "function" ? D : t, Qa(A, f | h, D); } - function EE(A, D) { + function xE(A, D) { return D == null || ku(A, D, jo(D)); } function Al(A, D) { @@ -44926,7 +44938,7 @@ function Sa() { if (!ca(A)) return !1; var D = Qi(A); - return D == ge || D == Oe || D == ce || D == Z; + return D == ge || D == Oe || D == ce || D == Q; } function hg(A) { return typeof A == "number" && A == zr(A); @@ -44959,14 +44971,14 @@ function Sa() { function as(A) { return A === null; } - function SE(A) { + function EE(A) { return A == null; } function T0(A) { - return typeof A == "number" || Pa(A) && Qi(A) == Me; + return typeof A == "number" || Pa(A) && Qi(A) == De; } function vg(A) { - if (!Pa(A) || Qi(A) != Ce) + if (!Pa(A) || Qi(A) != Te) return !1; var D = ys(A); if (D === null) @@ -44983,19 +44995,19 @@ function Sa() { return typeof A == "string" || !rn(A) && Pa(A) && Qi(A) == Ee; } function qu(A) { - return typeof A == "symbol" || Pa(A) && Qi(A) == De; + return typeof A == "symbol" || Pa(A) && Qi(A) == Me; } var eh = xt ? xo(xt) : ad; function A0(A) { return A === t; } - function OE(A) { + function SE(A) { return Pa(A) && vo(A) == Ye; } function A_(A) { return Pa(A) && Qi(A) == ot; } - var TE = Fu(si), R_ = Fu(function(A, D) { + var OE = Fu(si), R_ = Fu(function(A, D) { return A <= D; }); function P_(A) { @@ -45042,7 +45054,7 @@ function Sa() { function Dy(A) { return wa(A, Gu(A)); } - function CE(A) { + function TE(A) { return A ? Po(zr(A), -W, W) : A === 0 ? A : 0; } function li(A) { @@ -45059,7 +45071,7 @@ function Sa() { wa(D, Gu(D), A); }), Hv = Vc(function(A, D, U, ee) { wa(D, Gu(D), A, ee); - }), AE = Vc(function(A, D, U, ee) { + }), CE = Vc(function(A, D, U, ee) { wa(D, jo(D), A, ee); }), Ec = El(Uc); function P0(A, D) { @@ -45096,10 +45108,10 @@ function Sa() { function gd(A, D) { return A && Es(A, br(D, 3)); } - function RE(A) { + function AE(A) { return A == null ? [] : Zs(A, jo(A)); } - function PE(A) { + function RE(A) { return A == null ? [] : Zs(A, Gu(A)); } function th(A, D, U) { @@ -45112,18 +45124,18 @@ function Sa() { function M0(A, D) { return A != null && Dv(A, D, ho); } - var ME = jh(function(A, D, U) { + var PE = jh(function(A, D, U) { D != null && typeof D.toString != "function" && (D = Eo.call(D)), A[D] = U; - }, Qv(tu)), DE = jh(function(A, D, U) { + }, Qv(tu)), ME = jh(function(A, D, U) { D != null && typeof D.toString != "function" && (D = Eo.call(D)), Jr.call(A, D) ? A[D].push(U) : A[D] = [U]; - }, br), kE = Pe(Mo); + }, br), DE = Pe(Mo); function jo(A) { return zu(A) ? gl(A) : bl(A); } function Gu(A) { return zu(A) ? gl(A, !0) : Nh(A); } - function IE(A, D) { + function kE(A, D) { var U = {}; return D = br(D, 3), xs(A, function(ee, ve, Ae) { Ro(U, D(ee, ve, Ae), ee); @@ -45151,7 +45163,7 @@ function Sa() { vn(U, D[ve]); return U; }); - function NE(A, D) { + function IE(A, D) { return $v(A, Cy(br(D))); } var Xv = El(function(A, D) { @@ -45196,7 +45208,7 @@ function Sa() { function z_(A, D) { return A == null ? !0 : vn(A, D); } - function LE(A, D, U) { + function NE(A, D, U) { return A == null ? A : ua(A, D, tn(U)); } function q_(A, D, U, ee) { @@ -45208,7 +45220,7 @@ function Sa() { function k0(A) { return A == null ? [] : Nc(A, Gu(A)); } - function jE(A, D, U) { + function LE(A, D, U) { return U === t && (U = D, D = t), U !== t && (U = Pl(U), U = U === U ? U : 0), D !== t && (D = Pl(D), D = D === D ? D : 0), Po(Pl(A), D, U); } function jy(A, D, U) { @@ -45234,7 +45246,7 @@ function Sa() { function Zv(A) { return A = li(A), A && A.replace(di, $f).replace(sf, ""); } - function BE(A, D, U) { + function jE(A, D, U) { A = li(A), D = Or(D); var ee = A.length; U = U === t ? ee : Po(zr(U), 0, ee); @@ -45270,10 +45282,10 @@ function Sa() { var ee = D ? il(A) : 0; return D && ee < D ? Cf(D - ee, U) + A : A; } - function FE(A, D, U) { + function BE(A, D, U) { return U || D == null ? D = 0 : D && (D = +D), Co(li(A).replace(Fr, ""), D || 0); } - function UE(A, D, U) { + function FE(A, D, U) { return (U ? Io(A, D, U) : D === t) ? D = 1 : D = zr(D), ye(li(A), D); } function N0() { @@ -45395,7 +45407,7 @@ function print() { __p += __j.call(arguments, '') } } return $e + ee; } - function zE(A) { + function UE(A) { return A = li(A), A && Yt.test(A) ? A.replace(Rt, jc) : A; } var Z_ = ud(function(A, D, U) { @@ -45429,7 +45441,7 @@ function print() { __p += __j.call(arguments, '') } } }); } - function qE(A) { + function zE(A) { return rd(Qa(A, f)); } function Qv(A) { @@ -45453,7 +45465,7 @@ function print() { __p += __j.call(arguments, '') } function tw(A, D) { return Sf(A, Qa(D, f)); } - var GE = Pe(function(A, D) { + var qE = Pe(function(A, D) { return function(U) { return Mo(U, A, D); }; @@ -45549,7 +45561,7 @@ function print() { __p += __j.call(arguments, '') } function oh(A) { return A && A.length ? Ks(A, tu, si) : t; } - function VE(A, D) { + function GE(A, D) { return A && A.length ? Ks(A, br(D, 2), si) : t; } var qG = xl(function(A, D) { @@ -45563,7 +45575,7 @@ function print() { __p += __j.call(arguments, '') } function WG(A, D) { return A && A.length ? tc(A, br(D, 2)) : 0; } - return xe.after = y_, xe.ary = h0, xe.assign = M_, xe.assignIn = ky, xe.assignInWith = Hv, xe.assignWith = AE, xe.at = Ec, xe.before = v0, xe.bind = Ty, xe.bindAll = qy, xe.bindKey = p0, xe.castArray = xE, xe.chain = ag, xe.chunk = is, xe.compact = Wh, xe.concat = tg, xe.cond = J_, xe.conforms = qE, xe.constant = Qv, xe.countBy = s_, xe.create = P0, xe.curry = lg, xe.curryRight = g0, xe.debounce = y0, xe.defaults = D_, xe.defaultsDeep = k_, xe.defer = yi, xe.delay = m0, xe.difference = Bv, xe.differenceBy = Fv, xe.differenceWith = Tl, xe.drop = Ra, xe.dropRight = rg, xe.dropRightWhile = by, xe.dropWhile = qa, xe.fill = o0, xe.filter = c0, xe.flatMap = Uu, xe.flatMapDeep = l_, xe.flatMapDepth = c_, xe.flatten = gi, xe.flattenDeep = No, xe.flattenDepth = Wc, xe.flip = bE, xe.flow = ew, xe.flowRight = Jv, xe.fromPairs = _y, xe.functions = RE, xe.functionsIn = PE, xe.groupBy = Ey, xe.initial = s0, xe.intersection = Uv, xe.intersectionBy = Ps, xe.intersectionWith = R, xe.invert = ME, xe.invertBy = DE, xe.invokeMap = qv, xe.iteratee = xg, xe.keyBy = d_, xe.keys = jo, xe.keysIn = Gu, xe.map = sg, xe.mapKeys = IE, xe.mapValues = j_, xe.matches = Vy, xe.matchesProperty = tw, xe.memoize = cg, xe.merge = Wv, xe.mergeWith = Yv, xe.method = GE, xe.methodOf = Hy, xe.mixin = v, xe.negate = Cy, xe.nthArg = M, xe.omit = B_, xe.omitBy = NE, xe.once = _E, xe.orderBy = h_, xe.over = F, xe.overArgs = wE, xe.overEvery = V, xe.overSome = ae, xe.partial = Vv, xe.partialRight = Kh, xe.partition = v_, xe.pick = Xv, xe.pickBy = $v, xe.property = Se, xe.propertyOf = Fe, xe.pull = Re, xe.pullAll = je, xe.pullAllBy = He, xe.pullAllWith = et, xe.pullAt = yt, xe.range = it, xe.rangeRight = ht, xe.rearg = b0, xe.reject = gE, xe.remove = Et, xe.rest = Ay, xe.reverse = At, xe.sampleSize = mE, xe.set = Ny, xe.setWith = D0, xe.shuffle = p_, xe.slice = $t, xe.sortBy = Oy, xe.sortedUniq = Lr, xe.sortedUniqBy = jr, xe.split = zy, xe.spread = _0, xe.tail = qn, xe.take = vr, xe.takeRight = zt, xe.takeRightWhile = Hr, xe.takeWhile = fr, xe.tap = o_, xe.throttle = Qd, xe.thru = $h, xe.toArray = P_, xe.toPairs = Ly, xe.toPairsIn = bg, xe.toPath = Xe, xe.toPlainObject = Dy, xe.transform = U_, xe.unary = Af, xe.union = Mr, xe.unionBy = _r, xe.unionWith = ui, xe.uniq = po, xe.uniqBy = eu, xe.uniqWith = Yc, xe.unset = z_, xe.unzip = Ga, xe.unzipWith = qi, xe.update = LE, xe.updateWith = q_, xe.values = Kv, xe.valuesIn = k0, xe.without = Xc, xe.words = Q_, xe.wrap = fg, xe.xor = xc, xe.xorBy = Xh, xe.xorWith = Lo, xe.zip = $c, xe.zipObject = Xd, xe.zipObjectDeep = go, xe.zipWith = $d, xe.entries = Ly, xe.entriesIn = bg, xe.extend = ky, xe.extendWith = Hv, v(xe, xe), xe.add = rt, xe.attempt = F0, xe.camelCase = Fy, xe.capitalize = G_, xe.ceil = bt, xe.clamp = jE, xe.clone = m_, xe.cloneDeep = __, xe.cloneDeepWith = w_, xe.cloneWith = b_, xe.conformsTo = EE, xe.deburr = Zv, xe.defaultTo = Gy, xe.divide = wr, xe.endsWith = BE, xe.eq = Al, xe.escape = V_, xe.escapeRegExp = H_, xe.every = og, xe.find = Cl, xe.findIndex = ng, xe.findKey = I_, xe.findLast = u_, xe.findLastIndex = Yh, xe.findLastKey = mg, xe.floor = Zn, xe.forEach = f_, xe.forEachRight = vd, xe.forIn = Sc, xe.forInRight = N_, xe.forOwn = Iy, xe.forOwnRight = gd, xe.get = th, xe.gt = x_, xe.gte = E_, xe.has = L_, xe.hasIn = M0, xe.head = ig, xe.identity = tu, xe.includes = f0, xe.indexOf = wy, xe.inRange = jy, xe.invoke = kE, xe.isArguments = Zh, xe.isArray = rn, xe.isArrayBuffer = w0, xe.isArrayLike = zu, xe.isArrayLikeObject = Va, xe.isBoolean = dg, xe.isBuffer = Jd, xe.isDate = S_, xe.isElement = Cn, xe.isEmpty = x0, xe.isEqual = Ry, xe.isEqualWith = E0, xe.isError = Py, xe.isFinite = S0, xe.isFunction = Rl, xe.isInteger = hg, xe.isLength = My, xe.isMap = O_, xe.isMatch = T_, xe.isMatchWith = C_, xe.isNaN = Oi, xe.isNative = O0, xe.isNil = SE, xe.isNull = as, xe.isNumber = T0, xe.isObject = ca, xe.isObjectLike = Pa, xe.isPlainObject = vg, xe.isRegExp = pg, xe.isSafeInteger = C0, xe.isSet = gg, xe.isString = yg, xe.isSymbol = qu, xe.isTypedArray = eh, xe.isUndefined = A0, xe.isWeakMap = OE, xe.isWeakSet = A_, xe.join = N, xe.kebabCase = W_, xe.last = G, xe.lastIndexOf = te, xe.lowerCase = Y_, xe.lowerFirst = I0, xe.lt = TE, xe.lte = R_, xe.max = or, xe.maxBy = pn, xe.mean = kn, xe.meanBy = Qn, xe.min = oh, xe.minBy = VE, xe.stubArray = _t, xe.stubFalse = at, xe.stubObject = lt, xe.stubString = rr, xe.stubTrue = Dr, xe.multiply = qG, xe.nth = he, xe.noConflict = w, xe.noop = C, xe.now = ug, xe.pad = X_, xe.padEnd = $_, xe.padStart = Uy, xe.parseInt = FE, xe.random = By, xe.reduce = Sy, xe.reduceRight = d0, xe.repeat = UE, xe.replace = N0, xe.result = F_, xe.round = GG, xe.runInContext = We, xe.sample = yE, xe.size = g_, xe.snakeCase = L0, xe.some = Gv, xe.sortedIndex = tr, xe.sortedIndexBy = cr, xe.sortedIndexOf = St, xe.sortedLastIndex = Nt, xe.sortedLastIndexBy = lr, xe.sortedLastIndexOf = Gt, xe.startCase = j0, xe.startsWith = K_, xe.subtract = VG, xe.sum = HG, xe.sumBy = WG, xe.template = B0, xe.times = Ti, xe.toFinite = pd, xe.toInteger = zr, xe.toLength = R0, xe.toLower = rh, xe.toNumber = Pl, xe.toSafeInteger = CE, xe.toString = li, xe.toUpper = nh, xe.trim = ih, xe.trimEnd = _g, xe.trimStart = wg, xe.truncate = ah, xe.unescape = zE, xe.uniqueId = Ve, xe.upperCase = Z_, xe.upperFirst = Qh, xe.each = f_, xe.eachRight = vd, xe.first = ig, v(xe, (function() { + return xe.after = y_, xe.ary = h0, xe.assign = M_, xe.assignIn = ky, xe.assignInWith = Hv, xe.assignWith = CE, xe.at = Ec, xe.before = v0, xe.bind = Ty, xe.bindAll = qy, xe.bindKey = p0, xe.castArray = wE, xe.chain = ag, xe.chunk = is, xe.compact = Wh, xe.concat = tg, xe.cond = J_, xe.conforms = zE, xe.constant = Qv, xe.countBy = s_, xe.create = P0, xe.curry = lg, xe.curryRight = g0, xe.debounce = y0, xe.defaults = D_, xe.defaultsDeep = k_, xe.defer = yi, xe.delay = m0, xe.difference = Bv, xe.differenceBy = Fv, xe.differenceWith = Tl, xe.drop = Ra, xe.dropRight = rg, xe.dropRightWhile = by, xe.dropWhile = qa, xe.fill = o0, xe.filter = c0, xe.flatMap = Uu, xe.flatMapDeep = l_, xe.flatMapDepth = c_, xe.flatten = gi, xe.flattenDeep = No, xe.flattenDepth = Wc, xe.flip = mE, xe.flow = ew, xe.flowRight = Jv, xe.fromPairs = _y, xe.functions = AE, xe.functionsIn = RE, xe.groupBy = Ey, xe.initial = s0, xe.intersection = Uv, xe.intersectionBy = Ps, xe.intersectionWith = R, xe.invert = PE, xe.invertBy = ME, xe.invokeMap = qv, xe.iteratee = xg, xe.keyBy = d_, xe.keys = jo, xe.keysIn = Gu, xe.map = sg, xe.mapKeys = kE, xe.mapValues = j_, xe.matches = Vy, xe.matchesProperty = tw, xe.memoize = cg, xe.merge = Wv, xe.mergeWith = Yv, xe.method = qE, xe.methodOf = Hy, xe.mixin = v, xe.negate = Cy, xe.nthArg = M, xe.omit = B_, xe.omitBy = IE, xe.once = bE, xe.orderBy = h_, xe.over = F, xe.overArgs = _E, xe.overEvery = V, xe.overSome = ae, xe.partial = Vv, xe.partialRight = Kh, xe.partition = v_, xe.pick = Xv, xe.pickBy = $v, xe.property = Se, xe.propertyOf = Fe, xe.pull = Re, xe.pullAll = je, xe.pullAllBy = He, xe.pullAllWith = et, xe.pullAt = yt, xe.range = it, xe.rangeRight = ht, xe.rearg = b0, xe.reject = pE, xe.remove = Et, xe.rest = Ay, xe.reverse = At, xe.sampleSize = yE, xe.set = Ny, xe.setWith = D0, xe.shuffle = p_, xe.slice = $t, xe.sortBy = Oy, xe.sortedUniq = Lr, xe.sortedUniqBy = jr, xe.split = zy, xe.spread = _0, xe.tail = qn, xe.take = vr, xe.takeRight = zt, xe.takeRightWhile = Hr, xe.takeWhile = fr, xe.tap = o_, xe.throttle = Qd, xe.thru = $h, xe.toArray = P_, xe.toPairs = Ly, xe.toPairsIn = bg, xe.toPath = Xe, xe.toPlainObject = Dy, xe.transform = U_, xe.unary = Af, xe.union = Mr, xe.unionBy = _r, xe.unionWith = ui, xe.uniq = po, xe.uniqBy = eu, xe.uniqWith = Yc, xe.unset = z_, xe.unzip = Ga, xe.unzipWith = qi, xe.update = NE, xe.updateWith = q_, xe.values = Kv, xe.valuesIn = k0, xe.without = Xc, xe.words = Q_, xe.wrap = fg, xe.xor = xc, xe.xorBy = Xh, xe.xorWith = Lo, xe.zip = $c, xe.zipObject = Xd, xe.zipObjectDeep = go, xe.zipWith = $d, xe.entries = Ly, xe.entriesIn = bg, xe.extend = ky, xe.extendWith = Hv, v(xe, xe), xe.add = rt, xe.attempt = F0, xe.camelCase = Fy, xe.capitalize = G_, xe.ceil = bt, xe.clamp = LE, xe.clone = m_, xe.cloneDeep = __, xe.cloneDeepWith = w_, xe.cloneWith = b_, xe.conformsTo = xE, xe.deburr = Zv, xe.defaultTo = Gy, xe.divide = wr, xe.endsWith = jE, xe.eq = Al, xe.escape = V_, xe.escapeRegExp = H_, xe.every = og, xe.find = Cl, xe.findIndex = ng, xe.findKey = I_, xe.findLast = u_, xe.findLastIndex = Yh, xe.findLastKey = mg, xe.floor = Zn, xe.forEach = f_, xe.forEachRight = vd, xe.forIn = Sc, xe.forInRight = N_, xe.forOwn = Iy, xe.forOwnRight = gd, xe.get = th, xe.gt = x_, xe.gte = E_, xe.has = L_, xe.hasIn = M0, xe.head = ig, xe.identity = tu, xe.includes = f0, xe.indexOf = wy, xe.inRange = jy, xe.invoke = DE, xe.isArguments = Zh, xe.isArray = rn, xe.isArrayBuffer = w0, xe.isArrayLike = zu, xe.isArrayLikeObject = Va, xe.isBoolean = dg, xe.isBuffer = Jd, xe.isDate = S_, xe.isElement = Cn, xe.isEmpty = x0, xe.isEqual = Ry, xe.isEqualWith = E0, xe.isError = Py, xe.isFinite = S0, xe.isFunction = Rl, xe.isInteger = hg, xe.isLength = My, xe.isMap = O_, xe.isMatch = T_, xe.isMatchWith = C_, xe.isNaN = Oi, xe.isNative = O0, xe.isNil = EE, xe.isNull = as, xe.isNumber = T0, xe.isObject = ca, xe.isObjectLike = Pa, xe.isPlainObject = vg, xe.isRegExp = pg, xe.isSafeInteger = C0, xe.isSet = gg, xe.isString = yg, xe.isSymbol = qu, xe.isTypedArray = eh, xe.isUndefined = A0, xe.isWeakMap = SE, xe.isWeakSet = A_, xe.join = N, xe.kebabCase = W_, xe.last = G, xe.lastIndexOf = te, xe.lowerCase = Y_, xe.lowerFirst = I0, xe.lt = OE, xe.lte = R_, xe.max = or, xe.maxBy = pn, xe.mean = kn, xe.meanBy = Qn, xe.min = oh, xe.minBy = GE, xe.stubArray = _t, xe.stubFalse = at, xe.stubObject = lt, xe.stubString = rr, xe.stubTrue = Dr, xe.multiply = qG, xe.nth = he, xe.noConflict = w, xe.noop = C, xe.now = ug, xe.pad = X_, xe.padEnd = $_, xe.padStart = Uy, xe.parseInt = BE, xe.random = By, xe.reduce = Sy, xe.reduceRight = d0, xe.repeat = FE, xe.replace = N0, xe.result = F_, xe.round = GG, xe.runInContext = We, xe.sample = gE, xe.size = g_, xe.snakeCase = L0, xe.some = Gv, xe.sortedIndex = tr, xe.sortedIndexBy = cr, xe.sortedIndexOf = St, xe.sortedLastIndex = Nt, xe.sortedLastIndexBy = lr, xe.sortedLastIndexOf = Gt, xe.startCase = j0, xe.startsWith = K_, xe.subtract = VG, xe.sum = HG, xe.sumBy = WG, xe.template = B0, xe.times = Ti, xe.toFinite = pd, xe.toInteger = zr, xe.toLength = R0, xe.toLower = rh, xe.toNumber = Pl, xe.toSafeInteger = TE, xe.toString = li, xe.toUpper = nh, xe.trim = ih, xe.trimEnd = _g, xe.trimStart = wg, xe.truncate = ah, xe.unescape = UE, xe.uniqueId = Ve, xe.upperCase = Z_, xe.upperFirst = Qh, xe.each = f_, xe.eachRight = vd, xe.first = ig, v(xe, (function() { var A = {}; return xs(xe, function(D, U) { Jr.call(xe.prototype, U) || (A[U] = D); @@ -45660,13 +45672,13 @@ function print() { __p += __j.call(arguments, '') } }], Yr.prototype.clone = Tu, Yr.prototype.reverse = _s, Yr.prototype.value = Cu, xe.prototype.at = xy, xe.prototype.chain = Kd, xe.prototype.commit = yo, xe.prototype.next = Zd, xe.prototype.plant = hd, xe.prototype.reverse = u0, xe.prototype.toJSON = xe.prototype.valueOf = xe.prototype.value = l0, xe.prototype.first = xe.prototype.head, Yi && (xe.prototype[Yi] = zv), xe; }), ic = Hs(); aa ? ((aa.exports = ic)._ = ic, Jl._ = ic) : wi._ = ic; - }).call(gie); + }).call(yie); })(mb, mb.exports)), mb.exports; } -var FR, I6; -function yie() { - if (I6) return FR; - I6 = 1, FR = r; +var BR, I6; +function mie() { + if (I6) return BR; + I6 = 1, BR = r; function r() { var n = {}; n._next = n._prev = n, this._sentinel = n; @@ -45690,14 +45702,14 @@ function yie() { if (n !== "_next" && n !== "_prev") return i; } - return FR; + return BR; } -var UR, N6; -function mie() { - if (N6) return UR; +var FR, N6; +function bie() { + if (N6) return FR; N6 = 1; - var r = Sa(), e = Uf().Graph, t = yie(); - UR = i; + var r = Sa(), e = Uf().Graph, t = mie(); + FR = i; var n = r.constant(1); function i(l, c) { if (l.nodeCount() <= 1) @@ -45751,14 +45763,14 @@ function mie() { function u(l, c, f) { f.out ? f.in ? l[f.out - f.in + c].enqueue(f) : l[l.length - 1].enqueue(f) : l[0].enqueue(f); } - return UR; + return FR; } -var zR, L6; -function bie() { - if (L6) return zR; +var UR, L6; +function _ie() { + if (L6) return UR; L6 = 1; - var r = Sa(), e = mie(); - zR = { + var r = Sa(), e = bie(); + UR = { run: t, undo: i }; @@ -45793,14 +45805,14 @@ function bie() { } }); } - return zR; + return UR; } -var qR, j6; +var zR, j6; function Rc() { - if (j6) return qR; + if (j6) return zR; j6 = 1; var r = Sa(), e = Uf().Graph; - qR = { + zR = { addDummyNode: t, simplify: n, asNonCompoundGraph: i, @@ -45932,14 +45944,14 @@ function Rc() { function g(y, b) { return b(); } - return qR; + return zR; } -var GR, B6; -function _ie() { - if (B6) return GR; +var qR, B6; +function wie() { + if (B6) return qR; B6 = 1; var r = Sa(), e = Rc(); - GR = { + qR = { run: t, undo: i }; @@ -45971,14 +45983,14 @@ function _ie() { l = a.successors(o)[0], a.removeNode(o), u.points.push({ x: s.x, y: s.y }), s.dummy === "edge-label" && (u.x = s.x, u.y = s.y, u.width = s.width, u.height = s.height), o = l, s = a.node(o); }); } - return GR; + return qR; } -var VR, F6; +var GR, F6; function Gx() { - if (F6) return VR; + if (F6) return GR; F6 = 1; var r = Sa(); - VR = { + GR = { longestPath: e, slack: t }; @@ -46001,14 +46013,14 @@ function Gx() { function t(n, i) { return n.node(i.w).rank - n.node(i.v).rank - n.edge(i).minlen; } - return VR; + return GR; } -var HR, U6; +var VR, U6; function hz() { - if (U6) return HR; + if (U6) return VR; U6 = 1; var r = Sa(), e = Uf().Graph, t = Gx().slack; - HR = n; + VR = n; function n(s) { var u = new e({ directed: !1 }), l = s.nodes()[0], c = s.nodeCount(); u.setNode(l, {}); @@ -46036,14 +46048,14 @@ function hz() { u.node(c).rank += l; }); } - return HR; + return VR; } -var WR, z6; -function wie() { - if (z6) return WR; +var HR, z6; +function xie() { + if (z6) return HR; z6 = 1; var r = Sa(), e = hz(), t = Gx().slack, n = Gx().longestPath, i = Uf().alg.preorder, a = Uf().alg.postorder, o = Rc().simplify; - WR = s, s.initLowLimValues = f, s.initCutValues = u, s.calcCutValue = c, s.leaveEdge = h, s.enterEdge = p, s.exchangeEdges = g; + HR = s, s.initLowLimValues = f, s.initCutValues = u, s.calcCutValue = c, s.leaveEdge = h, s.enterEdge = p, s.exchangeEdges = g; function s(m) { m = o(m), n(m); var x = e(m); @@ -46119,14 +46131,14 @@ function wie() { function _(m, x, S) { return S.low <= x.lim && x.lim <= S.lim; } - return WR; + return HR; } -var YR, q6; -function xie() { - if (q6) return YR; +var WR, q6; +function Eie() { + if (q6) return WR; q6 = 1; - var r = Gx(), e = r.longestPath, t = hz(), n = wie(); - YR = i; + var r = Gx(), e = r.longestPath, t = hz(), n = xie(); + WR = i; function i(u) { switch (u.graph().ranker) { case "network-simplex": @@ -46149,14 +46161,14 @@ function xie() { function s(u) { n(u); } - return YR; + return WR; } -var XR, G6; -function Eie() { - if (G6) return XR; +var YR, G6; +function Sie() { + if (G6) return YR; G6 = 1; var r = Sa(); - XR = e; + YR = e; function e(i) { var a = n(i); r.forEach(i.graph().dummyChains, function(o) { @@ -46193,14 +46205,14 @@ function Eie() { } return r.forEach(i.children(), s), a; } - return XR; + return YR; } -var $R, V6; -function Sie() { - if (V6) return $R; +var XR, V6; +function Oie() { + if (V6) return XR; V6 = 1; var r = Sa(), e = Rc(); - $R = { + XR = { run: t, cleanup: o }; @@ -46259,14 +46271,14 @@ function Sie() { c.nestingEdge && s.removeEdge(l); }); } - return $R; + return XR; } -var KR, H6; -function Oie() { - if (H6) return KR; +var $R, H6; +function Tie() { + if (H6) return $R; H6 = 1; var r = Sa(), e = Rc(); - KR = t; + $R = t; function t(i) { function a(o) { var s = i.children(o), u = i.node(o); @@ -46282,14 +46294,14 @@ function Oie() { var c = { width: 0, height: 0, rank: l, borderType: a }, f = u[a][l - 1], d = e.addDummyNode(i, "border", c, o); u[a][l] = d, i.setParent(d, s), f && i.setEdge(f, d, { weight: 1 }); } - return KR; + return $R; } -var ZR, W6; -function Tie() { - if (W6) return ZR; +var KR, W6; +function Cie() { + if (W6) return KR; W6 = 1; var r = Sa(); - ZR = { + KR = { adjust: e, undo: t }; @@ -46335,14 +46347,14 @@ function Tie() { var c = l.x; l.x = l.y, l.y = c; } - return ZR; + return KR; } -var QR, Y6; -function Cie() { - if (Y6) return QR; +var ZR, Y6; +function Aie() { + if (Y6) return ZR; Y6 = 1; var r = Sa(); - QR = e; + ZR = e; function e(t) { var n = {}, i = r.filter(t.nodes(), function(l) { return !t.children(l).length; @@ -46363,14 +46375,14 @@ function Cie() { }); return r.forEach(u, s), o; } - return QR; + return ZR; } -var JR, X6; -function Aie() { - if (X6) return JR; +var QR, X6; +function Rie() { + if (X6) return QR; X6 = 1; var r = Sa(); - JR = e; + QR = e; function e(n, i) { for (var a = 0, o = 1; o < i.length; ++o) a += t(n, i[o - 1], i[o]); @@ -46400,14 +46412,14 @@ function Aie() { f += d.weight * p; })), f; } - return JR; + return QR; } -var eP, $6; -function Rie() { - if ($6) return eP; +var JR, $6; +function Pie() { + if ($6) return JR; $6 = 1; var r = Sa(); - eP = e; + JR = e; function e(t, n) { return r.map(n, function(i) { var a = t.inEdges(i); @@ -46428,14 +46440,14 @@ function Rie() { return { v: i }; }); } - return eP; + return JR; } -var tP, K6; -function Pie() { - if (K6) return tP; +var eP, K6; +function Mie() { + if (K6) return eP; K6 = 1; var r = Sa(); - tP = e; + eP = e; function e(i, a) { var o = {}; r.forEach(i, function(u, l) { @@ -46485,14 +46497,14 @@ function Pie() { var o = 0, s = 0; i.weight && (o += i.barycenter * i.weight, s += i.weight), a.weight && (o += a.barycenter * a.weight, s += a.weight), i.vs = a.vs.concat(i.vs), i.barycenter = o / s, i.weight = s, i.i = Math.min(a.i, i.i), a.merged = !0; } - return tP; + return eP; } -var rP, Z6; -function Mie() { - if (Z6) return rP; +var tP, Z6; +function Die() { + if (Z6) return tP; Z6 = 1; var r = Sa(), e = Rc(); - rP = t; + tP = t; function t(a, o) { var s = e.partition(a, function(g) { return r.has(g, "barycenter"); @@ -46515,14 +46527,14 @@ function Mie() { return o.barycenter < s.barycenter ? -1 : o.barycenter > s.barycenter ? 1 : a ? s.i - o.i : o.i - s.i; }; } - return rP; + return tP; } -var nP, Q6; -function Die() { - if (Q6) return nP; +var rP, Q6; +function kie() { + if (Q6) return rP; Q6 = 1; - var r = Sa(), e = Rie(), t = Pie(), n = Mie(); - nP = i; + var r = Sa(), e = Pie(), t = Mie(), n = Die(); + rP = i; function i(s, u, l, c) { var f = s.children(u), d = s.node(u), h = d ? d.borderLeft : void 0, p = d ? d.borderRight : void 0, g = {}; h && (f = r.filter(f, function(S) { @@ -46554,14 +46566,14 @@ function Die() { function o(s, u) { r.isUndefined(s.barycenter) ? (s.barycenter = u.barycenter, s.weight = u.weight) : (s.barycenter = (s.barycenter * s.weight + u.barycenter * u.weight) / (s.weight + u.weight), s.weight += u.weight); } - return nP; + return rP; } -var iP, J6; -function kie() { - if (J6) return iP; +var nP, J6; +function Iie() { + if (J6) return nP; J6 = 1; var r = Sa(), e = Uf().Graph; - iP = t; + nP = t; function t(i, a, o) { var s = n(i), u = new e({ compound: !0 }).setGraph({ root: s }).setDefaultNodeLabel(function(l) { return i.node(l); @@ -46581,14 +46593,14 @@ function kie() { for (var a; i.hasNode(a = r.uniqueId("_root")); ) ; return a; } - return iP; + return nP; } -var aP, e8; -function Iie() { - if (e8) return aP; +var iP, e8; +function Nie() { + if (e8) return iP; e8 = 1; var r = Sa(); - aP = e; + iP = e; function e(t, n, i) { var a = {}, o; r.forEach(i, function(s) { @@ -46601,14 +46613,14 @@ function Iie() { } }); } - return aP; + return iP; } -var oP, t8; -function Nie() { - if (t8) return oP; +var aP, t8; +function Lie() { + if (t8) return aP; t8 = 1; - var r = Sa(), e = Cie(), t = Aie(), n = Die(), i = kie(), a = Iie(), o = Uf().Graph, s = Rc(); - oP = u; + var r = Sa(), e = Aie(), t = Rie(), n = kie(), i = Iie(), a = Nie(), o = Uf().Graph, s = Rc(); + aP = u; function u(d) { var h = s.maxRank(d), p = l(d, r.range(1, h + 1), "inEdges"), g = l(d, r.range(h - 1, -1, -1), "outEdges"), y = e(d); f(d, y); @@ -46640,14 +46652,14 @@ function Nie() { }); }); } - return oP; + return aP; } -var sP, r8; -function Lie() { - if (r8) return sP; +var oP, r8; +function jie() { + if (r8) return oP; r8 = 1; var r = Sa(), e = Uf().Graph, t = Rc(); - sP = { + oP = { positionX: p, findType1Conflicts: n, findType2Conflicts: i, @@ -46861,14 +46873,14 @@ function Lie() { function y(b, _) { return b.node(_).width; } - return sP; + return oP; } -var uP, n8; -function jie() { - if (n8) return uP; +var sP, n8; +function Bie() { + if (n8) return sP; n8 = 1; - var r = Sa(), e = Rc(), t = Lie().positionX; - uP = n; + var r = Sa(), e = Rc(), t = jie().positionX; + sP = n; function n(a) { a = e.asNonCompoundGraph(a), i(a), r.forEach(t(a), function(o, s) { a.node(s).x = o; @@ -46885,14 +46897,14 @@ function jie() { }), u += c + s; }); } - return uP; + return sP; } -var lP, i8; -function Bie() { - if (i8) return lP; +var uP, i8; +function Fie() { + if (i8) return uP; i8 = 1; - var r = Sa(), e = bie(), t = _ie(), n = xie(), i = Rc().normalizeRanks, a = Eie(), o = Rc().removeEmptyRanks, s = Sie(), u = Oie(), l = Tie(), c = Nie(), f = jie(), d = Rc(), h = Uf().Graph; - lP = p; + var r = Sa(), e = _ie(), t = wie(), n = Eie(), i = Rc().normalizeRanks, a = Sie(), o = Rc().removeEmptyRanks, s = Oie(), u = Tie(), l = Cie(), c = Lie(), f = Bie(), d = Rc(), h = Uf().Graph; + uP = p; function p(re, ne) { var le = ne && ne.debugTiming ? d.time : d.notime, ce = le("layout", function() { return ce = le(" buildLayoutGraph", function() { @@ -46984,17 +46996,17 @@ function Bie() { return ne.setGraph(r.merge( {}, _, - Q(le, b), + Z(le, b), r.pick(le, m) )), r.forEach(re.nodes(), function(ce) { var pe = ue(re.node(ce)); - ne.setNode(ce, r.defaults(Q(pe, x), S)), ne.setParent(ce, re.parent(ce)); + ne.setNode(ce, r.defaults(Z(pe, x), S)), ne.setParent(ce, re.parent(ce)); }), r.forEach(re.edges(), function(ce) { var pe = ue(re.edge(ce)); ne.setEdge(ce, r.merge( {}, E, - Q(pe, O), + Z(pe, O), r.pick(pe, T) )); }), ne; @@ -47031,8 +47043,8 @@ function Bie() { function j(re) { var ne = Number.POSITIVE_INFINITY, le = 0, ce = Number.POSITIVE_INFINITY, pe = 0, fe = re.graph(), se = fe.marginx || 0, de = fe.marginy || 0; function ge(Oe) { - var ke = Oe.x, Me = Oe.y, Ne = Oe.width, Ce = Oe.height; - ne = Math.min(ne, ke - Ne / 2), le = Math.max(le, ke + Ne / 2), ce = Math.min(ce, Me - Ce / 2), pe = Math.max(pe, Me + Ce / 2); + var ke = Oe.x, De = Oe.y, Ne = Oe.width, Te = Oe.height; + ne = Math.min(ne, ke - Ne / 2), le = Math.max(le, ke + Ne / 2), ce = Math.min(ce, De - Te / 2), pe = Math.max(pe, De + Te / 2); } r.forEach(re.nodes(), function(Oe) { ge(re.node(Oe)); @@ -47044,8 +47056,8 @@ function Bie() { ke.x -= ne, ke.y -= ce; }), r.forEach(re.edges(), function(Oe) { var ke = re.edge(Oe); - r.forEach(ke.points, function(Me) { - Me.x -= ne, Me.y -= ce; + r.forEach(ke.points, function(De) { + De.x -= ne, De.y -= ce; }), r.has(ke, "x") && (ke.x -= ne), r.has(ke, "y") && (ke.y -= ce); }), fe.width = le - ne + se, fe.height = pe - ce + de; } @@ -47127,7 +47139,7 @@ function Bie() { } }); } - function Q(re, ne) { + function Z(re, ne) { return r.mapValues(r.pick(re, ne), Number); } function ue(re) { @@ -47136,14 +47148,14 @@ function Bie() { ne[ce.toLowerCase()] = le; }), ne; } - return lP; + return uP; } -var cP, a8; -function Fie() { - if (a8) return cP; +var lP, a8; +function Uie() { + if (a8) return lP; a8 = 1; var r = Sa(), e = Rc(), t = Uf().Graph; - cP = { + lP = { debugOrdering: n }; function n(i) { @@ -47159,30 +47171,30 @@ function Fie() { }); }), o; } - return cP; -} -var fP, o8; -function Uie() { - return o8 || (o8 = 1, fP = "0.8.14"), fP; + return lP; } -var dP, s8; +var cP, o8; function zie() { - return s8 || (s8 = 1, dP = { + return o8 || (o8 = 1, cP = "0.8.14"), cP; +} +var fP, s8; +function qie() { + return s8 || (s8 = 1, fP = { graphlib: Uf(), - layout: Bie(), - debug: Fie(), + layout: Fie(), + debug: Uie(), util: { time: Rc().time, notime: Rc().notime }, - version: Uie() - }), dP; -} -var qie = zie(); -const vz = /* @__PURE__ */ Bp(qie); -var hP, u8; -function Gie() { - if (u8) return hP; + version: zie() + }), fP; +} +var Gie = qie(); +const vz = /* @__PURE__ */ Bp(Gie); +var dP, u8; +function Vie() { + if (u8) return dP; u8 = 1; var r = function() { }; @@ -47228,14 +47240,14 @@ function Gie() { var n; return (n = this.findNode(this.root, e, t)) ? this.splitNode(n, e, t) : null; } - }, hP = r, hP; + }, dP = r, dP; } -var vP, l8; -function Vie() { - if (l8) return vP; +var hP, l8; +function Hie() { + if (l8) return hP; l8 = 1; - var r = Gie(); - return vP = function(e, t) { + var r = Vie(); + return hP = function(e, t) { t = t || {}; var n = new r(), i = t.inPlace || !1, a = e.map(function(l) { return i ? l : { width: l.width, height: l.height, item: l }; @@ -47252,17 +47264,17 @@ function Vie() { height: s }; return i || (u.items = a), u; - }, vP; + }, hP; } -var Hie = Vie(); -const Wie = /* @__PURE__ */ Bp(Hie); -var Yie = Uf(); -const Xie = /* @__PURE__ */ Bp(Yie), $ie = "tight-tree", rv = 100, pz = "up", PD = "down", Kie = "left", gz = "right", Zie = { +var Wie = Hie(); +const Yie = /* @__PURE__ */ Bp(Wie); +var Xie = Uf(); +const $ie = /* @__PURE__ */ Bp(Xie), Kie = "tight-tree", rv = 100, pz = "up", PD = "down", Zie = "left", gz = "right", Qie = { [pz]: "BT", [PD]: "TB", - [Kie]: "RL", + [Zie]: "RL", [gz]: "LR" -}, Qie = "bin", Jie = 25, eae = 1 / 0.38, tae = (r) => r === pz || r === PD, rae = (r) => r === PD || r === gz, pP = (r) => { +}, Jie = "bin", eae = 25, tae = 1 / 0.38, rae = (r) => r === pz || r === PD, nae = (r) => r === PD || r === gz, vP = (r) => { let e = null, t = null, n = null, i = null, a = null, o = null, s = null, u = null; for (const l of r.nodes()) { const c = r.node(l); @@ -47299,11 +47311,11 @@ const Xie = /* @__PURE__ */ Bp(Yie), $ie = "tight-tree", rv = 100, pz = "up", PD } else (i === null && a === null || s > i) && (i = s, a = o); } return a; -}, nae = (r, e) => { +}, iae = (r, e) => { let t = c8(r, e.predecessors(r), e); return t === null && (t = c8(r, e.successors(r), e)), t; -}, iae = (r, e) => { - const t = [], n = Xie.alg.components(r); +}, aae = (r, e) => { + const t = [], n = $ie.alg.components(r); if (n.length > 1) for (const i of n) { const a = yz(e); @@ -47321,27 +47333,27 @@ const Xie = /* @__PURE__ */ Bp(Yie), $ie = "tight-tree", rv = 100, pz = "up", PD t.push(r); return t; }, f8 = (r, e, t) => { - r.graph().ranker = $ie, r.graph().rankdir = Zie[e]; + r.graph().ranker = Kie, r.graph().rankdir = Qie[e]; const n = vz.layout(r); for (const i of n.nodes()) { - const a = nae(i, n); + const a = iae(i, n); a !== null && (t[i] = a); } -}, gP = (r, e) => Math.sqrt((r.x - e.x) * (r.x - e.x) + (r.y - e.y) * (r.y - e.y)), aae = (r) => { +}, pP = (r, e) => Math.sqrt((r.x - e.x) * (r.x - e.x) + (r.y - e.y) * (r.y - e.y)), oae = (r) => { const e = [r[0]]; - let t = { p1: r[0], p2: r[1] }, n = gP(t.p1, t.p2); + let t = { p1: r[0], p2: r[1] }, n = pP(t.p1, t.p2); for (let i = 2; i < r.length; i++) { - let a = { p1: r[i - 1], p2: r[i] }, o = gP(a.p1, a.p2); - const s = { p1: t.p1, p2: a.p2 }, u = gP(s.p1, s.p2); + let a = { p1: r[i - 1], p2: r[i] }, o = pP(a.p1, a.p2); + const s = { p1: t.p1, p2: a.p2 }, u = pP(s.p1, s.p2); o + n - u < 0.1 && (e.pop(), a = s, o = u), e.push(a.p1), t = a, n = o; } return e.push(r[r.length - 1]), e; -}, oae = (r, e, t, n, i, a, o = 1) => { +}, sae = (r, e, t, n, i, a, o = 1) => { const s = yz(o), u = {}, l = { x: 0, y: 0 }, c = r.length; for (const m of r) { const x = t[m.id]; l.x += (x == null ? void 0 : x.x) || 0, l.y += (x == null ? void 0 : x.y) || 0; - const S = (m.size || Jie) * eae * o; + const S = (m.size || eae) * tae * o; s.setNode(m.id, { width: S, height: S }); } const f = c ? [l.x / c, l.y / c] : [0, 0], d = {}; @@ -47350,11 +47362,11 @@ const Xie = /* @__PURE__ */ Bp(Yie), $ie = "tight-tree", rv = 100, pz = "up", PD const x = m.from < m.to ? `${m.from}-${m.to}` : `${m.to}-${m.from}`; d[x] || (d[x] = 1, s.setEdge(m.from, m.to)); } - const h = iae(s, o); + const h = aae(s, o); if (h.length > 1) { h.forEach((E) => f8(E, i, u)); - const m = tae(i), x = rae(i), S = h.filter((E) => E.nodeCount() === 1), O = h.filter((E) => E.nodeCount() !== 1); - if (a === Qie) { + const m = rae(i), x = nae(i), S = h.filter((E) => E.nodeCount() === 1), O = h.filter((E) => E.nodeCount() !== 1); + if (a === Jie) { O.sort((q, W) => W.nodeCount() - q.nodeCount()); const P = m ? ({ width: q, height: W, ...$ }) => ({ ...$, @@ -47364,11 +47376,11 @@ const Xie = /* @__PURE__ */ Bp(Yie), $ie = "tight-tree", rv = 100, pz = "up", PD ...$, width: W + rv, height: q + rv - }), I = O.map(pP).map(P), k = S.map(pP).map(P), L = I.concat(k); - Wie(L, { inPlace: !0 }); + }), I = O.map(vP).map(P), k = S.map(vP).map(P), L = I.concat(k); + Yie(L, { inPlace: !0 }); const B = Math.floor(rv / 2), j = m ? "x" : "y", z = m ? "y" : "x"; if (!x) { - const q = m ? "y" : "x", W = m ? "height" : "width", $ = L.reduce((X, Q) => X === null ? Q[q] : Math.min(Q[q], X[W] || 0), null), J = L.reduce((X, Q) => X === null ? Q[q] + Q[W] : Math.max(Q[q] + Q[W], X[W] || 0), null); + const q = m ? "y" : "x", W = m ? "height" : "width", $ = L.reduce((X, Z) => X === null ? Z[q] : Math.min(Z[q], X[W] || 0), null), J = L.reduce((X, Z) => X === null ? Z[q] + Z[W] : Math.max(Z[q] + Z[W], X[W] || 0), null); L.forEach((X) => { X[q] = $ + (J - (X[q] + X[W])); }); @@ -47389,17 +47401,17 @@ const Xie = /* @__PURE__ */ Bp(Yie), $ie = "tight-tree", rv = 100, pz = "up", PD } } else { O.sort(x ? (W, $) => $.nodeCount() - W.nodeCount() : (W, $) => W.nodeCount() - $.nodeCount()); - const E = O.map(pP), T = S.reduce((W, $) => W + s.node($.nodes()[0]).width, 0), P = S.reduce((W, $) => Math.max(W, s.node($.nodes()[0]).width), 0), I = S.length > 0 ? T + (S.length - 1) * rv : 0, k = E.reduce((W, { width: $ }) => Math.max(W, $), 0), L = Math.max(k, I), B = E.reduce((W, { height: $ }) => Math.max(W, $), 0), j = Math.max(B, I); + const E = O.map(vP), T = S.reduce((W, $) => W + s.node($.nodes()[0]).width, 0), P = S.reduce((W, $) => Math.max(W, s.node($.nodes()[0]).width), 0), I = S.length > 0 ? T + (S.length - 1) * rv : 0, k = E.reduce((W, { width: $ }) => Math.max(W, $), 0), L = Math.max(k, I), B = E.reduce((W, { height: $ }) => Math.max(W, $), 0), j = Math.max(B, I); let z = 0; const H = () => { for (let W = 0; W < O.length; W++) { const $ = O[W], J = E[W], X = Math.floor(m ? (L - J.width) / 2 : (j - J.height) / 2); - for (const Q of $.nodes()) { - const ue = $.node(Q), re = s.node(Q); + for (const Z of $.nodes()) { + const ue = $.node(Z), re = s.node(Z); m ? (re.x = ue.x - J.minX + X, re.y = ue.y - J.minY + z) : (re.x = ue.x - J.minX + z, re.y = ue.y - J.minY + X); } - for (const Q of $.edges()) { - const ue = $.edge(Q), re = s.edge(Q); + for (const Z of $.edges()) { + const ue = $.edge(Z), re = s.edge(Z); ue.points && ue.points.length > 3 && (re.points = ue.points.map(({ x: ne, y: le }) => ({ x: ne - J.minX + (m ? X : z), y: le - J.minY + (m ? z : X) @@ -47412,8 +47424,8 @@ const Xie = /* @__PURE__ */ Bp(Yie), $ie = "tight-tree", rv = 100, pz = "up", PD z += Math.floor(P / 2); let $ = W; for (const J of S) { - const X = J.nodes()[0], Q = s.node(X); - m ? (Q.x = $ + Math.floor(Q.width / 2), Q.y = z) : (Q.x = z, Q.y = $ + Math.floor(Q.width / 2)), $ += rv + Q.width; + const X = J.nodes()[0], Z = s.node(X); + m ? (Z.x = $ + Math.floor(Z.width / 2), Z.y = z) : (Z.x = z, Z.y = $ + Math.floor(Z.width / 2)), $ += rv + Z.width; } z = P + rv; }; @@ -47434,7 +47446,7 @@ const Xie = /* @__PURE__ */ Bp(Yie), $ie = "tight-tree", rv = 100, pz = "up", PD for (const m of s.edges()) { const x = s.edge(m); if (x.points && x.points.length > 3) { - const S = aae(x.points); + const S = oae(x.points); for (const O of S) O.x += y, O.y += b; _[`${m.v}-${m.w}`] = { @@ -47466,11 +47478,11 @@ const Xie = /* @__PURE__ */ Bp(Yie), $ie = "tight-tree", rv = 100, pz = "up", PD waypoints: _ }; }; -class sae { +class uae { start() { } postMessage(e) { - const { nodes: t, nodeIds: n, idToPosition: i, rels: a, direction: o, packing: s, pixelRatio: u, forcedDelay: l = 0 } = e, c = oae(t, n, i, a, o, s, u); + const { nodes: t, nodeIds: n, idToPosition: i, rels: a, direction: o, packing: s, pixelRatio: u, forcedDelay: l = 0 } = e, c = sae(t, n, i, a, o, s, u); l ? setTimeout(() => { this.onmessage({ data: c }); }, l) : this.onmessage({ data: c }); @@ -47480,24 +47492,24 @@ class sae { close() { } } -const uae = { - port: new sae() -}, lae = () => new SharedWorker(new URL( +const lae = { + port: new uae() +}, cae = () => new SharedWorker(new URL( /* @vite-ignore */ "/assets/HierarchicalLayout.worker-DFULhk2a.js", import.meta.url ), { type: "module", name: "HierarchicalLayout" -}), cae = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +}), fae = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - coseBilkentLayoutFallbackWorker: Fte, - createCoseBilkentLayoutWorker: Ute, - createHierarchicalLayoutWorker: lae, - hierarchicalLayoutFallbackWorker: uae + coseBilkentLayoutFallbackWorker: Ute, + createCoseBilkentLayoutWorker: zte, + createHierarchicalLayoutWorker: cae, + hierarchicalLayoutFallbackWorker: lae }, Symbol.toStringTag, { value: "Module" })); /*! For license information please see base.mjs.LICENSE.txt */ -var fae = { 5: function(r, e, t) { +var dae = { 5: function(r, e, t) { var n = this && this.__extends || /* @__PURE__ */ (function() { var m = function(x, S) { return m = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(O, E) { @@ -48149,8 +48161,8 @@ var fae = { 5: function(r, e, t) { var I, k, L, B, j = {}; (k = P, L = "@", B = k.lastIndexOf(L), I = B >= 0 ? [k.substring(0, B), k[B], k.substring(B + 1)] : ["", "", k])[1] === "@" && (j.userInfo = decodeURIComponent(I[0]), P = I[2]); var z = i((function(W, $, J) { - var X = O(W, $), Q = O(X[2], J); - return [Q[0], Q[2]]; + var X = O(W, $), Z = O(X[2], J); + return [Z[0], Z[2]]; })(P, "[", "]"), 2), H = z[0], q = z[1]; return H !== "" ? (j.host = H, I = O(q, ":")) : (I = O(P, ":"), j.host = I[0]), I[1] === ":" && (j.port = I[2]), j; })(E[0]))).path = E[1] + E[2]) : T.path = S, T; @@ -48579,8 +48591,8 @@ var fae = { 5: function(r, e, t) { var _ = b === void 0 ? {} : b, m = _.bookmarks, x = _.txConfig, S = _.database, O = _.mode, E = _.impersonatedUser, T = _.notificationFilter, P = _.beforeError, I = _.afterError, k = _.beforeComplete, L = _.afterComplete, B = new c.ResultStreamObserver({ server: this._server, beforeError: P, afterError: I, beforeComplete: k, afterComplete: L }); return B.prepareToHandleSingleResponse(), this.write(l.default.begin({ bookmarks: m, txConfig: x, database: S, mode: O, impersonatedUser: E, notificationFilter: T }), B, !0), B; }, y.prototype.run = function(b, _, m) { - var x = m === void 0 ? {} : m, S = x.bookmarks, O = x.txConfig, E = x.database, T = x.mode, P = x.impersonatedUser, I = x.notificationFilter, k = x.beforeKeys, L = x.afterKeys, B = x.beforeError, j = x.afterError, z = x.beforeComplete, H = x.afterComplete, q = x.flush, W = q === void 0 || q, $ = x.reactive, J = $ !== void 0 && $, X = x.fetchSize, Q = X === void 0 ? h : X, ue = x.highRecordWatermark, re = ue === void 0 ? Number.MAX_VALUE : ue, ne = x.lowRecordWatermark, le = ne === void 0 ? Number.MAX_VALUE : ne, ce = new c.ResultStreamObserver({ server: this._server, reactive: J, fetchSize: Q, moreFunction: this._requestMore.bind(this), discardFunction: this._requestDiscard.bind(this), beforeKeys: k, afterKeys: L, beforeError: B, afterError: j, beforeComplete: z, afterComplete: H, highRecordWatermark: re, lowRecordWatermark: le }), pe = J; - return this.write(l.default.runWithMetadata(b, _, { bookmarks: S, txConfig: O, database: E, mode: T, impersonatedUser: P, notificationFilter: I }), ce, pe && W), J || this.write(l.default.pull({ n: Q }), ce, W), ce; + var x = m === void 0 ? {} : m, S = x.bookmarks, O = x.txConfig, E = x.database, T = x.mode, P = x.impersonatedUser, I = x.notificationFilter, k = x.beforeKeys, L = x.afterKeys, B = x.beforeError, j = x.afterError, z = x.beforeComplete, H = x.afterComplete, q = x.flush, W = q === void 0 || q, $ = x.reactive, J = $ !== void 0 && $, X = x.fetchSize, Z = X === void 0 ? h : X, ue = x.highRecordWatermark, re = ue === void 0 ? Number.MAX_VALUE : ue, ne = x.lowRecordWatermark, le = ne === void 0 ? Number.MAX_VALUE : ne, ce = new c.ResultStreamObserver({ server: this._server, reactive: J, fetchSize: Z, moreFunction: this._requestMore.bind(this), discardFunction: this._requestDiscard.bind(this), beforeKeys: k, afterKeys: L, beforeError: B, afterError: j, beforeComplete: z, afterComplete: H, highRecordWatermark: re, lowRecordWatermark: le }), pe = J; + return this.write(l.default.runWithMetadata(b, _, { bookmarks: S, txConfig: O, database: E, mode: T, impersonatedUser: P, notificationFilter: I }), ce, pe && W), J || this.write(l.default.pull({ n: Z }), ce, W), ce; }, y; })(o.default); e.default = p; @@ -48624,45 +48636,45 @@ var fae = { 5: function(r, e, t) { const o = 2147483647; function s(Y) { if (Y > o) throw new RangeError('The value "' + Y + '" is invalid for option "size"'); - const Z = new Uint8Array(Y); - return Object.setPrototypeOf(Z, u.prototype), Z; + const Q = new Uint8Array(Y); + return Object.setPrototypeOf(Q, u.prototype), Q; } - function u(Y, Z, ie) { + function u(Y, Q, ie) { if (typeof Y == "number") { - if (typeof Z == "string") throw new TypeError('The "string" argument must be of type string. Received type number'); + if (typeof Q == "string") throw new TypeError('The "string" argument must be of type string. Received type number'); return f(Y); } - return l(Y, Z, ie); + return l(Y, Q, ie); } - function l(Y, Z, ie) { - if (typeof Y == "string") return (function(De, Ie) { + function l(Y, Q, ie) { + if (typeof Y == "string") return (function(Me, Ie) { if (typeof Ie == "string" && Ie !== "" || (Ie = "utf8"), !u.isEncoding(Ie)) throw new TypeError("Unknown encoding: " + Ie); - const Ye = 0 | g(De, Ie); + const Ye = 0 | g(Me, Ie); let ot = s(Ye); - const mt = ot.write(De, Ie); + const mt = ot.write(Me, Ie); return mt !== Ye && (ot = ot.slice(0, mt)), ot; - })(Y, Z); - if (ArrayBuffer.isView(Y)) return (function(De) { - if (Oe(De, Uint8Array)) { - const Ie = new Uint8Array(De); + })(Y, Q); + if (ArrayBuffer.isView(Y)) return (function(Me) { + if (Oe(Me, Uint8Array)) { + const Ie = new Uint8Array(Me); return h(Ie.buffer, Ie.byteOffset, Ie.byteLength); } - return d(De); + return d(Me); })(Y); if (Y == null) throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof Y); - if (Oe(Y, ArrayBuffer) || Y && Oe(Y.buffer, ArrayBuffer) || typeof SharedArrayBuffer < "u" && (Oe(Y, SharedArrayBuffer) || Y && Oe(Y.buffer, SharedArrayBuffer))) return h(Y, Z, ie); + if (Oe(Y, ArrayBuffer) || Y && Oe(Y.buffer, ArrayBuffer) || typeof SharedArrayBuffer < "u" && (Oe(Y, SharedArrayBuffer) || Y && Oe(Y.buffer, SharedArrayBuffer))) return h(Y, Q, ie); if (typeof Y == "number") throw new TypeError('The "value" argument must not be of type number. Received type number'); const we = Y.valueOf && Y.valueOf(); - if (we != null && we !== Y) return u.from(we, Z, ie); - const Ee = (function(De) { - if (u.isBuffer(De)) { - const Ie = 0 | p(De.length), Ye = s(Ie); - return Ye.length === 0 || De.copy(Ye, 0, 0, Ie), Ye; + if (we != null && we !== Y) return u.from(we, Q, ie); + const Ee = (function(Me) { + if (u.isBuffer(Me)) { + const Ie = 0 | p(Me.length), Ye = s(Ie); + return Ye.length === 0 || Me.copy(Ye, 0, 0, Ie), Ye; } - return De.length !== void 0 ? typeof De.length != "number" || ke(De.length) ? s(0) : d(De) : De.type === "Buffer" && Array.isArray(De.data) ? d(De.data) : void 0; + return Me.length !== void 0 ? typeof Me.length != "number" || ke(Me.length) ? s(0) : d(Me) : Me.type === "Buffer" && Array.isArray(Me.data) ? d(Me.data) : void 0; })(Y); if (Ee) return Ee; - if (typeof Symbol < "u" && Symbol.toPrimitive != null && typeof Y[Symbol.toPrimitive] == "function") return u.from(Y[Symbol.toPrimitive]("string"), Z, ie); + if (typeof Symbol < "u" && Symbol.toPrimitive != null && typeof Y[Symbol.toPrimitive] == "function") return u.from(Y[Symbol.toPrimitive]("string"), Q, ie); throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof Y); } function c(Y) { @@ -48673,28 +48685,28 @@ var fae = { 5: function(r, e, t) { return c(Y), s(Y < 0 ? 0 : 0 | p(Y)); } function d(Y) { - const Z = Y.length < 0 ? 0 : 0 | p(Y.length), ie = s(Z); - for (let we = 0; we < Z; we += 1) ie[we] = 255 & Y[we]; + const Q = Y.length < 0 ? 0 : 0 | p(Y.length), ie = s(Q); + for (let we = 0; we < Q; we += 1) ie[we] = 255 & Y[we]; return ie; } - function h(Y, Z, ie) { - if (Z < 0 || Y.byteLength < Z) throw new RangeError('"offset" is outside of buffer bounds'); - if (Y.byteLength < Z + (ie || 0)) throw new RangeError('"length" is outside of buffer bounds'); + function h(Y, Q, ie) { + if (Q < 0 || Y.byteLength < Q) throw new RangeError('"offset" is outside of buffer bounds'); + if (Y.byteLength < Q + (ie || 0)) throw new RangeError('"length" is outside of buffer bounds'); let we; - return we = Z === void 0 && ie === void 0 ? new Uint8Array(Y) : ie === void 0 ? new Uint8Array(Y, Z) : new Uint8Array(Y, Z, ie), Object.setPrototypeOf(we, u.prototype), we; + return we = Q === void 0 && ie === void 0 ? new Uint8Array(Y) : ie === void 0 ? new Uint8Array(Y, Q) : new Uint8Array(Y, Q, ie), Object.setPrototypeOf(we, u.prototype), we; } function p(Y) { if (Y >= o) throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x" + o.toString(16) + " bytes"); return 0 | Y; } - function g(Y, Z) { + function g(Y, Q) { if (u.isBuffer(Y)) return Y.length; if (ArrayBuffer.isView(Y) || Oe(Y, ArrayBuffer)) return Y.byteLength; if (typeof Y != "string") throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type ' + typeof Y); const ie = Y.length, we = arguments.length > 2 && arguments[2] === !0; if (!we && ie === 0) return 0; let Ee = !1; - for (; ; ) switch (Z) { + for (; ; ) switch (Q) { case "ascii": case "latin1": case "binary": @@ -48713,40 +48725,40 @@ var fae = { 5: function(r, e, t) { return de(Y).length; default: if (Ee) return we ? -1 : se(Y).length; - Z = ("" + Z).toLowerCase(), Ee = !0; + Q = ("" + Q).toLowerCase(), Ee = !0; } } - function y(Y, Z, ie) { + function y(Y, Q, ie) { let we = !1; - if ((Z === void 0 || Z < 0) && (Z = 0), Z > this.length || ((ie === void 0 || ie > this.length) && (ie = this.length), ie <= 0) || (ie >>>= 0) <= (Z >>>= 0)) return ""; + if ((Q === void 0 || Q < 0) && (Q = 0), Q > this.length || ((ie === void 0 || ie > this.length) && (ie = this.length), ie <= 0) || (ie >>>= 0) <= (Q >>>= 0)) return ""; for (Y || (Y = "utf8"); ; ) switch (Y) { case "hex": - return j(this, Z, ie); + return j(this, Q, ie); case "utf8": case "utf-8": - return I(this, Z, ie); + return I(this, Q, ie); case "ascii": - return L(this, Z, ie); + return L(this, Q, ie); case "latin1": case "binary": - return B(this, Z, ie); + return B(this, Q, ie); case "base64": - return P(this, Z, ie); + return P(this, Q, ie); case "ucs2": case "ucs-2": case "utf16le": case "utf-16le": - return z(this, Z, ie); + return z(this, Q, ie); default: if (we) throw new TypeError("Unknown encoding: " + Y); Y = (Y + "").toLowerCase(), we = !0; } } - function b(Y, Z, ie) { - const we = Y[Z]; - Y[Z] = Y[ie], Y[ie] = we; + function b(Y, Q, ie) { + const we = Y[Q]; + Y[Q] = Y[ie], Y[ie] = we; } - function _(Y, Z, ie, we, Ee) { + function _(Y, Q, ie, we, Ee) { if (Y.length === 0) return -1; if (typeof ie == "string" ? (we = ie, ie = 0) : ie > 2147483647 ? ie = 2147483647 : ie < -2147483648 && (ie = -2147483648), ke(ie = +ie) && (ie = Ee ? 0 : Y.length - 1), ie < 0 && (ie = Y.length + ie), ie >= Y.length) { if (Ee) return -1; @@ -48755,14 +48767,14 @@ var fae = { 5: function(r, e, t) { if (!Ee) return -1; ie = 0; } - if (typeof Z == "string" && (Z = u.from(Z, we)), u.isBuffer(Z)) return Z.length === 0 ? -1 : m(Y, Z, ie, we, Ee); - if (typeof Z == "number") return Z &= 255, typeof Uint8Array.prototype.indexOf == "function" ? Ee ? Uint8Array.prototype.indexOf.call(Y, Z, ie) : Uint8Array.prototype.lastIndexOf.call(Y, Z, ie) : m(Y, [Z], ie, we, Ee); + if (typeof Q == "string" && (Q = u.from(Q, we)), u.isBuffer(Q)) return Q.length === 0 ? -1 : m(Y, Q, ie, we, Ee); + if (typeof Q == "number") return Q &= 255, typeof Uint8Array.prototype.indexOf == "function" ? Ee ? Uint8Array.prototype.indexOf.call(Y, Q, ie) : Uint8Array.prototype.lastIndexOf.call(Y, Q, ie) : m(Y, [Q], ie, we, Ee); throw new TypeError("val must be string, number or Buffer"); } - function m(Y, Z, ie, we, Ee) { - let De, Ie = 1, Ye = Y.length, ot = Z.length; + function m(Y, Q, ie, we, Ee) { + let Me, Ie = 1, Ye = Y.length, ot = Q.length; if (we !== void 0 && ((we = String(we).toLowerCase()) === "ucs2" || we === "ucs-2" || we === "utf16le" || we === "utf-16le")) { - if (Y.length < 2 || Z.length < 2) return -1; + if (Y.length < 2 || Q.length < 2) return -1; Ie = 2, Ye /= 2, ot /= 2, ie /= 2; } function mt(wt, Mt) { @@ -48770,95 +48782,95 @@ var fae = { 5: function(r, e, t) { } if (Ee) { let wt = -1; - for (De = ie; De < Ye; De++) if (mt(Y, De) === mt(Z, wt === -1 ? 0 : De - wt)) { - if (wt === -1 && (wt = De), De - wt + 1 === ot) return wt * Ie; - } else wt !== -1 && (De -= De - wt), wt = -1; - } else for (ie + ot > Ye && (ie = Ye - ot), De = ie; De >= 0; De--) { + for (Me = ie; Me < Ye; Me++) if (mt(Y, Me) === mt(Q, wt === -1 ? 0 : Me - wt)) { + if (wt === -1 && (wt = Me), Me - wt + 1 === ot) return wt * Ie; + } else wt !== -1 && (Me -= Me - wt), wt = -1; + } else for (ie + ot > Ye && (ie = Ye - ot), Me = ie; Me >= 0; Me--) { let wt = !0; - for (let Mt = 0; Mt < ot; Mt++) if (mt(Y, De + Mt) !== mt(Z, Mt)) { + for (let Mt = 0; Mt < ot; Mt++) if (mt(Y, Me + Mt) !== mt(Q, Mt)) { wt = !1; break; } - if (wt) return De; + if (wt) return Me; } return -1; } - function x(Y, Z, ie, we) { + function x(Y, Q, ie, we) { ie = Number(ie) || 0; const Ee = Y.length - ie; we ? (we = Number(we)) > Ee && (we = Ee) : we = Ee; - const De = Z.length; + const Me = Q.length; let Ie; - for (we > De / 2 && (we = De / 2), Ie = 0; Ie < we; ++Ie) { - const Ye = parseInt(Z.substr(2 * Ie, 2), 16); + for (we > Me / 2 && (we = Me / 2), Ie = 0; Ie < we; ++Ie) { + const Ye = parseInt(Q.substr(2 * Ie, 2), 16); if (ke(Ye)) return Ie; Y[ie + Ie] = Ye; } return Ie; } - function S(Y, Z, ie, we) { - return ge(se(Z, Y.length - ie), Y, ie, we); + function S(Y, Q, ie, we) { + return ge(se(Q, Y.length - ie), Y, ie, we); } - function O(Y, Z, ie, we) { + function O(Y, Q, ie, we) { return ge((function(Ee) { - const De = []; - for (let Ie = 0; Ie < Ee.length; ++Ie) De.push(255 & Ee.charCodeAt(Ie)); - return De; - })(Z), Y, ie, we); + const Me = []; + for (let Ie = 0; Ie < Ee.length; ++Ie) Me.push(255 & Ee.charCodeAt(Ie)); + return Me; + })(Q), Y, ie, we); } - function E(Y, Z, ie, we) { - return ge(de(Z), Y, ie, we); + function E(Y, Q, ie, we) { + return ge(de(Q), Y, ie, we); } - function T(Y, Z, ie, we) { - return ge((function(Ee, De) { + function T(Y, Q, ie, we) { + return ge((function(Ee, Me) { let Ie, Ye, ot; const mt = []; - for (let wt = 0; wt < Ee.length && !((De -= 2) < 0); ++wt) Ie = Ee.charCodeAt(wt), Ye = Ie >> 8, ot = Ie % 256, mt.push(ot), mt.push(Ye); + for (let wt = 0; wt < Ee.length && !((Me -= 2) < 0); ++wt) Ie = Ee.charCodeAt(wt), Ye = Ie >> 8, ot = Ie % 256, mt.push(ot), mt.push(Ye); return mt; - })(Z, Y.length - ie), Y, ie, we); + })(Q, Y.length - ie), Y, ie, we); } - function P(Y, Z, ie) { - return Z === 0 && ie === Y.length ? n.fromByteArray(Y) : n.fromByteArray(Y.slice(Z, ie)); + function P(Y, Q, ie) { + return Q === 0 && ie === Y.length ? n.fromByteArray(Y) : n.fromByteArray(Y.slice(Q, ie)); } - function I(Y, Z, ie) { + function I(Y, Q, ie) { ie = Math.min(Y.length, ie); const we = []; - let Ee = Z; + let Ee = Q; for (; Ee < ie; ) { - const De = Y[Ee]; - let Ie = null, Ye = De > 239 ? 4 : De > 223 ? 3 : De > 191 ? 2 : 1; + const Me = Y[Ee]; + let Ie = null, Ye = Me > 239 ? 4 : Me > 223 ? 3 : Me > 191 ? 2 : 1; if (Ee + Ye <= ie) { let ot, mt, wt, Mt; switch (Ye) { case 1: - De < 128 && (Ie = De); + Me < 128 && (Ie = Me); break; case 2: - ot = Y[Ee + 1], (192 & ot) == 128 && (Mt = (31 & De) << 6 | 63 & ot, Mt > 127 && (Ie = Mt)); + ot = Y[Ee + 1], (192 & ot) == 128 && (Mt = (31 & Me) << 6 | 63 & ot, Mt > 127 && (Ie = Mt)); break; case 3: - ot = Y[Ee + 1], mt = Y[Ee + 2], (192 & ot) == 128 && (192 & mt) == 128 && (Mt = (15 & De) << 12 | (63 & ot) << 6 | 63 & mt, Mt > 2047 && (Mt < 55296 || Mt > 57343) && (Ie = Mt)); + ot = Y[Ee + 1], mt = Y[Ee + 2], (192 & ot) == 128 && (192 & mt) == 128 && (Mt = (15 & Me) << 12 | (63 & ot) << 6 | 63 & mt, Mt > 2047 && (Mt < 55296 || Mt > 57343) && (Ie = Mt)); break; case 4: - ot = Y[Ee + 1], mt = Y[Ee + 2], wt = Y[Ee + 3], (192 & ot) == 128 && (192 & mt) == 128 && (192 & wt) == 128 && (Mt = (15 & De) << 18 | (63 & ot) << 12 | (63 & mt) << 6 | 63 & wt, Mt > 65535 && Mt < 1114112 && (Ie = Mt)); + ot = Y[Ee + 1], mt = Y[Ee + 2], wt = Y[Ee + 3], (192 & ot) == 128 && (192 & mt) == 128 && (192 & wt) == 128 && (Mt = (15 & Me) << 18 | (63 & ot) << 12 | (63 & mt) << 6 | 63 & wt, Mt > 65535 && Mt < 1114112 && (Ie = Mt)); } } Ie === null ? (Ie = 65533, Ye = 1) : Ie > 65535 && (Ie -= 65536, we.push(Ie >>> 10 & 1023 | 55296), Ie = 56320 | 1023 & Ie), we.push(Ie), Ee += Ye; } - return (function(De) { - const Ie = De.length; - if (Ie <= k) return String.fromCharCode.apply(String, De); + return (function(Me) { + const Ie = Me.length; + if (Ie <= k) return String.fromCharCode.apply(String, Me); let Ye = "", ot = 0; - for (; ot < Ie; ) Ye += String.fromCharCode.apply(String, De.slice(ot, ot += k)); + for (; ot < Ie; ) Ye += String.fromCharCode.apply(String, Me.slice(ot, ot += k)); return Ye; })(we); } e.kMaxLength = o, u.TYPED_ARRAY_SUPPORT = (function() { try { - const Y = new Uint8Array(1), Z = { foo: function() { + const Y = new Uint8Array(1), Q = { foo: function() { return 42; } }; - return Object.setPrototypeOf(Z, Uint8Array.prototype), Object.setPrototypeOf(Y, Z), Y.foo() === 42; + return Object.setPrototypeOf(Q, Uint8Array.prototype), Object.setPrototypeOf(Y, Q), Y.foo() === 42; } catch { return !1; } @@ -48866,24 +48878,24 @@ var fae = { 5: function(r, e, t) { if (u.isBuffer(this)) return this.buffer; } }), Object.defineProperty(u.prototype, "offset", { enumerable: !0, get: function() { if (u.isBuffer(this)) return this.byteOffset; - } }), u.poolSize = 8192, u.from = function(Y, Z, ie) { - return l(Y, Z, ie); - }, Object.setPrototypeOf(u.prototype, Uint8Array.prototype), Object.setPrototypeOf(u, Uint8Array), u.alloc = function(Y, Z, ie) { - return (function(we, Ee, De) { - return c(we), we <= 0 ? s(we) : Ee !== void 0 ? typeof De == "string" ? s(we).fill(Ee, De) : s(we).fill(Ee) : s(we); - })(Y, Z, ie); + } }), u.poolSize = 8192, u.from = function(Y, Q, ie) { + return l(Y, Q, ie); + }, Object.setPrototypeOf(u.prototype, Uint8Array.prototype), Object.setPrototypeOf(u, Uint8Array), u.alloc = function(Y, Q, ie) { + return (function(we, Ee, Me) { + return c(we), we <= 0 ? s(we) : Ee !== void 0 ? typeof Me == "string" ? s(we).fill(Ee, Me) : s(we).fill(Ee) : s(we); + })(Y, Q, ie); }, u.allocUnsafe = function(Y) { return f(Y); }, u.allocUnsafeSlow = function(Y) { return f(Y); }, u.isBuffer = function(Y) { return Y != null && Y._isBuffer === !0 && Y !== u.prototype; - }, u.compare = function(Y, Z) { - if (Oe(Y, Uint8Array) && (Y = u.from(Y, Y.offset, Y.byteLength)), Oe(Z, Uint8Array) && (Z = u.from(Z, Z.offset, Z.byteLength)), !u.isBuffer(Y) || !u.isBuffer(Z)) throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array'); - if (Y === Z) return 0; - let ie = Y.length, we = Z.length; - for (let Ee = 0, De = Math.min(ie, we); Ee < De; ++Ee) if (Y[Ee] !== Z[Ee]) { - ie = Y[Ee], we = Z[Ee]; + }, u.compare = function(Y, Q) { + if (Oe(Y, Uint8Array) && (Y = u.from(Y, Y.offset, Y.byteLength)), Oe(Q, Uint8Array) && (Q = u.from(Q, Q.offset, Q.byteLength)), !u.isBuffer(Y) || !u.isBuffer(Q)) throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array'); + if (Y === Q) return 0; + let ie = Y.length, we = Q.length; + for (let Ee = 0, Me = Math.min(ie, we); Ee < Me; ++Ee) if (Y[Ee] !== Q[Ee]) { + ie = Y[Ee], we = Q[Ee]; break; } return ie < we ? -1 : we < ie ? 1 : 0; @@ -48904,37 +48916,37 @@ var fae = { 5: function(r, e, t) { default: return !1; } - }, u.concat = function(Y, Z) { + }, u.concat = function(Y, Q) { if (!Array.isArray(Y)) throw new TypeError('"list" argument must be an Array of Buffers'); if (Y.length === 0) return u.alloc(0); let ie; - if (Z === void 0) for (Z = 0, ie = 0; ie < Y.length; ++ie) Z += Y[ie].length; - const we = u.allocUnsafe(Z); + if (Q === void 0) for (Q = 0, ie = 0; ie < Y.length; ++ie) Q += Y[ie].length; + const we = u.allocUnsafe(Q); let Ee = 0; for (ie = 0; ie < Y.length; ++ie) { - let De = Y[ie]; - if (Oe(De, Uint8Array)) Ee + De.length > we.length ? (u.isBuffer(De) || (De = u.from(De)), De.copy(we, Ee)) : Uint8Array.prototype.set.call(we, De, Ee); + let Me = Y[ie]; + if (Oe(Me, Uint8Array)) Ee + Me.length > we.length ? (u.isBuffer(Me) || (Me = u.from(Me)), Me.copy(we, Ee)) : Uint8Array.prototype.set.call(we, Me, Ee); else { - if (!u.isBuffer(De)) throw new TypeError('"list" argument must be an Array of Buffers'); - De.copy(we, Ee); + if (!u.isBuffer(Me)) throw new TypeError('"list" argument must be an Array of Buffers'); + Me.copy(we, Ee); } - Ee += De.length; + Ee += Me.length; } return we; }, u.byteLength = g, u.prototype._isBuffer = !0, u.prototype.swap16 = function() { const Y = this.length; if (Y % 2 != 0) throw new RangeError("Buffer size must be a multiple of 16-bits"); - for (let Z = 0; Z < Y; Z += 2) b(this, Z, Z + 1); + for (let Q = 0; Q < Y; Q += 2) b(this, Q, Q + 1); return this; }, u.prototype.swap32 = function() { const Y = this.length; if (Y % 4 != 0) throw new RangeError("Buffer size must be a multiple of 32-bits"); - for (let Z = 0; Z < Y; Z += 4) b(this, Z, Z + 3), b(this, Z + 1, Z + 2); + for (let Q = 0; Q < Y; Q += 4) b(this, Q, Q + 3), b(this, Q + 1, Q + 2); return this; }, u.prototype.swap64 = function() { const Y = this.length; if (Y % 8 != 0) throw new RangeError("Buffer size must be a multiple of 64-bits"); - for (let Z = 0; Z < Y; Z += 8) b(this, Z, Z + 7), b(this, Z + 1, Z + 6), b(this, Z + 2, Z + 5), b(this, Z + 3, Z + 4); + for (let Q = 0; Q < Y; Q += 8) b(this, Q, Q + 7), b(this, Q + 1, Q + 6), b(this, Q + 2, Q + 5), b(this, Q + 3, Q + 4); return this; }, u.prototype.toString = function() { const Y = this.length; @@ -48944,299 +48956,299 @@ var fae = { 5: function(r, e, t) { return this === Y || u.compare(this, Y) === 0; }, u.prototype.inspect = function() { let Y = ""; - const Z = e.INSPECT_MAX_BYTES; - return Y = this.toString("hex", 0, Z).replace(/(.{2})/g, "$1 ").trim(), this.length > Z && (Y += " ... "), ""; - }, a && (u.prototype[a] = u.prototype.inspect), u.prototype.compare = function(Y, Z, ie, we, Ee) { + const Q = e.INSPECT_MAX_BYTES; + return Y = this.toString("hex", 0, Q).replace(/(.{2})/g, "$1 ").trim(), this.length > Q && (Y += " ... "), ""; + }, a && (u.prototype[a] = u.prototype.inspect), u.prototype.compare = function(Y, Q, ie, we, Ee) { if (Oe(Y, Uint8Array) && (Y = u.from(Y, Y.offset, Y.byteLength)), !u.isBuffer(Y)) throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type ' + typeof Y); - if (Z === void 0 && (Z = 0), ie === void 0 && (ie = Y ? Y.length : 0), we === void 0 && (we = 0), Ee === void 0 && (Ee = this.length), Z < 0 || ie > Y.length || we < 0 || Ee > this.length) throw new RangeError("out of range index"); - if (we >= Ee && Z >= ie) return 0; + if (Q === void 0 && (Q = 0), ie === void 0 && (ie = Y ? Y.length : 0), we === void 0 && (we = 0), Ee === void 0 && (Ee = this.length), Q < 0 || ie > Y.length || we < 0 || Ee > this.length) throw new RangeError("out of range index"); + if (we >= Ee && Q >= ie) return 0; if (we >= Ee) return -1; - if (Z >= ie) return 1; + if (Q >= ie) return 1; if (this === Y) return 0; - let De = (Ee >>>= 0) - (we >>>= 0), Ie = (ie >>>= 0) - (Z >>>= 0); - const Ye = Math.min(De, Ie), ot = this.slice(we, Ee), mt = Y.slice(Z, ie); + let Me = (Ee >>>= 0) - (we >>>= 0), Ie = (ie >>>= 0) - (Q >>>= 0); + const Ye = Math.min(Me, Ie), ot = this.slice(we, Ee), mt = Y.slice(Q, ie); for (let wt = 0; wt < Ye; ++wt) if (ot[wt] !== mt[wt]) { - De = ot[wt], Ie = mt[wt]; + Me = ot[wt], Ie = mt[wt]; break; } - return De < Ie ? -1 : Ie < De ? 1 : 0; - }, u.prototype.includes = function(Y, Z, ie) { - return this.indexOf(Y, Z, ie) !== -1; - }, u.prototype.indexOf = function(Y, Z, ie) { - return _(this, Y, Z, ie, !0); - }, u.prototype.lastIndexOf = function(Y, Z, ie) { - return _(this, Y, Z, ie, !1); - }, u.prototype.write = function(Y, Z, ie, we) { - if (Z === void 0) we = "utf8", ie = this.length, Z = 0; - else if (ie === void 0 && typeof Z == "string") we = Z, ie = this.length, Z = 0; + return Me < Ie ? -1 : Ie < Me ? 1 : 0; + }, u.prototype.includes = function(Y, Q, ie) { + return this.indexOf(Y, Q, ie) !== -1; + }, u.prototype.indexOf = function(Y, Q, ie) { + return _(this, Y, Q, ie, !0); + }, u.prototype.lastIndexOf = function(Y, Q, ie) { + return _(this, Y, Q, ie, !1); + }, u.prototype.write = function(Y, Q, ie, we) { + if (Q === void 0) we = "utf8", ie = this.length, Q = 0; + else if (ie === void 0 && typeof Q == "string") we = Q, ie = this.length, Q = 0; else { - if (!isFinite(Z)) throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported"); - Z >>>= 0, isFinite(ie) ? (ie >>>= 0, we === void 0 && (we = "utf8")) : (we = ie, ie = void 0); + if (!isFinite(Q)) throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported"); + Q >>>= 0, isFinite(ie) ? (ie >>>= 0, we === void 0 && (we = "utf8")) : (we = ie, ie = void 0); } - const Ee = this.length - Z; - if ((ie === void 0 || ie > Ee) && (ie = Ee), Y.length > 0 && (ie < 0 || Z < 0) || Z > this.length) throw new RangeError("Attempt to write outside buffer bounds"); + const Ee = this.length - Q; + if ((ie === void 0 || ie > Ee) && (ie = Ee), Y.length > 0 && (ie < 0 || Q < 0) || Q > this.length) throw new RangeError("Attempt to write outside buffer bounds"); we || (we = "utf8"); - let De = !1; + let Me = !1; for (; ; ) switch (we) { case "hex": - return x(this, Y, Z, ie); + return x(this, Y, Q, ie); case "utf8": case "utf-8": - return S(this, Y, Z, ie); + return S(this, Y, Q, ie); case "ascii": case "latin1": case "binary": - return O(this, Y, Z, ie); + return O(this, Y, Q, ie); case "base64": - return E(this, Y, Z, ie); + return E(this, Y, Q, ie); case "ucs2": case "ucs-2": case "utf16le": case "utf-16le": - return T(this, Y, Z, ie); + return T(this, Y, Q, ie); default: - if (De) throw new TypeError("Unknown encoding: " + we); - we = ("" + we).toLowerCase(), De = !0; + if (Me) throw new TypeError("Unknown encoding: " + we); + we = ("" + we).toLowerCase(), Me = !0; } }, u.prototype.toJSON = function() { return { type: "Buffer", data: Array.prototype.slice.call(this._arr || this, 0) }; }; const k = 4096; - function L(Y, Z, ie) { + function L(Y, Q, ie) { let we = ""; ie = Math.min(Y.length, ie); - for (let Ee = Z; Ee < ie; ++Ee) we += String.fromCharCode(127 & Y[Ee]); + for (let Ee = Q; Ee < ie; ++Ee) we += String.fromCharCode(127 & Y[Ee]); return we; } - function B(Y, Z, ie) { + function B(Y, Q, ie) { let we = ""; ie = Math.min(Y.length, ie); - for (let Ee = Z; Ee < ie; ++Ee) we += String.fromCharCode(Y[Ee]); + for (let Ee = Q; Ee < ie; ++Ee) we += String.fromCharCode(Y[Ee]); return we; } - function j(Y, Z, ie) { + function j(Y, Q, ie) { const we = Y.length; - (!Z || Z < 0) && (Z = 0), (!ie || ie < 0 || ie > we) && (ie = we); + (!Q || Q < 0) && (Q = 0), (!ie || ie < 0 || ie > we) && (ie = we); let Ee = ""; - for (let De = Z; De < ie; ++De) Ee += Me[Y[De]]; + for (let Me = Q; Me < ie; ++Me) Ee += De[Y[Me]]; return Ee; } - function z(Y, Z, ie) { - const we = Y.slice(Z, ie); + function z(Y, Q, ie) { + const we = Y.slice(Q, ie); let Ee = ""; - for (let De = 0; De < we.length - 1; De += 2) Ee += String.fromCharCode(we[De] + 256 * we[De + 1]); + for (let Me = 0; Me < we.length - 1; Me += 2) Ee += String.fromCharCode(we[Me] + 256 * we[Me + 1]); return Ee; } - function H(Y, Z, ie) { + function H(Y, Q, ie) { if (Y % 1 != 0 || Y < 0) throw new RangeError("offset is not uint"); - if (Y + Z > ie) throw new RangeError("Trying to access beyond buffer length"); + if (Y + Q > ie) throw new RangeError("Trying to access beyond buffer length"); } - function q(Y, Z, ie, we, Ee, De) { + function q(Y, Q, ie, we, Ee, Me) { if (!u.isBuffer(Y)) throw new TypeError('"buffer" argument must be a Buffer instance'); - if (Z > Ee || Z < De) throw new RangeError('"value" argument is out of bounds'); + if (Q > Ee || Q < Me) throw new RangeError('"value" argument is out of bounds'); if (ie + we > Y.length) throw new RangeError("Index out of range"); } - function W(Y, Z, ie, we, Ee) { - le(Z, we, Ee, Y, ie, 7); - let De = Number(Z & BigInt(4294967295)); - Y[ie++] = De, De >>= 8, Y[ie++] = De, De >>= 8, Y[ie++] = De, De >>= 8, Y[ie++] = De; - let Ie = Number(Z >> BigInt(32) & BigInt(4294967295)); + function W(Y, Q, ie, we, Ee) { + le(Q, we, Ee, Y, ie, 7); + let Me = Number(Q & BigInt(4294967295)); + Y[ie++] = Me, Me >>= 8, Y[ie++] = Me, Me >>= 8, Y[ie++] = Me, Me >>= 8, Y[ie++] = Me; + let Ie = Number(Q >> BigInt(32) & BigInt(4294967295)); return Y[ie++] = Ie, Ie >>= 8, Y[ie++] = Ie, Ie >>= 8, Y[ie++] = Ie, Ie >>= 8, Y[ie++] = Ie, ie; } - function $(Y, Z, ie, we, Ee) { - le(Z, we, Ee, Y, ie, 7); - let De = Number(Z & BigInt(4294967295)); - Y[ie + 7] = De, De >>= 8, Y[ie + 6] = De, De >>= 8, Y[ie + 5] = De, De >>= 8, Y[ie + 4] = De; - let Ie = Number(Z >> BigInt(32) & BigInt(4294967295)); + function $(Y, Q, ie, we, Ee) { + le(Q, we, Ee, Y, ie, 7); + let Me = Number(Q & BigInt(4294967295)); + Y[ie + 7] = Me, Me >>= 8, Y[ie + 6] = Me, Me >>= 8, Y[ie + 5] = Me, Me >>= 8, Y[ie + 4] = Me; + let Ie = Number(Q >> BigInt(32) & BigInt(4294967295)); return Y[ie + 3] = Ie, Ie >>= 8, Y[ie + 2] = Ie, Ie >>= 8, Y[ie + 1] = Ie, Ie >>= 8, Y[ie] = Ie, ie + 8; } - function J(Y, Z, ie, we, Ee, De) { + function J(Y, Q, ie, we, Ee, Me) { if (ie + we > Y.length) throw new RangeError("Index out of range"); if (ie < 0) throw new RangeError("Index out of range"); } - function X(Y, Z, ie, we, Ee) { - return Z = +Z, ie >>>= 0, Ee || J(Y, 0, ie, 4), i.write(Y, Z, ie, we, 23, 4), ie + 4; + function X(Y, Q, ie, we, Ee) { + return Q = +Q, ie >>>= 0, Ee || J(Y, 0, ie, 4), i.write(Y, Q, ie, we, 23, 4), ie + 4; } - function Q(Y, Z, ie, we, Ee) { - return Z = +Z, ie >>>= 0, Ee || J(Y, 0, ie, 8), i.write(Y, Z, ie, we, 52, 8), ie + 8; + function Z(Y, Q, ie, we, Ee) { + return Q = +Q, ie >>>= 0, Ee || J(Y, 0, ie, 8), i.write(Y, Q, ie, we, 52, 8), ie + 8; } - u.prototype.slice = function(Y, Z) { + u.prototype.slice = function(Y, Q) { const ie = this.length; - (Y = ~~Y) < 0 ? (Y += ie) < 0 && (Y = 0) : Y > ie && (Y = ie), (Z = Z === void 0 ? ie : ~~Z) < 0 ? (Z += ie) < 0 && (Z = 0) : Z > ie && (Z = ie), Z < Y && (Z = Y); - const we = this.subarray(Y, Z); + (Y = ~~Y) < 0 ? (Y += ie) < 0 && (Y = 0) : Y > ie && (Y = ie), (Q = Q === void 0 ? ie : ~~Q) < 0 ? (Q += ie) < 0 && (Q = 0) : Q > ie && (Q = ie), Q < Y && (Q = Y); + const we = this.subarray(Y, Q); return Object.setPrototypeOf(we, u.prototype), we; - }, u.prototype.readUintLE = u.prototype.readUIntLE = function(Y, Z, ie) { - Y >>>= 0, Z >>>= 0, ie || H(Y, Z, this.length); - let we = this[Y], Ee = 1, De = 0; - for (; ++De < Z && (Ee *= 256); ) we += this[Y + De] * Ee; + }, u.prototype.readUintLE = u.prototype.readUIntLE = function(Y, Q, ie) { + Y >>>= 0, Q >>>= 0, ie || H(Y, Q, this.length); + let we = this[Y], Ee = 1, Me = 0; + for (; ++Me < Q && (Ee *= 256); ) we += this[Y + Me] * Ee; return we; - }, u.prototype.readUintBE = u.prototype.readUIntBE = function(Y, Z, ie) { - Y >>>= 0, Z >>>= 0, ie || H(Y, Z, this.length); - let we = this[Y + --Z], Ee = 1; - for (; Z > 0 && (Ee *= 256); ) we += this[Y + --Z] * Ee; + }, u.prototype.readUintBE = u.prototype.readUIntBE = function(Y, Q, ie) { + Y >>>= 0, Q >>>= 0, ie || H(Y, Q, this.length); + let we = this[Y + --Q], Ee = 1; + for (; Q > 0 && (Ee *= 256); ) we += this[Y + --Q] * Ee; return we; - }, u.prototype.readUint8 = u.prototype.readUInt8 = function(Y, Z) { - return Y >>>= 0, Z || H(Y, 1, this.length), this[Y]; - }, u.prototype.readUint16LE = u.prototype.readUInt16LE = function(Y, Z) { - return Y >>>= 0, Z || H(Y, 2, this.length), this[Y] | this[Y + 1] << 8; - }, u.prototype.readUint16BE = u.prototype.readUInt16BE = function(Y, Z) { - return Y >>>= 0, Z || H(Y, 2, this.length), this[Y] << 8 | this[Y + 1]; - }, u.prototype.readUint32LE = u.prototype.readUInt32LE = function(Y, Z) { - return Y >>>= 0, Z || H(Y, 4, this.length), (this[Y] | this[Y + 1] << 8 | this[Y + 2] << 16) + 16777216 * this[Y + 3]; - }, u.prototype.readUint32BE = u.prototype.readUInt32BE = function(Y, Z) { - return Y >>>= 0, Z || H(Y, 4, this.length), 16777216 * this[Y] + (this[Y + 1] << 16 | this[Y + 2] << 8 | this[Y + 3]); + }, u.prototype.readUint8 = u.prototype.readUInt8 = function(Y, Q) { + return Y >>>= 0, Q || H(Y, 1, this.length), this[Y]; + }, u.prototype.readUint16LE = u.prototype.readUInt16LE = function(Y, Q) { + return Y >>>= 0, Q || H(Y, 2, this.length), this[Y] | this[Y + 1] << 8; + }, u.prototype.readUint16BE = u.prototype.readUInt16BE = function(Y, Q) { + return Y >>>= 0, Q || H(Y, 2, this.length), this[Y] << 8 | this[Y + 1]; + }, u.prototype.readUint32LE = u.prototype.readUInt32LE = function(Y, Q) { + return Y >>>= 0, Q || H(Y, 4, this.length), (this[Y] | this[Y + 1] << 8 | this[Y + 2] << 16) + 16777216 * this[Y + 3]; + }, u.prototype.readUint32BE = u.prototype.readUInt32BE = function(Y, Q) { + return Y >>>= 0, Q || H(Y, 4, this.length), 16777216 * this[Y] + (this[Y + 1] << 16 | this[Y + 2] << 8 | this[Y + 3]); }, u.prototype.readBigUInt64LE = Ne(function(Y) { ce(Y >>>= 0, "offset"); - const Z = this[Y], ie = this[Y + 7]; - Z !== void 0 && ie !== void 0 || pe(Y, this.length - 8); - const we = Z + 256 * this[++Y] + 65536 * this[++Y] + this[++Y] * 2 ** 24, Ee = this[++Y] + 256 * this[++Y] + 65536 * this[++Y] + ie * 2 ** 24; + const Q = this[Y], ie = this[Y + 7]; + Q !== void 0 && ie !== void 0 || pe(Y, this.length - 8); + const we = Q + 256 * this[++Y] + 65536 * this[++Y] + this[++Y] * 2 ** 24, Ee = this[++Y] + 256 * this[++Y] + 65536 * this[++Y] + ie * 2 ** 24; return BigInt(we) + (BigInt(Ee) << BigInt(32)); }), u.prototype.readBigUInt64BE = Ne(function(Y) { ce(Y >>>= 0, "offset"); - const Z = this[Y], ie = this[Y + 7]; - Z !== void 0 && ie !== void 0 || pe(Y, this.length - 8); - const we = Z * 2 ** 24 + 65536 * this[++Y] + 256 * this[++Y] + this[++Y], Ee = this[++Y] * 2 ** 24 + 65536 * this[++Y] + 256 * this[++Y] + ie; + const Q = this[Y], ie = this[Y + 7]; + Q !== void 0 && ie !== void 0 || pe(Y, this.length - 8); + const we = Q * 2 ** 24 + 65536 * this[++Y] + 256 * this[++Y] + this[++Y], Ee = this[++Y] * 2 ** 24 + 65536 * this[++Y] + 256 * this[++Y] + ie; return (BigInt(we) << BigInt(32)) + BigInt(Ee); - }), u.prototype.readIntLE = function(Y, Z, ie) { - Y >>>= 0, Z >>>= 0, ie || H(Y, Z, this.length); - let we = this[Y], Ee = 1, De = 0; - for (; ++De < Z && (Ee *= 256); ) we += this[Y + De] * Ee; - return Ee *= 128, we >= Ee && (we -= Math.pow(2, 8 * Z)), we; - }, u.prototype.readIntBE = function(Y, Z, ie) { - Y >>>= 0, Z >>>= 0, ie || H(Y, Z, this.length); - let we = Z, Ee = 1, De = this[Y + --we]; - for (; we > 0 && (Ee *= 256); ) De += this[Y + --we] * Ee; - return Ee *= 128, De >= Ee && (De -= Math.pow(2, 8 * Z)), De; - }, u.prototype.readInt8 = function(Y, Z) { - return Y >>>= 0, Z || H(Y, 1, this.length), 128 & this[Y] ? -1 * (255 - this[Y] + 1) : this[Y]; - }, u.prototype.readInt16LE = function(Y, Z) { - Y >>>= 0, Z || H(Y, 2, this.length); + }), u.prototype.readIntLE = function(Y, Q, ie) { + Y >>>= 0, Q >>>= 0, ie || H(Y, Q, this.length); + let we = this[Y], Ee = 1, Me = 0; + for (; ++Me < Q && (Ee *= 256); ) we += this[Y + Me] * Ee; + return Ee *= 128, we >= Ee && (we -= Math.pow(2, 8 * Q)), we; + }, u.prototype.readIntBE = function(Y, Q, ie) { + Y >>>= 0, Q >>>= 0, ie || H(Y, Q, this.length); + let we = Q, Ee = 1, Me = this[Y + --we]; + for (; we > 0 && (Ee *= 256); ) Me += this[Y + --we] * Ee; + return Ee *= 128, Me >= Ee && (Me -= Math.pow(2, 8 * Q)), Me; + }, u.prototype.readInt8 = function(Y, Q) { + return Y >>>= 0, Q || H(Y, 1, this.length), 128 & this[Y] ? -1 * (255 - this[Y] + 1) : this[Y]; + }, u.prototype.readInt16LE = function(Y, Q) { + Y >>>= 0, Q || H(Y, 2, this.length); const ie = this[Y] | this[Y + 1] << 8; return 32768 & ie ? 4294901760 | ie : ie; - }, u.prototype.readInt16BE = function(Y, Z) { - Y >>>= 0, Z || H(Y, 2, this.length); + }, u.prototype.readInt16BE = function(Y, Q) { + Y >>>= 0, Q || H(Y, 2, this.length); const ie = this[Y + 1] | this[Y] << 8; return 32768 & ie ? 4294901760 | ie : ie; - }, u.prototype.readInt32LE = function(Y, Z) { - return Y >>>= 0, Z || H(Y, 4, this.length), this[Y] | this[Y + 1] << 8 | this[Y + 2] << 16 | this[Y + 3] << 24; - }, u.prototype.readInt32BE = function(Y, Z) { - return Y >>>= 0, Z || H(Y, 4, this.length), this[Y] << 24 | this[Y + 1] << 16 | this[Y + 2] << 8 | this[Y + 3]; + }, u.prototype.readInt32LE = function(Y, Q) { + return Y >>>= 0, Q || H(Y, 4, this.length), this[Y] | this[Y + 1] << 8 | this[Y + 2] << 16 | this[Y + 3] << 24; + }, u.prototype.readInt32BE = function(Y, Q) { + return Y >>>= 0, Q || H(Y, 4, this.length), this[Y] << 24 | this[Y + 1] << 16 | this[Y + 2] << 8 | this[Y + 3]; }, u.prototype.readBigInt64LE = Ne(function(Y) { ce(Y >>>= 0, "offset"); - const Z = this[Y], ie = this[Y + 7]; - Z !== void 0 && ie !== void 0 || pe(Y, this.length - 8); + const Q = this[Y], ie = this[Y + 7]; + Q !== void 0 && ie !== void 0 || pe(Y, this.length - 8); const we = this[Y + 4] + 256 * this[Y + 5] + 65536 * this[Y + 6] + (ie << 24); - return (BigInt(we) << BigInt(32)) + BigInt(Z + 256 * this[++Y] + 65536 * this[++Y] + this[++Y] * 2 ** 24); + return (BigInt(we) << BigInt(32)) + BigInt(Q + 256 * this[++Y] + 65536 * this[++Y] + this[++Y] * 2 ** 24); }), u.prototype.readBigInt64BE = Ne(function(Y) { ce(Y >>>= 0, "offset"); - const Z = this[Y], ie = this[Y + 7]; - Z !== void 0 && ie !== void 0 || pe(Y, this.length - 8); - const we = (Z << 24) + 65536 * this[++Y] + 256 * this[++Y] + this[++Y]; + const Q = this[Y], ie = this[Y + 7]; + Q !== void 0 && ie !== void 0 || pe(Y, this.length - 8); + const we = (Q << 24) + 65536 * this[++Y] + 256 * this[++Y] + this[++Y]; return (BigInt(we) << BigInt(32)) + BigInt(this[++Y] * 2 ** 24 + 65536 * this[++Y] + 256 * this[++Y] + ie); - }), u.prototype.readFloatLE = function(Y, Z) { - return Y >>>= 0, Z || H(Y, 4, this.length), i.read(this, Y, !0, 23, 4); - }, u.prototype.readFloatBE = function(Y, Z) { - return Y >>>= 0, Z || H(Y, 4, this.length), i.read(this, Y, !1, 23, 4); - }, u.prototype.readDoubleLE = function(Y, Z) { - return Y >>>= 0, Z || H(Y, 8, this.length), i.read(this, Y, !0, 52, 8); - }, u.prototype.readDoubleBE = function(Y, Z) { - return Y >>>= 0, Z || H(Y, 8, this.length), i.read(this, Y, !1, 52, 8); - }, u.prototype.writeUintLE = u.prototype.writeUIntLE = function(Y, Z, ie, we) { - Y = +Y, Z >>>= 0, ie >>>= 0, we || q(this, Y, Z, ie, Math.pow(2, 8 * ie) - 1, 0); - let Ee = 1, De = 0; - for (this[Z] = 255 & Y; ++De < ie && (Ee *= 256); ) this[Z + De] = Y / Ee & 255; - return Z + ie; - }, u.prototype.writeUintBE = u.prototype.writeUIntBE = function(Y, Z, ie, we) { - Y = +Y, Z >>>= 0, ie >>>= 0, we || q(this, Y, Z, ie, Math.pow(2, 8 * ie) - 1, 0); - let Ee = ie - 1, De = 1; - for (this[Z + Ee] = 255 & Y; --Ee >= 0 && (De *= 256); ) this[Z + Ee] = Y / De & 255; - return Z + ie; - }, u.prototype.writeUint8 = u.prototype.writeUInt8 = function(Y, Z, ie) { - return Y = +Y, Z >>>= 0, ie || q(this, Y, Z, 1, 255, 0), this[Z] = 255 & Y, Z + 1; - }, u.prototype.writeUint16LE = u.prototype.writeUInt16LE = function(Y, Z, ie) { - return Y = +Y, Z >>>= 0, ie || q(this, Y, Z, 2, 65535, 0), this[Z] = 255 & Y, this[Z + 1] = Y >>> 8, Z + 2; - }, u.prototype.writeUint16BE = u.prototype.writeUInt16BE = function(Y, Z, ie) { - return Y = +Y, Z >>>= 0, ie || q(this, Y, Z, 2, 65535, 0), this[Z] = Y >>> 8, this[Z + 1] = 255 & Y, Z + 2; - }, u.prototype.writeUint32LE = u.prototype.writeUInt32LE = function(Y, Z, ie) { - return Y = +Y, Z >>>= 0, ie || q(this, Y, Z, 4, 4294967295, 0), this[Z + 3] = Y >>> 24, this[Z + 2] = Y >>> 16, this[Z + 1] = Y >>> 8, this[Z] = 255 & Y, Z + 4; - }, u.prototype.writeUint32BE = u.prototype.writeUInt32BE = function(Y, Z, ie) { - return Y = +Y, Z >>>= 0, ie || q(this, Y, Z, 4, 4294967295, 0), this[Z] = Y >>> 24, this[Z + 1] = Y >>> 16, this[Z + 2] = Y >>> 8, this[Z + 3] = 255 & Y, Z + 4; - }, u.prototype.writeBigUInt64LE = Ne(function(Y, Z = 0) { - return W(this, Y, Z, BigInt(0), BigInt("0xffffffffffffffff")); - }), u.prototype.writeBigUInt64BE = Ne(function(Y, Z = 0) { - return $(this, Y, Z, BigInt(0), BigInt("0xffffffffffffffff")); - }), u.prototype.writeIntLE = function(Y, Z, ie, we) { - if (Y = +Y, Z >>>= 0, !we) { + }), u.prototype.readFloatLE = function(Y, Q) { + return Y >>>= 0, Q || H(Y, 4, this.length), i.read(this, Y, !0, 23, 4); + }, u.prototype.readFloatBE = function(Y, Q) { + return Y >>>= 0, Q || H(Y, 4, this.length), i.read(this, Y, !1, 23, 4); + }, u.prototype.readDoubleLE = function(Y, Q) { + return Y >>>= 0, Q || H(Y, 8, this.length), i.read(this, Y, !0, 52, 8); + }, u.prototype.readDoubleBE = function(Y, Q) { + return Y >>>= 0, Q || H(Y, 8, this.length), i.read(this, Y, !1, 52, 8); + }, u.prototype.writeUintLE = u.prototype.writeUIntLE = function(Y, Q, ie, we) { + Y = +Y, Q >>>= 0, ie >>>= 0, we || q(this, Y, Q, ie, Math.pow(2, 8 * ie) - 1, 0); + let Ee = 1, Me = 0; + for (this[Q] = 255 & Y; ++Me < ie && (Ee *= 256); ) this[Q + Me] = Y / Ee & 255; + return Q + ie; + }, u.prototype.writeUintBE = u.prototype.writeUIntBE = function(Y, Q, ie, we) { + Y = +Y, Q >>>= 0, ie >>>= 0, we || q(this, Y, Q, ie, Math.pow(2, 8 * ie) - 1, 0); + let Ee = ie - 1, Me = 1; + for (this[Q + Ee] = 255 & Y; --Ee >= 0 && (Me *= 256); ) this[Q + Ee] = Y / Me & 255; + return Q + ie; + }, u.prototype.writeUint8 = u.prototype.writeUInt8 = function(Y, Q, ie) { + return Y = +Y, Q >>>= 0, ie || q(this, Y, Q, 1, 255, 0), this[Q] = 255 & Y, Q + 1; + }, u.prototype.writeUint16LE = u.prototype.writeUInt16LE = function(Y, Q, ie) { + return Y = +Y, Q >>>= 0, ie || q(this, Y, Q, 2, 65535, 0), this[Q] = 255 & Y, this[Q + 1] = Y >>> 8, Q + 2; + }, u.prototype.writeUint16BE = u.prototype.writeUInt16BE = function(Y, Q, ie) { + return Y = +Y, Q >>>= 0, ie || q(this, Y, Q, 2, 65535, 0), this[Q] = Y >>> 8, this[Q + 1] = 255 & Y, Q + 2; + }, u.prototype.writeUint32LE = u.prototype.writeUInt32LE = function(Y, Q, ie) { + return Y = +Y, Q >>>= 0, ie || q(this, Y, Q, 4, 4294967295, 0), this[Q + 3] = Y >>> 24, this[Q + 2] = Y >>> 16, this[Q + 1] = Y >>> 8, this[Q] = 255 & Y, Q + 4; + }, u.prototype.writeUint32BE = u.prototype.writeUInt32BE = function(Y, Q, ie) { + return Y = +Y, Q >>>= 0, ie || q(this, Y, Q, 4, 4294967295, 0), this[Q] = Y >>> 24, this[Q + 1] = Y >>> 16, this[Q + 2] = Y >>> 8, this[Q + 3] = 255 & Y, Q + 4; + }, u.prototype.writeBigUInt64LE = Ne(function(Y, Q = 0) { + return W(this, Y, Q, BigInt(0), BigInt("0xffffffffffffffff")); + }), u.prototype.writeBigUInt64BE = Ne(function(Y, Q = 0) { + return $(this, Y, Q, BigInt(0), BigInt("0xffffffffffffffff")); + }), u.prototype.writeIntLE = function(Y, Q, ie, we) { + if (Y = +Y, Q >>>= 0, !we) { const Ye = Math.pow(2, 8 * ie - 1); - q(this, Y, Z, ie, Ye - 1, -Ye); + q(this, Y, Q, ie, Ye - 1, -Ye); } - let Ee = 0, De = 1, Ie = 0; - for (this[Z] = 255 & Y; ++Ee < ie && (De *= 256); ) Y < 0 && Ie === 0 && this[Z + Ee - 1] !== 0 && (Ie = 1), this[Z + Ee] = (Y / De | 0) - Ie & 255; - return Z + ie; - }, u.prototype.writeIntBE = function(Y, Z, ie, we) { - if (Y = +Y, Z >>>= 0, !we) { + let Ee = 0, Me = 1, Ie = 0; + for (this[Q] = 255 & Y; ++Ee < ie && (Me *= 256); ) Y < 0 && Ie === 0 && this[Q + Ee - 1] !== 0 && (Ie = 1), this[Q + Ee] = (Y / Me | 0) - Ie & 255; + return Q + ie; + }, u.prototype.writeIntBE = function(Y, Q, ie, we) { + if (Y = +Y, Q >>>= 0, !we) { const Ye = Math.pow(2, 8 * ie - 1); - q(this, Y, Z, ie, Ye - 1, -Ye); - } - let Ee = ie - 1, De = 1, Ie = 0; - for (this[Z + Ee] = 255 & Y; --Ee >= 0 && (De *= 256); ) Y < 0 && Ie === 0 && this[Z + Ee + 1] !== 0 && (Ie = 1), this[Z + Ee] = (Y / De | 0) - Ie & 255; - return Z + ie; - }, u.prototype.writeInt8 = function(Y, Z, ie) { - return Y = +Y, Z >>>= 0, ie || q(this, Y, Z, 1, 127, -128), Y < 0 && (Y = 255 + Y + 1), this[Z] = 255 & Y, Z + 1; - }, u.prototype.writeInt16LE = function(Y, Z, ie) { - return Y = +Y, Z >>>= 0, ie || q(this, Y, Z, 2, 32767, -32768), this[Z] = 255 & Y, this[Z + 1] = Y >>> 8, Z + 2; - }, u.prototype.writeInt16BE = function(Y, Z, ie) { - return Y = +Y, Z >>>= 0, ie || q(this, Y, Z, 2, 32767, -32768), this[Z] = Y >>> 8, this[Z + 1] = 255 & Y, Z + 2; - }, u.prototype.writeInt32LE = function(Y, Z, ie) { - return Y = +Y, Z >>>= 0, ie || q(this, Y, Z, 4, 2147483647, -2147483648), this[Z] = 255 & Y, this[Z + 1] = Y >>> 8, this[Z + 2] = Y >>> 16, this[Z + 3] = Y >>> 24, Z + 4; - }, u.prototype.writeInt32BE = function(Y, Z, ie) { - return Y = +Y, Z >>>= 0, ie || q(this, Y, Z, 4, 2147483647, -2147483648), Y < 0 && (Y = 4294967295 + Y + 1), this[Z] = Y >>> 24, this[Z + 1] = Y >>> 16, this[Z + 2] = Y >>> 8, this[Z + 3] = 255 & Y, Z + 4; - }, u.prototype.writeBigInt64LE = Ne(function(Y, Z = 0) { - return W(this, Y, Z, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff")); - }), u.prototype.writeBigInt64BE = Ne(function(Y, Z = 0) { - return $(this, Y, Z, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff")); - }), u.prototype.writeFloatLE = function(Y, Z, ie) { - return X(this, Y, Z, !0, ie); - }, u.prototype.writeFloatBE = function(Y, Z, ie) { - return X(this, Y, Z, !1, ie); - }, u.prototype.writeDoubleLE = function(Y, Z, ie) { - return Q(this, Y, Z, !0, ie); - }, u.prototype.writeDoubleBE = function(Y, Z, ie) { - return Q(this, Y, Z, !1, ie); - }, u.prototype.copy = function(Y, Z, ie, we) { + q(this, Y, Q, ie, Ye - 1, -Ye); + } + let Ee = ie - 1, Me = 1, Ie = 0; + for (this[Q + Ee] = 255 & Y; --Ee >= 0 && (Me *= 256); ) Y < 0 && Ie === 0 && this[Q + Ee + 1] !== 0 && (Ie = 1), this[Q + Ee] = (Y / Me | 0) - Ie & 255; + return Q + ie; + }, u.prototype.writeInt8 = function(Y, Q, ie) { + return Y = +Y, Q >>>= 0, ie || q(this, Y, Q, 1, 127, -128), Y < 0 && (Y = 255 + Y + 1), this[Q] = 255 & Y, Q + 1; + }, u.prototype.writeInt16LE = function(Y, Q, ie) { + return Y = +Y, Q >>>= 0, ie || q(this, Y, Q, 2, 32767, -32768), this[Q] = 255 & Y, this[Q + 1] = Y >>> 8, Q + 2; + }, u.prototype.writeInt16BE = function(Y, Q, ie) { + return Y = +Y, Q >>>= 0, ie || q(this, Y, Q, 2, 32767, -32768), this[Q] = Y >>> 8, this[Q + 1] = 255 & Y, Q + 2; + }, u.prototype.writeInt32LE = function(Y, Q, ie) { + return Y = +Y, Q >>>= 0, ie || q(this, Y, Q, 4, 2147483647, -2147483648), this[Q] = 255 & Y, this[Q + 1] = Y >>> 8, this[Q + 2] = Y >>> 16, this[Q + 3] = Y >>> 24, Q + 4; + }, u.prototype.writeInt32BE = function(Y, Q, ie) { + return Y = +Y, Q >>>= 0, ie || q(this, Y, Q, 4, 2147483647, -2147483648), Y < 0 && (Y = 4294967295 + Y + 1), this[Q] = Y >>> 24, this[Q + 1] = Y >>> 16, this[Q + 2] = Y >>> 8, this[Q + 3] = 255 & Y, Q + 4; + }, u.prototype.writeBigInt64LE = Ne(function(Y, Q = 0) { + return W(this, Y, Q, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff")); + }), u.prototype.writeBigInt64BE = Ne(function(Y, Q = 0) { + return $(this, Y, Q, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff")); + }), u.prototype.writeFloatLE = function(Y, Q, ie) { + return X(this, Y, Q, !0, ie); + }, u.prototype.writeFloatBE = function(Y, Q, ie) { + return X(this, Y, Q, !1, ie); + }, u.prototype.writeDoubleLE = function(Y, Q, ie) { + return Z(this, Y, Q, !0, ie); + }, u.prototype.writeDoubleBE = function(Y, Q, ie) { + return Z(this, Y, Q, !1, ie); + }, u.prototype.copy = function(Y, Q, ie, we) { if (!u.isBuffer(Y)) throw new TypeError("argument should be a Buffer"); - if (ie || (ie = 0), we || we === 0 || (we = this.length), Z >= Y.length && (Z = Y.length), Z || (Z = 0), we > 0 && we < ie && (we = ie), we === ie || Y.length === 0 || this.length === 0) return 0; - if (Z < 0) throw new RangeError("targetStart out of bounds"); + if (ie || (ie = 0), we || we === 0 || (we = this.length), Q >= Y.length && (Q = Y.length), Q || (Q = 0), we > 0 && we < ie && (we = ie), we === ie || Y.length === 0 || this.length === 0) return 0; + if (Q < 0) throw new RangeError("targetStart out of bounds"); if (ie < 0 || ie >= this.length) throw new RangeError("Index out of range"); if (we < 0) throw new RangeError("sourceEnd out of bounds"); - we > this.length && (we = this.length), Y.length - Z < we - ie && (we = Y.length - Z + ie); + we > this.length && (we = this.length), Y.length - Q < we - ie && (we = Y.length - Q + ie); const Ee = we - ie; - return this === Y && typeof Uint8Array.prototype.copyWithin == "function" ? this.copyWithin(Z, ie, we) : Uint8Array.prototype.set.call(Y, this.subarray(ie, we), Z), Ee; - }, u.prototype.fill = function(Y, Z, ie, we) { + return this === Y && typeof Uint8Array.prototype.copyWithin == "function" ? this.copyWithin(Q, ie, we) : Uint8Array.prototype.set.call(Y, this.subarray(ie, we), Q), Ee; + }, u.prototype.fill = function(Y, Q, ie, we) { if (typeof Y == "string") { - if (typeof Z == "string" ? (we = Z, Z = 0, ie = this.length) : typeof ie == "string" && (we = ie, ie = this.length), we !== void 0 && typeof we != "string") throw new TypeError("encoding must be a string"); + if (typeof Q == "string" ? (we = Q, Q = 0, ie = this.length) : typeof ie == "string" && (we = ie, ie = this.length), we !== void 0 && typeof we != "string") throw new TypeError("encoding must be a string"); if (typeof we == "string" && !u.isEncoding(we)) throw new TypeError("Unknown encoding: " + we); if (Y.length === 1) { - const De = Y.charCodeAt(0); - (we === "utf8" && De < 128 || we === "latin1") && (Y = De); + const Me = Y.charCodeAt(0); + (we === "utf8" && Me < 128 || we === "latin1") && (Y = Me); } } else typeof Y == "number" ? Y &= 255 : typeof Y == "boolean" && (Y = Number(Y)); - if (Z < 0 || this.length < Z || this.length < ie) throw new RangeError("Out of range index"); - if (ie <= Z) return this; + if (Q < 0 || this.length < Q || this.length < ie) throw new RangeError("Out of range index"); + if (ie <= Q) return this; let Ee; - if (Z >>>= 0, ie = ie === void 0 ? this.length : ie >>> 0, Y || (Y = 0), typeof Y == "number") for (Ee = Z; Ee < ie; ++Ee) this[Ee] = Y; + if (Q >>>= 0, ie = ie === void 0 ? this.length : ie >>> 0, Y || (Y = 0), typeof Y == "number") for (Ee = Q; Ee < ie; ++Ee) this[Ee] = Y; else { - const De = u.isBuffer(Y) ? Y : u.from(Y, we), Ie = De.length; + const Me = u.isBuffer(Y) ? Y : u.from(Y, we), Ie = Me.length; if (Ie === 0) throw new TypeError('The value "' + Y + '" is invalid for argument "value"'); - for (Ee = 0; Ee < ie - Z; ++Ee) this[Ee + Z] = De[Ee % Ie]; + for (Ee = 0; Ee < ie - Q; ++Ee) this[Ee + Q] = Me[Ee % Ie]; } return this; }; const ue = {}; - function re(Y, Z, ie) { + function re(Y, Q, ie) { ue[Y] = class extends ie { constructor() { - super(), Object.defineProperty(this, "message", { value: Z.apply(this, arguments), writable: !0, configurable: !0 }), this.name = `${this.name} [${Y}]`, this.stack, delete this.name; + super(), Object.defineProperty(this, "message", { value: Q.apply(this, arguments), writable: !0, configurable: !0 }), this.name = `${this.name} [${Y}]`, this.stack, delete this.name; } get code() { return Y; @@ -49250,109 +49262,109 @@ var fae = { 5: function(r, e, t) { }; } function ne(Y) { - let Z = "", ie = Y.length; + let Q = "", ie = Y.length; const we = Y[0] === "-" ? 1 : 0; - for (; ie >= we + 4; ie -= 3) Z = `_${Y.slice(ie - 3, ie)}${Z}`; - return `${Y.slice(0, ie)}${Z}`; + for (; ie >= we + 4; ie -= 3) Q = `_${Y.slice(ie - 3, ie)}${Q}`; + return `${Y.slice(0, ie)}${Q}`; } - function le(Y, Z, ie, we, Ee, De) { - if (Y > ie || Y < Z) { - const Ie = typeof Z == "bigint" ? "n" : ""; + function le(Y, Q, ie, we, Ee, Me) { + if (Y > ie || Y < Q) { + const Ie = typeof Q == "bigint" ? "n" : ""; let Ye; - throw Ye = Z === 0 || Z === BigInt(0) ? `>= 0${Ie} and < 2${Ie} ** ${8 * (De + 1)}${Ie}` : `>= -(2${Ie} ** ${8 * (De + 1) - 1}${Ie}) and < 2 ** ${8 * (De + 1) - 1}${Ie}`, new ue.ERR_OUT_OF_RANGE("value", Ye, Y); + throw Ye = Q === 0 || Q === BigInt(0) ? `>= 0${Ie} and < 2${Ie} ** ${8 * (Me + 1)}${Ie}` : `>= -(2${Ie} ** ${8 * (Me + 1) - 1}${Ie}) and < 2 ** ${8 * (Me + 1) - 1}${Ie}`, new ue.ERR_OUT_OF_RANGE("value", Ye, Y); } (function(Ie, Ye, ot) { ce(Ye, "offset"), Ie[Ye] !== void 0 && Ie[Ye + ot] !== void 0 || pe(Ye, Ie.length - (ot + 1)); - })(we, Ee, De); + })(we, Ee, Me); } - function ce(Y, Z) { - if (typeof Y != "number") throw new ue.ERR_INVALID_ARG_TYPE(Z, "number", Y); + function ce(Y, Q) { + if (typeof Y != "number") throw new ue.ERR_INVALID_ARG_TYPE(Q, "number", Y); } - function pe(Y, Z, ie) { - throw Math.floor(Y) !== Y ? (ce(Y, ie), new ue.ERR_OUT_OF_RANGE("offset", "an integer", Y)) : Z < 0 ? new ue.ERR_BUFFER_OUT_OF_BOUNDS() : new ue.ERR_OUT_OF_RANGE("offset", `>= 0 and <= ${Z}`, Y); + function pe(Y, Q, ie) { + throw Math.floor(Y) !== Y ? (ce(Y, ie), new ue.ERR_OUT_OF_RANGE("offset", "an integer", Y)) : Q < 0 ? new ue.ERR_BUFFER_OUT_OF_BOUNDS() : new ue.ERR_OUT_OF_RANGE("offset", `>= 0 and <= ${Q}`, Y); } re("ERR_BUFFER_OUT_OF_BOUNDS", function(Y) { return Y ? `${Y} is outside of buffer bounds` : "Attempt to access memory outside buffer bounds"; - }, RangeError), re("ERR_INVALID_ARG_TYPE", function(Y, Z) { - return `The "${Y}" argument must be of type number. Received type ${typeof Z}`; - }, TypeError), re("ERR_OUT_OF_RANGE", function(Y, Z, ie) { + }, RangeError), re("ERR_INVALID_ARG_TYPE", function(Y, Q) { + return `The "${Y}" argument must be of type number. Received type ${typeof Q}`; + }, TypeError), re("ERR_OUT_OF_RANGE", function(Y, Q, ie) { let we = `The value of "${Y}" is out of range.`, Ee = ie; - return Number.isInteger(ie) && Math.abs(ie) > 2 ** 32 ? Ee = ne(String(ie)) : typeof ie == "bigint" && (Ee = String(ie), (ie > BigInt(2) ** BigInt(32) || ie < -(BigInt(2) ** BigInt(32))) && (Ee = ne(Ee)), Ee += "n"), we += ` It must be ${Z}. Received ${Ee}`, we; + return Number.isInteger(ie) && Math.abs(ie) > 2 ** 32 ? Ee = ne(String(ie)) : typeof ie == "bigint" && (Ee = String(ie), (ie > BigInt(2) ** BigInt(32) || ie < -(BigInt(2) ** BigInt(32))) && (Ee = ne(Ee)), Ee += "n"), we += ` It must be ${Q}. Received ${Ee}`, we; }, RangeError); const fe = /[^+/0-9A-Za-z-_]/g; - function se(Y, Z) { + function se(Y, Q) { let ie; - Z = Z || 1 / 0; + Q = Q || 1 / 0; const we = Y.length; let Ee = null; - const De = []; + const Me = []; for (let Ie = 0; Ie < we; ++Ie) { if (ie = Y.charCodeAt(Ie), ie > 55295 && ie < 57344) { if (!Ee) { if (ie > 56319) { - (Z -= 3) > -1 && De.push(239, 191, 189); + (Q -= 3) > -1 && Me.push(239, 191, 189); continue; } if (Ie + 1 === we) { - (Z -= 3) > -1 && De.push(239, 191, 189); + (Q -= 3) > -1 && Me.push(239, 191, 189); continue; } Ee = ie; continue; } if (ie < 56320) { - (Z -= 3) > -1 && De.push(239, 191, 189), Ee = ie; + (Q -= 3) > -1 && Me.push(239, 191, 189), Ee = ie; continue; } ie = 65536 + (Ee - 55296 << 10 | ie - 56320); - } else Ee && (Z -= 3) > -1 && De.push(239, 191, 189); + } else Ee && (Q -= 3) > -1 && Me.push(239, 191, 189); if (Ee = null, ie < 128) { - if ((Z -= 1) < 0) break; - De.push(ie); + if ((Q -= 1) < 0) break; + Me.push(ie); } else if (ie < 2048) { - if ((Z -= 2) < 0) break; - De.push(ie >> 6 | 192, 63 & ie | 128); + if ((Q -= 2) < 0) break; + Me.push(ie >> 6 | 192, 63 & ie | 128); } else if (ie < 65536) { - if ((Z -= 3) < 0) break; - De.push(ie >> 12 | 224, ie >> 6 & 63 | 128, 63 & ie | 128); + if ((Q -= 3) < 0) break; + Me.push(ie >> 12 | 224, ie >> 6 & 63 | 128, 63 & ie | 128); } else { if (!(ie < 1114112)) throw new Error("Invalid code point"); - if ((Z -= 4) < 0) break; - De.push(ie >> 18 | 240, ie >> 12 & 63 | 128, ie >> 6 & 63 | 128, 63 & ie | 128); + if ((Q -= 4) < 0) break; + Me.push(ie >> 18 | 240, ie >> 12 & 63 | 128, ie >> 6 & 63 | 128, 63 & ie | 128); } } - return De; + return Me; } function de(Y) { - return n.toByteArray((function(Z) { - if ((Z = (Z = Z.split("=")[0]).trim().replace(fe, "")).length < 2) return ""; - for (; Z.length % 4 != 0; ) Z += "="; - return Z; + return n.toByteArray((function(Q) { + if ((Q = (Q = Q.split("=")[0]).trim().replace(fe, "")).length < 2) return ""; + for (; Q.length % 4 != 0; ) Q += "="; + return Q; })(Y)); } - function ge(Y, Z, ie, we) { + function ge(Y, Q, ie, we) { let Ee; - for (Ee = 0; Ee < we && !(Ee + ie >= Z.length || Ee >= Y.length); ++Ee) Z[Ee + ie] = Y[Ee]; + for (Ee = 0; Ee < we && !(Ee + ie >= Q.length || Ee >= Y.length); ++Ee) Q[Ee + ie] = Y[Ee]; return Ee; } - function Oe(Y, Z) { - return Y instanceof Z || Y != null && Y.constructor != null && Y.constructor.name != null && Y.constructor.name === Z.name; + function Oe(Y, Q) { + return Y instanceof Q || Y != null && Y.constructor != null && Y.constructor.name != null && Y.constructor.name === Q.name; } function ke(Y) { return Y != Y; } - const Me = (function() { - const Y = "0123456789abcdef", Z = new Array(256); + const De = (function() { + const Y = "0123456789abcdef", Q = new Array(256); for (let ie = 0; ie < 16; ++ie) { const we = 16 * ie; - for (let Ee = 0; Ee < 16; ++Ee) Z[we + Ee] = Y[ie] + Y[Ee]; + for (let Ee = 0; Ee < 16; ++Ee) Q[we + Ee] = Y[ie] + Y[Ee]; } - return Z; + return Q; })(); function Ne(Y) { - return typeof BigInt > "u" ? Ce : Y; + return typeof BigInt > "u" ? Te : Y; } - function Ce() { + function Te() { throw new Error("BigInt not supported"); } }, 1053: (r, e) => { @@ -49393,7 +49405,7 @@ var fae = { 5: function(r, e, t) { return b(y._config, y._log); }))), this._transformer; }, enumerable: !1, configurable: !0 }), g.prototype.run = function(y, b, _) { - var m = _ === void 0 ? {} : _, x = m.bookmarks, S = m.txConfig, O = m.database, E = m.mode, T = m.impersonatedUser, P = m.notificationFilter, I = m.beforeKeys, k = m.afterKeys, L = m.beforeError, B = m.afterError, j = m.beforeComplete, z = m.afterComplete, H = m.flush, q = H === void 0 || H, W = m.reactive, $ = W !== void 0 && W, J = m.fetchSize, X = J === void 0 ? d : J, Q = m.highRecordWatermark, ue = Q === void 0 ? Number.MAX_VALUE : Q, re = m.lowRecordWatermark, ne = re === void 0 ? Number.MAX_VALUE : re, le = m.onDb, ce = new l.ResultStreamObserver({ server: this._server, reactive: $, fetchSize: X, moreFunction: this._requestMore.bind(this), discardFunction: this._requestDiscard.bind(this), beforeKeys: I, afterKeys: k, beforeError: L, afterError: B, beforeComplete: j, afterComplete: z, highRecordWatermark: ue, lowRecordWatermark: ne, enrichMetadata: this._enrichMetadata, onDb: le }), pe = $; + var m = _ === void 0 ? {} : _, x = m.bookmarks, S = m.txConfig, O = m.database, E = m.mode, T = m.impersonatedUser, P = m.notificationFilter, I = m.beforeKeys, k = m.afterKeys, L = m.beforeError, B = m.afterError, j = m.beforeComplete, z = m.afterComplete, H = m.flush, q = H === void 0 || H, W = m.reactive, $ = W !== void 0 && W, J = m.fetchSize, X = J === void 0 ? d : J, Z = m.highRecordWatermark, ue = Z === void 0 ? Number.MAX_VALUE : Z, re = m.lowRecordWatermark, ne = re === void 0 ? Number.MAX_VALUE : re, le = m.onDb, ce = new l.ResultStreamObserver({ server: this._server, reactive: $, fetchSize: X, moreFunction: this._requestMore.bind(this), discardFunction: this._requestDiscard.bind(this), beforeKeys: I, afterKeys: k, beforeError: L, afterError: B, beforeComplete: j, afterComplete: z, highRecordWatermark: ue, lowRecordWatermark: ne, enrichMetadata: this._enrichMetadata, onDb: le }), pe = $; return this.write(u.default.runWithMetadata5x5(y, b, { bookmarks: x, txConfig: S, database: O, mode: E, impersonatedUser: T, notificationFilter: P }), ce, pe && q), $ || this.write(u.default.pull({ n: X }), ce, q), ce; }, g; })(a.default); @@ -49478,7 +49490,7 @@ var fae = { 5: function(r, e, t) { J(ne); } } - function Q(re) { + function Z(re) { try { ue(W.throw(re)); } catch (ne) { @@ -49489,7 +49501,7 @@ var fae = { 5: function(r, e, t) { var ne; re.done ? $(re.value) : (ne = re.value, ne instanceof q ? ne : new q(function(le) { le(ne); - })).then(X, Q); + })).then(X, Z); } ue((W = W.apply(z, H || [])).next()); }); @@ -49498,10 +49510,10 @@ var fae = { 5: function(r, e, t) { if (1 & $[0]) throw $[1]; return $[1]; }, trys: [], ops: [] }; - return J = { next: Q(0), throw: Q(1), return: Q(2) }, typeof Symbol == "function" && (J[Symbol.iterator] = function() { + return J = { next: Z(0), throw: Z(1), return: Z(2) }, typeof Symbol == "function" && (J[Symbol.iterator] = function() { return this; }), J; - function Q(ue) { + function Z(ue) { return function(re) { return (function(ne) { if (q) throw new TypeError("Generator is already executing."); @@ -49708,7 +49720,7 @@ var fae = { 5: function(r, e, t) { if ("encrypted" in q || "trust" in q) throw new Error("Encryption/trust can only be configured either through URL or config, not both"); q.encrypted = g, q.trust = W, q.clientCertificate = (0, u.resolveCertificateProvider)(q.clientCertificate); } - var Q = (function(ne) { + var Z = (function(ne) { if (typeof (le = ne) == "object" && le != null && "getToken" in le && "handleSecurityException" in le && typeof le.getToken == "function" && typeof le.handleSecurityException == "function") return ne; var le, ce = ne; return (ce = ce || {}).scheme = ce.scheme || "none", (0, u.staticAuthTokenManager)({ authToken: ce }); @@ -49717,11 +49729,11 @@ var fae = { 5: function(r, e, t) { var ue = _.fromUrl($.hostAndPort), re = { address: ue, typename: J ? "Routing" : "Direct", routing: J }; return new o.Driver(re, q, (function() { if (J) return function(ne, le, ce, pe) { - return new l.RoutingConnectionProvider({ id: ne, config: le, log: ce, hostNameResolver: pe, authTokenManager: Q, address: ue, userAgent: le.userAgent, boltAgent: le.boltAgent, routingContext: $.query }); + return new l.RoutingConnectionProvider({ id: ne, config: le, log: ce, hostNameResolver: pe, authTokenManager: Z, address: ue, userAgent: le.userAgent, boltAgent: le.boltAgent, routingContext: $.query }); }; if (!b($.query)) throw new Error("Parameters are not supported with none routed scheme. Given URL: '".concat(z, "'")); return function(ne, le, ce) { - return new l.DirectConnectionProvider({ id: ne, config: le, log: ce, authTokenManager: Q, address: ue, userAgent: le.userAgent, boltAgent: le.boltAgent }); + return new l.DirectConnectionProvider({ id: ne, config: le, log: ce, authTokenManager: Z, address: ue, userAgent: le.userAgent, boltAgent: le.boltAgent }); }; })()); } @@ -50447,10 +50459,10 @@ var fae = { 5: function(r, e, t) { var O = S.routingContext, E = O === void 0 ? {} : O, T = S.databaseName, P = T === void 0 ? null : T, I = S.impersonatedUser, k = I === void 0 ? null : I, L = S.sessionContext, B = L === void 0 ? {} : L, j = S.onError, z = S.onCompleted, H = new l.RouteObserver({ onProtocolError: this._onProtocolError, onError: j, onCompleted: z }), q = B.bookmarks || b.empty(); return this.write(u.default.routeV4x4(E, q.values(), { databaseName: P, impersonatedUser: k }), H, !0), H; }, x.prototype.run = function(S, O, E) { - var T = E === void 0 ? {} : E, P = T.bookmarks, I = T.txConfig, k = T.database, L = T.mode, B = T.impersonatedUser, j = T.notificationFilter, z = T.beforeKeys, H = T.afterKeys, q = T.beforeError, W = T.afterError, $ = T.beforeComplete, J = T.afterComplete, X = T.flush, Q = X === void 0 || X, ue = T.reactive, re = ue !== void 0 && ue, ne = T.fetchSize, le = ne === void 0 ? y : ne, ce = T.highRecordWatermark, pe = ce === void 0 ? Number.MAX_VALUE : ce, fe = T.lowRecordWatermark, se = fe === void 0 ? Number.MAX_VALUE : fe, de = new l.ResultStreamObserver({ server: this._server, reactive: re, fetchSize: le, moreFunction: this._requestMore.bind(this), discardFunction: this._requestDiscard.bind(this), beforeKeys: z, afterKeys: H, beforeError: q, afterError: W, beforeComplete: $, afterComplete: J, highRecordWatermark: pe, lowRecordWatermark: se }); + var T = E === void 0 ? {} : E, P = T.bookmarks, I = T.txConfig, k = T.database, L = T.mode, B = T.impersonatedUser, j = T.notificationFilter, z = T.beforeKeys, H = T.afterKeys, q = T.beforeError, W = T.afterError, $ = T.beforeComplete, J = T.afterComplete, X = T.flush, Z = X === void 0 || X, ue = T.reactive, re = ue !== void 0 && ue, ne = T.fetchSize, le = ne === void 0 ? y : ne, ce = T.highRecordWatermark, pe = ce === void 0 ? Number.MAX_VALUE : ce, fe = T.lowRecordWatermark, se = fe === void 0 ? Number.MAX_VALUE : fe, de = new l.ResultStreamObserver({ server: this._server, reactive: re, fetchSize: le, moreFunction: this._requestMore.bind(this), discardFunction: this._requestDiscard.bind(this), beforeKeys: z, afterKeys: H, beforeError: q, afterError: W, beforeComplete: $, afterComplete: J, highRecordWatermark: pe, lowRecordWatermark: se }); (0, c.assertNotificationFilterIsEmpty)(j, this._onProtocolError, de); var ge = re; - return this.write(u.default.runWithMetadata(S, O, { bookmarks: P, txConfig: I, database: k, mode: L, impersonatedUser: B }), de, ge && Q), re || this.write(u.default.pull({ n: le }), de, Q), de; + return this.write(u.default.runWithMetadata(S, O, { bookmarks: P, txConfig: I, database: k, mode: L, impersonatedUser: B }), de, ge && Z), re || this.write(u.default.pull({ n: le }), de, Z), de; }, x.prototype.beginTransaction = function(S) { var O = S === void 0 ? {} : S, E = O.bookmarks, T = O.txConfig, P = O.database, I = O.mode, k = O.impersonatedUser, L = O.notificationFilter, B = O.beforeError, j = O.afterError, z = O.beforeComplete, H = O.afterComplete, q = new l.ResultStreamObserver({ server: this._server, beforeError: B, afterError: j, beforeComplete: z, afterComplete: H }); return q.prepareToHandleSingleResponse(), (0, c.assertNotificationFilterIsEmpty)(L, this._onProtocolError, q), this.write(u.default.begin({ bookmarks: E, txConfig: T, database: P, mode: I, impersonatedUser: k }), q, !0), q; @@ -51486,7 +51498,7 @@ var fae = { 5: function(r, e, t) { var T = E === void 0 ? {} : E, P = T.bookmarks, I = T.txConfig, k = T.database, L = T.impersonatedUser, B = T.notificationFilter, j = T.mode, z = T.beforeError, H = T.afterError, q = T.beforeComplete, W = T.afterComplete, $ = new l.ResultStreamObserver({ server: this._server, beforeError: z, afterError: H, beforeComplete: q, afterComplete: W }); return $.prepareToHandleSingleResponse(), (0, u.assertImpersonatedUserIsEmpty)(L, this._onProtocolError, $), (0, u.assertNotificationFilterIsEmpty)(B, this._onProtocolError, $), this.write(s.default.begin({ bookmarks: P, txConfig: I, database: k, mode: j }), $, !0), $; }, O.prototype.run = function(E, T, P) { - var I = P === void 0 ? {} : P, k = I.bookmarks, L = I.txConfig, B = I.database, j = I.impersonatedUser, z = I.notificationFilter, H = I.mode, q = I.beforeKeys, W = I.afterKeys, $ = I.beforeError, J = I.afterError, X = I.beforeComplete, Q = I.afterComplete, ue = I.flush, re = ue === void 0 || ue, ne = I.reactive, le = ne !== void 0 && ne, ce = I.fetchSize, pe = ce === void 0 ? g : ce, fe = I.highRecordWatermark, se = fe === void 0 ? Number.MAX_VALUE : fe, de = I.lowRecordWatermark, ge = de === void 0 ? Number.MAX_VALUE : de, Oe = new l.ResultStreamObserver({ server: this._server, reactive: le, fetchSize: pe, moreFunction: this._requestMore.bind(this), discardFunction: this._requestDiscard.bind(this), beforeKeys: q, afterKeys: W, beforeError: $, afterError: J, beforeComplete: X, afterComplete: Q, highRecordWatermark: se, lowRecordWatermark: ge }); + var I = P === void 0 ? {} : P, k = I.bookmarks, L = I.txConfig, B = I.database, j = I.impersonatedUser, z = I.notificationFilter, H = I.mode, q = I.beforeKeys, W = I.afterKeys, $ = I.beforeError, J = I.afterError, X = I.beforeComplete, Z = I.afterComplete, ue = I.flush, re = ue === void 0 || ue, ne = I.reactive, le = ne !== void 0 && ne, ce = I.fetchSize, pe = ce === void 0 ? g : ce, fe = I.highRecordWatermark, se = fe === void 0 ? Number.MAX_VALUE : fe, de = I.lowRecordWatermark, ge = de === void 0 ? Number.MAX_VALUE : de, Oe = new l.ResultStreamObserver({ server: this._server, reactive: le, fetchSize: pe, moreFunction: this._requestMore.bind(this), discardFunction: this._requestDiscard.bind(this), beforeKeys: q, afterKeys: W, beforeError: $, afterError: J, beforeComplete: X, afterComplete: Z, highRecordWatermark: se, lowRecordWatermark: ge }); (0, u.assertImpersonatedUserIsEmpty)(j, this._onProtocolError, Oe), (0, u.assertNotificationFilterIsEmpty)(z, this._onProtocolError, Oe); var ke = le; return this.write(s.default.runWithMetadata(E, T, { bookmarks: k, txConfig: L, database: B, mode: H }), Oe, ke && re), le || this.write(s.default.pull({ n: pe }), Oe, re), Oe; @@ -52193,15 +52205,15 @@ var fae = { 5: function(r, e, t) { }; }, 3206: (r, e, t) => { r.exports = function(E) { - var T, P, I, k = 0, L = 0, B = u, j = [], z = [], H = 1, q = 0, W = 0, $ = !1, J = !1, X = "", Q = a, ue = n; - (E = E || {}).version === "300 es" && (Q = s, ue = o); + var T, P, I, k = 0, L = 0, B = u, j = [], z = [], H = 1, q = 0, W = 0, $ = !1, J = !1, X = "", Z = a, ue = n; + (E = E || {}).version === "300 es" && (Z = s, ue = o); var re = {}, ne = {}; - for (k = 0; k < Q.length; k++) re[Q[k]] = !0; + for (k = 0; k < Z.length; k++) re[Z[k]] = !0; for (k = 0; k < ue.length; k++) ne[ue[k]] = !0; return function(Y) { - return z = [], Y !== null ? (function(Z) { + return z = [], Y !== null ? (function(Q) { var ie; - for (k = 0, Z.toString && (Z = Z.toString()), X += Z.replace(/\r\n/g, ` + for (k = 0, Q.toString && (Q = Q.toString()), X += Q.replace(/\r\n/g, ` `), I = X.length; T = X[k], k < I; ) { switch (ie = k, B) { case c: @@ -52217,7 +52229,7 @@ var fae = { 5: function(r, e, t) { k = ge(); break; case p: - k = Me(); + k = De(); break; case S: k = ke(); @@ -52226,7 +52238,7 @@ var fae = { 5: function(r, e, t) { k = Ne(); break; case l: - k = Ce(); + k = Te(); break; case m: k = pe(); @@ -52279,8 +52291,8 @@ var fae = { 5: function(r, e, t) { return j.push(T), P = T, k + 1; } function Oe(Y) { - for (var Z, ie, we = 0; ; ) { - if (Z = i.indexOf(Y.slice(0, Y.length + we).join("")), ie = i[Z], Z === -1) { + for (var Q, ie, we = 0; ; ) { + if (Q = i.indexOf(Y.slice(0, Y.length + we).join("")), ie = i[Q], Q === -1) { if (we-- + Y.length > 0) continue; ie = Y.slice(0, 1).join(""); } @@ -52290,13 +52302,13 @@ var fae = { 5: function(r, e, t) { function ke() { return /[^a-fA-F0-9]/.test(T) ? (le(j.join("")), B = u, k) : (j.push(T), P = T, k + 1); } - function Me() { + function De() { return T === "." || /[eE]/.test(T) ? (j.push(T), B = g, P = T, k + 1) : T === "x" && j.length === 1 && j[0] === "0" ? (B = S, j.push(T), P = T, k + 1) : /[^\d]/.test(T) ? (le(j.join("")), B = u, k) : (j.push(T), P = T, k + 1); } function Ne() { return T === "f" && (j.push(T), P = T, k += 1), /[eE]/.test(T) ? (j.push(T), P = T, k + 1) : (T !== "-" && T !== "+" || !/[eE]/.test(P)) && /[^\d]/.test(T) ? (le(j.join("")), B = u, k) : (j.push(T), P = T, k + 1); } - function Ce() { + function Te() { if (/[^\d\w_]/.test(T)) { var Y = j.join(""); return B = ne[Y] ? _ : re[Y] ? b : y, le(j.join("")), B = u, k; @@ -54879,10 +54891,10 @@ var fae = { 5: function(r, e, t) { }, 5250: function(r, e, t) { var n; r = t.nmd(r), (function() { - var i, a = "Expected a function", o = "__lodash_hash_undefined__", s = "__lodash_placeholder__", u = 32, l = 128, c = 1 / 0, f = 9007199254740991, d = NaN, h = 4294967295, p = [["ary", l], ["bind", 1], ["bindKey", 2], ["curry", 8], ["curryRight", 16], ["flip", 512], ["partial", u], ["partialRight", 64], ["rearg", 256]], g = "[object Arguments]", y = "[object Array]", b = "[object Boolean]", _ = "[object Date]", m = "[object Error]", x = "[object Function]", S = "[object GeneratorFunction]", O = "[object Map]", E = "[object Number]", T = "[object Object]", P = "[object Promise]", I = "[object RegExp]", k = "[object Set]", L = "[object String]", B = "[object Symbol]", j = "[object WeakMap]", z = "[object ArrayBuffer]", H = "[object DataView]", q = "[object Float32Array]", W = "[object Float64Array]", $ = "[object Int8Array]", J = "[object Int16Array]", X = "[object Int32Array]", Q = "[object Uint8Array]", ue = "[object Uint8ClampedArray]", re = "[object Uint16Array]", ne = "[object Uint32Array]", le = /\b__p \+= '';/g, ce = /\b(__p \+=) '' \+/g, pe = /(__e\(.*?\)|\b__t\)) \+\n'';/g, fe = /&(?:amp|lt|gt|quot|#39);/g, se = /[&<>"']/g, de = RegExp(fe.source), ge = RegExp(se.source), Oe = /<%-([\s\S]+?)%>/g, ke = /<%([\s\S]+?)%>/g, Me = /<%=([\s\S]+?)%>/g, Ne = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, Ce = /^\w*$/, Y = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, Z = /[\\^$.*+?()[\]{}|]/g, ie = RegExp(Z.source), we = /^\s+/, Ee = /\s/, De = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/, Ie = /\{\n\/\* \[wrapped with (.+)\] \*/, Ye = /,? & /, ot = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g, mt = /[()=,{}\[\]\/\s]/, wt = /\\(\\)?/g, Mt = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g, Dt = /\w*$/, vt = /^[-+]0x[0-9a-f]+$/i, tt = /^0b[01]+$/i, _e = /^\[object .+?Constructor\]$/, Ue = /^0o[0-7]+$/i, Qe = /^(?:0|[1-9]\d*)$/, Ze = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, nt = /($^)/, It = /['\n\r\u2028\u2029\\]/g, ct = "\\ud800-\\udfff", Lt = "\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff", Rt = "\\u2700-\\u27bf", jt = "a-z\\xdf-\\xf6\\xf8-\\xff", Yt = "A-Z\\xc0-\\xd6\\xd8-\\xde", sr = "\\ufe0e\\ufe0f", Ut = "\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000", Rr = "[" + ct + "]", Xt = "[" + Ut + "]", Vr = "[" + Lt + "]", Br = "\\d+", mr = "[" + Rt + "]", ur = "[" + jt + "]", sn = "[^" + ct + Ut + Br + Rt + jt + Yt + "]", Fr = "\\ud83c[\\udffb-\\udfff]", un = "[^" + ct + "]", bn = "(?:\\ud83c[\\udde6-\\uddff]){2}", wn = "[\\ud800-\\udbff][\\udc00-\\udfff]", _n = "[" + Yt + "]", xn = "\\u200d", on = "(?:" + ur + "|" + sn + ")", Nn = "(?:" + _n + "|" + sn + ")", fi = "(?:['’](?:d|ll|m|re|s|t|ve))?", gn = "(?:['’](?:D|LL|M|RE|S|T|VE))?", yn = "(?:" + Vr + "|" + Fr + ")?", Jn = "[" + sr + "]?", _i = Jn + yn + "(?:" + xn + "(?:" + [un, bn, wn].join("|") + ")" + Jn + yn + ")*", Ir = "(?:" + [mr, bn, wn].join("|") + ")" + _i, pa = "(?:" + [un + Vr + "?", Vr, bn, wn, Rr].join("|") + ")", di = RegExp("['’]", "g"), Bt = RegExp(Vr, "g"), hr = RegExp(Fr + "(?=" + Fr + ")|" + pa + _i, "g"), ei = RegExp([_n + "?" + ur + "+" + fi + "(?=" + [Xt, _n, "$"].join("|") + ")", Nn + "+" + gn + "(?=" + [Xt, _n + on, "$"].join("|") + ")", _n + "?" + on + "+" + fi, _n + "+" + gn, "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])", "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])", Br, Ir].join("|"), "g"), Hn = RegExp("[" + xn + ct + Lt + sr + "]"), fs = /[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/, Na = ["Array", "Buffer", "DataView", "Date", "Error", "Float32Array", "Float64Array", "Function", "Int8Array", "Int16Array", "Int32Array", "Map", "Math", "Object", "Promise", "RegExp", "Set", "String", "Symbol", "TypeError", "Uint8Array", "Uint8ClampedArray", "Uint16Array", "Uint32Array", "WeakMap", "_", "clearTimeout", "isFinite", "parseInt", "setTimeout"], ki = -1, Wr = {}; - Wr[q] = Wr[W] = Wr[$] = Wr[J] = Wr[X] = Wr[Q] = Wr[ue] = Wr[re] = Wr[ne] = !0, Wr[g] = Wr[y] = Wr[z] = Wr[b] = Wr[H] = Wr[_] = Wr[m] = Wr[x] = Wr[O] = Wr[E] = Wr[T] = Wr[I] = Wr[k] = Wr[L] = Wr[j] = !1; + var i, a = "Expected a function", o = "__lodash_hash_undefined__", s = "__lodash_placeholder__", u = 32, l = 128, c = 1 / 0, f = 9007199254740991, d = NaN, h = 4294967295, p = [["ary", l], ["bind", 1], ["bindKey", 2], ["curry", 8], ["curryRight", 16], ["flip", 512], ["partial", u], ["partialRight", 64], ["rearg", 256]], g = "[object Arguments]", y = "[object Array]", b = "[object Boolean]", _ = "[object Date]", m = "[object Error]", x = "[object Function]", S = "[object GeneratorFunction]", O = "[object Map]", E = "[object Number]", T = "[object Object]", P = "[object Promise]", I = "[object RegExp]", k = "[object Set]", L = "[object String]", B = "[object Symbol]", j = "[object WeakMap]", z = "[object ArrayBuffer]", H = "[object DataView]", q = "[object Float32Array]", W = "[object Float64Array]", $ = "[object Int8Array]", J = "[object Int16Array]", X = "[object Int32Array]", Z = "[object Uint8Array]", ue = "[object Uint8ClampedArray]", re = "[object Uint16Array]", ne = "[object Uint32Array]", le = /\b__p \+= '';/g, ce = /\b(__p \+=) '' \+/g, pe = /(__e\(.*?\)|\b__t\)) \+\n'';/g, fe = /&(?:amp|lt|gt|quot|#39);/g, se = /[&<>"']/g, de = RegExp(fe.source), ge = RegExp(se.source), Oe = /<%-([\s\S]+?)%>/g, ke = /<%([\s\S]+?)%>/g, De = /<%=([\s\S]+?)%>/g, Ne = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, Te = /^\w*$/, Y = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, Q = /[\\^$.*+?()[\]{}|]/g, ie = RegExp(Q.source), we = /^\s+/, Ee = /\s/, Me = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/, Ie = /\{\n\/\* \[wrapped with (.+)\] \*/, Ye = /,? & /, ot = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g, mt = /[()=,{}\[\]\/\s]/, wt = /\\(\\)?/g, Mt = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g, Dt = /\w*$/, vt = /^[-+]0x[0-9a-f]+$/i, tt = /^0b[01]+$/i, _e = /^\[object .+?Constructor\]$/, Ue = /^0o[0-7]+$/i, Qe = /^(?:0|[1-9]\d*)$/, Ze = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, nt = /($^)/, It = /['\n\r\u2028\u2029\\]/g, ct = "\\ud800-\\udfff", Lt = "\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff", Rt = "\\u2700-\\u27bf", jt = "a-z\\xdf-\\xf6\\xf8-\\xff", Yt = "A-Z\\xc0-\\xd6\\xd8-\\xde", sr = "\\ufe0e\\ufe0f", Ut = "\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000", Rr = "[" + ct + "]", Xt = "[" + Ut + "]", Vr = "[" + Lt + "]", Br = "\\d+", mr = "[" + Rt + "]", ur = "[" + jt + "]", sn = "[^" + ct + Ut + Br + Rt + jt + Yt + "]", Fr = "\\ud83c[\\udffb-\\udfff]", un = "[^" + ct + "]", bn = "(?:\\ud83c[\\udde6-\\uddff]){2}", wn = "[\\ud800-\\udbff][\\udc00-\\udfff]", _n = "[" + Yt + "]", xn = "\\u200d", on = "(?:" + ur + "|" + sn + ")", Nn = "(?:" + _n + "|" + sn + ")", fi = "(?:['’](?:d|ll|m|re|s|t|ve))?", gn = "(?:['’](?:D|LL|M|RE|S|T|VE))?", yn = "(?:" + Vr + "|" + Fr + ")?", Jn = "[" + sr + "]?", _i = Jn + yn + "(?:" + xn + "(?:" + [un, bn, wn].join("|") + ")" + Jn + yn + ")*", Ir = "(?:" + [mr, bn, wn].join("|") + ")" + _i, pa = "(?:" + [un + Vr + "?", Vr, bn, wn, Rr].join("|") + ")", di = RegExp("['’]", "g"), Bt = RegExp(Vr, "g"), hr = RegExp(Fr + "(?=" + Fr + ")|" + pa + _i, "g"), ei = RegExp([_n + "?" + ur + "+" + fi + "(?=" + [Xt, _n, "$"].join("|") + ")", Nn + "+" + gn + "(?=" + [Xt, _n + on, "$"].join("|") + ")", _n + "?" + on + "+" + fi, _n + "+" + gn, "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])", "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])", Br, Ir].join("|"), "g"), Hn = RegExp("[" + xn + ct + Lt + sr + "]"), fs = /[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/, Na = ["Array", "Buffer", "DataView", "Date", "Error", "Float32Array", "Float64Array", "Function", "Int8Array", "Int16Array", "Int32Array", "Map", "Math", "Object", "Promise", "RegExp", "Set", "String", "Symbol", "TypeError", "Uint8Array", "Uint8ClampedArray", "Uint16Array", "Uint32Array", "WeakMap", "_", "clearTimeout", "isFinite", "parseInt", "setTimeout"], ki = -1, Wr = {}; + Wr[q] = Wr[W] = Wr[$] = Wr[J] = Wr[X] = Wr[Z] = Wr[ue] = Wr[re] = Wr[ne] = !0, Wr[g] = Wr[y] = Wr[z] = Wr[b] = Wr[H] = Wr[_] = Wr[m] = Wr[x] = Wr[O] = Wr[E] = Wr[T] = Wr[I] = Wr[k] = Wr[L] = Wr[j] = !1; var Nr = {}; - Nr[g] = Nr[y] = Nr[z] = Nr[H] = Nr[b] = Nr[_] = Nr[q] = Nr[W] = Nr[$] = Nr[J] = Nr[X] = Nr[O] = Nr[E] = Nr[T] = Nr[I] = Nr[k] = Nr[L] = Nr[B] = Nr[Q] = Nr[ue] = Nr[re] = Nr[ne] = !0, Nr[m] = Nr[x] = Nr[j] = !1; + Nr[g] = Nr[y] = Nr[z] = Nr[H] = Nr[b] = Nr[_] = Nr[q] = Nr[W] = Nr[$] = Nr[J] = Nr[X] = Nr[O] = Nr[E] = Nr[T] = Nr[I] = Nr[k] = Nr[L] = Nr[B] = Nr[Z] = Nr[ue] = Nr[re] = Nr[ne] = !0, Nr[m] = Nr[x] = Nr[j] = !1; var na = { "\\": "\\", "'": "'", "\n": "n", "\r": "r", "\u2028": "u2028", "\u2029": "u2029" }, Fs = parseFloat, hu = parseInt, ga = typeof t.g == "object" && t.g && t.g.Object === Object && t.g, Us = typeof self == "object" && self && self.Object === Object && self, Ln = ga || Us || Function("return this")(), Ii = e && !e.nodeType && e, Ni = Ii && r && !r.nodeType && r, Pc = Ni && Ni.exports === Ii, vu = Pc && ga.process, ia = (function() { try { return Ni && Ni.require && Ni.require("util").types || vu && vu.binding && vu.binding("util"); @@ -55090,7 +55102,7 @@ var fae = { 5: function(r, e, t) { return xt; } var uo = Ju({ "&": "&", "<": "<", ">": ">", """: '"', "'": "'" }), Vo = (function st(xt) { - var pt, Wt = (xt = xt == null ? Ln : Vo.defaults(Ln.Object(), xt, Vo.pick(Ln, Na))).Array, ir = xt.Date, En = xt.Error, oa = xt.Function, ja = xt.Math, Kn = xt.Object, ec = xt.RegExp, xi = xt.String, ba = xt.TypeError, cf = Wt.prototype, Ev = oa.prototype, rl = Kn.prototype, Dd = xt["__core-js_shared__"], kd = Ev.toString, Fn = rl.hasOwnProperty, Sv = 0, Hf = (pt = /[^.]+$/.exec(Dd && Dd.keys && Dd.keys.IE_PROTO || "")) ? "Symbol(src)_1." + pt : "", nl = rl.toString, Ov = kd.call(Kn), Wf = Ln._, ff = ec("^" + kd.call(Fn).replace(Z, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"), Gs = Pc ? xt.Buffer : i, bu = xt.Symbol, kc = xt.Uint8Array, Ah = Gs ? Gs.allocUnsafe : i, tc = Jl(Kn.getPrototypeOf, Kn), Yf = Kn.create, Ic = rl.propertyIsEnumerable, _u = cf.splice, xo = bu ? bu.isConcatSpreadable : i, Nc = bu ? bu.iterator : i, Vs = bu ? bu.toStringTag : i, df = (function() { + var pt, Wt = (xt = xt == null ? Ln : Vo.defaults(Ln.Object(), xt, Vo.pick(Ln, Na))).Array, ir = xt.Date, En = xt.Error, oa = xt.Function, ja = xt.Math, Kn = xt.Object, ec = xt.RegExp, xi = xt.String, ba = xt.TypeError, cf = Wt.prototype, Ev = oa.prototype, rl = Kn.prototype, Dd = xt["__core-js_shared__"], kd = Ev.toString, Fn = rl.hasOwnProperty, Sv = 0, Hf = (pt = /[^.]+$/.exec(Dd && Dd.keys && Dd.keys.IE_PROTO || "")) ? "Symbol(src)_1." + pt : "", nl = rl.toString, Ov = kd.call(Kn), Wf = Ln._, ff = ec("^" + kd.call(Fn).replace(Q, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"), Gs = Pc ? xt.Buffer : i, bu = xt.Symbol, kc = xt.Uint8Array, Ah = Gs ? Gs.allocUnsafe : i, tc = Jl(Kn.getPrototypeOf, Kn), Yf = Kn.create, Ic = rl.propertyIsEnumerable, _u = cf.splice, xo = bu ? bu.isConcatSpreadable : i, Nc = bu ? bu.iterator : i, Vs = bu ? bu.toStringTag : i, df = (function() { try { var R = Os(Kn, "defineProperty"); return R({}, "", {}), R; @@ -55237,7 +55249,7 @@ var fae = { 5: function(r, e, t) { case $: case J: case X: - case Q: + case Z: case ue: case re: case ne: @@ -55301,7 +55313,7 @@ var fae = { 5: function(r, e, t) { } return et; } - be.templateSettings = { escape: Oe, evaluate: ke, interpolate: Me, variable: "", imports: { _: be } }, be.prototype = Ho.prototype, be.prototype.constructor = be, Ei.prototype = al(Ho.prototype), Ei.prototype.constructor = Ei, nn.prototype = al(Ho.prototype), nn.prototype.constructor = nn, ol.prototype.clear = function() { + be.templateSettings = { escape: Oe, evaluate: ke, interpolate: De, variable: "", imports: { _: be } }, be.prototype = Ho.prototype, be.prototype.constructor = be, Ei.prototype = al(Ho.prototype), Ei.prototype.constructor = Ei, nn.prototype = al(Ho.prototype), nn.prototype.constructor = nn, ol.prototype.clear = function() { this.__data__ = pf ? pf(null) : {}, this.size = 0; }, ol.prototype.delete = function(R) { var N = this.has(R) && delete this.__data__[R]; @@ -56240,7 +56252,7 @@ var fae = { 5: function(r, e, t) { function vi(R, N) { if (Ur(R)) return !1; var G = typeof R; - return !(G != "number" && G != "symbol" && G != "boolean" && R != null && !ns(R)) || Ce.test(R) || !Ne.test(R) || N != null && R in Kn(N); + return !(G != "number" && G != "symbol" && G != "boolean" && R != null && !ns(R)) || Te.test(R) || !Ne.test(R) || N != null && R in Kn(N); } function vc(R) { var N = Qi(R), G = be[N]; @@ -56301,7 +56313,7 @@ var fae = { 5: function(r, e, t) { var je = Re.length; if (!je) return he; var He = je - 1; - return Re[He] = (je > 1 ? "& " : "") + Re[He], Re = Re.join(je > 2 ? ", " : " "), he.replace(De, `{ + return Re[He] = (je > 1 ? "& " : "") + Re[He], Re = Re.join(je > 2 ? ", " : " "), he.replace(Me, `{ /* [wrapped with ` + Re + `] */ `); })(te, (function(he, Re) { @@ -57145,7 +57157,7 @@ var fae = { 5: function(r, e, t) { }, be.eq = Do, be.escape = function(R) { return (R = Dn(R)) && ge.test(R) ? R.replace(se, uf) : R; }, be.escapeRegExp = function(R) { - return (R = Dn(R)) && ie.test(R) ? R.replace(Z, "\\$&") : R; + return (R = Dn(R)) && ie.test(R) ? R.replace(Q, "\\$&") : R; }, be.every = function(R, N, G) { var te = Ur(R) ? Gf : Cv; return G && Xr(R, N, G) && (N = i), te(R, er(N, 3)); @@ -57332,7 +57344,7 @@ var fae = { 5: function(r, e, t) { }, be.template = function(R, N, G) { var te = be.templateSettings; G && Xr(R, N, G) && (N = i), R = Dn(R), N = dd({}, N, te, Zi); - var he, Re, je = dd({}, N.imports, te.imports, Zi), He = xa(je), et = Zl(je, He), yt = 0, Et = N.interpolate || nt, At = "__p += '", $t = ec((N.escape || nt).source + "|" + Et.source + "|" + (Et === Me ? Mt : nt).source + "|" + (N.evaluate || nt).source + "|$", "g"), tr = "//# sourceURL=" + (Fn.call(N, "sourceURL") ? (N.sourceURL + "").replace(/\s/g, " ") : "lodash.templateSources[" + ++ki + "]") + ` + var he, Re, je = dd({}, N.imports, te.imports, Zi), He = xa(je), et = Zl(je, He), yt = 0, Et = N.interpolate || nt, At = "__p += '", $t = ec((N.escape || nt).source + "|" + Et.source + "|" + (Et === De ? Mt : nt).source + "|" + (N.evaluate || nt).source + "|$", "g"), tr = "//# sourceURL=" + (Fn.call(N, "sourceURL") ? (N.sourceURL + "").replace(/\s/g, " ") : "lodash.templateSources[" + ++ki + "]") + ` `; R.replace($t, function(Nt, lr, Gt, Lr, jr, qn) { return Gt || (Gt = Lr), At += R.slice(yt, qn).replace(It, Ql), lr && (he = !0, At += `' + @@ -58139,8 +58151,8 @@ function print() { __p += __j.call(arguments, '') } if (!le && !ce) throw (0, l.newError)("Unable to create DateTime without either time zone offset or id. Please specify either of them. Given offset: ".concat(re, " and id: ").concat(ne)); var pe = [void 0, void 0]; return le && ((0, u.assertNumberOrInteger)(re, "Time zone offset in seconds"), pe[0] = re), ce && ((0, u.assertString)(ne, "Time zone ID"), s.assertValidZoneId("Time zone ID", ne), pe[1] = ne), pe; - })($, J), 2), Q = X[0], ue = X[1]; - this.timeZoneOffsetSeconds = Q, this.timeZoneId = ue ?? void 0, Object.freeze(this); + })($, J), 2), Z = X[0], ue = X[1]; + this.timeZoneOffsetSeconds = Z, this.timeZoneId = ue ?? void 0, Object.freeze(this); } return k.fromStandardDate = function(L, B) { return I(L, B), new k(L.getFullYear(), L.getMonth() + 1, L.getDate(), L.getHours(), L.getMinutes(), L.getSeconds(), (0, c.toNumber)(s.totalNanoseconds(L, B)), s.timeZoneOffsetInSeconds(L), null); @@ -58309,8 +58321,8 @@ function print() { __p += __j.call(arguments, '') } var u = t(2696), l = t(6587), c = t(326), f = t(9691), d = s(t(9512)), h = t(3618), p = t(6189), g = t(9730), y = t(754), b = s(t(4569)), _ = s(t(5909)), m = t(6030), x = (function() { function S(O) { var E, T = O.mode, P = O.connectionProvider, I = O.bookmarks, k = O.database, L = O.config, B = O.reactive, j = O.fetchSize, z = O.impersonatedUser, H = O.bookmarkManager, q = O.notificationFilter, W = O.auth, $ = O.log, J = O.homeDatabaseCallback; - this._mode = T, this._database = k, this._reactive = B, this._fetchSize = j, this._homeDatabaseCallback = J, this._auth = W, this._getConnectionAcquistionBookmarks = this._getConnectionAcquistionBookmarks.bind(this), this._readConnectionHolder = new h.ConnectionHolder({ mode: c.ACCESS_MODE_READ, auth: W, database: k, bookmarks: I, connectionProvider: P, impersonatedUser: z, onDatabaseNameResolved: this._onDatabaseNameResolved.bind(this), getConnectionAcquistionBookmarks: this._getConnectionAcquistionBookmarks, log: $ }), this._writeConnectionHolder = new h.ConnectionHolder({ mode: c.ACCESS_MODE_WRITE, auth: W, database: k, bookmarks: I, connectionProvider: P, impersonatedUser: z, onDatabaseNameResolved: this._onDatabaseNameResolved.bind(this), getConnectionAcquistionBookmarks: this._getConnectionAcquistionBookmarks, log: $ }), this._open = !0, this._hasTx = !1, this._impersonatedUser = z, this._lastBookmarks = I ?? g.Bookmarks.empty(), this._configuredBookmarks = this._lastBookmarks, this._transactionExecutor = (function(Q) { - var ue, re = (ue = Q == null ? void 0 : Q.maxTransactionRetryTime) !== null && ue !== void 0 ? ue : null; + this._mode = T, this._database = k, this._reactive = B, this._fetchSize = j, this._homeDatabaseCallback = J, this._auth = W, this._getConnectionAcquistionBookmarks = this._getConnectionAcquistionBookmarks.bind(this), this._readConnectionHolder = new h.ConnectionHolder({ mode: c.ACCESS_MODE_READ, auth: W, database: k, bookmarks: I, connectionProvider: P, impersonatedUser: z, onDatabaseNameResolved: this._onDatabaseNameResolved.bind(this), getConnectionAcquistionBookmarks: this._getConnectionAcquistionBookmarks, log: $ }), this._writeConnectionHolder = new h.ConnectionHolder({ mode: c.ACCESS_MODE_WRITE, auth: W, database: k, bookmarks: I, connectionProvider: P, impersonatedUser: z, onDatabaseNameResolved: this._onDatabaseNameResolved.bind(this), getConnectionAcquistionBookmarks: this._getConnectionAcquistionBookmarks, log: $ }), this._open = !0, this._hasTx = !1, this._impersonatedUser = z, this._lastBookmarks = I ?? g.Bookmarks.empty(), this._configuredBookmarks = this._lastBookmarks, this._transactionExecutor = (function(Z) { + var ue, re = (ue = Z == null ? void 0 : Z.maxTransactionRetryTime) !== null && ue !== void 0 ? ue : null; return new p.TransactionExecutor(re); })(L), this._databaseNameResolved = this._database !== ""; var X = this._calculateWatermaks(); @@ -58731,8 +58743,8 @@ function print() { __p += __j.call(arguments, '') } var O = S === void 0 ? {} : S, E = O.beforeError, T = O.afterError, P = O.beforeComplete, I = O.afterComplete, k = new l.ResultStreamObserver({ server: this._server, beforeError: E, afterError: T, beforeComplete: P, afterComplete: I }); return k.prepareToHandleSingleResponse(), this.write(s.default.rollback(), k, !0), k; }, x.prototype.run = function(S, O, E) { - var T = E === void 0 ? {} : E, P = T.bookmarks, I = T.txConfig, k = T.database, L = T.impersonatedUser, B = T.notificationFilter, j = T.mode, z = T.beforeKeys, H = T.afterKeys, q = T.beforeError, W = T.afterError, $ = T.beforeComplete, J = T.afterComplete, X = T.flush, Q = X === void 0 || X, ue = T.highRecordWatermark, re = ue === void 0 ? Number.MAX_VALUE : ue, ne = T.lowRecordWatermark, le = ne === void 0 ? Number.MAX_VALUE : ne, ce = new l.ResultStreamObserver({ server: this._server, beforeKeys: z, afterKeys: H, beforeError: q, afterError: W, beforeComplete: $, afterComplete: J, highRecordWatermark: re, lowRecordWatermark: le }); - return (0, u.assertDatabaseIsEmpty)(k, this._onProtocolError, ce), (0, u.assertImpersonatedUserIsEmpty)(L, this._onProtocolError, ce), (0, u.assertNotificationFilterIsEmpty)(B, this._onProtocolError, ce), this.write(s.default.runWithMetadata(S, O, { bookmarks: P, txConfig: I, mode: j }), ce, !1), this.write(s.default.pullAll(), ce, Q), ce; + var T = E === void 0 ? {} : E, P = T.bookmarks, I = T.txConfig, k = T.database, L = T.impersonatedUser, B = T.notificationFilter, j = T.mode, z = T.beforeKeys, H = T.afterKeys, q = T.beforeError, W = T.afterError, $ = T.beforeComplete, J = T.afterComplete, X = T.flush, Z = X === void 0 || X, ue = T.highRecordWatermark, re = ue === void 0 ? Number.MAX_VALUE : ue, ne = T.lowRecordWatermark, le = ne === void 0 ? Number.MAX_VALUE : ne, ce = new l.ResultStreamObserver({ server: this._server, beforeKeys: z, afterKeys: H, beforeError: q, afterError: W, beforeComplete: $, afterComplete: J, highRecordWatermark: re, lowRecordWatermark: le }); + return (0, u.assertDatabaseIsEmpty)(k, this._onProtocolError, ce), (0, u.assertImpersonatedUserIsEmpty)(L, this._onProtocolError, ce), (0, u.assertNotificationFilterIsEmpty)(B, this._onProtocolError, ce), this.write(s.default.runWithMetadata(S, O, { bookmarks: P, txConfig: I, mode: j }), ce, !1), this.write(s.default.pullAll(), ce, Z), ce; }, x.prototype.requestRoutingInformation = function(S) { var O, E = S.routingContext, T = E === void 0 ? {} : E, P = S.sessionContext, I = P === void 0 ? {} : P, k = S.onError, L = S.onCompleted, B = this.run(y, ((O = {})[g] = T, O), i(i({}, I), { txConfig: p.empty() })); return new l.ProcedureRouteObserver({ resultObserver: B, onProtocolError: this._onProtocolError, onError: k, onCompleted: L }); @@ -58922,7 +58934,7 @@ function print() { __p += __j.call(arguments, '') } var m = _ === void 0 ? {} : _, x = m.bookmarks, S = m.txConfig, O = m.database, E = m.mode, T = m.impersonatedUser, P = m.notificationFilter, I = m.beforeError, k = m.afterError, L = m.beforeComplete, B = m.afterComplete, j = new c.ResultStreamObserver({ server: this._server, beforeError: I, afterError: k, beforeComplete: L, afterComplete: B }); return j.prepareToHandleSingleResponse(), this.write(l.default.begin5x5({ bookmarks: x, txConfig: S, database: O, mode: E, impersonatedUser: T, notificationFilter: P }), j, !0), j; }, b.prototype.run = function(_, m, x) { - var S = x === void 0 ? {} : x, O = S.bookmarks, E = S.txConfig, T = S.database, P = S.mode, I = S.impersonatedUser, k = S.notificationFilter, L = S.beforeKeys, B = S.afterKeys, j = S.beforeError, z = S.afterError, H = S.beforeComplete, q = S.afterComplete, W = S.flush, $ = W === void 0 || W, J = S.reactive, X = J !== void 0 && J, Q = S.fetchSize, ue = Q === void 0 ? h : Q, re = S.highRecordWatermark, ne = re === void 0 ? Number.MAX_VALUE : re, le = S.lowRecordWatermark, ce = le === void 0 ? Number.MAX_VALUE : le, pe = new c.ResultStreamObserver({ server: this._server, reactive: X, fetchSize: ue, moreFunction: this._requestMore.bind(this), discardFunction: this._requestDiscard.bind(this), beforeKeys: L, afterKeys: B, beforeError: j, afterError: z, beforeComplete: H, afterComplete: q, highRecordWatermark: ne, lowRecordWatermark: ce, enrichMetadata: this._enrichMetadata }), fe = X; + var S = x === void 0 ? {} : x, O = S.bookmarks, E = S.txConfig, T = S.database, P = S.mode, I = S.impersonatedUser, k = S.notificationFilter, L = S.beforeKeys, B = S.afterKeys, j = S.beforeError, z = S.afterError, H = S.beforeComplete, q = S.afterComplete, W = S.flush, $ = W === void 0 || W, J = S.reactive, X = J !== void 0 && J, Z = S.fetchSize, ue = Z === void 0 ? h : Z, re = S.highRecordWatermark, ne = re === void 0 ? Number.MAX_VALUE : re, le = S.lowRecordWatermark, ce = le === void 0 ? Number.MAX_VALUE : le, pe = new c.ResultStreamObserver({ server: this._server, reactive: X, fetchSize: ue, moreFunction: this._requestMore.bind(this), discardFunction: this._requestDiscard.bind(this), beforeKeys: L, afterKeys: B, beforeError: j, afterError: z, beforeComplete: H, afterComplete: q, highRecordWatermark: ne, lowRecordWatermark: ce, enrichMetadata: this._enrichMetadata }), fe = X; return this.write(l.default.runWithMetadata5x5(_, m, { bookmarks: O, txConfig: E, database: T, mode: P, impersonatedUser: I, notificationFilter: k }), pe, fe && $), X || this.write(l.default.pull({ n: ue }), pe, $), pe; }, b.prototype._enrichMetadata = function(_) { return Array.isArray(_.statuses) && (_.statuses = _.statuses.map(function(m) { @@ -59866,42 +59878,42 @@ function print() { __p += __j.call(arguments, '') } var i = t(9305), a = n(t(8320)), o = n(t(2857)), s = n(t(5642)), u = n(t(2539)), l = n(t(4596)), c = n(t(6445)), f = n(t(9054)), d = n(t(1711)), h = n(t(844)), p = n(t(6345)), g = n(t(934)), y = n(t(9125)), b = n(t(9744)), _ = n(t(5815)), m = n(t(6890)), x = n(t(6377)), S = n(t(1092)), O = (t(7452), n(t(2578))); e.default = function(E) { var T = E === void 0 ? {} : E, P = T.version, I = T.chunker, k = T.dechunker, L = T.channel, B = T.disableLosslessIntegers, j = T.useBigInt, z = T.serversideRouting, H = T.server, q = T.log, W = T.observer; - return (function($, J, X, Q, ue, re, ne, le) { + return (function($, J, X, Z, ue, re, ne, le) { switch ($) { case 1: - return new a.default(J, X, Q, re, le, ne); + return new a.default(J, X, Z, re, le, ne); case 2: - return new o.default(J, X, Q, re, le, ne); + return new o.default(J, X, Z, re, le, ne); case 3: - return new s.default(J, X, Q, re, le, ne); + return new s.default(J, X, Z, re, le, ne); case 4: - return new u.default(J, X, Q, re, le, ne); + return new u.default(J, X, Z, re, le, ne); case 4.1: - return new l.default(J, X, Q, re, le, ne, ue); + return new l.default(J, X, Z, re, le, ne, ue); case 4.2: - return new c.default(J, X, Q, re, le, ne, ue); + return new c.default(J, X, Z, re, le, ne, ue); case 4.3: - return new f.default(J, X, Q, re, le, ne, ue); + return new f.default(J, X, Z, re, le, ne, ue); case 4.4: - return new d.default(J, X, Q, re, le, ne, ue); + return new d.default(J, X, Z, re, le, ne, ue); case 5: - return new h.default(J, X, Q, re, le, ne, ue); + return new h.default(J, X, Z, re, le, ne, ue); case 5.1: - return new p.default(J, X, Q, re, le, ne, ue); + return new p.default(J, X, Z, re, le, ne, ue); case 5.2: - return new g.default(J, X, Q, re, le, ne, ue); + return new g.default(J, X, Z, re, le, ne, ue); case 5.3: - return new y.default(J, X, Q, re, le, ne, ue); + return new y.default(J, X, Z, re, le, ne, ue); case 5.4: - return new b.default(J, X, Q, re, le, ne, ue); + return new b.default(J, X, Z, re, le, ne, ue); case 5.5: - return new _.default(J, X, Q, re, le, ne, ue); + return new _.default(J, X, Z, re, le, ne, ue); case 5.6: - return new m.default(J, X, Q, re, le, ne, ue); + return new m.default(J, X, Z, re, le, ne, ue); case 5.7: - return new x.default(J, X, Q, re, le, ne, ue); + return new x.default(J, X, Z, re, le, ne, ue); case 5.8: - return new S.default(J, X, Q, re, le, ne, ue); + return new S.default(J, X, Z, re, le, ne, ue); default: throw (0, i.newError)("Unknown Bolt protocol version: " + $); } @@ -59912,8 +59924,8 @@ function print() { __p += __j.call(arguments, '') } }, k.onmessage = function(X) { try { J.handleResponse($.unpack(X)); - } catch (Q) { - return W.onError(Q); + } catch (Z) { + return W.onError(Z); } }, J; }, W.onProtocolError.bind(W), q); @@ -61691,8 +61703,8 @@ function print() { __p += __j.call(arguments, '') } }, I.prototype._getTrust = function() { return this._config.trust; }, I.prototype.session = function(k) { - var L = k === void 0 ? {} : k, B = L.defaultAccessMode, j = B === void 0 ? x : B, z = L.bookmarks, H = L.database, q = H === void 0 ? "" : H, W = L.impersonatedUser, $ = L.fetchSize, J = L.bookmarkManager, X = L.notificationFilter, Q = L.auth; - return this._newSession({ defaultAccessMode: j, bookmarkOrBookmarks: z, database: q, reactive: !1, impersonatedUser: W, fetchSize: P($, this._config.fetchSize), bookmarkManager: J, notificationFilter: X, auth: Q }); + var L = k === void 0 ? {} : k, B = L.defaultAccessMode, j = B === void 0 ? x : B, z = L.bookmarks, H = L.database, q = H === void 0 ? "" : H, W = L.impersonatedUser, $ = L.fetchSize, J = L.bookmarkManager, X = L.notificationFilter, Z = L.auth; + return this._newSession({ defaultAccessMode: j, bookmarkOrBookmarks: z, database: q, reactive: !1, impersonatedUser: W, fetchSize: P($, this._config.fetchSize), bookmarkManager: J, notificationFilter: X, auth: Z }); }, I.prototype.close = function() { return this._log.info("Driver ".concat(this._id, " closing")), this._connectionProvider != null ? this._connectionProvider.close() : Promise.resolve(); }, I.prototype[Symbol.asyncDispose] = function() { @@ -61702,8 +61714,8 @@ function print() { __p += __j.call(arguments, '') } }, I.prototype._homeDatabaseCallback = function(k, L) { this.homeDatabaseCache.set(k, L); }, I.prototype._newSession = function(k) { - var L = k.defaultAccessMode, B = k.bookmarkOrBookmarks, j = k.database, z = k.reactive, H = k.impersonatedUser, q = k.fetchSize, W = k.bookmarkManager, $ = k.notificationFilter, J = k.auth, X = f.default._validateSessionMode(L), Q = this._getOrCreateConnectionProvider(), ue = this.homeDatabaseCache.get((0, _.cacheKey)(J, H)), re = this._homeDatabaseCallback.bind(this), ne = B != null ? new s.Bookmarks(B) : s.Bookmarks.empty(); - return this._createSession({ mode: X, database: j ?? "", connectionProvider: Q, bookmarks: ne, config: n({ cachedHomeDatabase: ue, routingDriver: this._supportsRouting() }, this._config), reactive: z, impersonatedUser: H, fetchSize: q, bookmarkManager: W, notificationFilter: $, auth: J, log: this._log, homeDatabaseCallback: re }); + var L = k.defaultAccessMode, B = k.bookmarkOrBookmarks, j = k.database, z = k.reactive, H = k.impersonatedUser, q = k.fetchSize, W = k.bookmarkManager, $ = k.notificationFilter, J = k.auth, X = f.default._validateSessionMode(L), Z = this._getOrCreateConnectionProvider(), ue = this.homeDatabaseCache.get((0, _.cacheKey)(J, H)), re = this._homeDatabaseCallback.bind(this), ne = B != null ? new s.Bookmarks(B) : s.Bookmarks.empty(); + return this._createSession({ mode: X, database: j ?? "", connectionProvider: Z, bookmarks: ne, config: n({ cachedHomeDatabase: ue, routingDriver: this._supportsRouting() }, this._config), reactive: z, impersonatedUser: H, fetchSize: q, bookmarkManager: W, notificationFilter: $, auth: J, log: this._log, homeDatabaseCallback: re }); }, I.prototype._getOrCreateConnectionProvider = function() { var k; return this._connectionProvider == null && (this._connectionProvider = this._createConnectionProvider(this._id, this._config, this._log, (k = this._config, new u.default(k.resolver)))), this._connectionProvider; @@ -61876,25 +61888,25 @@ function print() { __p += __j.call(arguments, '') } return new (fe || (fe = Promise))(function(de, ge) { function Oe(Ne) { try { - Me(se.next(Ne)); - } catch (Ce) { - ge(Ce); + De(se.next(Ne)); + } catch (Te) { + ge(Te); } } function ke(Ne) { try { - Me(se.throw(Ne)); - } catch (Ce) { - ge(Ce); + De(se.throw(Ne)); + } catch (Te) { + ge(Te); } } - function Me(Ne) { - var Ce; - Ne.done ? de(Ne.value) : (Ce = Ne.value, Ce instanceof fe ? Ce : new fe(function(Y) { - Y(Ce); + function De(Ne) { + var Te; + Ne.done ? de(Ne.value) : (Te = Ne.value, Te instanceof fe ? Te : new fe(function(Y) { + Y(Te); })).then(Oe, ke); } - Me((se = se.apply(ce, pe || [])).next()); + De((se = se.apply(ce, pe || [])).next()); }); }, l = this && this.__generator || function(ce, pe) { var fe, se, de, ge, Oe = { label: 0, sent: function() { @@ -61904,54 +61916,54 @@ function print() { __p += __j.call(arguments, '') } return ge = { next: ke(0), throw: ke(1), return: ke(2) }, typeof Symbol == "function" && (ge[Symbol.iterator] = function() { return this; }), ge; - function ke(Me) { + function ke(De) { return function(Ne) { - return (function(Ce) { + return (function(Te) { if (fe) throw new TypeError("Generator is already executing."); - for (; ge && (ge = 0, Ce[0] && (Oe = 0)), Oe; ) try { - if (fe = 1, se && (de = 2 & Ce[0] ? se.return : Ce[0] ? se.throw || ((de = se.return) && de.call(se), 0) : se.next) && !(de = de.call(se, Ce[1])).done) return de; - switch (se = 0, de && (Ce = [2 & Ce[0], de.value]), Ce[0]) { + for (; ge && (ge = 0, Te[0] && (Oe = 0)), Oe; ) try { + if (fe = 1, se && (de = 2 & Te[0] ? se.return : Te[0] ? se.throw || ((de = se.return) && de.call(se), 0) : se.next) && !(de = de.call(se, Te[1])).done) return de; + switch (se = 0, de && (Te = [2 & Te[0], de.value]), Te[0]) { case 0: case 1: - de = Ce; + de = Te; break; case 4: - return Oe.label++, { value: Ce[1], done: !1 }; + return Oe.label++, { value: Te[1], done: !1 }; case 5: - Oe.label++, se = Ce[1], Ce = [0]; + Oe.label++, se = Te[1], Te = [0]; continue; case 7: - Ce = Oe.ops.pop(), Oe.trys.pop(); + Te = Oe.ops.pop(), Oe.trys.pop(); continue; default: - if (!((de = (de = Oe.trys).length > 0 && de[de.length - 1]) || Ce[0] !== 6 && Ce[0] !== 2)) { + if (!((de = (de = Oe.trys).length > 0 && de[de.length - 1]) || Te[0] !== 6 && Te[0] !== 2)) { Oe = 0; continue; } - if (Ce[0] === 3 && (!de || Ce[1] > de[0] && Ce[1] < de[3])) { - Oe.label = Ce[1]; + if (Te[0] === 3 && (!de || Te[1] > de[0] && Te[1] < de[3])) { + Oe.label = Te[1]; break; } - if (Ce[0] === 6 && Oe.label < de[1]) { - Oe.label = de[1], de = Ce; + if (Te[0] === 6 && Oe.label < de[1]) { + Oe.label = de[1], de = Te; break; } if (de && Oe.label < de[2]) { - Oe.label = de[2], Oe.ops.push(Ce); + Oe.label = de[2], Oe.ops.push(Te); break; } de[2] && Oe.ops.pop(), Oe.trys.pop(); continue; } - Ce = pe.call(ce, Oe); + Te = pe.call(ce, Oe); } catch (Y) { - Ce = [6, Y], se = 0; + Te = [6, Y], se = 0; } finally { fe = de = 0; } - if (5 & Ce[0]) throw Ce[1]; - return { value: Ce[0] ? Ce[1] : void 0, done: !0 }; - })([Me, Ne]); + if (5 & Te[0]) throw Te[1]; + return { value: Te[0] ? Te[1] : void 0, done: !0 }; + })([De, Ne]); }; } }, c = this && this.__values || function(ce) { @@ -61981,22 +61993,22 @@ function print() { __p += __j.call(arguments, '') } return ce && ce.__esModule ? ce : { default: ce }; }; Object.defineProperty(e, "__esModule", { value: !0 }); - var h = t(9305), p = s(t(206)), g = t(7452), y = d(t(4132)), b = d(t(8987)), _ = t(4455), m = t(7721), x = t(6781), S = h.error.SERVICE_UNAVAILABLE, O = h.error.SESSION_EXPIRED, E = h.internal.bookmarks.Bookmarks, T = h.internal.constants, P = T.ACCESS_MODE_READ, I = T.ACCESS_MODE_WRITE, k = T.BOLT_PROTOCOL_V3, L = T.BOLT_PROTOCOL_V4_0, B = T.BOLT_PROTOCOL_V4_4, j = T.BOLT_PROTOCOL_V5_1, z = "Neo.ClientError.Database.DatabaseNotFound", H = "Neo.ClientError.Transaction.InvalidBookmark", q = "Neo.ClientError.Transaction.InvalidBookmarkMixture", W = "Neo.ClientError.Security.AuthorizationExpired", $ = "Neo.ClientError.Statement.ArgumentError", J = "Neo.ClientError.Request.Invalid", X = "Neo.ClientError.Statement.TypeError", Q = "N/A", ue = null, re = (0, h.int)(3e4), ne = (function(ce) { + var h = t(9305), p = s(t(206)), g = t(7452), y = d(t(4132)), b = d(t(8987)), _ = t(4455), m = t(7721), x = t(6781), S = h.error.SERVICE_UNAVAILABLE, O = h.error.SESSION_EXPIRED, E = h.internal.bookmarks.Bookmarks, T = h.internal.constants, P = T.ACCESS_MODE_READ, I = T.ACCESS_MODE_WRITE, k = T.BOLT_PROTOCOL_V3, L = T.BOLT_PROTOCOL_V4_0, B = T.BOLT_PROTOCOL_V4_4, j = T.BOLT_PROTOCOL_V5_1, z = "Neo.ClientError.Database.DatabaseNotFound", H = "Neo.ClientError.Transaction.InvalidBookmark", q = "Neo.ClientError.Transaction.InvalidBookmarkMixture", W = "Neo.ClientError.Security.AuthorizationExpired", $ = "Neo.ClientError.Statement.ArgumentError", J = "Neo.ClientError.Request.Invalid", X = "Neo.ClientError.Statement.TypeError", Z = "N/A", ue = null, re = (0, h.int)(3e4), ne = (function(ce) { function pe(fe) { - var se = fe.id, de = fe.address, ge = fe.routingContext, Oe = fe.hostNameResolver, ke = fe.config, Me = fe.log, Ne = fe.userAgent, Ce = fe.boltAgent, Y = fe.authTokenManager, Z = fe.routingTablePurgeDelay, ie = fe.newPool, we = ce.call(this, { id: se, config: ke, log: Me, userAgent: Ne, boltAgent: Ce, authTokenManager: Y, newPool: ie }, function(Ee) { + var se = fe.id, de = fe.address, ge = fe.routingContext, Oe = fe.hostNameResolver, ke = fe.config, De = fe.log, Ne = fe.userAgent, Te = fe.boltAgent, Y = fe.authTokenManager, Q = fe.routingTablePurgeDelay, ie = fe.newPool, we = ce.call(this, { id: se, config: ke, log: De, userAgent: Ne, boltAgent: Te, authTokenManager: Y, newPool: ie }, function(Ee) { return u(we, void 0, void 0, function() { - var De, Ie; + var Me, Ie; return l(this, function(Ye) { switch (Ye.label) { case 0: - return De = m.createChannelConnection, Ie = [Ee, this._config, this._createConnectionErrorHandler(), this._log], [4, this._clientCertificateHolder.getClientCertificate()]; + return Me = m.createChannelConnection, Ie = [Ee, this._config, this._createConnectionErrorHandler(), this._log], [4, this._clientCertificateHolder.getClientCertificate()]; case 1: - return [2, De.apply(void 0, Ie.concat([Ye.sent(), this._routingContext, this._channelSsrCallback.bind(this)]))]; + return [2, Me.apply(void 0, Ie.concat([Ye.sent(), this._routingContext, this._channelSsrCallback.bind(this)]))]; } }); }); }) || this; - return we._routingContext = i(i({}, ge), { address: de.toString() }), we._seedRouter = de, we._rediscovery = new p.default(we._routingContext), we._loadBalancingStrategy = new _.LeastConnectedLoadBalancingStrategy(we._connectionPool), we._hostNameResolver = Oe, we._dnsResolver = new g.HostNameResolver(), we._log = Me, we._useSeedRouter = !0, we._routingTableRegistry = new le(Z ? (0, h.int)(Z) : re), we._refreshRoutingTable = x.functional.reuseOngoingRequest(we._refreshRoutingTable, we), we._withSSR = 0, we._withoutSSR = 0, we; + return we._routingContext = i(i({}, ge), { address: de.toString() }), we._seedRouter = de, we._rediscovery = new p.default(we._routingContext), we._loadBalancingStrategy = new _.LeastConnectedLoadBalancingStrategy(we._connectionPool), we._hostNameResolver = Oe, we._dnsResolver = new g.HostNameResolver(), we._log = De, we._useSeedRouter = !0, we._routingTableRegistry = new le(Q ? (0, h.int)(Q) : re), we._refreshRoutingTable = x.functional.reuseOngoingRequest(we._refreshRoutingTable, we), we._withSSR = 0, we._withoutSSR = 0, we; } return n(pe, ce), pe.prototype._createConnectionErrorHandler = function() { return new m.ConnectionErrorHandler(O); @@ -62007,38 +62019,38 @@ function print() { __p += __j.call(arguments, '') } }, pe.prototype._handleWriteFailure = function(fe, se, de) { return this._log.warn("Routing driver ".concat(this._id, " will forget writer ").concat(se, " for database '").concat(de, "' because of an error ").concat(fe.code, " '").concat(fe.message, "'")), this.forgetWriter(se, de || ue), (0, h.newError)("No longer possible to write to server at " + se, O, fe); }, pe.prototype.acquireConnection = function(fe) { - var se = fe === void 0 ? {} : fe, de = se.accessMode, ge = se.database, Oe = se.bookmarks, ke = se.impersonatedUser, Me = se.onDatabaseNameResolved, Ne = se.auth, Ce = se.homeDb; + var se = fe === void 0 ? {} : fe, de = se.accessMode, ge = se.database, Oe = se.bookmarks, ke = se.impersonatedUser, De = se.onDatabaseNameResolved, Ne = se.auth, Te = se.homeDb; return u(this, void 0, void 0, function() { - var Y, Z, ie, we, Ee, De = this; + var Y, Q, ie, we, Ee, Me = this; return l(this, function(Ie) { switch (Ie.label) { case 0: - return Y = { database: ge || ue }, Z = new m.ConnectionErrorHandler(O, function(Ye, ot) { - return De._handleUnavailability(Ye, ot, Y.database); + return Y = { database: ge || ue }, Q = new m.ConnectionErrorHandler(O, function(Ye, ot) { + return Me._handleUnavailability(Ye, ot, Y.database); }, function(Ye, ot) { - return De._handleWriteFailure(Ye, ot, Ce ?? Y.database); + return Me._handleWriteFailure(Ye, ot, Te ?? Y.database); }, function(Ye, ot, mt) { - return De._handleSecurityError(Ye, ot, mt, Y.database); - }), this.SSREnabled() && Ce !== void 0 && ge === "" ? !(we = this._routingTableRegistry.get(Ce, function() { - return new p.RoutingTable({ database: Ce }); - })) || we.isStaleFor(de) ? [3, 2] : [4, this.getConnectionFromRoutingTable(we, Ne, de, Z)] : [3, 2]; + return Me._handleSecurityError(Ye, ot, mt, Y.database); + }), this.SSREnabled() && Te !== void 0 && ge === "" ? !(we = this._routingTableRegistry.get(Te, function() { + return new p.RoutingTable({ database: Te }); + })) || we.isStaleFor(de) ? [3, 2] : [4, this.getConnectionFromRoutingTable(we, Ne, de, Q)] : [3, 2]; case 1: if (ie = Ie.sent(), this.SSREnabled()) return [2, ie]; ie.release(), Ie.label = 2; case 2: return [4, this._freshRoutingTable({ accessMode: de, database: Y.database, bookmarks: Oe, impersonatedUser: ke, auth: Ne, onDatabaseNameResolved: function(Ye) { - Y.database = Y.database || Ye, Me && Me(Ye); + Y.database = Y.database || Ye, De && De(Ye); } })]; case 3: - return Ee = Ie.sent(), [2, this.getConnectionFromRoutingTable(Ee, Ne, de, Z)]; + return Ee = Ie.sent(), [2, this.getConnectionFromRoutingTable(Ee, Ne, de, Q)]; } }); }); }, pe.prototype.getConnectionFromRoutingTable = function(fe, se, de, ge) { return u(this, void 0, void 0, function() { - var Oe, ke, Me, Ne; - return l(this, function(Ce) { - switch (Ce.label) { + var Oe, ke, De, Ne; + return l(this, function(Te) { + switch (Te.label) { case 0: if (de === P) ke = this._loadBalancingStrategy.selectReader(fe.readers), Oe = "read"; else { @@ -62046,17 +62058,17 @@ function print() { __p += __j.call(arguments, '') } ke = this._loadBalancingStrategy.selectWriter(fe.writers), Oe = "write"; } if (!ke) throw (0, h.newError)("Failed to obtain connection towards ".concat(Oe, " server. Known routing table is: ").concat(fe), O); - Ce.label = 1; + Te.label = 1; case 1: - return Ce.trys.push([1, 5, , 6]), [4, this._connectionPool.acquire({ auth: se }, ke)]; + return Te.trys.push([1, 5, , 6]), [4, this._connectionPool.acquire({ auth: se }, ke)]; case 2: - return Me = Ce.sent(), se ? [4, this._verifyStickyConnection({ auth: se, connection: Me, address: ke })] : [3, 4]; + return De = Te.sent(), se ? [4, this._verifyStickyConnection({ auth: se, connection: De, address: ke })] : [3, 4]; case 3: - return Ce.sent(), [2, Me]; + return Te.sent(), [2, De]; case 4: - return [2, new m.DelegateConnection(Me, ge)]; + return [2, new m.DelegateConnection(De, ge)]; case 5: - throw Ne = Ce.sent(), ge.handleAndTransformError(Ne, ke); + throw Ne = Te.sent(), ge.handleAndTransformError(Ne, ke); case 6: return [2]; } @@ -62064,7 +62076,7 @@ function print() { __p += __j.call(arguments, '') } }); }, pe.prototype._hasProtocolVersion = function(fe) { return u(this, void 0, void 0, function() { - var se, de, ge, Oe, ke, Me; + var se, de, ge, Oe, ke, De; return l(this, function(Ne) { switch (Ne.label) { case 0: @@ -62081,7 +62093,7 @@ function print() { __p += __j.call(arguments, '') } case 5: return Ne.sent(), ke ? [2, fe(ke)] : [2, !1]; case 6: - return Me = Ne.sent(), de = Me, [3, 7]; + return De = Ne.sent(), de = De, [3, 7]; case 7: return ge++, [3, 2]; case 8: @@ -62154,16 +62166,16 @@ function print() { __p += __j.call(arguments, '') } return l(this, function(ke) { return [2, this._verifyAuthentication({ auth: ge, getAddress: function() { return u(Oe, void 0, void 0, function() { - var Me, Ne, Ce; + var De, Ne, Te; return l(this, function(Y) { switch (Y.label) { case 0: - return Me = { database: se || ue }, [4, this._freshRoutingTable({ accessMode: de, database: Me.database, auth: ge, onDatabaseNameResolved: function(Z) { - Me.database = Me.database || Z; + return De = { database: se || ue }, [4, this._freshRoutingTable({ accessMode: de, database: De.database, auth: ge, onDatabaseNameResolved: function(Q) { + De.database = De.database || Q; } })]; case 1: - if (Ne = Y.sent(), (Ce = de === I ? Ne.writers : Ne.readers).length === 0) throw (0, h.newError)("No servers available for database '".concat(Me.database, "' with access mode '").concat(de, "'"), S); - return [2, Ce[0]]; + if (Ne = Y.sent(), (Te = de === I ? Ne.writers : Ne.readers).length === 0) throw (0, h.newError)("No servers available for database '".concat(De.database, "' with access mode '").concat(de, "'"), S); + return [2, Te[0]]; } }); }); @@ -62173,41 +62185,41 @@ function print() { __p += __j.call(arguments, '') } }, pe.prototype.verifyConnectivityAndGetServerInfo = function(fe) { var se = fe.database, de = fe.accessMode; return u(this, void 0, void 0, function() { - var ge, Oe, ke, Me, Ne, Ce, Y, Z, ie, we, Ee; - return l(this, function(De) { - switch (De.label) { + var ge, Oe, ke, De, Ne, Te, Y, Q, ie, we, Ee; + return l(this, function(Me) { + switch (Me.label) { case 0: return ge = { database: se || ue }, [4, this._freshRoutingTable({ accessMode: de, database: ge.database, onDatabaseNameResolved: function(Ie) { ge.database = ge.database || Ie; } })]; case 1: - Oe = De.sent(), ke = de === I ? Oe.writers : Oe.readers, Me = (0, h.newError)("No servers available for database '".concat(ge.database, "' with access mode '").concat(de, "'"), S), De.label = 2; + Oe = Me.sent(), ke = de === I ? Oe.writers : Oe.readers, De = (0, h.newError)("No servers available for database '".concat(ge.database, "' with access mode '").concat(de, "'"), S), Me.label = 2; case 2: - De.trys.push([2, 9, 10, 11]), Ne = c(ke), Ce = Ne.next(), De.label = 3; + Me.trys.push([2, 9, 10, 11]), Ne = c(ke), Te = Ne.next(), Me.label = 3; case 3: - if (Ce.done) return [3, 8]; - Y = Ce.value, De.label = 4; + if (Te.done) return [3, 8]; + Y = Te.value, Me.label = 4; case 4: - return De.trys.push([4, 6, , 7]), [4, this._verifyConnectivityAndGetServerVersion({ address: Y })]; + return Me.trys.push([4, 6, , 7]), [4, this._verifyConnectivityAndGetServerVersion({ address: Y })]; case 5: - return [2, De.sent()]; + return [2, Me.sent()]; case 6: - return Z = De.sent(), Me = Z, [3, 7]; + return Q = Me.sent(), De = Q, [3, 7]; case 7: - return Ce = Ne.next(), [3, 3]; + return Te = Ne.next(), [3, 3]; case 8: return [3, 11]; case 9: - return ie = De.sent(), we = { error: ie }, [3, 11]; + return ie = Me.sent(), we = { error: ie }, [3, 11]; case 10: try { - Ce && !Ce.done && (Ee = Ne.return) && Ee.call(Ne); + Te && !Te.done && (Ee = Ne.return) && Ee.call(Ne); } finally { if (we) throw we.error; } return [7]; case 11: - throw Me; + throw De; } }); }); @@ -62221,30 +62233,30 @@ function print() { __p += __j.call(arguments, '') } return de.forgetWriter(fe); } }); }, pe.prototype._freshRoutingTable = function(fe) { - var se = fe === void 0 ? {} : fe, de = se.accessMode, ge = se.database, Oe = se.bookmarks, ke = se.impersonatedUser, Me = se.onDatabaseNameResolved, Ne = se.auth, Ce = this._routingTableRegistry.get(ge, function() { + var se = fe === void 0 ? {} : fe, de = se.accessMode, ge = se.database, Oe = se.bookmarks, ke = se.impersonatedUser, De = se.onDatabaseNameResolved, Ne = se.auth, Te = this._routingTableRegistry.get(ge, function() { return new p.RoutingTable({ database: ge }); }); - return Ce.isStaleFor(de) ? (this._log.info('Routing table is stale for database: "'.concat(ge, '" and access mode: "').concat(de, '": ').concat(Ce)), this._refreshRoutingTable(Ce, Oe, ke, Ne).then(function(Y) { - return Me(Y.database), Y; - })) : Ce; + return Te.isStaleFor(de) ? (this._log.info('Routing table is stale for database: "'.concat(ge, '" and access mode: "').concat(de, '": ').concat(Te)), this._refreshRoutingTable(Te, Oe, ke, Ne).then(function(Y) { + return De(Y.database), Y; + })) : Te; }, pe.prototype._refreshRoutingTable = function(fe, se, de, ge) { var Oe = fe.routers; return this._useSeedRouter ? this._fetchRoutingTableFromSeedRouterFallbackToKnownRouters(Oe, fe, se, de, ge) : this._fetchRoutingTableFromKnownRoutersFallbackToSeedRouter(Oe, fe, se, de, ge); }, pe.prototype._fetchRoutingTableFromSeedRouterFallbackToKnownRouters = function(fe, se, de, ge, Oe) { return u(this, void 0, void 0, function() { - var ke, Me, Ne, Ce, Y, Z, ie; + var ke, De, Ne, Te, Y, Q, ie; return l(this, function(we) { switch (we.label) { case 0: return ke = [], [4, this._fetchRoutingTableUsingSeedRouter(ke, this._seedRouter, se, de, ge, Oe)]; case 1: - return Me = f.apply(void 0, [we.sent(), 2]), Ne = Me[0], Ce = Me[1], Ne ? (this._useSeedRouter = !1, [3, 4]) : [3, 2]; + return De = f.apply(void 0, [we.sent(), 2]), Ne = De[0], Te = De[1], Ne ? (this._useSeedRouter = !1, [3, 4]) : [3, 2]; case 2: return [4, this._fetchRoutingTableUsingKnownRouters(fe, se, de, ge, Oe)]; case 3: - Y = f.apply(void 0, [we.sent(), 2]), Z = Y[0], ie = Y[1], Ne = Z, Ce = ie || Ce, we.label = 4; + Y = f.apply(void 0, [we.sent(), 2]), Q = Y[0], ie = Y[1], Ne = Q, Te = ie || Te, we.label = 4; case 4: - return [4, this._applyRoutingTableIfPossible(se, Ne, Ce)]; + return [4, this._applyRoutingTableIfPossible(se, Ne, Te)]; case 5: return [2, we.sent()]; } @@ -62252,17 +62264,17 @@ function print() { __p += __j.call(arguments, '') } }); }, pe.prototype._fetchRoutingTableFromKnownRoutersFallbackToSeedRouter = function(fe, se, de, ge, Oe) { return u(this, void 0, void 0, function() { - var ke, Me, Ne, Ce; + var ke, De, Ne, Te; return l(this, function(Y) { switch (Y.label) { case 0: return [4, this._fetchRoutingTableUsingKnownRouters(fe, se, de, ge, Oe)]; case 1: - return ke = f.apply(void 0, [Y.sent(), 2]), Me = ke[0], Ne = ke[1], Me ? [3, 3] : [4, this._fetchRoutingTableUsingSeedRouter(fe, this._seedRouter, se, de, ge, Oe)]; + return ke = f.apply(void 0, [Y.sent(), 2]), De = ke[0], Ne = ke[1], De ? [3, 3] : [4, this._fetchRoutingTableUsingSeedRouter(fe, this._seedRouter, se, de, ge, Oe)]; case 2: - Ce = f.apply(void 0, [Y.sent(), 2]), Me = Ce[0], Ne = Ce[1], Y.label = 3; + Te = f.apply(void 0, [Y.sent(), 2]), De = Te[0], Ne = Te[1], Y.label = 3; case 3: - return [4, this._applyRoutingTableIfPossible(se, Me, Ne)]; + return [4, this._applyRoutingTableIfPossible(se, De, Ne)]; case 4: return [2, Y.sent()]; } @@ -62270,29 +62282,29 @@ function print() { __p += __j.call(arguments, '') } }); }, pe.prototype._fetchRoutingTableUsingKnownRouters = function(fe, se, de, ge, Oe) { return u(this, void 0, void 0, function() { - var ke, Me, Ne, Ce; + var ke, De, Ne, Te; return l(this, function(Y) { switch (Y.label) { case 0: return [4, this._fetchRoutingTable(fe, se, de, ge, Oe)]; case 1: - return ke = f.apply(void 0, [Y.sent(), 2]), Me = ke[0], Ne = ke[1], Me ? [2, [Me, null]] : (Ce = fe.length - 1, pe._forgetRouter(se, fe, Ce), [2, [null, Ne]]); + return ke = f.apply(void 0, [Y.sent(), 2]), De = ke[0], Ne = ke[1], De ? [2, [De, null]] : (Te = fe.length - 1, pe._forgetRouter(se, fe, Te), [2, [null, Ne]]); } }); }); }, pe.prototype._fetchRoutingTableUsingSeedRouter = function(fe, se, de, ge, Oe, ke) { return u(this, void 0, void 0, function() { - var Me, Ne; - return l(this, function(Ce) { - switch (Ce.label) { + var De, Ne; + return l(this, function(Te) { + switch (Te.label) { case 0: return [4, this._resolveSeedRouter(se)]; case 1: - return Me = Ce.sent(), Ne = Me.filter(function(Y) { + return De = Te.sent(), Ne = De.filter(function(Y) { return fe.indexOf(Y) < 0; }), [4, this._fetchRoutingTable(Ne, de, ge, Oe, ke)]; case 2: - return [2, Ce.sent()]; + return [2, Te.sent()]; } }); }); @@ -62315,27 +62327,27 @@ function print() { __p += __j.call(arguments, '') } }, pe.prototype._fetchRoutingTable = function(fe, se, de, ge, Oe) { return u(this, void 0, void 0, function() { var ke = this; - return l(this, function(Me) { - return [2, fe.reduce(function(Ne, Ce, Y) { + return l(this, function(De) { + return [2, fe.reduce(function(Ne, Te, Y) { return u(ke, void 0, void 0, function() { - var Z, ie, we, Ee, De, Ie, Ye; + var Q, ie, we, Ee, Me, Ie, Ye; return l(this, function(ot) { switch (ot.label) { case 0: return [4, Ne]; case 1: - return Z = f.apply(void 0, [ot.sent(), 1]), (ie = Z[0]) ? [2, [ie, null]] : (we = Y - 1, pe._forgetRouter(se, fe, we), [4, this._createSessionForRediscovery(Ce, de, ge, Oe)]); + return Q = f.apply(void 0, [ot.sent(), 1]), (ie = Q[0]) ? [2, [ie, null]] : (we = Y - 1, pe._forgetRouter(se, fe, we), [4, this._createSessionForRediscovery(Te, de, ge, Oe)]); case 2: - if (Ee = f.apply(void 0, [ot.sent(), 2]), De = Ee[0], Ie = Ee[1], !De) return [3, 8]; + if (Ee = f.apply(void 0, [ot.sent(), 2]), Me = Ee[0], Ie = Ee[1], !Me) return [3, 8]; ot.label = 3; case 3: - return ot.trys.push([3, 5, 6, 7]), [4, this._rediscovery.lookupRoutingTableOnRouter(De, se.database, Ce, ge)]; + return ot.trys.push([3, 5, 6, 7]), [4, this._rediscovery.lookupRoutingTableOnRouter(Me, se.database, Te, ge)]; case 4: return [2, [ot.sent(), null]]; case 5: - return Ye = ot.sent(), [2, this._handleRediscoveryError(Ye, Ce)]; + return Ye = ot.sent(), [2, this._handleRediscoveryError(Ye, Te)]; case 6: - return De.close(), [7]; + return Me.close(), [7]; case 7: return [3, 9]; case 8: @@ -62350,21 +62362,21 @@ function print() { __p += __j.call(arguments, '') } }); }, pe.prototype._createSessionForRediscovery = function(fe, se, de, ge) { return u(this, void 0, void 0, function() { - var Oe, ke, Me, Ne, Ce, Y = this; - return l(this, function(Z) { - switch (Z.label) { + var Oe, ke, De, Ne, Te, Y = this; + return l(this, function(Q) { + switch (Q.label) { case 0: - return Z.trys.push([0, 4, , 5]), [4, this._connectionPool.acquire({ auth: ge }, fe)]; + return Q.trys.push([0, 4, , 5]), [4, this._connectionPool.acquire({ auth: ge }, fe)]; case 1: - return Oe = Z.sent(), ge ? [4, this._verifyStickyConnection({ auth: ge, connection: Oe, address: fe })] : [3, 3]; + return Oe = Q.sent(), ge ? [4, this._verifyStickyConnection({ auth: ge, connection: Oe, address: fe })] : [3, 3]; case 2: - Z.sent(), Z.label = 3; + Q.sent(), Q.label = 3; case 3: return ke = m.ConnectionErrorHandler.create({ errorCode: O, handleSecurityError: function(ie, we, Ee) { return Y._handleSecurityError(ie, we, Ee); - } }), Me = Oe._sticky ? new m.DelegateConnection(Oe) : new m.DelegateConnection(Oe, ke), Ne = new y.default(Me), Oe.protocol().version < 4 ? [2, [new h.Session({ mode: I, bookmarks: E.empty(), connectionProvider: Ne }), null]] : [2, [new h.Session({ mode: P, database: "system", bookmarks: se, connectionProvider: Ne, impersonatedUser: de }), null]]; + } }), De = Oe._sticky ? new m.DelegateConnection(Oe) : new m.DelegateConnection(Oe, ke), Ne = new y.default(De), Oe.protocol().version < 4 ? [2, [new h.Session({ mode: I, bookmarks: E.empty(), connectionProvider: Ne }), null]] : [2, [new h.Session({ mode: P, database: "system", bookmarks: se, connectionProvider: Ne, impersonatedUser: de }), null]]; case 4: - return Ce = Z.sent(), [2, this._handleRediscoveryError(Ce, fe)]; + return Te = Q.sent(), [2, this._handleRediscoveryError(Te, fe)]; case 5: return [2]; } @@ -62372,7 +62384,7 @@ function print() { __p += __j.call(arguments, '') } }); }, pe.prototype._handleRediscoveryError = function(fe, se) { if ((function(de) { - return [z, H, q, $, J, X, Q].includes(de.code); + return [z, H, q, $, J, X, Z].includes(de.code); })(fe) || (function(de) { var ge; return ((ge = de.code) === null || ge === void 0 ? void 0 : ge.startsWith("Neo.ClientError.Security.")) && ![W].includes(de.code); @@ -62456,8 +62468,8 @@ function print() { __p += __j.call(arguments, '') } var Oe = f(ge.value, 2), ke = Oe[0]; pe(Oe[1]) && this._remove(ke); } - } catch (Me) { - fe = { error: Me }; + } catch (De) { + fe = { error: De }; } finally { try { ge && !ge.done && (se = de.return) && se.call(de); @@ -64019,8 +64031,8 @@ function print() { __p += __j.call(arguments, '') } var T = E === void 0 ? {} : E, P = T.beforeError, I = T.afterError, k = T.beforeComplete, L = T.afterComplete; return this.run("ROLLBACK", {}, { bookmarks: g.empty(), txConfig: m.empty(), mode: b, beforeError: P, afterError: I, beforeComplete: k, afterComplete: L }); }, O.prototype.run = function(E, T, P) { - var I = P === void 0 ? {} : P, k = (I.bookmarks, I.txConfig), L = I.database, B = (I.mode, I.impersonatedUser), j = I.notificationFilter, z = I.beforeKeys, H = I.afterKeys, q = I.beforeError, W = I.afterError, $ = I.beforeComplete, J = I.afterComplete, X = I.flush, Q = X === void 0 || X, ue = I.highRecordWatermark, re = ue === void 0 ? Number.MAX_VALUE : ue, ne = I.lowRecordWatermark, le = ne === void 0 ? Number.MAX_VALUE : ne, ce = new f.ResultStreamObserver({ server: this._server, beforeKeys: z, afterKeys: H, beforeError: q, afterError: W, beforeComplete: $, afterComplete: J, highRecordWatermark: re, lowRecordWatermark: le }); - return (0, u.assertTxConfigIsEmpty)(k, this._onProtocolError, ce), (0, u.assertDatabaseIsEmpty)(L, this._onProtocolError, ce), (0, u.assertImpersonatedUserIsEmpty)(B, this._onProtocolError, ce), (0, u.assertNotificationFilterIsEmpty)(j, this._onProtocolError, ce), this.write(c.default.run(E, T), ce, !1), this.write(c.default.pullAll(), ce, Q), ce; + var I = P === void 0 ? {} : P, k = (I.bookmarks, I.txConfig), L = I.database, B = (I.mode, I.impersonatedUser), j = I.notificationFilter, z = I.beforeKeys, H = I.afterKeys, q = I.beforeError, W = I.afterError, $ = I.beforeComplete, J = I.afterComplete, X = I.flush, Z = X === void 0 || X, ue = I.highRecordWatermark, re = ue === void 0 ? Number.MAX_VALUE : ue, ne = I.lowRecordWatermark, le = ne === void 0 ? Number.MAX_VALUE : ne, ce = new f.ResultStreamObserver({ server: this._server, beforeKeys: z, afterKeys: H, beforeError: q, afterError: W, beforeComplete: $, afterComplete: J, highRecordWatermark: re, lowRecordWatermark: le }); + return (0, u.assertTxConfigIsEmpty)(k, this._onProtocolError, ce), (0, u.assertDatabaseIsEmpty)(L, this._onProtocolError, ce), (0, u.assertImpersonatedUserIsEmpty)(B, this._onProtocolError, ce), (0, u.assertNotificationFilterIsEmpty)(j, this._onProtocolError, ce), this.write(c.default.run(E, T), ce, !1), this.write(c.default.pullAll(), ce, Z), ce; }, Object.defineProperty(O.prototype, "currentFailure", { get: function() { return this._responseHandler.currentFailure; }, enumerable: !1, configurable: !0 }), O.prototype.reset = function(E) { @@ -64525,9 +64537,9 @@ function print() { __p += __j.call(arguments, '') } Object.defineProperty(e, "combineLatest", { enumerable: !0, get: function() { return X.combineLatest; } }); - var Q = t(3865); + var Z = t(3865); Object.defineProperty(e, "concat", { enumerable: !0, get: function() { - return Q.concat; + return Z.concat; } }); var ue = t(7579); Object.defineProperty(e, "connectable", { enumerable: !0, get: function() { @@ -64577,25 +64589,25 @@ function print() { __p += __j.call(arguments, '') } Object.defineProperty(e, "never", { enumerable: !0, get: function() { return ke.never; } }); - var Me = t(1004); + var De = t(1004); Object.defineProperty(e, "of", { enumerable: !0, get: function() { - return Me.of; + return De.of; } }); var Ne = t(6102); Object.defineProperty(e, "onErrorResumeNext", { enumerable: !0, get: function() { return Ne.onErrorResumeNext; } }); - var Ce = t(7740); + var Te = t(7740); Object.defineProperty(e, "pairs", { enumerable: !0, get: function() { - return Ce.pairs; + return Te.pairs; } }); var Y = t(1699); Object.defineProperty(e, "partition", { enumerable: !0, get: function() { return Y.partition; } }); - var Z = t(5584); + var Q = t(5584); Object.defineProperty(e, "race", { enumerable: !0, get: function() { - return Z.race; + return Q.race; } }); var ie = t(9376); Object.defineProperty(e, "range", { enumerable: !0, get: function() { @@ -64609,9 +64621,9 @@ function print() { __p += __j.call(arguments, '') } Object.defineProperty(e, "timer", { enumerable: !0, get: function() { return Ee.timer; } }); - var De = t(7853); + var Me = t(7853); Object.defineProperty(e, "using", { enumerable: !0, get: function() { - return De.using; + return Me.using; } }); var Ie = t(7286); Object.defineProperty(e, "zip", { enumerable: !0, get: function() { @@ -65762,7 +65774,7 @@ function print() { __p += __j.call(arguments, '') } e.StreamObserver = c; var f = (function(S) { function O(E) { - var T = E === void 0 ? {} : E, P = T.reactive, I = P !== void 0 && P, k = T.moreFunction, L = T.discardFunction, B = T.fetchSize, j = B === void 0 ? u : B, z = T.beforeError, H = T.afterError, q = T.beforeKeys, W = T.afterKeys, $ = T.beforeComplete, J = T.afterComplete, X = T.server, Q = T.highRecordWatermark, ue = Q === void 0 ? Number.MAX_VALUE : Q, re = T.lowRecordWatermark, ne = re === void 0 ? Number.MAX_VALUE : re, le = T.enrichMetadata, ce = T.onDb, pe = S.call(this) || this; + var T = E === void 0 ? {} : E, P = T.reactive, I = P !== void 0 && P, k = T.moreFunction, L = T.discardFunction, B = T.fetchSize, j = B === void 0 ? u : B, z = T.beforeError, H = T.afterError, q = T.beforeKeys, W = T.afterKeys, $ = T.beforeComplete, J = T.afterComplete, X = T.server, Z = T.highRecordWatermark, ue = Z === void 0 ? Number.MAX_VALUE : Z, re = T.lowRecordWatermark, ne = re === void 0 ? Number.MAX_VALUE : re, le = T.enrichMetadata, ce = T.onDb, pe = S.call(this) || this; return pe._fieldKeys = null, pe._fieldLookup = null, pe._head = null, pe._queuedRecords = [], pe._tail = null, pe._error = null, pe._observers = [], pe._meta = {}, pe._server = X, pe._beforeError = z, pe._afterError = H, pe._beforeKeys = q, pe._afterKeys = W, pe._beforeComplete = $, pe._afterComplete = J, pe._enrichMetadata = le || s.functional.identity, pe._queryId = null, pe._moreFunction = k, pe._discardFunction = L, pe._discard = !1, pe._fetchSize = j, pe._lowRecordWatermark = ne, pe._highRecordWatermark = ue, pe._setState(I ? x.READY : x.READY_STREAMING), pe._setupAutoPull(), pe._paused = !1, pe._pulled = !I, pe._haveRecordStreamed = !1, pe._onDb = ce, pe; } return n(O, S), O.prototype.pause = function() { @@ -66456,23 +66468,23 @@ Error message: `).concat(j.message), c); }; }; }, 9305: function(r, e, t) { - var n = this && this.__createBinding || (Object.create ? function(X, Q, ue, re) { + var n = this && this.__createBinding || (Object.create ? function(X, Z, ue, re) { re === void 0 && (re = ue); - var ne = Object.getOwnPropertyDescriptor(Q, ue); - ne && !("get" in ne ? !Q.__esModule : ne.writable || ne.configurable) || (ne = { enumerable: !0, get: function() { - return Q[ue]; + var ne = Object.getOwnPropertyDescriptor(Z, ue); + ne && !("get" in ne ? !Z.__esModule : ne.writable || ne.configurable) || (ne = { enumerable: !0, get: function() { + return Z[ue]; } }), Object.defineProperty(X, re, ne); - } : function(X, Q, ue, re) { - re === void 0 && (re = ue), X[re] = Q[ue]; - }), i = this && this.__setModuleDefault || (Object.create ? function(X, Q) { - Object.defineProperty(X, "default", { enumerable: !0, value: Q }); - } : function(X, Q) { - X.default = Q; + } : function(X, Z, ue, re) { + re === void 0 && (re = ue), X[re] = Z[ue]; + }), i = this && this.__setModuleDefault || (Object.create ? function(X, Z) { + Object.defineProperty(X, "default", { enumerable: !0, value: Z }); + } : function(X, Z) { + X.default = Z; }), a = this && this.__importStar || function(X) { if (X && X.__esModule) return X; - var Q = {}; - if (X != null) for (var ue in X) ue !== "default" && Object.prototype.hasOwnProperty.call(X, ue) && n(Q, X, ue); - return i(Q, X), Q; + var Z = {}; + if (X != null) for (var ue in X) ue !== "default" && Object.prototype.hasOwnProperty.call(X, ue) && n(Z, X, ue); + return i(Z, X), Z; }, o = this && this.__importDefault || function(X) { return X && X.__esModule ? X : { default: X }; }; @@ -66838,9 +66850,9 @@ Error message: `).concat(j.message), c); Object.defineProperty(e, "expand", { enumerable: !0, get: function() { return X.expand; } }); - var Q = t(783); + var Z = t(783); Object.defineProperty(e, "filter", { enumerable: !0, get: function() { - return Q.filter; + return Z.filter; } }); var ue = t(3555); Object.defineProperty(e, "finalize", { enumerable: !0, get: function() { @@ -66890,25 +66902,25 @@ Error message: `).concat(j.message), c); Object.defineProperty(e, "max", { enumerable: !0, get: function() { return ke.max; } }); - var Me = t(361); + var De = t(361); Object.defineProperty(e, "merge", { enumerable: !0, get: function() { - return Me.merge; + return De.merge; } }); var Ne = t(7302); Object.defineProperty(e, "mergeAll", { enumerable: !0, get: function() { return Ne.mergeAll; } }); - var Ce = t(6902); + var Te = t(6902); Object.defineProperty(e, "flatMap", { enumerable: !0, get: function() { - return Ce.flatMap; + return Te.flatMap; } }); var Y = t(983); Object.defineProperty(e, "mergeMap", { enumerable: !0, get: function() { return Y.mergeMap; } }); - var Z = t(6586); + var Q = t(6586); Object.defineProperty(e, "mergeMapTo", { enumerable: !0, get: function() { - return Z.mergeMapTo; + return Q.mergeMapTo; } }); var ie = t(4408); Object.defineProperty(e, "mergeScan", { enumerable: !0, get: function() { @@ -66922,9 +66934,9 @@ Error message: `).concat(j.message), c); Object.defineProperty(e, "min", { enumerable: !0, get: function() { return Ee.min; } }); - var De = t(9247); + var Me = t(9247); Object.defineProperty(e, "multicast", { enumerable: !0, get: function() { - return De.multicast; + return Me.multicast; } }); var Ie = t(5184); Object.defineProperty(e, "observeOn", { enumerable: !0, get: function() { @@ -68447,7 +68459,7 @@ function io(r) { var e = d8[r]; if (e !== void 0) return e.exports; var t = d8[r] = { id: r, loaded: !1, exports: {} }; - return fae[r].call(t.exports, t, t.exports, io), t.loaded = !0, t.exports; + return dae[r].call(t.exports, t, t.exports, io), t.loaded = !0, t.exports; } io.n = (r) => { var e = r && r.__esModule ? () => r.default : () => r; @@ -68462,16 +68474,16 @@ io.n = (r) => { if (typeof window == "object") return window; } })(), io.o = (r, e) => Object.prototype.hasOwnProperty.call(r, e), io.nmd = (r) => (r.paths = [], r.children || (r.children = []), r); -var Hi = io(5250), dae = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, e) { +var Hi = io(5250), hae = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, e) { r.__proto__ = e; } || function(r, e) { for (var t in e) e.hasOwnProperty(t) && (r[t] = e[t]); }; -function aE(r, e) { +function iE(r, e) { function t() { this.constructor = r; } - dae(r, e), r.prototype = e === null ? Object.create(e) : (t.prototype = e.prototype, new t()); + hae(r, e), r.prototype = e === null ? Object.create(e) : (t.prototype = e.prototype, new t()); } var n_ = (function() { function r(e) { @@ -68493,13 +68505,13 @@ var n_ = (function() { }, r.prototype.toString = function() { return this.name; }, r; -})(), hae = (function(r) { +})(), vae = (function(r) { function e(t, n, i) { t === void 0 && (t = "Atom@" + lu()), n === void 0 && (n = O8), i === void 0 && (i = O8); var a = r.call(this, t) || this; return a.name = t, a.onBecomeObservedHandler = n, a.onBecomeUnobservedHandler = i, a.isPendingUnobservation = !1, a.isBeingTracked = !1, a; } - return aE(e, r), e.prototype.reportObserved = function() { + return iE(e, r), e.prototype.reportObserved = function() { return Tp(), r.prototype.reportObserved.call(this), this.isBeingTracked || (this.isBeingTracked = !0, this.onBecomeObservedHandler()), Cp(), !!Er.trackingDerivation; }, e.prototype.onBecomeUnobserved = function() { this.isBeingTracked = !1, this.onBecomeUnobservedHandler(); @@ -68508,7 +68520,7 @@ var n_ = (function() { function Kg(r) { return r.interceptors && r.interceptors.length > 0; } -function oE(r, e) { +function aE(r, e) { var t = r.interceptors || (r.interceptors = []); return t.push(e), LD(function() { var n = t.indexOf(e); @@ -68528,7 +68540,7 @@ function Zg(r, e) { function Sp(r) { return r.changeListeners && r.changeListeners.length > 0; } -function sE(r, e) { +function oE(r, e) { var t = r.changeListeners || (r.changeListeners = []); return t.push(e), LD(function() { var n = t.indexOf(e); @@ -68572,15 +68584,15 @@ function ux(r) { function bz(r, e) { R1(r, typeof Symbol == "function" && Symbol.iterator || "@@iterator", e); } -var $0, Ew, vae = (function() { +var $0, Ew, pae = (function() { var r = !1, e = {}; return Object.defineProperty(e, "0", { set: function() { r = !0; } }), Object.create(e)[0] = 1, r === !1; -})(), AM = 0, RM = function() { +})(), CM = 0, AM = function() { }; -$0 = RM, Ew = Array.prototype, Object.setPrototypeOf !== void 0 ? Object.setPrototypeOf($0.prototype, Ew) : $0.prototype.__proto__ !== void 0 ? $0.prototype.__proto__ = Ew : $0.prototype = Ew, Object.isFrozen(Array) && ["constructor", "push", "shift", "concat", "pop", "unshift", "replace", "find", "findIndex", "splice", "reverse", "sort"].forEach(function(r) { - Object.defineProperty(RM.prototype, r, { configurable: !0, writable: !0, value: Array.prototype[r] }); +$0 = AM, Ew = Array.prototype, Object.setPrototypeOf !== void 0 ? Object.setPrototypeOf($0.prototype, Ew) : $0.prototype.__proto__ !== void 0 ? $0.prototype.__proto__ = Ew : $0.prototype = Ew, Object.isFrozen(Array) && ["constructor", "push", "shift", "concat", "pop", "unshift", "replace", "find", "findIndex", "splice", "reverse", "sort"].forEach(function(r) { + Object.defineProperty(AM.prototype, r, { configurable: !0, writable: !0, value: Array.prototype[r] }); }); var _z = (function() { function r(e, t, n, i) { @@ -68593,9 +68605,9 @@ var _z = (function() { }, r.prototype.dehanceValues = function(e) { return this.dehancer !== void 0 ? e.map(this.dehancer) : e; }, r.prototype.intercept = function(e) { - return oE(this, e); + return aE(this, e); }, r.prototype.observe = function(e, t) { - return t === void 0 && (t = !1), t && e({ object: this.array, type: "splice", index: 0, added: this.values.slice(), addedCount: this.values.length, removed: [], removedCount: 0 }), sE(this, e); + return t === void 0 && (t = !1), t && e({ object: this.array, type: "splice", index: 0, added: this.values.slice(), addedCount: this.values.length, removed: [], removedCount: 0 }), oE(this, e); }, r.prototype.getArrayLength = function() { return this.atom.reportObserved(), this.values.length; }, r.prototype.setArrayLength = function(e) { @@ -68607,7 +68619,7 @@ var _z = (function() { } else this.spliceWithArray(e, t - e); }, r.prototype.updateArrayLength = function(e, t) { if (e !== this.lastKnownLength) throw new Error("[mobx] Modification exception: the internal structure of an observable array was changed. Did you use peek() to change it?"); - this.lastKnownLength += t, t > 0 && e + t + 1 > AM && DD(e + t + 1); + this.lastKnownLength += t, t > 0 && e + t + 1 > CM && DD(e + t + 1); }, r.prototype.spliceWithArray = function(e, t, n) { var i = this; FD(this.atom); @@ -68638,9 +68650,9 @@ var _z = (function() { function e(t, n, i, a) { i === void 0 && (i = "ObservableArray@" + lu()), a === void 0 && (a = !1); var o = r.call(this) || this, s = new _z(i, n, o, a); - return R1(o, "$mobx", s), t && t.length && o.spliceWithArray(0, 0, t), vae && Object.defineProperty(s.array, "0", pae), o; + return R1(o, "$mobx", s), t && t.length && o.spliceWithArray(0, 0, t), pae && Object.defineProperty(s.array, "0", gae), o; } - return aE(e, r), e.prototype.intercept = function(t) { + return iE(e, r), e.prototype.intercept = function(t) { return this.$mobx.intercept(t); }, e.prototype.observe = function(t, n) { return n === void 0 && (n = !1), this.$mobx.observe(t, n); @@ -68733,7 +68745,7 @@ var _z = (function() { i.spliceWithArray(t, 0, [n]); } }, e; -})(RM); +})(AM); bz(uv.prototype, function() { return ux(this.slice()); }), Object.defineProperty(uv.prototype, "length", { enumerable: !1, configurable: !0, get: function() { @@ -68748,7 +68760,7 @@ bz(uv.prototype, function() { }), (function(r, e) { for (var t = 0; t < e.length; t++) jp(r, e[t], r[e[t]]); })(uv.prototype, ["constructor", "intercept", "observe", "clear", "concat", "get", "replace", "toJS", "toJSON", "peek", "find", "findIndex", "splice", "spliceWithArray", "push", "pop", "set", "shift", "unshift", "reverse", "sort", "remove", "move", "toString", "toLocaleString"]); -var pae = wz(0); +var gae = wz(0); function wz(r) { return { enumerable: !1, configurable: !1, get: function() { return this.get(r); @@ -68756,17 +68768,17 @@ function wz(r) { this.set(r, e); } }; } -function gae(r) { +function yae(r) { Object.defineProperty(uv.prototype, "" + r, wz(r)); } function DD(r) { - for (var e = AM; e < r; e++) gae(e); - AM = r; + for (var e = CM; e < r; e++) yae(e); + CM = r; } DD(1e3); -var yae = ly("ObservableArrayAdministration", _z); +var mae = ly("ObservableArrayAdministration", _z); function gv(r) { - return jD(r) && yae(r.$mobx); + return jD(r) && mae(r.$mobx); } var Ib = {}, Lp = (function(r) { function e(t, n, i, a) { @@ -68774,7 +68786,7 @@ var Ib = {}, Lp = (function(r) { var o = r.call(this, i) || this; return o.enhancer = n, o.hasUnreportedChange = !1, o.dehancer = void 0, o.value = n(t, void 0, i), a && Ul() && Qg({ type: "create", object: o, newValue: o.value }), o; } - return aE(e, r), e.prototype.dehanceValue = function(t) { + return iE(e, r), e.prototype.dehanceValue = function(t) { return this.dehancer !== void 0 ? this.dehancer(t) : t; }, e.prototype.set = function(t) { var n = this.value; @@ -68795,9 +68807,9 @@ var Ib = {}, Lp = (function(r) { }, e.prototype.get = function() { return this.reportObserved(), this.dehanceValue(this.value); }, e.prototype.intercept = function(t) { - return oE(this, t); + return aE(this, t); }, e.prototype.observe = function(t, n) { - return n && t({ object: this, type: "update", newValue: this.value, oldValue: void 0 }), sE(this, t); + return n && t({ object: this, type: "update", newValue: this.value, oldValue: void 0 }), oE(this, t); }, e.prototype.toJSON = function() { return this.get(); }, e.prototype.toString = function() { @@ -68807,7 +68819,7 @@ var Ib = {}, Lp = (function(r) { }, e; })(n_); Lp.prototype[Fz()] = Lp.prototype.valueOf; -var kD = ly("ObservableValue", Lp), mae = { m001: "It is not allowed to assign new values to @action fields", m002: "`runInAction` expects a function", m003: "`runInAction` expects a function without arguments", m004: "autorun expects a function", m005: "Warning: attempted to pass an action to autorun. Actions are untracked and will not trigger on state changes. Use `reaction` or wrap only your state modification code in an action.", m006: "Warning: attempted to pass an action to autorunAsync. Actions are untracked and will not trigger on state changes. Use `reaction` or wrap only your state modification code in an action.", m007: "reaction only accepts 2 or 3 arguments. If migrating from MobX 2, please provide an options object", m008: "wrapping reaction expression in `asReference` is no longer supported, use options object instead", m009: "@computed can only be used on getter functions, like: '@computed get myProps() { return ...; }'. It looks like it was used on a property.", m010: "@computed can only be used on getter functions, like: '@computed get myProps() { return ...; }'", m011: "First argument to `computed` should be an expression. If using computed as decorator, don't pass it arguments", m012: "computed takes one or two arguments if used as function", m013: "[mobx.expr] 'expr' should only be used inside other reactive functions.", m014: "extendObservable expected 2 or more arguments", m015: "extendObservable expects an object as first argument", m016: "extendObservable should not be used on maps, use map.merge instead", m017: "all arguments of extendObservable should be objects", m018: "extending an object with another observable (object) is not supported. Please construct an explicit propertymap, using `toJS` if need. See issue #540", m019: "[mobx.isObservable] isObservable(object, propertyName) is not supported for arrays and maps. Use map.has or array.length instead.", m020: "modifiers can only be used for individual object properties", m021: "observable expects zero or one arguments", m022: "@observable can not be used on getters, use @computed instead", m024: "whyRun() can only be used if a derivation is active, or by passing an computed value / reaction explicitly. If you invoked whyRun from inside a computation; the computation is currently suspended but re-evaluating because somebody requested its value.", m025: "whyRun can only be used on reactions and computed values", m026: "`action` can only be invoked on functions", m028: "It is not allowed to set `useStrict` when a derivation is running", m029: "INTERNAL ERROR only onBecomeUnobserved shouldn't be called twice in a row", m030a: "Since strict-mode is enabled, changing observed observable values outside actions is not allowed. Please wrap the code in an `action` if this change is intended. Tried to modify: ", m030b: "Side effects like changing state are not allowed at this point. Are you trying to modify state from, for example, the render function of a React component? Tried to modify: ", m031: "Computed values are not allowed to cause side effects by changing observables that are already being observed. Tried to modify: ", m032: `* This computation is suspended (not in use by any reaction) and won't run automatically. +var kD = ly("ObservableValue", Lp), bae = { m001: "It is not allowed to assign new values to @action fields", m002: "`runInAction` expects a function", m003: "`runInAction` expects a function without arguments", m004: "autorun expects a function", m005: "Warning: attempted to pass an action to autorun. Actions are untracked and will not trigger on state changes. Use `reaction` or wrap only your state modification code in an action.", m006: "Warning: attempted to pass an action to autorunAsync. Actions are untracked and will not trigger on state changes. Use `reaction` or wrap only your state modification code in an action.", m007: "reaction only accepts 2 or 3 arguments. If migrating from MobX 2, please provide an options object", m008: "wrapping reaction expression in `asReference` is no longer supported, use options object instead", m009: "@computed can only be used on getter functions, like: '@computed get myProps() { return ...; }'. It looks like it was used on a property.", m010: "@computed can only be used on getter functions, like: '@computed get myProps() { return ...; }'", m011: "First argument to `computed` should be an expression. If using computed as decorator, don't pass it arguments", m012: "computed takes one or two arguments if used as function", m013: "[mobx.expr] 'expr' should only be used inside other reactive functions.", m014: "extendObservable expected 2 or more arguments", m015: "extendObservable expects an object as first argument", m016: "extendObservable should not be used on maps, use map.merge instead", m017: "all arguments of extendObservable should be objects", m018: "extending an object with another observable (object) is not supported. Please construct an explicit propertymap, using `toJS` if need. See issue #540", m019: "[mobx.isObservable] isObservable(object, propertyName) is not supported for arrays and maps. Use map.has or array.length instead.", m020: "modifiers can only be used for individual object properties", m021: "observable expects zero or one arguments", m022: "@observable can not be used on getters, use @computed instead", m024: "whyRun() can only be used if a derivation is active, or by passing an computed value / reaction explicitly. If you invoked whyRun from inside a computation; the computation is currently suspended but re-evaluating because somebody requested its value.", m025: "whyRun can only be used on reactions and computed values", m026: "`action` can only be invoked on functions", m028: "It is not allowed to set `useStrict` when a derivation is running", m029: "INTERNAL ERROR only onBecomeUnobserved shouldn't be called twice in a row", m030a: "Since strict-mode is enabled, changing observed observable values outside actions is not allowed. Please wrap the code in an `action` if this change is intended. Tried to modify: ", m030b: "Side effects like changing state are not allowed at this point. Are you trying to modify state from, for example, the render function of a React component? Tried to modify: ", m031: "Computed values are not allowed to cause side effects by changing observables that are already being observed. Tried to modify: ", m032: `* This computation is suspended (not in use by any reaction) and won't run automatically. Didn't expect this computation to be suspended at this point? 1. Make sure this computation is used by a reaction (reaction, autorun, observer). 2. Check whether you are using this computation synchronously (in the same stack as they reaction that needs it).`, m033: "`observe` doesn't support the fire immediately property for observable maps.", m034: "`mobx.map` is deprecated, use `new ObservableMap` or `mobx.observable.map` instead", m035: "Cannot make the designated object observable; it is not extensible", m036: "It is not possible to get index atoms from arrays", m037: `Hi there! I'm sorry you have just run into an exception. @@ -68832,7 +68844,7 @@ If that all doesn't help you out, feel free to open an issue https://github.com/ 2. Make sure you didn't dereference values too early. MobX observes props, not primitives. E.g: use 'person.name' instead of 'name' in your computation. ` }; function Gn(r) { - return mae[r]; + return bae[r]; } function T1(r, e) { an(typeof e == "function", Gn("m026")), an(typeof r == "string" && r.length > 0, "actions should have valid names, got: '" + r + "'"); @@ -68871,10 +68883,10 @@ function Ez(r) { function Sz(r) { Er.allowStateChanges = r; } -function uE(r, e, t, n, i) { +function sE(r, e, t, n, i) { function a(o, s, u, l, c) { if (c === void 0 && (c = 0), an(i || g8(arguments), "This function is a decorator, but it wasn't invoked like a decorator"), u) { - cE(o, "__mobxLazyInitializers") || jp(o, "__mobxLazyInitializers", o.__mobxLazyInitializers && o.__mobxLazyInitializers.slice() || []); + lE(o, "__mobxLazyInitializers") || jp(o, "__mobxLazyInitializers", o.__mobxLazyInitializers && o.__mobxLazyInitializers.slice() || []); var f = u.value, d = u.initializer; return o.__mobxLazyInitializers.push(function(p) { r(p, s, d ? d.call(p) : f, l, u); @@ -68900,7 +68912,7 @@ function uE(r, e, t, n, i) { } : a; } function p8(r, e, t, n, i, a) { - cE(r, "__mobxInitializedProps") || jp(r, "__mobxInitializedProps", {}), r.__mobxInitializedProps[e] = !0, n(r, e, t, i, a); + lE(r, "__mobxInitializedProps") || jp(r, "__mobxInitializedProps", {}), r.__mobxInitializedProps[e] = !0, n(r, e, t, i, a); } function C1(r) { r.__mobxDidRunLazyInitializers !== !0 && r.__mobxLazyInitializers && (jp(r, "__mobxDidRunLazyInitializers", !0), r.__mobxDidRunLazyInitializers && r.__mobxLazyInitializers.forEach(function(e) { @@ -68910,14 +68922,14 @@ function C1(r) { function g8(r) { return (r.length === 2 || r.length === 3) && typeof r[1] == "string"; } -var bae = uE(function(r, e, t, n, i) { +var _ae = sE(function(r, e, t, n, i) { var a = n && n.length === 1 ? n[0] : t.name || e || ""; jp(r, e, ta(a, t)); }, function(r) { return this[r]; }, function() { an(!1, Gn("m001")); -}, !1, !0), _ae = uE(function(r, e, t) { +}, !1, !0), wae = sE(function(r, e, t) { Oz(r, e, t); }, function(r) { return this[r]; @@ -68930,7 +68942,7 @@ function y8(r) { return function(e, t, n) { if (n && typeof n.value == "function") return n.value = T1(r, n.value), n.enumerable = !1, n.configurable = !0, n; if (n !== void 0 && n.get !== void 0) throw new Error("[mobx] action is not expected to be used with getters"); - return bae(r).apply(this, arguments); + return _ae(r).apply(this, arguments); }; } function Vx(r) { @@ -68947,13 +68959,13 @@ ta.bound = function(r, e, t) { var n = T1("", r); return n.autoBind = !0, n; } - return _ae.apply(null, arguments); + return wae.apply(null, arguments); }; var m8 = Object.prototype.toString; -function lE(r, e) { - return PM(r, e); +function uE(r, e) { + return RM(r, e); } -function PM(r, e, t, n) { +function RM(r, e, t, n) { if (r === e) return r !== 0 || 1 / r == 1 / e; if (r == null || e == null) return !1; if (r != r) return e != e; @@ -68984,11 +68996,11 @@ function PM(r, e, t, n) { for (var h = (s = s || []).length; h--; ) if (s[h] === a) return u[h] === o; if (s.push(a), u.push(o), c) { if ((h = a.length) !== o.length) return !1; - for (; h--; ) if (!PM(a[h], o[h], s, u)) return !1; + for (; h--; ) if (!RM(a[h], o[h], s, u)) return !1; } else { var p, g = Object.keys(a); if (h = g.length, Object.keys(o).length !== h) return !1; - for (; h--; ) if (!wae(o, p = g[h]) || !PM(a[p], o[p], s, u)) return !1; + for (; h--; ) if (!xae(o, p = g[h]) || !RM(a[p], o[p], s, u)) return !1; } return s.pop(), u.pop(), !0; })(r, e, t, n); @@ -69003,14 +69015,14 @@ function b8(r) { return t; })(r.entries()) : r; } -function wae(r, e) { +function xae(r, e) { return Object.prototype.hasOwnProperty.call(r, e); } function _8(r, e) { return r === e; } var yv = { identity: _8, structural: function(r, e) { - return lE(r, e); + return uE(r, e); }, default: function(r, e) { return (function(t, n) { return typeof t == "number" && typeof n == "number" && isNaN(t) && isNaN(n); @@ -69061,9 +69073,9 @@ var Jg = (function() { } })(this); }, r.prototype.onBecomeUnobserved = function() { - NM(this), this.value = void 0; + IM(this), this.value = void 0; }, r.prototype.get = function() { - an(!this.isComputing, "Cycle detected in computation " + this.name, this.derivation), Er.inBatch === 0 ? (Tp(), IM(this) && (this.isTracing !== Od.NONE && console.log("[mobx.trace] '" + this.name + "' is being read outside a reactive context and doing a full recompute"), this.value = this.computeValue(!1)), Cp()) : (Kz(this), IM(this) && this.trackAndCompute() && (function(t) { + an(!this.isComputing, "Cycle detected in computation " + this.name, this.derivation), Er.inBatch === 0 ? (Tp(), kM(this) && (this.isTracing !== Od.NONE && console.log("[mobx.trace] '" + this.name + "' is being read outside a reactive context and doing a full recompute"), this.value = this.computeValue(!1)), Cp()) : (Kz(this), kM(this) && this.trackAndCompute() && (function(t) { if (t.lowestObserverState !== ii.STALE) { t.lowestObserverState = ii.STALE; for (var n = t.observers, i = n.length; i--; ) { @@ -69127,12 +69139,12 @@ var Jg = (function() { WhyRun? computation '` + this.name + `': * Running because: ` + (e ? "[active] the value of this computation is needed by a reaction" : this.isComputing ? "[get] The value of this computed was requested outside a reaction" : "[idle] not running at the moment") + ` ` + (this.dependenciesState === ii.NOT_TRACKING ? Gn("m032") : ` * This computation will re-run if any of the following observables changes: - ` + DM(t) + ` + ` + MM(t) + ` ` + (this.isComputing && e ? " (... or any observable accessed during the remainder of the current run)" : "") + ` ` + Gn("m038") + ` * If the outcome of this computation changes, the following observers will be re-run: - ` + DM(n) + ` + ` + MM(n) + ` `); }, r; })(); @@ -69142,9 +69154,9 @@ var fv = ly("ComputedValue", Jg), Cz = (function() { this.target = e, this.name = t, this.values = {}, this.changeListeners = null, this.interceptors = null; } return r.prototype.observe = function(e, t) { - return an(t !== !0, "`observe` doesn't support the fire immediately property for observable objects."), sE(this, e); + return an(t !== !0, "`observe` doesn't support the fire immediately property for observable objects."), oE(this, e); }, r.prototype.intercept = function(e) { - return oE(this, e); + return aE(this, e); }, r; })(); function Um(r, e) { @@ -69153,18 +69165,18 @@ function Um(r, e) { var t = new Cz(r, e); return R1(r, "$mobx", t), t; } -function xae(r, e, t, n) { +function Eae(r, e, t, n) { if (r.values[e] && !fv(r.values[e])) return an("value" in t, "The property " + e + " in " + r.name + " is already observable, cannot redefine it as computed property"), void (r.target[e] = t.value); if ("value" in t) if (uy(t.value)) { var i = t.value; - MM(r, e, i.initialValue, i.enhancer); + PM(r, e, i.initialValue, i.enhancer); } else Vx(t.value) && t.value.autoBind === !0 ? Oz(r.target, e, t.value.originalFn) : fv(t.value) ? (function(a, o, s) { var u = a.name + "." + o; s.name = u, s.scope || (s.scope = a.target), a.values[o] = s, Object.defineProperty(a.target, o, Rz(o)); - })(r, e, t.value) : MM(r, e, t.value, n); + })(r, e, t.value) : PM(r, e, t.value, n); else Az(r, e, t.get, t.set, yv.default, !0); } -function MM(r, e, t, n) { +function PM(r, e, t, n) { if (BD(r.target, e), Kg(r)) { var i = Zg(r, { object: r.target, name: e, type: "add", newValue: t }); if (!i) return; @@ -69203,9 +69215,9 @@ function Pz(r, e, t) { o && Ad(s), i.setNewValue(t), a && Op(n, s), o && Rd(); } } -var Eae = ly("ObservableObjectAdministration", Cz); +var Sae = ly("ObservableObjectAdministration", Cz); function xh(r) { - return !!jD(r) && (C1(r), Eae(r.$mobx)); + return !!jD(r) && (C1(r), Sae(r.$mobx)); } function i0(r, e) { if (r == null) return !1; @@ -69220,8 +69232,8 @@ function i0(r, e) { return xh(r) || !!r.$mobx || MD(r) || Vm(r) || fv(r); } function i_(r) { - return an(!!r, ":("), uE(function(e, t, n, i, a) { - BD(e, t), an(!a || !a.get, Gn("m022")), MM(Um(e, void 0), t, n, r); + return an(!!r, ":("), sE(function(e, t, n, i, a) { + BD(e, t), an(!a || !a.get, Gn("m022")), PM(Um(e, void 0), t, n, r); }, function(e) { var t = this.$mobx.values[e]; if (t !== void 0) return t.get(); @@ -69243,14 +69255,14 @@ function ND(r, e, t) { }); for (var n = Um(r), i = {}, a = t.length - 1; a >= 0; a--) { var o = t[a]; - for (var s in o) if (i[s] !== !0 && cE(o, s)) { + for (var s in o) if (i[s] !== !0 && lE(o, s)) { if (i[s] = !0, r === o && !Bz(r, s)) continue; - xae(n, s, Object.getOwnPropertyDescriptor(o, s), e); + Eae(n, s, Object.getOwnPropertyDescriptor(o, s), e); } } return r; } -var kz = i_(yp), Sae = i_(Iz), Oae = i_(mp), Tae = i_(Nb), Cae = i_(Nz), E8 = { box: function(r, e) { +var kz = i_(yp), Oae = i_(Iz), Tae = i_(mp), Cae = i_(Nb), Aae = i_(Nz), E8 = { box: function(r, e) { return arguments.length > 2 && rp("box"), new Lp(r, yp, e); }, shallowBox: function(r, e) { return arguments.length > 2 && rp("shallowBox"), new Lp(r, mp, e); @@ -69271,13 +69283,13 @@ var kz = i_(yp), Sae = i_(Iz), Oae = i_(mp), Tae = i_(Nb), Cae = i_(Nz), E8 = { var t = {}; return Um(t, e), Dz(t, r), t; }, ref: function() { - return arguments.length < 2 ? bb(mp, arguments[0]) : Oae.apply(null, arguments); + return arguments.length < 2 ? bb(mp, arguments[0]) : Tae.apply(null, arguments); }, shallow: function() { - return arguments.length < 2 ? bb(Iz, arguments[0]) : Sae.apply(null, arguments); + return arguments.length < 2 ? bb(Iz, arguments[0]) : Oae.apply(null, arguments); }, deep: function() { return arguments.length < 2 ? bb(yp, arguments[0]) : kz.apply(null, arguments); }, struct: function() { - return arguments.length < 2 ? bb(Nb, arguments[0]) : Tae.apply(null, arguments); + return arguments.length < 2 ? bb(Nb, arguments[0]) : Cae.apply(null, arguments); } }, ka = function(r) { if (r === void 0 && (r = void 0), typeof arguments[1] == "string") return kz.apply(null, arguments); if (an(arguments.length <= 1, Gn("m021")), an(!uy(r), Gn("m020")), i0(r)) return r; @@ -69303,7 +69315,7 @@ function mp(r) { return r; } function Nb(r, e, t) { - if (lE(r, e)) return e; + if (uE(r, e)) return e; if (i0(r)) return r; if (Array.isArray(r)) return new uv(r, Nb, t); if (Gm(r)) return new zm(r, Nb, t); @@ -69314,7 +69326,7 @@ function Nb(r, e, t) { return r; } function Nz(r, e, t) { - return lE(r, e) ? e : r; + return uE(r, e) ? e : r; } function cm(r, e) { e === void 0 && (e = void 0), Tp(); @@ -69327,11 +69339,11 @@ function cm(r, e) { Object.keys(E8).forEach(function(r) { return ka[r] = E8[r]; }), ka.deep.struct = ka.struct, ka.ref.struct = function() { - return arguments.length < 2 ? bb(Nz, arguments[0]) : Cae.apply(null, arguments); + return arguments.length < 2 ? bb(Nz, arguments[0]) : Aae.apply(null, arguments); }; -var Aae = {}, zm = (function() { +var Rae = {}, zm = (function() { function r(e, t, n) { - t === void 0 && (t = yp), n === void 0 && (n = "ObservableMap@" + lu()), this.enhancer = t, this.name = n, this.$mobx = Aae, this._data = /* @__PURE__ */ Object.create(null), this._hasMap = /* @__PURE__ */ Object.create(null), this._keys = new uv(void 0, mp, this.name + ".keys()", !0), this.interceptors = null, this.changeListeners = null, this.dehancer = void 0, this.merge(e); + t === void 0 && (t = yp), n === void 0 && (n = "ObservableMap@" + lu()), this.enhancer = t, this.name = n, this.$mobx = Rae, this._data = /* @__PURE__ */ Object.create(null), this._hasMap = /* @__PURE__ */ Object.create(null), this._keys = new uv(void 0, mp, this.name + ".keys()", !0), this.interceptors = null, this.changeListeners = null, this.dehancer = void 0, this.merge(e); } return r.prototype._has = function(e) { return this._data[e] !== void 0; @@ -69441,9 +69453,9 @@ var Aae = {}, zm = (function() { return t + ": " + e.get(t); }).join(", ") + " }]"; }, r.prototype.observe = function(e, t) { - return an(t !== !0, Gn("m033")), sE(this, e); + return an(t !== !0, Gn("m033")), oE(this, e); }, r.prototype.intercept = function(e) { - return oE(this, e); + return aE(this, e); }, r; })(); bz(zm.prototype, function() { @@ -69481,7 +69493,7 @@ function Wx(r) { e.indexOf(t) === -1 && e.push(t); }), e; } -function DM(r, e, t) { +function MM(r, e, t) { return e === void 0 && (e = 100), t === void 0 && (t = " - "), r ? r.slice(0, e).join(t) + (r.length > e ? " (... and " + (r.length - e) + "more)" : "") : ""; } function jD(r) { @@ -69495,13 +69507,13 @@ function qm(r) { function jz() { for (var r = arguments[0], e = 1, t = arguments.length; e < t; e++) { var n = arguments[e]; - for (var i in n) cE(n, i) && (r[i] = n[i]); + for (var i in n) lE(n, i) && (r[i] = n[i]); } return r; } -var Rae = Object.prototype.hasOwnProperty; -function cE(r, e) { - return Rae.call(r, e); +var Pae = Object.prototype.hasOwnProperty; +function lE(r, e) { + return Pae.call(r, e); } function jp(r, e, t) { Object.defineProperty(r, e, { enumerable: !1, writable: !0, configurable: !0, value: t }); @@ -69531,18 +69543,18 @@ function Fz() { function Uz(r) { return r === null ? null : typeof r == "object" ? "" + r : r; } -var ii, Od, Pae = ["mobxGuid", "resetId", "spyListeners", "strictMode", "runId"], zz = function() { +var ii, Od, Mae = ["mobxGuid", "resetId", "spyListeners", "strictMode", "runId"], zz = function() { this.version = 5, this.trackingDerivation = null, this.computationDepth = 0, this.runId = 0, this.mobxGuid = 0, this.inBatch = 0, this.pendingUnobservations = [], this.pendingReactions = [], this.isRunningReactions = !1, this.allowStateChanges = !0, this.strictMode = !1, this.resetId = 0, this.spyListeners = [], this.globalReactionErrorHandlers = []; -}, Er = new zz(), qz = !1, Gz = !1, T8 = !1, yP = A1(); +}, Er = new zz(), qz = !1, Gz = !1, T8 = !1, gP = A1(); function Eh(r, e) { if (typeof r == "object" && r !== null) { if (gv(r)) return an(e === void 0, Gn("m036")), r.$mobx.atom; if (zf(r)) { var t = r; - return e === void 0 ? Eh(t._keys) : (an(!!(n = t._data[e] || t._hasMap[e]), "the entry '" + e + "' does not exist in the observable map '" + kM(r) + "'"), n); + return e === void 0 ? Eh(t._keys) : (an(!!(n = t._data[e] || t._hasMap[e]), "the entry '" + e + "' does not exist in the observable map '" + DM(r) + "'"), n); } var n; - if (C1(r), e && !r.$mobx && r[e], xh(r)) return e ? (an(!!(n = r.$mobx.values[e]), "no observable property '" + e + "' found on the observable object '" + kM(r) + "'"), n) : cu("please specify a property"); + if (C1(r), e && !r.$mobx && r[e], xh(r)) return e ? (an(!!(n = r.$mobx.values[e]), "no observable property '" + e + "' found on the observable object '" + DM(r) + "'"), n) : cu("please specify a property"); if (MD(r) || fv(r) || Vm(r)) return r; } else if (typeof r == "function" && Vm(r.$mobx)) return r.$mobx; return cu("Cannot obtain atom from " + r); @@ -69550,7 +69562,7 @@ function Eh(r, e) { function lv(r, e) { return an(r, "Expecting some object"), e !== void 0 ? lv(Eh(r, e)) : MD(r) || fv(r) || Vm(r) || zf(r) ? r : (C1(r), r.$mobx ? r.$mobx : void an(!1, "Cannot obtain administration from " + r)); } -function kM(r, e) { +function DM(r, e) { return (e !== void 0 ? Eh(r, e) : xh(r) || zf(r) ? lv(r) : Eh(r)).name; } function Vz(r, e) { @@ -69569,7 +69581,7 @@ function Wz(r) { function Yz(r) { return r.observers; } -function Mae(r, e) { +function Dae(r, e) { var t = r.observers.length; t && (r.observersIndexes[e.__mapid] = t), r.observers[t] = e, r.lowestObserverState > e.dependenciesState && (r.lowestObserverState = e.dependenciesState); } @@ -69630,9 +69642,9 @@ function Qz(r, e, t) { return Qz(n, e, t + 1); })); } -yP.__mobxInstanceCount ? (yP.__mobxInstanceCount++, setTimeout(function() { +gP.__mobxInstanceCount ? (gP.__mobxInstanceCount++, setTimeout(function() { qz || Gz || T8 || (T8 = !0, console.warn("[mobx] Warning: there are multiple mobx instances active. This might lead to unexpected results. See https://github.com/mobxjs/mobx/issues/1082 for details.")); -}, 1)) : yP.__mobxInstanceCount = 1, (function(r) { +}, 1)) : gP.__mobxInstanceCount = 1, (function(r) { r[r.NOT_TRACKING = -1] = "NOT_TRACKING", r[r.UP_TO_DATE = 0] = "UP_TO_DATE", r[r.POSSIBLY_STALE = 1] = "POSSIBLY_STALE", r[r.STALE = 2] = "STALE"; })(ii || (ii = {})), (function(r) { r[r.NONE = 0] = "NONE", r[r.LOG = 1] = "LOG", r[r.BREAK = 2] = "BREAK"; @@ -69643,7 +69655,7 @@ var Yx = function(r) { function _b(r) { return r instanceof Yx; } -function IM(r) { +function kM(r) { switch (r.dependenciesState) { case ii.UP_TO_DATE: return !1; @@ -69686,12 +69698,12 @@ function eq(r, e, t) { for (s.length = l, a.newObserving = null, c = o.length; c--; ) (d = o[c]).diffValue === 0 && Xz(d, a), d.diffValue = 0; for (; l--; ) { var d; - (d = s[l]).diffValue === 1 && (d.diffValue = 0, Mae(d, a)); + (d = s[l]).diffValue === 1 && (d.diffValue = 0, Dae(d, a)); } u !== ii.UP_TO_DATE && (a.dependenciesState = u, a.onBecomeStale()); })(r), n; } -function NM(r) { +function IM(r) { var e = r.observing; r.observing = []; for (var t = e.length; t--; ) Xz(e[t], r); @@ -69738,13 +69750,13 @@ var P1 = (function() { }, r.prototype.isScheduled = function() { return this._isScheduled; }, r.prototype.runReaction = function() { - this.isDisposed || (Tp(), this._isScheduled = !1, IM(this) && (this._isTrackPending = !0, this.onInvalidate(), this._isTrackPending && Ul() && Qg({ object: this, type: "scheduled-reaction" })), Cp()); + this.isDisposed || (Tp(), this._isScheduled = !1, kM(this) && (this._isTrackPending = !0, this.onInvalidate(), this._isTrackPending && Ul() && Qg({ object: this, type: "scheduled-reaction" })), Cp()); }, r.prototype.track = function(e) { Tp(); var t, n = Ul(); n && (t = Date.now(), Ad({ object: this, type: "reaction", fn: e })), this._isRunning = !0; var i = eq(this, e, void 0); - this._isRunning = !1, this._isTrackPending = !1, this.isDisposed && NM(this), _b(i) && this.reportExceptionInDerivation(i.cause), n && Rd({ time: Date.now() - t }), Cp(); + this._isRunning = !1, this._isTrackPending = !1, this.isDisposed && IM(this), _b(i) && this.reportExceptionInDerivation(i.cause), n && Rd({ time: Date.now() - t }), Cp(); }, r.prototype.reportExceptionInDerivation = function(e) { var t = this; if (this.errorHandler) this.errorHandler(e, this); @@ -69755,10 +69767,10 @@ var P1 = (function() { }); } }, r.prototype.dispose = function() { - this.isDisposed || (this.isDisposed = !0, this._isRunning || (Tp(), NM(this), Cp())); + this.isDisposed || (this.isDisposed = !0, this._isRunning || (Tp(), IM(this), Cp())); }, r.prototype.getDisposer = function() { var e = this.dispose.bind(this); - return e.$mobx = this, e.onError = Dae, e; + return e.$mobx = this, e.onError = kae, e; }, r.prototype.toString = function() { return "Reaction[" + this.name + "]"; }, r.prototype.whyRun = function() { @@ -69769,7 +69781,7 @@ var P1 = (function() { WhyRun? reaction '` + this.name + `': * Status: [` + (this.isDisposed ? "stopped" : this._isRunning ? "running" : this.isScheduled() ? "scheduled" : "idle") + `] * This reaction will re-run if any of the following observables changes: - ` + DM(e) + ` + ` + MM(e) + ` ` + (this._isRunning ? " (... or any observable accessed during the remainder of the current run)" : "") + ` ` + Gn("m038") + ` `; @@ -69784,16 +69796,16 @@ WhyRun? reaction '` + this.name + `': })(this, e); }, r; })(); -function Dae(r) { +function kae(r) { an(this && this.$mobx && Vm(this.$mobx), "Invalid `this`"), an(!this.$mobx.errorHandler, "Only one onErrorHandler can be registered"), this.$mobx.errorHandler = r; } -var A8 = 100, LM = function(r) { +var A8 = 100, NM = function(r) { return r(); }; function iq() { - Er.inBatch > 0 || Er.isRunningReactions || LM(kae); + Er.inBatch > 0 || Er.isRunningReactions || NM(Iae); } -function kae() { +function Iae() { Er.isRunningReactions = !0; for (var r = Er.pendingReactions, e = 0; r.length > 0; ) { ++e === A8 && (console.error("Reaction doesn't converge to a stable state after " + A8 + " iterations. Probably there is a cycle in the reactive function: " + r[0]), r.splice(0)); @@ -69803,7 +69815,7 @@ function kae() { } var Vm = ly("Reaction", P1); function UD(r) { - return uE(function(e, t, n, i, a) { + return sE(function(e, t, n, i, a) { an(a !== void 0, Gn("m009")), an(typeof a.get == "function", Gn("m010")), Az(Um(e, ""), t, a.get, a.set, r, !1); }, function(e) { var t = this.$mobx.values[e]; @@ -69812,8 +69824,8 @@ function UD(r) { this.$mobx.values[e].set(t); }, !1, !1); } -var Iae = UD(yv.default), Nae = UD(yv.structural), Xx = function(r, e, t) { - if (typeof e == "string") return Iae.apply(null, arguments); +var Nae = UD(yv.default), Lae = UD(yv.structural), Xx = function(r, e, t) { + if (typeof e == "string") return Nae.apply(null, arguments); an(typeof r == "function", Gn("m011")), an(arguments.length < 3, Gn("m012")); var n = typeof e == "object" ? e : {}; n.setter = typeof e == "function" ? e : n.setter; @@ -69849,7 +69861,7 @@ function Xu(r, e, t) { } return r; } -Xx.struct = Nae, Xx.equals = UD; +Xx.struct = Lae, Xx.equals = UD; var zD = { allowStateChanges: function(r, e) { var t, n = Ez(r); try { @@ -69858,7 +69870,7 @@ var zD = { allowStateChanges: function(r, e) { Sz(n); } return t; -}, deepEqual: lE, getAtom: Eh, getDebugName: kM, getDependencyTree: Vz, getAdministration: lv, getGlobalState: function() { +}, deepEqual: uE, getAtom: Eh, getDebugName: DM, getDependencyTree: Vz, getAdministration: lv, getGlobalState: function() { return Er; }, getObserverTree: function(r, e) { return Wz(Eh(r, e)); @@ -69881,7 +69893,7 @@ var zD = { allowStateChanges: function(r, e) { }, reserveArrayBuffer: DD, resetGlobalState: function() { Er.resetId++; var r = new zz(); - for (var e in r) Pae.indexOf(e) === -1 && (Er[e] = r[e]); + for (var e in r) Mae.indexOf(e) === -1 && (Er[e] = r[e]); Er.allowStateChanges = !Er.strictMode; }, isolateGlobalState: function() { Gz = !0, A1().__mobxInstanceCount--; @@ -69892,13 +69904,13 @@ var zD = { allowStateChanges: function(r, e) { if (r.__mobxGlobal && r.__mobxGlobal.version !== e.version) throw new Error("[mobx] An incompatible version of mobx is already loaded."); r.__mobxGlobal ? Er = r.__mobxGlobal : r.__mobxGlobal = e; }, spyReport: Qg, spyReportEnd: Rd, spyReportStart: Ad, setReactionScheduler: function(r) { - var e = LM; - LM = function(t) { + var e = NM; + NM = function(t) { return r(function() { return e(t); }); }; -} }, jM = { Reaction: P1, untracked: tq, Atom: hae, BaseAtom: n_, useStrict: xz, isStrictModeEnabled: function() { +} }, LM = { Reaction: P1, untracked: tq, Atom: vae, BaseAtom: n_, useStrict: xz, isStrictModeEnabled: function() { return Er.strictMode; }, spy: mz, comparer: yv, asReference: function(r) { return Rg("asReference is deprecated, use observable.ref instead"), ka.ref(r); @@ -69965,7 +69977,7 @@ var zD = { allowStateChanges: function(r, e) { }, void 0, yv.default, "Transformer-" + r.name + "-" + s, void 0) || this; return l.sourceIdentifier = s, l.sourceObject = u, l; } - return aE(o, a), o.prototype.onBecomeUnobserved = function() { + return iE(o, a), o.prototype.onBecomeUnobserved = function() { var s = this.value; a.prototype.onBecomeUnobserved.call(this), delete t[this.sourceIdentifier], e && e(s, this.sourceObject); }, o; @@ -69984,13 +69996,13 @@ var zD = { allowStateChanges: function(r, e) { return Rg("`whyRun` is deprecated in favor of `trace`"), (r = nq(arguments)) ? fv(r) || Vm(r) ? C8(r.whyRun()) : cu(Gn("m025")) : C8(Gn("m024")); }, isArrayLike: function(r) { return Array.isArray(r) || gv(r); -}, extras: zD }, R8 = !1, Lae = function(r) { - var e = jM[r]; - Object.defineProperty(jM, r, { get: function() { +}, extras: zD }, R8 = !1, jae = function(r) { + var e = LM[r]; + Object.defineProperty(LM, r, { get: function() { return R8 || (R8 = !0, console.warn("Using default export (`import mobx from 'mobx'`) is deprecated and won’t work in mobx@4.0.0\nUse `import * as mobx from 'mobx'` instead")), e; } }); }; -for (var jae in jM) Lae(jae); +for (var Bae in LM) jae(Bae); function Lb(r) { return Lb = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) { return typeof e; @@ -69998,7 +70010,7 @@ function Lb(r) { return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e; }, Lb(r); } -function Bae(r, e) { +function Fae(r, e) { for (var t = 0; t < e.length; t++) { var n = e[t]; n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(r, aq(n.key), n); @@ -70018,7 +70030,7 @@ function aq(r) { return Lb(e) == "symbol" ? e : e + ""; } typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__ == "object" && __MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({ spy: mz, extras: zD }); -var Fae = ["onLayoutDone", "onLayoutStep", "onError", "onInitialization", "onLayoutComputing", "onWebGLContextLost", "onZoomTransitionDone", "restart"], Uae = (function() { +var Uae = ["onLayoutDone", "onLayoutStep", "onError", "onInitialization", "onLayoutComputing", "onWebGLContextLost", "onZoomTransitionDone", "restart"], zae = (function() { return r = function t() { var n, i, a, o = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}; (function(s, u) { @@ -70040,12 +70052,12 @@ var Fae = ["onLayoutDone", "onLayoutStep", "onError", "onInitialization", "onLay this.isValidFunction(this.callbacks.onWebGLContextLost) && this.callbacks.onWebGLContextLost(t); } }, { key: "isValidFunction", value: function(t) { return t !== void 0 && typeof t == "function"; - } }], e && Bae(r.prototype, e), Object.defineProperty(r, "prototype", { writable: !1 }), r; + } }], e && Fae(r.prototype, e), Object.defineProperty(r, "prototype", { writable: !1 }), r; var r, e; -})(), zae = io(1803), P8 = io.n(zae), Cr = 256, K0 = 4096, ha = 25, oq = "#818790", sq = "#EDEDED", uq = "#CFD1D4", lq = "#F5F6F6", cq = "#8FE3E8", qD = "#1A1B1D", wb = '"Open Sans", sans-serif', BM = { position: "absolute", top: 0, bottom: 0, left: 0, right: 0 }, qae = 1 / 0.38, $n = function() { +})(), qae = io(1803), P8 = io.n(qae), Cr = 256, K0 = 4096, ha = 25, oq = "#818790", sq = "#EDEDED", uq = "#CFD1D4", lq = "#F5F6F6", cq = "#8FE3E8", qD = "#1A1B1D", wb = '"Open Sans", sans-serif', jM = { position: "absolute", top: 0, bottom: 0, left: 0, right: 0 }, Gae = 1 / 0.38, $n = function() { return window.devicePixelRatio || 1; }; -function Gae(r, e) { +function Vae(r, e) { return (function(t) { if (Array.isArray(t)) return t; })(r) || (function(t, n) { @@ -70114,7 +70126,7 @@ function D8(r, e) { for (var t = 0, n = Array(e); t < e; t++) n[t] = r[t]; return n; } -var Vae = -Math.PI / 2; +var Hae = -Math.PI / 2; function Z0(r, e) { var t = typeof Symbol < "u" && r[Symbol.iterator] || r["@@iterator"]; if (!t) { @@ -70167,7 +70179,7 @@ var dq = function(r, e) { var n = t.from, i = t.to, a = dq(n, i); e.has(a) || e.add(a); }), e; -}, FM = function(r) { +}, BM = function(r) { var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : sq, t = /* @__PURE__ */ new Map(); return r.forEach(function(n) { var i = n.id, a = n.from, o = n.to, s = n.color, u = n.width, l = n.disabled, c = dq(a, o), f = t.get(c); @@ -70209,7 +70221,7 @@ function I8(r, e) { } return t; } -function Hae(r) { +function Wae(r) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e] != null ? arguments[e] : {}; e % 2 ? I8(Object(t), !0).forEach(function(n) { @@ -70220,7 +70232,7 @@ function Hae(r) { } return r; } -function mP(r, e) { +function yP(r, e) { var t = typeof Symbol < "u" && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = (function(u, l) { @@ -70263,7 +70275,7 @@ function N8(r, e) { for (var t = 0, n = Array(e); t < e; t++) n[t] = r[t]; return n; } -function Wae(r, e) { +function Yae(r, e) { for (var t = 0; t < e.length; t++) { var n = e[t]; n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(r, hq(n.key), n); @@ -70297,7 +70309,7 @@ var L8 = function(r, e, t) { var i = n.state; this.positions = {}, this.oldPositions = {}, this.startTime = 0, this.t = 1, this.currentT = 1, this.state = i, this.shouldUpdateAnimator = !1, this.parents = {}, this.animationCompleteCallback = n.animationCompleteCallback; }, e = [{ key: "getPositionMapFromState", value: function() { - var t, n = this.state.nodes, i = n.idToPosition, a = {}, o = mP(n.items); + var t, n = this.state.nodes, i = n.idToPosition, a = {}, o = yP(n.items); try { for (o.s(); !(t = o.n()).done; ) { var s = t.value, u = i[s.id]; @@ -70319,7 +70331,7 @@ var L8 = function(r, e, t) { var t = this.shouldUpdateAnimator, n = (Date.now() - this.startTime) / 400; this.t = Math.min(n, 1), this.currentT < 1 ? this.shouldUpdateAnimator = !0 : (this.shouldUpdateAnimator = !1, t && !this.shouldUpdateAnimator && this.animationCompleteCallback !== void 0 && this.animationCompleteCallback(), this.shouldUpdateAnimator || this.updatePositionsFromState()); } }, { key: "updateNodes", value: function(t) { - var n, i = mP(t); + var n, i = yP(t); try { for (i.s(); !(n = i.n()).done; ) { var a = n.value; @@ -70337,12 +70349,12 @@ var L8 = function(r, e, t) { P === void 0 || isNaN(P.x) || isNaN(P.y) || P.x === 0 || P.y === 0 || (S.x += P.x, S.y += P.y, E += 1); } return E > 0 ? [S.x / E, S.y / E] : [0, 0]; - })(t, a), s = { x: o[0], y: o[1] }, u = [], l = mP(t); + })(t, a), s = { x: o[0], y: o[1] }, u = [], l = yP(t); try { for (l.s(); !(n = l.n()).done; ) { var c = n.value, f = this.positions[c.id], d = a[c.id], h = { id: c.id }; if (f !== void 0) { - for (var p, g, y, b = c.id, _ = (p = this.oldPositions[c.id]) !== null && p !== void 0 ? p : Hae({}, s); _ === void 0 && i[b] !== void 0; ) b = i[b], _ = this.oldPositions[b]; + for (var p, g, y, b = c.id, _ = (p = this.oldPositions[c.id]) !== null && p !== void 0 ? p : Wae({}, s); _ === void 0 && i[b] !== void 0; ) b = i[b], _ = this.oldPositions[b]; _.x = (g = _.x) !== null && g !== void 0 ? g : s.x, _.y = (y = _.y) !== null && y !== void 0 ? y : s.y, h.x = L8(_.x, f.x, this.t), h.y = L8(_.y, f.y, this.t); } else d !== void 0 && (h.x = d.x || s.x, h.y = d.y || s.y); u.push(h); @@ -70353,7 +70365,7 @@ var L8 = function(r, e, t) { l.f(); } return this.currentT = this.t, u; - } }], e && Wae(r.prototype, e), Object.defineProperty(r, "prototype", { writable: !1 }), r; + } }], e && Yae(r.prototype, e), Object.defineProperty(r, "prototype", { writable: !1 }), r; var r, e; })(); function Om(r) { @@ -70363,7 +70375,7 @@ function Om(r) { return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e; }, Om(r); } -function Yae(r, e) { +function Xae(r, e) { for (var t = 0; t < e.length; t++) { var n = e[t]; n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(r, pq(n.key), n); @@ -70379,8 +70391,8 @@ function vq() { return !!r; })(); } -function UM() { - return UM = typeof Reflect < "u" && Reflect.get ? Reflect.get.bind() : function(r, e, t) { +function FM() { + return FM = typeof Reflect < "u" && Reflect.get ? Reflect.get.bind() : function(r, e, t) { var n = (function(a, o) { for (; !{}.hasOwnProperty.call(a, o) && (a = Tm(a)) !== null; ) ; return a; @@ -70389,17 +70401,17 @@ function UM() { var i = Object.getOwnPropertyDescriptor(n, e); return i.get ? i.get.call(arguments.length < 3 ? r : t) : i.value; } - }, UM.apply(null, arguments); + }, FM.apply(null, arguments); } function Tm(r) { return Tm = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(e) { return e.__proto__ || Object.getPrototypeOf(e); }, Tm(r); } -function zM(r, e) { - return zM = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, n) { +function UM(r, e) { + return UM = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, n) { return t.__proto__ = n, t; - }, zM(r, e); + }, UM(r, e); } function j8(r, e, t) { return (e = pq(e)) in r ? Object.defineProperty(r, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : r[e] = t, r; @@ -70417,7 +70429,7 @@ function pq(r) { })(r); return Om(e) == "symbol" ? e : e + ""; } -var Dl = "CircularLayout", Xae = (function() { +var Dl = "CircularLayout", $ae = (function() { function r(n) { var i; (function(u, l) { @@ -70448,7 +70460,7 @@ var Dl = "CircularLayout", Xae = (function() { } return (function(n, i) { if (typeof i != "function" && i !== null) throw new TypeError("Super expression must either be null or a function"); - n.prototype = Object.create(i && i.prototype, { constructor: { value: n, writable: !0, configurable: !0 } }), Object.defineProperty(n, "prototype", { writable: !1 }), i && zM(n, i); + n.prototype = Object.create(i && i.prototype, { constructor: { value: n, writable: !0, configurable: !0 } }), Object.defineProperty(n, "prototype", { writable: !1 }), i && UM(n, i); })(r, GD), e = r, t = [{ key: "setOptions", value: function(n) { n && "sortFunction" in n && (this.sortFunction = n.sortFunction); } }, { key: "update", value: function() { @@ -70458,7 +70470,7 @@ var Dl = "CircularLayout", Xae = (function() { (n || s || u || l || c || d) && this.layout(a.items), a.clearChannel(Dl), o.clearChannel(Dl); } (function(h, p, g) { - var y = UM(Tm(h.prototype), "update", g); + var y = FM(Tm(h.prototype), "update", g); return typeof y == "function" ? function(b) { return y.apply(g, b); } : y; @@ -70488,10 +70500,10 @@ var Dl = "CircularLayout", Xae = (function() { return d[z] = j * _; }), b = 250; } - var m, x = Vae, S = {}, O = M8(l.entries()); + var m, x = Hae, S = {}, O = M8(l.entries()); try { for (O.s(); !(m = O.n()).done; ) { - var E = Gae(m.value, 2), T = E[0], P = E[1], I = d[T] / b, k = x + I / 2; + var E = Vae(m.value, 2), T = E[0], P = E[1], I = d[T] / b, k = x + I / 2; x = k + I / 2; var L = Math.cos(k) * b, B = Math.sin(k) * b; S[P.id] = { id: P.id, x: L, y: B }; @@ -70510,9 +70522,9 @@ var Dl = "CircularLayout", Xae = (function() { this.stateDisposers.forEach(function(n) { n(); }), this.state.nodes.removeChannel(Dl), this.state.rels.removeChannel(Dl); - } }], t && Yae(e.prototype, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; + } }], t && Xae(e.prototype, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; var e, t; -})(), $ae = { value: () => { +})(), Kae = { value: () => { } }; function gq() { for (var r, e = 0, t = arguments.length, n = {}; e < t; ++e) { @@ -70524,12 +70536,12 @@ function gq() { function lx(r) { this._ = r; } -function Kae(r, e) { +function Zae(r, e) { for (var t, n = 0, i = r.length; n < i; ++n) if ((t = r[n]).name === e) return t.value; } function B8(r, e, t) { for (var n = 0, i = r.length; n < i; ++n) if (r[n].name === e) { - r[n] = $ae, r = r.slice(0, n).concat(r.slice(n + 1)); + r[n] = Kae, r = r.slice(0, n).concat(r.slice(n + 1)); break; } return t != null && r.push({ name: e, value: t }), r; @@ -70546,7 +70558,7 @@ lx.prototype = gq.prototype = { constructor: lx, on: function(r, e) { else if (e == null) for (t in i) i[t] = B8(i[t], r.name, null); return this; } - for (; ++o < s; ) if ((t = (r = a[o]).type) && (t = Kae(i[t], r.name))) return t; + for (; ++o < s; ) if ((t = (r = a[o]).type) && (t = Zae(i[t], r.name))) return t; }, copy: function() { var r = {}, e = this._; for (var t in e) r[t] = e[t].slice(); @@ -70559,25 +70571,25 @@ lx.prototype = gq.prototype = { constructor: lx, on: function(r, e) { if (!this._.hasOwnProperty(r)) throw new Error("unknown type: " + r); for (var n = this._[r], i = 0, a = n.length; i < a; ++i) n[i].value.apply(e, t); } }; -const Zae = gq; -var cx, xb, ym = 0, Eb = 0, Q0 = 0, $x = 0, Ug = 0, fE = 0, M1 = typeof performance == "object" && performance.now ? performance : Date, yq = typeof window == "object" && window.requestAnimationFrame ? window.requestAnimationFrame.bind(window) : function(r) { +const Qae = gq; +var cx, xb, ym = 0, Eb = 0, Q0 = 0, $x = 0, Ug = 0, cE = 0, M1 = typeof performance == "object" && performance.now ? performance : Date, yq = typeof window == "object" && window.requestAnimationFrame ? window.requestAnimationFrame.bind(window) : function(r) { setTimeout(r, 17); }; function mq() { - return Ug || (yq(Qae), Ug = M1.now() + fE); + return Ug || (yq(Jae), Ug = M1.now() + cE); } -function Qae() { +function Jae() { Ug = 0; } -function qM() { +function zM() { this._call = this._time = this._next = null; } function bq(r, e, t) { - var n = new qM(); + var n = new zM(); return n.restart(r, e, t), n; } function F8() { - Ug = ($x = M1.now()) + fE, ym = Eb = 0; + Ug = ($x = M1.now()) + cE, ym = Eb = 0; try { (function() { mq(), ++ym; @@ -70587,31 +70599,31 @@ function F8() { } finally { ym = 0, (function() { for (var r, e, t = cx, n = 1 / 0; t; ) t._call ? (n > t._time && (n = t._time), r = t, t = t._next) : (e = t._next, t._next = null, t = r ? r._next = e : cx = e); - xb = r, GM(n); + xb = r, qM(n); })(), Ug = 0; } } -function Jae() { +function eoe() { var r = M1.now(), e = r - $x; - e > 1e3 && (fE -= e, $x = r); + e > 1e3 && (cE -= e, $x = r); } -function GM(r) { - ym || (Eb && (Eb = clearTimeout(Eb)), r - Ug > 24 ? (r < 1 / 0 && (Eb = setTimeout(F8, r - M1.now() - fE)), Q0 && (Q0 = clearInterval(Q0))) : (Q0 || ($x = M1.now(), Q0 = setInterval(Jae, 1e3)), ym = 1, yq(F8))); +function qM(r) { + ym || (Eb && (Eb = clearTimeout(Eb)), r - Ug > 24 ? (r < 1 / 0 && (Eb = setTimeout(F8, r - M1.now() - cE)), Q0 && (Q0 = clearInterval(Q0))) : (Q0 || ($x = M1.now(), Q0 = setInterval(eoe, 1e3)), ym = 1, yq(F8))); } -qM.prototype = bq.prototype = { constructor: qM, restart: function(r, e, t) { +zM.prototype = bq.prototype = { constructor: zM, restart: function(r, e, t) { if (typeof r != "function") throw new TypeError("callback is not a function"); - t = (t == null ? mq() : +t) + (e == null ? 0 : +e), this._next || xb === this || (xb ? xb._next = this : cx = this, xb = this), this._call = r, this._time = t, GM(); + t = (t == null ? mq() : +t) + (e == null ? 0 : +e), this._next || xb === this || (xb ? xb._next = this : cx = this, xb = this), this._call = r, this._time = t, qM(); }, stop: function() { - this._call && (this._call = null, this._time = 1 / 0, GM()); + this._call && (this._call = null, this._time = 1 / 0, qM()); } }; const U8 = 4294967296; -function eoe(r) { +function toe(r) { return r.x; } -function toe(r) { +function roe(r) { return r.y; } -var roe = Math.PI * (3 - Math.sqrt(5)); +var noe = Math.PI * (3 - Math.sqrt(5)); function z8(r, e, t, n) { if (isNaN(e) || isNaN(t)) return r; var i, a, o, s, u, l, c, f, d, h = r._root, p = { data: n }, g = r._x0, y = r._y0, b = r._x1, _ = r._y1; @@ -70626,14 +70638,14 @@ function z8(r, e, t, n) { function kl(r, e, t, n, i) { this.node = r, this.x0 = e, this.y0 = t, this.x1 = n, this.y1 = i; } -function noe(r) { +function ioe(r) { return r[0]; } -function ioe(r) { +function aoe(r) { return r[1]; } function VD(r, e, t) { - var n = new HD(e ?? noe, t ?? ioe, NaN, NaN, NaN, NaN); + var n = new HD(e ?? ioe, t ?? aoe, NaN, NaN, NaN, NaN); return r == null ? n : n.addAll(r); } function HD(r, e, t, n, i, a) { @@ -70652,10 +70664,10 @@ function jl(r) { function bp(r) { return 1e-6 * (r() - 0.5); } -function bP() { +function mP() { var r, e, t, n, i, a = jl(-30), o = 1, s = 1 / 0, u = 0.81; function l(h) { - var p, g = r.length, y = VD(r, eoe, toe).visitAfter(f); + var p, g = r.length, y = VD(r, toe, roe).visitAfter(f); for (n = h, p = 0; p < g; ++p) e = r[p], y.visit(d); } function c() { @@ -70700,13 +70712,13 @@ function bP() { return arguments.length ? (u = h * h, l) : Math.sqrt(u); }, l; } -function aoe(r) { +function ooe(r) { return r.x + r.vx; } -function ooe(r) { +function soe(r) { return r.y + r.vy; } -function soe(r) { +function uoe(r) { return r.index; } function G8(r, e) { @@ -70819,28 +70831,28 @@ Il.copy = function() { }, Il.y = function(r) { return arguments.length ? (this._y = r, this) : this._y; }; -var uoe = io(5880), _q = io.n(uoe), bi = _q().getLogger("NVL"); -function VM(r) { - return VM = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) { +var loe = io(5880), _q = io.n(loe), bi = _q().getLogger("NVL"); +function GM(r) { + return GM = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) { return typeof e; } : function(e) { return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e; - }, VM(r); + }, GM(r); } -var loe = function(r) { +var coe = function(r) { var e, t; return typeof r.source == "number" || typeof r.target == "number" || typeof r.source == "string" || typeof r.target == "string" ? 45 * devicePixelRatio : ((e = r.source.size) !== null && e !== void 0 ? e : ha) + ((t = r.target.size) !== null && t !== void 0 ? t : ha) + 90 * devicePixelRatio; }; function V8(r) { - return VM(r) === "object"; + return GM(r) === "object"; } -var coe = function(r) { +var foe = function(r) { var e; return ((e = r.size) !== null && e !== void 0 ? e : ha) + 25 * devicePixelRatio; -}, HM = function() { +}, VM = function() { return -400 * Math.pow(devicePixelRatio, 2); -}, foe = function() { - return 2 * HM(); +}, doe = function() { + return 2 * VM(); }; function zg(r) { return zg = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) { @@ -70864,10 +70876,10 @@ function W8(r, e) { } return t; } -function doe(r, e, t) { +function hoe(r, e, t) { return (e = wq(e)) in r ? Object.defineProperty(r, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : r[e] = t, r; } -function hoe(r, e) { +function voe(r, e) { for (var t = 0; t < e.length; t++) { var n = e[t]; n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(r, wq(n.key), n); @@ -70886,9 +70898,9 @@ function wq(r) { })(r); return zg(e) == "symbol" ? e : e + ""; } -var lh = "d3ForceLayout", _P = function(r) { +var lh = "d3ForceLayout", bP = function(r) { return r && Xu(r); -}, voe = (function() { +}, poe = (function() { return r = function t(n) { var i = this; (function(l, c) { @@ -70898,7 +70910,7 @@ var lh = "d3ForceLayout", _P = function(r) { this.state = a, this.d3Nodes = {}, this.d3RelList = {}, this.computing = !1, this.center = { x: 0, y: 0 }, this.nodeRelCount = []; var o = this.state, s = o.nodes, u = o.rels; s.addChannel(lh), u.addChannel(lh), this.simulation = (function(l) { - var c, f = 1, d = 1e-3, h = 1 - Math.pow(d, 1 / 300), p = 0, g = 0.6, y = /* @__PURE__ */ new Map(), b = bq(x), _ = Zae("tick", "end"), m = /* @__PURE__ */ (function() { + var c, f = 1, d = 1e-3, h = 1 - Math.pow(d, 1 / 300), p = 0, g = 0.6, y = /* @__PURE__ */ new Map(), b = bq(x), _ = Qae("tick", "end"), m = /* @__PURE__ */ (function() { let T = 1; return () => (T = (1664525 * T + 1013904223) % U8) / U8; })(); @@ -70916,7 +70928,7 @@ var lh = "d3ForceLayout", _P = function(r) { function O() { for (var T, P = 0, I = l.length; P < I; ++P) { if ((T = l[P]).index = P, T.fx != null && (T.x = T.fx), T.fy != null && (T.y = T.fy), isNaN(T.x) || isNaN(T.y)) { - var k = 10 * Math.sqrt(0.5 + P), L = P * roe; + var k = 10 * Math.sqrt(0.5 + P), L = P * noe; T.x = k * Math.cos(L), T.y = k * Math.sin(L); } (isNaN(T.vx) || isNaN(T.vy)) && (T.vx = T.vy = 0); @@ -70952,7 +70964,7 @@ var lh = "d3ForceLayout", _P = function(r) { }, on: function(T, P) { return arguments.length > 1 ? (_.on(T, P), c) : _.on(T); } }; - })().velocityDecay(0.4).force("charge", bP().strength(HM)).force("centerX", (function(l) { + })().velocityDecay(0.4).force("charge", mP().strength(VM)).force("centerX", (function(l) { var c, f, d, h = jl(0.1); function p(y) { for (var b, _ = 0, m = c.length; _ < m; ++_) (b = c[_]).vx += (d[_] - b.x) * f[_] * y; @@ -71015,17 +71027,17 @@ var lh = "d3ForceLayout", _P = function(r) { if (this.shouldUpdate || i) { var a = this.state, o = a.nodes, s = a.rels, u = o.channels[lh], l = s.channels[lh], c = Object.values(u.adds).length > 0, f = Object.values(l.adds).length > 0, d = Object.values(u.removes).length > 0, h = Object.values(l.removes).length > 0, p = Object.values(u.updates).length > 0; if (c || f || d || h || p) { - var g = c && Object.keys(this.d3Nodes).length === 0, y = _P(u.removes); + var g = c && Object.keys(this.d3Nodes).length === 0, y = bP(u.removes); Object.keys(y).forEach(function(m) { delete n.d3Nodes[m]; }); - var b = _P(u.adds); + var b = bP(u.adds); if (Object.keys(b).forEach(function(m) { n.d3Nodes[m] = (function(x) { for (var S = 1; S < arguments.length; S++) { var O = arguments[S] != null ? arguments[S] : {}; S % 2 ? W8(Object(O), !0).forEach(function(E) { - doe(x, E, O[E]); + hoe(x, E, O[E]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(x, Object.getOwnPropertyDescriptors(O)) : W8(Object(O)).forEach(function(E) { Object.defineProperty(x, E, Object.getOwnPropertyDescriptor(O, E)); }); @@ -71034,7 +71046,7 @@ var lh = "d3ForceLayout", _P = function(r) { })({}, b[m]); }), p && Object.values(u.updates).forEach(function(m) { m.pinned === !0 ? (n.d3Nodes[m.id].fx = n.d3Nodes[m.id].x, n.d3Nodes[m.id].fy = n.d3Nodes[m.id].y) : m.pinned === !1 && (n.d3Nodes[m.id].fx = null, n.d3Nodes[m.id].fy = null), m.size !== void 0 && (n.d3Nodes[m.id].size = m.size); - }), (f || h) && (this.d3RelList = FM(_P(s.items)).filter(function(m) { + }), (f || h) && (this.d3RelList = BM(bP(s.items)).filter(function(m) { return m.from !== m.to; }).map(function(m, x) { return { source: m.from, target: m.to, index: x }; @@ -71059,13 +71071,13 @@ var lh = "d3ForceLayout", _P = function(r) { if (bi.info("d3ForceLayout: start layout with ".concat(Object.keys(this.d3Nodes).length, " nodes and ").concat(this.d3RelList.length, " rels")), this.simulation.stop(), this.simulation.nodes(Object.values(this.d3Nodes)).force("collide", (function(l) { var c, f, d, h = 1, p = 1; function g() { - for (var _, m, x, S, O, E, T, P = c.length, I = 0; I < p; ++I) for (m = VD(c, aoe, ooe).visitAfter(y), _ = 0; _ < P; ++_) x = c[_], E = f[x.index], T = E * E, S = x.x + x.vx, O = x.y + x.vy, m.visit(k); + for (var _, m, x, S, O, E, T, P = c.length, I = 0; I < p; ++I) for (m = VD(c, ooe, soe).visitAfter(y), _ = 0; _ < P; ++_) x = c[_], E = f[x.index], T = E * E, S = x.x + x.vx, O = x.y + x.vy, m.visit(k); function k(L, B, j, z, H) { var q = L.data, W = L.r, $ = E + W; if (!q) return B > S + $ || z < S - $ || j > O + $ || H < O - $; if (q.index > x.index) { - var J = S - q.x - q.vx, X = O - q.y - q.vy, Q = J * J + X * X; - Q < $ * $ && (J === 0 && (Q += (J = bp(d)) * J), X === 0 && (Q += (X = bp(d)) * X), Q = ($ - (Q = Math.sqrt(Q))) / Q * h, x.vx += (J *= Q) * ($ = (W *= W) / (T + W)), x.vy += (X *= Q) * $, q.vx -= J * ($ = 1 - $), q.vy -= X * $); + var J = S - q.x - q.vx, X = O - q.y - q.vy, Z = J * J + X * X; + Z < $ * $ && (J === 0 && (Z += (J = bp(d)) * J), X === 0 && (Z += (X = bp(d)) * X), Z = ($ - (Z = Math.sqrt(Z))) / Z * h, x.vx += (J *= Z) * ($ = (W *= W) / (T + W)), x.vy += (X *= Z) * $, q.vx -= J * ($ = 1 - $), q.vy -= X * $); } } } @@ -71088,8 +71100,8 @@ var lh = "d3ForceLayout", _P = function(r) { }, g.radius = function(_) { return arguments.length ? (l = typeof _ == "function" ? _ : jl(+_), b(), g) : l; }, g; - })().radius(coe)), this.shouldCountNodeRels && (this.nodeRelCount = this.countNodeRels()), this.simulation.force("link", (function(l) { - var c, f, d, h, p, g, y = soe, b = function(T) { + })().radius(foe)), this.shouldCountNodeRels && (this.nodeRelCount = this.countNodeRels()), this.simulation.force("link", (function(l) { + var c, f, d, h, p, g, y = uoe, b = function(T) { return 1 / Math.min(h[T.source.index], h[T.target.index]); }, _ = jl(30), m = 1; function x(T) { @@ -71124,7 +71136,7 @@ var lh = "d3ForceLayout", _P = function(r) { }, x; })(this.d3RelList).id(function(l) { return l.id; - }).distance(loe).strength(function(l) { + }).distance(coe).strength(function(l) { return (function(c, f) { if (!V8(c.source) || !V8(c.target)) return 1; var d = 1.2 / (Math.min(f[c.source.index], f[c.target.index]) + (Math.max(f[c.source.index], f[c.target.index]) - 1) / 100); @@ -71133,9 +71145,9 @@ var lh = "d3ForceLayout", _P = function(r) { })), i) { this.computing = !0; var o = 0; - this.simulation.force("charge", bP().strength(foe)); + this.simulation.force("charge", mP().strength(doe)); for (var s = performance.now(); performance.now() - s < 300 && o < 200; ) this.simulation.alpha(1), this.simulation.tick(1), o += 1; - this.simulation.force("charge", bP().strength(HM)); + this.simulation.force("charge", mP().strength(VM)); for (var u = performance.now(); performance.now() - u < 100 && this.simulation.alpha() >= this.simulation.alphaMin(); ) this.simulation.tick(1); return requestAnimationFrame(function() { a.computing = !1; @@ -71214,17 +71226,17 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho o.index = a, zg(o.source) !== "object" && (o.source = t.get(o.source)), zg(o.target) !== "object" && (o.target = t.get(o.target)), i[o.source.index] = (i[o.source.index] || 0) + 1, i[o.target.index] = (i[o.target.index] || 0) + 1; } return i; - } }], e && hoe(r.prototype, e), Object.defineProperty(r, "prototype", { writable: !1 }), r; + } }], e && voe(r.prototype, e), Object.defineProperty(r, "prototype", { writable: !1 }), r; var r, e; })(); -const wP = cae; -var poe = { CoseBilkentLayout: { standard: "createCoseBilkentLayoutWorker", fallback: "coseBilkentLayoutFallbackWorker" }, HierarchicalLayout: { standard: "createHierarchicalLayoutWorker", fallback: "hierarchicalLayoutFallbackWorker" } }, xq = function(r) { - var e, t = arguments.length > 1 && arguments[1] !== void 0 && arguments[1], n = poe[r], i = n.standard, a = n.fallback; - if (t) e = wP[a]; +const _P = fae; +var goe = { CoseBilkentLayout: { standard: "createCoseBilkentLayoutWorker", fallback: "coseBilkentLayoutFallbackWorker" }, HierarchicalLayout: { standard: "createHierarchicalLayoutWorker", fallback: "hierarchicalLayoutFallbackWorker" } }, xq = function(r) { + var e, t = arguments.length > 1 && arguments[1] !== void 0 && arguments[1], n = goe[r], i = n.standard, a = n.fallback; + if (t) e = _P[a]; else try { - e = wP[i](); + e = _P[i](); } catch (o) { - console.warn("Failed to initialise ".concat(r, ' worker: "').concat(JSON.stringify(o), '". Falling back to syncronous code.')), e = wP[a]; + console.warn("Failed to initialise ".concat(r, ' worker: "').concat(JSON.stringify(o), '". Falling back to syncronous code.')), e = _P[a]; } if (e === void 0) throw new Error("".concat(r, " code could not be initialized.")); return e.port.start(), e; @@ -71246,7 +71258,7 @@ function Y8(r, e) { } return t; } -function goe(r) { +function yoe(r) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e] != null ? arguments[e] : {}; e % 2 ? Y8(Object(t), !0).forEach(function(n) { @@ -71257,7 +71269,7 @@ function goe(r) { } return r; } -function yoe(r, e) { +function moe(r, e) { return (function(t) { if (Array.isArray(t)) return t; })(r) || (function(t, n) { @@ -71284,7 +71296,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } function X8(r) { return (function(e) { - if (Array.isArray(e)) return WM(e); + if (Array.isArray(e)) return HM(e); })(r) || (function(e) { if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e); })(r) || Eq(r) || (function() { @@ -71294,17 +71306,17 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } function Eq(r, e) { if (r) { - if (typeof r == "string") return WM(r, e); + if (typeof r == "string") return HM(r, e); var t = {}.toString.call(r).slice(8, -1); - return t === "Object" && r.constructor && (t = r.constructor.name), t === "Map" || t === "Set" ? Array.from(r) : t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? WM(r, e) : void 0; + return t === "Object" && r.constructor && (t = r.constructor.name), t === "Map" || t === "Set" ? Array.from(r) : t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? HM(r, e) : void 0; } } -function WM(r, e) { +function HM(r, e) { (e == null || e > r.length) && (e = r.length); for (var t = 0, n = Array(e); t < e; t++) n[t] = r[t]; return n; } -function moe(r, e) { +function boe(r, e) { for (var t = 0; t < e.length; t++) { var n = e[t]; n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(r, Oq(n.key), n); @@ -71320,8 +71332,8 @@ function Sq() { return !!r; })(); } -function YM() { - return YM = typeof Reflect < "u" && Reflect.get ? Reflect.get.bind() : function(r, e, t) { +function WM() { + return WM = typeof Reflect < "u" && Reflect.get ? Reflect.get.bind() : function(r, e, t) { var n = (function(a, o) { for (; !{}.hasOwnProperty.call(a, o) && (a = Am(a)) !== null; ) ; return a; @@ -71330,17 +71342,17 @@ function YM() { var i = Object.getOwnPropertyDescriptor(n, e); return i.get ? i.get.call(arguments.length < 3 ? r : t) : i.value; } - }, YM.apply(null, arguments); + }, WM.apply(null, arguments); } function Am(r) { return Am = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(e) { return e.__proto__ || Object.getPrototypeOf(e); }, Am(r); } -function XM(r, e) { - return XM = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, n) { +function YM(r, e) { + return YM = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, n) { return t.__proto__ = n, t; - }, XM(r, e); + }, YM(r, e); } function Pg(r, e, t) { return (e = Oq(e)) in r ? Object.defineProperty(r, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : r[e] = t, r; @@ -71360,7 +71372,7 @@ function Oq(r) { } var $8 = function(r) { return r !== void 0 ? Xu(r) : r; -}, boe = (function() { +}, _oe = (function() { function r(n) { var i; return (function(a, o) { @@ -71382,7 +71394,7 @@ var $8 = function(r) { } return (function(n, i) { if (typeof i != "function" && i !== null) throw new TypeError("Super expression must either be null or a function"); - n.prototype = Object.create(i && i.prototype, { constructor: { value: n, writable: !0, configurable: !0 } }), Object.defineProperty(n, "prototype", { writable: !1 }), i && XM(n, i); + n.prototype = Object.create(i && i.prototype, { constructor: { value: n, writable: !0, configurable: !0 } }), Object.defineProperty(n, "prototype", { writable: !1 }), i && YM(n, i); })(r, GD), e = r, t = [{ key: "setOptions", value: function() { this.shouldUpdate = !0; } }, { key: "update", value: function() { @@ -71392,7 +71404,7 @@ var $8 = function(r) { (o.length > 0 || s.length > 0) && (this.updatePositionsFromState(), this.layout(o, s)); } (function(u, l, c) { - var f = YM(Am(u.prototype), "update", c); + var f = WM(Am(u.prototype), "update", c); return typeof f == "function" ? function(d) { return f.apply(c, d); } : f; @@ -71417,8 +71429,8 @@ var $8 = function(r) { var c = l.data.positions; if (a.computing) { for (var f = 0, d = Object.entries(c); f < d.length; f++) { - var h = yoe(d[f], 2), p = h[0], g = h[1]; - a.positions[p] = goe({ id: p }, g); + var h = moe(d[f], 2), p = h[0], g = h[1]; + a.positions[p] = yoe({ id: p }, g); } a.cytoCompleteCallback(), a.startAnimation(); } @@ -71435,17 +71447,17 @@ var $8 = function(r) { this.stateDisposers.forEach(function(i) { i(); }), (n = this.worker) === null || n === void 0 || n.port.close(); - } }], t && moe(e.prototype, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; + } }], t && boe(e.prototype, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; var e, t; })(), K8 = typeof Float32Array < "u" ? Float32Array : Array; function Kx() { var r = new K8(16); return K8 != Float32Array && (r[1] = 0, r[2] = 0, r[3] = 0, r[4] = 0, r[6] = 0, r[7] = 0, r[8] = 0, r[9] = 0, r[11] = 0, r[12] = 0, r[13] = 0, r[14] = 0), r[0] = 1, r[5] = 1, r[10] = 1, r[15] = 1, r; } -var $M = function(r, e, t, n, i, a, o) { +var XM = function(r, e, t, n, i, a, o) { var s = 1 / (e - t), u = 1 / (n - i), l = 1 / (a - o); return r[0] = -2 * s, r[1] = 0, r[2] = 0, r[3] = 0, r[4] = 0, r[5] = -2 * u, r[6] = 0, r[7] = 0, r[8] = 0, r[9] = 0, r[10] = 2 * l, r[11] = 0, r[12] = (e + t) * s, r[13] = (i + n) * u, r[14] = (o + a) * l, r[15] = 1, r; -}, _oe = io(9792), Z8 = io.n(_oe); +}, woe = io(9792), Z8 = io.n(woe); function Bb(r) { return Bb = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) { return typeof e; @@ -71453,7 +71465,7 @@ function Bb(r) { return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e; }, Bb(r); } -function woe(r, e) { +function xoe(r, e) { for (var t = 0; t < e.length; t++) { var n = e[t]; n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(r, Tq(n.key), n); @@ -71562,7 +71574,7 @@ var _p = (function() { var o = t.getUniformLocation(this.shaderProgram, n.name), s = { type: n.type, location: o }; n.type === t.SAMPLER_2D && (s.texture = this.curTexture, this.curTexture += 1), this.uniformInfo[n.name] = s; } - } }]) && woe(r.prototype, e), Object.defineProperty(r, "prototype", { writable: !1 }), r; + } }]) && xoe(r.prototype, e), Object.defineProperty(r, "prototype", { writable: !1 }), r; var r, e; })(); function Rm(r) { @@ -71572,13 +71584,13 @@ function Rm(r) { return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e; }, Rm(r); } -function xoe(r, e) { +function Eoe(r, e) { for (var t = 0; t < e.length; t++) { var n = e[t]; - n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(r, Eoe(n.key), n); + n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(r, Soe(n.key), n); } } -function Eoe(r) { +function Soe(r) { var e = (function(t) { if (Rm(t) != "object" || !t) return t; var n = t[Symbol.toPrimitive]; @@ -71591,9 +71603,9 @@ function Eoe(r) { })(r); return Rm(e) == "symbol" ? e : e + ""; } -function KM(r) { +function $M(r) { var e = typeof Map == "function" ? /* @__PURE__ */ new Map() : void 0; - return KM = function(t) { + return $M = function(t) { if (t === null || !(function(i) { try { return Function.toString.call(i).indexOf("[native code]") !== -1; @@ -71616,7 +71628,7 @@ function KM(r) { })(t, arguments, k1(this).constructor); } return n.prototype = Object.create(t.prototype, { constructor: { value: n, enumerable: !1, writable: !0, configurable: !0 } }), D1(n, t); - }, KM(r); + }, $M(r); } function WD() { try { @@ -71656,9 +71668,9 @@ var Cq = (function() { return (function(n, i) { if (typeof i != "function" && i !== null) throw new TypeError("Super expression must either be null or a function"); n.prototype = Object.create(i && i.prototype, { constructor: { value: n, writable: !0, configurable: !0 } }), Object.defineProperty(n, "prototype", { writable: !1 }), i && D1(n, i); - })(r, KM(Error)), e = r, (t = [{ key: "toString", value: function() { + })(r, $M(Error)), e = r, (t = [{ key: "toString", value: function() { return this.message; - } }]) && xoe(e.prototype, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; + } }]) && Eoe(e.prototype, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; var e, t; })(); const Ow = `uniform mat4 u_projection; @@ -71700,7 +71712,7 @@ function J8(r) { } return r; } -function Soe(r, e) { +function Ooe(r, e) { for (var t = 0; t < e.length; t++) { var n = e[t]; n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(r, Aq(n.key), n); @@ -71864,7 +71876,7 @@ var eB = (function() { return i.relIdMap[E][I]; }))); }), S !== void 0 && S.length > 0 && (this.relIdMap = S), { output: { nodes: h, relationships: p, idToRel: this.graph.idToRel }, sortedInput: { nodes: b, relationships: x, idToRel: this.graph.idToRel }, nodeSortMap: m }; - } }], e && Soe(r.prototype, e), Object.defineProperty(r, "prototype", { writable: !1 }), r; + } }], e && Ooe(r.prototype, e), Object.defineProperty(r, "prototype", { writable: !1 }), r; var r, e; })(), tB = function(r, e, t) { for (var n = 2 * Math.PI / t, i = [], a = 0; a < t; a++) { @@ -71925,7 +71937,7 @@ function rB(r, e) { for (var t = 0, n = Array(e); t < e; t++) n[t] = r[t]; return n; } -function Ooe(r, e) { +function Toe(r, e) { for (var t = 0; t < e.length; t++) { var n = e[t]; n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(r, Pq(n.key), n); @@ -71947,13 +71959,13 @@ function Pq(r) { })(r); return Ub(e) == "symbol" ? e : e + ""; } -var ru = "PhysLayout", tb = new Float32Array(4), Rf = 256, xP = function(r) { +var ru = "PhysLayout", tb = new Float32Array(4), Rf = 256, wP = function(r) { for (var e = {}, t = {}, n = 0; n < r.length; n++) { var i = r[n]; Rq(i) ? (e[i.originalId] = n, t[n] = i.originalId) : (e[i.id] = n, t[n] = i.id); } return { nodeIdToIndex: e, nodeIndexToId: t }; -}, Toe = (function() { +}, Coe = (function() { return r = function t(n) { var i = this; (function(d, h) { @@ -71968,7 +71980,7 @@ var ru = "PhysLayout", tb = new Float32Array(4), Rf = 256, xP = function(r) { var u = new Float32Array([0, 0, Cr, 0, 0, Cr, Cr, Cr]); s.bufferData(s.ARRAY_BUFFER, u, s.STATIC_DRAW), this.physSmallVbo = s.createBuffer(), s.bindBuffer(s.ARRAY_BUFFER, this.physSmallVbo); var l = new Float32Array([0, 0, Rf, 0, 0, Rf, Rf, Rf]); - s.bufferData(s.ARRAY_BUFFER, l, s.STATIC_DRAW), this.physProjection = Kx(), $M(this.physProjection, 0, Cr, Cr, 0, 0, 1e6), this.physSmallProjection = Kx(), $M(this.physSmallProjection, 0, Rf, Rf, 0, 0, 1e6), s.disable(s.DEPTH_TEST), this.gl = s, this.useReadpixelWorkaround && this.setupReadpixelWorkaround(), this.setupUpdates(), this.averageNodeSize = ha, this.shouldUpdate = !0, this.iterationCount = 0, this.lastSpeedValues = [], this.rollingAvgGraphSpeed = 0, this.nodeVariation = 0, this.nodeCenterPoint = [0, 0], this.peakIterationMultiplier = 160, this.setOptions(n, !0), this.definePhysicsArrays(), this.flatRelationshipKeys = /* @__PURE__ */ new Set(); + s.bufferData(s.ARRAY_BUFFER, l, s.STATIC_DRAW), this.physProjection = Kx(), XM(this.physProjection, 0, Cr, Cr, 0, 0, 1e6), this.physSmallProjection = Kx(), XM(this.physSmallProjection, 0, Rf, Rf, 0, 0, 1e6), s.disable(s.DEPTH_TEST), this.gl = s, this.useReadpixelWorkaround && this.setupReadpixelWorkaround(), this.setupUpdates(), this.averageNodeSize = ha, this.shouldUpdate = !0, this.iterationCount = 0, this.lastSpeedValues = [], this.rollingAvgGraphSpeed = 0, this.nodeVariation = 0, this.nodeCenterPoint = [0, 0], this.peakIterationMultiplier = 160, this.setOptions(n, !0), this.definePhysicsArrays(), this.flatRelationshipKeys = /* @__PURE__ */ new Set(); var c = a.nodes, f = a.rels; c.addChannel(ru), f.addChannel(ru), this.stateDisposers = [], this.stateDisposers.push(a.reaction(function() { return a.graphUpdates; @@ -71993,7 +72005,7 @@ var ru = "PhysLayout", tb = new Float32Array(4), Rf = 256, xP = function(r) { this.simulationStopVelocitySquared = s * s, this.gravity = 25, this.force = 0; } } }, { key: "setData", value: function(t) { - var n = xP(t.nodes), i = n.nodeIdToIndex, a = n.nodeIndexToId; + var n = wP(t.nodes), i = n.nodeIdToIndex, a = n.nodeIndexToId; return this.nodeIdToIndex = i, this.nodeIndexToId = a, this.numNodes = t.nodes.length, this.flatRelationshipKeys = Sw(t.rels), this.solarMerger = new eB(t, i), this.solarMerger.coarsenTo(1), this.subGraphs = this.solarMerger.subGraphs, this.nodeSortMap = this.solarMerger.nodeSortMap, this.setupSprings(this.subGraphs[0]), this.setupSize(this.subGraphs[0]), this.setupPhysics(), this.firstUpdate = !0, this.curPhysData = 0, this.shouldUpdate = !0, this.iterationCount = 0, this.subGraphs[0]; } }, { key: "update", value: function() { var t = arguments.length > 0 && arguments[0] !== void 0 && arguments[0], n = this.gl; @@ -72074,7 +72086,7 @@ var ru = "PhysLayout", tb = new Float32Array(4), Rf = 256, xP = function(r) { } }, { key: "addRemoveData", value: function(t, n, i) { var a = this.gl; this.numNodes = t.nodes.length, this.physShader.use(), this.physShader.setUniform("u_numNodes", this.numNodes), this.physShader.setUniform("u_baseLength", this.getBaseLength()); - var o = xP(t.nodes).nodeIdToIndex, s = new eB(t, o); + var o = wP(t.nodes).nodeIdToIndex, s = new eB(t, o); s.coarsenTo(1); var u = s.subGraphs[0], l = this.subGraphs[0], c = function(W) { return l.nodes.findIndex(function($) { @@ -72107,7 +72119,7 @@ var ru = "PhysLayout", tb = new Float32Array(4), Rf = 256, xP = function(r) { g.x += m || 0, g.y += x || 0; } this.nodeCenterPoint = y ? [g.x / y, g.y / y] : [0, 0], this.pinData = b, this.subGraphs = s.subGraphs, this.nodeSortMap = s.nodeSortMap, this.setupSprings(this.subGraphs[0]), this.setupSize(this.subGraphs[0]); - var B = xP(this.subGraphs[0].nodes), j = B.nodeIdToIndex, z = B.nodeIndexToId; + var B = wP(this.subGraphs[0].nodes), j = B.nodeIdToIndex, z = B.nodeIndexToId; this.nodeIdToIndex = j, this.nodeIndexToId = z, a.bindTexture(a.TEXTURE_2D, this.updateTexture), a.texSubImage2D(a.TEXTURE_2D, 0, 0, 0, Cr, Cr, a.ALPHA, a.FLOAT, this.updateData), bi.info("Setting gravity center to ", this.nodeCenterPoint), this.physShader.setUniform("u_gravityCenter", this.nodeCenterPoint), this.updateShader.use(), this.updateShader.setUniform("u_numNodesNew", u.nodes.length), this.updateShader.setUniform("u_physData", this.getPhysData(0).texture), this.updateShader.setUniform("u_updateData", this.updateTexture), a.disable(a.BLEND), this.vaoExt.bindVertexArrayOES(this.updateVao), a.bindFramebuffer(a.FRAMEBUFFER, this.getPhysData(1).frameBuffer), a.viewport(0, 0, Cr, Cr), a.drawArrays(a.TRIANGLE_STRIP, 0, 4), this.vaoExt.bindVertexArrayOES(null), this.curPhysData = (this.curPhysData + 1) % this.physData.length, this.useReadpixelWorkaround ? this.doReadpixelWorkaround() : (a.bindFramebuffer(a.FRAMEBUFFER, this.getPhysData().frameBuffer), a.readPixels(0, 0, Cr, Cr, a.RGBA, a.FLOAT, this.physPositions)), (f.length > 0 || d.length > 0) && (a.bindTexture(a.TEXTURE_2D, this.pinTexture), a.texSubImage2D(a.TEXTURE_2D, 0, 0, 0, Cr, Cr, a.ALPHA, a.UNSIGNED_BYTE, this.pinData)); var H = Sw(t.rels), q = this.hasRelationshipFlatMapChanged(H, i); return this.shouldUpdate = this.nodeVariation > 0 || q, this.iterationCount = 0, this.flatRelationshipKeys = H, this.setupPhysicsForCoarse(), this.subGraphs[0]; @@ -73054,7 +73066,7 @@ void main(void) { } } }, { key: "definePhysicsArrays", value: function() { this.physData = [], this.levelsData = [], this.levelsClusterTexture = [], this.levelsFinestIndexTexture = []; - } }], e && Ooe(r.prototype, e), Object.defineProperty(r, "prototype", { writable: !1 }), r; + } }], e && Toe(r.prototype, e), Object.defineProperty(r, "prototype", { writable: !1 }), r; var r, e; })(); function zb(r) { @@ -73066,26 +73078,26 @@ function zb(r) { } function Tw(r) { return (function(e) { - if (Array.isArray(e)) return EP(e); + if (Array.isArray(e)) return xP(e); })(r) || (function(e) { if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e); })(r) || (function(e, t) { if (e) { - if (typeof e == "string") return EP(e, t); + if (typeof e == "string") return xP(e, t); var n = {}.toString.call(e).slice(8, -1); - return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? EP(e, t) : void 0; + return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? xP(e, t) : void 0; } })(r) || (function() { throw new TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`); })(); } -function EP(r, e) { +function xP(r, e) { (e == null || e > r.length) && (e = r.length); for (var t = 0, n = Array(e); t < e; t++) n[t] = r[t]; return n; } -function Coe(r, e) { +function Aoe(r, e) { for (var t = 0; t < e.length; t++) { var n = e[t]; n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(r, Mq(n.key), n); @@ -73107,14 +73119,14 @@ function Mq(r) { })(r); return zb(e) == "symbol" ? e : e + ""; } -var im = "ForceCytoLayout", Cw = "forceDirected", Aw = "coseBilkent", Aoe = (function() { +var im = "ForceCytoLayout", Cw = "forceDirected", Aw = "coseBilkent", Roe = (function() { return r = function t(n) { var i = this; (function(l, c) { if (!(l instanceof c)) throw new TypeError("Cannot call a class as a function"); })(this, t), nm(this, "physLayout", void 0), nm(this, "coseBilkentLayout", void 0), nm(this, "state", void 0), nm(this, "currentLayoutType", void 0), nm(this, "enableCytoscape", void 0), nm(this, "currentLayout", void 0); var a = n.state, o = n.enableCytoscape; - this.enableCytoscape = o == null || o, this.physLayout = new Toe(n), this.coseBilkentLayout = new boe({ state: a, cytoCompleteCallback: function() { + this.enableCytoscape = o == null || o, this.physLayout = new Coe(n), this.coseBilkentLayout = new _oe({ state: a, cytoCompleteCallback: function() { for (i.physLayout.update(!0), i.copyLayoutPositions(i.state.nodes.items, i.coseBilkentLayout, i.physLayout); i.physLayout.update(!1); ) ; i.copyLayoutPositions(i.state.nodes.items, i.physLayout, i.coseBilkentLayout); }, animationCompleteCallback: function() { @@ -73169,11 +73181,11 @@ var im = "ForceCytoLayout", Cw = "forceDirected", Aw = "coseBilkent", Aoe = (fun var fe, se = {}, de = {}, ge = Z0(pe); try { for (ge.s(); !(fe = ge.n()).done; ) { - for (var Oe = fe.value, ke = Oe.from, Me = Oe.to, Ne = "".concat(ke, "-").concat(Me), Ce = "".concat(Me, "-").concat(ke), Y = 0, Z = [Ne, Ce]; Y < Z.length; Y++) { - var ie = Z[Y]; + for (var Oe = fe.value, ke = Oe.from, De = Oe.to, Ne = "".concat(ke, "-").concat(De), Te = "".concat(De, "-").concat(ke), Y = 0, Q = [Ne, Te]; Y < Q.length; Y++) { + var ie = Q[Y]; de[ie] !== void 0 ? de[ie].push(Oe) : de[ie] = [Oe]; } - se[ke] || (se[ke] = /* @__PURE__ */ new Set()), se[Me] || (se[Me] = /* @__PURE__ */ new Set()), se[ke].add(Me), se[Me].add(ke); + se[ke] || (se[ke] = /* @__PURE__ */ new Set()), se[De] || (se[De] = /* @__PURE__ */ new Set()), se[ke].add(De), se[De].add(ke); } } catch (we) { ge.e(we); @@ -73181,12 +73193,12 @@ var im = "ForceCytoLayout", Cw = "forceDirected", Aw = "coseBilkent", Aoe = (fun ge.f(); } return { adjNodesMap: se, relMap: de }; - })(L.items), Q = X.adjNodesMap, ue = X.relMap, re = {}, ne = {}, le = function(pe) { + })(L.items), Z = X.adjNodesMap, ue = X.relMap, re = {}, ne = {}, le = function(pe) { var fe = []; for (re[pe] || fe.push(pe); fe.length > 0; ) { var se = fe.shift(); - if (re[se] = k.idToItem[se], Q[se] !== void 0) { - var de, ge = Z0(Q[se]); + if (re[se] = k.idToItem[se], Z[se] !== void 0) { + var de, ge = Z0(Z[se]); try { for (ge.s(); !(de = ge.n()).done; ) { var Oe = de.value; @@ -73194,11 +73206,11 @@ var im = "ForceCytoLayout", Cw = "forceDirected", Aw = "coseBilkent", Aoe = (fun fe.push(Oe); var ke = ue["".concat(se, "-").concat(Oe)]; if (ke) { - var Me, Ne = Z0(ke); + var De, Ne = Z0(ke); try { - for (Ne.s(); !(Me = Ne.n()).done; ) { - var Ce = Me.value; - ne[Ce.id] || (ne[Ce.id] = Ce); + for (Ne.s(); !(De = Ne.n()).done; ) { + var Te = De.value; + ne[Te.id] || (ne[Te.id] = Te); } } catch (Y) { Ne.e(Y); @@ -73241,7 +73253,7 @@ var im = "ForceCytoLayout", Cw = "forceDirected", Aw = "coseBilkent", Aoe = (fun this.physLayout.terminateUpdate(), this.coseBilkentLayout.terminateUpdate(); } }, { key: "destroy", value: function() { this.physLayout.destroy(), this.coseBilkentLayout.destroy(); - } }], e && Coe(r.prototype, e), Object.defineProperty(r, "prototype", { writable: !1 }), r; + } }], e && Aoe(r.prototype, e), Object.defineProperty(r, "prototype", { writable: !1 }), r; var r, e; })(); function qb(r) { @@ -73261,7 +73273,7 @@ function nB(r, e) { } return t; } -function Roe(r) { +function Poe(r) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e] != null ? arguments[e] : {}; e % 2 ? nB(Object(t), !0).forEach(function(n) { @@ -73315,7 +73327,7 @@ function aB(r, e) { for (var t = 0, n = Array(e); t < e; t++) n[t] = r[t]; return n; } -function Poe(r, e) { +function Moe(r, e) { for (var t = 0; t < e.length; t++) { var n = e[t]; n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(r, Dq(n.key), n); @@ -73337,7 +73349,7 @@ function Dq(r) { })(r); return qb(e) == "symbol" ? e : e + ""; } -var ch = "FreeLayout", Moe = (function() { +var ch = "FreeLayout", Doe = (function() { return r = function t(n) { var i = this; (function(l, c) { @@ -73386,7 +73398,7 @@ var ch = "FreeLayout", Moe = (function() { var n, i = [], a = iB(t); try { for (a.s(); !(n = a.n()).done; ) { - var o = n.value, s = this.positions[o.id], u = Roe({ id: o.id }, s); + var o = n.value, s = this.positions[o.id], u = Poe({ id: o.id }, s); i.push(u); } } catch (l) { @@ -73402,7 +73414,7 @@ var ch = "FreeLayout", Moe = (function() { } }, { key: "terminateUpdate", value: function() { } }, { key: "destroy", value: function() { this.state.nodes.removeChannel(ch), this.state.rels.removeChannel(ch); - } }], e && Poe(r.prototype, e), Object.defineProperty(r, "prototype", { writable: !1 }), r; + } }], e && Moe(r.prototype, e), Object.defineProperty(r, "prototype", { writable: !1 }), r; var r, e; })(); function Gb(r) { @@ -73426,14 +73438,14 @@ function sB(r) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e] != null ? arguments[e] : {}; e % 2 ? oB(Object(t), !0).forEach(function(n) { - Doe(r, n, t[n]); + koe(r, n, t[n]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(r, Object.getOwnPropertyDescriptors(t)) : oB(Object(t)).forEach(function(n) { Object.defineProperty(r, n, Object.getOwnPropertyDescriptor(t, n)); }); } return r; } -function Doe(r, e, t) { +function koe(r, e, t) { return (e = kq(e)) in r ? Object.defineProperty(r, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : r[e] = t, r; } function uB(r, e) { @@ -73479,7 +73491,7 @@ function lB(r, e) { for (var t = 0, n = Array(e); t < e; t++) n[t] = r[t]; return n; } -function koe(r, e) { +function Ioe(r, e) { for (var t = 0; t < e.length; t++) { var n = e[t]; n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(r, kq(n.key), n); @@ -73498,7 +73510,7 @@ function kq(r) { })(r); return Gb(e) == "symbol" ? e : e + ""; } -var fh = "GridLayout", Ioe = (function() { +var fh = "GridLayout", Noe = (function() { return r = function t(n) { var i = this; (function(l, c) { @@ -73566,9 +73578,9 @@ var fh = "GridLayout", Ioe = (function() { this.shouldUpdate = !1; } }, { key: "destroy", value: function() { this.state.nodes.removeChannel(fh), this.state.rels.removeChannel(fh); - } }], e && koe(r.prototype, e), Object.defineProperty(r, "prototype", { writable: !1 }), r; + } }], e && Ioe(r.prototype, e), Object.defineProperty(r, "prototype", { writable: !1 }), r; var r, e; -})(), Noe = /* @__PURE__ */ new Set(["direction", "packing"]), Loe = "forceDirected", Zx = "hierarchical", joe = "grid", Boe = "free", Foe = "d3Force", Uoe = "circular", Mg = "webgl", fp = "canvas", am = "svg"; +})(), Loe = /* @__PURE__ */ new Set(["direction", "packing"]), joe = "forceDirected", Zx = "hierarchical", Boe = "grid", Foe = "free", Uoe = "d3Force", zoe = "circular", Mg = "webgl", fp = "canvas", am = "svg"; function Vb(r) { return Vb = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) { return typeof e; @@ -73591,7 +73603,7 @@ function Rw(r, e, t) { return Vb(i) == "symbol" ? i : i + ""; })(e)) in r ? Object.defineProperty(r, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : r[e] = t, r; } -var ZM = "down", zoe = Rw(Rw(Rw(Rw({}, "up", "BT"), ZM, "TB"), "left", "RL"), "right", "LR"), QM = "bin", qoe = [QM, "stack"], Goe = ["html"], Voe = ["html"], Hoe = ["captionHtml"]; +var KM = "down", qoe = Rw(Rw(Rw(Rw({}, "up", "BT"), KM, "TB"), "left", "RL"), "right", "LR"), ZM = "bin", Goe = [ZM, "stack"], Voe = ["html"], Hoe = ["html"], Woe = ["captionHtml"]; function Pm(r) { return Pm = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) { return typeof e; @@ -73599,7 +73611,7 @@ function Pm(r) { return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e; }, Pm(r); } -function SP(r, e) { +function EP(r, e) { if (r == null) return {}; var t, n, i = (function(o, s) { if (o == null) return {}; @@ -73616,7 +73628,7 @@ function SP(r, e) { } return i; } -function Woe(r, e) { +function Yoe(r, e) { for (var t = 0; t < e.length; t++) { var n = e[t]; n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(r, Nq(n.key), n); @@ -73632,8 +73644,8 @@ function Iq() { return !!r; })(); } -function JM() { - return JM = typeof Reflect < "u" && Reflect.get ? Reflect.get.bind() : function(r, e, t) { +function QM() { + return QM = typeof Reflect < "u" && Reflect.get ? Reflect.get.bind() : function(r, e, t) { var n = (function(a, o) { for (; !{}.hasOwnProperty.call(a, o) && (a = Mm(a)) !== null; ) ; return a; @@ -73642,17 +73654,17 @@ function JM() { var i = Object.getOwnPropertyDescriptor(n, e); return i.get ? i.get.call(arguments.length < 3 ? r : t) : i.value; } - }, JM.apply(null, arguments); + }, QM.apply(null, arguments); } function Mm(r) { return Mm = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(e) { return e.__proto__ || Object.getPrototypeOf(e); }, Mm(r); } -function e5(r, e) { - return e5 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, n) { +function JM(r, e) { + return JM = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, n) { return t.__proto__ = n, t; - }, e5(r, e); + }, JM(r, e); } function dh(r, e, t) { return (e = Nq(e)) in r ? Object.defineProperty(r, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : r[e] = t, r; @@ -73672,7 +73684,7 @@ function Nq(r) { } var Nl = "HierarchicalLayout", Pw = function(r) { return r !== void 0 ? Xu(r) : r; -}, Yoe = (function() { +}, Xoe = (function() { function r(n) { var i; (function(u, l) { @@ -73686,7 +73698,7 @@ var Nl = "HierarchicalLayout", Pw = function(r) { return h; })(f); })(u, Iq() ? Reflect.construct(l, c || [], Mm(u).constructor) : l.apply(u, c)); - })(this, r, [n]), "direction", void 0), dh(i, "packing", void 0), dh(i, "stateDisposers", void 0), dh(i, "oldComputing", void 0), dh(i, "computing", void 0), dh(i, "pendingLayoutData", void 0), dh(i, "worker", void 0), dh(i, "directionChanged", void 0), dh(i, "packingChanged", void 0), dh(i, "workersDisabled", void 0), i.direction = ZM, i.packing = QM; + })(this, r, [n]), "direction", void 0), dh(i, "packing", void 0), dh(i, "stateDisposers", void 0), dh(i, "oldComputing", void 0), dh(i, "computing", void 0), dh(i, "pendingLayoutData", void 0), dh(i, "worker", void 0), dh(i, "directionChanged", void 0), dh(i, "packingChanged", void 0), dh(i, "workersDisabled", void 0), i.direction = KM, i.packing = ZM; var a = i.state, o = a.nodes, s = a.rels; return o.addChannel(Nl), s.addChannel(Nl), i.stateDisposers = [i.state.reaction(function() { return i.state.graphUpdates; @@ -73703,15 +73715,15 @@ var Nl = "HierarchicalLayout", Pw = function(r) { } return (function(n, i) { if (typeof i != "function" && i !== null) throw new TypeError("Super expression must either be null or a function"); - n.prototype = Object.create(i && i.prototype, { constructor: { value: n, writable: !0, configurable: !0 } }), Object.defineProperty(n, "prototype", { writable: !1 }), i && e5(n, i); + n.prototype = Object.create(i && i.prototype, { constructor: { value: n, writable: !0, configurable: !0 } }), Object.defineProperty(n, "prototype", { writable: !1 }), i && JM(n, i); })(r, GD), e = r, t = [{ key: "setOptions", value: function(n) { if (n !== void 0 && (function(u) { return Object.keys(u).every(function(l) { - return Noe.has(l); + return Loe.has(l); }); })(n)) { - var i = n.direction, a = i === void 0 ? ZM : i, o = n.packing, s = o === void 0 ? QM : o; - Object.keys(zoe).includes(a) && (this.directionChanged = this.direction && this.direction !== a, this.direction = a), qoe.includes(s) && (this.packingChanged = this.packing && this.packing !== s, this.packing = s), this.shouldUpdate = this.shouldUpdate || this.directionChanged || this.packingChanged; + var i = n.direction, a = i === void 0 ? KM : i, o = n.packing, s = o === void 0 ? ZM : o; + Object.keys(qoe).includes(a) && (this.directionChanged = this.direction && this.direction !== a, this.direction = a), Goe.includes(s) && (this.packingChanged = this.packing && this.packing !== s, this.packing = s), this.shouldUpdate = this.shouldUpdate || this.directionChanged || this.packingChanged; } } }, { key: "update", value: function() { var n = arguments.length > 0 && arguments[0] !== void 0 && arguments[0]; @@ -73720,7 +73732,7 @@ var Nl = "HierarchicalLayout", Pw = function(r) { (n || l || c || f || d || s || u || p) && this.layout(a.items, a.idToItem, a.idToPosition, o.items), a.clearChannel(Nl), o.clearChannel(Nl), this.directionChanged = !1, this.packingChanged = !1; } (function(g, y, b) { - var _ = JM(Mm(g.prototype), "update", b); + var _ = QM(Mm(g.prototype), "update", b); return typeof _ == "function" ? function(m) { return _.apply(b, m); } : _; @@ -73733,14 +73745,14 @@ var Nl = "HierarchicalLayout", Pw = function(r) { var s = this; if (this.worker) { var u = Pw(n).map(function(b) { - return b.html, SP(b, Goe); + return b.html, EP(b, Voe); }), l = Pw(i), c = {}; Object.keys(l).forEach(function(b) { - var _ = l[b], m = (_.html, SP(_, Voe)); + var _ = l[b], m = (_.html, EP(_, Hoe)); c[b] = m; }); var f = Pw(o).map(function(b) { - return b.captionHtml, SP(b, Hoe); + return b.captionHtml, EP(b, Woe); }), d = Pw(a), h = this.direction, p = this.packing, g = window.devicePixelRatio, y = { nodes: u, nodeIds: c, idToPosition: d, rels: f, direction: h, packing: p, pixelRatio: g, forcedDelay: 0 }; this.computing ? this.pendingLayoutData = y : (this.worker.port.onmessage = function(b) { var _ = b.data, m = _.positions, x = _.parents, S = _.waypoints; @@ -73755,9 +73767,9 @@ var Nl = "HierarchicalLayout", Pw = function(r) { this.stateDisposers.forEach(function(i) { i(); }), this.state.nodes.removeChannel(Nl), this.state.rels.removeChannel(Nl), (n = this.worker) === null || n === void 0 || n.port.close(); - } }], t && Woe(e.prototype, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; + } }], t && Yoe(e.prototype, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; var e, t; -})(), Xoe = io(3269), Lq = io.n(Xoe); +})(), $oe = io(3269), Lq = io.n($oe); function Qx(r) { return Qx = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) { return typeof e; @@ -73765,16 +73777,16 @@ function Qx(r) { return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e; }, Qx(r); } -var $oe = /^\s+/, Koe = /\s+$/; +var Koe = /^\s+/, Zoe = /\s+$/; function xr(r, e) { if (e = e || {}, (r = r || "") instanceof xr) return r; if (!(this instanceof xr)) return new xr(r, e); var t = (function(n) { var i, a, o, s = { r: 0, g: 0, b: 0 }, u = 1, l = null, c = null, f = null, d = !1, h = !1; return typeof n == "string" && (n = (function(p) { - p = p.replace($oe, "").replace(Koe, "").toLowerCase(); + p = p.replace(Koe, "").replace(Zoe, "").toLowerCase(); var g, y = !1; - if (t5[p]) p = t5[p], y = !0; + if (e5[p]) p = e5[p], y = !0; else if (p == "transparent") return { r: 0, g: 0, b: 0, a: 0, format: "name" }; return (g = _d.rgb.exec(p)) ? { r: g[1], g: g[2], b: g[3] } : (g = _d.rgba.exec(p)) ? { r: g[1], g: g[2], b: g[3], a: g[4] } : (g = _d.hsl.exec(p)) ? { h: g[1], s: g[2], l: g[3] } : (g = _d.hsla.exec(p)) ? { h: g[1], s: g[2], l: g[3], a: g[4] } : (g = _d.hsv.exec(p)) ? { h: g[1], s: g[2], v: g[3] } : (g = _d.hsva.exec(p)) ? { h: g[1], s: g[2], v: g[3], a: g[4] } : (g = _d.hex8.exec(p)) ? { r: ef(g[1]), g: ef(g[2]), b: ef(g[3]), a: pB(g[4]), format: y ? "name" : "hex8" } : (g = _d.hex6.exec(p)) ? { r: ef(g[1]), g: ef(g[2]), b: ef(g[3]), format: y ? "name" : "hex" } : (g = _d.hex4.exec(p)) ? { r: ef(g[1] + "" + g[1]), g: ef(g[2] + "" + g[2]), b: ef(g[3] + "" + g[3]), a: pB(g[4] + "" + g[4]), format: y ? "name" : "hex8" } : !!(g = _d.hex3.exec(p)) && { r: ef(g[1] + "" + g[1]), g: ef(g[2] + "" + g[2]), b: ef(g[3] + "" + g[3]), format: y ? "name" : "hex" }; })(n)), Qx(n) == "object" && (nv(n.r) && nv(n.g) && nv(n.b) ? (i = n.r, a = n.g, o = n.b, s = { r: 255 * Da(i, 255), g: 255 * Da(a, 255), b: 255 * Da(o, 255) }, d = !0, h = String(n.r).substr(-1) === "%" ? "prgb" : "rgb") : nv(n.h) && nv(n.s) && nv(n.v) ? (l = Ob(n.s), c = Ob(n.v), s = (function(p, g, y) { @@ -73842,39 +73854,39 @@ function dB(r, e, t, n) { function hB(r, e, t, n) { return [Td(Bq(n)), Td(Math.round(r).toString(16)), Td(Math.round(e).toString(16)), Td(Math.round(t).toString(16))].join(""); } -function Zoe(r, e) { +function Qoe(r, e) { e = e === 0 ? 0 : e || 10; var t = xr(r).toHsl(); - return t.s -= e / 100, t.s = dE(t.s), xr(t); + return t.s -= e / 100, t.s = fE(t.s), xr(t); } -function Qoe(r, e) { +function Joe(r, e) { e = e === 0 ? 0 : e || 10; var t = xr(r).toHsl(); - return t.s += e / 100, t.s = dE(t.s), xr(t); + return t.s += e / 100, t.s = fE(t.s), xr(t); } -function Joe(r) { +function ese(r) { return xr(r).desaturate(100); } -function ese(r, e) { +function tse(r, e) { e = e === 0 ? 0 : e || 10; var t = xr(r).toHsl(); - return t.l += e / 100, t.l = dE(t.l), xr(t); + return t.l += e / 100, t.l = fE(t.l), xr(t); } -function tse(r, e) { +function rse(r, e) { e = e === 0 ? 0 : e || 10; var t = xr(r).toRgb(); return t.r = Math.max(0, Math.min(255, t.r - Math.round(-e / 100 * 255))), t.g = Math.max(0, Math.min(255, t.g - Math.round(-e / 100 * 255))), t.b = Math.max(0, Math.min(255, t.b - Math.round(-e / 100 * 255))), xr(t); } -function rse(r, e) { +function nse(r, e) { e = e === 0 ? 0 : e || 10; var t = xr(r).toHsl(); - return t.l -= e / 100, t.l = dE(t.l), xr(t); + return t.l -= e / 100, t.l = fE(t.l), xr(t); } -function nse(r, e) { +function ise(r, e) { var t = xr(r).toHsl(), n = (t.h + e) % 360; return t.h = n < 0 ? 360 + n : n, xr(t); } -function ise(r) { +function ase(r) { var e = xr(r).toHsl(); return e.h = (e.h + 180) % 360, xr(e); } @@ -73883,17 +73895,17 @@ function vB(r, e) { for (var t = xr(r).toHsl(), n = [xr(r)], i = 360 / e, a = 1; a < e; a++) n.push(xr({ h: (t.h + a * i) % 360, s: t.s, l: t.l })); return n; } -function ase(r) { +function ose(r) { var e = xr(r).toHsl(), t = e.h; return [xr(r), xr({ h: (t + 72) % 360, s: e.s, l: e.l }), xr({ h: (t + 216) % 360, s: e.s, l: e.l })]; } -function ose(r, e, t) { +function sse(r, e, t) { e = e || 6, t = t || 30; var n = xr(r).toHsl(), i = 360 / t, a = [xr(r)]; for (n.h = (n.h - (i * e >> 1) + 720) % 360; --e; ) n.h = (n.h + i) % 360, a.push(xr(n)); return a; } -function sse(r, e) { +function use(r, e) { e = e || 6; for (var t = xr(r).toHsv(), n = t.h, i = t.s, a = t.v, o = [], s = 1 / e; e--; ) o.push(xr({ h: n, s: i, v: a })), a = (a + s) % 1; return o; @@ -73950,7 +73962,7 @@ xr.prototype = { isDark: function() { }, toPercentageRgbString: function() { return this._a == 1 ? "rgb(" + Math.round(100 * Da(this._r, 255)) + "%, " + Math.round(100 * Da(this._g, 255)) + "%, " + Math.round(100 * Da(this._b, 255)) + "%)" : "rgba(" + Math.round(100 * Da(this._r, 255)) + "%, " + Math.round(100 * Da(this._g, 255)) + "%, " + Math.round(100 * Da(this._b, 255)) + "%, " + this._roundA + ")"; }, toName: function() { - return this._a === 0 ? "transparent" : !(this._a < 1) && (use[dB(this._r, this._g, this._b, !0)] || !1); + return this._a === 0 ? "transparent" : !(this._a < 1) && (lse[dB(this._r, this._g, this._b, !0)] || !1); }, toFilter: function(r) { var e = "#" + hB(this._r, this._g, this._b, this._a), t = e, n = this._gradientType ? "GradientType = 1, " : ""; if (r) { @@ -73969,29 +73981,29 @@ xr.prototype = { isDark: function() { var t = r.apply(null, [this].concat([].slice.call(e))); return this._r = t._r, this._g = t._g, this._b = t._b, this.setAlpha(t._a), this; }, lighten: function() { - return this._applyModification(ese, arguments); -}, brighten: function() { return this._applyModification(tse, arguments); -}, darken: function() { +}, brighten: function() { return this._applyModification(rse, arguments); +}, darken: function() { + return this._applyModification(nse, arguments); }, desaturate: function() { - return this._applyModification(Zoe, arguments); -}, saturate: function() { return this._applyModification(Qoe, arguments); -}, greyscale: function() { +}, saturate: function() { return this._applyModification(Joe, arguments); +}, greyscale: function() { + return this._applyModification(ese, arguments); }, spin: function() { - return this._applyModification(nse, arguments); + return this._applyModification(ise, arguments); }, _applyCombination: function(r, e) { return r.apply(null, [this].concat([].slice.call(e))); }, analogous: function() { - return this._applyCombination(ose, arguments); + return this._applyCombination(sse, arguments); }, complement: function() { - return this._applyCombination(ise, arguments); + return this._applyCombination(ase, arguments); }, monochromatic: function() { - return this._applyCombination(sse, arguments); + return this._applyCombination(use, arguments); }, splitcomplement: function() { - return this._applyCombination(ase, arguments); + return this._applyCombination(ose, arguments); }, triad: function() { return this._applyCombination(vB, [3]); }, tetrad: function() { @@ -74034,11 +74046,11 @@ xr.prototype = { isDark: function() { for (var l = 0; l < e.length; l++) (n = xr.readability(r, e[l])) > u && (u = n, s = xr(e[l])); return xr.isReadable(r, s, { level: a, size: o }) || !i ? s : (t.includeFallbackColors = !1, xr.mostReadable(r, ["#fff", "#000"], t)); }; -var t5 = xr.names = { aliceblue: "f0f8ff", antiquewhite: "faebd7", aqua: "0ff", aquamarine: "7fffd4", azure: "f0ffff", beige: "f5f5dc", bisque: "ffe4c4", black: "000", blanchedalmond: "ffebcd", blue: "00f", blueviolet: "8a2be2", brown: "a52a2a", burlywood: "deb887", burntsienna: "ea7e5d", cadetblue: "5f9ea0", chartreuse: "7fff00", chocolate: "d2691e", coral: "ff7f50", cornflowerblue: "6495ed", cornsilk: "fff8dc", crimson: "dc143c", cyan: "0ff", darkblue: "00008b", darkcyan: "008b8b", darkgoldenrod: "b8860b", darkgray: "a9a9a9", darkgreen: "006400", darkgrey: "a9a9a9", darkkhaki: "bdb76b", darkmagenta: "8b008b", darkolivegreen: "556b2f", darkorange: "ff8c00", darkorchid: "9932cc", darkred: "8b0000", darksalmon: "e9967a", darkseagreen: "8fbc8f", darkslateblue: "483d8b", darkslategray: "2f4f4f", darkslategrey: "2f4f4f", darkturquoise: "00ced1", darkviolet: "9400d3", deeppink: "ff1493", deepskyblue: "00bfff", dimgray: "696969", dimgrey: "696969", dodgerblue: "1e90ff", firebrick: "b22222", floralwhite: "fffaf0", forestgreen: "228b22", fuchsia: "f0f", gainsboro: "dcdcdc", ghostwhite: "f8f8ff", gold: "ffd700", goldenrod: "daa520", gray: "808080", green: "008000", greenyellow: "adff2f", grey: "808080", honeydew: "f0fff0", hotpink: "ff69b4", indianred: "cd5c5c", indigo: "4b0082", ivory: "fffff0", khaki: "f0e68c", lavender: "e6e6fa", lavenderblush: "fff0f5", lawngreen: "7cfc00", lemonchiffon: "fffacd", lightblue: "add8e6", lightcoral: "f08080", lightcyan: "e0ffff", lightgoldenrodyellow: "fafad2", lightgray: "d3d3d3", lightgreen: "90ee90", lightgrey: "d3d3d3", lightpink: "ffb6c1", lightsalmon: "ffa07a", lightseagreen: "20b2aa", lightskyblue: "87cefa", lightslategray: "789", lightslategrey: "789", lightsteelblue: "b0c4de", lightyellow: "ffffe0", lime: "0f0", limegreen: "32cd32", linen: "faf0e6", magenta: "f0f", maroon: "800000", mediumaquamarine: "66cdaa", mediumblue: "0000cd", mediumorchid: "ba55d3", mediumpurple: "9370db", mediumseagreen: "3cb371", mediumslateblue: "7b68ee", mediumspringgreen: "00fa9a", mediumturquoise: "48d1cc", mediumvioletred: "c71585", midnightblue: "191970", mintcream: "f5fffa", mistyrose: "ffe4e1", moccasin: "ffe4b5", navajowhite: "ffdead", navy: "000080", oldlace: "fdf5e6", olive: "808000", olivedrab: "6b8e23", orange: "ffa500", orangered: "ff4500", orchid: "da70d6", palegoldenrod: "eee8aa", palegreen: "98fb98", paleturquoise: "afeeee", palevioletred: "db7093", papayawhip: "ffefd5", peachpuff: "ffdab9", peru: "cd853f", pink: "ffc0cb", plum: "dda0dd", powderblue: "b0e0e6", purple: "800080", rebeccapurple: "663399", red: "f00", rosybrown: "bc8f8f", royalblue: "4169e1", saddlebrown: "8b4513", salmon: "fa8072", sandybrown: "f4a460", seagreen: "2e8b57", seashell: "fff5ee", sienna: "a0522d", silver: "c0c0c0", skyblue: "87ceeb", slateblue: "6a5acd", slategray: "708090", slategrey: "708090", snow: "fffafa", springgreen: "00ff7f", steelblue: "4682b4", tan: "d2b48c", teal: "008080", thistle: "d8bfd8", tomato: "ff6347", turquoise: "40e0d0", violet: "ee82ee", wheat: "f5deb3", white: "fff", whitesmoke: "f5f5f5", yellow: "ff0", yellowgreen: "9acd32" }, use = xr.hexNames = (function(r) { +var e5 = xr.names = { aliceblue: "f0f8ff", antiquewhite: "faebd7", aqua: "0ff", aquamarine: "7fffd4", azure: "f0ffff", beige: "f5f5dc", bisque: "ffe4c4", black: "000", blanchedalmond: "ffebcd", blue: "00f", blueviolet: "8a2be2", brown: "a52a2a", burlywood: "deb887", burntsienna: "ea7e5d", cadetblue: "5f9ea0", chartreuse: "7fff00", chocolate: "d2691e", coral: "ff7f50", cornflowerblue: "6495ed", cornsilk: "fff8dc", crimson: "dc143c", cyan: "0ff", darkblue: "00008b", darkcyan: "008b8b", darkgoldenrod: "b8860b", darkgray: "a9a9a9", darkgreen: "006400", darkgrey: "a9a9a9", darkkhaki: "bdb76b", darkmagenta: "8b008b", darkolivegreen: "556b2f", darkorange: "ff8c00", darkorchid: "9932cc", darkred: "8b0000", darksalmon: "e9967a", darkseagreen: "8fbc8f", darkslateblue: "483d8b", darkslategray: "2f4f4f", darkslategrey: "2f4f4f", darkturquoise: "00ced1", darkviolet: "9400d3", deeppink: "ff1493", deepskyblue: "00bfff", dimgray: "696969", dimgrey: "696969", dodgerblue: "1e90ff", firebrick: "b22222", floralwhite: "fffaf0", forestgreen: "228b22", fuchsia: "f0f", gainsboro: "dcdcdc", ghostwhite: "f8f8ff", gold: "ffd700", goldenrod: "daa520", gray: "808080", green: "008000", greenyellow: "adff2f", grey: "808080", honeydew: "f0fff0", hotpink: "ff69b4", indianred: "cd5c5c", indigo: "4b0082", ivory: "fffff0", khaki: "f0e68c", lavender: "e6e6fa", lavenderblush: "fff0f5", lawngreen: "7cfc00", lemonchiffon: "fffacd", lightblue: "add8e6", lightcoral: "f08080", lightcyan: "e0ffff", lightgoldenrodyellow: "fafad2", lightgray: "d3d3d3", lightgreen: "90ee90", lightgrey: "d3d3d3", lightpink: "ffb6c1", lightsalmon: "ffa07a", lightseagreen: "20b2aa", lightskyblue: "87cefa", lightslategray: "789", lightslategrey: "789", lightsteelblue: "b0c4de", lightyellow: "ffffe0", lime: "0f0", limegreen: "32cd32", linen: "faf0e6", magenta: "f0f", maroon: "800000", mediumaquamarine: "66cdaa", mediumblue: "0000cd", mediumorchid: "ba55d3", mediumpurple: "9370db", mediumseagreen: "3cb371", mediumslateblue: "7b68ee", mediumspringgreen: "00fa9a", mediumturquoise: "48d1cc", mediumvioletred: "c71585", midnightblue: "191970", mintcream: "f5fffa", mistyrose: "ffe4e1", moccasin: "ffe4b5", navajowhite: "ffdead", navy: "000080", oldlace: "fdf5e6", olive: "808000", olivedrab: "6b8e23", orange: "ffa500", orangered: "ff4500", orchid: "da70d6", palegoldenrod: "eee8aa", palegreen: "98fb98", paleturquoise: "afeeee", palevioletred: "db7093", papayawhip: "ffefd5", peachpuff: "ffdab9", peru: "cd853f", pink: "ffc0cb", plum: "dda0dd", powderblue: "b0e0e6", purple: "800080", rebeccapurple: "663399", red: "f00", rosybrown: "bc8f8f", royalblue: "4169e1", saddlebrown: "8b4513", salmon: "fa8072", sandybrown: "f4a460", seagreen: "2e8b57", seashell: "fff5ee", sienna: "a0522d", silver: "c0c0c0", skyblue: "87ceeb", slateblue: "6a5acd", slategray: "708090", slategrey: "708090", snow: "fffafa", springgreen: "00ff7f", steelblue: "4682b4", tan: "d2b48c", teal: "008080", thistle: "d8bfd8", tomato: "ff6347", turquoise: "40e0d0", violet: "ee82ee", wheat: "f5deb3", white: "fff", whitesmoke: "f5f5f5", yellow: "ff0", yellowgreen: "9acd32" }, lse = xr.hexNames = (function(r) { var e = {}; for (var t in r) r.hasOwnProperty(t) && (e[r[t]] = t); return e; -})(t5); +})(e5); function jq(r) { return r = parseFloat(r), (isNaN(r) || r < 0 || r > 1) && (r = 1), r; } @@ -74051,7 +74063,7 @@ function Da(r, e) { })(r); return r = Math.min(e, Math.max(0, parseFloat(r))), t && (r = parseInt(r * e, 10) / 100), Math.abs(r - e) < 1e-6 ? 1 : r % e / parseFloat(e); } -function dE(r) { +function fE(r) { return Math.min(1, Math.max(0, r)); } function ef(r) { @@ -74073,7 +74085,7 @@ var np, Mw, Dw, _d = (Mw = "[\\s|\\(]+(" + (np = "(?:[-\\+]?\\d*\\.\\d+%?)|(?:[- function nv(r) { return !!_d.CSS_UNIT.exec(r); } -var r5 = function(r) { +var t5 = function(r) { return xr.mostReadable(r, [qD, "#FFFFFF"]).toString(); }, I1 = function(r) { return Lq().get.rgb(r); @@ -74083,7 +74095,7 @@ var r5 = function(r) { }, Iw = function(r) { return [(e = I1(r))[0] / 255, e[1] / 255, e[2] / 255]; var e; -}, gB = { selected: { rings: [{ widthFactor: 0.05, color: lq }, { widthFactor: 0.1, color: cq }], shadow: { width: 10, opacity: 1, color: uq } }, default: { rings: [] } }, yB = { selected: { rings: [{ color: lq, width: 2 }, { color: cq, width: 4 }], shadow: { width: 18, opacity: 1, color: uq } }, default: { rings: [] } }, OP = 0.75, TP = { noPan: !1, outOnly: !1, animated: !0 }; +}, gB = { selected: { rings: [{ widthFactor: 0.05, color: lq }, { widthFactor: 0.1, color: cq }], shadow: { width: 10, opacity: 1, color: uq } }, default: { rings: [] } }, yB = { selected: { rings: [{ color: lq, width: 2 }, { color: cq, width: 4 }], shadow: { width: 18, opacity: 1, color: uq } }, default: { rings: [] } }, SP = 0.75, OP = { noPan: !1, outOnly: !1, animated: !0 }; function Hb(r) { return Hb = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) { return typeof e; @@ -74091,7 +74103,7 @@ function Hb(r) { return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e; }, Hb(r); } -function CP(r, e) { +function TP(r, e) { (e == null || e > r.length) && (e = r.length); for (var t = 0, n = Array(e); t < e; t++) n[t] = r[t]; return n; @@ -74106,18 +74118,18 @@ function mB(r, e) { } return t; } -function AP(r) { +function CP(r) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e] != null ? arguments[e] : {}; e % 2 ? mB(Object(t), !0).forEach(function(n) { - lse(r, n, t[n]); + cse(r, n, t[n]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(r, Object.getOwnPropertyDescriptors(t)) : mB(Object(t)).forEach(function(n) { Object.defineProperty(r, n, Object.getOwnPropertyDescriptor(t, n)); }); } return r; } -function lse(r, e, t) { +function cse(r, e, t) { return (e = (function(n) { var i = (function(a) { if (Hb(a) != "object" || !a) return a; @@ -74132,7 +74144,7 @@ function lse(r, e, t) { return Hb(i) == "symbol" ? i : i + ""; })(e)) in r ? Object.defineProperty(r, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : r[e] = t, r; } -var n5, Jx = function(r) { +var r5, Jx = function(r) { return r.captions && r.captions.length > 0 ? r.captions : r.caption && r.caption.length > 0 ? [{ value: r.caption }] : []; }, ip = function(r, e, t) { (0, Hi.isNil)(r) || ((function(n) { @@ -74142,14 +74154,14 @@ var n5, Jx = function(r) { var n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : $n(); r.width = e * n, r.height = t * n, r.style.width = "".concat(e, "px"), r.style.height = "".concat(t, "px"); }, Uq = function(r) { - bi.warn("Error: WebGL context lost - visualization will stop working!", r), n5 !== void 0 && n5(r); + bi.warn("Error: WebGL context lost - visualization will stop working!", r), r5 !== void 0 && r5(r); }, fx = function(r) { var e = r.parentElement, t = e.getBoundingClientRect(), n = t.width, i = t.height; n !== 0 || i !== 0 || e.isConnected || (n = parseInt(e.style.width, 10) || 0, i = parseInt(e.style.height, 10) || 0), Fq(r, n, i); -}, RP = function(r, e) { +}, AP = function(r, e) { var t = document.createElement("canvas"); - return Object.assign(t.style, BM), r !== void 0 && (r.appendChild(t), fx(t)), (function(n, i) { - n5 = i, n.addEventListener("webglcontextlost", Uq); + return Object.assign(t.style, jM), r !== void 0 && (r.appendChild(t), fx(t)), (function(n, i) { + r5 = i, n.addEventListener("webglcontextlost", Uq); })(t, e), t; }, om = function(r) { r.width = 0, r.height = 0, r.remove(); @@ -74162,9 +74174,9 @@ var n5, Jx = function(r) { r.canvas.removeEventListener("webglcontextlost", Uq); var e = r.getExtension("WEBGL_lose_context"); e == null || e.loseContext(); -}, i5 = /* @__PURE__ */ new Map(), Tb = function(r, e) { - var t = r.font, n = i5.get(t); - n === void 0 && (n = /* @__PURE__ */ new Map(), i5.set(t, n)); +}, n5 = /* @__PURE__ */ new Map(), Tb = function(r, e) { + var t = r.font, n = n5.get(t); + n === void 0 && (n = /* @__PURE__ */ new Map(), n5.set(t, n)); var i = n.get(e); return i === void 0 && (i = r.measureText(e).width, n.set(e, i)), i; }; @@ -74185,7 +74197,7 @@ function wB(r, e) { } return t; } -function cse(r, e) { +function fse(r, e) { for (var t = 0; t < e.length; t++) { var n = e[t]; n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(r, zq(n.key), n); @@ -74207,10 +74219,10 @@ function zq(r) { })(r); return Wb(e) == "symbol" ? e : e + ""; } -var a5 = function(r) { +var i5 = function(r) { return (0, Hi.isFinite)(r.x) && (0, Hi.isFinite)(r.y); }, N1 = function(r, e) { - return a5(r) && a5(e); + return i5(r) && i5(e); }, Nw = function(r, e) { if (r === void 0 || e === void 0 || !N1(r, e)) return !1; var t = e.x - r.x, n = e.y - r.y, i = $n(); @@ -74230,7 +74242,7 @@ var a5 = function(r) { return { x: t.x / n, y: t.y / n }; } }, { key: "getUnitNormalVector", value: function() { return { x: this.unit.y, y: -this.unit.x }; - } }], e && cse(r.prototype, e), Object.defineProperty(r, "prototype", { writable: !1 }), r; + } }], e && fse(r.prototype, e), Object.defineProperty(r, "prototype", { writable: !1 }), r; var r, e; })(), YD = function(r, e, t) { var n = { x: e.x - r.x, y: e.y - r.y }, i = (function(l, c) { @@ -74238,11 +74250,11 @@ var a5 = function(r) { return (0, Hi.clamp)(f, 0, 1); })({ x: t.x - r.x, y: t.y - r.y }, n), a = r.x + i * n.x, o = r.y + i * n.y, s = a - t.x, u = o - t.y; return Math.sqrt(s * s + u * u); -}, fse = function(r, e, t, n) { +}, dse = function(r, e, t, n) { if (e.x === t.x && e.y === t.y) return e; var i = e.y - r.y, a = r.x - e.x, o = i * r.x + a * r.y, s = n.y - t.y, u = t.x - n.x, l = s * t.x + u * t.y, c = i * u - s * a; return c === 0 ? null : { x: (u * o - a * l) / c, y: (i * l - s * o) / c }; -}, PP = function(r, e, t, n) { +}, RP = function(r, e, t, n) { var i, a, o, s = 1e9, u = (function(c) { for (var f = 1; f < arguments.length; f++) { var d = arguments[f] != null ? arguments[f] : {}; @@ -74264,7 +74276,7 @@ function Yb(r) { return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e; }, Yb(r); } -function dse(r, e) { +function hse(r, e) { for (var t = 0; t < e.length; t++) { var n = e[t]; n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(r, qq(n.key), n); @@ -74283,7 +74295,7 @@ function qq(r) { })(r); return Yb(e) == "symbol" ? e : e + ""; } -var Pf = 64, hse = (function() { +var Pf = 64, vse = (function() { return r = function t() { var n, i, a; (function(o, s) { @@ -74330,10 +74342,10 @@ var Pf = 64, hse = (function() { }, s = 0, u = ["image", "inverted"]; s < u.length; s++) o(); return t.length > 0 ? Promise.all(t).then(function() { }) : Promise.resolve(); - } }], e && dse(r.prototype, e), Object.defineProperty(r, "prototype", { writable: !1 }), r; + } }], e && hse(r.prototype, e), Object.defineProperty(r, "prototype", { writable: !1 }), r; var r, e; })(); -const vse = hse; +const pse = vse; function Xb(r) { return Xb = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) { return typeof e; @@ -74343,17 +74355,17 @@ function Xb(r) { } function xB(r, e) { if (r) { - if (typeof r == "string") return o5(r, e); + if (typeof r == "string") return a5(r, e); var t = {}.toString.call(r).slice(8, -1); - return t === "Object" && r.constructor && (t = r.constructor.name), t === "Map" || t === "Set" ? Array.from(r) : t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? o5(r, e) : void 0; + return t === "Object" && r.constructor && (t = r.constructor.name), t === "Map" || t === "Set" ? Array.from(r) : t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? a5(r, e) : void 0; } } -function o5(r, e) { +function a5(r, e) { (e == null || e > r.length) && (e = r.length); for (var t = 0, n = Array(e); t < e; t++) n[t] = r[t]; return n; } -function pse(r, e) { +function gse(r, e) { for (var t = 0; t < e.length; t++) { var n = e[t]; n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(r, Gq(n.key), n); @@ -74375,7 +74387,7 @@ function Gq(r) { })(r); return Xb(e) == "symbol" ? e : e + ""; } -var gse = (function() { +var yse = (function() { return r = function t(n, i, a) { (function(o, s) { if (!(o instanceof s)) throw new TypeError("Cannot call a class as a function"); @@ -74428,7 +74440,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho }); return Math.max.apply(Math, (function(n) { return (function(i) { - if (Array.isArray(i)) return o5(i); + if (Array.isArray(i)) return a5(i); })(n) || (function(i) { if (typeof Symbol < "u" && i[Symbol.iterator] != null || i["@@iterator"] != null) return Array.from(i); })(n) || xB(n) || (function() { @@ -74449,9 +74461,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho this.waypointPath = t; } }, { key: "setAngles", value: function(t) { this.angles = t; - } }], e && pse(r.prototype, e), Object.defineProperty(r, "prototype", { writable: !1 }), r; + } }], e && gse(r.prototype, e), Object.defineProperty(r, "prototype", { writable: !1 }), r; var r, e; -})(), EB = oq, SB = 2 * Math.PI / 50, OB = 0.1 * Math.PI, hE = 1.5, s5 = wb; +})(), EB = oq, SB = 2 * Math.PI / 50, OB = 0.1 * Math.PI, dE = 1.5, o5 = wb; function $b(r) { return $b = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) { return typeof e; @@ -74493,7 +74505,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } function CB(r) { return (function(e) { - if (Array.isArray(e)) return u5(e); + if (Array.isArray(e)) return s5(e); })(r) || (function(e) { if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e); })(r) || Vq(r) || (function() { @@ -74503,17 +74515,17 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } function Vq(r, e) { if (r) { - if (typeof r == "string") return u5(r, e); + if (typeof r == "string") return s5(r, e); var t = {}.toString.call(r).slice(8, -1); - return t === "Object" && r.constructor && (t = r.constructor.name), t === "Map" || t === "Set" ? Array.from(r) : t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? u5(r, e) : void 0; + return t === "Object" && r.constructor && (t = r.constructor.name), t === "Map" || t === "Set" ? Array.from(r) : t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? s5(r, e) : void 0; } } -function u5(r, e) { +function s5(r, e) { (e == null || e > r.length) && (e = r.length); for (var t = 0, n = Array(e); t < e; t++) n[t] = r[t]; return n; } -function yse(r, e) { +function mse(r, e) { for (var t = 0; t < e.length; t++) { var n = e[t]; n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(r, Hq(n.key), n); @@ -74535,7 +74547,7 @@ function Hq(r) { })(r); return $b(e) == "symbol" ? e : e + ""; } -var mse = function(r) { +var bse = function(r) { var e = []; if (r.length === 0) e.push({ size: 2 * Math.PI, start: 0 }); else { @@ -74548,12 +74560,12 @@ var mse = function(r) { }); } return e; -}, bse = function(r, e) { +}, _se = function(r, e) { for (; e > r.length || r[0].size > 2 * r[e - 1].size; ) r.push({ size: r[0].size / 2, start: r[0].start }), r.push({ size: r[0].size / 2, start: r[0].start + r[0].size / 2 }), r.shift(), r.sort(function(t, n) { return n.size - t.size; }); return r; -}, _se = (function() { +}, wse = (function() { return r = function t(n, i) { (function(o, s) { if (!(o instanceof s)) throw new TypeError("Cannot call a class as a function"); @@ -74564,7 +74576,7 @@ var mse = function(r) { this.updateData(a, {}, {}, i); }, e = [{ key: "getBundle", value: function(t) { var n = this.bundles, i = this.nodeToBundles, a = this.generatePairId(t.from, t.to), o = n[a]; - return o === void 0 && (o = new gse(a, t.from, t.to), n[a] = o, i[t.from] === void 0 && (i[t.from] = []), i[t.to] === void 0 && (i[t.to] = []), i[t.from].push(o), i[t.to].push(o)), o; + return o === void 0 && (o = new yse(a, t.from, t.to), n[a] = o, i[t.from] === void 0 && (i[t.from] = []), i[t.to] === void 0 && (i[t.to] = []), i[t.from].push(o), i[t.to].push(o)), o; } }, { key: "updateData", value: function(t, n, i, a) { var o, s = this.bundles, u = this.nodeToBundles, l = function(S, O) { var E = u[O].findIndex(function(T) { @@ -74617,8 +74629,8 @@ var mse = function(r) { } var S = d.map(function(T) { return (T + 2 * Math.PI) % (2 * Math.PI); - }).sort(), O = mse(S); - bse(O, l.size()); + }).sort(), O = bse(S); + _se(O, l.size()); var E = O.map(function(T) { return T.start + T.size / 2; }).slice(0, l.size()); @@ -74630,7 +74642,7 @@ var mse = function(r) { return [t.toString(), n.toString()].sort(function(i, a) { return i.localeCompare(a); }).join("-"); - } }], e && yse(r.prototype, e), Object.defineProperty(r, "prototype", { writable: !1 }), r; + } }], e && mse(r.prototype, e), Object.defineProperty(r, "prototype", { writable: !1 }), r; var r, e; })(), rb = function(r, e) { return { x: r.x + e.x, y: r.y + e.y }; @@ -74638,7 +74650,7 @@ var mse = function(r) { return { x: r.x - e.x, y: r.y - e.y }; }, sm = function(r, e) { return { x: r.x * e, y: r.y * e }; -}, wse = function(r, e) { +}, xse = function(r, e) { return r.x * e.x + r.y * e.y; }, e2 = function(r, e) { return (function(t) { @@ -74650,7 +74662,7 @@ function RB(r, e) { for (var t = 0, n = Array(e); t < e; t++) n[t] = r[t]; return n; } -var xse = 2 * Math.PI, t2 = function(r, e, t) { +var Ese = 2 * Math.PI, t2 = function(r, e, t) { var n, i, a, o, s, u, l, c, f = t.indexOf(r), d = (n = t.angles[f]) !== null && n !== void 0 ? n : 0, h = d - OB / 2, p = d + OB / 2, g = $n(), y = ((i = e.size) !== null && i !== void 0 ? i : ha) * g + 4 * g, b = (a = e.x) !== null && a !== void 0 ? a : 0, _ = (o = e.y) !== null && o !== void 0 ? o : 0, m = { x: b + Math.cos(h) * (y + ((s = r.width) !== null && s !== void 0 ? s : 2) / 2), y: _ + Math.sin(h) * (y + ((u = r.width) !== null && u !== void 0 ? u : 2) / 2) }, x = { x: b + Math.cos(p) * (y + ((l = r.width) !== null && l !== void 0 ? l : 2) / 2), y: _ + Math.sin(p) * (y + ((c = r.width) !== null && c !== void 0 ? c : 2) / 2) }, S = { x: b + Math.cos(d) * (y + 35 * g), y: _ + Math.sin(d) * (y + 35 * g) }; return { angle: d, startAngle: h, endAngle: p, startPoint: m, endPoint: x, apexPoint: S, control1Point: { x: S.x + 25 * Math.cos(d - Math.PI / 2) * g / 2, y: S.y + 25 * Math.sin(d - Math.PI / 2) * g / 2 }, control2Point: { x: S.x + 25 * Math.cos(d + Math.PI / 2) * g / 2, y: S.y + 25 * Math.sin(d + Math.PI / 2) * g / 2 }, nodeGap: y }; }, Yq = function(r, e, t, n, i, a, o) { @@ -74658,7 +74670,7 @@ var xse = 2 * Math.PI, t2 = function(r, e, t) { return { x: r.x - Math.cos(f) * (y / 4), y: r.y - Math.sin(f) * (y / 4), angle: (e + u) % l, flip: (e + l) % l < Math.PI }; }, r2 = function() { var r, e; - return ((r = (e = (arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [])[0]) === null || e === void 0 ? void 0 : e.width) !== null && r !== void 0 ? r : 0) * $n() * hE; + return ((r = (e = (arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [])[0]) === null || e === void 0 ? void 0 : e.width) !== null && r !== void 0 ? r : 0) * $n() * dE; }, Xq = function(r, e, t, n, i, a) { var o = arguments.length > 6 && arguments[6] !== void 0 ? arguments[6] : "top"; if (r.length === 0) return { x: 0, y: 0, angle: 0 }; @@ -74687,25 +74699,25 @@ var xse = 2 * Math.PI, t2 = function(r, e, t) { var H = arguments.length > 1 && arguments[1] !== void 0 && arguments[1], q = z.norm.x, W = z.norm.y; return H ? { x: -q, y: -W } : z.norm; }, s = $n(), u = e.indexOf(r), l = (e.size() - 1) / 2, c = u > l, f = Math.abs(u - l), d = i ? 17 * e.maxFontSize() : 8, h = (e.size() - 1) * d * s, p = (function(z, H, q, W, $, J, X) { - var Q, ue = arguments.length > 7 && arguments[7] !== void 0 && arguments[7], re = $n(), ne = z.size(), le = ne > 1, ce = z.relIsOppositeDirection(J), pe = ce ? q : H, fe = ce ? H : q, se = z.waypointPath, de = se == null ? void 0 : se.points, ge = se == null ? void 0 : se.from, Oe = se == null ? void 0 : se.to, ke = Nw(pe, ge) && Nw(fe, Oe) || Nw(fe, ge) && Nw(pe, Oe), Me = ke ? de[1] : null, Ne = ke ? de[de.length - 2] : null, Ce = MB(pe), Y = MB(fe), Z = function(mr, ur) { + var Z, ue = arguments.length > 7 && arguments[7] !== void 0 && arguments[7], re = $n(), ne = z.size(), le = ne > 1, ce = z.relIsOppositeDirection(J), pe = ce ? q : H, fe = ce ? H : q, se = z.waypointPath, de = se == null ? void 0 : se.points, ge = se == null ? void 0 : se.from, Oe = se == null ? void 0 : se.to, ke = Nw(pe, ge) && Nw(fe, Oe) || Nw(fe, ge) && Nw(pe, Oe), De = ke ? de[1] : null, Ne = ke ? de[de.length - 2] : null, Te = MB(pe), Y = MB(fe), Q = function(mr, ur) { return Math.atan2(mr.y - ur.y, mr.x - ur.x); - }, ie = Math.max(Math.PI, xse / (ne / 2)), we = le ? W * ie * (X ? 1 : -1) / ((Q = pe.size) !== null && Q !== void 0 ? Q : ha) : 0, Ee = Z(ke ? Me : fe, pe), De = ke ? Z(fe, Ne) : Ee, Ie = function(mr, ur, sn, Fr) { + }, ie = Math.max(Math.PI, Ese / (ne / 2)), we = le ? W * ie * (X ? 1 : -1) / ((Z = pe.size) !== null && Z !== void 0 ? Z : ha) : 0, Ee = Q(ke ? De : fe, pe), Me = ke ? Q(fe, Ne) : Ee, Ie = function(mr, ur, sn, Fr) { return { x: mr.x + Math.cos(ur) * sn * (Fr ? -1 : 1), y: mr.y + Math.sin(ur) * sn * (Fr ? -1 : 1) }; }, Ye = function(mr, ur) { return Ie(pe, Ee + mr, ur, !1); }, ot = function(mr, ur) { - return Ie(fe, De - mr, ur, !0); + return Ie(fe, Me - mr, ur, !0); }, mt = function(mr, ur) { return { x: mr.x + (ur.x - mr.x) / 2, y: mr.y + (ur.y - mr.y) / 2 }; }, wt = function(mr, ur) { return Math.sqrt((mr.x - ur.x) * (mr.x - ur.x) + (mr.y - ur.y) * (mr.y - ur.y)) * re; - }, Mt = Ye(we, Ce), Dt = ot(we, Y), vt = le ? Ye(0, Ce) : null, tt = le ? ot(0, Y) : null, _e = 200 * re, Ue = []; + }, Mt = Ye(we, Te), Dt = ot(we, Y), vt = le ? Ye(0, Te) : null, tt = le ? ot(0, Y) : null, _e = 200 * re, Ue = []; if (ke) { - var Qe = wt(Mt, Me) < _e; + var Qe = wt(Mt, De) < _e; if (le && !Qe) { - var Ze = mt(vt, Me); - Ue.push(new Hu(Mt, Ze)), Ue.push(new Hu(Ze, Me)); - } else Ue.push(new Hu(Mt, Me)); + var Ze = mt(vt, De); + Ue.push(new Hu(Mt, Ze)), Ue.push(new Hu(Ze, De)); + } else Ue.push(new Hu(Mt, De)); for (var nt = 2; nt < de.length - 1; nt++) Ue.push(new Hu(de[nt - 1], de[nt])); var It = wt(Dt, Ne) < _e; if (le && !It) { @@ -74714,15 +74726,15 @@ var xse = 2 * Math.PI, t2 = function(r, e, t) { } else Ue.push(new Hu(Ne, Dt)); } else { var Lt = le ? wt(vt, tt) : 0; - if (le && Lt > 2 * (30 * re + Math.min(Ce, Y))) if (ue) { - var Rt = PB(pe, fe, Ce, Y, J, z); + if (le && Lt > 2 * (30 * re + Math.min(Te, Y))) if (ue) { + var Rt = PB(pe, fe, Te, Y, J, z); Ue.push(new Hu(Mt, Rt)), Ue.push(new Hu(Rt, Dt)); } else { - var jt = W * $, Yt = 30 + Ce, sr = Math.sqrt(Yt * Yt + jt * jt), Ut = 30 + Y, Rr = Math.sqrt(Ut * Ut + jt * jt), Xt = Ye(0, sr), Vr = ot(0, Rr); + var jt = W * $, Yt = 30 + Te, sr = Math.sqrt(Yt * Yt + jt * jt), Ut = 30 + Y, Rr = Math.sqrt(Ut * Ut + jt * jt), Xt = Ye(0, sr), Vr = ot(0, Rr); Ue.push(new Hu(Mt, Xt)), Ue.push(new Hu(Xt, Vr)), Ue.push(new Hu(Vr, Dt)); } - else if (Lt > (Ce + Y) / 2) { - var Br = PB(pe, fe, Ce, Y, J, z); + else if (Lt > (Te + Y) / 2) { + var Br = PB(pe, fe, Te, Y, J, z); Ue.push(new Hu(Mt, Br)), Ue.push(new Hu(Br, Dt)); } else Ue.push(new Hu(Mt, Dt)); } @@ -74732,13 +74744,13 @@ var xse = 2 * Math.PI, t2 = function(r, e, t) { for (var _ = 1; _ < p.length; _++) if (e.size() === 1) g.push(p[_ - 1].p2); else { var m = p[_ - 1], x = p[_], S = o(m, c), O = o(x, c), E = rb(m.p1, sm(S, h / 2)), T = rb(m.p2, sm(S, h / 2)), P = rb(x.p1, sm(O, h / 2)), I = rb(x.p2, sm(O, h / 2)), k = null; - wse(S, O) < 0.99 && (k = fse(E, T, P, I)); + xse(S, O) < 0.99 && (k = dse(E, T, P, I)); var L = k !== null ? Wq(k, m.p2) : sm(S, h / 2); g.push(rb(m.p2, sm(L, f / l))); } var B = p[p.length - 1], j = o(B, c); return g.push({ x: B.p2.x + j.x, y: B.p2.y + j.y }), e.relIsOppositeDirection(r) ? g.reverse() : g; -}, Ese = function(r, e, t, n) { +}, Sse = function(r, e, t, n) { var i = arguments.length > 4 && arguments[4] !== void 0 && arguments[4], a = arguments.length > 5 && arguments[5] !== void 0 && arguments[5]; return N1(t, n) ? t.id === n.id ? (function(o, s, u) { for (var l = t2(o, s, u), c = { left: 1 / 0, top: 1 / 0, right: -1 / 0, bottom: -1 / 0 }, f = ["startPoint", "endPoint", "apexPoint", "control1Point", "control2Point"], d = 0; d < f.length; d++) { @@ -74798,7 +74810,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho return h; })(r, e, t, n, i, a) : null; }, $q = function(r, e) { - var t, n = r.selected ? hE : 1; + var t, n = r.selected ? dE : 1; return ((t = r.width) !== null && t !== void 0 ? t : e) * n * $n(); }, Kq = function(r, e, t, n, i) { if (r.length < 2) return { tailOffset: null }; @@ -74817,7 +74829,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho return 6 * r * $n(); }, kB = function(r, e, t) { return { widthAlign: e / 2 * r[0], heightAlign: t / 2 * r[1] }; -}, Sse = function(r) { +}, Ose = function(r) { var e = r.x, t = e === void 0 ? 0 : e, n = r.y, i = n === void 0 ? 0 : n, a = r.size, o = a === void 0 ? ha : a; return { top: i - o, left: t - o, right: t + o, bottom: i + o }; }, Qq = function(r, e, t, n) { @@ -74902,7 +74914,7 @@ function LB(r, e) { for (var t = 0, n = Array(e); t < e; t++) n[t] = r[t]; return n; } -function Ose(r, e) { +function Tse(r, e) { for (var t = 0; t < e.length; t++) { var n = e[t]; n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(r, rG(n.key), n); @@ -74929,7 +74941,7 @@ var nG = (function() { var a, o = this, s = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}; (function(u, l) { if (!(u instanceof l)) throw new TypeError("Cannot call a class as a function"); - })(this, t), kf(this, "arrowBundler", void 0), kf(this, "state", void 0), kf(this, "relationshipThreshold", void 0), kf(this, "stateDisposers", void 0), kf(this, "needsRun", void 0), kf(this, "imageCache", void 0), kf(this, "nodeVersion", void 0), kf(this, "relVersion", void 0), kf(this, "waypointVersion", void 0), kf(this, "channelId", void 0), kf(this, "activeNodes", void 0), this.state = n, this.relationshipThreshold = (a = s.relationshipThreshold) !== null && a !== void 0 ? a : 0, this.channelId = i, this.arrowBundler = new _se(n.rels.items, n.waypoints.data), this.stateDisposers = [], this.needsRun = !0, this.imageCache = new vse(), this.nodeVersion = n.nodes.version, this.relVersion = n.rels.version, this.waypointVersion = n.waypoints.counter, this.activeNodes = /* @__PURE__ */ new Set(), this.stateDisposers.push(this.state.autorun(function() { + })(this, t), kf(this, "arrowBundler", void 0), kf(this, "state", void 0), kf(this, "relationshipThreshold", void 0), kf(this, "stateDisposers", void 0), kf(this, "needsRun", void 0), kf(this, "imageCache", void 0), kf(this, "nodeVersion", void 0), kf(this, "relVersion", void 0), kf(this, "waypointVersion", void 0), kf(this, "channelId", void 0), kf(this, "activeNodes", void 0), this.state = n, this.relationshipThreshold = (a = s.relationshipThreshold) !== null && a !== void 0 ? a : 0, this.channelId = i, this.arrowBundler = new wse(n.rels.items, n.waypoints.data), this.stateDisposers = [], this.needsRun = !0, this.imageCache = new pse(), this.nodeVersion = n.nodes.version, this.relVersion = n.rels.version, this.waypointVersion = n.waypoints.counter, this.activeNodes = /* @__PURE__ */ new Set(), this.stateDisposers.push(this.state.autorun(function() { o.state.zoom !== void 0 && (o.needsRun = !0), o.state.panX !== void 0 && (o.needsRun = !0), o.state.panY !== void 0 && (o.needsRun = !0), o.state.nodes.version !== void 0 && (o.needsRun = !0), o.state.rels.version !== void 0 && (o.needsRun = !0), o.state.waypoints.counter > 0 && (o.needsRun = !0), o.state.layout !== void 0 && (o.needsRun = !0); })); }, (e = [{ key: "getRelationshipsToRender", value: function(t, n, i, a) { @@ -74938,7 +74950,7 @@ var nG = (function() { for (m.s(); !(o = m.n()).done; ) { var x = o.value, S = c.getBundle(x), O = Ll(Ll({}, y[x.from]), b[x.from]), E = Ll(Ll({}, y[x.to]), b[x.to]), T = n !== void 0 ? t || n > d || x.captionHtml !== void 0 : t, P = !0; if (i !== void 0 && a !== void 0) { - var I = Ese(x, S, O, E, T, _); + var I = Sse(x, S, O, E, T, _); if (I !== null) { var k, L, B, j, z, H, q = this.isBoundingBoxOffScreen(I, i, a), W = e2({ x: (k = O.x) !== null && k !== void 0 ? k : 0, y: (L = O.y) !== null && L !== void 0 ? L : 0 }, { x: (B = E.x) !== null && B !== void 0 ? B : 0, y: (j = E.y) !== null && j !== void 0 ? j : 0 }), $ = $n(), J = (((z = O.size) !== null && z !== void 0 ? z : ha) + ((H = E.size) !== null && H !== void 0 ? H : ha)) * $, X = O.id !== E.id && J > W; P = !(q || X); @@ -74946,8 +74958,8 @@ var nG = (function() { } P && (x.disabled ? u.push(Ll(Ll({}, x), {}, { fromNode: O, toNode: E, showLabel: T })) : x.selected ? s.push(Ll(Ll({}, x), {}, { fromNode: O, toNode: E, showLabel: T })) : l.push(Ll(Ll({}, x), {}, { fromNode: O, toNode: E, showLabel: T }))); } - } catch (Q) { - m.e(Q); + } catch (Z) { + m.e(Z); } finally { m.f(); } @@ -74958,7 +74970,7 @@ var nG = (function() { for (c.s(); !(a = c.n()).done; ) { var f = a.value, d = !0; if (n !== void 0 && i !== void 0) { - var h = Sse(f); + var h = Ose(f); d = !this.isBoundingBoxOffScreen(h, n, i); } d && (l[f.id].disabled ? o.push(Ll({}, f)) : l[f.id].selected ? s.push(Ll({}, f)) : u.push(Ll({}, f))); @@ -75002,9 +75014,9 @@ var nG = (function() { this.stateDisposers.forEach(function(t) { t(); }), this.state.nodes.removeChannel(this.channelId), this.state.rels.removeChannel(this.channelId); - } }]) && Ose(r.prototype, e), Object.defineProperty(r, "prototype", { writable: !1 }), r; + } }]) && Tse(r.prototype, e), Object.defineProperty(r, "prototype", { writable: !1 }), r; var r, e; -})(), Tse = [[0.04, 1], [100, 2]], i2 = [[0.8, 1.1], [3, 1.6], [8, 2.5]], Cse = [[i2[0][0], 1], [100, 1.25]], Og = function(r, e) { +})(), Cse = [[0.04, 1], [100, 2]], i2 = [[0.8, 1.1], [3, 1.6], [8, 2.5]], Ase = [[i2[0][0], 1], [100, 1.25]], Og = function(r, e) { if (r.includes("rgba")) return r; if (r.includes("rgb")) { var t = r.substr(r.indexOf("(") + 1).replace(")", "").split(","); @@ -75013,7 +75025,7 @@ var nG = (function() { var n = Lq().get.rgb(r); return n === null ? r : "rgba(".concat(n[0], ",").concat(n[1], ",").concat(n[2], ",").concat(e, ")"); }; -function MP(r, e) { +function PP(r, e) { var t = e.find(function(i) { return r < i[0]; }), n = e[e.length - 1][1]; @@ -75022,7 +75034,7 @@ function MP(r, e) { function XD(r, e) { if (!r || !e) return { nodeInfoLevel: 0, fontInfoLevel: 1.25, iconInfoLevel: 1 }; var t = $n(), n = 1600 * t * (1200 * t), i = Math.pow(r, 2) * Math.PI * Math.pow(e, 2) / (n / 100); - return { nodeInfoLevel: MP(i, Tse), fontInfoLevel: MP(i, i2), iconInfoLevel: MP(i, Cse) }; + return { nodeInfoLevel: PP(i, Cse), fontInfoLevel: PP(i, i2), iconInfoLevel: PP(i, Ase) }; } function Zb(r) { return Zb = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) { @@ -75033,7 +75045,7 @@ function Zb(r) { } function nb(r) { return (function(e) { - if (Array.isArray(e)) return l5(e); + if (Array.isArray(e)) return u5(e); })(r) || (function(e) { if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e); })(r) || iG(r) || (function() { @@ -75055,14 +75067,14 @@ function a2(r) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e] != null ? arguments[e] : {}; e % 2 ? jB(Object(t), !0).forEach(function(n) { - Ase(r, n, t[n]); + Rse(r, n, t[n]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(r, Object.getOwnPropertyDescriptors(t)) : jB(Object(t)).forEach(function(n) { Object.defineProperty(r, n, Object.getOwnPropertyDescriptor(t, n)); }); } return r; } -function Ase(r, e, t) { +function Rse(r, e, t) { return (e = (function(n) { var i = (function(a) { if (Zb(a) != "object" || !a) return a; @@ -75079,12 +75091,12 @@ function Ase(r, e, t) { } function iG(r, e) { if (r) { - if (typeof r == "string") return l5(r, e); + if (typeof r == "string") return u5(r, e); var t = {}.toString.call(r).slice(8, -1); - return t === "Object" && r.constructor && (t = r.constructor.name), t === "Map" || t === "Set" ? Array.from(r) : t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? l5(r, e) : void 0; + return t === "Object" && r.constructor && (t = r.constructor.name), t === "Map" || t === "Set" ? Array.from(r) : t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? u5(r, e) : void 0; } } -function l5(r, e) { +function u5(r, e) { (e == null || e > r.length) && (e = r.length); for (var t = 0, n = Array(e); t < e; t++) n[t] = r[t]; return n; @@ -75094,10 +75106,10 @@ var o2 = "…", aG = function(r) { return Math.sqrt(Math.pow(t.x - e.x, 2) + Math.pow(t.y - e.y, 2)); }, BB = function(r) { return !(!r || !isNaN(Number(r)) || r.toLowerCase() === r.toUpperCase()) && r === r.toUpperCase(); -}, Rse = function(r) { +}, Pse = function(r) { var e = r[r.length - 1], t = r[r.length - 2]; return !(!e || !isNaN(Number(e)) || e.toLowerCase() === e.toUpperCase()) && !(!t || !isNaN(Number(t)) || t.toLowerCase() === t.toUpperCase()) && BB(e) && !BB(t); -}, Pse = function(r) { +}, Mse = function(r) { return ` \r\v`.includes(r); }, L1 = function(r, e, t, n) { @@ -75112,7 +75124,7 @@ var o2 = "…", aG = function(r) { for (var m = g, x = function() { return r[m - 1]; }; b > _; ) { - for (m -= 1; Pse(x()); ) m -= 1; + for (m -= 1; Mse(x()); ) m -= 1; if (!(m - u > 1)) { i = "", f = !0, c = !1; break; @@ -75129,7 +75141,7 @@ var o2 = "…", aG = function(r) { var k = E[E.length - (I + 1)]; if (k === " " || k.toLowerCase() === k.toUpperCase()) return { hyphen: !1, cnt: I + 1 }; var L = E.slice(0, E.length - I); - if (Rse(L)) return { hyphen: !1, cnt: I + 1 }; + if (Pse(L)) return { hyphen: !1, cnt: I + 1 }; } return { hyphen: !0, cnt: 1 }; })(i), O = g - S.cnt; @@ -75178,7 +75190,7 @@ function oG(r, e, t) { m === ((n = i2[1]) === null || n === void 0 ? void 0 : n[1]) ? I = 3 : m === ((i = i2[2]) === null || i === void 0 ? void 0 : i[1]) && (I = 4); var k = h === "center" ? 0.7 * _ : 2 * Math.sqrt(Math.pow(_ / 2, 2) - Math.pow(_ / 3, 2)), L = t; L || (L = document.createElement("canvas").getContext("2d")), L.font = "bold ".concat(x, "px ").concat(wb), a = (function(z, H, q, W, $, J, X) { - var Q = (function(fe) { + var Z = (function(fe) { return /[\u0591-\u07FF\uFB1D-\uFDFD\uFE70-\uFEFC]/.test(fe); })(H) ? H.split("").reverse().join("") : H; z.font = "bold ".concat(W, "px ").concat(q).replace(/"/g, ""); @@ -75186,16 +75198,16 @@ function oG(r, e, t) { return Tb(z, fe); }, re = J ? (X < 4 ? ["", ""] : [""]).length : 0, ne = function(fe, se) { return (function(de, ge, Oe) { - var ke = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : "top", Me = 0.98 * Oe, Ne = 0.89 * Oe, Ce = 0.95 * Oe; - return ge === 1 ? Me : ge === 2 ? Ce : ge === 3 && ke === "top" ? de === 0 || de === 2 ? Ne : Me : ge === 4 && ke === "top" ? de === 0 || de === 3 ? 0.78 * Oe : Ce : ge === 5 && ke === "top" ? de === 0 || de === 4 ? 0.65 * Oe : de === 1 || de === 3 ? Ne : Ce : Me; + var ke = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : "top", De = 0.98 * Oe, Ne = 0.89 * Oe, Te = 0.95 * Oe; + return ge === 1 ? De : ge === 2 ? Te : ge === 3 && ke === "top" ? de === 0 || de === 2 ? Ne : De : ge === 4 && ke === "top" ? de === 0 || de === 3 ? 0.78 * Oe : Te : ge === 5 && ke === "top" ? de === 0 || de === 4 ? 0.65 * Oe : de === 1 || de === 3 ? Ne : Te : De; })(fe + re, se + re, $); }, le = 1, ce = [], pe = function() { if ((ce = (function(se, de, ge, Oe) { - var ke, Me = se.split(/\s/g).filter(function(Ie) { + var ke, De = se.split(/\s/g).filter(function(Ie) { return Ie.length > 0; - }), Ne = [], Ce = null, Y = function(Ie) { + }), Ne = [], Te = null, Y = function(Ie) { return de(Ie) > ge(Ne.length, Oe); - }, Z = (function(Ie) { + }, Q = (function(Ie) { var Ye = typeof Symbol < "u" && Ie[Symbol.iterator] || Ie["@@iterator"]; if (!Ye) { if (Array.isArray(Ie) || (Ye = iG(Ie))) { @@ -75226,30 +75238,30 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho if (Dt) throw wt; } } }; - })(Me); + })(De); try { - for (Z.s(); !(ke = Z.n()).done; ) { - var ie = ke.value, we = Ce ? "".concat(Ce, " ").concat(ie) : ie; - if (de(we) < ge(Ne.length, Oe)) Ce = we; + for (Q.s(); !(ke = Q.n()).done; ) { + var ie = ke.value, we = Te ? "".concat(Te, " ").concat(ie) : ie; + if (de(we) < ge(Ne.length, Oe)) Te = we; else { - if (Ce !== null) { - var Ee = Y(Ce); - Ne.push({ text: Ce, overflowed: Ee }); + if (Te !== null) { + var Ee = Y(Te); + Ne.push({ text: Te, overflowed: Ee }); } - if (Ce = ie, Ne.length > Oe) return []; + if (Te = ie, Ne.length > Oe) return []; } } } catch (Ie) { - Z.e(Ie); + Q.e(Ie); } finally { - Z.f(); + Q.f(); } - if (Ce) { - var De = Y(Ce); - Ne.push({ text: Ce, overflowed: De }); + if (Te) { + var Me = Y(Te); + Ne.push({ text: Te, overflowed: Me }); } return Ne.length <= Oe ? Ne : []; - })(Q, ue, ne, le)).length === 0) ce = L1(Q, ue, ne, le, X > le); + })(Z, ue, ne, le)).length === 0) ce = L1(Z, ue, ne, le, X > le); else if (ce.some(function(se) { return se.overflowed; })) { @@ -75283,7 +75295,7 @@ function Jb(r) { return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e; }, Jb(r); } -function Mse(r, e) { +function Dse(r, e) { for (var t = 0; t < e.length; t++) { var n = e[t]; n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(r, sG(n.key), n); @@ -75305,7 +75317,7 @@ function sG(r) { })(r); return Jb(e) == "symbol" ? e : e + ""; } -var Dse = (function() { +var kse = (function() { return r = function t(n, i) { (function(a, o) { if (!(a instanceof o)) throw new TypeError("Cannot call a class as a function"); @@ -75323,7 +75335,7 @@ var Dse = (function() { this.endValue !== t && (t - this.currentValue !== 0 ? (this.currentTime = (/* @__PURE__ */ new Date()).getTime(), this.status = 1, this.startValue = this.currentValue, this.endValue = t, this.startTime = this.currentTime, this.setEndTime(this.startTime + this.duration)) : this.endValue = t); } }, { key: "setEndTime", value: function(t) { this.endTime = Math.max(t, this.startTime); - } }]) && Mse(r.prototype, e), Object.defineProperty(r, "prototype", { writable: !1 }), r; + } }]) && Dse(r.prototype, e), Object.defineProperty(r, "prototype", { writable: !1 }), r; var r, e; })(); function e1(r) { @@ -75354,7 +75366,7 @@ function UB(r) { } return r; } -function kse(r, e) { +function Ise(r, e) { for (var t = 0; t < e.length; t++) { var n = e[t]; n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(r, uG(n.key), n); @@ -75376,7 +75388,7 @@ function uG(r) { })(r); return e1(e) == "symbol" ? e : e + ""; } -var Ise = (function() { +var Nse = (function() { return r = function t() { (function(n, i) { if (!(n instanceof i)) throw new TypeError("Cannot call a class as a function"); @@ -75408,7 +75420,7 @@ var Ise = (function() { } return this.hasNextAnimation = !0, o; } }, { key: "createAnimation", value: function(t, n, i) { - var a, o = new Dse(n, t), s = (a = this.animations.get(n)) !== null && a !== void 0 ? a : {}; + var a, o = new kse(n, t), s = (a = this.animations.get(n)) !== null && a !== void 0 ? a : {}; return this.animations.set(n, UB(UB({}, s), {}, kg({}, i, o))), o; } }, { key: "getById", value: function(t) { return this.animations.get(t); @@ -75418,10 +75430,10 @@ var Ise = (function() { } }, { key: "createSizeAnimation", value: function(t, n, i) { var a, o = this.createAnimation(t, n, i); return o.setDuration((a = this.durations[1]) !== null && a !== void 0 ? a : this.defaultDuration), o; - } }], e && kse(r.prototype, e), Object.defineProperty(r, "prototype", { writable: !1 }), r; + } }], e && Ise(r.prototype, e), Object.defineProperty(r, "prototype", { writable: !1 }), r; var r, e; })(); -function DP(r, e) { +function MP(r, e) { (e == null || e > r.length) && (e = r.length); for (var t = 0, n = Array(e); t < e; t++) n[t] = r[t]; return n; @@ -75441,7 +75453,7 @@ var op = function(r, e, t, n) { } y.closePath(), _ && y.fill(), m && y.stroke(); })(r, p, i, a), r.lineWidth = g.lineWidth, r.strokeStyle = g.strokeStyle, r.fillStyle = g.fillStyle; -}, Nse = function(r, e, t, n, i) { +}, Lse = function(r, e, t, n, i) { var a = n; i.forEach(function(o) { var s = o.width, u = o.color, l = a + s; @@ -75483,7 +75495,7 @@ function GB(r) { function ib(r, e) { var t = typeof Symbol < "u" && r[Symbol.iterator] || r["@@iterator"]; if (!t) { - if (Array.isArray(r) || (t = c5(r)) || e) { + if (Array.isArray(r) || (t = l5(r)) || e) { t && (r = t); var n = 0, i = function() { }; @@ -75512,19 +75524,19 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } } }; } -function c5(r, e) { +function l5(r, e) { if (r) { - if (typeof r == "string") return f5(r, e); + if (typeof r == "string") return c5(r, e); var t = {}.toString.call(r).slice(8, -1); - return t === "Object" && r.constructor && (t = r.constructor.name), t === "Map" || t === "Set" ? Array.from(r) : t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? f5(r, e) : void 0; + return t === "Object" && r.constructor && (t = r.constructor.name), t === "Map" || t === "Set" ? Array.from(r) : t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? c5(r, e) : void 0; } } -function f5(r, e) { +function c5(r, e) { (e == null || e > r.length) && (e = r.length); for (var t = 0, n = Array(e); t < e; t++) n[t] = r[t]; return n; } -function Lse(r, e) { +function jse(r, e) { for (var t = 0; t < e.length; t++) { var n = e[t]; n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(r, fG(n.key), n); @@ -75549,13 +75561,13 @@ function cG() { })(); } function Lw(r, e, t, n) { - var i = d5(Hm(r.prototype), e, t); + var i = f5(Hm(r.prototype), e, t); return 2 & n && typeof i == "function" ? function(a) { return i.apply(t, a); } : i; } -function d5() { - return d5 = typeof Reflect < "u" && Reflect.get ? Reflect.get.bind() : function(r, e, t) { +function f5() { + return f5 = typeof Reflect < "u" && Reflect.get ? Reflect.get.bind() : function(r, e, t) { var n = (function(a, o) { for (; !{}.hasOwnProperty.call(a, o) && (a = Hm(a)) !== null; ) ; return a; @@ -75564,17 +75576,17 @@ function d5() { var i = Object.getOwnPropertyDescriptor(n, e); return i.get ? i.get.call(arguments.length < 3 ? r : t) : i.value; } - }, d5.apply(null, arguments); + }, f5.apply(null, arguments); } function Hm(r) { return Hm = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(e) { return e.__proto__ || Object.getPrototypeOf(e); }, Hm(r); } -function h5(r, e) { - return h5 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, n) { +function d5(r, e) { + return d5 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, n) { return t.__proto__ = n, t; - }, h5(r, e); + }, d5(r, e); } function dm(r, e, t) { return (e = fG(e)) in r ? Object.defineProperty(r, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : r[e] = t, r; @@ -75592,16 +75604,16 @@ function fG(r) { })(r); return Dm(e) == "symbol" ? e : e + ""; } -var kP = "canvasRenderer", jse = (function() { +var DP = "canvasRenderer", Bse = (function() { function r(n, i, a) { var o, s, u, l, c = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {}; return (function(f, d) { if (!(f instanceof d)) throw new TypeError("Cannot call a class as a function"); - })(this, r), s = this, l = [a, kP, c], u = Hm(u = r), dm(o = VB(s, cG() ? Reflect.construct(u, l || [], Hm(s).constructor) : u.apply(s, l)), "canvas", void 0), dm(o, "context", void 0), dm(o, "animationHandler", void 0), dm(o, "ellipsisWidth", void 0), dm(o, "disableArrowShadow", !1), i === null ? VB(o) : (o.canvas = n, o.context = i, a.nodes.addChannel(kP), a.rels.addChannel(kP), o.animationHandler = new Ise(), o.animationHandler.setOptions({ fadeDuration: 150, sizeDuration: 150 }), o.ellipsisWidth = Tb(i, o2), o); + })(this, r), s = this, l = [a, DP, c], u = Hm(u = r), dm(o = VB(s, cG() ? Reflect.construct(u, l || [], Hm(s).constructor) : u.apply(s, l)), "canvas", void 0), dm(o, "context", void 0), dm(o, "animationHandler", void 0), dm(o, "ellipsisWidth", void 0), dm(o, "disableArrowShadow", !1), i === null ? VB(o) : (o.canvas = n, o.context = i, a.nodes.addChannel(DP), a.rels.addChannel(DP), o.animationHandler = new Nse(), o.animationHandler.setOptions({ fadeDuration: 150, sizeDuration: 150 }), o.ellipsisWidth = Tb(i, o2), o); } return (function(n, i) { if (typeof i != "function" && i !== null) throw new TypeError("Super expression must either be null or a function"); - n.prototype = Object.create(i && i.prototype, { constructor: { value: n, writable: !0, configurable: !0 } }), Object.defineProperty(n, "prototype", { writable: !1 }), i && h5(n, i); + n.prototype = Object.create(i && i.prototype, { constructor: { value: n, writable: !0, configurable: !0 } }), Object.defineProperty(n, "prototype", { writable: !1 }), i && d5(n, i); })(r, nG), e = r, t = [{ key: "needsToRun", value: function() { return Lw(r, "needsToRun", this, 3)([]) || this.animationHandler.needsToRun() || this.activeNodes.size > 0; } }, { key: "processUpdates", value: function() { @@ -75613,8 +75625,8 @@ var kP = "canvasRenderer", jse = (function() { } }, { key: "drawNode", value: function(n, i, a, o, s, u, l, c, f) { var d = i.x, h = d === void 0 ? 0 : d, p = i.y, g = p === void 0 ? 0 : p, y = i.size, b = y === void 0 ? ha : y, _ = i.captionAlign, m = _ === void 0 ? "center" : _, x = i.disabled, S = i.activated, O = i.selected, E = i.hovered, T = i.id, P = i.icon, I = i.overlayIcon, k = Jx(i), L = $n(), B = this.getRingStyles(i, o, s), j = B.reduce(function(Xt, Vr) { return Xt + Vr.width; - }, 0), z = b * L, H = 2 * z, q = XD(z, f), W = q.nodeInfoLevel, $ = q.iconInfoLevel, J = i.color || l, X = r5(J), Q = z; - if (j > 0 && (Q = z + j), x) J = u.color, X = u.fontColor; + }, 0), z = b * L, H = 2 * z, q = XD(z, f), W = q.nodeInfoLevel, $ = q.iconInfoLevel, J = i.color || l, X = t5(J), Z = z; + if (j > 0 && (Z = z + j), x) J = u.color, X = u.fontColor; else { var ue; if (S) { @@ -75625,15 +75637,15 @@ var kP = "canvasRenderer", jse = (function() { ge > 0 && (function(Xt, Vr, Br, mr, ur, sn) { var Fr = arguments.length > 6 && arguments[6] !== void 0 ? arguments[6] : 1, un = ur + sn, bn = Xt.createRadialGradient(Vr, Br, ur, Vr, Br, un); bn.addColorStop(0, "transparent"), bn.addColorStop(0.01, Og(mr, 0.5 * Fr)), bn.addColorStop(0.05, Og(mr, 0.5 * Fr)), bn.addColorStop(0.5, Og(mr, 0.12 * Fr)), bn.addColorStop(0.75, Og(mr, 0.03 * Fr)), bn.addColorStop(1, Og(mr, 0)), Xt.fillStyle = bn, lG(Xt, Vr, Br, un), Xt.fill(); - })(n, h, g, se, Q, ge, fe); + })(n, h, g, se, Z, ge, fe); } - zB(n, h, g, J, z), j > 0 && Nse(n, h, g, z, B); + zB(n, h, g, J, z), j > 0 && Lse(n, h, g, z, B); var Oe = !!k.length; if (P) { - var ke = Qq(z, Oe, $, W), Me = W > 0 ? 1 : 0, Ne = Jq(ke, Oe, m, $, W), Ce = Ne.iconXPos, Y = Ne.iconYPos, Z = o.getValueForAnimationName(T, "iconSize", ke), ie = o.getValueForAnimationName(T, "iconXPos", Ce), we = o.getValueForAnimationName(T, "iconYPos", Y), Ee = n.globalAlpha, De = x ? 0.1 : Me; - n.globalAlpha = o.getValueForAnimationName(T, "iconOpacity", De); + var ke = Qq(z, Oe, $, W), De = W > 0 ? 1 : 0, Ne = Jq(ke, Oe, m, $, W), Te = Ne.iconXPos, Y = Ne.iconYPos, Q = o.getValueForAnimationName(T, "iconSize", ke), ie = o.getValueForAnimationName(T, "iconXPos", Te), we = o.getValueForAnimationName(T, "iconYPos", Y), Ee = n.globalAlpha, Me = x ? 0.1 : De; + n.globalAlpha = o.getValueForAnimationName(T, "iconOpacity", Me); var Ie = X === "#ffffff", Ye = a.getImage(P, Ie); - n.drawImage(Ye, h - ie, g - we, Math.floor(Z), Math.floor(Z)), n.globalAlpha = Ee; + n.drawImage(Ye, h - ie, g - we, Math.floor(Q), Math.floor(Q)), n.globalAlpha = Ee; } if (I !== void 0) { var ot, mt, wt, Mt, Dt = eG(H, (ot = I.size) !== null && ot !== void 0 ? ot : 1), vt = (mt = I.position) !== null && mt !== void 0 ? mt : [0, 0], tt = [(wt = vt[0]) !== null && wt !== void 0 ? wt : 0, (Mt = vt[1]) !== null && Mt !== void 0 ? Mt : 0], _e = tG(Dt, z, tt), Ue = _e.iconXPos, Qe = _e.iconYPos, Ze = n.globalAlpha, nt = x ? 0.1 : 1; @@ -75652,14 +75664,14 @@ var kP = "canvasRenderer", jse = (function() { Xt.font = fi; var yn = -Tb(Xt, gn.text) / 2, Jn = gn.text ? (function(_i) { return (function(Ir) { - if (Array.isArray(Ir)) return DP(Ir); + if (Array.isArray(Ir)) return MP(Ir); })(_i) || (function(Ir) { if (typeof Symbol < "u" && Ir[Symbol.iterator] != null || Ir["@@iterator"] != null) return Array.from(Ir); })(_i) || (function(Ir, pa) { if (Ir) { - if (typeof Ir == "string") return DP(Ir, pa); + if (typeof Ir == "string") return MP(Ir, pa); var di = {}.toString.call(Ir).slice(8, -1); - return di === "Object" && Ir.constructor && (di = Ir.constructor.name), di === "Map" || di === "Set" ? Array.from(Ir) : di === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(di) ? DP(Ir, pa) : void 0; + return di === "Object" && Ir.constructor && (di = Ir.constructor.name), di === "Map" || di === "Set" ? Array.from(Ir) : di === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(di) ? MP(Ir, pa) : void 0; } })(_i) || (function() { throw new TypeError(`Invalid attempt to spread non-iterable instance. @@ -75693,11 +75705,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } }, { key: "drawLabel", value: function(n, i, a, o, s, u, l, c) { var f, d = arguments.length > 8 && arguments[8] !== void 0 && arguments[8], h = Math.PI / 2, p = $n(), g = s.selected, y = s.width, b = s.disabled, _ = s.captionAlign, m = _ === void 0 ? "top" : _, x = s.captionSize, S = x === void 0 ? 1 : x, O = Jx(s), E = O.length > 0 ? (f = Qb(O)) === null || f === void 0 ? void 0 : f.fullCaption : ""; if (E !== void 0) { - var T = 6 * S * p, P = s5, I = g === !0 ? "bold" : "normal", k = E; + var T = 6 * S * p, P = o5, I = g === !0 ? "bold" : "normal", k = E; n.fillStyle = b === !0 ? l.fontColor : c, n.font = "".concat(I, " ").concat(T, "px ").concat(P); var L = function(ce) { return Tb(n, ce); - }, B = (y ?? 1) * (g === !0 ? hE : 1), j = L(k); + }, B = (y ?? 1) * (g === !0 ? dE : 1), j = L(k); if (j > o) { var z = L1(k, L, function() { return o; @@ -75706,49 +75718,49 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } var H = Math.cos(a), q = Math.sin(a), W = { x: i.x, y: i.y }, $ = W.x, J = W.y, X = a; d && (X = a - h, $ += 2 * T * H, J += 2 * T * q, X -= h); - var Q = (1 + S) * p, ue = m === "bottom" ? T / 2 + B + Q : -(B + Q); + var Z = (1 + S) * p, ue = m === "bottom" ? T / 2 + B + Z : -(B + Z); n.translate($, J), n.rotate(X), n.fillText(k, -j / 2, ue), n.rotate(-X), n.translate(-$, -J); - var re = 2 * ue * Math.sin(a), ne = 2 * ue * Math.cos(a), le = { position: { x: i.x - re, y: i.y + ne }, rotation: d ? a - Math.PI : a, width: o / p, height: (T + Q) / p }; + var re = 2 * ue * Math.sin(a), ne = 2 * ue * Math.cos(a), le = { position: { x: i.x - re, y: i.y + ne }, rotation: d ? a - Math.PI : a, width: o / p, height: (T + Z) / p }; u.setLabelInfo(s.id, le); } } }, { key: "renderWaypointArrow", value: function(n, i, a, o, s, u, l, c, f, d) { - var h = arguments.length > 10 && arguments[10] !== void 0 ? arguments[10] : EB, p = Math.PI / 2, g = i.overlayIcon, y = i.color, b = i.disabled, _ = i.selected, m = i.width, x = i.hovered, S = i.captionAlign, O = _ === !0, E = b === !0, T = g !== void 0, P = f.rings, I = f.shadow, k = n2(i, s, a, o, l, c), L = $n(), B = $q(i, 1), j = !this.disableArrowShadow && l, z = E ? d.color : y ?? h, H = P[0].width * L, q = P[1].width * L, W = Zq(m, O, P), $ = W.headHeight, J = W.headChinHeight, X = W.headWidth, Q = W.headSelectedAdjustment, ue = W.headPositionOffset, re = e2(k[k.length - 2], k[k.length - 1]), ne = ue, le = Q; - Math.floor(k.length / 2), k.length > 2 && O && re < $ + Q - J && (ne += re, le -= re / 2 + J, k.pop(), Math.floor(k.length / 2)); + var h = arguments.length > 10 && arguments[10] !== void 0 ? arguments[10] : EB, p = Math.PI / 2, g = i.overlayIcon, y = i.color, b = i.disabled, _ = i.selected, m = i.width, x = i.hovered, S = i.captionAlign, O = _ === !0, E = b === !0, T = g !== void 0, P = f.rings, I = f.shadow, k = n2(i, s, a, o, l, c), L = $n(), B = $q(i, 1), j = !this.disableArrowShadow && l, z = E ? d.color : y ?? h, H = P[0].width * L, q = P[1].width * L, W = Zq(m, O, P), $ = W.headHeight, J = W.headChinHeight, X = W.headWidth, Z = W.headSelectedAdjustment, ue = W.headPositionOffset, re = e2(k[k.length - 2], k[k.length - 1]), ne = ue, le = Z; + Math.floor(k.length / 2), k.length > 2 && O && re < $ + Z - J && (ne += re, le -= re / 2 + J, k.pop(), Math.floor(k.length / 2)); var ce, pe, fe = k[k.length - 2], se = k[k.length - 1], de = (ce = fe, pe = se, Math.atan2(pe.y - ce.y, pe.x - ce.x)), ge = { headPosition: { x: se.x + Math.cos(de) * ne, y: se.y + Math.sin(de) * ne }, headAngle: de, headHeight: $, headChinHeight: J, headWidth: X }; Kq(k, O, $, le, P); var Oe, ke = ib(k); try { for (ke.s(); !(Oe = ke.n()).done; ) { - var Me = Oe.value; - Me.x = Math.round(Me.x), Me.y = Math.round(Me.y); + var De = Oe.value; + De.x = Math.round(De.x), De.y = Math.round(De.y); } } catch (jt) { ke.e(jt); } finally { ke.f(); } - var Ne, Ce, Y = l || T ? (function(jt) { + var Ne, Te, Y = l || T ? (function(jt) { return (function(Yt) { - if (Array.isArray(Yt)) return f5(Yt); + if (Array.isArray(Yt)) return c5(Yt); })(jt) || (function(Yt) { if (typeof Symbol < "u" && Yt[Symbol.iterator] != null || Yt["@@iterator"] != null) return Array.from(Yt); - })(jt) || c5(jt) || (function() { + })(jt) || l5(jt) || (function() { throw new TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`); })(); })(k) : null; if (n.save(), O) { - var Z = P[0].color, ie = P[1].color; - j && this.enableShadow(n, I), this.drawSegments(n, k, B + q, ie, c), op(n, q, ie, ge, !1, !0), j && this.disableShadow(n), this.drawSegments(n, k, B + H, Z, c), op(n, H, Z, ge, !1, !0); + var Q = P[0].color, ie = P[1].color; + j && this.enableShadow(n, I), this.drawSegments(n, k, B + q, ie, c), op(n, q, ie, ge, !1, !0), j && this.disableShadow(n), this.drawSegments(n, k, B + H, Q, c), op(n, H, Q, ge, !1, !0); } if (x === !0 && !O && !E) { var we = I.color; j && this.enableShadow(n, I), this.drawSegments(n, k, B, we, c), op(n, B, we, ge), j && this.disableShadow(n); } if (this.drawSegments(n, k, B, z, c), op(n, B, z, ge), l || T) { - var Ee = Xq(Y, a, o, c, O, P, S === "bottom" ? "bottom" : "top"), De = aG(Y); - if (l && this.drawLabel(n, { x: Ee.x, y: Ee.y }, Ee.angle, De, i, s, d, h), T) { - var Ie, Ye, ot = g.position, mt = ot === void 0 ? [0, 0] : ot, wt = g.url, Mt = g.size, Dt = DB(Mt === void 0 ? 1 : Mt), vt = [(Ie = mt[0]) !== null && Ie !== void 0 ? Ie : 0, (Ye = mt[1]) !== null && Ye !== void 0 ? Ye : 0], tt = kB(vt, De, Dt), _e = tt.widthAlign, Ue = tt.heightAlign, Qe = O ? (Ne = Ee.angle + p, Ce = r2(f.rings), { x: Math.cos(Ne) * Ce, y: Math.sin(Ne) * Ce }) : { x: 0, y: 0 }, Ze = mt[1] < 0 ? -1 : 1, nt = Qe.x * Ze, It = Qe.y * Ze, ct = Dt / 2; + var Ee = Xq(Y, a, o, c, O, P, S === "bottom" ? "bottom" : "top"), Me = aG(Y); + if (l && this.drawLabel(n, { x: Ee.x, y: Ee.y }, Ee.angle, Me, i, s, d, h), T) { + var Ie, Ye, ot = g.position, mt = ot === void 0 ? [0, 0] : ot, wt = g.url, Mt = g.size, Dt = DB(Mt === void 0 ? 1 : Mt), vt = [(Ie = mt[0]) !== null && Ie !== void 0 ? Ie : 0, (Ye = mt[1]) !== null && Ye !== void 0 ? Ye : 0], tt = kB(vt, Me, Dt), _e = tt.widthAlign, Ue = tt.heightAlign, Qe = O ? (Ne = Ee.angle + p, Te = r2(f.rings), { x: Math.cos(Ne) * Te, y: Math.sin(Ne) * Te }) : { x: 0, y: 0 }, Ze = mt[1] < 0 ? -1 : 1, nt = Qe.x * Ze, It = Qe.y * Ze, ct = Dt / 2; n.translate(Ee.x, Ee.y), n.rotate(Ee.angle); var Lt = -ct + nt + _e, Rt = -ct + It + Ue; n.drawImage(u.getImage(wt), Lt, Rt, Dt, Dt), n.rotate(-Ee.angle), n.translate(-Ee.x, -Ee.y); @@ -75756,19 +75768,19 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } n.restore(); } }, { key: "renderSelfArrow", value: function(n, i, a, o, s, u, l, c) { - var f = arguments.length > 8 && arguments[8] !== void 0 ? arguments[8] : EB, d = i.overlayIcon, h = i.selected, p = i.width, g = i.hovered, y = i.disabled, b = i.color, _ = t2(i, a, o), m = _.startPoint, x = _.endPoint, S = _.apexPoint, O = _.control1Point, E = _.control2Point, T = l.rings, P = l.shadow, I = $n(), k = T[0].color, L = T[1].color, B = T[0].width * I, j = T[1].width * I, z = 40 * I, H = (p ?? 1) * I, q = !this.disableArrowShadow && u, W = H > 1 ? H / 2 : 1, $ = 9 * W, J = 2 * W, X = 7 * W, Q = h === !0, ue = y === !0, re = d !== void 0, ne = Math.atan2(x.y - E.y, x.x - E.x), le = Q ? B * Math.sqrt(1 + 2 * $ / X * (2 * $ / X)) : 0, ce = { x: x.x - Math.cos(ne) * (0.5 * $ - J + le), y: x.y - Math.sin(ne) * (0.5 * $ - J + le) }, pe = { headPosition: { x: x.x + Math.cos(ne) * (0.5 * $ - J - le), y: x.y + Math.sin(ne) * (0.5 * $ - J - le) }, headAngle: ne, headHeight: $, headChinHeight: J, headWidth: X }; - if (n.save(), n.lineCap = "round", Q && (q && this.enableShadow(n, P), n.lineWidth = H + j, n.strokeStyle = L, this.drawLoop(n, m, ce, S, O, E), op(n, j, L, pe, !1, !0), q && this.disableShadow(n), n.lineWidth = H + B, n.strokeStyle = k, this.drawLoop(n, m, ce, S, O, E), op(n, B, k, pe, !1, !0)), n.lineWidth = H, g === !0 && !Q && !ue) { + var f = arguments.length > 8 && arguments[8] !== void 0 ? arguments[8] : EB, d = i.overlayIcon, h = i.selected, p = i.width, g = i.hovered, y = i.disabled, b = i.color, _ = t2(i, a, o), m = _.startPoint, x = _.endPoint, S = _.apexPoint, O = _.control1Point, E = _.control2Point, T = l.rings, P = l.shadow, I = $n(), k = T[0].color, L = T[1].color, B = T[0].width * I, j = T[1].width * I, z = 40 * I, H = (p ?? 1) * I, q = !this.disableArrowShadow && u, W = H > 1 ? H / 2 : 1, $ = 9 * W, J = 2 * W, X = 7 * W, Z = h === !0, ue = y === !0, re = d !== void 0, ne = Math.atan2(x.y - E.y, x.x - E.x), le = Z ? B * Math.sqrt(1 + 2 * $ / X * (2 * $ / X)) : 0, ce = { x: x.x - Math.cos(ne) * (0.5 * $ - J + le), y: x.y - Math.sin(ne) * (0.5 * $ - J + le) }, pe = { headPosition: { x: x.x + Math.cos(ne) * (0.5 * $ - J - le), y: x.y + Math.sin(ne) * (0.5 * $ - J - le) }, headAngle: ne, headHeight: $, headChinHeight: J, headWidth: X }; + if (n.save(), n.lineCap = "round", Z && (q && this.enableShadow(n, P), n.lineWidth = H + j, n.strokeStyle = L, this.drawLoop(n, m, ce, S, O, E), op(n, j, L, pe, !1, !0), q && this.disableShadow(n), n.lineWidth = H + B, n.strokeStyle = k, this.drawLoop(n, m, ce, S, O, E), op(n, B, k, pe, !1, !0)), n.lineWidth = H, g === !0 && !Z && !ue) { var fe = P.color; q && this.enableShadow(n, P), n.strokeStyle = fe, n.fillStyle = fe, this.drawLoop(n, m, ce, S, O, E), op(n, H, fe, pe), q && this.disableShadow(n); } var se = ue ? c.color : b ?? f; if (n.fillStyle = se, n.strokeStyle = se, this.drawLoop(n, m, ce, S, O, E), op(n, H, se, pe), u || re) { - var de, ge = o.indexOf(i), Oe = (de = o.angles[ge]) !== null && de !== void 0 ? de : 0, ke = Yq(S, Oe, x, E, Q, T, p), Me = ke.x, Ne = ke.y, Ce = ke.angle, Y = ke.flip; - if (u && this.drawLabel(n, { x: Me, y: Ne }, Ce, z, i, o, c, f, Y), re) { - var Z, ie, we = d.position, Ee = we === void 0 ? [0, 0] : we, De = d.url, Ie = d.size, Ye = DB(Ie === void 0 ? 1 : Ie), ot = [(Z = Ee[0]) !== null && Z !== void 0 ? Z : 0, (ie = Ee[1]) !== null && ie !== void 0 ? ie : 0], mt = kB(ot, z, Ye), wt = mt.widthAlign, Mt = mt.heightAlign + (Q ? r2(l.rings) : 0) * (Ee[1] < 0 ? -1 : 1); - n.save(), n.translate(Me, Ne), Y ? (n.rotate(Ce - Math.PI), n.translate(2 * -wt, 2 * -Mt)) : n.rotate(Ce); + var de, ge = o.indexOf(i), Oe = (de = o.angles[ge]) !== null && de !== void 0 ? de : 0, ke = Yq(S, Oe, x, E, Z, T, p), De = ke.x, Ne = ke.y, Te = ke.angle, Y = ke.flip; + if (u && this.drawLabel(n, { x: De, y: Ne }, Te, z, i, o, c, f, Y), re) { + var Q, ie, we = d.position, Ee = we === void 0 ? [0, 0] : we, Me = d.url, Ie = d.size, Ye = DB(Ie === void 0 ? 1 : Ie), ot = [(Q = Ee[0]) !== null && Q !== void 0 ? Q : 0, (ie = Ee[1]) !== null && ie !== void 0 ? ie : 0], mt = kB(ot, z, Ye), wt = mt.widthAlign, Mt = mt.heightAlign + (Z ? r2(l.rings) : 0) * (Ee[1] < 0 ? -1 : 1); + n.save(), n.translate(De, Ne), Y ? (n.rotate(Te - Math.PI), n.translate(2 * -wt, 2 * -Mt)) : n.rotate(Te); var Dt = Ye / 2, vt = -Dt + wt, tt = -Dt + Mt; - n.drawImage(s.getImage(De), vt, tt, Ye, Ye), n.restore(); + n.drawImage(s.getImage(Me), vt, tt, Ye, Ye), n.restore(); } } n.restore(); @@ -75835,16 +75847,16 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho var L = arguments.length > 6 && arguments[6] !== void 0 && arguments[6]; if (!N1(T, P)) return 1 / 0; var B = T === P ? (function(j, z, H, q) { - var W = t2(z, H, q), $ = W.startPoint, J = W.endPoint, X = W.apexPoint, Q = W.control1Point, ue = W.control2Point, re = PP($, X, Q, j), ne = PP(X, J, ue, j); + var W = t2(z, H, q), $ = W.startPoint, J = W.endPoint, X = W.apexPoint, Z = W.control1Point, ue = W.control2Point, re = RP($, X, Z, j), ne = RP(X, J, ue, j); return Math.min(re, ne); })(O, E, T, I) : (function(j, z, H, q, W, $, J) { - var X = n2(z, H, q, W, $, J), Q = 1 / 0; - if (J && X.length === 3) Q = PP(X[0], X[2], X[1], j); + var X = n2(z, H, q, W, $, J), Z = 1 / 0; + if (J && X.length === 3) Z = RP(X[0], X[2], X[1], j); else for (var ue = 1; ue < X.length; ue++) { var re = X[ue - 1], ne = X[ue], le = YD(re, ne, j); - Q = le < Q ? le : Q; + Z = le < Z ? le : Z; } - return Q; + return Z; })(O, E, I, T, P, k, L); return B; })(n, y, _, m, b, h, d !== Zx); @@ -75888,7 +75900,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } return S; } - })(d, h) || c5(d, h) || (function() { + })(d, h) || l5(d, h) || (function() { throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`); })(); @@ -75903,7 +75915,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } }, { key: "zoomAndPan", value: function(n, i) { var a = i.width, o = i.height, s = this.state, u = s.zoom, l = s.panX, c = s.panY; n.translate(-a / 2 * u, -o / 2 * u), n.translate(-l * u, -c * u), n.scale(u, u), n.translate(a / 2 / u, o / 2 / u), n.translate(a / 2, o / 2); - } }], t && Lse(e.prototype, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; + } }], t && jse(e.prototype, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; var e, t; })(); function HB(r, e) { @@ -75911,7 +75923,7 @@ function HB(r, e) { for (var t = 0, n = Array(e); t < e; t++) n[t] = r[t]; return n; } -var Bse = function(r, e) { +var Fse = function(r, e) { e.includes("bold") && e.includes("italic") ? (r.setAttribute("font-weight", "bold"), r.setAttribute("font-style", "italic")) : e.includes("bold") ? r.setAttribute("font-weight", "bold") : e.includes("italic") && r.setAttribute("font-style", "italic"), e.includes("underline") && r.setAttribute("text-decoration", "underline"); }, WB = function(r, e, t, n) { for (var i = [], a = "".concat(r.tip.x, ",").concat(r.tip.y, " ").concat(r.base1.x, ",").concat(r.base1.y, " ").concat(r.base2.x, ",").concat(r.base2.y), o = t.length - 1; o >= 0; o--) { @@ -75920,7 +75932,7 @@ var Bse = function(r, e) { } var l = document.createElementNS("http://www.w3.org/2000/svg", "polygon"); return l.setAttribute("points", a), l.setAttribute("fill", e), i.push(l), i; -}, IP = function(r) { +}, kP = function(r) { var e = r.x, t = r.y, n = r.fontSize, i = r.fontFace, a = r.fontColor, o = r.textAnchor, s = r.dominantBaseline, u = r.lineSpans, l = r.transform, c = r.fontWeight, f = document.createElementNS("http://www.w3.org/2000/svg", "text"); f.setAttribute("x", String(e)), f.setAttribute("y", String(t)), f.setAttribute("text-anchor", o), f.setAttribute("dominant-baseline", s), f.setAttribute("font-size", String(n)), f.setAttribute("font-family", i), f.setAttribute("fill", a), l && f.setAttribute("transform", l), c && f.setAttribute("font-weight", c); var d, h = (function(y, b) { @@ -75964,7 +75976,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho try { for (h.s(); !(d = h.n()).done; ) { var p = d.value, g = document.createElementNS("http://www.w3.org/2000/svg", "tspan"); - g.textContent = p.text, Bse(g, p.style), f.appendChild(g); + g.textContent = p.text, Fse(g, p.style), f.appendChild(g); } } catch (y) { h.e(y); @@ -75982,7 +75994,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho }, XB = function(r, e, t, n) { var i = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : 0.3333333333333333, a = Math.atan2(e.y - r.y, e.x - r.x), o = { x: e.x + Math.cos(a) * (t * i), y: e.y + Math.sin(a) * (t * i) }; return { tip: o, base1: { x: o.x - t * Math.cos(a) + n / 2 * Math.sin(a), y: o.y - t * Math.sin(a) - n / 2 * Math.cos(a) }, base2: { x: o.x - t * Math.cos(a) - n / 2 * Math.sin(a), y: o.y - t * Math.sin(a) + n / 2 * Math.cos(a) }, angle: a }; -}, NP = function(r, e, t) { +}, IP = function(r, e, t) { for (var n = [], i = "", a = "", o = "", s = t, u = 0; u < r.length; u++) { var l, c = r[u], f = ((l = e[s]) !== null && l !== void 0 ? l : []).sort().join(","); u === 0 || f !== i ? (a.length > 0 && n.push({ text: a, style: o }), a = c, o = f, i = f) : a += c, s += 1; @@ -76015,14 +76027,14 @@ function jw(r) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e] != null ? arguments[e] : {}; e % 2 ? KB(Object(t), !0).forEach(function(n) { - y5(r, n, t[n]); + g5(r, n, t[n]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(r, Object.getOwnPropertyDescriptors(t)) : KB(Object(t)).forEach(function(n) { Object.defineProperty(r, n, Object.getOwnPropertyDescriptor(t, n)); }); } return r; } -function LP(r, e) { +function NP(r, e) { var t = typeof Symbol < "u" && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = dG(r)) || e) { @@ -76056,17 +76068,17 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } function dG(r, e) { if (r) { - if (typeof r == "string") return v5(r, e); + if (typeof r == "string") return h5(r, e); var t = {}.toString.call(r).slice(8, -1); - return t === "Object" && r.constructor && (t = r.constructor.name), t === "Map" || t === "Set" ? Array.from(r) : t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? v5(r, e) : void 0; + return t === "Object" && r.constructor && (t = r.constructor.name), t === "Map" || t === "Set" ? Array.from(r) : t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? h5(r, e) : void 0; } } -function v5(r, e) { +function h5(r, e) { (e == null || e > r.length) && (e = r.length); for (var t = 0, n = Array(e); t < e; t++) n[t] = r[t]; return n; } -function Fse(r, e) { +function Use(r, e) { for (var t = 0; t < e.length; t++) { var n = e[t]; n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(r, vG(n.key), n); @@ -76083,13 +76095,13 @@ function hG() { })(); } function ZB(r, e, t, n) { - var i = p5(Wm(r.prototype), e, t); + var i = v5(Wm(r.prototype), e, t); return typeof i == "function" ? function(a) { return i.apply(t, a); } : i; } -function p5() { - return p5 = typeof Reflect < "u" && Reflect.get ? Reflect.get.bind() : function(r, e, t) { +function v5() { + return v5 = typeof Reflect < "u" && Reflect.get ? Reflect.get.bind() : function(r, e, t) { var n = (function(a, o) { for (; !{}.hasOwnProperty.call(a, o) && (a = Wm(a)) !== null; ) ; return a; @@ -76098,19 +76110,19 @@ function p5() { var i = Object.getOwnPropertyDescriptor(n, e); return i.get ? i.get.call(arguments.length < 3 ? r : t) : i.value; } - }, p5.apply(null, arguments); + }, v5.apply(null, arguments); } function Wm(r) { return Wm = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(e) { return e.__proto__ || Object.getPrototypeOf(e); }, Wm(r); } -function g5(r, e) { - return g5 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, n) { +function p5(r, e) { + return p5 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, n) { return t.__proto__ = n, t; - }, g5(r, e); + }, p5(r, e); } -function y5(r, e, t) { +function g5(r, e, t) { return (e = vG(e)) in r ? Object.defineProperty(r, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : r[e] = t, r; } function vG(r) { @@ -76126,12 +76138,12 @@ function vG(r) { })(r); return km(e) == "symbol" ? e : e + ""; } -var jP = "svgRenderer", Use = (function() { +var LP = "svgRenderer", zse = (function() { function r(n, i) { var a, o = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}; (function(u, l) { if (!(u instanceof l)) throw new TypeError("Cannot call a class as a function"); - })(this, r), y5(a = (function(u, l, c) { + })(this, r), g5(a = (function(u, l, c) { return l = Wm(l), (function(f, d) { if (d && (km(d) == "object" || typeof d == "function")) return d; if (d !== void 0) throw new TypeError("Derived constructors may only return object or undefined"); @@ -76140,13 +76152,13 @@ var jP = "svgRenderer", Use = (function() { return h; })(f); })(u, hG() ? Reflect.construct(l, c || [], Wm(u).constructor) : l.apply(u, c)); - })(this, r, [i, jP, o]), "svg", void 0), y5(a, "measurementContext", void 0), a.svg = n; + })(this, r, [i, LP, o]), "svg", void 0), g5(a, "measurementContext", void 0), a.svg = n; var s = document.createElement("canvas"); - return a.measurementContext = s.getContext("2d"), i.nodes.addChannel(jP), i.rels.addChannel(jP), a; + return a.measurementContext = s.getContext("2d"), i.nodes.addChannel(LP), i.rels.addChannel(LP), a; } return (function(n, i) { if (typeof i != "function" && i !== null) throw new TypeError("Super expression must either be null or a function"); - n.prototype = Object.create(i && i.prototype, { constructor: { value: n, writable: !0, configurable: !0 } }), Object.defineProperty(n, "prototype", { writable: !1 }), i && g5(n, i); + n.prototype = Object.create(i && i.prototype, { constructor: { value: n, writable: !0, configurable: !0 } }), Object.defineProperty(n, "prototype", { writable: !1 }), i && p5(n, i); })(r, nG), e = r, t = [{ key: "render", value: function(n, i) { var a, o, s, u = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, l = this.state, c = this.arrowBundler, f = l.layout, d = l.zoom, h = l.panX, p = l.panY, g = l.nodes.idToPosition, y = (a = u.svg) !== null && a !== void 0 ? a : this.svg, b = y.clientWidth || ((o = y.width) === null || o === void 0 || (o = o.baseVal) === null || o === void 0 ? void 0 : o.value) || parseInt(y.getAttribute("width"), 10) || 500, _ = y.clientHeight || ((s = y.height) === null || s === void 0 || (s = s.baseVal) === null || s === void 0 ? void 0 : s.value) || parseInt(y.getAttribute("height"), 10) || 500, m = d, x = h, S = p; for (i && (m = 1, x = i.centerX, S = i.centerY); y.firstChild; ) y.removeChild(y.firstChild); @@ -76162,11 +76174,11 @@ var jP = "svgRenderer", Use = (function() { var P = ZB(r, "getNodesToRender", this)([n]); this.renderNodes(P, E, m), y.appendChild(E), this.needsRun = !1; } }, { key: "renderNodes", value: function(n, i, a) { - var o, s = this, u = this.state, l = u.nodes.idToItem, c = u.disabledItemStyles, f = u.defaultNodeColor, d = u.nodeBorderStyles, h = LP(n); + var o, s = this, u = this.state, l = u.nodes.idToItem, c = u.disabledItemStyles, f = u.defaultNodeColor, d = u.nodeBorderStyles, h = NP(n); try { var p = function() { var g, y, b, _, m = o.value, x = jw(jw({}, l[m.id]), m); - if (!a5(x)) return 1; + if (!i5(x)) return 1; var S = document.createElementNS("http://www.w3.org/2000/svg", "g"); S.setAttribute("class", "node"), S.setAttribute("data-id", x.id); var O = $n(), E = (x.selected ? d.selected.rings : d.default.rings).map(function(Rt) { @@ -76181,7 +76193,7 @@ var jP = "svgRenderer", Use = (function() { P.setAttribute("cx", String((g = x.x) !== null && g !== void 0 ? g : 0)), P.setAttribute("cy", String((y = x.y) !== null && y !== void 0 ? y : 0)), P.setAttribute("r", String(T)); var I = x.disabled ? c.color : x.color || f; if (P.setAttribute("fill", I), S.appendChild(P), E.length > 0) { - var k, L = T, B = LP(E); + var k, L = T, B = NP(E); try { for (B.s(); !(k = B.n()).done; ) { var j = k.value; @@ -76198,23 +76210,23 @@ var jP = "svgRenderer", Use = (function() { B.f(); } } - var W = x.icon, $ = x.overlayIcon, J = T, X = 2 * J, Q = XD(J, a), ue = Q.nodeInfoLevel, re = Q.iconInfoLevel, ne = !!(!((b = x.captions) === null || b === void 0) && b.length || !((_ = x.caption) === null || _ === void 0) && _.length); + var W = x.icon, $ = x.overlayIcon, J = T, X = 2 * J, Z = XD(J, a), ue = Z.nodeInfoLevel, re = Z.iconInfoLevel, ne = !!(!((b = x.captions) === null || b === void 0) && b.length || !((_ = x.caption) === null || _ === void 0) && _.length); if (W) { - var le, ce = Qq(J, ne, re, ue), pe = Jq(ce, ne, (le = x.captionAlign) !== null && le !== void 0 ? le : "center", re, ue), fe = pe.iconXPos, se = pe.iconYPos, de = r5(I) === "#ffffff", ge = s.imageCache.getImage(W, de), Oe = $B({ nodeX: x.x, nodeY: x.y, iconXPos: fe, iconYPos: se, iconSize: ce, image: ge, isDisabled: x.disabled === !0 }); + var le, ce = Qq(J, ne, re, ue), pe = Jq(ce, ne, (le = x.captionAlign) !== null && le !== void 0 ? le : "center", re, ue), fe = pe.iconXPos, se = pe.iconYPos, de = t5(I) === "#ffffff", ge = s.imageCache.getImage(W, de), Oe = $B({ nodeX: x.x, nodeY: x.y, iconXPos: fe, iconYPos: se, iconSize: ce, image: ge, isDisabled: x.disabled === !0 }); S.appendChild(Oe); } if ($ !== void 0) { - var ke, Me, Ne, Ce, Y = eG(X, (ke = $.size) !== null && ke !== void 0 ? ke : 1), Z = (Me = $.position) !== null && Me !== void 0 ? Me : [0, 0], ie = [(Ne = Z[0]) !== null && Ne !== void 0 ? Ne : 0, (Ce = Z[1]) !== null && Ce !== void 0 ? Ce : 0], we = tG(Y, J, ie), Ee = we.iconXPos, De = we.iconYPos, Ie = s.imageCache.getImage($.url), Ye = $B({ nodeX: x.x, nodeY: x.y, iconXPos: Ee, iconYPos: De, iconSize: Y, image: Ie, isDisabled: x.disabled === !0 }); + var ke, De, Ne, Te, Y = eG(X, (ke = $.size) !== null && ke !== void 0 ? ke : 1), Q = (De = $.position) !== null && De !== void 0 ? De : [0, 0], ie = [(Ne = Q[0]) !== null && Ne !== void 0 ? Ne : 0, (Te = Q[1]) !== null && Te !== void 0 ? Te : 0], we = tG(Y, J, ie), Ee = we.iconXPos, Me = we.iconYPos, Ie = s.imageCache.getImage($.url), Ye = $B({ nodeX: x.x, nodeY: x.y, iconXPos: Ee, iconYPos: Me, iconSize: Y, image: Ie, isDisabled: x.disabled === !0 }); S.appendChild(Ye); } var ot = oG(x, a); if (ot.hasContent) { - var mt = ot.lines, wt = ot.stylesPerChar, Mt = ot.fontSize, Dt = ot.fontFace, vt = ot.yPos, tt = r5(x.color || f); + var mt = ot.lines, wt = ot.stylesPerChar, Mt = ot.fontSize, Dt = ot.fontFace, vt = ot.yPos, tt = t5(x.color || f); x.disabled && (tt = c.fontColor); for (var _e = 0, Ue = 0; Ue < mt.length; Ue++) { - var Qe, Ze, nt, It = (Qe = mt[Ue].text) !== null && Qe !== void 0 ? Qe : "", ct = NP(It, wt, _e); + var Qe, Ze, nt, It = (Qe = mt[Ue].text) !== null && Qe !== void 0 ? Qe : "", ct = IP(It, wt, _e); _e += It.length; - var Lt = IP({ x: (Ze = x.x) !== null && Ze !== void 0 ? Ze : 0, y: ((nt = x.y) !== null && nt !== void 0 ? nt : 0) + vt + Ue * Mt, fontSize: Mt, fontFace: Dt, fontColor: tt, textAnchor: "middle", dominantBaseline: "auto", lineSpans: ct }); + var Lt = kP({ x: (Ze = x.x) !== null && Ze !== void 0 ? Ze : 0, y: ((nt = x.y) !== null && nt !== void 0 ? nt : 0) + vt + Ue * Mt, fontSize: Mt, fontFace: Dt, fontColor: tt, textAnchor: "middle", dominantBaseline: "auto", lineSpans: ct }); S.appendChild(Lt); } } @@ -76227,7 +76239,7 @@ var jP = "svgRenderer", Use = (function() { h.f(); } } }, { key: "renderRelationships", value: function(n, i, a) { - var o, s = this, u = this.arrowBundler, l = this.state, c = l.disabledItemStyles, f = l.defaultRelationshipColor, d = l.relationshipBorderStyles, h = $n(), p = LP(n); + var o, s = this, u = this.arrowBundler, l = this.state, c = l.disabledItemStyles, f = l.defaultRelationshipColor, d = l.relationshipBorderStyles, h = $n(), p = NP(n); try { var g = function() { var y = o.value; @@ -76247,20 +76259,20 @@ var jP = "svgRenderer", Use = (function() { if (WB(q, W, H, h).forEach(function(Bt) { return i.appendChild(Bt); }), P && (y.captions && y.captions.length > 0 || y.caption && y.caption.length > 0)) { - var $, J = $n(), X = y.selected === !0, Q = X ? d.selected.rings : d.default.rings, ue = Yq(B.apexPoint, B.angle, B.endPoint, B.control2Point, X, Q, y.width), re = ue.x, ne = ue.y, le = ue.angle, ce = (ue.flip, Jx(y)), pe = ce.length > 0 ? ($ = Qb(ce)) === null || $ === void 0 ? void 0 : $.fullCaption : ""; + var $, J = $n(), X = y.selected === !0, Z = X ? d.selected.rings : d.default.rings, ue = Yq(B.apexPoint, B.angle, B.endPoint, B.control2Point, X, Z, y.width), re = ue.x, ne = ue.y, le = ue.angle, ce = (ue.flip, Jx(y)), pe = ce.length > 0 ? ($ = Qb(ce)) === null || $ === void 0 ? void 0 : $.fullCaption : ""; if (pe) { - var fe, se, de, ge, Oe = 40 * J, ke = (fe = y.captionSize) !== null && fe !== void 0 ? fe : 1, Me = 6 * ke * J, Ne = s5, Ce = y.selected ? "bold" : "normal"; - s.measurementContext.font = "".concat(Ce, " ").concat(Me, "px ").concat(Ne); + var fe, se, de, ge, Oe = 40 * J, ke = (fe = y.captionSize) !== null && fe !== void 0 ? fe : 1, De = 6 * ke * J, Ne = o5, Te = y.selected ? "bold" : "normal"; + s.measurementContext.font = "".concat(Te, " ").concat(De, "px ").concat(Ne); var Y = function(Bt) { return s.measurementContext.measureText(Bt).width; - }, Z = pe; - if (Y(Z) > Oe) { - var ie = L1(Z, Y, function() { + }, Q = pe; + if (Y(Q) > Oe) { + var ie = L1(Q, Y, function() { return Oe; }, 1, !1)[0]; - Z = ie.hasEllipsisChar ? "".concat(ie.text, "...") : Z; + Q = ie.hasEllipsisChar ? "".concat(ie.text, "...") : Q; } - var we = y.selected ? hE : 1, Ee = ((se = y.width) !== null && se !== void 0 ? se : 1) * we, De = (1 + ke) * J, Ie = ((de = y.captionAlign) !== null && de !== void 0 ? de : "top") === "bottom" ? Me / 2 + Ee + De : -(Ee + De), Ye = ((ge = Qb(ce)) !== null && ge !== void 0 ? ge : { stylesPerChar: [] }).stylesPerChar, ot = NP(Z, Ye, 0), mt = IP({ x: re, y: ne + Ie, fontSize: Me, fontFace: Ne, fontColor: L, textAnchor: "middle", dominantBaseline: "alphabetic", lineSpans: ot, transform: "rotate(".concat(180 * le / Math.PI, ",").concat(re, ",").concat(ne, ")"), fontWeight: Ce }); + var we = y.selected ? dE : 1, Ee = ((se = y.width) !== null && se !== void 0 ? se : 1) * we, Me = (1 + ke) * J, Ie = ((de = y.captionAlign) !== null && de !== void 0 ? de : "top") === "bottom" ? De / 2 + Ee + Me : -(Ee + Me), Ye = ((ge = Qb(ce)) !== null && ge !== void 0 ? ge : { stylesPerChar: [] }).stylesPerChar, ot = IP(Q, Ye, 0), mt = kP({ x: re, y: ne + Ie, fontSize: De, fontFace: Ne, fontColor: L, textAnchor: "middle", dominantBaseline: "alphabetic", lineSpans: ot, transform: "rotate(".concat(180 * le / Math.PI, ",").concat(re, ",").concat(ne, ")"), fontWeight: Te }); i.appendChild(mt); } } @@ -76272,7 +76284,7 @@ var jP = "svgRenderer", Use = (function() { } var Rt = (function(Bt) { return (function(hr) { - if (Array.isArray(hr)) return v5(hr); + if (Array.isArray(hr)) return h5(hr); })(Bt) || (function(hr) { if (typeof Symbol < "u" && hr[Symbol.iterator] != null || hr["@@iterator"] != null) return Array.from(hr); })(Bt) || dG(Bt) || (function() { @@ -76333,7 +76345,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho return i.appendChild(Bt); }); } - var mr = Jx(y), ur = (Mt = y.captionSize) !== null && Mt !== void 0 ? Mt : 1, sn = 6 * ur * h, Fr = s5, un = (Dt = Qb(mr)) !== null && Dt !== void 0 ? Dt : { fullCaption: "", stylesPerChar: [] }, bn = un.fullCaption, wn = un.stylesPerChar; + var mr = Jx(y), ur = (Mt = y.captionSize) !== null && Mt !== void 0 ? Mt : 1, sn = 6 * ur * h, Fr = o5, un = (Dt = Qb(mr)) !== null && Dt !== void 0 ? Dt : { fullCaption: "", stylesPerChar: [] }, bn = un.fullCaption, wn = un.stylesPerChar; if (P && bn.length > 0) { var _n; s.measurementContext.font = "bold ".concat(sn, "px ").concat(Fr); @@ -76349,7 +76361,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho }, 1, !1)[0]; yn = Jn.hasEllipsisChar ? "".concat(Jn.text, "...") : yn; } - var _i = NP(yn, wn, 0), Ir = (1 + ur) * h, pa = xn === "bottom" ? sn / 2 + k + Ir : -(k + Ir), di = IP({ x: on.x, y: on.y + pa, fontSize: sn, fontFace: Fr, fontColor: L, textAnchor: "middle", dominantBaseline: "alphabetic", lineSpans: _i, transform: "rotate(".concat(fi, ",").concat(on.x, ",").concat(on.y, ")"), fontWeight: y.selected ? "bold" : void 0 }); + var _i = IP(yn, wn, 0), Ir = (1 + ur) * h, pa = xn === "bottom" ? sn / 2 + k + Ir : -(k + Ir), di = kP({ x: on.x, y: on.y + pa, fontSize: sn, fontFace: Fr, fontColor: L, textAnchor: "middle", dominantBaseline: "alphabetic", lineSpans: _i, transform: "rotate(".concat(fi, ",").concat(on.x, ",").concat(on.y, ")"), fontWeight: y.selected ? "bold" : void 0 }); i.appendChild(di); } } @@ -76363,7 +76375,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } }, { key: "getSvgTransform", value: function(n, i, a, o, s) { var u = i / 2; return "translate(".concat(n / 2, ",").concat(u, ") scale(").concat(a, ") translate(").concat(-o, ",").concat(-s, ")"); - } }], t && Fse(e.prototype, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; + } }], t && Use(e.prototype, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; var e, t; })(), pG = function(r, e) { var t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 1, n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : 0, i = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : 0, a = (function(o, s) { @@ -76383,14 +76395,14 @@ function t1(r) { function gG(r, e) { if (!(r instanceof e)) throw new TypeError("Cannot call a class as a function"); } -function zse(r, e) { +function qse(r, e) { for (var t = 0; t < e.length; t++) { var n = e[t]; n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(r, mG(n.key), n); } } function yG(r, e, t) { - return e && zse(r.prototype, e), Object.defineProperty(r, "prototype", { writable: !1 }), r; + return e && qse(r.prototype, e), Object.defineProperty(r, "prototype", { writable: !1 }), r; } function Nf(r, e, t) { return (e = mG(e)) in r ? Object.defineProperty(r, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : r[e] = t, r; @@ -76408,7 +76420,7 @@ function mG(r) { })(r); return t1(e) == "symbol" ? e : e + ""; } -var Mf = "WebGLRenderer", qse = (function() { +var Mf = "WebGLRenderer", Gse = (function() { return yG(function r(e) { var t = this; if (gG(this, r), Nf(this, "mainSceneRenderer", void 0), Nf(this, "minimapRenderer", void 0), Nf(this, "needsRun", void 0), Nf(this, "minimapMouseDown", void 0), Nf(this, "stateDisposers", void 0), Nf(this, "state", void 0), e.state === void 0) throw new Error("Renderer missing options: state - state object"); @@ -76467,7 +76479,7 @@ var Mf = "WebGLRenderer", qse = (function() { r(); }), this.state.nodes.removeChannel(Mf), this.state.rels.removeChannel(Mf), this.mainSceneRenderer.destroy(), this.minimapRenderer.destroy(); } }]); -})(), Gse = (function() { +})(), Vse = (function() { return yG(function r() { gG(this, r), Nf(this, "mainSceneRenderer", void 0), Nf(this, "minimapRenderer", void 0), Nf(this, "needsRun", void 0), Nf(this, "minimapMouseDown", void 0), Nf(this, "stateDisposers", void 0), Nf(this, "state", void 0); }, [{ key: "renderMainScene", value: function(r) { @@ -76491,7 +76503,7 @@ function r1(r) { return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e; }, r1(r); } -function BP(r, e) { +function jP(r, e) { var t = typeof Symbol < "u" && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = (function(u, l) { @@ -76534,7 +76546,7 @@ function QB(r, e) { for (var t = 0, n = Array(e); t < e; t++) n[t] = r[t]; return n; } -function Vse(r, e) { +function Hse(r, e) { for (var t = 0; t < e.length; t++) { var n = e[t]; n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(r, bG(n.key), n); @@ -76804,12 +76816,12 @@ void main(void) { var b = Iw(d), _ = Iw(h), m = Iw(y); this.nodeShader.setUniform("u_selectedBorderColor", b), this.nodeShader.setUniform("u_selectedInnerBorderColor", _), this.nodeShader.setUniform("u_shadowColor", m); } }, { key: "setData", value: function(t) { - var n = FM(t.rels, this.disableRelColor); + var n = BM(t.rels, this.disableRelColor); this.setupNodeRendering(t.nodes), this.setupRelationshipRendering(n); } }, { key: "render", value: function(t) { var n = this.gl, i = this.idToIndex, a = this.posBuffer, o = this.posTexture; if (this.numNodes !== 0 || this.numRels !== 0) { - var s, u = BP(t); + var s, u = jP(t); try { for (u.s(); !(s = u.n()).done; ) { var l = s.value, c = i[l.id]; @@ -76826,7 +76838,7 @@ void main(void) { var t = this.gl, n = this.projection, i = this.viewportBoxBuffer; this.viewportBoxShader.use(), this.viewportBoxShader.setUniform("u_projection", n), t.bindBuffer(t.ARRAY_BUFFER, i), this.viewportBoxShader.setAttributePointerFloat("coordinates", 2, 0, 0), t.drawArrays(t.LINES, 0, 8); } }, { key: "updateNodes", value: function(t) { - var n, i = this.gl, a = this.idToIndex, o = this.disableNodeColor, s = this.nodeBuffer, u = this.nodeDataByte, l = !1, c = BP(t); + var n, i = this.gl, a = this.idToIndex, o = this.disableNodeColor, s = this.nodeBuffer, u = this.nodeDataByte, l = !1, c = jP(t); try { for (c.s(); !(n = c.n()).done; ) { var f = n.value, d = a[f.id]; @@ -76854,7 +76866,7 @@ void main(void) { } l && (i.bindBuffer(i.ARRAY_BUFFER, s), i.bufferData(i.ARRAY_BUFFER, u, i.DYNAMIC_DRAW)); } }, { key: "updateRelationships", value: function(t) { - var n, i = FM(t, this.disableRelColor), a = this.gl, o = !1, s = BP(i); + var n, i = BM(t, this.disableRelColor), a = this.gl, o = !1, s = jP(i); try { for (s.s(); !(n = s.n()).done; ) { var u = n.value, l = u.key, c = u.width, f = u.color, d = u.disabled, h = this.relIdToIndex[l], p = (0, Hi.isNil)(f) ? this.defaultRelColor : f, g = kw(d ? this.disableRelColor : p); @@ -76873,8 +76885,8 @@ void main(void) { var s = this.gl, u = $n(), l = a * u, c = o * u, f = (0.5 * l + n * t) / t, d = (0.5 * c + i * t) / t, h = (0.5 * -l + n * t) / t, p = (0.5 * -c + i * t) / t, g = [f, d, h, d, h, d, h, p, h, p, f, p, f, p, f, d]; s.bindBuffer(s.ARRAY_BUFFER, this.viewportBoxBuffer), s.bufferData(s.ARRAY_BUFFER, new Float32Array(g), s.DYNAMIC_DRAW); } }, { key: "updateViewport", value: function(t, n, i) { - var a = this.gl, o = 1 / t, s = n - a.drawingBufferWidth * o * 0.5, u = i - a.drawingBufferHeight * o * 0.5, l = a.drawingBufferWidth * o, c = a.drawingBufferHeight * o, f = Kx(), d = qae * $n(); - $M(f, s, s + l, u + c, u, 0, 1e6), this.nodeShader.use(), this.nodeShader.setUniform("u_zoom", t), this.nodeShader.setUniform("u_glAdjust", d), this.nodeShader.setUniform("u_projection", f), this.nodeAnimShader.use(), this.nodeAnimShader.setUniform("u_zoom", t), this.nodeAnimShader.setUniform("u_glAdjust", d), this.nodeAnimShader.setUniform("u_projection", f), this.relShader.use(), this.relShader.setUniform("u_glAdjust", d), this.relShader.setUniform("u_projection", f), this.projection = f; + var a = this.gl, o = 1 / t, s = n - a.drawingBufferWidth * o * 0.5, u = i - a.drawingBufferHeight * o * 0.5, l = a.drawingBufferWidth * o, c = a.drawingBufferHeight * o, f = Kx(), d = Gae * $n(); + XM(f, s, s + l, u + c, u, 0, 1e6), this.nodeShader.use(), this.nodeShader.setUniform("u_zoom", t), this.nodeShader.setUniform("u_glAdjust", d), this.nodeShader.setUniform("u_projection", f), this.nodeAnimShader.use(), this.nodeAnimShader.setUniform("u_zoom", t), this.nodeAnimShader.setUniform("u_glAdjust", d), this.nodeAnimShader.setUniform("u_projection", f), this.relShader.use(), this.relShader.setUniform("u_glAdjust", d), this.relShader.setUniform("u_projection", f), this.projection = f; } }, { key: "setupViewportRendering", value: function() { var t, n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : qD; this.viewportBoxBuffer = this.gl.createBuffer(), this.viewportBoxShader.use(), this.viewportBoxShader.setUniform("u_minimapViewportBoxColor", [(t = I1(n))[0] / 255, t[1] / 255, t[2] / 255, t[3]]); @@ -76894,10 +76906,10 @@ void main(void) { for (var l = new ArrayBuffer(t.length * nu * 4), c = new Uint32Array(l), f = new Float32Array(l), d = function(p) { var g = t[p], y = g.from, b = g.to, _ = g.color, m = g.width, x = m === void 0 ? 1 : m, S = g.key, O = g.disabled, E = n.idToIndex[y], T = n.idToIndex[b], P = E % Cr, I = Math.floor(E / Cr), k = T % Cr, L = Math.floor(T / Cr), B = [P, I, k, L], j = [k, L, P, I], z = (0, Hi.isNil)(_) ? n.defaultRelColor : _, H = kw(O ? n.disableRelColor : z); u[S] = p; - var q = 0, W = function($, J, X, Q) { + var q = 0, W = function($, J, X, Z) { c[p * nu + q] = $, q += 1; for (var ue = 0; ue < J.length; ue++) s[ue] = J[ue]; - c[p * nu + q] = o[0], q += 1, s[0] = X, c[p * nu + q] = o[0], f[p * nu + (q += 1)] = Q, q += 1; + c[p * nu + q] = o[0], q += 1, s[0] = X, c[p * nu + q] = o[0], f[p * nu + (q += 1)] = Z, q += 1; }; W(H, B, 255, x), W(H, j, 0, x), W(H, B, 0, x), W(H, j, 0, x), W(H, B, 0, x), W(H, j, 255, x); }, h = 0; h < t.length; h++) d(h); @@ -76907,12 +76919,12 @@ void main(void) { this.nodeAnimShader.use(), this.nodeAnimShader.setUniform("u_positions", t), this.nodeAnimShader.setUniform("u_animPos", o), this.vaoExt.bindVertexArrayOES(this.nodeAnimVao), n.drawArrays(n.POINTS, 0, i), this.vaoExt.bindVertexArrayOES(null); } }, { key: "destroy", value: function() { this.gl.deleteBuffer(this.nodeBuffer), this.gl.deleteBuffer(this.relBuffer), this.vaoExt.deleteVertexArrayOES(this.nodeVao), this.vaoExt.deleteVertexArrayOES(this.relVao), this.vaoExt.deleteVertexArrayOES(this.nodeAnimVao), this.nodeShader.remove(), this.nodeAnimShader.remove(), this.relShader.remove(); - } }], e && Vse(r.prototype, e), Object.defineProperty(r, "prototype", { writable: !1 }), r; + } }], e && Hse(r.prototype, e), Object.defineProperty(r, "prototype", { writable: !1 }), r; var r, e; })(); function Bw(r) { return (function(e) { - if (Array.isArray(e)) return b5(e); + if (Array.isArray(e)) return m5(e); })(r) || (function(e) { if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e); })(r) || _G(r) || (function() { @@ -76920,7 +76932,7 @@ function Bw(r) { In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`); })(); } -function m5(r, e) { +function y5(r, e) { var t = typeof Symbol < "u" && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _G(r)) || e) { @@ -76954,17 +76966,17 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } function _G(r, e) { if (r) { - if (typeof r == "string") return b5(r, e); + if (typeof r == "string") return m5(r, e); var t = {}.toString.call(r).slice(8, -1); - return t === "Object" && r.constructor && (t = r.constructor.name), t === "Map" || t === "Set" ? Array.from(r) : t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? b5(r, e) : void 0; + return t === "Object" && r.constructor && (t = r.constructor.name), t === "Map" || t === "Set" ? Array.from(r) : t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? m5(r, e) : void 0; } } -function b5(r, e) { +function m5(r, e) { (e == null || e > r.length) && (e = r.length); for (var t = 0, n = Array(e); t < e; t++) n[t] = r[t]; return n; } -var Hse = ha * $n(); +var Wse = ha * $n(); function n1(r) { return n1 = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) { return typeof e; @@ -76986,14 +76998,14 @@ function Fw(r) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e] != null ? arguments[e] : {}; e % 2 ? e9(Object(t), !0).forEach(function(n) { - Wse(r, n, t[n]); + Yse(r, n, t[n]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(r, Object.getOwnPropertyDescriptors(t)) : e9(Object(t)).forEach(function(n) { Object.defineProperty(r, n, Object.getOwnPropertyDescriptor(t, n)); }); } return r; } -function Wse(r, e, t) { +function Yse(r, e, t) { return (e = (function(n) { var i = (function(a) { if (n1(a) != "object" || !a) return a; @@ -77012,7 +77024,7 @@ var i1 = function() { for (var r = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 50, t = { minX: 1 / 0, minY: 1 / 0, maxX: -1 / 0, maxY: -1 / 0 }, n = 0; n < r.length; n++) t.minX > r[n].x && (t.minX = r[n].x), t.minY > r[n].y && (t.minY = r[n].y), t.maxX < r[n].x && (t.maxX = r[n].x), t.maxY < r[n].y && (t.maxY = r[n].y); var i = (t.minX + t.maxX) / 2, a = (t.minY + t.maxY) / 2, o = 2 * e, s = $n() * o; return { centerX: i, centerY: a, nodesWidth: t.maxX - t.minX + o + s, nodesHeight: t.maxY - t.minY + o + s }; -}, _5 = function(r, e, t, n) { +}, b5 = function(r, e, t, n) { var i = 1 / 0, a = 1 / 0; return r > 1 && (i = t / r), e > 1 && (a = n / e), { zoomX: i, zoomY: a }; }, wG = function(r, e) { @@ -77020,7 +77032,7 @@ var i1 = function() { return Math.min(n, Math.max(t, i)); }, a1 = function(r, e, t, n) { return Math.max(Math.min(e, t), Math.min(r, n)); -}, FP = function(r, e, t, n, i, a) { +}, BP = function(r, e, t, n, i, a) { var o = e; return (function(s, u, l) { return s < u && s < l; @@ -77044,7 +77056,7 @@ function o1(r) { return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e; }, o1(r); } -function Yse(r, e) { +function Xse(r, e) { for (var t = 0; t < e.length; t++) { var n = e[t]; n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(r, xG(n.key), n); @@ -77063,7 +77075,7 @@ function xG(r) { })(r); return o1(e) == "symbol" ? e : e + ""; } -var Xse = (function() { +var $se = (function() { return r = function t() { var n, i, a; (function(o, s) { @@ -77075,12 +77087,12 @@ var Xse = (function() { return this.callbacks[t] !== void 0; } }, { key: "callIfRegistered", value: function() { var t, n = arguments, i = Array.prototype.slice.call(arguments)[0]; - t = i, Fae.includes(t) && this.isCallbackRegistered(i) && this.callbacks[i].slice(0).forEach(function(a) { + t = i, Uae.includes(t) && this.isCallbackRegistered(i) && this.callbacks[i].slice(0).forEach(function(a) { return a.apply(null, Array.prototype.slice.call(n, 1)); }); - } }], e && Yse(r.prototype, e), Object.defineProperty(r, "prototype", { writable: !1 }), r; + } }], e && Xse(r.prototype, e), Object.defineProperty(r, "prototype", { writable: !1 }), r; var r, e; -})(), $se = io(481), UP = io.n($se); +})(), Kse = io(481), FP = io.n(Kse); function s1(r) { return s1 = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) { return typeof e; @@ -77088,7 +77100,7 @@ function s1(r) { return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e; }, s1(r); } -function Kse(r, e) { +function Zse(r, e) { for (var t = 0; t < e.length; t++) { var n = e[t]; n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(r, EG(n.key), n); @@ -77110,12 +77122,12 @@ function EG(r) { })(r); return s1(e) == "symbol" ? e : e + ""; } -var t9 = 5e-5, Zse = (function() { +var t9 = 5e-5, Qse = (function() { return r = function t(n) { var i, a = this, o = n.state, s = n.getNodePositions, u = n.canvas; (function(l, c) { if (!(l instanceof c)) throw new TypeError("Cannot call a class as a function"); - })(this, t), sp(this, "xCtrl", void 0), sp(this, "yCtrl", void 0), sp(this, "zoomCtrl", void 0), sp(this, "getNodePositions", void 0), sp(this, "firstUpdate", void 0), sp(this, "state", void 0), sp(this, "canvas", void 0), sp(this, "stateDisposers", void 0), this.state = o, this.getNodePositions = s, this.canvas = u, this.xCtrl = new (UP())(0.35, t9, 0.05, 1), this.yCtrl = new (UP())(0.35, t9, 0.05, 1), this.zoomCtrl = new (UP())(0.3, 1e-5, 0.01, 1), this.stateDisposers = [], this.stateDisposers.push(o.autorun(function() { + })(this, t), sp(this, "xCtrl", void 0), sp(this, "yCtrl", void 0), sp(this, "zoomCtrl", void 0), sp(this, "getNodePositions", void 0), sp(this, "firstUpdate", void 0), sp(this, "state", void 0), sp(this, "canvas", void 0), sp(this, "stateDisposers", void 0), this.state = o, this.getNodePositions = s, this.canvas = u, this.xCtrl = new (FP())(0.35, t9, 0.05, 1), this.yCtrl = new (FP())(0.35, t9, 0.05, 1), this.zoomCtrl = new (FP())(0.3, 1e-5, 0.01, 1), this.stateDisposers = [], this.stateDisposers.push(o.autorun(function() { o.fitNodeIds === null && (a.xCtrl.reset(), a.yCtrl.reset(), a.zoomCtrl.reset()); })), this.stateDisposers.push(o.autorun(function() { i !== o.fitNodeIds && (i = o.fitNodeIds, a.firstUpdate = !0); @@ -77140,7 +77152,7 @@ var t9 = 5e-5, Zse = (function() { if (isNaN(x) || isNaN(S)) return bi.info("fit() function couldn't calculate center point, not updating viewport"), !1; var T = n.noPan, P = n.outOnly, I = n.minZoom, k = n.maxZoom; o.setTarget(T ? h : x), s.setTarget(T ? p : S); - var L = _5(O, E, i, a), B = L.zoomX, j = L.zoomY; + var L = b5(O, E, i, a), B = L.zoomX, j = L.zoomY; if (B === 1 / 0 && j === 1 / 0) u.setTarget(b); else { var z = wG(B, j, I, k); @@ -77148,7 +77160,7 @@ var t9 = 5e-5, Zse = (function() { } return !0; } }, { key: "allNodesAreVisible", value: function(t, n, i) { - var a = _5(n, i, this.canvas.width, this.canvas.height), o = a.zoomX, s = a.zoomY; + var a = b5(n, i, this.canvas.width, this.canvas.height), o = a.zoomX, s = a.zoomY; return t < o && t < s; } }, { key: "reset", value: function(t, n) { var i = this.xCtrl, a = this.yCtrl, o = this.zoomCtrl, s = this.state, u = this.firstUpdate, l = this.canvas, c = s.zoom, f = s.panX, d = s.panY, h = s.nodes, p = s.maxNodeRadius, g = s.defaultZoomLevel; @@ -77172,7 +77184,7 @@ var t9 = 5e-5, Zse = (function() { var O = Math.max(5, 10 / c.target), E = Math.min(0.01, 0.01 * c.target); !n && Math.abs(c.target - S) < E && Math.abs(u.target - m) < O && Math.abs(l.target - x) < O && (a.setZoom(c.target, s), a.clearFit(), i !== void 0 && i()); } - } }]) && Kse(r.prototype, e), Object.defineProperty(r, "prototype", { writable: !1 }), r; + } }]) && Zse(r.prototype, e), Object.defineProperty(r, "prototype", { writable: !1 }), r; var r, e; })(); function u1(r) { @@ -77308,7 +77320,7 @@ function no(r) { } return r; } -function Qse(r, e) { +function Jse(r, e) { for (var t = 0; t < e.length; t++) { var n = e[t]; n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(r, SG(n.key), n); @@ -77333,14 +77345,14 @@ function SG(r) { var Uw = "NvlController", ab = { filename: "visualisation.png", backgroundColor: "rgba(0,0,0,0)" }, up = "onError", o9 = "onLayoutDone", s9 = "onLayoutStep", s2 = {}, ob = function() { var r; return (r = s2[arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "default"]) !== null && r !== void 0 ? r : Object.values(s2).pop(); -}, Jse = (function() { +}, eue = (function() { return r = function i(a, o, s) { var u, l, c, f = this; (function(q, W) { if (!(q instanceof W)) throw new TypeError("Cannot call a class as a function"); })(this, i), dn(this, "destroyed", void 0), dn(this, "state", void 0), dn(this, "callbacks", void 0), dn(this, "instanceId", void 0), dn(this, "glController", void 0), dn(this, "webGLContext", void 0), dn(this, "webGLMinimapContext", void 0), dn(this, "htmlOverlay", void 0), dn(this, "hasResized", void 0), dn(this, "hierarchicalLayout", void 0), dn(this, "gridLayout", void 0), dn(this, "freeLayout", void 0), dn(this, "d3ForceLayout", void 0), dn(this, "circularLayout", void 0), dn(this, "forceLayout", void 0), dn(this, "canvasRenderer", void 0), dn(this, "svgRenderer", void 0), dn(this, "glCanvas", void 0), dn(this, "canvasRect", void 0), dn(this, "glMinimapCanvas", void 0), dn(this, "c2dCanvas", void 0), dn(this, "svg", void 0), dn(this, "isInRenderSwitchAnimation", void 0), dn(this, "justSwitchedRenderer", void 0), dn(this, "justSwitchedLayout", void 0), dn(this, "layoutUpdating", void 0), dn(this, "layoutComputing", void 0), dn(this, "isRenderingDisabled", void 0), dn(this, "setRenderSwitchAnimation", void 0), dn(this, "stateDisposers", void 0), dn(this, "zoomTransitionHandler", void 0), dn(this, "currentLayout", void 0), dn(this, "layoutTimeLimit", void 0), dn(this, "pixelRatio", void 0), dn(this, "removeResizeListener", void 0), dn(this, "removeMinimapResizeListener", void 0), dn(this, "pendingZoomOperation", void 0), dn(this, "layoutRunner", void 0), dn(this, "animationRequestId", void 0), dn(this, "layoutDoneCallback", void 0), dn(this, "layoutComputingCallback", void 0), dn(this, "currentLayoutType", void 0), dn(this, "descriptionElement", void 0), this.destroyed = !1; var d = s.minimapContainer, h = d === void 0 ? document.createElement("span") : d, p = s.layoutOptions, g = s.layout, y = s.instanceId, b = y === void 0 ? "default" : y, _ = s.disableAria, m = _ !== void 0 && _, x = a.nodes, S = a.rels, O = a.disableWebGL; - this.state = a, this.callbacks = new Xse(), this.instanceId = b; + this.state = a, this.callbacks = new $se(), this.instanceId = b; var E = o; E.setAttribute("instanceId", b), E.setAttribute("data-testid", "nvl-parent"), (u = E.style.height) !== null && u !== void 0 && u.length || Object.assign(E.style, { height: "100%" }), (l = E.style.outline) !== null && l !== void 0 && l.length || Object.assign(E.style, { outline: "none" }), this.descriptionElement = m ? document.createElement("div") : (function(q, W) { var $; @@ -77348,18 +77360,18 @@ var Uw = "NvlController", ab = { filename: "visualisation.png", backgroundColor: var J = "nvl-".concat(W, "-description"), X = ($ = document.getElementById(J)) !== null && $ !== void 0 ? $ : document.createElement("div"); return X.textContent = "", X.id = "nvl-".concat(W, "-description"), X.setAttribute("role", "status"), X.setAttribute("aria-live", "polite"), X.setAttribute("aria-atomic", "false"), X.style.display = "none", q.appendChild(X), q.setAttribute("aria-describedby", X.id), X; })(E, b); - var T = RP(E, this.onWebGLContextLost.bind(this)), P = RP(h, this.onWebGLContextLost.bind(this)); - if (T.setAttribute("data-testid", "nvl-gl-canvas"), O) this.glController = new Gse(); + var T = AP(E, this.onWebGLContextLost.bind(this)), P = AP(h, this.onWebGLContextLost.bind(this)); + if (T.setAttribute("data-testid", "nvl-gl-canvas"), O) this.glController = new Vse(); else { var I = bB(T), k = bB(P); - this.glController = new qse({ mainSceneRenderer: new JB(I, x, S, this.state), minimapRenderer: new JB(k, x, S, this.state), state: a }), this.webGLContext = I, this.webGLMinimapContext = k; + this.glController = new Gse({ mainSceneRenderer: new JB(I, x, S, this.state), minimapRenderer: new JB(k, x, S, this.state), state: a }), this.webGLContext = I, this.webGLMinimapContext = k; } - var L = RP(E, this.onWebGLContextLost.bind(this)); + var L = AP(E, this.onWebGLContextLost.bind(this)); L.setAttribute("data-testid", "nvl-c2d-canvas"); var B = L.getContext("2d"), j = document.createElementNS("http://www.w3.org/2000/svg", "svg"); - Object.assign(j.style, no(no({}, BM), {}, { overflow: "hidden", width: "100%", height: "100%" })), E.appendChild(j); + Object.assign(j.style, no(no({}, jM), {}, { overflow: "hidden", width: "100%", height: "100%" })), E.appendChild(j); var z = document.createElement("div"); - Object.assign(z.style, no(no({}, BM), {}, { overflow: "hidden" })), E.appendChild(z), this.htmlOverlay = z, this.hasResized = !0, this.hierarchicalLayout = new Yoe(no(no({}, p), {}, { state: this.state })), this.gridLayout = new Ioe({ state: this.state }), this.freeLayout = new Moe({ state: this.state }), this.d3ForceLayout = new voe({ state: this.state }), this.circularLayout = new Xae(no(no({}, p), {}, { state: this.state })), this.forceLayout = O ? this.d3ForceLayout : new Aoe(no(no({}, p), {}, { webGLContext: this.webGLContext, state: this.state })), this.state.setLayout(g), this.state.setLayoutOptions(p), this.canvasRenderer = new jse(L, B, a, s), this.svgRenderer = new Use(j, a, s), this.glCanvas = T, this.canvasRect = T.getBoundingClientRect(), this.glMinimapCanvas = P, this.c2dCanvas = L, this.svg = j; + Object.assign(z.style, no(no({}, jM), {}, { overflow: "hidden" })), E.appendChild(z), this.htmlOverlay = z, this.hasResized = !0, this.hierarchicalLayout = new Xoe(no(no({}, p), {}, { state: this.state })), this.gridLayout = new Noe({ state: this.state }), this.freeLayout = new Doe({ state: this.state }), this.d3ForceLayout = new poe({ state: this.state }), this.circularLayout = new $ae(no(no({}, p), {}, { state: this.state })), this.forceLayout = O ? this.d3ForceLayout : new Roe(no(no({}, p), {}, { webGLContext: this.webGLContext, state: this.state })), this.state.setLayout(g), this.state.setLayoutOptions(p), this.canvasRenderer = new Bse(L, B, a, s), this.svgRenderer = new zse(j, a, s), this.glCanvas = T, this.canvasRect = T.getBoundingClientRect(), this.glMinimapCanvas = P, this.c2dCanvas = L, this.svg = j; var H = a.renderer; this.glCanvas.style.opacity = H === Mg ? "1" : "0", this.c2dCanvas.style.opacity = H === fp ? "1" : "0", this.svg.style.opacity = H === am ? "1" : "0", this.isInRenderSwitchAnimation = !1, this.justSwitchedRenderer = !1, this.justSwitchedLayout = !1, this.hasResized = !1, this.layoutUpdating = !1, this.layoutComputing = !1, this.isRenderingDisabled = !1, x.addChannel(Uw), S.addChannel(Uw), this.setRenderSwitchAnimation = function() { f.isInRenderSwitchAnimation = !1; @@ -77373,16 +77385,16 @@ var Uw = "NvlController", ab = { filename: "visualisation.png", backgroundColor: f.setLayoutOptions(a.layoutOptions); })), m || this.stateDisposers.push(a.autorun(function() { (function(q, W) { - var $ = q.nodes, J = q.rels, X = q.layout, Q = $.items.length, ue = J.items.length; - if (Q !== 0 || ue !== 0) { - var re = "".concat(Q, " node").concat(Q !== 1 ? "s" : ""), ne = "".concat(ue, " relationship").concat(ue !== 1 ? "s" : ""), le = "displayed using a ".concat(X ?? "forceDirected", " layout"); + var $ = q.nodes, J = q.rels, X = q.layout, Z = $.items.length, ue = J.items.length; + if (Z !== 0 || ue !== 0) { + var re = "".concat(Z, " node").concat(Z !== 1 ? "s" : ""), ne = "".concat(ue, " relationship").concat(ue !== 1 ? "s" : ""), le = "displayed using a ".concat(X ?? "forceDirected", " layout"); W.textContent = "A graph visualization with ".concat(re, " and ").concat(ne, ", ").concat(le, "."); } else W.textContent = "An empty graph visualization."; })(a, f.descriptionElement); })), this.stateDisposers.push(a.autorun(function() { var q = a.renderer; q !== (f.glCanvas.style.opacity === "1" ? Mg : f.c2dCanvas.style.opacity === "1" ? fp : f.svg.style.opacity === "1" ? am : fp) && (f.justSwitchedRenderer = !0, f.glCanvas.style.opacity = q === Mg ? "1" : "0", f.c2dCanvas.style.opacity = q === fp ? "1" : "0", f.svg.style.opacity = q === am ? "1" : "0"); - })), this.startMainLoop(), this.zoomTransitionHandler = new Zse({ state: a, getNodePositions: function(q) { + })), this.startMainLoop(), this.zoomTransitionHandler = new Qse({ state: a, getNodePositions: function(q) { return f.currentLayout.getNodePositions(q); }, canvas: T }), this.layoutTimeLimit = (c = s.layoutTimeLimit) !== null && c !== void 0 ? c : 16, this.pixelRatio = $n(), this.removeResizeListener = P8()(E, function() { fx(T), fx(L), f.canvasRect = T.getBoundingClientRect(), f.hasResized = !0; @@ -77407,7 +77419,7 @@ var Uw = "NvlController", ab = { filename: "visualisation.png", backgroundColor: }, e = [{ key: "onWebGLContextLost", value: function(i) { this.callIfRegistered("onWebGLContextLost", i); } }, { key: "updateMinimapZoom", value: function() { - var i = this.state, a = i.nodes, o = i.maxNodeRadius, s = i.maxMinimapZoom, u = i.minMinimapZoom, l = i1(Object.values(a.idToPosition), o), c = l.centerX, f = l.centerY, d = l.nodesWidth, h = l.nodesHeight, p = _5(d, h, this.glMinimapCanvas.width, this.glMinimapCanvas.height), g = p.zoomX, y = p.zoomY, b = wG(g, y, u, s); + var i = this.state, a = i.nodes, o = i.maxNodeRadius, s = i.maxMinimapZoom, u = i.minMinimapZoom, l = i1(Object.values(a.idToPosition), o), c = l.centerX, f = l.centerY, d = l.nodesWidth, h = l.nodesHeight, p = b5(d, h, this.glMinimapCanvas.width, this.glMinimapCanvas.height), g = p.zoomX, y = p.zoomY, b = wG(g, y, u, s); this.state.updateMinimapZoomToFit(b, c, f); } }, { key: "startMainLoop", value: function() { var i = this, a = this.state, o = a.nodes, s = a.rels; @@ -77450,7 +77462,7 @@ var Uw = "NvlController", ab = { filename: "visualisation.png", backgroundColor: for (var B = 0; B < s.items.length; B++) { var j = s.items[B].id, z = i.canvasRenderer.arrowBundler.getBundle(s.items[B]), H = s.idToHtmlOverlay[j], q = z.labelInfo[j]; if (H && q) { - var W = q.rotation, $ = q.position, J = q.width, X = q.height, Q = i.mapCanvasSpaceToRelativePosition($.x, $.y), ue = Q.x, re = Q.y, ne = J > 5 && L !== Mg; + var W = q.rotation, $ = q.position, J = q.width, X = q.height, Z = i.mapCanvasSpaceToRelativePosition($.x, $.y), ue = Z.x, re = Z.y, ne = J > 5 && L !== Mg; Object.assign(H.style, { top: "".concat(re, "px"), left: "".concat(ue, "px"), width: "".concat(J, "px"), height: "".concat(X, "px"), display: ne ? "block" : "none", transform: "translate(-50%, -50%) scale(".concat(Number(i.state.zoom), ") rotate(").concat(W, "rad") }); } } @@ -77459,14 +77471,14 @@ var Uw = "NvlController", ab = { filename: "visualisation.png", backgroundColor: for (var le = 0; le < o.items.length; le++) { var ce = o.items[le], pe = ce.id, fe = ce.size, se = o.idToHtmlOverlay[pe]; if (se) { - var de = i.state.nodes.idToPosition[pe], ge = i.mapCanvasSpaceToRelativePosition(de.x, de.y), Oe = ge.x, ke = ge.y, Me = "".concat(2 * (fe ?? ha), "px"); - Object.assign(se.style, { top: "".concat(ke, "px"), left: "".concat(Oe, "px"), width: Me, height: Me, transform: "translate(-50%, -50%) scale(".concat(Number(i.state.zoom), ")") }); + var de = i.state.nodes.idToPosition[pe], ge = i.mapCanvasSpaceToRelativePosition(de.x, de.y), Oe = ge.x, ke = ge.y, De = "".concat(2 * (fe ?? ha), "px"); + Object.assign(se.style, { top: "".concat(ke, "px"), left: "".concat(Oe, "px"), width: De, height: De, transform: "translate(-50%, -50%) scale(".concat(Number(i.state.zoom), ")") }); } } } } - var Ne = !h && i.layoutUpdating, Ce = p !== i.layoutComputing; - i.layoutComputing = p, i.layoutUpdating = h, Ne && i.callIfRegistered(o9), Ce && i.callIfRegistered("onLayoutComputing", p), i.justSwitchedRenderer = !1, i.hasResized = !1, c !== void 0 && c(); + var Ne = !h && i.layoutUpdating, Te = p !== i.layoutComputing; + i.layoutComputing = p, i.layoutUpdating = h, Ne && i.callIfRegistered(o9), Te && i.callIfRegistered("onLayoutComputing", p), i.justSwitchedRenderer = !1, i.hasResized = !1, c !== void 0 && c(); } })(function() { i.animationRequestId = window.requestAnimationFrame(l); @@ -77556,7 +77568,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho I !== void 0 && k !== void 0 && I > b && I < _ && k > m && k < x && S.push(P); } if (p.includes("relationship")) { - var L, B = m5(y.items); + var L, B = y5(y.items); try { for (B.s(); !(L = B.n()).done; ) { var j = L.value, z = j.from, H = j.to, q = g.idToPosition[z], W = g.idToPosition[H]; @@ -77613,7 +77625,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho return this.destroyed; } }, { key: "destroy", value: function() { var i; - this.destroyed || (this.animationRequestId && window.cancelAnimationFrame(this.animationRequestId), this.layoutRunner !== void 0 && window.clearInterval(this.layoutRunner), this.glController.destroy(), this.glCanvas.removeEventListener("transitionend", this.setRenderSwitchAnimation), this.webGLContext !== void 0 && _B(this.webGLContext), this.webGLMinimapContext !== void 0 && _B(this.webGLMinimapContext), om(this.glCanvas), om(this.glMinimapCanvas), this.canvasRenderer.destroy(), om(this.c2dCanvas), i5.clear(), this.svgRenderer.destroy(), this.svg.remove(), this.removeResizeListener(), this.removeMinimapResizeListener(), this.forceLayout.destroy(), this.hierarchicalLayout.destroy(), this.gridLayout.destroy(), this.freeLayout.destroy(), this.circularLayout.destroy(), this.htmlOverlay.remove(), this.descriptionElement.remove(), this.zoomTransitionHandler.destroy(), this.stateDisposers.forEach(function(a) { + this.destroyed || (this.animationRequestId && window.cancelAnimationFrame(this.animationRequestId), this.layoutRunner !== void 0 && window.clearInterval(this.layoutRunner), this.glController.destroy(), this.glCanvas.removeEventListener("transitionend", this.setRenderSwitchAnimation), this.webGLContext !== void 0 && _B(this.webGLContext), this.webGLMinimapContext !== void 0 && _B(this.webGLMinimapContext), om(this.glCanvas), om(this.glMinimapCanvas), this.canvasRenderer.destroy(), om(this.c2dCanvas), n5.clear(), this.svgRenderer.destroy(), this.svg.remove(), this.removeResizeListener(), this.removeMinimapResizeListener(), this.forceLayout.destroy(), this.hierarchicalLayout.destroy(), this.gridLayout.destroy(), this.freeLayout.destroy(), this.circularLayout.destroy(), this.htmlOverlay.remove(), this.descriptionElement.remove(), this.zoomTransitionHandler.destroy(), this.stateDisposers.forEach(function(a) { a(); }), i = this.instanceId, delete s2[i], this.destroyed = !0); } }, { key: "callIfRegistered", value: function() { @@ -77625,7 +77637,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho var a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0; return this.canvasRenderer.getNodesAt(i, a); } }, { key: "getLayout", value: function(i) { - return i === Zx ? this.hierarchicalLayout : i === Loe ? this.forceLayout : i === joe ? this.gridLayout : i === Boe ? this.freeLayout : i === Foe ? this.d3ForceLayout : i === Uoe ? this.circularLayout : this.forceLayout; + return i === Zx ? this.hierarchicalLayout : i === joe ? this.forceLayout : i === Boe ? this.gridLayout : i === Foe ? this.freeLayout : i === Uoe ? this.d3ForceLayout : i === zoe ? this.circularLayout : this.forceLayout; } }, { key: "setLayout", value: function(i) { bi.info("Switching to layout: ".concat(i)); var a = this.currentLayoutType, o = this.getLayout(i); @@ -77730,10 +77742,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho }, i, this, [[1, 3, 5, 6]]); })), function(i) { return t.apply(this, arguments); - }) }], e && Qse(r.prototype, e), Object.defineProperty(r, "prototype", { writable: !1 }), r; + }) }], e && Jse(r.prototype, e), Object.defineProperty(r, "prototype", { writable: !1 }), r; var r, e, t, n; })(); -function vE(r, e) { +function hE(r, e) { var t = typeof Symbol < "u" && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = (function(u, l) { @@ -77776,23 +77788,23 @@ function u9(r, e) { for (var t = 0, n = Array(e); t < e; t++) n[t] = r[t]; return n; } -function eue(r) { +function tue(r) { return "from" in r && "to" in r; } -function tue(r) { +function rue(r) { this.channels[r] = { adds: {}, updates: {}, removes: {} }; } -function rue(r) { +function nue(r) { delete this.channels[r]; } -function nue(r) { +function iue(r) { this.channels[r].adds = {}, this.channels[r].updates = {}, this.channels[r].removes = {}; } var OG = function(r) { return "html" in r ? r.html : "captionHtml" in r ? r.captionHtml : void 0; }; -function iue(r, e) { - var t, n = !1, i = vE(r); +function aue(r, e) { + var t, n = !1, i = hE(r); try { for (i.s(); !(t = i.n()).done; ) { var a = t.value, o = a.id; @@ -77820,8 +77832,8 @@ function iue(r, e) { } n && (this.version += 1, e !== void 0 && (e.added = !0)); } -function aue(r, e) { - var t, n = !1, i = vE(r); +function oue(r, e) { + var t, n = !1, i = hE(r); try { for (i.s(); !(t = i.n()).done; ) { var a = t.value, o = a.id, s = this.idToItem[o]; @@ -77838,7 +77850,7 @@ function aue(r, e) { var p = h[d]; if (p.adds[o] === void 0) { var g = p.updates[o]; - g === void 0 && (g = { id: o }, eue(s) && (g = { id: o, from: s.from, to: s.to }), p.updates[o] = g), Object.assign(g, a); + g === void 0 && (g = { id: o }, tue(s) && (g = { id: o, from: s.from, to: s.to }), p.updates[o] = g), Object.assign(g, a); } } e !== void 0 && (e.updated = !0); @@ -77852,8 +77864,8 @@ function aue(r, e) { } n && (this.version += 1); } -function oue(r, e) { - var t, n = !1, i = vE(r); +function sue(r, e) { + var t, n = !1, i = hE(r); try { for (i.s(); !(t = i.n()).done; ) { var a = t.value, o = this.idToItem[a]; @@ -77873,8 +77885,8 @@ function oue(r, e) { } n && (e !== void 0 && (e.removed = !0), this.version += 1); } -function sue(r) { - var e, t = vE(r); +function uue(r) { + var e, t = hE(r); try { for (t.s(); !(e = t.n()).done; ) { var n = e.value; @@ -77889,14 +77901,14 @@ function sue(r) { t.f(); } } -function uue(r) { +function lue(r) { for (var e in this.idToHtmlOverlay) { var t = this.idToHtmlOverlay[e]; r.appendChild(t); } } var l9 = function() { - return { idToItem: ka.shallow({}), items: ka.shallow([]), channels: ka.shallow({}), idToPosition: ka.shallow({}), idToHtmlOverlay: ka.shallow({}), version: 0, addChannel: ta(tue), removeChannel: ta(rue), clearChannel: ta(nue), add: ta(iue), update: ta(aue), remove: ta(oue), updatePositions: ta(sue), updateHtmlOverlay: ta(uue) }; + return { idToItem: ka.shallow({}), items: ka.shallow([]), channels: ka.shallow({}), idToPosition: ka.shallow({}), idToHtmlOverlay: ka.shallow({}), version: 0, addChannel: ta(rue), removeChannel: ta(nue), clearChannel: ta(iue), add: ta(aue), update: ta(oue), remove: ta(sue), updatePositions: ta(uue), updateHtmlOverlay: ta(lue) }; }; function l1(r) { return l1 = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) { @@ -77919,14 +77931,14 @@ function f9(r) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e] != null ? arguments[e] : {}; e % 2 ? c9(Object(t), !0).forEach(function(n) { - lue(r, n, t[n]); + cue(r, n, t[n]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(r, Object.getOwnPropertyDescriptors(t)) : c9(Object(t)).forEach(function(n) { Object.defineProperty(r, n, Object.getOwnPropertyDescriptor(t, n)); }); } return r; } -function lue(r, e, t) { +function cue(r, e, t) { return (e = (function(n) { var i = (function(a) { if (l1(a) != "object" || !a) return a; @@ -77941,11 +77953,11 @@ function lue(r, e, t) { return l1(i) == "symbol" ? i : i + ""; })(e)) in r ? Object.defineProperty(r, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : r[e] = t, r; } -var cue = function(r) { +var fue = function(r) { var e = r.minZoom, t = r.maxZoom, n = r.allowDynamicMinZoom, i = n === void 0 || n, a = r.layout, o = r.layoutOptions, s = r.styling, u = s === void 0 ? {} : s, l = r.panX, c = l === void 0 ? 0 : l, f = r.panY, d = f === void 0 ? 0 : f, h = r.initialZoom, p = r.renderer, g = p === void 0 ? fp : p, y = r.disableWebGL, b = y !== void 0 && y, _ = r.disableWebWorkers, m = _ !== void 0 && _, x = r.disableTelemetry, S = x !== void 0 && x; xz(!0), zD.isolateGlobalState(); var O = (function(j) { - var z = j.nodeDefaultBorderColor, H = j.selectedBorderColor, q = j.disabledItemColor, W = j.disabledItemFontColor, $ = j.selectedInnerBorderColor, J = j.dropShadowColor, X = j.defaultNodeColor, Q = j.defaultRelationshipColor, ue = j.minimapViewportBoxColor, re = AP({}, gB.default), ne = AP({}, gB.selected), le = AP({}, yB.selected), ce = { color: sq, fontColor: "#DDDDDD" }, pe = oq, fe = "#FFDF81"; + var z = j.nodeDefaultBorderColor, H = j.selectedBorderColor, q = j.disabledItemColor, W = j.disabledItemFontColor, $ = j.selectedInnerBorderColor, J = j.dropShadowColor, X = j.defaultNodeColor, Z = j.defaultRelationshipColor, ue = j.minimapViewportBoxColor, re = CP({}, gB.default), ne = CP({}, gB.selected), le = CP({}, yB.selected), ce = { color: sq, fontColor: "#DDDDDD" }, pe = oq, fe = "#FFDF81"; return ip($, function(se) { ne.rings[0].color = se, le.rings[0].color = se; }, "selectedInnerBorderColor"), ip(H, function(se) { @@ -77953,14 +77965,14 @@ var cue = function(r) { }, "selectedBorderColor"), ip(z, function(se) { var de; re.rings = [{ color: se, widthFactor: 0.025 }], ne.rings = [{ color: se, widthFactor: 0.025 }].concat((function(ge) { - if (Array.isArray(ge)) return CP(ge); + if (Array.isArray(ge)) return TP(ge); })(de = ne.rings) || (function(ge) { if (typeof Symbol < "u" && ge[Symbol.iterator] != null || ge["@@iterator"] != null) return Array.from(ge); })(de) || (function(ge, Oe) { if (ge) { - if (typeof ge == "string") return CP(ge, Oe); + if (typeof ge == "string") return TP(ge, Oe); var ke = {}.toString.call(ge).slice(8, -1); - return ke === "Object" && ge.constructor && (ke = ge.constructor.name), ke === "Map" || ke === "Set" ? Array.from(ge) : ke === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ke) ? CP(ge, Oe) : void 0; + return ke === "Object" && ge.constructor && (ke = ge.constructor.name), ke === "Map" || ke === "Set" ? Array.from(ge) : ke === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ke) ? TP(ge, Oe) : void 0; } })(de) || (function() { throw new TypeError(`Invalid attempt to spread non-iterable instance. @@ -77974,10 +77986,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho ce.fontColor = se; }, "disabledItemFontColor"), ip(X, function(se) { fe = se; - }, "defaultNodeColor"), ip(Q, function(se) { + }, "defaultNodeColor"), ip(Z, function(se) { pe = se; }, "defaultRelationshipColor"), { nodeBorderStyles: { default: re, selected: ne }, relationshipBorderStyles: { default: yB.default, selected: le }, disabledItemStyles: ce, defaultNodeColor: fe, defaultRelationshipColor: pe, minimapViewportBoxColor: ue || qD }; - })(u), E = O.nodeBorderStyles, T = O.relationshipBorderStyles, P = O.disabledItemStyles, I = O.defaultNodeColor, k = O.defaultRelationshipColor, L = O.minimapViewportBoxColor, B = ka({ zoom: h || OP, minimapZoom: OP, defaultZoomLevel: OP, panX: c, panY: d, minimapPanX: 0, minimapPanY: 0, fitNodeIds: [], resetZoom: !1, zoomOptions: TP, forceWebGL: !1, renderer: g, disableWebGL: b, disableWebWorkers: m, disableTelemetry: S, fitMovement: 0, layout: a, layoutOptions: o, maxDistance: 0, maxNodeRadius: 50, nodeBorderStyles: E, minZoom: (0, Hi.isNil)(e) ? 0.075 : e, maxZoom: (0, Hi.isNil)(t) ? 10 : t, relationshipBorderStyles: T, disabledItemStyles: P, defaultNodeColor: I, defaultRelationshipColor: k, minimapViewportBoxColor: L, get minMinimapZoom() { + })(u), E = O.nodeBorderStyles, T = O.relationshipBorderStyles, P = O.disabledItemStyles, I = O.defaultNodeColor, k = O.defaultRelationshipColor, L = O.minimapViewportBoxColor, B = ka({ zoom: h || SP, minimapZoom: SP, defaultZoomLevel: SP, panX: c, panY: d, minimapPanX: 0, minimapPanY: 0, fitNodeIds: [], resetZoom: !1, zoomOptions: OP, forceWebGL: !1, renderer: g, disableWebGL: b, disableWebWorkers: m, disableTelemetry: S, fitMovement: 0, layout: a, layoutOptions: o, maxDistance: 0, maxNodeRadius: 50, nodeBorderStyles: E, minZoom: (0, Hi.isNil)(e) ? 0.075 : e, maxZoom: (0, Hi.isNil)(t) ? 10 : t, relationshipBorderStyles: T, disabledItemStyles: P, defaultNodeColor: I, defaultRelationshipColor: k, minimapViewportBoxColor: L, get minMinimapZoom() { return 0; }, get maxMinimapZoom() { return 0.2; @@ -77991,7 +78003,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho this.waypoints.data = j, this.waypoints.counter += 1; }), setZoomPan: ta(function(j, z, H, q) { if (i) { - var W = Object.values(this.nodes.idToPosition), $ = FP(W, this.minZoom, this.maxZoom, q, j, this.zoom); + var W = Object.values(this.nodes.idToPosition), $ = BP(W, this.minZoom, this.maxZoom, q, j, this.zoom); $ !== this.zoom && (this.zoom = $, $ < this.minZoom && (this.minZoom = $), j === $ && (this.panX = z, this.panY = H)); } else { var J = a1(j, this.zoom, this.minZoom, this.maxZoom); @@ -78001,7 +78013,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho }), setZoom: ta(function(j, z) { if (i) { var H = Object.values(this.nodes.idToPosition); - this.zoom = FP(H, this.minZoom, this.maxZoom, z, j, this.zoom), this.zoom < this.minZoom && (this.minZoom = this.zoom); + this.zoom = BP(H, this.minZoom, this.maxZoom, z, j, this.zoom), this.zoom < this.minZoom && (this.minZoom = this.zoom); } else this.zoom = a1(j, this.zoom, this.minZoom, this.maxZoom); this.fitNodeIds = [], this.fitMovement = 0, this.resetZoom = !1, this.forceWebGL = !1; }), setPan: ta(function(j, z) { @@ -78012,25 +78024,25 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho this.layoutOptions = j; }), fitNodes: ta(function(j) { var z = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; - this.fitNodeIds = (0, Hi.intersection)(j, (0, Hi.map)(this.nodes.items, "id")), this.zoomOptions = f9(f9({}, TP), z); + this.fitNodeIds = (0, Hi.intersection)(j, (0, Hi.map)(this.nodes.items, "id")), this.zoomOptions = f9(f9({}, OP), z); }), setZoomReset: ta(function() { this.resetZoom = !0; }), clearFit: ta(function() { - this.fitNodeIds = [], this.forceWebGL = !1, this.fitMovement = 0, this.zoomOptions = TP; + this.fitNodeIds = [], this.forceWebGL = !1, this.fitMovement = 0, this.zoomOptions = OP; }), clearReset: ta(function() { this.resetZoom = !1, this.fitMovement = 0; }), updateZoomToFit: ta(function(j, z, H, q) { var W; if (this.fitMovement = Math.abs(j - this.zoom) + Math.abs(z - this.panX) + Math.abs(H - this.panY), i) { var $ = Object.values(this.nodes.idToPosition); - (W = FP($, this.minZoom, this.maxZoom, q, j, this.zoom)) < this.minZoom && (this.minZoom = W); + (W = BP($, this.minZoom, this.maxZoom, q, j, this.zoom)) < this.minZoom && (this.minZoom = W); } else W = a1(j, this.zoom, this.minZoom, this.maxZoom); this.zoom = W, this.panX = z, this.panY = H; }), updateMinimapZoomToFit: ta(function(j, z, H) { this.minimapZoom = j, this.minimapPanX = z, this.minimapPanY = H; }), autorun: Hx, reaction: Tz }); return B; -}, fue = function(r) { +}, due = function(r) { return !!r && typeof r.id == "string" && r.id.length > 0; }, zw = io(1187); function c1(r) { @@ -78054,14 +78066,14 @@ function h9(r) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e] != null ? arguments[e] : {}; e % 2 ? d9(Object(t), !0).forEach(function(n) { - due(r, n, t[n]); + hue(r, n, t[n]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(r, Object.getOwnPropertyDescriptors(t)) : d9(Object(t)).forEach(function(n) { Object.defineProperty(r, n, Object.getOwnPropertyDescriptor(t, n)); }); } return r; } -function due(r, e, t) { +function hue(r, e, t) { return (e = (function(n) { var i = (function(a) { if (c1(a) != "object" || !a) return a; @@ -78078,26 +78090,26 @@ function due(r, e, t) { } function v9(r) { return (function(e) { - if (Array.isArray(e)) return zP(e); + if (Array.isArray(e)) return UP(e); })(r) || (function(e) { if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e); })(r) || (function(e, t) { if (e) { - if (typeof e == "string") return zP(e, t); + if (typeof e == "string") return UP(e, t); var n = {}.toString.call(e).slice(8, -1); - return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? zP(e, t) : void 0; + return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? UP(e, t) : void 0; } })(r) || (function() { throw new TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`); })(); } -function zP(r, e) { +function UP(r, e) { (e == null || e > r.length) && (e = r.length); for (var t = 0, n = Array(e); t < e; t++) n[t] = r[t]; return n; } -var qP = function(r) { +var zP = function(r) { return { id: r.elementId }; }, p9 = function(r) { return { id: r.elementId, from: r.startNodeElementId, to: r.endNodeElementId }; @@ -78113,8 +78125,8 @@ zw.resultTransformers.mappedResultTransformer({ map: function(r) { } return a; })(r).forEach(function(n) { - (0, zw.isNode)(n) ? (e.nodes.push(qP(n)), t.set(n.elementId, n)) : (0, zw.isPath)(n) ? n.segments.forEach(function(i) { - e.nodes.push(qP(i.start)), e.nodes.push(qP(i.end)), e.relationships.push(p9(i.relationship)), t.set(i.start.elementId, i.start), t.set(i.end.elementId, i.end), t.set(i.relationship.elementId, i.relationship); + (0, zw.isNode)(n) ? (e.nodes.push(zP(n)), t.set(n.elementId, n)) : (0, zw.isPath)(n) ? n.segments.forEach(function(i) { + e.nodes.push(zP(i.start)), e.nodes.push(zP(i.end)), e.relationships.push(p9(i.relationship)), t.set(i.start.elementId, i.start), t.set(i.end.elementId, i.end), t.set(i.relationship.elementId, i.relationship); }) : (0, zw.isRelationship)(n) && (e.relationships.push(p9(n)), t.set(n.elementId, n)); }), h9(h9({}, e), {}, { recordObjectMap: t }); } }); @@ -78125,7 +78137,7 @@ function f1(r) { return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e; }, f1(r); } -function w5(r, e) { +function _5(r, e) { var t = typeof Symbol < "u" && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = TG(r)) || e) { @@ -78183,17 +78195,17 @@ function Ms(r) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e] != null ? arguments[e] : {}; e % 2 ? y9(Object(t), !0).forEach(function(n) { - hue(r, n, t[n]); + vue(r, n, t[n]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(r, Object.getOwnPropertyDescriptors(t)) : y9(Object(t)).forEach(function(n) { Object.defineProperty(r, n, Object.getOwnPropertyDescriptor(t, n)); }); } return r; } -function hue(r, e, t) { +function vue(r, e, t) { return (e = CG(e)) in r ? Object.defineProperty(r, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : r[e] = t, r; } -function vue(r, e) { +function pue(r, e) { for (var t = 0; t < e.length; t++) { var n = e[t]; n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(r, CG(n.key), n); @@ -78228,20 +78240,20 @@ function Oc(r, e, t) { if (typeof r == "function" ? r === e : r.has(e)) return arguments.length < 3 ? e : t; throw new TypeError("Private element is not present on this object"); } -var u2 = /* @__PURE__ */ new WeakMap(), In = /* @__PURE__ */ new WeakMap(), mi = /* @__PURE__ */ new WeakMap(), wd = /* @__PURE__ */ new WeakMap(), mm = /* @__PURE__ */ new WeakMap(), pue = /* @__PURE__ */ new WeakMap(), Qc = /* @__PURE__ */ new WeakSet(), gue = (function() { +var u2 = /* @__PURE__ */ new WeakMap(), In = /* @__PURE__ */ new WeakMap(), mi = /* @__PURE__ */ new WeakMap(), wd = /* @__PURE__ */ new WeakMap(), mm = /* @__PURE__ */ new WeakMap(), gue = /* @__PURE__ */ new WeakMap(), Qc = /* @__PURE__ */ new WeakSet(), yue = (function() { return r = function t(n) { var i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [], a = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : [], o = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {}, s = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : {}; (function(u, l) { if (!(u instanceof l)) throw new TypeError("Cannot call a class as a function"); })(this, t), (function(u, l) { AG(u, l), l.add(u); - })(this, Qc), um(this, u2, void 0), um(this, In, void 0), um(this, mi, void 0), um(this, wd, void 0), um(this, mm, void 0), um(this, pue, void 0), o.disableTelemetry, Oc(Qc, this, yue).call(this, o), d1(u2, this, new Uae(s)), d1(wd, this, o), d1(mm, this, n), this.checkWebGLCompatibility(), Oc(Qc, this, m9).call(this, i, a, o); + })(this, Qc), um(this, u2, void 0), um(this, In, void 0), um(this, mi, void 0), um(this, wd, void 0), um(this, mm, void 0), um(this, gue, void 0), o.disableTelemetry, Oc(Qc, this, mue).call(this, o), d1(u2, this, new zae(s)), d1(wd, this, o), d1(mm, this, n), this.checkWebGLCompatibility(), Oc(Qc, this, m9).call(this, i, a, o); }, e = [{ key: "restart", value: function() { var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = arguments.length > 1 && arguments[1] !== void 0 && arguments[1], i = this.getNodePositions(), a = Vt(In, this), o = a.zoom, s = a.layout, u = a.layoutOptions, l = a.nodes, c = a.rels; Vt(mi, this).destroy(), Object.assign(Vt(wd, this), t), Oc(Qc, this, m9).call(this, l.items, c.items, Vt(wd, this)), this.setZoom(o), this.setLayout(s), this.setLayoutOptions(u), this.addAndUpdateElementsInGraph(l.items, c.items), n && this.setNodePositions(i); } }, { key: "addAndUpdateElementsInGraph", value: function() { var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : []; - Oc(Qc, this, GP).call(this, t), Oc(Qc, this, VP).call(this, n, t); + Oc(Qc, this, qP).call(this, t), Oc(Qc, this, GP).call(this, n, t); var i = { added: !1, updated: !1 }; Vt(In, this).nodes.update(t, Ms({}, i)), Vt(In, this).rels.update(n, Ms({}, i)), Vt(In, this).nodes.add(t, Ms({}, i)), Vt(In, this).rels.add(n, Ms({}, i)), Vt(In, this).setGraphUpdated(), Vt(mi, this).updateHtmlOverlay(); } }, { key: "getSelectedNodes", value: function() { @@ -78261,14 +78273,14 @@ var u2 = /* @__PURE__ */ new WeakMap(), In = /* @__PURE__ */ new WeakMap(), mi = }), s = n.filter(function(u) { return Vt(In, i).rels.idToItem[u.id] !== void 0; }); - Oc(Qc, this, GP).call(this, o), Oc(Qc, this, VP).call(this, s, t), Vt(In, this).nodes.update(o, Ms({}, a)), Vt(In, this).rels.update(s, Ms({}, a)), Vt(mi, this).updateHtmlOverlay(); + Oc(Qc, this, qP).call(this, o), Oc(Qc, this, GP).call(this, s, t), Vt(In, this).nodes.update(o, Ms({}, a)), Vt(In, this).rels.update(s, Ms({}, a)), Vt(mi, this).updateHtmlOverlay(); } }, { key: "addElementsToGraph", value: function(t, n) { - Oc(Qc, this, GP).call(this, t), Oc(Qc, this, VP).call(this, n, t); + Oc(Qc, this, qP).call(this, t), Oc(Qc, this, GP).call(this, n, t); var i = { added: !1, updated: !1 }; Vt(In, this).nodes.add(t, Ms({}, i)), Vt(In, this).rels.add(n, Ms({}, i)), Vt(mi, this).updateHtmlOverlay(); } }, { key: "removeNodesWithIds", value: function(t) { if (Array.isArray(t) && !(0, Hi.isEmpty)(t)) { - var n, i = {}, a = w5(t); + var n, i = {}, a = _5(t); try { for (a.s(); !(n = a.n()).done; ) i[n.value] = !0; } catch (c) { @@ -78276,7 +78288,7 @@ var u2 = /* @__PURE__ */ new WeakMap(), In = /* @__PURE__ */ new WeakMap(), mi = } finally { a.f(); } - var o, s = [], u = w5(Vt(In, this).rels.items); + var o, s = [], u = _5(Vt(In, this).rels.items); try { for (u.s(); !(o = u.n()).done; ) { var l = o.value; @@ -78287,7 +78299,7 @@ var u2 = /* @__PURE__ */ new WeakMap(), In = /* @__PURE__ */ new WeakMap(), mi = } finally { u.f(); } - s.length > 0 && Oc(Qc, this, b9).call(this, s), Oc(Qc, this, mue).call(this, t), Vt(In, this).setGraphUpdated(), Vt(mi, this).updateHtmlOverlay(); + s.length > 0 && Oc(Qc, this, b9).call(this, s), Oc(Qc, this, bue).call(this, t), Vt(In, this).setGraphUpdated(), Vt(mi, this).updateHtmlOverlay(); } } }, { key: "removeRelationshipsWithIds", value: function(t) { Array.isArray(t) && !(0, Hi.isEmpty)(t) && (Oc(Qc, this, b9).call(this, t), Vt(In, this).setGraphUpdated(), Vt(mi, this).updateHtmlOverlay()); @@ -78367,17 +78379,17 @@ var u2 = /* @__PURE__ */ new WeakMap(), In = /* @__PURE__ */ new WeakMap(), mi = var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : ["node", "relationship"], i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : { hitNodeMarginWidth: 0 }, a = Vt(In, this), o = a.zoom, s = a.panX, u = a.panY, l = a.renderer, c = pG(t, Vt(mm, this), o, s, u), f = c.x, d = c.y, h = l === Mg ? (function(p, g, y) { var b = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : ["node", "relationship"], _ = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : {}, m = [], x = [], S = y.nodes, O = y.rels; return b.includes("node") && m.push.apply(m, Bw((function(E, T) { - var P, I = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {}, k = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : 0, L = [], B = m5(arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : []); + var P, I = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {}, k = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : 0, L = [], B = y5(arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : []); try { var j = function() { var z, H = P.value, q = I[H.id]; if ((q == null ? void 0 : q.x) === void 0 || q.y === void 0) return 1; - var W = ((z = H.size) !== null && z !== void 0 ? z : ha) * $n(), $ = { x: q.x - E, y: q.y - T }, J = Math.pow(W, 2), X = Math.pow(W + k, 2), Q = Math.pow($.x, 2) + Math.pow($.y, 2), ue = Math.sqrt(Q); - if (Q < X) { + var W = ((z = H.size) !== null && z !== void 0 ? z : ha) * $n(), $ = { x: q.x - E, y: q.y - T }, J = Math.pow(W, 2), X = Math.pow(W + k, 2), Z = Math.pow($.x, 2) + Math.pow($.y, 2), ue = Math.sqrt(Z); + if (Z < X) { var re = L.findIndex(function(ne) { return ne.distance > ue; }); - L.splice(re !== -1 ? re : L.length, 0, { data: H, targetCoordinates: { x: q.x, y: q.y }, pointerCoordinates: { x: E, y: T }, distanceVector: $, distance: ue, insideNode: Q < J }); + L.splice(re !== -1 ? re : L.length, 0, { data: H, targetCoordinates: { x: q.x, y: q.y }, pointerCoordinates: { x: E, y: T }, distanceVector: $, distance: ue, insideNode: Z < J }); } }; for (B.s(); !(P = B.n()).done; ) j(); @@ -78388,7 +78400,7 @@ var u2 = /* @__PURE__ */ new WeakMap(), In = /* @__PURE__ */ new WeakMap(), mi = } return L; })(p, g, S.items, S.idToPosition, _.hitNodeMarginWidth))), b.includes("relationship") && x.push.apply(x, Bw((function(E, T) { - var P, I = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {}, k = [], L = {}, B = m5(arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : []); + var P, I = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {}, k = [], L = {}, B = y5(arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : []); try { var j = function() { var z = P.value, H = z.from, q = z.to; @@ -78396,9 +78408,9 @@ var u2 = /* @__PURE__ */ new WeakMap(), In = /* @__PURE__ */ new WeakMap(), mi = var W = I[H], $ = I[q]; if ((W == null ? void 0 : W.x) === void 0 || W.y === void 0 || ($ == null ? void 0 : $.x) === void 0 || $.y === void 0) return 0; var J = YD({ x: W.x, y: W.y }, { x: $.x, y: $.y }, { x: E, y: T }); - if (J <= Hse) { - var X = k.findIndex(function(Q) { - return Q.distance > J; + if (J <= Wse) { + var X = k.findIndex(function(Z) { + return Z.distance > J; }); k.splice(X !== -1 ? X : k.length, 0, { data: z, fromTargetCoordinates: { x: W.x, y: W.y }, toTargetCoordinates: { x: $.x, y: $.y }, pointerCoordinates: { x: E, y: T }, distance: J }); } @@ -78437,13 +78449,13 @@ var u2 = /* @__PURE__ */ new WeakMap(), In = /* @__PURE__ */ new WeakMap(), mi = } t === void 0 && (Vt(wd, this).disableWebGL = !n); } - } }], e && vue(r.prototype, e), Object.defineProperty(r, "prototype", { writable: !1 }), r; + } }], e && pue(r.prototype, e), Object.defineProperty(r, "prototype", { writable: !1 }), r; var r, e; })(); function m9() { var r, e = this, t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [], i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}; - d1(In, this, cue(i)), i.minimapContainer instanceof HTMLElement || delete i.minimapContainer, d1(mi, this, new Jse(Vt(In, this), Vt(mm, this), i)), this.addAndUpdateElementsInGraph(t, n), Vt(mi, this).on("restart", this.restart.bind(this)); - var a, o, s = w5((a = Vt(u2, this).callbacks, Object.entries(a))); + d1(In, this, fue(i)), i.minimapContainer instanceof HTMLElement || delete i.minimapContainer, d1(mi, this, new eue(Vt(In, this), Vt(mm, this), i)), this.addAndUpdateElementsInGraph(t, n), Vt(mi, this).on("restart", this.restart.bind(this)); + var a, o, s = _5((a = Vt(u2, this).callbacks, Object.entries(a))); try { var u = function() { var l, c, f = (l = o.value, c = 2, (function(p) { @@ -78487,7 +78499,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho Vt(mi, e).callIfRegistered("onInitialization"); }), (r = Vt(mm, this)) === null || r === void 0 || r.getAttribute("id"), Vt(wd, this).disableTelemetry; } -function yue(r) { +function mue(r) { var e, t = r.logging; (t == null ? void 0 : t.level) !== void 0 && (e = t.level, bi.setLevel(e), (function(n, i) { var a = n.methodFactory; @@ -78500,7 +78512,7 @@ function yue(r) { }, n.setLevel(n.getLevel()); })(bi, t)); } -function mue(r) { +function bue(r) { var e = Array.isArray(r) ? r : [r], t = Vt(In, this), n = t.nodes, i = t.fitNodeIds; n.remove(e, { removed: !1 }), i.length && e.find(function(a) { return i.includes(a); @@ -78512,7 +78524,7 @@ function b9(r) { var e = Array.isArray(r) ? r : [r]; Vt(In, this).rels.remove(e, { removed: !1 }); } -function GP(r) { +function qP(r) { var e = r.find(function(n) { return !(function(i) { return !!i && typeof i.id == "string" && i.id.length > 0; @@ -78523,14 +78535,14 @@ function GP(r) { throw /^\d+$/.test(e.id) || (t = " Node ids need to be numeric strings. Strings that contain anything other than numbers are not yet supported."), new TypeError("Invalid node provided: ".concat(JSON.stringify(e), ".").concat(t)); } } -function VP(r) { +function GP(r) { for (var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [], t = "", n = null, i = Vt(In, this), a = i.nodes, o = i.rels, s = {}, u = 0; u < e.length; u++) { var l = e[u]; s[l.id] = l; } for (var c = Ms(Ms({}, a.idToItem), s), f = o.idToItem, d = 0; d < r.length; d++) { var h = r[d]; - if (!fue(h)) { + if (!due(h)) { n = h, /^\d+$/.test(h.id) && (t = " Node ids need to be numeric strings. Strings that contain anything other than numbers are not yet supported."); break; } @@ -78548,7 +78560,7 @@ function VP(r) { } if (n !== null) throw new TypeError("Invalid relationship provided: ".concat(JSON.stringify(n), ".").concat(t)); } -const _9 = gue, bue = "NVL_basic-wrapper", _ue = "NVL_interactive-wrapper"; +const _9 = yue, _ue = "NVL_basic-wrapper", wue = "NVL_interactive-wrapper"; var os = Sa(); const w9 = (r, e) => { const t = os.keyBy(r, "id"), n = os.keyBy(e, "id"), i = os.sortBy(os.keys(t)), a = os.sortBy(os.keys(n)), o = [], s = [], u = []; @@ -78570,7 +78582,7 @@ const w9 = (r, e) => { removed: s.map((f) => t[f]).filter((f) => !os.isNil(f)), updated: u.map((f) => n[f]).filter((f) => !os.isNil(f)) }; -}, wue = (r, e) => { +}, xue = (r, e) => { const t = os.keyBy(r, "id"); return e.map((n) => { const i = t[n.id]; @@ -78578,12 +78590,12 @@ const w9 = (r, e) => { (s === "id" || o !== i[s]) && Object.assign(a, { [s]: o }); }); }).filter((n) => n !== null && Object.keys(n).length > 1); -}, xue = (r, e) => os.isEqual(r, e), Eue = (r) => { +}, Eue = (r, e) => os.isEqual(r, e), Sue = (r) => { const e = me.useRef(); - return xue(r, e.current) || (e.current = r), e.current; -}, Sue = (r, e) => { - me.useEffect(r, e.map(Eue)); -}, Oue = me.memo(me.forwardRef(({ nodes: r, rels: e, layout: t, layoutOptions: n, nvlCallbacks: i = {}, nvlOptions: a = {}, positions: o = [], zoom: s, pan: u, onInitializationError: l, ...c }, f) => { + return Eue(r, e.current) || (e.current = r), e.current; +}, Oue = (r, e) => { + me.useEffect(r, e.map(Sue)); +}, Tue = me.memo(me.forwardRef(({ nodes: r, rels: e, layout: t, layoutOptions: n, nvlCallbacks: i = {}, nvlOptions: a = {}, positions: o = [], zoom: s, pan: u, onInitializationError: l, ...c }, f) => { const d = me.useRef(null), h = me.useRef(void 0), p = me.useRef(void 0); me.useImperativeHandle(f, () => Object.getOwnPropertyNames(_9.prototype).reduce((S, O) => ({ ...S, @@ -78611,7 +78623,7 @@ const w9 = (r, e) => { }, [g.current, a.minimapContainer]), me.useEffect(() => { if (d.current === null) return; - const x = w9(y, r), S = wue(y, r), O = w9(_, e); + const x = w9(y, r), S = xue(y, r), O = w9(_, e); if (x.added.length === 0 && x.removed.length === 0 && S.length === 0 && O.added.length === 0 && O.removed.length === 0 && O.updated.length === 0) return; m(e), b(r); @@ -78622,7 +78634,7 @@ const w9 = (r, e) => { }, [y, _, r, e]), me.useEffect(() => { const x = t ?? a.layout; d.current === null || x === void 0 || d.current.setLayout(x); - }, [t, a.layout]), Sue(() => { + }, [t, a.layout]), Oue(() => { const x = n ?? (a == null ? void 0 : a.layoutOptions); d.current === null || x === void 0 || d.current.setLayoutOptions(x); }, [n, a.layoutOptions]), me.useEffect(() => { @@ -78636,8 +78648,8 @@ const w9 = (r, e) => { return; const x = h.current, S = p.current, O = s !== void 0 && s !== x, E = u !== void 0 && (u.x !== (S == null ? void 0 : S.x) || u.y !== S.y); O && E ? d.current.setZoomAndPan(s, u.x, u.y) : O ? d.current.setZoom(s) : E && d.current.setPan(u.x, u.y), h.current = s, p.current = u; - }, [s, u]), Te.jsx("div", { id: bue, ref: g, style: { height: "100%", outline: "0" }, ...c }); -})), Ym = 10, HP = 10, vh = { + }, [s, u]), Ce.jsx("div", { id: _ue, ref: g, style: { height: "100%", outline: "0" }, ...c }); +})), Ym = 10, VP = 10, vh = { frameWidth: 3, frameColor: "#a9a9a9", color: "#e0e0e0", @@ -78785,14 +78797,14 @@ class Wp { } const sb = (r) => Math.floor(Math.random() * Math.pow(10, r)).toString(), PG = (r, e) => { const t = Math.abs(r.clientX - e.x), n = Math.abs(r.clientY - e.y); - return t > HP || n > HP ? !0 : Math.pow(t, 2) + Math.pow(n, 2) > HP; + return t > VP || n > VP ? !0 : Math.pow(t, 2) + Math.pow(n, 2) > VP; }, Ap = (r, e) => { const t = r.getBoundingClientRect(), n = window.devicePixelRatio || 1; return { x: (e.clientX - t.left) * n, y: (e.clientY - t.top) * n }; -}, Tue = (r, e) => { +}, Cue = (r, e) => { const t = r.getBoundingClientRect(), n = window.devicePixelRatio || 1; return { x: (e.clientX - t.left - t.width * 0.5) * n, @@ -78939,7 +78951,7 @@ class iv extends Wp { this.addEventListener("mousedown", this.handleMouseDown, !0), this.addEventListener("click", this.handleClick, !0), this.addEventListener("dblclick", this.handleDoubleClick, !0), this.addEventListener("contextmenu", this.handleRightClick, !0); } } -class WP extends Wp { +class HP extends Wp { /** * Creates a new instance of the drag node interaction handler. * @param nvl - The NVL instance to attach the interaction handler to. @@ -78996,7 +79008,7 @@ const lp = { width: 1 } }; -class YP extends Wp { +class WP extends Wp { constructor(t, n = {}) { var i, a; super(t, n); @@ -79126,7 +79138,7 @@ class YP extends Wp { }); } } -class Cue extends Wp { +class Aue extends Wp { constructor(t, n = { drawShadowOnHover: !1 }) { super(t, n); Ft(this, "currentHoveredElementId"); @@ -79175,12 +79187,12 @@ class Cue extends Wp { this.removeEventListener("mousemove", this.handleHover, !0); } } -var qw = { exports: {} }, dx = { exports: {} }, Aue = dx.exports, E9; -function Rue() { +var qw = { exports: {} }, dx = { exports: {} }, Rue = dx.exports, E9; +function Pue() { return E9 || (E9 = 1, (function(r, e) { (function(t, n) { r.exports = n(); - })(Aue, function() { + })(Rue, function() { function t(_, m, x, S, O) { (function E(T, P, I, k, L) { for (; k > I; ) { @@ -79188,12 +79200,12 @@ function Rue() { var B = k - I + 1, j = P - I + 1, z = Math.log(B), H = 0.5 * Math.exp(2 * z / 3), q = 0.5 * Math.sqrt(z * H * (B - H) / B) * (j - B / 2 < 0 ? -1 : 1), W = Math.max(I, Math.floor(P - j * H / B + q)), $ = Math.min(k, Math.floor(P + (B - j) * H / B + q)); E(T, P, W, $, L); } - var J = T[P], X = I, Q = k; - for (n(T, I, P), L(T[k], J) > 0 && n(T, I, k); X < Q; ) { - for (n(T, X, Q), X++, Q--; L(T[X], J) < 0; ) X++; - for (; L(T[Q], J) > 0; ) Q--; + var J = T[P], X = I, Z = k; + for (n(T, I, P), L(T[k], J) > 0 && n(T, I, k); X < Z; ) { + for (n(T, X, Z), X++, Z--; L(T[X], J) < 0; ) X++; + for (; L(T[Z], J) > 0; ) Z--; } - L(T[I], J) === 0 ? n(T, I, Q) : n(T, ++Q, k), Q <= P && (I = Q + 1), P <= Q && (k = Q - 1); + L(T[I], J) === 0 ? n(T, I, Z) : n(T, ++Z, k), Z <= P && (I = Z + 1), P <= Z && (k = Z - 1); } })(_, m, x || 0, S || _.length - 1, O || i); } @@ -79388,8 +79400,8 @@ function Rue() { }); })(dx)), dx.exports; } -class Pue { - constructor(e = [], t = Mue) { +class Mue { + constructor(e = [], t = Due) { if (this.data = e, this.length = this.data.length, this.compare = t, this.length > 0) for (let n = (this.length >> 1) - 1; n >= 0; n--) this._down(n); } @@ -79424,16 +79436,16 @@ class Pue { t[e] = a; } } -function Mue(r, e) { +function Due(r, e) { return r < e ? -1 : r > e ? 1 : 0; } -const Due = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +const kue = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - default: Pue -}, Symbol.toStringTag, { value: "Module" })), kue = /* @__PURE__ */ KG(Due); -var ub = { exports: {} }, XP, S9; -function Iue() { - return S9 || (S9 = 1, XP = function(e, t, n, i) { + default: Mue +}, Symbol.toStringTag, { value: "Module" })), Iue = /* @__PURE__ */ KG(kue); +var ub = { exports: {} }, YP, S9; +function Nue() { + return S9 || (S9 = 1, YP = function(e, t, n, i) { var a = e[0], o = e[1], s = !1; n === void 0 && (n = 0), i === void 0 && (i = t.length); for (var u = (i - n) / 2, l = 0, c = u - 1; l < u; c = l++) { @@ -79441,11 +79453,11 @@ function Iue() { g && (s = !s); } return s; - }), XP; + }), YP; } -var $P, O9; -function Nue() { - return O9 || (O9 = 1, $P = function(e, t, n, i) { +var XP, O9; +function Lue() { + return O9 || (O9 = 1, XP = function(e, t, n, i) { var a = e[0], o = e[1], s = !1; n === void 0 && (n = 0), i === void 0 && (i = t.length); for (var u = i - n, l = 0, c = u - 1; l < u; c = l++) { @@ -79453,23 +79465,23 @@ function Nue() { g && (s = !s); } return s; - }), $P; + }), XP; } var T9; -function Lue() { +function jue() { if (T9) return ub.exports; T9 = 1; - var r = Iue(), e = Nue(); + var r = Nue(), e = Lue(); return ub.exports = function(n, i, a, o) { return i.length > 0 && Array.isArray(i[0]) ? e(n, i, a, o) : r(n, i, a, o); }, ub.exports.nested = e, ub.exports.flat = r, ub.exports; } -var Ab = { exports: {} }, jue = Ab.exports, C9; -function Bue() { +var Ab = { exports: {} }, Bue = Ab.exports, C9; +function Fue() { return C9 || (C9 = 1, (function(r, e) { (function(t, n) { n(e); - })(jue, function(t) { + })(Bue, function(t) { const i = 33306690738754706e-32; function a(g, y, b, _, m) { let x, S, O, E, T = y[0], P = _[0], I = 0, k = 0; @@ -79489,20 +79501,20 @@ function Bue() { if (S === 0 || O === 0 || S > 0 != O > 0) return E; const T = Math.abs(S + O); return Math.abs(E) >= s * T ? E : -(function(P, I, k, L, B, j, z) { - let H, q, W, $, J, X, Q, ue, re, ne, le, ce, pe, fe, se, de, ge, Oe; - const ke = P - B, Me = k - B, Ne = I - j, Ce = L - j; - J = (se = (ue = ke - (Q = (X = 134217729 * ke) - (X - ke))) * (ne = Ce - (re = (X = 134217729 * Ce) - (X - Ce))) - ((fe = ke * Ce) - Q * re - ue * re - Q * ne)) - (le = se - (ge = (ue = Ne - (Q = (X = 134217729 * Ne) - (X - Ne))) * (ne = Me - (re = (X = 134217729 * Me) - (X - Me))) - ((de = Ne * Me) - Q * re - ue * re - Q * ne))), c[0] = se - (le + J) + (J - ge), J = (pe = fe - ((ce = fe + le) - (J = ce - fe)) + (le - J)) - (le = pe - de), c[1] = pe - (le + J) + (J - de), J = (Oe = ce + le) - ce, c[2] = ce - (Oe - J) + (le - J), c[3] = Oe; - let Y = (function(De, Ie) { + let H, q, W, $, J, X, Z, ue, re, ne, le, ce, pe, fe, se, de, ge, Oe; + const ke = P - B, De = k - B, Ne = I - j, Te = L - j; + J = (se = (ue = ke - (Z = (X = 134217729 * ke) - (X - ke))) * (ne = Te - (re = (X = 134217729 * Te) - (X - Te))) - ((fe = ke * Te) - Z * re - ue * re - Z * ne)) - (le = se - (ge = (ue = Ne - (Z = (X = 134217729 * Ne) - (X - Ne))) * (ne = De - (re = (X = 134217729 * De) - (X - De))) - ((de = Ne * De) - Z * re - ue * re - Z * ne))), c[0] = se - (le + J) + (J - ge), J = (pe = fe - ((ce = fe + le) - (J = ce - fe)) + (le - J)) - (le = pe - de), c[1] = pe - (le + J) + (J - de), J = (Oe = ce + le) - ce, c[2] = ce - (Oe - J) + (le - J), c[3] = Oe; + let Y = (function(Me, Ie) { let Ye = Ie[0]; - for (let ot = 1; ot < De; ot++) Ye += Ie[ot]; + for (let ot = 1; ot < Me; ot++) Ye += Ie[ot]; return Ye; - })(4, c), Z = u * z; - if (Y >= Z || -Y >= Z || (H = P - (ke + (J = P - ke)) + (J - B), W = k - (Me + (J = k - Me)) + (J - B), q = I - (Ne + (J = I - Ne)) + (J - j), $ = L - (Ce + (J = L - Ce)) + (J - j), H === 0 && q === 0 && W === 0 && $ === 0) || (Z = l * z + i * Math.abs(Y), (Y += ke * $ + Ce * H - (Ne * W + Me * q)) >= Z || -Y >= Z)) return Y; - J = (se = (ue = H - (Q = (X = 134217729 * H) - (X - H))) * (ne = Ce - (re = (X = 134217729 * Ce) - (X - Ce))) - ((fe = H * Ce) - Q * re - ue * re - Q * ne)) - (le = se - (ge = (ue = q - (Q = (X = 134217729 * q) - (X - q))) * (ne = Me - (re = (X = 134217729 * Me) - (X - Me))) - ((de = q * Me) - Q * re - ue * re - Q * ne))), p[0] = se - (le + J) + (J - ge), J = (pe = fe - ((ce = fe + le) - (J = ce - fe)) + (le - J)) - (le = pe - de), p[1] = pe - (le + J) + (J - de), J = (Oe = ce + le) - ce, p[2] = ce - (Oe - J) + (le - J), p[3] = Oe; + })(4, c), Q = u * z; + if (Y >= Q || -Y >= Q || (H = P - (ke + (J = P - ke)) + (J - B), W = k - (De + (J = k - De)) + (J - B), q = I - (Ne + (J = I - Ne)) + (J - j), $ = L - (Te + (J = L - Te)) + (J - j), H === 0 && q === 0 && W === 0 && $ === 0) || (Q = l * z + i * Math.abs(Y), (Y += ke * $ + Te * H - (Ne * W + De * q)) >= Q || -Y >= Q)) return Y; + J = (se = (ue = H - (Z = (X = 134217729 * H) - (X - H))) * (ne = Te - (re = (X = 134217729 * Te) - (X - Te))) - ((fe = H * Te) - Z * re - ue * re - Z * ne)) - (le = se - (ge = (ue = q - (Z = (X = 134217729 * q) - (X - q))) * (ne = De - (re = (X = 134217729 * De) - (X - De))) - ((de = q * De) - Z * re - ue * re - Z * ne))), p[0] = se - (le + J) + (J - ge), J = (pe = fe - ((ce = fe + le) - (J = ce - fe)) + (le - J)) - (le = pe - de), p[1] = pe - (le + J) + (J - de), J = (Oe = ce + le) - ce, p[2] = ce - (Oe - J) + (le - J), p[3] = Oe; const ie = a(4, c, 4, p, f); - J = (se = (ue = ke - (Q = (X = 134217729 * ke) - (X - ke))) * (ne = $ - (re = (X = 134217729 * $) - (X - $))) - ((fe = ke * $) - Q * re - ue * re - Q * ne)) - (le = se - (ge = (ue = Ne - (Q = (X = 134217729 * Ne) - (X - Ne))) * (ne = W - (re = (X = 134217729 * W) - (X - W))) - ((de = Ne * W) - Q * re - ue * re - Q * ne))), p[0] = se - (le + J) + (J - ge), J = (pe = fe - ((ce = fe + le) - (J = ce - fe)) + (le - J)) - (le = pe - de), p[1] = pe - (le + J) + (J - de), J = (Oe = ce + le) - ce, p[2] = ce - (Oe - J) + (le - J), p[3] = Oe; + J = (se = (ue = ke - (Z = (X = 134217729 * ke) - (X - ke))) * (ne = $ - (re = (X = 134217729 * $) - (X - $))) - ((fe = ke * $) - Z * re - ue * re - Z * ne)) - (le = se - (ge = (ue = Ne - (Z = (X = 134217729 * Ne) - (X - Ne))) * (ne = W - (re = (X = 134217729 * W) - (X - W))) - ((de = Ne * W) - Z * re - ue * re - Z * ne))), p[0] = se - (le + J) + (J - ge), J = (pe = fe - ((ce = fe + le) - (J = ce - fe)) + (le - J)) - (le = pe - de), p[1] = pe - (le + J) + (J - de), J = (Oe = ce + le) - ce, p[2] = ce - (Oe - J) + (le - J), p[3] = Oe; const we = a(ie, f, 4, p, d); - J = (se = (ue = H - (Q = (X = 134217729 * H) - (X - H))) * (ne = $ - (re = (X = 134217729 * $) - (X - $))) - ((fe = H * $) - Q * re - ue * re - Q * ne)) - (le = se - (ge = (ue = q - (Q = (X = 134217729 * q) - (X - q))) * (ne = W - (re = (X = 134217729 * W) - (X - W))) - ((de = q * W) - Q * re - ue * re - Q * ne))), p[0] = se - (le + J) + (J - ge), J = (pe = fe - ((ce = fe + le) - (J = ce - fe)) + (le - J)) - (le = pe - de), p[1] = pe - (le + J) + (J - de), J = (Oe = ce + le) - ce, p[2] = ce - (Oe - J) + (le - J), p[3] = Oe; + J = (se = (ue = H - (Z = (X = 134217729 * H) - (X - H))) * (ne = $ - (re = (X = 134217729 * $) - (X - $))) - ((fe = H * $) - Z * re - ue * re - Z * ne)) - (le = se - (ge = (ue = q - (Z = (X = 134217729 * q) - (X - q))) * (ne = W - (re = (X = 134217729 * W) - (X - W))) - ((de = q * W) - Z * re - ue * re - Z * ne))), p[0] = se - (le + J) + (J - ge), J = (pe = fe - ((ce = fe + le) - (J = ce - fe)) + (le - J)) - (le = pe - de), p[1] = pe - (le + J) + (J - de), J = (Oe = ce + le) - ce, p[2] = ce - (Oe - J) + (le - J), p[3] = Oe; const Ee = a(we, d, 4, p, h); return h[Ee - 1]; })(g, y, b, _, m, x, T); @@ -79513,25 +79525,25 @@ function Bue() { })(Ab, Ab.exports)), Ab.exports; } var A9; -function Fue() { +function Uue() { if (A9) return qw.exports; A9 = 1; - var r = Rue(), e = kue, t = Lue(), n = Bue().orient2d; + var r = Pue(), e = Iue, t = jue(), n = Fue().orient2d; e.default && (e = e.default), qw.exports = i, qw.exports.default = i; function i(x, S, O) { S = Math.max(0, S === void 0 ? 2 : S), O = O || 0; var E = h(x), T = new r(16); - T.toBBox = function(Q) { + T.toBBox = function(Z) { return { - minX: Q[0], - minY: Q[1], - maxX: Q[0], - maxY: Q[1] + minX: Z[0], + minY: Z[1], + maxX: Z[0], + maxY: Z[1] }; - }, T.compareMinX = function(Q, ue) { - return Q[0] - ue[0]; - }, T.compareMinY = function(Q, ue) { - return Q[1] - ue[1]; + }, T.compareMinX = function(Z, ue) { + return Z[0] - ue[0]; + }, T.compareMinY = function(Z, ue) { + return Z[1] - ue[1]; }, T.load(x); for (var P = [], I = 0, k; I < E.length; I++) { var L = E[I]; @@ -79637,10 +79649,10 @@ function Fue() { return P = x[0] - E, I = x[1] - T, P * P + I * I; } function b(x, S, O, E, T, P, I, k) { - var L = O - x, B = E - S, j = I - T, z = k - P, H = x - T, q = S - P, W = L * L + B * B, $ = L * j + B * z, J = j * j + z * z, X = L * H + B * q, Q = j * H + z * q, ue = W * J - $ * $, re, ne, le, ce, pe = ue, fe = ue; - ue === 0 ? (ne = 0, pe = 1, ce = Q, fe = J) : (ne = $ * Q - J * X, ce = W * Q - $ * X, ne < 0 ? (ne = 0, ce = Q, fe = J) : ne > pe && (ne = pe, ce = Q + $, fe = J)), ce < 0 ? (ce = 0, -X < 0 ? ne = 0 : -X > W ? ne = pe : (ne = -X, pe = W)) : ce > fe && (ce = fe, -X + $ < 0 ? ne = 0 : -X + $ > W ? ne = pe : (ne = -X + $, pe = W)), re = ne === 0 ? 0 : ne / pe, le = ce === 0 ? 0 : ce / fe; - var se = (1 - re) * x + re * O, de = (1 - re) * S + re * E, ge = (1 - le) * T + le * I, Oe = (1 - le) * P + le * k, ke = ge - se, Me = Oe - de; - return ke * ke + Me * Me; + var L = O - x, B = E - S, j = I - T, z = k - P, H = x - T, q = S - P, W = L * L + B * B, $ = L * j + B * z, J = j * j + z * z, X = L * H + B * q, Z = j * H + z * q, ue = W * J - $ * $, re, ne, le, ce, pe = ue, fe = ue; + ue === 0 ? (ne = 0, pe = 1, ce = Z, fe = J) : (ne = $ * Z - J * X, ce = W * Z - $ * X, ne < 0 ? (ne = 0, ce = Z, fe = J) : ne > pe && (ne = pe, ce = Z + $, fe = J)), ce < 0 ? (ce = 0, -X < 0 ? ne = 0 : -X > W ? ne = pe : (ne = -X, pe = W)) : ce > fe && (ce = fe, -X + $ < 0 ? ne = 0 : -X + $ > W ? ne = pe : (ne = -X + $, pe = W)), re = ne === 0 ? 0 : ne / pe, le = ce === 0 ? 0 : ce / fe; + var se = (1 - re) * x + re * O, de = (1 - re) * S + re * E, ge = (1 - le) * T + le * I, Oe = (1 - le) * P + le * k, ke = ge - se, De = Oe - de; + return ke * ke + De * De; } function _(x, S) { return x[0] === S[0] ? x[1] - S[1] : x[0] - S[0]; @@ -79661,22 +79673,22 @@ function Fue() { } return qw.exports; } -var Uue = Fue(); -const zue = /* @__PURE__ */ Bp(Uue), R9 = 10, que = 500, Gue = (r, e, t, n) => { +var zue = Uue(); +const que = /* @__PURE__ */ Bp(zue), R9 = 10, Gue = 500, Vue = (r, e, t, n) => { const i = (n[1] - t[1]) * (e[0] - r[0]) - (n[0] - t[0]) * (e[1] - r[1]); if (i === 0) return !1; const a = ((r[1] - t[1]) * (n[0] - t[0]) - (r[0] - t[0]) * (n[1] - t[1])) / i, o = ((t[0] - r[0]) * (e[1] - r[1]) - (t[1] - r[1]) * (e[0] - r[0])) / i; return a > 0 && a < 1 && o > 0 && o < 1; -}, Vue = (r) => { +}, Hue = (r) => { for (let e = 0; e < r.length - 1; e++) for (let t = e + 2; t < r.length; t++) { const n = r[e] ?? [0, 0], i = r[e + 1] ?? [0, 0], a = r[t] ?? [0, 0], o = t < r.length - 1 ? t + 1 : 0, s = r[o] ?? [0, 0]; - if (Gue(n, i, a, s)) + if (Vue(n, i, a, s)) return !0; } return !1; -}, Hue = (r, e, t) => { +}, Wue = (r, e, t) => { let n = !1; for (let i = 0, a = t.length - 1; i < t.length; a = i, i += 1) { const o = t[i], s = t[a]; @@ -79719,7 +79731,7 @@ class P9 extends Wp { Ft(this, "getLassoItems", (t) => { const n = t.map((l) => j1(this.nvlInstance, l)), i = this.nvlInstance.getNodePositions(), a = /* @__PURE__ */ new Set(); for (const l of i) - l.x === void 0 || l.y === void 0 || l.id === void 0 || Hue(l.x, l.y, n) && a.add(l.id); + l.x === void 0 || l.y === void 0 || l.id === void 0 || Wue(l.x, l.y, n) && a.add(l.id); const o = this.nvlInstance.getRelationships(), s = []; for (const l of o) a.has(l.from) && a.has(l.to) && s.push(l); @@ -79732,8 +79744,8 @@ class P9 extends Wp { if (!this.active) return; this.active = !1, this.toggleGlobalTextSelection(!0, this.endLasso); - const n = this.points.map((s) => [s.x, s.y]), a = (Vue(n) ? zue(n, 2) : n).map((s) => ({ x: s[0], y: s[1] })).filter((s) => s.x !== void 0 && s.y !== void 0); - this.overlayRenderer.drawLasso(a, !1, !0), setTimeout(() => this.overlayRenderer.clear(), que); + const n = this.points.map((s) => [s.x, s.y]), a = (Hue(n) ? que(n, 2) : n).map((s) => ({ x: s[0], y: s[1] })).filter((s) => s.x !== void 0 && s.y !== void 0); + this.overlayRenderer.drawLasso(a, !1, !0), setTimeout(() => this.overlayRenderer.clear(), Gue); const o = this.getLassoItems(a); this.currentOptions.selectOnRelease === !0 && this.nvlInstance.updateElementsInGraph(o.nodes.map((s) => ({ id: s.id, selected: !0 })), o.rels.map((s) => ({ id: s.id, selected: !0 }))), this.callCallbackIfRegistered("onLassoSelect", o, t); }); @@ -79746,7 +79758,7 @@ class P9 extends Wp { this.toggleGlobalTextSelection(!0, this.endLasso), this.removeEventListener("mousedown", this.handleMouseDown, !0), this.removeEventListener("mousemove", this.handleDrag, !0), this.removeEventListener("mouseup", this.handleMouseUp, !0), this.overlayRenderer.destroy(); } } -class Wue extends Wp { +class Yue extends Wp { /** * Creates a new instance of the pan interaction handler. * @param nvl - The NVL instance to attach the interaction handler to. @@ -79839,7 +79851,7 @@ class M9 extends Wp { Ft(this, "throttledZoom", os.throttle((t) => { const n = this.nvlInstance.getScale(), { x: i, y: a } = this.nvlInstance.getPan(); this.zoomLimits = this.nvlInstance.getZoomLimits(); - const s = t.ctrlKey || t.metaKey ? 75 : 500, u = t.deltaY / s, l = n >= 1 ? u * n : u, c = n - l * Math.min(1, n), f = c > this.zoomLimits.maxZoom || c < this.zoomLimits.minZoom, d = Tue(this.containerInstance, t); + const s = t.ctrlKey || t.metaKey ? 75 : 500, u = t.deltaY / s, l = n >= 1 ? u * n : u, c = n - l * Math.min(1, n), f = c > this.zoomLimits.maxZoom || c < this.zoomLimits.minZoom, d = Cue(this.containerInstance, t); let h = i, p = a; f || (h = i + (d.x / n - d.x / c), p = a + (d.y / n - d.y / c)), this.currentOptions.controlledZoom !== !0 && this.nvlInstance.setZoomAndPan(c, h, p), this.callCallbackIfRegistered("onZoom", c, t), this.callCallbackIfRegistered("onZoomAndPan", c, h, p, t); }, 25, { leading: !0 })); @@ -79860,28 +79872,28 @@ const av = (r) => { const o = i.current; os.isNil(o) || os.isNil(o.getContainer()) || (t === !0 || typeof t == "function" ? (os.isNil(e.current) && (e.current = new r(o, a)), typeof t == "function" ? e.current.updateCallback(n, t) : os.isNil(e.current.callbackMap[n]) || e.current.removeCallback(n)) : t === !1 && av(e)); }, [r, t, n, a, e, i]); -}, Yue = ({ nvlRef: r, mouseEventCallbacks: e, interactionOptions: t }) => { +}, Xue = ({ nvlRef: r, mouseEventCallbacks: e, interactionOptions: t }) => { const n = me.useRef(null), i = me.useRef(null), a = me.useRef(null), o = me.useRef(null), s = me.useRef(null), u = me.useRef(null), l = me.useRef(null), c = me.useRef(null); - return Ha(Cue, n, e.onHover, "onHover", r, t), Ha(iv, i, e.onNodeClick, "onNodeClick", r, t), Ha(iv, i, e.onNodeDoubleClick, "onNodeDoubleClick", r, t), Ha(iv, i, e.onNodeRightClick, "onNodeRightClick", r, t), Ha(iv, i, e.onRelationshipClick, "onRelationshipClick", r, t), Ha(iv, i, e.onRelationshipDoubleClick, "onRelationshipDoubleClick", r, t), Ha(iv, i, e.onRelationshipRightClick, "onRelationshipRightClick", r, t), Ha(iv, i, e.onCanvasClick, "onCanvasClick", r, t), Ha(iv, i, e.onCanvasDoubleClick, "onCanvasDoubleClick", r, t), Ha(iv, i, e.onCanvasRightClick, "onCanvasRightClick", r, t), Ha(Wue, a, e.onPan, "onPan", r, t), Ha(M9, o, e.onZoom, "onZoom", r, t), Ha(M9, o, e.onZoomAndPan, "onZoomAndPan", r, t), Ha(WP, s, e.onDrag, "onDrag", r, t), Ha(WP, s, e.onDragStart, "onDragStart", r, t), Ha(WP, s, e.onDragEnd, "onDragEnd", r, t), Ha(YP, u, e.onHoverNodeMargin, "onHoverNodeMargin", r, t), Ha(YP, u, e.onDrawStarted, "onDrawStarted", r, t), Ha(YP, u, e.onDrawEnded, "onDrawEnded", r, t), Ha(x9, l, e.onBoxStarted, "onBoxStarted", r, t), Ha(x9, l, e.onBoxSelect, "onBoxSelect", r, t), Ha(P9, c, e.onLassoStarted, "onLassoStarted", r, t), Ha(P9, c, e.onLassoSelect, "onLassoSelect", r, t), me.useEffect(() => () => { + return Ha(Aue, n, e.onHover, "onHover", r, t), Ha(iv, i, e.onNodeClick, "onNodeClick", r, t), Ha(iv, i, e.onNodeDoubleClick, "onNodeDoubleClick", r, t), Ha(iv, i, e.onNodeRightClick, "onNodeRightClick", r, t), Ha(iv, i, e.onRelationshipClick, "onRelationshipClick", r, t), Ha(iv, i, e.onRelationshipDoubleClick, "onRelationshipDoubleClick", r, t), Ha(iv, i, e.onRelationshipRightClick, "onRelationshipRightClick", r, t), Ha(iv, i, e.onCanvasClick, "onCanvasClick", r, t), Ha(iv, i, e.onCanvasDoubleClick, "onCanvasDoubleClick", r, t), Ha(iv, i, e.onCanvasRightClick, "onCanvasRightClick", r, t), Ha(Yue, a, e.onPan, "onPan", r, t), Ha(M9, o, e.onZoom, "onZoom", r, t), Ha(M9, o, e.onZoomAndPan, "onZoomAndPan", r, t), Ha(HP, s, e.onDrag, "onDrag", r, t), Ha(HP, s, e.onDragStart, "onDragStart", r, t), Ha(HP, s, e.onDragEnd, "onDragEnd", r, t), Ha(WP, u, e.onHoverNodeMargin, "onHoverNodeMargin", r, t), Ha(WP, u, e.onDrawStarted, "onDrawStarted", r, t), Ha(WP, u, e.onDrawEnded, "onDrawEnded", r, t), Ha(x9, l, e.onBoxStarted, "onBoxStarted", r, t), Ha(x9, l, e.onBoxSelect, "onBoxSelect", r, t), Ha(P9, c, e.onLassoStarted, "onLassoStarted", r, t), Ha(P9, c, e.onLassoSelect, "onLassoSelect", r, t), me.useEffect(() => () => { av(n), av(i), av(a), av(o), av(s), av(u), av(l), av(c); }, []), null; -}, Xue = { +}, $ue = { selectOnClick: !1, drawShadowOnHover: !0, selectOnRelease: !1, excludeNodeMargin: !0 -}, $ue = me.memo(me.forwardRef(({ nodes: r, rels: e, layout: t, layoutOptions: n, onInitializationError: i, mouseEventCallbacks: a = {}, nvlCallbacks: o = {}, nvlOptions: s = {}, interactionOptions: u = Xue, ...l }, c) => { +}, Kue = me.memo(me.forwardRef(({ nodes: r, rels: e, layout: t, layoutOptions: n, onInitializationError: i, mouseEventCallbacks: a = {}, nvlCallbacks: o = {}, nvlOptions: s = {}, interactionOptions: u = $ue, ...l }, c) => { const f = me.useRef(null), d = c ?? f, [h, p] = me.useState(!1), g = me.useCallback(() => { p(!0); }, []), y = me.useCallback((_) => { p(!1), i && i(_); }, [i]), b = h && d.current !== null; - return Te.jsxs(Te.Fragment, { children: [Te.jsx(Oue, { ref: d, nodes: r, id: _ue, rels: e, nvlOptions: s, nvlCallbacks: { + return Ce.jsxs(Ce.Fragment, { children: [Ce.jsx(Tue, { ref: d, nodes: r, id: wue, rels: e, nvlOptions: s, nvlCallbacks: { ...o, onInitialization: () => { o.onInitialization !== void 0 && o.onInitialization(), g(); } - }, layout: t, layoutOptions: n, onInitializationError: y, ...l }), b && Te.jsx(Yue, { nvlRef: d, mouseEventCallbacks: a, interactionOptions: u })] }); + }, layout: t, layoutOptions: n, onInitializationError: y, ...l }), b && Ce.jsx(Xue, { nvlRef: d, mouseEventCallbacks: a, interactionOptions: u })] }); })), MG = me.createContext(void 0), Vl = () => { const r = me.useContext(MG); if (!r) @@ -79903,28 +79915,28 @@ const D9 = navigator.userAgent.includes("Mac"), DG = (r, e) => { return !0; } return !1; -}, Kue = (r, e) => { +}, Zue = (r, e) => { const t = e.toLowerCase(); return r.filter((n) => { var i; return !((i = n.labelsSorted) === null || i === void 0) && i.some((a) => a.toLowerCase().includes(t)) ? !0 : DG(n.properties, t); }).map((n) => n.id); -}, Zue = (r, e) => { +}, Que = (r, e) => { const t = e.toLowerCase(); return r.filter((n) => n.type.toLowerCase().includes(t) ? !0 : DG(n.properties, t)).map((n) => n.id); }, a0 = (r) => { const { isActive: e, ariaLabel: t, isDisabled: n, description: i, onClick: a, onMouseDown: o, tooltipPlacement: s, className: u, style: l, htmlAttributes: c, children: f } = r; - return Te.jsx(O2, { description: i ?? t, tooltipProps: { + return Ce.jsx(S2, { description: i ?? t, tooltipProps: { content: { style: { whiteSpace: "nowrap" } }, root: { isPortaled: !1, placement: s } }, size: "small", className: u, style: l, isActive: e, isDisabled: n, onClick: a, htmlAttributes: Object.assign({ onMouseDown: o }, c), children: f }); -}, Que = (r) => r instanceof HTMLElement ? r.isContentEditable || ["INPUT", "TEXTAREA"].includes(r.tagName) : !1, Jue = (r) => Que(r.target), a_ = { +}, Jue = (r) => r instanceof HTMLElement ? r.isContentEditable || ["INPUT", "TEXTAREA"].includes(r.tagName) : !1, ele = (r) => Jue(r.target), a_ = { box: "B", lasso: "L", single: "S" -}, pE = (r) => { +}, vE = (r) => { const { setGesture: e } = Vl(), t = me.useCallback((n) => { - if (!Jue(n) && e !== void 0) { + if (!ele(n) && e !== void 0) { const i = n.key.toUpperCase(); for (const a of r) i === a_[a] && e(a); @@ -79933,33 +79945,33 @@ const D9 = navigator.userAgent.includes("Mac"), DG = (r, e) => { me.useEffect(() => (document.addEventListener("keydown", t), () => { document.removeEventListener("keydown", t); }), [t]); -}, $D = " ", ele = ({ className: r, style: e, htmlAttributes: t, tooltipPlacement: n }) => { +}, $D = " ", tle = ({ className: r, style: e, htmlAttributes: t, tooltipPlacement: n }) => { const { gesture: i, setGesture: a, interactionMode: o } = Vl(); - return pE(["single"]), Te.jsx(a0, { isActive: i === "single", isDisabled: o !== "select", ariaLabel: "Individual Select Button", description: `Individual Select ${$D} ${a_.single}`, onClick: () => { + return vE(["single"]), Ce.jsx(a0, { isActive: i === "single", isDisabled: o !== "select", ariaLabel: "Individual Select Button", description: `Individual Select ${$D} ${a_.single}`, onClick: () => { a == null || a("single"); - }, tooltipPlacement: n ?? "right", htmlAttributes: Object.assign({ "data-testid": "gesture-individual-select" }, t), className: r, style: e, children: Te.jsx(l2, { "aria-label": "Individual Select" }) }); -}, tle = ({ className: r, style: e, htmlAttributes: t, tooltipPlacement: n }) => { + }, tooltipPlacement: n ?? "right", htmlAttributes: Object.assign({ "data-testid": "gesture-individual-select" }, t), className: r, style: e, children: Ce.jsx(l2, { "aria-label": "Individual Select" }) }); +}, rle = ({ className: r, style: e, htmlAttributes: t, tooltipPlacement: n }) => { const { gesture: i, setGesture: a, interactionMode: o } = Vl(); - return pE(["box"]), Te.jsx(a0, { isDisabled: o !== "select" || a === void 0, isActive: i === "box", ariaLabel: "Box Select Button", description: `Box Select ${$D} ${a_.box}`, onClick: () => { + return vE(["box"]), Ce.jsx(a0, { isDisabled: o !== "select" || a === void 0, isActive: i === "box", ariaLabel: "Box Select Button", description: `Box Select ${$D} ${a_.box}`, onClick: () => { a == null || a("box"); - }, tooltipPlacement: n ?? "right", htmlAttributes: Object.assign({ "data-testid": "gesture-box-select" }, t), className: r, style: e, children: Te.jsx(q9, { "aria-label": "Box select" }) }); -}, rle = ({ className: r, style: e, htmlAttributes: t, tooltipPlacement: n }) => { + }, tooltipPlacement: n ?? "right", htmlAttributes: Object.assign({ "data-testid": "gesture-box-select" }, t), className: r, style: e, children: Ce.jsx(q9, { "aria-label": "Box select" }) }); +}, nle = ({ className: r, style: e, htmlAttributes: t, tooltipPlacement: n }) => { const { gesture: i, setGesture: a, interactionMode: o } = Vl(); - return pE(["lasso"]), Te.jsx(a0, { isDisabled: o !== "select" || a === void 0, isActive: i === "lasso", ariaLabel: "Lasso Select Button", description: `Lasso Select ${$D} ${a_.lasso}`, onClick: () => { + return vE(["lasso"]), Ce.jsx(a0, { isDisabled: o !== "select" || a === void 0, isActive: i === "lasso", ariaLabel: "Lasso Select Button", description: `Lasso Select ${$D} ${a_.lasso}`, onClick: () => { a == null || a("lasso"); - }, tooltipPlacement: n ?? "right", htmlAttributes: Object.assign({ "data-testid": "gesture-lasso-select" }, t), className: r, style: e, children: Te.jsx(z9, { "aria-label": "Lasso select" }) }); + }, tooltipPlacement: n ?? "right", htmlAttributes: Object.assign({ "data-testid": "gesture-lasso-select" }, t), className: r, style: e, children: Ce.jsx(z9, { "aria-label": "Lasso select" }) }); }, kG = ({ className: r, style: e, htmlAttributes: t, tooltipPlacement: n }) => { const { nvlInstance: i } = Vl(), a = me.useCallback(() => { var o, s; (o = i.current) === null || o === void 0 || o.setZoom(((s = i.current) === null || s === void 0 ? void 0 : s.getScale()) * 1.3); }, [i]); - return Te.jsx(a0, { onClick: a, description: "Zoom in", className: r, style: e, htmlAttributes: t, tooltipPlacement: n ?? "left", children: Te.jsx(JV, {}) }); + return Ce.jsx(a0, { onClick: a, description: "Zoom in", className: r, style: e, htmlAttributes: t, tooltipPlacement: n ?? "left", children: Ce.jsx(JV, {}) }); }, IG = ({ className: r, style: e, htmlAttributes: t, tooltipPlacement: n }) => { const { nvlInstance: i } = Vl(), a = me.useCallback(() => { var o, s; (o = i.current) === null || o === void 0 || o.setZoom(((s = i.current) === null || s === void 0 ? void 0 : s.getScale()) * 0.7); }, [i]); - return Te.jsx(a0, { onClick: a, description: "Zoom out", className: r, style: e, htmlAttributes: t, tooltipPlacement: n ?? "left", children: Te.jsx(KV, {}) }); + return Ce.jsx(a0, { onClick: a, description: "Zoom out", className: r, style: e, htmlAttributes: t, tooltipPlacement: n ?? "left", children: Ce.jsx(KV, {}) }); }, NG = ({ className: r, style: e, htmlAttributes: t, tooltipPlacement: n }) => { const { nvlInstance: i } = Vl(), a = me.useCallback(() => { const s = i.current; @@ -79974,21 +79986,21 @@ const D9 = navigator.userAgent.includes("Mac"), DG = (r, e) => { var s; (s = i.current) === null || s === void 0 || s.fit(a()); }, [a, i]); - return Te.jsx(a0, { onClick: o, description: "Zoom to fit", className: r, style: e, htmlAttributes: t, tooltipPlacement: n ?? "left", children: Te.jsx(wV, {}) }); + return Ce.jsx(a0, { onClick: o, description: "Zoom to fit", className: r, style: e, htmlAttributes: t, tooltipPlacement: n ?? "left", children: Ce.jsx(wV, {}) }); }, LG = ({ className: r, htmlAttributes: e, style: t, tooltipPlacement: n }) => { const { sidepanel: i } = Vl(); if (!i) throw new Error("Using the ToggleSidePanelButton requires having a sidepanel"); const { isSidePanelOpen: a, setIsSidePanelOpen: o } = i; - return Te.jsx(C2, { size: "small", onClick: () => o == null ? void 0 : o(!a), isFloating: !0, description: a ? "Close" : "Open", isActive: a, tooltipProps: { + return Ce.jsx(T2, { size: "small", onClick: () => o == null ? void 0 : o(!a), isFloating: !0, description: a ? "Close" : "Open", isActive: a, tooltipProps: { content: { style: { whiteSpace: "nowrap" } }, root: { isPortaled: !1, placement: n ?? "bottom", shouldCloseOnReferenceClick: !0 } - }, className: Vn("ndl-graph-visualization-toggle-sidepanel", r), style: t, htmlAttributes: Object.assign({ "aria-label": "Toggle node properties panel" }, e), children: Te.jsx(TV, { className: "ndl-graph-visualization-toggle-icon" }) }); -}, nle = ({ className: r, style: e, htmlAttributes: t, tooltipPlacement: n, open: i, setOpen: a, searchTerm: o, setSearchTerm: s, onSearch: u = () => { + }, className: Vn("ndl-graph-visualization-toggle-sidepanel", r), style: t, htmlAttributes: Object.assign({ "aria-label": "Toggle node properties panel" }, e), children: Ce.jsx(TV, { className: "ndl-graph-visualization-toggle-icon" }) }); +}, ile = ({ className: r, style: e, htmlAttributes: t, tooltipPlacement: n, open: i, setOpen: a, searchTerm: o, setSearchTerm: s, onSearch: u = () => { } }) => { const l = me.useRef(null), [c, f] = Lg({ isControlled: i !== void 0, @@ -80004,64 +80016,64 @@ const D9 = navigator.userAgent.includes("Mac"), DG = (r, e) => { return; } const b = Object.values(p.dataLookupTable.nodes), _ = Object.values(p.dataLookupTable.relationships); - u(Kue(b, y), Zue(_, y)); + u(Zue(b, y), Que(_, y)); }; - return Te.jsx(Te.Fragment, { children: c ? Te.jsx($Y, { ref: l, size: "small", leadingElement: Te.jsx(lk, {}), trailingElement: Te.jsx(O2, { onClick: () => { + return Ce.jsx(Ce.Fragment, { children: c ? Ce.jsx(KY, { ref: l, size: "small", leadingElement: Ce.jsx(lk, {}), trailingElement: Ce.jsx(S2, { onClick: () => { var y; g(""), (y = l.current) === null || y === void 0 || y.focus(); - }, description: "Clear search", children: Te.jsx(H9, {}) }), placeholder: "Search...", value: d, onChange: (y) => g(y.target.value), htmlAttributes: { + }, description: "Clear search", children: Ce.jsx(H9, {}) }), placeholder: "Search...", value: d, onChange: (y) => g(y.target.value), htmlAttributes: { autoFocus: !0, onBlur: () => { d === "" && f(!1); } - } }) : Te.jsx(C2, { size: "small", isFloating: !0, onClick: () => f((y) => !y), description: "Search", className: r, style: e, htmlAttributes: t, tooltipProps: { + } }) : Ce.jsx(T2, { size: "small", isFloating: !0, onClick: () => f((y) => !y), description: "Search", className: r, style: e, htmlAttributes: t, tooltipProps: { root: { placement: n ?? "bottom" } - }, children: Te.jsx(lk, {}) }) }); + }, children: Ce.jsx(lk, {}) }) }); }, jG = ({ className: r, style: e, htmlAttributes: t, tooltipPlacement: n }) => { const { nvlInstance: i } = Vl(), [a, o] = me.useState(!1), s = () => o(!1), u = me.useRef(null); - return Te.jsxs(Te.Fragment, { children: [Te.jsx(C2, { ref: u, size: "small", isFloating: !0, onClick: () => o((l) => !l), description: "Download", tooltipProps: { + return Ce.jsxs(Ce.Fragment, { children: [Ce.jsx(T2, { ref: u, size: "small", isFloating: !0, onClick: () => o((l) => !l), description: "Download", tooltipProps: { root: { placement: n ?? "bottom" } - }, className: r, style: e, htmlAttributes: t, children: Te.jsx(MV, {}) }), Te.jsx(Lm, { isOpen: a, onClose: s, anchorRef: u, children: Te.jsx(Lm.Item, { title: "Download as PNG", onClick: () => { + }, className: r, style: e, htmlAttributes: t, children: Ce.jsx(MV, {}) }), Ce.jsx(Lm, { isOpen: a, onClose: s, anchorRef: u, children: Ce.jsx(Lm.Item, { title: "Download as PNG", onClick: () => { var l; (l = i.current) === null || l === void 0 || l.saveToFile({}), s(); } }) })] }); -}, ile = { +}, ale = { d3Force: { - icon: Te.jsx(bV, {}), + icon: Ce.jsx(bV, {}), title: "Force-based layout" }, hierarchical: { - icon: Te.jsx(EV, {}), + icon: Ce.jsx(EV, {}), title: "Hierarchical layout" } -}, ale = ({ className: r, style: e, htmlAttributes: t, tooltipPlacement: n, menuPlacement: i, layoutOptions: a = ile }) => { +}, ole = ({ className: r, style: e, htmlAttributes: t, tooltipPlacement: n, menuPlacement: i, layoutOptions: a = ale }) => { var o, s; const u = me.useRef(null), [l, c] = me.useState(!1), { layout: f, setLayout: d } = Vl(); - return Te.jsxs(Te.Fragment, { children: [Te.jsx(q7, { description: "Select layout", isOpen: l, onClick: () => c((h) => !h), ref: u, className: r, style: e, htmlAttributes: t, size: "small", tooltipProps: { + return Ce.jsxs(Ce.Fragment, { children: [Ce.jsx(q7, { description: "Select layout", isOpen: l, onClick: () => c((h) => !h), ref: u, className: r, style: e, htmlAttributes: t, size: "small", tooltipProps: { root: { placement: n ?? "bottom" } - }, children: (s = (o = a[f]) === null || o === void 0 ? void 0 : o.icon) !== null && s !== void 0 ? s : Te.jsx(l2, {}) }), Te.jsx(Lm, { isOpen: l, anchorRef: u, onClose: () => c(!1), placement: i, children: Object.entries(a).map(([h, p]) => Te.jsx(Lm.RadioItem, { title: p.title, leadingVisual: p.icon, isChecked: h === f, onClick: () => d == null ? void 0 : d(h) }, h)) })] }); -}, ole = { + }, children: (s = (o = a[f]) === null || o === void 0 ? void 0 : o.icon) !== null && s !== void 0 ? s : Ce.jsx(l2, {}) }), Ce.jsx(Lm, { isOpen: l, anchorRef: u, onClose: () => c(!1), placement: i, children: Object.entries(a).map(([h, p]) => Ce.jsx(Lm.RadioItem, { title: p.title, leadingVisual: p.icon, isChecked: h === f, onClick: () => d == null ? void 0 : d(h) }, h)) })] }); +}, sle = { single: { - icon: Te.jsx(l2, {}), + icon: Ce.jsx(l2, {}), title: "Individual" }, box: { - icon: Te.jsx(q9, {}), + icon: Ce.jsx(q9, {}), title: "Box" }, lasso: { - icon: Te.jsx(z9, {}), + icon: Ce.jsx(z9, {}), title: "Lasso" } -}, sle = ({ className: r, style: e, htmlAttributes: t, tooltipPlacement: n, menuPlacement: i, gestureOptions: a = ole }) => { +}, ule = ({ className: r, style: e, htmlAttributes: t, tooltipPlacement: n, menuPlacement: i, gestureOptions: a = sle }) => { var o, s; const u = me.useRef(null), [l, c] = me.useState(!1), { gesture: f, setGesture: d } = Vl(); - return pE(Object.keys(a)), Te.jsxs(Te.Fragment, { children: [Te.jsx(q7, { description: "Select gesture", isOpen: l, onClick: () => c((h) => !h), ref: u, className: r, style: e, htmlAttributes: t, size: "small", tooltipProps: { + return vE(Object.keys(a)), Ce.jsxs(Ce.Fragment, { children: [Ce.jsx(q7, { description: "Select gesture", isOpen: l, onClick: () => c((h) => !h), ref: u, className: r, style: e, htmlAttributes: t, size: "small", tooltipProps: { root: { placement: n ?? "bottom" } - }, children: (s = (o = a[f]) === null || o === void 0 ? void 0 : o.icon) !== null && s !== void 0 ? s : Te.jsx(l2, {}) }), Te.jsx(Lm, { isOpen: l, anchorRef: u, onClose: () => c(!1), placement: i, children: Object.entries(a).map(([h, p]) => Te.jsx(Lm.RadioItem, { title: p.title, leadingVisual: p.icon, trailingContent: Te.jsx(KX, { keys: [a_[h]] }), isChecked: h === f, onClick: () => d == null ? void 0 : d(h) }, h)) })] }); + }, children: (s = (o = a[f]) === null || o === void 0 ? void 0 : o.icon) !== null && s !== void 0 ? s : Ce.jsx(l2, {}) }), Ce.jsx(Lm, { isOpen: l, anchorRef: u, onClose: () => c(!1), placement: i, children: Object.entries(a).map(([h, p]) => Ce.jsx(Lm.RadioItem, { title: p.title, leadingVisual: p.icon, trailingContent: Ce.jsx(ZX, { keys: [a_[h]] }), isChecked: h === f, onClick: () => d == null ? void 0 : d(h) }, h)) })] }); }, ty = ({ sidepanel: r }) => { const { children: e, isSidePanelOpen: t, sidePanelWidth: n, onSidePanelResize: i, minWidth: a = 230 } = r; - return t ? Te.jsx(UX, { defaultSize: { + return t ? Ce.jsx(zX, { defaultSize: { height: "100%", width: n ?? 400 }, className: "ndl-graph-resizable", minWidth: a, maxWidth: "66%", enable: { @@ -80075,11 +80087,11 @@ const D9 = navigator.userAgent.includes("Mac"), DG = (r, e) => { topRight: !1 }, handleClasses: { left: "ndl-sidepanel-handle" }, onResizeStop: (o, s, u) => { i(u.getBoundingClientRect().width); - }, children: Te.jsx("div", { className: "ndl-graph-visualization-sidepanel-content", tabIndex: 0, children: e }) }) : null; -}, ule = ({ children: r }) => Te.jsx("div", { className: "ndl-graph-visualization-sidepanel-title ndl-grid-area-title", children: r }); -ty.Title = ule; -const lle = ({ children: r }) => Te.jsx("section", { className: "ndl-grid-area-content", children: r }); -ty.Content = lle; + }, children: Ce.jsx("div", { className: "ndl-graph-visualization-sidepanel-content", tabIndex: 0, children: e }) }) : null; +}, lle = ({ children: r }) => Ce.jsx("div", { className: "ndl-graph-visualization-sidepanel-title ndl-grid-area-title", children: r }); +ty.Title = lle; +const cle = ({ children: r }) => Ce.jsx("section", { className: "ndl-grid-area-content", children: r }); +ty.Content = cle; var hx = { exports: {} }; /** * chroma.js - JavaScript library for color conversions @@ -80137,12 +80149,12 @@ var hx = { exports: {} }; * * @preserve */ -var cle = hx.exports, k9; -function fle() { +var fle = hx.exports, k9; +function dle() { return k9 || (k9 = 1, (function(r, e) { (function(t, n) { r.exports = n(); - })(cle, (function() { + })(fle, (function() { for (var t = function(K, oe, ye) { return oe === void 0 && (oe = 0), ye === void 0 && (ye = 1), K < oe ? oe : K > ye ? ye : K; }, n = t, i = function(K) { @@ -80244,11 +80256,11 @@ function fle() { return "cmyk"; } }); - var Q = g.unpack, ue = g.last, re = function(K) { + var Z = g.unpack, ue = g.last, re = function(K) { return Math.round(K * 100) / 100; }, ne = function() { for (var K = [], oe = arguments.length; oe--; ) K[oe] = arguments[oe]; - var ye = Q(K, "hsla"), Pe = ue(K) || "lsa"; + var ye = Z(K, "hsla"), Pe = ue(K) || "lsa"; return ye[0] = re(ye[0] || 0), ye[1] = re(ye[1] * 100) + "%", ye[2] = re(ye[2] * 100) + "%", Pe === "hsla" || ye.length > 3 && ye[3] < 1 ? (ye[3] = ye.length > 3 ? ye[3] : 1, Pe = "hsla") : ye.length = 3, Pe + "(" + ye.join(",") + ")"; }, le = ne, ce = g.unpack, pe = function() { for (var K = [], oe = arguments.length; oe--; ) K[oe] = arguments[oe]; @@ -80257,13 +80269,13 @@ function fle() { ye /= 255, Pe /= 255, ze /= 255; var Ge = Math.min(ye, Pe, ze), Be = Math.max(ye, Pe, ze), Ke = (Be + Ge) / 2, Je, gt; return Be === Ge ? (Je = 0, gt = Number.NaN) : Je = Ke < 0.5 ? (Be - Ge) / (Be + Ge) : (Be - Ge) / (2 - Be - Ge), ye == Be ? gt = (Pe - ze) / (Be - Ge) : Pe == Be ? gt = 2 + (ze - ye) / (Be - Ge) : ze == Be && (gt = 4 + (ye - Pe) / (Be - Ge)), gt *= 60, gt < 0 && (gt += 360), K.length > 3 && K[3] !== void 0 ? [gt, Je, Ke, K[3]] : [gt, Je, Ke]; - }, fe = pe, se = g.unpack, de = g.last, ge = le, Oe = fe, ke = Math.round, Me = function() { + }, fe = pe, se = g.unpack, de = g.last, ge = le, Oe = fe, ke = Math.round, De = function() { for (var K = [], oe = arguments.length; oe--; ) K[oe] = arguments[oe]; var ye = se(K, "rgba"), Pe = de(K) || "rgb"; return Pe.substr(0, 3) == "hsl" ? ge(Oe(ye), Pe) : (ye[0] = ke(ye[0]), ye[1] = ke(ye[1]), ye[2] = ke(ye[2]), (Pe === "rgba" || ye.length > 3 && ye[3] < 1) && (ye[3] = ye.length > 3 ? ye[3] : 1, Pe = "rgba"), Pe + "(" + ye.slice(0, Pe === "rgb" ? 3 : 4).join(",") + ")"); - }, Ne = Me, Ce = g.unpack, Y = Math.round, Z = function() { + }, Ne = De, Te = g.unpack, Y = Math.round, Q = function() { for (var K, oe = [], ye = arguments.length; ye--; ) oe[ye] = arguments[ye]; - oe = Ce(oe, "hsl"); + oe = Te(oe, "hsl"); var Pe = oe[0], ze = oe[1], Ge = oe[2], Be, Ke, Je; if (ze === 0) Be = Ke = Je = Ge * 255; @@ -80275,7 +80287,7 @@ function fle() { K = [Y(dt[0] * 255), Y(dt[1] * 255), Y(dt[2] * 255)], Be = K[0], Ke = K[1], Je = K[2]; } return oe.length > 3 ? [Be, Ke, Je, oe[3]] : [Be, Ke, Je, 1]; - }, ie = Z, we = ie, Ee = y, De = /^rgb\(\s*(-?\d+),\s*(-?\d+)\s*,\s*(-?\d+)\s*\)$/, Ie = /^rgba\(\s*(-?\d+),\s*(-?\d+)\s*,\s*(-?\d+)\s*,\s*([01]|[01]?\.\d+)\)$/, Ye = /^rgb\(\s*(-?\d+(?:\.\d+)?)%,\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*\)$/, ot = /^rgba\(\s*(-?\d+(?:\.\d+)?)%,\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)$/, mt = /^hsl\(\s*(-?\d+(?:\.\d+)?),\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*\)$/, wt = /^hsla\(\s*(-?\d+(?:\.\d+)?),\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)$/, Mt = Math.round, Dt = function(K) { + }, ie = Q, we = ie, Ee = y, Me = /^rgb\(\s*(-?\d+),\s*(-?\d+)\s*,\s*(-?\d+)\s*\)$/, Ie = /^rgba\(\s*(-?\d+),\s*(-?\d+)\s*,\s*(-?\d+)\s*,\s*([01]|[01]?\.\d+)\)$/, Ye = /^rgb\(\s*(-?\d+(?:\.\d+)?)%,\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*\)$/, ot = /^rgba\(\s*(-?\d+(?:\.\d+)?)%,\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)$/, mt = /^hsl\(\s*(-?\d+(?:\.\d+)?),\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*\)$/, wt = /^hsla\(\s*(-?\d+(?:\.\d+)?),\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)$/, Mt = Math.round, Dt = function(K) { K = K.toLowerCase().trim(); var oe; if (Ee.format.named) @@ -80283,7 +80295,7 @@ function fle() { return Ee.format.named(K); } catch { } - if (oe = K.match(De)) { + if (oe = K.match(Me)) { for (var ye = oe.slice(1, 4), Pe = 0; Pe < 3; Pe++) ye[Pe] = +ye[Pe]; return ye[3] = 1, ye; @@ -80317,7 +80329,7 @@ function fle() { } }; Dt.test = function(K) { - return De.test(K) || Ie.test(K) || Ye.test(K) || ot.test(K) || mt.test(K) || wt.test(K); + return Me.test(K) || Ie.test(K) || Ye.test(K) || ot.test(K) || mt.test(K) || wt.test(K); }; var vt = Dt, tt = T, _e = O, Ue = y, Qe = g.type, Ze = Ne, nt = vt; _e.prototype.css = function(K) { @@ -81617,8 +81629,8 @@ function fle() { })); })(hx)), hx.exports; } -var dle = fle(); -const BG = /* @__PURE__ */ Bp(dle), hle = (r, e) => `#${[parseInt(r.substring(1, 3), 16), parseInt(r.substring(3, 5), 16), parseInt(r.substring(5, 7), 16)].map((t) => { +var hle = dle(); +const BG = /* @__PURE__ */ Bp(hle), vle = (r, e) => `#${[parseInt(r.substring(1, 3), 16), parseInt(r.substring(3, 5), 16), parseInt(r.substring(5, 7), 16)].map((t) => { let n = parseInt((t * (100 + e) / 100).toString(), 10); const i = (n = n < 255 ? n : 255).toString(16); return i.length === 1 ? `0${i}` : i; @@ -81630,7 +81642,7 @@ function FG(r) { e = (e << 5) - e + r.charCodeAt(t) << 0, t += 1; return e; } -function KP(r) { +function $P(r) { return FG(r) + 2147483647 + 1; } function UG(r, e, t = !1, n = 4.5) { @@ -81640,20 +81652,20 @@ function UG(r, e, t = !1, n = 4.5) { s > a && (i = o, a = s); }), a < n && t ? UG(r, [i, "#000000", "#ffffff"], !1, n) : i; } -function vle(r, e = {}) { - const { lightMax: t = 95, lightMin: n = 70, chromaMax: i = 20, chromaMin: a = 5 } = e, o = KP(FG(r).toString()), s = KP(o.toString()), u = KP(s.toString()), l = (c, f, d) => c % (d - f) + f; +function ple(r, e = {}) { + const { lightMax: t = 95, lightMin: n = 70, chromaMax: i = 20, chromaMin: a = 5 } = e, o = $P(FG(r).toString()), s = $P(o.toString()), u = $P(s.toString()), l = (c, f, d) => c % (d - f) + f; return BG.oklch(l(o, n, t) / 100, l(s, a, i) / 100, l(u, 0, 360)).hex(); } -function ple(r, e) { - const t = vle(r, e), n = hle(t, -20), i = UG(t, ["#2A2C34", "#FFFFFF"]); +function gle(r, e) { + const t = ple(r, e), n = vle(t, -20), i = UG(t, ["#2A2C34", "#FFFFFF"]); return { backgroundColor: t, borderColor: n, textColor: i }; } -const ZP = Yu.palette.neutral[40], zG = Yu.palette.neutral[40], QP = (r = "", e = "") => r.toLowerCase().localeCompare(e.toLowerCase()); -function gle(r) { +const KP = Yu.palette.neutral[40], zG = Yu.palette.neutral[40], ZP = (r = "", e = "") => r.toLowerCase().localeCompare(e.toLowerCase()); +function yle(r) { var e; const [t] = r; if (t === void 0) @@ -81668,11 +81680,11 @@ function gle(r) { } function I9(r) { return Object.entries(r).reduce((e, [t, n]) => (e[t] = { - mostCommonColor: gle(n), + mostCommonColor: yle(n), totalCount: n.length }, e), {}); } -const yle = [ +const mle = [ /^name$/i, /^title$/i, /^label$/i, @@ -81680,9 +81692,9 @@ const yle = [ /description$/i, /^.+/ ]; -function mle(r) { +function ble(r) { const e = r.filter((n) => n.type === "property").map((n) => n.captionKey); - for (const n of yle) { + for (const n of mle) { const i = e.find((a) => n.test(a)); if (i !== void 0) return { @@ -81693,13 +81705,13 @@ function mle(r) { const t = r.find((n) => n.type === "type"); return t || r.find((n) => n.type === "id"); } -const ble = (r) => { +const _le = (r) => { const e = Object.keys(r.properties).map((i) => ({ captionKey: i, type: "property" })); e.push({ type: "id" }, { type: "type" }); - const t = mle(e); + const t = ble(e); if ((t == null ? void 0 : t.type) === "property") { const i = r.properties[t.captionKey]; if (i !== void 0) @@ -81708,14 +81720,14 @@ const ble = (r) => { const [n] = r.labels; return (t == null ? void 0 : t.type) === "type" && n !== void 0 ? [{ value: n }] : [{ value: r.id }]; }; -function _le(r, e) { +function wle(r, e) { const t = {}, n = {}, i = {}, a = {}, o = r.map((f) => { var d; - const [h] = f.labels, p = Object.assign(Object.assign({ captions: ble(f), color: (d = f.color) !== null && d !== void 0 ? d : h === void 0 ? zG : ple(h).backgroundColor }, f), { labels: void 0, properties: void 0 }); + const [h] = f.labels, p = Object.assign(Object.assign({ captions: _le(f), color: (d = f.color) !== null && d !== void 0 ? d : h === void 0 ? zG : gle(h).backgroundColor }, f), { labels: void 0, properties: void 0 }); return i[f.id] = { color: p.color, id: f.id, - labelsSorted: [...f.labels].sort(QP), + labelsSorted: [...f.labels].sort(ZP), properties: f.properties }, f.labels.forEach((g) => { var y; @@ -81727,41 +81739,41 @@ function _le(r, e) { }), s = e.map((f) => { var d, h, p; return a[f.id] = { - color: (d = f.color) !== null && d !== void 0 ? d : ZP, + color: (d = f.color) !== null && d !== void 0 ? d : KP, id: f.id, properties: f.properties, type: f.type }, n[f.type] = [ ...(h = n[f.type]) !== null && h !== void 0 ? h : [], - (p = f.color) !== null && p !== void 0 ? p : ZP - ], Object.assign(Object.assign({ captions: [{ value: f.type }], color: ZP }, f), { properties: void 0, type: void 0 }); + (p = f.color) !== null && p !== void 0 ? p : KP + ], Object.assign(Object.assign({ captions: [{ value: f.type }], color: KP }, f), { properties: void 0, type: void 0 }); }), u = I9(t), l = I9(n); return { dataLookupTable: { labelMetaData: u, - labels: Object.keys(u).sort((f, d) => QP(f, d)), + labels: Object.keys(u).sort((f, d) => ZP(f, d)), nodes: i, relationships: a, typeMetaData: l, - types: Object.keys(l).sort((f, d) => QP(f, d)) + types: Object.keys(l).sort((f, d) => ZP(f, d)) }, nodes: o, rels: s }; } const N9 = ( // eslint-disable-next-line /(?:https?|s?ftp|bolt):\/\/(?:(?:[^\s()<>]+|\((?:[^\s()<>]+|(?:\([^\s()<>]+\)))?\))+(?:\((?:[^\s()<>]+|(?:\(?:[^\s()<>]+\)))?\)|[^\s`!()\[\]{};:'".,<>?«»“”‘’]))?/gi -), wle = ({ text: r }) => { +), xle = ({ text: r }) => { var e; const t = r ?? "", n = (e = t.match(N9)) !== null && e !== void 0 ? e : []; - return Te.jsx(Te.Fragment, { children: t.split(N9).map((i, a) => Te.jsxs(ao.Fragment, { children: [i, n[a] && // Should be safe from XSS. + return Ce.jsx(Ce.Fragment, { children: t.split(N9).map((i, a) => Ce.jsxs(ao.Fragment, { children: [i, n[a] && // Should be safe from XSS. // Ref: https://mathiasbynens.github.io/rel-noopener/ - Te.jsx("a", { href: n[a], target: "_blank", rel: "noopener noreferrer", className: "hover:underline", children: n[a] })] }, `clickable-url-${a}`)) }); -}, xle = ao.memo(wle), Ele = "…", Sle = 900, Ole = 150, Tle = 300, Cle = ({ value: r, width: e, type: t }) => { - const [n, i] = me.useState(!1), a = e > Sle ? Tle : Ole, o = () => { + Ce.jsx("a", { href: n[a], target: "_blank", rel: "noopener noreferrer", className: "hover:underline", children: n[a] })] }, `clickable-url-${a}`)) }); +}, Ele = ao.memo(xle), Sle = "…", Ole = 900, Tle = 150, Cle = 300, Ale = ({ value: r, width: e, type: t }) => { + const [n, i] = me.useState(!1), a = e > Ole ? Cle : Tle, o = () => { i(!0); }; let s = n ? r : r.slice(0, a); const u = s.length !== r.length; - return s += u ? Ele : "", Te.jsxs(Te.Fragment, { children: [t.startsWith("Array") && "[", Te.jsx(xle, { text: s }), u && Te.jsx("button", { type: "button", onClick: o, className: "ndl-properties-show-all-button", children: " Show all" }), t.startsWith("Array") && "]"] }); -}, Ale = ({ properties: r, paneWidth: e }) => Te.jsxs("div", { className: "ndl-graph-visualization-properties-table", children: [Te.jsxs("div", { className: "ndl-properties-header", children: [Te.jsx(Ed, { variant: "body-small", className: "ndl-properties-header-key", children: "Key" }), Te.jsx(Ed, { variant: "body-small", children: "Value" })] }), Object.entries(r).map(([t, { stringified: n, type: i }]) => Te.jsxs("div", { className: "ndl-properties-row", children: [Te.jsx(Ed, { variant: "body-small", className: "ndl-properties-key", children: t }), Te.jsx("div", { className: "ndl-properties-value", children: Te.jsx(Cle, { value: n, width: e, type: i }) }), Te.jsx("div", { className: "ndl-properties-clipboard-button", children: Te.jsx(F7, { textToCopy: `${t}: ${n}`, size: "small", tooltipProps: { placement: "left", type: "simple" } }) })] }, t))] }), Rle = ({ paneWidth: r = 400 }) => { + return s += u ? Sle : "", Ce.jsxs(Ce.Fragment, { children: [t.startsWith("Array") && "[", Ce.jsx(Ele, { text: s }), u && Ce.jsx("button", { type: "button", onClick: o, className: "ndl-properties-show-all-button", children: " Show all" }), t.startsWith("Array") && "]"] }); +}, Rle = ({ properties: r, paneWidth: e }) => Ce.jsxs("div", { className: "ndl-graph-visualization-properties-table", children: [Ce.jsxs("div", { className: "ndl-properties-header", children: [Ce.jsx(Ed, { variant: "body-small", className: "ndl-properties-header-key", children: "Key" }), Ce.jsx(Ed, { variant: "body-small", children: "Value" })] }), Object.entries(r).map(([t, { stringified: n, type: i }]) => Ce.jsxs("div", { className: "ndl-properties-row", children: [Ce.jsx(Ed, { variant: "body-small", className: "ndl-properties-key", children: t }), Ce.jsx("div", { className: "ndl-properties-value", children: Ce.jsx(Ale, { value: n, width: e, type: i }) }), Ce.jsx("div", { className: "ndl-properties-clipboard-button", children: Ce.jsx(F7, { textToCopy: `${t}: ${n}`, size: "small", tooltipProps: { placement: "left", type: "simple" } }) })] }, t))] }), Ple = ({ paneWidth: r = 400 }) => { const { selected: e, nvlGraph: t } = Vl(), n = me.useMemo(() => { const [s] = e.nodeIds; if (s !== void 0) @@ -81790,16 +81802,16 @@ const N9 = ( value: a.data.properties[s].stringified })) ]; - return Te.jsxs(Te.Fragment, { children: [Te.jsxs(ty.Title, { children: [Te.jsx("h6", { className: "ndl-details-title", children: a.dataType === "node" ? "Node details" : "Relationship details" }), Te.jsx(F7, { textToCopy: o.map((s) => `${s.key}: ${s.value}`).join(` -`), size: "small" })] }), Te.jsxs(ty.Content, { children: [Te.jsx("div", { className: "ndl-details-tags", children: a.dataType === "node" ? a.data.labelsSorted.map((s) => { + return Ce.jsxs(Ce.Fragment, { children: [Ce.jsxs(ty.Title, { children: [Ce.jsx("h6", { className: "ndl-details-title", children: a.dataType === "node" ? "Node details" : "Relationship details" }), Ce.jsx(F7, { textToCopy: o.map((s) => `${s.key}: ${s.value}`).join(` +`), size: "small" })] }), Ce.jsxs(ty.Content, { children: [Ce.jsx("div", { className: "ndl-details-tags", children: a.dataType === "node" ? a.data.labelsSorted.map((s) => { var u, l; - return Te.jsx(Ax, { type: "node", color: (l = (u = t.dataLookupTable.labelMetaData[s]) === null || u === void 0 ? void 0 : u.mostCommonColor) !== null && l !== void 0 ? l : "", as: "span", htmlAttributes: { + return Ce.jsx(Ax, { type: "node", color: (l = (u = t.dataLookupTable.labelMetaData[s]) === null || u === void 0 ? void 0 : u.mostCommonColor) !== null && l !== void 0 ? l : "", as: "span", htmlAttributes: { tabIndex: 0 }, children: s }, s); - }) : Te.jsx(Ax, { type: "relationship", color: a.data.color, as: "span", htmlAttributes: { + }) : Ce.jsx(Ax, { type: "relationship", color: a.data.color, as: "span", htmlAttributes: { tabIndex: 0 - }, children: a.data.type }, a.data.type) }), Te.jsx("div", { className: "ndl-details-divider" }), Te.jsx(Ale, { properties: a.data.properties, paneWidth: r })] })] }); -}, Ple = ({ children: r }) => { + }, children: a.data.type }, a.data.type) }), Ce.jsx("div", { className: "ndl-details-divider" }), Ce.jsx(Rle, { properties: a.data.properties, paneWidth: r })] })] }); +}, Mle = ({ children: r }) => { const [e, t] = me.useState(0), n = me.useRef(null), i = (u) => { var l, c; const f = (c = (l = n.current) === null || l === void 0 ? void 0 : l.children[u]) === null || c === void 0 ? void 0 : c.children[0]; @@ -81812,137 +81824,137 @@ const N9 = ( }; return ( // eslint-disable-next-line jsx-a11y/no-noninteractive-element-interactions - Te.jsx("ul", { onKeyDown: (u) => s(u), ref: n, style: { all: "inherit", listStyleType: "none" }, children: ao.Children.map(r, (u, l) => { + Ce.jsx("ul", { onKeyDown: (u) => s(u), ref: n, style: { all: "inherit", listStyleType: "none" }, children: ao.Children.map(r, (u, l) => { if (!ao.isValidElement(u)) return null; const c = me.cloneElement(u, { tabIndex: e === l ? 0 : -1 }); - return Te.jsx("li", { children: c }, l); + return Ce.jsx("li", { children: c }, l); }) }) ); -}, Mle = (r) => typeof r == "function"; +}, Dle = (r) => typeof r == "function"; function L9({ initiallyShown: r, children: e, isButtonGroup: t }) { const [n, i] = me.useState(!1), a = () => i((f) => !f), o = e.length, s = o > r, u = n ? o : r, l = o - u; if (o === 0) return null; - const c = e.slice(0, u).map((f) => Mle(f) ? f() : f); - return Te.jsxs(Te.Fragment, { children: [t === !0 ? Te.jsx(Ple, { children: c }) : Te.jsx("div", { style: { all: "inherit" }, children: c }), s && Te.jsx(eX, { size: "small", onClick: a, children: n ? "Show less" : `Show all (${l} more)` })] }); + const c = e.slice(0, u).map((f) => Dle(f) ? f() : f); + return Ce.jsxs(Ce.Fragment, { children: [t === !0 ? Ce.jsx(Mle, { children: c }) : Ce.jsx("div", { style: { all: "inherit" }, children: c }), s && Ce.jsx(tX, { size: "small", onClick: a, children: n ? "Show less" : `Show all (${l} more)` })] }); } -const j9 = 25, Dle = () => { +const j9 = 25, kle = () => { const { nvlGraph: r } = Vl(); - return Te.jsxs(Te.Fragment, { children: [Te.jsx(ty.Title, { children: Te.jsx(Ed, { variant: "title-4", children: "Results overview" }) }), Te.jsx(ty.Content, { children: Te.jsxs("div", { className: "ndl-graph-visualization-overview-panel", children: [r.dataLookupTable.labels.length > 0 && Te.jsxs("div", { className: "ndl-overview-section", children: [Te.jsx("div", { className: "ndl-overview-header", children: Te.jsxs("span", { children: ["Nodes", ` (${r.nodes.length.toLocaleString()})`] }) }), Te.jsx("div", { className: "ndl-overview-items", children: Te.jsx(L9, { initiallyShown: j9, isButtonGroup: !0, children: r.dataLookupTable.labels.map((e) => function() { + return Ce.jsxs(Ce.Fragment, { children: [Ce.jsx(ty.Title, { children: Ce.jsx(Ed, { variant: "title-4", children: "Results overview" }) }), Ce.jsx(ty.Content, { children: Ce.jsxs("div", { className: "ndl-graph-visualization-overview-panel", children: [r.dataLookupTable.labels.length > 0 && Ce.jsxs("div", { className: "ndl-overview-section", children: [Ce.jsx("div", { className: "ndl-overview-header", children: Ce.jsxs("span", { children: ["Nodes", ` (${r.nodes.length.toLocaleString()})`] }) }), Ce.jsx("div", { className: "ndl-overview-items", children: Ce.jsx(L9, { initiallyShown: j9, isButtonGroup: !0, children: r.dataLookupTable.labels.map((e) => function() { var n, i, a, o; - return Te.jsxs(Ax, { type: "node", htmlAttributes: { + return Ce.jsxs(Ax, { type: "node", htmlAttributes: { tabIndex: -1 }, color: (i = (n = r.dataLookupTable.labelMetaData[e]) === null || n === void 0 ? void 0 : n.mostCommonColor) !== null && i !== void 0 ? i : "", as: "span", children: [e, " (", (o = (a = r.dataLookupTable.labelMetaData[e]) === null || a === void 0 ? void 0 : a.totalCount) !== null && o !== void 0 ? o : 0, ")"] }, e); - }) }) })] }), r.dataLookupTable.types.length > 0 && Te.jsxs("div", { className: "ndl-overview-relationships-section", children: [Te.jsxs("span", { className: "ndl-overview-relationships-title", children: ["Relationships", ` (${r.rels.length.toLocaleString()})`] }), Te.jsx("div", { className: "ndl-overview-items", children: Te.jsx(L9, { initiallyShown: j9, isButtonGroup: !0, children: r.dataLookupTable.types.map((e) => { + }) }) })] }), r.dataLookupTable.types.length > 0 && Ce.jsxs("div", { className: "ndl-overview-relationships-section", children: [Ce.jsxs("span", { className: "ndl-overview-relationships-title", children: ["Relationships", ` (${r.rels.length.toLocaleString()})`] }), Ce.jsx("div", { className: "ndl-overview-items", children: Ce.jsx(L9, { initiallyShown: j9, isButtonGroup: !0, children: r.dataLookupTable.types.map((e) => { var t, n, i, a; - return Te.jsxs(Ax, { type: "relationship", htmlAttributes: { + return Ce.jsxs(Ax, { type: "relationship", htmlAttributes: { tabIndex: -1 }, color: (n = (t = r.dataLookupTable.typeMetaData[e]) === null || t === void 0 ? void 0 : t.mostCommonColor) !== null && n !== void 0 ? n : "", as: "span", children: [e, " (", (a = (i = r.dataLookupTable.typeMetaData[e]) === null || i === void 0 ? void 0 : i.totalCount) !== null && a !== void 0 ? a : 0, ")"] }, e); }) }) })] })] }) })] }); -}, kle = () => { +}, Ile = () => { const { selected: r } = Vl(); - return me.useMemo(() => r.nodeIds.length > 0 || r.relationshipIds.length > 0, [r]) ? Te.jsx(Rle, {}) : Te.jsx(Dle, {}); + return me.useMemo(() => r.nodeIds.length > 0 || r.relationshipIds.length > 0, [r]) ? Ce.jsx(Ple, {}) : Ce.jsx(kle, {}); }, Gw = (r) => !D9 && r.ctrlKey || D9 && r.metaKey, lb = (r) => r.target instanceof HTMLElement ? r.target.isContentEditable || ["INPUT", "TEXTAREA"].includes(r.target.tagName) : !1; -function Ile({ selected: r, setSelected: e, gesture: t, interactionMode: n, setInteractionMode: i, mouseEventCallbacks: a, nvlGraph: o, highlightedNodeIds: s, highlightedRelationshipIds: u }) { - const l = me.useCallback((Me) => { - n === "select" && Me.key === " " && i("pan"); - }, [n, i]), c = me.useCallback((Me) => { - n === "pan" && Me.key === " " && i("select"); +function Nle({ selected: r, setSelected: e, gesture: t, interactionMode: n, setInteractionMode: i, mouseEventCallbacks: a, nvlGraph: o, highlightedNodeIds: s, highlightedRelationshipIds: u }) { + const l = me.useCallback((De) => { + n === "select" && De.key === " " && i("pan"); + }, [n, i]), c = me.useCallback((De) => { + n === "pan" && De.key === " " && i("select"); }, [n, i]); me.useEffect(() => (document.addEventListener("keydown", l), document.addEventListener("keyup", c), () => { document.removeEventListener("keydown", l), document.removeEventListener("keyup", c); }), [l, c]); - const { onBoxSelect: f, onLassoSelect: d, onLassoStarted: h, onBoxStarted: p, onPan: g = !0, onHover: y, onHoverNodeMargin: b, onNodeClick: _, onRelationshipClick: m, onDragStart: x, onDragEnd: S, onDrawEnded: O, onDrawStarted: E, onCanvasClick: T, onNodeDoubleClick: P, onRelationshipDoubleClick: I } = a, k = me.useCallback((Me) => { - lb(Me) || (e({ nodeIds: [], relationshipIds: [] }), typeof T == "function" && T(Me)); - }, [T, e]), L = me.useCallback((Me, Ne) => { + const { onBoxSelect: f, onLassoSelect: d, onLassoStarted: h, onBoxStarted: p, onPan: g = !0, onHover: y, onHoverNodeMargin: b, onNodeClick: _, onRelationshipClick: m, onDragStart: x, onDragEnd: S, onDrawEnded: O, onDrawStarted: E, onCanvasClick: T, onNodeDoubleClick: P, onRelationshipDoubleClick: I } = a, k = me.useCallback((De) => { + lb(De) || (e({ nodeIds: [], relationshipIds: [] }), typeof T == "function" && T(De)); + }, [T, e]), L = me.useCallback((De, Ne) => { i("drag"); - const Ce = Me.map((Y) => Y.id); + const Te = De.map((Y) => Y.id); if (r.nodeIds.length === 0 || Gw(Ne)) { e({ - nodeIds: Ce, + nodeIds: Te, relationshipIds: r.relationshipIds }); return; } e({ - nodeIds: Ce, + nodeIds: Te, relationshipIds: r.relationshipIds - }), typeof x == "function" && x(Me, Ne); - }, [e, x, r, i]), B = me.useCallback((Me, Ne) => { - typeof S == "function" && S(Me, Ne), i("select"); - }, [S, i]), j = me.useCallback((Me) => { - typeof E == "function" && E(Me); - }, [E]), z = me.useCallback((Me, Ne, Ce) => { - typeof O == "function" && O(Me, Ne, Ce); - }, [O]), H = me.useCallback((Me, Ne, Ce) => { - if (!lb(Ce)) { - if (Gw(Ce)) - if (r.nodeIds.includes(Me.id)) { - const Z = r.nodeIds.filter((ie) => ie !== Me.id); + }), typeof x == "function" && x(De, Ne); + }, [e, x, r, i]), B = me.useCallback((De, Ne) => { + typeof S == "function" && S(De, Ne), i("select"); + }, [S, i]), j = me.useCallback((De) => { + typeof E == "function" && E(De); + }, [E]), z = me.useCallback((De, Ne, Te) => { + typeof O == "function" && O(De, Ne, Te); + }, [O]), H = me.useCallback((De, Ne, Te) => { + if (!lb(Te)) { + if (Gw(Te)) + if (r.nodeIds.includes(De.id)) { + const Q = r.nodeIds.filter((ie) => ie !== De.id); e({ - nodeIds: Z, + nodeIds: Q, relationshipIds: r.relationshipIds }); } else { - const Z = [...r.nodeIds, Me.id]; + const Q = [...r.nodeIds, De.id]; e({ - nodeIds: Z, + nodeIds: Q, relationshipIds: r.relationshipIds }); } else - e({ nodeIds: [Me.id], relationshipIds: [] }); - typeof _ == "function" && _(Me, Ne, Ce); - } - }, [e, r, _]), q = me.useCallback((Me, Ne, Ce) => { - if (!lb(Ce)) { - if (Gw(Ce)) - if (r.relationshipIds.includes(Me.id)) { - const Z = r.relationshipIds.filter((ie) => ie !== Me.id); + e({ nodeIds: [De.id], relationshipIds: [] }); + typeof _ == "function" && _(De, Ne, Te); + } + }, [e, r, _]), q = me.useCallback((De, Ne, Te) => { + if (!lb(Te)) { + if (Gw(Te)) + if (r.relationshipIds.includes(De.id)) { + const Q = r.relationshipIds.filter((ie) => ie !== De.id); e({ nodeIds: r.nodeIds, - relationshipIds: Z + relationshipIds: Q }); } else { - const Z = [ + const Q = [ ...r.relationshipIds, - Me.id + De.id ]; e({ nodeIds: r.nodeIds, - relationshipIds: Z + relationshipIds: Q }); } else - e({ nodeIds: [], relationshipIds: [Me.id] }); - typeof m == "function" && m(Me, Ne, Ce); - } - }, [e, r, m]), W = me.useCallback((Me, Ne, Ce) => { - lb(Ce) || typeof P == "function" && P(Me, Ne, Ce); - }, [P]), $ = me.useCallback((Me, Ne, Ce) => { - lb(Ce) || typeof I == "function" && I(Me, Ne, Ce); - }, [I]), J = me.useCallback((Me, Ne, Ce) => { - const Y = Me.map((ie) => ie.id), Z = Ne.map((ie) => ie.id); - if (Gw(Ce)) { + e({ nodeIds: [], relationshipIds: [De.id] }); + typeof m == "function" && m(De, Ne, Te); + } + }, [e, r, m]), W = me.useCallback((De, Ne, Te) => { + lb(Te) || typeof P == "function" && P(De, Ne, Te); + }, [P]), $ = me.useCallback((De, Ne, Te) => { + lb(Te) || typeof I == "function" && I(De, Ne, Te); + }, [I]), J = me.useCallback((De, Ne, Te) => { + const Y = De.map((ie) => ie.id), Q = Ne.map((ie) => ie.id); + if (Gw(Te)) { const ie = r.nodeIds, we = r.relationshipIds, Ee = (Ye, ot) => [ ...new Set([...Ye, ...ot].filter((mt) => !Ye.includes(mt) || !ot.includes(mt))) - ], De = Ee(ie, Y), Ie = Ee(we, Z); + ], Me = Ee(ie, Y), Ie = Ee(we, Q); e({ - nodeIds: De, + nodeIds: Me, relationshipIds: Ie }); } else - e({ nodeIds: Y, relationshipIds: Z }); - }, [e, r]), X = me.useCallback(({ nodes: Me, rels: Ne }, Ce) => { - J(Me, Ne, Ce), typeof d == "function" && d({ nodes: Me, rels: Ne }, Ce); - }, [J, d]), Q = me.useCallback(({ nodes: Me, rels: Ne }, Ce) => { - J(Me, Ne, Ce), typeof f == "function" && f({ nodes: Me, rels: Ne }, Ce); + e({ nodeIds: Y, relationshipIds: Q }); + }, [e, r]), X = me.useCallback(({ nodes: De, rels: Ne }, Te) => { + J(De, Ne, Te), typeof d == "function" && d({ nodes: De, rels: Ne }, Te); + }, [J, d]), Z = me.useCallback(({ nodes: De, rels: Ne }, Te) => { + J(De, Ne, Te), typeof f == "function" && f({ nodes: De, rels: Ne }, Te); }, [J, f]), ue = n === "draw", re = n === "select", ne = re && t === "box", le = re && t === "lasso", ce = n === "pan" || re && t === "single", pe = n === "drag" || n === "select", fe = me.useMemo(() => { - var Me; - return Object.assign(Object.assign({}, a), { onBoxSelect: ne ? Q : !1, onBoxStarted: ne ? p : !1, onCanvasClick: re ? k : !1, onDragEnd: pe ? B : !1, onDragStart: pe ? L : !1, onDrawEnded: ue ? z : !1, onDrawStarted: ue ? j : !1, onHover: re ? y : !1, onHoverNodeMargin: ue ? b : !1, onLassoSelect: le ? X : !1, onLassoStarted: le ? h : !1, onNodeClick: re ? H : !1, onNodeDoubleClick: re ? W : !1, onPan: ce ? g : !1, onRelationshipClick: re ? q : !1, onRelationshipDoubleClick: re ? $ : !1, onZoom: (Me = a.onZoom) !== null && Me !== void 0 ? Me : !0 }); + var De; + return Object.assign(Object.assign({}, a), { onBoxSelect: ne ? Z : !1, onBoxStarted: ne ? p : !1, onCanvasClick: re ? k : !1, onDragEnd: pe ? B : !1, onDragStart: pe ? L : !1, onDrawEnded: ue ? z : !1, onDrawStarted: ue ? j : !1, onHover: re ? y : !1, onHoverNodeMargin: ue ? b : !1, onLassoSelect: le ? X : !1, onLassoStarted: le ? h : !1, onNodeClick: re ? H : !1, onNodeDoubleClick: re ? W : !1, onPan: ce ? g : !1, onRelationshipClick: re ? q : !1, onRelationshipDoubleClick: re ? $ : !1, onZoom: (De = a.onZoom) !== null && De !== void 0 ? De : !0 }); }, [ pe, ne, @@ -81951,7 +81963,7 @@ function Ile({ selected: r, setSelected: e, gesture: t, interactionMode: n, setI ue, re, a, - Q, + Z, p, k, B, @@ -81970,10 +81982,10 @@ function Ile({ selected: r, setSelected: e, gesture: t, interactionMode: n, setI ]), se = me.useMemo(() => ({ nodeIds: new Set(r.nodeIds), relIds: new Set(r.relationshipIds) - }), [r]), de = me.useMemo(() => s !== void 0 ? new Set(s) : null, [s]), ge = me.useMemo(() => u !== void 0 ? new Set(u) : null, [u]), Oe = me.useMemo(() => o.nodes.map((Me) => Object.assign(Object.assign({}, Me), { disabled: de ? !de.has(Me.id) : !1, selected: se.nodeIds.has(Me.id) })), [o.nodes, se, de]), ke = me.useMemo(() => o.rels.map((Me) => Object.assign(Object.assign({}, Me), { disabled: ge ? !ge.has(Me.id) : !1, selected: se.relIds.has(Me.id) })), [o.rels, se, ge]); + }), [r]), de = me.useMemo(() => s !== void 0 ? new Set(s) : null, [s]), ge = me.useMemo(() => u !== void 0 ? new Set(u) : null, [u]), Oe = me.useMemo(() => o.nodes.map((De) => Object.assign(Object.assign({}, De), { disabled: de ? !de.has(De.id) : !1, selected: se.nodeIds.has(De.id) })), [o.nodes, se, de]), ke = me.useMemo(() => o.rels.map((De) => Object.assign(Object.assign({}, De), { disabled: ge ? !ge.has(De.id) : !1, selected: se.relIds.has(De.id) })), [o.rels, se, ge]); return { nodesWithState: Oe, relsWithState: ke, wrappedMouseEventCallbacks: fe }; } -var Nle = function(r, e) { +var Lle = function(r, e) { var t = {}; for (var n in r) Object.prototype.hasOwnProperty.call(r, n) && e.indexOf(n) < 0 && (t[n] = r[n]); if (r != null && typeof Object.getOwnPropertySymbols == "function") @@ -81981,12 +81993,12 @@ var Nle = function(r, e) { e.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(r, n[i]) && (t[n[i]] = r[n[i]]); return t; }; -const Lle = { +const jle = { "bottom-left": "ndl-graph-visualization-interaction-island ndl-bottom-left", "bottom-right": "ndl-graph-visualization-interaction-island ndl-bottom-right", "top-left": "ndl-graph-visualization-interaction-island ndl-top-left", "top-right": "ndl-graph-visualization-interaction-island ndl-top-right" -}, Vw = ({ children: r, className: e, placement: t }) => Te.jsx("div", { className: Vn(Lle[t], e), children: r }), jle = { +}, Vw = ({ children: r, className: e, placement: t }) => Ce.jsx("div", { className: Vn(jle[t], e), children: r }), Ble = { disableTelemetry: !0, disableWebGL: !0, maxZoom: 3, @@ -81994,17 +82006,17 @@ const Lle = { relationshipThreshold: 0.55 }, Hw = { bottomLeftIsland: null, - bottomRightIsland: Te.jsxs(WX, { orientation: "vertical", isFloating: !0, size: "small", children: [Te.jsx(kG, {}), " ", Te.jsx(IG, {}), " ", Te.jsx(NG, {})] }), + bottomRightIsland: Ce.jsxs(YX, { orientation: "vertical", isFloating: !0, size: "small", children: [Ce.jsx(kG, {}), " ", Ce.jsx(IG, {}), " ", Ce.jsx(NG, {})] }), topLeftIsland: null, - topRightIsland: Te.jsxs("div", { className: "ndl-graph-visualization-default-download-group", children: [Te.jsx(jG, {}), " ", Te.jsx(LG, {})] }) + topRightIsland: Ce.jsxs("div", { className: "ndl-graph-visualization-default-download-group", children: [Ce.jsx(jG, {}), " ", Ce.jsx(LG, {})] }) }; function ql(r) { - var e, t, { nvlRef: n, nvlCallbacks: i, nvlOptions: a, sidepanel: o, nodes: s, rels: u, highlightedNodeIds: l, highlightedRelationshipIds: c, topLeftIsland: f = Hw.topLeftIsland, topRightIsland: d = Hw.topRightIsland, bottomLeftIsland: h = Hw.bottomLeftIsland, bottomRightIsland: p = Hw.bottomRightIsland, gesture: g = "single", setGesture: y, layout: b, setLayout: _, selected: m, setSelected: x, interactionMode: S, setInteractionMode: O, mouseEventCallbacks: E = {}, className: T, style: P, htmlAttributes: I, ref: k, as: L } = r, B = Nle(r, ["nvlRef", "nvlCallbacks", "nvlOptions", "sidepanel", "nodes", "rels", "highlightedNodeIds", "highlightedRelationshipIds", "topLeftIsland", "topRightIsland", "bottomLeftIsland", "bottomRightIsland", "gesture", "setGesture", "layout", "setLayout", "selected", "setSelected", "interactionMode", "setInteractionMode", "mouseEventCallbacks", "className", "style", "htmlAttributes", "ref", "as"]); - const j = me.useMemo(() => n ?? ao.createRef(), [n]), z = me.useId(), { theme: H } = S2(), { bg: q, border: W, text: $ } = Yu.theme[H].color.neutral, [J, X] = me.useState(0); + var e, t, { nvlRef: n, nvlCallbacks: i, nvlOptions: a, sidepanel: o, nodes: s, rels: u, highlightedNodeIds: l, highlightedRelationshipIds: c, topLeftIsland: f = Hw.topLeftIsland, topRightIsland: d = Hw.topRightIsland, bottomLeftIsland: h = Hw.bottomLeftIsland, bottomRightIsland: p = Hw.bottomRightIsland, gesture: g = "single", setGesture: y, layout: b, setLayout: _, selected: m, setSelected: x, interactionMode: S, setInteractionMode: O, mouseEventCallbacks: E = {}, className: T, style: P, htmlAttributes: I, ref: k, as: L } = r, B = Lle(r, ["nvlRef", "nvlCallbacks", "nvlOptions", "sidepanel", "nodes", "rels", "highlightedNodeIds", "highlightedRelationshipIds", "topLeftIsland", "topRightIsland", "bottomLeftIsland", "bottomRightIsland", "gesture", "setGesture", "layout", "setLayout", "selected", "setSelected", "interactionMode", "setInteractionMode", "mouseEventCallbacks", "className", "style", "htmlAttributes", "ref", "as"]); + const j = me.useMemo(() => n ?? ao.createRef(), [n]), z = me.useId(), { theme: H } = E2(), { bg: q, border: W, text: $ } = Yu.theme[H].color.neutral, [J, X] = me.useState(0); me.useEffect(() => { X((Y) => Y + 1); }, [H]); - const [Q, ue] = Lg({ + const [Z, ue] = Lg({ isControlled: S !== void 0, onChange: O, state: S ?? "select" @@ -82016,11 +82028,11 @@ function ql(r) { isControlled: b !== void 0, onChange: _, state: b ?? "d3Force" - }), pe = me.useMemo(() => _le(s, u), [s, u]), { nodesWithState: fe, relsWithState: se, wrappedMouseEventCallbacks: de } = Ile({ + }), pe = me.useMemo(() => wle(s, u), [s, u]), { nodesWithState: fe, relsWithState: se, wrappedMouseEventCallbacks: de } = Nle({ gesture: g, highlightedNodeIds: l, highlightedRelationshipIds: c, - interactionMode: Q, + interactionMode: Z, mouseEventCallbacks: E, nvlGraph: pe, selected: re, @@ -82030,14 +82042,14 @@ function ql(r) { isControlled: (o == null ? void 0 : o.isSidePanelOpen) !== void 0, onChange: o == null ? void 0 : o.setIsSidePanelOpen, state: (e = o == null ? void 0 : o.isSidePanelOpen) !== null && e !== void 0 ? e : !0 - }), [ke, Me] = Lg({ + }), [ke, De] = Lg({ isControlled: (o == null ? void 0 : o.sidePanelWidth) !== void 0, onChange: o == null ? void 0 : o.onSidePanelResize, state: (t = o == null ? void 0 : o.sidePanelWidth) !== null && t !== void 0 ? t : 400 }), Ne = me.useMemo(() => o === void 0 ? { - children: Te.jsx(ql.SingleSelectionSidePanelContents, {}), + children: Ce.jsx(ql.SingleSelectionSidePanelContents, {}), isSidePanelOpen: ge, - onSidePanelResize: Me, + onSidePanelResize: De, setIsSidePanelOpen: Oe, sidePanelWidth: ke } : o, [ @@ -82045,11 +82057,11 @@ function ql(r) { ge, Oe, ke, - Me - ]), Ce = L ?? "div"; - return Te.jsx(Ce, Object.assign({ ref: k, className: Vn("ndl-graph-visualization-container", T), style: P }, I, { children: Te.jsxs(MG.Provider, { value: { + De + ]), Te = L ?? "div"; + return Ce.jsx(Te, Object.assign({ ref: k, className: Vn("ndl-graph-visualization-container", T), style: P }, I, { children: Ce.jsxs(MG.Provider, { value: { gesture: g, - interactionMode: Q, + interactionMode: Z, layout: le, nvlGraph: pe, nvlInstance: j, @@ -82057,35 +82069,35 @@ function ql(r) { setGesture: y, setLayout: ce, sidepanel: Ne - }, children: [Te.jsxs("div", { className: "ndl-graph-visualization", children: [Te.jsx($ue, Object.assign({ layout: le, nodes: fe, rels: se, nvlOptions: Object.assign(Object.assign(Object.assign({}, jle), { instanceId: z, styling: { + }, children: [Ce.jsxs("div", { className: "ndl-graph-visualization", children: [Ce.jsx(Kue, Object.assign({ layout: le, nodes: fe, rels: se, nvlOptions: Object.assign(Object.assign(Object.assign({}, Ble), { instanceId: z, styling: { defaultRelationshipColor: W.strongest, disabledItemColor: q.strong, disabledItemFontColor: $.weakest, dropShadowColor: W.weak, selectedInnerBorderColor: q.default } }), a), nvlCallbacks: Object.assign({ onLayoutComputing(Y) { - var Z; - Y || (Z = j.current) === null || Z === void 0 || Z.fit(j.current.getNodes().map((ie) => ie.id), { noPan: !0 }); - } }, i), mouseEventCallbacks: de, ref: j }, B), J), f !== null && Te.jsx(Vw, { placement: "top-left", children: f }), d !== null && Te.jsx(Vw, { placement: "top-right", children: d }), h !== null && Te.jsx(Vw, { placement: "bottom-left", children: h }), p !== null && Te.jsx(Vw, { placement: "bottom-right", children: p })] }), Ne && Te.jsx(ty, { sidepanel: Ne })] }) })); + var Q; + Y || (Q = j.current) === null || Q === void 0 || Q.fit(j.current.getNodes().map((ie) => ie.id), { noPan: !0 }); + } }, i), mouseEventCallbacks: de, ref: j }, B), J), f !== null && Ce.jsx(Vw, { placement: "top-left", children: f }), d !== null && Ce.jsx(Vw, { placement: "top-right", children: d }), h !== null && Ce.jsx(Vw, { placement: "bottom-left", children: h }), p !== null && Ce.jsx(Vw, { placement: "bottom-right", children: p })] }), Ne && Ce.jsx(ty, { sidepanel: Ne })] }) })); } ql.ZoomInButton = kG; ql.ZoomOutButton = IG; ql.ZoomToFitButton = NG; ql.ToggleSidePanelButton = LG; ql.DownloadButton = jG; -ql.BoxSelectButton = tle; -ql.LassoSelectButton = rle; -ql.SingleSelectButton = ele; -ql.SearchButton = nle; -ql.SingleSelectionSidePanelContents = kle; -ql.LayoutSelectButton = ale; -ql.GestureSelectButton = sle; -function Ble(r) { +ql.BoxSelectButton = rle; +ql.LassoSelectButton = nle; +ql.SingleSelectButton = tle; +ql.SearchButton = ile; +ql.SingleSelectionSidePanelContents = Ile; +ql.LayoutSelectButton = ole; +ql.GestureSelectButton = ule; +function Fle(r) { return Array.isArray(r) && r.every((e) => typeof e == "string"); } -function Fle(r) { +function Ule(r) { return r.map((e) => { - const t = Ble(e.properties.labels) ? e.properties.labels : []; + const t = Fle(e.properties.labels) ? e.properties.labels : []; return { ...e, id: e.id, @@ -82102,7 +82114,7 @@ function Fle(r) { }; }); } -function Ule(r) { +function zle(r) { return r.map((e) => ({ ...e, id: e.id, @@ -82115,7 +82127,7 @@ function Ule(r) { to: e.to })); } -class zle extends me.Component { +class qle extends me.Component { constructor(e) { super(e), this.state = { error: null }; } @@ -82126,7 +82138,7 @@ class zle extends me.Component { console.error("[neo4j-viz] Rendering error:", e, t.componentStack); } render() { - return this.state.error ? /* @__PURE__ */ Te.jsxs( + return this.state.error ? /* @__PURE__ */ Ce.jsxs( "div", { style: { @@ -82142,8 +82154,8 @@ class zle extends me.Component { justifyContent: "center" }, children: [ - /* @__PURE__ */ Te.jsx("h3", { style: { margin: "0 0 8px" }, children: "Graph rendering failed" }), - /* @__PURE__ */ Te.jsx( + /* @__PURE__ */ Ce.jsx("h3", { style: { margin: "0 0 8px" }, children: "Graph rendering failed" }), + /* @__PURE__ */ Ce.jsx( "pre", { style: { @@ -82160,23 +82172,30 @@ class zle extends me.Component { ) : this.props.children; } } -function qle() { +function Gle() { + if (document.body.classList.contains("vscode-light")) + return "light"; + if (document.body.classList.contains("vscode-dark")) + return "dark"; const e = window.getComputedStyle(document.body, null).getPropertyValue("background-color").match(/\d+/g); - return !e || e.length < 3 ? "light" : Number(e[0]) * 0.2126 + Number(e[1]) * 0.7152 + Number(e[2]) * 0.0722 < 128 ? "dark" : "light"; + if (!e || e.length < 3) + return "light"; + const t = Number(e[0]) * 0.2126 + Number(e[1]) * 0.7152 + Number(e[2]) * 0.0722; + return t === 0 && e.length > 3 && e[3] === "0" ? "light" : t < 128 ? "dark" : "light"; } -function Gle(r) { +function Vle(r) { me.useEffect(() => { - const e = r === "auto" ? qle() : r; + const e = r === "auto" ? Gle() : r; document.documentElement.className = `ndl-theme-${e}`; }, [r]); } -function Vle() { +function Hle() { const [r] = Wy("nodes"), [e] = Wy("relationships"), [t] = Wy("options"), [n] = Wy("height"), [i] = Wy("width"), [a] = Wy("theme"); - Gle(a ?? "auto"); + Vle(a ?? "auto"); const { layout: o, nvlOptions: s, zoom: u, pan: l, layoutOptions: c } = t ?? {}, [f, d] = me.useMemo( () => [ - Fle(r ?? []), - Ule(e ?? []) + Ule(r ?? []), + zle(e ?? []) ], [r, e] ), h = me.useMemo( @@ -82188,7 +82207,7 @@ function Vle() { }), [s] ), [p, g] = me.useState(!1), [y, b] = me.useState(300); - return /* @__PURE__ */ Te.jsx("div", { style: { height: n ?? "600px", width: i ?? "100%" }, children: /* @__PURE__ */ Te.jsx( + return /* @__PURE__ */ Ce.jsx("div", { style: { height: n ?? "600px", width: i ?? "100%" }, children: /* @__PURE__ */ Ce.jsx( ql, { nodes: f, @@ -82203,15 +82222,15 @@ function Vle() { setIsSidePanelOpen: g, onSidePanelResize: b, sidePanelWidth: y, - children: /* @__PURE__ */ Te.jsx(ql.SingleSelectionSidePanelContents, {}) + children: /* @__PURE__ */ Ce.jsx(ql.SingleSelectionSidePanelContents, {}) } } ) }); } -function Hle() { - return /* @__PURE__ */ Te.jsx(zle, { children: /* @__PURE__ */ Te.jsx(Vle, {}) }); +function Wle() { + return /* @__PURE__ */ Ce.jsx(qle, { children: /* @__PURE__ */ Ce.jsx(Hle, {}) }); } -const Wle = uV(Hle), Xle = { render: Wle }; +const Yle = uV(Wle), $le = { render: Yle }; export { - Xle as default + $le as default }; diff --git a/python-wrapper/src/neo4j_viz/visualization_graph.py b/python-wrapper/src/neo4j_viz/visualization_graph.py index fc5bfc0..d77399b 100644 --- a/python-wrapper/src/neo4j_viz/visualization_graph.py +++ b/python-wrapper/src/neo4j_viz/visualization_graph.py @@ -2,7 +2,7 @@ import warnings from collections.abc import Hashable, Iterable -from typing import Any, Callable +from typing import Any, Callable, Literal from IPython.display import HTML from pydantic.alias_generators import to_snake @@ -142,6 +142,7 @@ def render( max_zoom: float = 10, allow_dynamic_min_zoom: bool = True, max_allowed_nodes: int = 10_000, + theme: Literal["auto"] | Literal["light"] | Literal["dark"] = "auto", ) -> HTML: """ Render the graph as an HTML object. @@ -173,7 +174,8 @@ def render( Whether to allow dynamic minimum zoom level. max_allowed_nodes: The maximum allowed number of nodes to render. - + theme: + The theme of the rendered graph. Can be 'auto', 'light', or 'dark' Example ------- @@ -198,6 +200,7 @@ def render( render_options, width, height, + theme, ) def render_widget( @@ -213,6 +216,7 @@ def render_widget( max_zoom: float = 10, allow_dynamic_min_zoom: bool = True, max_allowed_nodes: int = 10_000, + theme: Literal["auto"] | Literal["light"] | Literal["dark"] = "auto", ) -> GraphWidget: """ Render the graph as an interactive Jupyter widget (anywidget). @@ -244,6 +248,8 @@ def render_widget( Whether to allow dynamic minimum zoom level. max_allowed_nodes: The maximum allowed number of nodes to render. + theme: + The theme to use for the rendered graph. """ render_options = self._build_render_options( layout, @@ -263,6 +269,7 @@ def render_widget( width=width, height=height, options=render_options, + theme=theme, ) def toggle_nodes_pinned(self, pinned: dict[NodeIdType, bool]) -> None: diff --git a/python-wrapper/src/neo4j_viz/widget.py b/python-wrapper/src/neo4j_viz/widget.py index f78118b..ffc2915 100644 --- a/python-wrapper/src/neo4j_viz/widget.py +++ b/python-wrapper/src/neo4j_viz/widget.py @@ -56,6 +56,9 @@ class GraphWidget(anywidget.AnyWidget): width: traitlets.Unicode[str, str | bytes] = traitlets.Unicode("100%").tag(sync=True) height: traitlets.Unicode[str, str | bytes] = traitlets.Unicode("600px").tag(sync=True) options: traitlets.Dict[str, Any] = traitlets.Dict({}).tag(sync=True) + theme: traitlets.Unicode[str, str | bytes] = traitlets.Unicode( + default_value="auto", help="Theme of the graph widget. Can be 'auto', 'light', or 'dark'." + ).tag(sync=True) @classmethod def from_graph_data( @@ -65,6 +68,7 @@ def from_graph_data( width: str = "100%", height: str = "600px", options: RenderOptions | None = None, + theme: str = "auto", ) -> GraphWidget: """Create a GraphWidget from Node and Relationship lists.""" return cls( @@ -73,4 +77,5 @@ def from_graph_data( width=width, height=height, options=options.to_js_options() if options else {}, + theme=theme, ) diff --git a/python-wrapper/uv.lock b/python-wrapper/uv.lock index dad0e57..14d7a02 100644 --- a/python-wrapper/uv.lock +++ b/python-wrapper/uv.lock @@ -2148,7 +2148,7 @@ wheels = [ [[package]] name = "neo4j-viz" -version = "1.2.0" +version = "1.3.0" source = { editable = "." } dependencies = [ { name = "anywidget" },