@vertexvis/viewer-vue 0.24.5-canary.5 → 1.0.0-testing.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,3235 +2,537 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
+ var runtime = require('@stencil/vue-output-target/runtime');
5
6
  var loader = require('@vertexvis/viewer/loader');
6
7
 
7
- function makeMap(str, expectsLowerCase) {
8
- const map = /* @__PURE__ */ Object.create(null);
9
- const list = str.split(",");
10
- for (let i = 0; i < list.length; i++) {
11
- map[list[i]] = true;
12
- }
13
- return expectsLowerCase ? (val) => !!map[val.toLowerCase()] : (val) => !!map[val];
14
- }
15
-
16
- const EMPTY_OBJ = !!(process.env.NODE_ENV !== "production") ? Object.freeze({}) : {};
17
- !!(process.env.NODE_ENV !== "production") ? Object.freeze([]) : [];
18
- const NOOP = () => {
19
- };
20
- const NO = () => false;
21
- const onRE = /^on[^a-z]/;
22
- const isOn = (key) => onRE.test(key);
23
- const extend = Object.assign;
24
- const remove = (arr, el) => {
25
- const i = arr.indexOf(el);
26
- if (i > -1) {
27
- arr.splice(i, 1);
28
- }
29
- };
30
- const hasOwnProperty$1 = Object.prototype.hasOwnProperty;
31
- const hasOwn = (val, key) => hasOwnProperty$1.call(val, key);
32
- const isArray = Array.isArray;
33
- const isMap = (val) => toTypeString(val) === "[object Map]";
34
- const isSet = (val) => toTypeString(val) === "[object Set]";
35
- const isFunction = (val) => typeof val === "function";
36
- const isString = (val) => typeof val === "string";
37
- const isSymbol = (val) => typeof val === "symbol";
38
- const isObject = (val) => val !== null && typeof val === "object";
39
- const isPromise = (val) => {
40
- return isObject(val) && isFunction(val.then) && isFunction(val.catch);
41
- };
42
- const objectToString = Object.prototype.toString;
43
- const toTypeString = (value) => objectToString.call(value);
44
- const toRawType = (value) => {
45
- return toTypeString(value).slice(8, -1);
46
- };
47
- const isPlainObject = (val) => toTypeString(val) === "[object Object]";
48
- const isIntegerKey = (key) => isString(key) && key !== "NaN" && key[0] !== "-" && "" + parseInt(key, 10) === key;
49
- const cacheStringFunction = (fn) => {
50
- const cache = /* @__PURE__ */ Object.create(null);
51
- return (str) => {
52
- const hit = cache[str];
53
- return hit || (cache[str] = fn(str));
54
- };
55
- };
56
- const capitalize = cacheStringFunction(
57
- (str) => str.charAt(0).toUpperCase() + str.slice(1)
58
- );
59
- const hasChanged = (value, oldValue) => !Object.is(value, oldValue);
60
- const def = (obj, key, value) => {
61
- Object.defineProperty(obj, key, {
62
- configurable: true,
63
- enumerable: false,
64
- value
65
- });
66
- };
67
- let _globalThis;
68
- const getGlobalThis = () => {
69
- return _globalThis || (_globalThis = typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : {});
70
- };
71
-
72
- function normalizeStyle(value) {
73
- if (isArray(value)) {
74
- const res = {};
75
- for (let i = 0; i < value.length; i++) {
76
- const item = value[i];
77
- const normalized = isString(item) ? parseStringStyle(item) : normalizeStyle(item);
78
- if (normalized) {
79
- for (const key in normalized) {
80
- res[key] = normalized[key];
81
- }
82
- }
83
- }
84
- return res;
85
- } else if (isString(value)) {
86
- return value;
87
- } else if (isObject(value)) {
88
- return value;
89
- }
90
- }
91
- const listDelimiterRE = /;(?![^(]*\))/g;
92
- const propertyDelimiterRE = /:([^]+)/;
93
- const styleCommentRE = /\/\*[^]*?\*\//g;
94
- function parseStringStyle(cssText) {
95
- const ret = {};
96
- cssText.replace(styleCommentRE, "").split(listDelimiterRE).forEach((item) => {
97
- if (item) {
98
- const tmp = item.split(propertyDelimiterRE);
99
- tmp.length > 1 && (ret[tmp[0].trim()] = tmp[1].trim());
100
- }
101
- });
102
- return ret;
103
- }
104
- function normalizeClass(value) {
105
- let res = "";
106
- if (isString(value)) {
107
- res = value;
108
- } else if (isArray(value)) {
109
- for (let i = 0; i < value.length; i++) {
110
- const normalized = normalizeClass(value[i]);
111
- if (normalized) {
112
- res += normalized + " ";
113
- }
114
- }
115
- } else if (isObject(value)) {
116
- for (const name in value) {
117
- if (value[name]) {
118
- res += name + " ";
119
- }
120
- }
121
- }
122
- return res.trim();
123
- }
124
-
125
- function warn$1(msg, ...args) {
126
- console.warn(`[Vue warn] ${msg}`, ...args);
127
- }
128
-
129
- let activeEffectScope;
130
- function recordEffectScope(effect, scope = activeEffectScope) {
131
- if (scope && scope.active) {
132
- scope.effects.push(effect);
133
- }
134
- }
135
- function getCurrentScope() {
136
- return activeEffectScope;
137
- }
138
-
139
- const createDep = (effects) => {
140
- const dep = new Set(effects);
141
- dep.w = 0;
142
- dep.n = 0;
143
- return dep;
144
- };
145
- const wasTracked = (dep) => (dep.w & trackOpBit) > 0;
146
- const newTracked = (dep) => (dep.n & trackOpBit) > 0;
147
- const initDepMarkers = ({ deps }) => {
148
- if (deps.length) {
149
- for (let i = 0; i < deps.length; i++) {
150
- deps[i].w |= trackOpBit;
151
- }
152
- }
153
- };
154
- const finalizeDepMarkers = (effect) => {
155
- const { deps } = effect;
156
- if (deps.length) {
157
- let ptr = 0;
158
- for (let i = 0; i < deps.length; i++) {
159
- const dep = deps[i];
160
- if (wasTracked(dep) && !newTracked(dep)) {
161
- dep.delete(effect);
162
- } else {
163
- deps[ptr++] = dep;
164
- }
165
- dep.w &= ~trackOpBit;
166
- dep.n &= ~trackOpBit;
167
- }
168
- deps.length = ptr;
169
- }
170
- };
171
-
172
- const targetMap = /* @__PURE__ */ new WeakMap();
173
- let effectTrackDepth = 0;
174
- let trackOpBit = 1;
175
- const maxMarkerBits = 30;
176
- let activeEffect;
177
- const ITERATE_KEY = Symbol(!!(process.env.NODE_ENV !== "production") ? "iterate" : "");
178
- const MAP_KEY_ITERATE_KEY = Symbol(!!(process.env.NODE_ENV !== "production") ? "Map key iterate" : "");
179
- class ReactiveEffect {
180
- constructor(fn, scheduler = null, scope) {
181
- this.fn = fn;
182
- this.scheduler = scheduler;
183
- this.active = true;
184
- this.deps = [];
185
- this.parent = void 0;
186
- recordEffectScope(this, scope);
187
- }
188
- run() {
189
- if (!this.active) {
190
- return this.fn();
191
- }
192
- let parent = activeEffect;
193
- let lastShouldTrack = shouldTrack;
194
- while (parent) {
195
- if (parent === this) {
196
- return;
197
- }
198
- parent = parent.parent;
199
- }
200
- try {
201
- this.parent = activeEffect;
202
- activeEffect = this;
203
- shouldTrack = true;
204
- trackOpBit = 1 << ++effectTrackDepth;
205
- if (effectTrackDepth <= maxMarkerBits) {
206
- initDepMarkers(this);
207
- } else {
208
- cleanupEffect(this);
209
- }
210
- return this.fn();
211
- } finally {
212
- if (effectTrackDepth <= maxMarkerBits) {
213
- finalizeDepMarkers(this);
214
- }
215
- trackOpBit = 1 << --effectTrackDepth;
216
- activeEffect = this.parent;
217
- shouldTrack = lastShouldTrack;
218
- this.parent = void 0;
219
- if (this.deferStop) {
220
- this.stop();
221
- }
222
- }
223
- }
224
- stop() {
225
- if (activeEffect === this) {
226
- this.deferStop = true;
227
- } else if (this.active) {
228
- cleanupEffect(this);
229
- if (this.onStop) {
230
- this.onStop();
231
- }
232
- this.active = false;
233
- }
234
- }
235
- }
236
- function cleanupEffect(effect2) {
237
- const { deps } = effect2;
238
- if (deps.length) {
239
- for (let i = 0; i < deps.length; i++) {
240
- deps[i].delete(effect2);
241
- }
242
- deps.length = 0;
243
- }
244
- }
245
- let shouldTrack = true;
246
- const trackStack = [];
247
- function pauseTracking() {
248
- trackStack.push(shouldTrack);
249
- shouldTrack = false;
250
- }
251
- function resetTracking() {
252
- const last = trackStack.pop();
253
- shouldTrack = last === void 0 ? true : last;
254
- }
255
- function track(target, type, key) {
256
- if (shouldTrack && activeEffect) {
257
- let depsMap = targetMap.get(target);
258
- if (!depsMap) {
259
- targetMap.set(target, depsMap = /* @__PURE__ */ new Map());
260
- }
261
- let dep = depsMap.get(key);
262
- if (!dep) {
263
- depsMap.set(key, dep = createDep());
264
- }
265
- const eventInfo = !!(process.env.NODE_ENV !== "production") ? { effect: activeEffect, target, type, key } : void 0;
266
- trackEffects(dep, eventInfo);
267
- }
268
- }
269
- function trackEffects(dep, debuggerEventExtraInfo) {
270
- let shouldTrack2 = false;
271
- if (effectTrackDepth <= maxMarkerBits) {
272
- if (!newTracked(dep)) {
273
- dep.n |= trackOpBit;
274
- shouldTrack2 = !wasTracked(dep);
275
- }
276
- } else {
277
- shouldTrack2 = !dep.has(activeEffect);
278
- }
279
- if (shouldTrack2) {
280
- dep.add(activeEffect);
281
- activeEffect.deps.push(dep);
282
- if (!!(process.env.NODE_ENV !== "production") && activeEffect.onTrack) {
283
- activeEffect.onTrack(
284
- extend(
285
- {
286
- effect: activeEffect
287
- },
288
- debuggerEventExtraInfo
289
- )
290
- );
291
- }
292
- }
293
- }
294
- function trigger(target, type, key, newValue, oldValue, oldTarget) {
295
- const depsMap = targetMap.get(target);
296
- if (!depsMap) {
297
- return;
298
- }
299
- let deps = [];
300
- if (type === "clear") {
301
- deps = [...depsMap.values()];
302
- } else if (key === "length" && isArray(target)) {
303
- const newLength = Number(newValue);
304
- depsMap.forEach((dep, key2) => {
305
- if (key2 === "length" || key2 >= newLength) {
306
- deps.push(dep);
307
- }
308
- });
309
- } else {
310
- if (key !== void 0) {
311
- deps.push(depsMap.get(key));
312
- }
313
- switch (type) {
314
- case "add":
315
- if (!isArray(target)) {
316
- deps.push(depsMap.get(ITERATE_KEY));
317
- if (isMap(target)) {
318
- deps.push(depsMap.get(MAP_KEY_ITERATE_KEY));
319
- }
320
- } else if (isIntegerKey(key)) {
321
- deps.push(depsMap.get("length"));
322
- }
323
- break;
324
- case "delete":
325
- if (!isArray(target)) {
326
- deps.push(depsMap.get(ITERATE_KEY));
327
- if (isMap(target)) {
328
- deps.push(depsMap.get(MAP_KEY_ITERATE_KEY));
329
- }
330
- }
331
- break;
332
- case "set":
333
- if (isMap(target)) {
334
- deps.push(depsMap.get(ITERATE_KEY));
335
- }
336
- break;
337
- }
338
- }
339
- const eventInfo = !!(process.env.NODE_ENV !== "production") ? { target, type, key, newValue, oldValue, oldTarget } : void 0;
340
- if (deps.length === 1) {
341
- if (deps[0]) {
342
- if (!!(process.env.NODE_ENV !== "production")) {
343
- triggerEffects(deps[0], eventInfo);
344
- } else {
345
- triggerEffects(deps[0]);
346
- }
347
- }
348
- } else {
349
- const effects = [];
350
- for (const dep of deps) {
351
- if (dep) {
352
- effects.push(...dep);
353
- }
354
- }
355
- if (!!(process.env.NODE_ENV !== "production")) {
356
- triggerEffects(createDep(effects), eventInfo);
357
- } else {
358
- triggerEffects(createDep(effects));
359
- }
360
- }
361
- }
362
- function triggerEffects(dep, debuggerEventExtraInfo) {
363
- const effects = isArray(dep) ? dep : [...dep];
364
- for (const effect2 of effects) {
365
- if (effect2.computed) {
366
- triggerEffect(effect2, debuggerEventExtraInfo);
367
- }
368
- }
369
- for (const effect2 of effects) {
370
- if (!effect2.computed) {
371
- triggerEffect(effect2, debuggerEventExtraInfo);
372
- }
373
- }
374
- }
375
- function triggerEffect(effect2, debuggerEventExtraInfo) {
376
- if (effect2 !== activeEffect || effect2.allowRecurse) {
377
- if (!!(process.env.NODE_ENV !== "production") && effect2.onTrigger) {
378
- effect2.onTrigger(extend({ effect: effect2 }, debuggerEventExtraInfo));
379
- }
380
- if (effect2.scheduler) {
381
- effect2.scheduler();
382
- } else {
383
- effect2.run();
384
- }
385
- }
386
- }
387
-
388
- const isNonTrackableKeys = /* @__PURE__ */ makeMap(`__proto__,__v_isRef,__isVue`);
389
- const builtInSymbols = new Set(
390
- /* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((key) => key !== "arguments" && key !== "caller").map((key) => Symbol[key]).filter(isSymbol)
391
- );
392
- const get$1 = /* @__PURE__ */ createGetter();
393
- const readonlyGet = /* @__PURE__ */ createGetter(true);
394
- const shallowReadonlyGet = /* @__PURE__ */ createGetter(true, true);
395
- const arrayInstrumentations = /* @__PURE__ */ createArrayInstrumentations();
396
- function createArrayInstrumentations() {
397
- const instrumentations = {};
398
- ["includes", "indexOf", "lastIndexOf"].forEach((key) => {
399
- instrumentations[key] = function(...args) {
400
- const arr = toRaw(this);
401
- for (let i = 0, l = this.length; i < l; i++) {
402
- track(arr, "get", i + "");
403
- }
404
- const res = arr[key](...args);
405
- if (res === -1 || res === false) {
406
- return arr[key](...args.map(toRaw));
407
- } else {
408
- return res;
409
- }
410
- };
411
- });
412
- ["push", "pop", "shift", "unshift", "splice"].forEach((key) => {
413
- instrumentations[key] = function(...args) {
414
- pauseTracking();
415
- const res = toRaw(this)[key].apply(this, args);
416
- resetTracking();
417
- return res;
418
- };
419
- });
420
- return instrumentations;
421
- }
422
- function hasOwnProperty(key) {
423
- const obj = toRaw(this);
424
- track(obj, "has", key);
425
- return obj.hasOwnProperty(key);
426
- }
427
- function createGetter(isReadonly2 = false, shallow = false) {
428
- return function get2(target, key, receiver) {
429
- if (key === "__v_isReactive") {
430
- return !isReadonly2;
431
- } else if (key === "__v_isReadonly") {
432
- return isReadonly2;
433
- } else if (key === "__v_isShallow") {
434
- return shallow;
435
- } else if (key === "__v_raw" && receiver === (isReadonly2 ? shallow ? shallowReadonlyMap : readonlyMap : shallow ? shallowReactiveMap : reactiveMap).get(target)) {
436
- return target;
437
- }
438
- const targetIsArray = isArray(target);
439
- if (!isReadonly2) {
440
- if (targetIsArray && hasOwn(arrayInstrumentations, key)) {
441
- return Reflect.get(arrayInstrumentations, key, receiver);
442
- }
443
- if (key === "hasOwnProperty") {
444
- return hasOwnProperty;
445
- }
446
- }
447
- const res = Reflect.get(target, key, receiver);
448
- if (isSymbol(key) ? builtInSymbols.has(key) : isNonTrackableKeys(key)) {
449
- return res;
450
- }
451
- if (!isReadonly2) {
452
- track(target, "get", key);
453
- }
454
- if (shallow) {
455
- return res;
456
- }
457
- if (isRef(res)) {
458
- return targetIsArray && isIntegerKey(key) ? res : res.value;
459
- }
460
- if (isObject(res)) {
461
- return isReadonly2 ? readonly(res) : reactive(res);
462
- }
463
- return res;
464
- };
465
- }
466
- const set$1 = /* @__PURE__ */ createSetter();
467
- function createSetter(shallow = false) {
468
- return function set2(target, key, value, receiver) {
469
- let oldValue = target[key];
470
- if (isReadonly(oldValue) && isRef(oldValue) && !isRef(value)) {
471
- return false;
472
- }
473
- if (!shallow) {
474
- if (!isShallow$1(value) && !isReadonly(value)) {
475
- oldValue = toRaw(oldValue);
476
- value = toRaw(value);
477
- }
478
- if (!isArray(target) && isRef(oldValue) && !isRef(value)) {
479
- oldValue.value = value;
480
- return true;
481
- }
482
- }
483
- const hadKey = isArray(target) && isIntegerKey(key) ? Number(key) < target.length : hasOwn(target, key);
484
- const result = Reflect.set(target, key, value, receiver);
485
- if (target === toRaw(receiver)) {
486
- if (!hadKey) {
487
- trigger(target, "add", key, value);
488
- } else if (hasChanged(value, oldValue)) {
489
- trigger(target, "set", key, value, oldValue);
490
- }
491
- }
492
- return result;
493
- };
494
- }
495
- function deleteProperty(target, key) {
496
- const hadKey = hasOwn(target, key);
497
- const oldValue = target[key];
498
- const result = Reflect.deleteProperty(target, key);
499
- if (result && hadKey) {
500
- trigger(target, "delete", key, void 0, oldValue);
501
- }
502
- return result;
503
- }
504
- function has$1(target, key) {
505
- const result = Reflect.has(target, key);
506
- if (!isSymbol(key) || !builtInSymbols.has(key)) {
507
- track(target, "has", key);
508
- }
509
- return result;
510
- }
511
- function ownKeys(target) {
512
- track(target, "iterate", isArray(target) ? "length" : ITERATE_KEY);
513
- return Reflect.ownKeys(target);
514
- }
515
- const mutableHandlers = {
516
- get: get$1,
517
- set: set$1,
518
- deleteProperty,
519
- has: has$1,
520
- ownKeys
521
- };
522
- const readonlyHandlers = {
523
- get: readonlyGet,
524
- set(target, key) {
525
- if (!!(process.env.NODE_ENV !== "production")) {
526
- warn$1(
527
- `Set operation on key "${String(key)}" failed: target is readonly.`,
528
- target
529
- );
530
- }
531
- return true;
532
- },
533
- deleteProperty(target, key) {
534
- if (!!(process.env.NODE_ENV !== "production")) {
535
- warn$1(
536
- `Delete operation on key "${String(key)}" failed: target is readonly.`,
537
- target
538
- );
539
- }
540
- return true;
541
- }
542
- };
543
- const shallowReadonlyHandlers = /* @__PURE__ */ extend(
544
- {},
545
- readonlyHandlers,
546
- {
547
- get: shallowReadonlyGet
548
- }
549
- );
550
-
551
- const toShallow = (value) => value;
552
- const getProto = (v) => Reflect.getPrototypeOf(v);
553
- function get(target, key, isReadonly = false, isShallow = false) {
554
- target = target["__v_raw"];
555
- const rawTarget = toRaw(target);
556
- const rawKey = toRaw(key);
557
- if (!isReadonly) {
558
- if (key !== rawKey) {
559
- track(rawTarget, "get", key);
560
- }
561
- track(rawTarget, "get", rawKey);
562
- }
563
- const { has: has2 } = getProto(rawTarget);
564
- const wrap = isShallow ? toShallow : isReadonly ? toReadonly : toReactive;
565
- if (has2.call(rawTarget, key)) {
566
- return wrap(target.get(key));
567
- } else if (has2.call(rawTarget, rawKey)) {
568
- return wrap(target.get(rawKey));
569
- } else if (target !== rawTarget) {
570
- target.get(key);
571
- }
572
- }
573
- function has(key, isReadonly = false) {
574
- const target = this["__v_raw"];
575
- const rawTarget = toRaw(target);
576
- const rawKey = toRaw(key);
577
- if (!isReadonly) {
578
- if (key !== rawKey) {
579
- track(rawTarget, "has", key);
580
- }
581
- track(rawTarget, "has", rawKey);
582
- }
583
- return key === rawKey ? target.has(key) : target.has(key) || target.has(rawKey);
584
- }
585
- function size(target, isReadonly = false) {
586
- target = target["__v_raw"];
587
- !isReadonly && track(toRaw(target), "iterate", ITERATE_KEY);
588
- return Reflect.get(target, "size", target);
589
- }
590
- function add(value) {
591
- value = toRaw(value);
592
- const target = toRaw(this);
593
- const proto = getProto(target);
594
- const hadKey = proto.has.call(target, value);
595
- if (!hadKey) {
596
- target.add(value);
597
- trigger(target, "add", value, value);
598
- }
599
- return this;
600
- }
601
- function set(key, value) {
602
- value = toRaw(value);
603
- const target = toRaw(this);
604
- const { has: has2, get: get2 } = getProto(target);
605
- let hadKey = has2.call(target, key);
606
- if (!hadKey) {
607
- key = toRaw(key);
608
- hadKey = has2.call(target, key);
609
- } else if (!!(process.env.NODE_ENV !== "production")) {
610
- checkIdentityKeys(target, has2, key);
611
- }
612
- const oldValue = get2.call(target, key);
613
- target.set(key, value);
614
- if (!hadKey) {
615
- trigger(target, "add", key, value);
616
- } else if (hasChanged(value, oldValue)) {
617
- trigger(target, "set", key, value, oldValue);
618
- }
619
- return this;
620
- }
621
- function deleteEntry(key) {
622
- const target = toRaw(this);
623
- const { has: has2, get: get2 } = getProto(target);
624
- let hadKey = has2.call(target, key);
625
- if (!hadKey) {
626
- key = toRaw(key);
627
- hadKey = has2.call(target, key);
628
- } else if (!!(process.env.NODE_ENV !== "production")) {
629
- checkIdentityKeys(target, has2, key);
630
- }
631
- const oldValue = get2 ? get2.call(target, key) : void 0;
632
- const result = target.delete(key);
633
- if (hadKey) {
634
- trigger(target, "delete", key, void 0, oldValue);
635
- }
636
- return result;
637
- }
638
- function clear() {
639
- const target = toRaw(this);
640
- const hadItems = target.size !== 0;
641
- const oldTarget = !!(process.env.NODE_ENV !== "production") ? isMap(target) ? new Map(target) : new Set(target) : void 0;
642
- const result = target.clear();
643
- if (hadItems) {
644
- trigger(target, "clear", void 0, void 0, oldTarget);
645
- }
646
- return result;
647
- }
648
- function createForEach(isReadonly, isShallow) {
649
- return function forEach(callback, thisArg) {
650
- const observed = this;
651
- const target = observed["__v_raw"];
652
- const rawTarget = toRaw(target);
653
- const wrap = isShallow ? toShallow : isReadonly ? toReadonly : toReactive;
654
- !isReadonly && track(rawTarget, "iterate", ITERATE_KEY);
655
- return target.forEach((value, key) => {
656
- return callback.call(thisArg, wrap(value), wrap(key), observed);
657
- });
658
- };
659
- }
660
- function createIterableMethod(method, isReadonly, isShallow) {
661
- return function(...args) {
662
- const target = this["__v_raw"];
663
- const rawTarget = toRaw(target);
664
- const targetIsMap = isMap(rawTarget);
665
- const isPair = method === "entries" || method === Symbol.iterator && targetIsMap;
666
- const isKeyOnly = method === "keys" && targetIsMap;
667
- const innerIterator = target[method](...args);
668
- const wrap = isShallow ? toShallow : isReadonly ? toReadonly : toReactive;
669
- !isReadonly && track(
670
- rawTarget,
671
- "iterate",
672
- isKeyOnly ? MAP_KEY_ITERATE_KEY : ITERATE_KEY
673
- );
674
- return {
675
- // iterator protocol
676
- next() {
677
- const { value, done } = innerIterator.next();
678
- return done ? { value, done } : {
679
- value: isPair ? [wrap(value[0]), wrap(value[1])] : wrap(value),
680
- done
681
- };
682
- },
683
- // iterable protocol
684
- [Symbol.iterator]() {
685
- return this;
686
- }
687
- };
688
- };
689
- }
690
- function createReadonlyMethod(type) {
691
- return function(...args) {
692
- if (!!(process.env.NODE_ENV !== "production")) {
693
- const key = args[0] ? `on key "${args[0]}" ` : ``;
694
- console.warn(
695
- `${capitalize(type)} operation ${key}failed: target is readonly.`,
696
- toRaw(this)
697
- );
698
- }
699
- return type === "delete" ? false : this;
700
- };
701
- }
702
- function createInstrumentations() {
703
- const mutableInstrumentations2 = {
704
- get(key) {
705
- return get(this, key);
706
- },
707
- get size() {
708
- return size(this);
709
- },
710
- has,
711
- add,
712
- set,
713
- delete: deleteEntry,
714
- clear,
715
- forEach: createForEach(false, false)
716
- };
717
- const shallowInstrumentations2 = {
718
- get(key) {
719
- return get(this, key, false, true);
720
- },
721
- get size() {
722
- return size(this);
723
- },
724
- has,
725
- add,
726
- set,
727
- delete: deleteEntry,
728
- clear,
729
- forEach: createForEach(false, true)
730
- };
731
- const readonlyInstrumentations2 = {
732
- get(key) {
733
- return get(this, key, true);
734
- },
735
- get size() {
736
- return size(this, true);
737
- },
738
- has(key) {
739
- return has.call(this, key, true);
740
- },
741
- add: createReadonlyMethod("add"),
742
- set: createReadonlyMethod("set"),
743
- delete: createReadonlyMethod("delete"),
744
- clear: createReadonlyMethod("clear"),
745
- forEach: createForEach(true, false)
746
- };
747
- const shallowReadonlyInstrumentations2 = {
748
- get(key) {
749
- return get(this, key, true, true);
750
- },
751
- get size() {
752
- return size(this, true);
753
- },
754
- has(key) {
755
- return has.call(this, key, true);
756
- },
757
- add: createReadonlyMethod("add"),
758
- set: createReadonlyMethod("set"),
759
- delete: createReadonlyMethod("delete"),
760
- clear: createReadonlyMethod("clear"),
761
- forEach: createForEach(true, true)
762
- };
763
- const iteratorMethods = ["keys", "values", "entries", Symbol.iterator];
764
- iteratorMethods.forEach((method) => {
765
- mutableInstrumentations2[method] = createIterableMethod(
766
- method,
767
- false,
768
- false
769
- );
770
- readonlyInstrumentations2[method] = createIterableMethod(
771
- method,
772
- true,
773
- false
774
- );
775
- shallowInstrumentations2[method] = createIterableMethod(
776
- method,
777
- false,
778
- true
779
- );
780
- shallowReadonlyInstrumentations2[method] = createIterableMethod(
781
- method,
782
- true,
783
- true
784
- );
785
- });
786
- return [
787
- mutableInstrumentations2,
788
- readonlyInstrumentations2,
789
- shallowInstrumentations2,
790
- shallowReadonlyInstrumentations2
791
- ];
792
- }
793
- const [
794
- mutableInstrumentations,
795
- readonlyInstrumentations,
796
- shallowInstrumentations,
797
- shallowReadonlyInstrumentations
798
- ] = /* @__PURE__ */ createInstrumentations();
799
- function createInstrumentationGetter(isReadonly, shallow) {
800
- const instrumentations = shallow ? isReadonly ? shallowReadonlyInstrumentations : shallowInstrumentations : isReadonly ? readonlyInstrumentations : mutableInstrumentations;
801
- return (target, key, receiver) => {
802
- if (key === "__v_isReactive") {
803
- return !isReadonly;
804
- } else if (key === "__v_isReadonly") {
805
- return isReadonly;
806
- } else if (key === "__v_raw") {
807
- return target;
808
- }
809
- return Reflect.get(
810
- hasOwn(instrumentations, key) && key in target ? instrumentations : target,
811
- key,
812
- receiver
813
- );
814
- };
815
- }
816
- const mutableCollectionHandlers = {
817
- get: /* @__PURE__ */ createInstrumentationGetter(false, false)
818
- };
819
- const readonlyCollectionHandlers = {
820
- get: /* @__PURE__ */ createInstrumentationGetter(true, false)
821
- };
822
- const shallowReadonlyCollectionHandlers = {
823
- get: /* @__PURE__ */ createInstrumentationGetter(true, true)
824
- };
825
- function checkIdentityKeys(target, has2, key) {
826
- const rawKey = toRaw(key);
827
- if (rawKey !== key && has2.call(target, rawKey)) {
828
- const type = toRawType(target);
829
- console.warn(
830
- `Reactive ${type} contains both the raw and reactive versions of the same object${type === `Map` ? ` as keys` : ``}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`
831
- );
832
- }
833
- }
834
-
835
- const reactiveMap = /* @__PURE__ */ new WeakMap();
836
- const shallowReactiveMap = /* @__PURE__ */ new WeakMap();
837
- const readonlyMap = /* @__PURE__ */ new WeakMap();
838
- const shallowReadonlyMap = /* @__PURE__ */ new WeakMap();
839
- function targetTypeMap(rawType) {
840
- switch (rawType) {
841
- case "Object":
842
- case "Array":
843
- return 1 /* COMMON */;
844
- case "Map":
845
- case "Set":
846
- case "WeakMap":
847
- case "WeakSet":
848
- return 2 /* COLLECTION */;
849
- default:
850
- return 0 /* INVALID */;
851
- }
852
- }
853
- function getTargetType(value) {
854
- return value["__v_skip"] || !Object.isExtensible(value) ? 0 /* INVALID */ : targetTypeMap(toRawType(value));
855
- }
856
- function reactive(target) {
857
- if (isReadonly(target)) {
858
- return target;
859
- }
860
- return createReactiveObject(
861
- target,
862
- false,
863
- mutableHandlers,
864
- mutableCollectionHandlers,
865
- reactiveMap
866
- );
867
- }
868
- function readonly(target) {
869
- return createReactiveObject(
870
- target,
871
- true,
872
- readonlyHandlers,
873
- readonlyCollectionHandlers,
874
- readonlyMap
875
- );
876
- }
877
- function shallowReadonly(target) {
878
- return createReactiveObject(
879
- target,
880
- true,
881
- shallowReadonlyHandlers,
882
- shallowReadonlyCollectionHandlers,
883
- shallowReadonlyMap
884
- );
885
- }
886
- function createReactiveObject(target, isReadonly2, baseHandlers, collectionHandlers, proxyMap) {
887
- if (!isObject(target)) {
888
- if (!!(process.env.NODE_ENV !== "production")) {
889
- console.warn(`value cannot be made reactive: ${String(target)}`);
890
- }
891
- return target;
892
- }
893
- if (target["__v_raw"] && !(isReadonly2 && target["__v_isReactive"])) {
894
- return target;
895
- }
896
- const existingProxy = proxyMap.get(target);
897
- if (existingProxy) {
898
- return existingProxy;
899
- }
900
- const targetType = getTargetType(target);
901
- if (targetType === 0 /* INVALID */) {
902
- return target;
903
- }
904
- const proxy = new Proxy(
905
- target,
906
- targetType === 2 /* COLLECTION */ ? collectionHandlers : baseHandlers
907
- );
908
- proxyMap.set(target, proxy);
909
- return proxy;
910
- }
911
- function isReactive(value) {
912
- if (isReadonly(value)) {
913
- return isReactive(value["__v_raw"]);
914
- }
915
- return !!(value && value["__v_isReactive"]);
916
- }
917
- function isReadonly(value) {
918
- return !!(value && value["__v_isReadonly"]);
919
- }
920
- function isShallow$1(value) {
921
- return !!(value && value["__v_isShallow"]);
922
- }
923
- function isProxy(value) {
924
- return isReactive(value) || isReadonly(value);
925
- }
926
- function toRaw(observed) {
927
- const raw = observed && observed["__v_raw"];
928
- return raw ? toRaw(raw) : observed;
929
- }
930
- function markRaw(value) {
931
- def(value, "__v_skip", true);
932
- return value;
933
- }
934
- const toReactive = (value) => isObject(value) ? reactive(value) : value;
935
- const toReadonly = (value) => isObject(value) ? readonly(value) : value;
936
-
937
- function trackRefValue(ref2) {
938
- if (shouldTrack && activeEffect) {
939
- ref2 = toRaw(ref2);
940
- if (!!(process.env.NODE_ENV !== "production")) {
941
- trackEffects(ref2.dep || (ref2.dep = createDep()), {
942
- target: ref2,
943
- type: "get",
944
- key: "value"
945
- });
946
- } else {
947
- trackEffects(ref2.dep || (ref2.dep = createDep()));
948
- }
949
- }
950
- }
951
- function triggerRefValue(ref2, newVal) {
952
- ref2 = toRaw(ref2);
953
- const dep = ref2.dep;
954
- if (dep) {
955
- if (!!(process.env.NODE_ENV !== "production")) {
956
- triggerEffects(dep, {
957
- target: ref2,
958
- type: "set",
959
- key: "value",
960
- newValue: newVal
961
- });
962
- } else {
963
- triggerEffects(dep);
964
- }
965
- }
966
- }
967
- function isRef(r) {
968
- return !!(r && r.__v_isRef === true);
969
- }
970
- function ref(value) {
971
- return createRef(value, false);
972
- }
973
- function createRef(rawValue, shallow) {
974
- if (isRef(rawValue)) {
975
- return rawValue;
976
- }
977
- return new RefImpl(rawValue, shallow);
978
- }
979
- class RefImpl {
980
- constructor(value, __v_isShallow) {
981
- this.__v_isShallow = __v_isShallow;
982
- this.dep = void 0;
983
- this.__v_isRef = true;
984
- this._rawValue = __v_isShallow ? value : toRaw(value);
985
- this._value = __v_isShallow ? value : toReactive(value);
986
- }
987
- get value() {
988
- trackRefValue(this);
989
- return this._value;
990
- }
991
- set value(newVal) {
992
- const useDirectValue = this.__v_isShallow || isShallow$1(newVal) || isReadonly(newVal);
993
- newVal = useDirectValue ? newVal : toRaw(newVal);
994
- if (hasChanged(newVal, this._rawValue)) {
995
- this._rawValue = newVal;
996
- this._value = useDirectValue ? newVal : toReactive(newVal);
997
- triggerRefValue(this, newVal);
998
- }
999
- }
1000
- }
1001
- function unref(ref2) {
1002
- return isRef(ref2) ? ref2.value : ref2;
1003
- }
1004
- const shallowUnwrapHandlers = {
1005
- get: (target, key, receiver) => unref(Reflect.get(target, key, receiver)),
1006
- set: (target, key, value, receiver) => {
1007
- const oldValue = target[key];
1008
- if (isRef(oldValue) && !isRef(value)) {
1009
- oldValue.value = value;
1010
- return true;
1011
- } else {
1012
- return Reflect.set(target, key, value, receiver);
1013
- }
1014
- }
1015
- };
1016
- function proxyRefs(objectWithRefs) {
1017
- return isReactive(objectWithRefs) ? objectWithRefs : new Proxy(objectWithRefs, shallowUnwrapHandlers);
1018
- }
1019
-
1020
- const stack = [];
1021
- function pushWarningContext(vnode) {
1022
- stack.push(vnode);
1023
- }
1024
- function popWarningContext() {
1025
- stack.pop();
1026
- }
1027
- function warn(msg, ...args) {
1028
- if (!!!(process.env.NODE_ENV !== "production"))
1029
- return;
1030
- pauseTracking();
1031
- const instance = stack.length ? stack[stack.length - 1].component : null;
1032
- const appWarnHandler = instance && instance.appContext.config.warnHandler;
1033
- const trace = getComponentTrace();
1034
- if (appWarnHandler) {
1035
- callWithErrorHandling(
1036
- appWarnHandler,
1037
- instance,
1038
- 11,
1039
- [
1040
- msg + args.join(""),
1041
- instance && instance.proxy,
1042
- trace.map(
1043
- ({ vnode }) => `at <${formatComponentName(instance, vnode.type)}>`
1044
- ).join("\n"),
1045
- trace
1046
- ]
1047
- );
1048
- } else {
1049
- const warnArgs = [`[Vue warn]: ${msg}`, ...args];
1050
- if (trace.length && // avoid spamming console during tests
1051
- true) {
1052
- warnArgs.push(`
1053
- `, ...formatTrace(trace));
1054
- }
1055
- console.warn(...warnArgs);
1056
- }
1057
- resetTracking();
1058
- }
1059
- function getComponentTrace() {
1060
- let currentVNode = stack[stack.length - 1];
1061
- if (!currentVNode) {
1062
- return [];
1063
- }
1064
- const normalizedStack = [];
1065
- while (currentVNode) {
1066
- const last = normalizedStack[0];
1067
- if (last && last.vnode === currentVNode) {
1068
- last.recurseCount++;
1069
- } else {
1070
- normalizedStack.push({
1071
- vnode: currentVNode,
1072
- recurseCount: 0
1073
- });
1074
- }
1075
- const parentInstance = currentVNode.component && currentVNode.component.parent;
1076
- currentVNode = parentInstance && parentInstance.vnode;
1077
- }
1078
- return normalizedStack;
1079
- }
1080
- function formatTrace(trace) {
1081
- const logs = [];
1082
- trace.forEach((entry, i) => {
1083
- logs.push(...i === 0 ? [] : [`
1084
- `], ...formatTraceEntry(entry));
1085
- });
1086
- return logs;
1087
- }
1088
- function formatTraceEntry({ vnode, recurseCount }) {
1089
- const postfix = recurseCount > 0 ? `... (${recurseCount} recursive calls)` : ``;
1090
- const isRoot = vnode.component ? vnode.component.parent == null : false;
1091
- const open = ` at <${formatComponentName(
1092
- vnode.component,
1093
- vnode.type,
1094
- isRoot
1095
- )}`;
1096
- const close = `>` + postfix;
1097
- return vnode.props ? [open, ...formatProps(vnode.props), close] : [open + close];
1098
- }
1099
- function formatProps(props) {
1100
- const res = [];
1101
- const keys = Object.keys(props);
1102
- keys.slice(0, 3).forEach((key) => {
1103
- res.push(...formatProp(key, props[key]));
1104
- });
1105
- if (keys.length > 3) {
1106
- res.push(` ...`);
1107
- }
1108
- return res;
1109
- }
1110
- function formatProp(key, value, raw) {
1111
- if (isString(value)) {
1112
- value = JSON.stringify(value);
1113
- return raw ? value : [`${key}=${value}`];
1114
- } else if (typeof value === "number" || typeof value === "boolean" || value == null) {
1115
- return raw ? value : [`${key}=${value}`];
1116
- } else if (isRef(value)) {
1117
- value = formatProp(key, toRaw(value.value), true);
1118
- return raw ? value : [`${key}=Ref<`, value, `>`];
1119
- } else if (isFunction(value)) {
1120
- return [`${key}=fn${value.name ? `<${value.name}>` : ``}`];
1121
- } else {
1122
- value = toRaw(value);
1123
- return raw ? value : [`${key}=`, value];
1124
- }
1125
- }
1126
-
1127
- const ErrorTypeStrings = {
1128
- ["sp"]: "serverPrefetch hook",
1129
- ["bc"]: "beforeCreate hook",
1130
- ["c"]: "created hook",
1131
- ["bm"]: "beforeMount hook",
1132
- ["m"]: "mounted hook",
1133
- ["bu"]: "beforeUpdate hook",
1134
- ["u"]: "updated",
1135
- ["bum"]: "beforeUnmount hook",
1136
- ["um"]: "unmounted hook",
1137
- ["a"]: "activated hook",
1138
- ["da"]: "deactivated hook",
1139
- ["ec"]: "errorCaptured hook",
1140
- ["rtc"]: "renderTracked hook",
1141
- ["rtg"]: "renderTriggered hook",
1142
- [0]: "setup function",
1143
- [1]: "render function",
1144
- [2]: "watcher getter",
1145
- [3]: "watcher callback",
1146
- [4]: "watcher cleanup function",
1147
- [5]: "native event handler",
1148
- [6]: "component event handler",
1149
- [7]: "vnode hook",
1150
- [8]: "directive hook",
1151
- [9]: "transition hook",
1152
- [10]: "app errorHandler",
1153
- [11]: "app warnHandler",
1154
- [12]: "ref function",
1155
- [13]: "async component loader",
1156
- [14]: "scheduler flush. This is likely a Vue internals bug. Please open an issue at https://new-issue.vuejs.org/?repo=vuejs/core"
1157
- };
1158
- function callWithErrorHandling(fn, instance, type, args) {
1159
- let res;
1160
- try {
1161
- res = args ? fn(...args) : fn();
1162
- } catch (err) {
1163
- handleError(err, instance, type);
1164
- }
1165
- return res;
1166
- }
1167
- function callWithAsyncErrorHandling(fn, instance, type, args) {
1168
- if (isFunction(fn)) {
1169
- const res = callWithErrorHandling(fn, instance, type, args);
1170
- if (res && isPromise(res)) {
1171
- res.catch((err) => {
1172
- handleError(err, instance, type);
1173
- });
1174
- }
1175
- return res;
1176
- }
1177
- const values = [];
1178
- for (let i = 0; i < fn.length; i++) {
1179
- values.push(callWithAsyncErrorHandling(fn[i], instance, type, args));
1180
- }
1181
- return values;
1182
- }
1183
- function handleError(err, instance, type, throwInDev = true) {
1184
- const contextVNode = instance ? instance.vnode : null;
1185
- if (instance) {
1186
- let cur = instance.parent;
1187
- const exposedInstance = instance.proxy;
1188
- const errorInfo = !!(process.env.NODE_ENV !== "production") ? ErrorTypeStrings[type] : type;
1189
- while (cur) {
1190
- const errorCapturedHooks = cur.ec;
1191
- if (errorCapturedHooks) {
1192
- for (let i = 0; i < errorCapturedHooks.length; i++) {
1193
- if (errorCapturedHooks[i](err, exposedInstance, errorInfo) === false) {
1194
- return;
1195
- }
1196
- }
1197
- }
1198
- cur = cur.parent;
1199
- }
1200
- const appErrorHandler = instance.appContext.config.errorHandler;
1201
- if (appErrorHandler) {
1202
- callWithErrorHandling(
1203
- appErrorHandler,
1204
- null,
1205
- 10,
1206
- [err, exposedInstance, errorInfo]
1207
- );
1208
- return;
1209
- }
1210
- }
1211
- logError(err, type, contextVNode, throwInDev);
1212
- }
1213
- function logError(err, type, contextVNode, throwInDev = true) {
1214
- if (!!(process.env.NODE_ENV !== "production")) {
1215
- const info = ErrorTypeStrings[type];
1216
- if (contextVNode) {
1217
- pushWarningContext(contextVNode);
1218
- }
1219
- warn(`Unhandled error${info ? ` during execution of ${info}` : ``}`);
1220
- if (contextVNode) {
1221
- popWarningContext();
1222
- }
1223
- if (throwInDev) {
1224
- throw err;
1225
- } else {
1226
- console.error(err);
1227
- }
1228
- } else {
1229
- console.error(err);
1230
- }
1231
- }
1232
-
1233
- let isFlushing = false;
1234
- let isFlushPending = false;
1235
- const queue = [];
1236
- let flushIndex = 0;
1237
- const pendingPostFlushCbs = [];
1238
- let activePostFlushCbs = null;
1239
- let postFlushIndex = 0;
1240
- const resolvedPromise = /* @__PURE__ */ Promise.resolve();
1241
- let currentFlushPromise = null;
1242
- const RECURSION_LIMIT = 100;
1243
- function nextTick(fn) {
1244
- const p = currentFlushPromise || resolvedPromise;
1245
- return fn ? p.then(this ? fn.bind(this) : fn) : p;
1246
- }
1247
- function findInsertionIndex(id) {
1248
- let start = flushIndex + 1;
1249
- let end = queue.length;
1250
- while (start < end) {
1251
- const middle = start + end >>> 1;
1252
- const middleJobId = getId(queue[middle]);
1253
- middleJobId < id ? start = middle + 1 : end = middle;
1254
- }
1255
- return start;
1256
- }
1257
- function queueJob(job) {
1258
- if (!queue.length || !queue.includes(
1259
- job,
1260
- isFlushing && job.allowRecurse ? flushIndex + 1 : flushIndex
1261
- )) {
1262
- if (job.id == null) {
1263
- queue.push(job);
1264
- } else {
1265
- queue.splice(findInsertionIndex(job.id), 0, job);
1266
- }
1267
- queueFlush();
1268
- }
1269
- }
1270
- function queueFlush() {
1271
- if (!isFlushing && !isFlushPending) {
1272
- isFlushPending = true;
1273
- currentFlushPromise = resolvedPromise.then(flushJobs);
1274
- }
1275
- }
1276
- function queuePostFlushCb(cb) {
1277
- if (!isArray(cb)) {
1278
- if (!activePostFlushCbs || !activePostFlushCbs.includes(
1279
- cb,
1280
- cb.allowRecurse ? postFlushIndex + 1 : postFlushIndex
1281
- )) {
1282
- pendingPostFlushCbs.push(cb);
1283
- }
1284
- } else {
1285
- pendingPostFlushCbs.push(...cb);
1286
- }
1287
- queueFlush();
1288
- }
1289
- function flushPostFlushCbs(seen) {
1290
- if (pendingPostFlushCbs.length) {
1291
- const deduped = [...new Set(pendingPostFlushCbs)];
1292
- pendingPostFlushCbs.length = 0;
1293
- if (activePostFlushCbs) {
1294
- activePostFlushCbs.push(...deduped);
1295
- return;
1296
- }
1297
- activePostFlushCbs = deduped;
1298
- if (!!(process.env.NODE_ENV !== "production")) {
1299
- seen = seen || /* @__PURE__ */ new Map();
1300
- }
1301
- activePostFlushCbs.sort((a, b) => getId(a) - getId(b));
1302
- for (postFlushIndex = 0; postFlushIndex < activePostFlushCbs.length; postFlushIndex++) {
1303
- if (!!(process.env.NODE_ENV !== "production") && checkRecursiveUpdates(seen, activePostFlushCbs[postFlushIndex])) {
1304
- continue;
1305
- }
1306
- activePostFlushCbs[postFlushIndex]();
1307
- }
1308
- activePostFlushCbs = null;
1309
- postFlushIndex = 0;
1310
- }
1311
- }
1312
- const getId = (job) => job.id == null ? Infinity : job.id;
1313
- const comparator = (a, b) => {
1314
- const diff = getId(a) - getId(b);
1315
- if (diff === 0) {
1316
- if (a.pre && !b.pre)
1317
- return -1;
1318
- if (b.pre && !a.pre)
1319
- return 1;
1320
- }
1321
- return diff;
1322
- };
1323
- function flushJobs(seen) {
1324
- isFlushPending = false;
1325
- isFlushing = true;
1326
- if (!!(process.env.NODE_ENV !== "production")) {
1327
- seen = seen || /* @__PURE__ */ new Map();
1328
- }
1329
- queue.sort(comparator);
1330
- const check = !!(process.env.NODE_ENV !== "production") ? (job) => checkRecursiveUpdates(seen, job) : NOOP;
1331
- try {
1332
- for (flushIndex = 0; flushIndex < queue.length; flushIndex++) {
1333
- const job = queue[flushIndex];
1334
- if (job && job.active !== false) {
1335
- if (!!(process.env.NODE_ENV !== "production") && check(job)) {
1336
- continue;
1337
- }
1338
- callWithErrorHandling(job, null, 14);
1339
- }
1340
- }
1341
- } finally {
1342
- flushIndex = 0;
1343
- queue.length = 0;
1344
- flushPostFlushCbs(seen);
1345
- isFlushing = false;
1346
- currentFlushPromise = null;
1347
- if (queue.length || pendingPostFlushCbs.length) {
1348
- flushJobs(seen);
1349
- }
1350
- }
1351
- }
1352
- function checkRecursiveUpdates(seen, fn) {
1353
- if (!seen.has(fn)) {
1354
- seen.set(fn, 1);
1355
- } else {
1356
- const count = seen.get(fn);
1357
- if (count > RECURSION_LIMIT) {
1358
- const instance = fn.ownerInstance;
1359
- const componentName = instance && getComponentName(instance.type);
1360
- warn(
1361
- `Maximum recursive updates exceeded${componentName ? ` in component <${componentName}>` : ``}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`
1362
- );
1363
- return true;
1364
- } else {
1365
- seen.set(fn, count + 1);
1366
- }
1367
- }
1368
- }
1369
- const hmrDirtyComponents = /* @__PURE__ */ new Set();
1370
- if (!!(process.env.NODE_ENV !== "production")) {
1371
- getGlobalThis().__VUE_HMR_RUNTIME__ = {
1372
- createRecord: tryWrap(createRecord),
1373
- rerender: tryWrap(rerender),
1374
- reload: tryWrap(reload)
1375
- };
1376
- }
1377
- const map = /* @__PURE__ */ new Map();
1378
- function createRecord(id, initialDef) {
1379
- if (map.has(id)) {
1380
- return false;
1381
- }
1382
- map.set(id, {
1383
- initialDef: normalizeClassComponent(initialDef),
1384
- instances: /* @__PURE__ */ new Set()
1385
- });
1386
- return true;
1387
- }
1388
- function normalizeClassComponent(component) {
1389
- return isClassComponent(component) ? component.__vccOpts : component;
1390
- }
1391
- function rerender(id, newRender) {
1392
- const record = map.get(id);
1393
- if (!record) {
1394
- return;
1395
- }
1396
- record.initialDef.render = newRender;
1397
- [...record.instances].forEach((instance) => {
1398
- if (newRender) {
1399
- instance.render = newRender;
1400
- normalizeClassComponent(instance.type).render = newRender;
1401
- }
1402
- instance.renderCache = [];
1403
- instance.update();
1404
- });
1405
- }
1406
- function reload(id, newComp) {
1407
- const record = map.get(id);
1408
- if (!record)
1409
- return;
1410
- newComp = normalizeClassComponent(newComp);
1411
- updateComponentDef(record.initialDef, newComp);
1412
- const instances = [...record.instances];
1413
- for (const instance of instances) {
1414
- const oldComp = normalizeClassComponent(instance.type);
1415
- if (!hmrDirtyComponents.has(oldComp)) {
1416
- if (oldComp !== record.initialDef) {
1417
- updateComponentDef(oldComp, newComp);
1418
- }
1419
- hmrDirtyComponents.add(oldComp);
1420
- }
1421
- instance.appContext.propsCache.delete(instance.type);
1422
- instance.appContext.emitsCache.delete(instance.type);
1423
- instance.appContext.optionsCache.delete(instance.type);
1424
- if (instance.ceReload) {
1425
- hmrDirtyComponents.add(oldComp);
1426
- instance.ceReload(newComp.styles);
1427
- hmrDirtyComponents.delete(oldComp);
1428
- } else if (instance.parent) {
1429
- queueJob(instance.parent.update);
1430
- } else if (instance.appContext.reload) {
1431
- instance.appContext.reload();
1432
- } else if (typeof window !== "undefined") {
1433
- window.location.reload();
1434
- } else {
1435
- console.warn(
1436
- "[HMR] Root or manually mounted instance modified. Full reload required."
1437
- );
1438
- }
1439
- }
1440
- queuePostFlushCb(() => {
1441
- for (const instance of instances) {
1442
- hmrDirtyComponents.delete(
1443
- normalizeClassComponent(instance.type)
1444
- );
1445
- }
1446
- });
1447
- }
1448
- function updateComponentDef(oldComp, newComp) {
1449
- extend(oldComp, newComp);
1450
- for (const key in oldComp) {
1451
- if (key !== "__file" && !(key in newComp)) {
1452
- delete oldComp[key];
1453
- }
1454
- }
1455
- }
1456
- function tryWrap(fn) {
1457
- return (id, arg) => {
1458
- try {
1459
- return fn(id, arg);
1460
- } catch (e) {
1461
- console.error(e);
1462
- console.warn(
1463
- `[HMR] Something went wrong during Vue component hot-reload. Full reload required.`
1464
- );
1465
- }
1466
- };
1467
- }
1468
-
1469
- let currentRenderingInstance = null;
1470
- let currentScopeId = null;
1471
- function markAttrsAccessed() {
1472
- }
1473
-
1474
- const isSuspense = (type) => type.__isSuspense;
1475
- function queueEffectWithSuspense(fn, suspense) {
1476
- if (suspense && suspense.pendingBranch) {
1477
- if (isArray(fn)) {
1478
- suspense.effects.push(...fn);
1479
- } else {
1480
- suspense.effects.push(fn);
1481
- }
1482
- } else {
1483
- queuePostFlushCb(fn);
1484
- }
1485
- }
1486
- const INITIAL_WATCHER_VALUE = {};
1487
- function doWatch(source, cb, { immediate, deep, flush, onTrack, onTrigger } = EMPTY_OBJ) {
1488
- var _a;
1489
- if (!!(process.env.NODE_ENV !== "production") && !cb) {
1490
- if (immediate !== void 0) {
1491
- warn(
1492
- `watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.`
1493
- );
1494
- }
1495
- if (deep !== void 0) {
1496
- warn(
1497
- `watch() "deep" option is only respected when using the watch(source, callback, options?) signature.`
1498
- );
1499
- }
1500
- }
1501
- const warnInvalidSource = (s) => {
1502
- warn(
1503
- `Invalid watch source: `,
1504
- s,
1505
- `A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.`
1506
- );
1507
- };
1508
- const instance = getCurrentScope() === ((_a = currentInstance) == null ? void 0 : _a.scope) ? currentInstance : null;
1509
- let getter;
1510
- let forceTrigger = false;
1511
- let isMultiSource = false;
1512
- if (isRef(source)) {
1513
- getter = () => source.value;
1514
- forceTrigger = isShallow$1(source);
1515
- } else if (isReactive(source)) {
1516
- getter = () => source;
1517
- deep = true;
1518
- } else if (isArray(source)) {
1519
- isMultiSource = true;
1520
- forceTrigger = source.some((s) => isReactive(s) || isShallow$1(s));
1521
- getter = () => source.map((s) => {
1522
- if (isRef(s)) {
1523
- return s.value;
1524
- } else if (isReactive(s)) {
1525
- return traverse(s);
1526
- } else if (isFunction(s)) {
1527
- return callWithErrorHandling(s, instance, 2);
1528
- } else {
1529
- !!(process.env.NODE_ENV !== "production") && warnInvalidSource(s);
1530
- }
1531
- });
1532
- } else if (isFunction(source)) {
1533
- if (cb) {
1534
- getter = () => callWithErrorHandling(source, instance, 2);
1535
- } else {
1536
- getter = () => {
1537
- if (instance && instance.isUnmounted) {
1538
- return;
1539
- }
1540
- if (cleanup) {
1541
- cleanup();
1542
- }
1543
- return callWithAsyncErrorHandling(
1544
- source,
1545
- instance,
1546
- 3,
1547
- [onCleanup]
1548
- );
1549
- };
1550
- }
1551
- } else {
1552
- getter = NOOP;
1553
- !!(process.env.NODE_ENV !== "production") && warnInvalidSource(source);
1554
- }
1555
- if (cb && deep) {
1556
- const baseGetter = getter;
1557
- getter = () => traverse(baseGetter());
1558
- }
1559
- let cleanup;
1560
- let onCleanup = (fn) => {
1561
- cleanup = effect.onStop = () => {
1562
- callWithErrorHandling(fn, instance, 4);
1563
- };
1564
- };
1565
- let oldValue = isMultiSource ? new Array(source.length).fill(INITIAL_WATCHER_VALUE) : INITIAL_WATCHER_VALUE;
1566
- const job = () => {
1567
- if (!effect.active) {
1568
- return;
1569
- }
1570
- if (cb) {
1571
- const newValue = effect.run();
1572
- if (deep || forceTrigger || (isMultiSource ? newValue.some(
1573
- (v, i) => hasChanged(v, oldValue[i])
1574
- ) : hasChanged(newValue, oldValue)) || false) {
1575
- if (cleanup) {
1576
- cleanup();
1577
- }
1578
- callWithAsyncErrorHandling(cb, instance, 3, [
1579
- newValue,
1580
- // pass undefined as the old value when it's changed for the first time
1581
- oldValue === INITIAL_WATCHER_VALUE ? void 0 : isMultiSource && oldValue[0] === INITIAL_WATCHER_VALUE ? [] : oldValue,
1582
- onCleanup
1583
- ]);
1584
- oldValue = newValue;
1585
- }
1586
- } else {
1587
- effect.run();
1588
- }
1589
- };
1590
- job.allowRecurse = !!cb;
1591
- let scheduler;
1592
- if (flush === "sync") {
1593
- scheduler = job;
1594
- } else if (flush === "post") {
1595
- scheduler = () => queuePostRenderEffect(job, instance && instance.suspense);
1596
- } else {
1597
- job.pre = true;
1598
- if (instance)
1599
- job.id = instance.uid;
1600
- scheduler = () => queueJob(job);
1601
- }
1602
- const effect = new ReactiveEffect(getter, scheduler);
1603
- if (!!(process.env.NODE_ENV !== "production")) {
1604
- effect.onTrack = onTrack;
1605
- effect.onTrigger = onTrigger;
1606
- }
1607
- if (cb) {
1608
- if (immediate) {
1609
- job();
1610
- } else {
1611
- oldValue = effect.run();
1612
- }
1613
- } else if (flush === "post") {
1614
- queuePostRenderEffect(
1615
- effect.run.bind(effect),
1616
- instance && instance.suspense
1617
- );
1618
- } else {
1619
- effect.run();
1620
- }
1621
- const unwatch = () => {
1622
- effect.stop();
1623
- if (instance && instance.scope) {
1624
- remove(instance.scope.effects, effect);
1625
- }
1626
- };
1627
- return unwatch;
1628
- }
1629
- function instanceWatch(source, value, options) {
1630
- const publicThis = this.proxy;
1631
- const getter = isString(source) ? source.includes(".") ? createPathGetter(publicThis, source) : () => publicThis[source] : source.bind(publicThis, publicThis);
1632
- let cb;
1633
- if (isFunction(value)) {
1634
- cb = value;
1635
- } else {
1636
- cb = value.handler;
1637
- options = value;
1638
- }
1639
- const cur = currentInstance;
1640
- setCurrentInstance(this);
1641
- const res = doWatch(getter, cb.bind(publicThis), options);
1642
- if (cur) {
1643
- setCurrentInstance(cur);
1644
- } else {
1645
- unsetCurrentInstance();
1646
- }
1647
- return res;
1648
- }
1649
- function createPathGetter(ctx, path) {
1650
- const segments = path.split(".");
1651
- return () => {
1652
- let cur = ctx;
1653
- for (let i = 0; i < segments.length && cur; i++) {
1654
- cur = cur[segments[i]];
1655
- }
1656
- return cur;
1657
- };
1658
- }
1659
- function traverse(value, seen) {
1660
- if (!isObject(value) || value["__v_skip"]) {
1661
- return value;
1662
- }
1663
- seen = seen || /* @__PURE__ */ new Set();
1664
- if (seen.has(value)) {
1665
- return value;
1666
- }
1667
- seen.add(value);
1668
- if (isRef(value)) {
1669
- traverse(value.value, seen);
1670
- } else if (isArray(value)) {
1671
- for (let i = 0; i < value.length; i++) {
1672
- traverse(value[i], seen);
1673
- }
1674
- } else if (isSet(value) || isMap(value)) {
1675
- value.forEach((v) => {
1676
- traverse(v, seen);
1677
- });
1678
- } else if (isPlainObject(value)) {
1679
- for (const key in value) {
1680
- traverse(value[key], seen);
1681
- }
1682
- }
1683
- return value;
1684
- }
1685
-
1686
- function defineComponent(options, extraOptions) {
1687
- return isFunction(options) ? (
1688
- // #8326: extend call and options.name access are considered side-effects
1689
- // by Rollup, so we have to wrap it in a pure-annotated IIFE.
1690
- /* @__PURE__ */ (() => extend({ name: options.name }, extraOptions, { setup: options }))()
1691
- ) : options;
1692
- }
1693
- const NULL_DYNAMIC_COMPONENT = Symbol.for("v-ndc");
8
+ /* eslint-disable */
9
+ const VertexSceneTree = /*@__PURE__*/ runtime.defineContainer('vertex-scene-tree', undefined, [
10
+ 'overScanCount',
11
+ 'viewerSelector',
12
+ 'viewer',
13
+ 'rowData',
14
+ 'config',
15
+ 'configEnv',
16
+ 'controller',
17
+ 'searchOptions',
18
+ 'metadataSearchExactMatch',
19
+ 'metadataSearchKeys',
20
+ 'metadataKeys',
21
+ 'operationAnimationDuration',
22
+ 'connectionError',
23
+ 'firstRowRendered'
24
+ ], [
25
+ 'connectionError',
26
+ 'firstRowRendered'
27
+ ]);
28
+ const VertexSceneTreeNotificationBanner = /*@__PURE__*/ runtime.defineContainer('vertex-scene-tree-notification-banner', undefined, [
29
+ 'message',
30
+ 'actionLabel',
31
+ 'action'
32
+ ], [
33
+ 'action'
34
+ ]);
35
+ const VertexSceneTreeSearch = /*@__PURE__*/ runtime.defineContainer('vertex-scene-tree-search', undefined, [
36
+ 'debounce',
37
+ 'disabled',
38
+ 'placeholder',
39
+ 'controller',
40
+ 'value',
41
+ 'search',
42
+ 'searchCompleted'
43
+ ], [
44
+ 'search',
45
+ 'searchCompleted'
46
+ ]);
47
+ const VertexSceneTreeTableCell = /*@__PURE__*/ runtime.defineContainer('vertex-scene-tree-table-cell', undefined, [
48
+ 'node',
49
+ 'tree',
50
+ 'value',
51
+ 'placeholder',
52
+ 'alwaysShowIcons',
53
+ 'hovered',
54
+ 'isScrolling',
55
+ 'expandToggle',
56
+ 'endItemIndicator',
57
+ 'visibilityToggle',
58
+ 'isolateButton',
59
+ 'selectionHandler',
60
+ 'visibilityHandler',
61
+ 'expansionHandler',
62
+ 'isolateHandler',
63
+ 'hoverController',
64
+ 'expandToggled',
65
+ 'visibilityToggled',
66
+ 'selectionToggled',
67
+ 'isolatePressed',
68
+ 'cellLoaded'
69
+ ], [
70
+ 'expandToggled',
71
+ 'visibilityToggled',
72
+ 'selectionToggled',
73
+ 'isolatePressed',
74
+ 'cellLoaded'
75
+ ]);
76
+ const VertexSceneTreeTableColumn = /*@__PURE__*/ runtime.defineContainer('vertex-scene-tree-table-column', undefined, [
77
+ 'initialWidth',
78
+ 'minWidth',
79
+ 'maxWidth'
80
+ ]);
81
+ const VertexSceneTreeTableHeader = /*@__PURE__*/ runtime.defineContainer('vertex-scene-tree-table-header', undefined);
82
+ const VertexSceneTreeTableLayout = /*@__PURE__*/ runtime.defineContainer('vertex-scene-tree-table-layout', undefined, [
83
+ 'tree',
84
+ 'controller',
85
+ 'rows',
86
+ 'totalRows',
87
+ 'rowHeight',
88
+ 'overScanCount',
89
+ 'rowData',
90
+ 'layoutOffset',
91
+ 'scrollOffset',
92
+ 'layoutHeight',
93
+ 'layoutWidth',
94
+ 'viewportStartIndex',
95
+ 'viewportEndIndex',
96
+ 'layoutRendered',
97
+ 'columnsResized'
98
+ ], [
99
+ 'layoutRendered',
100
+ 'columnsResized'
101
+ ]);
102
+ const VertexSceneTreeTableResizeDivider = /*@__PURE__*/ runtime.defineContainer('vertex-scene-tree-table-resize-divider', undefined);
103
+ const VertexSceneTreeToolbar = /*@__PURE__*/ runtime.defineContainer('vertex-scene-tree-toolbar', undefined);
104
+ const VertexSceneTreeToolbarGroup = /*@__PURE__*/ runtime.defineContainer('vertex-scene-tree-toolbar-group', undefined);
105
+ const VertexViewer = /*@__PURE__*/ runtime.defineContainer('vertex-viewer', undefined, [
106
+ 'src',
107
+ 'clientId',
108
+ 'deviceId',
109
+ 'config',
110
+ 'configEnv',
111
+ 'resolvedConfig',
112
+ 'cameraControls',
113
+ 'cameraType',
114
+ 'keyboardControls',
115
+ 'rotateAroundTapPoint',
116
+ 'token',
117
+ 'depthBuffers',
118
+ 'phantom',
119
+ 'noDefaultLights',
120
+ 'enableTemporalRefinement',
121
+ 'experimentalRenderingOptions',
122
+ 'featureLines',
123
+ 'selectionHighlighting',
124
+ 'featureHighlighting',
125
+ 'sceneComparison',
126
+ 'crossSectioning',
127
+ 'featureMaps',
128
+ 'resizeDebounce',
129
+ 'frame',
130
+ 'stream',
131
+ 'stencilBuffer',
132
+ 'viewport',
133
+ 'annotations',
134
+ 'modelViews',
135
+ 'pmi',
136
+ 'sceneItems',
137
+ 'canvases',
138
+ 'experimentalSkipVisibilityCheck',
139
+ 'tap',
140
+ 'doubletap',
141
+ 'longpress',
142
+ 'frameReceived',
143
+ 'frameDrawn',
144
+ 'tokenExpired',
145
+ 'connectionChange',
146
+ 'sceneReady',
147
+ 'sceneChanged',
148
+ 'interactionStarted',
149
+ 'interactionFinished',
150
+ 'cameraTypeChanged',
151
+ 'annotationStateChanged',
152
+ 'deviceIdChange',
153
+ 'dimensionschange'
154
+ ], [
155
+ 'tap',
156
+ 'doubletap',
157
+ 'longpress',
158
+ 'frameReceived',
159
+ 'frameDrawn',
160
+ 'tokenExpired',
161
+ 'connectionChange',
162
+ 'sceneReady',
163
+ 'sceneChanged',
164
+ 'interactionStarted',
165
+ 'interactionFinished',
166
+ 'cameraTypeChanged',
167
+ 'annotationStateChanged',
168
+ 'deviceIdChange',
169
+ 'dimensionschange'
170
+ ]);
171
+ const VertexViewerAnnotationCallout = /*@__PURE__*/ runtime.defineContainer('vertex-viewer-annotation-callout', undefined, [
172
+ 'data',
173
+ 'iconSize'
174
+ ]);
175
+ const VertexViewerBoxQueryTool = /*@__PURE__*/ runtime.defineContainer('vertex-viewer-box-query-tool', undefined, [
176
+ 'viewer',
177
+ 'controller',
178
+ 'model',
179
+ 'operationType',
180
+ 'mode',
181
+ 'controllerChanged'
182
+ ], [
183
+ 'controllerChanged'
184
+ ]);
185
+ const VertexViewerButton = /*@__PURE__*/ runtime.defineContainer('vertex-viewer-button', undefined);
186
+ const VertexViewerDefaultToolbar = /*@__PURE__*/ runtime.defineContainer('vertex-viewer-default-toolbar', undefined, [
187
+ 'viewer',
188
+ 'placement',
189
+ 'direction',
190
+ 'animationsDisabled',
191
+ 'animationMs'
192
+ ]);
193
+ const VertexViewerDomElement = /*@__PURE__*/ runtime.defineContainer('vertex-viewer-dom-element', undefined, [
194
+ 'position',
195
+ 'positionJson',
196
+ 'rotation',
197
+ 'rotationJson',
198
+ 'quaternion',
199
+ 'quaternionJson',
200
+ 'scale',
201
+ 'scaleJson',
202
+ 'matrix',
203
+ 'occlusionOff',
204
+ 'occluded',
205
+ 'detachedOff',
206
+ 'detached',
207
+ 'billboardOff',
208
+ 'interactionsOff',
209
+ 'occlusionStateChanged',
210
+ 'detachedStateChanged',
211
+ 'propertyChange'
212
+ ], [
213
+ 'occlusionStateChanged',
214
+ 'detachedStateChanged',
215
+ 'propertyChange'
216
+ ]);
217
+ const VertexViewerDomGroup = /*@__PURE__*/ runtime.defineContainer('vertex-viewer-dom-group', undefined, [
218
+ 'position',
219
+ 'positionJson',
220
+ 'rotation',
221
+ 'rotationJson',
222
+ 'quaternion',
223
+ 'quaternionJson',
224
+ 'scale',
225
+ 'scaleJson',
226
+ 'matrix',
227
+ 'propertyChange'
228
+ ], [
229
+ 'propertyChange'
230
+ ]);
231
+ const VertexViewerDomRenderer = /*@__PURE__*/ runtime.defineContainer('vertex-viewer-dom-renderer', undefined, [
232
+ 'drawMode',
233
+ 'propagateEventsToViewer',
234
+ 'viewer',
235
+ 'camera',
236
+ 'depthBuffer'
237
+ ]);
238
+ const VertexViewerHitResultIndicator = /*@__PURE__*/ runtime.defineContainer('vertex-viewer-hit-result-indicator', undefined, [
239
+ 'viewer',
240
+ 'position',
241
+ 'normal'
242
+ ]);
243
+ const VertexViewerIcon = /*@__PURE__*/ runtime.defineContainer('vertex-viewer-icon', undefined, [
244
+ 'name',
245
+ 'size'
246
+ ]);
247
+ const VertexViewerLayer = /*@__PURE__*/ runtime.defineContainer('vertex-viewer-layer', undefined, [
248
+ 'stretchOff'
249
+ ]);
250
+ const VertexViewerMarkup = /*@__PURE__*/ runtime.defineContainer('vertex-viewer-markup', undefined, [
251
+ 'arrowTemplateId',
252
+ 'circleTemplateId',
253
+ 'freeformTemplateId',
254
+ 'tool',
255
+ 'disabled',
256
+ 'viewer',
257
+ 'selectedMarkupId',
258
+ 'selectNew',
259
+ 'startLineAnchorStyle',
260
+ 'endLineAnchorStyle',
261
+ 'originatingViewport',
262
+ 'centeringBehavior',
263
+ 'offset',
264
+ 'scale',
265
+ 'markupAdded',
266
+ 'markupChanged',
267
+ 'markupRemoved',
268
+ 'markupSelectionChanged'
269
+ ], [
270
+ 'markupAdded',
271
+ 'markupChanged',
272
+ 'markupRemoved',
273
+ 'markupSelectionChanged'
274
+ ]);
275
+ const VertexViewerMarkupArrow = /*@__PURE__*/ runtime.defineContainer('vertex-viewer-markup-arrow', undefined, [
276
+ 'start',
277
+ 'startJson',
278
+ 'end',
279
+ 'endJson',
280
+ 'originatingViewport',
281
+ 'centeringBehavior',
282
+ 'offset',
283
+ 'scale',
284
+ 'startLineAnchorStyle',
285
+ 'endLineAnchorStyle',
286
+ 'mode',
287
+ 'viewer',
288
+ 'interactionBegin',
289
+ 'interactionEnd',
290
+ 'viewRendered'
291
+ ], [
292
+ 'interactionBegin',
293
+ 'interactionEnd',
294
+ 'viewRendered'
295
+ ]);
296
+ const VertexViewerMarkupCircle = /*@__PURE__*/ runtime.defineContainer('vertex-viewer-markup-circle', undefined, [
297
+ 'bounds',
298
+ 'boundsJson',
299
+ 'mode',
300
+ 'viewer',
301
+ 'originatingViewport',
302
+ 'centeringBehavior',
303
+ 'offset',
304
+ 'scale',
305
+ 'interactionBegin',
306
+ 'interactionEnd',
307
+ 'viewRendered'
308
+ ], [
309
+ 'interactionBegin',
310
+ 'interactionEnd',
311
+ 'viewRendered'
312
+ ]);
313
+ const VertexViewerMarkupFreeform = /*@__PURE__*/ runtime.defineContainer('vertex-viewer-markup-freeform', undefined, [
314
+ 'points',
315
+ 'pointsJson',
316
+ 'bounds',
317
+ 'boundsJson',
318
+ 'mode',
319
+ 'viewer',
320
+ 'originatingViewport',
321
+ 'centeringBehavior',
322
+ 'offset',
323
+ 'scale',
324
+ 'interactionBegin',
325
+ 'interactionEnd',
326
+ 'viewRendered'
327
+ ], [
328
+ 'interactionBegin',
329
+ 'interactionEnd',
330
+ 'viewRendered'
331
+ ]);
332
+ const VertexViewerMarkupTool = /*@__PURE__*/ runtime.defineContainer('vertex-viewer-markup-tool', undefined, [
333
+ 'arrowTemplateId',
334
+ 'circleTemplateId',
335
+ 'freeformTemplateId',
336
+ 'tool',
337
+ 'disabled',
338
+ 'viewer',
339
+ 'startLineAnchorStyle',
340
+ 'endLineAnchorStyle',
341
+ 'originatingViewport',
342
+ 'centeringBehavior',
343
+ 'offset',
344
+ 'scale',
345
+ 'markupBegin',
346
+ 'markupEnd'
347
+ ], [
348
+ 'markupBegin',
349
+ 'markupEnd'
350
+ ]);
351
+ const VertexViewerMeasurementDetails = /*@__PURE__*/ runtime.defineContainer('vertex-viewer-measurement-details', undefined, [
352
+ 'measurementModel',
353
+ 'measurementOverlays',
354
+ 'measurementOutcome',
355
+ 'distanceUnits',
356
+ 'angleUnits',
357
+ 'fractionalDigits',
358
+ 'distanceFormatter',
359
+ 'angleFormatter',
360
+ 'areaFormatter',
361
+ 'resultTypes'
362
+ ]);
363
+ const VertexViewerMeasurementDistance = /*@__PURE__*/ runtime.defineContainer('vertex-viewer-measurement-distance', undefined, [
364
+ 'start',
365
+ 'startJson',
366
+ 'end',
367
+ 'endJson',
368
+ 'distance',
369
+ 'showAxisReferenceLines',
370
+ 'snapDistance',
371
+ 'units',
372
+ 'fractionalDigits',
373
+ 'labelFormatter',
374
+ 'anchorLabelOffset',
375
+ 'lineCapLength',
376
+ 'mode',
377
+ 'interactingAnchor',
378
+ 'invalid',
379
+ 'camera',
380
+ 'hitProvider',
381
+ 'indicatorPt',
382
+ 'viewer',
383
+ 'measurementModel',
384
+ 'editBegin',
385
+ 'editEnd'
386
+ ], [
387
+ 'editBegin',
388
+ 'editEnd'
389
+ ]);
390
+ const VertexViewerMeasurementLine = /*@__PURE__*/ runtime.defineContainer('vertex-viewer-measurement-line', undefined, [
391
+ 'start',
392
+ 'end',
393
+ 'capLength',
394
+ 'pointerEvents'
395
+ ]);
396
+ const VertexViewerMeasurementOverlays = /*@__PURE__*/ runtime.defineContainer('vertex-viewer-measurement-overlays', undefined, [
397
+ 'measurementOverlays',
398
+ 'camera',
399
+ 'viewer'
400
+ ]);
401
+ const VertexViewerMeasurementPrecise = /*@__PURE__*/ runtime.defineContainer('vertex-viewer-measurement-precise', undefined, [
402
+ 'measurementModel',
403
+ 'measurementOverlays',
404
+ 'measurementController',
405
+ 'measurableEntityTypes',
406
+ 'viewer',
407
+ 'configEnv',
408
+ 'config'
409
+ ]);
410
+ const VertexViewerPinGroup = /*@__PURE__*/ runtime.defineContainer('vertex-viewer-pin-group', undefined, [
411
+ 'pin',
412
+ 'matrix',
413
+ 'projectionViewMatrix',
414
+ 'elementBounds',
415
+ 'pinModel',
416
+ 'pinController',
417
+ 'selected',
418
+ 'occluded',
419
+ 'detached'
420
+ ]);
421
+ const VertexViewerPinLabel = /*@__PURE__*/ runtime.defineContainer('vertex-viewer-pin-label', undefined, [
422
+ 'pin',
423
+ 'elementBounds',
424
+ 'value',
425
+ 'pinController',
426
+ 'labelChanged',
427
+ 'labelFocused',
428
+ 'labelBlurred'
429
+ ], [
430
+ 'labelChanged',
431
+ 'labelFocused',
432
+ 'labelBlurred'
433
+ ]);
434
+ const VertexViewerPinLabelLine = /*@__PURE__*/ runtime.defineContainer('vertex-viewer-pin-label-line', undefined, [
435
+ 'pinPoint',
436
+ 'labelPoint',
437
+ 'pin'
438
+ ]);
439
+ const VertexViewerPinTool = /*@__PURE__*/ runtime.defineContainer('vertex-viewer-pin-tool', undefined, [
440
+ 'pinController',
441
+ 'pinModel',
442
+ 'viewer',
443
+ 'tool',
444
+ 'mode',
445
+ 'primaryColor',
446
+ 'accentColor'
447
+ ]);
448
+ const VertexViewerSpinner = /*@__PURE__*/ runtime.defineContainer('vertex-viewer-spinner', undefined, [
449
+ 'size'
450
+ ]);
451
+ const VertexViewerTeleportTool = /*@__PURE__*/ runtime.defineContainer('vertex-viewer-teleport-tool', undefined, [
452
+ 'viewer',
453
+ 'mode',
454
+ 'animationsDisabled',
455
+ 'animationMs',
456
+ 'controller',
457
+ 'model',
458
+ 'controllerChanged'
459
+ ], [
460
+ 'controllerChanged'
461
+ ]);
462
+ const VertexViewerToolbar = /*@__PURE__*/ runtime.defineContainer('vertex-viewer-toolbar', undefined, [
463
+ 'placement',
464
+ 'direction'
465
+ ]);
466
+ const VertexViewerToolbarGroup = /*@__PURE__*/ runtime.defineContainer('vertex-viewer-toolbar-group', undefined, [
467
+ 'direction'
468
+ ]);
469
+ const VertexViewerTransformWidget = /*@__PURE__*/ runtime.defineContainer('vertex-viewer-transform-widget', undefined, [
470
+ 'viewer',
471
+ 'position',
472
+ 'rotation',
473
+ 'controller',
474
+ 'xRotationDisabled',
475
+ 'yRotationDisabled',
476
+ 'zRotationDisabled',
477
+ 'xTranslationDisabled',
478
+ 'yTranslationDisabled',
479
+ 'zTranslationDisabled',
480
+ 'xyTranslationDisabled',
481
+ 'xzTranslationDisabled',
482
+ 'yzTranslationDisabled',
483
+ 'showInputs',
484
+ 'distanceUnit',
485
+ 'angleUnit',
486
+ 'decimalPlaces',
487
+ 'rotationSnapDegrees',
488
+ 'rotationSnapKey',
489
+ 'translationHandleScalar',
490
+ 'rotationHandleScalar',
491
+ 'interactionThrottle',
492
+ 'EXPERIMENTAL_undoKeybindings',
493
+ 'hovered',
494
+ 'positionChanged',
495
+ 'rotationChanged',
496
+ 'interactionEnded',
497
+ 'interactionStarted'
498
+ ], [
499
+ 'positionChanged',
500
+ 'rotationChanged',
501
+ 'interactionEnded',
502
+ 'interactionStarted'
503
+ ]);
504
+ const VertexViewerViewCube = /*@__PURE__*/ runtime.defineContainer('vertex-viewer-view-cube', undefined, [
505
+ 'xPositiveLabel',
506
+ 'xNegativeLabel',
507
+ 'yPositiveLabel',
508
+ 'yNegativeLabel',
509
+ 'zPositiveLabel',
510
+ 'zNegativeLabel',
511
+ 'standardViewsOff',
512
+ 'viewAll',
513
+ 'animationDuration',
514
+ 'triadOff',
515
+ 'worldOrientation',
516
+ 'camera',
517
+ 'viewer'
518
+ ]);
519
+ const VertexViewerWalkModeTool = /*@__PURE__*/ runtime.defineContainer('vertex-viewer-walk-mode-tool', undefined, [
520
+ 'viewer',
521
+ 'controller',
522
+ 'model',
523
+ 'teleportMode',
524
+ 'enabled',
525
+ 'controllerChanged'
526
+ ], [
527
+ 'controllerChanged'
528
+ ]);
1694
529
 
1695
- const getPublicInstance = (i) => {
1696
- if (!i)
1697
- return null;
1698
- if (isStatefulComponent(i))
1699
- return getExposeProxy(i) || i.proxy;
1700
- return getPublicInstance(i.parent);
1701
- };
1702
- const publicPropertiesMap = (
1703
- // Move PURE marker to new line to workaround compiler discarding it
1704
- // due to type annotation
1705
- /* @__PURE__ */ extend(/* @__PURE__ */ Object.create(null), {
1706
- $: (i) => i,
1707
- $el: (i) => i.vnode.el,
1708
- $data: (i) => i.data,
1709
- $props: (i) => !!(process.env.NODE_ENV !== "production") ? shallowReadonly(i.props) : i.props,
1710
- $attrs: (i) => !!(process.env.NODE_ENV !== "production") ? shallowReadonly(i.attrs) : i.attrs,
1711
- $slots: (i) => !!(process.env.NODE_ENV !== "production") ? shallowReadonly(i.slots) : i.slots,
1712
- $refs: (i) => !!(process.env.NODE_ENV !== "production") ? shallowReadonly(i.refs) : i.refs,
1713
- $parent: (i) => getPublicInstance(i.parent),
1714
- $root: (i) => getPublicInstance(i.root),
1715
- $emit: (i) => i.emit,
1716
- $options: (i) => __VUE_OPTIONS_API__ ? resolveMergedOptions(i) : i.type,
1717
- $forceUpdate: (i) => i.f || (i.f = () => queueJob(i.update)),
1718
- $nextTick: (i) => i.n || (i.n = nextTick.bind(i.proxy)),
1719
- $watch: (i) => __VUE_OPTIONS_API__ ? instanceWatch.bind(i) : NOOP
1720
- })
1721
- );
1722
- const isReservedPrefix = (key) => key === "_" || key === "$";
1723
- const hasSetupBinding = (state, key) => state !== EMPTY_OBJ && !state.__isScriptSetup && hasOwn(state, key);
1724
- const PublicInstanceProxyHandlers = {
1725
- get({ _: instance }, key) {
1726
- const { ctx, setupState, data, props, accessCache, type, appContext } = instance;
1727
- if (!!(process.env.NODE_ENV !== "production") && key === "__isVue") {
1728
- return true;
1729
- }
1730
- let normalizedProps;
1731
- if (key[0] !== "$") {
1732
- const n = accessCache[key];
1733
- if (n !== void 0) {
1734
- switch (n) {
1735
- case 1 /* SETUP */:
1736
- return setupState[key];
1737
- case 2 /* DATA */:
1738
- return data[key];
1739
- case 4 /* CONTEXT */:
1740
- return ctx[key];
1741
- case 3 /* PROPS */:
1742
- return props[key];
1743
- }
1744
- } else if (hasSetupBinding(setupState, key)) {
1745
- accessCache[key] = 1 /* SETUP */;
1746
- return setupState[key];
1747
- } else if (data !== EMPTY_OBJ && hasOwn(data, key)) {
1748
- accessCache[key] = 2 /* DATA */;
1749
- return data[key];
1750
- } else if (
1751
- // only cache other properties when instance has declared (thus stable)
1752
- // props
1753
- (normalizedProps = instance.propsOptions[0]) && hasOwn(normalizedProps, key)
1754
- ) {
1755
- accessCache[key] = 3 /* PROPS */;
1756
- return props[key];
1757
- } else if (ctx !== EMPTY_OBJ && hasOwn(ctx, key)) {
1758
- accessCache[key] = 4 /* CONTEXT */;
1759
- return ctx[key];
1760
- } else if (!__VUE_OPTIONS_API__ || shouldCacheAccess) {
1761
- accessCache[key] = 0 /* OTHER */;
1762
- }
1763
- }
1764
- const publicGetter = publicPropertiesMap[key];
1765
- let cssModule, globalProperties;
1766
- if (publicGetter) {
1767
- if (key === "$attrs") {
1768
- track(instance, "get", key);
1769
- !!(process.env.NODE_ENV !== "production") && markAttrsAccessed();
1770
- } else if (!!(process.env.NODE_ENV !== "production") && key === "$slots") {
1771
- track(instance, "get", key);
1772
- }
1773
- return publicGetter(instance);
1774
- } else if (
1775
- // css module (injected by vue-loader)
1776
- (cssModule = type.__cssModules) && (cssModule = cssModule[key])
1777
- ) {
1778
- return cssModule;
1779
- } else if (ctx !== EMPTY_OBJ && hasOwn(ctx, key)) {
1780
- accessCache[key] = 4 /* CONTEXT */;
1781
- return ctx[key];
1782
- } else if (
1783
- // global properties
1784
- globalProperties = appContext.config.globalProperties, hasOwn(globalProperties, key)
1785
- ) {
1786
- {
1787
- return globalProperties[key];
1788
- }
1789
- } else if (!!(process.env.NODE_ENV !== "production") && currentRenderingInstance && (!isString(key) || // #1091 avoid internal isRef/isVNode checks on component instance leading
1790
- // to infinite warning loop
1791
- key.indexOf("__v") !== 0)) {
1792
- if (data !== EMPTY_OBJ && isReservedPrefix(key[0]) && hasOwn(data, key)) {
1793
- warn(
1794
- `Property ${JSON.stringify(
1795
- key
1796
- )} must be accessed via $data because it starts with a reserved character ("$" or "_") and is not proxied on the render context.`
1797
- );
1798
- } else if (instance === currentRenderingInstance) {
1799
- warn(
1800
- `Property ${JSON.stringify(key)} was accessed during render but is not defined on instance.`
1801
- );
1802
- }
1803
- }
1804
- },
1805
- set({ _: instance }, key, value) {
1806
- const { data, setupState, ctx } = instance;
1807
- if (hasSetupBinding(setupState, key)) {
1808
- setupState[key] = value;
1809
- return true;
1810
- } else if (!!(process.env.NODE_ENV !== "production") && setupState.__isScriptSetup && hasOwn(setupState, key)) {
1811
- warn(`Cannot mutate <script setup> binding "${key}" from Options API.`);
1812
- return false;
1813
- } else if (data !== EMPTY_OBJ && hasOwn(data, key)) {
1814
- data[key] = value;
1815
- return true;
1816
- } else if (hasOwn(instance.props, key)) {
1817
- !!(process.env.NODE_ENV !== "production") && warn(`Attempting to mutate prop "${key}". Props are readonly.`);
1818
- return false;
1819
- }
1820
- if (key[0] === "$" && key.slice(1) in instance) {
1821
- !!(process.env.NODE_ENV !== "production") && warn(
1822
- `Attempting to mutate public property "${key}". Properties starting with $ are reserved and readonly.`
1823
- );
1824
- return false;
1825
- } else {
1826
- if (!!(process.env.NODE_ENV !== "production") && key in instance.appContext.config.globalProperties) {
1827
- Object.defineProperty(ctx, key, {
1828
- enumerable: true,
1829
- configurable: true,
1830
- value
530
+ const VertexViewerPlugin = {
531
+ async install() {
532
+ loader.applyPolyfills().then(() => {
533
+ loader.defineCustomElements();
1831
534
  });
1832
- } else {
1833
- ctx[key] = value;
1834
- }
1835
- }
1836
- return true;
1837
- },
1838
- has({
1839
- _: { data, setupState, accessCache, ctx, appContext, propsOptions }
1840
- }, key) {
1841
- let normalizedProps;
1842
- return !!accessCache[key] || data !== EMPTY_OBJ && hasOwn(data, key) || hasSetupBinding(setupState, key) || (normalizedProps = propsOptions[0]) && hasOwn(normalizedProps, key) || hasOwn(ctx, key) || hasOwn(publicPropertiesMap, key) || hasOwn(appContext.config.globalProperties, key);
1843
- },
1844
- defineProperty(target, key, descriptor) {
1845
- if (descriptor.get != null) {
1846
- target._.accessCache[key] = 0;
1847
- } else if (hasOwn(descriptor, "value")) {
1848
- this.set(target, key, descriptor.value, null);
1849
- }
1850
- return Reflect.defineProperty(target, key, descriptor);
1851
- }
1852
- };
1853
- if (!!(process.env.NODE_ENV !== "production") && true) {
1854
- PublicInstanceProxyHandlers.ownKeys = (target) => {
1855
- warn(
1856
- `Avoid app logic that relies on enumerating keys on a component instance. The keys will be empty in production mode to avoid performance overhead.`
1857
- );
1858
- return Reflect.ownKeys(target);
1859
- };
1860
- }
1861
- function normalizePropsOrEmits(props) {
1862
- return isArray(props) ? props.reduce(
1863
- (normalized, p) => (normalized[p] = null, normalized),
1864
- {}
1865
- ) : props;
1866
- }
1867
- let shouldCacheAccess = true;
1868
- function resolveMergedOptions(instance) {
1869
- const base = instance.type;
1870
- const { mixins, extends: extendsOptions } = base;
1871
- const {
1872
- mixins: globalMixins,
1873
- optionsCache: cache,
1874
- config: { optionMergeStrategies }
1875
- } = instance.appContext;
1876
- const cached = cache.get(base);
1877
- let resolved;
1878
- if (cached) {
1879
- resolved = cached;
1880
- } else if (!globalMixins.length && !mixins && !extendsOptions) {
1881
- {
1882
- resolved = base;
1883
- }
1884
- } else {
1885
- resolved = {};
1886
- if (globalMixins.length) {
1887
- globalMixins.forEach(
1888
- (m) => mergeOptions(resolved, m, optionMergeStrategies, true)
1889
- );
1890
- }
1891
- mergeOptions(resolved, base, optionMergeStrategies);
1892
- }
1893
- if (isObject(base)) {
1894
- cache.set(base, resolved);
1895
- }
1896
- return resolved;
1897
- }
1898
- function mergeOptions(to, from, strats, asMixin = false) {
1899
- const { mixins, extends: extendsOptions } = from;
1900
- if (extendsOptions) {
1901
- mergeOptions(to, extendsOptions, strats, true);
1902
- }
1903
- if (mixins) {
1904
- mixins.forEach(
1905
- (m) => mergeOptions(to, m, strats, true)
1906
- );
1907
- }
1908
- for (const key in from) {
1909
- if (asMixin && key === "expose") {
1910
- !!(process.env.NODE_ENV !== "production") && warn(
1911
- `"expose" option is ignored when declared in mixins or extends. It should only be declared in the base component itself.`
1912
- );
1913
- } else {
1914
- const strat = internalOptionMergeStrats[key] || strats && strats[key];
1915
- to[key] = strat ? strat(to[key], from[key]) : from[key];
1916
- }
1917
- }
1918
- return to;
1919
- }
1920
- const internalOptionMergeStrats = {
1921
- data: mergeDataFn,
1922
- props: mergeEmitsOrPropsOptions,
1923
- emits: mergeEmitsOrPropsOptions,
1924
- // objects
1925
- methods: mergeObjectOptions,
1926
- computed: mergeObjectOptions,
1927
- // lifecycle
1928
- beforeCreate: mergeAsArray,
1929
- created: mergeAsArray,
1930
- beforeMount: mergeAsArray,
1931
- mounted: mergeAsArray,
1932
- beforeUpdate: mergeAsArray,
1933
- updated: mergeAsArray,
1934
- beforeDestroy: mergeAsArray,
1935
- beforeUnmount: mergeAsArray,
1936
- destroyed: mergeAsArray,
1937
- unmounted: mergeAsArray,
1938
- activated: mergeAsArray,
1939
- deactivated: mergeAsArray,
1940
- errorCaptured: mergeAsArray,
1941
- serverPrefetch: mergeAsArray,
1942
- // assets
1943
- components: mergeObjectOptions,
1944
- directives: mergeObjectOptions,
1945
- // watch
1946
- watch: mergeWatchOptions,
1947
- // provide / inject
1948
- provide: mergeDataFn,
1949
- inject: mergeInject
1950
- };
1951
- function mergeDataFn(to, from) {
1952
- if (!from) {
1953
- return to;
1954
- }
1955
- if (!to) {
1956
- return from;
1957
- }
1958
- return function mergedDataFn() {
1959
- return (extend)(
1960
- isFunction(to) ? to.call(this, this) : to,
1961
- isFunction(from) ? from.call(this, this) : from
1962
- );
1963
- };
1964
- }
1965
- function mergeInject(to, from) {
1966
- return mergeObjectOptions(normalizeInject(to), normalizeInject(from));
1967
- }
1968
- function normalizeInject(raw) {
1969
- if (isArray(raw)) {
1970
- const res = {};
1971
- for (let i = 0; i < raw.length; i++) {
1972
- res[raw[i]] = raw[i];
1973
- }
1974
- return res;
1975
- }
1976
- return raw;
1977
- }
1978
- function mergeAsArray(to, from) {
1979
- return to ? [...new Set([].concat(to, from))] : from;
1980
- }
1981
- function mergeObjectOptions(to, from) {
1982
- return to ? extend(/* @__PURE__ */ Object.create(null), to, from) : from;
1983
- }
1984
- function mergeEmitsOrPropsOptions(to, from) {
1985
- if (to) {
1986
- if (isArray(to) && isArray(from)) {
1987
- return [.../* @__PURE__ */ new Set([...to, ...from])];
1988
- }
1989
- return extend(
1990
- /* @__PURE__ */ Object.create(null),
1991
- normalizePropsOrEmits(to),
1992
- normalizePropsOrEmits(from != null ? from : {})
1993
- );
1994
- } else {
1995
- return from;
1996
- }
1997
- }
1998
- function mergeWatchOptions(to, from) {
1999
- if (!to)
2000
- return from;
2001
- if (!from)
2002
- return to;
2003
- const merged = extend(/* @__PURE__ */ Object.create(null), to);
2004
- for (const key in from) {
2005
- merged[key] = mergeAsArray(to[key], from[key]);
2006
- }
2007
- return merged;
2008
- }
2009
-
2010
- function createAppContext() {
2011
- return {
2012
- app: null,
2013
- config: {
2014
- isNativeTag: NO,
2015
- performance: false,
2016
- globalProperties: {},
2017
- optionMergeStrategies: {},
2018
- errorHandler: void 0,
2019
- warnHandler: void 0,
2020
- compilerOptions: {}
2021
- },
2022
- mixins: [],
2023
- components: {},
2024
- directives: {},
2025
- provides: /* @__PURE__ */ Object.create(null),
2026
- optionsCache: /* @__PURE__ */ new WeakMap(),
2027
- propsCache: /* @__PURE__ */ new WeakMap(),
2028
- emitsCache: /* @__PURE__ */ new WeakMap()
2029
- };
2030
- }
2031
- let currentApp = null;
2032
- function inject(key, defaultValue, treatDefaultAsFactory = false) {
2033
- const instance = currentInstance || currentRenderingInstance;
2034
- if (instance || currentApp) {
2035
- const provides = instance ? instance.parent == null ? instance.vnode.appContext && instance.vnode.appContext.provides : instance.parent.provides : currentApp._context.provides;
2036
- if (provides && key in provides) {
2037
- return provides[key];
2038
- } else if (arguments.length > 1) {
2039
- return treatDefaultAsFactory && isFunction(defaultValue) ? defaultValue.call(instance && instance.proxy) : defaultValue;
2040
- } else if (!!(process.env.NODE_ENV !== "production")) {
2041
- warn(`injection "${String(key)}" not found.`);
2042
- }
2043
- } else if (!!(process.env.NODE_ENV !== "production")) {
2044
- warn(`inject() can only be used inside setup() or functional components.`);
2045
- }
2046
- }
2047
-
2048
- const queuePostRenderEffect = queueEffectWithSuspense ;
2049
-
2050
- const isTeleport = (type) => type.__isTeleport;
2051
-
2052
- const Fragment = Symbol.for("v-fgt");
2053
- const Text = Symbol.for("v-txt");
2054
- const Comment = Symbol.for("v-cmt");
2055
- let currentBlock = null;
2056
- function isVNode(value) {
2057
- return value ? value.__v_isVNode === true : false;
2058
- }
2059
- const createVNodeWithArgsTransform = (...args) => {
2060
- return _createVNode(
2061
- ...args
2062
- );
2063
- };
2064
- const InternalObjectKey = `__vInternal`;
2065
- const normalizeKey = ({ key }) => key != null ? key : null;
2066
- const normalizeRef = ({
2067
- ref,
2068
- ref_key,
2069
- ref_for
2070
- }) => {
2071
- if (typeof ref === "number") {
2072
- ref = "" + ref;
2073
- }
2074
- return ref != null ? isString(ref) || isRef(ref) || isFunction(ref) ? { i: currentRenderingInstance, r: ref, k: ref_key, f: !!ref_for } : ref : null;
2075
- };
2076
- function createBaseVNode(type, props = null, children = null, patchFlag = 0, dynamicProps = null, shapeFlag = type === Fragment ? 0 : 1, isBlockNode = false, needFullChildrenNormalization = false) {
2077
- const vnode = {
2078
- __v_isVNode: true,
2079
- __v_skip: true,
2080
- type,
2081
- props,
2082
- key: props && normalizeKey(props),
2083
- ref: props && normalizeRef(props),
2084
- scopeId: currentScopeId,
2085
- slotScopeIds: null,
2086
- children,
2087
- component: null,
2088
- suspense: null,
2089
- ssContent: null,
2090
- ssFallback: null,
2091
- dirs: null,
2092
- transition: null,
2093
- el: null,
2094
- anchor: null,
2095
- target: null,
2096
- targetAnchor: null,
2097
- staticCount: 0,
2098
- shapeFlag,
2099
- patchFlag,
2100
- dynamicProps,
2101
- dynamicChildren: null,
2102
- appContext: null,
2103
- ctx: currentRenderingInstance
2104
- };
2105
- if (needFullChildrenNormalization) {
2106
- normalizeChildren(vnode, children);
2107
- if (shapeFlag & 128) {
2108
- type.normalize(vnode);
2109
- }
2110
- } else if (children) {
2111
- vnode.shapeFlag |= isString(children) ? 8 : 16;
2112
- }
2113
- if (!!(process.env.NODE_ENV !== "production") && vnode.key !== vnode.key) {
2114
- warn(`VNode created with invalid key (NaN). VNode type:`, vnode.type);
2115
- }
2116
- if (// avoid a block node from tracking itself
2117
- !isBlockNode && // has current parent block
2118
- currentBlock && // presence of a patch flag indicates this node needs patching on updates.
2119
- // component nodes also should always be patched, because even if the
2120
- // component doesn't need to update, it needs to persist the instance on to
2121
- // the next vnode so that it can be properly unmounted later.
2122
- (vnode.patchFlag > 0 || shapeFlag & 6) && // the EVENTS flag is only for hydration and if it is the only flag, the
2123
- // vnode should not be considered dynamic due to handler caching.
2124
- vnode.patchFlag !== 32) {
2125
- currentBlock.push(vnode);
2126
- }
2127
- return vnode;
2128
- }
2129
- const createVNode = !!(process.env.NODE_ENV !== "production") ? createVNodeWithArgsTransform : _createVNode;
2130
- function _createVNode(type, props = null, children = null, patchFlag = 0, dynamicProps = null, isBlockNode = false) {
2131
- if (!type || type === NULL_DYNAMIC_COMPONENT) {
2132
- if (!!(process.env.NODE_ENV !== "production") && !type) {
2133
- warn(`Invalid vnode type when creating vnode: ${type}.`);
2134
- }
2135
- type = Comment;
2136
- }
2137
- if (isVNode(type)) {
2138
- const cloned = cloneVNode(
2139
- type,
2140
- props,
2141
- true
2142
- /* mergeRef: true */
2143
- );
2144
- if (children) {
2145
- normalizeChildren(cloned, children);
2146
- }
2147
- if (!isBlockNode && currentBlock) {
2148
- if (cloned.shapeFlag & 6) {
2149
- currentBlock[currentBlock.indexOf(type)] = cloned;
2150
- } else {
2151
- currentBlock.push(cloned);
2152
- }
2153
- }
2154
- cloned.patchFlag |= -2;
2155
- return cloned;
2156
- }
2157
- if (isClassComponent(type)) {
2158
- type = type.__vccOpts;
2159
- }
2160
- if (props) {
2161
- props = guardReactiveProps(props);
2162
- let { class: klass, style } = props;
2163
- if (klass && !isString(klass)) {
2164
- props.class = normalizeClass(klass);
2165
- }
2166
- if (isObject(style)) {
2167
- if (isProxy(style) && !isArray(style)) {
2168
- style = extend({}, style);
2169
- }
2170
- props.style = normalizeStyle(style);
2171
- }
2172
- }
2173
- const shapeFlag = isString(type) ? 1 : isSuspense(type) ? 128 : isTeleport(type) ? 64 : isObject(type) ? 4 : isFunction(type) ? 2 : 0;
2174
- if (!!(process.env.NODE_ENV !== "production") && shapeFlag & 4 && isProxy(type)) {
2175
- type = toRaw(type);
2176
- warn(
2177
- `Vue received a Component which was made a reactive object. This can lead to unnecessary performance overhead, and should be avoided by marking the component with \`markRaw\` or using \`shallowRef\` instead of \`ref\`.`,
2178
- `
2179
- Component that was made reactive: `,
2180
- type
2181
- );
2182
- }
2183
- return createBaseVNode(
2184
- type,
2185
- props,
2186
- children,
2187
- patchFlag,
2188
- dynamicProps,
2189
- shapeFlag,
2190
- isBlockNode,
2191
- true
2192
- );
2193
- }
2194
- function guardReactiveProps(props) {
2195
- if (!props)
2196
- return null;
2197
- return isProxy(props) || InternalObjectKey in props ? extend({}, props) : props;
2198
- }
2199
- function cloneVNode(vnode, extraProps, mergeRef = false) {
2200
- const { props, ref, patchFlag, children } = vnode;
2201
- const mergedProps = extraProps ? mergeProps(props || {}, extraProps) : props;
2202
- const cloned = {
2203
- __v_isVNode: true,
2204
- __v_skip: true,
2205
- type: vnode.type,
2206
- props: mergedProps,
2207
- key: mergedProps && normalizeKey(mergedProps),
2208
- ref: extraProps && extraProps.ref ? (
2209
- // #2078 in the case of <component :is="vnode" ref="extra"/>
2210
- // if the vnode itself already has a ref, cloneVNode will need to merge
2211
- // the refs so the single vnode can be set on multiple refs
2212
- mergeRef && ref ? isArray(ref) ? ref.concat(normalizeRef(extraProps)) : [ref, normalizeRef(extraProps)] : normalizeRef(extraProps)
2213
- ) : ref,
2214
- scopeId: vnode.scopeId,
2215
- slotScopeIds: vnode.slotScopeIds,
2216
- children: !!(process.env.NODE_ENV !== "production") && patchFlag === -1 && isArray(children) ? children.map(deepCloneVNode) : children,
2217
- target: vnode.target,
2218
- targetAnchor: vnode.targetAnchor,
2219
- staticCount: vnode.staticCount,
2220
- shapeFlag: vnode.shapeFlag,
2221
- // if the vnode is cloned with extra props, we can no longer assume its
2222
- // existing patch flag to be reliable and need to add the FULL_PROPS flag.
2223
- // note: preserve flag for fragments since they use the flag for children
2224
- // fast paths only.
2225
- patchFlag: extraProps && vnode.type !== Fragment ? patchFlag === -1 ? 16 : patchFlag | 16 : patchFlag,
2226
- dynamicProps: vnode.dynamicProps,
2227
- dynamicChildren: vnode.dynamicChildren,
2228
- appContext: vnode.appContext,
2229
- dirs: vnode.dirs,
2230
- transition: vnode.transition,
2231
- // These should technically only be non-null on mounted VNodes. However,
2232
- // they *should* be copied for kept-alive vnodes. So we just always copy
2233
- // them since them being non-null during a mount doesn't affect the logic as
2234
- // they will simply be overwritten.
2235
- component: vnode.component,
2236
- suspense: vnode.suspense,
2237
- ssContent: vnode.ssContent && cloneVNode(vnode.ssContent),
2238
- ssFallback: vnode.ssFallback && cloneVNode(vnode.ssFallback),
2239
- el: vnode.el,
2240
- anchor: vnode.anchor,
2241
- ctx: vnode.ctx,
2242
- ce: vnode.ce
2243
- };
2244
- return cloned;
2245
- }
2246
- function deepCloneVNode(vnode) {
2247
- const cloned = cloneVNode(vnode);
2248
- if (isArray(vnode.children)) {
2249
- cloned.children = vnode.children.map(deepCloneVNode);
2250
- }
2251
- return cloned;
2252
- }
2253
- function createTextVNode(text = " ", flag = 0) {
2254
- return createVNode(Text, null, text, flag);
2255
- }
2256
- function normalizeChildren(vnode, children) {
2257
- let type = 0;
2258
- const { shapeFlag } = vnode;
2259
- if (children == null) {
2260
- children = null;
2261
- } else if (isArray(children)) {
2262
- type = 16;
2263
- } else if (typeof children === "object") {
2264
- if (shapeFlag & (1 | 64)) {
2265
- const slot = children.default;
2266
- if (slot) {
2267
- slot._c && (slot._d = false);
2268
- normalizeChildren(vnode, slot());
2269
- slot._c && (slot._d = true);
2270
- }
2271
- return;
2272
- } else {
2273
- type = 32;
2274
- const slotFlag = children._;
2275
- if (!slotFlag && !(InternalObjectKey in children)) {
2276
- children._ctx = currentRenderingInstance;
2277
- } else if (slotFlag === 3 && currentRenderingInstance) {
2278
- if (currentRenderingInstance.slots._ === 1) {
2279
- children._ = 1;
2280
- } else {
2281
- children._ = 2;
2282
- vnode.patchFlag |= 1024;
2283
- }
2284
- }
2285
- }
2286
- } else if (isFunction(children)) {
2287
- children = { default: children, _ctx: currentRenderingInstance };
2288
- type = 32;
2289
- } else {
2290
- children = String(children);
2291
- if (shapeFlag & 64) {
2292
- type = 16;
2293
- children = [createTextVNode(children)];
2294
- } else {
2295
- type = 8;
2296
- }
2297
- }
2298
- vnode.children = children;
2299
- vnode.shapeFlag |= type;
2300
- }
2301
- function mergeProps(...args) {
2302
- const ret = {};
2303
- for (let i = 0; i < args.length; i++) {
2304
- const toMerge = args[i];
2305
- for (const key in toMerge) {
2306
- if (key === "class") {
2307
- if (ret.class !== toMerge.class) {
2308
- ret.class = normalizeClass([ret.class, toMerge.class]);
2309
- }
2310
- } else if (key === "style") {
2311
- ret.style = normalizeStyle([ret.style, toMerge.style]);
2312
- } else if (isOn(key)) {
2313
- const existing = ret[key];
2314
- const incoming = toMerge[key];
2315
- if (incoming && existing !== incoming && !(isArray(existing) && existing.includes(incoming))) {
2316
- ret[key] = existing ? [].concat(existing, incoming) : incoming;
2317
- }
2318
- } else if (key !== "") {
2319
- ret[key] = toMerge[key];
2320
- }
2321
- }
2322
- }
2323
- return ret;
2324
- }
2325
-
2326
- createAppContext();
2327
- let currentInstance = null;
2328
- const getCurrentInstance = () => currentInstance || currentRenderingInstance;
2329
- let internalSetCurrentInstance;
2330
- let globalCurrentInstanceSetters;
2331
- let settersKey = "__VUE_INSTANCE_SETTERS__";
2332
- {
2333
- if (!(globalCurrentInstanceSetters = getGlobalThis()[settersKey])) {
2334
- globalCurrentInstanceSetters = getGlobalThis()[settersKey] = [];
2335
- }
2336
- globalCurrentInstanceSetters.push((i) => currentInstance = i);
2337
- internalSetCurrentInstance = (instance) => {
2338
- if (globalCurrentInstanceSetters.length > 1) {
2339
- globalCurrentInstanceSetters.forEach((s) => s(instance));
2340
- } else {
2341
- globalCurrentInstanceSetters[0](instance);
2342
- }
2343
- };
2344
- }
2345
- const setCurrentInstance = (instance) => {
2346
- internalSetCurrentInstance(instance);
2347
- instance.scope.on();
2348
- };
2349
- const unsetCurrentInstance = () => {
2350
- currentInstance && currentInstance.scope.off();
2351
- internalSetCurrentInstance(null);
2352
- };
2353
- function isStatefulComponent(instance) {
2354
- return instance.vnode.shapeFlag & 4;
2355
- }
2356
- function getExposeProxy(instance) {
2357
- if (instance.exposed) {
2358
- return instance.exposeProxy || (instance.exposeProxy = new Proxy(proxyRefs(markRaw(instance.exposed)), {
2359
- get(target, key) {
2360
- if (key in target) {
2361
- return target[key];
2362
- } else if (key in publicPropertiesMap) {
2363
- return publicPropertiesMap[key](instance);
2364
- }
2365
- },
2366
- has(target, key) {
2367
- return key in target || key in publicPropertiesMap;
2368
- }
2369
- }));
2370
- }
2371
- }
2372
- const classifyRE = /(?:^|[-_])(\w)/g;
2373
- const classify = (str) => str.replace(classifyRE, (c) => c.toUpperCase()).replace(/[-_]/g, "");
2374
- function getComponentName(Component, includeInferred = true) {
2375
- return isFunction(Component) ? Component.displayName || Component.name : Component.name || includeInferred && Component.__name;
2376
- }
2377
- function formatComponentName(instance, Component, isRoot = false) {
2378
- let name = getComponentName(Component);
2379
- if (!name && Component.__file) {
2380
- const match = Component.__file.match(/([^/\\]+)\.\w+$/);
2381
- if (match) {
2382
- name = match[1];
2383
- }
2384
- }
2385
- if (!name && instance && instance.parent) {
2386
- const inferFromRegistry = (registry) => {
2387
- for (const key in registry) {
2388
- if (registry[key] === Component) {
2389
- return key;
2390
- }
2391
- }
2392
- };
2393
- name = inferFromRegistry(
2394
- instance.components || instance.parent.type.components
2395
- ) || inferFromRegistry(instance.appContext.components);
2396
- }
2397
- return name ? classify(name) : isRoot ? `App` : `Anonymous`;
2398
- }
2399
- function isClassComponent(value) {
2400
- return isFunction(value) && "__vccOpts" in value;
2401
- }
2402
-
2403
- function h(type, propsOrChildren, children) {
2404
- const l = arguments.length;
2405
- if (l === 2) {
2406
- if (isObject(propsOrChildren) && !isArray(propsOrChildren)) {
2407
- if (isVNode(propsOrChildren)) {
2408
- return createVNode(type, null, [propsOrChildren]);
2409
- }
2410
- return createVNode(type, propsOrChildren);
2411
- } else {
2412
- return createVNode(type, null, propsOrChildren);
2413
- }
2414
- } else {
2415
- if (l > 3) {
2416
- children = Array.prototype.slice.call(arguments, 2);
2417
- } else if (l === 3 && isVNode(children)) {
2418
- children = [children];
2419
- }
2420
- return createVNode(type, propsOrChildren, children);
2421
- }
2422
- }
2423
-
2424
- function isShallow(value) {
2425
- return !!(value && value["__v_isShallow"]);
2426
- }
2427
-
2428
- function initCustomFormatter() {
2429
- if (!!!(process.env.NODE_ENV !== "production") || typeof window === "undefined") {
2430
- return;
2431
- }
2432
- const vueStyle = { style: "color:#3ba776" };
2433
- const numberStyle = { style: "color:#0b1bc9" };
2434
- const stringStyle = { style: "color:#b62e24" };
2435
- const keywordStyle = { style: "color:#9d288c" };
2436
- const formatter = {
2437
- header(obj) {
2438
- if (!isObject(obj)) {
2439
- return null;
2440
- }
2441
- if (obj.__isVue) {
2442
- return ["div", vueStyle, `VueInstance`];
2443
- } else if (isRef(obj)) {
2444
- return [
2445
- "div",
2446
- {},
2447
- ["span", vueStyle, genRefFlag(obj)],
2448
- "<",
2449
- formatValue(obj.value),
2450
- `>`
2451
- ];
2452
- } else if (isReactive(obj)) {
2453
- return [
2454
- "div",
2455
- {},
2456
- ["span", vueStyle, isShallow(obj) ? "ShallowReactive" : "Reactive"],
2457
- "<",
2458
- formatValue(obj),
2459
- `>${isReadonly(obj) ? ` (readonly)` : ``}`
2460
- ];
2461
- } else if (isReadonly(obj)) {
2462
- return [
2463
- "div",
2464
- {},
2465
- ["span", vueStyle, isShallow(obj) ? "ShallowReadonly" : "Readonly"],
2466
- "<",
2467
- formatValue(obj),
2468
- ">"
2469
- ];
2470
- }
2471
- return null;
2472
- },
2473
- hasBody(obj) {
2474
- return obj && obj.__isVue;
2475
535
  },
2476
- body(obj) {
2477
- if (obj && obj.__isVue) {
2478
- return [
2479
- "div",
2480
- {},
2481
- ...formatInstance(obj.$)
2482
- ];
2483
- }
2484
- }
2485
- };
2486
- function formatInstance(instance) {
2487
- const blocks = [];
2488
- if (instance.type.props && instance.props) {
2489
- blocks.push(createInstanceBlock("props", toRaw(instance.props)));
2490
- }
2491
- if (instance.setupState !== EMPTY_OBJ) {
2492
- blocks.push(createInstanceBlock("setup", instance.setupState));
2493
- }
2494
- if (instance.data !== EMPTY_OBJ) {
2495
- blocks.push(createInstanceBlock("data", toRaw(instance.data)));
2496
- }
2497
- const computed = extractKeys(instance, "computed");
2498
- if (computed) {
2499
- blocks.push(createInstanceBlock("computed", computed));
2500
- }
2501
- const injected = extractKeys(instance, "inject");
2502
- if (injected) {
2503
- blocks.push(createInstanceBlock("injected", injected));
2504
- }
2505
- blocks.push([
2506
- "div",
2507
- {},
2508
- [
2509
- "span",
2510
- {
2511
- style: keywordStyle.style + ";opacity:0.66"
2512
- },
2513
- "$ (internal): "
2514
- ],
2515
- ["object", { object: instance }]
2516
- ]);
2517
- return blocks;
2518
- }
2519
- function createInstanceBlock(type, target) {
2520
- target = extend({}, target);
2521
- if (!Object.keys(target).length) {
2522
- return ["span", {}];
2523
- }
2524
- return [
2525
- "div",
2526
- { style: "line-height:1.25em;margin-bottom:0.6em" },
2527
- [
2528
- "div",
2529
- {
2530
- style: "color:#476582"
2531
- },
2532
- type
2533
- ],
2534
- [
2535
- "div",
2536
- {
2537
- style: "padding-left:1.25em"
2538
- },
2539
- ...Object.keys(target).map((key) => {
2540
- return [
2541
- "div",
2542
- {},
2543
- ["span", keywordStyle, key + ": "],
2544
- formatValue(target[key], false)
2545
- ];
2546
- })
2547
- ]
2548
- ];
2549
- }
2550
- function formatValue(v, asRaw = true) {
2551
- if (typeof v === "number") {
2552
- return ["span", numberStyle, v];
2553
- } else if (typeof v === "string") {
2554
- return ["span", stringStyle, JSON.stringify(v)];
2555
- } else if (typeof v === "boolean") {
2556
- return ["span", keywordStyle, v];
2557
- } else if (isObject(v)) {
2558
- return ["object", { object: asRaw ? toRaw(v) : v }];
2559
- } else {
2560
- return ["span", stringStyle, String(v)];
2561
- }
2562
- }
2563
- function extractKeys(instance, type) {
2564
- const Comp = instance.type;
2565
- if (isFunction(Comp)) {
2566
- return;
2567
- }
2568
- const extracted = {};
2569
- for (const key in instance.ctx) {
2570
- if (isKeyOfType(Comp, key, type)) {
2571
- extracted[key] = instance.ctx[key];
2572
- }
2573
- }
2574
- return extracted;
2575
- }
2576
- function isKeyOfType(Comp, key, type) {
2577
- const opts = Comp[type];
2578
- if (isArray(opts) && opts.includes(key) || isObject(opts) && key in opts) {
2579
- return true;
2580
- }
2581
- if (Comp.extends && isKeyOfType(Comp.extends, key, type)) {
2582
- return true;
2583
- }
2584
- if (Comp.mixins && Comp.mixins.some((m) => isKeyOfType(m, key, type))) {
2585
- return true;
2586
- }
2587
- }
2588
- function genRefFlag(v) {
2589
- if (isShallow(v)) {
2590
- return `ShallowRef`;
2591
- }
2592
- if (v.effect) {
2593
- return `ComputedRef`;
2594
- }
2595
- return `Ref`;
2596
- }
2597
- if (window.devtoolsFormatters) {
2598
- window.devtoolsFormatters.push(formatter);
2599
- } else {
2600
- window.devtoolsFormatters = [formatter];
2601
- }
2602
- }
2603
-
2604
- function initDev() {
2605
- {
2606
- initCustomFormatter();
2607
- }
2608
- }
2609
-
2610
- if (!!(process.env.NODE_ENV !== "production")) {
2611
- initDev();
2612
- }
2613
-
2614
- // @ts-nocheck
2615
- const UPDATE_VALUE_EVENT = 'update:modelValue';
2616
- const MODEL_VALUE = 'modelValue';
2617
- const ROUTER_LINK_VALUE = 'routerLink';
2618
- const NAV_MANAGER = 'navManager';
2619
- const ROUTER_PROP_PREFIX = 'router';
2620
- const ARIA_PROP_PREFIX = 'aria';
2621
- /**
2622
- * Starting in Vue 3.1.0, all properties are
2623
- * added as keys to the props object, even if
2624
- * they are not being used. In order to correctly
2625
- * account for both value props and v-model props,
2626
- * we need to check if the key exists for Vue <3.1.0
2627
- * and then check if it is not undefined for Vue >= 3.1.0.
2628
- * See https://github.com/vuejs/vue-next/issues/3889
2629
- */
2630
- const EMPTY_PROP = Symbol();
2631
- const DEFAULT_EMPTY_PROP = { default: EMPTY_PROP };
2632
- const getComponentClasses = (classes) => {
2633
- var _a;
2634
- return ((_a = classes) === null || _a === void 0 ? void 0 : _a.split(' ')) || [];
2635
- };
2636
- const getElementClasses = (ref, componentClasses, defaultClasses = []) => {
2637
- var _a;
2638
- return [...Array.from(((_a = ref.value) === null || _a === void 0 ? void 0 : _a.classList) || []), ...defaultClasses].filter((c, i, self) => !componentClasses.has(c) && self.indexOf(c) === i);
2639
- };
2640
- /**
2641
- * Create a callback to define a Vue component wrapper around a Web Component.
2642
- *
2643
- * @prop name - The component tag name (i.e. `ion-button`)
2644
- * @prop componentProps - An array of properties on the
2645
- * component. These usually match up with the @Prop definitions
2646
- * in each component's TSX file.
2647
- * @prop customElement - An option custom element instance to pass
2648
- * to customElements.define. Only set if `includeImportCustomElements: true` in your config.
2649
- * @prop modelProp - The prop that v-model binds to (i.e. value)
2650
- * @prop modelUpdateEvent - The event that is fired from your Web Component when the value changes (i.e. ionChange)
2651
- * @prop externalModelUpdateEvent - The external event to fire from your Vue component when modelUpdateEvent fires. This is used for ensuring that v-model references have been
2652
- * correctly updated when a user's event callback fires.
2653
- */
2654
- const defineContainer = (name, defineCustomElement, componentProps = [], modelProp, modelUpdateEvent, externalModelUpdateEvent) => {
2655
- /**
2656
- * Create a Vue component wrapper around a Web Component.
2657
- * Note: The `props` here are not all properties on a component.
2658
- * They refer to whatever properties are set on an instance of a component.
2659
- */
2660
- if (defineCustomElement !== undefined) {
2661
- defineCustomElement();
2662
- }
2663
- const Container = defineComponent((props, { attrs, slots, emit }) => {
2664
- var _a;
2665
- let modelPropValue = props[modelProp];
2666
- const containerRef = ref();
2667
- const classes = new Set(getComponentClasses(attrs.class));
2668
- const onVnodeBeforeMount = (vnode) => {
2669
- // Add a listener to tell Vue to update the v-model
2670
- if (vnode.el) {
2671
- const eventsNames = Array.isArray(modelUpdateEvent) ? modelUpdateEvent : [modelUpdateEvent];
2672
- eventsNames.forEach((eventName) => {
2673
- vnode.el.addEventListener(eventName.toLowerCase(), (e) => {
2674
- modelPropValue = (e === null || e === void 0 ? void 0 : e.target)[modelProp];
2675
- emit(UPDATE_VALUE_EVENT, modelPropValue);
2676
- /**
2677
- * We need to emit the change event here
2678
- * rather than on the web component to ensure
2679
- * that any v-model bindings have been updated.
2680
- * Otherwise, the developer will listen on the
2681
- * native web component, but the v-model will
2682
- * not have been updated yet.
2683
- */
2684
- if (externalModelUpdateEvent) {
2685
- emit(externalModelUpdateEvent, e);
2686
- }
2687
- });
2688
- });
2689
- }
2690
- };
2691
- const currentInstance = getCurrentInstance();
2692
- const hasRouter = (_a = currentInstance === null || currentInstance === void 0 ? void 0 : currentInstance.appContext) === null || _a === void 0 ? void 0 : _a.provides[NAV_MANAGER];
2693
- const navManager = hasRouter ? inject(NAV_MANAGER) : undefined;
2694
- const handleRouterLink = (ev) => {
2695
- const { routerLink } = props;
2696
- if (routerLink === EMPTY_PROP)
2697
- return;
2698
- if (navManager !== undefined) {
2699
- let navigationPayload = { event: ev };
2700
- for (const key in props) {
2701
- const value = props[key];
2702
- if (props.hasOwnProperty(key) && key.startsWith(ROUTER_PROP_PREFIX) && value !== EMPTY_PROP) {
2703
- navigationPayload[key] = value;
2704
- }
2705
- }
2706
- navManager.navigate(navigationPayload);
2707
- }
2708
- else {
2709
- console.warn('Tried to navigate, but no router was found. Make sure you have mounted Vue Router.');
2710
- }
2711
- };
2712
- return () => {
2713
- modelPropValue = props[modelProp];
2714
- getComponentClasses(attrs.class).forEach((value) => {
2715
- classes.add(value);
2716
- });
2717
- const oldClick = props.onClick;
2718
- const handleClick = (ev) => {
2719
- if (oldClick !== undefined) {
2720
- oldClick(ev);
2721
- }
2722
- if (!ev.defaultPrevented) {
2723
- handleRouterLink(ev);
2724
- }
2725
- };
2726
- let propsToAdd = {
2727
- ref: containerRef,
2728
- class: getElementClasses(containerRef, classes),
2729
- onClick: handleClick,
2730
- onVnodeBeforeMount: modelUpdateEvent ? onVnodeBeforeMount : undefined,
2731
- };
2732
- /**
2733
- * We can use Object.entries here
2734
- * to avoid the hasOwnProperty check,
2735
- * but that would require 2 iterations
2736
- * where as this only requires 1.
2737
- */
2738
- for (const key in props) {
2739
- const value = props[key];
2740
- if ((props.hasOwnProperty(key) && value !== EMPTY_PROP) || key.startsWith(ARIA_PROP_PREFIX)) {
2741
- propsToAdd[key] = value;
2742
- }
2743
- }
2744
- if (modelProp) {
2745
- /**
2746
- * If form value property was set using v-model
2747
- * then we should use that value.
2748
- * Otherwise, check to see if form value property
2749
- * was set as a static value (i.e. no v-model).
2750
- */
2751
- if (props[MODEL_VALUE] !== EMPTY_PROP) {
2752
- propsToAdd = {
2753
- ...propsToAdd,
2754
- [modelProp]: props[MODEL_VALUE],
2755
- };
2756
- }
2757
- else if (modelPropValue !== EMPTY_PROP) {
2758
- propsToAdd = {
2759
- ...propsToAdd,
2760
- [modelProp]: modelPropValue,
2761
- };
2762
- }
2763
- }
2764
- return h(name, propsToAdd, slots.default && slots.default());
2765
- };
2766
- });
2767
- if (typeof Container !== 'function') {
2768
- Container.name = name;
2769
- Container.props = {
2770
- [ROUTER_LINK_VALUE]: DEFAULT_EMPTY_PROP,
2771
- };
2772
- componentProps.forEach((componentProp) => {
2773
- Container.props[componentProp] = DEFAULT_EMPTY_PROP;
2774
- });
2775
- if (modelProp) {
2776
- Container.props[MODEL_VALUE] = DEFAULT_EMPTY_PROP;
2777
- Container.emits = [UPDATE_VALUE_EVENT, externalModelUpdateEvent];
2778
- }
2779
- }
2780
- return Container;
2781
- };
2782
-
2783
- /* eslint-disable */
2784
- const VertexSceneTree = /*@__PURE__*/ defineContainer('vertex-scene-tree', undefined, [
2785
- 'overScanCount',
2786
- 'viewerSelector',
2787
- 'viewer',
2788
- 'rowData',
2789
- 'config',
2790
- 'configEnv',
2791
- 'controller',
2792
- 'searchOptions',
2793
- 'metadataSearchExactMatch',
2794
- 'metadataSearchKeys',
2795
- 'metadataKeys',
2796
- 'operationAnimationDuration',
2797
- 'connectionError',
2798
- 'firstRowRendered'
2799
- ]);
2800
- const VertexSceneTreeNotificationBanner = /*@__PURE__*/ defineContainer('vertex-scene-tree-notification-banner', undefined, [
2801
- 'message',
2802
- 'actionLabel',
2803
- 'action'
2804
- ]);
2805
- const VertexSceneTreeSearch = /*@__PURE__*/ defineContainer('vertex-scene-tree-search', undefined, [
2806
- 'debounce',
2807
- 'disabled',
2808
- 'placeholder',
2809
- 'controller',
2810
- 'value',
2811
- 'search',
2812
- 'searchCompleted'
2813
- ]);
2814
- const VertexSceneTreeTableCell = /*@__PURE__*/ defineContainer('vertex-scene-tree-table-cell', undefined, [
2815
- 'node',
2816
- 'tree',
2817
- 'value',
2818
- 'placeholder',
2819
- 'alwaysShowIcons',
2820
- 'hovered',
2821
- 'isScrolling',
2822
- 'expandToggle',
2823
- 'endItemIndicator',
2824
- 'visibilityToggle',
2825
- 'isolateButton',
2826
- 'selectionHandler',
2827
- 'visibilityHandler',
2828
- 'expansionHandler',
2829
- 'isolateHandler',
2830
- 'hoverController',
2831
- 'expandToggled',
2832
- 'visibilityToggled',
2833
- 'selectionToggled',
2834
- 'isolatePressed',
2835
- 'cellLoaded'
2836
- ]);
2837
- const VertexSceneTreeTableColumn = /*@__PURE__*/ defineContainer('vertex-scene-tree-table-column', undefined, [
2838
- 'initialWidth',
2839
- 'minWidth',
2840
- 'maxWidth'
2841
- ]);
2842
- const VertexSceneTreeTableHeader = /*@__PURE__*/ defineContainer('vertex-scene-tree-table-header', undefined);
2843
- const VertexSceneTreeTableLayout = /*@__PURE__*/ defineContainer('vertex-scene-tree-table-layout', undefined, [
2844
- 'tree',
2845
- 'controller',
2846
- 'rows',
2847
- 'totalRows',
2848
- 'rowHeight',
2849
- 'overScanCount',
2850
- 'rowData',
2851
- 'layoutOffset',
2852
- 'scrollOffset',
2853
- 'layoutHeight',
2854
- 'layoutWidth',
2855
- 'viewportStartIndex',
2856
- 'viewportEndIndex',
2857
- 'layoutRendered',
2858
- 'columnsResized'
2859
- ]);
2860
- const VertexSceneTreeTableResizeDivider = /*@__PURE__*/ defineContainer('vertex-scene-tree-table-resize-divider', undefined);
2861
- const VertexSceneTreeToolbar = /*@__PURE__*/ defineContainer('vertex-scene-tree-toolbar', undefined);
2862
- const VertexSceneTreeToolbarGroup = /*@__PURE__*/ defineContainer('vertex-scene-tree-toolbar-group', undefined);
2863
- const VertexViewer = /*@__PURE__*/ defineContainer('vertex-viewer', undefined, [
2864
- 'src',
2865
- 'clientId',
2866
- 'deviceId',
2867
- 'config',
2868
- 'configEnv',
2869
- 'resolvedConfig',
2870
- 'cameraControls',
2871
- 'cameraType',
2872
- 'keyboardControls',
2873
- 'rotateAroundTapPoint',
2874
- 'token',
2875
- 'depthBuffers',
2876
- 'phantom',
2877
- 'noDefaultLights',
2878
- 'enableTemporalRefinement',
2879
- 'experimentalRenderingOptions',
2880
- 'featureLines',
2881
- 'selectionHighlighting',
2882
- 'featureHighlighting',
2883
- 'sceneComparison',
2884
- 'crossSectioning',
2885
- 'featureMaps',
2886
- 'resizeDebounce',
2887
- 'frame',
2888
- 'stream',
2889
- 'stencilBuffer',
2890
- 'viewport',
2891
- 'annotations',
2892
- 'modelViews',
2893
- 'pmi',
2894
- 'sceneItems',
2895
- 'canvases',
2896
- 'experimentalSkipVisibilityCheck',
2897
- 'tap',
2898
- 'doubletap',
2899
- 'longpress',
2900
- 'frameReceived',
2901
- 'frameDrawn',
2902
- 'tokenExpired',
2903
- 'connectionChange',
2904
- 'sceneReady',
2905
- 'sceneChanged',
2906
- 'interactionStarted',
2907
- 'interactionFinished',
2908
- 'cameraTypeChanged',
2909
- 'annotationStateChanged',
2910
- 'deviceIdChange',
2911
- 'dimensionschange'
2912
- ]);
2913
- const VertexViewerAnnotationCallout = /*@__PURE__*/ defineContainer('vertex-viewer-annotation-callout', undefined, [
2914
- 'data',
2915
- 'iconSize'
2916
- ]);
2917
- const VertexViewerBoxQueryTool = /*@__PURE__*/ defineContainer('vertex-viewer-box-query-tool', undefined, [
2918
- 'viewer',
2919
- 'controller',
2920
- 'model',
2921
- 'operationType',
2922
- 'mode',
2923
- 'controllerChanged'
2924
- ]);
2925
- const VertexViewerButton = /*@__PURE__*/ defineContainer('vertex-viewer-button', undefined);
2926
- const VertexViewerDefaultToolbar = /*@__PURE__*/ defineContainer('vertex-viewer-default-toolbar', undefined, [
2927
- 'viewer',
2928
- 'placement',
2929
- 'direction',
2930
- 'animationsDisabled',
2931
- 'animationMs'
2932
- ]);
2933
- const VertexViewerDomElement = /*@__PURE__*/ defineContainer('vertex-viewer-dom-element', undefined, [
2934
- 'position',
2935
- 'positionJson',
2936
- 'rotation',
2937
- 'rotationJson',
2938
- 'quaternion',
2939
- 'quaternionJson',
2940
- 'scale',
2941
- 'scaleJson',
2942
- 'matrix',
2943
- 'occlusionOff',
2944
- 'occluded',
2945
- 'detachedOff',
2946
- 'detached',
2947
- 'billboardOff',
2948
- 'interactionsOff',
2949
- 'occlusionStateChanged',
2950
- 'detachedStateChanged',
2951
- 'propertyChange'
2952
- ]);
2953
- const VertexViewerDomGroup = /*@__PURE__*/ defineContainer('vertex-viewer-dom-group', undefined, [
2954
- 'position',
2955
- 'positionJson',
2956
- 'rotation',
2957
- 'rotationJson',
2958
- 'quaternion',
2959
- 'quaternionJson',
2960
- 'scale',
2961
- 'scaleJson',
2962
- 'matrix',
2963
- 'propertyChange'
2964
- ]);
2965
- const VertexViewerDomRenderer = /*@__PURE__*/ defineContainer('vertex-viewer-dom-renderer', undefined, [
2966
- 'drawMode',
2967
- 'propagateEventsToViewer',
2968
- 'viewer',
2969
- 'camera',
2970
- 'depthBuffer'
2971
- ]);
2972
- const VertexViewerHitResultIndicator = /*@__PURE__*/ defineContainer('vertex-viewer-hit-result-indicator', undefined, [
2973
- 'viewer',
2974
- 'position',
2975
- 'normal'
2976
- ]);
2977
- const VertexViewerIcon = /*@__PURE__*/ defineContainer('vertex-viewer-icon', undefined, [
2978
- 'name',
2979
- 'size'
2980
- ]);
2981
- const VertexViewerLayer = /*@__PURE__*/ defineContainer('vertex-viewer-layer', undefined, [
2982
- 'stretchOff'
2983
- ]);
2984
- const VertexViewerMarkup = /*@__PURE__*/ defineContainer('vertex-viewer-markup', undefined, [
2985
- 'arrowTemplateId',
2986
- 'circleTemplateId',
2987
- 'freeformTemplateId',
2988
- 'tool',
2989
- 'disabled',
2990
- 'viewer',
2991
- 'selectedMarkupId',
2992
- 'selectNew',
2993
- 'startLineAnchorStyle',
2994
- 'endLineAnchorStyle',
2995
- 'originatingViewport',
2996
- 'centeringBehavior',
2997
- 'offset',
2998
- 'scale',
2999
- 'markupAdded',
3000
- 'markupChanged',
3001
- 'markupRemoved',
3002
- 'markupSelectionChanged'
3003
- ]);
3004
- const VertexViewerMarkupArrow = /*@__PURE__*/ defineContainer('vertex-viewer-markup-arrow', undefined, [
3005
- 'start',
3006
- 'startJson',
3007
- 'end',
3008
- 'endJson',
3009
- 'originatingViewport',
3010
- 'centeringBehavior',
3011
- 'offset',
3012
- 'scale',
3013
- 'startLineAnchorStyle',
3014
- 'endLineAnchorStyle',
3015
- 'mode',
3016
- 'viewer',
3017
- 'interactionBegin',
3018
- 'interactionEnd',
3019
- 'viewRendered'
3020
- ]);
3021
- const VertexViewerMarkupCircle = /*@__PURE__*/ defineContainer('vertex-viewer-markup-circle', undefined, [
3022
- 'bounds',
3023
- 'boundsJson',
3024
- 'mode',
3025
- 'viewer',
3026
- 'originatingViewport',
3027
- 'centeringBehavior',
3028
- 'offset',
3029
- 'scale',
3030
- 'interactionBegin',
3031
- 'interactionEnd',
3032
- 'viewRendered'
3033
- ]);
3034
- const VertexViewerMarkupFreeform = /*@__PURE__*/ defineContainer('vertex-viewer-markup-freeform', undefined, [
3035
- 'points',
3036
- 'pointsJson',
3037
- 'bounds',
3038
- 'boundsJson',
3039
- 'mode',
3040
- 'viewer',
3041
- 'originatingViewport',
3042
- 'centeringBehavior',
3043
- 'offset',
3044
- 'scale',
3045
- 'interactionBegin',
3046
- 'interactionEnd',
3047
- 'viewRendered'
3048
- ]);
3049
- const VertexViewerMarkupTool = /*@__PURE__*/ defineContainer('vertex-viewer-markup-tool', undefined, [
3050
- 'arrowTemplateId',
3051
- 'circleTemplateId',
3052
- 'freeformTemplateId',
3053
- 'tool',
3054
- 'disabled',
3055
- 'viewer',
3056
- 'startLineAnchorStyle',
3057
- 'endLineAnchorStyle',
3058
- 'originatingViewport',
3059
- 'centeringBehavior',
3060
- 'offset',
3061
- 'scale',
3062
- 'markupBegin',
3063
- 'markupEnd'
3064
- ]);
3065
- const VertexViewerMeasurementDetails = /*@__PURE__*/ defineContainer('vertex-viewer-measurement-details', undefined, [
3066
- 'measurementModel',
3067
- 'measurementOverlays',
3068
- 'measurementOutcome',
3069
- 'distanceUnits',
3070
- 'angleUnits',
3071
- 'fractionalDigits',
3072
- 'distanceFormatter',
3073
- 'angleFormatter',
3074
- 'areaFormatter',
3075
- 'resultTypes'
3076
- ]);
3077
- const VertexViewerMeasurementDistance = /*@__PURE__*/ defineContainer('vertex-viewer-measurement-distance', undefined, [
3078
- 'start',
3079
- 'startJson',
3080
- 'end',
3081
- 'endJson',
3082
- 'distance',
3083
- 'showAxisReferenceLines',
3084
- 'snapDistance',
3085
- 'units',
3086
- 'fractionalDigits',
3087
- 'labelFormatter',
3088
- 'anchorLabelOffset',
3089
- 'lineCapLength',
3090
- 'mode',
3091
- 'interactingAnchor',
3092
- 'invalid',
3093
- 'camera',
3094
- 'hitProvider',
3095
- 'indicatorPt',
3096
- 'viewer',
3097
- 'measurementModel',
3098
- 'editBegin',
3099
- 'editEnd'
3100
- ]);
3101
- const VertexViewerMeasurementLine = /*@__PURE__*/ defineContainer('vertex-viewer-measurement-line', undefined, [
3102
- 'start',
3103
- 'end',
3104
- 'capLength',
3105
- 'pointerEvents'
3106
- ]);
3107
- const VertexViewerMeasurementOverlays = /*@__PURE__*/ defineContainer('vertex-viewer-measurement-overlays', undefined, [
3108
- 'measurementOverlays',
3109
- 'camera',
3110
- 'viewer'
3111
- ]);
3112
- const VertexViewerMeasurementPrecise = /*@__PURE__*/ defineContainer('vertex-viewer-measurement-precise', undefined, [
3113
- 'measurementModel',
3114
- 'measurementOverlays',
3115
- 'measurementController',
3116
- 'measurableEntityTypes',
3117
- 'viewer',
3118
- 'configEnv',
3119
- 'config'
3120
- ]);
3121
- const VertexViewerPinGroup = /*@__PURE__*/ defineContainer('vertex-viewer-pin-group', undefined, [
3122
- 'pin',
3123
- 'matrix',
3124
- 'projectionViewMatrix',
3125
- 'elementBounds',
3126
- 'pinModel',
3127
- 'pinController',
3128
- 'selected',
3129
- 'occluded',
3130
- 'detached'
3131
- ]);
3132
- const VertexViewerPinLabel = /*@__PURE__*/ defineContainer('vertex-viewer-pin-label', undefined, [
3133
- 'pin',
3134
- 'elementBounds',
3135
- 'value',
3136
- 'pinController',
3137
- 'labelChanged',
3138
- 'labelFocused',
3139
- 'labelBlurred'
3140
- ]);
3141
- const VertexViewerPinLabelLine = /*@__PURE__*/ defineContainer('vertex-viewer-pin-label-line', undefined, [
3142
- 'pinPoint',
3143
- 'labelPoint',
3144
- 'pin'
3145
- ]);
3146
- const VertexViewerPinTool = /*@__PURE__*/ defineContainer('vertex-viewer-pin-tool', undefined, [
3147
- 'pinController',
3148
- 'pinModel',
3149
- 'viewer',
3150
- 'tool',
3151
- 'mode',
3152
- 'primaryColor',
3153
- 'accentColor'
3154
- ]);
3155
- const VertexViewerSpinner = /*@__PURE__*/ defineContainer('vertex-viewer-spinner', undefined, [
3156
- 'size'
3157
- ]);
3158
- const VertexViewerTeleportTool = /*@__PURE__*/ defineContainer('vertex-viewer-teleport-tool', undefined, [
3159
- 'viewer',
3160
- 'mode',
3161
- 'animationsDisabled',
3162
- 'animationMs',
3163
- 'controller',
3164
- 'model',
3165
- 'controllerChanged'
3166
- ]);
3167
- const VertexViewerToolbar = /*@__PURE__*/ defineContainer('vertex-viewer-toolbar', undefined, [
3168
- 'placement',
3169
- 'direction'
3170
- ]);
3171
- const VertexViewerToolbarGroup = /*@__PURE__*/ defineContainer('vertex-viewer-toolbar-group', undefined, [
3172
- 'direction'
3173
- ]);
3174
- const VertexViewerTransformWidget = /*@__PURE__*/ defineContainer('vertex-viewer-transform-widget', undefined, [
3175
- 'viewer',
3176
- 'position',
3177
- 'rotation',
3178
- 'controller',
3179
- 'xRotationDisabled',
3180
- 'yRotationDisabled',
3181
- 'zRotationDisabled',
3182
- 'xTranslationDisabled',
3183
- 'yTranslationDisabled',
3184
- 'zTranslationDisabled',
3185
- 'xyTranslationDisabled',
3186
- 'xzTranslationDisabled',
3187
- 'yzTranslationDisabled',
3188
- 'showInputs',
3189
- 'distanceUnit',
3190
- 'angleUnit',
3191
- 'decimalPlaces',
3192
- 'rotationSnapDegrees',
3193
- 'rotationSnapKey',
3194
- 'translationHandleScalar',
3195
- 'rotationHandleScalar',
3196
- 'interactionThrottle',
3197
- 'EXPERIMENTAL_undoKeybindings',
3198
- 'hovered',
3199
- 'positionChanged',
3200
- 'rotationChanged',
3201
- 'interactionEnded',
3202
- 'interactionStarted'
3203
- ]);
3204
- const VertexViewerViewCube = /*@__PURE__*/ defineContainer('vertex-viewer-view-cube', undefined, [
3205
- 'xPositiveLabel',
3206
- 'xNegativeLabel',
3207
- 'yPositiveLabel',
3208
- 'yNegativeLabel',
3209
- 'zPositiveLabel',
3210
- 'zNegativeLabel',
3211
- 'standardViewsOff',
3212
- 'viewAll',
3213
- 'animationDuration',
3214
- 'triadOff',
3215
- 'worldOrientation',
3216
- 'camera',
3217
- 'viewer'
3218
- ]);
3219
- const VertexViewerWalkModeTool = /*@__PURE__*/ defineContainer('vertex-viewer-walk-mode-tool', undefined, [
3220
- 'viewer',
3221
- 'controller',
3222
- 'model',
3223
- 'teleportMode',
3224
- 'enabled',
3225
- 'controllerChanged'
3226
- ]);
3227
-
3228
- const VertexViewerPlugin = {
3229
- async install() {
3230
- loader.applyPolyfills().then(() => {
3231
- loader.defineCustomElements();
3232
- });
3233
- },
3234
536
  };
3235
537
 
3236
538
  exports.VertexSceneTree = VertexSceneTree;