@ni/nimble-components 18.12.0 → 18.12.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. package/dist/all-components-bundle.js +440 -87
  2. package/dist/all-components-bundle.js.map +1 -1
  3. package/dist/all-components-bundle.min.js +1013 -878
  4. package/dist/all-components-bundle.min.js.map +1 -1
  5. package/dist/esm/table/components/cell/template.js +1 -0
  6. package/dist/esm/table/components/cell/template.js.map +1 -1
  7. package/dist/esm/table/components/group-row/index.d.ts +14 -1
  8. package/dist/esm/table/components/group-row/index.js +44 -0
  9. package/dist/esm/table/components/group-row/index.js.map +1 -1
  10. package/dist/esm/table/components/group-row/styles.js +16 -4
  11. package/dist/esm/table/components/group-row/styles.js.map +1 -1
  12. package/dist/esm/table/components/group-row/template.js +30 -10
  13. package/dist/esm/table/components/group-row/template.js.map +1 -1
  14. package/dist/esm/table/components/row/index.d.ts +12 -2
  15. package/dist/esm/table/components/row/index.js +40 -4
  16. package/dist/esm/table/components/row/index.js.map +1 -1
  17. package/dist/esm/table/components/row/styles.js +21 -4
  18. package/dist/esm/table/components/row/styles.js.map +1 -1
  19. package/dist/esm/table/components/row/template.js +36 -20
  20. package/dist/esm/table/components/row/template.js.map +1 -1
  21. package/dist/esm/table/index.d.ts +27 -4
  22. package/dist/esm/table/index.js +185 -22
  23. package/dist/esm/table/index.js.map +1 -1
  24. package/dist/esm/table/styles.js +32 -9
  25. package/dist/esm/table/styles.js.map +1 -1
  26. package/dist/esm/table/template.js +37 -14
  27. package/dist/esm/table/template.js.map +1 -1
  28. package/dist/esm/table/types.d.ts +11 -0
  29. package/dist/esm/table/types.js +4 -2
  30. package/dist/esm/table/types.js.map +1 -1
  31. package/package.json +14 -14
@@ -2798,8 +2798,8 @@ class zp extends wi{}const Bp=zp.compose({baseName:"checkbox",baseClass:wi,templ
2798
2798
  </label>
2799
2799
  </template>
2800
2800
  `,styles:Dp,checkedIndicator:Gd.data,indeterminateIndicator:fu.data})
2801
- no.getOrCreate().withPrefix("nimble").register(Bp()),no.tagFor(zp)
2802
- const Np=me`
2801
+ no.getOrCreate().withPrefix("nimble").register(Bp())
2802
+ const Np=no.tagFor(zp),Zp=me`
2803
2803
  ${Nc}
2804
2804
 
2805
2805
  .control[aria-pressed='true'] {
@@ -2825,8 +2825,8 @@ const Np=me`
2825
2825
  border-color: ${Nr};
2826
2826
  }
2827
2827
  `
2828
- class Zp extends Bo{constructor(){super(...arguments),this.appearance=Tc,this.contentHidden=!1}}e([ne],Zp.prototype,"appearance",void 0),e([ne({attribute:"content-hidden",mode:"boolean"})],Zp.prototype,"contentHidden",void 0),Mt(Zp,ze,mi)
2829
- const qp=Zp.compose({baseName:"toggle-button",template:(e,t)=>G`
2828
+ class qp extends Bo{constructor(){super(...arguments),this.appearance=Tc,this.contentHidden=!1}}e([ne],qp.prototype,"appearance",void 0),e([ne({attribute:"content-hidden",mode:"boolean"})],qp.prototype,"contentHidden",void 0),Mt(qp,ze,mi)
2829
+ const jp=qp.compose({baseName:"toggle-button",template:(e,t)=>G`
2830
2830
  <div
2831
2831
  role="button"
2832
2832
  part="control"
@@ -2867,15 +2867,15 @@ const qp=Zp.compose({baseName:"toggle-button",template:(e,t)=>G`
2867
2867
  </span>
2868
2868
  ${Be(0,t)}
2869
2869
  </div>
2870
- `,styles:Np,shadowOptions:{delegatesFocus:!0}})
2871
- no.getOrCreate().withPrefix("nimble").register(qp())
2872
- const jp=no.tagFor(Zp),Up=G`
2870
+ `,styles:Zp,shadowOptions:{delegatesFocus:!0}})
2871
+ no.getOrCreate().withPrefix("nimble").register(jp())
2872
+ const Up=no.tagFor(qp),Gp=G`
2873
2873
  <div class="error-text" title="${e=>e.errorText}" aria-live="polite">
2874
2874
  ${e=>e.errorText}
2875
2875
  </div>
2876
2876
  `
2877
- class Gp extends mp{constructor(){super($d)}}fp("icon-arrow-expander-down",Gp)
2878
- const Wp=no.tagFor(Gp),Xp="underline",Kp="outline",Yp="block",Qp=me`
2877
+ class Wp extends mp{constructor(){super($d)}}fp("icon-arrow-expander-down",Wp)
2878
+ const Xp=no.tagFor(Wp),Kp="underline",Yp="outline",Qp="block",Jp=me`
2879
2879
  ${bn("inline-flex")}
2880
2880
 
2881
2881
  :host {
@@ -3078,7 +3078,7 @@ const Wp=no.tagFor(Gp),Xp="underline",Kp="outline",Yp="block",Qp=me`
3078
3078
  ::slotted(option) {
3079
3079
  flex: none;
3080
3080
  }
3081
- `.withBehaviors(Bc(Xp,me`
3081
+ `.withBehaviors(Bc(Kp,me`
3082
3082
  .control {
3083
3083
  border-bottom-width: ${sa};
3084
3084
  padding-bottom: 0;
@@ -3087,12 +3087,12 @@ const Wp=no.tagFor(Gp),Xp="underline",Kp="outline",Yp="block",Qp=me`
3087
3087
  :host([disabled]) .control {
3088
3088
  border-color: rgba(${Ur}, 0.1);
3089
3089
  }
3090
- `),Bc(Kp,me`
3090
+ `),Bc(Yp,me`
3091
3091
  .control {
3092
3092
  border-width: ${sa};
3093
3093
  padding: 0;
3094
3094
  }
3095
- `),Bc(Yp,me`
3095
+ `),Bc(Qp,me`
3096
3096
  .control {
3097
3097
  background-color: rgba(${Ur}, 0.1);
3098
3098
  }
@@ -3109,7 +3109,7 @@ const Wp=no.tagFor(Gp),Xp="underline",Kp="outline",Yp="block",Qp=me`
3109
3109
  .listbox slot {
3110
3110
  background: ${ls(qn,.15)};
3111
3111
  }
3112
- `)),Jp=me`
3112
+ `)),eg=me`
3113
3113
  .error-icon {
3114
3114
  display: none;
3115
3115
  }
@@ -3141,9 +3141,9 @@ const Wp=no.tagFor(Gp),Xp="underline",Kp="outline",Yp="block",Qp=me`
3141
3141
  :host([error-visible]) .error-text:empty {
3142
3142
  display: none;
3143
3143
  }
3144
- `,eg=me`
3145
- ${Qp}
3144
+ `,tg=me`
3146
3145
  ${Jp}
3146
+ ${eg}
3147
3147
 
3148
3148
  :host {
3149
3149
  --ni-private-hover-bottom-border-width: 2px;
@@ -3216,13 +3216,13 @@ const Wp=no.tagFor(Gp),Xp="underline",Kp="outline",Yp="block",Qp=me`
3216
3216
  :host(:empty) .listbox {
3217
3217
  display: none;
3218
3218
  }
3219
- `.withBehaviors(Bc(Yp,me`
3219
+ `.withBehaviors(Bc(Qp,me`
3220
3220
  :host([error-visible]) .control {
3221
3221
  border-bottom-width: ${sa};
3222
3222
  padding-bottom: 0;
3223
3223
  }
3224
3224
  `))
3225
- class tg extends Vi{constructor(){super(...arguments),this.appearance=Xp,this.errorVisible=!1,this.valueUpdatedByInput=!1}setPositioning(){this.$fastController.isConnected&&super.setPositioning()}slottedOptionsChanged(e,t){const i=this.value
3225
+ class ig extends Vi{constructor(){super(...arguments),this.appearance=Kp,this.errorVisible=!1,this.valueUpdatedByInput=!1}setPositioning(){this.$fastController.isConnected&&super.setPositioning()}slottedOptionsChanged(e,t){const i=this.value
3226
3226
  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 Rr:case _r:case" ":case Mr:return this.open=!0,this.stopPropagation(e),!1
3227
3227
  default:return!0}}filterOptions(){super.filterOptions()
3228
3228
  const e=this.filteredOptions.filter((e=>!e.disabled))
@@ -3235,8 +3235,8 @@ case _r:case Rr:this.open&&this.valueUpdatedByInput&&(this.valueUpdatedByInput=!
3235
3235
  break
3236
3236
  default:return t}return t}focusoutHandler(e){const t=super.focusoutHandler(e)
3237
3237
  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")
3238
- 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],tg.prototype,"appearance",void 0),e([m],tg.prototype,"dropdownButton",void 0),e([ne({attribute:"error-text"})],tg.prototype,"errorText",void 0),e([ne({attribute:"error-visible",mode:"boolean"})],tg.prototype,"errorVisible",void 0)
3239
- const ig=tg.compose({baseName:"combobox",baseClass:Vi,template:(e,t)=>G`
3238
+ 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],ig.prototype,"appearance",void 0),e([m],ig.prototype,"dropdownButton",void 0),e([ne({attribute:"error-text"})],ig.prototype,"errorText",void 0),e([ne({attribute:"error-visible",mode:"boolean"})],ig.prototype,"errorVisible",void 0)
3239
+ const og=ig.compose({baseName:"combobox",baseClass:Vi,template:(e,t)=>G`
3240
3240
  <template
3241
3241
  aria-disabled="${e=>e.ariaDisabled}"
3242
3242
  autocomplete="${e=>e.autocomplete}"
@@ -3290,14 +3290,14 @@ const ig=tg.compose({baseName:"combobox",baseClass:Vi,template:(e,t)=>G`
3290
3290
  ></slot>
3291
3291
  </div>
3292
3292
  </template>
3293
- `,styles:eg,shadowOptions:{delegatesFocus:!0},end:G`
3293
+ `,styles:tg,shadowOptions:{delegatesFocus:!0},end:G`
3294
3294
  <div class="end-slot-container">
3295
3295
  <${wp}
3296
3296
  severity="error"
3297
3297
  class="error-icon"
3298
3298
  ></${wp}>
3299
3299
  <div class="separator"></div>
3300
- <${jp}
3300
+ <${Up}
3301
3301
  ${_e("dropdownButton")}
3302
3302
  appearance="ghost"
3303
3303
  ?checked="${e=>e.open}"
@@ -3312,17 +3312,17 @@ const ig=tg.compose({baseName:"combobox",baseClass:Vi,template:(e,t)=>G`
3312
3312
  aria-expanded="${e=>e.open}"
3313
3313
  tabindex="-1"
3314
3314
  >
3315
- <${Wp}
3315
+ <${Xp}
3316
3316
  slot="start"
3317
3317
  class="dropdown-icon"
3318
3318
  >
3319
- </${Wp}>
3320
- </${jp}>
3319
+ </${Xp}>
3320
+ </${Up}>
3321
3321
  </div>
3322
- ${Up}
3322
+ ${Gp}
3323
3323
  `})
3324
- no.getOrCreate().withPrefix("nimble").register(ig()),no.tagFor(tg)
3325
- const og=Symbol("user dismissed"),ng=me`
3324
+ no.getOrCreate().withPrefix("nimble").register(og()),no.tagFor(ig)
3325
+ const ng=Symbol("user dismissed"),sg=me`
3326
3326
  ${bn("grid")}
3327
3327
 
3328
3328
  dialog {
@@ -3418,7 +3418,7 @@ const og=Symbol("user dismissed"),ng=me`
3418
3418
  dialog::backdrop {
3419
3419
  background: ${hs};
3420
3420
  }
3421
- `)),sg=G`
3421
+ `)),rg=G`
3422
3422
  <template>
3423
3423
  <dialog
3424
3424
  ${_e("dialogElement")}
@@ -3446,12 +3446,12 @@ const og=Symbol("user dismissed"),ng=me`
3446
3446
  </dialog>
3447
3447
  </template>
3448
3448
  `
3449
- class rg extends _t{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")
3449
+ class ag extends _t{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")
3450
3450
  return this.dialogElement.showModal(),new Promise(((e,t)=>{this.resolveShow=e}))}close(e){if(!this.open)throw new Error("Dialog is not open")
3451
- 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(og),this.resolveShow=void 0),!0}}rg.UserDismissed=og,e([ne({attribute:"prevent-dismiss",mode:"boolean"})],rg.prototype,"preventDismiss",void 0),e([ne({attribute:"header-hidden",mode:"boolean"})],rg.prototype,"headerHidden",void 0),e([ne({attribute:"footer-hidden",mode:"boolean"})],rg.prototype,"footerHidden",void 0),e([m],rg.prototype,"footerIsEmpty",void 0),e([m],rg.prototype,"slottedFooterElements",void 0),Mt(rg,Jt)
3452
- const ag=rg.compose({baseName:"dialog",template:sg,styles:ng,baseClass:rg})
3453
- no.getOrCreate().withPrefix("nimble").register(ag()),no.tagFor(rg)
3454
- const lg=me`
3451
+ 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(ng),this.resolveShow=void 0),!0}}ag.UserDismissed=ng,e([ne({attribute:"prevent-dismiss",mode:"boolean"})],ag.prototype,"preventDismiss",void 0),e([ne({attribute:"header-hidden",mode:"boolean"})],ag.prototype,"headerHidden",void 0),e([ne({attribute:"footer-hidden",mode:"boolean"})],ag.prototype,"footerHidden",void 0),e([m],ag.prototype,"footerIsEmpty",void 0),e([m],ag.prototype,"slottedFooterElements",void 0),Mt(ag,Jt)
3452
+ const lg=ag.compose({baseName:"dialog",template:rg,styles:sg,baseClass:ag})
3453
+ no.getOrCreate().withPrefix("nimble").register(lg()),no.tagFor(ag)
3454
+ const cg=me`
3455
3455
  ${bn("block")}
3456
3456
 
3457
3457
  :host {
@@ -3593,7 +3593,7 @@ const lg=me`
3593
3593
  dialog::backdrop {
3594
3594
  background: ${hs};
3595
3595
  }
3596
- `)),cg=G`
3596
+ `)),dg=G`
3597
3597
  <dialog
3598
3598
  ${_e("dialog")}
3599
3599
  aria-label="${e=>e.ariaLabel}"
@@ -3603,171 +3603,171 @@ const lg=me`
3603
3603
  <slot></slot>
3604
3604
  </div>
3605
3605
  </dialog>
3606
- `,dg="right"
3607
- class hg extends _t{constructor(){super(...arguments),this.location=dg,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")
3606
+ `,hg="right"
3607
+ class ug extends _t{constructor(){super(...arguments),this.location=hg,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")
3608
3608
  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")
3609
- this.closeReason=e,this.closeDialog()}cancelHandler(e){return e.preventDefault(),this.preventDismiss||(this.closeReason=og,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(kr,this.animationEndHandlerFunction)}animationEndHandler(){this.dialog.removeEventListener(kr,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)}}hg.UserDismissed=og,e([ne],hg.prototype,"location",void 0),e([ne({attribute:"prevent-dismiss",mode:"boolean"})],hg.prototype,"preventDismiss",void 0),Mt(hg,Jt)
3610
- const ug=hg.compose({baseName:"drawer",template:cg,styles:lg})
3611
- no.getOrCreate().withPrefix("nimble").register(ug()),no.tagFor(hg)
3612
- class pg extends mp{constructor(){super(wd)}}fp("icon-add",pg)
3613
- const gg=no.tagFor(pg)
3614
- class vg extends mp{constructor(){super(xd)}}fp("icon-arrow-down",vg)
3615
- const mg=no.tagFor(vg)
3616
- class fg extends mp{constructor(){super(yd)}}fp("icon-arrow-down-right-and-arrow-up-left",fg),no.tagFor(fg)
3617
- class bg extends mp{constructor(){super(Cd)}}fp("icon-arrow-expander-left",bg),no.tagFor(bg)
3618
- class wg extends mp{constructor(){super(kd)}}fp("icon-arrow-expander-right",wg)
3619
- const xg=no.tagFor(wg)
3620
- class yg extends mp{constructor(){super(Sd)}}fp("icon-arrow-expander-up",yg),no.tagFor(yg)
3621
- class $g extends mp{constructor(){super(_d)}}fp("icon-arrow-left-from-line",$g),no.tagFor($g)
3622
- class Cg extends mp{constructor(){super(Id)}}fp("icon-arrow-partial-rotate-left",Cg),no.tagFor(Cg)
3623
- class kg extends mp{constructor(){super(Rd)}}fp("icon-arrow-right-to-line",kg),no.tagFor(kg)
3624
- class Sg extends mp{constructor(){super(Md)}}fp("icon-arrow-rotate-right",Sg),no.tagFor(Sg)
3625
- class _g extends mp{constructor(){super(Ad)}}fp("icon-arrow-u-rotate-left",_g),no.tagFor(_g)
3626
- class Ig extends mp{constructor(){super(Od)}}fp("icon-arrow-up",Ig)
3627
- const Rg=no.tagFor(Ig)
3628
- class Mg extends mp{constructor(){super(Ed)}}fp("icon-arrow-up-left-and-arrow-down-right",Mg),no.tagFor(Mg)
3629
- class Ag extends mp{constructor(){super(Vd)}}fp("icon-arrows-maximize",Ag),no.tagFor(Ag)
3630
- class Og extends mp{constructor(){super(Fd)}}fp("icon-arrows-repeat",Og),no.tagFor(Og)
3631
- class Eg extends mp{constructor(){super(Hd)}}fp("icon-bars",Eg),no.tagFor(Eg)
3632
- class Vg extends mp{constructor(){super(Pd)}}fp("icon-bell",Vg),no.tagFor(Vg)
3633
- class Fg extends mp{constructor(){super(Td)}}fp("icon-bell-and-comment",Fg),no.tagFor(Fg)
3634
- class Hg extends mp{constructor(){super(Ld)}}fp("icon-bell-circle",Hg),no.tagFor(Hg)
3635
- class Pg extends mp{constructor(){super(Dd)}}fp("icon-bell-solid-circle",Pg),no.tagFor(Pg)
3636
- class Tg extends mp{constructor(){super(zd)}}fp("icon-block-with-ribbon",Tg),no.tagFor(Tg)
3637
- class Lg extends mp{constructor(){super(Bd)}}fp("icon-book-magnifying-glass",Lg),no.tagFor(Lg)
3638
- class Dg extends mp{constructor(){super(Nd)}}fp("icon-calendar",Dg),no.tagFor(Dg)
3639
- class zg extends mp{constructor(){super(Zd)}}fp("icon-chart-diagram",zg),no.tagFor(zg)
3640
- class Bg extends mp{constructor(){super(qd)}}fp("icon-chart-diagram-child-focus",Bg),no.tagFor(Bg)
3641
- class Ng extends mp{constructor(){super(jd)}}fp("icon-chart-diagram-parent-focus",Ng),no.tagFor(Ng)
3642
- class Zg extends mp{constructor(){super(Ud)}}fp("icon-chart-diagram-parent-focus-two-child",Zg),no.tagFor(Zg)
3643
- class qg extends mp{constructor(){super(Gd)}}fp("icon-check",qg),no.tagFor(qg)
3644
- class jg extends mp{constructor(){super(Wd)}}fp("icon-check-dot",jg),no.tagFor(jg)
3645
- class Ug extends mp{constructor(){super(Xd)}}fp("icon-check-large",Ug),no.tagFor(Ug)
3646
- class Gg extends mp{constructor(){super(Kd)}}fp("icon-circle",Gg),no.tagFor(Gg)
3647
- class Wg extends mp{constructor(){super(Qd)}}fp("icon-circle-broken",Wg),no.tagFor(Wg)
3648
- class Xg extends mp{constructor(){super(Jd)}}fp("icon-circle-check",Xg),no.tagFor(Xg)
3649
- class Kg extends mp{constructor(){super(Yd)}}fp("icon-circle-filled",Kg),no.tagFor(Kg)
3650
- class Yg extends mp{constructor(){super(eh)}}fp("icon-circle-partial-broken",Yg),no.tagFor(Yg)
3651
- class Qg extends mp{constructor(){super(th)}}fp("icon-circle-slash",Qg),no.tagFor(Qg)
3652
- class Jg extends mp{constructor(){super(ih)}}fp("icon-circle-x",Jg),no.tagFor(Jg)
3653
- class ev extends mp{constructor(){super(oh)}}fp("icon-clipboard",ev),no.tagFor(ev)
3654
- class tv extends mp{constructor(){super(nh)}}fp("icon-clock",tv),no.tagFor(tv)
3655
- class iv extends mp{constructor(){super(sh)}}fp("icon-clock-cog",iv),no.tagFor(iv)
3656
- class ov extends mp{constructor(){super(rh)}}fp("icon-clock-triangle",ov),no.tagFor(ov)
3657
- class nv extends mp{constructor(){super(ah)}}fp("icon-clone",nv),no.tagFor(nv)
3658
- class sv extends mp{constructor(){super(lh)}}fp("icon-cloud",sv),no.tagFor(sv)
3659
- class rv extends mp{constructor(){super(ch)}}fp("icon-cloud-upload",rv),no.tagFor(rv)
3660
- class av extends mp{constructor(){super(dh)}}fp("icon-cloud-with-arrow",av),no.tagFor(av)
3661
- class lv extends mp{constructor(){super(hh)}}fp("icon-cog",lv),no.tagFor(lv)
3662
- class cv extends mp{constructor(){super(uh)}}fp("icon-cog-database",cv),no.tagFor(cv)
3663
- class dv extends mp{constructor(){super(ph)}}fp("icon-cog-database-inset",dv),no.tagFor(dv)
3664
- class hv extends mp{constructor(){super(gh)}}fp("icon-cog-small-cog",hv),no.tagFor(hv)
3665
- class uv extends mp{constructor(){super(vh)}}fp("icon-cog-zoomed",uv),no.tagFor(uv)
3666
- class pv extends mp{constructor(){super(mh)}}fp("icon-comment",pv),no.tagFor(pv)
3667
- class gv extends mp{constructor(){super(fh)}}fp("icon-computer-and-monitor",gv),no.tagFor(gv)
3668
- class vv extends mp{constructor(){super(bh)}}fp("icon-copy",vv),no.tagFor(vv)
3669
- class mv extends mp{constructor(){super(wh)}}fp("icon-copy-text",mv),no.tagFor(mv)
3670
- class fv extends mp{constructor(){super(xh)}}fp("icon-dashboard-builder",fv),no.tagFor(fv)
3671
- class bv extends mp{constructor(){super(yh)}}fp("icon-dashboard-builder-legend",bv),no.tagFor(bv)
3672
- class wv extends mp{constructor(){super($h)}}fp("icon-dashboard-builder-templates",wv),no.tagFor(wv)
3673
- class xv extends mp{constructor(){super(Ch)}}fp("icon-dashboard-builder-tile",xv),no.tagFor(xv)
3674
- class yv extends mp{constructor(){super(kh)}}fp("icon-database",yv),no.tagFor(yv)
3675
- class $v extends mp{constructor(){super(Sh)}}fp("icon-database-check",$v),no.tagFor($v)
3676
- class Cv extends mp{constructor(){super(_h)}}fp("icon-desktop",Cv),no.tagFor(Cv)
3677
- class kv extends mp{constructor(){super(Ih)}}fp("icon-donut-chart",kv),no.tagFor(kv)
3678
- class Sv extends mp{constructor(){super(Rh)}}fp("icon-dot-solid-dot-stroke",Sv),no.tagFor(Sv)
3679
- class _v extends mp{constructor(){super(Mh)}}fp("icon-dot-solid-dot-stroke-measurement",_v),no.tagFor(_v)
3680
- class Iv extends mp{constructor(){super(Ah)}}fp("icon-download",Iv),no.tagFor(Iv)
3681
- class Rv extends mp{constructor(){super(Oh)}}fp("icon-electronic-chip-zoomed",Rv),no.tagFor(Rv)
3682
- class Mv extends mp{constructor(){super(Vh)}}fp("icon-eye",Mv),no.tagFor(Mv)
3683
- class Av extends mp{constructor(){super(Fh)}}fp("icon-fancy-a",Av),no.tagFor(Av)
3684
- class Ov extends mp{constructor(){super(Hh)}}fp("icon-file",Ov),no.tagFor(Ov)
3685
- class Ev extends mp{constructor(){super(Ph)}}fp("icon-file-drawer",Ev),no.tagFor(Ev)
3686
- class Vv extends mp{constructor(){super(Th)}}fp("icon-file-export",Vv),no.tagFor(Vv)
3687
- class Fv extends mp{constructor(){super(Lh)}}fp("icon-file-search",Fv),no.tagFor(Fv)
3688
- class Hv extends mp{constructor(){super(Dh)}}fp("icon-filter",Hv),no.tagFor(Hv)
3689
- class Pv extends mp{constructor(){super(zh)}}fp("icon-floppy-disk",Pv),no.tagFor(Pv)
3690
- class Tv extends mp{constructor(){super(Bh)}}fp("icon-floppy-disk-checkmark",Tv),no.tagFor(Tv)
3691
- class Lv extends mp{constructor(){super(Nh)}}fp("icon-floppy-disk-star-arrow-right",Lv),no.tagFor(Lv)
3692
- class Dv extends mp{constructor(){super(Zh)}}fp("icon-floppy-disk-three-dots",Dv),no.tagFor(Dv)
3693
- class zv extends mp{constructor(){super(qh)}}fp("icon-folder",zv),no.tagFor(zv)
3694
- class Bv extends mp{constructor(){super(jh)}}fp("icon-folder-open",Bv),no.tagFor(Bv)
3695
- class Nv extends mp{constructor(){super(Uh)}}fp("icon-forward-slash",Nv),no.tagFor(Nv)
3696
- class Zv extends mp{constructor(){super(Gh)}}fp("icon-four-dots-square",Zv),no.tagFor(Zv)
3697
- class qv extends mp{constructor(){super(Wh)}}fp("icon-function",qv),no.tagFor(qv)
3698
- class jv extends mp{constructor(){super(Xh)}}fp("icon-gauge-simple",jv),no.tagFor(jv)
3699
- class Uv extends mp{constructor(){super(Kh)}}fp("icon-grid-three-by-three",Uv),no.tagFor(Uv)
3700
- class Gv extends mp{constructor(){super(Yh)}}fp("icon-grid-two-by-two",Gv),no.tagFor(Gv)
3701
- class Wv extends mp{constructor(){super(Qh)}}fp("icon-hammer",Wv),no.tagFor(Wv)
3702
- class Xv extends mp{constructor(){super(Jh)}}fp("icon-hashtag",Xv),no.tagFor(Xv)
3703
- class Kv extends mp{constructor(){super(eu)}}fp("icon-home",Kv),no.tagFor(Kv)
3704
- class Yv extends mp{constructor(){super(tu)}}fp("icon-hourglass",Yv),no.tagFor(Yv)
3705
- class Qv extends mp{constructor(){super(iu)}}fp("icon-indeterminant-checkbox",Qv),no.tagFor(Qv)
3706
- class Jv extends mp{constructor(){super(nu)}}fp("icon-info-circle",Jv),no.tagFor(Jv)
3707
- class em extends mp{constructor(){super(su)}}fp("icon-key",em),no.tagFor(em)
3708
- class tm extends mp{constructor(){super(ru)}}fp("icon-laptop",tm),no.tagFor(tm)
3709
- class im extends mp{constructor(){super(au)}}fp("icon-layer-group",im),no.tagFor(im)
3710
- class om extends mp{constructor(){super(lu)}}fp("icon-lightning-bolt",om),no.tagFor(om)
3711
- class nm extends mp{constructor(){super(cu)}}fp("icon-link",nm),no.tagFor(nm)
3712
- class sm extends mp{constructor(){super(du)}}fp("icon-link-cancel",sm),no.tagFor(sm)
3713
- class rm extends mp{constructor(){super(hu)}}fp("icon-list",rm),no.tagFor(rm)
3714
- class am extends mp{constructor(){super(uu)}}fp("icon-list-tree",am),no.tagFor(am)
3715
- class lm extends mp{constructor(){super(pu)}}fp("icon-list-tree-database",lm),no.tagFor(lm)
3716
- class cm extends mp{constructor(){super(gu)}}fp("icon-lock",cm),no.tagFor(cm)
3717
- class dm extends mp{constructor(){super(vu)}}fp("icon-magnifying-glass",dm),no.tagFor(dm)
3718
- class hm extends mp{constructor(){super(mu)}}fp("icon-markdown",hm),no.tagFor(hm)
3719
- class um extends mp{constructor(){super(fu)}}fp("icon-minus",um),no.tagFor(um)
3720
- class pm extends mp{constructor(){super(bu)}}fp("icon-minus-wide",pm)
3721
- const gm=no.tagFor(pm)
3722
- class vm extends mp{constructor(){super(wu)}}fp("icon-mobile",vm),no.tagFor(vm)
3723
- class mm extends mp{constructor(){super(xu)}}fp("icon-notebook",mm),no.tagFor(mm)
3724
- class fm extends mp{constructor(){super(yu)}}fp("icon-paste",fm),no.tagFor(fm)
3725
- class bm extends mp{constructor(){super($u)}}fp("icon-pencil",bm),no.tagFor(bm)
3726
- class wm extends mp{constructor(){super(Cu)}}fp("icon-pot-with-lid",wm),no.tagFor(wm)
3727
- class xm extends mp{constructor(){super(ku)}}fp("icon-question",xm),no.tagFor(xm)
3728
- class ym extends mp{constructor(){super(Su)}}fp("icon-running-arrow",ym),no.tagFor(ym)
3729
- class $m extends mp{constructor(){super(_u)}}fp("icon-server",$m),no.tagFor($m)
3730
- class Cm extends mp{constructor(){super(Iu)}}fp("icon-share-nodes",Cm),no.tagFor(Cm)
3731
- class km extends mp{constructor(){super(Ru)}}fp("icon-share-square",km),no.tagFor(km)
3732
- class Sm extends mp{constructor(){super(Mu)}}fp("icon-shield-check",Sm),no.tagFor(Sm)
3733
- class _m extends mp{constructor(){super(Au)}}fp("icon-shield-xmark",_m),no.tagFor(_m)
3734
- class Im extends mp{constructor(){super(Ou)}}fp("icon-signal-bars",Im),no.tagFor(Im)
3735
- class Rm extends mp{constructor(){super(Eu)}}fp("icon-sine-graph",Rm),no.tagFor(Rm)
3736
- class Mm extends mp{constructor(){super(Vu)}}fp("icon-skip-arrow",Mm),no.tagFor(Mm)
3737
- class Am extends mp{constructor(){super(Fu)}}fp("icon-spinner",Am),no.tagFor(Am)
3738
- class Om extends mp{constructor(){super(Hu)}}fp("icon-square-check",Om),no.tagFor(Om)
3739
- class Em extends mp{constructor(){super(Pu)}}fp("icon-square-t",Em),no.tagFor(Em)
3740
- class Vm extends mp{constructor(){super(Tu)}}fp("icon-t",Vm),no.tagFor(Vm)
3741
- class Fm extends mp{constructor(){super(Lu)}}fp("icon-tablet",Fm),no.tagFor(Fm)
3742
- class Hm extends mp{constructor(){super(Du)}}fp("icon-tag",Hm),no.tagFor(Hm)
3743
- class Pm extends mp{constructor(){super(zu)}}fp("icon-tags",Pm),no.tagFor(Pm)
3744
- class Tm extends mp{constructor(){super(Bu)}}fp("icon-target-crosshairs",Tm),no.tagFor(Tm)
3745
- class Lm extends mp{constructor(){super(Nu)}}fp("icon-target-crosshairs-progress",Lm),no.tagFor(Lm)
3746
- class Dm extends mp{constructor(){super(Zu)}}fp("icon-three-dots-line",Dm)
3747
- const zm=no.tagFor(Dm)
3748
- class Bm extends mp{constructor(){super(qu)}}fp("icon-three-vertical-lines",Bm),no.tagFor(Bm)
3749
- class Nm extends mp{constructor(){super(ju)}}fp("icon-thumbtack",Nm),no.tagFor(Nm)
3750
- class Zm extends mp{constructor(){super(Uu)}}fp("icon-tile-size",Zm),no.tagFor(Zm)
3751
- class qm extends mp{constructor(){super(Gu)}}fp("icon-times",qm),no.tagFor(qm)
3752
- class jm extends mp{constructor(){super(Wu)}}fp("icon-trash",jm),no.tagFor(jm)
3753
- class Um extends mp{constructor(){super(Xu)}}fp("icon-triangle",Um),no.tagFor(Um)
3754
- class Gm extends mp{constructor(){super(Yu)}}fp("icon-triangle-two-lines-horizontal",Gm),no.tagFor(Gm)
3755
- class Wm extends mp{constructor(){super(Qu)}}fp("icon-true-false-rectangle",Wm),no.tagFor(Wm)
3756
- class Xm extends mp{constructor(){super(Ju)}}fp("icon-two-squares-in-brackets",Xm),no.tagFor(Xm)
3757
- class Km extends mp{constructor(){super(ep)}}fp("icon-two-triangles-between-lines",Km),no.tagFor(Km)
3758
- class Ym extends mp{constructor(){super(tp)}}fp("icon-unlink",Ym),no.tagFor(Ym)
3759
- class Qm extends mp{constructor(){super(ip)}}fp("icon-unlock",Qm),no.tagFor(Qm)
3760
- class Jm extends mp{constructor(){super(op)}}fp("icon-upload",Jm),no.tagFor(Jm)
3761
- class ef extends mp{constructor(){super(np)}}fp("icon-user",ef),no.tagFor(ef)
3762
- class tf extends mp{constructor(){super(sp)}}fp("icon-watch",tf),no.tagFor(tf)
3763
- class of extends mp{constructor(){super(rp)}}fp("icon-waveform",of),no.tagFor(of)
3764
- class nf extends mp{constructor(){super(ap)}}fp("icon-webvi-custom",nf),no.tagFor(nf)
3765
- class sf extends mp{constructor(){super(lp)}}fp("icon-webvi-host",sf),no.tagFor(sf)
3766
- class rf extends mp{constructor(){super(cp)}}fp("icon-window-code",rf),no.tagFor(rf)
3767
- class af extends mp{constructor(){super(dp)}}fp("icon-window-text",af),no.tagFor(af)
3768
- class lf extends mp{constructor(){super(hp)}}fp("icon-wrench-hammer",lf),no.tagFor(lf)
3769
- class cf extends mp{constructor(){super(pp)}}fp("icon-xmark-check",cf),no.tagFor(cf)
3770
- const df=me`
3609
+ this.closeReason=e,this.closeDialog()}cancelHandler(e){return e.preventDefault(),this.preventDismiss||(this.closeReason=ng,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(kr,this.animationEndHandlerFunction)}animationEndHandler(){this.dialog.removeEventListener(kr,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)}}ug.UserDismissed=ng,e([ne],ug.prototype,"location",void 0),e([ne({attribute:"prevent-dismiss",mode:"boolean"})],ug.prototype,"preventDismiss",void 0),Mt(ug,Jt)
3610
+ const pg=ug.compose({baseName:"drawer",template:dg,styles:cg})
3611
+ no.getOrCreate().withPrefix("nimble").register(pg()),no.tagFor(ug)
3612
+ class gg extends mp{constructor(){super(wd)}}fp("icon-add",gg)
3613
+ const vg=no.tagFor(gg)
3614
+ class mg extends mp{constructor(){super(xd)}}fp("icon-arrow-down",mg)
3615
+ const fg=no.tagFor(mg)
3616
+ class bg extends mp{constructor(){super(yd)}}fp("icon-arrow-down-right-and-arrow-up-left",bg),no.tagFor(bg)
3617
+ class wg extends mp{constructor(){super(Cd)}}fp("icon-arrow-expander-left",wg),no.tagFor(wg)
3618
+ class xg extends mp{constructor(){super(kd)}}fp("icon-arrow-expander-right",xg)
3619
+ const yg=no.tagFor(xg)
3620
+ class $g extends mp{constructor(){super(Sd)}}fp("icon-arrow-expander-up",$g),no.tagFor($g)
3621
+ class Cg extends mp{constructor(){super(_d)}}fp("icon-arrow-left-from-line",Cg),no.tagFor(Cg)
3622
+ class kg extends mp{constructor(){super(Id)}}fp("icon-arrow-partial-rotate-left",kg),no.tagFor(kg)
3623
+ class Sg extends mp{constructor(){super(Rd)}}fp("icon-arrow-right-to-line",Sg),no.tagFor(Sg)
3624
+ class _g extends mp{constructor(){super(Md)}}fp("icon-arrow-rotate-right",_g),no.tagFor(_g)
3625
+ class Ig extends mp{constructor(){super(Ad)}}fp("icon-arrow-u-rotate-left",Ig),no.tagFor(Ig)
3626
+ class Rg extends mp{constructor(){super(Od)}}fp("icon-arrow-up",Rg)
3627
+ const Mg=no.tagFor(Rg)
3628
+ class Ag extends mp{constructor(){super(Ed)}}fp("icon-arrow-up-left-and-arrow-down-right",Ag),no.tagFor(Ag)
3629
+ class Og extends mp{constructor(){super(Vd)}}fp("icon-arrows-maximize",Og),no.tagFor(Og)
3630
+ class Eg extends mp{constructor(){super(Fd)}}fp("icon-arrows-repeat",Eg),no.tagFor(Eg)
3631
+ class Vg extends mp{constructor(){super(Hd)}}fp("icon-bars",Vg),no.tagFor(Vg)
3632
+ class Fg extends mp{constructor(){super(Pd)}}fp("icon-bell",Fg),no.tagFor(Fg)
3633
+ class Hg extends mp{constructor(){super(Td)}}fp("icon-bell-and-comment",Hg),no.tagFor(Hg)
3634
+ class Pg extends mp{constructor(){super(Ld)}}fp("icon-bell-circle",Pg),no.tagFor(Pg)
3635
+ class Tg extends mp{constructor(){super(Dd)}}fp("icon-bell-solid-circle",Tg),no.tagFor(Tg)
3636
+ class Lg extends mp{constructor(){super(zd)}}fp("icon-block-with-ribbon",Lg),no.tagFor(Lg)
3637
+ class Dg extends mp{constructor(){super(Bd)}}fp("icon-book-magnifying-glass",Dg),no.tagFor(Dg)
3638
+ class zg extends mp{constructor(){super(Nd)}}fp("icon-calendar",zg),no.tagFor(zg)
3639
+ class Bg extends mp{constructor(){super(Zd)}}fp("icon-chart-diagram",Bg),no.tagFor(Bg)
3640
+ class Ng extends mp{constructor(){super(qd)}}fp("icon-chart-diagram-child-focus",Ng),no.tagFor(Ng)
3641
+ class Zg extends mp{constructor(){super(jd)}}fp("icon-chart-diagram-parent-focus",Zg),no.tagFor(Zg)
3642
+ class qg extends mp{constructor(){super(Ud)}}fp("icon-chart-diagram-parent-focus-two-child",qg),no.tagFor(qg)
3643
+ class jg extends mp{constructor(){super(Gd)}}fp("icon-check",jg),no.tagFor(jg)
3644
+ class Ug extends mp{constructor(){super(Wd)}}fp("icon-check-dot",Ug),no.tagFor(Ug)
3645
+ class Gg extends mp{constructor(){super(Xd)}}fp("icon-check-large",Gg),no.tagFor(Gg)
3646
+ class Wg extends mp{constructor(){super(Kd)}}fp("icon-circle",Wg),no.tagFor(Wg)
3647
+ class Xg extends mp{constructor(){super(Qd)}}fp("icon-circle-broken",Xg),no.tagFor(Xg)
3648
+ class Kg extends mp{constructor(){super(Jd)}}fp("icon-circle-check",Kg),no.tagFor(Kg)
3649
+ class Yg extends mp{constructor(){super(Yd)}}fp("icon-circle-filled",Yg),no.tagFor(Yg)
3650
+ class Qg extends mp{constructor(){super(eh)}}fp("icon-circle-partial-broken",Qg),no.tagFor(Qg)
3651
+ class Jg extends mp{constructor(){super(th)}}fp("icon-circle-slash",Jg),no.tagFor(Jg)
3652
+ class ev extends mp{constructor(){super(ih)}}fp("icon-circle-x",ev),no.tagFor(ev)
3653
+ class tv extends mp{constructor(){super(oh)}}fp("icon-clipboard",tv),no.tagFor(tv)
3654
+ class iv extends mp{constructor(){super(nh)}}fp("icon-clock",iv),no.tagFor(iv)
3655
+ class ov extends mp{constructor(){super(sh)}}fp("icon-clock-cog",ov),no.tagFor(ov)
3656
+ class nv extends mp{constructor(){super(rh)}}fp("icon-clock-triangle",nv),no.tagFor(nv)
3657
+ class sv extends mp{constructor(){super(ah)}}fp("icon-clone",sv),no.tagFor(sv)
3658
+ class rv extends mp{constructor(){super(lh)}}fp("icon-cloud",rv),no.tagFor(rv)
3659
+ class av extends mp{constructor(){super(ch)}}fp("icon-cloud-upload",av),no.tagFor(av)
3660
+ class lv extends mp{constructor(){super(dh)}}fp("icon-cloud-with-arrow",lv),no.tagFor(lv)
3661
+ class cv extends mp{constructor(){super(hh)}}fp("icon-cog",cv),no.tagFor(cv)
3662
+ class dv extends mp{constructor(){super(uh)}}fp("icon-cog-database",dv),no.tagFor(dv)
3663
+ class hv extends mp{constructor(){super(ph)}}fp("icon-cog-database-inset",hv),no.tagFor(hv)
3664
+ class uv extends mp{constructor(){super(gh)}}fp("icon-cog-small-cog",uv),no.tagFor(uv)
3665
+ class pv extends mp{constructor(){super(vh)}}fp("icon-cog-zoomed",pv),no.tagFor(pv)
3666
+ class gv extends mp{constructor(){super(mh)}}fp("icon-comment",gv),no.tagFor(gv)
3667
+ class vv extends mp{constructor(){super(fh)}}fp("icon-computer-and-monitor",vv),no.tagFor(vv)
3668
+ class mv extends mp{constructor(){super(bh)}}fp("icon-copy",mv),no.tagFor(mv)
3669
+ class fv extends mp{constructor(){super(wh)}}fp("icon-copy-text",fv),no.tagFor(fv)
3670
+ class bv extends mp{constructor(){super(xh)}}fp("icon-dashboard-builder",bv),no.tagFor(bv)
3671
+ class wv extends mp{constructor(){super(yh)}}fp("icon-dashboard-builder-legend",wv),no.tagFor(wv)
3672
+ class xv extends mp{constructor(){super($h)}}fp("icon-dashboard-builder-templates",xv),no.tagFor(xv)
3673
+ class yv extends mp{constructor(){super(Ch)}}fp("icon-dashboard-builder-tile",yv),no.tagFor(yv)
3674
+ class $v extends mp{constructor(){super(kh)}}fp("icon-database",$v),no.tagFor($v)
3675
+ class Cv extends mp{constructor(){super(Sh)}}fp("icon-database-check",Cv),no.tagFor(Cv)
3676
+ class kv extends mp{constructor(){super(_h)}}fp("icon-desktop",kv),no.tagFor(kv)
3677
+ class Sv extends mp{constructor(){super(Ih)}}fp("icon-donut-chart",Sv),no.tagFor(Sv)
3678
+ class _v extends mp{constructor(){super(Rh)}}fp("icon-dot-solid-dot-stroke",_v),no.tagFor(_v)
3679
+ class Iv extends mp{constructor(){super(Mh)}}fp("icon-dot-solid-dot-stroke-measurement",Iv),no.tagFor(Iv)
3680
+ class Rv extends mp{constructor(){super(Ah)}}fp("icon-download",Rv),no.tagFor(Rv)
3681
+ class Mv extends mp{constructor(){super(Oh)}}fp("icon-electronic-chip-zoomed",Mv),no.tagFor(Mv)
3682
+ class Av extends mp{constructor(){super(Vh)}}fp("icon-eye",Av),no.tagFor(Av)
3683
+ class Ov extends mp{constructor(){super(Fh)}}fp("icon-fancy-a",Ov),no.tagFor(Ov)
3684
+ class Ev extends mp{constructor(){super(Hh)}}fp("icon-file",Ev),no.tagFor(Ev)
3685
+ class Vv extends mp{constructor(){super(Ph)}}fp("icon-file-drawer",Vv),no.tagFor(Vv)
3686
+ class Fv extends mp{constructor(){super(Th)}}fp("icon-file-export",Fv),no.tagFor(Fv)
3687
+ class Hv extends mp{constructor(){super(Lh)}}fp("icon-file-search",Hv),no.tagFor(Hv)
3688
+ class Pv extends mp{constructor(){super(Dh)}}fp("icon-filter",Pv),no.tagFor(Pv)
3689
+ class Tv extends mp{constructor(){super(zh)}}fp("icon-floppy-disk",Tv),no.tagFor(Tv)
3690
+ class Lv extends mp{constructor(){super(Bh)}}fp("icon-floppy-disk-checkmark",Lv),no.tagFor(Lv)
3691
+ class Dv extends mp{constructor(){super(Nh)}}fp("icon-floppy-disk-star-arrow-right",Dv),no.tagFor(Dv)
3692
+ class zv extends mp{constructor(){super(Zh)}}fp("icon-floppy-disk-three-dots",zv),no.tagFor(zv)
3693
+ class Bv extends mp{constructor(){super(qh)}}fp("icon-folder",Bv),no.tagFor(Bv)
3694
+ class Nv extends mp{constructor(){super(jh)}}fp("icon-folder-open",Nv),no.tagFor(Nv)
3695
+ class Zv extends mp{constructor(){super(Uh)}}fp("icon-forward-slash",Zv),no.tagFor(Zv)
3696
+ class qv extends mp{constructor(){super(Gh)}}fp("icon-four-dots-square",qv),no.tagFor(qv)
3697
+ class jv extends mp{constructor(){super(Wh)}}fp("icon-function",jv),no.tagFor(jv)
3698
+ class Uv extends mp{constructor(){super(Xh)}}fp("icon-gauge-simple",Uv),no.tagFor(Uv)
3699
+ class Gv extends mp{constructor(){super(Kh)}}fp("icon-grid-three-by-three",Gv),no.tagFor(Gv)
3700
+ class Wv extends mp{constructor(){super(Yh)}}fp("icon-grid-two-by-two",Wv),no.tagFor(Wv)
3701
+ class Xv extends mp{constructor(){super(Qh)}}fp("icon-hammer",Xv),no.tagFor(Xv)
3702
+ class Kv extends mp{constructor(){super(Jh)}}fp("icon-hashtag",Kv),no.tagFor(Kv)
3703
+ class Yv extends mp{constructor(){super(eu)}}fp("icon-home",Yv),no.tagFor(Yv)
3704
+ class Qv extends mp{constructor(){super(tu)}}fp("icon-hourglass",Qv),no.tagFor(Qv)
3705
+ class Jv extends mp{constructor(){super(iu)}}fp("icon-indeterminant-checkbox",Jv),no.tagFor(Jv)
3706
+ class em extends mp{constructor(){super(nu)}}fp("icon-info-circle",em),no.tagFor(em)
3707
+ class tm extends mp{constructor(){super(su)}}fp("icon-key",tm),no.tagFor(tm)
3708
+ class im extends mp{constructor(){super(ru)}}fp("icon-laptop",im),no.tagFor(im)
3709
+ class om extends mp{constructor(){super(au)}}fp("icon-layer-group",om),no.tagFor(om)
3710
+ class nm extends mp{constructor(){super(lu)}}fp("icon-lightning-bolt",nm),no.tagFor(nm)
3711
+ class sm extends mp{constructor(){super(cu)}}fp("icon-link",sm),no.tagFor(sm)
3712
+ class rm extends mp{constructor(){super(du)}}fp("icon-link-cancel",rm),no.tagFor(rm)
3713
+ class am extends mp{constructor(){super(hu)}}fp("icon-list",am),no.tagFor(am)
3714
+ class lm extends mp{constructor(){super(uu)}}fp("icon-list-tree",lm),no.tagFor(lm)
3715
+ class cm extends mp{constructor(){super(pu)}}fp("icon-list-tree-database",cm),no.tagFor(cm)
3716
+ class dm extends mp{constructor(){super(gu)}}fp("icon-lock",dm),no.tagFor(dm)
3717
+ class hm extends mp{constructor(){super(vu)}}fp("icon-magnifying-glass",hm),no.tagFor(hm)
3718
+ class um extends mp{constructor(){super(mu)}}fp("icon-markdown",um),no.tagFor(um)
3719
+ class pm extends mp{constructor(){super(fu)}}fp("icon-minus",pm),no.tagFor(pm)
3720
+ class gm extends mp{constructor(){super(bu)}}fp("icon-minus-wide",gm)
3721
+ const vm=no.tagFor(gm)
3722
+ class mm extends mp{constructor(){super(wu)}}fp("icon-mobile",mm),no.tagFor(mm)
3723
+ class fm extends mp{constructor(){super(xu)}}fp("icon-notebook",fm),no.tagFor(fm)
3724
+ class bm extends mp{constructor(){super(yu)}}fp("icon-paste",bm),no.tagFor(bm)
3725
+ class wm extends mp{constructor(){super($u)}}fp("icon-pencil",wm),no.tagFor(wm)
3726
+ class xm extends mp{constructor(){super(Cu)}}fp("icon-pot-with-lid",xm),no.tagFor(xm)
3727
+ class ym extends mp{constructor(){super(ku)}}fp("icon-question",ym),no.tagFor(ym)
3728
+ class $m extends mp{constructor(){super(Su)}}fp("icon-running-arrow",$m),no.tagFor($m)
3729
+ class Cm extends mp{constructor(){super(_u)}}fp("icon-server",Cm),no.tagFor(Cm)
3730
+ class km extends mp{constructor(){super(Iu)}}fp("icon-share-nodes",km),no.tagFor(km)
3731
+ class Sm extends mp{constructor(){super(Ru)}}fp("icon-share-square",Sm),no.tagFor(Sm)
3732
+ class _m extends mp{constructor(){super(Mu)}}fp("icon-shield-check",_m),no.tagFor(_m)
3733
+ class Im extends mp{constructor(){super(Au)}}fp("icon-shield-xmark",Im),no.tagFor(Im)
3734
+ class Rm extends mp{constructor(){super(Ou)}}fp("icon-signal-bars",Rm),no.tagFor(Rm)
3735
+ class Mm extends mp{constructor(){super(Eu)}}fp("icon-sine-graph",Mm),no.tagFor(Mm)
3736
+ class Am extends mp{constructor(){super(Vu)}}fp("icon-skip-arrow",Am),no.tagFor(Am)
3737
+ class Om extends mp{constructor(){super(Fu)}}fp("icon-spinner",Om),no.tagFor(Om)
3738
+ class Em extends mp{constructor(){super(Hu)}}fp("icon-square-check",Em),no.tagFor(Em)
3739
+ class Vm extends mp{constructor(){super(Pu)}}fp("icon-square-t",Vm),no.tagFor(Vm)
3740
+ class Fm extends mp{constructor(){super(Tu)}}fp("icon-t",Fm),no.tagFor(Fm)
3741
+ class Hm extends mp{constructor(){super(Lu)}}fp("icon-tablet",Hm),no.tagFor(Hm)
3742
+ class Pm extends mp{constructor(){super(Du)}}fp("icon-tag",Pm),no.tagFor(Pm)
3743
+ class Tm extends mp{constructor(){super(zu)}}fp("icon-tags",Tm),no.tagFor(Tm)
3744
+ class Lm extends mp{constructor(){super(Bu)}}fp("icon-target-crosshairs",Lm),no.tagFor(Lm)
3745
+ class Dm extends mp{constructor(){super(Nu)}}fp("icon-target-crosshairs-progress",Dm),no.tagFor(Dm)
3746
+ class zm extends mp{constructor(){super(Zu)}}fp("icon-three-dots-line",zm)
3747
+ const Bm=no.tagFor(zm)
3748
+ class Nm extends mp{constructor(){super(qu)}}fp("icon-three-vertical-lines",Nm),no.tagFor(Nm)
3749
+ class Zm extends mp{constructor(){super(ju)}}fp("icon-thumbtack",Zm),no.tagFor(Zm)
3750
+ class qm extends mp{constructor(){super(Uu)}}fp("icon-tile-size",qm),no.tagFor(qm)
3751
+ class jm extends mp{constructor(){super(Gu)}}fp("icon-times",jm),no.tagFor(jm)
3752
+ class Um extends mp{constructor(){super(Wu)}}fp("icon-trash",Um),no.tagFor(Um)
3753
+ class Gm extends mp{constructor(){super(Xu)}}fp("icon-triangle",Gm),no.tagFor(Gm)
3754
+ class Wm extends mp{constructor(){super(Yu)}}fp("icon-triangle-two-lines-horizontal",Wm),no.tagFor(Wm)
3755
+ class Xm extends mp{constructor(){super(Qu)}}fp("icon-true-false-rectangle",Xm),no.tagFor(Xm)
3756
+ class Km extends mp{constructor(){super(Ju)}}fp("icon-two-squares-in-brackets",Km),no.tagFor(Km)
3757
+ class Ym extends mp{constructor(){super(ep)}}fp("icon-two-triangles-between-lines",Ym),no.tagFor(Ym)
3758
+ class Qm extends mp{constructor(){super(tp)}}fp("icon-unlink",Qm),no.tagFor(Qm)
3759
+ class Jm extends mp{constructor(){super(ip)}}fp("icon-unlock",Jm),no.tagFor(Jm)
3760
+ class ef extends mp{constructor(){super(op)}}fp("icon-upload",ef),no.tagFor(ef)
3761
+ class tf extends mp{constructor(){super(np)}}fp("icon-user",tf),no.tagFor(tf)
3762
+ class of extends mp{constructor(){super(sp)}}fp("icon-watch",of),no.tagFor(of)
3763
+ class nf extends mp{constructor(){super(rp)}}fp("icon-waveform",nf),no.tagFor(nf)
3764
+ class sf extends mp{constructor(){super(ap)}}fp("icon-webvi-custom",sf),no.tagFor(sf)
3765
+ class rf extends mp{constructor(){super(lp)}}fp("icon-webvi-host",rf),no.tagFor(rf)
3766
+ class af extends mp{constructor(){super(cp)}}fp("icon-window-code",af),no.tagFor(af)
3767
+ class lf extends mp{constructor(){super(dp)}}fp("icon-window-text",lf),no.tagFor(lf)
3768
+ class cf extends mp{constructor(){super(hp)}}fp("icon-wrench-hammer",cf),no.tagFor(cf)
3769
+ class df extends mp{constructor(){super(pp)}}fp("icon-xmark-check",df),no.tagFor(df)
3770
+ const hf=me`
3771
3771
  ${bn("flex")}
3772
3772
 
3773
3773
  :host {
@@ -3822,7 +3822,7 @@ const df=me`
3822
3822
  outline: none;
3823
3823
  }
3824
3824
  `
3825
- class hf extends yi{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 uf=hf.compose({baseName:"list-option",baseClass:yi,template:(e,t)=>G`
3825
+ class uf extends yi{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 pf=uf.compose({baseName:"list-option",baseClass:yi,template:(e,t)=>G`
3826
3826
  <template
3827
3827
  aria-checked="${e=>e.ariaChecked}"
3828
3828
  aria-disabled="${e=>e.ariaDisabled}"
@@ -3838,9 +3838,9 @@ class hf extends yi{get value(){return super.value}set value(e){super.value=`${e
3838
3838
  </span>
3839
3839
  ${Be(0,t)}
3840
3840
  </template>
3841
- `,styles:df})
3842
- no.getOrCreate().withPrefix("nimble").register(uf()),no.tagFor(hf)
3843
- const pf=me`
3841
+ `,styles:hf})
3842
+ no.getOrCreate().withPrefix("nimble").register(pf()),no.tagFor(uf)
3843
+ const gf=me`
3844
3844
  ${bn("grid")}
3845
3845
 
3846
3846
  :host {
@@ -3888,7 +3888,7 @@ const pf=me`
3888
3888
  background: ${ls(qn,.15)};
3889
3889
  }
3890
3890
  `))
3891
- class gf extends yo{}const vf=gf.compose({baseName:"menu",baseClass:yo,template:(e,t)=>G`
3891
+ class vf extends yo{}const mf=vf.compose({baseName:"menu",baseClass:yo,template:(e,t)=>G`
3892
3892
  <template
3893
3893
  slot="${e=>e.slot?e.slot:e.isNestedMenu()?"submenu":void 0}"
3894
3894
  role="menu"
@@ -3897,9 +3897,9 @@ class gf extends yo{}const vf=gf.compose({baseName:"menu",baseClass:yo,template:
3897
3897
  >
3898
3898
  <slot ${Te("items")}></slot>
3899
3899
  </template>
3900
- `,styles:pf})
3901
- no.getOrCreate().withPrefix("nimble").register(vf()),no.tagFor(gf)
3902
- const mf=me`
3900
+ `,styles:gf})
3901
+ no.getOrCreate().withPrefix("nimble").register(mf()),no.tagFor(vf)
3902
+ const ff=me`
3903
3903
  ${bn("inline-block")}
3904
3904
 
3905
3905
  :host {
@@ -3915,12 +3915,12 @@ const mf=me`
3915
3915
  margin-top: ${oa};
3916
3916
  margin-bottom: ${oa};
3917
3917
  }
3918
- `,ff=G`
3918
+ `,bf=G`
3919
3919
  <template
3920
3920
  ?open="${e=>e.open}"
3921
3921
  @focusout="${(e,t)=>e.focusoutHandler(t.event)}"
3922
3922
  >
3923
- <${jp}
3923
+ <${Up}
3924
3924
  part="button"
3925
3925
  appearance="${e=>e.appearance}"
3926
3926
  ?content-hidden="${e=>e.contentHidden}"
@@ -3937,7 +3937,7 @@ const mf=me`
3937
3937
  <slot slot="start" name="start"></slot>
3938
3938
  <slot></slot>
3939
3939
  <slot slot="end" name="end"></slot>
3940
- </${jp}>
3940
+ </${Up}>
3941
3941
  ${Ie((e=>e.open),G`
3942
3942
  <${dd}
3943
3943
  fixed-placement="true"
@@ -3956,8 +3956,8 @@ const mf=me`
3956
3956
  </${dd}>
3957
3957
  `)}
3958
3958
  </template>
3959
- `,bf="auto"
3960
- class wf extends _t{constructor(){super(...arguments),this.appearance=Tc,this.disabled=!1,this.contentHidden=!1,this.open=!1,this.position=bf,this.focusLastItemWhenOpened=!1,this.menuChangeHandler=()=>{this.setOpen(!1),this.toggleButton.focus()}}disconnectedCallback(){super.disconnectedCallback(),this.region&&this.region.removeEventListener(Sr,this.menuChangeHandler)}toggleButtonChanged(e,t){this.region&&this.toggleButton&&(this.region.anchorElement=this.toggleButton)}regionChanged(e,t){e&&e.removeEventListener(Sr,this.menuChangeHandler),this.region&&(this.toggleButton&&(this.region.anchorElement=this.toggleButton),this.region.addEventListener(Sr,this.menuChangeHandler,{capture:!0}))}openChanged(e,t){if(this.toggleButton&&(this.toggleButton.checked=this.open),!this.open){const e={oldState:!0,newState:!1}
3959
+ `,wf="auto"
3960
+ class xf extends _t{constructor(){super(...arguments),this.appearance=Tc,this.disabled=!1,this.contentHidden=!1,this.open=!1,this.position=wf,this.focusLastItemWhenOpened=!1,this.menuChangeHandler=()=>{this.setOpen(!1),this.toggleButton.focus()}}disconnectedCallback(){super.disconnectedCallback(),this.region&&this.region.removeEventListener(Sr,this.menuChangeHandler)}toggleButtonChanged(e,t){this.region&&this.toggleButton&&(this.region.anchorElement=this.toggleButton)}regionChanged(e,t){e&&e.removeEventListener(Sr,this.menuChangeHandler),this.region&&(this.toggleButton&&(this.region.anchorElement=this.toggleButton),this.region.addEventListener(Sr,this.menuChangeHandler,{capture:!0}))}openChanged(e,t){if(this.toggleButton&&(this.toggleButton.checked=this.open),!this.open){const e={oldState:!0,newState:!1}
3961
3961
  this.$emit("toggle",e)}}regionLoadedHandler(){this.focusLastItemWhenOpened?(this.focusLastMenuItem(),this.focusLastItemWhenOpened=!1):this.focusMenu()
3962
3962
  this.$emit("toggle",{oldState:!1,newState:!0})}focusoutHandler(e){if(!this.open)return!0
3963
3963
  const t=e.relatedTarget
@@ -3971,10 +3971,10 @@ for(;e;){if("menu"===e.getAttribute("role"))return e
3971
3971
  if(!this.isSlotElement(e))return
3972
3972
  {const t=e.assignedNodes()[0]
3973
3973
  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]")
3974
- if(e?.length){e[e.length-1].focus()}}}e([ne],wf.prototype,"appearance",void 0),e([ne({mode:"boolean"})],wf.prototype,"disabled",void 0),e([ne({attribute:"content-hidden",mode:"boolean"})],wf.prototype,"contentHidden",void 0),e([ne({mode:"boolean"})],wf.prototype,"open",void 0),e([ne({attribute:"position"})],wf.prototype,"position",void 0),e([m],wf.prototype,"toggleButton",void 0),e([m],wf.prototype,"region",void 0),e([m],wf.prototype,"slottedMenus",void 0)
3975
- const xf=wf.compose({baseName:"menu-button",template:ff,styles:mf,shadowOptions:{delegatesFocus:!0}})
3976
- no.getOrCreate().withPrefix("nimble").register(xf())
3977
- const yf=no.tagFor(wf),$f=me`
3974
+ if(e?.length){e[e.length-1].focus()}}}e([ne],xf.prototype,"appearance",void 0),e([ne({mode:"boolean"})],xf.prototype,"disabled",void 0),e([ne({attribute:"content-hidden",mode:"boolean"})],xf.prototype,"contentHidden",void 0),e([ne({mode:"boolean"})],xf.prototype,"open",void 0),e([ne({attribute:"position"})],xf.prototype,"position",void 0),e([m],xf.prototype,"toggleButton",void 0),e([m],xf.prototype,"region",void 0),e([m],xf.prototype,"slottedMenus",void 0)
3975
+ const yf=xf.compose({baseName:"menu-button",template:bf,styles:ff,shadowOptions:{delegatesFocus:!0}})
3976
+ no.getOrCreate().withPrefix("nimble").register(yf())
3977
+ const $f=no.tagFor(xf),Cf=me`
3978
3978
  ${bn("grid")}
3979
3979
 
3980
3980
  :host {
@@ -4053,7 +4053,7 @@ const yf=no.tagFor(wf),$f=me`
4053
4053
  grid-column: 3;
4054
4054
  }
4055
4055
  `
4056
- class Cf extends xo{}const kf=Cf.compose({baseName:"menu-item",baseClass:xo,template:(e,t)=>G`
4056
+ class kf extends xo{}const Sf=kf.compose({baseName:"menu-item",baseClass:xo,template:(e,t)=>G`
4057
4057
  <template
4058
4058
  role="${e=>e.role}"
4059
4059
  aria-haspopup="${e=>e.hasSubmenu?"menu":void 0}"
@@ -4120,11 +4120,11 @@ class Cf extends xo{}const kf=Cf.compose({baseName:"menu-item",baseClass:xo,temp
4120
4120
  </${e.tagFor(oi)}>
4121
4121
  `)}
4122
4122
  </template>
4123
- `,styles:$f,expandCollapseGlyph:kd.data})
4124
- no.getOrCreate().withPrefix("nimble").register(kf()),no.tagFor(Cf)
4125
- const Sf="underline",_f="outline",If="block",Rf=me`
4123
+ `,styles:Cf,expandCollapseGlyph:kd.data})
4124
+ no.getOrCreate().withPrefix("nimble").register(Sf()),no.tagFor(kf)
4125
+ const _f="underline",If="outline",Rf="block",Mf=me`
4126
4126
  ${bn("inline-block")}
4127
- ${Jp}
4127
+ ${eg}
4128
4128
 
4129
4129
  :host {
4130
4130
  font: ${yl};
@@ -4270,12 +4270,12 @@ const Sf="underline",_f="outline",If="block",Rf=me`
4270
4270
  order: 1;
4271
4271
  padding-right: calc(${na} / 4);
4272
4272
  }
4273
- `.withBehaviors(Bc(Sf,me`
4273
+ `.withBehaviors(Bc(_f,me`
4274
4274
  .root {
4275
4275
  border-bottom-width: ${sa};
4276
4276
  padding-bottom: 0;
4277
4277
  }
4278
- `),Bc(If,me`
4278
+ `),Bc(Rf,me`
4279
4279
  .root {
4280
4280
  background-color: rgba(${Ur}, 0.1);
4281
4281
  }
@@ -4293,14 +4293,14 @@ const Sf="underline",_f="outline",If="block",Rf=me`
4293
4293
  :host([disabled]) .root {
4294
4294
  background-color: rgba(${Ur}, 0.07);
4295
4295
  }
4296
- `),Bc(_f,me`
4296
+ `),Bc(If,me`
4297
4297
  .root {
4298
4298
  border-width: ${sa};
4299
4299
  padding: 0;
4300
4300
  }
4301
4301
  `))
4302
- class Mf extends Mo{constructor(){super(...arguments),this.appearance=Sf,this.errorVisible=!1}connectedCallback(){super.connectedCallback(),this.control.setAttribute("role","spinbutton")}}e([ne],Mf.prototype,"appearance",void 0),e([ne({attribute:"error-text"})],Mf.prototype,"errorText",void 0),e([ne({attribute:"error-visible",mode:"boolean"})],Mf.prototype,"errorVisible",void 0)
4303
- const Af=Mf.compose({baseName:"number-field",baseClass:Mo,template:(e,t)=>G`
4302
+ class Af extends Mo{constructor(){super(...arguments),this.appearance=_f,this.errorVisible=!1}connectedCallback(){super.connectedCallback(),this.control.setAttribute("role","spinbutton")}}e([ne],Af.prototype,"appearance",void 0),e([ne({attribute:"error-text"})],Af.prototype,"errorText",void 0),e([ne({attribute:"error-visible",mode:"boolean"})],Af.prototype,"errorVisible",void 0)
4303
+ const Of=Af.compose({baseName:"number-field",baseClass:Mo,template:(e,t)=>G`
4304
4304
  <template class="${e=>e.readOnly?"readonly":""}">
4305
4305
  <label
4306
4306
  part="label"
@@ -4375,7 +4375,7 @@ const Af=Mf.compose({baseName:"number-field",baseClass:Mo,template:(e,t)=>G`
4375
4375
  ${Be(0,t)}
4376
4376
  </div>
4377
4377
  </template>
4378
- `,styles:Rf,shadowOptions:{delegatesFocus:!0},stepDownGlyph:G`
4378
+ `,styles:Mf,shadowOptions:{delegatesFocus:!0},stepDownGlyph:G`
4379
4379
  <${bd}
4380
4380
  class="step-up-down-button"
4381
4381
  appearance="ghost"
@@ -4383,10 +4383,10 @@ const Af=Mf.compose({baseName:"number-field",baseClass:Mo,template:(e,t)=>G`
4383
4383
  tabindex="-1"
4384
4384
  >
4385
4385
  "Decrement"
4386
- <${gm}
4386
+ <${vm}
4387
4387
  slot="start"
4388
4388
  >
4389
- </${gm}>
4389
+ </${vm}>
4390
4390
  </${bd}>
4391
4391
  `,stepUpGlyph:G`
4392
4392
  <${bd}
@@ -4396,19 +4396,19 @@ const Af=Mf.compose({baseName:"number-field",baseClass:Mo,template:(e,t)=>G`
4396
4396
  tabindex="-1"
4397
4397
  >
4398
4398
  "Increment"
4399
- <${gg}
4399
+ <${vg}
4400
4400
  slot="start">
4401
- </${gg}>
4401
+ </${vg}>
4402
4402
  </${bd}>
4403
4403
  `,end:G`
4404
4404
  <${wp}
4405
4405
  severity="error"
4406
4406
  class="error-icon"
4407
4407
  ></${wp}>
4408
- ${Up}
4408
+ ${Gp}
4409
4409
  `})
4410
- no.getOrCreate().withPrefix("nimble").register(Af()),no.tagFor(Mf)
4411
- const Of=me`
4410
+ no.getOrCreate().withPrefix("nimble").register(Of()),no.tagFor(Af)
4411
+ const Ef=me`
4412
4412
  ${bn("inline-flex")}
4413
4413
 
4414
4414
  :host {
@@ -4495,7 +4495,7 @@ const Of=me`
4495
4495
  fill: rgba(${Ur}, 0.3);
4496
4496
  }
4497
4497
  `
4498
- class Ef extends Vo{}const Vf=Ef.compose({baseName:"radio",baseClass:Vo,template:(e,t)=>G`
4498
+ class Vf extends Vo{}const Ff=Vf.compose({baseName:"radio",baseClass:Vo,template:(e,t)=>G`
4499
4499
  <template
4500
4500
  role="radio"
4501
4501
  class="${e=>e.checked?"checked":""} ${e=>e.readOnly?"readonly":""}"
@@ -4518,9 +4518,9 @@ class Ef extends Vo{}const Vf=Ef.compose({baseName:"radio",baseClass:Vo,template
4518
4518
  <slot ${Te("defaultSlottedNodes")}></slot>
4519
4519
  </label>
4520
4520
  </template>
4521
- `,styles:Of,checkedIndicator:Yd.data})
4522
- no.getOrCreate().withPrefix("nimble").register(Vf()),no.tagFor(Ef)
4523
- const Ff=me`
4521
+ `,styles:Ef,checkedIndicator:Yd.data})
4522
+ no.getOrCreate().withPrefix("nimble").register(Ff()),no.tagFor(Vf)
4523
+ const Hf=me`
4524
4524
  ${bn("inline-block")}
4525
4525
 
4526
4526
  .positioning-region {
@@ -4545,7 +4545,7 @@ const Ff=me`
4545
4545
  color: ${Dl};
4546
4546
  }
4547
4547
  `
4548
- class Hf extends Ao{}const Pf=Hf.compose({baseName:"radio-group",baseClass:Ao,template:(e,t)=>G`
4548
+ class Pf extends Ao{}const Tf=Pf.compose({baseName:"radio-group",baseClass:Ao,template:(e,t)=>G`
4549
4549
  <template
4550
4550
  role="radiogroup"
4551
4551
  aria-disabled="${e=>e.disabled}"
@@ -4564,11 +4564,11 @@ class Hf extends Ao{}const Pf=Hf.compose({baseName:"radio-group",baseClass:Ao,te
4564
4564
  ></slot>
4565
4565
  </div>
4566
4566
  </template>
4567
- `,styles:Ff,shadowOptions:{delegatesFocus:!0}})
4568
- no.getOrCreate().withPrefix("nimble").register(Pf()),no.tagFor(Hf)
4569
- const Tf=me`
4570
- ${Qp}
4567
+ `,styles:Hf,shadowOptions:{delegatesFocus:!0}})
4568
+ no.getOrCreate().withPrefix("nimble").register(Tf()),no.tagFor(Pf)
4569
+ const Lf=me`
4571
4570
  ${Jp}
4571
+ ${eg}
4572
4572
 
4573
4573
  ${""}
4574
4574
  [part='selected-value'] {
@@ -4586,15 +4586,15 @@ const Tf=me`
4586
4586
  .end {
4587
4587
  display: contents;
4588
4588
  }
4589
- `.withBehaviors(Bc(Yp,me`
4589
+ `.withBehaviors(Bc(Qp,me`
4590
4590
  :host([error-visible]) .control {
4591
4591
  border-bottom-width: ${sa};
4592
4592
  padding-bottom: 0;
4593
4593
  }
4594
4594
  `))
4595
- class Lf extends To{constructor(){super(...arguments),this.appearance=Xp,this.errorVisible=!1}setPositioning(){this.$fastController.isConnected&&(super.setPositioning(),this.updateListboxMaxHeightCssVariable())}slottedOptionsChanged(e,t){const i=this.value
4596
- 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],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)
4597
- const Df=Lf.compose({baseName:"select",baseClass:To,template:(e,t)=>G`
4595
+ class Df extends To{constructor(){super(...arguments),this.appearance=Kp,this.errorVisible=!1}setPositioning(){this.$fastController.isConnected&&(super.setPositioning(),this.updateListboxMaxHeightCssVariable())}slottedOptionsChanged(e,t){const i=this.value
4596
+ 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],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)
4597
+ const zf=Df.compose({baseName:"select",baseClass:To,template:(e,t)=>G`
4598
4598
  <template
4599
4599
  class="${e=>[e.collapsible&&"collapsible",e.collapsible&&e.open&&"open",e.disabled&&"disabled",e.collapsible&&e.position].filter(Boolean).join(" ")}"
4600
4600
  aria-activedescendant="${e=>e.ariaActiveDescendant}"
@@ -4647,15 +4647,15 @@ const Df=Lf.compose({baseName:"select",baseClass:To,template:(e,t)=>G`
4647
4647
  ></slot>
4648
4648
  </div>
4649
4649
  </template>
4650
- `,styles:Tf,indicator:$d.data,end:G`
4650
+ `,styles:Lf,indicator:$d.data,end:G`
4651
4651
  <${wp}
4652
4652
  severity="error"
4653
4653
  class="error-icon"
4654
4654
  ></${wp}>
4655
- ${Up}
4655
+ ${Gp}
4656
4656
  `})
4657
- no.getOrCreate().withPrefix("nimble").register(Df()),no.tagFor(Lf)
4658
- const zf=me`
4657
+ no.getOrCreate().withPrefix("nimble").register(zf()),no.tagFor(Df)
4658
+ const Bf=me`
4659
4659
  ${bn("inline-flex")}
4660
4660
 
4661
4661
  :host {
@@ -4789,7 +4789,7 @@ const zf=me`
4789
4789
  :host {
4790
4790
  --ni-private-spinner-bits-background-color: ${qn};
4791
4791
  }
4792
- `)),Bf=G`
4792
+ `)),Nf=G`
4793
4793
  <template role="progressbar">
4794
4794
  <div class="container">
4795
4795
  <div class="bit1"></div>
@@ -4797,9 +4797,9 @@ const zf=me`
4797
4797
  </div>
4798
4798
  </template>
4799
4799
  `
4800
- class Nf extends _t{}const Zf=Nf.compose({baseName:"spinner",template:Bf,styles:zf})
4801
- no.getOrCreate().withPrefix("nimble").register(Zf()),no.tagFor(Nf)
4802
- const qf=me`
4800
+ class Zf extends _t{}const qf=Zf.compose({baseName:"spinner",template:Nf,styles:Bf})
4801
+ no.getOrCreate().withPrefix("nimble").register(qf()),no.tagFor(Zf)
4802
+ const jf=me`
4803
4803
  ${bn("inline-flex")}
4804
4804
 
4805
4805
  :host {
@@ -4959,7 +4959,7 @@ const qf=me`
4959
4959
  --ni-private-switch-indicator-border-color: ${qn};
4960
4960
  --ni-private-switch-indicator-border-disabled-color: ${ls(qn,.3)};
4961
4961
  }
4962
- `)),jf=G`
4962
+ `)),Uf=G`
4963
4963
  <template
4964
4964
  role="switch"
4965
4965
  aria-checked="${e=>e.checked}"
@@ -4994,15 +4994,15 @@ const qf=me`
4994
4994
  </div>
4995
4995
  </template>
4996
4996
  `
4997
- class Uf extends Bo{}const Gf=Uf.compose({baseClass:Bo,baseName:"switch",template:jf,styles:qf})
4998
- no.getOrCreate().withPrefix("nimble").register(Gf()),no.tagFor(Uf)
4999
- class Wf extends Zo{}const Xf=Wf.compose({baseName:"tab",baseClass:Zo,template:(e,t)=>G`
4997
+ class Gf extends Bo{}const Wf=Gf.compose({baseClass:Bo,baseName:"switch",template:Uf,styles:jf})
4998
+ no.getOrCreate().withPrefix("nimble").register(Wf()),no.tagFor(Gf)
4999
+ class Xf extends Zo{}const Kf=Xf.compose({baseName:"tab",baseClass:Zo,template:(e,t)=>G`
5000
5000
  <template slot="tab" role="tab" aria-disabled="${e=>e.disabled}">
5001
5001
  <slot></slot>
5002
5002
  </template>
5003
5003
  `,styles:Yc})
5004
- no.getOrCreate().withPrefix("nimble").register(Xf()),no.tagFor(Wf)
5005
- const Kf=me`
5004
+ no.getOrCreate().withPrefix("nimble").register(Kf()),no.tagFor(Xf)
5005
+ const Yf=me`
5006
5006
  ${bn("block")}
5007
5007
 
5008
5008
  :host {
@@ -5012,11 +5012,11 @@ const Kf=me`
5012
5012
  padding-top: ${na};
5013
5013
  }
5014
5014
  `
5015
- class Yf extends No{}const Qf=Yf.compose({baseName:"tab-panel",baseClass:No,template:(e,t)=>G`
5015
+ class Qf extends No{}const Jf=Qf.compose({baseName:"tab-panel",baseClass:No,template:(e,t)=>G`
5016
5016
  <template slot="tabpanel" role="tabpanel">
5017
5017
  <slot></slot>
5018
5018
  </template>
5019
- `,styles:Kf})
5019
+ `,styles:Yf})
5020
5020
 
5021
5021
  ;/**
5022
5022
  * table-core
@@ -5028,10 +5028,10 @@ class Yf extends No{}const Qf=Yf.compose({baseName:"tab-panel",baseClass:No,temp
5028
5028
  *
5029
5029
  * @license MIT
5030
5030
  */
5031
- function Jf(e,t){return"function"==typeof e?e(t):e}function eb(e,t){return i=>{t.setState((t=>({...t,[e]:Jf(i,t[e])})))}}function tb(e){return e instanceof Function}function ib(e,t){const i=[],o=e=>{e.forEach((e=>{i.push(e)
5031
+ function eb(e,t){return"function"==typeof e?e(t):e}function tb(e,t){return i=>{t.setState((t=>({...t,[e]:eb(i,t[e])})))}}function ib(e){return e instanceof Function}function ob(e,t){const i=[],o=e=>{e.forEach((e=>{i.push(e)
5032
5032
  const n=t(e)
5033
5033
  null!=n&&n.length&&o(n)}))}
5034
- return o(e),i}function ob(e,t,i){let o,n=[]
5034
+ return o(e),i}function nb(e,t,i){let o,n=[]
5035
5035
  return()=>{let s
5036
5036
  i.key&&i.debug&&(s=Date.now())
5037
5037
  const r=e()
@@ -5039,36 +5039,36 @@ if(!(r.length!==n.length||r.some(((e,t)=>n[t]!==e))))return o
5039
5039
  let a
5040
5040
  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
5041
5041
  return e}
5042
- 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 nb(e,t,i){var o
5042
+ 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 sb(e,t,i){var o
5043
5043
  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)}
5044
5044
  return t(n),e},getContext:()=>({table:e,header:n,column:t})}
5045
- return e._features.forEach((t=>{Object.assign(n,null==t.createHeader?void 0:t.createHeader(n,e))})),n}no.getOrCreate().withPrefix("nimble").register(Qf()),no.tagFor(Yf)
5046
- const sb={createTable:e=>({getHeaderGroups:ob((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right]),((t,i,o,n)=>{var s,r
5045
+ return e._features.forEach((t=>{Object.assign(n,null==t.createHeader?void 0:t.createHeader(n,e))})),n}no.getOrCreate().withPrefix("nimble").register(Jf()),no.tagFor(Qf)
5046
+ const rb={createTable:e=>({getHeaderGroups:nb((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right]),((t,i,o,n)=>{var s,r
5047
5047
  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:[]
5048
- return rb(t,[...a,...i.filter((e=>!(null!=o&&o.includes(e.id)||null!=n&&n.includes(e.id)))),...l],e)}),{key:!1,debug:()=>{var t
5049
- return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getCenterHeaderGroups:ob((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right]),((t,i,o,n)=>rb(t,i=i.filter((e=>!(null!=o&&o.includes(e.id)||null!=n&&n.includes(e.id)))),e,"center")),{key:!1,debug:()=>{var t
5050
- return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getLeftHeaderGroups:ob((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left]),((t,i,o)=>{var n
5051
- return rb(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
5052
- return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getRightHeaderGroups:ob((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right]),((t,i,o)=>{var n
5053
- return rb(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
5054
- return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getFooterGroups:ob((()=>[e.getHeaderGroups()]),(e=>[...e].reverse()),{key:!1,debug:()=>{var t
5055
- return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getLeftFooterGroups:ob((()=>[e.getLeftHeaderGroups()]),(e=>[...e].reverse()),{key:!1,debug:()=>{var t
5056
- return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getCenterFooterGroups:ob((()=>[e.getCenterHeaderGroups()]),(e=>[...e].reverse()),{key:!1,debug:()=>{var t
5057
- return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getRightFooterGroups:ob((()=>[e.getRightHeaderGroups()]),(e=>[...e].reverse()),{key:!1,debug:()=>{var t
5058
- return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getFlatHeaders:ob((()=>[e.getHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),{key:!1,debug:()=>{var t
5059
- return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getLeftFlatHeaders:ob((()=>[e.getLeftHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),{key:!1,debug:()=>{var t
5060
- return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getCenterFlatHeaders:ob((()=>[e.getCenterHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),{key:!1,debug:()=>{var t
5061
- return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getRightFlatHeaders:ob((()=>[e.getRightHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),{key:!1,debug:()=>{var t
5062
- return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getCenterLeafHeaders:ob((()=>[e.getCenterFlatHeaders()]),(e=>e.filter((e=>{var t
5048
+ return ab(t,[...a,...i.filter((e=>!(null!=o&&o.includes(e.id)||null!=n&&n.includes(e.id)))),...l],e)}),{key:!1,debug:()=>{var t
5049
+ return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getCenterHeaderGroups:nb((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right]),((t,i,o,n)=>ab(t,i=i.filter((e=>!(null!=o&&o.includes(e.id)||null!=n&&n.includes(e.id)))),e,"center")),{key:!1,debug:()=>{var t
5050
+ return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getLeftHeaderGroups:nb((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left]),((t,i,o)=>{var n
5051
+ return ab(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
5052
+ return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getRightHeaderGroups:nb((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right]),((t,i,o)=>{var n
5053
+ return ab(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
5054
+ return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getFooterGroups:nb((()=>[e.getHeaderGroups()]),(e=>[...e].reverse()),{key:!1,debug:()=>{var t
5055
+ return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getLeftFooterGroups:nb((()=>[e.getLeftHeaderGroups()]),(e=>[...e].reverse()),{key:!1,debug:()=>{var t
5056
+ return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getCenterFooterGroups:nb((()=>[e.getCenterHeaderGroups()]),(e=>[...e].reverse()),{key:!1,debug:()=>{var t
5057
+ return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getRightFooterGroups:nb((()=>[e.getRightHeaderGroups()]),(e=>[...e].reverse()),{key:!1,debug:()=>{var t
5058
+ return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getFlatHeaders:nb((()=>[e.getHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),{key:!1,debug:()=>{var t
5059
+ return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getLeftFlatHeaders:nb((()=>[e.getLeftHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),{key:!1,debug:()=>{var t
5060
+ return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getCenterFlatHeaders:nb((()=>[e.getCenterHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),{key:!1,debug:()=>{var t
5061
+ return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getRightFlatHeaders:nb((()=>[e.getRightHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),{key:!1,debug:()=>{var t
5062
+ return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getCenterLeafHeaders:nb((()=>[e.getCenterFlatHeaders()]),(e=>e.filter((e=>{var t
5063
5063
  return!(null!=(t=e.subHeaders)&&t.length)}))),{key:!1,debug:()=>{var t
5064
- return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getLeftLeafHeaders:ob((()=>[e.getLeftFlatHeaders()]),(e=>e.filter((e=>{var t
5064
+ return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getLeftLeafHeaders:nb((()=>[e.getLeftFlatHeaders()]),(e=>e.filter((e=>{var t
5065
5065
  return!(null!=(t=e.subHeaders)&&t.length)}))),{key:!1,debug:()=>{var t
5066
- return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getRightLeafHeaders:ob((()=>[e.getRightFlatHeaders()]),(e=>e.filter((e=>{var t
5066
+ return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getRightLeafHeaders:nb((()=>[e.getRightFlatHeaders()]),(e=>e.filter((e=>{var t
5067
5067
  return!(null!=(t=e.subHeaders)&&t.length)}))),{key:!1,debug:()=>{var t
5068
- return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getLeafHeaders:ob((()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()]),((e,t,i)=>{var o,n,s,r,a,l
5068
+ return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getLeafHeaders:nb((()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()]),((e,t,i)=>{var o,n,s,r,a,l
5069
5069
  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
5070
5070
  return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}})})}
5071
- function rb(e,t,i,o){var n,s
5071
+ function ab(e,t,i,o){var n,s
5072
5072
  let r=0
5073
5073
  const a=function(e,t){void 0===t&&(t=1),r=Math.max(r,t),e.filter((e=>e.getIsVisible())).forEach((e=>{var i
5074
5074
  null!=(i=e.columns)&&i.length&&a(e.columns,t+1)}),0)}
@@ -5078,16 +5078,16 @@ const c=(e,t)=>{const n={depth:t,id:[o,`${t}`].filter(Boolean).join("_"),headers
5078
5078
  e.forEach((e=>{const r=[...s].reverse()[0]
5079
5079
  let a,l=!1
5080
5080
  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)
5081
- else{const n=nb(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})
5082
- 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)=>nb(i,e,{depth:r,index:t})))
5081
+ else{const n=sb(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})
5082
+ 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)=>sb(i,e,{depth:r,index:t})))
5083
5083
  c(d,r-1),l.reverse()
5084
5084
  const h=e=>e.filter((e=>e.column.getIsVisible())).map((e=>{let t=0,i=0,o=[0]
5085
5085
  e.subHeaders&&e.subHeaders.length?(o=[],h(e.subHeaders).forEach((e=>{let{colSpan:i,rowSpan:n}=e
5086
5086
  t+=i,o.push(n)}))):t=1
5087
5087
  return i+=Math.min(...o),e.colSpan=t,e.rowSpan=i,{colSpan:t,rowSpan:i}}))
5088
- return h(null!=(n=null==(s=l[0])?void 0:s.headers)?n:[]),l}const ab={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},lb={getDefaultColumnDef:()=>ab,getInitialState:e=>({columnSizing:{},columnSizingInfo:{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]},...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",onColumnSizingChange:eb("columnSizing",e),onColumnSizingInfoChange:eb("columnSizingInfo",e)}),createColumn:(e,t)=>({getSize:()=>{var i,o,n
5088
+ return h(null!=(n=null==(s=l[0])?void 0:s.headers)?n:[]),l}const lb={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},cb={getDefaultColumnDef:()=>lb,getInitialState:e=>({columnSizing:{},columnSizingInfo:{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]},...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",onColumnSizingChange:tb("columnSizing",e),onColumnSizingInfoChange:tb("columnSizingInfo",e)}),createColumn:(e,t)=>({getSize:()=>{var i,o,n
5089
5089
  const s=t.getState().columnSizing[e.id]
5090
- return Math.min(Math.max(null!=(i=e.columnDef.minSize)?i:ab.minSize,null!=(o=null!=s?s:e.columnDef.size)?o:ab.size),null!=(n=e.columnDef.maxSize)?n:ab.maxSize)},getStart:i=>{const o=i?"left"===i?t.getLeftVisibleLeafColumns():t.getRightVisibleLeafColumns():t.getVisibleLeafColumns(),n=o.findIndex((t=>t.id===e.id))
5090
+ return Math.min(Math.max(null!=(i=e.columnDef.minSize)?i:lb.minSize,null!=(o=null!=s?s:e.columnDef.size)?o:lb.size),null!=(n=e.columnDef.maxSize)?n:lb.maxSize)},getStart:i=>{const o=i?"left"===i?t.getLeftVisibleLeafColumns():t.getRightVisibleLeafColumns():t.getVisibleLeafColumns(),n=o.findIndex((t=>t.id===e.id))
5091
5091
  if(n>0){const e=o[n-1]
5092
5092
  return e.getStart(i)+e.getSize()}return 0},resetSize:()=>{t.setColumnSizing((t=>{let{[e.id]:i,...o}=t
5093
5093
  return o}))},getCanResize:()=>{var i,o
@@ -5097,24 +5097,24 @@ e.subHeaders.length?e.subHeaders.forEach(i):t+=null!=(o=e.column.getSize())?o:0}
5097
5097
  return i(e),t},getStart:()=>{if(e.index>0){const t=e.headerGroup.headers[e.index-1]
5098
5098
  return t.getStart()+t.getSize()}return 0},getResizeHandler:()=>{const i=t.getColumn(e.column.id),o=null==i?void 0:i.getCanResize()
5099
5099
  return n=>{if(!i||!o)return
5100
- if(null==n.persist||n.persist(),db(n)&&n.touches&&n.touches.length>1)return
5101
- const s=e.getSize(),r=e?e.getLeafHeaders().map((e=>[e.column.id,e.column.getSize()])):[[i.id,i.getSize()]],a=db(n)?Math.round(n.touches[0].clientX):n.clientX,l={},c=(e,i)=>{"number"==typeof i&&(t.setColumnSizingInfo((e=>{var t,o
5100
+ if(null==n.persist||n.persist(),hb(n)&&n.touches&&n.touches.length>1)return
5101
+ const s=e.getSize(),r=e?e.getLeafHeaders().map((e=>[e.column.id,e.column.getSize()])):[[i.id,i.getSize()]],a=hb(n)?Math.round(n.touches[0].clientX):n.clientX,l={},c=(e,i)=>{"number"==typeof i&&(t.setColumnSizingInfo((e=>{var t,o
5102
5102
  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)
5103
5103
  return e.columnSizingStart.forEach((e=>{let[t,i]=e
5104
5104
  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
5105
- 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 cb)return cb
5105
+ 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 db)return db
5106
5106
  let e=!1
5107
5107
  try{const t={get passive(){return e=!0,!1}},i=()=>{}
5108
- window.addEventListener("test",i,t),window.removeEventListener("test",i)}catch(t){e=!1}return cb=e,cb}()&&{passive:!1}
5109
- db(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
5108
+ window.addEventListener("test",i,t),window.removeEventListener("test",i)}catch(t){e=!1}return db=e,db}()&&{passive:!1}
5109
+ hb(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
5110
5110
  e.setColumnSizing(t?{}:null!=(i=e.initialState.columnSizing)?i:{})},resetHeaderSizeInfo:t=>{var i
5111
5111
  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
5112
5112
  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
5113
5113
  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
5114
5114
  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
5115
5115
  return null!=(t=null==(i=e.getRightHeaderGroups()[0])?void 0:i.headers.reduce(((e,t)=>e+t.getSize()),0))?t:0}})}
5116
- let cb=null
5117
- function db(e){return"touchstart"===e.type}const hb={getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:eb("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let t=!1,i=!1
5116
+ let db=null
5117
+ function hb(e){return"touchstart"===e.type}const ub={getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:tb("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let t=!1,i=!1
5118
5118
  return{_autoResetExpanded:()=>{var o,n
5119
5119
  if(t){if(null!=(o=null!=(n=e.options.autoResetAll)?n:e.options.autoResetExpanded)?o:!e.options.manualExpanding){if(i)return
5120
5120
  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
@@ -5131,57 +5131,57 @@ return i}return o}))},getIsExpanded:()=>{var i
5131
5131
  const o=t.getState().expanded
5132
5132
  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
5133
5133
  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()
5134
- return()=>{t&&e.toggleExpanded()}}})},ub=(e,t,i)=>{var o
5134
+ return()=>{t&&e.toggleExpanded()}}})},pb=(e,t,i)=>{var o
5135
5135
  const n=i.toLowerCase()
5136
5136
  return Boolean(null==(o=e.getValue(t))?void 0:o.toLowerCase().includes(n))}
5137
- ub.autoRemove=e=>$b(e)
5138
- const pb=(e,t,i)=>{var o
5139
- return Boolean(null==(o=e.getValue(t))?void 0:o.includes(i))}
5140
- pb.autoRemove=e=>$b(e)
5137
+ pb.autoRemove=e=>Cb(e)
5141
5138
  const gb=(e,t,i)=>{var o
5142
- return(null==(o=e.getValue(t))?void 0:o.toLowerCase())===i.toLowerCase()}
5143
- gb.autoRemove=e=>$b(e)
5139
+ return Boolean(null==(o=e.getValue(t))?void 0:o.includes(i))}
5140
+ gb.autoRemove=e=>Cb(e)
5144
5141
  const vb=(e,t,i)=>{var o
5142
+ return(null==(o=e.getValue(t))?void 0:o.toLowerCase())===i.toLowerCase()}
5143
+ vb.autoRemove=e=>Cb(e)
5144
+ const mb=(e,t,i)=>{var o
5145
5145
  return null==(o=e.getValue(t))?void 0:o.includes(i)}
5146
- vb.autoRemove=e=>$b(e)||!(null!=e&&e.length)
5147
- const mb=(e,t,i)=>!i.some((i=>{var o
5146
+ mb.autoRemove=e=>Cb(e)||!(null!=e&&e.length)
5147
+ const fb=(e,t,i)=>!i.some((i=>{var o
5148
5148
  return!(null!=(o=e.getValue(t))&&o.includes(i))}))
5149
- mb.autoRemove=e=>$b(e)||!(null!=e&&e.length)
5150
- const fb=(e,t,i)=>i.some((i=>{var o
5149
+ fb.autoRemove=e=>Cb(e)||!(null!=e&&e.length)
5150
+ const bb=(e,t,i)=>i.some((i=>{var o
5151
5151
  return null==(o=e.getValue(t))?void 0:o.includes(i)}))
5152
- fb.autoRemove=e=>$b(e)||!(null!=e&&e.length)
5153
- const bb=(e,t,i)=>e.getValue(t)===i
5154
- bb.autoRemove=e=>$b(e)
5155
- const wb=(e,t,i)=>e.getValue(t)==i
5156
- wb.autoRemove=e=>$b(e)
5157
- const xb=(e,t,i)=>{let[o,n]=i
5152
+ bb.autoRemove=e=>Cb(e)||!(null!=e&&e.length)
5153
+ const wb=(e,t,i)=>e.getValue(t)===i
5154
+ wb.autoRemove=e=>Cb(e)
5155
+ const xb=(e,t,i)=>e.getValue(t)==i
5156
+ xb.autoRemove=e=>Cb(e)
5157
+ const yb=(e,t,i)=>{let[o,n]=i
5158
5158
  const s=e.getValue(t)
5159
5159
  return s>=o&&s<=n}
5160
- xb.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
5160
+ yb.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
5161
5161
  if(s>r){const e=s
5162
- s=r,r=e}return[s,r]},xb.autoRemove=e=>$b(e)||$b(e[0])&&$b(e[1])
5163
- const yb={includesString:ub,includesStringSensitive:pb,equalsString:gb,arrIncludes:vb,arrIncludesAll:mb,arrIncludesSome:fb,equals:bb,weakEquals:wb,inNumberRange:xb}
5164
- function $b(e){return null==e||""===e}const Cb={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],globalFilter:void 0,...e}),getDefaultOptions:e=>({onColumnFiltersChange:eb("columnFilters",e),onGlobalFilterChange:eb("globalFilter",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100,globalFilterFn:"auto",getColumnCanGlobalFilter:t=>{var i,o
5162
+ s=r,r=e}return[s,r]},yb.autoRemove=e=>Cb(e)||Cb(e[0])&&Cb(e[1])
5163
+ const $b={includesString:pb,includesStringSensitive:gb,equalsString:vb,arrIncludes:mb,arrIncludesAll:fb,arrIncludesSome:bb,equals:wb,weakEquals:xb,inNumberRange:yb}
5164
+ function Cb(e){return null==e||""===e}const kb={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],globalFilter:void 0,...e}),getDefaultOptions:e=>({onColumnFiltersChange:tb("columnFilters",e),onGlobalFilterChange:tb("globalFilter",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100,globalFilterFn:"auto",getColumnCanGlobalFilter:t=>{var i,o
5165
5165
  const n=null==(i=e.getCoreRowModel().flatRows[0])||null==(o=i._getAllCellsByColumnId()[t.id])?void 0:o.getValue()
5166
5166
  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)
5167
- return"string"==typeof o?yb.includesString:"number"==typeof o?yb.inNumberRange:"boolean"==typeof o||null!==o&&"object"==typeof o?yb.equals:Array.isArray(o)?yb.arrIncludes:yb.weakEquals},getFilterFn:()=>{var i,o
5168
- return tb(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:yb[e.columnDef.filterFn]},getCanFilter:()=>{var i,o,n
5167
+ return"string"==typeof o?$b.includesString:"number"==typeof o?$b.inNumberRange:"boolean"==typeof o||null!==o&&"object"==typeof o?$b.equals:Array.isArray(o)?$b.arrIncludes:$b.weakEquals},getFilterFn:()=>{var i,o
5168
+ return ib(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:$b[e.columnDef.filterFn]},getCanFilter:()=>{var i,o,n
5169
5169
  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
5170
5170
  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
5171
5171
  return null==(i=t.getState().columnFilters)||null==(o=i.find((t=>t.id===e.id)))?void 0:o.value},getFilterIndex:()=>{var i,o
5172
- 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=Jf(i,n?n.value:void 0)
5172
+ 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=eb(i,n?n.value:void 0)
5173
5173
  var r
5174
- if(kb(o,s,e))return null!=(r=null==t?void 0:t.filter((t=>t.id!==e.id)))?r:[]
5174
+ if(Sb(o,s,e))return null!=(r=null==t?void 0:t.filter((t=>t.id!==e.id)))?r:[]
5175
5175
  const a={id:e.id,value:s}
5176
5176
  var l
5177
- 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:()=>yb.includesString,getGlobalFilterFn:()=>{var t,i
5177
+ 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:()=>$b.includesString,getGlobalFilterFn:()=>{var t,i
5178
5178
  const{globalFilterFn:o}=e.options
5179
- return tb(o)?o:"auto"===o?e.getGlobalAutoFilterFn():null!=(t=null==(i=e.options.filterFns)?void 0:i[o])?t:yb[o]},setColumnFilters:t=>{const i=e.getAllLeafColumns()
5179
+ return ib(o)?o:"auto"===o?e.getGlobalAutoFilterFn():null!=(t=null==(i=e.options.filterFns)?void 0:i[o])?t:$b[o]},setColumnFilters:t=>{const i=e.getAllLeafColumns()
5180
5180
  null==e.options.onColumnFiltersChange||e.options.onColumnFiltersChange((e=>{var o
5181
- return null==(o=Jf(t,e))?void 0:o.filter((e=>{const t=i.find((t=>t.id===e.id))
5182
- if(t){if(kb(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
5181
+ return null==(o=eb(t,e))?void 0:o.filter((e=>{const t=i.find((t=>t.id===e.id))
5182
+ if(t){if(Sb(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
5183
5183
  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()}})}
5184
- function kb(e,t,i){return!(!e||!e.autoRemove)&&e.autoRemove(t,i)||void 0===t||"string"==typeof t&&!t}const Sb={sum:(e,t,i)=>i.reduce(((t,i)=>{const o=i.getValue(e)
5184
+ function Sb(e,t,i){return!(!e||!e.autoRemove)&&e.autoRemove(t,i)||void 0===t||"string"==typeof t&&!t}const _b={sum:(e,t,i)=>i.reduce(((t,i)=>{const o=i.getValue(e)
5185
5185
  return t+("number"==typeof o?o:0)}),0),min:(e,t,i)=>{let o
5186
5186
  return i.forEach((t=>{const i=t.getValue(e)
5187
5187
  null!=i&&(o>i||void 0===o&&i>=i)&&(o=i)})),o},max:(e,t,i)=>{let o
@@ -5194,13 +5194,13 @@ null!=n&&(n=+n)>=n&&(++i,o+=n)})),i)return o/i},median:(e,t)=>{if(!t.length)retu
5194
5194
  let i=0,o=0
5195
5195
  return t.forEach((t=>{let n=t.getValue(e)
5196
5196
  "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}
5197
- const _b={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:eb("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
5197
+ const Ib={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:tb("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
5198
5198
  return e.setRowSelection(t?{}:null!=(i=e.initialState.rowSelection)?i:{})},toggleAllRowsSelected:t=>{e.setRowSelection((i=>{t=void 0!==t?t:!e.getIsAllRowsSelected()
5199
5199
  const o={...i},n=e.getPreGroupedRowModel().flatRows
5200
5200
  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}
5201
- return e.getRowModel().rows.forEach((t=>{Ib(n,t.id,o,e)})),n})),getPreSelectedRowModel:()=>e.getCoreRowModel(),getSelectedRowModel:ob((()=>[e.getState().rowSelection,e.getCoreRowModel()]),((t,i)=>Object.keys(t).length?Rb(e,i):{rows:[],flatRows:[],rowsById:{}}),{key:!1,debug:()=>{var t
5202
- return null!=(t=e.options.debugAll)?t:e.options.debugTable}}),getFilteredSelectedRowModel:ob((()=>[e.getState().rowSelection,e.getFilteredRowModel()]),((t,i)=>Object.keys(t).length?Rb(e,i):{rows:[],flatRows:[],rowsById:{}}),{key:"getFilteredSelectedRowModel",debug:()=>{var t
5203
- return null!=(t=e.options.debugAll)?t:e.options.debugTable}}),getGroupedSelectedRowModel:ob((()=>[e.getState().rowSelection,e.getSortedRowModel()]),((t,i)=>Object.keys(t).length?Rb(e,i):{rows:[],flatRows:[],rowsById:{}}),{key:"getGroupedSelectedRowModel",debug:()=>{var t
5201
+ return e.getRowModel().rows.forEach((t=>{Rb(n,t.id,o,e)})),n})),getPreSelectedRowModel:()=>e.getCoreRowModel(),getSelectedRowModel:nb((()=>[e.getState().rowSelection,e.getCoreRowModel()]),((t,i)=>Object.keys(t).length?Mb(e,i):{rows:[],flatRows:[],rowsById:{}}),{key:!1,debug:()=>{var t
5202
+ return null!=(t=e.options.debugAll)?t:e.options.debugTable}}),getFilteredSelectedRowModel:nb((()=>[e.getState().rowSelection,e.getFilteredRowModel()]),((t,i)=>Object.keys(t).length?Mb(e,i):{rows:[],flatRows:[],rowsById:{}}),{key:"getFilteredSelectedRowModel",debug:()=>{var t
5203
+ return null!=(t=e.options.debugAll)?t:e.options.debugTable}}),getGroupedSelectedRowModel:nb((()=>[e.getState().rowSelection,e.getSortedRowModel()]),((t,i)=>Object.keys(t).length?Mb(e,i):{rows:[],flatRows:[],rowsById:{}}),{key:"getGroupedSelectedRowModel",debug:()=>{var t
5204
5204
  return null!=(t=e.options.debugAll)?t:e.options.debugTable}}),getIsAllRowsSelected:()=>{const t=e.getFilteredRowModel().flatRows,{rowSelection:i}=e.getState()
5205
5205
  let o=Boolean(t.length&&Object.keys(i).length)
5206
5206
  return o&&t.some((e=>e.getCanSelect()&&!i[e.id]))&&(o=!1),o},getIsAllPageRowsSelected:()=>{const t=e.getPaginationRowModel().flatRows,{rowSelection:i}=e.getState()
@@ -5211,71 +5211,71 @@ return i>0&&i<e.getFilteredRowModel().flatRows.length},getIsSomePageRowsSelected
5211
5211
  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()
5212
5212
  t.setRowSelection((n=>{if(o===(i=void 0!==i?i:!o))return n
5213
5213
  const s={...n}
5214
- return Ib(s,e.id,i,t),s}))},getIsSelected:()=>{const{rowSelection:i}=t.getState()
5215
- return Mb(e,i)},getIsSomeSelected:()=>{const{rowSelection:i}=t.getState()
5216
- return"some"===Ab(e,i)},getIsAllSubRowsSelected:()=>{const{rowSelection:i}=t.getState()
5217
- return"all"===Ab(e,i)},getCanSelect:()=>{var i
5214
+ return Rb(s,e.id,i,t),s}))},getIsSelected:()=>{const{rowSelection:i}=t.getState()
5215
+ return Ab(e,i)},getIsSomeSelected:()=>{const{rowSelection:i}=t.getState()
5216
+ return"some"===Ob(e,i)},getIsAllSubRowsSelected:()=>{const{rowSelection:i}=t.getState()
5217
+ return"all"===Ob(e,i)},getCanSelect:()=>{var i
5218
5218
  return"function"==typeof t.options.enableRowSelection?t.options.enableRowSelection(e):null==(i=t.options.enableRowSelection)||i},getCanSelectSubRows:()=>{var i
5219
5219
  return"function"==typeof t.options.enableSubRowSelection?t.options.enableSubRowSelection(e):null==(i=t.options.enableSubRowSelection)||i},getCanMultiSelect:()=>{var i
5220
5220
  return"function"==typeof t.options.enableMultiRowSelection?t.options.enableMultiRowSelection(e):null==(i=t.options.enableMultiRowSelection)||i},getToggleSelectedHandler:()=>{const t=e.getCanSelect()
5221
5221
  return i=>{var o
5222
- t&&e.toggleSelected(null==(o=i.target)?void 0:o.checked)}}})},Ib=(e,t,i,o)=>{var n
5222
+ t&&e.toggleSelected(null==(o=i.target)?void 0:o.checked)}}})},Rb=(e,t,i,o)=>{var n
5223
5223
  const s=o.getRow(t)
5224
- 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=>Ib(e,t.id,i,o)))}
5225
- function Rb(e,t){const i=e.getState().rowSelection,o=[],n={},s=function(e,t){return e.map((e=>{var t
5226
- const r=Mb(e,i)
5224
+ 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=>Rb(e,t.id,i,o)))}
5225
+ function Mb(e,t){const i=e.getState().rowSelection,o=[],n={},s=function(e,t){return e.map((e=>{var t
5226
+ const r=Ab(e,i)
5227
5227
  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)}
5228
- return{rows:s(t.rows),flatRows:o,rowsById:n}}function Mb(e,t){var i
5229
- return null!=(i=t[e.id])&&i}function Ab(e,t,i){if(e.subRows&&e.subRows.length){let i=!0,o=!1
5230
- return e.subRows.forEach((e=>{o&&!i||(Mb(e,t)?o=!0:i=!1)})),i?"all":!!o&&"some"}return!1}const Ob=/([0-9]+)/gm
5231
- function Eb(e,t){return e===t?0:e>t?1:-1}function Vb(e){return"number"==typeof e?isNaN(e)||e===1/0||e===-1/0?"":String(e):"string"==typeof e?e:""}function Fb(e,t){const i=e.split(Ob).filter(Boolean),o=t.split(Ob).filter(Boolean)
5228
+ return{rows:s(t.rows),flatRows:o,rowsById:n}}function Ab(e,t){var i
5229
+ return null!=(i=t[e.id])&&i}function Ob(e,t,i){if(e.subRows&&e.subRows.length){let i=!0,o=!1
5230
+ return e.subRows.forEach((e=>{o&&!i||(Ab(e,t)?o=!0:i=!1)})),i?"all":!!o&&"some"}return!1}const Eb=/([0-9]+)/gm
5231
+ function Vb(e,t){return e===t?0:e>t?1:-1}function Fb(e){return"number"==typeof e?isNaN(e)||e===1/0||e===-1/0?"":String(e):"string"==typeof e?e:""}function Hb(e,t){const i=e.split(Eb).filter(Boolean),o=t.split(Eb).filter(Boolean)
5232
5232
  for(;i.length&&o.length;){const e=i.shift(),t=o.shift(),n=parseInt(e,10),s=parseInt(t,10),r=[n,s].sort()
5233
5233
  if(isNaN(r[0])){if(e>t)return 1
5234
5234
  if(t>e)return-1}else{if(isNaN(r[1]))return isNaN(n)?-1:1
5235
5235
  if(n>s)return 1
5236
- if(s>n)return-1}}return i.length-o.length}const Hb={alphanumeric:(e,t,i)=>Fb(Vb(e.getValue(i)).toLowerCase(),Vb(t.getValue(i)).toLowerCase()),alphanumericCaseSensitive:(e,t,i)=>Fb(Vb(e.getValue(i)),Vb(t.getValue(i))),text:(e,t,i)=>Eb(Vb(e.getValue(i)).toLowerCase(),Vb(t.getValue(i)).toLowerCase()),textCaseSensitive:(e,t,i)=>Eb(Vb(e.getValue(i)),Vb(t.getValue(i))),datetime:(e,t,i)=>{const o=e.getValue(i),n=t.getValue(i)
5237
- return o>n?1:o<n?-1:0},basic:(e,t,i)=>Eb(e.getValue(i),t.getValue(i))},Pb=[sb,{getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:eb("columnVisibility",e)}),createColumn:(e,t)=>({toggleVisibility:i=>{e.getCanHide()&&t.setColumnVisibility((t=>({...t,[e.id]:null!=i?i:!e.getIsVisible()})))},getIsVisible:()=>{var i,o
5236
+ if(s>n)return-1}}return i.length-o.length}const Pb={alphanumeric:(e,t,i)=>Hb(Fb(e.getValue(i)).toLowerCase(),Fb(t.getValue(i)).toLowerCase()),alphanumericCaseSensitive:(e,t,i)=>Hb(Fb(e.getValue(i)),Fb(t.getValue(i))),text:(e,t,i)=>Vb(Fb(e.getValue(i)).toLowerCase(),Fb(t.getValue(i)).toLowerCase()),textCaseSensitive:(e,t,i)=>Vb(Fb(e.getValue(i)),Fb(t.getValue(i))),datetime:(e,t,i)=>{const o=e.getValue(i),n=t.getValue(i)
5237
+ return o>n?1:o<n?-1:0},basic:(e,t,i)=>Vb(e.getValue(i),t.getValue(i))},Tb=[rb,{getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:tb("columnVisibility",e)}),createColumn:(e,t)=>({toggleVisibility:i=>{e.getCanHide()&&t.setColumnVisibility((t=>({...t,[e.id]:null!=i?i:!e.getIsVisible()})))},getIsVisible:()=>{var i,o
5238
5238
  return null==(i=null==(o=t.getState().columnVisibility)?void 0:o[e.id])||i},getCanHide:()=>{var i,o
5239
- 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:ob((()=>[e.getAllCells(),t.getState().columnVisibility]),(e=>e.filter((e=>e.column.getIsVisible()))),{key:"row._getAllVisibleCells",debug:()=>{var e
5240
- return null!=(e=t.options.debugAll)?e:t.options.debugRows}}),getVisibleCells:ob((()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()]),((e,t,i)=>[...e,...t,...i]),{key:!1,debug:()=>{var e
5241
- return null!=(e=t.options.debugAll)?e:t.options.debugRows}})}),createTable:e=>{const t=(t,i)=>ob((()=>[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
5239
+ 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:nb((()=>[e.getAllCells(),t.getState().columnVisibility]),(e=>e.filter((e=>e.column.getIsVisible()))),{key:"row._getAllVisibleCells",debug:()=>{var e
5240
+ return null!=(e=t.options.debugAll)?e:t.options.debugRows}}),getVisibleCells:nb((()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()]),((e,t,i)=>[...e,...t,...i]),{key:!1,debug:()=>{var e
5241
+ return null!=(e=t.options.debugAll)?e:t.options.debugRows}})}),createTable:e=>{const t=(t,i)=>nb((()=>[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
5242
5242
  return null!=(t=e.options.debugAll)?t:e.options.debugColumns}})
5243
5243
  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
5244
5244
  e.setColumnVisibility(t?{}:null!=(i=e.initialState.columnVisibility)?i:{})},toggleAllColumnsVisible:t=>{var i
5245
5245
  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
5246
- e.toggleAllColumnsVisible(null==(i=t.target)?void 0:i.checked)}}}},{getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:eb("columnOrder",e)}),createTable:e=>({setColumnOrder:t=>null==e.options.onColumnOrderChange?void 0:e.options.onColumnOrderChange(t),resetColumnOrder:t=>{var i
5247
- e.setColumnOrder(t?[]:null!=(i=e.initialState.columnOrder)?i:[])},_getOrderColumnsFn:ob((()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode]),((e,t,i)=>o=>{let n=[]
5246
+ e.toggleAllColumnsVisible(null==(i=t.target)?void 0:i.checked)}}}},{getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:tb("columnOrder",e)}),createTable:e=>({setColumnOrder:t=>null==e.options.onColumnOrderChange?void 0:e.options.onColumnOrderChange(t),resetColumnOrder:t=>{var i
5247
+ e.setColumnOrder(t?[]:null!=(i=e.initialState.columnOrder)?i:[])},_getOrderColumnsFn:nb((()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode]),((e,t,i)=>o=>{let n=[]
5248
5248
  if(null!=e&&e.length){const t=[...e],i=[...o]
5249
5249
  for(;i.length&&t.length;){const e=t.shift(),o=i.findIndex((t=>t.id===e))
5250
5250
  o>-1&&n.push(i.splice(o,1)[0])}n=[...n,...i]}else n=o
5251
5251
  return function(e,t,i){if(null==t||!t.length||!i)return e
5252
5252
  const o=e.filter((e=>!t.includes(e.id)))
5253
- 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:eb("columnPinning",e)}),createColumn:(e,t)=>({pin:i=>{const o=e.getLeafColumns().map((e=>e.id)).filter(Boolean)
5253
+ 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:tb("columnPinning",e)}),createColumn:(e,t)=>({pin:i=>{const o=e.getLeafColumns().map((e=>e.id)).filter(Boolean)
5254
5254
  t.setColumnPinning((e=>{var t,n,s,r,a,l
5255
5255
  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
5256
5256
  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)))
5257
5257
  return s?"left":!!r&&"right"},getPinnedIndex:()=>{var i,o,n
5258
5258
  const s=e.getIsPinned()
5259
- 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:ob((()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right]),((e,t,i)=>{const o=[...null!=t?t:[],...null!=i?i:[]]
5259
+ 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:nb((()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right]),((e,t,i)=>{const o=[...null!=t?t:[],...null!=i?i:[]]
5260
5260
  return e.filter((e=>!o.includes(e.column.id)))}),{key:"row.getCenterVisibleCells",debug:()=>{var e
5261
- return null!=(e=t.options.debugAll)?e:t.options.debugRows}}),getLeftVisibleCells:ob((()=>[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
5262
- return null!=(e=t.options.debugAll)?e:t.options.debugRows}}),getRightVisibleCells:ob((()=>[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
5261
+ return null!=(e=t.options.debugAll)?e:t.options.debugRows}}),getLeftVisibleCells:nb((()=>[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
5262
+ return null!=(e=t.options.debugAll)?e:t.options.debugRows}}),getRightVisibleCells:nb((()=>[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
5263
5263
  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
5264
5264
  return e.setColumnPinning(t?{left:[],right:[]}:null!=(i=null==(o=e.initialState)?void 0:o.columnPinning)?i:{left:[],right:[]})},getIsSomeColumnsPinned:t=>{var i
5265
5265
  const o=e.getState().columnPinning
5266
5266
  var n,s
5267
- 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:ob((()=>[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
5268
- return null!=(t=e.options.debugAll)?t:e.options.debugColumns}}),getRightLeafColumns:ob((()=>[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
5269
- return null!=(t=e.options.debugAll)?t:e.options.debugColumns}}),getCenterLeafColumns:ob((()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right]),((e,t,i)=>{const o=[...null!=t?t:[],...null!=i?i:[]]
5267
+ 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:nb((()=>[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
5268
+ return null!=(t=e.options.debugAll)?t:e.options.debugColumns}}),getRightLeafColumns:nb((()=>[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
5269
+ return null!=(t=e.options.debugAll)?t:e.options.debugColumns}}),getCenterLeafColumns:nb((()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right]),((e,t,i)=>{const o=[...null!=t?t:[],...null!=i?i:[]]
5270
5270
  return e.filter((e=>!o.includes(e.id)))}),{key:!1,debug:()=>{var t
5271
- return null!=(t=e.options.debugAll)?t:e.options.debugColumns}})})},Cb,{getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto"}),getDefaultOptions:e=>({onSortingChange:eb("sorting",e),isMultiSortEvent:e=>e.shiftKey}),createColumn:(e,t)=>({getAutoSortingFn:()=>{const i=t.getFilteredRowModel().flatRows.slice(10)
5271
+ return null!=(t=e.options.debugAll)?t:e.options.debugColumns}})})},kb,{getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto"}),getDefaultOptions:e=>({onSortingChange:tb("sorting",e),isMultiSortEvent:e=>e.shiftKey}),createColumn:(e,t)=>({getAutoSortingFn:()=>{const i=t.getFilteredRowModel().flatRows.slice(10)
5272
5272
  let o=!1
5273
5273
  for(const t of i){const i=null==t?void 0:t.getValue(e.id)
5274
- if("[object Date]"===Object.prototype.toString.call(i))return Hb.datetime
5275
- if("string"==typeof i&&(o=!0,i.split(Ob).length>1))return Hb.alphanumeric}return o?Hb.text:Hb.basic},getAutoSortDir:()=>{const i=t.getFilteredRowModel().flatRows[0]
5274
+ if("[object Date]"===Object.prototype.toString.call(i))return Pb.datetime
5275
+ if("string"==typeof i&&(o=!0,i.split(Eb).length>1))return Pb.alphanumeric}return o?Pb.text:Pb.basic},getAutoSortDir:()=>{const i=t.getFilteredRowModel().flatRows[0]
5276
5276
  return"string"==typeof(null==i?void 0:i.getValue(e.id))?"asc":"desc"},getSortingFn:()=>{var i,o
5277
5277
  if(!e)throw new Error
5278
- return tb(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:Hb[e.columnDef.sortingFn]},toggleSorting:(i,o)=>{const n=e.getNextSortingOrder(),s=null!=i
5278
+ return ib(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:Pb[e.columnDef.sortingFn]},toggleSorting:(i,o)=>{const n=e.getNextSortingOrder(),s=null!=i
5279
5279
  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))
5280
5280
  let c,d=[],h=s?i:"desc"===n
5281
5281
  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}]
@@ -5290,86 +5290,86 @@ return!!o&&(o.desc?"desc":"asc")},getSortIndex:()=>{var i,o
5290
5290
  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()
5291
5291
  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
5292
5292
  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
5293
- 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:eb("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
5293
+ 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:tb("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
5294
5294
  return null!=(i=null==(o=null!=(n=null==(s=e.columnDef.enableGrouping)||s)?n:t.options.enableGrouping)||o)?i:!!e.accessorFn},getIsGrouped:()=>{var i
5295
5295
  return null==(i=t.getState().grouping)?void 0:i.includes(e.id)},getGroupedIndex:()=>{var i
5296
5296
  return null==(i=t.getState().grouping)?void 0:i.indexOf(e.id)},getToggleGroupingHandler:()=>{const t=e.getCanGroup()
5297
5297
  return()=>{t&&e.toggleGrouping()}},getAutoAggregationFn:()=>{const i=t.getCoreRowModel().flatRows[0],o=null==i?void 0:i.getValue(e.id)
5298
- return"number"==typeof o?Sb.sum:"[object Date]"===Object.prototype.toString.call(o)?Sb.extent:void 0},getAggregationFn:()=>{var i,o
5298
+ return"number"==typeof o?_b.sum:"[object Date]"===Object.prototype.toString.call(o)?_b.extent:void 0},getAggregationFn:()=>{var i,o
5299
5299
  if(!e)throw new Error
5300
- return tb(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:Sb[e.columnDef.aggregationFn]}}),createTable:e=>({setGrouping:t=>null==e.options.onGroupingChange?void 0:e.options.onGroupingChange(t),resetGrouping:t=>{var i,o
5300
+ return ib(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:_b[e.columnDef.aggregationFn]}}),createTable:e=>({setGrouping:t=>null==e.options.onGroupingChange?void 0:e.options.onGroupingChange(t),resetGrouping:t=>{var i,o
5301
5301
  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
5302
- return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!(null==(t=i.subRows)||!t.length)}})},hb,{getInitialState:e=>({...e,pagination:{pageIndex:0,pageSize:10,...null==e?void 0:e.pagination}}),getDefaultOptions:e=>({onPaginationChange:eb("pagination",e)}),createTable:e=>{let t=!1,i=!1
5302
+ return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!(null==(t=i.subRows)||!t.length)}})},ub,{getInitialState:e=>({...e,pagination:{pageIndex:0,pageSize:10,...null==e?void 0:e.pagination}}),getDefaultOptions:e=>({onPaginationChange:tb("pagination",e)}),createTable:e=>{let t=!1,i=!1
5303
5303
  return{_autoResetPageIndex:()=>{var o,n
5304
5304
  if(t){if(null!=(o=null!=(n=e.options.autoResetAll)?n:e.options.autoResetPageIndex)?o:!e.options.manualPagination){if(i)return
5305
- 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=>Jf(t,e))),resetPagination:t=>{var i
5306
- e.setPagination(t?{pageIndex:0,pageSize:10}:null!=(i=e.initialState.pagination)?i:{pageIndex:0,pageSize:10})},setPageIndex:t=>{e.setPagination((i=>{let o=Jf(t,i.pageIndex)
5305
+ 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=>eb(t,e))),resetPagination:t=>{var i
5306
+ e.setPagination(t?{pageIndex:0,pageSize:10}:null!=(i=e.initialState.pagination)?i:{pageIndex:0,pageSize:10})},setPageIndex:t=>{e.setPagination((i=>{let o=eb(t,i.pageIndex)
5307
5307
  const n=void 0===e.options.pageCount||-1===e.options.pageCount?Number.MAX_SAFE_INTEGER:e.options.pageCount-1
5308
5308
  return o=Math.max(0,Math.min(o,n)),{...i,pageIndex:o}}))},resetPageIndex:t=>{var i,o,n
5309
5309
  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
5310
- 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,Jf(t,e.pageSize)),o=e.pageSize*e.pageIndex,n=Math.floor(o/i)
5310
+ 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,eb(t,e.pageSize)),o=e.pageSize*e.pageIndex,n=Math.floor(o/i)
5311
5311
  return{...e,pageIndex:n,pageSize:i}}))},setPageCount:t=>e.setPagination((i=>{var o
5312
- let n=Jf(t,null!=(o=e.options.pageCount)?o:-1)
5313
- return"number"==typeof n&&(n=Math.max(-1,n)),{...i,pageCount:n}})),getPageOptions:ob((()=>[e.getPageCount()]),(e=>{let t=[]
5312
+ let n=eb(t,null!=(o=e.options.pageCount)?o:-1)
5313
+ return"number"==typeof n&&(n=Math.max(-1,n)),{...i,pageCount:n}})),getPageOptions:nb((()=>[e.getPageCount()]),(e=>{let t=[]
5314
5314
  return e&&e>0&&(t=[...new Array(e)].fill(null).map(((e,t)=>t))),t}),{key:!1,debug:()=>{var t
5315
5315
  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()
5316
5316
  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
5317
- return null!=(t=e.options.pageCount)?t:Math.ceil(e.getPrePaginationRowModel().rows.length/e.getState().pagination.pageSize)}}}},_b,lb]
5318
- function Tb(e){var t;(e.debugAll||e.debugTable)&&console.info("Creating Table Instance...")
5319
- let i={_features:Pb}
5317
+ return null!=(t=e.options.pageCount)?t:Math.ceil(e.getPrePaginationRowModel().rows.length/e.getState().pagination.pageSize)}}}},Ib,cb]
5318
+ function Lb(e){var t;(e.debugAll||e.debugTable)&&console.info("Creating Table Instance...")
5319
+ let i={_features:Tb}
5320
5320
  const o=i._features.reduce(((e,t)=>Object.assign(e,null==t.getDefaultOptions?void 0:t.getDefaultOptions(i))),{})
5321
5321
  let n={...null!=(t=e.initialState)?t:{}}
5322
5322
  i._features.forEach((e=>{var t
5323
5323
  n=null!=(t=null==e.getInitialState?void 0:e.getInitialState(n))?t:n}))
5324
5324
  const s=[]
5325
5325
  let r=!1
5326
- const a={_features:Pb,options:{...o,...e},initialState:n,_queue:e=>{s.push(e),r||(r=!0,Promise.resolve().then((()=>{for(;s.length;)s.shift()()
5327
- r=!1})).catch((e=>setTimeout((()=>{throw e})))))},reset:()=>{i.setState(i.initialState)},setOptions:e=>{const t=Jf(e,i.options)
5326
+ const a={_features:Tb,options:{...o,...e},initialState:n,_queue:e=>{s.push(e),r||(r=!0,Promise.resolve().then((()=>{for(;s.length;)s.shift()()
5327
+ r=!1})).catch((e=>setTimeout((()=>{throw e})))))},reset:()=>{i.setState(i.initialState)},setOptions:e=>{const t=eb(e,i.options)
5328
5328
  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
5329
5329
  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]
5330
5330
  if(!t)throw new Error
5331
- return t},_getDefaultColumnDef:ob((()=>[i.options.defaultColumn]),(e=>{var t
5331
+ return t},_getDefaultColumnDef:nb((()=>[i.options.defaultColumn]),(e=>{var t
5332
5332
  return e=null!=(t=e)?t:{},{header:e=>{const t=e.header.column.columnDef
5333
5333
  return t.accessorKey?t.accessorKey:t.accessorFn?t.id:null},cell:e=>{var t,i
5334
5334
  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
5335
- return null!=(e=i.options.debugAll)?e:i.options.debugColumns},key:!1}),_getColumnDefs:()=>i.options.columns,getAllColumns:ob((()=>[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
5335
+ return null!=(e=i.options.debugAll)?e:i.options.debugColumns},key:!1}),_getColumnDefs:()=>i.options.columns,getAllColumns:nb((()=>[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
5336
5336
  const r={...e._getDefaultColumnDef(),...t},a=r.accessorKey
5337
5337
  let l,c=null!=(n=null!=(s=r.id)?s:a?a.replace(".","_"):void 0)?n:"string"==typeof r.header?r.header:void 0
5338
5338
  if(r.accessorFn?l=r.accessorFn:a&&(l=a.includes(".")?e=>{let t=e
5339
5339
  for(const e of a.split(".")){var i
5340
5340
  t=null==(i=t)?void 0:i[e]}return t}:e=>e[r.accessorKey]),!c)throw new Error
5341
- let d={id:`${String(c)}`,accessorFn:l,parent:o,depth:i,columnDef:r,columns:[],getFlatColumns:ob((()=>[!0]),(()=>{var e
5341
+ let d={id:`${String(c)}`,accessorFn:l,parent:o,depth:i,columnDef:r,columns:[],getFlatColumns:nb((()=>[!0]),(()=>{var e
5342
5342
  return[d,...null==(e=d.columns)?void 0:e.flatMap((e=>e.getFlatColumns()))]}),{key:"column.getFlatColumns",debug:()=>{var t
5343
- return null!=(t=e.options.debugAll)?t:e.options.debugColumns}}),getLeafColumns:ob((()=>[e._getOrderColumnsFn()]),(e=>{var t
5343
+ return null!=(t=e.options.debugAll)?t:e.options.debugColumns}}),getLeafColumns:nb((()=>[e._getOrderColumnsFn()]),(e=>{var t
5344
5344
  if(null!=(t=d.columns)&&t.length){let t=d.columns.flatMap((e=>e.getLeafColumns()))
5345
5345
  return e(t)}return[d]}),{key:"column.getLeafColumns",debug:()=>{var t
5346
5346
  return null!=(t=e.options.debugAll)?t:e.options.debugColumns}})}
5347
5347
  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
5348
5348
  return s.columns=r.columns?t(r.columns,s,n+1):[],s}))}
5349
5349
  return t(e)}),{key:!1,debug:()=>{var e
5350
- return null!=(e=i.options.debugAll)?e:i.options.debugColumns}}),getAllFlatColumns:ob((()=>[i.getAllColumns()]),(e=>e.flatMap((e=>e.getFlatColumns()))),{key:!1,debug:()=>{var e
5351
- return null!=(e=i.options.debugAll)?e:i.options.debugColumns}}),_getAllFlatColumnsById:ob((()=>[i.getAllFlatColumns()]),(e=>e.reduce(((e,t)=>(e[t.id]=t,e)),{})),{key:!1,debug:()=>{var e
5352
- return null!=(e=i.options.debugAll)?e:i.options.debugColumns}}),getAllLeafColumns:ob((()=>[i.getAllColumns(),i._getOrderColumnsFn()]),((e,t)=>t(e.flatMap((e=>e.getLeafColumns())))),{key:!1,debug:()=>{var e
5350
+ return null!=(e=i.options.debugAll)?e:i.options.debugColumns}}),getAllFlatColumns:nb((()=>[i.getAllColumns()]),(e=>e.flatMap((e=>e.getFlatColumns()))),{key:!1,debug:()=>{var e
5351
+ return null!=(e=i.options.debugAll)?e:i.options.debugColumns}}),_getAllFlatColumnsById:nb((()=>[i.getAllFlatColumns()]),(e=>e.reduce(((e,t)=>(e[t.id]=t,e)),{})),{key:!1,debug:()=>{var e
5352
+ return null!=(e=i.options.debugAll)?e:i.options.debugColumns}}),getAllLeafColumns:nb((()=>[i.getAllColumns(),i._getOrderColumnsFn()]),((e,t)=>t(e.flatMap((e=>e.getLeafColumns())))),{key:!1,debug:()=>{var e
5353
5353
  return null!=(e=i.options.debugAll)?e:i.options.debugColumns}}),getColumn:e=>i._getAllFlatColumnsById()[e]}
5354
- return Object.assign(i,a),i._features.forEach((e=>Object.assign(i,null==e.createTable?void 0:e.createTable(i)))),i}const Lb=(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]
5354
+ return Object.assign(i,a),i._features.forEach((e=>Object.assign(i,null==e.createTable?void 0:e.createTable(i)))),i}const Db=(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]
5355
5355
  const i=e.getColumn(t)
5356
5356
  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]
5357
5357
  const i=e.getColumn(t)
5358
5358
  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
5359
- return null!=(i=r.getValue(t))?i:e.options.renderFallbackValue},subRows:null!=s?s:[],getLeafRows:()=>ib(r.subRows,(e=>e.subRows)),getAllCells:ob((()=>[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
5360
- return null!=(t=n.getValue())?t:e.options.renderFallbackValue},getContext:ob((()=>[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})}
5359
+ return null!=(i=r.getValue(t))?i:e.options.renderFallbackValue},subRows:null!=s?s:[],getLeafRows:()=>ob(r.subRows,(e=>e.subRows)),getAllCells:nb((()=>[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
5360
+ return null!=(t=n.getValue())?t:e.options.renderFallbackValue},getContext:nb((()=>[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})}
5361
5361
  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
5362
- return null!=(t=e.options.debugAll)?t:e.options.debugRows}}),_getAllCellsByColumnId:ob((()=>[r.getAllCells()]),(e=>e.reduce(((e,t)=>(e[t.column.id]=t,e)),{})),{key:"row.getAllCellsByColumnId",debug:()=>{var t
5362
+ return null!=(t=e.options.debugAll)?t:e.options.debugRows}}),_getAllCellsByColumnId:nb((()=>[r.getAllCells()]),(e=>e.reduce(((e,t)=>(e[t.column.id]=t,e)),{})),{key:"row.getAllCellsByColumnId",debug:()=>{var t
5363
5363
  return null!=(t=e.options.debugAll)?t:e.options.debugRows}})}
5364
5364
  for(let t=0;t<e._features.length;t++){const i=e._features[t]
5365
5365
  Object.assign(r,null==i||null==i.createRow?void 0:i.createRow(r,e))}return r}
5366
- function Db(){return e=>ob((()=>[e.getState().grouping,e.getPreGroupedRowModel()]),((t,i)=>{if(!i.rows.length||!t.length)return i
5366
+ function zb(){return e=>nb((()=>[e.getState().grouping,e.getPreGroupedRowModel()]),((t,i)=>{if(!i.rows.length||!t.length)return i
5367
5367
  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)))
5368
5368
  const l=o[i],c=function(e,t){const i=new Map
5369
5369
  return e.reduce(((e,i)=>{const o=`${i.getValue(t)}`,n=e.get(o)
5370
5370
  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}`
5371
5371
  u=a?`${a}>${u}`:u
5372
- const p=r(h,i+1,u),g=i?ib(h,(e=>e.subRows)):h,v=Lb(e,u,g[0].original,c,i)
5372
+ const p=r(h,i+1,u),g=i?ob(h,(e=>e.subRows)):h,v=Db(e,u,g[0].original,c,i)
5373
5373
  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]
5374
5374
  var i
5375
5375
  if(h[0])v._valuesCache[t]=null!=(i=h[0].getValue(t))?i:void 0
@@ -5378,10 +5378,10 @@ const n=e.getColumn(t),s=null==n?void 0:n.getAggregationFn()
5378
5378
  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}))
5379
5379
  return d},a=r(i.rows,0,"")
5380
5380
  return a.forEach((e=>{n.push(e),s[e.id]=e})),{rows:a,flatRows:n,rowsById:s}}),{key:!1,debug:()=>{var t
5381
- return null!=(t=e.options.debugAll)?t:e.options.debugTable},onChange:()=>{e._queue((()=>{e._autoResetExpanded(),e._autoResetPageIndex()}))}})}const zb={none:void 0,ascending:"ascending",descending:"descending"},Bb={none:void 0,single:"single"},Nb="notSelected",Zb="selected",qb="basic",jb="localeAwareCaseSensitive"
5382
- class Ub extends _t{}e([m],Ub.prototype,"groupHeaderValue",void 0),e([m],Ub.prototype,"columnConfig",void 0)
5383
- const Gb=e=>((e=>{let t
5384
- try{t=document.createElement(e)}catch(e){}if(!(t instanceof Ub))throw new Error(`Group header view tag name (${e}) must evaluate to an element extending TableGroupHeaderView`)})(e),G`
5381
+ return null!=(t=e.options.debugAll)?t:e.options.debugTable},onChange:()=>{e._queue((()=>{e._autoResetExpanded(),e._autoResetPageIndex()}))}})}const Bb={none:void 0,ascending:"ascending",descending:"descending"},Nb={none:void 0,single:"single",multiple:"multiple"},Zb="notSelected",qb="selected",jb="partiallySelected",Ub="basic",Gb="localeAwareCaseSensitive"
5382
+ class Wb extends _t{}e([m],Wb.prototype,"groupHeaderValue",void 0),e([m],Wb.prototype,"columnConfig",void 0)
5383
+ const Xb=e=>((e=>{let t
5384
+ try{t=document.createElement(e)}catch(e){}if(!(t instanceof Wb))throw new Error(`Group header view tag name (${e}) must evaluate to an element extending TableGroupHeaderView`)})(e),G`
5385
5385
  <${e}
5386
5386
  :groupHeaderValue="${e=>e.groupRowValue}"
5387
5387
  :columnConfig="${e=>e.groupColumn?.columnInternals.columnConfig}"
@@ -5389,9 +5389,9 @@ try{t=document.createElement(e)}catch(e){}if(!(t instanceof Ub))throw new Error(
5389
5389
  >
5390
5390
  </${e}>
5391
5391
  `)
5392
- class Wb extends _t{focusedRecycleCallback(){}}e([m],Wb.prototype,"cellRecord",void 0),e([m],Wb.prototype,"columnConfig",void 0)
5393
- const Xb=e=>((e=>{let t
5394
- try{t=document.createElement(e)}catch(e){}if(!(t instanceof Wb))throw new Error(`Cell view tag name (${e}) must evaluate to an element extending TableCellView`)})(e),G`
5392
+ class Kb extends _t{focusedRecycleCallback(){}}e([m],Kb.prototype,"cellRecord",void 0),e([m],Kb.prototype,"columnConfig",void 0)
5393
+ const Yb=e=>((e=>{let t
5394
+ try{t=document.createElement(e)}catch(e){}if(!(t instanceof Kb))throw new Error(`Cell view tag name (${e}) must evaluate to an element extending TableCellView`)})(e),G`
5395
5395
  <${e}
5396
5396
  :cellRecord="${e=>e.cellState?.cellRecord}"
5397
5397
  :columnConfig="${e=>e.cellState?.columnConfig}"
@@ -5399,11 +5399,11 @@ try{t=document.createElement(e)}catch(e){}if(!(t instanceof Wb))throw new Error(
5399
5399
  >
5400
5400
  </${e}>
5401
5401
  `)
5402
- class Kb{constructor(e){this.uniqueId=Er("table-column-slot"),this.sortOperation=qb,this.dataRecordFieldNames=[],this.groupingDisabled=!1,this.fractionalWidth=1,this.minPixelWidth=88,this.currentFractionalWidth=1,this.cellRecordFieldNames=e.cellRecordFieldNames,this.cellViewTemplate=Xb(e.cellViewTag),this.groupHeaderViewTemplate=Gb(e.groupHeaderViewTag)}fractionalWidthChanged(){this.currentFractionalWidth=this.fractionalWidth}pixelWidthChanged(){this.currentPixelWidth=this.pixelWidth}}e([m],Kb.prototype,"columnConfig",void 0),e([m],Kb.prototype,"operandDataRecordFieldName",void 0),e([m],Kb.prototype,"sortOperation",void 0),e([m],Kb.prototype,"dataRecordFieldNames",void 0),e([m],Kb.prototype,"groupingDisabled",void 0),e([m],Kb.prototype,"groupIndex",void 0),e([m],Kb.prototype,"pixelWidth",void 0),e([m],Kb.prototype,"fractionalWidth",void 0),e([m],Kb.prototype,"minPixelWidth",void 0),e([m],Kb.prototype,"currentFractionalWidth",void 0),e([m],Kb.prototype,"currentPixelWidth",void 0)
5403
- class Yb extends _t{constructor(e){if(super(),this.columnHidden=!1,this.sortDirection=zb.none,!e)throw new Error("ColumnInternalsOptions must be provided to constructor")
5404
- this.columnInternals=new Kb(e)}}e([ne({attribute:"column-id"})],Yb.prototype,"columnId",void 0),e([ne({attribute:"action-menu-slot"})],Yb.prototype,"actionMenuSlot",void 0),e([ne({attribute:"action-menu-label"})],Yb.prototype,"actionMenuLabel",void 0),e([ne({attribute:"column-hidden",mode:"boolean"})],Yb.prototype,"columnHidden",void 0),e([ne({attribute:"sort-index",converter:ie})],Yb.prototype,"sortIndex",void 0),e([ne({attribute:"sort-direction"})],Yb.prototype,"sortDirection",void 0)
5405
- class Qb{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.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}}isValid(){return Object.values(this.getValidity()).every((e=>!1===e))}areRecordIdsValid(){const e=this.getValidity()
5406
- return!e.duplicateRecordId&&!e.missingRecordId&&!e.invalidRecordId}validateSelectionMode(e,t){return this.idFieldNameNotConfigured=e!==Bb.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
5402
+ class Qb{constructor(e){this.uniqueId=Er("table-column-slot"),this.sortOperation=Ub,this.dataRecordFieldNames=[],this.groupingDisabled=!1,this.fractionalWidth=1,this.minPixelWidth=88,this.currentFractionalWidth=1,this.cellRecordFieldNames=e.cellRecordFieldNames,this.cellViewTemplate=Yb(e.cellViewTag),this.groupHeaderViewTemplate=Xb(e.groupHeaderViewTag)}fractionalWidthChanged(){this.currentFractionalWidth=this.fractionalWidth}pixelWidthChanged(){this.currentPixelWidth=this.pixelWidth}}e([m],Qb.prototype,"columnConfig",void 0),e([m],Qb.prototype,"operandDataRecordFieldName",void 0),e([m],Qb.prototype,"sortOperation",void 0),e([m],Qb.prototype,"dataRecordFieldNames",void 0),e([m],Qb.prototype,"groupingDisabled",void 0),e([m],Qb.prototype,"groupIndex",void 0),e([m],Qb.prototype,"pixelWidth",void 0),e([m],Qb.prototype,"fractionalWidth",void 0),e([m],Qb.prototype,"minPixelWidth",void 0),e([m],Qb.prototype,"currentFractionalWidth",void 0),e([m],Qb.prototype,"currentPixelWidth",void 0)
5403
+ class Jb extends _t{constructor(e){if(super(),this.columnHidden=!1,this.sortDirection=Bb.none,!e)throw new Error("ColumnInternalsOptions must be provided to constructor")
5404
+ this.columnInternals=new Qb(e)}}e([ne({attribute:"column-id"})],Jb.prototype,"columnId",void 0),e([ne({attribute:"action-menu-slot"})],Jb.prototype,"actionMenuSlot",void 0),e([ne({attribute:"action-menu-label"})],Jb.prototype,"actionMenuLabel",void 0),e([ne({attribute:"column-hidden",mode:"boolean"})],Jb.prototype,"columnHidden",void 0),e([ne({attribute:"sort-index",converter:ie})],Jb.prototype,"sortIndex",void 0),e([ne({attribute:"sort-direction"})],Jb.prototype,"sortDirection",void 0)
5405
+ class ew{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.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}}isValid(){return Object.values(this.getValidity()).every((e=>!1===e))}areRecordIdsValid(){const e=this.getValidity()
5406
+ return!e.duplicateRecordId&&!e.missingRecordId&&!e.invalidRecordId}validateSelectionMode(e,t){return this.idFieldNameNotConfigured=e!==Nb.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
5407
5407
  for(const i of e){if(!Object.prototype.hasOwnProperty.call(i,t)){this.missingRecordId=!0
5408
5408
  continue}const e=i[t]
5409
5409
  "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
@@ -5411,7 +5411,7 @@ const t=e.some((e=>e))
5411
5411
  if(!t)return!0
5412
5412
  const i=new Set
5413
5413
  for(const t of e)t?(i.has(t)&&(this.duplicateColumnId=!0),i.add(t)):this.missingColumnId=!0
5414
- 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}getPresentRecordIds(e){return e.filter((e=>this.recordIds.has(e)))}validateIndicesAreUnique(e){return new Set(e).size===e.length}}const Jb=me`
5414
+ 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}getPresentRecordIds(e){return e.filter((e=>this.recordIds.has(e)))}validateIndicesAreUnique(e){return new Set(e).size===e.length}}const tw=me`
5415
5415
  ${bn("flex")}
5416
5416
 
5417
5417
  :host {
@@ -5454,15 +5454,20 @@ return!this.missingColumnId&&!this.duplicateColumnId}validateColumnSortIndices(e
5454
5454
  }
5455
5455
 
5456
5456
  .header-row {
5457
- display: grid;
5457
+ display: flex;
5458
5458
  background: ${Br};
5459
5459
  position: relative;
5460
5460
  width: fit-content;
5461
5461
  min-width: 100%;
5462
- grid-template-columns: var(--ni-private-table-row-grid-columns) auto;
5463
5462
  left: var(--ni-private-table-scroll-x);
5464
5463
  }
5465
5464
 
5465
+ .column-header-container {
5466
+ display: grid;
5467
+ width: 100%;
5468
+ grid-template-columns: var(--ni-private-table-row-grid-columns) auto;
5469
+ }
5470
+
5466
5471
  .header-scrollbar-spacer {
5467
5472
  width: var(--ni-private-table-header-scrollbar-spacer-width);
5468
5473
  }
@@ -5471,6 +5476,18 @@ return!this.missingColumnId&&!this.duplicateColumnId}validateColumnSortIndices(e
5471
5476
  flex: 1;
5472
5477
  }
5473
5478
 
5479
+ .checkbox-container {
5480
+ display: flex;
5481
+ }
5482
+
5483
+ .selection-checkbox {
5484
+ margin-left: ${na};
5485
+ }
5486
+
5487
+ .selection-checkbox::part(label) {
5488
+ padding-left: 0px;
5489
+ }
5490
+
5474
5491
  .row {
5475
5492
  background: ${Br};
5476
5493
  position: relative;
@@ -5485,15 +5502,18 @@ return!this.missingColumnId&&!this.duplicateColumnId}validateColumnSortIndices(e
5485
5502
  pointer-events: none;
5486
5503
  }
5487
5504
 
5488
- :host([selection-mode='single']) .row:hover::before {
5505
+ :host([selection-mode='single']) .row:hover::before,
5506
+ :host([selection-mode='multiple']) .row:hover::before {
5489
5507
  background: ${qr};
5490
5508
  }
5491
5509
 
5492
- :host([selection-mode='single']) .row[selected]::before {
5510
+ :host([selection-mode='single']) .row[selected]::before,
5511
+ :host([selection-mode='multiple']) .row[selected]::before {
5493
5512
  background: ${Nr};
5494
5513
  }
5495
5514
 
5496
- :host([selection-mode='single']) .row[selected]:hover::before {
5515
+ :host([selection-mode='single']) .row[selected]:hover::before,
5516
+ :host([selection-mode='multiple']) .row[selected]:hover::before {
5497
5517
  background: ${Zr};
5498
5518
  }
5499
5519
  `.withBehaviors(pd(vs,me`
@@ -5510,18 +5530,21 @@ return!this.missingColumnId&&!this.duplicateColumnId}validateColumnSortIndices(e
5510
5530
  background: ${qr};
5511
5531
  }
5512
5532
 
5513
- :host([selection-mode='single']) .row:hover::before {
5533
+ :host([selection-mode='single']) .row:hover::before,
5534
+ :host([selection-mode='multiple']) .row:hover::before {
5514
5535
  background: ${ls(qn,.15)};
5515
5536
  }
5516
5537
 
5517
- :host([selection-mode='single']) .row[selected]::before {
5538
+ :host([selection-mode='single']) .row[selected]::before,
5539
+ :host([selection-mode='multiple']) .row[selected]::before {
5518
5540
  background: ${ls(qn,.25)};
5519
5541
  }
5520
5542
 
5521
- :host([selection-mode='single']) .row[selected]:hover::before {
5543
+ :host([selection-mode='single']) .row[selected]:hover::before,
5544
+ :host([selection-mode='multiple']) .row[selected]:hover::before {
5522
5545
  background: ${ls(qn,.2)};
5523
5546
  }
5524
- `)),ew=me`
5547
+ `)),iw=me`
5525
5548
  ${bn("flex")}
5526
5549
 
5527
5550
  :host {
@@ -5537,32 +5560,49 @@ return!this.missingColumnId&&!this.duplicateColumnId}validateColumnSortIndices(e
5537
5560
  .sort-indicator {
5538
5561
  padding: 0px calc(${na} / 2);
5539
5562
  }
5540
- `,tw=G`
5563
+ `,ow=G`
5541
5564
  <template role="columnheader" aria-sort="${e=>e.ariaSort}">
5542
5565
  <slot></slot>
5543
5566
 
5544
- ${Ie((e=>e.sortDirection===zb.ascending),G`
5545
- <${Rg} class="sort-indicator" aria-hidden="true"></${Rg}>
5567
+ ${Ie((e=>e.sortDirection===Bb.ascending),G`
5568
+ <${Mg} class="sort-indicator" aria-hidden="true"></${Mg}>
5546
5569
  `)}
5547
- ${Ie((e=>e.sortDirection===zb.descending),G`
5548
- <${mg} class="sort-indicator" aria-hidden="true"></${mg}>
5570
+ ${Ie((e=>e.sortDirection===Bb.descending),G`
5571
+ <${fg} class="sort-indicator" aria-hidden="true"></${fg}>
5549
5572
  `)}
5550
5573
  </template>
5551
5574
  `
5552
- class iw extends _t{constructor(){super(...arguments),this.sortDirection=zb.none,this.firstSortedColumn=!1}sortDirectionChanged(e,t){this.updateAriaSort()}firstSortedColumnChanged(e,t){this.updateAriaSort()}updateAriaSort(){this.firstSortedColumn&&this.sortDirection!==zb.none?this.sortDirection===zb.ascending?this.ariaSort="ascending":this.ariaSort="descending":this.ariaSort=null}}e([ne({attribute:"sort-direction"})],iw.prototype,"sortDirection",void 0),e([ne({attribute:"first-sorted-column",mode:"boolean"})],iw.prototype,"firstSortedColumn",void 0)
5553
- const ow=iw.compose({baseName:"table-header",template:tw,styles:ew})
5554
- no.getOrCreate().withPrefix("nimble").register(ow())
5555
- const nw=no.tagFor(iw),sw=me`
5556
- ${bn("grid")}
5575
+ class nw extends _t{constructor(){super(...arguments),this.sortDirection=Bb.none,this.firstSortedColumn=!1}sortDirectionChanged(e,t){this.updateAriaSort()}firstSortedColumnChanged(e,t){this.updateAriaSort()}updateAriaSort(){this.firstSortedColumn&&this.sortDirection!==Bb.none?this.sortDirection===Bb.ascending?this.ariaSort="ascending":this.ariaSort="descending":this.ariaSort=null}}e([ne({attribute:"sort-direction"})],nw.prototype,"sortDirection",void 0),e([ne({attribute:"first-sorted-column",mode:"boolean"})],nw.prototype,"firstSortedColumn",void 0)
5576
+ const sw=nw.compose({baseName:"table-header",template:ow,styles:iw})
5577
+ no.getOrCreate().withPrefix("nimble").register(sw())
5578
+ const rw=no.tagFor(nw),aw=me`
5579
+ ${bn("flex")}
5557
5580
 
5558
5581
  :host {
5559
5582
  height: calc(${ta} + 2 * ${sa});
5560
5583
  border-top: calc(2 * ${sa}) solid ${ea};
5584
+ width: fit-content;
5585
+ min-width: 100%;
5586
+ }
5587
+
5588
+ .checkbox-container {
5589
+ display: flex;
5590
+ }
5591
+
5592
+ .selection-checkbox {
5593
+ margin-left: ${na};
5594
+ }
5595
+
5596
+ .selection-checkbox::part(label) {
5597
+ padding-left: 0px;
5598
+ }
5599
+
5600
+ .cell-container {
5601
+ display: grid;
5602
+ width: 100%;
5561
5603
  grid-auto-flow: column;
5562
5604
  grid-auto-columns: 1fr;
5563
5605
  grid-template-columns: var(--ni-private-table-row-grid-columns) auto;
5564
- width: fit-content;
5565
- min-width: 100%;
5566
5606
  }
5567
5607
 
5568
5608
  nimble-table-cell {
@@ -5580,7 +5620,7 @@ const nw=no.tagFor(iw),sw=me`
5580
5620
  :host([selected]) nimble-table-cell {
5581
5621
  --ni-private-table-cell-action-menu-display: block;
5582
5622
  }
5583
- `,rw=me`
5623
+ `,lw=me`
5584
5624
  ${bn("grid")}
5585
5625
 
5586
5626
  :host {
@@ -5609,73 +5649,87 @@ const nw=no.tagFor(iw),sw=me`
5609
5649
  .action-menu {
5610
5650
  display: var(--ni-private-table-cell-action-menu-display);
5611
5651
  }
5612
- `,aw=G`
5652
+ `,cw=G`
5613
5653
  <template role="cell" style="--ni-private-table-cell-nesting-level: ${e=>e.nestingLevel}">
5614
5654
  ${e=>e.cellViewTemplate}
5615
5655
  ${Ie((e=>e.hasActionMenu),G`
5616
- <${yf} ${_e("actionMenuButton")}
5656
+ <${$f} ${_e("actionMenuButton")}
5617
5657
  content-hidden
5618
5658
  appearance="${Lc}"
5619
5659
  @beforetoggle="${(e,t)=>e.onActionMenuBeforeToggle(t.event)}"
5620
5660
  @toggle="${(e,t)=>e.onActionMenuToggle(t.event)}"
5661
+ @click="${(e,t)=>t.event.stopPropagation()}"
5621
5662
  class="action-menu"
5622
5663
  >
5623
- <${zm} slot="start"></${zm}>
5664
+ <${Bm} slot="start"></${Bm}>
5624
5665
  ${e=>e.actionMenuLabel}
5625
5666
  <slot name="cellActionMenu" slot="menu"></slot>
5626
- </${yf}>
5667
+ </${$f}>
5627
5668
  `)}
5628
5669
  </template>
5629
5670
  `
5630
- class lw extends _t{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],lw.prototype,"cellState",void 0),e([ne({attribute:"has-action-menu",mode:"boolean"})],lw.prototype,"hasActionMenu",void 0),e([ne({attribute:"menu-open",mode:"boolean"})],lw.prototype,"menuOpen",void 0),e([ne({attribute:"action-menu-label"})],lw.prototype,"actionMenuLabel",void 0),e([m],lw.prototype,"cellViewTemplate",void 0),e([m],lw.prototype,"nestingLevel",void 0)
5631
- const cw=lw.compose({baseName:"table-cell",template:aw,styles:rw})
5632
- no.getOrCreate().withPrefix("nimble").register(cw())
5633
- const dw=no.tagFor(lw),hw=G`
5671
+ class dw extends _t{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],dw.prototype,"cellState",void 0),e([ne({attribute:"has-action-menu",mode:"boolean"})],dw.prototype,"hasActionMenu",void 0),e([ne({attribute:"menu-open",mode:"boolean"})],dw.prototype,"menuOpen",void 0),e([ne({attribute:"action-menu-label"})],dw.prototype,"actionMenuLabel",void 0),e([m],dw.prototype,"cellViewTemplate",void 0),e([m],dw.prototype,"nestingLevel",void 0)
5672
+ const hw=dw.compose({baseName:"table-cell",template:cw,styles:lw})
5673
+ no.getOrCreate().withPrefix("nimble").register(hw())
5674
+ const uw=no.tagFor(dw),pw=G`
5634
5675
  <template role="row" aria-selected=${e=>e.ariaSelected}>
5635
- ${Ve((e=>e.columnStates),G`
5636
- ${Ie((e=>!e.column.columnHidden),G`
5637
- <${dw}
5638
- class="cell"
5639
- :cellState="${e=>e.cellState}"
5640
- :cellViewTemplate="${e=>e.column.columnInternals.cellViewTemplate}"
5641
- ?has-action-menu="${e=>!!e.column.actionMenuSlot}"
5642
- action-menu-label="${e=>e.column.actionMenuLabel}"
5643
- @cell-action-menu-beforetoggle="${(e,t)=>t.parent.onCellActionMenuBeforeToggle(t.event,e.column)}"
5644
- @cell-action-menu-toggle="${(e,t)=>t.parent.onCellActionMenuToggle(t.event,e.column)}"
5645
- :nestingLevel="${e=>e.cellIndentLevel};"
5676
+ ${Ie((e=>e.selectable&&!e.hideSelection),G`
5677
+ <span role="gridcell" class="checkbox-container">
5678
+ <${Np}
5679
+ ${_e("selectionCheckbox")}
5680
+ role="cell"
5681
+ class="selection-checkbox"
5682
+ @change="${(e,t)=>e.onSelectionChange(t.event)}"
5683
+ @click="${(e,t)=>t.event.stopPropagation()}"
5646
5684
  >
5685
+ </${Np}>
5686
+ </span>
5687
+ `)}
5647
5688
 
5648
- ${Ie(((e,t)=>t.parent.currentActionMenuColumn===e.column&&e.column.actionMenuSlot),G`
5649
- <slot
5650
- name="${e=>`row-action-menu-${e.column.actionMenuSlot}`}"
5651
- slot="cellActionMenu"
5652
- ></slot>
5653
- `)}
5654
- </${dw}>
5689
+ <span ${_e("cellContainer")} class="cell-container">
5690
+ ${Ve((e=>e.columnStates),G`
5691
+ ${Ie((e=>!e.column.columnHidden),G`
5692
+ <${uw}
5693
+ class="cell"
5694
+ :cellState="${e=>e.cellState}"
5695
+ :cellViewTemplate="${e=>e.column.columnInternals.cellViewTemplate}"
5696
+ ?has-action-menu="${e=>!!e.column.actionMenuSlot}"
5697
+ action-menu-label="${e=>e.column.actionMenuLabel}"
5698
+ @cell-action-menu-beforetoggle="${(e,t)=>t.parent.onCellActionMenuBeforeToggle(t.event,e.column)}"
5699
+ @cell-action-menu-toggle="${(e,t)=>t.parent.onCellActionMenuToggle(t.event,e.column)}"
5700
+ :nestingLevel="${e=>e.cellIndentLevel};"
5701
+ >
5702
+
5703
+ ${Ie(((e,t)=>t.parent.currentActionMenuColumn===e.column&&e.column.actionMenuSlot),G`
5704
+ <slot
5705
+ name="${e=>`row-action-menu-${e.column.actionMenuSlot}`}"
5706
+ slot="cellActionMenu"
5707
+ ></slot>
5708
+ `)}
5709
+ </${uw}>
5710
+ `)}
5655
5711
  `)}
5656
- `)}
5712
+ </span>
5657
5713
  </template>
5658
5714
  `
5659
- class uw extends _t{constructor(){super(...arguments),this.selectable=!1,this.selected=!1,this.columns=[],this.nestingLevel=0,this.menuOpen=!1}get columnStates(){return this.columns.map(((e,t)=>{const i=e.columnInternals.dataRecordFieldNames
5715
+ class gw extends _t{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
5660
5716
  let o
5661
5717
  if(this.hasValidFieldNames(i)&&this.dataRecord){const t=i.map((e=>this.dataRecord[e]))
5662
5718
  o={cellRecord:Object.fromEntries(e.columnInternals.cellRecordFieldNames.map(((e,i)=>[e,t[i]]))),columnConfig:e.columnInternals.columnConfig??{}}}else o={cellRecord:{},columnConfig:{}}
5663
- return{column:e,cellState:o,cellIndentLevel:0===t?this.nestingLevel:0}}))}get ariaSelected(){return this.selectable?this.selected?"true":"false":null}onCellActionMenuBeforeToggle(e,t){this.currentActionMenuColumn=t,this.emitToggleEvent("row-action-menu-beforetoggle",e.detail,t)}onCellActionMenuToggle(e,t){this.menuOpen=e.detail.newState,this.emitToggleEvent("row-action-menu-toggle",e.detail,t)}closeOpenActionMenus(){if(this.menuOpen){const e=Array.from(this.shadowRoot.children).find((e=>e instanceof lw&&e.menuOpen))
5664
- e?.actionMenuButton?.open&&e.actionMenuButton.toggleButton.control.click()}}emitToggleEvent(e,t,i){const o={newState:t.newState,oldState:t.oldState,recordIds:[this.recordId],columnId:i.columnId}
5665
- this.$emit(e,o)}hasValidFieldNames(e){return e.every((e=>void 0!==e))}}e([ne({attribute:"record-id"})],uw.prototype,"recordId",void 0),e([ne({mode:"boolean"})],uw.prototype,"selectable",void 0),e([ne({mode:"boolean"})],uw.prototype,"selected",void 0),e([m],uw.prototype,"dataRecord",void 0),e([m],uw.prototype,"columns",void 0),e([m],uw.prototype,"currentActionMenuColumn",void 0),e([m],uw.prototype,"nestingLevel",void 0),e([ne({attribute:"menu-open",mode:"boolean"})],uw.prototype,"menuOpen",void 0),e([f],uw.prototype,"columnStates",null),e([f],uw.prototype,"ariaSelected",null)
5666
- const pw=uw.compose({baseName:"table-row",template:hw,styles:sw})
5667
- no.getOrCreate().withPrefix("nimble").register(pw())
5668
- const gw=no.tagFor(uw),vw=me`
5719
+ return{column:e,cellState:o,cellIndentLevel:0===t?this.nestingLevel:0}}))}get ariaSelected(){return this.selectable?this.selected?"true":"false":null}onSelectionChange(e){if(this.ignoreSelectionChangeEvents)return
5720
+ const t=e.target,i={oldState:!t.checked,newState:t.checked}
5721
+ 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 dw&&e.menuOpen))
5722
+ 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}
5723
+ 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"})],gw.prototype,"recordId",void 0),e([ne({mode:"boolean"})],gw.prototype,"selectable",void 0),e([ne({mode:"boolean"})],gw.prototype,"selected",void 0),e([ne({attribute:"hide-selection",mode:"boolean"})],gw.prototype,"hideSelection",void 0),e([m],gw.prototype,"dataRecord",void 0),e([m],gw.prototype,"columns",void 0),e([m],gw.prototype,"currentActionMenuColumn",void 0),e([m],gw.prototype,"nestingLevel",void 0),e([ne({attribute:"menu-open",mode:"boolean"})],gw.prototype,"menuOpen",void 0),e([m],gw.prototype,"selectionCheckbox",void 0),e([f],gw.prototype,"columnStates",null),e([f],gw.prototype,"ariaSelected",null)
5724
+ const vw=gw.compose({baseName:"table-row",template:pw,styles:aw})
5725
+ no.getOrCreate().withPrefix("nimble").register(vw())
5726
+ const mw=no.tagFor(gw),fw=me`
5669
5727
  ${bn("flex")}
5670
5728
 
5671
5729
  :host {
5672
5730
  align-items: center;
5673
5731
  height: calc(${ta} + 2 * ${sa});
5674
5732
  border-top: calc(2 * ${sa}) solid ${ea};
5675
- padding-left: calc(
5676
- ${oa} * 2 + ${na} * 2 *
5677
- var(--ni-private-table-group-row-indent-level)
5678
- );
5679
5733
  }
5680
5734
 
5681
5735
  :host(:hover) {
@@ -5688,6 +5742,10 @@ const gw=no.tagFor(uw),vw=me`
5688
5742
  }
5689
5743
 
5690
5744
  .expand-collapse-button {
5745
+ margin-left: calc(
5746
+ ${oa} * 2 + ${na} * 2 *
5747
+ var(--ni-private-table-group-row-indent-level)
5748
+ );
5691
5749
  width: ${ia};
5692
5750
  height: ${ia};
5693
5751
  }
@@ -5724,27 +5782,64 @@ const gw=no.tagFor(uw),vw=me`
5724
5782
  transition-duration: 0s;
5725
5783
  }
5726
5784
  }
5727
- `,mw=G`
5728
- <template @click=${e=>e.onGroupExpandToggle()} style="--ni-private-table-group-row-indent-level: ${e=>e.nestingLevel};">
5729
- <${bd}
5730
- appearance="${Lc}"
5731
- content-hidden
5732
- class="expand-collapse-button"
5733
- tabindex="-1"
5734
- >
5735
- <${xg} ${_e("expandIcon")} slot="start" class="expander-icon ${e=>e.animationClass}"></${xg}>
5736
- </${bd}>
5785
+
5786
+ .checkbox-container {
5787
+ display: flex;
5788
+ }
5789
+
5790
+ .selection-checkbox {
5791
+ margin-left: ${na};
5792
+ }
5793
+
5794
+ .selection-checkbox::part(label) {
5795
+ padding-left: 0px;
5796
+ }
5797
+ `,bw=G`
5798
+ <template
5799
+ role="row"
5800
+ @click=${e=>e.onGroupExpandToggle()}
5801
+ style="--ni-private-table-group-row-indent-level: ${e=>e.nestingLevel};"
5802
+ >
5803
+ ${Ie((e=>e.selectable),G`
5804
+ <span role="gridcell" class="checkbox-container">
5805
+ <${Np}
5806
+ ${_e("selectionCheckbox")}
5807
+ class="selection-checkbox"
5808
+ @change="${(e,t)=>e.onSelectionChange(t.event)}"
5809
+ @click="${(e,t)=>t.event.stopPropagation()}"
5810
+ >
5811
+ </${Np}>
5812
+ </span>
5813
+ `)}
5814
+
5815
+ <span role="gridcell">
5816
+ <${bd}
5817
+ appearance="${Lc}"
5818
+ content-hidden
5819
+ class="expand-collapse-button"
5820
+ tabindex="-1"
5821
+ >
5822
+ <${yg} ${_e("expandIcon")} slot="start" class="expander-icon ${e=>e.animationClass}"></${yg}>
5823
+ </${bd}>
5824
+ </span>
5825
+
5737
5826
  <div class="group-row-header-content">
5738
5827
  ${e=>e.groupColumn?.columnInternals.groupHeaderViewTemplate}
5739
5828
  <div class="group-row-child-count">(${e=>e.leafItemCount})</span>
5740
5829
  </div>
5741
5830
  </template>
5742
5831
  `
5743
- class fw extends _t{constructor(){super(...arguments),this.nestingLevel=0,this.expanded=!1,this.animationClass="",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)}}e([m],fw.prototype,"groupRowValue",void 0),e([m],fw.prototype,"nestingLevel",void 0),e([m],fw.prototype,"leafItemCount",void 0),e([m],fw.prototype,"groupColumn",void 0),e([ne({mode:"boolean"})],fw.prototype,"expanded",void 0),e([m],fw.prototype,"animationClass",void 0)
5744
- const bw=fw.compose({baseName:"table-group-row",template:mw,styles:vw})
5745
- no.getOrCreate().withPrefix("nimble").register(bw())
5746
- const ww=no.tagFor(fw),xw=G`
5747
- <template role="grid" ${De({property:"childItems",filter:Fe()})}>
5832
+ class ww extends _t{constructor(){super(...arguments),this.nestingLevel=0,this.expanded=!1,this.selectable=!1,this.selectionState=Zb,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
5833
+ const t=e.target,i={oldState:!t.checked,newState:t.checked}
5834
+ 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],ww.prototype,"groupRowValue",void 0),e([m],ww.prototype,"nestingLevel",void 0),e([m],ww.prototype,"leafItemCount",void 0),e([m],ww.prototype,"groupColumn",void 0),e([ne({mode:"boolean"})],ww.prototype,"expanded",void 0),e([ne({mode:"boolean"})],ww.prototype,"selectable",void 0),e([ne({attribute:"selection-state"})],ww.prototype,"selectionState",void 0),e([m],ww.prototype,"selectionCheckbox",void 0),e([m],ww.prototype,"animationClass",void 0)
5835
+ const xw=ww.compose({baseName:"table-group-row",template:bw,styles:fw})
5836
+ no.getOrCreate().withPrefix("nimble").register(xw())
5837
+ const yw=no.tagFor(ww),$w=G`
5838
+ <template
5839
+ role="grid"
5840
+ aria-multiselectable="${e=>e.ariaMultiSelectable}"
5841
+ ${De({property:"childItems",filter:Fe()})}
5842
+ >
5748
5843
  <div class="table-container" style="
5749
5844
  --ni-private-table-scroll-x: -${e=>e.scrollX}px;
5750
5845
  --ni-private-table-header-scrollbar-spacer-width: ${e=>e.virtualizer.headerContainerMarginRight}px;
@@ -5754,50 +5849,68 @@ const ww=no.tagFor(fw),xw=G`
5754
5849
  ">
5755
5850
  <div role="rowgroup" class="header-container">
5756
5851
  <div class="header-row" role="row">
5757
- ${Ve((e=>e.columns),G`
5758
- ${Ie((e=>!e.columnHidden),G`
5759
- <${nw}
5760
- class="header"
5761
- sort-direction="${e=>"number"==typeof e.sortIndex?e.sortDirection:zb.none}"
5762
- ?first-sorted-column="${(e,t)=>e===t.parent.firstSortedColumn}"
5852
+ ${Ie((e=>e.selectionMode===Nb.multiple),G`
5853
+ <span role="columnheader" class="checkbox-container">
5854
+ <${Np}
5855
+ ${_e("selectionCheckbox")}
5856
+ class="${e=>`selection-checkbox ${e.selectionMode??""}`}"
5857
+ @change="${async(e,t)=>e.onAllRowsSelectionChange(t.event)}"
5763
5858
  >
5764
- <slot name="${e=>e.slot}"></slot>
5765
- </${nw}>
5766
- `)}
5859
+ </${Np}>
5860
+ </span>
5767
5861
  `)}
5768
- <div class="header-scrollbar-spacer"></div>
5862
+
5863
+ <span class="column-header-container">
5864
+ ${Ve((e=>e.columns),G`
5865
+ ${Ie((e=>!e.columnHidden),G`
5866
+ <${rw}
5867
+ class="header"
5868
+ sort-direction="${e=>"number"==typeof e.sortIndex?e.sortDirection:Bb.none}"
5869
+ ?first-sorted-column="${(e,t)=>e===t.parent.firstSortedColumn}"
5870
+ >
5871
+ <slot name="${e=>e.slot}"></slot>
5872
+ </${rw}>
5873
+ `)}
5874
+ `)}
5875
+ <div class="header-scrollbar-spacer"></div>
5876
+ </span>
5769
5877
  </div>
5770
5878
  </div>
5771
5879
  <div class="table-viewport" ${_e("viewport")}>
5772
5880
  <div class="table-scroll"></div>
5773
- <div class="table-row-container" ${De({property:"rowElements",filter:Fe(gw)})}
5881
+ <div class="table-row-container" ${De({property:"rowElements",filter:Fe(mw)})}
5774
5882
  role="rowgroup">
5775
5883
  ${Ie((e=>e.columns.length>0&&e.canRenderRows),G`
5776
5884
  ${Ve((e=>e.virtualizer.visibleItems),G`
5777
5885
  ${Ie(((e,t)=>t.parent.tableData[e.index]?.isGrouped),G`
5778
- <${ww}
5886
+ <${yw}
5779
5887
  class="group-row"
5780
5888
  :groupRowValue="${(e,t)=>t.parent.tableData[e.index]?.groupRowValue}"
5781
5889
  ?expanded="${(e,t)=>t.parent.tableData[e.index]?.isExpanded}"
5782
5890
  :nestingLevel="${(e,t)=>t.parent.tableData[e.index]?.nestingLevel}"
5783
5891
  :leafItemCount="${(e,t)=>t.parent.tableData[e.index]?.leafItemCount}"
5784
5892
  :groupColumn="${(e,t)=>t.parent.tableData[e.index]?.groupColumn}"
5893
+ ?selectable="${(e,t)=>t.parent.selectionMode===Nb.multiple}"
5894
+ selection-state="${(e,t)=>t.parent.tableData[e.index]?.selectionState}"
5895
+ @group-selection-toggle="${async(e,t)=>t.parent.onRowSelectionToggle(e.index,t.event)}"
5785
5896
  @group-expand-toggle="${(e,t)=>t.parent.handleGroupRowExpanded(e.index,t.event)}"
5786
- >
5787
- </${ww}>
5897
+ >
5898
+ </${yw}>
5788
5899
  `)}
5789
5900
  ${Ie(((e,t)=>!t.parent.tableData[e.index]?.isGrouped),G`
5790
- <${gw}
5901
+ <${mw}
5791
5902
  class="row"
5792
5903
  record-id="${(e,t)=>t.parent.tableData[e.index]?.id}"
5793
- ?selectable="${(e,t)=>t.parent.selectionMode!==Bb.none}"
5794
- ?selected="${(e,t)=>t.parent.tableData[e.index]?.selectionState===Zb}"
5904
+ ?selectable="${(e,t)=>t.parent.selectionMode!==Nb.none}"
5905
+ ?selected="${(e,t)=>t.parent.tableData[e.index]?.selectionState===qb}"
5906
+ ?hide-selection="${(e,t)=>t.parent.selectionMode!==Nb.multiple}"
5795
5907
  :dataRecord="${(e,t)=>t.parent.tableData[e.index]?.record}"
5796
5908
  :columns="${(e,t)=>t.parent.columns}"
5797
5909
  :nestingLevel="${(e,t)=>t.parent.tableData[e.index]?.nestingLevel}"
5798
5910
  @click="${async(e,t)=>t.parent.onRowClick(e.index)}"
5799
- @row-action-menu-beforetoggle="${(e,t)=>t.parent.onRowActionMenuBeforeToggle(t.event)}"
5800
- @row-action-menu-toggle="${(e,t)=>t.parent.onRowActionMenuToggle(t.event)}"
5911
+ @row-selection-toggle="${async(e,t)=>t.parent.onRowSelectionToggle(e.index,t.event)}"
5912
+ @row-action-menu-beforetoggle="${async(e,t)=>t.parent.onRowActionMenuBeforeToggle(e.index,t.event)}"
5913
+ @row-action-menu-toggle="${async(e,t)=>t.parent.onRowActionMenuToggle(t.event)}"
5801
5914
  >
5802
5915
  ${Ie(((e,t)=>t.parent.openActionMenuRecordId===t.parent.tableData[e.index]?.id),G`
5803
5916
  ${Ve(((e,t)=>t.parent.actionMenuSlots),G`
@@ -5807,7 +5920,7 @@ const ww=no.tagFor(fw),xw=G`
5807
5920
  </slot>
5808
5921
  `)}
5809
5922
  `)}
5810
- </${gw}>
5923
+ </${mw}>
5811
5924
  `)}
5812
5925
  `)}
5813
5926
  `)}
@@ -5826,8 +5939,8 @@ const ww=no.tagFor(fw),xw=G`
5826
5939
  *
5827
5940
  * @license MIT
5828
5941
  */
5829
- function yw(){return yw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t]
5830
- for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(e[o]=i[o])}return e},yw.apply(this,arguments)}
5942
+ function Cw(){return Cw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t]
5943
+ for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(e[o]=i[o])}return e},Cw.apply(this,arguments)}
5831
5944
  /**
5832
5945
  * virtual-core
5833
5946
  *
@@ -5837,42 +5950,42 @@ for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(e[o]=i[o])}return e},
5837
5950
  * LICENSE.md file in the root directory of this source tree.
5838
5951
  *
5839
5952
  * @license MIT
5840
- */function $w(e,t,i){var o,n,s=null!=(o=i.initialDeps)?o:[]
5953
+ */function kw(e,t,i){var o,n,s=null!=(o=i.initialDeps)?o:[]
5841
5954
  return function(){var o
5842
5955
  i.key&&null!=i.debug&&i.debug()&&(o=Date.now())
5843
5956
  var r,a=e()
5844
5957
  if(!(a.length!==s.length||a.some((function(e,t){return s[t]!==e}))))return n
5845
5958
  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
5846
5959
  return e}
5847
- 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 Cw,kw=function(e){return e},Sw=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)
5848
- return o},_w=function(e,t){var i=new ResizeObserver((function(e){var i=e[0]
5960
+ 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 Sw,_w=function(e){return e},Iw=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)
5961
+ return o},Rw=function(e,t){var i=new ResizeObserver((function(e){var i=e[0]
5849
5962
  if(i){var o=i.contentRect,n=o.width,s=o.height
5850
5963
  t({width:Math.round(n),height:Math.round(s)})}else t({width:0,height:0})}))
5851
- if(e.scrollElement)return t(e.scrollElement.getBoundingClientRect()),i.observe(e.scrollElement),function(){i.unobserve(e.scrollElement)}},Iw={element:["scrollLeft","scrollTop"],window:["scrollX","scrollY"]},Rw=(Cw="element",function(e,t){if(e.scrollElement){var i=Iw[Cw][0],o=Iw[Cw][1],n=e.scrollElement[i],s=e.scrollElement[o],r=function(){var n=e.scrollElement[e.options.horizontal?i:o]
5964
+ if(e.scrollElement)return t(e.scrollElement.getBoundingClientRect()),i.observe(e.scrollElement),function(){i.unobserve(e.scrollElement)}},Mw={element:["scrollLeft","scrollTop"],window:["scrollX","scrollY"]},Aw=(Sw="element",function(e,t){if(e.scrollElement){var i=Mw[Sw][0],o=Mw[Sw][1],n=e.scrollElement[i],s=e.scrollElement[o],r=function(){var n=e.scrollElement[e.options.horizontal?i:o]
5852
5965
  t(n)}
5853
5966
  r()
5854
5967
  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}
5855
- return e.scrollElement.addEventListener("scroll",a,{capture:!1,passive:!0}),function(){e.scrollElement.removeEventListener("scroll",a)}}}),Mw=function(e,t){return Math.round(e.getBoundingClientRect()[t.options.horizontal?"width":"height"])},Aw=function(e,t,i){var o,n,s=t.adjustments,r=void 0===s?0:s,a=t.behavior,l=e+r
5856
- null==(o=i.scrollElement)||null==o.scrollTo||o.scrollTo(((n={})[i.options.horizontal?"left":"top"]=l,n.behavior=a,n))},Ow=function(e){var t,i=this
5968
+ return e.scrollElement.addEventListener("scroll",a,{capture:!1,passive:!0}),function(){e.scrollElement.removeEventListener("scroll",a)}}}),Ow=function(e,t){return Math.round(e.getBoundingClientRect()[t.options.horizontal?"width":"height"])},Ew=function(e,t,i){var o,n,s=t.adjustments,r=void 0===s?0:s,a=t.behavior,l=e+r
5969
+ null==(o=i.scrollElement)||null==o.scrollTo||o.scrollTo(((n={})[i.options.horizontal?"left":"top"]=l,n.behavior=a,n))},Vw=function(e){var t,i=this
5857
5970
  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]
5858
- void 0===t[1]&&delete e[i]})),i.options=yw({debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:kw,rangeExtractor:Sw,onChange:function(){},measureElement:Mw,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()
5971
+ void 0===t[1]&&delete e[i]})),i.options=Cw({debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:_w,rangeExtractor:Iw,onChange:function(){},measureElement:Ow,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()
5859
5972
  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()
5860
- 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=$w((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
5973
+ 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=kw((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
5861
5974
  i.pendingMeasuredCacheIndexes=[]
5862
5975
  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
5863
- 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=$w((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)
5976
+ 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=kw((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)
5864
5977
  if(s<o)e=n+1
5865
5978
  else{if(!(s>o))return n
5866
5979
  t=n-1}}return e>0?e-1:0}(0,n,s,o),a=r
5867
5980
  for(;a<n&&t[a].end<o+i;)a++
5868
- return{startIndex:r,endIndex:a}}({measurements:e,outerSize:t,scrollOffset:o})}),{key:!1,debug:function(){return i.options.debug}}),this.maybeNotify=$w((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=$w((function(){return[i.options.rangeExtractor,i.calculateRange(),i.options.overscan,i.options.count]}),(function(e,t,i,o){return e(yw({},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)
5981
+ return{startIndex:r,endIndex:a}}({measurements:e,outerSize:t,scrollOffset:o})}),{key:!1,debug:function(){return i.options.debug}}),this.maybeNotify=kw((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=kw((function(){return[i.options.rangeExtractor,i.calculateRange(),i.options.overscan,i.options.count]}),(function(e,t,i,o){return e(Cw({},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)
5869
5982
  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]
5870
5983
  if(s){var r=i.measureElementCache[s.key],a=i.getResizeObserver()
5871
5984
  if(!e.isConnected)return null==a||a.unobserve(e),void(e===r&&delete i.measureElementCache[s.key])
5872
5985
  if(r!==e)r&&(null==a||a.unobserve(r)),null==a||a.observe(e),i.measureElementCache[s.key]=e
5873
5986
  else if(!t&&!r.__virtualizerSkipFirstNotSync)return void(r.__virtualizerSkipFirstNotSync=!0)
5874
5987
  var l,c=i.options.measureElement(e,i),d=c-(null!=(o=i.itemSizeCache[s.key])?o:s.size)
5875
- if(0!==d)s.start<i.scrollOffset&&i._scrollToOffset(i.scrollOffset,{adjustments:i.scrollAdjustments+=d,behavior:void 0}),i.pendingMeasuredCacheIndexes.push(n),i.itemSizeCache=yw({},i.itemSizeCache,((l={})[s.key]=c,l)),i.notify()}},this.measureElement=function(e){e&&i._measureElement(e,!0)},this.getVirtualItems=$w((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]]
5988
+ if(0!==d)s.start<i.scrollOffset&&i._scrollToOffset(i.scrollOffset,{adjustments:i.scrollAdjustments+=d,behavior:void 0}),i.pendingMeasuredCacheIndexes.push(n),i.itemSizeCache=Cw({},i.itemSizeCache,((l={})[s.key]=c,l)),i.notify()}},this.measureElement=function(e){e&&i._measureElement(e,!0)},this.getVirtualItems=kw((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]]
5876
5989
  i.push(s)}return i}),{key:!1,debug:function(){return i.options.debug}}),this.getOffsetForAlignment=function(e,t){var o=i.getSize()
5877
5990
  "auto"===t&&(t=e<=i.scrollOffset?"start":e>=i.scrollOffset+o?"end":"start"),"start"===t||("end"===t?e-=o:"center"===t&&(e-=o/2))
5878
5991
  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()
@@ -5902,35 +6015,35 @@ i.options.scrollToFn(e,{behavior:n,adjustments:o},i)},this.measure=function(){i.
5902
6015
  * LICENSE.md file in the root directory of this source tree.
5903
6016
  *
5904
6017
  * @license MIT
5905
- */class Ew{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]
6018
+ */class Fw{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]
5906
6019
  if(t){const e=t.inlineSize
5907
6020
  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()
5908
- this.virtualizer?this.virtualizer.setOptions(e):this.virtualizer=new Ow(e),this.virtualizer._willUpdate(),this.handleVirtualizerChange()}createVirtualizerOptions(){const e=parseFloat(ta.getValueFor(this.table))+2*parseFloat(sa.getValueFor(this.table))
5909
- return{count:this.tanStackTable.getRowModel().rows.length,getScrollElement:()=>this.table.viewport,estimateSize:t=>e,enableSmoothScroll:!0,overscan:3,scrollingDelay:5,scrollToFn:Aw,observeElementOffset:Rw,observeElementRect:_w,onChange:()=>this.handleVirtualizerChange()}}handleVirtualizerChange(){this.notifyFocusedCellRecycling()
6021
+ this.virtualizer?this.virtualizer.setOptions(e):this.virtualizer=new Vw(e),this.virtualizer._willUpdate(),this.handleVirtualizerChange()}createVirtualizerOptions(){const e=parseFloat(ta.getValueFor(this.table))+2*parseFloat(sa.getValueFor(this.table))
6022
+ return{count:this.tanStackTable.getRowModel().rows.length,getScrollElement:()=>this.table.viewport,estimateSize:t=>e,enableSmoothScroll:!0,overscan:3,scrollingDelay:5,scrollToFn:Ew,observeElementOffset:Aw,observeElementRect:Rw,onChange:()=>this.handleVirtualizerChange()}}handleVirtualizerChange(){this.notifyFocusedCellRecycling()
5910
6023
  const e=this.virtualizer
5911
6024
  this.visibleItems=e.getVirtualItems(),this.allRowsHeight=e.getTotalSize()
5912
6025
  let t=0
5913
6026
  if(this.visibleItems.length>0){t=this.visibleItems[0].start}this.rowContainerYOffset=t}notifyFocusedCellRecycling(){let e=this.table.shadowRoot.activeElement
5914
- for(;null!==e&&!(e instanceof Wb)&&e.shadowRoot;)e=e.shadowRoot.activeElement
5915
- if(e instanceof Wb&&e.focusedRecycleCallback(),void 0!==this.table.openActionMenuRecordId){this.table.rowElements.find((e=>e.recordId===this.table.openActionMenuRecordId))?.closeOpenActionMenus()}}}function Vw(e){switch(e){case qb:return Hb.basic
5916
- case jb:return Fw
5917
- default:return Hb.basic}}function Fw(e,t,i){const o=e.getValue(i),n=t.getValue(i)
5918
- 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],Ew.prototype,"visibleItems",void 0),e([m],Ew.prototype,"allRowsHeight",void 0),e([m],Ew.prototype,"headerContainerMarginRight",void 0),e([m],Ew.prototype,"rowContainerYOffset",void 0)
5919
- const Hw=(e,...t)=>{for(const i of t)if(e===i)return!0
5920
- return!1},Pw=(e,...t)=>{for(const i of t)if(e===i)return!0
6027
+ for(;null!==e&&!(e instanceof Kb)&&e.shadowRoot;)e=e.shadowRoot.activeElement
6028
+ if(e instanceof Kb&&e.focusedRecycleCallback(),void 0!==this.table.openActionMenuRecordId){this.table.rowElements.find((e=>e.recordId===this.table.openActionMenuRecordId))?.closeOpenActionMenus()}}}function Hw(e){switch(e){case Ub:return Pb.basic
6029
+ case Gb:return Pw
6030
+ default:return Pb.basic}}function Pw(e,t,i){const o=e.getValue(i),n=t.getValue(i)
6031
+ 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],Fw.prototype,"visibleItems",void 0),e([m],Fw.prototype,"allRowsHeight",void 0),e([m],Fw.prototype,"headerContainerMarginRight",void 0),e([m],Fw.prototype,"rowContainerYOffset",void 0)
6032
+ const Tw=(e,...t)=>{for(const i of t)if(e===i)return!0
6033
+ return!1},Lw=(e,...t)=>{for(const i of t)if(e===i)return!0
5921
6034
  return!1}
5922
- class Tw{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){Hw(e,"columnId")?this.requiredUpdates.columnIds=!0:Pw(e,"operandDataRecordFieldName","sortOperation")?this.requiredUpdates.columnDefinition=!0:Hw(e,"sortIndex","sortDirection")?this.requiredUpdates.columnSort=!0:Hw(e,"columnHidden")||Pw(e,"currentFractionalWidth","currentPixelWidth","minPixelWidth")?this.requiredUpdates.columnWidths=!0:Hw(e,"actionMenuSlot")?this.requiredUpdates.actionMenuSlots=!0:Pw(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 Lw{static getGridTemplateColumns(e){return e?.filter((e=>!e.columnHidden)).map((e=>{const{minPixelWidth:t,currentPixelWidth:i,currentFractionalWidth:o}=e.columnInternals
5923
- if(i){return`${Math.max(t,i)}px`}return`minmax(${t}px, ${o}fr)`})).join(" ")}}class Dw extends _t{constructor(){super(),this.selectionMode=Bb.none,this.tableData=[],this.columns=[],this.childItems=[],this.rowElements=[],this.actionMenuSlots=[],this.canRenderRows=!0,this.scrollX=0,this.tableValidator=new Qb,this.updateTracker=new Tw(this),this.columnNotifiers=[],this.isInitialized=!1,this.collapsedRows=new Set,this.onViewPortScroll=e=>{this.scrollX=e.target.scrollLeft},this.getIsRowExpanded=e=>{if(!e.getIsGrouped())return!1
6035
+ class Dw{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){Tw(e,"columnId")?this.requiredUpdates.columnIds=!0:Lw(e,"operandDataRecordFieldName","sortOperation")?this.requiredUpdates.columnDefinition=!0:Tw(e,"sortIndex","sortDirection")?this.requiredUpdates.columnSort=!0:Tw(e,"columnHidden")||Lw(e,"currentFractionalWidth","currentPixelWidth","minPixelWidth")?this.requiredUpdates.columnWidths=!0:Tw(e,"actionMenuSlot")?this.requiredUpdates.actionMenuSlots=!0:Lw(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 zw{static getGridTemplateColumns(e){return e?.filter((e=>!e.columnHidden)).map((e=>{const{minPixelWidth:t,currentPixelWidth:i,currentFractionalWidth:o}=e.columnInternals
6036
+ if(i){return`${Math.max(t,i)}px`}return`minmax(${t}px, ${o}fr)`})).join(" ")}}class Bw extends _t{constructor(){super(),this.selectionMode=Nb.none,this.tableData=[],this.columns=[],this.childItems=[],this.rowElements=[],this.actionMenuSlots=[],this.canRenderRows=!0,this.scrollX=0,this.selectionState=Zb,this.tableValidator=new ew,this.updateTracker=new Dw(this),this.columnNotifiers=[],this.isInitialized=!1,this.collapsedRows=new Set,this.ignoreSelectionChangeEvents=!1,this.onViewPortScroll=e=>{this.scrollX=e.target.scrollLeft},this.getIsRowExpanded=e=>{if(!e.getIsGrouped())return!1
5924
6037
  const t=this.table.options.state.expanded
5925
6038
  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
5926
6039
  this.updateTableOptions({state:{rowSelection:t}})},this.handleExpandedChange=e=>{const t=e instanceof Function?e(this.table.getState().expanded):e
5927
- this.updateTableOptions({state:{expanded:t}})},this.options={data:[],onStateChange:e=>{},onRowSelectionChange:this.handleRowSelectionChange,onExpandedChange:this.handleExpandedChange,getCoreRowModel:e=>ob((()=>[e.options.data]),(t=>{const i={rows:[],flatRows:[],rowsById:{}},o=function(t,n,s){void 0===n&&(n=0)
6040
+ this.updateTableOptions({state:{expanded:t}})},this.options={data:[],onStateChange:e=>{},onRowSelectionChange:this.handleRowSelectionChange,onExpandedChange:this.handleExpandedChange,getCoreRowModel:e=>nb((()=>[e.options.data]),(t=>{const i={rows:[],flatRows:[],rowsById:{}},o=function(t,n,s){void 0===n&&(n=0)
5928
6041
  const r=[]
5929
- for(let l=0;l<t.length;l++){const c=Lb(e,e._getRowId(t[l],l,s),t[l],l,n)
6042
+ for(let l=0;l<t.length;l++){const c=Db(e,e._getRowId(t[l],l,s),t[l],l,n)
5930
6043
  var a
5931
6044
  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}
5932
6045
  return i.rows=o(t),i}),{key:!1,debug:()=>{var t
5933
- return null!=(t=e.options.debugAll)?t:e.options.debugTable},onChange:()=>{e._autoResetPageIndex()}}),getSortedRowModel:e=>ob((()=>[e.getState().sorting,e.getPreSortedRowModel()]),((t,i)=>{if(!i.rows.length||null==t||!t.length)return i
6046
+ return null!=(t=e.options.debugAll)?t:e.options.debugTable},onChange:()=>{e._autoResetPageIndex()}}),getSortedRowModel:e=>nb((()=>[e.getState().sorting,e.getPreSortedRowModel()]),((t,i)=>{if(!i.rows.length||null==t||!t.length)return i
5934
6047
  const o=e.getState().sorting,n=[],s=o.filter((t=>{var i
5935
6048
  return null==(i=e.getColumn(t.id))?void 0:i.getCanSort()})),r={}
5936
6049
  s.forEach((t=>{const i=e.getColumn(t.id)
@@ -5943,39 +6056,61 @@ if(i||o)return i&&o?0:i?a.sortUndefined:-a.sortUndefined}let c=a.sortingFn(e,t,n
5943
6056
  if(0!==c)return l&&(c*=-1),a.invertSorting&&(c*=-1),c}return e.index-t.index})),t.forEach((e=>{var t
5944
6057
  n.push(e),null!=(t=e.subRows)&&t.length&&(e.subRows=a(e.subRows))})),t}
5945
6058
  return{rows:a(i.rows),flatRows:n,rowsById:i.rowsById}}),{key:!1,debug:()=>{var t
5946
- return null!=(t=e.options.debugAll)?t:e.options.debugTable},onChange:()=>{e._autoResetPageIndex()}}),getGroupedRowModel:Db(),getExpandedRowModel:e=>ob((()=>[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
6059
+ return null!=(t=e.options.debugAll)?t:e.options.debugTable},onChange:()=>{e._autoResetPageIndex()}}),getGroupedRowModel:zb(),getExpandedRowModel:e=>nb((()=>[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
5947
6060
  t.push(e),null!=(o=e.subRows)&&o.length&&e.getIsExpanded()&&e.subRows.forEach(i)}
5948
6061
  return e.rows.forEach(i),{rows:t,flatRows:e.flatRows,rowsById:e.rowsById}}(t):t),{key:!1,debug:()=>{var t
5949
- return null!=(t=e.options.debugAll)?t:e.options.debugTable}}),getIsRowExpanded:this.getIsRowExpanded,columns:[],state:{rowSelection:{},grouping:[],expanded:!0},enableRowSelection:!1,enableSorting:!0,enableGrouping:!0,renderFallbackValue:null,autoResetAll:!1},this.table=Tb(this.options),this.virtualizer=new Ew(this,this.table)}get validity(){return this.tableValidator.getValidity()}async setData(e){await this.processPendingUpdates()
6062
+ 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=Lb(this.options),this.virtualizer=new Fw(this,this.table)}get validity(){return this.tableValidator.getValidity()}async setData(e){await this.processPendingUpdates()
5950
6063
  const t=e.map((e=>({...e}))),i={data:t}
5951
6064
  if(this.validateWithData(t),this.tableValidator.areRecordIdsValid()){const e=await this.getSelectedRecordIds()
5952
6065
  i.state={rowSelection:this.calculateTanStackSelectionState(e)}}this.updateTableOptions(i)}async getSelectedRecordIds(){await this.processPendingUpdates()
5953
6066
  const e=this.options.state.rowSelection
5954
6067
  if(!e)return[]
5955
6068
  const t=[]
5956
- return Object.entries(e).forEach((([e,i])=>{i&&t.push(e)})),t}async setSelectedRecordIds(e){await this.processPendingUpdates(),this.selectionMode!==Bb.none&&this.updateTableOptions({state:{rowSelection:this.calculateTanStackSelectionState(e)}})}connectedCallback(){super.connectedCallback(),this.initialize(),this.virtualizer.connectedCallback(),this.viewport.addEventListener("scroll",this.onViewPortScroll,{passive:!0})}disconnectedCallback(){super.disconnectedCallback(),this.virtualizer.disconnectedCallback(),this.viewport.removeEventListener("scroll",this.onViewPortScroll)}checkValidity(){return this.tableValidator.isValid()}handleChange(e,t){(e instanceof Yb||e instanceof Kb)&&"string"==typeof t&&this.updateTracker.trackColumnPropertyChanged(t)}async onRowClick(e){if(this.selectionMode===Bb.none)return
5957
- const t=this.table.getRowModel().rows[e]
5958
- if(!t)return
5959
- const i=await this.getSelectedRecordIds()
5960
- 1===i.length&&i[0]===t.id||(this.table.toggleAllRowsSelected(!1),t.toggleSelected(!0),await this.emitSelectionChangeEvent())}onRowActionMenuBeforeToggle(e){e.stopImmediatePropagation(),this.openActionMenuRecordId=e.detail.recordIds[0],this.$emit("action-menu-beforetoggle",e.detail)}onRowActionMenuToggle(e){e.stopImmediatePropagation(),this.$emit("action-menu-toggle",e.detail),e.detail.newState||(this.openActionMenuRecordId=void 0)}handleGroupRowExpanded(e,t){this.toggleGroupExpanded(e),t.stopPropagation()}update(){this.validate(),this.updateTracker.requiresTanStackUpdate&&this.updateTanStack(),this.updateTracker.updateActionMenuSlots&&this.updateActionMenuSlots(),this.updateTracker.updateColumnWidths&&this.updateRowGridColumns()}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())}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()
6069
+ return Object.entries(e).forEach((([e,i])=>{i&&t.push(e)})),t}async setSelectedRecordIds(e){await this.processPendingUpdates(),this.selectionMode!==Nb.none&&this.updateTableOptions({state:{rowSelection:this.calculateTanStackSelectionState(e)}})}connectedCallback(){super.connectedCallback(),this.initialize(),this.virtualizer.connectedCallback(),this.viewport.addEventListener("scroll",this.onViewPortScroll,{passive:!0})}disconnectedCallback(){super.disconnectedCallback(),this.virtualizer.disconnectedCallback(),this.viewport.removeEventListener("scroll",this.onViewPortScroll)}checkValidity(){return this.tableValidator.isValid()}handleChange(e,t){(e instanceof Jb||e instanceof Qb)&&"string"==typeof t&&this.updateTracker.trackColumnPropertyChanged(t)}async onRowSelectionToggle(e,t){if(t.stopImmediatePropagation(),this.selectionMode===Nb.none)return
6070
+ const i=this.tableData[e]
6071
+ i?.isGrouped&&i?.selectionState===qb?this.deselectAllLeafRows(e):this.table.getRowModel().rows[e]?.toggleSelected(t.detail.newState),await this.emitSelectionChangeEvent()}async onRowClick(e){return this.selectSingleRow(e)}async onAllRowsSelectionChange(e){e.stopPropagation(),this.ignoreSelectionChangeEvents||(this.table.toggleAllRowsSelected(this.selectionCheckbox.checked),await this.emitSelectionChangeEvent())}async onRowActionMenuBeforeToggle(e,t){t.stopImmediatePropagation()
6072
+ let i=t.detail.recordIds
6073
+ if(this.selectionMode!==Nb.none){const t=this.table.getRowModel().rows[e]
6074
+ t&&!t.getIsSelected()?await this.selectSingleRow(e):i=await this.getSelectedRecordIds()}this.openActionMenuRecordId=t.detail.recordIds[0]
6075
+ const o={...t.detail,recordIds:i}
6076
+ this.$emit("action-menu-beforetoggle",o)}async onRowActionMenuToggle(e){e.stopImmediatePropagation()
6077
+ const t=this.selectionMode===Nb.multiple?await this.getSelectedRecordIds():e.detail.recordIds,i={...e.detail,recordIds:t}
6078
+ this.$emit("action-menu-toggle",i),e.detail.newState||(this.openActionMenuRecordId=void 0)}handleGroupRowExpanded(e,t){this.toggleGroupExpanded(e),t.stopPropagation()}update(){this.validate(),this.updateTracker.requiresTanStackUpdate&&this.updateTanStack(),this.updateTracker.updateActionMenuSlots&&this.updateActionMenuSlots(),this.updateTracker.updateColumnWidths&&this.updateRowGridColumns()}get ariaMultiSelectable(){switch(this.selectionMode){case Nb.multiple:return"true"
6079
+ case Nb.single:return"false"
6080
+ 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())}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()
5961
6081
  for(const e of this.columns){const t=v.getNotifier(e)
5962
6082
  t.subscribe(this),this.columnNotifiers.push(t)
5963
- v.getNotifier(e.columnInternals).subscribe(this),this.columnNotifiers.push(t)}}getColumnsParticipatingInSorting(){return this.columns.filter((e=>e.sortDirection!==zb.none&&"number"==typeof e.sortIndex))}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()))
5964
- await Promise.all(e),this.columns=this.childItems.filter((e=>e instanceof Yb))}updateTanStack(){const e={state:{}}
5965
- 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.updateTracker.updateSelectionMode&&(e.enableRowSelection=this.selectionMode!==Bb.none,e.state.rowSelection={}),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
6083
+ v.getNotifier(e.columnInternals).subscribe(this),this.columnNotifiers.push(t)}}getColumnsParticipatingInSorting(){return this.columns.filter((e=>e.sortDirection!==Bb.none&&"number"==typeof e.sortIndex))}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()))
6084
+ await Promise.all(e),this.columns=this.childItems.filter((e=>e instanceof Jb))}updateTanStack(){const e={state:{}}
6085
+ 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.updateTracker.updateSelectionMode&&(e.enableMultiRowSelection=this.selectionMode===Nb.multiple,e.enableSubRowSelection=this.selectionMode===Nb.multiple,e.state.rowSelection={}),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
5966
6086
  for(const t of this.columns)t.actionMenuSlot&&e.add(t.actionMenuSlot)
5967
- this.actionMenuSlots=Array.from(e)}updateRowGridColumns(){this.rowGridColumns=Lw.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.sortIndex))),this.tableValidator.validateColumnGroupIndices(this.getColumnsParticipatingInGrouping().map((e=>e.columnInternals.groupIndex))),this.validateWithData(this.table.options.data)}validateWithData(e){this.tableValidator.validateRecordIds(e,this.idFieldName),this.canRenderRows=this.checkValidity()}async emitSelectionChangeEvent(){const e={selectedRecordIds:await this.getSelectedRecordIds()}
5968
- this.$emit("selection-change",e)}refreshRows(){const e=this.table.getRowModel().rows
5969
- this.tableData=e.map((e=>({record:e.original,id:e.id,selectionState:e.getIsSelected()?Zb:Nb,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()}getGroupRowColumn(e){const t=e.groupingColumnId
5970
- 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]
6087
+ this.actionMenuSlots=Array.from(e)}updateRowGridColumns(){this.rowGridColumns=zw.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.sortIndex))),this.tableValidator.validateColumnGroupIndices(this.getColumnsParticipatingInGrouping().map((e=>e.columnInternals.groupIndex))),this.validateWithData(this.table.options.data)}validateWithData(e){this.tableValidator.validateRecordIds(e,this.idFieldName),this.canRenderRows=this.checkValidity()}async emitSelectionChangeEvent(){const e={selectedRecordIds:await this.getSelectedRecordIds()}
6088
+ 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()
6089
+ const e=this.table.getRowModel().rows
6090
+ 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:Zb}getRowSelectionState(e){return e.getIsGrouped()?this.getGroupedRowSelectionState(e):e.getIsSelected()?qb:Zb}getGroupedRowSelectionState(e){const t=e.subRows??[]
6091
+ let i=!1,o=!1
6092
+ for(const e of t){if(e.getIsGrouped()){switch(this.getGroupedRowSelectionState(e)){case Zb:o=!0
6093
+ break
6094
+ case qb:i=!0
6095
+ break
6096
+ default:return jb}}else e.getIsSelected()?i=!0:o=!0
6097
+ if(i&&o)return jb}return i?qb:Zb}getGroupRowColumn(e){const t=e.groupingColumnId
6098
+ 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()}async selectSingleRow(e){if(this.selectionMode===Nb.none)return
6099
+ const t=this.table.getRowModel().rows[e]
6100
+ if(!t)return
6101
+ const i=await this.getSelectedRecordIds()
6102
+ 1===i.length&&i[0]===t.id||(this.table.toggleAllRowsSelected(!1),t.toggleSelected(!0),await this.emitSelectionChangeEvent())}deselectAllLeafRows(e){const t=this.table.getRowModel().rows[e].getLeafRows().filter((e=>0===e.getLeafRows().length)).map((e=>e.id)),i=this.table.getState().rowSelection
6103
+ for(const e of t)delete i[e]
6104
+ this.updateTableOptions({state:{rowSelection:i}})}toggleGroupExpanded(e){const t=this.table.getRowModel().rows[e]
5971
6105
  t.getIsExpanded()?this.collapsedRows.add(t.id):this.collapsedRows.delete(t.id),t.toggleExpanded()}calculateTanStackSortState(){const e=this.getColumnsParticipatingInSorting().sort(((e,t)=>e.sortIndex-t.sortIndex))
5972
- return this.firstSortedColumn=e.length?e[0]:void 0,e.map((e=>({id:e.columnInternals.uniqueId,desc:e.sortDirection===zb.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
5973
- if("string"==typeof i)return t[i]},sortingFn:Vw(e.columnInternals.sortOperation)})))}calculateTanStackSelectionState(e){if(this.selectionMode===Bb.none)return{}
6106
+ return this.firstSortedColumn=e.length?e[0]:void 0,e.map((e=>({id:e.columnInternals.uniqueId,desc:e.sortDirection===Bb.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
6107
+ if("string"==typeof i)return t[i]},sortingFn:Hw(e.columnInternals.sortOperation)})))}calculateTanStackSelectionState(e){if(this.selectionMode===Nb.none)return{}
5974
6108
  const t={},i=this.tableValidator.getPresentRecordIds(e)
5975
- if(i.length){t[i[0]]=!0}return t}}e([ne({attribute:"id-field-name"})],Dw.prototype,"idFieldName",void 0),e([ne({attribute:"selection-mode"})],Dw.prototype,"selectionMode",void 0),e([m],Dw.prototype,"tableData",void 0),e([m],Dw.prototype,"columns",void 0),e([m],Dw.prototype,"childItems",void 0),e([m],Dw.prototype,"rowElements",void 0),e([m],Dw.prototype,"actionMenuSlots",void 0),e([m],Dw.prototype,"openActionMenuRecordId",void 0),e([m],Dw.prototype,"canRenderRows",void 0),e([m],Dw.prototype,"scrollX",void 0),e([m],Dw.prototype,"rowGridColumns",void 0),e([m],Dw.prototype,"firstSortedColumn",void 0)
5976
- const zw=Dw.compose({baseName:"table",template:xw,styles:Jb})
5977
- no.getOrCreate().withPrefix("nimble").register(zw()),no.tagFor(Dw)
5978
- const Bw=me`
6109
+ for(const e of i)if(t[e]=!0,this.selectionMode===Nb.single)break
6110
+ return t}}e([ne({attribute:"id-field-name"})],Bw.prototype,"idFieldName",void 0),e([ne({attribute:"selection-mode"})],Bw.prototype,"selectionMode",void 0),e([m],Bw.prototype,"tableData",void 0),e([m],Bw.prototype,"columns",void 0),e([m],Bw.prototype,"childItems",void 0),e([m],Bw.prototype,"rowElements",void 0),e([m],Bw.prototype,"actionMenuSlots",void 0),e([m],Bw.prototype,"openActionMenuRecordId",void 0),e([m],Bw.prototype,"canRenderRows",void 0),e([m],Bw.prototype,"scrollX",void 0),e([m],Bw.prototype,"rowGridColumns",void 0),e([m],Bw.prototype,"selectionState",void 0),e([m],Bw.prototype,"selectionCheckbox",void 0),e([m],Bw.prototype,"firstSortedColumn",void 0)
6111
+ const Nw=Bw.compose({baseName:"table",template:$w,styles:tw})
6112
+ no.getOrCreate().withPrefix("nimble").register(Nw()),no.tagFor(Bw)
6113
+ const Zw=me`
5979
6114
  :host {
5980
6115
  display: contents;
5981
6116
  }
@@ -5985,14 +6120,14 @@ const Bw=me`
5985
6120
  overflow: hidden;
5986
6121
  text-overflow: ellipsis;
5987
6122
  }
5988
- `,Nw=G`
6123
+ `,qw=G`
5989
6124
  <template slot="${e=>e.columnInternals.uniqueId}">
5990
6125
  <span class="header-content">
5991
6126
  <slot></slot>
5992
6127
  </span>
5993
6128
  </template>
5994
6129
  `
5995
- const Zw=G`
6130
+ const jw=G`
5996
6131
  <span
5997
6132
  ${_e("textSpan")}
5998
6133
  class="${e=>"string"==typeof e.groupHeaderValue?"":"placeholder"}"
@@ -6002,7 +6137,7 @@ const Zw=G`
6002
6137
  >
6003
6138
  ${e=>e.content}
6004
6139
  </span>
6005
- `,qw=me`
6140
+ `,Uw=me`
6006
6141
  span {
6007
6142
  font: ${yl};
6008
6143
  color: ${$l};
@@ -6015,10 +6150,10 @@ const Zw=G`
6015
6150
  color: ${Ll};
6016
6151
  }
6017
6152
  `
6018
- class jw extends Ub{constructor(){super(...arguments),this.isValidContentAndHasOverflow=!1}get content(){return"string"==typeof this.groupHeaderValue?this.groupHeaderValue:this.columnConfig?.placeholder??""}updateTitleOverflow(){this.isValidContentAndHasOverflow=this.textSpan.offsetWidth<this.textSpan.scrollWidth}clearTitleOverflow(){this.isValidContentAndHasOverflow=!1}}e([m],jw.prototype,"isValidContentAndHasOverflow",void 0),e([f],jw.prototype,"content",null)
6019
- const Uw=jw.compose({baseName:"table-column-text-group-header",template:Zw,styles:qw})
6020
- no.getOrCreate().withPrefix("nimble").register(Uw())
6021
- const Gw=no.tagFor(jw),Ww=me`
6153
+ class Gw extends Wb{constructor(){super(...arguments),this.isValidContentAndHasOverflow=!1}get content(){return"string"==typeof this.groupHeaderValue?this.groupHeaderValue:this.columnConfig?.placeholder??""}updateTitleOverflow(){this.isValidContentAndHasOverflow=this.textSpan.offsetWidth<this.textSpan.scrollWidth}clearTitleOverflow(){this.isValidContentAndHasOverflow=!1}}e([m],Gw.prototype,"isValidContentAndHasOverflow",void 0),e([f],Gw.prototype,"content",null)
6154
+ const Ww=Gw.compose({baseName:"table-column-text-group-header",template:jw,styles:Uw})
6155
+ no.getOrCreate().withPrefix("nimble").register(Ww())
6156
+ const Xw=no.tagFor(Gw),Kw=me`
6022
6157
  span {
6023
6158
  font: ${yl};
6024
6159
  color: ${$l};
@@ -6030,7 +6165,7 @@ const Gw=no.tagFor(jw),Ww=me`
6030
6165
  .placeholder {
6031
6166
  color: ${Ll};
6032
6167
  }
6033
- `,Xw=G`
6168
+ `,Yw=G`
6034
6169
  <span
6035
6170
  ${_e("textSpan")}
6036
6171
  class="${e=>"string"==typeof e.cellRecord.value?"":"placeholder"}"
@@ -6041,14 +6176,14 @@ const Gw=no.tagFor(jw),Ww=me`
6041
6176
  ${e=>e.content}
6042
6177
  </span>
6043
6178
  `
6044
- class Kw extends Wb{constructor(){super(...arguments),this.isValidContentAndHasOverflow=!1}get content(){return"string"==typeof this.cellRecord.value?this.cellRecord.value:this.columnConfig.placeholder}}e([m],Kw.prototype,"isValidContentAndHasOverflow",void 0),e([f],Kw.prototype,"content",null)
6045
- const Yw=Kw.compose({baseName:"table-column-text-cell-view",template:Xw,styles:Ww})
6046
- no.getOrCreate().withPrefix("nimble").register(Yw())
6047
- const Qw=no.tagFor(Kw)
6048
- class Jw extends(function(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}(function(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=88}}return ne({attribute:"fractional-width",converter:ie})(t.prototype,"fractionalWidth"),ne({attribute:"min-pixel-width",converter:ie})(t.prototype,"minPixelWidth"),t}(Yb))){constructor(){super({cellRecordFieldNames:["value"],cellViewTag:Qw,groupHeaderViewTag:Gw}),this.columnInternals.sortOperation=jb}fieldNameChanged(){this.columnInternals.dataRecordFieldNames=[this.fieldName],this.columnInternals.operandDataRecordFieldName=this.fieldName}placeholderChanged(){this.columnInternals.columnConfig={placeholder:this.placeholder??""}}}e([ne({attribute:"field-name"})],Jw.prototype,"fieldName",void 0),e([ne],Jw.prototype,"placeholder",void 0)
6049
- const ex=Jw.compose({baseName:"table-column-text",template:Nw,styles:Bw})
6050
- no.getOrCreate().withPrefix("nimble").register(ex()),no.tagFor(Jw)
6051
- const tx=me`
6179
+ class Qw extends Kb{constructor(){super(...arguments),this.isValidContentAndHasOverflow=!1}get content(){return"string"==typeof this.cellRecord.value?this.cellRecord.value:this.columnConfig.placeholder}}e([m],Qw.prototype,"isValidContentAndHasOverflow",void 0),e([f],Qw.prototype,"content",null)
6180
+ const Jw=Qw.compose({baseName:"table-column-text-cell-view",template:Yw,styles:Kw})
6181
+ no.getOrCreate().withPrefix("nimble").register(Jw())
6182
+ const ex=no.tagFor(Qw)
6183
+ class tx extends(function(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}(function(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=88}}return ne({attribute:"fractional-width",converter:ie})(t.prototype,"fractionalWidth"),ne({attribute:"min-pixel-width",converter:ie})(t.prototype,"minPixelWidth"),t}(Jb))){constructor(){super({cellRecordFieldNames:["value"],cellViewTag:ex,groupHeaderViewTag:Xw}),this.columnInternals.sortOperation=Gb}fieldNameChanged(){this.columnInternals.dataRecordFieldNames=[this.fieldName],this.columnInternals.operandDataRecordFieldName=this.fieldName}placeholderChanged(){this.columnInternals.columnConfig={placeholder:this.placeholder??""}}}e([ne({attribute:"field-name"})],tx.prototype,"fieldName",void 0),e([ne],tx.prototype,"placeholder",void 0)
6184
+ const ix=tx.compose({baseName:"table-column-text",template:qw,styles:Zw})
6185
+ no.getOrCreate().withPrefix("nimble").register(ix()),no.tagFor(tx)
6186
+ const ox=me`
6052
6187
  ${bn("grid")}
6053
6188
 
6054
6189
  :host {
@@ -6072,7 +6207,7 @@ const tx=me`
6072
6207
  overflow: auto;
6073
6208
  }
6074
6209
  `
6075
- class ix extends jo{constructor(){super(),this.activeindicator=!1}}const ox=ix.compose({baseName:"tabs",baseClass:jo,template:(e,t)=>G`
6210
+ class nx extends jo{constructor(){super(),this.activeindicator=!1}}const sx=nx.compose({baseName:"tabs",baseClass:jo,template:(e,t)=>G`
6076
6211
  <template class="${e=>e.orientation}">
6077
6212
  ${Ne(0,t)}
6078
6213
  <div class="tablist" part="tablist" role="tablist">
@@ -6091,9 +6226,9 @@ class ix extends jo{constructor(){super(),this.activeindicator=!1}}const ox=ix.c
6091
6226
  <slot name="tabpanel" part="tabpanel" ${Te("tabpanels")}></slot>
6092
6227
  </div>
6093
6228
  </template>
6094
- `,styles:tx})
6095
- no.getOrCreate().withPrefix("nimble").register(ox()),no.tagFor(ix)
6096
- const nx=me`
6229
+ `,styles:ox})
6230
+ no.getOrCreate().withPrefix("nimble").register(sx()),no.tagFor(nx)
6231
+ const rx=me`
6097
6232
  ${bn("flex")}
6098
6233
 
6099
6234
  :host {
@@ -6111,17 +6246,17 @@ const nx=me`
6111
6246
  rgba(${Ur}, 0.3);
6112
6247
  margin: calc(${na} / 4) calc(${na} / 2);
6113
6248
  }
6114
- `,sx=G`
6249
+ `,ax=G`
6115
6250
  <template slot="end">
6116
6251
  <div class="separator"></div>
6117
6252
  <slot></slot>
6118
6253
  </template>
6119
6254
  `
6120
- class rx extends _t{}const ax=rx.compose({baseName:"tabs-toolbar",template:sx,styles:nx})
6121
- no.getOrCreate().withPrefix("nimble").register(ax()),no.tagFor(rx)
6122
- const lx="outline",cx="block",dx=me`
6255
+ class lx extends _t{}const cx=lx.compose({baseName:"tabs-toolbar",template:ax,styles:rx})
6256
+ no.getOrCreate().withPrefix("nimble").register(cx()),no.tagFor(lx)
6257
+ const dx="outline",hx="block",ux=me`
6123
6258
  ${bn("inline-flex")}
6124
- ${Jp}
6259
+ ${eg}
6125
6260
 
6126
6261
  :host {
6127
6262
  font: ${yl};
@@ -6259,12 +6394,12 @@ const lx="outline",cx="block",dx=me`
6259
6394
  top: calc(${na} / 2);
6260
6395
  right: var(--ni-private-scrollbar-width);
6261
6396
  }
6262
- `.withBehaviors(Bc(lx,me`
6397
+ `.withBehaviors(Bc(dx,me`
6263
6398
  .control {
6264
6399
  border-color: rgba(${Ur}, 0.3);
6265
6400
  background-color: transparent;
6266
6401
  }
6267
- `),Bc(cx,me`
6402
+ `),Bc(hx,me`
6268
6403
  .control {
6269
6404
  background-color: rgba(${Ur}, 0.1);
6270
6405
  }
@@ -6282,8 +6417,8 @@ const lx="outline",cx="block",dx=me`
6282
6417
  border-bottom-color: ${Gr};
6283
6418
  }
6284
6419
  `))
6285
- class hx extends Xo{constructor(){super(...arguments),this.appearance=lx,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],hx.prototype,"appearance",void 0),e([ne({attribute:"error-text"})],hx.prototype,"errorText",void 0),e([ne({attribute:"error-visible",mode:"boolean"})],hx.prototype,"errorVisible",void 0),e([m],hx.prototype,"scrollbarWidth",void 0)
6286
- const ux=hx.compose({baseName:"text-area",baseClass:Xo,template:()=>G`
6420
+ class px extends Xo{constructor(){super(...arguments),this.appearance=dx,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],px.prototype,"appearance",void 0),e([ne({attribute:"error-text"})],px.prototype,"errorText",void 0),e([ne({attribute:"error-visible",mode:"boolean"})],px.prototype,"errorVisible",void 0),e([m],px.prototype,"scrollbarWidth",void 0)
6421
+ const gx=px.compose({baseName:"text-area",baseClass:Xo,template:()=>G`
6287
6422
  <label
6288
6423
  part="label"
6289
6424
  for="control"
@@ -6338,13 +6473,13 @@ const ux=hx.compose({baseName:"text-area",baseClass:Xo,template:()=>G`
6338
6473
  class="error-icon ${e=>e.scrollbarWidth>=0?"scrollbar-width-calculated":""}"
6339
6474
  style="--ni-private-scrollbar-width: ${e=>e.scrollbarWidth}px;"
6340
6475
  ></${wp}>
6341
- ${Up}
6476
+ ${Gp}
6342
6477
  </div>
6343
- `,styles:dx,shadowOptions:{delegatesFocus:!0}})
6344
- no.getOrCreate().withPrefix("nimble").register(ux()),no.tagFor(hx)
6345
- const px="underline",gx="outline",vx="block",mx="frameless",fx=me`
6478
+ `,styles:ux,shadowOptions:{delegatesFocus:!0}})
6479
+ no.getOrCreate().withPrefix("nimble").register(gx()),no.tagFor(px)
6480
+ const vx="underline",mx="outline",fx="block",bx="frameless",wx=me`
6346
6481
  ${bn("inline-block")}
6347
- ${Jp}
6482
+ ${eg}
6348
6483
 
6349
6484
  :host {
6350
6485
  font: ${yl};
@@ -6514,12 +6649,12 @@ const px="underline",gx="outline",vx="block",mx="frameless",fx=me`
6514
6649
  slot[name='actions']::slotted(*) {
6515
6650
  ${ta.cssCustomProperty}: 24px;
6516
6651
  }
6517
- `.withBehaviors(Bc(px,me`
6652
+ `.withBehaviors(Bc(vx,me`
6518
6653
  .root {
6519
6654
  border-bottom-width: ${sa};
6520
6655
  padding-bottom: 0;
6521
6656
  }
6522
- `),Bc(vx,me`
6657
+ `),Bc(fx,me`
6523
6658
  .root {
6524
6659
  background-color: rgba(${Ur}, 0.1);
6525
6660
  }
@@ -6547,12 +6682,12 @@ const px="underline",gx="outline",vx="block",mx="frameless",fx=me`
6547
6682
  :host([disabled]) .root {
6548
6683
  background-color: rgba(${Ur}, 0.07);
6549
6684
  }
6550
- `),Bc(gx,me`
6685
+ `),Bc(mx,me`
6551
6686
  .root {
6552
6687
  border-width: ${sa};
6553
6688
  padding: 0;
6554
6689
  }
6555
- `),Bc(mx,me`
6690
+ `),Bc(bx,me`
6556
6691
  .control {
6557
6692
  padding-left: ${sa};
6558
6693
  padding-right: ${sa};
@@ -6570,8 +6705,8 @@ const px="underline",gx="outline",vx="block",mx="frameless",fx=me`
6570
6705
  filter: invert(100%);
6571
6706
  }
6572
6707
  `))
6573
- class bx extends So{constructor(){super(...arguments),this.appearance=px,this.errorVisible=!1,this.fullBleed=!1}}e([ne],bx.prototype,"appearance",void 0),e([ne({attribute:"error-text"})],bx.prototype,"errorText",void 0),e([ne({attribute:"error-visible",mode:"boolean"})],bx.prototype,"errorVisible",void 0),e([ne({attribute:"full-bleed",mode:"boolean"})],bx.prototype,"fullBleed",void 0)
6574
- const wx=bx.compose({baseName:"text-field",baseClass:So,template:(e,t)=>G`
6708
+ class xx extends So{constructor(){super(...arguments),this.appearance=vx,this.errorVisible=!1,this.fullBleed=!1}}e([ne],xx.prototype,"appearance",void 0),e([ne({attribute:"error-text"})],xx.prototype,"errorText",void 0),e([ne({attribute:"error-visible",mode:"boolean"})],xx.prototype,"errorVisible",void 0),e([ne({attribute:"full-bleed",mode:"boolean"})],xx.prototype,"fullBleed",void 0)
6709
+ const yx=xx.compose({baseName:"text-field",baseClass:So,template:(e,t)=>G`
6575
6710
  <template
6576
6711
  class="
6577
6712
  ${e=>e.readOnly?"readonly":""}
@@ -6631,7 +6766,7 @@ const wx=bx.compose({baseName:"text-field",baseClass:So,template:(e,t)=>G`
6631
6766
  ${Be(0,t)}
6632
6767
  </div>
6633
6768
  </template>
6634
- `,styles:fx,shadowOptions:{delegatesFocus:!0},end:G`
6769
+ `,styles:wx,shadowOptions:{delegatesFocus:!0},end:G`
6635
6770
  <${wp}
6636
6771
  severity="error"
6637
6772
  class="error-icon"
@@ -6639,10 +6774,10 @@ const wx=bx.compose({baseName:"text-field",baseClass:So,template:(e,t)=>G`
6639
6774
  <span part="actions">
6640
6775
  <slot name="actions"></slot>
6641
6776
  </span>
6642
- ${Up}
6777
+ ${Gp}
6643
6778
  `})
6644
- no.getOrCreate().withPrefix("nimble").register(wx()),no.tagFor(bx)
6645
- const xx=me`
6779
+ no.getOrCreate().withPrefix("nimble").register(yx()),no.tagFor(xx)
6780
+ const $x=me`
6646
6781
  .positioning-region {
6647
6782
  display: flex;
6648
6783
  padding: ${oa} ${na};
@@ -6667,7 +6802,7 @@ const xx=me`
6667
6802
  margin-left: auto;
6668
6803
  }
6669
6804
  `
6670
- class yx extends Yo{}const $x=yx.compose({baseName:"toolbar",baseClass:Yo,template:(e,t)=>G`
6805
+ class Cx extends Yo{}const kx=Cx.compose({baseName:"toolbar",baseClass:Yo,template:(e,t)=>G`
6671
6806
  <template
6672
6807
  aria-label="${e=>e.ariaLabel}"
6673
6808
  aria-labelledby="${e=>e.ariaLabelledby}"
@@ -6688,9 +6823,9 @@ class yx extends Yo{}const $x=yx.compose({baseName:"toolbar",baseClass:Yo,templa
6688
6823
  ${Be(0,t)}
6689
6824
  </div>
6690
6825
  </template>
6691
- `,styles:xx,shadowOptions:{delegatesFocus:!0}})
6692
- no.getOrCreate().withPrefix("nimble").register($x()),no.tagFor(yx)
6693
- const Cx=me`
6826
+ `,styles:$x,shadowOptions:{delegatesFocus:!0}})
6827
+ no.getOrCreate().withPrefix("nimble").register(kx()),no.tagFor(Cx)
6828
+ const Sx=me`
6694
6829
  ${bn("inline-flex")}
6695
6830
 
6696
6831
  :host {
@@ -6775,7 +6910,7 @@ const Cx=me`
6775
6910
  .status-icon {
6776
6911
  opacity: 0.6;
6777
6912
  }
6778
- `)),kx=G`
6913
+ `)),_x=G`
6779
6914
  ${Ie((e=>e.tooltipVisible),G`
6780
6915
  <${dd}
6781
6916
  class="anchored-region"
@@ -6808,11 +6943,11 @@ const Cx=me`
6808
6943
  </${dd}>
6809
6944
  `)}
6810
6945
  `
6811
- class Sx extends gn{constructor(){super(...arguments),this.iconVisible=!1}}e([ne],Sx.prototype,"severity",void 0),e([ne({attribute:"icon-visible",mode:"boolean"})],Sx.prototype,"iconVisible",void 0)
6812
- const _x=Sx.compose({baseName:"tooltip",baseClass:gn,template:kx,styles:Cx})
6813
- no.getOrCreate().withPrefix("nimble").register(_x()),no.tagFor(Sx)
6814
- const Ix="group-selected",Rx="all",Mx="leaves-only",Ax="none"
6815
- class Ox{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 Ex=me`
6946
+ class Ix extends gn{constructor(){super(...arguments),this.iconVisible=!1}}e([ne],Ix.prototype,"severity",void 0),e([ne({attribute:"icon-visible",mode:"boolean"})],Ix.prototype,"iconVisible",void 0)
6947
+ const Rx=Ix.compose({baseName:"tooltip",baseClass:gn,template:_x,styles:Sx})
6948
+ no.getOrCreate().withPrefix("nimble").register(Rx()),no.tagFor(Ix)
6949
+ const Mx="group-selected",Ax="all",Ox="leaves-only",Ex="none"
6950
+ class Vx{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 Fx=me`
6816
6951
  ${bn("block")}
6817
6952
 
6818
6953
  :host {
@@ -6828,7 +6963,7 @@ class Ox{constructor(e,t,i){this.ltr=e,this.rtl=t,this.source=i,this.attached=nu
6828
6963
  }
6829
6964
 
6830
6965
  ${""}
6831
- :host([${Ix}])::after {
6966
+ :host([${Mx}])::after {
6832
6967
  background: ${Yr};
6833
6968
  border-radius: 0px;
6834
6969
  content: '';
@@ -6850,7 +6985,7 @@ class Ox{constructor(e,t,i){this.ltr=e,this.rtl=t,this.source=i,this.attached=nu
6850
6985
  background: ${qr};
6851
6986
  }
6852
6987
 
6853
- :host([${Ix}]) .positioning-region:hover {
6988
+ :host([${Mx}]) .positioning-region:hover {
6854
6989
  background: ${Zr};
6855
6990
  }
6856
6991
 
@@ -6961,7 +7096,7 @@ class Ox{constructor(e,t,i){this.ltr=e,this.rtl=t,this.source=i,this.attached=nu
6961
7096
  display: block;
6962
7097
  }
6963
7098
  `.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)
6964
- t&&Hr.unsubscribe(t)}attach(e){const t=this.cache.get(e)||new Ox(this.ltr,this.rtl,e),i=Hr.getValueFor(e)
7099
+ t&&Hr.unsubscribe(t)}attach(e){const t=this.cache.get(e)||new Vx(this.ltr,this.rtl,e),i=Hr.getValueFor(e)
6965
7100
  Hr.subscribe(t),t.attach(i),this.cache.set(e,t)}}(me`
6966
7101
  .expand-collapse-button {
6967
7102
  left: var(
@@ -6993,11 +7128,11 @@ Hr.subscribe(t),t.attach(i),this.cache.set(e,t)}}(me`
6993
7128
  transform: rotate(135deg);
6994
7129
  }
6995
7130
  `))
6996
- class Vx extends mn{constructor(){super(...arguments),this.treeView=null,this.handleSelectedChange=e=>{e.target===this&&this.selected&&this.setGroupSelectionOnRootParentTreeItem(this)}}connectedCallback(){super.connectedCallback(),this.addEventListener("selected-change",this.handleSelectedChange),this.treeView=this.getParentTreeView(),this.treeView&&this.selected&&this.setGroupSelectionOnRootParentTreeItem(this)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("selected-change",this.handleSelectedChange),this.treeView=null}clearTreeGroupSelection(){const e=this.treeView?.querySelectorAll(`[${Ix}]`)
6997
- e?.forEach((e=>e.removeAttribute(Ix)))}setGroupSelectionOnRootParentTreeItem(e){this.clearTreeGroupSelection()
7131
+ class Hx extends mn{constructor(){super(...arguments),this.treeView=null,this.handleSelectedChange=e=>{e.target===this&&this.selected&&this.setGroupSelectionOnRootParentTreeItem(this)}}connectedCallback(){super.connectedCallback(),this.addEventListener("selected-change",this.handleSelectedChange),this.treeView=this.getParentTreeView(),this.treeView&&this.selected&&this.setGroupSelectionOnRootParentTreeItem(this)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("selected-change",this.handleSelectedChange),this.treeView=null}clearTreeGroupSelection(){const e=this.treeView?.querySelectorAll(`[${Mx}]`)
7132
+ e?.forEach((e=>e.removeAttribute(Mx)))}setGroupSelectionOnRootParentTreeItem(e){this.clearTreeGroupSelection()
6998
7133
  let t=e
6999
7134
  for(;t?.parentElement!==this.treeView;)t=t?.parentElement
7000
- t&&t.setAttribute(Ix,"true")}getParentTreeView(){return this.parentElement.closest("[role='tree']")}}const Fx=Vx.compose({baseName:"tree-item",baseClass:mn,template:(e,t)=>G`
7135
+ t&&t.setAttribute(Mx,"true")}getParentTreeView(){return this.parentElement.closest("[role='tree']")}}const Px=Hx.compose({baseName:"tree-item",baseClass:mn,template:(e,t)=>G`
7001
7136
  <template
7002
7137
  role="treeitem"
7003
7138
  slot="${e=>e.isNestedItem()?"item":void 0}"
@@ -7037,9 +7172,9 @@ t&&t.setAttribute(Ix,"true")}getParentTreeView(){return this.parentElement.close
7037
7172
  </div>
7038
7173
  `)}
7039
7174
  </template>
7040
- `,styles:Ex,expandCollapseGlyph:Sd.data})
7041
- no.getOrCreate().withPrefix("nimble").register(Fx()),no.tagFor(Vx)
7042
- const Hx=me`
7175
+ `,styles:Fx,expandCollapseGlyph:Sd.data})
7176
+ no.getOrCreate().withPrefix("nimble").register(Px()),no.tagFor(Hx)
7177
+ const Tx=me`
7043
7178
  ${bn("flex")}
7044
7179
 
7045
7180
  :host {
@@ -7052,14 +7187,14 @@ const Hx=me`
7052
7187
  outline: none;
7053
7188
  }
7054
7189
  `
7055
- class Px extends fn{constructor(){super(...arguments),this.selectionMode=Rx}handleClick(e){if(e.defaultPrevented)return!1
7190
+ class Lx extends fn{constructor(){super(...arguments),this.selectionMode=Ax}handleClick(e){if(e.defaultPrevented)return!1
7056
7191
  if(!(e.target instanceof Element&&vn(e.target)))return!0
7057
7192
  const t=e.target
7058
- return!t.disabled&&(this.canSelect(t)?t.selected=!0:this.itemHasChildren(t)&&(t.expanded=!t.expanded),!0)}canSelect(e){switch(this.selectionMode){case Rx:return!0
7059
- case Ax:return!1
7060
- case Mx:return!this.itemHasChildren(e)
7061
- default:return!0}}itemHasChildren(e){return null!==e.querySelector('[role="treeitem"]')}}e([ne({attribute:"selection-mode"})],Px.prototype,"selectionMode",void 0)
7062
- const Tx=Px.compose({baseName:"tree-view",baseClass:fn,template:(e,t)=>G`
7193
+ return!t.disabled&&(this.canSelect(t)?t.selected=!0:this.itemHasChildren(t)&&(t.expanded=!t.expanded),!0)}canSelect(e){switch(this.selectionMode){case Ax:return!0
7194
+ case Ex:return!1
7195
+ case Ox:return!this.itemHasChildren(e)
7196
+ default:return!0}}itemHasChildren(e){return null!==e.querySelector('[role="treeitem"]')}}e([ne({attribute:"selection-mode"})],Lx.prototype,"selectionMode",void 0)
7197
+ const Dx=Lx.compose({baseName:"tree-view",baseClass:fn,template:(e,t)=>G`
7063
7198
  <template
7064
7199
  role="tree"
7065
7200
  ${_e("treeView")}
@@ -7071,264 +7206,264 @@ const Tx=Px.compose({baseName:"tree-view",baseClass:fn,template:(e,t)=>G`
7071
7206
  >
7072
7207
  <slot ${Te("slottedTreeItems")}></slot>
7073
7208
  </template>
7074
- `,styles:Hx})
7075
- no.getOrCreate().withPrefix("nimble").register(Tx()),no.tagFor(Px)
7076
- var Lx={value:()=>{}}
7077
- function Dx(){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)
7078
- o[e]=[]}return new zx(o)}function zx(e){this._=e}function Bx(e,t){return e.trim().split(/^|\s+/).map((function(e){var i="",o=e.indexOf(".")
7209
+ `,styles:Tx})
7210
+ no.getOrCreate().withPrefix("nimble").register(Dx()),no.tagFor(Lx)
7211
+ var zx={value:()=>{}}
7212
+ function Bx(){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)
7213
+ o[e]=[]}return new Nx(o)}function Nx(e){this._=e}function Zx(e,t){return e.trim().split(/^|\s+/).map((function(e){var i="",o=e.indexOf(".")
7079
7214
  if(o>=0&&(i=e.slice(o+1),e=e.slice(0,o)),e&&!t.hasOwnProperty(e))throw new Error("unknown type: "+e)
7080
- return{type:e,name:i}}))}function Nx(e,t){for(var i,o=0,n=e.length;o<n;++o)if((i=e[o]).name===t)return i.value}function Zx(e,t,i){for(var o=0,n=e.length;o<n;++o)if(e[o].name===t){e[o]=Lx,e=e.slice(0,o).concat(e.slice(o+1))
7081
- break}return null!=i&&e.push({name:t,value:i}),e}zx.prototype=Dx.prototype={constructor:zx,on:function(e,t){var i,o=this._,n=Bx(e+"",o),s=-1,r=n.length
7215
+ return{type:e,name:i}}))}function qx(e,t){for(var i,o=0,n=e.length;o<n;++o)if((i=e[o]).name===t)return i.value}function jx(e,t,i){for(var o=0,n=e.length;o<n;++o)if(e[o].name===t){e[o]=zx,e=e.slice(0,o).concat(e.slice(o+1))
7216
+ break}return null!=i&&e.push({name:t,value:i}),e}Nx.prototype=Bx.prototype={constructor:Nx,on:function(e,t){var i,o=this._,n=Zx(e+"",o),s=-1,r=n.length
7082
7217
  if(!(arguments.length<2)){if(null!=t&&"function"!=typeof t)throw new Error("invalid callback: "+t)
7083
- for(;++s<r;)if(i=(e=n[s]).type)o[i]=Zx(o[i],e.name,t)
7084
- else if(null==t)for(i in o)o[i]=Zx(o[i],e.name,null)
7085
- return this}for(;++s<r;)if((i=(e=n[s]).type)&&(i=Nx(o[i],e.name)))return i},copy:function(){var e={},t=this._
7218
+ for(;++s<r;)if(i=(e=n[s]).type)o[i]=jx(o[i],e.name,t)
7219
+ else if(null==t)for(i in o)o[i]=jx(o[i],e.name,null)
7220
+ return this}for(;++s<r;)if((i=(e=n[s]).type)&&(i=qx(o[i],e.name)))return i},copy:function(){var e={},t=this._
7086
7221
  for(var i in t)e[i]=t[i].slice()
7087
- return new zx(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]
7222
+ return new Nx(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]
7088
7223
  if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e)
7089
7224
  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)
7090
7225
  for(var o=this._[e],n=0,s=o.length;n<s;++n)o[n].value.apply(t,i)}}
7091
- var qx="http://www.w3.org/1999/xhtml",jx={svg:"http://www.w3.org/2000/svg",xhtml:qx,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"}
7092
- function Ux(e){var t=e+="",i=t.indexOf(":")
7093
- return i>=0&&"xmlns"!==(t=e.slice(0,i))&&(e=e.slice(i+1)),jx.hasOwnProperty(t)?{space:jx[t],local:e}:e}function Gx(e){return function(){var t=this.ownerDocument,i=this.namespaceURI
7094
- return i===qx&&t.documentElement.namespaceURI===qx?t.createElement(e):t.createElementNS(i,e)}}function Wx(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Xx(e){var t=Ux(e)
7095
- return(t.local?Wx:Gx)(t)}function Kx(){}function Yx(e){return null==e?Kx:function(){return this.querySelector(e)}}function Qx(e){return null==e?[]:Array.isArray(e)?e:Array.from(e)}function Jx(){return[]}function ey(e){return null==e?Jx:function(){return this.querySelectorAll(e)}}function ty(e){return function(){return this.matches(e)}}function iy(e){return function(t){return t.matches(e)}}var oy=Array.prototype.find
7096
- function ny(){return this.firstElementChild}var sy=Array.prototype.filter
7097
- function ry(){return Array.from(this.children)}function ay(e){return new Array(e.length)}function ly(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}function cy(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 ly(e,s[a])
7098
- for(;a<l;++a)(r=t[a])&&(n[a]=r)}function hy(e,t,i,o,n,s,r){var a,l,c,d=new Map,h=t.length,u=s.length,p=new Array(h)
7226
+ var Ux="http://www.w3.org/1999/xhtml",Gx={svg:"http://www.w3.org/2000/svg",xhtml:Ux,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"}
7227
+ function Wx(e){var t=e+="",i=t.indexOf(":")
7228
+ return i>=0&&"xmlns"!==(t=e.slice(0,i))&&(e=e.slice(i+1)),Gx.hasOwnProperty(t)?{space:Gx[t],local:e}:e}function Xx(e){return function(){var t=this.ownerDocument,i=this.namespaceURI
7229
+ return i===Ux&&t.documentElement.namespaceURI===Ux?t.createElement(e):t.createElementNS(i,e)}}function Kx(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Yx(e){var t=Wx(e)
7230
+ return(t.local?Kx:Xx)(t)}function Qx(){}function Jx(e){return null==e?Qx:function(){return this.querySelector(e)}}function ey(e){return null==e?[]:Array.isArray(e)?e:Array.from(e)}function ty(){return[]}function iy(e){return null==e?ty:function(){return this.querySelectorAll(e)}}function oy(e){return function(){return this.matches(e)}}function ny(e){return function(t){return t.matches(e)}}var sy=Array.prototype.find
7231
+ function ry(){return this.firstElementChild}var ay=Array.prototype.filter
7232
+ function ly(){return Array.from(this.children)}function cy(e){return new Array(e.length)}function dy(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}function hy(e){return function(){return e}}function uy(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 dy(e,s[a])
7233
+ for(;a<l;++a)(r=t[a])&&(n[a]=r)}function py(e,t,i,o,n,s,r){var a,l,c,d=new Map,h=t.length,u=s.length,p=new Array(h)
7099
7234
  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))
7100
- 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 ly(e,s[a])
7101
- for(a=0;a<h;++a)(l=t[a])&&d.get(p[a])===l&&(n[a]=l)}function uy(e){return e.__data__}function py(e){return"object"==typeof e&&"length"in e?e:Array.from(e)}function gy(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function vy(e){return function(){this.removeAttribute(e)}}function my(e){return function(){this.removeAttributeNS(e.space,e.local)}}function fy(e,t){return function(){this.setAttribute(e,t)}}function by(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function wy(e,t){return function(){var i=t.apply(this,arguments)
7102
- null==i?this.removeAttribute(e):this.setAttribute(e,i)}}function xy(e,t){return function(){var i=t.apply(this,arguments)
7103
- null==i?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,i)}}function yy(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function $y(e){return function(){this.style.removeProperty(e)}}function Cy(e,t,i){return function(){this.style.setProperty(e,t,i)}}function ky(e,t,i){return function(){var o=t.apply(this,arguments)
7104
- null==o?this.style.removeProperty(e):this.style.setProperty(e,o,i)}}function Sy(e,t){return e.style.getPropertyValue(t)||yy(e).getComputedStyle(e,null).getPropertyValue(t)}function _y(e){return function(){delete this[e]}}function Iy(e,t){return function(){this[e]=t}}function Ry(e,t){return function(){var i=t.apply(this,arguments)
7105
- null==i?delete this[e]:this[e]=i}}function My(e){return e.trim().split(/^|\s+/)}function Ay(e){return e.classList||new Oy(e)}function Oy(e){this._node=e,this._names=My(e.getAttribute("class")||"")}function Ey(e,t){for(var i=Ay(e),o=-1,n=t.length;++o<n;)i.add(t[o])}function Vy(e,t){for(var i=Ay(e),o=-1,n=t.length;++o<n;)i.remove(t[o])}function Fy(e){return function(){Ey(this,e)}}function Hy(e){return function(){Vy(this,e)}}function Py(e,t){return function(){(t.apply(this,arguments)?Ey:Vy)(this,e)}}function Ty(){this.textContent=""}function Ly(e){return function(){this.textContent=e}}function Dy(e){return function(){var t=e.apply(this,arguments)
7106
- this.textContent=null==t?"":t}}function zy(){this.innerHTML=""}function By(e){return function(){this.innerHTML=e}}function Ny(e){return function(){var t=e.apply(this,arguments)
7107
- this.innerHTML=null==t?"":t}}function Zy(){this.nextSibling&&this.parentNode.appendChild(this)}function qy(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function jy(){return null}function Uy(){var e=this.parentNode
7108
- e&&e.removeChild(this)}function Gy(){var e=this.cloneNode(!1),t=this.parentNode
7109
- return t?t.insertBefore(e,this.nextSibling):e}function Wy(){var e=this.cloneNode(!0),t=this.parentNode
7110
- return t?t.insertBefore(e,this.nextSibling):e}function Xy(e){return e.trim().split(/^|\s+/).map((function(e){var t="",i=e.indexOf(".")
7111
- return i>=0&&(t=e.slice(i+1),e=e.slice(0,i)),{type:e,name:t}}))}function Ky(e){return function(){var t=this.__on
7112
- 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 Yy(e,t,i){return function(){var o,n=this.__on,s=function(e){return function(t){e.call(this,t,this.__data__)}}(t)
7235
+ 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 dy(e,s[a])
7236
+ for(a=0;a<h;++a)(l=t[a])&&d.get(p[a])===l&&(n[a]=l)}function gy(e){return e.__data__}function vy(e){return"object"==typeof e&&"length"in e?e:Array.from(e)}function my(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function fy(e){return function(){this.removeAttribute(e)}}function by(e){return function(){this.removeAttributeNS(e.space,e.local)}}function wy(e,t){return function(){this.setAttribute(e,t)}}function xy(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function yy(e,t){return function(){var i=t.apply(this,arguments)
7237
+ null==i?this.removeAttribute(e):this.setAttribute(e,i)}}function $y(e,t){return function(){var i=t.apply(this,arguments)
7238
+ null==i?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,i)}}function Cy(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function ky(e){return function(){this.style.removeProperty(e)}}function Sy(e,t,i){return function(){this.style.setProperty(e,t,i)}}function _y(e,t,i){return function(){var o=t.apply(this,arguments)
7239
+ null==o?this.style.removeProperty(e):this.style.setProperty(e,o,i)}}function Iy(e,t){return e.style.getPropertyValue(t)||Cy(e).getComputedStyle(e,null).getPropertyValue(t)}function Ry(e){return function(){delete this[e]}}function My(e,t){return function(){this[e]=t}}function Ay(e,t){return function(){var i=t.apply(this,arguments)
7240
+ null==i?delete this[e]:this[e]=i}}function Oy(e){return e.trim().split(/^|\s+/)}function Ey(e){return e.classList||new Vy(e)}function Vy(e){this._node=e,this._names=Oy(e.getAttribute("class")||"")}function Fy(e,t){for(var i=Ey(e),o=-1,n=t.length;++o<n;)i.add(t[o])}function Hy(e,t){for(var i=Ey(e),o=-1,n=t.length;++o<n;)i.remove(t[o])}function Py(e){return function(){Fy(this,e)}}function Ty(e){return function(){Hy(this,e)}}function Ly(e,t){return function(){(t.apply(this,arguments)?Fy:Hy)(this,e)}}function Dy(){this.textContent=""}function zy(e){return function(){this.textContent=e}}function By(e){return function(){var t=e.apply(this,arguments)
7241
+ this.textContent=null==t?"":t}}function Ny(){this.innerHTML=""}function Zy(e){return function(){this.innerHTML=e}}function qy(e){return function(){var t=e.apply(this,arguments)
7242
+ this.innerHTML=null==t?"":t}}function jy(){this.nextSibling&&this.parentNode.appendChild(this)}function Uy(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Gy(){return null}function Wy(){var e=this.parentNode
7243
+ e&&e.removeChild(this)}function Xy(){var e=this.cloneNode(!1),t=this.parentNode
7244
+ return t?t.insertBefore(e,this.nextSibling):e}function Ky(){var e=this.cloneNode(!0),t=this.parentNode
7245
+ return t?t.insertBefore(e,this.nextSibling):e}function Yy(e){return e.trim().split(/^|\s+/).map((function(e){var t="",i=e.indexOf(".")
7246
+ return i>=0&&(t=e.slice(i+1),e=e.slice(0,i)),{type:e,name:t}}))}function Qy(e){return function(){var t=this.__on
7247
+ 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 Jy(e,t,i){return function(){var o,n=this.__on,s=function(e){return function(t){e.call(this,t,this.__data__)}}(t)
7113
7248
  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)
7114
- 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 Qy(e,t,i){var o=yy(e),n=o.CustomEvent
7115
- "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 Jy(e,t){return function(){return Qy(this,e,t)}}function e$(e,t){return function(){return Qy(this,e,t.apply(this,arguments))}}ly.prototype={constructor:ly,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)}},Oy.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)
7249
+ 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$(e,t,i){var o=Cy(e),n=o.CustomEvent
7250
+ "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 t$(e,t){return function(){return e$(this,e,t)}}function i$(e,t){return function(){return e$(this,e,t.apply(this,arguments))}}dy.prototype={constructor:dy,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)}},Vy.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)
7116
7251
  t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}}
7117
- var t$=[null]
7118
- function i$(e,t){this._groups=e,this._parents=t}function o$(){return new i$([[document.documentElement]],t$)}function n$(e){return"string"==typeof e?new i$([[document.querySelector(e)]],[document.documentElement]):new i$([[e]],t$)}function s$(e,t){if(e=function(e){let t
7252
+ var o$=[null]
7253
+ function n$(e,t){this._groups=e,this._parents=t}function s$(){return new n$([[document.documentElement]],o$)}function r$(e){return"string"==typeof e?new n$([[document.querySelector(e)]],[document.documentElement]):new n$([[e]],o$)}function a$(e,t){if(e=function(e){let t
7119
7254
  for(;t=e.sourceEvent;)e=t
7120
7255
  return e}(e),void 0===t&&(t=e.currentTarget),t){var i=t.ownerSVGElement||t
7121
7256
  if(i.createSVGPoint){var o=i.createSVGPoint()
7122
7257
  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()
7123
- return[e.clientX-n.left-t.clientLeft,e.clientY-n.top-t.clientTop]}}return[e.pageX,e.pageY]}i$.prototype=o$.prototype={constructor:i$,select:function(e){"function"!=typeof e&&(e=Yx(e))
7258
+ return[e.clientX-n.left-t.clientLeft,e.clientY-n.top-t.clientTop]}}return[e.pageX,e.pageY]}n$.prototype=s$.prototype={constructor:n$,select:function(e){"function"!=typeof e&&(e=Jx(e))
7124
7259
  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)
7125
- return new i$(o,this._parents)},selectAll:function(e){e="function"==typeof e?function(e){return function(){return Qx(e.apply(this,arguments))}}(e):ey(e)
7260
+ return new n$(o,this._parents)},selectAll:function(e){e="function"==typeof e?function(e){return function(){return ey(e.apply(this,arguments))}}(e):iy(e)
7126
7261
  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))
7127
- return new i$(o,n)},selectChild:function(e){return this.select(null==e?ny:function(e){return function(){return oy.call(this.children,e)}}("function"==typeof e?e:iy(e)))},selectChildren:function(e){return this.selectAll(null==e?ry:function(e){return function(){return sy.call(this.children,e)}}("function"==typeof e?e:iy(e)))},filter:function(e){"function"!=typeof e&&(e=ty(e))
7262
+ return new n$(o,n)},selectChild:function(e){return this.select(null==e?ry:function(e){return function(){return sy.call(this.children,e)}}("function"==typeof e?e:ny(e)))},selectChildren:function(e){return this.selectAll(null==e?ly:function(e){return function(){return ay.call(this.children,e)}}("function"==typeof e?e:ny(e)))},filter:function(e){"function"!=typeof e&&(e=oy(e))
7128
7263
  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)
7129
- return new i$(o,this._parents)},data:function(e,t){if(!arguments.length)return Array.from(this,uy)
7130
- var i=t?hy:dy,o=this._parents,n=this._groups
7131
- "function"!=typeof e&&(e=cy(e))
7132
- 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=py(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)
7264
+ return new n$(o,this._parents)},data:function(e,t){if(!arguments.length)return Array.from(this,gy)
7265
+ var i=t?py:uy,o=this._parents,n=this._groups
7266
+ "function"!=typeof e&&(e=hy(e))
7267
+ 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=vy(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)
7133
7268
  i(d,h,v,m,f,p,t)
7134
- 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 i$(r,o))._enter=a,r._exit=l,r},enter:function(){return new i$(this._enter||this._groups.map(ay),this._parents)},exit:function(){return new i$(this._exit||this._groups.map(ay),this._parents)},join:function(e,t,i){var o=this.enter(),n=this,s=this.exit()
7269
+ 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 n$(r,o))._enter=a,r._exit=l,r},enter:function(){return new n$(this._enter||this._groups.map(cy),this._parents)},exit:function(){return new n$(this._exit||this._groups.map(cy),this._parents)},join:function(e,t,i){var o=this.enter(),n=this,s=this.exit()
7135
7270
  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)
7136
7271
  for(;l<n;++l)a[l]=i[l]
7137
- return new i$(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)
7138
- return this},sort:function(e){function t(t,i){return t&&i?e(t.__data__,i.__data__):!t-!i}e||(e=gy)
7272
+ return new n$(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)
7273
+ return this},sort:function(e){function t(t,i){return t&&i?e(t.__data__,i.__data__):!t-!i}e||(e=my)
7139
7274
  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)
7140
- c.sort(t)}return new i$(n,this._parents).order()},call:function(){var e=arguments[0]
7275
+ c.sort(t)}return new n$(n,this._parents).order()},call:function(){var e=arguments[0]
7141
7276
  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]
7142
7277
  if(r)return r}return null},size:function(){let e=0
7143
7278
  for(const t of this)++e
7144
7279
  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)
7145
- return this},attr:function(e,t){var i=Ux(e)
7280
+ return this},attr:function(e,t){var i=Wx(e)
7146
7281
  if(arguments.length<2){var o=this.node()
7147
- return i.local?o.getAttributeNS(i.space,i.local):o.getAttribute(i)}return this.each((null==t?i.local?my:vy:"function"==typeof t?i.local?xy:wy:i.local?by:fy)(i,t))},style:function(e,t,i){return arguments.length>1?this.each((null==t?$y:"function"==typeof t?ky:Cy)(e,t,null==i?"":i)):Sy(this.node(),e)},property:function(e,t){return arguments.length>1?this.each((null==t?_y:"function"==typeof t?Ry:Iy)(e,t)):this.node()[e]},classed:function(e,t){var i=My(e+"")
7148
- if(arguments.length<2){for(var o=Ay(this.node()),n=-1,s=i.length;++n<s;)if(!o.contains(i[n]))return!1
7149
- return!0}return this.each(("function"==typeof t?Py:t?Fy:Hy)(i,t))},text:function(e){return arguments.length?this.each(null==e?Ty:("function"==typeof e?Dy:Ly)(e)):this.node().textContent},html:function(e){return arguments.length?this.each(null==e?zy:("function"==typeof e?Ny:By)(e)):this.node().innerHTML},raise:function(){return this.each(Zy)},lower:function(){return this.each(qy)},append:function(e){var t="function"==typeof e?e:Xx(e)
7150
- return this.select((function(){return this.appendChild(t.apply(this,arguments))}))},insert:function(e,t){var i="function"==typeof e?e:Xx(e),o=null==t?jy:"function"==typeof t?t:Yx(t)
7151
- return this.select((function(){return this.insertBefore(i.apply(this,arguments),o.apply(this,arguments)||null)}))},remove:function(){return this.each(Uy)},clone:function(e){return this.select(e?Wy:Gy)},datum:function(e){return arguments.length?this.property("__data__",e):this.node().__data__},on:function(e,t,i){var o,n,s=Xy(e+""),r=s.length
7152
- if(!(arguments.length<2)){for(a=t?Yy:Ky,o=0;o<r;++o)this.each(a(s[o],t,i))
7282
+ return i.local?o.getAttributeNS(i.space,i.local):o.getAttribute(i)}return this.each((null==t?i.local?by:fy:"function"==typeof t?i.local?$y:yy:i.local?xy:wy)(i,t))},style:function(e,t,i){return arguments.length>1?this.each((null==t?ky:"function"==typeof t?_y:Sy)(e,t,null==i?"":i)):Iy(this.node(),e)},property:function(e,t){return arguments.length>1?this.each((null==t?Ry:"function"==typeof t?Ay:My)(e,t)):this.node()[e]},classed:function(e,t){var i=Oy(e+"")
7283
+ if(arguments.length<2){for(var o=Ey(this.node()),n=-1,s=i.length;++n<s;)if(!o.contains(i[n]))return!1
7284
+ return!0}return this.each(("function"==typeof t?Ly:t?Py:Ty)(i,t))},text:function(e){return arguments.length?this.each(null==e?Dy:("function"==typeof e?By:zy)(e)):this.node().textContent},html:function(e){return arguments.length?this.each(null==e?Ny:("function"==typeof e?qy:Zy)(e)):this.node().innerHTML},raise:function(){return this.each(jy)},lower:function(){return this.each(Uy)},append:function(e){var t="function"==typeof e?e:Yx(e)
7285
+ return this.select((function(){return this.appendChild(t.apply(this,arguments))}))},insert:function(e,t){var i="function"==typeof e?e:Yx(e),o=null==t?Gy:"function"==typeof t?t:Jx(t)
7286
+ return this.select((function(){return this.insertBefore(i.apply(this,arguments),o.apply(this,arguments)||null)}))},remove:function(){return this.each(Wy)},clone:function(e){return this.select(e?Ky:Xy)},datum:function(e){return arguments.length?this.property("__data__",e):this.node().__data__},on:function(e,t,i){var o,n,s=Yy(e+""),r=s.length
7287
+ if(!(arguments.length<2)){for(a=t?Jy:Qy,o=0;o<r;++o)this.each(a(s[o],t,i))
7153
7288
  return this}var a=this.node().__on
7154
- 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?e$:Jy)(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)}}
7155
- const r$={capture:!0,passive:!1}
7156
- function a$(e){e.preventDefault(),e.stopImmediatePropagation()}function l$(e){var t=e.document.documentElement,i=n$(e).on("dragstart.drag",a$,r$)
7157
- "onselectstart"in t?i.on("selectstart.drag",a$,r$):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function c$(e,t){var i=e.document.documentElement,o=n$(e).on("dragstart.drag",null)
7158
- t&&(o.on("click.drag",a$,r$),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 h$(e,t){var i=Object.create(e.prototype)
7289
+ 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?i$:t$)(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)}}
7290
+ const l$={capture:!0,passive:!1}
7291
+ function c$(e){e.preventDefault(),e.stopImmediatePropagation()}function d$(e){var t=e.document.documentElement,i=r$(e).on("dragstart.drag",c$,l$)
7292
+ "onselectstart"in t?i.on("selectstart.drag",c$,l$):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function h$(e,t){var i=e.document.documentElement,o=r$(e).on("dragstart.drag",null)
7293
+ t&&(o.on("click.drag",c$,l$),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 u$(e,t,i){e.prototype=t.prototype=i,i.constructor=e}function p$(e,t){var i=Object.create(e.prototype)
7159
7294
  for(var o in t)i[o]=t[o]
7160
- return i}function u$(){}var p$=.7,g$=1/p$,v$="\\s*([+-]?\\d+)\\s*",m$="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",f$="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",b$=/^#([0-9a-f]{3,8})$/,w$=new RegExp(`^rgb\\(${v$},${v$},${v$}\\)$`),x$=new RegExp(`^rgb\\(${f$},${f$},${f$}\\)$`),y$=new RegExp(`^rgba\\(${v$},${v$},${v$},${m$}\\)$`),$$=new RegExp(`^rgba\\(${f$},${f$},${f$},${m$}\\)$`),C$=new RegExp(`^hsl\\(${m$},${f$},${f$}\\)$`),k$=new RegExp(`^hsla\\(${m$},${f$},${f$},${m$}\\)$`),S$={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}
7161
- function _$(){return this.rgb().formatHex()}function I$(){return this.rgb().formatRgb()}function R$(e){var t,i
7162
- return e=(e+"").trim().toLowerCase(),(t=b$.exec(e))?(i=t[1].length,t=parseInt(t[1],16),6===i?M$(t):3===i?new V$(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===i?A$(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===i?A$(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 V$(t[1],t[2],t[3],1):(t=x$.exec(e))?new V$(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=y$.exec(e))?A$(t[1],t[2],t[3],t[4]):(t=$$.exec(e))?A$(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=C$.exec(e))?D$(t[1],t[2]/100,t[3]/100,1):(t=k$.exec(e))?D$(t[1],t[2]/100,t[3]/100,t[4]):S$.hasOwnProperty(e)?M$(S$[e]):"transparent"===e?new V$(NaN,NaN,NaN,0):null}function M$(e){return new V$(e>>16&255,e>>8&255,255&e,1)}function A$(e,t,i,o){return o<=0&&(e=t=i=NaN),new V$(e,t,i,o)}function O$(e){return e instanceof u$||(e=R$(e)),e?new V$((e=e.rgb()).r,e.g,e.b,e.opacity):new V$}function E$(e,t,i,o){return 1===arguments.length?O$(e):new V$(e,t,i,null==o?1:o)}function V$(e,t,i,o){this.r=+e,this.g=+t,this.b=+i,this.opacity=+o}function F$(){return`#${L$(this.r)}${L$(this.g)}${L$(this.b)}`}function H$(){const e=P$(this.opacity)
7163
- return`${1===e?"rgb(":"rgba("}${T$(this.r)}, ${T$(this.g)}, ${T$(this.b)}${1===e?")":`, ${e})`}`}function P$(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function T$(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function L$(e){return((e=T$(e))<16?"0":"")+e.toString(16)}function D$(e,t,i,o){return o<=0?e=t=i=NaN:i<=0||i>=1?e=t=NaN:t<=0&&(e=NaN),new B$(e,t,i,o)}function z$(e){if(e instanceof B$)return new B$(e.h,e.s,e.l,e.opacity)
7164
- if(e instanceof u$||(e=R$(e)),!e)return new B$
7165
- if(e instanceof B$)return e
7295
+ return i}function g$(){}var v$=.7,m$=1/v$,f$="\\s*([+-]?\\d+)\\s*",b$="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",w$="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",x$=/^#([0-9a-f]{3,8})$/,y$=new RegExp(`^rgb\\(${f$},${f$},${f$}\\)$`),$$=new RegExp(`^rgb\\(${w$},${w$},${w$}\\)$`),C$=new RegExp(`^rgba\\(${f$},${f$},${f$},${b$}\\)$`),k$=new RegExp(`^rgba\\(${w$},${w$},${w$},${b$}\\)$`),S$=new RegExp(`^hsl\\(${b$},${w$},${w$}\\)$`),_$=new RegExp(`^hsla\\(${b$},${w$},${w$},${b$}\\)$`),I$={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}
7296
+ function R$(){return this.rgb().formatHex()}function M$(){return this.rgb().formatRgb()}function A$(e){var t,i
7297
+ return e=(e+"").trim().toLowerCase(),(t=x$.exec(e))?(i=t[1].length,t=parseInt(t[1],16),6===i?O$(t):3===i?new H$(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===i?E$(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===i?E$(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=y$.exec(e))?new H$(t[1],t[2],t[3],1):(t=$$.exec(e))?new H$(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=C$.exec(e))?E$(t[1],t[2],t[3],t[4]):(t=k$.exec(e))?E$(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=S$.exec(e))?B$(t[1],t[2]/100,t[3]/100,1):(t=_$.exec(e))?B$(t[1],t[2]/100,t[3]/100,t[4]):I$.hasOwnProperty(e)?O$(I$[e]):"transparent"===e?new H$(NaN,NaN,NaN,0):null}function O$(e){return new H$(e>>16&255,e>>8&255,255&e,1)}function E$(e,t,i,o){return o<=0&&(e=t=i=NaN),new H$(e,t,i,o)}function V$(e){return e instanceof g$||(e=A$(e)),e?new H$((e=e.rgb()).r,e.g,e.b,e.opacity):new H$}function F$(e,t,i,o){return 1===arguments.length?V$(e):new H$(e,t,i,null==o?1:o)}function H$(e,t,i,o){this.r=+e,this.g=+t,this.b=+i,this.opacity=+o}function P$(){return`#${z$(this.r)}${z$(this.g)}${z$(this.b)}`}function T$(){const e=L$(this.opacity)
7298
+ return`${1===e?"rgb(":"rgba("}${D$(this.r)}, ${D$(this.g)}, ${D$(this.b)}${1===e?")":`, ${e})`}`}function L$(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function D$(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function z$(e){return((e=D$(e))<16?"0":"")+e.toString(16)}function B$(e,t,i,o){return o<=0?e=t=i=NaN:i<=0||i>=1?e=t=NaN:t<=0&&(e=NaN),new Z$(e,t,i,o)}function N$(e){if(e instanceof Z$)return new Z$(e.h,e.s,e.l,e.opacity)
7299
+ if(e instanceof g$||(e=A$(e)),!e)return new Z$
7300
+ if(e instanceof Z$)return e
7166
7301
  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
7167
- 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 B$(r,a,l,e.opacity)}function B$(e,t,i,o){this.h=+e,this.s=+t,this.l=+i,this.opacity=+o}function N$(e){return(e=(e||0)%360)<0?e+360:e}function Z$(e){return Math.max(0,Math.min(1,e||0))}function q$(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$(u$,R$,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:_$,formatHex:_$,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return z$(this).formatHsl()},formatRgb:I$,toString:I$}),d$(V$,E$,h$(u$,{brighter(e){return e=null==e?g$:Math.pow(g$,e),new V$(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?p$:Math.pow(p$,e),new V$(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new V$(T$(this.r),T$(this.g),T$(this.b),P$(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:F$,formatHex:F$,formatHex8:function(){return`#${L$(this.r)}${L$(this.g)}${L$(this.b)}${L$(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:H$,toString:H$})),d$(B$,(function(e,t,i,o){return 1===arguments.length?z$(e):new B$(e,t,i,null==o?1:o)}),h$(u$,{brighter(e){return e=null==e?g$:Math.pow(g$,e),new B$(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?p$:Math.pow(p$,e),new B$(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
7168
- return new V$(q$(e>=240?e-240:e+120,n,o),q$(e,n,o),q$(e<120?e+240:e-120,n,o),this.opacity)},clamp(){return new B$(N$(this.h),Z$(this.s),Z$(this.l),P$(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=P$(this.opacity)
7169
- return`${1===e?"hsl(":"hsla("}${N$(this.h)}, ${100*Z$(this.s)}%, ${100*Z$(this.l)}%${1===e?")":`, ${e})`}`}}))
7170
- var j$=e=>()=>e
7171
- function U$(e){return 1==(e=+e)?G$: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):j$(isNaN(t)?i:t)}}function G$(e,t){var i=t-e
7172
- return i?function(e,t){return function(i){return e+i*t}}(e,i):j$(isNaN(e)?t:e)}var W$=function e(t){var i=U$(t)
7173
- function o(e,t){var o=i((e=E$(e)).r,(t=E$(t)).r),n=i(e.g,t.g),s=i(e.b,t.b),r=G$(e.opacity,t.opacity)
7302
+ 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 Z$(r,a,l,e.opacity)}function Z$(e,t,i,o){this.h=+e,this.s=+t,this.l=+i,this.opacity=+o}function q$(e){return(e=(e||0)%360)<0?e+360:e}function j$(e){return Math.max(0,Math.min(1,e||0))}function U$(e,t,i){return 255*(e<60?t+(i-t)*e/60:e<180?i:e<240?t+(i-t)*(240-e)/60:t)}u$(g$,A$,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:R$,formatHex:R$,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return N$(this).formatHsl()},formatRgb:M$,toString:M$}),u$(H$,F$,p$(g$,{brighter(e){return e=null==e?m$:Math.pow(m$,e),new H$(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?v$:Math.pow(v$,e),new H$(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new H$(D$(this.r),D$(this.g),D$(this.b),L$(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:P$,formatHex:P$,formatHex8:function(){return`#${z$(this.r)}${z$(this.g)}${z$(this.b)}${z$(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:T$,toString:T$})),u$(Z$,(function(e,t,i,o){return 1===arguments.length?N$(e):new Z$(e,t,i,null==o?1:o)}),p$(g$,{brighter(e){return e=null==e?m$:Math.pow(m$,e),new Z$(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?v$:Math.pow(v$,e),new Z$(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
7303
+ return new H$(U$(e>=240?e-240:e+120,n,o),U$(e,n,o),U$(e<120?e+240:e-120,n,o),this.opacity)},clamp(){return new Z$(q$(this.h),j$(this.s),j$(this.l),L$(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=L$(this.opacity)
7304
+ return`${1===e?"hsl(":"hsla("}${q$(this.h)}, ${100*j$(this.s)}%, ${100*j$(this.l)}%${1===e?")":`, ${e})`}`}}))
7305
+ var G$=e=>()=>e
7306
+ function W$(e){return 1==(e=+e)?X$: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):G$(isNaN(t)?i:t)}}function X$(e,t){var i=t-e
7307
+ return i?function(e,t){return function(i){return e+i*t}}(e,i):G$(isNaN(e)?t:e)}var K$=function e(t){var i=W$(t)
7308
+ function o(e,t){var o=i((e=F$(e)).r,(t=F$(t)).r),n=i(e.g,t.g),s=i(e.b,t.b),r=X$(e.opacity,t.opacity)
7174
7309
  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)
7175
- function X$(e,t){t||(t=[])
7310
+ function Y$(e,t){t||(t=[])
7176
7311
  var i,o=e?Math.min(t.length,e.length):0,n=t.slice()
7177
7312
  return function(s){for(i=0;i<o;++i)n[i]=e[i]*(1-s)+t[i]*s
7178
- return n}}function K$(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)
7179
- for(i=0;i<n;++i)s[i]=oC(e[i],t[i])
7313
+ return n}}function Q$(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)
7314
+ for(i=0;i<n;++i)s[i]=sC(e[i],t[i])
7180
7315
  for(;i<o;++i)r[i]=t[i]
7181
7316
  return function(e){for(i=0;i<n;++i)r[i]=s[i](e)
7182
- return r}}function Y$(e,t){var i=new Date
7183
- return e=+e,t=+t,function(o){return i.setTime(e*(1-o)+t*o),i}}function Q$(e,t){return e=+e,t=+t,function(i){return e*(1-i)+t*i}}function J$(e,t){var i,o={},n={}
7184
- 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]
7317
+ return r}}function J$(e,t){var i=new Date
7318
+ return e=+e,t=+t,function(o){return i.setTime(e*(1-o)+t*o),i}}function eC(e,t){return e=+e,t=+t,function(i){return e*(1-i)+t*i}}function tC(e,t){var i,o={},n={}
7319
+ for(i in null!==e&&"object"==typeof e||(e={}),null!==t&&"object"==typeof t||(t={}),t)i in e?o[i]=sC(e[i],t[i]):n[i]=t[i]
7185
7320
  return function(e){for(i in o)n[i]=o[i](e)
7186
- return n}}var eC=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,tC=new RegExp(eC.source,"g")
7187
- function iC(e,t){var i,o,n,s=eC.lastIndex=tC.lastIndex=0,r=-1,a=[],l=[]
7188
- for(e+="",t+="";(i=eC.exec(e))&&(o=tC.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:Q$(i,o)})),s=tC.lastIndex
7321
+ return n}}var iC=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,oC=new RegExp(iC.source,"g")
7322
+ function nC(e,t){var i,o,n,s=iC.lastIndex=oC.lastIndex=0,r=-1,a=[],l=[]
7323
+ for(e+="",t+="";(i=iC.exec(e))&&(o=oC.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:eC(i,o)})),s=oC.lastIndex
7189
7324
  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)
7190
- return a.join("")})}function oC(e,t){var i,o,n=typeof t
7191
- return null==t||"boolean"===n?j$(t):("number"===n?Q$:"string"===n?(i=R$(t))?(t=i,W$):iC:t instanceof R$?W$:t instanceof Date?Y$:(o=t,!ArrayBuffer.isView(o)||o instanceof DataView?Array.isArray(t)?K$:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?J$:Q$:X$))(e,t)}function nC(e,t){return e=+e,t=+t,function(i){return Math.round(e*(1-i)+t*i)}}var sC,rC=180/Math.PI,aC={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1}
7192
- function lC(e,t,i,o,n,s){var r,a,l
7193
- 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)*rC,skewX:Math.atan(l)*rC,scaleX:r,scaleY:a}}function cC(e,t,i,o){function n(e){return e.length?e.pop()+" ":""}return function(s,r){var a=[],l=[]
7325
+ return a.join("")})}function sC(e,t){var i,o,n=typeof t
7326
+ return null==t||"boolean"===n?G$(t):("number"===n?eC:"string"===n?(i=A$(t))?(t=i,K$):nC:t instanceof A$?K$:t instanceof Date?J$:(o=t,!ArrayBuffer.isView(o)||o instanceof DataView?Array.isArray(t)?Q$:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?tC:eC:Y$))(e,t)}function rC(e,t){return e=+e,t=+t,function(i){return Math.round(e*(1-i)+t*i)}}var aC,lC=180/Math.PI,cC={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1}
7327
+ function dC(e,t,i,o,n,s){var r,a,l
7328
+ 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)*lC,skewX:Math.atan(l)*lC,scaleX:r,scaleY:a}}function hC(e,t,i,o){function n(e){return e.length?e.pop()+" ":""}return function(s,r){var a=[],l=[]
7194
7329
  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)
7195
- a.push({i:l-4,x:Q$(e,n)},{i:l-2,x:Q$(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:Q$(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:Q$(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,")")
7196
- r.push({i:a-4,x:Q$(e,i)},{i:a-2,x:Q$(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)
7197
- return a.join("")}}}var dC=cC((function(e){const t=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(e+"")
7198
- return t.isIdentity?aC:lC(t.a,t.b,t.c,t.d,t.e,t.f)}),"px, ","px)","deg)"),hC=cC((function(e){return null==e?aC:(sC||(sC=document.createElementNS("http://www.w3.org/2000/svg","g")),sC.setAttribute("transform",e),(e=sC.transform.baseVal.consolidate())?lC((e=e.matrix).a,e.b,e.c,e.d,e.e,e.f):aC)}),", ",")",")")
7199
- function uC(e){return((e=Math.exp(e))+1/e)/2}var pC,gC,vC=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
7330
+ a.push({i:l-4,x:eC(e,n)},{i:l-2,x:eC(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:eC(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:eC(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,")")
7331
+ r.push({i:a-4,x:eC(e,i)},{i:a-2,x:eC(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)
7332
+ return a.join("")}}}var uC=hC((function(e){const t=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(e+"")
7333
+ return t.isIdentity?cC:dC(t.a,t.b,t.c,t.d,t.e,t.f)}),"px, ","px)","deg)"),pC=hC((function(e){return null==e?cC:(aC||(aC=document.createElementNS("http://www.w3.org/2000/svg","g")),aC.setAttribute("transform",e),(e=aC.transform.baseVal.consolidate())?dC((e=e.matrix).a,e.b,e.c,e.d,e.e,e.f):cC)}),", ",")",")")
7334
+ function gC(e){return((e=Math.exp(e))+1/e)/2}var vC,mC,fC=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
7200
7335
  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)]}
7201
7336
  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)
7202
- r=(x-w)/t,s=function(e){var o,n=e*r,s=uC(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))
7203
- return[a+d*p,l+d*g,c*s/uC(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
7204
- return e(i,o,o*o)},n}(Math.SQRT2,2,4),mC=0,fC=0,bC=0,wC=0,xC=0,yC=0,$C="object"==typeof performance&&performance.now?performance:Date,CC="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)}
7205
- function kC(){return xC||(CC(SC),xC=$C.now()+yC)}function SC(){xC=0}function _C(){this._call=this._time=this._next=null}function IC(e,t,i){var o=new _C
7206
- return o.restart(e,t,i),o}function RC(){xC=(wC=$C.now())+yC,mC=fC=0
7207
- try{!function(){kC(),++mC
7208
- for(var e,t=pC;t;)(e=xC-t._time)>=0&&t._call.call(void 0,e),t=t._next;--mC}()}finally{mC=0,function(){var e,t,i=pC,o=1/0
7209
- 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:pC=t)
7210
- gC=e,AC(o)}(),xC=0}}function MC(){var e=$C.now(),t=e-wC
7211
- t>1e3&&(yC-=t,wC=e)}function AC(e){mC||(fC&&(fC=clearTimeout(fC)),e-xC>24?(e<1/0&&(fC=setTimeout(RC,e-$C.now()-yC)),bC&&(bC=clearInterval(bC))):(bC||(wC=$C.now(),bC=setInterval(MC,1e3)),mC=1,CC(RC)))}function OC(e,t,i){var o=new _C
7212
- return t=null==t?0:+t,o.restart((i=>{o.stop(),e(i+t)}),t,i),o}_C.prototype=IC.prototype={constructor:_C,restart:function(e,t,i){if("function"!=typeof e)throw new TypeError("callback is not a function")
7213
- i=(null==i?kC():+i)+(null==t?0:+t),this._next||gC===this||(gC?gC._next=this:pC=this,gC=this),this._call=e,this._time=i,AC()},stop:function(){this._call&&(this._call=null,this._time=1/0,AC())}}
7214
- var EC=Dx("start","end","cancel","interrupt"),VC=[]
7215
- function FC(e,t,i,o,n,s){var r=e.__transition
7337
+ r=(x-w)/t,s=function(e){var o,n=e*r,s=gC(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))
7338
+ return[a+d*p,l+d*g,c*s/gC(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
7339
+ return e(i,o,o*o)},n}(Math.SQRT2,2,4),bC=0,wC=0,xC=0,yC=0,$C=0,CC=0,kC="object"==typeof performance&&performance.now?performance:Date,SC="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)}
7340
+ function _C(){return $C||(SC(IC),$C=kC.now()+CC)}function IC(){$C=0}function RC(){this._call=this._time=this._next=null}function MC(e,t,i){var o=new RC
7341
+ return o.restart(e,t,i),o}function AC(){$C=(yC=kC.now())+CC,bC=wC=0
7342
+ try{!function(){_C(),++bC
7343
+ for(var e,t=vC;t;)(e=$C-t._time)>=0&&t._call.call(void 0,e),t=t._next;--bC}()}finally{bC=0,function(){var e,t,i=vC,o=1/0
7344
+ 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:vC=t)
7345
+ mC=e,EC(o)}(),$C=0}}function OC(){var e=kC.now(),t=e-yC
7346
+ t>1e3&&(CC-=t,yC=e)}function EC(e){bC||(wC&&(wC=clearTimeout(wC)),e-$C>24?(e<1/0&&(wC=setTimeout(AC,e-kC.now()-CC)),xC&&(xC=clearInterval(xC))):(xC||(yC=kC.now(),xC=setInterval(OC,1e3)),bC=1,SC(AC)))}function VC(e,t,i){var o=new RC
7347
+ return t=null==t?0:+t,o.restart((i=>{o.stop(),e(i+t)}),t,i),o}RC.prototype=MC.prototype={constructor:RC,restart:function(e,t,i){if("function"!=typeof e)throw new TypeError("callback is not a function")
7348
+ i=(null==i?_C():+i)+(null==t?0:+t),this._next||mC===this||(mC?mC._next=this:vC=this,mC=this),this._call=e,this._time=i,EC()},stop:function(){this._call&&(this._call=null,this._time=1/0,EC())}}
7349
+ var FC=Bx("start","end","cancel","interrupt"),HC=[]
7350
+ function PC(e,t,i,o,n,s){var r=e.__transition
7216
7351
  if(r){if(i in r)return}else e.__transition={}
7217
7352
  !function(e,t,i){var o,n=e.__transition
7218
7353
  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
7219
7354
  if(1!==i.state)return l()
7220
- for(c in n)if((u=n[c]).name===i.name){if(3===u.state)return OC(r)
7221
- 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(OC((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)
7355
+ for(c in n)if((u=n[c]).name===i.name){if(3===u.state)return VC(r)
7356
+ 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(VC((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)
7222
7357
  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)
7223
7358
  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
7224
- delete e.__transition}n[t]=i,i.timer=IC(s,0,i.time)}(e,i,{name:t,index:o,group:n,on:EC,tween:VC,time:s.time,delay:s.delay,duration:s.duration,ease:s.ease,timer:null,state:0})}function HC(e,t){var i=TC(e,t)
7359
+ delete e.__transition}n[t]=i,i.timer=MC(s,0,i.time)}(e,i,{name:t,index:o,group:n,on:FC,tween:HC,time:s.time,delay:s.delay,duration:s.duration,ease:s.ease,timer:null,state:0})}function TC(e,t){var i=DC(e,t)
7225
7360
  if(i.state>0)throw new Error("too late; already scheduled")
7226
- return i}function PC(e,t){var i=TC(e,t)
7361
+ return i}function LC(e,t){var i=DC(e,t)
7227
7362
  if(i.state>3)throw new Error("too late; already running")
7228
- return i}function TC(e,t){var i=e.__transition
7363
+ return i}function DC(e,t){var i=e.__transition
7229
7364
  if(!i||!(i=i[t]))throw new Error("transition not found")
7230
- return i}function LC(e,t){var i,o,n,s=e.__transition,r=!0
7365
+ return i}function zC(e,t){var i,o,n,s=e.__transition,r=!0
7231
7366
  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
7232
- r&&delete e.__transition}}function DC(e,t){var i,o
7233
- return function(){var n=PC(this,e),s=n.tween
7367
+ r&&delete e.__transition}}function BC(e,t){var i,o
7368
+ return function(){var n=LC(this,e),s=n.tween
7234
7369
  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)
7235
- break}n.tween=o}}function zC(e,t,i){var o,n
7370
+ break}n.tween=o}}function NC(e,t,i){var o,n
7236
7371
  if("function"!=typeof i)throw new Error
7237
- return function(){var s=PC(this,e),r=s.tween
7372
+ return function(){var s=LC(this,e),r=s.tween
7238
7373
  if(r!==o){n=(o=r).slice()
7239
7374
  for(var a={name:t,value:i},l=0,c=n.length;l<c;++l)if(n[l].name===t){n[l]=a
7240
- break}l===c&&n.push(a)}s.tween=n}}function BC(e,t,i){var o=e._id
7241
- return e.each((function(){var e=PC(this,o);(e.value||(e.value={}))[t]=i.apply(this,arguments)})),function(e){return TC(e,o).value[t]}}function NC(e,t){var i
7242
- return("number"==typeof t?Q$:t instanceof R$?W$:(i=R$(t))?(t=i,W$):iC)(e,t)}function ZC(e){return function(){this.removeAttribute(e)}}function qC(e){return function(){this.removeAttributeNS(e.space,e.local)}}function jC(e,t,i){var o,n,s=i+""
7375
+ break}l===c&&n.push(a)}s.tween=n}}function ZC(e,t,i){var o=e._id
7376
+ return e.each((function(){var e=LC(this,o);(e.value||(e.value={}))[t]=i.apply(this,arguments)})),function(e){return DC(e,o).value[t]}}function qC(e,t){var i
7377
+ return("number"==typeof t?eC:t instanceof A$?K$:(i=A$(t))?(t=i,K$):nC)(e,t)}function jC(e){return function(){this.removeAttribute(e)}}function UC(e){return function(){this.removeAttributeNS(e.space,e.local)}}function GC(e,t,i){var o,n,s=i+""
7243
7378
  return function(){var r=this.getAttribute(e)
7244
- return r===s?null:r===o?n:n=t(o=r,i)}}function UC(e,t,i){var o,n,s=i+""
7379
+ return r===s?null:r===o?n:n=t(o=r,i)}}function WC(e,t,i){var o,n,s=i+""
7245
7380
  return function(){var r=this.getAttributeNS(e.space,e.local)
7246
- return r===s?null:r===o?n:n=t(o=r,i)}}function GC(e,t,i){var o,n,s
7381
+ return r===s?null:r===o?n:n=t(o=r,i)}}function XC(e,t,i){var o,n,s
7247
7382
  return function(){var r,a,l=i(this)
7248
7383
  if(null!=l)return(r=this.getAttribute(e))===(a=l+"")?null:r===o&&a===n?s:(n=a,s=t(o=r,l))
7249
- this.removeAttribute(e)}}function WC(e,t,i){var o,n,s
7384
+ this.removeAttribute(e)}}function KC(e,t,i){var o,n,s
7250
7385
  return function(){var r,a,l=i(this)
7251
7386
  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))
7252
- this.removeAttributeNS(e.space,e.local)}}function XC(e,t){return function(i){this.setAttribute(e,t.call(this,i))}}function KC(e,t){return function(i){this.setAttributeNS(e.space,e.local,t.call(this,i))}}function YC(e,t){var i,o
7387
+ this.removeAttributeNS(e.space,e.local)}}function YC(e,t){return function(i){this.setAttribute(e,t.call(this,i))}}function QC(e,t){return function(i){this.setAttributeNS(e.space,e.local,t.call(this,i))}}function JC(e,t){var i,o
7253
7388
  function n(){var n=t.apply(this,arguments)
7254
- return n!==o&&(i=(o=n)&&KC(e,n)),i}return n._value=t,n}function QC(e,t){var i,o
7389
+ return n!==o&&(i=(o=n)&&QC(e,n)),i}return n._value=t,n}function ek(e,t){var i,o
7255
7390
  function n(){var n=t.apply(this,arguments)
7256
- return n!==o&&(i=(o=n)&&XC(e,n)),i}return n._value=t,n}function JC(e,t){return function(){HC(this,e).delay=+t.apply(this,arguments)}}function ek(e,t){return t=+t,function(){HC(this,e).delay=t}}function tk(e,t){return function(){PC(this,e).duration=+t.apply(this,arguments)}}function ik(e,t){return t=+t,function(){PC(this,e).duration=t}}function ok(e,t){if("function"!=typeof t)throw new Error
7257
- return function(){PC(this,e).ease=t}}function nk(e,t,i){var o,n,s=function(e){return(e+"").trim().split(/^|\s+/).every((function(e){var t=e.indexOf(".")
7258
- return t>=0&&(e=e.slice(0,t)),!e||"start"===e}))}(t)?HC:PC
7391
+ return n!==o&&(i=(o=n)&&YC(e,n)),i}return n._value=t,n}function tk(e,t){return function(){TC(this,e).delay=+t.apply(this,arguments)}}function ik(e,t){return t=+t,function(){TC(this,e).delay=t}}function ok(e,t){return function(){LC(this,e).duration=+t.apply(this,arguments)}}function nk(e,t){return t=+t,function(){LC(this,e).duration=t}}function sk(e,t){if("function"!=typeof t)throw new Error
7392
+ return function(){LC(this,e).ease=t}}function rk(e,t,i){var o,n,s=function(e){return(e+"").trim().split(/^|\s+/).every((function(e){var t=e.indexOf(".")
7393
+ return t>=0&&(e=e.slice(0,t)),!e||"start"===e}))}(t)?TC:LC
7259
7394
  return function(){var r=s(this,e),a=r.on
7260
- a!==o&&(n=(o=a).copy()).on(t,i),r.on=n}}var sk=o$.prototype.constructor
7261
- function rk(e){return function(){this.style.removeProperty(e)}}function ak(e,t,i){return function(o){this.style.setProperty(e,t.call(this,o),i)}}function lk(e,t,i){var o,n
7395
+ a!==o&&(n=(o=a).copy()).on(t,i),r.on=n}}var ak=s$.prototype.constructor
7396
+ function lk(e){return function(){this.style.removeProperty(e)}}function ck(e,t,i){return function(o){this.style.setProperty(e,t.call(this,o),i)}}function dk(e,t,i){var o,n
7262
7397
  function s(){var s=t.apply(this,arguments)
7263
- return s!==n&&(o=(n=s)&&ak(e,s,i)),o}return s._value=t,s}function ck(e){return function(t){this.textContent=e.call(this,t)}}function dk(e){var t,i
7398
+ return s!==n&&(o=(n=s)&&ck(e,s,i)),o}return s._value=t,s}function hk(e){return function(t){this.textContent=e.call(this,t)}}function uk(e){var t,i
7264
7399
  function o(){var o=e.apply(this,arguments)
7265
- return o!==i&&(t=(i=o)&&ck(o)),t}return o._value=e,o}var hk=0
7266
- function uk(e,t,i,o){this._groups=e,this._parents=t,this._name=i,this._id=o}function pk(){return++hk}var gk=o$.prototype
7267
- uk.prototype={constructor:uk,select:function(e){var t=this._name,i=this._id
7268
- "function"!=typeof e&&(e=Yx(e))
7269
- 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,FC(h[u],t,i,u,h,TC(a,i)))
7270
- return new uk(s,this._parents,t,i)},selectAll:function(e){var t=this._name,i=this._id
7271
- "function"!=typeof e&&(e=ey(e))
7272
- 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=TC(l,i),v=0,m=p.length;v<m;++v)(u=p[v])&&FC(u,t,i,v,p,g)
7273
- s.push(p),r.push(l)}return new uk(s,r,t,i)},selectChild:gk.selectChild,selectChildren:gk.selectChildren,filter:function(e){"function"!=typeof e&&(e=ty(e))
7400
+ return o!==i&&(t=(i=o)&&hk(o)),t}return o._value=e,o}var pk=0
7401
+ function gk(e,t,i,o){this._groups=e,this._parents=t,this._name=i,this._id=o}function vk(){return++pk}var mk=s$.prototype
7402
+ gk.prototype={constructor:gk,select:function(e){var t=this._name,i=this._id
7403
+ "function"!=typeof e&&(e=Jx(e))
7404
+ 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,PC(h[u],t,i,u,h,DC(a,i)))
7405
+ return new gk(s,this._parents,t,i)},selectAll:function(e){var t=this._name,i=this._id
7406
+ "function"!=typeof e&&(e=iy(e))
7407
+ 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=DC(l,i),v=0,m=p.length;v<m;++v)(u=p[v])&&PC(u,t,i,v,p,g)
7408
+ s.push(p),r.push(l)}return new gk(s,r,t,i)},selectChild:mk.selectChild,selectChildren:mk.selectChildren,filter:function(e){"function"!=typeof e&&(e=oy(e))
7274
7409
  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)
7275
- return new uk(o,this._parents,this._name,this._id)},merge:function(e){if(e._id!==this._id)throw new Error
7410
+ return new gk(o,this._parents,this._name,this._id)},merge:function(e){if(e._id!==this._id)throw new Error
7276
7411
  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)
7277
7412
  for(;a<o;++a)r[a]=t[a]
7278
- return new uk(r,this._parents,this._name,this._id)},selection:function(){return new sk(this._groups,this._parents)},transition:function(){for(var e=this._name,t=this._id,i=pk(),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=TC(r,t)
7279
- FC(r,e,i,c,a,{time:d.time+d.delay+d.duration,delay:0,duration:d.duration,ease:d.ease})}return new uk(o,this._parents,e,i)},call:gk.call,nodes:gk.nodes,node:gk.node,size:gk.size,empty:gk.empty,each:gk.each,on:function(e,t){var i=this._id
7280
- return arguments.length<2?TC(this.node(),i).on.on(e):this.each(nk(i,e,t))},attr:function(e,t){var i=Ux(e),o="transform"===i?hC:NC
7281
- return this.attrTween(e,"function"==typeof t?(i.local?WC:GC)(i,o,BC(this,"attr."+e,t)):null==t?(i.local?qC:ZC)(i):(i.local?UC:jC)(i,o,t))},attrTween:function(e,t){var i="attr."+e
7413
+ return new gk(r,this._parents,this._name,this._id)},selection:function(){return new ak(this._groups,this._parents)},transition:function(){for(var e=this._name,t=this._id,i=vk(),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=DC(r,t)
7414
+ PC(r,e,i,c,a,{time:d.time+d.delay+d.duration,delay:0,duration:d.duration,ease:d.ease})}return new gk(o,this._parents,e,i)},call:mk.call,nodes:mk.nodes,node:mk.node,size:mk.size,empty:mk.empty,each:mk.each,on:function(e,t){var i=this._id
7415
+ return arguments.length<2?DC(this.node(),i).on.on(e):this.each(rk(i,e,t))},attr:function(e,t){var i=Wx(e),o="transform"===i?pC:qC
7416
+ return this.attrTween(e,"function"==typeof t?(i.local?KC:XC)(i,o,ZC(this,"attr."+e,t)):null==t?(i.local?UC:jC)(i):(i.local?WC:GC)(i,o,t))},attrTween:function(e,t){var i="attr."+e
7282
7417
  if(arguments.length<2)return(i=this.tween(i))&&i._value
7283
7418
  if(null==t)return this.tween(i,null)
7284
7419
  if("function"!=typeof t)throw new Error
7285
- var o=Ux(e)
7286
- return this.tween(i,(o.local?YC:QC)(o,t))},style:function(e,t,i){var o="transform"==(e+="")?dC:NC
7420
+ var o=Wx(e)
7421
+ return this.tween(i,(o.local?JC:ek)(o,t))},style:function(e,t,i){var o="transform"==(e+="")?uC:qC
7287
7422
  return null==t?this.styleTween(e,function(e,t){var i,o,n
7288
- return function(){var s=Sy(this,e),r=(this.style.removeProperty(e),Sy(this,e))
7289
- return s===r?null:s===i&&r===o?n:n=t(i=s,o=r)}}(e,o)).on("end.style."+e,rk(e)):"function"==typeof t?this.styleTween(e,function(e,t,i){var o,n,s
7290
- return function(){var r=Sy(this,e),a=i(this),l=a+""
7291
- return null==a&&(this.style.removeProperty(e),l=a=Sy(this,e)),r===l?null:r===o&&l===n?s:(n=l,s=t(o=r,a))}}(e,o,BC(this,"style."+e,t))).each(function(e,t){var i,o,n,s,r="style."+t,a="end."+r
7292
- return function(){var l=PC(this,e),c=l.on,d=null==l.value[r]?s||(s=rk(t)):void 0
7423
+ return function(){var s=Iy(this,e),r=(this.style.removeProperty(e),Iy(this,e))
7424
+ return s===r?null:s===i&&r===o?n:n=t(i=s,o=r)}}(e,o)).on("end.style."+e,lk(e)):"function"==typeof t?this.styleTween(e,function(e,t,i){var o,n,s
7425
+ return function(){var r=Iy(this,e),a=i(this),l=a+""
7426
+ return null==a&&(this.style.removeProperty(e),l=a=Iy(this,e)),r===l?null:r===o&&l===n?s:(n=l,s=t(o=r,a))}}(e,o,ZC(this,"style."+e,t))).each(function(e,t){var i,o,n,s,r="style."+t,a="end."+r
7427
+ return function(){var l=LC(this,e),c=l.on,d=null==l.value[r]?s||(s=lk(t)):void 0
7293
7428
  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+""
7294
- return function(){var r=Sy(this,e)
7429
+ return function(){var r=Iy(this,e)
7295
7430
  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+="")
7296
7431
  if(arguments.length<2)return(o=this.tween(o))&&o._value
7297
7432
  if(null==t)return this.tween(o,null)
7298
7433
  if("function"!=typeof t)throw new Error
7299
- return this.tween(o,lk(e,t,null==i?"":i))},text:function(e){return this.tween("text","function"==typeof e?function(e){return function(){var t=e(this)
7300
- this.textContent=null==t?"":t}}(BC(this,"text",e)):function(e){return function(){this.textContent=e}}(null==e?"":e+""))},textTween:function(e){var t="text"
7434
+ return this.tween(o,dk(e,t,null==i?"":i))},text:function(e){return this.tween("text","function"==typeof e?function(e){return function(){var t=e(this)
7435
+ this.textContent=null==t?"":t}}(ZC(this,"text",e)):function(e){return function(){this.textContent=e}}(null==e?"":e+""))},textTween:function(e){var t="text"
7301
7436
  if(arguments.length<1)return(t=this.tween(t))&&t._value
7302
7437
  if(null==e)return this.tween(t,null)
7303
7438
  if("function"!=typeof e)throw new Error
7304
- return this.tween(t,dk(e))},remove:function(){return this.on("end.remove",function(e){return function(){var t=this.parentNode
7439
+ return this.tween(t,uk(e))},remove:function(){return this.on("end.remove",function(e){return function(){var t=this.parentNode
7305
7440
  for(var i in this.__transition)if(+i!==e)return
7306
7441
  t&&t.removeChild(this)}}(this._id))},tween:function(e,t){var i=this._id
7307
- if(e+="",arguments.length<2){for(var o,n=TC(this.node(),i).tween,s=0,r=n.length;s<r;++s)if((o=n[s]).name===e)return o.value
7308
- return null}return this.each((null==t?DC:zC)(i,e,t))},delay:function(e){var t=this._id
7309
- return arguments.length?this.each(("function"==typeof e?JC:ek)(t,e)):TC(this.node(),t).delay},duration:function(e){var t=this._id
7310
- return arguments.length?this.each(("function"==typeof e?tk:ik)(t,e)):TC(this.node(),t).duration},ease:function(e){var t=this._id
7311
- return arguments.length?this.each(ok(t,e)):TC(this.node(),t).ease},easeVarying:function(e){if("function"!=typeof e)throw new Error
7442
+ if(e+="",arguments.length<2){for(var o,n=DC(this.node(),i).tween,s=0,r=n.length;s<r;++s)if((o=n[s]).name===e)return o.value
7443
+ return null}return this.each((null==t?BC:NC)(i,e,t))},delay:function(e){var t=this._id
7444
+ return arguments.length?this.each(("function"==typeof e?tk:ik)(t,e)):DC(this.node(),t).delay},duration:function(e){var t=this._id
7445
+ return arguments.length?this.each(("function"==typeof e?ok:nk)(t,e)):DC(this.node(),t).duration},ease:function(e){var t=this._id
7446
+ return arguments.length?this.each(sk(t,e)):DC(this.node(),t).ease},easeVarying:function(e){if("function"!=typeof e)throw new Error
7312
7447
  return this.each(function(e,t){return function(){var i=t.apply(this,arguments)
7313
7448
  if("function"!=typeof i)throw new Error
7314
- PC(this,e).ease=i}}(this._id,e))},end:function(){var e,t,i=this,o=i._id,n=i.size()
7449
+ LC(this,e).ease=i}}(this._id,e))},end:function(){var e,t,i=this,o=i._id,n=i.size()
7315
7450
  return new Promise((function(s,r){var a={value:r},l={value:function(){0==--n&&s()}}
7316
- i.each((function(){var i=PC(this,o),n=i.on
7317
- 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]:gk[Symbol.iterator]}
7318
- var vk={time:null,delay:0,duration:250,ease:function(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}}
7319
- function mk(e,t){for(var i;!(i=e.__transition)||!(i=i[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`)
7320
- return i}o$.prototype.interrupt=function(e){return this.each((function(){LC(this,e)}))},o$.prototype.transition=function(e){var t,i
7321
- e instanceof uk?(t=e._id,e=e._name):(t=pk(),(i=vk).time=kC(),e=null==e?null:e+"")
7322
- 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])&&FC(r,e,t,c,a,i||mk(r,t))
7323
- return new uk(o,this._parents,e,t)}
7324
- var fk=e=>()=>e
7325
- function bk(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+")"}}
7326
- var xk=new wk(1,0,0)
7327
- function yk(e){for(;!e.__zoom;)if(!(e=e.parentNode))return xk
7328
- return e.__zoom}function $k(e){e.stopImmediatePropagation()}function Ck(e){e.preventDefault(),e.stopImmediatePropagation()}function kk(e){return!(e.ctrlKey&&"wheel"!==e.type||e.button)}function Sk(){var e=this
7329
- 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 _k(){return this.__zoom||xk}function Ik(e){return-e.deltaY*(1===e.deltaMode?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function Rk(){return navigator.maxTouchPoints||"ontouchstart"in this}function Mk(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]
7330
- 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))}yk.prototype=wk.prototype
7331
- const Ak=G`
7451
+ i.each((function(){var i=LC(this,o),n=i.on
7452
+ 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]:mk[Symbol.iterator]}
7453
+ var fk={time:null,delay:0,duration:250,ease:function(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}}
7454
+ function bk(e,t){for(var i;!(i=e.__transition)||!(i=i[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`)
7455
+ return i}s$.prototype.interrupt=function(e){return this.each((function(){zC(this,e)}))},s$.prototype.transition=function(e){var t,i
7456
+ e instanceof gk?(t=e._id,e=e._name):(t=vk(),(i=fk).time=_C(),e=null==e?null:e+"")
7457
+ 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])&&PC(r,e,t,c,a,i||bk(r,t))
7458
+ return new gk(o,this._parents,e,t)}
7459
+ var wk=e=>()=>e
7460
+ function xk(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 yk(e,t,i){this.k=e,this.x=t,this.y=i}yk.prototype={constructor:yk,scale:function(e){return 1===e?this:new yk(this.k*e,this.x,this.y)},translate:function(e,t){return 0===e&0===t?this:new yk(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+")"}}
7461
+ var $k=new yk(1,0,0)
7462
+ function Ck(e){for(;!e.__zoom;)if(!(e=e.parentNode))return $k
7463
+ return e.__zoom}function kk(e){e.stopImmediatePropagation()}function Sk(e){e.preventDefault(),e.stopImmediatePropagation()}function _k(e){return!(e.ctrlKey&&"wheel"!==e.type||e.button)}function Ik(){var e=this
7464
+ 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 Rk(){return this.__zoom||$k}function Mk(e){return-e.deltaY*(1===e.deltaMode?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function Ak(){return navigator.maxTouchPoints||"ontouchstart"in this}function Ok(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]
7465
+ 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))}Ck.prototype=yk.prototype
7466
+ const Ek=G`
7332
7467
  <div class="wafer-map-container">
7333
7468
  <svg class="svg-root">
7334
7469
  <g ${_e("zoomContainer")} transform=${e=>e.transform.toString()}>
@@ -7358,7 +7493,7 @@ const Ak=G`
7358
7493
  />
7359
7494
  </svg>
7360
7495
  </div>
7361
- `,Ok=me`
7496
+ `,Vk=me`
7362
7497
  :host {
7363
7498
  display: inline-block;
7364
7499
  width: 500px;
@@ -7442,68 +7577,68 @@ const Ak=G`
7442
7577
  outline-width: 0px;
7443
7578
  }
7444
7579
  `
7445
- function Ek(e,t){return null==e||null==t?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function Vk(e,t){return null==e||null==t?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Fk(e){let t,i,o
7580
+ function Fk(e,t){return null==e||null==t?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function Hk(e,t){return null==e||null==t?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Pk(e){let t,i,o
7446
7581
  function n(e,o,n=0,s=e.length){if(n<s){if(0!==t(o,o))return s
7447
7582
  do{const t=n+s>>>1
7448
- i(e[t],o)<0?n=t+1:s=t}while(n<s)}return n}return 2!==e.length?(t=Ek,i=(t,i)=>Ek(e(t),i),o=(t,i)=>e(t)-i):(t=e===Ek||e===Vk?e:Hk,i=e,o=e),{left:n,center:function(e,t,i=0,s=e.length){const r=n(e,t,i,s-1)
7583
+ i(e[t],o)<0?n=t+1:s=t}while(n<s)}return n}return 2!==e.length?(t=Fk,i=(t,i)=>Fk(e(t),i),o=(t,i)=>e(t)-i):(t=e===Fk||e===Hk?e:Tk,i=e,o=e),{left:n,center:function(e,t,i=0,s=e.length){const r=n(e,t,i,s-1)
7449
7584
  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
7450
7585
  do{const t=n+s>>>1
7451
- i(e[t],o)<=0?n=t+1:s=t}while(n<s)}return n}}}function Hk(){return 0}function Pk(e){return null===e?NaN:+e}const Tk=Fk(Ek).right
7452
- Fk(Pk).center
7453
- var Lk=Tk
7454
- class Dk extends Map{constructor(e,t=Bk){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(zk(this,e))}has(e){return super.has(zk(this,e))}set(e,t){return super.set(function({_intern:e,_key:t},i){const o=t(i)
7586
+ i(e[t],o)<=0?n=t+1:s=t}while(n<s)}return n}}}function Tk(){return 0}function Lk(e){return null===e?NaN:+e}const Dk=Pk(Fk).right
7587
+ Pk(Lk).center
7588
+ var zk=Dk
7589
+ class Bk extends Map{constructor(e,t=Zk){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(Nk(this,e))}has(e){return super.has(Nk(this,e))}set(e,t){return super.set(function({_intern:e,_key:t},i){const o=t(i)
7455
7590
  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)
7456
7591
  e.has(o)&&(i=e.get(o),e.delete(o))
7457
- return i}(this,e))}}function zk({_intern:e,_key:t},i){const o=t(i)
7458
- return e.has(o)?e.get(o):i}function Bk(e){return null!==e&&"object"==typeof e?e.valueOf():e}const Nk=Math.sqrt(50),Zk=Math.sqrt(10),qk=Math.sqrt(2)
7459
- function jk(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>=Nk?10:s>=Zk?5:s>=qk?2:1
7592
+ return i}(this,e))}}function Nk({_intern:e,_key:t},i){const o=t(i)
7593
+ return e.has(o)?e.get(o):i}function Zk(e){return null!==e&&"object"==typeof e?e.valueOf():e}const qk=Math.sqrt(50),jk=Math.sqrt(10),Uk=Math.sqrt(2)
7594
+ function Gk(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>=qk?10:s>=jk?5:s>=Uk?2:1
7460
7595
  let a,l,c
7461
- 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?jk(e,t,2*i):[a,l,c]}function Uk(e,t,i){return jk(e=+e,t=+t,i=+i)[2]}function Gk(e,t,i=Pk){if((o=e.length)&&!isNaN(t=+t)){if(t<=0||o<2)return+i(e[0],0,e)
7596
+ 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?Gk(e,t,2*i):[a,l,c]}function Wk(e,t,i){return Gk(e=+e,t=+t,i=+i)[2]}function Xk(e,t,i=Lk){if((o=e.length)&&!isNaN(t=+t)){if(t<=0||o<2)return+i(e[0],0,e)
7462
7597
  if(t>=1)return+i(e[o-1],o-1,e)
7463
7598
  var o,n=(o-1)*t,s=Math.floor(n),r=+i(e[s],s,e)
7464
- return r+(+i(e[s+1],s+1,e)-r)*(n-s)}}function Wk(e,t,i){e=+e,t=+t,i=(n=arguments.length)<2?(t=e,e=0,1):n<3?1:+i
7599
+ return r+(+i(e[s+1],s+1,e)-r)*(n-s)}}function Kk(e,t,i){e=+e,t=+t,i=(n=arguments.length)<2?(t=e,e=0,1):n<3?1:+i
7465
7600
  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
7466
- return s}function Xk(e,t){switch(arguments.length){case 0:break
7601
+ return s}function Yk(e,t){switch(arguments.length){case 0:break
7467
7602
  case 1:this.range(e)
7468
7603
  break
7469
- default:this.range(t).domain(e)}return this}const Kk=Symbol("implicit")
7470
- function Yk(){var e=new Dk,t=[],i=[],o=Kk
7604
+ default:this.range(t).domain(e)}return this}const Qk=Symbol("implicit")
7605
+ function Jk(){var e=new Bk,t=[],i=[],o=Qk
7471
7606
  function n(n){let s=e.get(n)
7472
- if(void 0===s){if(o!==Kk)return o
7607
+ if(void 0===s){if(o!==Qk)return o
7473
7608
  e.set(n,s=t.push(n)-1)}return i[s%i.length]}return n.domain=function(i){if(!arguments.length)return t.slice()
7474
- t=[],e=new Dk
7609
+ t=[],e=new Bk
7475
7610
  for(const o of i)e.has(o)||e.set(o,t.push(o)-1)
7476
- 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 Yk(t,i).unknown(o)},Xk.apply(n,arguments),n}function Qk(){var e,t,i=Yk().unknown(void 0),o=i.domain,n=i.range,s=0,r=1,a=!1,l=0,c=0,d=.5
7611
+ 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 Jk(t,i).unknown(o)},Yk.apply(n,arguments),n}function eS(){var e,t,i=Jk().unknown(void 0),o=i.domain,n=i.range,s=0,r=1,a=!1,l=0,c=0,d=.5
7477
7612
  function h(){var i=o().length,h=r<s,u=h?r:s,p=h?s:r
7478
7613
  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))
7479
- var g=Wk(i).map((function(t){return u+e*t}))
7480
- 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 Qk(o(),[s,r]).round(a).paddingInner(l).paddingOuter(c).align(d)},Xk.apply(h(),arguments)}function Jk(e){return+e}var eS=[0,1]
7481
- function tS(e){return e}function iS(e,t){return(t-=e=+e)?function(i){return(i-e)/t}:(i=isNaN(t)?NaN:.5,function(){return i})
7482
- var i}function oS(e,t,i){var o=e[0],n=e[1],s=t[0],r=t[1]
7483
- return n<o?(o=iS(n,o),s=i(r,s)):(o=iS(o,n),s=i(s,r)),function(e){return s(o(e))}}function nS(e,t,i){var o=Math.min(e.length,t.length)-1,n=new Array(o),s=new Array(o),r=-1
7484
- for(e[o]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++r<o;)n[r]=iS(e[r],e[r+1]),s[r]=i(t[r],t[r+1])
7485
- return function(t){var i=Lk(e,t,1,o)-1
7486
- return s[i](n[i](t))}}function sS(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function rS(){var e,t,i,o,n,s,r=eS,a=eS,l=oC,c=tS
7614
+ var g=Kk(i).map((function(t){return u+e*t}))
7615
+ 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 eS(o(),[s,r]).round(a).paddingInner(l).paddingOuter(c).align(d)},Yk.apply(h(),arguments)}function tS(e){return+e}var iS=[0,1]
7616
+ function oS(e){return e}function nS(e,t){return(t-=e=+e)?function(i){return(i-e)/t}:(i=isNaN(t)?NaN:.5,function(){return i})
7617
+ var i}function sS(e,t,i){var o=e[0],n=e[1],s=t[0],r=t[1]
7618
+ return n<o?(o=nS(n,o),s=i(r,s)):(o=nS(o,n),s=i(s,r)),function(e){return s(o(e))}}function rS(e,t,i){var o=Math.min(e.length,t.length)-1,n=new Array(o),s=new Array(o),r=-1
7619
+ for(e[o]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++r<o;)n[r]=nS(e[r],e[r+1]),s[r]=i(t[r],t[r+1])
7620
+ return function(t){var i=zk(e,t,1,o)-1
7621
+ return s[i](n[i](t))}}function aS(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function lS(){var e,t,i,o,n,s,r=iS,a=iS,l=sC,c=oS
7487
7622
  function d(){var e,t,i,l=Math.min(r.length,a.length)
7488
- return c!==tS&&(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?nS: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),Q$)))(i)))},h.domain=function(e){return arguments.length?(r=Array.from(e,Jk),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=nC,d()},h.clamp=function(e){return arguments.length?(c=!!e||tS,d()):c!==tS},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 aS(){return rS()(tS,tS)}function lS(e,t){if((i=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null
7623
+ return c!==oS&&(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?rS:sS,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),eC)))(i)))},h.domain=function(e){return arguments.length?(r=Array.from(e,tS),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=rC,d()},h.clamp=function(e){return arguments.length?(c=!!e||oS,d()):c!==oS},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 cS(){return lS()(oS,oS)}function dS(e,t){if((i=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null
7489
7624
  var i,o=e.slice(0,i)
7490
- return[o.length>1?o[0]+o.slice(2):o,+e.slice(i+1)]}function cS(e){return(e=lS(Math.abs(e)))?e[1]:NaN}var dS,hS=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i
7491
- function uS(e){if(!(t=hS.exec(e)))throw new Error("invalid format: "+e)
7625
+ return[o.length>1?o[0]+o.slice(2):o,+e.slice(i+1)]}function hS(e){return(e=dS(Math.abs(e)))?e[1]:NaN}var uS,pS=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i
7626
+ function gS(e){if(!(t=pS.exec(e)))throw new Error("invalid format: "+e)
7492
7627
  var t
7493
- return new pS({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 pS(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 gS(e,t){var i=lS(e,t)
7628
+ return new vS({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 vS(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 mS(e,t){var i=dS(e,t)
7494
7629
  if(!i)return e+""
7495
7630
  var o=i[0],n=i[1]
7496
- 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")}uS.prototype=pS.prototype,pS.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}
7497
- var vS={"%":(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)=>gS(100*e,t),r:gS,s:function(e,t){var i=lS(e,t)
7631
+ 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")}gS.prototype=vS.prototype,vS.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}
7632
+ var fS={"%":(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)=>mS(100*e,t),r:mS,s:function(e,t){var i=dS(e,t)
7498
7633
  if(!i)return e+""
7499
- 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
7500
- 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")+lS(e,Math.max(0,t+s-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)}
7501
- function mS(e){return e}var fS,bS,wS,xS=Array.prototype.map,yS=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"]
7502
- function $S(e){var t,i,o=void 0===e.grouping||void 0===e.thousands?mS:(t=xS.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]
7503
- 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?mS:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(xS.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+""
7504
- function h(e){var t=(e=uS(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
7505
- "n"===b?(v=!0,b="g"):vS[b]||(void 0===m&&(m=12),f=!0,b="g"),(p||"0"===t&&"="===i)&&(p=!0,t="0",i="=")
7506
- var w="$"===u?n:"#"===u&&/[boxX]/.test(b)?"0"+b.toLowerCase():"",x="$"===u?s:/[%p]/.test(b)?l:"",y=vS[b],$=/[defgprs%]/.test(b)
7634
+ var o=i[0],n=i[1],s=n-(uS=3*Math.max(-8,Math.min(8,Math.floor(n/3))))+1,r=o.length
7635
+ 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")+dS(e,Math.max(0,t+s-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)}
7636
+ function bS(e){return e}var wS,xS,yS,$S=Array.prototype.map,CS=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"]
7637
+ function kS(e){var t,i,o=void 0===e.grouping||void 0===e.thousands?bS:(t=$S.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]
7638
+ 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?bS:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}($S.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+""
7639
+ function h(e){var t=(e=gS(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
7640
+ "n"===b?(v=!0,b="g"):fS[b]||(void 0===m&&(m=12),f=!0,b="g"),(p||"0"===t&&"="===i)&&(p=!0,t="0",i="=")
7641
+ var w="$"===u?n:"#"===u&&/[boxX]/.test(b)?"0"+b.toLowerCase():"",x="$"===u?s:/[%p]/.test(b)?l:"",y=fS[b],$=/[defgprs%]/.test(b)
7507
7642
  function C(e){var n,s,l,u=w,C=x
7508
7643
  if("c"===b)C=y(e)+C,e=""
7509
7644
  else{var k=(e=+e)<0||1/e<0
@@ -7512,7 +7647,7 @@ break
7512
7647
  case"0":0===n&&(n=o),t=o
7513
7648
  break
7514
7649
  default:if(!+e[o])break e
7515
- 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?yS[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)
7650
+ 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?CS[8+uS/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)
7516
7651
  break}}v&&!p&&(e=o(e,1/0))
7517
7652
  var S=u.length+e.length+C.length,_=S<g?new Array(g-S+1).join(t):""
7518
7653
  switch(v&&p&&(e=o(_+e,_.length?g-C.length:1/0),_=""),i){case"<":e=u+e+C+_
@@ -7521,19 +7656,19 @@ case"=":e=u+_+e+C
7521
7656
  break
7522
7657
  case"^":e=_.slice(0,S=_.length>>1)+u+e+C+_.slice(S)
7523
7658
  break
7524
- 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=uS(e)).type="f",e)),o=3*Math.max(-8,Math.min(8,Math.floor(cS(t)/3))),n=Math.pow(10,-o),s=yS[8+o/3]
7525
- return function(e){return i(n*e)+s}}}}function CS(e,t,i,o){var n,s=function(e,t,i){i=+i
7526
- const o=(t=+t)<(e=+e),n=o?Uk(t,e,i):Uk(e,t,i)
7659
+ 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=gS(e)).type="f",e)),o=3*Math.max(-8,Math.min(8,Math.floor(hS(t)/3))),n=Math.pow(10,-o),s=CS[8+o/3]
7660
+ return function(e){return i(n*e)+s}}}}function SS(e,t,i,o){var n,s=function(e,t,i){i=+i
7661
+ const o=(t=+t)<(e=+e),n=o?Wk(t,e,i):Wk(e,t,i)
7527
7662
  return(o?-1:1)*(n<0?1/-n:n)}(e,t,i)
7528
- switch((o=uS(null==o?",f":o)).type){case"s":var r=Math.max(Math.abs(e),Math.abs(t))
7529
- return null!=o.precision||isNaN(n=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(cS(t)/3)))-cS(Math.abs(e)))}(s,r))||(o.precision=n),wS(o,r)
7530
- 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,cS(t)-cS(e))+1}(s,Math.max(Math.abs(e),Math.abs(t))))||(o.precision=n-("e"===o.type))
7663
+ switch((o=gS(null==o?",f":o)).type){case"s":var r=Math.max(Math.abs(e),Math.abs(t))
7664
+ return null!=o.precision||isNaN(n=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(hS(t)/3)))-hS(Math.abs(e)))}(s,r))||(o.precision=n),yS(o,r)
7665
+ 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,hS(t)-hS(e))+1}(s,Math.max(Math.abs(e),Math.abs(t))))||(o.precision=n-("e"===o.type))
7531
7666
  break
7532
- case"f":case"%":null!=o.precision||isNaN(n=function(e){return Math.max(0,-cS(Math.abs(e)))}(s))||(o.precision=n-2*("%"===o.type))}return bS(o)}function kS(e){var t=e.domain
7667
+ case"f":case"%":null!=o.precision||isNaN(n=function(e){return Math.max(0,-hS(Math.abs(e)))}(s))||(o.precision=n-2*("%"===o.type))}return xS(o)}function _S(e){var t=e.domain
7533
7668
  return e.ticks=function(e){var i=t()
7534
7669
  return function(e,t,i){if(!((i=+i)>0))return[]
7535
7670
  if((e=+e)==(t=+t))return[e]
7536
- const o=t<e,[n,s,r]=o?jk(t,e,i):jk(e,t,i)
7671
+ const o=t<e,[n,s,r]=o?Gk(t,e,i):Gk(e,t,i)
7537
7672
  if(!(s>=n))return[]
7538
7673
  const a=s-n+1,l=new Array(a)
7539
7674
  if(o)if(r<0)for(let e=0;e<a;++e)l[e]=(s-e)/-r
@@ -7541,85 +7676,85 @@ else for(let e=0;e<a;++e)l[e]=(s-e)*r
7541
7676
  else if(r<0)for(let e=0;e<a;++e)l[e]=(n+e)/-r
7542
7677
  else for(let e=0;e<a;++e)l[e]=(n+e)*r
7543
7678
  return l}(i[0],i[i.length-1],null==e?10:e)},e.tickFormat=function(e,i){var o=t()
7544
- return CS(o[0],o[o.length-1],null==e?10:e,i)},e.nice=function(i){null==i&&(i=10)
7679
+ return SS(o[0],o[o.length-1],null==e?10:e,i)},e.nice=function(i){null==i&&(i=10)
7545
7680
  var o,n,s=t(),r=0,a=s.length-1,l=s[r],c=s[a],d=10
7546
- for(c<l&&(n=l,l=c,c=n,n=r,r=a,a=n);d-- >0;){if((n=Uk(l,c,i))===o)return s[r]=l,s[a]=c,t(s)
7681
+ for(c<l&&(n=l,l=c,c=n,n=r,r=a,a=n);d-- >0;){if((n=Wk(l,c,i))===o)return s[r]=l,s[a]=c,t(s)
7547
7682
  if(n>0)l=Math.floor(l/n)*n,c=Math.ceil(c/n)*n
7548
7683
  else{if(!(n<0))break
7549
- l=Math.ceil(l*n)/n,c=Math.floor(c*n)/n}o=n}return e},e}function SS(){var e=aS()
7550
- return e.copy=function(){return sS(e,SS())},Xk.apply(e,arguments),kS(e)}function _S(){var e,t=[],i=[],o=[]
7684
+ l=Math.ceil(l*n)/n,c=Math.floor(c*n)/n}o=n}return e},e}function IS(){var e=cS()
7685
+ return e.copy=function(){return aS(e,IS())},Yk.apply(e,arguments),_S(e)}function RS(){var e,t=[],i=[],o=[]
7551
7686
  function n(){var e=0,n=Math.max(1,i.length)
7552
- for(o=new Array(n-1);++e<n;)o[e-1]=Gk(t,e/n)
7553
- return s}function s(t){return null==t||isNaN(t=+t)?e:i[Lk(o,t)]}return s.invertExtent=function(e){var n=i.indexOf(e)
7687
+ for(o=new Array(n-1);++e<n;)o[e-1]=Xk(t,e/n)
7688
+ return s}function s(t){return null==t||isNaN(t=+t)?e:i[zk(o,t)]}return s.invertExtent=function(e){var n=i.indexOf(e)
7554
7689
  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()
7555
7690
  t=[]
7556
7691
  for(let i of e)null==i||isNaN(i=+i)||t.push(i)
7557
- return t.sort(Ek),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 _S().domain(t).range(i).unknown(e)},Xk.apply(s,arguments)}fS=$S({thousands:",",grouping:[3],currency:["$",""]}),bS=fS.format,wS=fS.formatPrefix
7558
- const IS="bottom-left",RS="bottom-right",MS="top-left",AS="top-right",OS="top",ES="show",VS="hide",FS="linear",HS="ordinal"
7559
- class PS{constructor(e){this.defaultPadding=0,this.baseMarginPercentage=.04
7692
+ return t.sort(Fk),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 RS().domain(t).range(i).unknown(e)},Yk.apply(s,arguments)}wS=kS({thousands:",",grouping:[3],currency:["$",""]}),xS=wS.format,yS=wS.formatPrefix
7693
+ const MS="bottom-left",AS="bottom-right",OS="top-left",ES="top-right",VS="top",FS="show",HS="hide",PS="linear",TS="ordinal"
7694
+ class LS{constructor(e){this.defaultPadding=0,this.baseMarginPercentage=.04
7560
7695
  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}
7561
7696
  this.margin=this.calculateMarginAddition(s,n),this.containerDimensions=this.calculateContainerDimensions(t,this.margin)
7562
7697
  const r=Math.min(this.containerDimensions.width,this.containerDimensions.height)
7563
7698
  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}
7564
7699
  const t={x:e[0].x,y:e[0].y},i={x:e[0].x,y:e[0].y}
7565
7700
  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)
7566
- 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=Qk().domain(Wk(t.origin.x,t.origin.x+t.cols)).paddingInner(0).paddingOuter(0).align(0).round(!1)
7567
- return e===IS||e===MS?o.range([0,i]):o.range([i,0])}createInvertedHorizontalScale(e,t,i){const o=_S().domain([0,i])
7568
- return e===IS||e===MS?o.range(Wk(t.origin.x,t.origin.x+t.cols)):o.range(Wk(t.origin.x,t.origin.x+t.cols).reverse())}createVerticalScale(e,t,i){const o=Qk().domain(Wk(t.origin.y,t.origin.y+t.rows)).paddingInner(this.defaultPadding).paddingOuter(0).align(0).round(!1)
7569
- return e===IS||e===RS?o.range([i,0]):o.range([0,i])}createInvertedVerticalScale(e,t,i){const o=_S().domain([0,i])
7570
- return e===IS||e===RS?o.range(Wk(t.origin.y,t.origin.y+t.rows).reverse()):o.range(Wk(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 TS{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=[]
7701
+ 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=eS().domain(Kk(t.origin.x,t.origin.x+t.cols)).paddingInner(0).paddingOuter(0).align(0).round(!1)
7702
+ return e===MS||e===OS?o.range([0,i]):o.range([i,0])}createInvertedHorizontalScale(e,t,i){const o=RS().domain([0,i])
7703
+ return e===MS||e===OS?o.range(Kk(t.origin.x,t.origin.x+t.cols)):o.range(Kk(t.origin.x,t.origin.x+t.cols).reverse())}createVerticalScale(e,t,i){const o=eS().domain(Kk(t.origin.y,t.origin.y+t.rows)).paddingInner(this.defaultPadding).paddingOuter(0).align(0).round(!1)
7704
+ return e===MS||e===AS?o.range([i,0]):o.range([0,i])}createInvertedVerticalScale(e,t,i){const o=RS().domain([0,i])
7705
+ return e===MS||e===AS?o.range(Kk(t.origin.y,t.origin.y+t.rows).reverse()):o.range(Kk(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 DS{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=[]
7571
7706
  for(const o of e.dies){const s=t(o.x)??0,r=i(o.y)??0
7572
- 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)?SS().domain(e.values.map((e=>+e))).range(e.colors):Yk().domain(e.values).range(e.colors)}dieHasData(e){return null!=e&&""!==e}buildLabel(e,t,i,o){if(i||!this.dieHasData(e))return""
7707
+ 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)?IS().domain(e.values.map((e=>+e))).range(e.colors):Jk().domain(e.values).range(e.colors)}dieHasData(e){return null!=e&&""!==e}buildLabel(e,t,i,o){if(i||!this.dieHasData(e))return""
7573
7708
  const n=`${e}${o}`
7574
- 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===FS}isColorScaleOrdinal(e){return e===HS}calculateFillStyle(e,t,i){let o=this.emptyDieColor
7709
+ 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===PS}isColorScaleOrdinal(e){return e===TS}calculateFillStyle(e,t,i){let o=this.emptyDieColor
7575
7710
  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
7576
7711
  let n=Fn(o)
7577
- return null===n?this.emptyDieColor:(n=new _n(n.r,n.g,n.b,this.calculateOpacity(e,i)),n.toStringWebRGBA())}}class LS{constructor(e){this.computations=new PS(e),this.prerendering=new TS(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 DS{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?VS:ES,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])
7712
+ return null===n?this.emptyDieColor:(n=new _n(n.r,n.g,n.b,this.calculateOpacity(e,i)),n.toStringWebRGBA())}}class zS{constructor(e){this.computations=new LS(e),this.prerendering=new DS(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 BS{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?HS:FS,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])
7578
7713
  return`translate(${i[0]}, ${i[1]})`}return""}renderDies(){let e
7579
7714
  this.dies.sort(((e,t)=>e.fillStyle>t.fillStyle?1:t.fillStyle>e.fillStyle?-1:0))
7580
7715
  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
7581
7716
  this.wafermap.canvasContext.font=`${t.toString()}px sans-serif`,this.wafermap.canvasContext.fillStyle="#ffffff",this.wafermap.canvasContext.textAlign="center",this.wafermap.canvasContext.lineCap="butt"
7582
7717
  const i=this.wafermap.canvasContext.measureText("M")
7583
- 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 zS{constructor(e){this.wafermap=e,this.zoomTransform=xk,this.minScale=1.1,this.minExtentPoint=[-100,-100],this.extentPadding=100,this.zoomBehavior=this.createZoomBehavior(),this.zoomBehavior(n$(this.wafermap.canvas))}rescale(e){const t=e.transform
7584
- t.k===this.minScale?(this.zoomTransform=xk,this.zoomBehavior.transform(n$(this.wafermap.canvas),xk)):this.zoomTransform=t,this.wafermap.transform=this.zoomTransform}createZoomBehavior(){const e=function(){var e,t,i,o=kk,n=Sk,s=Mk,r=Ik,a=Rk,l=[0,1/0],c=[[-1/0,-1/0],[1/0,1/0]],d=250,h=vC,u=Dx("start","zoom","end"),p=500,g=0,v=10
7585
- function m(e){e.property("__zoom",_k).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
7586
- 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))
7718
+ 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 NS{constructor(e){this.wafermap=e,this.zoomTransform=$k,this.minScale=1.1,this.minExtentPoint=[-100,-100],this.extentPadding=100,this.zoomBehavior=this.createZoomBehavior(),this.zoomBehavior(r$(this.wafermap.canvas))}rescale(e){const t=e.transform
7719
+ t.k===this.minScale?(this.zoomTransform=$k,this.zoomBehavior.transform(r$(this.wafermap.canvas),$k)):this.zoomTransform=t,this.wafermap.transform=this.zoomTransform}createZoomBehavior(){const e=function(){var e,t,i,o=_k,n=Ik,s=Ok,r=Mk,a=Ak,l=[0,1/0],c=[[-1/0,-1/0],[1/0,1/0]],d=250,h=fC,u=Bx("start","zoom","end"),p=500,g=0,v=10
7720
+ function m(e){e.property("__zoom",Rk).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 yk(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
7721
+ return o===e.x&&n===e.y?e:new yk(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))
7587
7722
  return function(e){if(1===e)e=u
7588
7723
  else{var t=p(e),i=c/t[2]
7589
- 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=s$(e)
7724
+ e=new yk(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=a$(e)
7590
7725
  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)
7591
7726
  else{if(n.k===a)return
7592
- i.mouse=[d,n.invert(d)],LC(this),i.start()}Ck(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=n$(e.view).on("mousemove.zoom",u,!0).on("mouseup.zoom",p,!0),l=s$(e,n),d=e.clientX,h=e.clientY
7593
- l$(e.view),$k(e),r.mouse=[l,this.__zoom.invert(l)],LC(this),r.start()}function u(e){if(Ck(e),!r.moved){var t=e.clientX-d,i=e.clientY-h
7594
- r.moved=t*t+i*i>g}r.event(e).zoom("mouse",s(b(r.that.__zoom,r.mouse[0]=s$(e,n),r.mouse[1]),r.extent,c))}function p(e){a.on("mousemove.zoom mouseup.zoom",null),c$(e.view,r.moved),Ck(e),r.event(e).end()}}function S(e,...t){if(o.apply(this,arguments)){var i=this.__zoom,r=s$(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)
7595
- Ck(e),d>0?n$(this).transition().duration(d).call(x,h,r,e):n$(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)
7596
- for($k(i),r=0;r<d;++r)l=[l=s$(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)
7597
- e&&(e=clearTimeout(e)),s&&(h.taps<2&&(t=l[0],e=setTimeout((function(){e=null}),p)),LC(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
7598
- for(Ck(e),i=0;i<d;++i)n=s$(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)
7727
+ i.mouse=[d,n.invert(d)],zC(this),i.start()}Sk(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=r$(e.view).on("mousemove.zoom",u,!0).on("mouseup.zoom",p,!0),l=a$(e,n),d=e.clientX,h=e.clientY
7728
+ d$(e.view),kk(e),r.mouse=[l,this.__zoom.invert(l)],zC(this),r.start()}function u(e){if(Sk(e),!r.moved){var t=e.clientX-d,i=e.clientY-h
7729
+ r.moved=t*t+i*i>g}r.event(e).zoom("mouse",s(b(r.that.__zoom,r.mouse[0]=a$(e,n),r.mouse[1]),r.extent,c))}function p(e){a.on("mousemove.zoom mouseup.zoom",null),h$(e.view,r.moved),Sk(e),r.event(e).end()}}function S(e,...t){if(o.apply(this,arguments)){var i=this.__zoom,r=a$(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)
7730
+ Sk(e),d>0?r$(this).transition().duration(d).call(x,h,r,e):r$(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)
7731
+ for(kk(i),r=0;r<d;++r)l=[l=a$(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)
7732
+ e&&(e=clearTimeout(e)),s&&(h.taps<2&&(t=l[0],e=setTimeout((function(){e=null}),p)),zC(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
7733
+ for(Sk(e),i=0;i<d;++i)n=a$(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)
7599
7734
  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
7600
7735
  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
7601
7736
  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
7602
- for($k(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
7737
+ for(kk(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
7603
7738
  if(r.touch1&&!r.touch0&&(r.touch0=r.touch1,delete r.touch1),r.touch0)r.touch0[1]=this.__zoom.invert(r.touch0[0])
7604
- else if(r.end(),2===r.taps&&(s=s$(s,this),Math.hypot(t[0]-s[0],t[1]-s[1])<v)){var c=n$(this).on("dblclick.zoom")
7739
+ else if(r.end(),2===r.taps&&(s=a$(s,this),Math.hypot(t[0]-s[0],t[1]-s[1])<v)){var c=r$(this).on("dblclick.zoom")
7605
7740
  c&&c.apply(this,arguments)}}}return m.transform=function(e,t,i,o){var n=e.selection?e.selection():e
7606
- n.property("__zoom",_k),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
7741
+ n.property("__zoom",Rk),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
7607
7742
  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
7608
- return s(xk.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=n$(this.that).datum()
7609
- u.call(e,this.that,new bk(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:fk(+e),m):r},m.filter=function(e){return arguments.length?(o="function"==typeof e?e:fk(!!e),m):o},m.touchable=function(e){return arguments.length?(a="function"==typeof e?e:fk(!!e),m):a},m.extent=function(e){return arguments.length?(n="function"==typeof e?e:fk([[+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)
7610
- 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=>yk(this.wafermap.canvas).k>=this.minScale||"wheel"===e.type)).on("zoom",(e=>{this.rescale(e)}))
7611
- return e}getZoomMax(e,t){return Math.ceil(t/e*100)}}class BS{constructor(e){this.wafermap=e}mousemove(e){const t={x:e.offsetX,y:e.offsetY}
7743
+ return s($k.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=r$(this.that).datum()
7744
+ u.call(e,this.that,new xk(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:wk(+e),m):r},m.filter=function(e){return arguments.length?(o="function"==typeof e?e:wk(!!e),m):o},m.touchable=function(e){return arguments.length?(a="function"==typeof e?e:wk(!!e),m):a},m.extent=function(e){return arguments.length?(n="function"==typeof e?e:wk([[+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)
7745
+ 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=>Ck(this.wafermap.canvas).k>=this.minScale||"wheel"===e.type)).on("zoom",(e=>{this.rescale(e)}))
7746
+ return e}getZoomMax(e,t){return Math.ceil(t/e*100)}}class ZS{constructor(e){this.wafermap=e}mousemove(e){const t={x:e.offsetX,y:e.offsetY}
7612
7747
  if(!this.hoversOverDie(t))return void(this.wafermap.hoverDie=void 0)
7613
7748
  const i=this.wafermap.transform.invert([t.x,t.y]),o=this.calculateDieCoordinates({x:i[0],y:i[1]})
7614
- this.wafermap.hoverDie=this.wafermap.dataManager.getWaferMapDie(o)}mouseout(e){this.wafermap.hoverDie=void 0}calculateDieCoordinates(e){const t=this.wafermap.quadrant,i=t===IS||t===MS?Math.floor:Math.ceil,o=t===MS||t===AS?Math.floor:Math.ceil
7749
+ this.wafermap.hoverDie=this.wafermap.dataManager.getWaferMapDie(o)}mouseout(e){this.wafermap.hoverDie=void 0}calculateDieCoordinates(e){const t=this.wafermap.quadrant,i=t===MS||t===OS?Math.floor:Math.ceil,o=t===OS||t===ES?Math.floor:Math.ceil
7615
7750
  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
7616
7751
  let i=0
7617
7752
  for(const e of t)i+=e
7618
- return i>0}}class NS{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 zS(e),this.hoverHandler=new BS(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 ZS extends _t{constructor(){super(...arguments),this.quadrant=MS,this.orientation=OS,this.maxCharacters=4,this.dieLabelsHidden=!1,this.dieLabelsSuffix="",this.colorScaleMode=FS,this.renderQueued=!1,this.transform=xk,this.hoverTransform="",this.hoverOpacity=VS,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 LS(this),this.renderer=new DS(this),this.eventCoordinator=new NS(this)}createResizeObserver(){const e=new ResizeObserver((e=>{const t=e[0]
7753
+ return i>0}}class qS{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 NS(e),this.hoverHandler=new ZS(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 jS extends _t{constructor(){super(...arguments),this.quadrant=OS,this.orientation=VS,this.maxCharacters=4,this.dieLabelsHidden=!1,this.dieLabelsSuffix="",this.colorScaleMode=PS,this.renderQueued=!1,this.transform=$k,this.hoverTransform="",this.hoverOpacity=HS,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 zS(this),this.renderer=new BS(this),this.eventCoordinator=new qS(this)}createResizeObserver(){const e=new ResizeObserver((e=>{const t=e[0]
7619
7754
  if(void 0===t)return
7620
7755
  const{height:i,width:o}=t.contentRect
7621
7756
  this.canvas.width=o,this.canvas.height=i,this.canvasWidth=o,this.canvasHeight=i}))
7622
- 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],ZS.prototype,"quadrant",void 0),e([ne],ZS.prototype,"orientation",void 0),e([ne({attribute:"max-characters",converter:ie})],ZS.prototype,"maxCharacters",void 0),e([ne({attribute:"die-labels-hidden",mode:"boolean"})],ZS.prototype,"dieLabelsHidden",void 0),e([ne({attribute:"die-labels-suffix"})],ZS.prototype,"dieLabelsSuffix",void 0),e([ne({attribute:"color-scale-mode"})],ZS.prototype,"colorScaleMode",void 0),e([m],ZS.prototype,"canvasWidth",void 0),e([m],ZS.prototype,"canvasHeight",void 0),e([m],ZS.prototype,"transform",void 0),e([m],ZS.prototype,"hoverTransform",void 0),e([m],ZS.prototype,"hoverOpacity",void 0),e([m],ZS.prototype,"hoverWidth",void 0),e([m],ZS.prototype,"hoverHeight",void 0),e([m],ZS.prototype,"hoverDie",void 0),e([m],ZS.prototype,"highlightedValues",void 0),e([m],ZS.prototype,"dies",void 0),e([m],ZS.prototype,"colorScale",void 0)
7623
- const qS=ZS.compose({baseName:"wafer-map",template:Ak,styles:Ok})
7624
- no.getOrCreate().withPrefix("nimble").register(qS()),no.tagFor(ZS)}()
7757
+ 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],jS.prototype,"quadrant",void 0),e([ne],jS.prototype,"orientation",void 0),e([ne({attribute:"max-characters",converter:ie})],jS.prototype,"maxCharacters",void 0),e([ne({attribute:"die-labels-hidden",mode:"boolean"})],jS.prototype,"dieLabelsHidden",void 0),e([ne({attribute:"die-labels-suffix"})],jS.prototype,"dieLabelsSuffix",void 0),e([ne({attribute:"color-scale-mode"})],jS.prototype,"colorScaleMode",void 0),e([m],jS.prototype,"canvasWidth",void 0),e([m],jS.prototype,"canvasHeight",void 0),e([m],jS.prototype,"transform",void 0),e([m],jS.prototype,"hoverTransform",void 0),e([m],jS.prototype,"hoverOpacity",void 0),e([m],jS.prototype,"hoverWidth",void 0),e([m],jS.prototype,"hoverHeight",void 0),e([m],jS.prototype,"hoverDie",void 0),e([m],jS.prototype,"highlightedValues",void 0),e([m],jS.prototype,"dies",void 0),e([m],jS.prototype,"colorScale",void 0)
7758
+ const US=jS.compose({baseName:"wafer-map",template:Ek,styles:Vk})
7759
+ no.getOrCreate().withPrefix("nimble").register(US()),no.tagFor(jS)}()
7625
7760
  //# sourceMappingURL=all-components-bundle.min.js.map