lwc 2.20.2 → 2.20.3
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.
- package/dist/engine-dom/esm/es2017/engine-dom.js +203 -171
- package/dist/engine-dom/iife/es2017/engine-dom.js +203 -171
- package/dist/engine-dom/iife/es2017/engine-dom.min.js +1 -1
- package/dist/engine-dom/iife/es2017/engine-dom_debug.js +193 -161
- package/dist/engine-dom/iife/es5/engine-dom.js +288 -254
- package/dist/engine-dom/iife/es5/engine-dom.min.js +1 -1
- package/dist/engine-dom/iife/es5/engine-dom_debug.js +278 -243
- package/dist/engine-dom/umd/es2017/engine-dom.js +203 -171
- package/dist/engine-dom/umd/es2017/engine-dom.min.js +1 -1
- package/dist/engine-dom/umd/es2017/engine-dom_debug.js +193 -161
- package/dist/engine-dom/umd/es5/engine-dom.js +288 -254
- package/dist/engine-dom/umd/es5/engine-dom.min.js +1 -1
- package/dist/engine-dom/umd/es5/engine-dom_debug.js +278 -243
- package/dist/engine-server/commonjs/es2017/engine-server.js +177 -169
- package/dist/engine-server/commonjs/es2017/engine-server.min.js +1 -1
- package/dist/engine-server/esm/es2017/engine-server.js +177 -169
- package/dist/synthetic-shadow/esm/es2017/synthetic-shadow.js +3 -3
- package/dist/synthetic-shadow/iife/es2017/synthetic-shadow.js +3 -3
- package/dist/synthetic-shadow/iife/es2017/synthetic-shadow_debug.js +3 -3
- package/dist/synthetic-shadow/iife/es5/synthetic-shadow.js +3 -3
- package/dist/synthetic-shadow/iife/es5/synthetic-shadow_debug.js +3 -3
- package/dist/synthetic-shadow/umd/es2017/synthetic-shadow.js +3 -3
- package/dist/synthetic-shadow/umd/es2017/synthetic-shadow_debug.js +3 -3
- package/dist/synthetic-shadow/umd/es5/synthetic-shadow.js +3 -3
- package/dist/synthetic-shadow/umd/es5/synthetic-shadow_debug.js +3 -3
- package/dist/wire-service/esm/es2017/wire-service.js +2 -2
- package/dist/wire-service/iife/es2017/wire-service.js +2 -2
- package/dist/wire-service/iife/es2017/wire-service_debug.js +2 -2
- package/dist/wire-service/iife/es5/wire-service.js +2 -2
- package/dist/wire-service/iife/es5/wire-service_debug.js +2 -2
- package/dist/wire-service/umd/es2017/wire-service.js +2 -2
- package/dist/wire-service/umd/es2017/wire-service_debug.js +2 -2
- package/dist/wire-service/umd/es5/wire-service.js +2 -2
- package/dist/wire-service/umd/es5/wire-service_debug.js +2 -2
- package/package.json +7 -7
|
@@ -419,9 +419,9 @@ function htmlEscape(str, attrMode = false) {
|
|
|
419
419
|
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
|
|
420
420
|
*/
|
|
421
421
|
// Increment whenever the LWC template compiler changes
|
|
422
|
-
const LWC_VERSION = "2.20.
|
|
422
|
+
const LWC_VERSION = "2.20.3";
|
|
423
423
|
const LWC_VERSION_COMMENT_REGEX = /\/\*LWC compiler v([\d.]+)\*\/\s*}/;
|
|
424
|
-
/** version: 2.20.
|
|
424
|
+
/** version: 2.20.3 */
|
|
425
425
|
|
|
426
426
|
/*
|
|
427
427
|
* Copyright (c) 2020, salesforce.com, inc.
|
|
@@ -530,7 +530,7 @@ function setFeatureFlagForTest(name, value) {
|
|
|
530
530
|
setFeatureFlag(name, value);
|
|
531
531
|
}
|
|
532
532
|
}
|
|
533
|
-
/** version: 2.20.
|
|
533
|
+
/** version: 2.20.3 */
|
|
534
534
|
|
|
535
535
|
/* proxy-compat-disable */
|
|
536
536
|
|
|
@@ -3255,6 +3255,175 @@ function getComponentDef(Ctor) {
|
|
|
3255
3255
|
};
|
|
3256
3256
|
}
|
|
3257
3257
|
|
|
3258
|
+
/*
|
|
3259
|
+
* Copyright (c) 2018, salesforce.com, inc.
|
|
3260
|
+
* All rights reserved.
|
|
3261
|
+
* SPDX-License-Identifier: MIT
|
|
3262
|
+
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
|
|
3263
|
+
*/
|
|
3264
|
+
function makeHostToken(token) {
|
|
3265
|
+
return `${token}-host`;
|
|
3266
|
+
}
|
|
3267
|
+
function createInlineStyleVNode(content) {
|
|
3268
|
+
return api.h('style', {
|
|
3269
|
+
key: 'style',
|
|
3270
|
+
attrs: {
|
|
3271
|
+
type: 'text/css',
|
|
3272
|
+
},
|
|
3273
|
+
}, [api.t(content)]);
|
|
3274
|
+
}
|
|
3275
|
+
function updateStylesheetToken(vm, template) {
|
|
3276
|
+
const { elm, context, renderMode, shadowMode, renderer: { getClassList, removeAttribute, setAttribute }, } = vm;
|
|
3277
|
+
const { stylesheets: newStylesheets, stylesheetToken: newStylesheetToken } = template;
|
|
3278
|
+
const isSyntheticShadow = renderMode === 1 /* RenderMode.Shadow */ && shadowMode === 1 /* ShadowMode.Synthetic */;
|
|
3279
|
+
const { hasScopedStyles } = context;
|
|
3280
|
+
let newToken;
|
|
3281
|
+
let newHasTokenInClass;
|
|
3282
|
+
let newHasTokenInAttribute;
|
|
3283
|
+
// Reset the styling token applied to the host element.
|
|
3284
|
+
const { stylesheetToken: oldToken, hasTokenInClass: oldHasTokenInClass, hasTokenInAttribute: oldHasTokenInAttribute, } = context;
|
|
3285
|
+
if (!isUndefined$1(oldToken)) {
|
|
3286
|
+
if (oldHasTokenInClass) {
|
|
3287
|
+
getClassList(elm).remove(makeHostToken(oldToken));
|
|
3288
|
+
}
|
|
3289
|
+
if (oldHasTokenInAttribute) {
|
|
3290
|
+
removeAttribute(elm, makeHostToken(oldToken));
|
|
3291
|
+
}
|
|
3292
|
+
}
|
|
3293
|
+
// Apply the new template styling token to the host element, if the new template has any
|
|
3294
|
+
// associated stylesheets. In the case of light DOM, also ensure there is at least one scoped stylesheet.
|
|
3295
|
+
if (!isUndefined$1(newStylesheets) && newStylesheets.length !== 0) {
|
|
3296
|
+
newToken = newStylesheetToken;
|
|
3297
|
+
}
|
|
3298
|
+
// Set the new styling token on the host element
|
|
3299
|
+
if (!isUndefined$1(newToken)) {
|
|
3300
|
+
if (hasScopedStyles) {
|
|
3301
|
+
getClassList(elm).add(makeHostToken(newToken));
|
|
3302
|
+
newHasTokenInClass = true;
|
|
3303
|
+
}
|
|
3304
|
+
if (isSyntheticShadow) {
|
|
3305
|
+
setAttribute(elm, makeHostToken(newToken), '');
|
|
3306
|
+
newHasTokenInAttribute = true;
|
|
3307
|
+
}
|
|
3308
|
+
}
|
|
3309
|
+
// Update the styling tokens present on the context object.
|
|
3310
|
+
context.stylesheetToken = newToken;
|
|
3311
|
+
context.hasTokenInClass = newHasTokenInClass;
|
|
3312
|
+
context.hasTokenInAttribute = newHasTokenInAttribute;
|
|
3313
|
+
}
|
|
3314
|
+
function evaluateStylesheetsContent(stylesheets, stylesheetToken, vm) {
|
|
3315
|
+
const content = [];
|
|
3316
|
+
let root;
|
|
3317
|
+
for (let i = 0; i < stylesheets.length; i++) {
|
|
3318
|
+
let stylesheet = stylesheets[i];
|
|
3319
|
+
if (isArray$1(stylesheet)) {
|
|
3320
|
+
ArrayPush$1.apply(content, evaluateStylesheetsContent(stylesheet, stylesheetToken, vm));
|
|
3321
|
+
}
|
|
3322
|
+
else {
|
|
3323
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
3324
|
+
// Check for compiler version mismatch in dev mode only
|
|
3325
|
+
checkVersionMismatch(stylesheet, 'stylesheet');
|
|
3326
|
+
// in dev-mode, we support hot swapping of stylesheet, which means that
|
|
3327
|
+
// the component instance might be attempting to use an old version of
|
|
3328
|
+
// the stylesheet, while internally, we have a replacement for it.
|
|
3329
|
+
stylesheet = getStyleOrSwappedStyle(stylesheet);
|
|
3330
|
+
}
|
|
3331
|
+
const isScopedCss = stylesheet[KEY__SCOPED_CSS];
|
|
3332
|
+
// Apply the scope token only if the stylesheet itself is scoped, or if we're rendering synthetic shadow.
|
|
3333
|
+
const scopeToken = isScopedCss ||
|
|
3334
|
+
(vm.shadowMode === 1 /* ShadowMode.Synthetic */ && vm.renderMode === 1 /* RenderMode.Shadow */)
|
|
3335
|
+
? stylesheetToken
|
|
3336
|
+
: undefined;
|
|
3337
|
+
// Use the actual `:host` selector if we're rendering global CSS for light DOM, or if we're rendering
|
|
3338
|
+
// native shadow DOM. Synthetic shadow DOM never uses `:host`.
|
|
3339
|
+
const useActualHostSelector = vm.renderMode === 0 /* RenderMode.Light */
|
|
3340
|
+
? !isScopedCss
|
|
3341
|
+
: vm.shadowMode === 0 /* ShadowMode.Native */;
|
|
3342
|
+
// Use the native :dir() pseudoclass only in native shadow DOM. Otherwise, in synthetic shadow,
|
|
3343
|
+
// we use an attribute selector on the host to simulate :dir().
|
|
3344
|
+
let useNativeDirPseudoclass;
|
|
3345
|
+
if (vm.renderMode === 1 /* RenderMode.Shadow */) {
|
|
3346
|
+
useNativeDirPseudoclass = vm.shadowMode === 0 /* ShadowMode.Native */;
|
|
3347
|
+
}
|
|
3348
|
+
else {
|
|
3349
|
+
// Light DOM components should only render `[dir]` if they're inside of a synthetic shadow root.
|
|
3350
|
+
// At the top level (root is null) or inside of a native shadow root, they should use `:dir()`.
|
|
3351
|
+
if (isUndefined$1(root)) {
|
|
3352
|
+
// Only calculate the root once as necessary
|
|
3353
|
+
root = getNearestShadowComponent(vm);
|
|
3354
|
+
}
|
|
3355
|
+
useNativeDirPseudoclass = isNull(root) || root.shadowMode === 0 /* ShadowMode.Native */;
|
|
3356
|
+
}
|
|
3357
|
+
ArrayPush$1.call(content, stylesheet(scopeToken, useActualHostSelector, useNativeDirPseudoclass));
|
|
3358
|
+
}
|
|
3359
|
+
}
|
|
3360
|
+
return content;
|
|
3361
|
+
}
|
|
3362
|
+
function getStylesheetsContent(vm, template) {
|
|
3363
|
+
const { stylesheets, stylesheetToken } = template;
|
|
3364
|
+
let content = [];
|
|
3365
|
+
if (!isUndefined$1(stylesheets) && stylesheets.length !== 0) {
|
|
3366
|
+
content = evaluateStylesheetsContent(stylesheets, stylesheetToken, vm);
|
|
3367
|
+
}
|
|
3368
|
+
return content;
|
|
3369
|
+
}
|
|
3370
|
+
// It might be worth caching this to avoid doing the lookup repeatedly, but
|
|
3371
|
+
// perf testing has not shown it to be a huge improvement yet:
|
|
3372
|
+
// https://github.com/salesforce/lwc/pull/2460#discussion_r691208892
|
|
3373
|
+
function getNearestShadowComponent(vm) {
|
|
3374
|
+
let owner = vm;
|
|
3375
|
+
while (!isNull(owner)) {
|
|
3376
|
+
if (owner.renderMode === 1 /* RenderMode.Shadow */) {
|
|
3377
|
+
return owner;
|
|
3378
|
+
}
|
|
3379
|
+
owner = owner.owner;
|
|
3380
|
+
}
|
|
3381
|
+
return owner;
|
|
3382
|
+
}
|
|
3383
|
+
/**
|
|
3384
|
+
* If the component that is currently being rendered uses scoped styles,
|
|
3385
|
+
* this returns the unique token for that scoped stylesheet. Otherwise
|
|
3386
|
+
* it returns null.
|
|
3387
|
+
*/
|
|
3388
|
+
function getScopeTokenClass(owner) {
|
|
3389
|
+
const { cmpTemplate, context } = owner;
|
|
3390
|
+
return (context.hasScopedStyles && (cmpTemplate === null || cmpTemplate === void 0 ? void 0 : cmpTemplate.stylesheetToken)) || null;
|
|
3391
|
+
}
|
|
3392
|
+
function getNearestNativeShadowComponent(vm) {
|
|
3393
|
+
const owner = getNearestShadowComponent(vm);
|
|
3394
|
+
if (!isNull(owner) && owner.shadowMode === 1 /* ShadowMode.Synthetic */) {
|
|
3395
|
+
// Synthetic-within-native is impossible. So if the nearest shadow component is
|
|
3396
|
+
// synthetic, we know we won't find a native component if we go any further.
|
|
3397
|
+
return null;
|
|
3398
|
+
}
|
|
3399
|
+
return owner;
|
|
3400
|
+
}
|
|
3401
|
+
function createStylesheet(vm, stylesheets) {
|
|
3402
|
+
const { renderMode, shadowMode, renderer: { ssr, insertStylesheet }, } = vm;
|
|
3403
|
+
if (renderMode === 1 /* RenderMode.Shadow */ && shadowMode === 1 /* ShadowMode.Synthetic */) {
|
|
3404
|
+
for (let i = 0; i < stylesheets.length; i++) {
|
|
3405
|
+
insertStylesheet(stylesheets[i]);
|
|
3406
|
+
}
|
|
3407
|
+
}
|
|
3408
|
+
else if (ssr || vm.hydrated) {
|
|
3409
|
+
// Note: We need to ensure that during hydration, the stylesheets method is the same as those in ssr.
|
|
3410
|
+
// This works in the client, because the stylesheets are created, and cached in the VM
|
|
3411
|
+
// the first time the VM renders.
|
|
3412
|
+
// native shadow or light DOM, SSR
|
|
3413
|
+
return ArrayMap.call(stylesheets, createInlineStyleVNode);
|
|
3414
|
+
}
|
|
3415
|
+
else {
|
|
3416
|
+
// native shadow or light DOM, DOM renderer
|
|
3417
|
+
const root = getNearestNativeShadowComponent(vm);
|
|
3418
|
+
// null root means a global style
|
|
3419
|
+
const target = isNull(root) ? undefined : root.shadowRoot;
|
|
3420
|
+
for (let i = 0; i < stylesheets.length; i++) {
|
|
3421
|
+
insertStylesheet(stylesheets[i], target);
|
|
3422
|
+
}
|
|
3423
|
+
}
|
|
3424
|
+
return null;
|
|
3425
|
+
}
|
|
3426
|
+
|
|
3258
3427
|
/*
|
|
3259
3428
|
* Copyright (c) 2020, salesforce.com, inc.
|
|
3260
3429
|
* All rights reserved.
|
|
@@ -3766,10 +3935,9 @@ function setElementShadowToken(elm, token) {
|
|
|
3766
3935
|
}
|
|
3767
3936
|
// Set the scope token class for *.scoped.css styles
|
|
3768
3937
|
function setScopeTokenClassIfNecessary(elm, owner, renderer) {
|
|
3769
|
-
const
|
|
3770
|
-
|
|
3771
|
-
|
|
3772
|
-
if (!isUndefined$1(token) && context.hasScopedStyles) {
|
|
3938
|
+
const token = getScopeTokenClass(owner);
|
|
3939
|
+
if (!isNull(token)) {
|
|
3940
|
+
const { getClassList } = renderer;
|
|
3773
3941
|
// TODO [#2762]: this dot notation with add is probably problematic
|
|
3774
3942
|
// probably we should have a renderer api for just the add operation
|
|
3775
3943
|
getClassList(elm).add(token);
|
|
@@ -4532,166 +4700,6 @@ const api = freeze({
|
|
|
4532
4700
|
shc,
|
|
4533
4701
|
});
|
|
4534
4702
|
|
|
4535
|
-
/*
|
|
4536
|
-
* Copyright (c) 2018, salesforce.com, inc.
|
|
4537
|
-
* All rights reserved.
|
|
4538
|
-
* SPDX-License-Identifier: MIT
|
|
4539
|
-
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
|
|
4540
|
-
*/
|
|
4541
|
-
function makeHostToken(token) {
|
|
4542
|
-
return `${token}-host`;
|
|
4543
|
-
}
|
|
4544
|
-
function createInlineStyleVNode(content) {
|
|
4545
|
-
return api.h('style', {
|
|
4546
|
-
key: 'style',
|
|
4547
|
-
attrs: {
|
|
4548
|
-
type: 'text/css',
|
|
4549
|
-
},
|
|
4550
|
-
}, [api.t(content)]);
|
|
4551
|
-
}
|
|
4552
|
-
function updateStylesheetToken(vm, template) {
|
|
4553
|
-
const { elm, context, renderMode, shadowMode, renderer: { getClassList, removeAttribute, setAttribute }, } = vm;
|
|
4554
|
-
const { stylesheets: newStylesheets, stylesheetToken: newStylesheetToken } = template;
|
|
4555
|
-
const isSyntheticShadow = renderMode === 1 /* RenderMode.Shadow */ && shadowMode === 1 /* ShadowMode.Synthetic */;
|
|
4556
|
-
const { hasScopedStyles } = context;
|
|
4557
|
-
let newToken;
|
|
4558
|
-
let newHasTokenInClass;
|
|
4559
|
-
let newHasTokenInAttribute;
|
|
4560
|
-
// Reset the styling token applied to the host element.
|
|
4561
|
-
const { stylesheetToken: oldToken, hasTokenInClass: oldHasTokenInClass, hasTokenInAttribute: oldHasTokenInAttribute, } = context;
|
|
4562
|
-
if (!isUndefined$1(oldToken)) {
|
|
4563
|
-
if (oldHasTokenInClass) {
|
|
4564
|
-
getClassList(elm).remove(makeHostToken(oldToken));
|
|
4565
|
-
}
|
|
4566
|
-
if (oldHasTokenInAttribute) {
|
|
4567
|
-
removeAttribute(elm, makeHostToken(oldToken));
|
|
4568
|
-
}
|
|
4569
|
-
}
|
|
4570
|
-
// Apply the new template styling token to the host element, if the new template has any
|
|
4571
|
-
// associated stylesheets. In the case of light DOM, also ensure there is at least one scoped stylesheet.
|
|
4572
|
-
if (!isUndefined$1(newStylesheets) && newStylesheets.length !== 0) {
|
|
4573
|
-
newToken = newStylesheetToken;
|
|
4574
|
-
}
|
|
4575
|
-
// Set the new styling token on the host element
|
|
4576
|
-
if (!isUndefined$1(newToken)) {
|
|
4577
|
-
if (hasScopedStyles) {
|
|
4578
|
-
getClassList(elm).add(makeHostToken(newToken));
|
|
4579
|
-
newHasTokenInClass = true;
|
|
4580
|
-
}
|
|
4581
|
-
if (isSyntheticShadow) {
|
|
4582
|
-
setAttribute(elm, makeHostToken(newToken), '');
|
|
4583
|
-
newHasTokenInAttribute = true;
|
|
4584
|
-
}
|
|
4585
|
-
}
|
|
4586
|
-
// Update the styling tokens present on the context object.
|
|
4587
|
-
context.stylesheetToken = newToken;
|
|
4588
|
-
context.hasTokenInClass = newHasTokenInClass;
|
|
4589
|
-
context.hasTokenInAttribute = newHasTokenInAttribute;
|
|
4590
|
-
}
|
|
4591
|
-
function evaluateStylesheetsContent(stylesheets, stylesheetToken, vm) {
|
|
4592
|
-
const content = [];
|
|
4593
|
-
let root;
|
|
4594
|
-
for (let i = 0; i < stylesheets.length; i++) {
|
|
4595
|
-
let stylesheet = stylesheets[i];
|
|
4596
|
-
if (isArray$1(stylesheet)) {
|
|
4597
|
-
ArrayPush$1.apply(content, evaluateStylesheetsContent(stylesheet, stylesheetToken, vm));
|
|
4598
|
-
}
|
|
4599
|
-
else {
|
|
4600
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
4601
|
-
// Check for compiler version mismatch in dev mode only
|
|
4602
|
-
checkVersionMismatch(stylesheet, 'stylesheet');
|
|
4603
|
-
// in dev-mode, we support hot swapping of stylesheet, which means that
|
|
4604
|
-
// the component instance might be attempting to use an old version of
|
|
4605
|
-
// the stylesheet, while internally, we have a replacement for it.
|
|
4606
|
-
stylesheet = getStyleOrSwappedStyle(stylesheet);
|
|
4607
|
-
}
|
|
4608
|
-
const isScopedCss = stylesheet[KEY__SCOPED_CSS];
|
|
4609
|
-
// Apply the scope token only if the stylesheet itself is scoped, or if we're rendering synthetic shadow.
|
|
4610
|
-
const scopeToken = isScopedCss ||
|
|
4611
|
-
(vm.shadowMode === 1 /* ShadowMode.Synthetic */ && vm.renderMode === 1 /* RenderMode.Shadow */)
|
|
4612
|
-
? stylesheetToken
|
|
4613
|
-
: undefined;
|
|
4614
|
-
// Use the actual `:host` selector if we're rendering global CSS for light DOM, or if we're rendering
|
|
4615
|
-
// native shadow DOM. Synthetic shadow DOM never uses `:host`.
|
|
4616
|
-
const useActualHostSelector = vm.renderMode === 0 /* RenderMode.Light */
|
|
4617
|
-
? !isScopedCss
|
|
4618
|
-
: vm.shadowMode === 0 /* ShadowMode.Native */;
|
|
4619
|
-
// Use the native :dir() pseudoclass only in native shadow DOM. Otherwise, in synthetic shadow,
|
|
4620
|
-
// we use an attribute selector on the host to simulate :dir().
|
|
4621
|
-
let useNativeDirPseudoclass;
|
|
4622
|
-
if (vm.renderMode === 1 /* RenderMode.Shadow */) {
|
|
4623
|
-
useNativeDirPseudoclass = vm.shadowMode === 0 /* ShadowMode.Native */;
|
|
4624
|
-
}
|
|
4625
|
-
else {
|
|
4626
|
-
// Light DOM components should only render `[dir]` if they're inside of a synthetic shadow root.
|
|
4627
|
-
// At the top level (root is null) or inside of a native shadow root, they should use `:dir()`.
|
|
4628
|
-
if (isUndefined$1(root)) {
|
|
4629
|
-
// Only calculate the root once as necessary
|
|
4630
|
-
root = getNearestShadowComponent(vm);
|
|
4631
|
-
}
|
|
4632
|
-
useNativeDirPseudoclass = isNull(root) || root.shadowMode === 0 /* ShadowMode.Native */;
|
|
4633
|
-
}
|
|
4634
|
-
ArrayPush$1.call(content, stylesheet(scopeToken, useActualHostSelector, useNativeDirPseudoclass));
|
|
4635
|
-
}
|
|
4636
|
-
}
|
|
4637
|
-
return content;
|
|
4638
|
-
}
|
|
4639
|
-
function getStylesheetsContent(vm, template) {
|
|
4640
|
-
const { stylesheets, stylesheetToken } = template;
|
|
4641
|
-
let content = [];
|
|
4642
|
-
if (!isUndefined$1(stylesheets) && stylesheets.length !== 0) {
|
|
4643
|
-
content = evaluateStylesheetsContent(stylesheets, stylesheetToken, vm);
|
|
4644
|
-
}
|
|
4645
|
-
return content;
|
|
4646
|
-
}
|
|
4647
|
-
// It might be worth caching this to avoid doing the lookup repeatedly, but
|
|
4648
|
-
// perf testing has not shown it to be a huge improvement yet:
|
|
4649
|
-
// https://github.com/salesforce/lwc/pull/2460#discussion_r691208892
|
|
4650
|
-
function getNearestShadowComponent(vm) {
|
|
4651
|
-
let owner = vm;
|
|
4652
|
-
while (!isNull(owner)) {
|
|
4653
|
-
if (owner.renderMode === 1 /* RenderMode.Shadow */) {
|
|
4654
|
-
return owner;
|
|
4655
|
-
}
|
|
4656
|
-
owner = owner.owner;
|
|
4657
|
-
}
|
|
4658
|
-
return owner;
|
|
4659
|
-
}
|
|
4660
|
-
function getNearestNativeShadowComponent(vm) {
|
|
4661
|
-
const owner = getNearestShadowComponent(vm);
|
|
4662
|
-
if (!isNull(owner) && owner.shadowMode === 1 /* ShadowMode.Synthetic */) {
|
|
4663
|
-
// Synthetic-within-native is impossible. So if the nearest shadow component is
|
|
4664
|
-
// synthetic, we know we won't find a native component if we go any further.
|
|
4665
|
-
return null;
|
|
4666
|
-
}
|
|
4667
|
-
return owner;
|
|
4668
|
-
}
|
|
4669
|
-
function createStylesheet(vm, stylesheets) {
|
|
4670
|
-
const { renderMode, shadowMode, renderer: { ssr, insertStylesheet }, } = vm;
|
|
4671
|
-
if (renderMode === 1 /* RenderMode.Shadow */ && shadowMode === 1 /* ShadowMode.Synthetic */) {
|
|
4672
|
-
for (let i = 0; i < stylesheets.length; i++) {
|
|
4673
|
-
insertStylesheet(stylesheets[i]);
|
|
4674
|
-
}
|
|
4675
|
-
}
|
|
4676
|
-
else if (ssr || vm.hydrated) {
|
|
4677
|
-
// Note: We need to ensure that during hydration, the stylesheets method is the same as those in ssr.
|
|
4678
|
-
// This works in the client, because the stylesheets are created, and cached in the VM
|
|
4679
|
-
// the first time the VM renders.
|
|
4680
|
-
// native shadow or light DOM, SSR
|
|
4681
|
-
return ArrayMap.call(stylesheets, createInlineStyleVNode);
|
|
4682
|
-
}
|
|
4683
|
-
else {
|
|
4684
|
-
// native shadow or light DOM, DOM renderer
|
|
4685
|
-
const root = getNearestNativeShadowComponent(vm);
|
|
4686
|
-
// null root means a global style
|
|
4687
|
-
const target = isNull(root) ? undefined : root.shadowRoot;
|
|
4688
|
-
for (let i = 0; i < stylesheets.length; i++) {
|
|
4689
|
-
insertStylesheet(stylesheets[i], target);
|
|
4690
|
-
}
|
|
4691
|
-
}
|
|
4692
|
-
return null;
|
|
4693
|
-
}
|
|
4694
|
-
|
|
4695
4703
|
/*
|
|
4696
4704
|
* Copyright (c) 2018, salesforce.com, inc.
|
|
4697
4705
|
* All rights reserved.
|
|
@@ -6273,7 +6281,7 @@ function freezeTemplate(tmpl) {
|
|
|
6273
6281
|
});
|
|
6274
6282
|
}
|
|
6275
6283
|
}
|
|
6276
|
-
/* version: 2.20.
|
|
6284
|
+
/* version: 2.20.3 */
|
|
6277
6285
|
|
|
6278
6286
|
/*
|
|
6279
6287
|
* Copyright (c) 2020, salesforce.com, inc.
|
|
@@ -6735,7 +6743,7 @@ function renderComponent(tagName, Ctor, props = {}) {
|
|
|
6735
6743
|
*/
|
|
6736
6744
|
freeze(LightningElement);
|
|
6737
6745
|
seal(LightningElement.prototype);
|
|
6738
|
-
/* version: 2.20.
|
|
6746
|
+
/* version: 2.20.3 */
|
|
6739
6747
|
|
|
6740
6748
|
exports.LightningElement = LightningElement;
|
|
6741
6749
|
exports.api = api$1;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=Object.freeze({__proto__:null,invariant:function(e,t){if(!e)throw new Error(`Invariant Violation: ${t}`)},isTrue:function(e,t){if(!e)throw new Error(`Assert Violation: ${t}`)},isFalse:function(e,t){if(e)throw new Error(`Assert Violation: ${t}`)},fail:function(e){throw new Error(e)}});const{assign:t,create:n,defineProperties:r,defineProperty:o,freeze:i,getOwnPropertyDescriptor:s,getOwnPropertyNames:l,getPrototypeOf:a,hasOwnProperty:c,isFrozen:u,keys:d,seal:f,setPrototypeOf:p}=Object,{isArray:h}=Array,{copyWithin:m,fill:g,filter:w,find:y,indexOf:b,join:v,map:C,pop:E,push:k,reduce:x,reverse:S,shift:M,slice:T,sort:A,splice:O,unshift:P,forEach:$}=Array.prototype,{fromCharCode:L}=String,{charCodeAt:N,replace:R,slice:_,toLowerCase:D}=String.prototype;function F(e){return void 0===e}function I(e){return null===e}function H(e){return!0===e}function j(e){return!1===e}function B(e){return"function"==typeof e}function W(e){return"string"==typeof e}function V(){}const K={}.toString;function z(e){return e&&e.toString?h(e)?v.call(C.call(e,z),","):e.toString():"object"==typeof e?K.call(e):e+""}function G(e,t){do{const n=s(e,t);if(!F(n))return n;e=a(e)}while(null!==e)}const U=["ariaActiveDescendant","ariaAtomic","ariaAutoComplete","ariaBusy","ariaChecked","ariaColCount","ariaColIndex","ariaColSpan","ariaControls","ariaCurrent","ariaDescribedBy","ariaDetails","ariaDisabled","ariaErrorMessage","ariaExpanded","ariaFlowTo","ariaHasPopup","ariaHidden","ariaInvalid","ariaKeyShortcuts","ariaLabel","ariaLabelledBy","ariaLevel","ariaLive","ariaModal","ariaMultiLine","ariaMultiSelectable","ariaOrientation","ariaOwns","ariaPlaceholder","ariaPosInSet","ariaPressed","ariaReadOnly","ariaRelevant","ariaRequired","ariaRoleDescription","ariaRowCount","ariaRowIndex","ariaRowSpan","ariaSelected","ariaSetSize","ariaSort","ariaValueMax","ariaValueMin","ariaValueNow","ariaValueText","role"],{AriaAttrNameToPropNameMap:q,AriaPropNameToAttrNameMap:X}=(()=>{const e=n(null),t=n(null);return $.call(U,(n=>{const r=D.call(R.call(n,/^aria/,(()=>"aria-")));e[r]=n,t[n]=r})),{AriaAttrNameToPropNameMap:e,AriaPropNameToAttrNameMap:t}})();function Y(e){return e in q}const J=function(){if("object"==typeof globalThis)return globalThis;let e;try{Object.defineProperty(Object.prototype,"__magic__",{get:function(){return this},configurable:!0}),e=__magic__,delete Object.prototype.__magic__}catch(e){}finally{void 0===e&&(e=window)}return e}(),Q="http://www.w3.org/1999/xhtml",Z=new Set(["area","base","br","col","embed","hr","img","input","link","meta","source","track","wbr"]);const ee=new Map([["autofocus",new Set(["button","input","keygen","select","textarea"])],["autoplay",new Set(["audio","video"])],["checked",new Set(["command","input"])],["disabled",new Set(["button","command","fieldset","input","keygen","optgroup","select","textarea"])],["formnovalidate",new Set(["button"])],["hidden",new Set],["loop",new Set(["audio","bgsound","marquee","video"])],["multiple",new Set(["input","select"])],["muted",new Set(["audio","video"])],["novalidate",new Set(["form"])],["open",new Set(["details"])],["readonly",new Set(["input","textarea"])],["required",new Set(["input","select","textarea"])],["reversed",new Set(["ol"])],["selected",new Set(["option"])]]);function te(e,t){const n=ee.get(e);return void 0!==n&&(0===n.size||n.has(t))}const ne=new Set(["role","accesskey","class","contenteditable","contextmenu","dir","draggable","dropzone","hidden","id","itemprop","lang","slot","spellcheck","style","tabindex","title"]);function re(e){return ne.has(e)}const oe=new Map([["accessKey","accesskey"],["readOnly","readonly"],["tabIndex","tabindex"],["bgColor","bgcolor"],["colSpan","colspan"],["rowSpan","rowspan"],["contentEditable","contenteditable"],["crossOrigin","crossorigin"],["dateTime","datetime"],["formAction","formaction"],["isMap","ismap"],["maxLength","maxlength"],["minLength","minlength"],["noValidate","novalidate"],["useMap","usemap"],["htmlFor","for"]]),ie=new Map;function se(e){const t=X[e];if(!F(t))return t;const n=oe.get(e);if(!F(n))return n;const r=ie.get(e);if(!F(r))return r;let o="";for(let t=0,n=e.length;t<n;t++){const n=N.call(e,t);o+=n>=65&&n<=90?"-"+L(n+32):L(n)}return ie.set(e,o),o}const le={'"':""","'":"'","<":"<",">":">","&":"&"};function ae(e,t=!1){const n=t?/["&]/g:/["'<>&]/g;return e.replace(n,(e=>le[e]))}if("function"!=typeof Event){class e{}o(J,"Event",{value:e,configurable:!0,writable:!0})}if("function"!=typeof CustomEvent){class e extends Event{}o(J,"CustomEvent",{value:e,configurable:!0,writable:!0})}const ce={DUMMY_TEST_FLAG:null,ENABLE_ELEMENT_PATCH:null,ENABLE_FORCE_NATIVE_SHADOW_MODE_FOR_TEST:null,ENABLE_HMR:null,ENABLE_HTML_COLLECTIONS_PATCH:null,ENABLE_INNER_OUTER_TEXT_PATCH:null,ENABLE_MIXED_SHADOW_MODE:null,ENABLE_NODE_LIST_PATCH:null,ENABLE_NODE_PATCH:null,ENABLE_REACTIVE_SETTER:null,ENABLE_WIRE_SYNC_EMIT:null};J.lwcRuntimeFlags||Object.defineProperty(J,"lwcRuntimeFlags",{value:n(null)});const ue=J.lwcRuntimeFlags;let de=[];const fe=f(n(null)),pe=f([]);function he(){const e=de;de=[];for(let t=0,n=e.length;t<n;t+=1)e[t]()}function me(e){0===de.length&&Promise.resolve().then(he),k.call(de,e)}const ge=new WeakMap;let we=null;function ye(e,t){const n=ge.get(e);if(!F(n)){const e=n[t];if(!F(e))for(let t=0,n=e.length;t<n;t+=1){e[t].notify()}}}function be(e,t){if(null===we)return;const r=we,o=function(e){let t=ge.get(e);if(F(t)){const r=n(null);t=r,ge.set(e,r)}return t}(e);let i=o[t];if(F(i))i=[],o[t]=i;else if(i[0]===r)return;-1===b.call(i,r)&&r.link(i)}class ve{constructor(e){this.listeners=[],this.callback=e}observe(e){const t=we;let n;we=this;try{e()}catch(e){n=Object(e)}finally{if(we=t,void 0!==n)throw n}}reset(){const{listeners:e}=this,t=e.length;if(t>0){for(let n=0;n<t;n+=1){const t=e[n],r=b.call(e[n],this);O.call(t,r,1)}e.length=0}}notify(){this.callback.call(void 0,this)}link(e){k.call(e,this),k.call(this.listeners,e)}}function Ce(e,t){ye(e.component,t)}function Ee(e,t){be(e.component,t)}function ke(e){return`<${D.call(e.tagName)}>`}function xe(e,t){if(!u(t)&&F(t.wcStack)){const n=function(e){const t=[];let n=e;for(;!I(n);)k.call(t,ke(n)),n=n.owner;return t.reverse().join("\n\t")}(e);o(t,"wcStack",{get:()=>n})}}function Se(e){const t=e();return(null==t?void 0:t.__esModule)?t.default:t}function Me(e){return B(e)&&c.call(e,"__circular__")}const Te="undefined"!=typeof HTMLElement?HTMLElement:function(){},Ae=Te.prototype;function Oe(e){return`Using the \`${e}\` property is an anti-pattern because it rounds the value to an integer. Instead, use the \`getBoundingClientRect\` method to obtain fractional values for the size of an element and its position relative to the viewport.`}t(n(null),{accessKey:{attribute:"accesskey"},accessKeyLabel:{readOnly:!0},className:{attribute:"class",error:"Using the `className` property is an anti-pattern because of slow runtime behavior and potential conflicts with classes provided by the owner element. Use the `classList` API instead."},contentEditable:{attribute:"contenteditable"},dataset:{readOnly:!0,error:"Using the `dataset` property is an anti-pattern because it can't be statically analyzed. Expose each property individually using the `@api` decorator instead."},dir:{attribute:"dir"},draggable:{attribute:"draggable"},dropzone:{attribute:"dropzone",readOnly:!0},hidden:{attribute:"hidden"},id:{attribute:"id"},inputMode:{attribute:"inputmode"},lang:{attribute:"lang"},slot:{attribute:"slot",error:"Using the `slot` property is an anti-pattern."},spellcheck:{attribute:"spellcheck"},style:{attribute:"style"},tabIndex:{attribute:"tabindex"},title:{attribute:"title"},translate:{attribute:"translate"},isContentEditable:{readOnly:!0},offsetHeight:{readOnly:!0,error:Oe("offsetHeight")},offsetLeft:{readOnly:!0,error:Oe("offsetLeft")},offsetParent:{readOnly:!0},offsetTop:{readOnly:!0,error:Oe("offsetTop")},offsetWidth:{readOnly:!0,error:Oe("offsetWidth")},role:{attribute:"role"}});let Pe,$e=null;function Le(e,t){return e!==$e||t!==Pe}function Ne(e,t){$e=null,Pe=void 0}function Re(e,t){$e=e,Pe=t}const _e=n(null);$.call(d(X),(e=>{const t=G(Ae,e);F(t)||(_e[e]=t)})),$.call(["accessKey","dir","draggable","hidden","id","lang","spellcheck","tabIndex","title"],(e=>{const t=G(Ae,e);F(t)||(_e[e]=t)}));const{isArray:De}=Array,{prototype:Fe,getPrototypeOf:Ie,create:He,defineProperty:je,isExtensible:Be,getOwnPropertyDescriptor:We,getOwnPropertyNames:Ve,getOwnPropertySymbols:Ke,preventExtensions:ze,hasOwnProperty:Ge}=Object,{push:Ue,concat:qe}=Array.prototype;function Xe(e){return void 0===e}function Ye(e){return"function"==typeof e}const Je=new WeakMap;function Qe(e,t){Je.set(e,t)}const Ze=e=>Je.get(e)||e;class et{constructor(e,t){this.originalTarget=t,this.membrane=e}wrapDescriptor(e){if(Ge.call(e,"value"))e.value=this.wrapValue(e.value);else{const{set:t,get:n}=e;Xe(n)||(e.get=this.wrapGetter(n)),Xe(t)||(e.set=this.wrapSetter(t))}return e}copyDescriptorIntoShadowTarget(e,t){const{originalTarget:n}=this,r=We(n,t);if(!Xe(r)){const n=this.wrapDescriptor(r);je(e,t,n)}}lockShadowTarget(e){const{originalTarget:t}=this;qe.call(Ve(t),Ke(t)).forEach((t=>{this.copyDescriptorIntoShadowTarget(e,t)}));const{membrane:{tagPropertyKey:n}}=this;Xe(n)||Ge.call(e,n)||je(e,n,He(null)),ze(e)}apply(e,t,n){}construct(e,t,n){}get(e,t){const{originalTarget:n,membrane:{valueObserved:r}}=this,o=n[t];return r(n,t),this.wrapValue(o)}has(e,t){const{originalTarget:n,membrane:{tagPropertyKey:r,valueObserved:o}}=this;return o(n,t),t in n||t===r}ownKeys(e){const{originalTarget:t,membrane:{tagPropertyKey:n}}=this,r=Xe(n)||Ge.call(t,n)?[]:[n];return Ue.apply(r,Ve(t)),Ue.apply(r,Ke(t)),r}isExtensible(e){const{originalTarget:t}=this;return!!Be(e)&&(!!Be(t)||(this.lockShadowTarget(e),!1))}getPrototypeOf(e){const{originalTarget:t}=this;return Ie(t)}getOwnPropertyDescriptor(e,t){const{originalTarget:n,membrane:{valueObserved:r,tagPropertyKey:o}}=this;r(n,t);let i=We(n,t);if(Xe(i)){if(t!==o)return;return i={value:void 0,writable:!1,configurable:!1,enumerable:!1},je(e,o,i),i}return!1===i.configurable&&this.copyDescriptorIntoShadowTarget(e,t),this.wrapDescriptor(i)}}const tt=new WeakMap,nt=new WeakMap,rt=new WeakMap,ot=new WeakMap;class it extends et{wrapValue(e){return this.membrane.getProxy(e)}wrapGetter(e){const t=tt.get(e);if(!Xe(t))return t;const n=this,r=function(){return n.wrapValue(e.call(Ze(this)))};return tt.set(e,r),rt.set(r,e),r}wrapSetter(e){const t=nt.get(e);if(!Xe(t))return t;const n=function(t){e.call(Ze(this),Ze(t))};return nt.set(e,n),ot.set(n,e),n}unwrapDescriptor(e){if(Ge.call(e,"value"))e.value=Ze(e.value);else{const{set:t,get:n}=e;Xe(n)||(e.get=this.unwrapGetter(n)),Xe(t)||(e.set=this.unwrapSetter(t))}return e}unwrapGetter(e){const t=rt.get(e);if(!Xe(t))return t;const n=this,r=function(){return Ze(e.call(n.wrapValue(this)))};return tt.set(r,e),rt.set(e,r),r}unwrapSetter(e){const t=ot.get(e);if(!Xe(t))return t;const n=this,r=function(t){e.call(n.wrapValue(this),n.wrapValue(t))};return nt.set(r,e),ot.set(e,r),r}set(e,t,n){const{originalTarget:r,membrane:{valueMutated:o}}=this;return r[t]!==n?(r[t]=n,o(r,t)):"length"===t&&De(r)&&o(r,t),!0}deleteProperty(e,t){const{originalTarget:n,membrane:{valueMutated:r}}=this;return delete n[t],r(n,t),!0}setPrototypeOf(e,t){}preventExtensions(e){if(Be(e)){const{originalTarget:t}=this;if(ze(t),Be(t))return!1;this.lockShadowTarget(e)}return!0}defineProperty(e,t,n){const{originalTarget:r,membrane:{valueMutated:o,tagPropertyKey:i}}=this;return t===i&&!Ge.call(r,t)||(je(r,t,this.unwrapDescriptor(n)),!1===n.configurable&&this.copyDescriptorIntoShadowTarget(e,t),o(r,t),!0)}}const st=new WeakMap,lt=new WeakMap;class at extends et{wrapValue(e){return this.membrane.getReadOnlyProxy(e)}wrapGetter(e){const t=st.get(e);if(!Xe(t))return t;const n=this,r=function(){return n.wrapValue(e.call(Ze(this)))};return st.set(e,r),r}wrapSetter(e){const t=lt.get(e);if(!Xe(t))return t;const n=function(e){};return lt.set(e,n),n}set(e,t,n){return!1}deleteProperty(e,t){return!1}setPrototypeOf(e,t){}preventExtensions(e){return!1}defineProperty(e,t,n){return!1}}function ct(e){if(null===e)return!1;if("object"!=typeof e)return!1;if(De(e))return!0;const t=Ie(e);return t===Fe||null===t||null===Ie(t)}const ut=(e,t)=>{},dt=(e,t)=>{};function ft(e){return De(e)?[]:{}}const pt=Symbol.for("@@lockerLiveValue"),ht=new class{constructor(e={}){this.readOnlyObjectGraph=new WeakMap,this.reactiveObjectGraph=new WeakMap;const{valueMutated:t,valueObserved:n,valueIsObservable:r,tagPropertyKey:o}=e;this.valueMutated=Ye(t)?t:dt,this.valueObserved=Ye(n)?n:ut,this.valueIsObservable=Ye(r)?r:ct,this.tagPropertyKey=o}getProxy(e){const t=Ze(e);return this.valueIsObservable(t)?this.readOnlyObjectGraph.get(t)===e?e:this.getReactiveHandler(t):t}getReadOnlyProxy(e){return e=Ze(e),this.valueIsObservable(e)?this.getReadOnlyHandler(e):e}unwrapProxy(e){return Ze(e)}getReactiveHandler(e){let t=this.reactiveObjectGraph.get(e);if(Xe(t)){const n=new it(this,e);t=new Proxy(ft(e),n),Qe(t,e),this.reactiveObjectGraph.set(e,t)}return t}getReadOnlyHandler(e){let t=this.readOnlyObjectGraph.get(e);if(Xe(t)){const n=new at(this,e);t=new Proxy(ft(e),n),Qe(t,e),this.readOnlyObjectGraph.set(e,t)}return t}}({valueObserved:be,valueMutated:ye,tagPropertyKey:pt});function mt(e,t){const{get:n,set:r,enumerable:o,configurable:i}=t;if(!B(n))throw new TypeError;if(!B(r))throw new TypeError;return{enumerable:o,configurable:i,get(){const t=nr(this);if(!Rn(t))return Ee(t,e),n.call(t.elm)},set(t){const n=nr(this);return t!==n.cmpProps[e]&&(n.cmpProps[e]=t,Ce(n,e)),r.call(n.elm,t)}}}const gt=function(){if(I(Nn))throw new ReferenceError("Illegal constructor");const e=Nn,{def:t,elm:n}=e,{bridge:r}=t,o=this;if(p(n,r.prototype),e.component=this,1===arguments.length){const{callHook:t,setHook:n,getHook:r}=arguments[0];e.callHook=t,e.setHook=n,e.getHook=r}return this[pt]=void 0,tr(o,e),tr(n,e),1===e.renderMode?e.renderRoot=wt(e):e.renderRoot=n,this};function wt(e){const{elm:t,mode:n,shadowMode:r,def:{ctor:o},renderer:{attachShadow:i}}=e,s=i(t,{"$$lwc-synthetic-mode":1===r,delegatesFocus:Boolean(o.delegatesFocus),mode:n});return e.shadowRoot=s,tr(s,e),s}gt.prototype={constructor:gt,dispatchEvent(e){const t=nr(this),{elm:n,renderer:{dispatchEvent:r}}=t;return r(n,e)},addEventListener(e,t,n){const r=nr(this),{elm:o,renderer:{addEventListener:i}}=r;i(o,e,Wn(r,t),n)},removeEventListener(e,t,n){const r=nr(this),{elm:o,renderer:{removeEventListener:i}}=r;i(o,e,Wn(r,t),n)},hasAttribute(e){const t=nr(this),{elm:n,renderer:{getAttribute:r}}=t;return!I(r(n,e))},hasAttributeNS(e,t){const n=nr(this),{elm:r,renderer:{getAttribute:o}}=n;return!I(o(r,t,e))},removeAttribute(e){const t=nr(this),{elm:n,renderer:{removeAttribute:r}}=t;Re(n,e),r(n,e),Ne()},removeAttributeNS(e,t){const{elm:n,renderer:{removeAttribute:r}}=nr(this);Re(n,t),r(n,t,e),Ne()},getAttribute(e){const t=nr(this),{elm:n}=t,{getAttribute:r}=t.renderer;return r(n,e)},getAttributeNS(e,t){const n=nr(this),{elm:r}=n,{getAttribute:o}=n.renderer;return o(r,t,e)},setAttribute(e,t){const n=nr(this),{elm:r,renderer:{setAttribute:o}}=n;Re(r,e),o(r,e,t),Ne()},setAttributeNS(e,t,n){const r=nr(this),{elm:o,renderer:{setAttribute:i}}=r;Re(o,t),i(o,t,n,e),Ne()},getBoundingClientRect(){const e=nr(this),{elm:t,renderer:{getBoundingClientRect:n}}=e;return n(t)},get isConnected(){const e=nr(this),{elm:t,renderer:{isConnected:n}}=e;return n(t)},get classList(){const e=nr(this),{elm:t,renderer:{getClassList:n}}=e;return n(t)},get template(){return nr(this).shadowRoot},get shadowRoot(){return null},get children(){const e=nr(this);return e.renderer.getChildren(e.elm)},get childNodes(){const e=nr(this);return e.renderer.getChildNodes(e.elm)},get firstChild(){const e=nr(this);return e.renderer.getFirstChild(e.elm)},get firstElementChild(){const e=nr(this);return e.renderer.getFirstElementChild(e.elm)},get lastChild(){const e=nr(this);return e.renderer.getLastChild(e.elm)},get lastElementChild(){const e=nr(this);return e.renderer.getLastElementChild(e.elm)},render(){return nr(this).def.template},toString(){return`[object ${nr(this).def.name}]`}};const yt=n(null),bt=["getElementsByClassName","getElementsByTagName","querySelector","querySelectorAll"];for(const e of bt)yt[e]={value(t){const n=nr(this),{elm:r,renderer:o}=n;return o[e](r,t)},configurable:!0,enumerable:!0,writable:!0};r(gt.prototype,yt);const vt=n(null);for(const e in _e)vt[e]=mt(e,_e[e]);function Ct(e){return{get(){const t=nr(this);return Ee(t,e),t.cmpFields[e]},set(t){const n=nr(this);t!==n.cmpFields[e]&&(n.cmpFields[e]=t,Ce(n,e))},enumerable:!0,configurable:!0}}function Et(e){return{get(){const t=nr(this);if(!Rn(t))return Ee(t,e),t.cmpProps[e]},set(t){const n=nr(this);n.cmpProps[e]=t,Ce(n,e)},enumerable:!0,configurable:!0}}r(gt.prototype,vt),o(gt,"CustomElementConstructor",{get(){throw new ReferenceError("The current runtime does not support CustomElementConstructor.")},configurable:!0});class kt extends ve{constructor(e,t){super((()=>{j(this.debouncing)&&(this.debouncing=!0,me((()=>{if(H(this.debouncing)){const{value:n}=this,{isDirty:r,component:o,idx:i}=e;t.call(o,n),this.debouncing=!1,H(e.isDirty)&&j(r)&&i>0&&Jn(e)}})))})),this.debouncing=!1}reset(e){super.reset(),this.debouncing=!1,arguments.length>0&&(this.value=e)}}function xt(e,t){const{get:n,set:r,enumerable:o,configurable:i}=t;if(!B(n))throw new Error;return{get(){return n.call(this)},set(t){const n=nr(this);if(r)if(ue.ENABLE_REACTIVE_SETTER){let o=n.oar[e];F(o)&&(o=n.oar[e]=new kt(n,r)),o.reset(t),o.observe((()=>{r.call(this,t)}))}else r.call(this,t)},enumerable:o,configurable:i}}function St(e){return{get(){const t=nr(this);return Ee(t,e),t.cmpFields[e]},set(t){const n=nr(this),r=ht.getProxy(t);r!==n.cmpFields[e]&&(n.cmpFields[e]=r,Ce(n,e))},enumerable:!0,configurable:!0}}function Mt(e){return{get(){const t=nr(this);return Ee(t,e),t.cmpFields[e]},set(t){const n=nr(this);t!==n.cmpFields[e]&&(n.cmpFields[e]=t,Ce(n,e))},enumerable:!0,configurable:!0}}const Tt=new Map;const At={apiMethods:fe,apiFields:fe,apiFieldsConfig:fe,wiredMethods:fe,wiredFields:fe,observedFields:fe};const Ot=new Set;function Pt(){return[]}Ot.add(Pt);const $t=n(null),Lt=n(null);function Nt(e){let t=$t[e];return F(t)&&(t=$t[e]=function(){const t=nr(this),{getHook:n}=t;return n(t.component,e)}),t}function Rt(e){let t=Lt[e];return F(t)&&(t=Lt[e]=function(t){const n=nr(this),{setHook:r}=n;t=ht.getReadOnlyProxy(t),r(n.component,e,t)}),t}function _t(e){return function(){const t=nr(this),{callHook:n,component:r}=t,o=r[e];return n(t.component,o,T.call(arguments))}}function Dt(e,t){return function(n,r,o){if(r===o)return;const i=e[n];F(i)?F(t)||t.apply(this,arguments):Le(this,n)&&(this[i]=o)}}function Ft(e,t,i){let s;B(e)?s=class extends e{}:(s=function(){throw new TypeError("Illegal constructor")},p(s,e),p(s.prototype,e.prototype),o(s.prototype,"constructor",{writable:!0,configurable:!0,value:s}));const l=n(null),{attributeChangedCallback:a}=e.prototype,{observedAttributes:c=[]}=e,u=n(null);for(let e=0,n=t.length;e<n;e+=1){const n=t[e];l[se(n)]=n,u[n]={get:Nt(n),set:Rt(n),enumerable:!0,configurable:!0}}for(let e=0,t=i.length;e<t;e+=1){const t=i[e];u[t]={value:_t(t),writable:!0,configurable:!0}}return u.attributeChangedCallback={value:Dt(l,a)},o(s,"observedAttributes",{get:()=>[...c,...d(l)]}),r(s.prototype,u),s}const It=Ft(Te,l(_e),[]);i(It),f(It.prototype);const Ht=new WeakMap;function jt(e){const{shadowSupportMode:o,renderMode:i}=e,s=function(e){const t=Tt.get(e);return F(t)?At:t}(e),{apiFields:l,apiFieldsConfig:c,apiMethods:u,wiredFields:f,wiredMethods:p,observedFields:h}=s,m=e.prototype;let{connectedCallback:g,disconnectedCallback:w,renderedCallback:y,errorCallback:b,render:v}=m;const C=function(e){let t=a(e);if(I(t))throw new ReferenceError(`Invalid prototype chain for ${e.name}, you must extend LightningElement.`);if(Me(t)){const e=Se(t);t=e===t?gt:e}return t}(e),E=C!==gt?Wt(C):Vt,k=Ft(E.bridge,d(l),d(u)),x=t(n(null),E.props,l),S=t(n(null),E.propsConfig,c),M=t(n(null),E.methods,u),T=t(n(null),E.wire,f,p);g=g||E.connectedCallback,w=w||E.disconnectedCallback,y=y||E.renderedCallback,b=b||E.errorCallback,v=v||E.render;let A=E.shadowSupportMode;F(o)||(A=o);let O=E.renderMode;F(i)||(O="light"===i?0:1);const P=function(e){return Fn.get(e)}(e)||E.template,$=e.name||E.name;r(m,h);return{ctor:e,name:$,wire:T,props:x,propsConfig:S,methods:M,bridge:k,template:P,renderMode:O,shadowSupportMode:A,connectedCallback:g,disconnectedCallback:w,renderedCallback:y,errorCallback:b,render:v}}function Bt(e){if(!B(e))return!1;if(e.prototype instanceof gt)return!0;let t=e;do{if(Me(t)){const e=Se(t);if(e===t)return!0;t=e}if(t===gt)return!0}while(!I(t)&&(t=a(t)));return!1}function Wt(e){let t=Ht.get(e);if(F(t)){if(Me(e)){return t=Wt(Se(e)),Ht.set(e,t),t}if(!Bt(e))throw new TypeError(`${e} is not a valid component, or does not extends LightningElement from "lwc". You probably forgot to add the extend clause on the class declaration.`);t=jt(e),Ht.set(e,t)}return t}const Vt={ctor:gt,name:gt.name,props:vt,propsConfig:fe,methods:fe,renderMode:1,shadowSupportMode:"reset",wire:fe,bridge:It,template:Pt,render:gt.prototype.render};function Kt(e){const{type:t}=e;return 2===t||3===t}function zt(e,t){return e.key===t.key&&e.sel===t.sel}function Gt(e,t){return"input"===e&&("value"===t||"checked"===t)}const Ut=n(null);function qt(e){if(null==e)return fe;e=W(e)?e:e+"";let t=Ut[e];if(t)return t;t=n(null);let r,o=0;const i=e.length;for(r=0;r<i;r++)32===N.call(e,r)&&(r>o&&(t[_.call(e,o,r)]=!0),o=r+1);return r>o&&(t[_.call(e,o,r)]=!0),Ut[e]=t,t}function Xt(e,t,n,r){var o;o=t,un.has(o)?function(e,t,n,r){let o=0,i=0,s=e.length-1,l=e[0],a=e[s];const c=t.length-1;let u,d,f,p,h=c,m=t[0],g=t[h],w=!1;for(;o<=s&&i<=h;)tn(l)?tn(a)?tn(m)?tn(g)?zt(l,m)?(Yt(l,m,r),l=e[++o],m=t[++i]):zt(a,g)?(Yt(a,g,r),a=e[--s],g=t[--h]):zt(l,g)?(Yt(l,g,r),ln(l.elm,n,r.nextSibling(a.elm),r),l=e[++o],g=t[--h]):zt(a,m)?(Yt(a,m,r),ln(m.elm,n,l.elm,r),a=e[--s],m=t[++i]):(void 0===u&&(u=dn(e,o,s)),d=u[m.key],F(d)?(Jt(m,n,r,l.elm),m=t[++i]):(f=e[d],tn(f)&&(f.sel!==m.sel?Jt(m,n,r,l.elm):(Yt(f,m,r),w||(w=!0,e=[...e]),e[d]=void 0,ln(f.elm,n,l.elm,r))),m=t[++i])):g=t[--h]:m=t[++i]:a=e[--s]:l=e[++o];if(o<=s||i<=h)if(o>s){let e,o=h;do{e=t[++o]}while(!tn(e)&&o<c);p=tn(e)?e.elm:null,Qt(t,n,r,p,i,h+1)}else en(e,n,r,!0,o,s+1)}(e,t,n,r):function(e,t,n,r){const o=e.length,i=t.length;if(0===o)return void Qt(t,n,r,null);if(0===i)return void en(e,n,r,!0);let s=null;for(let o=i-1;o>=0;o-=1){const i=e[o],l=t[o];l!==i&&(tn(i)?tn(l)?(Yt(i,l,r),s=l.elm):Zt(i,n,r,!0):tn(l)&&(Jt(l,n,r,s),s=l.elm))}}(e,t,n,r)}function Yt(e,t,n){var r,o;if(e!==t)switch(t.type){case 0:case 1:!function(e,t,n){t.elm=e.elm,t.text!==e.text&&sn(t,n)}(e,t,n);break;case 4:t.elm=e.elm;break;case 2:!function(e,t,n){const r=t.elm=e.elm;an(e,t,n),Xt(e.children,t.children,r,n)}(e,t,null!==(r=t.data.renderer)&&void 0!==r?r:n);break;case 3:!function(e,t,n){const r=t.elm=e.elm,o=t.vm=e.vm;an(e,t,n),F(o)||cn(t,o);Xt(e.children,t.children,r,n),F(o)||Jn(o)}(e,t,null!==(o=t.data.renderer)&&void 0!==o?o:n)}}function Jt(e,t,n,r){var o,i;switch(e.type){case 0:!function(e,t,n,r){const{owner:o}=e,{createText:i}=r,s=e.elm=i(e.text);on(s,o,r),ln(s,t,n,r)}(e,t,r,n);break;case 1:!function(e,t,n,r){const{owner:o}=e,{createComment:i}=r,s=e.elm=i(e.text);on(s,o,r),ln(s,t,n,r)}(e,t,r,n);break;case 4:!function(e,t,n,r){const{owner:o}=e,{cloneNode:i,isSyntheticShadowDefined:s}=r,l=e.elm=i(e.fragment,!0);on(l,o,r);const{renderMode:a,shadowMode:c}=o;s&&(1!==c&&0!==a||(l.$shadowStaticNode$=!0));ln(l,t,n,r)}(e,t,r,n);break;case 2:!function(e,t,n,r){const{sel:o,owner:i,data:{svg:s}}=e,{createElement:l}=r,a=H(s)?"http://www.w3.org/2000/svg":void 0,c=l(o,a);on(c,i,r),function(e,t,n){const{owner:r}=t;if(rn(e,r,n),1===r.shadowMode){const{data:{context:n}}=t,{stylesheetToken:o}=r.context;F(n)||F(n.lwc)||"manual"!==n.lwc.dom||function(e){e.$domManual$=!0}(e),F(o)||nn(e,o)}}(c,e,r),e.elm=c,an(null,e,r),ln(c,t,n,r),Qt(e.children,c,r,null)}(e,t,r,null!==(o=e.data.renderer)&&void 0!==o?o:n);break;case 3:!function(e,t,n,r){const{sel:o,owner:i}=e,s=function(e,t){const{getCustomElement:n,HTMLElementExported:r,defineCustomElement:o}=t;let i=n(e=e.toLowerCase());return F(i)?(i=class extends r{constructor(e){super(),B(e)&&e(this)}},o(e,i),i):i}(o,r);let l;const a=new s((t=>{l=function(e,t,n){let r=rr(e);if(!F(r))return r;const{sel:o,mode:i,ctor:s,owner:l}=t;if(rn(e,l,n),1===l.shadowMode){const{stylesheetToken:t}=l.context;F(t)||nn(e,t)}return r=er(e,s,n,{mode:i,owner:l,tagName:o}),r}(t,e,r)}));if(on(a,i,r),e.elm=a,e.vm=l,l)cn(e,l);else if(e.ctor!==s)throw new TypeError("Incorrect Component Constructor");an(null,e,r),ln(a,t,n,r),l&&lr(l);Qt(e.children,a,r,null),l&&function(e){or(e)}(l)}(e,t,r,null!==(i=e.data.renderer)&&void 0!==i?i:n)}}function Qt(e,t,n,r,o=0,i=e.length){for(;o<i;++o){const i=e[o];tn(i)&&Jt(i,t,n,r)}}function Zt(e,t,n,r=!1){const{type:o,elm:i,sel:s}=e;switch(r&&function(e,t,n){n.remove(e,t)}(i,t,n),o){case 2:{const t="slot"===s&&1===e.owner.shadowMode;en(e.children,i,n,t);break}case 3:{const{vm:t}=e;F(t)||function(e){Zn(e)}(t)}}}function en(e,t,n,r=!1,o=0,i=e.length){for(;o<i;++o){const i=e[o];tn(i)&&Zt(i,t,n,r)}}function tn(e){return null!=e}function nn(e,t){e.$shadowToken$=t}function rn(e,t,n){const{cmpTemplate:r,context:o}=t,{getClassList:i}=n,s=null==r?void 0:r.stylesheetToken;!F(s)&&o.hasScopedStyles&&i(e).add(s)}function on(e,t,n){const{renderRoot:r,renderMode:o,shadowMode:i}=t,{isSyntheticShadowDefined:s}=n;s&&(1!==i&&0!==o||(e.$shadowResolver$=r.$shadowResolver$))}function sn(e,t){const{elm:n,text:r}=e,{setText:o}=t;o(n,r)}function ln(e,t,n,r){r.insert(e,t,n)}function an(e,t,n){I(e)&&(function(e,t){const{elm:n,data:{on:r}}=e;if(F(r))return;const{addEventListener:o}=t;for(const e in r)o(n,e,r[e])}(t,n),function(e,t){const{elm:n,data:{classMap:r}}=e;if(F(r))return;const{getClassList:o}=t,i=o(n);for(const e in r)i.add(e)}(t,n),function(e,t){const{elm:n,data:{styleDecls:r}}=e;if(F(r))return;const{setCSSStyleProperty:o}=t;for(let e=0;e<r.length;e++){const[t,i,s]=r[e];o(n,t,i,s)}}(t,n)),function(e,t,n){const{elm:r,data:{className:o}}=t,i=I(e)?void 0:e.data.className;if(i===o)return;const{getClassList:s}=n,l=s(r),a=qt(o),c=qt(i);let u;for(u in c)F(a[u])&&l.remove(u);for(u in a)F(c[u])&&l.add(u)}(e,t,n),function(e,t,n){const{elm:r,data:{style:o}}=t;if((I(e)?void 0:e.data.style)===o)return;const{setAttribute:i,removeAttribute:s}=n;W(o)&&""!==o?i(r,"style",o):s(r,"style")}(e,t,n),function(e,t,n){const{attrs:r}=t.data;if(F(r))return;const o=I(e)?fe:e.data.attrs;if(o===r)return;const{elm:i}=t,{setAttribute:s,removeAttribute:l}=n;for(const e in r){const t=r[e];o[e]!==t&&(Re(i,e),58===N.call(e,3)?s(i,e,t,"http://www.w3.org/XML/1998/namespace"):58===N.call(e,5)?s(i,e,t,"http://www.w3.org/1999/xlink"):I(t)||F(t)?l(i,e):s(i,e,t),Ne())}}(e,t,n),function(e,t,n){const{props:r}=t.data;if(F(r))return;const o=I(e)?fe:e.data.props;if(o===r)return;const i=I(e),{elm:s,sel:l}=t,{getProperty:a,setProperty:c}=n;for(const e in r){const t=r[e];(i||t!==(Gt(l,e)?a(s,e):o[e]))&&c(s,e,t)}}(e,t,n)}function cn(e,t){const r=e.aChildren||e.children;t.aChildren=r;const{renderMode:o,shadowMode:i}=t;1!==i&&0!==o||(!function(e,t){var r;const{cmpSlots:o}=e,i=e.cmpSlots=n(null);for(let e=0,n=t.length;e<n;e+=1){const n=t[e];if(I(n))continue;let o="";Kt(n)&&(o=(null===(r=n.data.attrs)||void 0===r?void 0:r.slot)||"");const s=i[o]=i[o]||[];k.call(s,n)}if(j(e.isDirty)){const t=d(o);if(t.length!==d(i).length)return void jn(e);for(let n=0,r=t.length;n<r;n+=1){const r=t[n];if(F(i[r])||o[r].length!==i[r].length)return void jn(e);const s=o[r],l=i[r];for(let t=0,n=i[r].length;t<n;t+=1)if(s[t]!==l[t])return void jn(e)}}}(t,r),e.aChildren=r,e.children=pe)}const un=new WeakMap;function dn(e,t,n){const r={};for(let o=t;o<=n;++o){const t=e[o];if(tn(t)){const{key:e}=t;void 0!==e&&(r[e]=o)}}return r}const fn=Symbol.iterator;function pn(e,t,n=pe){const r=An();const{key:o}=t;return{type:2,sel:e,data:t,children:n,elm:undefined,key:o,owner:r}}function hn(e,t,n,r=pe){const o=An(),{key:i}=n;const s={type:3,sel:e,data:n,children:r,elm:undefined,key:i,ctor:t,owner:o,mode:"open",aChildren:undefined,vm:undefined};return function(e){k.call(An().velements,e)}(s),s}const mn=new Map;let gn=0;function wn(e){var t;return t=e,un.set(t,1),e}let yn=()=>{throw new Error("sanitizeHtmlContent hook must be implemented.")};const bn=i({s:function(e,t,n,r){F(r)||F(r[e])||0===r[e].length||(n=r[e]);const o=An(),{renderMode:i,shadowMode:s}=o;return 0===i?(wn(n),n):(1===s&&wn(n),pn("slot",t,n))},h:pn,c:hn,i:function(e,t){const n=[];if(wn(n),F(e)||null===e)return n;const r=e[fn]();let o=r.next(),i=0,{value:s,done:l}=o;for(;!1===l;){o=r.next(),l=o.done;const e=t(s,i,0===i,!0===l);h(e)?k.apply(n,e):k.call(n,e),i+=1,s=o.value}return n},f:function(e){const t=e.length,n=[];wn(n);for(let r=0;r<t;r+=1){const t=e[r];h(t)?k.apply(n,t):k.call(n,t)}return n},t:function(e){return{type:0,sel:undefined,text:e,elm:undefined,key:undefined,owner:An()}},d:function(e){return null==e?"":String(e)},b:function(e){const t=An();if(I(t))throw new Error;const n=t;return function(t){Dn(n,e,n.component,t)}},k:function(e,t){switch(typeof t){case"number":case"string":return e+":"+t}},co:function(e){return{type:1,sel:undefined,text:e,elm:undefined,key:undefined,owner:An()}},dc:function(e,t,n,r=pe){if(null==t)return null;if(!Bt(t))throw new Error(`Invalid LWC Constructor ${z(t)} for custom element <${e}>.`);let o=mn.get(t);return F(o)&&(o=gn++,mn.set(t,o)),hn(e,t,Object.assign(Object.assign({},n),{key:`dc:${o}:${n.key}`}),r)},ti:function(e){return e>0&&!(H(e)||j(e))?0:e},st:function(e,t){return{type:4,sel:void 0,key:t,elm:void 0,fragment:e,owner:An()}},gid:function(e){const t=An();if(F(e)||""===e)return e;if(I(e))return null;const{idx:n,shadowMode:r}=t;return 1===r?R.call(e,/\S+/g,(e=>`${e}-${n}`)):e},fid:function(e){const t=An();if(F(e)||""===e)return e;if(I(e))return null;const{idx:n,shadowMode:r}=t;return 1===r&&/^#/.test(e)?`${e}-${n}`:e},shc:function(e){return yn(e)}});function vn(e){return`${e}-host`}function Cn(e){return bn.h("style",{key:"style",attrs:{type:"text/css"}},[bn.t(e)])}function En(e,t,n){const r=[];let o;for(let i=0;i<e.length;i++){let s=e[i];if(h(s))k.apply(r,En(s,t,n));else{const e=s.$scoped$,i=e||1===n.shadowMode&&1===n.renderMode?t:void 0,l=0===n.renderMode?!e:0===n.shadowMode;let a;1===n.renderMode?a=0===n.shadowMode:(F(o)&&(o=xn(n)),a=I(o)||0===o.shadowMode),k.call(r,s(i,l,a))}}return r}function kn(e,t){const{stylesheets:n,stylesheetToken:r}=t;let o=[];return F(n)||0===n.length||(o=En(n,r,e)),o}function xn(e){let t=e;for(;!I(t);){if(1===t.renderMode)return t;t=t.owner}return t}function Sn(e,t){const{renderMode:n,shadowMode:r,renderer:{ssr:o,insertStylesheet:i}}=e;if(1===n&&1===r)for(let e=0;e<t.length;e++)i(t[e]);else{if(o||e.hydrated)return C.call(t,Cn);{const n=function(e){const t=xn(e);return I(t)||1!==t.shadowMode?t:null}(e),r=I(n)?void 0:n.shadowRoot;for(let e=0;e<t.length;e++)i(t[e],r)}}return null}let Mn=!1,Tn=null;function An(){return Tn}function On(e){Tn=e}const Pn=($n=(e,t)=>{const{createFragment:n}=t;return n(e)},(e,...t)=>{const r=n(null);return function(){const{context:{hasScopedStyles:n,stylesheetToken:o},shadowMode:i,renderer:s}=An(),l=!F(o),a=1===i;let c=0;if(l&&n&&(c|=1),l&&a&&(c|=2),!F(r[c]))return r[c];const u=n&&l?" "+o:"",d=n&&l?` class="${o}"`:"",f=l&&a?" "+o:"";let p="";for(let n=0,r=t.length;n<r;n++)switch(t[n]){case 0:p+=e[n]+u;break;case 1:p+=e[n]+d;break;case 2:p+=e[n]+f;break;case 3:p+=e[n]+d+f}return p+=e[e.length-1],r[c]=$n(p,s),r[c]}});var $n;function Ln(e,t){const r=Mn,o=Tn;let i=[];return fr(e,e.owner,(()=>{Tn=e}),(()=>{const{component:r,context:o,cmpSlots:s,cmpTemplate:l,tro:a}=e;a.observe((()=>{if(t!==l){if(I(l)||dr(e),a=t,!Ot.has(a))throw new TypeError(`Invalid template returned by the render() method on ${e}. It must return an imported template (e.g.: \`import html from "./${e.def.name}.html"\`), instead, it has returned: ${z(t)}.`);e.cmpTemplate=t,o.tplCache=n(null),o.hasScopedStyles=function(e){const{stylesheets:t}=e;if(!F(t))for(let e=0;e<t.length;e++)if(H(t[e].$scoped$))return!0;return!1}(t),function(e,t){const{elm:n,context:r,renderMode:o,shadowMode:i,renderer:{getClassList:s,removeAttribute:l,setAttribute:a}}=e,{stylesheets:c,stylesheetToken:u}=t,d=1===o&&1===i,{hasScopedStyles:f}=r;let p,h,m;const{stylesheetToken:g,hasTokenInClass:w,hasTokenInAttribute:y}=r;F(g)||(w&&s(n).remove(vn(g)),y&&l(n,vn(g))),F(c)||0===c.length||(p=u),F(p)||(f&&(s(n).add(vn(p)),h=!0),d&&(a(n,vn(p),""),m=!0)),r.stylesheetToken=p,r.hasTokenInClass=h,r.hasTokenInAttribute=m}(e,t);const r=kn(e,t);o.styleVNodes=0===r.length?null:Sn(e,r)}var a;e.velements=[],Mn=!0,i=t.call(void 0,bn,r,s,o.tplCache);const{styleVNodes:c}=o;I(c)||P.apply(i,c)}))}),(()=>{Mn=r,Tn=o})),i}let Nn=null;function Rn(e){return Nn===e}function _n(e,t,n){const{component:r,callHook:o,owner:i}=e;fr(e,i,V,(()=>{o(r,t,n)}),V)}function Dn(e,t,n,r){const{callHook:o,owner:i}=e;fr(e,i,V,(()=>{o(n,t,[r])}),V)}const Fn=new Map;function In(e){return new ve((()=>{const{isDirty:t}=e;j(t)&&(jn(e),function(e){const{renderer:{ssr:t}}=e;if(H(t)||H(e.isScheduled))return;e.isScheduled=!0,0===ir.length&&me(sr);k.call(ir,e)}(e))}))}function Hn(e){e.tro.reset();const t=function(e){const{def:{render:t},callHook:n,component:r,owner:o}=e,i=An();let s,l=!1;return fr(e,o,(()=>{On(e)}),(()=>{e.tro.observe((()=>{s=n(r,t),l=!0}))}),(()=>{On(i)})),l?Ln(e,s):[]}(e);return e.isDirty=!1,e.isScheduled=!1,t}function jn(e){e.isDirty=!0}const Bn=new WeakMap;function Wn(e,t){if(!B(t))throw new TypeError;let n=Bn.get(t);return F(n)&&(n=function(n){Dn(e,t,void 0,n)},Bn.set(t,n)),n}const Vn=n(null),Kn=["rendered","connected","disconnected"];function zn(e,t){const{component:n,def:r,context:o}=e;for(let e=0,i=t.length;e<i;++e)t[e].call(void 0,n,{},r,o)}let Gn=0;const Un=new WeakMap;function qn(e,t,n=[]){return t.apply(e,n)}function Xn(e,t,n){e[t]=n}function Yn(e,t){return e[t]}function Jn(e){or(e)}function Qn(e){const t=nr(e);1===t.state&&function(e){Zn(nr(e))}(e),lr(t),or(t)}function Zn(e){const{state:t}=e;if(2!==t){const{oar:t,tro:n}=e;n.reset();for(const e in t)t[e].reset();!function(e){j(e.isDirty)&&(e.isDirty=!0);e.state=2;const{disconnected:t}=Vn;t&&zn(e,t);ar(e)&&function(e){const{wiredDisconnecting:t}=e.context;fr(e,e,V,(()=>{for(let e=0,n=t.length;e<n;e+=1)t[e]()}),V)}(e);const{disconnectedCallback:n}=e.def;F(n)||_n(e,n)}(e),cr(e),function(e){const{aChildren:t}=e;ur(t)}(e)}}function er(e,t,r,o){const{mode:i,owner:s,tagName:l,hydrated:a}=o,c=Wt(t),u={elm:e,def:c,idx:Gn++,state:0,isScheduled:!1,isDirty:!0,tagName:l,mode:i,owner:s,children:pe,aChildren:pe,velements:pe,cmpProps:n(null),cmpFields:n(null),cmpSlots:n(null),oar:n(null),cmpTemplate:null,hydrated:Boolean(a),renderMode:c.renderMode,context:{stylesheetToken:void 0,hasTokenInClass:void 0,hasTokenInAttribute:void 0,hasScopedStyles:void 0,styleVNodes:null,tplCache:fe,wiredConnecting:pe,wiredDisconnecting:pe},tro:null,shadowMode:null,component:null,shadowRoot:null,renderRoot:null,callHook:qn,setHook:Xn,getHook:Yn,renderer:r};return u.shadowMode=function(e,t){const{def:n}=e,{isSyntheticShadowDefined:r,isNativeShadowDefined:o}=t;let i;if(r)if(0===n.renderMode)i=0;else if(o)if(ue.ENABLE_MIXED_SHADOW_MODE)if("any"===n.shadowSupportMode)i=0;else{const t=function(e){let t=e.owner;for(;!I(t)&&0===t.renderMode;)t=t.owner;return t}(e);i=I(t)||0!==t.shadowMode?1:0}else i=1;else i=1;else i=0;return i}(u,r),u.tro=In(u),function(e,t){const n=Nn;let r;Nn=e;try{const o=new t;if(Nn.component!==o)throw new TypeError("Invalid component constructor, the class should extend LightningElement.")}catch(e){r=Object(e)}finally{if(Nn=n,!F(r))throw xe(e,r),r}}(u,c.ctor),ar(u)&&function(e){const{context:t,def:{wire:n}}=e,r=t.wiredConnecting=[],o=t.wiredDisconnecting=[];for(const t in n){const i=n[t],s=pr.get(i);if(!F(s)){const{connector:n,computeConfigAndUpdate:i,resetConfigWatcher:l}=mr(e,t,s),a=s.dynamic.length>0;k.call(r,(()=>{n.connect(),ue.ENABLE_WIRE_SYNC_EMIT||!a?i():Promise.resolve().then(i)})),k.call(o,(()=>{n.disconnect(),l()}))}}}(u),u}function tr(e,t){Un.set(e,t)}function nr(e){return Un.get(e)}function rr(e){return Un.get(e)}function or(e){if(H(e.isDirty)){!function(e,t){const{renderRoot:n,children:r,renderer:o}=e;e.children=t,(t.length>0||r.length>0)&&r!==t&&fr(e,e,(()=>{}),(()=>{Xt(r,t,n,o)}),(()=>{}));1===e.state&&function(e){const{def:{renderedCallback:t},renderer:{ssr:n}}=e;if(H(n))return;const{rendered:r}=Vn;r&&zn(e,r);F(t)||_n(e,t)}(e)}(e,Hn(e))}}let ir=[];function sr(){const e=ir.sort(((e,t)=>e.idx-t.idx));ir=[];for(let t=0,n=e.length;t<n;t+=1){const r=e[t];try{or(r)}catch(r){throw t+1<n&&(0===ir.length&&me(sr),P.apply(ir,T.call(e,t+1))),r}}}function lr(e){const{state:t}=e;if(1===t)return;e.state=1;const{connected:n}=Vn;n&&zn(e,n),ar(e)&&function(e){const{wiredConnecting:t}=e.context;for(let e=0,n=t.length;e<n;e+=1)t[e]()}(e);const{connectedCallback:r}=e.def;F(r)||_n(e,r)}function ar(e){return l(e.def.wire).length>0}function cr(e){const{velements:t}=e;for(let e=t.length-1;e>=0;e-=1){const{elm:n}=t[e];if(!F(n)){const e=rr(n);F(e)||Zn(e)}}}function ur(e){for(let t=0,n=e.length;t<n;t+=1){const n=e[t];if(!I(n)&&!F(n.elm))switch(n.type){case 2:ur(n.children);break;case 3:Zn(nr(n.elm));break}}}function dr(e){const{children:t,renderRoot:n,renderer:{remove:r}}=e;for(let e=0,o=t.length;e<o;e++){const o=t[e];I(o)||F(o.elm)||r(o.elm,n)}e.children=pe,cr(e),e.velements=pe}function fr(e,t,n,r,o){let i;n();try{r()}catch(e){i=Object(e)}finally{if(o(),!F(i)){xe(e,i);const n=I(t)?void 0:function(e){let t=e;for(;!I(t);){if(!F(t.def.errorCallback))return t;t=t.owner}}(t);if(F(n))throw i;dr(e);_n(n,n.def.errorCallback,[i,i.wcStack])}}}const pr=new Map;class hr extends CustomEvent{constructor(e,{setNewContext:t,setDisconnectedCallback:n}){super(e,{bubbles:!0,composed:!0}),r(this,{setNewContext:{value:t},setDisconnectedCallback:{value:n}})}}function mr(e,t,n){const{method:r,adapter:i,configCallback:s,dynamic:l}=n,a=F(r)?function(e,t){const{cmpFields:n}=e;return r=>{r!==e.cmpFields[t]&&(n[t]=r,Ce(e,t))}}(e,t):function(e,t){return n=>{fr(e,e.owner,V,(()=>{t.call(e.component,n)}),V)}}(e,r);let c,u;o(a,"$$DeprecatedWiredElementHostKey$$",{value:e.elm}),o(a,"$$DeprecatedWiredParamsMetaKey$$",{value:l}),fr(e,e,V,(()=>{u=new i(a)}),V);const{computeConfigAndUpdate:d,ro:f}=function(e,t,n){let r=!1;const o=new ve((()=>{!1===r&&(r=!0,Promise.resolve().then((()=>{r=!1,o.reset(),i()})))})),i=()=>{let r;o.observe((()=>r=t(e))),n(r)};return{computeConfigAndUpdate:i,ro:o}}(e.component,s,(t=>{fr(e,e,V,(()=>{u.update(t,c)}),V)}));return F(i.contextSchema)||function(e,t,n){const{adapter:r}=t,o=wr(r);if(F(o))return;const{elm:i,context:{wiredConnecting:s,wiredDisconnecting:l},renderer:{dispatchEvent:a}}=e;k.call(s,(()=>{const e=new hr(o,{setNewContext(e){n(e)},setDisconnectedCallback(e){k.call(l,e)}});a(i,e)}))}(e,n,(t=>{c!==t&&(c=t,1===e.state&&d())})),{connector:u,computeConfigAndUpdate:d,resetConfigWatcher:()=>f.reset()}}const gr=new Map;function wr(e){return gr.get(e)}function yr(e,t,n,r){t.adapter&&(t=t.adapter);const o={adapter:t,method:e.value,configCallback:n,dynamic:r};pr.set(e,o)}function br(e,t,n,r){t.adapter&&(t=t.adapter);const o={adapter:t,configCallback:n,dynamic:r};pr.set(e,o)}let vr=!1;var Cr;!function(e){e.Text="text",e.Comment="comment",e.Raw="raw",e.Element="element",e.ShadowRoot="shadow-root"}(Cr||(Cr={}));const Er=/\s+/g;function kr(e){return new Set(e.split(Er).filter((e=>e.length)))}function xr(e){return Array.from(e).join(" ")}function Sr(e){return function(){throw new TypeError(`"${e}" is not supported in this environment`)}}function Mr(e,t){return{type:Cr.Element,name:e,namespace:null!=t?t:Q,parent:null,shadowRoot:null,children:[],attributes:[],eventListeners:{}}}const Tr=n(null),Ar=new WeakMap;function Or(e,t,n=null){const r=e.attributes.find((e=>e.name===t&&e.namespace===n));return r?r.value:null}function Pr(e,t,n,r=null){const o=e.attributes.find((e=>e.name===t&&e.namespace===r));F(r)&&(r=null),F(o)?e.attributes.push({name:t,namespace:r,value:String(n)}):o.value=n}function $r(e,t,n){e.attributes=e.attributes.filter((e=>e.name!==t&&e.namespace!==n))}const Lr=V,Nr=V,Rr=V,_r=Sr("dispatchEvent"),Dr=Sr("getBoundingClientRect"),Fr=Sr("querySelector"),Ir=Sr("querySelectorAll"),Hr=Sr("getElementsByTagName"),jr=Sr("getElementsByClassName"),Br=Sr("getChildren"),Wr=Sr("getChildNodes"),Vr=Sr("getFirstChild"),Kr=Sr("getFirstElementChild"),zr=Sr("getLastChild"),Gr=Sr("getLastElementChild");const Ur={ssr:!0,isNativeShadowDefined:!1,isSyntheticShadowDefined:!1,HTMLElementExported:class{constructor(){const{constructor:e}=this,t=Ar.get(e);if(!t)throw new TypeError("Invalid Construction");return Mr(t)}},isHydrating:function(){return!1},insert:function(e,t,n){if(null!==e.parent&&e.parent!==t){const t=e.parent.children.indexOf(e);e.parent.children.splice(t,1)}e.parent=t;const r=I(n)?-1:t.children.indexOf(n);-1===r?t.children.push(e):t.children.splice(r,0,e)},remove:function(e,t){const n=t.children.indexOf(e);t.children.splice(n,1)},cloneNode:function(e){return e},createFragment:function(e){return{type:Cr.Raw,parent:null,value:e}},createElement:Mr,createText:function(e){return{type:Cr.Text,value:String(e),parent:null}},createComment:function(e){return{type:Cr.Comment,value:e,parent:null}},nextSibling:function(e){const{parent:t}=e;if(I(t))return null;const n=t.children.indexOf(e);return t.children[n+1]||null},attachShadow:function(e,t){return e.shadowRoot={type:Cr.ShadowRoot,children:[],mode:t.mode,delegatesFocus:!!t.delegatesFocus},e.shadowRoot},getProperty:function(e,t){var n,r;if(t in e)return e[t];if(e.type===Cr.Element){const o=se(t);if(te(o,e.name))return null!==(n=Or(e,o))&&void 0!==n&&n;if(re(o)||Y(o))return Or(e,o);if("input"===e.name&&"value"===t)return null!==(r=Or(e,"value"))&&void 0!==r?r:""}},setProperty:function(e,t,n){if(t in e)return e[t]=n;if(e.type===Cr.Element){const r=se(t);if("innerHTML"===t)return void(e.children=[{type:Cr.Raw,parent:e,value:n}]);if(te(r,e.name))return!0===n?Pr(e,r,""):$r(e,r);if(re(r)||Y(r))return Pr(e,r,n);if("input"===e.name&&"value"===r)return I(n)||F(n)?$r(e,"value"):Pr(e,"value",n)}},setText:function(e,t){e.type===Cr.Text?e.value=t:e.type===Cr.Element&&(e.children=[{type:Cr.Text,parent:e,value:t}])},getAttribute:Or,setAttribute:Pr,removeAttribute:$r,addEventListener:Nr,removeEventListener:Rr,dispatchEvent:_r,getClassList:function(e){function t(){let t=e.attributes.find((e=>"class"===e.name&&I(e.namespace)));return F(t)&&(t={name:"class",namespace:null,value:""},e.attributes.push(t)),t}return{add(...e){const n=t(),r=kr(n.value);e.forEach((e=>r.add(e))),n.value=xr(r)},remove(...e){const n=t(),r=kr(n.value);e.forEach((e=>r.delete(e))),n.value=xr(r)}}},setCSSStyleProperty:function(e,t,n,r){const o=e.attributes.find((e=>"style"===e.name&&I(e.namespace))),i=`${t}: ${n}${r?" !important":""}`;F(o)?e.attributes.push({name:"style",namespace:null,value:i}):o.value+=`; ${i}`},getBoundingClientRect:Dr,querySelector:Fr,querySelectorAll:Ir,getElementsByTagName:Hr,getElementsByClassName:jr,getChildren:Br,getChildNodes:Wr,getFirstChild:Vr,getFirstElementChild:Kr,getLastChild:zr,getLastElementChild:Gr,isConnected:function(e){return!I(e.parent)},insertStylesheet:Lr,assertInstanceOfHTMLElement:V,defineCustomElement:function(e,t,n){!function(e,t){if(e!==D.call(e)||Tr[e])throw new TypeError("Invalid Registration");Tr[e]=t,Ar.set(t,e)}(e,t)},getCustomElement:function(e){return Tr[e]}};function qr(e){return e.map((e=>{switch(e.type){case Cr.Text:return""===e.value?"":ae(e.value);case Cr.Comment:return`\x3c!--${ae(e.value)}--\x3e`;case Cr.Raw:return e.value;case Cr.Element:return Xr(e)}})).join("")}function Xr(e){let t="";const{name:n,namespace:r}=e,o=r!==Q,i=e.children.length>0;var s;return t+=`<${n}${e.attributes.length?` ${s=e.attributes,s.map((e=>e.value.length?`${e.name}=${JSON.stringify(ae(e.value))}`:e.name)).join(" ")}`:""}`,o&&!i?(t+="/>",t):(t+=">",e.shadowRoot&&(t+=function(e){const t=[`shadowroot="${e.mode}"`];return e.delegatesFocus&&t.push("shadowrootdelegatesfocus"),`<template ${t.join(" ")}>${qr(e.children)}</template>`}(e.shadowRoot)),t+=qr(e.children),function(e,t){return t===Q&&Z.has(e.toLowerCase())}(n,r)&&!i||(t+=`</${n}>`),t)}const Yr={type:Cr.Element,name:"fake-root-element",namespace:Q,parent:null,shadowRoot:null,children:[],attributes:[],eventListeners:{}};i(gt),f(gt.prototype),exports.LightningElement=gt,exports.api=function(){throw new Error},exports.createContextProvider=function(e){let t=wr(e);if(!F(t))throw new Error("Adapter already has a context provider.");t=function(){function e(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}return e()+e()+"-"+e()+"-"+e()+"-"+e()+"-"+e()+e()+e()}(),function(e,t){gr.set(e,t)}(e,t);const n=new WeakSet;return(e,r)=>{if(n.has(e))throw new Error(`Adapter was already installed on ${e}.`);n.add(e);const{consumerConnectedCallback:o,consumerDisconnectedCallback:i}=r;e.addEventListener(t,(e=>{const{setNewContext:t,setDisconnectedCallback:n}=e,r={provide(e){t(e)}};n((()=>{F(i)||i(r)})),o(r),e.stopImmediatePropagation()}))}},exports.freezeTemplate=function(e){},exports.getComponentDef=function(e){const t=Wt(e),{ctor:n,name:r,props:o,propsConfig:i,methods:s}=t,l={};for(const e in o)l[e]={config:i[e]||0,type:"any",attr:se(e)};const a={};for(const e in s)a[e]=s[e].value;return{ctor:n,name:r,props:l,methods:a}},exports.isComponentConstructor=Bt,exports.parseFragment=Pn,exports.parseSVGFragment=Pn,exports.readonly=function(e){return ht.getReadOnlyProxy(e)},exports.register=function(e){for(let t=0;t<Kn.length;++t){const n=Kn[t];if(n in e){let t=Vn[n];F(t)&&(Vn[n]=t=[]),k.call(t,e[n])}}},exports.registerComponent=function(e,{tmpl:t}){return B(e)&&Fn.set(e,t),e},exports.registerDecorators=function(e,t){const r=e.prototype,{publicProps:i,publicMethods:l,wire:a,track:c,fields:u}=t,d=n(null),f=n(null),p=n(null),h=n(null),m=n(null),g=n(null);let w;if(!F(i))for(const e in i){const t=i[e];if(g[e]=t.config,w=s(r,e),t.config>0){if(F(w))throw new Error;w=xt(e,w)}else w=F(w)||F(w.get)?Et(e):xt(e,w);f[e]=w,o(r,e,w)}if(F(l)||$.call(l,(e=>{if(w=s(r,e),F(w))throw new Error;d[e]=w})),!F(a))for(const e in a){const{adapter:t,method:n,config:i,dynamic:l=[]}=a[e];if(w=s(r,e),1===n){if(F(w))throw new Error;p[e]=w,yr(w,t,i,l)}else w=Mt(e),h[e]=w,br(w,t,i,l),o(r,e,w)}if(!F(c))for(const e in c)w=s(r,e),w=St(e),o(r,e,w);if(!F(u))for(let e=0,t=u.length;e<t;e++){const t=u[e];w=s(r,t);const n=!F(i)&&t in i,o=!F(c)&&t in c;n||o||(m[t]=Ct(t))}return function(e,t){Tt.set(e,t)}(e,{apiMethods:d,apiFields:f,apiFieldsConfig:g,wiredMethods:p,wiredFields:h,observedFields:m}),e},exports.registerTemplate=function(e){return Ot.add(e),o(e,"stylesheetTokens",{enumerable:!0,configurable:!0,get(){const{stylesheetToken:e}=this;return F(e)?e:{hostAttribute:`${e}-host`,shadowAttribute:e}},set(e){this.stylesheetToken=F(e)?void 0:e.shadowAttribute}}),e},exports.renderComponent=function(e,t,n={}){if(!W(e))throw new TypeError(`"renderComponent" expects a string as the first parameter but instead received ${e}.`);if(!B(t))throw new TypeError(`"renderComponent" expects a valid component constructor as the second parameter but instead received ${t}.`);if("object"!=typeof n||I(n))throw new TypeError(`"renderComponent" expects an object as the third parameter but instead received ${n}.`);const r=Ur.createElement(e);er(r,t,Ur,{mode:"open",owner:null,tagName:e});for(const[e,t]of Object.entries(n))r[e]=t;return r.parent=Yr,Qn(r),Xr(r)},exports.renderer=Ur,exports.sanitizeAttribute=function(e,t,n,r){return r},exports.setFeatureFlag=function(e,t){if("boolean"==typeof t){if(F(ce[e])){const n=d(ce).map((e=>`"${e}"`)).join(", ");console.warn(`Failed to set the value "${t}" for the runtime feature flag "${e}" because it is undefined. Available flags: ${n}.`)}else{const n=ue[e];if(!F(n))return void console.error(`Failed to set the value "${t}" for the runtime feature flag "${e}". "${e}" has already been set with the value "${n}".`);o(ue,e,{value:t})}}else{const n=`Failed to set the value "${t}" for the runtime feature flag "${e}". Runtime feature flags can only be set to a boolean value.`;console.error(n)}},exports.setFeatureFlagForTest=function(e,t){},exports.setHooks=function(t){var n;e.isFalse(vr,"Hooks are already overridden, only one definition is allowed."),vr=!0,n=t.sanitizeHtmlContent,yn=n},exports.track=function(e){if(1===arguments.length)return ht.getProxy(e);throw new Error},exports.unwrap=function(e){return ht.unwrapProxy(e)},exports.wire=function(e,t){throw new Error};
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=Object.freeze({__proto__:null,invariant:function(e,t){if(!e)throw new Error(`Invariant Violation: ${t}`)},isTrue:function(e,t){if(!e)throw new Error(`Assert Violation: ${t}`)},isFalse:function(e,t){if(e)throw new Error(`Assert Violation: ${t}`)},fail:function(e){throw new Error(e)}});const{assign:t,create:n,defineProperties:r,defineProperty:o,freeze:i,getOwnPropertyDescriptor:s,getOwnPropertyNames:l,getPrototypeOf:a,hasOwnProperty:c,isFrozen:u,keys:d,seal:f,setPrototypeOf:p}=Object,{isArray:h}=Array,{copyWithin:m,fill:g,filter:w,find:y,indexOf:b,join:v,map:C,pop:E,push:k,reduce:x,reverse:S,shift:M,slice:T,sort:A,splice:O,unshift:P,forEach:$}=Array.prototype,{fromCharCode:L}=String,{charCodeAt:N,replace:R,slice:_,toLowerCase:D}=String.prototype;function F(e){return void 0===e}function I(e){return null===e}function H(e){return!0===e}function j(e){return!1===e}function B(e){return"function"==typeof e}function W(e){return"string"==typeof e}function V(){}const K={}.toString;function z(e){return e&&e.toString?h(e)?v.call(C.call(e,z),","):e.toString():"object"==typeof e?K.call(e):e+""}function G(e,t){do{const n=s(e,t);if(!F(n))return n;e=a(e)}while(null!==e)}const U=["ariaActiveDescendant","ariaAtomic","ariaAutoComplete","ariaBusy","ariaChecked","ariaColCount","ariaColIndex","ariaColSpan","ariaControls","ariaCurrent","ariaDescribedBy","ariaDetails","ariaDisabled","ariaErrorMessage","ariaExpanded","ariaFlowTo","ariaHasPopup","ariaHidden","ariaInvalid","ariaKeyShortcuts","ariaLabel","ariaLabelledBy","ariaLevel","ariaLive","ariaModal","ariaMultiLine","ariaMultiSelectable","ariaOrientation","ariaOwns","ariaPlaceholder","ariaPosInSet","ariaPressed","ariaReadOnly","ariaRelevant","ariaRequired","ariaRoleDescription","ariaRowCount","ariaRowIndex","ariaRowSpan","ariaSelected","ariaSetSize","ariaSort","ariaValueMax","ariaValueMin","ariaValueNow","ariaValueText","role"],{AriaAttrNameToPropNameMap:q,AriaPropNameToAttrNameMap:X}=(()=>{const e=n(null),t=n(null);return $.call(U,(n=>{const r=D.call(R.call(n,/^aria/,(()=>"aria-")));e[r]=n,t[n]=r})),{AriaAttrNameToPropNameMap:e,AriaPropNameToAttrNameMap:t}})();function Y(e){return e in q}const J=function(){if("object"==typeof globalThis)return globalThis;let e;try{Object.defineProperty(Object.prototype,"__magic__",{get:function(){return this},configurable:!0}),e=__magic__,delete Object.prototype.__magic__}catch(e){}finally{void 0===e&&(e=window)}return e}(),Q="http://www.w3.org/1999/xhtml",Z=new Set(["area","base","br","col","embed","hr","img","input","link","meta","source","track","wbr"]);const ee=new Map([["autofocus",new Set(["button","input","keygen","select","textarea"])],["autoplay",new Set(["audio","video"])],["checked",new Set(["command","input"])],["disabled",new Set(["button","command","fieldset","input","keygen","optgroup","select","textarea"])],["formnovalidate",new Set(["button"])],["hidden",new Set],["loop",new Set(["audio","bgsound","marquee","video"])],["multiple",new Set(["input","select"])],["muted",new Set(["audio","video"])],["novalidate",new Set(["form"])],["open",new Set(["details"])],["readonly",new Set(["input","textarea"])],["required",new Set(["input","select","textarea"])],["reversed",new Set(["ol"])],["selected",new Set(["option"])]]);function te(e,t){const n=ee.get(e);return void 0!==n&&(0===n.size||n.has(t))}const ne=new Set(["role","accesskey","class","contenteditable","contextmenu","dir","draggable","dropzone","hidden","id","itemprop","lang","slot","spellcheck","style","tabindex","title"]);function re(e){return ne.has(e)}const oe=new Map([["accessKey","accesskey"],["readOnly","readonly"],["tabIndex","tabindex"],["bgColor","bgcolor"],["colSpan","colspan"],["rowSpan","rowspan"],["contentEditable","contenteditable"],["crossOrigin","crossorigin"],["dateTime","datetime"],["formAction","formaction"],["isMap","ismap"],["maxLength","maxlength"],["minLength","minlength"],["noValidate","novalidate"],["useMap","usemap"],["htmlFor","for"]]),ie=new Map;function se(e){const t=X[e];if(!F(t))return t;const n=oe.get(e);if(!F(n))return n;const r=ie.get(e);if(!F(r))return r;let o="";for(let t=0,n=e.length;t<n;t++){const n=N.call(e,t);o+=n>=65&&n<=90?"-"+L(n+32):L(n)}return ie.set(e,o),o}const le={'"':""","'":"'","<":"<",">":">","&":"&"};function ae(e,t=!1){const n=t?/["&]/g:/["'<>&]/g;return e.replace(n,(e=>le[e]))}if("function"!=typeof Event){class e{}o(J,"Event",{value:e,configurable:!0,writable:!0})}if("function"!=typeof CustomEvent){class e extends Event{}o(J,"CustomEvent",{value:e,configurable:!0,writable:!0})}const ce={DUMMY_TEST_FLAG:null,ENABLE_ELEMENT_PATCH:null,ENABLE_FORCE_NATIVE_SHADOW_MODE_FOR_TEST:null,ENABLE_HMR:null,ENABLE_HTML_COLLECTIONS_PATCH:null,ENABLE_INNER_OUTER_TEXT_PATCH:null,ENABLE_MIXED_SHADOW_MODE:null,ENABLE_NODE_LIST_PATCH:null,ENABLE_NODE_PATCH:null,ENABLE_REACTIVE_SETTER:null,ENABLE_WIRE_SYNC_EMIT:null};J.lwcRuntimeFlags||Object.defineProperty(J,"lwcRuntimeFlags",{value:n(null)});const ue=J.lwcRuntimeFlags;let de=[];const fe=f(n(null)),pe=f([]);function he(){const e=de;de=[];for(let t=0,n=e.length;t<n;t+=1)e[t]()}function me(e){0===de.length&&Promise.resolve().then(he),k.call(de,e)}const ge=new WeakMap;let we=null;function ye(e,t){const n=ge.get(e);if(!F(n)){const e=n[t];if(!F(e))for(let t=0,n=e.length;t<n;t+=1){e[t].notify()}}}function be(e,t){if(null===we)return;const r=we,o=function(e){let t=ge.get(e);if(F(t)){const r=n(null);t=r,ge.set(e,r)}return t}(e);let i=o[t];if(F(i))i=[],o[t]=i;else if(i[0]===r)return;-1===b.call(i,r)&&r.link(i)}class ve{constructor(e){this.listeners=[],this.callback=e}observe(e){const t=we;let n;we=this;try{e()}catch(e){n=Object(e)}finally{if(we=t,void 0!==n)throw n}}reset(){const{listeners:e}=this,t=e.length;if(t>0){for(let n=0;n<t;n+=1){const t=e[n],r=b.call(e[n],this);O.call(t,r,1)}e.length=0}}notify(){this.callback.call(void 0,this)}link(e){k.call(e,this),k.call(this.listeners,e)}}function Ce(e,t){ye(e.component,t)}function Ee(e,t){be(e.component,t)}function ke(e){return`<${D.call(e.tagName)}>`}function xe(e,t){if(!u(t)&&F(t.wcStack)){const n=function(e){const t=[];let n=e;for(;!I(n);)k.call(t,ke(n)),n=n.owner;return t.reverse().join("\n\t")}(e);o(t,"wcStack",{get:()=>n})}}function Se(e){const t=e();return(null==t?void 0:t.__esModule)?t.default:t}function Me(e){return B(e)&&c.call(e,"__circular__")}const Te="undefined"!=typeof HTMLElement?HTMLElement:function(){},Ae=Te.prototype;function Oe(e){return`Using the \`${e}\` property is an anti-pattern because it rounds the value to an integer. Instead, use the \`getBoundingClientRect\` method to obtain fractional values for the size of an element and its position relative to the viewport.`}t(n(null),{accessKey:{attribute:"accesskey"},accessKeyLabel:{readOnly:!0},className:{attribute:"class",error:"Using the `className` property is an anti-pattern because of slow runtime behavior and potential conflicts with classes provided by the owner element. Use the `classList` API instead."},contentEditable:{attribute:"contenteditable"},dataset:{readOnly:!0,error:"Using the `dataset` property is an anti-pattern because it can't be statically analyzed. Expose each property individually using the `@api` decorator instead."},dir:{attribute:"dir"},draggable:{attribute:"draggable"},dropzone:{attribute:"dropzone",readOnly:!0},hidden:{attribute:"hidden"},id:{attribute:"id"},inputMode:{attribute:"inputmode"},lang:{attribute:"lang"},slot:{attribute:"slot",error:"Using the `slot` property is an anti-pattern."},spellcheck:{attribute:"spellcheck"},style:{attribute:"style"},tabIndex:{attribute:"tabindex"},title:{attribute:"title"},translate:{attribute:"translate"},isContentEditable:{readOnly:!0},offsetHeight:{readOnly:!0,error:Oe("offsetHeight")},offsetLeft:{readOnly:!0,error:Oe("offsetLeft")},offsetParent:{readOnly:!0},offsetTop:{readOnly:!0,error:Oe("offsetTop")},offsetWidth:{readOnly:!0,error:Oe("offsetWidth")},role:{attribute:"role"}});let Pe,$e=null;function Le(e,t){return e!==$e||t!==Pe}function Ne(e,t){$e=null,Pe=void 0}function Re(e,t){$e=e,Pe=t}const _e=n(null);$.call(d(X),(e=>{const t=G(Ae,e);F(t)||(_e[e]=t)})),$.call(["accessKey","dir","draggable","hidden","id","lang","spellcheck","tabIndex","title"],(e=>{const t=G(Ae,e);F(t)||(_e[e]=t)}));const{isArray:De}=Array,{prototype:Fe,getPrototypeOf:Ie,create:He,defineProperty:je,isExtensible:Be,getOwnPropertyDescriptor:We,getOwnPropertyNames:Ve,getOwnPropertySymbols:Ke,preventExtensions:ze,hasOwnProperty:Ge}=Object,{push:Ue,concat:qe}=Array.prototype;function Xe(e){return void 0===e}function Ye(e){return"function"==typeof e}const Je=new WeakMap;function Qe(e,t){Je.set(e,t)}const Ze=e=>Je.get(e)||e;class et{constructor(e,t){this.originalTarget=t,this.membrane=e}wrapDescriptor(e){if(Ge.call(e,"value"))e.value=this.wrapValue(e.value);else{const{set:t,get:n}=e;Xe(n)||(e.get=this.wrapGetter(n)),Xe(t)||(e.set=this.wrapSetter(t))}return e}copyDescriptorIntoShadowTarget(e,t){const{originalTarget:n}=this,r=We(n,t);if(!Xe(r)){const n=this.wrapDescriptor(r);je(e,t,n)}}lockShadowTarget(e){const{originalTarget:t}=this;qe.call(Ve(t),Ke(t)).forEach((t=>{this.copyDescriptorIntoShadowTarget(e,t)}));const{membrane:{tagPropertyKey:n}}=this;Xe(n)||Ge.call(e,n)||je(e,n,He(null)),ze(e)}apply(e,t,n){}construct(e,t,n){}get(e,t){const{originalTarget:n,membrane:{valueObserved:r}}=this,o=n[t];return r(n,t),this.wrapValue(o)}has(e,t){const{originalTarget:n,membrane:{tagPropertyKey:r,valueObserved:o}}=this;return o(n,t),t in n||t===r}ownKeys(e){const{originalTarget:t,membrane:{tagPropertyKey:n}}=this,r=Xe(n)||Ge.call(t,n)?[]:[n];return Ue.apply(r,Ve(t)),Ue.apply(r,Ke(t)),r}isExtensible(e){const{originalTarget:t}=this;return!!Be(e)&&(!!Be(t)||(this.lockShadowTarget(e),!1))}getPrototypeOf(e){const{originalTarget:t}=this;return Ie(t)}getOwnPropertyDescriptor(e,t){const{originalTarget:n,membrane:{valueObserved:r,tagPropertyKey:o}}=this;r(n,t);let i=We(n,t);if(Xe(i)){if(t!==o)return;return i={value:void 0,writable:!1,configurable:!1,enumerable:!1},je(e,o,i),i}return!1===i.configurable&&this.copyDescriptorIntoShadowTarget(e,t),this.wrapDescriptor(i)}}const tt=new WeakMap,nt=new WeakMap,rt=new WeakMap,ot=new WeakMap;class it extends et{wrapValue(e){return this.membrane.getProxy(e)}wrapGetter(e){const t=tt.get(e);if(!Xe(t))return t;const n=this,r=function(){return n.wrapValue(e.call(Ze(this)))};return tt.set(e,r),rt.set(r,e),r}wrapSetter(e){const t=nt.get(e);if(!Xe(t))return t;const n=function(t){e.call(Ze(this),Ze(t))};return nt.set(e,n),ot.set(n,e),n}unwrapDescriptor(e){if(Ge.call(e,"value"))e.value=Ze(e.value);else{const{set:t,get:n}=e;Xe(n)||(e.get=this.unwrapGetter(n)),Xe(t)||(e.set=this.unwrapSetter(t))}return e}unwrapGetter(e){const t=rt.get(e);if(!Xe(t))return t;const n=this,r=function(){return Ze(e.call(n.wrapValue(this)))};return tt.set(r,e),rt.set(e,r),r}unwrapSetter(e){const t=ot.get(e);if(!Xe(t))return t;const n=this,r=function(t){e.call(n.wrapValue(this),n.wrapValue(t))};return nt.set(r,e),ot.set(e,r),r}set(e,t,n){const{originalTarget:r,membrane:{valueMutated:o}}=this;return r[t]!==n?(r[t]=n,o(r,t)):"length"===t&&De(r)&&o(r,t),!0}deleteProperty(e,t){const{originalTarget:n,membrane:{valueMutated:r}}=this;return delete n[t],r(n,t),!0}setPrototypeOf(e,t){}preventExtensions(e){if(Be(e)){const{originalTarget:t}=this;if(ze(t),Be(t))return!1;this.lockShadowTarget(e)}return!0}defineProperty(e,t,n){const{originalTarget:r,membrane:{valueMutated:o,tagPropertyKey:i}}=this;return t===i&&!Ge.call(r,t)||(je(r,t,this.unwrapDescriptor(n)),!1===n.configurable&&this.copyDescriptorIntoShadowTarget(e,t),o(r,t),!0)}}const st=new WeakMap,lt=new WeakMap;class at extends et{wrapValue(e){return this.membrane.getReadOnlyProxy(e)}wrapGetter(e){const t=st.get(e);if(!Xe(t))return t;const n=this,r=function(){return n.wrapValue(e.call(Ze(this)))};return st.set(e,r),r}wrapSetter(e){const t=lt.get(e);if(!Xe(t))return t;const n=function(e){};return lt.set(e,n),n}set(e,t,n){return!1}deleteProperty(e,t){return!1}setPrototypeOf(e,t){}preventExtensions(e){return!1}defineProperty(e,t,n){return!1}}function ct(e){if(null===e)return!1;if("object"!=typeof e)return!1;if(De(e))return!0;const t=Ie(e);return t===Fe||null===t||null===Ie(t)}const ut=(e,t)=>{},dt=(e,t)=>{};function ft(e){return De(e)?[]:{}}const pt=Symbol.for("@@lockerLiveValue"),ht=new class{constructor(e={}){this.readOnlyObjectGraph=new WeakMap,this.reactiveObjectGraph=new WeakMap;const{valueMutated:t,valueObserved:n,valueIsObservable:r,tagPropertyKey:o}=e;this.valueMutated=Ye(t)?t:dt,this.valueObserved=Ye(n)?n:ut,this.valueIsObservable=Ye(r)?r:ct,this.tagPropertyKey=o}getProxy(e){const t=Ze(e);return this.valueIsObservable(t)?this.readOnlyObjectGraph.get(t)===e?e:this.getReactiveHandler(t):t}getReadOnlyProxy(e){return e=Ze(e),this.valueIsObservable(e)?this.getReadOnlyHandler(e):e}unwrapProxy(e){return Ze(e)}getReactiveHandler(e){let t=this.reactiveObjectGraph.get(e);if(Xe(t)){const n=new it(this,e);t=new Proxy(ft(e),n),Qe(t,e),this.reactiveObjectGraph.set(e,t)}return t}getReadOnlyHandler(e){let t=this.readOnlyObjectGraph.get(e);if(Xe(t)){const n=new at(this,e);t=new Proxy(ft(e),n),Qe(t,e),this.readOnlyObjectGraph.set(e,t)}return t}}({valueObserved:be,valueMutated:ye,tagPropertyKey:pt});function mt(e,t){const{get:n,set:r,enumerable:o,configurable:i}=t;if(!B(n))throw new TypeError;if(!B(r))throw new TypeError;return{enumerable:o,configurable:i,get(){const t=nr(this);if(!Rn(t))return Ee(t,e),n.call(t.elm)},set(t){const n=nr(this);return t!==n.cmpProps[e]&&(n.cmpProps[e]=t,Ce(n,e)),r.call(n.elm,t)}}}const gt=function(){if(I(Nn))throw new ReferenceError("Illegal constructor");const e=Nn,{def:t,elm:n}=e,{bridge:r}=t,o=this;if(p(n,r.prototype),e.component=this,1===arguments.length){const{callHook:t,setHook:n,getHook:r}=arguments[0];e.callHook=t,e.setHook=n,e.getHook=r}return this[pt]=void 0,tr(o,e),tr(n,e),1===e.renderMode?e.renderRoot=wt(e):e.renderRoot=n,this};function wt(e){const{elm:t,mode:n,shadowMode:r,def:{ctor:o},renderer:{attachShadow:i}}=e,s=i(t,{"$$lwc-synthetic-mode":1===r,delegatesFocus:Boolean(o.delegatesFocus),mode:n});return e.shadowRoot=s,tr(s,e),s}gt.prototype={constructor:gt,dispatchEvent(e){const t=nr(this),{elm:n,renderer:{dispatchEvent:r}}=t;return r(n,e)},addEventListener(e,t,n){const r=nr(this),{elm:o,renderer:{addEventListener:i}}=r;i(o,e,Wn(r,t),n)},removeEventListener(e,t,n){const r=nr(this),{elm:o,renderer:{removeEventListener:i}}=r;i(o,e,Wn(r,t),n)},hasAttribute(e){const t=nr(this),{elm:n,renderer:{getAttribute:r}}=t;return!I(r(n,e))},hasAttributeNS(e,t){const n=nr(this),{elm:r,renderer:{getAttribute:o}}=n;return!I(o(r,t,e))},removeAttribute(e){const t=nr(this),{elm:n,renderer:{removeAttribute:r}}=t;Re(n,e),r(n,e),Ne()},removeAttributeNS(e,t){const{elm:n,renderer:{removeAttribute:r}}=nr(this);Re(n,t),r(n,t,e),Ne()},getAttribute(e){const t=nr(this),{elm:n}=t,{getAttribute:r}=t.renderer;return r(n,e)},getAttributeNS(e,t){const n=nr(this),{elm:r}=n,{getAttribute:o}=n.renderer;return o(r,t,e)},setAttribute(e,t){const n=nr(this),{elm:r,renderer:{setAttribute:o}}=n;Re(r,e),o(r,e,t),Ne()},setAttributeNS(e,t,n){const r=nr(this),{elm:o,renderer:{setAttribute:i}}=r;Re(o,t),i(o,t,n,e),Ne()},getBoundingClientRect(){const e=nr(this),{elm:t,renderer:{getBoundingClientRect:n}}=e;return n(t)},get isConnected(){const e=nr(this),{elm:t,renderer:{isConnected:n}}=e;return n(t)},get classList(){const e=nr(this),{elm:t,renderer:{getClassList:n}}=e;return n(t)},get template(){return nr(this).shadowRoot},get shadowRoot(){return null},get children(){const e=nr(this);return e.renderer.getChildren(e.elm)},get childNodes(){const e=nr(this);return e.renderer.getChildNodes(e.elm)},get firstChild(){const e=nr(this);return e.renderer.getFirstChild(e.elm)},get firstElementChild(){const e=nr(this);return e.renderer.getFirstElementChild(e.elm)},get lastChild(){const e=nr(this);return e.renderer.getLastChild(e.elm)},get lastElementChild(){const e=nr(this);return e.renderer.getLastElementChild(e.elm)},render(){return nr(this).def.template},toString(){return`[object ${nr(this).def.name}]`}};const yt=n(null),bt=["getElementsByClassName","getElementsByTagName","querySelector","querySelectorAll"];for(const e of bt)yt[e]={value(t){const n=nr(this),{elm:r,renderer:o}=n;return o[e](r,t)},configurable:!0,enumerable:!0,writable:!0};r(gt.prototype,yt);const vt=n(null);for(const e in _e)vt[e]=mt(e,_e[e]);function Ct(e){return{get(){const t=nr(this);return Ee(t,e),t.cmpFields[e]},set(t){const n=nr(this);t!==n.cmpFields[e]&&(n.cmpFields[e]=t,Ce(n,e))},enumerable:!0,configurable:!0}}function Et(e){return{get(){const t=nr(this);if(!Rn(t))return Ee(t,e),t.cmpProps[e]},set(t){const n=nr(this);n.cmpProps[e]=t,Ce(n,e)},enumerable:!0,configurable:!0}}r(gt.prototype,vt),o(gt,"CustomElementConstructor",{get(){throw new ReferenceError("The current runtime does not support CustomElementConstructor.")},configurable:!0});class kt extends ve{constructor(e,t){super((()=>{j(this.debouncing)&&(this.debouncing=!0,me((()=>{if(H(this.debouncing)){const{value:n}=this,{isDirty:r,component:o,idx:i}=e;t.call(o,n),this.debouncing=!1,H(e.isDirty)&&j(r)&&i>0&&Jn(e)}})))})),this.debouncing=!1}reset(e){super.reset(),this.debouncing=!1,arguments.length>0&&(this.value=e)}}function xt(e,t){const{get:n,set:r,enumerable:o,configurable:i}=t;if(!B(n))throw new Error;return{get(){return n.call(this)},set(t){const n=nr(this);if(r)if(ue.ENABLE_REACTIVE_SETTER){let o=n.oar[e];F(o)&&(o=n.oar[e]=new kt(n,r)),o.reset(t),o.observe((()=>{r.call(this,t)}))}else r.call(this,t)},enumerable:o,configurable:i}}function St(e){return{get(){const t=nr(this);return Ee(t,e),t.cmpFields[e]},set(t){const n=nr(this),r=ht.getProxy(t);r!==n.cmpFields[e]&&(n.cmpFields[e]=r,Ce(n,e))},enumerable:!0,configurable:!0}}function Mt(e){return{get(){const t=nr(this);return Ee(t,e),t.cmpFields[e]},set(t){const n=nr(this);t!==n.cmpFields[e]&&(n.cmpFields[e]=t,Ce(n,e))},enumerable:!0,configurable:!0}}const Tt=new Map;const At={apiMethods:fe,apiFields:fe,apiFieldsConfig:fe,wiredMethods:fe,wiredFields:fe,observedFields:fe};const Ot=new Set;function Pt(){return[]}Ot.add(Pt);const $t=n(null),Lt=n(null);function Nt(e){let t=$t[e];return F(t)&&(t=$t[e]=function(){const t=nr(this),{getHook:n}=t;return n(t.component,e)}),t}function Rt(e){let t=Lt[e];return F(t)&&(t=Lt[e]=function(t){const n=nr(this),{setHook:r}=n;t=ht.getReadOnlyProxy(t),r(n.component,e,t)}),t}function _t(e){return function(){const t=nr(this),{callHook:n,component:r}=t,o=r[e];return n(t.component,o,T.call(arguments))}}function Dt(e,t){return function(n,r,o){if(r===o)return;const i=e[n];F(i)?F(t)||t.apply(this,arguments):Le(this,n)&&(this[i]=o)}}function Ft(e,t,i){let s;B(e)?s=class extends e{}:(s=function(){throw new TypeError("Illegal constructor")},p(s,e),p(s.prototype,e.prototype),o(s.prototype,"constructor",{writable:!0,configurable:!0,value:s}));const l=n(null),{attributeChangedCallback:a}=e.prototype,{observedAttributes:c=[]}=e,u=n(null);for(let e=0,n=t.length;e<n;e+=1){const n=t[e];l[se(n)]=n,u[n]={get:Nt(n),set:Rt(n),enumerable:!0,configurable:!0}}for(let e=0,t=i.length;e<t;e+=1){const t=i[e];u[t]={value:_t(t),writable:!0,configurable:!0}}return u.attributeChangedCallback={value:Dt(l,a)},o(s,"observedAttributes",{get:()=>[...c,...d(l)]}),r(s.prototype,u),s}const It=Ft(Te,l(_e),[]);i(It),f(It.prototype);const Ht=new WeakMap;function jt(e){const{shadowSupportMode:o,renderMode:i}=e,s=function(e){const t=Tt.get(e);return F(t)?At:t}(e),{apiFields:l,apiFieldsConfig:c,apiMethods:u,wiredFields:f,wiredMethods:p,observedFields:h}=s,m=e.prototype;let{connectedCallback:g,disconnectedCallback:w,renderedCallback:y,errorCallback:b,render:v}=m;const C=function(e){let t=a(e);if(I(t))throw new ReferenceError(`Invalid prototype chain for ${e.name}, you must extend LightningElement.`);if(Me(t)){const e=Se(t);t=e===t?gt:e}return t}(e),E=C!==gt?Wt(C):Vt,k=Ft(E.bridge,d(l),d(u)),x=t(n(null),E.props,l),S=t(n(null),E.propsConfig,c),M=t(n(null),E.methods,u),T=t(n(null),E.wire,f,p);g=g||E.connectedCallback,w=w||E.disconnectedCallback,y=y||E.renderedCallback,b=b||E.errorCallback,v=v||E.render;let A=E.shadowSupportMode;F(o)||(A=o);let O=E.renderMode;F(i)||(O="light"===i?0:1);const P=function(e){return Fn.get(e)}(e)||E.template,$=e.name||E.name;r(m,h);return{ctor:e,name:$,wire:T,props:x,propsConfig:S,methods:M,bridge:k,template:P,renderMode:O,shadowSupportMode:A,connectedCallback:g,disconnectedCallback:w,renderedCallback:y,errorCallback:b,render:v}}function Bt(e){if(!B(e))return!1;if(e.prototype instanceof gt)return!0;let t=e;do{if(Me(t)){const e=Se(t);if(e===t)return!0;t=e}if(t===gt)return!0}while(!I(t)&&(t=a(t)));return!1}function Wt(e){let t=Ht.get(e);if(F(t)){if(Me(e)){return t=Wt(Se(e)),Ht.set(e,t),t}if(!Bt(e))throw new TypeError(`${e} is not a valid component, or does not extends LightningElement from "lwc". You probably forgot to add the extend clause on the class declaration.`);t=jt(e),Ht.set(e,t)}return t}const Vt={ctor:gt,name:gt.name,props:vt,propsConfig:fe,methods:fe,renderMode:1,shadowSupportMode:"reset",wire:fe,bridge:It,template:Pt,render:gt.prototype.render};function Kt(e){return`${e}-host`}function zt(e){return Sn.h("style",{key:"style",attrs:{type:"text/css"}},[Sn.t(e)])}function Gt(e,t,n){const r=[];let o;for(let i=0;i<e.length;i++){let s=e[i];if(h(s))k.apply(r,Gt(s,t,n));else{const e=s.$scoped$,i=e||1===n.shadowMode&&1===n.renderMode?t:void 0,l=0===n.renderMode?!e:0===n.shadowMode;let a;1===n.renderMode?a=0===n.shadowMode:(F(o)&&(o=qt(n)),a=I(o)||0===o.shadowMode),k.call(r,s(i,l,a))}}return r}function Ut(e,t){const{stylesheets:n,stylesheetToken:r}=t;let o=[];return F(n)||0===n.length||(o=Gt(n,r,e)),o}function qt(e){let t=e;for(;!I(t);){if(1===t.renderMode)return t;t=t.owner}return t}function Xt(e,t){const{renderMode:n,shadowMode:r,renderer:{ssr:o,insertStylesheet:i}}=e;if(1===n&&1===r)for(let e=0;e<t.length;e++)i(t[e]);else{if(o||e.hydrated)return C.call(t,zt);{const n=function(e){const t=qt(e);return I(t)||1!==t.shadowMode?t:null}(e),r=I(n)?void 0:n.shadowRoot;for(let e=0;e<t.length;e++)i(t[e],r)}}return null}function Yt(e){const{type:t}=e;return 2===t||3===t}function Jt(e,t){return e.key===t.key&&e.sel===t.sel}function Qt(e,t){return"input"===e&&("value"===t||"checked"===t)}const Zt=n(null);function en(e){if(null==e)return fe;e=W(e)?e:e+"";let t=Zt[e];if(t)return t;t=n(null);let r,o=0;const i=e.length;for(r=0;r<i;r++)32===N.call(e,r)&&(r>o&&(t[_.call(e,o,r)]=!0),o=r+1);return r>o&&(t[_.call(e,o,r)]=!0),Zt[e]=t,t}function tn(e,t,n,r){var o;o=t,gn.has(o)?function(e,t,n,r){let o=0,i=0,s=e.length-1,l=e[0],a=e[s];const c=t.length-1;let u,d,f,p,h=c,m=t[0],g=t[h],w=!1;for(;o<=s&&i<=h;)an(l)?an(a)?an(m)?an(g)?Jt(l,m)?(nn(l,m,r),l=e[++o],m=t[++i]):Jt(a,g)?(nn(a,g,r),a=e[--s],g=t[--h]):Jt(l,g)?(nn(l,g,r),pn(l.elm,n,r.nextSibling(a.elm),r),l=e[++o],g=t[--h]):Jt(a,m)?(nn(a,m,r),pn(m.elm,n,l.elm,r),a=e[--s],m=t[++i]):(void 0===u&&(u=wn(e,o,s)),d=u[m.key],F(d)?(rn(m,n,r,l.elm),m=t[++i]):(f=e[d],an(f)&&(f.sel!==m.sel?rn(m,n,r,l.elm):(nn(f,m,r),w||(w=!0,e=[...e]),e[d]=void 0,pn(f.elm,n,l.elm,r))),m=t[++i])):g=t[--h]:m=t[++i]:a=e[--s]:l=e[++o];if(o<=s||i<=h)if(o>s){let e,o=h;do{e=t[++o]}while(!an(e)&&o<c);p=an(e)?e.elm:null,on(t,n,r,p,i,h+1)}else ln(e,n,r,!0,o,s+1)}(e,t,n,r):function(e,t,n,r){const o=e.length,i=t.length;if(0===o)return void on(t,n,r,null);if(0===i)return void ln(e,n,r,!0);let s=null;for(let o=i-1;o>=0;o-=1){const i=e[o],l=t[o];l!==i&&(an(i)?an(l)?(nn(i,l,r),s=l.elm):sn(i,n,r,!0):an(l)&&(rn(l,n,r,s),s=l.elm))}}(e,t,n,r)}function nn(e,t,n){var r,o;if(e!==t)switch(t.type){case 0:case 1:!function(e,t,n){t.elm=e.elm,t.text!==e.text&&fn(t,n)}(e,t,n);break;case 4:t.elm=e.elm;break;case 2:!function(e,t,n){const r=t.elm=e.elm;hn(e,t,n),tn(e.children,t.children,r,n)}(e,t,null!==(r=t.data.renderer)&&void 0!==r?r:n);break;case 3:!function(e,t,n){const r=t.elm=e.elm,o=t.vm=e.vm;hn(e,t,n),F(o)||mn(t,o);tn(e.children,t.children,r,n),F(o)||Jn(o)}(e,t,null!==(o=t.data.renderer)&&void 0!==o?o:n)}}function rn(e,t,n,r){var o,i;switch(e.type){case 0:!function(e,t,n,r){const{owner:o}=e,{createText:i}=r,s=e.elm=i(e.text);dn(s,o,r),pn(s,t,n,r)}(e,t,r,n);break;case 1:!function(e,t,n,r){const{owner:o}=e,{createComment:i}=r,s=e.elm=i(e.text);dn(s,o,r),pn(s,t,n,r)}(e,t,r,n);break;case 4:!function(e,t,n,r){const{owner:o}=e,{cloneNode:i,isSyntheticShadowDefined:s}=r,l=e.elm=i(e.fragment,!0);dn(l,o,r);const{renderMode:a,shadowMode:c}=o;s&&(1!==c&&0!==a||(l.$shadowStaticNode$=!0));pn(l,t,n,r)}(e,t,r,n);break;case 2:!function(e,t,n,r){const{sel:o,owner:i,data:{svg:s}}=e,{createElement:l}=r,a=H(s)?"http://www.w3.org/2000/svg":void 0,c=l(o,a);dn(c,i,r),function(e,t,n){const{owner:r}=t;if(un(e,r,n),1===r.shadowMode){const{data:{context:n}}=t,{stylesheetToken:o}=r.context;F(n)||F(n.lwc)||"manual"!==n.lwc.dom||function(e){e.$domManual$=!0}(e),F(o)||cn(e,o)}}(c,e,r),e.elm=c,hn(null,e,r),pn(c,t,n,r),on(e.children,c,r,null)}(e,t,r,null!==(o=e.data.renderer)&&void 0!==o?o:n);break;case 3:!function(e,t,n,r){const{sel:o,owner:i}=e,s=function(e,t){const{getCustomElement:n,HTMLElementExported:r,defineCustomElement:o}=t;let i=n(e=e.toLowerCase());return F(i)?(i=class extends r{constructor(e){super(),B(e)&&e(this)}},o(e,i),i):i}(o,r);let l;const a=new s((t=>{l=function(e,t,n){let r=rr(e);if(!F(r))return r;const{sel:o,mode:i,ctor:s,owner:l}=t;if(un(e,l,n),1===l.shadowMode){const{stylesheetToken:t}=l.context;F(t)||cn(e,t)}return r=er(e,s,n,{mode:i,owner:l,tagName:o}),r}(t,e,r)}));if(dn(a,i,r),e.elm=a,e.vm=l,l)mn(e,l);else if(e.ctor!==s)throw new TypeError("Incorrect Component Constructor");hn(null,e,r),pn(a,t,n,r),l&&lr(l);on(e.children,a,r,null),l&&function(e){or(e)}(l)}(e,t,r,null!==(i=e.data.renderer)&&void 0!==i?i:n)}}function on(e,t,n,r,o=0,i=e.length){for(;o<i;++o){const i=e[o];an(i)&&rn(i,t,n,r)}}function sn(e,t,n,r=!1){const{type:o,elm:i,sel:s}=e;switch(r&&function(e,t,n){n.remove(e,t)}(i,t,n),o){case 2:{const t="slot"===s&&1===e.owner.shadowMode;ln(e.children,i,n,t);break}case 3:{const{vm:t}=e;F(t)||function(e){Zn(e)}(t)}}}function ln(e,t,n,r=!1,o=0,i=e.length){for(;o<i;++o){const i=e[o];an(i)&&sn(i,t,n,r)}}function an(e){return null!=e}function cn(e,t){e.$shadowToken$=t}function un(e,t,n){const r=function(e){const{cmpTemplate:t,context:n}=e;return n.hasScopedStyles&&(null==t?void 0:t.stylesheetToken)||null}(t);if(!I(r)){const{getClassList:t}=n;t(e).add(r)}}function dn(e,t,n){const{renderRoot:r,renderMode:o,shadowMode:i}=t,{isSyntheticShadowDefined:s}=n;s&&(1!==i&&0!==o||(e.$shadowResolver$=r.$shadowResolver$))}function fn(e,t){const{elm:n,text:r}=e,{setText:o}=t;o(n,r)}function pn(e,t,n,r){r.insert(e,t,n)}function hn(e,t,n){I(e)&&(function(e,t){const{elm:n,data:{on:r}}=e;if(F(r))return;const{addEventListener:o}=t;for(const e in r)o(n,e,r[e])}(t,n),function(e,t){const{elm:n,data:{classMap:r}}=e;if(F(r))return;const{getClassList:o}=t,i=o(n);for(const e in r)i.add(e)}(t,n),function(e,t){const{elm:n,data:{styleDecls:r}}=e;if(F(r))return;const{setCSSStyleProperty:o}=t;for(let e=0;e<r.length;e++){const[t,i,s]=r[e];o(n,t,i,s)}}(t,n)),function(e,t,n){const{elm:r,data:{className:o}}=t,i=I(e)?void 0:e.data.className;if(i===o)return;const{getClassList:s}=n,l=s(r),a=en(o),c=en(i);let u;for(u in c)F(a[u])&&l.remove(u);for(u in a)F(c[u])&&l.add(u)}(e,t,n),function(e,t,n){const{elm:r,data:{style:o}}=t;if((I(e)?void 0:e.data.style)===o)return;const{setAttribute:i,removeAttribute:s}=n;W(o)&&""!==o?i(r,"style",o):s(r,"style")}(e,t,n),function(e,t,n){const{attrs:r}=t.data;if(F(r))return;const o=I(e)?fe:e.data.attrs;if(o===r)return;const{elm:i}=t,{setAttribute:s,removeAttribute:l}=n;for(const e in r){const t=r[e];o[e]!==t&&(Re(i,e),58===N.call(e,3)?s(i,e,t,"http://www.w3.org/XML/1998/namespace"):58===N.call(e,5)?s(i,e,t,"http://www.w3.org/1999/xlink"):I(t)||F(t)?l(i,e):s(i,e,t),Ne())}}(e,t,n),function(e,t,n){const{props:r}=t.data;if(F(r))return;const o=I(e)?fe:e.data.props;if(o===r)return;const i=I(e),{elm:s,sel:l}=t,{getProperty:a,setProperty:c}=n;for(const e in r){const t=r[e];(i||t!==(Qt(l,e)?a(s,e):o[e]))&&c(s,e,t)}}(e,t,n)}function mn(e,t){const r=e.aChildren||e.children;t.aChildren=r;const{renderMode:o,shadowMode:i}=t;1!==i&&0!==o||(!function(e,t){var r;const{cmpSlots:o}=e,i=e.cmpSlots=n(null);for(let e=0,n=t.length;e<n;e+=1){const n=t[e];if(I(n))continue;let o="";Yt(n)&&(o=(null===(r=n.data.attrs)||void 0===r?void 0:r.slot)||"");const s=i[o]=i[o]||[];k.call(s,n)}if(j(e.isDirty)){const t=d(o);if(t.length!==d(i).length)return void jn(e);for(let n=0,r=t.length;n<r;n+=1){const r=t[n];if(F(i[r])||o[r].length!==i[r].length)return void jn(e);const s=o[r],l=i[r];for(let t=0,n=i[r].length;t<n;t+=1)if(s[t]!==l[t])return void jn(e)}}}(t,r),e.aChildren=r,e.children=pe)}const gn=new WeakMap;function wn(e,t,n){const r={};for(let o=t;o<=n;++o){const t=e[o];if(an(t)){const{key:e}=t;void 0!==e&&(r[e]=o)}}return r}const yn=Symbol.iterator;function bn(e,t,n=pe){const r=An();const{key:o}=t;return{type:2,sel:e,data:t,children:n,elm:undefined,key:o,owner:r}}function vn(e,t,n,r=pe){const o=An(),{key:i}=n;const s={type:3,sel:e,data:n,children:r,elm:undefined,key:i,ctor:t,owner:o,mode:"open",aChildren:undefined,vm:undefined};return function(e){k.call(An().velements,e)}(s),s}const Cn=new Map;let En=0;function kn(e){var t;return t=e,gn.set(t,1),e}let xn=()=>{throw new Error("sanitizeHtmlContent hook must be implemented.")};const Sn=i({s:function(e,t,n,r){F(r)||F(r[e])||0===r[e].length||(n=r[e]);const o=An(),{renderMode:i,shadowMode:s}=o;return 0===i?(kn(n),n):(1===s&&kn(n),bn("slot",t,n))},h:bn,c:vn,i:function(e,t){const n=[];if(kn(n),F(e)||null===e)return n;const r=e[yn]();let o=r.next(),i=0,{value:s,done:l}=o;for(;!1===l;){o=r.next(),l=o.done;const e=t(s,i,0===i,!0===l);h(e)?k.apply(n,e):k.call(n,e),i+=1,s=o.value}return n},f:function(e){const t=e.length,n=[];kn(n);for(let r=0;r<t;r+=1){const t=e[r];h(t)?k.apply(n,t):k.call(n,t)}return n},t:function(e){return{type:0,sel:undefined,text:e,elm:undefined,key:undefined,owner:An()}},d:function(e){return null==e?"":String(e)},b:function(e){const t=An();if(I(t))throw new Error;const n=t;return function(t){Dn(n,e,n.component,t)}},k:function(e,t){switch(typeof t){case"number":case"string":return e+":"+t}},co:function(e){return{type:1,sel:undefined,text:e,elm:undefined,key:undefined,owner:An()}},dc:function(e,t,n,r=pe){if(null==t)return null;if(!Bt(t))throw new Error(`Invalid LWC Constructor ${z(t)} for custom element <${e}>.`);let o=Cn.get(t);return F(o)&&(o=En++,Cn.set(t,o)),vn(e,t,Object.assign(Object.assign({},n),{key:`dc:${o}:${n.key}`}),r)},ti:function(e){return e>0&&!(H(e)||j(e))?0:e},st:function(e,t){return{type:4,sel:void 0,key:t,elm:void 0,fragment:e,owner:An()}},gid:function(e){const t=An();if(F(e)||""===e)return e;if(I(e))return null;const{idx:n,shadowMode:r}=t;return 1===r?R.call(e,/\S+/g,(e=>`${e}-${n}`)):e},fid:function(e){const t=An();if(F(e)||""===e)return e;if(I(e))return null;const{idx:n,shadowMode:r}=t;return 1===r&&/^#/.test(e)?`${e}-${n}`:e},shc:function(e){return xn(e)}});let Mn=!1,Tn=null;function An(){return Tn}function On(e){Tn=e}const Pn=($n=(e,t)=>{const{createFragment:n}=t;return n(e)},(e,...t)=>{const r=n(null);return function(){const{context:{hasScopedStyles:n,stylesheetToken:o},shadowMode:i,renderer:s}=An(),l=!F(o),a=1===i;let c=0;if(l&&n&&(c|=1),l&&a&&(c|=2),!F(r[c]))return r[c];const u=n&&l?" "+o:"",d=n&&l?` class="${o}"`:"",f=l&&a?" "+o:"";let p="";for(let n=0,r=t.length;n<r;n++)switch(t[n]){case 0:p+=e[n]+u;break;case 1:p+=e[n]+d;break;case 2:p+=e[n]+f;break;case 3:p+=e[n]+d+f}return p+=e[e.length-1],r[c]=$n(p,s),r[c]}});var $n;function Ln(e,t){const r=Mn,o=Tn;let i=[];return fr(e,e.owner,(()=>{Tn=e}),(()=>{const{component:r,context:o,cmpSlots:s,cmpTemplate:l,tro:a}=e;a.observe((()=>{if(t!==l){if(I(l)||dr(e),a=t,!Ot.has(a))throw new TypeError(`Invalid template returned by the render() method on ${e}. It must return an imported template (e.g.: \`import html from "./${e.def.name}.html"\`), instead, it has returned: ${z(t)}.`);e.cmpTemplate=t,o.tplCache=n(null),o.hasScopedStyles=function(e){const{stylesheets:t}=e;if(!F(t))for(let e=0;e<t.length;e++)if(H(t[e].$scoped$))return!0;return!1}(t),function(e,t){const{elm:n,context:r,renderMode:o,shadowMode:i,renderer:{getClassList:s,removeAttribute:l,setAttribute:a}}=e,{stylesheets:c,stylesheetToken:u}=t,d=1===o&&1===i,{hasScopedStyles:f}=r;let p,h,m;const{stylesheetToken:g,hasTokenInClass:w,hasTokenInAttribute:y}=r;F(g)||(w&&s(n).remove(Kt(g)),y&&l(n,Kt(g))),F(c)||0===c.length||(p=u),F(p)||(f&&(s(n).add(Kt(p)),h=!0),d&&(a(n,Kt(p),""),m=!0)),r.stylesheetToken=p,r.hasTokenInClass=h,r.hasTokenInAttribute=m}(e,t);const r=Ut(e,t);o.styleVNodes=0===r.length?null:Xt(e,r)}var a;e.velements=[],Mn=!0,i=t.call(void 0,Sn,r,s,o.tplCache);const{styleVNodes:c}=o;I(c)||P.apply(i,c)}))}),(()=>{Mn=r,Tn=o})),i}let Nn=null;function Rn(e){return Nn===e}function _n(e,t,n){const{component:r,callHook:o,owner:i}=e;fr(e,i,V,(()=>{o(r,t,n)}),V)}function Dn(e,t,n,r){const{callHook:o,owner:i}=e;fr(e,i,V,(()=>{o(n,t,[r])}),V)}const Fn=new Map;function In(e){return new ve((()=>{const{isDirty:t}=e;j(t)&&(jn(e),function(e){const{renderer:{ssr:t}}=e;if(H(t)||H(e.isScheduled))return;e.isScheduled=!0,0===ir.length&&me(sr);k.call(ir,e)}(e))}))}function Hn(e){e.tro.reset();const t=function(e){const{def:{render:t},callHook:n,component:r,owner:o}=e,i=An();let s,l=!1;return fr(e,o,(()=>{On(e)}),(()=>{e.tro.observe((()=>{s=n(r,t),l=!0}))}),(()=>{On(i)})),l?Ln(e,s):[]}(e);return e.isDirty=!1,e.isScheduled=!1,t}function jn(e){e.isDirty=!0}const Bn=new WeakMap;function Wn(e,t){if(!B(t))throw new TypeError;let n=Bn.get(t);return F(n)&&(n=function(n){Dn(e,t,void 0,n)},Bn.set(t,n)),n}const Vn=n(null),Kn=["rendered","connected","disconnected"];function zn(e,t){const{component:n,def:r,context:o}=e;for(let e=0,i=t.length;e<i;++e)t[e].call(void 0,n,{},r,o)}let Gn=0;const Un=new WeakMap;function qn(e,t,n=[]){return t.apply(e,n)}function Xn(e,t,n){e[t]=n}function Yn(e,t){return e[t]}function Jn(e){or(e)}function Qn(e){const t=nr(e);1===t.state&&function(e){Zn(nr(e))}(e),lr(t),or(t)}function Zn(e){const{state:t}=e;if(2!==t){const{oar:t,tro:n}=e;n.reset();for(const e in t)t[e].reset();!function(e){j(e.isDirty)&&(e.isDirty=!0);e.state=2;const{disconnected:t}=Vn;t&&zn(e,t);ar(e)&&function(e){const{wiredDisconnecting:t}=e.context;fr(e,e,V,(()=>{for(let e=0,n=t.length;e<n;e+=1)t[e]()}),V)}(e);const{disconnectedCallback:n}=e.def;F(n)||_n(e,n)}(e),cr(e),function(e){const{aChildren:t}=e;ur(t)}(e)}}function er(e,t,r,o){const{mode:i,owner:s,tagName:l,hydrated:a}=o,c=Wt(t),u={elm:e,def:c,idx:Gn++,state:0,isScheduled:!1,isDirty:!0,tagName:l,mode:i,owner:s,children:pe,aChildren:pe,velements:pe,cmpProps:n(null),cmpFields:n(null),cmpSlots:n(null),oar:n(null),cmpTemplate:null,hydrated:Boolean(a),renderMode:c.renderMode,context:{stylesheetToken:void 0,hasTokenInClass:void 0,hasTokenInAttribute:void 0,hasScopedStyles:void 0,styleVNodes:null,tplCache:fe,wiredConnecting:pe,wiredDisconnecting:pe},tro:null,shadowMode:null,component:null,shadowRoot:null,renderRoot:null,callHook:qn,setHook:Xn,getHook:Yn,renderer:r};return u.shadowMode=function(e,t){const{def:n}=e,{isSyntheticShadowDefined:r,isNativeShadowDefined:o}=t;let i;if(r)if(0===n.renderMode)i=0;else if(o)if(ue.ENABLE_MIXED_SHADOW_MODE)if("any"===n.shadowSupportMode)i=0;else{const t=function(e){let t=e.owner;for(;!I(t)&&0===t.renderMode;)t=t.owner;return t}(e);i=I(t)||0!==t.shadowMode?1:0}else i=1;else i=1;else i=0;return i}(u,r),u.tro=In(u),function(e,t){const n=Nn;let r;Nn=e;try{const o=new t;if(Nn.component!==o)throw new TypeError("Invalid component constructor, the class should extend LightningElement.")}catch(e){r=Object(e)}finally{if(Nn=n,!F(r))throw xe(e,r),r}}(u,c.ctor),ar(u)&&function(e){const{context:t,def:{wire:n}}=e,r=t.wiredConnecting=[],o=t.wiredDisconnecting=[];for(const t in n){const i=n[t],s=pr.get(i);if(!F(s)){const{connector:n,computeConfigAndUpdate:i,resetConfigWatcher:l}=mr(e,t,s),a=s.dynamic.length>0;k.call(r,(()=>{n.connect(),ue.ENABLE_WIRE_SYNC_EMIT||!a?i():Promise.resolve().then(i)})),k.call(o,(()=>{n.disconnect(),l()}))}}}(u),u}function tr(e,t){Un.set(e,t)}function nr(e){return Un.get(e)}function rr(e){return Un.get(e)}function or(e){if(H(e.isDirty)){!function(e,t){const{renderRoot:n,children:r,renderer:o}=e;e.children=t,(t.length>0||r.length>0)&&r!==t&&fr(e,e,(()=>{}),(()=>{tn(r,t,n,o)}),(()=>{}));1===e.state&&function(e){const{def:{renderedCallback:t},renderer:{ssr:n}}=e;if(H(n))return;const{rendered:r}=Vn;r&&zn(e,r);F(t)||_n(e,t)}(e)}(e,Hn(e))}}let ir=[];function sr(){const e=ir.sort(((e,t)=>e.idx-t.idx));ir=[];for(let t=0,n=e.length;t<n;t+=1){const r=e[t];try{or(r)}catch(r){throw t+1<n&&(0===ir.length&&me(sr),P.apply(ir,T.call(e,t+1))),r}}}function lr(e){const{state:t}=e;if(1===t)return;e.state=1;const{connected:n}=Vn;n&&zn(e,n),ar(e)&&function(e){const{wiredConnecting:t}=e.context;for(let e=0,n=t.length;e<n;e+=1)t[e]()}(e);const{connectedCallback:r}=e.def;F(r)||_n(e,r)}function ar(e){return l(e.def.wire).length>0}function cr(e){const{velements:t}=e;for(let e=t.length-1;e>=0;e-=1){const{elm:n}=t[e];if(!F(n)){const e=rr(n);F(e)||Zn(e)}}}function ur(e){for(let t=0,n=e.length;t<n;t+=1){const n=e[t];if(!I(n)&&!F(n.elm))switch(n.type){case 2:ur(n.children);break;case 3:Zn(nr(n.elm));break}}}function dr(e){const{children:t,renderRoot:n,renderer:{remove:r}}=e;for(let e=0,o=t.length;e<o;e++){const o=t[e];I(o)||F(o.elm)||r(o.elm,n)}e.children=pe,cr(e),e.velements=pe}function fr(e,t,n,r,o){let i;n();try{r()}catch(e){i=Object(e)}finally{if(o(),!F(i)){xe(e,i);const n=I(t)?void 0:function(e){let t=e;for(;!I(t);){if(!F(t.def.errorCallback))return t;t=t.owner}}(t);if(F(n))throw i;dr(e);_n(n,n.def.errorCallback,[i,i.wcStack])}}}const pr=new Map;class hr extends CustomEvent{constructor(e,{setNewContext:t,setDisconnectedCallback:n}){super(e,{bubbles:!0,composed:!0}),r(this,{setNewContext:{value:t},setDisconnectedCallback:{value:n}})}}function mr(e,t,n){const{method:r,adapter:i,configCallback:s,dynamic:l}=n,a=F(r)?function(e,t){const{cmpFields:n}=e;return r=>{r!==e.cmpFields[t]&&(n[t]=r,Ce(e,t))}}(e,t):function(e,t){return n=>{fr(e,e.owner,V,(()=>{t.call(e.component,n)}),V)}}(e,r);let c,u;o(a,"$$DeprecatedWiredElementHostKey$$",{value:e.elm}),o(a,"$$DeprecatedWiredParamsMetaKey$$",{value:l}),fr(e,e,V,(()=>{u=new i(a)}),V);const{computeConfigAndUpdate:d,ro:f}=function(e,t,n){let r=!1;const o=new ve((()=>{!1===r&&(r=!0,Promise.resolve().then((()=>{r=!1,o.reset(),i()})))})),i=()=>{let r;o.observe((()=>r=t(e))),n(r)};return{computeConfigAndUpdate:i,ro:o}}(e.component,s,(t=>{fr(e,e,V,(()=>{u.update(t,c)}),V)}));return F(i.contextSchema)||function(e,t,n){const{adapter:r}=t,o=wr(r);if(F(o))return;const{elm:i,context:{wiredConnecting:s,wiredDisconnecting:l},renderer:{dispatchEvent:a}}=e;k.call(s,(()=>{const e=new hr(o,{setNewContext(e){n(e)},setDisconnectedCallback(e){k.call(l,e)}});a(i,e)}))}(e,n,(t=>{c!==t&&(c=t,1===e.state&&d())})),{connector:u,computeConfigAndUpdate:d,resetConfigWatcher:()=>f.reset()}}const gr=new Map;function wr(e){return gr.get(e)}function yr(e,t,n,r){t.adapter&&(t=t.adapter);const o={adapter:t,method:e.value,configCallback:n,dynamic:r};pr.set(e,o)}function br(e,t,n,r){t.adapter&&(t=t.adapter);const o={adapter:t,configCallback:n,dynamic:r};pr.set(e,o)}let vr=!1;var Cr;!function(e){e.Text="text",e.Comment="comment",e.Raw="raw",e.Element="element",e.ShadowRoot="shadow-root"}(Cr||(Cr={}));const Er=/\s+/g;function kr(e){return new Set(e.split(Er).filter((e=>e.length)))}function xr(e){return Array.from(e).join(" ")}function Sr(e){return function(){throw new TypeError(`"${e}" is not supported in this environment`)}}function Mr(e,t){return{type:Cr.Element,name:e,namespace:null!=t?t:Q,parent:null,shadowRoot:null,children:[],attributes:[],eventListeners:{}}}const Tr=n(null),Ar=new WeakMap;function Or(e,t,n=null){const r=e.attributes.find((e=>e.name===t&&e.namespace===n));return r?r.value:null}function Pr(e,t,n,r=null){const o=e.attributes.find((e=>e.name===t&&e.namespace===r));F(r)&&(r=null),F(o)?e.attributes.push({name:t,namespace:r,value:String(n)}):o.value=n}function $r(e,t,n){e.attributes=e.attributes.filter((e=>e.name!==t&&e.namespace!==n))}const Lr=V,Nr=V,Rr=V,_r=Sr("dispatchEvent"),Dr=Sr("getBoundingClientRect"),Fr=Sr("querySelector"),Ir=Sr("querySelectorAll"),Hr=Sr("getElementsByTagName"),jr=Sr("getElementsByClassName"),Br=Sr("getChildren"),Wr=Sr("getChildNodes"),Vr=Sr("getFirstChild"),Kr=Sr("getFirstElementChild"),zr=Sr("getLastChild"),Gr=Sr("getLastElementChild");const Ur={ssr:!0,isNativeShadowDefined:!1,isSyntheticShadowDefined:!1,HTMLElementExported:class{constructor(){const{constructor:e}=this,t=Ar.get(e);if(!t)throw new TypeError("Invalid Construction");return Mr(t)}},isHydrating:function(){return!1},insert:function(e,t,n){if(null!==e.parent&&e.parent!==t){const t=e.parent.children.indexOf(e);e.parent.children.splice(t,1)}e.parent=t;const r=I(n)?-1:t.children.indexOf(n);-1===r?t.children.push(e):t.children.splice(r,0,e)},remove:function(e,t){const n=t.children.indexOf(e);t.children.splice(n,1)},cloneNode:function(e){return e},createFragment:function(e){return{type:Cr.Raw,parent:null,value:e}},createElement:Mr,createText:function(e){return{type:Cr.Text,value:String(e),parent:null}},createComment:function(e){return{type:Cr.Comment,value:e,parent:null}},nextSibling:function(e){const{parent:t}=e;if(I(t))return null;const n=t.children.indexOf(e);return t.children[n+1]||null},attachShadow:function(e,t){return e.shadowRoot={type:Cr.ShadowRoot,children:[],mode:t.mode,delegatesFocus:!!t.delegatesFocus},e.shadowRoot},getProperty:function(e,t){var n,r;if(t in e)return e[t];if(e.type===Cr.Element){const o=se(t);if(te(o,e.name))return null!==(n=Or(e,o))&&void 0!==n&&n;if(re(o)||Y(o))return Or(e,o);if("input"===e.name&&"value"===t)return null!==(r=Or(e,"value"))&&void 0!==r?r:""}},setProperty:function(e,t,n){if(t in e)return e[t]=n;if(e.type===Cr.Element){const r=se(t);if("innerHTML"===t)return void(e.children=[{type:Cr.Raw,parent:e,value:n}]);if(te(r,e.name))return!0===n?Pr(e,r,""):$r(e,r);if(re(r)||Y(r))return Pr(e,r,n);if("input"===e.name&&"value"===r)return I(n)||F(n)?$r(e,"value"):Pr(e,"value",n)}},setText:function(e,t){e.type===Cr.Text?e.value=t:e.type===Cr.Element&&(e.children=[{type:Cr.Text,parent:e,value:t}])},getAttribute:Or,setAttribute:Pr,removeAttribute:$r,addEventListener:Nr,removeEventListener:Rr,dispatchEvent:_r,getClassList:function(e){function t(){let t=e.attributes.find((e=>"class"===e.name&&I(e.namespace)));return F(t)&&(t={name:"class",namespace:null,value:""},e.attributes.push(t)),t}return{add(...e){const n=t(),r=kr(n.value);e.forEach((e=>r.add(e))),n.value=xr(r)},remove(...e){const n=t(),r=kr(n.value);e.forEach((e=>r.delete(e))),n.value=xr(r)}}},setCSSStyleProperty:function(e,t,n,r){const o=e.attributes.find((e=>"style"===e.name&&I(e.namespace))),i=`${t}: ${n}${r?" !important":""}`;F(o)?e.attributes.push({name:"style",namespace:null,value:i}):o.value+=`; ${i}`},getBoundingClientRect:Dr,querySelector:Fr,querySelectorAll:Ir,getElementsByTagName:Hr,getElementsByClassName:jr,getChildren:Br,getChildNodes:Wr,getFirstChild:Vr,getFirstElementChild:Kr,getLastChild:zr,getLastElementChild:Gr,isConnected:function(e){return!I(e.parent)},insertStylesheet:Lr,assertInstanceOfHTMLElement:V,defineCustomElement:function(e,t,n){!function(e,t){if(e!==D.call(e)||Tr[e])throw new TypeError("Invalid Registration");Tr[e]=t,Ar.set(t,e)}(e,t)},getCustomElement:function(e){return Tr[e]}};function qr(e){return e.map((e=>{switch(e.type){case Cr.Text:return""===e.value?"":ae(e.value);case Cr.Comment:return`\x3c!--${ae(e.value)}--\x3e`;case Cr.Raw:return e.value;case Cr.Element:return Xr(e)}})).join("")}function Xr(e){let t="";const{name:n,namespace:r}=e,o=r!==Q,i=e.children.length>0;var s;return t+=`<${n}${e.attributes.length?` ${s=e.attributes,s.map((e=>e.value.length?`${e.name}=${JSON.stringify(ae(e.value))}`:e.name)).join(" ")}`:""}`,o&&!i?(t+="/>",t):(t+=">",e.shadowRoot&&(t+=function(e){const t=[`shadowroot="${e.mode}"`];return e.delegatesFocus&&t.push("shadowrootdelegatesfocus"),`<template ${t.join(" ")}>${qr(e.children)}</template>`}(e.shadowRoot)),t+=qr(e.children),function(e,t){return t===Q&&Z.has(e.toLowerCase())}(n,r)&&!i||(t+=`</${n}>`),t)}const Yr={type:Cr.Element,name:"fake-root-element",namespace:Q,parent:null,shadowRoot:null,children:[],attributes:[],eventListeners:{}};i(gt),f(gt.prototype),exports.LightningElement=gt,exports.api=function(){throw new Error},exports.createContextProvider=function(e){let t=wr(e);if(!F(t))throw new Error("Adapter already has a context provider.");t=function(){function e(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}return e()+e()+"-"+e()+"-"+e()+"-"+e()+"-"+e()+e()+e()}(),function(e,t){gr.set(e,t)}(e,t);const n=new WeakSet;return(e,r)=>{if(n.has(e))throw new Error(`Adapter was already installed on ${e}.`);n.add(e);const{consumerConnectedCallback:o,consumerDisconnectedCallback:i}=r;e.addEventListener(t,(e=>{const{setNewContext:t,setDisconnectedCallback:n}=e,r={provide(e){t(e)}};n((()=>{F(i)||i(r)})),o(r),e.stopImmediatePropagation()}))}},exports.freezeTemplate=function(e){},exports.getComponentDef=function(e){const t=Wt(e),{ctor:n,name:r,props:o,propsConfig:i,methods:s}=t,l={};for(const e in o)l[e]={config:i[e]||0,type:"any",attr:se(e)};const a={};for(const e in s)a[e]=s[e].value;return{ctor:n,name:r,props:l,methods:a}},exports.isComponentConstructor=Bt,exports.parseFragment=Pn,exports.parseSVGFragment=Pn,exports.readonly=function(e){return ht.getReadOnlyProxy(e)},exports.register=function(e){for(let t=0;t<Kn.length;++t){const n=Kn[t];if(n in e){let t=Vn[n];F(t)&&(Vn[n]=t=[]),k.call(t,e[n])}}},exports.registerComponent=function(e,{tmpl:t}){return B(e)&&Fn.set(e,t),e},exports.registerDecorators=function(e,t){const r=e.prototype,{publicProps:i,publicMethods:l,wire:a,track:c,fields:u}=t,d=n(null),f=n(null),p=n(null),h=n(null),m=n(null),g=n(null);let w;if(!F(i))for(const e in i){const t=i[e];if(g[e]=t.config,w=s(r,e),t.config>0){if(F(w))throw new Error;w=xt(e,w)}else w=F(w)||F(w.get)?Et(e):xt(e,w);f[e]=w,o(r,e,w)}if(F(l)||$.call(l,(e=>{if(w=s(r,e),F(w))throw new Error;d[e]=w})),!F(a))for(const e in a){const{adapter:t,method:n,config:i,dynamic:l=[]}=a[e];if(w=s(r,e),1===n){if(F(w))throw new Error;p[e]=w,yr(w,t,i,l)}else w=Mt(e),h[e]=w,br(w,t,i,l),o(r,e,w)}if(!F(c))for(const e in c)w=s(r,e),w=St(e),o(r,e,w);if(!F(u))for(let e=0,t=u.length;e<t;e++){const t=u[e];w=s(r,t);const n=!F(i)&&t in i,o=!F(c)&&t in c;n||o||(m[t]=Ct(t))}return function(e,t){Tt.set(e,t)}(e,{apiMethods:d,apiFields:f,apiFieldsConfig:g,wiredMethods:p,wiredFields:h,observedFields:m}),e},exports.registerTemplate=function(e){return Ot.add(e),o(e,"stylesheetTokens",{enumerable:!0,configurable:!0,get(){const{stylesheetToken:e}=this;return F(e)?e:{hostAttribute:`${e}-host`,shadowAttribute:e}},set(e){this.stylesheetToken=F(e)?void 0:e.shadowAttribute}}),e},exports.renderComponent=function(e,t,n={}){if(!W(e))throw new TypeError(`"renderComponent" expects a string as the first parameter but instead received ${e}.`);if(!B(t))throw new TypeError(`"renderComponent" expects a valid component constructor as the second parameter but instead received ${t}.`);if("object"!=typeof n||I(n))throw new TypeError(`"renderComponent" expects an object as the third parameter but instead received ${n}.`);const r=Ur.createElement(e);er(r,t,Ur,{mode:"open",owner:null,tagName:e});for(const[e,t]of Object.entries(n))r[e]=t;return r.parent=Yr,Qn(r),Xr(r)},exports.renderer=Ur,exports.sanitizeAttribute=function(e,t,n,r){return r},exports.setFeatureFlag=function(e,t){if("boolean"==typeof t){if(F(ce[e])){const n=d(ce).map((e=>`"${e}"`)).join(", ");console.warn(`Failed to set the value "${t}" for the runtime feature flag "${e}" because it is undefined. Available flags: ${n}.`)}else{const n=ue[e];if(!F(n))return void console.error(`Failed to set the value "${t}" for the runtime feature flag "${e}". "${e}" has already been set with the value "${n}".`);o(ue,e,{value:t})}}else{const n=`Failed to set the value "${t}" for the runtime feature flag "${e}". Runtime feature flags can only be set to a boolean value.`;console.error(n)}},exports.setFeatureFlagForTest=function(e,t){},exports.setHooks=function(t){var n;e.isFalse(vr,"Hooks are already overridden, only one definition is allowed."),vr=!0,n=t.sanitizeHtmlContent,xn=n},exports.track=function(e){if(1===arguments.length)return ht.getProxy(e);throw new Error},exports.unwrap=function(e){return ht.unwrapProxy(e)},exports.wire=function(e,t){throw new Error};
|