lwc 2.5.9 → 2.5.12

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.
Files changed (35) hide show
  1. package/dist/engine-dom/esm/es2017/engine-dom.js +16 -52
  2. package/dist/engine-dom/iife/es2017/engine-dom.js +16 -52
  3. package/dist/engine-dom/iife/es2017/engine-dom.min.js +2 -2
  4. package/dist/engine-dom/iife/es2017/engine-dom_debug.js +15 -51
  5. package/dist/engine-dom/iife/es5/engine-dom.js +16 -52
  6. package/dist/engine-dom/iife/es5/engine-dom.min.js +2 -2
  7. package/dist/engine-dom/iife/es5/engine-dom_debug.js +15 -51
  8. package/dist/engine-dom/umd/es2017/engine-dom.js +16 -52
  9. package/dist/engine-dom/umd/es2017/engine-dom.min.js +2 -2
  10. package/dist/engine-dom/umd/es2017/engine-dom_debug.js +15 -51
  11. package/dist/engine-dom/umd/es5/engine-dom.js +16 -52
  12. package/dist/engine-dom/umd/es5/engine-dom.min.js +2 -2
  13. package/dist/engine-dom/umd/es5/engine-dom_debug.js +15 -51
  14. package/dist/engine-server/commonjs/es2017/engine-server.js +16 -52
  15. package/dist/engine-server/commonjs/es2017/engine-server.min.js +1 -1
  16. package/dist/engine-server/esm/es2017/engine-server.js +16 -52
  17. package/dist/synthetic-shadow/esm/es2017/synthetic-shadow.js +3 -3
  18. package/dist/synthetic-shadow/iife/es2017/synthetic-shadow.js +3 -3
  19. package/dist/synthetic-shadow/iife/es2017/synthetic-shadow_debug.js +3 -3
  20. package/dist/synthetic-shadow/iife/es5/synthetic-shadow.js +3 -3
  21. package/dist/synthetic-shadow/iife/es5/synthetic-shadow_debug.js +3 -3
  22. package/dist/synthetic-shadow/umd/es2017/synthetic-shadow.js +3 -3
  23. package/dist/synthetic-shadow/umd/es2017/synthetic-shadow_debug.js +3 -3
  24. package/dist/synthetic-shadow/umd/es5/synthetic-shadow.js +3 -3
  25. package/dist/synthetic-shadow/umd/es5/synthetic-shadow_debug.js +3 -3
  26. package/dist/wire-service/esm/es2017/wire-service.js +2 -2
  27. package/dist/wire-service/iife/es2017/wire-service.js +2 -2
  28. package/dist/wire-service/iife/es2017/wire-service_debug.js +2 -2
  29. package/dist/wire-service/iife/es5/wire-service.js +2 -2
  30. package/dist/wire-service/iife/es5/wire-service_debug.js +2 -2
  31. package/dist/wire-service/umd/es2017/wire-service.js +2 -2
  32. package/dist/wire-service/umd/es2017/wire-service_debug.js +2 -2
  33. package/dist/wire-service/umd/es5/wire-service.js +2 -2
  34. package/dist/wire-service/umd/es5/wire-service_debug.js +2 -2
  35. package/package.json +8 -8
@@ -344,7 +344,7 @@
344
344
  CACHED_PROPERTY_ATTRIBUTE_MAPPING.set(propName, attributeName);
345
345
  return attributeName;
346
346
  }
347
- /** version: 2.5.9 */
347
+ /** version: 2.5.12 */
348
348
 
349
349
  /*
350
350
  * Copyright (c) 2018, salesforce.com, inc.
@@ -516,7 +516,7 @@
516
516
 
517
517
  function setFeatureFlagForTest(name, value) {
518
518
  }
519
- /** version: 2.5.9 */
519
+ /** version: 2.5.12 */
520
520
 
521
521
  /* proxy-compat-disable */
522
522
 
@@ -4365,7 +4365,6 @@
4365
4365
 
4366
4366
  function evaluateStylesheetsContent(stylesheets, stylesheetToken, vm) {
4367
4367
  var content = [];
4368
- var root;
4369
4368
 
4370
4369
  for (var _i16 = 0; _i16 < stylesheets.length; _i16++) {
4371
4370
  var stylesheet = stylesheets[_i16];
@@ -4373,45 +4372,22 @@
4373
4372
  if (isArray$1(stylesheet)) {
4374
4373
  ArrayPush$1.apply(content, evaluateStylesheetsContent(stylesheet, stylesheetToken, vm));
4375
4374
  } else {
4376
-
4377
- var isScopedCss = stylesheet[KEY__SCOPED_CSS]; // Apply the scope token only if the stylesheet itself is scoped, or if we're rendering synthetic shadow.
4378
-
4379
- var scopeToken = isScopedCss || vm.shadowMode === 1
4380
- /* Synthetic */
4381
- && vm.renderMode === 1
4382
- /* Shadow */
4383
- ? stylesheetToken : undefined; // Use the actual `:host` selector if we're rendering global CSS for light DOM, or if we're rendering
4384
4375
  // native shadow DOM. Synthetic shadow DOM never uses `:host`.
4385
4376
 
4377
+
4378
+ var isScopedCss = stylesheet[KEY__SCOPED_CSS];
4386
4379
  var useActualHostSelector = vm.renderMode === 0
4387
4380
  /* Light */
4388
4381
  ? !isScopedCss : vm.shadowMode === 0
4389
4382
  /* Native */
4390
- ; // Use the native :dir() pseudoclass only in native shadow DOM. Otherwise, in synthetic shadow,
4391
- // we use an attribute selector on the host to simulate :dir().
4383
+ ; // Apply the scope token only if the stylesheet itself is scoped, or if we're rendering synthetic shadow.
4392
4384
 
4393
- var useNativeDirPseudoclass = void 0;
4394
-
4395
- if (vm.renderMode === 1
4385
+ var scopeToken = isScopedCss || vm.shadowMode === 1
4386
+ /* Synthetic */
4387
+ && vm.renderMode === 1
4396
4388
  /* Shadow */
4397
- ) {
4398
- useNativeDirPseudoclass = vm.shadowMode === 0
4399
- /* Native */
4400
- ;
4401
- } else {
4402
- // Light DOM components should only render `[dir]` if they're inside of a synthetic shadow root.
4403
- // At the top level (root is null) or inside of a native shadow root, they should use `:dir()`.
4404
- if (isUndefined$1(root)) {
4405
- // Only calculate the root once as necessary
4406
- root = getNearestShadowComponent(vm);
4407
- }
4408
-
4409
- useNativeDirPseudoclass = isNull(root) || root.shadowMode === 0
4410
- /* Native */
4411
- ;
4412
- }
4413
-
4414
- ArrayPush$1.call(content, stylesheet(scopeToken, useActualHostSelector, useNativeDirPseudoclass));
4389
+ ? stylesheetToken : undefined;
4390
+ ArrayPush$1.call(content, stylesheet(useActualHostSelector, scopeToken));
4415
4391
  }
4416
4392
  }
4417
4393
 
@@ -4433,12 +4409,14 @@
4433
4409
  // https://github.com/salesforce/lwc/pull/2460#discussion_r691208892
4434
4410
 
4435
4411
 
4436
- function getNearestShadowComponent(vm) {
4412
+ function getNearestNativeShadowComponent(vm) {
4437
4413
  var owner = vm;
4438
4414
 
4439
4415
  while (!isNull(owner)) {
4440
4416
  if (owner.renderMode === 1
4441
4417
  /* Shadow */
4418
+ && owner.shadowMode === 0
4419
+ /* Native */
4442
4420
  ) {
4443
4421
  return owner;
4444
4422
  }
@@ -4449,20 +4427,6 @@
4449
4427
  return owner;
4450
4428
  }
4451
4429
 
4452
- function getNearestNativeShadowComponent(vm) {
4453
- var owner = getNearestShadowComponent(vm);
4454
-
4455
- if (!isNull(owner) && owner.shadowMode === 1
4456
- /* Synthetic */
4457
- ) {
4458
- // Synthetic-within-native is impossible. So if the nearest shadow component is
4459
- // synthetic, we know we won't find a native component if we go any further.
4460
- return null;
4461
- }
4462
-
4463
- return owner;
4464
- }
4465
-
4466
4430
  function createStylesheet(vm, stylesheets) {
4467
4431
  var renderer = vm.renderer,
4468
4432
  renderMode = vm.renderMode,
@@ -5930,7 +5894,7 @@
5930
5894
  hooksAreSet = true;
5931
5895
  setSanitizeHtmlContentHook(hooks.sanitizeHtmlContent);
5932
5896
  }
5933
- /* version: 2.5.9 */
5897
+ /* version: 2.5.12 */
5934
5898
 
5935
5899
  /*
5936
5900
  * Copyright (c) 2018, salesforce.com, inc.
@@ -6560,7 +6524,7 @@
6560
6524
  });
6561
6525
  freeze(LightningElement);
6562
6526
  seal(LightningElement.prototype);
6563
- /* version: 2.5.9 */
6527
+ /* version: 2.5.12 */
6564
6528
 
6565
6529
  exports.LightningElement = LightningElement;
6566
6530
  exports.__unstable__ProfilerControl = profilerControl;
@@ -339,7 +339,7 @@ function htmlPropertyToAttribute(propName) {
339
339
  CACHED_PROPERTY_ATTRIBUTE_MAPPING.set(propName, attributeName);
340
340
  return attributeName;
341
341
  }
342
- /** version: 2.5.9 */
342
+ /** version: 2.5.12 */
343
343
 
344
344
  /*
345
345
  * Copyright (c) 2020, salesforce.com, inc.
@@ -460,7 +460,7 @@ function setFeatureFlagForTest(name, value) {
460
460
  setFeatureFlag(name, value);
461
461
  }
462
462
  }
463
- /** version: 2.5.9 */
463
+ /** version: 2.5.12 */
464
464
 
465
465
  /* proxy-compat-disable */
466
466
 
@@ -5823,7 +5823,6 @@ function updateStylesheetToken(vm, template) {
5823
5823
 
5824
5824
  function evaluateStylesheetsContent(stylesheets, stylesheetToken, vm) {
5825
5825
  const content = [];
5826
- let root;
5827
5826
 
5828
5827
  for (let i = 0; i < stylesheets.length; i++) {
5829
5828
  let stylesheet = stylesheets[i];
@@ -5836,46 +5835,23 @@ function evaluateStylesheetsContent(stylesheets, stylesheetToken, vm) {
5836
5835
  // the component instance might be attempting to use an old version of
5837
5836
  // the stylesheet, while internally, we have a replacement for it.
5838
5837
  stylesheet = getStyleOrSwappedStyle(stylesheet);
5839
- }
5840
-
5841
- const isScopedCss = stylesheet[KEY__SCOPED_CSS]; // Apply the scope token only if the stylesheet itself is scoped, or if we're rendering synthetic shadow.
5842
-
5843
- const scopeToken = isScopedCss || vm.shadowMode === 1
5844
- /* Synthetic */
5845
- && vm.renderMode === 1
5846
- /* Shadow */
5847
- ? stylesheetToken : undefined; // Use the actual `:host` selector if we're rendering global CSS for light DOM, or if we're rendering
5838
+ } // Use the actual `:host` selector if we're rendering global CSS for light DOM, or if we're rendering
5848
5839
  // native shadow DOM. Synthetic shadow DOM never uses `:host`.
5849
5840
 
5841
+
5842
+ const isScopedCss = stylesheet[KEY__SCOPED_CSS];
5850
5843
  const useActualHostSelector = vm.renderMode === 0
5851
5844
  /* Light */
5852
5845
  ? !isScopedCss : vm.shadowMode === 0
5853
5846
  /* Native */
5854
- ; // Use the native :dir() pseudoclass only in native shadow DOM. Otherwise, in synthetic shadow,
5855
- // we use an attribute selector on the host to simulate :dir().
5856
-
5857
- let useNativeDirPseudoclass;
5847
+ ; // Apply the scope token only if the stylesheet itself is scoped, or if we're rendering synthetic shadow.
5858
5848
 
5859
- if (vm.renderMode === 1
5849
+ const scopeToken = isScopedCss || vm.shadowMode === 1
5850
+ /* Synthetic */
5851
+ && vm.renderMode === 1
5860
5852
  /* Shadow */
5861
- ) {
5862
- useNativeDirPseudoclass = vm.shadowMode === 0
5863
- /* Native */
5864
- ;
5865
- } else {
5866
- // Light DOM components should only render `[dir]` if they're inside of a synthetic shadow root.
5867
- // At the top level (root is null) or inside of a native shadow root, they should use `:dir()`.
5868
- if (isUndefined$1(root)) {
5869
- // Only calculate the root once as necessary
5870
- root = getNearestShadowComponent(vm);
5871
- }
5872
-
5873
- useNativeDirPseudoclass = isNull(root) || root.shadowMode === 0
5874
- /* Native */
5875
- ;
5876
- }
5877
-
5878
- ArrayPush$1.call(content, stylesheet(scopeToken, useActualHostSelector, useNativeDirPseudoclass));
5853
+ ? stylesheetToken : undefined;
5854
+ ArrayPush$1.call(content, stylesheet(useActualHostSelector, scopeToken));
5879
5855
  }
5880
5856
  }
5881
5857
 
@@ -5899,12 +5875,14 @@ function getStylesheetsContent(vm, template) {
5899
5875
  // https://github.com/salesforce/lwc/pull/2460#discussion_r691208892
5900
5876
 
5901
5877
 
5902
- function getNearestShadowComponent(vm) {
5878
+ function getNearestNativeShadowComponent(vm) {
5903
5879
  let owner = vm;
5904
5880
 
5905
5881
  while (!isNull(owner)) {
5906
5882
  if (owner.renderMode === 1
5907
5883
  /* Shadow */
5884
+ && owner.shadowMode === 0
5885
+ /* Native */
5908
5886
  ) {
5909
5887
  return owner;
5910
5888
  }
@@ -5915,20 +5893,6 @@ function getNearestShadowComponent(vm) {
5915
5893
  return owner;
5916
5894
  }
5917
5895
 
5918
- function getNearestNativeShadowComponent(vm) {
5919
- const owner = getNearestShadowComponent(vm);
5920
-
5921
- if (!isNull(owner) && owner.shadowMode === 1
5922
- /* Synthetic */
5923
- ) {
5924
- // Synthetic-within-native is impossible. So if the nearest shadow component is
5925
- // synthetic, we know we won't find a native component if we go any further.
5926
- return null;
5927
- }
5928
-
5929
- return owner;
5930
- }
5931
-
5932
5896
  function createStylesheet(vm, stylesheets) {
5933
5897
  const {
5934
5898
  renderer,
@@ -7593,7 +7557,7 @@ function setHooks(hooks) {
7593
7557
  hooksAreSet = true;
7594
7558
  setSanitizeHtmlContentHook(hooks.sanitizeHtmlContent);
7595
7559
  }
7596
- /* version: 2.5.9 */
7560
+ /* version: 2.5.12 */
7597
7561
 
7598
7562
  /*
7599
7563
  * Copyright (c) 2020, salesforce.com, inc.
@@ -8089,7 +8053,7 @@ function renderComponent(tagName, Ctor, props = {}) {
8089
8053
 
8090
8054
  freeze(LightningElement);
8091
8055
  seal(LightningElement.prototype);
8092
- /* version: 2.5.9 */
8056
+ /* version: 2.5.12 */
8093
8057
 
8094
8058
  exports.LightningElement = LightningElement;
8095
8059
  exports.api = api$1;
@@ -6,4 +6,4 @@ This code may only be used under the MIT License found at
6
6
  https://github.com/snabbdom/snabbdom/blob/master/LICENSE
7
7
  Code distributed by Snabbdom as part of the Snabbdom project at
8
8
  https://github.com/snabbdom/snabbdom/
9
- */function We(e){return void 0===e}function Ve(e,t){return e.key===t.key&&e.sel===t.sel}function Ge(e){return null!=e}function Ke(e,t,n){const r={};let o,i,s;for(o=t;o<=n;++o)s=e[o],Ge(s)&&(i=s.key,void 0!==i&&(r[i]=o));return r}function ze(e,t,n,r,o){for(;r<=o;++r){const o=n[r];Ge(o)&&(o.hook.create(o),o.hook.insert(o,e,t))}}function qe(e,t,n,r){for(;n<=r;++n){const r=t[n];Ge(r)&&r.hook.remove(r,e)}}function Ue(e,t,n){let r=0,o=0,i=t.length-1,s=t[0],l=t[i];const a=n.length-1;let c,u,d,f,h=a,p=n[0],m=n[h];for(;r<=i&&o<=h;)Ge(s)?Ge(l)?Ge(p)?Ge(m)?Ve(s,p)?(Ye(s,p),s=t[++r],p=n[++o]):Ve(l,m)?(Ye(l,m),l=t[--i],m=n[--h]):Ve(s,m)?(Ye(s,m),m.hook.move(s,e,l.owner.renderer.nextSibling(l.elm)),s=t[++r],m=n[--h]):Ve(l,p)?(Ye(l,p),p.hook.move(l,e,s.elm),l=t[--i],p=n[++o]):(void 0===c&&(c=Ke(t,r,i)),u=c[p.key],We(u)?(p.hook.create(p),p.hook.insert(p,e,s.elm),p=n[++o]):(d=t[u],Ge(d)&&(d.sel!==p.sel?(p.hook.create(p),p.hook.insert(p,e,s.elm)):(Ye(d,p),t[u]=void 0,p.hook.move(d,e,s.elm))),p=n[++o])):m=n[--h]:p=n[++o]:l=t[--i]:s=t[++r];if(r<=i||o<=h)if(r>i){let t,r=h;do{t=n[++r]}while(!Ge(t)&&r<a);f=Ge(t)?t.elm:null,ze(e,f,n,o,h)}else qe(e,t,r,i)}function Xe(e,t,n){const r=t.length,o=n.length;if(0===r)return void ze(e,null,n,0,o);if(0===o)return void qe(e,t,0,r);let i=null;for(let r=o-1;r>=0;r-=1){const o=n[r],s=t[r];o!==s&&(Ge(s)?Ge(o)?(Ye(s,o),i=o.elm):s.hook.remove(s,e):Ge(o)&&(o.hook.create(o),o.hook.insert(o,e,i),i=o.elm))}}function Ye(e,t){e!==t&&(t.elm=e.elm,t.hook.update(e,t))}const Je="undefined"!=typeof HTMLElement?HTMLElement:function(){},Qe=Je.prototype,Ze=n(null);M.call(d(G),(e=>{const t=B(Qe,e);$(t)||(Ze[e]=t)})),M.call(["accessKey","dir","draggable","hidden","id","lang","spellcheck","tabIndex","title"],(e=>{const t=B(Qe,e);$(t)||(Ze[e]=t)}));const{isArray:et}=Array,{getPrototypeOf:tt,create:nt,defineProperty:rt,isExtensible:ot,getOwnPropertyDescriptor:it,getOwnPropertyNames:st,getOwnPropertySymbols:lt,preventExtensions:at,hasOwnProperty:ct}=Object,{push:ut,concat:dt}=Array.prototype;function ft(e){return void 0===e}function ht(e){return"function"==typeof e}const pt=new WeakMap;function mt(e,t){pt.set(e,t)}const gt=e=>pt.get(e)||e;class wt{constructor(e,t){this.originalTarget=t,this.membrane=e}wrapDescriptor(e){if(ct.call(e,"value"))e.value=this.wrapValue(e.value);else{const{set:t,get:n}=e;ft(n)||(e.get=this.wrapGetter(n)),ft(t)||(e.set=this.wrapSetter(t))}return e}copyDescriptorIntoShadowTarget(e,t){const{originalTarget:n}=this,r=it(n,t);if(!ft(r)){const n=this.wrapDescriptor(r);rt(e,t,n)}}lockShadowTarget(e){const{originalTarget:t}=this;dt.call(st(t),lt(t)).forEach((t=>{this.copyDescriptorIntoShadowTarget(e,t)}));const{membrane:{tagPropertyKey:n}}=this;ft(n)||ct.call(e,n)||rt(e,n,nt(null)),at(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=ft(n)||ct.call(t,n)?[]:[n];return ut.apply(r,st(t)),ut.apply(r,lt(t)),r}isExtensible(e){const{originalTarget:t}=this;return!!ot(e)&&(!!ot(t)||(this.lockShadowTarget(e),!1))}getPrototypeOf(e){const{originalTarget:t}=this;return tt(t)}getOwnPropertyDescriptor(e,t){const{originalTarget:n,membrane:{valueObserved:r,tagPropertyKey:o}}=this;r(n,t);let i=it(n,t);if(ft(i)){if(t!==o)return;return i={value:void 0,writable:!1,configurable:!1,enumerable:!1},rt(e,o,i),i}return!1===i.configurable&&this.copyDescriptorIntoShadowTarget(e,t),this.wrapDescriptor(i)}}const yt=new WeakMap,bt=new WeakMap,vt=new WeakMap,Ct=new WeakMap;class Et extends wt{wrapValue(e){return this.membrane.getProxy(e)}wrapGetter(e){const t=yt.get(e);if(!ft(t))return t;const n=this,r=function(){return n.wrapValue(e.call(gt(this)))};return yt.set(e,r),vt.set(r,e),r}wrapSetter(e){const t=bt.get(e);if(!ft(t))return t;const n=function(t){e.call(gt(this),gt(t))};return bt.set(e,n),Ct.set(n,e),n}unwrapDescriptor(e){if(ct.call(e,"value"))e.value=gt(e.value);else{const{set:t,get:n}=e;ft(n)||(e.get=this.unwrapGetter(n)),ft(t)||(e.set=this.unwrapSetter(t))}return e}unwrapGetter(e){const t=vt.get(e);if(!ft(t))return t;const n=this,r=function(){return gt(e.call(n.wrapValue(this)))};return yt.set(r,e),vt.set(e,r),r}unwrapSetter(e){const t=Ct.get(e);if(!ft(t))return t;const n=this,r=function(t){e.call(n.wrapValue(this),n.wrapValue(t))};return bt.set(r,e),Ct.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&&et(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(ot(e)){const{originalTarget:t}=this;if(at(t),ot(t))return!1;this.lockShadowTarget(e)}return!0}defineProperty(e,t,n){const{originalTarget:r,membrane:{valueMutated:o,tagPropertyKey:i}}=this;return t===i&&!ct.call(r,t)||(rt(r,t,this.unwrapDescriptor(n)),!1===n.configurable&&this.copyDescriptorIntoShadowTarget(e,t),o(r,t),!0)}}const kt=new WeakMap,xt=new WeakMap;class St extends wt{wrapValue(e){return this.membrane.getReadOnlyProxy(e)}wrapGetter(e){const t=kt.get(e);if(!ft(t))return t;const n=this,r=function(){return n.wrapValue(e.call(gt(this)))};return kt.set(e,r),r}wrapSetter(e){const t=xt.get(e);if(!ft(t))return t;const n=function(e){};return xt.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}}const Mt=Object.prototype;function Tt(e){if(null===e)return!1;if("object"!=typeof e)return!1;if(et(e))return!0;const t=tt(e);return t===Mt||null===t||null===tt(t)}const At=(e,t)=>{},Ot=(e,t)=>{},Pt=e=>e;function Lt(e){return et(e)?[]:{}}const $t=Symbol.for("@@lockerLiveValue");function Nt(e){return e}const Dt=new class{constructor(e){if(this.valueDistortion=Pt,this.valueMutated=Ot,this.valueObserved=At,this.valueIsObservable=Tt,this.readOnlyObjectGraph=new WeakMap,this.reactiveObjectGraph=new WeakMap,!ft(e)){const{valueDistortion:t,valueMutated:n,valueObserved:r,valueIsObservable:o,tagPropertyKey:i}=e;this.valueDistortion=ht(t)?t:Pt,this.valueMutated=ht(n)?n:Ot,this.valueObserved=ht(r)?r:At,this.valueIsObservable=ht(o)?o:Tt,this.tagPropertyKey=i}}getProxy(e){const t=gt(e),n=this.valueDistortion(t);return this.valueIsObservable(n)?this.readOnlyObjectGraph.get(n)===e?e:this.getReactiveHandler(t,n):n}getReadOnlyProxy(e){e=gt(e);const t=this.valueDistortion(e);return this.valueIsObservable(t)?this.getReadOnlyHandler(e,t):t}unwrapProxy(e){return gt(e)}getReactiveHandler(e,t){let n=this.reactiveObjectGraph.get(t);if(ft(n)){const r=new Et(this,t);n=new Proxy(Lt(t),r),mt(n,e),this.reactiveObjectGraph.set(t,n)}return n}getReadOnlyHandler(e,t){let n=this.readOnlyObjectGraph.get(t);if(ft(n)){const r=new St(this,t);n=new Proxy(Lt(t),r),mt(n,e),this.readOnlyObjectGraph.set(t,n)}return n}}({valueObserved:de,valueMutated:ue,valueDistortion:Nt,tagPropertyKey:$t});function _t(e,t){const{get:n,set:r,enumerable:o,configurable:i}=t;if(!R(n))throw new TypeError;if(!R(r))throw new TypeError;return{enumerable:o,configurable:i,get(){const t=br(this);if(!Jn(t))return pe(t,e),n.call(t.elm)},set(t){const n=br(this);return t!==n.cmpProps[e]&&(n.cmpProps[e]=t,he(n,e)),r.call(n.elm,t)}}}const Rt=function(){if(N(Yn))throw new ReferenceError("Illegal constructor");const e=Yn,{def:t,elm:n,renderer:r}=e,{bridge:o}=t,i=this;if(h(n,o.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[$t]=void 0,yr(i,e),yr(n,e),1===e.renderMode&&Ft(e),this};function Ft(e){const{elm:t,mode:n,renderer:r,shadowMode:o,def:{ctor:i}}=e,s=r.attachShadow(t,{"$$lwc-synthetic-mode":1===o,delegatesFocus:Boolean(i.delegatesFocus),mode:n});e.cmpRoot=s,yr(s,e)}Rt.prototype={constructor:Rt,dispatchEvent(e){const{elm:t,renderer:{dispatchEvent:n}}=br(this);return n(t,e)},addEventListener(e,t,n){const r=br(this),{elm:o,renderer:{addEventListener:i}}=r;i(o,e,ir(r,t),n)},removeEventListener(e,t,n){const r=br(this),{elm:o,renderer:{removeEventListener:i}}=r;i(o,e,ir(r,t),n)},hasAttribute(e){const{elm:t,renderer:{getAttribute:n}}=br(this);return!N(n(t,e))},hasAttributeNS(e,t){const{elm:n,renderer:{getAttribute:r}}=br(this);return!N(r(n,t,e))},removeAttribute(e){const{elm:t,renderer:{removeAttribute:n}}=br(this);xe(t,e),n(t,e),ke()},removeAttributeNS(e,t){const{elm:n,renderer:{removeAttribute:r}}=br(this);xe(n,t),r(n,t,e),ke()},getAttribute(e){const{elm:t,renderer:{getAttribute:n}}=br(this);return n(t,e)},getAttributeNS(e,t){const{elm:n,renderer:{getAttribute:r}}=br(this);return r(n,t,e)},setAttribute(e,t){const n=br(this),{elm:r,renderer:{setAttribute:o}}=n;xe(r,e),o(r,e,t),ke()},setAttributeNS(e,t,n){const r=br(this),{elm:o,renderer:{setAttribute:i}}=r;xe(o,t),i(o,t,n,e),ke()},getBoundingClientRect(){const e=br(this),{elm:t,renderer:{getBoundingClientRect:n}}=e;return n(t)},get isConnected(){const{elm:e,renderer:{isConnected:t}}=br(this);return t(e)},get classList(){const e=br(this),{elm:t,renderer:{getClassList:n}}=e;return n(t)},get template(){return br(this).cmpRoot},get shadowRoot(){return null},render(){return br(this).def.template},toString(){return`[object ${br(this).def.name}]`}};const Ht=n(null),It=[["children","getChildren"],["childNodes","getChildNodes"],["firstChild","getFirstChild"],["firstElementChild","getFirstElementChild"],["lastChild","getLastChild"],["lastElementChild","getLastElementChild"]];for(const[e,t]of It)Ht[e]={get(){const e=br(this),{elm:n,renderer:r}=e;return r[t](n)},configurable:!0,enumerable:!0};const jt=["getElementsByClassName","getElementsByTagName","querySelector","querySelectorAll"];for(const e of jt)Ht[e]={value(t){const n=br(this),{elm:r,renderer:o}=n;return o[e](r,t)},configurable:!0,enumerable:!0,writable:!0};r(Rt.prototype,Ht);const Bt=n(null);for(const e in Ze)Bt[e]=_t(e,Ze[e]);function Wt(e){return{get(){const t=br(this);return pe(t,e),t.cmpFields[e]},set(t){const n=br(this);t!==n.cmpFields[e]&&(n.cmpFields[e]=t,he(n,e))},enumerable:!0,configurable:!0}}function Vt(e){return{get(){const t=br(this);return pe(t,e),t.cmpFields[e]},set(t){const n=br(this),r=Dt.getProxy(t);r!==n.cmpFields[e]&&(n.cmpFields[e]=r,he(n,e))},enumerable:!0,configurable:!0}}function Gt(e){return{get(){const t=br(this);if(!Jn(t))return pe(t,e),t.cmpProps[e]},set(t){const n=br(this);n.cmpProps[e]=t,he(n,e)},enumerable:!0,configurable:!0}}r(Rt.prototype,Bt),o(Rt,"CustomElementConstructor",{get(){throw new ReferenceError("The current runtime does not support CustomElementConstructor.")},configurable:!0});class Kt extends fe{constructor(e,t){super((()=>{_(this.debouncing)&&(this.debouncing=!0,le((()=>{if(D(this.debouncing)){const{value:n}=this,{isDirty:r,component:o,idx:i}=e;t.call(o,n),this.debouncing=!1,D(e.isDirty)&&_(r)&&i>0&&pr(e)}})))})),this.debouncing=!1}reset(e){super.reset(),this.debouncing=!1,arguments.length>0&&(this.value=e)}}function zt(e,t){const{get:n,set:r,enumerable:o,configurable:i}=t;if(!R(n))throw new Error;return{get(){return n.call(this)},set(t){const n=br(this);if(r)if(ne.ENABLE_REACTIVE_SETTER){let o=n.oar[e];$(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 qt(e){return{get(){const t=br(this);return pe(t,e),t.cmpFields[e]},set(t){const n=br(this);t!==n.cmpFields[e]&&(n.cmpFields[e]=t,he(n,e))},enumerable:!0,configurable:!0}}const Ut=new Map;const Xt={apiMethods:oe,apiFields:oe,apiFieldsConfig:oe,wiredMethods:oe,wiredFields:oe,observedFields:oe};const Yt=new Set;function Jt(){return[]}Yt.add(Jt);const Qt=n(null),Zt=n(null);function en(e){let t=Qt[e];return $(t)&&(t=Qt[e]=function(){const t=br(this),{getHook:n}=t;return n(t.component,e)}),t}function tn(e){let t=Zt[e];return $(t)&&(t=Zt[e]=function(t){const n=br(this),{setHook:r}=n;t=Dt.getReadOnlyProxy(t),r(n.component,e,t)}),t}function nn(e){return function(){const t=br(this),{callHook:n,component:r}=t,o=r[e];return n(t.component,o,k.call(arguments))}}function rn(e,t){return function(n,r,o){if(r===o)return;const i=e[n];$(i)?$(t)||t.apply(this,arguments):Ee(this,n)&&(this[i]=o)}}function on(e,t,i){let s;R(e)?s=class extends e{}:(s=function(){throw new TypeError("Illegal constructor")},h(s,e),h(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[ee(n)]=n,u[n]={get:en(n),set:tn(n),enumerable:!0,configurable:!0}}for(let e=0,t=i.length;e<t;e+=1){const t=i[e];u[t]={value:nn(t),writable:!0,configurable:!0}}return u.attributeChangedCallback={value:rn(l,a)},o(s,"observedAttributes",{get:()=>[...c,...d(l)]}),r(s.prototype,u),s}const sn=on(Je,l(Ze),[]);function ln(e){const t=e();return(null==t?void 0:t.__esModule)?t.default:t}function an(e){return R(e)&&c.call(e,"__circular__")}i(sn),f(sn.prototype);const cn=new WeakMap;function un(e){const{shadowSupportMode:o,renderMode:i}=e,s=function(e){const t=Ut.get(e);return $(t)?Xt:t}(e),{apiFields:l,apiFieldsConfig:c,apiMethods:u,wiredFields:f,wiredMethods:h,observedFields:p}=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(N(t))throw new ReferenceError(`Invalid prototype chain for ${e.name}, you must extend LightningElement.`);if(an(t)){const e=ln(t);t=e===t?Rt:e}return t}(e),E=C!==Rt?fn(C):hn,k=on(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,h);g=g||E.connectedCallback,w=w||E.disconnectedCallback,y=y||E.renderedCallback,b=b||E.errorCallback,v=v||E.render;let A=E.shadowSupportMode;$(o)||(A=o);let O=E.renderMode;$(i)||(O="light"===i?0:1);const P=function(e){return er.get(e)}(e)||E.template,L=e.name||E.name;r(m,p);return{ctor:e,name:L,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 dn(e){if(!R(e))return!1;if(e.prototype instanceof Rt)return!0;let t=e;do{if(an(t)){const e=ln(t);if(e===t)return!0;t=e}if(t===Rt)return!0}while(!N(t)&&(t=a(t)));return!1}function fn(e){let t=cn.get(e);if($(t)){if(an(e)){return t=fn(ln(e)),cn.set(e,t),t}if(!dn(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=un(e),cn.set(e,t)}return t}const hn={ctor:Rt,name:Rt.name,props:Bt,propsConfig:oe,methods:oe,renderMode:1,shadowSupportMode:"reset",wire:oe,bridge:sn,template:Jt,render:Rt.prototype.render};function pn(e,t){e.$shadowToken$=t}function mn(e,t){const{cmpTemplate:n,context:r}=t,o=null==n?void 0:n.stylesheetToken;!$(o)&&r.hasScopedStyles&&t.renderer.getClassList(e).add(o)}function gn(e,t){const{elm:n,text:r,owner:{renderer:o}}=t;e.text!==r&&o.setText(n,r)}function wn(e,t,n){const{renderer:r}=e.owner;r.insert(e.elm,t,n)}function yn(e,t){const{renderer:n}=e.owner;n.remove(e.elm,t)}function bn(e){ye.create(e),Le.create(e)}function vn(e,t){const{children:n,owner:r}=t,o=Sn(n)?Ue:Xe;Pr(r,r.owner,H,(()=>{o(t.elm,e.children,n)}),H)}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){const{cmpSlots:r}=e,o=e.cmpSlots=n(null);for(let e=0,n=t.length;e<n;e+=1){const n=t[e];if(N(n))continue;const{data:r}=n,i=r.attrs&&r.attrs.slot||"",s=o[i]=o[i]||[];$(n.key)||(n.key=`@${i}:${n.key}`),v.call(s,n)}if(_(e.isDirty)){const t=d(r);if(t.length!==d(o).length)return void rr(e);for(let n=0,i=t.length;n<i;n+=1){const i=t[n];if($(o[i])||r[i].length!==o[i].length)return void rr(e);const s=r[i],l=o[i];for(let t=0,n=o[i].length;t<n;t+=1)if(s[t]!==l[t])return void rr(e)}}}(t,r),e.aChildren=r,e.children=ie)}function En(e){const{elm:t,children:n}=e;for(let e=0;e<n.length;++e){const r=n[e];null!=r&&(r.hook.create(r),r.hook.insert(r,t,null))}}function kn(e,t,n){let r=0;for(let n=0,o=t.length;n<o;n++){const o=t[n];if(null!=o){const t=e[r];o.hook.hydrate(o,t),r++}}}const xn=new WeakMap;function Sn(e){return xn.has(e)}const Mn=Symbol.iterator,Tn={create:e=>{const{owner:t}=e,{renderer:n}=t,r=n.createText(e.text);Ln(r,t),e.elm=r},update:gn,insert:wn,move:wn,remove:yn,hydrate:(e,t)=>{var n;t.nodeValue=null!==(n=e.text)&&void 0!==n?n:null,e.elm=t}},An={create:e=>{const{owner:t,text:n}=e,{renderer:r}=t,o=r.createComment(n);Ln(o,t),e.elm=o},update:gn,insert:wn,move:wn,remove:yn,hydrate:(e,t)=>{var n;t.nodeValue=null!==(n=e.text)&&void 0!==n?n:null,e.elm=t}},On={create:e=>{const{sel:t,owner:n,data:{svg:r}}=e,{renderer:o}=n,i=D(r)?"http://www.w3.org/2000/svg":void 0,s=o.createElement(t,i);Ln(s,n),function(e,t){const{owner:n}=t;if(mn(e,n),1===n.shadowMode){const{data:{context:r}}=t,{stylesheetToken:o}=n.context;$(r)||$(r.lwc)||"manual"!==r.lwc.dom||function(e){e.$domManual$=!0}(e),pn(e,o)}}(s,e),e.elm=s,function(e){ye.create(e),Te.create(e),Le.create(e),je.create(e),Be.create(e),Re.create(e),Ie.create(e)}(e)},update:(e,t)=>{!function(e,t){Te.update(e,t),Le.update(e,t),Re.update(e,t),Ie.update(e,t)}(e,t),vn(e,t)},insert:(e,t,n)=>{wn(e,t,n),En(e)},move:(e,t,n)=>{wn(e,t,n)},remove:(e,t)=>{yn(e,t),function(e){const{children:t,elm:n}=e;for(let e=0,r=t.length;e<r;++e){const r=t[e];N(r)||r.hook.remove(r,n)}}(e)},hydrate:(e,t)=>{const n=t;e.elm=n;const{context:r}=e.data,o=Boolean(!$(r)&&!$(r.lwc)&&"manual"===r.lwc.dom);if(o){const{props:t}=e.data;$(t)||$(t.innerHTML)||(n.innerHTML===t.innerHTML?delete t.innerHTML:(i=`Mismatch hydrating element <${n.tagName.toLowerCase()}>: innerHTML values do not match for element, will recover from the difference`,s=e.owner,ge("warn",i,s)))}var i,s;bn(e),o||kn(e.elm.childNodes,e.children,e.owner)}},Pn={create:e=>{const{sel:t,owner:n}=e,{renderer:r}=n,o=function(e,t){e=e.toLowerCase();let n=t.getCustomElement(e);return $(n)?(n=class extends t.HTMLElement{constructor(e){super(),R(e)&&e(this)}},t.defineCustomElement(e,n),n):n}(t,r),i=new o((t=>{!function(e,t){if(!$(vr(e)))return;const{sel:n,mode:r,ctor:o,owner:i}=t;if(mn(e,i),1===i.shadowMode){const{stylesheetToken:t}=i.context;pn(e,t)}wr(e,fn(o),{mode:r,owner:i,tagName:n,renderer:i.renderer})}(t,e)}));Ln(i,n),e.elm=i;const s=vr(i);if(s)Cn(e,s);else if(e.ctor!==o)throw new TypeError("Incorrect Component Constructor");!function(e){ye.create(e),Te.create(e),Le.create(e),je.create(e),Be.create(e),Re.create(e),Ie.create(e)}(e)},update:(e,t)=>{!function(e,t){Te.update(e,t),Le.update(e,t),Re.update(e,t),Ie.update(e,t)}(e,t);const n=vr(t.elm);n&&Cn(t,n),vn(e,t),n&&pr(n)},insert:(e,t,n)=>{wn(e,t,n);const r=vr(e.elm);r&&Sr(r),En(e),r&&function(e){Cr(e)}(r)},move:(e,t,n)=>{wn(e,t,n)},remove:(e,t)=>{yn(e,t);const n=vr(e.elm);n&&function(e){gr(e)}(n)},hydrate:(e,t)=>{const{sel:n,mode:r,ctor:o,owner:i}=e;wr(t,fn(o),{mode:r,owner:i,tagName:n,renderer:i.renderer}),e.elm=t;const s=br(t);Cn(e,s),bn(e),Sr(s),0!==s.renderMode&&kn(e.elm.childNodes,e.children),function(e){!function(e){if(D(e.isDirty)){const t=nr(e);e.children=t;kn(0===e.renderMode?e.elm.childNodes:e.elm.shadowRoot.childNodes,t),Er(e)}}(e)}(s)}};function Ln(e,t){const{renderer:n,renderMode:r,shadowMode:o}=t;n.isSyntheticShadowDefined&&(1!==o&&0!==r||(e.$shadowResolver$=Lr(t).$shadowResolver$))}function $n(e,t,n){const r=zn();const{key:o}=t;return{sel:e,data:t,children:n,text:undefined,elm:undefined,key:o,hook:On,owner:r}}function Nn(e,t,n,r=ie){const o=zn(),{key:i}=n;const s={sel:e,data:n,children:r,text:undefined,elm:undefined,key:i,hook:Pn,ctor:t,owner:o,mode:"open"};return function(e){v.call(zn().velements,e)}(s),s}const Dn=new Map;let _n=0;function Rn(e){var t;return t=e,xn.set(t,1),e}let Fn=()=>{throw new Error("sanitizeHtmlContent hook must be implemented.")};const Hn=i({s:function(e,t,n,r){$(r)||$(r[e])||0===r[e].length||(n=r[e]);const o=zn(),{renderMode:i,shadowMode:s}=o;return 0===i?(Rn(n),n):(1===s&&Rn(n),$n("slot",t,n))},h:$n,c:Nn,i:function(e,t){const n=[];if(Rn(n),$(e)||null===e)return n;const r=e[Mn]();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);p(e)?v.apply(n,e):v.call(n,e),i+=1,s=o.value}return n},f:function(e){const t=e.length,n=[];Rn(n);for(let r=0;r<t;r+=1){const t=e[r];p(t)?v.apply(n,t):v.call(n,t)}return n},t:function(e){return{sel:undefined,data:oe,children:undefined,text:e,elm:undefined,key:undefined,hook:Tn,owner:zn()}},d:function(e){return null==e?"":String(e)},b:function(e){const t=zn();if(N(t))throw new Error;const n=t;return function(t){Zn(n,e,n.component,t)}},k:function(e,t){switch(typeof t){case"number":case"string":return e+":"+t}},co:function(e){return{sel:undefined,data:oe,children:undefined,text:e,elm:undefined,key:undefined,hook:An,owner:zn()}},dc:function(e,t,n,r){if(null==t)return null;if(!dn(t))throw new Error(`Invalid LWC Constructor ${j(t)} for custom element <${e}>.`);let o=Dn.get(t);return $(o)&&(o=_n++,Dn.set(t,o)),n.key=`dc:${o}:${n.key}`,Nn(e,t,n,r)},ti:function(e){return e>0&&!(D(e)||_(e))?0:e},gid:function(e){const t=zn();if($(e)||""===e)return e;if(N(e))return null;const{idx:n,shadowMode:r}=t;return 1===r?O.call(e,/\S+/g,(e=>`${e}-${n}`)):e},fid:function(e){const t=zn();if($(e)||""===e)return e;if(N(e))return null;const{idx:n,shadowMode:r}=t;return 1===r&&/^#/.test(e)?`${e}-${n}`:e},shc:function(e){return Fn(e)}});function In(e){return`${e}-host`}function jn(e,t,n){const r=[];let o;for(let i=0;i<e.length;i++){let s=e[i];if(p(s))v.apply(r,jn(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:($(o)&&(o=Wn(n)),a=N(o)||0===o.shadowMode),v.call(r,s(i,l,a))}}return r}function Bn(e,t){const{stylesheets:n,stylesheetToken:r}=t;let o=[];return $(n)||0===n.length||(o=jn(n,r,e)),o}function Wn(e){let t=e;for(;!N(t);){if(1===t.renderMode)return t;t=t.owner}return t}function Vn(e,t){const{renderer:n,renderMode:r,shadowMode:o}=e;if(1===r&&1===o)for(let e=0;e<t.length;e++)n.insertGlobalStylesheet(t[e]);else{if(n.ssr||n.isHydrating()){const e=y.call(t,"\n");return i=e,Hn.h("style",{key:"style",attrs:{type:"text/css"}},[Hn.t(i)])}{const r=function(e){const t=Wn(e);return N(t)||1!==t.shadowMode?t:null}(e),o=N(r);for(let e=0;e<t.length;e++)o?n.insertGlobalStylesheet(t[e]):n.insertStylesheet(t[e],r.cmpRoot)}}var i;return null}let Gn=!1,Kn=null;function zn(){return Kn}function qn(e){Kn=e}function Un(e,t){const r=Gn,o=Kn;let i=[];return Pr(e,e.owner,(()=>{Kn=e}),(()=>{const{component:r,context:o,cmpSlots:s,cmpTemplate:l,tro:a}=e;a.observe((()=>{if(t!==l){if(N(l)||Or(e),a=t,!Yt.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: ${j(t)}.`);e.cmpTemplate=t,o.tplCache=n(null),o.hasScopedStyles=function(e){const{stylesheets:t}=e;if(!$(t))for(let e=0;e<t.length;e++)if(D(t[e].$scoped$))return!0;return!1}(t),function(e,t){const{elm:n,context:r,renderer:o,renderMode:i,shadowMode:s}=e,{stylesheets:l,stylesheetToken:a}=t,c=1===i&&1===s,{hasScopedStyles:u}=r;let d,f,h;const{stylesheetToken:p,hasTokenInClass:m,hasTokenInAttribute:g}=r;m&&o.getClassList(n).remove(In(p)),g&&o.removeAttribute(n,In(p)),$(l)||0===l.length||(d=a),$(d)||(u&&(o.getClassList(n).add(In(d)),f=!0),c&&(o.setAttribute(n,In(d),""),h=!0)),r.stylesheetToken=d,r.hasTokenInClass=f,r.hasTokenInAttribute=h}(e,t);const r=Bn(e,t);o.styleVNode=0===r.length?null:Vn(e,r)}var a;e.velements=[],Gn=!0,i=t.call(void 0,Hn,r,s,o.tplCache);const{styleVNode:c}=o;N(c)||S.call(i,c)}))}),(()=>{Gn=r,Kn=o})),i}function Xn(e,t){if(!u(t)&&$(t.wcStack)){const n=function(e){const t=[];let n=e;for(;!N(n);)v.call(t,me(n)),n=n.owner;return t.reverse().join("\n\t")}(e);o(t,"wcStack",{get:()=>n})}}let Yn=null;function Jn(e){return Yn===e}function Qn(e,t,n){const{component:r,callHook:o,owner:i}=e;Pr(e,i,H,(()=>{o(r,t,n)}),H)}function Zn(e,t,n,r){const{callHook:o,owner:i}=e;Pr(e,i,H,(()=>{o(n,t,[r])}),H)}const er=new Map;function tr(e){return new fe((()=>{const{isDirty:t}=e;_(t)&&(rr(e),function(e){if(D(e.renderer.ssr)||D(e.isScheduled))return;e.isScheduled=!0,0===kr.length&&le(xr);v.call(kr,e)}(e))}))}function nr(e){e.tro.reset();const t=function(e){const{def:{render:t},callHook:n,component:r,owner:o}=e,i=zn();let s,l=!1;return Pr(e,o,(()=>{qn(e)}),(()=>{e.tro.observe((()=>{s=n(r,t),l=!0}))}),(()=>{qn(i)})),l?Un(e,s):[]}(e);return e.isDirty=!1,e.isScheduled=!1,t}function rr(e){e.isDirty=!0}const or=new WeakMap;function ir(e,t){if(!R(t))throw new TypeError;let n=or.get(t);return $(n)&&(n=function(n){Zn(e,t,void 0,n)},or.set(t,n)),n}const sr=n(null),lr=["rendered","connected","disconnected"];function ar(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 cr=0;const ur=new WeakMap;function dr(e,t,n=[]){return t.apply(e,n)}function fr(e,t,n){e[t]=n}function hr(e,t){return e[t]}function pr(e){Cr(e)}function mr(e){const t=br(e);1===t.state&&function(e){gr(br(e))}(e),Sr(t),Cr(t)}function gr(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){_(e.isDirty)&&(e.isDirty=!0);e.state=2;const{disconnected:t}=sr;t&&ar(e,t);Mr(e)&&function(e){const{wiredDisconnecting:t}=e.context;Pr(e,e,H,(()=>{for(let e=0,n=t.length;e<n;e+=1)t[e]()}),H)}(e);const{disconnectedCallback:n}=e.def;$(n)||Qn(e,n)}(e),Tr(e),function(e){const{aChildren:t}=e;Ar(t)}(e)}}function wr(e,t,r){const{mode:o,owner:i,renderer:s,tagName:l}=r,a={elm:e,def:t,idx:cr++,state:0,isScheduled:!1,isDirty:!0,tagName:l,mode:o,owner:i,renderer:s,children:ie,aChildren:ie,velements:ie,cmpProps:n(null),cmpFields:n(null),cmpSlots:n(null),oar:n(null),cmpTemplate:null,renderMode:t.renderMode,shadowMode:null,context:{stylesheetToken:void 0,hasTokenInClass:void 0,hasTokenInAttribute:void 0,hasScopedStyles:void 0,styleVNode:null,tplCache:oe,wiredConnecting:ie,wiredDisconnecting:ie},tro:null,component:null,cmpRoot:null,callHook:dr,setHook:fr,getHook:hr};return a.shadowMode=function(e){const{def:t,renderer:n}=e,{isNativeShadowDefined:r,isSyntheticShadowDefined:o}=n;let i;if(o)if(0===t.renderMode)i=0;else if(r)if("any"===t.shadowSupportMode)i=0;else{const t=function(e){let t=e.owner;for(;!N(t)&&0===t.renderMode;)t=t.owner;return t}(e);i=N(t)||0!==t.shadowMode?1:0}else i=1;else i=0;return i}(a),a.tro=tr(a),function(e,t){const n=Yn;let r;Yn=e;try{const o=new t;if(Yn.component!==o)throw new TypeError("Invalid component constructor, the class should extend LightningElement.")}catch(e){r=Object(e)}finally{if(Yn=n,!$(r))throw Xn(e,r),r}}(a,t.ctor),Mr(a)&&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=$r.get(i);if(!$(s)){const{connector:n,computeConfigAndUpdate:i,resetConfigWatcher:l}=Dr(e,t,s),a=s.dynamic.length>0;v.call(r,(()=>{n.connect(),ne.ENABLE_WIRE_SYNC_EMIT||!a?i():Promise.resolve().then(i)})),v.call(o,(()=>{n.disconnect(),l()}))}}}(a),a}function yr(e,t){ur.set(e,t)}function br(e){return ur.get(e)}function vr(e){return ur.get(e)}function Cr(e){if(D(e.isDirty)){!function(e,t){const{children:n}=e;if(e.children=t,(t.length>0||n.length>0)&&n!==t){const r=Sn(t)?Ue:Xe;Pr(e,e,(()=>{}),(()=>{const o=Lr(e);r(o,n,t)}),(()=>{}))}1===e.state&&Er(e)}(e,nr(e))}}function Er(e){const{renderer:t,def:{renderedCallback:n}}=e;if(D(t.ssr))return;const{rendered:r}=sr;r&&ar(e,r),$(n)||Qn(e,n)}let kr=[];function xr(){const e=kr.sort(((e,t)=>e.idx-t.idx));kr=[];for(let t=0,n=e.length;t<n;t+=1){const r=e[t];try{Cr(r)}catch(r){throw t+1<n&&(0===kr.length&&le(xr),S.apply(kr,k.call(e,t+1))),r}}}function Sr(e){const{state:t}=e;if(1===t)return;e.state=1;const{connected:n}=sr;n&&ar(e,n),Mr(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;$(r)||Qn(e,r)}function Mr(e){return l(e.def.wire).length>0}function Tr(e){const{velements:t}=e;for(let e=t.length-1;e>=0;e-=1){const{elm:n}=t[e];if(!$(n)){const e=vr(n);$(e)||gr(e)}}}function Ar(e){for(let t=0,n=e.length;t<n;t+=1){const n=e[t];N(n)||!p(n.children)||$(n.elm)||($(n.ctor)?Ar(n.children):gr(br(n.elm)))}}function Or(e){const{children:t,renderer:n}=e,r=Lr(e);for(let e=0,o=t.length;e<o;e++){const o=t[e];N(o)||$(o.elm)||n.remove(o.elm,r)}e.children=ie,Tr(e),e.velements=ie}function Pr(e,t,n,r,o){let i;n();try{r()}catch(e){i=Object(e)}finally{if(o(),!$(i)){Xn(e,i);const n=N(t)?void 0:function(e){let t=e;for(;!N(t);){if(!$(t.def.errorCallback))return t;t=t.owner}}(t);if($(n))throw i;Or(e);Qn(n,n.def.errorCallback,[i,i.wcStack])}}}function Lr(e){return 1===e.renderMode?e.cmpRoot:e.elm}const $r=new Map;class Nr extends CustomEvent{constructor(e,{setNewContext:t,setDisconnectedCallback:n}){super(e,{bubbles:!0,composed:!0}),r(this,{setNewContext:{value:t},setDisconnectedCallback:{value:n}})}}function Dr(e,t,n){const{method:r,adapter:i,configCallback:s,dynamic:l}=n,a=$(r)?function(e,t){const{cmpFields:n}=e;return r=>{r!==e.cmpFields[t]&&(n[t]=r,he(e,t))}}(e,t):function(e,t){return n=>{Pr(e,e.owner,H,(()=>{t.call(e.component,n)}),H)}}(e,r);let c,u;o(a,"$$DeprecatedWiredElementHostKey$$",{value:e.elm}),o(a,"$$DeprecatedWiredParamsMetaKey$$",{value:l}),Pr(e,e,H,(()=>{u=new i(a)}),H);const{computeConfigAndUpdate:d,ro:f}=function(e,t,n){let r=!1;const o=new fe((()=>{!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=>{Pr(e,e,H,(()=>{u.update(t,c)}),H)}));return $(i.contextSchema)||function(e,t,n){const{adapter:r}=t,o=Rr(r);if($(o))return;const{elm:i,renderer:s,context:{wiredConnecting:l,wiredDisconnecting:a}}=e;v.call(l,(()=>{const e=new Nr(o,{setNewContext(e){n(e)},setDisconnectedCallback(e){v.call(a,e)}});s.dispatchEvent(i,e)}))}(e,n,(t=>{c!==t&&(c=t,1===e.state&&d())})),{connector:u,computeConfigAndUpdate:d,resetConfigWatcher:()=>f.reset()}}const _r=new Map;function Rr(e){return _r.get(e)}function Fr(e,t,n,r){t.adapter&&(t=t.adapter);const o={adapter:t,method:e.value,configCallback:n,dynamic:r};$r.set(e,o)}function Hr(e,t,n,r){t.adapter&&(t=t.adapter);const o={adapter:t,configCallback:n,dynamic:r};$r.set(e,o)}let Ir=!1;var jr;!function(e){e.Text="text",e.Comment="comment",e.Raw="raw",e.Element="element",e.ShadowRoot="shadow-root"}(jr||(jr={}));const Br=/\s+/g;function Wr(e){return new Set(e.split(Br).filter((e=>e.length)))}function Vr(e){return Array.from(e).join(" ")}function Gr(e){return function(){throw new TypeError(`"${e}" is not supported in this environment`)}}function Kr(e){return{type:jr.Element,name:e,parent:null,shadowRoot:null,children:[],attributes:[],eventListeners:{}}}const zr=n(null),qr=new WeakMap;const Ur={ssr:!0,isHydrating:()=>!1,isNativeShadowDefined:!1,isSyntheticShadowDefined:!1,insert(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=N(n)?-1:t.children.indexOf(n);-1===r?t.children.push(e):t.children.splice(r,0,e)},remove(e,t){const n=t.children.indexOf(e);t.children.splice(n,1)},createElement:Kr,createText:e=>({type:jr.Text,value:String(e),parent:null}),createComment:e=>({type:jr.Comment,value:e,parent:null}),nextSibling(e){const{parent:t}=e;if(N(t))return null;const n=t.children.indexOf(e);return t.children[n+1]||null},attachShadow:(e,t)=>(e.shadowRoot={type:jr.ShadowRoot,children:[],mode:t.mode,delegatesFocus:!!t.delegatesFocus},e.shadowRoot),getProperty(e,t){var n,r;if(t in e)return e[t];if(e.type===jr.Element){const o=ee(t);if(X(o,e.name))return null!==(n=this.getAttribute(e,o))&&void 0!==n&&n;if(J(o)||K(o))return this.getAttribute(e,o);if("input"===e.name&&"value"===t)return null!==(r=this.getAttribute(e,"value"))&&void 0!==r?r:""}},setProperty(e,t,n){if(t in e)return e[t]=n;if(e.type===jr.Element){const r=ee(t);if("innerHTML"===t)return void(e.children=[{type:jr.Raw,parent:e,value:n}]);if(X(r,e.name))return!0===n?this.setAttribute(e,r,""):this.removeAttribute(e,r);if(J(r)||K(r))return this.setAttribute(e,r,n);if("input"===e.name&&"value"===r)return N(n)||$(n)?this.removeAttribute(e,"value"):this.setAttribute(e,"value",n)}},setText(e,t){e.type===jr.Text?e.value=t:e.type===jr.Element&&(e.children=[{type:jr.Text,parent:e,value:t}])},getAttribute(e,t,n=null){const r=e.attributes.find((e=>e.name===t&&e.namespace===n));return r?r.value:null},setAttribute(e,t,n,r=null){const o=e.attributes.find((e=>e.name===t&&e.namespace===r));$(o)?e.attributes.push({name:t,namespace:r,value:String(n)}):o.value=n},removeAttribute(e,t,n){e.attributes=e.attributes.filter((e=>e.name!==t&&e.namespace!==n))},getClassList(e){function t(){let t=e.attributes.find((e=>"class"===e.name&&N(e.namespace)));return $(t)&&(t={name:"class",namespace:null,value:""},e.attributes.push(t)),t}return{add(...e){const n=t(),r=Wr(n.value);e.forEach((e=>r.add(e))),n.value=Vr(r)},remove(...e){const n=t(),r=Wr(n.value);e.forEach((e=>r.delete(e))),n.value=Vr(r)}}},setCSSStyleProperty(e,t,n,r){const o=e.attributes.find((e=>"style"===e.name&&N(e.namespace))),i=`${t}: ${n}${r?" !important":""}`;$(o)?e.attributes.push({name:"style",namespace:null,value:i}):o.value+=`; ${i}`},isConnected:e=>!N(e.parent),insertGlobalStylesheet(){},insertStylesheet(){},addEventListener(){},removeEventListener(){},dispatchEvent:Gr("dispatchEvent"),getBoundingClientRect:Gr("getBoundingClientRect"),querySelector:Gr("querySelector"),querySelectorAll:Gr("querySelectorAll"),getElementsByTagName:Gr("getElementsByTagName"),getElementsByClassName:Gr("getElementsByClassName"),getChildren:Gr("getChildren"),getChildNodes:Gr("getChildNodes"),getFirstChild:Gr("getFirstChild"),getFirstElementChild:Gr("getFirstElementChild"),getLastChild:Gr("getLastChild"),getLastElementChild:Gr("getLastElementChild"),defineCustomElement(e,t,n){!function(e,t){if(e!==L.call(e)||zr[e])throw new TypeError("Invalid Registration");zr[e]=t,qr.set(t,e)}(e,t)},getCustomElement:e=>zr[e],HTMLElement:class{constructor(){const{constructor:e}=this,t=qr.get(e);if(!t)throw new TypeError("Invalid Construction");return Kr(t)}}},Xr={'"':"&quot;","'":"&#x27;","<":"&lt;",">":"&gt;","&":"&amp;"};function Yr(e){return e.replace(/["'<>&]/g,(e=>Xr[e]))}function Jr(e){return e.map((e=>{switch(e.type){case jr.Text:return Yr(e.value);case jr.Comment:return`\x3c!--${Yr(e.value)}--\x3e`;case jr.Raw:return e.value;case jr.Element:return Qr(e)}})).join("")}function Qr(e){let t="";const{name:n}=e,r=e.attributes.length?` ${o=e.attributes,o.map((e=>e.value.length?`${e.name}=${JSON.stringify(Yr(e.value))}`:e.name)).join(" ")}`:"";var o;const i=Jr(e.children);return t+=`<${n}${r}>`,e.shadowRoot&&(t+=function(e){const t=[`shadowroot="${e.mode}"`];return e.delegatesFocus&&t.push("shadowrootdelegatesfocus"),`<template ${t.join(" ")}>${Jr(e.children)}</template>`}(e.shadowRoot)),t+=i,function(e){return q.has(e)}(n)||(t+=`</${n}>`),t}const Zr={type:jr.Element,name:"fake-root-element",parent:null,shadowRoot:null,children:[],attributes:[],eventListeners:{}};i(Rt),f(Rt.prototype),exports.LightningElement=Rt,exports.api=function(){throw new Error},exports.createContextProvider=function(e){let t=Rr(e);if(!$(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){_r.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((()=>{$(i)||i(r)})),o(r),e.stopImmediatePropagation()}))}},exports.getComponentDef=function(e){const t=fn(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:ee(e)};const a={};for(const e in s)a[e]=s[e].value;return{ctor:n,name:r,props:l,methods:a}},exports.isComponentConstructor=dn,exports.readonly=function(e){return Dt.getReadOnlyProxy(e)},exports.register=function(e){for(let t=0;t<lr.length;++t){const n=lr[t];if(n in e){let t=sr[n];$(t)&&(sr[n]=t=[]),v.call(t,e[n])}}},exports.registerComponent=function(e,{tmpl:t}){return er.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),h=n(null),p=n(null),m=n(null),g=n(null);let w;if(!$(i))for(const e in i){const t=i[e];if(g[e]=t.config,w=s(r,e),t.config>0){if($(w))throw new Error;w=zt(e,w)}else w=$(w)||$(w.get)?Gt(e):zt(e,w);f[e]=w,o(r,e,w)}if($(l)||M.call(l,(e=>{if(w=s(r,e),$(w))throw new Error;d[e]=w})),!$(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($(w))throw new Error;h[e]=w,Fr(w,t,i,l)}else w=Wt(e),p[e]=w,Hr(w,t,i,l),o(r,e,w)}if(!$(c))for(const e in c)w=s(r,e),w=Vt(e),o(r,e,w);if(!$(u))for(let e=0,t=u.length;e<t;e++){const t=u[e];w=s(r,t);const n=!$(i)&&t in i,o=!$(c)&&t in c;n||o||(m[t]=qt(t))}return function(e,t){Ut.set(e,t)}(e,{apiMethods:d,apiFields:f,apiFieldsConfig:g,wiredMethods:h,wiredFields:p,observedFields:m}),e},exports.registerTemplate=function(e){return Yt.add(e),e},exports.renderComponent=function(e,t,n={}){if(!F(e))throw new TypeError(`"renderComponent" expects a string as the first parameter but instead received ${e}.`);if(!R(t))throw new TypeError(`"renderComponent" expects a valid component constructor as the second parameter but instead received ${t}.`);if("object"!=typeof n||N(n))throw new TypeError(`"renderComponent" expects an object as the third parameter but instead received ${n}.`);const r=Ur.createElement(e);wr(r,fn(t),{mode:"open",owner:null,renderer:Ur,tagName:e});for(const[e,t]of Object.entries(n))r[e]=t;return r.parent=Zr,mr(r),Qr(r)},exports.sanitizeAttribute=function(e,t,n,r){return r},exports.setFeatureFlag=function(e,t){if("boolean"==typeof t){if($(te[e])){const n=d(te).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=ne[e];if(!$(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(ne,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(Ir,"Hooks are already overridden, only one definition is allowed."),Ir=!0,n=t.sanitizeHtmlContent,Fn=n},exports.track=function(e){if(1===arguments.length)return Dt.getProxy(e);throw new Error},exports.unwrap=function(e){const t=Dt.unwrapProxy(e);return t!==e?t:e},exports.wire=function(e,t){throw new Error};
9
+ */function We(e){return void 0===e}function Ve(e,t){return e.key===t.key&&e.sel===t.sel}function Ge(e){return null!=e}function Ke(e,t,n){const r={};let o,i,s;for(o=t;o<=n;++o)s=e[o],Ge(s)&&(i=s.key,void 0!==i&&(r[i]=o));return r}function ze(e,t,n,r,o){for(;r<=o;++r){const o=n[r];Ge(o)&&(o.hook.create(o),o.hook.insert(o,e,t))}}function qe(e,t,n,r){for(;n<=r;++n){const r=t[n];Ge(r)&&r.hook.remove(r,e)}}function Ue(e,t,n){let r=0,o=0,i=t.length-1,s=t[0],l=t[i];const a=n.length-1;let c,u,d,f,h=a,p=n[0],m=n[h];for(;r<=i&&o<=h;)Ge(s)?Ge(l)?Ge(p)?Ge(m)?Ve(s,p)?(Ye(s,p),s=t[++r],p=n[++o]):Ve(l,m)?(Ye(l,m),l=t[--i],m=n[--h]):Ve(s,m)?(Ye(s,m),m.hook.move(s,e,l.owner.renderer.nextSibling(l.elm)),s=t[++r],m=n[--h]):Ve(l,p)?(Ye(l,p),p.hook.move(l,e,s.elm),l=t[--i],p=n[++o]):(void 0===c&&(c=Ke(t,r,i)),u=c[p.key],We(u)?(p.hook.create(p),p.hook.insert(p,e,s.elm),p=n[++o]):(d=t[u],Ge(d)&&(d.sel!==p.sel?(p.hook.create(p),p.hook.insert(p,e,s.elm)):(Ye(d,p),t[u]=void 0,p.hook.move(d,e,s.elm))),p=n[++o])):m=n[--h]:p=n[++o]:l=t[--i]:s=t[++r];if(r<=i||o<=h)if(r>i){let t,r=h;do{t=n[++r]}while(!Ge(t)&&r<a);f=Ge(t)?t.elm:null,ze(e,f,n,o,h)}else qe(e,t,r,i)}function Xe(e,t,n){const r=t.length,o=n.length;if(0===r)return void ze(e,null,n,0,o);if(0===o)return void qe(e,t,0,r);let i=null;for(let r=o-1;r>=0;r-=1){const o=n[r],s=t[r];o!==s&&(Ge(s)?Ge(o)?(Ye(s,o),i=o.elm):s.hook.remove(s,e):Ge(o)&&(o.hook.create(o),o.hook.insert(o,e,i),i=o.elm))}}function Ye(e,t){e!==t&&(t.elm=e.elm,t.hook.update(e,t))}const Je="undefined"!=typeof HTMLElement?HTMLElement:function(){},Qe=Je.prototype,Ze=n(null);M.call(d(G),(e=>{const t=B(Qe,e);$(t)||(Ze[e]=t)})),M.call(["accessKey","dir","draggable","hidden","id","lang","spellcheck","tabIndex","title"],(e=>{const t=B(Qe,e);$(t)||(Ze[e]=t)}));const{isArray:et}=Array,{getPrototypeOf:tt,create:nt,defineProperty:rt,isExtensible:ot,getOwnPropertyDescriptor:it,getOwnPropertyNames:st,getOwnPropertySymbols:lt,preventExtensions:at,hasOwnProperty:ct}=Object,{push:ut,concat:dt}=Array.prototype;function ft(e){return void 0===e}function ht(e){return"function"==typeof e}const pt=new WeakMap;function mt(e,t){pt.set(e,t)}const gt=e=>pt.get(e)||e;class wt{constructor(e,t){this.originalTarget=t,this.membrane=e}wrapDescriptor(e){if(ct.call(e,"value"))e.value=this.wrapValue(e.value);else{const{set:t,get:n}=e;ft(n)||(e.get=this.wrapGetter(n)),ft(t)||(e.set=this.wrapSetter(t))}return e}copyDescriptorIntoShadowTarget(e,t){const{originalTarget:n}=this,r=it(n,t);if(!ft(r)){const n=this.wrapDescriptor(r);rt(e,t,n)}}lockShadowTarget(e){const{originalTarget:t}=this;dt.call(st(t),lt(t)).forEach((t=>{this.copyDescriptorIntoShadowTarget(e,t)}));const{membrane:{tagPropertyKey:n}}=this;ft(n)||ct.call(e,n)||rt(e,n,nt(null)),at(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=ft(n)||ct.call(t,n)?[]:[n];return ut.apply(r,st(t)),ut.apply(r,lt(t)),r}isExtensible(e){const{originalTarget:t}=this;return!!ot(e)&&(!!ot(t)||(this.lockShadowTarget(e),!1))}getPrototypeOf(e){const{originalTarget:t}=this;return tt(t)}getOwnPropertyDescriptor(e,t){const{originalTarget:n,membrane:{valueObserved:r,tagPropertyKey:o}}=this;r(n,t);let i=it(n,t);if(ft(i)){if(t!==o)return;return i={value:void 0,writable:!1,configurable:!1,enumerable:!1},rt(e,o,i),i}return!1===i.configurable&&this.copyDescriptorIntoShadowTarget(e,t),this.wrapDescriptor(i)}}const yt=new WeakMap,bt=new WeakMap,vt=new WeakMap,Ct=new WeakMap;class Et extends wt{wrapValue(e){return this.membrane.getProxy(e)}wrapGetter(e){const t=yt.get(e);if(!ft(t))return t;const n=this,r=function(){return n.wrapValue(e.call(gt(this)))};return yt.set(e,r),vt.set(r,e),r}wrapSetter(e){const t=bt.get(e);if(!ft(t))return t;const n=function(t){e.call(gt(this),gt(t))};return bt.set(e,n),Ct.set(n,e),n}unwrapDescriptor(e){if(ct.call(e,"value"))e.value=gt(e.value);else{const{set:t,get:n}=e;ft(n)||(e.get=this.unwrapGetter(n)),ft(t)||(e.set=this.unwrapSetter(t))}return e}unwrapGetter(e){const t=vt.get(e);if(!ft(t))return t;const n=this,r=function(){return gt(e.call(n.wrapValue(this)))};return yt.set(r,e),vt.set(e,r),r}unwrapSetter(e){const t=Ct.get(e);if(!ft(t))return t;const n=this,r=function(t){e.call(n.wrapValue(this),n.wrapValue(t))};return bt.set(r,e),Ct.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&&et(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(ot(e)){const{originalTarget:t}=this;if(at(t),ot(t))return!1;this.lockShadowTarget(e)}return!0}defineProperty(e,t,n){const{originalTarget:r,membrane:{valueMutated:o,tagPropertyKey:i}}=this;return t===i&&!ct.call(r,t)||(rt(r,t,this.unwrapDescriptor(n)),!1===n.configurable&&this.copyDescriptorIntoShadowTarget(e,t),o(r,t),!0)}}const kt=new WeakMap,xt=new WeakMap;class St extends wt{wrapValue(e){return this.membrane.getReadOnlyProxy(e)}wrapGetter(e){const t=kt.get(e);if(!ft(t))return t;const n=this,r=function(){return n.wrapValue(e.call(gt(this)))};return kt.set(e,r),r}wrapSetter(e){const t=xt.get(e);if(!ft(t))return t;const n=function(e){};return xt.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}}const Mt=Object.prototype;function Tt(e){if(null===e)return!1;if("object"!=typeof e)return!1;if(et(e))return!0;const t=tt(e);return t===Mt||null===t||null===tt(t)}const At=(e,t)=>{},Ot=(e,t)=>{},Pt=e=>e;function Lt(e){return et(e)?[]:{}}const $t=Symbol.for("@@lockerLiveValue");function Nt(e){return e}const Dt=new class{constructor(e){if(this.valueDistortion=Pt,this.valueMutated=Ot,this.valueObserved=At,this.valueIsObservable=Tt,this.readOnlyObjectGraph=new WeakMap,this.reactiveObjectGraph=new WeakMap,!ft(e)){const{valueDistortion:t,valueMutated:n,valueObserved:r,valueIsObservable:o,tagPropertyKey:i}=e;this.valueDistortion=ht(t)?t:Pt,this.valueMutated=ht(n)?n:Ot,this.valueObserved=ht(r)?r:At,this.valueIsObservable=ht(o)?o:Tt,this.tagPropertyKey=i}}getProxy(e){const t=gt(e),n=this.valueDistortion(t);return this.valueIsObservable(n)?this.readOnlyObjectGraph.get(n)===e?e:this.getReactiveHandler(t,n):n}getReadOnlyProxy(e){e=gt(e);const t=this.valueDistortion(e);return this.valueIsObservable(t)?this.getReadOnlyHandler(e,t):t}unwrapProxy(e){return gt(e)}getReactiveHandler(e,t){let n=this.reactiveObjectGraph.get(t);if(ft(n)){const r=new Et(this,t);n=new Proxy(Lt(t),r),mt(n,e),this.reactiveObjectGraph.set(t,n)}return n}getReadOnlyHandler(e,t){let n=this.readOnlyObjectGraph.get(t);if(ft(n)){const r=new St(this,t);n=new Proxy(Lt(t),r),mt(n,e),this.readOnlyObjectGraph.set(t,n)}return n}}({valueObserved:de,valueMutated:ue,valueDistortion:Nt,tagPropertyKey:$t});function _t(e,t){const{get:n,set:r,enumerable:o,configurable:i}=t;if(!R(n))throw new TypeError;if(!R(r))throw new TypeError;return{enumerable:o,configurable:i,get(){const t=yr(this);if(!Yn(t))return pe(t,e),n.call(t.elm)},set(t){const n=yr(this);return t!==n.cmpProps[e]&&(n.cmpProps[e]=t,he(n,e)),r.call(n.elm,t)}}}const Rt=function(){if(N(Xn))throw new ReferenceError("Illegal constructor");const e=Xn,{def:t,elm:n,renderer:r}=e,{bridge:o}=t,i=this;if(h(n,o.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[$t]=void 0,wr(i,e),wr(n,e),1===e.renderMode&&Ft(e),this};function Ft(e){const{elm:t,mode:n,renderer:r,shadowMode:o,def:{ctor:i}}=e,s=r.attachShadow(t,{"$$lwc-synthetic-mode":1===o,delegatesFocus:Boolean(i.delegatesFocus),mode:n});e.cmpRoot=s,wr(s,e)}Rt.prototype={constructor:Rt,dispatchEvent(e){const{elm:t,renderer:{dispatchEvent:n}}=yr(this);return n(t,e)},addEventListener(e,t,n){const r=yr(this),{elm:o,renderer:{addEventListener:i}}=r;i(o,e,or(r,t),n)},removeEventListener(e,t,n){const r=yr(this),{elm:o,renderer:{removeEventListener:i}}=r;i(o,e,or(r,t),n)},hasAttribute(e){const{elm:t,renderer:{getAttribute:n}}=yr(this);return!N(n(t,e))},hasAttributeNS(e,t){const{elm:n,renderer:{getAttribute:r}}=yr(this);return!N(r(n,t,e))},removeAttribute(e){const{elm:t,renderer:{removeAttribute:n}}=yr(this);xe(t,e),n(t,e),ke()},removeAttributeNS(e,t){const{elm:n,renderer:{removeAttribute:r}}=yr(this);xe(n,t),r(n,t,e),ke()},getAttribute(e){const{elm:t,renderer:{getAttribute:n}}=yr(this);return n(t,e)},getAttributeNS(e,t){const{elm:n,renderer:{getAttribute:r}}=yr(this);return r(n,t,e)},setAttribute(e,t){const n=yr(this),{elm:r,renderer:{setAttribute:o}}=n;xe(r,e),o(r,e,t),ke()},setAttributeNS(e,t,n){const r=yr(this),{elm:o,renderer:{setAttribute:i}}=r;xe(o,t),i(o,t,n,e),ke()},getBoundingClientRect(){const e=yr(this),{elm:t,renderer:{getBoundingClientRect:n}}=e;return n(t)},get isConnected(){const{elm:e,renderer:{isConnected:t}}=yr(this);return t(e)},get classList(){const e=yr(this),{elm:t,renderer:{getClassList:n}}=e;return n(t)},get template(){return yr(this).cmpRoot},get shadowRoot(){return null},render(){return yr(this).def.template},toString(){return`[object ${yr(this).def.name}]`}};const Ht=n(null),It=[["children","getChildren"],["childNodes","getChildNodes"],["firstChild","getFirstChild"],["firstElementChild","getFirstElementChild"],["lastChild","getLastChild"],["lastElementChild","getLastElementChild"]];for(const[e,t]of It)Ht[e]={get(){const e=yr(this),{elm:n,renderer:r}=e;return r[t](n)},configurable:!0,enumerable:!0};const jt=["getElementsByClassName","getElementsByTagName","querySelector","querySelectorAll"];for(const e of jt)Ht[e]={value(t){const n=yr(this),{elm:r,renderer:o}=n;return o[e](r,t)},configurable:!0,enumerable:!0,writable:!0};r(Rt.prototype,Ht);const Bt=n(null);for(const e in Ze)Bt[e]=_t(e,Ze[e]);function Wt(e){return{get(){const t=yr(this);return pe(t,e),t.cmpFields[e]},set(t){const n=yr(this);t!==n.cmpFields[e]&&(n.cmpFields[e]=t,he(n,e))},enumerable:!0,configurable:!0}}function Vt(e){return{get(){const t=yr(this);return pe(t,e),t.cmpFields[e]},set(t){const n=yr(this),r=Dt.getProxy(t);r!==n.cmpFields[e]&&(n.cmpFields[e]=r,he(n,e))},enumerable:!0,configurable:!0}}function Gt(e){return{get(){const t=yr(this);if(!Yn(t))return pe(t,e),t.cmpProps[e]},set(t){const n=yr(this);n.cmpProps[e]=t,he(n,e)},enumerable:!0,configurable:!0}}r(Rt.prototype,Bt),o(Rt,"CustomElementConstructor",{get(){throw new ReferenceError("The current runtime does not support CustomElementConstructor.")},configurable:!0});class Kt extends fe{constructor(e,t){super((()=>{_(this.debouncing)&&(this.debouncing=!0,le((()=>{if(D(this.debouncing)){const{value:n}=this,{isDirty:r,component:o,idx:i}=e;t.call(o,n),this.debouncing=!1,D(e.isDirty)&&_(r)&&i>0&&hr(e)}})))})),this.debouncing=!1}reset(e){super.reset(),this.debouncing=!1,arguments.length>0&&(this.value=e)}}function zt(e,t){const{get:n,set:r,enumerable:o,configurable:i}=t;if(!R(n))throw new Error;return{get(){return n.call(this)},set(t){const n=yr(this);if(r)if(ne.ENABLE_REACTIVE_SETTER){let o=n.oar[e];$(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 qt(e){return{get(){const t=yr(this);return pe(t,e),t.cmpFields[e]},set(t){const n=yr(this);t!==n.cmpFields[e]&&(n.cmpFields[e]=t,he(n,e))},enumerable:!0,configurable:!0}}const Ut=new Map;const Xt={apiMethods:oe,apiFields:oe,apiFieldsConfig:oe,wiredMethods:oe,wiredFields:oe,observedFields:oe};const Yt=new Set;function Jt(){return[]}Yt.add(Jt);const Qt=n(null),Zt=n(null);function en(e){let t=Qt[e];return $(t)&&(t=Qt[e]=function(){const t=yr(this),{getHook:n}=t;return n(t.component,e)}),t}function tn(e){let t=Zt[e];return $(t)&&(t=Zt[e]=function(t){const n=yr(this),{setHook:r}=n;t=Dt.getReadOnlyProxy(t),r(n.component,e,t)}),t}function nn(e){return function(){const t=yr(this),{callHook:n,component:r}=t,o=r[e];return n(t.component,o,k.call(arguments))}}function rn(e,t){return function(n,r,o){if(r===o)return;const i=e[n];$(i)?$(t)||t.apply(this,arguments):Ee(this,n)&&(this[i]=o)}}function on(e,t,i){let s;R(e)?s=class extends e{}:(s=function(){throw new TypeError("Illegal constructor")},h(s,e),h(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[ee(n)]=n,u[n]={get:en(n),set:tn(n),enumerable:!0,configurable:!0}}for(let e=0,t=i.length;e<t;e+=1){const t=i[e];u[t]={value:nn(t),writable:!0,configurable:!0}}return u.attributeChangedCallback={value:rn(l,a)},o(s,"observedAttributes",{get:()=>[...c,...d(l)]}),r(s.prototype,u),s}const sn=on(Je,l(Ze),[]);function ln(e){const t=e();return(null==t?void 0:t.__esModule)?t.default:t}function an(e){return R(e)&&c.call(e,"__circular__")}i(sn),f(sn.prototype);const cn=new WeakMap;function un(e){const{shadowSupportMode:o,renderMode:i}=e,s=function(e){const t=Ut.get(e);return $(t)?Xt:t}(e),{apiFields:l,apiFieldsConfig:c,apiMethods:u,wiredFields:f,wiredMethods:h,observedFields:p}=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(N(t))throw new ReferenceError(`Invalid prototype chain for ${e.name}, you must extend LightningElement.`);if(an(t)){const e=ln(t);t=e===t?Rt:e}return t}(e),E=C!==Rt?fn(C):hn,k=on(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,h);g=g||E.connectedCallback,w=w||E.disconnectedCallback,y=y||E.renderedCallback,b=b||E.errorCallback,v=v||E.render;let A=E.shadowSupportMode;$(o)||(A=o);let O=E.renderMode;$(i)||(O="light"===i?0:1);const P=function(e){return Zn.get(e)}(e)||E.template,L=e.name||E.name;r(m,p);return{ctor:e,name:L,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 dn(e){if(!R(e))return!1;if(e.prototype instanceof Rt)return!0;let t=e;do{if(an(t)){const e=ln(t);if(e===t)return!0;t=e}if(t===Rt)return!0}while(!N(t)&&(t=a(t)));return!1}function fn(e){let t=cn.get(e);if($(t)){if(an(e)){return t=fn(ln(e)),cn.set(e,t),t}if(!dn(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=un(e),cn.set(e,t)}return t}const hn={ctor:Rt,name:Rt.name,props:Bt,propsConfig:oe,methods:oe,renderMode:1,shadowSupportMode:"reset",wire:oe,bridge:sn,template:Jt,render:Rt.prototype.render};function pn(e,t){e.$shadowToken$=t}function mn(e,t){const{cmpTemplate:n,context:r}=t,o=null==n?void 0:n.stylesheetToken;!$(o)&&r.hasScopedStyles&&t.renderer.getClassList(e).add(o)}function gn(e,t){const{elm:n,text:r,owner:{renderer:o}}=t;e.text!==r&&o.setText(n,r)}function wn(e,t,n){const{renderer:r}=e.owner;r.insert(e.elm,t,n)}function yn(e,t){const{renderer:n}=e.owner;n.remove(e.elm,t)}function bn(e){ye.create(e),Le.create(e)}function vn(e,t){const{children:n,owner:r}=t,o=Sn(n)?Ue:Xe;Or(r,r.owner,H,(()=>{o(t.elm,e.children,n)}),H)}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){const{cmpSlots:r}=e,o=e.cmpSlots=n(null);for(let e=0,n=t.length;e<n;e+=1){const n=t[e];if(N(n))continue;const{data:r}=n,i=r.attrs&&r.attrs.slot||"",s=o[i]=o[i]||[];$(n.key)||(n.key=`@${i}:${n.key}`),v.call(s,n)}if(_(e.isDirty)){const t=d(r);if(t.length!==d(o).length)return void nr(e);for(let n=0,i=t.length;n<i;n+=1){const i=t[n];if($(o[i])||r[i].length!==o[i].length)return void nr(e);const s=r[i],l=o[i];for(let t=0,n=o[i].length;t<n;t+=1)if(s[t]!==l[t])return void nr(e)}}}(t,r),e.aChildren=r,e.children=ie)}function En(e){const{elm:t,children:n}=e;for(let e=0;e<n.length;++e){const r=n[e];null!=r&&(r.hook.create(r),r.hook.insert(r,t,null))}}function kn(e,t,n){let r=0;for(let n=0,o=t.length;n<o;n++){const o=t[n];if(null!=o){const t=e[r];o.hook.hydrate(o,t),r++}}}const xn=new WeakMap;function Sn(e){return xn.has(e)}const Mn=Symbol.iterator,Tn={create:e=>{const{owner:t}=e,{renderer:n}=t,r=n.createText(e.text);Ln(r,t),e.elm=r},update:gn,insert:wn,move:wn,remove:yn,hydrate:(e,t)=>{var n;t.nodeValue=null!==(n=e.text)&&void 0!==n?n:null,e.elm=t}},An={create:e=>{const{owner:t,text:n}=e,{renderer:r}=t,o=r.createComment(n);Ln(o,t),e.elm=o},update:gn,insert:wn,move:wn,remove:yn,hydrate:(e,t)=>{var n;t.nodeValue=null!==(n=e.text)&&void 0!==n?n:null,e.elm=t}},On={create:e=>{const{sel:t,owner:n,data:{svg:r}}=e,{renderer:o}=n,i=D(r)?"http://www.w3.org/2000/svg":void 0,s=o.createElement(t,i);Ln(s,n),function(e,t){const{owner:n}=t;if(mn(e,n),1===n.shadowMode){const{data:{context:r}}=t,{stylesheetToken:o}=n.context;$(r)||$(r.lwc)||"manual"!==r.lwc.dom||function(e){e.$domManual$=!0}(e),pn(e,o)}}(s,e),e.elm=s,function(e){ye.create(e),Te.create(e),Le.create(e),je.create(e),Be.create(e),Re.create(e),Ie.create(e)}(e)},update:(e,t)=>{!function(e,t){Te.update(e,t),Le.update(e,t),Re.update(e,t),Ie.update(e,t)}(e,t),vn(e,t)},insert:(e,t,n)=>{wn(e,t,n),En(e)},move:(e,t,n)=>{wn(e,t,n)},remove:(e,t)=>{yn(e,t),function(e){const{children:t,elm:n}=e;for(let e=0,r=t.length;e<r;++e){const r=t[e];N(r)||r.hook.remove(r,n)}}(e)},hydrate:(e,t)=>{const n=t;e.elm=n;const{context:r}=e.data,o=Boolean(!$(r)&&!$(r.lwc)&&"manual"===r.lwc.dom);if(o){const{props:t}=e.data;$(t)||$(t.innerHTML)||(n.innerHTML===t.innerHTML?delete t.innerHTML:(i=`Mismatch hydrating element <${n.tagName.toLowerCase()}>: innerHTML values do not match for element, will recover from the difference`,s=e.owner,ge("warn",i,s)))}var i,s;bn(e),o||kn(e.elm.childNodes,e.children,e.owner)}},Pn={create:e=>{const{sel:t,owner:n}=e,{renderer:r}=n,o=function(e,t){e=e.toLowerCase();let n=t.getCustomElement(e);return $(n)?(n=class extends t.HTMLElement{constructor(e){super(),R(e)&&e(this)}},t.defineCustomElement(e,n),n):n}(t,r),i=new o((t=>{!function(e,t){if(!$(br(e)))return;const{sel:n,mode:r,ctor:o,owner:i}=t;if(mn(e,i),1===i.shadowMode){const{stylesheetToken:t}=i.context;pn(e,t)}gr(e,fn(o),{mode:r,owner:i,tagName:n,renderer:i.renderer})}(t,e)}));Ln(i,n),e.elm=i;const s=br(i);if(s)Cn(e,s);else if(e.ctor!==o)throw new TypeError("Incorrect Component Constructor");!function(e){ye.create(e),Te.create(e),Le.create(e),je.create(e),Be.create(e),Re.create(e),Ie.create(e)}(e)},update:(e,t)=>{!function(e,t){Te.update(e,t),Le.update(e,t),Re.update(e,t),Ie.update(e,t)}(e,t);const n=br(t.elm);n&&Cn(t,n),vn(e,t),n&&hr(n)},insert:(e,t,n)=>{wn(e,t,n);const r=br(e.elm);r&&xr(r),En(e),r&&function(e){vr(e)}(r)},move:(e,t,n)=>{wn(e,t,n)},remove:(e,t)=>{yn(e,t);const n=br(e.elm);n&&function(e){mr(e)}(n)},hydrate:(e,t)=>{const{sel:n,mode:r,ctor:o,owner:i}=e;gr(t,fn(o),{mode:r,owner:i,tagName:n,renderer:i.renderer}),e.elm=t;const s=yr(t);Cn(e,s),bn(e),xr(s),0!==s.renderMode&&kn(e.elm.childNodes,e.children),function(e){!function(e){if(D(e.isDirty)){const t=tr(e);e.children=t;kn(0===e.renderMode?e.elm.childNodes:e.elm.shadowRoot.childNodes,t),Cr(e)}}(e)}(s)}};function Ln(e,t){const{renderer:n,renderMode:r,shadowMode:o}=t;n.isSyntheticShadowDefined&&(1!==o&&0!==r||(e.$shadowResolver$=Pr(t).$shadowResolver$))}function $n(e,t,n){const r=Kn();const{key:o}=t;return{sel:e,data:t,children:n,text:undefined,elm:undefined,key:o,hook:On,owner:r}}function Nn(e,t,n,r=ie){const o=Kn(),{key:i}=n;const s={sel:e,data:n,children:r,text:undefined,elm:undefined,key:i,hook:Pn,ctor:t,owner:o,mode:"open"};return function(e){v.call(Kn().velements,e)}(s),s}const Dn=new Map;let _n=0;function Rn(e){var t;return t=e,xn.set(t,1),e}let Fn=()=>{throw new Error("sanitizeHtmlContent hook must be implemented.")};const Hn=i({s:function(e,t,n,r){$(r)||$(r[e])||0===r[e].length||(n=r[e]);const o=Kn(),{renderMode:i,shadowMode:s}=o;return 0===i?(Rn(n),n):(1===s&&Rn(n),$n("slot",t,n))},h:$n,c:Nn,i:function(e,t){const n=[];if(Rn(n),$(e)||null===e)return n;const r=e[Mn]();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);p(e)?v.apply(n,e):v.call(n,e),i+=1,s=o.value}return n},f:function(e){const t=e.length,n=[];Rn(n);for(let r=0;r<t;r+=1){const t=e[r];p(t)?v.apply(n,t):v.call(n,t)}return n},t:function(e){return{sel:undefined,data:oe,children:undefined,text:e,elm:undefined,key:undefined,hook:Tn,owner:Kn()}},d:function(e){return null==e?"":String(e)},b:function(e){const t=Kn();if(N(t))throw new Error;const n=t;return function(t){Qn(n,e,n.component,t)}},k:function(e,t){switch(typeof t){case"number":case"string":return e+":"+t}},co:function(e){return{sel:undefined,data:oe,children:undefined,text:e,elm:undefined,key:undefined,hook:An,owner:Kn()}},dc:function(e,t,n,r){if(null==t)return null;if(!dn(t))throw new Error(`Invalid LWC Constructor ${j(t)} for custom element <${e}>.`);let o=Dn.get(t);return $(o)&&(o=_n++,Dn.set(t,o)),n.key=`dc:${o}:${n.key}`,Nn(e,t,n,r)},ti:function(e){return e>0&&!(D(e)||_(e))?0:e},gid:function(e){const t=Kn();if($(e)||""===e)return e;if(N(e))return null;const{idx:n,shadowMode:r}=t;return 1===r?O.call(e,/\S+/g,(e=>`${e}-${n}`)):e},fid:function(e){const t=Kn();if($(e)||""===e)return e;if(N(e))return null;const{idx:n,shadowMode:r}=t;return 1===r&&/^#/.test(e)?`${e}-${n}`:e},shc:function(e){return Fn(e)}});function In(e){return`${e}-host`}function jn(e,t,n){const r=[];for(let o=0;o<e.length;o++){let i=e[o];if(p(i))v.apply(r,jn(i,t,n));else{const e=i.$scoped$,o=0===n.renderMode?!e:0===n.shadowMode,s=e||1===n.shadowMode&&1===n.renderMode?t:void 0;v.call(r,i(o,s))}}return r}function Bn(e,t){const{stylesheets:n,stylesheetToken:r}=t;let o=[];return $(n)||0===n.length||(o=jn(n,r,e)),o}function Wn(e,t){const{renderer:n,renderMode:r,shadowMode:o}=e;if(1===r&&1===o)for(let e=0;e<t.length;e++)n.insertGlobalStylesheet(t[e]);else{if(n.ssr||n.isHydrating()){const e=y.call(t,"\n");return i=e,Hn.h("style",{key:"style",attrs:{type:"text/css"}},[Hn.t(i)])}{const r=function(e){let t=e;for(;!N(t);){if(1===t.renderMode&&0===t.shadowMode)return t;t=t.owner}return t}(e),o=N(r);for(let e=0;e<t.length;e++)o?n.insertGlobalStylesheet(t[e]):n.insertStylesheet(t[e],r.cmpRoot)}}var i;return null}let Vn=!1,Gn=null;function Kn(){return Gn}function zn(e){Gn=e}function qn(e,t){const r=Vn,o=Gn;let i=[];return Or(e,e.owner,(()=>{Gn=e}),(()=>{const{component:r,context:o,cmpSlots:s,cmpTemplate:l,tro:a}=e;a.observe((()=>{if(t!==l){if(N(l)||Ar(e),a=t,!Yt.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: ${j(t)}.`);e.cmpTemplate=t,o.tplCache=n(null),o.hasScopedStyles=function(e){const{stylesheets:t}=e;if(!$(t))for(let e=0;e<t.length;e++)if(D(t[e].$scoped$))return!0;return!1}(t),function(e,t){const{elm:n,context:r,renderer:o,renderMode:i,shadowMode:s}=e,{stylesheets:l,stylesheetToken:a}=t,c=1===i&&1===s,{hasScopedStyles:u}=r;let d,f,h;const{stylesheetToken:p,hasTokenInClass:m,hasTokenInAttribute:g}=r;m&&o.getClassList(n).remove(In(p)),g&&o.removeAttribute(n,In(p)),$(l)||0===l.length||(d=a),$(d)||(u&&(o.getClassList(n).add(In(d)),f=!0),c&&(o.setAttribute(n,In(d),""),h=!0)),r.stylesheetToken=d,r.hasTokenInClass=f,r.hasTokenInAttribute=h}(e,t);const r=Bn(e,t);o.styleVNode=0===r.length?null:Wn(e,r)}var a;e.velements=[],Vn=!0,i=t.call(void 0,Hn,r,s,o.tplCache);const{styleVNode:c}=o;N(c)||S.call(i,c)}))}),(()=>{Vn=r,Gn=o})),i}function Un(e,t){if(!u(t)&&$(t.wcStack)){const n=function(e){const t=[];let n=e;for(;!N(n);)v.call(t,me(n)),n=n.owner;return t.reverse().join("\n\t")}(e);o(t,"wcStack",{get:()=>n})}}let Xn=null;function Yn(e){return Xn===e}function Jn(e,t,n){const{component:r,callHook:o,owner:i}=e;Or(e,i,H,(()=>{o(r,t,n)}),H)}function Qn(e,t,n,r){const{callHook:o,owner:i}=e;Or(e,i,H,(()=>{o(n,t,[r])}),H)}const Zn=new Map;function er(e){return new fe((()=>{const{isDirty:t}=e;_(t)&&(nr(e),function(e){if(D(e.renderer.ssr)||D(e.isScheduled))return;e.isScheduled=!0,0===Er.length&&le(kr);v.call(Er,e)}(e))}))}function tr(e){e.tro.reset();const t=function(e){const{def:{render:t},callHook:n,component:r,owner:o}=e,i=Kn();let s,l=!1;return Or(e,o,(()=>{zn(e)}),(()=>{e.tro.observe((()=>{s=n(r,t),l=!0}))}),(()=>{zn(i)})),l?qn(e,s):[]}(e);return e.isDirty=!1,e.isScheduled=!1,t}function nr(e){e.isDirty=!0}const rr=new WeakMap;function or(e,t){if(!R(t))throw new TypeError;let n=rr.get(t);return $(n)&&(n=function(n){Qn(e,t,void 0,n)},rr.set(t,n)),n}const ir=n(null),sr=["rendered","connected","disconnected"];function lr(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 ar=0;const cr=new WeakMap;function ur(e,t,n=[]){return t.apply(e,n)}function dr(e,t,n){e[t]=n}function fr(e,t){return e[t]}function hr(e){vr(e)}function pr(e){const t=yr(e);1===t.state&&function(e){mr(yr(e))}(e),xr(t),vr(t)}function mr(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){_(e.isDirty)&&(e.isDirty=!0);e.state=2;const{disconnected:t}=ir;t&&lr(e,t);Sr(e)&&function(e){const{wiredDisconnecting:t}=e.context;Or(e,e,H,(()=>{for(let e=0,n=t.length;e<n;e+=1)t[e]()}),H)}(e);const{disconnectedCallback:n}=e.def;$(n)||Jn(e,n)}(e),Mr(e),function(e){const{aChildren:t}=e;Tr(t)}(e)}}function gr(e,t,r){const{mode:o,owner:i,renderer:s,tagName:l}=r,a={elm:e,def:t,idx:ar++,state:0,isScheduled:!1,isDirty:!0,tagName:l,mode:o,owner:i,renderer:s,children:ie,aChildren:ie,velements:ie,cmpProps:n(null),cmpFields:n(null),cmpSlots:n(null),oar:n(null),cmpTemplate:null,renderMode:t.renderMode,shadowMode:null,context:{stylesheetToken:void 0,hasTokenInClass:void 0,hasTokenInAttribute:void 0,hasScopedStyles:void 0,styleVNode:null,tplCache:oe,wiredConnecting:ie,wiredDisconnecting:ie},tro:null,component:null,cmpRoot:null,callHook:ur,setHook:dr,getHook:fr};return a.shadowMode=function(e){const{def:t,renderer:n}=e,{isNativeShadowDefined:r,isSyntheticShadowDefined:o}=n;let i;if(o)if(0===t.renderMode)i=0;else if(r)if("any"===t.shadowSupportMode)i=0;else{const t=function(e){let t=e.owner;for(;!N(t)&&0===t.renderMode;)t=t.owner;return t}(e);i=N(t)||0!==t.shadowMode?1:0}else i=1;else i=0;return i}(a),a.tro=er(a),function(e,t){const n=Xn;let r;Xn=e;try{const o=new t;if(Xn.component!==o)throw new TypeError("Invalid component constructor, the class should extend LightningElement.")}catch(e){r=Object(e)}finally{if(Xn=n,!$(r))throw Un(e,r),r}}(a,t.ctor),Sr(a)&&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=Lr.get(i);if(!$(s)){const{connector:n,computeConfigAndUpdate:i,resetConfigWatcher:l}=Nr(e,t,s),a=s.dynamic.length>0;v.call(r,(()=>{n.connect(),ne.ENABLE_WIRE_SYNC_EMIT||!a?i():Promise.resolve().then(i)})),v.call(o,(()=>{n.disconnect(),l()}))}}}(a),a}function wr(e,t){cr.set(e,t)}function yr(e){return cr.get(e)}function br(e){return cr.get(e)}function vr(e){if(D(e.isDirty)){!function(e,t){const{children:n}=e;if(e.children=t,(t.length>0||n.length>0)&&n!==t){const r=Sn(t)?Ue:Xe;Or(e,e,(()=>{}),(()=>{const o=Pr(e);r(o,n,t)}),(()=>{}))}1===e.state&&Cr(e)}(e,tr(e))}}function Cr(e){const{renderer:t,def:{renderedCallback:n}}=e;if(D(t.ssr))return;const{rendered:r}=ir;r&&lr(e,r),$(n)||Jn(e,n)}let Er=[];function kr(){const e=Er.sort(((e,t)=>e.idx-t.idx));Er=[];for(let t=0,n=e.length;t<n;t+=1){const r=e[t];try{vr(r)}catch(r){throw t+1<n&&(0===Er.length&&le(kr),S.apply(Er,k.call(e,t+1))),r}}}function xr(e){const{state:t}=e;if(1===t)return;e.state=1;const{connected:n}=ir;n&&lr(e,n),Sr(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;$(r)||Jn(e,r)}function Sr(e){return l(e.def.wire).length>0}function Mr(e){const{velements:t}=e;for(let e=t.length-1;e>=0;e-=1){const{elm:n}=t[e];if(!$(n)){const e=br(n);$(e)||mr(e)}}}function Tr(e){for(let t=0,n=e.length;t<n;t+=1){const n=e[t];N(n)||!p(n.children)||$(n.elm)||($(n.ctor)?Tr(n.children):mr(yr(n.elm)))}}function Ar(e){const{children:t,renderer:n}=e,r=Pr(e);for(let e=0,o=t.length;e<o;e++){const o=t[e];N(o)||$(o.elm)||n.remove(o.elm,r)}e.children=ie,Mr(e),e.velements=ie}function Or(e,t,n,r,o){let i;n();try{r()}catch(e){i=Object(e)}finally{if(o(),!$(i)){Un(e,i);const n=N(t)?void 0:function(e){let t=e;for(;!N(t);){if(!$(t.def.errorCallback))return t;t=t.owner}}(t);if($(n))throw i;Ar(e);Jn(n,n.def.errorCallback,[i,i.wcStack])}}}function Pr(e){return 1===e.renderMode?e.cmpRoot:e.elm}const Lr=new Map;class $r extends CustomEvent{constructor(e,{setNewContext:t,setDisconnectedCallback:n}){super(e,{bubbles:!0,composed:!0}),r(this,{setNewContext:{value:t},setDisconnectedCallback:{value:n}})}}function Nr(e,t,n){const{method:r,adapter:i,configCallback:s,dynamic:l}=n,a=$(r)?function(e,t){const{cmpFields:n}=e;return r=>{r!==e.cmpFields[t]&&(n[t]=r,he(e,t))}}(e,t):function(e,t){return n=>{Or(e,e.owner,H,(()=>{t.call(e.component,n)}),H)}}(e,r);let c,u;o(a,"$$DeprecatedWiredElementHostKey$$",{value:e.elm}),o(a,"$$DeprecatedWiredParamsMetaKey$$",{value:l}),Or(e,e,H,(()=>{u=new i(a)}),H);const{computeConfigAndUpdate:d,ro:f}=function(e,t,n){let r=!1;const o=new fe((()=>{!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=>{Or(e,e,H,(()=>{u.update(t,c)}),H)}));return $(i.contextSchema)||function(e,t,n){const{adapter:r}=t,o=_r(r);if($(o))return;const{elm:i,renderer:s,context:{wiredConnecting:l,wiredDisconnecting:a}}=e;v.call(l,(()=>{const e=new $r(o,{setNewContext(e){n(e)},setDisconnectedCallback(e){v.call(a,e)}});s.dispatchEvent(i,e)}))}(e,n,(t=>{c!==t&&(c=t,1===e.state&&d())})),{connector:u,computeConfigAndUpdate:d,resetConfigWatcher:()=>f.reset()}}const Dr=new Map;function _r(e){return Dr.get(e)}function Rr(e,t,n,r){t.adapter&&(t=t.adapter);const o={adapter:t,method:e.value,configCallback:n,dynamic:r};Lr.set(e,o)}function Fr(e,t,n,r){t.adapter&&(t=t.adapter);const o={adapter:t,configCallback:n,dynamic:r};Lr.set(e,o)}let Hr=!1;var Ir;!function(e){e.Text="text",e.Comment="comment",e.Raw="raw",e.Element="element",e.ShadowRoot="shadow-root"}(Ir||(Ir={}));const jr=/\s+/g;function Br(e){return new Set(e.split(jr).filter((e=>e.length)))}function Wr(e){return Array.from(e).join(" ")}function Vr(e){return function(){throw new TypeError(`"${e}" is not supported in this environment`)}}function Gr(e){return{type:Ir.Element,name:e,parent:null,shadowRoot:null,children:[],attributes:[],eventListeners:{}}}const Kr=n(null),zr=new WeakMap;const qr={ssr:!0,isHydrating:()=>!1,isNativeShadowDefined:!1,isSyntheticShadowDefined:!1,insert(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=N(n)?-1:t.children.indexOf(n);-1===r?t.children.push(e):t.children.splice(r,0,e)},remove(e,t){const n=t.children.indexOf(e);t.children.splice(n,1)},createElement:Gr,createText:e=>({type:Ir.Text,value:String(e),parent:null}),createComment:e=>({type:Ir.Comment,value:e,parent:null}),nextSibling(e){const{parent:t}=e;if(N(t))return null;const n=t.children.indexOf(e);return t.children[n+1]||null},attachShadow:(e,t)=>(e.shadowRoot={type:Ir.ShadowRoot,children:[],mode:t.mode,delegatesFocus:!!t.delegatesFocus},e.shadowRoot),getProperty(e,t){var n,r;if(t in e)return e[t];if(e.type===Ir.Element){const o=ee(t);if(X(o,e.name))return null!==(n=this.getAttribute(e,o))&&void 0!==n&&n;if(J(o)||K(o))return this.getAttribute(e,o);if("input"===e.name&&"value"===t)return null!==(r=this.getAttribute(e,"value"))&&void 0!==r?r:""}},setProperty(e,t,n){if(t in e)return e[t]=n;if(e.type===Ir.Element){const r=ee(t);if("innerHTML"===t)return void(e.children=[{type:Ir.Raw,parent:e,value:n}]);if(X(r,e.name))return!0===n?this.setAttribute(e,r,""):this.removeAttribute(e,r);if(J(r)||K(r))return this.setAttribute(e,r,n);if("input"===e.name&&"value"===r)return N(n)||$(n)?this.removeAttribute(e,"value"):this.setAttribute(e,"value",n)}},setText(e,t){e.type===Ir.Text?e.value=t:e.type===Ir.Element&&(e.children=[{type:Ir.Text,parent:e,value:t}])},getAttribute(e,t,n=null){const r=e.attributes.find((e=>e.name===t&&e.namespace===n));return r?r.value:null},setAttribute(e,t,n,r=null){const o=e.attributes.find((e=>e.name===t&&e.namespace===r));$(o)?e.attributes.push({name:t,namespace:r,value:String(n)}):o.value=n},removeAttribute(e,t,n){e.attributes=e.attributes.filter((e=>e.name!==t&&e.namespace!==n))},getClassList(e){function t(){let t=e.attributes.find((e=>"class"===e.name&&N(e.namespace)));return $(t)&&(t={name:"class",namespace:null,value:""},e.attributes.push(t)),t}return{add(...e){const n=t(),r=Br(n.value);e.forEach((e=>r.add(e))),n.value=Wr(r)},remove(...e){const n=t(),r=Br(n.value);e.forEach((e=>r.delete(e))),n.value=Wr(r)}}},setCSSStyleProperty(e,t,n,r){const o=e.attributes.find((e=>"style"===e.name&&N(e.namespace))),i=`${t}: ${n}${r?" !important":""}`;$(o)?e.attributes.push({name:"style",namespace:null,value:i}):o.value+=`; ${i}`},isConnected:e=>!N(e.parent),insertGlobalStylesheet(){},insertStylesheet(){},addEventListener(){},removeEventListener(){},dispatchEvent:Vr("dispatchEvent"),getBoundingClientRect:Vr("getBoundingClientRect"),querySelector:Vr("querySelector"),querySelectorAll:Vr("querySelectorAll"),getElementsByTagName:Vr("getElementsByTagName"),getElementsByClassName:Vr("getElementsByClassName"),getChildren:Vr("getChildren"),getChildNodes:Vr("getChildNodes"),getFirstChild:Vr("getFirstChild"),getFirstElementChild:Vr("getFirstElementChild"),getLastChild:Vr("getLastChild"),getLastElementChild:Vr("getLastElementChild"),defineCustomElement(e,t,n){!function(e,t){if(e!==L.call(e)||Kr[e])throw new TypeError("Invalid Registration");Kr[e]=t,zr.set(t,e)}(e,t)},getCustomElement:e=>Kr[e],HTMLElement:class{constructor(){const{constructor:e}=this,t=zr.get(e);if(!t)throw new TypeError("Invalid Construction");return Gr(t)}}},Ur={'"':"&quot;","'":"&#x27;","<":"&lt;",">":"&gt;","&":"&amp;"};function Xr(e){return e.replace(/["'<>&]/g,(e=>Ur[e]))}function Yr(e){return e.map((e=>{switch(e.type){case Ir.Text:return Xr(e.value);case Ir.Comment:return`\x3c!--${Xr(e.value)}--\x3e`;case Ir.Raw:return e.value;case Ir.Element:return Jr(e)}})).join("")}function Jr(e){let t="";const{name:n}=e,r=e.attributes.length?` ${o=e.attributes,o.map((e=>e.value.length?`${e.name}=${JSON.stringify(Xr(e.value))}`:e.name)).join(" ")}`:"";var o;const i=Yr(e.children);return t+=`<${n}${r}>`,e.shadowRoot&&(t+=function(e){const t=[`shadowroot="${e.mode}"`];return e.delegatesFocus&&t.push("shadowrootdelegatesfocus"),`<template ${t.join(" ")}>${Yr(e.children)}</template>`}(e.shadowRoot)),t+=i,function(e){return q.has(e)}(n)||(t+=`</${n}>`),t}const Qr={type:Ir.Element,name:"fake-root-element",parent:null,shadowRoot:null,children:[],attributes:[],eventListeners:{}};i(Rt),f(Rt.prototype),exports.LightningElement=Rt,exports.api=function(){throw new Error},exports.createContextProvider=function(e){let t=_r(e);if(!$(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){Dr.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((()=>{$(i)||i(r)})),o(r),e.stopImmediatePropagation()}))}},exports.getComponentDef=function(e){const t=fn(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:ee(e)};const a={};for(const e in s)a[e]=s[e].value;return{ctor:n,name:r,props:l,methods:a}},exports.isComponentConstructor=dn,exports.readonly=function(e){return Dt.getReadOnlyProxy(e)},exports.register=function(e){for(let t=0;t<sr.length;++t){const n=sr[t];if(n in e){let t=ir[n];$(t)&&(ir[n]=t=[]),v.call(t,e[n])}}},exports.registerComponent=function(e,{tmpl:t}){return Zn.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),h=n(null),p=n(null),m=n(null),g=n(null);let w;if(!$(i))for(const e in i){const t=i[e];if(g[e]=t.config,w=s(r,e),t.config>0){if($(w))throw new Error;w=zt(e,w)}else w=$(w)||$(w.get)?Gt(e):zt(e,w);f[e]=w,o(r,e,w)}if($(l)||M.call(l,(e=>{if(w=s(r,e),$(w))throw new Error;d[e]=w})),!$(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($(w))throw new Error;h[e]=w,Rr(w,t,i,l)}else w=Wt(e),p[e]=w,Fr(w,t,i,l),o(r,e,w)}if(!$(c))for(const e in c)w=s(r,e),w=Vt(e),o(r,e,w);if(!$(u))for(let e=0,t=u.length;e<t;e++){const t=u[e];w=s(r,t);const n=!$(i)&&t in i,o=!$(c)&&t in c;n||o||(m[t]=qt(t))}return function(e,t){Ut.set(e,t)}(e,{apiMethods:d,apiFields:f,apiFieldsConfig:g,wiredMethods:h,wiredFields:p,observedFields:m}),e},exports.registerTemplate=function(e){return Yt.add(e),e},exports.renderComponent=function(e,t,n={}){if(!F(e))throw new TypeError(`"renderComponent" expects a string as the first parameter but instead received ${e}.`);if(!R(t))throw new TypeError(`"renderComponent" expects a valid component constructor as the second parameter but instead received ${t}.`);if("object"!=typeof n||N(n))throw new TypeError(`"renderComponent" expects an object as the third parameter but instead received ${n}.`);const r=qr.createElement(e);gr(r,fn(t),{mode:"open",owner:null,renderer:qr,tagName:e});for(const[e,t]of Object.entries(n))r[e]=t;return r.parent=Qr,pr(r),Jr(r)},exports.sanitizeAttribute=function(e,t,n,r){return r},exports.setFeatureFlag=function(e,t){if("boolean"==typeof t){if($(te[e])){const n=d(te).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=ne[e];if(!$(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(ne,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(Hr,"Hooks are already overridden, only one definition is allowed."),Hr=!0,n=t.sanitizeHtmlContent,Fn=n},exports.track=function(e){if(1===arguments.length)return Dt.getProxy(e);throw new Error},exports.unwrap=function(e){const t=Dt.unwrapProxy(e);return t!==e?t:e},exports.wire=function(e,t){throw new Error};
@@ -335,7 +335,7 @@ function htmlPropertyToAttribute(propName) {
335
335
  CACHED_PROPERTY_ATTRIBUTE_MAPPING.set(propName, attributeName);
336
336
  return attributeName;
337
337
  }
338
- /** version: 2.5.9 */
338
+ /** version: 2.5.12 */
339
339
 
340
340
  /*
341
341
  * Copyright (c) 2020, salesforce.com, inc.
@@ -456,7 +456,7 @@ function setFeatureFlagForTest(name, value) {
456
456
  setFeatureFlag(name, value);
457
457
  }
458
458
  }
459
- /** version: 2.5.9 */
459
+ /** version: 2.5.12 */
460
460
 
461
461
  /* proxy-compat-disable */
462
462
 
@@ -5819,7 +5819,6 @@ function updateStylesheetToken(vm, template) {
5819
5819
 
5820
5820
  function evaluateStylesheetsContent(stylesheets, stylesheetToken, vm) {
5821
5821
  const content = [];
5822
- let root;
5823
5822
 
5824
5823
  for (let i = 0; i < stylesheets.length; i++) {
5825
5824
  let stylesheet = stylesheets[i];
@@ -5832,46 +5831,23 @@ function evaluateStylesheetsContent(stylesheets, stylesheetToken, vm) {
5832
5831
  // the component instance might be attempting to use an old version of
5833
5832
  // the stylesheet, while internally, we have a replacement for it.
5834
5833
  stylesheet = getStyleOrSwappedStyle(stylesheet);
5835
- }
5836
-
5837
- const isScopedCss = stylesheet[KEY__SCOPED_CSS]; // Apply the scope token only if the stylesheet itself is scoped, or if we're rendering synthetic shadow.
5838
-
5839
- const scopeToken = isScopedCss || vm.shadowMode === 1
5840
- /* Synthetic */
5841
- && vm.renderMode === 1
5842
- /* Shadow */
5843
- ? stylesheetToken : undefined; // Use the actual `:host` selector if we're rendering global CSS for light DOM, or if we're rendering
5834
+ } // Use the actual `:host` selector if we're rendering global CSS for light DOM, or if we're rendering
5844
5835
  // native shadow DOM. Synthetic shadow DOM never uses `:host`.
5845
5836
 
5837
+
5838
+ const isScopedCss = stylesheet[KEY__SCOPED_CSS];
5846
5839
  const useActualHostSelector = vm.renderMode === 0
5847
5840
  /* Light */
5848
5841
  ? !isScopedCss : vm.shadowMode === 0
5849
5842
  /* Native */
5850
- ; // Use the native :dir() pseudoclass only in native shadow DOM. Otherwise, in synthetic shadow,
5851
- // we use an attribute selector on the host to simulate :dir().
5852
-
5853
- let useNativeDirPseudoclass;
5843
+ ; // Apply the scope token only if the stylesheet itself is scoped, or if we're rendering synthetic shadow.
5854
5844
 
5855
- if (vm.renderMode === 1
5845
+ const scopeToken = isScopedCss || vm.shadowMode === 1
5846
+ /* Synthetic */
5847
+ && vm.renderMode === 1
5856
5848
  /* Shadow */
5857
- ) {
5858
- useNativeDirPseudoclass = vm.shadowMode === 0
5859
- /* Native */
5860
- ;
5861
- } else {
5862
- // Light DOM components should only render `[dir]` if they're inside of a synthetic shadow root.
5863
- // At the top level (root is null) or inside of a native shadow root, they should use `:dir()`.
5864
- if (isUndefined$1(root)) {
5865
- // Only calculate the root once as necessary
5866
- root = getNearestShadowComponent(vm);
5867
- }
5868
-
5869
- useNativeDirPseudoclass = isNull(root) || root.shadowMode === 0
5870
- /* Native */
5871
- ;
5872
- }
5873
-
5874
- ArrayPush$1.call(content, stylesheet(scopeToken, useActualHostSelector, useNativeDirPseudoclass));
5849
+ ? stylesheetToken : undefined;
5850
+ ArrayPush$1.call(content, stylesheet(useActualHostSelector, scopeToken));
5875
5851
  }
5876
5852
  }
5877
5853
 
@@ -5895,12 +5871,14 @@ function getStylesheetsContent(vm, template) {
5895
5871
  // https://github.com/salesforce/lwc/pull/2460#discussion_r691208892
5896
5872
 
5897
5873
 
5898
- function getNearestShadowComponent(vm) {
5874
+ function getNearestNativeShadowComponent(vm) {
5899
5875
  let owner = vm;
5900
5876
 
5901
5877
  while (!isNull(owner)) {
5902
5878
  if (owner.renderMode === 1
5903
5879
  /* Shadow */
5880
+ && owner.shadowMode === 0
5881
+ /* Native */
5904
5882
  ) {
5905
5883
  return owner;
5906
5884
  }
@@ -5911,20 +5889,6 @@ function getNearestShadowComponent(vm) {
5911
5889
  return owner;
5912
5890
  }
5913
5891
 
5914
- function getNearestNativeShadowComponent(vm) {
5915
- const owner = getNearestShadowComponent(vm);
5916
-
5917
- if (!isNull(owner) && owner.shadowMode === 1
5918
- /* Synthetic */
5919
- ) {
5920
- // Synthetic-within-native is impossible. So if the nearest shadow component is
5921
- // synthetic, we know we won't find a native component if we go any further.
5922
- return null;
5923
- }
5924
-
5925
- return owner;
5926
- }
5927
-
5928
5892
  function createStylesheet(vm, stylesheets) {
5929
5893
  const {
5930
5894
  renderer,
@@ -7589,7 +7553,7 @@ function setHooks(hooks) {
7589
7553
  hooksAreSet = true;
7590
7554
  setSanitizeHtmlContentHook(hooks.sanitizeHtmlContent);
7591
7555
  }
7592
- /* version: 2.5.9 */
7556
+ /* version: 2.5.12 */
7593
7557
 
7594
7558
  /*
7595
7559
  * Copyright (c) 2020, salesforce.com, inc.
@@ -8085,6 +8049,6 @@ function renderComponent(tagName, Ctor, props = {}) {
8085
8049
 
8086
8050
  freeze(LightningElement);
8087
8051
  seal(LightningElement.prototype);
8088
- /* version: 2.5.9 */
8052
+ /* version: 2.5.12 */
8089
8053
 
8090
8054
  export { LightningElement, api$1 as api, createContextProvider, getComponentDef, isComponentConstructor, readonly, register, registerComponent, registerDecorators, registerTemplate, renderComponent, sanitizeAttribute, setFeatureFlag, setFeatureFlagForTest, setHooks, track, unwrap, wire };
@@ -194,7 +194,7 @@ const KEY__SYNTHETIC_MODE = '$$lwc-synthetic-mode';
194
194
  // we can't use typeof since it will fail when transpiling.
195
195
 
196
196
  const hasNativeSymbolSupport = /*@__PURE__*/(() => Symbol('x').toString() === 'Symbol(x)')();
197
- /** version: 2.5.9 */
197
+ /** version: 2.5.12 */
198
198
 
199
199
  /*
200
200
  * Copyright (c) 2018, salesforce.com, inc.
@@ -533,7 +533,7 @@ if (!_globalThis.lwcRuntimeFlags) {
533
533
  }
534
534
 
535
535
  const runtimeFlags = _globalThis.lwcRuntimeFlags;
536
- /** version: 2.5.9 */
536
+ /** version: 2.5.12 */
537
537
 
538
538
  /*
539
539
  * Copyright (c) 2018, salesforce.com, inc.
@@ -5829,4 +5829,4 @@ defineProperty(Element.prototype, '$domManual$', {
5829
5829
 
5830
5830
  configurable: true
5831
5831
  });
5832
- /** version: 2.5.9 */
5832
+ /** version: 2.5.12 */
@@ -197,7 +197,7 @@
197
197
  // we can't use typeof since it will fail when transpiling.
198
198
 
199
199
  const hasNativeSymbolSupport = /*@__PURE__*/(() => Symbol('x').toString() === 'Symbol(x)')();
200
- /** version: 2.5.9 */
200
+ /** version: 2.5.12 */
201
201
 
202
202
  /*
203
203
  * Copyright (c) 2018, salesforce.com, inc.
@@ -536,7 +536,7 @@
536
536
  }
537
537
 
538
538
  const runtimeFlags = _globalThis.lwcRuntimeFlags;
539
- /** version: 2.5.9 */
539
+ /** version: 2.5.12 */
540
540
 
541
541
  /*
542
542
  * Copyright (c) 2018, salesforce.com, inc.
@@ -5832,6 +5832,6 @@
5832
5832
 
5833
5833
  configurable: true
5834
5834
  });
5835
- /** version: 2.5.9 */
5835
+ /** version: 2.5.12 */
5836
5836
 
5837
5837
  })();