@ni/nimble-components 19.1.1 → 19.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -757,11 +757,11 @@ this.position=this.forcedPosition?this.positionAttribute:e.top>t?Ii:Ri,this.posi
757
757
  this.$fastController.isConnected&&(this.value=(null===(t=this.firstSelectedOption)||void 0===t?void 0:t.text)||this.control.value,this.control.value=this.value),e&&this.$emit("change")}clearSelectionRange(){const e=this.control.value.length
758
758
  this.control.setSelectionRange(e,e)}}
759
759
  Ue([ne({attribute:"autocomplete",mode:"fromView"})],Hi.prototype,"autocomplete",void 0),Ue([m],Hi.prototype,"maxHeight",void 0),Ue([ne({attribute:"open",mode:"boolean"})],Hi.prototype,"open",void 0),Ue([ne],Hi.prototype,"placeholder",void 0),Ue([ne({attribute:"position"})],Hi.prototype,"positionAttribute",void 0),Ue([m],Hi.prototype,"position",void 0)
760
- class Pi{}Ue([m],Pi.prototype,"ariaAutoComplete",void 0),Ue([m],Pi.prototype,"ariaControls",void 0),Et(Pi,_i),Et(Hi,Ne,Pi)
761
- function Ti(e){const t=e.parentElement
760
+ class Pi{}function Ti(e){const t=e.parentElement
762
761
  if(t)return t
763
762
  {const t=e.getRootNode()
764
- if(t.host instanceof HTMLElement)return t.host}return null}const Di=document.createElement("div")
763
+ if(t.host instanceof HTMLElement)return t.host}return null}Ue([m],Pi.prototype,"ariaAutoComplete",void 0),Ue([m],Pi.prototype,"ariaControls",void 0),Et(Pi,_i),Et(Hi,Ne,Pi)
764
+ const Di=document.createElement("div")
765
765
  class Li{setProperty(e,t){u.queueUpdate((()=>this.target.setProperty(e,t)))}removeProperty(e){u.queueUpdate((()=>this.target.removeProperty(e)))}}class zi extends Li{constructor(){super()
766
766
  const e=new CSSStyleSheet
767
767
  this.target=e.cssRules[e.insertRule(":root{}")].style,document.adoptedStyleSheets=[...document.adoptedStyleSheets,e]}}class Bi extends Li{constructor(){super(),this.style=document.createElement("style"),document.head.appendChild(this.style)
@@ -2881,7 +2881,7 @@ const Yp=ro.tagFor(Kp),Qp=G`
2881
2881
  </div>
2882
2882
  `
2883
2883
  class Jp extends yp{constructor(){super(_d)}}$p("icon-arrow-expander-down",Jp)
2884
- const eg=ro.tagFor(Jp),tg="underline",ig="outline",og="block",ng=fe`
2884
+ const eg=ro.tagFor(Jp),tg="above",ig="underline",og="outline",ng="block",sg=fe`
2885
2885
  ${xn("inline-flex")}
2886
2886
 
2887
2887
  :host {
@@ -2985,19 +2985,19 @@ const eg=ro.tagFor(Jp),tg="underline",ig="outline",og="block",ng=fe`
2985
2985
  border-bottom-color: ${Kr};
2986
2986
  }
2987
2987
 
2988
+ .anchored-region[hidden] {
2989
+ visibility: hidden;
2990
+ }
2991
+
2988
2992
  .listbox {
2989
2993
  box-sizing: border-box;
2990
2994
  display: inline-flex;
2991
2995
  flex-direction: column;
2992
2996
  left: 0;
2993
2997
  overflow-y: auto;
2994
- position: absolute;
2995
2998
  width: 100%;
2996
2999
  --ni-private-listbox-padding: ${sa};
2997
- max-height: calc(
2998
- var(--ni-private-select-max-height) - 2 *
2999
- var(--ni-private-listbox-padding)
3000
- );
3000
+ max-height: calc(var(--ni-private-select-max-height) - ${sa});
3001
3001
  z-index: 1;
3002
3002
  box-shadow: ${ha};
3003
3003
  border: 1px solid ${ta};
@@ -3010,10 +3010,6 @@ const eg=ro.tagFor(Jp),tg="underline",ig="outline",og="block",ng=fe`
3010
3010
  padding: var(--ni-private-listbox-padding);
3011
3011
  }
3012
3012
 
3013
- .listbox[hidden] {
3014
- display: none;
3015
- }
3016
-
3017
3013
  :host([open][position='above']) .listbox {
3018
3014
  border-bottom-left-radius: 0;
3019
3015
  border-bottom-right-radius: 0;
@@ -3024,12 +3020,12 @@ const eg=ro.tagFor(Jp),tg="underline",ig="outline",og="block",ng=fe`
3024
3020
  border-top-right-radius: 0;
3025
3021
  }
3026
3022
 
3027
- :host([open][position='above']) .listbox {
3028
- bottom: ${oa};
3023
+ :host([open][position='above']) .anchored-region {
3024
+ padding-bottom: ${sa};
3029
3025
  }
3030
3026
 
3031
- :host([open][position='below']) .listbox {
3032
- top: calc(${oa} + ${sa});
3027
+ :host([open][position='below']) .anchored-region {
3028
+ padding-top: ${sa};
3033
3029
  }
3034
3030
 
3035
3031
  .selected-value {
@@ -3066,16 +3062,6 @@ const eg=ro.tagFor(Jp),tg="underline",ig="outline",og="block",ng=fe`
3066
3062
  fill: ${Sl};
3067
3063
  }
3068
3064
 
3069
- slot[name='listbox'] {
3070
- display: none;
3071
- width: 100%;
3072
- }
3073
-
3074
- :host([open]) slot[name='listbox'] {
3075
- display: flex;
3076
- position: absolute;
3077
- }
3078
-
3079
3065
  .end {
3080
3066
  margin-inline-start: auto;
3081
3067
  }
@@ -3084,7 +3070,7 @@ const eg=ro.tagFor(Jp),tg="underline",ig="outline",og="block",ng=fe`
3084
3070
  ::slotted(option) {
3085
3071
  flex: none;
3086
3072
  }
3087
- `.withBehaviors(qc(tg,fe`
3073
+ `.withBehaviors(qc(ig,fe`
3088
3074
  .control {
3089
3075
  border-bottom-width: ${aa};
3090
3076
  padding-bottom: 0;
@@ -3093,12 +3079,12 @@ const eg=ro.tagFor(Jp),tg="underline",ig="outline",og="block",ng=fe`
3093
3079
  :host([disabled]) .control {
3094
3080
  border-color: rgba(${Wr}, 0.1);
3095
3081
  }
3096
- `),qc(ig,fe`
3082
+ `),qc(og,fe`
3097
3083
  .control {
3098
3084
  border-width: ${aa};
3099
3085
  padding: 0;
3100
3086
  }
3101
- `),qc(og,fe`
3087
+ `),qc(ng,fe`
3102
3088
  .control {
3103
3089
  background-color: rgba(${Wr}, 0.1);
3104
3090
  }
@@ -3115,7 +3101,7 @@ const eg=ro.tagFor(Jp),tg="underline",ig="outline",og="block",ng=fe`
3115
3101
  .listbox slot {
3116
3102
  background: ${cs(jn,.15)};
3117
3103
  }
3118
- `)),sg=fe`
3104
+ `)),rg=fe`
3119
3105
  .error-icon {
3120
3106
  display: none;
3121
3107
  }
@@ -3147,9 +3133,9 @@ const eg=ro.tagFor(Jp),tg="underline",ig="outline",og="block",ng=fe`
3147
3133
  :host([error-visible]) .error-text:empty {
3148
3134
  display: none;
3149
3135
  }
3150
- `,rg=fe`
3151
- ${ng}
3136
+ `,ag=fe`
3152
3137
  ${sg}
3138
+ ${rg}
3153
3139
 
3154
3140
  :host {
3155
3141
  --ni-private-hover-bottom-border-width: 2px;
@@ -3222,27 +3208,27 @@ const eg=ro.tagFor(Jp),tg="underline",ig="outline",og="block",ng=fe`
3222
3208
  :host(:empty) .listbox {
3223
3209
  display: none;
3224
3210
  }
3225
- `.withBehaviors(qc(og,fe`
3211
+ `.withBehaviors(qc(ng,fe`
3226
3212
  :host([error-visible]) .control {
3227
3213
  border-bottom-width: ${aa};
3228
3214
  padding-bottom: 0;
3229
3215
  }
3230
3216
  `))
3231
- class ag extends Hi{constructor(){super(...arguments),this.appearance=tg,this.errorVisible=!1,this.valueUpdatedByInput=!1}setPositioning(){this.$fastController.isConnected&&super.setPositioning()}slottedOptionsChanged(e,t){const i=this.value
3217
+ class lg extends Hi{constructor(){super(...arguments),this.appearance=ig,this.errorVisible=!1,this.valueUpdatedByInput=!1}get value(){return super.value}set value(e){super.value=e,this.valueUpdatedByInput||(this.filter="",this.filterOptions(),this.selectedIndex=this.options.map((e=>e.text)).indexOf(this.value))}setPositioning(){this.$fastController.isConnected&&super.setPositioning()}slottedOptionsChanged(e,t){const i=this.value
3232
3218
  super.slottedOptionsChanged(e,t),i&&(this.value=i)}connectedCallback(){super.connectedCallback(),this.setPositioning(),this.updateInputAriaLabel()}toggleButtonClickHandler(e){e.stopImmediatePropagation()}toggleButtonChangeHandler(e){this.open=this.dropdownButton.checked,e.stopImmediatePropagation()}toggleButtonKeyDownHandler(e){switch(e.key){case Mr:case Ir:case" ":case Ar:return this.open=!0,this.stopPropagation(e),!1
3233
3219
  default:return!0}}filterOptions(){super.filterOptions()
3234
3220
  const e=this.filteredOptions.filter((e=>!e.disabled))
3235
3221
  this.filteredOptions=e}inputHandler(e){const t=super.inputHandler(e)
3236
- return this.valueUpdatedByInput||(this.valueBeforeTextUpdate=this.value),this.value=this.control.value,this.valueUpdatedByInput=!0,t}keydownHandler(e){const t=super.keydownHandler(e)
3222
+ return this.valueUpdatedByInput||(this.valueBeforeTextUpdate=this.value),this.valueUpdatedByInput=!0,this.value=this.control.value,t}keydownHandler(e){const t=super.keydownHandler(e)
3237
3223
  if(e.ctrlKey||e.altKey)return t
3238
3224
  switch(e.key){case Ar:this.emitChangeIfValueUpdated()
3239
3225
  break
3240
3226
  case Ir:case Mr:this.open&&this.valueUpdatedByInput&&(this.valueUpdatedByInput=!1)
3241
3227
  break
3242
3228
  default:return t}return t}focusoutHandler(e){const t=super.focusoutHandler(e)
3243
- return this.open=!1,this.emitChangeIfValueUpdated(),t}openChanged(){super.openChanged(),this.dropdownButton&&(this.dropdownButton.checked=this.open)}ariaLabelChanged(e,t){this.updateInputAriaLabel()}updateInputAriaLabel(){const e=this.shadowRoot?.querySelector(".selected-value")
3244
- this.ariaLabel?e?.setAttribute("aria-label",this.ariaLabel):e?.removeAttribute("aria-label")}emitChangeIfValueUpdated(){this.valueUpdatedByInput&&(this.value!==this.valueBeforeTextUpdate&&this.$emit("change"),this.valueUpdatedByInput=!1)}}e([ne],ag.prototype,"appearance",void 0),e([m],ag.prototype,"dropdownButton",void 0),e([ne({attribute:"error-text"})],ag.prototype,"errorText",void 0),e([ne({attribute:"error-visible",mode:"boolean"})],ag.prototype,"errorVisible",void 0)
3245
- const lg=ag.compose({baseName:"combobox",baseClass:Hi,template:(e,t)=>G`
3229
+ return this.open=!1,this.emitChangeIfValueUpdated(),t}openChanged(){super.openChanged(),this.dropdownButton&&(this.dropdownButton.checked=this.open)}regionChanged(e,t){this.region&&this.controlWrapper&&(this.region.anchorElement=this.controlWrapper)}controlWrapperChanged(e,t){this.region&&this.controlWrapper&&(this.region.anchorElement=this.controlWrapper)}ariaLabelChanged(e,t){this.updateInputAriaLabel()}maxHeightChanged(){this.updateListboxMaxHeightCssVariable()}updateListboxMaxHeightCssVariable(){this.listbox&&this.listbox.style.setProperty("--ni-private-select-max-height",`${this.maxHeight}px`)}updateInputAriaLabel(){const e=this.shadowRoot?.querySelector(".selected-value")
3230
+ this.ariaLabel?e?.setAttribute("aria-label",this.ariaLabel):e?.removeAttribute("aria-label")}emitChangeIfValueUpdated(){this.valueUpdatedByInput&&(this.value!==this.valueBeforeTextUpdate&&this.$emit("change"),this.valueUpdatedByInput=!1)}}e([ne],lg.prototype,"appearance",void 0),e([m],lg.prototype,"dropdownButton",void 0),e([ne({attribute:"error-text"})],lg.prototype,"errorText",void 0),e([ne({attribute:"error-visible",mode:"boolean"})],lg.prototype,"errorVisible",void 0),e([m],lg.prototype,"region",void 0),e([m],lg.prototype,"controlWrapper",void 0)
3231
+ const cg=lg.compose({baseName:"combobox",baseClass:Hi,template:(e,t)=>G`
3246
3232
  <template
3247
3233
  aria-disabled="${e=>e.ariaDisabled}"
3248
3234
  autocomplete="${e=>e.autocomplete}"
@@ -3253,7 +3239,7 @@ const lg=ag.compose({baseName:"combobox",baseClass:Hi,template:(e,t)=>G`
3253
3239
  @focusout="${(e,t)=>e.focusoutHandler(t.event)}"
3254
3240
  @keydown="${(e,t)=>e.keydownHandler(t.event)}"
3255
3241
  >
3256
- <div class="control" part="control">
3242
+ <div class="control" part="control" ${Re("controlWrapper")}>
3257
3243
  ${qe(0,t)}
3258
3244
  <slot name="control">
3259
3245
  <input
@@ -3282,21 +3268,32 @@ const lg=ag.compose({baseName:"combobox",baseClass:Hi,template:(e,t)=>G`
3282
3268
  </slot>
3283
3269
  ${Ze(0,t)}
3284
3270
  </div>
3285
- <div
3286
- class="listbox"
3287
- id="${e=>e.listboxId}"
3288
- part="listbox"
3289
- role="listbox"
3290
- ?disabled="${e=>e.disabled}"
3291
- ?hidden="${e=>!e.open}"
3292
- ${Re("listbox")}
3293
- >
3294
- <slot
3295
- ${Le({filter:Si.slottedOptionFilter,flatten:!0,property:"slottedOptions"})}
3296
- ></slot>
3297
- </div>
3271
+ <${gd}
3272
+ ${Re("region")}
3273
+ class="anchored-region"
3274
+ fixed-placement
3275
+ auto-update-mode="auto"
3276
+ vertical-default-position="${e=>e.positionAttribute===tg?"top":"bottom"}"
3277
+ vertical-positioning-mode="${e=>e.positionAttribute?"locktodefault":"dynamic"}"
3278
+ horizontal-default-position="center"
3279
+ horizontal-positioning-mode="locktodefault"
3280
+ horizontal-scaling="anchor"
3281
+ ?hidden="${e=>!e.open}">
3282
+ <div
3283
+ class="listbox"
3284
+ id="${e=>e.listboxId}"
3285
+ part="listbox"
3286
+ role="listbox"
3287
+ ?disabled="${e=>e.disabled}"
3288
+ ${Re("listbox")}
3289
+ >
3290
+ <slot
3291
+ ${Le({filter:e=>e instanceof HTMLElement&&Si.slottedOptionFilter(e),flatten:!0,property:"slottedOptions"})}
3292
+ ></slot>
3293
+ </div>
3294
+ </${gd}>
3298
3295
  </template>
3299
- `,styles:rg,shadowOptions:{delegatesFocus:!0},end:G`
3296
+ `,styles:ag,shadowOptions:{delegatesFocus:!0},end:G`
3300
3297
  <div class="end-slot-container">
3301
3298
  <${kp}
3302
3299
  severity="error"
@@ -3327,8 +3324,8 @@ const lg=ag.compose({baseName:"combobox",baseClass:Hi,template:(e,t)=>G`
3327
3324
  </div>
3328
3325
  ${Qp}
3329
3326
  `})
3330
- ro.getOrCreate().withPrefix("nimble").register(lg()),ro.tagFor(ag)
3331
- const cg=Symbol("user dismissed"),dg=fe`
3327
+ ro.getOrCreate().withPrefix("nimble").register(cg()),ro.tagFor(lg)
3328
+ const dg=Symbol("user dismissed"),hg=fe`
3332
3329
  ${xn("grid")}
3333
3330
 
3334
3331
  dialog {
@@ -3424,7 +3421,7 @@ const cg=Symbol("user dismissed"),dg=fe`
3424
3421
  dialog::backdrop {
3425
3422
  background: ${us};
3426
3423
  }
3427
- `)),hg=G`
3424
+ `)),ug=G`
3428
3425
  <template>
3429
3426
  <dialog
3430
3427
  ${Re("dialogElement")}
@@ -3452,12 +3449,12 @@ const cg=Symbol("user dismissed"),dg=fe`
3452
3449
  </dialog>
3453
3450
  </template>
3454
3451
  `
3455
- class ug extends Rt{constructor(){super(...arguments),this.preventDismiss=!1,this.headerHidden=!1,this.footerHidden=!1,this.footerIsEmpty=!0}get open(){return void 0!==this.resolveShow}async show(){if(this.open)throw new Error("Dialog is already open")
3452
+ class pg extends Rt{constructor(){super(...arguments),this.preventDismiss=!1,this.headerHidden=!1,this.footerHidden=!1,this.footerIsEmpty=!0}get open(){return void 0!==this.resolveShow}async show(){if(this.open)throw new Error("Dialog is already open")
3456
3453
  return this.dialogElement.showModal(),new Promise(((e,t)=>{this.resolveShow=e}))}close(e){if(!this.open)throw new Error("Dialog is not open")
3457
- this.dialogElement.close(),this.resolveShow(e),this.resolveShow=void 0}slottedFooterElementsChanged(e,t){this.footerIsEmpty=!t?.length}cancelHandler(e){return this.preventDismiss?e.preventDefault():(this.resolveShow(cg),this.resolveShow=void 0),!0}}ug.UserDismissed=cg,e([ne({attribute:"prevent-dismiss",mode:"boolean"})],ug.prototype,"preventDismiss",void 0),e([ne({attribute:"header-hidden",mode:"boolean"})],ug.prototype,"headerHidden",void 0),e([ne({attribute:"footer-hidden",mode:"boolean"})],ug.prototype,"footerHidden",void 0),e([m],ug.prototype,"footerIsEmpty",void 0),e([m],ug.prototype,"slottedFooterElements",void 0),Et(ug,ti)
3458
- const pg=ug.compose({baseName:"dialog",template:hg,styles:dg,baseClass:ug})
3459
- ro.getOrCreate().withPrefix("nimble").register(pg()),ro.tagFor(ug)
3460
- const gg=fe`
3454
+ this.dialogElement.close(),this.resolveShow(e),this.resolveShow=void 0}slottedFooterElementsChanged(e,t){this.footerIsEmpty=!t?.length}cancelHandler(e){return this.preventDismiss?e.preventDefault():(this.resolveShow(dg),this.resolveShow=void 0),!0}}pg.UserDismissed=dg,e([ne({attribute:"prevent-dismiss",mode:"boolean"})],pg.prototype,"preventDismiss",void 0),e([ne({attribute:"header-hidden",mode:"boolean"})],pg.prototype,"headerHidden",void 0),e([ne({attribute:"footer-hidden",mode:"boolean"})],pg.prototype,"footerHidden",void 0),e([m],pg.prototype,"footerIsEmpty",void 0),e([m],pg.prototype,"slottedFooterElements",void 0),Et(pg,ti)
3455
+ const gg=pg.compose({baseName:"dialog",template:ug,styles:hg,baseClass:pg})
3456
+ ro.getOrCreate().withPrefix("nimble").register(gg()),ro.tagFor(pg)
3457
+ const vg=fe`
3461
3458
  ${xn("block")}
3462
3459
 
3463
3460
  :host {
@@ -3599,7 +3596,7 @@ const gg=fe`
3599
3596
  dialog::backdrop {
3600
3597
  background: ${us};
3601
3598
  }
3602
- `)),vg=G`
3599
+ `)),mg=G`
3603
3600
  <dialog
3604
3601
  ${Re("dialog")}
3605
3602
  aria-label="${e=>e.ariaLabel}"
@@ -3609,174 +3606,174 @@ const gg=fe`
3609
3606
  <slot></slot>
3610
3607
  </div>
3611
3608
  </dialog>
3612
- `,mg="right"
3613
- class fg extends Rt{constructor(){super(...arguments),this.location=mg,this.preventDismiss=!1,this.closing=!1,this.animationEndHandlerFunction=()=>this.animationEndHandler()}get open(){return void 0!==this.resolveShow}async show(){if(this.open)throw new Error("Drawer is already open")
3609
+ `,fg="right"
3610
+ class bg extends Rt{constructor(){super(...arguments),this.location=fg,this.preventDismiss=!1,this.closing=!1,this.animationEndHandlerFunction=()=>this.animationEndHandler()}get open(){return void 0!==this.resolveShow}async show(){if(this.open)throw new Error("Drawer is already open")
3614
3611
  return this.openDialog(),new Promise(((e,t)=>{this.resolveShow=e}))}close(e){if(!this.open||this.closing)throw new Error("Drawer is not open or already closing")
3615
- this.closeReason=e,this.closeDialog()}cancelHandler(e){return e.preventDefault(),this.preventDismiss||(this.closeReason=cg,this.closeDialog()),!0}openDialog(){this.dialog.showModal(),this.triggerAnimation()}closeDialog(){this.closing=!0,this.triggerAnimation()}triggerAnimation(){this.dialog.classList.add("animating"),this.closing&&this.dialog.classList.add("closing"),this.dialog.addEventListener(Sr,this.animationEndHandlerFunction)}animationEndHandler(){this.dialog.removeEventListener(Sr,this.animationEndHandlerFunction),this.dialog.classList.remove("animating"),this.closing&&(this.dialog.classList.remove("closing"),this.dialog.close(),this.closing=!1,this.resolveShow(this.closeReason),this.resolveShow=void 0)}}fg.UserDismissed=cg,e([ne],fg.prototype,"location",void 0),e([ne({attribute:"prevent-dismiss",mode:"boolean"})],fg.prototype,"preventDismiss",void 0),Et(fg,ti)
3616
- const bg=fg.compose({baseName:"drawer",template:vg,styles:gg})
3617
- ro.getOrCreate().withPrefix("nimble").register(bg()),ro.tagFor(fg)
3618
- class wg extends yp{constructor(){super(Cd)}}$p("icon-add",wg)
3619
- const xg=ro.tagFor(wg)
3620
- class yg extends yp{constructor(){super(kd)}}$p("icon-arrow-down",yg)
3621
- const $g=ro.tagFor(yg)
3622
- class Cg extends yp{constructor(){super(Sd)}}$p("icon-arrow-down-right-and-arrow-up-left",Cg),ro.tagFor(Cg)
3623
- class kg extends yp{constructor(){super(Id)}}$p("icon-arrow-expander-left",kg),ro.tagFor(kg)
3624
- class Sg extends yp{constructor(){super(Rd)}}$p("icon-arrow-expander-right",Sg)
3625
- const _g=ro.tagFor(Sg)
3626
- class Ig extends yp{constructor(){super(Md)}}$p("icon-arrow-expander-up",Ig),ro.tagFor(Ig)
3627
- class Rg extends yp{constructor(){super(Ad)}}$p("icon-arrow-left-from-line",Rg),ro.tagFor(Rg)
3628
- class Mg extends yp{constructor(){super(Ed)}}$p("icon-arrow-partial-rotate-left",Mg),ro.tagFor(Mg)
3629
- class Ag extends yp{constructor(){super(Od)}}$p("icon-arrow-right-to-line",Ag),ro.tagFor(Ag)
3630
- class Eg extends yp{constructor(){super(Fd)}}$p("icon-arrow-rotate-right",Eg),ro.tagFor(Eg)
3631
- class Og extends yp{constructor(){super(Vd)}}$p("icon-arrow-u-rotate-left",Og),ro.tagFor(Og)
3632
- class Fg extends yp{constructor(){super(Hd)}}$p("icon-arrow-up",Fg)
3633
- const Vg=ro.tagFor(Fg)
3634
- class Hg extends yp{constructor(){super(Pd)}}$p("icon-arrow-up-left-and-arrow-down-right",Hg),ro.tagFor(Hg)
3635
- class Pg extends yp{constructor(){super(Td)}}$p("icon-arrows-maximize",Pg),ro.tagFor(Pg)
3636
- class Tg extends yp{constructor(){super(Dd)}}$p("icon-arrows-repeat",Tg),ro.tagFor(Tg)
3637
- class Dg extends yp{constructor(){super(Ld)}}$p("icon-bars",Dg),ro.tagFor(Dg)
3638
- class Lg extends yp{constructor(){super(zd)}}$p("icon-bell",Lg),ro.tagFor(Lg)
3639
- class zg extends yp{constructor(){super(Bd)}}$p("icon-bell-and-comment",zg),ro.tagFor(zg)
3640
- class Bg extends yp{constructor(){super(Nd)}}$p("icon-bell-circle",Bg),ro.tagFor(Bg)
3641
- class Ng extends yp{constructor(){super(Zd)}}$p("icon-bell-solid-circle",Ng),ro.tagFor(Ng)
3642
- class Zg extends yp{constructor(){super(qd)}}$p("icon-block-with-ribbon",Zg),ro.tagFor(Zg)
3643
- class qg extends yp{constructor(){super(Ud)}}$p("icon-book-magnifying-glass",qg),ro.tagFor(qg)
3644
- class Ug extends yp{constructor(){super(jd)}}$p("icon-calendar",Ug),ro.tagFor(Ug)
3645
- class jg extends yp{constructor(){super(Gd)}}$p("icon-chart-diagram",jg),ro.tagFor(jg)
3646
- class Gg extends yp{constructor(){super(Wd)}}$p("icon-chart-diagram-child-focus",Gg),ro.tagFor(Gg)
3647
- class Wg extends yp{constructor(){super(Kd)}}$p("icon-chart-diagram-parent-focus",Wg),ro.tagFor(Wg)
3648
- class Kg extends yp{constructor(){super(Xd)}}$p("icon-chart-diagram-parent-focus-two-child",Kg),ro.tagFor(Kg)
3649
- class Xg extends yp{constructor(){super(Yd)}}$p("icon-check",Xg),ro.tagFor(Xg)
3650
- class Yg extends yp{constructor(){super(Qd)}}$p("icon-check-dot",Yg),ro.tagFor(Yg)
3651
- class Qg extends yp{constructor(){super(Jd)}}$p("icon-check-large",Qg),ro.tagFor(Qg)
3652
- class Jg extends yp{constructor(){super(eh)}}$p("icon-circle",Jg),ro.tagFor(Jg)
3653
- class ev extends yp{constructor(){super(ih)}}$p("icon-circle-broken",ev),ro.tagFor(ev)
3654
- class tv extends yp{constructor(){super(oh)}}$p("icon-circle-check",tv),ro.tagFor(tv)
3655
- class iv extends yp{constructor(){super(th)}}$p("icon-circle-filled",iv),ro.tagFor(iv)
3656
- class ov extends yp{constructor(){super(nh)}}$p("icon-circle-partial-broken",ov),ro.tagFor(ov)
3657
- class nv extends yp{constructor(){super(sh)}}$p("icon-circle-slash",nv),ro.tagFor(nv)
3658
- class sv extends yp{constructor(){super(rh)}}$p("icon-circle-x",sv),ro.tagFor(sv)
3659
- class rv extends yp{constructor(){super(ah)}}$p("icon-clipboard",rv),ro.tagFor(rv)
3660
- class av extends yp{constructor(){super(lh)}}$p("icon-clock",av),ro.tagFor(av)
3661
- class lv extends yp{constructor(){super(ch)}}$p("icon-clock-cog",lv),ro.tagFor(lv)
3662
- class cv extends yp{constructor(){super(dh)}}$p("icon-clock-triangle",cv),ro.tagFor(cv)
3663
- class dv extends yp{constructor(){super(hh)}}$p("icon-clone",dv),ro.tagFor(dv)
3664
- class hv extends yp{constructor(){super(uh)}}$p("icon-cloud",hv),ro.tagFor(hv)
3665
- class uv extends yp{constructor(){super(ph)}}$p("icon-cloud-upload",uv),ro.tagFor(uv)
3666
- class pv extends yp{constructor(){super(gh)}}$p("icon-cloud-with-arrow",pv),ro.tagFor(pv)
3667
- class gv extends yp{constructor(){super(vh)}}$p("icon-cog",gv),ro.tagFor(gv)
3668
- class vv extends yp{constructor(){super(mh)}}$p("icon-cog-database",vv),ro.tagFor(vv)
3669
- class mv extends yp{constructor(){super(fh)}}$p("icon-cog-database-inset",mv),ro.tagFor(mv)
3670
- class fv extends yp{constructor(){super(bh)}}$p("icon-cog-small-cog",fv),ro.tagFor(fv)
3671
- class bv extends yp{constructor(){super(wh)}}$p("icon-cog-zoomed",bv),ro.tagFor(bv)
3672
- class wv extends yp{constructor(){super(xh)}}$p("icon-comment",wv),ro.tagFor(wv)
3673
- class xv extends yp{constructor(){super(yh)}}$p("icon-computer-and-monitor",xv),ro.tagFor(xv)
3674
- class yv extends yp{constructor(){super($h)}}$p("icon-copy",yv),ro.tagFor(yv)
3675
- class $v extends yp{constructor(){super(Ch)}}$p("icon-copy-text",$v),ro.tagFor($v)
3676
- class Cv extends yp{constructor(){super(kh)}}$p("icon-dashboard-builder",Cv),ro.tagFor(Cv)
3677
- class kv extends yp{constructor(){super(Sh)}}$p("icon-dashboard-builder-legend",kv),ro.tagFor(kv)
3678
- class Sv extends yp{constructor(){super(_h)}}$p("icon-dashboard-builder-templates",Sv),ro.tagFor(Sv)
3679
- class _v extends yp{constructor(){super(Ih)}}$p("icon-dashboard-builder-tile",_v),ro.tagFor(_v)
3680
- class Iv extends yp{constructor(){super(Rh)}}$p("icon-database",Iv),ro.tagFor(Iv)
3681
- class Rv extends yp{constructor(){super(Mh)}}$p("icon-database-check",Rv),ro.tagFor(Rv)
3682
- class Mv extends yp{constructor(){super(Ah)}}$p("icon-desktop",Mv),ro.tagFor(Mv)
3683
- class Av extends yp{constructor(){super(Eh)}}$p("icon-donut-chart",Av),ro.tagFor(Av)
3684
- class Ev extends yp{constructor(){super(Oh)}}$p("icon-dot-solid-dot-stroke",Ev),ro.tagFor(Ev)
3685
- class Ov extends yp{constructor(){super(Fh)}}$p("icon-dot-solid-dot-stroke-measurement",Ov),ro.tagFor(Ov)
3686
- class Fv extends yp{constructor(){super(Vh)}}$p("icon-down-right-from-square",Fv),ro.tagFor(Fv)
3687
- class Vv extends yp{constructor(){super(Hh)}}$p("icon-download",Vv),ro.tagFor(Vv)
3688
- class Hv extends yp{constructor(){super(Ph)}}$p("icon-electronic-chip-zoomed",Hv),ro.tagFor(Hv)
3689
- class Pv extends yp{constructor(){super(Dh)}}$p("icon-eye",Pv),ro.tagFor(Pv)
3690
- class Tv extends yp{constructor(){super(Lh)}}$p("icon-fancy-a",Tv),ro.tagFor(Tv)
3691
- class Dv extends yp{constructor(){super(zh)}}$p("icon-file",Dv),ro.tagFor(Dv)
3692
- class Lv extends yp{constructor(){super(Bh)}}$p("icon-file-arrow-curved-right",Lv),ro.tagFor(Lv)
3693
- class zv extends yp{constructor(){super(Nh)}}$p("icon-file-drawer",zv),ro.tagFor(zv)
3694
- class Bv extends yp{constructor(){super(Zh)}}$p("icon-file-search",Bv),ro.tagFor(Bv)
3695
- class Nv extends yp{constructor(){super(qh)}}$p("icon-filter",Nv),ro.tagFor(Nv)
3696
- class Zv extends yp{constructor(){super(Uh)}}$p("icon-floppy-disk",Zv),ro.tagFor(Zv)
3697
- class qv extends yp{constructor(){super(jh)}}$p("icon-floppy-disk-checkmark",qv),ro.tagFor(qv)
3698
- class Uv extends yp{constructor(){super(Gh)}}$p("icon-floppy-disk-star-arrow-right",Uv),ro.tagFor(Uv)
3699
- class jv extends yp{constructor(){super(Wh)}}$p("icon-floppy-disk-three-dots",jv),ro.tagFor(jv)
3700
- class Gv extends yp{constructor(){super(Kh)}}$p("icon-folder",Gv),ro.tagFor(Gv)
3701
- class Wv extends yp{constructor(){super(Xh)}}$p("icon-folder-open",Wv),ro.tagFor(Wv)
3702
- class Kv extends yp{constructor(){super(Yh)}}$p("icon-forward-slash",Kv),ro.tagFor(Kv)
3703
- class Xv extends yp{constructor(){super(Qh)}}$p("icon-four-dots-square",Xv),ro.tagFor(Xv)
3704
- class Yv extends yp{constructor(){super(Jh)}}$p("icon-function",Yv),ro.tagFor(Yv)
3705
- class Qv extends yp{constructor(){super(eu)}}$p("icon-gauge-simple",Qv),ro.tagFor(Qv)
3706
- class Jv extends yp{constructor(){super(tu)}}$p("icon-grid-three-by-three",Jv),ro.tagFor(Jv)
3707
- class em extends yp{constructor(){super(iu)}}$p("icon-grid-two-by-two",em),ro.tagFor(em)
3708
- class tm extends yp{constructor(){super(ou)}}$p("icon-hammer",tm),ro.tagFor(tm)
3709
- class im extends yp{constructor(){super(nu)}}$p("icon-hashtag",im),ro.tagFor(im)
3710
- class om extends yp{constructor(){super(su)}}$p("icon-home",om),ro.tagFor(om)
3711
- class nm extends yp{constructor(){super(ru)}}$p("icon-hourglass",nm),ro.tagFor(nm)
3712
- class sm extends yp{constructor(){super(au)}}$p("icon-indeterminant-checkbox",sm),ro.tagFor(sm)
3713
- class rm extends yp{constructor(){super(cu)}}$p("icon-info-circle",rm),ro.tagFor(rm)
3714
- class am extends yp{constructor(){super(du)}}$p("icon-key",am),ro.tagFor(am)
3715
- class lm extends yp{constructor(){super(hu)}}$p("icon-laptop",lm),ro.tagFor(lm)
3716
- class cm extends yp{constructor(){super(uu)}}$p("icon-layer-group",cm),ro.tagFor(cm)
3717
- class dm extends yp{constructor(){super(pu)}}$p("icon-lightning-bolt",dm),ro.tagFor(dm)
3718
- class hm extends yp{constructor(){super(gu)}}$p("icon-link",hm),ro.tagFor(hm)
3719
- class um extends yp{constructor(){super(vu)}}$p("icon-link-cancel",um),ro.tagFor(um)
3720
- class pm extends yp{constructor(){super(mu)}}$p("icon-list",pm),ro.tagFor(pm)
3721
- class gm extends yp{constructor(){super(fu)}}$p("icon-list-tree",gm),ro.tagFor(gm)
3722
- class vm extends yp{constructor(){super(bu)}}$p("icon-list-tree-database",vm),ro.tagFor(vm)
3723
- class mm extends yp{constructor(){super(wu)}}$p("icon-lock",mm),ro.tagFor(mm)
3724
- class fm extends yp{constructor(){super(xu)}}$p("icon-magnifying-glass",fm),ro.tagFor(fm)
3725
- class bm extends yp{constructor(){super(yu)}}$p("icon-markdown",bm),ro.tagFor(bm)
3726
- class wm extends yp{constructor(){super($u)}}$p("icon-minus",wm),ro.tagFor(wm)
3727
- class xm extends yp{constructor(){super(Cu)}}$p("icon-minus-wide",xm)
3728
- const ym=ro.tagFor(xm)
3729
- class $m extends yp{constructor(){super(ku)}}$p("icon-mobile",$m),ro.tagFor($m)
3730
- class Cm extends yp{constructor(){super(Su)}}$p("icon-notebook",Cm),ro.tagFor(Cm)
3731
- class km extends yp{constructor(){super(_u)}}$p("icon-paste",km),ro.tagFor(km)
3732
- class Sm extends yp{constructor(){super(Iu)}}$p("icon-pencil",Sm),ro.tagFor(Sm)
3733
- class _m extends yp{constructor(){super(Ru)}}$p("icon-pot-with-lid",_m),ro.tagFor(_m)
3734
- class Im extends yp{constructor(){super(Mu)}}$p("icon-question",Im),ro.tagFor(Im)
3735
- class Rm extends yp{constructor(){super(Au)}}$p("icon-running-arrow",Rm),ro.tagFor(Rm)
3736
- class Mm extends yp{constructor(){super(Eu)}}$p("icon-server",Mm),ro.tagFor(Mm)
3737
- class Am extends yp{constructor(){super(Ou)}}$p("icon-share-nodes",Am),ro.tagFor(Am)
3738
- class Em extends yp{constructor(){super(Fu)}}$p("icon-shield-check",Em),ro.tagFor(Em)
3739
- class Om extends yp{constructor(){super(Vu)}}$p("icon-shield-xmark",Om),ro.tagFor(Om)
3740
- class Fm extends yp{constructor(){super(Hu)}}$p("icon-signal-bars",Fm),ro.tagFor(Fm)
3741
- class Vm extends yp{constructor(){super(Pu)}}$p("icon-sine-graph",Vm),ro.tagFor(Vm)
3742
- class Hm extends yp{constructor(){super(Tu)}}$p("icon-skip-arrow",Hm),ro.tagFor(Hm)
3743
- class Pm extends yp{constructor(){super(Du)}}$p("icon-spinner",Pm),ro.tagFor(Pm)
3744
- class Tm extends yp{constructor(){super(Lu)}}$p("icon-square-check",Tm),ro.tagFor(Tm)
3745
- class Dm extends yp{constructor(){super(zu)}}$p("icon-square-t",Dm),ro.tagFor(Dm)
3746
- class Lm extends yp{constructor(){super(Bu)}}$p("icon-t",Lm),ro.tagFor(Lm)
3747
- class zm extends yp{constructor(){super(Nu)}}$p("icon-tablet",zm),ro.tagFor(zm)
3748
- class Bm extends yp{constructor(){super(Zu)}}$p("icon-tag",Bm),ro.tagFor(Bm)
3749
- class Nm extends yp{constructor(){super(qu)}}$p("icon-tags",Nm),ro.tagFor(Nm)
3750
- class Zm extends yp{constructor(){super(Uu)}}$p("icon-target-crosshairs",Zm),ro.tagFor(Zm)
3751
- class qm extends yp{constructor(){super(ju)}}$p("icon-target-crosshairs-progress",qm),ro.tagFor(qm)
3752
- class Um extends yp{constructor(){super(Gu)}}$p("icon-three-dots-line",Um)
3753
- const jm=ro.tagFor(Um)
3754
- class Gm extends yp{constructor(){super(Wu)}}$p("icon-three-vertical-lines",Gm),ro.tagFor(Gm)
3755
- class Wm extends yp{constructor(){super(Ku)}}$p("icon-thumbtack",Wm),ro.tagFor(Wm)
3756
- class Km extends yp{constructor(){super(Xu)}}$p("icon-tile-size",Km),ro.tagFor(Km)
3757
- class Xm extends yp{constructor(){super(Yu)}}$p("icon-times",Xm),ro.tagFor(Xm)
3758
- class Ym extends yp{constructor(){super(Qu)}}$p("icon-trash",Ym),ro.tagFor(Ym)
3759
- class Qm extends yp{constructor(){super(Ju)}}$p("icon-triangle",Qm),ro.tagFor(Qm)
3760
- class Jm extends yp{constructor(){super(tp)}}$p("icon-triangle-two-lines-horizontal",Jm)
3761
- const ef=ro.tagFor(Jm)
3762
- class tf extends yp{constructor(){super(ip)}}$p("icon-true-false-rectangle",tf),ro.tagFor(tf)
3763
- class of extends yp{constructor(){super(op)}}$p("icon-two-squares-in-brackets",of)
3764
- const nf=ro.tagFor(of)
3765
- class sf extends yp{constructor(){super(np)}}$p("icon-two-triangles-between-lines",sf),ro.tagFor(sf)
3766
- class rf extends yp{constructor(){super(sp)}}$p("icon-unlink",rf),ro.tagFor(rf)
3767
- class af extends yp{constructor(){super(rp)}}$p("icon-unlock",af),ro.tagFor(af)
3768
- class lf extends yp{constructor(){super(ap)}}$p("icon-up-right-from-square",lf),ro.tagFor(lf)
3769
- class cf extends yp{constructor(){super(lp)}}$p("icon-upload",cf),ro.tagFor(cf)
3770
- class df extends yp{constructor(){super(cp)}}$p("icon-user",df),ro.tagFor(df)
3771
- class hf extends yp{constructor(){super(dp)}}$p("icon-watch",hf),ro.tagFor(hf)
3772
- class uf extends yp{constructor(){super(hp)}}$p("icon-waveform",uf),ro.tagFor(uf)
3773
- class pf extends yp{constructor(){super(up)}}$p("icon-webvi-custom",pf),ro.tagFor(pf)
3774
- class gf extends yp{constructor(){super(pp)}}$p("icon-webvi-host",gf),ro.tagFor(gf)
3775
- class vf extends yp{constructor(){super(gp)}}$p("icon-window-code",vf),ro.tagFor(vf)
3776
- class mf extends yp{constructor(){super(vp)}}$p("icon-window-text",mf),ro.tagFor(mf)
3777
- class ff extends yp{constructor(){super(mp)}}$p("icon-wrench-hammer",ff),ro.tagFor(ff)
3778
- class bf extends yp{constructor(){super(bp)}}$p("icon-xmark-check",bf),ro.tagFor(bf)
3779
- const wf=fe`
3612
+ this.closeReason=e,this.closeDialog()}cancelHandler(e){return e.preventDefault(),this.preventDismiss||(this.closeReason=dg,this.closeDialog()),!0}openDialog(){this.dialog.showModal(),this.triggerAnimation()}closeDialog(){this.closing=!0,this.triggerAnimation()}triggerAnimation(){this.dialog.classList.add("animating"),this.closing&&this.dialog.classList.add("closing"),this.dialog.addEventListener(Sr,this.animationEndHandlerFunction)}animationEndHandler(){this.dialog.removeEventListener(Sr,this.animationEndHandlerFunction),this.dialog.classList.remove("animating"),this.closing&&(this.dialog.classList.remove("closing"),this.dialog.close(),this.closing=!1,this.resolveShow(this.closeReason),this.resolveShow=void 0)}}bg.UserDismissed=dg,e([ne],bg.prototype,"location",void 0),e([ne({attribute:"prevent-dismiss",mode:"boolean"})],bg.prototype,"preventDismiss",void 0),Et(bg,ti)
3613
+ const wg=bg.compose({baseName:"drawer",template:mg,styles:vg})
3614
+ ro.getOrCreate().withPrefix("nimble").register(wg()),ro.tagFor(bg)
3615
+ class xg extends yp{constructor(){super(Cd)}}$p("icon-add",xg)
3616
+ const yg=ro.tagFor(xg)
3617
+ class $g extends yp{constructor(){super(kd)}}$p("icon-arrow-down",$g)
3618
+ const Cg=ro.tagFor($g)
3619
+ class kg extends yp{constructor(){super(Sd)}}$p("icon-arrow-down-right-and-arrow-up-left",kg),ro.tagFor(kg)
3620
+ class Sg extends yp{constructor(){super(Id)}}$p("icon-arrow-expander-left",Sg),ro.tagFor(Sg)
3621
+ class _g extends yp{constructor(){super(Rd)}}$p("icon-arrow-expander-right",_g)
3622
+ const Ig=ro.tagFor(_g)
3623
+ class Rg extends yp{constructor(){super(Md)}}$p("icon-arrow-expander-up",Rg),ro.tagFor(Rg)
3624
+ class Mg extends yp{constructor(){super(Ad)}}$p("icon-arrow-left-from-line",Mg),ro.tagFor(Mg)
3625
+ class Ag extends yp{constructor(){super(Ed)}}$p("icon-arrow-partial-rotate-left",Ag),ro.tagFor(Ag)
3626
+ class Eg extends yp{constructor(){super(Od)}}$p("icon-arrow-right-to-line",Eg),ro.tagFor(Eg)
3627
+ class Og extends yp{constructor(){super(Fd)}}$p("icon-arrow-rotate-right",Og),ro.tagFor(Og)
3628
+ class Fg extends yp{constructor(){super(Vd)}}$p("icon-arrow-u-rotate-left",Fg),ro.tagFor(Fg)
3629
+ class Vg extends yp{constructor(){super(Hd)}}$p("icon-arrow-up",Vg)
3630
+ const Hg=ro.tagFor(Vg)
3631
+ class Pg extends yp{constructor(){super(Pd)}}$p("icon-arrow-up-left-and-arrow-down-right",Pg),ro.tagFor(Pg)
3632
+ class Tg extends yp{constructor(){super(Td)}}$p("icon-arrows-maximize",Tg),ro.tagFor(Tg)
3633
+ class Dg extends yp{constructor(){super(Dd)}}$p("icon-arrows-repeat",Dg),ro.tagFor(Dg)
3634
+ class Lg extends yp{constructor(){super(Ld)}}$p("icon-bars",Lg),ro.tagFor(Lg)
3635
+ class zg extends yp{constructor(){super(zd)}}$p("icon-bell",zg),ro.tagFor(zg)
3636
+ class Bg extends yp{constructor(){super(Bd)}}$p("icon-bell-and-comment",Bg),ro.tagFor(Bg)
3637
+ class Ng extends yp{constructor(){super(Nd)}}$p("icon-bell-circle",Ng),ro.tagFor(Ng)
3638
+ class Zg extends yp{constructor(){super(Zd)}}$p("icon-bell-solid-circle",Zg),ro.tagFor(Zg)
3639
+ class qg extends yp{constructor(){super(qd)}}$p("icon-block-with-ribbon",qg),ro.tagFor(qg)
3640
+ class Ug extends yp{constructor(){super(Ud)}}$p("icon-book-magnifying-glass",Ug),ro.tagFor(Ug)
3641
+ class jg extends yp{constructor(){super(jd)}}$p("icon-calendar",jg),ro.tagFor(jg)
3642
+ class Gg extends yp{constructor(){super(Gd)}}$p("icon-chart-diagram",Gg),ro.tagFor(Gg)
3643
+ class Wg extends yp{constructor(){super(Wd)}}$p("icon-chart-diagram-child-focus",Wg),ro.tagFor(Wg)
3644
+ class Kg extends yp{constructor(){super(Kd)}}$p("icon-chart-diagram-parent-focus",Kg),ro.tagFor(Kg)
3645
+ class Xg extends yp{constructor(){super(Xd)}}$p("icon-chart-diagram-parent-focus-two-child",Xg),ro.tagFor(Xg)
3646
+ class Yg extends yp{constructor(){super(Yd)}}$p("icon-check",Yg),ro.tagFor(Yg)
3647
+ class Qg extends yp{constructor(){super(Qd)}}$p("icon-check-dot",Qg),ro.tagFor(Qg)
3648
+ class Jg extends yp{constructor(){super(Jd)}}$p("icon-check-large",Jg),ro.tagFor(Jg)
3649
+ class ev extends yp{constructor(){super(eh)}}$p("icon-circle",ev),ro.tagFor(ev)
3650
+ class tv extends yp{constructor(){super(ih)}}$p("icon-circle-broken",tv),ro.tagFor(tv)
3651
+ class iv extends yp{constructor(){super(oh)}}$p("icon-circle-check",iv),ro.tagFor(iv)
3652
+ class ov extends yp{constructor(){super(th)}}$p("icon-circle-filled",ov),ro.tagFor(ov)
3653
+ class nv extends yp{constructor(){super(nh)}}$p("icon-circle-partial-broken",nv),ro.tagFor(nv)
3654
+ class sv extends yp{constructor(){super(sh)}}$p("icon-circle-slash",sv),ro.tagFor(sv)
3655
+ class rv extends yp{constructor(){super(rh)}}$p("icon-circle-x",rv),ro.tagFor(rv)
3656
+ class av extends yp{constructor(){super(ah)}}$p("icon-clipboard",av),ro.tagFor(av)
3657
+ class lv extends yp{constructor(){super(lh)}}$p("icon-clock",lv),ro.tagFor(lv)
3658
+ class cv extends yp{constructor(){super(ch)}}$p("icon-clock-cog",cv),ro.tagFor(cv)
3659
+ class dv extends yp{constructor(){super(dh)}}$p("icon-clock-triangle",dv),ro.tagFor(dv)
3660
+ class hv extends yp{constructor(){super(hh)}}$p("icon-clone",hv),ro.tagFor(hv)
3661
+ class uv extends yp{constructor(){super(uh)}}$p("icon-cloud",uv),ro.tagFor(uv)
3662
+ class pv extends yp{constructor(){super(ph)}}$p("icon-cloud-upload",pv),ro.tagFor(pv)
3663
+ class gv extends yp{constructor(){super(gh)}}$p("icon-cloud-with-arrow",gv),ro.tagFor(gv)
3664
+ class vv extends yp{constructor(){super(vh)}}$p("icon-cog",vv),ro.tagFor(vv)
3665
+ class mv extends yp{constructor(){super(mh)}}$p("icon-cog-database",mv),ro.tagFor(mv)
3666
+ class fv extends yp{constructor(){super(fh)}}$p("icon-cog-database-inset",fv),ro.tagFor(fv)
3667
+ class bv extends yp{constructor(){super(bh)}}$p("icon-cog-small-cog",bv),ro.tagFor(bv)
3668
+ class wv extends yp{constructor(){super(wh)}}$p("icon-cog-zoomed",wv),ro.tagFor(wv)
3669
+ class xv extends yp{constructor(){super(xh)}}$p("icon-comment",xv),ro.tagFor(xv)
3670
+ class yv extends yp{constructor(){super(yh)}}$p("icon-computer-and-monitor",yv),ro.tagFor(yv)
3671
+ class $v extends yp{constructor(){super($h)}}$p("icon-copy",$v),ro.tagFor($v)
3672
+ class Cv extends yp{constructor(){super(Ch)}}$p("icon-copy-text",Cv),ro.tagFor(Cv)
3673
+ class kv extends yp{constructor(){super(kh)}}$p("icon-dashboard-builder",kv),ro.tagFor(kv)
3674
+ class Sv extends yp{constructor(){super(Sh)}}$p("icon-dashboard-builder-legend",Sv),ro.tagFor(Sv)
3675
+ class _v extends yp{constructor(){super(_h)}}$p("icon-dashboard-builder-templates",_v),ro.tagFor(_v)
3676
+ class Iv extends yp{constructor(){super(Ih)}}$p("icon-dashboard-builder-tile",Iv),ro.tagFor(Iv)
3677
+ class Rv extends yp{constructor(){super(Rh)}}$p("icon-database",Rv),ro.tagFor(Rv)
3678
+ class Mv extends yp{constructor(){super(Mh)}}$p("icon-database-check",Mv),ro.tagFor(Mv)
3679
+ class Av extends yp{constructor(){super(Ah)}}$p("icon-desktop",Av),ro.tagFor(Av)
3680
+ class Ev extends yp{constructor(){super(Eh)}}$p("icon-donut-chart",Ev),ro.tagFor(Ev)
3681
+ class Ov extends yp{constructor(){super(Oh)}}$p("icon-dot-solid-dot-stroke",Ov),ro.tagFor(Ov)
3682
+ class Fv extends yp{constructor(){super(Fh)}}$p("icon-dot-solid-dot-stroke-measurement",Fv),ro.tagFor(Fv)
3683
+ class Vv extends yp{constructor(){super(Vh)}}$p("icon-down-right-from-square",Vv),ro.tagFor(Vv)
3684
+ class Hv extends yp{constructor(){super(Hh)}}$p("icon-download",Hv),ro.tagFor(Hv)
3685
+ class Pv extends yp{constructor(){super(Ph)}}$p("icon-electronic-chip-zoomed",Pv),ro.tagFor(Pv)
3686
+ class Tv extends yp{constructor(){super(Dh)}}$p("icon-eye",Tv),ro.tagFor(Tv)
3687
+ class Dv extends yp{constructor(){super(Lh)}}$p("icon-fancy-a",Dv),ro.tagFor(Dv)
3688
+ class Lv extends yp{constructor(){super(zh)}}$p("icon-file",Lv),ro.tagFor(Lv)
3689
+ class zv extends yp{constructor(){super(Bh)}}$p("icon-file-arrow-curved-right",zv),ro.tagFor(zv)
3690
+ class Bv extends yp{constructor(){super(Nh)}}$p("icon-file-drawer",Bv),ro.tagFor(Bv)
3691
+ class Nv extends yp{constructor(){super(Zh)}}$p("icon-file-search",Nv),ro.tagFor(Nv)
3692
+ class Zv extends yp{constructor(){super(qh)}}$p("icon-filter",Zv),ro.tagFor(Zv)
3693
+ class qv extends yp{constructor(){super(Uh)}}$p("icon-floppy-disk",qv),ro.tagFor(qv)
3694
+ class Uv extends yp{constructor(){super(jh)}}$p("icon-floppy-disk-checkmark",Uv),ro.tagFor(Uv)
3695
+ class jv extends yp{constructor(){super(Gh)}}$p("icon-floppy-disk-star-arrow-right",jv),ro.tagFor(jv)
3696
+ class Gv extends yp{constructor(){super(Wh)}}$p("icon-floppy-disk-three-dots",Gv),ro.tagFor(Gv)
3697
+ class Wv extends yp{constructor(){super(Kh)}}$p("icon-folder",Wv),ro.tagFor(Wv)
3698
+ class Kv extends yp{constructor(){super(Xh)}}$p("icon-folder-open",Kv),ro.tagFor(Kv)
3699
+ class Xv extends yp{constructor(){super(Yh)}}$p("icon-forward-slash",Xv),ro.tagFor(Xv)
3700
+ class Yv extends yp{constructor(){super(Qh)}}$p("icon-four-dots-square",Yv),ro.tagFor(Yv)
3701
+ class Qv extends yp{constructor(){super(Jh)}}$p("icon-function",Qv),ro.tagFor(Qv)
3702
+ class Jv extends yp{constructor(){super(eu)}}$p("icon-gauge-simple",Jv),ro.tagFor(Jv)
3703
+ class em extends yp{constructor(){super(tu)}}$p("icon-grid-three-by-three",em),ro.tagFor(em)
3704
+ class tm extends yp{constructor(){super(iu)}}$p("icon-grid-two-by-two",tm),ro.tagFor(tm)
3705
+ class im extends yp{constructor(){super(ou)}}$p("icon-hammer",im),ro.tagFor(im)
3706
+ class om extends yp{constructor(){super(nu)}}$p("icon-hashtag",om),ro.tagFor(om)
3707
+ class nm extends yp{constructor(){super(su)}}$p("icon-home",nm),ro.tagFor(nm)
3708
+ class sm extends yp{constructor(){super(ru)}}$p("icon-hourglass",sm),ro.tagFor(sm)
3709
+ class rm extends yp{constructor(){super(au)}}$p("icon-indeterminant-checkbox",rm),ro.tagFor(rm)
3710
+ class am extends yp{constructor(){super(cu)}}$p("icon-info-circle",am),ro.tagFor(am)
3711
+ class lm extends yp{constructor(){super(du)}}$p("icon-key",lm),ro.tagFor(lm)
3712
+ class cm extends yp{constructor(){super(hu)}}$p("icon-laptop",cm),ro.tagFor(cm)
3713
+ class dm extends yp{constructor(){super(uu)}}$p("icon-layer-group",dm),ro.tagFor(dm)
3714
+ class hm extends yp{constructor(){super(pu)}}$p("icon-lightning-bolt",hm),ro.tagFor(hm)
3715
+ class um extends yp{constructor(){super(gu)}}$p("icon-link",um),ro.tagFor(um)
3716
+ class pm extends yp{constructor(){super(vu)}}$p("icon-link-cancel",pm),ro.tagFor(pm)
3717
+ class gm extends yp{constructor(){super(mu)}}$p("icon-list",gm),ro.tagFor(gm)
3718
+ class vm extends yp{constructor(){super(fu)}}$p("icon-list-tree",vm),ro.tagFor(vm)
3719
+ class mm extends yp{constructor(){super(bu)}}$p("icon-list-tree-database",mm),ro.tagFor(mm)
3720
+ class fm extends yp{constructor(){super(wu)}}$p("icon-lock",fm),ro.tagFor(fm)
3721
+ class bm extends yp{constructor(){super(xu)}}$p("icon-magnifying-glass",bm),ro.tagFor(bm)
3722
+ class wm extends yp{constructor(){super(yu)}}$p("icon-markdown",wm),ro.tagFor(wm)
3723
+ class xm extends yp{constructor(){super($u)}}$p("icon-minus",xm),ro.tagFor(xm)
3724
+ class ym extends yp{constructor(){super(Cu)}}$p("icon-minus-wide",ym)
3725
+ const $m=ro.tagFor(ym)
3726
+ class Cm extends yp{constructor(){super(ku)}}$p("icon-mobile",Cm),ro.tagFor(Cm)
3727
+ class km extends yp{constructor(){super(Su)}}$p("icon-notebook",km),ro.tagFor(km)
3728
+ class Sm extends yp{constructor(){super(_u)}}$p("icon-paste",Sm),ro.tagFor(Sm)
3729
+ class _m extends yp{constructor(){super(Iu)}}$p("icon-pencil",_m),ro.tagFor(_m)
3730
+ class Im extends yp{constructor(){super(Ru)}}$p("icon-pot-with-lid",Im),ro.tagFor(Im)
3731
+ class Rm extends yp{constructor(){super(Mu)}}$p("icon-question",Rm),ro.tagFor(Rm)
3732
+ class Mm extends yp{constructor(){super(Au)}}$p("icon-running-arrow",Mm),ro.tagFor(Mm)
3733
+ class Am extends yp{constructor(){super(Eu)}}$p("icon-server",Am),ro.tagFor(Am)
3734
+ class Em extends yp{constructor(){super(Ou)}}$p("icon-share-nodes",Em),ro.tagFor(Em)
3735
+ class Om extends yp{constructor(){super(Fu)}}$p("icon-shield-check",Om),ro.tagFor(Om)
3736
+ class Fm extends yp{constructor(){super(Vu)}}$p("icon-shield-xmark",Fm),ro.tagFor(Fm)
3737
+ class Vm extends yp{constructor(){super(Hu)}}$p("icon-signal-bars",Vm),ro.tagFor(Vm)
3738
+ class Hm extends yp{constructor(){super(Pu)}}$p("icon-sine-graph",Hm),ro.tagFor(Hm)
3739
+ class Pm extends yp{constructor(){super(Tu)}}$p("icon-skip-arrow",Pm),ro.tagFor(Pm)
3740
+ class Tm extends yp{constructor(){super(Du)}}$p("icon-spinner",Tm),ro.tagFor(Tm)
3741
+ class Dm extends yp{constructor(){super(Lu)}}$p("icon-square-check",Dm),ro.tagFor(Dm)
3742
+ class Lm extends yp{constructor(){super(zu)}}$p("icon-square-t",Lm),ro.tagFor(Lm)
3743
+ class zm extends yp{constructor(){super(Bu)}}$p("icon-t",zm),ro.tagFor(zm)
3744
+ class Bm extends yp{constructor(){super(Nu)}}$p("icon-tablet",Bm),ro.tagFor(Bm)
3745
+ class Nm extends yp{constructor(){super(Zu)}}$p("icon-tag",Nm),ro.tagFor(Nm)
3746
+ class Zm extends yp{constructor(){super(qu)}}$p("icon-tags",Zm),ro.tagFor(Zm)
3747
+ class qm extends yp{constructor(){super(Uu)}}$p("icon-target-crosshairs",qm),ro.tagFor(qm)
3748
+ class Um extends yp{constructor(){super(ju)}}$p("icon-target-crosshairs-progress",Um),ro.tagFor(Um)
3749
+ class jm extends yp{constructor(){super(Gu)}}$p("icon-three-dots-line",jm)
3750
+ const Gm=ro.tagFor(jm)
3751
+ class Wm extends yp{constructor(){super(Wu)}}$p("icon-three-vertical-lines",Wm),ro.tagFor(Wm)
3752
+ class Km extends yp{constructor(){super(Ku)}}$p("icon-thumbtack",Km),ro.tagFor(Km)
3753
+ class Xm extends yp{constructor(){super(Xu)}}$p("icon-tile-size",Xm),ro.tagFor(Xm)
3754
+ class Ym extends yp{constructor(){super(Yu)}}$p("icon-times",Ym),ro.tagFor(Ym)
3755
+ class Qm extends yp{constructor(){super(Qu)}}$p("icon-trash",Qm),ro.tagFor(Qm)
3756
+ class Jm extends yp{constructor(){super(Ju)}}$p("icon-triangle",Jm),ro.tagFor(Jm)
3757
+ class ef extends yp{constructor(){super(tp)}}$p("icon-triangle-two-lines-horizontal",ef)
3758
+ const tf=ro.tagFor(ef)
3759
+ class of extends yp{constructor(){super(ip)}}$p("icon-true-false-rectangle",of),ro.tagFor(of)
3760
+ class nf extends yp{constructor(){super(op)}}$p("icon-two-squares-in-brackets",nf)
3761
+ const sf=ro.tagFor(nf)
3762
+ class rf extends yp{constructor(){super(np)}}$p("icon-two-triangles-between-lines",rf),ro.tagFor(rf)
3763
+ class af extends yp{constructor(){super(sp)}}$p("icon-unlink",af),ro.tagFor(af)
3764
+ class lf extends yp{constructor(){super(rp)}}$p("icon-unlock",lf),ro.tagFor(lf)
3765
+ class cf extends yp{constructor(){super(ap)}}$p("icon-up-right-from-square",cf),ro.tagFor(cf)
3766
+ class df extends yp{constructor(){super(lp)}}$p("icon-upload",df),ro.tagFor(df)
3767
+ class hf extends yp{constructor(){super(cp)}}$p("icon-user",hf),ro.tagFor(hf)
3768
+ class uf extends yp{constructor(){super(dp)}}$p("icon-watch",uf),ro.tagFor(uf)
3769
+ class pf extends yp{constructor(){super(hp)}}$p("icon-waveform",pf),ro.tagFor(pf)
3770
+ class gf extends yp{constructor(){super(up)}}$p("icon-webvi-custom",gf),ro.tagFor(gf)
3771
+ class vf extends yp{constructor(){super(pp)}}$p("icon-webvi-host",vf),ro.tagFor(vf)
3772
+ class mf extends yp{constructor(){super(gp)}}$p("icon-window-code",mf),ro.tagFor(mf)
3773
+ class ff extends yp{constructor(){super(vp)}}$p("icon-window-text",ff),ro.tagFor(ff)
3774
+ class bf extends yp{constructor(){super(mp)}}$p("icon-wrench-hammer",bf),ro.tagFor(bf)
3775
+ class wf extends yp{constructor(){super(bp)}}$p("icon-xmark-check",wf),ro.tagFor(wf)
3776
+ const xf=fe`
3780
3777
  ${xn("flex")}
3781
3778
 
3782
3779
  :host {
@@ -3831,7 +3828,7 @@ const wf=fe`
3831
3828
  outline: none;
3832
3829
  }
3833
3830
  `
3834
- class xf extends Ci{get value(){return super.value}set value(e){super.value=`${e}`,this.$fastController.isConnected&&this.setAttribute("value",this.value)}connectedCallback(){super.connectedCallback(),this.setAttribute("value",this.value)}}const yf=xf.compose({baseName:"list-option",baseClass:Ci,template:(e,t)=>G`
3831
+ class yf extends Ci{get value(){return super.value}set value(e){super.value=`${e}`,this.$fastController.isConnected&&this.setAttribute("value",this.value)}connectedCallback(){super.connectedCallback(),this.setAttribute("value",this.value)}}const $f=yf.compose({baseName:"list-option",baseClass:Ci,template:(e,t)=>G`
3835
3832
  <template
3836
3833
  aria-checked="${e=>e.ariaChecked}"
3837
3834
  aria-disabled="${e=>e.ariaDisabled}"
@@ -3847,9 +3844,9 @@ class xf extends Ci{get value(){return super.value}set value(e){super.value=`${e
3847
3844
  </span>
3848
3845
  ${Ze(0,t)}
3849
3846
  </template>
3850
- `,styles:wf})
3851
- ro.getOrCreate().withPrefix("nimble").register(yf()),ro.tagFor(xf)
3852
- const $f=fe`
3847
+ `,styles:xf})
3848
+ ro.getOrCreate().withPrefix("nimble").register($f()),ro.tagFor(yf)
3849
+ const Cf=fe`
3853
3850
  ${xn("grid")}
3854
3851
 
3855
3852
  :host {
@@ -3897,7 +3894,7 @@ const $f=fe`
3897
3894
  background: ${cs(jn,.15)};
3898
3895
  }
3899
3896
  `))
3900
- class Cf extends Co{}const kf=Cf.compose({baseName:"menu",baseClass:Co,template:(e,t)=>G`
3897
+ class kf extends Co{}const Sf=kf.compose({baseName:"menu",baseClass:Co,template:(e,t)=>G`
3901
3898
  <template
3902
3899
  slot="${e=>e.slot?e.slot:e.isNestedMenu()?"submenu":void 0}"
3903
3900
  role="menu"
@@ -3906,9 +3903,9 @@ class Cf extends Co{}const kf=Cf.compose({baseName:"menu",baseClass:Co,template:
3906
3903
  >
3907
3904
  <slot ${Le("items")}></slot>
3908
3905
  </template>
3909
- `,styles:$f})
3910
- ro.getOrCreate().withPrefix("nimble").register(kf()),ro.tagFor(Cf)
3911
- const Sf=fe`
3906
+ `,styles:Cf})
3907
+ ro.getOrCreate().withPrefix("nimble").register(Sf()),ro.tagFor(kf)
3908
+ const _f=fe`
3912
3909
  ${xn("inline-block")}
3913
3910
 
3914
3911
  :host {
@@ -3924,7 +3921,7 @@ const Sf=fe`
3924
3921
  margin-top: ${sa};
3925
3922
  margin-bottom: ${sa};
3926
3923
  }
3927
- `,_f=G`
3924
+ `,If=G`
3928
3925
  <template
3929
3926
  ?open="${e=>e.open}"
3930
3927
  @focusout="${(e,t)=>e.focusoutHandler(t.event)}"
@@ -3965,8 +3962,8 @@ const Sf=fe`
3965
3962
  </${gd}>
3966
3963
  `)}
3967
3964
  </template>
3968
- `,If="auto"
3969
- class Rf extends Rt{constructor(){super(...arguments),this.appearance=zc,this.disabled=!1,this.contentHidden=!1,this.open=!1,this.position=If,this.focusLastItemWhenOpened=!1,this.menuChangeHandler=()=>{this.setOpen(!1),this.toggleButton.focus()}}disconnectedCallback(){super.disconnectedCallback(),this.region&&this.region.removeEventListener(_r,this.menuChangeHandler)}toggleButtonChanged(e,t){this.region&&this.toggleButton&&(this.region.anchorElement=this.toggleButton)}regionChanged(e,t){e&&e.removeEventListener(_r,this.menuChangeHandler),this.region&&(this.toggleButton&&(this.region.anchorElement=this.toggleButton),this.region.addEventListener(_r,this.menuChangeHandler,{capture:!0}))}openChanged(e,t){if(this.toggleButton&&(this.toggleButton.checked=this.open),!this.open){const e={oldState:!0,newState:!1}
3965
+ `,Rf="auto"
3966
+ class Mf extends Rt{constructor(){super(...arguments),this.appearance=zc,this.disabled=!1,this.contentHidden=!1,this.open=!1,this.position=Rf,this.focusLastItemWhenOpened=!1,this.menuChangeHandler=()=>{this.setOpen(!1),this.toggleButton.focus()}}disconnectedCallback(){super.disconnectedCallback(),this.region&&this.region.removeEventListener(_r,this.menuChangeHandler)}toggleButtonChanged(e,t){this.region&&this.toggleButton&&(this.region.anchorElement=this.toggleButton)}regionChanged(e,t){e&&e.removeEventListener(_r,this.menuChangeHandler),this.region&&(this.toggleButton&&(this.region.anchorElement=this.toggleButton),this.region.addEventListener(_r,this.menuChangeHandler,{capture:!0}))}openChanged(e,t){if(this.toggleButton&&(this.toggleButton.checked=this.open),!this.open){const e={oldState:!0,newState:!1}
3970
3967
  this.$emit("toggle",e)}}regionLoadedHandler(){this.focusLastItemWhenOpened?(this.focusLastMenuItem(),this.focusLastItemWhenOpened=!1):this.focusMenu()
3971
3968
  this.$emit("toggle",{oldState:!1,newState:!0})}focusoutHandler(e){if(!this.open)return!0
3972
3969
  const t=e.relatedTarget
@@ -3980,10 +3977,10 @@ for(;e;){if("menu"===e.getAttribute("role"))return e
3980
3977
  if(!this.isSlotElement(e))return
3981
3978
  {const t=e.assignedNodes()[0]
3982
3979
  e=t instanceof HTMLElement?t:void 0}}}isSlotElement(e){return"SLOT"===e?.nodeName}focusMenu(){this.getMenu()?.focus()}focusLastMenuItem(){const e=this.getMenu()?.querySelectorAll("[role=menuitem]")
3983
- if(e?.length){e[e.length-1].focus()}}}e([ne],Rf.prototype,"appearance",void 0),e([ne({mode:"boolean"})],Rf.prototype,"disabled",void 0),e([ne({attribute:"content-hidden",mode:"boolean"})],Rf.prototype,"contentHidden",void 0),e([ne({mode:"boolean"})],Rf.prototype,"open",void 0),e([ne({attribute:"position"})],Rf.prototype,"position",void 0),e([m],Rf.prototype,"toggleButton",void 0),e([m],Rf.prototype,"region",void 0),e([m],Rf.prototype,"slottedMenus",void 0)
3984
- const Mf=Rf.compose({baseName:"menu-button",template:_f,styles:Sf,shadowOptions:{delegatesFocus:!0}})
3985
- ro.getOrCreate().withPrefix("nimble").register(Mf())
3986
- const Af=ro.tagFor(Rf),Ef=fe`
3980
+ if(e?.length){e[e.length-1].focus()}}}e([ne],Mf.prototype,"appearance",void 0),e([ne({mode:"boolean"})],Mf.prototype,"disabled",void 0),e([ne({attribute:"content-hidden",mode:"boolean"})],Mf.prototype,"contentHidden",void 0),e([ne({mode:"boolean"})],Mf.prototype,"open",void 0),e([ne({attribute:"position"})],Mf.prototype,"position",void 0),e([m],Mf.prototype,"toggleButton",void 0),e([m],Mf.prototype,"region",void 0),e([m],Mf.prototype,"slottedMenus",void 0)
3981
+ const Af=Mf.compose({baseName:"menu-button",template:If,styles:_f,shadowOptions:{delegatesFocus:!0}})
3982
+ ro.getOrCreate().withPrefix("nimble").register(Af())
3983
+ const Ef=ro.tagFor(Mf),Of=fe`
3987
3984
  ${xn("grid")}
3988
3985
 
3989
3986
  :host {
@@ -4062,7 +4059,7 @@ const Af=ro.tagFor(Rf),Ef=fe`
4062
4059
  grid-column: 3;
4063
4060
  }
4064
4061
  `
4065
- class Of extends $o{}const Ff=Of.compose({baseName:"menu-item",baseClass:$o,template:(e,t)=>G`
4062
+ class Ff extends $o{}const Vf=Ff.compose({baseName:"menu-item",baseClass:$o,template:(e,t)=>G`
4066
4063
  <template
4067
4064
  role="${e=>e.role}"
4068
4065
  aria-haspopup="${e=>e.hasSubmenu?"menu":void 0}"
@@ -4129,11 +4126,11 @@ class Of extends $o{}const Ff=Of.compose({baseName:"menu-item",baseClass:$o,temp
4129
4126
  </${e.tagFor(si)}>
4130
4127
  `)}
4131
4128
  </template>
4132
- `,styles:Ef,expandCollapseGlyph:Rd.data})
4133
- ro.getOrCreate().withPrefix("nimble").register(Ff()),ro.tagFor(Of)
4134
- const Vf="underline",Hf="outline",Pf="block",Tf=fe`
4129
+ `,styles:Of,expandCollapseGlyph:Rd.data})
4130
+ ro.getOrCreate().withPrefix("nimble").register(Vf()),ro.tagFor(Ff)
4131
+ const Hf="underline",Pf="outline",Tf="block",Df=fe`
4135
4132
  ${xn("inline-block")}
4136
- ${sg}
4133
+ ${rg}
4137
4134
 
4138
4135
  :host {
4139
4136
  font: ${Cl};
@@ -4279,12 +4276,12 @@ const Vf="underline",Hf="outline",Pf="block",Tf=fe`
4279
4276
  order: 1;
4280
4277
  padding-right: calc(${ra} / 4);
4281
4278
  }
4282
- `.withBehaviors(qc(Vf,fe`
4279
+ `.withBehaviors(qc(Hf,fe`
4283
4280
  .root {
4284
4281
  border-bottom-width: ${aa};
4285
4282
  padding-bottom: 0;
4286
4283
  }
4287
- `),qc(Pf,fe`
4284
+ `),qc(Tf,fe`
4288
4285
  .root {
4289
4286
  background-color: rgba(${Wr}, 0.1);
4290
4287
  }
@@ -4302,14 +4299,14 @@ const Vf="underline",Hf="outline",Pf="block",Tf=fe`
4302
4299
  :host([disabled]) .root {
4303
4300
  background-color: rgba(${Wr}, 0.07);
4304
4301
  }
4305
- `),qc(Hf,fe`
4302
+ `),qc(Pf,fe`
4306
4303
  .root {
4307
4304
  border-width: ${aa};
4308
4305
  padding: 0;
4309
4306
  }
4310
4307
  `))
4311
- class Df extends Eo{constructor(){super(...arguments),this.appearance=Vf,this.errorVisible=!1}connectedCallback(){super.connectedCallback(),this.control.setAttribute("role","spinbutton")}}e([ne],Df.prototype,"appearance",void 0),e([ne({attribute:"error-text"})],Df.prototype,"errorText",void 0),e([ne({attribute:"error-visible",mode:"boolean"})],Df.prototype,"errorVisible",void 0)
4312
- const Lf=Df.compose({baseName:"number-field",baseClass:Eo,template:(e,t)=>G`
4308
+ class Lf extends Eo{constructor(){super(...arguments),this.appearance=Hf,this.errorVisible=!1}connectedCallback(){super.connectedCallback(),this.control.setAttribute("role","spinbutton")}}e([ne],Lf.prototype,"appearance",void 0),e([ne({attribute:"error-text"})],Lf.prototype,"errorText",void 0),e([ne({attribute:"error-visible",mode:"boolean"})],Lf.prototype,"errorVisible",void 0)
4309
+ const zf=Lf.compose({baseName:"number-field",baseClass:Eo,template:(e,t)=>G`
4313
4310
  <template class="${e=>e.readOnly?"readonly":""}">
4314
4311
  <label
4315
4312
  part="label"
@@ -4384,7 +4381,7 @@ const Lf=Df.compose({baseName:"number-field",baseClass:Eo,template:(e,t)=>G`
4384
4381
  ${Ze(0,t)}
4385
4382
  </div>
4386
4383
  </template>
4387
- `,styles:Tf,shadowOptions:{delegatesFocus:!0},stepDownGlyph:G`
4384
+ `,styles:Df,shadowOptions:{delegatesFocus:!0},stepDownGlyph:G`
4388
4385
  <${$d}
4389
4386
  class="step-up-down-button"
4390
4387
  appearance="ghost"
@@ -4392,10 +4389,10 @@ const Lf=Df.compose({baseName:"number-field",baseClass:Eo,template:(e,t)=>G`
4392
4389
  tabindex="-1"
4393
4390
  >
4394
4391
  "Decrement"
4395
- <${ym}
4392
+ <${$m}
4396
4393
  slot="start"
4397
4394
  >
4398
- </${ym}>
4395
+ </${$m}>
4399
4396
  </${$d}>
4400
4397
  `,stepUpGlyph:G`
4401
4398
  <${$d}
@@ -4405,9 +4402,9 @@ const Lf=Df.compose({baseName:"number-field",baseClass:Eo,template:(e,t)=>G`
4405
4402
  tabindex="-1"
4406
4403
  >
4407
4404
  "Increment"
4408
- <${xg}
4405
+ <${yg}
4409
4406
  slot="start">
4410
- </${xg}>
4407
+ </${yg}>
4411
4408
  </${$d}>
4412
4409
  `,end:G`
4413
4410
  <${kp}
@@ -4416,8 +4413,8 @@ const Lf=Df.compose({baseName:"number-field",baseClass:Eo,template:(e,t)=>G`
4416
4413
  ></${kp}>
4417
4414
  ${Qp}
4418
4415
  `})
4419
- ro.getOrCreate().withPrefix("nimble").register(Lf()),ro.tagFor(Df)
4420
- const zf=fe`
4416
+ ro.getOrCreate().withPrefix("nimble").register(zf()),ro.tagFor(Lf)
4417
+ const Bf=fe`
4421
4418
  ${xn("inline-flex")}
4422
4419
 
4423
4420
  :host {
@@ -4504,7 +4501,7 @@ const zf=fe`
4504
4501
  fill: rgba(${Wr}, 0.3);
4505
4502
  }
4506
4503
  `
4507
- class Bf extends Ho{}const Nf=Bf.compose({baseName:"radio",baseClass:Ho,template:(e,t)=>G`
4504
+ class Nf extends Ho{}const Zf=Nf.compose({baseName:"radio",baseClass:Ho,template:(e,t)=>G`
4508
4505
  <template
4509
4506
  role="radio"
4510
4507
  class="${e=>e.checked?"checked":""} ${e=>e.readOnly?"readonly":""}"
@@ -4527,9 +4524,9 @@ class Bf extends Ho{}const Nf=Bf.compose({baseName:"radio",baseClass:Ho,template
4527
4524
  <slot ${Le("defaultSlottedNodes")}></slot>
4528
4525
  </label>
4529
4526
  </template>
4530
- `,styles:zf,checkedIndicator:th.data})
4531
- ro.getOrCreate().withPrefix("nimble").register(Nf()),ro.tagFor(Bf)
4532
- const Zf=fe`
4527
+ `,styles:Bf,checkedIndicator:th.data})
4528
+ ro.getOrCreate().withPrefix("nimble").register(Zf()),ro.tagFor(Nf)
4529
+ const qf=fe`
4533
4530
  ${xn("inline-block")}
4534
4531
 
4535
4532
  .positioning-region {
@@ -4554,7 +4551,7 @@ const Zf=fe`
4554
4551
  color: ${Bl};
4555
4552
  }
4556
4553
  `
4557
- class qf extends Oo{}const Uf=qf.compose({baseName:"radio-group",baseClass:Oo,template:(e,t)=>G`
4554
+ class Uf extends Oo{}const jf=Uf.compose({baseName:"radio-group",baseClass:Oo,template:(e,t)=>G`
4558
4555
  <template
4559
4556
  role="radiogroup"
4560
4557
  aria-disabled="${e=>e.disabled}"
@@ -4573,11 +4570,11 @@ class qf extends Oo{}const Uf=qf.compose({baseName:"radio-group",baseClass:Oo,te
4573
4570
  ></slot>
4574
4571
  </div>
4575
4572
  </template>
4576
- `,styles:Zf,shadowOptions:{delegatesFocus:!0}})
4577
- ro.getOrCreate().withPrefix("nimble").register(Uf()),ro.tagFor(qf)
4578
- const jf=fe`
4579
- ${ng}
4573
+ `,styles:qf,shadowOptions:{delegatesFocus:!0}})
4574
+ ro.getOrCreate().withPrefix("nimble").register(jf()),ro.tagFor(Uf)
4575
+ const Gf=fe`
4580
4576
  ${sg}
4577
+ ${rg}
4581
4578
 
4582
4579
  ${""}
4583
4580
  [part='selected-value'] {
@@ -4595,15 +4592,15 @@ const jf=fe`
4595
4592
  .end {
4596
4593
  display: contents;
4597
4594
  }
4598
- `.withBehaviors(qc(og,fe`
4595
+ `.withBehaviors(qc(ng,fe`
4599
4596
  :host([error-visible]) .control {
4600
4597
  border-bottom-width: ${aa};
4601
4598
  padding-bottom: 0;
4602
4599
  }
4603
4600
  `))
4604
- class Gf extends Lo{constructor(){super(...arguments),this.appearance=tg,this.errorVisible=!1}setPositioning(){this.$fastController.isConnected&&(super.setPositioning(),this.updateListboxMaxHeightCssVariable())}slottedOptionsChanged(e,t){const i=this.value
4605
- super.slottedOptionsChanged(e,t),i&&(this.value=i)}maxHeightChanged(){this.updateListboxMaxHeightCssVariable()}updateListboxMaxHeightCssVariable(){this.listbox&&this.listbox.style.setProperty("--ni-private-select-max-height",`${this.maxHeight}px`)}}e([ne],Gf.prototype,"appearance",void 0),e([ne({attribute:"error-text"})],Gf.prototype,"errorText",void 0),e([ne({attribute:"error-visible",mode:"boolean"})],Gf.prototype,"errorVisible",void 0)
4606
- const Wf=Gf.compose({baseName:"select",baseClass:Lo,template:(e,t)=>G`
4601
+ class Wf extends Lo{constructor(){super(...arguments),this.appearance=ig,this.errorVisible=!1}setPositioning(){this.$fastController.isConnected&&(super.setPositioning(),this.updateListboxMaxHeightCssVariable())}slottedOptionsChanged(e,t){const i=this.value
4602
+ super.slottedOptionsChanged(e,t),i&&(this.value=i)}regionChanged(e,t){this.region&&this.control&&(this.region.anchorElement=this.control)}controlChanged(e,t){this.region&&this.control&&(this.region.anchorElement=this.control)}maxHeightChanged(){this.updateListboxMaxHeightCssVariable()}updateListboxMaxHeightCssVariable(){this.listbox&&this.listbox.style.setProperty("--ni-private-select-max-height",`${this.maxHeight}px`)}}e([ne],Wf.prototype,"appearance",void 0),e([ne({attribute:"error-text"})],Wf.prototype,"errorText",void 0),e([ne({attribute:"error-visible",mode:"boolean"})],Wf.prototype,"errorVisible",void 0),e([m],Wf.prototype,"region",void 0)
4603
+ const Kf=Wf.compose({baseName:"select",baseClass:Lo,template:(e,t)=>G`
4607
4604
  <template
4608
4605
  class="${e=>[e.collapsible&&"collapsible",e.collapsible&&e.open&&"open",e.disabled&&"disabled",e.collapsible&&e.position].filter(Boolean).join(" ")}"
4609
4606
  aria-activedescendant="${e=>e.ariaActiveDescendant}"
@@ -4641,30 +4638,41 @@ const Wf=Gf.compose({baseName:"select",baseClass:Lo,template:(e,t)=>G`
4641
4638
  </slot>
4642
4639
  ${Ze(0,t)}
4643
4640
  </div>
4644
- `)}
4645
- <div
4646
- class="listbox"
4647
- id="${e=>e.listboxId}"
4648
- part="listbox"
4649
- role="listbox"
4650
- ?disabled="${e=>e.disabled}"
4651
- ?hidden="${e=>!!e.collapsible&&!e.open}"
4652
- ${Re("listbox")}
4653
- >
4654
- <slot
4655
- ${Le({filter:Si.slottedOptionFilter,flatten:!0,property:"slottedOptions"})}
4656
- ></slot>
4657
- </div>
4641
+ `)}
4642
+ <${gd}
4643
+ ${Re("region")}
4644
+ class="anchored-region"
4645
+ fixed-placement
4646
+ auto-update-mode="auto"
4647
+ vertical-default-position="${e=>e.positionAttribute===tg?"top":"bottom"}"
4648
+ vertical-positioning-mode="${e=>e.positionAttribute?"locktodefault":"dynamic"}"
4649
+ horizontal-default-position="center"
4650
+ horizontal-positioning-mode="locktodefault"
4651
+ horizontal-scaling="anchor"
4652
+ ?hidden="${e=>!!e.collapsible&&!e.open}">
4653
+ <div
4654
+ class="listbox"
4655
+ id="${e=>e.listboxId}"
4656
+ part="listbox"
4657
+ role="listbox"
4658
+ ?disabled="${e=>e.disabled}"
4659
+ ${Re("listbox")}
4660
+ >
4661
+ <slot
4662
+ ${Le({filter:e=>e instanceof HTMLElement&&Si.slottedOptionFilter(e),flatten:!0,property:"slottedOptions"})}
4663
+ ></slot>
4664
+ </div>
4665
+ </${gd}>
4658
4666
  </template>
4659
- `,styles:jf,indicator:_d.data,end:G`
4667
+ `,styles:Gf,indicator:_d.data,end:G`
4660
4668
  <${kp}
4661
4669
  severity="error"
4662
4670
  class="error-icon"
4663
4671
  ></${kp}>
4664
4672
  ${Qp}
4665
4673
  `})
4666
- ro.getOrCreate().withPrefix("nimble").register(Wf()),ro.tagFor(Gf)
4667
- const Kf=fe`
4674
+ ro.getOrCreate().withPrefix("nimble").register(Kf()),ro.tagFor(Wf)
4675
+ const Xf=fe`
4668
4676
  ${xn("inline-flex")}
4669
4677
 
4670
4678
  :host {
@@ -4800,7 +4808,7 @@ const Kf=fe`
4800
4808
  :host {
4801
4809
  --ni-private-spinner-bits-background-color: ${jn};
4802
4810
  }
4803
- `)),Xf=G`
4811
+ `)),Yf=G`
4804
4812
  <template role="progressbar">
4805
4813
  <div class="container">
4806
4814
  <div class="bit1"></div>
@@ -4808,9 +4816,9 @@ const Kf=fe`
4808
4816
  </div>
4809
4817
  </template>
4810
4818
  `
4811
- class Yf extends Rt{}const Qf=Yf.compose({baseName:"spinner",template:Xf,styles:Kf})
4812
- ro.getOrCreate().withPrefix("nimble").register(Qf()),ro.tagFor(Yf)
4813
- const Jf=fe`
4819
+ class Qf extends Rt{}const Jf=Qf.compose({baseName:"spinner",template:Yf,styles:Xf})
4820
+ ro.getOrCreate().withPrefix("nimble").register(Jf()),ro.tagFor(Qf)
4821
+ const eb=fe`
4814
4822
  ${xn("inline-flex")}
4815
4823
 
4816
4824
  :host {
@@ -4970,7 +4978,7 @@ const Jf=fe`
4970
4978
  --ni-private-switch-indicator-border-color: ${jn};
4971
4979
  --ni-private-switch-indicator-border-disabled-color: ${cs(jn,.3)};
4972
4980
  }
4973
- `)),eb=G`
4981
+ `)),tb=G`
4974
4982
  <template
4975
4983
  role="switch"
4976
4984
  aria-checked="${e=>e.checked}"
@@ -5005,15 +5013,15 @@ const Jf=fe`
5005
5013
  </div>
5006
5014
  </template>
5007
5015
  `
5008
- class tb extends Zo{}const ib=tb.compose({baseClass:Zo,baseName:"switch",template:eb,styles:Jf})
5009
- ro.getOrCreate().withPrefix("nimble").register(ib()),ro.tagFor(tb)
5010
- class ob extends Uo{}const nb=ob.compose({baseName:"tab",baseClass:Uo,template:(e,t)=>G`
5016
+ class ib extends Zo{}const ob=ib.compose({baseClass:Zo,baseName:"switch",template:tb,styles:eb})
5017
+ ro.getOrCreate().withPrefix("nimble").register(ob()),ro.tagFor(ib)
5018
+ class nb extends Uo{}const sb=nb.compose({baseName:"tab",baseClass:Uo,template:(e,t)=>G`
5011
5019
  <template slot="tab" role="tab" aria-disabled="${e=>e.disabled}">
5012
5020
  <slot></slot>
5013
5021
  </template>
5014
5022
  `,styles:ed})
5015
- ro.getOrCreate().withPrefix("nimble").register(nb()),ro.tagFor(ob)
5016
- const sb=fe`
5023
+ ro.getOrCreate().withPrefix("nimble").register(sb()),ro.tagFor(nb)
5024
+ const rb=fe`
5017
5025
  ${xn("block")}
5018
5026
 
5019
5027
  :host {
@@ -5023,11 +5031,11 @@ const sb=fe`
5023
5031
  padding-top: ${ra};
5024
5032
  }
5025
5033
  `
5026
- class rb extends qo{}const ab=rb.compose({baseName:"tab-panel",baseClass:qo,template:(e,t)=>G`
5034
+ class ab extends qo{}const lb=ab.compose({baseName:"tab-panel",baseClass:qo,template:(e,t)=>G`
5027
5035
  <template slot="tabpanel" role="tabpanel">
5028
5036
  <slot></slot>
5029
5037
  </template>
5030
- `,styles:sb})
5038
+ `,styles:rb})
5031
5039
 
5032
5040
  ;/**
5033
5041
  * table-core
@@ -5039,10 +5047,10 @@ class rb extends qo{}const ab=rb.compose({baseName:"tab-panel",baseClass:qo,temp
5039
5047
  *
5040
5048
  * @license MIT
5041
5049
  */
5042
- function lb(e,t){return"function"==typeof e?e(t):e}function cb(e,t){return i=>{t.setState((t=>({...t,[e]:lb(i,t[e])})))}}function db(e){return e instanceof Function}function hb(e,t){const i=[],o=e=>{e.forEach((e=>{i.push(e)
5050
+ function cb(e,t){return"function"==typeof e?e(t):e}function db(e,t){return i=>{t.setState((t=>({...t,[e]:cb(i,t[e])})))}}function hb(e){return e instanceof Function}function ub(e,t){const i=[],o=e=>{e.forEach((e=>{i.push(e)
5043
5051
  const n=t(e)
5044
5052
  null!=n&&n.length&&o(n)}))}
5045
- return o(e),i}function ub(e,t,i){let o,n=[]
5053
+ return o(e),i}function pb(e,t,i){let o,n=[]
5046
5054
  return()=>{let s
5047
5055
  i.key&&i.debug&&(s=Date.now())
5048
5056
  const r=e()
@@ -5050,36 +5058,36 @@ if(!(r.length!==n.length||r.some(((e,t)=>n[t]!==e))))return o
5050
5058
  let a
5051
5059
  if(n=r,i.key&&i.debug&&(a=Date.now()),o=t(...r),null==i||null==i.onChange||i.onChange(o),i.key&&i.debug&&null!=i&&i.debug()){const e=Math.round(100*(Date.now()-s))/100,t=Math.round(100*(Date.now()-a))/100,o=t/16,n=(e,t)=>{for(e=String(e);e.length<t;)e=" "+e
5052
5060
  return e}
5053
- console.info(`%c⏱ ${n(t,5)} /${n(e,5)} ms`,`\n font-size: .6rem;\n font-weight: bold;\n color: hsl(${Math.max(0,Math.min(120-120*o,120))}deg 100% 31%);`,null==i?void 0:i.key)}return o}}function pb(e,t,i){var o
5061
+ console.info(`%c⏱ ${n(t,5)} /${n(e,5)} ms`,`\n font-size: .6rem;\n font-weight: bold;\n color: hsl(${Math.max(0,Math.min(120-120*o,120))}deg 100% 31%);`,null==i?void 0:i.key)}return o}}function gb(e,t,i){var o
5054
5062
  let n={id:null!=(o=i.id)?o:t.id,column:t,index:i.index,isPlaceholder:!!i.isPlaceholder,placeholderId:i.placeholderId,depth:i.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{const e=[],t=i=>{i.subHeaders&&i.subHeaders.length&&i.subHeaders.map(t),e.push(i)}
5055
5063
  return t(n),e},getContext:()=>({table:e,header:n,column:t})}
5056
- return e._features.forEach((t=>{Object.assign(n,null==t.createHeader?void 0:t.createHeader(n,e))})),n}ro.getOrCreate().withPrefix("nimble").register(ab()),ro.tagFor(rb)
5057
- const gb={createTable:e=>({getHeaderGroups:ub((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right]),((t,i,o,n)=>{var s,r
5064
+ return e._features.forEach((t=>{Object.assign(n,null==t.createHeader?void 0:t.createHeader(n,e))})),n}ro.getOrCreate().withPrefix("nimble").register(lb()),ro.tagFor(ab)
5065
+ const vb={createTable:e=>({getHeaderGroups:pb((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right]),((t,i,o,n)=>{var s,r
5058
5066
  const a=null!=(s=null==o?void 0:o.map((e=>i.find((t=>t.id===e)))).filter(Boolean))?s:[],l=null!=(r=null==n?void 0:n.map((e=>i.find((t=>t.id===e)))).filter(Boolean))?r:[]
5059
- return vb(t,[...a,...i.filter((e=>!(null!=o&&o.includes(e.id)||null!=n&&n.includes(e.id)))),...l],e)}),{key:!1,debug:()=>{var t
5060
- return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getCenterHeaderGroups:ub((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right]),((t,i,o,n)=>vb(t,i=i.filter((e=>!(null!=o&&o.includes(e.id)||null!=n&&n.includes(e.id)))),e,"center")),{key:!1,debug:()=>{var t
5061
- return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getLeftHeaderGroups:ub((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left]),((t,i,o)=>{var n
5062
- return vb(t,null!=(n=null==o?void 0:o.map((e=>i.find((t=>t.id===e)))).filter(Boolean))?n:[],e,"left")}),{key:!1,debug:()=>{var t
5063
- return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getRightHeaderGroups:ub((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right]),((t,i,o)=>{var n
5064
- return vb(t,null!=(n=null==o?void 0:o.map((e=>i.find((t=>t.id===e)))).filter(Boolean))?n:[],e,"right")}),{key:!1,debug:()=>{var t
5065
- return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getFooterGroups:ub((()=>[e.getHeaderGroups()]),(e=>[...e].reverse()),{key:!1,debug:()=>{var t
5066
- return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getLeftFooterGroups:ub((()=>[e.getLeftHeaderGroups()]),(e=>[...e].reverse()),{key:!1,debug:()=>{var t
5067
- return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getCenterFooterGroups:ub((()=>[e.getCenterHeaderGroups()]),(e=>[...e].reverse()),{key:!1,debug:()=>{var t
5068
- return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getRightFooterGroups:ub((()=>[e.getRightHeaderGroups()]),(e=>[...e].reverse()),{key:!1,debug:()=>{var t
5069
- return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getFlatHeaders:ub((()=>[e.getHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),{key:!1,debug:()=>{var t
5070
- return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getLeftFlatHeaders:ub((()=>[e.getLeftHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),{key:!1,debug:()=>{var t
5071
- return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getCenterFlatHeaders:ub((()=>[e.getCenterHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),{key:!1,debug:()=>{var t
5072
- return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getRightFlatHeaders:ub((()=>[e.getRightHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),{key:!1,debug:()=>{var t
5073
- return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getCenterLeafHeaders:ub((()=>[e.getCenterFlatHeaders()]),(e=>e.filter((e=>{var t
5067
+ return mb(t,[...a,...i.filter((e=>!(null!=o&&o.includes(e.id)||null!=n&&n.includes(e.id)))),...l],e)}),{key:!1,debug:()=>{var t
5068
+ return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getCenterHeaderGroups:pb((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right]),((t,i,o,n)=>mb(t,i=i.filter((e=>!(null!=o&&o.includes(e.id)||null!=n&&n.includes(e.id)))),e,"center")),{key:!1,debug:()=>{var t
5069
+ return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getLeftHeaderGroups:pb((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left]),((t,i,o)=>{var n
5070
+ return mb(t,null!=(n=null==o?void 0:o.map((e=>i.find((t=>t.id===e)))).filter(Boolean))?n:[],e,"left")}),{key:!1,debug:()=>{var t
5071
+ return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getRightHeaderGroups:pb((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right]),((t,i,o)=>{var n
5072
+ return mb(t,null!=(n=null==o?void 0:o.map((e=>i.find((t=>t.id===e)))).filter(Boolean))?n:[],e,"right")}),{key:!1,debug:()=>{var t
5073
+ return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getFooterGroups:pb((()=>[e.getHeaderGroups()]),(e=>[...e].reverse()),{key:!1,debug:()=>{var t
5074
+ return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getLeftFooterGroups:pb((()=>[e.getLeftHeaderGroups()]),(e=>[...e].reverse()),{key:!1,debug:()=>{var t
5075
+ return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getCenterFooterGroups:pb((()=>[e.getCenterHeaderGroups()]),(e=>[...e].reverse()),{key:!1,debug:()=>{var t
5076
+ return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getRightFooterGroups:pb((()=>[e.getRightHeaderGroups()]),(e=>[...e].reverse()),{key:!1,debug:()=>{var t
5077
+ return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getFlatHeaders:pb((()=>[e.getHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),{key:!1,debug:()=>{var t
5078
+ return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getLeftFlatHeaders:pb((()=>[e.getLeftHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),{key:!1,debug:()=>{var t
5079
+ return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getCenterFlatHeaders:pb((()=>[e.getCenterHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),{key:!1,debug:()=>{var t
5080
+ return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getRightFlatHeaders:pb((()=>[e.getRightHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),{key:!1,debug:()=>{var t
5081
+ return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getCenterLeafHeaders:pb((()=>[e.getCenterFlatHeaders()]),(e=>e.filter((e=>{var t
5074
5082
  return!(null!=(t=e.subHeaders)&&t.length)}))),{key:!1,debug:()=>{var t
5075
- return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getLeftLeafHeaders:ub((()=>[e.getLeftFlatHeaders()]),(e=>e.filter((e=>{var t
5083
+ return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getLeftLeafHeaders:pb((()=>[e.getLeftFlatHeaders()]),(e=>e.filter((e=>{var t
5076
5084
  return!(null!=(t=e.subHeaders)&&t.length)}))),{key:!1,debug:()=>{var t
5077
- return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getRightLeafHeaders:ub((()=>[e.getRightFlatHeaders()]),(e=>e.filter((e=>{var t
5085
+ return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getRightLeafHeaders:pb((()=>[e.getRightFlatHeaders()]),(e=>e.filter((e=>{var t
5078
5086
  return!(null!=(t=e.subHeaders)&&t.length)}))),{key:!1,debug:()=>{var t
5079
- return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getLeafHeaders:ub((()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()]),((e,t,i)=>{var o,n,s,r,a,l
5087
+ return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getLeafHeaders:pb((()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()]),((e,t,i)=>{var o,n,s,r,a,l
5080
5088
  return[...null!=(o=null==(n=e[0])?void 0:n.headers)?o:[],...null!=(s=null==(r=t[0])?void 0:r.headers)?s:[],...null!=(a=null==(l=i[0])?void 0:l.headers)?a:[]].map((e=>e.getLeafHeaders())).flat()}),{key:!1,debug:()=>{var t
5081
5089
  return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}})})}
5082
- function vb(e,t,i,o){var n,s
5090
+ function mb(e,t,i,o){var n,s
5083
5091
  let r=0
5084
5092
  const a=function(e,t){void 0===t&&(t=1),r=Math.max(r,t),e.filter((e=>e.getIsVisible())).forEach((e=>{var i
5085
5093
  null!=(i=e.columns)&&i.length&&a(e.columns,t+1)}),0)}
@@ -5089,16 +5097,16 @@ const c=(e,t)=>{const n={depth:t,id:[o,`${t}`].filter(Boolean).join("_"),headers
5089
5097
  e.forEach((e=>{const r=[...s].reverse()[0]
5090
5098
  let a,l=!1
5091
5099
  if(e.column.depth===n.depth&&e.column.parent?a=e.column.parent:(a=e.column,l=!0),r&&(null==r?void 0:r.column)===a)r.subHeaders.push(e)
5092
- else{const n=pb(i,a,{id:[o,t,a.id,null==e?void 0:e.id].filter(Boolean).join("_"),isPlaceholder:l,placeholderId:l?`${s.filter((e=>e.column===a)).length}`:void 0,depth:t,index:s.length})
5093
- n.subHeaders.push(e),s.push(n)}n.headers.push(e),e.headerGroup=n})),l.push(n),t>0&&c(s,t-1)},d=t.map(((e,t)=>pb(i,e,{depth:r,index:t})))
5100
+ else{const n=gb(i,a,{id:[o,t,a.id,null==e?void 0:e.id].filter(Boolean).join("_"),isPlaceholder:l,placeholderId:l?`${s.filter((e=>e.column===a)).length}`:void 0,depth:t,index:s.length})
5101
+ n.subHeaders.push(e),s.push(n)}n.headers.push(e),e.headerGroup=n})),l.push(n),t>0&&c(s,t-1)},d=t.map(((e,t)=>gb(i,e,{depth:r,index:t})))
5094
5102
  c(d,r-1),l.reverse()
5095
5103
  const h=e=>e.filter((e=>e.column.getIsVisible())).map((e=>{let t=0,i=0,o=[0]
5096
5104
  e.subHeaders&&e.subHeaders.length?(o=[],h(e.subHeaders).forEach((e=>{let{colSpan:i,rowSpan:n}=e
5097
5105
  t+=i,o.push(n)}))):t=1
5098
5106
  return i+=Math.min(...o),e.colSpan=t,e.rowSpan=i,{colSpan:t,rowSpan:i}}))
5099
- return h(null!=(n=null==(s=l[0])?void 0:s.headers)?n:[]),l}const mb={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},fb={getDefaultColumnDef:()=>mb,getInitialState:e=>({columnSizing:{},columnSizingInfo:{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]},...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",onColumnSizingChange:cb("columnSizing",e),onColumnSizingInfoChange:cb("columnSizingInfo",e)}),createColumn:(e,t)=>({getSize:()=>{var i,o,n
5107
+ return h(null!=(n=null==(s=l[0])?void 0:s.headers)?n:[]),l}const fb={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},bb={getDefaultColumnDef:()=>fb,getInitialState:e=>({columnSizing:{},columnSizingInfo:{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]},...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",onColumnSizingChange:db("columnSizing",e),onColumnSizingInfoChange:db("columnSizingInfo",e)}),createColumn:(e,t)=>({getSize:()=>{var i,o,n
5100
5108
  const s=t.getState().columnSizing[e.id]
5101
- return Math.min(Math.max(null!=(i=e.columnDef.minSize)?i:mb.minSize,null!=(o=null!=s?s:e.columnDef.size)?o:mb.size),null!=(n=e.columnDef.maxSize)?n:mb.maxSize)},getStart:i=>{const o=i?"left"===i?t.getLeftVisibleLeafColumns():t.getRightVisibleLeafColumns():t.getVisibleLeafColumns(),n=o.findIndex((t=>t.id===e.id))
5109
+ return Math.min(Math.max(null!=(i=e.columnDef.minSize)?i:fb.minSize,null!=(o=null!=s?s:e.columnDef.size)?o:fb.size),null!=(n=e.columnDef.maxSize)?n:fb.maxSize)},getStart:i=>{const o=i?"left"===i?t.getLeftVisibleLeafColumns():t.getRightVisibleLeafColumns():t.getVisibleLeafColumns(),n=o.findIndex((t=>t.id===e.id))
5102
5110
  if(n>0){const e=o[n-1]
5103
5111
  return e.getStart(i)+e.getSize()}return 0},resetSize:()=>{t.setColumnSizing((t=>{let{[e.id]:i,...o}=t
5104
5112
  return o}))},getCanResize:()=>{var i,o
@@ -5108,24 +5116,24 @@ e.subHeaders.length?e.subHeaders.forEach(i):t+=null!=(o=e.column.getSize())?o:0}
5108
5116
  return i(e),t},getStart:()=>{if(e.index>0){const t=e.headerGroup.headers[e.index-1]
5109
5117
  return t.getStart()+t.getSize()}return 0},getResizeHandler:()=>{const i=t.getColumn(e.column.id),o=null==i?void 0:i.getCanResize()
5110
5118
  return n=>{if(!i||!o)return
5111
- if(null==n.persist||n.persist(),wb(n)&&n.touches&&n.touches.length>1)return
5112
- const s=e.getSize(),r=e?e.getLeafHeaders().map((e=>[e.column.id,e.column.getSize()])):[[i.id,i.getSize()]],a=wb(n)?Math.round(n.touches[0].clientX):n.clientX,l={},c=(e,i)=>{"number"==typeof i&&(t.setColumnSizingInfo((e=>{var t,o
5119
+ if(null==n.persist||n.persist(),xb(n)&&n.touches&&n.touches.length>1)return
5120
+ const s=e.getSize(),r=e?e.getLeafHeaders().map((e=>[e.column.id,e.column.getSize()])):[[i.id,i.getSize()]],a=xb(n)?Math.round(n.touches[0].clientX):n.clientX,l={},c=(e,i)=>{"number"==typeof i&&(t.setColumnSizingInfo((e=>{var t,o
5113
5121
  const n=i-(null!=(t=null==e?void 0:e.startOffset)?t:0),s=Math.max(n/(null!=(o=null==e?void 0:e.startSize)?o:0),-.999999)
5114
5122
  return e.columnSizingStart.forEach((e=>{let[t,i]=e
5115
5123
  l[t]=Math.round(100*Math.max(i+i*s,0))/100})),{...e,deltaOffset:n,deltaPercentage:s}})),"onChange"!==t.options.columnResizeMode&&"end"!==e||t.setColumnSizing((e=>({...e,...l}))))},d=e=>c("move",e),h=e=>{c("end",e),t.setColumnSizingInfo((e=>({...e,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]})))},u={moveHandler:e=>d(e.clientX),upHandler:e=>{document.removeEventListener("mousemove",u.moveHandler),document.removeEventListener("mouseup",u.upHandler),h(e.clientX)}},p={moveHandler:e=>(e.cancelable&&(e.preventDefault(),e.stopPropagation()),d(e.touches[0].clientX),!1),upHandler:e=>{var t
5116
- document.removeEventListener("touchmove",p.moveHandler),document.removeEventListener("touchend",p.upHandler),e.cancelable&&(e.preventDefault(),e.stopPropagation()),h(null==(t=e.touches[0])?void 0:t.clientX)}},g=!!function(){if("boolean"==typeof bb)return bb
5124
+ document.removeEventListener("touchmove",p.moveHandler),document.removeEventListener("touchend",p.upHandler),e.cancelable&&(e.preventDefault(),e.stopPropagation()),h(null==(t=e.touches[0])?void 0:t.clientX)}},g=!!function(){if("boolean"==typeof wb)return wb
5117
5125
  let e=!1
5118
5126
  try{const t={get passive(){return e=!0,!1}},i=()=>{}
5119
- window.addEventListener("test",i,t),window.removeEventListener("test",i)}catch(t){e=!1}return bb=e,bb}()&&{passive:!1}
5120
- wb(n)?(document.addEventListener("touchmove",p.moveHandler,g),document.addEventListener("touchend",p.upHandler,g)):(document.addEventListener("mousemove",u.moveHandler,g),document.addEventListener("mouseup",u.upHandler,g)),t.setColumnSizingInfo((e=>({...e,startOffset:a,startSize:s,deltaOffset:0,deltaPercentage:0,columnSizingStart:r,isResizingColumn:i.id})))}}}),createTable:e=>({setColumnSizing:t=>null==e.options.onColumnSizingChange?void 0:e.options.onColumnSizingChange(t),setColumnSizingInfo:t=>null==e.options.onColumnSizingInfoChange?void 0:e.options.onColumnSizingInfoChange(t),resetColumnSizing:t=>{var i
5127
+ window.addEventListener("test",i,t),window.removeEventListener("test",i)}catch(t){e=!1}return wb=e,wb}()&&{passive:!1}
5128
+ xb(n)?(document.addEventListener("touchmove",p.moveHandler,g),document.addEventListener("touchend",p.upHandler,g)):(document.addEventListener("mousemove",u.moveHandler,g),document.addEventListener("mouseup",u.upHandler,g)),t.setColumnSizingInfo((e=>({...e,startOffset:a,startSize:s,deltaOffset:0,deltaPercentage:0,columnSizingStart:r,isResizingColumn:i.id})))}}}),createTable:e=>({setColumnSizing:t=>null==e.options.onColumnSizingChange?void 0:e.options.onColumnSizingChange(t),setColumnSizingInfo:t=>null==e.options.onColumnSizingInfoChange?void 0:e.options.onColumnSizingInfoChange(t),resetColumnSizing:t=>{var i
5121
5129
  e.setColumnSizing(t?{}:null!=(i=e.initialState.columnSizing)?i:{})},resetHeaderSizeInfo:t=>{var i
5122
5130
  e.setColumnSizingInfo(t?{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}:null!=(i=e.initialState.columnSizingInfo)?i:{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]})},getTotalSize:()=>{var t,i
5123
5131
  return null!=(t=null==(i=e.getHeaderGroups()[0])?void 0:i.headers.reduce(((e,t)=>e+t.getSize()),0))?t:0},getLeftTotalSize:()=>{var t,i
5124
5132
  return null!=(t=null==(i=e.getLeftHeaderGroups()[0])?void 0:i.headers.reduce(((e,t)=>e+t.getSize()),0))?t:0},getCenterTotalSize:()=>{var t,i
5125
5133
  return null!=(t=null==(i=e.getCenterHeaderGroups()[0])?void 0:i.headers.reduce(((e,t)=>e+t.getSize()),0))?t:0},getRightTotalSize:()=>{var t,i
5126
5134
  return null!=(t=null==(i=e.getRightHeaderGroups()[0])?void 0:i.headers.reduce(((e,t)=>e+t.getSize()),0))?t:0}})}
5127
- let bb=null
5128
- function wb(e){return"touchstart"===e.type}const xb={getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:cb("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let t=!1,i=!1
5135
+ let wb=null
5136
+ function xb(e){return"touchstart"===e.type}const yb={getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:db("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let t=!1,i=!1
5129
5137
  return{_autoResetExpanded:()=>{var o,n
5130
5138
  if(t){if(null!=(o=null!=(n=e.options.autoResetAll)?n:e.options.autoResetExpanded)?o:!e.options.manualExpanding){if(i)return
5131
5139
  i=!0,e._queue((()=>{e.resetExpanded(),i=!1}))}}else e._queue((()=>{t=!0}))},setExpanded:t=>null==e.options.onExpandedChange?void 0:e.options.onExpandedChange(t),toggleAllRowsExpanded:t=>{(null!=t?t:!e.getIsAllRowsExpanded())?e.setExpanded(!0):e.setExpanded({})},resetExpanded:t=>{var i,o
@@ -5142,57 +5150,57 @@ return i}return o}))},getIsExpanded:()=>{var i
5142
5150
  const o=t.getState().expanded
5143
5151
  return!!(null!=(i=null==t.options.getIsRowExpanded?void 0:t.options.getIsRowExpanded(e))?i:!0===o||(null==o?void 0:o[e.id]))},getCanExpand:()=>{var i,o,n
5144
5152
  return null!=(i=null==t.options.getRowCanExpand?void 0:t.options.getRowCanExpand(e))?i:(null==(o=t.options.enableExpanding)||o)&&!(null==(n=e.subRows)||!n.length)},getToggleExpandedHandler:()=>{const t=e.getCanExpand()
5145
- return()=>{t&&e.toggleExpanded()}}})},yb=(e,t,i)=>{var o
5153
+ return()=>{t&&e.toggleExpanded()}}})},$b=(e,t,i)=>{var o
5146
5154
  const n=i.toLowerCase()
5147
5155
  return Boolean(null==(o=e.getValue(t))?void 0:o.toLowerCase().includes(n))}
5148
- yb.autoRemove=e=>Eb(e)
5149
- const $b=(e,t,i)=>{var o
5150
- return Boolean(null==(o=e.getValue(t))?void 0:o.includes(i))}
5151
- $b.autoRemove=e=>Eb(e)
5156
+ $b.autoRemove=e=>Ob(e)
5152
5157
  const Cb=(e,t,i)=>{var o
5153
- return(null==(o=e.getValue(t))?void 0:o.toLowerCase())===i.toLowerCase()}
5154
- Cb.autoRemove=e=>Eb(e)
5158
+ return Boolean(null==(o=e.getValue(t))?void 0:o.includes(i))}
5159
+ Cb.autoRemove=e=>Ob(e)
5155
5160
  const kb=(e,t,i)=>{var o
5161
+ return(null==(o=e.getValue(t))?void 0:o.toLowerCase())===i.toLowerCase()}
5162
+ kb.autoRemove=e=>Ob(e)
5163
+ const Sb=(e,t,i)=>{var o
5156
5164
  return null==(o=e.getValue(t))?void 0:o.includes(i)}
5157
- kb.autoRemove=e=>Eb(e)||!(null!=e&&e.length)
5158
- const Sb=(e,t,i)=>!i.some((i=>{var o
5165
+ Sb.autoRemove=e=>Ob(e)||!(null!=e&&e.length)
5166
+ const _b=(e,t,i)=>!i.some((i=>{var o
5159
5167
  return!(null!=(o=e.getValue(t))&&o.includes(i))}))
5160
- Sb.autoRemove=e=>Eb(e)||!(null!=e&&e.length)
5161
- const _b=(e,t,i)=>i.some((i=>{var o
5168
+ _b.autoRemove=e=>Ob(e)||!(null!=e&&e.length)
5169
+ const Ib=(e,t,i)=>i.some((i=>{var o
5162
5170
  return null==(o=e.getValue(t))?void 0:o.includes(i)}))
5163
- _b.autoRemove=e=>Eb(e)||!(null!=e&&e.length)
5164
- const Ib=(e,t,i)=>e.getValue(t)===i
5165
- Ib.autoRemove=e=>Eb(e)
5166
- const Rb=(e,t,i)=>e.getValue(t)==i
5167
- Rb.autoRemove=e=>Eb(e)
5168
- const Mb=(e,t,i)=>{let[o,n]=i
5171
+ Ib.autoRemove=e=>Ob(e)||!(null!=e&&e.length)
5172
+ const Rb=(e,t,i)=>e.getValue(t)===i
5173
+ Rb.autoRemove=e=>Ob(e)
5174
+ const Mb=(e,t,i)=>e.getValue(t)==i
5175
+ Mb.autoRemove=e=>Ob(e)
5176
+ const Ab=(e,t,i)=>{let[o,n]=i
5169
5177
  const s=e.getValue(t)
5170
5178
  return s>=o&&s<=n}
5171
- Mb.resolveFilterValue=e=>{let[t,i]=e,o="number"!=typeof t?parseFloat(t):t,n="number"!=typeof i?parseFloat(i):i,s=null===t||Number.isNaN(o)?-1/0:o,r=null===i||Number.isNaN(n)?1/0:n
5179
+ Ab.resolveFilterValue=e=>{let[t,i]=e,o="number"!=typeof t?parseFloat(t):t,n="number"!=typeof i?parseFloat(i):i,s=null===t||Number.isNaN(o)?-1/0:o,r=null===i||Number.isNaN(n)?1/0:n
5172
5180
  if(s>r){const e=s
5173
- s=r,r=e}return[s,r]},Mb.autoRemove=e=>Eb(e)||Eb(e[0])&&Eb(e[1])
5174
- const Ab={includesString:yb,includesStringSensitive:$b,equalsString:Cb,arrIncludes:kb,arrIncludesAll:Sb,arrIncludesSome:_b,equals:Ib,weakEquals:Rb,inNumberRange:Mb}
5175
- function Eb(e){return null==e||""===e}const Ob={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],globalFilter:void 0,...e}),getDefaultOptions:e=>({onColumnFiltersChange:cb("columnFilters",e),onGlobalFilterChange:cb("globalFilter",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100,globalFilterFn:"auto",getColumnCanGlobalFilter:t=>{var i,o
5181
+ s=r,r=e}return[s,r]},Ab.autoRemove=e=>Ob(e)||Ob(e[0])&&Ob(e[1])
5182
+ const Eb={includesString:$b,includesStringSensitive:Cb,equalsString:kb,arrIncludes:Sb,arrIncludesAll:_b,arrIncludesSome:Ib,equals:Rb,weakEquals:Mb,inNumberRange:Ab}
5183
+ function Ob(e){return null==e||""===e}const Fb={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],globalFilter:void 0,...e}),getDefaultOptions:e=>({onColumnFiltersChange:db("columnFilters",e),onGlobalFilterChange:db("globalFilter",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100,globalFilterFn:"auto",getColumnCanGlobalFilter:t=>{var i,o
5176
5184
  const n=null==(i=e.getCoreRowModel().flatRows[0])||null==(o=i._getAllCellsByColumnId()[t.id])?void 0:o.getValue()
5177
5185
  return"string"==typeof n||"number"==typeof n}}),createColumn:(e,t)=>({getAutoFilterFn:()=>{const i=t.getCoreRowModel().flatRows[0],o=null==i?void 0:i.getValue(e.id)
5178
- return"string"==typeof o?Ab.includesString:"number"==typeof o?Ab.inNumberRange:"boolean"==typeof o||null!==o&&"object"==typeof o?Ab.equals:Array.isArray(o)?Ab.arrIncludes:Ab.weakEquals},getFilterFn:()=>{var i,o
5179
- return db(e.columnDef.filterFn)?e.columnDef.filterFn:"auto"===e.columnDef.filterFn?e.getAutoFilterFn():null!=(i=null==(o=t.options.filterFns)?void 0:o[e.columnDef.filterFn])?i:Ab[e.columnDef.filterFn]},getCanFilter:()=>{var i,o,n
5186
+ return"string"==typeof o?Eb.includesString:"number"==typeof o?Eb.inNumberRange:"boolean"==typeof o||null!==o&&"object"==typeof o?Eb.equals:Array.isArray(o)?Eb.arrIncludes:Eb.weakEquals},getFilterFn:()=>{var i,o
5187
+ return hb(e.columnDef.filterFn)?e.columnDef.filterFn:"auto"===e.columnDef.filterFn?e.getAutoFilterFn():null!=(i=null==(o=t.options.filterFns)?void 0:o[e.columnDef.filterFn])?i:Eb[e.columnDef.filterFn]},getCanFilter:()=>{var i,o,n
5180
5188
  return(null==(i=e.columnDef.enableColumnFilter)||i)&&(null==(o=t.options.enableColumnFilters)||o)&&(null==(n=t.options.enableFilters)||n)&&!!e.accessorFn},getCanGlobalFilter:()=>{var i,o,n,s
5181
5189
  return(null==(i=e.columnDef.enableGlobalFilter)||i)&&(null==(o=t.options.enableGlobalFilter)||o)&&(null==(n=t.options.enableFilters)||n)&&(null==(s=null==t.options.getColumnCanGlobalFilter?void 0:t.options.getColumnCanGlobalFilter(e))||s)&&!!e.accessorFn},getIsFiltered:()=>e.getFilterIndex()>-1,getFilterValue:()=>{var i,o
5182
5190
  return null==(i=t.getState().columnFilters)||null==(o=i.find((t=>t.id===e.id)))?void 0:o.value},getFilterIndex:()=>{var i,o
5183
- return null!=(i=null==(o=t.getState().columnFilters)?void 0:o.findIndex((t=>t.id===e.id)))?i:-1},setFilterValue:i=>{t.setColumnFilters((t=>{const o=e.getFilterFn(),n=null==t?void 0:t.find((t=>t.id===e.id)),s=lb(i,n?n.value:void 0)
5191
+ return null!=(i=null==(o=t.getState().columnFilters)?void 0:o.findIndex((t=>t.id===e.id)))?i:-1},setFilterValue:i=>{t.setColumnFilters((t=>{const o=e.getFilterFn(),n=null==t?void 0:t.find((t=>t.id===e.id)),s=cb(i,n?n.value:void 0)
5184
5192
  var r
5185
- if(Fb(o,s,e))return null!=(r=null==t?void 0:t.filter((t=>t.id!==e.id)))?r:[]
5193
+ if(Vb(o,s,e))return null!=(r=null==t?void 0:t.filter((t=>t.id!==e.id)))?r:[]
5186
5194
  const a={id:e.id,value:s}
5187
5195
  var l
5188
- return n?null!=(l=null==t?void 0:t.map((t=>t.id===e.id?a:t)))?l:[]:null!=t&&t.length?[...t,a]:[a]}))},_getFacetedRowModel:t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,e.id),getFacetedRowModel:()=>e._getFacetedRowModel?e._getFacetedRowModel():t.getPreFilteredRowModel(),_getFacetedUniqueValues:t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,e.id),getFacetedUniqueValues:()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,_getFacetedMinMaxValues:t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,e.id),getFacetedMinMaxValues:()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}}),createRow:(e,t)=>({columnFilters:{},columnFiltersMeta:{}}),createTable:e=>({getGlobalAutoFilterFn:()=>Ab.includesString,getGlobalFilterFn:()=>{var t,i
5196
+ return n?null!=(l=null==t?void 0:t.map((t=>t.id===e.id?a:t)))?l:[]:null!=t&&t.length?[...t,a]:[a]}))},_getFacetedRowModel:t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,e.id),getFacetedRowModel:()=>e._getFacetedRowModel?e._getFacetedRowModel():t.getPreFilteredRowModel(),_getFacetedUniqueValues:t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,e.id),getFacetedUniqueValues:()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,_getFacetedMinMaxValues:t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,e.id),getFacetedMinMaxValues:()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}}),createRow:(e,t)=>({columnFilters:{},columnFiltersMeta:{}}),createTable:e=>({getGlobalAutoFilterFn:()=>Eb.includesString,getGlobalFilterFn:()=>{var t,i
5189
5197
  const{globalFilterFn:o}=e.options
5190
- return db(o)?o:"auto"===o?e.getGlobalAutoFilterFn():null!=(t=null==(i=e.options.filterFns)?void 0:i[o])?t:Ab[o]},setColumnFilters:t=>{const i=e.getAllLeafColumns()
5198
+ return hb(o)?o:"auto"===o?e.getGlobalAutoFilterFn():null!=(t=null==(i=e.options.filterFns)?void 0:i[o])?t:Eb[o]},setColumnFilters:t=>{const i=e.getAllLeafColumns()
5191
5199
  null==e.options.onColumnFiltersChange||e.options.onColumnFiltersChange((e=>{var o
5192
- return null==(o=lb(t,e))?void 0:o.filter((e=>{const t=i.find((t=>t.id===e.id))
5193
- if(t){if(Fb(t.getFilterFn(),e.value,t))return!1}return!0}))}))},setGlobalFilter:t=>{null==e.options.onGlobalFilterChange||e.options.onGlobalFilterChange(t)},resetGlobalFilter:t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)},resetColumnFilters:t=>{var i,o
5200
+ return null==(o=cb(t,e))?void 0:o.filter((e=>{const t=i.find((t=>t.id===e.id))
5201
+ if(t){if(Vb(t.getFilterFn(),e.value,t))return!1}return!0}))}))},setGlobalFilter:t=>{null==e.options.onGlobalFilterChange||e.options.onGlobalFilterChange(t)},resetGlobalFilter:t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)},resetColumnFilters:t=>{var i,o
5194
5202
  e.setColumnFilters(t?[]:null!=(i=null==(o=e.initialState)?void 0:o.columnFilters)?i:[])},getPreFilteredRowModel:()=>e.getCoreRowModel(),getFilteredRowModel:()=>(!e._getFilteredRowModel&&e.options.getFilteredRowModel&&(e._getFilteredRowModel=e.options.getFilteredRowModel(e)),e.options.manualFiltering||!e._getFilteredRowModel?e.getPreFilteredRowModel():e._getFilteredRowModel()),_getGlobalFacetedRowModel:e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,"__global__"),getGlobalFacetedRowModel:()=>e.options.manualFiltering||!e._getGlobalFacetedRowModel?e.getPreFilteredRowModel():e._getGlobalFacetedRowModel(),_getGlobalFacetedUniqueValues:e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,"__global__"),getGlobalFacetedUniqueValues:()=>e._getGlobalFacetedUniqueValues?e._getGlobalFacetedUniqueValues():new Map,_getGlobalFacetedMinMaxValues:e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,"__global__"),getGlobalFacetedMinMaxValues:()=>{if(e._getGlobalFacetedMinMaxValues)return e._getGlobalFacetedMinMaxValues()}})}
5195
- function Fb(e,t,i){return!(!e||!e.autoRemove)&&e.autoRemove(t,i)||void 0===t||"string"==typeof t&&!t}const Vb={sum:(e,t,i)=>i.reduce(((t,i)=>{const o=i.getValue(e)
5203
+ function Vb(e,t,i){return!(!e||!e.autoRemove)&&e.autoRemove(t,i)||void 0===t||"string"==typeof t&&!t}const Hb={sum:(e,t,i)=>i.reduce(((t,i)=>{const o=i.getValue(e)
5196
5204
  return t+("number"==typeof o?o:0)}),0),min:(e,t,i)=>{let o
5197
5205
  return i.forEach((t=>{const i=t.getValue(e)
5198
5206
  null!=i&&(o>i||void 0===o&&i>=i)&&(o=i)})),o},max:(e,t,i)=>{let o
@@ -5205,13 +5213,13 @@ null!=n&&(n=+n)>=n&&(++i,o+=n)})),i)return o/i},median:(e,t)=>{if(!t.length)retu
5205
5213
  let i=0,o=0
5206
5214
  return t.forEach((t=>{let n=t.getValue(e)
5207
5215
  "number"==typeof n&&(i=Math.min(i,n),o=Math.max(o,n))})),(i+o)/2},unique:(e,t)=>Array.from(new Set(t.map((t=>t.getValue(e)))).values()),uniqueCount:(e,t)=>new Set(t.map((t=>t.getValue(e)))).size,count:(e,t)=>t.length}
5208
- const Hb={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:cb("rowSelection",e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>({setRowSelection:t=>null==e.options.onRowSelectionChange?void 0:e.options.onRowSelectionChange(t),resetRowSelection:t=>{var i
5216
+ const Pb={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:db("rowSelection",e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>({setRowSelection:t=>null==e.options.onRowSelectionChange?void 0:e.options.onRowSelectionChange(t),resetRowSelection:t=>{var i
5209
5217
  return e.setRowSelection(t?{}:null!=(i=e.initialState.rowSelection)?i:{})},toggleAllRowsSelected:t=>{e.setRowSelection((i=>{t=void 0!==t?t:!e.getIsAllRowsSelected()
5210
5218
  const o={...i},n=e.getPreGroupedRowModel().flatRows
5211
5219
  return t?n.forEach((e=>{e.getCanSelect()&&(o[e.id]=!0)})):n.forEach((e=>{delete o[e.id]})),o}))},toggleAllPageRowsSelected:t=>e.setRowSelection((i=>{const o=void 0!==t?t:!e.getIsAllPageRowsSelected(),n={...i}
5212
- return e.getRowModel().rows.forEach((t=>{Pb(n,t.id,o,e)})),n})),getPreSelectedRowModel:()=>e.getCoreRowModel(),getSelectedRowModel:ub((()=>[e.getState().rowSelection,e.getCoreRowModel()]),((t,i)=>Object.keys(t).length?Tb(e,i):{rows:[],flatRows:[],rowsById:{}}),{key:!1,debug:()=>{var t
5213
- return null!=(t=e.options.debugAll)?t:e.options.debugTable}}),getFilteredSelectedRowModel:ub((()=>[e.getState().rowSelection,e.getFilteredRowModel()]),((t,i)=>Object.keys(t).length?Tb(e,i):{rows:[],flatRows:[],rowsById:{}}),{key:"getFilteredSelectedRowModel",debug:()=>{var t
5214
- return null!=(t=e.options.debugAll)?t:e.options.debugTable}}),getGroupedSelectedRowModel:ub((()=>[e.getState().rowSelection,e.getSortedRowModel()]),((t,i)=>Object.keys(t).length?Tb(e,i):{rows:[],flatRows:[],rowsById:{}}),{key:"getGroupedSelectedRowModel",debug:()=>{var t
5220
+ return e.getRowModel().rows.forEach((t=>{Tb(n,t.id,o,e)})),n})),getPreSelectedRowModel:()=>e.getCoreRowModel(),getSelectedRowModel:pb((()=>[e.getState().rowSelection,e.getCoreRowModel()]),((t,i)=>Object.keys(t).length?Db(e,i):{rows:[],flatRows:[],rowsById:{}}),{key:!1,debug:()=>{var t
5221
+ return null!=(t=e.options.debugAll)?t:e.options.debugTable}}),getFilteredSelectedRowModel:pb((()=>[e.getState().rowSelection,e.getFilteredRowModel()]),((t,i)=>Object.keys(t).length?Db(e,i):{rows:[],flatRows:[],rowsById:{}}),{key:"getFilteredSelectedRowModel",debug:()=>{var t
5222
+ return null!=(t=e.options.debugAll)?t:e.options.debugTable}}),getGroupedSelectedRowModel:pb((()=>[e.getState().rowSelection,e.getSortedRowModel()]),((t,i)=>Object.keys(t).length?Db(e,i):{rows:[],flatRows:[],rowsById:{}}),{key:"getGroupedSelectedRowModel",debug:()=>{var t
5215
5223
  return null!=(t=e.options.debugAll)?t:e.options.debugTable}}),getIsAllRowsSelected:()=>{const t=e.getFilteredRowModel().flatRows,{rowSelection:i}=e.getState()
5216
5224
  let o=Boolean(t.length&&Object.keys(i).length)
5217
5225
  return o&&t.some((e=>e.getCanSelect()&&!i[e.id]))&&(o=!1),o},getIsAllPageRowsSelected:()=>{const t=e.getPaginationRowModel().flatRows,{rowSelection:i}=e.getState()
@@ -5222,71 +5230,71 @@ return i>0&&i<e.getFilteredRowModel().flatRows.length},getIsSomePageRowsSelected
5222
5230
  return!e.getIsAllPageRowsSelected()&&t.some((e=>e.getIsSelected()||e.getIsSomeSelected()))},getToggleAllRowsSelectedHandler:()=>t=>{e.toggleAllRowsSelected(t.target.checked)},getToggleAllPageRowsSelectedHandler:()=>t=>{e.toggleAllPageRowsSelected(t.target.checked)}}),createRow:(e,t)=>({toggleSelected:i=>{const o=e.getIsSelected()
5223
5231
  t.setRowSelection((n=>{if(o===(i=void 0!==i?i:!o))return n
5224
5232
  const s={...n}
5225
- return Pb(s,e.id,i,t),s}))},getIsSelected:()=>{const{rowSelection:i}=t.getState()
5226
- return Db(e,i)},getIsSomeSelected:()=>{const{rowSelection:i}=t.getState()
5227
- return"some"===Lb(e,i)},getIsAllSubRowsSelected:()=>{const{rowSelection:i}=t.getState()
5228
- return"all"===Lb(e,i)},getCanSelect:()=>{var i
5233
+ return Tb(s,e.id,i,t),s}))},getIsSelected:()=>{const{rowSelection:i}=t.getState()
5234
+ return Lb(e,i)},getIsSomeSelected:()=>{const{rowSelection:i}=t.getState()
5235
+ return"some"===zb(e,i)},getIsAllSubRowsSelected:()=>{const{rowSelection:i}=t.getState()
5236
+ return"all"===zb(e,i)},getCanSelect:()=>{var i
5229
5237
  return"function"==typeof t.options.enableRowSelection?t.options.enableRowSelection(e):null==(i=t.options.enableRowSelection)||i},getCanSelectSubRows:()=>{var i
5230
5238
  return"function"==typeof t.options.enableSubRowSelection?t.options.enableSubRowSelection(e):null==(i=t.options.enableSubRowSelection)||i},getCanMultiSelect:()=>{var i
5231
5239
  return"function"==typeof t.options.enableMultiRowSelection?t.options.enableMultiRowSelection(e):null==(i=t.options.enableMultiRowSelection)||i},getToggleSelectedHandler:()=>{const t=e.getCanSelect()
5232
5240
  return i=>{var o
5233
- t&&e.toggleSelected(null==(o=i.target)?void 0:o.checked)}}})},Pb=(e,t,i,o)=>{var n
5241
+ t&&e.toggleSelected(null==(o=i.target)?void 0:o.checked)}}})},Tb=(e,t,i,o)=>{var n
5234
5242
  const s=o.getRow(t)
5235
- i?(s.getCanMultiSelect()||Object.keys(e).forEach((t=>delete e[t])),s.getCanSelect()&&(e[t]=!0)):delete e[t],null!=(n=s.subRows)&&n.length&&s.getCanSelectSubRows()&&s.subRows.forEach((t=>Pb(e,t.id,i,o)))}
5236
- function Tb(e,t){const i=e.getState().rowSelection,o=[],n={},s=function(e,t){return e.map((e=>{var t
5237
- const r=Db(e,i)
5243
+ i?(s.getCanMultiSelect()||Object.keys(e).forEach((t=>delete e[t])),s.getCanSelect()&&(e[t]=!0)):delete e[t],null!=(n=s.subRows)&&n.length&&s.getCanSelectSubRows()&&s.subRows.forEach((t=>Tb(e,t.id,i,o)))}
5244
+ function Db(e,t){const i=e.getState().rowSelection,o=[],n={},s=function(e,t){return e.map((e=>{var t
5245
+ const r=Lb(e,i)
5238
5246
  if(r&&(o.push(e),n[e.id]=e),null!=(t=e.subRows)&&t.length&&(e={...e,subRows:s(e.subRows)}),r)return e})).filter(Boolean)}
5239
- return{rows:s(t.rows),flatRows:o,rowsById:n}}function Db(e,t){var i
5240
- return null!=(i=t[e.id])&&i}function Lb(e,t,i){if(e.subRows&&e.subRows.length){let i=!0,o=!1
5241
- return e.subRows.forEach((e=>{o&&!i||(Db(e,t)?o=!0:i=!1)})),i?"all":!!o&&"some"}return!1}const zb=/([0-9]+)/gm
5242
- function Bb(e,t){return e===t?0:e>t?1:-1}function Nb(e){return"number"==typeof e?isNaN(e)||e===1/0||e===-1/0?"":String(e):"string"==typeof e?e:""}function Zb(e,t){const i=e.split(zb).filter(Boolean),o=t.split(zb).filter(Boolean)
5247
+ return{rows:s(t.rows),flatRows:o,rowsById:n}}function Lb(e,t){var i
5248
+ return null!=(i=t[e.id])&&i}function zb(e,t,i){if(e.subRows&&e.subRows.length){let i=!0,o=!1
5249
+ return e.subRows.forEach((e=>{o&&!i||(Lb(e,t)?o=!0:i=!1)})),i?"all":!!o&&"some"}return!1}const Bb=/([0-9]+)/gm
5250
+ function Nb(e,t){return e===t?0:e>t?1:-1}function Zb(e){return"number"==typeof e?isNaN(e)||e===1/0||e===-1/0?"":String(e):"string"==typeof e?e:""}function qb(e,t){const i=e.split(Bb).filter(Boolean),o=t.split(Bb).filter(Boolean)
5243
5251
  for(;i.length&&o.length;){const e=i.shift(),t=o.shift(),n=parseInt(e,10),s=parseInt(t,10),r=[n,s].sort()
5244
5252
  if(isNaN(r[0])){if(e>t)return 1
5245
5253
  if(t>e)return-1}else{if(isNaN(r[1]))return isNaN(n)?-1:1
5246
5254
  if(n>s)return 1
5247
- if(s>n)return-1}}return i.length-o.length}const qb={alphanumeric:(e,t,i)=>Zb(Nb(e.getValue(i)).toLowerCase(),Nb(t.getValue(i)).toLowerCase()),alphanumericCaseSensitive:(e,t,i)=>Zb(Nb(e.getValue(i)),Nb(t.getValue(i))),text:(e,t,i)=>Bb(Nb(e.getValue(i)).toLowerCase(),Nb(t.getValue(i)).toLowerCase()),textCaseSensitive:(e,t,i)=>Bb(Nb(e.getValue(i)),Nb(t.getValue(i))),datetime:(e,t,i)=>{const o=e.getValue(i),n=t.getValue(i)
5248
- return o>n?1:o<n?-1:0},basic:(e,t,i)=>Bb(e.getValue(i),t.getValue(i))},Ub=[gb,{getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:cb("columnVisibility",e)}),createColumn:(e,t)=>({toggleVisibility:i=>{e.getCanHide()&&t.setColumnVisibility((t=>({...t,[e.id]:null!=i?i:!e.getIsVisible()})))},getIsVisible:()=>{var i,o
5255
+ if(s>n)return-1}}return i.length-o.length}const Ub={alphanumeric:(e,t,i)=>qb(Zb(e.getValue(i)).toLowerCase(),Zb(t.getValue(i)).toLowerCase()),alphanumericCaseSensitive:(e,t,i)=>qb(Zb(e.getValue(i)),Zb(t.getValue(i))),text:(e,t,i)=>Nb(Zb(e.getValue(i)).toLowerCase(),Zb(t.getValue(i)).toLowerCase()),textCaseSensitive:(e,t,i)=>Nb(Zb(e.getValue(i)),Zb(t.getValue(i))),datetime:(e,t,i)=>{const o=e.getValue(i),n=t.getValue(i)
5256
+ return o>n?1:o<n?-1:0},basic:(e,t,i)=>Nb(e.getValue(i),t.getValue(i))},jb=[vb,{getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:db("columnVisibility",e)}),createColumn:(e,t)=>({toggleVisibility:i=>{e.getCanHide()&&t.setColumnVisibility((t=>({...t,[e.id]:null!=i?i:!e.getIsVisible()})))},getIsVisible:()=>{var i,o
5249
5257
  return null==(i=null==(o=t.getState().columnVisibility)?void 0:o[e.id])||i},getCanHide:()=>{var i,o
5250
- return(null==(i=e.columnDef.enableHiding)||i)&&(null==(o=t.options.enableHiding)||o)},getToggleVisibilityHandler:()=>t=>{null==e.toggleVisibility||e.toggleVisibility(t.target.checked)}}),createRow:(e,t)=>({_getAllVisibleCells:ub((()=>[e.getAllCells(),t.getState().columnVisibility]),(e=>e.filter((e=>e.column.getIsVisible()))),{key:"row._getAllVisibleCells",debug:()=>{var e
5251
- return null!=(e=t.options.debugAll)?e:t.options.debugRows}}),getVisibleCells:ub((()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()]),((e,t,i)=>[...e,...t,...i]),{key:!1,debug:()=>{var e
5252
- return null!=(e=t.options.debugAll)?e:t.options.debugRows}})}),createTable:e=>{const t=(t,i)=>ub((()=>[i(),i().filter((e=>e.getIsVisible())).map((e=>e.id)).join("_")]),(e=>e.filter((e=>null==e.getIsVisible?void 0:e.getIsVisible()))),{key:t,debug:()=>{var t
5258
+ return(null==(i=e.columnDef.enableHiding)||i)&&(null==(o=t.options.enableHiding)||o)},getToggleVisibilityHandler:()=>t=>{null==e.toggleVisibility||e.toggleVisibility(t.target.checked)}}),createRow:(e,t)=>({_getAllVisibleCells:pb((()=>[e.getAllCells(),t.getState().columnVisibility]),(e=>e.filter((e=>e.column.getIsVisible()))),{key:"row._getAllVisibleCells",debug:()=>{var e
5259
+ return null!=(e=t.options.debugAll)?e:t.options.debugRows}}),getVisibleCells:pb((()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()]),((e,t,i)=>[...e,...t,...i]),{key:!1,debug:()=>{var e
5260
+ return null!=(e=t.options.debugAll)?e:t.options.debugRows}})}),createTable:e=>{const t=(t,i)=>pb((()=>[i(),i().filter((e=>e.getIsVisible())).map((e=>e.id)).join("_")]),(e=>e.filter((e=>null==e.getIsVisible?void 0:e.getIsVisible()))),{key:t,debug:()=>{var t
5253
5261
  return null!=(t=e.options.debugAll)?t:e.options.debugColumns}})
5254
5262
  return{getVisibleFlatColumns:t("getVisibleFlatColumns",(()=>e.getAllFlatColumns())),getVisibleLeafColumns:t("getVisibleLeafColumns",(()=>e.getAllLeafColumns())),getLeftVisibleLeafColumns:t("getLeftVisibleLeafColumns",(()=>e.getLeftLeafColumns())),getRightVisibleLeafColumns:t("getRightVisibleLeafColumns",(()=>e.getRightLeafColumns())),getCenterVisibleLeafColumns:t("getCenterVisibleLeafColumns",(()=>e.getCenterLeafColumns())),setColumnVisibility:t=>null==e.options.onColumnVisibilityChange?void 0:e.options.onColumnVisibilityChange(t),resetColumnVisibility:t=>{var i
5255
5263
  e.setColumnVisibility(t?{}:null!=(i=e.initialState.columnVisibility)?i:{})},toggleAllColumnsVisible:t=>{var i
5256
5264
  t=null!=(i=t)?i:!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce(((e,i)=>({...e,[i.id]:t||!(null!=i.getCanHide&&i.getCanHide())})),{}))},getIsAllColumnsVisible:()=>!e.getAllLeafColumns().some((e=>!(null!=e.getIsVisible&&e.getIsVisible()))),getIsSomeColumnsVisible:()=>e.getAllLeafColumns().some((e=>null==e.getIsVisible?void 0:e.getIsVisible())),getToggleAllColumnsVisibilityHandler:()=>t=>{var i
5257
- e.toggleAllColumnsVisible(null==(i=t.target)?void 0:i.checked)}}}},{getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:cb("columnOrder",e)}),createTable:e=>({setColumnOrder:t=>null==e.options.onColumnOrderChange?void 0:e.options.onColumnOrderChange(t),resetColumnOrder:t=>{var i
5258
- e.setColumnOrder(t?[]:null!=(i=e.initialState.columnOrder)?i:[])},_getOrderColumnsFn:ub((()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode]),((e,t,i)=>o=>{let n=[]
5265
+ e.toggleAllColumnsVisible(null==(i=t.target)?void 0:i.checked)}}}},{getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:db("columnOrder",e)}),createTable:e=>({setColumnOrder:t=>null==e.options.onColumnOrderChange?void 0:e.options.onColumnOrderChange(t),resetColumnOrder:t=>{var i
5266
+ e.setColumnOrder(t?[]:null!=(i=e.initialState.columnOrder)?i:[])},_getOrderColumnsFn:pb((()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode]),((e,t,i)=>o=>{let n=[]
5259
5267
  if(null!=e&&e.length){const t=[...e],i=[...o]
5260
5268
  for(;i.length&&t.length;){const e=t.shift(),o=i.findIndex((t=>t.id===e))
5261
5269
  o>-1&&n.push(i.splice(o,1)[0])}n=[...n,...i]}else n=o
5262
5270
  return function(e,t,i){if(null==t||!t.length||!i)return e
5263
5271
  const o=e.filter((e=>!t.includes(e.id)))
5264
- return"remove"===i?o:[...t.map((t=>e.find((e=>e.id===t)))).filter(Boolean),...o]}(n,t,i)}),{key:!1})})},{getInitialState:e=>({columnPinning:{left:[],right:[]},...e}),getDefaultOptions:e=>({onColumnPinningChange:cb("columnPinning",e)}),createColumn:(e,t)=>({pin:i=>{const o=e.getLeafColumns().map((e=>e.id)).filter(Boolean)
5272
+ return"remove"===i?o:[...t.map((t=>e.find((e=>e.id===t)))).filter(Boolean),...o]}(n,t,i)}),{key:!1})})},{getInitialState:e=>({columnPinning:{left:[],right:[]},...e}),getDefaultOptions:e=>({onColumnPinningChange:db("columnPinning",e)}),createColumn:(e,t)=>({pin:i=>{const o=e.getLeafColumns().map((e=>e.id)).filter(Boolean)
5265
5273
  t.setColumnPinning((e=>{var t,n,s,r,a,l
5266
5274
  return"right"===i?{left:(null!=(s=null==e?void 0:e.left)?s:[]).filter((e=>!(null!=o&&o.includes(e)))),right:[...(null!=(r=null==e?void 0:e.right)?r:[]).filter((e=>!(null!=o&&o.includes(e)))),...o]}:"left"===i?{left:[...(null!=(a=null==e?void 0:e.left)?a:[]).filter((e=>!(null!=o&&o.includes(e)))),...o],right:(null!=(l=null==e?void 0:e.right)?l:[]).filter((e=>!(null!=o&&o.includes(e))))}:{left:(null!=(t=null==e?void 0:e.left)?t:[]).filter((e=>!(null!=o&&o.includes(e)))),right:(null!=(n=null==e?void 0:e.right)?n:[]).filter((e=>!(null!=o&&o.includes(e))))}}))},getCanPin:()=>e.getLeafColumns().some((e=>{var i,o
5267
5275
  return(null==(i=e.columnDef.enablePinning)||i)&&(null==(o=t.options.enablePinning)||o)})),getIsPinned:()=>{const i=e.getLeafColumns().map((e=>e.id)),{left:o,right:n}=t.getState().columnPinning,s=i.some((e=>null==o?void 0:o.includes(e))),r=i.some((e=>null==n?void 0:n.includes(e)))
5268
5276
  return s?"left":!!r&&"right"},getPinnedIndex:()=>{var i,o,n
5269
5277
  const s=e.getIsPinned()
5270
- return s?null!=(i=null==(o=t.getState().columnPinning)||null==(n=o[s])?void 0:n.indexOf(e.id))?i:-1:0}}),createRow:(e,t)=>({getCenterVisibleCells:ub((()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right]),((e,t,i)=>{const o=[...null!=t?t:[],...null!=i?i:[]]
5278
+ return s?null!=(i=null==(o=t.getState().columnPinning)||null==(n=o[s])?void 0:n.indexOf(e.id))?i:-1:0}}),createRow:(e,t)=>({getCenterVisibleCells:pb((()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right]),((e,t,i)=>{const o=[...null!=t?t:[],...null!=i?i:[]]
5271
5279
  return e.filter((e=>!o.includes(e.column.id)))}),{key:"row.getCenterVisibleCells",debug:()=>{var e
5272
- return null!=(e=t.options.debugAll)?e:t.options.debugRows}}),getLeftVisibleCells:ub((()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,,]),((e,t)=>(null!=t?t:[]).map((t=>e.find((e=>e.column.id===t)))).filter(Boolean).map((e=>({...e,position:"left"})))),{key:"row.getLeftVisibleCells",debug:()=>{var e
5273
- return null!=(e=t.options.debugAll)?e:t.options.debugRows}}),getRightVisibleCells:ub((()=>[e._getAllVisibleCells(),t.getState().columnPinning.right]),((e,t)=>(null!=t?t:[]).map((t=>e.find((e=>e.column.id===t)))).filter(Boolean).map((e=>({...e,position:"right"})))),{key:"row.getRightVisibleCells",debug:()=>{var e
5280
+ return null!=(e=t.options.debugAll)?e:t.options.debugRows}}),getLeftVisibleCells:pb((()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,,]),((e,t)=>(null!=t?t:[]).map((t=>e.find((e=>e.column.id===t)))).filter(Boolean).map((e=>({...e,position:"left"})))),{key:"row.getLeftVisibleCells",debug:()=>{var e
5281
+ return null!=(e=t.options.debugAll)?e:t.options.debugRows}}),getRightVisibleCells:pb((()=>[e._getAllVisibleCells(),t.getState().columnPinning.right]),((e,t)=>(null!=t?t:[]).map((t=>e.find((e=>e.column.id===t)))).filter(Boolean).map((e=>({...e,position:"right"})))),{key:"row.getRightVisibleCells",debug:()=>{var e
5274
5282
  return null!=(e=t.options.debugAll)?e:t.options.debugRows}})}),createTable:e=>({setColumnPinning:t=>null==e.options.onColumnPinningChange?void 0:e.options.onColumnPinningChange(t),resetColumnPinning:t=>{var i,o
5275
5283
  return e.setColumnPinning(t?{left:[],right:[]}:null!=(i=null==(o=e.initialState)?void 0:o.columnPinning)?i:{left:[],right:[]})},getIsSomeColumnsPinned:t=>{var i
5276
5284
  const o=e.getState().columnPinning
5277
5285
  var n,s
5278
- return t?Boolean(null==(i=o[t])?void 0:i.length):Boolean((null==(n=o.left)?void 0:n.length)||(null==(s=o.right)?void 0:s.length))},getLeftLeafColumns:ub((()=>[e.getAllLeafColumns(),e.getState().columnPinning.left]),((e,t)=>(null!=t?t:[]).map((t=>e.find((e=>e.id===t)))).filter(Boolean)),{key:!1,debug:()=>{var t
5279
- return null!=(t=e.options.debugAll)?t:e.options.debugColumns}}),getRightLeafColumns:ub((()=>[e.getAllLeafColumns(),e.getState().columnPinning.right]),((e,t)=>(null!=t?t:[]).map((t=>e.find((e=>e.id===t)))).filter(Boolean)),{key:!1,debug:()=>{var t
5280
- return null!=(t=e.options.debugAll)?t:e.options.debugColumns}}),getCenterLeafColumns:ub((()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right]),((e,t,i)=>{const o=[...null!=t?t:[],...null!=i?i:[]]
5286
+ return t?Boolean(null==(i=o[t])?void 0:i.length):Boolean((null==(n=o.left)?void 0:n.length)||(null==(s=o.right)?void 0:s.length))},getLeftLeafColumns:pb((()=>[e.getAllLeafColumns(),e.getState().columnPinning.left]),((e,t)=>(null!=t?t:[]).map((t=>e.find((e=>e.id===t)))).filter(Boolean)),{key:!1,debug:()=>{var t
5287
+ return null!=(t=e.options.debugAll)?t:e.options.debugColumns}}),getRightLeafColumns:pb((()=>[e.getAllLeafColumns(),e.getState().columnPinning.right]),((e,t)=>(null!=t?t:[]).map((t=>e.find((e=>e.id===t)))).filter(Boolean)),{key:!1,debug:()=>{var t
5288
+ return null!=(t=e.options.debugAll)?t:e.options.debugColumns}}),getCenterLeafColumns:pb((()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right]),((e,t,i)=>{const o=[...null!=t?t:[],...null!=i?i:[]]
5281
5289
  return e.filter((e=>!o.includes(e.id)))}),{key:!1,debug:()=>{var t
5282
- return null!=(t=e.options.debugAll)?t:e.options.debugColumns}})})},Ob,{getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto"}),getDefaultOptions:e=>({onSortingChange:cb("sorting",e),isMultiSortEvent:e=>e.shiftKey}),createColumn:(e,t)=>({getAutoSortingFn:()=>{const i=t.getFilteredRowModel().flatRows.slice(10)
5290
+ return null!=(t=e.options.debugAll)?t:e.options.debugColumns}})})},Fb,{getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto"}),getDefaultOptions:e=>({onSortingChange:db("sorting",e),isMultiSortEvent:e=>e.shiftKey}),createColumn:(e,t)=>({getAutoSortingFn:()=>{const i=t.getFilteredRowModel().flatRows.slice(10)
5283
5291
  let o=!1
5284
5292
  for(const t of i){const i=null==t?void 0:t.getValue(e.id)
5285
- if("[object Date]"===Object.prototype.toString.call(i))return qb.datetime
5286
- if("string"==typeof i&&(o=!0,i.split(zb).length>1))return qb.alphanumeric}return o?qb.text:qb.basic},getAutoSortDir:()=>{const i=t.getFilteredRowModel().flatRows[0]
5293
+ if("[object Date]"===Object.prototype.toString.call(i))return Ub.datetime
5294
+ if("string"==typeof i&&(o=!0,i.split(Bb).length>1))return Ub.alphanumeric}return o?Ub.text:Ub.basic},getAutoSortDir:()=>{const i=t.getFilteredRowModel().flatRows[0]
5287
5295
  return"string"==typeof(null==i?void 0:i.getValue(e.id))?"asc":"desc"},getSortingFn:()=>{var i,o
5288
5296
  if(!e)throw new Error
5289
- return db(e.columnDef.sortingFn)?e.columnDef.sortingFn:"auto"===e.columnDef.sortingFn?e.getAutoSortingFn():null!=(i=null==(o=t.options.sortingFns)?void 0:o[e.columnDef.sortingFn])?i:qb[e.columnDef.sortingFn]},toggleSorting:(i,o)=>{const n=e.getNextSortingOrder(),s=null!=i
5297
+ return hb(e.columnDef.sortingFn)?e.columnDef.sortingFn:"auto"===e.columnDef.sortingFn?e.getAutoSortingFn():null!=(i=null==(o=t.options.sortingFns)?void 0:o[e.columnDef.sortingFn])?i:Ub[e.columnDef.sortingFn]},toggleSorting:(i,o)=>{const n=e.getNextSortingOrder(),s=null!=i
5290
5298
  t.setSorting((r=>{const a=null==r?void 0:r.find((t=>t.id===e.id)),l=null==r?void 0:r.findIndex((t=>t.id===e.id))
5291
5299
  let c,d=[],h=s?i:"desc"===n
5292
5300
  var u;(c=null!=r&&r.length&&e.getCanMultiSort()&&o?a?"toggle":"add":null!=r&&r.length&&l!==r.length-1?"replace":a?"toggle":"replace","toggle"===c&&(s||n||(c="remove")),"add"===c)?(d=[...r,{id:e.id,desc:h}],d.splice(0,d.length-(null!=(u=t.options.maxMultiSortColCount)?u:Number.MAX_SAFE_INTEGER))):d="toggle"===c?r.map((t=>t.id===e.id?{...t,desc:h}:t)):"remove"===c?r.filter((t=>t.id!==e.id)):[{id:e.id,desc:h}]
@@ -5301,86 +5309,86 @@ return!!o&&(o.desc?"desc":"asc")},getSortIndex:()=>{var i,o
5301
5309
  return null!=(i=null==(o=t.getState().sorting)?void 0:o.findIndex((t=>t.id===e.id)))?i:-1},clearSorting:()=>{t.setSorting((t=>null!=t&&t.length?t.filter((t=>t.id!==e.id)):[]))},getToggleSortingHandler:()=>{const i=e.getCanSort()
5302
5310
  return o=>{i&&(null==o.persist||o.persist(),null==e.toggleSorting||e.toggleSorting(void 0,!!e.getCanMultiSort()&&(null==t.options.isMultiSortEvent?void 0:t.options.isMultiSortEvent(o))))}}}),createTable:e=>({setSorting:t=>null==e.options.onSortingChange?void 0:e.options.onSortingChange(t),resetSorting:t=>{var i,o
5303
5311
  e.setSorting(t?[]:null!=(i=null==(o=e.initialState)?void 0:o.sorting)?i:[])},getPreSortedRowModel:()=>e.getGroupedRowModel(),getSortedRowModel:()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel?e.getPreSortedRowModel():e._getSortedRowModel())})},{getDefaultColumnDef:()=>({aggregatedCell:e=>{var t,i
5304
- return null!=(t=null==(i=e.getValue())||null==i.toString?void 0:i.toString())?t:null},aggregationFn:"auto"}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:cb("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,t)=>({toggleGrouping:()=>{t.setGrouping((t=>null!=t&&t.includes(e.id)?t.filter((t=>t!==e.id)):[...null!=t?t:[],e.id]))},getCanGroup:()=>{var i,o,n,s
5312
+ return null!=(t=null==(i=e.getValue())||null==i.toString?void 0:i.toString())?t:null},aggregationFn:"auto"}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:db("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,t)=>({toggleGrouping:()=>{t.setGrouping((t=>null!=t&&t.includes(e.id)?t.filter((t=>t!==e.id)):[...null!=t?t:[],e.id]))},getCanGroup:()=>{var i,o,n,s
5305
5313
  return null!=(i=null==(o=null!=(n=null==(s=e.columnDef.enableGrouping)||s)?n:t.options.enableGrouping)||o)?i:!!e.accessorFn},getIsGrouped:()=>{var i
5306
5314
  return null==(i=t.getState().grouping)?void 0:i.includes(e.id)},getGroupedIndex:()=>{var i
5307
5315
  return null==(i=t.getState().grouping)?void 0:i.indexOf(e.id)},getToggleGroupingHandler:()=>{const t=e.getCanGroup()
5308
5316
  return()=>{t&&e.toggleGrouping()}},getAutoAggregationFn:()=>{const i=t.getCoreRowModel().flatRows[0],o=null==i?void 0:i.getValue(e.id)
5309
- return"number"==typeof o?Vb.sum:"[object Date]"===Object.prototype.toString.call(o)?Vb.extent:void 0},getAggregationFn:()=>{var i,o
5317
+ return"number"==typeof o?Hb.sum:"[object Date]"===Object.prototype.toString.call(o)?Hb.extent:void 0},getAggregationFn:()=>{var i,o
5310
5318
  if(!e)throw new Error
5311
- return db(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:"auto"===e.columnDef.aggregationFn?e.getAutoAggregationFn():null!=(i=null==(o=t.options.aggregationFns)?void 0:o[e.columnDef.aggregationFn])?i:Vb[e.columnDef.aggregationFn]}}),createTable:e=>({setGrouping:t=>null==e.options.onGroupingChange?void 0:e.options.onGroupingChange(t),resetGrouping:t=>{var i,o
5319
+ return hb(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:"auto"===e.columnDef.aggregationFn?e.getAutoAggregationFn():null!=(i=null==(o=t.options.aggregationFns)?void 0:o[e.columnDef.aggregationFn])?i:Hb[e.columnDef.aggregationFn]}}),createTable:e=>({setGrouping:t=>null==e.options.onGroupingChange?void 0:e.options.onGroupingChange(t),resetGrouping:t=>{var i,o
5312
5320
  e.setGrouping(t?[]:null!=(i=null==(o=e.initialState)?void 0:o.grouping)?i:[])},getPreGroupedRowModel:()=>e.getFilteredRowModel(),getGroupedRowModel:()=>(!e._getGroupedRowModel&&e.options.getGroupedRowModel&&(e._getGroupedRowModel=e.options.getGroupedRowModel(e)),e.options.manualGrouping||!e._getGroupedRowModel?e.getPreGroupedRowModel():e._getGroupedRowModel())}),createRow:e=>({getIsGrouped:()=>!!e.groupingColumnId,_groupingValuesCache:{}}),createCell:(e,t,i,o)=>({getIsGrouped:()=>t.getIsGrouped()&&t.id===i.groupingColumnId,getIsPlaceholder:()=>!e.getIsGrouped()&&t.getIsGrouped(),getIsAggregated:()=>{var t
5313
- return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!(null==(t=i.subRows)||!t.length)}})},xb,{getInitialState:e=>({...e,pagination:{pageIndex:0,pageSize:10,...null==e?void 0:e.pagination}}),getDefaultOptions:e=>({onPaginationChange:cb("pagination",e)}),createTable:e=>{let t=!1,i=!1
5321
+ return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!(null==(t=i.subRows)||!t.length)}})},yb,{getInitialState:e=>({...e,pagination:{pageIndex:0,pageSize:10,...null==e?void 0:e.pagination}}),getDefaultOptions:e=>({onPaginationChange:db("pagination",e)}),createTable:e=>{let t=!1,i=!1
5314
5322
  return{_autoResetPageIndex:()=>{var o,n
5315
5323
  if(t){if(null!=(o=null!=(n=e.options.autoResetAll)?n:e.options.autoResetPageIndex)?o:!e.options.manualPagination){if(i)return
5316
- i=!0,e._queue((()=>{e.resetPageIndex(),i=!1}))}}else e._queue((()=>{t=!0}))},setPagination:t=>null==e.options.onPaginationChange?void 0:e.options.onPaginationChange((e=>lb(t,e))),resetPagination:t=>{var i
5317
- e.setPagination(t?{pageIndex:0,pageSize:10}:null!=(i=e.initialState.pagination)?i:{pageIndex:0,pageSize:10})},setPageIndex:t=>{e.setPagination((i=>{let o=lb(t,i.pageIndex)
5324
+ i=!0,e._queue((()=>{e.resetPageIndex(),i=!1}))}}else e._queue((()=>{t=!0}))},setPagination:t=>null==e.options.onPaginationChange?void 0:e.options.onPaginationChange((e=>cb(t,e))),resetPagination:t=>{var i
5325
+ e.setPagination(t?{pageIndex:0,pageSize:10}:null!=(i=e.initialState.pagination)?i:{pageIndex:0,pageSize:10})},setPageIndex:t=>{e.setPagination((i=>{let o=cb(t,i.pageIndex)
5318
5326
  const n=void 0===e.options.pageCount||-1===e.options.pageCount?Number.MAX_SAFE_INTEGER:e.options.pageCount-1
5319
5327
  return o=Math.max(0,Math.min(o,n)),{...i,pageIndex:o}}))},resetPageIndex:t=>{var i,o,n
5320
5328
  e.setPageIndex(t?0:null!=(i=null==(o=e.initialState)||null==(n=o.pagination)?void 0:n.pageIndex)?i:0)},resetPageSize:t=>{var i,o,n
5321
- e.setPageSize(t?10:null!=(i=null==(o=e.initialState)||null==(n=o.pagination)?void 0:n.pageSize)?i:10)},setPageSize:t=>{e.setPagination((e=>{const i=Math.max(1,lb(t,e.pageSize)),o=e.pageSize*e.pageIndex,n=Math.floor(o/i)
5329
+ e.setPageSize(t?10:null!=(i=null==(o=e.initialState)||null==(n=o.pagination)?void 0:n.pageSize)?i:10)},setPageSize:t=>{e.setPagination((e=>{const i=Math.max(1,cb(t,e.pageSize)),o=e.pageSize*e.pageIndex,n=Math.floor(o/i)
5322
5330
  return{...e,pageIndex:n,pageSize:i}}))},setPageCount:t=>e.setPagination((i=>{var o
5323
- let n=lb(t,null!=(o=e.options.pageCount)?o:-1)
5324
- return"number"==typeof n&&(n=Math.max(-1,n)),{...i,pageCount:n}})),getPageOptions:ub((()=>[e.getPageCount()]),(e=>{let t=[]
5331
+ let n=cb(t,null!=(o=e.options.pageCount)?o:-1)
5332
+ return"number"==typeof n&&(n=Math.max(-1,n)),{...i,pageCount:n}})),getPageOptions:pb((()=>[e.getPageCount()]),(e=>{let t=[]
5325
5333
  return e&&e>0&&(t=[...new Array(e)].fill(null).map(((e,t)=>t))),t}),{key:!1,debug:()=>{var t
5326
5334
  return null!=(t=e.options.debugAll)?t:e.options.debugTable}}),getCanPreviousPage:()=>e.getState().pagination.pageIndex>0,getCanNextPage:()=>{const{pageIndex:t}=e.getState().pagination,i=e.getPageCount()
5327
5335
  return-1===i||0!==i&&t<i-1},previousPage:()=>e.setPageIndex((e=>e-1)),nextPage:()=>e.setPageIndex((e=>e+1)),getPrePaginationRowModel:()=>e.getExpandedRowModel(),getPaginationRowModel:()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel?e.getPrePaginationRowModel():e._getPaginationRowModel()),getPageCount:()=>{var t
5328
- return null!=(t=e.options.pageCount)?t:Math.ceil(e.getPrePaginationRowModel().rows.length/e.getState().pagination.pageSize)}}}},Hb,fb]
5329
- function jb(e){var t;(e.debugAll||e.debugTable)&&console.info("Creating Table Instance...")
5330
- let i={_features:Ub}
5336
+ return null!=(t=e.options.pageCount)?t:Math.ceil(e.getPrePaginationRowModel().rows.length/e.getState().pagination.pageSize)}}}},Pb,bb]
5337
+ function Gb(e){var t;(e.debugAll||e.debugTable)&&console.info("Creating Table Instance...")
5338
+ let i={_features:jb}
5331
5339
  const o=i._features.reduce(((e,t)=>Object.assign(e,null==t.getDefaultOptions?void 0:t.getDefaultOptions(i))),{})
5332
5340
  let n={...null!=(t=e.initialState)?t:{}}
5333
5341
  i._features.forEach((e=>{var t
5334
5342
  n=null!=(t=null==e.getInitialState?void 0:e.getInitialState(n))?t:n}))
5335
5343
  const s=[]
5336
5344
  let r=!1
5337
- const a={_features:Ub,options:{...o,...e},initialState:n,_queue:e=>{s.push(e),r||(r=!0,Promise.resolve().then((()=>{for(;s.length;)s.shift()()
5338
- r=!1})).catch((e=>setTimeout((()=>{throw e})))))},reset:()=>{i.setState(i.initialState)},setOptions:e=>{const t=lb(e,i.options)
5345
+ const a={_features:jb,options:{...o,...e},initialState:n,_queue:e=>{s.push(e),r||(r=!0,Promise.resolve().then((()=>{for(;s.length;)s.shift()()
5346
+ r=!1})).catch((e=>setTimeout((()=>{throw e})))))},reset:()=>{i.setState(i.initialState)},setOptions:e=>{const t=cb(e,i.options)
5339
5347
  i.options=(e=>i.options.mergeOptions?i.options.mergeOptions(o,e):{...o,...e})(t)},getState:()=>i.options.state,setState:e=>{null==i.options.onStateChange||i.options.onStateChange(e)},_getRowId:(e,t,o)=>{var n
5340
5348
  return null!=(n=null==i.options.getRowId?void 0:i.options.getRowId(e,t,o))?n:`${o?[o.id,t].join("."):t}`},getCoreRowModel:()=>(i._getCoreRowModel||(i._getCoreRowModel=i.options.getCoreRowModel(i)),i._getCoreRowModel()),getRowModel:()=>i.getPaginationRowModel(),getRow:e=>{const t=i.getRowModel().rowsById[e]
5341
5349
  if(!t)throw new Error
5342
- return t},_getDefaultColumnDef:ub((()=>[i.options.defaultColumn]),(e=>{var t
5350
+ return t},_getDefaultColumnDef:pb((()=>[i.options.defaultColumn]),(e=>{var t
5343
5351
  return e=null!=(t=e)?t:{},{header:e=>{const t=e.header.column.columnDef
5344
5352
  return t.accessorKey?t.accessorKey:t.accessorFn?t.id:null},cell:e=>{var t,i
5345
5353
  return null!=(t=null==(i=e.renderValue())||null==i.toString?void 0:i.toString())?t:null},...i._features.reduce(((e,t)=>Object.assign(e,null==t.getDefaultColumnDef?void 0:t.getDefaultColumnDef())),{}),...e}}),{debug:()=>{var e
5346
- return null!=(e=i.options.debugAll)?e:i.options.debugColumns},key:!1}),_getColumnDefs:()=>i.options.columns,getAllColumns:ub((()=>[i._getColumnDefs()]),(e=>{const t=function(e,o,n){return void 0===n&&(n=0),e.map((e=>{const s=function(e,t,i,o){var n,s
5354
+ return null!=(e=i.options.debugAll)?e:i.options.debugColumns},key:!1}),_getColumnDefs:()=>i.options.columns,getAllColumns:pb((()=>[i._getColumnDefs()]),(e=>{const t=function(e,o,n){return void 0===n&&(n=0),e.map((e=>{const s=function(e,t,i,o){var n,s
5347
5355
  const r={...e._getDefaultColumnDef(),...t},a=r.accessorKey
5348
5356
  let l,c=null!=(n=null!=(s=r.id)?s:a?a.replace(".","_"):void 0)?n:"string"==typeof r.header?r.header:void 0
5349
5357
  if(r.accessorFn?l=r.accessorFn:a&&(l=a.includes(".")?e=>{let t=e
5350
5358
  for(const e of a.split(".")){var i
5351
5359
  t=null==(i=t)?void 0:i[e]}return t}:e=>e[r.accessorKey]),!c)throw new Error
5352
- let d={id:`${String(c)}`,accessorFn:l,parent:o,depth:i,columnDef:r,columns:[],getFlatColumns:ub((()=>[!0]),(()=>{var e
5360
+ let d={id:`${String(c)}`,accessorFn:l,parent:o,depth:i,columnDef:r,columns:[],getFlatColumns:pb((()=>[!0]),(()=>{var e
5353
5361
  return[d,...null==(e=d.columns)?void 0:e.flatMap((e=>e.getFlatColumns()))]}),{key:"column.getFlatColumns",debug:()=>{var t
5354
- return null!=(t=e.options.debugAll)?t:e.options.debugColumns}}),getLeafColumns:ub((()=>[e._getOrderColumnsFn()]),(e=>{var t
5362
+ return null!=(t=e.options.debugAll)?t:e.options.debugColumns}}),getLeafColumns:pb((()=>[e._getOrderColumnsFn()]),(e=>{var t
5355
5363
  if(null!=(t=d.columns)&&t.length){let t=d.columns.flatMap((e=>e.getLeafColumns()))
5356
5364
  return e(t)}return[d]}),{key:"column.getLeafColumns",debug:()=>{var t
5357
5365
  return null!=(t=e.options.debugAll)?t:e.options.debugColumns}})}
5358
5366
  return d=e._features.reduce(((t,i)=>Object.assign(t,null==i.createColumn?void 0:i.createColumn(d,e))),d),d}(i,e,n,o),r=e
5359
5367
  return s.columns=r.columns?t(r.columns,s,n+1):[],s}))}
5360
5368
  return t(e)}),{key:!1,debug:()=>{var e
5361
- return null!=(e=i.options.debugAll)?e:i.options.debugColumns}}),getAllFlatColumns:ub((()=>[i.getAllColumns()]),(e=>e.flatMap((e=>e.getFlatColumns()))),{key:!1,debug:()=>{var e
5362
- return null!=(e=i.options.debugAll)?e:i.options.debugColumns}}),_getAllFlatColumnsById:ub((()=>[i.getAllFlatColumns()]),(e=>e.reduce(((e,t)=>(e[t.id]=t,e)),{})),{key:!1,debug:()=>{var e
5363
- return null!=(e=i.options.debugAll)?e:i.options.debugColumns}}),getAllLeafColumns:ub((()=>[i.getAllColumns(),i._getOrderColumnsFn()]),((e,t)=>t(e.flatMap((e=>e.getLeafColumns())))),{key:!1,debug:()=>{var e
5369
+ return null!=(e=i.options.debugAll)?e:i.options.debugColumns}}),getAllFlatColumns:pb((()=>[i.getAllColumns()]),(e=>e.flatMap((e=>e.getFlatColumns()))),{key:!1,debug:()=>{var e
5370
+ return null!=(e=i.options.debugAll)?e:i.options.debugColumns}}),_getAllFlatColumnsById:pb((()=>[i.getAllFlatColumns()]),(e=>e.reduce(((e,t)=>(e[t.id]=t,e)),{})),{key:!1,debug:()=>{var e
5371
+ return null!=(e=i.options.debugAll)?e:i.options.debugColumns}}),getAllLeafColumns:pb((()=>[i.getAllColumns(),i._getOrderColumnsFn()]),((e,t)=>t(e.flatMap((e=>e.getLeafColumns())))),{key:!1,debug:()=>{var e
5364
5372
  return null!=(e=i.options.debugAll)?e:i.options.debugColumns}}),getColumn:e=>i._getAllFlatColumnsById()[e]}
5365
- return Object.assign(i,a),i._features.forEach((e=>Object.assign(i,null==e.createTable?void 0:e.createTable(i)))),i}const Gb=(e,t,i,o,n,s)=>{let r={id:t,index:o,original:i,depth:n,_valuesCache:{},_uniqueValuesCache:{},getValue:t=>{if(r._valuesCache.hasOwnProperty(t))return r._valuesCache[t]
5373
+ return Object.assign(i,a),i._features.forEach((e=>Object.assign(i,null==e.createTable?void 0:e.createTable(i)))),i}const Wb=(e,t,i,o,n,s)=>{let r={id:t,index:o,original:i,depth:n,_valuesCache:{},_uniqueValuesCache:{},getValue:t=>{if(r._valuesCache.hasOwnProperty(t))return r._valuesCache[t]
5366
5374
  const i=e.getColumn(t)
5367
5375
  return null!=i&&i.accessorFn?(r._valuesCache[t]=i.accessorFn(r.original,o),r._valuesCache[t]):void 0},getUniqueValues:t=>{if(r._uniqueValuesCache.hasOwnProperty(t))return r._uniqueValuesCache[t]
5368
5376
  const i=e.getColumn(t)
5369
5377
  return null!=i&&i.accessorFn?i.columnDef.getUniqueValues?(r._uniqueValuesCache[t]=i.columnDef.getUniqueValues(r.original,o),r._uniqueValuesCache[t]):(r._uniqueValuesCache[t]=[r.getValue(t)],r._uniqueValuesCache[t]):void 0},renderValue:t=>{var i
5370
- return null!=(i=r.getValue(t))?i:e.options.renderFallbackValue},subRows:null!=s?s:[],getLeafRows:()=>hb(r.subRows,(e=>e.subRows)),getAllCells:ub((()=>[e.getAllLeafColumns()]),(t=>t.map((t=>function(e,t,i,o){const n={id:`${t.id}_${i.id}`,row:t,column:i,getValue:()=>t.getValue(o),renderValue:()=>{var t
5371
- return null!=(t=n.getValue())?t:e.options.renderFallbackValue},getContext:ub((()=>[e,i,t,n]),((e,t,i,o)=>({table:e,column:t,row:i,cell:o,getValue:o.getValue,renderValue:o.renderValue})),{key:!1,debug:()=>e.options.debugAll})}
5378
+ return null!=(i=r.getValue(t))?i:e.options.renderFallbackValue},subRows:null!=s?s:[],getLeafRows:()=>ub(r.subRows,(e=>e.subRows)),getAllCells:pb((()=>[e.getAllLeafColumns()]),(t=>t.map((t=>function(e,t,i,o){const n={id:`${t.id}_${i.id}`,row:t,column:i,getValue:()=>t.getValue(o),renderValue:()=>{var t
5379
+ return null!=(t=n.getValue())?t:e.options.renderFallbackValue},getContext:pb((()=>[e,i,t,n]),((e,t,i,o)=>({table:e,column:t,row:i,cell:o,getValue:o.getValue,renderValue:o.renderValue})),{key:!1,debug:()=>e.options.debugAll})}
5372
5380
  return e._features.forEach((o=>{Object.assign(n,null==o.createCell?void 0:o.createCell(n,i,t,e))}),{}),n}(e,r,t,t.id)))),{key:!1,debug:()=>{var t
5373
- return null!=(t=e.options.debugAll)?t:e.options.debugRows}}),_getAllCellsByColumnId:ub((()=>[r.getAllCells()]),(e=>e.reduce(((e,t)=>(e[t.column.id]=t,e)),{})),{key:"row.getAllCellsByColumnId",debug:()=>{var t
5381
+ return null!=(t=e.options.debugAll)?t:e.options.debugRows}}),_getAllCellsByColumnId:pb((()=>[r.getAllCells()]),(e=>e.reduce(((e,t)=>(e[t.column.id]=t,e)),{})),{key:"row.getAllCellsByColumnId",debug:()=>{var t
5374
5382
  return null!=(t=e.options.debugAll)?t:e.options.debugRows}})}
5375
5383
  for(let t=0;t<e._features.length;t++){const i=e._features[t]
5376
5384
  Object.assign(r,null==i||null==i.createRow?void 0:i.createRow(r,e))}return r}
5377
- function Wb(){return e=>ub((()=>[e.getState().grouping,e.getPreGroupedRowModel()]),((t,i)=>{if(!i.rows.length||!t.length)return i
5385
+ function Kb(){return e=>pb((()=>[e.getState().grouping,e.getPreGroupedRowModel()]),((t,i)=>{if(!i.rows.length||!t.length)return i
5378
5386
  const o=t.filter((t=>e.getColumn(t))),n=[],s={},r=function(t,i,a){if(void 0===i&&(i=0),i>=o.length)return t.map((e=>(e.depth=i,n.push(e),s[e.id]=e,e.subRows&&(e.subRows=r(e.subRows,i+1)),e)))
5379
5387
  const l=o[i],c=function(e,t){const i=new Map
5380
5388
  return e.reduce(((e,i)=>{const o=`${i.getValue(t)}`,n=e.get(o)
5381
5389
  return n?n.push(i):e.set(o,[i]),e}),i)}(t,l),d=Array.from(c.entries()).map(((t,c)=>{let[d,h]=t,u=`${l}:${d}`
5382
5390
  u=a?`${a}>${u}`:u
5383
- const p=r(h,i+1,u),g=i?hb(h,(e=>e.subRows)):h,v=Gb(e,u,g[0].original,c,i)
5391
+ const p=r(h,i+1,u),g=i?ub(h,(e=>e.subRows)):h,v=Wb(e,u,g[0].original,c,i)
5384
5392
  return Object.assign(v,{groupingColumnId:l,groupingValue:d,subRows:p,leafRows:g,getValue:t=>{if(o.includes(t)){if(v._valuesCache.hasOwnProperty(t))return v._valuesCache[t]
5385
5393
  var i
5386
5394
  if(h[0])v._valuesCache[t]=null!=(i=h[0].getValue(t))?i:void 0
@@ -5389,10 +5397,10 @@ const n=e.getColumn(t),s=null==n?void 0:n.getAggregationFn()
5389
5397
  return s?(v._groupingValuesCache[t]=s(t,g,h),v._groupingValuesCache[t]):void 0}}),p.forEach((e=>{n.push(e),s[e.id]=e})),v}))
5390
5398
  return d},a=r(i.rows,0,"")
5391
5399
  return a.forEach((e=>{n.push(e),s[e.id]=e})),{rows:a,flatRows:n,rowsById:s}}),{key:!1,debug:()=>{var t
5392
- return null!=(t=e.options.debugAll)?t:e.options.debugTable},onChange:()=>{e._queue((()=>{e._autoResetExpanded(),e._autoResetPageIndex()}))}})}const Kb={none:void 0,ascending:"ascending",descending:"descending"},Xb={none:void 0,single:"single",multiple:"multiple"},Yb="notSelected",Qb="selected",Jb="partiallySelected",ew="basic",tw="localeAwareCaseSensitive"
5393
- class iw extends Rt{}e([m],iw.prototype,"groupHeaderValue",void 0),e([m],iw.prototype,"columnConfig",void 0)
5394
- const ow=e=>((e=>{let t
5395
- try{t=document.createElement(e)}catch(e){}if(!(t instanceof iw))throw new Error(`Group header view tag name (${e}) must evaluate to an element extending TableGroupHeaderView`)})(e),G`
5400
+ return null!=(t=e.options.debugAll)?t:e.options.debugTable},onChange:()=>{e._queue((()=>{e._autoResetExpanded(),e._autoResetPageIndex()}))}})}const Xb={none:void 0,ascending:"ascending",descending:"descending"},Yb={none:void 0,single:"single",multiple:"multiple"},Qb="notSelected",Jb="selected",ew="partiallySelected",tw="basic",iw="localeAwareCaseSensitive"
5401
+ class ow extends Rt{}e([m],ow.prototype,"groupHeaderValue",void 0),e([m],ow.prototype,"columnConfig",void 0)
5402
+ const nw=e=>((e=>{let t
5403
+ try{t=document.createElement(e)}catch(e){}if(!(t instanceof ow))throw new Error(`Group header view tag name (${e}) must evaluate to an element extending TableGroupHeaderView`)})(e),G`
5396
5404
  <${e}
5397
5405
  :groupHeaderValue="${e=>e.groupRowValue}"
5398
5406
  :columnConfig="${e=>e.groupColumn?.columnInternals.columnConfig}"
@@ -5400,11 +5408,11 @@ try{t=document.createElement(e)}catch(e){}if(!(t instanceof iw))throw new Error(
5400
5408
  >
5401
5409
  </${e}>
5402
5410
  `)
5403
- class nw extends Rt{constructor(){super(...arguments),this.delegatedEvents=[],this.delegatedEventHandler=()=>{}}focusedRecycleCallback(){}columnChanged(){for(const e of this.delegatedEvents)this.removeEventListener(e,this.delegatedEventHandler)
5411
+ class sw extends Rt{constructor(){super(...arguments),this.delegatedEvents=[],this.delegatedEventHandler=()=>{}}focusedRecycleCallback(){}columnChanged(){for(const e of this.delegatedEvents)this.removeEventListener(e,this.delegatedEventHandler)
5404
5412
  if(this.delegatedEvents=[],this.delegatedEventHandler=()=>{},this.column){this.delegatedEvents=this.column.columnInternals.delegatedEvents,this.delegatedEventHandler=e=>{this.column?.dispatchEvent(new CustomEvent("delegated-event",{detail:{originalEvent:e}}))}
5405
- for(const e of this.delegatedEvents)this.addEventListener(e,this.delegatedEventHandler)}}}e([m],nw.prototype,"cellRecord",void 0),e([m],nw.prototype,"columnConfig",void 0),e([m],nw.prototype,"column",void 0)
5406
- const sw=e=>((e=>{let t
5407
- try{t=document.createElement(e)}catch(e){}if(!(t instanceof nw))throw new Error(`Cell view tag name (${e}) must evaluate to an element extending TableCellView`)})(e),G`
5413
+ for(const e of this.delegatedEvents)this.addEventListener(e,this.delegatedEventHandler)}}}e([m],sw.prototype,"cellRecord",void 0),e([m],sw.prototype,"columnConfig",void 0),e([m],sw.prototype,"column",void 0)
5414
+ const rw=e=>((e=>{let t
5415
+ try{t=document.createElement(e)}catch(e){}if(!(t instanceof sw))throw new Error(`Cell view tag name (${e}) must evaluate to an element extending TableCellView`)})(e),G`
5408
5416
  <${e}
5409
5417
  :cellRecord="${e=>e.cellState?.cellRecord}"
5410
5418
  :columnConfig="${e=>e.cellState?.columnConfig}"
@@ -5413,10 +5421,10 @@ try{t=document.createElement(e)}catch(e){}if(!(t instanceof nw))throw new Error(
5413
5421
  >
5414
5422
  </${e}>
5415
5423
  `)
5416
- class rw{constructor(e){this.uniqueId=Vr("table-column-slot"),this.validConfiguration=!0,this.sortOperation=ew,this.dataRecordFieldNames=[],this.groupingDisabled=!1,this.fractionalWidth=1,this.minPixelWidth=117,this.currentFractionalWidth=1,this.currentSortDirection=Kb.none,this.cellRecordFieldNames=e.cellRecordFieldNames,this.cellViewTemplate=sw(e.cellViewTag),this.groupHeaderViewTemplate=ow(e.groupHeaderViewTag),this.delegatedEvents=e.delegatedEvents,this.sortOperation=e.sortOperation??ew}fractionalWidthChanged(){this.currentFractionalWidth=this.fractionalWidth}pixelWidthChanged(){this.currentPixelWidth=this.pixelWidth}}e([m],rw.prototype,"columnConfig",void 0),e([m],rw.prototype,"validConfiguration",void 0),e([m],rw.prototype,"operandDataRecordFieldName",void 0),e([m],rw.prototype,"sortOperation",void 0),e([m],rw.prototype,"dataRecordFieldNames",void 0),e([m],rw.prototype,"groupingDisabled",void 0),e([m],rw.prototype,"groupIndex",void 0),e([m],rw.prototype,"pixelWidth",void 0),e([m],rw.prototype,"fractionalWidth",void 0),e([m],rw.prototype,"minPixelWidth",void 0),e([m],rw.prototype,"currentFractionalWidth",void 0),e([m],rw.prototype,"currentPixelWidth",void 0),e([m],rw.prototype,"currentSortIndex",void 0),e([m],rw.prototype,"currentSortDirection",void 0)
5417
- class aw extends Rt{constructor(){super(...arguments),this.columnInternals=new rw(this.getColumnInternalsOptions()),this.columnHidden=!1,this.sortDirection=Kb.none,this.sortingDisabled=!1}checkValidity(){return this.columnInternals.validConfiguration}get validity(){return{}}sortDirectionChanged(){this.sortingDisabled||(this.columnInternals.currentSortDirection=this.sortDirection)}sortIndexChanged(){this.sortingDisabled||(this.columnInternals.currentSortIndex=this.sortIndex)}sortingDisabledChanged(){this.sortingDisabled?(this.columnInternals.currentSortDirection=Kb.none,this.columnInternals.currentSortIndex=void 0):(this.columnInternals.currentSortDirection=this.sortDirection,this.columnInternals.currentSortIndex=this.sortIndex)}}e([ne({attribute:"column-id"})],aw.prototype,"columnId",void 0),e([ne({attribute:"action-menu-slot"})],aw.prototype,"actionMenuSlot",void 0),e([ne({attribute:"action-menu-label"})],aw.prototype,"actionMenuLabel",void 0),e([ne({attribute:"column-hidden",mode:"boolean"})],aw.prototype,"columnHidden",void 0),e([ne({attribute:"sort-index",converter:ie})],aw.prototype,"sortIndex",void 0),e([ne({attribute:"sort-direction"})],aw.prototype,"sortDirection",void 0),e([ne({attribute:"sorting-disabled",mode:"boolean"})],aw.prototype,"sortingDisabled",void 0)
5418
- class lw{constructor(){this.duplicateRecordId=!1,this.missingRecordId=!1,this.invalidRecordId=!1,this.duplicateColumnId=!1,this.missingColumnId=!1,this.duplicateSortIndex=!1,this.duplicateGroupIndex=!1,this.idFieldNameNotConfigured=!1,this.invalidColumnConfiguration=!1,this.recordIds=new Set}getValidity(){return{duplicateRecordId:this.duplicateRecordId,missingRecordId:this.missingRecordId,invalidRecordId:this.invalidRecordId,duplicateColumnId:this.duplicateColumnId,missingColumnId:this.missingColumnId,duplicateSortIndex:this.duplicateSortIndex,duplicateGroupIndex:this.duplicateGroupIndex,idFieldNameNotConfigured:this.idFieldNameNotConfigured,invalidColumnConfiguration:this.invalidColumnConfiguration}}isValid(){return Object.values(this.getValidity()).every((e=>!1===e))}areRecordIdsValid(){const e=this.getValidity()
5419
- return!e.duplicateRecordId&&!e.missingRecordId&&!e.invalidRecordId}validateSelectionMode(e,t){return this.idFieldNameNotConfigured=e!==Xb.none&&"string"!=typeof t,!this.idFieldNameNotConfigured}validateRecordIds(e,t){if(this.duplicateRecordId=!1,this.missingRecordId=!1,this.invalidRecordId=!1,this.recordIds.clear(),"string"!=typeof t)return!0
5424
+ class aw{constructor(e){this.uniqueId=Vr("table-column-slot"),this.validConfiguration=!0,this.sortOperation=tw,this.dataRecordFieldNames=[],this.groupingDisabled=!1,this.fractionalWidth=1,this.minPixelWidth=117,this.currentFractionalWidth=1,this.currentSortDirection=Xb.none,this.cellRecordFieldNames=e.cellRecordFieldNames,this.cellViewTemplate=rw(e.cellViewTag),this.groupHeaderViewTemplate=nw(e.groupHeaderViewTag),this.delegatedEvents=e.delegatedEvents,this.sortOperation=e.sortOperation??tw}fractionalWidthChanged(){this.currentFractionalWidth=this.fractionalWidth}pixelWidthChanged(){this.currentPixelWidth=this.pixelWidth}}e([m],aw.prototype,"columnConfig",void 0),e([m],aw.prototype,"validConfiguration",void 0),e([m],aw.prototype,"operandDataRecordFieldName",void 0),e([m],aw.prototype,"sortOperation",void 0),e([m],aw.prototype,"dataRecordFieldNames",void 0),e([m],aw.prototype,"groupingDisabled",void 0),e([m],aw.prototype,"groupIndex",void 0),e([m],aw.prototype,"pixelWidth",void 0),e([m],aw.prototype,"fractionalWidth",void 0),e([m],aw.prototype,"minPixelWidth",void 0),e([m],aw.prototype,"currentFractionalWidth",void 0),e([m],aw.prototype,"currentPixelWidth",void 0),e([m],aw.prototype,"currentSortIndex",void 0),e([m],aw.prototype,"currentSortDirection",void 0)
5425
+ class lw extends Rt{constructor(){super(...arguments),this.columnInternals=new aw(this.getColumnInternalsOptions()),this.columnHidden=!1,this.sortDirection=Xb.none,this.sortingDisabled=!1}checkValidity(){return this.columnInternals.validConfiguration}get validity(){return{}}sortDirectionChanged(){this.sortingDisabled||(this.columnInternals.currentSortDirection=this.sortDirection)}sortIndexChanged(){this.sortingDisabled||(this.columnInternals.currentSortIndex=this.sortIndex)}sortingDisabledChanged(){this.sortingDisabled?(this.columnInternals.currentSortDirection=Xb.none,this.columnInternals.currentSortIndex=void 0):(this.columnInternals.currentSortDirection=this.sortDirection,this.columnInternals.currentSortIndex=this.sortIndex)}}e([ne({attribute:"column-id"})],lw.prototype,"columnId",void 0),e([ne({attribute:"action-menu-slot"})],lw.prototype,"actionMenuSlot",void 0),e([ne({attribute:"action-menu-label"})],lw.prototype,"actionMenuLabel",void 0),e([ne({attribute:"column-hidden",mode:"boolean"})],lw.prototype,"columnHidden",void 0),e([ne({attribute:"sort-index",converter:ie})],lw.prototype,"sortIndex",void 0),e([ne({attribute:"sort-direction"})],lw.prototype,"sortDirection",void 0),e([ne({attribute:"sorting-disabled",mode:"boolean"})],lw.prototype,"sortingDisabled",void 0)
5426
+ class cw{constructor(){this.duplicateRecordId=!1,this.missingRecordId=!1,this.invalidRecordId=!1,this.duplicateColumnId=!1,this.missingColumnId=!1,this.duplicateSortIndex=!1,this.duplicateGroupIndex=!1,this.idFieldNameNotConfigured=!1,this.invalidColumnConfiguration=!1,this.recordIds=new Set}getValidity(){return{duplicateRecordId:this.duplicateRecordId,missingRecordId:this.missingRecordId,invalidRecordId:this.invalidRecordId,duplicateColumnId:this.duplicateColumnId,missingColumnId:this.missingColumnId,duplicateSortIndex:this.duplicateSortIndex,duplicateGroupIndex:this.duplicateGroupIndex,idFieldNameNotConfigured:this.idFieldNameNotConfigured,invalidColumnConfiguration:this.invalidColumnConfiguration}}isValid(){return Object.values(this.getValidity()).every((e=>!1===e))}areRecordIdsValid(){const e=this.getValidity()
5427
+ return!e.duplicateRecordId&&!e.missingRecordId&&!e.invalidRecordId}validateSelectionMode(e,t){return this.idFieldNameNotConfigured=e!==Yb.none&&"string"!=typeof t,!this.idFieldNameNotConfigured}validateRecordIds(e,t){if(this.duplicateRecordId=!1,this.missingRecordId=!1,this.invalidRecordId=!1,this.recordIds.clear(),"string"!=typeof t)return!0
5420
5428
  for(const i of e){if(!Object.prototype.hasOwnProperty.call(i,t)){this.missingRecordId=!0
5421
5429
  continue}const e=i[t]
5422
5430
  "string"==typeof e?(this.recordIds.has(e)&&(this.duplicateRecordId=!0),this.recordIds.add(e)):this.invalidRecordId=!0}return!this.missingRecordId&&!this.invalidRecordId&&!this.duplicateRecordId}validateColumnIds(e){this.missingColumnId=!1,this.duplicateColumnId=!1
@@ -5424,7 +5432,7 @@ const t=e.some((e=>e))
5424
5432
  if(!t)return!0
5425
5433
  const i=new Set
5426
5434
  for(const t of e)t?(i.has(t)&&(this.duplicateColumnId=!0),i.add(t)):this.missingColumnId=!0
5427
- return!this.missingColumnId&&!this.duplicateColumnId}validateColumnSortIndices(e){return this.duplicateSortIndex=!this.validateIndicesAreUnique(e),!this.duplicateSortIndex}validateColumnGroupIndices(e){return this.duplicateGroupIndex=!this.validateIndicesAreUnique(e),!this.duplicateGroupIndex}validateColumnConfigurations(e){return this.invalidColumnConfiguration=e.some((e=>!e.columnInternals.validConfiguration)),!this.invalidColumnConfiguration}getPresentRecordIds(e){return e.filter((e=>this.recordIds.has(e)))}validateIndicesAreUnique(e){return new Set(e).size===e.length}}const cw=fe`
5435
+ return!this.missingColumnId&&!this.duplicateColumnId}validateColumnSortIndices(e){return this.duplicateSortIndex=!this.validateIndicesAreUnique(e),!this.duplicateSortIndex}validateColumnGroupIndices(e){return this.duplicateGroupIndex=!this.validateIndicesAreUnique(e),!this.duplicateGroupIndex}validateColumnConfigurations(e){return this.invalidColumnConfiguration=e.some((e=>!e.columnInternals.validConfiguration)),!this.invalidColumnConfiguration}getPresentRecordIds(e){return e.filter((e=>this.recordIds.has(e)))}validateIndicesAreUnique(e){return new Set(e).size===e.length}}const dw=fe`
5428
5436
  ${xn("flex")}
5429
5437
 
5430
5438
  :host {
@@ -5533,7 +5541,7 @@ return!this.missingColumnId&&!this.duplicateColumnId}validateColumnSortIndices(e
5533
5541
  background-color: ${cs(jn,.1)};
5534
5542
  position: absolute;
5535
5543
  }
5536
- `)),dw=fe`
5544
+ `)),hw=fe`
5537
5545
  ${xn("flex")}
5538
5546
 
5539
5547
  :host {
@@ -5552,7 +5560,7 @@ return!this.missingColumnId&&!this.duplicateColumnId}validateColumnSortIndices(e
5552
5560
  .grouped-indicator {
5553
5561
  flex: 0 0 auto;
5554
5562
  }
5555
- `,hw=G`
5563
+ `,uw=G`
5556
5564
  <template role="columnheader"
5557
5565
  aria-sort="${e=>e.ariaSort}"
5558
5566
  ${""}
@@ -5560,21 +5568,21 @@ return!this.missingColumnId&&!this.duplicateColumnId}validateColumnSortIndices(e
5560
5568
  >
5561
5569
  <slot></slot>
5562
5570
 
5563
- ${Me((e=>e.sortDirection===Kb.ascending),G`
5564
- <${Vg} class="sort-indicator" aria-hidden="true"></${Vg}>
5571
+ ${Me((e=>e.sortDirection===Xb.ascending),G`
5572
+ <${Hg} class="sort-indicator" aria-hidden="true"></${Hg}>
5565
5573
  `)}
5566
- ${Me((e=>e.sortDirection===Kb.descending),G`
5567
- <${$g} class="sort-indicator" aria-hidden="true"></${$g}>
5574
+ ${Me((e=>e.sortDirection===Xb.descending),G`
5575
+ <${Cg} class="sort-indicator" aria-hidden="true"></${Cg}>
5568
5576
  `)}
5569
5577
  ${Me((e=>e.isGrouped),G`
5570
- <${nf} class="grouped-indicator"></${nf}>
5578
+ <${sf} class="grouped-indicator"></${sf}>
5571
5579
  `)}
5572
5580
  </template>
5573
5581
  `
5574
- class uw extends Rt{constructor(){super(...arguments),this.sortDirection=Kb.none,this.firstSortedColumn=!1,this.isGrouped=!1}sortDirectionChanged(e,t){this.updateAriaSort()}firstSortedColumnChanged(e,t){this.updateAriaSort()}updateAriaSort(){this.firstSortedColumn&&this.sortDirection!==Kb.none?this.sortDirection===Kb.ascending?this.ariaSort="ascending":this.ariaSort="descending":this.ariaSort=null}}e([ne({attribute:"sort-direction"})],uw.prototype,"sortDirection",void 0),e([ne({attribute:"first-sorted-column",mode:"boolean"})],uw.prototype,"firstSortedColumn",void 0),e([m],uw.prototype,"isGrouped",void 0)
5575
- const pw=uw.compose({baseName:"table-header",template:hw,styles:dw})
5576
- ro.getOrCreate().withPrefix("nimble").register(pw())
5577
- const gw=ro.tagFor(uw),vw=fe`
5582
+ class pw extends Rt{constructor(){super(...arguments),this.sortDirection=Xb.none,this.firstSortedColumn=!1,this.isGrouped=!1}sortDirectionChanged(e,t){this.updateAriaSort()}firstSortedColumnChanged(e,t){this.updateAriaSort()}updateAriaSort(){this.firstSortedColumn&&this.sortDirection!==Xb.none?this.sortDirection===Xb.ascending?this.ariaSort="ascending":this.ariaSort="descending":this.ariaSort=null}}e([ne({attribute:"sort-direction"})],pw.prototype,"sortDirection",void 0),e([ne({attribute:"first-sorted-column",mode:"boolean"})],pw.prototype,"firstSortedColumn",void 0),e([m],pw.prototype,"isGrouped",void 0)
5583
+ const gw=pw.compose({baseName:"table-header",template:uw,styles:hw})
5584
+ ro.getOrCreate().withPrefix("nimble").register(gw())
5585
+ const vw=ro.tagFor(pw),mw=fe`
5578
5586
  ${xn("flex")}
5579
5587
 
5580
5588
  :host {
@@ -5661,7 +5669,7 @@ const gw=ro.tagFor(uw),vw=fe`
5661
5669
  :host([selected]:hover)::before {
5662
5670
  background-color: ${cs(jn,.2)};
5663
5671
  }
5664
- `)),mw=fe`
5672
+ `)),fw=fe`
5665
5673
  ${xn("flex")}
5666
5674
 
5667
5675
  :host {
@@ -5691,11 +5699,11 @@ const gw=ro.tagFor(uw),vw=fe`
5691
5699
  height: ${na};
5692
5700
  align-self: center;
5693
5701
  }
5694
- `,fw=G`
5702
+ `,bw=G`
5695
5703
  <template role="cell" style="--ni-private-table-cell-nesting-level: ${e=>e.nestingLevel}">
5696
5704
  ${e=>e.cellViewTemplate}
5697
5705
  ${Me((e=>e.hasActionMenu),G`
5698
- <${Af} ${Re("actionMenuButton")}
5706
+ <${Ef} ${Re("actionMenuButton")}
5699
5707
  content-hidden
5700
5708
  appearance="${Bc}"
5701
5709
  @beforetoggle="${(e,t)=>e.onActionMenuBeforeToggle(t.event)}"
@@ -5703,17 +5711,17 @@ const gw=ro.tagFor(uw),vw=fe`
5703
5711
  @click="${(e,t)=>t.event.stopPropagation()}"
5704
5712
  class="action-menu"
5705
5713
  >
5706
- <${jm} slot="start"></${jm}>
5714
+ <${Gm} slot="start"></${Gm}>
5707
5715
  ${e=>e.actionMenuLabel}
5708
5716
  <slot name="cellActionMenu" slot="menu"></slot>
5709
- </${Af}>
5717
+ </${Ef}>
5710
5718
  `)}
5711
5719
  </template>
5712
5720
  `
5713
- class bw extends Rt{constructor(){super(...arguments),this.hasActionMenu=!1,this.menuOpen=!1,this.nestingLevel=0}onActionMenuBeforeToggle(e){this.$emit("cell-action-menu-beforetoggle",e.detail)}onActionMenuToggle(e){this.menuOpen=e.detail.newState,this.$emit("cell-action-menu-toggle",e.detail)}}e([m],bw.prototype,"cellState",void 0),e([m],bw.prototype,"column",void 0),e([ne({attribute:"has-action-menu",mode:"boolean"})],bw.prototype,"hasActionMenu",void 0),e([ne({attribute:"menu-open",mode:"boolean"})],bw.prototype,"menuOpen",void 0),e([ne({attribute:"action-menu-label"})],bw.prototype,"actionMenuLabel",void 0),e([m],bw.prototype,"cellViewTemplate",void 0),e([m],bw.prototype,"nestingLevel",void 0)
5714
- const ww=bw.compose({baseName:"table-cell",template:fw,styles:mw})
5715
- ro.getOrCreate().withPrefix("nimble").register(ww())
5716
- const xw=ro.tagFor(bw),yw=G`
5721
+ class ww extends Rt{constructor(){super(...arguments),this.hasActionMenu=!1,this.menuOpen=!1,this.nestingLevel=0}onActionMenuBeforeToggle(e){this.$emit("cell-action-menu-beforetoggle",e.detail)}onActionMenuToggle(e){this.menuOpen=e.detail.newState,this.$emit("cell-action-menu-toggle",e.detail)}}e([m],ww.prototype,"cellState",void 0),e([m],ww.prototype,"column",void 0),e([ne({attribute:"has-action-menu",mode:"boolean"})],ww.prototype,"hasActionMenu",void 0),e([ne({attribute:"menu-open",mode:"boolean"})],ww.prototype,"menuOpen",void 0),e([ne({attribute:"action-menu-label"})],ww.prototype,"actionMenuLabel",void 0),e([m],ww.prototype,"cellViewTemplate",void 0),e([m],ww.prototype,"nestingLevel",void 0)
5722
+ const xw=ww.compose({baseName:"table-cell",template:bw,styles:fw})
5723
+ ro.getOrCreate().withPrefix("nimble").register(xw())
5724
+ const yw=ro.tagFor(ww),$w=G`
5717
5725
  <template role="row" aria-selected=${e=>e.ariaSelected}>
5718
5726
  ${Me((e=>e.selectable&&!e.hideSelection),G`
5719
5727
  <span role="gridcell" class="checkbox-container">
@@ -5732,7 +5740,7 @@ const xw=ro.tagFor(bw),yw=G`
5732
5740
  <span ${Re("cellContainer")} class="cell-container">
5733
5741
  ${He((e=>e.columnStates),G`
5734
5742
  ${Me((e=>!e.column.columnHidden),G`
5735
- <${xw}
5743
+ <${yw}
5736
5744
  class="cell"
5737
5745
  :cellState="${e=>e.cellState}"
5738
5746
  :cellViewTemplate="${e=>e.column.columnInternals.cellViewTemplate}"
@@ -5750,13 +5758,13 @@ const xw=ro.tagFor(bw),yw=G`
5750
5758
  slot="cellActionMenu"
5751
5759
  ></slot>
5752
5760
  `)}
5753
- </${xw}>
5761
+ </${yw}>
5754
5762
  `)}
5755
5763
  `)}
5756
5764
  </span>
5757
5765
  </template>
5758
5766
  `
5759
- class $w extends Rt{constructor(){super(...arguments),this.selectable=!1,this.selected=!1,this.hideSelection=!1,this.columns=[],this.nestingLevel=0,this.menuOpen=!1,this.ignoreSelectionChangeEvents=!1}get columnStates(){return this.columns.map(((e,t)=>{const i=e.columnInternals.dataRecordFieldNames
5767
+ class Cw extends Rt{constructor(){super(...arguments),this.selectable=!1,this.selected=!1,this.hideSelection=!1,this.columns=[],this.nestingLevel=0,this.menuOpen=!1,this.ignoreSelectionChangeEvents=!1}get columnStates(){return this.columns.map(((e,t)=>{const i=e.columnInternals.dataRecordFieldNames
5760
5768
  let o
5761
5769
  if(this.hasValidFieldNames(i)&&this.dataRecord){const t=i.map((e=>this.dataRecord[e]))
5762
5770
  o={cellRecord:Object.fromEntries(e.columnInternals.cellRecordFieldNames.map(((e,i)=>[e,t[i]]))),columnConfig:e.columnInternals.columnConfig??{}}}else o={cellRecord:{},columnConfig:{}}
@@ -5764,12 +5772,12 @@ return{column:e,cellState:o,cellIndentLevel:0===t&&this.nestingLevel>0?this.nest
5764
5772
  const t=e.target.checked
5765
5773
  this.selected=t
5766
5774
  const i={oldState:!t,newState:t}
5767
- this.$emit("row-selection-toggle",i)}onCellActionMenuBeforeToggle(e,t){this.currentActionMenuColumn=t,this.emitActionMenuToggleEvent("row-action-menu-beforetoggle",e.detail,t)}onCellActionMenuToggle(e,t){this.menuOpen=e.detail.newState,this.emitActionMenuToggleEvent("row-action-menu-toggle",e.detail,t)}closeOpenActionMenus(){if(this.menuOpen){const e=Array.from(this.cellContainer.children).find((e=>e instanceof bw&&e.menuOpen))
5775
+ this.$emit("row-selection-toggle",i)}onCellActionMenuBeforeToggle(e,t){this.currentActionMenuColumn=t,this.emitActionMenuToggleEvent("row-action-menu-beforetoggle",e.detail,t)}onCellActionMenuToggle(e,t){this.menuOpen=e.detail.newState,this.emitActionMenuToggleEvent("row-action-menu-toggle",e.detail,t)}closeOpenActionMenus(){if(this.menuOpen){const e=Array.from(this.cellContainer.children).find((e=>e instanceof ww&&e.menuOpen))
5768
5776
  e?.actionMenuButton?.open&&e.actionMenuButton.toggleButton.control.click()}}emitActionMenuToggleEvent(e,t,i){const o={newState:t.newState,oldState:t.oldState,recordIds:[this.recordId],columnId:i.columnId}
5769
- this.$emit(e,o)}hasValidFieldNames(e){return e.every((e=>void 0!==e))}selectedChanged(){this.setSelectionCheckboxState()}selectionCheckboxChanged(){this.setSelectionCheckboxState()}setSelectionCheckboxState(){this.selectionCheckbox&&(this.ignoreSelectionChangeEvents=!0,this.selectionCheckbox.checked=this.selected,this.ignoreSelectionChangeEvents=!1)}}e([ne({attribute:"record-id"})],$w.prototype,"recordId",void 0),e([ne({mode:"boolean"})],$w.prototype,"selectable",void 0),e([ne({mode:"boolean"})],$w.prototype,"selected",void 0),e([ne({attribute:"hide-selection",mode:"boolean"})],$w.prototype,"hideSelection",void 0),e([m],$w.prototype,"dataRecord",void 0),e([m],$w.prototype,"columns",void 0),e([m],$w.prototype,"currentActionMenuColumn",void 0),e([m],$w.prototype,"nestingLevel",void 0),e([ne({attribute:"menu-open",mode:"boolean"})],$w.prototype,"menuOpen",void 0),e([m],$w.prototype,"selectionCheckbox",void 0),e([f],$w.prototype,"columnStates",null),e([f],$w.prototype,"ariaSelected",null)
5770
- const Cw=$w.compose({baseName:"table-row",template:yw,styles:vw})
5771
- ro.getOrCreate().withPrefix("nimble").register(Cw())
5772
- const kw=ro.tagFor($w),Sw=fe`
5777
+ this.$emit(e,o)}hasValidFieldNames(e){return e.every((e=>void 0!==e))}selectedChanged(){this.setSelectionCheckboxState()}selectionCheckboxChanged(){this.setSelectionCheckboxState()}setSelectionCheckboxState(){this.selectionCheckbox&&(this.ignoreSelectionChangeEvents=!0,this.selectionCheckbox.checked=this.selected,this.ignoreSelectionChangeEvents=!1)}}e([ne({attribute:"record-id"})],Cw.prototype,"recordId",void 0),e([ne({mode:"boolean"})],Cw.prototype,"selectable",void 0),e([ne({mode:"boolean"})],Cw.prototype,"selected",void 0),e([ne({attribute:"hide-selection",mode:"boolean"})],Cw.prototype,"hideSelection",void 0),e([m],Cw.prototype,"dataRecord",void 0),e([m],Cw.prototype,"columns",void 0),e([m],Cw.prototype,"currentActionMenuColumn",void 0),e([m],Cw.prototype,"nestingLevel",void 0),e([ne({attribute:"menu-open",mode:"boolean"})],Cw.prototype,"menuOpen",void 0),e([m],Cw.prototype,"selectionCheckbox",void 0),e([f],Cw.prototype,"columnStates",null),e([f],Cw.prototype,"ariaSelected",null)
5778
+ const kw=Cw.compose({baseName:"table-row",template:$w,styles:mw})
5779
+ ro.getOrCreate().withPrefix("nimble").register(kw())
5780
+ const Sw=ro.tagFor(Cw),_w=fe`
5773
5781
  ${xn("grid")}
5774
5782
 
5775
5783
  :host {
@@ -5874,7 +5882,7 @@ const kw=ro.tagFor($w),Sw=fe`
5874
5882
  :host(:hover)::before {
5875
5883
  background-color: ${cs(jn,.1)};
5876
5884
  }
5877
- `)),_w=G`
5885
+ `)),Iw=G`
5878
5886
  <template
5879
5887
  role="row"
5880
5888
  @click=${e=>e.onGroupExpandToggle()}
@@ -5899,7 +5907,7 @@ const kw=ro.tagFor($w),Sw=fe`
5899
5907
  class="expand-collapse-button"
5900
5908
  tabindex="-1"
5901
5909
  >
5902
- <${_g} ${Re("expandIcon")} slot="start" class="expander-icon ${e=>e.animationClass}"></${_g}>
5910
+ <${Ig} ${Re("expandIcon")} slot="start" class="expander-icon ${e=>e.animationClass}"></${Ig}>
5903
5911
  </${$d}>
5904
5912
  </span>
5905
5913
 
@@ -5909,14 +5917,14 @@ const kw=ro.tagFor($w),Sw=fe`
5909
5917
  </div>
5910
5918
  </template>
5911
5919
  `
5912
- class Iw extends Rt{constructor(){super(...arguments),this.nestingLevel=0,this.expanded=!1,this.selectable=!1,this.selectionState=Yb,this.animationClass="",this.ignoreSelectionChangeEvents=!1,this.removeAnimatingClass=()=>{this.animationClass="",this.expandIcon.removeEventListener("transitionend",this.removeAnimatingClass)}}onGroupExpandToggle(){this.$emit("group-expand-toggle"),this.animationClass="animating",this.expandIcon.addEventListener("transitionend",this.removeAnimatingClass)}onSelectionChange(e){if(this.ignoreSelectionChangeEvents)return
5920
+ class Rw extends Rt{constructor(){super(...arguments),this.nestingLevel=0,this.expanded=!1,this.selectable=!1,this.selectionState=Qb,this.animationClass="",this.ignoreSelectionChangeEvents=!1,this.removeAnimatingClass=()=>{this.animationClass="",this.expandIcon.removeEventListener("transitionend",this.removeAnimatingClass)}}onGroupExpandToggle(){this.$emit("group-expand-toggle"),this.animationClass="animating",this.expandIcon.addEventListener("transitionend",this.removeAnimatingClass)}onSelectionChange(e){if(this.ignoreSelectionChangeEvents)return
5913
5921
  const t=e.target.checked
5914
- this.selectionState=t?Qb:Yb
5922
+ this.selectionState=t?Jb:Qb
5915
5923
  const i={oldState:!t,newState:t}
5916
- this.$emit("group-selection-toggle",i)}selectionStateChanged(){this.setSelectionCheckboxState()}selectionCheckboxChanged(){this.setSelectionCheckboxState()}setSelectionCheckboxState(){this.selectionCheckbox&&(this.ignoreSelectionChangeEvents=!0,this.selectionCheckbox.checked=this.selectionState===Qb,this.selectionCheckbox.indeterminate=this.selectionState===Jb,this.ignoreSelectionChangeEvents=!1)}}e([m],Iw.prototype,"groupRowValue",void 0),e([m],Iw.prototype,"nestingLevel",void 0),e([m],Iw.prototype,"leafItemCount",void 0),e([m],Iw.prototype,"groupColumn",void 0),e([ne({mode:"boolean"})],Iw.prototype,"expanded",void 0),e([ne({mode:"boolean"})],Iw.prototype,"selectable",void 0),e([ne({attribute:"selection-state"})],Iw.prototype,"selectionState",void 0),e([m],Iw.prototype,"selectionCheckbox",void 0),e([m],Iw.prototype,"animationClass",void 0)
5917
- const Rw=Iw.compose({baseName:"table-group-row",template:_w,styles:Sw})
5918
- ro.getOrCreate().withPrefix("nimble").register(Rw())
5919
- const Mw=ro.tagFor(Iw),Aw=G`
5924
+ this.$emit("group-selection-toggle",i)}selectionStateChanged(){this.setSelectionCheckboxState()}selectionCheckboxChanged(){this.setSelectionCheckboxState()}setSelectionCheckboxState(){this.selectionCheckbox&&(this.ignoreSelectionChangeEvents=!0,this.selectionCheckbox.checked=this.selectionState===Jb,this.selectionCheckbox.indeterminate=this.selectionState===ew,this.ignoreSelectionChangeEvents=!1)}}e([m],Rw.prototype,"groupRowValue",void 0),e([m],Rw.prototype,"nestingLevel",void 0),e([m],Rw.prototype,"leafItemCount",void 0),e([m],Rw.prototype,"groupColumn",void 0),e([ne({mode:"boolean"})],Rw.prototype,"expanded",void 0),e([ne({mode:"boolean"})],Rw.prototype,"selectable",void 0),e([ne({attribute:"selection-state"})],Rw.prototype,"selectionState",void 0),e([m],Rw.prototype,"selectionCheckbox",void 0),e([m],Rw.prototype,"animationClass",void 0)
5925
+ const Mw=Rw.compose({baseName:"table-group-row",template:Iw,styles:_w})
5926
+ ro.getOrCreate().withPrefix("nimble").register(Mw())
5927
+ const Aw=ro.tagFor(Rw),Ew=G`
5920
5928
  <template
5921
5929
  role="grid"
5922
5930
  aria-multiselectable="${e=>e.ariaMultiSelectable}"
@@ -5932,7 +5940,7 @@ const Mw=ro.tagFor(Iw),Aw=G`
5932
5940
  ">
5933
5941
  <div role="rowgroup" class="header-container">
5934
5942
  <div class="header-row" role="row">
5935
- ${Me((e=>e.selectionMode===Xb.multiple),G`
5943
+ ${Me((e=>e.selectionMode===Yb.multiple),G`
5936
5944
  <span role="columnheader" class="checkbox-container">
5937
5945
  <${Gp}
5938
5946
  ${Re("selectionCheckbox")}
@@ -5949,21 +5957,21 @@ const Mw=ro.tagFor(Iw),Aw=G`
5949
5957
  appearance="${Bc}"
5950
5958
  @click="${e=>e.handleCollapseAllGroupRows()}"
5951
5959
  >
5952
- <${ef} slot="start"></${ef}>
5960
+ <${tf} slot="start"></${tf}>
5953
5961
  </${$d}>
5954
5962
  </span>
5955
5963
  <span class="column-header-container">
5956
5964
  ${He((e=>e.columns),G`
5957
5965
  ${Me((e=>!e.columnHidden),G`
5958
- <${gw}
5966
+ <${vw}
5959
5967
  class="header"
5960
- sort-direction="${e=>"number"==typeof e.columnInternals.currentSortIndex?e.columnInternals.currentSortDirection:Kb.none}"
5968
+ sort-direction="${e=>"number"==typeof e.columnInternals.currentSortIndex?e.columnInternals.currentSortDirection:Xb.none}"
5961
5969
  ?first-sorted-column="${(e,t)=>e===t.parent.firstSortedColumn}"
5962
5970
  @click="${(e,t)=>t.parent.toggleColumnSort(e,t.event.shiftKey)}"
5963
5971
  :isGrouped=${e=>"number"==typeof e.columnInternals.groupIndex&&!e.columnInternals.groupingDisabled}
5964
5972
  >
5965
5973
  <slot name="${e=>e.slot}"></slot>
5966
- </${gw}>
5974
+ </${vw}>
5967
5975
  `)}
5968
5976
  `)}
5969
5977
  <div class="header-scrollbar-spacer"></div>
@@ -5972,32 +5980,32 @@ const Mw=ro.tagFor(Iw),Aw=G`
5972
5980
  </div>
5973
5981
  <div class="table-viewport" ${Re("viewport")}>
5974
5982
  <div class="table-scroll"></div>
5975
- <div class="table-row-container" ${Be({property:"rowElements",filter:Pe(kw)})}
5983
+ <div class="table-row-container" ${Be({property:"rowElements",filter:Pe(Sw)})}
5976
5984
  role="rowgroup">
5977
5985
  ${Me((e=>e.columns.length>0&&e.canRenderRows),G`
5978
5986
  ${He((e=>e.virtualizer.visibleItems),G`
5979
5987
  ${Me(((e,t)=>t.parent.tableData[e.index]?.isGrouped),G`
5980
- <${Mw}
5988
+ <${Aw}
5981
5989
  class="group-row"
5982
5990
  :groupRowValue="${(e,t)=>t.parent.tableData[e.index]?.groupRowValue}"
5983
5991
  ?expanded="${(e,t)=>t.parent.tableData[e.index]?.isExpanded}"
5984
5992
  :nestingLevel="${(e,t)=>t.parent.tableData[e.index]?.nestingLevel}"
5985
5993
  :leafItemCount="${(e,t)=>t.parent.tableData[e.index]?.leafItemCount}"
5986
5994
  :groupColumn="${(e,t)=>t.parent.tableData[e.index]?.groupColumn}"
5987
- ?selectable="${(e,t)=>t.parent.selectionMode===Xb.multiple}"
5995
+ ?selectable="${(e,t)=>t.parent.selectionMode===Yb.multiple}"
5988
5996
  selection-state="${(e,t)=>t.parent.tableData[e.index]?.selectionState}"
5989
5997
  @group-selection-toggle="${(e,t)=>t.parent.onRowSelectionToggle(e.index,t.event)}"
5990
5998
  @group-expand-toggle="${(e,t)=>t.parent.handleGroupRowExpanded(e.index,t.event)}"
5991
5999
  >
5992
- </${Mw}>
6000
+ </${Aw}>
5993
6001
  `)}
5994
6002
  ${Me(((e,t)=>!t.parent.tableData[e.index]?.isGrouped),G`
5995
- <${kw}
6003
+ <${Sw}
5996
6004
  class="row"
5997
6005
  record-id="${(e,t)=>t.parent.tableData[e.index]?.id}"
5998
- ?selectable="${(e,t)=>t.parent.selectionMode!==Xb.none}"
5999
- ?selected="${(e,t)=>t.parent.tableData[e.index]?.selectionState===Qb}"
6000
- ?hide-selection="${(e,t)=>t.parent.selectionMode!==Xb.multiple}"
6006
+ ?selectable="${(e,t)=>t.parent.selectionMode!==Yb.none}"
6007
+ ?selected="${(e,t)=>t.parent.tableData[e.index]?.selectionState===Jb}"
6008
+ ?hide-selection="${(e,t)=>t.parent.selectionMode!==Yb.multiple}"
6001
6009
  :dataRecord="${(e,t)=>t.parent.tableData[e.index]?.record}"
6002
6010
  :columns="${(e,t)=>t.parent.columns}"
6003
6011
  :nestingLevel="${(e,t)=>t.parent.tableData[e.index]?.nestingLevel}"
@@ -6014,7 +6022,7 @@ const Mw=ro.tagFor(Iw),Aw=G`
6014
6022
  </slot>
6015
6023
  `)}
6016
6024
  `)}
6017
- </${kw}>
6025
+ </${Sw}>
6018
6026
  `)}
6019
6027
  `)}
6020
6028
  `)}
@@ -6033,8 +6041,8 @@ const Mw=ro.tagFor(Iw),Aw=G`
6033
6041
  *
6034
6042
  * @license MIT
6035
6043
  */
6036
- function Ew(){return Ew=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t]
6037
- for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(e[o]=i[o])}return e},Ew.apply(this,arguments)}
6044
+ function Ow(){return Ow=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t]
6045
+ for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(e[o]=i[o])}return e},Ow.apply(this,arguments)}
6038
6046
  /**
6039
6047
  * virtual-core
6040
6048
  *
@@ -6044,42 +6052,42 @@ for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(e[o]=i[o])}return e},
6044
6052
  * LICENSE.md file in the root directory of this source tree.
6045
6053
  *
6046
6054
  * @license MIT
6047
- */function Ow(e,t,i){var o,n,s=null!=(o=i.initialDeps)?o:[]
6055
+ */function Fw(e,t,i){var o,n,s=null!=(o=i.initialDeps)?o:[]
6048
6056
  return function(){var o
6049
6057
  i.key&&null!=i.debug&&i.debug()&&(o=Date.now())
6050
6058
  var r,a=e()
6051
6059
  if(!(a.length!==s.length||a.some((function(e,t){return s[t]!==e}))))return n
6052
6060
  if(s=a,i.key&&null!=i.debug&&i.debug()&&(r=Date.now()),n=t.apply(void 0,a),i.key&&null!=i.debug&&i.debug()){var l=Math.round(100*(Date.now()-o))/100,c=Math.round(100*(Date.now()-r))/100,d=c/16,h=function(e,t){for(e=String(e);e.length<t;)e=" "+e
6053
6061
  return e}
6054
- console.info("%c⏱ "+h(c,5)+" /"+h(l,5)+" ms","\n font-size: .6rem;\n font-weight: bold;\n color: hsl("+Math.max(0,Math.min(120-120*d,120))+"deg 100% 31%);",null==i?void 0:i.key)}return null==i||null==i.onChange||i.onChange(n),n}}var Fw,Vw=function(e){return e},Hw=function(e){for(var t=Math.max(e.startIndex-e.overscan,0),i=Math.min(e.endIndex+e.overscan,e.count-1),o=[],n=t;n<=i;n++)o.push(n)
6055
- return o},Pw=function(e,t){var i=new ResizeObserver((function(e){var i=e[0]
6062
+ console.info("%c⏱ "+h(c,5)+" /"+h(l,5)+" ms","\n font-size: .6rem;\n font-weight: bold;\n color: hsl("+Math.max(0,Math.min(120-120*d,120))+"deg 100% 31%);",null==i?void 0:i.key)}return null==i||null==i.onChange||i.onChange(n),n}}var Vw,Hw=function(e){return e},Pw=function(e){for(var t=Math.max(e.startIndex-e.overscan,0),i=Math.min(e.endIndex+e.overscan,e.count-1),o=[],n=t;n<=i;n++)o.push(n)
6063
+ return o},Tw=function(e,t){var i=new ResizeObserver((function(e){var i=e[0]
6056
6064
  if(i){var o=i.contentRect,n=o.width,s=o.height
6057
6065
  t({width:Math.round(n),height:Math.round(s)})}else t({width:0,height:0})}))
6058
- if(e.scrollElement)return t(e.scrollElement.getBoundingClientRect()),i.observe(e.scrollElement),function(){i.unobserve(e.scrollElement)}},Tw={element:["scrollLeft","scrollTop"],window:["scrollX","scrollY"]},Dw=(Fw="element",function(e,t){if(e.scrollElement){var i=Tw[Fw][0],o=Tw[Fw][1],n=e.scrollElement[i],s=e.scrollElement[o],r=function(){var n=e.scrollElement[e.options.horizontal?i:o]
6066
+ if(e.scrollElement)return t(e.scrollElement.getBoundingClientRect()),i.observe(e.scrollElement),function(){i.unobserve(e.scrollElement)}},Dw={element:["scrollLeft","scrollTop"],window:["scrollX","scrollY"]},Lw=(Vw="element",function(e,t){if(e.scrollElement){var i=Dw[Vw][0],o=Dw[Vw][1],n=e.scrollElement[i],s=e.scrollElement[o],r=function(){var n=e.scrollElement[e.options.horizontal?i:o]
6059
6067
  t(n)}
6060
6068
  r()
6061
6069
  var a=function(t){var a=t.currentTarget,l=a[i],c=a[o];(e.options.horizontal?n-l:s-c)&&r(),n=l,s=c}
6062
- return e.scrollElement.addEventListener("scroll",a,{capture:!1,passive:!0}),function(){e.scrollElement.removeEventListener("scroll",a)}}}),Lw=function(e,t){return Math.round(e.getBoundingClientRect()[t.options.horizontal?"width":"height"])},zw=function(e,t,i){var o,n,s=t.adjustments,r=void 0===s?0:s,a=t.behavior,l=e+r
6063
- null==(o=i.scrollElement)||null==o.scrollTo||o.scrollTo(((n={})[i.options.horizontal?"left":"top"]=l,n.behavior=a,n))},Bw=function(e){var t,i=this
6070
+ return e.scrollElement.addEventListener("scroll",a,{capture:!1,passive:!0}),function(){e.scrollElement.removeEventListener("scroll",a)}}}),zw=function(e,t){return Math.round(e.getBoundingClientRect()[t.options.horizontal?"width":"height"])},Bw=function(e,t,i){var o,n,s=t.adjustments,r=void 0===s?0:s,a=t.behavior,l=e+r
6071
+ null==(o=i.scrollElement)||null==o.scrollTo||o.scrollTo(((n={})[i.options.horizontal?"left":"top"]=l,n.behavior=a,n))},Nw=function(e){var t,i=this
6064
6072
  this.unsubs=[],this.scrollElement=null,this.isScrolling=!1,this.isScrollingTimeoutId=null,this.scrollToIndexTimeoutId=null,this.measurementsCache=[],this.itemSizeCache={},this.pendingMeasuredCacheIndexes=[],this.scrollDirection=null,this.scrollAdjustments=0,this.measureElementCache={},this.getResizeObserver=(t=null,function(){return t||("undefined"!=typeof ResizeObserver?t=new ResizeObserver((function(e){e.forEach((function(e){i._measureElement(e.target,!1)}))})):null)}),this.range={startIndex:0,endIndex:0},this.setOptions=function(e){Object.entries(e).forEach((function(t){var i=t[0]
6065
- void 0===t[1]&&delete e[i]})),i.options=Ew({debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:Vw,rangeExtractor:Hw,onChange:function(){},measureElement:Lw,initialRect:{width:0,height:0},scrollMargin:0,scrollingDelay:150,indexAttribute:"data-index",initialMeasurementsCache:[]},e)},this.notify=function(){null==i.options.onChange||i.options.onChange(i)},this.cleanup=function(){i.unsubs.filter(Boolean).forEach((function(e){return e()})),i.unsubs=[],i.scrollElement=null},this._didMount=function(){var e=i.getResizeObserver()
6073
+ void 0===t[1]&&delete e[i]})),i.options=Ow({debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:Hw,rangeExtractor:Pw,onChange:function(){},measureElement:zw,initialRect:{width:0,height:0},scrollMargin:0,scrollingDelay:150,indexAttribute:"data-index",initialMeasurementsCache:[]},e)},this.notify=function(){null==i.options.onChange||i.options.onChange(i)},this.cleanup=function(){i.unsubs.filter(Boolean).forEach((function(e){return e()})),i.unsubs=[],i.scrollElement=null},this._didMount=function(){var e=i.getResizeObserver()
6066
6074
  return Object.values(i.measureElementCache).forEach((function(t){return null==e?void 0:e.observe(t)})),function(){null==e||e.disconnect(),i.cleanup()}},this._willUpdate=function(){var e=i.options.getScrollElement()
6067
- i.scrollElement!==e&&(i.cleanup(),i.scrollElement=e,i._scrollToOffset(i.scrollOffset,{adjustments:void 0,behavior:void 0}),i.unsubs.push(i.options.observeElementRect(i,(function(e){i.scrollRect=e,i.maybeNotify()}))),i.unsubs.push(i.options.observeElementOffset(i,(function(e){i.scrollAdjustments=0,i.scrollOffset!==e&&(null!==i.isScrollingTimeoutId&&(clearTimeout(i.isScrollingTimeoutId),i.isScrollingTimeoutId=null),i.isScrolling=!0,i.scrollDirection=i.scrollOffset<e?"forward":"backward",i.scrollOffset=e,i.maybeNotify(),i.isScrollingTimeoutId=setTimeout((function(){i.isScrollingTimeoutId=null,i.isScrolling=!1,i.scrollDirection=null,i.maybeNotify()}),i.options.scrollingDelay))}))))},this.getSize=function(){return i.scrollRect[i.options.horizontal?"width":"height"]},this.getMeasurements=Ow((function(){return[i.options.count,i.options.paddingStart,i.options.scrollMargin,i.options.getItemKey,i.itemSizeCache]}),(function(e,t,o,n,s){var r=i.pendingMeasuredCacheIndexes.length>0?Math.min.apply(Math,i.pendingMeasuredCacheIndexes):0
6075
+ i.scrollElement!==e&&(i.cleanup(),i.scrollElement=e,i._scrollToOffset(i.scrollOffset,{adjustments:void 0,behavior:void 0}),i.unsubs.push(i.options.observeElementRect(i,(function(e){i.scrollRect=e,i.maybeNotify()}))),i.unsubs.push(i.options.observeElementOffset(i,(function(e){i.scrollAdjustments=0,i.scrollOffset!==e&&(null!==i.isScrollingTimeoutId&&(clearTimeout(i.isScrollingTimeoutId),i.isScrollingTimeoutId=null),i.isScrolling=!0,i.scrollDirection=i.scrollOffset<e?"forward":"backward",i.scrollOffset=e,i.maybeNotify(),i.isScrollingTimeoutId=setTimeout((function(){i.isScrollingTimeoutId=null,i.isScrolling=!1,i.scrollDirection=null,i.maybeNotify()}),i.options.scrollingDelay))}))))},this.getSize=function(){return i.scrollRect[i.options.horizontal?"width":"height"]},this.getMeasurements=Fw((function(){return[i.options.count,i.options.paddingStart,i.options.scrollMargin,i.options.getItemKey,i.itemSizeCache]}),(function(e,t,o,n,s){var r=i.pendingMeasuredCacheIndexes.length>0?Math.min.apply(Math,i.pendingMeasuredCacheIndexes):0
6068
6076
  i.pendingMeasuredCacheIndexes=[]
6069
6077
  for(var a=i.measurementsCache.slice(0,r),l=r;l<e;l++){var c=n(l),d=s[c],h=a[l-1]?a[l-1].end:t+o,u="number"==typeof d?d:i.options.estimateSize(l),p=h+u
6070
- a[l]={index:l,start:h,size:u,end:p,key:c}}return i.measurementsCache=a,a}),{key:!1,debug:function(){return i.options.debug}}),this.calculateRange=Ow((function(){return[i.getMeasurements(),i.getSize(),i.scrollOffset]}),(function(e,t,o){return i.range=function(e){var t=e.measurements,i=e.outerSize,o=e.scrollOffset,n=t.length-1,s=function(e){return t[e].start},r=function(e,t,i,o){for(;e<=t;){var n=(e+t)/2|0,s=i(n)
6078
+ a[l]={index:l,start:h,size:u,end:p,key:c}}return i.measurementsCache=a,a}),{key:!1,debug:function(){return i.options.debug}}),this.calculateRange=Fw((function(){return[i.getMeasurements(),i.getSize(),i.scrollOffset]}),(function(e,t,o){return i.range=function(e){var t=e.measurements,i=e.outerSize,o=e.scrollOffset,n=t.length-1,s=function(e){return t[e].start},r=function(e,t,i,o){for(;e<=t;){var n=(e+t)/2|0,s=i(n)
6071
6079
  if(s<o)e=n+1
6072
6080
  else{if(!(s>o))return n
6073
6081
  t=n-1}}return e>0?e-1:0}(0,n,s,o),a=r
6074
6082
  for(;a<n&&t[a].end<o+i;)a++
6075
- return{startIndex:r,endIndex:a}}({measurements:e,outerSize:t,scrollOffset:o})}),{key:!1,debug:function(){return i.options.debug}}),this.maybeNotify=Ow((function(){return[].concat(Object.values(i.calculateRange()),[i.isScrolling])}),(function(){i.notify()}),{key:!1,debug:function(){return i.options.debug},initialDeps:[].concat(Object.values(this.range),[this.isScrolling])}),this.getIndexes=Ow((function(){return[i.options.rangeExtractor,i.calculateRange(),i.options.overscan,i.options.count]}),(function(e,t,i,o){return e(Ew({},t,{overscan:i,count:o}))}),{key:!1,debug:function(){return i.options.debug}}),this.indexFromElement=function(e){var t=i.options.indexAttribute,o=e.getAttribute(t)
6083
+ return{startIndex:r,endIndex:a}}({measurements:e,outerSize:t,scrollOffset:o})}),{key:!1,debug:function(){return i.options.debug}}),this.maybeNotify=Fw((function(){return[].concat(Object.values(i.calculateRange()),[i.isScrolling])}),(function(){i.notify()}),{key:!1,debug:function(){return i.options.debug},initialDeps:[].concat(Object.values(this.range),[this.isScrolling])}),this.getIndexes=Fw((function(){return[i.options.rangeExtractor,i.calculateRange(),i.options.overscan,i.options.count]}),(function(e,t,i,o){return e(Ow({},t,{overscan:i,count:o}))}),{key:!1,debug:function(){return i.options.debug}}),this.indexFromElement=function(e){var t=i.options.indexAttribute,o=e.getAttribute(t)
6076
6084
  return o?parseInt(o,10):(console.warn("Missing attribute name '"+t+"={index}' on measured element."),-1)},this._measureElement=function(e,t){var o,n=i.indexFromElement(e),s=i.measurementsCache[n]
6077
6085
  if(s){var r=i.measureElementCache[s.key],a=i.getResizeObserver()
6078
6086
  if(!e.isConnected)return null==a||a.unobserve(e),void(e===r&&delete i.measureElementCache[s.key])
6079
6087
  if(r!==e)r&&(null==a||a.unobserve(r)),null==a||a.observe(e),i.measureElementCache[s.key]=e
6080
6088
  else if(!t&&!r.__virtualizerSkipFirstNotSync)return void(r.__virtualizerSkipFirstNotSync=!0)
6081
6089
  var l,c=i.options.measureElement(e,i),d=c-(null!=(o=i.itemSizeCache[s.key])?o:s.size)
6082
- if(0!==d)s.start<i.scrollOffset&&i._scrollToOffset(i.scrollOffset,{adjustments:i.scrollAdjustments+=d,behavior:void 0}),i.pendingMeasuredCacheIndexes.push(n),i.itemSizeCache=Ew({},i.itemSizeCache,((l={})[s.key]=c,l)),i.notify()}},this.measureElement=function(e){e&&i._measureElement(e,!0)},this.getVirtualItems=Ow((function(){return[i.getIndexes(),i.getMeasurements()]}),(function(e,t){for(var i=[],o=0,n=e.length;o<n;o++){var s=t[e[o]]
6090
+ if(0!==d)s.start<i.scrollOffset&&i._scrollToOffset(i.scrollOffset,{adjustments:i.scrollAdjustments+=d,behavior:void 0}),i.pendingMeasuredCacheIndexes.push(n),i.itemSizeCache=Ow({},i.itemSizeCache,((l={})[s.key]=c,l)),i.notify()}},this.measureElement=function(e){e&&i._measureElement(e,!0)},this.getVirtualItems=Fw((function(){return[i.getIndexes(),i.getMeasurements()]}),(function(e,t){for(var i=[],o=0,n=e.length;o<n;o++){var s=t[e[o]]
6083
6091
  i.push(s)}return i}),{key:!1,debug:function(){return i.options.debug}}),this.getOffsetForAlignment=function(e,t){var o=i.getSize()
6084
6092
  "auto"===t&&(t=e<=i.scrollOffset?"start":e>=i.scrollOffset+o?"end":"start"),"start"===t||("end"===t?e-=o:"center"===t&&(e-=o/2))
6085
6093
  var n=i.options.horizontal?"scrollWidth":"scrollHeight",s=(i.scrollElement?"document"in i.scrollElement?i.scrollElement.document.documentElement[n]:i.scrollElement[n]:0)-i.getSize()
@@ -6109,25 +6117,25 @@ i.options.scrollToFn(e,{behavior:n,adjustments:o},i)},this.measure=function(){i.
6109
6117
  * LICENSE.md file in the root directory of this source tree.
6110
6118
  *
6111
6119
  * @license MIT
6112
- */class Nw{constructor(e,t){this.visibleItems=[],this.allRowsHeight=0,this.headerContainerMarginRight=0,this.rowContainerYOffset=0,this.table=e,this.tanStackTable=t,this.viewportResizeObserver=new ResizeObserver((e=>{const t=e[0]?.borderBoxSize[0]
6120
+ */class Zw{constructor(e,t){this.visibleItems=[],this.allRowsHeight=0,this.headerContainerMarginRight=0,this.rowContainerYOffset=0,this.table=e,this.tanStackTable=t,this.viewportResizeObserver=new ResizeObserver((e=>{const t=e[0]?.borderBoxSize[0]
6113
6121
  if(t){const e=t.inlineSize
6114
6122
  this.headerContainerMarginRight=e-this.table.viewport.clientWidth}}))}connectedCallback(){this.viewportResizeObserver.observe(this.table.viewport),this.updateVirtualizer()}disconnectedCallback(){this.viewportResizeObserver.disconnect()}dataChanged(){this.table.$fastController.isConnected&&this.updateVirtualizer()}updateVirtualizer(){const e=this.createVirtualizerOptions()
6115
- this.virtualizer?this.virtualizer.setOptions(e):this.virtualizer=new Bw(e),this.virtualizer._willUpdate(),this.handleVirtualizerChange()}createVirtualizerOptions(){const e=parseFloat(oa.getValueFor(this.table))+2*parseFloat(aa.getValueFor(this.table))
6116
- return{count:this.tanStackTable.getRowModel().rows.length,getScrollElement:()=>this.table.viewport,estimateSize:t=>e,enableSmoothScroll:!0,overscan:3,scrollingDelay:5,scrollToFn:zw,observeElementOffset:Dw,observeElementRect:Pw,onChange:()=>this.handleVirtualizerChange()}}handleVirtualizerChange(){this.notifyFocusedCellRecycling()
6123
+ this.virtualizer?this.virtualizer.setOptions(e):this.virtualizer=new Nw(e),this.virtualizer._willUpdate(),this.handleVirtualizerChange()}createVirtualizerOptions(){const e=parseFloat(oa.getValueFor(this.table))+2*parseFloat(aa.getValueFor(this.table))
6124
+ return{count:this.tanStackTable.getRowModel().rows.length,getScrollElement:()=>this.table.viewport,estimateSize:t=>e,enableSmoothScroll:!0,overscan:3,scrollingDelay:5,scrollToFn:Bw,observeElementOffset:Lw,observeElementRect:Tw,onChange:()=>this.handleVirtualizerChange()}}handleVirtualizerChange(){this.notifyFocusedCellRecycling()
6117
6125
  const e=this.virtualizer
6118
6126
  this.visibleItems=e.getVirtualItems(),this.allRowsHeight=e.getTotalSize()
6119
6127
  let t=0
6120
6128
  if(this.visibleItems.length>0){t=this.visibleItems[0].start}this.rowContainerYOffset=t}notifyFocusedCellRecycling(){let e=this.table.shadowRoot.activeElement
6121
- for(;null!==e&&!(e instanceof nw)&&e.shadowRoot;)e=e.shadowRoot.activeElement
6122
- if(e instanceof nw&&e.focusedRecycleCallback(),void 0!==this.table.openActionMenuRecordId){this.table.rowElements.find((e=>e.recordId===this.table.openActionMenuRecordId))?.closeOpenActionMenus()}}}function Zw(e){switch(e){case ew:return qb.basic
6123
- case tw:return qw
6124
- default:return qb.basic}}function qw(e,t,i){const o=e.getValue(i),n=t.getValue(i)
6125
- return"string"==typeof o&&"string"==typeof n?o.localeCompare(n):o===n?0:void 0===o||null===o&&void 0!==n?-1:1}e([m],Nw.prototype,"visibleItems",void 0),e([m],Nw.prototype,"allRowsHeight",void 0),e([m],Nw.prototype,"headerContainerMarginRight",void 0),e([m],Nw.prototype,"rowContainerYOffset",void 0)
6126
- const Uw=(e,...t)=>{for(const i of t)if(e===i)return!0
6127
- return!1},jw=(e,...t)=>{for(const i of t)if(e===i)return!0
6129
+ for(;null!==e&&!(e instanceof sw)&&e.shadowRoot;)e=e.shadowRoot.activeElement
6130
+ if(e instanceof sw&&e.focusedRecycleCallback(),void 0!==this.table.openActionMenuRecordId){this.table.rowElements.find((e=>e.recordId===this.table.openActionMenuRecordId))?.closeOpenActionMenus()}}}function qw(e){switch(e){case tw:return Ub.basic
6131
+ case iw:return Uw
6132
+ default:return Ub.basic}}function Uw(e,t,i){const o=e.getValue(i),n=t.getValue(i)
6133
+ return"string"==typeof o&&"string"==typeof n?o.localeCompare(n):o===n?0:void 0===o||null===o&&void 0!==n?-1:1}e([m],Zw.prototype,"visibleItems",void 0),e([m],Zw.prototype,"allRowsHeight",void 0),e([m],Zw.prototype,"headerContainerMarginRight",void 0),e([m],Zw.prototype,"rowContainerYOffset",void 0)
6134
+ const jw=(e,...t)=>{for(const i of t)if(e===i)return!0
6135
+ return!1},Gw=(e,...t)=>{for(const i of t)if(e===i)return!0
6128
6136
  return!1}
6129
- class Gw{constructor(e){this.requiredUpdates={rowIds:!1,groupRows:!1,columnIds:!1,columnSort:!1,columnWidths:!1,columnDefinition:!1,actionMenuSlots:!1,selectionMode:!1},this.updateQueued=!1,this.table=e}get updateRowIds(){return this.requiredUpdates.rowIds}get updateGroupRows(){return this.requiredUpdates.groupRows}get updateColumnIds(){return this.requiredUpdates.columnIds}get updateColumnSort(){return this.requiredUpdates.columnSort}get updateColumnWidths(){return this.requiredUpdates.columnWidths}get updateColumnDefinition(){return this.requiredUpdates.columnDefinition}get updateActionMenuSlots(){return this.requiredUpdates.actionMenuSlots}get updateSelectionMode(){return this.requiredUpdates.selectionMode}get requiresTanStackUpdate(){return this.requiredUpdates.rowIds||this.requiredUpdates.columnSort||this.requiredUpdates.columnDefinition||this.requiredUpdates.groupRows||this.requiredUpdates.selectionMode}get requiresTanStackDataReset(){return this.requiredUpdates.rowIds||this.requiredUpdates.columnDefinition}trackAllStateChanged(){this.setAllKeys(!0),this.queueUpdate()}get hasPendingUpdates(){return this.updateQueued}trackColumnPropertyChanged(e){Uw(e,"columnId")?this.requiredUpdates.columnIds=!0:jw(e,"operandDataRecordFieldName","sortOperation")?this.requiredUpdates.columnDefinition=!0:Uw(e,"sortingDisabled")||jw(e,"currentSortDirection","currentSortIndex")?this.requiredUpdates.columnSort=!0:Uw(e,"columnHidden")||jw(e,"currentFractionalWidth","currentPixelWidth","minPixelWidth")?this.requiredUpdates.columnWidths=!0:Uw(e,"actionMenuSlot")?this.requiredUpdates.actionMenuSlots=!0:jw(e,"groupIndex","groupingDisabled")&&(this.requiredUpdates.groupRows=!0),this.queueUpdate()}trackColumnInstancesChanged(){this.requiredUpdates.columnIds=!0,this.requiredUpdates.columnDefinition=!0,this.requiredUpdates.columnSort=!0,this.requiredUpdates.columnWidths=!0,this.requiredUpdates.actionMenuSlots=!0,this.requiredUpdates.groupRows=!0,this.queueUpdate()}trackIdFieldNameChanged(){this.requiredUpdates.rowIds=!0,this.queueUpdate()}trackSelectionModeChanged(){this.requiredUpdates.selectionMode=!0,this.queueUpdate()}setAllKeys(e){Object.keys(this.requiredUpdates).forEach((t=>{this.requiredUpdates[t]=e}))}queueUpdate(){this.table.$fastController.isConnected&&(this.updateQueued||(this.updateQueued=!0,u.queueUpdate((()=>{this.table.update(),this.setAllKeys(!1),this.updateQueued=!1}))))}}class Ww{static getGridTemplateColumns(e){return e?.filter((e=>!e.columnHidden)).map((e=>{const{minPixelWidth:t,currentPixelWidth:i,currentFractionalWidth:o}=e.columnInternals
6130
- if(i){return`${Math.max(t,i)}px`}return`minmax(${t}px, ${o}fr)`})).join(" ")}}class Kw{constructor(e){this.tanStackTable=e}reset(){}toggleIsRowSelected(e,t){e.isGrouped&&e.selectionState===Qb?this.deselectAllLeafRows(e.id):this.tanStackTable.getRow(e.id).toggleSelected(t)}selectSingleRow(e){if(e.isGrouped)throw new Error("function not intended to select grouped rows")
6137
+ class Ww{constructor(e){this.requiredUpdates={rowIds:!1,groupRows:!1,columnIds:!1,columnSort:!1,columnWidths:!1,columnDefinition:!1,actionMenuSlots:!1,selectionMode:!1},this.updateQueued=!1,this.table=e}get updateRowIds(){return this.requiredUpdates.rowIds}get updateGroupRows(){return this.requiredUpdates.groupRows}get updateColumnIds(){return this.requiredUpdates.columnIds}get updateColumnSort(){return this.requiredUpdates.columnSort}get updateColumnWidths(){return this.requiredUpdates.columnWidths}get updateColumnDefinition(){return this.requiredUpdates.columnDefinition}get updateActionMenuSlots(){return this.requiredUpdates.actionMenuSlots}get updateSelectionMode(){return this.requiredUpdates.selectionMode}get requiresTanStackUpdate(){return this.requiredUpdates.rowIds||this.requiredUpdates.columnSort||this.requiredUpdates.columnDefinition||this.requiredUpdates.groupRows||this.requiredUpdates.selectionMode}get requiresTanStackDataReset(){return this.requiredUpdates.rowIds||this.requiredUpdates.columnDefinition}trackAllStateChanged(){this.setAllKeys(!0),this.queueUpdate()}get hasPendingUpdates(){return this.updateQueued}trackColumnPropertyChanged(e){jw(e,"columnId")?this.requiredUpdates.columnIds=!0:Gw(e,"operandDataRecordFieldName","sortOperation")?this.requiredUpdates.columnDefinition=!0:jw(e,"sortingDisabled")||Gw(e,"currentSortDirection","currentSortIndex")?this.requiredUpdates.columnSort=!0:jw(e,"columnHidden")||Gw(e,"currentFractionalWidth","currentPixelWidth","minPixelWidth")?this.requiredUpdates.columnWidths=!0:jw(e,"actionMenuSlot")?this.requiredUpdates.actionMenuSlots=!0:Gw(e,"groupIndex","groupingDisabled")&&(this.requiredUpdates.groupRows=!0),this.queueUpdate()}trackColumnInstancesChanged(){this.requiredUpdates.columnIds=!0,this.requiredUpdates.columnDefinition=!0,this.requiredUpdates.columnSort=!0,this.requiredUpdates.columnWidths=!0,this.requiredUpdates.actionMenuSlots=!0,this.requiredUpdates.groupRows=!0,this.queueUpdate()}trackIdFieldNameChanged(){this.requiredUpdates.rowIds=!0,this.queueUpdate()}trackSelectionModeChanged(){this.requiredUpdates.selectionMode=!0,this.queueUpdate()}setAllKeys(e){Object.keys(this.requiredUpdates).forEach((t=>{this.requiredUpdates[t]=e}))}queueUpdate(){this.table.$fastController.isConnected&&(this.updateQueued||(this.updateQueued=!0,u.queueUpdate((()=>{this.table.update(),this.setAllKeys(!1),this.updateQueued=!1}))))}}class Kw{static getGridTemplateColumns(e){return e?.filter((e=>!e.columnHidden)).map((e=>{const{minPixelWidth:t,currentPixelWidth:i,currentFractionalWidth:o}=e.columnInternals
6138
+ if(i){return`${Math.max(t,i)}px`}return`minmax(${t}px, ${o}fr)`})).join(" ")}}class Xw{constructor(e){this.tanStackTable=e}reset(){}toggleIsRowSelected(e,t){e.isGrouped&&e.selectionState===Jb?this.deselectAllLeafRows(e.id):this.tanStackTable.getRow(e.id).toggleSelected(t)}selectSingleRow(e){if(e.isGrouped)throw new Error("function not intended to select grouped rows")
6131
6139
  const t=this.tanStackTable.getState().rowSelection,i=[]
6132
6140
  if(Object.entries(t).forEach((([e,t])=>{t&&i.push(e)})),1===i.length&&i[0]===e.id)return!1
6133
6141
  const o={}
@@ -6137,7 +6145,7 @@ this.tanStackTable.setRowSelection(o)}getAllLeafRowIds(e){const t=this.tanStackT
6137
6145
  return t?.getIsGrouped()?t.getLeafRows().filter((e=>0===e.getLeafRows().length)).map((e=>e.id)):[]}getAllOrderedRows(){const e=this.tanStackTable.getPreExpandedRowModel().rows
6138
6146
  return this.getOrderedRows(e)}getOrderedRows(e){const t=[]
6139
6147
  for(const i of e)t.push(i),i.subRows?.length&&t.push(...this.getOrderedRows(i.subRows))
6140
- return t}}class Xw extends Kw{handleRowSelectionToggle(e,t,i){return!1}handleRowClick(e,t,i){return!1}handleActionMenuOpening(e){return!1}}class Yw extends Kw{handleRowSelectionToggle(e,t,i){return i&&this.tryUpdateRangeSelection(e.id)||(this.shiftSelectStartRowId=e.id,this.previousShiftSelectRowEndId=void 0,this.toggleIsRowSelected(e,t)),!0}handleRowClick(e,t,i){return i?(this.shiftSelectStartRowId=e.id,this.previousShiftSelectRowEndId=void 0,this.toggleIsRowSelected(e),!0):!(!t||!this.tryUpdateRangeSelection(e.id))||(this.shiftSelectStartRowId=e.id,this.previousShiftSelectRowEndId=void 0,this.selectSingleRow(e))}handleActionMenuOpening(e){return e.selectionState!==Qb&&this.selectSingleRow(e)}reset(){this.shiftSelectStartRowId=void 0,this.previousShiftSelectRowEndId=void 0}tryUpdateRangeSelection(e){if(void 0===this.shiftSelectStartRowId)return!1
6148
+ return t}}class Yw extends Xw{handleRowSelectionToggle(e,t,i){return!1}handleRowClick(e,t,i){return!1}handleActionMenuOpening(e){return!1}}class Qw extends Xw{handleRowSelectionToggle(e,t,i){return i&&this.tryUpdateRangeSelection(e.id)||(this.shiftSelectStartRowId=e.id,this.previousShiftSelectRowEndId=void 0,this.toggleIsRowSelected(e,t)),!0}handleRowClick(e,t,i){return i?(this.shiftSelectStartRowId=e.id,this.previousShiftSelectRowEndId=void 0,this.toggleIsRowSelected(e),!0):!(!t||!this.tryUpdateRangeSelection(e.id))||(this.shiftSelectStartRowId=e.id,this.previousShiftSelectRowEndId=void 0,this.selectSingleRow(e))}handleActionMenuOpening(e){return e.selectionState!==Jb&&this.selectSingleRow(e)}reset(){this.shiftSelectStartRowId=void 0,this.previousShiftSelectRowEndId=void 0}tryUpdateRangeSelection(e){if(void 0===this.shiftSelectStartRowId)return!1
6141
6149
  const t=this.getAllOrderedRows(),i=this.getRowIndexForId(this.shiftSelectStartRowId,t)
6142
6150
  if(-1===i)return!1
6143
6151
  const o=this.tanStackTable.getState().rowSelection
@@ -6147,20 +6155,20 @@ this.updateSelectionStateForRange(e,i,n,o,!0)}updateSelectionStateForRange(e,t,i
6147
6155
  const s=Math.min(t,i),r=Math.max(t,i)
6148
6156
  for(let t=s;t<=r;t++){const i=o[t]
6149
6157
  i.getIsGrouped()||this.updateSelectionStateForRow(e,i.id,n)}const a=o[i]
6150
- a.getIsGrouped()&&this.getAllLeafRowIds(a.id).forEach((t=>this.updateSelectionStateForRow(e,t,n)))}updateSelectionStateForRow(e,t,i){i?e[t]=!0:delete e[t]}getRowIndexForId(e,t){return e?t.findIndex((t=>t.id===e)):-1}}class Qw extends Kw{handleRowSelectionToggle(e,t,i){return this.toggleIsRowSelected(e,t),!0}handleRowClick(e,t,i){return this.selectSingleRow(e)}handleActionMenuOpening(e){return this.handleRowClick(e,!1,!1)}}class Jw{constructor(e,t){this.tanStackTable=e,this.selectionManager=this.createSelectionManager(t)}handleRowSelectionToggle(e,t,i){return!!e&&this.selectionManager.handleRowSelectionToggle(e,t,i)}handleRowClick(e,t,i){return!!e&&this.selectionManager.handleRowClick(e,t,i)}handleActionMenuOpening(e){return!!e&&this.selectionManager.handleActionMenuOpening(e)}handleSelectionModeChanged(e){this.selectionManager=this.createSelectionManager(e)}handleSelectionReset(){this.selectionManager.reset()}createSelectionManager(e){switch(e){case Xb.multiple:return new Yw(this.tanStackTable)
6151
- case Xb.single:return new Qw(this.tanStackTable)
6152
- case Xb.none:return new Xw(this.tanStackTable)
6153
- default:throw new Error("unknown selection mode found")}}}class ex extends Rt{constructor(){super(),this.selectionMode=Xb.none,this.tableData=[],this.columns=[],this.childItems=[],this.rowElements=[],this.actionMenuSlots=[],this.canRenderRows=!0,this.scrollX=0,this.selectionState=Yb,this.showCollapseAll=!1,this.documentShiftKeyDown=!1,this.tableValidator=new lw,this.updateTracker=new Gw(this),this.columnNotifiers=[],this.isInitialized=!1,this.collapsedRows=new Set,this.ignoreSelectionChangeEvents=!1,this.onViewPortScroll=e=>{this.scrollX=e.target.scrollLeft},this.onKeyDown=e=>{e.key===Er&&(this.documentShiftKeyDown=!0)},this.onKeyUp=e=>{e.key===Er&&(this.documentShiftKeyDown=!1)},this.getIsRowExpanded=e=>{if(!e.getIsGrouped())return!1
6158
+ a.getIsGrouped()&&this.getAllLeafRowIds(a.id).forEach((t=>this.updateSelectionStateForRow(e,t,n)))}updateSelectionStateForRow(e,t,i){i?e[t]=!0:delete e[t]}getRowIndexForId(e,t){return e?t.findIndex((t=>t.id===e)):-1}}class Jw extends Xw{handleRowSelectionToggle(e,t,i){return this.toggleIsRowSelected(e,t),!0}handleRowClick(e,t,i){return this.selectSingleRow(e)}handleActionMenuOpening(e){return this.handleRowClick(e,!1,!1)}}class ex{constructor(e,t){this.tanStackTable=e,this.selectionManager=this.createSelectionManager(t)}handleRowSelectionToggle(e,t,i){return!!e&&this.selectionManager.handleRowSelectionToggle(e,t,i)}handleRowClick(e,t,i){return!!e&&this.selectionManager.handleRowClick(e,t,i)}handleActionMenuOpening(e){return!!e&&this.selectionManager.handleActionMenuOpening(e)}handleSelectionModeChanged(e){this.selectionManager=this.createSelectionManager(e)}handleSelectionReset(){this.selectionManager.reset()}createSelectionManager(e){switch(e){case Yb.multiple:return new Qw(this.tanStackTable)
6159
+ case Yb.single:return new Jw(this.tanStackTable)
6160
+ case Yb.none:return new Yw(this.tanStackTable)
6161
+ default:throw new Error("unknown selection mode found")}}}class tx extends Rt{constructor(){super(),this.selectionMode=Yb.none,this.tableData=[],this.columns=[],this.childItems=[],this.rowElements=[],this.actionMenuSlots=[],this.canRenderRows=!0,this.scrollX=0,this.selectionState=Qb,this.showCollapseAll=!1,this.documentShiftKeyDown=!1,this.tableValidator=new cw,this.updateTracker=new Ww(this),this.columnNotifiers=[],this.isInitialized=!1,this.collapsedRows=new Set,this.ignoreSelectionChangeEvents=!1,this.onViewPortScroll=e=>{this.scrollX=e.target.scrollLeft},this.onKeyDown=e=>{e.key===Er&&(this.documentShiftKeyDown=!0)},this.onKeyUp=e=>{e.key===Er&&(this.documentShiftKeyDown=!1)},this.getIsRowExpanded=e=>{if(!e.getIsGrouped())return!1
6154
6162
  const t=this.table.options.state.expanded
6155
6163
  return!0===t||(Object.keys(t??{}).includes(e.id)?t[e.id]:!this.collapsedRows.has(e.id))},this.handleRowSelectionChange=e=>{const t=e instanceof Function?e(this.table.getState().rowSelection):e
6156
6164
  this.updateTableOptions({state:{rowSelection:t}})},this.handleExpandedChange=e=>{const t=e instanceof Function?e(this.table.getState().expanded):e
6157
- this.updateTableOptions({state:{expanded:t}})},this.options={data:[],onStateChange:e=>{},onRowSelectionChange:this.handleRowSelectionChange,onExpandedChange:this.handleExpandedChange,getCoreRowModel:e=>ub((()=>[e.options.data]),(t=>{const i={rows:[],flatRows:[],rowsById:{}},o=function(t,n,s){void 0===n&&(n=0)
6165
+ this.updateTableOptions({state:{expanded:t}})},this.options={data:[],onStateChange:e=>{},onRowSelectionChange:this.handleRowSelectionChange,onExpandedChange:this.handleExpandedChange,getCoreRowModel:e=>pb((()=>[e.options.data]),(t=>{const i={rows:[],flatRows:[],rowsById:{}},o=function(t,n,s){void 0===n&&(n=0)
6158
6166
  const r=[]
6159
- for(let l=0;l<t.length;l++){const c=Gb(e,e._getRowId(t[l],l,s),t[l],l,n)
6167
+ for(let l=0;l<t.length;l++){const c=Wb(e,e._getRowId(t[l],l,s),t[l],l,n)
6160
6168
  var a
6161
6169
  i.flatRows.push(c),i.rowsById[c.id]=c,r.push(c),e.options.getSubRows&&(c.originalSubRows=e.options.getSubRows(t[l],l),null!=(a=c.originalSubRows)&&a.length&&(c.subRows=o(c.originalSubRows,n+1,c)))}return r}
6162
6170
  return i.rows=o(t),i}),{key:!1,debug:()=>{var t
6163
- return null!=(t=e.options.debugAll)?t:e.options.debugTable},onChange:()=>{e._autoResetPageIndex()}}),getSortedRowModel:e=>ub((()=>[e.getState().sorting,e.getPreSortedRowModel()]),((t,i)=>{if(!i.rows.length||null==t||!t.length)return i
6171
+ return null!=(t=e.options.debugAll)?t:e.options.debugTable},onChange:()=>{e._autoResetPageIndex()}}),getSortedRowModel:e=>pb((()=>[e.getState().sorting,e.getPreSortedRowModel()]),((t,i)=>{if(!i.rows.length||null==t||!t.length)return i
6164
6172
  const o=e.getState().sorting,n=[],s=o.filter((t=>{var i
6165
6173
  return null==(i=e.getColumn(t.id))?void 0:i.getCanSort()})),r={}
6166
6174
  s.forEach((t=>{const i=e.getColumn(t.id)
@@ -6173,57 +6181,57 @@ if(i||o)return i&&o?0:i?a.sortUndefined:-a.sortUndefined}let c=a.sortingFn(e,t,n
6173
6181
  if(0!==c)return l&&(c*=-1),a.invertSorting&&(c*=-1),c}return e.index-t.index})),t.forEach((e=>{var t
6174
6182
  n.push(e),null!=(t=e.subRows)&&t.length&&(e.subRows=a(e.subRows))})),t}
6175
6183
  return{rows:a(i.rows),flatRows:n,rowsById:i.rowsById}}),{key:!1,debug:()=>{var t
6176
- return null!=(t=e.options.debugAll)?t:e.options.debugTable},onChange:()=>{e._autoResetPageIndex()}}),getGroupedRowModel:Wb(),getExpandedRowModel:e=>ub((()=>[e.getState().expanded,e.getPreExpandedRowModel(),e.options.paginateExpandedRows]),((e,t,i)=>!t.rows.length||!0!==e&&!Object.keys(null!=e?e:{}).length?t:i?function(e){const t=[],i=e=>{var o
6184
+ return null!=(t=e.options.debugAll)?t:e.options.debugTable},onChange:()=>{e._autoResetPageIndex()}}),getGroupedRowModel:Kb(),getExpandedRowModel:e=>pb((()=>[e.getState().expanded,e.getPreExpandedRowModel(),e.options.paginateExpandedRows]),((e,t,i)=>!t.rows.length||!0!==e&&!Object.keys(null!=e?e:{}).length?t:i?function(e){const t=[],i=e=>{var o
6177
6185
  t.push(e),null!=(o=e.subRows)&&o.length&&e.getIsExpanded()&&e.subRows.forEach(i)}
6178
6186
  return e.rows.forEach(i),{rows:t,flatRows:e.flatRows,rowsById:e.rowsById}}(t):t),{key:!1,debug:()=>{var t
6179
- return null!=(t=e.options.debugAll)?t:e.options.debugTable}}),getIsRowExpanded:this.getIsRowExpanded,columns:[],state:{rowSelection:{},grouping:[],expanded:!0},enableRowSelection:e=>!e.getIsGrouped(),enableMultiRowSelection:!1,enableSubRowSelection:!1,enableSorting:!0,enableGrouping:!0,renderFallbackValue:null,autoResetAll:!1},this.table=jb(this.options),this.virtualizer=new Nw(this,this.table),this.selectionManager=new Jw(this.table,this.selectionMode)}get validity(){return this.tableValidator.getValidity()}async setData(e){await this.processPendingUpdates()
6187
+ return null!=(t=e.options.debugAll)?t:e.options.debugTable}}),getIsRowExpanded:this.getIsRowExpanded,columns:[],state:{rowSelection:{},grouping:[],expanded:!0},enableRowSelection:e=>!e.getIsGrouped(),enableMultiRowSelection:!1,enableSubRowSelection:!1,enableSorting:!0,enableGrouping:!0,renderFallbackValue:null,autoResetAll:!1},this.table=Gb(this.options),this.virtualizer=new Zw(this,this.table),this.selectionManager=new ex(this.table,this.selectionMode)}get validity(){return this.tableValidator.getValidity()}async setData(e){await this.processPendingUpdates()
6180
6188
  const t=e.map((e=>({...e}))),i={data:t}
6181
6189
  if(this.validateWithData(t),this.tableValidator.areRecordIdsValid()){const e=await this.getSelectedRecordIds()
6182
6190
  i.state={rowSelection:this.calculateTanStackSelectionState(e)}}this.updateTableOptions(i)}async getSelectedRecordIds(){await this.processPendingUpdates()
6183
6191
  const e=this.options.state.rowSelection
6184
6192
  if(!e)return[]
6185
6193
  const t=[]
6186
- return Object.entries(e).forEach((([e,i])=>{i&&t.push(e)})),t}async setSelectedRecordIds(e){await this.processPendingUpdates(),this.selectionMode!==Xb.none&&this.updateTableOptions({state:{rowSelection:this.calculateTanStackSelectionState(e)}})}connectedCallback(){super.connectedCallback(),this.initialize(),this.virtualizer.connectedCallback(),this.viewport.addEventListener("scroll",this.onViewPortScroll,{passive:!0}),document.addEventListener("keydown",this.onKeyDown),document.addEventListener("keyup",this.onKeyUp)}disconnectedCallback(){super.disconnectedCallback(),this.virtualizer.disconnectedCallback(),this.viewport.removeEventListener("scroll",this.onViewPortScroll),document.removeEventListener("keydown",this.onKeyDown),document.removeEventListener("keyup",this.onKeyUp)}checkValidity(){return this.tableValidator.isValid()}handleChange(e,t){(e instanceof aw||e instanceof rw)&&"string"==typeof t&&("validConfiguration"===t?this.tableValidator.validateColumnConfigurations(this.columns):this.updateTracker.trackColumnPropertyChanged(t))}onRowSelectionToggle(e,t){t.stopImmediatePropagation()
6194
+ return Object.entries(e).forEach((([e,i])=>{i&&t.push(e)})),t}async setSelectedRecordIds(e){await this.processPendingUpdates(),this.selectionMode!==Yb.none&&this.updateTableOptions({state:{rowSelection:this.calculateTanStackSelectionState(e)}})}connectedCallback(){super.connectedCallback(),this.initialize(),this.virtualizer.connectedCallback(),this.viewport.addEventListener("scroll",this.onViewPortScroll,{passive:!0}),document.addEventListener("keydown",this.onKeyDown),document.addEventListener("keyup",this.onKeyUp)}disconnectedCallback(){super.disconnectedCallback(),this.virtualizer.disconnectedCallback(),this.viewport.removeEventListener("scroll",this.onViewPortScroll),document.removeEventListener("keydown",this.onKeyDown),document.removeEventListener("keyup",this.onKeyUp)}checkValidity(){return this.tableValidator.isValid()}handleChange(e,t){(e instanceof lw||e instanceof aw)&&"string"==typeof t&&("validConfiguration"===t?this.tableValidator.validateColumnConfigurations(this.columns):this.updateTracker.trackColumnPropertyChanged(t))}onRowSelectionToggle(e,t){t.stopImmediatePropagation()
6187
6195
  this.selectionManager.handleRowSelectionToggle(this.tableData[e],t.detail.newState,this.documentShiftKeyDown)&&this.emitSelectionChangeEvent()}onRowClick(e,t){return this.selectionManager.handleRowClick(this.tableData[e],t.shiftKey,t.ctrlKey||t.metaKey)&&this.emitSelectionChangeEvent(),!0}onAllRowsSelectionChange(e){e.stopPropagation(),this.ignoreSelectionChangeEvents||(this.table.toggleAllRowsSelected(this.selectionCheckbox.checked),this.emitSelectionChangeEvent())}onRowActionMenuBeforeToggle(e,t){t.stopImmediatePropagation(),this.handleActionMenuBeforeToggleEvent(e,t)}onRowActionMenuToggle(e){e.stopImmediatePropagation(),this.handleRowActionMenuToggleEvent(e)}handleCollapseAllGroupRows(){this.collapsedRows.clear(),this.table.getRowModel().flatRows.filter((e=>e.getIsGrouped())).forEach((e=>this.collapsedRows.add(e.id))),this.table.toggleAllRowsExpanded(!1)}handleGroupRowExpanded(e,t){this.toggleGroupExpanded(e),t.stopPropagation()}toggleColumnSort(e,t){if(e.sortingDisabled)return
6188
6196
  const i=this.getColumnsParticipatingInSorting().sort(((e,t)=>e.columnInternals.currentSortIndex-t.columnInternals.currentSortIndex)),o=i.indexOf(e),n=o>-1,s=e.columnInternals.currentSortDirection
6189
- let r=Kb.ascending
6190
- n?s===Kb.descending?(i.splice(o,1),r=Kb.none,e.columnInternals.currentSortIndex=void 0):r=Kb.descending:i.push(e),e.columnInternals.currentSortDirection=r
6197
+ let r=Xb.ascending
6198
+ n?s===Xb.descending?(i.splice(o,1),r=Xb.none,e.columnInternals.currentSortIndex=void 0):r=Xb.descending:i.push(e),e.columnInternals.currentSortDirection=r
6191
6199
  for(let o=0;o<i.length;o++){const n=i[o]
6192
- t?i[o].columnInternals.currentSortIndex=o:n===e?n.columnInternals.currentSortIndex=0:(n.columnInternals.currentSortIndex=void 0,n.columnInternals.currentSortDirection=Kb.none)}this.emitColumnConfigurationChangeEvent()}update(){this.validate(),this.updateTracker.requiresTanStackUpdate&&this.updateTanStack(),this.updateTracker.updateActionMenuSlots&&this.updateActionMenuSlots(),this.updateTracker.updateColumnWidths&&this.updateRowGridColumns(),this.updateTracker.updateGroupRows&&(this.showCollapseAll=this.getColumnsParticipatingInGrouping().length>0)}get ariaMultiSelectable(){switch(this.selectionMode){case Xb.multiple:return"true"
6193
- case Xb.single:return"false"
6200
+ t?i[o].columnInternals.currentSortIndex=o:n===e?n.columnInternals.currentSortIndex=0:(n.columnInternals.currentSortIndex=void 0,n.columnInternals.currentSortDirection=Xb.none)}this.emitColumnConfigurationChangeEvent()}update(){this.validate(),this.updateTracker.requiresTanStackUpdate&&this.updateTanStack(),this.updateTracker.updateActionMenuSlots&&this.updateActionMenuSlots(),this.updateTracker.updateColumnWidths&&this.updateRowGridColumns(),this.updateTracker.updateGroupRows&&(this.showCollapseAll=this.getColumnsParticipatingInGrouping().length>0)}get ariaMultiSelectable(){switch(this.selectionMode){case Yb.multiple:return"true"
6201
+ case Yb.single:return"false"
6194
6202
  default:return null}}selectionModeChanged(e,t){this.$fastController.isConnected&&this.updateTracker.trackSelectionModeChanged()}idFieldNameChanged(e,t){this.$fastController.isConnected&&this.updateTracker.trackIdFieldNameChanged()}columnsChanged(e,t){this.$fastController.isConnected&&(this.observeColumns(),this.updateTracker.trackColumnInstancesChanged())}async handleActionMenuBeforeToggleEvent(e,t){this.selectionManager.handleActionMenuOpening(this.tableData[e])&&await this.emitSelectionChangeEvent(),this.openActionMenuRecordId=t.detail.recordIds[0]
6195
6203
  const i=await this.getActionMenuToggleEventDetail(t)
6196
6204
  this.$emit("action-menu-beforetoggle",i)}async handleRowActionMenuToggleEvent(e){const t=await this.getActionMenuToggleEventDetail(e)
6197
- this.$emit("action-menu-toggle",t),e.detail.newState||(this.openActionMenuRecordId=void 0)}async getActionMenuToggleEventDetail(e){const t=this.selectionMode===Xb.multiple?await this.getSelectedRecordIds():[this.openActionMenuRecordId]
6205
+ this.$emit("action-menu-toggle",t),e.detail.newState||(this.openActionMenuRecordId=void 0)}async getActionMenuToggleEventDetail(e){const t=this.selectionMode===Yb.multiple?await this.getSelectedRecordIds():[this.openActionMenuRecordId]
6198
6206
  return{...e.detail,recordIds:t}}removeColumnObservers(){this.columnNotifiers.forEach((e=>{e.unsubscribe(this)})),this.columnNotifiers=[]}initialize(){this.isInitialized||(this.isInitialized=!0,this.$fastController.onConnectedCallback(),this.updateTracker.trackAllStateChanged(),this.observeColumns())}async processPendingUpdates(){if(this.initialize(),await u.nextUpdate(),this.updateTracker.hasPendingUpdates)throw new Error("Expected pending updates to be resolved")}observeColumns(){this.removeColumnObservers()
6199
6207
  for(const e of this.columns){const t=v.getNotifier(e)
6200
6208
  t.subscribe(this),this.columnNotifiers.push(t)
6201
- v.getNotifier(e.columnInternals).subscribe(this),this.columnNotifiers.push(t)}}getColumnsParticipatingInSorting(){return this.columns.filter((e=>!e.sortingDisabled&&e.columnInternals.currentSortDirection!==Kb.none&&"number"==typeof e.columnInternals.currentSortIndex))}getColumnsParticipatingInGrouping(){return this.columns.filter((e=>!e.columnInternals.groupingDisabled&&"number"==typeof e.columnInternals.groupIndex))}childItemsChanged(){this.updateColumnsFromChildItems()}async updateColumnsFromChildItems(){const e=this.childItems.map((async e=>e.matches(":not(:defined)")?customElements.whenDefined(e.localName):Promise.resolve()))
6202
- await Promise.all(e),this.columns=this.childItems.filter((e=>e instanceof aw))}updateTanStack(){const e={state:{}}
6203
- this.updateTracker.updateColumnSort&&(e.state.sorting=this.calculateTanStackSortState()),this.updateTracker.updateColumnDefinition&&(e.columns=this.calculateTanStackColumns()),this.updateTracker.updateRowIds&&(e.getRowId=this.calculateTanStackRowIdFunction(),e.state.rowSelection={},this.selectionManager.handleSelectionReset()),this.updateTracker.updateSelectionMode&&(e.enableMultiRowSelection=this.selectionMode===Xb.multiple,e.enableSubRowSelection=this.selectionMode===Xb.multiple,e.state.rowSelection={},this.selectionManager.handleSelectionModeChanged(this.selectionMode)),this.updateTracker.requiresTanStackDataReset&&(e.data=[...this.table.options.data]),this.updateTracker.updateGroupRows&&(e.state.grouping=this.calculateTanStackGroupingState(),e.state.expanded=!0,this.collapsedRows.clear()),this.updateTableOptions(e)}updateActionMenuSlots(){const e=new Set
6209
+ v.getNotifier(e.columnInternals).subscribe(this),this.columnNotifiers.push(t)}}getColumnsParticipatingInSorting(){return this.columns.filter((e=>!e.sortingDisabled&&e.columnInternals.currentSortDirection!==Xb.none&&"number"==typeof e.columnInternals.currentSortIndex))}getColumnsParticipatingInGrouping(){return this.columns.filter((e=>!e.columnInternals.groupingDisabled&&"number"==typeof e.columnInternals.groupIndex))}childItemsChanged(){this.updateColumnsFromChildItems()}async updateColumnsFromChildItems(){const e=this.childItems.map((async e=>e.matches(":not(:defined)")?customElements.whenDefined(e.localName):Promise.resolve()))
6210
+ await Promise.all(e),this.columns=this.childItems.filter((e=>e instanceof lw))}updateTanStack(){const e={state:{}}
6211
+ this.updateTracker.updateColumnSort&&(e.state.sorting=this.calculateTanStackSortState()),this.updateTracker.updateColumnDefinition&&(e.columns=this.calculateTanStackColumns()),this.updateTracker.updateRowIds&&(e.getRowId=this.calculateTanStackRowIdFunction(),e.state.rowSelection={},this.selectionManager.handleSelectionReset()),this.updateTracker.updateSelectionMode&&(e.enableMultiRowSelection=this.selectionMode===Yb.multiple,e.enableSubRowSelection=this.selectionMode===Yb.multiple,e.state.rowSelection={},this.selectionManager.handleSelectionModeChanged(this.selectionMode)),this.updateTracker.requiresTanStackDataReset&&(e.data=[...this.table.options.data]),this.updateTracker.updateGroupRows&&(e.state.grouping=this.calculateTanStackGroupingState(),e.state.expanded=!0,this.collapsedRows.clear()),this.updateTableOptions(e)}updateActionMenuSlots(){const e=new Set
6204
6212
  for(const t of this.columns)t.actionMenuSlot&&e.add(t.actionMenuSlot)
6205
- this.actionMenuSlots=Array.from(e)}updateRowGridColumns(){this.rowGridColumns=Ww.getGridTemplateColumns(this.columns)}validate(){this.tableValidator.validateSelectionMode(this.selectionMode,this.idFieldName),this.tableValidator.validateColumnIds(this.columns.map((e=>e.columnId))),this.tableValidator.validateColumnSortIndices(this.getColumnsParticipatingInSorting().map((e=>e.columnInternals.currentSortIndex))),this.tableValidator.validateColumnGroupIndices(this.getColumnsParticipatingInGrouping().map((e=>e.columnInternals.groupIndex))),this.tableValidator.validateColumnConfigurations(this.columns),this.validateWithData(this.table.options.data)}validateWithData(e){this.tableValidator.validateRecordIds(e,this.idFieldName),this.canRenderRows=this.checkValidity()}emitColumnConfigurationChangeEvent(){const e={columns:this.columns.map((e=>({columnId:e.columnId,sortIndex:e.columnInternals.currentSortIndex??void 0,sortDirection:e.columnInternals.currentSortDirection,groupIndex:e.columnInternals.groupIndex,hidden:e.columnHidden,fractionalWidth:e.columnInternals.currentFractionalWidth,pixelWidth:e.columnInternals.currentPixelWidth})))}
6213
+ this.actionMenuSlots=Array.from(e)}updateRowGridColumns(){this.rowGridColumns=Kw.getGridTemplateColumns(this.columns)}validate(){this.tableValidator.validateSelectionMode(this.selectionMode,this.idFieldName),this.tableValidator.validateColumnIds(this.columns.map((e=>e.columnId))),this.tableValidator.validateColumnSortIndices(this.getColumnsParticipatingInSorting().map((e=>e.columnInternals.currentSortIndex))),this.tableValidator.validateColumnGroupIndices(this.getColumnsParticipatingInGrouping().map((e=>e.columnInternals.groupIndex))),this.tableValidator.validateColumnConfigurations(this.columns),this.validateWithData(this.table.options.data)}validateWithData(e){this.tableValidator.validateRecordIds(e,this.idFieldName),this.canRenderRows=this.checkValidity()}emitColumnConfigurationChangeEvent(){const e={columns:this.columns.map((e=>({columnId:e.columnId,sortIndex:e.columnInternals.currentSortIndex??void 0,sortDirection:e.columnInternals.currentSortDirection,groupIndex:e.columnInternals.groupIndex,hidden:e.columnHidden,fractionalWidth:e.columnInternals.currentFractionalWidth,pixelWidth:e.columnInternals.currentPixelWidth})))}
6206
6214
  this.$emit("column-configuration-change",e)}async emitSelectionChangeEvent(){const e={selectedRecordIds:await this.getSelectedRecordIds()}
6207
- this.$emit("selection-change",e)}selectionStateChanged(){this.setSelectionCheckboxState()}selectionCheckboxChanged(){this.setSelectionCheckboxState()}setSelectionCheckboxState(){this.selectionCheckbox&&(this.ignoreSelectionChangeEvents=!0,this.selectionCheckbox.checked=this.selectionState===Qb,this.selectionCheckbox.indeterminate=this.selectionState===Jb,this.ignoreSelectionChangeEvents=!1)}refreshRows(){this.selectionState=this.getTableSelectionState()
6215
+ this.$emit("selection-change",e)}selectionStateChanged(){this.setSelectionCheckboxState()}selectionCheckboxChanged(){this.setSelectionCheckboxState()}setSelectionCheckboxState(){this.selectionCheckbox&&(this.ignoreSelectionChangeEvents=!0,this.selectionCheckbox.checked=this.selectionState===Jb,this.selectionCheckbox.indeterminate=this.selectionState===ew,this.ignoreSelectionChangeEvents=!1)}refreshRows(){this.selectionState=this.getTableSelectionState()
6208
6216
  const e=this.table.getRowModel().rows
6209
- this.tableData=e.map((e=>({record:e.original,id:e.id,selectionState:this.getRowSelectionState(e),isGrouped:e.getIsGrouped(),isExpanded:e.getIsExpanded(),groupRowValue:e.getIsGrouped()?e.getValue(e.groupingColumnId):void 0,nestingLevel:e.depth,leafItemCount:e.getLeafRows().filter((e=>0===e.getLeafRows().length)).length,groupColumn:this.getGroupRowColumn(e)}))),this.virtualizer.dataChanged()}getTableSelectionState(){return this.table.getIsAllRowsSelected()?Qb:this.table.getIsSomeRowsSelected()?Jb:Yb}getRowSelectionState(e){return e.getIsGrouped()?this.getGroupedRowSelectionState(e):e.getIsSelected()?Qb:Yb}getGroupedRowSelectionState(e){const t=e.subRows??[]
6217
+ this.tableData=e.map((e=>({record:e.original,id:e.id,selectionState:this.getRowSelectionState(e),isGrouped:e.getIsGrouped(),isExpanded:e.getIsExpanded(),groupRowValue:e.getIsGrouped()?e.getValue(e.groupingColumnId):void 0,nestingLevel:e.depth,leafItemCount:e.getLeafRows().filter((e=>0===e.getLeafRows().length)).length,groupColumn:this.getGroupRowColumn(e)}))),this.virtualizer.dataChanged()}getTableSelectionState(){return this.table.getIsAllRowsSelected()?Jb:this.table.getIsSomeRowsSelected()?ew:Qb}getRowSelectionState(e){return e.getIsGrouped()?this.getGroupedRowSelectionState(e):e.getIsSelected()?Jb:Qb}getGroupedRowSelectionState(e){const t=e.subRows??[]
6210
6218
  let i=!1,o=!1
6211
- for(const e of t){if(e.getIsGrouped()){switch(this.getGroupedRowSelectionState(e)){case Yb:o=!0
6219
+ for(const e of t){if(e.getIsGrouped()){switch(this.getGroupedRowSelectionState(e)){case Qb:o=!0
6212
6220
  break
6213
- case Qb:i=!0
6221
+ case Jb:i=!0
6214
6222
  break
6215
- default:return Jb}}else e.getIsSelected()?i=!0:o=!0
6216
- if(i&&o)return Jb}return i?Qb:Yb}getGroupRowColumn(e){const t=e.groupingColumnId
6223
+ default:return ew}}else e.getIsSelected()?i=!0:o=!0
6224
+ if(i&&o)return ew}return i?Jb:Qb}getGroupRowColumn(e){const t=e.groupingColumnId
6217
6225
  if(void 0!==t)return this.columns.find((e=>e.columnInternals.uniqueId===t))}updateTableOptions(e){this.options={...this.options,...e,state:{...this.options.state,...e.state}},this.table.setOptions(this.options),this.refreshRows()}toggleGroupExpanded(e){const t=this.table.getRowModel().rows[e]
6218
6226
  t.getIsExpanded()?this.collapsedRows.add(t.id):this.collapsedRows.delete(t.id),t.toggleExpanded()}calculateTanStackSortState(){const e=this.getColumnsParticipatingInSorting().sort(((e,t)=>e.columnInternals.currentSortIndex-t.columnInternals.currentSortIndex))
6219
- return this.firstSortedColumn=e.length?e[0]:void 0,e.map((e=>({id:e.columnInternals.uniqueId,desc:e.columnInternals.currentSortDirection===Kb.descending})))}calculateTanStackGroupingState(){return this.getColumnsParticipatingInGrouping().sort(((e,t)=>e.columnInternals.groupIndex-t.columnInternals.groupIndex)).map((e=>e.columnInternals.uniqueId))}calculateTanStackRowIdFunction(){return null===this.idFieldName||void 0===this.idFieldName?void 0:e=>e[this.idFieldName]}calculateTanStackColumns(){return this.columns.map((e=>({id:e.columnInternals.uniqueId,accessorFn:t=>{const i=e.columnInternals.operandDataRecordFieldName
6220
- if("string"==typeof i)return t[i]},sortingFn:Zw(e.columnInternals.sortOperation)})))}calculateTanStackSelectionState(e){if(this.selectionMode===Xb.none)return{}
6227
+ return this.firstSortedColumn=e.length?e[0]:void 0,e.map((e=>({id:e.columnInternals.uniqueId,desc:e.columnInternals.currentSortDirection===Xb.descending})))}calculateTanStackGroupingState(){return this.getColumnsParticipatingInGrouping().sort(((e,t)=>e.columnInternals.groupIndex-t.columnInternals.groupIndex)).map((e=>e.columnInternals.uniqueId))}calculateTanStackRowIdFunction(){return null===this.idFieldName||void 0===this.idFieldName?void 0:e=>e[this.idFieldName]}calculateTanStackColumns(){return this.columns.map((e=>({id:e.columnInternals.uniqueId,accessorFn:t=>{const i=e.columnInternals.operandDataRecordFieldName
6228
+ if("string"==typeof i)return t[i]},sortingFn:qw(e.columnInternals.sortOperation)})))}calculateTanStackSelectionState(e){if(this.selectionMode===Yb.none)return{}
6221
6229
  const t={},i=this.tableValidator.getPresentRecordIds(e)
6222
- for(const e of i)if(t[e]=!0,this.selectionMode===Xb.single)break
6223
- return t}}e([ne({attribute:"id-field-name"})],ex.prototype,"idFieldName",void 0),e([ne({attribute:"selection-mode"})],ex.prototype,"selectionMode",void 0),e([m],ex.prototype,"tableData",void 0),e([m],ex.prototype,"columns",void 0),e([m],ex.prototype,"childItems",void 0),e([m],ex.prototype,"rowElements",void 0),e([m],ex.prototype,"actionMenuSlots",void 0),e([m],ex.prototype,"openActionMenuRecordId",void 0),e([m],ex.prototype,"canRenderRows",void 0),e([m],ex.prototype,"scrollX",void 0),e([m],ex.prototype,"rowGridColumns",void 0),e([m],ex.prototype,"selectionState",void 0),e([m],ex.prototype,"selectionCheckbox",void 0),e([m],ex.prototype,"showCollapseAll",void 0),e([m],ex.prototype,"firstSortedColumn",void 0),e([m],ex.prototype,"documentShiftKeyDown",void 0)
6224
- const tx=ex.compose({baseName:"table",template:Aw,styles:cw})
6225
- ro.getOrCreate().withPrefix("nimble").register(tx()),ro.tagFor(ex)
6226
- const ix=fe`
6230
+ for(const e of i)if(t[e]=!0,this.selectionMode===Yb.single)break
6231
+ return t}}e([ne({attribute:"id-field-name"})],tx.prototype,"idFieldName",void 0),e([ne({attribute:"selection-mode"})],tx.prototype,"selectionMode",void 0),e([m],tx.prototype,"tableData",void 0),e([m],tx.prototype,"columns",void 0),e([m],tx.prototype,"childItems",void 0),e([m],tx.prototype,"rowElements",void 0),e([m],tx.prototype,"actionMenuSlots",void 0),e([m],tx.prototype,"openActionMenuRecordId",void 0),e([m],tx.prototype,"canRenderRows",void 0),e([m],tx.prototype,"scrollX",void 0),e([m],tx.prototype,"rowGridColumns",void 0),e([m],tx.prototype,"selectionState",void 0),e([m],tx.prototype,"selectionCheckbox",void 0),e([m],tx.prototype,"showCollapseAll",void 0),e([m],tx.prototype,"firstSortedColumn",void 0),e([m],tx.prototype,"documentShiftKeyDown",void 0)
6232
+ const ix=tx.compose({baseName:"table",template:Ew,styles:dw})
6233
+ ro.getOrCreate().withPrefix("nimble").register(ix()),ro.tagFor(tx)
6234
+ const ox=fe`
6227
6235
  :host {
6228
6236
  display: contents;
6229
6237
  }
@@ -6233,14 +6241,14 @@ const ix=fe`
6233
6241
  overflow: hidden;
6234
6242
  text-overflow: ellipsis;
6235
6243
  }
6236
- `,ox=G`
6244
+ `,nx=G`
6237
6245
  <template slot="${e=>e.columnInternals.uniqueId}">
6238
6246
  <span class="header-content">
6239
6247
  <slot></slot>
6240
6248
  </span>
6241
6249
  </template>
6242
6250
  `
6243
- function nx(e){class t extends e{fractionalWidthChanged(){"number"==typeof this.fractionalWidth?this.columnInternals.fractionalWidth=this.fractionalWidth:this.columnInternals.fractionalWidth=1}minPixelWidthChanged(){"number"==typeof this.minPixelWidth?this.columnInternals.minPixelWidth=this.minPixelWidth:this.columnInternals.minPixelWidth=117}}return ne({attribute:"fractional-width",converter:ie})(t.prototype,"fractionalWidth"),ne({attribute:"min-pixel-width",converter:ie})(t.prototype,"minPixelWidth"),t}function sx(e){class t extends e{constructor(){super(...arguments),this.groupingDisabled=!1,this.groupIndex=null}groupingDisabledChanged(){this.columnInternals.groupingDisabled=this.groupingDisabled}groupIndexChanged(){"number"==typeof this.groupIndex?this.columnInternals.groupIndex=this.groupIndex:this.columnInternals.groupIndex=void 0}}return ne({attribute:"grouping-disabled",mode:"boolean"})(t.prototype,"groupingDisabled"),ne({attribute:"group-index",converter:ie})(t.prototype,"groupIndex"),t}const rx=fe`
6251
+ function sx(e){class t extends e{fractionalWidthChanged(){"number"==typeof this.fractionalWidth?this.columnInternals.fractionalWidth=this.fractionalWidth:this.columnInternals.fractionalWidth=1}minPixelWidthChanged(){"number"==typeof this.minPixelWidth?this.columnInternals.minPixelWidth=this.minPixelWidth:this.columnInternals.minPixelWidth=117}}return ne({attribute:"fractional-width",converter:ie})(t.prototype,"fractionalWidth"),ne({attribute:"min-pixel-width",converter:ie})(t.prototype,"minPixelWidth"),t}function rx(e){class t extends e{constructor(){super(...arguments),this.groupingDisabled=!1,this.groupIndex=null}groupingDisabledChanged(){this.columnInternals.groupingDisabled=this.groupingDisabled}groupIndexChanged(){"number"==typeof this.groupIndex?this.columnInternals.groupIndex=this.groupIndex:this.columnInternals.groupIndex=void 0}}return ne({attribute:"grouping-disabled",mode:"boolean"})(t.prototype,"groupingDisabled"),ne({attribute:"group-index",converter:ie})(t.prototype,"groupIndex"),t}const ax=fe`
6244
6252
  :host {
6245
6253
  width: fit-content;
6246
6254
  max-width: 100%;
@@ -6265,7 +6273,7 @@ function nx(e){class t extends e{fractionalWidthChanged(){"number"==typeof this.
6265
6273
  .placeholder {
6266
6274
  color: ${zl};
6267
6275
  }
6268
- `,ax=G`
6276
+ `,lx=G`
6269
6277
  <template
6270
6278
  @click="${(e,t)=>("string"==typeof e.cellRecord.href&&t.event.stopPropagation(),!0)}"
6271
6279
  >
@@ -6300,12 +6308,12 @@ function nx(e){class t extends e{fractionalWidthChanged(){"number"==typeof this.
6300
6308
  </span>`)}
6301
6309
  </template>
6302
6310
  `
6303
- class lx extends nw{constructor(){super(...arguments),this.isValidContentAndHasOverflow=!1}get content(){return"string"==typeof this.cellRecord.label?this.cellRecord.label:"string"==typeof this.cellRecord.href?this.cellRecord.href:this.columnConfig.placeholder}focusedRecycleCallback(){this.anchor?.blur()}}e([m],lx.prototype,"isValidContentAndHasOverflow",void 0),e([f],lx.prototype,"content",null)
6304
- const cx=lx.compose({baseName:"table-column-anchor-cell-view",template:ax,styles:rx})
6305
- ro.getOrCreate().withPrefix("nimble").register(cx())
6306
- const dx=ro.tagFor(lx)
6307
- class hx extends iw{constructor(){super(...arguments),this.hasOverflow=!1}get content(){return this.shouldUsePlaceholder?this.placeholder:this.text}updateTitleOverflow(){this.hasOverflow=this.textSpan.offsetWidth<this.textSpan.scrollWidth}clearTitleOverflow(){this.hasOverflow=!1}}e([m],hx.prototype,"hasOverflow",void 0),e([f],hx.prototype,"content",null)
6308
- const ux=G`
6311
+ class cx extends sw{constructor(){super(...arguments),this.isValidContentAndHasOverflow=!1}get content(){return"string"==typeof this.cellRecord.label?this.cellRecord.label:"string"==typeof this.cellRecord.href?this.cellRecord.href:this.columnConfig.placeholder}focusedRecycleCallback(){this.anchor?.blur()}}e([m],cx.prototype,"isValidContentAndHasOverflow",void 0),e([f],cx.prototype,"content",null)
6312
+ const dx=cx.compose({baseName:"table-column-anchor-cell-view",template:lx,styles:ax})
6313
+ ro.getOrCreate().withPrefix("nimble").register(dx())
6314
+ const hx=ro.tagFor(cx)
6315
+ class ux extends ow{constructor(){super(...arguments),this.hasOverflow=!1}get content(){return this.shouldUsePlaceholder?this.placeholder:this.text}updateTitleOverflow(){this.hasOverflow=this.textSpan.offsetWidth<this.textSpan.scrollWidth}clearTitleOverflow(){this.hasOverflow=!1}}e([m],ux.prototype,"hasOverflow",void 0),e([f],ux.prototype,"content",null)
6316
+ const px=G`
6309
6317
  <span
6310
6318
  ${Re("textSpan")}
6311
6319
  class="${e=>e.shouldUsePlaceholder?"placeholder":""}"
@@ -6315,7 +6323,7 @@ const ux=G`
6315
6323
  >
6316
6324
  ${e=>e.content}
6317
6325
  </span>
6318
- `,px=fe`
6326
+ `,gx=fe`
6319
6327
  span {
6320
6328
  font: ${Cl};
6321
6329
  color: ${kl};
@@ -6328,14 +6336,14 @@ const ux=G`
6328
6336
  color: ${zl};
6329
6337
  }
6330
6338
  `
6331
- class gx extends hx{get text(){return this.groupHeaderValue}get placeholder(){return this.columnConfig?.placeholder??""}get shouldUsePlaceholder(){return"string"!=typeof this.groupHeaderValue}}const vx=gx.compose({baseName:"table-column-text-group-header",template:ux,styles:px})
6332
- ro.getOrCreate().withPrefix("nimble").register(vx())
6333
- const mx=ro.tagFor(gx)
6334
- class fx extends(sx(nx(aw))){constructor(){super(...arguments),this.underlineHidden=!1}getColumnInternalsOptions(){return{cellRecordFieldNames:["label","href"],cellViewTag:dx,groupHeaderViewTag:mx,delegatedEvents:["click"],sortOperation:tw}}labelFieldNameChanged(){this.columnInternals.dataRecordFieldNames=[this.labelFieldName,this.hrefFieldName],this.columnInternals.operandDataRecordFieldName=this.labelFieldName}hrefFieldNameChanged(){this.columnInternals.dataRecordFieldNames=[this.labelFieldName,this.hrefFieldName]}placeholderChanged(){this.updateColumnConfig()}appearanceChanged(){this.updateColumnConfig()}underlineHiddenChanged(){this.updateColumnConfig()}hreflangChanged(){this.updateColumnConfig()}pingChanged(){this.updateColumnConfig()}referrerpolicyChanged(){this.updateColumnConfig()}relChanged(){this.updateColumnConfig()}targetChanged(){this.updateColumnConfig()}typeChanged(){this.updateColumnConfig()}downloadChanged(){this.updateColumnConfig()}updateColumnConfig(){this.columnInternals.columnConfig={placeholder:this.placeholder??"",appearance:this.appearance,underlineHidden:this.underlineHidden,hreflang:this.hreflang,ping:this.ping,referrerpolicy:this.referrerpolicy,rel:this.rel,target:this.target,type:this.type,download:this.download}}}e([ne({attribute:"label-field-name"})],fx.prototype,"labelFieldName",void 0),e([ne({attribute:"href-field-name"})],fx.prototype,"hrefFieldName",void 0),e([ne],fx.prototype,"placeholder",void 0),e([ne],fx.prototype,"appearance",void 0),e([ne({attribute:"underline-hidden",mode:"boolean"})],fx.prototype,"underlineHidden",void 0),e([ne],fx.prototype,"hreflang",void 0),e([ne],fx.prototype,"ping",void 0),e([ne],fx.prototype,"referrerpolicy",void 0),e([ne],fx.prototype,"rel",void 0),e([ne],fx.prototype,"target",void 0),e([ne],fx.prototype,"type",void 0),e([ne],fx.prototype,"download",void 0)
6335
- const bx=fx.compose({baseName:"table-column-anchor",template:ox,styles:ix})
6336
- ro.getOrCreate().withPrefix("nimble").register(bx()),ro.tagFor(fx)
6337
- class wx extends(sx(nx(aw))){fieldNameChanged(){this.columnInternals.dataRecordFieldNames=[this.fieldName],this.columnInternals.operandDataRecordFieldName=this.fieldName}placeholderChanged(){this.columnInternals.columnConfig={placeholder:this.placeholder??""}}}e([ne({attribute:"field-name"})],wx.prototype,"fieldName",void 0),e([ne],wx.prototype,"placeholder",void 0)
6338
- const xx=G`
6339
+ class vx extends ux{get text(){return this.groupHeaderValue}get placeholder(){return this.columnConfig?.placeholder??""}get shouldUsePlaceholder(){return"string"!=typeof this.groupHeaderValue}}const mx=vx.compose({baseName:"table-column-text-group-header",template:px,styles:gx})
6340
+ ro.getOrCreate().withPrefix("nimble").register(mx())
6341
+ const fx=ro.tagFor(vx)
6342
+ class bx extends(rx(sx(lw))){constructor(){super(...arguments),this.underlineHidden=!1}getColumnInternalsOptions(){return{cellRecordFieldNames:["label","href"],cellViewTag:hx,groupHeaderViewTag:fx,delegatedEvents:["click"],sortOperation:iw}}labelFieldNameChanged(){this.columnInternals.dataRecordFieldNames=[this.labelFieldName,this.hrefFieldName],this.columnInternals.operandDataRecordFieldName=this.labelFieldName}hrefFieldNameChanged(){this.columnInternals.dataRecordFieldNames=[this.labelFieldName,this.hrefFieldName]}placeholderChanged(){this.updateColumnConfig()}appearanceChanged(){this.updateColumnConfig()}underlineHiddenChanged(){this.updateColumnConfig()}hreflangChanged(){this.updateColumnConfig()}pingChanged(){this.updateColumnConfig()}referrerpolicyChanged(){this.updateColumnConfig()}relChanged(){this.updateColumnConfig()}targetChanged(){this.updateColumnConfig()}typeChanged(){this.updateColumnConfig()}downloadChanged(){this.updateColumnConfig()}updateColumnConfig(){this.columnInternals.columnConfig={placeholder:this.placeholder??"",appearance:this.appearance,underlineHidden:this.underlineHidden,hreflang:this.hreflang,ping:this.ping,referrerpolicy:this.referrerpolicy,rel:this.rel,target:this.target,type:this.type,download:this.download}}}e([ne({attribute:"label-field-name"})],bx.prototype,"labelFieldName",void 0),e([ne({attribute:"href-field-name"})],bx.prototype,"hrefFieldName",void 0),e([ne],bx.prototype,"placeholder",void 0),e([ne],bx.prototype,"appearance",void 0),e([ne({attribute:"underline-hidden",mode:"boolean"})],bx.prototype,"underlineHidden",void 0),e([ne],bx.prototype,"hreflang",void 0),e([ne],bx.prototype,"ping",void 0),e([ne],bx.prototype,"referrerpolicy",void 0),e([ne],bx.prototype,"rel",void 0),e([ne],bx.prototype,"target",void 0),e([ne],bx.prototype,"type",void 0),e([ne],bx.prototype,"download",void 0)
6343
+ const wx=bx.compose({baseName:"table-column-anchor",template:nx,styles:ox})
6344
+ ro.getOrCreate().withPrefix("nimble").register(wx()),ro.tagFor(bx)
6345
+ class xx extends(rx(sx(lw))){fieldNameChanged(){this.columnInternals.dataRecordFieldNames=[this.fieldName],this.columnInternals.operandDataRecordFieldName=this.fieldName}placeholderChanged(){this.columnInternals.columnConfig={placeholder:this.placeholder??""}}}e([ne({attribute:"field-name"})],xx.prototype,"fieldName",void 0),e([ne],xx.prototype,"placeholder",void 0)
6346
+ const yx=G`
6339
6347
  <span
6340
6348
  ${Re("textSpan")}
6341
6349
  class="${e=>e.shouldUsePlaceholder?"placeholder":""}"
@@ -6345,7 +6353,7 @@ const xx=G`
6345
6353
  >
6346
6354
  ${e=>e.content}
6347
6355
  </span>
6348
- `,yx=fe`
6356
+ `,$x=fe`
6349
6357
  span {
6350
6358
  font: ${Cl};
6351
6359
  color: ${kl};
@@ -6358,13 +6366,13 @@ const xx=G`
6358
6366
  color: ${zl};
6359
6367
  }
6360
6368
  `
6361
- class $x extends nw{constructor(){super(...arguments),this.isValidContentAndHasOverflow=!1}get content(){return this.shouldUsePlaceholder?this.placeholder:this.text}}e([m],$x.prototype,"isValidContentAndHasOverflow",void 0),e([f],$x.prototype,"content",null)
6362
- class Cx extends $x{get text(){return this.cellRecord.value}get placeholder(){return this.columnConfig.placeholder}get shouldUsePlaceholder(){return"string"!=typeof this.cellRecord.value}}const kx=Cx.compose({baseName:"table-column-text-cell-view",template:xx,styles:yx})
6363
- ro.getOrCreate().withPrefix("nimble").register(kx())
6364
- const Sx=ro.tagFor(Cx)
6365
- class _x extends wx{getColumnInternalsOptions(){return{cellRecordFieldNames:["value"],cellViewTag:Sx,groupHeaderViewTag:mx,delegatedEvents:[],sortOperation:tw}}}const Ix=_x.compose({baseName:"table-column-text",template:ox,styles:ix})
6366
- ro.getOrCreate().withPrefix("nimble").register(Ix()),ro.tagFor(_x)
6367
- const Rx=fe`
6369
+ class Cx extends sw{constructor(){super(...arguments),this.isValidContentAndHasOverflow=!1}get content(){return this.shouldUsePlaceholder?this.placeholder:this.text}}e([m],Cx.prototype,"isValidContentAndHasOverflow",void 0),e([f],Cx.prototype,"content",null)
6370
+ class kx extends Cx{get text(){return this.cellRecord.value}get placeholder(){return this.columnConfig.placeholder}get shouldUsePlaceholder(){return"string"!=typeof this.cellRecord.value}}const Sx=kx.compose({baseName:"table-column-text-cell-view",template:yx,styles:$x})
6371
+ ro.getOrCreate().withPrefix("nimble").register(Sx())
6372
+ const _x=ro.tagFor(kx)
6373
+ class Ix extends xx{getColumnInternalsOptions(){return{cellRecordFieldNames:["value"],cellViewTag:_x,groupHeaderViewTag:fx,delegatedEvents:[],sortOperation:iw}}}const Rx=Ix.compose({baseName:"table-column-text",template:nx,styles:ox})
6374
+ ro.getOrCreate().withPrefix("nimble").register(Rx()),ro.tagFor(Ix)
6375
+ const Mx=fe`
6368
6376
  ${xn("grid")}
6369
6377
 
6370
6378
  :host {
@@ -6388,7 +6396,7 @@ const Rx=fe`
6388
6396
  overflow: auto;
6389
6397
  }
6390
6398
  `
6391
- class Mx extends Go{constructor(){super(),this.activeindicator=!1}}const Ax=Mx.compose({baseName:"tabs",baseClass:Go,template:(e,t)=>G`
6399
+ class Ax extends Go{constructor(){super(),this.activeindicator=!1}}const Ex=Ax.compose({baseName:"tabs",baseClass:Go,template:(e,t)=>G`
6392
6400
  <template class="${e=>e.orientation}">
6393
6401
  ${qe(0,t)}
6394
6402
  <div class="tablist" part="tablist" role="tablist">
@@ -6407,9 +6415,9 @@ class Mx extends Go{constructor(){super(),this.activeindicator=!1}}const Ax=Mx.c
6407
6415
  <slot name="tabpanel" part="tabpanel" ${Le("tabpanels")}></slot>
6408
6416
  </div>
6409
6417
  </template>
6410
- `,styles:Rx})
6411
- ro.getOrCreate().withPrefix("nimble").register(Ax()),ro.tagFor(Mx)
6412
- const Ex=fe`
6418
+ `,styles:Mx})
6419
+ ro.getOrCreate().withPrefix("nimble").register(Ex()),ro.tagFor(Ax)
6420
+ const Ox=fe`
6413
6421
  ${xn("flex")}
6414
6422
 
6415
6423
  :host {
@@ -6427,17 +6435,17 @@ const Ex=fe`
6427
6435
  rgba(${Wr}, 0.3);
6428
6436
  margin: calc(${ra} / 4) calc(${ra} / 2);
6429
6437
  }
6430
- `,Ox=G`
6438
+ `,Fx=G`
6431
6439
  <template slot="end">
6432
6440
  <div class="separator"></div>
6433
6441
  <slot></slot>
6434
6442
  </template>
6435
6443
  `
6436
- class Fx extends Rt{}const Vx=Fx.compose({baseName:"tabs-toolbar",template:Ox,styles:Ex})
6437
- ro.getOrCreate().withPrefix("nimble").register(Vx()),ro.tagFor(Fx)
6438
- const Hx="outline",Px="block",Tx=fe`
6444
+ class Vx extends Rt{}const Hx=Vx.compose({baseName:"tabs-toolbar",template:Fx,styles:Ox})
6445
+ ro.getOrCreate().withPrefix("nimble").register(Hx()),ro.tagFor(Vx)
6446
+ const Px="outline",Tx="block",Dx=fe`
6439
6447
  ${xn("inline-flex")}
6440
- ${sg}
6448
+ ${rg}
6441
6449
 
6442
6450
  :host {
6443
6451
  font: ${Cl};
@@ -6575,12 +6583,12 @@ const Hx="outline",Px="block",Tx=fe`
6575
6583
  top: calc(${ra} / 2);
6576
6584
  right: var(--ni-private-scrollbar-width);
6577
6585
  }
6578
- `.withBehaviors(qc(Hx,fe`
6586
+ `.withBehaviors(qc(Px,fe`
6579
6587
  .control {
6580
6588
  border-color: rgba(${Wr}, 0.3);
6581
6589
  background-color: transparent;
6582
6590
  }
6583
- `),qc(Px,fe`
6591
+ `),qc(Tx,fe`
6584
6592
  .control {
6585
6593
  background-color: rgba(${Wr}, 0.1);
6586
6594
  }
@@ -6598,8 +6606,8 @@ const Hx="outline",Px="block",Tx=fe`
6598
6606
  border-bottom-color: ${Kr};
6599
6607
  }
6600
6608
  `))
6601
- class Dx extends Yo{constructor(){super(...arguments),this.appearance=Hx,this.errorVisible=!1,this.scrollbarWidth=-1,this.updateScrollbarWidthQueued=!1}connectedCallback(){super.connectedCallback(),this.resizeObserver=new ResizeObserver((()=>this.onResize())),this.resizeObserver.observe(this)}disconnectedCallback(){this.resizeObserver?.disconnect()}onTextAreaInput(){this.handleTextInput(),this.queueUpdateScrollbarWidth()}placeholderChanged(){this.queueUpdateScrollbarWidth()}valueChanged(e,t){super.valueChanged(e,t),this.queueUpdateScrollbarWidth()}onResize(){this.scrollbarWidth=this.control.offsetWidth-this.control.clientWidth}queueUpdateScrollbarWidth(){this.$fastController.isConnected&&(this.updateScrollbarWidthQueued||(this.updateScrollbarWidthQueued=!0,u.queueUpdate((()=>this.updateScrollbarWidth()))))}updateScrollbarWidth(){this.updateScrollbarWidthQueued=!1,this.scrollbarWidth=this.control.offsetWidth-this.control.clientWidth}}e([ne],Dx.prototype,"appearance",void 0),e([ne({attribute:"error-text"})],Dx.prototype,"errorText",void 0),e([ne({attribute:"error-visible",mode:"boolean"})],Dx.prototype,"errorVisible",void 0),e([m],Dx.prototype,"scrollbarWidth",void 0)
6602
- const Lx=Dx.compose({baseName:"text-area",baseClass:Yo,template:()=>G`
6609
+ class Lx extends Yo{constructor(){super(...arguments),this.appearance=Px,this.errorVisible=!1,this.scrollbarWidth=-1,this.updateScrollbarWidthQueued=!1}connectedCallback(){super.connectedCallback(),this.resizeObserver=new ResizeObserver((()=>this.onResize())),this.resizeObserver.observe(this)}disconnectedCallback(){this.resizeObserver?.disconnect()}onTextAreaInput(){this.handleTextInput(),this.queueUpdateScrollbarWidth()}placeholderChanged(){this.queueUpdateScrollbarWidth()}valueChanged(e,t){super.valueChanged(e,t),this.queueUpdateScrollbarWidth()}onResize(){this.scrollbarWidth=this.control.offsetWidth-this.control.clientWidth}queueUpdateScrollbarWidth(){this.$fastController.isConnected&&(this.updateScrollbarWidthQueued||(this.updateScrollbarWidthQueued=!0,u.queueUpdate((()=>this.updateScrollbarWidth()))))}updateScrollbarWidth(){this.updateScrollbarWidthQueued=!1,this.scrollbarWidth=this.control.offsetWidth-this.control.clientWidth}}e([ne],Lx.prototype,"appearance",void 0),e([ne({attribute:"error-text"})],Lx.prototype,"errorText",void 0),e([ne({attribute:"error-visible",mode:"boolean"})],Lx.prototype,"errorVisible",void 0),e([m],Lx.prototype,"scrollbarWidth",void 0)
6610
+ const zx=Lx.compose({baseName:"text-area",baseClass:Yo,template:()=>G`
6603
6611
  <label
6604
6612
  part="label"
6605
6613
  for="control"
@@ -6656,11 +6664,11 @@ const Lx=Dx.compose({baseName:"text-area",baseClass:Yo,template:()=>G`
6656
6664
  ></${kp}>
6657
6665
  ${Qp}
6658
6666
  </div>
6659
- `,styles:Tx,shadowOptions:{delegatesFocus:!0}})
6660
- ro.getOrCreate().withPrefix("nimble").register(Lx()),ro.tagFor(Dx)
6661
- const zx="underline",Bx="outline",Nx="block",Zx="frameless",qx=fe`
6667
+ `,styles:Dx,shadowOptions:{delegatesFocus:!0}})
6668
+ ro.getOrCreate().withPrefix("nimble").register(zx()),ro.tagFor(Lx)
6669
+ const Bx="underline",Nx="outline",Zx="block",qx="frameless",Ux=fe`
6662
6670
  ${xn("inline-block")}
6663
- ${sg}
6671
+ ${rg}
6664
6672
 
6665
6673
  :host {
6666
6674
  font: ${Cl};
@@ -6829,12 +6837,12 @@ const zx="underline",Bx="outline",Nx="block",Zx="frameless",qx=fe`
6829
6837
  slot[name='actions']::slotted(*) {
6830
6838
  ${oa.cssCustomProperty}: 24px;
6831
6839
  }
6832
- `.withBehaviors(qc(zx,fe`
6840
+ `.withBehaviors(qc(Bx,fe`
6833
6841
  .root {
6834
6842
  border-bottom-width: ${aa};
6835
6843
  padding-bottom: 0;
6836
6844
  }
6837
- `),qc(Nx,fe`
6845
+ `),qc(Zx,fe`
6838
6846
  .root {
6839
6847
  background-color: rgba(${Wr}, 0.1);
6840
6848
  }
@@ -6862,12 +6870,12 @@ const zx="underline",Bx="outline",Nx="block",Zx="frameless",qx=fe`
6862
6870
  :host([disabled]) .root {
6863
6871
  background-color: rgba(${Wr}, 0.07);
6864
6872
  }
6865
- `),qc(Bx,fe`
6873
+ `),qc(Nx,fe`
6866
6874
  .root {
6867
6875
  border-width: ${aa};
6868
6876
  padding: 0;
6869
6877
  }
6870
- `),qc(Zx,fe`
6878
+ `),qc(qx,fe`
6871
6879
  .control {
6872
6880
  padding-left: ${aa};
6873
6881
  padding-right: ${aa};
@@ -6885,8 +6893,8 @@ const zx="underline",Bx="outline",Nx="block",Zx="frameless",qx=fe`
6885
6893
  filter: invert(100%);
6886
6894
  }
6887
6895
  `))
6888
- class Ux extends Io{constructor(){super(...arguments),this.appearance=zx,this.errorVisible=!1,this.fullBleed=!1}}e([ne],Ux.prototype,"appearance",void 0),e([ne({attribute:"error-text"})],Ux.prototype,"errorText",void 0),e([ne({attribute:"error-visible",mode:"boolean"})],Ux.prototype,"errorVisible",void 0),e([ne({attribute:"full-bleed",mode:"boolean"})],Ux.prototype,"fullBleed",void 0)
6889
- const jx=Ux.compose({baseName:"text-field",baseClass:Io,template:(e,t)=>G`
6896
+ class jx extends Io{constructor(){super(...arguments),this.appearance=Bx,this.errorVisible=!1,this.fullBleed=!1}}e([ne],jx.prototype,"appearance",void 0),e([ne({attribute:"error-text"})],jx.prototype,"errorText",void 0),e([ne({attribute:"error-visible",mode:"boolean"})],jx.prototype,"errorVisible",void 0),e([ne({attribute:"full-bleed",mode:"boolean"})],jx.prototype,"fullBleed",void 0)
6897
+ const Gx=jx.compose({baseName:"text-field",baseClass:Io,template:(e,t)=>G`
6890
6898
  <template
6891
6899
  class="
6892
6900
  ${e=>e.readOnly?"readonly":""}
@@ -6946,7 +6954,7 @@ const jx=Ux.compose({baseName:"text-field",baseClass:Io,template:(e,t)=>G`
6946
6954
  ${Ze(0,t)}
6947
6955
  </div>
6948
6956
  </template>
6949
- `,styles:qx,shadowOptions:{delegatesFocus:!0},end:G`
6957
+ `,styles:Ux,shadowOptions:{delegatesFocus:!0},end:G`
6950
6958
  <${kp}
6951
6959
  severity="error"
6952
6960
  class="error-icon"
@@ -6956,8 +6964,8 @@ const jx=Ux.compose({baseName:"text-field",baseClass:Io,template:(e,t)=>G`
6956
6964
  </span>
6957
6965
  ${Qp}
6958
6966
  `})
6959
- ro.getOrCreate().withPrefix("nimble").register(jx()),ro.tagFor(Ux)
6960
- const Gx=fe`
6967
+ ro.getOrCreate().withPrefix("nimble").register(Gx()),ro.tagFor(jx)
6968
+ const Wx=fe`
6961
6969
  .positioning-region {
6962
6970
  display: flex;
6963
6971
  padding: ${sa} ${ra};
@@ -6982,7 +6990,7 @@ const Gx=fe`
6982
6990
  margin-left: auto;
6983
6991
  }
6984
6992
  `
6985
- class Wx extends Jo{}const Kx=Wx.compose({baseName:"toolbar",baseClass:Jo,template:(e,t)=>G`
6993
+ class Kx extends Jo{}const Xx=Kx.compose({baseName:"toolbar",baseClass:Jo,template:(e,t)=>G`
6986
6994
  <template
6987
6995
  aria-label="${e=>e.ariaLabel}"
6988
6996
  aria-labelledby="${e=>e.ariaLabelledby}"
@@ -7003,9 +7011,9 @@ class Wx extends Jo{}const Kx=Wx.compose({baseName:"toolbar",baseClass:Jo,templa
7003
7011
  ${Ze(0,t)}
7004
7012
  </div>
7005
7013
  </template>
7006
- `,styles:Gx,shadowOptions:{delegatesFocus:!0}})
7007
- ro.getOrCreate().withPrefix("nimble").register(Kx()),ro.tagFor(Wx)
7008
- const Xx=fe`
7014
+ `,styles:Wx,shadowOptions:{delegatesFocus:!0}})
7015
+ ro.getOrCreate().withPrefix("nimble").register(Xx()),ro.tagFor(Kx)
7016
+ const Yx=fe`
7009
7017
  ${xn("inline-flex")}
7010
7018
 
7011
7019
  :host {
@@ -7090,7 +7098,7 @@ const Xx=fe`
7090
7098
  .status-icon {
7091
7099
  opacity: 0.6;
7092
7100
  }
7093
- `)),Yx=G`
7101
+ `)),Qx=G`
7094
7102
  ${Me((e=>e.tooltipVisible),G`
7095
7103
  <${gd}
7096
7104
  class="anchored-region"
@@ -7123,11 +7131,11 @@ const Xx=fe`
7123
7131
  </${gd}>
7124
7132
  `)}
7125
7133
  `
7126
- class Qx extends mn{constructor(){super(...arguments),this.iconVisible=!1}}e([ne],Qx.prototype,"severity",void 0),e([ne({attribute:"icon-visible",mode:"boolean"})],Qx.prototype,"iconVisible",void 0)
7127
- const Jx=Qx.compose({baseName:"tooltip",baseClass:mn,template:Yx,styles:Xx})
7128
- ro.getOrCreate().withPrefix("nimble").register(Jx()),ro.tagFor(Qx)
7129
- const ey="group-selected",ty="all",iy="leaves-only",oy="none"
7130
- class ny{constructor(e,t,i){this.ltr=e,this.rtl=t,this.source=i,this.attached=null}handleChange({target:e,token:t}){this.attach(t.getValueFor(e))}attach(e){this.attached!==this[e]&&(null!==this.attached&&this.source.$fastController.removeStyles(this.attached),this.attached=this[e],null!==this.attached&&this.source.$fastController.addStyles(this.attached))}}const sy=fe`
7134
+ class Jx extends mn{constructor(){super(...arguments),this.iconVisible=!1}}e([ne],Jx.prototype,"severity",void 0),e([ne({attribute:"icon-visible",mode:"boolean"})],Jx.prototype,"iconVisible",void 0)
7135
+ const ey=Jx.compose({baseName:"tooltip",baseClass:mn,template:Qx,styles:Yx})
7136
+ ro.getOrCreate().withPrefix("nimble").register(ey()),ro.tagFor(Jx)
7137
+ const ty="group-selected",iy="all",oy="leaves-only",ny="none"
7138
+ class sy{constructor(e,t,i){this.ltr=e,this.rtl=t,this.source=i,this.attached=null}handleChange({target:e,token:t}){this.attach(t.getValueFor(e))}attach(e){this.attached!==this[e]&&(null!==this.attached&&this.source.$fastController.removeStyles(this.attached),this.attached=this[e],null!==this.attached&&this.source.$fastController.addStyles(this.attached))}}const ry=fe`
7131
7139
  ${xn("block")}
7132
7140
 
7133
7141
  :host {
@@ -7143,7 +7151,7 @@ class ny{constructor(e,t,i){this.ltr=e,this.rtl=t,this.source=i,this.attached=nu
7143
7151
  }
7144
7152
 
7145
7153
  ${""}
7146
- :host([${ey}])::after {
7154
+ :host([${ty}])::after {
7147
7155
  background: ${Jr};
7148
7156
  border-radius: 0px;
7149
7157
  content: '';
@@ -7165,7 +7173,7 @@ class ny{constructor(e,t,i){this.ltr=e,this.rtl=t,this.source=i,this.attached=nu
7165
7173
  background: ${jr};
7166
7174
  }
7167
7175
 
7168
- :host([${ey}]) .positioning-region:hover {
7176
+ :host([${ty}]) .positioning-region:hover {
7169
7177
  background: ${Ur};
7170
7178
  }
7171
7179
 
@@ -7276,7 +7284,7 @@ class ny{constructor(e,t,i){this.ltr=e,this.rtl=t,this.source=i,this.attached=nu
7276
7284
  display: block;
7277
7285
  }
7278
7286
  `.withBehaviors(new class{constructor(e,t){this.cache=new WeakMap,this.ltr=e,this.rtl=t}bind(e){this.attach(e)}unbind(e){const t=this.cache.get(e)
7279
- t&&Tr.unsubscribe(t)}attach(e){const t=this.cache.get(e)||new ny(this.ltr,this.rtl,e),i=Tr.getValueFor(e)
7287
+ t&&Tr.unsubscribe(t)}attach(e){const t=this.cache.get(e)||new sy(this.ltr,this.rtl,e),i=Tr.getValueFor(e)
7280
7288
  Tr.subscribe(t),t.attach(i),this.cache.set(e,t)}}(fe`
7281
7289
  .expand-collapse-button {
7282
7290
  left: var(
@@ -7308,8 +7316,8 @@ Tr.subscribe(t),t.attach(i),this.cache.set(e,t)}}(fe`
7308
7316
  transform: rotate(135deg);
7309
7317
  }
7310
7318
  `))
7311
- class ry extends bn{constructor(){super(...arguments),this.groupSelected=!1}}e([ne({attribute:"group-selected",mode:"boolean"})],ry.prototype,"groupSelected",void 0)
7312
- const ay=ry.compose({baseName:"tree-item",baseClass:bn,template:(e,t)=>G`
7319
+ class ay extends bn{constructor(){super(...arguments),this.groupSelected=!1}}e([ne({attribute:"group-selected",mode:"boolean"})],ay.prototype,"groupSelected",void 0)
7320
+ const ly=ay.compose({baseName:"tree-item",baseClass:bn,template:(e,t)=>G`
7313
7321
  <template
7314
7322
  role="treeitem"
7315
7323
  slot="${e=>e.isNestedItem()?"item":void 0}"
@@ -7349,9 +7357,9 @@ const ay=ry.compose({baseName:"tree-item",baseClass:bn,template:(e,t)=>G`
7349
7357
  </div>
7350
7358
  `)}
7351
7359
  </template>
7352
- `,styles:sy,expandCollapseGlyph:Md.data})
7353
- ro.getOrCreate().withPrefix("nimble").register(ay()),ro.tagFor(ry)
7354
- const ly=fe`
7360
+ `,styles:ry,expandCollapseGlyph:Md.data})
7361
+ ro.getOrCreate().withPrefix("nimble").register(ly()),ro.tagFor(ay)
7362
+ const cy=fe`
7355
7363
  ${xn("flex")}
7356
7364
 
7357
7365
  :host {
@@ -7363,7 +7371,7 @@ const ly=fe`
7363
7371
  :host(${Cn}) {
7364
7372
  outline: none;
7365
7373
  }
7366
- `,cy=G`
7374
+ `,dy=G`
7367
7375
  <template
7368
7376
  role="tree"
7369
7377
  ${Re("treeView")}
@@ -7377,273 +7385,273 @@ const ly=fe`
7377
7385
  <slot ${Le("slottedTreeItems")}></slot>
7378
7386
  </template>
7379
7387
  `
7380
- class dy extends wn{constructor(){super(...arguments),this.selectionMode=ty,this.selectedItems=[]}handleClick(e){if(e.defaultPrevented)return!1
7388
+ class hy extends wn{constructor(){super(...arguments),this.selectionMode=iy,this.selectedItems=[]}handleClick(e){if(e.defaultPrevented)return!1
7381
7389
  if(!(e.target instanceof Element&&fn(e.target)))return!0
7382
7390
  const t=e.target
7383
- return!t.disabled&&(this.canSelect(t)?t.selected=!0:this.itemHasChildren(t)&&(t.expanded=!t.expanded),!0)}canSelect(e){switch(this.selectionMode){case ty:return!0
7384
- case oy:return!1
7385
- case iy:return!this.itemHasChildren(e)
7386
- default:return!0}}itemHasChildren(e){return null!==e.querySelector('[role="treeitem"]')}selectedItemsChanged(){for(const e of Array.from(this.children))e instanceof ry&&(e.groupSelected=!1)
7391
+ return!t.disabled&&(this.canSelect(t)?t.selected=!0:this.itemHasChildren(t)&&(t.expanded=!t.expanded),!0)}canSelect(e){switch(this.selectionMode){case iy:return!0
7392
+ case ny:return!1
7393
+ case oy:return!this.itemHasChildren(e)
7394
+ default:return!0}}itemHasChildren(e){return null!==e.querySelector('[role="treeitem"]')}selectedItemsChanged(){for(const e of Array.from(this.children))e instanceof ay&&(e.groupSelected=!1)
7387
7395
  for(let e of this.selectedItems){for(;null!==e.parentElement&&e.parentElement!==this;)e=e.parentElement
7388
- e instanceof ry&&(e.groupSelected=!0)}}}e([ne({attribute:"selection-mode"})],dy.prototype,"selectionMode",void 0),e([m],dy.prototype,"selectedItems",void 0)
7389
- const hy=dy.compose({baseName:"tree-view",baseClass:wn,template:cy,styles:ly})
7390
- ro.getOrCreate().withPrefix("nimble").register(hy()),ro.tagFor(dy)
7391
- var uy={value:()=>{}}
7392
- function py(){for(var e,t=0,i=arguments.length,o={};t<i;++t){if(!(e=arguments[t]+"")||e in o||/[\s.]/.test(e))throw new Error("illegal type: "+e)
7393
- o[e]=[]}return new gy(o)}function gy(e){this._=e}function vy(e,t){return e.trim().split(/^|\s+/).map((function(e){var i="",o=e.indexOf(".")
7396
+ e instanceof ay&&(e.groupSelected=!0)}}}e([ne({attribute:"selection-mode"})],hy.prototype,"selectionMode",void 0),e([m],hy.prototype,"selectedItems",void 0)
7397
+ const uy=hy.compose({baseName:"tree-view",baseClass:wn,template:dy,styles:cy})
7398
+ ro.getOrCreate().withPrefix("nimble").register(uy()),ro.tagFor(hy)
7399
+ var py={value:()=>{}}
7400
+ function gy(){for(var e,t=0,i=arguments.length,o={};t<i;++t){if(!(e=arguments[t]+"")||e in o||/[\s.]/.test(e))throw new Error("illegal type: "+e)
7401
+ o[e]=[]}return new vy(o)}function vy(e){this._=e}function my(e,t){return e.trim().split(/^|\s+/).map((function(e){var i="",o=e.indexOf(".")
7394
7402
  if(o>=0&&(i=e.slice(o+1),e=e.slice(0,o)),e&&!t.hasOwnProperty(e))throw new Error("unknown type: "+e)
7395
- return{type:e,name:i}}))}function my(e,t){for(var i,o=0,n=e.length;o<n;++o)if((i=e[o]).name===t)return i.value}function fy(e,t,i){for(var o=0,n=e.length;o<n;++o)if(e[o].name===t){e[o]=uy,e=e.slice(0,o).concat(e.slice(o+1))
7396
- break}return null!=i&&e.push({name:t,value:i}),e}gy.prototype=py.prototype={constructor:gy,on:function(e,t){var i,o=this._,n=vy(e+"",o),s=-1,r=n.length
7403
+ return{type:e,name:i}}))}function fy(e,t){for(var i,o=0,n=e.length;o<n;++o)if((i=e[o]).name===t)return i.value}function by(e,t,i){for(var o=0,n=e.length;o<n;++o)if(e[o].name===t){e[o]=py,e=e.slice(0,o).concat(e.slice(o+1))
7404
+ break}return null!=i&&e.push({name:t,value:i}),e}vy.prototype=gy.prototype={constructor:vy,on:function(e,t){var i,o=this._,n=my(e+"",o),s=-1,r=n.length
7397
7405
  if(!(arguments.length<2)){if(null!=t&&"function"!=typeof t)throw new Error("invalid callback: "+t)
7398
- for(;++s<r;)if(i=(e=n[s]).type)o[i]=fy(o[i],e.name,t)
7399
- else if(null==t)for(i in o)o[i]=fy(o[i],e.name,null)
7400
- return this}for(;++s<r;)if((i=(e=n[s]).type)&&(i=my(o[i],e.name)))return i},copy:function(){var e={},t=this._
7406
+ for(;++s<r;)if(i=(e=n[s]).type)o[i]=by(o[i],e.name,t)
7407
+ else if(null==t)for(i in o)o[i]=by(o[i],e.name,null)
7408
+ return this}for(;++s<r;)if((i=(e=n[s]).type)&&(i=fy(o[i],e.name)))return i},copy:function(){var e={},t=this._
7401
7409
  for(var i in t)e[i]=t[i].slice()
7402
- return new gy(e)},call:function(e,t){if((i=arguments.length-2)>0)for(var i,o,n=new Array(i),s=0;s<i;++s)n[s]=arguments[s+2]
7410
+ return new vy(e)},call:function(e,t){if((i=arguments.length-2)>0)for(var i,o,n=new Array(i),s=0;s<i;++s)n[s]=arguments[s+2]
7403
7411
  if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e)
7404
7412
  for(s=0,i=(o=this._[e]).length;s<i;++s)o[s].value.apply(t,n)},apply:function(e,t,i){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e)
7405
7413
  for(var o=this._[e],n=0,s=o.length;n<s;++n)o[n].value.apply(t,i)}}
7406
- var by="http://www.w3.org/1999/xhtml",wy={svg:"http://www.w3.org/2000/svg",xhtml:by,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"}
7407
- function xy(e){var t=e+="",i=t.indexOf(":")
7408
- return i>=0&&"xmlns"!==(t=e.slice(0,i))&&(e=e.slice(i+1)),wy.hasOwnProperty(t)?{space:wy[t],local:e}:e}function yy(e){return function(){var t=this.ownerDocument,i=this.namespaceURI
7409
- return i===by&&t.documentElement.namespaceURI===by?t.createElement(e):t.createElementNS(i,e)}}function $y(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Cy(e){var t=xy(e)
7410
- return(t.local?$y:yy)(t)}function ky(){}function Sy(e){return null==e?ky:function(){return this.querySelector(e)}}function _y(e){return null==e?[]:Array.isArray(e)?e:Array.from(e)}function Iy(){return[]}function Ry(e){return null==e?Iy:function(){return this.querySelectorAll(e)}}function My(e){return function(){return this.matches(e)}}function Ay(e){return function(t){return t.matches(e)}}var Ey=Array.prototype.find
7411
- function Oy(){return this.firstElementChild}var Fy=Array.prototype.filter
7412
- function Vy(){return Array.from(this.children)}function Hy(e){return new Array(e.length)}function Py(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}function Ty(e){return function(){return e}}function Dy(e,t,i,o,n,s){for(var r,a=0,l=t.length,c=s.length;a<c;++a)(r=t[a])?(r.__data__=s[a],o[a]=r):i[a]=new Py(e,s[a])
7413
- for(;a<l;++a)(r=t[a])&&(n[a]=r)}function Ly(e,t,i,o,n,s,r){var a,l,c,d=new Map,h=t.length,u=s.length,p=new Array(h)
7414
+ var wy="http://www.w3.org/1999/xhtml",xy={svg:"http://www.w3.org/2000/svg",xhtml:wy,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"}
7415
+ function yy(e){var t=e+="",i=t.indexOf(":")
7416
+ return i>=0&&"xmlns"!==(t=e.slice(0,i))&&(e=e.slice(i+1)),xy.hasOwnProperty(t)?{space:xy[t],local:e}:e}function $y(e){return function(){var t=this.ownerDocument,i=this.namespaceURI
7417
+ return i===wy&&t.documentElement.namespaceURI===wy?t.createElement(e):t.createElementNS(i,e)}}function Cy(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function ky(e){var t=yy(e)
7418
+ return(t.local?Cy:$y)(t)}function Sy(){}function _y(e){return null==e?Sy:function(){return this.querySelector(e)}}function Iy(e){return null==e?[]:Array.isArray(e)?e:Array.from(e)}function Ry(){return[]}function My(e){return null==e?Ry:function(){return this.querySelectorAll(e)}}function Ay(e){return function(){return this.matches(e)}}function Ey(e){return function(t){return t.matches(e)}}var Oy=Array.prototype.find
7419
+ function Fy(){return this.firstElementChild}var Vy=Array.prototype.filter
7420
+ function Hy(){return Array.from(this.children)}function Py(e){return new Array(e.length)}function Ty(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}function Dy(e){return function(){return e}}function Ly(e,t,i,o,n,s){for(var r,a=0,l=t.length,c=s.length;a<c;++a)(r=t[a])?(r.__data__=s[a],o[a]=r):i[a]=new Ty(e,s[a])
7421
+ for(;a<l;++a)(r=t[a])&&(n[a]=r)}function zy(e,t,i,o,n,s,r){var a,l,c,d=new Map,h=t.length,u=s.length,p=new Array(h)
7414
7422
  for(a=0;a<h;++a)(l=t[a])&&(p[a]=c=r.call(l,l.__data__,a,t)+"",d.has(c)?n[a]=l:d.set(c,l))
7415
- for(a=0;a<u;++a)c=r.call(e,s[a],a,s)+"",(l=d.get(c))?(o[a]=l,l.__data__=s[a],d.delete(c)):i[a]=new Py(e,s[a])
7416
- for(a=0;a<h;++a)(l=t[a])&&d.get(p[a])===l&&(n[a]=l)}function zy(e){return e.__data__}function By(e){return"object"==typeof e&&"length"in e?e:Array.from(e)}function Ny(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function Zy(e){return function(){this.removeAttribute(e)}}function qy(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Uy(e,t){return function(){this.setAttribute(e,t)}}function jy(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function Gy(e,t){return function(){var i=t.apply(this,arguments)
7417
- null==i?this.removeAttribute(e):this.setAttribute(e,i)}}function Wy(e,t){return function(){var i=t.apply(this,arguments)
7418
- null==i?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,i)}}function Ky(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function Xy(e){return function(){this.style.removeProperty(e)}}function Yy(e,t,i){return function(){this.style.setProperty(e,t,i)}}function Qy(e,t,i){return function(){var o=t.apply(this,arguments)
7419
- null==o?this.style.removeProperty(e):this.style.setProperty(e,o,i)}}function Jy(e,t){return e.style.getPropertyValue(t)||Ky(e).getComputedStyle(e,null).getPropertyValue(t)}function e$(e){return function(){delete this[e]}}function t$(e,t){return function(){this[e]=t}}function i$(e,t){return function(){var i=t.apply(this,arguments)
7420
- null==i?delete this[e]:this[e]=i}}function o$(e){return e.trim().split(/^|\s+/)}function n$(e){return e.classList||new s$(e)}function s$(e){this._node=e,this._names=o$(e.getAttribute("class")||"")}function r$(e,t){for(var i=n$(e),o=-1,n=t.length;++o<n;)i.add(t[o])}function a$(e,t){for(var i=n$(e),o=-1,n=t.length;++o<n;)i.remove(t[o])}function l$(e){return function(){r$(this,e)}}function c$(e){return function(){a$(this,e)}}function d$(e,t){return function(){(t.apply(this,arguments)?r$:a$)(this,e)}}function h$(){this.textContent=""}function u$(e){return function(){this.textContent=e}}function p$(e){return function(){var t=e.apply(this,arguments)
7421
- this.textContent=null==t?"":t}}function g$(){this.innerHTML=""}function v$(e){return function(){this.innerHTML=e}}function m$(e){return function(){var t=e.apply(this,arguments)
7422
- this.innerHTML=null==t?"":t}}function f$(){this.nextSibling&&this.parentNode.appendChild(this)}function b$(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function w$(){return null}function x$(){var e=this.parentNode
7423
- e&&e.removeChild(this)}function y$(){var e=this.cloneNode(!1),t=this.parentNode
7424
- return t?t.insertBefore(e,this.nextSibling):e}function $$(){var e=this.cloneNode(!0),t=this.parentNode
7425
- return t?t.insertBefore(e,this.nextSibling):e}function C$(e){return e.trim().split(/^|\s+/).map((function(e){var t="",i=e.indexOf(".")
7426
- return i>=0&&(t=e.slice(i+1),e=e.slice(0,i)),{type:e,name:t}}))}function k$(e){return function(){var t=this.__on
7427
- if(t){for(var i,o=0,n=-1,s=t.length;o<s;++o)i=t[o],e.type&&i.type!==e.type||i.name!==e.name?t[++n]=i:this.removeEventListener(i.type,i.listener,i.options);++n?t.length=n:delete this.__on}}}function S$(e,t,i){return function(){var o,n=this.__on,s=function(e){return function(t){e.call(this,t,this.__data__)}}(t)
7423
+ for(a=0;a<u;++a)c=r.call(e,s[a],a,s)+"",(l=d.get(c))?(o[a]=l,l.__data__=s[a],d.delete(c)):i[a]=new Ty(e,s[a])
7424
+ for(a=0;a<h;++a)(l=t[a])&&d.get(p[a])===l&&(n[a]=l)}function By(e){return e.__data__}function Ny(e){return"object"==typeof e&&"length"in e?e:Array.from(e)}function Zy(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function qy(e){return function(){this.removeAttribute(e)}}function Uy(e){return function(){this.removeAttributeNS(e.space,e.local)}}function jy(e,t){return function(){this.setAttribute(e,t)}}function Gy(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function Wy(e,t){return function(){var i=t.apply(this,arguments)
7425
+ null==i?this.removeAttribute(e):this.setAttribute(e,i)}}function Ky(e,t){return function(){var i=t.apply(this,arguments)
7426
+ null==i?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,i)}}function Xy(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function Yy(e){return function(){this.style.removeProperty(e)}}function Qy(e,t,i){return function(){this.style.setProperty(e,t,i)}}function Jy(e,t,i){return function(){var o=t.apply(this,arguments)
7427
+ null==o?this.style.removeProperty(e):this.style.setProperty(e,o,i)}}function e$(e,t){return e.style.getPropertyValue(t)||Xy(e).getComputedStyle(e,null).getPropertyValue(t)}function t$(e){return function(){delete this[e]}}function i$(e,t){return function(){this[e]=t}}function o$(e,t){return function(){var i=t.apply(this,arguments)
7428
+ null==i?delete this[e]:this[e]=i}}function n$(e){return e.trim().split(/^|\s+/)}function s$(e){return e.classList||new r$(e)}function r$(e){this._node=e,this._names=n$(e.getAttribute("class")||"")}function a$(e,t){for(var i=s$(e),o=-1,n=t.length;++o<n;)i.add(t[o])}function l$(e,t){for(var i=s$(e),o=-1,n=t.length;++o<n;)i.remove(t[o])}function c$(e){return function(){a$(this,e)}}function d$(e){return function(){l$(this,e)}}function h$(e,t){return function(){(t.apply(this,arguments)?a$:l$)(this,e)}}function u$(){this.textContent=""}function p$(e){return function(){this.textContent=e}}function g$(e){return function(){var t=e.apply(this,arguments)
7429
+ this.textContent=null==t?"":t}}function v$(){this.innerHTML=""}function m$(e){return function(){this.innerHTML=e}}function f$(e){return function(){var t=e.apply(this,arguments)
7430
+ this.innerHTML=null==t?"":t}}function b$(){this.nextSibling&&this.parentNode.appendChild(this)}function w$(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function x$(){return null}function y$(){var e=this.parentNode
7431
+ e&&e.removeChild(this)}function $$(){var e=this.cloneNode(!1),t=this.parentNode
7432
+ return t?t.insertBefore(e,this.nextSibling):e}function C$(){var e=this.cloneNode(!0),t=this.parentNode
7433
+ return t?t.insertBefore(e,this.nextSibling):e}function k$(e){return e.trim().split(/^|\s+/).map((function(e){var t="",i=e.indexOf(".")
7434
+ return i>=0&&(t=e.slice(i+1),e=e.slice(0,i)),{type:e,name:t}}))}function S$(e){return function(){var t=this.__on
7435
+ if(t){for(var i,o=0,n=-1,s=t.length;o<s;++o)i=t[o],e.type&&i.type!==e.type||i.name!==e.name?t[++n]=i:this.removeEventListener(i.type,i.listener,i.options);++n?t.length=n:delete this.__on}}}function _$(e,t,i){return function(){var o,n=this.__on,s=function(e){return function(t){e.call(this,t,this.__data__)}}(t)
7428
7436
  if(n)for(var r=0,a=n.length;r<a;++r)if((o=n[r]).type===e.type&&o.name===e.name)return this.removeEventListener(o.type,o.listener,o.options),this.addEventListener(o.type,o.listener=s,o.options=i),void(o.value=t)
7429
- this.addEventListener(e.type,s,i),o={type:e.type,name:e.name,value:t,listener:s,options:i},n?n.push(o):this.__on=[o]}}function _$(e,t,i){var o=Ky(e),n=o.CustomEvent
7430
- "function"==typeof n?n=new n(t,i):(n=o.document.createEvent("Event"),i?(n.initEvent(t,i.bubbles,i.cancelable),n.detail=i.detail):n.initEvent(t,!1,!1)),e.dispatchEvent(n)}function I$(e,t){return function(){return _$(this,e,t)}}function R$(e,t){return function(){return _$(this,e,t.apply(this,arguments))}}Py.prototype={constructor:Py,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}},s$.prototype={add:function(e){this._names.indexOf(e)<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e)
7437
+ this.addEventListener(e.type,s,i),o={type:e.type,name:e.name,value:t,listener:s,options:i},n?n.push(o):this.__on=[o]}}function I$(e,t,i){var o=Xy(e),n=o.CustomEvent
7438
+ "function"==typeof n?n=new n(t,i):(n=o.document.createEvent("Event"),i?(n.initEvent(t,i.bubbles,i.cancelable),n.detail=i.detail):n.initEvent(t,!1,!1)),e.dispatchEvent(n)}function R$(e,t){return function(){return I$(this,e,t)}}function M$(e,t){return function(){return I$(this,e,t.apply(this,arguments))}}Ty.prototype={constructor:Ty,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}},r$.prototype={add:function(e){this._names.indexOf(e)<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e)
7431
7439
  t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}}
7432
- var M$=[null]
7433
- function A$(e,t){this._groups=e,this._parents=t}function E$(){return new A$([[document.documentElement]],M$)}function O$(e){return"string"==typeof e?new A$([[document.querySelector(e)]],[document.documentElement]):new A$([[e]],M$)}function F$(e,t){if(e=function(e){let t
7440
+ var A$=[null]
7441
+ function E$(e,t){this._groups=e,this._parents=t}function O$(){return new E$([[document.documentElement]],A$)}function F$(e){return"string"==typeof e?new E$([[document.querySelector(e)]],[document.documentElement]):new E$([[e]],A$)}function V$(e,t){if(e=function(e){let t
7434
7442
  for(;t=e.sourceEvent;)e=t
7435
7443
  return e}(e),void 0===t&&(t=e.currentTarget),t){var i=t.ownerSVGElement||t
7436
7444
  if(i.createSVGPoint){var o=i.createSVGPoint()
7437
7445
  return o.x=e.clientX,o.y=e.clientY,[(o=o.matrixTransform(t.getScreenCTM().inverse())).x,o.y]}if(t.getBoundingClientRect){var n=t.getBoundingClientRect()
7438
- return[e.clientX-n.left-t.clientLeft,e.clientY-n.top-t.clientTop]}}return[e.pageX,e.pageY]}A$.prototype=E$.prototype={constructor:A$,select:function(e){"function"!=typeof e&&(e=Sy(e))
7446
+ return[e.clientX-n.left-t.clientLeft,e.clientY-n.top-t.clientTop]}}return[e.pageX,e.pageY]}E$.prototype=O$.prototype={constructor:E$,select:function(e){"function"!=typeof e&&(e=_y(e))
7439
7447
  for(var t=this._groups,i=t.length,o=new Array(i),n=0;n<i;++n)for(var s,r,a=t[n],l=a.length,c=o[n]=new Array(l),d=0;d<l;++d)(s=a[d])&&(r=e.call(s,s.__data__,d,a))&&("__data__"in s&&(r.__data__=s.__data__),c[d]=r)
7440
- return new A$(o,this._parents)},selectAll:function(e){e="function"==typeof e?function(e){return function(){return _y(e.apply(this,arguments))}}(e):Ry(e)
7448
+ return new E$(o,this._parents)},selectAll:function(e){e="function"==typeof e?function(e){return function(){return Iy(e.apply(this,arguments))}}(e):My(e)
7441
7449
  for(var t=this._groups,i=t.length,o=[],n=[],s=0;s<i;++s)for(var r,a=t[s],l=a.length,c=0;c<l;++c)(r=a[c])&&(o.push(e.call(r,r.__data__,c,a)),n.push(r))
7442
- return new A$(o,n)},selectChild:function(e){return this.select(null==e?Oy:function(e){return function(){return Ey.call(this.children,e)}}("function"==typeof e?e:Ay(e)))},selectChildren:function(e){return this.selectAll(null==e?Vy:function(e){return function(){return Fy.call(this.children,e)}}("function"==typeof e?e:Ay(e)))},filter:function(e){"function"!=typeof e&&(e=My(e))
7450
+ return new E$(o,n)},selectChild:function(e){return this.select(null==e?Fy:function(e){return function(){return Oy.call(this.children,e)}}("function"==typeof e?e:Ey(e)))},selectChildren:function(e){return this.selectAll(null==e?Hy:function(e){return function(){return Vy.call(this.children,e)}}("function"==typeof e?e:Ey(e)))},filter:function(e){"function"!=typeof e&&(e=Ay(e))
7443
7451
  for(var t=this._groups,i=t.length,o=new Array(i),n=0;n<i;++n)for(var s,r=t[n],a=r.length,l=o[n]=[],c=0;c<a;++c)(s=r[c])&&e.call(s,s.__data__,c,r)&&l.push(s)
7444
- return new A$(o,this._parents)},data:function(e,t){if(!arguments.length)return Array.from(this,zy)
7445
- var i=t?Ly:Dy,o=this._parents,n=this._groups
7446
- "function"!=typeof e&&(e=Ty(e))
7447
- for(var s=n.length,r=new Array(s),a=new Array(s),l=new Array(s),c=0;c<s;++c){var d=o[c],h=n[c],u=h.length,p=By(e.call(d,d&&d.__data__,c,o)),g=p.length,v=a[c]=new Array(g),m=r[c]=new Array(g),f=l[c]=new Array(u)
7452
+ return new E$(o,this._parents)},data:function(e,t){if(!arguments.length)return Array.from(this,By)
7453
+ var i=t?zy:Ly,o=this._parents,n=this._groups
7454
+ "function"!=typeof e&&(e=Dy(e))
7455
+ for(var s=n.length,r=new Array(s),a=new Array(s),l=new Array(s),c=0;c<s;++c){var d=o[c],h=n[c],u=h.length,p=Ny(e.call(d,d&&d.__data__,c,o)),g=p.length,v=a[c]=new Array(g),m=r[c]=new Array(g),f=l[c]=new Array(u)
7448
7456
  i(d,h,v,m,f,p,t)
7449
- for(var b,w,x=0,y=0;x<g;++x)if(b=v[x]){for(x>=y&&(y=x+1);!(w=m[y])&&++y<g;);b._next=w||null}}return(r=new A$(r,o))._enter=a,r._exit=l,r},enter:function(){return new A$(this._enter||this._groups.map(Hy),this._parents)},exit:function(){return new A$(this._exit||this._groups.map(Hy),this._parents)},join:function(e,t,i){var o=this.enter(),n=this,s=this.exit()
7457
+ for(var b,w,x=0,y=0;x<g;++x)if(b=v[x]){for(x>=y&&(y=x+1);!(w=m[y])&&++y<g;);b._next=w||null}}return(r=new E$(r,o))._enter=a,r._exit=l,r},enter:function(){return new E$(this._enter||this._groups.map(Py),this._parents)},exit:function(){return new E$(this._exit||this._groups.map(Py),this._parents)},join:function(e,t,i){var o=this.enter(),n=this,s=this.exit()
7450
7458
  return"function"==typeof e?(o=e(o))&&(o=o.selection()):o=o.append(e+""),null!=t&&(n=t(n))&&(n=n.selection()),null==i?s.remove():i(s),o&&n?o.merge(n).order():n},merge:function(e){for(var t=e.selection?e.selection():e,i=this._groups,o=t._groups,n=i.length,s=o.length,r=Math.min(n,s),a=new Array(n),l=0;l<r;++l)for(var c,d=i[l],h=o[l],u=d.length,p=a[l]=new Array(u),g=0;g<u;++g)(c=d[g]||h[g])&&(p[g]=c)
7451
7459
  for(;l<n;++l)a[l]=i[l]
7452
- return new A$(a,this._parents)},selection:function(){return this},order:function(){for(var e=this._groups,t=-1,i=e.length;++t<i;)for(var o,n=e[t],s=n.length-1,r=n[s];--s>=0;)(o=n[s])&&(r&&4^o.compareDocumentPosition(r)&&r.parentNode.insertBefore(o,r),r=o)
7453
- return this},sort:function(e){function t(t,i){return t&&i?e(t.__data__,i.__data__):!t-!i}e||(e=Ny)
7460
+ return new E$(a,this._parents)},selection:function(){return this},order:function(){for(var e=this._groups,t=-1,i=e.length;++t<i;)for(var o,n=e[t],s=n.length-1,r=n[s];--s>=0;)(o=n[s])&&(r&&4^o.compareDocumentPosition(r)&&r.parentNode.insertBefore(o,r),r=o)
7461
+ return this},sort:function(e){function t(t,i){return t&&i?e(t.__data__,i.__data__):!t-!i}e||(e=Zy)
7454
7462
  for(var i=this._groups,o=i.length,n=new Array(o),s=0;s<o;++s){for(var r,a=i[s],l=a.length,c=n[s]=new Array(l),d=0;d<l;++d)(r=a[d])&&(c[d]=r)
7455
- c.sort(t)}return new A$(n,this._parents).order()},call:function(){var e=arguments[0]
7463
+ c.sort(t)}return new E$(n,this._parents).order()},call:function(){var e=arguments[0]
7456
7464
  return arguments[0]=this,e.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var e=this._groups,t=0,i=e.length;t<i;++t)for(var o=e[t],n=0,s=o.length;n<s;++n){var r=o[n]
7457
7465
  if(r)return r}return null},size:function(){let e=0
7458
7466
  for(const t of this)++e
7459
7467
  return e},empty:function(){return!this.node()},each:function(e){for(var t=this._groups,i=0,o=t.length;i<o;++i)for(var n,s=t[i],r=0,a=s.length;r<a;++r)(n=s[r])&&e.call(n,n.__data__,r,s)
7460
- return this},attr:function(e,t){var i=xy(e)
7468
+ return this},attr:function(e,t){var i=yy(e)
7461
7469
  if(arguments.length<2){var o=this.node()
7462
- return i.local?o.getAttributeNS(i.space,i.local):o.getAttribute(i)}return this.each((null==t?i.local?qy:Zy:"function"==typeof t?i.local?Wy:Gy:i.local?jy:Uy)(i,t))},style:function(e,t,i){return arguments.length>1?this.each((null==t?Xy:"function"==typeof t?Qy:Yy)(e,t,null==i?"":i)):Jy(this.node(),e)},property:function(e,t){return arguments.length>1?this.each((null==t?e$:"function"==typeof t?i$:t$)(e,t)):this.node()[e]},classed:function(e,t){var i=o$(e+"")
7463
- if(arguments.length<2){for(var o=n$(this.node()),n=-1,s=i.length;++n<s;)if(!o.contains(i[n]))return!1
7464
- return!0}return this.each(("function"==typeof t?d$:t?l$:c$)(i,t))},text:function(e){return arguments.length?this.each(null==e?h$:("function"==typeof e?p$:u$)(e)):this.node().textContent},html:function(e){return arguments.length?this.each(null==e?g$:("function"==typeof e?m$:v$)(e)):this.node().innerHTML},raise:function(){return this.each(f$)},lower:function(){return this.each(b$)},append:function(e){var t="function"==typeof e?e:Cy(e)
7465
- return this.select((function(){return this.appendChild(t.apply(this,arguments))}))},insert:function(e,t){var i="function"==typeof e?e:Cy(e),o=null==t?w$:"function"==typeof t?t:Sy(t)
7466
- return this.select((function(){return this.insertBefore(i.apply(this,arguments),o.apply(this,arguments)||null)}))},remove:function(){return this.each(x$)},clone:function(e){return this.select(e?$$:y$)},datum:function(e){return arguments.length?this.property("__data__",e):this.node().__data__},on:function(e,t,i){var o,n,s=C$(e+""),r=s.length
7467
- if(!(arguments.length<2)){for(a=t?S$:k$,o=0;o<r;++o)this.each(a(s[o],t,i))
7470
+ return i.local?o.getAttributeNS(i.space,i.local):o.getAttribute(i)}return this.each((null==t?i.local?Uy:qy:"function"==typeof t?i.local?Ky:Wy:i.local?Gy:jy)(i,t))},style:function(e,t,i){return arguments.length>1?this.each((null==t?Yy:"function"==typeof t?Jy:Qy)(e,t,null==i?"":i)):e$(this.node(),e)},property:function(e,t){return arguments.length>1?this.each((null==t?t$:"function"==typeof t?o$:i$)(e,t)):this.node()[e]},classed:function(e,t){var i=n$(e+"")
7471
+ if(arguments.length<2){for(var o=s$(this.node()),n=-1,s=i.length;++n<s;)if(!o.contains(i[n]))return!1
7472
+ return!0}return this.each(("function"==typeof t?h$:t?c$:d$)(i,t))},text:function(e){return arguments.length?this.each(null==e?u$:("function"==typeof e?g$:p$)(e)):this.node().textContent},html:function(e){return arguments.length?this.each(null==e?v$:("function"==typeof e?f$:m$)(e)):this.node().innerHTML},raise:function(){return this.each(b$)},lower:function(){return this.each(w$)},append:function(e){var t="function"==typeof e?e:ky(e)
7473
+ return this.select((function(){return this.appendChild(t.apply(this,arguments))}))},insert:function(e,t){var i="function"==typeof e?e:ky(e),o=null==t?x$:"function"==typeof t?t:_y(t)
7474
+ return this.select((function(){return this.insertBefore(i.apply(this,arguments),o.apply(this,arguments)||null)}))},remove:function(){return this.each(y$)},clone:function(e){return this.select(e?C$:$$)},datum:function(e){return arguments.length?this.property("__data__",e):this.node().__data__},on:function(e,t,i){var o,n,s=k$(e+""),r=s.length
7475
+ if(!(arguments.length<2)){for(a=t?_$:S$,o=0;o<r;++o)this.each(a(s[o],t,i))
7468
7476
  return this}var a=this.node().__on
7469
- if(a)for(var l,c=0,d=a.length;c<d;++c)for(o=0,l=a[c];o<r;++o)if((n=s[o]).type===l.type&&n.name===l.name)return l.value},dispatch:function(e,t){return this.each(("function"==typeof t?R$:I$)(e,t))},[Symbol.iterator]:function*(){for(var e=this._groups,t=0,i=e.length;t<i;++t)for(var o,n=e[t],s=0,r=n.length;s<r;++s)(o=n[s])&&(yield o)}}
7470
- const V$={capture:!0,passive:!1}
7471
- function H$(e){e.preventDefault(),e.stopImmediatePropagation()}function P$(e){var t=e.document.documentElement,i=O$(e).on("dragstart.drag",H$,V$)
7472
- "onselectstart"in t?i.on("selectstart.drag",H$,V$):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function T$(e,t){var i=e.document.documentElement,o=O$(e).on("dragstart.drag",null)
7473
- t&&(o.on("click.drag",H$,V$),setTimeout((function(){o.on("click.drag",null)}),0)),"onselectstart"in i?o.on("selectstart.drag",null):(i.style.MozUserSelect=i.__noselect,delete i.__noselect)}function D$(e,t,i){e.prototype=t.prototype=i,i.constructor=e}function L$(e,t){var i=Object.create(e.prototype)
7477
+ if(a)for(var l,c=0,d=a.length;c<d;++c)for(o=0,l=a[c];o<r;++o)if((n=s[o]).type===l.type&&n.name===l.name)return l.value},dispatch:function(e,t){return this.each(("function"==typeof t?M$:R$)(e,t))},[Symbol.iterator]:function*(){for(var e=this._groups,t=0,i=e.length;t<i;++t)for(var o,n=e[t],s=0,r=n.length;s<r;++s)(o=n[s])&&(yield o)}}
7478
+ const H$={capture:!0,passive:!1}
7479
+ function P$(e){e.preventDefault(),e.stopImmediatePropagation()}function T$(e){var t=e.document.documentElement,i=F$(e).on("dragstart.drag",P$,H$)
7480
+ "onselectstart"in t?i.on("selectstart.drag",P$,H$):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function D$(e,t){var i=e.document.documentElement,o=F$(e).on("dragstart.drag",null)
7481
+ t&&(o.on("click.drag",P$,H$),setTimeout((function(){o.on("click.drag",null)}),0)),"onselectstart"in i?o.on("selectstart.drag",null):(i.style.MozUserSelect=i.__noselect,delete i.__noselect)}function L$(e,t,i){e.prototype=t.prototype=i,i.constructor=e}function z$(e,t){var i=Object.create(e.prototype)
7474
7482
  for(var o in t)i[o]=t[o]
7475
- return i}function z$(){}var B$=.7,N$=1/B$,Z$="\\s*([+-]?\\d+)\\s*",q$="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",U$="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",j$=/^#([0-9a-f]{3,8})$/,G$=new RegExp(`^rgb\\(${Z$},${Z$},${Z$}\\)$`),W$=new RegExp(`^rgb\\(${U$},${U$},${U$}\\)$`),K$=new RegExp(`^rgba\\(${Z$},${Z$},${Z$},${q$}\\)$`),X$=new RegExp(`^rgba\\(${U$},${U$},${U$},${q$}\\)$`),Y$=new RegExp(`^hsl\\(${q$},${U$},${U$}\\)$`),Q$=new RegExp(`^hsla\\(${q$},${U$},${U$},${q$}\\)$`),J$={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074}
7476
- function eC(){return this.rgb().formatHex()}function tC(){return this.rgb().formatRgb()}function iC(e){var t,i
7477
- return e=(e+"").trim().toLowerCase(),(t=j$.exec(e))?(i=t[1].length,t=parseInt(t[1],16),6===i?oC(t):3===i?new aC(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===i?nC(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===i?nC(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=G$.exec(e))?new aC(t[1],t[2],t[3],1):(t=W$.exec(e))?new aC(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=K$.exec(e))?nC(t[1],t[2],t[3],t[4]):(t=X$.exec(e))?nC(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Y$.exec(e))?pC(t[1],t[2]/100,t[3]/100,1):(t=Q$.exec(e))?pC(t[1],t[2]/100,t[3]/100,t[4]):J$.hasOwnProperty(e)?oC(J$[e]):"transparent"===e?new aC(NaN,NaN,NaN,0):null}function oC(e){return new aC(e>>16&255,e>>8&255,255&e,1)}function nC(e,t,i,o){return o<=0&&(e=t=i=NaN),new aC(e,t,i,o)}function sC(e){return e instanceof z$||(e=iC(e)),e?new aC((e=e.rgb()).r,e.g,e.b,e.opacity):new aC}function rC(e,t,i,o){return 1===arguments.length?sC(e):new aC(e,t,i,null==o?1:o)}function aC(e,t,i,o){this.r=+e,this.g=+t,this.b=+i,this.opacity=+o}function lC(){return`#${uC(this.r)}${uC(this.g)}${uC(this.b)}`}function cC(){const e=dC(this.opacity)
7478
- return`${1===e?"rgb(":"rgba("}${hC(this.r)}, ${hC(this.g)}, ${hC(this.b)}${1===e?")":`, ${e})`}`}function dC(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function hC(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function uC(e){return((e=hC(e))<16?"0":"")+e.toString(16)}function pC(e,t,i,o){return o<=0?e=t=i=NaN:i<=0||i>=1?e=t=NaN:t<=0&&(e=NaN),new vC(e,t,i,o)}function gC(e){if(e instanceof vC)return new vC(e.h,e.s,e.l,e.opacity)
7479
- if(e instanceof z$||(e=iC(e)),!e)return new vC
7480
- if(e instanceof vC)return e
7483
+ return i}function B$(){}var N$=.7,Z$=1/N$,q$="\\s*([+-]?\\d+)\\s*",U$="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",j$="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",G$=/^#([0-9a-f]{3,8})$/,W$=new RegExp(`^rgb\\(${q$},${q$},${q$}\\)$`),K$=new RegExp(`^rgb\\(${j$},${j$},${j$}\\)$`),X$=new RegExp(`^rgba\\(${q$},${q$},${q$},${U$}\\)$`),Y$=new RegExp(`^rgba\\(${j$},${j$},${j$},${U$}\\)$`),Q$=new RegExp(`^hsl\\(${U$},${j$},${j$}\\)$`),J$=new RegExp(`^hsla\\(${U$},${j$},${j$},${U$}\\)$`),eC={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074}
7484
+ function tC(){return this.rgb().formatHex()}function iC(){return this.rgb().formatRgb()}function oC(e){var t,i
7485
+ return e=(e+"").trim().toLowerCase(),(t=G$.exec(e))?(i=t[1].length,t=parseInt(t[1],16),6===i?nC(t):3===i?new lC(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===i?sC(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===i?sC(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=W$.exec(e))?new lC(t[1],t[2],t[3],1):(t=K$.exec(e))?new lC(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=X$.exec(e))?sC(t[1],t[2],t[3],t[4]):(t=Y$.exec(e))?sC(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Q$.exec(e))?gC(t[1],t[2]/100,t[3]/100,1):(t=J$.exec(e))?gC(t[1],t[2]/100,t[3]/100,t[4]):eC.hasOwnProperty(e)?nC(eC[e]):"transparent"===e?new lC(NaN,NaN,NaN,0):null}function nC(e){return new lC(e>>16&255,e>>8&255,255&e,1)}function sC(e,t,i,o){return o<=0&&(e=t=i=NaN),new lC(e,t,i,o)}function rC(e){return e instanceof B$||(e=oC(e)),e?new lC((e=e.rgb()).r,e.g,e.b,e.opacity):new lC}function aC(e,t,i,o){return 1===arguments.length?rC(e):new lC(e,t,i,null==o?1:o)}function lC(e,t,i,o){this.r=+e,this.g=+t,this.b=+i,this.opacity=+o}function cC(){return`#${pC(this.r)}${pC(this.g)}${pC(this.b)}`}function dC(){const e=hC(this.opacity)
7486
+ return`${1===e?"rgb(":"rgba("}${uC(this.r)}, ${uC(this.g)}, ${uC(this.b)}${1===e?")":`, ${e})`}`}function hC(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function uC(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function pC(e){return((e=uC(e))<16?"0":"")+e.toString(16)}function gC(e,t,i,o){return o<=0?e=t=i=NaN:i<=0||i>=1?e=t=NaN:t<=0&&(e=NaN),new mC(e,t,i,o)}function vC(e){if(e instanceof mC)return new mC(e.h,e.s,e.l,e.opacity)
7487
+ if(e instanceof B$||(e=oC(e)),!e)return new mC
7488
+ if(e instanceof mC)return e
7481
7489
  var t=(e=e.rgb()).r/255,i=e.g/255,o=e.b/255,n=Math.min(t,i,o),s=Math.max(t,i,o),r=NaN,a=s-n,l=(s+n)/2
7482
- return a?(r=t===s?(i-o)/a+6*(i<o):i===s?(o-t)/a+2:(t-i)/a+4,a/=l<.5?s+n:2-s-n,r*=60):a=l>0&&l<1?0:r,new vC(r,a,l,e.opacity)}function vC(e,t,i,o){this.h=+e,this.s=+t,this.l=+i,this.opacity=+o}function mC(e){return(e=(e||0)%360)<0?e+360:e}function fC(e){return Math.max(0,Math.min(1,e||0))}function bC(e,t,i){return 255*(e<60?t+(i-t)*e/60:e<180?i:e<240?t+(i-t)*(240-e)/60:t)}D$(z$,iC,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:eC,formatHex:eC,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return gC(this).formatHsl()},formatRgb:tC,toString:tC}),D$(aC,rC,L$(z$,{brighter(e){return e=null==e?N$:Math.pow(N$,e),new aC(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?B$:Math.pow(B$,e),new aC(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new aC(hC(this.r),hC(this.g),hC(this.b),dC(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:lC,formatHex:lC,formatHex8:function(){return`#${uC(this.r)}${uC(this.g)}${uC(this.b)}${uC(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:cC,toString:cC})),D$(vC,(function(e,t,i,o){return 1===arguments.length?gC(e):new vC(e,t,i,null==o?1:o)}),L$(z$,{brighter(e){return e=null==e?N$:Math.pow(N$,e),new vC(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?B$:Math.pow(B$,e),new vC(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,i=this.l,o=i+(i<.5?i:1-i)*t,n=2*i-o
7483
- return new aC(bC(e>=240?e-240:e+120,n,o),bC(e,n,o),bC(e<120?e+240:e-120,n,o),this.opacity)},clamp(){return new vC(mC(this.h),fC(this.s),fC(this.l),dC(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=dC(this.opacity)
7484
- return`${1===e?"hsl(":"hsla("}${mC(this.h)}, ${100*fC(this.s)}%, ${100*fC(this.l)}%${1===e?")":`, ${e})`}`}}))
7485
- var wC=e=>()=>e
7486
- function xC(e){return 1==(e=+e)?yC:function(t,i){return i-t?function(e,t,i){return e=Math.pow(e,i),t=Math.pow(t,i)-e,i=1/i,function(o){return Math.pow(e+o*t,i)}}(t,i,e):wC(isNaN(t)?i:t)}}function yC(e,t){var i=t-e
7487
- return i?function(e,t){return function(i){return e+i*t}}(e,i):wC(isNaN(e)?t:e)}var $C=function e(t){var i=xC(t)
7488
- function o(e,t){var o=i((e=rC(e)).r,(t=rC(t)).r),n=i(e.g,t.g),s=i(e.b,t.b),r=yC(e.opacity,t.opacity)
7490
+ return a?(r=t===s?(i-o)/a+6*(i<o):i===s?(o-t)/a+2:(t-i)/a+4,a/=l<.5?s+n:2-s-n,r*=60):a=l>0&&l<1?0:r,new mC(r,a,l,e.opacity)}function mC(e,t,i,o){this.h=+e,this.s=+t,this.l=+i,this.opacity=+o}function fC(e){return(e=(e||0)%360)<0?e+360:e}function bC(e){return Math.max(0,Math.min(1,e||0))}function wC(e,t,i){return 255*(e<60?t+(i-t)*e/60:e<180?i:e<240?t+(i-t)*(240-e)/60:t)}L$(B$,oC,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:tC,formatHex:tC,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return vC(this).formatHsl()},formatRgb:iC,toString:iC}),L$(lC,aC,z$(B$,{brighter(e){return e=null==e?Z$:Math.pow(Z$,e),new lC(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?N$:Math.pow(N$,e),new lC(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new lC(uC(this.r),uC(this.g),uC(this.b),hC(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:cC,formatHex:cC,formatHex8:function(){return`#${pC(this.r)}${pC(this.g)}${pC(this.b)}${pC(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:dC,toString:dC})),L$(mC,(function(e,t,i,o){return 1===arguments.length?vC(e):new mC(e,t,i,null==o?1:o)}),z$(B$,{brighter(e){return e=null==e?Z$:Math.pow(Z$,e),new mC(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?N$:Math.pow(N$,e),new mC(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,i=this.l,o=i+(i<.5?i:1-i)*t,n=2*i-o
7491
+ return new lC(wC(e>=240?e-240:e+120,n,o),wC(e,n,o),wC(e<120?e+240:e-120,n,o),this.opacity)},clamp(){return new mC(fC(this.h),bC(this.s),bC(this.l),hC(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=hC(this.opacity)
7492
+ return`${1===e?"hsl(":"hsla("}${fC(this.h)}, ${100*bC(this.s)}%, ${100*bC(this.l)}%${1===e?")":`, ${e})`}`}}))
7493
+ var xC=e=>()=>e
7494
+ function yC(e){return 1==(e=+e)?$C:function(t,i){return i-t?function(e,t,i){return e=Math.pow(e,i),t=Math.pow(t,i)-e,i=1/i,function(o){return Math.pow(e+o*t,i)}}(t,i,e):xC(isNaN(t)?i:t)}}function $C(e,t){var i=t-e
7495
+ return i?function(e,t){return function(i){return e+i*t}}(e,i):xC(isNaN(e)?t:e)}var CC=function e(t){var i=yC(t)
7496
+ function o(e,t){var o=i((e=aC(e)).r,(t=aC(t)).r),n=i(e.g,t.g),s=i(e.b,t.b),r=$C(e.opacity,t.opacity)
7489
7497
  return function(t){return e.r=o(t),e.g=n(t),e.b=s(t),e.opacity=r(t),e+""}}return o.gamma=e,o}(1)
7490
- function CC(e,t){t||(t=[])
7498
+ function kC(e,t){t||(t=[])
7491
7499
  var i,o=e?Math.min(t.length,e.length):0,n=t.slice()
7492
7500
  return function(s){for(i=0;i<o;++i)n[i]=e[i]*(1-s)+t[i]*s
7493
- return n}}function kC(e,t){var i,o=t?t.length:0,n=e?Math.min(o,e.length):0,s=new Array(n),r=new Array(o)
7494
- for(i=0;i<n;++i)s[i]=EC(e[i],t[i])
7501
+ return n}}function SC(e,t){var i,o=t?t.length:0,n=e?Math.min(o,e.length):0,s=new Array(n),r=new Array(o)
7502
+ for(i=0;i<n;++i)s[i]=OC(e[i],t[i])
7495
7503
  for(;i<o;++i)r[i]=t[i]
7496
7504
  return function(e){for(i=0;i<n;++i)r[i]=s[i](e)
7497
- return r}}function SC(e,t){var i=new Date
7498
- return e=+e,t=+t,function(o){return i.setTime(e*(1-o)+t*o),i}}function _C(e,t){return e=+e,t=+t,function(i){return e*(1-i)+t*i}}function IC(e,t){var i,o={},n={}
7499
- for(i in null!==e&&"object"==typeof e||(e={}),null!==t&&"object"==typeof t||(t={}),t)i in e?o[i]=EC(e[i],t[i]):n[i]=t[i]
7505
+ return r}}function _C(e,t){var i=new Date
7506
+ return e=+e,t=+t,function(o){return i.setTime(e*(1-o)+t*o),i}}function IC(e,t){return e=+e,t=+t,function(i){return e*(1-i)+t*i}}function RC(e,t){var i,o={},n={}
7507
+ for(i in null!==e&&"object"==typeof e||(e={}),null!==t&&"object"==typeof t||(t={}),t)i in e?o[i]=OC(e[i],t[i]):n[i]=t[i]
7500
7508
  return function(e){for(i in o)n[i]=o[i](e)
7501
- return n}}var RC=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,MC=new RegExp(RC.source,"g")
7502
- function AC(e,t){var i,o,n,s=RC.lastIndex=MC.lastIndex=0,r=-1,a=[],l=[]
7503
- for(e+="",t+="";(i=RC.exec(e))&&(o=MC.exec(t));)(n=o.index)>s&&(n=t.slice(s,n),a[r]?a[r]+=n:a[++r]=n),(i=i[0])===(o=o[0])?a[r]?a[r]+=o:a[++r]=o:(a[++r]=null,l.push({i:r,x:_C(i,o)})),s=MC.lastIndex
7509
+ return n}}var MC=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,AC=new RegExp(MC.source,"g")
7510
+ function EC(e,t){var i,o,n,s=MC.lastIndex=AC.lastIndex=0,r=-1,a=[],l=[]
7511
+ for(e+="",t+="";(i=MC.exec(e))&&(o=AC.exec(t));)(n=o.index)>s&&(n=t.slice(s,n),a[r]?a[r]+=n:a[++r]=n),(i=i[0])===(o=o[0])?a[r]?a[r]+=o:a[++r]=o:(a[++r]=null,l.push({i:r,x:IC(i,o)})),s=AC.lastIndex
7504
7512
  return s<t.length&&(n=t.slice(s),a[r]?a[r]+=n:a[++r]=n),a.length<2?l[0]?function(e){return function(t){return e(t)+""}}(l[0].x):function(e){return function(){return e}}(t):(t=l.length,function(e){for(var i,o=0;o<t;++o)a[(i=l[o]).i]=i.x(e)
7505
- return a.join("")})}function EC(e,t){var i,o,n=typeof t
7506
- return null==t||"boolean"===n?wC(t):("number"===n?_C:"string"===n?(i=iC(t))?(t=i,$C):AC:t instanceof iC?$C:t instanceof Date?SC:(o=t,!ArrayBuffer.isView(o)||o instanceof DataView?Array.isArray(t)?kC:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?IC:_C:CC))(e,t)}function OC(e,t){return e=+e,t=+t,function(i){return Math.round(e*(1-i)+t*i)}}var FC,VC=180/Math.PI,HC={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1}
7507
- function PC(e,t,i,o,n,s){var r,a,l
7508
- return(r=Math.sqrt(e*e+t*t))&&(e/=r,t/=r),(l=e*i+t*o)&&(i-=e*l,o-=t*l),(a=Math.sqrt(i*i+o*o))&&(i/=a,o/=a,l/=a),e*o<t*i&&(e=-e,t=-t,l=-l,r=-r),{translateX:n,translateY:s,rotate:Math.atan2(t,e)*VC,skewX:Math.atan(l)*VC,scaleX:r,scaleY:a}}function TC(e,t,i,o){function n(e){return e.length?e.pop()+" ":""}return function(s,r){var a=[],l=[]
7513
+ return a.join("")})}function OC(e,t){var i,o,n=typeof t
7514
+ return null==t||"boolean"===n?xC(t):("number"===n?IC:"string"===n?(i=oC(t))?(t=i,CC):EC:t instanceof oC?CC:t instanceof Date?_C:(o=t,!ArrayBuffer.isView(o)||o instanceof DataView?Array.isArray(t)?SC:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?RC:IC:kC))(e,t)}function FC(e,t){return e=+e,t=+t,function(i){return Math.round(e*(1-i)+t*i)}}var VC,HC=180/Math.PI,PC={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1}
7515
+ function TC(e,t,i,o,n,s){var r,a,l
7516
+ return(r=Math.sqrt(e*e+t*t))&&(e/=r,t/=r),(l=e*i+t*o)&&(i-=e*l,o-=t*l),(a=Math.sqrt(i*i+o*o))&&(i/=a,o/=a,l/=a),e*o<t*i&&(e=-e,t=-t,l=-l,r=-r),{translateX:n,translateY:s,rotate:Math.atan2(t,e)*HC,skewX:Math.atan(l)*HC,scaleX:r,scaleY:a}}function DC(e,t,i,o){function n(e){return e.length?e.pop()+" ":""}return function(s,r){var a=[],l=[]
7509
7517
  return s=e(s),r=e(r),function(e,o,n,s,r,a){if(e!==n||o!==s){var l=r.push("translate(",null,t,null,i)
7510
- a.push({i:l-4,x:_C(e,n)},{i:l-2,x:_C(o,s)})}else(n||s)&&r.push("translate("+n+t+s+i)}(s.translateX,s.translateY,r.translateX,r.translateY,a,l),function(e,t,i,s){e!==t?(e-t>180?t+=360:t-e>180&&(e+=360),s.push({i:i.push(n(i)+"rotate(",null,o)-2,x:_C(e,t)})):t&&i.push(n(i)+"rotate("+t+o)}(s.rotate,r.rotate,a,l),function(e,t,i,s){e!==t?s.push({i:i.push(n(i)+"skewX(",null,o)-2,x:_C(e,t)}):t&&i.push(n(i)+"skewX("+t+o)}(s.skewX,r.skewX,a,l),function(e,t,i,o,s,r){if(e!==i||t!==o){var a=s.push(n(s)+"scale(",null,",",null,")")
7511
- r.push({i:a-4,x:_C(e,i)},{i:a-2,x:_C(t,o)})}else 1===i&&1===o||s.push(n(s)+"scale("+i+","+o+")")}(s.scaleX,s.scaleY,r.scaleX,r.scaleY,a,l),s=r=null,function(e){for(var t,i=-1,o=l.length;++i<o;)a[(t=l[i]).i]=t.x(e)
7512
- return a.join("")}}}var DC=TC((function(e){const t=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(e+"")
7513
- return t.isIdentity?HC:PC(t.a,t.b,t.c,t.d,t.e,t.f)}),"px, ","px)","deg)"),LC=TC((function(e){return null==e?HC:(FC||(FC=document.createElementNS("http://www.w3.org/2000/svg","g")),FC.setAttribute("transform",e),(e=FC.transform.baseVal.consolidate())?PC((e=e.matrix).a,e.b,e.c,e.d,e.e,e.f):HC)}),", ",")",")")
7514
- function zC(e){return((e=Math.exp(e))+1/e)/2}var BC,NC,ZC=function e(t,i,o){function n(e,n){var s,r,a=e[0],l=e[1],c=e[2],d=n[0],h=n[1],u=n[2],p=d-a,g=h-l,v=p*p+g*g
7518
+ a.push({i:l-4,x:IC(e,n)},{i:l-2,x:IC(o,s)})}else(n||s)&&r.push("translate("+n+t+s+i)}(s.translateX,s.translateY,r.translateX,r.translateY,a,l),function(e,t,i,s){e!==t?(e-t>180?t+=360:t-e>180&&(e+=360),s.push({i:i.push(n(i)+"rotate(",null,o)-2,x:IC(e,t)})):t&&i.push(n(i)+"rotate("+t+o)}(s.rotate,r.rotate,a,l),function(e,t,i,s){e!==t?s.push({i:i.push(n(i)+"skewX(",null,o)-2,x:IC(e,t)}):t&&i.push(n(i)+"skewX("+t+o)}(s.skewX,r.skewX,a,l),function(e,t,i,o,s,r){if(e!==i||t!==o){var a=s.push(n(s)+"scale(",null,",",null,")")
7519
+ r.push({i:a-4,x:IC(e,i)},{i:a-2,x:IC(t,o)})}else 1===i&&1===o||s.push(n(s)+"scale("+i+","+o+")")}(s.scaleX,s.scaleY,r.scaleX,r.scaleY,a,l),s=r=null,function(e){for(var t,i=-1,o=l.length;++i<o;)a[(t=l[i]).i]=t.x(e)
7520
+ return a.join("")}}}var LC=DC((function(e){const t=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(e+"")
7521
+ return t.isIdentity?PC:TC(t.a,t.b,t.c,t.d,t.e,t.f)}),"px, ","px)","deg)"),zC=DC((function(e){return null==e?PC:(VC||(VC=document.createElementNS("http://www.w3.org/2000/svg","g")),VC.setAttribute("transform",e),(e=VC.transform.baseVal.consolidate())?TC((e=e.matrix).a,e.b,e.c,e.d,e.e,e.f):PC)}),", ",")",")")
7522
+ function BC(e){return((e=Math.exp(e))+1/e)/2}var NC,ZC,qC=function e(t,i,o){function n(e,n){var s,r,a=e[0],l=e[1],c=e[2],d=n[0],h=n[1],u=n[2],p=d-a,g=h-l,v=p*p+g*g
7515
7523
  if(v<1e-12)r=Math.log(u/c)/t,s=function(e){return[a+e*p,l+e*g,c*Math.exp(t*e*r)]}
7516
7524
  else{var m=Math.sqrt(v),f=(u*u-c*c+o*v)/(2*c*i*m),b=(u*u-c*c-o*v)/(2*u*i*m),w=Math.log(Math.sqrt(f*f+1)-f),x=Math.log(Math.sqrt(b*b+1)-b)
7517
- r=(x-w)/t,s=function(e){var o,n=e*r,s=zC(w),d=c/(i*m)*(s*(o=t*n+w,((o=Math.exp(2*o))-1)/(o+1))-function(e){return((e=Math.exp(e))-1/e)/2}(w))
7518
- return[a+d*p,l+d*g,c*s/zC(t*n+w)]}}return s.duration=1e3*r*t/Math.SQRT2,s}return n.rho=function(t){var i=Math.max(.001,+t),o=i*i
7519
- return e(i,o,o*o)},n}(Math.SQRT2,2,4),qC=0,UC=0,jC=0,GC=0,WC=0,KC=0,XC="object"==typeof performance&&performance.now?performance:Date,YC="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)}
7520
- function QC(){return WC||(YC(JC),WC=XC.now()+KC)}function JC(){WC=0}function ek(){this._call=this._time=this._next=null}function tk(e,t,i){var o=new ek
7521
- return o.restart(e,t,i),o}function ik(){WC=(GC=XC.now())+KC,qC=UC=0
7522
- try{!function(){QC(),++qC
7523
- for(var e,t=BC;t;)(e=WC-t._time)>=0&&t._call.call(void 0,e),t=t._next;--qC}()}finally{qC=0,function(){var e,t,i=BC,o=1/0
7524
- for(;i;)i._call?(o>i._time&&(o=i._time),e=i,i=i._next):(t=i._next,i._next=null,i=e?e._next=t:BC=t)
7525
- NC=e,nk(o)}(),WC=0}}function ok(){var e=XC.now(),t=e-GC
7526
- t>1e3&&(KC-=t,GC=e)}function nk(e){qC||(UC&&(UC=clearTimeout(UC)),e-WC>24?(e<1/0&&(UC=setTimeout(ik,e-XC.now()-KC)),jC&&(jC=clearInterval(jC))):(jC||(GC=XC.now(),jC=setInterval(ok,1e3)),qC=1,YC(ik)))}function sk(e,t,i){var o=new ek
7527
- return t=null==t?0:+t,o.restart((i=>{o.stop(),e(i+t)}),t,i),o}ek.prototype=tk.prototype={constructor:ek,restart:function(e,t,i){if("function"!=typeof e)throw new TypeError("callback is not a function")
7528
- i=(null==i?QC():+i)+(null==t?0:+t),this._next||NC===this||(NC?NC._next=this:BC=this,NC=this),this._call=e,this._time=i,nk()},stop:function(){this._call&&(this._call=null,this._time=1/0,nk())}}
7529
- var rk=py("start","end","cancel","interrupt"),ak=[]
7530
- function lk(e,t,i,o,n,s){var r=e.__transition
7525
+ r=(x-w)/t,s=function(e){var o,n=e*r,s=BC(w),d=c/(i*m)*(s*(o=t*n+w,((o=Math.exp(2*o))-1)/(o+1))-function(e){return((e=Math.exp(e))-1/e)/2}(w))
7526
+ return[a+d*p,l+d*g,c*s/BC(t*n+w)]}}return s.duration=1e3*r*t/Math.SQRT2,s}return n.rho=function(t){var i=Math.max(.001,+t),o=i*i
7527
+ return e(i,o,o*o)},n}(Math.SQRT2,2,4),UC=0,jC=0,GC=0,WC=0,KC=0,XC=0,YC="object"==typeof performance&&performance.now?performance:Date,QC="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)}
7528
+ function JC(){return KC||(QC(ek),KC=YC.now()+XC)}function ek(){KC=0}function tk(){this._call=this._time=this._next=null}function ik(e,t,i){var o=new tk
7529
+ return o.restart(e,t,i),o}function ok(){KC=(WC=YC.now())+XC,UC=jC=0
7530
+ try{!function(){JC(),++UC
7531
+ for(var e,t=NC;t;)(e=KC-t._time)>=0&&t._call.call(void 0,e),t=t._next;--UC}()}finally{UC=0,function(){var e,t,i=NC,o=1/0
7532
+ for(;i;)i._call?(o>i._time&&(o=i._time),e=i,i=i._next):(t=i._next,i._next=null,i=e?e._next=t:NC=t)
7533
+ ZC=e,sk(o)}(),KC=0}}function nk(){var e=YC.now(),t=e-WC
7534
+ t>1e3&&(XC-=t,WC=e)}function sk(e){UC||(jC&&(jC=clearTimeout(jC)),e-KC>24?(e<1/0&&(jC=setTimeout(ok,e-YC.now()-XC)),GC&&(GC=clearInterval(GC))):(GC||(WC=YC.now(),GC=setInterval(nk,1e3)),UC=1,QC(ok)))}function rk(e,t,i){var o=new tk
7535
+ return t=null==t?0:+t,o.restart((i=>{o.stop(),e(i+t)}),t,i),o}tk.prototype=ik.prototype={constructor:tk,restart:function(e,t,i){if("function"!=typeof e)throw new TypeError("callback is not a function")
7536
+ i=(null==i?JC():+i)+(null==t?0:+t),this._next||ZC===this||(ZC?ZC._next=this:NC=this,ZC=this),this._call=e,this._time=i,sk()},stop:function(){this._call&&(this._call=null,this._time=1/0,sk())}}
7537
+ var ak=gy("start","end","cancel","interrupt"),lk=[]
7538
+ function ck(e,t,i,o,n,s){var r=e.__transition
7531
7539
  if(r){if(i in r)return}else e.__transition={}
7532
7540
  !function(e,t,i){var o,n=e.__transition
7533
7541
  function s(e){i.state=1,i.timer.restart(r,i.delay,i.time),i.delay<=e&&r(e-i.delay)}function r(s){var c,d,h,u
7534
7542
  if(1!==i.state)return l()
7535
- for(c in n)if((u=n[c]).name===i.name){if(3===u.state)return sk(r)
7536
- 4===u.state?(u.state=6,u.timer.stop(),u.on.call("interrupt",e,e.__data__,u.index,u.group),delete n[c]):+c<t&&(u.state=6,u.timer.stop(),u.on.call("cancel",e,e.__data__,u.index,u.group),delete n[c])}if(sk((function(){3===i.state&&(i.state=4,i.timer.restart(a,i.delay,i.time),a(s))})),i.state=2,i.on.call("start",e,e.__data__,i.index,i.group),2===i.state){for(i.state=3,o=new Array(h=i.tween.length),c=0,d=-1;c<h;++c)(u=i.tween[c].value.call(e,e.__data__,i.index,i.group))&&(o[++d]=u)
7543
+ for(c in n)if((u=n[c]).name===i.name){if(3===u.state)return rk(r)
7544
+ 4===u.state?(u.state=6,u.timer.stop(),u.on.call("interrupt",e,e.__data__,u.index,u.group),delete n[c]):+c<t&&(u.state=6,u.timer.stop(),u.on.call("cancel",e,e.__data__,u.index,u.group),delete n[c])}if(rk((function(){3===i.state&&(i.state=4,i.timer.restart(a,i.delay,i.time),a(s))})),i.state=2,i.on.call("start",e,e.__data__,i.index,i.group),2===i.state){for(i.state=3,o=new Array(h=i.tween.length),c=0,d=-1;c<h;++c)(u=i.tween[c].value.call(e,e.__data__,i.index,i.group))&&(o[++d]=u)
7537
7545
  o.length=d+1}}function a(t){for(var n=t<i.duration?i.ease.call(null,t/i.duration):(i.timer.restart(l),i.state=5,1),s=-1,r=o.length;++s<r;)o[s].call(e,n)
7538
7546
  5===i.state&&(i.on.call("end",e,e.__data__,i.index,i.group),l())}function l(){for(var o in i.state=6,i.timer.stop(),delete n[t],n)return
7539
- delete e.__transition}n[t]=i,i.timer=tk(s,0,i.time)}(e,i,{name:t,index:o,group:n,on:rk,tween:ak,time:s.time,delay:s.delay,duration:s.duration,ease:s.ease,timer:null,state:0})}function ck(e,t){var i=hk(e,t)
7547
+ delete e.__transition}n[t]=i,i.timer=ik(s,0,i.time)}(e,i,{name:t,index:o,group:n,on:ak,tween:lk,time:s.time,delay:s.delay,duration:s.duration,ease:s.ease,timer:null,state:0})}function dk(e,t){var i=uk(e,t)
7540
7548
  if(i.state>0)throw new Error("too late; already scheduled")
7541
- return i}function dk(e,t){var i=hk(e,t)
7549
+ return i}function hk(e,t){var i=uk(e,t)
7542
7550
  if(i.state>3)throw new Error("too late; already running")
7543
- return i}function hk(e,t){var i=e.__transition
7551
+ return i}function uk(e,t){var i=e.__transition
7544
7552
  if(!i||!(i=i[t]))throw new Error("transition not found")
7545
- return i}function uk(e,t){var i,o,n,s=e.__transition,r=!0
7553
+ return i}function pk(e,t){var i,o,n,s=e.__transition,r=!0
7546
7554
  if(s){for(n in t=null==t?null:t+"",s)(i=s[n]).name===t?(o=i.state>2&&i.state<5,i.state=6,i.timer.stop(),i.on.call(o?"interrupt":"cancel",e,e.__data__,i.index,i.group),delete s[n]):r=!1
7547
- r&&delete e.__transition}}function pk(e,t){var i,o
7548
- return function(){var n=dk(this,e),s=n.tween
7555
+ r&&delete e.__transition}}function gk(e,t){var i,o
7556
+ return function(){var n=hk(this,e),s=n.tween
7549
7557
  if(s!==i)for(var r=0,a=(o=i=s).length;r<a;++r)if(o[r].name===t){(o=o.slice()).splice(r,1)
7550
- break}n.tween=o}}function gk(e,t,i){var o,n
7558
+ break}n.tween=o}}function vk(e,t,i){var o,n
7551
7559
  if("function"!=typeof i)throw new Error
7552
- return function(){var s=dk(this,e),r=s.tween
7560
+ return function(){var s=hk(this,e),r=s.tween
7553
7561
  if(r!==o){n=(o=r).slice()
7554
7562
  for(var a={name:t,value:i},l=0,c=n.length;l<c;++l)if(n[l].name===t){n[l]=a
7555
- break}l===c&&n.push(a)}s.tween=n}}function vk(e,t,i){var o=e._id
7556
- return e.each((function(){var e=dk(this,o);(e.value||(e.value={}))[t]=i.apply(this,arguments)})),function(e){return hk(e,o).value[t]}}function mk(e,t){var i
7557
- return("number"==typeof t?_C:t instanceof iC?$C:(i=iC(t))?(t=i,$C):AC)(e,t)}function fk(e){return function(){this.removeAttribute(e)}}function bk(e){return function(){this.removeAttributeNS(e.space,e.local)}}function wk(e,t,i){var o,n,s=i+""
7563
+ break}l===c&&n.push(a)}s.tween=n}}function mk(e,t,i){var o=e._id
7564
+ return e.each((function(){var e=hk(this,o);(e.value||(e.value={}))[t]=i.apply(this,arguments)})),function(e){return uk(e,o).value[t]}}function fk(e,t){var i
7565
+ return("number"==typeof t?IC:t instanceof oC?CC:(i=oC(t))?(t=i,CC):EC)(e,t)}function bk(e){return function(){this.removeAttribute(e)}}function wk(e){return function(){this.removeAttributeNS(e.space,e.local)}}function xk(e,t,i){var o,n,s=i+""
7558
7566
  return function(){var r=this.getAttribute(e)
7559
- return r===s?null:r===o?n:n=t(o=r,i)}}function xk(e,t,i){var o,n,s=i+""
7567
+ return r===s?null:r===o?n:n=t(o=r,i)}}function yk(e,t,i){var o,n,s=i+""
7560
7568
  return function(){var r=this.getAttributeNS(e.space,e.local)
7561
- return r===s?null:r===o?n:n=t(o=r,i)}}function yk(e,t,i){var o,n,s
7569
+ return r===s?null:r===o?n:n=t(o=r,i)}}function $k(e,t,i){var o,n,s
7562
7570
  return function(){var r,a,l=i(this)
7563
7571
  if(null!=l)return(r=this.getAttribute(e))===(a=l+"")?null:r===o&&a===n?s:(n=a,s=t(o=r,l))
7564
- this.removeAttribute(e)}}function $k(e,t,i){var o,n,s
7572
+ this.removeAttribute(e)}}function Ck(e,t,i){var o,n,s
7565
7573
  return function(){var r,a,l=i(this)
7566
7574
  if(null!=l)return(r=this.getAttributeNS(e.space,e.local))===(a=l+"")?null:r===o&&a===n?s:(n=a,s=t(o=r,l))
7567
- this.removeAttributeNS(e.space,e.local)}}function Ck(e,t){return function(i){this.setAttribute(e,t.call(this,i))}}function kk(e,t){return function(i){this.setAttributeNS(e.space,e.local,t.call(this,i))}}function Sk(e,t){var i,o
7575
+ this.removeAttributeNS(e.space,e.local)}}function kk(e,t){return function(i){this.setAttribute(e,t.call(this,i))}}function Sk(e,t){return function(i){this.setAttributeNS(e.space,e.local,t.call(this,i))}}function _k(e,t){var i,o
7568
7576
  function n(){var n=t.apply(this,arguments)
7569
- return n!==o&&(i=(o=n)&&kk(e,n)),i}return n._value=t,n}function _k(e,t){var i,o
7577
+ return n!==o&&(i=(o=n)&&Sk(e,n)),i}return n._value=t,n}function Ik(e,t){var i,o
7570
7578
  function n(){var n=t.apply(this,arguments)
7571
- return n!==o&&(i=(o=n)&&Ck(e,n)),i}return n._value=t,n}function Ik(e,t){return function(){ck(this,e).delay=+t.apply(this,arguments)}}function Rk(e,t){return t=+t,function(){ck(this,e).delay=t}}function Mk(e,t){return function(){dk(this,e).duration=+t.apply(this,arguments)}}function Ak(e,t){return t=+t,function(){dk(this,e).duration=t}}function Ek(e,t){if("function"!=typeof t)throw new Error
7572
- return function(){dk(this,e).ease=t}}function Ok(e,t,i){var o,n,s=function(e){return(e+"").trim().split(/^|\s+/).every((function(e){var t=e.indexOf(".")
7573
- return t>=0&&(e=e.slice(0,t)),!e||"start"===e}))}(t)?ck:dk
7579
+ return n!==o&&(i=(o=n)&&kk(e,n)),i}return n._value=t,n}function Rk(e,t){return function(){dk(this,e).delay=+t.apply(this,arguments)}}function Mk(e,t){return t=+t,function(){dk(this,e).delay=t}}function Ak(e,t){return function(){hk(this,e).duration=+t.apply(this,arguments)}}function Ek(e,t){return t=+t,function(){hk(this,e).duration=t}}function Ok(e,t){if("function"!=typeof t)throw new Error
7580
+ return function(){hk(this,e).ease=t}}function Fk(e,t,i){var o,n,s=function(e){return(e+"").trim().split(/^|\s+/).every((function(e){var t=e.indexOf(".")
7581
+ return t>=0&&(e=e.slice(0,t)),!e||"start"===e}))}(t)?dk:hk
7574
7582
  return function(){var r=s(this,e),a=r.on
7575
- a!==o&&(n=(o=a).copy()).on(t,i),r.on=n}}var Fk=E$.prototype.constructor
7576
- function Vk(e){return function(){this.style.removeProperty(e)}}function Hk(e,t,i){return function(o){this.style.setProperty(e,t.call(this,o),i)}}function Pk(e,t,i){var o,n
7583
+ a!==o&&(n=(o=a).copy()).on(t,i),r.on=n}}var Vk=O$.prototype.constructor
7584
+ function Hk(e){return function(){this.style.removeProperty(e)}}function Pk(e,t,i){return function(o){this.style.setProperty(e,t.call(this,o),i)}}function Tk(e,t,i){var o,n
7577
7585
  function s(){var s=t.apply(this,arguments)
7578
- return s!==n&&(o=(n=s)&&Hk(e,s,i)),o}return s._value=t,s}function Tk(e){return function(t){this.textContent=e.call(this,t)}}function Dk(e){var t,i
7586
+ return s!==n&&(o=(n=s)&&Pk(e,s,i)),o}return s._value=t,s}function Dk(e){return function(t){this.textContent=e.call(this,t)}}function Lk(e){var t,i
7579
7587
  function o(){var o=e.apply(this,arguments)
7580
- return o!==i&&(t=(i=o)&&Tk(o)),t}return o._value=e,o}var Lk=0
7581
- function zk(e,t,i,o){this._groups=e,this._parents=t,this._name=i,this._id=o}function Bk(){return++Lk}var Nk=E$.prototype
7582
- zk.prototype={constructor:zk,select:function(e){var t=this._name,i=this._id
7583
- "function"!=typeof e&&(e=Sy(e))
7584
- for(var o=this._groups,n=o.length,s=new Array(n),r=0;r<n;++r)for(var a,l,c=o[r],d=c.length,h=s[r]=new Array(d),u=0;u<d;++u)(a=c[u])&&(l=e.call(a,a.__data__,u,c))&&("__data__"in a&&(l.__data__=a.__data__),h[u]=l,lk(h[u],t,i,u,h,hk(a,i)))
7585
- return new zk(s,this._parents,t,i)},selectAll:function(e){var t=this._name,i=this._id
7586
- "function"!=typeof e&&(e=Ry(e))
7587
- for(var o=this._groups,n=o.length,s=[],r=[],a=0;a<n;++a)for(var l,c=o[a],d=c.length,h=0;h<d;++h)if(l=c[h]){for(var u,p=e.call(l,l.__data__,h,c),g=hk(l,i),v=0,m=p.length;v<m;++v)(u=p[v])&&lk(u,t,i,v,p,g)
7588
- s.push(p),r.push(l)}return new zk(s,r,t,i)},selectChild:Nk.selectChild,selectChildren:Nk.selectChildren,filter:function(e){"function"!=typeof e&&(e=My(e))
7588
+ return o!==i&&(t=(i=o)&&Dk(o)),t}return o._value=e,o}var zk=0
7589
+ function Bk(e,t,i,o){this._groups=e,this._parents=t,this._name=i,this._id=o}function Nk(){return++zk}var Zk=O$.prototype
7590
+ Bk.prototype={constructor:Bk,select:function(e){var t=this._name,i=this._id
7591
+ "function"!=typeof e&&(e=_y(e))
7592
+ for(var o=this._groups,n=o.length,s=new Array(n),r=0;r<n;++r)for(var a,l,c=o[r],d=c.length,h=s[r]=new Array(d),u=0;u<d;++u)(a=c[u])&&(l=e.call(a,a.__data__,u,c))&&("__data__"in a&&(l.__data__=a.__data__),h[u]=l,ck(h[u],t,i,u,h,uk(a,i)))
7593
+ return new Bk(s,this._parents,t,i)},selectAll:function(e){var t=this._name,i=this._id
7594
+ "function"!=typeof e&&(e=My(e))
7595
+ for(var o=this._groups,n=o.length,s=[],r=[],a=0;a<n;++a)for(var l,c=o[a],d=c.length,h=0;h<d;++h)if(l=c[h]){for(var u,p=e.call(l,l.__data__,h,c),g=uk(l,i),v=0,m=p.length;v<m;++v)(u=p[v])&&ck(u,t,i,v,p,g)
7596
+ s.push(p),r.push(l)}return new Bk(s,r,t,i)},selectChild:Zk.selectChild,selectChildren:Zk.selectChildren,filter:function(e){"function"!=typeof e&&(e=Ay(e))
7589
7597
  for(var t=this._groups,i=t.length,o=new Array(i),n=0;n<i;++n)for(var s,r=t[n],a=r.length,l=o[n]=[],c=0;c<a;++c)(s=r[c])&&e.call(s,s.__data__,c,r)&&l.push(s)
7590
- return new zk(o,this._parents,this._name,this._id)},merge:function(e){if(e._id!==this._id)throw new Error
7598
+ return new Bk(o,this._parents,this._name,this._id)},merge:function(e){if(e._id!==this._id)throw new Error
7591
7599
  for(var t=this._groups,i=e._groups,o=t.length,n=i.length,s=Math.min(o,n),r=new Array(o),a=0;a<s;++a)for(var l,c=t[a],d=i[a],h=c.length,u=r[a]=new Array(h),p=0;p<h;++p)(l=c[p]||d[p])&&(u[p]=l)
7592
7600
  for(;a<o;++a)r[a]=t[a]
7593
- return new zk(r,this._parents,this._name,this._id)},selection:function(){return new Fk(this._groups,this._parents)},transition:function(){for(var e=this._name,t=this._id,i=Bk(),o=this._groups,n=o.length,s=0;s<n;++s)for(var r,a=o[s],l=a.length,c=0;c<l;++c)if(r=a[c]){var d=hk(r,t)
7594
- lk(r,e,i,c,a,{time:d.time+d.delay+d.duration,delay:0,duration:d.duration,ease:d.ease})}return new zk(o,this._parents,e,i)},call:Nk.call,nodes:Nk.nodes,node:Nk.node,size:Nk.size,empty:Nk.empty,each:Nk.each,on:function(e,t){var i=this._id
7595
- return arguments.length<2?hk(this.node(),i).on.on(e):this.each(Ok(i,e,t))},attr:function(e,t){var i=xy(e),o="transform"===i?LC:mk
7596
- return this.attrTween(e,"function"==typeof t?(i.local?$k:yk)(i,o,vk(this,"attr."+e,t)):null==t?(i.local?bk:fk)(i):(i.local?xk:wk)(i,o,t))},attrTween:function(e,t){var i="attr."+e
7601
+ return new Bk(r,this._parents,this._name,this._id)},selection:function(){return new Vk(this._groups,this._parents)},transition:function(){for(var e=this._name,t=this._id,i=Nk(),o=this._groups,n=o.length,s=0;s<n;++s)for(var r,a=o[s],l=a.length,c=0;c<l;++c)if(r=a[c]){var d=uk(r,t)
7602
+ ck(r,e,i,c,a,{time:d.time+d.delay+d.duration,delay:0,duration:d.duration,ease:d.ease})}return new Bk(o,this._parents,e,i)},call:Zk.call,nodes:Zk.nodes,node:Zk.node,size:Zk.size,empty:Zk.empty,each:Zk.each,on:function(e,t){var i=this._id
7603
+ return arguments.length<2?uk(this.node(),i).on.on(e):this.each(Fk(i,e,t))},attr:function(e,t){var i=yy(e),o="transform"===i?zC:fk
7604
+ return this.attrTween(e,"function"==typeof t?(i.local?Ck:$k)(i,o,mk(this,"attr."+e,t)):null==t?(i.local?wk:bk)(i):(i.local?yk:xk)(i,o,t))},attrTween:function(e,t){var i="attr."+e
7597
7605
  if(arguments.length<2)return(i=this.tween(i))&&i._value
7598
7606
  if(null==t)return this.tween(i,null)
7599
7607
  if("function"!=typeof t)throw new Error
7600
- var o=xy(e)
7601
- return this.tween(i,(o.local?Sk:_k)(o,t))},style:function(e,t,i){var o="transform"==(e+="")?DC:mk
7608
+ var o=yy(e)
7609
+ return this.tween(i,(o.local?_k:Ik)(o,t))},style:function(e,t,i){var o="transform"==(e+="")?LC:fk
7602
7610
  return null==t?this.styleTween(e,function(e,t){var i,o,n
7603
- return function(){var s=Jy(this,e),r=(this.style.removeProperty(e),Jy(this,e))
7604
- return s===r?null:s===i&&r===o?n:n=t(i=s,o=r)}}(e,o)).on("end.style."+e,Vk(e)):"function"==typeof t?this.styleTween(e,function(e,t,i){var o,n,s
7605
- return function(){var r=Jy(this,e),a=i(this),l=a+""
7606
- return null==a&&(this.style.removeProperty(e),l=a=Jy(this,e)),r===l?null:r===o&&l===n?s:(n=l,s=t(o=r,a))}}(e,o,vk(this,"style."+e,t))).each(function(e,t){var i,o,n,s,r="style."+t,a="end."+r
7607
- return function(){var l=dk(this,e),c=l.on,d=null==l.value[r]?s||(s=Vk(t)):void 0
7611
+ return function(){var s=e$(this,e),r=(this.style.removeProperty(e),e$(this,e))
7612
+ return s===r?null:s===i&&r===o?n:n=t(i=s,o=r)}}(e,o)).on("end.style."+e,Hk(e)):"function"==typeof t?this.styleTween(e,function(e,t,i){var o,n,s
7613
+ return function(){var r=e$(this,e),a=i(this),l=a+""
7614
+ return null==a&&(this.style.removeProperty(e),l=a=e$(this,e)),r===l?null:r===o&&l===n?s:(n=l,s=t(o=r,a))}}(e,o,mk(this,"style."+e,t))).each(function(e,t){var i,o,n,s,r="style."+t,a="end."+r
7615
+ return function(){var l=hk(this,e),c=l.on,d=null==l.value[r]?s||(s=Hk(t)):void 0
7608
7616
  c===i&&n===d||(o=(i=c).copy()).on(a,n=d),l.on=o}}(this._id,e)):this.styleTween(e,function(e,t,i){var o,n,s=i+""
7609
- return function(){var r=Jy(this,e)
7617
+ return function(){var r=e$(this,e)
7610
7618
  return r===s?null:r===o?n:n=t(o=r,i)}}(e,o,t),i).on("end.style."+e,null)},styleTween:function(e,t,i){var o="style."+(e+="")
7611
7619
  if(arguments.length<2)return(o=this.tween(o))&&o._value
7612
7620
  if(null==t)return this.tween(o,null)
7613
7621
  if("function"!=typeof t)throw new Error
7614
- return this.tween(o,Pk(e,t,null==i?"":i))},text:function(e){return this.tween("text","function"==typeof e?function(e){return function(){var t=e(this)
7615
- this.textContent=null==t?"":t}}(vk(this,"text",e)):function(e){return function(){this.textContent=e}}(null==e?"":e+""))},textTween:function(e){var t="text"
7622
+ return this.tween(o,Tk(e,t,null==i?"":i))},text:function(e){return this.tween("text","function"==typeof e?function(e){return function(){var t=e(this)
7623
+ this.textContent=null==t?"":t}}(mk(this,"text",e)):function(e){return function(){this.textContent=e}}(null==e?"":e+""))},textTween:function(e){var t="text"
7616
7624
  if(arguments.length<1)return(t=this.tween(t))&&t._value
7617
7625
  if(null==e)return this.tween(t,null)
7618
7626
  if("function"!=typeof e)throw new Error
7619
- return this.tween(t,Dk(e))},remove:function(){return this.on("end.remove",function(e){return function(){var t=this.parentNode
7627
+ return this.tween(t,Lk(e))},remove:function(){return this.on("end.remove",function(e){return function(){var t=this.parentNode
7620
7628
  for(var i in this.__transition)if(+i!==e)return
7621
7629
  t&&t.removeChild(this)}}(this._id))},tween:function(e,t){var i=this._id
7622
- if(e+="",arguments.length<2){for(var o,n=hk(this.node(),i).tween,s=0,r=n.length;s<r;++s)if((o=n[s]).name===e)return o.value
7623
- return null}return this.each((null==t?pk:gk)(i,e,t))},delay:function(e){var t=this._id
7624
- return arguments.length?this.each(("function"==typeof e?Ik:Rk)(t,e)):hk(this.node(),t).delay},duration:function(e){var t=this._id
7625
- return arguments.length?this.each(("function"==typeof e?Mk:Ak)(t,e)):hk(this.node(),t).duration},ease:function(e){var t=this._id
7626
- return arguments.length?this.each(Ek(t,e)):hk(this.node(),t).ease},easeVarying:function(e){if("function"!=typeof e)throw new Error
7630
+ if(e+="",arguments.length<2){for(var o,n=uk(this.node(),i).tween,s=0,r=n.length;s<r;++s)if((o=n[s]).name===e)return o.value
7631
+ return null}return this.each((null==t?gk:vk)(i,e,t))},delay:function(e){var t=this._id
7632
+ return arguments.length?this.each(("function"==typeof e?Rk:Mk)(t,e)):uk(this.node(),t).delay},duration:function(e){var t=this._id
7633
+ return arguments.length?this.each(("function"==typeof e?Ak:Ek)(t,e)):uk(this.node(),t).duration},ease:function(e){var t=this._id
7634
+ return arguments.length?this.each(Ok(t,e)):uk(this.node(),t).ease},easeVarying:function(e){if("function"!=typeof e)throw new Error
7627
7635
  return this.each(function(e,t){return function(){var i=t.apply(this,arguments)
7628
7636
  if("function"!=typeof i)throw new Error
7629
- dk(this,e).ease=i}}(this._id,e))},end:function(){var e,t,i=this,o=i._id,n=i.size()
7637
+ hk(this,e).ease=i}}(this._id,e))},end:function(){var e,t,i=this,o=i._id,n=i.size()
7630
7638
  return new Promise((function(s,r){var a={value:r},l={value:function(){0==--n&&s()}}
7631
- i.each((function(){var i=dk(this,o),n=i.on
7632
- n!==e&&((t=(e=n).copy())._.cancel.push(a),t._.interrupt.push(a),t._.end.push(l)),i.on=t})),0===n&&s()}))},[Symbol.iterator]:Nk[Symbol.iterator]}
7633
- var Zk={time:null,delay:0,duration:250,ease:function(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}}
7634
- function qk(e,t){for(var i;!(i=e.__transition)||!(i=i[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`)
7635
- return i}E$.prototype.interrupt=function(e){return this.each((function(){uk(this,e)}))},E$.prototype.transition=function(e){var t,i
7636
- e instanceof zk?(t=e._id,e=e._name):(t=Bk(),(i=Zk).time=QC(),e=null==e?null:e+"")
7637
- for(var o=this._groups,n=o.length,s=0;s<n;++s)for(var r,a=o[s],l=a.length,c=0;c<l;++c)(r=a[c])&&lk(r,e,t,c,a,i||qk(r,t))
7638
- return new zk(o,this._parents,e,t)}
7639
- var Uk=e=>()=>e
7640
- function jk(e,{sourceEvent:t,target:i,transform:o,dispatch:n}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:i,enumerable:!0,configurable:!0},transform:{value:o,enumerable:!0,configurable:!0},_:{value:n}})}function Gk(e,t,i){this.k=e,this.x=t,this.y=i}Gk.prototype={constructor:Gk,scale:function(e){return 1===e?this:new Gk(this.k*e,this.x,this.y)},translate:function(e,t){return 0===e&0===t?this:new Gk(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}}
7641
- var Wk=new Gk(1,0,0)
7642
- function Kk(e){for(;!e.__zoom;)if(!(e=e.parentNode))return Wk
7643
- return e.__zoom}function Xk(e){e.stopImmediatePropagation()}function Yk(e){e.preventDefault(),e.stopImmediatePropagation()}function Qk(e){return!(e.ctrlKey&&"wheel"!==e.type||e.button)}function Jk(){var e=this
7644
- return e instanceof SVGElement?(e=e.ownerSVGElement||e).hasAttribute("viewBox")?[[(e=e.viewBox.baseVal).x,e.y],[e.x+e.width,e.y+e.height]]:[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]:[[0,0],[e.clientWidth,e.clientHeight]]}function eS(){return this.__zoom||Wk}function tS(e){return-e.deltaY*(1===e.deltaMode?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function iS(){return navigator.maxTouchPoints||"ontouchstart"in this}function oS(e,t,i){var o=e.invertX(t[0][0])-i[0][0],n=e.invertX(t[1][0])-i[1][0],s=e.invertY(t[0][1])-i[0][1],r=e.invertY(t[1][1])-i[1][1]
7645
- return e.translate(n>o?(o+n)/2:Math.min(0,o)||Math.max(0,n),r>s?(s+r)/2:Math.min(0,s)||Math.max(0,r))}Kk.prototype=Gk.prototype
7646
- const nS=G`
7639
+ i.each((function(){var i=hk(this,o),n=i.on
7640
+ n!==e&&((t=(e=n).copy())._.cancel.push(a),t._.interrupt.push(a),t._.end.push(l)),i.on=t})),0===n&&s()}))},[Symbol.iterator]:Zk[Symbol.iterator]}
7641
+ var qk={time:null,delay:0,duration:250,ease:function(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}}
7642
+ function Uk(e,t){for(var i;!(i=e.__transition)||!(i=i[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`)
7643
+ return i}O$.prototype.interrupt=function(e){return this.each((function(){pk(this,e)}))},O$.prototype.transition=function(e){var t,i
7644
+ e instanceof Bk?(t=e._id,e=e._name):(t=Nk(),(i=qk).time=JC(),e=null==e?null:e+"")
7645
+ for(var o=this._groups,n=o.length,s=0;s<n;++s)for(var r,a=o[s],l=a.length,c=0;c<l;++c)(r=a[c])&&ck(r,e,t,c,a,i||Uk(r,t))
7646
+ return new Bk(o,this._parents,e,t)}
7647
+ var jk=e=>()=>e
7648
+ function Gk(e,{sourceEvent:t,target:i,transform:o,dispatch:n}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:i,enumerable:!0,configurable:!0},transform:{value:o,enumerable:!0,configurable:!0},_:{value:n}})}function Wk(e,t,i){this.k=e,this.x=t,this.y=i}Wk.prototype={constructor:Wk,scale:function(e){return 1===e?this:new Wk(this.k*e,this.x,this.y)},translate:function(e,t){return 0===e&0===t?this:new Wk(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}}
7649
+ var Kk=new Wk(1,0,0)
7650
+ function Xk(e){for(;!e.__zoom;)if(!(e=e.parentNode))return Kk
7651
+ return e.__zoom}function Yk(e){e.stopImmediatePropagation()}function Qk(e){e.preventDefault(),e.stopImmediatePropagation()}function Jk(e){return!(e.ctrlKey&&"wheel"!==e.type||e.button)}function eS(){var e=this
7652
+ return e instanceof SVGElement?(e=e.ownerSVGElement||e).hasAttribute("viewBox")?[[(e=e.viewBox.baseVal).x,e.y],[e.x+e.width,e.y+e.height]]:[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]:[[0,0],[e.clientWidth,e.clientHeight]]}function tS(){return this.__zoom||Kk}function iS(e){return-e.deltaY*(1===e.deltaMode?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function oS(){return navigator.maxTouchPoints||"ontouchstart"in this}function nS(e,t,i){var o=e.invertX(t[0][0])-i[0][0],n=e.invertX(t[1][0])-i[1][0],s=e.invertY(t[0][1])-i[0][1],r=e.invertY(t[1][1])-i[1][1]
7653
+ return e.translate(n>o?(o+n)/2:Math.min(0,o)||Math.max(0,n),r>s?(s+r)/2:Math.min(0,s)||Math.max(0,r))}Xk.prototype=Wk.prototype
7654
+ const sS=G`
7647
7655
  <div class="wafer-map-container">
7648
7656
  <svg class="svg-root">
7649
7657
  <g ${Re("zoomContainer")} transform=${e=>e.transform.toString()}>
@@ -7673,7 +7681,7 @@ const nS=G`
7673
7681
  />
7674
7682
  </svg>
7675
7683
  </div>
7676
- `,sS=fe`
7684
+ `,rS=fe`
7677
7685
  :host {
7678
7686
  display: inline-block;
7679
7687
  width: 500px;
@@ -7757,68 +7765,68 @@ const nS=G`
7757
7765
  outline-width: 0px;
7758
7766
  }
7759
7767
  `
7760
- function rS(e,t){return null==e||null==t?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function aS(e,t){return null==e||null==t?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function lS(e){let t,i,o
7768
+ function aS(e,t){return null==e||null==t?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function lS(e,t){return null==e||null==t?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function cS(e){let t,i,o
7761
7769
  function n(e,o,n=0,s=e.length){if(n<s){if(0!==t(o,o))return s
7762
7770
  do{const t=n+s>>>1
7763
- i(e[t],o)<0?n=t+1:s=t}while(n<s)}return n}return 2!==e.length?(t=rS,i=(t,i)=>rS(e(t),i),o=(t,i)=>e(t)-i):(t=e===rS||e===aS?e:cS,i=e,o=e),{left:n,center:function(e,t,i=0,s=e.length){const r=n(e,t,i,s-1)
7771
+ i(e[t],o)<0?n=t+1:s=t}while(n<s)}return n}return 2!==e.length?(t=aS,i=(t,i)=>aS(e(t),i),o=(t,i)=>e(t)-i):(t=e===aS||e===lS?e:dS,i=e,o=e),{left:n,center:function(e,t,i=0,s=e.length){const r=n(e,t,i,s-1)
7764
7772
  return r>i&&o(e[r-1],t)>-o(e[r],t)?r-1:r},right:function(e,o,n=0,s=e.length){if(n<s){if(0!==t(o,o))return s
7765
7773
  do{const t=n+s>>>1
7766
- i(e[t],o)<=0?n=t+1:s=t}while(n<s)}return n}}}function cS(){return 0}function dS(e){return null===e?NaN:+e}const hS=lS(rS).right
7767
- lS(dS).center
7768
- var uS=hS
7769
- class pS extends Map{constructor(e,t=vS){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=e)for(const[t,i]of e)this.set(t,i)}get(e){return super.get(gS(this,e))}has(e){return super.has(gS(this,e))}set(e,t){return super.set(function({_intern:e,_key:t},i){const o=t(i)
7774
+ i(e[t],o)<=0?n=t+1:s=t}while(n<s)}return n}}}function dS(){return 0}function hS(e){return null===e?NaN:+e}const uS=cS(aS).right
7775
+ cS(hS).center
7776
+ var pS=uS
7777
+ class gS extends Map{constructor(e,t=mS){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=e)for(const[t,i]of e)this.set(t,i)}get(e){return super.get(vS(this,e))}has(e){return super.has(vS(this,e))}set(e,t){return super.set(function({_intern:e,_key:t},i){const o=t(i)
7770
7778
  return e.has(o)?e.get(o):(e.set(o,i),i)}(this,e),t)}delete(e){return super.delete(function({_intern:e,_key:t},i){const o=t(i)
7771
7779
  e.has(o)&&(i=e.get(o),e.delete(o))
7772
- return i}(this,e))}}function gS({_intern:e,_key:t},i){const o=t(i)
7773
- return e.has(o)?e.get(o):i}function vS(e){return null!==e&&"object"==typeof e?e.valueOf():e}const mS=Math.sqrt(50),fS=Math.sqrt(10),bS=Math.sqrt(2)
7774
- function wS(e,t,i){const o=(t-e)/Math.max(0,i),n=Math.floor(Math.log10(o)),s=o/Math.pow(10,n),r=s>=mS?10:s>=fS?5:s>=bS?2:1
7780
+ return i}(this,e))}}function vS({_intern:e,_key:t},i){const o=t(i)
7781
+ return e.has(o)?e.get(o):i}function mS(e){return null!==e&&"object"==typeof e?e.valueOf():e}const fS=Math.sqrt(50),bS=Math.sqrt(10),wS=Math.sqrt(2)
7782
+ function xS(e,t,i){const o=(t-e)/Math.max(0,i),n=Math.floor(Math.log10(o)),s=o/Math.pow(10,n),r=s>=fS?10:s>=bS?5:s>=wS?2:1
7775
7783
  let a,l,c
7776
- return n<0?(c=Math.pow(10,-n)/r,a=Math.round(e*c),l=Math.round(t*c),a/c<e&&++a,l/c>t&&--l,c=-c):(c=Math.pow(10,n)*r,a=Math.round(e/c),l=Math.round(t/c),a*c<e&&++a,l*c>t&&--l),l<a&&.5<=i&&i<2?wS(e,t,2*i):[a,l,c]}function xS(e,t,i){return wS(e=+e,t=+t,i=+i)[2]}function yS(e,t,i=dS){if((o=e.length)&&!isNaN(t=+t)){if(t<=0||o<2)return+i(e[0],0,e)
7784
+ return n<0?(c=Math.pow(10,-n)/r,a=Math.round(e*c),l=Math.round(t*c),a/c<e&&++a,l/c>t&&--l,c=-c):(c=Math.pow(10,n)*r,a=Math.round(e/c),l=Math.round(t/c),a*c<e&&++a,l*c>t&&--l),l<a&&.5<=i&&i<2?xS(e,t,2*i):[a,l,c]}function yS(e,t,i){return xS(e=+e,t=+t,i=+i)[2]}function $S(e,t,i=hS){if((o=e.length)&&!isNaN(t=+t)){if(t<=0||o<2)return+i(e[0],0,e)
7777
7785
  if(t>=1)return+i(e[o-1],o-1,e)
7778
7786
  var o,n=(o-1)*t,s=Math.floor(n),r=+i(e[s],s,e)
7779
- return r+(+i(e[s+1],s+1,e)-r)*(n-s)}}function $S(e,t,i){e=+e,t=+t,i=(n=arguments.length)<2?(t=e,e=0,1):n<3?1:+i
7787
+ return r+(+i(e[s+1],s+1,e)-r)*(n-s)}}function CS(e,t,i){e=+e,t=+t,i=(n=arguments.length)<2?(t=e,e=0,1):n<3?1:+i
7780
7788
  for(var o=-1,n=0|Math.max(0,Math.ceil((t-e)/i)),s=new Array(n);++o<n;)s[o]=e+o*i
7781
- return s}function CS(e,t){switch(arguments.length){case 0:break
7789
+ return s}function kS(e,t){switch(arguments.length){case 0:break
7782
7790
  case 1:this.range(e)
7783
7791
  break
7784
- default:this.range(t).domain(e)}return this}const kS=Symbol("implicit")
7785
- function SS(){var e=new pS,t=[],i=[],o=kS
7792
+ default:this.range(t).domain(e)}return this}const SS=Symbol("implicit")
7793
+ function _S(){var e=new gS,t=[],i=[],o=SS
7786
7794
  function n(n){let s=e.get(n)
7787
- if(void 0===s){if(o!==kS)return o
7795
+ if(void 0===s){if(o!==SS)return o
7788
7796
  e.set(n,s=t.push(n)-1)}return i[s%i.length]}return n.domain=function(i){if(!arguments.length)return t.slice()
7789
- t=[],e=new pS
7797
+ t=[],e=new gS
7790
7798
  for(const o of i)e.has(o)||e.set(o,t.push(o)-1)
7791
- return n},n.range=function(e){return arguments.length?(i=Array.from(e),n):i.slice()},n.unknown=function(e){return arguments.length?(o=e,n):o},n.copy=function(){return SS(t,i).unknown(o)},CS.apply(n,arguments),n}function _S(){var e,t,i=SS().unknown(void 0),o=i.domain,n=i.range,s=0,r=1,a=!1,l=0,c=0,d=.5
7799
+ return n},n.range=function(e){return arguments.length?(i=Array.from(e),n):i.slice()},n.unknown=function(e){return arguments.length?(o=e,n):o},n.copy=function(){return _S(t,i).unknown(o)},kS.apply(n,arguments),n}function IS(){var e,t,i=_S().unknown(void 0),o=i.domain,n=i.range,s=0,r=1,a=!1,l=0,c=0,d=.5
7792
7800
  function h(){var i=o().length,h=r<s,u=h?r:s,p=h?s:r
7793
7801
  e=(p-u)/Math.max(1,i-l+2*c),a&&(e=Math.floor(e)),u+=(p-u-e*(i-l))*d,t=e*(1-l),a&&(u=Math.round(u),t=Math.round(t))
7794
- var g=$S(i).map((function(t){return u+e*t}))
7795
- return n(h?g.reverse():g)}return delete i.unknown,i.domain=function(e){return arguments.length?(o(e),h()):o()},i.range=function(e){return arguments.length?([s,r]=e,s=+s,r=+r,h()):[s,r]},i.rangeRound=function(e){return[s,r]=e,s=+s,r=+r,a=!0,h()},i.bandwidth=function(){return t},i.step=function(){return e},i.round=function(e){return arguments.length?(a=!!e,h()):a},i.padding=function(e){return arguments.length?(l=Math.min(1,c=+e),h()):l},i.paddingInner=function(e){return arguments.length?(l=Math.min(1,e),h()):l},i.paddingOuter=function(e){return arguments.length?(c=+e,h()):c},i.align=function(e){return arguments.length?(d=Math.max(0,Math.min(1,e)),h()):d},i.copy=function(){return _S(o(),[s,r]).round(a).paddingInner(l).paddingOuter(c).align(d)},CS.apply(h(),arguments)}function IS(e){return+e}var RS=[0,1]
7796
- function MS(e){return e}function AS(e,t){return(t-=e=+e)?function(i){return(i-e)/t}:(i=isNaN(t)?NaN:.5,function(){return i})
7797
- var i}function ES(e,t,i){var o=e[0],n=e[1],s=t[0],r=t[1]
7798
- return n<o?(o=AS(n,o),s=i(r,s)):(o=AS(o,n),s=i(s,r)),function(e){return s(o(e))}}function OS(e,t,i){var o=Math.min(e.length,t.length)-1,n=new Array(o),s=new Array(o),r=-1
7799
- for(e[o]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++r<o;)n[r]=AS(e[r],e[r+1]),s[r]=i(t[r],t[r+1])
7800
- return function(t){var i=uS(e,t,1,o)-1
7801
- return s[i](n[i](t))}}function FS(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function VS(){var e,t,i,o,n,s,r=RS,a=RS,l=EC,c=MS
7802
+ var g=CS(i).map((function(t){return u+e*t}))
7803
+ return n(h?g.reverse():g)}return delete i.unknown,i.domain=function(e){return arguments.length?(o(e),h()):o()},i.range=function(e){return arguments.length?([s,r]=e,s=+s,r=+r,h()):[s,r]},i.rangeRound=function(e){return[s,r]=e,s=+s,r=+r,a=!0,h()},i.bandwidth=function(){return t},i.step=function(){return e},i.round=function(e){return arguments.length?(a=!!e,h()):a},i.padding=function(e){return arguments.length?(l=Math.min(1,c=+e),h()):l},i.paddingInner=function(e){return arguments.length?(l=Math.min(1,e),h()):l},i.paddingOuter=function(e){return arguments.length?(c=+e,h()):c},i.align=function(e){return arguments.length?(d=Math.max(0,Math.min(1,e)),h()):d},i.copy=function(){return IS(o(),[s,r]).round(a).paddingInner(l).paddingOuter(c).align(d)},kS.apply(h(),arguments)}function RS(e){return+e}var MS=[0,1]
7804
+ function AS(e){return e}function ES(e,t){return(t-=e=+e)?function(i){return(i-e)/t}:(i=isNaN(t)?NaN:.5,function(){return i})
7805
+ var i}function OS(e,t,i){var o=e[0],n=e[1],s=t[0],r=t[1]
7806
+ return n<o?(o=ES(n,o),s=i(r,s)):(o=ES(o,n),s=i(s,r)),function(e){return s(o(e))}}function FS(e,t,i){var o=Math.min(e.length,t.length)-1,n=new Array(o),s=new Array(o),r=-1
7807
+ for(e[o]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++r<o;)n[r]=ES(e[r],e[r+1]),s[r]=i(t[r],t[r+1])
7808
+ return function(t){var i=pS(e,t,1,o)-1
7809
+ return s[i](n[i](t))}}function VS(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function HS(){var e,t,i,o,n,s,r=MS,a=MS,l=OC,c=AS
7802
7810
  function d(){var e,t,i,l=Math.min(r.length,a.length)
7803
- return c!==MS&&(e=r[0],t=r[l-1],e>t&&(i=e,e=t,t=i),c=function(i){return Math.max(e,Math.min(t,i))}),o=l>2?OS:ES,n=s=null,h}function h(t){return null==t||isNaN(t=+t)?i:(n||(n=o(r.map(e),a,l)))(e(c(t)))}return h.invert=function(i){return c(t((s||(s=o(a,r.map(e),_C)))(i)))},h.domain=function(e){return arguments.length?(r=Array.from(e,IS),d()):r.slice()},h.range=function(e){return arguments.length?(a=Array.from(e),d()):a.slice()},h.rangeRound=function(e){return a=Array.from(e),l=OC,d()},h.clamp=function(e){return arguments.length?(c=!!e||MS,d()):c!==MS},h.interpolate=function(e){return arguments.length?(l=e,d()):l},h.unknown=function(e){return arguments.length?(i=e,h):i},function(i,o){return e=i,t=o,d()}}function HS(){return VS()(MS,MS)}function PS(e,t){if((i=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null
7811
+ return c!==AS&&(e=r[0],t=r[l-1],e>t&&(i=e,e=t,t=i),c=function(i){return Math.max(e,Math.min(t,i))}),o=l>2?FS:OS,n=s=null,h}function h(t){return null==t||isNaN(t=+t)?i:(n||(n=o(r.map(e),a,l)))(e(c(t)))}return h.invert=function(i){return c(t((s||(s=o(a,r.map(e),IC)))(i)))},h.domain=function(e){return arguments.length?(r=Array.from(e,RS),d()):r.slice()},h.range=function(e){return arguments.length?(a=Array.from(e),d()):a.slice()},h.rangeRound=function(e){return a=Array.from(e),l=FC,d()},h.clamp=function(e){return arguments.length?(c=!!e||AS,d()):c!==AS},h.interpolate=function(e){return arguments.length?(l=e,d()):l},h.unknown=function(e){return arguments.length?(i=e,h):i},function(i,o){return e=i,t=o,d()}}function PS(){return HS()(AS,AS)}function TS(e,t){if((i=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null
7804
7812
  var i,o=e.slice(0,i)
7805
- return[o.length>1?o[0]+o.slice(2):o,+e.slice(i+1)]}function TS(e){return(e=PS(Math.abs(e)))?e[1]:NaN}var DS,LS=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i
7806
- function zS(e){if(!(t=LS.exec(e)))throw new Error("invalid format: "+e)
7813
+ return[o.length>1?o[0]+o.slice(2):o,+e.slice(i+1)]}function DS(e){return(e=TS(Math.abs(e)))?e[1]:NaN}var LS,zS=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i
7814
+ function BS(e){if(!(t=zS.exec(e)))throw new Error("invalid format: "+e)
7807
7815
  var t
7808
- return new BS({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function BS(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}function NS(e,t){var i=PS(e,t)
7816
+ return new NS({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function NS(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}function ZS(e,t){var i=TS(e,t)
7809
7817
  if(!i)return e+""
7810
7818
  var o=i[0],n=i[1]
7811
- return n<0?"0."+new Array(-n).join("0")+o:o.length>n+1?o.slice(0,n+1)+"."+o.slice(n+1):o+new Array(n-o.length+2).join("0")}zS.prototype=BS.prototype,BS.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type}
7812
- var ZS={"%":(e,t)=>(100*e).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)},e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>NS(100*e,t),r:NS,s:function(e,t){var i=PS(e,t)
7819
+ return n<0?"0."+new Array(-n).join("0")+o:o.length>n+1?o.slice(0,n+1)+"."+o.slice(n+1):o+new Array(n-o.length+2).join("0")}BS.prototype=NS.prototype,NS.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type}
7820
+ var qS={"%":(e,t)=>(100*e).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)},e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>ZS(100*e,t),r:ZS,s:function(e,t){var i=TS(e,t)
7813
7821
  if(!i)return e+""
7814
- var o=i[0],n=i[1],s=n-(DS=3*Math.max(-8,Math.min(8,Math.floor(n/3))))+1,r=o.length
7815
- return s===r?o:s>r?o+new Array(s-r+1).join("0"):s>0?o.slice(0,s)+"."+o.slice(s):"0."+new Array(1-s).join("0")+PS(e,Math.max(0,t+s-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)}
7816
- function qS(e){return e}var US,jS,GS,WS=Array.prototype.map,KS=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"]
7817
- function XS(e){var t,i,o=void 0===e.grouping||void 0===e.thousands?qS:(t=WS.call(e.grouping,Number),i=e.thousands+"",function(e,o){for(var n=e.length,s=[],r=0,a=t[0],l=0;n>0&&a>0&&(l+a+1>o&&(a=Math.max(1,o-l)),s.push(e.substring(n-=a,n+a)),!((l+=a+1)>o));)a=t[r=(r+1)%t.length]
7818
- return s.reverse().join(i)}),n=void 0===e.currency?"":e.currency[0]+"",s=void 0===e.currency?"":e.currency[1]+"",r=void 0===e.decimal?".":e.decimal+"",a=void 0===e.numerals?qS:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(WS.call(e.numerals,String)),l=void 0===e.percent?"%":e.percent+"",c=void 0===e.minus?"−":e.minus+"",d=void 0===e.nan?"NaN":e.nan+""
7819
- function h(e){var t=(e=zS(e)).fill,i=e.align,h=e.sign,u=e.symbol,p=e.zero,g=e.width,v=e.comma,m=e.precision,f=e.trim,b=e.type
7820
- "n"===b?(v=!0,b="g"):ZS[b]||(void 0===m&&(m=12),f=!0,b="g"),(p||"0"===t&&"="===i)&&(p=!0,t="0",i="=")
7821
- var w="$"===u?n:"#"===u&&/[boxX]/.test(b)?"0"+b.toLowerCase():"",x="$"===u?s:/[%p]/.test(b)?l:"",y=ZS[b],$=/[defgprs%]/.test(b)
7822
+ var o=i[0],n=i[1],s=n-(LS=3*Math.max(-8,Math.min(8,Math.floor(n/3))))+1,r=o.length
7823
+ return s===r?o:s>r?o+new Array(s-r+1).join("0"):s>0?o.slice(0,s)+"."+o.slice(s):"0."+new Array(1-s).join("0")+TS(e,Math.max(0,t+s-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)}
7824
+ function US(e){return e}var jS,GS,WS,KS=Array.prototype.map,XS=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"]
7825
+ function YS(e){var t,i,o=void 0===e.grouping||void 0===e.thousands?US:(t=KS.call(e.grouping,Number),i=e.thousands+"",function(e,o){for(var n=e.length,s=[],r=0,a=t[0],l=0;n>0&&a>0&&(l+a+1>o&&(a=Math.max(1,o-l)),s.push(e.substring(n-=a,n+a)),!((l+=a+1)>o));)a=t[r=(r+1)%t.length]
7826
+ return s.reverse().join(i)}),n=void 0===e.currency?"":e.currency[0]+"",s=void 0===e.currency?"":e.currency[1]+"",r=void 0===e.decimal?".":e.decimal+"",a=void 0===e.numerals?US:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(KS.call(e.numerals,String)),l=void 0===e.percent?"%":e.percent+"",c=void 0===e.minus?"−":e.minus+"",d=void 0===e.nan?"NaN":e.nan+""
7827
+ function h(e){var t=(e=BS(e)).fill,i=e.align,h=e.sign,u=e.symbol,p=e.zero,g=e.width,v=e.comma,m=e.precision,f=e.trim,b=e.type
7828
+ "n"===b?(v=!0,b="g"):qS[b]||(void 0===m&&(m=12),f=!0,b="g"),(p||"0"===t&&"="===i)&&(p=!0,t="0",i="=")
7829
+ var w="$"===u?n:"#"===u&&/[boxX]/.test(b)?"0"+b.toLowerCase():"",x="$"===u?s:/[%p]/.test(b)?l:"",y=qS[b],$=/[defgprs%]/.test(b)
7822
7830
  function C(e){var n,s,l,u=w,C=x
7823
7831
  if("c"===b)C=y(e)+C,e=""
7824
7832
  else{var k=(e=+e)<0||1/e<0
@@ -7827,7 +7835,7 @@ break
7827
7835
  case"0":0===n&&(n=o),t=o
7828
7836
  break
7829
7837
  default:if(!+e[o])break e
7830
- n>0&&(n=0)}return n>0?e.slice(0,n)+e.slice(t+1):e}(e)),k&&0==+e&&"+"!==h&&(k=!1),u=(k?"("===h?h:c:"-"===h||"("===h?"":h)+u,C=("s"===b?KS[8+DS/3]:"")+C+(k&&"("===h?")":""),$)for(n=-1,s=e.length;++n<s;)if(48>(l=e.charCodeAt(n))||l>57){C=(46===l?r+e.slice(n+1):e.slice(n))+C,e=e.slice(0,n)
7838
+ n>0&&(n=0)}return n>0?e.slice(0,n)+e.slice(t+1):e}(e)),k&&0==+e&&"+"!==h&&(k=!1),u=(k?"("===h?h:c:"-"===h||"("===h?"":h)+u,C=("s"===b?XS[8+LS/3]:"")+C+(k&&"("===h?")":""),$)for(n=-1,s=e.length;++n<s;)if(48>(l=e.charCodeAt(n))||l>57){C=(46===l?r+e.slice(n+1):e.slice(n))+C,e=e.slice(0,n)
7831
7839
  break}}v&&!p&&(e=o(e,1/0))
7832
7840
  var S=u.length+e.length+C.length,_=S<g?new Array(g-S+1).join(t):""
7833
7841
  switch(v&&p&&(e=o(_+e,_.length?g-C.length:1/0),_=""),i){case"<":e=u+e+C+_
@@ -7836,19 +7844,19 @@ case"=":e=u+_+e+C
7836
7844
  break
7837
7845
  case"^":e=_.slice(0,S=_.length>>1)+u+e+C+_.slice(S)
7838
7846
  break
7839
- default:e=_+u+e+C}return a(e)}return m=void 0===m?6:/[gprs]/.test(b)?Math.max(1,Math.min(21,m)):Math.max(0,Math.min(20,m)),C.toString=function(){return e+""},C}return{format:h,formatPrefix:function(e,t){var i=h(((e=zS(e)).type="f",e)),o=3*Math.max(-8,Math.min(8,Math.floor(TS(t)/3))),n=Math.pow(10,-o),s=KS[8+o/3]
7840
- return function(e){return i(n*e)+s}}}}function YS(e,t,i,o){var n,s=function(e,t,i){i=+i
7841
- const o=(t=+t)<(e=+e),n=o?xS(t,e,i):xS(e,t,i)
7847
+ default:e=_+u+e+C}return a(e)}return m=void 0===m?6:/[gprs]/.test(b)?Math.max(1,Math.min(21,m)):Math.max(0,Math.min(20,m)),C.toString=function(){return e+""},C}return{format:h,formatPrefix:function(e,t){var i=h(((e=BS(e)).type="f",e)),o=3*Math.max(-8,Math.min(8,Math.floor(DS(t)/3))),n=Math.pow(10,-o),s=XS[8+o/3]
7848
+ return function(e){return i(n*e)+s}}}}function QS(e,t,i,o){var n,s=function(e,t,i){i=+i
7849
+ const o=(t=+t)<(e=+e),n=o?yS(t,e,i):yS(e,t,i)
7842
7850
  return(o?-1:1)*(n<0?1/-n:n)}(e,t,i)
7843
- switch((o=zS(null==o?",f":o)).type){case"s":var r=Math.max(Math.abs(e),Math.abs(t))
7844
- return null!=o.precision||isNaN(n=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(TS(t)/3)))-TS(Math.abs(e)))}(s,r))||(o.precision=n),GS(o,r)
7845
- case"":case"e":case"g":case"p":case"r":null!=o.precision||isNaN(n=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,TS(t)-TS(e))+1}(s,Math.max(Math.abs(e),Math.abs(t))))||(o.precision=n-("e"===o.type))
7851
+ switch((o=BS(null==o?",f":o)).type){case"s":var r=Math.max(Math.abs(e),Math.abs(t))
7852
+ return null!=o.precision||isNaN(n=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(DS(t)/3)))-DS(Math.abs(e)))}(s,r))||(o.precision=n),WS(o,r)
7853
+ case"":case"e":case"g":case"p":case"r":null!=o.precision||isNaN(n=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,DS(t)-DS(e))+1}(s,Math.max(Math.abs(e),Math.abs(t))))||(o.precision=n-("e"===o.type))
7846
7854
  break
7847
- case"f":case"%":null!=o.precision||isNaN(n=function(e){return Math.max(0,-TS(Math.abs(e)))}(s))||(o.precision=n-2*("%"===o.type))}return jS(o)}function QS(e){var t=e.domain
7855
+ case"f":case"%":null!=o.precision||isNaN(n=function(e){return Math.max(0,-DS(Math.abs(e)))}(s))||(o.precision=n-2*("%"===o.type))}return GS(o)}function JS(e){var t=e.domain
7848
7856
  return e.ticks=function(e){var i=t()
7849
7857
  return function(e,t,i){if(!((i=+i)>0))return[]
7850
7858
  if((e=+e)==(t=+t))return[e]
7851
- const o=t<e,[n,s,r]=o?wS(t,e,i):wS(e,t,i)
7859
+ const o=t<e,[n,s,r]=o?xS(t,e,i):xS(e,t,i)
7852
7860
  if(!(s>=n))return[]
7853
7861
  const a=s-n+1,l=new Array(a)
7854
7862
  if(o)if(r<0)for(let e=0;e<a;++e)l[e]=(s-e)/-r
@@ -7856,85 +7864,85 @@ else for(let e=0;e<a;++e)l[e]=(s-e)*r
7856
7864
  else if(r<0)for(let e=0;e<a;++e)l[e]=(n+e)/-r
7857
7865
  else for(let e=0;e<a;++e)l[e]=(n+e)*r
7858
7866
  return l}(i[0],i[i.length-1],null==e?10:e)},e.tickFormat=function(e,i){var o=t()
7859
- return YS(o[0],o[o.length-1],null==e?10:e,i)},e.nice=function(i){null==i&&(i=10)
7867
+ return QS(o[0],o[o.length-1],null==e?10:e,i)},e.nice=function(i){null==i&&(i=10)
7860
7868
  var o,n,s=t(),r=0,a=s.length-1,l=s[r],c=s[a],d=10
7861
- for(c<l&&(n=l,l=c,c=n,n=r,r=a,a=n);d-- >0;){if((n=xS(l,c,i))===o)return s[r]=l,s[a]=c,t(s)
7869
+ for(c<l&&(n=l,l=c,c=n,n=r,r=a,a=n);d-- >0;){if((n=yS(l,c,i))===o)return s[r]=l,s[a]=c,t(s)
7862
7870
  if(n>0)l=Math.floor(l/n)*n,c=Math.ceil(c/n)*n
7863
7871
  else{if(!(n<0))break
7864
- l=Math.ceil(l*n)/n,c=Math.floor(c*n)/n}o=n}return e},e}function JS(){var e=HS()
7865
- return e.copy=function(){return FS(e,JS())},CS.apply(e,arguments),QS(e)}function e_(){var e,t=[],i=[],o=[]
7872
+ l=Math.ceil(l*n)/n,c=Math.floor(c*n)/n}o=n}return e},e}function e_(){var e=PS()
7873
+ return e.copy=function(){return VS(e,e_())},kS.apply(e,arguments),JS(e)}function t_(){var e,t=[],i=[],o=[]
7866
7874
  function n(){var e=0,n=Math.max(1,i.length)
7867
- for(o=new Array(n-1);++e<n;)o[e-1]=yS(t,e/n)
7868
- return s}function s(t){return null==t||isNaN(t=+t)?e:i[uS(o,t)]}return s.invertExtent=function(e){var n=i.indexOf(e)
7875
+ for(o=new Array(n-1);++e<n;)o[e-1]=$S(t,e/n)
7876
+ return s}function s(t){return null==t||isNaN(t=+t)?e:i[pS(o,t)]}return s.invertExtent=function(e){var n=i.indexOf(e)
7869
7877
  return n<0?[NaN,NaN]:[n>0?o[n-1]:t[0],n<o.length?o[n]:t[t.length-1]]},s.domain=function(e){if(!arguments.length)return t.slice()
7870
7878
  t=[]
7871
7879
  for(let i of e)null==i||isNaN(i=+i)||t.push(i)
7872
- return t.sort(rS),n()},s.range=function(e){return arguments.length?(i=Array.from(e),n()):i.slice()},s.unknown=function(t){return arguments.length?(e=t,s):e},s.quantiles=function(){return o.slice()},s.copy=function(){return e_().domain(t).range(i).unknown(e)},CS.apply(s,arguments)}US=XS({thousands:",",grouping:[3],currency:["$",""]}),jS=US.format,GS=US.formatPrefix
7873
- const t_="bottom-left",i_="bottom-right",o_="top-left",n_="top-right",s_="top",r_="show",a_="hide",l_="linear",c_="ordinal"
7874
- class d_{constructor(e){this.defaultPadding=0,this.baseMarginPercentage=.04
7880
+ return t.sort(aS),n()},s.range=function(e){return arguments.length?(i=Array.from(e),n()):i.slice()},s.unknown=function(t){return arguments.length?(e=t,s):e},s.quantiles=function(){return o.slice()},s.copy=function(){return t_().domain(t).range(i).unknown(e)},kS.apply(s,arguments)}jS=YS({thousands:",",grouping:[3],currency:["$",""]}),GS=jS.format,WS=jS.formatPrefix
7881
+ const i_="bottom-left",o_="bottom-right",n_="top-left",s_="top-right",r_="top",a_="show",l_="hide",c_="linear",d_="ordinal"
7882
+ class h_{constructor(e){this.defaultPadding=0,this.baseMarginPercentage=.04
7875
7883
  const t={width:e.canvasWidth,height:e.canvasHeight},i=this.calculateGridDimensions(e.dies),o=Math.min(t.width,t.height),n={top:(t.height-o)/2,right:(t.width-o)/2,bottom:(t.height-o)/2,left:(t.width-o)/2},s={top:o*this.baseMarginPercentage,right:o*this.baseMarginPercentage,bottom:o*this.baseMarginPercentage,left:o*this.baseMarginPercentage}
7876
7884
  this.margin=this.calculateMarginAddition(s,n),this.containerDimensions=this.calculateContainerDimensions(t,this.margin)
7877
7885
  const r=Math.min(this.containerDimensions.width,this.containerDimensions.height)
7878
7886
  this.horizontalScale=this.createHorizontalScale(e.quadrant,i,r),this.invertedHorizontalScale=this.createInvertedHorizontalScale(e.quadrant,i,r),this.verticalScale=this.createVerticalScale(e.quadrant,i,r),this.invertedVerticalScale=this.createInvertedVerticalScale(e.quadrant,i,r),this.dieDimensions={width:this.horizontalScale.bandwidth(),height:this.verticalScale.bandwidth()},this.radius=r/2}calculateGridDimensions(e){if(0===e.length||void 0===e[0])return{origin:{x:0,y:0},rows:0,cols:0}
7879
7887
  const t={x:e[0].x,y:e[0].y},i={x:e[0].x,y:e[0].y}
7880
7888
  for(const o of e)o.x<t.x&&(t.x=o.x),o.y<t.y&&(t.y=o.y),o.x>i.x&&(i.x=o.x),o.y>i.y&&(i.y=o.y)
7881
- return{origin:t,rows:i.y-t.y+1,cols:i.x-t.x+1}}calculateContainerDimensions(e,t){return{width:e.width-t.left-t.right,height:e.height-t.top-t.bottom}}createHorizontalScale(e,t,i){const o=_S().domain($S(t.origin.x,t.origin.x+t.cols)).paddingInner(0).paddingOuter(0).align(0).round(!1)
7882
- return e===t_||e===o_?o.range([0,i]):o.range([i,0])}createInvertedHorizontalScale(e,t,i){const o=e_().domain([0,i])
7883
- return e===t_||e===o_?o.range($S(t.origin.x,t.origin.x+t.cols)):o.range($S(t.origin.x,t.origin.x+t.cols).reverse())}createVerticalScale(e,t,i){const o=_S().domain($S(t.origin.y,t.origin.y+t.rows)).paddingInner(this.defaultPadding).paddingOuter(0).align(0).round(!1)
7884
- return e===t_||e===i_?o.range([i,0]):o.range([0,i])}createInvertedVerticalScale(e,t,i){const o=e_().domain([0,i])
7885
- return e===t_||e===i_?o.range($S(t.origin.y,t.origin.y+t.rows).reverse()):o.range($S(t.origin.y,t.origin.y+t.rows))}calculateMarginAddition(e,t){return{top:e.top+t.top,right:e.right+t.right,bottom:e.bottom+t.bottom,left:e.left+t.left}}}class h_{constructor(e,t,i,o,n){this.fontSizeFactor=.8,this.nonHighlightedOpacity=.3,this.emptyDieColor="rgba(218,223,236,1)",this.nanDieColor="rgba(122,122,122,1)",this.d3ColorScale=this.createD3ColorScale(e.colorScale,e.colorScaleMode),this.labelsFontSize=this.calculateLabelsFontSize(o,e.maxCharacters),this.diesRenderInfo=[]
7889
+ return{origin:t,rows:i.y-t.y+1,cols:i.x-t.x+1}}calculateContainerDimensions(e,t){return{width:e.width-t.left-t.right,height:e.height-t.top-t.bottom}}createHorizontalScale(e,t,i){const o=IS().domain(CS(t.origin.x,t.origin.x+t.cols)).paddingInner(0).paddingOuter(0).align(0).round(!1)
7890
+ return e===i_||e===n_?o.range([0,i]):o.range([i,0])}createInvertedHorizontalScale(e,t,i){const o=t_().domain([0,i])
7891
+ return e===i_||e===n_?o.range(CS(t.origin.x,t.origin.x+t.cols)):o.range(CS(t.origin.x,t.origin.x+t.cols).reverse())}createVerticalScale(e,t,i){const o=IS().domain(CS(t.origin.y,t.origin.y+t.rows)).paddingInner(this.defaultPadding).paddingOuter(0).align(0).round(!1)
7892
+ return e===i_||e===o_?o.range([i,0]):o.range([0,i])}createInvertedVerticalScale(e,t,i){const o=t_().domain([0,i])
7893
+ return e===i_||e===o_?o.range(CS(t.origin.y,t.origin.y+t.rows).reverse()):o.range(CS(t.origin.y,t.origin.y+t.rows))}calculateMarginAddition(e,t){return{top:e.top+t.top,right:e.right+t.right,bottom:e.bottom+t.bottom,left:e.left+t.left}}}class u_{constructor(e,t,i,o,n){this.fontSizeFactor=.8,this.nonHighlightedOpacity=.3,this.emptyDieColor="rgba(218,223,236,1)",this.nanDieColor="rgba(122,122,122,1)",this.d3ColorScale=this.createD3ColorScale(e.colorScale,e.colorScaleMode),this.labelsFontSize=this.calculateLabelsFontSize(o,e.maxCharacters),this.diesRenderInfo=[]
7886
7894
  for(const o of e.dies){const s=t(o.x)??0,r=i(o.y)??0
7887
- this.diesRenderInfo.push({x:s+n.right,y:r+n.top,fillStyle:this.calculateFillStyle(o.value,e.colorScaleMode,e.highlightedValues),text:this.buildLabel(o.value,e.maxCharacters,e.dieLabelsHidden,e.dieLabelsSuffix)})}}calculateLabelsFontSize(e,t){return Math.min(e.height,e.width/(.5*Math.max(2,t))*this.fontSizeFactor)}createD3ColorScale(e,t){return this.isColorScaleLinear(t)?JS().domain(e.values.map((e=>+e))).range(e.colors):SS().domain(e.values).range(e.colors)}dieHasData(e){return null!=e&&""!==e}buildLabel(e,t,i,o){if(i||!this.dieHasData(e))return""
7895
+ this.diesRenderInfo.push({x:s+n.right,y:r+n.top,fillStyle:this.calculateFillStyle(o.value,e.colorScaleMode,e.highlightedValues),text:this.buildLabel(o.value,e.maxCharacters,e.dieLabelsHidden,e.dieLabelsSuffix)})}}calculateLabelsFontSize(e,t){return Math.min(e.height,e.width/(.5*Math.max(2,t))*this.fontSizeFactor)}createD3ColorScale(e,t){return this.isColorScaleLinear(t)?e_().domain(e.values.map((e=>+e))).range(e.colors):_S().domain(e.values).range(e.colors)}dieHasData(e){return null!=e&&""!==e}buildLabel(e,t,i,o){if(i||!this.dieHasData(e))return""
7888
7896
  const n=`${e}${o}`
7889
- return n.length>t?`${n.substring(0,t)}…`:n}calculateOpacity(e,t){return t.length>0&&!t.some((t=>t===e))?this.nonHighlightedOpacity:1}isColorScaleLinear(e){return e===l_}isColorScaleOrdinal(e){return e===c_}calculateFillStyle(e,t,i){let o=this.emptyDieColor
7897
+ return n.length>t?`${n.substring(0,t)}…`:n}calculateOpacity(e,t){return t.length>0&&!t.some((t=>t===e))?this.nonHighlightedOpacity:1}isColorScaleLinear(e){return e===c_}isColorScaleOrdinal(e){return e===d_}calculateFillStyle(e,t,i){let o=this.emptyDieColor
7890
7898
  if(this.dieHasData(e)&&(isNaN(+e)?o=this.nanDieColor:this.isColorScaleLinear(t)?o=this.d3ColorScale(+e):this.isColorScaleOrdinal(t)&&(o=this.d3ColorScale(e))),void 0===o)return this.emptyDieColor
7891
7899
  let n=Pn(o)
7892
- return null===n?this.emptyDieColor:(n=new Rn(n.r,n.g,n.b,this.calculateOpacity(e,i)),n.toStringWebRGBA())}}class u_{constructor(e){this.computations=new d_(e),this.prerendering=new h_(e,this.horizontalScale,this.verticalScale,this.dieDimensions,this.margin),this.dataMap=new Map(e.dies.map((e=>[`${e.x}_${e.y}`,e])))}get containerDimensions(){return this.computations.containerDimensions}get dieDimensions(){return this.computations.dieDimensions}get radius(){return this.computations.radius}get margin(){return this.computations.margin}get horizontalScale(){return this.computations.horizontalScale}get invertedHorizontalScale(){return this.computations.invertedHorizontalScale}get verticalScale(){return this.computations.verticalScale}get invertedVerticalScale(){return this.computations.invertedVerticalScale}get labelsFontSize(){return this.prerendering.labelsFontSize}get diesRenderInfo(){return this.prerendering.diesRenderInfo}getWaferMapDie(e){return this.dataMap.get(`${e.x}_${e.y}`)}}class p_{constructor(e){this.wafermap=e,this.dies=e.dataManager.diesRenderInfo,this.dimensions=e.dataManager.dieDimensions,this.labelFontSize=e.dataManager.labelsFontSize}drawWafer(){this.wafermap.canvasContext.save(),this.clearCanvas(),this.scaleCanvas(),this.renderDies(),this.renderText(),this.wafermap.canvasContext.restore(),this.renderHover()}renderHover(){this.wafermap.hoverWidth=this.wafermap.dataManager.dieDimensions.width*this.wafermap.transform.k,this.wafermap.hoverHeight=this.wafermap.dataManager.dieDimensions.height*this.wafermap.transform.k,this.wafermap.hoverOpacity=void 0===this.wafermap.hoverDie?a_:r_,this.wafermap.hoverTransform=this.calculateHoverTransform()}calculateHoverTransform(){if(void 0!==this.wafermap.hoverDie){const e=this.wafermap.dataManager.horizontalScale(this.wafermap.hoverDie.x),t=this.wafermap.dataManager.verticalScale(this.wafermap.hoverDie.y),i=this.wafermap.transform.apply([e+this.wafermap.dataManager.margin.left,t+this.wafermap.dataManager.margin.top])
7900
+ return null===n?this.emptyDieColor:(n=new Rn(n.r,n.g,n.b,this.calculateOpacity(e,i)),n.toStringWebRGBA())}}class p_{constructor(e){this.computations=new h_(e),this.prerendering=new u_(e,this.horizontalScale,this.verticalScale,this.dieDimensions,this.margin),this.dataMap=new Map(e.dies.map((e=>[`${e.x}_${e.y}`,e])))}get containerDimensions(){return this.computations.containerDimensions}get dieDimensions(){return this.computations.dieDimensions}get radius(){return this.computations.radius}get margin(){return this.computations.margin}get horizontalScale(){return this.computations.horizontalScale}get invertedHorizontalScale(){return this.computations.invertedHorizontalScale}get verticalScale(){return this.computations.verticalScale}get invertedVerticalScale(){return this.computations.invertedVerticalScale}get labelsFontSize(){return this.prerendering.labelsFontSize}get diesRenderInfo(){return this.prerendering.diesRenderInfo}getWaferMapDie(e){return this.dataMap.get(`${e.x}_${e.y}`)}}class g_{constructor(e){this.wafermap=e,this.dies=e.dataManager.diesRenderInfo,this.dimensions=e.dataManager.dieDimensions,this.labelFontSize=e.dataManager.labelsFontSize}drawWafer(){this.wafermap.canvasContext.save(),this.clearCanvas(),this.scaleCanvas(),this.renderDies(),this.renderText(),this.wafermap.canvasContext.restore(),this.renderHover()}renderHover(){this.wafermap.hoverWidth=this.wafermap.dataManager.dieDimensions.width*this.wafermap.transform.k,this.wafermap.hoverHeight=this.wafermap.dataManager.dieDimensions.height*this.wafermap.transform.k,this.wafermap.hoverOpacity=void 0===this.wafermap.hoverDie?l_:a_,this.wafermap.hoverTransform=this.calculateHoverTransform()}calculateHoverTransform(){if(void 0!==this.wafermap.hoverDie){const e=this.wafermap.dataManager.horizontalScale(this.wafermap.hoverDie.x),t=this.wafermap.dataManager.verticalScale(this.wafermap.hoverDie.y),i=this.wafermap.transform.apply([e+this.wafermap.dataManager.margin.left,t+this.wafermap.dataManager.margin.top])
7893
7901
  return`translate(${i[0]}, ${i[1]})`}return""}renderDies(){let e
7894
7902
  this.dies.sort(((e,t)=>e.fillStyle>t.fillStyle?1:t.fillStyle>e.fillStyle?-1:0))
7895
7903
  for(const t of this.dies)e||(this.wafermap.canvasContext.fillStyle=t.fillStyle),e&&t.fillStyle!==e.fillStyle&&t.fillStyle&&(this.wafermap.canvasContext.fillStyle=t.fillStyle),this.wafermap.canvasContext.fillRect(t.x,t.y,this.dimensions.width,this.dimensions.height),e=t}renderText(){const e=this.dimensions.width*this.dimensions.height*(this.wafermap.transform.k||1),t=this.labelFontSize
7896
7904
  this.wafermap.canvasContext.font=`${t.toString()}px sans-serif`,this.wafermap.canvasContext.fillStyle="#ffffff",this.wafermap.canvasContext.textAlign="center",this.wafermap.canvasContext.lineCap="butt"
7897
7905
  const i=this.wafermap.canvasContext.measureText("M")
7898
- if(e>=50)for(const e of this.dies)this.wafermap.canvasContext.fillText(e.text,e.x+this.dimensions.width/2,e.y+this.dimensions.height/2+i.width/2,this.dimensions.width-this.dimensions.width/100*20)}clearCanvas(){this.wafermap.canvasContext.clearRect(0,0,this.wafermap.canvasWidth*this.wafermap.transform.k,this.wafermap.canvasHeight*this.wafermap.transform.k)}scaleCanvas(){this.wafermap.canvasContext.translate(this.wafermap.transform.x,this.wafermap.transform.y),this.wafermap.canvasContext.scale(this.wafermap.transform.k,this.wafermap.transform.k)}}class g_{constructor(e){this.wafermap=e,this.zoomTransform=Wk,this.minScale=1.1,this.minExtentPoint=[-100,-100],this.extentPadding=100,this.zoomBehavior=this.createZoomBehavior(),this.zoomBehavior(O$(this.wafermap.canvas))}rescale(e){const t=e.transform
7899
- t.k===this.minScale?(this.zoomTransform=Wk,this.zoomBehavior.transform(O$(this.wafermap.canvas),Wk)):this.zoomTransform=t,this.wafermap.transform=this.zoomTransform}createZoomBehavior(){const e=function(){var e,t,i,o=Qk,n=Jk,s=oS,r=tS,a=iS,l=[0,1/0],c=[[-1/0,-1/0],[1/0,1/0]],d=250,h=ZC,u=py("start","zoom","end"),p=500,g=0,v=10
7900
- function m(e){e.property("__zoom",eS).on("wheel.zoom",C,{passive:!1}).on("mousedown.zoom",k).on("dblclick.zoom",S).filter(a).on("touchstart.zoom",_).on("touchmove.zoom",I).on("touchend.zoom touchcancel.zoom",R).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function f(e,t){return(t=Math.max(l[0],Math.min(l[1],t)))===e.k?e:new Gk(t,e.x,e.y)}function b(e,t,i){var o=t[0]-i[0]*e.k,n=t[1]-i[1]*e.k
7901
- return o===e.x&&n===e.y?e:new Gk(e.k,o,n)}function w(e){return[(+e[0][0]+ +e[1][0])/2,(+e[0][1]+ +e[1][1])/2]}function x(e,t,i,o){e.on("start.zoom",(function(){y(this,arguments).event(o).start()})).on("interrupt.zoom end.zoom",(function(){y(this,arguments).event(o).end()})).tween("zoom",(function(){var e=this,s=arguments,r=y(e,s).event(o),a=n.apply(e,s),l=null==i?w(a):"function"==typeof i?i.apply(e,s):i,c=Math.max(a[1][0]-a[0][0],a[1][1]-a[0][1]),d=e.__zoom,u="function"==typeof t?t.apply(e,s):t,p=h(d.invert(l).concat(c/d.k),u.invert(l).concat(c/u.k))
7906
+ if(e>=50)for(const e of this.dies)this.wafermap.canvasContext.fillText(e.text,e.x+this.dimensions.width/2,e.y+this.dimensions.height/2+i.width/2,this.dimensions.width-this.dimensions.width/100*20)}clearCanvas(){this.wafermap.canvasContext.clearRect(0,0,this.wafermap.canvasWidth*this.wafermap.transform.k,this.wafermap.canvasHeight*this.wafermap.transform.k)}scaleCanvas(){this.wafermap.canvasContext.translate(this.wafermap.transform.x,this.wafermap.transform.y),this.wafermap.canvasContext.scale(this.wafermap.transform.k,this.wafermap.transform.k)}}class v_{constructor(e){this.wafermap=e,this.zoomTransform=Kk,this.minScale=1.1,this.minExtentPoint=[-100,-100],this.extentPadding=100,this.zoomBehavior=this.createZoomBehavior(),this.zoomBehavior(F$(this.wafermap.canvas))}rescale(e){const t=e.transform
7907
+ t.k===this.minScale?(this.zoomTransform=Kk,this.zoomBehavior.transform(F$(this.wafermap.canvas),Kk)):this.zoomTransform=t,this.wafermap.transform=this.zoomTransform}createZoomBehavior(){const e=function(){var e,t,i,o=Jk,n=eS,s=nS,r=iS,a=oS,l=[0,1/0],c=[[-1/0,-1/0],[1/0,1/0]],d=250,h=qC,u=gy("start","zoom","end"),p=500,g=0,v=10
7908
+ function m(e){e.property("__zoom",tS).on("wheel.zoom",C,{passive:!1}).on("mousedown.zoom",k).on("dblclick.zoom",S).filter(a).on("touchstart.zoom",_).on("touchmove.zoom",I).on("touchend.zoom touchcancel.zoom",R).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function f(e,t){return(t=Math.max(l[0],Math.min(l[1],t)))===e.k?e:new Wk(t,e.x,e.y)}function b(e,t,i){var o=t[0]-i[0]*e.k,n=t[1]-i[1]*e.k
7909
+ return o===e.x&&n===e.y?e:new Wk(e.k,o,n)}function w(e){return[(+e[0][0]+ +e[1][0])/2,(+e[0][1]+ +e[1][1])/2]}function x(e,t,i,o){e.on("start.zoom",(function(){y(this,arguments).event(o).start()})).on("interrupt.zoom end.zoom",(function(){y(this,arguments).event(o).end()})).tween("zoom",(function(){var e=this,s=arguments,r=y(e,s).event(o),a=n.apply(e,s),l=null==i?w(a):"function"==typeof i?i.apply(e,s):i,c=Math.max(a[1][0]-a[0][0],a[1][1]-a[0][1]),d=e.__zoom,u="function"==typeof t?t.apply(e,s):t,p=h(d.invert(l).concat(c/d.k),u.invert(l).concat(c/u.k))
7902
7910
  return function(e){if(1===e)e=u
7903
7911
  else{var t=p(e),i=c/t[2]
7904
- e=new Gk(i,l[0]-t[0]*i,l[1]-t[1]*i)}r.zoom(null,e)}}))}function y(e,t,i){return!i&&e.__zooming||new $(e,t)}function $(e,t){this.that=e,this.args=t,this.active=0,this.sourceEvent=null,this.extent=n.apply(e,t),this.taps=0}function C(e,...t){if(o.apply(this,arguments)){var i=y(this,t).event(e),n=this.__zoom,a=Math.max(l[0],Math.min(l[1],n.k*Math.pow(2,r.apply(this,arguments)))),d=F$(e)
7912
+ e=new Wk(i,l[0]-t[0]*i,l[1]-t[1]*i)}r.zoom(null,e)}}))}function y(e,t,i){return!i&&e.__zooming||new $(e,t)}function $(e,t){this.that=e,this.args=t,this.active=0,this.sourceEvent=null,this.extent=n.apply(e,t),this.taps=0}function C(e,...t){if(o.apply(this,arguments)){var i=y(this,t).event(e),n=this.__zoom,a=Math.max(l[0],Math.min(l[1],n.k*Math.pow(2,r.apply(this,arguments)))),d=V$(e)
7905
7913
  if(i.wheel)i.mouse[0][0]===d[0]&&i.mouse[0][1]===d[1]||(i.mouse[1]=n.invert(i.mouse[0]=d)),clearTimeout(i.wheel)
7906
7914
  else{if(n.k===a)return
7907
- i.mouse=[d,n.invert(d)],uk(this),i.start()}Yk(e),i.wheel=setTimeout(h,150),i.zoom("mouse",s(b(f(n,a),i.mouse[0],i.mouse[1]),i.extent,c))}function h(){i.wheel=null,i.end()}}function k(e,...t){if(!i&&o.apply(this,arguments)){var n=e.currentTarget,r=y(this,t,!0).event(e),a=O$(e.view).on("mousemove.zoom",u,!0).on("mouseup.zoom",p,!0),l=F$(e,n),d=e.clientX,h=e.clientY
7908
- P$(e.view),Xk(e),r.mouse=[l,this.__zoom.invert(l)],uk(this),r.start()}function u(e){if(Yk(e),!r.moved){var t=e.clientX-d,i=e.clientY-h
7909
- r.moved=t*t+i*i>g}r.event(e).zoom("mouse",s(b(r.that.__zoom,r.mouse[0]=F$(e,n),r.mouse[1]),r.extent,c))}function p(e){a.on("mousemove.zoom mouseup.zoom",null),T$(e.view,r.moved),Yk(e),r.event(e).end()}}function S(e,...t){if(o.apply(this,arguments)){var i=this.__zoom,r=F$(e.changedTouches?e.changedTouches[0]:e,this),a=i.invert(r),l=i.k*(e.shiftKey?.5:2),h=s(b(f(i,l),r,a),n.apply(this,t),c)
7910
- Yk(e),d>0?O$(this).transition().duration(d).call(x,h,r,e):O$(this).call(m.transform,h,r,e)}}function _(i,...n){if(o.apply(this,arguments)){var s,r,a,l,c=i.touches,d=c.length,h=y(this,n,i.changedTouches.length===d).event(i)
7911
- for(Xk(i),r=0;r<d;++r)l=[l=F$(a=c[r],this),this.__zoom.invert(l),a.identifier],h.touch0?h.touch1||h.touch0[2]===l[2]||(h.touch1=l,h.taps=0):(h.touch0=l,s=!0,h.taps=1+!!e)
7912
- e&&(e=clearTimeout(e)),s&&(h.taps<2&&(t=l[0],e=setTimeout((function(){e=null}),p)),uk(this),h.start())}}function I(e,...t){if(this.__zooming){var i,o,n,r,a=y(this,t).event(e),l=e.changedTouches,d=l.length
7913
- for(Yk(e),i=0;i<d;++i)n=F$(o=l[i],this),a.touch0&&a.touch0[2]===o.identifier?a.touch0[0]=n:a.touch1&&a.touch1[2]===o.identifier&&(a.touch1[0]=n)
7915
+ i.mouse=[d,n.invert(d)],pk(this),i.start()}Qk(e),i.wheel=setTimeout(h,150),i.zoom("mouse",s(b(f(n,a),i.mouse[0],i.mouse[1]),i.extent,c))}function h(){i.wheel=null,i.end()}}function k(e,...t){if(!i&&o.apply(this,arguments)){var n=e.currentTarget,r=y(this,t,!0).event(e),a=F$(e.view).on("mousemove.zoom",u,!0).on("mouseup.zoom",p,!0),l=V$(e,n),d=e.clientX,h=e.clientY
7916
+ T$(e.view),Yk(e),r.mouse=[l,this.__zoom.invert(l)],pk(this),r.start()}function u(e){if(Qk(e),!r.moved){var t=e.clientX-d,i=e.clientY-h
7917
+ r.moved=t*t+i*i>g}r.event(e).zoom("mouse",s(b(r.that.__zoom,r.mouse[0]=V$(e,n),r.mouse[1]),r.extent,c))}function p(e){a.on("mousemove.zoom mouseup.zoom",null),D$(e.view,r.moved),Qk(e),r.event(e).end()}}function S(e,...t){if(o.apply(this,arguments)){var i=this.__zoom,r=V$(e.changedTouches?e.changedTouches[0]:e,this),a=i.invert(r),l=i.k*(e.shiftKey?.5:2),h=s(b(f(i,l),r,a),n.apply(this,t),c)
7918
+ Qk(e),d>0?F$(this).transition().duration(d).call(x,h,r,e):F$(this).call(m.transform,h,r,e)}}function _(i,...n){if(o.apply(this,arguments)){var s,r,a,l,c=i.touches,d=c.length,h=y(this,n,i.changedTouches.length===d).event(i)
7919
+ for(Yk(i),r=0;r<d;++r)l=[l=V$(a=c[r],this),this.__zoom.invert(l),a.identifier],h.touch0?h.touch1||h.touch0[2]===l[2]||(h.touch1=l,h.taps=0):(h.touch0=l,s=!0,h.taps=1+!!e)
7920
+ e&&(e=clearTimeout(e)),s&&(h.taps<2&&(t=l[0],e=setTimeout((function(){e=null}),p)),pk(this),h.start())}}function I(e,...t){if(this.__zooming){var i,o,n,r,a=y(this,t).event(e),l=e.changedTouches,d=l.length
7921
+ for(Qk(e),i=0;i<d;++i)n=V$(o=l[i],this),a.touch0&&a.touch0[2]===o.identifier?a.touch0[0]=n:a.touch1&&a.touch1[2]===o.identifier&&(a.touch1[0]=n)
7914
7922
  if(o=a.that.__zoom,a.touch1){var h=a.touch0[0],u=a.touch0[1],p=a.touch1[0],g=a.touch1[1],v=(v=p[0]-h[0])*v+(v=p[1]-h[1])*v,m=(m=g[0]-u[0])*m+(m=g[1]-u[1])*m
7915
7923
  o=f(o,Math.sqrt(v/m)),n=[(h[0]+p[0])/2,(h[1]+p[1])/2],r=[(u[0]+g[0])/2,(u[1]+g[1])/2]}else{if(!a.touch0)return
7916
7924
  n=a.touch0[0],r=a.touch0[1]}a.zoom("touch",s(b(o,n,r),a.extent,c))}}function R(e,...o){if(this.__zooming){var n,s,r=y(this,o).event(e),a=e.changedTouches,l=a.length
7917
- for(Xk(e),i&&clearTimeout(i),i=setTimeout((function(){i=null}),p),n=0;n<l;++n)s=a[n],r.touch0&&r.touch0[2]===s.identifier?delete r.touch0:r.touch1&&r.touch1[2]===s.identifier&&delete r.touch1
7925
+ for(Yk(e),i&&clearTimeout(i),i=setTimeout((function(){i=null}),p),n=0;n<l;++n)s=a[n],r.touch0&&r.touch0[2]===s.identifier?delete r.touch0:r.touch1&&r.touch1[2]===s.identifier&&delete r.touch1
7918
7926
  if(r.touch1&&!r.touch0&&(r.touch0=r.touch1,delete r.touch1),r.touch0)r.touch0[1]=this.__zoom.invert(r.touch0[0])
7919
- else if(r.end(),2===r.taps&&(s=F$(s,this),Math.hypot(t[0]-s[0],t[1]-s[1])<v)){var c=O$(this).on("dblclick.zoom")
7927
+ else if(r.end(),2===r.taps&&(s=V$(s,this),Math.hypot(t[0]-s[0],t[1]-s[1])<v)){var c=F$(this).on("dblclick.zoom")
7920
7928
  c&&c.apply(this,arguments)}}}return m.transform=function(e,t,i,o){var n=e.selection?e.selection():e
7921
- n.property("__zoom",eS),e!==n?x(e,t,i,o):n.interrupt().each((function(){y(this,arguments).event(o).start().zoom(null,"function"==typeof t?t.apply(this,arguments):t).end()}))},m.scaleBy=function(e,t,i,o){m.scaleTo(e,(function(){return this.__zoom.k*("function"==typeof t?t.apply(this,arguments):t)}),i,o)},m.scaleTo=function(e,t,i,o){m.transform(e,(function(){var e=n.apply(this,arguments),o=this.__zoom,r=null==i?w(e):"function"==typeof i?i.apply(this,arguments):i,a=o.invert(r),l="function"==typeof t?t.apply(this,arguments):t
7929
+ n.property("__zoom",tS),e!==n?x(e,t,i,o):n.interrupt().each((function(){y(this,arguments).event(o).start().zoom(null,"function"==typeof t?t.apply(this,arguments):t).end()}))},m.scaleBy=function(e,t,i,o){m.scaleTo(e,(function(){return this.__zoom.k*("function"==typeof t?t.apply(this,arguments):t)}),i,o)},m.scaleTo=function(e,t,i,o){m.transform(e,(function(){var e=n.apply(this,arguments),o=this.__zoom,r=null==i?w(e):"function"==typeof i?i.apply(this,arguments):i,a=o.invert(r),l="function"==typeof t?t.apply(this,arguments):t
7922
7930
  return s(b(f(o,l),r,a),e,c)}),i,o)},m.translateBy=function(e,t,i,o){m.transform(e,(function(){return s(this.__zoom.translate("function"==typeof t?t.apply(this,arguments):t,"function"==typeof i?i.apply(this,arguments):i),n.apply(this,arguments),c)}),null,o)},m.translateTo=function(e,t,i,o,r){m.transform(e,(function(){var e=n.apply(this,arguments),r=this.__zoom,a=null==o?w(e):"function"==typeof o?o.apply(this,arguments):o
7923
- return s(Wk.translate(a[0],a[1]).scale(r.k).translate("function"==typeof t?-t.apply(this,arguments):-t,"function"==typeof i?-i.apply(this,arguments):-i),e,c)}),o,r)},$.prototype={event:function(e){return e&&(this.sourceEvent=e),this},start:function(){return 1==++this.active&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(e,t){return this.mouse&&"mouse"!==e&&(this.mouse[1]=t.invert(this.mouse[0])),this.touch0&&"touch"!==e&&(this.touch0[1]=t.invert(this.touch0[0])),this.touch1&&"touch"!==e&&(this.touch1[1]=t.invert(this.touch1[0])),this.that.__zoom=t,this.emit("zoom"),this},end:function(){return 0==--this.active&&(delete this.that.__zooming,this.emit("end")),this},emit:function(e){var t=O$(this.that).datum()
7924
- u.call(e,this.that,new jk(e,{sourceEvent:this.sourceEvent,target:m,type:e,transform:this.that.__zoom,dispatch:u}),t)}},m.wheelDelta=function(e){return arguments.length?(r="function"==typeof e?e:Uk(+e),m):r},m.filter=function(e){return arguments.length?(o="function"==typeof e?e:Uk(!!e),m):o},m.touchable=function(e){return arguments.length?(a="function"==typeof e?e:Uk(!!e),m):a},m.extent=function(e){return arguments.length?(n="function"==typeof e?e:Uk([[+e[0][0],+e[0][1]],[+e[1][0],+e[1][1]]]),m):n},m.scaleExtent=function(e){return arguments.length?(l[0]=+e[0],l[1]=+e[1],m):[l[0],l[1]]},m.translateExtent=function(e){return arguments.length?(c[0][0]=+e[0][0],c[1][0]=+e[1][0],c[0][1]=+e[0][1],c[1][1]=+e[1][1],m):[[c[0][0],c[0][1]],[c[1][0],c[1][1]]]},m.constrain=function(e){return arguments.length?(s=e,m):s},m.duration=function(e){return arguments.length?(d=+e,m):d},m.interpolate=function(e){return arguments.length?(h=e,m):h},m.on=function(){var e=u.on.apply(u,arguments)
7925
- return e===u?m:e},m.clickDistance=function(e){return arguments.length?(g=(e=+e)*e,m):Math.sqrt(g)},m.tapDistance=function(e){return arguments.length?(v=+e,m):v},m}().scaleExtent([1.1,this.getZoomMax(this.wafermap.canvasWidth*this.wafermap.canvasHeight,this.wafermap.dataManager.containerDimensions.width*this.wafermap.dataManager.containerDimensions.height)]).translateExtent([this.minExtentPoint,[this.wafermap.canvasWidth+this.extentPadding,this.wafermap.canvasHeight+this.extentPadding]]).filter((e=>Kk(this.wafermap.canvas).k>=this.minScale||"wheel"===e.type)).on("zoom",(e=>{this.rescale(e)}))
7926
- return e}getZoomMax(e,t){return Math.ceil(t/e*100)}}class v_{constructor(e){this.wafermap=e}mousemove(e){const t={x:e.offsetX,y:e.offsetY}
7931
+ return s(Kk.translate(a[0],a[1]).scale(r.k).translate("function"==typeof t?-t.apply(this,arguments):-t,"function"==typeof i?-i.apply(this,arguments):-i),e,c)}),o,r)},$.prototype={event:function(e){return e&&(this.sourceEvent=e),this},start:function(){return 1==++this.active&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(e,t){return this.mouse&&"mouse"!==e&&(this.mouse[1]=t.invert(this.mouse[0])),this.touch0&&"touch"!==e&&(this.touch0[1]=t.invert(this.touch0[0])),this.touch1&&"touch"!==e&&(this.touch1[1]=t.invert(this.touch1[0])),this.that.__zoom=t,this.emit("zoom"),this},end:function(){return 0==--this.active&&(delete this.that.__zooming,this.emit("end")),this},emit:function(e){var t=F$(this.that).datum()
7932
+ u.call(e,this.that,new Gk(e,{sourceEvent:this.sourceEvent,target:m,type:e,transform:this.that.__zoom,dispatch:u}),t)}},m.wheelDelta=function(e){return arguments.length?(r="function"==typeof e?e:jk(+e),m):r},m.filter=function(e){return arguments.length?(o="function"==typeof e?e:jk(!!e),m):o},m.touchable=function(e){return arguments.length?(a="function"==typeof e?e:jk(!!e),m):a},m.extent=function(e){return arguments.length?(n="function"==typeof e?e:jk([[+e[0][0],+e[0][1]],[+e[1][0],+e[1][1]]]),m):n},m.scaleExtent=function(e){return arguments.length?(l[0]=+e[0],l[1]=+e[1],m):[l[0],l[1]]},m.translateExtent=function(e){return arguments.length?(c[0][0]=+e[0][0],c[1][0]=+e[1][0],c[0][1]=+e[0][1],c[1][1]=+e[1][1],m):[[c[0][0],c[0][1]],[c[1][0],c[1][1]]]},m.constrain=function(e){return arguments.length?(s=e,m):s},m.duration=function(e){return arguments.length?(d=+e,m):d},m.interpolate=function(e){return arguments.length?(h=e,m):h},m.on=function(){var e=u.on.apply(u,arguments)
7933
+ return e===u?m:e},m.clickDistance=function(e){return arguments.length?(g=(e=+e)*e,m):Math.sqrt(g)},m.tapDistance=function(e){return arguments.length?(v=+e,m):v},m}().scaleExtent([1.1,this.getZoomMax(this.wafermap.canvasWidth*this.wafermap.canvasHeight,this.wafermap.dataManager.containerDimensions.width*this.wafermap.dataManager.containerDimensions.height)]).translateExtent([this.minExtentPoint,[this.wafermap.canvasWidth+this.extentPadding,this.wafermap.canvasHeight+this.extentPadding]]).filter((e=>Xk(this.wafermap.canvas).k>=this.minScale||"wheel"===e.type)).on("zoom",(e=>{this.rescale(e)}))
7934
+ return e}getZoomMax(e,t){return Math.ceil(t/e*100)}}class m_{constructor(e){this.wafermap=e}mousemove(e){const t={x:e.offsetX,y:e.offsetY}
7927
7935
  if(!this.hoversOverDie(t))return void(this.wafermap.hoverDie=void 0)
7928
7936
  const i=this.wafermap.transform.invert([t.x,t.y]),o=this.calculateDieCoordinates({x:i[0],y:i[1]})
7929
- this.wafermap.hoverDie=this.wafermap.dataManager.getWaferMapDie(o)}mouseout(e){this.wafermap.hoverDie=void 0}calculateDieCoordinates(e){const t=this.wafermap.quadrant,i=t===t_||t===o_?Math.floor:Math.ceil,o=t===o_||t===n_?Math.floor:Math.ceil
7937
+ this.wafermap.hoverDie=this.wafermap.dataManager.getWaferMapDie(o)}mouseout(e){this.wafermap.hoverDie=void 0}calculateDieCoordinates(e){const t=this.wafermap.quadrant,i=t===i_||t===n_?Math.floor:Math.ceil,o=t===n_||t===s_?Math.floor:Math.ceil
7930
7938
  return{x:i(this.wafermap.dataManager.invertedHorizontalScale(e.x-this.wafermap.dataManager.margin.left)),y:o(this.wafermap.dataManager.invertedVerticalScale(e.y-this.wafermap.dataManager.margin.top))}}hoversOverDie(e){const t=this.wafermap.canvasContext.getImageData(e.x,e.y,1,1).data
7931
7939
  let i=0
7932
7940
  for(const e of t)i+=e
7933
- return i>0}}class m_{constructor(e){this.wafermap=e,this.onWheelMove=e=>{e.preventDefault()},this.onMouseMove=e=>{this.hoverHandler.mousemove(e)},this.onMouseOut=e=>{this.hoverHandler.mouseout(e)},this.zoomHandler=new g_(e),this.hoverHandler=new v_(e),this.attachEvents()}detachEvents(){this.wafermap.removeEventListener("mousemove",this.onMouseMove),this.wafermap.removeEventListener("mouseout",this.onMouseOut),this.wafermap.canvas.removeEventListener("wheel",this.onWheelMove)}attachEvents(){this.wafermap.addEventListener("mousemove",this.onMouseMove),this.wafermap.addEventListener("mouseout",this.onMouseOut),this.wafermap.canvas.addEventListener("wheel",this.onWheelMove,{passive:!1})}}class f_ extends Rt{constructor(){super(...arguments),this.quadrant=o_,this.orientation=s_,this.maxCharacters=4,this.dieLabelsHidden=!1,this.dieLabelsSuffix="",this.colorScaleMode=l_,this.renderQueued=!1,this.transform=Wk,this.hoverTransform="",this.hoverOpacity=a_,this.hoverWidth=0,this.hoverHeight=0,this.highlightedValues=[],this.dies=[],this.colorScale={colors:[],values:[]}}connectedCallback(){super.connectedCallback(),this.canvasContext=this.canvas.getContext("2d",{willReadFrequently:!0}),this.resizeObserver=this.createResizeObserver()}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver.unobserve(this)}render(){this.renderQueued=!1,this.initializeInternalModules(),this.renderer?.drawWafer()}queueRender(){this.$fastController.isConnected&&(this.renderQueued||(this.renderQueued=!0,u.queueUpdate((()=>this.render()))))}queueRenderHover(){this.$fastController.isConnected&&u.queueUpdate((()=>this.renderer?.renderHover()))}initializeInternalModules(){this.eventCoordinator?.detachEvents(),this.dataManager=new u_(this),this.renderer=new p_(this),this.eventCoordinator=new m_(this)}createResizeObserver(){const e=new ResizeObserver((e=>{const t=e[0]
7941
+ return i>0}}class f_{constructor(e){this.wafermap=e,this.onWheelMove=e=>{e.preventDefault()},this.onMouseMove=e=>{this.hoverHandler.mousemove(e)},this.onMouseOut=e=>{this.hoverHandler.mouseout(e)},this.zoomHandler=new v_(e),this.hoverHandler=new m_(e),this.attachEvents()}detachEvents(){this.wafermap.removeEventListener("mousemove",this.onMouseMove),this.wafermap.removeEventListener("mouseout",this.onMouseOut),this.wafermap.canvas.removeEventListener("wheel",this.onWheelMove)}attachEvents(){this.wafermap.addEventListener("mousemove",this.onMouseMove),this.wafermap.addEventListener("mouseout",this.onMouseOut),this.wafermap.canvas.addEventListener("wheel",this.onWheelMove,{passive:!1})}}class b_ extends Rt{constructor(){super(...arguments),this.quadrant=n_,this.orientation=r_,this.maxCharacters=4,this.dieLabelsHidden=!1,this.dieLabelsSuffix="",this.colorScaleMode=c_,this.renderQueued=!1,this.transform=Kk,this.hoverTransform="",this.hoverOpacity=l_,this.hoverWidth=0,this.hoverHeight=0,this.highlightedValues=[],this.dies=[],this.colorScale={colors:[],values:[]}}connectedCallback(){super.connectedCallback(),this.canvasContext=this.canvas.getContext("2d",{willReadFrequently:!0}),this.resizeObserver=this.createResizeObserver()}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver.unobserve(this)}render(){this.renderQueued=!1,this.initializeInternalModules(),this.renderer?.drawWafer()}queueRender(){this.$fastController.isConnected&&(this.renderQueued||(this.renderQueued=!0,u.queueUpdate((()=>this.render()))))}queueRenderHover(){this.$fastController.isConnected&&u.queueUpdate((()=>this.renderer?.renderHover()))}initializeInternalModules(){this.eventCoordinator?.detachEvents(),this.dataManager=new p_(this),this.renderer=new g_(this),this.eventCoordinator=new f_(this)}createResizeObserver(){const e=new ResizeObserver((e=>{const t=e[0]
7934
7942
  if(void 0===t)return
7935
7943
  const{height:i,width:o}=t.contentRect
7936
7944
  this.canvas.width=o,this.canvas.height=i,this.canvasWidth=o,this.canvasHeight=i}))
7937
- return e.observe(this),e}quadrantChanged(){this.queueRender()}orientationChanged(){this.queueRender()}maxCharactersChanged(){this.queueRender()}dieLabelsHiddenChanged(){this.queueRender()}dieLabelsSuffixChanged(){this.queueRender()}colorScaleModeChanged(){this.queueRender()}highlightedValuesChanged(){this.queueRender()}diesChanged(){this.queueRender()}colorScaleChanged(){this.queueRender()}transformChanged(){this.queueRender()}canvasWidthChanged(){this.queueRender()}canvasHeightChanged(){this.queueRender()}hoverDieChanged(){this.$emit("die-hover",{currentDie:this.hoverDie}),this.queueRenderHover()}}e([ne],f_.prototype,"quadrant",void 0),e([ne],f_.prototype,"orientation",void 0),e([ne({attribute:"max-characters",converter:ie})],f_.prototype,"maxCharacters",void 0),e([ne({attribute:"die-labels-hidden",mode:"boolean"})],f_.prototype,"dieLabelsHidden",void 0),e([ne({attribute:"die-labels-suffix"})],f_.prototype,"dieLabelsSuffix",void 0),e([ne({attribute:"color-scale-mode"})],f_.prototype,"colorScaleMode",void 0),e([m],f_.prototype,"canvasWidth",void 0),e([m],f_.prototype,"canvasHeight",void 0),e([m],f_.prototype,"transform",void 0),e([m],f_.prototype,"hoverTransform",void 0),e([m],f_.prototype,"hoverOpacity",void 0),e([m],f_.prototype,"hoverWidth",void 0),e([m],f_.prototype,"hoverHeight",void 0),e([m],f_.prototype,"hoverDie",void 0),e([m],f_.prototype,"highlightedValues",void 0),e([m],f_.prototype,"dies",void 0),e([m],f_.prototype,"colorScale",void 0)
7938
- const b_=f_.compose({baseName:"wafer-map",template:nS,styles:sS})
7939
- ro.getOrCreate().withPrefix("nimble").register(b_()),ro.tagFor(f_)}()
7945
+ return e.observe(this),e}quadrantChanged(){this.queueRender()}orientationChanged(){this.queueRender()}maxCharactersChanged(){this.queueRender()}dieLabelsHiddenChanged(){this.queueRender()}dieLabelsSuffixChanged(){this.queueRender()}colorScaleModeChanged(){this.queueRender()}highlightedValuesChanged(){this.queueRender()}diesChanged(){this.queueRender()}colorScaleChanged(){this.queueRender()}transformChanged(){this.queueRender()}canvasWidthChanged(){this.queueRender()}canvasHeightChanged(){this.queueRender()}hoverDieChanged(){this.$emit("die-hover",{currentDie:this.hoverDie}),this.queueRenderHover()}}e([ne],b_.prototype,"quadrant",void 0),e([ne],b_.prototype,"orientation",void 0),e([ne({attribute:"max-characters",converter:ie})],b_.prototype,"maxCharacters",void 0),e([ne({attribute:"die-labels-hidden",mode:"boolean"})],b_.prototype,"dieLabelsHidden",void 0),e([ne({attribute:"die-labels-suffix"})],b_.prototype,"dieLabelsSuffix",void 0),e([ne({attribute:"color-scale-mode"})],b_.prototype,"colorScaleMode",void 0),e([m],b_.prototype,"canvasWidth",void 0),e([m],b_.prototype,"canvasHeight",void 0),e([m],b_.prototype,"transform",void 0),e([m],b_.prototype,"hoverTransform",void 0),e([m],b_.prototype,"hoverOpacity",void 0),e([m],b_.prototype,"hoverWidth",void 0),e([m],b_.prototype,"hoverHeight",void 0),e([m],b_.prototype,"hoverDie",void 0),e([m],b_.prototype,"highlightedValues",void 0),e([m],b_.prototype,"dies",void 0),e([m],b_.prototype,"colorScale",void 0)
7946
+ const w_=b_.compose({baseName:"wafer-map",template:sS,styles:rS})
7947
+ ro.getOrCreate().withPrefix("nimble").register(w_()),ro.tagFor(b_)}()
7940
7948
  //# sourceMappingURL=all-components-bundle.min.js.map