mirror of
https://github.com/pyMC-dev/pyMC_Repeater.git
synced 2026-11-08 14:22:27 +01:00
Neighbors ui update add filters
This commit is contained in:
1 parent
377f3961dd
commit
3de7dfefa6
5 files changed
+166
-118
No files matched your search
@@ -15,6 +15,7 @@ class SQLiteHandler:
|
||||
self.storage_dir = storage_dir
|
||||
self.sqlite_path = self.storage_dir / "repeater.db"
|
||||
self._init_database()
|
||||
self._run_migrations()
|
||||
|
||||
def _init_database(self):
|
||||
try:
|
||||
@@ -63,7 +64,8 @@ class SQLiteHandler:
|
||||
rssi INTEGER,
|
||||
snr REAL,
|
||||
advert_count INTEGER NOT NULL DEFAULT 1,
|
||||
is_new_neighbor BOOLEAN NOT NULL
|
||||
is_new_neighbor BOOLEAN NOT NULL,
|
||||
zero_hop BOOLEAN NOT NULL DEFAULT FALSE
|
||||
)
|
||||
""")
|
||||
|
||||
@@ -105,6 +107,47 @@ class SQLiteHandler:
|
||||
except Exception as e:
|
||||
logger.error(f"Failed to initialize SQLite: {e}")
|
||||
|
||||
def _run_migrations(self):
|
||||
"""Run database migrations"""
|
||||
try:
|
||||
with sqlite3.connect(self.sqlite_path) as conn:
|
||||
# Create migrations table if it doesn't exist
|
||||
conn.execute("""
|
||||
CREATE TABLE IF NOT EXISTS migrations (
|
||||
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
||||
migration_name TEXT NOT NULL UNIQUE,
|
||||
applied_at REAL NOT NULL
|
||||
)
|
||||
""")
|
||||
|
||||
# Migration 1: Add zero_hop column to adverts table
|
||||
migration_name = "add_zero_hop_to_adverts"
|
||||
existing = conn.execute(
|
||||
"SELECT migration_name FROM migrations WHERE migration_name = ?",
|
||||
(migration_name,)
|
||||
).fetchone()
|
||||
|
||||
if not existing:
|
||||
# Check if zero_hop column already exists
|
||||
cursor = conn.execute("PRAGMA table_info(adverts)")
|
||||
columns = [column[1] for column in cursor.fetchall()]
|
||||
|
||||
if "zero_hop" not in columns:
|
||||
conn.execute("ALTER TABLE adverts ADD COLUMN zero_hop BOOLEAN NOT NULL DEFAULT FALSE")
|
||||
logger.info("Added zero_hop column to adverts table")
|
||||
|
||||
# Mark migration as applied
|
||||
conn.execute(
|
||||
"INSERT INTO migrations (migration_name, applied_at) VALUES (?, ?)",
|
||||
(migration_name, time.time())
|
||||
)
|
||||
logger.info(f"Migration '{migration_name}' applied successfully")
|
||||
|
||||
conn.commit()
|
||||
|
||||
except Exception as e:
|
||||
logger.error(f"Failed to run migrations: {e}")
|
||||
|
||||
def store_packet(self, record: dict):
|
||||
try:
|
||||
with sqlite3.connect(self.sqlite_path) as conn:
|
||||
@@ -169,7 +212,8 @@ class SQLiteHandler:
|
||||
UPDATE adverts
|
||||
SET timestamp = ?, node_name = ?, is_repeater = ?, route_type = ?,
|
||||
contact_type = ?, latitude = ?, longitude = ?, last_seen = ?,
|
||||
rssi = ?, snr = ?, advert_count = advert_count + 1, is_new_neighbor = 0
|
||||
rssi = ?, snr = ?, advert_count = advert_count + 1, is_new_neighbor = 0,
|
||||
zero_hop = ?
|
||||
WHERE pubkey = ?
|
||||
""", (
|
||||
current_time,
|
||||
@@ -182,14 +226,16 @@ class SQLiteHandler:
|
||||
current_time,
|
||||
record.get("rssi"),
|
||||
record.get("snr"),
|
||||
record.get("zero_hop", False),
|
||||
record.get("pubkey", "")
|
||||
))
|
||||
else:
|
||||
conn.execute("""
|
||||
INSERT INTO adverts (
|
||||
timestamp, pubkey, node_name, is_repeater, route_type, contact_type,
|
||||
latitude, longitude, first_seen, last_seen, rssi, snr, advert_count, is_new_neighbor
|
||||
) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
|
||||
latitude, longitude, first_seen, last_seen, rssi, snr, advert_count,
|
||||
is_new_neighbor, zero_hop
|
||||
) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
|
||||
""", (
|
||||
current_time,
|
||||
record.get("pubkey", ""),
|
||||
@@ -204,7 +250,8 @@ class SQLiteHandler:
|
||||
record.get("rssi"),
|
||||
record.get("snr"),
|
||||
1,
|
||||
True
|
||||
True,
|
||||
record.get("zero_hop", False)
|
||||
))
|
||||
|
||||
except Exception as e:
|
||||
@@ -619,7 +666,7 @@ class SQLiteHandler:
|
||||
query = """
|
||||
SELECT id, timestamp, pubkey, node_name, is_repeater, route_type,
|
||||
contact_type, latitude, longitude, first_seen, last_seen,
|
||||
rssi, snr, advert_count, is_new_neighbor
|
||||
rssi, snr, advert_count, is_new_neighbor, zero_hop
|
||||
FROM adverts
|
||||
WHERE contact_type = ?
|
||||
"""
|
||||
@@ -655,7 +702,8 @@ class SQLiteHandler:
|
||||
"rssi": row["rssi"],
|
||||
"snr": row["snr"],
|
||||
"advert_count": row["advert_count"],
|
||||
"is_new_neighbor": bool(row["is_new_neighbor"])
|
||||
"is_new_neighbor": bool(row["is_new_neighbor"]),
|
||||
"zero_hop": bool(row["zero_hop"])
|
||||
}
|
||||
adverts.append(advert)
|
||||
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
@tailwind base;@tailwind components;@tailwind utilities;:root{--vt-c-white: #ffffff;--vt-c-white-soft: #f8f8f8;--vt-c-white-mute: #f2f2f2;--vt-c-black: #181818;--vt-c-black-soft: #222222;--vt-c-black-mute: #282828;--vt-c-indigo: #2c3e50;--vt-c-divider-light-1: rgba(60, 60, 60, .29);--vt-c-divider-light-2: rgba(60, 60, 60, .12);--vt-c-divider-dark-1: rgba(84, 84, 84, .65);--vt-c-divider-dark-2: rgba(84, 84, 84, .48);--vt-c-text-light-1: var(--vt-c-indigo);--vt-c-text-light-2: rgba(60, 60, 60, .66);--vt-c-text-dark-1: var(--vt-c-white);--vt-c-text-dark-2: rgba(235, 235, 235, .64)}:root{--color-background: var(--vt-c-white);--color-background-soft: var(--vt-c-white-soft);--color-background-mute: var(--vt-c-white-mute);--color-border: var(--vt-c-divider-light-2);--color-border-hover: var(--vt-c-divider-light-1);--color-heading: var(--vt-c-text-light-1);--color-text: var(--vt-c-text-light-1);--section-gap: 160px}@media (prefers-color-scheme: dark){:root{--color-background: var(--vt-c-black);--color-background-soft: var(--vt-c-black-soft);--color-background-mute: var(--vt-c-black-mute);--color-border: var(--vt-c-divider-dark-2);--color-border-hover: var(--vt-c-divider-dark-1);--color-heading: var(--vt-c-text-dark-1);--color-text: var(--vt-c-text-dark-2)}}*,*:before,*:after{box-sizing:border-box;margin:0;font-weight:400}body{min-height:100vh;color:var(--color-text);background:var(--color-background);transition:color .5s,background-color .5s;line-height:1.6;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;font-size:15px;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:Noto Sans,-apple-system,Roboto,Helvetica,sans-serif;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.Line truncated
|
||||
@@ -1 +0,0 @@
|
||||
@tailwind base;@tailwind components;@tailwind utilities;:root{--vt-c-white: #ffffff;--vt-c-white-soft: #f8f8f8;--vt-c-white-mute: #f2f2f2;--vt-c-black: #181818;--vt-c-black-soft: #222222;--vt-c-black-mute: #282828;--vt-c-indigo: #2c3e50;--vt-c-divider-light-1: rgba(60, 60, 60, .29);--vt-c-divider-light-2: rgba(60, 60, 60, .12);--vt-c-divider-dark-1: rgba(84, 84, 84, .65);--vt-c-divider-dark-2: rgba(84, 84, 84, .48);--vt-c-text-light-1: var(--vt-c-indigo);--vt-c-text-light-2: rgba(60, 60, 60, .66);--vt-c-text-dark-1: var(--vt-c-white);--vt-c-text-dark-2: rgba(235, 235, 235, .64)}:root{--color-background: var(--vt-c-white);--color-background-soft: var(--vt-c-white-soft);--color-background-mute: var(--vt-c-white-mute);--color-border: var(--vt-c-divider-light-2);--color-border-hover: var(--vt-c-divider-light-1);--color-heading: var(--vt-c-text-light-1);--color-text: var(--vt-c-text-light-1);--section-gap: 160px}@media (prefers-color-scheme: dark){:root{--color-background: var(--vt-c-black);--color-background-soft: var(--vt-c-black-soft);--color-background-mute: var(--vt-c-black-mute);--color-border: var(--vt-c-divider-dark-2);--color-border-hover: var(--vt-c-divider-dark-1);--color-heading: var(--vt-c-text-dark-1);--color-text: var(--vt-c-text-dark-2)}}*,*:before,*:after{box-sizing:border-box;margin:0;font-weight:400}body{min-height:100vh;color:var(--color-text);background:var(--color-background);transition:color .5s,background-color .5s;line-height:1.6;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;font-size:15px;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:Noto Sans,-apple-system,Roboto,Helvetica,sans-serif;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.Line truncated
|
||||
+108
-108
@@ -1,51 +1,51 @@
|
||||
function SG(d,s){for(var E=0;E<s.length;E++){const B=s[E];if(typeof B!="string"&&!Array.isArray(B)){for(const K in B)if(K!=="default"&&!(K in d)){const dt=Object.getOwnPropertyDescriptor(B,K);dt&&Object.defineProperty(d,K,dt.get?dt:{enumerable:!0,get:()=>B[K]})}}}return Object.freeze(Object.defineProperty(d,Symbol.toStringTag,{value:"Module"}))}(function(){const s=document.createElement("link").relList;if(s&&s.supports&&s.supports("modulepreload"))return;for(const K of document.querySelectorAll('link[rel="modulepreload"]'))B(K);new MutationObserver(K=>{for(const dt of K)if(dt.type==="childList")for(const _t of dt.addedNodes)_t.tagName==="LINK"&&_t.rel==="modulepreload"&&B(_t)}).observe(document,{childList:!0,subtree:!0});function E(K){const dt={};return K.integrity&&(dt.integrity=K.integrity),K.referrerPolicy&&(dt.referrerPolicy=K.referrerPolicy),K.crossOrigin==="use-credentials"?dt.credentials="include":K.crossOrigin==="anonymous"?dt.credentials="omit":dt.credentials="same-origin",dt}function B(K){if(K.ep)return;K.ep=!0;const dt=E(K);fetch(K.href,dt)}})();/**
|
||||
function SG(d,s){for(var C=0;C<s.length;C++){const B=s[C];if(typeof B!="string"&&!Array.isArray(B)){for(const K in B)if(K!=="default"&&!(K in d)){const dt=Object.getOwnPropertyDescriptor(B,K);dt&&Object.defineProperty(d,K,dt.get?dt:{enumerable:!0,get:()=>B[K]})}}}return Object.freeze(Object.defineProperty(d,Symbol.toStringTag,{value:"Module"}))}(function(){const s=document.createElement("link").relList;if(s&&s.supports&&s.supports("modulepreload"))return;for(const K of document.querySelectorAll('link[rel="modulepreload"]'))B(K);new MutationObserver(K=>{for(const dt of K)if(dt.type==="childList")for(const _t of dt.addedNodes)_t.tagName==="LINK"&&_t.rel==="modulepreload"&&B(_t)}).observe(document,{childList:!0,subtree:!0});function C(K){const dt={};return K.integrity&&(dt.integrity=K.integrity),K.referrerPolicy&&(dt.referrerPolicy=K.referrerPolicy),K.crossOrigin==="use-credentials"?dt.credentials="include":K.crossOrigin==="anonymous"?dt.credentials="omit":dt.credentials="same-origin",dt}function B(K){if(K.ep)return;K.ep=!0;const dt=C(K);fetch(K.href,dt)}})();/**
|
||||
* @vue/shared v3.5.18
|
||||
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||||
* @license MIT
|
||||
**//*! #__NO_SIDE_EFFECTS__ */function jA(d){const s=Object.create(null);for(const E of d.split(","))s[E]=1;return E=>E in s}const mf={},l_=[],mg=()=>{},EG=()=>!1,C4=d=>d.charCodeAt(0)===111&&d.charCodeAt(1)===110&&(d.charCodeAt(2)>122||d.charCodeAt(2)<97),UA=d=>d.startsWith("onUpdate:"),ap=Object.assign,VA=(d,s)=>{const E=d.indexOf(s);E>-1&&d.splice(E,1)},CG=Object.prototype.hasOwnProperty,Bh=(d,s)=>CG.call(d,s),au=Array.isArray,u_=d=>Q2(d)==="[object Map]",L4=d=>Q2(d)==="[object Set]",DC=d=>Q2(d)==="[object Date]",Hu=d=>typeof d=="function",ld=d=>typeof d=="string",Lm=d=>typeof d=="symbol",gf=d=>d!==null&&typeof d=="object",zI=d=>(gf(d)||Hu(d))&&Hu(d.then)&&Hu(d.catch),OI=Object.prototype.toString,Q2=d=>OI.call(d),LG=d=>Q2(d).slice(8,-1),DI=d=>Q2(d)==="[object Object]",HA=d=>ld(d)&&d!=="NaN"&&d[0]!=="-"&&""+parseInt(d,10)===d,b2=jA(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),P4=d=>{const s=Object.create(null);return E=>s[E]||(s[E]=d(E))},PG=/-(\w)/g,hm=P4(d=>d.replace(PG,(s,E)=>E?E.toUpperCase():"")),IG=/\B([A-Z])/g,zy=P4(d=>d.replace(IG,"-$1").toLowerCase()),I4=P4(d=>d.charAt(0).toUpperCase()+d.slice(1)),x8=P4(d=>d?`on${I4(d)}`:""),g1=(d,s)=>!Object.is(d,s),Y5=(d,...s)=>{for(let E=0;E<d.length;E++)d[E](...s)},aA=(d,s,E,B=!1)=>{Object.defineProperty(d,s,{configurable:!0,enumerable:!1,writable:B,value:E})},s4=d=>{const s=parseFloat(d);return isNaN(s)?d:s},zG=d=>{const s=ld(d)?Number(d):NaN;return isNaN(s)?d:s};let FC;const z4=()=>FC||(FC=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function G0(d){if(au(d)){const s={};for(let E=0;E<d.length;E++){const B=d[E],K=ld(B)?RG(B):G0(B);if(K)for(const dt in K)s[dt]=K[dt]}return s}else if(ld(d)||gf(d))return d}const OG=/;(?![^(]*\))/g,DG=/:([^]+)/,FG=/\/\*[^]*?\*\//g;function RG(d){const s={};return d.replace(FG,"").split(OG).forEach(E=>{if(E){const B=E.split(DG);B.length>1&&(s[B[0].trim()]=B[1].trim())}}),s}function ko(d){let s="";if(ld(d))s=d;else if(au(d))for(let E=0;E<d.length;E++){const B=ko(d[E]);B&&(s+=B+" ")}else if(gf(d))for(const E in d)d[E]&&(s+=E+" ");return s.trim()}const BG="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",NG=jA(BG);function FI(d){return!!d||d===""}function jG(d,s){if(d.length!==s.length)return!1;let E=!0;for(let B=0;E&&B<d.length;B++)E=p_(d[B],s[B]);return E}function p_(d,s){if(d===s)return!0;let E=DC(d),B=DC(s);if(E||B)return E&&B?d.getTime()===s.getTime():!1;if(E=Lm(d),B=Lm(s),E||B)return d===s;if(E=au(d),B=au(s),E||B)return E&&B?jG(d,s):!1;if(E=gf(d),B=gf(s),E||B){if(!E||!B)return!1;const K=Object.keys(d).length,dt=Object.keys(s).length;if(K!==dt)return!1;for(const _t in d){const It=d.hasOwnProperty(_t),jt=s.hasOwnProperty(_t);if(It&&!jt||!It&&jt||!p_(d[_t],s[_t]))return!1}}return String(d)===String(s)}function UG(d,s){return d.findIndex(E=>p_(E,s))}const RI=d=>!!(d&&d.__v_isRef===!0),pi=d=>ld(d)?d:d==null?"":au(d)||gf(d)&&(d.toString===OI||!Hu(d.toString))?RI(d)?pi(d.value):JSON.stringify(d,BI,2):String(d),BI=(d,s)=>RI(s)?BI(d,s.value):u_(s)?{[`Map(${s.size})`]:[...s.entries()].reduce((E,[B,K],dt)=>(E[_8(B,dt)+" =>"]=K,E),{})}:L4(s)?{[`Set(${s.size})`]:[...s.values()].map(E=>_8(E))}:Lm(s)?_8(s):gf(s)&&!au(s)&&!DI(s)?String(s):s,_8=(d,s="")=>{var E;return Lm(d)?`Symbol(${(E=d.description)!=null?E:s})`:d};/**
|
||||
**//*! #__NO_SIDE_EFFECTS__ */function UA(d){const s=Object.create(null);for(const C of d.split(","))s[C]=1;return C=>C in s}const gf={},u_=[],mg=()=>{},CG=()=>!1,L4=d=>d.charCodeAt(0)===111&&d.charCodeAt(1)===110&&(d.charCodeAt(2)>122||d.charCodeAt(2)<97),VA=d=>d.startsWith("onUpdate:"),op=Object.assign,HA=(d,s)=>{const C=d.indexOf(s);C>-1&&d.splice(C,1)},EG=Object.prototype.hasOwnProperty,Bh=(d,s)=>EG.call(d,s),au=Array.isArray,c_=d=>tw(d)==="[object Map]",P4=d=>tw(d)==="[object Set]",DE=d=>tw(d)==="[object Date]",Hu=d=>typeof d=="function",ld=d=>typeof d=="string",Lm=d=>typeof d=="symbol",vf=d=>d!==null&&typeof d=="object",Iz=d=>(vf(d)||Hu(d))&&Hu(d.then)&&Hu(d.catch),Oz=Object.prototype.toString,tw=d=>Oz.call(d),LG=d=>tw(d).slice(8,-1),Dz=d=>tw(d)==="[object Object]",WA=d=>ld(d)&&d!=="NaN"&&d[0]!=="-"&&""+parseInt(d,10)===d,b2=UA(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),z4=d=>{const s=Object.create(null);return C=>s[C]||(s[C]=d(C))},PG=/-(\w)/g,hm=z4(d=>d.replace(PG,(s,C)=>C?C.toUpperCase():"")),zG=/\B([A-Z])/g,Iy=z4(d=>d.replace(zG,"-$1").toLowerCase()),I4=z4(d=>d.charAt(0).toUpperCase()+d.slice(1)),b8=z4(d=>d?`on${I4(d)}`:""),g1=(d,s)=>!Object.is(d,s),K5=(d,...s)=>{for(let C=0;C<d.length;C++)d[C](...s)},sA=(d,s,C,B=!1)=>{Object.defineProperty(d,s,{configurable:!0,enumerable:!1,writable:B,value:C})},l4=d=>{const s=parseFloat(d);return isNaN(s)?d:s},IG=d=>{const s=ld(d)?Number(d):NaN;return isNaN(s)?d:s};let FE;const O4=()=>FE||(FE=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function G0(d){if(au(d)){const s={};for(let C=0;C<d.length;C++){const B=d[C],K=ld(B)?RG(B):G0(B);if(K)for(const dt in K)s[dt]=K[dt]}return s}else if(ld(d)||vf(d))return d}const OG=/;(?![^(]*\))/g,DG=/:([^]+)/,FG=/\/\*[^]*?\*\//g;function RG(d){const s={};return d.replace(FG,"").split(OG).forEach(C=>{if(C){const B=C.split(DG);B.length>1&&(s[B[0].trim()]=B[1].trim())}}),s}function yo(d){let s="";if(ld(d))s=d;else if(au(d))for(let C=0;C<d.length;C++){const B=yo(d[C]);B&&(s+=B+" ")}else if(vf(d))for(const C in d)d[C]&&(s+=C+" ");return s.trim()}const BG="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",NG=UA(BG);function Fz(d){return!!d||d===""}function jG(d,s){if(d.length!==s.length)return!1;let C=!0;for(let B=0;C&&B<d.length;B++)C=m_(d[B],s[B]);return C}function m_(d,s){if(d===s)return!0;let C=DE(d),B=DE(s);if(C||B)return C&&B?d.getTime()===s.getTime():!1;if(C=Lm(d),B=Lm(s),C||B)return d===s;if(C=au(d),B=au(s),C||B)return C&&B?jG(d,s):!1;if(C=vf(d),B=vf(s),C||B){if(!C||!B)return!1;const K=Object.keys(d).length,dt=Object.keys(s).length;if(K!==dt)return!1;for(const _t in d){const zt=d.hasOwnProperty(_t),jt=s.hasOwnProperty(_t);if(zt&&!jt||!zt&&jt||!m_(d[_t],s[_t]))return!1}}return String(d)===String(s)}function UG(d,s){return d.findIndex(C=>m_(C,s))}const Rz=d=>!!(d&&d.__v_isRef===!0),mi=d=>ld(d)?d:d==null?"":au(d)||vf(d)&&(d.toString===Oz||!Hu(d.toString))?Rz(d)?mi(d.value):JSON.stringify(d,Bz,2):String(d),Bz=(d,s)=>Rz(s)?Bz(d,s.value):c_(s)?{[`Map(${s.size})`]:[...s.entries()].reduce((C,[B,K],dt)=>(C[w8(B,dt)+" =>"]=K,C),{})}:P4(s)?{[`Set(${s.size})`]:[...s.values()].map(C=>w8(C))}:Lm(s)?w8(s):vf(s)&&!au(s)&&!Dz(s)?String(s):s,w8=(d,s="")=>{var C;return Lm(d)?`Symbol(${(C=d.description)!=null?C:s})`:d};/**
|
||||
* @vue/reactivity v3.5.18
|
||||
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||||
* @license MIT
|
||||
**/let $p;class NI{constructor(s=!1){this.detached=s,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=$p,!s&&$p&&(this.index=($p.scopes||($p.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let s,E;if(this.scopes)for(s=0,E=this.scopes.length;s<E;s++)this.scopes[s].pause();for(s=0,E=this.effects.length;s<E;s++)this.effects[s].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let s,E;if(this.scopes)for(s=0,E=this.scopes.length;s<E;s++)this.scopes[s].resume();for(s=0,E=this.effects.length;s<E;s++)this.effects[s].resume()}}run(s){if(this._active){const E=$p;try{return $p=this,s()}finally{$p=E}}}on(){++this._on===1&&(this.prevScope=$p,$p=this)}off(){this._on>0&&--this._on===0&&($p=this.prevScope,this.prevScope=void 0)}stop(s){if(this._active){this._active=!1;let E,B;for(E=0,B=this.effects.length;E<B;E++)this.effects[E].stop();for(this.effects.length=0,E=0,B=this.cleanups.length;E<B;E++)this.cleanups[E]();if(this.cleanups.length=0,this.scopes){for(E=0,B=this.scopes.length;E<B;E++)this.scopes[E].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!s){const K=this.parent.scopes.pop();K&&K!==this&&(this.parent.scopes[this.index]=K,K.index=this.index)}this.parent=void 0}}}function jI(d){return new NI(d)}function UI(){return $p}function VG(d,s=!1){$p&&$p.cleanups.push(d)}let kf;const b8=new WeakSet;class VI{constructor(s){this.fn=s,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,$p&&$p.active&&$p.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,b8.has(this)&&(b8.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||WI(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,RC(this),qI(this);const s=kf,E=Em;kf=this,Em=!0;try{return this.fn()}finally{$I(this),kf=s,Em=E,this.flags&=-3}}stop(){if(this.flags&1){for(let s=this.deps;s;s=s.nextDep)$A(s);this.deps=this.depsTail=void 0,RC(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?b8.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){oA(this)&&this.run()}get dirty(){return oA(this)}}let HI=0,w2,k2;function WI(d,s=!1){if(d.flags|=8,s){d.next=k2,k2=d;return}d.next=w2,w2=d}function WA(){HI++}function qA(){if(--HI>0)return;if(k2){let s=k2;for(k2=void 0;s;){const E=s.next;s.next=void 0,s.flags&=-9,s=E}}let d;for(;w2;){let s=w2;for(w2=void 0;s;){const E=s.next;if(s.next=void 0,s.flags&=-9,s.flags&1)try{s.trigger()}catch(B){d||(d=B)}s=E}}if(d)throw d}function qI(d){for(let s=d.deps;s;s=s.nextDep)s.version=-1,s.prevActiveLink=s.dep.activeLink,s.dep.activeLink=s}function $I(d){let s,E=d.depsTail,B=E;for(;B;){const K=B.prevDep;B.version===-1?(B===E&&(E=K),$A(B),HG(B)):s=B,B.dep.activeLink=B.prevActiveLink,B.prevActiveLink=void 0,B=K}d.deps=s,d.depsTail=E}function oA(d){for(let s=d.deps;s;s=s.nextDep)if(s.dep.version!==s.version||s.dep.computed&&(ZI(s.dep.computed)||s.dep.version!==s.version))return!0;return!!d._dirty}function ZI(d){if(d.flags&4&&!(d.flags&16)||(d.flags&=-17,d.globalVersion===D2)||(d.globalVersion=D2,!d.isSSR&&d.flags&128&&(!d.deps&&!d._dirty||!oA(d))))return;d.flags|=2;const s=d.dep,E=kf,B=Em;kf=d,Em=!0;try{qI(d);const K=d.fn(d._value);(s.version===0||g1(K,d._value))&&(d.flags|=128,d._value=K,s.version++)}catch(K){throw s.version++,K}finally{kf=E,Em=B,$I(d),d.flags&=-3}}function $A(d,s=!1){const{dep:E,prevSub:B,nextSub:K}=d;if(B&&(B.nextSub=K,d.prevSub=void 0),K&&(K.prevSub=B,d.nextSub=void 0),E.subs===d&&(E.subs=B,!B&&E.computed)){E.computed.flags&=-5;for(let dt=E.computed.deps;dt;dt=dt.nextDep)$A(dt,!0)}!s&&!--E.sc&&E.map&&E.map.delete(E.key)}function HG(d){const{prevDep:s,nextDep:E}=d;s&&(s.nextDep=E,d.prevDep=void 0),E&&(E.prevDep=s,d.nextDep=void 0)}let Em=!0;const GI=[];function sv(){GI.push(Em),Em=!1}function lv(){const d=GI.pop();Em=d===void 0?!0:d}function RC(d){const{cleanup:s}=d;if(d.cleanup=void 0,s){const E=kf;kf=void 0;try{s()}finally{kf=E}}}let D2=0;class WG{constructor(s,E){this.sub=s,this.dep=E,this.version=E.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class ZA{constructor(s){this.computed=s,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(s){if(!kf||!Em||kf===this.computed)return;let E=this.activeLink;if(E===void 0||E.sub!==kf)E=this.activeLink=new WG(kf,this),kf.deps?(E.prevDep=kf.depsTail,kf.depsTail.nextDep=E,kf.depsTail=E):kf.deps=kf.depsTail=E,YI(E);else if(E.version===-1&&(E.version=this.version,E.nextDep)){const B=E.nextDep;B.prevDep=E.prevDep,E.prevDep&&(E.prevDep.nextDep=B),E.prevDep=kf.depsTail,E.nextDep=void 0,kf.depsTail.nextDep=E,kf.depsTail=E,kf.deps===E&&(kf.deps=B)}return E}trigger(s){this.version++,D2++,this.notify(s)}notify(s){WA();try{for(let E=this.subs;E;E=E.prevSub)E.sub.notify()&&E.sub.dep.notify()}finally{qA()}}}fLine truncated
|
||||
**/let Zp;class Nz{constructor(s=!1){this.detached=s,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Zp,!s&&Zp&&(this.index=(Zp.scopes||(Zp.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let s,C;if(this.scopes)for(s=0,C=this.scopes.length;s<C;s++)this.scopes[s].pause();for(s=0,C=this.effects.length;s<C;s++)this.effects[s].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let s,C;if(this.scopes)for(s=0,C=this.scopes.length;s<C;s++)this.scopes[s].resume();for(s=0,C=this.effects.length;s<C;s++)this.effects[s].resume()}}run(s){if(this._active){const C=Zp;try{return Zp=this,s()}finally{Zp=C}}}on(){++this._on===1&&(this.prevScope=Zp,Zp=this)}off(){this._on>0&&--this._on===0&&(Zp=this.prevScope,this.prevScope=void 0)}stop(s){if(this._active){this._active=!1;let C,B;for(C=0,B=this.effects.length;C<B;C++)this.effects[C].stop();for(this.effects.length=0,C=0,B=this.cleanups.length;C<B;C++)this.cleanups[C]();if(this.cleanups.length=0,this.scopes){for(C=0,B=this.scopes.length;C<B;C++)this.scopes[C].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!s){const K=this.parent.scopes.pop();K&&K!==this&&(this.parent.scopes[this.index]=K,K.index=this.index)}this.parent=void 0}}}function jz(d){return new Nz(d)}function Uz(){return Zp}function VG(d,s=!1){Zp&&Zp.cleanups.push(d)}let Tf;const k8=new WeakSet;class Vz{constructor(s){this.fn=s,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,Zp&&Zp.active&&Zp.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,k8.has(this)&&(k8.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Wz(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,RE(this),qz(this);const s=Tf,C=Cm;Tf=this,Cm=!0;try{return this.fn()}finally{$z(this),Tf=s,Cm=C,this.flags&=-3}}stop(){if(this.flags&1){for(let s=this.deps;s;s=s.nextDep)ZA(s);this.deps=this.depsTail=void 0,RE(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?k8.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){lA(this)&&this.run()}get dirty(){return lA(this)}}let Hz=0,w2,k2;function Wz(d,s=!1){if(d.flags|=8,s){d.next=k2,k2=d;return}d.next=w2,w2=d}function qA(){Hz++}function $A(){if(--Hz>0)return;if(k2){let s=k2;for(k2=void 0;s;){const C=s.next;s.next=void 0,s.flags&=-9,s=C}}let d;for(;w2;){let s=w2;for(w2=void 0;s;){const C=s.next;if(s.next=void 0,s.flags&=-9,s.flags&1)try{s.trigger()}catch(B){d||(d=B)}s=C}}if(d)throw d}function qz(d){for(let s=d.deps;s;s=s.nextDep)s.version=-1,s.prevActiveLink=s.dep.activeLink,s.dep.activeLink=s}function $z(d){let s,C=d.depsTail,B=C;for(;B;){const K=B.prevDep;B.version===-1?(B===C&&(C=K),ZA(B),HG(B)):s=B,B.dep.activeLink=B.prevActiveLink,B.prevActiveLink=void 0,B=K}d.deps=s,d.depsTail=C}function lA(d){for(let s=d.deps;s;s=s.nextDep)if(s.dep.version!==s.version||s.dep.computed&&(Zz(s.dep.computed)||s.dep.version!==s.version))return!0;return!!d._dirty}function Zz(d){if(d.flags&4&&!(d.flags&16)||(d.flags&=-17,d.globalVersion===D2)||(d.globalVersion=D2,!d.isSSR&&d.flags&128&&(!d.deps&&!d._dirty||!lA(d))))return;d.flags|=2;const s=d.dep,C=Tf,B=Cm;Tf=d,Cm=!0;try{qz(d);const K=d.fn(d._value);(s.version===0||g1(K,d._value))&&(d.flags|=128,d._value=K,s.version++)}catch(K){throw s.version++,K}finally{Tf=C,Cm=B,$z(d),d.flags&=-3}}function ZA(d,s=!1){const{dep:C,prevSub:B,nextSub:K}=d;if(B&&(B.nextSub=K,d.prevSub=void 0),K&&(K.prevSub=B,d.nextSub=void 0),C.subs===d&&(C.subs=B,!B&&C.computed)){C.computed.flags&=-5;for(let dt=C.computed.deps;dt;dt=dt.nextDep)ZA(dt,!0)}!s&&!--C.sc&&C.map&&C.map.delete(C.key)}function HG(d){const{prevDep:s,nextDep:C}=d;s&&(s.nextDep=C,d.prevDep=void 0),C&&(C.prevDep=s,d.nextDep=void 0)}let Cm=!0;const Gz=[];function sv(){Gz.push(Cm),Cm=!1}function lv(){const d=Gz.pop();Cm=d===void 0?!0:d}function RE(d){const{cleanup:s}=d;if(d.cleanup=void 0,s){const C=Tf;Tf=void 0;try{s()}finally{Tf=C}}}let D2=0;class WG{constructor(s,C){this.sub=s,this.dep=C,this.version=C.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class GA{constructor(s){this.computed=s,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(s){if(!Tf||!Cm||Tf===this.computed)return;let C=this.activeLink;if(C===void 0||C.sub!==Tf)C=this.activeLink=new WG(Tf,this),Tf.deps?(C.prevDep=Tf.depsTail,Tf.depsTail.nextDep=C,Tf.depsTail=C):Tf.deps=Tf.depsTail=C,Yz(C);else if(C.version===-1&&(C.version=this.version,C.nextDep)){const B=C.nextDep;B.prevDep=C.prevDep,C.prevDep&&(C.prevDep.nextDep=B),C.prevDep=Tf.depsTail,C.nextDep=void 0,Tf.depsTail.nextDep=C,Tf.depsTail=C,Tf.deps===C&&(Tf.deps=B)}return C}trigger(s){this.version++,D2++,this.notify(s)}notify(s){qA();try{for(let C=this.subs;C;C=C.prevSub)C.sub.notify()&&C.sub.dep.notify()}finally{$A()}}}fLine truncated
|
||||
* @vue/runtime-core v3.5.18
|
||||
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||||
* @license MIT
|
||||
**/function tw(d,s,E,B){try{return B?d(...B):d()}catch(K){D4(K,s,E)}}function Pm(d,s,E,B){if(Hu(d)){const K=tw(d,s,E,B);return K&&zI(K)&&K.catch(dt=>{D4(dt,s,E)}),K}if(au(d)){const K=[];for(let dt=0;dt<d.length;dt++)K.push(Pm(d[dt],s,E,B));return K}}function D4(d,s,E,B=!0){const K=s?s.vnode:null,{errorHandler:dt,throwUnhandledErrorInProduction:_t}=s&&s.appContext.config||mf;if(s){let It=s.parent;const jt=s.proxy,re=`https://vuejs.org/error-reference/#runtime-${E}`;for(;It;){const se=It.ec;if(se){for(let we=0;we<se.length;we++)if(se[we](d,jt,re)===!1)return}It=It.parent}if(dt){sv(),tw(dt,null,10,[d,jt,re]),lv();return}}yY(d,E,K,B,_t)}function yY(d,s,E,B=!0,K=!1){if(K)throw d;console.error(d)}const f0=[];let ug=-1;const c_=[];let o1=null,o_=0;const oz=Promise.resolve();let h4=null;function S0(d){const s=h4||oz;return d?s.then(this?d.bind(this):d):s}function xY(d){let s=ug+1,E=f0.length;for(;s<E;){const B=s+E>>>1,K=f0[B],dt=R2(K);dt<d||dt===d&&K.flags&2?s=B+1:E=B}return s}function JA(d){if(!(d.flags&1)){const s=R2(d),E=f0[f0.length-1];!E||!(d.flags&2)&&s>=R2(E)?f0.push(d):f0.splice(xY(s),0,d),d.flags|=1,sz()}}function sz(){h4||(h4=oz.then(uz))}function _Y(d){au(d)?c_.push(...d):o1&&d.id===-1?o1.splice(o_+1,0,d):d.flags&1||(c_.push(d),d.flags|=1),sz()}function NC(d,s,E=ug+1){for(;E<f0.length;E++){const B=f0[E];if(B&&B.flags&2){if(d&&B.id!==d.uid)continue;f0.splice(E,1),E--,B.flags&4&&(B.flags&=-2),B(),B.flags&4||(B.flags&=-2)}}}function lz(d){if(c_.length){const s=[...new Set(c_)].sort((E,B)=>R2(E)-R2(B));if(c_.length=0,o1){o1.push(...s);return}for(o1=s,o_=0;o_<o1.length;o_++){const E=o1[o_];E.flags&4&&(E.flags&=-2),E.flags&8||E(),E.flags&=-2}o1=null,o_=0}}const R2=d=>d.id==null?d.flags&2?-1:1/0:d.id;function uz(d){try{for(ug=0;ug<f0.length;ug++){const s=f0[ug];s&&!(s.flags&8)&&(s.flags&4&&(s.flags&=-2),tw(s,s.i,s.i?15:14),s.flags&4||(s.flags&=-2))}}finally{for(;ug<f0.length;ug++){const s=f0[ug];s&&(s.flags&=-2)}ug=-1,f0.length=0,lz(),h4=null,(f0.length||c_.length)&&uz()}}let Op=null,cz=null;function f4(d){const s=Op;return Op=d,cz=d&&d.type.__scopeId||null,s}function ew(d,s=Op,E){if(!s||d._n)return d;const B=(...K)=>{B._d&&QC(-1);const dt=f4(s);let _t;try{_t=d(...K)}finally{f4(dt),B._d&&QC(1)}return _t};return B._n=!0,B._c=!0,B._d=!0,B}function Gp(d,s){if(Op===null)return d;const E=U4(Op),B=d.dirs||(d.dirs=[]);for(let K=0;K<s.length;K++){let[dt,_t,It,jt=mf]=s[K];dt&&(Hu(dt)&&(dt={mounted:dt,updated:dt}),dt.deep&&rv(_t),B.push({dir:dt,instance:E,value:_t,oldValue:void 0,arg:It,modifiers:jt}))}return d}function sy(d,s,E,B){const K=d.dirs,dt=s&&s.dirs;for(let _t=0;_t<K.length;_t++){const It=K[_t];dt&&(It.oldValue=dt[_t].value);let jt=It.dir[B];jt&&(sv(),Pm(jt,E,8,[d.el,It,d,s]),lv())}}const hz=Symbol("_vte"),fz=d=>d.__isTeleport,T2=d=>d&&(d.disabled||d.disabled===""),jC=d=>d&&(d.defer||d.defer===""),UC=d=>typeof SVGElement<"u"&&d instanceof SVGElement,VC=d=>typeof MathMLElement=="function"&&d instanceof MathMLElement,uA=(d,s)=>{const E=d&&d.to;return ld(E)?s?s(E):null:E},dz={name:"Teleport",__isTeleport:!0,process(d,s,E,B,K,dt,_t,It,jt,re){const{mc:se,pc:we,pbc:tr,o:{insert:fr,querySelector:Mr,createText:xr,createComment:Dr}}=re,hn=T2(s.props);let{shapeFlag:Dt,children:on,dynamicChildren:Xn}=s;if(d==null){const Hn=s.el=xr(""),Qn=s.anchor=xr("");fr(Hn,E,B),fr(Qn,E,B);const Ri=(qr,ci)=>{Dt&16&&(K&&K.isCE&&(K.ce._teleportTarget=qr),se(on,qr,ci,K,dt,_t,It,jt))},$i=()=>{const qr=s.target=uA(s.props,Mr),ci=pz(qr,s,xr,fr);qr&&(_t!=="svg"&&UC(qr)?_t="svg":_t!=="mathml"&&VC(qr)&&(_t="mathml"),hn||(Ri(qr,ci),K5(s,!1)))};hn&&(Ri(E,Qn),K5(s,!0)),jC(s.props)?(s.el.__isMounted=!1,c0(()=>{$i(),delete s.el.__isMounted},dt)):$i()}else{if(jC(s.props)&&d.el.__isMounted===!1){c0(()=>{dz.process(d,s,E,B,K,dt,_t,It,jt,re)},dt);return}s.el=d.el,s.targetStart=d.targetStart;const Hn=s.anchor=d.anchor,Qn=s.target=d.target,Ri=s.targetAnchor=d.targetAnchor,$i=T2(d.props),qr=$i?E:Qn,ci=$i?Hn:Ri;if(_t==="svg"||UC(Qn)?_t="svg":(_t==="mathml"||VC(Qn))&&(_t="mathml"),Xn?(tr(d.dynamicChildren,Xn,qr,K,dt,_t,It),iM(d,s,!0)):jt||we(d,s,qr,ci,K,dt,_t,It,!1),hn)$i?s.props&&d.props&&s.props.to!==d.props.to&&(s.props.to=d.props.to):L5(s,E,Hn,re,1);else if((s.props&&s.props.to)!==(d.props&&d.props.to)){const On=s.target=uA(s.props,Mr);On&&L5(s,On,null,re,0)}else $i&&L5(s,Qn,Ri,re,1);K5(s,hn)}},remove(d,s,E,{um:B,o:{remove:K}},dt){const{shapeFlag:_t,children:It,anchor:jt,targetStart:re,targetAnchor:se,target:we,props:tr}=d;if(we&&(K(re),K(se)),dt&&K(jt),_t&16){const fr=dt||!T2(tr);for(let Mr=0;Mr<It.length;Mr++){const xr=It[Mr];B(xr,s,E,fr,!!xr.dynamicChildren)}}},move:L5,hydrate:bY};function L5(d,s,E,{o:{insert:B},m:K},dt=2){dt===0&&B(d.targetAnchor,s,E);const{el:_t,anchor:It,shapeFlag:jt,children:re,props:se}=d,we=dt===2;if(we&&B(_t,s,E),(!we||T2(se))&&jt&16)for(let tr=0;tr<re.length;tr++)K(re[tr],s,E,2);we&&B(It,s,E)}function bY(d,s,E,B,K,dt,{o:{nextSibling:_t,parentNode:It,querySelector:jt,insert:re,createText:se}},we){const tr=s.target=uA(s.props,jt
Line truncated
|
||||
**/function ew(d,s,C,B){try{return B?d(...B):d()}catch(K){F4(K,s,C)}}function Pm(d,s,C,B){if(Hu(d)){const K=ew(d,s,C,B);return K&&Iz(K)&&K.catch(dt=>{F4(dt,s,C)}),K}if(au(d)){const K=[];for(let dt=0;dt<d.length;dt++)K.push(Pm(d[dt],s,C,B));return K}}function F4(d,s,C,B=!0){const K=s?s.vnode:null,{errorHandler:dt,throwUnhandledErrorInProduction:_t}=s&&s.appContext.config||gf;if(s){let zt=s.parent;const jt=s.proxy,re=`https://vuejs.org/error-reference/#runtime-${C}`;for(;zt;){const oe=zt.ec;if(oe){for(let we=0;we<oe.length;we++)if(oe[we](d,jt,re)===!1)return}zt=zt.parent}if(dt){sv(),ew(dt,null,10,[d,jt,re]),lv();return}}yY(d,C,K,B,_t)}function yY(d,s,C,B=!0,K=!1){if(K)throw d;console.error(d)}const f0=[];let ug=-1;const h_=[];let o1=null,o_=0;const oI=Promise.resolve();let f4=null;function S0(d){const s=f4||oI;return d?s.then(this?d.bind(this):d):s}function xY(d){let s=ug+1,C=f0.length;for(;s<C;){const B=s+C>>>1,K=f0[B],dt=R2(K);dt<d||dt===d&&K.flags&2?s=B+1:C=B}return s}function QA(d){if(!(d.flags&1)){const s=R2(d),C=f0[f0.length-1];!C||!(d.flags&2)&&s>=R2(C)?f0.push(d):f0.splice(xY(s),0,d),d.flags|=1,sI()}}function sI(){f4||(f4=oI.then(uI))}function _Y(d){au(d)?h_.push(...d):o1&&d.id===-1?o1.splice(o_+1,0,d):d.flags&1||(h_.push(d),d.flags|=1),sI()}function NE(d,s,C=ug+1){for(;C<f0.length;C++){const B=f0[C];if(B&&B.flags&2){if(d&&B.id!==d.uid)continue;f0.splice(C,1),C--,B.flags&4&&(B.flags&=-2),B(),B.flags&4||(B.flags&=-2)}}}function lI(d){if(h_.length){const s=[...new Set(h_)].sort((C,B)=>R2(C)-R2(B));if(h_.length=0,o1){o1.push(...s);return}for(o1=s,o_=0;o_<o1.length;o_++){const C=o1[o_];C.flags&4&&(C.flags&=-2),C.flags&8||C(),C.flags&=-2}o1=null,o_=0}}const R2=d=>d.id==null?d.flags&2?-1:1/0:d.id;function uI(d){try{for(ug=0;ug<f0.length;ug++){const s=f0[ug];s&&!(s.flags&8)&&(s.flags&4&&(s.flags&=-2),ew(s,s.i,s.i?15:14),s.flags&4||(s.flags&=-2))}}finally{for(;ug<f0.length;ug++){const s=f0[ug];s&&(s.flags&=-2)}ug=-1,f0.length=0,lI(),f4=null,(f0.length||h_.length)&&uI()}}let Dp=null,cI=null;function d4(d){const s=Dp;return Dp=d,cI=d&&d.type.__scopeId||null,s}function rw(d,s=Dp,C){if(!s||d._n)return d;const B=(...K)=>{B._d&&QE(-1);const dt=d4(s);let _t;try{_t=d(...K)}finally{d4(dt),B._d&&QE(1)}return _t};return B._n=!0,B._c=!0,B._d=!0,B}function Yd(d,s){if(Dp===null)return d;const C=V4(Dp),B=d.dirs||(d.dirs=[]);for(let K=0;K<s.length;K++){let[dt,_t,zt,jt=gf]=s[K];dt&&(Hu(dt)&&(dt={mounted:dt,updated:dt}),dt.deep&&rv(_t),B.push({dir:dt,instance:C,value:_t,oldValue:void 0,arg:zt,modifiers:jt}))}return d}function sy(d,s,C,B){const K=d.dirs,dt=s&&s.dirs;for(let _t=0;_t<K.length;_t++){const zt=K[_t];dt&&(zt.oldValue=dt[_t].value);let jt=zt.dir[B];jt&&(sv(),Pm(jt,C,8,[d.el,zt,d,s]),lv())}}const hI=Symbol("_vte"),fI=d=>d.__isTeleport,T2=d=>d&&(d.disabled||d.disabled===""),jE=d=>d&&(d.defer||d.defer===""),UE=d=>typeof SVGElement<"u"&&d instanceof SVGElement,VE=d=>typeof MathMLElement=="function"&&d instanceof MathMLElement,hA=(d,s)=>{const C=d&&d.to;return ld(C)?s?s(C):null:C},dI={name:"Teleport",__isTeleport:!0,process(d,s,C,B,K,dt,_t,zt,jt,re){const{mc:oe,pc:we,pbc:tr,o:{insert:fr,querySelector:Mr,createText:xr,createComment:Dr}}=re,hn=T2(s.props);let{shapeFlag:Dt,children:on,dynamicChildren:Qn}=s;if(d==null){const Wn=s.el=xr(""),ei=s.anchor=xr("");fr(Wn,C,B),fr(ei,C,B);const Ri=(nn,Bi)=>{Dt&16&&(K&&K.isCE&&(K.ce._teleportTarget=nn),oe(on,nn,Bi,K,dt,_t,zt,jt))},qi=()=>{const nn=s.target=hA(s.props,Mr),Bi=pI(nn,s,xr,fr);nn&&(_t!=="svg"&&UE(nn)?_t="svg":_t!=="mathml"&&VE(nn)&&(_t="mathml"),hn||(Ri(nn,Bi),X5(s,!1)))};hn&&(Ri(C,ei),X5(s,!0)),jE(s.props)?(s.el.__isMounted=!1,c0(()=>{qi(),delete s.el.__isMounted},dt)):qi()}else{if(jE(s.props)&&d.el.__isMounted===!1){c0(()=>{dI.process(d,s,C,B,K,dt,_t,zt,jt,re)},dt);return}s.el=d.el,s.targetStart=d.targetStart;const Wn=s.anchor=d.anchor,ei=s.target=d.target,Ri=s.targetAnchor=d.targetAnchor,qi=T2(d.props),nn=qi?C:ei,Bi=qi?Wn:Ri;if(_t==="svg"||UE(ei)?_t="svg":(_t==="mathml"||VE(ei))&&(_t="mathml"),Qn?(tr(d.dynamicChildren,Qn,nn,K,dt,_t,zt),aM(d,s,!0)):jt||we(d,s,nn,Bi,K,dt,_t,zt,!1),hn)qi?s.props&&d.props&&s.props.to!==d.props.to&&(s.props.to=d.props.to):P5(s,C,Wn,re,1);else if((s.props&&s.props.to)!==(d.props&&d.props.to)){const $n=s.target=hA(s.props,Mr);$n&&P5(s,$n,null,re,0)}else qi&&P5(s,ei,Ri,re,1);X5(s,hn)}},remove(d,s,C,{um:B,o:{remove:K}},dt){const{shapeFlag:_t,children:zt,anchor:jt,targetStart:re,targetAnchor:oe,target:we,props:tr}=d;if(we&&(K(re),K(oe)),dt&&K(jt),_t&16){const fr=dt||!T2(tr);for(let Mr=0;Mr<zt.length;Mr++){const xr=zt[Mr];B(xr,s,C,fr,!!xr.dynamicChildren)}}},move:P5,hydrate:bY};function P5(d,s,C,{o:{insert:B},m:K},dt=2){dt===0&&B(d.targetAnchor,s,C);const{el:_t,anchor:zt,shapeFlag:jt,children:re,props:oe}=d,we=dt===2;if(we&&B(_t,s,C),(!we||T2(oe))&&jt&16)for(let tr=0;tr<re.length;tr++)K(re[tr],s,C,2);we&&B(zt,s,C)}function bY(d,s,C,B,K,dt,{o:{nextSibling:_t,parentNode:zt,querySelector:jt,insert:re,createText:oe}},we){const tr=s.target=hA(s.props,jt
Line truncated
|
||||
* @vue/runtime-dom v3.5.18
|
||||
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||||
* @license MIT
|
||||
**/let mA;const rL=typeof window<"u"&&window.trustedTypes;if(rL)try{mA=rL.createPolicy("vue",{createHTML:d=>d})}catch{}const Zz=mA?d=>mA.createHTML(d):d=>d,kK="http://www.w3.org/2000/svg",TK="http://www.w3.org/1998/Math/MathML",Qg=typeof document<"u"?document:null,nL=Qg&&Qg.createElement("template"),AK={insert:(d,s,E)=>{s.insertBefore(d,E||null)},remove:d=>{const s=d.parentNode;s&&s.removeChild(d)},createElement:(d,s,E,B)=>{const K=s==="svg"?Qg.createElementNS(kK,d):s==="mathml"?Qg.createElementNS(TK,d):E?Qg.createElement(d,{is:E}):Qg.createElement(d);return d==="select"&&B&&B.multiple!=null&&K.setAttribute("multiple",B.multiple),K},createText:d=>Qg.createTextNode(d),createComment:d=>Qg.createComment(d),setText:(d,s)=>{d.nodeValue=s},setElementText:(d,s)=>{d.textContent=s},parentNode:d=>d.parentNode,nextSibling:d=>d.nextSibling,querySelector:d=>Qg.querySelector(d),setScopeId(d,s){d.setAttribute(s,"")},insertStaticContent(d,s,E,B,K,dt){const _t=E?E.previousSibling:s.lastChild;if(K&&(K===dt||K.nextSibling))for(;s.insertBefore(K.cloneNode(!0),E),!(K===dt||!(K=K.nextSibling)););else{nL.innerHTML=Zz(B==="svg"?`<svg>${d}</svg>`:B==="mathml"?`<math>${d}</math>`:d);const It=nL.content;if(B==="svg"||B==="mathml"){const jt=It.firstChild;for(;jt.firstChild;)It.appendChild(jt.firstChild);It.removeChild(jt)}s.insertBefore(It,E)}return[_t?_t.nextSibling:s.firstChild,E?E.previousSibling:s.lastChild]}},t1="transition",t2="animation",m_=Symbol("_vtc"),Gz={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},Yz=ap({},gz,Gz),MK=d=>(d.displayName="Transition",d.props=Yz,d),Kz=MK((d,{slots:s})=>oM(kY,Xz(d),s)),uy=(d,s=[])=>{au(d)?d.forEach(E=>E(...s)):d&&d(...s)},iL=d=>d?au(d)?d.some(s=>s.length>1):d.length>1:!1;function Xz(d){const s={};for(const ei in d)ei in Gz||(s[ei]=d[ei]);if(d.css===!1)return s;const{name:E="v",type:B,duration:K,enterFromClass:dt=`${E}-enter-from`,enterActiveClass:_t=`${E}-enter-active`,enterToClass:It=`${E}-enter-to`,appearFromClass:jt=dt,appearActiveClass:re=_t,appearToClass:se=It,leaveFromClass:we=`${E}-leave-from`,leaveActiveClass:tr=`${E}-leave-active`,leaveToClass:fr=`${E}-leave-to`}=d,Mr=SK(K),xr=Mr&&Mr[0],Dr=Mr&&Mr[1],{onBeforeEnter:hn,onEnter:Dt,onEnterCancelled:on,onLeave:Xn,onLeaveCancelled:Hn,onBeforeAppear:Qn=hn,onAppear:Ri=Dt,onAppearCancelled:$i=on}=s,qr=(ei,Fn,Vn,sa)=>{ei._enterCancelled=sa,n1(ei,Fn?se:It),n1(ei,Fn?re:_t),Vn&&Vn()},ci=(ei,Fn)=>{ei._isLeaving=!1,n1(ei,we),n1(ei,fr),n1(ei,tr),Fn&&Fn()},On=ei=>(Fn,Vn)=>{const sa=ei?Ri:Dt,Ai=()=>qr(Fn,ei,Vn);uy(sa,[Fn,Ai]),aL(()=>{n1(Fn,ei?jt:dt),sg(Fn,ei?se:It),iL(sa)||oL(Fn,B,xr,Ai)})};return ap(s,{onBeforeEnter(ei){uy(hn,[ei]),sg(ei,dt),sg(ei,_t)},onBeforeAppear(ei){uy(Qn,[ei]),sg(ei,jt),sg(ei,re)},onEnter:On(!1),onAppear:On(!0),onLeave(ei,Fn){ei._isLeaving=!0;const Vn=()=>ci(ei,Fn);sg(ei,we),ei._enterCancelled?(sg(ei,tr),gA()):(gA(),sg(ei,tr)),aL(()=>{ei._isLeaving&&(n1(ei,we),sg(ei,fr),iL(Xn)||oL(ei,B,Dr,Vn))}),uy(Xn,[ei,Vn])},onEnterCancelled(ei){qr(ei,!1,void 0,!0),uy(on,[ei])},onAppearCancelled(ei){qr(ei,!0,void 0,!0),uy($i,[ei])},onLeaveCancelled(ei){ci(ei),uy(Hn,[ei])}})}function SK(d){if(d==null)return null;if(gf(d))return[S8(d.enter),S8(d.leave)];{const s=S8(d);return[s,s]}}function S8(d){return zG(d)}function sg(d,s){s.split(/\s+/).forEach(E=>E&&d.classList.add(E)),(d[m_]||(d[m_]=new Set)).add(s)}function n1(d,s){s.split(/\s+/).forEach(B=>B&&d.classList.remove(B));const E=d[m_];E&&(E.delete(s),E.size||(d[m_]=void 0))}function aL(d){requestAnimationFrame(()=>{requestAnimationFrame(d)})}let EK=0;function oL(d,s,E,B){const K=d._endId=++EK,dt=()=>{K===d._endId&&B()};if(E!=null)return setTimeout(dt,E);const{type:_t,timeout:It,propCount:jt}=Jz(d,s);if(!_t)return B();const re=_t+"end";let se=0;const we=()=>{d.removeEventListener(re,tr),dt()},tr=fr=>{fr.target===d&&++se>=jt&&we()};setTimeout(()=>{se<jt&&we()},It+1),d.addEventListener(re,tr)}function Jz(d,s){const E=window.getComputedStyle(d),B=Mr=>(E[Mr]||"").split(", "),K=B(`${t1}Delay`),dt=B(`${t1}Duration`),_t=sL(K,dt),It=B(`${t2}Delay`),jt=B(`${t2}Duration`),re=sL(It,jt);let se=null,we=0,tr=0;s===t1?_t>0&&(se=t1,we=_t,tr=dt.length):s===t2?re>0&&(se=t2,we=re,tr=jt.length):(we=Math.max(_t,re),se=we>0?_t>re?t1:t2:null,tr=se?se===t1?dt.length:jt.length:0);const fr=se===t1&&/\b(transform|all)(,|$)/.test(B(`${t1}Property`).toString());return{type:se,timeout:we,propCount:tr,hasTransform:fr}}function sL(d,s){for(;d.length<s.length;)d=d.concat(d);return Math.max(...s.map((E,B)=>lL(E)+lL(d[B])))}function lL(d){return d==="auto"?0:Number(d.slice(0,-1).replace(",","."))*1e3}function gA(){return document.body.offsetHeight}function CK(d,s,E){const B=d[m_];B&&(s=(s?[s,...B]:[...B]).join(" ")),s==null?d.removeAttribute("class"):E?d.setAttribute("class",s):d.className=
Line truncated
|
||||
**/let vA;const rL=typeof window<"u"&&window.trustedTypes;if(rL)try{vA=rL.createPolicy("vue",{createHTML:d=>d})}catch{}const ZI=vA?d=>vA.createHTML(d):d=>d,kK="http://www.w3.org/2000/svg",TK="http://www.w3.org/1998/Math/MathML",Qg=typeof document<"u"?document:null,nL=Qg&&Qg.createElement("template"),AK={insert:(d,s,C)=>{s.insertBefore(d,C||null)},remove:d=>{const s=d.parentNode;s&&s.removeChild(d)},createElement:(d,s,C,B)=>{const K=s==="svg"?Qg.createElementNS(kK,d):s==="mathml"?Qg.createElementNS(TK,d):C?Qg.createElement(d,{is:C}):Qg.createElement(d);return d==="select"&&B&&B.multiple!=null&&K.setAttribute("multiple",B.multiple),K},createText:d=>Qg.createTextNode(d),createComment:d=>Qg.createComment(d),setText:(d,s)=>{d.nodeValue=s},setElementText:(d,s)=>{d.textContent=s},parentNode:d=>d.parentNode,nextSibling:d=>d.nextSibling,querySelector:d=>Qg.querySelector(d),setScopeId(d,s){d.setAttribute(s,"")},insertStaticContent(d,s,C,B,K,dt){const _t=C?C.previousSibling:s.lastChild;if(K&&(K===dt||K.nextSibling))for(;s.insertBefore(K.cloneNode(!0),C),!(K===dt||!(K=K.nextSibling)););else{nL.innerHTML=ZI(B==="svg"?`<svg>${d}</svg>`:B==="mathml"?`<math>${d}</math>`:d);const zt=nL.content;if(B==="svg"||B==="mathml"){const jt=zt.firstChild;for(;jt.firstChild;)zt.appendChild(jt.firstChild);zt.removeChild(jt)}s.insertBefore(zt,C)}return[_t?_t.nextSibling:s.firstChild,C?C.previousSibling:s.lastChild]}},t1="transition",e2="animation",g_=Symbol("_vtc"),GI={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},YI=op({},gI,GI),MK=d=>(d.displayName="Transition",d.props=YI,d),KI=MK((d,{slots:s})=>sM(kY,XI(d),s)),uy=(d,s=[])=>{au(d)?d.forEach(C=>C(...s)):d&&d(...s)},iL=d=>d?au(d)?d.some(s=>s.length>1):d.length>1:!1;function XI(d){const s={};for(const ni in d)ni in GI||(s[ni]=d[ni]);if(d.css===!1)return s;const{name:C="v",type:B,duration:K,enterFromClass:dt=`${C}-enter-from`,enterActiveClass:_t=`${C}-enter-active`,enterToClass:zt=`${C}-enter-to`,appearFromClass:jt=dt,appearActiveClass:re=_t,appearToClass:oe=zt,leaveFromClass:we=`${C}-leave-from`,leaveActiveClass:tr=`${C}-leave-active`,leaveToClass:fr=`${C}-leave-to`}=d,Mr=SK(K),xr=Mr&&Mr[0],Dr=Mr&&Mr[1],{onBeforeEnter:hn,onEnter:Dt,onEnterCancelled:on,onLeave:Qn,onLeaveCancelled:Wn,onBeforeAppear:ei=hn,onAppear:Ri=Dt,onAppearCancelled:qi=on}=s,nn=(ni,Dn,Vn,Ci)=>{ni._enterCancelled=Ci,n1(ni,Dn?oe:zt),n1(ni,Dn?re:_t),Vn&&Vn()},Bi=(ni,Dn)=>{ni._isLeaving=!1,n1(ni,we),n1(ni,fr),n1(ni,tr),Dn&&Dn()},$n=ni=>(Dn,Vn)=>{const Ci=ni?Ri:Dt,Pn=()=>nn(Dn,ni,Vn);uy(Ci,[Dn,Pn]),aL(()=>{n1(Dn,ni?jt:dt),sg(Dn,ni?oe:zt),iL(Ci)||oL(Dn,B,xr,Pn)})};return op(s,{onBeforeEnter(ni){uy(hn,[ni]),sg(ni,dt),sg(ni,_t)},onBeforeAppear(ni){uy(ei,[ni]),sg(ni,jt),sg(ni,re)},onEnter:$n(!1),onAppear:$n(!0),onLeave(ni,Dn){ni._isLeaving=!0;const Vn=()=>Bi(ni,Dn);sg(ni,we),ni._enterCancelled?(sg(ni,tr),yA()):(yA(),sg(ni,tr)),aL(()=>{ni._isLeaving&&(n1(ni,we),sg(ni,fr),iL(Qn)||oL(ni,B,Dr,Vn))}),uy(Qn,[ni,Vn])},onEnterCancelled(ni){nn(ni,!1,void 0,!0),uy(on,[ni])},onAppearCancelled(ni){nn(ni,!0,void 0,!0),uy(qi,[ni])},onLeaveCancelled(ni){Bi(ni),uy(Wn,[ni])}})}function SK(d){if(d==null)return null;if(vf(d))return[E8(d.enter),E8(d.leave)];{const s=E8(d);return[s,s]}}function E8(d){return IG(d)}function sg(d,s){s.split(/\s+/).forEach(C=>C&&d.classList.add(C)),(d[g_]||(d[g_]=new Set)).add(s)}function n1(d,s){s.split(/\s+/).forEach(B=>B&&d.classList.remove(B));const C=d[g_];C&&(C.delete(s),C.size||(d[g_]=void 0))}function aL(d){requestAnimationFrame(()=>{requestAnimationFrame(d)})}let CK=0;function oL(d,s,C,B){const K=d._endId=++CK,dt=()=>{K===d._endId&&B()};if(C!=null)return setTimeout(dt,C);const{type:_t,timeout:zt,propCount:jt}=JI(d,s);if(!_t)return B();const re=_t+"end";let oe=0;const we=()=>{d.removeEventListener(re,tr),dt()},tr=fr=>{fr.target===d&&++oe>=jt&&we()};setTimeout(()=>{oe<jt&&we()},zt+1),d.addEventListener(re,tr)}function JI(d,s){const C=window.getComputedStyle(d),B=Mr=>(C[Mr]||"").split(", "),K=B(`${t1}Delay`),dt=B(`${t1}Duration`),_t=sL(K,dt),zt=B(`${e2}Delay`),jt=B(`${e2}Duration`),re=sL(zt,jt);let oe=null,we=0,tr=0;s===t1?_t>0&&(oe=t1,we=_t,tr=dt.length):s===e2?re>0&&(oe=e2,we=re,tr=jt.length):(we=Math.max(_t,re),oe=we>0?_t>re?t1:e2:null,tr=oe?oe===t1?dt.length:jt.length:0);const fr=oe===t1&&/\b(transform|all)(,|$)/.test(B(`${t1}Property`).toString());return{type:oe,timeout:we,propCount:tr,hasTransform:fr}}function sL(d,s){for(;d.length<s.length;)d=d.concat(d);return Math.max(...s.map((C,B)=>lL(C)+lL(d[B])))}function lL(d){return d==="auto"?0:Number(d.slice(0,-1).replace(",","."))*1e3}function yA(){return document.body.offsetHeight}function EK(d,s,C){const B=d[g_];B&&(s=(s?[s,...B]:[...B]).join(" ")),s==null?d.removeAttribute("class"):C?d.setAttribute("class",s):d.className=
Line truncated
|
||||
* pinia v3.0.4
|
||||
* (c) 2025 Eduardo San Martin Morote
|
||||
* @license MIT
|
||||
*/let rO;const V4=d=>rO=d,nO=Symbol();function yA(d){return d&&typeof d=="object"&&Object.prototype.toString.call(d)==="[object Object]"&&typeof d.toJSON!="function"}var E2;(function(d){d.direct="direct",d.patchObject="patch object",d.patchFunction="patch function"})(E2||(E2={}));function iX(){const d=jI(!0),s=d.run(()=>ja({}));let E=[],B=[];const K=XA({install(dt){V4(K),K._a=dt,dt.provide(nO,K),dt.config.globalProperties.$pinia=K,B.forEach(_t=>E.push(_t)),B=[]},use(dt){return this._a?E.push(dt):B.push(dt),this},_p:E,_a:null,_e:d,_s:new Map,state:s});return K}const iO=()=>{};function bL(d,s,E,B=iO){d.add(s);const K=()=>{d.delete(s)&&B()};return!E&&UI()&&VG(K),K}function r_(d,...s){d.forEach(E=>{E(...s)})}const aX=d=>d(),wL=Symbol(),L8=Symbol();function xA(d,s){d instanceof Map&&s instanceof Map?s.forEach((E,B)=>d.set(B,E)):d instanceof Set&&s instanceof Set&&s.forEach(d.add,d);for(const E in s){if(!s.hasOwnProperty(E))continue;const B=s[E],K=d[E];yA(K)&&yA(B)&&d.hasOwnProperty(E)&&!jd(B)&&!v1(B)?d[E]=xA(K,B):d[E]=B}return d}const oX=Symbol();function sX(d){return!yA(d)||!Object.prototype.hasOwnProperty.call(d,oX)}const{assign:i1}=Object;function lX(d){return!!(jd(d)&&d.effect)}function uX(d,s,E,B){const{state:K,actions:dt,getters:_t}=s,It=E.state.value[d];let jt;function re(){It||(E.state.value[d]=K?K():{});const se=hY(E.state.value[d]);return i1(se,dt,Object.keys(_t||{}).reduce((we,tr)=>(we[tr]=XA(Ho(()=>{V4(E);const fr=E._s.get(d);return _t[tr].call(fr,fr)})),we),{}))}return jt=aO(d,re,s,E,B,!0),jt}function aO(d,s,E={},B,K,dt){let _t;const It=i1({actions:{}},E),jt={deep:!0};let re,se,we=new Set,tr=new Set,fr;const Mr=B.state.value[d];!dt&&!Mr&&(B.state.value[d]={}),ja({});let xr;function Dr($i){let qr;re=se=!1,typeof $i=="function"?($i(B.state.value[d]),qr={type:E2.patchFunction,storeId:d,events:fr}):(xA(B.state.value[d],$i),qr={type:E2.patchObject,payload:$i,storeId:d,events:fr});const ci=xr=Symbol();S0().then(()=>{xr===ci&&(re=!0)}),se=!0,r_(we,qr,B.state.value[d])}const hn=dt?function(){const{state:qr}=E,ci=qr?qr():{};this.$patch(On=>{i1(On,ci)})}:iO;function Dt(){_t.stop(),we.clear(),tr.clear(),B._s.delete(d)}const on=($i,qr="")=>{if(wL in $i)return $i[L8]=qr,$i;const ci=function(){V4(B);const On=Array.from(arguments),ei=new Set,Fn=new Set;function Vn(di){ei.add(di)}function sa(di){Fn.add(di)}r_(tr,{args:On,name:ci[L8],store:Hn,after:Vn,onError:sa});let Ai;try{Ai=$i.apply(this&&this.$id===d?this:Hn,On)}catch(di){throw r_(Fn,di),di}return Ai instanceof Promise?Ai.then(di=>(r_(ei,di),di)).catch(di=>(r_(Fn,di),Promise.reject(di))):(r_(ei,Ai),Ai)};return ci[wL]=!0,ci[L8]=qr,ci},Xn={_p:B,$id:d,$onAction:bL.bind(null,tr),$patch:Dr,$reset:hn,$subscribe($i,qr={}){const ci=bL(we,$i,qr.detached,()=>On()),On=_t.run(()=>Cm(()=>B.state.value[d],ei=>{(qr.flush==="sync"?se:re)&&$i({storeId:d,type:E2.direct,events:fr},ei)},i1({},jt,qr)));return ci},$dispose:Dt},Hn=Ey(Xn);B._s.set(d,Hn);const Ri=(B._a&&B._a.runWithContext||aX)(()=>B._e.run(()=>(_t=jI()).run(()=>s({action:on}))));for(const $i in Ri){const qr=Ri[$i];if(jd(qr)&&!lX(qr)||v1(qr))dt||(Mr&&sX(qr)&&(jd(qr)?qr.value=Mr[$i]:xA(qr,Mr[$i])),B.state.value[d][$i]=qr);else if(typeof qr=="function"){const ci=on(qr,$i);Ri[$i]=ci,It.actions[$i]=qr}}return i1(Hn,Ri),i1(Eu(Hn),Ri),Object.defineProperty(Hn,"$state",{get:()=>B.state.value[d],set:$i=>{Dr(qr=>{i1(qr,$i)})}}),B._p.forEach($i=>{i1(Hn,_t.run(()=>$i({store:Hn,app:B._a,pinia:B,options:It})))}),Mr&&dt&&E.hydrate&&E.hydrate(Hn.$state,Mr),re=!0,se=!0,Hn}/*! #__NO_SIDE_EFFECTS__ */function lM(d,s,E){let B;const K=typeof s=="function";B=K?E:s;function dt(_t,It){const jt=VY();return _t=_t||(jt?cm(nO,null):null),_t&&V4(_t),_t=rO,_t._s.has(d)||(K?aO(d,s,B,_t):uX(d,B,_t)),_t._s.get(d)}return dt.$id=d,dt}const cX="/assets/meshcore-DQNtEl5I.svg";/*!
|
||||
*/let rO;const W4=d=>rO=d,nO=Symbol();function xA(d){return d&&typeof d=="object"&&Object.prototype.toString.call(d)==="[object Object]"&&typeof d.toJSON!="function"}var C2;(function(d){d.direct="direct",d.patchObject="patch object",d.patchFunction="patch function"})(C2||(C2={}));function iX(){const d=jz(!0),s=d.run(()=>Ba({}));let C=[],B=[];const K=JA({install(dt){W4(K),K._a=dt,dt.provide(nO,K),dt.config.globalProperties.$pinia=K,B.forEach(_t=>C.push(_t)),B=[]},use(dt){return this._a?C.push(dt):B.push(dt),this},_p:C,_a:null,_e:d,_s:new Map,state:s});return K}const iO=()=>{};function bL(d,s,C,B=iO){d.add(s);const K=()=>{d.delete(s)&&B()};return!C&&Uz()&&VG(K),K}function r_(d,...s){d.forEach(C=>{C(...s)})}const aX=d=>d(),wL=Symbol(),z8=Symbol();function _A(d,s){d instanceof Map&&s instanceof Map?s.forEach((C,B)=>d.set(B,C)):d instanceof Set&&s instanceof Set&&s.forEach(d.add,d);for(const C in s){if(!s.hasOwnProperty(C))continue;const B=s[C],K=d[C];xA(K)&&xA(B)&&d.hasOwnProperty(C)&&!jd(B)&&!v1(B)?d[C]=_A(K,B):d[C]=B}return d}const oX=Symbol();function sX(d){return!xA(d)||!Object.prototype.hasOwnProperty.call(d,oX)}const{assign:i1}=Object;function lX(d){return!!(jd(d)&&d.effect)}function uX(d,s,C,B){const{state:K,actions:dt,getters:_t}=s,zt=C.state.value[d];let jt;function re(){zt||(C.state.value[d]=K?K():{});const oe=hY(C.state.value[d]);return i1(oe,dt,Object.keys(_t||{}).reduce((we,tr)=>(we[tr]=JA(Uo(()=>{W4(C);const fr=C._s.get(d);return _t[tr].call(fr,fr)})),we),{}))}return jt=aO(d,re,s,C,B,!0),jt}function aO(d,s,C={},B,K,dt){let _t;const zt=i1({actions:{}},C),jt={deep:!0};let re,oe,we=new Set,tr=new Set,fr;const Mr=B.state.value[d];!dt&&!Mr&&(B.state.value[d]={}),Ba({});let xr;function Dr(qi){let nn;re=oe=!1,typeof qi=="function"?(qi(B.state.value[d]),nn={type:C2.patchFunction,storeId:d,events:fr}):(_A(B.state.value[d],qi),nn={type:C2.patchObject,payload:qi,storeId:d,events:fr});const Bi=xr=Symbol();S0().then(()=>{xr===Bi&&(re=!0)}),oe=!0,r_(we,nn,B.state.value[d])}const hn=dt?function(){const{state:nn}=C,Bi=nn?nn():{};this.$patch($n=>{i1($n,Bi)})}:iO;function Dt(){_t.stop(),we.clear(),tr.clear(),B._s.delete(d)}const on=(qi,nn="")=>{if(wL in qi)return qi[z8]=nn,qi;const Bi=function(){W4(B);const $n=Array.from(arguments),ni=new Set,Dn=new Set;function Vn(Hn){ni.add(Hn)}function Ci(Hn){Dn.add(Hn)}r_(tr,{args:$n,name:Bi[z8],store:Wn,after:Vn,onError:Ci});let Pn;try{Pn=qi.apply(this&&this.$id===d?this:Wn,$n)}catch(Hn){throw r_(Dn,Hn),Hn}return Pn instanceof Promise?Pn.then(Hn=>(r_(ni,Hn),Hn)).catch(Hn=>(r_(Dn,Hn),Promise.reject(Hn))):(r_(ni,Pn),Pn)};return Bi[wL]=!0,Bi[z8]=nn,Bi},Qn={_p:B,$id:d,$onAction:bL.bind(null,tr),$patch:Dr,$reset:hn,$subscribe(qi,nn={}){const Bi=bL(we,qi,nn.detached,()=>$n()),$n=_t.run(()=>Em(()=>B.state.value[d],ni=>{(nn.flush==="sync"?oe:re)&&qi({storeId:d,type:C2.direct,events:fr},ni)},i1({},jt,nn)));return Bi},$dispose:Dt},Wn=Cy(Qn);B._s.set(d,Wn);const Ri=(B._a&&B._a.runWithContext||aX)(()=>B._e.run(()=>(_t=jz()).run(()=>s({action:on}))));for(const qi in Ri){const nn=Ri[qi];if(jd(nn)&&!lX(nn)||v1(nn))dt||(Mr&&sX(nn)&&(jd(nn)?nn.value=Mr[qi]:_A(nn,Mr[qi])),B.state.value[d][qi]=nn);else if(typeof nn=="function"){const Bi=on(nn,qi);Ri[qi]=Bi,zt.actions[qi]=nn}}return i1(Wn,Ri),i1(Cu(Wn),Ri),Object.defineProperty(Wn,"$state",{get:()=>B.state.value[d],set:qi=>{Dr(nn=>{i1(nn,qi)})}}),B._p.forEach(qi=>{i1(Wn,_t.run(()=>qi({store:Wn,app:B._a,pinia:B,options:zt})))}),Mr&&dt&&C.hydrate&&C.hydrate(Wn.$state,Mr),re=!0,oe=!0,Wn}/*! #__NO_SIDE_EFFECTS__ */function lM(d,s,C){let B;const K=typeof s=="function";B=K?C:s;function dt(_t,zt){const jt=VY();return _t=_t||(jt?cm(nO,null):null),_t&&W4(_t),_t=rO,_t._s.has(d)||(K?aO(d,s,B,_t):uX(d,B,_t)),_t._s.get(d)}return dt.$id=d,dt}const cX="/assets/meshcore-DQNtEl5I.svg";/*!
|
||||
* vue-router v4.6.3
|
||||
* (c) 2025 Eduardo San Martin Morote
|
||||
* @license MIT
|
||||
*/const s_=typeof document<"u";function oO(d){return typeof d=="object"||"displayName"in d||"props"in d||"__vccOpts"in d}function hX(d){return d.__esModule||d[Symbol.toStringTag]==="Module"||d.default&&oO(d.default)}const Rh=Object.assign;function P8(d,s){const E={};for(const B in s){const K=s[B];E[B]=zm(K)?K.map(d):d(K)}return E}const C2=()=>{},zm=Array.isArray;function kL(d,s){const E={};for(const B in d)E[B]=B in s?s[B]:d[B];return E}const sO=/#/g,fX=/&/g,dX=/\//g,pX=/=/g,mX=/\?/g,lO=/\+/g,gX=/%5B/g,vX=/%5D/g,uO=/%5E/g,yX=/%60/g,cO=/%7B/g,xX=/%7C/g,hO=/%7D/g,_X=/%20/g;function uM(d){return d==null?"":encodeURI(""+d).replace(xX,"|").replace(gX,"[").replace(vX,"]")}function bX(d){return uM(d).replace(cO,"{").replace(hO,"}").replace(uO,"^")}function _A(d){return uM(d).replace(lO,"%2B").replace(_X,"+").replace(sO,"%23").replace(fX,"%26").replace(yX,"`").replace(cO,"{").replace(hO,"}").replace(uO,"^")}function wX(d){return _A(d).replace(pX,"%3D")}function kX(d){return uM(d).replace(sO,"%23").replace(mX,"%3F")}function TX(d){return kX(d).replace(dX,"%2F")}function W2(d){if(d==null)return null;try{return decodeURIComponent(""+d)}catch{}return""+d}const AX=/\/$/,MX=d=>d.replace(AX,"");function I8(d,s,E="/"){let B,K={},dt="",_t="";const It=s.indexOf("#");let jt=s.indexOf("?");return jt=It>=0&&jt>It?-1:jt,jt>=0&&(B=s.slice(0,jt),dt=s.slice(jt,It>0?It:s.length),K=d(dt.slice(1))),It>=0&&(B=B||s.slice(0,It),_t=s.slice(It,s.length)),B=LX(B??s,E),{fullPath:B+dt+_t,path:B,query:K,hash:W2(_t)}}function SX(d,s){const E=s.query?d(s.query):"";return s.path+(E&&"?")+E+(s.hash||"")}function TL(d,s){return!s||!d.toLowerCase().startsWith(s.toLowerCase())?d:d.slice(s.length)||"/"}function EX(d,s,E){const B=s.matched.length-1,K=E.matched.length-1;return B>-1&&B===K&&v_(s.matched[B],E.matched[K])&&fO(s.params,E.params)&&d(s.query)===d(E.query)&&s.hash===E.hash}function v_(d,s){return(d.aliasOf||d)===(s.aliasOf||s)}function fO(d,s){if(Object.keys(d).length!==Object.keys(s).length)return!1;for(const E in d)if(!CX(d[E],s[E]))return!1;return!0}function CX(d,s){return zm(d)?AL(d,s):zm(s)?AL(s,d):d===s}function AL(d,s){return zm(s)?d.length===s.length&&d.every((E,B)=>E===s[B]):d.length===1&&d[0]===s}function LX(d,s){if(d.startsWith("/"))return d;if(!d)return s;const E=s.split("/"),B=d.split("/"),K=B[B.length-1];(K===".."||K===".")&&B.push("");let dt=E.length-1,_t,It;for(_t=0;_t<B.length;_t++)if(It=B[_t],It!==".")if(It==="..")dt>1&&dt--;else break;return E.slice(0,dt).join("/")+"/"+B.slice(_t).join("/")}const e1={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let bA=function(d){return d.pop="pop",d.push="push",d}({}),z8=function(d){return d.back="back",d.forward="forward",d.unknown="",d}({});function PX(d){if(!d)if(s_){const s=document.querySelector("base");d=s&&s.getAttribute("href")||"/",d=d.replace(/^\w+:\/\/[^\/]+/,"")}else d="/";return d[0]!=="/"&&d[0]!=="#"&&(d="/"+d),MX(d)}const IX=/^[^#]+#/;function zX(d,s){return d.replace(IX,"#")+s}function OX(d,s){const E=document.documentElement.getBoundingClientRect(),B=d.getBoundingClientRect();return{behavior:s.behavior,left:B.left-E.left-(s.left||0),top:B.top-E.top-(s.top||0)}}const H4=()=>({left:window.scrollX,top:window.scrollY});function DX(d){let s;if("el"in d){const E=d.el,B=typeof E=="string"&&E.startsWith("#"),K=typeof E=="string"?B?document.getElementById(E.slice(1)):document.querySelector(E):E;if(!K)return;s=OX(K,d)}else s=d;"scrollBehavior"in document.documentElement.style?window.scrollTo(s):window.scrollTo(s.left!=null?s.left:window.scrollX,s.top!=null?s.top:window.scrollY)}function ML(d,s){return(history.state?history.state.position-s:-1)+d}const wA=new Map;function FX(d,s){wA.set(d,s)}function RX(d){const s=wA.get(d);return wA.delete(d),s}function BX(d){return typeof d=="string"||d&&typeof d=="object"}function dO(d){return typeof d=="string"||typeof d=="symbol"}let xd=function(d){return d[d.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",d[d.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",d[d.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",d[d.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",d[d.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",d}({});const pO=Symbol("");xd.MATCHER_NOT_FOUND+"",xd.NAVIGATION_GUARD_REDIRECT+"",xd.NAVIGATION_ABORTED+"",xd.NAVIGATION_CANCELLED+"",xd.NAVIGATION_DUPLICATED+"";function y_(d,s){return Rh(new Error,{type:d,[pO]:!0},s)}function Yg(d,s){return d instanceof Error&&pO in d&&(s==null||!!(d.type&s))}const NX=["params","query","hash"];function jX(d){if(typeof d=="string")return d;if(d.path!=null)return d.path;const s={};for(const E of NX)E in d&&(s[E]=d[E]);return JSON.stringify(s,null,2)}function UX(d){const s={};if(d===""||d==="?")return s;const E=(d[0]==="?"?d.slice(1):d).split("&");for(let B=0;B<E.length;++B){const K=E[B].replace(lO," "),dt=K.indexOf("="),_t=W2(dt<0?K:K.slice(0,dt)),It=dt<0?null:W2(K.slice(dt+1));if(_t in s){let jt=s[_t];zm(jt)||(jt=s[_t]=[jt]),jt.push(It)}else s[_t]=Line truncated
|
||||
*/const l_=typeof document<"u";function oO(d){return typeof d=="object"||"displayName"in d||"props"in d||"__vccOpts"in d}function hX(d){return d.__esModule||d[Symbol.toStringTag]==="Module"||d.default&&oO(d.default)}const Rh=Object.assign;function I8(d,s){const C={};for(const B in s){const K=s[B];C[B]=Im(K)?K.map(d):d(K)}return C}const E2=()=>{},Im=Array.isArray;function kL(d,s){const C={};for(const B in d)C[B]=B in s?s[B]:d[B];return C}const sO=/#/g,fX=/&/g,dX=/\//g,pX=/=/g,mX=/\?/g,lO=/\+/g,gX=/%5B/g,vX=/%5D/g,uO=/%5E/g,yX=/%60/g,cO=/%7B/g,xX=/%7C/g,hO=/%7D/g,_X=/%20/g;function uM(d){return d==null?"":encodeURI(""+d).replace(xX,"|").replace(gX,"[").replace(vX,"]")}function bX(d){return uM(d).replace(cO,"{").replace(hO,"}").replace(uO,"^")}function bA(d){return uM(d).replace(lO,"%2B").replace(_X,"+").replace(sO,"%23").replace(fX,"%26").replace(yX,"`").replace(cO,"{").replace(hO,"}").replace(uO,"^")}function wX(d){return bA(d).replace(pX,"%3D")}function kX(d){return uM(d).replace(sO,"%23").replace(mX,"%3F")}function TX(d){return kX(d).replace(dX,"%2F")}function q2(d){if(d==null)return null;try{return decodeURIComponent(""+d)}catch{}return""+d}const AX=/\/$/,MX=d=>d.replace(AX,"");function O8(d,s,C="/"){let B,K={},dt="",_t="";const zt=s.indexOf("#");let jt=s.indexOf("?");return jt=zt>=0&&jt>zt?-1:jt,jt>=0&&(B=s.slice(0,jt),dt=s.slice(jt,zt>0?zt:s.length),K=d(dt.slice(1))),zt>=0&&(B=B||s.slice(0,zt),_t=s.slice(zt,s.length)),B=LX(B??s,C),{fullPath:B+dt+_t,path:B,query:K,hash:q2(_t)}}function SX(d,s){const C=s.query?d(s.query):"";return s.path+(C&&"?")+C+(s.hash||"")}function TL(d,s){return!s||!d.toLowerCase().startsWith(s.toLowerCase())?d:d.slice(s.length)||"/"}function CX(d,s,C){const B=s.matched.length-1,K=C.matched.length-1;return B>-1&&B===K&&y_(s.matched[B],C.matched[K])&&fO(s.params,C.params)&&d(s.query)===d(C.query)&&s.hash===C.hash}function y_(d,s){return(d.aliasOf||d)===(s.aliasOf||s)}function fO(d,s){if(Object.keys(d).length!==Object.keys(s).length)return!1;for(const C in d)if(!EX(d[C],s[C]))return!1;return!0}function EX(d,s){return Im(d)?AL(d,s):Im(s)?AL(s,d):d===s}function AL(d,s){return Im(s)?d.length===s.length&&d.every((C,B)=>C===s[B]):d.length===1&&d[0]===s}function LX(d,s){if(d.startsWith("/"))return d;if(!d)return s;const C=s.split("/"),B=d.split("/"),K=B[B.length-1];(K===".."||K===".")&&B.push("");let dt=C.length-1,_t,zt;for(_t=0;_t<B.length;_t++)if(zt=B[_t],zt!==".")if(zt==="..")dt>1&&dt--;else break;return C.slice(0,dt).join("/")+"/"+B.slice(_t).join("/")}const e1={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let wA=function(d){return d.pop="pop",d.push="push",d}({}),D8=function(d){return d.back="back",d.forward="forward",d.unknown="",d}({});function PX(d){if(!d)if(l_){const s=document.querySelector("base");d=s&&s.getAttribute("href")||"/",d=d.replace(/^\w+:\/\/[^\/]+/,"")}else d="/";return d[0]!=="/"&&d[0]!=="#"&&(d="/"+d),MX(d)}const zX=/^[^#]+#/;function IX(d,s){return d.replace(zX,"#")+s}function OX(d,s){const C=document.documentElement.getBoundingClientRect(),B=d.getBoundingClientRect();return{behavior:s.behavior,left:B.left-C.left-(s.left||0),top:B.top-C.top-(s.top||0)}}const q4=()=>({left:window.scrollX,top:window.scrollY});function DX(d){let s;if("el"in d){const C=d.el,B=typeof C=="string"&&C.startsWith("#"),K=typeof C=="string"?B?document.getElementById(C.slice(1)):document.querySelector(C):C;if(!K)return;s=OX(K,d)}else s=d;"scrollBehavior"in document.documentElement.style?window.scrollTo(s):window.scrollTo(s.left!=null?s.left:window.scrollX,s.top!=null?s.top:window.scrollY)}function ML(d,s){return(history.state?history.state.position-s:-1)+d}const kA=new Map;function FX(d,s){kA.set(d,s)}function RX(d){const s=kA.get(d);return kA.delete(d),s}function BX(d){return typeof d=="string"||d&&typeof d=="object"}function dO(d){return typeof d=="string"||typeof d=="symbol"}let xd=function(d){return d[d.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",d[d.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",d[d.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",d[d.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",d[d.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",d}({});const pO=Symbol("");xd.MATCHER_NOT_FOUND+"",xd.NAVIGATION_GUARD_REDIRECT+"",xd.NAVIGATION_ABORTED+"",xd.NAVIGATION_CANCELLED+"",xd.NAVIGATION_DUPLICATED+"";function x_(d,s){return Rh(new Error,{type:d,[pO]:!0},s)}function Yg(d,s){return d instanceof Error&&pO in d&&(s==null||!!(d.type&s))}const NX=["params","query","hash"];function jX(d){if(typeof d=="string")return d;if(d.path!=null)return d.path;const s={};for(const C of NX)C in d&&(s[C]=d[C]);return JSON.stringify(s,null,2)}function UX(d){const s={};if(d===""||d==="?")return s;const C=(d[0]==="?"?d.slice(1):d).split("&");for(let B=0;B<C.length;++B){const K=C[B].replace(lO," "),dt=K.indexOf("="),_t=q2(dt<0?K:K.slice(0,dt)),zt=dt<0?null:q2(K.slice(dt+1));if(_t in s){let jt=s[_t];Im(jt)||(jt=s[_t]=[jt]),jt.push(zt)}else s[_t]=Line truncated
|
||||
* vue-router v4.6.3
|
||||
* (c) 2025 Eduardo San Martin Morote
|
||||
* @license MIT
|
||||
*/let qX=()=>location.protocol+"//"+location.host;function mO(d,s){const{pathname:E,search:B,hash:K}=s,dt=d.indexOf("#");if(dt>-1){let _t=K.includes(d.slice(dt))?d.slice(dt).length:1,It=K.slice(_t);return It[0]!=="/"&&(It="/"+It),TL(It,"")}return TL(E,d)+B+K}function $X(d,s,E,B){let K=[],dt=[],_t=null;const It=({state:tr})=>{const fr=mO(d,location),Mr=E.value,xr=s.value;let Dr=0;if(tr){if(E.value=fr,s.value=tr,_t&&_t===Mr){_t=null;return}Dr=xr?tr.position-xr.position:0}else B(fr);K.forEach(hn=>{hn(E.value,Mr,{delta:Dr,type:bA.pop,direction:Dr?Dr>0?z8.forward:z8.back:z8.unknown})})};function jt(){_t=E.value}function re(tr){K.push(tr);const fr=()=>{const Mr=K.indexOf(tr);Mr>-1&&K.splice(Mr,1)};return dt.push(fr),fr}function se(){if(document.visibilityState==="hidden"){const{history:tr}=window;if(!tr.state)return;tr.replaceState(Rh({},tr.state,{scroll:H4()}),"")}}function we(){for(const tr of dt)tr();dt=[],window.removeEventListener("popstate",It),window.removeEventListener("pagehide",se),document.removeEventListener("visibilitychange",se)}return window.addEventListener("popstate",It),window.addEventListener("pagehide",se),document.addEventListener("visibilitychange",se),{pauseListeners:jt,listen:re,destroy:we}}function CL(d,s,E,B=!1,K=!1){return{back:d,current:s,forward:E,replaced:B,position:window.history.length,scroll:K?H4():null}}function ZX(d){const{history:s,location:E}=window,B={value:mO(d,E)},K={value:s.state};K.value||dt(B.value,{back:null,current:B.value,forward:null,position:s.length-1,replaced:!0,scroll:null},!0);function dt(jt,re,se){const we=d.indexOf("#"),tr=we>-1?(E.host&&document.querySelector("base")?d:d.slice(we))+jt:qX()+d+jt;try{s[se?"replaceState":"pushState"](re,"",tr),K.value=re}catch(fr){console.error(fr),E[se?"replace":"assign"](tr)}}function _t(jt,re){dt(jt,Rh({},s.state,CL(K.value.back,jt,K.value.forward,!0),re,{position:K.value.position}),!0),B.value=jt}function It(jt,re){const se=Rh({},K.value,s.state,{forward:jt,scroll:H4()});dt(se.current,se,!0),dt(jt,Rh({},CL(B.value,jt,null),{position:se.position+1},re),!1),B.value=jt}return{location:B,state:K,push:It,replace:_t}}function GX(d){d=PX(d);const s=ZX(d),E=$X(d,s.state,s.location,s.replace);function B(dt,_t=!0){_t||E.pauseListeners(),history.go(dt)}const K=Rh({location:"",base:d,go:B,createHref:zX.bind(null,d)},s,E);return Object.defineProperty(K,"location",{enumerable:!0,get:()=>s.location.value}),Object.defineProperty(K,"state",{enumerable:!0,get:()=>s.state.value}),K}let by=function(d){return d[d.Static=0]="Static",d[d.Param=1]="Param",d[d.Group=2]="Group",d}({});var np=function(d){return d[d.Static=0]="Static",d[d.Param=1]="Param",d[d.ParamRegExp=2]="ParamRegExp",d[d.ParamRegExpEnd=3]="ParamRegExpEnd",d[d.EscapeNext=4]="EscapeNext",d}(np||{});const YX={type:by.Static,value:""},KX=/[a-zA-Z0-9_]/;function XX(d){if(!d)return[[]];if(d==="/")return[[YX]];if(!d.startsWith("/"))throw new Error(`Invalid path "${d}"`);function s(fr){throw new Error(`ERR (${E})/"${re}": ${fr}`)}let E=np.Static,B=E;const K=[];let dt;function _t(){dt&&K.push(dt),dt=[]}let It=0,jt,re="",se="";function we(){re&&(E===np.Static?dt.push({type:by.Static,value:re}):E===np.Param||E===np.ParamRegExp||E===np.ParamRegExpEnd?(dt.length>1&&(jt==="*"||jt==="+")&&s(`A repeatable param (${re}) must be alone in its segment. eg: '/:ids+.`),dt.push({type:by.Param,value:re,regexp:se,repeatable:jt==="*"||jt==="+",optional:jt==="*"||jt==="?"})):s("Invalid state to consume buffer"),re="")}function tr(){re+=jt}for(;It<d.length;){if(jt=d[It++],jt==="\\"&&E!==np.ParamRegExp){B=E,E=np.EscapeNext;continue}switch(E){case np.Static:jt==="/"?(re&&we(),_t()):jt===":"?(we(),E=np.Param):tr();break;case np.EscapeNext:tr(),E=B;break;case np.Param:jt==="("?E=np.ParamRegExp:KX.test(jt)?tr():(we(),E=np.Static,jt!=="*"&&jt!=="?"&&jt!=="+"&&It--);break;case np.ParamRegExp:jt===")"?se[se.length-1]=="\\"?se=se.slice(0,-1)+jt:E=np.ParamRegExpEnd:se+=jt;break;case np.ParamRegExpEnd:we(),E=np.Static,jt!=="*"&&jt!=="?"&&jt!=="+"&&It--,se="";break;default:s("Unknown state");break}}return E===np.ParamRegExp&&s(`Unfinished custom RegExp for param "${re}"`),we(),_t(),K}const LL="[^/]+?",JX={sensitive:!1,strict:!1,start:!0,end:!0};var h0=function(d){return d[d._multiplier=10]="_multiplier",d[d.Root=90]="Root",d[d.Segment=40]="Segment",d[d.SubSegment=30]="SubSegment",d[d.Static=40]="Static",d[d.Dynamic=20]="Dynamic",d[d.BonusCustomRegExp=10]="BonusCustomRegExp",d[d.BonusWildcard=-50]="BonusWildcard",d[d.BonusRepeatable=-20]="BonusRepeatable",d[d.BonusOptional=-8]="BonusOptional",d[d.BonusStrict=.7000000000000001]="BonusStrict",d[d.BonusCaseSensitive=.25]="BonusCaseSensitive",d}(h0||{});const QX=/[.+*?^${}()[\]/\\]/g;function tJ(d,s){const E=Rh({},JX,s),B=[];let K=E.start?"^":"";const dt=[];for(const re of d){const se=re.length?[]:[h0.Root];E.strict&&!re.length&&(K+="/");for(let we=0;we<re.length;we++){const tr=re[we];let fr=h0.Segment+(E.sensitive?h0.BonusCaseSensitive:0);if(tr.type===by.Static)we||(K+="/"Line truncated
|
||||
`).forEach(function(_t){K=_t.indexOf(":"),E=_t.substring(0,K).trim().toLowerCase(),B=_t.substring(K+1).trim(),!(!E||s[E]&&yQ[E])&&(E==="set-cookie"?s[E]?s[E].push(B):s[E]=[B]:s[E]=s[E]?s[E]+", "+B:B)}),s},HL=Symbol("internals");function i2(d){return d&&String(d).trim().toLowerCase()}function r4(d){return d===!1||d==null?d:io.isArray(d)?d.map(r4):String(d)}function _Q(d){const s=Object.create(null),E=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let B;for(;B=E.exec(d);)s[B[1]]=B[2];return s}const bQ=d=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(d.trim());function D8(d,s,E,B,K){if(io.isFunction(B))return B.call(this,s,E);if(K&&(s=E),!!io.isString(s)){if(io.isString(B))return s.indexOf(B)!==-1;if(io.isRegExp(B))return B.test(s)}}function wQ(d){return d.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(s,E,B)=>E.toUpperCase()+B)}function kQ(d,s){const E=io.toCamelCase(" "+s);["get","set","has"].forEach(B=>{Object.defineProperty(d,B+E,{value:function(K,dt,_t){return this[B].call(this,s,K,dt,_t)},configurable:!0})})}let C0=class{constructor(s){s&&this.set(s)}set(s,E,B){const K=this;function dt(It,jt,re){const se=i2(jt);if(!se)throw new Error("header name must be a non-empty string");const we=io.findKey(K,se);(!we||K[we]===void 0||re===!0||re===void 0&&K[we]!==!1)&&(K[we||jt]=r4(It))}const _t=(It,jt)=>io.forEach(It,(re,se)=>dt(re,se,jt));if(io.isPlainObject(s)||s instanceof this.constructor)_t(s,E);else if(io.isString(s)&&(s=s.trim())&&!bQ(s))_t(xQ(s),E);else if(io.isObject(s)&&io.isIterable(s)){let It={},jt,re;for(const se of s){if(!io.isArray(se))throw TypeError("Object iterator must return a key-value pair");It[re=se[0]]=(jt=It[re])?io.isArray(jt)?[...jt,se[1]]:[jt,se[1]]:se[1]}_t(It,E)}else s!=null&&dt(E,s,B);return this}get(s,E){if(s=i2(s),s){const B=io.findKey(this,s);if(B){const K=this[B];if(!E)return K;if(E===!0)return _Q(K);if(io.isFunction(E))return E.call(this,K,B);if(io.isRegExp(E))return E.exec(K);throw new TypeError("parser must be boolean|regexp|function")}}}has(s,E){if(s=i2(s),s){const B=io.findKey(this,s);return!!(B&&this[B]!==void 0&&(!E||D8(this,this[B],B,E)))}return!1}delete(s,E){const B=this;let K=!1;function dt(_t){if(_t=i2(_t),_t){const It=io.findKey(B,_t);It&&(!E||D8(B,B[It],It,E))&&(delete B[It],K=!0)}}return io.isArray(s)?s.forEach(dt):dt(s),K}clear(s){const E=Object.keys(this);let B=E.length,K=!1;for(;B--;){const dt=E[B];(!s||D8(this,this[dt],dt,s,!0))&&(delete this[dt],K=!0)}return K}normalize(s){const E=this,B={};return io.forEach(this,(K,dt)=>{const _t=io.findKey(B,dt);if(_t){E[_t]=r4(K),delete E[dt];return}const It=s?wQ(dt):String(dt).trim();It!==dt&&delete E[dt],E[It]=r4(K),B[It]=!0}),this}concat(...s){return this.constructor.concat(this,...s)}toJSON(s){const E=Object.create(null);return io.forEach(this,(B,K)=>{B!=null&&B!==!1&&(E[K]=s&&io.isArray(B)?B.join(", "):B)}),E}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([s,E])=>s+": "+E).join(`
|
||||
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(s){return s instanceof this?s:new this(s)}static concat(s,...E){const B=new this(s);return E.forEach(K=>B.set(K)),B}static accessor(s){const B=(this[HL]=this[HL]={accessors:{}}).accessors,K=this.prototype;function dt(_t){const It=i2(_t);B[It]||(kQ(K,_t),B[It]=!0)}return io.isArray(s)?s.forEach(dt):dt(s),this}};C0.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);io.reduceDescriptors(C0.prototype,({value:d},s)=>{let E=s[0].toUpperCase()+s.slice(1);return{get:()=>d,set(B){this[E]=B}}});io.freezeMethods(C0);function F8(d,s){const E=this||ow,B=s||E,K=C0.from(B.headers);let dt=B.data;return io.forEach(d,function(It){dt=It.call(E,dt,K.normalize(),s?s.status:void 0)}),K.normalize(),dt}function DO(d){return!!(d&&d.__CANCEL__)}function T_(d,s,E){Qu.call(this,d??"canceled",Qu.ERR_CANCELED,s,E),this.name="CanceledError"}io.inherits(T_,Qu,{__CANCEL__:!0});function FO(d,s,E){const B=E.config.validateStatus;!E.status||!B||B(E.status)?d(E):s(new Qu("Request failed with status code "+E.status,[Qu.ERR_BAD_REQUEST,Qu.ERR_BAD_RESPONSE][Math.floor(E.status/100)-4],E.config,E.request,E))}function TQ(d){const s=/^([-+\w]{1,25})(:?\/\/|:)/.exec(d);return s&&s[1]||""}function AQ(d,s){d=d||10;const E=new Array(d),B=new Array(d);let K=0,dt=0,_t;return s=s!==void 0?s:1e3,function(jt){const re=Date.now(),se=B[dt];_t||(_t=re),E[K]=jt,B[K]=re;let we=dt,tr=0;for(;we!==K;)tr+=E[we++],we=we%d;if(K=(K+1)%d,K===dt&&(dt=(dt+1)%d),re-_t<s)return;const fr=se&&re-se;return fr?Math.round(tr*1e3/fr):void 0}}function MQ(d,s){let E=0,B=1e3/s,K,dt;const _t=(re,se=Date.now())=>{E=se,K=null,dt&&(clearTimeout(dt),dt=null),d(...re)};return[(...re)=>{const se=Date.now(),we=se-E;we>=B?_t(re,se):(K=re,dt||(dt=setTimeout(()=>{dt=null,_t(K)},B-we)))},()=>K&&_t(K)]}const y4=(d,s,E=3)=>{let B=0;const K=AQ(50,250);return MQ(dt=>{const _t=dt.loaded,It=dt.lengthComputable?dt.total:void 0,jt=_t-B,re=K(jt),se=_t<=It;B=_t;const we={loaded:_t,total:It,progress:It?_t/It:void 0,bytes:jt,rate:re||void 0,estimated:re&&It&&se?(It-_t)/re:void 0,event:dt,lengthComputable:It!=null,[s?"download":"upload"]:!0};d(we)},E)},WL=(d,s)=>{const E=d!=null;return[B=>s[0]({lengthComputable:E,total:d,loaded:B}),s[1]]},qL=d=>(...s)=>io.asap(()=>d(...s)),SQ=Xp.hasStandardBrowserEnv?((d,s)=>E=>(E=new URL(E,Xp.origin),d.protocol===E.protocol&&d.host===E.host&&(s||d.port===E.port)))(new URL(Xp.origin),Xp.navigator&&/(msie|trident)/i.test(Xp.navigator.userAgent)):()=>!0,EQ=Xp.hasStandardBrowserEnv?{write(d,s,E,B,K,dt,_t){if(typeof document>"u")return;const It=[`${d}=${encodeURIComponent(s)}`];io.isNumber(E)&&It.push(`expires=${new Date(E).toUTCString()}`),io.isString(B)&&It.push(`path=${B}`),io.isString(K)&&It.push(`domain=${K}`),dt===!0&&It.push("secure"),io.isString(_t)&&It.push(`SameSite=${_t}`),document.cookie=It.join("; ")},read(d){if(typeof document>"u")return null;const s=document.cookie.match(new RegExp("(?:^|; )"+d+"=([^;]*)"));return s?decodeURIComponent(s[1]):null},remove(d){this.write(d,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function CQ(d){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(d)}function LQ(d,s){return s?d.replace(/\/?\/$/,"")+"/"+s.replace(/^\/+/,""):d}function RO(d,s,E){let B=!CQ(s);return d&&(B||E==!1)?LQ(d,s):s}const $L=d=>d instanceof C0?{...d}:d;function Ly(d,s){s=s||{};const E={};function B(re,se,we,tr){return io.isPlainObject(re)&&io.isPlainObject(se)?io.merge.call({caseless:tr},re,se):io.isPlainObject(se)?io.merge({},se):io.isArray(se)?se.slice():se}function K(re,se,we,tr){if(io.isUndefined(se)){if(!io.isUndefined(re))return B(void 0,re,we,tr)}else return B(re,se,we,tr)}function dt(re,se){if(!io.isUndefined(se))return B(void 0,se)}function _t(re,se){if(io.isUndefined(se)){if(!io.isUndefined(re))return B(void 0,re)}else return B(void 0,se)}function It(re,se,we){if(we in s)return B(re,se);if(we in d)return B(void 0,re)}const jt={url:dt,method:dt,data:dt,baseURL:_t,transformRequest:_t,transformResponse:_t,paramsSerializer:_t,timeout:_t,timeoutMessage:_t,withCredentials:_t,withXSRFToken:_t,adapter:_t,responseType:_t,xsrfCookieName:_t,xsrfHeaderName:_t,onUploadProgress:_t,onDownloadProgress:_t,decompress:_t,maxContentLength:_t,maxBodyLength:_t,beforeRedirect:_t,transport:_t,httpAgent:_t,httpsAgent:_t,cancelToken:_t,socketPath:_t,responseEncoding:_t,validateStatus:It,headers:(re,se,we)=>K($L(re),$L(se),we,!0)};return io.forEach(Object.keys({...d,...s}),function(se){const we=jt[se]||K,tr=we(d[se],s[se],se);io.isUndefined(tr)&&we!==It||(E[se]=tr)}),E}const BO=d=>{const s=Ly({},d);let{data:E,withXSRFToken:B,xsrfHeaderName:K,xsrfCookieName:dt,headers:_t,auth:It}=s;if(s.headers=_t=C0.from(_t),s.url=IO(RO(s.baseURL,s.url,s.allowAbsoluteUrls),d.params,d.paramsSerializer),It&&_t.set("Authorization","Basic "+btoa((It.username||"")+":"+(It.password?unescape(encodeURIComponent(It.password)):""))),
Line truncated
|
||||
*/let qX=()=>location.protocol+"//"+location.host;function mO(d,s){const{pathname:C,search:B,hash:K}=s,dt=d.indexOf("#");if(dt>-1){let _t=K.includes(d.slice(dt))?d.slice(dt).length:1,zt=K.slice(_t);return zt[0]!=="/"&&(zt="/"+zt),TL(zt,"")}return TL(C,d)+B+K}function $X(d,s,C,B){let K=[],dt=[],_t=null;const zt=({state:tr})=>{const fr=mO(d,location),Mr=C.value,xr=s.value;let Dr=0;if(tr){if(C.value=fr,s.value=tr,_t&&_t===Mr){_t=null;return}Dr=xr?tr.position-xr.position:0}else B(fr);K.forEach(hn=>{hn(C.value,Mr,{delta:Dr,type:wA.pop,direction:Dr?Dr>0?D8.forward:D8.back:D8.unknown})})};function jt(){_t=C.value}function re(tr){K.push(tr);const fr=()=>{const Mr=K.indexOf(tr);Mr>-1&&K.splice(Mr,1)};return dt.push(fr),fr}function oe(){if(document.visibilityState==="hidden"){const{history:tr}=window;if(!tr.state)return;tr.replaceState(Rh({},tr.state,{scroll:q4()}),"")}}function we(){for(const tr of dt)tr();dt=[],window.removeEventListener("popstate",zt),window.removeEventListener("pagehide",oe),document.removeEventListener("visibilitychange",oe)}return window.addEventListener("popstate",zt),window.addEventListener("pagehide",oe),document.addEventListener("visibilitychange",oe),{pauseListeners:jt,listen:re,destroy:we}}function EL(d,s,C,B=!1,K=!1){return{back:d,current:s,forward:C,replaced:B,position:window.history.length,scroll:K?q4():null}}function ZX(d){const{history:s,location:C}=window,B={value:mO(d,C)},K={value:s.state};K.value||dt(B.value,{back:null,current:B.value,forward:null,position:s.length-1,replaced:!0,scroll:null},!0);function dt(jt,re,oe){const we=d.indexOf("#"),tr=we>-1?(C.host&&document.querySelector("base")?d:d.slice(we))+jt:qX()+d+jt;try{s[oe?"replaceState":"pushState"](re,"",tr),K.value=re}catch(fr){console.error(fr),C[oe?"replace":"assign"](tr)}}function _t(jt,re){dt(jt,Rh({},s.state,EL(K.value.back,jt,K.value.forward,!0),re,{position:K.value.position}),!0),B.value=jt}function zt(jt,re){const oe=Rh({},K.value,s.state,{forward:jt,scroll:q4()});dt(oe.current,oe,!0),dt(jt,Rh({},EL(B.value,jt,null),{position:oe.position+1},re),!1),B.value=jt}return{location:B,state:K,push:zt,replace:_t}}function GX(d){d=PX(d);const s=ZX(d),C=$X(d,s.state,s.location,s.replace);function B(dt,_t=!0){_t||C.pauseListeners(),history.go(dt)}const K=Rh({location:"",base:d,go:B,createHref:IX.bind(null,d)},s,C);return Object.defineProperty(K,"location",{enumerable:!0,get:()=>s.location.value}),Object.defineProperty(K,"state",{enumerable:!0,get:()=>s.state.value}),K}let by=function(d){return d[d.Static=0]="Static",d[d.Param=1]="Param",d[d.Group=2]="Group",d}({});var ip=function(d){return d[d.Static=0]="Static",d[d.Param=1]="Param",d[d.ParamRegExp=2]="ParamRegExp",d[d.ParamRegExpEnd=3]="ParamRegExpEnd",d[d.EscapeNext=4]="EscapeNext",d}(ip||{});const YX={type:by.Static,value:""},KX=/[a-zA-Z0-9_]/;function XX(d){if(!d)return[[]];if(d==="/")return[[YX]];if(!d.startsWith("/"))throw new Error(`Invalid path "${d}"`);function s(fr){throw new Error(`ERR (${C})/"${re}": ${fr}`)}let C=ip.Static,B=C;const K=[];let dt;function _t(){dt&&K.push(dt),dt=[]}let zt=0,jt,re="",oe="";function we(){re&&(C===ip.Static?dt.push({type:by.Static,value:re}):C===ip.Param||C===ip.ParamRegExp||C===ip.ParamRegExpEnd?(dt.length>1&&(jt==="*"||jt==="+")&&s(`A repeatable param (${re}) must be alone in its segment. eg: '/:ids+.`),dt.push({type:by.Param,value:re,regexp:oe,repeatable:jt==="*"||jt==="+",optional:jt==="*"||jt==="?"})):s("Invalid state to consume buffer"),re="")}function tr(){re+=jt}for(;zt<d.length;){if(jt=d[zt++],jt==="\\"&&C!==ip.ParamRegExp){B=C,C=ip.EscapeNext;continue}switch(C){case ip.Static:jt==="/"?(re&&we(),_t()):jt===":"?(we(),C=ip.Param):tr();break;case ip.EscapeNext:tr(),C=B;break;case ip.Param:jt==="("?C=ip.ParamRegExp:KX.test(jt)?tr():(we(),C=ip.Static,jt!=="*"&&jt!=="?"&&jt!=="+"&&zt--);break;case ip.ParamRegExp:jt===")"?oe[oe.length-1]=="\\"?oe=oe.slice(0,-1)+jt:C=ip.ParamRegExpEnd:oe+=jt;break;case ip.ParamRegExpEnd:we(),C=ip.Static,jt!=="*"&&jt!=="?"&&jt!=="+"&&zt--,oe="";break;default:s("Unknown state");break}}return C===ip.ParamRegExp&&s(`Unfinished custom RegExp for param "${re}"`),we(),_t(),K}const LL="[^/]+?",JX={sensitive:!1,strict:!1,start:!0,end:!0};var h0=function(d){return d[d._multiplier=10]="_multiplier",d[d.Root=90]="Root",d[d.Segment=40]="Segment",d[d.SubSegment=30]="SubSegment",d[d.Static=40]="Static",d[d.Dynamic=20]="Dynamic",d[d.BonusCustomRegExp=10]="BonusCustomRegExp",d[d.BonusWildcard=-50]="BonusWildcard",d[d.BonusRepeatable=-20]="BonusRepeatable",d[d.BonusOptional=-8]="BonusOptional",d[d.BonusStrict=.7000000000000001]="BonusStrict",d[d.BonusCaseSensitive=.25]="BonusCaseSensitive",d}(h0||{});const QX=/[.+*?^${}()[\]/\\]/g;function tJ(d,s){const C=Rh({},JX,s),B=[];let K=C.start?"^":"";const dt=[];for(const re of d){const oe=re.length?[]:[h0.Root];C.strict&&!re.length&&(K+="/");for(let we=0;we<re.length;we++){const tr=re[we];let fr=h0.Segment+(C.sensitive?h0.BonusCaseSensitive:0);if(tr.type===by.Static)we||(K+="/"Line truncated
|
||||
`).forEach(function(_t){K=_t.indexOf(":"),C=_t.substring(0,K).trim().toLowerCase(),B=_t.substring(K+1).trim(),!(!C||s[C]&&yQ[C])&&(C==="set-cookie"?s[C]?s[C].push(B):s[C]=[B]:s[C]=s[C]?s[C]+", "+B:B)}),s},HL=Symbol("internals");function i2(d){return d&&String(d).trim().toLowerCase()}function n4(d){return d===!1||d==null?d:io.isArray(d)?d.map(n4):String(d)}function _Q(d){const s=Object.create(null),C=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let B;for(;B=C.exec(d);)s[B[1]]=B[2];return s}const bQ=d=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(d.trim());function R8(d,s,C,B,K){if(io.isFunction(B))return B.call(this,s,C);if(K&&(s=C),!!io.isString(s)){if(io.isString(B))return s.indexOf(B)!==-1;if(io.isRegExp(B))return B.test(s)}}function wQ(d){return d.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(s,C,B)=>C.toUpperCase()+B)}function kQ(d,s){const C=io.toCamelCase(" "+s);["get","set","has"].forEach(B=>{Object.defineProperty(d,B+C,{value:function(K,dt,_t){return this[B].call(this,s,K,dt,_t)},configurable:!0})})}let E0=class{constructor(s){s&&this.set(s)}set(s,C,B){const K=this;function dt(zt,jt,re){const oe=i2(jt);if(!oe)throw new Error("header name must be a non-empty string");const we=io.findKey(K,oe);(!we||K[we]===void 0||re===!0||re===void 0&&K[we]!==!1)&&(K[we||jt]=n4(zt))}const _t=(zt,jt)=>io.forEach(zt,(re,oe)=>dt(re,oe,jt));if(io.isPlainObject(s)||s instanceof this.constructor)_t(s,C);else if(io.isString(s)&&(s=s.trim())&&!bQ(s))_t(xQ(s),C);else if(io.isObject(s)&&io.isIterable(s)){let zt={},jt,re;for(const oe of s){if(!io.isArray(oe))throw TypeError("Object iterator must return a key-value pair");zt[re=oe[0]]=(jt=zt[re])?io.isArray(jt)?[...jt,oe[1]]:[jt,oe[1]]:oe[1]}_t(zt,C)}else s!=null&&dt(C,s,B);return this}get(s,C){if(s=i2(s),s){const B=io.findKey(this,s);if(B){const K=this[B];if(!C)return K;if(C===!0)return _Q(K);if(io.isFunction(C))return C.call(this,K,B);if(io.isRegExp(C))return C.exec(K);throw new TypeError("parser must be boolean|regexp|function")}}}has(s,C){if(s=i2(s),s){const B=io.findKey(this,s);return!!(B&&this[B]!==void 0&&(!C||R8(this,this[B],B,C)))}return!1}delete(s,C){const B=this;let K=!1;function dt(_t){if(_t=i2(_t),_t){const zt=io.findKey(B,_t);zt&&(!C||R8(B,B[zt],zt,C))&&(delete B[zt],K=!0)}}return io.isArray(s)?s.forEach(dt):dt(s),K}clear(s){const C=Object.keys(this);let B=C.length,K=!1;for(;B--;){const dt=C[B];(!s||R8(this,this[dt],dt,s,!0))&&(delete this[dt],K=!0)}return K}normalize(s){const C=this,B={};return io.forEach(this,(K,dt)=>{const _t=io.findKey(B,dt);if(_t){C[_t]=n4(K),delete C[dt];return}const zt=s?wQ(dt):String(dt).trim();zt!==dt&&delete C[dt],C[zt]=n4(K),B[zt]=!0}),this}concat(...s){return this.constructor.concat(this,...s)}toJSON(s){const C=Object.create(null);return io.forEach(this,(B,K)=>{B!=null&&B!==!1&&(C[K]=s&&io.isArray(B)?B.join(", "):B)}),C}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([s,C])=>s+": "+C).join(`
|
||||
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(s){return s instanceof this?s:new this(s)}static concat(s,...C){const B=new this(s);return C.forEach(K=>B.set(K)),B}static accessor(s){const B=(this[HL]=this[HL]={accessors:{}}).accessors,K=this.prototype;function dt(_t){const zt=i2(_t);B[zt]||(kQ(K,_t),B[zt]=!0)}return io.isArray(s)?s.forEach(dt):dt(s),this}};E0.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);io.reduceDescriptors(E0.prototype,({value:d},s)=>{let C=s[0].toUpperCase()+s.slice(1);return{get:()=>d,set(B){this[C]=B}}});io.freezeMethods(E0);function B8(d,s){const C=this||sw,B=s||C,K=E0.from(B.headers);let dt=B.data;return io.forEach(d,function(zt){dt=zt.call(C,dt,K.normalize(),s?s.status:void 0)}),K.normalize(),dt}function DO(d){return!!(d&&d.__CANCEL__)}function A_(d,s,C){Qu.call(this,d??"canceled",Qu.ERR_CANCELED,s,C),this.name="CanceledError"}io.inherits(A_,Qu,{__CANCEL__:!0});function FO(d,s,C){const B=C.config.validateStatus;!C.status||!B||B(C.status)?d(C):s(new Qu("Request failed with status code "+C.status,[Qu.ERR_BAD_REQUEST,Qu.ERR_BAD_RESPONSE][Math.floor(C.status/100)-4],C.config,C.request,C))}function TQ(d){const s=/^([-+\w]{1,25})(:?\/\/|:)/.exec(d);return s&&s[1]||""}function AQ(d,s){d=d||10;const C=new Array(d),B=new Array(d);let K=0,dt=0,_t;return s=s!==void 0?s:1e3,function(jt){const re=Date.now(),oe=B[dt];_t||(_t=re),C[K]=jt,B[K]=re;let we=dt,tr=0;for(;we!==K;)tr+=C[we++],we=we%d;if(K=(K+1)%d,K===dt&&(dt=(dt+1)%d),re-_t<s)return;const fr=oe&&re-oe;return fr?Math.round(tr*1e3/fr):void 0}}function MQ(d,s){let C=0,B=1e3/s,K,dt;const _t=(re,oe=Date.now())=>{C=oe,K=null,dt&&(clearTimeout(dt),dt=null),d(...re)};return[(...re)=>{const oe=Date.now(),we=oe-C;we>=B?_t(re,oe):(K=re,dt||(dt=setTimeout(()=>{dt=null,_t(K)},B-we)))},()=>K&&_t(K)]}const x4=(d,s,C=3)=>{let B=0;const K=AQ(50,250);return MQ(dt=>{const _t=dt.loaded,zt=dt.lengthComputable?dt.total:void 0,jt=_t-B,re=K(jt),oe=_t<=zt;B=_t;const we={loaded:_t,total:zt,progress:zt?_t/zt:void 0,bytes:jt,rate:re||void 0,estimated:re&&zt&&oe?(zt-_t)/re:void 0,event:dt,lengthComputable:zt!=null,[s?"download":"upload"]:!0};d(we)},C)},WL=(d,s)=>{const C=d!=null;return[B=>s[0]({lengthComputable:C,total:d,loaded:B}),s[1]]},qL=d=>(...s)=>io.asap(()=>d(...s)),SQ=Xp.hasStandardBrowserEnv?((d,s)=>C=>(C=new URL(C,Xp.origin),d.protocol===C.protocol&&d.host===C.host&&(s||d.port===C.port)))(new URL(Xp.origin),Xp.navigator&&/(msie|trident)/i.test(Xp.navigator.userAgent)):()=>!0,CQ=Xp.hasStandardBrowserEnv?{write(d,s,C,B,K,dt,_t){if(typeof document>"u")return;const zt=[`${d}=${encodeURIComponent(s)}`];io.isNumber(C)&&zt.push(`expires=${new Date(C).toUTCString()}`),io.isString(B)&&zt.push(`path=${B}`),io.isString(K)&&zt.push(`domain=${K}`),dt===!0&&zt.push("secure"),io.isString(_t)&&zt.push(`SameSite=${_t}`),document.cookie=zt.join("; ")},read(d){if(typeof document>"u")return null;const s=document.cookie.match(new RegExp("(?:^|; )"+d+"=([^;]*)"));return s?decodeURIComponent(s[1]):null},remove(d){this.write(d,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function EQ(d){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(d)}function LQ(d,s){return s?d.replace(/\/?\/$/,"")+"/"+s.replace(/^\/+/,""):d}function RO(d,s,C){let B=!EQ(s);return d&&(B||C==!1)?LQ(d,s):s}const $L=d=>d instanceof E0?{...d}:d;function Ly(d,s){s=s||{};const C={};function B(re,oe,we,tr){return io.isPlainObject(re)&&io.isPlainObject(oe)?io.merge.call({caseless:tr},re,oe):io.isPlainObject(oe)?io.merge({},oe):io.isArray(oe)?oe.slice():oe}function K(re,oe,we,tr){if(io.isUndefined(oe)){if(!io.isUndefined(re))return B(void 0,re,we,tr)}else return B(re,oe,we,tr)}function dt(re,oe){if(!io.isUndefined(oe))return B(void 0,oe)}function _t(re,oe){if(io.isUndefined(oe)){if(!io.isUndefined(re))return B(void 0,re)}else return B(void 0,oe)}function zt(re,oe,we){if(we in s)return B(re,oe);if(we in d)return B(void 0,re)}const jt={url:dt,method:dt,data:dt,baseURL:_t,transformRequest:_t,transformResponse:_t,paramsSerializer:_t,timeout:_t,timeoutMessage:_t,withCredentials:_t,withXSRFToken:_t,adapter:_t,responseType:_t,xsrfCookieName:_t,xsrfHeaderName:_t,onUploadProgress:_t,onDownloadProgress:_t,decompress:_t,maxContentLength:_t,maxBodyLength:_t,beforeRedirect:_t,transport:_t,httpAgent:_t,httpsAgent:_t,cancelToken:_t,socketPath:_t,responseEncoding:_t,validateStatus:zt,headers:(re,oe,we)=>K($L(re),$L(oe),we,!0)};return io.forEach(Object.keys({...d,...s}),function(oe){const we=jt[oe]||K,tr=we(d[oe],s[oe],oe);io.isUndefined(tr)&&we!==zt||(C[oe]=tr)}),C}const BO=d=>{const s=Ly({},d);let{data:C,withXSRFToken:B,xsrfHeaderName:K,xsrfCookieName:dt,headers:_t,auth:zt}=s;if(s.headers=_t=E0.from(_t),s.url=zO(RO(s.baseURL,s.url,s.allowAbsoluteUrls),d.params,d.paramsSerializer),zt&&_t.set("Authorization","Basic "+btoa((zt.username||"")+":"+(zt.password?unescape(encodeURIComponent(zt.password)):""))),
Line truncated
|
||||
`+_t.map(JL).join(`
|
||||
`):" "+JL(_t[0]):"as no adapter specified";throw new Qu("There is no suitable adapter to dispatch the request "+It,"ERR_NOT_SUPPORT")}return K}const jO={getAdapter:UQ,adapters:pM};function R8(d){if(d.cancelToken&&d.cancelToken.throwIfRequested(),d.signal&&d.signal.aborted)throw new T_(null,d)}function QL(d){return R8(d),d.headers=C0.from(d.headers),d.data=F8.call(d,d.transformRequest),["post","put","patch"].indexOf(d.method)!==-1&&d.headers.setContentType("application/x-www-form-urlencoded",!1),jO.getAdapter(d.adapter||ow.adapter,d)(d).then(function(B){return R8(d),B.data=F8.call(d,d.transformResponse,B),B.headers=C0.from(B.headers),B},function(B){return DO(B)||(R8(d),B&&B.response&&(B.response.data=F8.call(d,d.transformResponse,B.response),B.response.headers=C0.from(B.response.headers))),Promise.reject(B)})}const UO="1.13.2",Y4={};["object","boolean","number","function","string","symbol"].forEach((d,s)=>{Y4[d]=function(B){return typeof B===d||"a"+(s<1?"n ":" ")+d}});const tP={};Y4.transitional=function(s,E,B){function K(dt,_t){return"[Axios v"+UO+"] Transitional option '"+dt+"'"+_t+(B?". "+B:"")}return(dt,_t,It)=>{if(s===!1)throw new Qu(K(_t," has been removed"+(E?" in "+E:"")),Qu.ERR_DEPRECATED);return E&&!tP[_t]&&(tP[_t]=!0,console.warn(K(_t," has been deprecated since v"+E+" and will be removed in the near future"))),s?s(dt,_t,It):!0}};Y4.spelling=function(s){return(E,B)=>(console.warn(`${B} is likely a misspelling of ${s}`),!0)};function VQ(d,s,E){if(typeof d!="object")throw new Qu("options must be an object",Qu.ERR_BAD_OPTION_VALUE);const B=Object.keys(d);let K=B.length;for(;K-- >0;){const dt=B[K],_t=s[dt];if(_t){const It=d[dt],jt=It===void 0||_t(It,dt,d);if(jt!==!0)throw new Qu("option "+dt+" must be "+jt,Qu.ERR_BAD_OPTION_VALUE);continue}if(E!==!0)throw new Qu("Unknown option "+dt,Qu.ERR_BAD_OPTION)}}const n4={assertOptions:VQ,validators:Y4},ag=n4.validators;let My=class{constructor(s){this.defaults=s||{},this.interceptors={request:new VL,response:new VL}}async request(s,E){try{return await this._request(s,E)}catch(B){if(B instanceof Error){let K={};Error.captureStackTrace?Error.captureStackTrace(K):K=new Error;const dt=K.stack?K.stack.replace(/^.+\n/,""):"";try{B.stack?dt&&!String(B.stack).endsWith(dt.replace(/^.+\n.+\n/,""))&&(B.stack+=`
|
||||
`+dt):B.stack=dt}catch{}}throw B}}_request(s,E){typeof s=="string"?(E=E||{},E.url=s):E=s||{},E=Ly(this.defaults,E);const{transitional:B,paramsSerializer:K,headers:dt}=E;B!==void 0&&n4.assertOptions(B,{silentJSONParsing:ag.transitional(ag.boolean),forcedJSONParsing:ag.transitional(ag.boolean),clarifyTimeoutError:ag.transitional(ag.boolean)},!1),K!=null&&(io.isFunction(K)?E.paramsSerializer={serialize:K}:n4.assertOptions(K,{encode:ag.function,serialize:ag.function},!0)),E.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?E.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:E.allowAbsoluteUrls=!0),n4.assertOptions(E,{baseUrl:ag.spelling("baseURL"),withXsrfToken:ag.spelling("withXSRFToken")},!0),E.method=(E.method||this.defaults.method||"get").toLowerCase();let _t=dt&&io.merge(dt.common,dt[E.method]);dt&&io.forEach(["delete","get","head","post","put","patch","common"],Mr=>{delete dt[Mr]}),E.headers=C0.concat(_t,dt);const It=[];let jt=!0;this.interceptors.request.forEach(function(xr){typeof xr.runWhen=="function"&&xr.runWhen(E)===!1||(jt=jt&&xr.synchronous,It.unshift(xr.fulfilled,xr.rejected))});const re=[];this.interceptors.response.forEach(function(xr){re.push(xr.fulfilled,xr.rejected)});let se,we=0,tr;if(!jt){const Mr=[QL.bind(this),void 0];for(Mr.unshift(...It),Mr.push(...re),tr=Mr.length,se=Promise.resolve(E);we<tr;)se=se.then(Mr[we++],Mr[we++]);return se}tr=It.length;let fr=E;for(;we<tr;){const Mr=It[we++],xr=It[we++];try{fr=Mr(fr)}catch(Dr){xr.call(this,Dr);break}}try{se=QL.call(this,fr)}catch(Mr){return Promise.reject(Mr)}for(we=0,tr=re.length;we<tr;)se=se.then(re[we++],re[we++]);return se}getUri(s){s=Ly(this.defaults,s);const E=RO(s.baseURL,s.url,s.allowAbsoluteUrls);return IO(E,s.params,s.paramsSerializer)}};io.forEach(["delete","get","head","options"],function(s){My.prototype[s]=function(E,B){return this.request(Ly(B||{},{method:s,url:E,data:(B||{}).data}))}});io.forEach(["post","put","patch"],function(s){function E(B){return function(dt,_t,It){return this.request(Ly(It||{},{method:s,headers:B?{"Content-Type":"multipart/form-data"}:{},url:dt,data:_t}))}}My.prototype[s]=E(),My.prototype[s+"Form"]=E(!0)});let HQ=class VO{constructor(s){if(typeof s!="function")throw new TypeError("executor must be a function.");let E;this.promise=new Promise(function(dt){E=dt});const B=this;this.promise.then(K=>{if(!B._listeners)return;let dt=B._listeners.length;for(;dt-- >0;)B._listeners[dt](K);B._listeners=null}),this.promise.then=K=>{let dt;const _t=new Promise(It=>{B.subscribe(It),dt=It}).then(K);return _t.cancel=function(){B.unsubscribe(dt)},_t},s(function(dt,_t,It){B.reason||(B.reason=new T_(dt,_t,It),E(B.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(s){if(this.reason){s(this.reason);return}this._listeners?this._listeners.push(s):this._listeners=[s]}unsubscribe(s){if(!this._listeners)return;const E=this._listeners.indexOf(s);E!==-1&&this._listeners.splice(E,1)}toAbortSignal(){const s=new AbortController,E=B=>{s.abort(B)};return this.subscribe(E),s.signal.unsubscribe=()=>this.unsubscribe(E),s.signal}static source(){let s;return{token:new VO(function(K){s=K}),cancel:s}}};function WQ(d){return function(E){return d.apply(null,E)}}function qQ(d){return io.isObject(d)&&d.isAxiosError===!0}const SA={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(SA).forEach(([d,s])=>{SA[s]=d});function HO(d){const s=new My(d),E=_O(My.prototype.request,s);return io.extend(E,My.prototype,s,{allOwnKeys:!0}),io.extend(E,s,null,{allOwnKeys:!0}),E.create=function(K){return HO(Ly(d,K))},E}const _d=HO(ow);_d.Axios=My;_d.CanceledError=T_;_d.CancelToken=HQ;_d.isCancel=DO;_d.VERSION=UO;_d.toFormData=G4;_d.AxiosError=Qu;_d.Cancel=_
Line truncated
|
||||
${se.color} 0%,
|
||||
${se.color.replace("0.8","0.6")} 30%,
|
||||
${se.color.replace("0.8","0.4")} 70%,
|
||||
${se.color.replace("0.8","0.3")} 100%),
|
||||
`):" "+JL(_t[0]):"as no adapter specified";throw new Qu("There is no suitable adapter to dispatch the request "+zt,"ERR_NOT_SUPPORT")}return K}const jO={getAdapter:UQ,adapters:pM};function N8(d){if(d.cancelToken&&d.cancelToken.throwIfRequested(),d.signal&&d.signal.aborted)throw new A_(null,d)}function QL(d){return N8(d),d.headers=E0.from(d.headers),d.data=B8.call(d,d.transformRequest),["post","put","patch"].indexOf(d.method)!==-1&&d.headers.setContentType("application/x-www-form-urlencoded",!1),jO.getAdapter(d.adapter||sw.adapter,d)(d).then(function(B){return N8(d),B.data=B8.call(d,d.transformResponse,B),B.headers=E0.from(B.headers),B},function(B){return DO(B)||(N8(d),B&&B.response&&(B.response.data=B8.call(d,d.transformResponse,B.response),B.response.headers=E0.from(B.response.headers))),Promise.reject(B)})}const UO="1.13.2",X4={};["object","boolean","number","function","string","symbol"].forEach((d,s)=>{X4[d]=function(B){return typeof B===d||"a"+(s<1?"n ":" ")+d}});const tP={};X4.transitional=function(s,C,B){function K(dt,_t){return"[Axios v"+UO+"] Transitional option '"+dt+"'"+_t+(B?". "+B:"")}return(dt,_t,zt)=>{if(s===!1)throw new Qu(K(_t," has been removed"+(C?" in "+C:"")),Qu.ERR_DEPRECATED);return C&&!tP[_t]&&(tP[_t]=!0,console.warn(K(_t," has been deprecated since v"+C+" and will be removed in the near future"))),s?s(dt,_t,zt):!0}};X4.spelling=function(s){return(C,B)=>(console.warn(`${B} is likely a misspelling of ${s}`),!0)};function VQ(d,s,C){if(typeof d!="object")throw new Qu("options must be an object",Qu.ERR_BAD_OPTION_VALUE);const B=Object.keys(d);let K=B.length;for(;K-- >0;){const dt=B[K],_t=s[dt];if(_t){const zt=d[dt],jt=zt===void 0||_t(zt,dt,d);if(jt!==!0)throw new Qu("option "+dt+" must be "+jt,Qu.ERR_BAD_OPTION_VALUE);continue}if(C!==!0)throw new Qu("Unknown option "+dt,Qu.ERR_BAD_OPTION)}}const i4={assertOptions:VQ,validators:X4},ag=i4.validators;let My=class{constructor(s){this.defaults=s||{},this.interceptors={request:new VL,response:new VL}}async request(s,C){try{return await this._request(s,C)}catch(B){if(B instanceof Error){let K={};Error.captureStackTrace?Error.captureStackTrace(K):K=new Error;const dt=K.stack?K.stack.replace(/^.+\n/,""):"";try{B.stack?dt&&!String(B.stack).endsWith(dt.replace(/^.+\n.+\n/,""))&&(B.stack+=`
|
||||
`+dt):B.stack=dt}catch{}}throw B}}_request(s,C){typeof s=="string"?(C=C||{},C.url=s):C=s||{},C=Ly(this.defaults,C);const{transitional:B,paramsSerializer:K,headers:dt}=C;B!==void 0&&i4.assertOptions(B,{silentJSONParsing:ag.transitional(ag.boolean),forcedJSONParsing:ag.transitional(ag.boolean),clarifyTimeoutError:ag.transitional(ag.boolean)},!1),K!=null&&(io.isFunction(K)?C.paramsSerializer={serialize:K}:i4.assertOptions(K,{encode:ag.function,serialize:ag.function},!0)),C.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?C.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:C.allowAbsoluteUrls=!0),i4.assertOptions(C,{baseUrl:ag.spelling("baseURL"),withXsrfToken:ag.spelling("withXSRFToken")},!0),C.method=(C.method||this.defaults.method||"get").toLowerCase();let _t=dt&&io.merge(dt.common,dt[C.method]);dt&&io.forEach(["delete","get","head","post","put","patch","common"],Mr=>{delete dt[Mr]}),C.headers=E0.concat(_t,dt);const zt=[];let jt=!0;this.interceptors.request.forEach(function(xr){typeof xr.runWhen=="function"&&xr.runWhen(C)===!1||(jt=jt&&xr.synchronous,zt.unshift(xr.fulfilled,xr.rejected))});const re=[];this.interceptors.response.forEach(function(xr){re.push(xr.fulfilled,xr.rejected)});let oe,we=0,tr;if(!jt){const Mr=[QL.bind(this),void 0];for(Mr.unshift(...zt),Mr.push(...re),tr=Mr.length,oe=Promise.resolve(C);we<tr;)oe=oe.then(Mr[we++],Mr[we++]);return oe}tr=zt.length;let fr=C;for(;we<tr;){const Mr=zt[we++],xr=zt[we++];try{fr=Mr(fr)}catch(Dr){xr.call(this,Dr);break}}try{oe=QL.call(this,fr)}catch(Mr){return Promise.reject(Mr)}for(we=0,tr=re.length;we<tr;)oe=oe.then(re[we++],re[we++]);return oe}getUri(s){s=Ly(this.defaults,s);const C=RO(s.baseURL,s.url,s.allowAbsoluteUrls);return zO(C,s.params,s.paramsSerializer)}};io.forEach(["delete","get","head","options"],function(s){My.prototype[s]=function(C,B){return this.request(Ly(B||{},{method:s,url:C,data:(B||{}).data}))}});io.forEach(["post","put","patch"],function(s){function C(B){return function(dt,_t,zt){return this.request(Ly(zt||{},{method:s,headers:B?{"Content-Type":"multipart/form-data"}:{},url:dt,data:_t}))}}My.prototype[s]=C(),My.prototype[s+"Form"]=C(!0)});let HQ=class VO{constructor(s){if(typeof s!="function")throw new TypeError("executor must be a function.");let C;this.promise=new Promise(function(dt){C=dt});const B=this;this.promise.then(K=>{if(!B._listeners)return;let dt=B._listeners.length;for(;dt-- >0;)B._listeners[dt](K);B._listeners=null}),this.promise.then=K=>{let dt;const _t=new Promise(zt=>{B.subscribe(zt),dt=zt}).then(K);return _t.cancel=function(){B.unsubscribe(dt)},_t},s(function(dt,_t,zt){B.reason||(B.reason=new A_(dt,_t,zt),C(B.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(s){if(this.reason){s(this.reason);return}this._listeners?this._listeners.push(s):this._listeners=[s]}unsubscribe(s){if(!this._listeners)return;const C=this._listeners.indexOf(s);C!==-1&&this._listeners.splice(C,1)}toAbortSignal(){const s=new AbortController,C=B=>{s.abort(B)};return this.subscribe(C),s.signal.unsubscribe=()=>this.unsubscribe(C),s.signal}static source(){let s;return{token:new VO(function(K){s=K}),cancel:s}}};function WQ(d){return function(C){return d.apply(null,C)}}function qQ(d){return io.isObject(d)&&d.isAxiosError===!0}const CA={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(CA).forEach(([d,s])=>{CA[s]=d});function HO(d){const s=new My(d),C=_O(My.prototype.request,s);return io.extend(C,My.prototype,s,{allOwnKeys:!0}),io.extend(C,s,null,{allOwnKeys:!0}),C.create=function(K){return HO(Ly(d,K))},C}const _d=HO(sw);_d.Axios=My;_d.CanceledError=A_;_d.CancelToken=HQ;_d.isCancel=DO;_d.VERSION=UO;_d.toFormData=K4;_d.AxiosError=Qu;_d.Cancel=_
Line truncated
|
||||
${oe.color} 0%,
|
||||
${oe.color.replace("0.8","0.6")} 30%,
|
||||
${oe.color.replace("0.8","0.4")} 70%,
|
||||
${oe.color.replace("0.8","0.3")} 100%),
|
||||
linear-gradient(91deg, rgba(34, 34, 34, 0.43) 1.17%, rgba(135, 135, 136, 0.10) 99.82%)`,backgroundBlendMode:"overlay, normal",minHeight:"8px",boxShadow:`
|
||||
0 8px 32px ${se.color.replace("0.8","0.3")},
|
||||
0 8px 32px ${oe.color.replace("0.8","0.3")},
|
||||
0 4px 15px rgba(0, 0, 0, 0.4),
|
||||
inset 0 1px 0 rgba(255, 255, 255, 0.3),
|
||||
inset 0 -1px 0 rgba(0, 0, 0, 0.2)
|
||||
`})},[oe("span",Lnt,pi(se.count),1)],4)]),oe("div",Pnt,[oe("div",Int,pi(se.name.replace(/\([^)]*\)/g,"").trim()),1)])]))),128))]))]),s.value.length>0?(ii(),mi("div",znt," Total packet types: "+pi(s.value.length)+" | Total packets: "+pi(s.value.reduce((se,we)=>se+we.count,0)),1)):Po("",!0)]))}}),Dnt=Rf(Ont,[["__scopeId","data-v-cf9e6f4e"]]),Fnt={class:"glass-card rounded-[10px] p-4 lg:p-6"},Rnt={class:"relative h-40 lg:h-48"},Bnt={class:"mt-3 lg:mt-4 grid grid-cols-2 gap-3 lg:gap-4"},Nnt={class:"text-center"},jnt={class:"text-lg lg:text-2xl font-bold text-white"},Unt={class:"text-center"},Vnt={class:"text-lg lg:text-2xl font-bold text-white"},Hnt={class:"mt-2 lg:mt-3 grid grid-cols-3 gap-2 lg:gap-3 text-center"},Wnt={class:"text-xs lg:text-sm font-semibold text-accent-purple flex items-center justify-center gap-1"},qnt={key:0,class:"inline-block w-1.5 h-1.5 rounded-full bg-secondary opacity-70",title:"Early data - limited uptime"},$nt={class:"text-xs text-white/60"},Znt={class:"text-xs lg:text-sm font-semibold text-accent-red flex items-center justify-center gap-1"},Gnt={key:0,class:"inline-block w-1.5 h-1.5 rounded-full bg-secondary opacity-70",title:"Early data - limited uptime"},Ynt={class:"text-xs text-white/60"},Knt={class:"text-xs lg:text-sm font-semibold text-white"},Xnt=Ec({name:"PerformanceChart",__name:"PerformanceChart",setup(d){const s=sw(),E=dm(),B=ja(null),K=ja([]),dt=ja(null),_t=ja(!0),It=Ho(()=>{const se=E.stats?.uptime_seconds||0,we=s.packetStats?.total_packets||0,tr=s.packetStats?.transmitted_packets||0,fr=Math.max(se/3600,.1);if(fr<1){const xr=Math.max(se/60,1);return{rxRate:{value:Math.round(we/xr*100)/100,label:fr<.5?"RX/min (early)":"RX/min"},txRate:{value:Math.round(tr/xr*100)/100,label:fr<.5?"TX/min (early)":"TX/min"},confidence:"low"}}else{const xr=Math.round(we/fr*100)/100,Dr=Math.round(tr/fr*100)/100;let hn,Dt;return fr<6?(hn=`RX/hr (${Math.round(fr)}h)`,Dt="medium"):fr<24?(hn=`RX/hr (${Math.round(fr)}h)`,Dt="high"):(hn="RX/hr",Dt="high"),{rxRate:{value:xr,label:hn},txRate:{value:Dr,label:hn.replace("RX","TX")},confidence:Dt}}}),jt=async()=>{try{_t.value=!0;const se=await oh.get("/recent_packets",{limit:50});if(!se.success){K.value=[],_t.value=!1,S0(()=>{re()});return}const we=se.data||[],tr=Date.now(),fr=24,Mr=12,xr=fr*60*60*1e3/Mr,Dr=[];for(let hn=0;hn<Mr;hn++){const Dt=tr-fr*60*60*1e3+hn*xr,on=Dt+xr,Xn=we.filter(Ri=>{const $i=Ri.timestamp*1e3;return $i>=Dt&&$i<on}),Hn=Xn.filter(Ri=>!Ri.transmitted).length,Qn=Xn.filter(Ri=>Ri.transmitted).length;Dr.push({time:new Date(Dt+xr/2).toISOString(),rxPackets:Hn,txPackets:Qn})}K.value=Dr,_t.value=!1,S0(()=>{re()})}catch{K.value=[],_t.value=!1,S0(()=>{re()})}},re=()=>{if(!B.value)return;const se=B.value,we=se.getContext("2d");if(!we)return;const tr=se.parentElement;if(!tr)return;const fr=tr.getBoundingClientRect(),Mr=fr.width,xr=fr.height;se.width=Mr*window.devicePixelRatio,se.height=xr*window.devicePixelRatio,se.style.width=Mr+"px",se.style.height=xr+"px",we.scale(window.devicePixelRatio,window.devicePixelRatio);const Dr=20;if(we.clearRect(0,0,Mr,xr),_t.value){we.fillStyle="#666",we.font="16px sans-serif",we.textAlign="center",we.fillText("Loading chart data...",Mr/2,xr/2);return}if(K.value.length===0){we.fillStyle="#666",we.font="16px sans-serif",we.textAlign="center",we.fillText("No data available",Mr/2,xr/2);return}const hn=K.value.every(ci=>ci.rxPackets===0&&ci.txPackets===0),Dt=Mr-Dr*2,on=xr-Dr*2,Xn=K.value.flatMap(ci=>[ci.rxPackets,ci.txPackets]),Hn=Math.min(...Xn),Qn=Math.max(...Xn),Ri=Hn,$i=Qn,qr=Math.max($i-Ri,1);if(we.strokeStyle="rgba(255, 255, 255, 0.1)",we.lineWidth=1,Ri<=0&&$i>=0){we.strokeStyle="rgba(255, 255, 255, 0.3)",we.lineWidth=2;const ci=xr-Dr-(0-Ri)/qr*on;we.beginPath(),we.moveTo(Dr,ci),we.lineTo(Mr-Dr,ci),we.stroke(),ci>20&&ci<xr-20&&(we.fillStyle="rgba(255, 255, 255, 0.7)",we.font="10px system-ui",we.textAlign="left",we.fillText("0",Dr+2,ci-2)),we.strokeStyle="rgba(255, 255, 255, 0.1)",we.lineWidth=1}for(let ci=0;ci<=5;ci++){const On=Dr+on*ci/5;we.beginPath(),we.moveTo(Dr,On),we.lineTo(Mr-Dr,On),we.stroke()}for(let ci=0;ci<=6;ci++){const On=Dr+Dt*ci/6;we.beginPath(),we.moveTo(On,Dr),we.lineTo(On,xr-Dr),we.stroke()}K.value.length>1&&(we.strokeStyle="#EBA0FC",we.lineWidth=2,we.beginPath(),K.value.forEach((ci,On)=>{const ei=Dr+Dt*On/(K.value.length-1),Fn=xr-Dr-(ci.rxPackets-Ri)/qr*on;On===0?we.moveTo(ei,Fn):we.lineTo(ei,Fn)}),we.stroke(),we.fillStyle="#EBA0FC",K.value.forEach((ci,On)=>{const ei=Dr+Dt*On/(K.value.length-1),Fn=xr-Dr-(ci.rxPackets-Ri)/qr*on;we.beginPath(),we.arc(ei,Fn,2,0,2*Math.PI),we.fill()})),K.value.length>1&&(we.strokeStyle="#FB787B",we.lineWidth=2,we.beginPath(),K.value.forEach((ci,On)=>{const ei=Dr+Dt*On/(K.value.length-1),Fn=xr-Dr-(ci.txPackets-Ri)/qr*on;On===0?we.moveTo(ei,Fn):we.lineTo(ei,Fn)}),we.stroke(),we.fillStyle="#FB787B",K.value.forEach((ci,On)=>{const ei=Dr+Dt*On/(K.value.length-1),Fn=xr-Dr-(ci.txPackets-Ri)/qr*on;we.beginPath(),we.arc(ei,Fn,2,0,2*Math.PI),we.fill()})
Line truncated
|
||||
`)||Dt},se=(Dt,on,Xn)=>{try{let Hn=0;const Qn=on.length/2;if(Qn>=100){if(on.length>=Hn+64){const Ri=on.slice(Hn,Hn+64);Dt.push({name:"Public Key",byteRange:`${(Xn+Hn)/2}-${(Xn+Hn+63)/2}`,hexData:Ri.match(/.{8}/g)?.join(" ")||Ri,description:"Ed25519 public key of the node (32 bytes)",fields:[{bits:"0-255",name:"Ed25519 Public Key",value:`${Ri.slice(0,16)}...${Ri.slice(-16)}`,binary:"32 bytes (256 bits)"}]}),Hn+=64}if(on.length>=Hn+8){const Ri=on.slice(Hn,Hn+8),$i=parseInt(Ri,16),qr=new Date($i*1e3);Dt.push({name:"Timestamp",byteRange:`${(Xn+Hn)/2}-${(Xn+Hn+7)/2}`,hexData:Ri.match(/.{2}/g)?.join(" ")||Ri,description:"Unix timestamp of advertisement",fields:[{bits:"0-31",name:"Unix Timestamp",value:`${$i} (${qr.toLocaleString()})`,binary:$i.toString(2).padStart(32,"0")}]}),Hn+=8}if(on.length>=Hn+128){const Ri=on.slice(Hn,Hn+128);Dt.push({name:"Signature",byteRange:`${(Xn+Hn)/2}-${(Xn+Hn+127)/2}`,hexData:Ri.match(/.{8}/g)?.join(" ")||Ri,description:"Ed25519 signature of public key, timestamp, and appdata",fields:[{bits:"0-511",name:"Ed25519 Signature",value:`${Ri.slice(0,16)}...${Ri.slice(-16)}`,binary:"64 bytes (512 bits)"}]}),Hn+=128}if(on.length>Hn){const Ri=on.slice(Hn);we(Dt,Ri,Xn+Hn)}}else Dt.push({name:"ADVERT AppData (Partial)",byteRange:`${Xn/2}-${Xn/2+Qn-1}`,hexData:on.match(/.{2}/g)?.join(" ")||on,description:`Partial ADVERT data - appears to be just AppData portion (${Qn} bytes)`,fields:[{bits:`0-${Qn*8-1}`,name:"Partial Data",value:`${Qn} bytes - attempting to decode as AppData`,binary:`${Qn} bytes (${Qn*8} bits)`}]}),we(Dt,on,Xn)}catch(Hn){Dt.push({name:"ADVERT Parse Error",byteRange:"N/A",hexData:on.slice(0,32)+"...",description:"Failed to parse ADVERT payload structure",fields:[{bits:"N/A",name:"Error",value:`Parse error: ${Hn instanceof Error?Hn.message:"Unknown error"}`,binary:"Invalid"}]})}},we=(Dt,on,Xn)=>{try{const Hn=on.length/2;Dt.push({name:"AppData",byteRange:`${Xn/2}-${Xn/2+Hn-1}`,hexData:on.match(/.{2}/g)?.join(" ")||on,description:`Node advertisement application data (${Hn} bytes)`,fields:[{bits:`0-${Hn*8-1}`,name:"Application Data",value:`${Hn} bytes (contains flags, location, name, etc.)`,binary:`${Hn} bytes (${Hn*8} bits)`}]});let Qn=0;if(on.length>=2){const Ri=parseInt(on.slice(Qn,Qn+2),16),$i=[],qr=!!(Ri&16),ci=!!(Ri&32),On=!!(Ri&64),ei=!!(Ri&128);if(Ri&1&&$i.push("is chat node"),Ri&2&&$i.push("is repeater"),Ri&4&&$i.push("is room server"),Ri&8&&$i.push("is sensor"),qr&&$i.push("has location"),ci&&$i.push("has feature 1"),On&&$i.push("has feature 2"),ei&&$i.push("has name"),Dt.push({name:"AppData Flags",byteRange:`${(Xn+Qn)/2}`,hexData:`0x${on.slice(Qn,Qn+2)}`,description:"Flags indicating which optional fields are present",fields:[{bits:"0-7",name:"Flags",value:$i.join(", ")||"none",binary:Ri.toString(2).padStart(8,"0")}]}),Qn+=2,qr&&on.length>=Qn+16){const Fn=on.slice(Qn,Qn+8),Vn=[];for(let Ks=6;Ks>=0;Ks-=2)Vn.push(Fn.slice(Ks,Ks+2));const sa=parseInt(Vn.join(""),16),Ai=sa>2147483647?sa-4294967296:sa,di=Ai/1e6,ma=on.slice(Qn+8,Qn+16),ml=[];for(let Ks=6;Ks>=0;Ks-=2)ml.push(ma.slice(Ks,Ks+2));const Ya=parseInt(ml.join(""),16),ao=Ya>2147483647?Ya-4294967296:Ya,Wa=ao/1e6;Dt.push({name:"Location Data",byteRange:`${(Xn+Qn)/2}-${(Xn+Qn+15)/2}`,hexData:`${Fn.match(/.{2}/g)?.join(" ")||Fn} ${ma.match(/.{2}/g)?.join(" ")||ma}`,description:"GPS coordinates (latitude and longitude)",fields:[{bits:"0-31",name:"Latitude",value:`${di.toFixed(6)}° (raw: ${Ai})`,binary:Ai.toString(2).padStart(32,"0")},{bits:"32-63",name:"Longitude",value:`${Wa.toFixed(6)}° (raw: ${ao})`,binary:ao.toString(2).padStart(32,"0")}]}),Qn+=16}if(ci&&on.length>=Qn+4){const Fn=on.slice(Qn,Qn+4),Vn=parseInt(Fn,16);Dt.push({name:"Feature 1",byteRange:`${(Xn+Qn)/2}-${(Xn+Qn+3)/2}`,hexData:Fn.match(/.{2}/g)?.join(" ")||Fn,description:"Reserved feature 1 (2 bytes)",fields:[{bits:"0-15",name:"Feature 1 Value",value:`${Vn}`,binary:Vn.toString(2).padStart(16,"0")}]}),Qn+=4}if(On&&on.length>=Qn+4){const Fn=on.slice(Qn,Qn+4),Vn=parseInt(Fn,16);Dt.push({name:"Feature 2",byteRange:`${(Xn+Qn)/2}-${(Xn+Qn+3)/2}`,hexData:Fn.match(/.{2}/g)?.join(" ")||Fn,description:"Reserved feature 2 (2 bytes)",fields:[{bits:"0-15",name:"Feature 2 Value",value:`${Vn}`,binary:Vn.toString(2).padStart(16,"0")}]}),Qn+=4}if(ei&&on.length>Qn){const Fn=on.slice(Qn),Vn=Fn.match(/.{2}/g)||[],sa=Vn.map(Ai=>{const di=parseInt(Ai,16);return di>=32&&di<=126?String.fromCharCode(di):"."}).join("").replace(/\.+$/,"");Dt.push({name:"Node Name",byteRange:`${(Xn+Qn)/2}-${(Xn+on.length-1)/2}`,hexData:Fn.match(/.{2}/g)?.join(" ")||Fn,description:`Node name string (${Vn.length} bytes)`,fields:[{bits:`0-${Vn.length*8-1}`,name:"Node Name",value:`"${sa}"`,binary:`ASCII text (${Vn.length} bytes)`}]})}}}catch(Hn){Dt.push({name:"AppData Parse Error",byteRange:"N/A",hexData:on.slice(0,Math.min(32,on.length)),description:"Failed to parse AppData structure",fields:[{bits:"N/A",name:"Error",value:`Parse error: ${Hn instanceof Error?Hn.message:"Unknown error"}`,binary:"Invalid"}
Line truncated
|
||||
`})},[ie("span",Lnt,mi(oe.count),1)],4)]),ie("div",Pnt,[ie("div",znt,mi(oe.name.replace(/\([^)]*\)/g,"").trim()),1)])]))),128))]))]),s.value.length>0?(ii(),fi("div",Int," Total packet types: "+mi(s.value.length)+" | Total packets: "+mi(s.value.reduce((oe,we)=>oe+we.count,0)),1)):Mo("",!0)]))}}),Dnt=Rf(Ont,[["__scopeId","data-v-cf9e6f4e"]]),Fnt={class:"glass-card rounded-[10px] p-4 lg:p-6"},Rnt={class:"relative h-40 lg:h-48"},Bnt={class:"mt-3 lg:mt-4 grid grid-cols-2 gap-3 lg:gap-4"},Nnt={class:"text-center"},jnt={class:"text-lg lg:text-2xl font-bold text-white"},Unt={class:"text-center"},Vnt={class:"text-lg lg:text-2xl font-bold text-white"},Hnt={class:"mt-2 lg:mt-3 grid grid-cols-3 gap-2 lg:gap-3 text-center"},Wnt={class:"text-xs lg:text-sm font-semibold text-accent-purple flex items-center justify-center gap-1"},qnt={key:0,class:"inline-block w-1.5 h-1.5 rounded-full bg-secondary opacity-70",title:"Early data - limited uptime"},$nt={class:"text-xs text-white/60"},Znt={class:"text-xs lg:text-sm font-semibold text-accent-red flex items-center justify-center gap-1"},Gnt={key:0,class:"inline-block w-1.5 h-1.5 rounded-full bg-secondary opacity-70",title:"Early data - limited uptime"},Ynt={class:"text-xs text-white/60"},Knt={class:"text-xs lg:text-sm font-semibold text-white"},Xnt=Cc({name:"PerformanceChart",__name:"PerformanceChart",setup(d){const s=lw(),C=dm(),B=Ba(null),K=Ba([]),dt=Ba(null),_t=Ba(!0),zt=Uo(()=>{const oe=C.stats?.uptime_seconds||0,we=s.packetStats?.total_packets||0,tr=s.packetStats?.transmitted_packets||0,fr=Math.max(oe/3600,.1);if(fr<1){const xr=Math.max(oe/60,1);return{rxRate:{value:Math.round(we/xr*100)/100,label:fr<.5?"RX/min (early)":"RX/min"},txRate:{value:Math.round(tr/xr*100)/100,label:fr<.5?"TX/min (early)":"TX/min"},confidence:"low"}}else{const xr=Math.round(we/fr*100)/100,Dr=Math.round(tr/fr*100)/100;let hn,Dt;return fr<6?(hn=`RX/hr (${Math.round(fr)}h)`,Dt="medium"):fr<24?(hn=`RX/hr (${Math.round(fr)}h)`,Dt="high"):(hn="RX/hr",Dt="high"),{rxRate:{value:xr,label:hn},txRate:{value:Dr,label:hn.replace("RX","TX")},confidence:Dt}}}),jt=async()=>{try{_t.value=!0;const oe=await oh.get("/recent_packets",{limit:50});if(!oe.success){K.value=[],_t.value=!1,S0(()=>{re()});return}const we=oe.data||[],tr=Date.now(),fr=24,Mr=12,xr=fr*60*60*1e3/Mr,Dr=[];for(let hn=0;hn<Mr;hn++){const Dt=tr-fr*60*60*1e3+hn*xr,on=Dt+xr,Qn=we.filter(Ri=>{const qi=Ri.timestamp*1e3;return qi>=Dt&&qi<on}),Wn=Qn.filter(Ri=>!Ri.transmitted).length,ei=Qn.filter(Ri=>Ri.transmitted).length;Dr.push({time:new Date(Dt+xr/2).toISOString(),rxPackets:Wn,txPackets:ei})}K.value=Dr,_t.value=!1,S0(()=>{re()})}catch{K.value=[],_t.value=!1,S0(()=>{re()})}},re=()=>{if(!B.value)return;const oe=B.value,we=oe.getContext("2d");if(!we)return;const tr=oe.parentElement;if(!tr)return;const fr=tr.getBoundingClientRect(),Mr=fr.width,xr=fr.height;oe.width=Mr*window.devicePixelRatio,oe.height=xr*window.devicePixelRatio,oe.style.width=Mr+"px",oe.style.height=xr+"px",we.scale(window.devicePixelRatio,window.devicePixelRatio);const Dr=20;if(we.clearRect(0,0,Mr,xr),_t.value){we.fillStyle="#666",we.font="16px sans-serif",we.textAlign="center",we.fillText("Loading chart data...",Mr/2,xr/2);return}if(K.value.length===0){we.fillStyle="#666",we.font="16px sans-serif",we.textAlign="center",we.fillText("No data available",Mr/2,xr/2);return}const hn=K.value.every(Bi=>Bi.rxPackets===0&&Bi.txPackets===0),Dt=Mr-Dr*2,on=xr-Dr*2,Qn=K.value.flatMap(Bi=>[Bi.rxPackets,Bi.txPackets]),Wn=Math.min(...Qn),ei=Math.max(...Qn),Ri=Wn,qi=ei,nn=Math.max(qi-Ri,1);if(we.strokeStyle="rgba(255, 255, 255, 0.1)",we.lineWidth=1,Ri<=0&&qi>=0){we.strokeStyle="rgba(255, 255, 255, 0.3)",we.lineWidth=2;const Bi=xr-Dr-(0-Ri)/nn*on;we.beginPath(),we.moveTo(Dr,Bi),we.lineTo(Mr-Dr,Bi),we.stroke(),Bi>20&&Bi<xr-20&&(we.fillStyle="rgba(255, 255, 255, 0.7)",we.font="10px system-ui",we.textAlign="left",we.fillText("0",Dr+2,Bi-2)),we.strokeStyle="rgba(255, 255, 255, 0.1)",we.lineWidth=1}for(let Bi=0;Bi<=5;Bi++){const $n=Dr+on*Bi/5;we.beginPath(),we.moveTo(Dr,$n),we.lineTo(Mr-Dr,$n),we.stroke()}for(let Bi=0;Bi<=6;Bi++){const $n=Dr+Dt*Bi/6;we.beginPath(),we.moveTo($n,Dr),we.lineTo($n,xr-Dr),we.stroke()}K.value.length>1&&(we.strokeStyle="#EBA0FC",we.lineWidth=2,we.beginPath(),K.value.forEach((Bi,$n)=>{const ni=Dr+Dt*$n/(K.value.length-1),Dn=xr-Dr-(Bi.rxPackets-Ri)/nn*on;$n===0?we.moveTo(ni,Dn):we.lineTo(ni,Dn)}),we.stroke(),we.fillStyle="#EBA0FC",K.value.forEach((Bi,$n)=>{const ni=Dr+Dt*$n/(K.value.length-1),Dn=xr-Dr-(Bi.rxPackets-Ri)/nn*on;we.beginPath(),we.arc(ni,Dn,2,0,2*Math.PI),we.fill()})),K.value.length>1&&(we.strokeStyle="#FB787B",we.lineWidth=2,we.beginPath(),K.value.forEach((Bi,$n)=>{const ni=Dr+Dt*$n/(K.value.length-1),Dn=xr-Dr-(Bi.txPackets-Ri)/nn*on;$n===0?we.moveTo(ni,Dn):we.lineTo(ni,Dn)}),we.stroke(),we.fillStyle="#FB787B",K.value.forEach((Bi,$n)=>{const ni=Dr+Dt*$n/(K.value.length-1),Dn=xr-Dr-(Bi.txPackets-Ri)/nn*on;we.beginPath(),we.arc(ni,Dn,2,0,2*Math.PI),we.fill()})
Line truncated
|
||||
`)||Dt},oe=(Dt,on,Qn)=>{try{let Wn=0;const ei=on.length/2;if(ei>=100){if(on.length>=Wn+64){const Ri=on.slice(Wn,Wn+64);Dt.push({name:"Public Key",byteRange:`${(Qn+Wn)/2}-${(Qn+Wn+63)/2}`,hexData:Ri.match(/.{8}/g)?.join(" ")||Ri,description:"Ed25519 public key of the node (32 bytes)",fields:[{bits:"0-255",name:"Ed25519 Public Key",value:`${Ri.slice(0,16)}...${Ri.slice(-16)}`,binary:"32 bytes (256 bits)"}]}),Wn+=64}if(on.length>=Wn+8){const Ri=on.slice(Wn,Wn+8),qi=parseInt(Ri,16),nn=new Date(qi*1e3);Dt.push({name:"Timestamp",byteRange:`${(Qn+Wn)/2}-${(Qn+Wn+7)/2}`,hexData:Ri.match(/.{2}/g)?.join(" ")||Ri,description:"Unix timestamp of advertisement",fields:[{bits:"0-31",name:"Unix Timestamp",value:`${qi} (${nn.toLocaleString()})`,binary:qi.toString(2).padStart(32,"0")}]}),Wn+=8}if(on.length>=Wn+128){const Ri=on.slice(Wn,Wn+128);Dt.push({name:"Signature",byteRange:`${(Qn+Wn)/2}-${(Qn+Wn+127)/2}`,hexData:Ri.match(/.{8}/g)?.join(" ")||Ri,description:"Ed25519 signature of public key, timestamp, and appdata",fields:[{bits:"0-511",name:"Ed25519 Signature",value:`${Ri.slice(0,16)}...${Ri.slice(-16)}`,binary:"64 bytes (512 bits)"}]}),Wn+=128}if(on.length>Wn){const Ri=on.slice(Wn);we(Dt,Ri,Qn+Wn)}}else Dt.push({name:"ADVERT AppData (Partial)",byteRange:`${Qn/2}-${Qn/2+ei-1}`,hexData:on.match(/.{2}/g)?.join(" ")||on,description:`Partial ADVERT data - appears to be just AppData portion (${ei} bytes)`,fields:[{bits:`0-${ei*8-1}`,name:"Partial Data",value:`${ei} bytes - attempting to decode as AppData`,binary:`${ei} bytes (${ei*8} bits)`}]}),we(Dt,on,Qn)}catch(Wn){Dt.push({name:"ADVERT Parse Error",byteRange:"N/A",hexData:on.slice(0,32)+"...",description:"Failed to parse ADVERT payload structure",fields:[{bits:"N/A",name:"Error",value:`Parse error: ${Wn instanceof Error?Wn.message:"Unknown error"}`,binary:"Invalid"}]})}},we=(Dt,on,Qn)=>{try{const Wn=on.length/2;Dt.push({name:"AppData",byteRange:`${Qn/2}-${Qn/2+Wn-1}`,hexData:on.match(/.{2}/g)?.join(" ")||on,description:`Node advertisement application data (${Wn} bytes)`,fields:[{bits:`0-${Wn*8-1}`,name:"Application Data",value:`${Wn} bytes (contains flags, location, name, etc.)`,binary:`${Wn} bytes (${Wn*8} bits)`}]});let ei=0;if(on.length>=2){const Ri=parseInt(on.slice(ei,ei+2),16),qi=[],nn=!!(Ri&16),Bi=!!(Ri&32),$n=!!(Ri&64),ni=!!(Ri&128);if(Ri&1&&qi.push("is chat node"),Ri&2&&qi.push("is repeater"),Ri&4&&qi.push("is room server"),Ri&8&&qi.push("is sensor"),nn&&qi.push("has location"),Bi&&qi.push("has feature 1"),$n&&qi.push("has feature 2"),ni&&qi.push("has name"),Dt.push({name:"AppData Flags",byteRange:`${(Qn+ei)/2}`,hexData:`0x${on.slice(ei,ei+2)}`,description:"Flags indicating which optional fields are present",fields:[{bits:"0-7",name:"Flags",value:qi.join(", ")||"none",binary:Ri.toString(2).padStart(8,"0")}]}),ei+=2,nn&&on.length>=ei+16){const Dn=on.slice(ei,ei+8),Vn=[];for(let Ks=6;Ks>=0;Ks-=2)Vn.push(Dn.slice(Ks,Ks+2));const Ci=parseInt(Vn.join(""),16),Pn=Ci>2147483647?Ci-4294967296:Ci,Hn=Pn/1e6,ma=on.slice(ei+8,ei+16),ul=[];for(let Ks=6;Ks>=0;Ks-=2)ul.push(ma.slice(Ks,Ks+2));const Ya=parseInt(ul.join(""),16),ao=Ya>2147483647?Ya-4294967296:Ya,Wa=ao/1e6;Dt.push({name:"Location Data",byteRange:`${(Qn+ei)/2}-${(Qn+ei+15)/2}`,hexData:`${Dn.match(/.{2}/g)?.join(" ")||Dn} ${ma.match(/.{2}/g)?.join(" ")||ma}`,description:"GPS coordinates (latitude and longitude)",fields:[{bits:"0-31",name:"Latitude",value:`${Hn.toFixed(6)}° (raw: ${Pn})`,binary:Pn.toString(2).padStart(32,"0")},{bits:"32-63",name:"Longitude",value:`${Wa.toFixed(6)}° (raw: ${ao})`,binary:ao.toString(2).padStart(32,"0")}]}),ei+=16}if(Bi&&on.length>=ei+4){const Dn=on.slice(ei,ei+4),Vn=parseInt(Dn,16);Dt.push({name:"Feature 1",byteRange:`${(Qn+ei)/2}-${(Qn+ei+3)/2}`,hexData:Dn.match(/.{2}/g)?.join(" ")||Dn,description:"Reserved feature 1 (2 bytes)",fields:[{bits:"0-15",name:"Feature 1 Value",value:`${Vn}`,binary:Vn.toString(2).padStart(16,"0")}]}),ei+=4}if($n&&on.length>=ei+4){const Dn=on.slice(ei,ei+4),Vn=parseInt(Dn,16);Dt.push({name:"Feature 2",byteRange:`${(Qn+ei)/2}-${(Qn+ei+3)/2}`,hexData:Dn.match(/.{2}/g)?.join(" ")||Dn,description:"Reserved feature 2 (2 bytes)",fields:[{bits:"0-15",name:"Feature 2 Value",value:`${Vn}`,binary:Vn.toString(2).padStart(16,"0")}]}),ei+=4}if(ni&&on.length>ei){const Dn=on.slice(ei),Vn=Dn.match(/.{2}/g)||[],Ci=Vn.map(Pn=>{const Hn=parseInt(Pn,16);return Hn>=32&&Hn<=126?String.fromCharCode(Hn):"."}).join("").replace(/\.+$/,"");Dt.push({name:"Node Name",byteRange:`${(Qn+ei)/2}-${(Qn+on.length-1)/2}`,hexData:Dn.match(/.{2}/g)?.join(" ")||Dn,description:`Node name string (${Vn.length} bytes)`,fields:[{bits:`0-${Vn.length*8-1}`,name:"Node Name",value:`"${Ci}"`,binary:`ASCII text (${Vn.length} bytes)`}]})}}}catch(Wn){Dt.push({name:"AppData Parse Error",byteRange:"N/A",hexData:on.slice(0,Math.min(32,on.length)),description:"Failed to parse AppData structure",fields:[{bits:"N/A",name:"Error",value:`Parse error: ${Wn instanceof Error?Wn.message:"Unknown error"}`,binary:"Invalid"}
Line truncated
|
||||
* Leaflet 1.9.4, a JS library for interactive maps. https://leafletjs.com
|
||||
* (c) 2010-2023 Vladimir Agafonkin, (c) 2010-2011 CloudMade
|
||||
*/var Tst=v2.exports,eP;function Ast(){return eP||(eP=1,function(d,s){(function(E,B){B(s)})(Tst,function(E){var B="1.9.4";function K(ct){var Bt,ge,Qe,zr;for(ge=1,Qe=arguments.length;ge<Qe;ge++){zr=arguments[ge];for(Bt in zr)ct[Bt]=zr[Bt]}return ct}var dt=Object.create||function(){function ct(){}return function(Bt){return ct.prototype=Bt,new ct}}();function _t(ct,Bt){var ge=Array.prototype.slice;if(ct.bind)return ct.bind.apply(ct,ge.call(arguments,1));var Qe=ge.call(arguments,2);return function(){return ct.apply(Bt,Qe.length?Qe.concat(ge.call(arguments)):arguments)}}var It=0;function jt(ct){return"_leaflet_id"in ct||(ct._leaflet_id=++It),ct._leaflet_id}function re(ct,Bt,ge){var Qe,zr,An,Zi;return Zi=function(){Qe=!1,zr&&(An.apply(ge,zr),zr=!1)},An=function(){Qe?zr=arguments:(ct.apply(ge,arguments),setTimeout(Zi,Bt),Qe=!0)},An}function se(ct,Bt,ge){var Qe=Bt[1],zr=Bt[0],An=Qe-zr;return ct===Qe&&ge?ct:((ct-zr)%An+An)%An+zr}function we(){return!1}function tr(ct,Bt){if(Bt===!1)return ct;var ge=Math.pow(10,Bt===void 0?6:Bt);return Math.round(ct*ge)/ge}function fr(ct){return ct.trim?ct.trim():ct.replace(/^\s+|\s+$/g,"")}function Mr(ct){return fr(ct).split(/\s+/)}function xr(ct,Bt){Object.prototype.hasOwnProperty.call(ct,"options")||(ct.options=ct.options?dt(ct.options):{});for(var ge in Bt)ct.options[ge]=Bt[ge];return ct.options}function Dr(ct,Bt,ge){var Qe=[];for(var zr in ct)Qe.push(encodeURIComponent(ge?zr.toUpperCase():zr)+"="+encodeURIComponent(ct[zr]));return(!Bt||Bt.indexOf("?")===-1?"?":"&")+Qe.join("&")}var hn=/\{ *([\w_ -]+) *\}/g;function Dt(ct,Bt){return ct.replace(hn,function(ge,Qe){var zr=Bt[Qe];if(zr===void 0)throw new Error("No value provided for variable "+ge);return typeof zr=="function"&&(zr=zr(Bt)),zr})}var on=Array.isArray||function(ct){return Object.prototype.toString.call(ct)==="[object Array]"};function Xn(ct,Bt){for(var ge=0;ge<ct.length;ge++)if(ct[ge]===Bt)return ge;return-1}var Hn="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function Qn(ct){return window["webkit"+ct]||window["moz"+ct]||window["ms"+ct]}var Ri=0;function $i(ct){var Bt=+new Date,ge=Math.max(0,16-(Bt-Ri));return Ri=Bt+ge,window.setTimeout(ct,ge)}var qr=window.requestAnimationFrame||Qn("RequestAnimationFrame")||$i,ci=window.cancelAnimationFrame||Qn("CancelAnimationFrame")||Qn("CancelRequestAnimationFrame")||function(ct){window.clearTimeout(ct)};function On(ct,Bt,ge){if(ge&&qr===$i)ct.call(Bt);else return qr.call(window,_t(ct,Bt))}function ei(ct){ct&&ci.call(window,ct)}var Fn={__proto__:null,extend:K,create:dt,bind:_t,get lastId(){return It},stamp:jt,throttle:re,wrapNum:se,falseFn:we,formatNum:tr,trim:fr,splitWords:Mr,setOptions:xr,getParamString:Dr,template:Dt,isArray:on,indexOf:Xn,emptyImageUrl:Hn,requestFn:qr,cancelFn:ci,requestAnimFrame:On,cancelAnimFrame:ei};function Vn(){}Vn.extend=function(ct){var Bt=function(){xr(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},ge=Bt.__super__=this.prototype,Qe=dt(ge);Qe.constructor=Bt,Bt.prototype=Qe;for(var zr in this)Object.prototype.hasOwnProperty.call(this,zr)&&zr!=="prototype"&&zr!=="__super__"&&(Bt[zr]=this[zr]);return ct.statics&&K(Bt,ct.statics),ct.includes&&(sa(ct.includes),K.apply(null,[Qe].concat(ct.includes))),K(Qe,ct),delete Qe.statics,delete Qe.includes,Qe.options&&(Qe.options=ge.options?dt(ge.options):{},K(Qe.options,ct.options)),Qe._initHooks=[],Qe.callInitHooks=function(){if(!this._initHooksCalled){ge.callInitHooks&&ge.callInitHooks.call(this),this._initHooksCalled=!0;for(var An=0,Zi=Qe._initHooks.length;An<Zi;An++)Qe._initHooks[An].call(this)}},Bt},Vn.include=function(ct){var Bt=this.prototype.options;return K(this.prototype,ct),ct.options&&(this.prototype.options=Bt,this.mergeOptions(ct.options)),this},Vn.mergeOptions=function(ct){return K(this.prototype.options,ct),this},Vn.addInitHook=function(ct){var Bt=Array.prototype.slice.call(arguments,1),ge=typeof ct=="function"?ct:function(){this[ct].apply(this,Bt)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(ge),this};function sa(ct){if(!(typeof L>"u"||!L||!L.Mixin)){ct=on(ct)?ct:[ct];for(var Bt=0;Bt<ct.length;Bt++)ct[Bt]===L.Mixin.Events&&console.warn("Deprecated include of L.Mixin.Events: this property will be removed in future releases, please inherit from L.Evented instead.",new Error().stack)}}var Ai={on:function(ct,Bt,ge){if(typeof ct=="object")for(var Qe in ct)this._on(Qe,ct[Qe],Bt);else{ct=Mr(ct);for(var zr=0,An=ct.length;zr<An;zr++)this._on(ct[zr],Bt,ge)}return this},off:function(ct,Bt,ge){if(!arguments.length)delete this._events;else if(typeof ct=="object")for(var Qe in ct)this._off(Qe,ct[Qe],Bt);else{ct=Mr(ct);for(var zr=arguments.length===1,An=0,Zi=ct.length;An<Zi;An++)zr?this._off(ct[An]):this._off(ct[An],Bt,ge)}return this},_on:function(ct,Bt,ge,Qe){if(typeof Bt!="function"){console.warn("wrong listener type: "+typeof Bt);return}if(this._listens(ct,Bt,ge)===!1){ge===this&&(ge=void 0);var zr={fn:Bt,ctx:ge};Qe&Line truncated
|
||||
*/var Tst=v2.exports,eP;function Ast(){return eP||(eP=1,function(d,s){(function(C,B){B(s)})(Tst,function(C){var B="1.9.4";function K(ct){var Bt,ge,Qe,Ir;for(ge=1,Qe=arguments.length;ge<Qe;ge++){Ir=arguments[ge];for(Bt in Ir)ct[Bt]=Ir[Bt]}return ct}var dt=Object.create||function(){function ct(){}return function(Bt){return ct.prototype=Bt,new ct}}();function _t(ct,Bt){var ge=Array.prototype.slice;if(ct.bind)return ct.bind.apply(ct,ge.call(arguments,1));var Qe=ge.call(arguments,2);return function(){return ct.apply(Bt,Qe.length?Qe.concat(ge.call(arguments)):arguments)}}var zt=0;function jt(ct){return"_leaflet_id"in ct||(ct._leaflet_id=++zt),ct._leaflet_id}function re(ct,Bt,ge){var Qe,Ir,An,Gi;return Gi=function(){Qe=!1,Ir&&(An.apply(ge,Ir),Ir=!1)},An=function(){Qe?Ir=arguments:(ct.apply(ge,arguments),setTimeout(Gi,Bt),Qe=!0)},An}function oe(ct,Bt,ge){var Qe=Bt[1],Ir=Bt[0],An=Qe-Ir;return ct===Qe&&ge?ct:((ct-Ir)%An+An)%An+Ir}function we(){return!1}function tr(ct,Bt){if(Bt===!1)return ct;var ge=Math.pow(10,Bt===void 0?6:Bt);return Math.round(ct*ge)/ge}function fr(ct){return ct.trim?ct.trim():ct.replace(/^\s+|\s+$/g,"")}function Mr(ct){return fr(ct).split(/\s+/)}function xr(ct,Bt){Object.prototype.hasOwnProperty.call(ct,"options")||(ct.options=ct.options?dt(ct.options):{});for(var ge in Bt)ct.options[ge]=Bt[ge];return ct.options}function Dr(ct,Bt,ge){var Qe=[];for(var Ir in ct)Qe.push(encodeURIComponent(ge?Ir.toUpperCase():Ir)+"="+encodeURIComponent(ct[Ir]));return(!Bt||Bt.indexOf("?")===-1?"?":"&")+Qe.join("&")}var hn=/\{ *([\w_ -]+) *\}/g;function Dt(ct,Bt){return ct.replace(hn,function(ge,Qe){var Ir=Bt[Qe];if(Ir===void 0)throw new Error("No value provided for variable "+ge);return typeof Ir=="function"&&(Ir=Ir(Bt)),Ir})}var on=Array.isArray||function(ct){return Object.prototype.toString.call(ct)==="[object Array]"};function Qn(ct,Bt){for(var ge=0;ge<ct.length;ge++)if(ct[ge]===Bt)return ge;return-1}var Wn="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function ei(ct){return window["webkit"+ct]||window["moz"+ct]||window["ms"+ct]}var Ri=0;function qi(ct){var Bt=+new Date,ge=Math.max(0,16-(Bt-Ri));return Ri=Bt+ge,window.setTimeout(ct,ge)}var nn=window.requestAnimationFrame||ei("RequestAnimationFrame")||qi,Bi=window.cancelAnimationFrame||ei("CancelAnimationFrame")||ei("CancelRequestAnimationFrame")||function(ct){window.clearTimeout(ct)};function $n(ct,Bt,ge){if(ge&&nn===qi)ct.call(Bt);else return nn.call(window,_t(ct,Bt))}function ni(ct){ct&&Bi.call(window,ct)}var Dn={__proto__:null,extend:K,create:dt,bind:_t,get lastId(){return zt},stamp:jt,throttle:re,wrapNum:oe,falseFn:we,formatNum:tr,trim:fr,splitWords:Mr,setOptions:xr,getParamString:Dr,template:Dt,isArray:on,indexOf:Qn,emptyImageUrl:Wn,requestFn:nn,cancelFn:Bi,requestAnimFrame:$n,cancelAnimFrame:ni};function Vn(){}Vn.extend=function(ct){var Bt=function(){xr(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},ge=Bt.__super__=this.prototype,Qe=dt(ge);Qe.constructor=Bt,Bt.prototype=Qe;for(var Ir in this)Object.prototype.hasOwnProperty.call(this,Ir)&&Ir!=="prototype"&&Ir!=="__super__"&&(Bt[Ir]=this[Ir]);return ct.statics&&K(Bt,ct.statics),ct.includes&&(Ci(ct.includes),K.apply(null,[Qe].concat(ct.includes))),K(Qe,ct),delete Qe.statics,delete Qe.includes,Qe.options&&(Qe.options=ge.options?dt(ge.options):{},K(Qe.options,ct.options)),Qe._initHooks=[],Qe.callInitHooks=function(){if(!this._initHooksCalled){ge.callInitHooks&&ge.callInitHooks.call(this),this._initHooksCalled=!0;for(var An=0,Gi=Qe._initHooks.length;An<Gi;An++)Qe._initHooks[An].call(this)}},Bt},Vn.include=function(ct){var Bt=this.prototype.options;return K(this.prototype,ct),ct.options&&(this.prototype.options=Bt,this.mergeOptions(ct.options)),this},Vn.mergeOptions=function(ct){return K(this.prototype.options,ct),this},Vn.addInitHook=function(ct){var Bt=Array.prototype.slice.call(arguments,1),ge=typeof ct=="function"?ct:function(){this[ct].apply(this,Bt)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(ge),this};function Ci(ct){if(!(typeof L>"u"||!L||!L.Mixin)){ct=on(ct)?ct:[ct];for(var Bt=0;Bt<ct.length;Bt++)ct[Bt]===L.Mixin.Events&&console.warn("Deprecated include of L.Mixin.Events: this property will be removed in future releases, please inherit from L.Evented instead.",new Error().stack)}}var Pn={on:function(ct,Bt,ge){if(typeof ct=="object")for(var Qe in ct)this._on(Qe,ct[Qe],Bt);else{ct=Mr(ct);for(var Ir=0,An=ct.length;Ir<An;Ir++)this._on(ct[Ir],Bt,ge)}return this},off:function(ct,Bt,ge){if(!arguments.length)delete this._events;else if(typeof ct=="object")for(var Qe in ct)this._off(Qe,ct[Qe],Bt);else{ct=Mr(ct);for(var Ir=arguments.length===1,An=0,Gi=ct.length;An<Gi;An++)Ir?this._off(ct[An]):this._off(ct[An],Bt,ge)}return this},_on:function(ct,Bt,ge,Qe){if(typeof Bt!="function"){console.warn("wrong listener type: "+typeof Bt);return}if(this._listens(ct,Bt,ge)===!1){ge===this&&(ge=void 0);var Ir={fn:Bt,ctx:ge};Qe&Line truncated
|
||||
<div style="
|
||||
width: ${ao}px;
|
||||
height: ${ao}px;
|
||||
@@ -64,24 +64,24 @@ function SG(d,s){for(var E=0;E<s.length;E++){const B=s[E];if(typeof B!="string"&
|
||||
">
|
||||
${Ya}
|
||||
</div>
|
||||
`,iconSize:[ao,ao],iconAnchor:[ao/2,ao/2]})},sa=Fn("#ef4444",!0);Sm.marker([On,ei],{icon:sa}).addTo(It).bindPopup(`
|
||||
`,iconSize:[ao,ao],iconAnchor:[ao/2,ao/2]})},Ci=Dn("#ef4444",!0);Sm.marker([$n,ni],{icon:Ci}).addTo(zt).bindPopup(`
|
||||
<div class="p-2">
|
||||
<strong style="color: #ef4444;">Base Station</strong><br>
|
||||
<span class="text-sm" style="color: #9CA3AF;">Base Station</span><br>
|
||||
<span class="text-xs" style="color: #6B7280;">${On.toFixed(6)}, ${ei.toFixed(6)}</span>
|
||||
<span class="text-xs" style="color: #6B7280;">${$n.toFixed(6)}, ${ni.toFixed(6)}</span>
|
||||
</div>
|
||||
`);const Ai={Unknown:"#9CA3AF","Chat Node":"#60A5FA",Repeater:"#A5E5B6","Room Server":"#EBA0FC","Hybrid Node":"#FFC246"},di=(Ya,ao,Wa,Ks,Fo=0)=>{if(!It)return;const $a=Ya.jittered_latitude||Ya.latitude,Ca=Ya.jittered_longitude||Ya.longitude;if($a===null||Ca===null)return;const ha=Ya.route_type||0;let oo=Ks,mo=3,Jo=.7,Oo;ha===2?(oo="#A5E5B6",mo=4,Jo=.9):ha===1?(oo="#FFC246",Oo="10, 5",Jo=.8):ha===3?(oo="#059669",mo=5,Jo=.95):ha===0?(oo="#ea580c",Oo="12, 6",Jo=.8):(oo="#9CA3AF",Oo="2, 5",Jo=.6);const gi=[ao,Wa],Mi=[$a,Ca],fi=Sm.polyline([gi,Mi],{color:oo,weight:mo,opacity:0,dashArray:Oo,className:"connection-line"}).addTo(It),go=Sm.polyline([gi,gi],{color:oo,weight:mo,opacity:0,dashArray:Oo,className:"connection-line animated-line"}).addTo(It);setTimeout(()=>{let Mo=0;const To=30;go.setStyle({opacity:Jo+.2});const ps=()=>{Mo++;const ys=Mo/To,is=gi[0]+(Mi[0]-gi[0])*ys,Go=gi[1]+(Mi[1]-gi[1])*ys;go.setLatLngs([gi,[is,Go]]),Mo<To?setTimeout(ps,30):setTimeout(()=>{It&&go&&go.remove(),fi.setStyle({opacity:Jo}),fi.on("mouseover",()=>{fi.setStyle({weight:mo+2,opacity:Math.min(Jo+.3,1)})}),fi.on("mouseout",()=>{fi.setStyle({weight:mo,opacity:Jo})});const Cl=Xn(ao,Wa,$a,Ca);fi.bindPopup(`
|
||||
`);const Pn={Unknown:"#9CA3AF","Chat Node":"#60A5FA",Repeater:"#A5E5B6","Room Server":"#EBA0FC","Hybrid Node":"#FFC246"},Hn=(Ya,ao,Wa,Ks,Fo=0)=>{if(!zt)return;const $a=Ya.jittered_latitude||Ya.latitude,Ea=Ya.jittered_longitude||Ya.longitude;if($a===null||Ea===null)return;const ha=Ya.route_type||0;let oo=Ks,mo=3,Jo=.7,Oo;ha===2?(oo="#A5E5B6",mo=4,Jo=.9):ha===1?(oo="#FFC246",Oo="10, 5",Jo=.8):ha===3?(oo="#059669",mo=5,Jo=.95):ha===0?(oo="#ea580c",Oo="12, 6",Jo=.8):(oo="#9CA3AF",Oo="2, 5",Jo=.6);const gi=[ao,Wa],Ai=[$a,Ea],pi=Sm.polyline([gi,Ai],{color:oo,weight:mo,opacity:0,dashArray:Oo,className:"connection-line"}).addTo(zt),go=Sm.polyline([gi,gi],{color:oo,weight:mo,opacity:0,dashArray:Oo,className:"connection-line animated-line"}).addTo(zt);setTimeout(()=>{let So=0;const To=30;go.setStyle({opacity:Jo+.2});const ps=()=>{So++;const ys=So/To,is=gi[0]+(Ai[0]-gi[0])*ys,Go=gi[1]+(Ai[1]-gi[1])*ys;go.setLatLngs([gi,[is,Go]]),So<To?setTimeout(ps,30):setTimeout(()=>{zt&&go&&go.remove(),pi.setStyle({opacity:Jo}),pi.on("mouseover",()=>{pi.setStyle({weight:mo+2,opacity:Math.min(Jo+.3,1)})}),pi.on("mouseout",()=>{pi.setStyle({weight:mo,opacity:Jo})});const El=Qn(ao,Wa,$a,Ea);pi.bindPopup(`
|
||||
<div class="p-2">
|
||||
<strong style="color: ${Ks}">Connection to ${Ya.node_name||"Unknown Node"}</strong><br>
|
||||
<span class="text-sm" style="color: #E5E7EB;">Distance: ${Cl.toFixed(2)} km</span><br>
|
||||
<span class="text-sm" style="color: #E5E7EB;">Distance: ${El.toFixed(2)} km</span><br>
|
||||
<span class="text-sm" style="color: #E5E7EB;">Route: ${on(Ya.route_type)}</span><br>
|
||||
<span class="text-sm" style="color: #E5E7EB;">Signal: ${hn(Ya.rssi)} / ${Dt(Ya.snr)}</span>
|
||||
</div>
|
||||
`),we.value.push(fi)},200)};ps()},Fo)},ma=()=>{if(!It||!re)return;const Ya=It.getBounds(),ao=Math.floor(It.getZoom());se.value.forEach(Ks=>{It&&Ks.remove()}),se.value.clear(),we.value.forEach(Ks=>{It&&Ks.remove()}),we.value.length=0,re.getClusters([Ya.getWest(),Ya.getSouth(),Ya.getEast(),Ya.getNorth()],ao).forEach(Ks=>{const[Fo,$a]=Ks.geometry.coordinates,Ca=Ks.properties;if(Ca.cluster){const ha=Sm.marker([$a,Fo],{icon:Vn(Ca.point_count||0)}).addTo(It);ha.on("click",()=>{if(It&&re){const Mi=re.getClusterExpansionZoom(Ca.cluster_id);It.setView([$a,Fo],Mi)}});const mo=re.getLeaves(Ca.cluster_id,1/0).map(Mi=>`<div style="margin: 2px 0; color: ${Ai[Mi.properties.advert.contact_type]||Ai.Unknown};">
|
||||
• ${Mi.properties.advert.node_name||"Unknown Node"} (${Mi.properties.advert.contact_type})
|
||||
`),we.value.push(pi)},200)};ps()},Fo)},ma=()=>{if(!zt||!re)return;const Ya=zt.getBounds(),ao=Math.floor(zt.getZoom());oe.value.forEach(Ks=>{zt&&Ks.remove()}),oe.value.clear(),we.value.forEach(Ks=>{zt&&Ks.remove()}),we.value.length=0,re.getClusters([Ya.getWest(),Ya.getSouth(),Ya.getEast(),Ya.getNorth()],ao).forEach(Ks=>{const[Fo,$a]=Ks.geometry.coordinates,Ea=Ks.properties;if(Ea.cluster){const ha=Sm.marker([$a,Fo],{icon:Vn(Ea.point_count||0)}).addTo(zt);ha.on("click",()=>{if(zt&&re){const Ai=re.getClusterExpansionZoom(Ea.cluster_id);zt.setView([$a,Fo],Ai)}});const mo=re.getLeaves(Ea.cluster_id,1/0).map(Ai=>`<div style="margin: 2px 0; color: ${Pn[Ai.properties.advert.contact_type]||Pn.Unknown};">
|
||||
• ${Ai.properties.advert.node_name||"Unknown Node"} (${Ai.properties.advert.contact_type})
|
||||
</div>`).join("");ha.bindPopup(`
|
||||
<div class="p-2">
|
||||
<strong style="color: #AAE8E8;">Cluster: ${Ca.point_count} nodes</strong><br>
|
||||
<strong style="color: #AAE8E8;">Cluster: ${Ea.point_count} nodes</strong><br>
|
||||
<div style="max-height: 200px; overflow-y: auto; margin-top: 8px;">
|
||||
${mo}
|
||||
</div>
|
||||
@@ -89,7 +89,7 @@ function SG(d,s){for(var E=0;E<s.length;E++){const B=s[E];if(typeof B!="string"&
|
||||
Click to zoom in and separate nodes
|
||||
</div>
|
||||
</div>
|
||||
`),se.value.set(`cluster-${Ca.cluster_id}`,ha);const Jo=Xn(On,ei,$a,Fo),Oo=Math.min(Math.floor(Jo*5),200),gi={node_name:`Cluster of ${Ca.point_count} nodes`,contact_type:"Cluster",route_type:2,rssi:null,snr:null,jittered_latitude:$a,jittered_longitude:Fo,latitude:$a,longitude:Fo};di(gi,On,ei,"#AAE8E8",Oo)}else{const ha=Ca.advert,oo=Ai[ha.contact_type]||Ai.Unknown,mo=Fn(oo),Jo=$a,Oo=Fo,gi=Xn(On,ei,Jo,Oo),Mi=Sm.marker([Jo,Oo],{icon:mo}).addTo(It).bindPopup(`
|
||||
`),oe.value.set(`cluster-${Ea.cluster_id}`,ha);const Jo=Qn($n,ni,$a,Fo),Oo=Math.min(Math.floor(Jo*5),200),gi={node_name:`Cluster of ${Ea.point_count} nodes`,contact_type:"Cluster",route_type:2,rssi:null,snr:null,jittered_latitude:$a,jittered_longitude:Fo,latitude:$a,longitude:Fo};Hn(gi,$n,ni,"#AAE8E8",Oo)}else{const ha=Ea.advert,oo=Pn[ha.contact_type]||Pn.Unknown,mo=Dn(oo),Jo=$a,Oo=Fo,gi=Qn($n,ni,Jo,Oo),Ai=Sm.marker([Jo,Oo],{icon:mo}).addTo(zt).bindPopup(`
|
||||
<div class="p-2">
|
||||
<strong style="color: ${oo}">${ha.node_name||"Unknown Node"}</strong><br>
|
||||
<span class="text-sm" style="color: #E5E7EB;">Type: ${ha.contact_type}</span><br>
|
||||
@@ -99,46 +99,46 @@ function SG(d,s){for(var E=0;E<s.length;E++){const B=s[E];if(typeof B!="string"&
|
||||
<span class="text-sm" style="color: #E5E7EB;">Last Seen: ${Dr(ha.last_seen)}</span>
|
||||
${ha.jittered_latitude?'<br><span class="text-xs" style="color: #9CA3AF;">Position adjusted to separate overlapping nodes</span>':""}
|
||||
</div>
|
||||
`);jt.value.set(ha.pubkey,Mi),se.value.set(`node-${ha.pubkey}`,Mi);const fi=Math.min(Math.floor(gi*5),200),go={...ha,jittered_latitude:Jo,jittered_longitude:Oo};di(go,On,ei,oo,fi)}})},ml=(Ya,ao)=>{let Wa=0;Qn(B.adverts).forEach(Fo=>{const $a=Fo.properties.advert;if($a.latitude!==null&&$a.longitude!==null){const Ca=Ai[$a.contact_type]||Ai.Unknown,ha=Fn(Ca),oo=$a.jittered_latitude||$a.latitude,mo=$a.jittered_longitude||$a.longitude,Jo=Sm.marker([oo,mo],{icon:ha}).addTo(It).bindPopup(`
|
||||
`);jt.value.set(ha.pubkey,Ai),oe.value.set(`node-${ha.pubkey}`,Ai);const pi=Math.min(Math.floor(gi*5),200),go={...ha,jittered_latitude:Jo,jittered_longitude:Oo};Hn(go,$n,ni,oo,pi)}})},ul=(Ya,ao)=>{let Wa=0;ei(B.adverts).forEach(Fo=>{const $a=Fo.properties.advert;if($a.latitude!==null&&$a.longitude!==null){const Ea=Pn[$a.contact_type]||Pn.Unknown,ha=Dn(Ea),oo=$a.jittered_latitude||$a.latitude,mo=$a.jittered_longitude||$a.longitude,Jo=Sm.marker([oo,mo],{icon:ha}).addTo(zt).bindPopup(`
|
||||
<div class="p-2">
|
||||
<strong style="color: ${Ca}">${$a.node_name||"Unknown Node"}</strong><br>
|
||||
<strong style="color: ${Ea}">${$a.node_name||"Unknown Node"}</strong><br>
|
||||
<span class="text-sm" style="color: #E5E7EB;">Type: ${$a.contact_type}</span><br>
|
||||
<span class="text-sm" style="color: #E5E7EB;">Distance: ${Xn(Ya,ao,oo,mo).toFixed(2)} km</span><br>
|
||||
<span class="text-sm" style="color: #E5E7EB;">Distance: ${Qn(Ya,ao,oo,mo).toFixed(2)} km</span><br>
|
||||
<span class="text-sm" style="color: #E5E7EB;">Signal: ${hn($a.rssi)} / ${Dt($a.snr)}</span><br>
|
||||
<span class="text-sm" style="color: #E5E7EB;">Route: ${on($a.route_type)}</span><br>
|
||||
<span class="text-sm" style="color: #E5E7EB;">Last Seen: ${Dr($a.last_seen)}</span>
|
||||
${$a.jittered_latitude?'<br><span class="text-xs" style="color: #9CA3AF;">Position adjusted to separate overlapping nodes</span>':""}
|
||||
</div>
|
||||
`);jt.value.set($a.pubkey,Jo);const Oo=Jo.getElement();Oo&&(Oo.style.opacity="0",Oo.style.transition="opacity 0.5s ease-out"),di($a,Ya,ao,Ca,Wa),setTimeout(()=>{Oo&&(Oo.style.opacity="1")},Wa+1e3),Wa+=100}})};if(tr.value&&B.adverts.length>0)try{const Ya=Qn(B.adverts);Ri(Ya);const ao=Math.min(14,It.getZoom());It.setZoom(ao),setTimeout(()=>{try{ma()}catch(Wa){console.warn("Error updating clusters:",Wa),ml(On,ei)}},100),It.on("moveend",()=>{try{ma()}catch(Wa){console.warn("Error updating clusters on move:",Wa)}}),It.on("zoomend",()=>{try{ma()}catch(Wa){console.warn("Error updating clusters on zoom:",Wa)}})}catch(Ya){console.warn("Error initializing clustering:",Ya),ml(On,ei)}else ml(On,ei);setTimeout(()=>{It&&It.invalidateSize()},1e3)}catch(Fn){console.error("Error initializing map:",Fn)}};return s({highlightNode:On=>{const ei=jt.value.get(On);if(ei){const Fn=ei.getElement();if(Fn){const Vn=Fn.querySelector("div");Vn&&Vn.classList.add("marker-highlight")}}},unhighlightNode:On=>{const ei=jt.value.get(On);if(ei){const Fn=ei.getElement();if(Fn){const Vn=Fn.querySelector("div");Vn&&Vn.classList.remove("marker-highlight")}}},initializeOpenStreetMap:$i}),Cm(()=>B.adverts,()=>{It&&xr.value&&setTimeout(()=>{$i()},100)},{immediate:!1}),op(()=>{xr.value&&B.adverts.length>0&&setTimeout(()=>{$i()},300)}),Oy(()=>{Hn()}),(On,ei)=>(ii(),mi("div",Pst,[xr.value?(ii(),mi("div",{key:1,ref_key:"mapContainer",ref:_t,class:"leaflet-map-container h-96 w-full bg-dark-card/30 backdrop-blur border border-white/10 rounded-[15px] overflow-hidden",style:{"min-height":"384px",position:"relative"}},null,512)):(ii(),mi("div",Ist,ei[0]||(ei[0]=[Tf('<div class="text-center text-white" data-v-9c7dd490><svg class="w-8 h-8 mx-auto mb-2 text-white/60" fill="currentColor" viewBox="0 0 20 20" data-v-9c7dd490><path d="M5.05 4.05a7 7 0 119.9 9.9L10 18.9l-4.95-4.95a7 7 0 010-9.9zM10 11a2 2 0 100-4 2 2 0 000 4z" data-v-9c7dd490></path></svg><p class="text-sm text-white/90" data-v-9c7dd490>No valid coordinates available</p><p class="text-xs text-white/60" data-v-9c7dd490>Configure base station location to view map</p></div>',1)]))),xr.value&&On.adverts.length>0?(ii(),mi("button",{key:2,onClick:dt,class:"absolute bottom-3 right-3 z-[1001] flex items-center gap-2 px-3 py-2 bg-black/40 border border-white/10 rounded-lg text-white/80 hover:bg-white/10 hover:text-white transition-colors text-sm backdrop-blur-sm"},[ei[1]||(ei[1]=oe("svg",{class:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[oe("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"})],-1)),oe("span",zst,pi(On.showLegend?"Hide":"Show"),1)])):Po("",!0),xr.value&&On.adverts.length>0&&On.showLegend?(ii(),mi("div",Ost,[ei[2]||(ei[2]=Tf('<div class="legend-section" data-v-9c7dd490><div class="legend-subtitle" data-v-9c7dd490>Node Types</div><div class="legend-items" data-v-9c7dd490><div class="legend-item" data-v-9c7dd490><div class="legend-icon" style="background-color:#ef4444;" data-v-9c7dd490></div><span data-v-9c7dd490>Base Station</span></div><div class="legend-item" data-v-9c7dd490><div class="legend-icon" style="background-color:#60A5FA;" data-v-9c7dd490></div><span data-v-9c7dd490>Chat Node</span></div><div class="legend-item" data-v-9c7dd490><div class="legend-icon" style="background-color:#A5E5B6;" data-v-9c7dd490></div><span data-v-9c7dd490>Repeater</span></div><div class="legend-item" data-v-9c7dd490><div class="legend-icon" style="background-color:#EBA0FC;" data-v-9c7dd490></div><span data-v-9c7dd490>Room Server</span></div><div class="legend-item" data-v-9c7dd490><div class="legend-icon" style="background-color:#FFC246;" data-v-9c7dd490></div><span data-v-9c7dd490>Hybrid Node</span></div></div></div><div class="legend-section" data-v-9c7dd490><div class="legend-subtitle" data-v-9c7dd490>Route Types</div><div class="legend-items" data-v-9c7dd490><div class="legend-item" data-v-9c7dd490><div class="legend-line" style="background:#A5E5B6;height:3px;" data-v-9c7dd490></div><span data-v-9c7dd490>Direct</span></div><div class="legend-item" data-v-9c7dd490><div class="legend-line" style="background:#059669;height:4px;" data-v-9c7dd490></div><span data-v-9c7dd490>Transport Direct</span></div><div class="legend-item" data-v-9c7dd490><div class="legend-line legend-line-dashed" style="background:#FFC246;" data-v-9c7dd490></div><span data-v-9c7dd490>Flood</span></div><div class="legend-item" data-v-9c7dd490><div class="legend-line legend-line-dashed" style="background:#ea580c;" data-v-9c7dd490></div><span data-v-9c7dd490>Transport Flood</span></div></div></div>',2)),oe("div",Dst,pi(On.adverts.length)+" node"+pi(On.adverts.length!==1?"s":"")+" visible ",1)])):Po("",!0),xr.value?(ii(),mi("div",Fst," © OpenStreetMap contributors © CARTO ")):Po("",!0)]))}}),Bst=Rf(Rst,[["__scopeId","data-v-9c7dd490"]]),Nst={class:"relative","da
Line truncated
|
||||
`);jt.value.set($a.pubkey,Jo);const Oo=Jo.getElement();Oo&&(Oo.style.opacity="0",Oo.style.transition="opacity 0.5s ease-out"),Hn($a,Ya,ao,Ea,Wa),setTimeout(()=>{Oo&&(Oo.style.opacity="1")},Wa+1e3),Wa+=100}})};if(tr.value&&B.adverts.length>0)try{const Ya=ei(B.adverts);Ri(Ya);const ao=Math.min(14,zt.getZoom());zt.setZoom(ao),setTimeout(()=>{try{ma()}catch(Wa){console.warn("Error updating clusters:",Wa),ul($n,ni)}},100),zt.on("moveend",()=>{try{ma()}catch(Wa){console.warn("Error updating clusters on move:",Wa)}}),zt.on("zoomend",()=>{try{ma()}catch(Wa){console.warn("Error updating clusters on zoom:",Wa)}})}catch(Ya){console.warn("Error initializing clustering:",Ya),ul($n,ni)}else ul($n,ni);setTimeout(()=>{zt&&zt.invalidateSize()},1e3)}catch(Dn){console.error("Error initializing map:",Dn)}};return s({highlightNode:$n=>{const ni=jt.value.get($n);if(ni){const Dn=ni.getElement();if(Dn){const Vn=Dn.querySelector("div");Vn&&Vn.classList.add("marker-highlight")}}},unhighlightNode:$n=>{const ni=jt.value.get($n);if(ni){const Dn=ni.getElement();if(Dn){const Vn=Dn.querySelector("div");Vn&&Vn.classList.remove("marker-highlight")}}},initializeOpenStreetMap:qi}),Em(()=>B.adverts,()=>{zt&&xr.value&&setTimeout(()=>{qi()},100)},{immediate:!1}),sp(()=>{xr.value&&B.adverts.length>0&&setTimeout(()=>{qi()},300)}),Oy(()=>{Wn()}),($n,ni)=>(ii(),fi("div",Pst,[xr.value?(ii(),fi("div",{key:1,ref_key:"mapContainer",ref:_t,class:"leaflet-map-container h-96 w-full bg-dark-card/30 backdrop-blur border border-white/10 rounded-[15px] overflow-hidden",style:{"min-height":"384px",position:"relative"}},null,512)):(ii(),fi("div",zst,ni[0]||(ni[0]=[lf('<div class="text-center text-white" data-v-9c7dd490><svg class="w-8 h-8 mx-auto mb-2 text-white/60" fill="currentColor" viewBox="0 0 20 20" data-v-9c7dd490><path d="M5.05 4.05a7 7 0 119.9 9.9L10 18.9l-4.95-4.95a7 7 0 010-9.9zM10 11a2 2 0 100-4 2 2 0 000 4z" data-v-9c7dd490></path></svg><p class="text-sm text-white/90" data-v-9c7dd490>No valid coordinates available</p><p class="text-xs text-white/60" data-v-9c7dd490>Configure base station location to view map</p></div>',1)]))),xr.value&&$n.adverts.length>0?(ii(),fi("button",{key:2,onClick:dt,class:"absolute bottom-3 right-3 z-[1001] flex items-center gap-2 px-3 py-2 bg-black/40 border border-white/10 rounded-lg text-white/80 hover:bg-white/10 hover:text-white transition-colors text-sm backdrop-blur-sm"},[ni[1]||(ni[1]=ie("svg",{class:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[ie("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"})],-1)),ie("span",Ist,mi($n.showLegend?"Hide":"Show"),1)])):Mo("",!0),xr.value&&$n.adverts.length>0&&$n.showLegend?(ii(),fi("div",Ost,[ni[2]||(ni[2]=lf('<div class="legend-section" data-v-9c7dd490><div class="legend-subtitle" data-v-9c7dd490>Node Types</div><div class="legend-items" data-v-9c7dd490><div class="legend-item" data-v-9c7dd490><div class="legend-icon" style="background-color:#ef4444;" data-v-9c7dd490></div><span data-v-9c7dd490>Base Station</span></div><div class="legend-item" data-v-9c7dd490><div class="legend-icon" style="background-color:#60A5FA;" data-v-9c7dd490></div><span data-v-9c7dd490>Chat Node</span></div><div class="legend-item" data-v-9c7dd490><div class="legend-icon" style="background-color:#A5E5B6;" data-v-9c7dd490></div><span data-v-9c7dd490>Repeater</span></div><div class="legend-item" data-v-9c7dd490><div class="legend-icon" style="background-color:#EBA0FC;" data-v-9c7dd490></div><span data-v-9c7dd490>Room Server</span></div><div class="legend-item" data-v-9c7dd490><div class="legend-icon" style="background-color:#FFC246;" data-v-9c7dd490></div><span data-v-9c7dd490>Hybrid Node</span></div></div></div><div class="legend-section" data-v-9c7dd490><div class="legend-subtitle" data-v-9c7dd490>Route Types</div><div class="legend-items" data-v-9c7dd490><div class="legend-item" data-v-9c7dd490><div class="legend-line" style="background:#A5E5B6;height:3px;" data-v-9c7dd490></div><span data-v-9c7dd490>Direct</span></div><div class="legend-item" data-v-9c7dd490><div class="legend-line" style="background:#059669;height:4px;" data-v-9c7dd490></div><span data-v-9c7dd490>Transport Direct</span></div><div class="legend-item" data-v-9c7dd490><div class="legend-line legend-line-dashed" style="background:#FFC246;" data-v-9c7dd490></div><span data-v-9c7dd490>Flood</span></div><div class="legend-item" data-v-9c7dd490><div class="legend-line legend-line-dashed" style="background:#ea580c;" data-v-9c7dd490></div><span data-v-9c7dd490>Transport Flood</span></div></div></div>',2)),ie("div",Dst,mi($n.adverts.length)+" node"+mi($n.adverts.length!==1?"s":"")+" visible ",1)])):Mo("",!0),xr.value?(ii(),fi("div",Fst," © OpenStreetMap contributors © CARTO ")):Mo("",!0)]))}}),Bst=Rf(Rst,[["__scopeId","data-v-9c7dd490"]]),Nst={class:"relative","da
Line truncated
|
||||
* @kurkle/color v0.3.4
|
||||
* https://github.com/kurkle/color#readme
|
||||
* (c) 2024 Jukka Kurkela
|
||||
* Released under the MIT License
|
||||
*/function lw(d){return d+.5|0}const f1=(d,s,E)=>Math.max(Math.min(d,E),s);function y2(d){return f1(lw(d*2.55),0,255)}function y1(d){return f1(lw(d*255),0,255)}function tv(d){return f1(lw(d/2.55)/100,0,1)}function sP(d){return f1(lw(d*100),0,100)}const sm={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},CA=[..."0123456789ABCDEF"],$lt=d=>CA[d&15],Zlt=d=>CA[(d&240)>>4]+CA[d&15],D5=d=>(d&240)>>4===(d&15),Glt=d=>D5(d.r)&&D5(d.g)&&D5(d.b)&&D5(d.a);function Ylt(d){var s=d.length,E;return d[0]==="#"&&(s===4||s===5?E={r:255&sm[d[1]]*17,g:255&sm[d[2]]*17,b:255&sm[d[3]]*17,a:s===5?sm[d[4]]*17:255}:(s===7||s===9)&&(E={r:sm[d[1]]<<4|sm[d[2]],g:sm[d[3]]<<4|sm[d[4]],b:sm[d[5]]<<4|sm[d[6]],a:s===9?sm[d[7]]<<4|sm[d[8]]:255})),E}const Klt=(d,s)=>d<255?s(d):"";function Xlt(d){var s=Glt(d)?$lt:Zlt;return d?"#"+s(d.r)+s(d.g)+s(d.b)+Klt(d.a,s):void 0}const Jlt=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function aD(d,s,E){const B=s*Math.min(E,1-E),K=(dt,_t=(dt+d/30)%12)=>E-B*Math.max(Math.min(_t-3,9-_t,1),-1);return[K(0),K(8),K(4)]}function Qlt(d,s,E){const B=(K,dt=(K+d/60)%6)=>E-E*s*Math.max(Math.min(dt,4-dt,1),0);return[B(5),B(3),B(1)]}function tut(d,s,E){const B=aD(d,1,.5);let K;for(s+E>1&&(K=1/(s+E),s*=K,E*=K),K=0;K<3;K++)B[K]*=1-s-E,B[K]+=s;return B}function eut(d,s,E,B,K){return d===K?(s-E)/B+(s<E?6:0):s===K?(E-d)/B+2:(d-s)/B+4}function gM(d){const E=d.r/255,B=d.g/255,K=d.b/255,dt=Math.max(E,B,K),_t=Math.min(E,B,K),It=(dt+_t)/2;let jt,re,se;return dt!==_t&&(se=dt-_t,re=It>.5?se/(2-dt-_t):se/(dt+_t),jt=eut(E,B,K,se,dt),jt=jt*60+.5),[jt|0,re||0,It]}function vM(d,s,E,B){return(Array.isArray(s)?d(s[0],s[1],s[2]):d(s,E,B)).map(y1)}function yM(d,s,E){return vM(aD,d,s,E)}function rut(d,s,E){return vM(tut,d,s,E)}function nut(d,s,E){return vM(Qlt,d,s,E)}function oD(d){return(d%360+360)%360}function iut(d){const s=Jlt.exec(d);let E=255,B;if(!s)return;s[5]!==B&&(E=s[6]?y2(+s[5]):y1(+s[5]));const K=oD(+s[2]),dt=+s[3]/100,_t=+s[4]/100;return s[1]==="hwb"?B=rut(K,dt,_t):s[1]==="hsv"?B=nut(K,dt,_t):B=yM(K,dt,_t),{r:B[0],g:B[1],b:B[2],a:E}}function aut(d,s){var E=gM(d);E[0]=oD(E[0]+s),E=yM(E),d.r=E[0],d.g=E[1],d.b=E[2]}function out(d){if(!d)return;const s=gM(d),E=s[0],B=sP(s[1]),K=sP(s[2]);return d.a<255?`hsla(${E}, ${B}%, ${K}%, ${tv(d.a)})`:`hsl(${E}, ${B}%, ${K}%)`}const lP={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},uP={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function sut(){const d={},s=Object.keys(uP),E=Object.keys(lP);let BLine truncated
|
||||
*/function uw(d){return d+.5|0}const f1=(d,s,C)=>Math.max(Math.min(d,C),s);function y2(d){return f1(uw(d*2.55),0,255)}function y1(d){return f1(uw(d*255),0,255)}function tv(d){return f1(uw(d/2.55)/100,0,1)}function sP(d){return f1(uw(d*100),0,100)}const sm={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},LA=[..."0123456789ABCDEF"],nut=d=>LA[d&15],iut=d=>LA[(d&240)>>4]+LA[d&15],F5=d=>(d&240)>>4===(d&15),aut=d=>F5(d.r)&&F5(d.g)&&F5(d.b)&&F5(d.a);function out(d){var s=d.length,C;return d[0]==="#"&&(s===4||s===5?C={r:255&sm[d[1]]*17,g:255&sm[d[2]]*17,b:255&sm[d[3]]*17,a:s===5?sm[d[4]]*17:255}:(s===7||s===9)&&(C={r:sm[d[1]]<<4|sm[d[2]],g:sm[d[3]]<<4|sm[d[4]],b:sm[d[5]]<<4|sm[d[6]],a:s===9?sm[d[7]]<<4|sm[d[8]]:255})),C}const sut=(d,s)=>d<255?s(d):"";function lut(d){var s=aut(d)?nut:iut;return d?"#"+s(d.r)+s(d.g)+s(d.b)+sut(d.a,s):void 0}const uut=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function aD(d,s,C){const B=s*Math.min(C,1-C),K=(dt,_t=(dt+d/30)%12)=>C-B*Math.max(Math.min(_t-3,9-_t,1),-1);return[K(0),K(8),K(4)]}function cut(d,s,C){const B=(K,dt=(K+d/60)%6)=>C-C*s*Math.max(Math.min(dt,4-dt,1),0);return[B(5),B(3),B(1)]}function hut(d,s,C){const B=aD(d,1,.5);let K;for(s+C>1&&(K=1/(s+C),s*=K,C*=K),K=0;K<3;K++)B[K]*=1-s-C,B[K]+=s;return B}function fut(d,s,C,B,K){return d===K?(s-C)/B+(s<C?6:0):s===K?(C-d)/B+2:(d-s)/B+4}function gM(d){const C=d.r/255,B=d.g/255,K=d.b/255,dt=Math.max(C,B,K),_t=Math.min(C,B,K),zt=(dt+_t)/2;let jt,re,oe;return dt!==_t&&(oe=dt-_t,re=zt>.5?oe/(2-dt-_t):oe/(dt+_t),jt=fut(C,B,K,oe,dt),jt=jt*60+.5),[jt|0,re||0,zt]}function vM(d,s,C,B){return(Array.isArray(s)?d(s[0],s[1],s[2]):d(s,C,B)).map(y1)}function yM(d,s,C){return vM(aD,d,s,C)}function dut(d,s,C){return vM(hut,d,s,C)}function put(d,s,C){return vM(cut,d,s,C)}function oD(d){return(d%360+360)%360}function mut(d){const s=uut.exec(d);let C=255,B;if(!s)return;s[5]!==B&&(C=s[6]?y2(+s[5]):y1(+s[5]));const K=oD(+s[2]),dt=+s[3]/100,_t=+s[4]/100;return s[1]==="hwb"?B=dut(K,dt,_t):s[1]==="hsv"?B=put(K,dt,_t):B=yM(K,dt,_t),{r:B[0],g:B[1],b:B[2],a:C}}function gut(d,s){var C=gM(d);C[0]=oD(C[0]+s),C=yM(C),d.r=C[0],d.g=C[1],d.b=C[2]}function vut(d){if(!d)return;const s=gM(d),C=s[0],B=sP(s[1]),K=sP(s[2]);return d.a<255?`hsla(${C}, ${B}%, ${K}%, ${tv(d.a)})`:`hsl(${C}, ${B}%, ${K}%)`}const lP={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},uP={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function yut(){const d={},s=Object.keys(uP),C=Object.keys(lP);let BLine truncated
|
||||
* Chart.js v4.5.1
|
||||
* https://www.chartjs.org
|
||||
* (c) 2025 Chart.js Contributors
|
||||
* Released under the MIT License
|
||||
*/function Kg(){}const put=(()=>{let d=0;return()=>d++})();function Nh(d){return d==null}function Yd(d){if(Array.isArray&&Array.isArray(d))return!0;const s=Object.prototype.toString.call(d);return s.slice(0,7)==="[object"&&s.slice(-6)==="Array]"}function Sc(d){return d!==null&&Object.prototype.toString.call(d)==="[object Object]"}function t0(d){return(typeof d=="number"||d instanceof Number)&&isFinite(+d)}function og(d,s){return t0(d)?d:s}function cc(d,s){return typeof d>"u"?s:d}const mut=(d,s)=>typeof d=="string"&&d.endsWith("%")?parseFloat(d)/100:+d/s,lD=(d,s)=>typeof d=="string"&&d.endsWith("%")?parseFloat(d)/100*s:+d;function Ff(d,s,E){if(d&&typeof d.call=="function")return d.apply(E,s)}function Jh(d,s,E,B){let K,dt,_t;if(Yd(d))for(dt=d.length,K=0;K<dt;K++)s.call(E,d[K],K);else if(Sc(d))for(_t=Object.keys(d),dt=_t.length,K=0;K<dt;K++)s.call(E,d[_t[K]],_t[K])}function x4(d,s){let E,B,K,dt;if(!d||!s||d.length!==s.length)return!1;for(E=0,B=d.length;E<B;++E)if(K=d[E],dt=s[E],K.datasetIndex!==dt.datasetIndex||K.index!==dt.index)return!1;return!0}function _4(d){if(Yd(d))return d.map(_4);if(Sc(d)){const s=Object.create(null),E=Object.keys(d),B=E.length;let K=0;for(;K<B;++K)s[E[K]]=_4(d[E[K]]);return s}return d}function uD(d){return["__proto__","prototype","constructor"].indexOf(d)===-1}function gut(d,s,E,B){if(!uD(d))return;const K=s[d],dt=E[d];Sc(K)&&Sc(dt)?$2(K,dt,B):s[d]=_4(dt)}function $2(d,s,E){const B=Yd(s)?s:[s],K=B.length;if(!Sc(d))return d;E=E||{};const dt=E.merger||gut;let _t;for(let It=0;It<K;++It){if(_t=B[It],!Sc(_t))continue;const jt=Object.keys(_t);for(let re=0,se=jt.length;re<se;++re)dt(jt[re],d,_t,E)}return d}function L2(d,s){return $2(d,s,{merger:vut})}function vut(d,s,E){if(!uD(d))return;const B=s[d],K=E[d];Sc(B)&&Sc(K)?L2(B,K):Object.prototype.hasOwnProperty.call(s,d)||(s[d]=_4(K))}const hP={"":d=>d,x:d=>d.x,y:d=>d.y};function yut(d){const s=d.split("."),E=[];let B="";for(const K of s)B+=K,B.endsWith("\\")?B=B.slice(0,-1)+".":(E.push(B),B="");return E}function xut(d){const s=yut(d);return E=>{for(const B of s){if(B==="")break;E=E&&E[B]}return E}}function Py(d,s){return(hP[s]||(hP[s]=xut(s)))(d)}function xM(d){return d.charAt(0).toUpperCase()+d.slice(1)}const Z2=d=>typeof d<"u",b1=d=>typeof d=="function",fP=(d,s)=>{if(d.size!==s.size)return!1;for(const E of d)if(!s.has(E))return!1;return!0};function _ut(d){return d.type==="mouseup"||d.type==="click"||d.type==="contextmenu"}const Qh=Math.PI,sd=2*Qh,but=sd+Qh,b4=Number.POSITIVE_INFINITY,wut=Qh/180,ip=Qh/2,fy=Qh/4,dP=Qh*2/3,cD=Math.log10,gg=Math.sign;function P2(d,s,E){return Math.abs(d-s)<E}function pP(d){const s=Math.round(d);d=P2(d,s,d/1e3)?s:d;const E=Math.pow(10,Math.floor(cD(d))),B=d/E;return(B<=1?1:B<=2?2:B<=5?5:10)*E}function kut(d){const s=[],E=Math.sqrt(d);let B;for(B=1;B<E;B++)d%B===0&&(s.push(B),s.push(d/B));return E===(E|0)&&s.push(E),s.sort((K,dt)=>K-dt).pop(),s}function Tut(d){return typeof d=="symbol"||typeof d=="object"&&d!==null&&!(Symbol.toPrimitive in d||"toString"in d||"valueOf"in d)}function G2(d){return!Tut(d)&&!isNaN(parseFloat(d))&&isFinite(d)}function Aut(d,s){const E=Math.round(d);return E-s<=d&&E+s>=d}function Mut(d,s,E){let B,K,dt;for(B=0,K=d.length;B<K;B++)dt=d[B][E],isNaN(dt)||(s.min=Math.min(s.min,dt),s.max=Math.max(s.max,dt))}function iv(d){return d*(Qh/180)}function Sut(d){return d*(180/Qh)}function mP(d){if(!t0(d))return;let s=1,E=0;for(;Math.round(d*s)/s!==d;)s*=10,E++;return E}function hD(d,s){const E=s.x-d.x,B=s.y-d.y,K=Math.sqrt(E*E+B*B);let dt=Math.atan2(B,E);return dt<-.5*Qh&&(dt+=sd),{angle:dt,distance:K}}function LA(d,s){return Math.sqrt(Math.pow(s.x-d.x,2)+Math.pow(s.y-d.y,2))}function Eut(d,s){return(d-s+but)%sd-Qh}function $0(d){return(d%sd+sd)%sd}function Y2(d,s,E,B){const K=$0(d),dt=$0(s),_t=$0(E),It=$0(dt-K),jt=$0(_t-K),re=$0(K-dt),se=$0(K-_t);return K===dt||K===_t||B&&dt===_t||It>jt&&re<se}function Jp(d,s,E){return Math.max(s,Math.min(E,d))}function Cut(d){return Jp(d,-32768,32767)}function av(d,s,E,B=1e-6){return d>=Math.min(s,E)-B&&d<=Math.max(s,E)+B}function _M(d,s,E){E=E||(_t=>d[_t]<s);let B=d.length-1,K=0,dt;for(;B-K>1;)dt=K+B>>1,E(dt)?K=dt:B=dt;return{lo:K,hi:B}}const ky=(d,s,E,B)=>_M(d,E,B?K=>{const dt=d[K][s];return dt<E||dt===E&&d[K+1][s]===E}:K=>d[K][s]<E),Lut=(d,s,E)=>_M(d,E,B=>d[B][s]>=E);function Put(d,s,E){let B=0,K=d.length;for(;B<K&&d[B]<s;)B++;for(;K>B&&d[K-1]>E;)K--;return B>0||K<d.length?d.slice(B,K):d}const fD=["push","pop","shift","splice","unshift"];function Iut(d,s){if(d._chartjs){d._chartjs.listeners.push(s);return}Object.defineProperty(d,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[s]}}),fD.forEach(E=>{const B="_onData"+xM(E),K=d[E];Object.defineProperty(d,E,{configurable:!0,enumerable:!1,value(...dt){const _t=K.apply(this,dt);return d._chartjs.listeners.forEach(It=>{typeof It[B]=="function"&&It[B](...dt)}),_t}})})}function gP(d,s){const E=d._chartjs;if(!E)return;const B=E.listeners,K=B.indexOf(s);K!==-1&&B.splice(K,1),!(B.length>0)&&(fD.forEach(dt=>{deleLine truncated
|
||||
*/function Kg(){}const Aut=(()=>{let d=0;return()=>d++})();function Nh(d){return d==null}function Kd(d){if(Array.isArray&&Array.isArray(d))return!0;const s=Object.prototype.toString.call(d);return s.slice(0,7)==="[object"&&s.slice(-6)==="Array]"}function Sc(d){return d!==null&&Object.prototype.toString.call(d)==="[object Object]"}function t0(d){return(typeof d=="number"||d instanceof Number)&&isFinite(+d)}function og(d,s){return t0(d)?d:s}function cc(d,s){return typeof d>"u"?s:d}const Mut=(d,s)=>typeof d=="string"&&d.endsWith("%")?parseFloat(d)/100:+d/s,lD=(d,s)=>typeof d=="string"&&d.endsWith("%")?parseFloat(d)/100*s:+d;function Ff(d,s,C){if(d&&typeof d.call=="function")return d.apply(C,s)}function Jh(d,s,C,B){let K,dt,_t;if(Kd(d))for(dt=d.length,K=0;K<dt;K++)s.call(C,d[K],K);else if(Sc(d))for(_t=Object.keys(d),dt=_t.length,K=0;K<dt;K++)s.call(C,d[_t[K]],_t[K])}function _4(d,s){let C,B,K,dt;if(!d||!s||d.length!==s.length)return!1;for(C=0,B=d.length;C<B;++C)if(K=d[C],dt=s[C],K.datasetIndex!==dt.datasetIndex||K.index!==dt.index)return!1;return!0}function b4(d){if(Kd(d))return d.map(b4);if(Sc(d)){const s=Object.create(null),C=Object.keys(d),B=C.length;let K=0;for(;K<B;++K)s[C[K]]=b4(d[C[K]]);return s}return d}function uD(d){return["__proto__","prototype","constructor"].indexOf(d)===-1}function Sut(d,s,C,B){if(!uD(d))return;const K=s[d],dt=C[d];Sc(K)&&Sc(dt)?Z2(K,dt,B):s[d]=b4(dt)}function Z2(d,s,C){const B=Kd(s)?s:[s],K=B.length;if(!Sc(d))return d;C=C||{};const dt=C.merger||Sut;let _t;for(let zt=0;zt<K;++zt){if(_t=B[zt],!Sc(_t))continue;const jt=Object.keys(_t);for(let re=0,oe=jt.length;re<oe;++re)dt(jt[re],d,_t,C)}return d}function L2(d,s){return Z2(d,s,{merger:Cut})}function Cut(d,s,C){if(!uD(d))return;const B=s[d],K=C[d];Sc(B)&&Sc(K)?L2(B,K):Object.prototype.hasOwnProperty.call(s,d)||(s[d]=b4(K))}const hP={"":d=>d,x:d=>d.x,y:d=>d.y};function Eut(d){const s=d.split("."),C=[];let B="";for(const K of s)B+=K,B.endsWith("\\")?B=B.slice(0,-1)+".":(C.push(B),B="");return C}function Lut(d){const s=Eut(d);return C=>{for(const B of s){if(B==="")break;C=C&&C[B]}return C}}function Py(d,s){return(hP[s]||(hP[s]=Lut(s)))(d)}function xM(d){return d.charAt(0).toUpperCase()+d.slice(1)}const G2=d=>typeof d<"u",b1=d=>typeof d=="function",fP=(d,s)=>{if(d.size!==s.size)return!1;for(const C of d)if(!s.has(C))return!1;return!0};function Put(d){return d.type==="mouseup"||d.type==="click"||d.type==="contextmenu"}const Qh=Math.PI,sd=2*Qh,zut=sd+Qh,w4=Number.POSITIVE_INFINITY,Iut=Qh/180,ap=Qh/2,fy=Qh/4,dP=Qh*2/3,cD=Math.log10,gg=Math.sign;function P2(d,s,C){return Math.abs(d-s)<C}function pP(d){const s=Math.round(d);d=P2(d,s,d/1e3)?s:d;const C=Math.pow(10,Math.floor(cD(d))),B=d/C;return(B<=1?1:B<=2?2:B<=5?5:10)*C}function Out(d){const s=[],C=Math.sqrt(d);let B;for(B=1;B<C;B++)d%B===0&&(s.push(B),s.push(d/B));return C===(C|0)&&s.push(C),s.sort((K,dt)=>K-dt).pop(),s}function Dut(d){return typeof d=="symbol"||typeof d=="object"&&d!==null&&!(Symbol.toPrimitive in d||"toString"in d||"valueOf"in d)}function Y2(d){return!Dut(d)&&!isNaN(parseFloat(d))&&isFinite(d)}function Fut(d,s){const C=Math.round(d);return C-s<=d&&C+s>=d}function Rut(d,s,C){let B,K,dt;for(B=0,K=d.length;B<K;B++)dt=d[B][C],isNaN(dt)||(s.min=Math.min(s.min,dt),s.max=Math.max(s.max,dt))}function iv(d){return d*(Qh/180)}function But(d){return d*(180/Qh)}function mP(d){if(!t0(d))return;let s=1,C=0;for(;Math.round(d*s)/s!==d;)s*=10,C++;return C}function hD(d,s){const C=s.x-d.x,B=s.y-d.y,K=Math.sqrt(C*C+B*B);let dt=Math.atan2(B,C);return dt<-.5*Qh&&(dt+=sd),{angle:dt,distance:K}}function PA(d,s){return Math.sqrt(Math.pow(s.x-d.x,2)+Math.pow(s.y-d.y,2))}function Nut(d,s){return(d-s+zut)%sd-Qh}function $0(d){return(d%sd+sd)%sd}function K2(d,s,C,B){const K=$0(d),dt=$0(s),_t=$0(C),zt=$0(dt-K),jt=$0(_t-K),re=$0(K-dt),oe=$0(K-_t);return K===dt||K===_t||B&&dt===_t||zt>jt&&re<oe}function Jp(d,s,C){return Math.max(s,Math.min(C,d))}function jut(d){return Jp(d,-32768,32767)}function av(d,s,C,B=1e-6){return d>=Math.min(s,C)-B&&d<=Math.max(s,C)+B}function _M(d,s,C){C=C||(_t=>d[_t]<s);let B=d.length-1,K=0,dt;for(;B-K>1;)dt=K+B>>1,C(dt)?K=dt:B=dt;return{lo:K,hi:B}}const ky=(d,s,C,B)=>_M(d,C,B?K=>{const dt=d[K][s];return dt<C||dt===C&&d[K+1][s]===C}:K=>d[K][s]<C),Uut=(d,s,C)=>_M(d,C,B=>d[B][s]>=C);function Vut(d,s,C){let B=0,K=d.length;for(;B<K&&d[B]<s;)B++;for(;K>B&&d[K-1]>C;)K--;return B>0||K<d.length?d.slice(B,K):d}const fD=["push","pop","shift","splice","unshift"];function Hut(d,s){if(d._chartjs){d._chartjs.listeners.push(s);return}Object.defineProperty(d,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[s]}}),fD.forEach(C=>{const B="_onData"+xM(C),K=d[C];Object.defineProperty(d,C,{configurable:!0,enumerable:!1,value(...dt){const _t=K.apply(this,dt);return d._chartjs.listeners.forEach(zt=>{typeof zt[B]=="function"&&zt[B](...dt)}),_t}})})}function gP(d,s){const C=d._chartjs;if(!C)return;const B=C.listeners,K=B.indexOf(s);K!==-1&&B.splice(K,1),!(B.length>0)&&(fD.forEach(dt=>{deleLine truncated
|
||||
* Chart.js v4.5.1
|
||||
* https://www.chartjs.org
|
||||
* (c) 2025 Chart.js Contributors
|
||||
* Released under the MIT License
|
||||
*/class Rct{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(s,E,B,K){const dt=E.listeners[K],_t=E.duration;dt.forEach(It=>It({chart:s,initial:E.initial,numSteps:_t,currentStep:Math.min(B-E.start,_t)}))}_refresh(){this._request||(this._running=!0,this._request=pD.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(s=Date.now()){let E=0;this._charts.forEach((B,K)=>{if(!B.running||!B.items.length)return;const dt=B.items;let _t=dt.length-1,It=!1,jt;for(;_t>=0;--_t)jt=dt[_t],jt._active?(jt._total>B.duration&&(B.duration=jt._total),jt.tick(s),It=!0):(dt[_t]=dt[dt.length-1],dt.pop());It&&(K.draw(),this._notify(K,B,s,"progress")),dt.length||(B.running=!1,this._notify(K,B,s,"complete"),B.initial=!1),E+=dt.length}),this._lastDate=s,E===0&&(this._running=!1)}_getAnims(s){const E=this._charts;let B=E.get(s);return B||(B={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},E.set(s,B)),B}listen(s,E,B){this._getAnims(s).listeners[E].push(B)}add(s,E){!E||!E.length||this._getAnims(s).items.push(...E)}has(s){return this._getAnims(s).items.length>0}start(s){const E=this._charts.get(s);E&&(E.running=!0,E.start=Date.now(),E.duration=E.items.reduce((B,K)=>Math.max(B,K._duration),0),this._refresh())}running(s){if(!this._running)return!1;const E=this._charts.get(s);return!(!E||!E.running||!E.items.length)}stop(s){const E=this._charts.get(s);if(!E||!E.items.length)return;const B=E.items;let K=B.length-1;for(;K>=0;--K)B[K].cancel();E.items=[],this._notify(s,E,Date.now(),"complete")}remove(s){return this._charts.delete(s)}}var Xg=new Rct;const LP="transparent",Bct={boolean(d,s,E){return E>.5?s:d},color(d,s,E){const B=xP(d||LP),K=B.valid&&xP(s||LP);return K&&K.valid?K.mix(B,E).hexString():s},number(d,s,E){return d+(s-d)*E}};class Nct{constructor(s,E,B,K){const dt=E[B];K=N5([s.to,K,dt,s.from]);const _t=N5([s.from,dt,K]);this._active=!0,this._fn=s.fn||Bct[s.type||typeof _t],this._easing=I2[s.easing]||I2.linear,this._start=Math.floor(Date.now()+(s.delay||0)),this._duration=this._total=Math.floor(s.duration),this._loop=!!s.loop,this._target=E,this._prop=B,this._from=_t,this._to=K,this._promises=void 0}active(){return this._active}update(s,E,B){if(this._active){this._notify(!1);const K=this._target[this._prop],dt=B-this._start,_t=this._duration-dt;this._start=B,this._duration=Math.floor(Math.max(_t,s.duration)),this._total+=dt,this._loop=!!s.loop,this._to=N5([s.to,E,K,s.from]),this._from=N5([s.from,K,E])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(s){const E=s-this._start,B=this._duration,K=this._prop,dt=this._from,_t=this._loop,It=this._to;let jt;if(this._active=dt!==It&&(_t||E<B),!this._active){this._target[K]=It,this._notify(!0);return}if(E<0){this._target[K]=dt;return}jt=E/B%2,jt=_t&&jt>1?2-jt:jt,jt=this._easing(Math.min(1,Math.max(0,jt))),this._target[K]=this._fn(dt,It,jt)}wait(){const s=this._promises||(this._promises=[]);return new Promise((E,B)=>{s.push({res:E,rej:B})})}_notify(s){const E=s?"res":"rej",B=this._promises||[];for(let K=0;K<B.length;K++)B[K][E]()}}class LD{constructor(s,E){this._chart=s,this._properties=new Map,this.configure(E)}configure(s){if(!Sc(s))return;const E=Object.keys(Rd.animation),B=this._properties;Object.getOwnPropertyNames(s).forEach(K=>{const dt=s[K];if(!Sc(dt))return;const _t={};for(const It of E)_t[It]=dt[It];(Yd(dt.properties)&&dt.properties||[K]).forEach(It=>{(It===K||!B.has(It))&&B.set(It,_t)})})}_animateOptions(s,E){const B=E.options,K=Uct(s,B);if(!K)return[];const dt=this._createAnimations(K,B);return B.$shared&&jct(s.options.$animations,B).then(()=>{s.options=B},()=>{}),dt}_createAnimations(s,E){const B=this._properties,K=[],dt=s.$animations||(s.$animations={}),_t=Object.keys(E),It=Date.now();let jt;for(jt=_t.length-1;jt>=0;--jt){const re=_t[jt];if(re.charAt(0)==="$")continue;if(re==="options"){K.push(...this._animateOptions(s,E));continue}const se=E[re];let we=dt[re];const tr=B.get(re);if(we)if(tr&&we.active()){we.update(tr,se,It);continue}else we.cancel();if(!tr||!tr.duration){s[re]=se;continue}dt[re]=we=new Nct(tr,s,re,se),K.push(we)}return K}update(s,E){if(this._properties.size===0){Object.assign(s,E);return}const B=this._createAnimations(s,E);if(B.length)return Xg.add(this._chart,B),!0}}function jct(d,s){const E=[],B=Object.keys(s);for(let K=0;K<B.length;K++){const dt=d[B[K]];dt&&dt.active()&&E.push(dt.wait())}return Promise.all(E)}function Uct(d,s){if(!s)return;let E=d.options;if(!E){d.options=s;return}return E.$shared&&(d.options=E=Object.assign({},E,{$shared:!1,$animations:{}})),E}function PP(d,s){const E=d&&d.options||{},B=E.reverse,K=E.min===void 0?s:0,dt=E.max===void 0?s:0;return{start:B?dt:K,end:B?K:dt}}function Vct(d,s,E){if(E===!1)return!1;const B=PP(d,E),K=PP(s,E);return{top:K.end,right:B.end,bottom:K.start,left:B.start}}function Hct(d){let s,E,B,K;return Sc(d)?(s=d.top,E=d.right,B=d.bottom,K=d.left):s=E=B=K=d,{top:s,right:E,bottoLine truncated
|
||||
*/class Gct{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(s,C,B,K){const dt=C.listeners[K],_t=C.duration;dt.forEach(zt=>zt({chart:s,initial:C.initial,numSteps:_t,currentStep:Math.min(B-C.start,_t)}))}_refresh(){this._request||(this._running=!0,this._request=pD.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(s=Date.now()){let C=0;this._charts.forEach((B,K)=>{if(!B.running||!B.items.length)return;const dt=B.items;let _t=dt.length-1,zt=!1,jt;for(;_t>=0;--_t)jt=dt[_t],jt._active?(jt._total>B.duration&&(B.duration=jt._total),jt.tick(s),zt=!0):(dt[_t]=dt[dt.length-1],dt.pop());zt&&(K.draw(),this._notify(K,B,s,"progress")),dt.length||(B.running=!1,this._notify(K,B,s,"complete"),B.initial=!1),C+=dt.length}),this._lastDate=s,C===0&&(this._running=!1)}_getAnims(s){const C=this._charts;let B=C.get(s);return B||(B={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},C.set(s,B)),B}listen(s,C,B){this._getAnims(s).listeners[C].push(B)}add(s,C){!C||!C.length||this._getAnims(s).items.push(...C)}has(s){return this._getAnims(s).items.length>0}start(s){const C=this._charts.get(s);C&&(C.running=!0,C.start=Date.now(),C.duration=C.items.reduce((B,K)=>Math.max(B,K._duration),0),this._refresh())}running(s){if(!this._running)return!1;const C=this._charts.get(s);return!(!C||!C.running||!C.items.length)}stop(s){const C=this._charts.get(s);if(!C||!C.items.length)return;const B=C.items;let K=B.length-1;for(;K>=0;--K)B[K].cancel();C.items=[],this._notify(s,C,Date.now(),"complete")}remove(s){return this._charts.delete(s)}}var Xg=new Gct;const LP="transparent",Yct={boolean(d,s,C){return C>.5?s:d},color(d,s,C){const B=xP(d||LP),K=B.valid&&xP(s||LP);return K&&K.valid?K.mix(B,C).hexString():s},number(d,s,C){return d+(s-d)*C}};class Kct{constructor(s,C,B,K){const dt=C[B];K=j5([s.to,K,dt,s.from]);const _t=j5([s.from,dt,K]);this._active=!0,this._fn=s.fn||Yct[s.type||typeof _t],this._easing=z2[s.easing]||z2.linear,this._start=Math.floor(Date.now()+(s.delay||0)),this._duration=this._total=Math.floor(s.duration),this._loop=!!s.loop,this._target=C,this._prop=B,this._from=_t,this._to=K,this._promises=void 0}active(){return this._active}update(s,C,B){if(this._active){this._notify(!1);const K=this._target[this._prop],dt=B-this._start,_t=this._duration-dt;this._start=B,this._duration=Math.floor(Math.max(_t,s.duration)),this._total+=dt,this._loop=!!s.loop,this._to=j5([s.to,C,K,s.from]),this._from=j5([s.from,K,C])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(s){const C=s-this._start,B=this._duration,K=this._prop,dt=this._from,_t=this._loop,zt=this._to;let jt;if(this._active=dt!==zt&&(_t||C<B),!this._active){this._target[K]=zt,this._notify(!0);return}if(C<0){this._target[K]=dt;return}jt=C/B%2,jt=_t&&jt>1?2-jt:jt,jt=this._easing(Math.min(1,Math.max(0,jt))),this._target[K]=this._fn(dt,zt,jt)}wait(){const s=this._promises||(this._promises=[]);return new Promise((C,B)=>{s.push({res:C,rej:B})})}_notify(s){const C=s?"res":"rej",B=this._promises||[];for(let K=0;K<B.length;K++)B[K][C]()}}class LD{constructor(s,C){this._chart=s,this._properties=new Map,this.configure(C)}configure(s){if(!Sc(s))return;const C=Object.keys(Rd.animation),B=this._properties;Object.getOwnPropertyNames(s).forEach(K=>{const dt=s[K];if(!Sc(dt))return;const _t={};for(const zt of C)_t[zt]=dt[zt];(Kd(dt.properties)&&dt.properties||[K]).forEach(zt=>{(zt===K||!B.has(zt))&&B.set(zt,_t)})})}_animateOptions(s,C){const B=C.options,K=Jct(s,B);if(!K)return[];const dt=this._createAnimations(K,B);return B.$shared&&Xct(s.options.$animations,B).then(()=>{s.options=B},()=>{}),dt}_createAnimations(s,C){const B=this._properties,K=[],dt=s.$animations||(s.$animations={}),_t=Object.keys(C),zt=Date.now();let jt;for(jt=_t.length-1;jt>=0;--jt){const re=_t[jt];if(re.charAt(0)==="$")continue;if(re==="options"){K.push(...this._animateOptions(s,C));continue}const oe=C[re];let we=dt[re];const tr=B.get(re);if(we)if(tr&&we.active()){we.update(tr,oe,zt);continue}else we.cancel();if(!tr||!tr.duration){s[re]=oe;continue}dt[re]=we=new Kct(tr,s,re,oe),K.push(we)}return K}update(s,C){if(this._properties.size===0){Object.assign(s,C);return}const B=this._createAnimations(s,C);if(B.length)return Xg.add(this._chart,B),!0}}function Xct(d,s){const C=[],B=Object.keys(s);for(let K=0;K<B.length;K++){const dt=d[B[K]];dt&&dt.active()&&C.push(dt.wait())}return Promise.all(C)}function Jct(d,s){if(!s)return;let C=d.options;if(!C){d.options=s;return}return C.$shared&&(d.options=C=Object.assign({},C,{$shared:!1,$animations:{}})),C}function PP(d,s){const C=d&&d.options||{},B=C.reverse,K=C.min===void 0?s:0,dt=C.max===void 0?s:0;return{start:B?dt:K,end:B?K:dt}}function Qct(d,s,C){if(C===!1)return!1;const B=PP(d,C),K=PP(s,C);return{top:K.end,right:B.end,bottom:K.start,left:B.start}}function tht(d){let s,C,B,K;return Sc(d)?(s=d.top,C=d.right,B=d.bottom,K=d.left):s=C=B=K=d,{top:s,right:C,bottoLine truncated
|
||||
`)>-1?d.split(`
|
||||
`):d}function sdt(d,s){const{element:E,datasetIndex:B,index:K}=s,dt=d.getDatasetMeta(B).controller,{label:_t,value:It}=dt.getLabelAndValue(K);return{chart:d,label:_t,parsed:dt.getParsed(K),raw:d.data.datasets[B].data[K],formattedValue:It,dataset:dt.getDataset(),dataIndex:K,datasetIndex:B,element:E}}function fI(d,s){const E=d.chart.ctx,{body:B,footer:K,title:dt}=d,{boxWidth:_t,boxHeight:It}=s,jt=Qp(s.bodyFont),re=Qp(s.titleFont),se=Qp(s.footerFont),we=dt.length,tr=K.length,fr=B.length,Mr=fm(s.padding);let xr=Mr.height,Dr=0,hn=B.reduce((Xn,Hn)=>Xn+Hn.before.length+Hn.lines.length+Hn.after.length,0);if(hn+=d.beforeBody.length+d.afterBody.length,we&&(xr+=we*re.lineHeight+(we-1)*s.titleSpacing+s.titleMarginBottom),hn){const Xn=s.displayColors?Math.max(It,jt.lineHeight):jt.lineHeight;xr+=fr*Xn+(hn-fr)*jt.lineHeight+(hn-1)*s.bodySpacing}tr&&(xr+=s.footerMarginTop+tr*se.lineHeight+(tr-1)*s.footerSpacing);let Dt=0;const on=function(Xn){Dr=Math.max(Dr,E.measureText(Xn).width+Dt)};return E.save(),E.font=re.string,Jh(d.title,on),E.font=jt.string,Jh(d.beforeBody.concat(d.afterBody),on),Dt=s.displayColors?_t+2+s.boxPadding:0,Jh(B,Xn=>{Jh(Xn.before,on),Jh(Xn.lines,on),Jh(Xn.after,on)}),Dt=0,E.font=se.string,Jh(d.footer,on),E.restore(),Dr+=Mr.width,{width:Dr,height:xr}}function ldt(d,s){const{y:E,height:B}=s;return E<B/2?"top":E>d.height-B/2?"bottom":"center"}function udt(d,s,E,B){const{x:K,width:dt}=B,_t=E.caretSize+E.caretPadding;if(d==="left"&&K+dt+_t>s.width||d==="right"&&K-dt-_t<0)return!0}function cdt(d,s,E,B){const{x:K,width:dt}=E,{width:_t,chartArea:{left:It,right:jt}}=d;let re="center";return B==="center"?re=K<=(It+jt)/2?"left":"right":K<=dt/2?re="left":K>=_t-dt/2&&(re="right"),udt(re,d,s,E)&&(re="center"),re}function dI(d,s,E){const B=E.yAlign||s.yAlign||ldt(d,E);return{xAlign:E.xAlign||s.xAlign||cdt(d,s,E,B),yAlign:B}}function hdt(d,s){let{x:E,width:B}=d;return s==="right"?E-=B:s==="center"&&(E-=B/2),E}function fdt(d,s,E){let{y:B,height:K}=d;return s==="top"?B+=E:s==="bottom"?B-=K+E:B-=K/2,B}function pI(d,s,E,B){const{caretSize:K,caretPadding:dt,cornerRadius:_t}=d,{xAlign:It,yAlign:jt}=E,re=K+dt,{topLeft:se,topRight:we,bottomLeft:tr,bottomRight:fr}=f_(_t);let Mr=hdt(s,It);const xr=fdt(s,jt,re);return jt==="center"?It==="left"?Mr+=re:It==="right"&&(Mr-=re):It==="left"?Mr-=Math.max(se,tr)+K:It==="right"&&(Mr+=Math.max(we,fr)+K),{x:Jp(Mr,0,B.width-s.width),y:Jp(xr,0,B.height-s.height)}}function $5(d,s,E){const B=fm(E.padding);return s==="center"?d.x+d.width/2:s==="right"?d.x+d.width-B.right:d.x+B.left}function mI(d){return lg([],Jg(d))}function ddt(d,s,E){return Dy(d,{tooltip:s,tooltipItems:E,type:"tooltip"})}function gI(d,s){const E=s&&s.dataset&&s.dataset.tooltip&&s.dataset.tooltip.callbacks;return E?d.override(E):d}const aF={beforeTitle:Kg,title(d){if(d.length>0){const s=d[0],E=s.chart.data.labels,B=E?E.length:0;if(this&&this.options&&this.options.mode==="dataset")return s.dataset.label||"";if(s.label)return s.label;if(B>0&&s.dataIndex<B)return E[s.dataIndex]}return""},afterTitle:Kg,beforeBody:Kg,beforeLabel:Kg,label(d){if(this&&this.options&&this.options.mode==="dataset")return d.label+": "+d.formattedValue||d.formattedValue;let s=d.dataset.label||"";s&&(s+=": ");const E=d.formattedValue;return Nh(E)||(s+=E),s},labelColor(d){const E=d.chart.getDatasetMeta(d.datasetIndex).controller.getStyle(d.dataIndex);return{borderColor:E.borderColor,backgroundColor:E.backgroundColor,borderWidth:E.borderWidth,borderDash:E.borderDash,borderDashOffset:E.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(d){const E=d.chart.getDatasetMeta(d.datasetIndex).controller.getStyle(d.dataIndex);return{pointStyle:E.pointStyle,rotation:E.rotation}},afterLabel:Kg,afterBody:Kg,beforeFooter:Kg,footer:Kg,afterFooter:Kg};function A0(d,s,E,B){const K=d[s].call(E,B);return typeof K>"u"?aF[s].call(E,B):K}class vI extends cv{static positioners=_2;constructor(s){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=s.chart,this.options=s.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(s){this.options=s,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const s=this._cachedAnimations;if(s)return s;const E=this.chart,B=this.options.setContext(this.getContext()),K=B.enabled&&E.options.animation&&B.animations,dt=new LD(this.chart,K);return K._cacheable&&(this._cachedAnimations=Object.freeze(dt)),dt}getContext(){return this.$context||(this.$context=ddt(this.chart.getContext(),this,this._tooltipItems))}getTitle(s,E){const{callbacks:B}=E,K=A0(B
Line truncated
|
||||
`):d}function ydt(d,s){const{element:C,datasetIndex:B,index:K}=s,dt=d.getDatasetMeta(B).controller,{label:_t,value:zt}=dt.getLabelAndValue(K);return{chart:d,label:_t,parsed:dt.getParsed(K),raw:d.data.datasets[B].data[K],formattedValue:zt,dataset:dt.getDataset(),dataIndex:K,datasetIndex:B,element:C}}function fz(d,s){const C=d.chart.ctx,{body:B,footer:K,title:dt}=d,{boxWidth:_t,boxHeight:zt}=s,jt=Qp(s.bodyFont),re=Qp(s.titleFont),oe=Qp(s.footerFont),we=dt.length,tr=K.length,fr=B.length,Mr=fm(s.padding);let xr=Mr.height,Dr=0,hn=B.reduce((Qn,Wn)=>Qn+Wn.before.length+Wn.lines.length+Wn.after.length,0);if(hn+=d.beforeBody.length+d.afterBody.length,we&&(xr+=we*re.lineHeight+(we-1)*s.titleSpacing+s.titleMarginBottom),hn){const Qn=s.displayColors?Math.max(zt,jt.lineHeight):jt.lineHeight;xr+=fr*Qn+(hn-fr)*jt.lineHeight+(hn-1)*s.bodySpacing}tr&&(xr+=s.footerMarginTop+tr*oe.lineHeight+(tr-1)*s.footerSpacing);let Dt=0;const on=function(Qn){Dr=Math.max(Dr,C.measureText(Qn).width+Dt)};return C.save(),C.font=re.string,Jh(d.title,on),C.font=jt.string,Jh(d.beforeBody.concat(d.afterBody),on),Dt=s.displayColors?_t+2+s.boxPadding:0,Jh(B,Qn=>{Jh(Qn.before,on),Jh(Qn.lines,on),Jh(Qn.after,on)}),Dt=0,C.font=oe.string,Jh(d.footer,on),C.restore(),Dr+=Mr.width,{width:Dr,height:xr}}function xdt(d,s){const{y:C,height:B}=s;return C<B/2?"top":C>d.height-B/2?"bottom":"center"}function _dt(d,s,C,B){const{x:K,width:dt}=B,_t=C.caretSize+C.caretPadding;if(d==="left"&&K+dt+_t>s.width||d==="right"&&K-dt-_t<0)return!0}function bdt(d,s,C,B){const{x:K,width:dt}=C,{width:_t,chartArea:{left:zt,right:jt}}=d;let re="center";return B==="center"?re=K<=(zt+jt)/2?"left":"right":K<=dt/2?re="left":K>=_t-dt/2&&(re="right"),_dt(re,d,s,C)&&(re="center"),re}function dz(d,s,C){const B=C.yAlign||s.yAlign||xdt(d,C);return{xAlign:C.xAlign||s.xAlign||bdt(d,s,C,B),yAlign:B}}function wdt(d,s){let{x:C,width:B}=d;return s==="right"?C-=B:s==="center"&&(C-=B/2),C}function kdt(d,s,C){let{y:B,height:K}=d;return s==="top"?B+=C:s==="bottom"?B-=K+C:B-=K/2,B}function pz(d,s,C,B){const{caretSize:K,caretPadding:dt,cornerRadius:_t}=d,{xAlign:zt,yAlign:jt}=C,re=K+dt,{topLeft:oe,topRight:we,bottomLeft:tr,bottomRight:fr}=d_(_t);let Mr=wdt(s,zt);const xr=kdt(s,jt,re);return jt==="center"?zt==="left"?Mr+=re:zt==="right"&&(Mr-=re):zt==="left"?Mr-=Math.max(oe,tr)+K:zt==="right"&&(Mr+=Math.max(we,fr)+K),{x:Jp(Mr,0,B.width-s.width),y:Jp(xr,0,B.height-s.height)}}function Z5(d,s,C){const B=fm(C.padding);return s==="center"?d.x+d.width/2:s==="right"?d.x+d.width-B.right:d.x+B.left}function mz(d){return lg([],Jg(d))}function Tdt(d,s,C){return Dy(d,{tooltip:s,tooltipItems:C,type:"tooltip"})}function gz(d,s){const C=s&&s.dataset&&s.dataset.tooltip&&s.dataset.tooltip.callbacks;return C?d.override(C):d}const aF={beforeTitle:Kg,title(d){if(d.length>0){const s=d[0],C=s.chart.data.labels,B=C?C.length:0;if(this&&this.options&&this.options.mode==="dataset")return s.dataset.label||"";if(s.label)return s.label;if(B>0&&s.dataIndex<B)return C[s.dataIndex]}return""},afterTitle:Kg,beforeBody:Kg,beforeLabel:Kg,label(d){if(this&&this.options&&this.options.mode==="dataset")return d.label+": "+d.formattedValue||d.formattedValue;let s=d.dataset.label||"";s&&(s+=": ");const C=d.formattedValue;return Nh(C)||(s+=C),s},labelColor(d){const C=d.chart.getDatasetMeta(d.datasetIndex).controller.getStyle(d.dataIndex);return{borderColor:C.borderColor,backgroundColor:C.backgroundColor,borderWidth:C.borderWidth,borderDash:C.borderDash,borderDashOffset:C.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(d){const C=d.chart.getDatasetMeta(d.datasetIndex).controller.getStyle(d.dataIndex);return{pointStyle:C.pointStyle,rotation:C.rotation}},afterLabel:Kg,afterBody:Kg,beforeFooter:Kg,footer:Kg,afterFooter:Kg};function A0(d,s,C,B){const K=d[s].call(C,B);return typeof K>"u"?aF[s].call(C,B):K}class vz extends cv{static positioners=_2;constructor(s){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=s.chart,this.options=s.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(s){this.options=s,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const s=this._cachedAnimations;if(s)return s;const C=this.chart,B=this.options.setContext(this.getContext()),K=B.enabled&&C.options.animation&&B.animations,dt=new LD(this.chart,K);return K._cacheable&&(this._cachedAnimations=Object.freeze(dt)),dt}getContext(){return this.$context||(this.$context=Tdt(this.chart.getContext(),this,this._tooltipItems))}getTitle(s,C){const{callbacks:B}=C,K=A0(B
Line truncated
|
||||
* chartjs-adapter-date-fns v3.0.0
|
||||
* https://www.chartjs.org
|
||||
* (c) 2022 chartjs-adapter-date-fns Contributors
|
||||
* Released under the MIT license
|
||||
*/const amt={datetime:"MMM d, yyyy, h:mm:ss aaaa",millisecond:"h:mm:ss.SSS aaaa",second:"h:mm:ss aaaa",minute:"h:mm aaaa",hour:"ha",day:"MMM d",week:"PP",month:"MMM yyyy",quarter:"qqq - yyyy",year:"yyyy"};FD._date.override({_id:"date-fns",formats:function(){return amt},parse:function(d,s){if(d===null||typeof d>"u")return null;const E=typeof d;return E==="number"||d instanceof Date?d=Wu(d):E==="string"&&(typeof s=="string"?d=B0t(d,s,new Date,this.options):d=H0t(d,this.options)),fF(d)?d.getTime():null},format:function(d,s){return jpt(d,s,this.options)},add:function(d,s,E){switch(E){case"millisecond":return IM(d,s);case"second":return Cdt(d,s);case"minute":return Sdt(d,s);case"hour":return Tdt(d,s);case"day":return n6(d,s);case"week":return Ldt(d,s);case"month":return PM(d,s);case"quarter":return Edt(d,s);case"year":return Pdt(d,s);default:return d}},diff:function(d,s,E){switch(E){case"millisecond":return zM(d,s);case"second":return Ndt(d,s);case"minute":return Fdt(d,s);case"hour":return Ddt(d,s);case"day":return dF(d,s);case"week":return jdt(d,s);case"month":return gF(d,s);case"quarter":return Bdt(d,s);case"year":return Udt(d,s);default:return 0}},startOf:function(d,s,E){switch(s){case"second":return V0t(d);case"minute":return U0t(d);case"hour":return j0t(d);case"day":return RA(d);case"week":return vg(d);case"isoWeek":return vg(d,{weekStartsOn:+E});case"month":return Hdt(d);case"quarter":return Vdt(d);case"year":return vF(d);default:return d}},endOf:function(d,s){switch(s){case"second":return Ydt(d);case"minute":return Zdt(d);case"hour":return qdt(d);case"day":return pF(d);case"week":return $dt(d);case"month":return mF(d);case"quarter":return Gdt(d);case"year":return Wdt(d);default:return d}}});var o4={exports:{}},omt=o4.exports,PI;function smt(){return PI||(PI=1,function(d){var s={};(function(E,B){d.exports?d.exports=B():E.moduleName=B()})(typeof self<"u"?self:omt,()=>{var E=(()=>{var B=Object.create,K=Object.defineProperty,dt=Object.defineProperties,_t=Object.getOwnPropertyDescriptor,It=Object.getOwnPropertyDescriptors,jt=Object.getOwnPropertyNames,re=Object.getOwnPropertySymbols,se=Object.getPrototypeOf,we=Object.prototype.hasOwnProperty,tr=Object.prototype.propertyIsEnumerable,fr=(Q,Z,c)=>Z in Q?K(Q,Z,{enumerable:!0,configurable:!0,writable:!0,value:c}):Q[Z]=c,Mr=(Q,Z)=>{for(var c in Z||(Z={}))we.call(Z,c)&&fr(Q,c,Z[c]);if(re)for(var c of re(Z))tr.call(Z,c)&&fr(Q,c,Z[c]);return Q},xr=(Q,Z)=>dt(Q,It(Z)),Dr=(Q,Z)=>{var c={};for(var g in Q)we.call(Q,g)&&Z.indexOf(g)<0&&(c[g]=Q[g]);if(Q!=null&&re)for(var g of re(Q))Z.indexOf(g)<0&&tr.call(Q,g)&&(c[g]=Q[g]);return c},hn=(Q,Z)=>()=>(Q&&(Z=Q(Q=0)),Z),Dt=(Q,Z)=>()=>(Z||Q((Z={exports:{}}).exports,Z),Z.exports),on=(Q,Z)=>{for(var c in Z)K(Q,c,{get:Z[c],enumerable:!0})},Xn=(Q,Z,c,g)=>{if(Z&&typeof Z=="object"||typeof Z=="function")for(let I of jt(Z))!we.call(Q,I)&&I!==c&&K(Q,I,{get:()=>Z[I],enumerable:!(g=_t(Z,I))||g.enumerable});return Q},Hn=(Q,Z,c)=>(c=Q!=null?B(se(Q)):{},Xn(K(c,"default",{value:Q,enumerable:!0}),Q)),Qn=Q=>Xn(K({},"__esModule",{value:!0}),Q),Ri=Dt(Q=>{Q.version="3.2.0"}),$i=Dt((Q,Z)=>{(function(c,g,I){g[c]=g[c]||I(),typeof Z<"u"&&Z.exports&&(Z.exports=g[c])})("Promise",typeof window<"u"?window:Q,function(){var c,g,I,S=Object.prototype.toString,t=typeof setImmediate<"u"?function(T){return setImmediate(T)}:setTimeout;try{Object.defineProperty({},"x",{}),c=function(T,u,b,_){return Object.defineProperty(T,u,{value:b,writable:!0,configurable:_!==!1})}}catch{c=function(u,b,_){return u[b]=_,u}}I=function(){var T,u,b;function _(P,M){this.fn=P,this.self=M,this.next=void 0}return{add:function(P,M){b=new _(P,M),u?u.next=b:T=b,u=b,b=void 0},drain:function(){var P=T;for(T=u=g=void 0;P;)P.fn.call(P.self),P=P.next}}}();function e(T,u){I.add(T,u),g||(g=t(I.drain))}function r(T){var u,b=typeof T;return T!=null&&(b=="object"||b=="function")&&(u=T.then),typeof u=="function"?u:!1}function a(){for(var T=0;T<this.chain.length;T++)n(this,this.state===1?this.chain[T].success:this.chain[T].failure,this.chain[T]);this.chain.length=0}function n(T,u,b){var _,P;try{u===!1?b.reject(T.msg):(u===!0?_=T.msg:_=u.call(void 0,T.msg),_===b.promise?b.reject(TypeError("Promise-chain cycle")):(P=r(_))?P.call(_,b.resolve,b.reject):b.resolve(_))}catch(M){b.reject(M)}}function o(T){var u,b=this;if(!b.triggered){b.triggered=!0,b.def&&(b=b.def);try{(u=r(T))?e(function(){var _=new f(b);try{u.call(T,function(){o.apply(_,arguments)},function(){i.apply(_,arguments)})}catch(P){i.call(_,P)}}):(b.msg=T,b.state=1,b.chain.length>0&&e(a,b))}catch(_){i.call(new f(b),_)}}}function i(T){var u=this;u.triggered||(u.triggered=!0,u.def&&(u=u.def),u.msg=T,u.state=2,u.chain.length>0&&e(a,u))}function l(T,u,b,_){for(var P=0;P<u.length;P++)(function(M){T.resolve(u[M]).then(function(C){b(M,C)},_)})(P)}function f(T){this.def=T,this.triggered=!1}function x(T){this.promise=T,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function y(T){if(typeof T!="function")throw TypeError("Not a function");if(this.Line truncated
|
||||
]`),Ee=At.charCodeAt(0);function Ie(rn,Jr,xn){arguments.length<3&&(xn=Jr,Jr=null);var zn=Hr(rn,Ut,Jr==null?Ne:sr(Jr),xn);return zn.row=function(Dn){return arguments.length?zn.response((Jr=Dn)==null?Ne:sr(Dn)):Jr},zn}function Ne(rn){return Ie.parse(rn.responseText)}function sr(rn){return function(Jr){return Ie.parse(Jr.responseText,rn)}}Ie.parse=function(rn,Jr){var xn;return Ie.parseRows(rn,function(zn,Dn){if(xn)return xn(zn,Dn-1);var qi=function(Wn){for(var Si={},zi=zn.length,ji=0;ji<zi;++ji)Si[zn[ji]]=Wn[ji];return Si};xn=Jr?function(Wn,Si){return Jr(qi(Wn),Si)}:qi})},Ie.parseRows=function(rn,Jr){var xn={},zn={},Dn=[],qi=rn.length,Wn=0,Si=0,zi,ji;function Ki(){if(Wn>=qi)return zn;if(ji)return ji=!1,xn;var Va=Wn;if(rn.charCodeAt(Va)===34){for(var qa=Va;qa++<qi;)if(rn.charCodeAt(qa)===34){if(rn.charCodeAt(qa+1)!==34)break;++qa}Wn=qa+2;var lo=rn.charCodeAt(qa+1);return lo===13?(ji=!0,rn.charCodeAt(qa+2)===10&&++Wn):lo===10&&(ji=!0),rn.slice(Va+1,qa).replace(/""/g,'"')}for(;Wn<qi;){var lo=rn.charCodeAt(Wn++),zo=1;if(lo===10)ji=!0;else if(lo===13)ji=!0,rn.charCodeAt(Wn)===10&&(++Wn,++zo);else if(lo!==Ee)continue;return rn.slice(Va,Wn-zo)}return rn.slice(Va)}for(;(zi=Ki())!==zn;){for(var ti=[];zi!==xn&&zi!==zn;)ti.push(zi),zi=Ki();Jr&&(ti=Jr(ti,Si++))==null||Dn.push(ti)}return Dn},Ie.format=function(rn){if(Array.isArray(rn[0]))return Ie.formatRows(rn);var Jr=new j,xn=[];return rn.forEach(function(zn){for(var Dn in zn)Jr.has(Dn)||xn.push(Jr.add(Dn))}),[xn.map(Er).join(At)].concat(rn.map(function(zn){return xn.map(function(Dn){return Er(zn[Dn])}).join(At)})).join(`
|
||||
`)},Ie.formatRows=function(rn){return rn.map(ar).join(`
|
||||
`)};function ar(rn){return rn.map(Er).join(At)}function Er(rn){return he.test(rn)?'"'+rn.replace(/\"/g,'""')+'"':rn}return Ie},c.csv=c.dsv(",","text/csv"),c.tsv=c.dsv(" ","text/tab-separated-values");var ni,Pn,En,Yn,Pa=this[F(this,"requestAnimationFrame")]||function(At){setTimeout(At,17)};c.timer=function(){Wi.apply(this,arguments)};function Wi(At,Ut,he){var Ee=arguments.length;Ee<2&&(Ut=0),Ee<3&&(he=Date.now());var Ie=he+Ut,Ne={c:At,t:Ie,n:null};return Pn?Pn.n=Ne:ni=Ne,Pn=Ne,En||(Yn=clearTimeout(Yn),En=1,Pa(ro)),Ne}function ro(){var At=eo(),Ut=Bo()-At;Ut>24?(isFinite(Ut)&&(clearTimeout(Yn),Yn=setTimeout(ro,Ut)),En=0):(En=1,Pa(ro))}c.timer.flush=function(){eo(),Bo()};function eo(){for(var At=Date.now(),Ut=ni;Ut;)At>=Ut.t&&Ut.c(At-Ut.t)&&(Ut.c=null),Ut=Ut.n;return At}function Bo(){for(var At,Ut=ni,he=1/0;Ut;)Ut.c?(Ut.t<he&&(he=Ut.t),Ut=(At=Ut).n):Ut=At?At.n=Ut.n:ni=Ut.n;return Pn=At,he}c.round=function(At,Ut){return Ut?Math.round(At*(Ut=Math.pow(10,Ut)))/Ut:Math.round(At)},c.geom={};function xo(At){return At[0]}function No(At){return At[1]}c.geom.hull=function(At){var Ut=xo,he=No;if(arguments.length)return Ee(At);function Ee(Ie){if(Ie.length<3)return[];var Ne=Le(Ut),sr=Le(he),ar,Er=Ie.length,rn=[],Jr=[];for(ar=0;ar<Er;ar++)rn.push([+Ne.call(this,Ie[ar],ar),+sr.call(this,Ie[ar],ar),ar]);for(rn.sort(xs),ar=0;ar<Er;ar++)Jr.push([rn[ar][0],-rn[ar][1]]);var xn=Da(rn),zn=Da(Jr),Dn=zn[0]===xn[0],qi=zn[zn.length-1]===xn[xn.length-1],Wn=[];for(ar=xn.length-1;ar>=0;--ar)Wn.push(Ie[rn[xn[ar]][2]]);for(ar=+Dn;ar<zn.length-qi;++ar)Wn.push(Ie[rn[zn[ar]][2]]);return Wn}return Ee.x=function(Ie){return arguments.length?(Ut=Ie,Ee):Ut},Ee.y=function(Ie){return arguments.length?(he=Ie,Ee):he},Ee};function Da(At){for(var Ut=At.length,he=[0,1],Ee=2,Ie=2;Ie<Ut;Ie++){for(;Ee>1&&Ue(At[he[Ee-2]],At[he[Ee-1]],At[Ie])<=0;)--Ee;he[Ee++]=Ie}return he.slice(0,Ee)}function xs(At,Ut){return At[0]-Ut[0]||At[1]-Ut[1]}c.geom.polygon=function(At){return tt(At,ss),At};var ss=c.geom.polygon.prototype=[];ss.area=function(){for(var At=-1,Ut=this.length,he,Ee=this[Ut-1],Ie=0;++At<Ut;)he=Ee,Ee=this[At],Ie+=he[1]*Ee[0]-he[0]*Ee[1];return Ie*.5},ss.centroid=function(At){var Ut=-1,he=this.length,Ee=0,Ie=0,Ne,sr=this[he-1],ar;for(arguments.length||(At=-1/(6*this.area()));++Ut<he;)Ne=sr,sr=this[Ut],ar=Ne[0]*sr[1]-sr[0]*Ne[1],Ee+=(Ne[0]+sr[0])*ar,Ie+=(Ne[1]+sr[1])*ar;return[Ee*At,Ie*At]},ss.clip=function(At){for(var Ut,he=Ys(At),Ee=-1,Ie=this.length-Ys(this),Ne,sr,ar=this[Ie-1],Er,rn,Jr;++Ee<Ie;){for(Ut=At.slice(),At.length=0,Er=this[Ee],rn=Ut[(sr=Ut.length-he)-1],Ne=-1;++Ne<sr;)Jr=Ut[Ne],ul(Jr,ar,Er)?(ul(rn,ar,Er)||At.push(Yo(rn,Jr,ar,Er)),At.push(Jr)):ul(rn,ar,Er)&&At.push(Yo(rn,Jr,ar,Er)),rn=Jr;he&&At.push(At[0]),ar=Er}return At};function ul(At,Ut,he){return(he[0]-Ut[0])*(At[1]-Ut[1])<(he[1]-Ut[1])*(At[0]-Ut[0])}function Yo(At,Ut,he,Ee){var Ie=At[0],Ne=he[0],sr=Ut[0]-Ie,ar=Ee[0]-Ne,Er=At[1],rn=he[1],Jr=Ut[1]-Er,xn=Ee[1]-rn,zn=(ar*(Er-rn)-xn*(Ie-Ne))/(xn*sr-ar*Jr);return[Ie+zn*sr,Er+zn*Jr]}function Ys(At){var Ut=At[0],he=At[At.length-1];return!(Ut[0]-he[0]||Ut[1]-he[1])}var ls,cl,Qs,jl=[],cs,Ls,Io=[];function Ts(){bl(this),this.edge=this.site=this.circle=null}function kl(At){var Ut=jl.pop()||new Ts;return Ut.site=At,Ut}function ql(At){Pl(At),Qs.remove(At),jl.push(At),bl(At)}function Jl(At){var Ut=At.circle,he=Ut.x,Ee=Ut.cy,Ie={x:he,y:Ee},Ne=At.P,sr=At.N,ar=[At];ql(At);for(var Er=Ne;Er.circle&&u(he-Er.circle.x)<ne&&u(Ee-Er.circle.cy)<ne;)Ne=Er.P,ar.unshift(Er),ql(Er),Er=Ne;ar.unshift(Er),Pl(Er);for(var rn=sr;rn.circle&&u(he-rn.circle.x)<ne&&u(Ee-rn.circle.cy)<ne;)sr=rn.N,ar.push(rn),ql(rn),rn=sr;ar.push(rn),Pl(rn);var Jr=ar.length,xn;for(xn=1;xn<Jr;++xn)rn=ar[xn],Er=ar[xn-1],rs(rn.edge,Er.site,rn.site,Ie);Er=ar[0],rn=ar[Jr-1],rn.edge=ou(Er.site,rn.site,null,Ie),al(Er),al(rn)}function js(At){for(var Ut=At.x,he=At.y,Ee,Ie,Ne,sr,ar=Qs._;ar;)if(Ne=Ia(ar,he)-Ut,Ne>ne)ar=ar.L;else if(sr=Ut-vo(ar,he),sr>ne){if(!ar.R){Ee=ar;break}ar=ar.R}else{Ne>-ne?(Ee=ar.P,Ie=ar):sr>-ne?(Ee=ar,Ie=ar.N):Ee=Ie=ar;break}var Er=kl(At);if(Qs.insert(Ee,Er),!(!Ee&&!Ie)){if(Ee===Ie){Pl(Ee),Ie=kl(Ee.site),Qs.insert(Er,Ie),Er.edge=Ie.edge=ou(Ee.site,Er.site),al(Ee),al(Ie);return}if(!Ie){Er.edge=ou(Ee.site,Er.site);return}Pl(Ee),Pl(Ie);var rn=Ee.site,Jr=rn.x,xn=rn.y,zn=At.x-Jr,Dn=At.y-xn,qi=Ie.site,Wn=qi.x-Jr,Si=qi.y-xn,zi=2*(zn*Si-Dn*Wn),ji=zn*zn+Dn*Dn,Ki=Wn*Wn+Si*Si,ti={x:(Si*ji-Dn*Ki)/zi+Jr,y:(zn*Ki-Wn*ji)/zi+xn};rs(Ie.edge,rn,qi,ti),Er.edge=ou(rn,At,null,ti),Ie.edge=ou(At,qi,null,ti),al(Ee),al(Ie)}}function Ia(At,Ut){var he=At.site,Ee=he.x,Ie=he.y,Ne=Ie-Ut;if(!Ne)return Ee;var sr=At.P;if(!sr)return-1/0;he=sr.site;var ar=he.x,Er=he.y,rn=Er-Ut;if(!rn)return ar;var Jr=ar-Ee,xn=1/Ne-1/rn,zn=Jr/rn;return xn?(-zn+Math.sqrt(zn*zn-2*xn*(Jr*Jr/(-2*rn)-Er+rn/2+Ie-Ne/2)))/xn+Ee:(Ee+ar)/2}function vo(At,Ut){var he=At.N;if(he)return Ia(he,Ut);var Ee=At.site;return Ee.y===Ut?Ee.x:1/0}function Ws(At){this.site=At,this.edges=[]}Ws.prototype.prepare=function(){for(var At=this.edges,Ut=At.length,he;Ut
Line truncated
|
||||
*/const gmt={datetime:"MMM d, yyyy, h:mm:ss aaaa",millisecond:"h:mm:ss.SSS aaaa",second:"h:mm:ss aaaa",minute:"h:mm aaaa",hour:"ha",day:"MMM d",week:"PP",month:"MMM yyyy",quarter:"qqq - yyyy",year:"yyyy"};FD._date.override({_id:"date-fns",formats:function(){return gmt},parse:function(d,s){if(d===null||typeof d>"u")return null;const C=typeof d;return C==="number"||d instanceof Date?d=Wu(d):C==="string"&&(typeof s=="string"?d=Y0t(d,s,new Date,this.options):d=tmt(d,this.options)),fF(d)?d.getTime():null},format:function(d,s){return Xpt(d,s,this.options)},add:function(d,s,C){switch(C){case"millisecond":return zM(d,s);case"second":return jdt(d,s);case"minute":return Bdt(d,s);case"hour":return Ddt(d,s);case"day":return a6(d,s);case"week":return Udt(d,s);case"month":return PM(d,s);case"quarter":return Ndt(d,s);case"year":return Vdt(d,s);default:return d}},diff:function(d,s,C){switch(C){case"millisecond":return IM(d,s);case"second":return Kdt(d,s);case"minute":return Zdt(d,s);case"hour":return $dt(d,s);case"day":return dF(d,s);case"week":return Xdt(d,s);case"month":return gF(d,s);case"quarter":return Ydt(d,s);case"year":return Jdt(d,s);default:return 0}},startOf:function(d,s,C){switch(s){case"second":return Q0t(d);case"minute":return J0t(d);case"hour":return X0t(d);case"day":return BA(d);case"week":return vg(d);case"isoWeek":return vg(d,{weekStartsOn:+C});case"month":return tpt(d);case"quarter":return Qdt(d);case"year":return vF(d);default:return d}},endOf:function(d,s){switch(s){case"second":return opt(d);case"minute":return ipt(d);case"hour":return rpt(d);case"day":return pF(d);case"week":return npt(d);case"month":return mF(d);case"quarter":return apt(d);case"year":return ept(d);default:return d}}});var s4={exports:{}},vmt=s4.exports,Pz;function ymt(){return Pz||(Pz=1,function(d){var s={};(function(C,B){d.exports?d.exports=B():C.moduleName=B()})(typeof self<"u"?self:vmt,()=>{var C=(()=>{var B=Object.create,K=Object.defineProperty,dt=Object.defineProperties,_t=Object.getOwnPropertyDescriptor,zt=Object.getOwnPropertyDescriptors,jt=Object.getOwnPropertyNames,re=Object.getOwnPropertySymbols,oe=Object.getPrototypeOf,we=Object.prototype.hasOwnProperty,tr=Object.prototype.propertyIsEnumerable,fr=(Q,Z,c)=>Z in Q?K(Q,Z,{enumerable:!0,configurable:!0,writable:!0,value:c}):Q[Z]=c,Mr=(Q,Z)=>{for(var c in Z||(Z={}))we.call(Z,c)&&fr(Q,c,Z[c]);if(re)for(var c of re(Z))tr.call(Z,c)&&fr(Q,c,Z[c]);return Q},xr=(Q,Z)=>dt(Q,zt(Z)),Dr=(Q,Z)=>{var c={};for(var g in Q)we.call(Q,g)&&Z.indexOf(g)<0&&(c[g]=Q[g]);if(Q!=null&&re)for(var g of re(Q))Z.indexOf(g)<0&&tr.call(Q,g)&&(c[g]=Q[g]);return c},hn=(Q,Z)=>()=>(Q&&(Z=Q(Q=0)),Z),Dt=(Q,Z)=>()=>(Z||Q((Z={exports:{}}).exports,Z),Z.exports),on=(Q,Z)=>{for(var c in Z)K(Q,c,{get:Z[c],enumerable:!0})},Qn=(Q,Z,c,g)=>{if(Z&&typeof Z=="object"||typeof Z=="function")for(let z of jt(Z))!we.call(Q,z)&&z!==c&&K(Q,z,{get:()=>Z[z],enumerable:!(g=_t(Z,z))||g.enumerable});return Q},Wn=(Q,Z,c)=>(c=Q!=null?B(oe(Q)):{},Qn(K(c,"default",{value:Q,enumerable:!0}),Q)),ei=Q=>Qn(K({},"__esModule",{value:!0}),Q),Ri=Dt(Q=>{Q.version="3.2.0"}),qi=Dt((Q,Z)=>{(function(c,g,z){g[c]=g[c]||z(),typeof Z<"u"&&Z.exports&&(Z.exports=g[c])})("Promise",typeof window<"u"?window:Q,function(){var c,g,z,S=Object.prototype.toString,t=typeof setImmediate<"u"?function(T){return setImmediate(T)}:setTimeout;try{Object.defineProperty({},"x",{}),c=function(T,u,b,_){return Object.defineProperty(T,u,{value:b,writable:!0,configurable:_!==!1})}}catch{c=function(u,b,_){return u[b]=_,u}}z=function(){var T,u,b;function _(P,M){this.fn=P,this.self=M,this.next=void 0}return{add:function(P,M){b=new _(P,M),u?u.next=b:T=b,u=b,b=void 0},drain:function(){var P=T;for(T=u=g=void 0;P;)P.fn.call(P.self),P=P.next}}}();function e(T,u){z.add(T,u),g||(g=t(z.drain))}function r(T){var u,b=typeof T;return T!=null&&(b=="object"||b=="function")&&(u=T.then),typeof u=="function"?u:!1}function a(){for(var T=0;T<this.chain.length;T++)n(this,this.state===1?this.chain[T].success:this.chain[T].failure,this.chain[T]);this.chain.length=0}function n(T,u,b){var _,P;try{u===!1?b.reject(T.msg):(u===!0?_=T.msg:_=u.call(void 0,T.msg),_===b.promise?b.reject(TypeError("Promise-chain cycle")):(P=r(_))?P.call(_,b.resolve,b.reject):b.resolve(_))}catch(M){b.reject(M)}}function o(T){var u,b=this;if(!b.triggered){b.triggered=!0,b.def&&(b=b.def);try{(u=r(T))?e(function(){var _=new f(b);try{u.call(T,function(){o.apply(_,arguments)},function(){i.apply(_,arguments)})}catch(P){i.call(_,P)}}):(b.msg=T,b.state=1,b.chain.length>0&&e(a,b))}catch(_){i.call(new f(b),_)}}}function i(T){var u=this;u.triggered||(u.triggered=!0,u.def&&(u=u.def),u.msg=T,u.state=2,u.chain.length>0&&e(a,u))}function l(T,u,b,_){for(var P=0;P<u.length;P++)(function(M){T.resolve(u[M]).then(function(E){b(M,E)},_)})(P)}function f(T){this.def=T,this.triggered=!1}function x(T){this.promise=T,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function y(T){if(typeof T!="function")throw TypeError("Not a function");if(this.Line truncated
|
||||
]`),Ce=At.charCodeAt(0);function ze(en,Xr,xn){arguments.length<3&&(xn=Xr,Xr=null);var On=Hr(en,Ut,Xr==null?Ne:sr(Xr),xn);return On.row=function(Fn){return arguments.length?On.response((Xr=Fn)==null?Ne:sr(Fn)):Xr},On}function Ne(en){return ze.parse(en.responseText)}function sr(en){return function(Xr){return ze.parse(Xr.responseText,en)}}ze.parse=function(en,Xr){var xn;return ze.parseRows(en,function(On,Fn){if(xn)return xn(On,Fn-1);var Zi=function(qn){for(var Mi={},Ii=On.length,Ui=0;Ui<Ii;++Ui)Mi[On[Ui]]=qn[Ui];return Mi};xn=Xr?function(qn,Mi){return Xr(Zi(qn),Mi)}:Zi})},ze.parseRows=function(en,Xr){var xn={},On={},Fn=[],Zi=en.length,qn=0,Mi=0,Ii,Ui;function Xi(){if(qn>=Zi)return On;if(Ui)return Ui=!1,xn;var Va=qn;if(en.charCodeAt(Va)===34){for(var qa=Va;qa++<Zi;)if(en.charCodeAt(qa)===34){if(en.charCodeAt(qa+1)!==34)break;++qa}qn=qa+2;var lo=en.charCodeAt(qa+1);return lo===13?(Ui=!0,en.charCodeAt(qa+2)===10&&++qn):lo===10&&(Ui=!0),en.slice(Va+1,qa).replace(/""/g,'"')}for(;qn<Zi;){var lo=en.charCodeAt(qn++),Io=1;if(lo===10)Ui=!0;else if(lo===13)Ui=!0,en.charCodeAt(qn)===10&&(++qn,++Io);else if(lo!==Ce)continue;return en.slice(Va,qn-Io)}return en.slice(Va)}for(;(Ii=Xi())!==On;){for(var ri=[];Ii!==xn&&Ii!==On;)ri.push(Ii),Ii=Xi();Xr&&(ri=Xr(ri,Mi++))==null||Fn.push(ri)}return Fn},ze.format=function(en){if(Array.isArray(en[0]))return ze.formatRows(en);var Xr=new j,xn=[];return en.forEach(function(On){for(var Fn in On)Xr.has(Fn)||xn.push(Xr.add(Fn))}),[xn.map(Cr).join(At)].concat(en.map(function(On){return xn.map(function(Fn){return Cr(On[Fn])}).join(At)})).join(`
|
||||
`)},ze.formatRows=function(en){return en.map(ar).join(`
|
||||
`)};function ar(en){return en.map(Cr).join(At)}function Cr(en){return he.test(en)?'"'+en.replace(/\"/g,'""')+'"':en}return ze},c.csv=c.dsv(",","text/csv"),c.tsv=c.dsv(" ","text/tab-separated-values");var oi,zn,Cn,Xn,Pa=this[F(this,"requestAnimationFrame")]||function(At){setTimeout(At,17)};c.timer=function(){$i.apply(this,arguments)};function $i(At,Ut,he){var Ce=arguments.length;Ce<2&&(Ut=0),Ce<3&&(he=Date.now());var ze=he+Ut,Ne={c:At,t:ze,n:null};return zn?zn.n=Ne:oi=Ne,zn=Ne,Cn||(Xn=clearTimeout(Xn),Cn=1,Pa(ro)),Ne}function ro(){var At=eo(),Ut=Bo()-At;Ut>24?(isFinite(Ut)&&(clearTimeout(Xn),Xn=setTimeout(ro,Ut)),Cn=0):(Cn=1,Pa(ro))}c.timer.flush=function(){eo(),Bo()};function eo(){for(var At=Date.now(),Ut=oi;Ut;)At>=Ut.t&&Ut.c(At-Ut.t)&&(Ut.c=null),Ut=Ut.n;return At}function Bo(){for(var At,Ut=oi,he=1/0;Ut;)Ut.c?(Ut.t<he&&(he=Ut.t),Ut=(At=Ut).n):Ut=At?At.n=Ut.n:oi=Ut.n;return zn=At,he}c.round=function(At,Ut){return Ut?Math.round(At*(Ut=Math.pow(10,Ut)))/Ut:Math.round(At)},c.geom={};function _o(At){return At[0]}function No(At){return At[1]}c.geom.hull=function(At){var Ut=_o,he=No;if(arguments.length)return Ce(At);function Ce(ze){if(ze.length<3)return[];var Ne=Le(Ut),sr=Le(he),ar,Cr=ze.length,en=[],Xr=[];for(ar=0;ar<Cr;ar++)en.push([+Ne.call(this,ze[ar],ar),+sr.call(this,ze[ar],ar),ar]);for(en.sort(xs),ar=0;ar<Cr;ar++)Xr.push([en[ar][0],-en[ar][1]]);var xn=Da(en),On=Da(Xr),Fn=On[0]===xn[0],Zi=On[On.length-1]===xn[xn.length-1],qn=[];for(ar=xn.length-1;ar>=0;--ar)qn.push(ze[en[xn[ar]][2]]);for(ar=+Fn;ar<On.length-Zi;++ar)qn.push(ze[en[On[ar]][2]]);return qn}return Ce.x=function(ze){return arguments.length?(Ut=ze,Ce):Ut},Ce.y=function(ze){return arguments.length?(he=ze,Ce):he},Ce};function Da(At){for(var Ut=At.length,he=[0,1],Ce=2,ze=2;ze<Ut;ze++){for(;Ce>1&&Ue(At[he[Ce-2]],At[he[Ce-1]],At[ze])<=0;)--Ce;he[Ce++]=ze}return he.slice(0,Ce)}function xs(At,Ut){return At[0]-Ut[0]||At[1]-Ut[1]}c.geom.polygon=function(At){return tt(At,ss),At};var ss=c.geom.polygon.prototype=[];ss.area=function(){for(var At=-1,Ut=this.length,he,Ce=this[Ut-1],ze=0;++At<Ut;)he=Ce,Ce=this[At],ze+=he[1]*Ce[0]-he[0]*Ce[1];return ze*.5},ss.centroid=function(At){var Ut=-1,he=this.length,Ce=0,ze=0,Ne,sr=this[he-1],ar;for(arguments.length||(At=-1/(6*this.area()));++Ut<he;)Ne=sr,sr=this[Ut],ar=Ne[0]*sr[1]-sr[0]*Ne[1],Ce+=(Ne[0]+sr[0])*ar,ze+=(Ne[1]+sr[1])*ar;return[Ce*At,ze*At]},ss.clip=function(At){for(var Ut,he=Ys(At),Ce=-1,ze=this.length-Ys(this),Ne,sr,ar=this[ze-1],Cr,en,Xr;++Ce<ze;){for(Ut=At.slice(),At.length=0,Cr=this[Ce],en=Ut[(sr=Ut.length-he)-1],Ne=-1;++Ne<sr;)Xr=Ut[Ne],cl(Xr,ar,Cr)?(cl(en,ar,Cr)||At.push(Yo(en,Xr,ar,Cr)),At.push(Xr)):cl(en,ar,Cr)&&At.push(Yo(en,Xr,ar,Cr)),en=Xr;he&&At.push(At[0]),ar=Cr}return At};function cl(At,Ut,he){return(he[0]-Ut[0])*(At[1]-Ut[1])<(he[1]-Ut[1])*(At[0]-Ut[0])}function Yo(At,Ut,he,Ce){var ze=At[0],Ne=he[0],sr=Ut[0]-ze,ar=Ce[0]-Ne,Cr=At[1],en=he[1],Xr=Ut[1]-Cr,xn=Ce[1]-en,On=(ar*(Cr-en)-xn*(ze-Ne))/(xn*sr-ar*Xr);return[ze+On*sr,Cr+On*Xr]}function Ys(At){var Ut=At[0],he=At[At.length-1];return!(Ut[0]-he[0]||Ut[1]-he[1])}var ls,hl,Qs,jl=[],cs,Ls,zo=[];function Ts(){bl(this),this.edge=this.site=this.circle=null}function kl(At){var Ut=jl.pop()||new Ts;return Ut.site=At,Ut}function ql(At){Pl(At),Qs.remove(At),jl.push(At),bl(At)}function Jl(At){var Ut=At.circle,he=Ut.x,Ce=Ut.cy,ze={x:he,y:Ce},Ne=At.P,sr=At.N,ar=[At];ql(At);for(var Cr=Ne;Cr.circle&&u(he-Cr.circle.x)<ne&&u(Ce-Cr.circle.cy)<ne;)Ne=Cr.P,ar.unshift(Cr),ql(Cr),Cr=Ne;ar.unshift(Cr),Pl(Cr);for(var en=sr;en.circle&&u(he-en.circle.x)<ne&&u(Ce-en.circle.cy)<ne;)sr=en.N,ar.push(en),ql(en),en=sr;ar.push(en),Pl(en);var Xr=ar.length,xn;for(xn=1;xn<Xr;++xn)en=ar[xn],Cr=ar[xn-1],rs(en.edge,Cr.site,en.site,ze);Cr=ar[0],en=ar[Xr-1],en.edge=ou(Cr.site,en.site,null,ze),al(Cr),al(en)}function js(At){for(var Ut=At.x,he=At.y,Ce,ze,Ne,sr,ar=Qs._;ar;)if(Ne=za(ar,he)-Ut,Ne>ne)ar=ar.L;else if(sr=Ut-vo(ar,he),sr>ne){if(!ar.R){Ce=ar;break}ar=ar.R}else{Ne>-ne?(Ce=ar.P,ze=ar):sr>-ne?(Ce=ar,ze=ar.N):Ce=ze=ar;break}var Cr=kl(At);if(Qs.insert(Ce,Cr),!(!Ce&&!ze)){if(Ce===ze){Pl(Ce),ze=kl(Ce.site),Qs.insert(Cr,ze),Cr.edge=ze.edge=ou(Ce.site,Cr.site),al(Ce),al(ze);return}if(!ze){Cr.edge=ou(Ce.site,Cr.site);return}Pl(Ce),Pl(ze);var en=Ce.site,Xr=en.x,xn=en.y,On=At.x-Xr,Fn=At.y-xn,Zi=ze.site,qn=Zi.x-Xr,Mi=Zi.y-xn,Ii=2*(On*Mi-Fn*qn),Ui=On*On+Fn*Fn,Xi=qn*qn+Mi*Mi,ri={x:(Mi*Ui-Fn*Xi)/Ii+Xr,y:(On*Xi-qn*Ui)/Ii+xn};rs(ze.edge,en,Zi,ri),Cr.edge=ou(en,At,null,ri),ze.edge=ou(At,Zi,null,ri),al(Ce),al(ze)}}function za(At,Ut){var he=At.site,Ce=he.x,ze=he.y,Ne=ze-Ut;if(!Ne)return Ce;var sr=At.P;if(!sr)return-1/0;he=sr.site;var ar=he.x,Cr=he.y,en=Cr-Ut;if(!en)return ar;var Xr=ar-Ce,xn=1/Ne-1/en,On=Xr/en;return xn?(-On+Math.sqrt(On*On-2*xn*(Xr*Xr/(-2*en)-Cr+en/2+ze-Ne/2)))/xn+Ce:(Ce+ar)/2}function vo(At,Ut){var he=At.N;if(he)return za(he,Ut);var Ce=At.site;return Ce.y===Ut?Ce.x:1/0}function Ws(At){this.site=At,this.edges=[]}Ws.prototype.prepare=function(){for(var At=this.edges,Ut=At.length,he;Ut
Line truncated
|
||||
`+q.year;else return O(V,F)+`
|
||||
`+w(q.dayMonthYear,V,U,W);return w(H,V,U,W)};var j=3*e;Q.incrementMonth=function(V,H,F){F=v(F)&&F;var U=I(V,e);if(V=Math.round(V-U),F)try{var W=Math.round(V/e)+o,q=i.getComponentMethod("calendars","getCal")(F),J=q.fromJD(W);return H%12?q.add(J,H,"m"):q.add(J,H/12,"y"),(J.toJD()-o)*e+U}catch{g.error("invalid ms "+V+" in calendar "+F)}var lt=new Date(V+j);return lt.setUTCMonth(lt.getUTCMonth()+H)+U-j},Q.findExactDates=function(V,H){for(var F=0,U=0,W=0,q=0,J,lt,yt=v(H)&&i.getComponentMethod("calendars","getCal")(H),mt=0;mt<V.length;mt++){if(lt=V[mt],!c(lt)){q++;continue}if(!(lt%e))if(yt)try{J=yt.fromJD(lt/e+o),J.day()===1?J.month()===1?F++:U++:W++}catch{}else J=new Date(lt),J.getUTCDate()===1?J.getUTCMonth()===0?F++:U++:W++}U+=F,W+=U;var st=V.length-q;return{exactYears:F/st,exactMonths:U/st,exactDays:W/st}}}),T1=Dt((Q,Z)=>{Z.exports=function(c){return c}}),C_=Dt(Q=>{var Z=Vn(),c=is(),g=T1(),I=sa().BADNUM,S=1e-9;Q.findBin=function(n,o,i){if(Z(o.start))return i?Math.ceil((n-o.start)/o.size-S)-1:Math.floor((n-o.start)/o.size+S);var l=0,f=o.length,x=0,y=f>1?(o[f-1]-o[0])/(f-1):1,v,T;for(y>=0?T=i?t:e:T=i?a:r,n+=y*S*(i?-1:1)*(y>=0?1:-1);l<f&&x++<100;)v=Math.floor((l+f)/2),T(o[v],n)?l=v+1:f=v;return x>90&&c.log("Long binary search..."),l-1};function t(n,o){return n<o}function e(n,o){return n<=o}function r(n,o){return n>o}function a(n,o){return n>=o}Q.sorterAsc=function(n,o){return n-o},Q.sorterDes=function(n,o){return o-n},Q.distinctVals=function(n){var o=n.slice();o.sort(Q.sorterAsc);var i;for(i=o.length-1;i>-1&&o[i]===I;i--);for(var l=o[i]-o[0]||1,f=l/(i||1)/1e4,x=[],y,v=0;v<=i;v++){var T=o[v],u=T-y;y===void 0?(x.push(T),y=T):u>f&&(l=Math.min(l,u),x.push(T),y=T)}return{vals:x,minDiff:l}},Q.roundUp=function(n,o,i){for(var l=0,f=o.length-1,x,y=0,v=i?0:1,T=i?1:0,u=i?Math.ceil:Math.floor;l<f&&y++<100;)x=u((l+f)/2),o[x]<=n?l=x+v:f=x-T;return o[l]},Q.sort=function(n,o){for(var i=0,l=0,f=1;f<n.length;f++){var x=o(n[f],n[f-1]);if(x<0?i=1:x>0&&(l=1),i&&l)return n.sort(o)}return l?n:n.reverse()},Q.findIndexOfMin=function(n,o){o=o||g;for(var i=1/0,l,f=0;f<n.length;f++){var x=o(n[f]);x<i&&(i=x,l=f)}return l}}),K0=Dt((Q,Z)=>{Z.exports=function(c){return Object.keys(c).sort()}}),m6=Dt(Q=>{var Z=Vn(),c=ma().isArrayOrTypedArray;Q.aggNums=function(g,I,S,t){var e,r;if((!t||t>S.length)&&(t=S.length),Z(I)||(I=!1),c(S[0])){for(r=new Array(t),e=0;e<t;e++)r[e]=Q.aggNums(g,I,S[e]);S=r}for(e=0;e<t;e++)Z(I)?Z(S[e])&&(I=g(+I,+S[e])):I=S[e];return I},Q.len=function(g){return Q.aggNums(function(I){return I+1},0,g)},Q.mean=function(g,I){return I||(I=Q.len(g)),Q.aggNums(function(S,t){return S+t},0,g)/I},Q.geometricMean=function(g,I){return I||(I=Q.len(g)),Math.pow(Q.aggNums(function(S,t){return S*t},1,g),1/I)},Q.midRange=function(g){if(!(g===void 0||g.length===0))return(Q.aggNums(Math.max,null,g)+Q.aggNums(Math.min,null,g))/2},Q.variance=function(g,I,S){return I||(I=Q.len(g)),Z(S)||(S=Q.mean(g,I)),Q.aggNums(function(t,e){return t+Math.pow(e-S,2)},0,g)/I},Q.stdev=function(g,I,S){return Math.sqrt(Q.variance(g,I,S))},Q.median=function(g){var I=g.slice().sort();return Q.interp(I,.5)},Q.interp=function(g,I){if(!Z(I))throw"n should be a finite number";if(I=I*g.length-.5,I<0)return g[0];if(I>g.length-1)return g[g.length-1];var S=I%1;return S*g[Math.ceil(I)]+(1-S)*g[Math.floor(I)]}}),g6=Dt((Q,Z)=>{var c=Fo(),g=c.mod,I=c.modHalf,S=Math.PI,t=2*S;function e(T){return T/180*S}function r(T){return T/S*180}function a(T){return Math.abs(T[1]-T[0])>t-1e-14}function n(T,u){return I(u-T,t)}function o(T,u){return Math.abs(n(T,u))}function i(T,u){if(a(u))return!0;var b,_;u[0]<u[1]?(b=u[0],_=u[1]):(b=u[1],_=u[0]),b=g(b,t),_=g(_,t),b>_&&(_+=t);var P=g(T,t),M=P+t;return P>=b&&P<=_||M>=b&&M<=_}function l(T,u,b,_){if(!i(u,_))return!1;var P,M;return b[0]<b[1]?(P=b[0],M=b[1]):(P=b[1],M=b[0]),T>=P&&T<=M}function f(T,u,b,_,P,M,C){P=P||0,M=M||0;var A=a([b,_]),h,p,k,w,R;A?(h=0,p=S,k=t):b<_?(h=b,k=_):(h=_,k=b),T<u?(w=T,R=u):(w=u,R=T);function O(F,U){return[F*Math.cos(U)+P,M-F*Math.sin(U)]}var j=Math.abs(k-h)<=S?0:1;function V(F,U,W){return"A"+[F,F]+" "+[0,j,W]+" "+O(F,U)}var H;return A?w===null?H="M"+O(R,h)+V(R,p,0)+V(R,k,0)+"Z":H="M"+O(w,h)+V(w,p,0)+V(w,k,0)+"ZM"+O(R,h)+V(R,p,1)+V(R,k,1)+"Z":w===null?(H="M"+O(R,h)+V(R,k,0),C&&(H+="L0,0Z")):H="M"+O(w,h)+"L"+O(R,h)+V(R,k,0)+"L"+O(w,k)+V(w,h,1)+"Z",H}function x(T,u,b,_,P){return f(null,T,u,b,_,P,0)}function y(T,u,b,_,P){return f(null,T,u,b,_,P,1)}function v(T,u,b,_,P,M){return f(T,u,b,_,P,M,1)}Z.exports={deg2rad:e,rad2deg:r,angleDelta:n,angleDist:o,isFullCircle:a,isAngleInsideSector:i,isPtInsideSector:l,pathArc:x,pathSector:y,pathAnnulus:v}}),v6=Dt(Q=>{Q.isLeftAnchor=function(Z){return Z.xanchor==="left"||Z.xanchor==="auto"&&Z.x<=1/3},Q.isCenterAnchor=function(Z){return Z.xanchor==="center"||Z.xanchor==="auto"&&Z.x>1/3&&Z.x<2/3},Q.isRightAnchor=function(Z){return Z.xanchor==="right"||Z.xanchor==="auto"&&Z.x>=2/3},Q.isTopAnchor=function(Z){return Z.yanchor==="top"||Z.yanchor==="auto"&&Z.y>=2/3},Q.isMiddleAnchor=function(Z){retur
Line truncated
|
||||
`);if(sn!==-1&&(mn=Yr.substr(sn+1),Yr=Yr.substr(0,sn)),$r&&(mn!==void 0&&(Yr==="00:00:00"||Yr==="00:00")?(Yr=mn,mn=""):Yr.length===8&&(Yr=Yr.replace(/:00$/,""))),mn)if(Br)Gr==="d"?Yr+=", "+mn:Yr=mn+(Yr?", "+Yr:"");else if(!Oe._inCalcTicks||Oe._prevDateHead!==mn)Oe._prevDateHead=mn,Yr+="<br>"+mn;else{var Le=Vi(Oe),pr=Oe._trueSide||Oe.side;(!Le&&pr==="top"||Le&&pr==="bottom")&&(Yr+="<br> ")}ze.text=Yr}function nn(Oe,ze,Br,$r,Gr){var Nr=Oe.dtick,Yr=ze.x,mn=Oe.tickformat,sn=typeof Nr=="string"&&Nr.charAt(0);if(Gr==="never"&&(Gr=""),$r&&sn!=="L"&&(Nr="L3",sn="L"),mn||sn==="L")ze.text=qe(Math.pow(10,Yr),Oe,Gr,$r);else if(g(Nr)||sn==="D"&&(Oe.minorloglabels==="complete"||t.mod(Yr+.01,1)<.1)){Oe.minorloglabels==="complete"&&!(t.mod(Yr+.01,1)<.1)&&(ze.fontSize*=.75);var Le=Math.pow(10,Yr).toExponential(0),pr=Le.split("e"),Hr=+pr[1],_n=Math.abs(Hr),Bn=Oe.exponentformat;Bn==="power"||ee(Bn)&&Bn!=="SI extended"&&ce(Hr)||ee(Bn)&&Bn==="SI extended"&&Te(Hr)?(ze.text=pr[0],_n>0&&(ze.text+="x10"),ze.text==="1x10"&&(ze.text="10"),Hr!==0&&Hr!==1&&(ze.text+="<sup>"+(Hr>0?"":j)+_n+"</sup>"),ze.fontSize*=1.25):(Bn==="e"||Bn==="E")&&_n>2?ze.text=pr[0]+Bn+(Hr>0?"+":j)+_n:(ze.text=qe(Math.pow(10,Yr),Oe,"","fakehover"),Nr==="D1"&&Oe._id.charAt(0)==="y"&&(ze.dy-=ze.fontSize/6))}else if(sn==="D")ze.text=Oe.minorloglabels==="none"?"":String(Math.round(Math.pow(10,t.mod(Yr,1)))),ze.fontSize*=.75;else throw"unrecognized dtick "+String(Nr);if(Oe.dtick==="D1"){var ni=String(ze.text).charAt(0);(ni==="0"||ni==="1")&&(Oe._id.charAt(0)==="y"?ze.dx-=ze.fontSize/4:(ze.dy+=ze.fontSize/2,ze.dx+=(Oe.range[1]>Oe.range[0]?1:-1)*ze.fontSize*(Yr<0?.5:.25)))}}function Pe(Oe,ze){var Br=Oe._categories[Math.round(ze.x)];Br===void 0&&(Br=""),ze.text=String(Br)}function Gt(Oe,ze,Br){var $r=Math.round(ze.x),Gr=Oe._categories[$r]||[],Nr=Gr[1]===void 0?"":String(Gr[1]),Yr=Gr[0]===void 0?"":String(Gr[0]);Br?ze.text=Yr+" - "+Nr:(ze.text=Nr,ze.text2=Yr)}function ne(Oe,ze,Br,$r,Gr){Gr==="never"?Gr="":Oe.showexponent==="all"&&Math.abs(ze.x/Oe.dtick)<1e-6&&(Gr="hide"),ze.text=qe(ze.x,Oe,Gr,$r)}function Ct(Oe,ze,Br,$r,Gr){if(Oe.thetaunit==="radians"&&!Br){var Nr=ze.x/180;if(Nr===0)ze.text="0";else{var Yr=gt(Nr);if(Yr[1]>=100)ze.text=qe(t.deg2rad(ze.x),Oe,Gr,$r);else{var mn=ze.x<0;Yr[1]===1?Yr[0]===1?ze.text="π":ze.text=Yr[0]+"π":ze.text=["<sup>",Yr[0],"</sup>","⁄","<sub>",Yr[1],"</sub>","π"].join(""),mn&&(ze.text=j+ze.text)}}}else ze.text=qe(ze.x,Oe,Gr,$r)}function gt(Oe){function ze(mn,sn){return Math.abs(mn-sn)<=1e-6}function Br(mn,sn){return ze(sn,0)?mn:Br(sn,mn%sn)}function $r(mn){for(var sn=1;!ze(Math.round(mn*sn)/sn,mn);)sn*=10;return sn}var Gr=$r(Oe),Nr=Oe*Gr,Yr=Math.abs(Br(Nr,Gr));return[Math.round(Nr/Yr),Math.round(Gr/Yr)]}var St=["f","p","n","μ","m","","k","M","G","T"],Nt=["q","r","y","z","a",...St,"P","E","Z","Y","R","Q"],ee=Oe=>["SI","SI extended","B"].includes(Oe);function ce(Oe){return Oe>14||Oe<-15}function Te(Oe){return Oe>32||Oe<-30}function Ue(Oe,ze){return ee(ze)?!!(ze==="SI extended"&&Te(Oe)||ze!=="SI extended"&&ce(Oe)):!1}function qe(Oe,ze,Br,$r){var Gr=Oe<0,Nr=ze._tickround,Yr=Br||ze.exponentformat||"B",mn=ze._tickexponent,sn=rt.getTickFormat(ze),Le=ze.separatethousands;if($r){var pr={exponentformat:Yr,minexponent:ze.minexponent,dtick:ze.showexponent==="none"?ze.dtick:g(Oe)&&Math.abs(Oe)||1,range:ze.showexponent==="none"?ze.range.map(ze.r2d):[0,Oe||1]};Wr(pr),Nr=(Number(pr._tickround)||0)+4,mn=pr._tickexponent,ze.hoverformat&&(sn=ze.hoverformat)}if(sn)return ze._numFormat(sn)(Oe).replace(/-/g,j);var Hr=Math.pow(10,-Nr)/2;if(Yr==="none"&&(mn=0),Oe=Math.abs(Oe),Oe<Hr)Oe="0",Gr=!1;else{if(Oe+=Hr,mn&&(Oe*=Math.pow(10,-mn),Nr+=mn),Nr===0)Oe=String(Math.floor(Oe));else if(Nr<0){Oe=String(Math.round(Oe)),Oe=Oe.substr(0,Oe.length+Nr);for(var _n=Nr;_n<0;_n++)Oe+="0"}else{Oe=String(Oe);var Bn=Oe.indexOf(".")+1;Bn&&(Oe=Oe.substr(0,Bn+Nr).replace(/\.?0+$/,""))}Oe=t.numSeparate(Oe,ze._separators,Le)}if(mn&&Yr!=="hide"){Ue(mn,Yr)&&(Yr="power");var ni;mn<0?ni=j+-mn:Yr!=="power"?ni="+"+mn:ni=String(mn),Yr==="e"||Yr==="E"?Oe+=Yr+ni:Yr==="power"?Oe+="×10<sup>"+ni+"</sup>":Yr==="B"&&mn===9?Oe+="B":ee(Yr)&&(Oe+=Yr==="SI extended"?Nt[mn/3+10]:St[mn/3+5])}return Gr?j+Oe:Oe}rt.getTickFormat=function(Oe){var ze;function Br(sn){return typeof sn!="string"?sn:Number(sn.replace("M",""))*P}function $r(sn,Le){var pr=["L","D"];if(typeof sn==typeof Le){if(typeof sn=="number")return sn-Le;var Hr=pr.indexOf(sn.charAt(0)),_n=pr.indexOf(Le.charAt(0));return Hr===_n?Number(sn.replace(/(L|D)/g,""))-Number(Le.replace(/(L|D)/g,"")):Hr-_n}else return typeof sn=="number"?1:-1}function Gr(sn,Le,pr){var Hr=pr||function(ni){return ni},_n=Le[0],Bn=Le[1];return(!_n&&typeof _n!="number"||Hr(_n)<=Hr(sn))&&(!Bn&&typeof Bn!="number"||Hr(Bn)>=Hr(sn))}function Nr(sn,Le){var pr=Le[0]===null,Hr=Le[1]===null,_n=$r(sn,Le[0])>=0,Bn=$r(sn,Le[1])<=0;return(pr||_n)&&(Hr||Bn)}var Yr,mn;if(Oe.tickformatstops&&Oe.tickformatstops.length>0)switch(Oe.type){case"date":case"linear":{for(ze=0;ze<Oe.tickform
Line truncated
|
||||
`));var de;yt.med!==t?de=yt.med:yt.q1!==t?yt.q3!==t?de=(yt.q1+yt.q3)/2:de=yt.q1:yt.q3!==t?de=yt.q3:de=0,yt.med=de,yt.q1=yt.q3=de,yt.lf=yt.uf=de,yt.mean=yt.sd=de,yt.ln=yt.un=de,yt.min=yt.max=de}Y=Math.min(Y,yt.min),ft=Math.max(ft,yt.max),yt.pts2=mt.filter(at),h.push(yt)}}P._extremes[R._id]=g.findExtremes(R,[Y,ft],{padded:!0})}else{var me=R.makeCalcdata(P,O),ue=a(J,lt),Tt=J.length,Lt=n(Tt);for(k=0;k<P._length;k++)if(rt=me[k],!!c(rt)){var Mt=S.findBin(U[k],ue);Mt>=0&&Mt<Tt&&(pt={v:rt,i:k},i(pt,P,k),Lt[Mt].push(pt))}var te=1/0,ye=-1/0,le=P.quartilemethod,Me=le==="exclusive",He=le==="inclusive";for(k=0;k<Tt;k++)if(Lt[k].length>0){if(yt={},yt.pos=yt[V]=J[k],mt=yt.pts=Lt[k].sort(f),st=yt[O]=mt.map(x),tt=st.length,yt.min=st[0],yt.max=st[tt-1],yt.mean=S.mean(st,tt),yt.sd=S.stdev(st,tt,yt.mean)*P.sdmultiple,yt.med=S.interp(st,.5),tt%2&&(Me||He)){var Ge,cr;Me?(Ge=st.slice(0,tt/2),cr=st.slice(tt/2+1)):He&&(Ge=st.slice(0,tt/2+1),cr=st.slice(tt/2)),yt.q1=S.interp(Ge,.5),yt.q3=S.interp(cr,.5)}else yt.q1=S.interp(st,.25),yt.q3=S.interp(st,.75);yt.lf=y(yt,st,tt),yt.uf=v(yt,st,tt),yt.lo=T(yt),yt.uo=u(yt);var ur=b(yt,tt);yt.ln=yt.med-ur,yt.un=yt.med+ur,te=Math.min(te,yt.ln),ye=Math.max(ye,yt.un),yt.pts2=mt.filter(at),h.push(yt)}P.notched&&S.isTypedArray(me)&&(me=Array.from(me)),P._extremes[R._id]=g.findExtremes(R,P.notched?me.concat([te,ye]):me,{padded:!0})}return l(h,P),h.length>0?(h[0].t={num:M[p],dPos:lt,posLetter:V,valLetter:O,labels:{med:e(_,"median:"),min:e(_,"min:"),q1:e(_,"q1:"),q3:e(_,"q3:"),max:e(_,"max:"),mean:P.boxmean==="sd"||P.sizemode==="sd"?e(_,"mean ± σ:").replace("σ",P.sdmultiple===1?"σ":P.sdmultiple+"σ"):e(_,"mean:"),lf:e(_,"lower fence:"),uf:e(_,"upper fence:")}},M[p]++,h):[{t:{empty:!0}}]};function r(_,P,M,C){var A=P in _,h=P+"0"in _,p="d"+P in _;if(A||h&&p){var k=M.makeCalcdata(_,P),w=I(_,M,P,k).vals;return[w,k]}var R;h?R=_[P+"0"]:"name"in _&&(M.type==="category"||c(_.name)&&["linear","log"].indexOf(M.type)!==-1||S.isDateTime(_.name)&&M.type==="date")?R=_.name:R=C;for(var O=M.type==="multicategory"?M.r2c_just_indices(R):M.d2c(R,0,_[P+"calendar"]),j=_._length,V=new Array(j),H=0;H<j;H++)V[H]=O;return[V]}function a(_,P){for(var M=_.length,C=new Array(M+1),A=0;A<M;A++)C[A]=_[A]-P;return C[M]=_[M-1]+P,C}function n(_){for(var P=new Array(_),M=0;M<_;M++)P[M]=[];return P}var o={text:"tx",hovertext:"htx"};function i(_,P,M){for(var C in o)S.isArrayOrTypedArray(P[C])&&(Array.isArray(M)?S.isArrayOrTypedArray(P[C][M[0]])&&(_[o[C]]=P[C][M[0]][M[1]]):_[o[C]]=P[C][M])}function l(_,P){if(S.isArrayOrTypedArray(P.selectedpoints))for(var M=0;M<_.length;M++){for(var C=_[M].pts||[],A={},h=0;h<C.length;h++)A[C[h].i]=h;S.tagSelected(C,P,A)}}function f(_,P){return _.v-P.v}function x(_){return _.v}function y(_,P,M){return M===0?_.q1:Math.min(_.q1,P[Math.min(S.findBin(2.5*_.q1-1.5*_.q3,P,!0)+1,M-1)])}function v(_,P,M){return M===0?_.q3:Math.max(_.q3,P[Math.max(S.findBin(2.5*_.q3-1.5*_.q1,P),0)])}function T(_){return 4*_.q1-3*_.q3}function u(_){return 4*_.q3-3*_.q1}function b(_,P){return P===0?0:1.57*(_.q3-_.q1)/Math.sqrt(P)}}),U6=Dt((Q,Z)=>{var c=Cs(),g=kn(),I=xv().getAxisGroup,S=["v","h"];function t(r,a){for(var n=r.calcdata,o=a.xaxis,i=a.yaxis,l=0;l<S.length;l++){for(var f=S[l],x=f==="h"?i:o,y=[],v=0;v<n.length;v++){var T=n[v],u=T[0].t,b=T[0].trace;b.visible===!0&&(b.type==="box"||b.type==="candlestick")&&!u.empty&&(b.orientation||"v")===f&&b.xaxis===o._id&&b.yaxis===i._id&&y.push(v)}e("box",r,y,x)}}function e(r,a,n,o){var i=a.calcdata,l=a._fullLayout,f=o._id,x=f.charAt(0),y,v,T,u=[],b=0;for(y=0;y<n.length;y++)for(T=i[n[y]],v=0;v<T.length;v++)u.push(o.c2l(T[v].pos,!0)),b+=(T[v].pts2||[]).length;if(u.length){var _=g.distinctVals(u);(o.type==="category"||o.type==="multicategory")&&(_.minDiff=1);var P=_.minDiff/2;c.minDtick(o,_.minDiff,_.vals[0],!0);var M=r==="violin"?"_numViolins":"_numBoxes",C=l[M],A=l[r+"mode"]==="group"&&C>1,h=1-l[r+"gap"],p=1-l[r+"groupgap"];for(y=0;y<n.length;y++){T=i[n[y]];var k=T[0].trace,w=T[0].t,R=k.width,O=k.side,j,V,H,F;if(R)j=V=F=R/2,H=0;else if(j=P,A){var U=I(l,o._id)+k.orientation,W=l._alignmentOpts[U]||{},q=W[k.alignmentgroup]||{},J=Object.keys(q.offsetGroups||{}).length,lt=J||C,yt=J?k._offsetIndex:w.num;V=j*h*p/lt,H=2*j*(-.5+(yt+.5)/lt)*h,F=j*h/lt}else V=j*h*p,H=0,F=j;w.dPos=j,w.bPos=H,w.bdPos=V,w.wHover=F;var mt,st,tt=H+V,pt,rt,at,vt,it,Y,ft=!!R,ut=(k.boxpoints||k.points)&&b>0;if(O==="positive"?(mt=j*(R?1:.5),pt=tt,st=pt=H):O==="negative"?(mt=pt=H,st=j*(R?1:.5),rt=tt):(mt=st=j,pt=rt=tt),ut){var kt=k.pointpos,zt=k.jitter,Pt=k.marker.size/2,qt=0;kt+zt>=0&&(qt=tt*(kt+zt),qt>mt?(ft=!0,it=Pt,at=qt):qt>pt&&(it=Pt,at=mt)),qt<=mt&&(at=mt);var Wt=0;kt-zt<=0&&(Wt=-tt*(kt-zt),Wt>st?(ft=!0,Y=Pt,vt=Wt):Wt>rt&&(Y=Pt,vt=st)),Wt<=st&&(vt=st)}else at=mt,vt=st;var Jt=new Array(T.length);for(v=0;v<T.length;v++)Jt[v]=T[v].pos;k._extremes[f]=c.findExtremes(o,Jt,{padded:ft,vpadminus:vt,vpadplus:at,vpadLinearized:!0,ppadminus:{x:Y,y:it}[x],ppadplus:{x:it,y:Y}[x]})}}}Z.exports={crossTraceCalc:t,setPositionOffset:e}
Line truncated
|
||||
`+w(q.dayMonthYear,V,U,W);return w(H,V,U,W)};var j=3*e;Q.incrementMonth=function(V,H,F){F=v(F)&&F;var U=z(V,e);if(V=Math.round(V-U),F)try{var W=Math.round(V/e)+o,q=i.getComponentMethod("calendars","getCal")(F),J=q.fromJD(W);return H%12?q.add(J,H,"m"):q.add(J,H/12,"y"),(J.toJD()-o)*e+U}catch{g.error("invalid ms "+V+" in calendar "+F)}var lt=new Date(V+j);return lt.setUTCMonth(lt.getUTCMonth()+H)+U-j},Q.findExactDates=function(V,H){for(var F=0,U=0,W=0,q=0,J,lt,yt=v(H)&&i.getComponentMethod("calendars","getCal")(H),mt=0;mt<V.length;mt++){if(lt=V[mt],!c(lt)){q++;continue}if(!(lt%e))if(yt)try{J=yt.fromJD(lt/e+o),J.day()===1?J.month()===1?F++:U++:W++}catch{}else J=new Date(lt),J.getUTCDate()===1?J.getUTCMonth()===0?F++:U++:W++}U+=F,W+=U;var st=V.length-q;return{exactYears:F/st,exactMonths:U/st,exactDays:W/st}}}),T1=Dt((Q,Z)=>{Z.exports=function(c){return c}}),L_=Dt(Q=>{var Z=Vn(),c=is(),g=T1(),z=Ci().BADNUM,S=1e-9;Q.findBin=function(n,o,i){if(Z(o.start))return i?Math.ceil((n-o.start)/o.size-S)-1:Math.floor((n-o.start)/o.size+S);var l=0,f=o.length,x=0,y=f>1?(o[f-1]-o[0])/(f-1):1,v,T;for(y>=0?T=i?t:e:T=i?a:r,n+=y*S*(i?-1:1)*(y>=0?1:-1);l<f&&x++<100;)v=Math.floor((l+f)/2),T(o[v],n)?l=v+1:f=v;return x>90&&c.log("Long binary search..."),l-1};function t(n,o){return n<o}function e(n,o){return n<=o}function r(n,o){return n>o}function a(n,o){return n>=o}Q.sorterAsc=function(n,o){return n-o},Q.sorterDes=function(n,o){return o-n},Q.distinctVals=function(n){var o=n.slice();o.sort(Q.sorterAsc);var i;for(i=o.length-1;i>-1&&o[i]===z;i--);for(var l=o[i]-o[0]||1,f=l/(i||1)/1e4,x=[],y,v=0;v<=i;v++){var T=o[v],u=T-y;y===void 0?(x.push(T),y=T):u>f&&(l=Math.min(l,u),x.push(T),y=T)}return{vals:x,minDiff:l}},Q.roundUp=function(n,o,i){for(var l=0,f=o.length-1,x,y=0,v=i?0:1,T=i?1:0,u=i?Math.ceil:Math.floor;l<f&&y++<100;)x=u((l+f)/2),o[x]<=n?l=x+v:f=x-T;return o[l]},Q.sort=function(n,o){for(var i=0,l=0,f=1;f<n.length;f++){var x=o(n[f],n[f-1]);if(x<0?i=1:x>0&&(l=1),i&&l)return n.sort(o)}return l?n:n.reverse()},Q.findIndexOfMin=function(n,o){o=o||g;for(var i=1/0,l,f=0;f<n.length;f++){var x=o(n[f]);x<i&&(i=x,l=f)}return l}}),K0=Dt((Q,Z)=>{Z.exports=function(c){return Object.keys(c).sort()}}),v6=Dt(Q=>{var Z=Vn(),c=ma().isArrayOrTypedArray;Q.aggNums=function(g,z,S,t){var e,r;if((!t||t>S.length)&&(t=S.length),Z(z)||(z=!1),c(S[0])){for(r=new Array(t),e=0;e<t;e++)r[e]=Q.aggNums(g,z,S[e]);S=r}for(e=0;e<t;e++)Z(z)?Z(S[e])&&(z=g(+z,+S[e])):z=S[e];return z},Q.len=function(g){return Q.aggNums(function(z){return z+1},0,g)},Q.mean=function(g,z){return z||(z=Q.len(g)),Q.aggNums(function(S,t){return S+t},0,g)/z},Q.geometricMean=function(g,z){return z||(z=Q.len(g)),Math.pow(Q.aggNums(function(S,t){return S*t},1,g),1/z)},Q.midRange=function(g){if(!(g===void 0||g.length===0))return(Q.aggNums(Math.max,null,g)+Q.aggNums(Math.min,null,g))/2},Q.variance=function(g,z,S){return z||(z=Q.len(g)),Z(S)||(S=Q.mean(g,z)),Q.aggNums(function(t,e){return t+Math.pow(e-S,2)},0,g)/z},Q.stdev=function(g,z,S){return Math.sqrt(Q.variance(g,z,S))},Q.median=function(g){var z=g.slice().sort();return Q.interp(z,.5)},Q.interp=function(g,z){if(!Z(z))throw"n should be a finite number";if(z=z*g.length-.5,z<0)return g[0];if(z>g.length-1)return g[g.length-1];var S=z%1;return S*g[Math.ceil(z)]+(1-S)*g[Math.floor(z)]}}),y6=Dt((Q,Z)=>{var c=Fo(),g=c.mod,z=c.modHalf,S=Math.PI,t=2*S;function e(T){return T/180*S}function r(T){return T/S*180}function a(T){return Math.abs(T[1]-T[0])>t-1e-14}function n(T,u){return z(u-T,t)}function o(T,u){return Math.abs(n(T,u))}function i(T,u){if(a(u))return!0;var b,_;u[0]<u[1]?(b=u[0],_=u[1]):(b=u[1],_=u[0]),b=g(b,t),_=g(_,t),b>_&&(_+=t);var P=g(T,t),M=P+t;return P>=b&&P<=_||M>=b&&M<=_}function l(T,u,b,_){if(!i(u,_))return!1;var P,M;return b[0]<b[1]?(P=b[0],M=b[1]):(P=b[1],M=b[0]),T>=P&&T<=M}function f(T,u,b,_,P,M,E){P=P||0,M=M||0;var A=a([b,_]),h,p,k,w,R;A?(h=0,p=S,k=t):b<_?(h=b,k=_):(h=_,k=b),T<u?(w=T,R=u):(w=u,R=T);function O(F,U){return[F*Math.cos(U)+P,M-F*Math.sin(U)]}var j=Math.abs(k-h)<=S?0:1;function V(F,U,W){return"A"+[F,F]+" "+[0,j,W]+" "+O(F,U)}var H;return A?w===null?H="M"+O(R,h)+V(R,p,0)+V(R,k,0)+"Z":H="M"+O(w,h)+V(w,p,0)+V(w,k,0)+"ZM"+O(R,h)+V(R,p,1)+V(R,k,1)+"Z":w===null?(H="M"+O(R,h)+V(R,k,0),E&&(H+="L0,0Z")):H="M"+O(w,h)+"L"+O(R,h)+V(R,k,0)+"L"+O(w,k)+V(w,h,1)+"Z",H}function x(T,u,b,_,P){return f(null,T,u,b,_,P,0)}function y(T,u,b,_,P){return f(null,T,u,b,_,P,1)}function v(T,u,b,_,P,M){return f(T,u,b,_,P,M,1)}Z.exports={deg2rad:e,rad2deg:r,angleDelta:n,angleDist:o,isFullCircle:a,isAngleInsideSector:i,isPtInsideSector:l,pathArc:x,pathSector:y,pathAnnulus:v}}),x6=Dt(Q=>{Q.isLeftAnchor=function(Z){return Z.xanchor==="left"||Z.xanchor==="auto"&&Z.x<=1/3},Q.isCenterAnchor=function(Z){return Z.xanchor==="center"||Z.xanchor==="auto"&&Z.x>1/3&&Z.x<2/3},Q.isRightAnchor=function(Z){return Z.xanchor==="right"||Z.xanchor==="auto"&&Z.x>=2/3},Q.isTopAnchor=function(Z){return Z.yanchor==="top"||Z.yanchor==="auto"&&Z.y>=2/3},Q.isMiddleAnchor=function(Z){retur
Line truncated
|
||||
`);if(sn!==-1&&(mn=Gr.substr(sn+1),Gr=Gr.substr(0,sn)),qr&&(mn!==void 0&&(Gr==="00:00:00"||Gr==="00:00")?(Gr=mn,mn=""):Gr.length===8&&(Gr=Gr.replace(/:00$/,""))),mn)if(Br)Zr==="d"?Gr+=", "+mn:Gr=mn+(Gr?", "+Gr:"");else if(!Oe._inCalcTicks||Oe._prevDateHead!==mn)Oe._prevDateHead=mn,Gr+="<br>"+mn;else{var Le=Hi(Oe),pr=Oe._trueSide||Oe.side;(!Le&&pr==="top"||Le&&pr==="bottom")&&(Gr+="<br> ")}Ie.text=Gr}function rn(Oe,Ie,Br,qr,Zr){var Nr=Oe.dtick,Gr=Ie.x,mn=Oe.tickformat,sn=typeof Nr=="string"&&Nr.charAt(0);if(Zr==="never"&&(Zr=""),qr&&sn!=="L"&&(Nr="L3",sn="L"),mn||sn==="L")Ie.text=qe(Math.pow(10,Gr),Oe,Zr,qr);else if(g(Nr)||sn==="D"&&(Oe.minorloglabels==="complete"||t.mod(Gr+.01,1)<.1)){Oe.minorloglabels==="complete"&&!(t.mod(Gr+.01,1)<.1)&&(Ie.fontSize*=.75);var Le=Math.pow(10,Gr).toExponential(0),pr=Le.split("e"),Hr=+pr[1],_n=Math.abs(Hr),Bn=Oe.exponentformat;Bn==="power"||ee(Bn)&&Bn!=="SI extended"&&ce(Hr)||ee(Bn)&&Bn==="SI extended"&&Te(Hr)?(Ie.text=pr[0],_n>0&&(Ie.text+="x10"),Ie.text==="1x10"&&(Ie.text="10"),Hr!==0&&Hr!==1&&(Ie.text+="<sup>"+(Hr>0?"":j)+_n+"</sup>"),Ie.fontSize*=1.25):(Bn==="e"||Bn==="E")&&_n>2?Ie.text=pr[0]+Bn+(Hr>0?"+":j)+_n:(Ie.text=qe(Math.pow(10,Gr),Oe,"","fakehover"),Nr==="D1"&&Oe._id.charAt(0)==="y"&&(Ie.dy-=Ie.fontSize/6))}else if(sn==="D")Ie.text=Oe.minorloglabels==="none"?"":String(Math.round(Math.pow(10,t.mod(Gr,1)))),Ie.fontSize*=.75;else throw"unrecognized dtick "+String(Nr);if(Oe.dtick==="D1"){var oi=String(Ie.text).charAt(0);(oi==="0"||oi==="1")&&(Oe._id.charAt(0)==="y"?Ie.dx-=Ie.fontSize/4:(Ie.dy+=Ie.fontSize/2,Ie.dx+=(Oe.range[1]>Oe.range[0]?1:-1)*Ie.fontSize*(Gr<0?.5:.25)))}}function Pe(Oe,Ie){var Br=Oe._categories[Math.round(Ie.x)];Br===void 0&&(Br=""),Ie.text=String(Br)}function Gt(Oe,Ie,Br){var qr=Math.round(Ie.x),Zr=Oe._categories[qr]||[],Nr=Zr[1]===void 0?"":String(Zr[1]),Gr=Zr[0]===void 0?"":String(Zr[0]);Br?Ie.text=Gr+" - "+Nr:(Ie.text=Nr,Ie.text2=Gr)}function ne(Oe,Ie,Br,qr,Zr){Zr==="never"?Zr="":Oe.showexponent==="all"&&Math.abs(Ie.x/Oe.dtick)<1e-6&&(Zr="hide"),Ie.text=qe(Ie.x,Oe,Zr,qr)}function Et(Oe,Ie,Br,qr,Zr){if(Oe.thetaunit==="radians"&&!Br){var Nr=Ie.x/180;if(Nr===0)Ie.text="0";else{var Gr=gt(Nr);if(Gr[1]>=100)Ie.text=qe(t.deg2rad(Ie.x),Oe,Zr,qr);else{var mn=Ie.x<0;Gr[1]===1?Gr[0]===1?Ie.text="π":Ie.text=Gr[0]+"π":Ie.text=["<sup>",Gr[0],"</sup>","⁄","<sub>",Gr[1],"</sub>","π"].join(""),mn&&(Ie.text=j+Ie.text)}}}else Ie.text=qe(Ie.x,Oe,Zr,qr)}function gt(Oe){function Ie(mn,sn){return Math.abs(mn-sn)<=1e-6}function Br(mn,sn){return Ie(sn,0)?mn:Br(sn,mn%sn)}function qr(mn){for(var sn=1;!Ie(Math.round(mn*sn)/sn,mn);)sn*=10;return sn}var Zr=qr(Oe),Nr=Oe*Zr,Gr=Math.abs(Br(Nr,Zr));return[Math.round(Nr/Gr),Math.round(Zr/Gr)]}var St=["f","p","n","μ","m","","k","M","G","T"],Nt=["q","r","y","z","a",...St,"P","E","Z","Y","R","Q"],ee=Oe=>["SI","SI extended","B"].includes(Oe);function ce(Oe){return Oe>14||Oe<-15}function Te(Oe){return Oe>32||Oe<-30}function Ue(Oe,Ie){return ee(Ie)?!!(Ie==="SI extended"&&Te(Oe)||Ie!=="SI extended"&&ce(Oe)):!1}function qe(Oe,Ie,Br,qr){var Zr=Oe<0,Nr=Ie._tickround,Gr=Br||Ie.exponentformat||"B",mn=Ie._tickexponent,sn=rt.getTickFormat(Ie),Le=Ie.separatethousands;if(qr){var pr={exponentformat:Gr,minexponent:Ie.minexponent,dtick:Ie.showexponent==="none"?Ie.dtick:g(Oe)&&Math.abs(Oe)||1,range:Ie.showexponent==="none"?Ie.range.map(Ie.r2d):[0,Oe||1]};Wr(pr),Nr=(Number(pr._tickround)||0)+4,mn=pr._tickexponent,Ie.hoverformat&&(sn=Ie.hoverformat)}if(sn)return Ie._numFormat(sn)(Oe).replace(/-/g,j);var Hr=Math.pow(10,-Nr)/2;if(Gr==="none"&&(mn=0),Oe=Math.abs(Oe),Oe<Hr)Oe="0",Zr=!1;else{if(Oe+=Hr,mn&&(Oe*=Math.pow(10,-mn),Nr+=mn),Nr===0)Oe=String(Math.floor(Oe));else if(Nr<0){Oe=String(Math.round(Oe)),Oe=Oe.substr(0,Oe.length+Nr);for(var _n=Nr;_n<0;_n++)Oe+="0"}else{Oe=String(Oe);var Bn=Oe.indexOf(".")+1;Bn&&(Oe=Oe.substr(0,Bn+Nr).replace(/\.?0+$/,""))}Oe=t.numSeparate(Oe,Ie._separators,Le)}if(mn&&Gr!=="hide"){Ue(mn,Gr)&&(Gr="power");var oi;mn<0?oi=j+-mn:Gr!=="power"?oi="+"+mn:oi=String(mn),Gr==="e"||Gr==="E"?Oe+=Gr+oi:Gr==="power"?Oe+="×10<sup>"+oi+"</sup>":Gr==="B"&&mn===9?Oe+="B":ee(Gr)&&(Oe+=Gr==="SI extended"?Nt[mn/3+10]:St[mn/3+5])}return Zr?j+Oe:Oe}rt.getTickFormat=function(Oe){var Ie;function Br(sn){return typeof sn!="string"?sn:Number(sn.replace("M",""))*P}function qr(sn,Le){var pr=["L","D"];if(typeof sn==typeof Le){if(typeof sn=="number")return sn-Le;var Hr=pr.indexOf(sn.charAt(0)),_n=pr.indexOf(Le.charAt(0));return Hr===_n?Number(sn.replace(/(L|D)/g,""))-Number(Le.replace(/(L|D)/g,"")):Hr-_n}else return typeof sn=="number"?1:-1}function Zr(sn,Le,pr){var Hr=pr||function(oi){return oi},_n=Le[0],Bn=Le[1];return(!_n&&typeof _n!="number"||Hr(_n)<=Hr(sn))&&(!Bn&&typeof Bn!="number"||Hr(Bn)>=Hr(sn))}function Nr(sn,Le){var pr=Le[0]===null,Hr=Le[1]===null,_n=qr(sn,Le[0])>=0,Bn=qr(sn,Le[1])<=0;return(pr||_n)&&(Hr||Bn)}var Gr,mn;if(Oe.tickformatstops&&Oe.tickformatstops.length>0)switch(Oe.type){case"date":case"linear":{for(Ie=0;Ie<Oe.tickform
Line truncated
|
||||
`));var de;yt.med!==t?de=yt.med:yt.q1!==t?yt.q3!==t?de=(yt.q1+yt.q3)/2:de=yt.q1:yt.q3!==t?de=yt.q3:de=0,yt.med=de,yt.q1=yt.q3=de,yt.lf=yt.uf=de,yt.mean=yt.sd=de,yt.ln=yt.un=de,yt.min=yt.max=de}Y=Math.min(Y,yt.min),ft=Math.max(ft,yt.max),yt.pts2=mt.filter(at),h.push(yt)}}P._extremes[R._id]=g.findExtremes(R,[Y,ft],{padded:!0})}else{var me=R.makeCalcdata(P,O),ue=a(J,lt),Tt=J.length,Lt=n(Tt);for(k=0;k<P._length;k++)if(rt=me[k],!!c(rt)){var Mt=S.findBin(U[k],ue);Mt>=0&&Mt<Tt&&(pt={v:rt,i:k},i(pt,P,k),Lt[Mt].push(pt))}var te=1/0,ye=-1/0,le=P.quartilemethod,Me=le==="exclusive",He=le==="inclusive";for(k=0;k<Tt;k++)if(Lt[k].length>0){if(yt={},yt.pos=yt[V]=J[k],mt=yt.pts=Lt[k].sort(f),st=yt[O]=mt.map(x),tt=st.length,yt.min=st[0],yt.max=st[tt-1],yt.mean=S.mean(st,tt),yt.sd=S.stdev(st,tt,yt.mean)*P.sdmultiple,yt.med=S.interp(st,.5),tt%2&&(Me||He)){var Ge,cr;Me?(Ge=st.slice(0,tt/2),cr=st.slice(tt/2+1)):He&&(Ge=st.slice(0,tt/2+1),cr=st.slice(tt/2)),yt.q1=S.interp(Ge,.5),yt.q3=S.interp(cr,.5)}else yt.q1=S.interp(st,.25),yt.q3=S.interp(st,.75);yt.lf=y(yt,st,tt),yt.uf=v(yt,st,tt),yt.lo=T(yt),yt.uo=u(yt);var ur=b(yt,tt);yt.ln=yt.med-ur,yt.un=yt.med+ur,te=Math.min(te,yt.ln),ye=Math.max(ye,yt.un),yt.pts2=mt.filter(at),h.push(yt)}P.notched&&S.isTypedArray(me)&&(me=Array.from(me)),P._extremes[R._id]=g.findExtremes(R,P.notched?me.concat([te,ye]):me,{padded:!0})}return l(h,P),h.length>0?(h[0].t={num:M[p],dPos:lt,posLetter:V,valLetter:O,labels:{med:e(_,"median:"),min:e(_,"min:"),q1:e(_,"q1:"),q3:e(_,"q3:"),max:e(_,"max:"),mean:P.boxmean==="sd"||P.sizemode==="sd"?e(_,"mean ± σ:").replace("σ",P.sdmultiple===1?"σ":P.sdmultiple+"σ"):e(_,"mean:"),lf:e(_,"lower fence:"),uf:e(_,"upper fence:")}},M[p]++,h):[{t:{empty:!0}}]};function r(_,P,M,E){var A=P in _,h=P+"0"in _,p="d"+P in _;if(A||h&&p){var k=M.makeCalcdata(_,P),w=z(_,M,P,k).vals;return[w,k]}var R;h?R=_[P+"0"]:"name"in _&&(M.type==="category"||c(_.name)&&["linear","log"].indexOf(M.type)!==-1||S.isDateTime(_.name)&&M.type==="date")?R=_.name:R=E;for(var O=M.type==="multicategory"?M.r2c_just_indices(R):M.d2c(R,0,_[P+"calendar"]),j=_._length,V=new Array(j),H=0;H<j;H++)V[H]=O;return[V]}function a(_,P){for(var M=_.length,E=new Array(M+1),A=0;A<M;A++)E[A]=_[A]-P;return E[M]=_[M-1]+P,E}function n(_){for(var P=new Array(_),M=0;M<_;M++)P[M]=[];return P}var o={text:"tx",hovertext:"htx"};function i(_,P,M){for(var E in o)S.isArrayOrTypedArray(P[E])&&(Array.isArray(M)?S.isArrayOrTypedArray(P[E][M[0]])&&(_[o[E]]=P[E][M[0]][M[1]]):_[o[E]]=P[E][M])}function l(_,P){if(S.isArrayOrTypedArray(P.selectedpoints))for(var M=0;M<_.length;M++){for(var E=_[M].pts||[],A={},h=0;h<E.length;h++)A[E[h].i]=h;S.tagSelected(E,P,A)}}function f(_,P){return _.v-P.v}function x(_){return _.v}function y(_,P,M){return M===0?_.q1:Math.min(_.q1,P[Math.min(S.findBin(2.5*_.q1-1.5*_.q3,P,!0)+1,M-1)])}function v(_,P,M){return M===0?_.q3:Math.max(_.q3,P[Math.max(S.findBin(2.5*_.q3-1.5*_.q1,P),0)])}function T(_){return 4*_.q1-3*_.q3}function u(_){return 4*_.q3-3*_.q1}function b(_,P){return P===0?0:1.57*(_.q3-_.q1)/Math.sqrt(P)}}),H6=Dt((Q,Z)=>{var c=Es(),g=kn(),z=xv().getAxisGroup,S=["v","h"];function t(r,a){for(var n=r.calcdata,o=a.xaxis,i=a.yaxis,l=0;l<S.length;l++){for(var f=S[l],x=f==="h"?i:o,y=[],v=0;v<n.length;v++){var T=n[v],u=T[0].t,b=T[0].trace;b.visible===!0&&(b.type==="box"||b.type==="candlestick")&&!u.empty&&(b.orientation||"v")===f&&b.xaxis===o._id&&b.yaxis===i._id&&y.push(v)}e("box",r,y,x)}}function e(r,a,n,o){var i=a.calcdata,l=a._fullLayout,f=o._id,x=f.charAt(0),y,v,T,u=[],b=0;for(y=0;y<n.length;y++)for(T=i[n[y]],v=0;v<T.length;v++)u.push(o.c2l(T[v].pos,!0)),b+=(T[v].pts2||[]).length;if(u.length){var _=g.distinctVals(u);(o.type==="category"||o.type==="multicategory")&&(_.minDiff=1);var P=_.minDiff/2;c.minDtick(o,_.minDiff,_.vals[0],!0);var M=r==="violin"?"_numViolins":"_numBoxes",E=l[M],A=l[r+"mode"]==="group"&&E>1,h=1-l[r+"gap"],p=1-l[r+"groupgap"];for(y=0;y<n.length;y++){T=i[n[y]];var k=T[0].trace,w=T[0].t,R=k.width,O=k.side,j,V,H,F;if(R)j=V=F=R/2,H=0;else if(j=P,A){var U=z(l,o._id)+k.orientation,W=l._alignmentOpts[U]||{},q=W[k.alignmentgroup]||{},J=Object.keys(q.offsetGroups||{}).length,lt=J||E,yt=J?k._offsetIndex:w.num;V=j*h*p/lt,H=2*j*(-.5+(yt+.5)/lt)*h,F=j*h/lt}else V=j*h*p,H=0,F=j;w.dPos=j,w.bPos=H,w.bdPos=V,w.wHover=F;var mt,st,tt=H+V,pt,rt,at,vt,it,Y,ft=!!R,ut=(k.boxpoints||k.points)&&b>0;if(O==="positive"?(mt=j*(R?1:.5),pt=tt,st=pt=H):O==="negative"?(mt=pt=H,st=j*(R?1:.5),rt=tt):(mt=st=j,pt=rt=tt),ut){var kt=k.pointpos,It=k.jitter,Pt=k.marker.size/2,qt=0;kt+It>=0&&(qt=tt*(kt+It),qt>mt?(ft=!0,it=Pt,at=qt):qt>pt&&(it=Pt,at=mt)),qt<=mt&&(at=mt);var Wt=0;kt-It<=0&&(Wt=-tt*(kt-It),Wt>st?(ft=!0,Y=Pt,vt=Wt):Wt>rt&&(Y=Pt,vt=st)),Wt<=st&&(vt=st)}else at=mt,vt=st;var Jt=new Array(T.length);for(v=0;v<T.length;v++)Jt[v]=T[v].pos;k._extremes[f]=c.findExtremes(o,Jt,{padded:ft,vpadminus:vt,vpadplus:at,vpadLinearized:!0,ppadminus:{x:Y,y:it}[x],ppadplus:{x:it,y:Y}[x]})}}}Z.exports={crossTraceCalc:t,setPositionOffset:e}
Line truncated
|
||||
`)>-1&&(st?pt=pt.split(`
|
||||
`).map(function(at){return" "+at}).join(`
|
||||
`).slice(2):pt=`
|
||||
@@ -147,7 +147,7 @@ function SG(d,s){for(var E=0;E<s.length;E++){const B=s[E];if(typeof B!="string"&
|
||||
`))):pt=q.stylize("[Circular]","special")),M(tt)){if(st&&mt.match(/^\d+$/))return pt;tt=JSON.stringify(""+mt),tt.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(tt=tt.slice(1,-1),tt=q.stylize(tt,"name")):(tt=tt.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),tt=q.stylize(tt,"string"))}return tt+": "+pt}function x(q,J,lt){var yt=0,mt=q.reduce(function(st,tt){return yt++,tt.indexOf(`
|
||||
`)>=0&&yt++,st+tt.replace(/\u001b\[\d\d?m/g,"").length+1},0);return mt>60?lt[0]+(J===""?"":J+`
|
||||
`)+" "+q.join(`,
|
||||
`)+" "+lt[1]:lt[0]+J+" "+q.join(", ")+" "+lt[1]}Q.types=V7();function y(q){return Array.isArray(q)}Q.isArray=y;function v(q){return typeof q=="boolean"}Q.isBoolean=v;function T(q){return q===null}Q.isNull=T;function u(q){return q==null}Q.isNullOrUndefined=u;function b(q){return typeof q=="number"}Q.isNumber=b;function _(q){return typeof q=="string"}Q.isString=_;function P(q){return typeof q=="symbol"}Q.isSymbol=P;function M(q){return q===void 0}Q.isUndefined=M;function C(q){return A(q)&&R(q)==="[object RegExp]"}Q.isRegExp=C,Q.types.isRegExp=C;function A(q){return typeof q=="object"&&q!==null}Q.isObject=A;function h(q){return A(q)&&R(q)==="[object Date]"}Q.isDate=h,Q.types.isDate=h;function p(q){return A(q)&&(R(q)==="[object Error]"||q instanceof Error)}Q.isError=p,Q.types.isNativeError=p;function k(q){return typeof q=="function"}Q.isFunction=k;function w(q){return q===null||typeof q=="boolean"||typeof q=="number"||typeof q=="string"||typeof q=="symbol"||typeof q>"u"}Q.isPrimitive=w,Q.isBuffer=H7();function R(q){return Object.prototype.toString.call(q)}function O(q){return q<10?"0"+q.toString(10):q.toString(10)}var j=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function V(){var q=new Date,J=[O(q.getHours()),O(q.getMinutes()),O(q.getSeconds())].join(":");return[q.getDate(),j[q.getMonth()],J].join(" ")}Q.log=function(){console.log("%s - %s",V(),Q.format.apply(Q,arguments))},Q.inherits=wv(),Q._extend=function(q,J){if(!J||!A(J))return q;for(var lt=Object.keys(J),yt=lt.length;yt--;)q[lt[yt]]=J[lt[yt]];return q};function H(q,J){return Object.prototype.hasOwnProperty.call(q,J)}var F=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;Q.promisify=function(q){if(typeof q!="function")throw new TypeError('The "original" argument must be of type Function');if(F&&q[F]){var J=q[F];if(typeof J!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(J,F,{value:J,enumerable:!1,writable:!1,configurable:!0}),J}function J(){for(var lt,yt,mt=new Promise(function(pt,rt){lt=pt,yt=rt}),st=[],tt=0;tt<arguments.length;tt++)st.push(arguments[tt]);st.push(function(pt,rt){pt?yt(pt):lt(rt)});try{q.apply(this,st)}catch(pt){yt(pt)}return mt}return Object.setPrototypeOf(J,Object.getPrototypeOf(q)),F&&Object.defineProperty(J,F,{value:J,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(J,Z(q))},Q.promisify.custom=F;function U(q,J){if(!q){var lt=new Error("Promise was rejected with a falsy value");lt.reason=q,q=lt}return J(q)}function W(q){if(typeof q!="function")throw new TypeError('The "original" argument must be of type Function');function J(){for(var lt=[],yt=0;yt<arguments.length;yt++)lt.push(arguments[yt]);var mt=lt.pop();if(typeof mt!="function")throw new TypeError("The last argument must be of type Function");var st=this,tt=function(){return mt.apply(st,arguments)};q.apply(this,lt).then(function(pt){process.nextTick(tt.bind(null,null,pt))},function(pt){process.nextTick(U.bind(null,pt,tt))})}return Object.setPrototypeOf(J,Object.getPrototypeOf(q)),Object.defineProperties(J,Z(q)),J}Q.callbackify=W}),pN=Dt((Q,Z)=>{function c(f,x){var y=Object.keys(f);if(Object.getOwnPropertySymbols){var v=Object.getOwnPropertySymbols(f);x&&(v=v.filter(function(T){return Object.getOwnPropertyDescriptor(f,T).enumerable})),y.push.apply(y,v)}return y}function g(f){for(var x=1;x<arguments.length;x++){var y=arguments[x]!=null?arguments[x]:{};x%2?c(Object(y),!0).forEach(function(v){I(f,v,y[v])}):Object.getOwnPropertyDescriptors?Object.defineProperties(f,Object.getOwnPropertyDescriptors(y)):c(Object(y)).forEach(function(v){Object.defineProperty(f,v,Object.getOwnPropertyDescriptor(y,v))})}return f}function I(f,x,y){return x in f?Object.defineProperty(f,x,{value:y,enumerable:!0,configurable:!0,writable:!0}):f[x]=y,f}function S(f,x){if(!(f instanceof x))throw new TypeError("Cannot call a class as a function")}function t(f,x){for(var y=0;y<x.length;y++){var v=x[y];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(f,v.key,v)}}function e(f,x,y){return x&&t(f.prototype,x),f}var r=ox(),a=r.Buffer,n=W7(),o=n.inspect,i=o&&o.custom||"inspect";function l(f,x,y){a.prototype.copy.call(f,x,y)}Z.exports=function(){function f(){S(this,f),this.head=null,this.tail=null,this.length=0}return e(f,[{key:"push",value:function(x){var y={data:x,next:null};this.length>0?this.tail.next=y:this.head=y,this.tail=y,++this.length}},{key:"unshift",value:function(x){var y={data:x,next:this.head};this.length===0&&(this.tail=y),this.head=y,++this.length}},{key:"shift",value:function(){if(this.length!==0){var x=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,x}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(x){if(this.length===0)return"";for(var y=this.head,v=""+y.data;y=y.next;)v+=x+y.data;return v}},{key:"concat",value:fun
Line truncated
|
||||
`)+" "+lt[1]:lt[0]+J+" "+q.join(", ")+" "+lt[1]}Q.types=V7();function y(q){return Array.isArray(q)}Q.isArray=y;function v(q){return typeof q=="boolean"}Q.isBoolean=v;function T(q){return q===null}Q.isNull=T;function u(q){return q==null}Q.isNullOrUndefined=u;function b(q){return typeof q=="number"}Q.isNumber=b;function _(q){return typeof q=="string"}Q.isString=_;function P(q){return typeof q=="symbol"}Q.isSymbol=P;function M(q){return q===void 0}Q.isUndefined=M;function E(q){return A(q)&&R(q)==="[object RegExp]"}Q.isRegExp=E,Q.types.isRegExp=E;function A(q){return typeof q=="object"&&q!==null}Q.isObject=A;function h(q){return A(q)&&R(q)==="[object Date]"}Q.isDate=h,Q.types.isDate=h;function p(q){return A(q)&&(R(q)==="[object Error]"||q instanceof Error)}Q.isError=p,Q.types.isNativeError=p;function k(q){return typeof q=="function"}Q.isFunction=k;function w(q){return q===null||typeof q=="boolean"||typeof q=="number"||typeof q=="string"||typeof q=="symbol"||typeof q>"u"}Q.isPrimitive=w,Q.isBuffer=H7();function R(q){return Object.prototype.toString.call(q)}function O(q){return q<10?"0"+q.toString(10):q.toString(10)}var j=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function V(){var q=new Date,J=[O(q.getHours()),O(q.getMinutes()),O(q.getSeconds())].join(":");return[q.getDate(),j[q.getMonth()],J].join(" ")}Q.log=function(){console.log("%s - %s",V(),Q.format.apply(Q,arguments))},Q.inherits=wv(),Q._extend=function(q,J){if(!J||!A(J))return q;for(var lt=Object.keys(J),yt=lt.length;yt--;)q[lt[yt]]=J[lt[yt]];return q};function H(q,J){return Object.prototype.hasOwnProperty.call(q,J)}var F=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;Q.promisify=function(q){if(typeof q!="function")throw new TypeError('The "original" argument must be of type Function');if(F&&q[F]){var J=q[F];if(typeof J!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(J,F,{value:J,enumerable:!1,writable:!1,configurable:!0}),J}function J(){for(var lt,yt,mt=new Promise(function(pt,rt){lt=pt,yt=rt}),st=[],tt=0;tt<arguments.length;tt++)st.push(arguments[tt]);st.push(function(pt,rt){pt?yt(pt):lt(rt)});try{q.apply(this,st)}catch(pt){yt(pt)}return mt}return Object.setPrototypeOf(J,Object.getPrototypeOf(q)),F&&Object.defineProperty(J,F,{value:J,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(J,Z(q))},Q.promisify.custom=F;function U(q,J){if(!q){var lt=new Error("Promise was rejected with a falsy value");lt.reason=q,q=lt}return J(q)}function W(q){if(typeof q!="function")throw new TypeError('The "original" argument must be of type Function');function J(){for(var lt=[],yt=0;yt<arguments.length;yt++)lt.push(arguments[yt]);var mt=lt.pop();if(typeof mt!="function")throw new TypeError("The last argument must be of type Function");var st=this,tt=function(){return mt.apply(st,arguments)};q.apply(this,lt).then(function(pt){process.nextTick(tt.bind(null,null,pt))},function(pt){process.nextTick(U.bind(null,pt,tt))})}return Object.setPrototypeOf(J,Object.getPrototypeOf(q)),Object.defineProperties(J,Z(q)),J}Q.callbackify=W}),pN=Dt((Q,Z)=>{function c(f,x){var y=Object.keys(f);if(Object.getOwnPropertySymbols){var v=Object.getOwnPropertySymbols(f);x&&(v=v.filter(function(T){return Object.getOwnPropertyDescriptor(f,T).enumerable})),y.push.apply(y,v)}return y}function g(f){for(var x=1;x<arguments.length;x++){var y=arguments[x]!=null?arguments[x]:{};x%2?c(Object(y),!0).forEach(function(v){z(f,v,y[v])}):Object.getOwnPropertyDescriptors?Object.defineProperties(f,Object.getOwnPropertyDescriptors(y)):c(Object(y)).forEach(function(v){Object.defineProperty(f,v,Object.getOwnPropertyDescriptor(y,v))})}return f}function z(f,x,y){return x in f?Object.defineProperty(f,x,{value:y,enumerable:!0,configurable:!0,writable:!0}):f[x]=y,f}function S(f,x){if(!(f instanceof x))throw new TypeError("Cannot call a class as a function")}function t(f,x){for(var y=0;y<x.length;y++){var v=x[y];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(f,v.key,v)}}function e(f,x,y){return x&&t(f.prototype,x),f}var r=ox(),a=r.Buffer,n=W7(),o=n.inspect,i=o&&o.custom||"inspect";function l(f,x,y){a.prototype.copy.call(f,x,y)}Z.exports=function(){function f(){S(this,f),this.head=null,this.tail=null,this.length=0}return e(f,[{key:"push",value:function(x){var y={data:x,next:null};this.length>0?this.tail.next=y:this.head=y,this.tail=y,++this.length}},{key:"unshift",value:function(x){var y={data:x,next:this.head};this.length===0&&(this.tail=y),this.head=y,++this.length}},{key:"shift",value:function(){if(this.length!==0){var x=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,x}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(x){if(this.length===0)return"";for(var y=this.head,v=""+y.data;y=y.next;)v+=x+y.data;return v}},{key:"concat",value:fun
Line truncated
|
||||
`)>-1&&(st?pt=pt.split(`
|
||||
`).map(function(at){return" "+at}).join(`
|
||||
`).slice(2):pt=`
|
||||
@@ -156,14 +156,14 @@ function SG(d,s){for(var E=0;E<s.length;E++){const B=s[E];if(typeof B!="string"&
|
||||
`))):pt=q.stylize("[Circular]","special")),M(tt)){if(st&&mt.match(/^\d+$/))return pt;tt=JSON.stringify(""+mt),tt.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(tt=tt.slice(1,-1),tt=q.stylize(tt,"name")):(tt=tt.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),tt=q.stylize(tt,"string"))}return tt+": "+pt}function x(q,J,lt){var yt=0,mt=q.reduce(function(st,tt){return yt++,tt.indexOf(`
|
||||
`)>=0&&yt++,st+tt.replace(/\u001b\[\d\d?m/g,"").length+1},0);return mt>60?lt[0]+(J===""?"":J+`
|
||||
`)+" "+q.join(`,
|
||||
`)+" "+lt[1]:lt[0]+J+" "+q.join(", ")+" "+lt[1]}Q.types=V7();function y(q){return Array.isArray(q)}Q.isArray=y;function v(q){return typeof q=="boolean"}Q.isBoolean=v;function T(q){return q===null}Q.isNull=T;function u(q){return q==null}Q.isNullOrUndefined=u;function b(q){return typeof q=="number"}Q.isNumber=b;function _(q){return typeof q=="string"}Q.isString=_;function P(q){return typeof q=="symbol"}Q.isSymbol=P;function M(q){return q===void 0}Q.isUndefined=M;function C(q){return A(q)&&R(q)==="[object RegExp]"}Q.isRegExp=C,Q.types.isRegExp=C;function A(q){return typeof q=="object"&&q!==null}Q.isObject=A;function h(q){return A(q)&&R(q)==="[object Date]"}Q.isDate=h,Q.types.isDate=h;function p(q){return A(q)&&(R(q)==="[object Error]"||q instanceof Error)}Q.isError=p,Q.types.isNativeError=p;function k(q){return typeof q=="function"}Q.isFunction=k;function w(q){return q===null||typeof q=="boolean"||typeof q=="number"||typeof q=="string"||typeof q=="symbol"||typeof q>"u"}Q.isPrimitive=w,Q.isBuffer=H7();function R(q){return Object.prototype.toString.call(q)}function O(q){return q<10?"0"+q.toString(10):q.toString(10)}var j=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function V(){var q=new Date,J=[O(q.getHours()),O(q.getMinutes()),O(q.getSeconds())].join(":");return[q.getDate(),j[q.getMonth()],J].join(" ")}Q.log=function(){console.log("%s - %s",V(),Q.format.apply(Q,arguments))},Q.inherits=wv(),Q._extend=function(q,J){if(!J||!A(J))return q;for(var lt=Object.keys(J),yt=lt.length;yt--;)q[lt[yt]]=J[lt[yt]];return q};function H(q,J){return Object.prototype.hasOwnProperty.call(q,J)}var F=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;Q.promisify=function(q){if(typeof q!="function")throw new TypeError('The "original" argument must be of type Function');if(F&&q[F]){var J=q[F];if(typeof J!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(J,F,{value:J,enumerable:!1,writable:!1,configurable:!0}),J}function J(){for(var lt,yt,mt=new Promise(function(pt,rt){lt=pt,yt=rt}),st=[],tt=0;tt<arguments.length;tt++)st.push(arguments[tt]);st.push(function(pt,rt){pt?yt(pt):lt(rt)});try{q.apply(this,st)}catch(pt){yt(pt)}return mt}return Object.setPrototypeOf(J,Object.getPrototypeOf(q)),F&&Object.defineProperty(J,F,{value:J,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(J,Z(q))},Q.promisify.custom=F;function U(q,J){if(!q){var lt=new Error("Promise was rejected with a falsy value");lt.reason=q,q=lt}return J(q)}function W(q){if(typeof q!="function")throw new TypeError('The "original" argument must be of type Function');function J(){for(var lt=[],yt=0;yt<arguments.length;yt++)lt.push(arguments[yt]);var mt=lt.pop();if(typeof mt!="function")throw new TypeError("The last argument must be of type Function");var st=this,tt=function(){return mt.apply(st,arguments)};q.apply(this,lt).then(function(pt){process.nextTick(tt.bind(null,null,pt))},function(pt){process.nextTick(U.bind(null,pt,tt))})}return Object.setPrototypeOf(J,Object.getPrototypeOf(q)),Object.defineProperties(J,Z(q)),J}Q.callbackify=W}),X7=Dt((Q,Z)=>{function c(b){"@babel/helpers - typeof";return c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(_){return typeof _}:function(_){return _&&typeof Symbol=="function"&&_.constructor===Symbol&&_!==Symbol.prototype?"symbol":typeof _},c(b)}function g(b,_,P){return Object.defineProperty(b,"prototype",{writable:!1}),b}function I(b,_){if(!(b instanceof _))throw new TypeError("Cannot call a class as a function")}function S(b,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function");b.prototype=Object.create(_&&_.prototype,{constructor:{value:b,writable:!0,configurable:!0}}),Object.defineProperty(b,"prototype",{writable:!1}),_&&t(b,_)}function t(b,_){return t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(P,M){return P.__proto__=M,P},t(b,_)}function e(b){var _=n();return function(){var P=o(b),M;if(_){var C=o(this).constructor;M=Reflect.construct(P,arguments,C)}else M=P.apply(this,arguments);return r(this,M)}}function r(b,_){if(_&&(c(_)==="object"||typeof _=="function"))return _;if(_!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return a(b)}function a(b){if(b===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b}function n(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function o(b){return o=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(_){return _.__proto__||Object.getPrototypeOf(_)},o(b)}var i={},l,f;function x(b,_,P){P||(P=Error);function M(A,h,p){return typeof _=="string"?_:_(A,h,p)}var C=function(A){S(p,A);var h=e(p);function p(k,w,R){var O;return I(thi
Line truncated
|
||||
`)+" "+lt[1]:lt[0]+J+" "+q.join(", ")+" "+lt[1]}Q.types=V7();function y(q){return Array.isArray(q)}Q.isArray=y;function v(q){return typeof q=="boolean"}Q.isBoolean=v;function T(q){return q===null}Q.isNull=T;function u(q){return q==null}Q.isNullOrUndefined=u;function b(q){return typeof q=="number"}Q.isNumber=b;function _(q){return typeof q=="string"}Q.isString=_;function P(q){return typeof q=="symbol"}Q.isSymbol=P;function M(q){return q===void 0}Q.isUndefined=M;function E(q){return A(q)&&R(q)==="[object RegExp]"}Q.isRegExp=E,Q.types.isRegExp=E;function A(q){return typeof q=="object"&&q!==null}Q.isObject=A;function h(q){return A(q)&&R(q)==="[object Date]"}Q.isDate=h,Q.types.isDate=h;function p(q){return A(q)&&(R(q)==="[object Error]"||q instanceof Error)}Q.isError=p,Q.types.isNativeError=p;function k(q){return typeof q=="function"}Q.isFunction=k;function w(q){return q===null||typeof q=="boolean"||typeof q=="number"||typeof q=="string"||typeof q=="symbol"||typeof q>"u"}Q.isPrimitive=w,Q.isBuffer=H7();function R(q){return Object.prototype.toString.call(q)}function O(q){return q<10?"0"+q.toString(10):q.toString(10)}var j=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function V(){var q=new Date,J=[O(q.getHours()),O(q.getMinutes()),O(q.getSeconds())].join(":");return[q.getDate(),j[q.getMonth()],J].join(" ")}Q.log=function(){console.log("%s - %s",V(),Q.format.apply(Q,arguments))},Q.inherits=wv(),Q._extend=function(q,J){if(!J||!A(J))return q;for(var lt=Object.keys(J),yt=lt.length;yt--;)q[lt[yt]]=J[lt[yt]];return q};function H(q,J){return Object.prototype.hasOwnProperty.call(q,J)}var F=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;Q.promisify=function(q){if(typeof q!="function")throw new TypeError('The "original" argument must be of type Function');if(F&&q[F]){var J=q[F];if(typeof J!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(J,F,{value:J,enumerable:!1,writable:!1,configurable:!0}),J}function J(){for(var lt,yt,mt=new Promise(function(pt,rt){lt=pt,yt=rt}),st=[],tt=0;tt<arguments.length;tt++)st.push(arguments[tt]);st.push(function(pt,rt){pt?yt(pt):lt(rt)});try{q.apply(this,st)}catch(pt){yt(pt)}return mt}return Object.setPrototypeOf(J,Object.getPrototypeOf(q)),F&&Object.defineProperty(J,F,{value:J,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(J,Z(q))},Q.promisify.custom=F;function U(q,J){if(!q){var lt=new Error("Promise was rejected with a falsy value");lt.reason=q,q=lt}return J(q)}function W(q){if(typeof q!="function")throw new TypeError('The "original" argument must be of type Function');function J(){for(var lt=[],yt=0;yt<arguments.length;yt++)lt.push(arguments[yt]);var mt=lt.pop();if(typeof mt!="function")throw new TypeError("The last argument must be of type Function");var st=this,tt=function(){return mt.apply(st,arguments)};q.apply(this,lt).then(function(pt){process.nextTick(tt.bind(null,null,pt))},function(pt){process.nextTick(U.bind(null,pt,tt))})}return Object.setPrototypeOf(J,Object.getPrototypeOf(q)),Object.defineProperties(J,Z(q)),J}Q.callbackify=W}),X7=Dt((Q,Z)=>{function c(b){"@babel/helpers - typeof";return c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(_){return typeof _}:function(_){return _&&typeof Symbol=="function"&&_.constructor===Symbol&&_!==Symbol.prototype?"symbol":typeof _},c(b)}function g(b,_,P){return Object.defineProperty(b,"prototype",{writable:!1}),b}function z(b,_){if(!(b instanceof _))throw new TypeError("Cannot call a class as a function")}function S(b,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function");b.prototype=Object.create(_&&_.prototype,{constructor:{value:b,writable:!0,configurable:!0}}),Object.defineProperty(b,"prototype",{writable:!1}),_&&t(b,_)}function t(b,_){return t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(P,M){return P.__proto__=M,P},t(b,_)}function e(b){var _=n();return function(){var P=o(b),M;if(_){var E=o(this).constructor;M=Reflect.construct(P,arguments,E)}else M=P.apply(this,arguments);return r(this,M)}}function r(b,_){if(_&&(c(_)==="object"||typeof _=="function"))return _;if(_!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return a(b)}function a(b){if(b===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b}function n(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function o(b){return o=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(_){return _.__proto__||Object.getPrototypeOf(_)},o(b)}var i={},l,f;function x(b,_,P){P||(P=Error);function M(A,h,p){return typeof _=="string"?_:_(A,h,p)}var E=function(A){S(p,A);var h=e(p);function p(k,w,R){var O;return z(thi
Line truncated
|
||||
`),at=H(q).split(`
|
||||
`),vt=0,it="";if(J==="strictEqual"&&b(W)==="object"&&b(q)==="object"&&W!==null&&q!==null&&(J="strictEqualObject"),rt.length===1&&at.length===1&&rt[0]!==at[0]){var Y=rt[0].length+at[0].length;if(Y<=j){if((b(W)!=="object"||W===null)&&(b(q)!=="object"||q===null)&&(W!==0||q!==0))return"".concat(O[J],`
|
||||
|
||||
`)+"".concat(rt[0]," !== ").concat(at[0],`
|
||||
`)}else if(J!=="strictEqualObject"){var ft=process.stderr&&process.stderr.isTTY?process.stderr.columns:80;if(Y<ft){for(;rt[0][vt]===at[0][vt];)vt++;vt>2&&(it=`
|
||||
`.concat(h(" ",vt),"^"),vt=0)}}}for(var ut=rt[rt.length-1],kt=at[at.length-1];ut===kt&&(vt++<2?st=`
|
||||
`.concat(ut).concat(st):lt=ut,rt.pop(),at.pop(),!(rt.length===0||at.length===0));)ut=rt[rt.length-1],kt=at[at.length-1];var zt=Math.max(rt.length,at.length);if(zt===0){var Pt=pt.split(`
|
||||
`.concat(ut).concat(st):lt=ut,rt.pop(),at.pop(),!(rt.length===0||at.length===0));)ut=rt[rt.length-1],kt=at[at.length-1];var It=Math.max(rt.length,at.length);if(It===0){var Pt=pt.split(`
|
||||
`);if(Pt.length>30)for(Pt[26]="".concat(p,"...").concat(R);Pt.length>27;)Pt.pop();return"".concat(O.notIdentical,`
|
||||
|
||||
`).concat(Pt.join(`
|
||||
@@ -171,7 +171,7 @@ function SG(d,s){for(var E=0;E<s.length;E++){const B=s[E];if(typeof B!="string"&
|
||||
`)}vt>3&&(st=`
|
||||
`.concat(p,"...").concat(R).concat(st),tt=!0),lt!==""&&(st=`
|
||||
`.concat(lt).concat(st),lt="");var qt=0,Wt=O[J]+`
|
||||
`.concat(k,"+ actual").concat(R," ").concat(w,"- expected").concat(R),Jt=" ".concat(p,"...").concat(R," Lines skipped");for(vt=0;vt<zt;vt++){var ve=vt-mt;if(rt.length<vt+1)ve>1&&vt>2&&(ve>4?(yt+=`
|
||||
`.concat(k,"+ actual").concat(R," ").concat(w,"- expected").concat(R),Jt=" ".concat(p,"...").concat(R," Lines skipped");for(vt=0;vt<It;vt++){var ve=vt-mt;if(rt.length<vt+1)ve>1&&vt>2&&(ve>4?(yt+=`
|
||||
`.concat(p,"...").concat(R),tt=!0):ve>3&&(yt+=`
|
||||
`.concat(at[vt-2]),qt++),yt+=`
|
||||
`.concat(at[vt-1]),qt++),mt=vt,lt+=`
|
||||
@@ -185,11 +185,11 @@ function SG(d,s){for(var E=0;E<s.length;E++){const B=s[E];if(typeof B!="string"&
|
||||
`.concat(rt[vt-1]),qt++),mt=vt,yt+=`
|
||||
`.concat(k,"+").concat(R," ").concat(me),lt+=`
|
||||
`.concat(w,"-").concat(R," ").concat(de),qt+=2):(yt+=lt,lt="",(ve===1||vt===0)&&(yt+=`
|
||||
`.concat(me),qt++))}if(qt>20&&vt<zt-2)return"".concat(Wt).concat(Jt,`
|
||||
`.concat(me),qt++))}if(qt>20&&vt<It-2)return"".concat(Wt).concat(Jt,`
|
||||
`).concat(yt,`
|
||||
`).concat(p,"...").concat(R).concat(lt,`
|
||||
`)+"".concat(p,"...").concat(R)}return"".concat(Wt).concat(tt?Jt:"",`
|
||||
`).concat(yt).concat(lt).concat(st).concat(it)}var U=function(W,q){n(lt,W);var J=o(lt);function lt(yt){var mt;if(S(this,lt),b(yt)!=="object"||yt===null)throw new C("options","Object",yt);var st=yt.message,tt=yt.operator,pt=yt.stackStartFn,rt=yt.actual,at=yt.expected,vt=Error.stackTraceLimit;if(Error.stackTraceLimit=0,st!=null)mt=J.call(this,String(st));else if(process.stderr&&process.stderr.isTTY&&(process.stderr&&process.stderr.getColorDepth&&process.stderr.getColorDepth()!==1?(p="\x1B[34m",k="\x1B[32m",R="\x1B[39m",w="\x1B[31m"):(p="",k="",R="",w="")),b(rt)==="object"&&rt!==null&&b(at)==="object"&&at!==null&&"stack"in rt&&rt instanceof Error&&"stack"in at&&at instanceof Error&&(rt=V(rt),at=V(at)),tt==="deepStrictEqual"||tt==="strictEqual")mt=J.call(this,F(rt,at,tt));else if(tt==="notDeepStrictEqual"||tt==="notStrictEqual"){var it=O[tt],Y=H(rt).split(`
|
||||
`).concat(yt).concat(lt).concat(st).concat(it)}var U=function(W,q){n(lt,W);var J=o(lt);function lt(yt){var mt;if(S(this,lt),b(yt)!=="object"||yt===null)throw new E("options","Object",yt);var st=yt.message,tt=yt.operator,pt=yt.stackStartFn,rt=yt.actual,at=yt.expected,vt=Error.stackTraceLimit;if(Error.stackTraceLimit=0,st!=null)mt=J.call(this,String(st));else if(process.stderr&&process.stderr.isTTY&&(process.stderr&&process.stderr.getColorDepth&&process.stderr.getColorDepth()!==1?(p="\x1B[34m",k="\x1B[32m",R="\x1B[39m",w="\x1B[31m"):(p="",k="",R="",w="")),b(rt)==="object"&&rt!==null&&b(at)==="object"&&at!==null&&"stack"in rt&&rt instanceof Error&&"stack"in at&&at instanceof Error&&(rt=V(rt),at=V(at)),tt==="deepStrictEqual"||tt==="strictEqual")mt=J.call(this,F(rt,at,tt));else if(tt==="notDeepStrictEqual"||tt==="notStrictEqual"){var it=O[tt],Y=H(rt).split(`
|
||||
`);if(tt==="notStrictEqual"&&b(rt)==="object"&&rt!==null&&(it=O.notStrictEqualObject),Y.length>30)for(Y[26]="".concat(p,"...").concat(R);Y.length>27;)Y.pop();Y.length===1?mt=J.call(this,"".concat(it," ").concat(Y[0])):mt=J.call(this,"".concat(it,`
|
||||
|
||||
`).concat(Y.join(`
|
||||
@@ -202,8 +202,8 @@ function SG(d,s){for(var E=0;E<s.length;E++){const B=s[E];if(typeof B!="string"&
|
||||
|
||||
should equal
|
||||
|
||||
`):ut=" ".concat(tt," ").concat(ut)),mt=J.call(this,"".concat(ft).concat(ut))}return Error.stackTraceLimit=vt,mt.generatedMessage=!st,Object.defineProperty(l(mt),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),mt.code="ERR_ASSERTION",mt.actual=rt,mt.expected=at,mt.operator=tt,Error.captureStackTrace&&Error.captureStackTrace(l(mt),pt),mt.stack,mt.name="AssertionError",i(mt)}return e(lt,[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:q,value:function(yt,mt){return P(this,g(g({},mt),{},{customInspect:!1,depth:0}))}}]),lt}(f(Error),P.custom);Z.exports=U}),J7=Dt((Q,Z)=>{var c=Object.prototype.toString;Z.exports=function(g){var I=c.call(g),S=I==="[object Arguments]";return S||(S=I!=="[object Array]"&&g!==null&&typeof g=="object"&&typeof g.length=="number"&&g.length>=0&&c.call(g.callee)==="[object Function]"),S}}),kN=Dt((Q,Z)=>{var c;Object.keys||(g=Object.prototype.hasOwnProperty,I=Object.prototype.toString,S=J7(),t=Object.prototype.propertyIsEnumerable,e=!t.call({toString:null},"toString"),r=t.call(function(){},"prototype"),a=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],n=function(f){var x=f.constructor;return x&&x.prototype===f},o={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},i=function(){if(typeof window>"u")return!1;for(var f in window)try{if(!o["$"+f]&&g.call(window,f)&&window[f]!==null&&typeof window[f]=="object")try{n(window[f])}catch{return!0}}catch{return!0}return!1}(),l=function(f){if(typeof window>"u"||!i)return n(f);try{return n(f)}catch{return!1}},c=function(f){var x=f!==null&&typeof f=="object",y=I.call(f)==="[object Function]",v=S(f),T=x&&I.call(f)==="[object String]",u=[];if(!x&&!y&&!v)throw new TypeError("Object.keys called on a non-object");var b=r&&y;if(T&&f.length>0&&!g.call(f,0))for(var _=0;_<f.length;++_)u.push(String(_));if(v&&f.length>0)for(var P=0;P<f.length;++P)u.push(String(P));else for(var M in f)!(b&&M==="prototype")&&g.call(f,M)&&u.push(String(M));if(e)for(var C=l(f),A=0;A<a.length;++A)!(C&&a[A]==="constructor")&&g.call(f,a[A])&&u.push(a[A]);return u});var g,I,S,t,e,r,a,n,o,i,l;Z.exports=c}),Q7=Dt((Q,Z)=>{var c=Array.prototype.slice,g=J7(),I=Object.keys,S=I?function(e){return I(e)}:kN(),t=Object.keys;S.shim=function(){if(Object.keys){var e=function(){var r=Object.keys(arguments);return r&&r.length===arguments.length}(1,2);e||(Object.keys=function(r){return g(r)?t(c.call(r)):t(r)})}else Object.keys=S;return Object.keys||S},Z.exports=S}),TN=Dt((Q,Z)=>{var c=Q7(),g=ck()(),I=sb(),S=Object,t=I("Array.prototype.push"),e=I("Object.prototype.propertyIsEnumerable"),r=g?Object.getOwnPropertySymbols:null;Z.exports=function(a,n){if(a==null)throw new TypeError("target must be an object");var o=S(a);if(arguments.length===1)return o;for(var i=1;i<arguments.length;++i){var l=S(arguments[i]),f=c(l),x=g&&(Object.getOwnPropertySymbols||r);if(x)for(var y=x(l),v=0;v<y.length;++v){var T=y[v];e(l,T)&&t(f,T)}for(var u=0;u<f.length;++u){var b=f[u];if(e(l,b)){var _=l[b];o[b]=_}}}return o}}),AN=Dt((Q,Z)=>{var c=TN(),g=function(){if(!Object.assign)return!1;for(var S="abcdefghijklmnopqrst",t=S.split(""),e={},r=0;r<t.length;++r)e[t[r]]=t[r];var a=Object.assign({},e),n="";for(var o in a)n+=o;return S!==n},I=function(){if(!Object.assign||!Object.preventExtensions)return!1;var S=Object.preventExtensions({1:2});try{Object.assign(S,"xy")}catch{return S[1]==="y"}return!1};Z.exports=function(){return!Object.assign||g()||I()?c:Object.assign}}),t9=Dt((Q,Z)=>{var c=function(g){return g!==g};Z.exports=function(g,I){return g===0&&I===0?1/g===1/I:!!(g===I||c(g)&&c(I))}}),pk=Dt((Q,Z)=>{var c=t9();Z.exports=function(){return typeof Object.is=="function"?Object.is:c}}),t3=Dt((Q,Z)=>{var c=Q7(),g=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",I=Object.prototype.toString,S=Array.prototype.concat,t=Object.defineProperty,e=function(i){return typeof i=="function"&&I.call(i)==="[object Function]"},r=N7()(),a=t&&r,n=function(i,l,f,x){if(l in i){if(x===!0){if(i[l]===f)return}else if(!e(x)||!x())return}a?t(i,l,{configurable:!0,enumerable:!1,value:f,writable:!0}):i[l]=f},o=function(i,l){var f=arguments.length>2?arguments[2]:{},x=c(l);g&&(x=S.call(x,Object.getOwnPropertySymbols(l)));for(var y=0;y<x.length;y+=1)n(i,x[y],l[x[y]],f[x[y]])};o.supportsDescriptors=!!a,Z.exports=o}),MN=Dt((Q,Z)=>{var c=pk(),g=t3();Z.exports=function(){var I=c();return g(Object,{is:I},{is:function(){return Object.is!==I}}),I}}),SN=Dt((Q,Z)=>{var c=t3(),g=Qw(),I=t9(),S=pk(),t=MN(),e=g(S(),Object);c(e,{getPolyfill:S,implementation:I,shim:t}),Z.exports=e}),e9=Dt((Q,Z)=>{Z.exp
Line truncated
|
||||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function I(ue,Tt){if(ue){if(typeof ue=="string")return S(ue,Tt);var Lt=Object.prototype.toString.call(ue).slice(8,-1);if(Lt==="Object"&&ue.constructor&&(Lt=ue.constructor.name),Lt==="Map"||Lt==="Set")return Array.from(ue);if(Lt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Lt))return S(ue,Tt)}}function S(ue,Tt){(Tt==null||Tt>ue.length)&&(Tt=ue.length);for(var Lt=0,Mt=new Array(Tt);Lt<Tt;Lt++)Mt[Lt]=ue[Lt];return Mt}function t(ue,Tt){var Lt=ue==null?null:typeof Symbol<"u"&&ue[Symbol.iterator]||ue["@@iterator"];if(Lt!=null){var Mt,te,ye,le,Me=[],He=!0,Ge=!1;try{if(ye=(Lt=Lt.call(ue)).next,Tt!==0)for(;!(He=(Mt=ye.call(Lt)).done)&&(Me.push(Mt.value),Me.length!==Tt);He=!0);}catch(cr){Ge=!0,te=cr}finally{try{if(!He&&Lt.return!=null&&(le=Lt.return(),Object(le)!==le))return}finally{if(Ge)throw te}}return Me}}function e(ue){if(Array.isArray(ue))return ue}function r(ue){"@babel/helpers - typeof";return r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Tt){return typeof Tt}:function(Tt){return Tt&&typeof Symbol=="function"&&Tt.constructor===Symbol&&Tt!==Symbol.prototype?"symbol":typeof Tt},r(ue)}var a=/a/g.flags!==void 0,n=function(ue){var Tt=[];return ue.forEach(function(Lt){return Tt.push(Lt)}),Tt},o=function(ue){var Tt=[];return ue.forEach(function(Lt,Mt){return Tt.push([Mt,Lt])}),Tt},i=Object.is?Object.is:SN(),l=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},f=Number.isNaN?Number.isNaN:CN();function x(ue){return ue.call.bind(ue)}var y=x(Object.prototype.hasOwnProperty),v=x(Object.prototype.propertyIsEnumerable),T=x(Object.prototype.toString),u=lb().types,b=u.isAnyArrayBuffer,_=u.isArrayBufferView,P=u.isDate,M=u.isMap,C=u.isRegExp,A=u.isSet,h=u.isNativeError,p=u.isBoxedPrimitive,k=u.isNumberObject,w=u.isStringObject,R=u.isBooleanObject,O=u.isBigIntObject,j=u.isSymbolObject,V=u.isFloat32Array,H=u.isFloat64Array;function F(ue){if(ue.length===0||ue.length>10)return!0;for(var Tt=0;Tt<ue.length;Tt++){var Lt=ue.charCodeAt(Tt);if(Lt<48||Lt>57)return!0}return ue.length===10&&ue>=Math.pow(2,32)}function U(ue){return Object.keys(ue).filter(F).concat(l(ue).filter(Object.prototype.propertyIsEnumerable.bind(ue)))}function W(ue,Tt){if(ue===Tt)return 0;for(var Lt=ue.length,Mt=Tt.length,te=0,ye=Math.min(Lt,Mt);te<ye;++te)if(ue[te]!==Tt[te]){Lt=ue[te],Mt=Tt[te];break}return Lt<Mt?-1:Mt<Lt?1:0}var q=!0,J=!1,lt=0,yt=1,mt=2,st=3;function tt(ue,Tt){return a?ue.source===Tt.source&&ue.flags===Tt.flags:RegExp.prototype.toString.call(ue)===RegExp.prototype.toString.call(Tt)}function pt(ue,Tt){if(ue.byteLength!==Tt.byteLength)return!1;for(var Lt=0;Lt<ue.byteLength;Lt++)if(ue[Lt]!==Tt[Lt])return!1;return!0}function rt(ue,Tt){return ue.byteLength!==Tt.byteLength?!1:W(new Uint8Array(ue.buffer,ue.byteOffset,ue.byteLength),new Uint8Array(Tt.buffer,Tt.byteOffset,Tt.byteLength))===0}function at(ue,Tt){return ue.byteLength===Tt.byteLength&&W(new Uint8Array(ue),new Uint8Array(Tt))===0}function vt(ue,Tt){return k(ue)?k(Tt)&&i(Number.prototype.valueOf.call(ue),Number.prototype.valueOf.call(Tt)):w(ue)?w(Tt)&&String.prototype.valueOf.call(ue)===String.prototype.valueOf.call(Tt):R(ue)?R(Tt)&&Boolean.prototype.valueOf.call(ue)===Boolean.prototype.valueOf.call(Tt):O(ue)?O(Tt)&&BigInt.prototype.valueOf.call(ue)===BigInt.prototype.valueOf.call(Tt):j(Tt)&&Symbol.prototype.valueOf.call(ue)===Symbol.prototype.valueOf.call(Tt)}function it(ue,Tt,Lt,Mt){if(ue===Tt)return ue!==0?!0:Lt?i(ue,Tt):!0;if(Lt){if(r(ue)!=="object")return typeof ue=="number"&&f(ue)&&f(Tt);if(r(Tt)!=="object"||ue===null||Tt===null||Object.getPrototypeOf(ue)!==Object.getPrototypeOf(Tt))return!1}else{if(ue===null||r(ue)!=="object")return Tt===null||r(Tt)!=="object"?ue==Tt:!1;if(Tt===null||r(Tt)!=="object")return!1}var te=T(ue),ye=T(Tt);if(te!==ye)return!1;if(Array.isArray(ue)){if(ue.length!==Tt.length)return!1;var le=U(ue),Me=U(Tt);return le.length!==Me.length?!1:ft(ue,Tt,Lt,Mt,yt,le)}if(te==="[object Object]"&&(!M(ue)&&M(Tt)||!A(ue)&&A(Tt)))return!1;if(P(ue)){if(!P(Tt)||Date.prototype.getTime.call(ue)!==Date.prototype.getTime.call(Tt))return!1}else if(C(ue)){if(!C(Tt)||!tt(ue,Tt))return!1}else if(h(ue)||ue instanceof Error){if(ue.message!==Tt.message||ue.name!==Tt.name)return!1}else if(_(ue)){if(!Lt&&(V(ue)||H(ue))){if(!pt(ue,Tt))return!1}else if(!rt(ue,Tt))return!1;var He=U(ue),Ge=U(Tt);return He.length!==Ge.length?!1:ft(ue,Tt,Lt,Mt,lt,He)}else{if(A(ue))return!A(Tt)||ue.size!==Tt.size?!1:ft(ue,Tt,Lt,Mt,mt);if(M(ue))return!M(Tt)||ue.size!==Tt.size?!1:ft(ue,Tt,Lt,Mt,st);if(b(ue)){if(!at(ue,Tt))return!1}else if(p(ue)&&!vt(ue,Tt))return!1}return ft(ue,Tt,Lt,Mt,lt)}function Y(ue,Tt){return Tt.filter(function(Lt){return v(ue,Lt)})}function ft(ue,Tt,Lt,Mt,te,ye){if(arguments.length===5){ye=Object.keys(ue);var le=Object.keys(Tt);if(ye.length!==le.length)return!1}for(var Me=0;Me<ye.length;Me++)if(!y(Tt,ye[Me]))return!1;if(Lt&&arguments.length===5)
Line truncated
|
||||
`):ut=" ".concat(tt," ").concat(ut)),mt=J.call(this,"".concat(ft).concat(ut))}return Error.stackTraceLimit=vt,mt.generatedMessage=!st,Object.defineProperty(l(mt),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),mt.code="ERR_ASSERTION",mt.actual=rt,mt.expected=at,mt.operator=tt,Error.captureStackTrace&&Error.captureStackTrace(l(mt),pt),mt.stack,mt.name="AssertionError",i(mt)}return e(lt,[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:q,value:function(yt,mt){return P(this,g(g({},mt),{},{customInspect:!1,depth:0}))}}]),lt}(f(Error),P.custom);Z.exports=U}),J7=Dt((Q,Z)=>{var c=Object.prototype.toString;Z.exports=function(g){var z=c.call(g),S=z==="[object Arguments]";return S||(S=z!=="[object Array]"&&g!==null&&typeof g=="object"&&typeof g.length=="number"&&g.length>=0&&c.call(g.callee)==="[object Function]"),S}}),kN=Dt((Q,Z)=>{var c;Object.keys||(g=Object.prototype.hasOwnProperty,z=Object.prototype.toString,S=J7(),t=Object.prototype.propertyIsEnumerable,e=!t.call({toString:null},"toString"),r=t.call(function(){},"prototype"),a=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],n=function(f){var x=f.constructor;return x&&x.prototype===f},o={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},i=function(){if(typeof window>"u")return!1;for(var f in window)try{if(!o["$"+f]&&g.call(window,f)&&window[f]!==null&&typeof window[f]=="object")try{n(window[f])}catch{return!0}}catch{return!0}return!1}(),l=function(f){if(typeof window>"u"||!i)return n(f);try{return n(f)}catch{return!1}},c=function(f){var x=f!==null&&typeof f=="object",y=z.call(f)==="[object Function]",v=S(f),T=x&&z.call(f)==="[object String]",u=[];if(!x&&!y&&!v)throw new TypeError("Object.keys called on a non-object");var b=r&&y;if(T&&f.length>0&&!g.call(f,0))for(var _=0;_<f.length;++_)u.push(String(_));if(v&&f.length>0)for(var P=0;P<f.length;++P)u.push(String(P));else for(var M in f)!(b&&M==="prototype")&&g.call(f,M)&&u.push(String(M));if(e)for(var E=l(f),A=0;A<a.length;++A)!(E&&a[A]==="constructor")&&g.call(f,a[A])&&u.push(a[A]);return u});var g,z,S,t,e,r,a,n,o,i,l;Z.exports=c}),Q7=Dt((Q,Z)=>{var c=Array.prototype.slice,g=J7(),z=Object.keys,S=z?function(e){return z(e)}:kN(),t=Object.keys;S.shim=function(){if(Object.keys){var e=function(){var r=Object.keys(arguments);return r&&r.length===arguments.length}(1,2);e||(Object.keys=function(r){return g(r)?t(c.call(r)):t(r)})}else Object.keys=S;return Object.keys||S},Z.exports=S}),TN=Dt((Q,Z)=>{var c=Q7(),g=fk()(),z=lb(),S=Object,t=z("Array.prototype.push"),e=z("Object.prototype.propertyIsEnumerable"),r=g?Object.getOwnPropertySymbols:null;Z.exports=function(a,n){if(a==null)throw new TypeError("target must be an object");var o=S(a);if(arguments.length===1)return o;for(var i=1;i<arguments.length;++i){var l=S(arguments[i]),f=c(l),x=g&&(Object.getOwnPropertySymbols||r);if(x)for(var y=x(l),v=0;v<y.length;++v){var T=y[v];e(l,T)&&t(f,T)}for(var u=0;u<f.length;++u){var b=f[u];if(e(l,b)){var _=l[b];o[b]=_}}}return o}}),AN=Dt((Q,Z)=>{var c=TN(),g=function(){if(!Object.assign)return!1;for(var S="abcdefghijklmnopqrst",t=S.split(""),e={},r=0;r<t.length;++r)e[t[r]]=t[r];var a=Object.assign({},e),n="";for(var o in a)n+=o;return S!==n},z=function(){if(!Object.assign||!Object.preventExtensions)return!1;var S=Object.preventExtensions({1:2});try{Object.assign(S,"xy")}catch{return S[1]==="y"}return!1};Z.exports=function(){return!Object.assign||g()||z()?c:Object.assign}}),t9=Dt((Q,Z)=>{var c=function(g){return g!==g};Z.exports=function(g,z){return g===0&&z===0?1/g===1/z:!!(g===z||c(g)&&c(z))}}),gk=Dt((Q,Z)=>{var c=t9();Z.exports=function(){return typeof Object.is=="function"?Object.is:c}}),e3=Dt((Q,Z)=>{var c=Q7(),g=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",z=Object.prototype.toString,S=Array.prototype.concat,t=Object.defineProperty,e=function(i){return typeof i=="function"&&z.call(i)==="[object Function]"},r=N7()(),a=t&&r,n=function(i,l,f,x){if(l in i){if(x===!0){if(i[l]===f)return}else if(!e(x)||!x())return}a?t(i,l,{configurable:!0,enumerable:!1,value:f,writable:!0}):i[l]=f},o=function(i,l){var f=arguments.length>2?arguments[2]:{},x=c(l);g&&(x=S.call(x,Object.getOwnPropertySymbols(l)));for(var y=0;y<x.length;y+=1)n(i,x[y],l[x[y]],f[x[y]])};o.supportsDescriptors=!!a,Z.exports=o}),MN=Dt((Q,Z)=>{var c=gk(),g=e3();Z.exports=function(){var z=c();return g(Object,{is:z},{is:function(){return Object.is!==z}}),z}}),SN=Dt((Q,Z)=>{var c=e3(),g=t3(),z=t9(),S=gk(),t=MN(),e=g(S(),Object);c(e,{getPolyfill:S,implementation:z,shim:t}),Z.exports=e}),e9=Dt((Q,Z)=>{Z.exp
Line truncated
|
||||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function z(ue,Tt){if(ue){if(typeof ue=="string")return S(ue,Tt);var Lt=Object.prototype.toString.call(ue).slice(8,-1);if(Lt==="Object"&&ue.constructor&&(Lt=ue.constructor.name),Lt==="Map"||Lt==="Set")return Array.from(ue);if(Lt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Lt))return S(ue,Tt)}}function S(ue,Tt){(Tt==null||Tt>ue.length)&&(Tt=ue.length);for(var Lt=0,Mt=new Array(Tt);Lt<Tt;Lt++)Mt[Lt]=ue[Lt];return Mt}function t(ue,Tt){var Lt=ue==null?null:typeof Symbol<"u"&&ue[Symbol.iterator]||ue["@@iterator"];if(Lt!=null){var Mt,te,ye,le,Me=[],He=!0,Ge=!1;try{if(ye=(Lt=Lt.call(ue)).next,Tt!==0)for(;!(He=(Mt=ye.call(Lt)).done)&&(Me.push(Mt.value),Me.length!==Tt);He=!0);}catch(cr){Ge=!0,te=cr}finally{try{if(!He&&Lt.return!=null&&(le=Lt.return(),Object(le)!==le))return}finally{if(Ge)throw te}}return Me}}function e(ue){if(Array.isArray(ue))return ue}function r(ue){"@babel/helpers - typeof";return r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Tt){return typeof Tt}:function(Tt){return Tt&&typeof Symbol=="function"&&Tt.constructor===Symbol&&Tt!==Symbol.prototype?"symbol":typeof Tt},r(ue)}var a=/a/g.flags!==void 0,n=function(ue){var Tt=[];return ue.forEach(function(Lt){return Tt.push(Lt)}),Tt},o=function(ue){var Tt=[];return ue.forEach(function(Lt,Mt){return Tt.push([Mt,Lt])}),Tt},i=Object.is?Object.is:SN(),l=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},f=Number.isNaN?Number.isNaN:EN();function x(ue){return ue.call.bind(ue)}var y=x(Object.prototype.hasOwnProperty),v=x(Object.prototype.propertyIsEnumerable),T=x(Object.prototype.toString),u=ub().types,b=u.isAnyArrayBuffer,_=u.isArrayBufferView,P=u.isDate,M=u.isMap,E=u.isRegExp,A=u.isSet,h=u.isNativeError,p=u.isBoxedPrimitive,k=u.isNumberObject,w=u.isStringObject,R=u.isBooleanObject,O=u.isBigIntObject,j=u.isSymbolObject,V=u.isFloat32Array,H=u.isFloat64Array;function F(ue){if(ue.length===0||ue.length>10)return!0;for(var Tt=0;Tt<ue.length;Tt++){var Lt=ue.charCodeAt(Tt);if(Lt<48||Lt>57)return!0}return ue.length===10&&ue>=Math.pow(2,32)}function U(ue){return Object.keys(ue).filter(F).concat(l(ue).filter(Object.prototype.propertyIsEnumerable.bind(ue)))}function W(ue,Tt){if(ue===Tt)return 0;for(var Lt=ue.length,Mt=Tt.length,te=0,ye=Math.min(Lt,Mt);te<ye;++te)if(ue[te]!==Tt[te]){Lt=ue[te],Mt=Tt[te];break}return Lt<Mt?-1:Mt<Lt?1:0}var q=!0,J=!1,lt=0,yt=1,mt=2,st=3;function tt(ue,Tt){return a?ue.source===Tt.source&&ue.flags===Tt.flags:RegExp.prototype.toString.call(ue)===RegExp.prototype.toString.call(Tt)}function pt(ue,Tt){if(ue.byteLength!==Tt.byteLength)return!1;for(var Lt=0;Lt<ue.byteLength;Lt++)if(ue[Lt]!==Tt[Lt])return!1;return!0}function rt(ue,Tt){return ue.byteLength!==Tt.byteLength?!1:W(new Uint8Array(ue.buffer,ue.byteOffset,ue.byteLength),new Uint8Array(Tt.buffer,Tt.byteOffset,Tt.byteLength))===0}function at(ue,Tt){return ue.byteLength===Tt.byteLength&&W(new Uint8Array(ue),new Uint8Array(Tt))===0}function vt(ue,Tt){return k(ue)?k(Tt)&&i(Number.prototype.valueOf.call(ue),Number.prototype.valueOf.call(Tt)):w(ue)?w(Tt)&&String.prototype.valueOf.call(ue)===String.prototype.valueOf.call(Tt):R(ue)?R(Tt)&&Boolean.prototype.valueOf.call(ue)===Boolean.prototype.valueOf.call(Tt):O(ue)?O(Tt)&&BigInt.prototype.valueOf.call(ue)===BigInt.prototype.valueOf.call(Tt):j(Tt)&&Symbol.prototype.valueOf.call(ue)===Symbol.prototype.valueOf.call(Tt)}function it(ue,Tt,Lt,Mt){if(ue===Tt)return ue!==0?!0:Lt?i(ue,Tt):!0;if(Lt){if(r(ue)!=="object")return typeof ue=="number"&&f(ue)&&f(Tt);if(r(Tt)!=="object"||ue===null||Tt===null||Object.getPrototypeOf(ue)!==Object.getPrototypeOf(Tt))return!1}else{if(ue===null||r(ue)!=="object")return Tt===null||r(Tt)!=="object"?ue==Tt:!1;if(Tt===null||r(Tt)!=="object")return!1}var te=T(ue),ye=T(Tt);if(te!==ye)return!1;if(Array.isArray(ue)){if(ue.length!==Tt.length)return!1;var le=U(ue),Me=U(Tt);return le.length!==Me.length?!1:ft(ue,Tt,Lt,Mt,yt,le)}if(te==="[object Object]"&&(!M(ue)&&M(Tt)||!A(ue)&&A(Tt)))return!1;if(P(ue)){if(!P(Tt)||Date.prototype.getTime.call(ue)!==Date.prototype.getTime.call(Tt))return!1}else if(E(ue)){if(!E(Tt)||!tt(ue,Tt))return!1}else if(h(ue)||ue instanceof Error){if(ue.message!==Tt.message||ue.name!==Tt.name)return!1}else if(_(ue)){if(!Lt&&(V(ue)||H(ue))){if(!pt(ue,Tt))return!1}else if(!rt(ue,Tt))return!1;var He=U(ue),Ge=U(Tt);return He.length!==Ge.length?!1:ft(ue,Tt,Lt,Mt,lt,He)}else{if(A(ue))return!A(Tt)||ue.size!==Tt.size?!1:ft(ue,Tt,Lt,Mt,mt);if(M(ue))return!M(Tt)||ue.size!==Tt.size?!1:ft(ue,Tt,Lt,Mt,st);if(b(ue)){if(!at(ue,Tt))return!1}else if(p(ue)&&!vt(ue,Tt))return!1}return ft(ue,Tt,Lt,Mt,lt)}function Y(ue,Tt){return Tt.filter(function(Lt){return v(ue,Lt)})}function ft(ue,Tt,Lt,Mt,te,ye){if(arguments.length===5){ye=Object.keys(ue);var le=Object.keys(Tt);if(ye.length!==le.length)return!1}for(var Me=0;Me<ye.length;Me++)if(!y(Tt,ye[Me]))return!1;if(Lt&&arguments.length===5)
Line truncated
|
||||
`)+'Actual message: "'.concat(st&&st.message,'"'),stackStartFn:mt})}throw st}}A.throws=function mt(st){for(var tt=arguments.length,pt=new Array(tt>1?tt-1:0),rt=1;rt<tt;rt++)pt[rt-1]=arguments[rt];q.apply(void 0,[mt,F(st)].concat(pt))},A.rejects=function mt(st){for(var tt=arguments.length,pt=new Array(tt>1?tt-1:0),rt=1;rt<tt;rt++)pt[rt-1]=arguments[rt];return W(st).then(function(at){return q.apply(void 0,[mt,at].concat(pt))})},A.doesNotThrow=function mt(st){for(var tt=arguments.length,pt=new Array(tt>1?tt-1:0),rt=1;rt<tt;rt++)pt[rt-1]=arguments[rt];J.apply(void 0,[mt,F(st)].concat(pt))},A.doesNotReject=function mt(st){for(var tt=arguments.length,pt=new Array(tt>1?tt-1:0),rt=1;rt<tt;rt++)pt[rt-1]=arguments[rt];return W(st).then(function(at){return J.apply(void 0,[mt,at].concat(pt))})},A.ifError=function mt(st){if(st!=null){var tt="ifError got unwanted exception: ";c(st)==="object"&&typeof st.message=="string"?st.message.length===0&&st.constructor?tt+=st.constructor.name:tt+=st.message:tt+=f(st);var pt=new i({actual:st,expected:null,operator:"ifError",message:tt,stackStartFn:mt}),rt=st.stack;if(typeof rt=="string"){var at=rt.split(`
|
||||
`);at.shift();for(var vt=pt.stack.split(`
|
||||
`),it=0;it<at.length;it++){var Y=vt.indexOf(at[it]);if(Y!==-1){vt=vt.slice(0,Y);break}}pt.stack="".concat(vt.join(`
|
||||
@@ -212,11 +212,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
||||
`))}throw pt}};function lt(mt,st,tt,pt,rt){if(!v(st))throw new r("regexp","RegExp",st);var at=rt==="match";if(typeof mt!="string"||b(st,mt)!==at){if(tt instanceof Error)throw tt;var vt=!tt;tt=tt||(typeof mt!="string"?'The "string" argument must be of type string. Received type '+"".concat(c(mt)," (").concat(f(mt),")"):(at?"The input did not match the regular expression ":"The input was expected to not match the regular expression ")+"".concat(f(st),`. Input:
|
||||
|
||||
`).concat(f(mt),`
|
||||
`));var it=new i({actual:mt,expected:st,message:tt,operator:rt,stackStartFn:pt});throw it.generatedMessage=vt,it}}A.match=function mt(st,tt,pt){lt(st,tt,pt,mt,"match")},A.doesNotMatch=function mt(st,tt,pt){lt(st,tt,pt,mt,"doesNotMatch")};function yt(){for(var mt=arguments.length,st=new Array(mt),tt=0;tt<mt;tt++)st[tt]=arguments[tt];w.apply(void 0,[yt,st.length].concat(st))}A.strict=T(yt,A,{equal:A.strictEqual,deepEqual:A.deepStrictEqual,notEqual:A.notStrictEqual,notDeepEqual:A.notDeepStrictEqual}),A.strict.strict=A.strict}),PN=Dt((Q,Z)=>{var c=1e3,g=c*60,I=g*60,S=I*24,t=S*365.25;Z.exports=function(o,i){i=i||{};var l=typeof o;if(l==="string"&&o.length>0)return e(o);if(l==="number"&&isNaN(o)===!1)return i.long?a(o):r(o);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(o))};function e(o){if(o=String(o),!(o.length>100)){var i=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(o);if(i){var l=parseFloat(i[1]),f=(i[2]||"ms").toLowerCase();switch(f){case"years":case"year":case"yrs":case"yr":case"y":return l*t;case"days":case"day":case"d":return l*S;case"hours":case"hour":case"hrs":case"hr":case"h":return l*I;case"minutes":case"minute":case"mins":case"min":case"m":return l*g;case"seconds":case"second":case"secs":case"sec":case"s":return l*c;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return l;default:return}}}}function r(o){return o>=S?Math.round(o/S)+"d":o>=I?Math.round(o/I)+"h":o>=g?Math.round(o/g)+"m":o>=c?Math.round(o/c)+"s":o+"ms"}function a(o){return n(o,S,"day")||n(o,I,"hour")||n(o,g,"minute")||n(o,c,"second")||o+" ms"}function n(o,i,l){if(!(o<i))return o<i*1.5?Math.floor(o/i)+" "+l:Math.ceil(o/i)+" "+l+"s"}}),IN=Dt((Q,Z)=>{Q=Z.exports=I.debug=I.default=I,Q.coerce=r,Q.disable=t,Q.enable=S,Q.enabled=e,Q.humanize=PN(),Q.names=[],Q.skips=[],Q.formatters={};var c;function g(a){var n=0,o;for(o in a)n=(n<<5)-n+a.charCodeAt(o),n|=0;return Q.colors[Math.abs(n)%Q.colors.length]}function I(a){function n(){if(n.enabled){var o=n,i=+new Date,l=i-(c||i);o.diff=l,o.prev=c,o.curr=i,c=i;for(var f=new Array(arguments.length),x=0;x<f.length;x++)f[x]=arguments[x];f[0]=Q.coerce(f[0]),typeof f[0]!="string"&&f.unshift("%O");var y=0;f[0]=f[0].replace(/%([a-zA-Z%])/g,function(T,u){if(T==="%%")return T;y++;var b=Q.formatters[u];if(typeof b=="function"){var _=f[y];T=b.call(o,_),f.splice(y,1),y--}return T}),Q.formatArgs.call(o,f);var v=n.log||Q.log||console.log.bind(console);v.apply(o,f)}}return n.namespace=a,n.enabled=Q.enabled(a),n.useColors=Q.useColors(),n.color=g(a),typeof Q.init=="function"&&Q.init(n),n}function S(a){Q.save(a),Q.names=[],Q.skips=[];for(var n=(typeof a=="string"?a:"").split(/[\s,]+/),o=n.length,i=0;i<o;i++)n[i]&&(a=n[i].replace(/\*/g,".*?"),a[0]==="-"?Q.skips.push(new RegExp("^"+a.substr(1)+"$")):Q.names.push(new RegExp("^"+a+"$")))}function t(){Q.enable("")}function e(a){var n,o;for(n=0,o=Q.skips.length;n<o;n++)if(Q.skips[n].test(a))return!1;for(n=0,o=Q.names.length;n<o;n++)if(Q.names[n].test(a))return!0;return!1}function r(a){return a instanceof Error?a.stack||a.message:a}}),zN=Dt((Q,Z)=>{Q=Z.exports=IN(),Q.log=I,Q.formatArgs=g,Q.save=S,Q.load=t,Q.useColors=c,Q.storage=typeof chrome<"u"&&typeof chrome.storage<"u"?chrome.storage.local:e(),Q.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"];function c(){return typeof window<"u"&&window.process&&window.process.type==="renderer"?!0:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}Q.formatters.j=function(r){try{return JSON.stringify(r)}catch(a){return"[UnexpectedJSONParseError]: "+a.message}};function g(r){var a=this.useColors;if(r[0]=(a?"%c":"")+this.namespace+(a?" %c":" ")+r[0]+(a?"%c ":" ")+"+"+Q.humanize(this.diff),!!a){var n="color: "+this.color;r.splice(1,0,n,"color: inherit");var o=0,i=0;r[0].replace(/%[a-zA-Z%]/g,function(l){l!=="%%"&&(o++,l==="%c"&&(i=o))}),r.splice(i,0,n)}}function I(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function S(r){try{r==null?Q.storage.removeItem("debug"):Q.storage.debug=r}catch{}}function t(){var r;try{r=Q.storage.debug}catch{}return!r&&typeof process<"u"&&"env"in process&&(r=s.DEBUG),r}Q.enable(t());function e(){try{return window.localStorage}catch{}}}),ON=Dt((Q,Z)=>{var c=e3(),g=zN()("stream-parser");Z.exports=r;var I=-1,S=0,t=1,e=2;function r(u){var b=u&&typeof u._transform=="function",_=u&&typeof u._write=="function";if(!b&&!_)throw new Error("must pass a Writable or Transform
Line truncated
|
||||
`));var it=new i({actual:mt,expected:st,message:tt,operator:rt,stackStartFn:pt});throw it.generatedMessage=vt,it}}A.match=function mt(st,tt,pt){lt(st,tt,pt,mt,"match")},A.doesNotMatch=function mt(st,tt,pt){lt(st,tt,pt,mt,"doesNotMatch")};function yt(){for(var mt=arguments.length,st=new Array(mt),tt=0;tt<mt;tt++)st[tt]=arguments[tt];w.apply(void 0,[yt,st.length].concat(st))}A.strict=T(yt,A,{equal:A.strictEqual,deepEqual:A.deepStrictEqual,notEqual:A.notStrictEqual,notDeepEqual:A.notDeepStrictEqual}),A.strict.strict=A.strict}),PN=Dt((Q,Z)=>{var c=1e3,g=c*60,z=g*60,S=z*24,t=S*365.25;Z.exports=function(o,i){i=i||{};var l=typeof o;if(l==="string"&&o.length>0)return e(o);if(l==="number"&&isNaN(o)===!1)return i.long?a(o):r(o);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(o))};function e(o){if(o=String(o),!(o.length>100)){var i=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(o);if(i){var l=parseFloat(i[1]),f=(i[2]||"ms").toLowerCase();switch(f){case"years":case"year":case"yrs":case"yr":case"y":return l*t;case"days":case"day":case"d":return l*S;case"hours":case"hour":case"hrs":case"hr":case"h":return l*z;case"minutes":case"minute":case"mins":case"min":case"m":return l*g;case"seconds":case"second":case"secs":case"sec":case"s":return l*c;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return l;default:return}}}}function r(o){return o>=S?Math.round(o/S)+"d":o>=z?Math.round(o/z)+"h":o>=g?Math.round(o/g)+"m":o>=c?Math.round(o/c)+"s":o+"ms"}function a(o){return n(o,S,"day")||n(o,z,"hour")||n(o,g,"minute")||n(o,c,"second")||o+" ms"}function n(o,i,l){if(!(o<i))return o<i*1.5?Math.floor(o/i)+" "+l:Math.ceil(o/i)+" "+l+"s"}}),zN=Dt((Q,Z)=>{Q=Z.exports=z.debug=z.default=z,Q.coerce=r,Q.disable=t,Q.enable=S,Q.enabled=e,Q.humanize=PN(),Q.names=[],Q.skips=[],Q.formatters={};var c;function g(a){var n=0,o;for(o in a)n=(n<<5)-n+a.charCodeAt(o),n|=0;return Q.colors[Math.abs(n)%Q.colors.length]}function z(a){function n(){if(n.enabled){var o=n,i=+new Date,l=i-(c||i);o.diff=l,o.prev=c,o.curr=i,c=i;for(var f=new Array(arguments.length),x=0;x<f.length;x++)f[x]=arguments[x];f[0]=Q.coerce(f[0]),typeof f[0]!="string"&&f.unshift("%O");var y=0;f[0]=f[0].replace(/%([a-zA-Z%])/g,function(T,u){if(T==="%%")return T;y++;var b=Q.formatters[u];if(typeof b=="function"){var _=f[y];T=b.call(o,_),f.splice(y,1),y--}return T}),Q.formatArgs.call(o,f);var v=n.log||Q.log||console.log.bind(console);v.apply(o,f)}}return n.namespace=a,n.enabled=Q.enabled(a),n.useColors=Q.useColors(),n.color=g(a),typeof Q.init=="function"&&Q.init(n),n}function S(a){Q.save(a),Q.names=[],Q.skips=[];for(var n=(typeof a=="string"?a:"").split(/[\s,]+/),o=n.length,i=0;i<o;i++)n[i]&&(a=n[i].replace(/\*/g,".*?"),a[0]==="-"?Q.skips.push(new RegExp("^"+a.substr(1)+"$")):Q.names.push(new RegExp("^"+a+"$")))}function t(){Q.enable("")}function e(a){var n,o;for(n=0,o=Q.skips.length;n<o;n++)if(Q.skips[n].test(a))return!1;for(n=0,o=Q.names.length;n<o;n++)if(Q.names[n].test(a))return!0;return!1}function r(a){return a instanceof Error?a.stack||a.message:a}}),IN=Dt((Q,Z)=>{Q=Z.exports=zN(),Q.log=z,Q.formatArgs=g,Q.save=S,Q.load=t,Q.useColors=c,Q.storage=typeof chrome<"u"&&typeof chrome.storage<"u"?chrome.storage.local:e(),Q.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"];function c(){return typeof window<"u"&&window.process&&window.process.type==="renderer"?!0:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}Q.formatters.j=function(r){try{return JSON.stringify(r)}catch(a){return"[UnexpectedJSONParseError]: "+a.message}};function g(r){var a=this.useColors;if(r[0]=(a?"%c":"")+this.namespace+(a?" %c":" ")+r[0]+(a?"%c ":" ")+"+"+Q.humanize(this.diff),!!a){var n="color: "+this.color;r.splice(1,0,n,"color: inherit");var o=0,i=0;r[0].replace(/%[a-zA-Z%]/g,function(l){l!=="%%"&&(o++,l==="%c"&&(i=o))}),r.splice(i,0,n)}}function z(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function S(r){try{r==null?Q.storage.removeItem("debug"):Q.storage.debug=r}catch{}}function t(){var r;try{r=Q.storage.debug}catch{}return!r&&typeof process<"u"&&"env"in process&&(r=s.DEBUG),r}Q.enable(t());function e(){try{return window.localStorage}catch{}}}),ON=Dt((Q,Z)=>{var c=r3(),g=IN()("stream-parser");Z.exports=r;var z=-1,S=0,t=1,e=2;function r(u){var b=u&&typeof u._transform=="function",_=u&&typeof u._write=="function";if(!b&&!_)throw new Error("must pass a Writable or Transform
Line truncated
|
||||
|
||||
`),t=c("IHDR");Z.exports=function(e){if(!(e.length<24)&&g(e,0,S)&&g(e,12,t))return{width:I(e,16),height:I(e,20),type:"png",mime:"image/png",wUnits:"px",hUnits:"px"}}}),VN=Dt((Q,Z)=>{var c=gh().str2arr,g=gh().sliceEq,I=gh().readUInt32BE,S=c("8BPS\0");Z.exports=function(t){if(!(t.length<22)&&g(t,0,S))return{width:I(t,18),height:I(t,14),type:"psd",mime:"image/vnd.adobe.photoshop",wUnits:"px",hUnits:"px"}}}),HN=Dt((Q,Z)=>{function c(l){return l===32||l===9||l===13||l===10}function g(l){return typeof l=="number"&&isFinite(l)&&l>0}function I(l){var f=0,x=l.length;for(l[0]===239&&l[1]===187&&l[2]===191&&(f=3);f<x&&c(l[f]);)f++;return f===x?!1:l[f]===60}var S=/<[-_.:a-zA-Z0-9][^>]*>/,t=/^<([-_.:a-zA-Z0-9]+:)?svg\s/,e=/[^-]\bwidth="([^%]+?)"|[^-]\bwidth='([^%]+?)'/,r=/\bheight="([^%]+?)"|\bheight='([^%]+?)'/,a=/\bview[bB]ox="(.+?)"|\bview[bB]ox='(.+?)'/,n=/in$|mm$|cm$|pt$|pc$|px$|em$|ex$/;function o(l){var f=l.match(e),x=l.match(r),y=l.match(a);return{width:f&&(f[1]||f[2]),height:x&&(x[1]||x[2]),viewbox:y&&(y[1]||y[2])}}function i(l){return n.test(l)?l.match(n)[0]:"px"}Z.exports=function(l){if(I(l)){for(var f="",x=0;x<l.length;x++)f+=String.fromCharCode(l[x]);var y=(f.match(S)||[""])[0];if(t.test(y)){var v=o(y),T=parseFloat(v.width),u=parseFloat(v.height);if(v.width&&v.height)return!g(T)||!g(u)?void 0:{width:T,height:u,type:"svg",mime:"image/svg+xml",wUnits:i(v.width),hUnits:i(v.height)};var b=(v.viewbox||"").split(" "),_={width:b[2],height:b[3]},P=parseFloat(_.width),M=parseFloat(_.height);if(!(!g(P)||!g(M))&&i(_.width)===i(_.height)){var C=P/M;return v.width?g(T)?{width:T,height:T/C,type:"svg",mime:"image/svg+xml",wUnits:i(v.width),hUnits:i(v.width)}:void 0:v.height?g(u)?{width:u*C,height:u,type:"svg",mime:"image/svg+xml",wUnits:i(v.height),hUnits:i(v.height)}:void 0:{width:P,height:M,type:"svg",mime:"image/svg+xml",wUnits:i(_.width),hUnits:i(_.height)}}}}}}),WN=Dt((Q,Z)=>{var c=gh().str2arr,g=gh().sliceEq,I=gh().readUInt16LE,S=gh().readUInt16BE,t=gh().readUInt32LE,e=gh().readUInt32BE,r=c("II*\0"),a=c("MM\0*");function n(l,f,x){return x?S(l,f):I(l,f)}function o(l,f,x){return x?e(l,f):t(l,f)}function i(l,f,x){var y=n(l,f+2,x),v=o(l,f+4,x);return v!==1||y!==3&&y!==4?null:y===3?n(l,f+8,x):o(l,f+8,x)}Z.exports=function(l){if(!(l.length<8)&&!(!g(l,0,r)&&!g(l,0,a))){var f=l[0]===77,x=o(l,4,f)-8;if(!(x<0)){var y=x+8;if(!(l.length-y<2)){var v=n(l,y+0,f)*12;if(!(v<=0)&&(y+=2,!(l.length-y<v))){var T,u,b,_;for(T=0;T<v;T+=12)_=n(l,y+T,f),_===256?u=i(l,y+T,f):_===257&&(b=i(l,y+T,f));if(u&&b)return{width:u,height:b,type:"tiff",mime:"image/tiff",wUnits:"px",hUnits:"px"}}}}}}}),qN=Dt((Q,Z)=>{var c=gh().str2arr,g=gh().sliceEq,I=gh().readUInt16LE,S=gh().readUInt32LE,t=mk(),e=c("RIFF"),r=c("WEBP");function a(i,l){if(!(i[l+3]!==157||i[l+4]!==1||i[l+5]!==42))return{width:I(i,l+6)&16383,height:I(i,l+8)&16383,type:"webp",mime:"image/webp",wUnits:"px",hUnits:"px"}}function n(i,l){if(i[l]===47){var f=S(i,l+1);return{width:(f&16383)+1,height:(f>>14&16383)+1,type:"webp",mime:"image/webp",wUnits:"px",hUnits:"px"}}}function o(i,l){return{width:(i[l+6]<<16|i[l+5]<<8|i[l+4])+1,height:(i[l+9]<<l|i[l+8]<<8|i[l+7])+1,type:"webp",mime:"image/webp",wUnits:"px",hUnits:"px"}}Z.exports=function(i){if(!(i.length<16)&&!(!g(i,0,e)&&!g(i,8,r))){var l=12,f=null,x=0,y=S(i,4)+8;if(!(y>i.length)){for(;l+8<y;){if(i[l]===0){l++;continue}var v=String.fromCharCode.apply(null,i.slice(l,l+4)),T=S(i,l+4);v==="VP8 "&&T>=10?f=f||a(i,l+8):v==="VP8L"&&T>=9?f=f||n(i,l+8):v==="VP8X"&&T>=10?f=f||o(i,l+8):v==="EXIF"&&(x=t.get_orientation(i.slice(l+8,l+8+T)),l=1/0),l+=8+T}if(f)return x>0&&(f.orientation=x),f}}}}),$N=Dt((Q,Z)=>{Z.exports={avif:FN(),bmp:RN(),gif:BN(),ico:NN(),jpeg:jN(),png:UN(),psd:VN(),svg:HN(),tiff:WN(),webp:qN()}}),ZN=Dt((Q,Z)=>{var c=$N();function g(I){for(var S=Object.keys(c),t=0;t<S.length;t++){var e=c[S[t]](I);if(e)return e}return null}Z.exports=function(I){return g(I)},Z.exports.parsers=c}),GN=Dt(Q=>{var Z=ZN(),c=o0().IMAGE_URL_PREFIX,g=ox().Buffer;Q.getImageSize=function(I){var S=I.replace(c,""),t=new g(S,"base64");return Z(t)}}),YN=Dt((Q,Z)=>{var c=kn(),g=ib(),I=Vn(),S=Cs(),t=kn().maxRowLength,e=GN().getImageSize;Z.exports=function(o,i){var l,f;if(i._hasZ)l=i.z.length,f=t(i.z);else if(i._hasSource){var x=e(i.source);l=x.height,f=x.width}var y=S.getFromId(o,i.xaxis||"x"),v=S.getFromId(o,i.yaxis||"y"),T=y.d2c(i.x0)-i.dx/2,u=v.d2c(i.y0)-i.dy/2,b,_=[T,T+f*i.dx],P=[u,u+l*i.dy];if(y&&y.type==="log")for(b=0;b<f;b++)_.push(T+b*i.dx);if(v&&v.type==="log")for(b=0;b<l;b++)P.push(u+b*i.dy);i._extremes[y._id]=S.findExtremes(y,_),i._extremes[v._id]=S.findExtremes(v,P),i._scaler=n(i);var M={x0:T,y0:u,z:i.z,w:f,h:l};return[M]};function r(o,i,l,f){return function(x){return c.constrain((x-o)*i,l,f)}}function a(o,i){return function(l){return c.constrain(l,o,i)}}function n(o){var i=g.colormodel[o.colormodel],l=i.colormodel||o.colormodel,f=l.length;o._sArray=[];for(var x=0;x<f;x++)i.min[x]!==o.zmin[x]||i.max[x]!==o.zmax[x]?o._sArray.push(r(o.zmin[x],(i.max[x]-i.min[x])/
Line truncated
|
||||
`),t=c("IHDR");Z.exports=function(e){if(!(e.length<24)&&g(e,0,S)&&g(e,12,t))return{width:z(e,16),height:z(e,20),type:"png",mime:"image/png",wUnits:"px",hUnits:"px"}}}),VN=Dt((Q,Z)=>{var c=gh().str2arr,g=gh().sliceEq,z=gh().readUInt32BE,S=c("8BPS\0");Z.exports=function(t){if(!(t.length<22)&&g(t,0,S))return{width:z(t,18),height:z(t,14),type:"psd",mime:"image/vnd.adobe.photoshop",wUnits:"px",hUnits:"px"}}}),HN=Dt((Q,Z)=>{function c(l){return l===32||l===9||l===13||l===10}function g(l){return typeof l=="number"&&isFinite(l)&&l>0}function z(l){var f=0,x=l.length;for(l[0]===239&&l[1]===187&&l[2]===191&&(f=3);f<x&&c(l[f]);)f++;return f===x?!1:l[f]===60}var S=/<[-_.:a-zA-Z0-9][^>]*>/,t=/^<([-_.:a-zA-Z0-9]+:)?svg\s/,e=/[^-]\bwidth="([^%]+?)"|[^-]\bwidth='([^%]+?)'/,r=/\bheight="([^%]+?)"|\bheight='([^%]+?)'/,a=/\bview[bB]ox="(.+?)"|\bview[bB]ox='(.+?)'/,n=/in$|mm$|cm$|pt$|pc$|px$|em$|ex$/;function o(l){var f=l.match(e),x=l.match(r),y=l.match(a);return{width:f&&(f[1]||f[2]),height:x&&(x[1]||x[2]),viewbox:y&&(y[1]||y[2])}}function i(l){return n.test(l)?l.match(n)[0]:"px"}Z.exports=function(l){if(z(l)){for(var f="",x=0;x<l.length;x++)f+=String.fromCharCode(l[x]);var y=(f.match(S)||[""])[0];if(t.test(y)){var v=o(y),T=parseFloat(v.width),u=parseFloat(v.height);if(v.width&&v.height)return!g(T)||!g(u)?void 0:{width:T,height:u,type:"svg",mime:"image/svg+xml",wUnits:i(v.width),hUnits:i(v.height)};var b=(v.viewbox||"").split(" "),_={width:b[2],height:b[3]},P=parseFloat(_.width),M=parseFloat(_.height);if(!(!g(P)||!g(M))&&i(_.width)===i(_.height)){var E=P/M;return v.width?g(T)?{width:T,height:T/E,type:"svg",mime:"image/svg+xml",wUnits:i(v.width),hUnits:i(v.width)}:void 0:v.height?g(u)?{width:u*E,height:u,type:"svg",mime:"image/svg+xml",wUnits:i(v.height),hUnits:i(v.height)}:void 0:{width:P,height:M,type:"svg",mime:"image/svg+xml",wUnits:i(_.width),hUnits:i(_.height)}}}}}}),WN=Dt((Q,Z)=>{var c=gh().str2arr,g=gh().sliceEq,z=gh().readUInt16LE,S=gh().readUInt16BE,t=gh().readUInt32LE,e=gh().readUInt32BE,r=c("II*\0"),a=c("MM\0*");function n(l,f,x){return x?S(l,f):z(l,f)}function o(l,f,x){return x?e(l,f):t(l,f)}function i(l,f,x){var y=n(l,f+2,x),v=o(l,f+4,x);return v!==1||y!==3&&y!==4?null:y===3?n(l,f+8,x):o(l,f+8,x)}Z.exports=function(l){if(!(l.length<8)&&!(!g(l,0,r)&&!g(l,0,a))){var f=l[0]===77,x=o(l,4,f)-8;if(!(x<0)){var y=x+8;if(!(l.length-y<2)){var v=n(l,y+0,f)*12;if(!(v<=0)&&(y+=2,!(l.length-y<v))){var T,u,b,_;for(T=0;T<v;T+=12)_=n(l,y+T,f),_===256?u=i(l,y+T,f):_===257&&(b=i(l,y+T,f));if(u&&b)return{width:u,height:b,type:"tiff",mime:"image/tiff",wUnits:"px",hUnits:"px"}}}}}}}),qN=Dt((Q,Z)=>{var c=gh().str2arr,g=gh().sliceEq,z=gh().readUInt16LE,S=gh().readUInt32LE,t=vk(),e=c("RIFF"),r=c("WEBP");function a(i,l){if(!(i[l+3]!==157||i[l+4]!==1||i[l+5]!==42))return{width:z(i,l+6)&16383,height:z(i,l+8)&16383,type:"webp",mime:"image/webp",wUnits:"px",hUnits:"px"}}function n(i,l){if(i[l]===47){var f=S(i,l+1);return{width:(f&16383)+1,height:(f>>14&16383)+1,type:"webp",mime:"image/webp",wUnits:"px",hUnits:"px"}}}function o(i,l){return{width:(i[l+6]<<16|i[l+5]<<8|i[l+4])+1,height:(i[l+9]<<l|i[l+8]<<8|i[l+7])+1,type:"webp",mime:"image/webp",wUnits:"px",hUnits:"px"}}Z.exports=function(i){if(!(i.length<16)&&!(!g(i,0,e)&&!g(i,8,r))){var l=12,f=null,x=0,y=S(i,4)+8;if(!(y>i.length)){for(;l+8<y;){if(i[l]===0){l++;continue}var v=String.fromCharCode.apply(null,i.slice(l,l+4)),T=S(i,l+4);v==="VP8 "&&T>=10?f=f||a(i,l+8):v==="VP8L"&&T>=9?f=f||n(i,l+8):v==="VP8X"&&T>=10?f=f||o(i,l+8):v==="EXIF"&&(x=t.get_orientation(i.slice(l+8,l+8+T)),l=1/0),l+=8+T}if(f)return x>0&&(f.orientation=x),f}}}}),$N=Dt((Q,Z)=>{Z.exports={avif:FN(),bmp:RN(),gif:BN(),ico:NN(),jpeg:jN(),png:UN(),psd:VN(),svg:HN(),tiff:WN(),webp:qN()}}),ZN=Dt((Q,Z)=>{var c=$N();function g(z){for(var S=Object.keys(c),t=0;t<S.length;t++){var e=c[S[t]](z);if(e)return e}return null}Z.exports=function(z){return g(z)},Z.exports.parsers=c}),GN=Dt(Q=>{var Z=ZN(),c=o0().IMAGE_URL_PREFIX,g=ox().Buffer;Q.getImageSize=function(z){var S=z.replace(c,""),t=new g(S,"base64");return Z(t)}}),YN=Dt((Q,Z)=>{var c=kn(),g=ab(),z=Vn(),S=Es(),t=kn().maxRowLength,e=GN().getImageSize;Z.exports=function(o,i){var l,f;if(i._hasZ)l=i.z.length,f=t(i.z);else if(i._hasSource){var x=e(i.source);l=x.height,f=x.width}var y=S.getFromId(o,i.xaxis||"x"),v=S.getFromId(o,i.yaxis||"y"),T=y.d2c(i.x0)-i.dx/2,u=v.d2c(i.y0)-i.dy/2,b,_=[T,T+f*i.dx],P=[u,u+l*i.dy];if(y&&y.type==="log")for(b=0;b<f;b++)_.push(T+b*i.dx);if(v&&v.type==="log")for(b=0;b<l;b++)P.push(u+b*i.dy);i._extremes[y._id]=S.findExtremes(y,_),i._extremes[v._id]=S.findExtremes(v,P),i._scaler=n(i);var M={x0:T,y0:u,z:i.z,w:f,h:l};return[M]};function r(o,i,l,f){return function(x){return c.constrain((x-o)*i,l,f)}}function a(o,i){return function(l){return c.constrain(l,o,i)}}function n(o){var i=g.colormodel[o.colormodel],l=i.colormodel||o.colormodel,f=l.length;o._sArray=[];for(var x=0;x<f;x++)i.min[x]!==o.zmin[x]||i.max[x]!==o.zmax[x]?o._sArray.push(r(o.zmin[x],(i.max[x]-i.min[x])/
Line truncated
|
||||
parent value =`,vt,`
|
||||
children sum =`,it].join(" "))}rt.value=vt});break}else i(lt,f,{branches:f.count.indexOf("branches")!==-1,leaves:f.count.indexOf("leaves")!==-1});if(!yt){f.sort&<.sort(function(rt,at){return at.value-rt.value});var mt,st,tt=f.marker.colors||[],pt=!!tt.length;return f._hasColorscale?(pt||(tt=_?f.values:f._values),e(l,f,{vals:tt,containerStr:"marker",cLetter:"c"}),st=I(f.marker)):mt=S(x["_"+f.type+"colormap"]),lt.each(function(rt){var at=rt.data.data;at.color=f._hasColorscale?st(tt[at.i]):mt(tt[at.i],at.id)}),P[0].hierarchy=lt,P}},Q._runCrossTraceCalc=function(l,f){var x=f._fullLayout,y=f.calcdata,v=x[l+"colorway"],T=x["_"+l+"colormap"];x["extend"+l+"colors"]&&(v=t(v,l==="icicle"?o:l==="treemap"?n:a));var u=0,b;function _(A){var h=A.data.data,p=h.id;h.color===!1&&(T[p]?h.color=T[p]:A.parent?A.parent.parent?h.color=A.parent.data.data.color:(T[p]=h.color=v[u%v.length],u++):h.color=b)}for(var P=0;P<y.length;P++){var M=y[P],C=M[0];C.trace.type===l&&C.hierarchy&&(b=C.trace.root.color,C.hierarchy.each(_))}},Q.crossTraceCalc=function(l){return Q._runCrossTraceCalc("sunburst",l)};function i(l,f,x){var y=0,v=l.children;if(v){for(var T=v.length,u=0;u<T;u++)y+=i(v[u],f,x);x.branches&&y++}else x.leaves&&y++;return l.value=l.data.data.value=y,f._values||(f._values=[]),f._values[l.data.data.i]=y,y}});function fx(Q,Z,c){Q.prototype=Z.prototype=c,c.constructor=Q}function cb(Q,Z){var c=Object.create(Q.prototype);for(var g in Z)c[g]=Z[g];return c}var yk=hn(()=>{});function kv(){}function a9(){return this.rgb().formatHex()}function hj(){return this.rgb().formatHex8()}function fj(){return h9(this).formatHsl()}function o9(){return this.rgb().formatRgb()}function hb(Q){var Z,c;return Q=(Q+"").trim().toLowerCase(),(Z=d9.exec(Q))?(c=Z[1].length,Z=parseInt(Z[1],16),c===6?s9(Z):c===3?new hp(Z>>8&15|Z>>4&240,Z>>4&15|Z&240,(Z&15)<<4|Z&15,1):c===8?a3(Z>>24&255,Z>>16&255,Z>>8&255,(Z&255)/255):c===4?a3(Z>>12&15|Z>>8&240,Z>>8&15|Z>>4&240,Z>>4&15|Z&240,((Z&15)<<4|Z&15)/255):null):(Z=p9.exec(Q))?new hp(Z[1],Z[2],Z[3],1):(Z=m9.exec(Q))?new hp(Z[1]*255/100,Z[2]*255/100,Z[3]*255/100,1):(Z=g9.exec(Q))?a3(Z[1],Z[2],Z[3],Z[4]):(Z=v9.exec(Q))?a3(Z[1]*255/100,Z[2]*255/100,Z[3]*255/100,Z[4]):(Z=y9.exec(Q))?c9(Z[1],Z[2]/100,Z[3]/100,1):(Z=x9.exec(Q))?c9(Z[1],Z[2]/100,Z[3]/100,Z[4]):wk.hasOwnProperty(Q)?s9(wk[Q]):Q==="transparent"?new hp(NaN,NaN,NaN,0):null}function s9(Q){return new hp(Q>>16&255,Q>>8&255,Q&255,1)}function a3(Q,Z,c,g){return g<=0&&(Q=Z=c=NaN),new hp(Q,Z,c,g)}function xk(Q){return Q instanceof kv||(Q=hb(Q)),Q?(Q=Q.rgb(),new hp(Q.r,Q.g,Q.b,Q.opacity)):new hp}function o3(Q,Z,c,g){return arguments.length===1?xk(Q):new hp(Q,Z,c,g??1)}function hp(Q,Z,c,g){this.r=+Q,this.g=+Z,this.b=+c,this.opacity=+g}function l9(){return`#${R1(this.r)}${R1(this.g)}${R1(this.b)}`}function dj(){return`#${R1(this.r)}${R1(this.g)}${R1(this.b)}${R1((isNaN(this.opacity)?1:this.opacity)*255)}`}function u9(){let Q=s3(this.opacity);return`${Q===1?"rgb(":"rgba("}${F1(this.r)}, ${F1(this.g)}, ${F1(this.b)}${Q===1?")":`, ${Q})`}`}function s3(Q){return isNaN(Q)?1:Math.max(0,Math.min(1,Q))}function F1(Q){return Math.max(0,Math.min(255,Math.round(Q)||0))}function R1(Q){return Q=F1(Q),(Q<16?"0":"")+Q.toString(16)}function c9(Q,Z,c,g){return g<=0?Q=Z=c=NaN:c<=0||c>=1?Q=Z=NaN:Z<=0&&(Q=NaN),new bm(Q,Z,c,g)}function h9(Q){if(Q instanceof bm)return new bm(Q.h,Q.s,Q.l,Q.opacity);if(Q instanceof kv||(Q=hb(Q)),!Q)return new bm;if(Q instanceof bm)return Q;Q=Q.rgb();var Z=Q.r/255,c=Q.g/255,g=Q.b/255,I=Math.min(Z,c,g),S=Math.max(Z,c,g),t=NaN,e=S-I,r=(S+I)/2;return e?(Z===S?t=(c-g)/e+(c<g)*6:c===S?t=(g-Z)/e+2:t=(Z-c)/e+4,e/=r<.5?S+I:2-S-I,t*=60):e=r>0&&r<1?0:t,new bm(t,e,r,Q.opacity)}function _k(Q,Z,c,g){return arguments.length===1?h9(Q):new bm(Q,Z,c,g??1)}function bm(Q,Z,c,g){this.h=+Q,this.s=+Z,this.l=+c,this.opacity=+g}function f9(Q){return Q=(Q||0)%360,Q<0?Q+360:Q}function l3(Q){return Math.max(0,Math.min(1,Q||0))}function bk(Q,Z,c){return(Q<60?Z+(c-Z)*Q/60:Q<180?c:Q<240?Z+(c-Z)*(240-Q)/60:Z)*255}var Tv,B1,N1,dx,wm,d9,p9,m9,g9,v9,y9,x9,wk,kk=hn(()=>{yk(),Tv=.7,B1=1/Tv,N1="\\s*([+-]?\\d+)\\s*",dx="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",wm="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",d9=/^#([0-9a-f]{3,8})$/,p9=new RegExp(`^rgb\\(${N1},${N1},${N1}\\)$`),m9=new RegExp(`^rgb\\(${wm},${wm},${wm}\\)$`),g9=new RegExp(`^rgba\\(${N1},${N1},${N1},${dx}\\)$`),v9=new RegExp(`^rgba\\(${wm},${wm},${wm},${dx}\\)$`),y9=new RegExp(`^hsl\\(${dx},${wm},${wm}\\)$`),x9=new RegExp(`^hsla\\(${dx},${wm},${wm},${dx}\\)$`),wk={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433
Line truncated
|
||||
children sum =`,it].join(" "))}rt.value=vt});break}else i(lt,f,{branches:f.count.indexOf("branches")!==-1,leaves:f.count.indexOf("leaves")!==-1});if(!yt){f.sort&<.sort(function(rt,at){return at.value-rt.value});var mt,st,tt=f.marker.colors||[],pt=!!tt.length;return f._hasColorscale?(pt||(tt=_?f.values:f._values),e(l,f,{vals:tt,containerStr:"marker",cLetter:"c"}),st=z(f.marker)):mt=S(x["_"+f.type+"colormap"]),lt.each(function(rt){var at=rt.data.data;at.color=f._hasColorscale?st(tt[at.i]):mt(tt[at.i],at.id)}),P[0].hierarchy=lt,P}},Q._runCrossTraceCalc=function(l,f){var x=f._fullLayout,y=f.calcdata,v=x[l+"colorway"],T=x["_"+l+"colormap"];x["extend"+l+"colors"]&&(v=t(v,l==="icicle"?o:l==="treemap"?n:a));var u=0,b;function _(A){var h=A.data.data,p=h.id;h.color===!1&&(T[p]?h.color=T[p]:A.parent?A.parent.parent?h.color=A.parent.data.data.color:(T[p]=h.color=v[u%v.length],u++):h.color=b)}for(var P=0;P<y.length;P++){var M=y[P],E=M[0];E.trace.type===l&&E.hierarchy&&(b=E.trace.root.color,E.hierarchy.each(_))}},Q.crossTraceCalc=function(l){return Q._runCrossTraceCalc("sunburst",l)};function i(l,f,x){var y=0,v=l.children;if(v){for(var T=v.length,u=0;u<T;u++)y+=i(v[u],f,x);x.branches&&y++}else x.leaves&&y++;return l.value=l.data.data.value=y,f._values||(f._values=[]),f._values[l.data.data.i]=y,y}});function fx(Q,Z,c){Q.prototype=Z.prototype=c,c.constructor=Q}function hb(Q,Z){var c=Object.create(Q.prototype);for(var g in Z)c[g]=Z[g];return c}var _k=hn(()=>{});function kv(){}function a9(){return this.rgb().formatHex()}function hj(){return this.rgb().formatHex8()}function fj(){return h9(this).formatHsl()}function o9(){return this.rgb().formatRgb()}function fb(Q){var Z,c;return Q=(Q+"").trim().toLowerCase(),(Z=d9.exec(Q))?(c=Z[1].length,Z=parseInt(Z[1],16),c===6?s9(Z):c===3?new fp(Z>>8&15|Z>>4&240,Z>>4&15|Z&240,(Z&15)<<4|Z&15,1):c===8?o3(Z>>24&255,Z>>16&255,Z>>8&255,(Z&255)/255):c===4?o3(Z>>12&15|Z>>8&240,Z>>8&15|Z>>4&240,Z>>4&15|Z&240,((Z&15)<<4|Z&15)/255):null):(Z=p9.exec(Q))?new fp(Z[1],Z[2],Z[3],1):(Z=m9.exec(Q))?new fp(Z[1]*255/100,Z[2]*255/100,Z[3]*255/100,1):(Z=g9.exec(Q))?o3(Z[1],Z[2],Z[3],Z[4]):(Z=v9.exec(Q))?o3(Z[1]*255/100,Z[2]*255/100,Z[3]*255/100,Z[4]):(Z=y9.exec(Q))?c9(Z[1],Z[2]/100,Z[3]/100,1):(Z=x9.exec(Q))?c9(Z[1],Z[2]/100,Z[3]/100,Z[4]):Tk.hasOwnProperty(Q)?s9(Tk[Q]):Q==="transparent"?new fp(NaN,NaN,NaN,0):null}function s9(Q){return new fp(Q>>16&255,Q>>8&255,Q&255,1)}function o3(Q,Z,c,g){return g<=0&&(Q=Z=c=NaN),new fp(Q,Z,c,g)}function bk(Q){return Q instanceof kv||(Q=fb(Q)),Q?(Q=Q.rgb(),new fp(Q.r,Q.g,Q.b,Q.opacity)):new fp}function s3(Q,Z,c,g){return arguments.length===1?bk(Q):new fp(Q,Z,c,g??1)}function fp(Q,Z,c,g){this.r=+Q,this.g=+Z,this.b=+c,this.opacity=+g}function l9(){return`#${R1(this.r)}${R1(this.g)}${R1(this.b)}`}function dj(){return`#${R1(this.r)}${R1(this.g)}${R1(this.b)}${R1((isNaN(this.opacity)?1:this.opacity)*255)}`}function u9(){let Q=l3(this.opacity);return`${Q===1?"rgb(":"rgba("}${F1(this.r)}, ${F1(this.g)}, ${F1(this.b)}${Q===1?")":`, ${Q})`}`}function l3(Q){return isNaN(Q)?1:Math.max(0,Math.min(1,Q))}function F1(Q){return Math.max(0,Math.min(255,Math.round(Q)||0))}function R1(Q){return Q=F1(Q),(Q<16?"0":"")+Q.toString(16)}function c9(Q,Z,c,g){return g<=0?Q=Z=c=NaN:c<=0||c>=1?Q=Z=NaN:Z<=0&&(Q=NaN),new bm(Q,Z,c,g)}function h9(Q){if(Q instanceof bm)return new bm(Q.h,Q.s,Q.l,Q.opacity);if(Q instanceof kv||(Q=fb(Q)),!Q)return new bm;if(Q instanceof bm)return Q;Q=Q.rgb();var Z=Q.r/255,c=Q.g/255,g=Q.b/255,z=Math.min(Z,c,g),S=Math.max(Z,c,g),t=NaN,e=S-z,r=(S+z)/2;return e?(Z===S?t=(c-g)/e+(c<g)*6:c===S?t=(g-Z)/e+2:t=(Z-c)/e+4,e/=r<.5?S+z:2-S-z,t*=60):e=r>0&&r<1?0:t,new bm(t,e,r,Q.opacity)}function wk(Q,Z,c,g){return arguments.length===1?h9(Q):new bm(Q,Z,c,g??1)}function bm(Q,Z,c,g){this.h=+Q,this.s=+Z,this.l=+c,this.opacity=+g}function f9(Q){return Q=(Q||0)%360,Q<0?Q+360:Q}function u3(Q){return Math.max(0,Math.min(1,Q||0))}function kk(Q,Z,c){return(Q<60?Z+(c-Z)*Q/60:Q<180?c:Q<240?Z+(c-Z)*(240-Q)/60:Z)*255}var Tv,B1,N1,dx,wm,d9,p9,m9,g9,v9,y9,x9,Tk,Ak=hn(()=>{_k(),Tv=.7,B1=1/Tv,N1="\\s*([+-]?\\d+)\\s*",dx="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",wm="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",d9=/^#([0-9a-f]{3,8})$/,p9=new RegExp(`^rgb\\(${N1},${N1},${N1}\\)$`),m9=new RegExp(`^rgb\\(${wm},${wm},${wm}\\)$`),g9=new RegExp(`^rgba\\(${N1},${N1},${N1},${dx}\\)$`),v9=new RegExp(`^rgba\\(${wm},${wm},${wm},${dx}\\)$`),y9=new RegExp(`^hsl\\(${dx},${wm},${wm}\\)$`),x9=new RegExp(`^hsla\\(${dx},${wm},${wm},${dx}\\)$`),Tk={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433
Line truncated
|
||||
|
||||
precision highp float;
|
||||
#define GLSLIFY 1
|
||||
@@ -555,7 +555,7 @@ void main() {
|
||||
if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard;
|
||||
|
||||
gl_FragColor = vec4(pickId, f_id.xyz);
|
||||
}`]);e.meshShader={vertex:n,fragment:o,attributes:[{name:"position",type:"vec4"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"},{name:"vector",type:"vec3"}]},e.pickShader={vertex:i,fragment:l,attributes:[{name:"position",type:"vec4"},{name:"id",type:"vec4"},{name:"vector",type:"vec3"}]}},620:function(t){t.exports=["precision","highp","mediump","lowp","attribute","const","uniform","varying","break","continue","do","for","while","if","else","in","out","inout","float","int","uint","void","bool","true","false","discard","return","mat2","mat3","mat4","vec2","vec3","vec4","ivec2","ivec3","ivec4","bvec2","bvec3","bvec4","sampler1D","sampler2D","sampler3D","samplerCube","sampler1DShadow","sampler2DShadow","struct","asm","class","union","enum","typedef","template","this","packed","goto","switch","default","inline","noinline","volatile","public","static","extern","external","interface","long","short","double","half","fixed","unsigned","input","output","hvec2","hvec3","hvec4","dvec2","dvec3","dvec4","fvec2","fvec3","fvec4","sampler2DRect","sampler3DRect","sampler2DRectShadow","sizeof","cast","namespace","using"]},665:function(t,e,r){var a=r(3202);t.exports=l;var n=96;function o(f,x){var y=a(getComputedStyle(f).getPropertyValue(x));return y[0]*l(y[1],f)}function i(f,x){var y=document.createElement("div");y.style["font-size"]="128"+f,x.appendChild(y);var v=o(y,"font-size")/128;return x.removeChild(y),v}function l(f,x){switch(x=x||document.body,f=(f||"px").trim().toLowerCase(),(x===window||x===document)&&(x=document.body),f){case"%":return x.clientHeight/100;case"ch":case"ex":return i(f,x);case"em":return o(x,"font-size");case"rem":return o(document.body,"font-size");case"vw":return window.innerWidth/100;case"vh":return window.innerHeight/100;case"vmin":return Math.min(window.innerWidth,window.innerHeight)/100;case"vmax":return Math.max(window.innerWidth,window.innerHeight)/100;case"in":return n;case"cm":return n/2.54;case"mm":return n/25.4;case"pt":return n/72;case"pc":return n/6}return 1}},727:function(t,e,r){var a=r(2962),n=6;function o(P){var M=P===2?f:P===3?x:P===4?y:P===5?v:T;return P<6?M(a[P]):M(a)}function i(){return[[0]]}function l(P,M){return[[M[0]],[P[0][0]]]}function f(P){return function(M,C){return[P([[+C[0],+M[0][1]],[+C[1],+M[1][1]]]),P([[+M[0][0],+C[0]],[+M[1][0],+C[1]]]),P(M)]}}function x(P){return function(M,C){return[P([[+C[0],+M[0][1],+M[0][2]],[+C[1],+M[1][1],+M[1][2]],[+C[2],+M[2][1],+M[2][2]]]),P([[+M[0][0],+C[0],+M[0][2]],[+M[1][0],+C[1],+M[1][2]],[+M[2][0],+C[2],+M[2][2]]]),P([[+M[0][0],+M[0][1],+C[0]],[+M[1][0],+M[1][1],+C[1]],[+M[2][0],+M[2][1],+C[2]]]),P(M)]}}function y(P){return function(M,C){return[P([[+C[0],+M[0][1],+M[0][2],+M[0][3]],[+C[1],+M[1][1],+M[1][2],+M[1][3]],[+C[2],+M[2][1],+M[2][2],+M[2][3]],[+C[3],+M[3][1],+M[3][2],+M[3][3]]]),P([[+M[0][0],+C[0],+M[0][2],+M[0][3]],[+M[1][0],+C[1],+M[1][2],+M[1][3]],[+M[2][0],+C[2],+M[2][2],+M[2][3]],[+M[3][0],+C[3],+M[3][2],+M[3][3]]]),P([[+M[0][0],+M[0][1],+C[0],+M[0][3]],[+M[1][0],+M[1][1],+C[1],+M[1][3]],[+M[2][0],+M[2][1],+C[2],+M[2][3]],[+M[3][0],+M[3][1],+C[3],+M[3][3]]]),P([[+M[0][0],+M[0][1],+M[0][2],+C[0]],[+M[1][0],+M[1][1],+M[1][2],+C[1]],[+M[2][0],+M[2][1],+M[2][2],+C[2]],[+M[3][0],+M[3][1],+M[3][2],+C[3]]]),P(M)]}}function v(P){return function(M,C){return[P([[+C[0],+M[0][1],+M[0][2],+M[0][3],+M[0][4]],[+C[1],+M[1][1],+M[1][2],+M[1][3],+M[1][4]],[+C[2],+M[2][1],+M[2][2],+M[2][3],+M[2][4]],[+C[3],+M[3][1],+M[3][2],+M[3][3],+M[3][4]],[+C[4],+M[4][1],+M[4][2],+M[4][3],+M[4][4]]]),P([[+M[0][0],+C[0],+M[0][2],+M[0][3],+M[0][4]],[+M[1][0],+C[1],+M[1][2],+M[1][3],+M[1][4]],[+M[2][0],+C[2],+M[2][2],+M[2][3],+M[2][4]],[+M[3][0],+C[3],+M[3][2],+M[3][3],+M[3][4]],[+M[4][0],+C[4],+M[4][2],+M[4][3],+M[4][4]]]),P([[+M[0][0],+M[0][1],+C[0],+M[0][3],+M[0][4]],[+M[1][0],+M[1][1],+C[1],+M[1][3],+M[1][4]],[+M[2][0],+M[2][1],+C[2],+M[2][3],+M[2][4]],[+M[3][0],+M[3][1],+C[3],+M[3][3],+M[3][4]],[+M[4][0],+M[4][1],+C[4],+M[4][3],+M[4][4]]]),P([[+M[0][0],+M[0][1],+M[0][2],+C[0],+M[0][4]],[+M[1][0],+M[1][1],+M[1][2],+C[1],+M[1][4]],[+M[2][0],+M[2][1],+M[2][2],+C[2],+M[2][4]],[+M[3][0],+M[3][1],+M[3][2],+C[3],+M[3][4]],[+M[4][0],+M[4][1],+M[4][2],+C[4],+M[4][4]]]),P([[+M[0][0],+M[0][1],+M[0][2],+M[0][3],+C[0]],[+M[1][0],+M[1][1],+M[1][2],+M[1][3],+C[1]],[+M[2][0],+M[2][1],+M[2][2],+M[2][3],+C[2]],[+M[3][0],+M[3][1],+M[3][2],+M[3][3],+C[3]],[+M[4][0],+M[4][1],+M[4][2],+M[4][3],+C[4]]]),P(M)]}}function T(P){return function(M,C){return[P([[+C[0],+M[0][1],+M[0][2],+M[0][3],+M[0][4],+M[0][5]],[+C[1],+M[1][1],+M[1][2],+M[1][3],+M[1][4],+M[1][5]],[+C[2],+M[2][1],+M[2][2],+M[2][3],+M[2][4],+M[2][5]],[+C[3],+M[3][1],+M[3][2],+M[3][3],+M[3][4],+M[3][5]],[+C[4],+M[4][1],+M[4][2],+M[4][3],+M[4][4],+M[4][5]],[+C[5],+M[5][1],+M[5][2],+M[5][3],+M[5][4],+M[5][5]]]),P([[+M[0][0],+C[0],+M[0][2],+M[0][3],+M[0][4],+M[0][5]],[+M[1][0],+C[1],+M[1][2],+M[1][3],+M[1][4],+M[1][5]],[+M[2][0],+C[2],+M[2][2],+M[2][3],+M[2][4],+M[2][5]],[+M[3][0],+C[3],+M[3][2],+M[3][3],+M[3][4],+M
Line truncated
|
||||
}`]);e.meshShader={vertex:n,fragment:o,attributes:[{name:"position",type:"vec4"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"},{name:"vector",type:"vec3"}]},e.pickShader={vertex:i,fragment:l,attributes:[{name:"position",type:"vec4"},{name:"id",type:"vec4"},{name:"vector",type:"vec3"}]}},620:function(t){t.exports=["precision","highp","mediump","lowp","attribute","const","uniform","varying","break","continue","do","for","while","if","else","in","out","inout","float","int","uint","void","bool","true","false","discard","return","mat2","mat3","mat4","vec2","vec3","vec4","ivec2","ivec3","ivec4","bvec2","bvec3","bvec4","sampler1D","sampler2D","sampler3D","samplerCube","sampler1DShadow","sampler2DShadow","struct","asm","class","union","enum","typedef","template","this","packed","goto","switch","default","inline","noinline","volatile","public","static","extern","external","interface","long","short","double","half","fixed","unsigned","input","output","hvec2","hvec3","hvec4","dvec2","dvec3","dvec4","fvec2","fvec3","fvec4","sampler2DRect","sampler3DRect","sampler2DRectShadow","sizeof","cast","namespace","using"]},665:function(t,e,r){var a=r(3202);t.exports=l;var n=96;function o(f,x){var y=a(getComputedStyle(f).getPropertyValue(x));return y[0]*l(y[1],f)}function i(f,x){var y=document.createElement("div");y.style["font-size"]="128"+f,x.appendChild(y);var v=o(y,"font-size")/128;return x.removeChild(y),v}function l(f,x){switch(x=x||document.body,f=(f||"px").trim().toLowerCase(),(x===window||x===document)&&(x=document.body),f){case"%":return x.clientHeight/100;case"ch":case"ex":return i(f,x);case"em":return o(x,"font-size");case"rem":return o(document.body,"font-size");case"vw":return window.innerWidth/100;case"vh":return window.innerHeight/100;case"vmin":return Math.min(window.innerWidth,window.innerHeight)/100;case"vmax":return Math.max(window.innerWidth,window.innerHeight)/100;case"in":return n;case"cm":return n/2.54;case"mm":return n/25.4;case"pt":return n/72;case"pc":return n/6}return 1}},727:function(t,e,r){var a=r(2962),n=6;function o(P){var M=P===2?f:P===3?x:P===4?y:P===5?v:T;return P<6?M(a[P]):M(a)}function i(){return[[0]]}function l(P,M){return[[M[0]],[P[0][0]]]}function f(P){return function(M,E){return[P([[+E[0],+M[0][1]],[+E[1],+M[1][1]]]),P([[+M[0][0],+E[0]],[+M[1][0],+E[1]]]),P(M)]}}function x(P){return function(M,E){return[P([[+E[0],+M[0][1],+M[0][2]],[+E[1],+M[1][1],+M[1][2]],[+E[2],+M[2][1],+M[2][2]]]),P([[+M[0][0],+E[0],+M[0][2]],[+M[1][0],+E[1],+M[1][2]],[+M[2][0],+E[2],+M[2][2]]]),P([[+M[0][0],+M[0][1],+E[0]],[+M[1][0],+M[1][1],+E[1]],[+M[2][0],+M[2][1],+E[2]]]),P(M)]}}function y(P){return function(M,E){return[P([[+E[0],+M[0][1],+M[0][2],+M[0][3]],[+E[1],+M[1][1],+M[1][2],+M[1][3]],[+E[2],+M[2][1],+M[2][2],+M[2][3]],[+E[3],+M[3][1],+M[3][2],+M[3][3]]]),P([[+M[0][0],+E[0],+M[0][2],+M[0][3]],[+M[1][0],+E[1],+M[1][2],+M[1][3]],[+M[2][0],+E[2],+M[2][2],+M[2][3]],[+M[3][0],+E[3],+M[3][2],+M[3][3]]]),P([[+M[0][0],+M[0][1],+E[0],+M[0][3]],[+M[1][0],+M[1][1],+E[1],+M[1][3]],[+M[2][0],+M[2][1],+E[2],+M[2][3]],[+M[3][0],+M[3][1],+E[3],+M[3][3]]]),P([[+M[0][0],+M[0][1],+M[0][2],+E[0]],[+M[1][0],+M[1][1],+M[1][2],+E[1]],[+M[2][0],+M[2][1],+M[2][2],+E[2]],[+M[3][0],+M[3][1],+M[3][2],+E[3]]]),P(M)]}}function v(P){return function(M,E){return[P([[+E[0],+M[0][1],+M[0][2],+M[0][3],+M[0][4]],[+E[1],+M[1][1],+M[1][2],+M[1][3],+M[1][4]],[+E[2],+M[2][1],+M[2][2],+M[2][3],+M[2][4]],[+E[3],+M[3][1],+M[3][2],+M[3][3],+M[3][4]],[+E[4],+M[4][1],+M[4][2],+M[4][3],+M[4][4]]]),P([[+M[0][0],+E[0],+M[0][2],+M[0][3],+M[0][4]],[+M[1][0],+E[1],+M[1][2],+M[1][3],+M[1][4]],[+M[2][0],+E[2],+M[2][2],+M[2][3],+M[2][4]],[+M[3][0],+E[3],+M[3][2],+M[3][3],+M[3][4]],[+M[4][0],+E[4],+M[4][2],+M[4][3],+M[4][4]]]),P([[+M[0][0],+M[0][1],+E[0],+M[0][3],+M[0][4]],[+M[1][0],+M[1][1],+E[1],+M[1][3],+M[1][4]],[+M[2][0],+M[2][1],+E[2],+M[2][3],+M[2][4]],[+M[3][0],+M[3][1],+E[3],+M[3][3],+M[3][4]],[+M[4][0],+M[4][1],+E[4],+M[4][3],+M[4][4]]]),P([[+M[0][0],+M[0][1],+M[0][2],+E[0],+M[0][4]],[+M[1][0],+M[1][1],+M[1][2],+E[1],+M[1][4]],[+M[2][0],+M[2][1],+M[2][2],+E[2],+M[2][4]],[+M[3][0],+M[3][1],+M[3][2],+E[3],+M[3][4]],[+M[4][0],+M[4][1],+M[4][2],+E[4],+M[4][4]]]),P([[+M[0][0],+M[0][1],+M[0][2],+M[0][3],+E[0]],[+M[1][0],+M[1][1],+M[1][2],+M[1][3],+E[1]],[+M[2][0],+M[2][1],+M[2][2],+M[2][3],+E[2]],[+M[3][0],+M[3][1],+M[3][2],+M[3][3],+E[3]],[+M[4][0],+M[4][1],+M[4][2],+M[4][3],+E[4]]]),P(M)]}}function T(P){return function(M,E){return[P([[+E[0],+M[0][1],+M[0][2],+M[0][3],+M[0][4],+M[0][5]],[+E[1],+M[1][1],+M[1][2],+M[1][3],+M[1][4],+M[1][5]],[+E[2],+M[2][1],+M[2][2],+M[2][3],+M[2][4],+M[2][5]],[+E[3],+M[3][1],+M[3][2],+M[3][3],+M[3][4],+M[3][5]],[+E[4],+M[4][1],+M[4][2],+M[4][3],+M[4][4],+M[4][5]],[+E[5],+M[5][1],+M[5][2],+M[5][3],+M[5][4],+M[5][5]]]),P([[+M[0][0],+E[0],+M[0][2],+M[0][3],+M[0][4],+M[0][5]],[+M[1][0],+E[1],+M[1][2],+M[1][3],+M[1][4],+M[1][5]],[+M[2][0],+E[2],+M[2][2],+M[2][3],+M[2][4],+M[2][5]],[+M[3][0],+E[3],+M[3][2],+M[3][3],+M[3][4],+M
Line truncated
|
||||
#define GLSLIFY 1
|
||||
attribute vec2 position;
|
||||
varying vec2 uv;
|
||||
@@ -935,7 +935,7 @@ uniform vec3 contourColor;
|
||||
void main() {
|
||||
gl_FragColor = vec4(contourColor, 1.0);
|
||||
}
|
||||
`]);e.meshShader={vertex:n,fragment:o,attributes:[{name:"position",type:"vec3"},{name:"normal",type:"vec3"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"}]},e.wireShader={vertex:i,fragment:l,attributes:[{name:"position",type:"vec3"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"}]},e.pointShader={vertex:f,fragment:x,attributes:[{name:"position",type:"vec3"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"},{name:"pointSize",type:"float"}]},e.pickShader={vertex:y,fragment:v,attributes:[{name:"position",type:"vec3"},{name:"id",type:"vec4"}]},e.pointPickShader={vertex:T,fragment:v,attributes:[{name:"position",type:"vec3"},{name:"pointSize",type:"float"},{name:"id",type:"vec4"}]},e.contourShader={vertex:u,fragment:b,attributes:[{name:"position",type:"vec3"}]}},855:function(t,e,r){t.exports={init:_,sweepBipartite:C,sweepComplete:A,scanBipartite:h,scanComplete:p};var a=r(1888),n=r(8828),o=r(4192),i=1<<28,l=1024,f=a.mallocInt32(l),x=a.mallocInt32(l),y=a.mallocInt32(l),v=a.mallocInt32(l),T=a.mallocInt32(l),u=a.mallocInt32(l),b=a.mallocDouble(l*8);function _(k){var w=n.nextPow2(k);f.length<w&&(a.free(f),f=a.mallocInt32(w)),x.length<w&&(a.free(x),x=a.mallocInt32(w)),y.length<w&&(a.free(y),y=a.mallocInt32(w)),v.length<w&&(a.free(v),v=a.mallocInt32(w)),T.length<w&&(a.free(T),T=a.mallocInt32(w)),u.length<w&&(a.free(u),u=a.mallocInt32(w));var R=8*w;b.length<R&&(a.free(b),b=a.mallocDouble(R))}function P(k,w,R,O){var j=w[O],V=k[R-1];k[j]=V,w[V]=j}function M(k,w,R,O){k[R]=O,w[O]=R}function C(k,w,R,O,j,V,H,F,U,W){for(var q=0,J=2*k,lt=k-1,yt=J-1,mt=R;mt<O;++mt){var st=V[mt],tt=J*mt;b[q++]=j[tt+lt],b[q++]=-(st+1),b[q++]=j[tt+yt],b[q++]=st}for(var mt=H;mt<F;++mt){var st=W[mt]+i,pt=J*mt;b[q++]=U[pt+lt],b[q++]=-st,b[q++]=U[pt+yt],b[q++]=st}var rt=q>>>1;o(b,rt);for(var at=0,vt=0,mt=0;mt<rt;++mt){var it=b[2*mt+1]|0;if(it>=i)it=it-i|0,P(y,v,vt--,it);else if(it>=0)P(f,x,at--,it);else if(it<=-i){it=-it-i|0;for(var Y=0;Y<at;++Y){var ft=w(f[Y],it);if(ft!==void 0)return ft}M(y,v,vt++,it)}else{it=-it-1|0;for(var Y=0;Y<vt;++Y){var ft=w(it,y[Y]);if(ft!==void 0)return ft}M(f,x,at++,it)}}}function A(k,w,R,O,j,V,H,F,U,W){for(var q=0,J=2*k,lt=k-1,yt=J-1,mt=R;mt<O;++mt){var st=V[mt]+1<<1,tt=J*mt;b[q++]=j[tt+lt],b[q++]=-st,b[q++]=j[tt+yt],b[q++]=st}for(var mt=H;mt<F;++mt){var st=W[mt]+1<<1,pt=J*mt;b[q++]=U[pt+lt],b[q++]=-st|1,b[q++]=U[pt+yt],b[q++]=st|1}var rt=q>>>1;o(b,rt);for(var at=0,vt=0,it=0,mt=0;mt<rt;++mt){var Y=b[2*mt+1]|0,ft=Y&1;if(mt<rt-1&&Y>>1===b[2*mt+3]>>1&&(ft=2,mt+=1),Y<0){for(var ut=-(Y>>1)-1,kt=0;kt<it;++kt){var zt=w(T[kt],ut);if(zt!==void 0)return zt}if(ft!==0)for(var kt=0;kt<at;++kt){var zt=w(f[kt],ut);if(zt!==void 0)return zt}if(ft!==1)for(var kt=0;kt<vt;++kt){var zt=w(y[kt],ut);if(zt!==void 0)return zt}ft===0?M(f,x,at++,ut):ft===1?M(y,v,vt++,ut):ft===2&&M(T,u,it++,ut)}else{var ut=(Y>>1)-1;ft===0?P(f,x,at--,ut):ft===1?P(y,v,vt--,ut):ft===2&&P(T,u,it--,ut)}}}function h(k,w,R,O,j,V,H,F,U,W,q,J){var lt=0,yt=2*k,mt=w,st=w+k,tt=1,pt=1;O?pt=i:tt=i;for(var rt=j;rt<V;++rt){var at=rt+tt,vt=yt*rt;b[lt++]=H[vt+mt],b[lt++]=-at,b[lt++]=H[vt+st],b[lt++]=at}for(var rt=U;rt<W;++rt){var at=rt+pt,it=yt*rt;b[lt++]=q[it+mt],b[lt++]=-at}var Y=lt>>>1;o(b,Y);for(var ft=0,rt=0;rt<Y;++rt){var ut=b[2*rt+1]|0;if(ut<0){var at=-ut,kt=!1;if(at>=i?(kt=!O,at-=i):(kt=!!O,at-=1),kt)M(f,x,ft++,at);else{var zt=J[at],Pt=yt*at,qt=q[Pt+w+1],Wt=q[Pt+w+1+k];t:for(var Jt=0;Jt<ft;++Jt){var ve=f[Jt],de=yt*ve;if(!(Wt<H[de+w+1]||H[de+w+1+k]<qt)){for(var me=w+2;me<k;++me)if(q[Pt+me+k]<H[de+me]||H[de+me+k]<q[Pt+me])continue t;var ue=F[ve],Tt;if(O?Tt=R(zt,ue):Tt=R(ue,zt),Tt!==void 0)return Tt}}}}else P(f,x,ft--,ut-tt)}}function p(k,w,R,O,j,V,H,F,U,W,q){for(var J=0,lt=2*k,yt=w,mt=w+k,st=O;st<j;++st){var tt=st+i,pt=lt*st;b[J++]=V[pt+yt],b[J++]=-tt,b[J++]=V[pt+mt],b[J++]=tt}for(var st=F;st<U;++st){var tt=st+1,rt=lt*st;b[J++]=W[rt+yt],b[J++]=-tt}var at=J>>>1;o(b,at);for(var vt=0,st=0;st<at;++st){var it=b[2*st+1]|0;if(it<0){var tt=-it;if(tt>=i)f[vt++]=tt-i;else{tt-=1;var Y=q[tt],ft=lt*tt,ut=W[ft+w+1],kt=W[ft+w+1+k];t:for(var zt=0;zt<vt;++zt){var Pt=f[zt],qt=H[Pt];if(qt===Y)break;var Wt=lt*Pt;if(!(kt<V[Wt+w+1]||V[Wt+w+1+k]<ut)){for(var Jt=w+2;Jt<k;++Jt)if(W[ft+Jt+k]<V[Wt+Jt]||V[Wt+Jt+k]<W[ft+Jt])continue t;var ve=R(qt,Y);if(ve!==void 0)return ve}}}}else{for(var tt=it-i,zt=vt-1;zt>=0;--zt)if(f[zt]===tt){for(var Jt=zt+1;Jt<vt;++Jt)f[Jt-1]=f[Jt];break}--vt}}}},868:function(t,e,r){t.exports=r(1387)},869:function(t,e,r){var a=r(2651),n=r(5716);t.exports=o;function o(i,l){var f=n(i),x=n(l);if(f===0)return[a(0),a(1)];if(x===0)return[a(0),a(0)];x<0&&(i=i.neg(),l=l.neg());var y=i.gcd(l);return y.cmpn(1)?[i.div(y),l.div(y)]:[i,l]}},870:function(t,e,r){var a=r(1433);function n(i){this.gl=i,this._elements=null,this._attributes=null,this._elementsType=i.UNSIGNED_SHORT}n.prototype.bind=function(){a(this.gl,this._elements,this._attributes)},n.prototype.update=function(i,l,f){this._elements=l,this._attributes=i,this._elementsType=f||this.gl.UNSIGNED_SHORT},n.prototype.dispose=function(){
Line truncated
|
||||
`]);e.meshShader={vertex:n,fragment:o,attributes:[{name:"position",type:"vec3"},{name:"normal",type:"vec3"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"}]},e.wireShader={vertex:i,fragment:l,attributes:[{name:"position",type:"vec3"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"}]},e.pointShader={vertex:f,fragment:x,attributes:[{name:"position",type:"vec3"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"},{name:"pointSize",type:"float"}]},e.pickShader={vertex:y,fragment:v,attributes:[{name:"position",type:"vec3"},{name:"id",type:"vec4"}]},e.pointPickShader={vertex:T,fragment:v,attributes:[{name:"position",type:"vec3"},{name:"pointSize",type:"float"},{name:"id",type:"vec4"}]},e.contourShader={vertex:u,fragment:b,attributes:[{name:"position",type:"vec3"}]}},855:function(t,e,r){t.exports={init:_,sweepBipartite:E,sweepComplete:A,scanBipartite:h,scanComplete:p};var a=r(1888),n=r(8828),o=r(4192),i=1<<28,l=1024,f=a.mallocInt32(l),x=a.mallocInt32(l),y=a.mallocInt32(l),v=a.mallocInt32(l),T=a.mallocInt32(l),u=a.mallocInt32(l),b=a.mallocDouble(l*8);function _(k){var w=n.nextPow2(k);f.length<w&&(a.free(f),f=a.mallocInt32(w)),x.length<w&&(a.free(x),x=a.mallocInt32(w)),y.length<w&&(a.free(y),y=a.mallocInt32(w)),v.length<w&&(a.free(v),v=a.mallocInt32(w)),T.length<w&&(a.free(T),T=a.mallocInt32(w)),u.length<w&&(a.free(u),u=a.mallocInt32(w));var R=8*w;b.length<R&&(a.free(b),b=a.mallocDouble(R))}function P(k,w,R,O){var j=w[O],V=k[R-1];k[j]=V,w[V]=j}function M(k,w,R,O){k[R]=O,w[O]=R}function E(k,w,R,O,j,V,H,F,U,W){for(var q=0,J=2*k,lt=k-1,yt=J-1,mt=R;mt<O;++mt){var st=V[mt],tt=J*mt;b[q++]=j[tt+lt],b[q++]=-(st+1),b[q++]=j[tt+yt],b[q++]=st}for(var mt=H;mt<F;++mt){var st=W[mt]+i,pt=J*mt;b[q++]=U[pt+lt],b[q++]=-st,b[q++]=U[pt+yt],b[q++]=st}var rt=q>>>1;o(b,rt);for(var at=0,vt=0,mt=0;mt<rt;++mt){var it=b[2*mt+1]|0;if(it>=i)it=it-i|0,P(y,v,vt--,it);else if(it>=0)P(f,x,at--,it);else if(it<=-i){it=-it-i|0;for(var Y=0;Y<at;++Y){var ft=w(f[Y],it);if(ft!==void 0)return ft}M(y,v,vt++,it)}else{it=-it-1|0;for(var Y=0;Y<vt;++Y){var ft=w(it,y[Y]);if(ft!==void 0)return ft}M(f,x,at++,it)}}}function A(k,w,R,O,j,V,H,F,U,W){for(var q=0,J=2*k,lt=k-1,yt=J-1,mt=R;mt<O;++mt){var st=V[mt]+1<<1,tt=J*mt;b[q++]=j[tt+lt],b[q++]=-st,b[q++]=j[tt+yt],b[q++]=st}for(var mt=H;mt<F;++mt){var st=W[mt]+1<<1,pt=J*mt;b[q++]=U[pt+lt],b[q++]=-st|1,b[q++]=U[pt+yt],b[q++]=st|1}var rt=q>>>1;o(b,rt);for(var at=0,vt=0,it=0,mt=0;mt<rt;++mt){var Y=b[2*mt+1]|0,ft=Y&1;if(mt<rt-1&&Y>>1===b[2*mt+3]>>1&&(ft=2,mt+=1),Y<0){for(var ut=-(Y>>1)-1,kt=0;kt<it;++kt){var It=w(T[kt],ut);if(It!==void 0)return It}if(ft!==0)for(var kt=0;kt<at;++kt){var It=w(f[kt],ut);if(It!==void 0)return It}if(ft!==1)for(var kt=0;kt<vt;++kt){var It=w(y[kt],ut);if(It!==void 0)return It}ft===0?M(f,x,at++,ut):ft===1?M(y,v,vt++,ut):ft===2&&M(T,u,it++,ut)}else{var ut=(Y>>1)-1;ft===0?P(f,x,at--,ut):ft===1?P(y,v,vt--,ut):ft===2&&P(T,u,it--,ut)}}}function h(k,w,R,O,j,V,H,F,U,W,q,J){var lt=0,yt=2*k,mt=w,st=w+k,tt=1,pt=1;O?pt=i:tt=i;for(var rt=j;rt<V;++rt){var at=rt+tt,vt=yt*rt;b[lt++]=H[vt+mt],b[lt++]=-at,b[lt++]=H[vt+st],b[lt++]=at}for(var rt=U;rt<W;++rt){var at=rt+pt,it=yt*rt;b[lt++]=q[it+mt],b[lt++]=-at}var Y=lt>>>1;o(b,Y);for(var ft=0,rt=0;rt<Y;++rt){var ut=b[2*rt+1]|0;if(ut<0){var at=-ut,kt=!1;if(at>=i?(kt=!O,at-=i):(kt=!!O,at-=1),kt)M(f,x,ft++,at);else{var It=J[at],Pt=yt*at,qt=q[Pt+w+1],Wt=q[Pt+w+1+k];t:for(var Jt=0;Jt<ft;++Jt){var ve=f[Jt],de=yt*ve;if(!(Wt<H[de+w+1]||H[de+w+1+k]<qt)){for(var me=w+2;me<k;++me)if(q[Pt+me+k]<H[de+me]||H[de+me+k]<q[Pt+me])continue t;var ue=F[ve],Tt;if(O?Tt=R(It,ue):Tt=R(ue,It),Tt!==void 0)return Tt}}}}else P(f,x,ft--,ut-tt)}}function p(k,w,R,O,j,V,H,F,U,W,q){for(var J=0,lt=2*k,yt=w,mt=w+k,st=O;st<j;++st){var tt=st+i,pt=lt*st;b[J++]=V[pt+yt],b[J++]=-tt,b[J++]=V[pt+mt],b[J++]=tt}for(var st=F;st<U;++st){var tt=st+1,rt=lt*st;b[J++]=W[rt+yt],b[J++]=-tt}var at=J>>>1;o(b,at);for(var vt=0,st=0;st<at;++st){var it=b[2*st+1]|0;if(it<0){var tt=-it;if(tt>=i)f[vt++]=tt-i;else{tt-=1;var Y=q[tt],ft=lt*tt,ut=W[ft+w+1],kt=W[ft+w+1+k];t:for(var It=0;It<vt;++It){var Pt=f[It],qt=H[Pt];if(qt===Y)break;var Wt=lt*Pt;if(!(kt<V[Wt+w+1]||V[Wt+w+1+k]<ut)){for(var Jt=w+2;Jt<k;++Jt)if(W[ft+Jt+k]<V[Wt+Jt]||V[Wt+Jt+k]<W[ft+Jt])continue t;var ve=R(qt,Y);if(ve!==void 0)return ve}}}}else{for(var tt=it-i,It=vt-1;It>=0;--It)if(f[It]===tt){for(var Jt=It+1;Jt<vt;++Jt)f[Jt-1]=f[Jt];break}--vt}}}},868:function(t,e,r){t.exports=r(1387)},869:function(t,e,r){var a=r(2651),n=r(5716);t.exports=o;function o(i,l){var f=n(i),x=n(l);if(f===0)return[a(0),a(1)];if(x===0)return[a(0),a(0)];x<0&&(i=i.neg(),l=l.neg());var y=i.gcd(l);return y.cmpn(1)?[i.div(y),l.div(y)]:[i,l]}},870:function(t,e,r){var a=r(1433);function n(i){this.gl=i,this._elements=null,this._attributes=null,this._elementsType=i.UNSIGNED_SHORT}n.prototype.bind=function(){a(this.gl,this._elements,this._attributes)},n.prototype.update=function(i,l,f){this._elements=l,this._attributes=i,this._elementsType=f||this.gl.UNSIGNED_SHORT},n.prototype.dispose=function(){
Line truncated
|
||||
#define GLSLIFY 1
|
||||
|
||||
attribute vec4 uv;
|
||||
@@ -1140,7 +1140,7 @@ void main() {
|
||||
gl_FragColor = vec4(pickId, ux.x, uy.x, ux.y + (uy.y/16.0));
|
||||
}
|
||||
`]);e.createShader=function(x){var y=a(x,o,i,null,[{name:"uv",type:"vec4"},{name:"f",type:"vec3"},{name:"normal",type:"vec3"}]);return y.attributes.uv.location=0,y.attributes.f.location=1,y.attributes.normal.location=2,y},e.createPickShader=function(x){var y=a(x,o,f,null,[{name:"uv",type:"vec4"},{name:"f",type:"vec3"},{name:"normal",type:"vec3"}]);return y.attributes.uv.location=0,y.attributes.f.location=1,y.attributes.normal.location=2,y},e.createContourShader=function(x){var y=a(x,l,i,null,[{name:"uv",type:"vec4"},{name:"f",type:"float"}]);return y.attributes.uv.location=0,y.attributes.f.location=1,y},e.createPickContourShader=function(x){var y=a(x,l,f,null,[{name:"uv",type:"vec4"},{name:"f",type:"float"}]);return y.attributes.uv.location=0,y.attributes.f.location=1,y}},1085:function(t,e,r){var a=r(1371);t.exports=n;function n(o,i,l){i=typeof i=="number"?i:1,l=l||": ";var f=o.split(/\r?\n/),x=String(f.length+i-1).length;return f.map(function(y,v){var T=v+i,u=String(T).length,b=a(T,x-u);return b+l+y}).join(`
|
||||
`)}},1091:function(t){t.exports=e;function e(){var r=new Float32Array(3);return r[0]=0,r[1]=0,r[2]=0,r}},1125:function(t,e,r){t.exports=o;var a=r(3250)[3];function n(i,l,f,x){for(var y=0;y<2;++y){var v=i[y],T=l[y],u=Math.min(v,T),b=Math.max(v,T),_=f[y],P=x[y],M=Math.min(_,P),C=Math.max(_,P);if(C<u||b<M)return!1}return!0}function o(i,l,f,x){var y=a(i,f,x),v=a(l,f,x);if(y>0&&v>0||y<0&&v<0)return!1;var T=a(f,i,l),u=a(x,i,l);return T>0&&u>0||T<0&&u<0?!1:y===0&&v===0&&T===0&&u===0?n(i,l,f,x):!0}},1278:function(t,e,r){var a=r(2361),n=Math.pow(2,-1074),o=-1>>>0;t.exports=i;function i(l,f){if(isNaN(l)||isNaN(f))return NaN;if(l===f)return l;if(l===0)return f<0?-n:n;var x=a.hi(l),y=a.lo(l);return f>l==l>0?y===o?(x+=1,y=0):y+=1:y===0?(y=o,x-=1):y-=1,a.pack(y,x)}},1283:function(t,e,r){var a=r(9405),n=r(3236),o=n([`precision highp float;
|
||||
`)}},1091:function(t){t.exports=e;function e(){var r=new Float32Array(3);return r[0]=0,r[1]=0,r[2]=0,r}},1125:function(t,e,r){t.exports=o;var a=r(3250)[3];function n(i,l,f,x){for(var y=0;y<2;++y){var v=i[y],T=l[y],u=Math.min(v,T),b=Math.max(v,T),_=f[y],P=x[y],M=Math.min(_,P),E=Math.max(_,P);if(E<u||b<M)return!1}return!0}function o(i,l,f,x){var y=a(i,f,x),v=a(l,f,x);if(y>0&&v>0||y<0&&v<0)return!1;var T=a(f,i,l),u=a(x,i,l);return T>0&&u>0||T<0&&u<0?!1:y===0&&v===0&&T===0&&u===0?n(i,l,f,x):!0}},1278:function(t,e,r){var a=r(2361),n=Math.pow(2,-1074),o=-1>>>0;t.exports=i;function i(l,f){if(isNaN(l)||isNaN(f))return NaN;if(l===f)return l;if(l===0)return f<0?-n:n;var x=a.hi(l),y=a.lo(l);return f>l==l>0?y===o?(x+=1,y=0):y+=1:y===0?(y=o,x-=1):y-=1,a.pack(y,x)}},1283:function(t,e,r){var a=r(9405),n=r(3236),o=n([`precision highp float;
|
||||
#define GLSLIFY 1
|
||||
|
||||
bool outOfRange(float a, float b, float p) {
|
||||
@@ -1384,7 +1384,7 @@ void main() {
|
||||
if (outOfRange(fragClipBounds[0], fragClipBounds[1], dataCoordinate)) discard;
|
||||
|
||||
gl_FragColor = vec4(pickGroup, pickId.bgr);
|
||||
}`]),y=[{name:"position",type:"vec3"},{name:"color",type:"vec4"},{name:"glyph",type:"vec2"},{name:"id",type:"vec4"}],v={vertex:o,fragment:f,attributes:y},T={vertex:i,fragment:f,attributes:y},u={vertex:l,fragment:f,attributes:y},b={vertex:o,fragment:x,attributes:y},_={vertex:i,fragment:x,attributes:y},P={vertex:l,fragment:x,attributes:y};function M(C,A){var h=a(C,A),p=h.attributes;return p.position.location=0,p.color.location=1,p.glyph.location=2,p.id.location=3,h}e.createPerspective=function(C){return M(C,v)},e.createOrtho=function(C){return M(C,T)},e.createProject=function(C){return M(C,u)},e.createPickPerspective=function(C){return M(C,b)},e.createPickOrtho=function(C){return M(C,_)},e.createPickProject=function(C){return M(C,P)}},1303:function(t,e,r){t.exports=o;var a=r(3250);function n(i,l){var f,x;if(l[0][0]<l[1][0])f=l[0],x=l[1];else if(l[0][0]>l[1][0])f=l[1],x=l[0];else{var y=Math.min(i[0][1],i[1][1]),v=Math.max(i[0][1],i[1][1]),T=Math.min(l[0][1],l[1][1]),u=Math.max(l[0][1],l[1][1]);return v<T?v-T:y>u?y-u:v-u}var b,_;i[0][1]<i[1][1]?(b=i[0],_=i[1]):(b=i[1],_=i[0]);var P=a(x,f,b);return P||(P=a(x,f,_),P)?P:_-x}function o(i,l){var f,x;if(l[0][0]<l[1][0])f=l[0],x=l[1];else if(l[0][0]>l[1][0])f=l[1],x=l[0];else return n(l,i);var y,v;if(i[0][0]<i[1][0])y=i[0],v=i[1];else if(i[0][0]>i[1][0])y=i[1],v=i[0];else return-n(i,l);var T=a(f,x,v),u=a(f,x,y);if(T<0){if(u<=0)return T}else if(T>0){if(u>=0)return T}else if(u)return u;if(T=a(v,y,x),u=a(v,y,f),T<0){if(u<=0)return T}else if(T>0){if(u>=0)return T}else if(u)return u;return x[0]-v[0]}},1318:function(t){t.exports=e;function e(r,a){return r[0].mul(a[1]).cmp(a[0].mul(r[1]))}},1338:function(t){function e(n,o,i){var l=n[i]|0;if(l<=0)return[];var f=new Array(l),x;if(i===n.length-1)for(x=0;x<l;++x)f[x]=o;else for(x=0;x<l;++x)f[x]=e(n,o,i+1);return f}function r(n,o){var i,l;for(i=new Array(n),l=0;l<n;++l)i[l]=o;return i}function a(n,o){switch(typeof o>"u"&&(o=0),typeof n){case"number":if(n>0)return r(n|0,o);break;case"object":if(typeof n.length=="number")return e(n,o,0);break}return[]}t.exports=a},1369:function(t,e,r){var a=r(5716);t.exports=n;function n(o){var i=o.length,l=o.words,f=0;if(i===1)f=l[0];else if(i===2)f=l[0]+l[1]*67108864;else for(var x=0;x<i;x++){var y=l[x];f+=y*Math.pow(67108864,x)}return a(o)*f}},1371:function(t,e,r){var a=r(3233);t.exports=function(n,o,i){return i=typeof i<"u"?i+"":" ",a(i,o)+n}},1373:function(t){t.exports=e;function e(r,a,n){return r[0]=a[0]/n[0],r[1]=a[1]/n[1],r[2]=a[2]/n[2],r[3]=a[3]/n[3],r}},1387:function(t){t.exports=e;function e(r){var a=r[0],n=r[1],o=r[2];return Math.sqrt(a*a+n*n+o*o)}},1433:function(t){function e(r,a,n){a?a.bind():r.bindBuffer(r.ELEMENT_ARRAY_BUFFER,null);var o=r.getParameter(r.MAX_VERTEX_ATTRIBS)|0;if(n){if(n.length>o)throw new Error("gl-vao: Too many vertex attributes");for(var i=0;i<n.length;++i){var l=n[i];if(l.buffer){var f=l.buffer,x=l.size||4,y=l.type||r.FLOAT,v=!!l.normalized,T=l.stride||0,u=l.offset||0;f.bind(),r.enableVertexAttribArray(i),r.vertexAttribPointer(i,x,y,v,T,u)}else{if(typeof l=="number")r.vertexAttrib1f(i,l);else if(l.length===1)r.vertexAttrib1f(i,l[0]);else if(l.length===2)r.vertexAttrib2f(i,l[0],l[1]);else if(l.length===3)r.vertexAttrib3f(i,l[0],l[1],l[2]);else if(l.length===4)r.vertexAttrib4f(i,l[0],l[1],l[2],l[3]);else throw new Error("gl-vao: Invalid vertex attribute");r.disableVertexAttribArray(i)}}for(;i<o;++i)r.disableVertexAttribArray(i)}else{r.bindBuffer(r.ARRAY_BUFFER,null);for(var i=0;i<o;++i)r.disableVertexAttribArray(i)}}t.exports=e},1463:function(t){t.exports=e;function e(r,a,n,o){return r[0]=a,r[1]=n,r[2]=o,r}},1493:function(t,e,r){var a=r(3236),n=r(9405),o=a([`precision mediump float;
|
||||
}`]),y=[{name:"position",type:"vec3"},{name:"color",type:"vec4"},{name:"glyph",type:"vec2"},{name:"id",type:"vec4"}],v={vertex:o,fragment:f,attributes:y},T={vertex:i,fragment:f,attributes:y},u={vertex:l,fragment:f,attributes:y},b={vertex:o,fragment:x,attributes:y},_={vertex:i,fragment:x,attributes:y},P={vertex:l,fragment:x,attributes:y};function M(E,A){var h=a(E,A),p=h.attributes;return p.position.location=0,p.color.location=1,p.glyph.location=2,p.id.location=3,h}e.createPerspective=function(E){return M(E,v)},e.createOrtho=function(E){return M(E,T)},e.createProject=function(E){return M(E,u)},e.createPickPerspective=function(E){return M(E,b)},e.createPickOrtho=function(E){return M(E,_)},e.createPickProject=function(E){return M(E,P)}},1303:function(t,e,r){t.exports=o;var a=r(3250);function n(i,l){var f,x;if(l[0][0]<l[1][0])f=l[0],x=l[1];else if(l[0][0]>l[1][0])f=l[1],x=l[0];else{var y=Math.min(i[0][1],i[1][1]),v=Math.max(i[0][1],i[1][1]),T=Math.min(l[0][1],l[1][1]),u=Math.max(l[0][1],l[1][1]);return v<T?v-T:y>u?y-u:v-u}var b,_;i[0][1]<i[1][1]?(b=i[0],_=i[1]):(b=i[1],_=i[0]);var P=a(x,f,b);return P||(P=a(x,f,_),P)?P:_-x}function o(i,l){var f,x;if(l[0][0]<l[1][0])f=l[0],x=l[1];else if(l[0][0]>l[1][0])f=l[1],x=l[0];else return n(l,i);var y,v;if(i[0][0]<i[1][0])y=i[0],v=i[1];else if(i[0][0]>i[1][0])y=i[1],v=i[0];else return-n(i,l);var T=a(f,x,v),u=a(f,x,y);if(T<0){if(u<=0)return T}else if(T>0){if(u>=0)return T}else if(u)return u;if(T=a(v,y,x),u=a(v,y,f),T<0){if(u<=0)return T}else if(T>0){if(u>=0)return T}else if(u)return u;return x[0]-v[0]}},1318:function(t){t.exports=e;function e(r,a){return r[0].mul(a[1]).cmp(a[0].mul(r[1]))}},1338:function(t){function e(n,o,i){var l=n[i]|0;if(l<=0)return[];var f=new Array(l),x;if(i===n.length-1)for(x=0;x<l;++x)f[x]=o;else for(x=0;x<l;++x)f[x]=e(n,o,i+1);return f}function r(n,o){var i,l;for(i=new Array(n),l=0;l<n;++l)i[l]=o;return i}function a(n,o){switch(typeof o>"u"&&(o=0),typeof n){case"number":if(n>0)return r(n|0,o);break;case"object":if(typeof n.length=="number")return e(n,o,0);break}return[]}t.exports=a},1369:function(t,e,r){var a=r(5716);t.exports=n;function n(o){var i=o.length,l=o.words,f=0;if(i===1)f=l[0];else if(i===2)f=l[0]+l[1]*67108864;else for(var x=0;x<i;x++){var y=l[x];f+=y*Math.pow(67108864,x)}return a(o)*f}},1371:function(t,e,r){var a=r(3233);t.exports=function(n,o,i){return i=typeof i<"u"?i+"":" ",a(i,o)+n}},1373:function(t){t.exports=e;function e(r,a,n){return r[0]=a[0]/n[0],r[1]=a[1]/n[1],r[2]=a[2]/n[2],r[3]=a[3]/n[3],r}},1387:function(t){t.exports=e;function e(r){var a=r[0],n=r[1],o=r[2];return Math.sqrt(a*a+n*n+o*o)}},1433:function(t){function e(r,a,n){a?a.bind():r.bindBuffer(r.ELEMENT_ARRAY_BUFFER,null);var o=r.getParameter(r.MAX_VERTEX_ATTRIBS)|0;if(n){if(n.length>o)throw new Error("gl-vao: Too many vertex attributes");for(var i=0;i<n.length;++i){var l=n[i];if(l.buffer){var f=l.buffer,x=l.size||4,y=l.type||r.FLOAT,v=!!l.normalized,T=l.stride||0,u=l.offset||0;f.bind(),r.enableVertexAttribArray(i),r.vertexAttribPointer(i,x,y,v,T,u)}else{if(typeof l=="number")r.vertexAttrib1f(i,l);else if(l.length===1)r.vertexAttrib1f(i,l[0]);else if(l.length===2)r.vertexAttrib2f(i,l[0],l[1]);else if(l.length===3)r.vertexAttrib3f(i,l[0],l[1],l[2]);else if(l.length===4)r.vertexAttrib4f(i,l[0],l[1],l[2],l[3]);else throw new Error("gl-vao: Invalid vertex attribute");r.disableVertexAttribArray(i)}}for(;i<o;++i)r.disableVertexAttribArray(i)}else{r.bindBuffer(r.ARRAY_BUFFER,null);for(var i=0;i<o;++i)r.disableVertexAttribArray(i)}}t.exports=e},1463:function(t){t.exports=e;function e(r,a,n,o){return r[0]=a,r[1]=n,r[2]=o,r}},1493:function(t,e,r){var a=r(3236),n=r(9405),o=a([`precision mediump float;
|
||||
#define GLSLIFY 1
|
||||
|
||||
attribute vec3 position, color;
|
||||
@@ -1417,7 +1417,7 @@ varying vec4 fragColor;
|
||||
|
||||
void main() {
|
||||
gl_FragColor = fragColor;
|
||||
}`]);t.exports=function(l){return n(l,o,i,null,[{name:"position",type:"vec3"},{name:"color",type:"vec3"},{name:"weight",type:"float"}])}},1498:function(t){t.exports=e;function e(r,a){return r[0]=-a[0],r[1]=-a[1],r[2]=-a[2],r[3]=-a[3],r}},1533:function(t,e,r){r(6859),t.exports=a;function a(n){return n&&typeof n=="object"&&!!n.words}},1538:function(t){(function(){if(typeof ses<"u"&&ses.ok&&!ses.ok())return;function e(p){p.permitHostObjects___&&p.permitHostObjects___(e)}typeof ses<"u"&&(ses.weakMapPermitHostObjects=e);var r=!1;if(typeof WeakMap=="function"){var a=WeakMap;if(!(typeof navigator<"u"&&/Firefox/.test(navigator.userAgent))){var n=new a,o=Object.freeze({});if(n.set(o,1),n.get(o)!==1)r=!0;else{t.exports=WeakMap;return}}}var i=Object.getOwnPropertyNames,l=Object.defineProperty,f=Object.isExtensible,x="weakmap:",y=x+"ident:"+Math.random()+"___";if(typeof crypto<"u"&&typeof crypto.getRandomValues=="function"&&typeof ArrayBuffer=="function"&&typeof Uint8Array=="function"){var v=new ArrayBuffer(25),T=new Uint8Array(v);crypto.getRandomValues(T),y=x+"rand:"+Array.prototype.map.call(T,function(p){return(p%36).toString(36)}).join("")+"___"}function u(p){return!(p.substr(0,x.length)==x&&p.substr(p.length-3)==="___")}if(l(Object,"getOwnPropertyNames",{value:function(p){return i(p).filter(u)}}),"getPropertyNames"in Object){var b=Object.getPropertyNames;l(Object,"getPropertyNames",{value:function(p){return b(p).filter(u)}})}function _(p){if(p!==Object(p))throw new TypeError("Not an object: "+p);var k=p[y];if(k&&k.key===p)return k;if(f(p)){k={key:p};try{return l(p,y,{value:k,writable:!1,enumerable:!1,configurable:!1}),k}catch{return}}}(function(){var p=Object.freeze;l(Object,"freeze",{value:function(R){return _(R),p(R)}});var k=Object.seal;l(Object,"seal",{value:function(R){return _(R),k(R)}});var w=Object.preventExtensions;l(Object,"preventExtensions",{value:function(R){return _(R),w(R)}})})();function P(p){return p.prototype=null,Object.freeze(p)}var M=!1;function C(){!M&&typeof console<"u"&&(M=!0,console.warn("WeakMap should be invoked as new WeakMap(), not WeakMap(). This will be an error in the future."))}var A=0,h=function(){this instanceof h||C();var p=[],k=[],w=A++;function R(H,F){var U,W=_(H);return W?w in W?W[w]:F:(U=p.indexOf(H),U>=0?k[U]:F)}function O(H){var F=_(H);return F?w in F:p.indexOf(H)>=0}function j(H,F){var U,W=_(H);return W?W[w]=F:(U=p.indexOf(H),U>=0?k[U]=F:(U=p.length,k[U]=F,p[U]=H)),this}function V(H){var F=_(H),U,W;return F?w in F&&delete F[w]:(U=p.indexOf(H),U<0?!1:(W=p.length-1,p[U]=void 0,k[U]=k[W],p[U]=p[W],p.length=W,k.length=W,!0))}return Object.create(h.prototype,{get___:{value:P(R)},has___:{value:P(O)},set___:{value:P(j)},delete___:{value:P(V)}})};h.prototype=Object.create(Object.prototype,{get:{value:function(p,k){return this.get___(p,k)},writable:!0,configurable:!0},has:{value:function(p){return this.has___(p)},writable:!0,configurable:!0},set:{value:function(p,k){return this.set___(p,k)},writable:!0,configurable:!0},delete:{value:function(p){return this.delete___(p)},writable:!0,configurable:!0}}),typeof a=="function"?function(){r&&typeof Proxy<"u"&&(Proxy=void 0);function p(){this instanceof h||C();var k=new a,w=void 0,R=!1;function O(F,U){return w?k.has(F)?k.get(F):w.get___(F,U):k.get(F,U)}function j(F){return k.has(F)||(w?w.has___(F):!1)}var V;r?V=function(F,U){return k.set(F,U),k.has(F)||(w||(w=new h),w.set(F,U)),this}:V=function(F,U){if(R)try{k.set(F,U)}catch{w||(w=new h),w.set___(F,U)}else k.set(F,U);return this};function H(F){var U=!!k.delete(F);return w&&w.delete___(F)||U}return Object.create(h.prototype,{get___:{value:P(O)},has___:{value:P(j)},set___:{value:P(V)},delete___:{value:P(H)},permitHostObjects___:{value:P(function(F){if(F===e)R=!0;else throw new Error("bogus call to permitHostObjects___")})}})}p.prototype=h.prototype,t.exports=p,Object.defineProperty(WeakMap.prototype,"constructor",{value:WeakMap,enumerable:!1,configurable:!0,writable:!0})}():(typeof Proxy<"u"&&(Proxy=void 0),t.exports=h)})()},1570:function(t){t.exports=r;var e=[function(){function a(n,o,i,l){for(var f=n.length,x=[],y=0;y<f;++y)var v=n[y],T=v.length;return x}return a},function(){function a(o,i,l,f){for(var x=Math.min(l,f)|0,y=Math.max(l,f)|0,v=o[2*x],T=o[2*x+1];v<T;){var u=v+T>>1,b=i[2*u+1];if(b===y)return u;y<b?T=u:v=u+1}return v}function n(o,i,l,f){for(var x=o.length,y=[],v=0;v<x;++v){var T=o[v],u=T.length;if(u===2){var b=(f[T[0]]<<0)+(f[T[1]]<<1);if(b===0||b===3)continue;switch(b){case 0:break;case 1:y.push([a(l,i,T[0],T[1])]);break;case 2:y.push([a(l,i,T[1],T[0])]);break}}}return y}return n},function(){function a(o,i,l,f){for(var x=Math.min(l,f)|0,y=Math.max(l,f)|0,v=o[2*x],T=o[2*x+1];v<T;){var u=v+T>>1,b=i[2*u+1];if(b===y)return u;y<b?T=u:v=u+1}return v}function n(o,i,l,f){for(var x=o.length,y=[],v=0;v<x;++v){var T=o[v],u=T.length;if(u===3){var b=(f[T[0]]<<0)+(f[T[1]]<<1)+(f[T[2]]<<2);if(b===0||b===7)continue;switch(b){case 0:break;case 1:y.push([a(l,i,T[0],T[2]),a(l,i,T[0],T[1])]);break
Line truncated
|
||||
}`]);t.exports=function(l){return n(l,o,i,null,[{name:"position",type:"vec3"},{name:"color",type:"vec3"},{name:"weight",type:"float"}])}},1498:function(t){t.exports=e;function e(r,a){return r[0]=-a[0],r[1]=-a[1],r[2]=-a[2],r[3]=-a[3],r}},1533:function(t,e,r){r(6859),t.exports=a;function a(n){return n&&typeof n=="object"&&!!n.words}},1538:function(t){(function(){if(typeof ses<"u"&&ses.ok&&!ses.ok())return;function e(p){p.permitHostObjects___&&p.permitHostObjects___(e)}typeof ses<"u"&&(ses.weakMapPermitHostObjects=e);var r=!1;if(typeof WeakMap=="function"){var a=WeakMap;if(!(typeof navigator<"u"&&/Firefox/.test(navigator.userAgent))){var n=new a,o=Object.freeze({});if(n.set(o,1),n.get(o)!==1)r=!0;else{t.exports=WeakMap;return}}}var i=Object.getOwnPropertyNames,l=Object.defineProperty,f=Object.isExtensible,x="weakmap:",y=x+"ident:"+Math.random()+"___";if(typeof crypto<"u"&&typeof crypto.getRandomValues=="function"&&typeof ArrayBuffer=="function"&&typeof Uint8Array=="function"){var v=new ArrayBuffer(25),T=new Uint8Array(v);crypto.getRandomValues(T),y=x+"rand:"+Array.prototype.map.call(T,function(p){return(p%36).toString(36)}).join("")+"___"}function u(p){return!(p.substr(0,x.length)==x&&p.substr(p.length-3)==="___")}if(l(Object,"getOwnPropertyNames",{value:function(p){return i(p).filter(u)}}),"getPropertyNames"in Object){var b=Object.getPropertyNames;l(Object,"getPropertyNames",{value:function(p){return b(p).filter(u)}})}function _(p){if(p!==Object(p))throw new TypeError("Not an object: "+p);var k=p[y];if(k&&k.key===p)return k;if(f(p)){k={key:p};try{return l(p,y,{value:k,writable:!1,enumerable:!1,configurable:!1}),k}catch{return}}}(function(){var p=Object.freeze;l(Object,"freeze",{value:function(R){return _(R),p(R)}});var k=Object.seal;l(Object,"seal",{value:function(R){return _(R),k(R)}});var w=Object.preventExtensions;l(Object,"preventExtensions",{value:function(R){return _(R),w(R)}})})();function P(p){return p.prototype=null,Object.freeze(p)}var M=!1;function E(){!M&&typeof console<"u"&&(M=!0,console.warn("WeakMap should be invoked as new WeakMap(), not WeakMap(). This will be an error in the future."))}var A=0,h=function(){this instanceof h||E();var p=[],k=[],w=A++;function R(H,F){var U,W=_(H);return W?w in W?W[w]:F:(U=p.indexOf(H),U>=0?k[U]:F)}function O(H){var F=_(H);return F?w in F:p.indexOf(H)>=0}function j(H,F){var U,W=_(H);return W?W[w]=F:(U=p.indexOf(H),U>=0?k[U]=F:(U=p.length,k[U]=F,p[U]=H)),this}function V(H){var F=_(H),U,W;return F?w in F&&delete F[w]:(U=p.indexOf(H),U<0?!1:(W=p.length-1,p[U]=void 0,k[U]=k[W],p[U]=p[W],p.length=W,k.length=W,!0))}return Object.create(h.prototype,{get___:{value:P(R)},has___:{value:P(O)},set___:{value:P(j)},delete___:{value:P(V)}})};h.prototype=Object.create(Object.prototype,{get:{value:function(p,k){return this.get___(p,k)},writable:!0,configurable:!0},has:{value:function(p){return this.has___(p)},writable:!0,configurable:!0},set:{value:function(p,k){return this.set___(p,k)},writable:!0,configurable:!0},delete:{value:function(p){return this.delete___(p)},writable:!0,configurable:!0}}),typeof a=="function"?function(){r&&typeof Proxy<"u"&&(Proxy=void 0);function p(){this instanceof h||E();var k=new a,w=void 0,R=!1;function O(F,U){return w?k.has(F)?k.get(F):w.get___(F,U):k.get(F,U)}function j(F){return k.has(F)||(w?w.has___(F):!1)}var V;r?V=function(F,U){return k.set(F,U),k.has(F)||(w||(w=new h),w.set(F,U)),this}:V=function(F,U){if(R)try{k.set(F,U)}catch{w||(w=new h),w.set___(F,U)}else k.set(F,U);return this};function H(F){var U=!!k.delete(F);return w&&w.delete___(F)||U}return Object.create(h.prototype,{get___:{value:P(O)},has___:{value:P(j)},set___:{value:P(V)},delete___:{value:P(H)},permitHostObjects___:{value:P(function(F){if(F===e)R=!0;else throw new Error("bogus call to permitHostObjects___")})}})}p.prototype=h.prototype,t.exports=p,Object.defineProperty(WeakMap.prototype,"constructor",{value:WeakMap,enumerable:!1,configurable:!0,writable:!0})}():(typeof Proxy<"u"&&(Proxy=void 0),t.exports=h)})()},1570:function(t){t.exports=r;var e=[function(){function a(n,o,i,l){for(var f=n.length,x=[],y=0;y<f;++y)var v=n[y],T=v.length;return x}return a},function(){function a(o,i,l,f){for(var x=Math.min(l,f)|0,y=Math.max(l,f)|0,v=o[2*x],T=o[2*x+1];v<T;){var u=v+T>>1,b=i[2*u+1];if(b===y)return u;y<b?T=u:v=u+1}return v}function n(o,i,l,f){for(var x=o.length,y=[],v=0;v<x;++v){var T=o[v],u=T.length;if(u===2){var b=(f[T[0]]<<0)+(f[T[1]]<<1);if(b===0||b===3)continue;switch(b){case 0:break;case 1:y.push([a(l,i,T[0],T[1])]);break;case 2:y.push([a(l,i,T[1],T[0])]);break}}}return y}return n},function(){function a(o,i,l,f){for(var x=Math.min(l,f)|0,y=Math.max(l,f)|0,v=o[2*x],T=o[2*x+1];v<T;){var u=v+T>>1,b=i[2*u+1];if(b===y)return u;y<b?T=u:v=u+1}return v}function n(o,i,l,f){for(var x=o.length,y=[],v=0;v<x;++v){var T=o[v],u=T.length;if(u===3){var b=(f[T[0]]<<0)+(f[T[1]]<<1)+(f[T[2]]<<2);if(b===0||b===7)continue;switch(b){case 0:break;case 1:y.push([a(l,i,T[0],T[2]),a(l,i,T[0],T[1])]);break
Line truncated
|
||||
#define GLSLIFY 1
|
||||
|
||||
attribute vec3 position;
|
||||
@@ -1633,13 +1633,13 @@ void main() {
|
||||
gl_FragColor = colorChannel.x * colors[0] +
|
||||
colorChannel.y * colors[1] +
|
||||
colorChannel.z * colors[2];
|
||||
}`]);e.bg=function(v){return n(v,x,y,null,[{name:"position",type:"vec3"},{name:"normal",type:"vec3"}])}},1888:function(t,e,r){var a=r(8828),n=r(1338),o=r(4793).hp;r.g.__TYPEDARRAY_POOL||(r.g.__TYPEDARRAY_POOL={UINT8:n([32,0]),UINT16:n([32,0]),UINT32:n([32,0]),BIGUINT64:n([32,0]),INT8:n([32,0]),INT16:n([32,0]),INT32:n([32,0]),BIGINT64:n([32,0]),FLOAT:n([32,0]),DOUBLE:n([32,0]),DATA:n([32,0]),UINT8C:n([32,0]),BUFFER:n([32,0])});var i=typeof Uint8ClampedArray<"u",l=typeof BigUint64Array<"u",f=typeof BigInt64Array<"u",x=r.g.__TYPEDARRAY_POOL;x.UINT8C||(x.UINT8C=n([32,0])),x.BIGUINT64||(x.BIGUINT64=n([32,0])),x.BIGINT64||(x.BIGINT64=n([32,0])),x.BUFFER||(x.BUFFER=n([32,0]));var y=x.DATA,v=x.BUFFER;e.free=function(H){if(o.isBuffer(H))v[a.log2(H.length)].push(H);else{if(Object.prototype.toString.call(H)!=="[object ArrayBuffer]"&&(H=H.buffer),!H)return;var F=H.length||H.byteLength,U=a.log2(F)|0;y[U].push(H)}};function T(H){if(H){var F=H.length||H.byteLength,U=a.log2(F);y[U].push(H)}}function u(H){T(H.buffer)}e.freeUint8=e.freeUint16=e.freeUint32=e.freeBigUint64=e.freeInt8=e.freeInt16=e.freeInt32=e.freeBigInt64=e.freeFloat32=e.freeFloat=e.freeFloat64=e.freeDouble=e.freeUint8Clamped=e.freeDataView=u,e.freeArrayBuffer=T,e.freeBuffer=function(H){v[a.log2(H.length)].push(H)},e.malloc=function(H,F){if(F===void 0||F==="arraybuffer")return b(H);switch(F){case"uint8":return _(H);case"uint16":return P(H);case"uint32":return M(H);case"int8":return C(H);case"int16":return A(H);case"int32":return h(H);case"float":case"float32":return p(H);case"double":case"float64":return k(H);case"uint8_clamped":return w(H);case"bigint64":return O(H);case"biguint64":return R(H);case"buffer":return V(H);case"data":case"dataview":return j(H);default:return null}return null};function b(F){var F=a.nextPow2(F),U=a.log2(F),W=y[U];return W.length>0?W.pop():new ArrayBuffer(F)}e.mallocArrayBuffer=b;function _(H){return new Uint8Array(b(H),0,H)}e.mallocUint8=_;function P(H){return new Uint16Array(b(2*H),0,H)}e.mallocUint16=P;function M(H){return new Uint32Array(b(4*H),0,H)}e.mallocUint32=M;function C(H){return new Int8Array(b(H),0,H)}e.mallocInt8=C;function A(H){return new Int16Array(b(2*H),0,H)}e.mallocInt16=A;function h(H){return new Int32Array(b(4*H),0,H)}e.mallocInt32=h;function p(H){return new Float32Array(b(4*H),0,H)}e.mallocFloat32=e.mallocFloat=p;function k(H){return new Float64Array(b(8*H),0,H)}e.mallocFloat64=e.mallocDouble=k;function w(H){return i?new Uint8ClampedArray(b(H),0,H):_(H)}e.mallocUint8Clamped=w;function R(H){return l?new BigUint64Array(b(8*H),0,H):null}e.mallocBigUint64=R;function O(H){return f?new BigInt64Array(b(8*H),0,H):null}e.mallocBigInt64=O;function j(H){return new DataView(b(H),0,H)}e.mallocDataView=j;function V(H){H=a.nextPow2(H);var F=a.log2(H),U=v[F];return U.length>0?U.pop():new o(H)}e.mallocBuffer=V,e.clearCache=function(){for(var H=0;H<32;++H)x.UINT8[H].length=0,x.UINT16[H].length=0,x.UINT32[H].length=0,x.INT8[H].length=0,x.INT16[H].length=0,x.INT32[H].length=0,x.FLOAT[H].length=0,x.DOUBLE[H].length=0,x.BIGUINT64[H].length=0,x.BIGINT64[H].length=0,x.UINT8C[H].length=0,y[H].length=0,v[H].length=0}},1903:function(t){t.exports=e;function e(r){var a=new Float32Array(16);return a[0]=r[0],a[1]=r[1],a[2]=r[2],a[3]=r[3],a[4]=r[4],a[5]=r[5],a[6]=r[6],a[7]=r[7],a[8]=r[8],a[9]=r[9],a[10]=r[10],a[11]=r[11],a[12]=r[12],a[13]=r[13],a[14]=r[14],a[15]=r[15],a}},1944:function(t,e,r){var a=r(5250),n=r(8210);t.exports=o;function o(i,l){for(var f=a(i[0],l[0]),x=1;x<i.length;++x)f=n(f,a(i[x],l[x]));return f}},1964:function(t,e,r){t.exports={alpha_shape:r(3502),convex_hull:r(7352),delaunay_triangulate:r(7642),gl_cone3d:r(6405),gl_error3d:r(9165),gl_line3d:r(5714),gl_mesh3d:r(7201),gl_plot3d:r(4100),gl_scatter3d:r(8418),gl_streamtube3d:r(7815),gl_surface3d:r(9499),ndarray:r(9618),ndarray_linear_interpolate:r(4317)}},2014:function(t,e,r){"use restrict";var a=r(3105),n=r(4623);function o(p){for(var k=0,w=Math.max,R=0,O=p.length;R<O;++R)k=w(k,p[R].length);return k-1}e.dimension=o;function i(p){for(var k=-1,w=Math.max,R=0,O=p.length;R<O;++R)for(var j=p[R],V=0,H=j.length;V<H;++V)k=w(k,j[V]);return k+1}e.countVertices=i;function l(p){for(var k=new Array(p.length),w=0,R=p.length;w<R;++w)k[w]=p[w].slice(0);return k}e.cloneCells=l;function f(p,k){var w=p.length,R=p.length-k.length,O=Math.min;if(R)return R;switch(w){case 0:return 0;case 1:return p[0]-k[0];case 2:var U=p[0]+p[1]-k[0]-k[1];return U||O(p[0],p[1])-O(k[0],k[1]);case 3:var j=p[0]+p[1],V=k[0]+k[1];if(U=j+p[2]-(V+k[2]),U)return U;var H=O(p[0],p[1]),F=O(k[0],k[1]),U=O(H,p[2])-O(F,k[2]);return U||O(H+p[2],j)-O(F+k[2],V);default:var W=p.slice(0);W.sort();var q=k.slice(0);q.sort();for(var J=0;J<w;++J)if(R=W[J]-q[J],R)return R;return 0}}e.compareCells=f;function x(p,k){return f(p[0],k[0])}function y(p,k){if(k){for(var w=p.length,R=new Array(w),O=0;O<w;++O)R[O]=[p[O],k[O]];R.sort(x);for(var O=0;O<w;++O)p[O]=R[O][0],k[O]=R[O][1];return p}else return p.sort(f),p}e.normalize=y;function v(p){if(p.le
Line truncated
|
||||
}`]);e.bg=function(v){return n(v,x,y,null,[{name:"position",type:"vec3"},{name:"normal",type:"vec3"}])}},1888:function(t,e,r){var a=r(8828),n=r(1338),o=r(4793).hp;r.g.__TYPEDARRAY_POOL||(r.g.__TYPEDARRAY_POOL={UINT8:n([32,0]),UINT16:n([32,0]),UINT32:n([32,0]),BIGUINT64:n([32,0]),INT8:n([32,0]),INT16:n([32,0]),INT32:n([32,0]),BIGINT64:n([32,0]),FLOAT:n([32,0]),DOUBLE:n([32,0]),DATA:n([32,0]),UINT8C:n([32,0]),BUFFER:n([32,0])});var i=typeof Uint8ClampedArray<"u",l=typeof BigUint64Array<"u",f=typeof BigInt64Array<"u",x=r.g.__TYPEDARRAY_POOL;x.UINT8C||(x.UINT8C=n([32,0])),x.BIGUINT64||(x.BIGUINT64=n([32,0])),x.BIGINT64||(x.BIGINT64=n([32,0])),x.BUFFER||(x.BUFFER=n([32,0]));var y=x.DATA,v=x.BUFFER;e.free=function(H){if(o.isBuffer(H))v[a.log2(H.length)].push(H);else{if(Object.prototype.toString.call(H)!=="[object ArrayBuffer]"&&(H=H.buffer),!H)return;var F=H.length||H.byteLength,U=a.log2(F)|0;y[U].push(H)}};function T(H){if(H){var F=H.length||H.byteLength,U=a.log2(F);y[U].push(H)}}function u(H){T(H.buffer)}e.freeUint8=e.freeUint16=e.freeUint32=e.freeBigUint64=e.freeInt8=e.freeInt16=e.freeInt32=e.freeBigInt64=e.freeFloat32=e.freeFloat=e.freeFloat64=e.freeDouble=e.freeUint8Clamped=e.freeDataView=u,e.freeArrayBuffer=T,e.freeBuffer=function(H){v[a.log2(H.length)].push(H)},e.malloc=function(H,F){if(F===void 0||F==="arraybuffer")return b(H);switch(F){case"uint8":return _(H);case"uint16":return P(H);case"uint32":return M(H);case"int8":return E(H);case"int16":return A(H);case"int32":return h(H);case"float":case"float32":return p(H);case"double":case"float64":return k(H);case"uint8_clamped":return w(H);case"bigint64":return O(H);case"biguint64":return R(H);case"buffer":return V(H);case"data":case"dataview":return j(H);default:return null}return null};function b(F){var F=a.nextPow2(F),U=a.log2(F),W=y[U];return W.length>0?W.pop():new ArrayBuffer(F)}e.mallocArrayBuffer=b;function _(H){return new Uint8Array(b(H),0,H)}e.mallocUint8=_;function P(H){return new Uint16Array(b(2*H),0,H)}e.mallocUint16=P;function M(H){return new Uint32Array(b(4*H),0,H)}e.mallocUint32=M;function E(H){return new Int8Array(b(H),0,H)}e.mallocInt8=E;function A(H){return new Int16Array(b(2*H),0,H)}e.mallocInt16=A;function h(H){return new Int32Array(b(4*H),0,H)}e.mallocInt32=h;function p(H){return new Float32Array(b(4*H),0,H)}e.mallocFloat32=e.mallocFloat=p;function k(H){return new Float64Array(b(8*H),0,H)}e.mallocFloat64=e.mallocDouble=k;function w(H){return i?new Uint8ClampedArray(b(H),0,H):_(H)}e.mallocUint8Clamped=w;function R(H){return l?new BigUint64Array(b(8*H),0,H):null}e.mallocBigUint64=R;function O(H){return f?new BigInt64Array(b(8*H),0,H):null}e.mallocBigInt64=O;function j(H){return new DataView(b(H),0,H)}e.mallocDataView=j;function V(H){H=a.nextPow2(H);var F=a.log2(H),U=v[F];return U.length>0?U.pop():new o(H)}e.mallocBuffer=V,e.clearCache=function(){for(var H=0;H<32;++H)x.UINT8[H].length=0,x.UINT16[H].length=0,x.UINT32[H].length=0,x.INT8[H].length=0,x.INT16[H].length=0,x.INT32[H].length=0,x.FLOAT[H].length=0,x.DOUBLE[H].length=0,x.BIGUINT64[H].length=0,x.BIGINT64[H].length=0,x.UINT8C[H].length=0,y[H].length=0,v[H].length=0}},1903:function(t){t.exports=e;function e(r){var a=new Float32Array(16);return a[0]=r[0],a[1]=r[1],a[2]=r[2],a[3]=r[3],a[4]=r[4],a[5]=r[5],a[6]=r[6],a[7]=r[7],a[8]=r[8],a[9]=r[9],a[10]=r[10],a[11]=r[11],a[12]=r[12],a[13]=r[13],a[14]=r[14],a[15]=r[15],a}},1944:function(t,e,r){var a=r(5250),n=r(8210);t.exports=o;function o(i,l){for(var f=a(i[0],l[0]),x=1;x<i.length;++x)f=n(f,a(i[x],l[x]));return f}},1964:function(t,e,r){t.exports={alpha_shape:r(3502),convex_hull:r(7352),delaunay_triangulate:r(7642),gl_cone3d:r(6405),gl_error3d:r(9165),gl_line3d:r(5714),gl_mesh3d:r(7201),gl_plot3d:r(4100),gl_scatter3d:r(8418),gl_streamtube3d:r(7815),gl_surface3d:r(9499),ndarray:r(9618),ndarray_linear_interpolate:r(4317)}},2014:function(t,e,r){"use restrict";var a=r(3105),n=r(4623);function o(p){for(var k=0,w=Math.max,R=0,O=p.length;R<O;++R)k=w(k,p[R].length);return k-1}e.dimension=o;function i(p){for(var k=-1,w=Math.max,R=0,O=p.length;R<O;++R)for(var j=p[R],V=0,H=j.length;V<H;++V)k=w(k,j[V]);return k+1}e.countVertices=i;function l(p){for(var k=new Array(p.length),w=0,R=p.length;w<R;++w)k[w]=p[w].slice(0);return k}e.cloneCells=l;function f(p,k){var w=p.length,R=p.length-k.length,O=Math.min;if(R)return R;switch(w){case 0:return 0;case 1:return p[0]-k[0];case 2:var U=p[0]+p[1]-k[0]-k[1];return U||O(p[0],p[1])-O(k[0],k[1]);case 3:var j=p[0]+p[1],V=k[0]+k[1];if(U=j+p[2]-(V+k[2]),U)return U;var H=O(p[0],p[1]),F=O(k[0],k[1]),U=O(H,p[2])-O(F,k[2]);return U||O(H+p[2],j)-O(F+k[2],V);default:var W=p.slice(0);W.sort();var q=k.slice(0);q.sort();for(var J=0;J<w;++J)if(R=W[J]-q[J],R)return R;return 0}}e.compareCells=f;function x(p,k){return f(p[0],k[0])}function y(p,k){if(k){for(var w=p.length,R=new Array(w),O=0;O<w;++O)R[O]=[p[O],k[O]];R.sort(x);for(var O=0;O<w;++O)p[O]=R[O][0],k[O]=R[O][1];return p}else return p.sort(f),p}e.normalize=y;function v(p){if(p.le
Line truncated
|
||||
`,T,v),b=a("%s%s",u,f),_=f.split(`
|
||||
`),P={},M=0;M<_.length;M++){var C=_[M];if(!(C===""||C==="\0")){var A=parseInt(C.split(":")[2]);if(isNaN(A))throw new Error(a("Could not parse error: %s",C));P[A]=C}}for(var h=i(x).split(`
|
||||
`),P={},M=0;M<_.length;M++){var E=_[M];if(!(E===""||E==="\0")){var A=parseInt(E.split(":")[2]);if(isNaN(A))throw new Error(a("Could not parse error: %s",E));P[A]=E}}for(var h=i(x).split(`
|
||||
`),M=0;M<h.length;M++)if(!(!P[M+3]&&!P[M+2]&&!P[M+1])){var p=h[M];if(u+=p+`
|
||||
`,P[M+1]){var k=P[M+1];k=k.substr(k.split(":",3).join(":").length+1).trim(),u+=a(`^^^ %s
|
||||
|
||||
`,k)}}return{long:u.trim(),short:b.trim()}}},3012:function(t,e,r){var a=r(5250),n=r(9362);t.exports=o;function o(i,l){var f=i.length;if(f===1){var x=a(i[0],l);return x[0]?x:[x[1]]}var y=new Array(2*f),v=[.1,.1],T=[.1,.1],u=0;a(i[0],l,v),v[0]&&(y[u++]=v[0]);for(var b=1;b<f;++b){a(i[b],l,T);var _=v[1];n(_,T[0],v),v[0]&&(y[u++]=v[0]);var P=T[1],M=v[1],C=P+M,A=C-P,h=M-A;v[1]=C,h&&(y[u++]=h)}return v[1]&&(y[u++]=v[1]),u===0&&(y[u++]=0),y.length=u,y}},3025:function(t,e,r){t.exports=r.g.performance&&r.g.performance.now?function(){return performance.now()}:Date.now||function(){return+new Date}},3066:function(t){t.exports=e;function e(r){var a=r[0],n=r[1],o=r[2];return a*a+n*n+o*o}},3088:function(t,e,r){t.exports=n;var a=r(3140);function n(o,i){for(var l=i.length|0,f=o.length,x=[new Array(l),new Array(l)],y=0;y<l;++y)x[0][y]=[],x[1][y]=[];for(var y=0;y<f;++y){var v=o[y];x[0][v[0]].push(v),x[1][v[1]].push(v)}for(var T=[],y=0;y<l;++y)x[0][y].length+x[1][y].length===0&&T.push([y]);function u(h,p){var k=x[p][h[p]];k.splice(k.indexOf(h),1)}function b(h,p,k){for(var w,R,O,j=0;j<2;++j)if(x[j][p].length>0){w=x[j][p][0],O=j;break}R=w[O^1];for(var V=0;V<2;++V)for(var H=x[V][p],F=0;F<H.length;++F){var U=H[F],W=U[V^1],q=a(i[h],i[p],i[R],i[W]);q>0&&(w=U,R=W,O=V)}return k||w&&u(w,O),R}function _(h,p){var k=x[p][h][0],w=[h];u(k,p);for(var R=k[p^1],O=p;;){for(;R!==h;)w.push(R),R=b(w[w.length-2],R,!1);if(x[0][h].length+x[1][h].length===0)break;var j=w[w.length-1],V=h,H=w[1],F=b(j,V,!0);if(a(i[j],i[V],i[H],i[F])<0)break;w.push(h),R=b(j,V)}return w}function P(h,p){return p[1]===p[p.length-1]}for(var y=0;y<l;++y)for(var M=0;M<2;++M){for(var C=[];x[M][y].length>0;){x[0][y].length;var A=_(y,M);P(C,A)?C.push.apply(C,A):(C.length>0&&T.push(C),C=A)}C.length>0&&T.push(C)}return T}},3090:function(t,e,r){t.exports=n;var a=r(3250)[3];function n(o){var i=o.length;if(i<3){for(var l=new Array(i),f=0;f<i;++f)l[f]=f;return i===2&&o[0][0]===o[1][0]&&o[0][1]===o[1][1]?[0]:l}for(var x=new Array(i),f=0;f<i;++f)x[f]=f;x.sort(function(C,A){var h=o[C][0]-o[A][0];return h||o[C][1]-o[A][1]});for(var y=[x[0],x[1]],v=[x[0],x[1]],f=2;f<i;++f){for(var T=x[f],u=o[T],b=y.length;b>1&&a(o[y[b-2]],o[y[b-1]],u)<=0;)b-=1,y.pop();for(y.push(T),b=v.length;b>1&&a(o[v[b-2]],o[v[b-1]],u)>=0;)b-=1,v.pop();v.push(T)}for(var l=new Array(v.length+y.length-2),_=0,f=0,P=y.length;f<P;++f)l[_++]=y[f];for(var M=v.length-2;M>0;--M)l[_++]=v[M];return l}},3105:function(t,e){"use restrict";var r=32;e.INT_BITS=r,e.INT_MAX=2147483647,e.INT_MIN=-1<<r-1,e.sign=function(o){return(o>0)-(o<0)},e.abs=function(o){var i=o>>r-1;return(o^i)-i},e.min=function(o,i){return i^(o^i)&-(o<i)},e.max=function(o,i){return o^(o^i)&-(o<i)},e.isPow2=function(o){return!(o&o-1)&&!!o},e.log2=function(o){var i,l;return i=(o>65535)<<4,o>>>=i,l=(o>255)<<3,o>>>=l,i|=l,l=(o>15)<<2,o>>>=l,i|=l,l=(o>3)<<1,o>>>=l,i|=l,i|o>>1},e.log10=function(o){return o>=1e9?9:o>=1e8?8:o>=1e7?7:o>=1e6?6:o>=1e5?5:o>=1e4?4:o>=1e3?3:o>=100?2:o>=10?1:0},e.popCount=function(o){return o=o-(o>>>1&1431655765),o=(o&858993459)+(o>>>2&858993459),(o+(o>>>4)&252645135)*16843009>>>24};function a(o){var i=32;return o&=-o,o&&i--,o&65535&&(i-=16),o&16711935&&(i-=8),o&252645135&&(i-=4),o&858993459&&(i-=2),o&1431655765&&(i-=1),i}e.countTrailingZeros=a,e.nextPow2=function(o){return o+=o===0,--o,o|=o>>>1,o|=o>>>2,o|=o>>>4,o|=o>>>8,o|=o>>>16,o+1},e.prevPow2=function(o){return o|=o>>>1,o|=o>>>2,o|=o>>>4,o|=o>>>8,o|=o>>>16,o-(o>>>1)},e.parity=function(o){return o^=o>>>16,o^=o>>>8,o^=o>>>4,o&=15,27030>>>o&1};var n=new Array(256);(function(o){for(var i=0;i<256;++i){var l=i,f=i,x=7;for(l>>>=1;l;l>>>=1)f<<=1,f|=l&1,--x;o[i]=f<<x&255}})(n),e.reverse=function(o){return n[o&255]<<24|n[o>>>8&255]<<16|n[o>>>16&255]<<8|n[o>>>24&255]},e.interleave2=function(o,i){return o&=65535,o=(o|o<<8)&16711935,o=(o|o<<4)&252645135,o=(o|o<<2)&858993459,o=(o|o<<1)&1431655765,i&=65535,i=(i|i<<8)&16711935,i=(i|i<<4)&252645135,i=(i|i<<2)&858993459,i=(i|i<<1)&1431655765,o|i<<1},e.deinterleave2=function(o,i){return o=o>>>i&1431655765,o=(o|o>>>1)&858993459,o=(o|o>>>2)&252645135,o=(o|o>>>4)&16711935,o=(o|o>>>16)&65535,o<<16>>16},e.interleave3=function(o,i,l){return o&=1023,o=(o|o<<16)&4278190335,o=(o|o<<8)&251719695,o=(o|o<<4)&3272356035,o=(o|o<<2)&1227133513,i&=1023,i=(i|i<<16)&4278190335,i=(i|i<<8)&251719695,i=(i|i<<4)&3272356035,i=(i|i<<2)&1227133513,o|=i<<1,l&=1023,l=(l|l<<16)&4278190335,l=(l|l<<8)&251719695,l=(l|l<<4)&3272356035,l=(l|l<<2)&1227133513,o|l<<2},e.deinterleave3=function(o,i){return o=o>>>i&1227133513,o=(o|o>>>2)&3272356035,o=(o|o>>>4)&251719695,o=(o|o>>>8)&4278190335,o=(o|o>>>16)&1023,o<<22>>22},e.nextCombination=function(o){var i=o|o-1;return i+1|(~i&-~i)-1>>>a(o)+1}},3126:function(t){t.exports=e;function e(r){var a=new Float32Array(3);return a[0]=r[0],a[1]=r[1],a[2]=r[2],a}},3134:function(t,e,r){t.exports=n;var a=r(1682);function n(o,i){var l=o.length;if(typeof i!="number"){i=0;for(var f=0;f<l;++f){var x=o[f];i=Math.max(i,x[0],x[1])}i=(i|0)+1}i=i|0;for(var y=new Array(i),f
Line truncated
|
||||
`,k)}}return{long:u.trim(),short:b.trim()}}},3012:function(t,e,r){var a=r(5250),n=r(9362);t.exports=o;function o(i,l){var f=i.length;if(f===1){var x=a(i[0],l);return x[0]?x:[x[1]]}var y=new Array(2*f),v=[.1,.1],T=[.1,.1],u=0;a(i[0],l,v),v[0]&&(y[u++]=v[0]);for(var b=1;b<f;++b){a(i[b],l,T);var _=v[1];n(_,T[0],v),v[0]&&(y[u++]=v[0]);var P=T[1],M=v[1],E=P+M,A=E-P,h=M-A;v[1]=E,h&&(y[u++]=h)}return v[1]&&(y[u++]=v[1]),u===0&&(y[u++]=0),y.length=u,y}},3025:function(t,e,r){t.exports=r.g.performance&&r.g.performance.now?function(){return performance.now()}:Date.now||function(){return+new Date}},3066:function(t){t.exports=e;function e(r){var a=r[0],n=r[1],o=r[2];return a*a+n*n+o*o}},3088:function(t,e,r){t.exports=n;var a=r(3140);function n(o,i){for(var l=i.length|0,f=o.length,x=[new Array(l),new Array(l)],y=0;y<l;++y)x[0][y]=[],x[1][y]=[];for(var y=0;y<f;++y){var v=o[y];x[0][v[0]].push(v),x[1][v[1]].push(v)}for(var T=[],y=0;y<l;++y)x[0][y].length+x[1][y].length===0&&T.push([y]);function u(h,p){var k=x[p][h[p]];k.splice(k.indexOf(h),1)}function b(h,p,k){for(var w,R,O,j=0;j<2;++j)if(x[j][p].length>0){w=x[j][p][0],O=j;break}R=w[O^1];for(var V=0;V<2;++V)for(var H=x[V][p],F=0;F<H.length;++F){var U=H[F],W=U[V^1],q=a(i[h],i[p],i[R],i[W]);q>0&&(w=U,R=W,O=V)}return k||w&&u(w,O),R}function _(h,p){var k=x[p][h][0],w=[h];u(k,p);for(var R=k[p^1],O=p;;){for(;R!==h;)w.push(R),R=b(w[w.length-2],R,!1);if(x[0][h].length+x[1][h].length===0)break;var j=w[w.length-1],V=h,H=w[1],F=b(j,V,!0);if(a(i[j],i[V],i[H],i[F])<0)break;w.push(h),R=b(j,V)}return w}function P(h,p){return p[1]===p[p.length-1]}for(var y=0;y<l;++y)for(var M=0;M<2;++M){for(var E=[];x[M][y].length>0;){x[0][y].length;var A=_(y,M);P(E,A)?E.push.apply(E,A):(E.length>0&&T.push(E),E=A)}E.length>0&&T.push(E)}return T}},3090:function(t,e,r){t.exports=n;var a=r(3250)[3];function n(o){var i=o.length;if(i<3){for(var l=new Array(i),f=0;f<i;++f)l[f]=f;return i===2&&o[0][0]===o[1][0]&&o[0][1]===o[1][1]?[0]:l}for(var x=new Array(i),f=0;f<i;++f)x[f]=f;x.sort(function(E,A){var h=o[E][0]-o[A][0];return h||o[E][1]-o[A][1]});for(var y=[x[0],x[1]],v=[x[0],x[1]],f=2;f<i;++f){for(var T=x[f],u=o[T],b=y.length;b>1&&a(o[y[b-2]],o[y[b-1]],u)<=0;)b-=1,y.pop();for(y.push(T),b=v.length;b>1&&a(o[v[b-2]],o[v[b-1]],u)>=0;)b-=1,v.pop();v.push(T)}for(var l=new Array(v.length+y.length-2),_=0,f=0,P=y.length;f<P;++f)l[_++]=y[f];for(var M=v.length-2;M>0;--M)l[_++]=v[M];return l}},3105:function(t,e){"use restrict";var r=32;e.INT_BITS=r,e.INT_MAX=2147483647,e.INT_MIN=-1<<r-1,e.sign=function(o){return(o>0)-(o<0)},e.abs=function(o){var i=o>>r-1;return(o^i)-i},e.min=function(o,i){return i^(o^i)&-(o<i)},e.max=function(o,i){return o^(o^i)&-(o<i)},e.isPow2=function(o){return!(o&o-1)&&!!o},e.log2=function(o){var i,l;return i=(o>65535)<<4,o>>>=i,l=(o>255)<<3,o>>>=l,i|=l,l=(o>15)<<2,o>>>=l,i|=l,l=(o>3)<<1,o>>>=l,i|=l,i|o>>1},e.log10=function(o){return o>=1e9?9:o>=1e8?8:o>=1e7?7:o>=1e6?6:o>=1e5?5:o>=1e4?4:o>=1e3?3:o>=100?2:o>=10?1:0},e.popCount=function(o){return o=o-(o>>>1&1431655765),o=(o&858993459)+(o>>>2&858993459),(o+(o>>>4)&252645135)*16843009>>>24};function a(o){var i=32;return o&=-o,o&&i--,o&65535&&(i-=16),o&16711935&&(i-=8),o&252645135&&(i-=4),o&858993459&&(i-=2),o&1431655765&&(i-=1),i}e.countTrailingZeros=a,e.nextPow2=function(o){return o+=o===0,--o,o|=o>>>1,o|=o>>>2,o|=o>>>4,o|=o>>>8,o|=o>>>16,o+1},e.prevPow2=function(o){return o|=o>>>1,o|=o>>>2,o|=o>>>4,o|=o>>>8,o|=o>>>16,o-(o>>>1)},e.parity=function(o){return o^=o>>>16,o^=o>>>8,o^=o>>>4,o&=15,27030>>>o&1};var n=new Array(256);(function(o){for(var i=0;i<256;++i){var l=i,f=i,x=7;for(l>>>=1;l;l>>>=1)f<<=1,f|=l&1,--x;o[i]=f<<x&255}})(n),e.reverse=function(o){return n[o&255]<<24|n[o>>>8&255]<<16|n[o>>>16&255]<<8|n[o>>>24&255]},e.interleave2=function(o,i){return o&=65535,o=(o|o<<8)&16711935,o=(o|o<<4)&252645135,o=(o|o<<2)&858993459,o=(o|o<<1)&1431655765,i&=65535,i=(i|i<<8)&16711935,i=(i|i<<4)&252645135,i=(i|i<<2)&858993459,i=(i|i<<1)&1431655765,o|i<<1},e.deinterleave2=function(o,i){return o=o>>>i&1431655765,o=(o|o>>>1)&858993459,o=(o|o>>>2)&252645135,o=(o|o>>>4)&16711935,o=(o|o>>>16)&65535,o<<16>>16},e.interleave3=function(o,i,l){return o&=1023,o=(o|o<<16)&4278190335,o=(o|o<<8)&251719695,o=(o|o<<4)&3272356035,o=(o|o<<2)&1227133513,i&=1023,i=(i|i<<16)&4278190335,i=(i|i<<8)&251719695,i=(i|i<<4)&3272356035,i=(i|i<<2)&1227133513,o|=i<<1,l&=1023,l=(l|l<<16)&4278190335,l=(l|l<<8)&251719695,l=(l|l<<4)&3272356035,l=(l|l<<2)&1227133513,o|l<<2},e.deinterleave3=function(o,i){return o=o>>>i&1227133513,o=(o|o>>>2)&3272356035,o=(o|o>>>4)&251719695,o=(o|o>>>8)&4278190335,o=(o|o>>>16)&1023,o<<22>>22},e.nextCombination=function(o){var i=o|o-1;return i+1|(~i&-~i)-1>>>a(o)+1}},3126:function(t){t.exports=e;function e(r){var a=new Float32Array(3);return a[0]=r[0],a[1]=r[1],a[2]=r[2],a}},3134:function(t,e,r){t.exports=n;var a=r(1682);function n(o,i){var l=o.length;if(typeof i!="number"){i=0;for(var f=0;f<l;++f){var x=o[f];i=Math.max(i,x[0],x[1])}i=(i|0)+1}i=i|0;for(var y=new Array(i),f
Line truncated
|
||||
#define GLSLIFY 1
|
||||
|
||||
attribute vec3 position, offset;
|
||||
@@ -1690,11 +1690,11 @@ void main() {
|
||||
) discard;
|
||||
|
||||
gl_FragColor = opacity * fragColor;
|
||||
}`]);t.exports=function(l){return n(l,o,i,null,[{name:"position",type:"vec3"},{name:"color",type:"vec4"},{name:"offset",type:"vec3"}])}},3502:function(t,e,r){t.exports=o;var a=r(5995),n=r(9127);function o(i,l){return n(a(i,l))}},3508:function(t,e,r){var a=r(6852);a=a.slice().filter(function(n){return!/^(gl\_|texture)/.test(n)}),t.exports=a.concat(["gl_VertexID","gl_InstanceID","gl_Position","gl_PointSize","gl_FragCoord","gl_FrontFacing","gl_FragDepth","gl_PointCoord","gl_MaxVertexAttribs","gl_MaxVertexUniformVectors","gl_MaxVertexOutputVectors","gl_MaxFragmentInputVectors","gl_MaxVertexTextureImageUnits","gl_MaxCombinedTextureImageUnits","gl_MaxTextureImageUnits","gl_MaxFragmentUniformVectors","gl_MaxDrawBuffers","gl_MinProgramTexelOffset","gl_MaxProgramTexelOffset","gl_DepthRangeParameters","gl_DepthRange","trunc","round","roundEven","isnan","isinf","floatBitsToInt","floatBitsToUint","intBitsToFloat","uintBitsToFloat","packSnorm2x16","unpackSnorm2x16","packUnorm2x16","unpackUnorm2x16","packHalf2x16","unpackHalf2x16","outerProduct","transpose","determinant","inverse","texture","textureSize","textureProj","textureLod","textureOffset","texelFetch","texelFetchOffset","textureProjOffset","textureLodOffset","textureProjLod","textureProjLodOffset","textureGrad","textureGradOffset","textureProjGrad","textureProjGradOffset"])},3536:function(t){t.exports=e;function e(r,a){var n=a[0],o=a[1],i=a[2],l=n*n+o*o+i*i;return l>0&&(l=1/Math.sqrt(l),r[0]=a[0]*l,r[1]=a[1]*l,r[2]=a[2]*l),r}},3545:function(t,e,r){t.exports=l;var a=r(8105),n=a("lo<p0"),o=8;function i(f,x,y,v,T,u){for(var b=2*f,_=b*(y+1)+x,P=y+1;P<v;++P,_+=b)for(var M=T[_],C=P,A=b*(P-1);C>y&&T[A+x]>M;--C,A-=b){for(var h=A,p=A+b,k=0;k<b;++k,++h,++p){var w=T[h];T[h]=T[p],T[p]=w}var R=u[C];u[C]=u[C-1],u[C-1]=R}}function l(f,x,y,v,T,u){if(v<=y+1)return y;for(var b=y,_=v,P=v+y>>>1,M=2*f,C=P,A=T[M*P+x];b<_;){if(_-b<o){i(f,x,b,_,T,u),A=T[M*P+x];break}var h=_-b,p=Math.random()*h+b|0,k=T[M*p+x],w=Math.random()*h+b|0,R=T[M*w+x],O=Math.random()*h+b|0,j=T[M*O+x];k<=R?j>=R?(C=w,A=R):k>=j?(C=p,A=k):(C=O,A=j):R>=j?(C=w,A=R):j>=k?(C=p,A=k):(C=O,A=j);for(var V=M*(_-1),H=M*C,F=0;F<M;++F,++V,++H){var U=T[V];T[V]=T[H],T[H]=U}var W=u[_-1];u[_-1]=u[C],u[C]=W,C=n(f,x,b,_-1,T,u,A);for(var V=M*(_-1),H=M*C,F=0;F<M;++F,++V,++H){var U=T[V];T[V]=T[H],T[H]=U}var W=u[_-1];if(u[_-1]=u[C],u[C]=W,P<C){for(_=C-1;b<_&&T[M*(_-1)+x]===A;)_-=1;_+=1}else if(C<P)for(b=C+1;b<_&&T[M*b+x]===A;)b+=1;else break}return n(f,x,y,P,T,u,T[M*P+x])}},3576:function(t){t.exports=e;function e(r,a,n){return r[0]=a[0]*n[0],r[1]=a[1]*n[1],r[2]=a[2]*n[2],r[3]=a[3]*n[3],r}},3589:function(t,e,r){t.exports=v;var a=r(2260),n=r(1888),o=r(9618),i=r(8828).nextPow2,l=function(T,u,b){for(var _=1e8,P=-1,M=-1,C=T.shape[0],A=T.shape[1],h=0;h<C;h++)for(var p=0;p<A;p++){var k=T.get(h,p,0),w=T.get(h,p,1),R=T.get(h,p,2),O=T.get(h,p,3);if(k<255||w<255||R<255||O<255){var j=u-h,V=b-p,H=j*j+V*V;H<_&&(_=H,P=h,M=p)}}return[P,M,_]};function f(T,u,b,_,P){this.coord=[T,u],this.id=b,this.value=_,this.distance=P}function x(T,u,b){this.gl=T,this.fbo=u,this.buffer=b,this._readTimeout=null;var _=this;this._readCallback=function(){_.gl&&(u.bind(),T.readPixels(0,0,u.shape[0],u.shape[1],T.RGBA,T.UNSIGNED_BYTE,_.buffer),_._readTimeout=null)}}var y=x.prototype;Object.defineProperty(y,"shape",{get:function(){return this.gl?this.fbo.shape.slice():[0,0]},set:function(T){if(this.gl){this.fbo.shape=T;var u=this.fbo.shape[0],b=this.fbo.shape[1];if(b*u*4>this.buffer.length){n.free(this.buffer);for(var _=this.buffer=n.mallocUint8(i(b*u*4)),P=0;P<b*u*4;++P)_[P]=255}return T}}}),y.begin=function(){var T=this.gl;this.shape,T&&(this.fbo.bind(),T.clearColor(1,1,1,1),T.clear(T.COLOR_BUFFER_BIT|T.DEPTH_BUFFER_BIT))},y.end=function(){var T=this.gl;T&&(T.bindFramebuffer(T.FRAMEBUFFER,null),this._readTimeout||clearTimeout(this._readTimeout),this._readTimeout=setTimeout(this._readCallback,1))},y.query=function(T,u,b){if(!this.gl)return null;var _=this.fbo.shape.slice();T=T|0,u=u|0,typeof b!="number"&&(b=1);var P=Math.min(Math.max(T-b,0),_[0])|0,M=Math.min(Math.max(T+b,0),_[0])|0,C=Math.min(Math.max(u-b,0),_[1])|0,A=Math.min(Math.max(u+b,0),_[1])|0;if(M<=P||A<=C)return null;var h=[M-P,A-C],p=o(this.buffer,[h[0],h[1],4],[4,_[0]*4,1],4*(P+_[0]*C)),k=l(p.hi(h[0],h[1],1),b,b),w=k[0],R=k[1];if(w<0||Math.pow(this.radius,2)<k[2])return null;var O=p.get(w,R,0),j=p.get(w,R,1),V=p.get(w,R,2),H=p.get(w,R,3);return new f(w+P|0,R+C|0,O,[j,V,H],Math.sqrt(k[2]))},y.dispose=function(){this.gl&&(this.fbo.dispose(),n.free(this.buffer),this.gl=null,this._readTimeout&&clearTimeout(this._readTimeout))};function v(T,u){var b=u[0],_=u[1],P={},M=a(T,b,_,P),C=n.mallocUint8(b*_*4);return new x(T,M,C)}},3628:function(t,e,r){var a=r(1338),n=r(727);function o(f,x){for(var y=0,v=f.length,T=0;T<v;++T)y+=f[T]*x[T];return y}function i(f){var x=f.length;if(x===0)return[];f[0].length;var y=a([f.length+1,f.length+1],1),v=a([f.length+1],1);y[x][x]=0;for(var T=0;T<x;++T){for(var u=0;u<=T;++u)y[u][T]=y[T][u]=2*o(f
Line truncated
|
||||
`+h)}throw new a(h,p.short,p.long)}return A}y.getShaderReference=function(P,M){var C=this.gl,A=this.shaders[P===C.FRAGMENT_SHADER|0],h=A[M];if(!h||!C.isShader(h.shader)){var p=v(C,P,M);h=A[M]=new f(l++,M,P,p,[],1,this)}else h.count+=1;return h};function T(P,M,C,A,h){var p=P.createProgram();P.attachShader(p,M),P.attachShader(p,C);for(var k=0;k<A.length;++k)P.bindAttribLocation(p,h[k],A[k]);if(P.linkProgram(p),!P.getProgramParameter(p,P.LINK_STATUS)){var w=P.getProgramInfoLog(p);throw new a(w,"Error linking program: "+w)}return p}y.getProgram=function(P,M,C,A){var h=[P.id,M.id,C.join(":"),A.join(":")].join("@"),p=this.programs[h];return(!p||!this.gl.isProgram(p))&&(this.programs[h]=p=T(this.gl,P.shader,M.shader,C,A),P.programs.push(h),M.programs.push(h)),p};function u(P){var M=i.get(P);return M||(M=new x(P),i.set(P,M)),M}function b(P,M,C){return u(P).getShaderReference(M,C)}function _(P,M,C,A,h){return u(P).getProgram(M,C,A,h)}},5093:function(t){t.exports=e;function e(r,a){return r[0]=-a[0],r[1]=-a[1],r[2]=-a[2],r}},5137:function(t,e,r){t.exports=n;var a=r(1091)();function n(o,i,l,f,x,y){var v,T;for(i||(i=3),l||(l=0),f?T=Math.min(f*i+l,o.length):T=o.length,v=l;v<T;v+=i)a[0]=o[v],a[1]=o[v+1],a[2]=o[v+2],x(a,a,y),o[v]=a[0],o[v+1]=a[1],o[v+2]=a[2];return o}},5171:function(t,e,r){var a=r(737);t.exports=function(n){return a[n]}},5177:function(t){t.exports=e;function e(r,a){var n=a[0],o=a[1],i=a[2],l=a[3],f=n*n+o*o+i*i+l*l;return f>0&&(f=1/Math.sqrt(f),r[0]=n*f,r[1]=o*f,r[2]=i*f,r[3]=l*f),r}},5202:function(t,e,r){var a=r(1944),n=r(8210);t.exports=l,t.exports.positive=f,t.exports.negative=x;function o(y,v){var T=n(a(y,v),[v[v.length-1]]);return T[T.length-1]}function i(y,v,T,u){var b=u-v,_=-v/b;_<0?_=0:_>1&&(_=1);for(var P=1-_,M=y.length,C=new Array(M),A=0;A<M;++A)C[A]=_*y[A]+P*T[A];return C}function l(y,v){for(var T=[],u=[],b=o(y[y.length-1],v),_=y[y.length-1],P=y[0],M=0;M<y.length;++M,_=P){P=y[M];var C=o(P,v);if(b<0&&C>0||b>0&&C<0){var A=i(_,C,P,b);T.push(A),u.push(A.slice())}C<0?u.push(P.slice()):C>0?T.push(P.slice()):(T.push(P.slice()),u.push(P.slice())),b=C}return{positive:T,negative:u}}function f(y,v){for(var T=[],u=o(y[y.length-1],v),b=y[y.length-1],_=y[0],P=0;P<y.length;++P,b=_){_=y[P];var M=o(_,v);(u<0&&M>0||u>0&&M<0)&&T.push(i(b,M,_,u)),M>=0&&T.push(_.slice()),u=M}return T}function x(y,v){for(var T=[],u=o(y[y.length-1],v),b=y[y.length-1],_=y[0],P=0;P<y.length;++P,b=_){_=y[P];var M=o(_,v);(u<0&&M>0||u>0&&M<0)&&T.push(i(b,M,_,u)),M<=0&&T.push(_.slice()),u=M}return T}},5219:function(t){t.exports=function(e){for(var r=e.length,a,n=0;n<r;n++)if(a=e.charCodeAt(n),(a<9||a>13)&&a!==32&&a!==133&&a!==160&&a!==5760&&a!==6158&&(a<8192||a>8205)&&a!==8232&&a!==8233&&a!==8239&&a!==8287&&a!==8288&&a!==12288&&a!==65279)return!1;return!0}},5250:function(t){t.exports=r;var e=+(Math.pow(2,27)+1);function r(a,n,o){var i=a*n,l=e*a,f=l-a,x=l-f,y=a-x,v=e*n,T=v-n,u=v-T,b=n-u,_=i-x*u,P=_-y*u,M=P-x*b,C=y*b-M;return o?(o[0]=C,o[1]=i,o):[C,i]}},5298:function(t,e){var r={"float64,2,1,0":function(){return function(x,y,v,T,u){var b=x[0],_=x[1],P=x[2],M=v[0],C=v[1],A=v[2];T|=0;var h=0,p=0,k=0,w=A,R=C-P*A,O=M-_*C;for(k=0;k<b;++k){for(p=0;p<_;++p){for(h=0;h<P;++h)y[T]/=u,T+=w;T+=R}T+=O}}},"uint8,2,0,1,float64,2,1,0":function(){return function(x,y,v,T,u,b,_,P){var M=x[0],C=x[1],A=x[2],h=v[0],p=v[1],k=v[2],w=b[0],R=b[1],O=b[2];T|=0,_|=0;for(var j=T,V=_,H=x[0]|0;H>0;){H<64?(M=H,H=0):(M=64,H-=64);for(var F=x[1]|0;F>0;){F<64?(C=F,F=0):(C=64,F-=64),T=j+H*h+F*p,_=V+H*w+F*R;var U=0,W=0,q=0,J=k,lt=h-A*k,yt=p-M*h,mt=O,st=w-A*O,tt=R-M*w;for(q=0;q<C;++q){for(W=0;W<M;++W){for(U=0;U<A;++U)y[T]=u[_]*P,T+=J,_+=mt;T+=lt,_+=st}T+=yt,_+=tt}}}}},"float32,1,0,float32,1,0":function(){return function(x,y,v,T,u,b,_){var P=x[0],M=x[1],C=v[0],A=v[1],h=b[0],p=b[1];T|=0,_|=0;var k=0,w=0,R=A,O=C-M*A,j=p,V=h-M*p;for(w=0;w<P;++w){for(k=0;k<M;++k)y[T]=u[_],T+=R,_+=j;T+=O,_+=V}}},"float32,1,0,float32,0,1":function(){return function(x,y,v,T,u,b,_){var P=x[0],M=x[1],C=v[0],A=v[1],h=b[0],p=b[1];T|=0,_|=0;for(var k=T,w=_,R=x[1]|0;R>0;){R<64?(M=R,R=0):(M=64,R-=64);for(var O=x[0]|0;O>0;){O<64?(P=O,O=0):(P=64,O-=64),T=k+R*A+O*C,_=w+R*p+O*h;var j=0,V=0,H=A,F=C-M*A,U=p,W=h-M*p;for(V=0;V<P;++V){for(j=0;j<M;++j)y[T]=u[_],T+=H,_+=U;T+=F,_+=W}}}}},"uint8,2,0,1,uint8,1,2,0":function(){return function(x,y,v,T,u,b,_){var P=x[0],M=x[1],C=x[2],A=v[0],h=v[1],p=v[2],k=b[0],w=b[1],R=b[2];T|=0,_|=0;for(var O=T,j=_,V=x[2]|0;V>0;){V<64?(C=V,V=0):(C=64,V-=64);for(var H=x[0]|0;H>0;){H<64?(P=H,H=0):(P=64,H-=64);for(var F=x[1]|0;F>0;){F<64?(M=F,F=0):(M=64,F-=64),T=O+V*p+H*A+F*h,_=j+V*R+H*k+F*w;var U=0,W=0,q=0,J=p,lt=A-C*p,yt=h-P*A,mt=R,st=k-C*R,tt=w-P*k;for(q=0;q<M;++q){for(W=0;W<P;++W){for(U=0;U<C;++U)y[T]=u[_],T+=J,_+=mt;T+=lt,_+=st}T+=yt,_+=tt}}}}}},"uint8,2,0,1,array,2,0,1":function(){return function(x,y,v,T,u,b,_){var P=x[0],M=x[1],C=x[2],A=v[0],h=v[1],p=v[2],k=b[0],w=b[1],R=b[2];T|=0,_|=0;var O=0,j=0,V=0,H=p,F=A-C*p,U=h-P*A,W=R,q=k-C*R,J=w-P*k;for(V=0;V<M;++V){for(j=0;j<P;++j){for(O=0;O<C;++O)
Line truncated
|
||||
`),tt=st.length;for(var Lt;H=st[O],O<tt;){switch(Lt=O,V){case y:O=qt();break;case v:O=Pt();break;case T:O=zt();break;case u:O=Wt();break;case b:O=de();break;case p:O=ve();break;case _:O=me();break;case x:O=ue();break;case A:O=kt();break;case f:O=ut();break}if(Lt!==O)switch(st[Lt]){case`
|
||||
`:J=0,++q;break;default:++J;break}}return j+=O,st=st.slice(O),W}function ft(Tt){return U.length&&it(U.join("")),V=h,it("(eof)"),W}function ut(){return U=U.length?[]:U,F==="/"&&H==="*"?(lt=j+O-1,V=y,F=H,O+1):F==="/"&&H==="/"?(lt=j+O-1,V=v,F=H,O+1):H==="#"?(V=T,lt=j+O,O):/\s/.test(H)?(V=A,lt=j+O,O):(yt=/\d/.test(H),mt=/[^\w_]/.test(H),lt=j+O,V=yt?b:mt?u:x,O)}function kt(){return/[^\s]/g.test(H)?(it(U.join("")),V=f,O):(U.push(H),F=H,O+1)}function zt(){return(H==="\r"||H===`
|
||||
`)&&F!=="\\"?(it(U.join("")),V=f,O):(U.push(H),F=H,O+1)}function Pt(){return zt()}function qt(){return H==="/"&&F==="*"?(U.push(H),it(U.join("")),V=f,O+1):(U.push(H),F=H,O+1)}function Wt(){if(F==="."&&/\d/.test(H))return V=_,O;if(F==="/"&&H==="*")return V=y,O;if(F==="/"&&H==="/")return V=v,O;if(H==="."&&U.length){for(;Jt(U););return V=_,O}if(H===";"||H===")"||H==="("){if(U.length)for(;Jt(U););return it(H),V=f,O+1}var Tt=U.length===2&&H!=="=";if(/[\w_\d\s]/.test(H)||Tt){for(;Jt(U););return V=f,O}return U.push(H),F=H,O+1}function Jt(Tt){var Lt=0,Mt,te;do{if(Mt=n.indexOf(Tt.slice(0,Tt.length+Lt).join("")),te=n[Mt],Mt===-1){if(Lt--+Tt.length>0)continue;te=Tt.slice(0,1).join("")}return it(te),lt+=te.length,U=U.slice(te.length),U.length}while(!0)}function ve(){return/[^a-fA-F0-9]/.test(H)?(it(U.join("")),V=f,O):(U.push(H),F=H,O+1)}function de(){return H==="."||/[eE]/.test(H)?(U.push(H),V=_,F=H,O+1):H==="x"&&U.length===1&&U[0]==="0"?(V=p,U.push(H),F=H,O+1):/[^\d]/.test(H)?(it(U.join("")),V=f,O):(U.push(H),F=H,O+1)}function me(){return H==="f"&&(U.push(H),F=H,O+=1),/[eE]/.test(H)||(H==="-"||H==="+")&&/[eE]/.test(F)?(U.push(H),F=H,O+1):/[^\d]/.test(H)?(it(U.join("")),V=f,O):(U.push(H),F=H,O+1)}function ue(){if(/[^\d\w_]/.test(H)){var Tt=U.join("");return vt[Tt]?V=C:at[Tt]?V=M:V=P,it(U.join("")),V=f,O}return U.push(H),F=H,O+1}}},5878:function(t,e,r){t.exports=i;var a=r(3250),n=r(2014);function o(l,f,x){var y=Math.abs(a(l,f,x)),v=Math.sqrt(Math.pow(f[0]-x[0],2)+Math.pow(f[1]-x[1],2));return y/v}function i(l,f,x){for(var y=f.length,v=l.length,T=new Array(y),u=new Array(y),b=new Array(y),_=new Array(y),P=0;P<y;++P)T[P]=u[P]=-1,b[P]=1/0,_[P]=!1;for(var P=0;P<v;++P){var M=l[P];if(M.length!==2)throw new Error("Input must be a graph");var C=M[1],A=M[0];u[A]!==-1?u[A]=-2:u[A]=C,T[C]!==-1?T[C]=-2:T[C]=A}function h(st){if(_[st])return 1/0;var tt=T[st],pt=u[st];return tt<0||pt<0?1/0:o(f[st],f[tt],f[pt])}function p(st,tt){var pt=F[st],rt=F[tt];F[st]=rt,F[tt]=pt,U[pt]=tt,U[rt]=st}function k(st){return b[F[st]]}function w(st){return st&1?st-1>>1:(st>>1)-1}function R(st){for(var tt=k(st);;){var pt=tt,rt=2*st+1,at=2*(st+1),vt=st;if(rt<q){var it=k(rt);it<pt&&(vt=rt,pt=it)}if(at<q){var Y=k(at);Y<pt&&(vt=at)}if(vt===st)return st;p(st,vt),st=vt}}function O(st){for(var tt=k(st);st>0;){var pt=w(st);if(pt>=0){var rt=k(pt);if(tt<rt){p(st,pt),st=pt;continue}}return st}}function j(){if(q>0){var st=F[0];return p(0,q-1),q-=1,R(0),st}return-1}function V(st,tt){var pt=F[st];return b[pt]===tt?st:(b[pt]=-1/0,O(st),j(),b[pt]=tt,q+=1,O(q-1))}function H(st){if(!_[st]){_[st]=!0;var tt=T[st],pt=u[st];T[pt]>=0&&(T[pt]=tt),u[tt]>=0&&(u[tt]=pt),U[tt]>=0&&V(U[tt],h(tt)),U[pt]>=0&&V(U[pt],h(pt))}}for(var F=[],U=new Array(y),P=0;P<y;++P){var W=b[P]=h(P);W<1/0?(U[P]=F.length,F.push(P)):U[P]=-1}for(var q=F.length,P=q>>1;P>=0;--P)R(P);for(;;){var J=j();if(J<0||b[J]>x)break;H(J)}for(var lt=[],P=0;P<y;++P)_[P]||(U[P]=lt.length,lt.push(f[P].slice()));lt.length;function yt(st,tt){if(st[tt]<0)return tt;var pt=tt,rt=tt;do{var at=st[rt];if(!_[rt]||at<0||at===rt||(rt=at,at=st[rt],!_[rt]||at<0||at===rt))break;rt=at,pt=st[pt]}while(pt!==rt);for(var vt=tt;vt!==rt;vt=st[vt])st[vt]=rt;return rt}var mt=[];return l.forEach(function(st){var tt=yt(T,st[0]),pt=yt(u,st[1]);if(tt>=0&&pt>=0&&tt!==pt){var rt=U[tt],at=U[pt];rt!==at&&mt.push([rt,at])}}),n.unique(n.normalize(mt)),{positions:lt,edges:mt}}},5911:function(t){t.exports=e;function e(r,a,n){var o=a[0],i=a[1],l=a[2],f=n[0],x=n[1],y=n[2];return r[0]=i*y-l*x,r[1]=l*f-o*y,r[2]=o*x-i*f,r}},5964:function(t){t.exports=function(e){return!e&&e!==0?"":e.toString()}},5995:function(t,e,r){t.exports=o;var a=r(7642),n=r(6037);function o(i,l){return a(l).filter(function(f){for(var x=new Array(f.length),y=0;y<f.length;++y)x[y]=l[f[y]];return n(x)*i<1})}},6037:function(t,e,r){t.exports=n;var a=r(3628);function n(o){for(var i=a(o),l=0,f=0;f<o.length;++f)for(var x=o[f],y=0;y<i.length;++y)l+=Math.pow(x[y]-i[y],2);return Math.sqrt(l/o.length)}},6079:function(t){t.exports=e;function e(r,a,n,o){var i=o[0],l=o[1],f=o[2],x=Math.sqrt(i*i+l*l+f*f),y,v,T,u,b,_,P,M,C,A,h,p,k,w,R,O,j,V,H,F,U,W,q,J;return Math.abs(x)<1e-6?null:(x=1/x,i*=x,l*=x,f*=x,y=Math.sin(n),v=Math.cos(n),T=1-v,u=a[0],b=a[1],_=a[2],P=a[3],M=a[4],C=a[5],A=a[6],h=a[7],p=a[8],k=a[9],w=a[10],R=a[11],O=i*i*T+v,j=l*i*T+f*y,V=f*i*T-l*y,H=i*l*T-f*y,F=l*l*T+v,U=f*l*T+i*y,W=i*f*T+l*y,q=l*f*T-i*y,J=f*f*T+v,r[0]=u*O+M*j+p*V,r[1]=b*O+C*j+k*V,r[2]=_*O+A*j+w*V,r[3]=P*O+h*j+R*V,r[4]=u*H+M*F+p*U,r[5]=b*H+C*F+k*U,r[6]=_*H+A*F+w*U,r[7]=P*H+h*F+R*U,r[8]=u*W+M*q+p*J,r[9]=b*W+C*q+k*J,r[10]=_*W+A*q+w*J,r[11]=P*W+h*q+R*J,a!==r&&(r[12]=a[12],r[13]=a[13],r[14]=a[14],r[15]=a[15]),r)}},6141:function(t,e,r){t.exports=r(2953)},6199:function(t,e,r){var a=r(1338),n={zero:function(P,M,C,A){var h=P[0],p=C[0];A|=0;var k=0,w=p;for(k=0;k<h;++k)M[A]=0,A+=w},fdTemplate1:function(P,M,C,A,h,p,k){var w=P[0],R=C[0],O=p[0],j=-1*R,V=R;A|=0,k|=0;var H=0,F=R,U=O;for(H=0;H<w;++H)h[k]=.5*(M[A+j]-M[A+V]),A+=F,k+=U},fdTemplate2:functi
Line truncated
|
||||
}`]);t.exports=function(l){return n(l,o,i,null,[{name:"position",type:"vec3"},{name:"color",type:"vec4"},{name:"offset",type:"vec3"}])}},3502:function(t,e,r){t.exports=o;var a=r(5995),n=r(9127);function o(i,l){return n(a(i,l))}},3508:function(t,e,r){var a=r(6852);a=a.slice().filter(function(n){return!/^(gl\_|texture)/.test(n)}),t.exports=a.concat(["gl_VertexID","gl_InstanceID","gl_Position","gl_PointSize","gl_FragCoord","gl_FrontFacing","gl_FragDepth","gl_PointCoord","gl_MaxVertexAttribs","gl_MaxVertexUniformVectors","gl_MaxVertexOutputVectors","gl_MaxFragmentInputVectors","gl_MaxVertexTextureImageUnits","gl_MaxCombinedTextureImageUnits","gl_MaxTextureImageUnits","gl_MaxFragmentUniformVectors","gl_MaxDrawBuffers","gl_MinProgramTexelOffset","gl_MaxProgramTexelOffset","gl_DepthRangeParameters","gl_DepthRange","trunc","round","roundEven","isnan","isinf","floatBitsToInt","floatBitsToUint","intBitsToFloat","uintBitsToFloat","packSnorm2x16","unpackSnorm2x16","packUnorm2x16","unpackUnorm2x16","packHalf2x16","unpackHalf2x16","outerProduct","transpose","determinant","inverse","texture","textureSize","textureProj","textureLod","textureOffset","texelFetch","texelFetchOffset","textureProjOffset","textureLodOffset","textureProjLod","textureProjLodOffset","textureGrad","textureGradOffset","textureProjGrad","textureProjGradOffset"])},3536:function(t){t.exports=e;function e(r,a){var n=a[0],o=a[1],i=a[2],l=n*n+o*o+i*i;return l>0&&(l=1/Math.sqrt(l),r[0]=a[0]*l,r[1]=a[1]*l,r[2]=a[2]*l),r}},3545:function(t,e,r){t.exports=l;var a=r(8105),n=a("lo<p0"),o=8;function i(f,x,y,v,T,u){for(var b=2*f,_=b*(y+1)+x,P=y+1;P<v;++P,_+=b)for(var M=T[_],E=P,A=b*(P-1);E>y&&T[A+x]>M;--E,A-=b){for(var h=A,p=A+b,k=0;k<b;++k,++h,++p){var w=T[h];T[h]=T[p],T[p]=w}var R=u[E];u[E]=u[E-1],u[E-1]=R}}function l(f,x,y,v,T,u){if(v<=y+1)return y;for(var b=y,_=v,P=v+y>>>1,M=2*f,E=P,A=T[M*P+x];b<_;){if(_-b<o){i(f,x,b,_,T,u),A=T[M*P+x];break}var h=_-b,p=Math.random()*h+b|0,k=T[M*p+x],w=Math.random()*h+b|0,R=T[M*w+x],O=Math.random()*h+b|0,j=T[M*O+x];k<=R?j>=R?(E=w,A=R):k>=j?(E=p,A=k):(E=O,A=j):R>=j?(E=w,A=R):j>=k?(E=p,A=k):(E=O,A=j);for(var V=M*(_-1),H=M*E,F=0;F<M;++F,++V,++H){var U=T[V];T[V]=T[H],T[H]=U}var W=u[_-1];u[_-1]=u[E],u[E]=W,E=n(f,x,b,_-1,T,u,A);for(var V=M*(_-1),H=M*E,F=0;F<M;++F,++V,++H){var U=T[V];T[V]=T[H],T[H]=U}var W=u[_-1];if(u[_-1]=u[E],u[E]=W,P<E){for(_=E-1;b<_&&T[M*(_-1)+x]===A;)_-=1;_+=1}else if(E<P)for(b=E+1;b<_&&T[M*b+x]===A;)b+=1;else break}return n(f,x,y,P,T,u,T[M*P+x])}},3576:function(t){t.exports=e;function e(r,a,n){return r[0]=a[0]*n[0],r[1]=a[1]*n[1],r[2]=a[2]*n[2],r[3]=a[3]*n[3],r}},3589:function(t,e,r){t.exports=v;var a=r(2260),n=r(1888),o=r(9618),i=r(8828).nextPow2,l=function(T,u,b){for(var _=1e8,P=-1,M=-1,E=T.shape[0],A=T.shape[1],h=0;h<E;h++)for(var p=0;p<A;p++){var k=T.get(h,p,0),w=T.get(h,p,1),R=T.get(h,p,2),O=T.get(h,p,3);if(k<255||w<255||R<255||O<255){var j=u-h,V=b-p,H=j*j+V*V;H<_&&(_=H,P=h,M=p)}}return[P,M,_]};function f(T,u,b,_,P){this.coord=[T,u],this.id=b,this.value=_,this.distance=P}function x(T,u,b){this.gl=T,this.fbo=u,this.buffer=b,this._readTimeout=null;var _=this;this._readCallback=function(){_.gl&&(u.bind(),T.readPixels(0,0,u.shape[0],u.shape[1],T.RGBA,T.UNSIGNED_BYTE,_.buffer),_._readTimeout=null)}}var y=x.prototype;Object.defineProperty(y,"shape",{get:function(){return this.gl?this.fbo.shape.slice():[0,0]},set:function(T){if(this.gl){this.fbo.shape=T;var u=this.fbo.shape[0],b=this.fbo.shape[1];if(b*u*4>this.buffer.length){n.free(this.buffer);for(var _=this.buffer=n.mallocUint8(i(b*u*4)),P=0;P<b*u*4;++P)_[P]=255}return T}}}),y.begin=function(){var T=this.gl;this.shape,T&&(this.fbo.bind(),T.clearColor(1,1,1,1),T.clear(T.COLOR_BUFFER_BIT|T.DEPTH_BUFFER_BIT))},y.end=function(){var T=this.gl;T&&(T.bindFramebuffer(T.FRAMEBUFFER,null),this._readTimeout||clearTimeout(this._readTimeout),this._readTimeout=setTimeout(this._readCallback,1))},y.query=function(T,u,b){if(!this.gl)return null;var _=this.fbo.shape.slice();T=T|0,u=u|0,typeof b!="number"&&(b=1);var P=Math.min(Math.max(T-b,0),_[0])|0,M=Math.min(Math.max(T+b,0),_[0])|0,E=Math.min(Math.max(u-b,0),_[1])|0,A=Math.min(Math.max(u+b,0),_[1])|0;if(M<=P||A<=E)return null;var h=[M-P,A-E],p=o(this.buffer,[h[0],h[1],4],[4,_[0]*4,1],4*(P+_[0]*E)),k=l(p.hi(h[0],h[1],1),b,b),w=k[0],R=k[1];if(w<0||Math.pow(this.radius,2)<k[2])return null;var O=p.get(w,R,0),j=p.get(w,R,1),V=p.get(w,R,2),H=p.get(w,R,3);return new f(w+P|0,R+E|0,O,[j,V,H],Math.sqrt(k[2]))},y.dispose=function(){this.gl&&(this.fbo.dispose(),n.free(this.buffer),this.gl=null,this._readTimeout&&clearTimeout(this._readTimeout))};function v(T,u){var b=u[0],_=u[1],P={},M=a(T,b,_,P),E=n.mallocUint8(b*_*4);return new x(T,M,E)}},3628:function(t,e,r){var a=r(1338),n=r(727);function o(f,x){for(var y=0,v=f.length,T=0;T<v;++T)y+=f[T]*x[T];return y}function i(f){var x=f.length;if(x===0)return[];f[0].length;var y=a([f.length+1,f.length+1],1),v=a([f.length+1],1);y[x][x]=0;for(var T=0;T<x;++T){for(var u=0;u<=T;++u)y[u][T]=y[T][u]=2*o(f
Line truncated
|
||||
`+h)}throw new a(h,p.short,p.long)}return A}y.getShaderReference=function(P,M){var E=this.gl,A=this.shaders[P===E.FRAGMENT_SHADER|0],h=A[M];if(!h||!E.isShader(h.shader)){var p=v(E,P,M);h=A[M]=new f(l++,M,P,p,[],1,this)}else h.count+=1;return h};function T(P,M,E,A,h){var p=P.createProgram();P.attachShader(p,M),P.attachShader(p,E);for(var k=0;k<A.length;++k)P.bindAttribLocation(p,h[k],A[k]);if(P.linkProgram(p),!P.getProgramParameter(p,P.LINK_STATUS)){var w=P.getProgramInfoLog(p);throw new a(w,"Error linking program: "+w)}return p}y.getProgram=function(P,M,E,A){var h=[P.id,M.id,E.join(":"),A.join(":")].join("@"),p=this.programs[h];return(!p||!this.gl.isProgram(p))&&(this.programs[h]=p=T(this.gl,P.shader,M.shader,E,A),P.programs.push(h),M.programs.push(h)),p};function u(P){var M=i.get(P);return M||(M=new x(P),i.set(P,M)),M}function b(P,M,E){return u(P).getShaderReference(M,E)}function _(P,M,E,A,h){return u(P).getProgram(M,E,A,h)}},5093:function(t){t.exports=e;function e(r,a){return r[0]=-a[0],r[1]=-a[1],r[2]=-a[2],r}},5137:function(t,e,r){t.exports=n;var a=r(1091)();function n(o,i,l,f,x,y){var v,T;for(i||(i=3),l||(l=0),f?T=Math.min(f*i+l,o.length):T=o.length,v=l;v<T;v+=i)a[0]=o[v],a[1]=o[v+1],a[2]=o[v+2],x(a,a,y),o[v]=a[0],o[v+1]=a[1],o[v+2]=a[2];return o}},5171:function(t,e,r){var a=r(737);t.exports=function(n){return a[n]}},5177:function(t){t.exports=e;function e(r,a){var n=a[0],o=a[1],i=a[2],l=a[3],f=n*n+o*o+i*i+l*l;return f>0&&(f=1/Math.sqrt(f),r[0]=n*f,r[1]=o*f,r[2]=i*f,r[3]=l*f),r}},5202:function(t,e,r){var a=r(1944),n=r(8210);t.exports=l,t.exports.positive=f,t.exports.negative=x;function o(y,v){var T=n(a(y,v),[v[v.length-1]]);return T[T.length-1]}function i(y,v,T,u){var b=u-v,_=-v/b;_<0?_=0:_>1&&(_=1);for(var P=1-_,M=y.length,E=new Array(M),A=0;A<M;++A)E[A]=_*y[A]+P*T[A];return E}function l(y,v){for(var T=[],u=[],b=o(y[y.length-1],v),_=y[y.length-1],P=y[0],M=0;M<y.length;++M,_=P){P=y[M];var E=o(P,v);if(b<0&&E>0||b>0&&E<0){var A=i(_,E,P,b);T.push(A),u.push(A.slice())}E<0?u.push(P.slice()):E>0?T.push(P.slice()):(T.push(P.slice()),u.push(P.slice())),b=E}return{positive:T,negative:u}}function f(y,v){for(var T=[],u=o(y[y.length-1],v),b=y[y.length-1],_=y[0],P=0;P<y.length;++P,b=_){_=y[P];var M=o(_,v);(u<0&&M>0||u>0&&M<0)&&T.push(i(b,M,_,u)),M>=0&&T.push(_.slice()),u=M}return T}function x(y,v){for(var T=[],u=o(y[y.length-1],v),b=y[y.length-1],_=y[0],P=0;P<y.length;++P,b=_){_=y[P];var M=o(_,v);(u<0&&M>0||u>0&&M<0)&&T.push(i(b,M,_,u)),M<=0&&T.push(_.slice()),u=M}return T}},5219:function(t){t.exports=function(e){for(var r=e.length,a,n=0;n<r;n++)if(a=e.charCodeAt(n),(a<9||a>13)&&a!==32&&a!==133&&a!==160&&a!==5760&&a!==6158&&(a<8192||a>8205)&&a!==8232&&a!==8233&&a!==8239&&a!==8287&&a!==8288&&a!==12288&&a!==65279)return!1;return!0}},5250:function(t){t.exports=r;var e=+(Math.pow(2,27)+1);function r(a,n,o){var i=a*n,l=e*a,f=l-a,x=l-f,y=a-x,v=e*n,T=v-n,u=v-T,b=n-u,_=i-x*u,P=_-y*u,M=P-x*b,E=y*b-M;return o?(o[0]=E,o[1]=i,o):[E,i]}},5298:function(t,e){var r={"float64,2,1,0":function(){return function(x,y,v,T,u){var b=x[0],_=x[1],P=x[2],M=v[0],E=v[1],A=v[2];T|=0;var h=0,p=0,k=0,w=A,R=E-P*A,O=M-_*E;for(k=0;k<b;++k){for(p=0;p<_;++p){for(h=0;h<P;++h)y[T]/=u,T+=w;T+=R}T+=O}}},"uint8,2,0,1,float64,2,1,0":function(){return function(x,y,v,T,u,b,_,P){var M=x[0],E=x[1],A=x[2],h=v[0],p=v[1],k=v[2],w=b[0],R=b[1],O=b[2];T|=0,_|=0;for(var j=T,V=_,H=x[0]|0;H>0;){H<64?(M=H,H=0):(M=64,H-=64);for(var F=x[1]|0;F>0;){F<64?(E=F,F=0):(E=64,F-=64),T=j+H*h+F*p,_=V+H*w+F*R;var U=0,W=0,q=0,J=k,lt=h-A*k,yt=p-M*h,mt=O,st=w-A*O,tt=R-M*w;for(q=0;q<E;++q){for(W=0;W<M;++W){for(U=0;U<A;++U)y[T]=u[_]*P,T+=J,_+=mt;T+=lt,_+=st}T+=yt,_+=tt}}}}},"float32,1,0,float32,1,0":function(){return function(x,y,v,T,u,b,_){var P=x[0],M=x[1],E=v[0],A=v[1],h=b[0],p=b[1];T|=0,_|=0;var k=0,w=0,R=A,O=E-M*A,j=p,V=h-M*p;for(w=0;w<P;++w){for(k=0;k<M;++k)y[T]=u[_],T+=R,_+=j;T+=O,_+=V}}},"float32,1,0,float32,0,1":function(){return function(x,y,v,T,u,b,_){var P=x[0],M=x[1],E=v[0],A=v[1],h=b[0],p=b[1];T|=0,_|=0;for(var k=T,w=_,R=x[1]|0;R>0;){R<64?(M=R,R=0):(M=64,R-=64);for(var O=x[0]|0;O>0;){O<64?(P=O,O=0):(P=64,O-=64),T=k+R*A+O*E,_=w+R*p+O*h;var j=0,V=0,H=A,F=E-M*A,U=p,W=h-M*p;for(V=0;V<P;++V){for(j=0;j<M;++j)y[T]=u[_],T+=H,_+=U;T+=F,_+=W}}}}},"uint8,2,0,1,uint8,1,2,0":function(){return function(x,y,v,T,u,b,_){var P=x[0],M=x[1],E=x[2],A=v[0],h=v[1],p=v[2],k=b[0],w=b[1],R=b[2];T|=0,_|=0;for(var O=T,j=_,V=x[2]|0;V>0;){V<64?(E=V,V=0):(E=64,V-=64);for(var H=x[0]|0;H>0;){H<64?(P=H,H=0):(P=64,H-=64);for(var F=x[1]|0;F>0;){F<64?(M=F,F=0):(M=64,F-=64),T=O+V*p+H*A+F*h,_=j+V*R+H*k+F*w;var U=0,W=0,q=0,J=p,lt=A-E*p,yt=h-P*A,mt=R,st=k-E*R,tt=w-P*k;for(q=0;q<M;++q){for(W=0;W<P;++W){for(U=0;U<E;++U)y[T]=u[_],T+=J,_+=mt;T+=lt,_+=st}T+=yt,_+=tt}}}}}},"uint8,2,0,1,array,2,0,1":function(){return function(x,y,v,T,u,b,_){var P=x[0],M=x[1],E=x[2],A=v[0],h=v[1],p=v[2],k=b[0],w=b[1],R=b[2];T|=0,_|=0;var O=0,j=0,V=0,H=p,F=A-E*p,U=h-P*A,W=R,q=k-E*R,J=w-P*k;for(V=0;V<M;++V){for(j=0;j<P;++j){for(O=0;O<E;++O)
Line truncated
|
||||
`),tt=st.length;for(var Lt;H=st[O],O<tt;){switch(Lt=O,V){case y:O=qt();break;case v:O=Pt();break;case T:O=It();break;case u:O=Wt();break;case b:O=de();break;case p:O=ve();break;case _:O=me();break;case x:O=ue();break;case A:O=kt();break;case f:O=ut();break}if(Lt!==O)switch(st[Lt]){case`
|
||||
`:J=0,++q;break;default:++J;break}}return j+=O,st=st.slice(O),W}function ft(Tt){return U.length&&it(U.join("")),V=h,it("(eof)"),W}function ut(){return U=U.length?[]:U,F==="/"&&H==="*"?(lt=j+O-1,V=y,F=H,O+1):F==="/"&&H==="/"?(lt=j+O-1,V=v,F=H,O+1):H==="#"?(V=T,lt=j+O,O):/\s/.test(H)?(V=A,lt=j+O,O):(yt=/\d/.test(H),mt=/[^\w_]/.test(H),lt=j+O,V=yt?b:mt?u:x,O)}function kt(){return/[^\s]/g.test(H)?(it(U.join("")),V=f,O):(U.push(H),F=H,O+1)}function It(){return(H==="\r"||H===`
|
||||
`)&&F!=="\\"?(it(U.join("")),V=f,O):(U.push(H),F=H,O+1)}function Pt(){return It()}function qt(){return H==="/"&&F==="*"?(U.push(H),it(U.join("")),V=f,O+1):(U.push(H),F=H,O+1)}function Wt(){if(F==="."&&/\d/.test(H))return V=_,O;if(F==="/"&&H==="*")return V=y,O;if(F==="/"&&H==="/")return V=v,O;if(H==="."&&U.length){for(;Jt(U););return V=_,O}if(H===";"||H===")"||H==="("){if(U.length)for(;Jt(U););return it(H),V=f,O+1}var Tt=U.length===2&&H!=="=";if(/[\w_\d\s]/.test(H)||Tt){for(;Jt(U););return V=f,O}return U.push(H),F=H,O+1}function Jt(Tt){var Lt=0,Mt,te;do{if(Mt=n.indexOf(Tt.slice(0,Tt.length+Lt).join("")),te=n[Mt],Mt===-1){if(Lt--+Tt.length>0)continue;te=Tt.slice(0,1).join("")}return it(te),lt+=te.length,U=U.slice(te.length),U.length}while(!0)}function ve(){return/[^a-fA-F0-9]/.test(H)?(it(U.join("")),V=f,O):(U.push(H),F=H,O+1)}function de(){return H==="."||/[eE]/.test(H)?(U.push(H),V=_,F=H,O+1):H==="x"&&U.length===1&&U[0]==="0"?(V=p,U.push(H),F=H,O+1):/[^\d]/.test(H)?(it(U.join("")),V=f,O):(U.push(H),F=H,O+1)}function me(){return H==="f"&&(U.push(H),F=H,O+=1),/[eE]/.test(H)||(H==="-"||H==="+")&&/[eE]/.test(F)?(U.push(H),F=H,O+1):/[^\d]/.test(H)?(it(U.join("")),V=f,O):(U.push(H),F=H,O+1)}function ue(){if(/[^\d\w_]/.test(H)){var Tt=U.join("");return vt[Tt]?V=E:at[Tt]?V=M:V=P,it(U.join("")),V=f,O}return U.push(H),F=H,O+1}}},5878:function(t,e,r){t.exports=i;var a=r(3250),n=r(2014);function o(l,f,x){var y=Math.abs(a(l,f,x)),v=Math.sqrt(Math.pow(f[0]-x[0],2)+Math.pow(f[1]-x[1],2));return y/v}function i(l,f,x){for(var y=f.length,v=l.length,T=new Array(y),u=new Array(y),b=new Array(y),_=new Array(y),P=0;P<y;++P)T[P]=u[P]=-1,b[P]=1/0,_[P]=!1;for(var P=0;P<v;++P){var M=l[P];if(M.length!==2)throw new Error("Input must be a graph");var E=M[1],A=M[0];u[A]!==-1?u[A]=-2:u[A]=E,T[E]!==-1?T[E]=-2:T[E]=A}function h(st){if(_[st])return 1/0;var tt=T[st],pt=u[st];return tt<0||pt<0?1/0:o(f[st],f[tt],f[pt])}function p(st,tt){var pt=F[st],rt=F[tt];F[st]=rt,F[tt]=pt,U[pt]=tt,U[rt]=st}function k(st){return b[F[st]]}function w(st){return st&1?st-1>>1:(st>>1)-1}function R(st){for(var tt=k(st);;){var pt=tt,rt=2*st+1,at=2*(st+1),vt=st;if(rt<q){var it=k(rt);it<pt&&(vt=rt,pt=it)}if(at<q){var Y=k(at);Y<pt&&(vt=at)}if(vt===st)return st;p(st,vt),st=vt}}function O(st){for(var tt=k(st);st>0;){var pt=w(st);if(pt>=0){var rt=k(pt);if(tt<rt){p(st,pt),st=pt;continue}}return st}}function j(){if(q>0){var st=F[0];return p(0,q-1),q-=1,R(0),st}return-1}function V(st,tt){var pt=F[st];return b[pt]===tt?st:(b[pt]=-1/0,O(st),j(),b[pt]=tt,q+=1,O(q-1))}function H(st){if(!_[st]){_[st]=!0;var tt=T[st],pt=u[st];T[pt]>=0&&(T[pt]=tt),u[tt]>=0&&(u[tt]=pt),U[tt]>=0&&V(U[tt],h(tt)),U[pt]>=0&&V(U[pt],h(pt))}}for(var F=[],U=new Array(y),P=0;P<y;++P){var W=b[P]=h(P);W<1/0?(U[P]=F.length,F.push(P)):U[P]=-1}for(var q=F.length,P=q>>1;P>=0;--P)R(P);for(;;){var J=j();if(J<0||b[J]>x)break;H(J)}for(var lt=[],P=0;P<y;++P)_[P]||(U[P]=lt.length,lt.push(f[P].slice()));lt.length;function yt(st,tt){if(st[tt]<0)return tt;var pt=tt,rt=tt;do{var at=st[rt];if(!_[rt]||at<0||at===rt||(rt=at,at=st[rt],!_[rt]||at<0||at===rt))break;rt=at,pt=st[pt]}while(pt!==rt);for(var vt=tt;vt!==rt;vt=st[vt])st[vt]=rt;return rt}var mt=[];return l.forEach(function(st){var tt=yt(T,st[0]),pt=yt(u,st[1]);if(tt>=0&&pt>=0&&tt!==pt){var rt=U[tt],at=U[pt];rt!==at&&mt.push([rt,at])}}),n.unique(n.normalize(mt)),{positions:lt,edges:mt}}},5911:function(t){t.exports=e;function e(r,a,n){var o=a[0],i=a[1],l=a[2],f=n[0],x=n[1],y=n[2];return r[0]=i*y-l*x,r[1]=l*f-o*y,r[2]=o*x-i*f,r}},5964:function(t){t.exports=function(e){return!e&&e!==0?"":e.toString()}},5995:function(t,e,r){t.exports=o;var a=r(7642),n=r(6037);function o(i,l){return a(l).filter(function(f){for(var x=new Array(f.length),y=0;y<f.length;++y)x[y]=l[f[y]];return n(x)*i<1})}},6037:function(t,e,r){t.exports=n;var a=r(3628);function n(o){for(var i=a(o),l=0,f=0;f<o.length;++f)for(var x=o[f],y=0;y<i.length;++y)l+=Math.pow(x[y]-i[y],2);return Math.sqrt(l/o.length)}},6079:function(t){t.exports=e;function e(r,a,n,o){var i=o[0],l=o[1],f=o[2],x=Math.sqrt(i*i+l*l+f*f),y,v,T,u,b,_,P,M,E,A,h,p,k,w,R,O,j,V,H,F,U,W,q,J;return Math.abs(x)<1e-6?null:(x=1/x,i*=x,l*=x,f*=x,y=Math.sin(n),v=Math.cos(n),T=1-v,u=a[0],b=a[1],_=a[2],P=a[3],M=a[4],E=a[5],A=a[6],h=a[7],p=a[8],k=a[9],w=a[10],R=a[11],O=i*i*T+v,j=l*i*T+f*y,V=f*i*T-l*y,H=i*l*T-f*y,F=l*l*T+v,U=f*l*T+i*y,W=i*f*T+l*y,q=l*f*T-i*y,J=f*f*T+v,r[0]=u*O+M*j+p*V,r[1]=b*O+E*j+k*V,r[2]=_*O+A*j+w*V,r[3]=P*O+h*j+R*V,r[4]=u*H+M*F+p*U,r[5]=b*H+E*F+k*U,r[6]=_*H+A*F+w*U,r[7]=P*H+h*F+R*U,r[8]=u*W+M*q+p*J,r[9]=b*W+E*q+k*J,r[10]=_*W+A*q+w*J,r[11]=P*W+h*q+R*J,a!==r&&(r[12]=a[12],r[13]=a[13],r[14]=a[14],r[15]=a[15]),r)}},6141:function(t,e,r){t.exports=r(2953)},6199:function(t,e,r){var a=r(1338),n={zero:function(P,M,E,A){var h=P[0],p=E[0];A|=0;var k=0,w=p;for(k=0;k<h;++k)M[A]=0,A+=w},fdTemplate1:function(P,M,E,A,h,p,k){var w=P[0],R=E[0],O=p[0],j=-1*R,V=R;A|=0,k|=0;var H=0,F=R,U=O;for(H=0;H<w;++H)h[k]=.5*(M[A+j]-M[A+V]),A+=F,k+=U},fdTemplate2:functi
Line truncated
|
||||
|
||||
precision highp float;
|
||||
#define GLSLIFY 1
|
||||
@@ -1958,7 +1958,7 @@ void main() {
|
||||
if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard;
|
||||
|
||||
gl_FragColor = vec4(pickId, f_id.xyz);
|
||||
}`]);e.meshShader={vertex:n,fragment:o,attributes:[{name:"position",type:"vec4"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"},{name:"vector",type:"vec4"}]},e.pickShader={vertex:i,fragment:l,attributes:[{name:"position",type:"vec4"},{name:"id",type:"vec4"},{name:"vector",type:"vec4"}]}},6743:function(t){t.exports=e;function e(r,a,n){var o=a[0],i=a[1],l=a[2],f=a[3],x=o+o,y=i+i,v=l+l,T=o*x,u=o*y,b=o*v,_=i*y,P=i*v,M=l*v,C=f*x,A=f*y,h=f*v;return r[0]=1-(_+M),r[1]=u+h,r[2]=b-A,r[3]=0,r[4]=u-h,r[5]=1-(T+M),r[6]=P+C,r[7]=0,r[8]=b+A,r[9]=P-C,r[10]=1-(T+_),r[11]=0,r[12]=n[0],r[13]=n[1],r[14]=n[2],r[15]=1,r}},6760:function(t){t.exports=e;function e(r,a,n){var o=a[0],i=a[1],l=a[2],f=a[3],x=a[4],y=a[5],v=a[6],T=a[7],u=a[8],b=a[9],_=a[10],P=a[11],M=a[12],C=a[13],A=a[14],h=a[15],p=n[0],k=n[1],w=n[2],R=n[3];return r[0]=p*o+k*x+w*u+R*M,r[1]=p*i+k*y+w*b+R*C,r[2]=p*l+k*v+w*_+R*A,r[3]=p*f+k*T+w*P+R*h,p=n[4],k=n[5],w=n[6],R=n[7],r[4]=p*o+k*x+w*u+R*M,r[5]=p*i+k*y+w*b+R*C,r[6]=p*l+k*v+w*_+R*A,r[7]=p*f+k*T+w*P+R*h,p=n[8],k=n[9],w=n[10],R=n[11],r[8]=p*o+k*x+w*u+R*M,r[9]=p*i+k*y+w*b+R*C,r[10]=p*l+k*v+w*_+R*A,r[11]=p*f+k*T+w*P+R*h,p=n[12],k=n[13],w=n[14],R=n[15],r[12]=p*o+k*x+w*u+R*M,r[13]=p*i+k*y+w*b+R*C,r[14]=p*l+k*v+w*_+R*A,r[15]=p*f+k*T+w*P+R*h,r}},6768:function(t,e,r){var a=r(6859);t.exports=n;function n(o){return new a(o)}},6803:function(t,e,r){r(8828),r(1755);function a(n,o){var i=n.length,l=n.length-o.length,f=Math.min;if(l)return l;switch(i){case 0:return 0;case 1:return n[0]-o[0];case 2:var u=n[0]+n[1]-o[0]-o[1];return u||f(n[0],n[1])-f(o[0],o[1]);case 3:var x=n[0]+n[1],y=o[0]+o[1];if(u=x+n[2]-(y+o[2]),u)return u;var v=f(n[0],n[1]),T=f(o[0],o[1]),u=f(v,n[2])-f(T,o[2]);return u||f(v+n[2],x)-f(T+o[2],y);default:var b=n.slice(0);b.sort();var _=o.slice(0);_.sort();for(var P=0;P<i;++P)if(l=b[P]-_[P],l)return l;return 0}}e.Fw=a},6808:function(t){t.exports=e;function e(r){var a=r[0],n=r[1],o=r[2],i=r[3];return Math.sqrt(a*a+n*n+o*o+i*i)}},6843:function(t){t.exports=e;function e(r,a,n){return r[0]=a[0]-n[0],r[1]=a[1]-n[1],r[2]=a[2]-n[2],r}},6852:function(t){t.exports=["abs","acos","all","any","asin","atan","ceil","clamp","cos","cross","dFdx","dFdy","degrees","distance","dot","equal","exp","exp2","faceforward","floor","fract","gl_BackColor","gl_BackLightModelProduct","gl_BackLightProduct","gl_BackMaterial","gl_BackSecondaryColor","gl_ClipPlane","gl_ClipVertex","gl_Color","gl_DepthRange","gl_DepthRangeParameters","gl_EyePlaneQ","gl_EyePlaneR","gl_EyePlaneS","gl_EyePlaneT","gl_Fog","gl_FogCoord","gl_FogFragCoord","gl_FogParameters","gl_FragColor","gl_FragCoord","gl_FragData","gl_FragDepth","gl_FragDepthEXT","gl_FrontColor","gl_FrontFacing","gl_FrontLightModelProduct","gl_FrontLightProduct","gl_FrontMaterial","gl_FrontSecondaryColor","gl_LightModel","gl_LightModelParameters","gl_LightModelProducts","gl_LightProducts","gl_LightSource","gl_LightSourceParameters","gl_MaterialParameters","gl_MaxClipPlanes","gl_MaxCombinedTextureImageUnits","gl_MaxDrawBuffers","gl_MaxFragmentUniformComponents","gl_MaxLights","gl_MaxTextureCoords","gl_MaxTextureImageUnits","gl_MaxTextureUnits","gl_MaxVaryingFloats","gl_MaxVertexAttribs","gl_MaxVertexTextureImageUnits","gl_MaxVertexUniformComponents","gl_ModelViewMatrix","gl_ModelViewMatrixInverse","gl_ModelViewMatrixInverseTranspose","gl_ModelViewMatrixTranspose","gl_ModelViewProjectionMatrix","gl_ModelViewProjectionMatrixInverse","gl_ModelViewProjectionMatrixInverseTranspose","gl_ModelViewProjectionMatrixTranspose","gl_MultiTexCoord0","gl_MultiTexCoord1","gl_MultiTexCoord2","gl_MultiTexCoord3","gl_MultiTexCoord4","gl_MultiTexCoord5","gl_MultiTexCoord6","gl_MultiTexCoord7","gl_Normal","gl_NormalMatrix","gl_NormalScale","gl_ObjectPlaneQ","gl_ObjectPlaneR","gl_ObjectPlaneS","gl_ObjectPlaneT","gl_Point","gl_PointCoord","gl_PointParameters","gl_PointSize","gl_Position","gl_ProjectionMatrix","gl_ProjectionMatrixInverse","gl_ProjectionMatrixInverseTranspose","gl_ProjectionMatrixTranspose","gl_SecondaryColor","gl_TexCoord","gl_TextureEnvColor","gl_TextureMatrix","gl_TextureMatrixInverse","gl_TextureMatrixInverseTranspose","gl_TextureMatrixTranspose","gl_Vertex","greaterThan","greaterThanEqual","inversesqrt","length","lessThan","lessThanEqual","log","log2","matrixCompMult","max","min","mix","mod","normalize","not","notEqual","pow","radians","reflect","refract","sign","sin","smoothstep","sqrt","step","tan","texture2D","texture2DLod","texture2DProj","texture2DProjLod","textureCube","textureCubeLod","texture2DLodEXT","texture2DProjLodEXT","textureCubeLodEXT","texture2DGradEXT","texture2DProjGradEXT","textureCubeGradEXT"]},6859:function(t,e,r){t=r.nmd(t),function(a,n){function o(F,U){if(!F)throw new Error(U||"Assertion failed")}function i(F,U){F.super_=U;var W=function(){};W.prototype=U.prototype,F.prototype=new W,F.prototype.constructor=F}function l(F,U,W){if(l.isBN(F))return F;this.negative=0,this.words=null,this.length=0,this.red=null,F!==null&&((U==="le"||U==="be")&&(W=U,U=10),this._init(F||0,U||10,W||"be"))}
Line truncated
|
||||
}`]);e.meshShader={vertex:n,fragment:o,attributes:[{name:"position",type:"vec4"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"},{name:"vector",type:"vec4"}]},e.pickShader={vertex:i,fragment:l,attributes:[{name:"position",type:"vec4"},{name:"id",type:"vec4"},{name:"vector",type:"vec4"}]}},6743:function(t){t.exports=e;function e(r,a,n){var o=a[0],i=a[1],l=a[2],f=a[3],x=o+o,y=i+i,v=l+l,T=o*x,u=o*y,b=o*v,_=i*y,P=i*v,M=l*v,E=f*x,A=f*y,h=f*v;return r[0]=1-(_+M),r[1]=u+h,r[2]=b-A,r[3]=0,r[4]=u-h,r[5]=1-(T+M),r[6]=P+E,r[7]=0,r[8]=b+A,r[9]=P-E,r[10]=1-(T+_),r[11]=0,r[12]=n[0],r[13]=n[1],r[14]=n[2],r[15]=1,r}},6760:function(t){t.exports=e;function e(r,a,n){var o=a[0],i=a[1],l=a[2],f=a[3],x=a[4],y=a[5],v=a[6],T=a[7],u=a[8],b=a[9],_=a[10],P=a[11],M=a[12],E=a[13],A=a[14],h=a[15],p=n[0],k=n[1],w=n[2],R=n[3];return r[0]=p*o+k*x+w*u+R*M,r[1]=p*i+k*y+w*b+R*E,r[2]=p*l+k*v+w*_+R*A,r[3]=p*f+k*T+w*P+R*h,p=n[4],k=n[5],w=n[6],R=n[7],r[4]=p*o+k*x+w*u+R*M,r[5]=p*i+k*y+w*b+R*E,r[6]=p*l+k*v+w*_+R*A,r[7]=p*f+k*T+w*P+R*h,p=n[8],k=n[9],w=n[10],R=n[11],r[8]=p*o+k*x+w*u+R*M,r[9]=p*i+k*y+w*b+R*E,r[10]=p*l+k*v+w*_+R*A,r[11]=p*f+k*T+w*P+R*h,p=n[12],k=n[13],w=n[14],R=n[15],r[12]=p*o+k*x+w*u+R*M,r[13]=p*i+k*y+w*b+R*E,r[14]=p*l+k*v+w*_+R*A,r[15]=p*f+k*T+w*P+R*h,r}},6768:function(t,e,r){var a=r(6859);t.exports=n;function n(o){return new a(o)}},6803:function(t,e,r){r(8828),r(1755);function a(n,o){var i=n.length,l=n.length-o.length,f=Math.min;if(l)return l;switch(i){case 0:return 0;case 1:return n[0]-o[0];case 2:var u=n[0]+n[1]-o[0]-o[1];return u||f(n[0],n[1])-f(o[0],o[1]);case 3:var x=n[0]+n[1],y=o[0]+o[1];if(u=x+n[2]-(y+o[2]),u)return u;var v=f(n[0],n[1]),T=f(o[0],o[1]),u=f(v,n[2])-f(T,o[2]);return u||f(v+n[2],x)-f(T+o[2],y);default:var b=n.slice(0);b.sort();var _=o.slice(0);_.sort();for(var P=0;P<i;++P)if(l=b[P]-_[P],l)return l;return 0}}e.Fw=a},6808:function(t){t.exports=e;function e(r){var a=r[0],n=r[1],o=r[2],i=r[3];return Math.sqrt(a*a+n*n+o*o+i*i)}},6843:function(t){t.exports=e;function e(r,a,n){return r[0]=a[0]-n[0],r[1]=a[1]-n[1],r[2]=a[2]-n[2],r}},6852:function(t){t.exports=["abs","acos","all","any","asin","atan","ceil","clamp","cos","cross","dFdx","dFdy","degrees","distance","dot","equal","exp","exp2","faceforward","floor","fract","gl_BackColor","gl_BackLightModelProduct","gl_BackLightProduct","gl_BackMaterial","gl_BackSecondaryColor","gl_ClipPlane","gl_ClipVertex","gl_Color","gl_DepthRange","gl_DepthRangeParameters","gl_EyePlaneQ","gl_EyePlaneR","gl_EyePlaneS","gl_EyePlaneT","gl_Fog","gl_FogCoord","gl_FogFragCoord","gl_FogParameters","gl_FragColor","gl_FragCoord","gl_FragData","gl_FragDepth","gl_FragDepthEXT","gl_FrontColor","gl_FrontFacing","gl_FrontLightModelProduct","gl_FrontLightProduct","gl_FrontMaterial","gl_FrontSecondaryColor","gl_LightModel","gl_LightModelParameters","gl_LightModelProducts","gl_LightProducts","gl_LightSource","gl_LightSourceParameters","gl_MaterialParameters","gl_MaxClipPlanes","gl_MaxCombinedTextureImageUnits","gl_MaxDrawBuffers","gl_MaxFragmentUniformComponents","gl_MaxLights","gl_MaxTextureCoords","gl_MaxTextureImageUnits","gl_MaxTextureUnits","gl_MaxVaryingFloats","gl_MaxVertexAttribs","gl_MaxVertexTextureImageUnits","gl_MaxVertexUniformComponents","gl_ModelViewMatrix","gl_ModelViewMatrixInverse","gl_ModelViewMatrixInverseTranspose","gl_ModelViewMatrixTranspose","gl_ModelViewProjectionMatrix","gl_ModelViewProjectionMatrixInverse","gl_ModelViewProjectionMatrixInverseTranspose","gl_ModelViewProjectionMatrixTranspose","gl_MultiTexCoord0","gl_MultiTexCoord1","gl_MultiTexCoord2","gl_MultiTexCoord3","gl_MultiTexCoord4","gl_MultiTexCoord5","gl_MultiTexCoord6","gl_MultiTexCoord7","gl_Normal","gl_NormalMatrix","gl_NormalScale","gl_ObjectPlaneQ","gl_ObjectPlaneR","gl_ObjectPlaneS","gl_ObjectPlaneT","gl_Point","gl_PointCoord","gl_PointParameters","gl_PointSize","gl_Position","gl_ProjectionMatrix","gl_ProjectionMatrixInverse","gl_ProjectionMatrixInverseTranspose","gl_ProjectionMatrixTranspose","gl_SecondaryColor","gl_TexCoord","gl_TextureEnvColor","gl_TextureMatrix","gl_TextureMatrixInverse","gl_TextureMatrixInverseTranspose","gl_TextureMatrixTranspose","gl_Vertex","greaterThan","greaterThanEqual","inversesqrt","length","lessThan","lessThanEqual","log","log2","matrixCompMult","max","min","mix","mod","normalize","not","notEqual","pow","radians","reflect","refract","sign","sin","smoothstep","sqrt","step","tan","texture2D","texture2DLod","texture2DProj","texture2DProjLod","textureCube","textureCubeLod","texture2DLodEXT","texture2DProjLodEXT","textureCubeLodEXT","texture2DGradEXT","texture2DProjGradEXT","textureCubeGradEXT"]},6859:function(t,e,r){t=r.nmd(t),function(a,n){function o(F,U){if(!F)throw new Error(U||"Assertion failed")}function i(F,U){F.super_=U;var W=function(){};W.prototype=U.prototype,F.prototype=new W,F.prototype.constructor=F}function l(F,U,W){if(l.isBN(F))return F;this.negative=0,this.words=null,this.length=0,this.red=null,F!==null&&((U==="le"||U==="be")&&(W=U,U=10),this._init(F||0,U||10,W||"be"))}
Line truncated
|
||||
#define GLSLIFY 1
|
||||
|
||||
attribute vec3 position, nextPosition;
|
||||
@@ -2120,13 +2120,13 @@ void main() {
|
||||
if (outOfRange(clipBounds[0], clipBounds[1], worldPosition)) discard;
|
||||
|
||||
gl_FragColor = vec4(pickId/255.0, packFloat(pixelArcLength).xyz);
|
||||
}`]),f=[{name:"position",type:"vec3"},{name:"nextPosition",type:"vec3"},{name:"arcLength",type:"float"},{name:"lineWidth",type:"float"},{name:"color",type:"vec4"}];e.createShader=function(x){return n(x,o,i,null,f)},e.createPickShader=function(x){return n(x,o,l,null,f)}},7352:function(t,e,r){var a=r(5721),n=r(4750),o=r(2690);t.exports=i;function i(l){var f=l.length;if(f===0)return[];if(f===1)return[[0]];var x=l[0].length;return x===0?[]:x===1?a(l):x===2?n(l):o(l,x)}},7399:function(t){t.exports=e;function e(r,a){var n=a[0],o=a[1],i=a[2],l=a[3],f=n+n,x=o+o,y=i+i,v=n*f,T=o*f,u=o*x,b=i*f,_=i*x,P=i*y,M=l*f,C=l*x,A=l*y;return r[0]=1-u-P,r[1]=T+A,r[2]=b-C,r[3]=0,r[4]=T-A,r[5]=1-v-P,r[6]=_+M,r[7]=0,r[8]=b+C,r[9]=_-M,r[10]=1-v-u,r[11]=0,r[12]=0,r[13]=0,r[14]=0,r[15]=1,r}},7417:function(t){t.exports=e;function e(r,a,n){return r[0]=Math.max(a[0],n[0]),r[1]=Math.max(a[1],n[1]),r[2]=Math.max(a[2],n[2]),r}},7442:function(t,e,r){var a=r(6658),n=r(7182),o=r(2652),i=r(9921),l=r(8648),f=T(),x=T(),y=T();t.exports=v;function v(_,P,M,C){if(i(P)===0||i(M)===0)return!1;var A=o(P,f.translate,f.scale,f.skew,f.perspective,f.quaternion),h=o(M,x.translate,x.scale,x.skew,x.perspective,x.quaternion);return!A||!h?!1:(a(y.translate,f.translate,x.translate,C),a(y.skew,f.skew,x.skew,C),a(y.scale,f.scale,x.scale,C),a(y.perspective,f.perspective,x.perspective,C),l(y.quaternion,f.quaternion,x.quaternion,C),n(_,y.translate,y.scale,y.skew,y.perspective,y.quaternion),!0)}function T(){return{translate:u(),scale:u(1),skew:u(),perspective:b(),quaternion:b()}}function u(_){return[_||0,_||0,_||0]}function b(){return[0,0,0,1]}},7507:function(t,e){e.byteLength=x,e.toByteArray=v,e.fromByteArray=b;for(var r=[],a=[],n=typeof Uint8Array<"u"?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=0,l=o.length;i<l;++i)r[i]=o[i],a[o.charCodeAt(i)]=i;a[45]=62,a[95]=63;function f(_){var P=_.length;if(P%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var M=_.indexOf("=");M===-1&&(M=P);var C=M===P?0:4-M%4;return[M,C]}function x(_){var P=f(_),M=P[0],C=P[1];return(M+C)*3/4-C}function y(_,P,M){return(P+M)*3/4-M}function v(_){var P,M=f(_),C=M[0],A=M[1],h=new n(y(_,C,A)),p=0,k=A>0?C-4:C,w;for(w=0;w<k;w+=4)P=a[_.charCodeAt(w)]<<18|a[_.charCodeAt(w+1)]<<12|a[_.charCodeAt(w+2)]<<6|a[_.charCodeAt(w+3)],h[p++]=P>>16&255,h[p++]=P>>8&255,h[p++]=P&255;return A===2&&(P=a[_.charCodeAt(w)]<<2|a[_.charCodeAt(w+1)]>>4,h[p++]=P&255),A===1&&(P=a[_.charCodeAt(w)]<<10|a[_.charCodeAt(w+1)]<<4|a[_.charCodeAt(w+2)]>>2,h[p++]=P>>8&255,h[p++]=P&255),h}function T(_){return r[_>>18&63]+r[_>>12&63]+r[_>>6&63]+r[_&63]}function u(_,P,M){for(var C,A=[],h=P;h<M;h+=3)C=(_[h]<<16&16711680)+(_[h+1]<<8&65280)+(_[h+2]&255),A.push(T(C));return A.join("")}function b(_){for(var P,M=_.length,C=M%3,A=[],h=16383,p=0,k=M-C;p<k;p+=h)A.push(u(_,p,p+h>k?k:p+h));return C===1?(P=_[M-1],A.push(r[P>>2]+r[P<<4&63]+"==")):C===2&&(P=(_[M-2]<<8)+_[M-1],A.push(r[P>>10]+r[P>>4&63]+r[P<<2&63]+"=")),A.join("")}},7518:function(t,e,r){var a=r(1433);function n(l,f,x,y,v,T){this.location=l,this.dimension=f,this.a=x,this.b=y,this.c=v,this.d=T}n.prototype.bind=function(l){switch(this.dimension){case 1:l.vertexAttrib1f(this.location,this.a);break;case 2:l.vertexAttrib2f(this.location,this.a,this.b);break;case 3:l.vertexAttrib3f(this.location,this.a,this.b,this.c);break;case 4:l.vertexAttrib4f(this.location,this.a,this.b,this.c,this.d);break}};function o(l,f,x){this.gl=l,this._ext=f,this.handle=x,this._attribs=[],this._useElements=!1,this._elementsType=l.UNSIGNED_SHORT}o.prototype.bind=function(){this._ext.bindVertexArrayOES(this.handle);for(var l=0;l<this._attribs.length;++l)this._attribs[l].bind(this.gl)},o.prototype.unbind=function(){this._ext.bindVertexArrayOES(null)},o.prototype.dispose=function(){this._ext.deleteVertexArrayOES(this.handle)},o.prototype.update=function(l,f,x){if(this.bind(),a(this.gl,f,l),this.unbind(),this._attribs.length=0,l)for(var y=0;y<l.length;++y){var v=l[y];typeof v=="number"?this._attribs.push(new n(y,1,v)):Array.isArray(v)&&this._attribs.push(new n(y,v.length,v[0],v[1],v[2],v[3]))}this._useElements=!!f,this._elementsType=x||this.gl.UNSIGNED_SHORT},o.prototype.draw=function(l,f,x){x=x||0;var y=this.gl;this._useElements?y.drawElements(l,f,this._elementsType,x):y.drawArrays(l,x,f)};function i(l,f){return new o(l,f,f.createVertexArrayOES())}t.exports=i},7520:function(t,e,r){var a=r(9507);function n(){var o=!1;try{var i=Object.defineProperty({},"passive",{get:function(){o=!0}});window.addEventListener("test",null,i),window.removeEventListener("test",null,i)}catch{o=!1}return o}t.exports=a&&n()},7536:function(t){t.exports=e;function e(){var r=new Float32Array(4);return r[0]=0,r[1]=0,r[2]=0,r[3]=0,r}},7608:function(t){t.exports=e;function e(r,a){var n=a[0],o=a[1],i=a[2],l=a[3],f=a[4],x=a[5],y=a[6],v=a[7],T=a[8],u=a[9],b=a[10],_=a[11],P=a[12],M=a[13],C=a[14],A=a[15],h=n*x-o*f,p=n*y-i*f,k=n*v-l*f,w=o*y-i*x,R=o*v-l*x,O=i*v-l*y,j=T*M-u*P,V=T*C-b*P,H=T*A-_*P,
Line truncated
|
||||
`):H=H.replace(/\<br\>/g," ");var q="",J=[];for(Y=0;Y<H.length;++Y)J[Y]=q;W.bolds===!0&&(J=A(x,y,H,J)),W.italics===!0&&(J=A(v,T,H,J)),W.superscripts===!0&&(J=A(u,_,H,J)),W.subscripts===!0&&(J=A(P,C,H,J));var lt=[],yt="";for(Y=0;Y<H.length;++Y)J[Y]!==null&&(yt+=H[Y],lt.push(J[Y]));var mt=yt.split(`
|
||||
`),st=mt.length,tt=Math.round(U*F),pt=F,rt=F*2,at=0,vt=st*tt+rt;j.height<vt&&(j.height=vt),V.fillStyle="#000",V.fillRect(0,0,j.width,j.height),V.fillStyle="#fff";var it,Y,ft,ut,kt,zt=0,Pt="";function qt(){if(Pt!==""){var Mt=V.measureText(Pt).width;V.fillText(Pt,pt+ft,rt+ut),ft+=Mt}}function Wt(){return""+Math.round(kt)+"px "}function Jt(Mt,te){var ye=""+V.font;if(W.subscripts===!0){var le=Mt.indexOf(M),Me=te.indexOf(M),He=le>-1?parseInt(Mt[1+le]):0,Ge=Me>-1?parseInt(te[1+Me]):0;He!==Ge&&(ye=ye.replace(Wt(),"?px "),kt*=Math.pow(.75,Ge-He),ye=ye.replace("?px ",Wt())),ut+=.25*tt*(Ge-He)}if(W.superscripts===!0){var cr=Mt.indexOf(b),ur=te.indexOf(b),Ur=cr>-1?parseInt(Mt[1+cr]):0,Wr=ur>-1?parseInt(te[1+ur]):0;Ur!==Wr&&(ye=ye.replace(Wt(),"?px "),kt*=Math.pow(.75,Wr-Ur),ye=ye.replace("?px ",Wt())),ut-=.25*tt*(Wr-Ur)}if(W.bolds===!0){var wr=Mt.indexOf(y)>-1,Xr=te.indexOf(y)>-1;!wr&&Xr&&(nn?ye=ye.replace("italic ","italic bold "):ye="bold "+ye),wr&&!Xr&&(ye=ye.replace("bold ",""))}if(W.italics===!0){var nn=Mt.indexOf(T)>-1,Pe=te.indexOf(T)>-1;!nn&&Pe&&(ye="italic "+ye),nn&&!Pe&&(ye=ye.replace("italic ",""))}V.font=ye}for(it=0;it<st;++it){var ve=mt[it]+`
|
||||
`;for(ft=0,ut=it*tt,kt=F,Pt="",Y=0;Y<ve.length;++Y){var de=Y+zt<lt.length?lt[Y+zt]:lt[lt.length-1];q===de?Pt+=ve[Y]:(qt(),Pt=ve[Y],de!==void 0&&(Jt(q,de),q=de))}qt(),zt+=ve.length;var me=Math.round(ft+2*pt)|0;at<me&&(at=me)}var ue=at,Tt=rt+tt*st,Lt=n(V.getImageData(0,0,ue,Tt).data,[Tt,ue,4]);return Lt.pick(-1,-1,0).transpose(1,0)}function k(j,V){var H=a(j,128);return V?o(H.cells,H.positions,.25):{edges:H.cells,positions:H.positions}}function w(j,V,H,F){var U=k(j,F),W=h(U.positions,V,H),q=U.edges,J=V.orientation==="ccw";if(i(W,q),V.polygons||V.polygon||V.polyline){for(var lt=f(q,W),yt=new Array(lt.length),mt=0;mt<lt.length;++mt){for(var st=lt[mt],tt=new Array(st.length),pt=0;pt<st.length;++pt){for(var rt=st[pt],at=new Array(rt.length),vt=0;vt<rt.length;++vt)at[vt]=W[rt[vt]].slice();J&&at.reverse(),tt[pt]=at}yt[mt]=tt}return yt}else return V.triangles||V.triangulate||V.triangle?{cells:l(W,q,{delaunay:!1,exterior:!1,interior:!0}),positions:W}:{edges:q,positions:W}}function R(j,V,H){try{return w(j,V,H,!0)}catch{}try{return w(j,V,H,!1)}catch{}return V.polygons||V.polyline||V.polygon?[]:V.triangles||V.triangulate||V.triangle?{cells:[],positions:[]}:{edges:[],positions:[]}}function O(j,V,H,F){var U=64,W=1.25,q={breaklines:!1,bolds:!1,italics:!1,subscripts:!1,superscripts:!1};F&&(F.size&&F.size>0&&(U=F.size),F.lineSpacing&&F.lineSpacing>0&&(W=F.lineSpacing),F.styletags&&F.styletags.breaklines&&(q.breaklines=!!F.styletags.breaklines),F.styletags&&F.styletags.bolds&&(q.bolds=!!F.styletags.bolds),F.styletags&&F.styletags.italics&&(q.italics=!!F.styletags.italics),F.styletags&&F.styletags.subscripts&&(q.subscripts=!!F.styletags.subscripts),F.styletags&&F.styletags.superscripts&&(q.superscripts=!!F.styletags.superscripts)),H.font=[F.fontStyle,F.fontVariant,F.fontWeight,U+"px",F.font].filter(function(lt){return lt}).join(" "),H.textAlign="start",H.textBaseline="alphabetic",H.direction="ltr";var J=p(V,H,j,U,W,q);return R(J,F,U)}},7721:function(t,e,r){var a=r(5716);t.exports=n;function n(o){return a(o[0])*a(o[1])}},7765:function(t,e,r){t.exports=u;var a=r(9618),n=r(1888),o=r(446),i=r(1570);function l(b){for(var _=b.length,P=0,M=0;M<_;++M)P=Math.max(P,b[M].length)|0;return P-1}function f(b,_){for(var P=b.length,M=n.mallocUint8(P),C=0;C<P;++C)M[C]=b[C]<_|0;return M}function x(b,_){for(var P=b.length,M=_*(_+1)/2*P|0,C=n.mallocUint32(M*2),A=0,h=0;h<P;++h)for(var p=b[h],_=p.length,k=0;k<_;++k)for(var w=0;w<k;++w){var R=p[w],O=p[k];C[A++]=Math.min(R,O)|0,C[A++]=Math.max(R,O)|0}var j=A/2|0;o(a(C,[j,2]));for(var V=2,h=2;h<A;h+=2)C[h-2]===C[h]&&C[h-1]===C[h+1]||(C[V++]=C[h],C[V++]=C[h+1]);return a(C,[V/2|0,2])}function y(b,_,P,M){for(var C=b.data,A=b.shape[0],h=n.mallocDouble(A),p=0,k=0;k<A;++k){var w=C[2*k],R=C[2*k+1];if(P[w]!==P[R]){var O=_[w],j=_[R];C[2*p]=w,C[2*p+1]=R,h[p++]=(j-M)/(j-O)}}return b.shape[0]=p,a(h,[p])}function v(b,_){var P=n.mallocInt32(_*2),M=b.shape[0],C=b.data;P[0]=0;for(var A=0,h=0;h<M;++h){var p=C[2*h];if(p!==A){for(P[2*A+1]=h;++A<p;)P[2*A]=h,P[2*A+1]=h;P[2*A]=h}}for(P[2*A+1]=M;++A<_;)P[2*A]=P[2*A+1]=M;return P}function T(b){for(var _=b.shape[0]|0,P=b.data,M=new Array(_),C=0;C<_;++C)M[C]=[P[2*C],P[2*C+1]];return M}function u(b,_,P,M){P=P||0,typeof M>"u"&&(M=l(b));var C=b.length;if(C===0||M<1)return{cells:[],vertexIds:[],vertexWeights:[]};var A=f(_,+P),h=x(b,M),p=y(h,_,A,+P),k=v(h,_.length|0),w=i(M)(b,h.data,k,A),R=T(h),O=[].slice.call(p.data,0,p.shape[0]);return n.free(A),n.free(h.data),n.free(p.data),n.free(k),{cells:w,vertexIds:R,vertexWeights:O}}},7766:function(t,e,r){var a=r(9618),n=r(5298),o=r(1888);t.exports=p;var i=null,l=null,f=null;function x(k){i=[k.LINEAR,k.NEAREST_MIPMAP_LINEAR,k.LINEAR_MIPMAP_NEAREST,k.LINEAR_MIPMAP_NEAREST],l=[k.NEAREST,k.LINEAR,k.NEAREST_MIPMAP_NEAREST,k.NEAREST_MIPMAP_LINEAR,k.LINEAR_MIPMAP_NEAREST,k.LINEAR_MIPMAP_LINEAR],f=[k.REPEAT,k.CLAMP_TO_EDGE,k.MIRRORED_REPEAT]}function y(k){return typeof HTMLCanvasElement<"u"&&k instanceof HTMLCanvasElement||typeof HTMLImageElement<"u"&&k instanceof HTMLImageElement||typeof HTMLVideoElement<"u"&&k instanceof HTMLVideoElement||typeof ImageData<"u"&&k instanceof ImageData}var v=function(k,w){n.muls(k,w,255)};function T(k,w,R){var O=k.gl,j=O.getParameter(O.MAX_TEXTURE_SIZE);if(w<0||w>j||R<0||R>j)throw new Error("gl-texture2d: Invalid texture size");return k._shape=[w,R],k.bind(),O.texImage2D(O.TEXTURE_2D,0,k.format,w,R,0,k.format,k.type,null),k._mipLevels=[0],k}function u(k,w,R,O,j,V){this.gl=k,this.handle=w,this.format=j,this.type=V,this._shape=[R,O],this._mipLevels=[0],this._magFilter=k.NEAREST,this._minFilter=k.NEAREST,this._wrapS=k.CLAMP_TO_EDGE,this._wrapT=k.CLAMP_TO_EDGE,this._anisoSamples=1;var H=this,F=[this._wrapS,this._wrapT];Object.defineProperties(F,[{get:function(){return H._wrapS},set:function(W){return H.wrapS=W}},{get:function(){return H._wrapT},set:function(W){return H.wrapT=W}}]),this._wrapVector=F;var U=[this._shape[0],this._shape[1]];Object.defineProperties(U,[{get:function(){return H._shape[0]},set:function(W){retur
Line truncated
|
||||
`+n:""),this.stack=new Error().stack}e.prototype=new Error,e.prototype.name="GLError",e.prototype.constructor=e,t.exports=e},8902:function(t,e,r){var a=r(2478),n=r(3250)[3],o=0,i=1,l=2;t.exports=P;function f(M,C,A,h,p){this.a=M,this.b=C,this.idx=A,this.lowerIds=h,this.upperIds=p}function x(M,C,A,h){this.a=M,this.b=C,this.type=A,this.idx=h}function y(M,C){var A=M.a[0]-C.a[0]||M.a[1]-C.a[1]||M.type-C.type;return A||M.type!==o&&(A=n(M.a,M.b,C.b),A)?A:M.idx-C.idx}function v(M,C){return n(M.a,M.b,C)}function T(M,C,A,h,p){for(var k=a.lt(C,h,v),w=a.gt(C,h,v),R=k;R<w;++R){for(var O=C[R],j=O.lowerIds,V=j.length;V>1&&n(A[j[V-2]],A[j[V-1]],h)>0;)M.push([j[V-1],j[V-2],p]),V-=1;j.length=V,j.push(p);for(var H=O.upperIds,V=H.length;V>1&&n(A[H[V-2]],A[H[V-1]],h)<0;)M.push([H[V-2],H[V-1],p]),V-=1;H.length=V,H.push(p)}}function u(M,C){var A;return M.a[0]<C.a[0]?A=n(M.a,M.b,C.a):A=n(C.b,C.a,M.a),A||(C.b[0]<M.b[0]?A=n(M.a,M.b,C.b):A=n(C.b,C.a,M.b),A||M.idx-C.idx)}function b(M,C,A){var h=a.le(M,A,u),p=M[h],k=p.upperIds,w=k[k.length-1];p.upperIds=[w],M.splice(h+1,0,new f(A.a,A.b,A.idx,[w],k))}function _(M,C,A){var h=A.a;A.a=A.b,A.b=h;var p=a.eq(M,A,u),k=M[p],w=M[p-1];w.upperIds=k.upperIds,M.splice(p,1)}function P(M,C){for(var A=M.length,h=C.length,p=[],k=0;k<A;++k)p.push(new x(M[k],null,o,k));for(var k=0;k<h;++k){var w=C[k],R=M[w[0]],O=M[w[1]];R[0]<O[0]?p.push(new x(R,O,l,k),new x(O,R,i,k)):R[0]>O[0]&&p.push(new x(O,R,l,k),new x(R,O,i,k))}p.sort(y);for(var j=p[0].a[0]-(1+Math.abs(p[0].a[0]))*Math.pow(2,-52),V=[new f([j,1],[j,0],-1,[],[])],H=[],k=0,F=p.length;k<F;++k){var U=p[k],W=U.type;W===o?T(H,V,M,U.a,U.idx):W===l?b(V,M,U):_(V,M,U)}return H}},8954:function(t,e,r){t.exports=u;var a=r(3250),n=r(6803).Fw;function o(b,_,P){this.vertices=b,this.adjacent=_,this.boundary=P,this.lastVisited=-1}o.prototype.flip=function(){var b=this.vertices[0];this.vertices[0]=this.vertices[1],this.vertices[1]=b;var _=this.adjacent[0];this.adjacent[0]=this.adjacent[1],this.adjacent[1]=_};function i(b,_,P){this.vertices=b,this.cell=_,this.index=P}function l(b,_){return n(b.vertices,_.vertices)}function f(b){return function(){var _=this.tuple;return b.apply(this,_)}}function x(b){var _=a[b+1];return _||(_=a),f(_)}var y=[];function v(b,_,P){this.dimension=b,this.vertices=_,this.simplices=P,this.interior=P.filter(function(A){return!A.boundary}),this.tuple=new Array(b+1);for(var M=0;M<=b;++M)this.tuple[M]=this.vertices[M];var C=y[b];C||(C=y[b]=x(b)),this.orient=C}var T=v.prototype;T.handleBoundaryDegeneracy=function(b,_){var P=this.dimension,M=this.vertices.length-1,C=this.tuple,A=this.vertices,h=[b];for(b.lastVisited=-M;h.length>0;){b=h.pop();for(var p=b.adjacent,k=0;k<=P;++k){var w=p[k];if(!(!w.boundary||w.lastVisited<=-M)){for(var R=w.vertices,O=0;O<=P;++O){var j=R[O];j<0?C[O]=_:C[O]=A[j]}var V=this.orient();if(V>0)return w;w.lastVisited=-M,V===0&&h.push(w)}}}return null},T.walk=function(b,_){var P=this.vertices.length-1,M=this.dimension,C=this.vertices,A=this.tuple,h=_?this.interior.length*Math.random()|0:this.interior.length-1,p=this.interior[h];t:for(;!p.boundary;){for(var k=p.vertices,w=p.adjacent,R=0;R<=M;++R)A[R]=C[k[R]];p.lastVisited=P;for(var R=0;R<=M;++R){var O=w[R];if(!(O.lastVisited>=P)){var j=A[R];A[R]=b;var V=this.orient();if(A[R]=j,V<0){p=O;continue t}else O.boundary?O.lastVisited=-P:O.lastVisited=P}}return}return p},T.addPeaks=function(b,_){var P=this.vertices.length-1,M=this.dimension,C=this.vertices,A=this.tuple,h=this.interior,p=this.simplices,k=[_];_.lastVisited=P,_.vertices[_.vertices.indexOf(-1)]=P,_.boundary=!1,h.push(_);for(var w=[];k.length>0;){var _=k.pop(),R=_.vertices,O=_.adjacent,j=R.indexOf(P);if(!(j<0)){for(var V=0;V<=M;++V)if(V!==j){var H=O[V];if(!(!H.boundary||H.lastVisited>=P)){var F=H.vertices;if(H.lastVisited!==-P){for(var U=0,W=0;W<=M;++W)F[W]<0?(U=W,A[W]=b):A[W]=C[F[W]];var q=this.orient();if(q>0){F[U]=P,H.boundary=!1,h.push(H),k.push(H),H.lastVisited=P;continue}else H.lastVisited=-P}var J=H.adjacent,lt=R.slice(),yt=O.slice(),mt=new o(lt,yt,!0);p.push(mt);var st=J.indexOf(_);if(!(st<0)){J[st]=mt,yt[j]=H,lt[V]=-1,yt[V]=_,O[V]=mt,mt.flip();for(var W=0;W<=M;++W){var tt=lt[W];if(!(tt<0||tt===P)){for(var pt=new Array(M-1),rt=0,at=0;at<=M;++at){var vt=lt[at];vt<0||at===W||(pt[rt++]=vt)}w.push(new i(pt,mt,W))}}}}}}}w.sort(l);for(var V=0;V+1<w.length;V+=2){var it=w[V],Y=w[V+1],ft=it.index,ut=Y.index;ft<0||ut<0||(it.cell.adjacent[it.index]=Y.cell,Y.cell.adjacent[Y.index]=it.cell)}},T.insert=function(b,_){var P=this.vertices;P.push(b);var M=this.walk(b,_);if(M){for(var C=this.dimension,A=this.tuple,h=0;h<=C;++h){var p=M.vertices[h];p<0?A[h]=b:A[h]=P[p]}var k=this.orient(A);k<0||k===0&&(M=this.handleBoundaryDegeneracy(M,b),!M)||this.addPeaks(b,M)}},T.boundary=function(){for(var b=this.dimension,_=[],P=this.simplices,M=P.length,C=0;C<M;++C){var A=P[C];if(A.boundary){for(var h=new Array(b),p=A.vertices,k=0,w=0,R=0;R<=b;++R)p[R]>=0?h[k++]=p[R]:w=R&1;if(w===(b&1)){var O=h[0];h[0]=h[1],h[1]=O}_.push(h)}}return _};function u(b,_){v
Line truncated
|
||||
}`]),f=[{name:"position",type:"vec3"},{name:"nextPosition",type:"vec3"},{name:"arcLength",type:"float"},{name:"lineWidth",type:"float"},{name:"color",type:"vec4"}];e.createShader=function(x){return n(x,o,i,null,f)},e.createPickShader=function(x){return n(x,o,l,null,f)}},7352:function(t,e,r){var a=r(5721),n=r(4750),o=r(2690);t.exports=i;function i(l){var f=l.length;if(f===0)return[];if(f===1)return[[0]];var x=l[0].length;return x===0?[]:x===1?a(l):x===2?n(l):o(l,x)}},7399:function(t){t.exports=e;function e(r,a){var n=a[0],o=a[1],i=a[2],l=a[3],f=n+n,x=o+o,y=i+i,v=n*f,T=o*f,u=o*x,b=i*f,_=i*x,P=i*y,M=l*f,E=l*x,A=l*y;return r[0]=1-u-P,r[1]=T+A,r[2]=b-E,r[3]=0,r[4]=T-A,r[5]=1-v-P,r[6]=_+M,r[7]=0,r[8]=b+E,r[9]=_-M,r[10]=1-v-u,r[11]=0,r[12]=0,r[13]=0,r[14]=0,r[15]=1,r}},7417:function(t){t.exports=e;function e(r,a,n){return r[0]=Math.max(a[0],n[0]),r[1]=Math.max(a[1],n[1]),r[2]=Math.max(a[2],n[2]),r}},7442:function(t,e,r){var a=r(6658),n=r(7182),o=r(2652),i=r(9921),l=r(8648),f=T(),x=T(),y=T();t.exports=v;function v(_,P,M,E){if(i(P)===0||i(M)===0)return!1;var A=o(P,f.translate,f.scale,f.skew,f.perspective,f.quaternion),h=o(M,x.translate,x.scale,x.skew,x.perspective,x.quaternion);return!A||!h?!1:(a(y.translate,f.translate,x.translate,E),a(y.skew,f.skew,x.skew,E),a(y.scale,f.scale,x.scale,E),a(y.perspective,f.perspective,x.perspective,E),l(y.quaternion,f.quaternion,x.quaternion,E),n(_,y.translate,y.scale,y.skew,y.perspective,y.quaternion),!0)}function T(){return{translate:u(),scale:u(1),skew:u(),perspective:b(),quaternion:b()}}function u(_){return[_||0,_||0,_||0]}function b(){return[0,0,0,1]}},7507:function(t,e){e.byteLength=x,e.toByteArray=v,e.fromByteArray=b;for(var r=[],a=[],n=typeof Uint8Array<"u"?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=0,l=o.length;i<l;++i)r[i]=o[i],a[o.charCodeAt(i)]=i;a[45]=62,a[95]=63;function f(_){var P=_.length;if(P%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var M=_.indexOf("=");M===-1&&(M=P);var E=M===P?0:4-M%4;return[M,E]}function x(_){var P=f(_),M=P[0],E=P[1];return(M+E)*3/4-E}function y(_,P,M){return(P+M)*3/4-M}function v(_){var P,M=f(_),E=M[0],A=M[1],h=new n(y(_,E,A)),p=0,k=A>0?E-4:E,w;for(w=0;w<k;w+=4)P=a[_.charCodeAt(w)]<<18|a[_.charCodeAt(w+1)]<<12|a[_.charCodeAt(w+2)]<<6|a[_.charCodeAt(w+3)],h[p++]=P>>16&255,h[p++]=P>>8&255,h[p++]=P&255;return A===2&&(P=a[_.charCodeAt(w)]<<2|a[_.charCodeAt(w+1)]>>4,h[p++]=P&255),A===1&&(P=a[_.charCodeAt(w)]<<10|a[_.charCodeAt(w+1)]<<4|a[_.charCodeAt(w+2)]>>2,h[p++]=P>>8&255,h[p++]=P&255),h}function T(_){return r[_>>18&63]+r[_>>12&63]+r[_>>6&63]+r[_&63]}function u(_,P,M){for(var E,A=[],h=P;h<M;h+=3)E=(_[h]<<16&16711680)+(_[h+1]<<8&65280)+(_[h+2]&255),A.push(T(E));return A.join("")}function b(_){for(var P,M=_.length,E=M%3,A=[],h=16383,p=0,k=M-E;p<k;p+=h)A.push(u(_,p,p+h>k?k:p+h));return E===1?(P=_[M-1],A.push(r[P>>2]+r[P<<4&63]+"==")):E===2&&(P=(_[M-2]<<8)+_[M-1],A.push(r[P>>10]+r[P>>4&63]+r[P<<2&63]+"=")),A.join("")}},7518:function(t,e,r){var a=r(1433);function n(l,f,x,y,v,T){this.location=l,this.dimension=f,this.a=x,this.b=y,this.c=v,this.d=T}n.prototype.bind=function(l){switch(this.dimension){case 1:l.vertexAttrib1f(this.location,this.a);break;case 2:l.vertexAttrib2f(this.location,this.a,this.b);break;case 3:l.vertexAttrib3f(this.location,this.a,this.b,this.c);break;case 4:l.vertexAttrib4f(this.location,this.a,this.b,this.c,this.d);break}};function o(l,f,x){this.gl=l,this._ext=f,this.handle=x,this._attribs=[],this._useElements=!1,this._elementsType=l.UNSIGNED_SHORT}o.prototype.bind=function(){this._ext.bindVertexArrayOES(this.handle);for(var l=0;l<this._attribs.length;++l)this._attribs[l].bind(this.gl)},o.prototype.unbind=function(){this._ext.bindVertexArrayOES(null)},o.prototype.dispose=function(){this._ext.deleteVertexArrayOES(this.handle)},o.prototype.update=function(l,f,x){if(this.bind(),a(this.gl,f,l),this.unbind(),this._attribs.length=0,l)for(var y=0;y<l.length;++y){var v=l[y];typeof v=="number"?this._attribs.push(new n(y,1,v)):Array.isArray(v)&&this._attribs.push(new n(y,v.length,v[0],v[1],v[2],v[3]))}this._useElements=!!f,this._elementsType=x||this.gl.UNSIGNED_SHORT},o.prototype.draw=function(l,f,x){x=x||0;var y=this.gl;this._useElements?y.drawElements(l,f,this._elementsType,x):y.drawArrays(l,x,f)};function i(l,f){return new o(l,f,f.createVertexArrayOES())}t.exports=i},7520:function(t,e,r){var a=r(9507);function n(){var o=!1;try{var i=Object.defineProperty({},"passive",{get:function(){o=!0}});window.addEventListener("test",null,i),window.removeEventListener("test",null,i)}catch{o=!1}return o}t.exports=a&&n()},7536:function(t){t.exports=e;function e(){var r=new Float32Array(4);return r[0]=0,r[1]=0,r[2]=0,r[3]=0,r}},7608:function(t){t.exports=e;function e(r,a){var n=a[0],o=a[1],i=a[2],l=a[3],f=a[4],x=a[5],y=a[6],v=a[7],T=a[8],u=a[9],b=a[10],_=a[11],P=a[12],M=a[13],E=a[14],A=a[15],h=n*x-o*f,p=n*y-i*f,k=n*v-l*f,w=o*y-i*x,R=o*v-l*x,O=i*v-l*y,j=T*M-u*P,V=T*E-b*P,H=T*A-_*P,
Line truncated
|
||||
`):H=H.replace(/\<br\>/g," ");var q="",J=[];for(Y=0;Y<H.length;++Y)J[Y]=q;W.bolds===!0&&(J=A(x,y,H,J)),W.italics===!0&&(J=A(v,T,H,J)),W.superscripts===!0&&(J=A(u,_,H,J)),W.subscripts===!0&&(J=A(P,E,H,J));var lt=[],yt="";for(Y=0;Y<H.length;++Y)J[Y]!==null&&(yt+=H[Y],lt.push(J[Y]));var mt=yt.split(`
|
||||
`),st=mt.length,tt=Math.round(U*F),pt=F,rt=F*2,at=0,vt=st*tt+rt;j.height<vt&&(j.height=vt),V.fillStyle="#000",V.fillRect(0,0,j.width,j.height),V.fillStyle="#fff";var it,Y,ft,ut,kt,It=0,Pt="";function qt(){if(Pt!==""){var Mt=V.measureText(Pt).width;V.fillText(Pt,pt+ft,rt+ut),ft+=Mt}}function Wt(){return""+Math.round(kt)+"px "}function Jt(Mt,te){var ye=""+V.font;if(W.subscripts===!0){var le=Mt.indexOf(M),Me=te.indexOf(M),He=le>-1?parseInt(Mt[1+le]):0,Ge=Me>-1?parseInt(te[1+Me]):0;He!==Ge&&(ye=ye.replace(Wt(),"?px "),kt*=Math.pow(.75,Ge-He),ye=ye.replace("?px ",Wt())),ut+=.25*tt*(Ge-He)}if(W.superscripts===!0){var cr=Mt.indexOf(b),ur=te.indexOf(b),Ur=cr>-1?parseInt(Mt[1+cr]):0,Wr=ur>-1?parseInt(te[1+ur]):0;Ur!==Wr&&(ye=ye.replace(Wt(),"?px "),kt*=Math.pow(.75,Wr-Ur),ye=ye.replace("?px ",Wt())),ut-=.25*tt*(Wr-Ur)}if(W.bolds===!0){var wr=Mt.indexOf(y)>-1,Kr=te.indexOf(y)>-1;!wr&&Kr&&(rn?ye=ye.replace("italic ","italic bold "):ye="bold "+ye),wr&&!Kr&&(ye=ye.replace("bold ",""))}if(W.italics===!0){var rn=Mt.indexOf(T)>-1,Pe=te.indexOf(T)>-1;!rn&&Pe&&(ye="italic "+ye),rn&&!Pe&&(ye=ye.replace("italic ",""))}V.font=ye}for(it=0;it<st;++it){var ve=mt[it]+`
|
||||
`;for(ft=0,ut=it*tt,kt=F,Pt="",Y=0;Y<ve.length;++Y){var de=Y+It<lt.length?lt[Y+It]:lt[lt.length-1];q===de?Pt+=ve[Y]:(qt(),Pt=ve[Y],de!==void 0&&(Jt(q,de),q=de))}qt(),It+=ve.length;var me=Math.round(ft+2*pt)|0;at<me&&(at=me)}var ue=at,Tt=rt+tt*st,Lt=n(V.getImageData(0,0,ue,Tt).data,[Tt,ue,4]);return Lt.pick(-1,-1,0).transpose(1,0)}function k(j,V){var H=a(j,128);return V?o(H.cells,H.positions,.25):{edges:H.cells,positions:H.positions}}function w(j,V,H,F){var U=k(j,F),W=h(U.positions,V,H),q=U.edges,J=V.orientation==="ccw";if(i(W,q),V.polygons||V.polygon||V.polyline){for(var lt=f(q,W),yt=new Array(lt.length),mt=0;mt<lt.length;++mt){for(var st=lt[mt],tt=new Array(st.length),pt=0;pt<st.length;++pt){for(var rt=st[pt],at=new Array(rt.length),vt=0;vt<rt.length;++vt)at[vt]=W[rt[vt]].slice();J&&at.reverse(),tt[pt]=at}yt[mt]=tt}return yt}else return V.triangles||V.triangulate||V.triangle?{cells:l(W,q,{delaunay:!1,exterior:!1,interior:!0}),positions:W}:{edges:q,positions:W}}function R(j,V,H){try{return w(j,V,H,!0)}catch{}try{return w(j,V,H,!1)}catch{}return V.polygons||V.polyline||V.polygon?[]:V.triangles||V.triangulate||V.triangle?{cells:[],positions:[]}:{edges:[],positions:[]}}function O(j,V,H,F){var U=64,W=1.25,q={breaklines:!1,bolds:!1,italics:!1,subscripts:!1,superscripts:!1};F&&(F.size&&F.size>0&&(U=F.size),F.lineSpacing&&F.lineSpacing>0&&(W=F.lineSpacing),F.styletags&&F.styletags.breaklines&&(q.breaklines=!!F.styletags.breaklines),F.styletags&&F.styletags.bolds&&(q.bolds=!!F.styletags.bolds),F.styletags&&F.styletags.italics&&(q.italics=!!F.styletags.italics),F.styletags&&F.styletags.subscripts&&(q.subscripts=!!F.styletags.subscripts),F.styletags&&F.styletags.superscripts&&(q.superscripts=!!F.styletags.superscripts)),H.font=[F.fontStyle,F.fontVariant,F.fontWeight,U+"px",F.font].filter(function(lt){return lt}).join(" "),H.textAlign="start",H.textBaseline="alphabetic",H.direction="ltr";var J=p(V,H,j,U,W,q);return R(J,F,U)}},7721:function(t,e,r){var a=r(5716);t.exports=n;function n(o){return a(o[0])*a(o[1])}},7765:function(t,e,r){t.exports=u;var a=r(9618),n=r(1888),o=r(446),i=r(1570);function l(b){for(var _=b.length,P=0,M=0;M<_;++M)P=Math.max(P,b[M].length)|0;return P-1}function f(b,_){for(var P=b.length,M=n.mallocUint8(P),E=0;E<P;++E)M[E]=b[E]<_|0;return M}function x(b,_){for(var P=b.length,M=_*(_+1)/2*P|0,E=n.mallocUint32(M*2),A=0,h=0;h<P;++h)for(var p=b[h],_=p.length,k=0;k<_;++k)for(var w=0;w<k;++w){var R=p[w],O=p[k];E[A++]=Math.min(R,O)|0,E[A++]=Math.max(R,O)|0}var j=A/2|0;o(a(E,[j,2]));for(var V=2,h=2;h<A;h+=2)E[h-2]===E[h]&&E[h-1]===E[h+1]||(E[V++]=E[h],E[V++]=E[h+1]);return a(E,[V/2|0,2])}function y(b,_,P,M){for(var E=b.data,A=b.shape[0],h=n.mallocDouble(A),p=0,k=0;k<A;++k){var w=E[2*k],R=E[2*k+1];if(P[w]!==P[R]){var O=_[w],j=_[R];E[2*p]=w,E[2*p+1]=R,h[p++]=(j-M)/(j-O)}}return b.shape[0]=p,a(h,[p])}function v(b,_){var P=n.mallocInt32(_*2),M=b.shape[0],E=b.data;P[0]=0;for(var A=0,h=0;h<M;++h){var p=E[2*h];if(p!==A){for(P[2*A+1]=h;++A<p;)P[2*A]=h,P[2*A+1]=h;P[2*A]=h}}for(P[2*A+1]=M;++A<_;)P[2*A]=P[2*A+1]=M;return P}function T(b){for(var _=b.shape[0]|0,P=b.data,M=new Array(_),E=0;E<_;++E)M[E]=[P[2*E],P[2*E+1]];return M}function u(b,_,P,M){P=P||0,typeof M>"u"&&(M=l(b));var E=b.length;if(E===0||M<1)return{cells:[],vertexIds:[],vertexWeights:[]};var A=f(_,+P),h=x(b,M),p=y(h,_,A,+P),k=v(h,_.length|0),w=i(M)(b,h.data,k,A),R=T(h),O=[].slice.call(p.data,0,p.shape[0]);return n.free(A),n.free(h.data),n.free(p.data),n.free(k),{cells:w,vertexIds:R,vertexWeights:O}}},7766:function(t,e,r){var a=r(9618),n=r(5298),o=r(1888);t.exports=p;var i=null,l=null,f=null;function x(k){i=[k.LINEAR,k.NEAREST_MIPMAP_LINEAR,k.LINEAR_MIPMAP_NEAREST,k.LINEAR_MIPMAP_NEAREST],l=[k.NEAREST,k.LINEAR,k.NEAREST_MIPMAP_NEAREST,k.NEAREST_MIPMAP_LINEAR,k.LINEAR_MIPMAP_NEAREST,k.LINEAR_MIPMAP_LINEAR],f=[k.REPEAT,k.CLAMP_TO_EDGE,k.MIRRORED_REPEAT]}function y(k){return typeof HTMLCanvasElement<"u"&&k instanceof HTMLCanvasElement||typeof HTMLImageElement<"u"&&k instanceof HTMLImageElement||typeof HTMLVideoElement<"u"&&k instanceof HTMLVideoElement||typeof ImageData<"u"&&k instanceof ImageData}var v=function(k,w){n.muls(k,w,255)};function T(k,w,R){var O=k.gl,j=O.getParameter(O.MAX_TEXTURE_SIZE);if(w<0||w>j||R<0||R>j)throw new Error("gl-texture2d: Invalid texture size");return k._shape=[w,R],k.bind(),O.texImage2D(O.TEXTURE_2D,0,k.format,w,R,0,k.format,k.type,null),k._mipLevels=[0],k}function u(k,w,R,O,j,V){this.gl=k,this.handle=w,this.format=j,this.type=V,this._shape=[R,O],this._mipLevels=[0],this._magFilter=k.NEAREST,this._minFilter=k.NEAREST,this._wrapS=k.CLAMP_TO_EDGE,this._wrapT=k.CLAMP_TO_EDGE,this._anisoSamples=1;var H=this,F=[this._wrapS,this._wrapT];Object.defineProperties(F,[{get:function(){return H._wrapS},set:function(W){return H.wrapS=W}},{get:function(){return H._wrapT},set:function(W){return H.wrapT=W}}]),this._wrapVector=F;var U=[this._shape[0],this._shape[1]];Object.defineProperties(U,[{get:function(){return H._shape[0]},set:function(W){retur
Line truncated
|
||||
`+n:""),this.stack=new Error().stack}e.prototype=new Error,e.prototype.name="GLError",e.prototype.constructor=e,t.exports=e},8902:function(t,e,r){var a=r(2478),n=r(3250)[3],o=0,i=1,l=2;t.exports=P;function f(M,E,A,h,p){this.a=M,this.b=E,this.idx=A,this.lowerIds=h,this.upperIds=p}function x(M,E,A,h){this.a=M,this.b=E,this.type=A,this.idx=h}function y(M,E){var A=M.a[0]-E.a[0]||M.a[1]-E.a[1]||M.type-E.type;return A||M.type!==o&&(A=n(M.a,M.b,E.b),A)?A:M.idx-E.idx}function v(M,E){return n(M.a,M.b,E)}function T(M,E,A,h,p){for(var k=a.lt(E,h,v),w=a.gt(E,h,v),R=k;R<w;++R){for(var O=E[R],j=O.lowerIds,V=j.length;V>1&&n(A[j[V-2]],A[j[V-1]],h)>0;)M.push([j[V-1],j[V-2],p]),V-=1;j.length=V,j.push(p);for(var H=O.upperIds,V=H.length;V>1&&n(A[H[V-2]],A[H[V-1]],h)<0;)M.push([H[V-2],H[V-1],p]),V-=1;H.length=V,H.push(p)}}function u(M,E){var A;return M.a[0]<E.a[0]?A=n(M.a,M.b,E.a):A=n(E.b,E.a,M.a),A||(E.b[0]<M.b[0]?A=n(M.a,M.b,E.b):A=n(E.b,E.a,M.b),A||M.idx-E.idx)}function b(M,E,A){var h=a.le(M,A,u),p=M[h],k=p.upperIds,w=k[k.length-1];p.upperIds=[w],M.splice(h+1,0,new f(A.a,A.b,A.idx,[w],k))}function _(M,E,A){var h=A.a;A.a=A.b,A.b=h;var p=a.eq(M,A,u),k=M[p],w=M[p-1];w.upperIds=k.upperIds,M.splice(p,1)}function P(M,E){for(var A=M.length,h=E.length,p=[],k=0;k<A;++k)p.push(new x(M[k],null,o,k));for(var k=0;k<h;++k){var w=E[k],R=M[w[0]],O=M[w[1]];R[0]<O[0]?p.push(new x(R,O,l,k),new x(O,R,i,k)):R[0]>O[0]&&p.push(new x(O,R,l,k),new x(R,O,i,k))}p.sort(y);for(var j=p[0].a[0]-(1+Math.abs(p[0].a[0]))*Math.pow(2,-52),V=[new f([j,1],[j,0],-1,[],[])],H=[],k=0,F=p.length;k<F;++k){var U=p[k],W=U.type;W===o?T(H,V,M,U.a,U.idx):W===l?b(V,M,U):_(V,M,U)}return H}},8954:function(t,e,r){t.exports=u;var a=r(3250),n=r(6803).Fw;function o(b,_,P){this.vertices=b,this.adjacent=_,this.boundary=P,this.lastVisited=-1}o.prototype.flip=function(){var b=this.vertices[0];this.vertices[0]=this.vertices[1],this.vertices[1]=b;var _=this.adjacent[0];this.adjacent[0]=this.adjacent[1],this.adjacent[1]=_};function i(b,_,P){this.vertices=b,this.cell=_,this.index=P}function l(b,_){return n(b.vertices,_.vertices)}function f(b){return function(){var _=this.tuple;return b.apply(this,_)}}function x(b){var _=a[b+1];return _||(_=a),f(_)}var y=[];function v(b,_,P){this.dimension=b,this.vertices=_,this.simplices=P,this.interior=P.filter(function(A){return!A.boundary}),this.tuple=new Array(b+1);for(var M=0;M<=b;++M)this.tuple[M]=this.vertices[M];var E=y[b];E||(E=y[b]=x(b)),this.orient=E}var T=v.prototype;T.handleBoundaryDegeneracy=function(b,_){var P=this.dimension,M=this.vertices.length-1,E=this.tuple,A=this.vertices,h=[b];for(b.lastVisited=-M;h.length>0;){b=h.pop();for(var p=b.adjacent,k=0;k<=P;++k){var w=p[k];if(!(!w.boundary||w.lastVisited<=-M)){for(var R=w.vertices,O=0;O<=P;++O){var j=R[O];j<0?E[O]=_:E[O]=A[j]}var V=this.orient();if(V>0)return w;w.lastVisited=-M,V===0&&h.push(w)}}}return null},T.walk=function(b,_){var P=this.vertices.length-1,M=this.dimension,E=this.vertices,A=this.tuple,h=_?this.interior.length*Math.random()|0:this.interior.length-1,p=this.interior[h];t:for(;!p.boundary;){for(var k=p.vertices,w=p.adjacent,R=0;R<=M;++R)A[R]=E[k[R]];p.lastVisited=P;for(var R=0;R<=M;++R){var O=w[R];if(!(O.lastVisited>=P)){var j=A[R];A[R]=b;var V=this.orient();if(A[R]=j,V<0){p=O;continue t}else O.boundary?O.lastVisited=-P:O.lastVisited=P}}return}return p},T.addPeaks=function(b,_){var P=this.vertices.length-1,M=this.dimension,E=this.vertices,A=this.tuple,h=this.interior,p=this.simplices,k=[_];_.lastVisited=P,_.vertices[_.vertices.indexOf(-1)]=P,_.boundary=!1,h.push(_);for(var w=[];k.length>0;){var _=k.pop(),R=_.vertices,O=_.adjacent,j=R.indexOf(P);if(!(j<0)){for(var V=0;V<=M;++V)if(V!==j){var H=O[V];if(!(!H.boundary||H.lastVisited>=P)){var F=H.vertices;if(H.lastVisited!==-P){for(var U=0,W=0;W<=M;++W)F[W]<0?(U=W,A[W]=b):A[W]=E[F[W]];var q=this.orient();if(q>0){F[U]=P,H.boundary=!1,h.push(H),k.push(H),H.lastVisited=P;continue}else H.lastVisited=-P}var J=H.adjacent,lt=R.slice(),yt=O.slice(),mt=new o(lt,yt,!0);p.push(mt);var st=J.indexOf(_);if(!(st<0)){J[st]=mt,yt[j]=H,lt[V]=-1,yt[V]=_,O[V]=mt,mt.flip();for(var W=0;W<=M;++W){var tt=lt[W];if(!(tt<0||tt===P)){for(var pt=new Array(M-1),rt=0,at=0;at<=M;++at){var vt=lt[at];vt<0||at===W||(pt[rt++]=vt)}w.push(new i(pt,mt,W))}}}}}}}w.sort(l);for(var V=0;V+1<w.length;V+=2){var it=w[V],Y=w[V+1],ft=it.index,ut=Y.index;ft<0||ut<0||(it.cell.adjacent[it.index]=Y.cell,Y.cell.adjacent[Y.index]=it.cell)}},T.insert=function(b,_){var P=this.vertices;P.push(b);var M=this.walk(b,_);if(M){for(var E=this.dimension,A=this.tuple,h=0;h<=E;++h){var p=M.vertices[h];p<0?A[h]=b:A[h]=P[p]}var k=this.orient(A);k<0||k===0&&(M=this.handleBoundaryDegeneracy(M,b),!M)||this.addPeaks(b,M)}},T.boundary=function(){for(var b=this.dimension,_=[],P=this.simplices,M=P.length,E=0;E<M;++E){var A=P[E];if(A.boundary){for(var h=new Array(b),p=A.vertices,k=0,w=0,R=0;R<=b;++R)p[R]>=0?h[k++]=p[R]:w=R&1;if(w===(b&1)){var O=h[0];h[0]=h[1],h[1]=O}_.push(h)}}return _};function u(b,_){v
Line truncated
|
||||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function o(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=H1(),l=_x(),f=NV(),x=fT(),y=Sd(),v=jV(),T=zg(),u=VS(),b=bx(),_=UV(),P=dT(),M=yb(),C=A;function A(k,w){var R=this;if(!(this instanceof A))return new A(k,w);typeof k=="function"?(w||(w={}),w.regl=k):(w=k,k=null),w&&w.length&&(w.positions=w),k=w.regl;var O=k._gl,j,V=[],H={},F=[],U=[null],W=[null],q=255,J=100;this.tooManyColors=_,j=k.texture({data:new Uint8Array(q*4),width:q,height:1,type:"uint8",format:"rgba",wrapS:"clamp",wrapT:"clamp",mag:"nearest",min:"nearest"}),y(this,{regl:k,gl:O,groups:F,markerCache:W,markerTextures:U,palette:V,paletteIds:H,paletteTexture:j,maxColors:q,maxSize:J,canvas:O.canvas}),this.update(w);var lt={uniforms:{constPointSize:!!w.constPointSize,opacity:k.prop("opacity"),paletteSize:function(st,tt){return[R.tooManyColors?0:q,j.height]},pixelRatio:k.context("pixelRatio"),scale:k.prop("scale"),scaleFract:k.prop("scaleFract"),translate:k.prop("translate"),translateFract:k.prop("translateFract"),markerTexture:k.prop("markerTexture"),paletteTexture:j},attributes:{x:function(st,tt){return tt.xAttr||{buffer:tt.positionBuffer,stride:8,offset:0}},y:function(st,tt){return tt.yAttr||{buffer:tt.positionBuffer,stride:8,offset:4}},xFract:function(st,tt){return tt.xAttr?{constant:[0,0]}:{buffer:tt.positionFractBuffer,stride:8,offset:0}},yFract:function(st,tt){return tt.yAttr?{constant:[0,0]}:{buffer:tt.positionFractBuffer,stride:8,offset:4}},size:function(st,tt){return tt.size.length?{buffer:tt.sizeBuffer,stride:2,offset:0}:{constant:[Math.round(tt.size*255/R.maxSize)]}},borderSize:function(st,tt){return tt.borderSize.length?{buffer:tt.sizeBuffer,stride:2,offset:1}:{constant:[Math.round(tt.borderSize*255/R.maxSize)]}},colorId:function(st,tt){return tt.color.length?{buffer:tt.colorBuffer,stride:R.tooManyColors?8:4,offset:0}:{constant:R.tooManyColors?V.slice(tt.color*4,tt.color*4+4):[tt.color]}},borderColorId:function(st,tt){return tt.borderColor.length?{buffer:tt.colorBuffer,stride:R.tooManyColors?8:4,offset:R.tooManyColors?4:2}:{constant:R.tooManyColors?V.slice(tt.borderColor*4,tt.borderColor*4+4):[tt.borderColor]}},isActive:function(st,tt){return tt.activation===!0?{constant:[1]}:tt.activation?tt.activation:{constant:[0]}}},blend:{enable:!0,color:[0,0,0,1],func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:"one minus dst alpha",dstAlpha:"one"}},scissor:{enable:!0,box:k.prop("viewport")},viewport:k.prop("viewport"),stencil:{enable:!1},depth:{enable:!1},elements:k.prop("elements"),count:k.prop("count"),offset:k.prop("offset"),primitive:"points"},yt=y({},lt);yt.frag=v([`precision highp float;
|
||||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=H1(),l=_x(),f=NV(),x=pT(),y=Sd(),v=jV(),T=Ig(),u=VS(),b=bx(),_=UV(),P=mT(),M=xb(),E=A;function A(k,w){var R=this;if(!(this instanceof A))return new A(k,w);typeof k=="function"?(w||(w={}),w.regl=k):(w=k,k=null),w&&w.length&&(w.positions=w),k=w.regl;var O=k._gl,j,V=[],H={},F=[],U=[null],W=[null],q=255,J=100;this.tooManyColors=_,j=k.texture({data:new Uint8Array(q*4),width:q,height:1,type:"uint8",format:"rgba",wrapS:"clamp",wrapT:"clamp",mag:"nearest",min:"nearest"}),y(this,{regl:k,gl:O,groups:F,markerCache:W,markerTextures:U,palette:V,paletteIds:H,paletteTexture:j,maxColors:q,maxSize:J,canvas:O.canvas}),this.update(w);var lt={uniforms:{constPointSize:!!w.constPointSize,opacity:k.prop("opacity"),paletteSize:function(st,tt){return[R.tooManyColors?0:q,j.height]},pixelRatio:k.context("pixelRatio"),scale:k.prop("scale"),scaleFract:k.prop("scaleFract"),translate:k.prop("translate"),translateFract:k.prop("translateFract"),markerTexture:k.prop("markerTexture"),paletteTexture:j},attributes:{x:function(st,tt){return tt.xAttr||{buffer:tt.positionBuffer,stride:8,offset:0}},y:function(st,tt){return tt.yAttr||{buffer:tt.positionBuffer,stride:8,offset:4}},xFract:function(st,tt){return tt.xAttr?{constant:[0,0]}:{buffer:tt.positionFractBuffer,stride:8,offset:0}},yFract:function(st,tt){return tt.yAttr?{constant:[0,0]}:{buffer:tt.positionFractBuffer,stride:8,offset:4}},size:function(st,tt){return tt.size.length?{buffer:tt.sizeBuffer,stride:2,offset:0}:{constant:[Math.round(tt.size*255/R.maxSize)]}},borderSize:function(st,tt){return tt.borderSize.length?{buffer:tt.sizeBuffer,stride:2,offset:1}:{constant:[Math.round(tt.borderSize*255/R.maxSize)]}},colorId:function(st,tt){return tt.color.length?{buffer:tt.colorBuffer,stride:R.tooManyColors?8:4,offset:0}:{constant:R.tooManyColors?V.slice(tt.color*4,tt.color*4+4):[tt.color]}},borderColorId:function(st,tt){return tt.borderColor.length?{buffer:tt.colorBuffer,stride:R.tooManyColors?8:4,offset:R.tooManyColors?4:2}:{constant:R.tooManyColors?V.slice(tt.borderColor*4,tt.borderColor*4+4):[tt.borderColor]}},isActive:function(st,tt){return tt.activation===!0?{constant:[1]}:tt.activation?tt.activation:{constant:[0]}}},blend:{enable:!0,color:[0,0,0,1],func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:"one minus dst alpha",dstAlpha:"one"}},scissor:{enable:!0,box:k.prop("viewport")},viewport:k.prop("viewport"),stencil:{enable:!1},depth:{enable:!1},elements:k.prop("elements"),count:k.prop("count"),offset:k.prop("offset"),primitive:"points"},yt=y({},lt);yt.frag=v([`precision highp float;
|
||||
#define GLSLIFY 1
|
||||
|
||||
uniform float opacity;
|
||||
@@ -2326,8 +2326,8 @@ void main() {
|
||||
fragBorderColor = borderColor.a == 0. || borderSize == 0. ? vec4(color.rgb, 0.) : borderColor;
|
||||
fragWidth = 1. / gl_PointSize;
|
||||
}
|
||||
`]),_&&(mt.frag=mt.frag.replace("smoothstep","smoothStep"),yt.frag=yt.frag.replace("smoothstep","smoothStep")),this.drawCircle=k(mt)}A.defaults={color:"black",borderColor:"transparent",borderSize:0,size:12,opacity:1,marker:void 0,viewport:null,range:null,pixelSize:null,count:0,offset:0,bounds:null,positions:[],snap:1e4},A.prototype.render=function(){return arguments.length&&this.update.apply(this,arguments),this.draw(),this},A.prototype.draw=function(){for(var k=this,w=arguments.length,R=new Array(w),O=0;O<w;O++)R[O]=arguments[O];var j=this.groups;if(R.length===1&&Array.isArray(R[0])&&(R[0][0]===null||Array.isArray(R[0][0]))&&(R=R[0]),this.regl._refresh(),R.length)for(var V=0;V<R.length;V++)this.drawItem(V,R[V]);else j.forEach(function(H,F){k.drawItem(F)});return this},A.prototype.drawItem=function(k,w){var R=this.groups,O=R[k];if(typeof w=="number"&&(k=w,O=R[w],w=null),!!(O&&O.count&&O.opacity)){O.activation[0]&&this.drawCircle(this.getMarkerDrawOptions(0,O,w));for(var j=[],V=1;V<O.activation.length;V++)!O.activation[V]||O.activation[V]!==!0&&!O.activation[V].data.length||j.push.apply(j,I(this.getMarkerDrawOptions(V,O,w)));j.length&&this.drawMarker(j)}},A.prototype.getMarkerDrawOptions=function(k,w,R){var O=w.range,j=w.tree,V=w.viewport,H=w.activation,F=w.selectionBuffer,U=w.count;if(this.regl,!j)return R?[y({},w,{markerTexture:this.markerTextures[k],activation:H[k],count:R.length,elements:R,offset:0})]:[y({},w,{markerTexture:this.markerTextures[k],activation:H[k],offset:0})];var W=[],q=j.range(O,{lod:!0,px:[(O[2]-O[0])/V.width,(O[3]-O[1])/V.height]});if(R){for(var J=H[k],lt=J.data,yt=new Uint8Array(U),mt=0;mt<R.length;mt++){var st=R[mt];yt[st]=lt?lt[st]:1}F.subdata(yt)}for(var tt=q.length;tt--;){var pt=g(q[tt],2),rt=pt[0],at=pt[1];W.push(y({},w,{markerTexture:this.markerTextures[k],activation:R?F:H[k],offset:rt,count:at-rt}))}return W},A.prototype.update=function(){for(var k=this,w=arguments.length,R=new Array(w),O=0;O<w;O++)R[O]=arguments[O];if(R.length){R.length===1&&Array.isArray(R[0])&&(R=R[0]);var j=this.groups,V=this.gl,H=this.regl,F=this.maxSize,U=this.maxColors,W=this.palette;this.groups=j=R.map(function(q,J){var lt=j[J];if(q===void 0)return lt;q===null?q={positions:null}:typeof q=="function"?q={ondraw:q}:typeof q[0]=="number"&&(q={positions:q}),q=T(q,{positions:"positions data points",snap:"snap cluster lod tree",size:"sizes size radius",borderSize:"borderSizes borderSize border-size bordersize borderWidth borderWidths border-width borderwidth stroke-width strokeWidth strokewidth outline",color:"colors color fill fill-color fillColor",borderColor:"borderColors borderColor stroke stroke-color strokeColor",marker:"markers marker shape",range:"range dataBox databox",viewport:"viewport viewPort viewBox viewbox",opacity:"opacity alpha transparency",bounds:"bound bounds boundaries limits",tooManyColors:"tooManyColors palette paletteMode optimizePalette enablePalette"}),q.positions===null&&(q.positions=[]),q.tooManyColors!=null&&(k.tooManyColors=q.tooManyColors),lt||(j[J]=lt={id:J,scale:null,translate:null,scaleFract:null,translateFract:null,activation:[],selectionBuffer:H.buffer({data:new Uint8Array(0),usage:"stream",type:"uint8"}),sizeBuffer:H.buffer({data:new Uint8Array(0),usage:"dynamic",type:"uint8"}),colorBuffer:H.buffer({data:new Uint8Array(0),usage:"dynamic",type:"uint8"}),positionBuffer:H.buffer({data:new Uint8Array(0),usage:"dynamic",type:"float"}),positionFractBuffer:H.buffer({data:new Uint8Array(0),usage:"dynamic",type:"float"})},q=y({},A.defaults,q)),q.positions&&!("marker"in q)&&(q.marker=lt.marker,delete lt.marker),q.marker&&!("positions"in q)&&(q.positions=lt.positions,delete lt.positions);var yt=0,mt=0;if(u(lt,q,[{snap:!0,size:function(de,me){return de==null&&(de=A.defaults.size),yt+=de&&de.length?1:0,de},borderSize:function(de,me){return de==null&&(de=A.defaults.borderSize),yt+=de&&de.length?1:0,de},opacity:parseFloat,color:function(de,me){return de==null&&(de=A.defaults.color),de=k.updateColor(de),mt++,de},borderColor:function(de,me){return de==null&&(de=A.defaults.borderColor),de=k.updateColor(de),mt++,de},bounds:function(de,me,ue){return"range"in ue||(ue.range=null),de},positions:function(de,me,ue){var Tt=me.snap,Lt=me.positionBuffer,Mt=me.positionFractBuffer,te=me.selectionBuffer;if(de.x||de.y)return de.x.length?me.xAttr={buffer:H.buffer(de.x),offset:0,stride:4,count:de.x.length}:me.xAttr={buffer:de.x.buffer,offset:de.x.offset*4||0,stride:(de.x.stride||1)*4,count:de.x.count},de.y.length?me.yAttr={buffer:H.buffer(de.y),offset:0,stride:4,count:de.y.length}:me.yAttr={buffer:de.y.buffer,offset:de.y.offset*4||0,stride:(de.y.stride||1)*4,count:de.y.count},me.count=Math.max(me.xAttr.count,me.yAttr.count),de;de=b(de,"float64");var ye=me.count=Math.floor(de.length/2),le=me.bounds=ye?l(de,2):null;if(!ue.range&&!me.range&&(delete me.range,ue.range=le),!ue.marker&&!me.marker&&(delete me.marker,ue.marker=null),Tt&&(Tt===!0||ye>Tt)?me.tree=x(de,{bounds:le}):Tt&&Tt.length&&(me.tree=Tt),me.tree){
Line truncated
|
||||
`:return"\\n";case"\r":return"\\r";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw new Error("Unexpected character")}}),S)}}),XS=Dt((Q,Z)=>{var c=kx(),g=mT(),I=dH(),S=mH(),t=function(e,r){return e.replace("%v",S(r))};Z.exports=function(e,r,a){if(!g(a))throw new TypeError(t(r,e));if(!c(e)){if("default"in a)return a.default;if(a.isOptional)return null}var n=I(a.errorMessage);throw c(n)||(n=r),new TypeError(t(n,e))}}),gH=Dt((Q,Z)=>{var c=XS(),g=kx();Z.exports=function(I){return g(I)?I:c(I,"Cannot use %v",arguments[1])}}),vH=Dt((Q,Z)=>{var c=XS(),g=ZS();Z.exports=function(I){return g(I)?I:c(I,"%v is not a plain function",arguments[1])}}),yH=Dt((Q,Z)=>{Z.exports=function(){var c=Array.from,g,I;return typeof c!="function"?!1:(g=["raz","dwa"],I=c(g),!!(I&&I!==g&&I[1]==="dwa"))}}),xH=Dt((Q,Z)=>{var c=Object.prototype.toString,g=RegExp.prototype.test.bind(/^[object [A-Za-z0-9]*Function]$/);Z.exports=function(I){return typeof I=="function"&&g(c.call(I))}}),_H=Dt((Q,Z)=>{Z.exports=function(){var c=Math.sign;return typeof c!="function"?!1:c(10)===1&&c(-20)===-1}}),bH=Dt((Q,Z)=>{Z.exports=function(c){return c=Number(c),isNaN(c)||c===0?c:c>0?1:-1}}),wH=Dt((Q,Z)=>{Z.exports=_H()()?Math.sign:bH()}),kH=Dt((Q,Z)=>{var c=wH(),g=Math.abs,I=Math.floor;Z.exports=function(S){return isNaN(S)?0:(S=Number(S),S===0||!isFinite(S)?S:c(S)*I(g(S)))}}),TH=Dt((Q,Z)=>{var c=kH(),g=Math.max;Z.exports=function(I){return g(0,c(I))}}),AH=Dt((Q,Z)=>{var c=Y1().iterator,g=M3(),I=xH(),S=TH(),t=xb(),e=Ev(),r=G1(),a=S3(),n=Array.isArray,o=Function.prototype.call,i={configurable:!0,enumerable:!0,writable:!0,value:null},l=Object.defineProperty;Z.exports=function(f){var x=arguments[1],y=arguments[2],v,T,u,b,_,P,M,C,A,h;if(f=Object(e(f)),r(x)&&t(x),!this||this===Array||!I(this)){if(!x){if(g(f))return _=f.length,_!==1?Array.apply(null,f):(b=new Array(1),b[0]=f[0],b);if(n(f)){for(b=new Array(_=f.length),T=0;T<_;++T)b[T]=f[T];return b}}b=[]}else v=this;if(!n(f)){if((A=f[c])!==void 0){for(M=t(A).call(f),v&&(b=new v),C=M.next(),T=0;!C.done;)h=x?o.call(x,y,C.value,T):C.value,v?(i.value=h,l(b,T,i)):b[T]=h,C=M.next(),++T;_=T}else if(a(f)){for(_=f.length,v&&(b=new v),T=0,u=0;T<_;++T)h=f[T],T+1<_&&(P=h.charCodeAt(0),P>=55296&&P<=56319&&(h+=f[++T])),h=x?o.call(x,y,h,u):h,v?(i.value=h,l(b,u,i)):b[u]=h,++u;_=u}}if(_===void 0)for(_=S(f.length),v&&(b=new v(_)),T=0;T<_;++T)h=x?o.call(x,y,f[T],T):f[T],v?(i.value=h,l(b,T,i)):b[T]=h;return v&&(i.value=null,b.length=_),b}}),MH=Dt((Q,Z)=>{Z.exports=yH()()?Array.from:AH()}),SH=Dt((Q,Z)=>{var c=MH(),g=gT(),I=Ev();Z.exports=function(S){var t=Object(I(S)),e=arguments[1],r=Object(arguments[2]);if(t!==S&&!e)return t;var a={};return e?c(e,function(n){(r.ensure||n in S)&&(a[n]=S[n])}):g(a,S),a}}),EH=Dt((Q,Z)=>{var c=xb(),g=Ev(),I=Function.prototype.bind,S=Function.prototype.call,t=Object.keys,e=Object.prototype.propertyIsEnumerable;Z.exports=function(r,a){return function(n,o){var i,l=arguments[2],f=arguments[3];return n=Object(g(n)),c(o),i=t(n),f&&i.sort(typeof f=="function"?I.call(f,n):void 0),typeof r!="function"&&(r=i[r]),S.call(r,i,function(x,y){return e.call(n,x)?S.call(o,l,n[x],x,n,y):a})}}}),CH=Dt((Q,Z)=>{Z.exports=EH()("forEach")}),LH=Dt((Q,Z)=>{var c=xb(),g=CH(),I=Function.prototype.call;Z.exports=function(S,t){var e={},r=arguments[2];return c(t),g(S,function(a,n,o,i){e[n]=I.call(t,r,a,n,o,i)}),e}}),PH=Dt((Q,Z)=>{var c=kx(),g=gH(),I=vH(),S=SH(),t=GS(),e=LH(),r=Function.prototype.bind,a=Object.defineProperty,n=Object.prototype.hasOwnProperty,o;o=function(i,l,f){var x=g(l)&&I(l.value),y;return y=S(l),delete y.writable,delete y.value,y.get=function(){return!f.overwriteDefinition&&n.call(this,i)?x:(l.value=r.call(x,f.resolveContext?f.resolveContext(this):this),a(this,i,l),this[i])},y},Z.exports=function(i){var l=t(arguments[1]);return c(l.resolveContext)&&I(l.resolveContext),e(i,function(f,x){return o(x,f,l)})}}),JS=Dt((Q,Z)=>{var c=fH(),g=gT(),I=xb(),S=Ev(),t=Cv(),e=PH(),r=Y1(),a=Object.defineProperty,n=Object.defineProperties,o;Z.exports=o=function(i,l){if(!(this instanceof o))throw new TypeError("Constructor requires 'new'");n(this,{__list__:t("w",S(i)),__context__:t("w",l),__nextIndex__:t("w",0)}),l&&(I(l.on),l.on("_add",this._onAdd),l.on("_delete",this._onDelete),l.on("_clear",this._onClear))},delete o.prototype.constructor,n(o.prototype,g({_next:t(function(){var i;if(this.__list__){if(this.__redo__&&(i=this.__redo__.shift(),i!==void 0))return i;if(this.__nextIndex__<this.__list__.length)return this.__nextIndex__++;this._unBind()}}),next:t(function(){return this._createResult(this._next())}),_createResult:t(function(i){return i===void 0?{done:!0,value:void 0}:{done:!1,value:this._resolve(i)}}),_resolve:t(function(i){return this.__list__[i]}),_unBind:t(function(){this.__list__=null,delete this.__redo__,this.__context__&&(this.__context__.off("_add",this._onAdd),this.__context__.off("_delete",this._onDelete),this.__context__.off("_clear",this._onClear),this.__context__=null)}),toString:t(function(){
Line truncated
|
||||
`]),_&&(mt.frag=mt.frag.replace("smoothstep","smoothStep"),yt.frag=yt.frag.replace("smoothstep","smoothStep")),this.drawCircle=k(mt)}A.defaults={color:"black",borderColor:"transparent",borderSize:0,size:12,opacity:1,marker:void 0,viewport:null,range:null,pixelSize:null,count:0,offset:0,bounds:null,positions:[],snap:1e4},A.prototype.render=function(){return arguments.length&&this.update.apply(this,arguments),this.draw(),this},A.prototype.draw=function(){for(var k=this,w=arguments.length,R=new Array(w),O=0;O<w;O++)R[O]=arguments[O];var j=this.groups;if(R.length===1&&Array.isArray(R[0])&&(R[0][0]===null||Array.isArray(R[0][0]))&&(R=R[0]),this.regl._refresh(),R.length)for(var V=0;V<R.length;V++)this.drawItem(V,R[V]);else j.forEach(function(H,F){k.drawItem(F)});return this},A.prototype.drawItem=function(k,w){var R=this.groups,O=R[k];if(typeof w=="number"&&(k=w,O=R[w],w=null),!!(O&&O.count&&O.opacity)){O.activation[0]&&this.drawCircle(this.getMarkerDrawOptions(0,O,w));for(var j=[],V=1;V<O.activation.length;V++)!O.activation[V]||O.activation[V]!==!0&&!O.activation[V].data.length||j.push.apply(j,z(this.getMarkerDrawOptions(V,O,w)));j.length&&this.drawMarker(j)}},A.prototype.getMarkerDrawOptions=function(k,w,R){var O=w.range,j=w.tree,V=w.viewport,H=w.activation,F=w.selectionBuffer,U=w.count;if(this.regl,!j)return R?[y({},w,{markerTexture:this.markerTextures[k],activation:H[k],count:R.length,elements:R,offset:0})]:[y({},w,{markerTexture:this.markerTextures[k],activation:H[k],offset:0})];var W=[],q=j.range(O,{lod:!0,px:[(O[2]-O[0])/V.width,(O[3]-O[1])/V.height]});if(R){for(var J=H[k],lt=J.data,yt=new Uint8Array(U),mt=0;mt<R.length;mt++){var st=R[mt];yt[st]=lt?lt[st]:1}F.subdata(yt)}for(var tt=q.length;tt--;){var pt=g(q[tt],2),rt=pt[0],at=pt[1];W.push(y({},w,{markerTexture:this.markerTextures[k],activation:R?F:H[k],offset:rt,count:at-rt}))}return W},A.prototype.update=function(){for(var k=this,w=arguments.length,R=new Array(w),O=0;O<w;O++)R[O]=arguments[O];if(R.length){R.length===1&&Array.isArray(R[0])&&(R=R[0]);var j=this.groups,V=this.gl,H=this.regl,F=this.maxSize,U=this.maxColors,W=this.palette;this.groups=j=R.map(function(q,J){var lt=j[J];if(q===void 0)return lt;q===null?q={positions:null}:typeof q=="function"?q={ondraw:q}:typeof q[0]=="number"&&(q={positions:q}),q=T(q,{positions:"positions data points",snap:"snap cluster lod tree",size:"sizes size radius",borderSize:"borderSizes borderSize border-size bordersize borderWidth borderWidths border-width borderwidth stroke-width strokeWidth strokewidth outline",color:"colors color fill fill-color fillColor",borderColor:"borderColors borderColor stroke stroke-color strokeColor",marker:"markers marker shape",range:"range dataBox databox",viewport:"viewport viewPort viewBox viewbox",opacity:"opacity alpha transparency",bounds:"bound bounds boundaries limits",tooManyColors:"tooManyColors palette paletteMode optimizePalette enablePalette"}),q.positions===null&&(q.positions=[]),q.tooManyColors!=null&&(k.tooManyColors=q.tooManyColors),lt||(j[J]=lt={id:J,scale:null,translate:null,scaleFract:null,translateFract:null,activation:[],selectionBuffer:H.buffer({data:new Uint8Array(0),usage:"stream",type:"uint8"}),sizeBuffer:H.buffer({data:new Uint8Array(0),usage:"dynamic",type:"uint8"}),colorBuffer:H.buffer({data:new Uint8Array(0),usage:"dynamic",type:"uint8"}),positionBuffer:H.buffer({data:new Uint8Array(0),usage:"dynamic",type:"float"}),positionFractBuffer:H.buffer({data:new Uint8Array(0),usage:"dynamic",type:"float"})},q=y({},A.defaults,q)),q.positions&&!("marker"in q)&&(q.marker=lt.marker,delete lt.marker),q.marker&&!("positions"in q)&&(q.positions=lt.positions,delete lt.positions);var yt=0,mt=0;if(u(lt,q,[{snap:!0,size:function(de,me){return de==null&&(de=A.defaults.size),yt+=de&&de.length?1:0,de},borderSize:function(de,me){return de==null&&(de=A.defaults.borderSize),yt+=de&&de.length?1:0,de},opacity:parseFloat,color:function(de,me){return de==null&&(de=A.defaults.color),de=k.updateColor(de),mt++,de},borderColor:function(de,me){return de==null&&(de=A.defaults.borderColor),de=k.updateColor(de),mt++,de},bounds:function(de,me,ue){return"range"in ue||(ue.range=null),de},positions:function(de,me,ue){var Tt=me.snap,Lt=me.positionBuffer,Mt=me.positionFractBuffer,te=me.selectionBuffer;if(de.x||de.y)return de.x.length?me.xAttr={buffer:H.buffer(de.x),offset:0,stride:4,count:de.x.length}:me.xAttr={buffer:de.x.buffer,offset:de.x.offset*4||0,stride:(de.x.stride||1)*4,count:de.x.count},de.y.length?me.yAttr={buffer:H.buffer(de.y),offset:0,stride:4,count:de.y.length}:me.yAttr={buffer:de.y.buffer,offset:de.y.offset*4||0,stride:(de.y.stride||1)*4,count:de.y.count},me.count=Math.max(me.xAttr.count,me.yAttr.count),de;de=b(de,"float64");var ye=me.count=Math.floor(de.length/2),le=me.bounds=ye?l(de,2):null;if(!ue.range&&!me.range&&(delete me.range,ue.range=le),!ue.marker&&!me.marker&&(delete me.marker,ue.marker=null),Tt&&(Tt===!0||ye>Tt)?me.tree=x(de,{bounds:le}):Tt&&Tt.length&&(me.tree=Tt),me.tree){
Line truncated
|
||||
`:return"\\n";case"\r":return"\\r";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw new Error("Unexpected character")}}),S)}}),XS=Dt((Q,Z)=>{var c=kx(),g=vT(),z=dH(),S=mH(),t=function(e,r){return e.replace("%v",S(r))};Z.exports=function(e,r,a){if(!g(a))throw new TypeError(t(r,e));if(!c(e)){if("default"in a)return a.default;if(a.isOptional)return null}var n=z(a.errorMessage);throw c(n)||(n=r),new TypeError(t(n,e))}}),gH=Dt((Q,Z)=>{var c=XS(),g=kx();Z.exports=function(z){return g(z)?z:c(z,"Cannot use %v",arguments[1])}}),vH=Dt((Q,Z)=>{var c=XS(),g=ZS();Z.exports=function(z){return g(z)?z:c(z,"%v is not a plain function",arguments[1])}}),yH=Dt((Q,Z)=>{Z.exports=function(){var c=Array.from,g,z;return typeof c!="function"?!1:(g=["raz","dwa"],z=c(g),!!(z&&z!==g&&z[1]==="dwa"))}}),xH=Dt((Q,Z)=>{var c=Object.prototype.toString,g=RegExp.prototype.test.bind(/^[object [A-Za-z0-9]*Function]$/);Z.exports=function(z){return typeof z=="function"&&g(c.call(z))}}),_H=Dt((Q,Z)=>{Z.exports=function(){var c=Math.sign;return typeof c!="function"?!1:c(10)===1&&c(-20)===-1}}),bH=Dt((Q,Z)=>{Z.exports=function(c){return c=Number(c),isNaN(c)||c===0?c:c>0?1:-1}}),wH=Dt((Q,Z)=>{Z.exports=_H()()?Math.sign:bH()}),kH=Dt((Q,Z)=>{var c=wH(),g=Math.abs,z=Math.floor;Z.exports=function(S){return isNaN(S)?0:(S=Number(S),S===0||!isFinite(S)?S:c(S)*z(g(S)))}}),TH=Dt((Q,Z)=>{var c=kH(),g=Math.max;Z.exports=function(z){return g(0,c(z))}}),AH=Dt((Q,Z)=>{var c=Y1().iterator,g=S3(),z=xH(),S=TH(),t=_b(),e=Cv(),r=G1(),a=C3(),n=Array.isArray,o=Function.prototype.call,i={configurable:!0,enumerable:!0,writable:!0,value:null},l=Object.defineProperty;Z.exports=function(f){var x=arguments[1],y=arguments[2],v,T,u,b,_,P,M,E,A,h;if(f=Object(e(f)),r(x)&&t(x),!this||this===Array||!z(this)){if(!x){if(g(f))return _=f.length,_!==1?Array.apply(null,f):(b=new Array(1),b[0]=f[0],b);if(n(f)){for(b=new Array(_=f.length),T=0;T<_;++T)b[T]=f[T];return b}}b=[]}else v=this;if(!n(f)){if((A=f[c])!==void 0){for(M=t(A).call(f),v&&(b=new v),E=M.next(),T=0;!E.done;)h=x?o.call(x,y,E.value,T):E.value,v?(i.value=h,l(b,T,i)):b[T]=h,E=M.next(),++T;_=T}else if(a(f)){for(_=f.length,v&&(b=new v),T=0,u=0;T<_;++T)h=f[T],T+1<_&&(P=h.charCodeAt(0),P>=55296&&P<=56319&&(h+=f[++T])),h=x?o.call(x,y,h,u):h,v?(i.value=h,l(b,u,i)):b[u]=h,++u;_=u}}if(_===void 0)for(_=S(f.length),v&&(b=new v(_)),T=0;T<_;++T)h=x?o.call(x,y,f[T],T):f[T],v?(i.value=h,l(b,T,i)):b[T]=h;return v&&(i.value=null,b.length=_),b}}),MH=Dt((Q,Z)=>{Z.exports=yH()()?Array.from:AH()}),SH=Dt((Q,Z)=>{var c=MH(),g=yT(),z=Cv();Z.exports=function(S){var t=Object(z(S)),e=arguments[1],r=Object(arguments[2]);if(t!==S&&!e)return t;var a={};return e?c(e,function(n){(r.ensure||n in S)&&(a[n]=S[n])}):g(a,S),a}}),CH=Dt((Q,Z)=>{var c=_b(),g=Cv(),z=Function.prototype.bind,S=Function.prototype.call,t=Object.keys,e=Object.prototype.propertyIsEnumerable;Z.exports=function(r,a){return function(n,o){var i,l=arguments[2],f=arguments[3];return n=Object(g(n)),c(o),i=t(n),f&&i.sort(typeof f=="function"?z.call(f,n):void 0),typeof r!="function"&&(r=i[r]),S.call(r,i,function(x,y){return e.call(n,x)?S.call(o,l,n[x],x,n,y):a})}}}),EH=Dt((Q,Z)=>{Z.exports=CH()("forEach")}),LH=Dt((Q,Z)=>{var c=_b(),g=EH(),z=Function.prototype.call;Z.exports=function(S,t){var e={},r=arguments[2];return c(t),g(S,function(a,n,o,i){e[n]=z.call(t,r,a,n,o,i)}),e}}),PH=Dt((Q,Z)=>{var c=kx(),g=gH(),z=vH(),S=SH(),t=GS(),e=LH(),r=Function.prototype.bind,a=Object.defineProperty,n=Object.prototype.hasOwnProperty,o;o=function(i,l,f){var x=g(l)&&z(l.value),y;return y=S(l),delete y.writable,delete y.value,y.get=function(){return!f.overwriteDefinition&&n.call(this,i)?x:(l.value=r.call(x,f.resolveContext?f.resolveContext(this):this),a(this,i,l),this[i])},y},Z.exports=function(i){var l=t(arguments[1]);return c(l.resolveContext)&&z(l.resolveContext),e(i,function(f,x){return o(x,f,l)})}}),JS=Dt((Q,Z)=>{var c=fH(),g=yT(),z=_b(),S=Cv(),t=Ev(),e=PH(),r=Y1(),a=Object.defineProperty,n=Object.defineProperties,o;Z.exports=o=function(i,l){if(!(this instanceof o))throw new TypeError("Constructor requires 'new'");n(this,{__list__:t("w",S(i)),__context__:t("w",l),__nextIndex__:t("w",0)}),l&&(z(l.on),l.on("_add",this._onAdd),l.on("_delete",this._onDelete),l.on("_clear",this._onClear))},delete o.prototype.constructor,n(o.prototype,g({_next:t(function(){var i;if(this.__list__){if(this.__redo__&&(i=this.__redo__.shift(),i!==void 0))return i;if(this.__nextIndex__<this.__list__.length)return this.__nextIndex__++;this._unBind()}}),next:t(function(){return this._createResult(this._next())}),_createResult:t(function(i){return i===void 0?{done:!0,value:void 0}:{done:!1,value:this._resolve(i)}}),_resolve:t(function(i){return this.__list__[i]}),_unBind:t(function(){this.__list__=null,delete this.__redo__,this.__context__&&(this.__context__.off("_add",this._onAdd),this.__context__.off("_delete",this._onDelete),this.__context__.off("_clear",this._onClear),this.__context__=null)}),toString:t(function(){
Line truncated
|
||||
precision highp float;
|
||||
|
||||
attribute vec2 aCoord, bCoord, aCoordFract, bCoordFract;
|
||||
@@ -2703,7 +2703,7 @@ void main() {
|
||||
gl_FragColor = fragColor;
|
||||
gl_FragColor.a *= alpha * opacity * dash;
|
||||
}
|
||||
`;Z.exports=b;function b(_,P){if(!(this instanceof b))return new b(_,P);if(typeof _=="function"?(P||(P={}),P.regl=_):P=_,P.length&&(P.positions=P),_=P.regl,!_.hasExtension("ANGLE_instanced_arrays"))throw Error("regl-error2d: `ANGLE_instanced_arrays` extension should be enabled");this.gl=_._gl,this.regl=_,this.passes=[],this.shaders=b.shaders.has(_)?b.shaders.get(_):b.shaders.set(_,b.createShaders(_)).get(_),this.update(P)}b.dashMult=2,b.maxPatternLength=256,b.precisionThreshold=3e6,b.maxPoints=1e4,b.maxLines=2048,b.shaders=new o,b.createShaders=function(_){let P=_.buffer({usage:"static",type:"float",data:[0,1,0,0,1,1,1,0]}),M={primitive:"triangle strip",instances:_.prop("count"),count:4,offset:0,uniforms:{miterMode:(h,p)=>p.join==="round"?2:1,miterLimit:_.prop("miterLimit"),scale:_.prop("scale"),scaleFract:_.prop("scaleFract"),translateFract:_.prop("translateFract"),translate:_.prop("translate"),thickness:_.prop("thickness"),dashTexture:_.prop("dashTexture"),opacity:_.prop("opacity"),pixelRatio:_.context("pixelRatio"),id:_.prop("id"),dashLength:_.prop("dashLength"),viewport:(h,p)=>[p.viewport.x,p.viewport.y,h.viewportWidth,h.viewportHeight],depth:_.prop("depth")},blend:{enable:!0,color:[0,0,0,0],equation:{rgb:"add",alpha:"add"},func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:"one minus dst alpha",dstAlpha:"one"}},depth:{enable:(h,p)=>!p.overlay},stencil:{enable:!1},scissor:{enable:!0,box:_.prop("viewport")},viewport:_.prop("viewport")},C=_(I({vert:f,frag:x,attributes:{lineEnd:{buffer:P,divisor:0,stride:8,offset:0},lineTop:{buffer:P,divisor:0,stride:8,offset:4},aCoord:{buffer:_.prop("positionBuffer"),stride:8,offset:8,divisor:1},bCoord:{buffer:_.prop("positionBuffer"),stride:8,offset:16,divisor:1},aCoordFract:{buffer:_.prop("positionFractBuffer"),stride:8,offset:8,divisor:1},bCoordFract:{buffer:_.prop("positionFractBuffer"),stride:8,offset:16,divisor:1},color:{buffer:_.prop("colorBuffer"),stride:4,offset:0,divisor:1}}},M)),A;try{A=_(I({cull:{enable:!0,face:"back"},vert:T,frag:u,attributes:{lineEnd:{buffer:P,divisor:0,stride:8,offset:0},lineTop:{buffer:P,divisor:0,stride:8,offset:4},aColor:{buffer:_.prop("colorBuffer"),stride:4,offset:0,divisor:1},bColor:{buffer:_.prop("colorBuffer"),stride:4,offset:4,divisor:1},prevCoord:{buffer:_.prop("positionBuffer"),stride:8,offset:0,divisor:1},aCoord:{buffer:_.prop("positionBuffer"),stride:8,offset:8,divisor:1},bCoord:{buffer:_.prop("positionBuffer"),stride:8,offset:16,divisor:1},nextCoord:{buffer:_.prop("positionBuffer"),stride:8,offset:24,divisor:1}}},M))}catch{A=C}return{fill:_({primitive:"triangle",elements:(h,p)=>p.triangles,offset:0,vert:y,frag:v,uniforms:{scale:_.prop("scale"),color:_.prop("fill"),scaleFract:_.prop("scaleFract"),translateFract:_.prop("translateFract"),translate:_.prop("translate"),opacity:_.prop("opacity"),pixelRatio:_.context("pixelRatio"),id:_.prop("id"),viewport:(h,p)=>[p.viewport.x,p.viewport.y,h.viewportWidth,h.viewportHeight]},attributes:{position:{buffer:_.prop("positionBuffer"),stride:8,offset:8},positionFract:{buffer:_.prop("positionFractBuffer"),stride:8,offset:8}},blend:M.blend,depth:{enable:!1},scissor:M.scissor,stencil:M.stencil,viewport:M.viewport}),rect:C,miter:A}},b.defaults={dashes:null,join:"miter",miterLimit:1,thickness:10,cap:"square",color:"black",opacity:1,overlay:!1,viewport:null,range:null,close:!1,fill:null},b.prototype.render=function(..._){_.length&&this.update(..._),this.draw()},b.prototype.draw=function(..._){return(_.length?_:this.passes).forEach((P,M)=>{if(P&&Array.isArray(P))return this.draw(...P);typeof P=="number"&&(P=this.passes[P]),P&&P.count>1&&P.opacity&&(this.regl._refresh(),P.fill&&P.triangles&&P.triangles.length>2&&this.shaders.fill(P),P.thickness&&(P.scale[0]*P.viewport.width>b.precisionThreshold||P.scale[1]*P.viewport.height>b.precisionThreshold?this.shaders.rect(P):P.join==="rect"||!P.join&&(P.thickness<=2||P.count>=b.maxPoints)?this.shaders.rect(P):this.shaders.miter(P)))}),this},b.prototype.update=function(_){if(!_)return;_.length!=null?typeof _[0]=="number"&&(_=[{positions:_}]):Array.isArray(_)||(_=[_]);let{regl:P,gl:M}=this;if(_.forEach((A,h)=>{let p=this.passes[h];if(A!==void 0){if(A===null){this.passes[h]=null;return}if(typeof A[0]=="number"&&(A={positions:A}),A=S(A,{positions:"positions points data coords",thickness:"thickness lineWidth lineWidths line-width linewidth width stroke-width strokewidth strokeWidth",join:"lineJoin linejoin join type mode",miterLimit:"miterlimit miterLimit",dashes:"dash dashes dasharray dash-array dashArray",color:"color colour stroke colors colours stroke-color strokeColor",fill:"fill fill-color fillColor",opacity:"alpha opacity",overlay:"overlay crease overlap intersect",close:"closed close closed-path closePath",range:"range dataBox",viewport:"viewport viewBox",hole:"holes hole hollow",splitNull:"splitNull"}),p||(this.passes[h]=p={id:h,scale:null,scaleFract:null,translate:null,translateFract:null,count:0,hole:[],depth:0,dashLength:1,dashTexture:P.tex
Line truncated
|
||||
`;Z.exports=b;function b(_,P){if(!(this instanceof b))return new b(_,P);if(typeof _=="function"?(P||(P={}),P.regl=_):P=_,P.length&&(P.positions=P),_=P.regl,!_.hasExtension("ANGLE_instanced_arrays"))throw Error("regl-error2d: `ANGLE_instanced_arrays` extension should be enabled");this.gl=_._gl,this.regl=_,this.passes=[],this.shaders=b.shaders.has(_)?b.shaders.get(_):b.shaders.set(_,b.createShaders(_)).get(_),this.update(P)}b.dashMult=2,b.maxPatternLength=256,b.precisionThreshold=3e6,b.maxPoints=1e4,b.maxLines=2048,b.shaders=new o,b.createShaders=function(_){let P=_.buffer({usage:"static",type:"float",data:[0,1,0,0,1,1,1,0]}),M={primitive:"triangle strip",instances:_.prop("count"),count:4,offset:0,uniforms:{miterMode:(h,p)=>p.join==="round"?2:1,miterLimit:_.prop("miterLimit"),scale:_.prop("scale"),scaleFract:_.prop("scaleFract"),translateFract:_.prop("translateFract"),translate:_.prop("translate"),thickness:_.prop("thickness"),dashTexture:_.prop("dashTexture"),opacity:_.prop("opacity"),pixelRatio:_.context("pixelRatio"),id:_.prop("id"),dashLength:_.prop("dashLength"),viewport:(h,p)=>[p.viewport.x,p.viewport.y,h.viewportWidth,h.viewportHeight],depth:_.prop("depth")},blend:{enable:!0,color:[0,0,0,0],equation:{rgb:"add",alpha:"add"},func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:"one minus dst alpha",dstAlpha:"one"}},depth:{enable:(h,p)=>!p.overlay},stencil:{enable:!1},scissor:{enable:!0,box:_.prop("viewport")},viewport:_.prop("viewport")},E=_(z({vert:f,frag:x,attributes:{lineEnd:{buffer:P,divisor:0,stride:8,offset:0},lineTop:{buffer:P,divisor:0,stride:8,offset:4},aCoord:{buffer:_.prop("positionBuffer"),stride:8,offset:8,divisor:1},bCoord:{buffer:_.prop("positionBuffer"),stride:8,offset:16,divisor:1},aCoordFract:{buffer:_.prop("positionFractBuffer"),stride:8,offset:8,divisor:1},bCoordFract:{buffer:_.prop("positionFractBuffer"),stride:8,offset:16,divisor:1},color:{buffer:_.prop("colorBuffer"),stride:4,offset:0,divisor:1}}},M)),A;try{A=_(z({cull:{enable:!0,face:"back"},vert:T,frag:u,attributes:{lineEnd:{buffer:P,divisor:0,stride:8,offset:0},lineTop:{buffer:P,divisor:0,stride:8,offset:4},aColor:{buffer:_.prop("colorBuffer"),stride:4,offset:0,divisor:1},bColor:{buffer:_.prop("colorBuffer"),stride:4,offset:4,divisor:1},prevCoord:{buffer:_.prop("positionBuffer"),stride:8,offset:0,divisor:1},aCoord:{buffer:_.prop("positionBuffer"),stride:8,offset:8,divisor:1},bCoord:{buffer:_.prop("positionBuffer"),stride:8,offset:16,divisor:1},nextCoord:{buffer:_.prop("positionBuffer"),stride:8,offset:24,divisor:1}}},M))}catch{A=E}return{fill:_({primitive:"triangle",elements:(h,p)=>p.triangles,offset:0,vert:y,frag:v,uniforms:{scale:_.prop("scale"),color:_.prop("fill"),scaleFract:_.prop("scaleFract"),translateFract:_.prop("translateFract"),translate:_.prop("translate"),opacity:_.prop("opacity"),pixelRatio:_.context("pixelRatio"),id:_.prop("id"),viewport:(h,p)=>[p.viewport.x,p.viewport.y,h.viewportWidth,h.viewportHeight]},attributes:{position:{buffer:_.prop("positionBuffer"),stride:8,offset:8},positionFract:{buffer:_.prop("positionFractBuffer"),stride:8,offset:8}},blend:M.blend,depth:{enable:!1},scissor:M.scissor,stencil:M.stencil,viewport:M.viewport}),rect:E,miter:A}},b.defaults={dashes:null,join:"miter",miterLimit:1,thickness:10,cap:"square",color:"black",opacity:1,overlay:!1,viewport:null,range:null,close:!1,fill:null},b.prototype.render=function(..._){_.length&&this.update(..._),this.draw()},b.prototype.draw=function(..._){return(_.length?_:this.passes).forEach((P,M)=>{if(P&&Array.isArray(P))return this.draw(...P);typeof P=="number"&&(P=this.passes[P]),P&&P.count>1&&P.opacity&&(this.regl._refresh(),P.fill&&P.triangles&&P.triangles.length>2&&this.shaders.fill(P),P.thickness&&(P.scale[0]*P.viewport.width>b.precisionThreshold||P.scale[1]*P.viewport.height>b.precisionThreshold?this.shaders.rect(P):P.join==="rect"||!P.join&&(P.thickness<=2||P.count>=b.maxPoints)?this.shaders.rect(P):this.shaders.miter(P)))}),this},b.prototype.update=function(_){if(!_)return;_.length!=null?typeof _[0]=="number"&&(_=[{positions:_}]):Array.isArray(_)||(_=[_]);let{regl:P,gl:M}=this;if(_.forEach((A,h)=>{let p=this.passes[h];if(A!==void 0){if(A===null){this.passes[h]=null;return}if(typeof A[0]=="number"&&(A={positions:A}),A=S(A,{positions:"positions points data coords",thickness:"thickness lineWidth lineWidths line-width linewidth width stroke-width strokewidth strokeWidth",join:"lineJoin linejoin join type mode",miterLimit:"miterlimit miterLimit",dashes:"dash dashes dasharray dash-array dashArray",color:"color colour stroke colors colours stroke-color strokeColor",fill:"fill fill-color fillColor",opacity:"alpha opacity",overlay:"overlay crease overlap intersect",close:"closed close closed-path closePath",range:"range dataBox",viewport:"viewport viewBox",hole:"holes hole hollow",splitNull:"splitNull"}),p||(this.passes[h]=p={id:h,scale:null,scaleFract:null,translate:null,translateFract:null,count:0,hole:[],depth:0,dashLength:1,dashTexture:P.tex
Line truncated
|
||||
precision highp float;
|
||||
|
||||
attribute vec2 position, positionFract;
|
||||
@@ -2747,10 +2747,10 @@ void main() {
|
||||
gl_FragColor = fragColor;
|
||||
gl_FragColor.a *= opacity;
|
||||
}
|
||||
`,uniforms:{range:i.prop("range"),lineWidth:i.prop("lineWidth"),capSize:i.prop("capSize"),opacity:i.prop("opacity"),scale:i.prop("scale"),translate:i.prop("translate"),scaleFract:i.prop("scaleFract"),translateFract:i.prop("translateFract"),viewport:(k,w)=>[w.viewport.x,w.viewport.y,k.viewportWidth,k.viewportHeight]},attributes:{color:{buffer:T,offset:(k,w)=>w.offset*4,divisor:1},position:{buffer:y,offset:(k,w)=>w.offset*8,divisor:1},positionFract:{buffer:v,offset:(k,w)=>w.offset*8,divisor:1},error:{buffer:u,offset:(k,w)=>w.offset*16,divisor:1},direction:{buffer:b,stride:24,offset:0},lineOffset:{buffer:b,stride:24,offset:8},capOffset:{buffer:b,stride:24,offset:16}},primitive:"triangles",blend:{enable:!0,color:[0,0,0,0],equation:{rgb:"add",alpha:"add"},func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:"one minus dst alpha",dstAlpha:"one"}},depth:{enable:!1},scissor:{enable:!0,box:i.prop("viewport")},viewport:i.prop("viewport"),stencil:!1,instances:i.prop("count"),count:n.length}),t(M,{update:h,draw:C,destroy:p,regl:i,gl:f,canvas:f.canvas,groups:P}),M;function M(k){k?h(k):k===null&&p(),C()}function C(k){if(typeof k=="number")return A(k);k&&!Array.isArray(k)&&(k=[k]),i._refresh(),P.forEach((w,R)=>{if(w){if(k&&(k[R]?w.draw=!0:w.draw=!1),!w.draw){w.draw=!0;return}A(R)}})}function A(k){typeof k=="number"&&(k=P[k]),k!=null&&k&&k.count&&k.color&&k.opacity&&k.positions&&k.positions.length>1&&(k.scaleRatio=[k.scale[0]*k.viewport.width,k.scale[1]*k.viewport.height],x(k),k.after&&k.after(k))}function h(k){if(!k)return;k.length!=null?typeof k[0]=="number"&&(k=[{positions:k}]):Array.isArray(k)||(k=[k]);let w=0,R=0;if(M.groups=P=k.map((V,H)=>{let F=P[H];if(V)typeof V=="function"?V={after:V}:typeof V[0]=="number"&&(V={positions:V});else return F;return V=S(V,{color:"color colors fill",capSize:"capSize cap capsize cap-size",lineWidth:"lineWidth line-width width line thickness",opacity:"opacity alpha",range:"range dataBox",viewport:"viewport viewBox",errors:"errors error",positions:"positions position data points"}),F||(P[H]=F={id:H,scale:null,translate:null,scaleFract:null,translateFract:null,draw:!0},V=t({},_,V)),I(F,V,[{lineWidth:U=>+U*.5,capSize:U=>+U*.5,opacity:parseFloat,errors:U=>(U=e(U),R+=U.length,U),positions:(U,W)=>(U=e(U,"float64"),W.count=Math.floor(U.length/2),W.bounds=c(U,2),W.offset=w,w+=W.count,U)},{color:(U,W)=>{let q=W.count;if(U||(U="transparent"),!Array.isArray(U)||typeof U[0]=="number"){let lt=U;U=Array(q);for(let yt=0;yt<q;yt++)U[yt]=lt}if(U.length<q)throw Error("Not enough colors");let J=new Uint8Array(q*4);for(let lt=0;lt<q;lt++){let yt=g(U[lt],"uint8");J.set(yt,lt*4)}return J},range:(U,W,q)=>{let J=W.bounds;return U||(U=J),W.scale=[1/(U[2]-U[0]),1/(U[3]-U[1])],W.translate=[-U[0],-U[1]],W.scaleFract=a(W.scale),W.translateFract=a(W.translate),U},viewport:U=>{let W;return Array.isArray(U)?W={x:U[0],y:U[1],width:U[2]-U[0],height:U[3]-U[1]}:U?(W={x:U.x||U.left||0,y:U.y||U.top||0},U.right?W.width=U.right-W.x:W.width=U.w||U.width||0,U.bottom?W.height=U.bottom-W.y:W.height=U.h||U.height||0):W={x:0,y:0,width:f.drawingBufferWidth,height:f.drawingBufferHeight},W}}]),F}),w||R){let V=P.reduce((W,q,J)=>W+(q?q.count:0),0),H=new Float64Array(V*2),F=new Uint8Array(V*4),U=new Float32Array(V*4);P.forEach((W,q)=>{if(!W)return;let{positions:J,count:lt,offset:yt,color:mt,errors:st}=W;lt&&(F.set(mt,yt*4),U.set(st,yt*4),H.set(J,yt*2))});var O=r(H);y(O);var j=a(H,O);v(j),T(F),u(U)}}function p(){y.destroy(),v.destroy(),T.destroy(),u.destroy(),b.destroy()}}}),UH=Dt((Q,Z)=>{var c=/[\'\"]/;Z.exports=function(g){return g?(c.test(g.charAt(0))&&(g=g.substr(1)),c.test(g.charAt(g.length-1))&&(g=g.substr(0,g.length-1)),g):""}}),rE=Dt((Q,Z)=>{Z.exports=["inherit","initial","unset"]}),nE=Dt((Q,Z)=>{Z.exports=["caption","icon","menu","message-box","small-caption","status-bar"]}),iE=Dt((Q,Z)=>{Z.exports=["normal","bold","bolder","lighter","100","200","300","400","500","600","700","800","900"]}),aE=Dt((Q,Z)=>{Z.exports=["normal","italic","oblique"]}),oE=Dt((Q,Z)=>{Z.exports=["normal","condensed","semi-condensed","extra-condensed","ultra-condensed","expanded","semi-expanded","extra-expanded","ultra-expanded"]}),VH=Dt((Q,Z)=>{function c(S,t){if(typeof S!="string")return[S];var e=[S];typeof t=="string"||Array.isArray(t)?t={brackets:t}:t||(t={});var r=t.brackets?Array.isArray(t.brackets)?t.brackets:[t.brackets]:["{}","[]","()"],a=t.escape||"___",n=!!t.flat;r.forEach(function(l){var f=new RegExp(["\\",l[0],"[^\\",l[0],"\\",l[1],"]*\\",l[1]].join("")),x=[];function y(v,T,u){var b=e.push(v.slice(l[0].length,-l[1].length))-1;return x.push(b),a+b+a}e.forEach(function(v,T){for(var u,b=0;v!=u;)if(u=v,v=v.replace(f,y),b++>1e4)throw Error("References have circular dependency. Please, check them.");e[T]=v}),x=x.reverse(),e=e.map(function(v){return x.forEach(function(T){v=v.replace(new RegExp("(\\"+a+T+"\\"+a+")","g"),l[0]+"$1"+l[1])}),v})});var o=new RegExp("\\"+a+"([0-9]+)\\"+a);function i(l,f,x){for(var y=[],v,T=0;v=o.exec(l);){if(T++>
Line truncated
|
||||
`,uniforms:{range:i.prop("range"),lineWidth:i.prop("lineWidth"),capSize:i.prop("capSize"),opacity:i.prop("opacity"),scale:i.prop("scale"),translate:i.prop("translate"),scaleFract:i.prop("scaleFract"),translateFract:i.prop("translateFract"),viewport:(k,w)=>[w.viewport.x,w.viewport.y,k.viewportWidth,k.viewportHeight]},attributes:{color:{buffer:T,offset:(k,w)=>w.offset*4,divisor:1},position:{buffer:y,offset:(k,w)=>w.offset*8,divisor:1},positionFract:{buffer:v,offset:(k,w)=>w.offset*8,divisor:1},error:{buffer:u,offset:(k,w)=>w.offset*16,divisor:1},direction:{buffer:b,stride:24,offset:0},lineOffset:{buffer:b,stride:24,offset:8},capOffset:{buffer:b,stride:24,offset:16}},primitive:"triangles",blend:{enable:!0,color:[0,0,0,0],equation:{rgb:"add",alpha:"add"},func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:"one minus dst alpha",dstAlpha:"one"}},depth:{enable:!1},scissor:{enable:!0,box:i.prop("viewport")},viewport:i.prop("viewport"),stencil:!1,instances:i.prop("count"),count:n.length}),t(M,{update:h,draw:E,destroy:p,regl:i,gl:f,canvas:f.canvas,groups:P}),M;function M(k){k?h(k):k===null&&p(),E()}function E(k){if(typeof k=="number")return A(k);k&&!Array.isArray(k)&&(k=[k]),i._refresh(),P.forEach((w,R)=>{if(w){if(k&&(k[R]?w.draw=!0:w.draw=!1),!w.draw){w.draw=!0;return}A(R)}})}function A(k){typeof k=="number"&&(k=P[k]),k!=null&&k&&k.count&&k.color&&k.opacity&&k.positions&&k.positions.length>1&&(k.scaleRatio=[k.scale[0]*k.viewport.width,k.scale[1]*k.viewport.height],x(k),k.after&&k.after(k))}function h(k){if(!k)return;k.length!=null?typeof k[0]=="number"&&(k=[{positions:k}]):Array.isArray(k)||(k=[k]);let w=0,R=0;if(M.groups=P=k.map((V,H)=>{let F=P[H];if(V)typeof V=="function"?V={after:V}:typeof V[0]=="number"&&(V={positions:V});else return F;return V=S(V,{color:"color colors fill",capSize:"capSize cap capsize cap-size",lineWidth:"lineWidth line-width width line thickness",opacity:"opacity alpha",range:"range dataBox",viewport:"viewport viewBox",errors:"errors error",positions:"positions position data points"}),F||(P[H]=F={id:H,scale:null,translate:null,scaleFract:null,translateFract:null,draw:!0},V=t({},_,V)),z(F,V,[{lineWidth:U=>+U*.5,capSize:U=>+U*.5,opacity:parseFloat,errors:U=>(U=e(U),R+=U.length,U),positions:(U,W)=>(U=e(U,"float64"),W.count=Math.floor(U.length/2),W.bounds=c(U,2),W.offset=w,w+=W.count,U)},{color:(U,W)=>{let q=W.count;if(U||(U="transparent"),!Array.isArray(U)||typeof U[0]=="number"){let lt=U;U=Array(q);for(let yt=0;yt<q;yt++)U[yt]=lt}if(U.length<q)throw Error("Not enough colors");let J=new Uint8Array(q*4);for(let lt=0;lt<q;lt++){let yt=g(U[lt],"uint8");J.set(yt,lt*4)}return J},range:(U,W,q)=>{let J=W.bounds;return U||(U=J),W.scale=[1/(U[2]-U[0]),1/(U[3]-U[1])],W.translate=[-U[0],-U[1]],W.scaleFract=a(W.scale),W.translateFract=a(W.translate),U},viewport:U=>{let W;return Array.isArray(U)?W={x:U[0],y:U[1],width:U[2]-U[0],height:U[3]-U[1]}:U?(W={x:U.x||U.left||0,y:U.y||U.top||0},U.right?W.width=U.right-W.x:W.width=U.w||U.width||0,U.bottom?W.height=U.bottom-W.y:W.height=U.h||U.height||0):W={x:0,y:0,width:f.drawingBufferWidth,height:f.drawingBufferHeight},W}}]),F}),w||R){let V=P.reduce((W,q,J)=>W+(q?q.count:0),0),H=new Float64Array(V*2),F=new Uint8Array(V*4),U=new Float32Array(V*4);P.forEach((W,q)=>{if(!W)return;let{positions:J,count:lt,offset:yt,color:mt,errors:st}=W;lt&&(F.set(mt,yt*4),U.set(st,yt*4),H.set(J,yt*2))});var O=r(H);y(O);var j=a(H,O);v(j),T(F),u(U)}}function p(){y.destroy(),v.destroy(),T.destroy(),u.destroy(),b.destroy()}}}),UH=Dt((Q,Z)=>{var c=/[\'\"]/;Z.exports=function(g){return g?(c.test(g.charAt(0))&&(g=g.substr(1)),c.test(g.charAt(g.length-1))&&(g=g.substr(0,g.length-1)),g):""}}),rC=Dt((Q,Z)=>{Z.exports=["inherit","initial","unset"]}),nC=Dt((Q,Z)=>{Z.exports=["caption","icon","menu","message-box","small-caption","status-bar"]}),iC=Dt((Q,Z)=>{Z.exports=["normal","bold","bolder","lighter","100","200","300","400","500","600","700","800","900"]}),aC=Dt((Q,Z)=>{Z.exports=["normal","italic","oblique"]}),oC=Dt((Q,Z)=>{Z.exports=["normal","condensed","semi-condensed","extra-condensed","ultra-condensed","expanded","semi-expanded","extra-expanded","ultra-expanded"]}),VH=Dt((Q,Z)=>{function c(S,t){if(typeof S!="string")return[S];var e=[S];typeof t=="string"||Array.isArray(t)?t={brackets:t}:t||(t={});var r=t.brackets?Array.isArray(t.brackets)?t.brackets:[t.brackets]:["{}","[]","()"],a=t.escape||"___",n=!!t.flat;r.forEach(function(l){var f=new RegExp(["\\",l[0],"[^\\",l[0],"\\",l[1],"]*\\",l[1]].join("")),x=[];function y(v,T,u){var b=e.push(v.slice(l[0].length,-l[1].length))-1;return x.push(b),a+b+a}e.forEach(function(v,T){for(var u,b=0;v!=u;)if(u=v,v=v.replace(f,y),b++>1e4)throw Error("References have circular dependency. Please, check them.");e[T]=v}),x=x.reverse(),e=e.map(function(v){return x.forEach(function(T){v=v.replace(new RegExp("(\\"+a+T+"\\"+a+")","g"),l[0]+"$1"+l[1])}),v})});var o=new RegExp("\\"+a+"([0-9]+)\\"+a);function i(l,f,x){for(var y=[],v,T=0;v=o.exec(l);){if(T++>
Line truncated
|
||||
`).replace(/}/g,`}
|
||||
`).replace(/{/g,`{
|
||||
`),Un;if(Tr&&(Un=gc(dn),Tr[Un]))return Tr[Un].apply(null,vi);var Ui=Function.apply(null,Rn.concat(dn));return Tr&&(Tr[Un]=Ui),Ui.apply(null,vi)}return{global:_a,link:yn,block:ui,proc:Na,scope:ta,cond:Gi,compile:ia}}var Xa="xyzw".split(""),fa=5121,Oa=1,Aa=2,na=0,so=1,os=2,Xo=3,us=4,ms=5,uo=6,Ga="dither",gs="blend.enable",el="blend.color",zl="blend.equation",su="blend.func",$l="depth.enable",lu="depth.func",vl="depth.range",$u="depth.mask",zu="colorMask",du="cull.enable",Ro="cull.face",Ss="frontFace",Kl="lineWidth",Bl="polygonOffset.enable",vc="polygonOffset.offset",Hc="sample.alpha",Pc="sample.enable",zh="sample.coverage",Wc="stencil.enable",Oh="stencil.mask",Fu="stencil.func",Dh="stencil.opFront",as="stencil.opBack",Is="scissor.enable",qc="scissor.box",Zu="viewport",Zf="profile",$t="framebuffer",z="vert",ht="frag",Et="elements",Ot="primitive",Ht="count",Ae="offset",Fe="instances",Ke="vao",vr="Width",Fr="Height",Rr=$t+vr,cn=$t+Fr,Sn=Zu+vr,Xt=Zu+Fr,ae="drawingBuffer",_e=ae+vr,Se=ae+Fr,je=[su,zl,Fu,Dh,as,zh,Zu,qc,vc],De=34962,$e=34963,kr=2884,Or=3042,jr=3024,en=2960,vn=2929,In=3089,jn=32823,li=32926,Hi=32928,ga=5126,pa=35664,Ma=35665,co=35666,Uo=5124,Eo=35667,ds=35668,fl=35669,yl=35670,Os=35671,wl=35672,Lu=35673,vu=35674,qs=35675,$s=35676,Ku=35678,dc=35680,$c=4,At=1028,Ut=1029,he=2304,Ee=2305,Ie=32775,Ne=32776,sr=519,ar=7680,Er=0,rn=1,Jr=32774,xn=513,zn=36160,Dn=36064,qi={0:0,1:1,zero:0,one:1,"src color":768,"one minus src color":769,"src alpha":770,"one minus src alpha":771,"dst color":774,"one minus dst color":775,"dst alpha":772,"one minus dst alpha":773,"constant color":32769,"one minus constant color":32770,"constant alpha":32771,"one minus constant alpha":32772,"src alpha saturate":776},Wn={never:512,less:513,"<":513,equal:514,"=":514,"==":514,"===":514,lequal:515,"<=":515,greater:516,">":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},Si={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},zi={cw:he,ccw:Ee};function ji(be){return Array.isArray(be)||Xr(be)||nn(be)}function Ki(be){return be.sort(function(Tr,Ir){return Tr===Zu?-1:Ir===Zu?1:Tr<Ir?-1:1})}function ti(be,Tr,Ir,Rn){this.thisDep=be,this.contextDep=Tr,this.propDep=Ir,this.append=Rn}function Va(be){return be&&!(be.thisDep||be.contextDep||be.propDep)}function qa(be){return new ti(!1,!1,!1,be)}function lo(be,Tr){var Ir=be.type;if(Ir===na){var Rn=be.data.length;return new ti(!0,Rn>=1,Rn>=2,Tr)}else if(Ir===us){var vi=be.data;return new ti(vi.thisDep,vi.contextDep,vi.propDep,Tr)}else{if(Ir===ms)return new ti(!1,!1,!1,Tr);if(Ir===uo){for(var ai=!1,yn=!1,ui=!1,ta=0;ta<be.data.length;++ta){var Gi=be.data[ta];if(Gi.type===so)ui=!0;else if(Gi.type===os)yn=!0;else if(Gi.type===Xo)ai=!0;else if(Gi.type===na){ai=!0;var _a=Gi.data;_a>=1&&(yn=!0),_a>=2&&(ui=!0)}else Gi.type===us&&(ai=ai||Gi.data.thisDep,yn=yn||Gi.data.contextDep,ui=ui||Gi.data.propDep)}return new ti(ai,yn,ui,Tr)}else return new ti(Ir===Xo,Ir===os,Ir===so,Tr)}}var zo=new ti(!1,!1,!1,function(){});function jo(be,Tr,Ir,Rn,vi,ai,yn,ui,ta,Gi,_a,Ka,Na,ia,Pi,dn){var Un=Gi.Record,Ui={add:32774,subtract:32778,"reverse subtract":32779};Ir.ext_blend_minmax&&(Ui.min=Ie,Ui.max=Ne);var Li=Ir.angle_instanced_arrays,oi=Ir.webgl_draw_buffers,Ea=Ir.oes_vertex_array_object,da={dirty:!0,profile:dn.profile},Ha={},Ei=[],si={},La={};function va(Yt){return Yt.replace(".","_")}function Xi(Yt,fe,Ce){var ir=va(Yt);Ei.push(Yt),Ha[ir]=da[ir]=!!Ce,si[ir]=fe}function Qi(Yt,fe,Ce){var ir=va(Yt);Ei.push(Yt),Array.isArray(Ce)?(da[ir]=Ce.slice(),Ha[ir]=Ce.slice()):da[ir]=Ha[ir]=Ce,La[ir]=fe}function ka(Yt){return!!isNaN(Yt)}Xi(Ga,jr),Xi(gs,Or),Qi(el,"blendColor",[0,0,0,0]),Qi(zl,"blendEquationSeparate",[Jr,Jr]),Qi(su,"blendFuncSeparate",[rn,Er,rn,Er]),Xi($l,vn,!0),Qi(lu,"depthFunc",xn),Qi(vl,"depthRange",[0,1]),Qi($u,"depthMask",!0),Qi(zu,zu,[!0,!0,!0,!0]),Xi(du,kr),Qi(Ro,"cullFace",Ut),Qi(Ss,Ss,Ee),Qi(Kl,Kl,1),Xi(Bl,jn),Qi(vc,"polygonOffset",[0,0]),Xi(Hc,li),Xi(Pc,Hi),Qi(zh,"sampleCoverage",[1,!1]),Xi(Wc,en),Qi(Oh,"stencilMask",-1),Qi(Fu,"stencilFunc",[sr,0,-1]),Qi(Dh,"stencilOpSeparate",[At,ar,ar,ar]),Qi(as,"stencilOpSeparate",[Ut,ar,ar,ar]),Xi(Is,In),Qi(qc,"scissor",[0,0,be.drawingBufferWidth,be.drawingBufferHeight]),Qi(Zu,Zu,[0,0,be.drawingBufferWidth,be.drawingBufferHeight]);var Do={gl:be,context:Na,strings:Tr,next:Ha,current:da,draw:Ka,elements:ai,buffer:vi,shader:_a,attributes:Gi.state,vao:Gi,uniforms:ta,framebuffer:ui,extensions:Ir,timer:ia,isBufferArgs:ji},Ao={primTypes:xi,compareFuncs:Wn,blendFuncs:qi,blendEquations:Ui,stencilOps:Si,glTypes:qn,orientationType:zi};oi&&(Ao.backBuffer=[Ut],Ao.drawBuffer=h(Rn.maxDrawbuffers,function(Yt){return Yt===0?[0]:h(Yt,function(fe){return Dn+fe})}));var wa=0;function Fa(){var Yt=Ba({cache:Pi}),fe=Yt.link,Ce=Yt.global;Yt.id=wa++,Yt.batchId="0";var ir=fe(Do),Ye=Yt.shared={props:"a0"};Object.keys(Do).forEach(function(Xe){Ye[Xe]=Ce.def(ir,".",Xe)});var er=Yt.next={},lr=Yt.current={};Object.keys(L
Line truncated
|
||||
`),Un;if(Tr&&(Un=gc(dn),Tr[Un]))return Tr[Un].apply(null,vi);var Vi=Function.apply(null,Rn.concat(dn));return Tr&&(Tr[Un]=Vi),Vi.apply(null,vi)}return{global:_a,link:yn,block:hi,proc:ja,scope:ea,cond:Yi,compile:aa}}var Xa="xyzw".split(""),fa=5121,Oa=1,Aa=2,ia=0,so=1,os=2,Xo=3,us=4,ms=5,uo=6,Ga="dither",gs="blend.enable",el="blend.color",Il="blend.equation",su="blend.func",$l="depth.enable",lu="depth.func",vl="depth.range",$u="depth.mask",Ou="colorMask",du="cull.enable",Ro="cull.face",Ss="frontFace",Kl="lineWidth",Bl="polygonOffset.enable",vc="polygonOffset.offset",Hc="sample.alpha",Pc="sample.enable",Ih="sample.coverage",Wc="stencil.enable",Oh="stencil.mask",Ru="stencil.func",Dh="stencil.opFront",as="stencil.opBack",zs="scissor.enable",qc="scissor.box",Zu="viewport",Zf="profile",$t="framebuffer",I="vert",ht="frag",Ct="elements",Ot="primitive",Ht="count",Ae="offset",Fe="instances",Ke="vao",vr="Width",Fr="Height",Rr=$t+vr,cn=$t+Fr,Sn=Zu+vr,Xt=Zu+Fr,se="drawingBuffer",_e=se+vr,Se=se+Fr,je=[su,Il,Ru,Dh,as,Ih,Zu,qc,vc],De=34962,$e=34963,kr=2884,Or=3042,jr=3024,tn=2960,vn=2929,In=3089,jn=32823,ci=32926,Wi=32928,ga=5126,pa=35664,Ma=35665,co=35666,Vo=5124,Eo=35667,ds=35668,dl=35669,yl=35670,Os=35671,wl=35672,Lu=35673,vu=35674,qs=35675,$s=35676,Ku=35678,dc=35680,$c=4,At=1028,Ut=1029,he=2304,Ce=2305,ze=32775,Ne=32776,sr=519,ar=7680,Cr=0,en=1,Xr=32774,xn=513,On=36160,Fn=36064,Zi={0:0,1:1,zero:0,one:1,"src color":768,"one minus src color":769,"src alpha":770,"one minus src alpha":771,"dst color":774,"one minus dst color":775,"dst alpha":772,"one minus dst alpha":773,"constant color":32769,"one minus constant color":32770,"constant alpha":32771,"one minus constant alpha":32772,"src alpha saturate":776},qn={never:512,less:513,"<":513,equal:514,"=":514,"==":514,"===":514,lequal:515,"<=":515,greater:516,">":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},Mi={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},Ii={cw:he,ccw:Ce};function Ui(be){return Array.isArray(be)||Kr(be)||rn(be)}function Xi(be){return be.sort(function(Tr,zr){return Tr===Zu?-1:zr===Zu?1:Tr<zr?-1:1})}function ri(be,Tr,zr,Rn){this.thisDep=be,this.contextDep=Tr,this.propDep=zr,this.append=Rn}function Va(be){return be&&!(be.thisDep||be.contextDep||be.propDep)}function qa(be){return new ri(!1,!1,!1,be)}function lo(be,Tr){var zr=be.type;if(zr===ia){var Rn=be.data.length;return new ri(!0,Rn>=1,Rn>=2,Tr)}else if(zr===us){var vi=be.data;return new ri(vi.thisDep,vi.contextDep,vi.propDep,Tr)}else{if(zr===ms)return new ri(!1,!1,!1,Tr);if(zr===uo){for(var si=!1,yn=!1,hi=!1,ea=0;ea<be.data.length;++ea){var Yi=be.data[ea];if(Yi.type===so)hi=!0;else if(Yi.type===os)yn=!0;else if(Yi.type===Xo)si=!0;else if(Yi.type===ia){si=!0;var _a=Yi.data;_a>=1&&(yn=!0),_a>=2&&(hi=!0)}else Yi.type===us&&(si=si||Yi.data.thisDep,yn=yn||Yi.data.contextDep,hi=hi||Yi.data.propDep)}return new ri(si,yn,hi,Tr)}else return new ri(zr===Xo,zr===os,zr===so,Tr)}}var Io=new ri(!1,!1,!1,function(){});function jo(be,Tr,zr,Rn,vi,si,yn,hi,ea,Yi,_a,Ka,ja,aa,Pi,dn){var Un=Yi.Record,Vi={add:32774,subtract:32778,"reverse subtract":32779};zr.ext_blend_minmax&&(Vi.min=ze,Vi.max=Ne);var Li=zr.angle_instanced_arrays,li=zr.webgl_draw_buffers,Ca=zr.oes_vertex_array_object,da={dirty:!0,profile:dn.profile},Ha={},Si=[],ui={},La={};function va(Yt){return Yt.replace(".","_")}function Ji(Yt,fe,Ee){var ir=va(Yt);Si.push(Yt),Ha[ir]=da[ir]=!!Ee,ui[ir]=fe}function ta(Yt,fe,Ee){var ir=va(Yt);Si.push(Yt),Array.isArray(Ee)?(da[ir]=Ee.slice(),Ha[ir]=Ee.slice()):da[ir]=Ha[ir]=Ee,La[ir]=fe}function ka(Yt){return!!isNaN(Yt)}Ji(Ga,jr),Ji(gs,Or),ta(el,"blendColor",[0,0,0,0]),ta(Il,"blendEquationSeparate",[Xr,Xr]),ta(su,"blendFuncSeparate",[en,Cr,en,Cr]),Ji($l,vn,!0),ta(lu,"depthFunc",xn),ta(vl,"depthRange",[0,1]),ta($u,"depthMask",!0),ta(Ou,Ou,[!0,!0,!0,!0]),Ji(du,kr),ta(Ro,"cullFace",Ut),ta(Ss,Ss,Ce),ta(Kl,Kl,1),Ji(Bl,jn),ta(vc,"polygonOffset",[0,0]),Ji(Hc,ci),Ji(Pc,Wi),ta(Ih,"sampleCoverage",[1,!1]),Ji(Wc,tn),ta(Oh,"stencilMask",-1),ta(Ru,"stencilFunc",[sr,0,-1]),ta(Dh,"stencilOpSeparate",[At,ar,ar,ar]),ta(as,"stencilOpSeparate",[Ut,ar,ar,ar]),Ji(zs,In),ta(qc,"scissor",[0,0,be.drawingBufferWidth,be.drawingBufferHeight]),ta(Zu,Zu,[0,0,be.drawingBufferWidth,be.drawingBufferHeight]);var Do={gl:be,context:ja,strings:Tr,next:Ha,current:da,draw:Ka,elements:si,buffer:vi,shader:_a,attributes:Yi.state,vao:Yi,uniforms:ea,framebuffer:hi,extensions:zr,timer:aa,isBufferArgs:Ui},Ao={primTypes:xi,compareFuncs:qn,blendFuncs:Zi,blendEquations:Vi,stencilOps:Mi,glTypes:Zn,orientationType:Ii};li&&(Ao.backBuffer=[Ut],Ao.drawBuffer=h(Rn.maxDrawbuffers,function(Yt){return Yt===0?[0]:h(Yt,function(fe){return Fn+fe})}));var wa=0;function Fa(){var Yt=Na({cache:Pi}),fe=Yt.link,Ee=Yt.global;Yt.id=wa++,Yt.batchId="0";var ir=fe(Do),Ye=Yt.shared={props:"a0"};Object.keys(Do).forEach(function(Xe){Ye[Xe]=Ee.def(ir,".",Xe)});var er=Yt.next={},lr=Yt.current={};Object.keys(L
Line truncated
|
||||
precision highp float;
|
||||
attribute float width, charOffset, char;
|
||||
attribute vec2 position;
|
||||
@@ -2824,17 +2824,17 @@ void main() {
|
||||
// color.rgb += (1. - color.rgb) * (1. - mask.rgb);
|
||||
|
||||
gl_FragColor = color;
|
||||
}`}),p={};return{regl:A,draw:h,atlas:p}},M.prototype.update=function(A){var h=this;if(typeof A=="string")A={text:A};else if(!A)return;A=g(A,{position:"position positions coord coords coordinates",font:"font fontFace fontface typeface cssFont css-font family fontFamily",fontSize:"fontSize fontsize size font-size",text:"text texts chars characters value values symbols",align:"align alignment textAlign textbaseline",baseline:"baseline textBaseline textbaseline",direction:"dir direction textDirection",color:"color colour fill fill-color fillColor textColor textcolor",kerning:"kerning kern",range:"range dataBox",viewport:"vp viewport viewBox viewbox viewPort",opacity:"opacity alpha transparency visible visibility opaque",offset:"offset positionOffset padding shift indent indentation"},!0),A.opacity!=null&&(Array.isArray(A.opacity)?this.opacity=A.opacity.map(function(Lt){return parseFloat(Lt)}):this.opacity=parseFloat(A.opacity)),A.viewport!=null&&(this.viewport=n(A.viewport),this.viewportArray=[this.viewport.x,this.viewport.y,this.viewport.width,this.viewport.height]),this.viewport==null&&(this.viewport={x:0,y:0,width:this.gl.drawingBufferWidth,height:this.gl.drawingBufferHeight},this.viewportArray=[this.viewport.x,this.viewport.y,this.viewport.width,this.viewport.height]),A.kerning!=null&&(this.kerning=A.kerning),A.offset!=null&&(typeof A.offset=="number"&&(A.offset=[A.offset,0]),this.positionOffset=v(A.offset)),A.direction&&(this.direction=A.direction),A.range&&(this.range=A.range,this.scale=[1/(A.range[2]-A.range[0]),1/(A.range[3]-A.range[1])],this.translate=[-A.range[0],-A.range[1]]),A.scale&&(this.scale=A.scale),A.translate&&(this.translate=A.translate),this.scale||(this.scale=[1/this.viewport.width,1/this.viewport.height]),this.translate||(this.translate=[0,0]),!this.font.length&&!A.font&&(A.font=M.baseFontSize+"px sans-serif");var p=!1,k=!1;if(A.font&&(Array.isArray(A.font)?A.font:[A.font]).forEach(function(Lt,Mt){if(typeof Lt=="string")try{Lt=c.parse(Lt)}catch{Lt=c.parse(M.baseFontSize+"px "+Lt)}else{var te=Lt.style,ye=Lt.weight,le=Lt.stretch,Me=Lt.variant;Lt=c.parse(c.stringify(Lt)),te&&(Lt.style=te),ye&&(Lt.weight=ye),le&&(Lt.stretch=le),Me&&(Lt.variant=Me)}var He=c.stringify({size:M.baseFontSize,family:Lt.family,stretch:_?Lt.stretch:void 0,variant:Lt.variant,weight:Lt.weight,style:Lt.style}),Ge=i(Lt.size),cr=Math.round(Ge[0]*l(Ge[1]));if(cr!==h.fontSize[Mt]&&(k=!0,h.fontSize[Mt]=cr),(!h.font[Mt]||He!=h.font[Mt].baseString)&&(p=!0,h.font[Mt]=M.fonts[He],!h.font[Mt])){var ur=Lt.family.join(", "),Ur=[Lt.style];Lt.style!=Lt.variant&&Ur.push(Lt.variant),Lt.variant!=Lt.weight&&Ur.push(Lt.weight),_&&Lt.weight!=Lt.stretch&&Ur.push(Lt.stretch),h.font[Mt]={baseString:He,family:ur,weight:Lt.weight,stretch:Lt.stretch,style:Lt.style,variant:Lt.variant,width:{},kerning:{},metrics:y(ur,{origin:"top",fontSize:M.baseFontSize,fontStyle:Ur.join(" ")})},M.fonts[He]=h.font[Mt]}}),(p||k)&&this.font.forEach(function(Lt,Mt){var te=c.stringify({size:h.fontSize[Mt],family:Lt.family,stretch:_?Lt.stretch:void 0,variant:Lt.variant,weight:Lt.weight,style:Lt.style});if(h.fontAtlas[Mt]=h.shader.atlas[te],!h.fontAtlas[Mt]){var ye=Lt.metrics;h.shader.atlas[te]=h.fontAtlas[Mt]={fontString:te,step:Math.ceil(h.fontSize[Mt]*ye.bottom*.5)*2,em:h.fontSize[Mt],cols:0,rows:0,height:0,width:0,chars:[],ids:{},texture:h.regl.texture()}}A.text==null&&(A.text=h.text)}),typeof A.text=="string"&&A.position&&A.position.length>2){for(var w=Array(A.position.length*.5),R=0;R<w.length;R++)w[R]=A.text;A.text=w}var O;if(A.text!=null||p){if(this.textOffsets=[0],Array.isArray(A.text)){this.count=A.text[0].length,this.counts=[this.count];for(var j=1;j<A.text.length;j++)this.textOffsets[j]=this.textOffsets[j-1]+A.text[j-1].length,this.count+=A.text[j].length,this.counts.push(A.text[j].length);this.text=A.text.join("")}else this.text=A.text,this.count=this.text.length,this.counts=[this.count];O=[],this.font.forEach(function(Lt,Mt){M.atlasContext.font=Lt.baseString;for(var te=h.fontAtlas[Mt],ye=0;ye<h.text.length;ye++){var le=h.text.charAt(ye);if(te.ids[le]==null&&(te.ids[le]=te.chars.length,te.chars.push(le),O.push(le)),Lt.width[le]==null&&(Lt.width[le]=M.atlasContext.measureText(le).width/M.baseFontSize,h.kerning)){var Me=[];for(var He in Lt.width)Me.push(He+le,le+He);x(Lt.kerning,f(Lt.family,{pairs:Me}))}}})}if(A.position)if(A.position.length>2){for(var V=!A.position[0].length,H=a.mallocFloat(this.count*2),F=0,U=0;F<this.counts.length;F++){var W=this.counts[F];if(V)for(var q=0;q<W;q++)H[U++]=A.position[F*2],H[U++]=A.position[F*2+1];else for(var J=0;J<W;J++)H[U++]=A.position[F][0],H[U++]=A.position[F][1]}this.position.call?this.position({type:"float",data:H}):this.position=this.regl.buffer({type:"float",data:H}),a.freeFloat(H)}else this.position.destroy&&this.position.destroy(),this.position={constant:A.position};if(A.text||p){var lt=a.mallocUint8(this.count),yt=a.mallocFloat(this.count*2);this.textWidth=[];for(var mt=0,st=0;mt<this.counts.length;mt++){for
Line truncated
|
||||
}`}),p={};return{regl:A,draw:h,atlas:p}},M.prototype.update=function(A){var h=this;if(typeof A=="string")A={text:A};else if(!A)return;A=g(A,{position:"position positions coord coords coordinates",font:"font fontFace fontface typeface cssFont css-font family fontFamily",fontSize:"fontSize fontsize size font-size",text:"text texts chars characters value values symbols",align:"align alignment textAlign textbaseline",baseline:"baseline textBaseline textbaseline",direction:"dir direction textDirection",color:"color colour fill fill-color fillColor textColor textcolor",kerning:"kerning kern",range:"range dataBox",viewport:"vp viewport viewBox viewbox viewPort",opacity:"opacity alpha transparency visible visibility opaque",offset:"offset positionOffset padding shift indent indentation"},!0),A.opacity!=null&&(Array.isArray(A.opacity)?this.opacity=A.opacity.map(function(Lt){return parseFloat(Lt)}):this.opacity=parseFloat(A.opacity)),A.viewport!=null&&(this.viewport=n(A.viewport),this.viewportArray=[this.viewport.x,this.viewport.y,this.viewport.width,this.viewport.height]),this.viewport==null&&(this.viewport={x:0,y:0,width:this.gl.drawingBufferWidth,height:this.gl.drawingBufferHeight},this.viewportArray=[this.viewport.x,this.viewport.y,this.viewport.width,this.viewport.height]),A.kerning!=null&&(this.kerning=A.kerning),A.offset!=null&&(typeof A.offset=="number"&&(A.offset=[A.offset,0]),this.positionOffset=v(A.offset)),A.direction&&(this.direction=A.direction),A.range&&(this.range=A.range,this.scale=[1/(A.range[2]-A.range[0]),1/(A.range[3]-A.range[1])],this.translate=[-A.range[0],-A.range[1]]),A.scale&&(this.scale=A.scale),A.translate&&(this.translate=A.translate),this.scale||(this.scale=[1/this.viewport.width,1/this.viewport.height]),this.translate||(this.translate=[0,0]),!this.font.length&&!A.font&&(A.font=M.baseFontSize+"px sans-serif");var p=!1,k=!1;if(A.font&&(Array.isArray(A.font)?A.font:[A.font]).forEach(function(Lt,Mt){if(typeof Lt=="string")try{Lt=c.parse(Lt)}catch{Lt=c.parse(M.baseFontSize+"px "+Lt)}else{var te=Lt.style,ye=Lt.weight,le=Lt.stretch,Me=Lt.variant;Lt=c.parse(c.stringify(Lt)),te&&(Lt.style=te),ye&&(Lt.weight=ye),le&&(Lt.stretch=le),Me&&(Lt.variant=Me)}var He=c.stringify({size:M.baseFontSize,family:Lt.family,stretch:_?Lt.stretch:void 0,variant:Lt.variant,weight:Lt.weight,style:Lt.style}),Ge=i(Lt.size),cr=Math.round(Ge[0]*l(Ge[1]));if(cr!==h.fontSize[Mt]&&(k=!0,h.fontSize[Mt]=cr),(!h.font[Mt]||He!=h.font[Mt].baseString)&&(p=!0,h.font[Mt]=M.fonts[He],!h.font[Mt])){var ur=Lt.family.join(", "),Ur=[Lt.style];Lt.style!=Lt.variant&&Ur.push(Lt.variant),Lt.variant!=Lt.weight&&Ur.push(Lt.weight),_&&Lt.weight!=Lt.stretch&&Ur.push(Lt.stretch),h.font[Mt]={baseString:He,family:ur,weight:Lt.weight,stretch:Lt.stretch,style:Lt.style,variant:Lt.variant,width:{},kerning:{},metrics:y(ur,{origin:"top",fontSize:M.baseFontSize,fontStyle:Ur.join(" ")})},M.fonts[He]=h.font[Mt]}}),(p||k)&&this.font.forEach(function(Lt,Mt){var te=c.stringify({size:h.fontSize[Mt],family:Lt.family,stretch:_?Lt.stretch:void 0,variant:Lt.variant,weight:Lt.weight,style:Lt.style});if(h.fontAtlas[Mt]=h.shader.atlas[te],!h.fontAtlas[Mt]){var ye=Lt.metrics;h.shader.atlas[te]=h.fontAtlas[Mt]={fontString:te,step:Math.ceil(h.fontSize[Mt]*ye.bottom*.5)*2,em:h.fontSize[Mt],cols:0,rows:0,height:0,width:0,chars:[],ids:{},texture:h.regl.texture()}}A.text==null&&(A.text=h.text)}),typeof A.text=="string"&&A.position&&A.position.length>2){for(var w=Array(A.position.length*.5),R=0;R<w.length;R++)w[R]=A.text;A.text=w}var O;if(A.text!=null||p){if(this.textOffsets=[0],Array.isArray(A.text)){this.count=A.text[0].length,this.counts=[this.count];for(var j=1;j<A.text.length;j++)this.textOffsets[j]=this.textOffsets[j-1]+A.text[j-1].length,this.count+=A.text[j].length,this.counts.push(A.text[j].length);this.text=A.text.join("")}else this.text=A.text,this.count=this.text.length,this.counts=[this.count];O=[],this.font.forEach(function(Lt,Mt){M.atlasContext.font=Lt.baseString;for(var te=h.fontAtlas[Mt],ye=0;ye<h.text.length;ye++){var le=h.text.charAt(ye);if(te.ids[le]==null&&(te.ids[le]=te.chars.length,te.chars.push(le),O.push(le)),Lt.width[le]==null&&(Lt.width[le]=M.atlasContext.measureText(le).width/M.baseFontSize,h.kerning)){var Me=[];for(var He in Lt.width)Me.push(He+le,le+He);x(Lt.kerning,f(Lt.family,{pairs:Me}))}}})}if(A.position)if(A.position.length>2){for(var V=!A.position[0].length,H=a.mallocFloat(this.count*2),F=0,U=0;F<this.counts.length;F++){var W=this.counts[F];if(V)for(var q=0;q<W;q++)H[U++]=A.position[F*2],H[U++]=A.position[F*2+1];else for(var J=0;J<W;J++)H[U++]=A.position[F][0],H[U++]=A.position[F][1]}this.position.call?this.position({type:"float",data:H}):this.position=this.regl.buffer({type:"float",data:H}),a.freeFloat(H)}else this.position.destroy&&this.position.destroy(),this.position={constant:A.position};if(A.text||p){var lt=a.mallocUint8(this.count),yt=a.mallocFloat(this.count*2);this.textWidth=[];for(var mt=0,st=0;mt<this.counts.length;mt++){for
Line truncated
|
||||
`).replace(/}/g,`}
|
||||
`).replace(/{/g,`{
|
||||
`),Un;if(Tr&&(Un=gc(dn),Tr[Un]))return Tr[Un].apply(null,vi);var Ui=Function.apply(null,Rn.concat(dn));return Tr&&(Tr[Un]=Ui),Ui.apply(null,vi)}return{global:_a,link:yn,block:ui,proc:Na,scope:ta,cond:Gi,compile:ia}}var Xa="xyzw".split(""),fa=5121,Oa=1,Aa=2,na=0,so=1,os=2,Xo=3,us=4,ms=5,uo=6,Ga="dither",gs="blend.enable",el="blend.color",zl="blend.equation",su="blend.func",$l="depth.enable",lu="depth.func",vl="depth.range",$u="depth.mask",zu="colorMask",du="cull.enable",Ro="cull.face",Ss="frontFace",Kl="lineWidth",Bl="polygonOffset.enable",vc="polygonOffset.offset",Hc="sample.alpha",Pc="sample.enable",zh="sample.coverage",Wc="stencil.enable",Oh="stencil.mask",Fu="stencil.func",Dh="stencil.opFront",as="stencil.opBack",Is="scissor.enable",qc="scissor.box",Zu="viewport",Zf="profile",$t="framebuffer",z="vert",ht="frag",Et="elements",Ot="primitive",Ht="count",Ae="offset",Fe="instances",Ke="vao",vr="Width",Fr="Height",Rr=$t+vr,cn=$t+Fr,Sn=Zu+vr,Xt=Zu+Fr,ae="drawingBuffer",_e=ae+vr,Se=ae+Fr,je=[su,zl,Fu,Dh,as,zh,Zu,qc,vc],De=34962,$e=34963,kr=2884,Or=3042,jr=3024,en=2960,vn=2929,In=3089,jn=32823,li=32926,Hi=32928,ga=5126,pa=35664,Ma=35665,co=35666,Uo=5124,Eo=35667,ds=35668,fl=35669,yl=35670,Os=35671,wl=35672,Lu=35673,vu=35674,qs=35675,$s=35676,Ku=35678,dc=35680,$c=4,At=1028,Ut=1029,he=2304,Ee=2305,Ie=32775,Ne=32776,sr=519,ar=7680,Er=0,rn=1,Jr=32774,xn=513,zn=36160,Dn=36064,qi={0:0,1:1,zero:0,one:1,"src color":768,"one minus src color":769,"src alpha":770,"one minus src alpha":771,"dst color":774,"one minus dst color":775,"dst alpha":772,"one minus dst alpha":773,"constant color":32769,"one minus constant color":32770,"constant alpha":32771,"one minus constant alpha":32772,"src alpha saturate":776},Wn={never:512,less:513,"<":513,equal:514,"=":514,"==":514,"===":514,lequal:515,"<=":515,greater:516,">":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},Si={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},zi={cw:he,ccw:Ee};function ji(be){return Array.isArray(be)||Xr(be)||nn(be)}function Ki(be){return be.sort(function(Tr,Ir){return Tr===Zu?-1:Ir===Zu?1:Tr<Ir?-1:1})}function ti(be,Tr,Ir,Rn){this.thisDep=be,this.contextDep=Tr,this.propDep=Ir,this.append=Rn}function Va(be){return be&&!(be.thisDep||be.contextDep||be.propDep)}function qa(be){return new ti(!1,!1,!1,be)}function lo(be,Tr){var Ir=be.type;if(Ir===na){var Rn=be.data.length;return new ti(!0,Rn>=1,Rn>=2,Tr)}else if(Ir===us){var vi=be.data;return new ti(vi.thisDep,vi.contextDep,vi.propDep,Tr)}else{if(Ir===ms)return new ti(!1,!1,!1,Tr);if(Ir===uo){for(var ai=!1,yn=!1,ui=!1,ta=0;ta<be.data.length;++ta){var Gi=be.data[ta];if(Gi.type===so)ui=!0;else if(Gi.type===os)yn=!0;else if(Gi.type===Xo)ai=!0;else if(Gi.type===na){ai=!0;var _a=Gi.data;_a>=1&&(yn=!0),_a>=2&&(ui=!0)}else Gi.type===us&&(ai=ai||Gi.data.thisDep,yn=yn||Gi.data.contextDep,ui=ui||Gi.data.propDep)}return new ti(ai,yn,ui,Tr)}else return new ti(Ir===Xo,Ir===os,Ir===so,Tr)}}var zo=new ti(!1,!1,!1,function(){});function jo(be,Tr,Ir,Rn,vi,ai,yn,ui,ta,Gi,_a,Ka,Na,ia,Pi,dn){var Un=Gi.Record,Ui={add:32774,subtract:32778,"reverse subtract":32779};Ir.ext_blend_minmax&&(Ui.min=Ie,Ui.max=Ne);var Li=Ir.angle_instanced_arrays,oi=Ir.webgl_draw_buffers,Ea=Ir.oes_vertex_array_object,da={dirty:!0,profile:dn.profile},Ha={},Ei=[],si={},La={};function va(Yt){return Yt.replace(".","_")}function Xi(Yt,fe,Ce){var ir=va(Yt);Ei.push(Yt),Ha[ir]=da[ir]=!!Ce,si[ir]=fe}function Qi(Yt,fe,Ce){var ir=va(Yt);Ei.push(Yt),Array.isArray(Ce)?(da[ir]=Ce.slice(),Ha[ir]=Ce.slice()):da[ir]=Ha[ir]=Ce,La[ir]=fe}function ka(Yt){return!!isNaN(Yt)}Xi(Ga,jr),Xi(gs,Or),Qi(el,"blendColor",[0,0,0,0]),Qi(zl,"blendEquationSeparate",[Jr,Jr]),Qi(su,"blendFuncSeparate",[rn,Er,rn,Er]),Xi($l,vn,!0),Qi(lu,"depthFunc",xn),Qi(vl,"depthRange",[0,1]),Qi($u,"depthMask",!0),Qi(zu,zu,[!0,!0,!0,!0]),Xi(du,kr),Qi(Ro,"cullFace",Ut),Qi(Ss,Ss,Ee),Qi(Kl,Kl,1),Xi(Bl,jn),Qi(vc,"polygonOffset",[0,0]),Xi(Hc,li),Xi(Pc,Hi),Qi(zh,"sampleCoverage",[1,!1]),Xi(Wc,en),Qi(Oh,"stencilMask",-1),Qi(Fu,"stencilFunc",[sr,0,-1]),Qi(Dh,"stencilOpSeparate",[At,ar,ar,ar]),Qi(as,"stencilOpSeparate",[Ut,ar,ar,ar]),Xi(Is,In),Qi(qc,"scissor",[0,0,be.drawingBufferWidth,be.drawingBufferHeight]),Qi(Zu,Zu,[0,0,be.drawingBufferWidth,be.drawingBufferHeight]);var Do={gl:be,context:Na,strings:Tr,next:Ha,current:da,draw:Ka,elements:ai,buffer:vi,shader:_a,attributes:Gi.state,vao:Gi,uniforms:ta,framebuffer:ui,extensions:Ir,timer:ia,isBufferArgs:ji},Ao={primTypes:xi,compareFuncs:Wn,blendFuncs:qi,blendEquations:Ui,stencilOps:Si,glTypes:qn,orientationType:zi};oi&&(Ao.backBuffer=[Ut],Ao.drawBuffer=h(Rn.maxDrawbuffers,function(Yt){return Yt===0?[0]:h(Yt,function(fe){return Dn+fe})}));var wa=0;function Fa(){var Yt=Ba({cache:Pi}),fe=Yt.link,Ce=Yt.global;Yt.id=wa++,Yt.batchId="0";var ir=fe(Do),Ye=Yt.shared={props:"a0"};Object.keys(Do).forEach(function(Xe){Ye[Xe]=Ce.def(ir,".",Xe)});var er=Yt.next={},lr=Yt.current={};Object.keys(L
Line truncated
|
||||
`),Un;if(Tr&&(Un=gc(dn),Tr[Un]))return Tr[Un].apply(null,vi);var Vi=Function.apply(null,Rn.concat(dn));return Tr&&(Tr[Un]=Vi),Vi.apply(null,vi)}return{global:_a,link:yn,block:hi,proc:ja,scope:ea,cond:Yi,compile:aa}}var Xa="xyzw".split(""),fa=5121,Oa=1,Aa=2,ia=0,so=1,os=2,Xo=3,us=4,ms=5,uo=6,Ga="dither",gs="blend.enable",el="blend.color",Il="blend.equation",su="blend.func",$l="depth.enable",lu="depth.func",vl="depth.range",$u="depth.mask",Ou="colorMask",du="cull.enable",Ro="cull.face",Ss="frontFace",Kl="lineWidth",Bl="polygonOffset.enable",vc="polygonOffset.offset",Hc="sample.alpha",Pc="sample.enable",Ih="sample.coverage",Wc="stencil.enable",Oh="stencil.mask",Ru="stencil.func",Dh="stencil.opFront",as="stencil.opBack",zs="scissor.enable",qc="scissor.box",Zu="viewport",Zf="profile",$t="framebuffer",I="vert",ht="frag",Ct="elements",Ot="primitive",Ht="count",Ae="offset",Fe="instances",Ke="vao",vr="Width",Fr="Height",Rr=$t+vr,cn=$t+Fr,Sn=Zu+vr,Xt=Zu+Fr,se="drawingBuffer",_e=se+vr,Se=se+Fr,je=[su,Il,Ru,Dh,as,Ih,Zu,qc,vc],De=34962,$e=34963,kr=2884,Or=3042,jr=3024,tn=2960,vn=2929,In=3089,jn=32823,ci=32926,Wi=32928,ga=5126,pa=35664,Ma=35665,co=35666,Vo=5124,Eo=35667,ds=35668,dl=35669,yl=35670,Os=35671,wl=35672,Lu=35673,vu=35674,qs=35675,$s=35676,Ku=35678,dc=35680,$c=4,At=1028,Ut=1029,he=2304,Ce=2305,ze=32775,Ne=32776,sr=519,ar=7680,Cr=0,en=1,Xr=32774,xn=513,On=36160,Fn=36064,Zi={0:0,1:1,zero:0,one:1,"src color":768,"one minus src color":769,"src alpha":770,"one minus src alpha":771,"dst color":774,"one minus dst color":775,"dst alpha":772,"one minus dst alpha":773,"constant color":32769,"one minus constant color":32770,"constant alpha":32771,"one minus constant alpha":32772,"src alpha saturate":776},qn={never:512,less:513,"<":513,equal:514,"=":514,"==":514,"===":514,lequal:515,"<=":515,greater:516,">":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},Mi={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},Ii={cw:he,ccw:Ce};function Ui(be){return Array.isArray(be)||Kr(be)||rn(be)}function Xi(be){return be.sort(function(Tr,zr){return Tr===Zu?-1:zr===Zu?1:Tr<zr?-1:1})}function ri(be,Tr,zr,Rn){this.thisDep=be,this.contextDep=Tr,this.propDep=zr,this.append=Rn}function Va(be){return be&&!(be.thisDep||be.contextDep||be.propDep)}function qa(be){return new ri(!1,!1,!1,be)}function lo(be,Tr){var zr=be.type;if(zr===ia){var Rn=be.data.length;return new ri(!0,Rn>=1,Rn>=2,Tr)}else if(zr===us){var vi=be.data;return new ri(vi.thisDep,vi.contextDep,vi.propDep,Tr)}else{if(zr===ms)return new ri(!1,!1,!1,Tr);if(zr===uo){for(var si=!1,yn=!1,hi=!1,ea=0;ea<be.data.length;++ea){var Yi=be.data[ea];if(Yi.type===so)hi=!0;else if(Yi.type===os)yn=!0;else if(Yi.type===Xo)si=!0;else if(Yi.type===ia){si=!0;var _a=Yi.data;_a>=1&&(yn=!0),_a>=2&&(hi=!0)}else Yi.type===us&&(si=si||Yi.data.thisDep,yn=yn||Yi.data.contextDep,hi=hi||Yi.data.propDep)}return new ri(si,yn,hi,Tr)}else return new ri(zr===Xo,zr===os,zr===so,Tr)}}var Io=new ri(!1,!1,!1,function(){});function jo(be,Tr,zr,Rn,vi,si,yn,hi,ea,Yi,_a,Ka,ja,aa,Pi,dn){var Un=Yi.Record,Vi={add:32774,subtract:32778,"reverse subtract":32779};zr.ext_blend_minmax&&(Vi.min=ze,Vi.max=Ne);var Li=zr.angle_instanced_arrays,li=zr.webgl_draw_buffers,Ca=zr.oes_vertex_array_object,da={dirty:!0,profile:dn.profile},Ha={},Si=[],ui={},La={};function va(Yt){return Yt.replace(".","_")}function Ji(Yt,fe,Ee){var ir=va(Yt);Si.push(Yt),Ha[ir]=da[ir]=!!Ee,ui[ir]=fe}function ta(Yt,fe,Ee){var ir=va(Yt);Si.push(Yt),Array.isArray(Ee)?(da[ir]=Ee.slice(),Ha[ir]=Ee.slice()):da[ir]=Ha[ir]=Ee,La[ir]=fe}function ka(Yt){return!!isNaN(Yt)}Ji(Ga,jr),Ji(gs,Or),ta(el,"blendColor",[0,0,0,0]),ta(Il,"blendEquationSeparate",[Xr,Xr]),ta(su,"blendFuncSeparate",[en,Cr,en,Cr]),Ji($l,vn,!0),ta(lu,"depthFunc",xn),ta(vl,"depthRange",[0,1]),ta($u,"depthMask",!0),ta(Ou,Ou,[!0,!0,!0,!0]),Ji(du,kr),ta(Ro,"cullFace",Ut),ta(Ss,Ss,Ce),ta(Kl,Kl,1),Ji(Bl,jn),ta(vc,"polygonOffset",[0,0]),Ji(Hc,ci),Ji(Pc,Wi),ta(Ih,"sampleCoverage",[1,!1]),Ji(Wc,tn),ta(Oh,"stencilMask",-1),ta(Ru,"stencilFunc",[sr,0,-1]),ta(Dh,"stencilOpSeparate",[At,ar,ar,ar]),ta(as,"stencilOpSeparate",[Ut,ar,ar,ar]),Ji(zs,In),ta(qc,"scissor",[0,0,be.drawingBufferWidth,be.drawingBufferHeight]),ta(Zu,Zu,[0,0,be.drawingBufferWidth,be.drawingBufferHeight]);var Do={gl:be,context:ja,strings:Tr,next:Ha,current:da,draw:Ka,elements:si,buffer:vi,shader:_a,attributes:Yi.state,vao:Yi,uniforms:ea,framebuffer:hi,extensions:zr,timer:aa,isBufferArgs:Ui},Ao={primTypes:xi,compareFuncs:qn,blendFuncs:Zi,blendEquations:Vi,stencilOps:Mi,glTypes:Zn,orientationType:Ii};li&&(Ao.backBuffer=[Ut],Ao.drawBuffer=h(Rn.maxDrawbuffers,function(Yt){return Yt===0?[0]:h(Yt,function(fe){return Fn+fe})}));var wa=0;function Fa(){var Yt=Na({cache:Pi}),fe=Yt.link,Ee=Yt.global;Yt.id=wa++,Yt.batchId="0";var ir=fe(Do),Ye=Yt.shared={props:"a0"};Object.keys(Do).forEach(function(Xe){Ye[Xe]=Ee.def(ir,".",Xe)});var er=Yt.next={},lr=Yt.current={};Object.keys(L
Line truncated
|
||||
`),g=["precision highp float;","","varying vec4 fragColor;","","void main() {"," gl_FragColor = fragColor;","}"].join(`
|
||||
`),I=C3().maxDimensionCount,S=kn(),t=1e-6,e=2048,r=new Uint8Array(4),a=new Uint8Array(4),n={shape:[256,1],format:"rgba",type:"uint8",mag:"nearest",min:"nearest"};function o(A){A.read({x:0,y:0,width:1,height:1,data:r})}function i(A,h,p,k,w){var R=A._gl;R.enable(R.SCISSOR_TEST),R.scissor(h,p,k,w),A.clear({color:[0,0,0,0],depth:1})}function l(A,h,p,k,w,R){var O=R.key;function j(V){var H=Math.min(k,w-V*k);V===0&&(window.cancelAnimationFrame(p.currentRafs[O]),delete p.currentRafs[O],i(A,R.scissorX,R.scissorY,R.scissorWidth,R.viewBoxSize[1])),!p.clearOnly&&(R.count=2*H,R.offset=2*V*k,h(R),V*k+H<w&&(p.currentRafs[O]=window.requestAnimationFrame(function(){j(V+1)})),p.drawCompleted=!1)}p.drawCompleted||(o(A),p.drawCompleted=!0),j(0)}function f(A){return Math.max(t,Math.min(1-t,A))}function x(A,h){for(var p=new Array(256),k=0;k<256;k++)p[k]=A(k/255).concat(h);return p}function y(A,h){return(A>>>8*h)%256/255}function v(A,h,p){for(var k=new Array(A*(I+4)),w=0,R=0;R<A;R++){for(var O=0;O<I;O++)k[w++]=O<h.length?h[O].paddedUnitValues[R]:.5;k[w++]=y(R,2),k[w++]=y(R,1),k[w++]=y(R,0),k[w++]=f(p[R])}return k}function T(A,h,p){for(var k=new Array(h*8),w=0,R=0;R<h;R++)for(var O=0;O<2;O++)for(var j=0;j<4;j++){var V=A*4+j,H=p[R*64+V];V===63&&O===0&&(H*=-1),k[w++]=H}return k}function u(A){var h="0"+A;return h.substr(h.length-2)}function b(A){return A<I?"p"+u(A+1)+"_"+u(A+4):"colors"}function _(A,h,p){for(var k=0;k<=I;k+=4)A[b(k)](T(k/4,h,p))}function P(A){for(var h={},p=0;p<=I;p+=4)h[b(p)]=A.buffer({usage:"dynamic",type:"float",data:new Uint8Array(0)});return h}function M(A,h,p,k,w,R,O,j,V,H,F,U,W,q){for(var J=[[],[]],lt=0;lt<64;lt++)J[0][lt]=lt===w?1:0,J[1][lt]=lt===R?1:0;O*=q,j*=q,V*=q,H*=q;var yt=A.lines.canvasOverdrag*q,mt=A.domain,st=A.canvasWidth*q,tt=A.canvasHeight*q,pt=A.pad.l*q,rt=A.pad.b*q,at=A.layoutHeight*q,vt=A.layoutWidth*q,it=A.deselectedLines.color,Y=A.deselectedLines.opacity,ft=S.extendFlat({key:F,resolution:[st,tt],viewBoxPos:[O+yt,j],viewBoxSize:[V,H],i0:w,i1:R,dim0A:J[0].slice(0,16),dim0B:J[0].slice(16,32),dim0C:J[0].slice(32,48),dim0D:J[0].slice(48,64),dim1A:J[1].slice(0,16),dim1B:J[1].slice(16,32),dim1C:J[1].slice(32,48),dim1D:J[1].slice(48,64),drwLayer:U,contextColor:[it[0]/255,it[1]/255,it[2]/255,Y!=="auto"?it[3]*Y:Math.max(1/255,Math.pow(1/A.lines.color.length,1/3))],scissorX:(k===h?0:O+yt)+(pt-yt)+vt*mt.x[0],scissorWidth:(k===p?st-O+yt:V+.5)+(k===h?O+yt:0),scissorY:j+rt+at*mt.y[0],scissorHeight:H,viewportX:pt-yt+vt*mt.x[0],viewportY:rt+at*mt.y[0],viewportWidth:st,viewportHeight:tt},W);return ft}function C(A){var h=e-1,p=Math.max(0,Math.floor(A[0]*h),0),k=Math.min(h,Math.ceil(A[1]*h),h);return[Math.min(p,k),Math.max(p,k)]}Z.exports=function(A,h){var p=h.context,k=h.pick,w=h.regl,R=w._gl,O=R.getParameter(R.ALIASED_LINE_WIDTH_RANGE),j=Math.max(O[0],Math.min(O[1],h.viewModel.plotGlPixelRatio)),V={currentRafs:{},drawCompleted:!0,clearOnly:!1},H,F,U,W,q=P(w),J,lt=w.texture(n),yt=[];st(h);var mt=w({profile:!1,blend:{enable:p,func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:1,dstAlpha:1},equation:{rgb:"add",alpha:"add"},color:[0,0,0,0]},depth:{enable:!p,mask:!0,func:"less",range:[0,1]},cull:{enable:!0,face:"back"},scissor:{enable:!0,box:{x:w.prop("scissorX"),y:w.prop("scissorY"),width:w.prop("scissorWidth"),height:w.prop("scissorHeight")}},viewport:{x:w.prop("viewportX"),y:w.prop("viewportY"),width:w.prop("viewportWidth"),height:w.prop("viewportHeight")},dither:!1,vert:c,frag:g,primitive:"lines",lineWidth:j,attributes:q,uniforms:{resolution:w.prop("resolution"),viewBoxPos:w.prop("viewBoxPos"),viewBoxSize:w.prop("viewBoxSize"),dim0A:w.prop("dim0A"),dim1A:w.prop("dim1A"),dim0B:w.prop("dim0B"),dim1B:w.prop("dim1B"),dim0C:w.prop("dim0C"),dim1C:w.prop("dim1C"),dim0D:w.prop("dim0D"),dim1D:w.prop("dim1D"),loA:w.prop("loA"),hiA:w.prop("hiA"),loB:w.prop("loB"),hiB:w.prop("hiB"),loC:w.prop("loC"),hiC:w.prop("hiC"),loD:w.prop("loD"),hiD:w.prop("hiD"),palette:lt,contextColor:w.prop("contextColor"),maskTexture:w.prop("maskTexture"),drwLayer:w.prop("drwLayer"),maskHeight:w.prop("maskHeight")},offset:w.prop("offset"),count:w.prop("count")});function st(it){H=it.model,F=it.viewModel,U=F.dimensions.slice(),W=U[0]?U[0].values.length:0;var Y=H.lines,ft=k?Y.color.map(function(kt,zt){return zt/Y.color.length}):Y.color,ut=v(W,U,ft);_(q,W,ut),!p&&!k&&(lt=w.texture(S.extendFlat({data:x(H.unitToColor,255)},n)))}function tt(it){var Y,ft,ut,kt=[[],[]];for(ut=0;ut<64;ut++){var zt=!it&&ut<U.length?U[ut].brush.filter.getBounds():[-1/0,1/0];kt[0][ut]=zt[0],kt[1][ut]=zt[1]}var Pt=e*8,qt=new Array(Pt);for(Y=0;Y<Pt;Y++)qt[Y]=255;if(!it)for(Y=0;Y<U.length;Y++){var Wt=Y%8,Jt=(Y-Wt)/8,ve=Math.pow(2,Wt),de=U[Y],me=de.brush.filter.get();if(!(me.length<2)){var ue=C(me[0])[1];for(ft=1;ft<me.length;ft++){var Tt=C(me[ft]);for(ut=ue+1;ut<Tt[0];ut++)qt[ut*8+Jt]&=~ve;ue=Math.max(ue,Tt[1])}}}var Lt={shape:[8,e],format:"alpha",type:"uint8",mag:"nearest",min:"nearest",data:qt};return J?J(Lt):J=w.texture(Lt),{maskTexture:J,maskHeight:e,loA:kt[0].
Line truncated
|
||||
`),z=L3().maxDimensionCount,S=kn(),t=1e-6,e=2048,r=new Uint8Array(4),a=new Uint8Array(4),n={shape:[256,1],format:"rgba",type:"uint8",mag:"nearest",min:"nearest"};function o(A){A.read({x:0,y:0,width:1,height:1,data:r})}function i(A,h,p,k,w){var R=A._gl;R.enable(R.SCISSOR_TEST),R.scissor(h,p,k,w),A.clear({color:[0,0,0,0],depth:1})}function l(A,h,p,k,w,R){var O=R.key;function j(V){var H=Math.min(k,w-V*k);V===0&&(window.cancelAnimationFrame(p.currentRafs[O]),delete p.currentRafs[O],i(A,R.scissorX,R.scissorY,R.scissorWidth,R.viewBoxSize[1])),!p.clearOnly&&(R.count=2*H,R.offset=2*V*k,h(R),V*k+H<w&&(p.currentRafs[O]=window.requestAnimationFrame(function(){j(V+1)})),p.drawCompleted=!1)}p.drawCompleted||(o(A),p.drawCompleted=!0),j(0)}function f(A){return Math.max(t,Math.min(1-t,A))}function x(A,h){for(var p=new Array(256),k=0;k<256;k++)p[k]=A(k/255).concat(h);return p}function y(A,h){return(A>>>8*h)%256/255}function v(A,h,p){for(var k=new Array(A*(z+4)),w=0,R=0;R<A;R++){for(var O=0;O<z;O++)k[w++]=O<h.length?h[O].paddedUnitValues[R]:.5;k[w++]=y(R,2),k[w++]=y(R,1),k[w++]=y(R,0),k[w++]=f(p[R])}return k}function T(A,h,p){for(var k=new Array(h*8),w=0,R=0;R<h;R++)for(var O=0;O<2;O++)for(var j=0;j<4;j++){var V=A*4+j,H=p[R*64+V];V===63&&O===0&&(H*=-1),k[w++]=H}return k}function u(A){var h="0"+A;return h.substr(h.length-2)}function b(A){return A<z?"p"+u(A+1)+"_"+u(A+4):"colors"}function _(A,h,p){for(var k=0;k<=z;k+=4)A[b(k)](T(k/4,h,p))}function P(A){for(var h={},p=0;p<=z;p+=4)h[b(p)]=A.buffer({usage:"dynamic",type:"float",data:new Uint8Array(0)});return h}function M(A,h,p,k,w,R,O,j,V,H,F,U,W,q){for(var J=[[],[]],lt=0;lt<64;lt++)J[0][lt]=lt===w?1:0,J[1][lt]=lt===R?1:0;O*=q,j*=q,V*=q,H*=q;var yt=A.lines.canvasOverdrag*q,mt=A.domain,st=A.canvasWidth*q,tt=A.canvasHeight*q,pt=A.pad.l*q,rt=A.pad.b*q,at=A.layoutHeight*q,vt=A.layoutWidth*q,it=A.deselectedLines.color,Y=A.deselectedLines.opacity,ft=S.extendFlat({key:F,resolution:[st,tt],viewBoxPos:[O+yt,j],viewBoxSize:[V,H],i0:w,i1:R,dim0A:J[0].slice(0,16),dim0B:J[0].slice(16,32),dim0C:J[0].slice(32,48),dim0D:J[0].slice(48,64),dim1A:J[1].slice(0,16),dim1B:J[1].slice(16,32),dim1C:J[1].slice(32,48),dim1D:J[1].slice(48,64),drwLayer:U,contextColor:[it[0]/255,it[1]/255,it[2]/255,Y!=="auto"?it[3]*Y:Math.max(1/255,Math.pow(1/A.lines.color.length,1/3))],scissorX:(k===h?0:O+yt)+(pt-yt)+vt*mt.x[0],scissorWidth:(k===p?st-O+yt:V+.5)+(k===h?O+yt:0),scissorY:j+rt+at*mt.y[0],scissorHeight:H,viewportX:pt-yt+vt*mt.x[0],viewportY:rt+at*mt.y[0],viewportWidth:st,viewportHeight:tt},W);return ft}function E(A){var h=e-1,p=Math.max(0,Math.floor(A[0]*h),0),k=Math.min(h,Math.ceil(A[1]*h),h);return[Math.min(p,k),Math.max(p,k)]}Z.exports=function(A,h){var p=h.context,k=h.pick,w=h.regl,R=w._gl,O=R.getParameter(R.ALIASED_LINE_WIDTH_RANGE),j=Math.max(O[0],Math.min(O[1],h.viewModel.plotGlPixelRatio)),V={currentRafs:{},drawCompleted:!0,clearOnly:!1},H,F,U,W,q=P(w),J,lt=w.texture(n),yt=[];st(h);var mt=w({profile:!1,blend:{enable:p,func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:1,dstAlpha:1},equation:{rgb:"add",alpha:"add"},color:[0,0,0,0]},depth:{enable:!p,mask:!0,func:"less",range:[0,1]},cull:{enable:!0,face:"back"},scissor:{enable:!0,box:{x:w.prop("scissorX"),y:w.prop("scissorY"),width:w.prop("scissorWidth"),height:w.prop("scissorHeight")}},viewport:{x:w.prop("viewportX"),y:w.prop("viewportY"),width:w.prop("viewportWidth"),height:w.prop("viewportHeight")},dither:!1,vert:c,frag:g,primitive:"lines",lineWidth:j,attributes:q,uniforms:{resolution:w.prop("resolution"),viewBoxPos:w.prop("viewBoxPos"),viewBoxSize:w.prop("viewBoxSize"),dim0A:w.prop("dim0A"),dim1A:w.prop("dim1A"),dim0B:w.prop("dim0B"),dim1B:w.prop("dim1B"),dim0C:w.prop("dim0C"),dim1C:w.prop("dim1C"),dim0D:w.prop("dim0D"),dim1D:w.prop("dim1D"),loA:w.prop("loA"),hiA:w.prop("hiA"),loB:w.prop("loB"),hiB:w.prop("hiB"),loC:w.prop("loC"),hiC:w.prop("hiC"),loD:w.prop("loD"),hiD:w.prop("hiD"),palette:lt,contextColor:w.prop("contextColor"),maskTexture:w.prop("maskTexture"),drwLayer:w.prop("drwLayer"),maskHeight:w.prop("maskHeight")},offset:w.prop("offset"),count:w.prop("count")});function st(it){H=it.model,F=it.viewModel,U=F.dimensions.slice(),W=U[0]?U[0].values.length:0;var Y=H.lines,ft=k?Y.color.map(function(kt,It){return It/Y.color.length}):Y.color,ut=v(W,U,ft);_(q,W,ut),!p&&!k&&(lt=w.texture(S.extendFlat({data:x(H.unitToColor,255)},n)))}function tt(it){var Y,ft,ut,kt=[[],[]];for(ut=0;ut<64;ut++){var It=!it&&ut<U.length?U[ut].brush.filter.getBounds():[-1/0,1/0];kt[0][ut]=It[0],kt[1][ut]=It[1]}var Pt=e*8,qt=new Array(Pt);for(Y=0;Y<Pt;Y++)qt[Y]=255;if(!it)for(Y=0;Y<U.length;Y++){var Wt=Y%8,Jt=(Y-Wt)/8,ve=Math.pow(2,Wt),de=U[Y],me=de.brush.filter.get();if(!(me.length<2)){var ue=E(me[0])[1];for(ft=1;ft<me.length;ft++){var Tt=E(me[ft]);for(ut=ue+1;ut<Tt[0];ut++)qt[ut*8+Jt]&=~ve;ue=Math.max(ue,Tt[1])}}}var Lt={shape:[8,e],format:"alpha",type:"uint8",mag:"nearest",min:"nearest",data:qt};return J?J(Lt):J=w.texture(Lt),{maskTexture:J,maskHeight:e,loA:kt[0].
Line truncated
|
||||
`),noAccessTokenErrorMsg:["Missing Mapbox access token.","Mapbox trace type require a Mapbox access token to be registered.","For example:"," Plotly.newPlot(gd, data, layout, { mapboxAccessToken: 'my-access-token' });","More info here: https://www.mapbox.com/help/define-access-token/"].join(`
|
||||
`),missingStyleErrorMsg:["No valid mapbox style found, please set `mapbox.style` to one of:",a.join(", "),"or register a Mapbox access token to use a Mapbox-served style."].join(`
|
||||
`),multipleTokensErrorMsg:["Set multiple mapbox access token across different mapbox subplot,","using first token found as mapbox-gl does not allow multipleaccess tokens on the same page."].join(`
|
||||
`),mapOnErrorMsg:"Mapbox error.",mapboxLogo:{path0:"m 10.5,1.24 c -5.11,0 -9.25,4.15 -9.25,9.25 0,5.1 4.15,9.25 9.25,9.25 5.1,0 9.25,-4.15 9.25,-9.25 0,-5.11 -4.14,-9.25 -9.25,-9.25 z m 4.39,11.53 c -1.93,1.93 -4.78,2.31 -6.7,2.31 -0.7,0 -1.41,-0.05 -2.1,-0.16 0,0 -1.02,-5.64 2.14,-8.81 0.83,-0.83 1.95,-1.28 3.13,-1.28 1.27,0 2.49,0.51 3.39,1.42 1.84,1.84 1.89,4.75 0.14,6.52 z",path1:"M 10.5,-0.01 C 4.7,-0.01 0,4.7 0,10.49 c 0,5.79 4.7,10.5 10.5,10.5 5.8,0 10.5,-4.7 10.5,-10.5 C 20.99,4.7 16.3,-0.01 10.5,-0.01 Z m 0,19.75 c -5.11,0 -9.25,-4.15 -9.25,-9.25 0,-5.1 4.14,-9.26 9.25,-9.26 5.11,0 9.25,4.15 9.25,9.25 0,5.13 -4.14,9.26 -9.25,9.26 z",path2:"M 14.74,6.25 C 12.9,4.41 9.98,4.35 8.23,6.1 5.07,9.27 6.09,14.91 6.09,14.91 c 0,0 5.64,1.02 8.81,-2.14 C 16.64,11 16.59,8.09 14.74,6.25 Z m -2.27,4.09 -0.91,1.87 -0.9,-1.87 -1.86,-0.91 1.86,-0.9 0.9,-1.87 0.91,1.87 1.86,0.9 z",polygon:"11.56,12.21 10.66,10.34 8.8,9.43 10.66,8.53 11.56,6.66 12.47,8.53 14.33,9.43 12.47,10.34"},styleRules:{map:"overflow:hidden;position:relative;","missing-css":"display:none;",canary:"background-color:salmon;","ctrl-bottom-left":"position: absolute; pointer-events: none; z-index: 2; bottom: 0; left: 0;","ctrl-bottom-right":"position: absolute; pointer-events: none; z-index: 2; right: 0; bottom: 0;",ctrl:"clear: both; pointer-events: auto; transform: translate(0, 0);","ctrl-attrib.mapboxgl-compact .mapboxgl-ctrl-attrib-inner":"display: none;","ctrl-attrib.mapboxgl-compact:hover .mapboxgl-ctrl-attrib-inner":"display: block; margin-top:2px","ctrl-attrib.mapboxgl-compact:hover":"padding: 2px 24px 2px 4px; visibility: visible; margin-top: 6px;","ctrl-attrib.mapboxgl-compact::after":`content: ""; cursor: pointer; position: absolute; background-image: url('data:image/svg+xml;charset=utf-8,%3Csvg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"%3E %3Cpath fill="%23333333" fill-rule="evenodd" d="M4,10a6,6 0 1,0 12,0a6,6 0 1,0 -12,0 M9,7a1,1 0 1,0 2,0a1,1 0 1,0 -2,0 M9,10a1,1 0 1,1 2,0l0,3a1,1 0 1,1 -2,0"/%3E %3C/svg%3E'); background-color: rgba(255, 255, 255, 0.5); width: 24px; height: 24px; box-sizing: border-box; border-radius: 12px;`,"ctrl-attrib.mapboxgl-compact":"min-height: 20px; padding: 0; margin: 10px; position: relative; background-color: #fff; border-radius: 3px 12px 12px 3px;","ctrl-bottom-right > .mapboxgl-ctrl-attrib.mapboxgl-compact::after":"bottom: 0; right: 0","ctrl-bottom-left > .mapboxgl-ctrl-attrib.mapboxgl-compact::after":"bottom: 0; left: 0","ctrl-bottom-left .mapboxgl-ctrl":"margin: 0 0 10px 10px; float: left;","ctrl-bottom-right .mapboxgl-ctrl":"margin: 0 10px 10px 0; float: right;","ctrl-attrib":"color: rgba(0, 0, 0, 0.75); text-decoration: none; font-size: 12px","ctrl-attrib a":"color: rgba(0, 0, 0, 0.75); text-decoration: none; font-size: 12px","ctrl-attrib a:hover":"color: inherit; text-decoration: underline;","ctrl-attrib .mapbox-improve-map":"font-weight: bold; margin-left: 2px;","attrib-empty":"display: none;","ctrl-logo":`display:block; width: 21px; height: 21px; background-image: url('data:image/svg+xml;charset=utf-8,%3C?xml version="1.0" encoding="utf-8"?%3E %3Csvg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 21 21" style="enable-background:new 0 0 21 21;" xml:space="preserve"%3E%3Cg transform="translate(0,0.01)"%3E%3Cpath d="m 10.5,1.24 c -5.11,0 -9.25,4.15 -9.25,9.25 0,5.1 4.15,9.25 9.25,9.25 5.1,0 9.25,-4.15 9.25,-9.25 0,-5.11 -4.14,-9.25 -9.25,-9.25 z m 4.39,11.53 c -1.93,1.93 -4.78,2.31 -6.7,2.31 -0.7,0 -1.41,-0.05 -2.1,-0.16 0,0 -1.02,-5.64 2.14,-8.81 0.83,-0.83 1.95,-1.28 3.13,-1.28 1.27,0 2.49,0.51 3.39,1.42 1.84,1.84 1.89,4.75 0.14,6.52 z" style="opacity:0.9;fill:%23ffffff;enable-background:new" class="st0"/%3E%3Cpath d="M 10.5,-0.01 C 4.7,-0.01 0,4.7 0,10.49 c 0,5.79 4.7,10.5 10.5,10.5 5.8,0 10.5,-4.7 10.5,-10.5 C 20.99,4.7 16.3,-0.01 10.5,-0.01 Z m 0,19.75 c -5.11,0 -9.25,-4.15 -9.25,-9.25 0,-5.1 4.14,-9.26 9.25,-9.26 5.11,0 9.25,4.15 9.25,9.25 0,5.13 -4.14,9.26 -9.25,9.26 z" style="opacity:0.35;enable-background:new" class="st1"/%3E%3Cpath d="M 14.74,6.25 C 12.9,4.41 9.98,4.35 8.23,6.1 5.07,9.27 6.09,14.91 6.09,14.91 c 0,0 5.64,1.02 8.81,-2.14 C 16.64,11 16.59,8.09 14.74,6.25 Z m -2.27,4.09 -0.91,1.87 -0.9,-1.87 -1.86,-0.91 1.86,-0.9 0.9,-1.87 0.91,1.87 1.86,0.9 z" style="opacity:0.35;enable-background:new" class="st1"/%3E%3Cpolygon points="11.56,12.21 10.66,10.34 8.8,9.43 10.66,8.53 11.56,6.66 12.47,8.53 14.33,9.43 12.47,10.34 " style="opacity:0.9;fill:%23ffffff;enable-background:new" class="st0"/%3E%3C/g%3E%3C/svg%3E')`}}}),I3=Dt((Q,Z)=>{var c=kn(),g=fi().defaultLine,I=Uh().attributes,S=ha(),t=ef().textposition,e=Kc().overrideAll,r=gu().templatedArray,a=Lv(),n=S({noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0});n.family.dflt="Open Sans Regular, Arial Unicode MS Regular";var o=Z.exports=e({_arrayAttrRegexps:[c.counterRegex("mapbox",".layers",!0)],domain:I({name:"mapbox"}),acce
Line truncated
|
||||
`)),V.push({type:"Feature",geometry:{type:"Point",coordinates:F.lonlat},properties:{symbol:R(H),angle:O(H),text:W}})}}return{type:"FeatureCollection",features:V}}function T(M,C){return g.isArrayOrTypedArray(M)?C?function(A){return c(M[A])?+M[A]:0}:function(A){return M[A]}:M?function(){return M}:u}function u(){return""}function b(M){return M[0]===I}function _(M,C){var A;if(g.isArrayOrTypedArray(M)&&g.isArrayOrTypedArray(C)){A=["step",["get","point_count"],M[0]];for(var h=1;h<M.length;h++)A.push(C[h-1],M[h])}else A=M;return A}function P(M){var C=M.textfont,A=C.family,h=C.style,p=C.weight,k=A.split(" "),w=k[k.length-1]==="Italic";w&&k.pop(),w=w||h==="italic";var R=k.join(" ");p==="bold"&&k.indexOf("Bold")===-1?R+=" Bold":p<=1e3&&(k[0]==="Metropolis"?(R="Metropolis",p>850?R+=" Black":p>750?R+=" Extra Bold":p>650?R+=" Bold":p>550?R+=" Semi Bold":p>450?R+=" Medium":p>350?R+=" Regular":p>250?R+=" Light":p>150?R+=" Extra Light":R+=" Thin"):k.slice(0,2).join(" ")==="Open Sans"?(R="Open Sans",p>750?R+=" Extrabold":p>650?R+=" Bold":p>550?R+=" Semibold":p>350?R+=" Regular":R+=" Light"):k.slice(0,3).join(" ")==="Klokantech Noto Sans"&&(R="Klokantech Noto Sans",k[3]==="CJK"&&(R+=" CJK"),R+=p>500?" Bold":" Regular")),w&&(R+=" Italic"),R==="Open Sans Regular Italic"?R="Open Sans Italic":R==="Open Sans Regular Bold"?R="Open Sans Bold":R==="Open Sans Regular Bold Italic"?R="Open Sans Bold Italic":R==="Klokantech Noto Sans Regular Italic"&&(R="Klokantech Noto Sans Italic"),n(R)||(R=A);var O=R.split(", ");return O}}),VW=Dt((Q,Z)=>{var c=kn(),g=UW(),I=Lv().traceLayerPrefix,S={cluster:["cluster","clusterCount","circle"],nonCluster:["fill","line","circle","symbol"]};function t(r,a,n,o){this.type="scattermapbox",this.subplot=r,this.uid=a,this.clusterEnabled=n,this.isHidden=o,this.sourceIds={fill:"source-"+a+"-fill",line:"source-"+a+"-line",circle:"source-"+a+"-circle",symbol:"source-"+a+"-symbol",cluster:"source-"+a+"-circle",clusterCount:"source-"+a+"-circle"},this.layerIds={fill:I+a+"-fill",line:I+a+"-line",circle:I+a+"-circle",symbol:I+a+"-symbol",cluster:I+a+"-cluster",clusterCount:I+a+"-cluster-count"},this.below=null}var e=t.prototype;e.addSource=function(r,a,n){var o={type:"geojson",data:a.geojson};n&&n.enabled&&c.extendFlat(o,{cluster:!0,clusterMaxZoom:n.maxzoom});var i=this.subplot.map.getSource(this.sourceIds[r]);i?i.setData(a.geojson):this.subplot.map.addSource(this.sourceIds[r],o)},e.setSourceData=function(r,a){this.subplot.map.getSource(this.sourceIds[r]).setData(a.geojson)},e.addLayer=function(r,a,n){var o={type:a.type,id:this.layerIds[r],source:this.sourceIds[r],layout:a.layout,paint:a.paint};a.filter&&(o.filter=a.filter);for(var i=this.layerIds[r],l,f=this.subplot.getMapLayers(),x=0;x<f.length;x++)if(f[x].id===i){l=!0;break}l?(this.subplot.setOptions(i,"setLayoutProperty",o.layout),o.layout.visibility==="visible"&&this.subplot.setOptions(i,"setPaintProperty",o.paint)):this.subplot.addLayer(o,n)},e.update=function(r){var a=r[0].trace,n=this.subplot,o=n.map,i=g(n.gd,r),l=n.belowLookup["trace-"+this.uid],f=!!(a.cluster&&a.cluster.enabled),x=!!this.clusterEnabled,y=this;function v(h){h||y.addSource("circle",i.circle,a.cluster);for(var p=S.cluster,k=0;k<p.length;k++){var w=p[k],R=i[w];y.addLayer(w,R,l)}}function T(h){for(var p=S.cluster,k=p.length-1;k>=0;k--){var w=p[k];o.removeLayer(y.layerIds[w])}h||o.removeSource(y.sourceIds.circle)}function u(h){for(var p=S.nonCluster,k=0;k<p.length;k++){var w=p[k],R=i[w];h||y.addSource(w,R),y.addLayer(w,R,l)}}function b(h){for(var p=S.nonCluster,k=p.length-1;k>=0;k--){var w=p[k];o.removeLayer(y.layerIds[w]),h||o.removeSource(y.sourceIds[w])}}function _(h){x?T(h):b(h)}function P(h){f?v(h):u(h)}function M(){for(var h=f?S.cluster:S.nonCluster,p=0;p<h.length;p++){var k=h[p],w=i[k];w&&(n.setOptions(y.layerIds[k],"setLayoutProperty",w.layout),w.layout.visibility==="visible"&&(k!=="cluster"&&y.setSourceData(k,w),n.setOptions(y.layerIds[k],"setPaintProperty",w.paint)))}}var C=this.isHidden,A=a.visible!==!0;A?C||_():C?A||P():x!==f?(_(),P()):(this.below!==l&&(_(!0),P(!0)),M()),this.clusterEnabled=f,this.isHidden=A,this.below=l,r[0].trace._glTrace=this},e.dispose=function(){for(var r=this.subplot.map,a=this.clusterEnabled?S.cluster:S.nonCluster,n=a.length-1;n>=0;n--){var o=a[n];r.removeLayer(this.layerIds[o]),r.removeSource(this.sourceIds[o])}},Z.exports=function(r,a){var n=a[0].trace,o=n.cluster&&n.cluster.enabled,i=n.visible!==!0,l=new t(r,n.uid,o,i),f=g(r.gd,a),x=l.below=r.belowLookup["trace-"+n.uid],y,v,T;if(o)for(l.addSource("circle",f.circle,n.cluster),y=0;y<S.cluster.length;y++)v=S.cluster[y],T=f[v],l.addLayer(v,T,x);else for(y=0;y<S.nonCluster.length;y++)v=S.nonCluster[y],T=f[v],l.addSource(v,T,n.cluster),l.addLayer(v,T,x);return a[0].trace._glTrace=l,l}}),wT=Dt((Q,Z)=>{var c=tf(),g=kn(),I=Bu(),S=g.fillText,t=sa().BADNUM,e=Lv().traceLayerPrefix;function r(n,o,i){var l=n.cd,f=l[0].trace,x=n.xa,y=n.ya,v=n.subplot,T=[],u=e+f.uid+"-circle",b=f.cluster&&f.cluster.enabled;if(b){var _=v.map
Line truncated
|
||||
`),mapOnErrorMsg:"Mapbox error.",mapboxLogo:{path0:"m 10.5,1.24 c -5.11,0 -9.25,4.15 -9.25,9.25 0,5.1 4.15,9.25 9.25,9.25 5.1,0 9.25,-4.15 9.25,-9.25 0,-5.11 -4.14,-9.25 -9.25,-9.25 z m 4.39,11.53 c -1.93,1.93 -4.78,2.31 -6.7,2.31 -0.7,0 -1.41,-0.05 -2.1,-0.16 0,0 -1.02,-5.64 2.14,-8.81 0.83,-0.83 1.95,-1.28 3.13,-1.28 1.27,0 2.49,0.51 3.39,1.42 1.84,1.84 1.89,4.75 0.14,6.52 z",path1:"M 10.5,-0.01 C 4.7,-0.01 0,4.7 0,10.49 c 0,5.79 4.7,10.5 10.5,10.5 5.8,0 10.5,-4.7 10.5,-10.5 C 20.99,4.7 16.3,-0.01 10.5,-0.01 Z m 0,19.75 c -5.11,0 -9.25,-4.15 -9.25,-9.25 0,-5.1 4.14,-9.26 9.25,-9.26 5.11,0 9.25,4.15 9.25,9.25 0,5.13 -4.14,9.26 -9.25,9.26 z",path2:"M 14.74,6.25 C 12.9,4.41 9.98,4.35 8.23,6.1 5.07,9.27 6.09,14.91 6.09,14.91 c 0,0 5.64,1.02 8.81,-2.14 C 16.64,11 16.59,8.09 14.74,6.25 Z m -2.27,4.09 -0.91,1.87 -0.9,-1.87 -1.86,-0.91 1.86,-0.9 0.9,-1.87 0.91,1.87 1.86,0.9 z",polygon:"11.56,12.21 10.66,10.34 8.8,9.43 10.66,8.53 11.56,6.66 12.47,8.53 14.33,9.43 12.47,10.34"},styleRules:{map:"overflow:hidden;position:relative;","missing-css":"display:none;",canary:"background-color:salmon;","ctrl-bottom-left":"position: absolute; pointer-events: none; z-index: 2; bottom: 0; left: 0;","ctrl-bottom-right":"position: absolute; pointer-events: none; z-index: 2; right: 0; bottom: 0;",ctrl:"clear: both; pointer-events: auto; transform: translate(0, 0);","ctrl-attrib.mapboxgl-compact .mapboxgl-ctrl-attrib-inner":"display: none;","ctrl-attrib.mapboxgl-compact:hover .mapboxgl-ctrl-attrib-inner":"display: block; margin-top:2px","ctrl-attrib.mapboxgl-compact:hover":"padding: 2px 24px 2px 4px; visibility: visible; margin-top: 6px;","ctrl-attrib.mapboxgl-compact::after":`content: ""; cursor: pointer; position: absolute; background-image: url('data:image/svg+xml;charset=utf-8,%3Csvg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"%3E %3Cpath fill="%23333333" fill-rule="evenodd" d="M4,10a6,6 0 1,0 12,0a6,6 0 1,0 -12,0 M9,7a1,1 0 1,0 2,0a1,1 0 1,0 -2,0 M9,10a1,1 0 1,1 2,0l0,3a1,1 0 1,1 -2,0"/%3E %3C/svg%3E'); background-color: rgba(255, 255, 255, 0.5); width: 24px; height: 24px; box-sizing: border-box; border-radius: 12px;`,"ctrl-attrib.mapboxgl-compact":"min-height: 20px; padding: 0; margin: 10px; position: relative; background-color: #fff; border-radius: 3px 12px 12px 3px;","ctrl-bottom-right > .mapboxgl-ctrl-attrib.mapboxgl-compact::after":"bottom: 0; right: 0","ctrl-bottom-left > .mapboxgl-ctrl-attrib.mapboxgl-compact::after":"bottom: 0; left: 0","ctrl-bottom-left .mapboxgl-ctrl":"margin: 0 0 10px 10px; float: left;","ctrl-bottom-right .mapboxgl-ctrl":"margin: 0 10px 10px 0; float: right;","ctrl-attrib":"color: rgba(0, 0, 0, 0.75); text-decoration: none; font-size: 12px","ctrl-attrib a":"color: rgba(0, 0, 0, 0.75); text-decoration: none; font-size: 12px","ctrl-attrib a:hover":"color: inherit; text-decoration: underline;","ctrl-attrib .mapbox-improve-map":"font-weight: bold; margin-left: 2px;","attrib-empty":"display: none;","ctrl-logo":`display:block; width: 21px; height: 21px; background-image: url('data:image/svg+xml;charset=utf-8,%3C?xml version="1.0" encoding="utf-8"?%3E %3Csvg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 21 21" style="enable-background:new 0 0 21 21;" xml:space="preserve"%3E%3Cg transform="translate(0,0.01)"%3E%3Cpath d="m 10.5,1.24 c -5.11,0 -9.25,4.15 -9.25,9.25 0,5.1 4.15,9.25 9.25,9.25 5.1,0 9.25,-4.15 9.25,-9.25 0,-5.11 -4.14,-9.25 -9.25,-9.25 z m 4.39,11.53 c -1.93,1.93 -4.78,2.31 -6.7,2.31 -0.7,0 -1.41,-0.05 -2.1,-0.16 0,0 -1.02,-5.64 2.14,-8.81 0.83,-0.83 1.95,-1.28 3.13,-1.28 1.27,0 2.49,0.51 3.39,1.42 1.84,1.84 1.89,4.75 0.14,6.52 z" style="opacity:0.9;fill:%23ffffff;enable-background:new" class="st0"/%3E%3Cpath d="M 10.5,-0.01 C 4.7,-0.01 0,4.7 0,10.49 c 0,5.79 4.7,10.5 10.5,10.5 5.8,0 10.5,-4.7 10.5,-10.5 C 20.99,4.7 16.3,-0.01 10.5,-0.01 Z m 0,19.75 c -5.11,0 -9.25,-4.15 -9.25,-9.25 0,-5.1 4.14,-9.26 9.25,-9.26 5.11,0 9.25,4.15 9.25,9.25 0,5.13 -4.14,9.26 -9.25,9.26 z" style="opacity:0.35;enable-background:new" class="st1"/%3E%3Cpath d="M 14.74,6.25 C 12.9,4.41 9.98,4.35 8.23,6.1 5.07,9.27 6.09,14.91 6.09,14.91 c 0,0 5.64,1.02 8.81,-2.14 C 16.64,11 16.59,8.09 14.74,6.25 Z m -2.27,4.09 -0.91,1.87 -0.9,-1.87 -1.86,-0.91 1.86,-0.9 0.9,-1.87 0.91,1.87 1.86,0.9 z" style="opacity:0.35;enable-background:new" class="st1"/%3E%3Cpolygon points="11.56,12.21 10.66,10.34 8.8,9.43 10.66,8.53 11.56,6.66 12.47,8.53 14.33,9.43 12.47,10.34 " style="opacity:0.9;fill:%23ffffff;enable-background:new" class="st0"/%3E%3C/g%3E%3C/svg%3E')`}}}),I3=Dt((Q,Z)=>{var c=kn(),g=pi().defaultLine,z=Uh().attributes,S=ha(),t=ef().textposition,e=Kc().overrideAll,r=gu().templatedArray,a=Lv(),n=S({noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0});n.family.dflt="Open Sans Regular, Arial Unicode MS Regular";var o=Z.exports=e({_arrayAttrRegexps:[c.counterRegex("mapbox",".layers",!0)],domain:z({name:"mapbox"}),acce
Line truncated
|
||||
`)),V.push({type:"Feature",geometry:{type:"Point",coordinates:F.lonlat},properties:{symbol:R(H),angle:O(H),text:W}})}}return{type:"FeatureCollection",features:V}}function T(M,E){return g.isArrayOrTypedArray(M)?E?function(A){return c(M[A])?+M[A]:0}:function(A){return M[A]}:M?function(){return M}:u}function u(){return""}function b(M){return M[0]===z}function _(M,E){var A;if(g.isArrayOrTypedArray(M)&&g.isArrayOrTypedArray(E)){A=["step",["get","point_count"],M[0]];for(var h=1;h<M.length;h++)A.push(E[h-1],M[h])}else A=M;return A}function P(M){var E=M.textfont,A=E.family,h=E.style,p=E.weight,k=A.split(" "),w=k[k.length-1]==="Italic";w&&k.pop(),w=w||h==="italic";var R=k.join(" ");p==="bold"&&k.indexOf("Bold")===-1?R+=" Bold":p<=1e3&&(k[0]==="Metropolis"?(R="Metropolis",p>850?R+=" Black":p>750?R+=" Extra Bold":p>650?R+=" Bold":p>550?R+=" Semi Bold":p>450?R+=" Medium":p>350?R+=" Regular":p>250?R+=" Light":p>150?R+=" Extra Light":R+=" Thin"):k.slice(0,2).join(" ")==="Open Sans"?(R="Open Sans",p>750?R+=" Extrabold":p>650?R+=" Bold":p>550?R+=" Semibold":p>350?R+=" Regular":R+=" Light"):k.slice(0,3).join(" ")==="Klokantech Noto Sans"&&(R="Klokantech Noto Sans",k[3]==="CJK"&&(R+=" CJK"),R+=p>500?" Bold":" Regular")),w&&(R+=" Italic"),R==="Open Sans Regular Italic"?R="Open Sans Italic":R==="Open Sans Regular Bold"?R="Open Sans Bold":R==="Open Sans Regular Bold Italic"?R="Open Sans Bold Italic":R==="Klokantech Noto Sans Regular Italic"&&(R="Klokantech Noto Sans Italic"),n(R)||(R=A);var O=R.split(", ");return O}}),VW=Dt((Q,Z)=>{var c=kn(),g=UW(),z=Lv().traceLayerPrefix,S={cluster:["cluster","clusterCount","circle"],nonCluster:["fill","line","circle","symbol"]};function t(r,a,n,o){this.type="scattermapbox",this.subplot=r,this.uid=a,this.clusterEnabled=n,this.isHidden=o,this.sourceIds={fill:"source-"+a+"-fill",line:"source-"+a+"-line",circle:"source-"+a+"-circle",symbol:"source-"+a+"-symbol",cluster:"source-"+a+"-circle",clusterCount:"source-"+a+"-circle"},this.layerIds={fill:z+a+"-fill",line:z+a+"-line",circle:z+a+"-circle",symbol:z+a+"-symbol",cluster:z+a+"-cluster",clusterCount:z+a+"-cluster-count"},this.below=null}var e=t.prototype;e.addSource=function(r,a,n){var o={type:"geojson",data:a.geojson};n&&n.enabled&&c.extendFlat(o,{cluster:!0,clusterMaxZoom:n.maxzoom});var i=this.subplot.map.getSource(this.sourceIds[r]);i?i.setData(a.geojson):this.subplot.map.addSource(this.sourceIds[r],o)},e.setSourceData=function(r,a){this.subplot.map.getSource(this.sourceIds[r]).setData(a.geojson)},e.addLayer=function(r,a,n){var o={type:a.type,id:this.layerIds[r],source:this.sourceIds[r],layout:a.layout,paint:a.paint};a.filter&&(o.filter=a.filter);for(var i=this.layerIds[r],l,f=this.subplot.getMapLayers(),x=0;x<f.length;x++)if(f[x].id===i){l=!0;break}l?(this.subplot.setOptions(i,"setLayoutProperty",o.layout),o.layout.visibility==="visible"&&this.subplot.setOptions(i,"setPaintProperty",o.paint)):this.subplot.addLayer(o,n)},e.update=function(r){var a=r[0].trace,n=this.subplot,o=n.map,i=g(n.gd,r),l=n.belowLookup["trace-"+this.uid],f=!!(a.cluster&&a.cluster.enabled),x=!!this.clusterEnabled,y=this;function v(h){h||y.addSource("circle",i.circle,a.cluster);for(var p=S.cluster,k=0;k<p.length;k++){var w=p[k],R=i[w];y.addLayer(w,R,l)}}function T(h){for(var p=S.cluster,k=p.length-1;k>=0;k--){var w=p[k];o.removeLayer(y.layerIds[w])}h||o.removeSource(y.sourceIds.circle)}function u(h){for(var p=S.nonCluster,k=0;k<p.length;k++){var w=p[k],R=i[w];h||y.addSource(w,R),y.addLayer(w,R,l)}}function b(h){for(var p=S.nonCluster,k=p.length-1;k>=0;k--){var w=p[k];o.removeLayer(y.layerIds[w]),h||o.removeSource(y.sourceIds[w])}}function _(h){x?T(h):b(h)}function P(h){f?v(h):u(h)}function M(){for(var h=f?S.cluster:S.nonCluster,p=0;p<h.length;p++){var k=h[p],w=i[k];w&&(n.setOptions(y.layerIds[k],"setLayoutProperty",w.layout),w.layout.visibility==="visible"&&(k!=="cluster"&&y.setSourceData(k,w),n.setOptions(y.layerIds[k],"setPaintProperty",w.paint)))}}var E=this.isHidden,A=a.visible!==!0;A?E||_():E?A||P():x!==f?(_(),P()):(this.below!==l&&(_(!0),P(!0)),M()),this.clusterEnabled=f,this.isHidden=A,this.below=l,r[0].trace._glTrace=this},e.dispose=function(){for(var r=this.subplot.map,a=this.clusterEnabled?S.cluster:S.nonCluster,n=a.length-1;n>=0;n--){var o=a[n];r.removeLayer(this.layerIds[o]),r.removeSource(this.sourceIds[o])}},Z.exports=function(r,a){var n=a[0].trace,o=n.cluster&&n.cluster.enabled,i=n.visible!==!0,l=new t(r,n.uid,o,i),f=g(r.gd,a),x=l.below=r.belowLookup["trace-"+n.uid],y,v,T;if(o)for(l.addSource("circle",f.circle,n.cluster),y=0;y<S.cluster.length;y++)v=S.cluster[y],T=f[v],l.addLayer(v,T,x);else for(y=0;y<S.nonCluster.length;y++)v=S.nonCluster[y],T=f[v],l.addSource(v,T,n.cluster),l.addLayer(v,T,x);return a[0].trace._glTrace=l,l}}),TT=Dt((Q,Z)=>{var c=tf(),g=kn(),z=Bu(),S=g.fillText,t=Ci().BADNUM,e=Lv().traceLayerPrefix;function r(n,o,i){var l=n.cd,f=l[0].trace,x=n.xa,y=n.ya,v=n.subplot,T=[],u=e+f.uid+"-circle",b=f.cluster&&f.cluster.enabled;if(b){var _=v.map
Line truncated
|
||||
precision mediump float;
|
||||
#else
|
||||
#if !defined(lowp)
|
||||
@@ -2864,7 +2864,7 @@ vec2 unpack_float(const float packedValue) {int packedIntValue=int(packedValue);
|
||||
#ifdef OVERDRAW_INSPECTOR
|
||||
gl_FragColor=vec4(1.0);
|
||||
#endif
|
||||
}`,Ef="attribute vec2 a_pos;uniform mat4 u_matrix;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);}",Rl=`uniform vec2 u_pattern_tl_a;uniform vec2 u_pattern_br_a;uniform vec2 u_pattern_tl_b;uniform vec2 u_pattern_br_b;uniform vec2 u_texsize;uniform float u_mix;uniform float u_opacity;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;void main() {vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(u_pattern_tl_a/u_texsize,u_pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(u_pattern_tl_b/u_texsize,u_pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);gl_FragColor=mix(color1,color2,u_mix)*u_opacity;
|
||||
}`,Cf="attribute vec2 a_pos;uniform mat4 u_matrix;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);}",Rl=`uniform vec2 u_pattern_tl_a;uniform vec2 u_pattern_br_a;uniform vec2 u_pattern_tl_b;uniform vec2 u_pattern_br_b;uniform vec2 u_texsize;uniform float u_mix;uniform float u_opacity;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;void main() {vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(u_pattern_tl_a/u_texsize,u_pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(u_pattern_tl_b/u_texsize,u_pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);gl_FragColor=mix(color1,color2,u_mix)*u_opacity;
|
||||
#ifdef OVERDRAW_INSPECTOR
|
||||
gl_FragColor=vec4(1.0);
|
||||
#endif
|
||||
@@ -2925,7 +2925,7 @@ vec2 unscaled_extrude=vec2(mod(a_pos,2.0)*2.0-1.0);float S=sqrt(-2.0*log(ZERO/we
|
||||
#ifdef OVERDRAW_INSPECTOR
|
||||
gl_FragColor=vec4(0.0);
|
||||
#endif
|
||||
}`,rl="uniform mat4 u_matrix;uniform vec2 u_world;attribute vec2 a_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos*u_world,0,1);v_pos.x=a_pos.x;v_pos.y=1.0-a_pos.y;}",Yl="varying float v_placed;varying float v_notUsed;void main() {float alpha=0.5;gl_FragColor=vec4(1.0,0.0,0.0,1.0)*alpha;if (v_placed > 0.5) {gl_FragColor=vec4(0.0,0.0,1.0,0.5)*alpha;}if (v_notUsed > 0.5) {gl_FragColor*=.1;}}",Eh="attribute vec2 a_pos;attribute vec2 a_anchor_pos;attribute vec2 a_extrude;attribute vec2 a_placed;attribute vec2 a_shift;uniform mat4 u_matrix;uniform vec2 u_extrude_scale;uniform float u_camera_to_center_distance;varying float v_placed;varying float v_notUsed;void main() {vec4 projectedPoint=u_matrix*vec4(a_anchor_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float collision_perspective_ratio=clamp(0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,4.0);gl_Position=u_matrix*vec4(a_pos,0.0,1.0);gl_Position.xy+=(a_extrude+a_shift)*u_extrude_scale*gl_Position.w*collision_perspective_ratio;v_placed=a_placed.x;v_notUsed=a_placed.y;}",Lc="varying float v_radius;varying vec2 v_extrude;varying float v_perspective_ratio;varying float v_collision;void main() {float alpha=0.5*min(v_perspective_ratio,1.0);float stroke_radius=0.9*max(v_perspective_ratio,1.0);float distance_to_center=length(v_extrude);float distance_to_edge=abs(distance_to_center-v_radius);float opacity_t=smoothstep(-stroke_radius,0.0,-distance_to_edge);vec4 color=mix(vec4(0.0,0.0,1.0,0.5),vec4(1.0,0.0,0.0,1.0),v_collision);gl_FragColor=color*alpha*opacity_t;}",Vh="attribute vec2 a_pos;attribute float a_radius;attribute vec2 a_flags;uniform mat4 u_matrix;uniform mat4 u_inv_matrix;uniform vec2 u_viewport_size;uniform float u_camera_to_center_distance;varying float v_radius;varying vec2 v_extrude;varying float v_perspective_ratio;varying float v_collision;vec3 toTilePosition(vec2 screenPos) {vec4 rayStart=u_inv_matrix*vec4(screenPos,-1.0,1.0);vec4 rayEnd =u_inv_matrix*vec4(screenPos, 1.0,1.0);rayStart.xyz/=rayStart.w;rayEnd.xyz /=rayEnd.w;highp float t=(0.0-rayStart.z)/(rayEnd.z-rayStart.z);return mix(rayStart.xyz,rayEnd.xyz,t);}void main() {vec2 quadCenterPos=a_pos;float radius=a_radius;float collision=a_flags.x;float vertexIdx=a_flags.y;vec2 quadVertexOffset=vec2(mix(-1.0,1.0,float(vertexIdx >=2.0)),mix(-1.0,1.0,float(vertexIdx >=1.0 && vertexIdx <=2.0)));vec2 quadVertexExtent=quadVertexOffset*radius;vec3 tilePos=toTilePosition(quadCenterPos);vec4 clipPos=u_matrix*vec4(tilePos,1.0);highp float camera_to_anchor_distance=clipPos.w;highp float collision_perspective_ratio=clamp(0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,4.0);float padding_factor=1.2;v_radius=radius;v_extrude=quadVertexExtent*padding_factor;v_perspective_ratio=collision_perspective_ratio;v_collision=collision;gl_Position=vec4(clipPos.xyz/clipPos.w,1.0)+vec4(quadVertexExtent*padding_factor/u_viewport_size*2.0,0.0,0.0);}",bu="uniform highp vec4 u_color;uniform sampler2D u_overlay;varying vec2 v_uv;void main() {vec4 overlay_color=texture2D(u_overlay,v_uv);gl_FragColor=mix(u_color,overlay_color,overlay_color.a);}",Ed="attribute vec2 a_pos;varying vec2 v_uv;uniform mat4 u_matrix;uniform float u_overlay_scale;void main() {v_uv=a_pos/8192.0;gl_Position=u_matrix*vec4(a_pos*u_overlay_scale,0,1);}",tl=`#pragma mapbox: define highp vec4 color
|
||||
}`,rl="uniform mat4 u_matrix;uniform vec2 u_world;attribute vec2 a_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos*u_world,0,1);v_pos.x=a_pos.x;v_pos.y=1.0-a_pos.y;}",Yl="varying float v_placed;varying float v_notUsed;void main() {float alpha=0.5;gl_FragColor=vec4(1.0,0.0,0.0,1.0)*alpha;if (v_placed > 0.5) {gl_FragColor=vec4(0.0,0.0,1.0,0.5)*alpha;}if (v_notUsed > 0.5) {gl_FragColor*=.1;}}",Ch="attribute vec2 a_pos;attribute vec2 a_anchor_pos;attribute vec2 a_extrude;attribute vec2 a_placed;attribute vec2 a_shift;uniform mat4 u_matrix;uniform vec2 u_extrude_scale;uniform float u_camera_to_center_distance;varying float v_placed;varying float v_notUsed;void main() {vec4 projectedPoint=u_matrix*vec4(a_anchor_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float collision_perspective_ratio=clamp(0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,4.0);gl_Position=u_matrix*vec4(a_pos,0.0,1.0);gl_Position.xy+=(a_extrude+a_shift)*u_extrude_scale*gl_Position.w*collision_perspective_ratio;v_placed=a_placed.x;v_notUsed=a_placed.y;}",Lc="varying float v_radius;varying vec2 v_extrude;varying float v_perspective_ratio;varying float v_collision;void main() {float alpha=0.5*min(v_perspective_ratio,1.0);float stroke_radius=0.9*max(v_perspective_ratio,1.0);float distance_to_center=length(v_extrude);float distance_to_edge=abs(distance_to_center-v_radius);float opacity_t=smoothstep(-stroke_radius,0.0,-distance_to_edge);vec4 color=mix(vec4(0.0,0.0,1.0,0.5),vec4(1.0,0.0,0.0,1.0),v_collision);gl_FragColor=color*alpha*opacity_t;}",Vh="attribute vec2 a_pos;attribute float a_radius;attribute vec2 a_flags;uniform mat4 u_matrix;uniform mat4 u_inv_matrix;uniform vec2 u_viewport_size;uniform float u_camera_to_center_distance;varying float v_radius;varying vec2 v_extrude;varying float v_perspective_ratio;varying float v_collision;vec3 toTilePosition(vec2 screenPos) {vec4 rayStart=u_inv_matrix*vec4(screenPos,-1.0,1.0);vec4 rayEnd =u_inv_matrix*vec4(screenPos, 1.0,1.0);rayStart.xyz/=rayStart.w;rayEnd.xyz /=rayEnd.w;highp float t=(0.0-rayStart.z)/(rayEnd.z-rayStart.z);return mix(rayStart.xyz,rayEnd.xyz,t);}void main() {vec2 quadCenterPos=a_pos;float radius=a_radius;float collision=a_flags.x;float vertexIdx=a_flags.y;vec2 quadVertexOffset=vec2(mix(-1.0,1.0,float(vertexIdx >=2.0)),mix(-1.0,1.0,float(vertexIdx >=1.0 && vertexIdx <=2.0)));vec2 quadVertexExtent=quadVertexOffset*radius;vec3 tilePos=toTilePosition(quadCenterPos);vec4 clipPos=u_matrix*vec4(tilePos,1.0);highp float camera_to_anchor_distance=clipPos.w;highp float collision_perspective_ratio=clamp(0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,4.0);float padding_factor=1.2;v_radius=radius;v_extrude=quadVertexExtent*padding_factor;v_perspective_ratio=collision_perspective_ratio;v_collision=collision;gl_Position=vec4(clipPos.xyz/clipPos.w,1.0)+vec4(quadVertexExtent*padding_factor/u_viewport_size*2.0,0.0,0.0);}",bu="uniform highp vec4 u_color;uniform sampler2D u_overlay;varying vec2 v_uv;void main() {vec4 overlay_color=texture2D(u_overlay,v_uv);gl_FragColor=mix(u_color,overlay_color,overlay_color.a);}",Cd="attribute vec2 a_pos;varying vec2 v_uv;uniform mat4 u_matrix;uniform float u_overlay_scale;void main() {v_uv=a_pos/8192.0;gl_Position=u_matrix*vec4(a_pos*u_overlay_scale,0,1);}",tl=`#pragma mapbox: define highp vec4 color
|
||||
#pragma mapbox: define lowp float opacity
|
||||
void main() {
|
||||
#pragma mapbox: initialize highp vec4 color
|
||||
@@ -2940,7 +2940,7 @@ gl_FragColor=vec4(1.0);
|
||||
void main() {
|
||||
#pragma mapbox: initialize highp vec4 color
|
||||
#pragma mapbox: initialize lowp float opacity
|
||||
gl_Position=u_matrix*vec4(a_pos,0,1);}`,Il=`varying vec2 v_pos;
|
||||
gl_Position=u_matrix*vec4(a_pos,0,1);}`,zl=`varying vec2 v_pos;
|
||||
#pragma mapbox: define highp vec4 outline_color
|
||||
#pragma mapbox: define lowp float opacity
|
||||
void main() {
|
||||
@@ -2956,7 +2956,7 @@ gl_FragColor=vec4(1.0);
|
||||
void main() {
|
||||
#pragma mapbox: initialize highp vec4 outline_color
|
||||
#pragma mapbox: initialize lowp float opacity
|
||||
gl_Position=u_matrix*vec4(a_pos,0,1);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;}`,lf=`uniform vec2 u_texsize;uniform sampler2D u_image;uniform float u_fade;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec2 v_pos;
|
||||
gl_Position=u_matrix*vec4(a_pos,0,1);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;}`,uf=`uniform vec2 u_texsize;uniform sampler2D u_image;uniform float u_fade;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec2 v_pos;
|
||||
#pragma mapbox: define lowp float opacity
|
||||
#pragma mapbox: define lowp vec4 pattern_from
|
||||
#pragma mapbox: define lowp vec4 pattern_to
|
||||
@@ -3008,7 +3008,7 @@ vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern
|
||||
#ifdef OVERDRAW_INSPECTOR
|
||||
gl_FragColor=vec4(1.0);
|
||||
#endif
|
||||
}`,yf=`uniform mat4 u_matrix;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp float u_lightintensity;uniform float u_vertical_gradient;uniform lowp float u_opacity;attribute vec2 a_pos;attribute vec4 a_normal_ed;varying vec4 v_color;
|
||||
}`,xf=`uniform mat4 u_matrix;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp float u_lightintensity;uniform float u_vertical_gradient;uniform lowp float u_opacity;attribute vec2 a_pos;attribute vec4 a_normal_ed;varying vec4 v_color;
|
||||
#pragma mapbox: define highp float base
|
||||
#pragma mapbox: define highp float height
|
||||
#pragma mapbox: define highp vec4 color
|
||||
@@ -3057,7 +3057,7 @@ uniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_dimension;uniform fl
|
||||
#ifdef OVERDRAW_INSPECTOR
|
||||
gl_FragColor=vec4(1.0);
|
||||
#endif
|
||||
}`,xf="uniform mat4 u_matrix;uniform vec2 u_dimension;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);highp vec2 epsilon=1.0/u_dimension;float scale=(u_dimension.x-2.0)/u_dimension.x;v_pos=(a_texture_pos/8192.0)*scale+epsilon;}",Wh=`uniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_latrange;uniform vec2 u_light;uniform vec4 u_shadow;uniform vec4 u_highlight;uniform vec4 u_accent;
|
||||
}`,_f="uniform mat4 u_matrix;uniform vec2 u_dimension;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);highp vec2 epsilon=1.0/u_dimension;float scale=(u_dimension.x-2.0)/u_dimension.x;v_pos=(a_texture_pos/8192.0)*scale+epsilon;}",Wh=`uniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_latrange;uniform vec2 u_light;uniform vec4 u_shadow;uniform vec4 u_highlight;uniform vec4 u_accent;
|
||||
#define PI 3.141592653589793
|
||||
void main() {vec4 pixel=texture2D(u_image,v_pos);vec2 deriv=((pixel.rg*2.0)-1.0);float scaleFactor=cos(radians((u_latrange[0]-u_latrange[1])*(1.0-v_pos.y)+u_latrange[1]));float slope=atan(1.25*length(deriv)/scaleFactor);float aspect=deriv.x !=0.0 ? atan(deriv.y,-deriv.x) : PI/2.0*(deriv.y > 0.0 ? 1.0 :-1.0);float intensity=u_light.x;float azimuth=u_light.y+PI;float base=1.875-intensity*1.75;float maxValue=0.5*PI;float scaledSlope=intensity !=0.5 ? ((pow(base,slope)-1.0)/(pow(base,maxValue)-1.0))*maxValue : slope;float accent=cos(scaledSlope);vec4 accent_color=(1.0-accent)*u_accent*clamp(intensity*2.0,0.0,1.0);float shade=abs(mod((aspect+azimuth)/PI+0.5,2.0)-1.0);vec4 shade_color=mix(u_shadow,u_highlight,shade)*sin(scaledSlope)*clamp(intensity*2.0,0.0,1.0);gl_FragColor=accent_color*(1.0-shade_color.a)+shade_color;
|
||||
#ifdef OVERDRAW_INSPECTOR
|
||||
@@ -3101,7 +3101,7 @@ float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_rati
|
||||
#ifdef OVERDRAW_INSPECTOR
|
||||
gl_FragColor=vec4(1.0);
|
||||
#endif
|
||||
}`,Ch=`
|
||||
}`,Eh=`
|
||||
#define scale 0.015873016
|
||||
attribute vec2 a_pos_normal;attribute vec4 a_data;attribute float a_uv_x;attribute float a_split_index;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;uniform vec2 u_units_to_pixels;uniform float u_image_height;varying vec2 v_normal;varying vec2 v_width2;varying float v_gamma_scale;varying highp vec2 v_uv;
|
||||
#pragma mapbox: define lowp float blur
|
||||
@@ -3197,7 +3197,7 @@ float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;f
|
||||
#ifdef OVERDRAW_INSPECTOR
|
||||
gl_FragColor=vec4(1.0);
|
||||
#endif
|
||||
}`,Cf="uniform mat4 u_matrix;uniform vec2 u_tl_parent;uniform float u_scale_parent;uniform float u_buffer_scale;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos0;varying vec2 v_pos1;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos0=(((a_texture_pos/8192.0)-0.5)/u_buffer_scale )+0.5;v_pos1=(v_pos0*u_scale_parent)+u_tl_parent;}",Cd=`uniform sampler2D u_texture;varying vec2 v_tex;varying float v_fade_opacity;
|
||||
}`,Ef="uniform mat4 u_matrix;uniform vec2 u_tl_parent;uniform float u_scale_parent;uniform float u_buffer_scale;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos0;varying vec2 v_pos1;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos0=(((a_texture_pos/8192.0)-0.5)/u_buffer_scale )+0.5;v_pos1=(v_pos0*u_scale_parent)+u_tl_parent;}",Ed=`uniform sampler2D u_texture;varying vec2 v_tex;varying float v_fade_opacity;
|
||||
#pragma mapbox: define lowp float opacity
|
||||
void main() {
|
||||
#pragma mapbox: initialize lowp float opacity
|
||||
@@ -3211,7 +3211,7 @@ void main() {
|
||||
#pragma mapbox: initialize lowp float opacity
|
||||
vec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;vec2 a_minFontScale=a_pixeloffset.zw/256.0;highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ?
|
||||
camera_to_anchor_distance/u_camera_to_center_distance :
|
||||
u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*max(a_minFontScale,fontScale)+a_pxoffset/16.0),0.0,1.0);v_tex=a_tex/u_texsize;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;v_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));}`,_f=`#define SDF_PX 8.0
|
||||
u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*max(a_minFontScale,fontScale)+a_pxoffset/16.0),0.0,1.0);v_tex=a_tex/u_texsize;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;v_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));}`,bf=`#define SDF_PX 8.0
|
||||
uniform bool u_is_halo;uniform sampler2D u_texture;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;uniform bool u_is_text;varying vec2 v_data0;varying vec3 v_data1;
|
||||
#pragma mapbox: define highp vec4 fill_color
|
||||
#pragma mapbox: define highp vec4 halo_color
|
||||
@@ -3279,7 +3279,7 @@ void main() {
|
||||
#pragma mapbox: initialize lowp float halo_blur
|
||||
vec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);float is_sdf=a_size[0]-2.0*a_size_min;highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ?
|
||||
camera_to_anchor_distance/u_camera_to_center_distance :
|
||||
u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=size/24.0;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale),0.0,1.0);float gamma_scale=gl_Position.w;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));v_data0.xy=a_tex/u_texsize;v_data0.zw=a_tex/u_texsize_icon;v_data1=vec4(gamma_scale,size,interpolated_fade_opacity,is_sdf);}`,Du=xu(Qc,sh),jc=xu(jf,Ef),qh=xu(Rl,Bc),fu=xu(Uf,hc),Lh=xu(oc,fc),Mc=xu(lh,hu),Uc=xu(sc,rl),wu=xu(Yl,Eh),uf=xu(Lc,Vh),xh=xu(bu,Ed),$h=xu(tl,Vd),Lf=xu(Il,es),Ld=xu(lf,uh),Jd=xu(rc,Vf),cf=xu(Hh,yf),Pf=xu(lc,hd),wc=xu(Gf,xf),hf=xu(Wh,Hf),th=xu(Wf,ch),ff=xu(Yf,Ch),If=xu(yh,uc),_h=xu(rf,qf),ku=xu(eu,Cf),Ph=xu(Cd,Kf),Vc=xu(_f,Xf),fd=xu(Nc,Jf);function xu($,ot){var et=/#pragma mapbox: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,xt=ot.match(/attribute ([\w]+) ([\w]+)/g),Vt=$.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),pe=ot.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),xe=pe?pe.concat(Vt):Vt,Yt={};return $=$.replace(et,function(fe,Ce,ir,Ye,er){return Yt[er]=!0,Ce==="define"?`
|
||||
u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=size/24.0;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale),0.0,1.0);float gamma_scale=gl_Position.w;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));v_data0.xy=a_tex/u_texsize;v_data0.zw=a_tex/u_texsize_icon;v_data1=vec4(gamma_scale,size,interpolated_fade_opacity,is_sdf);}`,Fu=xu(Qc,sh),jc=xu(jf,Cf),qh=xu(Rl,Bc),fu=xu(Uf,hc),Lh=xu(oc,fc),Mc=xu(lh,hu),Uc=xu(sc,rl),wu=xu(Yl,Ch),cf=xu(Lc,Vh),xh=xu(bu,Cd),$h=xu(tl,Vd),Lf=xu(zl,es),Ld=xu(uf,uh),Qd=xu(rc,Vf),hf=xu(Hh,xf),Pf=xu(lc,hd),wc=xu(Gf,_f),ff=xu(Wh,Hf),th=xu(Wf,ch),df=xu(Yf,Eh),zf=xu(yh,uc),_h=xu(rf,qf),ku=xu(eu,Ef),Ph=xu(Ed,Kf),Vc=xu(bf,Xf),fd=xu(Nc,Jf);function xu($,ot){var et=/#pragma mapbox: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,xt=ot.match(/attribute ([\w]+) ([\w]+)/g),Vt=$.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),pe=ot.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),xe=pe?pe.concat(Vt):Vt,Yt={};return $=$.replace(et,function(fe,Ee,ir,Ye,er){return Yt[er]=!0,Ee==="define"?`
|
||||
#ifndef HAS_UNIFORM_u_`+er+`
|
||||
varying `+ir+" "+Ye+" "+er+`;
|
||||
#else
|
||||
@@ -3289,7 +3289,7 @@ uniform `+ir+" "+Ye+" u_"+er+`;
|
||||
#ifdef HAS_UNIFORM_u_`+er+`
|
||||
`+ir+" "+Ye+" "+er+" = u_"+er+`;
|
||||
#endif
|
||||
`}),ot=ot.replace(et,function(fe,Ce,ir,Ye,er){var lr=Ye==="float"?"vec2":"vec4",hr=er.match(/color/)?"color":lr;return Yt[er]?Ce==="define"?`
|
||||
`}),ot=ot.replace(et,function(fe,Ee,ir,Ye,er){var lr=Ye==="float"?"vec2":"vec4",hr=er.match(/color/)?"color":lr;return Yt[er]?Ee==="define"?`
|
||||
#ifndef HAS_UNIFORM_u_`+er+`
|
||||
uniform lowp float u_`+er+`_t;
|
||||
attribute `+ir+" "+lr+" a_"+er+`;
|
||||
@@ -3309,7 +3309,7 @@ uniform `+ir+" "+Ye+" u_"+er+`;
|
||||
#else
|
||||
`+ir+" "+Ye+" "+er+" = u_"+er+`;
|
||||
#endif
|
||||
`:Ce==="define"?`
|
||||
`:Ee==="define"?`
|
||||
#ifndef HAS_UNIFORM_u_`+er+`
|
||||
uniform lowp float u_`+er+`_t;
|
||||
attribute `+ir+" "+lr+" a_"+er+`;
|
||||
@@ -3328,9 +3328,9 @@ uniform `+ir+" "+Ye+" u_"+er+`;
|
||||
#else
|
||||
`+ir+" "+Ye+" "+er+" = u_"+er+`;
|
||||
#endif
|
||||
`}),{fragmentSource:$,vertexSource:ot,staticAttributes:xt,staticUniforms:xe}}var bf=Object.freeze({__proto__:null,prelude:Du,background:jc,backgroundPattern:qh,circle:fu,clippingMask:Lh,heatmap:Mc,heatmapTexture:Uc,collisionBox:wu,collisionCircle:uf,debug:xh,fill:$h,fillOutline:Lf,fillOutlinePattern:Ld,fillPattern:Jd,fillExtrusion:cf,fillExtrusionPattern:Pf,hillshadePrepare:wc,hillshade:hf,line:th,lineGradient:ff,linePattern:If,lineSDF:_h,raster:ku,symbolIcon:Ph,symbolSDF:Vc,symbolTextAndIcon:fd}),Zh=function(){this.boundProgram=null,this.boundLayoutVertexBuffer=null,this.boundPaintVertexBuffers=[],this.boundIndexBuffer=null,this.boundVertexOffset=null,this.boundDynamicVertexBuffer=null,this.vao=null};Zh.prototype.bind=function($,ot,et,xt,Vt,pe,xe,Yt){this.context=$;for(var fe=this.boundPaintVertexBuffers.length!==xt.length,Ce=0;!fe&&Ce<xt.length;Ce++)this.boundPaintVertexBuffers[Ce]!==xt[Ce]&&(fe=!0);var ir=!this.vao||this.boundProgram!==ot||this.boundLayoutVertexBuffer!==et||fe||this.boundIndexBuffer!==Vt||this.boundVertexOffset!==pe||this.boundDynamicVertexBuffer!==xe||this.boundDynamicVertexBuffer2!==Yt;!$.extVertexArrayObject||ir?this.freshBind(ot,et,xt,Vt,pe,xe,Yt):($.bindVertexArrayOES.set(this.vao),xe&&xe.bind(),Vt&&Vt.dynamicDraw&&Vt.bind(),Yt&&Yt.bind())},Zh.prototype.freshBind=function($,ot,et,xt,Vt,pe,xe){var Yt,fe=$.numAttributes,Ce=this.context,ir=Ce.gl;if(Ce.extVertexArrayObject)this.vao&&this.destroy(),this.vao=Ce.extVertexArrayObject.createVertexArrayOES(),Ce.bindVertexArrayOES.set(this.vao),Yt=0,this.boundProgram=$,this.boundLayoutVertexBuffer=ot,this.boundPaintVertexBuffers=et,this.boundIndexBuffer=xt,this.boundVertexOffset=Vt,this.boundDynamicVertexBuffer=pe,this.boundDynamicVertexBuffer2=xe;else{Yt=Ce.currentNumAttributes||0;for(var Ye=fe;Ye<Yt;Ye++)ir.disableVertexAttribArray(Ye)}ot.enableAttributes(ir,$);for(var er=0,lr=et;er<lr.length;er+=1){var hr=lr[er];hr.enableAttributes(ir,$)}pe&&pe.enableAttributes(ir,$),xe&&xe.enableAttributes(ir,$),ot.bind(),ot.setVertexAttribPointers(ir,$,Vt);for(var Ve=0,Xe=et;Ve<Xe.length;Ve+=1){var Ze=Xe[Ve];Ze.bind(),Ze.setVertexAttribPointers(ir,$,Vt)}pe&&(pe.bind(),pe.setVertexAttribPointers(ir,$,Vt)),xt&&xt.bind(),xe&&(xe.bind(),xe.setVertexAttribPointers(ir,$,Vt)),Ce.currentNumAttributes=fe},Zh.prototype.destroy=function(){this.vao&&(this.context.extVertexArrayObject.deleteVertexArrayOES(this.vao),this.vao=null)};function eh($){for(var ot=[],et=0;et<$.length;et++)if($[et]!==null){var xt=$[et].split(" ");ot.push(xt.pop())}return ot}var nf=function($,ot,et,xt,Vt,pe){var xe=$.gl;this.program=xe.createProgram();for(var Yt=eh(et.staticAttributes),fe=xt?xt.getBinderAttributes():[],Ce=Yt.concat(fe),ir=et.staticUniforms?eh(et.staticUniforms):[],Ye=xt?xt.getBinderUniforms():[],er=ir.concat(Ye),lr=[],hr=0,Ve=er;hr<Ve.length;hr+=1){var Xe=Ve[hr];lr.indexOf(Xe)<0&&lr.push(Xe)}var Ze=xt?xt.defines():[];pe&&Ze.push("#define OVERDRAW_INSPECTOR;");var Pr=Ze.concat(Du.fragmentSource,et.fragmentSource).join(`
|
||||
`),ln=Ze.concat(Du.vertexSource,et.vertexSource).join(`
|
||||
`),pn=xe.createShader(xe.FRAGMENT_SHADER);if(xe.isContextLost()){this.failedToCreate=!0;return}xe.shaderSource(pn,Pr),xe.compileShader(pn),xe.attachShader(this.program,pn);var wi=xe.createShader(xe.VERTEX_SHADER);if(xe.isContextLost()){this.failedToCreate=!0;return}xe.shaderSource(wi,ln),xe.compileShader(wi),xe.attachShader(this.program,wi),this.attributes={};var yi={};this.numAttributes=Ce.length;for(var Jn=0;Jn<this.numAttributes;Jn++)Ce[Jn]&&(xe.bindAttribLocation(this.program,Jn,Ce[Jn]),this.attributes[Ce[Jn]]=Jn);xe.linkProgram(this.program),xe.deleteShader(wi),xe.deleteShader(pn);for(var Di=0;Di<lr.length;Di++){var ki=lr[Di];if(ki&&!yi[ki]){var ea=xe.getUniformLocation(this.program,ki);ea&&(yi[ki]=ea)}}this.fixedUniforms=Vt($,yi),this.binderUniforms=xt?xt.getUniforms($,yi):[]};nf.prototype.draw=function($,ot,et,xt,Vt,pe,xe,Yt,fe,Ce,ir,Ye,er,lr,hr,Ve){var Xe,Ze=$.gl;if(!this.failedToCreate){$.program.set(this.program),$.setDepthMode(et),$.setStencilMode(xt),$.setColorMode(Vt),$.setCullFace(pe);for(var Pr in this.fixedUniforms)this.fixedUniforms[Pr].set(xe[Pr]);lr&&lr.setUniforms($,this.binderUniforms,Ye,{zoom:er});for(var ln=(Xe={},Xe[Ze.LINES]=2,Xe[Ze.TRIANGLES]=3,Xe[Ze.LINE_STRIP]=1,Xe)[ot],pn=0,wi=ir.get();pn<wi.length;pn+=1){var yi=wi[pn],Jn=yi.vaos||(yi.vaos={}),Di=Jn[Yt]||(Jn[Yt]=new Zh);Di.bind($,this,fe,lr?lr.getPaintVertexBuffers():[],Ce,yi.vertexOffset,hr,Ve),Ze.drawElements(ot,yi.primitiveLength*ln,Ze.UNSIGNED_SHORT,yi.primitiveOffset*ln*2)}}};function Gh($,ot,et){var xt=1/Qs(et,1,ot.transform.tileZoom),Vt=Math.pow(2,et.tileID.overscaledZ),pe=et.tileSize*Math.pow(2,ot.transform.tileZoom)/Vt,xe=pe*(et.tileID.canonical.x+et.tileID.wrap*Vt),Yt=pe*et.tileID.canonical.y;return{u_image:0,u_texsize:et.imageAtlasTexture.size,u_scale:[xt,$.fromScale,$.toScale],u_fade:$.t,u_pixel_coord_upper:[xe>>16,Yt>>16],u_pixel_coord_lower:[xe&65535,Yt&65535]}}function wf($,ot,et,xt){var Vt=et.imageManager.getPattern($.from.toString()),pe=et.imageManager.getPattern($.to.toString()),xe=et.imageManager.getPixelSize(),Yt=xe.width,fe=xe.height,Ce=Math.pow(2,xt.tileID.overscaledZ),ir=xt.tileSize*Math.pow(2,et.transform.tileZoom)/Ce,Ye=ir*(xt.tileID.canonical.x+xt.tileID.wrap*Ce),er=ir*xt.tileID.canonical.y;return{u_image:0,u_pattern_tl_a:Vt.tl,u_pattern_br_a:Vt.br,u_pattern_tl_b:pe.tl,u_pattern_br_b:pe.br,u_texsize:[Yt,fe],u_mix:ot.t,u_pattern_size_a:Vt.displaySize,u_pattern_size_b:pe.displaySize,u_scale_a:ot.fromScale,u_scale_b:ot.toScale,u_tile_units_to_pixels:1/Qs(xt,1,et.transform.tileZoom),u_pixel_coord_upper:[Ye>>16,er>>16],u_pixel_coord_lower:[Ye&65535,er&65535]}}var Pd=function($,ot){return{u_matrix:new t.UniformMatrix4f($,ot.u_matrix),u_lightpos:new t.Uniform3f($,ot.u_lightpos),u_lightintensity:new t.Uniform1f($,ot.u_lightintensity),u_lightcolor:new t.Uniform3f($,ot.u_lightcolor),u_vertical_gradient:new t.Uniform1f($,ot.u_vertical_gradient),u_opacity:new t.Uniform1f($,ot.u_opacity)}},gc=function($,ot){return{u_matrix:new t.UniformMatrix4f($,ot.u_matrix),u_lightpos:new t.Uniform3f($,ot.u_lightpos),u_lightintensity:new t.Uniform1f($,ot.u_lightintensity),u_lightcolor:new t.Uniform3f($,ot.u_lightcolor),u_vertical_gradient:new t.Uniform1f($,ot.u_vertical_gradient),u_height_factor:new t.Uniform1f($,ot.u_height_factor),u_image:new t.Uniform1i($,ot.u_image),u_texsize:new t.Uniform2f($,ot.u_texsize),u_pixel_coord_upper:new t.Uniform2f($,ot.u_pixel_coord_upper),u_pixel_coord_lower:new t.Uniform2f($,ot.u_pixel_coord_lower),u_scale:new t.Uniform3f($,ot.u_scale),u_fade:new t.Uniform1f($,ot.u_fade),u_opacity:new t.Uniform1f($,ot.u_opacity)}},Qf=function($,ot,et,xt){var Vt=ot.style.light,pe=Vt.properties.get("position"),xe=[pe.x,pe.y,pe.z],Yt=t.create$1();Vt.properties.get("anchor")==="viewport"&&t.fromRotation(Yt,-ot.transform.angle),t.transformMat3(xe,xe,Yt);var fe=Vt.properties.get("color");return{u_matrix:$,u_lightpos:xe,u_lightintensity:Vt.properties.get("intensity"),u_lightcolor:[fe.r,fe.g,fe.b],u_vertical_gradient:+et,u_opacity:xt}},rh=function($,ot,et,xt,Vt,pe,xe){return t.extend(Qf($,ot,et,xt),Gh(pe,ot,xe),{u_height_factor:-Math.pow(2,Vt.overscaledZ)/xe.tileSize/8})},Ih=function($,ot){return{u_matrix:new t.UniformMatrix4f($,ot.u_matrix)}},bh=function($,ot){return{u_matrix:new t.UniformMatrix4f($,ot.u_matrix),u_image:new t.Uniform1i($,ot.u_image),u_texsize:new t.Uniform2f($,ot.u_texsize),u_pixel_coord_upper:new t.Uniform2f($,ot.u_pixel_coord_upper),u_pixel_coord_lower:new t.Uniform2f($,ot.u_pixel_coord_lower),u_scale:new t.Uniform3f($,ot.u_scale),u_fade:new t.Uniform1f($,ot.u_fade)}},ju=function($,ot){return{u_matrix:new t.UniformMatrix4f($,ot.u_matrix),u_world:new t.Uniform2f($,ot.u_world)}},iu=function($,ot){return{u_matrix:new t.UniformMatrix4f($,ot.u_matrix),u_world:new t.Uniform2f($,ot.u_world),u_image:new t.Uniform1i($,ot.u_image),u_texsize:new t.Uniform2f($,ot.u_texsize),u_pixel_coord_upper:new t.Uniform2f($,ot.u_pixel_coord_upper),u_pixel_coord_lower:new t.Uniform2f($,ot.u_pixel_coord_lower),u_scale:new t.Un
Line truncated
|
||||
`}),{fragmentSource:$,vertexSource:ot,staticAttributes:xt,staticUniforms:xe}}var wf=Object.freeze({__proto__:null,prelude:Fu,background:jc,backgroundPattern:qh,circle:fu,clippingMask:Lh,heatmap:Mc,heatmapTexture:Uc,collisionBox:wu,collisionCircle:cf,debug:xh,fill:$h,fillOutline:Lf,fillOutlinePattern:Ld,fillPattern:Qd,fillExtrusion:hf,fillExtrusionPattern:Pf,hillshadePrepare:wc,hillshade:ff,line:th,lineGradient:df,linePattern:zf,lineSDF:_h,raster:ku,symbolIcon:Ph,symbolSDF:Vc,symbolTextAndIcon:fd}),Zh=function(){this.boundProgram=null,this.boundLayoutVertexBuffer=null,this.boundPaintVertexBuffers=[],this.boundIndexBuffer=null,this.boundVertexOffset=null,this.boundDynamicVertexBuffer=null,this.vao=null};Zh.prototype.bind=function($,ot,et,xt,Vt,pe,xe,Yt){this.context=$;for(var fe=this.boundPaintVertexBuffers.length!==xt.length,Ee=0;!fe&&Ee<xt.length;Ee++)this.boundPaintVertexBuffers[Ee]!==xt[Ee]&&(fe=!0);var ir=!this.vao||this.boundProgram!==ot||this.boundLayoutVertexBuffer!==et||fe||this.boundIndexBuffer!==Vt||this.boundVertexOffset!==pe||this.boundDynamicVertexBuffer!==xe||this.boundDynamicVertexBuffer2!==Yt;!$.extVertexArrayObject||ir?this.freshBind(ot,et,xt,Vt,pe,xe,Yt):($.bindVertexArrayOES.set(this.vao),xe&&xe.bind(),Vt&&Vt.dynamicDraw&&Vt.bind(),Yt&&Yt.bind())},Zh.prototype.freshBind=function($,ot,et,xt,Vt,pe,xe){var Yt,fe=$.numAttributes,Ee=this.context,ir=Ee.gl;if(Ee.extVertexArrayObject)this.vao&&this.destroy(),this.vao=Ee.extVertexArrayObject.createVertexArrayOES(),Ee.bindVertexArrayOES.set(this.vao),Yt=0,this.boundProgram=$,this.boundLayoutVertexBuffer=ot,this.boundPaintVertexBuffers=et,this.boundIndexBuffer=xt,this.boundVertexOffset=Vt,this.boundDynamicVertexBuffer=pe,this.boundDynamicVertexBuffer2=xe;else{Yt=Ee.currentNumAttributes||0;for(var Ye=fe;Ye<Yt;Ye++)ir.disableVertexAttribArray(Ye)}ot.enableAttributes(ir,$);for(var er=0,lr=et;er<lr.length;er+=1){var hr=lr[er];hr.enableAttributes(ir,$)}pe&&pe.enableAttributes(ir,$),xe&&xe.enableAttributes(ir,$),ot.bind(),ot.setVertexAttribPointers(ir,$,Vt);for(var Ve=0,Xe=et;Ve<Xe.length;Ve+=1){var Ze=Xe[Ve];Ze.bind(),Ze.setVertexAttribPointers(ir,$,Vt)}pe&&(pe.bind(),pe.setVertexAttribPointers(ir,$,Vt)),xt&&xt.bind(),xe&&(xe.bind(),xe.setVertexAttribPointers(ir,$,Vt)),Ee.currentNumAttributes=fe},Zh.prototype.destroy=function(){this.vao&&(this.context.extVertexArrayObject.deleteVertexArrayOES(this.vao),this.vao=null)};function eh($){for(var ot=[],et=0;et<$.length;et++)if($[et]!==null){var xt=$[et].split(" ");ot.push(xt.pop())}return ot}var nf=function($,ot,et,xt,Vt,pe){var xe=$.gl;this.program=xe.createProgram();for(var Yt=eh(et.staticAttributes),fe=xt?xt.getBinderAttributes():[],Ee=Yt.concat(fe),ir=et.staticUniforms?eh(et.staticUniforms):[],Ye=xt?xt.getBinderUniforms():[],er=ir.concat(Ye),lr=[],hr=0,Ve=er;hr<Ve.length;hr+=1){var Xe=Ve[hr];lr.indexOf(Xe)<0&&lr.push(Xe)}var Ze=xt?xt.defines():[];pe&&Ze.push("#define OVERDRAW_INSPECTOR;");var Pr=Ze.concat(Fu.fragmentSource,et.fragmentSource).join(`
|
||||
`),ln=Ze.concat(Fu.vertexSource,et.vertexSource).join(`
|
||||
`),pn=xe.createShader(xe.FRAGMENT_SHADER);if(xe.isContextLost()){this.failedToCreate=!0;return}xe.shaderSource(pn,Pr),xe.compileShader(pn),xe.attachShader(this.program,pn);var wi=xe.createShader(xe.VERTEX_SHADER);if(xe.isContextLost()){this.failedToCreate=!0;return}xe.shaderSource(wi,ln),xe.compileShader(wi),xe.attachShader(this.program,wi),this.attributes={};var yi={};this.numAttributes=Ee.length;for(var ti=0;ti<this.numAttributes;ti++)Ee[ti]&&(xe.bindAttribLocation(this.program,ti,Ee[ti]),this.attributes[Ee[ti]]=ti);xe.linkProgram(this.program),xe.deleteShader(wi),xe.deleteShader(pn);for(var Di=0;Di<lr.length;Di++){var ki=lr[Di];if(ki&&!yi[ki]){var ra=xe.getUniformLocation(this.program,ki);ra&&(yi[ki]=ra)}}this.fixedUniforms=Vt($,yi),this.binderUniforms=xt?xt.getUniforms($,yi):[]};nf.prototype.draw=function($,ot,et,xt,Vt,pe,xe,Yt,fe,Ee,ir,Ye,er,lr,hr,Ve){var Xe,Ze=$.gl;if(!this.failedToCreate){$.program.set(this.program),$.setDepthMode(et),$.setStencilMode(xt),$.setColorMode(Vt),$.setCullFace(pe);for(var Pr in this.fixedUniforms)this.fixedUniforms[Pr].set(xe[Pr]);lr&&lr.setUniforms($,this.binderUniforms,Ye,{zoom:er});for(var ln=(Xe={},Xe[Ze.LINES]=2,Xe[Ze.TRIANGLES]=3,Xe[Ze.LINE_STRIP]=1,Xe)[ot],pn=0,wi=ir.get();pn<wi.length;pn+=1){var yi=wi[pn],ti=yi.vaos||(yi.vaos={}),Di=ti[Yt]||(ti[Yt]=new Zh);Di.bind($,this,fe,lr?lr.getPaintVertexBuffers():[],Ee,yi.vertexOffset,hr,Ve),Ze.drawElements(ot,yi.primitiveLength*ln,Ze.UNSIGNED_SHORT,yi.primitiveOffset*ln*2)}}};function Gh($,ot,et){var xt=1/Qs(et,1,ot.transform.tileZoom),Vt=Math.pow(2,et.tileID.overscaledZ),pe=et.tileSize*Math.pow(2,ot.transform.tileZoom)/Vt,xe=pe*(et.tileID.canonical.x+et.tileID.wrap*Vt),Yt=pe*et.tileID.canonical.y;return{u_image:0,u_texsize:et.imageAtlasTexture.size,u_scale:[xt,$.fromScale,$.toScale],u_fade:$.t,u_pixel_coord_upper:[xe>>16,Yt>>16],u_pixel_coord_lower:[xe&65535,Yt&65535]}}function kf($,ot,et,xt){var Vt=et.imageManager.getPattern($.from.toString()),pe=et.imageManager.getPattern($.to.toString()),xe=et.imageManager.getPixelSize(),Yt=xe.width,fe=xe.height,Ee=Math.pow(2,xt.tileID.overscaledZ),ir=xt.tileSize*Math.pow(2,et.transform.tileZoom)/Ee,Ye=ir*(xt.tileID.canonical.x+xt.tileID.wrap*Ee),er=ir*xt.tileID.canonical.y;return{u_image:0,u_pattern_tl_a:Vt.tl,u_pattern_br_a:Vt.br,u_pattern_tl_b:pe.tl,u_pattern_br_b:pe.br,u_texsize:[Yt,fe],u_mix:ot.t,u_pattern_size_a:Vt.displaySize,u_pattern_size_b:pe.displaySize,u_scale_a:ot.fromScale,u_scale_b:ot.toScale,u_tile_units_to_pixels:1/Qs(xt,1,et.transform.tileZoom),u_pixel_coord_upper:[Ye>>16,er>>16],u_pixel_coord_lower:[Ye&65535,er&65535]}}var Pd=function($,ot){return{u_matrix:new t.UniformMatrix4f($,ot.u_matrix),u_lightpos:new t.Uniform3f($,ot.u_lightpos),u_lightintensity:new t.Uniform1f($,ot.u_lightintensity),u_lightcolor:new t.Uniform3f($,ot.u_lightcolor),u_vertical_gradient:new t.Uniform1f($,ot.u_vertical_gradient),u_opacity:new t.Uniform1f($,ot.u_opacity)}},gc=function($,ot){return{u_matrix:new t.UniformMatrix4f($,ot.u_matrix),u_lightpos:new t.Uniform3f($,ot.u_lightpos),u_lightintensity:new t.Uniform1f($,ot.u_lightintensity),u_lightcolor:new t.Uniform3f($,ot.u_lightcolor),u_vertical_gradient:new t.Uniform1f($,ot.u_vertical_gradient),u_height_factor:new t.Uniform1f($,ot.u_height_factor),u_image:new t.Uniform1i($,ot.u_image),u_texsize:new t.Uniform2f($,ot.u_texsize),u_pixel_coord_upper:new t.Uniform2f($,ot.u_pixel_coord_upper),u_pixel_coord_lower:new t.Uniform2f($,ot.u_pixel_coord_lower),u_scale:new t.Uniform3f($,ot.u_scale),u_fade:new t.Uniform1f($,ot.u_fade),u_opacity:new t.Uniform1f($,ot.u_opacity)}},Qf=function($,ot,et,xt){var Vt=ot.style.light,pe=Vt.properties.get("position"),xe=[pe.x,pe.y,pe.z],Yt=t.create$1();Vt.properties.get("anchor")==="viewport"&&t.fromRotation(Yt,-ot.transform.angle),t.transformMat3(xe,xe,Yt);var fe=Vt.properties.get("color");return{u_matrix:$,u_lightpos:xe,u_lightintensity:Vt.properties.get("intensity"),u_lightcolor:[fe.r,fe.g,fe.b],u_vertical_gradient:+et,u_opacity:xt}},rh=function($,ot,et,xt,Vt,pe,xe){return t.extend(Qf($,ot,et,xt),Gh(pe,ot,xe),{u_height_factor:-Math.pow(2,Vt.overscaledZ)/xe.tileSize/8})},zh=function($,ot){return{u_matrix:new t.UniformMatrix4f($,ot.u_matrix)}},bh=function($,ot){return{u_matrix:new t.UniformMatrix4f($,ot.u_matrix),u_image:new t.Uniform1i($,ot.u_image),u_texsize:new t.Uniform2f($,ot.u_texsize),u_pixel_coord_upper:new t.Uniform2f($,ot.u_pixel_coord_upper),u_pixel_coord_lower:new t.Uniform2f($,ot.u_pixel_coord_lower),u_scale:new t.Uniform3f($,ot.u_scale),u_fade:new t.Uniform1f($,ot.u_fade)}},ju=function($,ot){return{u_matrix:new t.UniformMatrix4f($,ot.u_matrix),u_world:new t.Uniform2f($,ot.u_world)}},iu=function($,ot){return{u_matrix:new t.UniformMatrix4f($,ot.u_matrix),u_world:new t.Uniform2f($,ot.u_world),u_image:new t.Uniform1i($,ot.u_image),u_texsize:new t.Uniform2f($,ot.u_texsize),u_pixel_coord_upper:new t.Uniform2f($,ot.u_pixel_coord_upper),u_pixel_coord_lower:new t.Uniform2f($,ot.u_pixel_coord_lower),u_scale:new t.Un
Line truncated
|
||||
{name:nonlatin}`,"text-max-width":5,"text-rotation-alignment":"map","symbol-placement":"line","symbol-spacing":350,"text-letter-spacing":.2},paint:{"text-color":"#74aee9","text-halo-width":1.5,"text-halo-color":"rgba(255,255,255,0.7)"}},{id:"water-name-ocean",type:"symbol",source:"openmaptiles","source-layer":"water_name",filter:["all",["==","$type","Point"],["==","class","ocean"]],layout:{"text-font":["Noto Sans Italic"],"text-size":14,"text-field":"{name:latin}","text-max-width":5,"text-rotation-alignment":"map","symbol-placement":"point","symbol-spacing":350,"text-letter-spacing":.2},paint:{"text-color":"#74aee9","text-halo-width":1.5,"text-halo-color":"rgba(255,255,255,0.7)"}},{id:"water-name-other",type:"symbol",source:"openmaptiles","source-layer":"water_name",filter:["all",["==","$type","Point"],["!in","class","ocean"]],layout:{"text-font":["Noto Sans Italic"],"text-size":{stops:[[0,10],[6,14]]},"text-field":`{name:latin}
|
||||
{name:nonlatin}`,"text-max-width":5,"text-rotation-alignment":"map","symbol-placement":"point","symbol-spacing":350,"text-letter-spacing":.2,visibility:"visible"},paint:{"text-color":"#74aee9","text-halo-width":1.5,"text-halo-color":"rgba(255,255,255,0.7)"}},{id:"poi-level-3",type:"symbol",source:"openmaptiles","source-layer":"poi",minzoom:16,filter:["all",["==","$type","Point"],[">=","rank",25]],layout:{"text-padding":2,"text-font":["Noto Sans Regular"],"text-anchor":"top","icon-image":"{class}_11","text-field":`{name:latin}
|
||||
{name:nonlatin}`,"text-offset":[0,.6],"text-size":12,"text-max-width":9},paint:{"text-halo-blur":.5,"text-color":"#666","text-halo-width":1,"text-halo-color":"#ffffff"}},{id:"poi-level-2",type:"symbol",source:"openmaptiles","source-layer":"poi",minzoom:15,filter:["all",["==","$type","Point"],["<=","rank",24],[">=","rank",15]],layout:{"text-padding":2,"text-font":["Noto Sans Regular"],"text-anchor":"top","icon-image":"{class}_11","text-field":`{name:latin}
|
||||
@@ -3341,10 +3341,10 @@ uniform `+ir+" "+Ye+" u_"+er+`;
|
||||
{name:nonlatin}`,"text-max-width":8,visibility:"visible"},paint:{"text-color":"rgba(255, 255, 255, 1)","text-halo-width":1.2,"text-halo-color":"rgba(10, 9, 9, 0.8)"}},{id:"place-town",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",filter:["==","class","town"],layout:{"text-font":["Noto Sans Regular"],"text-size":{base:1.2,stops:[[10,14],[15,24]]},"text-field":`{name:latin}
|
||||
{name:nonlatin}`,"text-max-width":8,visibility:"visible"},paint:{"text-color":"rgba(255, 255, 255, 1)","text-halo-width":1.2,"text-halo-color":"rgba(22, 22, 22, 0.8)"}},{id:"place-city",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",filter:["all",["!=","capital",2],["==","class","city"]],layout:{"text-font":["Noto Sans Regular"],"text-size":{base:1.2,stops:[[7,14],[11,24]]},"text-field":`{name:latin}
|
||||
{name:nonlatin}`,"text-max-width":8,visibility:"visible"},paint:{"text-color":"rgba(0, 0, 0, 1)","text-halo-width":1.2,"text-halo-color":"rgba(255,255,255,0.8)"}},{id:"place-city-capital",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",filter:["all",["==","capital",2],["==","class","city"]],layout:{"text-font":["Noto Sans Regular"],"text-size":{base:1.2,stops:[[7,14],[11,24]]},"text-field":`{name:latin}
|
||||
{name:nonlatin}`,"text-max-width":8,"icon-image":"star_11","text-offset":[.4,0],"icon-size":.8,"text-anchor":"left",visibility:"visible"},paint:{"text-color":"#333","text-halo-width":1.2,"text-halo-color":"rgba(255,255,255,0.8)"}},{id:"place-country-other",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",filter:["all",["==","class","country"],[">=","rank",3],["!has","iso_a2"]],layout:{"text-font":["Noto Sans Italic"],"text-field":"{name:latin}","text-size":{stops:[[3,11],[7,17]]},"text-transform":"uppercase","text-max-width":6.25,visibility:"visible"},paint:{"text-halo-blur":1,"text-color":"#334","text-halo-width":2,"text-halo-color":"rgba(255,255,255,0.8)"}},{id:"place-country-3",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",filter:["all",["==","class","country"],[">=","rank",3],["has","iso_a2"]],layout:{"text-font":["Noto Sans Bold"],"text-field":"{name:latin}","text-size":{stops:[[3,11],[7,17]]},"text-transform":"uppercase","text-max-width":6.25,visibility:"visible"},paint:{"text-halo-blur":1,"text-color":"#334","text-halo-width":2,"text-halo-color":"rgba(255,255,255,0.8)"}},{id:"place-country-2",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",filter:["all",["==","class","country"],["==","rank",2],["has","iso_a2"]],layout:{"text-font":["Noto Sans Bold"],"text-field":"{name:latin}","text-size":{stops:[[2,11],[5,17]]},"text-transform":"uppercase","text-max-width":6.25,visibility:"visible"},paint:{"text-halo-blur":1,"text-color":"#334","text-halo-width":2,"text-halo-color":"rgba(255,255,255,0.8)"}},{id:"place-country-1",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",filter:["all",["==","class","country"],["==","rank",1],["has","iso_a2"]],layout:{"text-font":["Noto Sans Bold"],"text-field":"{name:latin}","text-size":{stops:[[1,11],[4,17]]},"text-transform":"uppercase","text-max-width":6.25,visibility:"visible"},paint:{"text-halo-blur":1,"text-color":"#334","text-halo-width":2,"text-halo-color":"rgba(255,255,255,0.8)"}},{id:"place-continent",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",maxzoom:1,filter:["==","class","continent"],layout:{"text-font":["Noto Sans Bold"],"text-field":"{name:latin}","text-size":14,"text-max-width":6.25,"text-transform":"uppercase",visibility:"visible"},paint:{"text-halo-blur":1,"text-color":"#334","text-halo-width":2,"text-halo-color":"rgba(255,255,255,0.8)"}}],id:"qebnlkra6"}}),uq=Dt((Q,Z)=>{Z.exports={version:8,name:"orto",metadata:{},center:[1.537786,41.837539],zoom:12,bearing:0,pitch:0,light:{anchor:"viewport",color:"white",intensity:.4,position:[1.15,45,30]},sources:{ortoEsri:{type:"raster",tiles:["https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}"],tileSize:256,maxzoom:18,attribution:"ESRI © <a href='http://www.esri.com'>ESRI</a>"},ortoInstaMaps:{type:"raster",tiles:["https://tilemaps.icgc.cat/mapfactory/wmts/orto_8_12/CAT3857/{z}/{x}/{y}.png"],tileSize:256,maxzoom:13},ortoICGC:{type:"raster",tiles:["https://geoserveis.icgc.cat/icc_mapesmultibase/noutm/wmts/orto/GRID3857/{z}/{x}/{y}.jpeg"],tileSize:256,minzoom:13.1,maxzoom:20},openmaptiles:{type:"vector",url:"https://geoserveis.icgc.cat/contextmaps/basemap.json"}},sprite:"https://geoserveis.icgc.cat/contextmaps/sprites/sprite@1",glyphs:"https://geoserveis.icgc.cat/contextmaps/glyphs/{fontstack}/{range}.pbf",layers:[{id:"background",type:"background",paint:{"background-color":"#F4F9F4"}},{id:"ortoEsri",type:"raster",source:"ortoEsri",maxzoom:16,layout:{visibility:"visible"}},{id:"ortoICGC",type:"raster",source:"ortoICGC",minzoom:13.1,maxzoom:19,layout:{visibility:"visible"}},{id:"ortoInstaMaps",type:"raster",source:"ortoInstaMaps",maxzoom:13,layout:{visibility:"visible"}}]}}),K1=Dt((Q,Z)=>{var c=K0(),g=lq(),I=uq(),S='© <a target="_blank" href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors',t="https://basemaps.cartocdn.com/gl/positron-gl-style/style.json",e="https://basemaps.cartocdn.com/gl/dark-matter-gl-style/style.json",r="https://basemaps.cartocdn.com/gl/voyager-gl-style/style.json",a="https://basemaps.cartocdn.com/gl/positron-nolabels-gl-style/style.json",n="https://basemaps.cartocdn.com/gl/dark-matter-nolabels-gl-style/style.json",o="https://basemaps.cartocdn.com/gl/voyager-nolabels-gl-style/style.json",i={basic:r,streets:r,outdoors:r,light:t,dark:e,satellite:I,"satellite-streets":g,"open-street-map":{id:"osm",version:8,sources:{"plotly-osm-tiles":{type:"raster",attribution:S,tiles:["https://tile.openstreetmap.org/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-osm-tiles",type:"raster",source:"plotly-osm-tiles",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"white-bg":{id:"white-bg",version:8,sources:{},layers:[{id:
Line truncated
|
||||
`),mapOnErrorMsg:"Map error."}}),z3=Dt((Q,Z)=>{var c=kn(),g=fi().defaultLine,I=Uh().attributes,S=ha(),t=ef().textposition,e=Kc().overrideAll,r=gu().templatedArray,a=K1(),n=S({noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0});n.family.dflt="Open Sans Regular, Arial Unicode MS Regular";var o=Z.exports=e({_arrayAttrRegexps:[c.counterRegex("map",".layers",!0)],domain:I({name:"map"}),style:{valType:"any",values:a.styleValuesMap,dflt:a.styleValueDflt},center:{lon:{valType:"number",dflt:0},lat:{valType:"number",dflt:0}},zoom:{valType:"number",dflt:1},bearing:{valType:"number",dflt:0},pitch:{valType:"number",dflt:0},bounds:{west:{valType:"number"},east:{valType:"number"},south:{valType:"number"},north:{valType:"number"}},layers:r("layer",{visible:{valType:"boolean",dflt:!0},sourcetype:{valType:"enumerated",values:["geojson","vector","raster","image"],dflt:"geojson"},source:{valType:"any"},sourcelayer:{valType:"string",dflt:""},sourceattribution:{valType:"string"},type:{valType:"enumerated",values:["circle","line","fill","symbol","raster"],dflt:"circle"},coordinates:{valType:"any"},below:{valType:"string"},color:{valType:"color",dflt:g},opacity:{valType:"number",min:0,max:1,dflt:1},minzoom:{valType:"number",min:0,max:24,dflt:0},maxzoom:{valType:"number",min:0,max:24,dflt:24},circle:{radius:{valType:"number",dflt:15}},line:{width:{valType:"number",dflt:2},dash:{valType:"data_array"}},fill:{outlinecolor:{valType:"color",dflt:g}},symbol:{icon:{valType:"string",dflt:"marker"},iconsize:{valType:"number",dflt:10},text:{valType:"string",dflt:""},placement:{valType:"enumerated",values:["point","line","line-center"],dflt:"point"},textfont:n,textposition:c.extendFlat({},t,{arrayOk:!1})}})},"plot","from-root");o.uirevision={valType:"any",editType:"none"}}),TT=Dt((Q,Z)=>{var{hovertemplateAttrs:c,texttemplateAttrs:g,templatefallbackAttrs:I}=Gu(),S=z0(),t=xx(),e=ef(),r=z3(),a=Oo(),n=kc(),o=Ca().extendFlat,i=Kc().overrideAll,l=z3(),f=t.line,x=t.marker;Z.exports=i({lon:t.lon,lat:t.lat,cluster:{enabled:{valType:"boolean"},maxzoom:o({},l.layers.maxzoom,{}),step:{valType:"number",arrayOk:!0,dflt:-1,min:-1},size:{valType:"number",arrayOk:!0,dflt:20,min:0},color:{valType:"color",arrayOk:!0},opacity:o({},x.opacity,{dflt:1})},mode:o({},e.mode,{dflt:"markers"}),text:o({},e.text,{}),texttemplate:g({editType:"plot"},{keys:["lat","lon","text"]}),texttemplatefallback:I({editType:"plot"}),hovertext:o({},e.hovertext,{}),line:{color:f.color,width:f.width},connectgaps:e.connectgaps,marker:o({symbol:{valType:"string",dflt:"circle",arrayOk:!0},angle:{valType:"number",dflt:"auto",arrayOk:!0},allowoverlap:{valType:"boolean",dflt:!1},opacity:x.opacity,size:x.size,sizeref:x.sizeref,sizemin:x.sizemin,sizemode:x.sizemode},n("marker")),fill:t.fill,fillcolor:S(),textfont:r.layers.symbol.textfont,textposition:r.layers.symbol.textposition,below:{valType:"string"},selected:{marker:e.selected.marker},unselected:{marker:e.unselected.marker},hoverinfo:o({},a.hoverinfo,{flags:["lon","lat","text","name"]}),hovertemplate:c(),hovertemplatefallback:I()},"calc","nested")}),LE=Dt((Q,Z)=>{var c=["Metropolis Black Italic","Metropolis Black","Metropolis Bold Italic","Metropolis Bold","Metropolis Extra Bold Italic","Metropolis Extra Bold","Metropolis Extra Light Italic","Metropolis Extra Light","Metropolis Light Italic","Metropolis Light","Metropolis Medium Italic","Metropolis Medium","Metropolis Regular Italic","Metropolis Regular","Metropolis Semi Bold Italic","Metropolis Semi Bold","Metropolis Thin Italic","Metropolis Thin","Open Sans Bold Italic","Open Sans Bold","Open Sans Extrabold Italic","Open Sans Extrabold","Open Sans Italic","Open Sans Light Italic","Open Sans Light","Open Sans Regular","Open Sans Semibold Italic","Open Sans Semibold","Klokantech Noto Sans Bold","Klokantech Noto Sans CJK Bold","Klokantech Noto Sans CJK Regular","Klokantech Noto Sans Italic","Klokantech Noto Sans Regular"];Z.exports={isSupportedFont:function(g){return c.indexOf(g)!==-1}}}),cq=Dt((Q,Z)=>{var c=kn(),g=Tc(),I=s0(),S=O0(),t=x0(),e=D0(),r=TT(),a=LE().isSupportedFont;Z.exports=function(o,i,l,f){function x(p,k){return c.coerce(o,i,r,p,k)}function y(p,k){return c.coerce2(o,i,r,p,k)}var v=n(o,i,x);if(!v){i.visible=!1;return}if(x("text"),x("texttemplate"),x("texttemplatefallback"),x("hovertext"),x("hovertemplate"),x("hovertemplatefallback"),x("mode"),x("below"),g.hasMarkers(i)){I(o,i,l,f,x,{noLine:!0,noAngle:!0}),x("marker.allowoverlap"),x("marker.angle");var T=i.marker;T.symbol!=="circle"&&(c.isArrayOrTypedArray(T.size)&&(T.size=T.size[0]),c.isArrayOrTypedArray(T.color)&&(T.color=T.color[0]))}g.hasLines(i)&&(S(o,i,l,f,x,{noDash:!0}),x("connectgaps"));var u=y("cluster.maxzoom"),b=y("cluster.step"),_=y("cluster.color",i.marker&&i.marker.color||l),P=y("cluster.size"),M=y("cluster.opacity"),C=u!==!1||b!==!1||_!==!1||P!==!1||M!==!1,A=x("cluster.enabled",C);if(A||g.hasText(i)){var h=f.font.family;t(o,i,f,x,{noSelect:!0,noFontVariant:!0,noFontShadow:!0,noFontLineposition
Line truncated
|
||||
`)),V.push({type:"Feature",geometry:{type:"Point",coordinates:F.lonlat},properties:{symbol:R(H),angle:O(H),text:W}})}}return{type:"FeatureCollection",features:V}}function T(M,C){return g.isArrayOrTypedArray(M)?C?function(A){return c(M[A])?+M[A]:0}:function(A){return M[A]}:M?function(){return M}:u}function u(){return""}function b(M){return M[0]===I}function _(M,C){var A;if(g.isArrayOrTypedArray(M)&&g.isArrayOrTypedArray(C)){A=["step",["get","point_count"],M[0]];for(var h=1;h<M.length;h++)A.push(C[h-1],M[h])}else A=M;return A}function P(M){var C=M.textfont,A=C.family,h=C.style,p=C.weight,k=A.split(" "),w=k[k.length-1]==="Italic";w&&k.pop(),w=w||h==="italic";var R=k.join(" ");p==="bold"&&k.indexOf("Bold")===-1?R+=" Bold":p<=1e3&&(k[0]==="Metropolis"?(R="Metropolis",p>850?R+=" Black":p>750?R+=" Extra Bold":p>650?R+=" Bold":p>550?R+=" Semi Bold":p>450?R+=" Medium":p>350?R+=" Regular":p>250?R+=" Light":p>150?R+=" Extra Light":R+=" Thin"):k.slice(0,2).join(" ")==="Open Sans"?(R="Open Sans",p>750?R+=" Extrabold":p>650?R+=" Bold":p>550?R+=" Semibold":p>350?R+=" Regular":R+=" Light"):k.slice(0,3).join(" ")==="Klokantech Noto Sans"&&(R="Klokantech Noto Sans",k[3]==="CJK"&&(R+=" CJK"),R+=p>500?" Bold":" Regular")),w&&(R+=" Italic"),R==="Open Sans Regular Italic"?R="Open Sans Italic":R==="Open Sans Regular Bold"?R="Open Sans Bold":R==="Open Sans Regular Bold Italic"?R="Open Sans Bold Italic":R==="Klokantech Noto Sans Regular Italic"&&(R="Klokantech Noto Sans Italic"),n(R)||(R=A);var O=R.split(", ");return O}}),fq=Dt((Q,Z)=>{var c=kn(),g=hq(),I=K1().traceLayerPrefix,S={cluster:["cluster","clusterCount","circle"],nonCluster:["fill","line","circle","symbol"]};function t(r,a,n,o){this.type="scattermap",this.subplot=r,this.uid=a,this.clusterEnabled=n,this.isHidden=o,this.sourceIds={fill:"source-"+a+"-fill",line:"source-"+a+"-line",circle:"source-"+a+"-circle",symbol:"source-"+a+"-symbol",cluster:"source-"+a+"-circle",clusterCount:"source-"+a+"-circle"},this.layerIds={fill:I+a+"-fill",line:I+a+"-line",circle:I+a+"-circle",symbol:I+a+"-symbol",cluster:I+a+"-cluster",clusterCount:I+a+"-cluster-count"},this.below=null}var e=t.prototype;e.addSource=function(r,a,n){var o={type:"geojson",data:a.geojson};n&&n.enabled&&c.extendFlat(o,{cluster:!0,clusterMaxZoom:n.maxzoom});var i=this.subplot.map.getSource(this.sourceIds[r]);i?i.setData(a.geojson):this.subplot.map.addSource(this.sourceIds[r],o)},e.setSourceData=function(r,a){this.subplot.map.getSource(this.sourceIds[r]).setData(a.geojson)},e.addLayer=function(r,a,n){var o={type:a.type,id:this.layerIds[r],source:this.sourceIds[r],layout:a.layout,paint:a.paint};a.filter&&(o.filter=a.filter);for(var i=this.layerIds[r],l,f=this.subplot.getMapLayers(),x=0;x<f.length;x++)if(f[x].id===i){l=!0;break}l?(this.subplot.setOptions(i,"setLayoutProperty",o.layout),o.layout.visibility==="visible"&&this.subplot.setOptions(i,"setPaintProperty",o.paint)):this.subplot.addLayer(o,n)},e.update=function(r){var a=r[0].trace,n=this.subplot,o=n.map,i=g(n.gd,r),l=n.belowLookup["trace-"+this.uid],f=!!(a.cluster&&a.cluster.enabled),x=!!this.clusterEnabled,y=this;function v(h){h||y.addSource("circle",i.circle,a.cluster);for(var p=S.cluster,k=0;k<p.length;k++){var w=p[k],R=i[w];y.addLayer(w,R,l)}}function T(h){for(var p=S.cluster,k=p.length-1;k>=0;k--){var w=p[k];o.removeLayer(y.layerIds[w])}h||o.removeSource(y.sourceIds.circle)}function u(h){for(var p=S.nonCluster,k=0;k<p.length;k++){var w=p[k],R=i[w];h||y.addSource(w,R),y.addLayer(w,R,l)}}function b(h){for(var p=S.nonCluster,k=p.length-1;k>=0;k--){var w=p[k];o.removeLayer(y.layerIds[w]),h||o.removeSource(y.sourceIds[w])}}function _(h){x?T(h):b(h)}function P(h){f?v(h):u(h)}function M(){for(var h=f?S.cluster:S.nonCluster,p=0;p<h.length;p++){var k=h[p],w=i[k];w&&(n.setOptions(y.layerIds[k],"setLayoutProperty",w.layout),w.layout.visibility==="visible"&&(k!=="cluster"&&y.setSourceData(k,w),n.setOptions(y.layerIds[k],"setPaintProperty",w.paint)))}}var C=this.isHidden,A=a.visible!==!0;A?C||_():C?A||P():x!==f?(_(),P()):(this.below!==l&&(_(!0),P(!0)),M()),this.clusterEnabled=f,this.isHidden=A,this.below=l,r[0].trace._glTrace=this},e.dispose=function(){for(var r=this.subplot.map,a=this.clusterEnabled?S.cluster:S.nonCluster,n=a.length-1;n>=0;n--){var o=a[n];r.removeLayer(this.layerIds[o]),r.removeSource(this.sourceIds[o])}},Z.exports=function(r,a){var n=a[0].trace,o=n.cluster&&n.cluster.enabled,i=n.visible!==!0,l=new t(r,n.uid,o,i),f=g(r.gd,a),x=l.below=r.belowLookup["trace-"+n.uid],y,v,T;if(o)for(l.addSource("circle",f.circle,n.cluster),y=0;y<S.cluster.length;y++)v=S.cluster[y],T=f[v],l.addLayer(v,T,x);else for(y=0;y<S.nonCluster.length;y++)v=S.nonCluster[y],T=f[v],l.addSource(v,T,n.cluster),l.addLayer(v,T,x);return a[0].trace._glTrace=l,l}}),AT=Dt((Q,Z)=>{var c=tf(),g=kn(),I=Bu(),S=g.fillText,t=sa().BADNUM,e=K1().traceLayerPrefix;function r(n,o,i){var l=n.cd,f=l[0].trace,x=n.xa,y=n.ya,v=n.subplot,T=[],u=e+f.uid+"-circle",b=f.cluster&&f.cluster.enabled;if(b){var _=v.map.qu
Line truncated
|
||||
Use an identity property function instead: \`{ "type": "identity", "property": ${JSON.stringify(Lr[1])} }\`.`)];let Zr=[];return G.layerType==="symbol"&&(ke==="text-field"&&Rt&&!Rt.glyphs&&Zr.push(new Lt(nt,Qt,'use of "text-field" requires a style "glyphs" property')),ke==="text-font"&&Cf(Ph(Qt))&&ku(Qt.type)==="identity"&&Zr.push(new Lt(nt,Qt,'"text-font" does not support identity functions'))),Zr.concat(bt({key:G.key,value:Qt,valueSpec:_r,style:Rt,styleSpec:Kt,expressionContext:"property",propertyType:D,propertyKey:ke}))}function Pd(G){return wf(G,"paint")}function gc(G){return wf(G,"layout")}function Qf(G){let D=[],nt=G.value,bt=G.key,Rt=G.style,Kt=G.styleSpec;nt.type||nt.ref||D.push(new Lt(bt,nt,'either "type" or "ref" is required'));let Qt=ku(nt.type),ke=ku(nt.ref);if(nt.id){let Be=ku(nt.id);for(let rr=0;rr<G.arrayIndex;rr++){let _r=Rt.layers[rr];ku(_r.id)===Be&&D.push(new Lt(bt,nt.id,`duplicate layer id "${nt.id}", previously used at line ${_r.id.__line__}`))}}if("ref"in nt){let Be;["type","source","source-layer","filter","layout"].forEach(rr=>{rr in nt&&D.push(new Lt(bt,nt[rr],`"${rr}" is prohibited for ref layers`))}),Rt.layers.forEach(rr=>{ku(rr.id)===ke&&(Be=rr)}),Be?Be.ref?D.push(new Lt(bt,nt.ref,"ref cannot reference another ref layer")):Qt=ku(Be.type):D.push(new Lt(bt,nt.ref,`ref layer "${ke}" not found`))}else if(Qt!=="background")if(nt.source){let Be=Rt.sources&&Rt.sources[nt.source],rr=Be&&ku(Be.type);Be?rr==="vector"&&Qt==="raster"?D.push(new Lt(bt,nt.source,`layer "${nt.id}" requires a raster source`)):rr!=="raster-dem"&&Qt==="hillshade"?D.push(new Lt(bt,nt.source,`layer "${nt.id}" requires a raster-dem source`)):rr==="raster"&&Qt!=="raster"?D.push(new Lt(bt,nt.source,`layer "${nt.id}" requires a vector source`)):rr!=="vector"||nt["source-layer"]?rr==="raster-dem"&&Qt!=="hillshade"?D.push(new Lt(bt,nt.source,"raster-dem source can only be used with layer type 'hillshade'.")):Qt!=="line"||!nt.paint||!nt.paint["line-gradient"]||rr==="geojson"&&Be.lineMetrics||D.push(new Lt(bt,nt,`layer "${nt.id}" specifies a line-gradient, which requires a GeoJSON source with \`lineMetrics\` enabled.`)):D.push(new Lt(bt,nt,`layer "${nt.id}" must specify a "source-layer"`)):D.push(new Lt(bt,nt.source,`source "${nt.source}" not found`))}else D.push(new Lt(bt,nt,'missing required property "source"'));return D=D.concat(Vc({key:bt,value:nt,valueSpec:Kt.layer,style:G.style,styleSpec:G.styleSpec,validateSpec:G.validateSpec,objectElementValidators:{"*":()=>[],type:()=>G.validateSpec({key:`${bt}.type`,value:nt.type,valueSpec:Kt.layer.type,style:G.style,styleSpec:G.styleSpec,validateSpec:G.validateSpec,object:nt,objectKey:"type"}),filter:nf,layout:Be=>Vc({layer:nt,key:Be.key,value:Be.value,style:Be.style,styleSpec:Be.styleSpec,validateSpec:Be.validateSpec,objectElementValidators:{"*":rr=>gc(Mt({layerType:Qt},rr))}}),paint:Be=>Vc({layer:nt,key:Be.key,value:Be.value,style:Be.style,styleSpec:Be.styleSpec,validateSpec:Be.validateSpec,objectElementValidators:{"*":rr=>Pd(Mt({layerType:Qt},rr))}})}})),D}function rh(G){let D=G.value,nt=G.key,bt=eu(D);return bt!=="string"?[new Lt(nt,D,`string expected, ${bt} found`)]:[]}let Ih={promoteId:function({key:G,value:D}){if(eu(D)==="string")return rh({key:G,value:D});{let nt=[];for(let bt in D)nt.push(...rh({key:`${G}.${bt}`,value:D[bt]}));return nt}}};function bh(G){let D=G.value,nt=G.key,bt=G.styleSpec,Rt=G.style,Kt=G.validateSpec;if(!D.type)return[new Lt(nt,D,'"type" is required')];let Qt=ku(D.type),ke;switch(Qt){case"vector":case"raster":return ke=Vc({key:nt,value:D,valueSpec:bt[`source_${Qt.replace("-","_")}`],style:G.style,styleSpec:bt,objectElementValidators:Ih,validateSpec:Kt}),ke;case"raster-dem":return ke=function(Be){var rr;let _r=(rr=Be.sourceName)!==null&&rr!==void 0?rr:"",Lr=Be.value,Zr=Be.styleSpec,un=Zr.source_raster_dem,bn=Be.style,Ln=[],Kn=eu(Lr);if(Lr===void 0)return Ln;if(Kn!=="object")return Ln.push(new Lt("source_raster_dem",Lr,`object expected, ${Kn} found`)),Ln;let Ii=ku(Lr.encoding)==="custom",Sa=["redFactor","greenFactor","blueFactor","baseShift"],ra=Be.value.encoding?`"${Be.value.encoding}"`:"Default";for(let ya in Lr)!Ii&&Sa.includes(ya)?Ln.push(new Lt(ya,Lr[ya],`In "${_r}": "${ya}" is only valid when "encoding" is set to "custom". ${ra} encoding found`)):un[ya]?Ln=Ln.concat(Be.validateSpec({key:ya,value:Lr[ya],valueSpec:un[ya],validateSpec:Be.validateSpec,style:bn,styleSpec:Zr})):Ln.push(new Lt(ya,Lr[ya],`unknown property "${ya}"`));return Ln}({sourceName:nt,value:D,style:G.style,styleSpec:bt,validateSpec:Kt}),ke;case"geojson":if(ke=Vc({key:nt,value:D,valueSpec:bt.source_geojson,style:Rt,styleSpec:bt,validateSpec:Kt,objectElementValidators:Ih}),D.cluster)for(let Be in D.clusterProperties){let[rr,_r]=D.clusterProperties[Be],Lr=typeof rr=="string"?[rr,["accumulated"],["get",Be]]:rr;ke.push(...Zh({key:`${nt}.${Be}.map`,value:_r,expressionContext:"cluster-map"})),ke.push(...Zh({key:`${nt}.${Be}.reduce`,value:Lr,expressionContext:"cluster-reduce"}))}return ke;Line truncated
|
||||
{name:nonlatin}`,"text-max-width":8,"icon-image":"star_11","text-offset":[.4,0],"icon-size":.8,"text-anchor":"left",visibility:"visible"},paint:{"text-color":"#333","text-halo-width":1.2,"text-halo-color":"rgba(255,255,255,0.8)"}},{id:"place-country-other",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",filter:["all",["==","class","country"],[">=","rank",3],["!has","iso_a2"]],layout:{"text-font":["Noto Sans Italic"],"text-field":"{name:latin}","text-size":{stops:[[3,11],[7,17]]},"text-transform":"uppercase","text-max-width":6.25,visibility:"visible"},paint:{"text-halo-blur":1,"text-color":"#334","text-halo-width":2,"text-halo-color":"rgba(255,255,255,0.8)"}},{id:"place-country-3",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",filter:["all",["==","class","country"],[">=","rank",3],["has","iso_a2"]],layout:{"text-font":["Noto Sans Bold"],"text-field":"{name:latin}","text-size":{stops:[[3,11],[7,17]]},"text-transform":"uppercase","text-max-width":6.25,visibility:"visible"},paint:{"text-halo-blur":1,"text-color":"#334","text-halo-width":2,"text-halo-color":"rgba(255,255,255,0.8)"}},{id:"place-country-2",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",filter:["all",["==","class","country"],["==","rank",2],["has","iso_a2"]],layout:{"text-font":["Noto Sans Bold"],"text-field":"{name:latin}","text-size":{stops:[[2,11],[5,17]]},"text-transform":"uppercase","text-max-width":6.25,visibility:"visible"},paint:{"text-halo-blur":1,"text-color":"#334","text-halo-width":2,"text-halo-color":"rgba(255,255,255,0.8)"}},{id:"place-country-1",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",filter:["all",["==","class","country"],["==","rank",1],["has","iso_a2"]],layout:{"text-font":["Noto Sans Bold"],"text-field":"{name:latin}","text-size":{stops:[[1,11],[4,17]]},"text-transform":"uppercase","text-max-width":6.25,visibility:"visible"},paint:{"text-halo-blur":1,"text-color":"#334","text-halo-width":2,"text-halo-color":"rgba(255,255,255,0.8)"}},{id:"place-continent",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",maxzoom:1,filter:["==","class","continent"],layout:{"text-font":["Noto Sans Bold"],"text-field":"{name:latin}","text-size":14,"text-max-width":6.25,"text-transform":"uppercase",visibility:"visible"},paint:{"text-halo-blur":1,"text-color":"#334","text-halo-width":2,"text-halo-color":"rgba(255,255,255,0.8)"}}],id:"qebnlkra6"}}),uq=Dt((Q,Z)=>{Z.exports={version:8,name:"orto",metadata:{},center:[1.537786,41.837539],zoom:12,bearing:0,pitch:0,light:{anchor:"viewport",color:"white",intensity:.4,position:[1.15,45,30]},sources:{ortoEsri:{type:"raster",tiles:["https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}"],tileSize:256,maxzoom:18,attribution:"ESRI © <a href='http://www.esri.com'>ESRI</a>"},ortoInstaMaps:{type:"raster",tiles:["https://tilemaps.icgc.cat/mapfactory/wmts/orto_8_12/CAT3857/{z}/{x}/{y}.png"],tileSize:256,maxzoom:13},ortoICGC:{type:"raster",tiles:["https://geoserveis.icgc.cat/icc_mapesmultibase/noutm/wmts/orto/GRID3857/{z}/{x}/{y}.jpeg"],tileSize:256,minzoom:13.1,maxzoom:20},openmaptiles:{type:"vector",url:"https://geoserveis.icgc.cat/contextmaps/basemap.json"}},sprite:"https://geoserveis.icgc.cat/contextmaps/sprites/sprite@1",glyphs:"https://geoserveis.icgc.cat/contextmaps/glyphs/{fontstack}/{range}.pbf",layers:[{id:"background",type:"background",paint:{"background-color":"#F4F9F4"}},{id:"ortoEsri",type:"raster",source:"ortoEsri",maxzoom:16,layout:{visibility:"visible"}},{id:"ortoICGC",type:"raster",source:"ortoICGC",minzoom:13.1,maxzoom:19,layout:{visibility:"visible"}},{id:"ortoInstaMaps",type:"raster",source:"ortoInstaMaps",maxzoom:13,layout:{visibility:"visible"}}]}}),K1=Dt((Q,Z)=>{var c=K0(),g=lq(),z=uq(),S='© <a target="_blank" href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors',t="https://basemaps.cartocdn.com/gl/positron-gl-style/style.json",e="https://basemaps.cartocdn.com/gl/dark-matter-gl-style/style.json",r="https://basemaps.cartocdn.com/gl/voyager-gl-style/style.json",a="https://basemaps.cartocdn.com/gl/positron-nolabels-gl-style/style.json",n="https://basemaps.cartocdn.com/gl/dark-matter-nolabels-gl-style/style.json",o="https://basemaps.cartocdn.com/gl/voyager-nolabels-gl-style/style.json",i={basic:r,streets:r,outdoors:r,light:t,dark:e,satellite:z,"satellite-streets":g,"open-street-map":{id:"osm",version:8,sources:{"plotly-osm-tiles":{type:"raster",attribution:S,tiles:["https://tile.openstreetmap.org/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-osm-tiles",type:"raster",source:"plotly-osm-tiles",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"white-bg":{id:"white-bg",version:8,sources:{},layers:[{id:
Line truncated
|
||||
`),mapOnErrorMsg:"Map error."}}),O3=Dt((Q,Z)=>{var c=kn(),g=pi().defaultLine,z=Uh().attributes,S=ha(),t=ef().textposition,e=Kc().overrideAll,r=gu().templatedArray,a=K1(),n=S({noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0});n.family.dflt="Open Sans Regular, Arial Unicode MS Regular";var o=Z.exports=e({_arrayAttrRegexps:[c.counterRegex("map",".layers",!0)],domain:z({name:"map"}),style:{valType:"any",values:a.styleValuesMap,dflt:a.styleValueDflt},center:{lon:{valType:"number",dflt:0},lat:{valType:"number",dflt:0}},zoom:{valType:"number",dflt:1},bearing:{valType:"number",dflt:0},pitch:{valType:"number",dflt:0},bounds:{west:{valType:"number"},east:{valType:"number"},south:{valType:"number"},north:{valType:"number"}},layers:r("layer",{visible:{valType:"boolean",dflt:!0},sourcetype:{valType:"enumerated",values:["geojson","vector","raster","image"],dflt:"geojson"},source:{valType:"any"},sourcelayer:{valType:"string",dflt:""},sourceattribution:{valType:"string"},type:{valType:"enumerated",values:["circle","line","fill","symbol","raster"],dflt:"circle"},coordinates:{valType:"any"},below:{valType:"string"},color:{valType:"color",dflt:g},opacity:{valType:"number",min:0,max:1,dflt:1},minzoom:{valType:"number",min:0,max:24,dflt:0},maxzoom:{valType:"number",min:0,max:24,dflt:24},circle:{radius:{valType:"number",dflt:15}},line:{width:{valType:"number",dflt:2},dash:{valType:"data_array"}},fill:{outlinecolor:{valType:"color",dflt:g}},symbol:{icon:{valType:"string",dflt:"marker"},iconsize:{valType:"number",dflt:10},text:{valType:"string",dflt:""},placement:{valType:"enumerated",values:["point","line","line-center"],dflt:"point"},textfont:n,textposition:c.extendFlat({},t,{arrayOk:!1})}})},"plot","from-root");o.uirevision={valType:"any",editType:"none"}}),MT=Dt((Q,Z)=>{var{hovertemplateAttrs:c,texttemplateAttrs:g,templatefallbackAttrs:z}=Gu(),S=I0(),t=xx(),e=ef(),r=O3(),a=Oo(),n=kc(),o=Ea().extendFlat,i=Kc().overrideAll,l=O3(),f=t.line,x=t.marker;Z.exports=i({lon:t.lon,lat:t.lat,cluster:{enabled:{valType:"boolean"},maxzoom:o({},l.layers.maxzoom,{}),step:{valType:"number",arrayOk:!0,dflt:-1,min:-1},size:{valType:"number",arrayOk:!0,dflt:20,min:0},color:{valType:"color",arrayOk:!0},opacity:o({},x.opacity,{dflt:1})},mode:o({},e.mode,{dflt:"markers"}),text:o({},e.text,{}),texttemplate:g({editType:"plot"},{keys:["lat","lon","text"]}),texttemplatefallback:z({editType:"plot"}),hovertext:o({},e.hovertext,{}),line:{color:f.color,width:f.width},connectgaps:e.connectgaps,marker:o({symbol:{valType:"string",dflt:"circle",arrayOk:!0},angle:{valType:"number",dflt:"auto",arrayOk:!0},allowoverlap:{valType:"boolean",dflt:!1},opacity:x.opacity,size:x.size,sizeref:x.sizeref,sizemin:x.sizemin,sizemode:x.sizemode},n("marker")),fill:t.fill,fillcolor:S(),textfont:r.layers.symbol.textfont,textposition:r.layers.symbol.textposition,below:{valType:"string"},selected:{marker:e.selected.marker},unselected:{marker:e.unselected.marker},hoverinfo:o({},a.hoverinfo,{flags:["lon","lat","text","name"]}),hovertemplate:c(),hovertemplatefallback:z()},"calc","nested")}),LC=Dt((Q,Z)=>{var c=["Metropolis Black Italic","Metropolis Black","Metropolis Bold Italic","Metropolis Bold","Metropolis Extra Bold Italic","Metropolis Extra Bold","Metropolis Extra Light Italic","Metropolis Extra Light","Metropolis Light Italic","Metropolis Light","Metropolis Medium Italic","Metropolis Medium","Metropolis Regular Italic","Metropolis Regular","Metropolis Semi Bold Italic","Metropolis Semi Bold","Metropolis Thin Italic","Metropolis Thin","Open Sans Bold Italic","Open Sans Bold","Open Sans Extrabold Italic","Open Sans Extrabold","Open Sans Italic","Open Sans Light Italic","Open Sans Light","Open Sans Regular","Open Sans Semibold Italic","Open Sans Semibold","Klokantech Noto Sans Bold","Klokantech Noto Sans CJK Bold","Klokantech Noto Sans CJK Regular","Klokantech Noto Sans Italic","Klokantech Noto Sans Regular"];Z.exports={isSupportedFont:function(g){return c.indexOf(g)!==-1}}}),cq=Dt((Q,Z)=>{var c=kn(),g=Tc(),z=s0(),S=O0(),t=x0(),e=D0(),r=MT(),a=LC().isSupportedFont;Z.exports=function(o,i,l,f){function x(p,k){return c.coerce(o,i,r,p,k)}function y(p,k){return c.coerce2(o,i,r,p,k)}var v=n(o,i,x);if(!v){i.visible=!1;return}if(x("text"),x("texttemplate"),x("texttemplatefallback"),x("hovertext"),x("hovertemplate"),x("hovertemplatefallback"),x("mode"),x("below"),g.hasMarkers(i)){z(o,i,l,f,x,{noLine:!0,noAngle:!0}),x("marker.allowoverlap"),x("marker.angle");var T=i.marker;T.symbol!=="circle"&&(c.isArrayOrTypedArray(T.size)&&(T.size=T.size[0]),c.isArrayOrTypedArray(T.color)&&(T.color=T.color[0]))}g.hasLines(i)&&(S(o,i,l,f,x,{noDash:!0}),x("connectgaps"));var u=y("cluster.maxzoom"),b=y("cluster.step"),_=y("cluster.color",i.marker&&i.marker.color||l),P=y("cluster.size"),M=y("cluster.opacity"),E=u!==!1||b!==!1||_!==!1||P!==!1||M!==!1,A=x("cluster.enabled",E);if(A||g.hasText(i)){var h=f.font.family;t(o,i,f,x,{noSelect:!0,noFontVariant:!0,noFontShadow:!0,noFontLineposition
Line truncated
|
||||
`)),V.push({type:"Feature",geometry:{type:"Point",coordinates:F.lonlat},properties:{symbol:R(H),angle:O(H),text:W}})}}return{type:"FeatureCollection",features:V}}function T(M,E){return g.isArrayOrTypedArray(M)?E?function(A){return c(M[A])?+M[A]:0}:function(A){return M[A]}:M?function(){return M}:u}function u(){return""}function b(M){return M[0]===z}function _(M,E){var A;if(g.isArrayOrTypedArray(M)&&g.isArrayOrTypedArray(E)){A=["step",["get","point_count"],M[0]];for(var h=1;h<M.length;h++)A.push(E[h-1],M[h])}else A=M;return A}function P(M){var E=M.textfont,A=E.family,h=E.style,p=E.weight,k=A.split(" "),w=k[k.length-1]==="Italic";w&&k.pop(),w=w||h==="italic";var R=k.join(" ");p==="bold"&&k.indexOf("Bold")===-1?R+=" Bold":p<=1e3&&(k[0]==="Metropolis"?(R="Metropolis",p>850?R+=" Black":p>750?R+=" Extra Bold":p>650?R+=" Bold":p>550?R+=" Semi Bold":p>450?R+=" Medium":p>350?R+=" Regular":p>250?R+=" Light":p>150?R+=" Extra Light":R+=" Thin"):k.slice(0,2).join(" ")==="Open Sans"?(R="Open Sans",p>750?R+=" Extrabold":p>650?R+=" Bold":p>550?R+=" Semibold":p>350?R+=" Regular":R+=" Light"):k.slice(0,3).join(" ")==="Klokantech Noto Sans"&&(R="Klokantech Noto Sans",k[3]==="CJK"&&(R+=" CJK"),R+=p>500?" Bold":" Regular")),w&&(R+=" Italic"),R==="Open Sans Regular Italic"?R="Open Sans Italic":R==="Open Sans Regular Bold"?R="Open Sans Bold":R==="Open Sans Regular Bold Italic"?R="Open Sans Bold Italic":R==="Klokantech Noto Sans Regular Italic"&&(R="Klokantech Noto Sans Italic"),n(R)||(R=A);var O=R.split(", ");return O}}),fq=Dt((Q,Z)=>{var c=kn(),g=hq(),z=K1().traceLayerPrefix,S={cluster:["cluster","clusterCount","circle"],nonCluster:["fill","line","circle","symbol"]};function t(r,a,n,o){this.type="scattermap",this.subplot=r,this.uid=a,this.clusterEnabled=n,this.isHidden=o,this.sourceIds={fill:"source-"+a+"-fill",line:"source-"+a+"-line",circle:"source-"+a+"-circle",symbol:"source-"+a+"-symbol",cluster:"source-"+a+"-circle",clusterCount:"source-"+a+"-circle"},this.layerIds={fill:z+a+"-fill",line:z+a+"-line",circle:z+a+"-circle",symbol:z+a+"-symbol",cluster:z+a+"-cluster",clusterCount:z+a+"-cluster-count"},this.below=null}var e=t.prototype;e.addSource=function(r,a,n){var o={type:"geojson",data:a.geojson};n&&n.enabled&&c.extendFlat(o,{cluster:!0,clusterMaxZoom:n.maxzoom});var i=this.subplot.map.getSource(this.sourceIds[r]);i?i.setData(a.geojson):this.subplot.map.addSource(this.sourceIds[r],o)},e.setSourceData=function(r,a){this.subplot.map.getSource(this.sourceIds[r]).setData(a.geojson)},e.addLayer=function(r,a,n){var o={type:a.type,id:this.layerIds[r],source:this.sourceIds[r],layout:a.layout,paint:a.paint};a.filter&&(o.filter=a.filter);for(var i=this.layerIds[r],l,f=this.subplot.getMapLayers(),x=0;x<f.length;x++)if(f[x].id===i){l=!0;break}l?(this.subplot.setOptions(i,"setLayoutProperty",o.layout),o.layout.visibility==="visible"&&this.subplot.setOptions(i,"setPaintProperty",o.paint)):this.subplot.addLayer(o,n)},e.update=function(r){var a=r[0].trace,n=this.subplot,o=n.map,i=g(n.gd,r),l=n.belowLookup["trace-"+this.uid],f=!!(a.cluster&&a.cluster.enabled),x=!!this.clusterEnabled,y=this;function v(h){h||y.addSource("circle",i.circle,a.cluster);for(var p=S.cluster,k=0;k<p.length;k++){var w=p[k],R=i[w];y.addLayer(w,R,l)}}function T(h){for(var p=S.cluster,k=p.length-1;k>=0;k--){var w=p[k];o.removeLayer(y.layerIds[w])}h||o.removeSource(y.sourceIds.circle)}function u(h){for(var p=S.nonCluster,k=0;k<p.length;k++){var w=p[k],R=i[w];h||y.addSource(w,R),y.addLayer(w,R,l)}}function b(h){for(var p=S.nonCluster,k=p.length-1;k>=0;k--){var w=p[k];o.removeLayer(y.layerIds[w]),h||o.removeSource(y.sourceIds[w])}}function _(h){x?T(h):b(h)}function P(h){f?v(h):u(h)}function M(){for(var h=f?S.cluster:S.nonCluster,p=0;p<h.length;p++){var k=h[p],w=i[k];w&&(n.setOptions(y.layerIds[k],"setLayoutProperty",w.layout),w.layout.visibility==="visible"&&(k!=="cluster"&&y.setSourceData(k,w),n.setOptions(y.layerIds[k],"setPaintProperty",w.paint)))}}var E=this.isHidden,A=a.visible!==!0;A?E||_():E?A||P():x!==f?(_(),P()):(this.below!==l&&(_(!0),P(!0)),M()),this.clusterEnabled=f,this.isHidden=A,this.below=l,r[0].trace._glTrace=this},e.dispose=function(){for(var r=this.subplot.map,a=this.clusterEnabled?S.cluster:S.nonCluster,n=a.length-1;n>=0;n--){var o=a[n];r.removeLayer(this.layerIds[o]),r.removeSource(this.sourceIds[o])}},Z.exports=function(r,a){var n=a[0].trace,o=n.cluster&&n.cluster.enabled,i=n.visible!==!0,l=new t(r,n.uid,o,i),f=g(r.gd,a),x=l.below=r.belowLookup["trace-"+n.uid],y,v,T;if(o)for(l.addSource("circle",f.circle,n.cluster),y=0;y<S.cluster.length;y++)v=S.cluster[y],T=f[v],l.addLayer(v,T,x);else for(y=0;y<S.nonCluster.length;y++)v=S.nonCluster[y],T=f[v],l.addSource(v,T,n.cluster),l.addLayer(v,T,x);return a[0].trace._glTrace=l,l}}),ST=Dt((Q,Z)=>{var c=tf(),g=kn(),z=Bu(),S=g.fillText,t=Ci().BADNUM,e=K1().traceLayerPrefix;function r(n,o,i){var l=n.cd,f=l[0].trace,x=n.xa,y=n.ya,v=n.subplot,T=[],u=e+f.uid+"-circle",b=f.cluster&&f.cluster.enabled;if(b){var _=v.map.qu
Line truncated
|
||||
Use an identity property function instead: \`{ "type": "identity", "property": ${JSON.stringify(Lr[1])} }\`.`)];let $r=[];return G.layerType==="symbol"&&(ke==="text-field"&&Rt&&!Rt.glyphs&&$r.push(new Lt(nt,Qt,'use of "text-field" requires a style "glyphs" property')),ke==="text-font"&&Ef(Ph(Qt))&&ku(Qt.type)==="identity"&&$r.push(new Lt(nt,Qt,'"text-font" does not support identity functions'))),$r.concat(bt({key:G.key,value:Qt,valueSpec:_r,style:Rt,styleSpec:Kt,expressionContext:"property",propertyType:D,propertyKey:ke}))}function Pd(G){return kf(G,"paint")}function gc(G){return kf(G,"layout")}function Qf(G){let D=[],nt=G.value,bt=G.key,Rt=G.style,Kt=G.styleSpec;nt.type||nt.ref||D.push(new Lt(bt,nt,'either "type" or "ref" is required'));let Qt=ku(nt.type),ke=ku(nt.ref);if(nt.id){let Be=ku(nt.id);for(let rr=0;rr<G.arrayIndex;rr++){let _r=Rt.layers[rr];ku(_r.id)===Be&&D.push(new Lt(bt,nt.id,`duplicate layer id "${nt.id}", previously used at line ${_r.id.__line__}`))}}if("ref"in nt){let Be;["type","source","source-layer","filter","layout"].forEach(rr=>{rr in nt&&D.push(new Lt(bt,nt[rr],`"${rr}" is prohibited for ref layers`))}),Rt.layers.forEach(rr=>{ku(rr.id)===ke&&(Be=rr)}),Be?Be.ref?D.push(new Lt(bt,nt.ref,"ref cannot reference another ref layer")):Qt=ku(Be.type):D.push(new Lt(bt,nt.ref,`ref layer "${ke}" not found`))}else if(Qt!=="background")if(nt.source){let Be=Rt.sources&&Rt.sources[nt.source],rr=Be&&ku(Be.type);Be?rr==="vector"&&Qt==="raster"?D.push(new Lt(bt,nt.source,`layer "${nt.id}" requires a raster source`)):rr!=="raster-dem"&&Qt==="hillshade"?D.push(new Lt(bt,nt.source,`layer "${nt.id}" requires a raster-dem source`)):rr==="raster"&&Qt!=="raster"?D.push(new Lt(bt,nt.source,`layer "${nt.id}" requires a vector source`)):rr!=="vector"||nt["source-layer"]?rr==="raster-dem"&&Qt!=="hillshade"?D.push(new Lt(bt,nt.source,"raster-dem source can only be used with layer type 'hillshade'.")):Qt!=="line"||!nt.paint||!nt.paint["line-gradient"]||rr==="geojson"&&Be.lineMetrics||D.push(new Lt(bt,nt,`layer "${nt.id}" specifies a line-gradient, which requires a GeoJSON source with \`lineMetrics\` enabled.`)):D.push(new Lt(bt,nt,`layer "${nt.id}" must specify a "source-layer"`)):D.push(new Lt(bt,nt.source,`source "${nt.source}" not found`))}else D.push(new Lt(bt,nt,'missing required property "source"'));return D=D.concat(Vc({key:bt,value:nt,valueSpec:Kt.layer,style:G.style,styleSpec:G.styleSpec,validateSpec:G.validateSpec,objectElementValidators:{"*":()=>[],type:()=>G.validateSpec({key:`${bt}.type`,value:nt.type,valueSpec:Kt.layer.type,style:G.style,styleSpec:G.styleSpec,validateSpec:G.validateSpec,object:nt,objectKey:"type"}),filter:nf,layout:Be=>Vc({layer:nt,key:Be.key,value:Be.value,style:Be.style,styleSpec:Be.styleSpec,validateSpec:Be.validateSpec,objectElementValidators:{"*":rr=>gc(Mt({layerType:Qt},rr))}}),paint:Be=>Vc({layer:nt,key:Be.key,value:Be.value,style:Be.style,styleSpec:Be.styleSpec,validateSpec:Be.validateSpec,objectElementValidators:{"*":rr=>Pd(Mt({layerType:Qt},rr))}})}})),D}function rh(G){let D=G.value,nt=G.key,bt=eu(D);return bt!=="string"?[new Lt(nt,D,`string expected, ${bt} found`)]:[]}let zh={promoteId:function({key:G,value:D}){if(eu(D)==="string")return rh({key:G,value:D});{let nt=[];for(let bt in D)nt.push(...rh({key:`${G}.${bt}`,value:D[bt]}));return nt}}};function bh(G){let D=G.value,nt=G.key,bt=G.styleSpec,Rt=G.style,Kt=G.validateSpec;if(!D.type)return[new Lt(nt,D,'"type" is required')];let Qt=ku(D.type),ke;switch(Qt){case"vector":case"raster":return ke=Vc({key:nt,value:D,valueSpec:bt[`source_${Qt.replace("-","_")}`],style:G.style,styleSpec:bt,objectElementValidators:zh,validateSpec:Kt}),ke;case"raster-dem":return ke=function(Be){var rr;let _r=(rr=Be.sourceName)!==null&&rr!==void 0?rr:"",Lr=Be.value,$r=Be.styleSpec,un=$r.source_raster_dem,bn=Be.style,Ln=[],Jn=eu(Lr);if(Lr===void 0)return Ln;if(Jn!=="object")return Ln.push(new Lt("source_raster_dem",Lr,`object expected, ${Jn} found`)),Ln;let zi=ku(Lr.encoding)==="custom",Sa=["redFactor","greenFactor","blueFactor","baseShift"],na=Be.value.encoding?`"${Be.value.encoding}"`:"Default";for(let ya in Lr)!zi&&Sa.includes(ya)?Ln.push(new Lt(ya,Lr[ya],`In "${_r}": "${ya}" is only valid when "encoding" is set to "custom". ${na} encoding found`)):un[ya]?Ln=Ln.concat(Be.validateSpec({key:ya,value:Lr[ya],valueSpec:un[ya],validateSpec:Be.validateSpec,style:bn,styleSpec:$r})):Ln.push(new Lt(ya,Lr[ya],`unknown property "${ya}"`));return Ln}({sourceName:nt,value:D,style:G.style,styleSpec:bt,validateSpec:Kt}),ke;case"geojson":if(ke=Vc({key:nt,value:D,valueSpec:bt.source_geojson,style:Rt,styleSpec:bt,validateSpec:Kt,objectElementValidators:zh}),D.cluster)for(let Be in D.clusterProperties){let[rr,_r]=D.clusterProperties[Be],Lr=typeof rr=="string"?[rr,["accumulated"],["get",Be]]:rr;ke.push(...Zh({key:`${nt}.${Be}.map`,value:_r,expressionContext:"cluster-map"})),ke.push(...Zh({key:`${nt}.${Be}.reduce`,value:Lr,expressionContext:"cluster-reduce"}))}return ke;Line truncated
|
||||
precision mediump float;
|
||||
#else
|
||||
#if !defined(lowp)
|
||||
@@ -3868,7 +3868,7 @@ void main() {
|
||||
#pragma mapbox: initialize lowp float halo_blur
|
||||
vec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);float is_sdf=a_size[0]-2.0*a_size_min;float ele=get_elevation(a_pos);highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec2 translated_a_pos=a_pos+u_translation;vec4 projectedPoint=projectTileWithElevation(translated_a_pos,ele);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ?
|
||||
camera_to_anchor_distance/u_camera_to_center_distance :
|
||||
u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=size/24.0;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=projectTileWithElevation(translated_a_pos+vec2(1,0),ele);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos;if (u_is_along_line || u_is_variable_anchor) {projected_pos=vec4(a_projected_pos.xy,ele,1.0);} else if (u_pitch_with_map) {projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy+u_translation,ele,1.0);} else {projected_pos=u_label_plane_matrix*projectTileWithElevation(a_projected_pos.xy+u_translation,ele);}float z=float(u_pitch_with_map)*projected_pos.z/projected_pos.w;float projectionScaling=1.0;vec4 finalPos=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale)*projectionScaling,z,1.0);if(u_pitch_with_map) {finalPos=projectTileWithElevation(finalPos.xy,finalPos.z);}float gamma_scale=finalPos.w;gl_Position=finalPos;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float visibility=calculate_visibility(projectedPoint);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(visibility,fade_opacity[0]+fade_change));v_data0.xy=a_tex/u_texsize;v_data0.zw=a_tex/u_texsize_icon;v_data1=vec4(gamma_scale,size,interpolated_fade_opacity,is_sdf);}`),terrain:Le("uniform sampler2D u_texture;uniform vec4 u_fog_color;uniform vec4 u_horizon_color;uniform float u_fog_ground_blend;uniform float u_fog_ground_blend_opacity;uniform float u_horizon_fog_blend;varying vec2 v_texture_pos;varying float v_fog_depth;const float gamma=2.2;vec4 gammaToLinear(vec4 color) {return pow(color,vec4(gamma));}vec4 linearToGamma(vec4 color) {return pow(color,vec4(1.0/gamma));}void main() {vec4 surface_color=texture2D(u_texture,v_texture_pos);if (v_fog_depth > u_fog_ground_blend) {vec4 surface_color_linear=gammaToLinear(surface_color);float blend_color=smoothstep(0.0,1.0,max((v_fog_depth-u_horizon_fog_blend)/(1.0-u_horizon_fog_blend),0.0));vec4 fog_horizon_color_linear=mix(gammaToLinear(u_fog_color),gammaToLinear(u_horizon_color),blend_color);float factor_fog=max(v_fog_depth-u_fog_ground_blend,0.0)/(1.0-u_fog_ground_blend);gl_FragColor=linearToGamma(mix(surface_color_linear,fog_horizon_color_linear,pow(factor_fog,2.0)*u_fog_ground_blend_opacity));} else {gl_FragColor=surface_color;}}","attribute vec3 a_pos3d;uniform mat4 u_matrix;uniform mat4 u_fog_matrix;uniform float u_ele_delta;varying vec2 v_texture_pos;varying float v_fog_depth;void main() {float ele=get_elevation(a_pos3d.xy);float ele_delta=a_pos3d.z==1.0 ? u_ele_delta : 0.0;v_texture_pos=a_pos3d.xy/8192.0;gl_Position=u_matrix*vec4(a_pos3d.xy,ele-ele_delta,1.0);vec4 pos=u_fog_matrix*vec4(a_pos3d.xy,ele,1.0);v_fog_depth=pos.z/pos.w*0.5+0.5;}"),terrainDepth:Le("varying float v_depth;const highp vec4 bitSh=vec4(256.*256.*256.,256.*256.,256.,1.);const highp vec4 bitMsk=vec4(0.,vec3(1./256.0));highp vec4 pack(highp float value) {highp vec4 comp=fract(value*bitSh);comp-=comp.xxyz*bitMsk;return comp;}void main() {gl_FragColor=pack(v_depth);}","attribute vec3 a_pos3d;uniform mat4 u_matrix;uniform float u_ele_delta;varying float v_depth;void main() {float ele=get_elevation(a_pos3d.xy);float ele_delta=a_pos3d.z==1.0 ? u_ele_delta : 0.0;gl_Position=u_matrix*vec4(a_pos3d.xy,ele-ele_delta,1.0);v_depth=gl_Position.z/gl_Position.w;}"),terrainCoords:Le("precision mediump float;uniform sampler2D u_texture;uniform float u_terrain_coords_id;varying vec2 v_texture_pos;void main() {vec4 rgba=texture2D(u_texture,v_texture_pos);gl_FragColor=vec4(rgba.r,rgba.g,rgba.b,u_terrain_coords_id);}","attribute vec3 a_pos3d;uniform mat4 u_matrix;uniform float u_ele_delta;varying vec2 v_texture_pos;void main() {float ele=get_elevation(a_pos3d.xy);float ele_delta=a_pos3d.z==1.0 ? u_ele_delta : 0.0;v_texture_pos=a_pos3d.xy/8192.0;gl_Position=u_matrix*vec4(a_pos3d.xy,ele-ele_delta,1.0);}"),sky:Le("uniform vec4 u_sky_color;uniform vec4 u_horizon_color;uniform float u_horizon;uniform float u_sky_horizon_blend;void main() {float y=gl_FragCoord.y;if (y > u_horizon) {float blend=y-u_horizon;if (blend < u_sky_horizon_blend) {gl_FragColor=mix(u_sky_color,u_horizon_color,pow(1.0-blend/u_sky_horizon_blend,2.0));} else {gl_FragColor=u_sky_color;}}}","attribute vec2 a_pos;void main() {gl_Position=vec4(a_pos,1.0,1.0);}")};function Le($t,z){let ht=/#pragma mapbox: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,Et=z.match(/attribute ([\w]+) ([\w]+)/g),Ot=$t.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),Ht=z.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),Ae=Ht?Ht.concat(Ot):Ot,Fe={};return{fragmen
Line truncated
|
||||
u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=size/24.0;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=projectTileWithElevation(translated_a_pos+vec2(1,0),ele);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos;if (u_is_along_line || u_is_variable_anchor) {projected_pos=vec4(a_projected_pos.xy,ele,1.0);} else if (u_pitch_with_map) {projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy+u_translation,ele,1.0);} else {projected_pos=u_label_plane_matrix*projectTileWithElevation(a_projected_pos.xy+u_translation,ele);}float z=float(u_pitch_with_map)*projected_pos.z/projected_pos.w;float projectionScaling=1.0;vec4 finalPos=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale)*projectionScaling,z,1.0);if(u_pitch_with_map) {finalPos=projectTileWithElevation(finalPos.xy,finalPos.z);}float gamma_scale=finalPos.w;gl_Position=finalPos;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float visibility=calculate_visibility(projectedPoint);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(visibility,fade_opacity[0]+fade_change));v_data0.xy=a_tex/u_texsize;v_data0.zw=a_tex/u_texsize_icon;v_data1=vec4(gamma_scale,size,interpolated_fade_opacity,is_sdf);}`),terrain:Le("uniform sampler2D u_texture;uniform vec4 u_fog_color;uniform vec4 u_horizon_color;uniform float u_fog_ground_blend;uniform float u_fog_ground_blend_opacity;uniform float u_horizon_fog_blend;varying vec2 v_texture_pos;varying float v_fog_depth;const float gamma=2.2;vec4 gammaToLinear(vec4 color) {return pow(color,vec4(gamma));}vec4 linearToGamma(vec4 color) {return pow(color,vec4(1.0/gamma));}void main() {vec4 surface_color=texture2D(u_texture,v_texture_pos);if (v_fog_depth > u_fog_ground_blend) {vec4 surface_color_linear=gammaToLinear(surface_color);float blend_color=smoothstep(0.0,1.0,max((v_fog_depth-u_horizon_fog_blend)/(1.0-u_horizon_fog_blend),0.0));vec4 fog_horizon_color_linear=mix(gammaToLinear(u_fog_color),gammaToLinear(u_horizon_color),blend_color);float factor_fog=max(v_fog_depth-u_fog_ground_blend,0.0)/(1.0-u_fog_ground_blend);gl_FragColor=linearToGamma(mix(surface_color_linear,fog_horizon_color_linear,pow(factor_fog,2.0)*u_fog_ground_blend_opacity));} else {gl_FragColor=surface_color;}}","attribute vec3 a_pos3d;uniform mat4 u_matrix;uniform mat4 u_fog_matrix;uniform float u_ele_delta;varying vec2 v_texture_pos;varying float v_fog_depth;void main() {float ele=get_elevation(a_pos3d.xy);float ele_delta=a_pos3d.z==1.0 ? u_ele_delta : 0.0;v_texture_pos=a_pos3d.xy/8192.0;gl_Position=u_matrix*vec4(a_pos3d.xy,ele-ele_delta,1.0);vec4 pos=u_fog_matrix*vec4(a_pos3d.xy,ele,1.0);v_fog_depth=pos.z/pos.w*0.5+0.5;}"),terrainDepth:Le("varying float v_depth;const highp vec4 bitSh=vec4(256.*256.*256.,256.*256.,256.,1.);const highp vec4 bitMsk=vec4(0.,vec3(1./256.0));highp vec4 pack(highp float value) {highp vec4 comp=fract(value*bitSh);comp-=comp.xxyz*bitMsk;return comp;}void main() {gl_FragColor=pack(v_depth);}","attribute vec3 a_pos3d;uniform mat4 u_matrix;uniform float u_ele_delta;varying float v_depth;void main() {float ele=get_elevation(a_pos3d.xy);float ele_delta=a_pos3d.z==1.0 ? u_ele_delta : 0.0;gl_Position=u_matrix*vec4(a_pos3d.xy,ele-ele_delta,1.0);v_depth=gl_Position.z/gl_Position.w;}"),terrainCoords:Le("precision mediump float;uniform sampler2D u_texture;uniform float u_terrain_coords_id;varying vec2 v_texture_pos;void main() {vec4 rgba=texture2D(u_texture,v_texture_pos);gl_FragColor=vec4(rgba.r,rgba.g,rgba.b,u_terrain_coords_id);}","attribute vec3 a_pos3d;uniform mat4 u_matrix;uniform float u_ele_delta;varying vec2 v_texture_pos;void main() {float ele=get_elevation(a_pos3d.xy);float ele_delta=a_pos3d.z==1.0 ? u_ele_delta : 0.0;v_texture_pos=a_pos3d.xy/8192.0;gl_Position=u_matrix*vec4(a_pos3d.xy,ele-ele_delta,1.0);}"),sky:Le("uniform vec4 u_sky_color;uniform vec4 u_horizon_color;uniform float u_horizon;uniform float u_sky_horizon_blend;void main() {float y=gl_FragCoord.y;if (y > u_horizon) {float blend=y-u_horizon;if (blend < u_sky_horizon_blend) {gl_FragColor=mix(u_sky_color,u_horizon_color,pow(1.0-blend/u_sky_horizon_blend,2.0));} else {gl_FragColor=u_sky_color;}}}","attribute vec2 a_pos;void main() {gl_Position=vec4(a_pos,1.0,1.0);}")};function Le($t,I){let ht=/#pragma mapbox: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,Ct=I.match(/attribute ([\w]+) ([\w]+)/g),Ot=$t.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),Ht=I.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),Ae=Ht?Ht.concat(Ot):Ot,Fe={};return{fragmen
Line truncated
|
||||
#ifndef HAS_UNIFORM_u_${cn}
|
||||
varying ${Fr} ${Rr} ${cn};
|
||||
#else
|
||||
@@ -3878,7 +3878,7 @@ uniform ${Fr} ${Rr} u_${cn};
|
||||
#ifdef HAS_UNIFORM_u_${cn}
|
||||
${Fr} ${Rr} ${cn} = u_${cn};
|
||||
#endif
|
||||
`)),vertexSource:z=z.replace(ht,(Ke,vr,Fr,Rr,cn)=>{let Sn=Rr==="float"?"vec2":"vec4",Xt=cn.match(/color/)?"color":Sn;return Fe[cn]?vr==="define"?`
|
||||
`)),vertexSource:I=I.replace(ht,(Ke,vr,Fr,Rr,cn)=>{let Sn=Rr==="float"?"vec2":"vec4",Xt=cn.match(/color/)?"color":Sn;return Fe[cn]?vr==="define"?`
|
||||
#ifndef HAS_UNIFORM_u_${cn}
|
||||
uniform lowp float u_${cn}_t;
|
||||
attribute ${Fr} ${Sn} a_${cn};
|
||||
@@ -3917,9 +3917,9 @@ uniform ${Fr} ${Rr} u_${cn};
|
||||
#else
|
||||
${Fr} ${Rr} ${cn} = u_${cn};
|
||||
#endif
|
||||
`}),staticAttributes:Et,staticUniforms:Ae}}class pr{constructor(){this.boundProgram=null,this.boundLayoutVertexBuffer=null,this.boundPaintVertexBuffers=[],this.boundIndexBuffer=null,this.boundVertexOffset=null,this.boundDynamicVertexBuffer=null,this.vao=null}bind(z,ht,Et,Ot,Ht,Ae,Fe,Ke,vr){this.context=z;let Fr=this.boundPaintVertexBuffers.length!==Ot.length;for(let Rr=0;!Fr&&Rr<Ot.length;Rr++)this.boundPaintVertexBuffers[Rr]!==Ot[Rr]&&(Fr=!0);!this.vao||this.boundProgram!==ht||this.boundLayoutVertexBuffer!==Et||Fr||this.boundIndexBuffer!==Ht||this.boundVertexOffset!==Ae||this.boundDynamicVertexBuffer!==Fe||this.boundDynamicVertexBuffer2!==Ke||this.boundDynamicVertexBuffer3!==vr?this.freshBind(ht,Et,Ot,Ht,Ae,Fe,Ke,vr):(z.bindVertexArray.set(this.vao),Fe&&Fe.bind(),Ht&&Ht.dynamicDraw&&Ht.bind(),Ke&&Ke.bind(),vr&&vr.bind())}freshBind(z,ht,Et,Ot,Ht,Ae,Fe,Ke){let vr=z.numAttributes,Fr=this.context,Rr=Fr.gl;this.vao&&this.destroy(),this.vao=Fr.createVertexArray(),Fr.bindVertexArray.set(this.vao),this.boundProgram=z,this.boundLayoutVertexBuffer=ht,this.boundPaintVertexBuffers=Et,this.boundIndexBuffer=Ot,this.boundVertexOffset=Ht,this.boundDynamicVertexBuffer=Ae,this.boundDynamicVertexBuffer2=Fe,this.boundDynamicVertexBuffer3=Ke,ht.enableAttributes(Rr,z);for(let cn of Et)cn.enableAttributes(Rr,z);Ae&&Ae.enableAttributes(Rr,z),Fe&&Fe.enableAttributes(Rr,z),Ke&&Ke.enableAttributes(Rr,z),ht.bind(),ht.setVertexAttribPointers(Rr,z,Ht);for(let cn of Et)cn.bind(),cn.setVertexAttribPointers(Rr,z,Ht);Ae&&(Ae.bind(),Ae.setVertexAttribPointers(Rr,z,Ht)),Ot&&Ot.bind(),Fe&&(Fe.bind(),Fe.setVertexAttribPointers(Rr,z,Ht)),Ke&&(Ke.bind(),Ke.setVertexAttribPointers(Rr,z,Ht)),Fr.currentNumAttributes=vr}destroy(){this.vao&&(this.context.deleteVertexArray(this.vao),this.vao=null)}}let Hr=($t,z,ht,Et,Ot)=>({u_matrix:$t,u_texture:0,u_ele_delta:z,u_fog_matrix:ht,u_fog_color:Et?Et.properties.get("fog-color"):e.aM.white,u_fog_ground_blend:Et?Et.properties.get("fog-ground-blend"):1,u_fog_ground_blend_opacity:Et?Et.calculateFogBlendOpacity(Ot):0,u_horizon_color:Et?Et.properties.get("horizon-color"):e.aM.white,u_horizon_fog_blend:Et?Et.properties.get("horizon-fog-blend"):1});function _n($t){let z=[];for(let ht=0;ht<$t.length;ht++){if($t[ht]===null)continue;let Et=$t[ht].split(" ");z.push(Et.pop())}return z}class Bn{constructor(z,ht,Et,Ot,Ht,Ae){let Fe=z.gl;this.program=Fe.createProgram();let Ke=_n(ht.staticAttributes),vr=Et?Et.getBinderAttributes():[],Fr=Ke.concat(vr),Rr=sn.prelude.staticUniforms?_n(sn.prelude.staticUniforms):[],cn=ht.staticUniforms?_n(ht.staticUniforms):[],Sn=Et?Et.getBinderUniforms():[],Xt=Rr.concat(cn).concat(Sn),ae=[];for(let Or of Xt)ae.indexOf(Or)<0&&ae.push(Or);let _e=Et?Et.defines():[];Ht&&_e.push("#define OVERDRAW_INSPECTOR;"),Ae&&_e.push("#define TERRAIN3D;");let Se=_e.concat(sn.prelude.fragmentSource,ht.fragmentSource).join(`
|
||||
`}),staticAttributes:Ct,staticUniforms:Ae}}class pr{constructor(){this.boundProgram=null,this.boundLayoutVertexBuffer=null,this.boundPaintVertexBuffers=[],this.boundIndexBuffer=null,this.boundVertexOffset=null,this.boundDynamicVertexBuffer=null,this.vao=null}bind(I,ht,Ct,Ot,Ht,Ae,Fe,Ke,vr){this.context=I;let Fr=this.boundPaintVertexBuffers.length!==Ot.length;for(let Rr=0;!Fr&&Rr<Ot.length;Rr++)this.boundPaintVertexBuffers[Rr]!==Ot[Rr]&&(Fr=!0);!this.vao||this.boundProgram!==ht||this.boundLayoutVertexBuffer!==Ct||Fr||this.boundIndexBuffer!==Ht||this.boundVertexOffset!==Ae||this.boundDynamicVertexBuffer!==Fe||this.boundDynamicVertexBuffer2!==Ke||this.boundDynamicVertexBuffer3!==vr?this.freshBind(ht,Ct,Ot,Ht,Ae,Fe,Ke,vr):(I.bindVertexArray.set(this.vao),Fe&&Fe.bind(),Ht&&Ht.dynamicDraw&&Ht.bind(),Ke&&Ke.bind(),vr&&vr.bind())}freshBind(I,ht,Ct,Ot,Ht,Ae,Fe,Ke){let vr=I.numAttributes,Fr=this.context,Rr=Fr.gl;this.vao&&this.destroy(),this.vao=Fr.createVertexArray(),Fr.bindVertexArray.set(this.vao),this.boundProgram=I,this.boundLayoutVertexBuffer=ht,this.boundPaintVertexBuffers=Ct,this.boundIndexBuffer=Ot,this.boundVertexOffset=Ht,this.boundDynamicVertexBuffer=Ae,this.boundDynamicVertexBuffer2=Fe,this.boundDynamicVertexBuffer3=Ke,ht.enableAttributes(Rr,I);for(let cn of Ct)cn.enableAttributes(Rr,I);Ae&&Ae.enableAttributes(Rr,I),Fe&&Fe.enableAttributes(Rr,I),Ke&&Ke.enableAttributes(Rr,I),ht.bind(),ht.setVertexAttribPointers(Rr,I,Ht);for(let cn of Ct)cn.bind(),cn.setVertexAttribPointers(Rr,I,Ht);Ae&&(Ae.bind(),Ae.setVertexAttribPointers(Rr,I,Ht)),Ot&&Ot.bind(),Fe&&(Fe.bind(),Fe.setVertexAttribPointers(Rr,I,Ht)),Ke&&(Ke.bind(),Ke.setVertexAttribPointers(Rr,I,Ht)),Fr.currentNumAttributes=vr}destroy(){this.vao&&(this.context.deleteVertexArray(this.vao),this.vao=null)}}let Hr=($t,I,ht,Ct,Ot)=>({u_matrix:$t,u_texture:0,u_ele_delta:I,u_fog_matrix:ht,u_fog_color:Ct?Ct.properties.get("fog-color"):e.aM.white,u_fog_ground_blend:Ct?Ct.properties.get("fog-ground-blend"):1,u_fog_ground_blend_opacity:Ct?Ct.calculateFogBlendOpacity(Ot):0,u_horizon_color:Ct?Ct.properties.get("horizon-color"):e.aM.white,u_horizon_fog_blend:Ct?Ct.properties.get("horizon-fog-blend"):1});function _n($t){let I=[];for(let ht=0;ht<$t.length;ht++){if($t[ht]===null)continue;let Ct=$t[ht].split(" ");I.push(Ct.pop())}return I}class Bn{constructor(I,ht,Ct,Ot,Ht,Ae){let Fe=I.gl;this.program=Fe.createProgram();let Ke=_n(ht.staticAttributes),vr=Ct?Ct.getBinderAttributes():[],Fr=Ke.concat(vr),Rr=sn.prelude.staticUniforms?_n(sn.prelude.staticUniforms):[],cn=ht.staticUniforms?_n(ht.staticUniforms):[],Sn=Ct?Ct.getBinderUniforms():[],Xt=Rr.concat(cn).concat(Sn),se=[];for(let Or of Xt)se.indexOf(Or)<0&&se.push(Or);let _e=Ct?Ct.defines():[];Ht&&_e.push("#define OVERDRAW_INSPECTOR;"),Ae&&_e.push("#define TERRAIN3D;");let Se=_e.concat(sn.prelude.fragmentSource,ht.fragmentSource).join(`
|
||||
`),je=_e.concat(sn.prelude.vertexSource,ht.vertexSource).join(`
|
||||
`),De=Fe.createShader(Fe.FRAGMENT_SHADER);if(Fe.isContextLost())return void(this.failedToCreate=!0);if(Fe.shaderSource(De,Se),Fe.compileShader(De),!Fe.getShaderParameter(De,Fe.COMPILE_STATUS))throw new Error(`Could not compile fragment shader: ${Fe.getShaderInfoLog(De)}`);Fe.attachShader(this.program,De);let $e=Fe.createShader(Fe.VERTEX_SHADER);if(Fe.isContextLost())return void(this.failedToCreate=!0);if(Fe.shaderSource($e,je),Fe.compileShader($e),!Fe.getShaderParameter($e,Fe.COMPILE_STATUS))throw new Error(`Could not compile vertex shader: ${Fe.getShaderInfoLog($e)}`);Fe.attachShader(this.program,$e),this.attributes={};let kr={};this.numAttributes=Fr.length;for(let Or=0;Or<this.numAttributes;Or++)Fr[Or]&&(Fe.bindAttribLocation(this.program,Or,Fr[Or]),this.attributes[Fr[Or]]=Or);if(Fe.linkProgram(this.program),!Fe.getProgramParameter(this.program,Fe.LINK_STATUS))throw new Error(`Program failed to link: ${Fe.getProgramInfoLog(this.program)}`);Fe.deleteShader($e),Fe.deleteShader(De);for(let Or=0;Or<ae.length;Or++){let jr=ae[Or];if(jr&&!kr[jr]){let en=Fe.getUniformLocation(this.program,jr);en&&(kr[jr]=en)}}this.fixedUniforms=Ot(z,kr),this.terrainUniforms=((Or,jr)=>({u_depth:new e.aH(Or,jr.u_depth),u_terrain:new e.aH(Or,jr.u_terrain),u_terrain_dim:new e.aI(Or,jr.u_terrain_dim),u_terrain_matrix:new e.aJ(Or,jr.u_terrain_matrix),u_terrain_unpack:new e.aK(Or,jr.u_terrain_unpack),u_terrain_exaggeration:new e.aI(Or,jr.u_terrain_exaggeration)}))(z,kr),this.binderUniforms=Et?Et.getUniforms(z,kr):[]}draw(z,ht,Et,Ot,Ht,Ae,Fe,Ke,vr,Fr,Rr,cn,Sn,Xt,ae,_e,Se,je){let De=z.gl;if(this.failedToCreate)return;if(z.program.set(this.program),z.setDepthMode(Et),z.setStencilMode(Ot),z.setColorMode(Ht),z.setCullFace(Ae),Ke){z.activeTexture.set(De.TEXTURE2),De.bindTexture(De.TEXTURE_2D,Ke.depthTexture),z.activeTexture.set(De.TEXTURE3),De.bindTexture(De.TEXTURE_2D,Ke.texture);for(let kr in this.terrainUniforms)this.terrainUniforms[kr].set(Ke[kr])}for(let kr in this.fixedUniforms)this.fixedUniforms[kr].set(Fe[kr]);ae&&ae.setUniforms(z,this.binderUniforms,Sn,{zoom:Xt});let $e=0;switch(ht){case De.LINES:$e=2;break;case De.TRIANGLES:$e=3;break;case De.LINE_STRIP:$e=1}for(let kr of cn.get()){let Or=kr.vaos||(kr.vaos={});(Or[vr]||(Or[vr]=new pr)).bind(z,this,Fr,ae?ae.getPaintVertexBuffers():[],Rr,kr.vertexOffset,_e,Se,je),De.drawElements(ht,kr.primitiveLength*$e,De.UNSIGNED_SHORT,kr.primitiveOffset*$e*2)}}}function ni($t,z,ht){let Et=1/$n(ht,1,z.transform.tileZoom),Ot=Math.pow(2,ht.tileID.overscaledZ),Ht=ht.tileSize*Math.pow(2,z.transform.tileZoom)/Ot,Ae=Ht*(ht.tileID.canonical.x+ht.tileID.wrap*Ot),Fe=Ht*ht.tileID.canonical.y;return{u_image:0,u_texsize:ht.imageAtlasTexture.size,u_scale:[Et,$t.fromScale,$t.toScale],u_fade:$t.t,u_pixel_coord_upper:[Ae>>16,Fe>>16],u_pixel_coord_lower:[65535&Ae,65535&Fe]}}let Pn=($t,z,ht,Et)=>{let Ot=z.style.light,Ht=Ot.properties.get("position"),Ae=[Ht.x,Ht.y,Ht.z],Fe=function(){var vr=new e.A(9);return e.A!=Float32Array&&(vr[1]=0,vr[2]=0,vr[3]=0,vr[5]=0,vr[6]=0,vr[7]=0),vr[0]=1,vr[4]=1,vr[8]=1,vr}();Ot.properties.get("anchor")==="viewport"&&function(vr,Fr){var Rr=Math.sin(Fr),cn=Math.cos(Fr);vr[0]=cn,vr[1]=Rr,vr[2]=0,vr[3]=-Rr,vr[4]=cn,vr[5]=0,vr[6]=0,vr[7]=0,vr[8]=1}(Fe,-z.transform.angle),function(vr,Fr,Rr){var cn=Fr[0],Sn=Fr[1],Xt=Fr[2];vr[0]=cn*Rr[0]+Sn*Rr[3]+Xt*Rr[6],vr[1]=cn*Rr[1]+Sn*Rr[4]+Xt*Rr[7],vr[2]=cn*Rr[2]+Sn*Rr[5]+Xt*Rr[8]}(Ae,Ae,Fe);let Ke=Ot.properties.get("color");return{u_matrix:$t,u_lightpos:Ae,u_lightintensity:Ot.properties.get("intensity"),u_lightcolor:[Ke.r,Ke.g,Ke.b],u_vertical_gradient:+ht,u_opacity:Et}},En=($t,z,ht,Et,Ot,Ht,Ae)=>e.e(Pn($t,z,ht,Et),ni(Ht,z,Ae),{u_height_factor:-Math.pow(2,Ot.overscaledZ)/Ae.tileSize/8}),Yn=$t=>({u_matrix:$t}),Pa=($t,z,ht,Et)=>e.e(Yn($t),ni(ht,z,Et)),Wi=($t,z)=>({u_matrix:$t,u_world:z}),ro=($t,z,ht,Et,Ot)=>e.e(Pa($t,z,ht,Et),{u_world:Ot}),eo=($t,z,ht,Et)=>{let Ot=$t.transform,Ht,Ae;if(Et.paint.get("circle-pitch-alignment")==="map"){let Fe=$n(ht,1,Ot.zoom);Ht=!0,Ae=[Fe,Fe]}else Ht=!1,Ae=Ot.pixelsToGLUnits;return{u_camera_to_center_distance:Ot.cameraToCenterDistance,u_scale_with_map:+(Et.paint.get("circle-pitch-scale")==="map"),u_matrix:$t.translatePosMatrix(z.posMatrix,ht,Et.paint.get("circle-translate"),Et.paint.get("circle-translate-anchor")),u_pitch_with_map:+Ht,u_device_pixel_ratio:$t.pixelRatio,u_extrude_scale:Ae}},Bo=($t,z,ht)=>({u_matrix:$t,u_inv_matrix:z,u_camera_to_center_distance:ht.cameraToCenterDistance,u_viewport_size:[ht.width,ht.height]}),xo=($t,z,ht=1)=>({u_matrix:$t,u_color:z,u_overlay:0,u_overlay_scale:ht}),No=$t=>({u_matrix:$t}),Da=($t,z,ht,Et)=>({u_matrix:$t,u_extrude_scale:$n(z,1,ht),u_intensity:Et}),xs=($t,z,ht,Et)=>{let Ot=e.H();e.aP(Ot,0,$t.width,$t.height,0,0,1);let Ht=$t.context.gl;return{u_matrix:Ot,u_world:[Ht.drawingBufferWidth,Ht.drawingBufferHeight],u_image:ht,u_color_ramp:Et,u_opacity:z.paint.get("heatmap-opacity")}};function ss($t,z){let ht=Math.pow(2,z.canonical.z),Et=z.canonical.y;return[new e.Z(0,Et/ht).toLngLat().lat,ne
Line truncated
|
||||
`),De=Fe.createShader(Fe.FRAGMENT_SHADER);if(Fe.isContextLost())return void(this.failedToCreate=!0);if(Fe.shaderSource(De,Se),Fe.compileShader(De),!Fe.getShaderParameter(De,Fe.COMPILE_STATUS))throw new Error(`Could not compile fragment shader: ${Fe.getShaderInfoLog(De)}`);Fe.attachShader(this.program,De);let $e=Fe.createShader(Fe.VERTEX_SHADER);if(Fe.isContextLost())return void(this.failedToCreate=!0);if(Fe.shaderSource($e,je),Fe.compileShader($e),!Fe.getShaderParameter($e,Fe.COMPILE_STATUS))throw new Error(`Could not compile vertex shader: ${Fe.getShaderInfoLog($e)}`);Fe.attachShader(this.program,$e),this.attributes={};let kr={};this.numAttributes=Fr.length;for(let Or=0;Or<this.numAttributes;Or++)Fr[Or]&&(Fe.bindAttribLocation(this.program,Or,Fr[Or]),this.attributes[Fr[Or]]=Or);if(Fe.linkProgram(this.program),!Fe.getProgramParameter(this.program,Fe.LINK_STATUS))throw new Error(`Program failed to link: ${Fe.getProgramInfoLog(this.program)}`);Fe.deleteShader($e),Fe.deleteShader(De);for(let Or=0;Or<se.length;Or++){let jr=se[Or];if(jr&&!kr[jr]){let tn=Fe.getUniformLocation(this.program,jr);tn&&(kr[jr]=tn)}}this.fixedUniforms=Ot(I,kr),this.terrainUniforms=((Or,jr)=>({u_depth:new e.aH(Or,jr.u_depth),u_terrain:new e.aH(Or,jr.u_terrain),u_terrain_dim:new e.aI(Or,jr.u_terrain_dim),u_terrain_matrix:new e.aJ(Or,jr.u_terrain_matrix),u_terrain_unpack:new e.aK(Or,jr.u_terrain_unpack),u_terrain_exaggeration:new e.aI(Or,jr.u_terrain_exaggeration)}))(I,kr),this.binderUniforms=Ct?Ct.getUniforms(I,kr):[]}draw(I,ht,Ct,Ot,Ht,Ae,Fe,Ke,vr,Fr,Rr,cn,Sn,Xt,se,_e,Se,je){let De=I.gl;if(this.failedToCreate)return;if(I.program.set(this.program),I.setDepthMode(Ct),I.setStencilMode(Ot),I.setColorMode(Ht),I.setCullFace(Ae),Ke){I.activeTexture.set(De.TEXTURE2),De.bindTexture(De.TEXTURE_2D,Ke.depthTexture),I.activeTexture.set(De.TEXTURE3),De.bindTexture(De.TEXTURE_2D,Ke.texture);for(let kr in this.terrainUniforms)this.terrainUniforms[kr].set(Ke[kr])}for(let kr in this.fixedUniforms)this.fixedUniforms[kr].set(Fe[kr]);se&&se.setUniforms(I,this.binderUniforms,Sn,{zoom:Xt});let $e=0;switch(ht){case De.LINES:$e=2;break;case De.TRIANGLES:$e=3;break;case De.LINE_STRIP:$e=1}for(let kr of cn.get()){let Or=kr.vaos||(kr.vaos={});(Or[vr]||(Or[vr]=new pr)).bind(I,this,Fr,se?se.getPaintVertexBuffers():[],Rr,kr.vertexOffset,_e,Se,je),De.drawElements(ht,kr.primitiveLength*$e,De.UNSIGNED_SHORT,kr.primitiveOffset*$e*2)}}}function oi($t,I,ht){let Ct=1/Gn(ht,1,I.transform.tileZoom),Ot=Math.pow(2,ht.tileID.overscaledZ),Ht=ht.tileSize*Math.pow(2,I.transform.tileZoom)/Ot,Ae=Ht*(ht.tileID.canonical.x+ht.tileID.wrap*Ot),Fe=Ht*ht.tileID.canonical.y;return{u_image:0,u_texsize:ht.imageAtlasTexture.size,u_scale:[Ct,$t.fromScale,$t.toScale],u_fade:$t.t,u_pixel_coord_upper:[Ae>>16,Fe>>16],u_pixel_coord_lower:[65535&Ae,65535&Fe]}}let zn=($t,I,ht,Ct)=>{let Ot=I.style.light,Ht=Ot.properties.get("position"),Ae=[Ht.x,Ht.y,Ht.z],Fe=function(){var vr=new e.A(9);return e.A!=Float32Array&&(vr[1]=0,vr[2]=0,vr[3]=0,vr[5]=0,vr[6]=0,vr[7]=0),vr[0]=1,vr[4]=1,vr[8]=1,vr}();Ot.properties.get("anchor")==="viewport"&&function(vr,Fr){var Rr=Math.sin(Fr),cn=Math.cos(Fr);vr[0]=cn,vr[1]=Rr,vr[2]=0,vr[3]=-Rr,vr[4]=cn,vr[5]=0,vr[6]=0,vr[7]=0,vr[8]=1}(Fe,-I.transform.angle),function(vr,Fr,Rr){var cn=Fr[0],Sn=Fr[1],Xt=Fr[2];vr[0]=cn*Rr[0]+Sn*Rr[3]+Xt*Rr[6],vr[1]=cn*Rr[1]+Sn*Rr[4]+Xt*Rr[7],vr[2]=cn*Rr[2]+Sn*Rr[5]+Xt*Rr[8]}(Ae,Ae,Fe);let Ke=Ot.properties.get("color");return{u_matrix:$t,u_lightpos:Ae,u_lightintensity:Ot.properties.get("intensity"),u_lightcolor:[Ke.r,Ke.g,Ke.b],u_vertical_gradient:+ht,u_opacity:Ct}},Cn=($t,I,ht,Ct,Ot,Ht,Ae)=>e.e(zn($t,I,ht,Ct),oi(Ht,I,Ae),{u_height_factor:-Math.pow(2,Ot.overscaledZ)/Ae.tileSize/8}),Xn=$t=>({u_matrix:$t}),Pa=($t,I,ht,Ct)=>e.e(Xn($t),oi(ht,I,Ct)),$i=($t,I)=>({u_matrix:$t,u_world:I}),ro=($t,I,ht,Ct,Ot)=>e.e(Pa($t,I,ht,Ct),{u_world:Ot}),eo=($t,I,ht,Ct)=>{let Ot=$t.transform,Ht,Ae;if(Ct.paint.get("circle-pitch-alignment")==="map"){let Fe=Gn(ht,1,Ot.zoom);Ht=!0,Ae=[Fe,Fe]}else Ht=!1,Ae=Ot.pixelsToGLUnits;return{u_camera_to_center_distance:Ot.cameraToCenterDistance,u_scale_with_map:+(Ct.paint.get("circle-pitch-scale")==="map"),u_matrix:$t.translatePosMatrix(I.posMatrix,ht,Ct.paint.get("circle-translate"),Ct.paint.get("circle-translate-anchor")),u_pitch_with_map:+Ht,u_device_pixel_ratio:$t.pixelRatio,u_extrude_scale:Ae}},Bo=($t,I,ht)=>({u_matrix:$t,u_inv_matrix:I,u_camera_to_center_distance:ht.cameraToCenterDistance,u_viewport_size:[ht.width,ht.height]}),_o=($t,I,ht=1)=>({u_matrix:$t,u_color:I,u_overlay:0,u_overlay_scale:ht}),No=$t=>({u_matrix:$t}),Da=($t,I,ht,Ct)=>({u_matrix:$t,u_extrude_scale:Gn(I,1,ht),u_intensity:Ct}),xs=($t,I,ht,Ct)=>{let Ot=e.H();e.aP(Ot,0,$t.width,$t.height,0,0,1);let Ht=$t.context.gl;return{u_matrix:Ot,u_world:[Ht.drawingBufferWidth,Ht.drawingBufferHeight],u_image:ht,u_color_ramp:Ct,u_opacity:I.paint.get("heatmap-opacity")}};function ss($t,I){let ht=Math.pow(2,I.canonical.z),Ct=I.canonical.y;return[new e.Z(0,Ct/ht).toLngLat().lat,ne
Line truncated
|
||||
* pad-left <https://github.com/jonschlinkert/pad-left>
|
||||
*
|
||||
* Copyright (c) 2014-2015, Jon Schlinkert.
|
||||
@@ -3988,4 +3988,4 @@ maplibre-gl/dist/maplibre-gl.js:
|
||||
* MapLibre GL JS
|
||||
* @license 3-Clause BSD. Full text of license: https://github.com/maplibre/maplibre-gl-js/blob/v4.7.1/LICENSE.txt
|
||||
*)
|
||||
*/return window.Plotly=E,E})}(o4)),o4.exports}var LF=smt();const nv=eD(LF),nA=SG({__proto__:null,default:nv},[LF]),lmt={class:"p-6 space-y-6"},umt={class:"flex justify-between items-center"},cmt={class:"flex items-center gap-3"},hmt=["value"],fmt={class:"grid grid-cols-1 sm:grid-cols-2 gap-4"},dmt={class:"glass-card rounded-[15px] p-6"},pmt={class:"mb-6"},mmt={class:"relative h-48 bg-white/5 rounded-lg p-4"},gmt={key:0,class:"absolute inset-0 flex items-center justify-center bg-white/5 backdrop-blur-sm z-20"},vmt={key:1,class:"absolute inset-0 flex items-center justify-center bg-white/5 z-20"},ymt={class:"mb-6"},xmt={class:"relative h-48 bg-white/5 rounded-lg p-4"},_mt={key:0,class:"absolute inset-0 flex items-center justify-center bg-white/5 backdrop-blur-sm z-20"},bmt={key:1,class:"absolute inset-0 flex items-center justify-center bg-white/5 z-20"},wmt={class:"glass-card rounded-[15px] p-6"},kmt={class:"grid grid-cols-1 lg:grid-cols-3 gap-6"},Tmt={class:"lg:col-span-2"},Amt={class:"relative h-64 bg-white/5 rounded-lg p-4"},Mmt={class:"flex flex-col items-center justify-center"},Smt={class:"relative w-48 h-48"},Emt={key:0,class:"absolute inset-0 flex items-center justify-center bg-white/5 backdrop-blur-sm rounded-full z-20"},Cmt={key:1,class:"absolute inset-0 flex items-center justify-center bg-white/5 rounded-full z-20"},Lmt={key:0,class:"glass-card rounded-[15px] p-8 text-center"},Pmt={key:1,class:"glass-card rounded-[15px] p-8 text-center"},Imt={class:"text-white/60 text-sm"},zmt=Ec({name:"StatisticsView",__name:"Statistics",setup(d){p1.register(sF,lF,YD,uw,DD,zD,OD,iF,oF,rF,$D,XD,tF,M4);const s=sw(),E=ja(null),B=ja(!1),K=ja(24),dt=[{value:1,label:"1 Hour"},{value:6,label:"6 Hours"},{value:12,label:"12 Hours"},{value:24,label:"24 Hours"},{value:48,label:"2 Days"},{value:168,label:"1 Week"}],_t=ja(null),It=ja(null),jt=ja([]),re=ja(null),se=ja([]),we=ja(!0),tr=ja(null),fr=ja({packetRate:!0,packetType:!0,noiseFloor:!1,routePie:!0}),Mr=ja(!1),xr=ja(!1),Dr=ja(!1),hn=ja(null),Dt=ja(null),on=ja(null),Xn=ja(null),Hn=ja(null),Qn=ja(null),Ri=ja(null),$i=Ho(()=>{const Fo=s.packetStats;return Fo?{totalRx:Fo.total_packets||0,totalTx:Fo.transmitted_packets||0}:{totalRx:0,totalTx:0}}),qr=Ho(()=>{let Fo=[],$a=[];if(_t.value?.series){const Ca=_t.value.series.find(oo=>oo.type==="rx_count"),ha=_t.value.series.find(oo=>oo.type==="tx_count");Ca?.data&&(Fo=Ca.data.map(([,oo])=>oo)),ha?.data&&($a=ha.data.map(([,oo])=>oo))}return{totalPackets:Fo,transmittedPackets:$a,droppedPackets:[]}}),ci=async()=>{try{we.value=!0,tr.value=null,await Promise.all([s.fetchPacketStats({hours:K.value}),s.fetchSystemStats()]),we.value=!1,On()}catch(Fo){tr.value=Fo instanceof Error?Fo.message:"Failed to fetch data",we.value=!1}},On=async()=>{fr.value={packetRate:!0,packetType:!0,noiseFloor:!1,routePie:!0};const Fo=[ei(),Fn(),Vn(),sa()];try{await Promise.allSettled(Fo),await S0(),!Xn.value||!Hn.value?setTimeout(()=>{ma()},100):ma()}catch($a){console.error("Error loading chart data:",$a)}},ei=async()=>{fr.value.packetRate=!0;try{const Fo=await oh.get("/metrics_graph_data",{hours:K.value,resolution:"average",metrics:"rx_count,tx_count"});Fo?.success&&(_t.value=Fo.data)}catch{_t.value=null}},Fn=async()=>{fr.value.packetType=!0;try{const Fo=await oh.get("/packet_type_graph_data",{hours:K.value,resolution:"average",types:"all"});if(Fo?.success&&Fo.data){const $a=Fo.data;jt.value=$a.series||[]}}catch{jt.value=[]}},Vn=async()=>{fr.value.routePie=!0;try{const Fo=await oh.get("/route_stats",{hours:K.value});Fo?.success&&Fo.data&&(re.value=Fo.data)}catch{re.value=null}},sa=async()=>{try{const Fo=await oh.get("/noise_floor_history",{hours:K.value});if(Fo.success&&Fo.data){const Ca=Fo.data.history||[];Array.isArray(Ca)&&Ca.length>0&&(It.value={chart_data:Ca.map(ha=>({timestamp:ha.timestamp||Date.now()/1e3,noise_floor_dbm:ha.noise_floor_dbm||ha.noise_floor||-120}))},di())}}catch{It.value={chart_data:[]}}},Ai=()=>{ml(),Mr.value=!1,xr.value=!1,Dr.value=!1,ci()},di=()=>{if(se.value=[],It.value?.chart_data&&It.value.chart_data.length>0){const Fo=It.value.chart_data,$a=Math.max(1,Math.floor(Fo.length/100));se.value=Fo.filter((Ca,ha)=>ha%$a===0).map(Ca=>({timestamp:Ca.timestamp*1e3,snr:null,rssi:null,noiseFloor:Ca.noise_floor_dbm}))}},ma=()=>{if(!B.value){B.value=!0;try{Ya(),ao(),Wa(),Ks(),setTimeout(()=>{fr.value.packetRate&&hn.value&&(fr.value.packetRate=!1),fr.value.packetType&&Dt.value&&(fr.value.packetType=!1),fr.value.routePie&&Ri.value&&(fr.value.routePie=!1),fr.value.routePie&&Ri.value&&(fr.value.routePie=!1),setTimeout(()=>{const Fo=Eu(hn.value),$a=Eu(Dt.value),Ca=Eu(on.value);Fo&&Fo.update("none"),$a&&$a.update("none"),Ca&&Ca.update("none")},50)},100)}catch(Fo){console.error("Error creating/updating charts:",Fo),ml()}finally{B.value=!1}}},ml=()=>{try{hn.value&&(hn.value.destroy(),hn.value=null),Dt.value&&(Dt.value.destroy(),Dt.value=null),on.value&&(on.value.destroy(),on.value=null),Ri.value&&nv.purge(Ri.value)}catch(Fo){console.error("Error destroying chaLine truncated
|
||||
*/return window.Plotly=C,C})}(s4)),s4.exports}var LF=ymt();const nv=eD(LF),aA=SG({__proto__:null,default:nv},[LF]),xmt={class:"p-6 space-y-6"},_mt={class:"flex justify-between items-center"},bmt={class:"flex items-center gap-3"},wmt=["value"],kmt={class:"grid grid-cols-1 sm:grid-cols-2 gap-4"},Tmt={class:"glass-card rounded-[15px] p-6"},Amt={class:"mb-6"},Mmt={class:"relative h-48 bg-white/5 rounded-lg p-4"},Smt={key:0,class:"absolute inset-0 flex items-center justify-center bg-white/5 backdrop-blur-sm z-20"},Cmt={key:1,class:"absolute inset-0 flex items-center justify-center bg-white/5 z-20"},Emt={class:"mb-6"},Lmt={class:"relative h-48 bg-white/5 rounded-lg p-4"},Pmt={key:0,class:"absolute inset-0 flex items-center justify-center bg-white/5 backdrop-blur-sm z-20"},zmt={key:1,class:"absolute inset-0 flex items-center justify-center bg-white/5 z-20"},Imt={class:"glass-card rounded-[15px] p-6"},Omt={class:"grid grid-cols-1 lg:grid-cols-3 gap-6"},Dmt={class:"lg:col-span-2"},Fmt={class:"relative h-64 bg-white/5 rounded-lg p-4"},Rmt={class:"flex flex-col items-center justify-center"},Bmt={class:"relative w-48 h-48"},Nmt={key:0,class:"absolute inset-0 flex items-center justify-center bg-white/5 backdrop-blur-sm rounded-full z-20"},jmt={key:1,class:"absolute inset-0 flex items-center justify-center bg-white/5 rounded-full z-20"},Umt={key:0,class:"glass-card rounded-[15px] p-8 text-center"},Vmt={key:1,class:"glass-card rounded-[15px] p-8 text-center"},Hmt={class:"text-white/60 text-sm"},Wmt=Cc({name:"StatisticsView",__name:"Statistics",setup(d){p1.register(sF,lF,YD,cw,DD,ID,OD,iF,oF,rF,$D,XD,tF,S4);const s=lw(),C=Ba(null),B=Ba(!1),K=Ba(24),dt=[{value:1,label:"1 Hour"},{value:6,label:"6 Hours"},{value:12,label:"12 Hours"},{value:24,label:"24 Hours"},{value:48,label:"2 Days"},{value:168,label:"1 Week"}],_t=Ba(null),zt=Ba(null),jt=Ba([]),re=Ba(null),oe=Ba([]),we=Ba(!0),tr=Ba(null),fr=Ba({packetRate:!0,packetType:!0,noiseFloor:!1,routePie:!0}),Mr=Ba(!1),xr=Ba(!1),Dr=Ba(!1),hn=Ba(null),Dt=Ba(null),on=Ba(null),Qn=Ba(null),Wn=Ba(null),ei=Ba(null),Ri=Ba(null),qi=Uo(()=>{const Fo=s.packetStats;return Fo?{totalRx:Fo.total_packets||0,totalTx:Fo.transmitted_packets||0}:{totalRx:0,totalTx:0}}),nn=Uo(()=>{let Fo=[],$a=[];if(_t.value?.series){const Ea=_t.value.series.find(oo=>oo.type==="rx_count"),ha=_t.value.series.find(oo=>oo.type==="tx_count");Ea?.data&&(Fo=Ea.data.map(([,oo])=>oo)),ha?.data&&($a=ha.data.map(([,oo])=>oo))}return{totalPackets:Fo,transmittedPackets:$a,droppedPackets:[]}}),Bi=async()=>{try{we.value=!0,tr.value=null,await Promise.all([s.fetchPacketStats({hours:K.value}),s.fetchSystemStats()]),we.value=!1,$n()}catch(Fo){tr.value=Fo instanceof Error?Fo.message:"Failed to fetch data",we.value=!1}},$n=async()=>{fr.value={packetRate:!0,packetType:!0,noiseFloor:!1,routePie:!0};const Fo=[ni(),Dn(),Vn(),Ci()];try{await Promise.allSettled(Fo),await S0(),!Qn.value||!Wn.value?setTimeout(()=>{ma()},100):ma()}catch($a){console.error("Error loading chart data:",$a)}},ni=async()=>{fr.value.packetRate=!0;try{const Fo=await oh.get("/metrics_graph_data",{hours:K.value,resolution:"average",metrics:"rx_count,tx_count"});Fo?.success&&(_t.value=Fo.data)}catch{_t.value=null}},Dn=async()=>{fr.value.packetType=!0;try{const Fo=await oh.get("/packet_type_graph_data",{hours:K.value,resolution:"average",types:"all"});if(Fo?.success&&Fo.data){const $a=Fo.data;jt.value=$a.series||[]}}catch{jt.value=[]}},Vn=async()=>{fr.value.routePie=!0;try{const Fo=await oh.get("/route_stats",{hours:K.value});Fo?.success&&Fo.data&&(re.value=Fo.data)}catch{re.value=null}},Ci=async()=>{try{const Fo=await oh.get("/noise_floor_history",{hours:K.value});if(Fo.success&&Fo.data){const Ea=Fo.data.history||[];Array.isArray(Ea)&&Ea.length>0&&(zt.value={chart_data:Ea.map(ha=>({timestamp:ha.timestamp||Date.now()/1e3,noise_floor_dbm:ha.noise_floor_dbm||ha.noise_floor||-120}))},Hn())}}catch{zt.value={chart_data:[]}}},Pn=()=>{ul(),Mr.value=!1,xr.value=!1,Dr.value=!1,Bi()},Hn=()=>{if(oe.value=[],zt.value?.chart_data&&zt.value.chart_data.length>0){const Fo=zt.value.chart_data,$a=Math.max(1,Math.floor(Fo.length/100));oe.value=Fo.filter((Ea,ha)=>ha%$a===0).map(Ea=>({timestamp:Ea.timestamp*1e3,snr:null,rssi:null,noiseFloor:Ea.noise_floor_dbm}))}},ma=()=>{if(!B.value){B.value=!0;try{Ya(),ao(),Wa(),Ks(),setTimeout(()=>{fr.value.packetRate&&hn.value&&(fr.value.packetRate=!1),fr.value.packetType&&Dt.value&&(fr.value.packetType=!1),fr.value.routePie&&Ri.value&&(fr.value.routePie=!1),fr.value.routePie&&Ri.value&&(fr.value.routePie=!1),setTimeout(()=>{const Fo=Cu(hn.value),$a=Cu(Dt.value),Ea=Cu(on.value);Fo&&Fo.update("none"),$a&&$a.update("none"),Ea&&Ea.update("none")},50)},100)}catch(Fo){console.error("Error creating/updating charts:",Fo),ul()}finally{B.value=!1}}},ul=()=>{try{hn.value&&(hn.value.destroy(),hn.value=null),Dt.value&&(Dt.value.destroy(),Dt.value=null),on.value&&(on.value.destroy(),on.value=null),Ri.value&&nv.purge(Ri.value)}catch(Fo){console.error("Error destroying chaLine truncated
|
||||
@@ -8,8 +8,8 @@
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||
<link href="https://fonts.googleapis.com/css2?family=Noto+Sans:wght@400;500;600;700&display=swap" rel="stylesheet">
|
||||
<script type="module" crossorigin src="/assets/index-Dd2v807Z.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="/assets/index-D0MhMeIG.css">
|
||||
<script type="module" crossorigin src="/assets/index-DYqcF5Pe.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="/assets/index-BsJox_xF.css">
|
||||
</head>
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
|
||||
Reference in new issue
Block a user