@ni/nimble-components 24.1.7 → 24.1.8

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.
@@ -9912,10 +9912,10 @@ return m._valuesCache[e]}if(m._groupingValuesCache.hasOwnProperty(e))return m._g
9912
9912
  const o=t.getColumn(e),r=null==o?void 0:o.getAggregationFn()
9913
9913
  return r?(m._groupingValuesCache[e]=r(e,f,h),m._groupingValuesCache[e]):void 0}}),p.forEach((t=>{o.push(t),r[t.id]=t})),m}))
9914
9914
  return d},a=s(n.rows,0)
9915
- return a.forEach((t=>{o.push(t),r[t.id]=t})),{rows:a,flatRows:o,rowsById:r}}),LT(t.options,"debugTable",0,(()=>{t._queue((()=>{t._autoResetExpanded(),t._autoResetPageIndex()}))})))}const IO=void 0,DO="can-load-children",AO="loading-children",TO={none:void 0,ascending:"ascending",descending:"descending"},OO={none:void 0,single:"single",multiple:"multiple"},RO="not-selected",FO="selected",NO="partially-selected",PO="basic",LO="localeAwareCaseSensitive"
9916
- class zO extends Le{}t([g],zO.prototype,"groupHeaderValue",void 0),t([g],zO.prototype,"columnConfig",void 0)
9917
- const VO=t=>((t=>{let e
9918
- try{e=document.createElement(t)}catch(t){}if(!(e instanceof zO))throw new Error(`Group header view tag name (${t}) must evaluate to an element extending TableGroupHeaderView`)})(t),Z`
9915
+ return a.forEach((t=>{o.push(t),r[t.id]=t})),{rows:a,flatRows:o,rowsById:r}}),LT(t.options,"debugTable",0,(()=>{t._queue((()=>{t._autoResetExpanded(),t._autoResetPageIndex()}))})))}const IO=void 0,DO="can-load-children",AO="loading-children",TO={none:void 0,ascending:"ascending",descending:"descending"},OO={none:void 0,single:"single",multiple:"multiple"},RO="not-selected",FO="selected",NO="partially-selected",PO="basic",LO="localeAwareCaseSensitive",zO=117,VO=1
9916
+ class HO extends Le{}t([g],HO.prototype,"groupHeaderValue",void 0),t([g],HO.prototype,"columnConfig",void 0)
9917
+ const BO=t=>((t=>{let e
9918
+ try{e=document.createElement(t)}catch(t){}if(!(e instanceof HO))throw new Error(`Group header view tag name (${t}) must evaluate to an element extending TableGroupHeaderView`)})(t),Z`
9919
9919
  <${t}
9920
9920
  :groupHeaderValue="${t=>t.groupRowValue}"
9921
9921
  :columnConfig="${t=>t.groupColumn?.columnInternals.columnConfig}"
@@ -9923,11 +9923,11 @@ try{e=document.createElement(t)}catch(t){}if(!(e instanceof zO))throw new Error(
9923
9923
  >
9924
9924
  </${t}>
9925
9925
  `)
9926
- class HO extends Le{constructor(){super(...arguments),this.delegatedEvents=[],this.delegatedEventHandler=()=>{}}focusedRecycleCallback(){}columnChanged(){for(const t of this.delegatedEvents)this.removeEventListener(t,this.delegatedEventHandler)
9926
+ class qO extends Le{constructor(){super(...arguments),this.delegatedEvents=[],this.delegatedEventHandler=()=>{}}focusedRecycleCallback(){}columnChanged(){for(const t of this.delegatedEvents)this.removeEventListener(t,this.delegatedEventHandler)
9927
9927
  if(this.delegatedEvents=[],this.delegatedEventHandler=()=>{},this.column){this.delegatedEvents=this.column.columnInternals.delegatedEvents,this.delegatedEventHandler=t=>{this.recordId&&this.column?.dispatchEvent(new CustomEvent("delegated-event",{detail:{originalEvent:t,recordId:this.recordId}}))}
9928
- for(const t of this.delegatedEvents)this.addEventListener(t,this.delegatedEventHandler)}}}t([g],HO.prototype,"cellRecord",void 0),t([g],HO.prototype,"columnConfig",void 0),t([g],HO.prototype,"column",void 0),t([g],HO.prototype,"recordId",void 0)
9929
- const BO=t=>((t=>{let e
9930
- try{e=document.createElement(t)}catch(t){}if(!(e instanceof HO))throw new Error(`Cell view tag name (${t}) must evaluate to an element extending TableCellView`)})(t),Z`
9928
+ for(const t of this.delegatedEvents)this.addEventListener(t,this.delegatedEventHandler)}}}t([g],qO.prototype,"cellRecord",void 0),t([g],qO.prototype,"columnConfig",void 0),t([g],qO.prototype,"column",void 0),t([g],qO.prototype,"recordId",void 0)
9929
+ const UO=t=>((t=>{let e
9930
+ try{e=document.createElement(t)}catch(t){}if(!(e instanceof qO))throw new Error(`Cell view tag name (${t}) must evaluate to an element extending TableCellView`)})(t),Z`
9931
9931
  <${t}
9932
9932
  :cellRecord="${t=>t.cellState?.cellRecord}"
9933
9933
  :columnConfig="${t=>t.cellState?.columnConfig}"
@@ -9937,10 +9937,10 @@ try{e=document.createElement(t)}catch(t){}if(!(e instanceof HO))throw new Error(
9937
9937
  >
9938
9938
  </${t}>
9939
9939
  `)
9940
- class qO{constructor(t){this.uniqueId=ya("table-column-slot"),this.validConfiguration=!0,this.sortOperation=PO,this.dataRecordFieldNames=[],this.groupingDisabled=!1,this.fractionalWidth=1,this.minPixelWidth=117,this.currentFractionalWidth=1,this.currentSortDirection=TO.none,this.cellRecordFieldNames=t.cellRecordFieldNames,this.cellViewTemplate=BO(t.cellViewTag),this.groupHeaderViewTemplate=VO(t.groupHeaderViewTag),this.delegatedEvents=t.delegatedEvents,this.sortOperation=t.sortOperation??PO}fractionalWidthChanged(){this.currentFractionalWidth=this.fractionalWidth}pixelWidthChanged(){this.currentPixelWidth=this.pixelWidth}}function UO(t,...e){for(const n of e)if(t===n)return!0
9941
- return!1}t([g],qO.prototype,"columnConfig",void 0),t([g],qO.prototype,"validConfiguration",void 0),t([g],qO.prototype,"operandDataRecordFieldName",void 0),t([g],qO.prototype,"sortOperation",void 0),t([g],qO.prototype,"dataRecordFieldNames",void 0),t([g],qO.prototype,"groupingDisabled",void 0),t([g],qO.prototype,"groupIndex",void 0),t([g],qO.prototype,"pixelWidth",void 0),t([g],qO.prototype,"fractionalWidth",void 0),t([g],qO.prototype,"minPixelWidth",void 0),t([g],qO.prototype,"currentFractionalWidth",void 0),t([g],qO.prototype,"currentPixelWidth",void 0),t([g],qO.prototype,"currentSortIndex",void 0),t([g],qO.prototype,"currentSortDirection",void 0)
9942
- class jO extends Le{constructor(){super(...arguments),this.columnInternals=new qO(this.getColumnInternalsOptions()),this.columnHidden=!1,this.sortDirection=TO.none,this.sortingDisabled=!1,this.hasOverflow=!1}checkValidity(){return this.columnInternals.validConfiguration}get validity(){return{}}get headerTextContent(){return this.contentSlot.assignedNodes().map((t=>t.textContent?.trim())).join(" ")}connectedCallback(){super.connectedCallback(),this.setAttribute("slot",this.columnInternals.uniqueId)}sortDirectionChanged(){this.sortingDisabled||(this.columnInternals.currentSortDirection=this.sortDirection)}sortIndexChanged(){this.sortingDisabled||(this.columnInternals.currentSortIndex=this.sortIndex)}sortingDisabledChanged(){this.sortingDisabled?(this.columnInternals.currentSortDirection=TO.none,this.columnInternals.currentSortIndex=void 0):(this.columnInternals.currentSortDirection=this.sortDirection,this.columnInternals.currentSortIndex=this.sortIndex)}}t([st({attribute:"column-id"})],jO.prototype,"columnId",void 0),t([st({attribute:"action-menu-slot"})],jO.prototype,"actionMenuSlot",void 0),t([st({attribute:"action-menu-label"})],jO.prototype,"actionMenuLabel",void 0),t([st({attribute:"column-hidden",mode:"boolean"})],jO.prototype,"columnHidden",void 0),t([st({attribute:"sort-index",converter:ot})],jO.prototype,"sortIndex",void 0),t([st({attribute:"sort-direction"})],jO.prototype,"sortDirection",void 0),t([st({attribute:"sorting-disabled",mode:"boolean"})],jO.prototype,"sortingDisabled",void 0),t([g],jO.prototype,"hasOverflow",void 0)
9943
- class WO{constructor(){this.duplicateRecordId=!1,this.missingRecordId=!1,this.invalidRecordId=!1,this.duplicateColumnId=!1,this.missingColumnId=!1,this.duplicateSortIndex=!1,this.duplicateGroupIndex=!1,this.idFieldNameNotConfigured=!1,this.invalidColumnConfiguration=!1,this.invalidParentIdConfiguration=!1,this.recordIds=new Set}getValidity(){return{duplicateRecordId:this.duplicateRecordId,missingRecordId:this.missingRecordId,invalidRecordId:this.invalidRecordId,duplicateColumnId:this.duplicateColumnId,missingColumnId:this.missingColumnId,duplicateSortIndex:this.duplicateSortIndex,duplicateGroupIndex:this.duplicateGroupIndex,idFieldNameNotConfigured:this.idFieldNameNotConfigured,invalidColumnConfiguration:this.invalidColumnConfiguration,invalidParentIdConfiguration:this.invalidParentIdConfiguration}}isValid(){return Object.values(this.getValidity()).every((t=>!1===t))}areRecordIdsValid(){const t=this.getValidity()
9940
+ class jO{constructor(t){this.uniqueId=ya("table-column-slot"),this.validConfiguration=!0,this.sortOperation=PO,this.dataRecordFieldNames=[],this.groupingDisabled=!1,this.fractionalWidth=VO,this.minPixelWidth=zO,this.currentFractionalWidth=VO,this.currentSortDirection=TO.none,this.cellRecordFieldNames=t.cellRecordFieldNames,this.cellViewTemplate=UO(t.cellViewTag),this.groupHeaderViewTemplate=BO(t.groupHeaderViewTag),this.delegatedEvents=t.delegatedEvents,this.sortOperation=t.sortOperation??PO}fractionalWidthChanged(){this.currentFractionalWidth=this.fractionalWidth}pixelWidthChanged(){this.currentPixelWidth=this.pixelWidth}}function WO(t,...e){for(const n of e)if(t===n)return!0
9941
+ return!1}t([g],jO.prototype,"columnConfig",void 0),t([g],jO.prototype,"validConfiguration",void 0),t([g],jO.prototype,"operandDataRecordFieldName",void 0),t([g],jO.prototype,"sortOperation",void 0),t([g],jO.prototype,"dataRecordFieldNames",void 0),t([g],jO.prototype,"groupingDisabled",void 0),t([g],jO.prototype,"groupIndex",void 0),t([g],jO.prototype,"pixelWidth",void 0),t([g],jO.prototype,"fractionalWidth",void 0),t([g],jO.prototype,"minPixelWidth",void 0),t([g],jO.prototype,"currentFractionalWidth",void 0),t([g],jO.prototype,"currentPixelWidth",void 0),t([g],jO.prototype,"currentSortIndex",void 0),t([g],jO.prototype,"currentSortDirection",void 0)
9942
+ class ZO extends Le{constructor(){super(...arguments),this.columnInternals=new jO(this.getColumnInternalsOptions()),this.columnHidden=!1,this.sortDirection=TO.none,this.sortingDisabled=!1,this.hasOverflow=!1}checkValidity(){return this.columnInternals.validConfiguration}get validity(){return{}}get headerTextContent(){return this.contentSlot.assignedNodes().map((t=>t.textContent?.trim())).join(" ")}connectedCallback(){super.connectedCallback(),this.setAttribute("slot",this.columnInternals.uniqueId)}sortDirectionChanged(){this.sortingDisabled||(this.columnInternals.currentSortDirection=this.sortDirection)}sortIndexChanged(){this.sortingDisabled||(this.columnInternals.currentSortIndex=this.sortIndex)}sortingDisabledChanged(){this.sortingDisabled?(this.columnInternals.currentSortDirection=TO.none,this.columnInternals.currentSortIndex=void 0):(this.columnInternals.currentSortDirection=this.sortDirection,this.columnInternals.currentSortIndex=this.sortIndex)}}t([st({attribute:"column-id"})],ZO.prototype,"columnId",void 0),t([st({attribute:"action-menu-slot"})],ZO.prototype,"actionMenuSlot",void 0),t([st({attribute:"action-menu-label"})],ZO.prototype,"actionMenuLabel",void 0),t([st({attribute:"column-hidden",mode:"boolean"})],ZO.prototype,"columnHidden",void 0),t([st({attribute:"sort-index",converter:ot})],ZO.prototype,"sortIndex",void 0),t([st({attribute:"sort-direction"})],ZO.prototype,"sortDirection",void 0),t([st({attribute:"sorting-disabled",mode:"boolean"})],ZO.prototype,"sortingDisabled",void 0),t([g],ZO.prototype,"hasOverflow",void 0)
9943
+ class GO{constructor(){this.duplicateRecordId=!1,this.missingRecordId=!1,this.invalidRecordId=!1,this.duplicateColumnId=!1,this.missingColumnId=!1,this.duplicateSortIndex=!1,this.duplicateGroupIndex=!1,this.idFieldNameNotConfigured=!1,this.invalidColumnConfiguration=!1,this.invalidParentIdConfiguration=!1,this.recordIds=new Set}getValidity(){return{duplicateRecordId:this.duplicateRecordId,missingRecordId:this.missingRecordId,invalidRecordId:this.invalidRecordId,duplicateColumnId:this.duplicateColumnId,missingColumnId:this.missingColumnId,duplicateSortIndex:this.duplicateSortIndex,duplicateGroupIndex:this.duplicateGroupIndex,idFieldNameNotConfigured:this.idFieldNameNotConfigured,invalidColumnConfiguration:this.invalidColumnConfiguration,invalidParentIdConfiguration:this.invalidParentIdConfiguration}}isValid(){return Object.values(this.getValidity()).every((t=>!1===t))}areRecordIdsValid(){const t=this.getValidity()
9944
9944
  return!t.duplicateRecordId&&!t.missingRecordId&&!t.invalidRecordId}validateIdFieldConfiguration(t,e,n){const i=t!==OO.none||"string"==typeof n
9945
9945
  return this.idFieldNameNotConfigured=!!i&&"string"!=typeof e,!this.idFieldNameNotConfigured}validateRecordIds(t,e){if(this.duplicateRecordId=!1,this.missingRecordId=!1,this.invalidRecordId=!1,this.recordIds.clear(),"string"!=typeof e)return!0
9946
9946
  for(const n of t){if(!Object.prototype.hasOwnProperty.call(n,e)){this.missingRecordId=!0
@@ -9950,7 +9950,7 @@ const e=t.some((t=>t))
9950
9950
  if(!e)return!0
9951
9951
  const n=new Set
9952
9952
  for(const e of t)e?(n.has(e)&&(this.duplicateColumnId=!0),n.add(e)):this.missingColumnId=!0
9953
- return!this.missingColumnId&&!this.duplicateColumnId}validateColumnSortIndices(t){return this.duplicateSortIndex=!this.validateIndicesAreUnique(t),!this.duplicateSortIndex}validateColumnGroupIndices(t){return this.duplicateGroupIndex=!this.validateIndicesAreUnique(t),!this.duplicateGroupIndex}validateColumnConfigurations(t){return this.invalidColumnConfiguration=t.some((t=>!t.columnInternals.validConfiguration)),!this.invalidColumnConfiguration}getPresentRecordIds(t){return t.filter((t=>this.recordIds.has(t)))}getOptionsWithPresentIds(t){return t.filter((t=>this.recordIds.has(t.recordId)))}setParentIdConfigurationValidity(t){this.invalidParentIdConfiguration=!t}validateIndicesAreUnique(t){return new Set(t).size===t.length}}const ZO=yt`
9953
+ return!this.missingColumnId&&!this.duplicateColumnId}validateColumnSortIndices(t){return this.duplicateSortIndex=!this.validateIndicesAreUnique(t),!this.duplicateSortIndex}validateColumnGroupIndices(t){return this.duplicateGroupIndex=!this.validateIndicesAreUnique(t),!this.duplicateGroupIndex}validateColumnConfigurations(t){return this.invalidColumnConfiguration=t.some((t=>!t.columnInternals.validConfiguration)),!this.invalidColumnConfiguration}getPresentRecordIds(t){return t.filter((t=>this.recordIds.has(t)))}getOptionsWithPresentIds(t){return t.filter((t=>this.recordIds.has(t.recordId)))}setParentIdConfigurationValidity(t){this.invalidParentIdConfiguration=!t}validateIndicesAreUnique(t){return new Set(t).size===t.length}}const KO=yt`
9954
9954
  ${Ao("flex")}
9955
9955
 
9956
9956
  :host {
@@ -10132,7 +10132,7 @@ return!this.missingColumnId&&!this.duplicateColumnId}validateColumnSortIndices(t
10132
10132
  background-color: ${Sr(ir,.1)};
10133
10133
  position: absolute;
10134
10134
  }
10135
- `)),GO=yt`
10135
+ `)),JO=yt`
10136
10136
  ${Ao("flex")}
10137
10137
 
10138
10138
  :host {
@@ -10151,7 +10151,7 @@ return!this.missingColumnId&&!this.duplicateColumnId}validateColumnSortIndices(t
10151
10151
  .grouped-indicator {
10152
10152
  flex: 0 0 auto;
10153
10153
  }
10154
- `,KO=Z`
10154
+ `,XO=Z`
10155
10155
  <template role="columnheader"
10156
10156
  aria-sort="${t=>t.ariaSort}"
10157
10157
  ${""}
@@ -10183,10 +10183,10 @@ return!this.missingColumnId&&!this.duplicateColumnId}validateColumnSortIndices(t
10183
10183
  `)}
10184
10184
  </template>
10185
10185
  `
10186
- class JO extends Le{constructor(){super(...arguments),this.sortDirection=TO.none,this.firstSortedColumn=!1,this.isGrouped=!1}sortDirectionChanged(t,e){this.updateAriaSort()}firstSortedColumnChanged(t,e){this.updateAriaSort()}updateAriaSort(){this.firstSortedColumn&&this.sortDirection!==TO.none?this.sortDirection===TO.ascending?this.ariaSort="ascending":this.ariaSort="descending":this.ariaSort=null}}t([st({attribute:"sort-direction"})],JO.prototype,"sortDirection",void 0),t([st({attribute:"first-sorted-column",mode:"boolean"})],JO.prototype,"firstSortedColumn",void 0),t([g],JO.prototype,"isGrouped",void 0)
10187
- const XO=JO.compose({baseName:"table-header",template:KO,styles:GO})
10188
- bi.getOrCreate().withPrefix("nimble").register(XO())
10189
- const YO="nimble-table-header",QO=yt`
10186
+ class YO extends Le{constructor(){super(...arguments),this.sortDirection=TO.none,this.firstSortedColumn=!1,this.isGrouped=!1}sortDirectionChanged(t,e){this.updateAriaSort()}firstSortedColumnChanged(t,e){this.updateAriaSort()}updateAriaSort(){this.firstSortedColumn&&this.sortDirection!==TO.none?this.sortDirection===TO.ascending?this.ariaSort="ascending":this.ariaSort="descending":this.ariaSort=null}}t([st({attribute:"sort-direction"})],YO.prototype,"sortDirection",void 0),t([st({attribute:"first-sorted-column",mode:"boolean"})],YO.prototype,"firstSortedColumn",void 0),t([g],YO.prototype,"isGrouped",void 0)
10187
+ const QO=YO.compose({baseName:"table-header",template:XO,styles:JO})
10188
+ bi.getOrCreate().withPrefix("nimble").register(QO())
10189
+ const tR="nimble-table-header",eR=yt`
10190
10190
  :host .animating {
10191
10191
  transition: ${zd} ease-in;
10192
10192
  }
@@ -10209,8 +10209,8 @@ const YO="nimble-table-header",QO=yt`
10209
10209
  transition-duration: 0s;
10210
10210
  }
10211
10211
  }
10212
- `,tR=yt`
10213
- ${QO}
10212
+ `,nR=yt`
10213
+ ${eR}
10214
10214
  ${Ao("flex")}
10215
10215
 
10216
10216
  :host {
@@ -10330,7 +10330,7 @@ const YO="nimble-table-header",QO=yt`
10330
10330
  :host([selected]:hover)::before {
10331
10331
  background-color: ${Sr(ir,.2)};
10332
10332
  }
10333
- `)),eR=yt`
10333
+ `)),iR=yt`
10334
10334
  ${Ao("flex")}
10335
10335
 
10336
10336
  :host {
@@ -10360,7 +10360,7 @@ const YO="nimble-table-header",QO=yt`
10360
10360
  height: ${nl};
10361
10361
  align-self: center;
10362
10362
  }
10363
- `,nR=Z`
10363
+ `,oR=Z`
10364
10364
  <template role="cell" style="--ni-private-table-cell-nesting-level: ${t=>t.nestingLevel}">
10365
10365
  ${t=>t.cellViewTemplate}
10366
10366
  ${zt((t=>t.hasActionMenu),Z`
@@ -10380,10 +10380,10 @@ const YO="nimble-table-header",QO=yt`
10380
10380
  `)}
10381
10381
  </template>
10382
10382
  `
10383
- class iR extends Le{constructor(){super(...arguments),this.hasActionMenu=!1,this.menuOpen=!1,this.nestingLevel=0}onActionMenuBeforeToggle(t){this.$emit("cell-action-menu-beforetoggle",t.detail)}onActionMenuToggle(t){this.menuOpen=t.detail.newState,this.$emit("cell-action-menu-toggle",t.detail)}}t([g],iR.prototype,"cellState",void 0),t([g],iR.prototype,"column",void 0),t([g],iR.prototype,"recordId",void 0),t([st({attribute:"column-id"})],iR.prototype,"columnId",void 0),t([st({attribute:"has-action-menu",mode:"boolean"})],iR.prototype,"hasActionMenu",void 0),t([st({attribute:"menu-open",mode:"boolean"})],iR.prototype,"menuOpen",void 0),t([st({attribute:"action-menu-label"})],iR.prototype,"actionMenuLabel",void 0),t([g],iR.prototype,"cellViewTemplate",void 0),t([g],iR.prototype,"nestingLevel",void 0)
10384
- const oR=iR.compose({baseName:"table-cell",template:nR,styles:eR})
10385
- bi.getOrCreate().withPrefix("nimble").register(oR())
10386
- const rR="nimble-table-cell",sR=Z`
10383
+ class rR extends Le{constructor(){super(...arguments),this.hasActionMenu=!1,this.menuOpen=!1,this.nestingLevel=0}onActionMenuBeforeToggle(t){this.$emit("cell-action-menu-beforetoggle",t.detail)}onActionMenuToggle(t){this.menuOpen=t.detail.newState,this.$emit("cell-action-menu-toggle",t.detail)}}t([g],rR.prototype,"cellState",void 0),t([g],rR.prototype,"column",void 0),t([g],rR.prototype,"recordId",void 0),t([st({attribute:"column-id"})],rR.prototype,"columnId",void 0),t([st({attribute:"has-action-menu",mode:"boolean"})],rR.prototype,"hasActionMenu",void 0),t([st({attribute:"menu-open",mode:"boolean"})],rR.prototype,"menuOpen",void 0),t([st({attribute:"action-menu-label"})],rR.prototype,"actionMenuLabel",void 0),t([g],rR.prototype,"cellViewTemplate",void 0),t([g],rR.prototype,"nestingLevel",void 0)
10384
+ const sR=rR.compose({baseName:"table-cell",template:oR,styles:iR})
10385
+ bi.getOrCreate().withPrefix("nimble").register(sR())
10386
+ const aR="nimble-table-cell",lR=Z`
10387
10387
  <template
10388
10388
  role="row"
10389
10389
  aria-selected=${t=>t.ariaSelected}
@@ -10437,7 +10437,7 @@ const rR="nimble-table-cell",sR=Z`
10437
10437
  >
10438
10438
  ${jt((t=>t.columns),Z`
10439
10439
  ${zt((t=>!t.columnHidden),Z`
10440
- <${rR}
10440
+ <${aR}
10441
10441
  class="cell"
10442
10442
  :cellState="${(t,e)=>e.parent.cellStates[e.index]}"
10443
10443
  :cellViewTemplate="${t=>t.columnInternals.cellViewTemplate}"
@@ -10457,29 +10457,29 @@ const rR="nimble-table-cell",sR=Z`
10457
10457
  slot="cellActionMenu"
10458
10458
  ></slot>
10459
10459
  `)}
10460
- </${rR}>
10460
+ </${aR}>
10461
10461
  `)}
10462
10462
  `,{recycle:!1,positioning:!0})}
10463
10463
  </span>
10464
10464
  </template>
10465
10465
  `
10466
- class aR extends Le{constructor(){super(...arguments),this.selectable=!1,this.selected=!1,this.hideSelection=!1,this.expanded=!1,this.columnNotifiers=[],this.columns=[],this.nestingLevel=0,this.isParentRow=!1,this.menuOpen=!1,this.rowOperationGridCellHidden=!1,this.loading=!1,this.cellIndentLevels=[],this.cellStates=[],this.animationClass="",this.ignoreSelectionChangeEvents=!1,this.removeAnimatingClass=()=>{this.animationClass="",this.expandIcon?.removeEventListener("transitionend",this.removeAnimatingClass)}}get isTopLevelParentRow(){return this.isParentRow&&0===this.nestingLevel}get isNestedParent(){return this.isParentRow&&this.nestingLevel>0}get ariaSelected(){return this.selectable?this.selected?"true":"false":null}onSelectionChange(t){if(this.ignoreSelectionChangeEvents)return
10466
+ class cR extends Le{constructor(){super(...arguments),this.selectable=!1,this.selected=!1,this.hideSelection=!1,this.expanded=!1,this.columnNotifiers=[],this.columns=[],this.nestingLevel=0,this.isParentRow=!1,this.menuOpen=!1,this.rowOperationGridCellHidden=!1,this.loading=!1,this.cellIndentLevels=[],this.cellStates=[],this.animationClass="",this.ignoreSelectionChangeEvents=!1,this.removeAnimatingClass=()=>{this.animationClass="",this.expandIcon?.removeEventListener("transitionend",this.removeAnimatingClass)}}get isTopLevelParentRow(){return this.isParentRow&&0===this.nestingLevel}get isNestedParent(){return this.isParentRow&&this.nestingLevel>0}get ariaSelected(){return this.selectable?this.selected?"true":"false":null}onSelectionChange(t){if(this.ignoreSelectionChangeEvents)return
10467
10467
  const e=t.target.checked
10468
10468
  this.selected=e
10469
10469
  const n={oldState:!e,newState:e}
10470
- this.$emit("row-selection-toggle",n)}onCellActionMenuBeforeToggle(t,e){this.currentActionMenuColumn=e,this.emitActionMenuToggleEvent("row-action-menu-beforetoggle",t.detail,e)}onCellActionMenuToggle(t,e){this.menuOpen=t.detail.newState,this.emitActionMenuToggleEvent("row-action-menu-toggle",t.detail,e)}closeOpenActionMenus(){if(this.menuOpen){const t=Array.from(this.cellContainer.children).find((t=>t instanceof iR&&t.menuOpen))
10471
- t?.actionMenuButton?.open&&t.actionMenuButton.toggleButton.control.click()}}handleChange(t,e){t instanceof qO&&"string"==typeof e&&(UO(e,"columnConfig")||UO(e,"dataRecordFieldNames"))&&this.updateCellStates()}onRowExpandToggle(t){const e={oldState:this.expanded,newState:!this.expanded,recordId:this.recordId}
10470
+ this.$emit("row-selection-toggle",n)}onCellActionMenuBeforeToggle(t,e){this.currentActionMenuColumn=e,this.emitActionMenuToggleEvent("row-action-menu-beforetoggle",t.detail,e)}onCellActionMenuToggle(t,e){this.menuOpen=t.detail.newState,this.emitActionMenuToggleEvent("row-action-menu-toggle",t.detail,e)}closeOpenActionMenus(){if(this.menuOpen){const t=Array.from(this.cellContainer.children).find((t=>t instanceof rR&&t.menuOpen))
10471
+ t?.actionMenuButton?.open&&t.actionMenuButton.toggleButton.control.click()}}handleChange(t,e){t instanceof jO&&"string"==typeof e&&(WO(e,"columnConfig")||WO(e,"dataRecordFieldNames"))&&this.updateCellStates()}onRowExpandToggle(t){const e={oldState:this.expanded,newState:!this.expanded,recordId:this.recordId}
10472
10472
  this.$emit("row-expand-toggle",e),t.stopImmediatePropagation(),this.animationClass="animating",this.expandIcon?.addEventListener("transitionend",this.removeAnimatingClass)}emitActionMenuToggleEvent(t,e,n){const i={newState:e.newState,oldState:e.oldState,recordIds:[this.recordId],columnId:n.columnId}
10473
10473
  this.$emit(t,i)}columnsChanged(){this.updateCellIndentLevels(),this.updateCellStates(),this.observeColumns()}dataRecordChanged(){this.updateCellStates()}nestingLevelChanged(){this.updateCellIndentLevels()}updateCellIndentLevels(){this.cellIndentLevels=this.columns.map(((t,e)=>0===e?this.nestingLevel:0))}removeColumnObservers(){this.columnNotifiers.forEach((t=>{t.unsubscribe(this)})),this.columnNotifiers=[]}observeColumns(){this.removeColumnObservers(),this.columnNotifiers=this.columns.map((t=>{const e=m.getNotifier(t.columnInternals)
10474
10474
  return e.subscribe(this),e}))}updateCellStates(){this.cellStates=this.columns.map((t=>{const e=t.columnInternals.dataRecordFieldNames
10475
10475
  let n
10476
10476
  if(this.hasValidFieldNames(e)&&this.dataRecord){const i=e.map((t=>this.dataRecord[t]))
10477
- n={cellRecord:Object.fromEntries(t.columnInternals.cellRecordFieldNames.map(((t,e)=>[t,i[e]]))),columnConfig:t.columnInternals.columnConfig}}return n}))}hasValidFieldNames(t){return t.every((t=>void 0!==t))}selectedChanged(){this.setSelectionCheckboxState()}selectionCheckboxChanged(){this.setSelectionCheckboxState()}setSelectionCheckboxState(){this.selectionCheckbox&&(this.ignoreSelectionChangeEvents=!0,this.selectionCheckbox.checked=this.selected,this.ignoreSelectionChangeEvents=!1)}}t([st({attribute:"record-id"})],aR.prototype,"recordId",void 0),t([st({mode:"boolean"})],aR.prototype,"selectable",void 0),t([st({mode:"boolean"})],aR.prototype,"selected",void 0),t([st({attribute:"hide-selection",mode:"boolean"})],aR.prototype,"hideSelection",void 0),t([st({mode:"boolean"})],aR.prototype,"expanded",void 0),t([g],aR.prototype,"dataRecord",void 0),t([g],aR.prototype,"columns",void 0),t([g],aR.prototype,"currentActionMenuColumn",void 0),t([g],aR.prototype,"nestingLevel",void 0),t([st({attribute:"is-parent-row",mode:"boolean"})],aR.prototype,"isParentRow",void 0),t([st({attribute:"menu-open",mode:"boolean"})],aR.prototype,"menuOpen",void 0),t([st({attribute:"row-operation-grid-cell-hidden",mode:"boolean"})],aR.prototype,"rowOperationGridCellHidden",void 0),t([st({mode:"boolean"})],aR.prototype,"loading",void 0),t([g],aR.prototype,"cellIndentLevels",void 0),t([g],aR.prototype,"cellStates",void 0),t([g],aR.prototype,"selectionCheckbox",void 0),t([g],aR.prototype,"animationClass",void 0),t([v],aR.prototype,"isTopLevelParentRow",null),t([v],aR.prototype,"isNestedParent",null),t([v],aR.prototype,"ariaSelected",null)
10478
- const lR=aR.compose({baseName:"table-row",template:sR,styles:tR})
10479
- bi.getOrCreate().withPrefix("nimble").register(lR())
10480
- const cR="nimble-table-row",dR=yt`
10477
+ n={cellRecord:Object.fromEntries(t.columnInternals.cellRecordFieldNames.map(((t,e)=>[t,i[e]]))),columnConfig:t.columnInternals.columnConfig}}return n}))}hasValidFieldNames(t){return t.every((t=>void 0!==t))}selectedChanged(){this.setSelectionCheckboxState()}selectionCheckboxChanged(){this.setSelectionCheckboxState()}setSelectionCheckboxState(){this.selectionCheckbox&&(this.ignoreSelectionChangeEvents=!0,this.selectionCheckbox.checked=this.selected,this.ignoreSelectionChangeEvents=!1)}}t([st({attribute:"record-id"})],cR.prototype,"recordId",void 0),t([st({mode:"boolean"})],cR.prototype,"selectable",void 0),t([st({mode:"boolean"})],cR.prototype,"selected",void 0),t([st({attribute:"hide-selection",mode:"boolean"})],cR.prototype,"hideSelection",void 0),t([st({mode:"boolean"})],cR.prototype,"expanded",void 0),t([g],cR.prototype,"dataRecord",void 0),t([g],cR.prototype,"columns",void 0),t([g],cR.prototype,"currentActionMenuColumn",void 0),t([g],cR.prototype,"nestingLevel",void 0),t([st({attribute:"is-parent-row",mode:"boolean"})],cR.prototype,"isParentRow",void 0),t([st({attribute:"menu-open",mode:"boolean"})],cR.prototype,"menuOpen",void 0),t([st({attribute:"row-operation-grid-cell-hidden",mode:"boolean"})],cR.prototype,"rowOperationGridCellHidden",void 0),t([st({mode:"boolean"})],cR.prototype,"loading",void 0),t([g],cR.prototype,"cellIndentLevels",void 0),t([g],cR.prototype,"cellStates",void 0),t([g],cR.prototype,"selectionCheckbox",void 0),t([g],cR.prototype,"animationClass",void 0),t([v],cR.prototype,"isTopLevelParentRow",null),t([v],cR.prototype,"isNestedParent",null),t([v],cR.prototype,"ariaSelected",null)
10478
+ const dR=cR.compose({baseName:"table-row",template:lR,styles:nR})
10479
+ bi.getOrCreate().withPrefix("nimble").register(dR())
10480
+ const hR="nimble-table-row",uR=yt`
10481
10481
  ${Ao("grid")}
10482
- ${QO}
10482
+ ${eR}
10483
10483
 
10484
10484
  :host {
10485
10485
  align-items: center;
@@ -10562,7 +10562,7 @@ const cR="nimble-table-row",dR=yt`
10562
10562
  :host(:hover)::before {
10563
10563
  background-color: ${Sr(ir,.1)};
10564
10564
  }
10565
- `)),hR=Z`
10565
+ `)),pR=Z`
10566
10566
  <template
10567
10567
  role="row"
10568
10568
  @click=${t=>t.onGroupExpandToggle()}
@@ -10602,14 +10602,14 @@ const cR="nimble-table-row",dR=yt`
10602
10602
  </div>
10603
10603
  </template>
10604
10604
  `
10605
- class uR extends Le{constructor(){super(...arguments),this.nestingLevel=0,this.expanded=!1,this.selectable=!1,this.selectionState=RO,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(t){if(this.ignoreSelectionChangeEvents)return
10605
+ class fR extends Le{constructor(){super(...arguments),this.nestingLevel=0,this.expanded=!1,this.selectable=!1,this.selectionState=RO,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(t){if(this.ignoreSelectionChangeEvents)return
10606
10606
  const e=t.target.checked
10607
10607
  this.selectionState=e?FO:RO
10608
10608
  const n={oldState:!e,newState:e}
10609
- this.$emit("group-selection-toggle",n)}selectionStateChanged(){this.setSelectionCheckboxState()}selectionCheckboxChanged(){this.setSelectionCheckboxState()}setSelectionCheckboxState(){this.selectionCheckbox&&(this.ignoreSelectionChangeEvents=!0,this.selectionCheckbox.checked=this.selectionState===FO,this.selectionCheckbox.indeterminate=this.selectionState===NO,this.ignoreSelectionChangeEvents=!1)}}t([g],uR.prototype,"groupRowValue",void 0),t([g],uR.prototype,"nestingLevel",void 0),t([g],uR.prototype,"immediateChildCount",void 0),t([g],uR.prototype,"groupColumn",void 0),t([st({mode:"boolean"})],uR.prototype,"expanded",void 0),t([st({mode:"boolean"})],uR.prototype,"selectable",void 0),t([st({attribute:"selection-state"})],uR.prototype,"selectionState",void 0),t([g],uR.prototype,"selectionCheckbox",void 0),t([g],uR.prototype,"animationClass",void 0)
10610
- const pR=uR.compose({baseName:"table-group-row",template:hR,styles:dR})
10611
- bi.getOrCreate().withPrefix("nimble").register(pR())
10612
- const fR="nimble-table-group-row",mR=Z`
10609
+ this.$emit("group-selection-toggle",n)}selectionStateChanged(){this.setSelectionCheckboxState()}selectionCheckboxChanged(){this.setSelectionCheckboxState()}setSelectionCheckboxState(){this.selectionCheckbox&&(this.ignoreSelectionChangeEvents=!0,this.selectionCheckbox.checked=this.selectionState===FO,this.selectionCheckbox.indeterminate=this.selectionState===NO,this.ignoreSelectionChangeEvents=!1)}}t([g],fR.prototype,"groupRowValue",void 0),t([g],fR.prototype,"nestingLevel",void 0),t([g],fR.prototype,"immediateChildCount",void 0),t([g],fR.prototype,"groupColumn",void 0),t([st({mode:"boolean"})],fR.prototype,"expanded",void 0),t([st({mode:"boolean"})],fR.prototype,"selectable",void 0),t([st({attribute:"selection-state"})],fR.prototype,"selectionState",void 0),t([g],fR.prototype,"selectionCheckbox",void 0),t([g],fR.prototype,"animationClass",void 0)
10610
+ const mR=fR.compose({baseName:"table-group-row",template:pR,styles:uR})
10611
+ bi.getOrCreate().withPrefix("nimble").register(mR())
10612
+ const gR="nimble-table-group-row",vR=Z`
10613
10613
  <template
10614
10614
  role="treegrid"
10615
10615
  aria-multiselectable="${t=>t.ariaMultiSelectable}"
@@ -10672,7 +10672,7 @@ const fR="nimble-table-group-row",mR=Z`
10672
10672
  @mousedown="${(t,e)=>e.parent.onLeftDividerMouseDown(e.event,e.index)}">
10673
10673
  </div>
10674
10674
  `)}
10675
- <${YO}
10675
+ <${tR}
10676
10676
  class="header"
10677
10677
  sort-direction="${t=>"number"==typeof t.columnInternals.currentSortIndex?t.columnInternals.currentSortDirection:TO.none}"
10678
10678
  ?first-sorted-column="${(t,e)=>t===e.parent.firstSortedColumn}"
@@ -10680,7 +10680,7 @@ const fR="nimble-table-group-row",mR=Z`
10680
10680
  :isGrouped=${t=>"number"==typeof t.columnInternals.groupIndex&&!t.columnInternals.groupingDisabled}
10681
10681
  >
10682
10682
  <slot name="${t=>t.slot}"></slot>
10683
- </${YO}>
10683
+ </${tR}>
10684
10684
  ${zt(((t,e)=>e.index<e.length-1),Z`
10685
10685
  <div
10686
10686
  class="
@@ -10700,12 +10700,12 @@ const fR="nimble-table-group-row",mR=Z`
10700
10700
  </div>
10701
10701
  <div class="table-viewport" ${Ft("viewport")}>
10702
10702
  <div class="table-scroll"></div>
10703
- <div class="table-row-container" ${Xt({property:"rowElements",filter:Wt(cR)})}
10703
+ <div class="table-row-container" ${Xt({property:"rowElements",filter:Wt(hR)})}
10704
10704
  role="rowgroup">
10705
10705
  ${zt((t=>t.columns.length>0&&t.canRenderRows),Z`
10706
10706
  ${jt((t=>t.virtualizer.visibleItems),Z`
10707
10707
  ${zt(((t,e)=>e.parent.tableData[t.index]?.isGroupRow),Z`
10708
- <${fR}
10708
+ <${gR}
10709
10709
  class="group-row"
10710
10710
  :groupRowValue="${(t,e)=>e.parent.tableData[t.index]?.groupRowValue}"
10711
10711
  ?expanded="${(t,e)=>e.parent.tableData[t.index]?.isExpanded}"
@@ -10717,10 +10717,10 @@ const fR="nimble-table-group-row",mR=Z`
10717
10717
  @group-selection-toggle="${(t,e)=>e.parent.onRowSelectionToggle(t.index,e.event)}"
10718
10718
  @group-expand-toggle="${(t,e)=>e.parent.handleGroupRowExpanded(t.index,e.event)}"
10719
10719
  >
10720
- </${fR}>
10720
+ </${gR}>
10721
10721
  `)}
10722
10722
  ${zt(((t,e)=>!e.parent.tableData[t.index]?.isGroupRow),Z`
10723
- <${cR}
10723
+ <${hR}
10724
10724
  class="row"
10725
10725
  record-id="${(t,e)=>e.parent.tableData[t.index]?.id}"
10726
10726
  ?selectable="${(t,e)=>e.parent.selectionMode!==OO.none}"
@@ -10748,7 +10748,7 @@ const fR="nimble-table-group-row",mR=Z`
10748
10748
  </slot>
10749
10749
  `)}
10750
10750
  `)}
10751
- </${cR}>
10751
+ </${hR}>
10752
10752
  `)}
10753
10753
  `)}
10754
10754
  `)}
@@ -10758,7 +10758,7 @@ const fR="nimble-table-group-row",mR=Z`
10758
10758
  </div>
10759
10759
  </template>
10760
10760
  `
10761
- function gR(t,e,n){let i,o=n.initialDeps??[]
10761
+ function bR(t,e,n){let i,o=n.initialDeps??[]
10762
10762
  return()=>{var r,s,a,l
10763
10763
  let c
10764
10764
  n.key&&(null==(r=n.debug)?void 0:r.call(n))&&(c=Date.now())
@@ -10767,10 +10767,10 @@ if(!(d.length!==o.length||d.some(((t,e)=>o[e]!==t))))return i
10767
10767
  let h
10768
10768
  if(o=d,n.key&&(null==(s=n.debug)?void 0:s.call(n))&&(h=Date.now()),i=e(...d),n.key&&(null==(a=n.debug)?void 0:a.call(n))){const t=Math.round(100*(Date.now()-c))/100,e=Math.round(100*(Date.now()-h))/100,i=e/16,o=(t,e)=>{for(t=String(t);t.length<e;)t=" "+t
10769
10769
  return t}
10770
- console.info(`%c⏱ ${o(e,5)} /${o(t,5)} ms`,`\n font-size: .6rem;\n font-weight: bold;\n color: hsl(${Math.max(0,Math.min(120-120*i,120))}deg 100% 31%);`,null==n?void 0:n.key)}return null==(l=null==n?void 0:n.onChange)||l.call(n,i),i}}function vR(t,e){if(void 0===t)throw new Error("Unexpected undefined"+(e?`: ${e}`:""))
10771
- return t}const bR=t=>t,yR=t=>{const e=Math.max(t.startIndex-t.overscan,0),n=Math.min(t.endIndex+t.overscan,t.count-1),i=[]
10770
+ console.info(`%c⏱ ${o(e,5)} /${o(t,5)} ms`,`\n font-size: .6rem;\n font-weight: bold;\n color: hsl(${Math.max(0,Math.min(120-120*i,120))}deg 100% 31%);`,null==n?void 0:n.key)}return null==(l=null==n?void 0:n.onChange)||l.call(n,i),i}}function yR(t,e){if(void 0===t)throw new Error("Unexpected undefined"+(e?`: ${e}`:""))
10771
+ return t}const wR=t=>t,xR=t=>{const e=Math.max(t.startIndex-t.overscan,0),n=Math.min(t.endIndex+t.overscan,t.count-1),i=[]
10772
10772
  for(let t=e;t<=n;t++)i.push(t)
10773
- return i},wR=(t,e)=>{const n=t.scrollElement
10773
+ return i},CR=(t,e)=>{const n=t.scrollElement
10774
10774
  if(!n)return
10775
10775
  const i=t=>{const{width:n,height:i}=t
10776
10776
  e({width:Math.round(n),height:Math.round(i)})}
@@ -10778,46 +10778,46 @@ if(i(n.getBoundingClientRect()),"undefined"==typeof ResizeObserver)return()=>{}
10778
10778
  const o=new ResizeObserver((t=>{const e=t[0]
10779
10779
  if(null==e?void 0:e.borderBoxSize){const t=e.borderBoxSize[0]
10780
10780
  if(t)return void i({width:t.inlineSize,height:t.blockSize})}i(n.getBoundingClientRect())}))
10781
- return o.observe(n,{box:"border-box"}),()=>{o.unobserve(n)}},xR=(t,e)=>{const n=t.scrollElement
10781
+ return o.observe(n,{box:"border-box"}),()=>{o.unobserve(n)}},kR=(t,e)=>{const n=t.scrollElement
10782
10782
  if(!n)return
10783
10783
  const i=()=>{e(n[t.options.horizontal?"scrollLeft":"scrollTop"])}
10784
- return i(),n.addEventListener("scroll",i,{passive:!0}),()=>{n.removeEventListener("scroll",i)}},CR=(t,e,n)=>{if(null==e?void 0:e.borderBoxSize){const t=e.borderBoxSize[0]
10785
- if(t){return Math.round(t[n.options.horizontal?"inlineSize":"blockSize"])}}return Math.round(t.getBoundingClientRect()[n.options.horizontal?"width":"height"])},kR=(t,{adjustments:e=0,behavior:n},i)=>{var o,r
10784
+ return i(),n.addEventListener("scroll",i,{passive:!0}),()=>{n.removeEventListener("scroll",i)}},SR=(t,e,n)=>{if(null==e?void 0:e.borderBoxSize){const t=e.borderBoxSize[0]
10785
+ if(t){return Math.round(t[n.options.horizontal?"inlineSize":"blockSize"])}}return Math.round(t.getBoundingClientRect()[n.options.horizontal?"width":"height"])},$R=(t,{adjustments:e=0,behavior:n},i)=>{var o,r
10786
10786
  const s=t+e
10787
10787
  null==(r=null==(o=i.scrollElement)?void 0:o.scrollTo)||r.call(o,{[i.options.horizontal?"left":"top"]:s,behavior:n})}
10788
- let SR=class{constructor(t){this.unsubs=[],this.scrollElement=null,this.isScrolling=!1,this.isScrollingTimeoutId=null,this.scrollToIndexTimeoutId=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollDirection=null,this.scrollAdjustments=0,this.measureElementCache=new Map,this.observer=(()=>{let t=null
10788
+ let MR=class{constructor(t){this.unsubs=[],this.scrollElement=null,this.isScrolling=!1,this.isScrollingTimeoutId=null,this.scrollToIndexTimeoutId=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollDirection=null,this.scrollAdjustments=0,this.measureElementCache=new Map,this.observer=(()=>{let t=null
10789
10789
  const e=()=>t||("undefined"!=typeof ResizeObserver?t=new ResizeObserver((t=>{t.forEach((t=>{this._measureElement(t.target,t)}))})):null)
10790
10790
  return{disconnect:()=>{var t
10791
10791
  return null==(t=e())?void 0:t.disconnect()},observe:t=>{var n
10792
10792
  return null==(n=e())?void 0:n.observe(t,{box:"border-box"})},unobserve:t=>{var n
10793
- return null==(n=e())?void 0:n.unobserve(t)}}})(),this.range=null,this.setOptions=t=>{Object.entries(t).forEach((([e,n])=>{void 0===n&&delete t[e]})),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:bR,rangeExtractor:yR,onChange:()=>{},measureElement:CR,initialRect:{width:0,height:0},scrollMargin:0,scrollingDelay:150,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,...t}},this.notify=t=>{var e,n
10794
- null==(n=(e=this.options).onChange)||n.call(e,this,t)},this.maybeNotify=gR((()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null])),(t=>{this.notify(t)}),{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach((t=>t())),this.unsubs=[],this.scrollElement=null},this._didMount=()=>(this.measureElementCache.forEach(this.observer.observe),()=>{this.observer.disconnect(),this.cleanup()}),this._willUpdate=()=>{const t=this.options.getScrollElement()
10795
- this.scrollElement!==t&&(this.cleanup(),this.scrollElement=t,this._scrollToOffset(this.scrollOffset,{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,(t=>{this.scrollRect=t,this.maybeNotify()}))),this.unsubs.push(this.options.observeElementOffset(this,(t=>{this.scrollAdjustments=0,this.scrollOffset!==t&&(null!==this.isScrollingTimeoutId&&(clearTimeout(this.isScrollingTimeoutId),this.isScrollingTimeoutId=null),this.isScrolling=!0,this.scrollDirection=this.scrollOffset<t?"forward":"backward",this.scrollOffset=t,this.maybeNotify(),this.isScrollingTimeoutId=setTimeout((()=>{this.isScrollingTimeoutId=null,this.isScrolling=!1,this.scrollDirection=null,this.maybeNotify()}),this.options.scrollingDelay))}))))},this.getSize=()=>this.scrollRect[this.options.horizontal?"width":"height"],this.memoOptions=gR((()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey]),((t,e,n,i)=>(this.pendingMeasuredCacheIndexes=[],{count:t,paddingStart:e,scrollMargin:n,getItemKey:i})),{key:!1}),this.getFurthestMeasurement=(t,e)=>{const n=new Map,i=new Map
10793
+ return null==(n=e())?void 0:n.unobserve(t)}}})(),this.range=null,this.setOptions=t=>{Object.entries(t).forEach((([e,n])=>{void 0===n&&delete t[e]})),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:wR,rangeExtractor:xR,onChange:()=>{},measureElement:SR,initialRect:{width:0,height:0},scrollMargin:0,scrollingDelay:150,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,...t}},this.notify=t=>{var e,n
10794
+ null==(n=(e=this.options).onChange)||n.call(e,this,t)},this.maybeNotify=bR((()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null])),(t=>{this.notify(t)}),{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach((t=>t())),this.unsubs=[],this.scrollElement=null},this._didMount=()=>(this.measureElementCache.forEach(this.observer.observe),()=>{this.observer.disconnect(),this.cleanup()}),this._willUpdate=()=>{const t=this.options.getScrollElement()
10795
+ this.scrollElement!==t&&(this.cleanup(),this.scrollElement=t,this._scrollToOffset(this.scrollOffset,{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,(t=>{this.scrollRect=t,this.maybeNotify()}))),this.unsubs.push(this.options.observeElementOffset(this,(t=>{this.scrollAdjustments=0,this.scrollOffset!==t&&(null!==this.isScrollingTimeoutId&&(clearTimeout(this.isScrollingTimeoutId),this.isScrollingTimeoutId=null),this.isScrolling=!0,this.scrollDirection=this.scrollOffset<t?"forward":"backward",this.scrollOffset=t,this.maybeNotify(),this.isScrollingTimeoutId=setTimeout((()=>{this.isScrollingTimeoutId=null,this.isScrolling=!1,this.scrollDirection=null,this.maybeNotify()}),this.options.scrollingDelay))}))))},this.getSize=()=>this.scrollRect[this.options.horizontal?"width":"height"],this.memoOptions=bR((()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey]),((t,e,n,i)=>(this.pendingMeasuredCacheIndexes=[],{count:t,paddingStart:e,scrollMargin:n,getItemKey:i})),{key:!1}),this.getFurthestMeasurement=(t,e)=>{const n=new Map,i=new Map
10796
10796
  for(let o=e-1;o>=0;o--){const e=t[o]
10797
10797
  if(n.has(e.lane))continue
10798
10798
  const r=i.get(e.lane)
10799
- if(null==r||e.end>r.end?i.set(e.lane,e):e.end<r.end&&n.set(e.lane,!0),n.size===this.options.lanes)break}return i.size===this.options.lanes?Array.from(i.values()).sort(((t,e)=>t.end===e.end?t.index-e.index:t.end-e.end))[0]:void 0},this.getMeasurements=gR((()=>[this.memoOptions(),this.itemSizeCache]),(({count:t,paddingStart:e,scrollMargin:n,getItemKey:i},o)=>{const r=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0
10799
+ if(null==r||e.end>r.end?i.set(e.lane,e):e.end<r.end&&n.set(e.lane,!0),n.size===this.options.lanes)break}return i.size===this.options.lanes?Array.from(i.values()).sort(((t,e)=>t.end===e.end?t.index-e.index:t.end-e.end))[0]:void 0},this.getMeasurements=bR((()=>[this.memoOptions(),this.itemSizeCache]),(({count:t,paddingStart:e,scrollMargin:n,getItemKey:i},o)=>{const r=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0
10800
10800
  this.pendingMeasuredCacheIndexes=[]
10801
10801
  const s=this.measurementsCache.slice(0,r)
10802
10802
  for(let a=r;a<t;a++){const t=i(a),r=1===this.options.lanes?s[a-1]:this.getFurthestMeasurement(s,a),l=r?r.end:e+n,c=o.get(t),d="number"==typeof c?c:this.options.estimateSize(a),h=l+d,u=r?r.lane:a%this.options.lanes
10803
- s[a]={index:a,start:l,size:d,end:h,key:t,lane:u}}return this.measurementsCache=s,s}),{key:!1,debug:()=>this.options.debug}),this.calculateRange=gR((()=>[this.getMeasurements(),this.getSize(),this.scrollOffset]),((t,e,n)=>this.range=t.length>0&&e>0?function({measurements:t,outerSize:e,scrollOffset:n}){const i=t.length-1,o=e=>t[e].start,r=$R(0,i,o,n)
10803
+ s[a]={index:a,start:l,size:d,end:h,key:t,lane:u}}return this.measurementsCache=s,s}),{key:!1,debug:()=>this.options.debug}),this.calculateRange=bR((()=>[this.getMeasurements(),this.getSize(),this.scrollOffset]),((t,e,n)=>this.range=t.length>0&&e>0?function({measurements:t,outerSize:e,scrollOffset:n}){const i=t.length-1,o=e=>t[e].start,r=_R(0,i,o,n)
10804
10804
  let s=r
10805
10805
  for(;s<i&&t[s].end<n+e;)s++
10806
- return{startIndex:r,endIndex:s}}({measurements:t,outerSize:e,scrollOffset:n}):null),{key:!1,debug:()=>this.options.debug}),this.getIndexes=gR((()=>[this.options.rangeExtractor,this.calculateRange(),this.options.overscan,this.options.count]),((t,e,n,i)=>null===e?[]:t({...e,overscan:n,count:i})),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=t=>{const e=this.options.indexAttribute,n=t.getAttribute(e)
10806
+ return{startIndex:r,endIndex:s}}({measurements:t,outerSize:e,scrollOffset:n}):null),{key:!1,debug:()=>this.options.debug}),this.getIndexes=bR((()=>[this.options.rangeExtractor,this.calculateRange(),this.options.overscan,this.options.count]),((t,e,n,i)=>null===e?[]:t({...e,overscan:n,count:i})),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=t=>{const e=this.options.indexAttribute,n=t.getAttribute(e)
10807
10807
  return n?parseInt(n,10):(console.warn(`Missing attribute name '${e}={index}' on measured element.`),-1)},this._measureElement=(t,e)=>{const n=this.measurementsCache[this.indexFromElement(t)]
10808
10808
  if(!n||!t.isConnected)return void this.measureElementCache.forEach(((e,n)=>{e===t&&(this.observer.unobserve(t),this.measureElementCache.delete(n))}))
10809
10809
  const i=this.measureElementCache.get(n.key)
10810
10810
  i!==t&&(i&&this.observer.unobserve(i),this.observer.observe(t),this.measureElementCache.set(n.key,t))
10811
10811
  const o=this.options.measureElement(t,e,this)
10812
10812
  this.resizeItem(n,o)},this.resizeItem=(t,e)=>{const n=e-(this.itemSizeCache.get(t.key)??t.size)
10813
- 0!==n&&(t.start<this.scrollOffset+this.scrollAdjustments&&this._scrollToOffset(this.scrollOffset,{adjustments:this.scrollAdjustments+=n,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(t.index),this.itemSizeCache=new Map(this.itemSizeCache.set(t.key,e)),this.notify(!1))},this.measureElement=t=>{t&&this._measureElement(t,void 0)},this.getVirtualItems=gR((()=>[this.getIndexes(),this.getMeasurements()]),((t,e)=>{const n=[]
10813
+ 0!==n&&(t.start<this.scrollOffset+this.scrollAdjustments&&this._scrollToOffset(this.scrollOffset,{adjustments:this.scrollAdjustments+=n,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(t.index),this.itemSizeCache=new Map(this.itemSizeCache.set(t.key,e)),this.notify(!1))},this.measureElement=t=>{t&&this._measureElement(t,void 0)},this.getVirtualItems=bR((()=>[this.getIndexes(),this.getMeasurements()]),((t,e)=>{const n=[]
10814
10814
  for(let i=0,o=t.length;i<o;i++){const o=e[t[i]]
10815
10815
  n.push(o)}return n}),{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=t=>{const e=this.getMeasurements()
10816
- return vR(e[$R(0,e.length-1,(t=>vR(e[t]).start),t)])},this.getOffsetForAlignment=(t,e)=>{const n=this.getSize()
10816
+ return yR(e[_R(0,e.length-1,(t=>yR(e[t]).start),t)])},this.getOffsetForAlignment=(t,e)=>{const n=this.getSize()
10817
10817
  "auto"===e&&(e=t<=this.scrollOffset?"start":t>=this.scrollOffset+n?"end":"start"),"start"===e||("end"===e?t-=n:"center"===e&&(t-=n/2))
10818
10818
  const i=this.options.horizontal?"scrollWidth":"scrollHeight",o=(this.scrollElement?"document"in this.scrollElement?this.scrollElement.document.documentElement[i]:this.scrollElement[i]:0)-this.getSize()
10819
10819
  return Math.max(Math.min(o,t),0)},this.getOffsetForIndex=(t,e="auto")=>{t=Math.max(0,Math.min(t,this.options.count-1))
10820
- const n=vR(this.getMeasurements()[t])
10820
+ const n=yR(this.getMeasurements()[t])
10821
10821
  if("auto"===e)if(n.end>=this.scrollOffset+this.getSize()-this.options.scrollPaddingEnd)e="end"
10822
10822
  else{if(!(n.start<=this.scrollOffset+this.options.scrollPaddingStart))return[this.scrollOffset,e]
10823
10823
  e="start"}const i="end"===e?n.end+this.options.scrollPaddingEnd:n.start-this.options.scrollPaddingStart
@@ -10830,27 +10830,27 @@ var e,i})))},this.scrollBy=(t,{behavior:e}={})=>{this.cancelScrollToIndex(),"smo
10830
10830
  const e=this.getMeasurements()
10831
10831
  let n
10832
10832
  return n=0===e.length?this.options.paddingStart:1===this.options.lanes?(null==(t=e[e.length-1])?void 0:t.end)??0:Math.max(...e.slice(-this.options.lanes).map((t=>t.end))),n-this.options.scrollMargin+this.options.paddingEnd},this._scrollToOffset=(t,{adjustments:e,behavior:n})=>{this.options.scrollToFn(t,{behavior:n,adjustments:e},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(t),this.scrollRect=this.options.initialRect,this.scrollOffset=this.options.initialOffset,this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach((t=>{this.itemSizeCache.set(t.key,t.size)})),this.maybeNotify()}}
10833
- const $R=(t,e,n,i)=>{for(;t<=e;){const o=(t+e)/2|0,r=n(o)
10833
+ const _R=(t,e,n,i)=>{for(;t<=e;){const o=(t+e)/2|0,r=n(o)
10834
10834
  if(r<i)t=o+1
10835
10835
  else{if(!(r>i))return o
10836
10836
  e=o-1}}return t>0?t-1:0}
10837
- class MR{constructor(t,e){this.visibleItems=[],this.scrollHeight=0,this.headerContainerMarginRight=0,this.rowContainerYOffset=0,this.table=t,this.tanStackTable=e,this.viewportResizeObserver=new ResizeObserver((t=>{const e=t[0]?.borderBoxSize[0]
10837
+ class ER{constructor(t,e){this.visibleItems=[],this.scrollHeight=0,this.headerContainerMarginRight=0,this.rowContainerYOffset=0,this.table=t,this.tanStackTable=e,this.viewportResizeObserver=new ResizeObserver((t=>{const e=t[0]?.borderBoxSize[0]
10838
10838
  if(e){const t=e.inlineSize
10839
10839
  this.headerContainerMarginRight=t-this.table.viewport.clientWidth}}))}connect(){this.viewportResizeObserver.observe(this.table.viewport),this.updateVirtualizer(),this.table.viewport.scrollTo({top:this.virtualizer.scrollOffset})}disconnect(){this.viewportResizeObserver.disconnect()}dataChanged(){this.table.$fastController.isConnected&&this.updateVirtualizer()}updateVirtualizer(){const t=this.createVirtualizerOptions()
10840
- this.virtualizer?this.virtualizer.setOptions(t):this.virtualizer=new SR(t),this.virtualizer._willUpdate(),this.handleVirtualizerChange()}createVirtualizerOptions(){const t=parseFloat(el.getValueFor(this.table))+2*parseFloat(al.getValueFor(this.table))
10841
- return{count:this.tanStackTable.getRowModel().rows.length,getScrollElement:()=>this.table.viewport,estimateSize:e=>t,enableSmoothScroll:!0,overscan:3,scrollingDelay:5,scrollToFn:kR,observeElementOffset:xR,observeElementRect:wR,onChange:()=>this.handleVirtualizerChange()}}handleVirtualizerChange(){this.notifyFocusedCellRecycling()
10840
+ this.virtualizer?this.virtualizer.setOptions(t):this.virtualizer=new MR(t),this.virtualizer._willUpdate(),this.handleVirtualizerChange()}createVirtualizerOptions(){const t=parseFloat(el.getValueFor(this.table))+2*parseFloat(al.getValueFor(this.table))
10841
+ return{count:this.tanStackTable.getRowModel().rows.length,getScrollElement:()=>this.table.viewport,estimateSize:e=>t,enableSmoothScroll:!0,overscan:3,scrollingDelay:5,scrollToFn:$R,observeElementOffset:kR,observeElementRect:CR,onChange:()=>this.handleVirtualizerChange()}}handleVirtualizerChange(){this.notifyFocusedCellRecycling()
10842
10842
  const t=this.virtualizer
10843
10843
  this.visibleItems=t.getVirtualItems(),this.scrollHeight=t.getTotalSize()
10844
10844
  let e=0
10845
10845
  if(this.visibleItems.length>0){e=this.visibleItems[0].start}this.rowContainerYOffset=e}notifyFocusedCellRecycling(){let t=this.table.shadowRoot.activeElement
10846
- for(;null!==t&&!(t instanceof HO)&&t.shadowRoot;)t=t.shadowRoot.activeElement
10847
- if(t instanceof HO&&t.focusedRecycleCallback(),void 0!==this.table.openActionMenuRecordId){const t=this.table.rowElements.find((t=>t.recordId===this.table.openActionMenuRecordId))
10848
- t?.closeOpenActionMenus()}}}function _R(t){switch(t){case PO:return IR
10849
- case LO:return ER
10850
- default:return IR}}function ER(t,e,n){const i=t.getValue(n),o=e.getValue(n)
10851
- return"string"==typeof i&&"string"==typeof o?i.localeCompare(o):i===o?0:void 0===i||null===i&&void 0!==o?-1:1}function IR(t,e,n){const i=t.getValue(n),o=e.getValue(n)
10852
- return Object.is(i,o)?0:void 0===i?-1:void 0===o?1:null===i?-1:null===o?1:Number.isNaN(i)?-1:Number.isNaN(o)?1:0===i&&0===o?Object.is(i,-0)?-1:1:i>o?1:-1}t([g],MR.prototype,"visibleItems",void 0),t([g],MR.prototype,"scrollHeight",void 0),t([g],MR.prototype,"headerContainerMarginRight",void 0),t([g],MR.prototype,"rowContainerYOffset",void 0)
10853
- class DR{constructor(t){this.table=t,this.isColumnBeingSized=!1,this.visibleColumns=[],this.currentTotalDelta=0,this.dragStart=0,this.initialColumnWidths=[],this.onDividerMouseMove=t=>{const e=t
10846
+ for(;null!==t&&!(t instanceof qO)&&t.shadowRoot;)t=t.shadowRoot.activeElement
10847
+ if(t instanceof qO&&t.focusedRecycleCallback(),void 0!==this.table.openActionMenuRecordId){const t=this.table.rowElements.find((t=>t.recordId===this.table.openActionMenuRecordId))
10848
+ t?.closeOpenActionMenus()}}}function IR(t){switch(t){case PO:return AR
10849
+ case LO:return DR
10850
+ default:return AR}}function DR(t,e,n){const i=t.getValue(n),o=e.getValue(n)
10851
+ return"string"==typeof i&&"string"==typeof o?i.localeCompare(o):i===o?0:void 0===i||null===i&&void 0!==o?-1:1}function AR(t,e,n){const i=t.getValue(n),o=e.getValue(n)
10852
+ return Object.is(i,o)?0:void 0===i?-1:void 0===o?1:null===i?-1:null===o?1:Number.isNaN(i)?-1:Number.isNaN(o)?1:0===i&&0===o?Object.is(i,-0)?-1:1:i>o?1:-1}t([g],ER.prototype,"visibleItems",void 0),t([g],ER.prototype,"scrollHeight",void 0),t([g],ER.prototype,"headerContainerMarginRight",void 0),t([g],ER.prototype,"rowContainerYOffset",void 0)
10853
+ class TR{constructor(t){this.table=t,this.isColumnBeingSized=!1,this.visibleColumns=[],this.currentTotalDelta=0,this.dragStart=0,this.initialColumnWidths=[],this.onDividerMouseMove=t=>{const e=t
10854
10854
  for(let t=0;t<this.visibleColumns.length;t++)this.visibleColumns[t].columnInternals.currentPixelWidth=this.initialColumnWidths[t]?.initialPixelWidth
10855
10855
  this.currentTotalDelta=this.getAllowedSizeDelta(e.clientX-this.dragStart),this.performCascadeSizeLeft(this.leftColumnIndex,this.currentTotalDelta),this.performCascadeSizeRight(this.rightColumnIndex,this.currentTotalDelta)
10856
10856
  const n=this.getTotalColumnFixedWidth()-this.initialColumnTotalWidth
@@ -10874,10 +10874,10 @@ for(const t of this.visibleColumns)this.initialColumnWidths.push({initalColumnFr
10874
10874
  const t=this.gridSizedColumns.reduce(((t,e)=>t+e.columnInternals.currentPixelWidth),0),e=t/this.gridSizedColumns.length
10875
10875
  let n=0
10876
10876
  for(let t=0;t<this.visibleColumns.length&&n<this.gridSizedColumns.length;t++){const i=this.visibleColumns[t]
10877
- i===this.gridSizedColumns[n]&&(n+=1,i.columnInternals.currentFractionalWidth=i.columnInternals.currentPixelWidth/e,i.columnInternals.currentPixelWidth=void 0)}}getVisibleColumns(){return this.table.columns.filter((t=>!t.columnHidden))}getLeftColumnIndexFromDivider(t){return Math.floor(t/2)}}t([g],DR.prototype,"isColumnBeingSized",void 0),t([g],DR.prototype,"activeColumnIndex",void 0),t([g],DR.prototype,"activeColumnDivider",void 0)
10878
- const AR=(t,...e)=>{for(const n of e)if(t===n)return!0
10879
- return!1},TR=["rowIds","rowParentIds","groupRows","columnIds","columnSort","columnWidths","columnDefinition","actionMenuSlots","selectionMode"]
10880
- class OR extends aI{constructor(t){super(TR),this.table=t,this.updateQueued=!1}get updateRowIds(){return this.isTracked("rowIds")}get updateRowParentIds(){return this.isTracked("rowParentIds")}get updateGroupRows(){return this.isTracked("groupRows")}get updateColumnIds(){return this.isTracked("columnIds")}get updateColumnSort(){return this.isTracked("columnSort")}get updateColumnWidths(){return this.isTracked("columnWidths")}get updateColumnDefinition(){return this.isTracked("columnDefinition")}get updateActionMenuSlots(){return this.isTracked("actionMenuSlots")}get updateSelectionMode(){return this.isTracked("selectionMode")}get requiresTanStackUpdate(){return this.isTracked("rowIds")||this.isTracked("rowParentIds")||this.isTracked("columnSort")||this.isTracked("columnDefinition")||this.isTracked("groupRows")||this.isTracked("selectionMode")}get requiresTanStackDataReset(){return this.isTracked("rowIds")||this.isTracked("columnDefinition")||this.isTracked("rowParentIds")}trackAllStateChanged(){this.trackAll(),this.queueUpdate()}get hasPendingUpdates(){return this.updateQueued}trackColumnPropertyChanged(t){AR(t,"columnId")?this.track("columnIds"):UO(t,"operandDataRecordFieldName","sortOperation")?this.track("columnDefinition"):AR(t,"sortingDisabled")||UO(t,"currentSortDirection","currentSortIndex")?this.track("columnSort"):AR(t,"columnHidden")||UO(t,"currentFractionalWidth","currentPixelWidth","minPixelWidth")?this.track("columnWidths"):AR(t,"actionMenuSlot")?this.track("actionMenuSlots"):UO(t,"groupIndex","groupingDisabled")&&this.track("groupRows"),this.queueUpdate()}trackColumnInstancesChanged(){this.track("columnIds"),this.track("columnDefinition"),this.track("columnSort"),this.track("columnWidths"),this.track("actionMenuSlots"),this.track("groupRows"),this.queueUpdate()}trackIdFieldNameChanged(){this.track("rowIds"),this.queueUpdate()}trackParentIdFieldNameChanged(){this.track("rowParentIds"),this.queueUpdate()}trackSelectionModeChanged(){this.track("selectionMode"),this.queueUpdate()}queueUpdate(){this.table.$fastController.isConnected&&(this.updateQueued||(this.updateQueued=!0,u.queueUpdate((()=>{this.table.update(),this.untrackAll(),this.updateQueued=!1}))))}}class RR{constructor(t){this.tanStackTable=t}reset(){}toggleIsRowSelected(t,e){t.isGroupRow&&t.selectionState===FO?this.deselectAllLeafRows(t.id):this.tanStackTable.getRow(t.id).toggleSelected(e,{selectChildren:t.isGroupRow})}selectSingleRow(t){if(t.isGroupRow)throw new Error("function not intended to select grouped rows")
10877
+ i===this.gridSizedColumns[n]&&(n+=1,i.columnInternals.currentFractionalWidth=i.columnInternals.currentPixelWidth/e,i.columnInternals.currentPixelWidth=void 0)}}getVisibleColumns(){return this.table.columns.filter((t=>!t.columnHidden))}getLeftColumnIndexFromDivider(t){return Math.floor(t/2)}}t([g],TR.prototype,"isColumnBeingSized",void 0),t([g],TR.prototype,"activeColumnIndex",void 0),t([g],TR.prototype,"activeColumnDivider",void 0)
10878
+ const OR=(t,...e)=>{for(const n of e)if(t===n)return!0
10879
+ return!1},RR=["rowIds","rowParentIds","groupRows","columnIds","columnSort","columnWidths","columnDefinition","actionMenuSlots","selectionMode"]
10880
+ class FR extends aI{constructor(t){super(RR),this.table=t,this.updateQueued=!1}get updateRowIds(){return this.isTracked("rowIds")}get updateRowParentIds(){return this.isTracked("rowParentIds")}get updateGroupRows(){return this.isTracked("groupRows")}get updateColumnIds(){return this.isTracked("columnIds")}get updateColumnSort(){return this.isTracked("columnSort")}get updateColumnWidths(){return this.isTracked("columnWidths")}get updateColumnDefinition(){return this.isTracked("columnDefinition")}get updateActionMenuSlots(){return this.isTracked("actionMenuSlots")}get updateSelectionMode(){return this.isTracked("selectionMode")}get requiresTanStackUpdate(){return this.isTracked("rowIds")||this.isTracked("rowParentIds")||this.isTracked("columnSort")||this.isTracked("columnDefinition")||this.isTracked("groupRows")||this.isTracked("selectionMode")}get requiresTanStackDataReset(){return this.isTracked("rowIds")||this.isTracked("columnDefinition")||this.isTracked("rowParentIds")}trackAllStateChanged(){this.trackAll(),this.queueUpdate()}get hasPendingUpdates(){return this.updateQueued}trackColumnPropertyChanged(t){OR(t,"columnId")?this.track("columnIds"):WO(t,"operandDataRecordFieldName","sortOperation")?this.track("columnDefinition"):OR(t,"sortingDisabled")||WO(t,"currentSortDirection","currentSortIndex")?this.track("columnSort"):OR(t,"columnHidden")||WO(t,"currentFractionalWidth","currentPixelWidth","minPixelWidth")?this.track("columnWidths"):OR(t,"actionMenuSlot")?this.track("actionMenuSlots"):WO(t,"groupIndex","groupingDisabled")&&this.track("groupRows"),this.queueUpdate()}trackColumnInstancesChanged(){this.track("columnIds"),this.track("columnDefinition"),this.track("columnSort"),this.track("columnWidths"),this.track("actionMenuSlots"),this.track("groupRows"),this.queueUpdate()}trackIdFieldNameChanged(){this.track("rowIds"),this.queueUpdate()}trackParentIdFieldNameChanged(){this.track("rowParentIds"),this.queueUpdate()}trackSelectionModeChanged(){this.track("selectionMode"),this.queueUpdate()}queueUpdate(){this.table.$fastController.isConnected&&(this.updateQueued||(this.updateQueued=!0,u.queueUpdate((()=>{this.table.update(),this.untrackAll(),this.updateQueued=!1}))))}}class NR{constructor(t){this.tanStackTable=t}reset(){}toggleIsRowSelected(t,e){t.isGroupRow&&t.selectionState===FO?this.deselectAllLeafRows(t.id):this.tanStackTable.getRow(t.id).toggleSelected(e,{selectChildren:t.isGroupRow})}selectSingleRow(t){if(t.isGroupRow)throw new Error("function not intended to select grouped rows")
10881
10881
  const e=this.tanStackTable.getState().rowSelection,n=[]
10882
10882
  if(Object.entries(e).forEach((([t,e])=>{e&&n.push(t)})),1===n.length&&n[0]===t.id)return!1
10883
10883
  const i={}
@@ -10887,7 +10887,7 @@ this.tanStackTable.setRowSelection(i)}getAllLeafRowIds(t){const e=this.tanStackT
10887
10887
  return e?.getIsGrouped()?e.getLeafRows().filter((t=>!t.getIsGrouped())).map((t=>t.id)):[]}getAllOrderedRows(){const t=this.tanStackTable.getPreExpandedRowModel().rows
10888
10888
  return this.getOrderedRows(t)}getOrderedRows(t){const e=[]
10889
10889
  for(const n of t)e.push(n),n.subRows?.length&&e.push(...this.getOrderedRows(n.subRows))
10890
- return e}}class FR extends RR{handleRowSelectionToggle(t,e,n){return!1}handleRowClick(t,e,n){return!1}handleActionMenuOpening(t){return!1}}class NR extends RR{handleRowSelectionToggle(t,e,n){return n&&this.tryUpdateRangeSelection(t.id)||(this.shiftSelectStartRowId=t.id,this.previousShiftSelectRowEndId=void 0,this.toggleIsRowSelected(t,e)),!0}handleRowClick(t,e,n){return n?(this.shiftSelectStartRowId=t.id,this.previousShiftSelectRowEndId=void 0,this.toggleIsRowSelected(t),!0):!(!e||!this.tryUpdateRangeSelection(t.id))||(this.shiftSelectStartRowId=t.id,this.previousShiftSelectRowEndId=void 0,this.selectSingleRow(t))}handleActionMenuOpening(t){return t.selectionState!==FO&&this.selectSingleRow(t)}reset(){this.shiftSelectStartRowId=void 0,this.previousShiftSelectRowEndId=void 0}tryUpdateRangeSelection(t){if(void 0===this.shiftSelectStartRowId)return!1
10890
+ return e}}class PR extends NR{handleRowSelectionToggle(t,e,n){return!1}handleRowClick(t,e,n){return!1}handleActionMenuOpening(t){return!1}}class LR extends NR{handleRowSelectionToggle(t,e,n){return n&&this.tryUpdateRangeSelection(t.id)||(this.shiftSelectStartRowId=t.id,this.previousShiftSelectRowEndId=void 0,this.toggleIsRowSelected(t,e)),!0}handleRowClick(t,e,n){return n?(this.shiftSelectStartRowId=t.id,this.previousShiftSelectRowEndId=void 0,this.toggleIsRowSelected(t),!0):!(!e||!this.tryUpdateRangeSelection(t.id))||(this.shiftSelectStartRowId=t.id,this.previousShiftSelectRowEndId=void 0,this.selectSingleRow(t))}handleActionMenuOpening(t){return t.selectionState!==FO&&this.selectSingleRow(t)}reset(){this.shiftSelectStartRowId=void 0,this.previousShiftSelectRowEndId=void 0}tryUpdateRangeSelection(t){if(void 0===this.shiftSelectStartRowId)return!1
10891
10891
  const e=this.getAllOrderedRows(),n=this.getRowIndexForId(this.shiftSelectStartRowId,e)
10892
10892
  if(-1===n)return!1
10893
10893
  const i=this.tanStackTable.getState().rowSelection
@@ -10897,20 +10897,20 @@ this.updateSelectionStateForRange(t,n,o,i,!0)}updateSelectionStateForRange(t,e,n
10897
10897
  const r=Math.min(e,n),s=Math.max(e,n)
10898
10898
  for(let e=r;e<=s;e++){const n=i[e]
10899
10899
  n.getIsGrouped()||this.updateSelectionStateForRow(t,n.id,o)}const a=i[n]
10900
- a.getIsGrouped()&&this.getAllLeafRowIds(a.id).forEach((e=>this.updateSelectionStateForRow(t,e,o)))}updateSelectionStateForRow(t,e,n){n?t[e]=!0:delete t[e]}getRowIndexForId(t,e){return t?e.findIndex((e=>e.id===t)):-1}}class PR extends RR{handleRowSelectionToggle(t,e,n){return this.toggleIsRowSelected(t,e),!0}handleRowClick(t,e,n){return this.selectSingleRow(t)}handleActionMenuOpening(t){return this.handleRowClick(t,!1,!1)}}class LR{constructor(t,e){this.tanStackTable=t,this.selectionManager=this.createSelectionManager(e)}handleRowSelectionToggle(t,e,n){return!!t&&this.selectionManager.handleRowSelectionToggle(t,e,n)}handleRowClick(t,e,n){return!!t&&this.selectionManager.handleRowClick(t,e,n)}handleActionMenuOpening(t){return!!t&&this.selectionManager.handleActionMenuOpening(t)}handleSelectionModeChanged(t){this.selectionManager=this.createSelectionManager(t)}handleSelectionReset(){this.selectionManager.reset()}getCurrentSelectedRecordIds(){const t=this.tanStackTable.options.state.rowSelection
10900
+ a.getIsGrouped()&&this.getAllLeafRowIds(a.id).forEach((e=>this.updateSelectionStateForRow(t,e,o)))}updateSelectionStateForRow(t,e,n){n?t[e]=!0:delete t[e]}getRowIndexForId(t,e){return t?e.findIndex((e=>e.id===t)):-1}}class zR extends NR{handleRowSelectionToggle(t,e,n){return this.toggleIsRowSelected(t,e),!0}handleRowClick(t,e,n){return this.selectSingleRow(t)}handleActionMenuOpening(t){return this.handleRowClick(t,!1,!1)}}class VR{constructor(t,e){this.tanStackTable=t,this.selectionManager=this.createSelectionManager(e)}handleRowSelectionToggle(t,e,n){return!!t&&this.selectionManager.handleRowSelectionToggle(t,e,n)}handleRowClick(t,e,n){return!!t&&this.selectionManager.handleRowClick(t,e,n)}handleActionMenuOpening(t){return!!t&&this.selectionManager.handleActionMenuOpening(t)}handleSelectionModeChanged(t){this.selectionManager=this.createSelectionManager(t)}handleSelectionReset(){this.selectionManager.reset()}getCurrentSelectedRecordIds(){const t=this.tanStackTable.options.state.rowSelection
10901
10901
  if(!t)return[]
10902
10902
  const e=[]
10903
- return Object.entries(t).forEach((([t,n])=>{n&&e.push(t)})),e}createSelectionManager(t){switch(t){case OO.multiple:return new NR(this.tanStackTable)
10904
- case OO.single:return new PR(this.tanStackTable)
10905
- case OO.none:return new FR(this.tanStackTable)
10906
- default:throw new Error("unknown selection mode found")}}}function zR(t,e){const n=e,i=[],o={},r=new Set
10903
+ return Object.entries(t).forEach((([t,n])=>{n&&e.push(t)})),e}createSelectionManager(t){switch(t){case OO.multiple:return new LR(this.tanStackTable)
10904
+ case OO.single:return new zR(this.tanStackTable)
10905
+ case OO.none:return new PR(this.tanStackTable)
10906
+ default:throw new Error("unknown selection mode found")}}}function HR(t,e){const n=e,i=[],o={},r=new Set
10907
10907
  for(let e=0;e<t.length;e++){const s=t[e],a=s[n.id],l=s[n.parentId]
10908
10908
  Object.prototype.hasOwnProperty.call(o,a)||(o[a]={subRows:[],clientRecord:void 0,originalIndex:void 0}),r&&r.delete(a),o[a].clientRecord=s
10909
10909
  const c=o[a]
10910
10910
  c.originalIndex=e,null==l?i.push(c):(Object.prototype.hasOwnProperty.call(o,l)||(o[l]={subRows:[],clientRecord:void 0,originalIndex:void 0},r&&r.add(l)),o[l].subRows.push(c))}if(r?.size){const t=Array.from(r.values()).join(",")
10911
- throw new Error(`The items array contains orphans that point to the following parentIds: [${t}]. These parentIds do not exist in the items array.`)}if(VR(i)<Object.keys(o).length)throw new Error("The items array contains nodes with a circular parent/child relationship.")
10912
- return i}function VR(t){return t.reduce(((t,e)=>t+1+(e.subRows&&VR(e.subRows))),0)}class HR{constructor(t,e,n){if(this.isDataFlat=!1,"string"==typeof e&&"string"==typeof n)try{this._hierarchicalData=zR(t,{id:e,parentId:n}),this.isDataFlat=!1,this._parentIdConfigurationValid=!0}catch{this.isDataFlat=!0,this._hierarchicalData=t.map(((t,e)=>({clientRecord:{...t},originalIndex:e}))),this._parentIdConfigurationValid=!1}else this.isDataFlat=!0,this._hierarchicalData=t.map(((t,e)=>({clientRecord:{...t},originalIndex:e}))),this._parentIdConfigurationValid=!0}get hierarchicalData(){return this._hierarchicalData}get parentIdConfigurationValid(){return this._parentIdConfigurationValid}getAllRecords(t=!1){const e=[]
10913
- return this.getAllNodes(this._hierarchicalData,e),this.isDataFlat||!t?e.map((t=>t.clientRecord)):e.sort(((t,e)=>t.originalIndex-e.originalIndex)).map((t=>t.clientRecord))}getAllNodes(t,e){for(const n of t)e.push(n),n.subRows&&this.getAllNodes(n.subRows,e)}}class BR{constructor(t){this.tanStackTable=t,this.explicitExpansionStates=new Map,this.hierarchyOptions=new Map,this.isHierarchyEnabled=!1,this.parentRowsWithChildren=new Set}isRowExpanded(t){if(!this.isRowExpandable(t))return!1
10911
+ throw new Error(`The items array contains orphans that point to the following parentIds: [${t}]. These parentIds do not exist in the items array.`)}if(BR(i)<Object.keys(o).length)throw new Error("The items array contains nodes with a circular parent/child relationship.")
10912
+ return i}function BR(t){return t.reduce(((t,e)=>t+1+(e.subRows&&BR(e.subRows))),0)}class qR{constructor(t,e,n){if(this.isDataFlat=!1,"string"==typeof e&&"string"==typeof n)try{this._hierarchicalData=HR(t,{id:e,parentId:n}),this.isDataFlat=!1,this._parentIdConfigurationValid=!0}catch{this.isDataFlat=!0,this._hierarchicalData=t.map(((t,e)=>({clientRecord:{...t},originalIndex:e}))),this._parentIdConfigurationValid=!1}else this.isDataFlat=!0,this._hierarchicalData=t.map(((t,e)=>({clientRecord:{...t},originalIndex:e}))),this._parentIdConfigurationValid=!0}get hierarchicalData(){return this._hierarchicalData}get parentIdConfigurationValid(){return this._parentIdConfigurationValid}getAllRecords(t=!1){const e=[]
10913
+ return this.getAllNodes(this._hierarchicalData,e),this.isDataFlat||!t?e.map((t=>t.clientRecord)):e.sort(((t,e)=>t.originalIndex-e.originalIndex)).map((t=>t.clientRecord))}getAllNodes(t,e){for(const n of t)e.push(n),n.subRows&&this.getAllNodes(n.subRows,e)}}class UR{constructor(t){this.tanStackTable=t,this.explicitExpansionStates=new Map,this.hierarchyOptions=new Map,this.isHierarchyEnabled=!1,this.parentRowsWithChildren=new Set}isRowExpanded(t){if(!this.isRowExpandable(t))return!1
10914
10914
  return this.explicitExpansionStates.get(t.id)??this.getDefaultExpansionState(t)}toggleRowExpansion(t){if(!this.isRowExpandable(t))return
10915
10915
  const e=this.isRowExpanded(t)
10916
10916
  this.explicitExpansionStates.set(t.id,!e),t.toggleExpanded()}collapseAll(){this.resetExpansionState()
@@ -10925,7 +10925,7 @@ for(const{recordId:n,options:i}of t){e.set(n,i)
10925
10925
  const t=this.hierarchyOptions.get(n)?.delayedHierarchyState,o=i.delayedHierarchyState
10926
10926
  t!==AO||o!==DO||this.parentRowsWithChildren.has(n)||this.explicitExpansionStates.delete(n)}this.hierarchyOptions=e}isRowExpandable(t){return t.subRows.length>0||this.canLoadDelayedChildren(t.id)}setHierarchyEnabled(t){this.isHierarchyEnabled=t}isLoadingChildren(t){return!!this.isHierarchyEnabled&&(this.hierarchyOptions.get(t)?.delayedHierarchyState===AO??!1)}canLoadDelayedChildren(t){if(!this.isHierarchyEnabled)return!1
10927
10927
  const e=this.hierarchyOptions.get(t)?.delayedHierarchyState
10928
- return e!==IO}getDefaultExpansionState(t){return 0!==t.subRows.length}}class qR extends Le{get validity(){return this.tableValidator.getValidity()}get showRowOperationColumn(){return this.selectionMode===OO.multiple||this.showCollapseAll}constructor(){super(),this.selectionMode=OO.none,this.tableData=[],this.columns=[],this.childItems=[],this.rowElements=[],this.actionMenuSlots=[],this.canRenderRows=!0,this.scrollX=0,this.selectionState=RO,this.showCollapseAll=!1,this.visibleColumns=[],this.tableScrollableMinWidth=0,this.documentShiftKeyDown=!1,this.tableValidator=new WO,this.tableUpdateTracker=new OR(this),this.columnNotifiers=[],this.isInitialized=!1,this.ignoreSelectionChangeEvents=!1,this.onViewPortScroll=t=>{this.scrollX=t.target.scrollLeft},this.onKeyDown=t=>{t.key===fa&&(this.documentShiftKeyDown=!0)},this.onKeyUp=t=>{t.key===fa&&(this.documentShiftKeyDown=!1)},this.getRowCanExpand=t=>this.expansionManager.isRowExpandable(t),this.getIsRowExpanded=t=>this.expansionManager.isRowExpanded(t),this.handleRowSelectionChange=t=>{const e=t instanceof Function?t(this.table.getState().rowSelection):t
10928
+ return e!==IO}getDefaultExpansionState(t){return 0!==t.subRows.length}}class jR extends Le{get validity(){return this.tableValidator.getValidity()}get showRowOperationColumn(){return this.selectionMode===OO.multiple||this.showCollapseAll}constructor(){super(),this.selectionMode=OO.none,this.tableData=[],this.columns=[],this.childItems=[],this.rowElements=[],this.actionMenuSlots=[],this.canRenderRows=!0,this.scrollX=0,this.selectionState=RO,this.showCollapseAll=!1,this.visibleColumns=[],this.tableScrollableMinWidth=0,this.documentShiftKeyDown=!1,this.tableValidator=new GO,this.tableUpdateTracker=new FR(this),this.columnNotifiers=[],this.isInitialized=!1,this.ignoreSelectionChangeEvents=!1,this.onViewPortScroll=t=>{this.scrollX=t.target.scrollLeft},this.onKeyDown=t=>{t.key===fa&&(this.documentShiftKeyDown=!0)},this.onKeyUp=t=>{t.key===fa&&(this.documentShiftKeyDown=!1)},this.getRowCanExpand=t=>this.expansionManager.isRowExpandable(t),this.getIsRowExpanded=t=>this.expansionManager.isRowExpanded(t),this.handleRowSelectionChange=t=>{const e=t instanceof Function?t(this.table.getState().rowSelection):t
10929
10929
  this.updateTableOptions({state:{rowSelection:e}})},this.handleExpandedChange=t=>{const e=t instanceof Function?t(this.table.getState().expanded):t
10930
10930
  this.updateTableOptions({state:{expanded:e}})},this.options={data:[],onStateChange:t=>{},onRowSelectionChange:this.handleRowSelectionChange,onExpandedChange:this.handleExpandedChange,getCoreRowModel:t=>PT((()=>[t.options.data]),(e=>{const n={rows:[],flatRows:[],rowsById:{}},i=function(e,o,r){void 0===o&&(o=0)
10931
10931
  const s=[]
@@ -10945,11 +10945,11 @@ if(a.sortUndefined){const n=void 0===t.getValue(o.id),i=void 0===e.getValue(o.id
10945
10945
  o.push(t),null!=(e=t.subRows)&&e.length&&(t.subRows=a(t.subRows))})),e}
10946
10946
  return{rows:a(n.rows),flatRows:o,rowsById:n.rowsById}}),LT(t.options,"debugTable",0,(()=>t._autoResetPageIndex()))),getGroupedRowModel:EO(),getExpandedRowModel:t=>PT((()=>[t.getState().expanded,t.getPreExpandedRowModel(),t.options.paginateExpandedRows]),((t,e,n)=>!e.rows.length||!0!==t&&!Object.keys(null!=t?t:{}).length?e:n?function(t){const e=[],n=t=>{var i
10947
10947
  e.push(t),null!=(i=t.subRows)&&i.length&&t.getIsExpanded()&&t.subRows.forEach(n)}
10948
- return t.rows.forEach(n),{rows:e,flatRows:t.flatRows,rowsById:t.rowsById}}(e):e),LT(t.options,"debugTable")),getRowCanExpand:this.getRowCanExpand,getIsRowExpanded:this.getIsRowExpanded,getSubRows:t=>t.subRows,columns:[],state:{rowSelection:{},grouping:[],expanded:!0},enableRowSelection:t=>!t.getIsGrouped(),enableMultiRowSelection:!1,enableSubRowSelection:!1,enableSorting:!0,enableGrouping:!0,renderFallbackValue:null,autoResetAll:!1},this.table=MO(this.options),this.virtualizer=new MR(this,this.table),this.layoutManager=new DR(this),this.layoutManagerNotifier=m.getNotifier(this.layoutManager),this.layoutManagerNotifier.subscribe(this,"isColumnBeingSized"),this.selectionManager=new LR(this.table,this.selectionMode),this.expansionManager=new BR(this.table)}async setData(t){await this.processPendingUpdates()
10948
+ return t.rows.forEach(n),{rows:e,flatRows:t.flatRows,rowsById:t.rowsById}}(e):e),LT(t.options,"debugTable")),getRowCanExpand:this.getRowCanExpand,getIsRowExpanded:this.getIsRowExpanded,getSubRows:t=>t.subRows,columns:[],state:{rowSelection:{},grouping:[],expanded:!0},enableRowSelection:t=>!t.getIsGrouped(),enableMultiRowSelection:!1,enableSubRowSelection:!1,enableSorting:!0,enableGrouping:!0,renderFallbackValue:null,autoResetAll:!1},this.table=MO(this.options),this.virtualizer=new ER(this,this.table),this.layoutManager=new TR(this),this.layoutManagerNotifier=m.getNotifier(this.layoutManager),this.layoutManagerNotifier.subscribe(this,"isColumnBeingSized"),this.selectionManager=new VR(this.table,this.selectionMode),this.expansionManager=new UR(this.table)}async setData(t){await this.processPendingUpdates()
10949
10949
  const e=this.calculateTanStackData(t)
10950
10950
  this.updateTableOptions(e)}async getSelectedRecordIds(){return await this.processPendingUpdates(),this.selectionManager.getCurrentSelectedRecordIds()}async setSelectedRecordIds(t){await this.processPendingUpdates(),this.selectionMode!==OO.none&&this.updateTableOptions({state:{rowSelection:this.calculateTanStackSelectionState(t)}})}async setRecordHierarchyOptions(t){await this.processPendingUpdates()
10951
10951
  const e=structuredClone(t),n=this.tableValidator.getOptionsWithPresentIds(e)
10952
- this.expansionManager.setHierarchyOptions(n),this.refreshRows()}connectedCallback(){super.connectedCallback(),this.initialize(),this.virtualizer.connect(),this.viewport.addEventListener("scroll",this.onViewPortScroll,{passive:!0}),document.addEventListener("keydown",this.onKeyDown),document.addEventListener("keyup",this.onKeyUp)}disconnectedCallback(){super.disconnectedCallback(),this.virtualizer.disconnect(),this.viewport.removeEventListener("scroll",this.onViewPortScroll),document.removeEventListener("keydown",this.onKeyDown),document.removeEventListener("keyup",this.onKeyUp)}checkValidity(){return this.tableValidator.isValid()}handleChange(t,e){(t instanceof jO||t instanceof qO)&&"string"==typeof e?"validConfiguration"===e?this.tableValidator.validateColumnConfigurations(this.columns):this.tableUpdateTracker.trackColumnPropertyChanged(e):t instanceof DR&&"isColumnBeingSized"===e&&!this.layoutManager.isColumnBeingSized&&this.emitColumnConfigurationChangeEvent()}onRowSelectionToggle(t,e){e.stopImmediatePropagation()
10952
+ this.expansionManager.setHierarchyOptions(n),this.refreshRows()}connectedCallback(){super.connectedCallback(),this.initialize(),this.virtualizer.connect(),this.viewport.addEventListener("scroll",this.onViewPortScroll,{passive:!0}),document.addEventListener("keydown",this.onKeyDown),document.addEventListener("keyup",this.onKeyUp)}disconnectedCallback(){super.disconnectedCallback(),this.virtualizer.disconnect(),this.viewport.removeEventListener("scroll",this.onViewPortScroll),document.removeEventListener("keydown",this.onKeyDown),document.removeEventListener("keyup",this.onKeyUp)}checkValidity(){return this.tableValidator.isValid()}handleChange(t,e){(t instanceof ZO||t instanceof jO)&&"string"==typeof e?"validConfiguration"===e?this.tableValidator.validateColumnConfigurations(this.columns):this.tableUpdateTracker.trackColumnPropertyChanged(e):t instanceof TR&&"isColumnBeingSized"===e&&!this.layoutManager.isColumnBeingSized&&this.emitColumnConfigurationChangeEvent()}onRowSelectionToggle(t,e){e.stopImmediatePropagation()
10953
10953
  this.selectionManager.handleRowSelectionToggle(this.tableData[t],e.detail.newState,this.documentShiftKeyDown)&&this.emitSelectionChangeEvent()}onRowClick(t,e){return this.selectionManager.handleRowClick(this.tableData[t],e.shiftKey,e.ctrlKey||e.metaKey)&&this.emitSelectionChangeEvent(),!0}onAllRowsSelectionChange(t){t.stopPropagation(),this.ignoreSelectionChangeEvents||(this.table.toggleAllRowsSelected(this.selectionCheckbox.checked),this.emitSelectionChangeEvent())}onRowActionMenuBeforeToggle(t,e){e.stopImmediatePropagation(),this.handleActionMenuBeforeToggleEvent(t,e)}onRowActionMenuToggle(t){t.stopImmediatePropagation(),this.handleRowActionMenuToggleEvent(t)}handleCollapseAllRows(){this.expansionManager.collapseAll()}onRightDividerMouseDown(t,e){0===t.button&&this.layoutManager.beginColumnInteractiveSize(t.clientX,this.getRightDividerIndex(e))}onLeftDividerMouseDown(t,e){0===t.button&&this.layoutManager.beginColumnInteractiveSize(t.clientX,this.getLeftDividerIndex(e))}getLeftDividerIndex(t){return 2*t-1}getRightDividerIndex(t){return 2*t}handleGroupRowExpanded(t,e){this.toggleRowExpanded(t),e.stopPropagation()}handleRowExpanded(t){this.toggleRowExpanded(t)}toggleColumnSort(t,e){if(t.sortingDisabled)return
10954
10954
  const n=this.getColumnsParticipatingInSorting().sort(((t,e)=>t.columnInternals.currentSortIndex-e.columnInternals.currentSortIndex)),i=n.indexOf(t),o=i>-1,r=t.columnInternals.currentSortDirection
10955
10955
  let s=TO.ascending
@@ -10957,7 +10957,7 @@ o?r===TO.descending?(n.splice(i,1),s=TO.none,t.columnInternals.currentSortIndex=
10957
10957
  for(let i=0;i<n.length;i++){const o=n[i]
10958
10958
  e?n[i].columnInternals.currentSortIndex=i:o===t?o.columnInternals.currentSortIndex=0:(o.columnInternals.currentSortIndex=void 0,o.columnInternals.currentSortDirection=TO.none)}this.emitColumnConfigurationChangeEvent()}update(){this.validate(),this.tableUpdateTracker.requiresTanStackUpdate&&this.updateTanStack(),this.tableUpdateTracker.updateActionMenuSlots&&this.updateActionMenuSlots(),this.tableUpdateTracker.updateColumnWidths&&(this.rowGridColumns=this.layoutManager.getGridTemplateColumns(),this.visibleColumns=this.columns.filter((t=>!t.columnHidden)))}get ariaMultiSelectable(){switch(this.selectionMode){case OO.multiple:return"true"
10959
10959
  case OO.single:return"false"
10960
- default:return null}}getHeaderContainerElements(){return this.columnHeadersContainer.querySelectorAll(".header-container")}calculateTanStackData(t){this.dataHierarchyManager=new HR(t,this.idFieldName,this.parentIdFieldName)
10960
+ default:return null}}getHeaderContainerElements(){return this.columnHeadersContainer.querySelectorAll(".header-container")}calculateTanStackData(t){this.dataHierarchyManager=new qR(t,this.idFieldName,this.parentIdFieldName)
10961
10961
  const e=this.dataHierarchyManager.hierarchicalData
10962
10962
  this.tableValidator.setParentIdConfigurationValidity(this.dataHierarchyManager.parentIdConfigurationValid)
10963
10963
  const n={data:e}
@@ -10970,7 +10970,7 @@ return{...t.detail,recordIds:e}}removeColumnObservers(){this.columnNotifiers.for
10970
10970
  for(const t of this.columns){const e=m.getNotifier(t)
10971
10971
  e.subscribe(this),this.columnNotifiers.push(e)
10972
10972
  const n=m.getNotifier(t.columnInternals)
10973
- n.subscribe(this),this.columnNotifiers.push(n)}}getColumnsParticipatingInSorting(){return this.columns.filter((t=>!t.sortingDisabled&&t.columnInternals.currentSortDirection!==TO.none&&"number"==typeof t.columnInternals.currentSortIndex))}getColumnsParticipatingInGrouping(){return this.columns.filter((t=>!t.columnInternals.groupingDisabled&&"number"==typeof t.columnInternals.groupIndex))}childItemsChanged(){this.updateColumnsFromChildItems()}async updateColumnsFromChildItems(){await hI(this.childItems),this.columns=this.childItems.filter((t=>t instanceof jO))}updateTanStack(){const t={state:{}}
10973
+ n.subscribe(this),this.columnNotifiers.push(n)}}getColumnsParticipatingInSorting(){return this.columns.filter((t=>!t.sortingDisabled&&t.columnInternals.currentSortDirection!==TO.none&&"number"==typeof t.columnInternals.currentSortIndex))}getColumnsParticipatingInGrouping(){return this.columns.filter((t=>!t.columnInternals.groupingDisabled&&"number"==typeof t.columnInternals.groupIndex))}childItemsChanged(){this.updateColumnsFromChildItems()}async updateColumnsFromChildItems(){await hI(this.childItems),this.columns=this.childItems.filter((t=>t instanceof ZO))}updateTanStack(){const t={state:{}}
10974
10974
  if(this.tableUpdateTracker.updateColumnSort&&(t.state.sorting=this.calculateTanStackSortState()),this.tableUpdateTracker.updateColumnDefinition&&(t.columns=this.calculateTanStackColumns()),this.tableUpdateTracker.updateRowIds&&(t.getRowId=this.calculateTanStackRowIdFunction(),t.state.rowSelection={},this.selectionManager.handleSelectionReset(),this.expansionManager.resetHierarchyOptions()),this.tableUpdateTracker.updateRowParentIds&&this.expansionManager.setHierarchyEnabled(this.isHierarchyEnabled()),this.tableUpdateTracker.updateSelectionMode&&(t.enableMultiRowSelection=this.selectionMode===OO.multiple,t.enableSubRowSelection=this.selectionMode===OO.multiple,t.state.rowSelection={},this.selectionManager.handleSelectionModeChanged(this.selectionMode)),this.dataHierarchyManager&&this.tableUpdateTracker.requiresTanStackDataReset)if(this.parentIdFieldName||this.tableUpdateTracker.updateRowParentIds){const e=this.dataHierarchyManager.getAllRecords(!0),n=this.calculateTanStackData(e)
10975
10975
  n.state&&(t.state.rowSelection=n.state.rowSelection),t.data=n.data}else t.data=[...this.table.options.data]
10976
10976
  this.tableUpdateTracker.updateGroupRows&&(t.state.grouping=this.calculateTanStackGroupingState()),(this.tableUpdateTracker.updateRowIds||this.tableUpdateTracker.updateRowParentIds||this.tableUpdateTracker.updateGroupRows)&&(t.state.expanded=!0,this.expansionManager.resetExpansionState()),this.updateTableOptions(t)}updateActionMenuSlots(){const t=new Set
@@ -10989,13 +10989,13 @@ if(void 0!==e)return this.columns.find((t=>t.columnInternals.uniqueId===e))}upda
10989
10989
  this.expansionManager.processDataUpdate(t)}this.refreshRows()}toggleRowExpanded(t){const e=this.table.getRowModel().rows[t]
10990
10990
  this.expansionManager.toggleRowExpansion(e)}calculateTanStackSortState(){const t=this.getColumnsParticipatingInSorting().sort(((t,e)=>t.columnInternals.currentSortIndex-e.columnInternals.currentSortIndex))
10991
10991
  return this.firstSortedColumn=t.length?t[0]:void 0,t.map((t=>({id:t.columnInternals.uniqueId,desc:t.columnInternals.currentSortDirection===TO.descending})))}calculateTanStackGroupingState(){return this.getColumnsParticipatingInGrouping().sort(((t,e)=>t.columnInternals.groupIndex-e.columnInternals.groupIndex)).map((t=>t.columnInternals.uniqueId))}calculateTanStackRowIdFunction(){return null===this.idFieldName||void 0===this.idFieldName?void 0:t=>t.clientRecord[this.idFieldName]}calculateTanStackColumns(){return this.columns.map((t=>({id:t.columnInternals.uniqueId,accessorFn:e=>{const n=t.columnInternals.operandDataRecordFieldName
10992
- if("string"==typeof n)return e.clientRecord[n]},sortingFn:_R(t.columnInternals.sortOperation),sortUndefined:!1})))}calculateTanStackSelectionState(t){if(this.selectionMode===OO.none)return{}
10992
+ if("string"==typeof n)return e.clientRecord[n]},sortingFn:IR(t.columnInternals.sortOperation),sortUndefined:!1})))}calculateTanStackSelectionState(t){if(this.selectionMode===OO.none)return{}
10993
10993
  const e={},n=this.tableValidator.getPresentRecordIds(t)
10994
10994
  for(const t of n)if(e[t]=!0,this.selectionMode===OO.single)break
10995
- return e}}t([st({attribute:"id-field-name"})],qR.prototype,"idFieldName",void 0),t([st({attribute:"parent-id-field-name"})],qR.prototype,"parentIdFieldName",void 0),t([st({attribute:"selection-mode"})],qR.prototype,"selectionMode",void 0),t([g],qR.prototype,"tableData",void 0),t([g],qR.prototype,"columns",void 0),t([g],qR.prototype,"childItems",void 0),t([g],qR.prototype,"rowElements",void 0),t([g],qR.prototype,"actionMenuSlots",void 0),t([g],qR.prototype,"openActionMenuRecordId",void 0),t([g],qR.prototype,"canRenderRows",void 0),t([g],qR.prototype,"scrollX",void 0),t([g],qR.prototype,"rowGridColumns",void 0),t([g],qR.prototype,"selectionState",void 0),t([g],qR.prototype,"selectionCheckbox",void 0),t([g],qR.prototype,"showCollapseAll",void 0),t([g],qR.prototype,"firstSortedColumn",void 0),t([g],qR.prototype,"visibleColumns",void 0),t([g],qR.prototype,"tableScrollableMinWidth",void 0),t([g],qR.prototype,"documentShiftKeyDown",void 0)
10996
- const UR=qR.compose({baseName:"table",template:mR,styles:ZO})
10997
- bi.getOrCreate().withPrefix("nimble").register(UR())
10998
- const jR=yt`
10995
+ return e}}t([st({attribute:"id-field-name"})],jR.prototype,"idFieldName",void 0),t([st({attribute:"parent-id-field-name"})],jR.prototype,"parentIdFieldName",void 0),t([st({attribute:"selection-mode"})],jR.prototype,"selectionMode",void 0),t([g],jR.prototype,"tableData",void 0),t([g],jR.prototype,"columns",void 0),t([g],jR.prototype,"childItems",void 0),t([g],jR.prototype,"rowElements",void 0),t([g],jR.prototype,"actionMenuSlots",void 0),t([g],jR.prototype,"openActionMenuRecordId",void 0),t([g],jR.prototype,"canRenderRows",void 0),t([g],jR.prototype,"scrollX",void 0),t([g],jR.prototype,"rowGridColumns",void 0),t([g],jR.prototype,"selectionState",void 0),t([g],jR.prototype,"selectionCheckbox",void 0),t([g],jR.prototype,"showCollapseAll",void 0),t([g],jR.prototype,"firstSortedColumn",void 0),t([g],jR.prototype,"visibleColumns",void 0),t([g],jR.prototype,"tableScrollableMinWidth",void 0),t([g],jR.prototype,"documentShiftKeyDown",void 0)
10996
+ const WR=jR.compose({baseName:"table",template:vR,styles:KO})
10997
+ bi.getOrCreate().withPrefix("nimble").register(WR())
10998
+ const ZR=yt`
10999
10999
  :host {
11000
11000
  display: contents;
11001
11001
  }
@@ -11005,14 +11005,14 @@ const jR=yt`
11005
11005
  overflow: hidden;
11006
11006
  text-overflow: ellipsis;
11007
11007
  }
11008
- `,WR=Z`<span
11008
+ `,GR=Z`<span
11009
11009
  ${cg("hasOverflow")}
11010
11010
  class="header-content"
11011
11011
  title=${t=>t.hasOverflow&&t.headerTextContent?t.headerTextContent:null}
11012
11012
  >
11013
11013
  <slot ${Ft("contentSlot")}></slot>
11014
11014
  </span>`
11015
- function ZR(t){class e extends t{fractionalWidthChanged(){"number"==typeof this.fractionalWidth?this.columnInternals.fractionalWidth=this.fractionalWidth:this.columnInternals.fractionalWidth=1}minPixelWidthChanged(){"number"==typeof this.minPixelWidth?this.columnInternals.minPixelWidth=this.minPixelWidth:this.columnInternals.minPixelWidth=117}}return st({attribute:"fractional-width",converter:ot})(e.prototype,"fractionalWidth"),st({attribute:"min-pixel-width",converter:ot})(e.prototype,"minPixelWidth"),e}function GR(t){class e extends t{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 st({attribute:"grouping-disabled",mode:"boolean"})(e.prototype,"groupingDisabled"),st({attribute:"group-index",converter:ot})(e.prototype,"groupIndex"),e}function KR(t){class e extends t{}return st({attribute:"placeholder"})(e.prototype,"placeholder"),e}const JR=yt`
11015
+ function KR(t){class e extends t{fractionalWidthChanged(){"number"==typeof this.fractionalWidth?this.columnInternals.fractionalWidth=this.fractionalWidth:this.columnInternals.fractionalWidth=VO}minPixelWidthChanged(){"number"==typeof this.minPixelWidth?this.columnInternals.minPixelWidth=this.minPixelWidth:this.columnInternals.minPixelWidth=zO}}return st({attribute:"fractional-width",converter:ot})(e.prototype,"fractionalWidth"),st({attribute:"min-pixel-width",converter:ot})(e.prototype,"minPixelWidth"),e}function JR(t){class e extends t{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 st({attribute:"grouping-disabled",mode:"boolean"})(e.prototype,"groupingDisabled"),st({attribute:"group-index",converter:ot})(e.prototype,"groupIndex"),e}function XR(t){class e extends t{}return st({attribute:"placeholder"})(e.prototype,"placeholder"),e}const YR=yt`
11016
11016
  :host {
11017
11017
  width: fit-content;
11018
11018
  max-width: 100%;
@@ -11038,7 +11038,7 @@ function ZR(t){class e extends t{fractionalWidthChanged(){"number"==typeof this.
11038
11038
  font: ${yc};
11039
11039
  color: ${wc};
11040
11040
  }
11041
- `,XR=Z`
11041
+ `,QR=Z`
11042
11042
  <template
11043
11043
  @click="${(t,e)=>("string"==typeof t.cellRecord?.href&&e.event.stopPropagation(),!0)}"
11044
11044
  class="${t=>t.isPlaceholder?"placeholder":""}"
@@ -11070,19 +11070,19 @@ function ZR(t){class e extends t{fractionalWidthChanged(){"number"==typeof this.
11070
11070
  </span>`)}
11071
11071
  </template>
11072
11072
  `
11073
- class YR extends HO{constructor(){super(...arguments),this.hasOverflow=!1,this.isPlaceholder=!1}get text(){const t=this.cellRecord?.label??this.cellRecord?.href
11074
- return null==t&&this.columnConfig?.placeholder?(this.isPlaceholder=!0,this.columnConfig.placeholder):(this.isPlaceholder=!1,"string"==typeof this.cellRecord?.label?this.cellRecord.label:"string"==typeof this.cellRecord?.href?this.cellRecord.href:"")}focusedRecycleCallback(){this.anchor?.blur()}}t([g],YR.prototype,"hasOverflow",void 0),t([g],YR.prototype,"isPlaceholder",void 0),t([v],YR.prototype,"text",null)
11075
- const QR=YR.compose({baseName:"table-column-anchor-cell-view",template:XR,styles:JR})
11076
- bi.getOrCreate().withPrefix("nimble").register(QR())
11077
- class tF extends zO{constructor(){super(...arguments),this.hasOverflow=!1,this.text=vv.getValueFor(this),this.noValuePlaceholderLabelSubscriber={handleChange:()=>{this.applyPlaceholderTextIfNeeded()}},this.emptyPlaceholderLabelSubscriber={handleChange:()=>{this.applyPlaceholderTextIfNeeded()}}}connectedCallback(){super.connectedCallback(),vv.subscribe(this.noValuePlaceholderLabelSubscriber,this),bv.subscribe(this.emptyPlaceholderLabelSubscriber,this),this.applyPlaceholderTextIfNeeded()}disconnectedCallback(){super.disconnectedCallback(),vv.unsubscribe(this.noValuePlaceholderLabelSubscriber),bv.unsubscribe(this.emptyPlaceholderLabelSubscriber)}columnConfigChanged(){this.applyPlaceholderTextIfNeeded()||this.updateText()}groupHeaderValueChanged(){this.applyPlaceholderTextIfNeeded()||this.updateText()}applyPlaceholderTextIfNeeded(){return null===this.groupHeaderValue||void 0===this.groupHeaderValue?(this.text=vv.getValueFor(this),!0):""===this.groupHeaderValue&&(this.text=bv.getValueFor(this),!0)}}t([g],tF.prototype,"hasOverflow",void 0),t([g],tF.prototype,"text",void 0)
11078
- const eF=Z`
11073
+ class tF extends qO{constructor(){super(...arguments),this.hasOverflow=!1,this.isPlaceholder=!1}get text(){const t=this.cellRecord?.label??this.cellRecord?.href
11074
+ return null==t&&this.columnConfig?.placeholder?(this.isPlaceholder=!0,this.columnConfig.placeholder):(this.isPlaceholder=!1,"string"==typeof this.cellRecord?.label?this.cellRecord.label:"string"==typeof this.cellRecord?.href?this.cellRecord.href:"")}focusedRecycleCallback(){this.anchor?.blur()}}t([g],tF.prototype,"hasOverflow",void 0),t([g],tF.prototype,"isPlaceholder",void 0),t([v],tF.prototype,"text",null)
11075
+ const eF=tF.compose({baseName:"table-column-anchor-cell-view",template:QR,styles:YR})
11076
+ bi.getOrCreate().withPrefix("nimble").register(eF())
11077
+ class nF extends HO{constructor(){super(...arguments),this.hasOverflow=!1,this.text=vv.getValueFor(this),this.noValuePlaceholderLabelSubscriber={handleChange:()=>{this.applyPlaceholderTextIfNeeded()}},this.emptyPlaceholderLabelSubscriber={handleChange:()=>{this.applyPlaceholderTextIfNeeded()}}}connectedCallback(){super.connectedCallback(),vv.subscribe(this.noValuePlaceholderLabelSubscriber,this),bv.subscribe(this.emptyPlaceholderLabelSubscriber,this),this.applyPlaceholderTextIfNeeded()}disconnectedCallback(){super.disconnectedCallback(),vv.unsubscribe(this.noValuePlaceholderLabelSubscriber),bv.unsubscribe(this.emptyPlaceholderLabelSubscriber)}columnConfigChanged(){this.applyPlaceholderTextIfNeeded()||this.updateText()}groupHeaderValueChanged(){this.applyPlaceholderTextIfNeeded()||this.updateText()}applyPlaceholderTextIfNeeded(){return null===this.groupHeaderValue||void 0===this.groupHeaderValue?(this.text=vv.getValueFor(this),!0):""===this.groupHeaderValue&&(this.text=bv.getValueFor(this),!0)}}t([g],nF.prototype,"hasOverflow",void 0),t([g],nF.prototype,"text",void 0)
11078
+ const iF=Z`
11079
11079
  <span
11080
11080
  ${cg("hasOverflow")}
11081
11081
  title="${t=>t.hasOverflow&&t.text?t.text:null}"
11082
11082
  >
11083
11083
  ${t=>t.text}
11084
11084
  </span>
11085
- `,nF=yt`
11085
+ `,oF=yt`
11086
11086
  span {
11087
11087
  font: ${_c};
11088
11088
  color: ${Ec};
@@ -11091,20 +11091,20 @@ const eF=Z`
11091
11091
  text-overflow: ellipsis;
11092
11092
  }
11093
11093
  `
11094
- const iF=class extends tF{updateText(){this.text="string"==typeof this.groupHeaderValue?this.groupHeaderValue:""}}.compose({baseName:"table-column-text-group-header-view",template:eF,styles:nF})
11095
- bi.getOrCreate().withPrefix("nimble").register(iF())
11096
- const oF="nimble-table-column-text-group-header-view"
11097
- class rF extends(GR(ZR(KR(jO)))){constructor(){super(...arguments),this.underlineHidden=!1}placeholderChanged(){this.updateColumnConfig()}getColumnInternalsOptions(){return{cellRecordFieldNames:["label","href"],cellViewTag:"nimble-table-column-anchor-cell-view",groupHeaderViewTag:oF,delegatedEvents:["click"],sortOperation:LO}}labelFieldNameChanged(){this.columnInternals.dataRecordFieldNames=[this.labelFieldName,this.hrefFieldName],this.columnInternals.operandDataRecordFieldName=this.labelFieldName}hrefFieldNameChanged(){this.columnInternals.dataRecordFieldNames=[this.labelFieldName,this.hrefFieldName]}appearanceChanged(){this.updateColumnConfig()}underlineHiddenChanged(){this.updateColumnConfig()}hreflangChanged(){this.updateColumnConfig()}pingChanged(){this.updateColumnConfig()}referrerpolicyChanged(){this.updateColumnConfig()}relChanged(){this.updateColumnConfig()}targetChanged(){this.updateColumnConfig()}typeChanged(){this.updateColumnConfig()}downloadChanged(){this.updateColumnConfig()}updateColumnConfig(){this.columnInternals.columnConfig={appearance:this.appearance,underlineHidden:this.underlineHidden,hreflang:this.hreflang,ping:this.ping,referrerpolicy:this.referrerpolicy,rel:this.rel,target:this.target,type:this.type,download:this.download,placeholder:this.placeholder}}}t([st({attribute:"label-field-name"})],rF.prototype,"labelFieldName",void 0),t([st({attribute:"href-field-name"})],rF.prototype,"hrefFieldName",void 0),t([st],rF.prototype,"appearance",void 0),t([st({attribute:"underline-hidden",mode:"boolean"})],rF.prototype,"underlineHidden",void 0),t([st],rF.prototype,"hreflang",void 0),t([st],rF.prototype,"ping",void 0),t([st],rF.prototype,"referrerpolicy",void 0),t([st],rF.prototype,"rel",void 0),t([st],rF.prototype,"target",void 0),t([st],rF.prototype,"type",void 0),t([st],rF.prototype,"download",void 0)
11098
- const sF=rF.compose({baseName:"table-column-anchor",template:WR,styles:jR})
11099
- bi.getOrCreate().withPrefix("nimble").register(sF())
11100
- class aF extends(GR(ZR(KR(jO)))){fieldNameChanged(){this.columnInternals.dataRecordFieldNames=[this.fieldName],this.columnInternals.operandDataRecordFieldName=this.fieldName}}function lF(t,e){if("number"!=typeof e)return""
11101
- try{return t.format(e)}catch(t){return""}}t([st({attribute:"field-name"})],aF.prototype,"fieldName",void 0)
11102
- const cF=class extends tF{updateText(){this.columnConfig?this.text=lF(this.columnConfig.formatter,this.groupHeaderValue):this.text=""}}.compose({baseName:"table-column-date-text-group-header-view",template:eF,styles:nF})
11103
- bi.getOrCreate().withPrefix("nimble").register(cF())
11104
- const dF="left",hF="right",uF=Z`
11094
+ const rF=class extends nF{updateText(){this.text="string"==typeof this.groupHeaderValue?this.groupHeaderValue:""}}.compose({baseName:"table-column-text-group-header-view",template:iF,styles:oF})
11095
+ bi.getOrCreate().withPrefix("nimble").register(rF())
11096
+ const sF="nimble-table-column-text-group-header-view"
11097
+ class aF extends(JR(KR(XR(ZO)))){constructor(){super(...arguments),this.underlineHidden=!1}placeholderChanged(){this.updateColumnConfig()}getColumnInternalsOptions(){return{cellRecordFieldNames:["label","href"],cellViewTag:"nimble-table-column-anchor-cell-view",groupHeaderViewTag:sF,delegatedEvents:["click"],sortOperation:LO}}labelFieldNameChanged(){this.columnInternals.dataRecordFieldNames=[this.labelFieldName,this.hrefFieldName],this.columnInternals.operandDataRecordFieldName=this.labelFieldName}hrefFieldNameChanged(){this.columnInternals.dataRecordFieldNames=[this.labelFieldName,this.hrefFieldName]}appearanceChanged(){this.updateColumnConfig()}underlineHiddenChanged(){this.updateColumnConfig()}hreflangChanged(){this.updateColumnConfig()}pingChanged(){this.updateColumnConfig()}referrerpolicyChanged(){this.updateColumnConfig()}relChanged(){this.updateColumnConfig()}targetChanged(){this.updateColumnConfig()}typeChanged(){this.updateColumnConfig()}downloadChanged(){this.updateColumnConfig()}updateColumnConfig(){this.columnInternals.columnConfig={appearance:this.appearance,underlineHidden:this.underlineHidden,hreflang:this.hreflang,ping:this.ping,referrerpolicy:this.referrerpolicy,rel:this.rel,target:this.target,type:this.type,download:this.download,placeholder:this.placeholder}}}t([st({attribute:"label-field-name"})],aF.prototype,"labelFieldName",void 0),t([st({attribute:"href-field-name"})],aF.prototype,"hrefFieldName",void 0),t([st],aF.prototype,"appearance",void 0),t([st({attribute:"underline-hidden",mode:"boolean"})],aF.prototype,"underlineHidden",void 0),t([st],aF.prototype,"hreflang",void 0),t([st],aF.prototype,"ping",void 0),t([st],aF.prototype,"referrerpolicy",void 0),t([st],aF.prototype,"rel",void 0),t([st],aF.prototype,"target",void 0),t([st],aF.prototype,"type",void 0),t([st],aF.prototype,"download",void 0)
11098
+ const lF=aF.compose({baseName:"table-column-anchor",template:GR,styles:ZR})
11099
+ bi.getOrCreate().withPrefix("nimble").register(lF())
11100
+ class cF extends ZO{fieldNameChanged(){this.columnInternals.dataRecordFieldNames=[this.fieldName],this.columnInternals.operandDataRecordFieldName=this.fieldName}}function dF(t){return JR(KR(XR(t)))}function hF(t,e){if("number"!=typeof e)return""
11101
+ try{return t.format(e)}catch(t){return""}}t([st({attribute:"field-name"})],cF.prototype,"fieldName",void 0)
11102
+ const uF=class extends nF{updateText(){this.columnConfig?this.text=hF(this.columnConfig.formatter,this.groupHeaderValue):this.text=""}}.compose({baseName:"table-column-date-text-group-header-view",template:iF,styles:oF})
11103
+ bi.getOrCreate().withPrefix("nimble").register(uF())
11104
+ const pF="left",fF="right",mF=Z`
11105
11105
  <template
11106
11106
  class="
11107
- ${t=>t.alignment===hF?"right-align":""}
11107
+ ${t=>t.alignment===fF?"right-align":""}
11108
11108
  ${t=>t.isPlaceholder?"placeholder":""}
11109
11109
  "
11110
11110
  >
@@ -11115,7 +11115,7 @@ const dF="left",hF="right",uF=Z`
11115
11115
  ${t=>t.text}
11116
11116
  </span>
11117
11117
  </template>
11118
- `,pF=yt`
11118
+ `,gF=yt`
11119
11119
  :host(.right-align) {
11120
11120
  margin-left: auto;
11121
11121
  }
@@ -11133,23 +11133,23 @@ const dF="left",hF="right",uF=Z`
11133
11133
  color: ${wc};
11134
11134
  }
11135
11135
  `
11136
- class fF extends HO{constructor(){super(...arguments),this.hasOverflow=!1,this.text="",this.alignment=dF,this.isPlaceholder=!1}columnConfigChanged(){this.applyPlaceholderTextIfNeeded()||this.updateText()}cellRecordChanged(){this.applyPlaceholderTextIfNeeded()||this.updateText()}applyPlaceholderTextIfNeeded(){const t=this.cellRecord?.value,e=this.columnConfig?.placeholder
11137
- return"string"==typeof e&&null==t?(this.text=e,this.isPlaceholder=!0):this.isPlaceholder=!1,this.isPlaceholder}}t([g],fF.prototype,"hasOverflow",void 0),t([g],fF.prototype,"text",void 0),t([g],fF.prototype,"alignment",void 0),t([g],fF.prototype,"isPlaceholder",void 0)
11138
- const mF=class extends fF{updateText(){this.columnConfig?this.text=lF(this.columnConfig.formatter,this.cellRecord?.value):this.text=""}}.compose({baseName:"table-column-date-text-cell-view",template:uF,styles:pF})
11139
- bi.getOrCreate().withPrefix("nimble").register(mF())
11140
- const gF=void 0
11141
- class vF extends sI{isValid(){return this.noneTracked()}getValidationFlags(){return this.getTrackedItems()}}class bF extends vF{constructor(t,e){super(e),this.columnInternals=t}getValidity(){return this.getValidationFlags()}setConditionValue(t,e){e?this.track(t):this.untrack(t),this.updateColumnInternalsFlag()}updateColumnInternalsFlag(){this.columnInternals.validConfiguration=this.isValid()}}const yF=["invalidCustomOptionsCombination"]
11142
- class wF extends bF{constructor(t){super(t,yF)}setCustomOptionsValidity(t){this.setConditionValue("invalidCustomOptionsCombination",!t)}}const xF={toView:t=>"boolean"==typeof t?t.toString():null,fromView:t=>"true"===t||!0===t||"false"!==t&&!1!==t&&void 0}
11143
- class CF extends aF{constructor(){super(...arguments),this.validator=new wF(this.columnInternals),this.langSubscriber={handleChange:()=>{this.updateColumnConfig()}}}connectedCallback(){super.connectedCallback(),$a.subscribe(this.langSubscriber,this),this.updateColumnConfig()}disconnectedCallback(){super.disconnectedCallback(),$a.unsubscribe(this.langSubscriber,this)}get validity(){return this.validator.getValidity()}placeholderChanged(){this.updateColumnConfig()}getColumnInternalsOptions(){return{cellRecordFieldNames:["value"],cellViewTag:"nimble-table-column-date-text-cell-view",groupHeaderViewTag:"nimble-table-column-date-text-group-header-view",delegatedEvents:[],sortOperation:PO}}formatChanged(){this.updateColumnConfig()}customLocaleMatcherChanged(){this.updateColumnConfig()}customWeekdayChanged(){this.updateColumnConfig()}customEraChanged(){this.updateColumnConfig()}customYearChanged(){this.updateColumnConfig()}customMonthChanged(){this.updateColumnConfig()}customDayChanged(){this.updateColumnConfig()}customHourChanged(){this.updateColumnConfig()}customMinuteChanged(){this.updateColumnConfig()}customSecondChanged(){this.updateColumnConfig()}customTimeZoneNameChanged(){this.updateColumnConfig()}customFormatMatcherChanged(){this.updateColumnConfig()}customHour12Changed(){this.updateColumnConfig()}customTimeZoneChanged(){this.updateColumnConfig()}customCalendarChanged(){this.updateColumnConfig()}customDayPeriodChanged(){this.updateColumnConfig()}customNumberingSystemChanged(){this.updateColumnConfig()}customDateStyleChanged(){this.updateColumnConfig()}customTimeStyleChanged(){this.updateColumnConfig()}customHourCycleChanged(){this.updateColumnConfig()}updateColumnConfig(){const t=this.createFormatter()
11136
+ class vF extends qO{constructor(){super(...arguments),this.hasOverflow=!1,this.text="",this.alignment=pF,this.isPlaceholder=!1}columnConfigChanged(){this.applyPlaceholderTextIfNeeded()||this.updateText()}cellRecordChanged(){this.applyPlaceholderTextIfNeeded()||this.updateText()}applyPlaceholderTextIfNeeded(){const t=this.cellRecord?.value,e=this.columnConfig?.placeholder
11137
+ return"string"==typeof e&&null==t?(this.text=e,this.isPlaceholder=!0):this.isPlaceholder=!1,this.isPlaceholder}}t([g],vF.prototype,"hasOverflow",void 0),t([g],vF.prototype,"text",void 0),t([g],vF.prototype,"alignment",void 0),t([g],vF.prototype,"isPlaceholder",void 0)
11138
+ const bF=class extends vF{updateText(){this.columnConfig?this.text=hF(this.columnConfig.formatter,this.cellRecord?.value):this.text=""}}.compose({baseName:"table-column-date-text-cell-view",template:mF,styles:gF})
11139
+ bi.getOrCreate().withPrefix("nimble").register(bF())
11140
+ const yF=void 0
11141
+ class wF extends sI{isValid(){return this.noneTracked()}getValidationFlags(){return this.getTrackedItems()}}class xF extends wF{constructor(t,e){super(e),this.columnInternals=t}getValidity(){return this.getValidationFlags()}setConditionValue(t,e){e?this.track(t):this.untrack(t),this.updateColumnInternalsFlag()}updateColumnInternalsFlag(){this.columnInternals.validConfiguration=this.isValid()}}const CF=["invalidCustomOptionsCombination"]
11142
+ class kF extends xF{constructor(t){super(t,CF)}setCustomOptionsValidity(t){this.setConditionValue("invalidCustomOptionsCombination",!t)}}const SF={toView:t=>"boolean"==typeof t?t.toString():null,fromView:t=>"true"===t||!0===t||"false"!==t&&!1!==t&&void 0}
11143
+ class $F extends(dF(cF)){constructor(){super(...arguments),this.validator=new kF(this.columnInternals),this.langSubscriber={handleChange:()=>{this.updateColumnConfig()}}}connectedCallback(){super.connectedCallback(),$a.subscribe(this.langSubscriber,this),this.updateColumnConfig()}disconnectedCallback(){super.disconnectedCallback(),$a.unsubscribe(this.langSubscriber,this)}get validity(){return this.validator.getValidity()}placeholderChanged(){this.updateColumnConfig()}getColumnInternalsOptions(){return{cellRecordFieldNames:["value"],cellViewTag:"nimble-table-column-date-text-cell-view",groupHeaderViewTag:"nimble-table-column-date-text-group-header-view",delegatedEvents:[],sortOperation:PO}}formatChanged(){this.updateColumnConfig()}customLocaleMatcherChanged(){this.updateColumnConfig()}customWeekdayChanged(){this.updateColumnConfig()}customEraChanged(){this.updateColumnConfig()}customYearChanged(){this.updateColumnConfig()}customMonthChanged(){this.updateColumnConfig()}customDayChanged(){this.updateColumnConfig()}customHourChanged(){this.updateColumnConfig()}customMinuteChanged(){this.updateColumnConfig()}customSecondChanged(){this.updateColumnConfig()}customTimeZoneNameChanged(){this.updateColumnConfig()}customFormatMatcherChanged(){this.updateColumnConfig()}customHour12Changed(){this.updateColumnConfig()}customTimeZoneChanged(){this.updateColumnConfig()}customCalendarChanged(){this.updateColumnConfig()}customDayPeriodChanged(){this.updateColumnConfig()}customNumberingSystemChanged(){this.updateColumnConfig()}customDateStyleChanged(){this.updateColumnConfig()}customTimeStyleChanged(){this.updateColumnConfig()}customHourCycleChanged(){this.updateColumnConfig()}updateColumnConfig(){const t=this.createFormatter()
11144
11144
  if(t){const e={formatter:t,placeholder:this.placeholder}
11145
11145
  this.columnInternals.columnConfig=e,this.validator.setCustomOptionsValidity(!0)}else this.columnInternals.columnConfig=void 0,this.validator.setCustomOptionsValidity(!1)}createFormatter(){let t
11146
- t=this.format===gF?{dateStyle:"medium",timeStyle:"medium"}:this.getCustomFormattingOptions()
11147
- try{return new Intl.DateTimeFormat($a.getValueFor(this),t)}catch(t){return}}getCustomFormattingOptions(){return{localeMatcher:this.customLocaleMatcher??void 0,weekday:this.customWeekday??void 0,era:this.customEra??void 0,year:this.customYear??void 0,month:this.customMonth??void 0,day:this.customDay??void 0,hour:this.customHour??void 0,minute:this.customMinute??void 0,second:this.customSecond??void 0,timeZoneName:this.customTimeZoneName??void 0,formatMatcher:this.customFormatMatcher??void 0,hour12:this.customHour12??void 0,timeZone:this.customTimeZone??void 0,calendar:this.customCalendar??void 0,dayPeriod:this.customDayPeriod??void 0,numberingSystem:this.customNumberingSystem??void 0,dateStyle:this.customDateStyle??void 0,timeStyle:this.customTimeStyle??void 0,hourCycle:this.customHourCycle??void 0}}}t([st],CF.prototype,"format",void 0),t([st({attribute:"custom-locale-matcher"})],CF.prototype,"customLocaleMatcher",void 0),t([st({attribute:"custom-weekday"})],CF.prototype,"customWeekday",void 0),t([st({attribute:"custom-era"})],CF.prototype,"customEra",void 0),t([st({attribute:"custom-year"})],CF.prototype,"customYear",void 0),t([st({attribute:"custom-month"})],CF.prototype,"customMonth",void 0),t([st({attribute:"custom-day"})],CF.prototype,"customDay",void 0),t([st({attribute:"custom-hour"})],CF.prototype,"customHour",void 0),t([st({attribute:"custom-minute"})],CF.prototype,"customMinute",void 0),t([st({attribute:"custom-second"})],CF.prototype,"customSecond",void 0),t([st({attribute:"custom-time-zone-name"})],CF.prototype,"customTimeZoneName",void 0),t([st({attribute:"custom-format-matcher"})],CF.prototype,"customFormatMatcher",void 0),t([st({attribute:"custom-hour12",converter:xF})],CF.prototype,"customHour12",void 0),t([st({attribute:"custom-time-zone"})],CF.prototype,"customTimeZone",void 0),t([st({attribute:"custom-calendar"})],CF.prototype,"customCalendar",void 0),t([st({attribute:"custom-day-period"})],CF.prototype,"customDayPeriod",void 0),t([st({attribute:"custom-numbering-system"})],CF.prototype,"customNumberingSystem",void 0),t([st({attribute:"custom-date-style"})],CF.prototype,"customDateStyle",void 0),t([st({attribute:"custom-time-style"})],CF.prototype,"customTimeStyle",void 0),t([st({attribute:"custom-hour-cycle"})],CF.prototype,"customHourCycle",void 0)
11148
- const kF=CF.compose({baseName:"table-column-date-text",template:WR,styles:jR})
11149
- bi.getOrCreate().withPrefix("nimble").register(kF())
11150
- const SF=class extends fF{updateText(){this.text=this.columnConfig?.formatter.format(this.cellRecord?.value)??""}}.compose({baseName:"table-column-duration-text-cell-view",template:uF,styles:pF})
11151
- bi.getOrCreate().withPrefix("nimble").register(SF())
11152
- class $F{constructor(t){this.lang=t,this.daysFormatter=new Intl.NumberFormat(this.lang,{style:"unit",unit:"day"}),this.hoursFormatter=new Intl.NumberFormat(this.lang,{style:"unit",unit:"hour"}),this.minutesFormatter=new Intl.NumberFormat(this.lang,{style:"unit",unit:"minute"}),this.secondsFormatter=new Intl.NumberFormat(this.lang,{style:"unit",unit:"second"}),this.scientificSecondsFormatter=new Intl.NumberFormat(this.lang,{style:"unit",unit:"second",notation:"scientific",maximumFractionDigits:3})}format(t){if("number"!=typeof t||t<0||!Number.isFinite(t))return""
11146
+ t=this.format===yF?{dateStyle:"medium",timeStyle:"medium"}:this.getCustomFormattingOptions()
11147
+ try{return new Intl.DateTimeFormat($a.getValueFor(this),t)}catch(t){return}}getCustomFormattingOptions(){return{localeMatcher:this.customLocaleMatcher??void 0,weekday:this.customWeekday??void 0,era:this.customEra??void 0,year:this.customYear??void 0,month:this.customMonth??void 0,day:this.customDay??void 0,hour:this.customHour??void 0,minute:this.customMinute??void 0,second:this.customSecond??void 0,timeZoneName:this.customTimeZoneName??void 0,formatMatcher:this.customFormatMatcher??void 0,hour12:this.customHour12??void 0,timeZone:this.customTimeZone??void 0,calendar:this.customCalendar??void 0,dayPeriod:this.customDayPeriod??void 0,numberingSystem:this.customNumberingSystem??void 0,dateStyle:this.customDateStyle??void 0,timeStyle:this.customTimeStyle??void 0,hourCycle:this.customHourCycle??void 0}}}t([st],$F.prototype,"format",void 0),t([st({attribute:"custom-locale-matcher"})],$F.prototype,"customLocaleMatcher",void 0),t([st({attribute:"custom-weekday"})],$F.prototype,"customWeekday",void 0),t([st({attribute:"custom-era"})],$F.prototype,"customEra",void 0),t([st({attribute:"custom-year"})],$F.prototype,"customYear",void 0),t([st({attribute:"custom-month"})],$F.prototype,"customMonth",void 0),t([st({attribute:"custom-day"})],$F.prototype,"customDay",void 0),t([st({attribute:"custom-hour"})],$F.prototype,"customHour",void 0),t([st({attribute:"custom-minute"})],$F.prototype,"customMinute",void 0),t([st({attribute:"custom-second"})],$F.prototype,"customSecond",void 0),t([st({attribute:"custom-time-zone-name"})],$F.prototype,"customTimeZoneName",void 0),t([st({attribute:"custom-format-matcher"})],$F.prototype,"customFormatMatcher",void 0),t([st({attribute:"custom-hour12",converter:SF})],$F.prototype,"customHour12",void 0),t([st({attribute:"custom-time-zone"})],$F.prototype,"customTimeZone",void 0),t([st({attribute:"custom-calendar"})],$F.prototype,"customCalendar",void 0),t([st({attribute:"custom-day-period"})],$F.prototype,"customDayPeriod",void 0),t([st({attribute:"custom-numbering-system"})],$F.prototype,"customNumberingSystem",void 0),t([st({attribute:"custom-date-style"})],$F.prototype,"customDateStyle",void 0),t([st({attribute:"custom-time-style"})],$F.prototype,"customTimeStyle",void 0),t([st({attribute:"custom-hour-cycle"})],$F.prototype,"customHourCycle",void 0)
11148
+ const MF=$F.compose({baseName:"table-column-date-text",template:GR,styles:ZR})
11149
+ bi.getOrCreate().withPrefix("nimble").register(MF())
11150
+ const _F=class extends vF{updateText(){this.text=this.columnConfig?.formatter.format(this.cellRecord?.value)??""}}.compose({baseName:"table-column-duration-text-cell-view",template:mF,styles:gF})
11151
+ bi.getOrCreate().withPrefix("nimble").register(_F())
11152
+ class EF{constructor(t){this.lang=t,this.daysFormatter=new Intl.NumberFormat(this.lang,{style:"unit",unit:"day"}),this.hoursFormatter=new Intl.NumberFormat(this.lang,{style:"unit",unit:"hour"}),this.minutesFormatter=new Intl.NumberFormat(this.lang,{style:"unit",unit:"minute"}),this.secondsFormatter=new Intl.NumberFormat(this.lang,{style:"unit",unit:"second"}),this.scientificSecondsFormatter=new Intl.NumberFormat(this.lang,{style:"unit",unit:"second",notation:"scientific",maximumFractionDigits:3})}format(t){if("number"!=typeof t||t<0||!Number.isFinite(t))return""
11153
11153
  const e=[],n=1e3,i=6e4,o=36e5,r=864e5,s=t/r
11154
11154
  let a=t
11155
11155
  const l=Math.floor(s)
@@ -11162,47 +11162,47 @@ if(a-=d*i,d){const t=this.minutesFormatter.format(d)
11162
11162
  e.push(t)}const h=a/n,u=0===h?0:h%60
11163
11163
  if(t<1&&0!==h)return this.scientificSecondsFormatter.format(h)
11164
11164
  if(u>=5e-4||0===u&&0===e.length){const t=this.secondsFormatter.format(u)
11165
- e.push(t)}return e.join(", ")}}const MF=class extends tF{updateText(){this.columnConfig?this.text=this.columnConfig.formatter.format(this.groupHeaderValue):this.text=""}}.compose({baseName:"table-column-duration-text-group-header-view",template:eF,styles:nF})
11166
- bi.getOrCreate().withPrefix("nimble").register(MF())
11167
- const _F=class extends aF{constructor(){super(...arguments),this.langSubscriber={handleChange:()=>{this.updateColumnConfig()}}}connectedCallback(){super.connectedCallback(),$a.subscribe(this.langSubscriber,this),this.updateColumnConfig()}disconnectedCallback(){super.disconnectedCallback(),$a.unsubscribe(this.langSubscriber,this)}placeholderChanged(){this.updateColumnConfig()}getColumnInternalsOptions(){return{cellRecordFieldNames:["value"],cellViewTag:"nimble-table-column-duration-text-cell-view",groupHeaderViewTag:"nimble-table-column-duration-text-group-header-view",delegatedEvents:[],sortOperation:PO}}updateColumnConfig(){const t={formatter:new $F($a.getValueFor(this)),placeholder:this.placeholder}
11168
- this.columnInternals.columnConfig=t}}.compose({baseName:"table-column-duration-text",template:WR,styles:jR})
11169
- bi.getOrCreate().withPrefix("nimble").register(_F())
11170
- const EF=(t,e)=>{if("number"===e){const e=ot.fromView(t)
11165
+ e.push(t)}return e.join(", ")}}const IF=class extends nF{updateText(){this.columnConfig?this.text=this.columnConfig.formatter.format(this.groupHeaderValue):this.text=""}}.compose({baseName:"table-column-duration-text-group-header-view",template:iF,styles:oF})
11166
+ bi.getOrCreate().withPrefix("nimble").register(IF())
11167
+ class DF extends(dF(cF)){constructor(){super(...arguments),this.langSubscriber={handleChange:()=>{this.updateColumnConfig()}}}connectedCallback(){super.connectedCallback(),$a.subscribe(this.langSubscriber,this),this.updateColumnConfig()}disconnectedCallback(){super.disconnectedCallback(),$a.unsubscribe(this.langSubscriber,this)}placeholderChanged(){this.updateColumnConfig()}getColumnInternalsOptions(){return{cellRecordFieldNames:["value"],cellViewTag:"nimble-table-column-duration-text-cell-view",groupHeaderViewTag:"nimble-table-column-duration-text-group-header-view",delegatedEvents:[],sortOperation:PO}}updateColumnConfig(){const t={formatter:new EF($a.getValueFor(this)),placeholder:this.placeholder}
11168
+ this.columnInternals.columnConfig=t}}const AF=DF.compose({baseName:"table-column-duration-text",template:GR,styles:ZR})
11169
+ bi.getOrCreate().withPrefix("nimble").register(AF())
11170
+ const TF=(t,e)=>{if("number"===e){const e=ot.fromView(t)
11171
11171
  return null===e?void 0:e}return"boolean"===e?!1!==t&&"false"!==t&&(!0===t||"true"===t||void 0):t?.toString()??void 0}
11172
- class IF extends jO{constructor(){super(...arguments),this.validator=this.createValidator(),this.mappingNotifiers=[],this.mappings=[],this.keyType="string"}handleChange(t,e){t instanceof Mv&&"string"==typeof e&&this.updateColumnConfig()}updateColumnConfig(){this.validator.validate(this.mappings,this.keyType),this.columnInternals.columnConfig=this.validator.isValid()?this.createColumnConfig(this.getMappingConfigs()):void 0}getMappingConfigs(){const t=new Map
11173
- return this.mappings.forEach((e=>{const n=EF(e.key,this.keyType)
11172
+ class OF extends ZO{constructor(){super(...arguments),this.validator=this.createValidator(),this.mappingNotifiers=[],this.mappings=[],this.keyType="string"}handleChange(t,e){t instanceof Mv&&"string"==typeof e&&this.updateColumnConfig()}updateColumnConfig(){this.validator.validate(this.mappings,this.keyType),this.columnInternals.columnConfig=this.validator.isValid()?this.createColumnConfig(this.getMappingConfigs()):void 0}getMappingConfigs(){const t=new Map
11173
+ return this.mappings.forEach((e=>{const n=TF(e.key,this.keyType)
11174
11174
  if(void 0===n)throw Error("Key was invalid for type. Validation should have prevented this.")
11175
11175
  const i=this.createMappingConfig(e)
11176
11176
  t.set(n,i)})),t}fieldNameChanged(){this.columnInternals.dataRecordFieldNames=[this.fieldName],this.columnInternals.operandDataRecordFieldName=this.fieldName}mappingsChanged(){this.updateColumnConfig(),this.observeMappings()}keyTypeChanged(){this.updateColumnConfig()}removeMappingObservers(){this.mappingNotifiers.forEach((t=>{t.unsubscribe(this)})),this.mappingNotifiers=[]}observeMappings(){this.removeMappingObservers()
11177
11177
  for(const t of this.mappings){const e=m.getNotifier(t)
11178
- e.subscribe(this),this.mappingNotifiers.push(e)}}}t([g],IF.prototype,"mappings",void 0),t([st({attribute:"field-name"})],IF.prototype,"fieldName",void 0),t([st({attribute:"key-type"})],IF.prototype,"keyType",void 0)
11179
- const DF=yt`
11180
- ${jR}
11178
+ e.subscribe(this),this.mappingNotifiers.push(e)}}}t([g],OF.prototype,"mappings",void 0),t([st({attribute:"field-name"})],OF.prototype,"fieldName",void 0),t([st({attribute:"key-type"})],OF.prototype,"keyType",void 0)
11179
+ const RF=yt`
11180
+ ${ZR}
11181
11181
 
11182
11182
  slot[name='mapping'] {
11183
11183
  display: none;
11184
11184
  }
11185
- `,AF=Z`${WR}<slot ${Kt("mappings")} name="mapping"></slot>`,TF=["invalidMappingKeyValueForType","duplicateMappingKey","missingKeyValue"]
11186
- class OF extends bF{constructor(t,e){super(t,e)}validate(t,e){this.untrackAll()
11185
+ `,FF=Z`${GR}<slot ${Kt("mappings")} name="mapping"></slot>`,NF=["invalidMappingKeyValueForType","duplicateMappingKey","missingKeyValue"]
11186
+ class PF extends xF{constructor(t,e){super(t,e)}validate(t,e){this.untrackAll()
11187
11187
  const n=t.map((t=>t.key))
11188
- this.validateKeyValuesForType(n,e),this.validateUniqueKeys(n,e),this.validateNoMissingKeys(t)}validateKeyValuesForType(t,e){const n=t.some((t=>void 0!==t&&void 0===EF(t,e)))
11189
- this.setConditionValue("invalidMappingKeyValueForType",n)}validateUniqueKeys(t,e){const n=t.map((t=>EF(t,e))),i=new Set(n).size!==n.length
11188
+ this.validateKeyValuesForType(n,e),this.validateUniqueKeys(n,e),this.validateNoMissingKeys(t)}validateKeyValuesForType(t,e){const n=t.some((t=>void 0!==t&&void 0===TF(t,e)))
11189
+ this.setConditionValue("invalidMappingKeyValueForType",n)}validateUniqueKeys(t,e){const n=t.map((t=>TF(t,e))),i=new Set(n).size!==n.length
11190
11190
  this.setConditionValue("duplicateMappingKey",i)}validateNoMissingKeys(t){const e=t.some((t=>void 0===t.key))
11191
- this.setConditionValue("missingKeyValue",e)}}const RF=[...TF,"unsupportedMappingType","missingTextValue"]
11192
- class FF extends OF{constructor(t){super(t,RF)}static isSupportedMappingElement(t){return t instanceof Ev}validate(t,e){super.validate(t,e),this.validateMappingTypes(t),this.validateNoMissingText(t)}validateNoMissingText(t){const e=t.filter(FF.isSupportedMappingElement).some((t=>void 0===t.text))
11193
- this.setConditionValue("missingTextValue",e)}validateMappingTypes(t){const e=t.every(FF.isSupportedMappingElement)
11194
- this.setConditionValue("unsupportedMappingType",!e)}}class NF{constructor(t){this.text=t}}class PF extends NF{}const LF=class extends fF{updateText(){const t=this.cellRecord?.value
11191
+ this.setConditionValue("missingKeyValue",e)}}const LF=[...NF,"unsupportedMappingType","missingTextValue"]
11192
+ class zF extends PF{constructor(t){super(t,LF)}static isSupportedMappingElement(t){return t instanceof Ev}validate(t,e){super.validate(t,e),this.validateMappingTypes(t),this.validateNoMissingText(t)}validateNoMissingText(t){const e=t.filter(zF.isSupportedMappingElement).some((t=>void 0===t.text))
11193
+ this.setConditionValue("missingTextValue",e)}validateMappingTypes(t){const e=t.every(zF.isSupportedMappingElement)
11194
+ this.setConditionValue("unsupportedMappingType",!e)}}class VF{constructor(t){this.text=t}}class HF extends VF{}const BF=class extends vF{updateText(){const t=this.cellRecord?.value
11195
11195
  if(null==t)return void(this.text="")
11196
11196
  const e=this.columnConfig?.mappingConfigs.get(t)
11197
- this.text=e instanceof PF&&e.text?e.text:""}}.compose({baseName:"table-column-enum-text-cell-view",template:uF,styles:pF})
11198
- bi.getOrCreate().withPrefix("nimble").register(LF())
11199
- const zF=class extends tF{updateText(){const t=this.columnConfig?.mappingConfigs.get(this.groupHeaderValue)
11200
- this.text=t instanceof PF&&t.text?t.text:""}}.compose({baseName:"table-column-enum-text-group-header-view",template:eF,styles:nF})
11201
- bi.getOrCreate().withPrefix("nimble").register(zF())
11202
- class VF extends(GR(ZR(IF))){createValidator(){return new FF(this.columnInternals)}get validity(){return this.validator.getValidity()}getColumnInternalsOptions(){return{cellRecordFieldNames:["value"],cellViewTag:"nimble-table-column-enum-text-cell-view",groupHeaderViewTag:"nimble-table-column-enum-text-group-header-view",delegatedEvents:[],sortOperation:PO}}createColumnConfig(t){return{mappingConfigs:t}}createMappingConfig(t){if(t instanceof Ev)return new PF(t.text)
11203
- throw new Error("Unsupported mapping")}}const HF=VF.compose({baseName:"table-column-enum-text",template:AF,styles:DF})
11204
- bi.getOrCreate().withPrefix("nimble").register(HF())
11205
- const BF=Z`<span
11197
+ this.text=e instanceof HF&&e.text?e.text:""}}.compose({baseName:"table-column-enum-text-cell-view",template:mF,styles:gF})
11198
+ bi.getOrCreate().withPrefix("nimble").register(BF())
11199
+ const qF=class extends nF{updateText(){const t=this.columnConfig?.mappingConfigs.get(this.groupHeaderValue)
11200
+ this.text=t instanceof HF&&t.text?t.text:""}}.compose({baseName:"table-column-enum-text-group-header-view",template:iF,styles:oF})
11201
+ bi.getOrCreate().withPrefix("nimble").register(qF())
11202
+ class UF extends(JR(KR(OF))){createValidator(){return new zF(this.columnInternals)}get validity(){return this.validator.getValidity()}getColumnInternalsOptions(){return{cellRecordFieldNames:["value"],cellViewTag:"nimble-table-column-enum-text-cell-view",groupHeaderViewTag:"nimble-table-column-enum-text-group-header-view",delegatedEvents:[],sortOperation:PO}}createColumnConfig(t){return{mappingConfigs:t}}createMappingConfig(t){if(t instanceof Ev)return new HF(t.text)
11203
+ throw new Error("Unsupported mapping")}}const jF=UF.compose({baseName:"table-column-enum-text",template:FF,styles:RF})
11204
+ bi.getOrCreate().withPrefix("nimble").register(jF())
11205
+ const WF=Z`<span
11206
11206
  ${cg("hasOverflow")}
11207
11207
  class="header-content"
11208
11208
  title=${t=>t.hasOverflow&&t.headerTextContent?t.headerTextContent:null}
@@ -11210,13 +11210,13 @@ const BF=Z`<span
11210
11210
  <slot ${Ft("contentSlot")}></slot>
11211
11211
  <slot ${Kt({property:"unitElements",filter:Wt()})} name="unit"></slot>
11212
11212
  </span>`
11213
- const qF=class extends tF{updateText(){this.text=this.columnConfig?.formatter?.format(this.groupHeaderValue)??""}}.compose({baseName:"table-column-number-text-group-header-view",template:eF,styles:nF})
11214
- bi.getOrCreate().withPrefix("nimble").register(qF())
11215
- const UF=class extends fF{columnConfigChanged(){super.columnConfigChanged(),this.alignment=this.columnConfig?.alignment??dF}updateText(){this.text=this.columnConfig?.formatter?.format(this.cellRecord?.value)??""}}.compose({baseName:"table-column-number-text-cell-view",template:uF,styles:pF})
11216
- bi.getOrCreate().withPrefix("nimble").register(UF())
11217
- const jF={default:void 0,decimal:"decimal"},WF="left",ZF="right"
11218
- class GF{format(t){if("number"!=typeof t)return""
11219
- try{return this.tryFormat(t)}catch{return""}}}class KF{constructor(t){this.locale=t.locale,this.intlNumberFormatOptions=t.intlNumberFormatOptions}}class JF extends KF{constructor(t,e){super(t),this.formatter=new Intl.NumberFormat(this.locale,{...e,...this.intlNumberFormatOptions})}static createFactory(t){return e=>new JF(e,t)}format(t){return this.formatter.format(t)}}class XF{constructor(t,e){this.scaleFactor=t,this.scaledUnitFormatFactory=e}isBase(){return 1===this.scaleFactor}}class YF{constructor(t){this.supportedScaledUnits=t
11213
+ const ZF=class extends nF{updateText(){this.text=this.columnConfig?.formatter?.format(this.groupHeaderValue)??""}}.compose({baseName:"table-column-number-text-group-header-view",template:iF,styles:oF})
11214
+ bi.getOrCreate().withPrefix("nimble").register(ZF())
11215
+ const GF=class extends vF{columnConfigChanged(){super.columnConfigChanged(),this.alignment=this.columnConfig?.alignment??pF}updateText(){this.text=this.columnConfig?.formatter?.format(this.cellRecord?.value)??""}}.compose({baseName:"table-column-number-text-cell-view",template:mF,styles:gF})
11216
+ bi.getOrCreate().withPrefix("nimble").register(GF())
11217
+ const KF={default:void 0,decimal:"decimal"},JF="left",XF="right"
11218
+ class YF{format(t){if("number"!=typeof t)return""
11219
+ try{return this.tryFormat(t)}catch{return""}}}class QF{constructor(t){this.locale=t.locale,this.intlNumberFormatOptions=t.intlNumberFormatOptions}}class tN extends QF{constructor(t,e){super(t),this.formatter=new Intl.NumberFormat(this.locale,{...e,...this.intlNumberFormatOptions})}static createFactory(t){return e=>new tN(e,t)}format(t){return this.formatter.format(t)}}class eN{constructor(t,e){this.scaleFactor=t,this.scaledUnitFormatFactory=e}isBase(){return 1===this.scaleFactor}}class nN{constructor(t){this.supportedScaledUnits=t
11220
11220
  const e=t.every(((t,e,n)=>0===e||n[e-1].scaleFactor<t.scaleFactor))
11221
11221
  if(!e)throw new Error("Supported scaled units must have unique and ordered scale factors")
11222
11222
  const n=t.find((t=>t.isBase()))
@@ -11225,38 +11225,38 @@ this.supportedScaledUnits=t,this.baseScaledUnit=n}scaleNumber(t){const e=Math.ab
11225
11225
  if(1===this.supportedScaledUnits.length||0===e||e===1/0||Number.isNaN(e))return{scaledValue:t,scaledUnit:this.baseScaledUnit}
11226
11226
  for(let n=this.supportedScaledUnits.length-1;n>=0;n-=1){const i=this.supportedScaledUnits[n]
11227
11227
  if(e/i.scaleFactor>=1)return{scaledValue:t/i.scaleFactor,scaledUnit:i}}const n=this.supportedScaledUnits[0]
11228
- return{scaledValue:t/n.scaleFactor,scaledUnit:n}}}const QF=new class extends YF{constructor(){super([new XF(1,JF.createFactory({}))])}},tN="negative"
11229
- class eN extends GF{constructor(t,{unitScale:e=QF}={unitScale:QF}){super(),this.defaultIntlNumberFormatOptions={maximumSignificantDigits:eN.maximumDigits,maximumFractionDigits:eN.maximumDigits-1,roundingPriority:"lessPrecision",signDisplay:tN},this.defaultScaledUnitFormatters=new Map,this.exponentialIntlNumberFormatOptions={maximumSignificantDigits:eN.maximumDigits,notation:"scientific",signDisplay:tN}
11228
+ return{scaledValue:t/n.scaleFactor,scaledUnit:n}}}const iN=new class extends nN{constructor(){super([new eN(1,tN.createFactory({}))])}},oN="negative"
11229
+ class rN extends YF{constructor(t,{unitScale:e=iN}={unitScale:iN}){super(),this.defaultIntlNumberFormatOptions={maximumSignificantDigits:rN.maximumDigits,maximumFractionDigits:rN.maximumDigits-1,roundingPriority:"lessPrecision",signDisplay:oN},this.defaultScaledUnitFormatters=new Map,this.exponentialIntlNumberFormatOptions={maximumSignificantDigits:rN.maximumDigits,notation:"scientific",signDisplay:oN}
11230
11230
  for(const n of e.supportedScaledUnits)this.defaultScaledUnitFormatters.set(n.scaleFactor,n.scaledUnitFormatFactory({locale:t,intlNumberFormatOptions:this.defaultIntlNumberFormatOptions}))
11231
11231
  this.exponentialScaledUnitFormatter=e.baseScaledUnit.scaledUnitFormatFactory({locale:t,intlNumberFormatOptions:this.exponentialIntlNumberFormatOptions}),this.unitScale=e}resolvedOptions(){return{unitScale:this.unitScale}}tryFormat(t){const{scaledValue:e,scaledUnit:n}=this.unitScale.scaleNumber(t),i=Math.abs(e)
11232
- return 0!==i&&(i>=eN.exponentialUpperBound||i<eN.exponentialLowerBound)?this.exponentialScaledUnitFormatter.format(t):this.defaultScaledUnitFormatters.get(n.scaleFactor).format(e)}}eN.maximumDigits=6,eN.exponentialLowerBound=995e-6,eN.exponentialUpperBound=999999.5
11233
- class nN extends GF{constructor(t,{minimumFractionDigits:e=0,maximumFractionDigits:n=Math.max(3,e),unitScale:i=QF}={minimumFractionDigits:0,maximumFractionDigits:3,unitScale:QF}){super(),this.scaledUnitFormatters=new Map
11232
+ return 0!==i&&(i>=rN.exponentialUpperBound||i<rN.exponentialLowerBound)?this.exponentialScaledUnitFormatter.format(t):this.defaultScaledUnitFormatters.get(n.scaleFactor).format(e)}}rN.maximumDigits=6,rN.exponentialLowerBound=995e-6,rN.exponentialUpperBound=999999.5
11233
+ class sN extends YF{constructor(t,{minimumFractionDigits:e=0,maximumFractionDigits:n=Math.max(3,e),unitScale:i=iN}={minimumFractionDigits:0,maximumFractionDigits:3,unitScale:iN}){super(),this.scaledUnitFormatters=new Map
11234
11234
  const o={maximumFractionDigits:n,minimumFractionDigits:e,signDisplay:"negative"}
11235
11235
  for(const e of i.supportedScaledUnits)this.scaledUnitFormatters.set(e.scaleFactor,e.scaledUnitFormatFactory({locale:t,intlNumberFormatOptions:o}))
11236
11236
  this.unitScale=i,this.minimumFractionDigits=e,this.maximumFractionDigits=n}resolvedOptions(){return{unitScale:this.unitScale,maximumFractionDigits:this.maximumFractionDigits,minimumFractionDigits:this.minimumFractionDigits}}tryFormat(t){const{scaledValue:e,scaledUnit:n}=this.unitScale.scaleNumber(t)
11237
- return this.scaledUnitFormatters.get(n.scaleFactor).format(e)}}class iN extends GF{constructor(t,e){super(),this._resolvedOptions=this.resolveOptions(e),this.resolvedUnitFormat=this.resolveUnitFormat(t,this._resolvedOptions)}resolvedOptions(){return{...this._resolvedOptions}}optionsMatch(t){const e=this.resolveOptions(t)
11237
+ return this.scaledUnitFormatters.get(n.scaleFactor).format(e)}}class aN extends YF{constructor(t,e){super(),this._resolvedOptions=this.resolveOptions(e),this.resolvedUnitFormat=this.resolveUnitFormat(t,this._resolvedOptions)}resolvedOptions(){return{...this._resolvedOptions}}optionsMatch(t){const e=this.resolveOptions(t)
11238
11238
  return this._resolvedOptions.decimalDigits===e.decimalDigits&&this._resolvedOptions.decimalMaximumDigits===e.decimalMaximumDigits&&this._resolvedOptions.numberTextFormat===e.numberTextFormat&&this._resolvedOptions.unitScale===e.unitScale}tryFormat(t){return this.resolvedUnitFormat.format(t)}resolveUnitFormat(t,e){const{numberTextFormat:n,decimalMaximumDigits:i,decimalDigits:o,unitScale:r}=e
11239
- return n===jF.default?new eN(t,{unitScale:r}):new nN(t,"number"==typeof o?{minimumFractionDigits:o,maximumFractionDigits:o,unitScale:r}:{minimumFractionDigits:0,maximumFractionDigits:i,unitScale:r})}resolveOptions(t){if(!t||t.numberTextFormat===jF.default)return{numberTextFormat:jF.default,decimalDigits:void 0,decimalMaximumDigits:void 0,unitScale:t?.unitScale??QF}
11239
+ return n===KF.default?new rN(t,{unitScale:r}):new sN(t,"number"==typeof o?{minimumFractionDigits:o,maximumFractionDigits:o,unitScale:r}:{minimumFractionDigits:0,maximumFractionDigits:i,unitScale:r})}resolveOptions(t){if(!t||t.numberTextFormat===KF.default)return{numberTextFormat:KF.default,decimalDigits:void 0,decimalMaximumDigits:void 0,unitScale:t?.unitScale??iN}
11240
11240
  const e="number"==typeof t.decimalDigits,n="number"==typeof t.decimalMaximumDigits
11241
11241
  if(e&&n)throw new Error("decimalDigits and decimalMaximumDigits are mutually exclusive. Do not specify both.")
11242
- return e||n?{numberTextFormat:jF.decimal,decimalDigits:t.decimalDigits,decimalMaximumDigits:t.decimalMaximumDigits,unitScale:t.unitScale??QF}:{numberTextFormat:jF.decimal,decimalDigits:iN.defaultDecimalDigits,decimalMaximumDigits:void 0,unitScale:t.unitScale??QF}}}iN.defaultDecimalDigits=2
11243
- const oN=["invalidDecimalDigits","invalidDecimalMaximumDigits","decimalDigitsMutuallyExclusiveWithDecimalMaximumDigits","moreThanOneUnitSpecified"]
11244
- class rN extends bF{constructor(t){super(t,oN)}validateDecimalDigits(t,e){const n=!!(t===jF.decimal&&"number"==typeof e)&&this.isInvalidDecimalDigitsValue(e)
11245
- this.setConditionValue("invalidDecimalDigits",n)}validateDecimalMaximumDigits(t,e){const n=!!(t===jF.decimal&&"number"==typeof e)&&this.isInvalidDecimalDigitsValue(e)
11246
- this.setConditionValue("invalidDecimalMaximumDigits",n)}validateNoMutuallyExclusiveProperties(t,e,n){const i=!!(t===jF.decimal)&&("number"==typeof e&&"number"==typeof n)
11242
+ return e||n?{numberTextFormat:KF.decimal,decimalDigits:t.decimalDigits,decimalMaximumDigits:t.decimalMaximumDigits,unitScale:t.unitScale??iN}:{numberTextFormat:KF.decimal,decimalDigits:aN.defaultDecimalDigits,decimalMaximumDigits:void 0,unitScale:t.unitScale??iN}}}aN.defaultDecimalDigits=2
11243
+ const lN=["invalidDecimalDigits","invalidDecimalMaximumDigits","decimalDigitsMutuallyExclusiveWithDecimalMaximumDigits","moreThanOneUnitSpecified"]
11244
+ class cN extends xF{constructor(t){super(t,lN)}validateDecimalDigits(t,e){const n=!!(t===KF.decimal&&"number"==typeof e)&&this.isInvalidDecimalDigitsValue(e)
11245
+ this.setConditionValue("invalidDecimalDigits",n)}validateDecimalMaximumDigits(t,e){const n=!!(t===KF.decimal&&"number"==typeof e)&&this.isInvalidDecimalDigitsValue(e)
11246
+ this.setConditionValue("invalidDecimalMaximumDigits",n)}validateNoMutuallyExclusiveProperties(t,e,n){const i=!!(t===KF.decimal)&&("number"==typeof e&&"number"==typeof n)
11247
11247
  this.setConditionValue("decimalDigitsMutuallyExclusiveWithDecimalMaximumDigits",i)}validateAtMostOneUnit(t){const e=t.length>1
11248
- this.setConditionValue("moreThanOneUnitSpecified",e)}isInvalidDecimalDigitsValue(t){return t<0||t>20}}class sN extends Le{}t([g],sN.prototype,"resolvedUnitScale",void 0)
11249
- class aN extends aF{constructor(){super(...arguments),this.validator=new rN(this.columnInternals),this.langSubscriber={handleChange:()=>{this.updateColumnConfig()}},this.unitSubscriber={handleChange:()=>{this.updateColumnConfig()}}}connectedCallback(){super.connectedCallback(),$a.subscribe(this.langSubscriber,this),this.updateColumnConfig()}disconnectedCallback(){super.disconnectedCallback(),$a.unsubscribe(this.langSubscriber,this)}get validity(){return this.validator.getValidity()}placeholderChanged(){this.updateColumnConfig()}getColumnInternalsOptions(){return{cellRecordFieldNames:["value"],cellViewTag:"nimble-table-column-number-text-cell-view",groupHeaderViewTag:"nimble-table-column-number-text-group-header-view",delegatedEvents:[],sortOperation:PO}}updateUnitNotifier(){if(this.unitNotifier&&(this.unitNotifier.unsubscribe(this.unitSubscriber),this.unitNotifier=void 0),this.unit){const t=m.getNotifier(this.unit)
11250
- t.subscribe(this.unitSubscriber,"resolvedUnitScale"),this.unitNotifier=t}}formatChanged(){this.updateColumnConfig()}alignmentChanged(){this.updateColumnConfig()}decimalDigitsChanged(){this.updateColumnConfig()}decimalMaximumDigitsChanged(){this.updateColumnConfig()}unitElementsChanged(){this.updateUnit()}async updateUnit(){this.unit=void 0,this.unitElements&&(await hI(this.unitElements),this.unit=this.unitElements.find((t=>t instanceof sN))),this.updateUnitNotifier()}unitChanged(){this.updateColumnConfig()}updateColumnConfig(){if(this.validator.validateDecimalDigits(this.format,this.decimalDigits),this.validator.validateDecimalMaximumDigits(this.format,this.decimalMaximumDigits),this.validator.validateNoMutuallyExclusiveProperties(this.format,this.decimalDigits,this.decimalMaximumDigits),this.validator.validateAtMostOneUnit(this.unitElements??[]),this.validator.isValid()){const t={formatter:this.createFormatter(),alignment:this.determineCellContentAlignment(),placeholder:this.placeholder}
11248
+ this.setConditionValue("moreThanOneUnitSpecified",e)}isInvalidDecimalDigitsValue(t){return t<0||t>20}}class dN extends Le{}t([g],dN.prototype,"resolvedUnitScale",void 0)
11249
+ class hN extends(dF(cF)){constructor(){super(...arguments),this.validator=new cN(this.columnInternals),this.langSubscriber={handleChange:()=>{this.updateColumnConfig()}},this.unitSubscriber={handleChange:()=>{this.updateColumnConfig()}}}connectedCallback(){super.connectedCallback(),$a.subscribe(this.langSubscriber,this),this.updateColumnConfig()}disconnectedCallback(){super.disconnectedCallback(),$a.unsubscribe(this.langSubscriber,this)}get validity(){return this.validator.getValidity()}placeholderChanged(){this.updateColumnConfig()}getColumnInternalsOptions(){return{cellRecordFieldNames:["value"],cellViewTag:"nimble-table-column-number-text-cell-view",groupHeaderViewTag:"nimble-table-column-number-text-group-header-view",delegatedEvents:[],sortOperation:PO}}updateUnitNotifier(){if(this.unitNotifier&&(this.unitNotifier.unsubscribe(this.unitSubscriber),this.unitNotifier=void 0),this.unit){const t=m.getNotifier(this.unit)
11250
+ t.subscribe(this.unitSubscriber,"resolvedUnitScale"),this.unitNotifier=t}}formatChanged(){this.updateColumnConfig()}alignmentChanged(){this.updateColumnConfig()}decimalDigitsChanged(){this.updateColumnConfig()}decimalMaximumDigitsChanged(){this.updateColumnConfig()}unitElementsChanged(){this.updateUnit()}async updateUnit(){this.unit=void 0,this.unitElements&&(await hI(this.unitElements),this.unit=this.unitElements.find((t=>t instanceof dN))),this.updateUnitNotifier()}unitChanged(){this.updateColumnConfig()}updateColumnConfig(){if(this.validator.validateDecimalDigits(this.format,this.decimalDigits),this.validator.validateDecimalMaximumDigits(this.format,this.decimalMaximumDigits),this.validator.validateNoMutuallyExclusiveProperties(this.format,this.decimalDigits,this.decimalMaximumDigits),this.validator.validateAtMostOneUnit(this.unitElements??[]),this.validator.isValid()){const t={formatter:this.createFormatter(),alignment:this.determineCellContentAlignment(),placeholder:this.placeholder}
11251
11251
  this.columnInternals.columnConfig=t}else this.columnInternals.columnConfig=void 0}createFormatter(){const t=this.unit?.resolvedUnitScale
11252
- return new iN($a.getValueFor(this),{numberTextFormat:this.format??void 0,decimalDigits:this.decimalDigits??void 0,decimalMaximumDigits:this.decimalMaximumDigits??void 0,unitScale:t})}determineCellContentAlignment(){return this.alignment===WF?dF:this.alignment===ZF?hF:this.format!==jF.decimal||"number"==typeof this.decimalMaximumDigits||this.unit?dF:hF}}t([st],aN.prototype,"format",void 0),t([st],aN.prototype,"alignment",void 0),t([st({attribute:"decimal-digits",converter:ot})],aN.prototype,"decimalDigits",void 0),t([st({attribute:"decimal-maximum-digits",converter:ot})],aN.prototype,"decimalMaximumDigits",void 0),t([g],aN.prototype,"unitElements",void 0),t([g],aN.prototype,"unit",void 0)
11253
- const lN=aN.compose({baseName:"table-column-number-text",template:BF,styles:jR})
11254
- bi.getOrCreate().withPrefix("nimble").register(lN())
11255
- const cN=[...TF,"unsupportedMappingType","invalidIconName","missingTextValue"]
11256
- class dN extends OF{constructor(t){super(t,cN)}static isIconMappingElement(t){return t instanceof Av}static isSupportedMappingElement(t){return t instanceof Av||t instanceof Ov}static hasUnresolvedIcon(t){return"string"==typeof t.icon&&void 0===t.resolvedIcon}validate(t,e){super.validate(t,e),this.validateMappingTypes(t),this.validateIconNames(t),this.validateNoMissingText(t)}validateIconNames(t){const e=t.filter(dN.isIconMappingElement).some(dN.hasUnresolvedIcon)
11257
- this.setConditionValue("invalidIconName",e)}validateNoMissingText(t){const e=t.filter(dN.isSupportedMappingElement).some((t=>void 0===t.text))
11258
- this.setConditionValue("missingTextValue",e)}validateMappingTypes(t){const e=t.every(dN.isSupportedMappingElement)
11259
- this.setConditionValue("unsupportedMappingType",!e)}}const hN=yt`
11252
+ return new aN($a.getValueFor(this),{numberTextFormat:this.format??void 0,decimalDigits:this.decimalDigits??void 0,decimalMaximumDigits:this.decimalMaximumDigits??void 0,unitScale:t})}determineCellContentAlignment(){return this.alignment===JF?pF:this.alignment===XF?fF:this.format!==KF.decimal||"number"==typeof this.decimalMaximumDigits||this.unit?pF:fF}}t([st],hN.prototype,"format",void 0),t([st],hN.prototype,"alignment",void 0),t([st({attribute:"decimal-digits",converter:ot})],hN.prototype,"decimalDigits",void 0),t([st({attribute:"decimal-maximum-digits",converter:ot})],hN.prototype,"decimalMaximumDigits",void 0),t([g],hN.prototype,"unitElements",void 0),t([g],hN.prototype,"unit",void 0)
11253
+ const uN=hN.compose({baseName:"table-column-number-text",template:WF,styles:ZR})
11254
+ bi.getOrCreate().withPrefix("nimble").register(uN())
11255
+ const pN=[...NF,"unsupportedMappingType","invalidIconName","missingTextValue"]
11256
+ class fN extends PF{constructor(t){super(t,pN)}static isIconMappingElement(t){return t instanceof Av}static isSupportedMappingElement(t){return t instanceof Av||t instanceof Ov}static hasUnresolvedIcon(t){return"string"==typeof t.icon&&void 0===t.resolvedIcon}validate(t,e){super.validate(t,e),this.validateMappingTypes(t),this.validateIconNames(t),this.validateNoMissingText(t)}validateIconNames(t){const e=t.filter(fN.isIconMappingElement).some(fN.hasUnresolvedIcon)
11257
+ this.setConditionValue("invalidIconName",e)}validateNoMissingText(t){const e=t.filter(fN.isSupportedMappingElement).some((t=>void 0===t.text))
11258
+ this.setConditionValue("missingTextValue",e)}validateMappingTypes(t){const e=t.every(fN.isSupportedMappingElement)
11259
+ this.setConditionValue("unsupportedMappingType",!e)}}const mN=yt`
11260
11260
  ${Ao("inline-flex")}
11261
11261
 
11262
11262
  :host {
@@ -11276,7 +11276,7 @@ this.setConditionValue("unsupportedMappingType",!e)}}const hN=yt`
11276
11276
  overflow: hidden;
11277
11277
  text-overflow: ellipsis;
11278
11278
  }
11279
- `,uN=Z`
11279
+ `,gN=Z`
11280
11280
  ${zt((t=>"icon"===t.visual),Z`
11281
11281
  ${t=>t.iconTemplate}
11282
11282
  <span
@@ -11300,9 +11300,9 @@ this.setConditionValue("unsupportedMappingType",!e)}}const hN=yt`
11300
11300
  title="${t=>t.hasOverflow&&t.text?t.text:null}"
11301
11301
  >${t=>t.text}</span>
11302
11302
  `)}
11303
- `,pN=Z` `
11304
- class fN extends NF{constructor(t,e,n){var i
11305
- super(n),this.severity=e,this.iconTemplate=void 0===(i=t)?pN:Z`
11303
+ `,vN=Z` `
11304
+ class bN extends VF{constructor(t,e,n){var i
11305
+ super(n),this.severity=e,this.iconTemplate=void 0===(i=t)?vN:Z`
11306
11306
  <${i}
11307
11307
  title="${t=>t.text}"
11308
11308
  role="img"
@@ -11311,12 +11311,12 @@ super(n),this.severity=e,this.iconTemplate=void 0===(i=t)?pN:Z`
11311
11311
  class="no-shrink"
11312
11312
  >
11313
11313
  </${i}>
11314
- `}}class mN extends NF{constructor(t){super(t)}}class gN extends tF{updateText(){if(this.visual=void 0,!this.columnConfig)return void(this.text="")
11314
+ `}}class yN extends VF{constructor(t){super(t)}}class wN extends nF{updateText(){if(this.visual=void 0,!this.columnConfig)return void(this.text="")
11315
11315
  const t=this.groupHeaderValue,e=this.columnConfig.mappingConfigs.get(t)
11316
- e instanceof fN?(this.visual="icon",this.severity=e.severity,this.text=e.text??"",this.iconTemplate=e.iconTemplate):e instanceof mN&&(this.visual="spinner",this.text=e.text??"")}}t([g],gN.prototype,"severity",void 0),t([g],gN.prototype,"iconTemplate",void 0),t([g],gN.prototype,"visual",void 0)
11317
- const vN=gN.compose({baseName:"table-column-icon-group-header-view",template:uN,styles:hN})
11318
- bi.getOrCreate().withPrefix("nimble").register(vN())
11319
- const bN=Z`
11316
+ e instanceof bN?(this.visual="icon",this.severity=e.severity,this.text=e.text??"",this.iconTemplate=e.iconTemplate):e instanceof yN&&(this.visual="spinner",this.text=e.text??"")}}t([g],wN.prototype,"severity",void 0),t([g],wN.prototype,"iconTemplate",void 0),t([g],wN.prototype,"visual",void 0)
11317
+ const xN=wN.compose({baseName:"table-column-icon-group-header-view",template:gN,styles:mN})
11318
+ bi.getOrCreate().withPrefix("nimble").register(xN())
11319
+ const CN=Z`
11320
11320
  ${zt((t=>"icon"===t.visual),(t=>t.iconTemplate))}
11321
11321
  ${zt((t=>"spinner"===t.visual),Z`
11322
11322
  <${$T}
@@ -11326,22 +11326,22 @@ const bN=Z`
11326
11326
  </${$T}>
11327
11327
  `)}
11328
11328
  `
11329
- class yN extends HO{columnConfigChanged(){this.updateState()}cellRecordChanged(){this.updateState()}updateState(){if(this.visual=void 0,!this.columnConfig||!this.cellRecord)return
11329
+ class kN extends qO{columnConfigChanged(){this.updateState()}cellRecordChanged(){this.updateState()}updateState(){if(this.visual=void 0,!this.columnConfig||!this.cellRecord)return
11330
11330
  const t=this.cellRecord.value
11331
11331
  if(null==t)return
11332
11332
  const e=this.columnConfig.mappingConfigs.get(t)
11333
- e instanceof fN?(this.visual="icon",this.severity=e.severity,this.text=e.text,this.iconTemplate=e.iconTemplate):e instanceof mN&&(this.visual="spinner",this.text=e.text)}}t([g],yN.prototype,"severity",void 0),t([g],yN.prototype,"text",void 0),t([g],yN.prototype,"iconTemplate",void 0),t([g],yN.prototype,"visual",void 0)
11334
- const wN=yN.compose({baseName:"table-column-icon-cell-view",template:bN})
11335
- bi.getOrCreate().withPrefix("nimble").register(wN())
11336
- class xN extends(GR(ZR(IF))){createValidator(){return new dN(this.columnInternals)}get validity(){return this.validator.getValidity()}getColumnInternalsOptions(){return{cellRecordFieldNames:["value"],cellViewTag:"nimble-table-column-icon-cell-view",groupHeaderViewTag:"nimble-table-column-icon-group-header-view",delegatedEvents:[],sortOperation:PO}}createColumnConfig(t){return{mappingConfigs:t}}createMappingConfig(t){if(t instanceof Av)return new fN(t.resolvedIcon,t.severity,t.text)
11337
- if(t instanceof Ov)return new mN(t.text)
11338
- throw new Error("Unsupported mapping")}}const CN=xN.compose({baseName:"table-column-icon",template:AF,styles:DF})
11339
- bi.getOrCreate().withPrefix("nimble").register(CN())
11340
- const kN=class extends fF{updateText(){this.text="string"==typeof this.cellRecord?.value?this.cellRecord.value:""}}.compose({baseName:"table-column-text-cell-view",template:uF,styles:pF})
11341
- bi.getOrCreate().withPrefix("nimble").register(kN())
11342
- const SN=class extends aF{placeholderChanged(){this.columnInternals.columnConfig={placeholder:this.placeholder}}getColumnInternalsOptions(){return{cellRecordFieldNames:["value"],cellViewTag:"nimble-table-column-text-cell-view",groupHeaderViewTag:oF,delegatedEvents:[],sortOperation:LO}}}.compose({baseName:"table-column-text",template:WR,styles:jR})
11333
+ e instanceof bN?(this.visual="icon",this.severity=e.severity,this.text=e.text,this.iconTemplate=e.iconTemplate):e instanceof yN&&(this.visual="spinner",this.text=e.text)}}t([g],kN.prototype,"severity",void 0),t([g],kN.prototype,"text",void 0),t([g],kN.prototype,"iconTemplate",void 0),t([g],kN.prototype,"visual",void 0)
11334
+ const SN=kN.compose({baseName:"table-column-icon-cell-view",template:CN})
11343
11335
  bi.getOrCreate().withPrefix("nimble").register(SN())
11344
- const $N=yt`
11336
+ class $N extends(JR(KR(OF))){createValidator(){return new fN(this.columnInternals)}get validity(){return this.validator.getValidity()}getColumnInternalsOptions(){return{cellRecordFieldNames:["value"],cellViewTag:"nimble-table-column-icon-cell-view",groupHeaderViewTag:"nimble-table-column-icon-group-header-view",delegatedEvents:[],sortOperation:PO}}createColumnConfig(t){return{mappingConfigs:t}}createMappingConfig(t){if(t instanceof Av)return new bN(t.resolvedIcon,t.severity,t.text)
11337
+ if(t instanceof Ov)return new yN(t.text)
11338
+ throw new Error("Unsupported mapping")}}const MN=$N.compose({baseName:"table-column-icon",template:FF,styles:RF})
11339
+ bi.getOrCreate().withPrefix("nimble").register(MN())
11340
+ const _N=class extends vF{updateText(){this.text="string"==typeof this.cellRecord?.value?this.cellRecord.value:""}}.compose({baseName:"table-column-text-cell-view",template:mF,styles:gF})
11341
+ bi.getOrCreate().withPrefix("nimble").register(_N())
11342
+ class EN extends(dF(cF)){placeholderChanged(){this.columnInternals.columnConfig={placeholder:this.placeholder}}getColumnInternalsOptions(){return{cellRecordFieldNames:["value"],cellViewTag:"nimble-table-column-text-cell-view",groupHeaderViewTag:sF,delegatedEvents:[],sortOperation:LO}}}const IN=EN.compose({baseName:"table-column-text",template:GR,styles:ZR})
11343
+ bi.getOrCreate().withPrefix("nimble").register(IN())
11344
+ const DN=yt`
11345
11345
  ${Ao("grid")}
11346
11346
 
11347
11347
  :host {
@@ -11369,7 +11369,7 @@ const $N=yt`
11369
11369
  overflow: auto;
11370
11370
  }
11371
11371
  `
11372
- const MN=class extends oo{constructor(){super(),this.activeindicator=!1}}.compose({baseName:"tabs",baseClass:oo,template:(t,e)=>Z`
11372
+ const AN=class extends oo{constructor(){super(),this.activeindicator=!1}}.compose({baseName:"tabs",baseClass:oo,template:(t,e)=>Z`
11373
11373
  <template class="${t=>t.orientation}">
11374
11374
  ${te(0,e)}
11375
11375
  <div class="tablist" part="tablist" role="tablist">
@@ -11388,9 +11388,9 @@ const MN=class extends oo{constructor(){super(),this.activeindicator=!1}}.compos
11388
11388
  <slot name="tabpanel" ${Kt("tabpanels")}></slot>
11389
11389
  </div>
11390
11390
  </template>
11391
- `,styles:$N})
11392
- bi.getOrCreate().withPrefix("nimble").register(MN())
11393
- const _N=yt`
11391
+ `,styles:DN})
11392
+ bi.getOrCreate().withPrefix("nimble").register(AN())
11393
+ const TN=yt`
11394
11394
  ${Ao("flex")}
11395
11395
 
11396
11396
  :host {
@@ -11408,15 +11408,15 @@ const _N=yt`
11408
11408
  rgba(${za}, 0.3);
11409
11409
  margin: ${il} ${ol};
11410
11410
  }
11411
- `,EN=Z`
11411
+ `,ON=Z`
11412
11412
  <template slot="end">
11413
11413
  <div class="separator"></div>
11414
11414
  <slot></slot>
11415
11415
  </template>
11416
11416
  `
11417
- const IN=class extends Le{}.compose({baseName:"tabs-toolbar",template:EN,styles:_N})
11418
- bi.getOrCreate().withPrefix("nimble").register(IN())
11419
- const DN="outline",AN="block",TN=yt`
11417
+ const RN=class extends Le{}.compose({baseName:"tabs-toolbar",template:ON,styles:TN})
11418
+ bi.getOrCreate().withPrefix("nimble").register(RN())
11419
+ const FN="outline",NN="block",PN=yt`
11420
11420
  ${Ao("inline-flex")}
11421
11421
  ${rg}
11422
11422
 
@@ -11556,12 +11556,12 @@ const DN="outline",AN="block",TN=yt`
11556
11556
  top: ${ol};
11557
11557
  right: var(--ni-private-scrollbar-width);
11558
11558
  }
11559
- `.withBehaviors(ih(DN,yt`
11559
+ `.withBehaviors(ih(FN,yt`
11560
11560
  .control {
11561
11561
  border-color: rgba(${za}, 0.3);
11562
11562
  background-color: transparent;
11563
11563
  }
11564
- `),ih(AN,yt`
11564
+ `),ih(NN,yt`
11565
11565
  .control {
11566
11566
  background-color: rgba(${za}, 0.1);
11567
11567
  }
@@ -11579,8 +11579,8 @@ const DN="outline",AN="block",TN=yt`
11579
11579
  border-bottom-color: ${Va};
11580
11580
  }
11581
11581
  `))
11582
- class ON extends lo{constructor(){super(...arguments),this.appearance=DN,this.errorVisible=!1,this.scrollbarWidth=-1,this.updateScrollbarWidthQueued=!1}connectedCallback(){super.connectedCallback(),this.resizeObserver=new ResizeObserver((()=>this.onResize())),this.resizeObserver.observe(this)}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver?.disconnect()}onTextAreaInput(){this.handleTextInput(),this.queueUpdateScrollbarWidth()}placeholderChanged(){this.queueUpdateScrollbarWidth()}valueChanged(t,e){super.valueChanged(t,e),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}}t([st],ON.prototype,"appearance",void 0),t([st({attribute:"error-text"})],ON.prototype,"errorText",void 0),t([st({attribute:"error-visible",mode:"boolean"})],ON.prototype,"errorVisible",void 0),t([g],ON.prototype,"scrollbarWidth",void 0)
11583
- const RN=ON.compose({baseName:"text-area",baseClass:lo,template:()=>Z`
11582
+ class LN extends lo{constructor(){super(...arguments),this.appearance=FN,this.errorVisible=!1,this.scrollbarWidth=-1,this.updateScrollbarWidthQueued=!1}connectedCallback(){super.connectedCallback(),this.resizeObserver=new ResizeObserver((()=>this.onResize())),this.resizeObserver.observe(this)}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver?.disconnect()}onTextAreaInput(){this.handleTextInput(),this.queueUpdateScrollbarWidth()}placeholderChanged(){this.queueUpdateScrollbarWidth()}valueChanged(t,e){super.valueChanged(t,e),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}}t([st],LN.prototype,"appearance",void 0),t([st({attribute:"error-text"})],LN.prototype,"errorText",void 0),t([st({attribute:"error-visible",mode:"boolean"})],LN.prototype,"errorVisible",void 0),t([g],LN.prototype,"scrollbarWidth",void 0)
11583
+ const zN=LN.compose({baseName:"text-area",baseClass:lo,template:()=>Z`
11584
11584
  <label
11585
11585
  part="label"
11586
11586
  for="control"
@@ -11637,9 +11637,9 @@ const RN=ON.compose({baseName:"text-area",baseClass:lo,template:()=>Z`
11637
11637
  ></${dm}>
11638
11638
  ${Ym}
11639
11639
  </div>
11640
- `,styles:TN,shadowOptions:{delegatesFocus:!0}})
11641
- bi.getOrCreate().withPrefix("nimble").register(RN())
11642
- const FN="underline",NN="outline",PN="block",LN="frameless",zN=yt`
11640
+ `,styles:PN,shadowOptions:{delegatesFocus:!0}})
11641
+ bi.getOrCreate().withPrefix("nimble").register(zN())
11642
+ const VN="underline",HN="outline",BN="block",qN="frameless",UN=yt`
11643
11643
  ${Ao("inline-block")}
11644
11644
  ${rg}
11645
11645
 
@@ -11811,12 +11811,12 @@ const FN="underline",NN="outline",PN="block",LN="frameless",zN=yt`
11811
11811
  slot[name='actions']::slotted(*) {
11812
11812
  ${el.cssCustomProperty}: 24px;
11813
11813
  }
11814
- `.withBehaviors(ih(FN,yt`
11814
+ `.withBehaviors(ih(VN,yt`
11815
11815
  .root {
11816
11816
  border-bottom-width: ${al};
11817
11817
  padding-bottom: 0;
11818
11818
  }
11819
- `),ih(PN,yt`
11819
+ `),ih(BN,yt`
11820
11820
  .root {
11821
11821
  background-color: rgba(${za}, 0.1);
11822
11822
  }
@@ -11844,12 +11844,12 @@ const FN="underline",NN="outline",PN="block",LN="frameless",zN=yt`
11844
11844
  :host([disabled]) .root {
11845
11845
  background-color: rgba(${za}, 0.07);
11846
11846
  }
11847
- `),ih(NN,yt`
11847
+ `),ih(HN,yt`
11848
11848
  .root {
11849
11849
  border-width: ${al};
11850
11850
  padding: 0;
11851
11851
  }
11852
- `),ih(LN,yt`
11852
+ `),ih(qN,yt`
11853
11853
  .control {
11854
11854
  padding-left: ${al};
11855
11855
  padding-right: ${al};
@@ -11867,8 +11867,8 @@ const FN="underline",NN="outline",PN="block",LN="frameless",zN=yt`
11867
11867
  filter: invert(100%);
11868
11868
  }
11869
11869
  `))
11870
- class VN extends Li{constructor(){super(...arguments),this.appearance=FN,this.errorVisible=!1,this.fullBleed=!1}}t([st],VN.prototype,"appearance",void 0),t([st({attribute:"error-text"})],VN.prototype,"errorText",void 0),t([st({attribute:"error-visible",mode:"boolean"})],VN.prototype,"errorVisible",void 0),t([st({attribute:"full-bleed",mode:"boolean"})],VN.prototype,"fullBleed",void 0)
11871
- const HN=VN.compose({baseName:"text-field",baseClass:Li,template:(t,e)=>Z`
11870
+ class jN extends Li{constructor(){super(...arguments),this.appearance=VN,this.errorVisible=!1,this.fullBleed=!1}}t([st],jN.prototype,"appearance",void 0),t([st({attribute:"error-text"})],jN.prototype,"errorText",void 0),t([st({attribute:"error-visible",mode:"boolean"})],jN.prototype,"errorVisible",void 0),t([st({attribute:"full-bleed",mode:"boolean"})],jN.prototype,"fullBleed",void 0)
11871
+ const WN=jN.compose({baseName:"text-field",baseClass:Li,template:(t,e)=>Z`
11872
11872
  <template
11873
11873
  class="
11874
11874
  ${t=>t.readOnly?"readonly":""}
@@ -11928,7 +11928,7 @@ const HN=VN.compose({baseName:"text-field",baseClass:Li,template:(t,e)=>Z`
11928
11928
  ${Qt(0,e)}
11929
11929
  </div>
11930
11930
  </template>
11931
- `,styles:zN,shadowOptions:{delegatesFocus:!0},end:Z`
11931
+ `,styles:UN,shadowOptions:{delegatesFocus:!0},end:Z`
11932
11932
  <${dm}
11933
11933
  severity="error"
11934
11934
  class="error-icon"
@@ -11938,8 +11938,8 @@ const HN=VN.compose({baseName:"text-field",baseClass:Li,template:(t,e)=>Z`
11938
11938
  </span>
11939
11939
  ${Ym}
11940
11940
  `})
11941
- bi.getOrCreate().withPrefix("nimble").register(HN())
11942
- const BN=yt`
11941
+ bi.getOrCreate().withPrefix("nimble").register(WN())
11942
+ const ZN=yt`
11943
11943
  ${Ao("inline-flex")}
11944
11944
 
11945
11945
  :host {
@@ -12024,7 +12024,7 @@ const BN=yt`
12024
12024
  .status-icon {
12025
12025
  opacity: 0.6;
12026
12026
  }
12027
- `)),qN=Z`
12027
+ `)),GN=Z`
12028
12028
  ${zt((t=>t.tooltipVisible),Z`
12029
12029
  <${_h}
12030
12030
  class="anchored-region"
@@ -12057,11 +12057,11 @@ const BN=yt`
12057
12057
  </${_h}>
12058
12058
  `)}
12059
12059
  `
12060
- class UN extends _o{constructor(){super(...arguments),this.iconVisible=!1}}t([st],UN.prototype,"severity",void 0),t([st({attribute:"icon-visible",mode:"boolean"})],UN.prototype,"iconVisible",void 0)
12061
- const jN=UN.compose({baseName:"tooltip",baseClass:_o,template:qN,styles:BN})
12062
- bi.getOrCreate().withPrefix("nimble").register(jN())
12063
- const WN="group-selected",ZN="all",GN="leaves-only",KN="none"
12064
- class JN{constructor(t,e,n){this.ltr=t,this.rtl=e,this.source=n,this.attached=null}handleChange({target:t,token:e}){this.attach(e.getValueFor(t))}attach(t){this.attached!==this[t]&&(null!==this.attached&&this.source.$fastController.removeStyles(this.attached),this.attached=this[t],null!==this.attached&&this.source.$fastController.addStyles(this.attached))}}const XN=yt`
12060
+ class KN extends _o{constructor(){super(...arguments),this.iconVisible=!1}}t([st],KN.prototype,"severity",void 0),t([st({attribute:"icon-visible",mode:"boolean"})],KN.prototype,"iconVisible",void 0)
12061
+ const JN=KN.compose({baseName:"tooltip",baseClass:_o,template:GN,styles:ZN})
12062
+ bi.getOrCreate().withPrefix("nimble").register(JN())
12063
+ const XN="group-selected",YN="all",QN="leaves-only",tP="none"
12064
+ class eP{constructor(t,e,n){this.ltr=t,this.rtl=e,this.source=n,this.attached=null}handleChange({target:t,token:e}){this.attach(e.getValueFor(t))}attach(t){this.attached!==this[t]&&(null!==this.attached&&this.source.$fastController.removeStyles(this.attached),this.attached=this[t],null!==this.attached&&this.source.$fastController.addStyles(this.attached))}}const nP=yt`
12065
12065
  ${Ao("block")}
12066
12066
 
12067
12067
  :host {
@@ -12082,7 +12082,7 @@ class JN{constructor(t,e,n){this.ltr=t,this.rtl=e,this.source=n,this.attached=nu
12082
12082
  }
12083
12083
 
12084
12084
  ${""}
12085
- :host([${WN}])::after {
12085
+ :host([${XN}])::after {
12086
12086
  background: ${Ua};
12087
12087
  border-radius: 0px;
12088
12088
  content: '';
@@ -12104,7 +12104,7 @@ class JN{constructor(t,e,n){this.ltr=t,this.rtl=e,this.source=n,this.attached=nu
12104
12104
  background: ${Pa};
12105
12105
  }
12106
12106
 
12107
- :host([${WN}]) .positioning-region:hover {
12107
+ :host([${XN}]) .positioning-region:hover {
12108
12108
  background: ${Na};
12109
12109
  }
12110
12110
 
@@ -12210,7 +12210,7 @@ class JN{constructor(t,e,n){this.ltr=t,this.rtl=e,this.source=n,this.attached=nu
12210
12210
  display: block;
12211
12211
  }
12212
12212
  `.withBehaviors(new class{constructor(t,e){this.cache=new WeakMap,this.ltr=t,this.rtl=e}bind(t){this.attach(t)}unbind(t){const e=this.cache.get(t)
12213
- e&&Ma.unsubscribe(e)}attach(t){const e=this.cache.get(t)||new JN(this.ltr,this.rtl,t),n=Ma.getValueFor(t)
12213
+ e&&Ma.unsubscribe(e)}attach(t){const e=this.cache.get(t)||new eP(this.ltr,this.rtl,t),n=Ma.getValueFor(t)
12214
12214
  Ma.subscribe(e),e.attach(n),this.cache.set(t,e)}}(yt`
12215
12215
  .expand-collapse-button {
12216
12216
  left: var(
@@ -12242,8 +12242,8 @@ Ma.subscribe(e),e.attach(n),this.cache.set(t,e)}}(yt`
12242
12242
  transform: rotate(135deg);
12243
12243
  }
12244
12244
  `))
12245
- class YN extends Io{constructor(){super(...arguments),this.groupSelected=!1}}t([st({attribute:"group-selected",mode:"boolean"})],YN.prototype,"groupSelected",void 0)
12246
- const QN=YN.compose({baseName:"tree-item",baseClass:Io,template:(t,e)=>Z`
12245
+ class iP extends Io{constructor(){super(...arguments),this.groupSelected=!1}}t([st({attribute:"group-selected",mode:"boolean"})],iP.prototype,"groupSelected",void 0)
12246
+ const oP=iP.compose({baseName:"tree-item",baseClass:Io,template:(t,e)=>Z`
12247
12247
  <template
12248
12248
  role="treeitem"
12249
12249
  slot="${t=>t.isNestedItem()?"item":void 0}"
@@ -12283,9 +12283,9 @@ const QN=YN.compose({baseName:"tree-item",baseClass:Io,template:(t,e)=>Z`
12283
12283
  </div>
12284
12284
  `)}
12285
12285
  </template>
12286
- `,styles:XN,expandCollapseGlyph:Bh.data})
12287
- bi.getOrCreate().withPrefix("nimble").register(QN())
12288
- const tP=yt`
12286
+ `,styles:nP,expandCollapseGlyph:Bh.data})
12287
+ bi.getOrCreate().withPrefix("nimble").register(oP())
12288
+ const rP=yt`
12289
12289
  ${Ao("flex")}
12290
12290
 
12291
12291
  :host {
@@ -12297,7 +12297,7 @@ const tP=yt`
12297
12297
  :host(${Ro}) {
12298
12298
  outline: none;
12299
12299
  }
12300
- `,eP=Z`
12300
+ `,sP=Z`
12301
12301
  <template
12302
12302
  role="tree"
12303
12303
  ${Ft("treeView")}
@@ -12311,246 +12311,246 @@ const tP=yt`
12311
12311
  <slot ${Kt("slottedTreeItems")}></slot>
12312
12312
  </template>
12313
12313
  `
12314
- class nP extends Do{constructor(){super(...arguments),this.selectionMode=ZN,this.selectedItems=[]}handleClick(t){if(t.defaultPrevented)return!1
12314
+ class aP extends Do{constructor(){super(...arguments),this.selectionMode=YN,this.selectedItems=[]}handleClick(t){if(t.defaultPrevented)return!1
12315
12315
  if(!(t.target instanceof Element&&Eo(t.target)))return!0
12316
12316
  const e=t.target
12317
- return!e.disabled&&(this.canSelect(e)?e.selected=!0:this.itemHasChildren(e)&&(e.expanded=!e.expanded),!0)}canSelect(t){switch(this.selectionMode){case ZN:return!0
12318
- case KN:return!1
12319
- case GN:return!this.itemHasChildren(t)
12320
- default:return!0}}itemHasChildren(t){return null!==t.querySelector('[role="treeitem"]')}selectedItemsChanged(){for(const t of Array.from(this.children))t instanceof YN&&(t.groupSelected=!1)
12317
+ return!e.disabled&&(this.canSelect(e)?e.selected=!0:this.itemHasChildren(e)&&(e.expanded=!e.expanded),!0)}canSelect(t){switch(this.selectionMode){case YN:return!0
12318
+ case tP:return!1
12319
+ case QN:return!this.itemHasChildren(t)
12320
+ default:return!0}}itemHasChildren(t){return null!==t.querySelector('[role="treeitem"]')}selectedItemsChanged(){for(const t of Array.from(this.children))t instanceof iP&&(t.groupSelected=!1)
12321
12321
  for(let t of this.selectedItems){for(;null!==t.parentElement&&t.parentElement!==this;)t=t.parentElement
12322
- t instanceof YN&&(t.groupSelected=!0)}}}t([st({attribute:"selection-mode"})],nP.prototype,"selectionMode",void 0),t([g],nP.prototype,"selectedItems",void 0)
12323
- const iP=nP.compose({baseName:"tree-view",baseClass:Do,template:eP,styles:tP})
12324
- bi.getOrCreate().withPrefix("nimble").register(iP())
12325
- const oP=Z`<template slot="unit"></template>`
12326
- class rP{constructor(t,e,n){this.singular=t,this.plural=e,this.symbol=n}}class sP extends KF{constructor(t,{unitTranslations:e,scaledPrefixText:n}){if(super(t),!e.get("en"))throw new Error('English translations must exist with locale string "en"')
12327
- this.pluralRules=new Intl.PluralRules(this.locale),this.formatter=new Intl.NumberFormat(this.locale,this.intlNumberFormatOptions),this.unitTranslation=this.getTranslationToUse(e,this.locale),this.scaledPrefixText=n}static createFactory(t){return e=>new sP(e,t)}format(t){const e=this.formatter.format(t)
12322
+ t instanceof iP&&(t.groupSelected=!0)}}}t([st({attribute:"selection-mode"})],aP.prototype,"selectionMode",void 0),t([g],aP.prototype,"selectedItems",void 0)
12323
+ const lP=aP.compose({baseName:"tree-view",baseClass:Do,template:sP,styles:rP})
12324
+ bi.getOrCreate().withPrefix("nimble").register(lP())
12325
+ const cP=Z`<template slot="unit"></template>`
12326
+ class dP{constructor(t,e,n){this.singular=t,this.plural=e,this.symbol=n}}class hP extends QF{constructor(t,{unitTranslations:e,scaledPrefixText:n}){if(super(t),!e.get("en"))throw new Error('English translations must exist with locale string "en"')
12327
+ this.pluralRules=new Intl.PluralRules(this.locale),this.formatter=new Intl.NumberFormat(this.locale,this.intlNumberFormatOptions),this.unitTranslation=this.getTranslationToUse(e,this.locale),this.scaledPrefixText=n}static createFactory(t){return e=>new hP(e,t)}format(t){const e=this.formatter.format(t)
12328
12328
  if(""!==this.scaledPrefixText)return`${e} ${this.scaledPrefixText}${this.unitTranslation.symbol}`
12329
12329
  return`${e} ${"one"===this.pluralRules.select(t)?this.unitTranslation.singular:this.unitTranslation.plural}`}getTranslationToUse(t,e){const n=new Intl.Locale(e??"en"),i=n.language,o=n.region
12330
- return(o?t.get(`${i}-${o}`):void 0)??t.get(i)??t.get("en")}}const aP=new Map([["en",new rP("byte","bytes","B")],["fr",new rP("octet","octets","o")],["de",new rP("Byte","Byte","B")],["ja",new rP("バイト","バイト","B")],["zh",new rP("字节","字节","B")]]),lP=[[1,""],[1024,"Ki"],[1048576,"Mi"],[1024**3,"Gi"],[1024**4,"Ti"],[1024**5,"Pi"]]
12331
- const cP=new class extends YF{constructor(){super(lP.map((([t,e])=>new XF(t,sP.createFactory({unitTranslations:aP,scaledPrefixText:e})))))}},dP=[[1,"byte","long"],[1e3,"kilobyte","short"],[1e6,"megabyte","short"],[1e3**3,"gigabyte","short"],[1e3**4,"terabyte","short"],[1e3**5,"petabyte","short"]]
12332
- const hP=new class extends YF{constructor(){super(dP.map((([t,e,n])=>new XF(t,JF.createFactory({style:"unit",unit:e,unitDisplay:n})))))}}
12333
- class uP extends sN{constructor(){super(),this.binary=!1,this.resolvedUnitScale=hP}binaryChanged(){this.resolvedUnitScale=this.binary?cP:hP}}t([st({mode:"boolean"})],uP.prototype,"binary",void 0)
12334
- const pP=uP.compose({baseName:"unit-byte",template:oP})
12335
- bi.getOrCreate().withPrefix("nimble").register(pP())
12336
- const fP=[[1e-15,"f"],[1e-12,"p"],[1e-9,"n"],[10**-6,"μ"],[.001,"m"],[.01,"c"],[.1,"d"],[1,""],[1e3,"k"],[10**6,"M"],[10**9,"G"],[10**12,"T"],[10**15,"P"],[10**18,"E"]],mP=new Map([["en",new rP("volt","volts","V")],["fr",new rP("volt","volts","V")],["de",new rP("Volt","Volt","V")],["ja",new rP("ボルト","ボルト","V")],["zh",new rP("伏特","伏特","V")]])
12337
- const gP=new class extends YF{constructor(){super(fP.map((([t,e])=>new XF(t,sP.createFactory({unitTranslations:mP,scaledPrefixText:e})))))}}
12338
- const vP=class extends sN{constructor(){super(),this.resolvedUnitScale=gP}}.compose({baseName:"unit-volt",template:oP})
12339
- bi.getOrCreate().withPrefix("nimble").register(vP())
12340
- var bP={value:()=>{}}
12341
- function yP(){for(var t,e=0,n=arguments.length,i={};e<n;++e){if(!(t=arguments[e]+"")||t in i||/[\s.]/.test(t))throw new Error("illegal type: "+t)
12342
- i[t]=[]}return new wP(i)}function wP(t){this._=t}function xP(t,e){for(var n,i=0,o=t.length;i<o;++i)if((n=t[i]).name===e)return n.value}function CP(t,e,n){for(var i=0,o=t.length;i<o;++i)if(t[i].name===e){t[i]=bP,t=t.slice(0,i).concat(t.slice(i+1))
12343
- break}return null!=n&&t.push({name:e,value:n}),t}wP.prototype=yP.prototype={constructor:wP,on:function(t,e){var n,i,o=this._,r=(i=o,(t+"").trim().split(/^|\s+/).map((function(t){var e="",n=t.indexOf(".")
12330
+ return(o?t.get(`${i}-${o}`):void 0)??t.get(i)??t.get("en")}}const uP=new Map([["en",new dP("byte","bytes","B")],["fr",new dP("octet","octets","o")],["de",new dP("Byte","Byte","B")],["ja",new dP("バイト","バイト","B")],["zh",new dP("字节","字节","B")]]),pP=[[1,""],[1024,"Ki"],[1048576,"Mi"],[1024**3,"Gi"],[1024**4,"Ti"],[1024**5,"Pi"]]
12331
+ const fP=new class extends nN{constructor(){super(pP.map((([t,e])=>new eN(t,hP.createFactory({unitTranslations:uP,scaledPrefixText:e})))))}},mP=[[1,"byte","long"],[1e3,"kilobyte","short"],[1e6,"megabyte","short"],[1e3**3,"gigabyte","short"],[1e3**4,"terabyte","short"],[1e3**5,"petabyte","short"]]
12332
+ const gP=new class extends nN{constructor(){super(mP.map((([t,e,n])=>new eN(t,tN.createFactory({style:"unit",unit:e,unitDisplay:n})))))}}
12333
+ class vP extends dN{constructor(){super(),this.binary=!1,this.resolvedUnitScale=gP}binaryChanged(){this.resolvedUnitScale=this.binary?fP:gP}}t([st({mode:"boolean"})],vP.prototype,"binary",void 0)
12334
+ const bP=vP.compose({baseName:"unit-byte",template:cP})
12335
+ bi.getOrCreate().withPrefix("nimble").register(bP())
12336
+ const yP=[[1e-15,"f"],[1e-12,"p"],[1e-9,"n"],[10**-6,"μ"],[.001,"m"],[.01,"c"],[.1,"d"],[1,""],[1e3,"k"],[10**6,"M"],[10**9,"G"],[10**12,"T"],[10**15,"P"],[10**18,"E"]],wP=new Map([["en",new dP("volt","volts","V")],["fr",new dP("volt","volts","V")],["de",new dP("Volt","Volt","V")],["ja",new dP("ボルト","ボルト","V")],["zh",new dP("伏特","伏特","V")]])
12337
+ const xP=new class extends nN{constructor(){super(yP.map((([t,e])=>new eN(t,hP.createFactory({unitTranslations:wP,scaledPrefixText:e})))))}}
12338
+ const CP=class extends dN{constructor(){super(),this.resolvedUnitScale=xP}}.compose({baseName:"unit-volt",template:cP})
12339
+ bi.getOrCreate().withPrefix("nimble").register(CP())
12340
+ var kP={value:()=>{}}
12341
+ function SP(){for(var t,e=0,n=arguments.length,i={};e<n;++e){if(!(t=arguments[e]+"")||t in i||/[\s.]/.test(t))throw new Error("illegal type: "+t)
12342
+ i[t]=[]}return new $P(i)}function $P(t){this._=t}function MP(t,e){for(var n,i=0,o=t.length;i<o;++i)if((n=t[i]).name===e)return n.value}function _P(t,e,n){for(var i=0,o=t.length;i<o;++i)if(t[i].name===e){t[i]=kP,t=t.slice(0,i).concat(t.slice(i+1))
12343
+ break}return null!=n&&t.push({name:e,value:n}),t}$P.prototype=SP.prototype={constructor:$P,on:function(t,e){var n,i,o=this._,r=(i=o,(t+"").trim().split(/^|\s+/).map((function(t){var e="",n=t.indexOf(".")
12344
12344
  if(n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),t&&!i.hasOwnProperty(t))throw new Error("unknown type: "+t)
12345
12345
  return{type:t,name:e}}))),s=-1,a=r.length
12346
12346
  if(!(arguments.length<2)){if(null!=e&&"function"!=typeof e)throw new Error("invalid callback: "+e)
12347
- for(;++s<a;)if(n=(t=r[s]).type)o[n]=CP(o[n],t.name,e)
12348
- else if(null==e)for(n in o)o[n]=CP(o[n],t.name,null)
12349
- return this}for(;++s<a;)if((n=(t=r[s]).type)&&(n=xP(o[n],t.name)))return n},copy:function(){var t={},e=this._
12347
+ for(;++s<a;)if(n=(t=r[s]).type)o[n]=_P(o[n],t.name,e)
12348
+ else if(null==e)for(n in o)o[n]=_P(o[n],t.name,null)
12349
+ return this}for(;++s<a;)if((n=(t=r[s]).type)&&(n=MP(o[n],t.name)))return n},copy:function(){var t={},e=this._
12350
12350
  for(var n in e)t[n]=e[n].slice()
12351
- return new wP(t)},call:function(t,e){if((n=arguments.length-2)>0)for(var n,i,o=new Array(n),r=0;r<n;++r)o[r]=arguments[r+2]
12351
+ return new $P(t)},call:function(t,e){if((n=arguments.length-2)>0)for(var n,i,o=new Array(n),r=0;r<n;++r)o[r]=arguments[r+2]
12352
12352
  if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t)
12353
12353
  for(r=0,n=(i=this._[t]).length;r<n;++r)i[r].value.apply(e,o)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t)
12354
12354
  for(var i=this._[t],o=0,r=i.length;o<r;++o)i[o].value.apply(e,n)}}
12355
- var kP="http://www.w3.org/1999/xhtml",SP={svg:"http://www.w3.org/2000/svg",xhtml:kP,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"}
12356
- function $P(t){var e=t+="",n=e.indexOf(":")
12357
- return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),SP.hasOwnProperty(e)?{space:SP[e],local:t}:t}function MP(t){return function(){var e=this.ownerDocument,n=this.namespaceURI
12358
- return n===kP&&e.documentElement.namespaceURI===kP?e.createElement(t):e.createElementNS(n,t)}}function _P(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function EP(t){var e=$P(t)
12359
- return(e.local?_P:MP)(e)}function IP(){}function DP(t){return null==t?IP:function(){return this.querySelector(t)}}function AP(){return[]}function TP(t){return null==t?AP:function(){return this.querySelectorAll(t)}}function OP(t){return function(){return null==(e=t.apply(this,arguments))?[]:Array.isArray(e)?e:Array.from(e)
12360
- var e}}function RP(t){return function(){return this.matches(t)}}function FP(t){return function(e){return e.matches(t)}}var NP=Array.prototype.find
12361
- function PP(){return this.firstElementChild}var LP=Array.prototype.filter
12362
- function zP(){return Array.from(this.children)}function VP(t){return new Array(t.length)}function HP(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function BP(t,e,n,i,o,r){for(var s,a=0,l=e.length,c=r.length;a<c;++a)(s=e[a])?(s.__data__=r[a],i[a]=s):n[a]=new HP(t,r[a])
12363
- for(;a<l;++a)(s=e[a])&&(o[a]=s)}function qP(t,e,n,i,o,r,s){var a,l,c,d=new Map,h=e.length,u=r.length,p=new Array(h)
12355
+ var EP="http://www.w3.org/1999/xhtml",IP={svg:"http://www.w3.org/2000/svg",xhtml:EP,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"}
12356
+ function DP(t){var e=t+="",n=e.indexOf(":")
12357
+ return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),IP.hasOwnProperty(e)?{space:IP[e],local:t}:t}function AP(t){return function(){var e=this.ownerDocument,n=this.namespaceURI
12358
+ return n===EP&&e.documentElement.namespaceURI===EP?e.createElement(t):e.createElementNS(n,t)}}function TP(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function OP(t){var e=DP(t)
12359
+ return(e.local?TP:AP)(e)}function RP(){}function FP(t){return null==t?RP:function(){return this.querySelector(t)}}function NP(){return[]}function PP(t){return null==t?NP:function(){return this.querySelectorAll(t)}}function LP(t){return function(){return null==(e=t.apply(this,arguments))?[]:Array.isArray(e)?e:Array.from(e)
12360
+ var e}}function zP(t){return function(){return this.matches(t)}}function VP(t){return function(e){return e.matches(t)}}var HP=Array.prototype.find
12361
+ function BP(){return this.firstElementChild}var qP=Array.prototype.filter
12362
+ function UP(){return Array.from(this.children)}function jP(t){return new Array(t.length)}function WP(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function ZP(t,e,n,i,o,r){for(var s,a=0,l=e.length,c=r.length;a<c;++a)(s=e[a])?(s.__data__=r[a],i[a]=s):n[a]=new WP(t,r[a])
12363
+ for(;a<l;++a)(s=e[a])&&(o[a]=s)}function GP(t,e,n,i,o,r,s){var a,l,c,d=new Map,h=e.length,u=r.length,p=new Array(h)
12364
12364
  for(a=0;a<h;++a)(l=e[a])&&(p[a]=c=s.call(l,l.__data__,a,e)+"",d.has(c)?o[a]=l:d.set(c,l))
12365
- for(a=0;a<u;++a)c=s.call(t,r[a],a,r)+"",(l=d.get(c))?(i[a]=l,l.__data__=r[a],d.delete(c)):n[a]=new HP(t,r[a])
12366
- for(a=0;a<h;++a)(l=e[a])&&d.get(p[a])===l&&(o[a]=l)}function UP(t){return t.__data__}function jP(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function WP(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function ZP(t){return function(){this.removeAttribute(t)}}function GP(t){return function(){this.removeAttributeNS(t.space,t.local)}}function KP(t,e){return function(){this.setAttribute(t,e)}}function JP(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function XP(t,e){return function(){var n=e.apply(this,arguments)
12367
- null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function YP(t,e){return function(){var n=e.apply(this,arguments)
12368
- null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function QP(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function tL(t){return function(){this.style.removeProperty(t)}}function eL(t,e,n){return function(){this.style.setProperty(t,e,n)}}function nL(t,e,n){return function(){var i=e.apply(this,arguments)
12369
- null==i?this.style.removeProperty(t):this.style.setProperty(t,i,n)}}function iL(t,e){return t.style.getPropertyValue(e)||QP(t).getComputedStyle(t,null).getPropertyValue(e)}function oL(t){return function(){delete this[t]}}function rL(t,e){return function(){this[t]=e}}function sL(t,e){return function(){var n=e.apply(this,arguments)
12370
- null==n?delete this[t]:this[t]=n}}function aL(t){return t.trim().split(/^|\s+/)}function lL(t){return t.classList||new cL(t)}function cL(t){this._node=t,this._names=aL(t.getAttribute("class")||"")}function dL(t,e){for(var n=lL(t),i=-1,o=e.length;++i<o;)n.add(e[i])}function hL(t,e){for(var n=lL(t),i=-1,o=e.length;++i<o;)n.remove(e[i])}function uL(t){return function(){dL(this,t)}}function pL(t){return function(){hL(this,t)}}function fL(t,e){return function(){(e.apply(this,arguments)?dL:hL)(this,t)}}function mL(){this.textContent=""}function gL(t){return function(){this.textContent=t}}function vL(t){return function(){var e=t.apply(this,arguments)
12371
- this.textContent=null==e?"":e}}function bL(){this.innerHTML=""}function yL(t){return function(){this.innerHTML=t}}function wL(t){return function(){var e=t.apply(this,arguments)
12372
- this.innerHTML=null==e?"":e}}function xL(){this.nextSibling&&this.parentNode.appendChild(this)}function CL(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function kL(){return null}function SL(){var t=this.parentNode
12373
- t&&t.removeChild(this)}function $L(){var t=this.cloneNode(!1),e=this.parentNode
12374
- return e?e.insertBefore(t,this.nextSibling):t}function ML(){var t=this.cloneNode(!0),e=this.parentNode
12375
- return e?e.insertBefore(t,this.nextSibling):t}function _L(t){return function(){var e=this.__on
12376
- if(e){for(var n,i=0,o=-1,r=e.length;i<r;++i)n=e[i],t.type&&n.type!==t.type||n.name!==t.name?e[++o]=n:this.removeEventListener(n.type,n.listener,n.options);++o?e.length=o:delete this.__on}}}function EL(t,e,n){return function(){var i,o=this.__on,r=function(t){return function(e){t.call(this,e,this.__data__)}}(e)
12365
+ for(a=0;a<u;++a)c=s.call(t,r[a],a,r)+"",(l=d.get(c))?(i[a]=l,l.__data__=r[a],d.delete(c)):n[a]=new WP(t,r[a])
12366
+ for(a=0;a<h;++a)(l=e[a])&&d.get(p[a])===l&&(o[a]=l)}function KP(t){return t.__data__}function JP(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function XP(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function YP(t){return function(){this.removeAttribute(t)}}function QP(t){return function(){this.removeAttributeNS(t.space,t.local)}}function tL(t,e){return function(){this.setAttribute(t,e)}}function eL(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function nL(t,e){return function(){var n=e.apply(this,arguments)
12367
+ null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function iL(t,e){return function(){var n=e.apply(this,arguments)
12368
+ null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function oL(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function rL(t){return function(){this.style.removeProperty(t)}}function sL(t,e,n){return function(){this.style.setProperty(t,e,n)}}function aL(t,e,n){return function(){var i=e.apply(this,arguments)
12369
+ null==i?this.style.removeProperty(t):this.style.setProperty(t,i,n)}}function lL(t,e){return t.style.getPropertyValue(e)||oL(t).getComputedStyle(t,null).getPropertyValue(e)}function cL(t){return function(){delete this[t]}}function dL(t,e){return function(){this[t]=e}}function hL(t,e){return function(){var n=e.apply(this,arguments)
12370
+ null==n?delete this[t]:this[t]=n}}function uL(t){return t.trim().split(/^|\s+/)}function pL(t){return t.classList||new fL(t)}function fL(t){this._node=t,this._names=uL(t.getAttribute("class")||"")}function mL(t,e){for(var n=pL(t),i=-1,o=e.length;++i<o;)n.add(e[i])}function gL(t,e){for(var n=pL(t),i=-1,o=e.length;++i<o;)n.remove(e[i])}function vL(t){return function(){mL(this,t)}}function bL(t){return function(){gL(this,t)}}function yL(t,e){return function(){(e.apply(this,arguments)?mL:gL)(this,t)}}function wL(){this.textContent=""}function xL(t){return function(){this.textContent=t}}function CL(t){return function(){var e=t.apply(this,arguments)
12371
+ this.textContent=null==e?"":e}}function kL(){this.innerHTML=""}function SL(t){return function(){this.innerHTML=t}}function $L(t){return function(){var e=t.apply(this,arguments)
12372
+ this.innerHTML=null==e?"":e}}function ML(){this.nextSibling&&this.parentNode.appendChild(this)}function _L(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function EL(){return null}function IL(){var t=this.parentNode
12373
+ t&&t.removeChild(this)}function DL(){var t=this.cloneNode(!1),e=this.parentNode
12374
+ return e?e.insertBefore(t,this.nextSibling):t}function AL(){var t=this.cloneNode(!0),e=this.parentNode
12375
+ return e?e.insertBefore(t,this.nextSibling):t}function TL(t){return function(){var e=this.__on
12376
+ if(e){for(var n,i=0,o=-1,r=e.length;i<r;++i)n=e[i],t.type&&n.type!==t.type||n.name!==t.name?e[++o]=n:this.removeEventListener(n.type,n.listener,n.options);++o?e.length=o:delete this.__on}}}function OL(t,e,n){return function(){var i,o=this.__on,r=function(t){return function(e){t.call(this,e,this.__data__)}}(e)
12377
12377
  if(o)for(var s=0,a=o.length;s<a;++s)if((i=o[s]).type===t.type&&i.name===t.name)return this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=r,i.options=n),void(i.value=e)
12378
- this.addEventListener(t.type,r,n),i={type:t.type,name:t.name,value:e,listener:r,options:n},o?o.push(i):this.__on=[i]}}function IL(t,e,n){var i=QP(t),o=i.CustomEvent
12379
- "function"==typeof o?o=new o(e,n):(o=i.document.createEvent("Event"),n?(o.initEvent(e,n.bubbles,n.cancelable),o.detail=n.detail):o.initEvent(e,!1,!1)),t.dispatchEvent(o)}function DL(t,e){return function(){return IL(this,t,e)}}function AL(t,e){return function(){return IL(this,t,e.apply(this,arguments))}}HP.prototype={constructor:HP,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}},cL.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t)
12378
+ this.addEventListener(t.type,r,n),i={type:t.type,name:t.name,value:e,listener:r,options:n},o?o.push(i):this.__on=[i]}}function RL(t,e,n){var i=oL(t),o=i.CustomEvent
12379
+ "function"==typeof o?o=new o(e,n):(o=i.document.createEvent("Event"),n?(o.initEvent(e,n.bubbles,n.cancelable),o.detail=n.detail):o.initEvent(e,!1,!1)),t.dispatchEvent(o)}function FL(t,e){return function(){return RL(this,t,e)}}function NL(t,e){return function(){return RL(this,t,e.apply(this,arguments))}}WP.prototype={constructor:WP,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}},fL.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t)
12380
12380
  e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}}
12381
- var TL=[null]
12382
- function OL(t,e){this._groups=t,this._parents=e}function RL(){return new OL([[document.documentElement]],TL)}function FL(t){return"string"==typeof t?new OL([[document.querySelector(t)]],[document.documentElement]):new OL([[t]],TL)}function NL(t,e){if(t=function(t){let e
12381
+ var PL=[null]
12382
+ function LL(t,e){this._groups=t,this._parents=e}function zL(){return new LL([[document.documentElement]],PL)}function VL(t){return"string"==typeof t?new LL([[document.querySelector(t)]],[document.documentElement]):new LL([[t]],PL)}function HL(t,e){if(t=function(t){let e
12383
12383
  for(;e=t.sourceEvent;)t=e
12384
12384
  return t}(t),void 0===e&&(e=t.currentTarget),e){var n=e.ownerSVGElement||e
12385
12385
  if(n.createSVGPoint){var i=n.createSVGPoint()
12386
12386
  return i.x=t.clientX,i.y=t.clientY,[(i=i.matrixTransform(e.getScreenCTM().inverse())).x,i.y]}if(e.getBoundingClientRect){var o=e.getBoundingClientRect()
12387
- return[t.clientX-o.left-e.clientLeft,t.clientY-o.top-e.clientTop]}}return[t.pageX,t.pageY]}OL.prototype=RL.prototype={constructor:OL,select:function(t){"function"!=typeof t&&(t=DP(t))
12387
+ return[t.clientX-o.left-e.clientLeft,t.clientY-o.top-e.clientTop]}}return[t.pageX,t.pageY]}LL.prototype=zL.prototype={constructor:LL,select:function(t){"function"!=typeof t&&(t=FP(t))
12388
12388
  for(var e=this._groups,n=e.length,i=new Array(n),o=0;o<n;++o)for(var r,s,a=e[o],l=a.length,c=i[o]=new Array(l),d=0;d<l;++d)(r=a[d])&&(s=t.call(r,r.__data__,d,a))&&("__data__"in r&&(s.__data__=r.__data__),c[d]=s)
12389
- return new OL(i,this._parents)},selectAll:function(t){t="function"==typeof t?OP(t):TP(t)
12389
+ return new LL(i,this._parents)},selectAll:function(t){t="function"==typeof t?LP(t):PP(t)
12390
12390
  for(var e=this._groups,n=e.length,i=[],o=[],r=0;r<n;++r)for(var s,a=e[r],l=a.length,c=0;c<l;++c)(s=a[c])&&(i.push(t.call(s,s.__data__,c,a)),o.push(s))
12391
- return new OL(i,o)},selectChild:function(t){return this.select(null==t?PP:function(t){return function(){return NP.call(this.children,t)}}("function"==typeof t?t:FP(t)))},selectChildren:function(t){return this.selectAll(null==t?zP:function(t){return function(){return LP.call(this.children,t)}}("function"==typeof t?t:FP(t)))},filter:function(t){"function"!=typeof t&&(t=RP(t))
12391
+ return new LL(i,o)},selectChild:function(t){return this.select(null==t?BP:function(t){return function(){return HP.call(this.children,t)}}("function"==typeof t?t:VP(t)))},selectChildren:function(t){return this.selectAll(null==t?UP:function(t){return function(){return qP.call(this.children,t)}}("function"==typeof t?t:VP(t)))},filter:function(t){"function"!=typeof t&&(t=zP(t))
12392
12392
  for(var e=this._groups,n=e.length,i=new Array(n),o=0;o<n;++o)for(var r,s=e[o],a=s.length,l=i[o]=[],c=0;c<a;++c)(r=s[c])&&t.call(r,r.__data__,c,s)&&l.push(r)
12393
- return new OL(i,this._parents)},data:function(t,e){if(!arguments.length)return Array.from(this,UP)
12394
- var n,i=e?qP:BP,o=this._parents,r=this._groups
12393
+ return new LL(i,this._parents)},data:function(t,e){if(!arguments.length)return Array.from(this,KP)
12394
+ var n,i=e?GP:ZP,o=this._parents,r=this._groups
12395
12395
  "function"!=typeof t&&(n=t,t=function(){return n})
12396
- for(var s=r.length,a=new Array(s),l=new Array(s),c=new Array(s),d=0;d<s;++d){var h=o[d],u=r[d],p=u.length,f=jP(t.call(h,h&&h.__data__,d,o)),m=f.length,g=l[d]=new Array(m),v=a[d]=new Array(m)
12396
+ for(var s=r.length,a=new Array(s),l=new Array(s),c=new Array(s),d=0;d<s;++d){var h=o[d],u=r[d],p=u.length,f=JP(t.call(h,h&&h.__data__,d,o)),m=f.length,g=l[d]=new Array(m),v=a[d]=new Array(m)
12397
12397
  i(h,u,g,v,c[d]=new Array(p),f,e)
12398
- for(var b,y,w=0,x=0;w<m;++w)if(b=g[w]){for(w>=x&&(x=w+1);!(y=v[x])&&++x<m;);b._next=y||null}}return(a=new OL(a,o))._enter=l,a._exit=c,a},enter:function(){return new OL(this._enter||this._groups.map(VP),this._parents)},exit:function(){return new OL(this._exit||this._groups.map(VP),this._parents)},join:function(t,e,n){var i=this.enter(),o=this,r=this.exit()
12398
+ for(var b,y,w=0,x=0;w<m;++w)if(b=g[w]){for(w>=x&&(x=w+1);!(y=v[x])&&++x<m;);b._next=y||null}}return(a=new LL(a,o))._enter=l,a._exit=c,a},enter:function(){return new LL(this._enter||this._groups.map(jP),this._parents)},exit:function(){return new LL(this._exit||this._groups.map(jP),this._parents)},join:function(t,e,n){var i=this.enter(),o=this,r=this.exit()
12399
12399
  return"function"==typeof t?(i=t(i))&&(i=i.selection()):i=i.append(t+""),null!=e&&(o=e(o))&&(o=o.selection()),null==n?r.remove():n(r),i&&o?i.merge(o).order():o},merge:function(t){for(var e=t.selection?t.selection():t,n=this._groups,i=e._groups,o=n.length,r=i.length,s=Math.min(o,r),a=new Array(o),l=0;l<s;++l)for(var c,d=n[l],h=i[l],u=d.length,p=a[l]=new Array(u),f=0;f<u;++f)(c=d[f]||h[f])&&(p[f]=c)
12400
12400
  for(;l<o;++l)a[l]=n[l]
12401
- return new OL(a,this._parents)},selection:function(){return this},order:function(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var i,o=t[e],r=o.length-1,s=o[r];--r>=0;)(i=o[r])&&(s&&4^i.compareDocumentPosition(s)&&s.parentNode.insertBefore(i,s),s=i)
12402
- return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=WP)
12401
+ return new LL(a,this._parents)},selection:function(){return this},order:function(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var i,o=t[e],r=o.length-1,s=o[r];--r>=0;)(i=o[r])&&(s&&4^i.compareDocumentPosition(s)&&s.parentNode.insertBefore(i,s),s=i)
12402
+ return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=XP)
12403
12403
  for(var n=this._groups,i=n.length,o=new Array(i),r=0;r<i;++r){for(var s,a=n[r],l=a.length,c=o[r]=new Array(l),d=0;d<l;++d)(s=a[d])&&(c[d]=s)
12404
- c.sort(e)}return new OL(o,this._parents).order()},call:function(){var t=arguments[0]
12404
+ c.sort(e)}return new LL(o,this._parents).order()},call:function(){var t=arguments[0]
12405
12405
  return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var i=t[e],o=0,r=i.length;o<r;++o){var s=i[o]
12406
12406
  if(s)return s}return null},size:function(){let t=0
12407
12407
  for(const e of this)++t
12408
12408
  return t},empty:function(){return!this.node()},each:function(t){for(var e=this._groups,n=0,i=e.length;n<i;++n)for(var o,r=e[n],s=0,a=r.length;s<a;++s)(o=r[s])&&t.call(o,o.__data__,s,r)
12409
- return this},attr:function(t,e){var n=$P(t)
12409
+ return this},attr:function(t,e){var n=DP(t)
12410
12410
  if(arguments.length<2){var i=this.node()
12411
- return n.local?i.getAttributeNS(n.space,n.local):i.getAttribute(n)}return this.each((null==e?n.local?GP:ZP:"function"==typeof e?n.local?YP:XP:n.local?JP:KP)(n,e))},style:function(t,e,n){return arguments.length>1?this.each((null==e?tL:"function"==typeof e?nL:eL)(t,e,null==n?"":n)):iL(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?oL:"function"==typeof e?sL:rL)(t,e)):this.node()[t]},classed:function(t,e){var n=aL(t+"")
12412
- if(arguments.length<2){for(var i=lL(this.node()),o=-1,r=n.length;++o<r;)if(!i.contains(n[o]))return!1
12413
- return!0}return this.each(("function"==typeof e?fL:e?uL:pL)(n,e))},text:function(t){return arguments.length?this.each(null==t?mL:("function"==typeof t?vL:gL)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?bL:("function"==typeof t?wL:yL)(t)):this.node().innerHTML},raise:function(){return this.each(xL)},lower:function(){return this.each(CL)},append:function(t){var e="function"==typeof t?t:EP(t)
12414
- return this.select((function(){return this.appendChild(e.apply(this,arguments))}))},insert:function(t,e){var n="function"==typeof t?t:EP(t),i=null==e?kL:"function"==typeof e?e:DP(e)
12415
- return this.select((function(){return this.insertBefore(n.apply(this,arguments),i.apply(this,arguments)||null)}))},remove:function(){return this.each(SL)},clone:function(t){return this.select(t?ML:$L)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,e,n){var i,o,r=function(t){return t.trim().split(/^|\s+/).map((function(t){var e="",n=t.indexOf(".")
12411
+ return n.local?i.getAttributeNS(n.space,n.local):i.getAttribute(n)}return this.each((null==e?n.local?QP:YP:"function"==typeof e?n.local?iL:nL:n.local?eL:tL)(n,e))},style:function(t,e,n){return arguments.length>1?this.each((null==e?rL:"function"==typeof e?aL:sL)(t,e,null==n?"":n)):lL(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?cL:"function"==typeof e?hL:dL)(t,e)):this.node()[t]},classed:function(t,e){var n=uL(t+"")
12412
+ if(arguments.length<2){for(var i=pL(this.node()),o=-1,r=n.length;++o<r;)if(!i.contains(n[o]))return!1
12413
+ return!0}return this.each(("function"==typeof e?yL:e?vL:bL)(n,e))},text:function(t){return arguments.length?this.each(null==t?wL:("function"==typeof t?CL:xL)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?kL:("function"==typeof t?$L:SL)(t)):this.node().innerHTML},raise:function(){return this.each(ML)},lower:function(){return this.each(_L)},append:function(t){var e="function"==typeof t?t:OP(t)
12414
+ return this.select((function(){return this.appendChild(e.apply(this,arguments))}))},insert:function(t,e){var n="function"==typeof t?t:OP(t),i=null==e?EL:"function"==typeof e?e:FP(e)
12415
+ return this.select((function(){return this.insertBefore(n.apply(this,arguments),i.apply(this,arguments)||null)}))},remove:function(){return this.each(IL)},clone:function(t){return this.select(t?AL:DL)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,e,n){var i,o,r=function(t){return t.trim().split(/^|\s+/).map((function(t){var e="",n=t.indexOf(".")
12416
12416
  return n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}}))}(t+""),s=r.length
12417
- if(!(arguments.length<2)){for(a=e?EL:_L,i=0;i<s;++i)this.each(a(r[i],e,n))
12417
+ if(!(arguments.length<2)){for(a=e?OL:TL,i=0;i<s;++i)this.each(a(r[i],e,n))
12418
12418
  return this}var a=this.node().__on
12419
- if(a)for(var l,c=0,d=a.length;c<d;++c)for(i=0,l=a[c];i<s;++i)if((o=r[i]).type===l.type&&o.name===l.name)return l.value},dispatch:function(t,e){return this.each(("function"==typeof e?AL:DL)(t,e))},[Symbol.iterator]:function*(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var i,o=t[e],r=0,s=o.length;r<s;++r)(i=o[r])&&(yield i)}}
12420
- const PL={capture:!0,passive:!1}
12421
- function LL(t){t.preventDefault(),t.stopImmediatePropagation()}function zL(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function VL(t,e){var n=Object.create(t.prototype)
12419
+ if(a)for(var l,c=0,d=a.length;c<d;++c)for(i=0,l=a[c];i<s;++i)if((o=r[i]).type===l.type&&o.name===l.name)return l.value},dispatch:function(t,e){return this.each(("function"==typeof e?NL:FL)(t,e))},[Symbol.iterator]:function*(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var i,o=t[e],r=0,s=o.length;r<s;++r)(i=o[r])&&(yield i)}}
12420
+ const BL={capture:!0,passive:!1}
12421
+ function qL(t){t.preventDefault(),t.stopImmediatePropagation()}function UL(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function jL(t,e){var n=Object.create(t.prototype)
12422
12422
  for(var i in e)n[i]=e[i]
12423
- return n}function HL(){}var BL=.7,qL=1/BL,UL="\\s*([+-]?\\d+)\\s*",jL="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",WL="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",ZL=/^#([0-9a-f]{3,8})$/,GL=new RegExp(`^rgb\\(${UL},${UL},${UL}\\)$`),KL=new RegExp(`^rgb\\(${WL},${WL},${WL}\\)$`),JL=new RegExp(`^rgba\\(${UL},${UL},${UL},${jL}\\)$`),XL=new RegExp(`^rgba\\(${WL},${WL},${WL},${jL}\\)$`),YL=new RegExp(`^hsl\\(${jL},${WL},${WL}\\)$`),QL=new RegExp(`^hsla\\(${jL},${WL},${WL},${jL}\\)$`),tz={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}
12424
- function ez(){return this.rgb().formatHex()}function nz(){return this.rgb().formatRgb()}function iz(t){var e,n
12425
- return t=(t+"").trim().toLowerCase(),(e=ZL.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?oz(e):3===n?new az(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?rz(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?rz(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=GL.exec(t))?new az(e[1],e[2],e[3],1):(e=KL.exec(t))?new az(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=JL.exec(t))?rz(e[1],e[2],e[3],e[4]):(e=XL.exec(t))?rz(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=YL.exec(t))?pz(e[1],e[2]/100,e[3]/100,1):(e=QL.exec(t))?pz(e[1],e[2]/100,e[3]/100,e[4]):tz.hasOwnProperty(t)?oz(tz[t]):"transparent"===t?new az(NaN,NaN,NaN,0):null}function oz(t){return new az(t>>16&255,t>>8&255,255&t,1)}function rz(t,e,n,i){return i<=0&&(t=e=n=NaN),new az(t,e,n,i)}function sz(t,e,n,i){return 1===arguments.length?((o=t)instanceof HL||(o=iz(o)),o?new az((o=o.rgb()).r,o.g,o.b,o.opacity):new az):new az(t,e,n,null==i?1:i)
12426
- var o}function az(t,e,n,i){this.r=+t,this.g=+e,this.b=+n,this.opacity=+i}function lz(){return`#${uz(this.r)}${uz(this.g)}${uz(this.b)}`}function cz(){const t=dz(this.opacity)
12427
- return`${1===t?"rgb(":"rgba("}${hz(this.r)}, ${hz(this.g)}, ${hz(this.b)}${1===t?")":`, ${t})`}`}function dz(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function hz(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function uz(t){return((t=hz(t))<16?"0":"")+t.toString(16)}function pz(t,e,n,i){return i<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new mz(t,e,n,i)}function fz(t){if(t instanceof mz)return new mz(t.h,t.s,t.l,t.opacity)
12428
- if(t instanceof HL||(t=iz(t)),!t)return new mz
12429
- if(t instanceof mz)return t
12423
+ return n}function WL(){}var ZL=.7,GL=1/ZL,KL="\\s*([+-]?\\d+)\\s*",JL="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",XL="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",YL=/^#([0-9a-f]{3,8})$/,QL=new RegExp(`^rgb\\(${KL},${KL},${KL}\\)$`),tz=new RegExp(`^rgb\\(${XL},${XL},${XL}\\)$`),ez=new RegExp(`^rgba\\(${KL},${KL},${KL},${JL}\\)$`),nz=new RegExp(`^rgba\\(${XL},${XL},${XL},${JL}\\)$`),iz=new RegExp(`^hsl\\(${JL},${XL},${XL}\\)$`),oz=new RegExp(`^hsla\\(${JL},${XL},${XL},${JL}\\)$`),rz={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}
12424
+ function sz(){return this.rgb().formatHex()}function az(){return this.rgb().formatRgb()}function lz(t){var e,n
12425
+ return t=(t+"").trim().toLowerCase(),(e=YL.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?cz(e):3===n?new uz(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?dz(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?dz(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=QL.exec(t))?new uz(e[1],e[2],e[3],1):(e=tz.exec(t))?new uz(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=ez.exec(t))?dz(e[1],e[2],e[3],e[4]):(e=nz.exec(t))?dz(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=iz.exec(t))?bz(e[1],e[2]/100,e[3]/100,1):(e=oz.exec(t))?bz(e[1],e[2]/100,e[3]/100,e[4]):rz.hasOwnProperty(t)?cz(rz[t]):"transparent"===t?new uz(NaN,NaN,NaN,0):null}function cz(t){return new uz(t>>16&255,t>>8&255,255&t,1)}function dz(t,e,n,i){return i<=0&&(t=e=n=NaN),new uz(t,e,n,i)}function hz(t,e,n,i){return 1===arguments.length?((o=t)instanceof WL||(o=lz(o)),o?new uz((o=o.rgb()).r,o.g,o.b,o.opacity):new uz):new uz(t,e,n,null==i?1:i)
12426
+ var o}function uz(t,e,n,i){this.r=+t,this.g=+e,this.b=+n,this.opacity=+i}function pz(){return`#${vz(this.r)}${vz(this.g)}${vz(this.b)}`}function fz(){const t=mz(this.opacity)
12427
+ return`${1===t?"rgb(":"rgba("}${gz(this.r)}, ${gz(this.g)}, ${gz(this.b)}${1===t?")":`, ${t})`}`}function mz(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function gz(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function vz(t){return((t=gz(t))<16?"0":"")+t.toString(16)}function bz(t,e,n,i){return i<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new wz(t,e,n,i)}function yz(t){if(t instanceof wz)return new wz(t.h,t.s,t.l,t.opacity)
12428
+ if(t instanceof WL||(t=lz(t)),!t)return new wz
12429
+ if(t instanceof wz)return t
12430
12430
  var e=(t=t.rgb()).r/255,n=t.g/255,i=t.b/255,o=Math.min(e,n,i),r=Math.max(e,n,i),s=NaN,a=r-o,l=(r+o)/2
12431
- return a?(s=e===r?(n-i)/a+6*(n<i):n===r?(i-e)/a+2:(e-n)/a+4,a/=l<.5?r+o:2-r-o,s*=60):a=l>0&&l<1?0:s,new mz(s,a,l,t.opacity)}function mz(t,e,n,i){this.h=+t,this.s=+e,this.l=+n,this.opacity=+i}function gz(t){return(t=(t||0)%360)<0?t+360:t}function vz(t){return Math.max(0,Math.min(1,t||0))}function bz(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}zL(HL,iz,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:ez,formatHex:ez,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return fz(this).formatHsl()},formatRgb:nz,toString:nz}),zL(az,sz,VL(HL,{brighter(t){return t=null==t?qL:Math.pow(qL,t),new az(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?BL:Math.pow(BL,t),new az(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new az(hz(this.r),hz(this.g),hz(this.b),dz(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:lz,formatHex:lz,formatHex8:function(){return`#${uz(this.r)}${uz(this.g)}${uz(this.b)}${uz(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:cz,toString:cz})),zL(mz,(function(t,e,n,i){return 1===arguments.length?fz(t):new mz(t,e,n,null==i?1:i)}),VL(HL,{brighter(t){return t=null==t?qL:Math.pow(qL,t),new mz(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?BL:Math.pow(BL,t),new mz(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,i=n+(n<.5?n:1-n)*e,o=2*n-i
12432
- return new az(bz(t>=240?t-240:t+120,o,i),bz(t,o,i),bz(t<120?t+240:t-120,o,i),this.opacity)},clamp(){return new mz(gz(this.h),vz(this.s),vz(this.l),dz(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 t=dz(this.opacity)
12433
- return`${1===t?"hsl(":"hsla("}${gz(this.h)}, ${100*vz(this.s)}%, ${100*vz(this.l)}%${1===t?")":`, ${t})`}`}}))
12434
- var yz=t=>()=>t
12435
- function wz(t){return 1==(t=+t)?xz:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(i){return Math.pow(t+i*e,n)}}(e,n,t):yz(isNaN(e)?n:e)}}function xz(t,e){var n=e-t
12436
- return n?function(t,e){return function(n){return t+n*e}}(t,n):yz(isNaN(t)?e:t)}var Cz=function t(e){var n=wz(e)
12437
- function i(t,e){var i=n((t=sz(t)).r,(e=sz(e)).r),o=n(t.g,e.g),r=n(t.b,e.b),s=xz(t.opacity,e.opacity)
12431
+ return a?(s=e===r?(n-i)/a+6*(n<i):n===r?(i-e)/a+2:(e-n)/a+4,a/=l<.5?r+o:2-r-o,s*=60):a=l>0&&l<1?0:s,new wz(s,a,l,t.opacity)}function wz(t,e,n,i){this.h=+t,this.s=+e,this.l=+n,this.opacity=+i}function xz(t){return(t=(t||0)%360)<0?t+360:t}function Cz(t){return Math.max(0,Math.min(1,t||0))}function kz(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}UL(WL,lz,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:sz,formatHex:sz,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return yz(this).formatHsl()},formatRgb:az,toString:az}),UL(uz,hz,jL(WL,{brighter(t){return t=null==t?GL:Math.pow(GL,t),new uz(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?ZL:Math.pow(ZL,t),new uz(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new uz(gz(this.r),gz(this.g),gz(this.b),mz(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:pz,formatHex:pz,formatHex8:function(){return`#${vz(this.r)}${vz(this.g)}${vz(this.b)}${vz(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:fz,toString:fz})),UL(wz,(function(t,e,n,i){return 1===arguments.length?yz(t):new wz(t,e,n,null==i?1:i)}),jL(WL,{brighter(t){return t=null==t?GL:Math.pow(GL,t),new wz(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?ZL:Math.pow(ZL,t),new wz(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,i=n+(n<.5?n:1-n)*e,o=2*n-i
12432
+ return new uz(kz(t>=240?t-240:t+120,o,i),kz(t,o,i),kz(t<120?t+240:t-120,o,i),this.opacity)},clamp(){return new wz(xz(this.h),Cz(this.s),Cz(this.l),mz(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 t=mz(this.opacity)
12433
+ return`${1===t?"hsl(":"hsla("}${xz(this.h)}, ${100*Cz(this.s)}%, ${100*Cz(this.l)}%${1===t?")":`, ${t})`}`}}))
12434
+ var Sz=t=>()=>t
12435
+ function $z(t){return 1==(t=+t)?Mz:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(i){return Math.pow(t+i*e,n)}}(e,n,t):Sz(isNaN(e)?n:e)}}function Mz(t,e){var n=e-t
12436
+ return n?function(t,e){return function(n){return t+n*e}}(t,n):Sz(isNaN(t)?e:t)}var _z=function t(e){var n=$z(e)
12437
+ function i(t,e){var i=n((t=hz(t)).r,(e=hz(e)).r),o=n(t.g,e.g),r=n(t.b,e.b),s=Mz(t.opacity,e.opacity)
12438
12438
  return function(e){return t.r=i(e),t.g=o(e),t.b=r(e),t.opacity=s(e),t+""}}return i.gamma=t,i}(1)
12439
- function kz(t,e){e||(e=[])
12439
+ function Ez(t,e){e||(e=[])
12440
12440
  var n,i=t?Math.min(e.length,t.length):0,o=e.slice()
12441
12441
  return function(r){for(n=0;n<i;++n)o[n]=t[n]*(1-r)+e[n]*r
12442
- return o}}function Sz(t,e){var n,i=e?e.length:0,o=t?Math.min(i,t.length):0,r=new Array(o),s=new Array(i)
12443
- for(n=0;n<o;++n)r[n]=Az(t[n],e[n])
12442
+ return o}}function Iz(t,e){var n,i=e?e.length:0,o=t?Math.min(i,t.length):0,r=new Array(o),s=new Array(i)
12443
+ for(n=0;n<o;++n)r[n]=Nz(t[n],e[n])
12444
12444
  for(;n<i;++n)s[n]=e[n]
12445
12445
  return function(t){for(n=0;n<o;++n)s[n]=r[n](t)
12446
- return s}}function $z(t,e){var n=new Date
12447
- return t=+t,e=+e,function(i){return n.setTime(t*(1-i)+e*i),n}}function Mz(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}function _z(t,e){var n,i={},o={}
12448
- for(n in null!==t&&"object"==typeof t||(t={}),null!==e&&"object"==typeof e||(e={}),e)n in t?i[n]=Az(t[n],e[n]):o[n]=e[n]
12446
+ return s}}function Dz(t,e){var n=new Date
12447
+ return t=+t,e=+e,function(i){return n.setTime(t*(1-i)+e*i),n}}function Az(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}function Tz(t,e){var n,i={},o={}
12448
+ for(n in null!==t&&"object"==typeof t||(t={}),null!==e&&"object"==typeof e||(e={}),e)n in t?i[n]=Nz(t[n],e[n]):o[n]=e[n]
12449
12449
  return function(t){for(n in i)o[n]=i[n](t)
12450
- return o}}var Ez=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Iz=new RegExp(Ez.source,"g")
12451
- function Dz(t,e){var n,i,o,r=Ez.lastIndex=Iz.lastIndex=0,s=-1,a=[],l=[]
12452
- for(t+="",e+="";(n=Ez.exec(t))&&(i=Iz.exec(e));)(o=i.index)>r&&(o=e.slice(r,o),a[s]?a[s]+=o:a[++s]=o),(n=n[0])===(i=i[0])?a[s]?a[s]+=i:a[++s]=i:(a[++s]=null,l.push({i:s,x:Mz(n,i)})),r=Iz.lastIndex
12450
+ return o}}var Oz=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Rz=new RegExp(Oz.source,"g")
12451
+ function Fz(t,e){var n,i,o,r=Oz.lastIndex=Rz.lastIndex=0,s=-1,a=[],l=[]
12452
+ for(t+="",e+="";(n=Oz.exec(t))&&(i=Rz.exec(e));)(o=i.index)>r&&(o=e.slice(r,o),a[s]?a[s]+=o:a[++s]=o),(n=n[0])===(i=i[0])?a[s]?a[s]+=i:a[++s]=i:(a[++s]=null,l.push({i:s,x:Az(n,i)})),r=Rz.lastIndex
12453
12453
  return r<e.length&&(o=e.slice(r),a[s]?a[s]+=o:a[++s]=o),a.length<2?l[0]?function(t){return function(e){return t(e)+""}}(l[0].x):function(t){return function(){return t}}(e):(e=l.length,function(t){for(var n,i=0;i<e;++i)a[(n=l[i]).i]=n.x(t)
12454
- return a.join("")})}function Az(t,e){var n,i,o=typeof e
12455
- return null==e||"boolean"===o?yz(e):("number"===o?Mz:"string"===o?(n=iz(e))?(e=n,Cz):Dz:e instanceof iz?Cz:e instanceof Date?$z:(i=e,!ArrayBuffer.isView(i)||i instanceof DataView?Array.isArray(e)?Sz:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?_z:Mz:kz))(t,e)}function Tz(t,e){return t=+t,e=+e,function(n){return Math.round(t*(1-n)+e*n)}}var Oz,Rz=180/Math.PI,Fz={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1}
12456
- function Nz(t,e,n,i,o,r){var s,a,l
12457
- return(s=Math.sqrt(t*t+e*e))&&(t/=s,e/=s),(l=t*n+e*i)&&(n-=t*l,i-=e*l),(a=Math.sqrt(n*n+i*i))&&(n/=a,i/=a,l/=a),t*i<e*n&&(t=-t,e=-e,l=-l,s=-s),{translateX:o,translateY:r,rotate:Math.atan2(e,t)*Rz,skewX:Math.atan(l)*Rz,scaleX:s,scaleY:a}}function Pz(t,e,n,i){function o(t){return t.length?t.pop()+" ":""}return function(r,s){var a=[],l=[]
12454
+ return a.join("")})}function Nz(t,e){var n,i,o=typeof e
12455
+ return null==e||"boolean"===o?Sz(e):("number"===o?Az:"string"===o?(n=lz(e))?(e=n,_z):Fz:e instanceof lz?_z:e instanceof Date?Dz:(i=e,!ArrayBuffer.isView(i)||i instanceof DataView?Array.isArray(e)?Iz:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?Tz:Az:Ez))(t,e)}function Pz(t,e){return t=+t,e=+e,function(n){return Math.round(t*(1-n)+e*n)}}var Lz,zz=180/Math.PI,Vz={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1}
12456
+ function Hz(t,e,n,i,o,r){var s,a,l
12457
+ return(s=Math.sqrt(t*t+e*e))&&(t/=s,e/=s),(l=t*n+e*i)&&(n-=t*l,i-=e*l),(a=Math.sqrt(n*n+i*i))&&(n/=a,i/=a,l/=a),t*i<e*n&&(t=-t,e=-e,l=-l,s=-s),{translateX:o,translateY:r,rotate:Math.atan2(e,t)*zz,skewX:Math.atan(l)*zz,scaleX:s,scaleY:a}}function Bz(t,e,n,i){function o(t){return t.length?t.pop()+" ":""}return function(r,s){var a=[],l=[]
12458
12458
  return r=t(r),s=t(s),function(t,i,o,r,s,a){if(t!==o||i!==r){var l=s.push("translate(",null,e,null,n)
12459
- a.push({i:l-4,x:Mz(t,o)},{i:l-2,x:Mz(i,r)})}else(o||r)&&s.push("translate("+o+e+r+n)}(r.translateX,r.translateY,s.translateX,s.translateY,a,l),function(t,e,n,r){t!==e?(t-e>180?e+=360:e-t>180&&(t+=360),r.push({i:n.push(o(n)+"rotate(",null,i)-2,x:Mz(t,e)})):e&&n.push(o(n)+"rotate("+e+i)}(r.rotate,s.rotate,a,l),function(t,e,n,r){t!==e?r.push({i:n.push(o(n)+"skewX(",null,i)-2,x:Mz(t,e)}):e&&n.push(o(n)+"skewX("+e+i)}(r.skewX,s.skewX,a,l),function(t,e,n,i,r,s){if(t!==n||e!==i){var a=r.push(o(r)+"scale(",null,",",null,")")
12460
- s.push({i:a-4,x:Mz(t,n)},{i:a-2,x:Mz(e,i)})}else 1===n&&1===i||r.push(o(r)+"scale("+n+","+i+")")}(r.scaleX,r.scaleY,s.scaleX,s.scaleY,a,l),r=s=null,function(t){for(var e,n=-1,i=l.length;++n<i;)a[(e=l[n]).i]=e.x(t)
12461
- return a.join("")}}}var Lz=Pz((function(t){const e=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(t+"")
12462
- return e.isIdentity?Fz:Nz(e.a,e.b,e.c,e.d,e.e,e.f)}),"px, ","px)","deg)"),zz=Pz((function(t){return null==t?Fz:(Oz||(Oz=document.createElementNS("http://www.w3.org/2000/svg","g")),Oz.setAttribute("transform",t),(t=Oz.transform.baseVal.consolidate())?Nz((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):Fz)}),", ",")",")")
12463
- function Vz(t){return((t=Math.exp(t))+1/t)/2}var Hz,Bz,qz=function t(e,n,i){function o(t,o){var r,s,a=t[0],l=t[1],c=t[2],d=o[0],h=o[1],u=o[2],p=d-a,f=h-l,m=p*p+f*f
12459
+ a.push({i:l-4,x:Az(t,o)},{i:l-2,x:Az(i,r)})}else(o||r)&&s.push("translate("+o+e+r+n)}(r.translateX,r.translateY,s.translateX,s.translateY,a,l),function(t,e,n,r){t!==e?(t-e>180?e+=360:e-t>180&&(t+=360),r.push({i:n.push(o(n)+"rotate(",null,i)-2,x:Az(t,e)})):e&&n.push(o(n)+"rotate("+e+i)}(r.rotate,s.rotate,a,l),function(t,e,n,r){t!==e?r.push({i:n.push(o(n)+"skewX(",null,i)-2,x:Az(t,e)}):e&&n.push(o(n)+"skewX("+e+i)}(r.skewX,s.skewX,a,l),function(t,e,n,i,r,s){if(t!==n||e!==i){var a=r.push(o(r)+"scale(",null,",",null,")")
12460
+ s.push({i:a-4,x:Az(t,n)},{i:a-2,x:Az(e,i)})}else 1===n&&1===i||r.push(o(r)+"scale("+n+","+i+")")}(r.scaleX,r.scaleY,s.scaleX,s.scaleY,a,l),r=s=null,function(t){for(var e,n=-1,i=l.length;++n<i;)a[(e=l[n]).i]=e.x(t)
12461
+ return a.join("")}}}var qz=Bz((function(t){const e=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(t+"")
12462
+ return e.isIdentity?Vz:Hz(e.a,e.b,e.c,e.d,e.e,e.f)}),"px, ","px)","deg)"),Uz=Bz((function(t){return null==t?Vz:(Lz||(Lz=document.createElementNS("http://www.w3.org/2000/svg","g")),Lz.setAttribute("transform",t),(t=Lz.transform.baseVal.consolidate())?Hz((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):Vz)}),", ",")",")")
12463
+ function jz(t){return((t=Math.exp(t))+1/t)/2}var Wz,Zz,Gz=function t(e,n,i){function o(t,o){var r,s,a=t[0],l=t[1],c=t[2],d=o[0],h=o[1],u=o[2],p=d-a,f=h-l,m=p*p+f*f
12464
12464
  if(m<1e-12)s=Math.log(u/c)/e,r=function(t){return[a+t*p,l+t*f,c*Math.exp(e*t*s)]}
12465
12465
  else{var g=Math.sqrt(m),v=(u*u-c*c+i*m)/(2*c*n*g),b=(u*u-c*c-i*m)/(2*u*n*g),y=Math.log(Math.sqrt(v*v+1)-v),w=Math.log(Math.sqrt(b*b+1)-b)
12466
- s=(w-y)/e,r=function(t){var i,o=t*s,r=Vz(y),d=c/(n*g)*(r*(i=e*o+y,((i=Math.exp(2*i))-1)/(i+1))-function(t){return((t=Math.exp(t))-1/t)/2}(y))
12467
- return[a+d*p,l+d*f,c*r/Vz(e*o+y)]}}return r.duration=1e3*s*e/Math.SQRT2,r}return o.rho=function(e){var n=Math.max(.001,+e),i=n*n
12468
- return t(n,i,i*i)},o}(Math.SQRT2,2,4),Uz=0,jz=0,Wz=0,Zz=1e3,Gz=0,Kz=0,Jz=0,Xz="object"==typeof performance&&performance.now?performance:Date,Yz="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)}
12469
- function Qz(){return Kz||(Yz(tV),Kz=Xz.now()+Jz)}function tV(){Kz=0}function eV(){this._call=this._time=this._next=null}function nV(t,e,n){var i=new eV
12470
- return i.restart(t,e,n),i}function iV(){Kz=(Gz=Xz.now())+Jz,Uz=jz=0
12471
- try{!function(){Qz(),++Uz
12472
- for(var t,e=Hz;e;)(t=Kz-e._time)>=0&&e._call.call(void 0,t),e=e._next;--Uz}()}finally{Uz=0,function(){var t,e,n=Hz,i=1/0
12473
- for(;n;)n._call?(i>n._time&&(i=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:Hz=e)
12474
- Bz=t,rV(i)}(),Kz=0}}function oV(){var t=Xz.now(),e=t-Gz
12475
- e>Zz&&(Jz-=e,Gz=t)}function rV(t){Uz||(jz&&(jz=clearTimeout(jz)),t-Kz>24?(t<1/0&&(jz=setTimeout(iV,t-Xz.now()-Jz)),Wz&&(Wz=clearInterval(Wz))):(Wz||(Gz=Xz.now(),Wz=setInterval(oV,Zz)),Uz=1,Yz(iV)))}function sV(t,e,n){var i=new eV
12476
- return e=null==e?0:+e,i.restart((n=>{i.stop(),t(n+e)}),e,n),i}eV.prototype=nV.prototype={constructor:eV,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function")
12477
- n=(null==n?Qz():+n)+(null==e?0:+e),this._next||Bz===this||(Bz?Bz._next=this:Hz=this,Bz=this),this._call=t,this._time=n,rV()},stop:function(){this._call&&(this._call=null,this._time=1/0,rV())}}
12478
- var aV=yP("start","end","cancel","interrupt"),lV=[],cV=0,dV=1,hV=2,uV=3,pV=4,fV=5,mV=6
12479
- function gV(t,e,n,i,o,r){var s=t.__transition
12466
+ s=(w-y)/e,r=function(t){var i,o=t*s,r=jz(y),d=c/(n*g)*(r*(i=e*o+y,((i=Math.exp(2*i))-1)/(i+1))-function(t){return((t=Math.exp(t))-1/t)/2}(y))
12467
+ return[a+d*p,l+d*f,c*r/jz(e*o+y)]}}return r.duration=1e3*s*e/Math.SQRT2,r}return o.rho=function(e){var n=Math.max(.001,+e),i=n*n
12468
+ return t(n,i,i*i)},o}(Math.SQRT2,2,4),Kz=0,Jz=0,Xz=0,Yz=1e3,Qz=0,tV=0,eV=0,nV="object"==typeof performance&&performance.now?performance:Date,iV="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)}
12469
+ function oV(){return tV||(iV(rV),tV=nV.now()+eV)}function rV(){tV=0}function sV(){this._call=this._time=this._next=null}function aV(t,e,n){var i=new sV
12470
+ return i.restart(t,e,n),i}function lV(){tV=(Qz=nV.now())+eV,Kz=Jz=0
12471
+ try{!function(){oV(),++Kz
12472
+ for(var t,e=Wz;e;)(t=tV-e._time)>=0&&e._call.call(void 0,t),e=e._next;--Kz}()}finally{Kz=0,function(){var t,e,n=Wz,i=1/0
12473
+ for(;n;)n._call?(i>n._time&&(i=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:Wz=e)
12474
+ Zz=t,dV(i)}(),tV=0}}function cV(){var t=nV.now(),e=t-Qz
12475
+ e>Yz&&(eV-=e,Qz=t)}function dV(t){Kz||(Jz&&(Jz=clearTimeout(Jz)),t-tV>24?(t<1/0&&(Jz=setTimeout(lV,t-nV.now()-eV)),Xz&&(Xz=clearInterval(Xz))):(Xz||(Qz=nV.now(),Xz=setInterval(cV,Yz)),Kz=1,iV(lV)))}function hV(t,e,n){var i=new sV
12476
+ return e=null==e?0:+e,i.restart((n=>{i.stop(),t(n+e)}),e,n),i}sV.prototype=aV.prototype={constructor:sV,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function")
12477
+ n=(null==n?oV():+n)+(null==e?0:+e),this._next||Zz===this||(Zz?Zz._next=this:Wz=this,Zz=this),this._call=t,this._time=n,dV()},stop:function(){this._call&&(this._call=null,this._time=1/0,dV())}}
12478
+ var uV=SP("start","end","cancel","interrupt"),pV=[],fV=0,mV=1,gV=2,vV=3,bV=4,yV=5,wV=6
12479
+ function xV(t,e,n,i,o,r){var s=t.__transition
12480
12480
  if(s){if(n in s)return}else t.__transition={}
12481
12481
  !function(t,e,n){var i,o=t.__transition
12482
- function r(t){n.state=dV,n.timer.restart(s,n.delay,n.time),n.delay<=t&&s(t-n.delay)}function s(r){var c,d,h,u
12483
- if(n.state!==dV)return l()
12484
- for(c in o)if((u=o[c]).name===n.name){if(u.state===uV)return sV(s)
12485
- u.state===pV?(u.state=mV,u.timer.stop(),u.on.call("interrupt",t,t.__data__,u.index,u.group),delete o[c]):+c<e&&(u.state=mV,u.timer.stop(),u.on.call("cancel",t,t.__data__,u.index,u.group),delete o[c])}if(sV((function(){n.state===uV&&(n.state=pV,n.timer.restart(a,n.delay,n.time),a(r))})),n.state=hV,n.on.call("start",t,t.__data__,n.index,n.group),n.state===hV){for(n.state=uV,i=new Array(h=n.tween.length),c=0,d=-1;c<h;++c)(u=n.tween[c].value.call(t,t.__data__,n.index,n.group))&&(i[++d]=u)
12486
- i.length=d+1}}function a(e){for(var o=e<n.duration?n.ease.call(null,e/n.duration):(n.timer.restart(l),n.state=fV,1),r=-1,s=i.length;++r<s;)i[r].call(t,o)
12487
- n.state===fV&&(n.on.call("end",t,t.__data__,n.index,n.group),l())}function l(){for(var i in n.state=mV,n.timer.stop(),delete o[e],o)return
12488
- delete t.__transition}o[e]=n,n.timer=nV(r,0,n.time)}(t,n,{name:e,index:i,group:o,on:aV,tween:lV,time:r.time,delay:r.delay,duration:r.duration,ease:r.ease,timer:null,state:cV})}function vV(t,e){var n=yV(t,e)
12489
- if(n.state>cV)throw new Error("too late; already scheduled")
12490
- return n}function bV(t,e){var n=yV(t,e)
12491
- if(n.state>uV)throw new Error("too late; already running")
12492
- return n}function yV(t,e){var n=t.__transition
12482
+ function r(t){n.state=mV,n.timer.restart(s,n.delay,n.time),n.delay<=t&&s(t-n.delay)}function s(r){var c,d,h,u
12483
+ if(n.state!==mV)return l()
12484
+ for(c in o)if((u=o[c]).name===n.name){if(u.state===vV)return hV(s)
12485
+ u.state===bV?(u.state=wV,u.timer.stop(),u.on.call("interrupt",t,t.__data__,u.index,u.group),delete o[c]):+c<e&&(u.state=wV,u.timer.stop(),u.on.call("cancel",t,t.__data__,u.index,u.group),delete o[c])}if(hV((function(){n.state===vV&&(n.state=bV,n.timer.restart(a,n.delay,n.time),a(r))})),n.state=gV,n.on.call("start",t,t.__data__,n.index,n.group),n.state===gV){for(n.state=vV,i=new Array(h=n.tween.length),c=0,d=-1;c<h;++c)(u=n.tween[c].value.call(t,t.__data__,n.index,n.group))&&(i[++d]=u)
12486
+ i.length=d+1}}function a(e){for(var o=e<n.duration?n.ease.call(null,e/n.duration):(n.timer.restart(l),n.state=yV,1),r=-1,s=i.length;++r<s;)i[r].call(t,o)
12487
+ n.state===yV&&(n.on.call("end",t,t.__data__,n.index,n.group),l())}function l(){for(var i in n.state=wV,n.timer.stop(),delete o[e],o)return
12488
+ delete t.__transition}o[e]=n,n.timer=aV(r,0,n.time)}(t,n,{name:e,index:i,group:o,on:uV,tween:pV,time:r.time,delay:r.delay,duration:r.duration,ease:r.ease,timer:null,state:fV})}function CV(t,e){var n=SV(t,e)
12489
+ if(n.state>fV)throw new Error("too late; already scheduled")
12490
+ return n}function kV(t,e){var n=SV(t,e)
12491
+ if(n.state>vV)throw new Error("too late; already running")
12492
+ return n}function SV(t,e){var n=t.__transition
12493
12493
  if(!n||!(n=n[e]))throw new Error("transition not found")
12494
- return n}function wV(t,e){var n,i,o,r=t.__transition,s=!0
12495
- if(r){for(o in e=null==e?null:e+"",r)(n=r[o]).name===e?(i=n.state>hV&&n.state<fV,n.state=mV,n.timer.stop(),n.on.call(i?"interrupt":"cancel",t,t.__data__,n.index,n.group),delete r[o]):s=!1
12496
- s&&delete t.__transition}}function xV(t,e){var n,i
12497
- return function(){var o=bV(this,t),r=o.tween
12494
+ return n}function $V(t,e){var n,i,o,r=t.__transition,s=!0
12495
+ if(r){for(o in e=null==e?null:e+"",r)(n=r[o]).name===e?(i=n.state>gV&&n.state<yV,n.state=wV,n.timer.stop(),n.on.call(i?"interrupt":"cancel",t,t.__data__,n.index,n.group),delete r[o]):s=!1
12496
+ s&&delete t.__transition}}function MV(t,e){var n,i
12497
+ return function(){var o=kV(this,t),r=o.tween
12498
12498
  if(r!==n)for(var s=0,a=(i=n=r).length;s<a;++s)if(i[s].name===e){(i=i.slice()).splice(s,1)
12499
- break}o.tween=i}}function CV(t,e,n){var i,o
12499
+ break}o.tween=i}}function _V(t,e,n){var i,o
12500
12500
  if("function"!=typeof n)throw new Error
12501
- return function(){var r=bV(this,t),s=r.tween
12501
+ return function(){var r=kV(this,t),s=r.tween
12502
12502
  if(s!==i){o=(i=s).slice()
12503
12503
  for(var a={name:e,value:n},l=0,c=o.length;l<c;++l)if(o[l].name===e){o[l]=a
12504
- break}l===c&&o.push(a)}r.tween=o}}function kV(t,e,n){var i=t._id
12505
- return t.each((function(){var t=bV(this,i);(t.value||(t.value={}))[e]=n.apply(this,arguments)})),function(t){return yV(t,i).value[e]}}function SV(t,e){var n
12506
- return("number"==typeof e?Mz:e instanceof iz?Cz:(n=iz(e))?(e=n,Cz):Dz)(t,e)}function $V(t){return function(){this.removeAttribute(t)}}function MV(t){return function(){this.removeAttributeNS(t.space,t.local)}}function _V(t,e,n){var i,o,r=n+""
12504
+ break}l===c&&o.push(a)}r.tween=o}}function EV(t,e,n){var i=t._id
12505
+ return t.each((function(){var t=kV(this,i);(t.value||(t.value={}))[e]=n.apply(this,arguments)})),function(t){return SV(t,i).value[e]}}function IV(t,e){var n
12506
+ return("number"==typeof e?Az:e instanceof lz?_z:(n=lz(e))?(e=n,_z):Fz)(t,e)}function DV(t){return function(){this.removeAttribute(t)}}function AV(t){return function(){this.removeAttributeNS(t.space,t.local)}}function TV(t,e,n){var i,o,r=n+""
12507
12507
  return function(){var s=this.getAttribute(t)
12508
- return s===r?null:s===i?o:o=e(i=s,n)}}function EV(t,e,n){var i,o,r=n+""
12508
+ return s===r?null:s===i?o:o=e(i=s,n)}}function OV(t,e,n){var i,o,r=n+""
12509
12509
  return function(){var s=this.getAttributeNS(t.space,t.local)
12510
- return s===r?null:s===i?o:o=e(i=s,n)}}function IV(t,e,n){var i,o,r
12510
+ return s===r?null:s===i?o:o=e(i=s,n)}}function RV(t,e,n){var i,o,r
12511
12511
  return function(){var s,a,l=n(this)
12512
12512
  if(null!=l)return(s=this.getAttribute(t))===(a=l+"")?null:s===i&&a===o?r:(o=a,r=e(i=s,l))
12513
- this.removeAttribute(t)}}function DV(t,e,n){var i,o,r
12513
+ this.removeAttribute(t)}}function FV(t,e,n){var i,o,r
12514
12514
  return function(){var s,a,l=n(this)
12515
12515
  if(null!=l)return(s=this.getAttributeNS(t.space,t.local))===(a=l+"")?null:s===i&&a===o?r:(o=a,r=e(i=s,l))
12516
- this.removeAttributeNS(t.space,t.local)}}function AV(t,e){var n,i
12516
+ this.removeAttributeNS(t.space,t.local)}}function NV(t,e){var n,i
12517
12517
  function o(){var o=e.apply(this,arguments)
12518
- return o!==i&&(n=(i=o)&&function(t,e){return function(n){this.setAttributeNS(t.space,t.local,e.call(this,n))}}(t,o)),n}return o._value=e,o}function TV(t,e){var n,i
12518
+ return o!==i&&(n=(i=o)&&function(t,e){return function(n){this.setAttributeNS(t.space,t.local,e.call(this,n))}}(t,o)),n}return o._value=e,o}function PV(t,e){var n,i
12519
12519
  function o(){var o=e.apply(this,arguments)
12520
- return o!==i&&(n=(i=o)&&function(t,e){return function(n){this.setAttribute(t,e.call(this,n))}}(t,o)),n}return o._value=e,o}function OV(t,e){return function(){vV(this,t).delay=+e.apply(this,arguments)}}function RV(t,e){return e=+e,function(){vV(this,t).delay=e}}function FV(t,e){return function(){bV(this,t).duration=+e.apply(this,arguments)}}function NV(t,e){return e=+e,function(){bV(this,t).duration=e}}var PV=RL.prototype.constructor
12521
- function LV(t){return function(){this.style.removeProperty(t)}}var zV=0
12522
- function VV(t,e,n,i){this._groups=t,this._parents=e,this._name=n,this._id=i}function HV(){return++zV}var BV=RL.prototype
12523
- VV.prototype={constructor:VV,select:function(t){var e=this._name,n=this._id
12524
- "function"!=typeof t&&(t=DP(t))
12525
- for(var i=this._groups,o=i.length,r=new Array(o),s=0;s<o;++s)for(var a,l,c=i[s],d=c.length,h=r[s]=new Array(d),u=0;u<d;++u)(a=c[u])&&(l=t.call(a,a.__data__,u,c))&&("__data__"in a&&(l.__data__=a.__data__),h[u]=l,gV(h[u],e,n,u,h,yV(a,n)))
12526
- return new VV(r,this._parents,e,n)},selectAll:function(t){var e=this._name,n=this._id
12527
- "function"!=typeof t&&(t=TP(t))
12528
- for(var i=this._groups,o=i.length,r=[],s=[],a=0;a<o;++a)for(var l,c=i[a],d=c.length,h=0;h<d;++h)if(l=c[h]){for(var u,p=t.call(l,l.__data__,h,c),f=yV(l,n),m=0,g=p.length;m<g;++m)(u=p[m])&&gV(u,e,n,m,p,f)
12529
- r.push(p),s.push(l)}return new VV(r,s,e,n)},selectChild:BV.selectChild,selectChildren:BV.selectChildren,filter:function(t){"function"!=typeof t&&(t=RP(t))
12520
+ return o!==i&&(n=(i=o)&&function(t,e){return function(n){this.setAttribute(t,e.call(this,n))}}(t,o)),n}return o._value=e,o}function LV(t,e){return function(){CV(this,t).delay=+e.apply(this,arguments)}}function zV(t,e){return e=+e,function(){CV(this,t).delay=e}}function VV(t,e){return function(){kV(this,t).duration=+e.apply(this,arguments)}}function HV(t,e){return e=+e,function(){kV(this,t).duration=e}}var BV=zL.prototype.constructor
12521
+ function qV(t){return function(){this.style.removeProperty(t)}}var UV=0
12522
+ function jV(t,e,n,i){this._groups=t,this._parents=e,this._name=n,this._id=i}function WV(){return++UV}var ZV=zL.prototype
12523
+ jV.prototype={constructor:jV,select:function(t){var e=this._name,n=this._id
12524
+ "function"!=typeof t&&(t=FP(t))
12525
+ for(var i=this._groups,o=i.length,r=new Array(o),s=0;s<o;++s)for(var a,l,c=i[s],d=c.length,h=r[s]=new Array(d),u=0;u<d;++u)(a=c[u])&&(l=t.call(a,a.__data__,u,c))&&("__data__"in a&&(l.__data__=a.__data__),h[u]=l,xV(h[u],e,n,u,h,SV(a,n)))
12526
+ return new jV(r,this._parents,e,n)},selectAll:function(t){var e=this._name,n=this._id
12527
+ "function"!=typeof t&&(t=PP(t))
12528
+ for(var i=this._groups,o=i.length,r=[],s=[],a=0;a<o;++a)for(var l,c=i[a],d=c.length,h=0;h<d;++h)if(l=c[h]){for(var u,p=t.call(l,l.__data__,h,c),f=SV(l,n),m=0,g=p.length;m<g;++m)(u=p[m])&&xV(u,e,n,m,p,f)
12529
+ r.push(p),s.push(l)}return new jV(r,s,e,n)},selectChild:ZV.selectChild,selectChildren:ZV.selectChildren,filter:function(t){"function"!=typeof t&&(t=zP(t))
12530
12530
  for(var e=this._groups,n=e.length,i=new Array(n),o=0;o<n;++o)for(var r,s=e[o],a=s.length,l=i[o]=[],c=0;c<a;++c)(r=s[c])&&t.call(r,r.__data__,c,s)&&l.push(r)
12531
- return new VV(i,this._parents,this._name,this._id)},merge:function(t){if(t._id!==this._id)throw new Error
12531
+ return new jV(i,this._parents,this._name,this._id)},merge:function(t){if(t._id!==this._id)throw new Error
12532
12532
  for(var e=this._groups,n=t._groups,i=e.length,o=n.length,r=Math.min(i,o),s=new Array(i),a=0;a<r;++a)for(var l,c=e[a],d=n[a],h=c.length,u=s[a]=new Array(h),p=0;p<h;++p)(l=c[p]||d[p])&&(u[p]=l)
12533
12533
  for(;a<i;++a)s[a]=e[a]
12534
- return new VV(s,this._parents,this._name,this._id)},selection:function(){return new PV(this._groups,this._parents)},transition:function(){for(var t=this._name,e=this._id,n=HV(),i=this._groups,o=i.length,r=0;r<o;++r)for(var s,a=i[r],l=a.length,c=0;c<l;++c)if(s=a[c]){var d=yV(s,e)
12535
- gV(s,t,n,c,a,{time:d.time+d.delay+d.duration,delay:0,duration:d.duration,ease:d.ease})}return new VV(i,this._parents,t,n)},call:BV.call,nodes:BV.nodes,node:BV.node,size:BV.size,empty:BV.empty,each:BV.each,on:function(t,e){var n=this._id
12536
- return arguments.length<2?yV(this.node(),n).on.on(t):this.each(function(t,e,n){var i,o,r=function(t){return(t+"").trim().split(/^|\s+/).every((function(t){var e=t.indexOf(".")
12537
- return e>=0&&(t=t.slice(0,e)),!t||"start"===t}))}(e)?vV:bV
12534
+ return new jV(s,this._parents,this._name,this._id)},selection:function(){return new BV(this._groups,this._parents)},transition:function(){for(var t=this._name,e=this._id,n=WV(),i=this._groups,o=i.length,r=0;r<o;++r)for(var s,a=i[r],l=a.length,c=0;c<l;++c)if(s=a[c]){var d=SV(s,e)
12535
+ xV(s,t,n,c,a,{time:d.time+d.delay+d.duration,delay:0,duration:d.duration,ease:d.ease})}return new jV(i,this._parents,t,n)},call:ZV.call,nodes:ZV.nodes,node:ZV.node,size:ZV.size,empty:ZV.empty,each:ZV.each,on:function(t,e){var n=this._id
12536
+ return arguments.length<2?SV(this.node(),n).on.on(t):this.each(function(t,e,n){var i,o,r=function(t){return(t+"").trim().split(/^|\s+/).every((function(t){var e=t.indexOf(".")
12537
+ return e>=0&&(t=t.slice(0,e)),!t||"start"===t}))}(e)?CV:kV
12538
12538
  return function(){var s=r(this,t),a=s.on
12539
- a!==i&&(o=(i=a).copy()).on(e,n),s.on=o}}(n,t,e))},attr:function(t,e){var n=$P(t),i="transform"===n?zz:SV
12540
- return this.attrTween(t,"function"==typeof e?(n.local?DV:IV)(n,i,kV(this,"attr."+t,e)):null==e?(n.local?MV:$V)(n):(n.local?EV:_V)(n,i,e))},attrTween:function(t,e){var n="attr."+t
12539
+ a!==i&&(o=(i=a).copy()).on(e,n),s.on=o}}(n,t,e))},attr:function(t,e){var n=DP(t),i="transform"===n?Uz:IV
12540
+ return this.attrTween(t,"function"==typeof e?(n.local?FV:RV)(n,i,EV(this,"attr."+t,e)):null==e?(n.local?AV:DV)(n):(n.local?OV:TV)(n,i,e))},attrTween:function(t,e){var n="attr."+t
12541
12541
  if(arguments.length<2)return(n=this.tween(n))&&n._value
12542
12542
  if(null==e)return this.tween(n,null)
12543
12543
  if("function"!=typeof e)throw new Error
12544
- var i=$P(t)
12545
- return this.tween(n,(i.local?AV:TV)(i,e))},style:function(t,e,n){var i="transform"==(t+="")?Lz:SV
12544
+ var i=DP(t)
12545
+ return this.tween(n,(i.local?NV:PV)(i,e))},style:function(t,e,n){var i="transform"==(t+="")?qz:IV
12546
12546
  return null==e?this.styleTween(t,function(t,e){var n,i,o
12547
- return function(){var r=iL(this,t),s=(this.style.removeProperty(t),iL(this,t))
12548
- return r===s?null:r===n&&s===i?o:o=e(n=r,i=s)}}(t,i)).on("end.style."+t,LV(t)):"function"==typeof e?this.styleTween(t,function(t,e,n){var i,o,r
12549
- return function(){var s=iL(this,t),a=n(this),l=a+""
12550
- return null==a&&(this.style.removeProperty(t),l=a=iL(this,t)),s===l?null:s===i&&l===o?r:(o=l,r=e(i=s,a))}}(t,i,kV(this,"style."+t,e))).each(function(t,e){var n,i,o,r,s="style."+e,a="end."+s
12551
- return function(){var l=bV(this,t),c=l.on,d=null==l.value[s]?r||(r=LV(e)):void 0
12547
+ return function(){var r=lL(this,t),s=(this.style.removeProperty(t),lL(this,t))
12548
+ return r===s?null:r===n&&s===i?o:o=e(n=r,i=s)}}(t,i)).on("end.style."+t,qV(t)):"function"==typeof e?this.styleTween(t,function(t,e,n){var i,o,r
12549
+ return function(){var s=lL(this,t),a=n(this),l=a+""
12550
+ return null==a&&(this.style.removeProperty(t),l=a=lL(this,t)),s===l?null:s===i&&l===o?r:(o=l,r=e(i=s,a))}}(t,i,EV(this,"style."+t,e))).each(function(t,e){var n,i,o,r,s="style."+e,a="end."+s
12551
+ return function(){var l=kV(this,t),c=l.on,d=null==l.value[s]?r||(r=qV(e)):void 0
12552
12552
  c===n&&o===d||(i=(n=c).copy()).on(a,o=d),l.on=i}}(this._id,t)):this.styleTween(t,function(t,e,n){var i,o,r=n+""
12553
- return function(){var s=iL(this,t)
12553
+ return function(){var s=lL(this,t)
12554
12554
  return s===r?null:s===i?o:o=e(i=s,n)}}(t,i,e),n).on("end.style."+t,null)},styleTween:function(t,e,n){var i="style."+(t+="")
12555
12555
  if(arguments.length<2)return(i=this.tween(i))&&i._value
12556
12556
  if(null==e)return this.tween(i,null)
@@ -12558,7 +12558,7 @@ if("function"!=typeof e)throw new Error
12558
12558
  return this.tween(i,function(t,e,n){var i,o
12559
12559
  function r(){var r=e.apply(this,arguments)
12560
12560
  return r!==o&&(i=(o=r)&&function(t,e,n){return function(i){this.style.setProperty(t,e.call(this,i),n)}}(t,r,n)),i}return r._value=e,r}(t,e,null==n?"":n))},text:function(t){return this.tween("text","function"==typeof t?function(t){return function(){var e=t(this)
12561
- this.textContent=null==e?"":e}}(kV(this,"text",t)):function(t){return function(){this.textContent=t}}(null==t?"":t+""))},textTween:function(t){var e="text"
12561
+ this.textContent=null==e?"":e}}(EV(this,"text",t)):function(t){return function(){this.textContent=t}}(null==t?"":t+""))},textTween:function(t){var e="text"
12562
12562
  if(arguments.length<1)return(e=this.tween(e))&&e._value
12563
12563
  if(null==t)return this.tween(e,null)
12564
12564
  if("function"!=typeof t)throw new Error
@@ -12567,59 +12567,59 @@ function i(){var i=t.apply(this,arguments)
12567
12567
  return i!==n&&(e=(n=i)&&function(t){return function(e){this.textContent=t.call(this,e)}}(i)),e}return i._value=t,i}(t))},remove:function(){return this.on("end.remove",function(t){return function(){var e=this.parentNode
12568
12568
  for(var n in this.__transition)if(+n!==t)return
12569
12569
  e&&e.removeChild(this)}}(this._id))},tween:function(t,e){var n=this._id
12570
- if(t+="",arguments.length<2){for(var i,o=yV(this.node(),n).tween,r=0,s=o.length;r<s;++r)if((i=o[r]).name===t)return i.value
12571
- return null}return this.each((null==e?xV:CV)(n,t,e))},delay:function(t){var e=this._id
12572
- return arguments.length?this.each(("function"==typeof t?OV:RV)(e,t)):yV(this.node(),e).delay},duration:function(t){var e=this._id
12573
- return arguments.length?this.each(("function"==typeof t?FV:NV)(e,t)):yV(this.node(),e).duration},ease:function(t){var e=this._id
12570
+ if(t+="",arguments.length<2){for(var i,o=SV(this.node(),n).tween,r=0,s=o.length;r<s;++r)if((i=o[r]).name===t)return i.value
12571
+ return null}return this.each((null==e?MV:_V)(n,t,e))},delay:function(t){var e=this._id
12572
+ return arguments.length?this.each(("function"==typeof t?LV:zV)(e,t)):SV(this.node(),e).delay},duration:function(t){var e=this._id
12573
+ return arguments.length?this.each(("function"==typeof t?VV:HV)(e,t)):SV(this.node(),e).duration},ease:function(t){var e=this._id
12574
12574
  return arguments.length?this.each(function(t,e){if("function"!=typeof e)throw new Error
12575
- return function(){bV(this,t).ease=e}}(e,t)):yV(this.node(),e).ease},easeVarying:function(t){if("function"!=typeof t)throw new Error
12575
+ return function(){kV(this,t).ease=e}}(e,t)):SV(this.node(),e).ease},easeVarying:function(t){if("function"!=typeof t)throw new Error
12576
12576
  return this.each(function(t,e){return function(){var n=e.apply(this,arguments)
12577
12577
  if("function"!=typeof n)throw new Error
12578
- bV(this,t).ease=n}}(this._id,t))},end:function(){var t,e,n=this,i=n._id,o=n.size()
12578
+ kV(this,t).ease=n}}(this._id,t))},end:function(){var t,e,n=this,i=n._id,o=n.size()
12579
12579
  return new Promise((function(r,s){var a={value:s},l={value:function(){0==--o&&r()}}
12580
- n.each((function(){var n=bV(this,i),o=n.on
12581
- o!==t&&((e=(t=o).copy())._.cancel.push(a),e._.interrupt.push(a),e._.end.push(l)),n.on=e})),0===o&&r()}))},[Symbol.iterator]:BV[Symbol.iterator]}
12582
- var qV={time:null,delay:0,duration:250,ease:function(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}}
12583
- function UV(t,e){for(var n;!(n=t.__transition)||!(n=n[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`)
12584
- return n}RL.prototype.interrupt=function(t){return this.each((function(){wV(this,t)}))},RL.prototype.transition=function(t){var e,n
12585
- t instanceof VV?(e=t._id,t=t._name):(e=HV(),(n=qV).time=Qz(),t=null==t?null:t+"")
12586
- for(var i=this._groups,o=i.length,r=0;r<o;++r)for(var s,a=i[r],l=a.length,c=0;c<l;++c)(s=a[c])&&gV(s,t,e,c,a,n||UV(s,e))
12587
- return new VV(i,this._parents,t,e)}
12588
- var jV=t=>()=>t
12589
- function WV(t,{sourceEvent:e,target:n,transform:i,dispatch:o}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:i,enumerable:!0,configurable:!0},_:{value:o}})}function ZV(t,e,n){this.k=t,this.x=e,this.y=n}ZV.prototype={constructor:ZV,scale:function(t){return 1===t?this:new ZV(this.k*t,this.x,this.y)},translate:function(t,e){return 0===t&0===e?this:new ZV(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}}
12590
- var GV=new ZV(1,0,0)
12591
- function KV(t){t.stopImmediatePropagation()}function JV(t){t.preventDefault(),t.stopImmediatePropagation()}function XV(t){return!(t.ctrlKey&&"wheel"!==t.type||t.button)}function YV(){var t=this
12592
- return t instanceof SVGElement?(t=t.ownerSVGElement||t).hasAttribute("viewBox")?[[(t=t.viewBox.baseVal).x,t.y],[t.x+t.width,t.y+t.height]]:[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]:[[0,0],[t.clientWidth,t.clientHeight]]}function QV(){return this.__zoom||GV}function tH(t){return-t.deltaY*(1===t.deltaMode?.05:t.deltaMode?1:.002)*(t.ctrlKey?10:1)}function eH(){return navigator.maxTouchPoints||"ontouchstart"in this}function nH(t,e,n){var i=t.invertX(e[0][0])-n[0][0],o=t.invertX(e[1][0])-n[1][0],r=t.invertY(e[0][1])-n[0][1],s=t.invertY(e[1][1])-n[1][1]
12593
- return t.translate(o>i?(i+o)/2:Math.min(0,i)||Math.max(0,o),s>r?(r+s)/2:Math.min(0,r)||Math.max(0,s))}function iH(){var t,e,n,i=XV,o=YV,r=nH,s=tH,a=eH,l=[0,1/0],c=[[-1/0,-1/0],[1/0,1/0]],d=250,h=qz,u=yP("start","zoom","end"),p=500,f=150,m=0,g=10
12594
- function v(t){t.property("__zoom",QV).on("wheel.zoom",S,{passive:!1}).on("mousedown.zoom",$).on("dblclick.zoom",M).filter(a).on("touchstart.zoom",_).on("touchmove.zoom",E).on("touchend.zoom touchcancel.zoom",I).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function b(t,e){return(e=Math.max(l[0],Math.min(l[1],e)))===t.k?t:new ZV(e,t.x,t.y)}function y(t,e,n){var i=e[0]-n[0]*t.k,o=e[1]-n[1]*t.k
12595
- return i===t.x&&o===t.y?t:new ZV(t.k,i,o)}function w(t){return[(+t[0][0]+ +t[1][0])/2,(+t[0][1]+ +t[1][1])/2]}function x(t,e,n,i){t.on("start.zoom",(function(){C(this,arguments).event(i).start()})).on("interrupt.zoom end.zoom",(function(){C(this,arguments).event(i).end()})).tween("zoom",(function(){var t=this,r=arguments,s=C(t,r).event(i),a=o.apply(t,r),l=null==n?w(a):"function"==typeof n?n.apply(t,r):n,c=Math.max(a[1][0]-a[0][0],a[1][1]-a[0][1]),d=t.__zoom,u="function"==typeof e?e.apply(t,r):e,p=h(d.invert(l).concat(c/d.k),u.invert(l).concat(c/u.k))
12580
+ n.each((function(){var n=kV(this,i),o=n.on
12581
+ o!==t&&((e=(t=o).copy())._.cancel.push(a),e._.interrupt.push(a),e._.end.push(l)),n.on=e})),0===o&&r()}))},[Symbol.iterator]:ZV[Symbol.iterator]}
12582
+ var GV={time:null,delay:0,duration:250,ease:function(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}}
12583
+ function KV(t,e){for(var n;!(n=t.__transition)||!(n=n[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`)
12584
+ return n}zL.prototype.interrupt=function(t){return this.each((function(){$V(this,t)}))},zL.prototype.transition=function(t){var e,n
12585
+ t instanceof jV?(e=t._id,t=t._name):(e=WV(),(n=GV).time=oV(),t=null==t?null:t+"")
12586
+ for(var i=this._groups,o=i.length,r=0;r<o;++r)for(var s,a=i[r],l=a.length,c=0;c<l;++c)(s=a[c])&&xV(s,t,e,c,a,n||KV(s,e))
12587
+ return new jV(i,this._parents,t,e)}
12588
+ var JV=t=>()=>t
12589
+ function XV(t,{sourceEvent:e,target:n,transform:i,dispatch:o}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:i,enumerable:!0,configurable:!0},_:{value:o}})}function YV(t,e,n){this.k=t,this.x=e,this.y=n}YV.prototype={constructor:YV,scale:function(t){return 1===t?this:new YV(this.k*t,this.x,this.y)},translate:function(t,e){return 0===t&0===e?this:new YV(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}}
12590
+ var QV=new YV(1,0,0)
12591
+ function tH(t){t.stopImmediatePropagation()}function eH(t){t.preventDefault(),t.stopImmediatePropagation()}function nH(t){return!(t.ctrlKey&&"wheel"!==t.type||t.button)}function iH(){var t=this
12592
+ return t instanceof SVGElement?(t=t.ownerSVGElement||t).hasAttribute("viewBox")?[[(t=t.viewBox.baseVal).x,t.y],[t.x+t.width,t.y+t.height]]:[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]:[[0,0],[t.clientWidth,t.clientHeight]]}function oH(){return this.__zoom||QV}function rH(t){return-t.deltaY*(1===t.deltaMode?.05:t.deltaMode?1:.002)*(t.ctrlKey?10:1)}function sH(){return navigator.maxTouchPoints||"ontouchstart"in this}function aH(t,e,n){var i=t.invertX(e[0][0])-n[0][0],o=t.invertX(e[1][0])-n[1][0],r=t.invertY(e[0][1])-n[0][1],s=t.invertY(e[1][1])-n[1][1]
12593
+ return t.translate(o>i?(i+o)/2:Math.min(0,i)||Math.max(0,o),s>r?(r+s)/2:Math.min(0,r)||Math.max(0,s))}function lH(){var t,e,n,i=nH,o=iH,r=aH,s=rH,a=sH,l=[0,1/0],c=[[-1/0,-1/0],[1/0,1/0]],d=250,h=Gz,u=SP("start","zoom","end"),p=500,f=150,m=0,g=10
12594
+ function v(t){t.property("__zoom",oH).on("wheel.zoom",S,{passive:!1}).on("mousedown.zoom",$).on("dblclick.zoom",M).filter(a).on("touchstart.zoom",_).on("touchmove.zoom",E).on("touchend.zoom touchcancel.zoom",I).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function b(t,e){return(e=Math.max(l[0],Math.min(l[1],e)))===t.k?t:new YV(e,t.x,t.y)}function y(t,e,n){var i=e[0]-n[0]*t.k,o=e[1]-n[1]*t.k
12595
+ return i===t.x&&o===t.y?t:new YV(t.k,i,o)}function w(t){return[(+t[0][0]+ +t[1][0])/2,(+t[0][1]+ +t[1][1])/2]}function x(t,e,n,i){t.on("start.zoom",(function(){C(this,arguments).event(i).start()})).on("interrupt.zoom end.zoom",(function(){C(this,arguments).event(i).end()})).tween("zoom",(function(){var t=this,r=arguments,s=C(t,r).event(i),a=o.apply(t,r),l=null==n?w(a):"function"==typeof n?n.apply(t,r):n,c=Math.max(a[1][0]-a[0][0],a[1][1]-a[0][1]),d=t.__zoom,u="function"==typeof e?e.apply(t,r):e,p=h(d.invert(l).concat(c/d.k),u.invert(l).concat(c/u.k))
12596
12596
  return function(t){if(1===t)t=u
12597
12597
  else{var e=p(t),n=c/e[2]
12598
- t=new ZV(n,l[0]-e[0]*n,l[1]-e[1]*n)}s.zoom(null,t)}}))}function C(t,e,n){return!n&&t.__zooming||new k(t,e)}function k(t,e){this.that=t,this.args=e,this.active=0,this.sourceEvent=null,this.extent=o.apply(t,e),this.taps=0}function S(t,...e){if(i.apply(this,arguments)){var n=C(this,e).event(t),o=this.__zoom,a=Math.max(l[0],Math.min(l[1],o.k*Math.pow(2,s.apply(this,arguments)))),d=NL(t)
12598
+ t=new YV(n,l[0]-e[0]*n,l[1]-e[1]*n)}s.zoom(null,t)}}))}function C(t,e,n){return!n&&t.__zooming||new k(t,e)}function k(t,e){this.that=t,this.args=e,this.active=0,this.sourceEvent=null,this.extent=o.apply(t,e),this.taps=0}function S(t,...e){if(i.apply(this,arguments)){var n=C(this,e).event(t),o=this.__zoom,a=Math.max(l[0],Math.min(l[1],o.k*Math.pow(2,s.apply(this,arguments)))),d=HL(t)
12599
12599
  if(n.wheel)n.mouse[0][0]===d[0]&&n.mouse[0][1]===d[1]||(n.mouse[1]=o.invert(n.mouse[0]=d)),clearTimeout(n.wheel)
12600
12600
  else{if(o.k===a)return
12601
- n.mouse=[d,o.invert(d)],wV(this),n.start()}JV(t),n.wheel=setTimeout((function(){n.wheel=null,n.end()}),f),n.zoom("mouse",r(y(b(o,a),n.mouse[0],n.mouse[1]),n.extent,c))}}function $(t,...e){if(!n&&i.apply(this,arguments)){var o=t.currentTarget,s=C(this,e,!0).event(t),a=FL(t.view).on("mousemove.zoom",(function(t){if(JV(t),!s.moved){var e=t.clientX-d,n=t.clientY-h
12602
- s.moved=e*e+n*n>m}s.event(t).zoom("mouse",r(y(s.that.__zoom,s.mouse[0]=NL(t,o),s.mouse[1]),s.extent,c))}),!0).on("mouseup.zoom",(function(t){a.on("mousemove.zoom mouseup.zoom",null),function(t,e){var n=t.document.documentElement,i=FL(t).on("dragstart.drag",null)
12603
- e&&(i.on("click.drag",LL,PL),setTimeout((function(){i.on("click.drag",null)}),0)),"onselectstart"in n?i.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}(t.view,s.moved),JV(t),s.event(t).end()}),!0),l=NL(t,o),d=t.clientX,h=t.clientY
12604
- !function(t){var e=t.document.documentElement,n=FL(t).on("dragstart.drag",LL,PL)
12605
- "onselectstart"in e?n.on("selectstart.drag",LL,PL):(e.__noselect=e.style.MozUserSelect,e.style.MozUserSelect="none")}(t.view),KV(t),s.mouse=[l,this.__zoom.invert(l)],wV(this),s.start()}}function M(t,...e){if(i.apply(this,arguments)){var n=this.__zoom,s=NL(t.changedTouches?t.changedTouches[0]:t,this),a=n.invert(s),l=n.k*(t.shiftKey?.5:2),h=r(y(b(n,l),s,a),o.apply(this,e),c)
12606
- JV(t),d>0?FL(this).transition().duration(d).call(x,h,s,t):FL(this).call(v.transform,h,s,t)}}function _(n,...o){if(i.apply(this,arguments)){var r,s,a,l,c=n.touches,d=c.length,h=C(this,o,n.changedTouches.length===d).event(n)
12607
- for(KV(n),s=0;s<d;++s)l=[l=NL(a=c[s],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,r=!0,h.taps=1+!!t)
12608
- t&&(t=clearTimeout(t)),r&&(h.taps<2&&(e=l[0],t=setTimeout((function(){t=null}),p)),wV(this),h.start())}}function E(t,...e){if(this.__zooming){var n,i,o,s,a=C(this,e).event(t),l=t.changedTouches,d=l.length
12609
- for(JV(t),n=0;n<d;++n)o=NL(i=l[n],this),a.touch0&&a.touch0[2]===i.identifier?a.touch0[0]=o:a.touch1&&a.touch1[2]===i.identifier&&(a.touch1[0]=o)
12601
+ n.mouse=[d,o.invert(d)],$V(this),n.start()}eH(t),n.wheel=setTimeout((function(){n.wheel=null,n.end()}),f),n.zoom("mouse",r(y(b(o,a),n.mouse[0],n.mouse[1]),n.extent,c))}}function $(t,...e){if(!n&&i.apply(this,arguments)){var o=t.currentTarget,s=C(this,e,!0).event(t),a=VL(t.view).on("mousemove.zoom",(function(t){if(eH(t),!s.moved){var e=t.clientX-d,n=t.clientY-h
12602
+ s.moved=e*e+n*n>m}s.event(t).zoom("mouse",r(y(s.that.__zoom,s.mouse[0]=HL(t,o),s.mouse[1]),s.extent,c))}),!0).on("mouseup.zoom",(function(t){a.on("mousemove.zoom mouseup.zoom",null),function(t,e){var n=t.document.documentElement,i=VL(t).on("dragstart.drag",null)
12603
+ e&&(i.on("click.drag",qL,BL),setTimeout((function(){i.on("click.drag",null)}),0)),"onselectstart"in n?i.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}(t.view,s.moved),eH(t),s.event(t).end()}),!0),l=HL(t,o),d=t.clientX,h=t.clientY
12604
+ !function(t){var e=t.document.documentElement,n=VL(t).on("dragstart.drag",qL,BL)
12605
+ "onselectstart"in e?n.on("selectstart.drag",qL,BL):(e.__noselect=e.style.MozUserSelect,e.style.MozUserSelect="none")}(t.view),tH(t),s.mouse=[l,this.__zoom.invert(l)],$V(this),s.start()}}function M(t,...e){if(i.apply(this,arguments)){var n=this.__zoom,s=HL(t.changedTouches?t.changedTouches[0]:t,this),a=n.invert(s),l=n.k*(t.shiftKey?.5:2),h=r(y(b(n,l),s,a),o.apply(this,e),c)
12606
+ eH(t),d>0?VL(this).transition().duration(d).call(x,h,s,t):VL(this).call(v.transform,h,s,t)}}function _(n,...o){if(i.apply(this,arguments)){var r,s,a,l,c=n.touches,d=c.length,h=C(this,o,n.changedTouches.length===d).event(n)
12607
+ for(tH(n),s=0;s<d;++s)l=[l=HL(a=c[s],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,r=!0,h.taps=1+!!t)
12608
+ t&&(t=clearTimeout(t)),r&&(h.taps<2&&(e=l[0],t=setTimeout((function(){t=null}),p)),$V(this),h.start())}}function E(t,...e){if(this.__zooming){var n,i,o,s,a=C(this,e).event(t),l=t.changedTouches,d=l.length
12609
+ for(eH(t),n=0;n<d;++n)o=HL(i=l[n],this),a.touch0&&a.touch0[2]===i.identifier?a.touch0[0]=o:a.touch1&&a.touch1[2]===i.identifier&&(a.touch1[0]=o)
12610
12610
  if(i=a.that.__zoom,a.touch1){var h=a.touch0[0],u=a.touch0[1],p=a.touch1[0],f=a.touch1[1],m=(m=p[0]-h[0])*m+(m=p[1]-h[1])*m,g=(g=f[0]-u[0])*g+(g=f[1]-u[1])*g
12611
12611
  i=b(i,Math.sqrt(m/g)),o=[(h[0]+p[0])/2,(h[1]+p[1])/2],s=[(u[0]+f[0])/2,(u[1]+f[1])/2]}else{if(!a.touch0)return
12612
12612
  o=a.touch0[0],s=a.touch0[1]}a.zoom("touch",r(y(i,o,s),a.extent,c))}}function I(t,...i){if(this.__zooming){var o,r,s=C(this,i).event(t),a=t.changedTouches,l=a.length
12613
- for(KV(t),n&&clearTimeout(n),n=setTimeout((function(){n=null}),p),o=0;o<l;++o)r=a[o],s.touch0&&s.touch0[2]===r.identifier?delete s.touch0:s.touch1&&s.touch1[2]===r.identifier&&delete s.touch1
12613
+ for(tH(t),n&&clearTimeout(n),n=setTimeout((function(){n=null}),p),o=0;o<l;++o)r=a[o],s.touch0&&s.touch0[2]===r.identifier?delete s.touch0:s.touch1&&s.touch1[2]===r.identifier&&delete s.touch1
12614
12614
  if(s.touch1&&!s.touch0&&(s.touch0=s.touch1,delete s.touch1),s.touch0)s.touch0[1]=this.__zoom.invert(s.touch0[0])
12615
- else if(s.end(),2===s.taps&&(r=NL(r,this),Math.hypot(e[0]-r[0],e[1]-r[1])<g)){var c=FL(this).on("dblclick.zoom")
12615
+ else if(s.end(),2===s.taps&&(r=HL(r,this),Math.hypot(e[0]-r[0],e[1]-r[1])<g)){var c=VL(this).on("dblclick.zoom")
12616
12616
  c&&c.apply(this,arguments)}}}return v.transform=function(t,e,n,i){var o=t.selection?t.selection():t
12617
- o.property("__zoom",QV),t!==o?x(t,e,n,i):o.interrupt().each((function(){C(this,arguments).event(i).start().zoom(null,"function"==typeof e?e.apply(this,arguments):e).end()}))},v.scaleBy=function(t,e,n,i){v.scaleTo(t,(function(){return this.__zoom.k*("function"==typeof e?e.apply(this,arguments):e)}),n,i)},v.scaleTo=function(t,e,n,i){v.transform(t,(function(){var t=o.apply(this,arguments),i=this.__zoom,s=null==n?w(t):"function"==typeof n?n.apply(this,arguments):n,a=i.invert(s),l="function"==typeof e?e.apply(this,arguments):e
12617
+ o.property("__zoom",oH),t!==o?x(t,e,n,i):o.interrupt().each((function(){C(this,arguments).event(i).start().zoom(null,"function"==typeof e?e.apply(this,arguments):e).end()}))},v.scaleBy=function(t,e,n,i){v.scaleTo(t,(function(){return this.__zoom.k*("function"==typeof e?e.apply(this,arguments):e)}),n,i)},v.scaleTo=function(t,e,n,i){v.transform(t,(function(){var t=o.apply(this,arguments),i=this.__zoom,s=null==n?w(t):"function"==typeof n?n.apply(this,arguments):n,a=i.invert(s),l="function"==typeof e?e.apply(this,arguments):e
12618
12618
  return r(y(b(i,l),s,a),t,c)}),n,i)},v.translateBy=function(t,e,n,i){v.transform(t,(function(){return r(this.__zoom.translate("function"==typeof e?e.apply(this,arguments):e,"function"==typeof n?n.apply(this,arguments):n),o.apply(this,arguments),c)}),null,i)},v.translateTo=function(t,e,n,i,s){v.transform(t,(function(){var t=o.apply(this,arguments),s=this.__zoom,a=null==i?w(t):"function"==typeof i?i.apply(this,arguments):i
12619
- return r(GV.translate(a[0],a[1]).scale(s.k).translate("function"==typeof e?-e.apply(this,arguments):-e,"function"==typeof n?-n.apply(this,arguments):-n),t,c)}),i,s)},k.prototype={event:function(t){return t&&(this.sourceEvent=t),this},start:function(){return 1==++this.active&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(t,e){return this.mouse&&"mouse"!==t&&(this.mouse[1]=e.invert(this.mouse[0])),this.touch0&&"touch"!==t&&(this.touch0[1]=e.invert(this.touch0[0])),this.touch1&&"touch"!==t&&(this.touch1[1]=e.invert(this.touch1[0])),this.that.__zoom=e,this.emit("zoom"),this},end:function(){return 0==--this.active&&(delete this.that.__zooming,this.emit("end")),this},emit:function(t){var e=FL(this.that).datum()
12620
- u.call(t,this.that,new WV(t,{sourceEvent:this.sourceEvent,target:v,type:t,transform:this.that.__zoom,dispatch:u}),e)}},v.wheelDelta=function(t){return arguments.length?(s="function"==typeof t?t:jV(+t),v):s},v.filter=function(t){return arguments.length?(i="function"==typeof t?t:jV(!!t),v):i},v.touchable=function(t){return arguments.length?(a="function"==typeof t?t:jV(!!t),v):a},v.extent=function(t){return arguments.length?(o="function"==typeof t?t:jV([[+t[0][0],+t[0][1]],[+t[1][0],+t[1][1]]]),v):o},v.scaleExtent=function(t){return arguments.length?(l[0]=+t[0],l[1]=+t[1],v):[l[0],l[1]]},v.translateExtent=function(t){return arguments.length?(c[0][0]=+t[0][0],c[1][0]=+t[1][0],c[0][1]=+t[0][1],c[1][1]=+t[1][1],v):[[c[0][0],c[0][1]],[c[1][0],c[1][1]]]},v.constrain=function(t){return arguments.length?(r=t,v):r},v.duration=function(t){return arguments.length?(d=+t,v):d},v.interpolate=function(t){return arguments.length?(h=t,v):h},v.on=function(){var t=u.on.apply(u,arguments)
12621
- return t===u?v:t},v.clickDistance=function(t){return arguments.length?(m=(t=+t)*t,v):Math.sqrt(m)},v.tapDistance=function(t){return arguments.length?(g=+t,v):g},v}ZV.prototype
12622
- const oH=Z`
12619
+ return r(QV.translate(a[0],a[1]).scale(s.k).translate("function"==typeof e?-e.apply(this,arguments):-e,"function"==typeof n?-n.apply(this,arguments):-n),t,c)}),i,s)},k.prototype={event:function(t){return t&&(this.sourceEvent=t),this},start:function(){return 1==++this.active&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(t,e){return this.mouse&&"mouse"!==t&&(this.mouse[1]=e.invert(this.mouse[0])),this.touch0&&"touch"!==t&&(this.touch0[1]=e.invert(this.touch0[0])),this.touch1&&"touch"!==t&&(this.touch1[1]=e.invert(this.touch1[0])),this.that.__zoom=e,this.emit("zoom"),this},end:function(){return 0==--this.active&&(delete this.that.__zooming,this.emit("end")),this},emit:function(t){var e=VL(this.that).datum()
12620
+ u.call(t,this.that,new XV(t,{sourceEvent:this.sourceEvent,target:v,type:t,transform:this.that.__zoom,dispatch:u}),e)}},v.wheelDelta=function(t){return arguments.length?(s="function"==typeof t?t:JV(+t),v):s},v.filter=function(t){return arguments.length?(i="function"==typeof t?t:JV(!!t),v):i},v.touchable=function(t){return arguments.length?(a="function"==typeof t?t:JV(!!t),v):a},v.extent=function(t){return arguments.length?(o="function"==typeof t?t:JV([[+t[0][0],+t[0][1]],[+t[1][0],+t[1][1]]]),v):o},v.scaleExtent=function(t){return arguments.length?(l[0]=+t[0],l[1]=+t[1],v):[l[0],l[1]]},v.translateExtent=function(t){return arguments.length?(c[0][0]=+t[0][0],c[1][0]=+t[1][0],c[0][1]=+t[0][1],c[1][1]=+t[1][1],v):[[c[0][0],c[0][1]],[c[1][0],c[1][1]]]},v.constrain=function(t){return arguments.length?(r=t,v):r},v.duration=function(t){return arguments.length?(d=+t,v):d},v.interpolate=function(t){return arguments.length?(h=t,v):h},v.on=function(){var t=u.on.apply(u,arguments)
12621
+ return t===u?v:t},v.clickDistance=function(t){return arguments.length?(m=(t=+t)*t,v):Math.sqrt(m)},v.tapDistance=function(t){return arguments.length?(g=+t,v):g},v}YV.prototype
12622
+ const cH=Z`
12623
12623
  <div class="wafer-map-container">
12624
12624
  <svg class="svg-root">
12625
12625
  <g ${Ft("zoomContainer")} transform=${t=>t.transform.toString()}>
@@ -12649,7 +12649,7 @@ const oH=Z`
12649
12649
  />
12650
12650
  </svg>
12651
12651
  </div>
12652
- `,rH=yt`
12652
+ `,dH=yt`
12653
12653
  :host {
12654
12654
  display: inline-block;
12655
12655
  width: 500px;
@@ -12733,76 +12733,76 @@ const oH=Z`
12733
12733
  outline-width: 0px;
12734
12734
  }
12735
12735
  `
12736
- function sH(t,e){return null==t||null==e?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function aH(t,e){return null==t||null==e?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function lH(t){let e,n,i
12736
+ function hH(t,e){return null==t||null==e?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function uH(t,e){return null==t||null==e?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function pH(t){let e,n,i
12737
12737
  function o(t,i,o=0,r=t.length){if(o<r){if(0!==e(i,i))return r
12738
12738
  do{const e=o+r>>>1
12739
- n(t[e],i)<0?o=e+1:r=e}while(o<r)}return o}return 2!==t.length?(e=sH,n=(e,n)=>sH(t(e),n),i=(e,n)=>t(e)-n):(e=t===sH||t===aH?t:cH,n=t,i=t),{left:o,center:function(t,e,n=0,r=t.length){const s=o(t,e,n,r-1)
12739
+ n(t[e],i)<0?o=e+1:r=e}while(o<r)}return o}return 2!==t.length?(e=hH,n=(e,n)=>hH(t(e),n),i=(e,n)=>t(e)-n):(e=t===hH||t===uH?t:fH,n=t,i=t),{left:o,center:function(t,e,n=0,r=t.length){const s=o(t,e,n,r-1)
12740
12740
  return s>n&&i(t[s-1],e)>-i(t[s],e)?s-1:s},right:function(t,i,o=0,r=t.length){if(o<r){if(0!==e(i,i))return r
12741
12741
  do{const e=o+r>>>1
12742
- n(t[e],i)<=0?o=e+1:r=e}while(o<r)}return o}}}function cH(){return 0}function dH(t){return null===t?NaN:+t}const hH=lH(sH).right
12743
- lH(dH).center
12744
- class uH extends Map{constructor(t,e=fH){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:e}}),null!=t)for(const[e,n]of t)this.set(e,n)}get(t){return super.get(pH(this,t))}has(t){return super.has(pH(this,t))}set(t,e){return super.set(function({_intern:t,_key:e},n){const i=e(n)
12742
+ n(t[e],i)<=0?o=e+1:r=e}while(o<r)}return o}}}function fH(){return 0}function mH(t){return null===t?NaN:+t}const gH=pH(hH).right
12743
+ pH(mH).center
12744
+ class vH extends Map{constructor(t,e=yH){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:e}}),null!=t)for(const[e,n]of t)this.set(e,n)}get(t){return super.get(bH(this,t))}has(t){return super.has(bH(this,t))}set(t,e){return super.set(function({_intern:t,_key:e},n){const i=e(n)
12745
12745
  return t.has(i)?t.get(i):(t.set(i,n),n)}(this,t),e)}delete(t){return super.delete(function({_intern:t,_key:e},n){const i=e(n)
12746
12746
  t.has(i)&&(n=t.get(i),t.delete(i))
12747
- return n}(this,t))}}function pH({_intern:t,_key:e},n){const i=e(n)
12748
- return t.has(i)?t.get(i):n}function fH(t){return null!==t&&"object"==typeof t?t.valueOf():t}const mH=Math.sqrt(50),gH=Math.sqrt(10),vH=Math.sqrt(2)
12749
- function bH(t,e,n){const i=(e-t)/Math.max(0,n),o=Math.floor(Math.log10(i)),r=i/Math.pow(10,o),s=r>=mH?10:r>=gH?5:r>=vH?2:1
12747
+ return n}(this,t))}}function bH({_intern:t,_key:e},n){const i=e(n)
12748
+ return t.has(i)?t.get(i):n}function yH(t){return null!==t&&"object"==typeof t?t.valueOf():t}const wH=Math.sqrt(50),xH=Math.sqrt(10),CH=Math.sqrt(2)
12749
+ function kH(t,e,n){const i=(e-t)/Math.max(0,n),o=Math.floor(Math.log10(i)),r=i/Math.pow(10,o),s=r>=wH?10:r>=xH?5:r>=CH?2:1
12750
12750
  let a,l,c
12751
- return o<0?(c=Math.pow(10,-o)/s,a=Math.round(t*c),l=Math.round(e*c),a/c<t&&++a,l/c>e&&--l,c=-c):(c=Math.pow(10,o)*s,a=Math.round(t/c),l=Math.round(e/c),a*c<t&&++a,l*c>e&&--l),l<a&&.5<=n&&n<2?bH(t,e,2*n):[a,l,c]}function yH(t,e,n){if(!((n=+n)>0))return[]
12751
+ return o<0?(c=Math.pow(10,-o)/s,a=Math.round(t*c),l=Math.round(e*c),a/c<t&&++a,l/c>e&&--l,c=-c):(c=Math.pow(10,o)*s,a=Math.round(t/c),l=Math.round(e/c),a*c<t&&++a,l*c>e&&--l),l<a&&.5<=n&&n<2?kH(t,e,2*n):[a,l,c]}function SH(t,e,n){if(!((n=+n)>0))return[]
12752
12752
  if((t=+t)===(e=+e))return[t]
12753
- const i=e<t,[o,r,s]=i?bH(e,t,n):bH(t,e,n)
12753
+ const i=e<t,[o,r,s]=i?kH(e,t,n):kH(t,e,n)
12754
12754
  if(!(r>=o))return[]
12755
12755
  const a=r-o+1,l=new Array(a)
12756
12756
  if(i)if(s<0)for(let t=0;t<a;++t)l[t]=(r-t)/-s
12757
12757
  else for(let t=0;t<a;++t)l[t]=(r-t)*s
12758
12758
  else if(s<0)for(let t=0;t<a;++t)l[t]=(o+t)/-s
12759
12759
  else for(let t=0;t<a;++t)l[t]=(o+t)*s
12760
- return l}function wH(t,e,n){return bH(t=+t,e=+e,n=+n)[2]}function xH(t,e,n=dH){if((i=t.length)&&!isNaN(e=+e)){if(e<=0||i<2)return+n(t[0],0,t)
12760
+ return l}function $H(t,e,n){return kH(t=+t,e=+e,n=+n)[2]}function MH(t,e,n=mH){if((i=t.length)&&!isNaN(e=+e)){if(e<=0||i<2)return+n(t[0],0,t)
12761
12761
  if(e>=1)return+n(t[i-1],i-1,t)
12762
12762
  var i,o=(i-1)*e,r=Math.floor(o),s=+n(t[r],r,t)
12763
- return s+(+n(t[r+1],r+1,t)-s)*(o-r)}}function CH(t,e,n){t=+t,e=+e,n=(o=arguments.length)<2?(e=t,t=0,1):o<3?1:+n
12763
+ return s+(+n(t[r+1],r+1,t)-s)*(o-r)}}function _H(t,e,n){t=+t,e=+e,n=(o=arguments.length)<2?(e=t,t=0,1):o<3?1:+n
12764
12764
  for(var i=-1,o=0|Math.max(0,Math.ceil((e-t)/n)),r=new Array(o);++i<o;)r[i]=t+i*n
12765
- return r}function kH(t,e){switch(arguments.length){case 0:break
12765
+ return r}function EH(t,e){switch(arguments.length){case 0:break
12766
12766
  case 1:this.range(t)
12767
12767
  break
12768
- default:this.range(e).domain(t)}return this}const SH=Symbol("implicit")
12769
- function $H(){var t=new uH,e=[],n=[],i=SH
12768
+ default:this.range(e).domain(t)}return this}const IH=Symbol("implicit")
12769
+ function DH(){var t=new vH,e=[],n=[],i=IH
12770
12770
  function o(o){let r=t.get(o)
12771
- if(void 0===r){if(i!==SH)return i
12771
+ if(void 0===r){if(i!==IH)return i
12772
12772
  t.set(o,r=e.push(o)-1)}return n[r%n.length]}return o.domain=function(n){if(!arguments.length)return e.slice()
12773
- e=[],t=new uH
12773
+ e=[],t=new vH
12774
12774
  for(const i of n)t.has(i)||t.set(i,e.push(i)-1)
12775
- return o},o.range=function(t){return arguments.length?(n=Array.from(t),o):n.slice()},o.unknown=function(t){return arguments.length?(i=t,o):i},o.copy=function(){return $H(e,n).unknown(i)},kH.apply(o,arguments),o}function MH(){var t,e,n=$H().unknown(void 0),i=n.domain,o=n.range,r=0,s=1,a=!1,l=0,c=0,d=.5
12775
+ return o},o.range=function(t){return arguments.length?(n=Array.from(t),o):n.slice()},o.unknown=function(t){return arguments.length?(i=t,o):i},o.copy=function(){return DH(e,n).unknown(i)},EH.apply(o,arguments),o}function AH(){var t,e,n=DH().unknown(void 0),i=n.domain,o=n.range,r=0,s=1,a=!1,l=0,c=0,d=.5
12776
12776
  function h(){var n=i().length,h=s<r,u=h?s:r,p=h?r:s
12777
12777
  t=(p-u)/Math.max(1,n-l+2*c),a&&(t=Math.floor(t)),u+=(p-u-t*(n-l))*d,e=t*(1-l),a&&(u=Math.round(u),e=Math.round(e))
12778
- var f=CH(n).map((function(e){return u+t*e}))
12779
- return o(h?f.reverse():f)}return delete n.unknown,n.domain=function(t){return arguments.length?(i(t),h()):i()},n.range=function(t){return arguments.length?([r,s]=t,r=+r,s=+s,h()):[r,s]},n.rangeRound=function(t){return[r,s]=t,r=+r,s=+s,a=!0,h()},n.bandwidth=function(){return e},n.step=function(){return t},n.round=function(t){return arguments.length?(a=!!t,h()):a},n.padding=function(t){return arguments.length?(l=Math.min(1,c=+t),h()):l},n.paddingInner=function(t){return arguments.length?(l=Math.min(1,t),h()):l},n.paddingOuter=function(t){return arguments.length?(c=+t,h()):c},n.align=function(t){return arguments.length?(d=Math.max(0,Math.min(1,t)),h()):d},n.copy=function(){return MH(i(),[r,s]).round(a).paddingInner(l).paddingOuter(c).align(d)},kH.apply(h(),arguments)}function _H(t){return+t}var EH=[0,1]
12780
- function IH(t){return t}function DH(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:(n=isNaN(e)?NaN:.5,function(){return n})
12781
- var n}function AH(t,e,n){var i=t[0],o=t[1],r=e[0],s=e[1]
12782
- return o<i?(i=DH(o,i),r=n(s,r)):(i=DH(i,o),r=n(r,s)),function(t){return r(i(t))}}function TH(t,e,n){var i=Math.min(t.length,e.length)-1,o=new Array(i),r=new Array(i),s=-1
12783
- for(t[i]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++s<i;)o[s]=DH(t[s],t[s+1]),r[s]=n(e[s],e[s+1])
12784
- return function(e){var n=hH(t,e,1,i)-1
12785
- return r[n](o[n](e))}}function OH(){var t,e,n,i,o,r,s=EH,a=EH,l=Az,c=IH
12778
+ var f=_H(n).map((function(e){return u+t*e}))
12779
+ return o(h?f.reverse():f)}return delete n.unknown,n.domain=function(t){return arguments.length?(i(t),h()):i()},n.range=function(t){return arguments.length?([r,s]=t,r=+r,s=+s,h()):[r,s]},n.rangeRound=function(t){return[r,s]=t,r=+r,s=+s,a=!0,h()},n.bandwidth=function(){return e},n.step=function(){return t},n.round=function(t){return arguments.length?(a=!!t,h()):a},n.padding=function(t){return arguments.length?(l=Math.min(1,c=+t),h()):l},n.paddingInner=function(t){return arguments.length?(l=Math.min(1,t),h()):l},n.paddingOuter=function(t){return arguments.length?(c=+t,h()):c},n.align=function(t){return arguments.length?(d=Math.max(0,Math.min(1,t)),h()):d},n.copy=function(){return AH(i(),[r,s]).round(a).paddingInner(l).paddingOuter(c).align(d)},EH.apply(h(),arguments)}function TH(t){return+t}var OH=[0,1]
12780
+ function RH(t){return t}function FH(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:(n=isNaN(e)?NaN:.5,function(){return n})
12781
+ var n}function NH(t,e,n){var i=t[0],o=t[1],r=e[0],s=e[1]
12782
+ return o<i?(i=FH(o,i),r=n(s,r)):(i=FH(i,o),r=n(r,s)),function(t){return r(i(t))}}function PH(t,e,n){var i=Math.min(t.length,e.length)-1,o=new Array(i),r=new Array(i),s=-1
12783
+ for(t[i]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++s<i;)o[s]=FH(t[s],t[s+1]),r[s]=n(e[s],e[s+1])
12784
+ return function(e){var n=gH(t,e,1,i)-1
12785
+ return r[n](o[n](e))}}function LH(){var t,e,n,i,o,r,s=OH,a=OH,l=Nz,c=RH
12786
12786
  function d(){var t,e,n,l=Math.min(s.length,a.length)
12787
- return c!==IH&&(t=s[0],e=s[l-1],t>e&&(n=t,t=e,e=n),c=function(n){return Math.max(t,Math.min(e,n))}),i=l>2?TH:AH,o=r=null,h}function h(e){return null==e||isNaN(e=+e)?n:(o||(o=i(s.map(t),a,l)))(t(c(e)))}return h.invert=function(n){return c(e((r||(r=i(a,s.map(t),Mz)))(n)))},h.domain=function(t){return arguments.length?(s=Array.from(t,_H),d()):s.slice()},h.range=function(t){return arguments.length?(a=Array.from(t),d()):a.slice()},h.rangeRound=function(t){return a=Array.from(t),l=Tz,d()},h.clamp=function(t){return arguments.length?(c=!!t||IH,d()):c!==IH},h.interpolate=function(t){return arguments.length?(l=t,d()):l},h.unknown=function(t){return arguments.length?(n=t,h):n},function(n,i){return t=n,e=i,d()}}function RH(t,e){if((n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null
12787
+ return c!==RH&&(t=s[0],e=s[l-1],t>e&&(n=t,t=e,e=n),c=function(n){return Math.max(t,Math.min(e,n))}),i=l>2?PH:NH,o=r=null,h}function h(e){return null==e||isNaN(e=+e)?n:(o||(o=i(s.map(t),a,l)))(t(c(e)))}return h.invert=function(n){return c(e((r||(r=i(a,s.map(t),Az)))(n)))},h.domain=function(t){return arguments.length?(s=Array.from(t,TH),d()):s.slice()},h.range=function(t){return arguments.length?(a=Array.from(t),d()):a.slice()},h.rangeRound=function(t){return a=Array.from(t),l=Pz,d()},h.clamp=function(t){return arguments.length?(c=!!t||RH,d()):c!==RH},h.interpolate=function(t){return arguments.length?(l=t,d()):l},h.unknown=function(t){return arguments.length?(n=t,h):n},function(n,i){return t=n,e=i,d()}}function zH(t,e){if((n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null
12788
12788
  var n,i=t.slice(0,n)
12789
- return[i.length>1?i[0]+i.slice(2):i,+t.slice(n+1)]}function FH(t){return(t=RH(Math.abs(t)))?t[1]:NaN}var NH,PH=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i
12790
- function LH(t){if(!(e=PH.exec(t)))throw new Error("invalid format: "+t)
12789
+ return[i.length>1?i[0]+i.slice(2):i,+t.slice(n+1)]}function VH(t){return(t=zH(Math.abs(t)))?t[1]:NaN}var HH,BH=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i
12790
+ function qH(t){if(!(e=BH.exec(t)))throw new Error("invalid format: "+t)
12791
12791
  var e
12792
- return new zH({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function zH(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function VH(t,e){var n=RH(t,e)
12792
+ return new UH({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function UH(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function jH(t,e){var n=zH(t,e)
12793
12793
  if(!n)return t+""
12794
12794
  var i=n[0],o=n[1]
12795
- return o<0?"0."+new Array(-o).join("0")+i:i.length>o+1?i.slice(0,o+1)+"."+i.slice(o+1):i+new Array(o-i.length+2).join("0")}LH.prototype=zH.prototype,zH.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}
12796
- var HH={"%":(t,e)=>(100*t).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>VH(100*t,e),r:VH,s:function(t,e){var n=RH(t,e)
12795
+ return o<0?"0."+new Array(-o).join("0")+i:i.length>o+1?i.slice(0,o+1)+"."+i.slice(o+1):i+new Array(o-i.length+2).join("0")}qH.prototype=UH.prototype,UH.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}
12796
+ var WH={"%":(t,e)=>(100*t).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>jH(100*t,e),r:jH,s:function(t,e){var n=zH(t,e)
12797
12797
  if(!n)return t+""
12798
- var i=n[0],o=n[1],r=o-(NH=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,s=i.length
12799
- return r===s?i:r>s?i+new Array(r-s+1).join("0"):r>0?i.slice(0,r)+"."+i.slice(r):"0."+new Array(1-r).join("0")+RH(t,Math.max(0,e+r-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)}
12800
- function BH(t){return t}var qH,UH,jH,WH=Array.prototype.map,ZH=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"]
12801
- function GH(t){var e,n,i=void 0===t.grouping||void 0===t.thousands?BH:(e=WH.call(t.grouping,Number),n=t.thousands+"",function(t,i){for(var o=t.length,r=[],s=0,a=e[0],l=0;o>0&&a>0&&(l+a+1>i&&(a=Math.max(1,i-l)),r.push(t.substring(o-=a,o+a)),!((l+=a+1)>i));)a=e[s=(s+1)%e.length]
12802
- return r.reverse().join(n)}),o=void 0===t.currency?"":t.currency[0]+"",r=void 0===t.currency?"":t.currency[1]+"",s=void 0===t.decimal?".":t.decimal+"",a=void 0===t.numerals?BH:function(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}}(WH.call(t.numerals,String)),l=void 0===t.percent?"%":t.percent+"",c=void 0===t.minus?"−":t.minus+"",d=void 0===t.nan?"NaN":t.nan+""
12803
- function h(t){var e=(t=LH(t)).fill,n=t.align,h=t.sign,u=t.symbol,p=t.zero,f=t.width,m=t.comma,g=t.precision,v=t.trim,b=t.type
12804
- "n"===b?(m=!0,b="g"):HH[b]||(void 0===g&&(g=12),v=!0,b="g"),(p||"0"===e&&"="===n)&&(p=!0,e="0",n="=")
12805
- var y="$"===u?o:"#"===u&&/[boxX]/.test(b)?"0"+b.toLowerCase():"",w="$"===u?r:/[%p]/.test(b)?l:"",x=HH[b],C=/[defgprs%]/.test(b)
12798
+ var i=n[0],o=n[1],r=o-(HH=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,s=i.length
12799
+ return r===s?i:r>s?i+new Array(r-s+1).join("0"):r>0?i.slice(0,r)+"."+i.slice(r):"0."+new Array(1-r).join("0")+zH(t,Math.max(0,e+r-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)}
12800
+ function ZH(t){return t}var GH,KH,JH,XH=Array.prototype.map,YH=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"]
12801
+ function QH(t){var e,n,i=void 0===t.grouping||void 0===t.thousands?ZH:(e=XH.call(t.grouping,Number),n=t.thousands+"",function(t,i){for(var o=t.length,r=[],s=0,a=e[0],l=0;o>0&&a>0&&(l+a+1>i&&(a=Math.max(1,i-l)),r.push(t.substring(o-=a,o+a)),!((l+=a+1)>i));)a=e[s=(s+1)%e.length]
12802
+ return r.reverse().join(n)}),o=void 0===t.currency?"":t.currency[0]+"",r=void 0===t.currency?"":t.currency[1]+"",s=void 0===t.decimal?".":t.decimal+"",a=void 0===t.numerals?ZH:function(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}}(XH.call(t.numerals,String)),l=void 0===t.percent?"%":t.percent+"",c=void 0===t.minus?"−":t.minus+"",d=void 0===t.nan?"NaN":t.nan+""
12803
+ function h(t){var e=(t=qH(t)).fill,n=t.align,h=t.sign,u=t.symbol,p=t.zero,f=t.width,m=t.comma,g=t.precision,v=t.trim,b=t.type
12804
+ "n"===b?(m=!0,b="g"):WH[b]||(void 0===g&&(g=12),v=!0,b="g"),(p||"0"===e&&"="===n)&&(p=!0,e="0",n="=")
12805
+ var y="$"===u?o:"#"===u&&/[boxX]/.test(b)?"0"+b.toLowerCase():"",w="$"===u?r:/[%p]/.test(b)?l:"",x=WH[b],C=/[defgprs%]/.test(b)
12806
12806
  function k(t){var o,r,l,u=y,k=w
12807
12807
  if("c"===b)k=x(t)+k,t=""
12808
12808
  else{var S=(t=+t)<0||1/t<0
@@ -12811,7 +12811,7 @@ break
12811
12811
  case"0":0===o&&(o=i),e=i
12812
12812
  break
12813
12813
  default:if(!+t[i])break t
12814
- o>0&&(o=0)}return o>0?t.slice(0,o)+t.slice(e+1):t}(t)),S&&0==+t&&"+"!==h&&(S=!1),u=(S?"("===h?h:c:"-"===h||"("===h?"":h)+u,k=("s"===b?ZH[8+NH/3]:"")+k+(S&&"("===h?")":""),C)for(o=-1,r=t.length;++o<r;)if(48>(l=t.charCodeAt(o))||l>57){k=(46===l?s+t.slice(o+1):t.slice(o))+k,t=t.slice(0,o)
12814
+ o>0&&(o=0)}return o>0?t.slice(0,o)+t.slice(e+1):t}(t)),S&&0==+t&&"+"!==h&&(S=!1),u=(S?"("===h?h:c:"-"===h||"("===h?"":h)+u,k=("s"===b?YH[8+HH/3]:"")+k+(S&&"("===h?")":""),C)for(o=-1,r=t.length;++o<r;)if(48>(l=t.charCodeAt(o))||l>57){k=(46===l?s+t.slice(o+1):t.slice(o))+k,t=t.slice(0,o)
12815
12815
  break}}m&&!p&&(t=i(t,1/0))
12816
12816
  var $=u.length+t.length+k.length,M=$<f?new Array(f-$+1).join(e):""
12817
12817
  switch(m&&p&&(t=i(M+t,M.length?f-k.length:1/0),M=""),n){case"<":t=u+t+k+M
@@ -12820,34 +12820,34 @@ case"=":t=u+M+t+k
12820
12820
  break
12821
12821
  case"^":t=M.slice(0,$=M.length>>1)+u+t+k+M.slice($)
12822
12822
  break
12823
- default:t=M+u+t+k}return a(t)}return g=void 0===g?6:/[gprs]/.test(b)?Math.max(1,Math.min(21,g)):Math.max(0,Math.min(20,g)),k.toString=function(){return t+""},k}return{format:h,formatPrefix:function(t,e){var n=h(((t=LH(t)).type="f",t)),i=3*Math.max(-8,Math.min(8,Math.floor(FH(e)/3))),o=Math.pow(10,-i),r=ZH[8+i/3]
12824
- return function(t){return n(o*t)+r}}}}function KH(t,e,n,i){var o,r=function(t,e,n){n=+n
12825
- const i=(e=+e)<(t=+t),o=i?wH(e,t,n):wH(t,e,n)
12823
+ default:t=M+u+t+k}return a(t)}return g=void 0===g?6:/[gprs]/.test(b)?Math.max(1,Math.min(21,g)):Math.max(0,Math.min(20,g)),k.toString=function(){return t+""},k}return{format:h,formatPrefix:function(t,e){var n=h(((t=qH(t)).type="f",t)),i=3*Math.max(-8,Math.min(8,Math.floor(VH(e)/3))),o=Math.pow(10,-i),r=YH[8+i/3]
12824
+ return function(t){return n(o*t)+r}}}}function tB(t,e,n,i){var o,r=function(t,e,n){n=+n
12825
+ const i=(e=+e)<(t=+t),o=i?$H(e,t,n):$H(t,e,n)
12826
12826
  return(i?-1:1)*(o<0?1/-o:o)}(t,e,n)
12827
- switch((i=LH(null==i?",f":i)).type){case"s":var s=Math.max(Math.abs(t),Math.abs(e))
12828
- return null!=i.precision||isNaN(o=function(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(FH(e)/3)))-FH(Math.abs(t)))}(r,s))||(i.precision=o),jH(i,s)
12829
- case"":case"e":case"g":case"p":case"r":null!=i.precision||isNaN(o=function(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,FH(e)-FH(t))+1}(r,Math.max(Math.abs(t),Math.abs(e))))||(i.precision=o-("e"===i.type))
12827
+ switch((i=qH(null==i?",f":i)).type){case"s":var s=Math.max(Math.abs(t),Math.abs(e))
12828
+ return null!=i.precision||isNaN(o=function(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(VH(e)/3)))-VH(Math.abs(t)))}(r,s))||(i.precision=o),JH(i,s)
12829
+ case"":case"e":case"g":case"p":case"r":null!=i.precision||isNaN(o=function(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,VH(e)-VH(t))+1}(r,Math.max(Math.abs(t),Math.abs(e))))||(i.precision=o-("e"===i.type))
12830
12830
  break
12831
- case"f":case"%":null!=i.precision||isNaN(o=function(t){return Math.max(0,-FH(Math.abs(t)))}(r))||(i.precision=o-2*("%"===i.type))}return UH(i)}function JH(){var t=OH()(IH,IH)
12832
- return t.copy=function(){return e=t,JH().domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())
12833
- var e},kH.apply(t,arguments),function(t){var e=t.domain
12831
+ case"f":case"%":null!=i.precision||isNaN(o=function(t){return Math.max(0,-VH(Math.abs(t)))}(r))||(i.precision=o-2*("%"===i.type))}return KH(i)}function eB(){var t=LH()(RH,RH)
12832
+ return t.copy=function(){return e=t,eB().domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())
12833
+ var e},EH.apply(t,arguments),function(t){var e=t.domain
12834
12834
  return t.ticks=function(t){var n=e()
12835
- return yH(n[0],n[n.length-1],null==t?10:t)},t.tickFormat=function(t,n){var i=e()
12836
- return KH(i[0],i[i.length-1],null==t?10:t,n)},t.nice=function(n){null==n&&(n=10)
12835
+ return SH(n[0],n[n.length-1],null==t?10:t)},t.tickFormat=function(t,n){var i=e()
12836
+ return tB(i[0],i[i.length-1],null==t?10:t,n)},t.nice=function(n){null==n&&(n=10)
12837
12837
  var i,o,r=e(),s=0,a=r.length-1,l=r[s],c=r[a],d=10
12838
- for(c<l&&(o=l,l=c,c=o,o=s,s=a,a=o);d-- >0;){if((o=wH(l,c,n))===i)return r[s]=l,r[a]=c,e(r)
12838
+ for(c<l&&(o=l,l=c,c=o,o=s,s=a,a=o);d-- >0;){if((o=$H(l,c,n))===i)return r[s]=l,r[a]=c,e(r)
12839
12839
  if(o>0)l=Math.floor(l/o)*o,c=Math.ceil(c/o)*o
12840
12840
  else{if(!(o<0))break
12841
- l=Math.ceil(l*o)/o,c=Math.floor(c*o)/o}i=o}return t},t}(t)}function XH(){var t,e=[],n=[],i=[]
12841
+ l=Math.ceil(l*o)/o,c=Math.floor(c*o)/o}i=o}return t},t}(t)}function nB(){var t,e=[],n=[],i=[]
12842
12842
  function o(){var t=0,o=Math.max(1,n.length)
12843
- for(i=new Array(o-1);++t<o;)i[t-1]=xH(e,t/o)
12844
- return r}function r(e){return null==e||isNaN(e=+e)?t:n[hH(i,e)]}return r.invertExtent=function(t){var o=n.indexOf(t)
12843
+ for(i=new Array(o-1);++t<o;)i[t-1]=MH(e,t/o)
12844
+ return r}function r(e){return null==e||isNaN(e=+e)?t:n[gH(i,e)]}return r.invertExtent=function(t){var o=n.indexOf(t)
12845
12845
  return o<0?[NaN,NaN]:[o>0?i[o-1]:e[0],o<i.length?i[o]:e[e.length-1]]},r.domain=function(t){if(!arguments.length)return e.slice()
12846
12846
  e=[]
12847
12847
  for(let n of t)null==n||isNaN(n=+n)||e.push(n)
12848
- return e.sort(sH),o()},r.range=function(t){return arguments.length?(n=Array.from(t),o()):n.slice()},r.unknown=function(e){return arguments.length?(t=e,r):t},r.quantiles=function(){return i.slice()},r.copy=function(){return XH().domain(e).range(n).unknown(t)},kH.apply(r,arguments)}qH=GH({thousands:",",grouping:[3],currency:["$",""]}),UH=qH.format,jH=qH.formatPrefix
12849
- const YH="bottom-left",QH="bottom-right",tB="top-left",eB="top",nB="show",iB="hide",oB="linear",rB="ordinal"
12850
- let sB=class{get containerDimensions(){return this._containerDimensions}get dieDimensions(){return this._dieDimensions}get radius(){return this._radius}get margin(){return this._margin}get horizontalScale(){return this._horizontalScale}get verticalScale(){return this._verticalScale}get invertedHorizontalScale(){return this._invertedHorizontalScale}get invertedVerticalScale(){return this._invertedVerticalScale}constructor(t){this.wafermap=t,this.defaultPadding=0,this.baseMarginPercentage=.04}updateContainerDimensions(){const t={width:this.wafermap.canvasWidth,height:this.wafermap.canvasHeight},e=Math.min(t.width,t.height),n={top:(t.height-e)/2,right:(t.width-e)/2,bottom:(t.height-e)/2,left:(t.width-e)/2},i={top:e*this.baseMarginPercentage,right:e*this.baseMarginPercentage,bottom:e*this.baseMarginPercentage,left:e*this.baseMarginPercentage}
12848
+ return e.sort(hH),o()},r.range=function(t){return arguments.length?(n=Array.from(t),o()):n.slice()},r.unknown=function(e){return arguments.length?(t=e,r):t},r.quantiles=function(){return i.slice()},r.copy=function(){return nB().domain(e).range(n).unknown(t)},EH.apply(r,arguments)}GH=QH({thousands:",",grouping:[3],currency:["$",""]}),KH=GH.format,JH=GH.formatPrefix
12849
+ const iB="bottom-left",oB="bottom-right",rB="top-left",sB="top",aB="show",lB="hide",cB="linear",dB="ordinal"
12850
+ let hB=class{get containerDimensions(){return this._containerDimensions}get dieDimensions(){return this._dieDimensions}get radius(){return this._radius}get margin(){return this._margin}get horizontalScale(){return this._horizontalScale}get verticalScale(){return this._verticalScale}get invertedHorizontalScale(){return this._invertedHorizontalScale}get invertedVerticalScale(){return this._invertedVerticalScale}constructor(t){this.wafermap=t,this.defaultPadding=0,this.baseMarginPercentage=.04}updateContainerDimensions(){const t={width:this.wafermap.canvasWidth,height:this.wafermap.canvasHeight},e=Math.min(t.width,t.height),n={top:(t.height-e)/2,right:(t.width-e)/2,bottom:(t.height-e)/2,left:(t.width-e)/2},i={top:e*this.baseMarginPercentage,right:e*this.baseMarginPercentage,bottom:e*this.baseMarginPercentage,left:e*this.baseMarginPercentage}
12851
12851
  this._margin=this.calculateMarginAddition(i,n),this._containerDimensions=this.calculateContainerDimensions(t,this._margin)
12852
12852
  const o=Math.min(this._containerDimensions.width,this._containerDimensions.height)
12853
12853
  this._radius=o/2,this.updateScales()}updateScales(){const t=Math.min(this._containerDimensions.width,this._containerDimensions.height),e=this.gridDimensionsValidAndDefined()?this.calculateGridDimensionsFromBoundingBox():this.calculateGridDimensionsFromDies(this.wafermap.dies),n=this.wafermap.originLocation
@@ -12855,33 +12855,33 @@ this._horizontalScale=this.createHorizontalScale(n,e,t),this._invertedHorizontal
12855
12855
  return"number"==typeof this.wafermap.gridMaxY&&"number"==typeof this.wafermap.gridMinY&&"number"==typeof this.wafermap.gridMaxX&&"number"==typeof this.wafermap.gridMinX&&(t.origin.x=this.wafermap.gridMinX,t.origin.y=this.wafermap.gridMinY,t.rows=this.wafermap.gridMaxY-this.wafermap.gridMinY+1,t.cols=this.wafermap.gridMaxX-this.wafermap.gridMinX+1),t}calculateGridDimensionsFromDies(t){if(0===t.length||void 0===t[0])return{origin:{x:0,y:0},rows:0,cols:0}
12856
12856
  const e={x:t[0].x,y:t[0].y},n={x:t[0].x,y:t[0].y}
12857
12857
  for(const i of t)i.x<e.x&&(e.x=i.x),i.y<e.y&&(e.y=i.y),i.x>n.x&&(n.x=i.x),i.y>n.y&&(n.y=i.y)
12858
- return{origin:e,rows:n.y-e.y+1,cols:n.x-e.x+1}}calculateContainerDimensions(t,e){return{width:t.width-e.left-e.right,height:t.height-e.top-e.bottom}}createHorizontalScale(t,e,n){const i=MH().domain(CH(e.origin.x,e.origin.x+e.cols)).paddingInner(0).paddingOuter(0).align(0).round(!1)
12859
- return t===YH||t===tB?i.range([0,n]):i.range([n,0])}createInvertedHorizontalScale(t,e,n){const i=XH().domain([0,n])
12860
- return t===YH||t===tB?i.range(CH(e.origin.x,e.origin.x+e.cols)):i.range(CH(e.origin.x,e.origin.x+e.cols).reverse())}createVerticalScale(t,e,n){const i=MH().domain(CH(e.origin.y,e.origin.y+e.rows)).paddingInner(this.defaultPadding).paddingOuter(0).align(0).round(!1)
12861
- return t===YH||t===QH?i.range([n,0]):i.range([0,n])}createInvertedVerticalScale(t,e,n){const i=XH().domain([0,n])
12862
- return t===YH||t===QH?i.range(CH(e.origin.y,e.origin.y+e.rows).reverse()):i.range(CH(e.origin.y,e.origin.y+e.rows))}calculateMarginAddition(t,e){return{top:t.top+e.top,right:t.right+e.right,bottom:t.bottom+e.bottom,left:t.left+e.left}}},aB=class{get labelsFontSize(){return this._labelsFontSize}get diesRenderInfo(){return this._diesRenderInfo}constructor(t){this.wafermap=t,this.fontSizeFactor=.8,this.nonHighlightedOpacity=.3,this.emptyDieColor="rgba(218,223,236,1)",this.nanDieColor="rgba(122,122,122,1)"}updateLabelsFontSize(){this._labelsFontSize=this.calculateLabelsFontSize(this.wafermap.dataManager.dieDimensions,this.wafermap.maxCharacters),this.updateDiesRenderInfo()}updateDiesRenderInfo(){this.d3ColorScale=this.createD3ColorScale(this.wafermap.colorScale,this.wafermap.colorScaleMode)
12858
+ return{origin:e,rows:n.y-e.y+1,cols:n.x-e.x+1}}calculateContainerDimensions(t,e){return{width:t.width-e.left-e.right,height:t.height-e.top-e.bottom}}createHorizontalScale(t,e,n){const i=AH().domain(_H(e.origin.x,e.origin.x+e.cols)).paddingInner(0).paddingOuter(0).align(0).round(!1)
12859
+ return t===iB||t===rB?i.range([0,n]):i.range([n,0])}createInvertedHorizontalScale(t,e,n){const i=nB().domain([0,n])
12860
+ return t===iB||t===rB?i.range(_H(e.origin.x,e.origin.x+e.cols)):i.range(_H(e.origin.x,e.origin.x+e.cols).reverse())}createVerticalScale(t,e,n){const i=AH().domain(_H(e.origin.y,e.origin.y+e.rows)).paddingInner(this.defaultPadding).paddingOuter(0).align(0).round(!1)
12861
+ return t===iB||t===oB?i.range([n,0]):i.range([0,n])}createInvertedVerticalScale(t,e,n){const i=nB().domain([0,n])
12862
+ return t===iB||t===oB?i.range(_H(e.origin.y,e.origin.y+e.rows).reverse()):i.range(_H(e.origin.y,e.origin.y+e.rows))}calculateMarginAddition(t,e){return{top:t.top+e.top,right:t.right+e.right,bottom:t.bottom+e.bottom,left:t.left+e.left}}},uB=class{get labelsFontSize(){return this._labelsFontSize}get diesRenderInfo(){return this._diesRenderInfo}constructor(t){this.wafermap=t,this.fontSizeFactor=.8,this.nonHighlightedOpacity=.3,this.emptyDieColor="rgba(218,223,236,1)",this.nanDieColor="rgba(122,122,122,1)"}updateLabelsFontSize(){this._labelsFontSize=this.calculateLabelsFontSize(this.wafermap.dataManager.dieDimensions,this.wafermap.maxCharacters),this.updateDiesRenderInfo()}updateDiesRenderInfo(){this.d3ColorScale=this.createD3ColorScale(this.wafermap.colorScale,this.wafermap.colorScaleMode)
12863
12863
  this._diesRenderInfo=this.wafermap.dies.map((t=>this.computeDieRenderInfo(t))).filter((t=>null!==t))}computeDieRenderInfo(t){const e=this.wafermap.dataManager.margin,n=this.wafermap.dataManager.horizontalScale(t.x),i=this.wafermap.dataManager.verticalScale(t.y)
12864
- return void 0===n||void 0===i?null:{x:n+e.right,y:i+e.top,fillStyle:this.calculateFillStyle(t.value,this.wafermap.colorScaleMode,this.wafermap.highlightedTags,t.tags),text:this.buildLabel(t.value,this.wafermap.maxCharacters,this.wafermap.dieLabelsHidden,this.wafermap.dieLabelsSuffix)}}calculateLabelsFontSize(t,e){return Math.min(t.height,t.width/(.5*Math.max(2,e))*this.fontSizeFactor)}createD3ColorScale(t,e){return this.isColorScaleLinear(e)?JH().domain(t.values.map((t=>+t))).range(t.colors):$H().domain(t.values).range(t.colors)}dieHasData(t){return null!=t&&""!==t}buildLabel(t,e,n,i){if(n||!this.dieHasData(t))return""
12864
+ return void 0===n||void 0===i?null:{x:n+e.right,y:i+e.top,fillStyle:this.calculateFillStyle(t.value,this.wafermap.colorScaleMode,this.wafermap.highlightedTags,t.tags),text:this.buildLabel(t.value,this.wafermap.maxCharacters,this.wafermap.dieLabelsHidden,this.wafermap.dieLabelsSuffix)}}calculateLabelsFontSize(t,e){return Math.min(t.height,t.width/(.5*Math.max(2,e))*this.fontSizeFactor)}createD3ColorScale(t,e){return this.isColorScaleLinear(e)?eB().domain(t.values.map((t=>+t))).range(t.colors):DH().domain(t.values).range(t.colors)}dieHasData(t){return null!=t&&""!==t}buildLabel(t,e,n,i){if(n||!this.dieHasData(t))return""
12865
12865
  const o=`${t}${i}`
12866
12866
  return o.length>=e?`${o.substring(0,e)}…`:o}calculateOpacity(t,e){if(!e||0===e.length)return 1
12867
12867
  const n=new Set(e)
12868
- return t?.some((t=>n.has(t)))?1:this.nonHighlightedOpacity}isColorScaleLinear(t){return t===oB}isColorScaleOrdinal(t){return t===rB}calculateFillStyle(t,e,n,i){let o=this.emptyDieColor
12868
+ return t?.some((t=>n.has(t)))?1:this.nonHighlightedOpacity}isColorScaleLinear(t){return t===cB}isColorScaleOrdinal(t){return t===dB}calculateFillStyle(t,e,n,i){let o=this.emptyDieColor
12869
12869
  if(this.dieHasData(t)&&(isNaN(+t)?o=this.nanDieColor:this.isColorScaleLinear(e)?o=this.d3ColorScale(+t):this.isColorScaleOrdinal(e)&&(o=this.d3ColorScale(t))),void 0===o)return this.emptyDieColor
12870
12870
  let r=Zo(o)
12871
- return null===r?this.emptyDieColor:(r=new zo(r.r,r.g,r.b,this.calculateOpacity(i,n)),r.toStringWebRGBA())}},lB=class{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}get data(){return this.dataMap}constructor(t){this.wafermap=t,this.computations=new sB(t),this.prerendering=new aB(t)}updateContainerDimensions(){this.computations.updateContainerDimensions(),this.updateDataMap(),this.updateLabelsFontSize()}updateScales(){this.computations.updateScales(),this.updateDataMap(),this.updateLabelsFontSize()}updateLabelsFontSize(){this.prerendering.updateLabelsFontSize()}updateDiesRenderInfo(){this.prerendering.updateDiesRenderInfo()}getWaferMapDie(t){return this.dataMap.get(`${t.x}_${t.y}`)}updateDataMap(){this.dataMap=new Map(this.wafermap.dies.map((t=>[`${t.x}_${t.y}`,t])))}}
12872
- class cB{get containerDimensions(){return this._containerDimensions}get dieDimensions(){return this._dieDimensions}get margin(){return this._margin}get horizontalScale(){return this._horizontalScale}get verticalScale(){return this._verticalScale}constructor(t){this.wafermap=t,this.defaultPadding=0,this.baseMarginPercentage=.04}update(){const t={width:this.wafermap.canvasWidth,height:this.wafermap.canvasHeight},e=Math.min(t.width,t.height),n={top:(t.height-e)/2,right:(t.width-e)/2,bottom:(t.height-e)/2,left:(t.width-e)/2},i={top:e*this.baseMarginPercentage,right:e*this.baseMarginPercentage,bottom:e*this.baseMarginPercentage,left:e*this.baseMarginPercentage}
12871
+ return null===r?this.emptyDieColor:(r=new zo(r.r,r.g,r.b,this.calculateOpacity(i,n)),r.toStringWebRGBA())}},pB=class{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}get data(){return this.dataMap}constructor(t){this.wafermap=t,this.computations=new hB(t),this.prerendering=new uB(t)}updateContainerDimensions(){this.computations.updateContainerDimensions(),this.updateDataMap(),this.updateLabelsFontSize()}updateScales(){this.computations.updateScales(),this.updateDataMap(),this.updateLabelsFontSize()}updateLabelsFontSize(){this.prerendering.updateLabelsFontSize()}updateDiesRenderInfo(){this.prerendering.updateDiesRenderInfo()}getWaferMapDie(t){return this.dataMap.get(`${t.x}_${t.y}`)}updateDataMap(){this.dataMap=new Map(this.wafermap.dies.map((t=>[`${t.x}_${t.y}`,t])))}}
12872
+ class fB{get containerDimensions(){return this._containerDimensions}get dieDimensions(){return this._dieDimensions}get margin(){return this._margin}get horizontalScale(){return this._horizontalScale}get verticalScale(){return this._verticalScale}constructor(t){this.wafermap=t,this.defaultPadding=0,this.baseMarginPercentage=.04}update(){const t={width:this.wafermap.canvasWidth,height:this.wafermap.canvasHeight},e=Math.min(t.width,t.height),n={top:(t.height-e)/2,right:(t.width-e)/2,bottom:(t.height-e)/2,left:(t.width-e)/2},i={top:e*this.baseMarginPercentage,right:e*this.baseMarginPercentage,bottom:e*this.baseMarginPercentage,left:e*this.baseMarginPercentage}
12873
12873
  this._margin=this.calculateMarginAddition(i,n),this._containerDimensions=this.calculateContainerDimensions(t,this._margin)
12874
12874
  const o=Math.min(this._containerDimensions.width,this._containerDimensions.height),r=this.gridDimensionsValidAndDefined()?this.calculateGridDimensionsFromBoundingBox():this.calculateGridDimensionsFromDies(),s=this.wafermap.originLocation
12875
12875
  this._horizontalScale=this.createHorizontalScale(s,r,o),this._verticalScale=this.createVerticalScale(s,r,o),this._dieDimensions={width:Math.abs(this._horizontalScale(0)-this._horizontalScale(1)),height:Math.abs(this._verticalScale(0)-this._verticalScale(1))}}gridDimensionsValidAndDefined(){return!this.wafermap.validity.invalidGridDimensions&&"number"==typeof this.wafermap.gridMinX&&"number"==typeof this.wafermap.gridMinY&&"number"==typeof this.wafermap.gridMaxX&&"number"==typeof this.wafermap.gridMinX}calculateGridDimensionsFromBoundingBox(){const t={origin:{x:0,y:0},rows:0,cols:0}
12876
12876
  return"number"==typeof this.wafermap.gridMaxY&&"number"==typeof this.wafermap.gridMinY&&"number"==typeof this.wafermap.gridMaxX&&"number"==typeof this.wafermap.gridMinX&&(t.origin.x=this.wafermap.gridMinX,t.origin.y=this.wafermap.gridMinY,t.rows=this.wafermap.gridMaxY-this.wafermap.gridMinY+1,t.cols=this.wafermap.gridMaxX-this.wafermap.gridMinX+1),t}calculateGridDimensionsFromDies(){if(void 0===this.wafermap.diesTable)return{origin:{x:0,y:0},rows:0,cols:0}
12877
12877
  const t=this.wafermap.diesTable.getChild("colIndex").toArray(),e=this.wafermap.diesTable.getChild("rowIndex").toArray(),n={x:t[0],y:e[0]},i={x:t[0],y:e[0]}
12878
12878
  for(let o=0;o<t.length;o++)t[o]<n.x&&(n.x=t[o]),t[o]>i.x&&(i.x=t[o]),e[o]<n.y&&(n.y=e[o]),e[o]>i.y&&(i.y=e[o])
12879
- return{origin:n,rows:i.y-n.y+1,cols:i.x-n.x+1}}calculateContainerDimensions(t,e){return{width:t.width-e.left-e.right,height:t.height-e.top-e.bottom}}createHorizontalScale(t,e,n){const i=JH()
12880
- return t===YH||t===tB?i.domain([e.origin.x,e.origin.x+e.cols]).range([0,n]):i.domain([e.origin.x-1,e.origin.x+e.cols-1]).range([n,0])}createVerticalScale(t,e,n){const i=JH()
12881
- return t===YH||t===QH?i.domain([e.origin.y-1,e.origin.y+e.rows-1]).range([n,0]):i.domain([e.origin.y,e.origin.y+e.rows]).range([0,n])}calculateMarginAddition(t,e){return{top:t.top+e.top,right:t.right+e.right,bottom:t.bottom+e.bottom,left:t.left+e.left}}}class dB{get labelsFontSize(){return this._labelsFontSize}get colorScale(){return this._colorScale}constructor(t){this.wafermap=t,this.fontSizeFactor=.8,this.colorScaleResolution=10}update(){this._labelsFontSize=this.calculateLabelsFontSize(this.wafermap.experimentalDataManager.dieDimensions,this.wafermap.maxCharacters),this._colorScale=this.calculateColorScale()}calculateColorScale(){if(this.wafermap.colorScaleMode===oB){const t=this.wafermap.colorScale.values.map((t=>+t)),e=JH().domain(t).range(this.wafermap.colorScale.colors)
12879
+ return{origin:n,rows:i.y-n.y+1,cols:i.x-n.x+1}}calculateContainerDimensions(t,e){return{width:t.width-e.left-e.right,height:t.height-e.top-e.bottom}}createHorizontalScale(t,e,n){const i=eB()
12880
+ return t===iB||t===rB?i.domain([e.origin.x,e.origin.x+e.cols]).range([0,n]):i.domain([e.origin.x-1,e.origin.x+e.cols-1]).range([n,0])}createVerticalScale(t,e,n){const i=eB()
12881
+ return t===iB||t===oB?i.domain([e.origin.y-1,e.origin.y+e.rows-1]).range([n,0]):i.domain([e.origin.y,e.origin.y+e.rows]).range([0,n])}calculateMarginAddition(t,e){return{top:t.top+e.top,right:t.right+e.right,bottom:t.bottom+e.bottom,left:t.left+e.left}}}class mB{get labelsFontSize(){return this._labelsFontSize}get colorScale(){return this._colorScale}constructor(t){this.wafermap=t,this.fontSizeFactor=.8,this.colorScaleResolution=10}update(){this._labelsFontSize=this.calculateLabelsFontSize(this.wafermap.experimentalDataManager.dieDimensions,this.wafermap.maxCharacters),this._colorScale=this.calculateColorScale()}calculateColorScale(){if(this.wafermap.colorScaleMode===cB){const t=this.wafermap.colorScale.values.map((t=>+t)),e=eB().domain(t).range(this.wafermap.colorScale.colors)
12882
12882
  let n=t[0],i=t[0]
12883
12883
  t.forEach((t=>{t<n&&(n=t),t>i&&(i=t)}))
12884
- return yH(n,i,t.length*this.colorScaleResolution).map((t=>({color:e(t),value:t})))}return this.wafermap.colorScale.colors.map(((t,e)=>({color:t,value:+this.wafermap.colorScale.values[e]}))).sort(((t,e)=>t.value-e.value))}calculateLabelsFontSize(t,e){return Math.min(t.height,t.width/(.5*Math.max(2,e))*this.fontSizeFactor)}}class hB{get containerDimensions(){return this.computations.containerDimensions}get dieDimensions(){return this.computations.dieDimensions}get margin(){return this.computations.margin}get horizontalScale(){return this.computations.horizontalScale}get verticalScale(){return this.computations.verticalScale}get labelsFontSize(){return this.prerendering.labelsFontSize}get colorScale(){return this.prerendering.colorScale}constructor(t){this.wafermap=t,this.computations=new cB(t),this.prerendering=new dB(t)}updateComputations(){this.computations.update(),this.prerendering.update()}updatePrerendering(){this.prerendering.update()}}class uB{constructor(t){this.wafermap=t,this.minDieDim=50}updateSortedDiesAndDrawWafer(){this.dies=this.wafermap.dataManager.diesRenderInfo.sort(((t,e)=>t.fillStyle>e.fillStyle?1:e.fillStyle>t.fillStyle?-1:0)),this.drawWafer()}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?iB:nB,this.wafermap.hoverTransform=this.calculateHoverTransform()}calculateHoverTransform(){if(void 0!==this.wafermap.hoverDie){const t=this.wafermap.dataManager.horizontalScale(this.wafermap.hoverDie.x)
12884
+ return SH(n,i,t.length*this.colorScaleResolution).map((t=>({color:e(t),value:t})))}return this.wafermap.colorScale.colors.map(((t,e)=>({color:t,value:+this.wafermap.colorScale.values[e]}))).sort(((t,e)=>t.value-e.value))}calculateLabelsFontSize(t,e){return Math.min(t.height,t.width/(.5*Math.max(2,e))*this.fontSizeFactor)}}class gB{get containerDimensions(){return this.computations.containerDimensions}get dieDimensions(){return this.computations.dieDimensions}get margin(){return this.computations.margin}get horizontalScale(){return this.computations.horizontalScale}get verticalScale(){return this.computations.verticalScale}get labelsFontSize(){return this.prerendering.labelsFontSize}get colorScale(){return this.prerendering.colorScale}constructor(t){this.wafermap=t,this.computations=new fB(t),this.prerendering=new mB(t)}updateComputations(){this.computations.update(),this.prerendering.update()}updatePrerendering(){this.prerendering.update()}}class vB{constructor(t){this.wafermap=t,this.minDieDim=50}updateSortedDiesAndDrawWafer(){this.dies=this.wafermap.dataManager.diesRenderInfo.sort(((t,e)=>t.fillStyle>e.fillStyle?1:e.fillStyle>t.fillStyle?-1:0)),this.drawWafer()}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?lB:aB,this.wafermap.hoverTransform=this.calculateHoverTransform()}calculateHoverTransform(){if(void 0!==this.wafermap.hoverDie){const t=this.wafermap.dataManager.horizontalScale(this.wafermap.hoverDie.x)
12885
12885
  if(void 0===t)return""
12886
12886
  const e=this.wafermap.dataManager.verticalScale(this.wafermap.hoverDie.y)
12887
12887
  if(void 0===e)return""
@@ -12894,70 +12894,70 @@ if(t*e*(this.wafermap.transform.k||1)>=this.minDieDim){const n=this.wafermap.dat
12894
12894
  i.font=`${n.toString()}px sans-serif`,i.fillStyle="#ffffff",i.textAlign="center",i.lineCap="butt"
12895
12895
  const o=i.measureText("M"),r=this.wafermap.transform.invert([0,0]),s=this.wafermap.transform.invert([this.wafermap.canvas.width,this.wafermap.canvas.height])
12896
12896
  r[0]-=t,r[1]-=e
12897
- for(const n of this.dies)this.isDieVisible(n,r,s)&&i.fillText(n.text,n.x+t/2,n.y+e/2+o.width/2,t-t/100*20)}}clearCanvas(){this.wafermap.canvasContext.clearRect(0,0,this.wafermap.canvas.width,this.wafermap.canvas.height)}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)}isDieVisible(t,e,n){return t.x>=e[0]&&t.x<n[0]&&t.y>=e[1]&&t.y<n[1]}}const pB=["highlightedTags","canvasWidth","canvasHeight","originLocation","gridMinX","gridMaxX","gridMinY","gridMaxY","dies","maxCharacters","colorScale","colorScaleMode","dieLabelsHidden","dieLabelsSuffix","transform","hoverDie"]
12898
- class fB extends aI{constructor(t){super(pB),this.wafermap=t,this.updateQueued=!1}get requiresEventsUpdate(){return this.isTracked("highlightedTags")||this.isTracked("canvasWidth")||this.isTracked("canvasHeight")||this.isTracked("originLocation")||this.isTracked("gridMinX")||this.isTracked("gridMaxX")||this.isTracked("gridMinY")||this.isTracked("gridMaxY")||this.isTracked("dies")||this.isTracked("maxCharacters")||this.isTracked("colorScale")||this.isTracked("colorScaleMode")||this.isTracked("dieLabelsHidden")||this.isTracked("dieLabelsSuffix")||this.isTracked("transform")}get requiresContainerDimensionsUpdate(){return this.isTracked("canvasWidth")||this.isTracked("canvasHeight")}get requiresScalesUpdate(){return this.isTracked("originLocation")||this.isTracked("gridMinX")||this.isTracked("gridMaxX")||this.isTracked("gridMinY")||this.isTracked("gridMaxY")||this.isTracked("dies")}get requiresLabelsFontSizeUpdate(){return this.isTracked("maxCharacters")}get requiresDiesRenderInfoUpdate(){return this.isTracked("highlightedTags")||this.isTracked("colorScale")||this.isTracked("colorScaleMode")||this.isTracked("dieLabelsHidden")||this.isTracked("dieLabelsSuffix")}get requiresDrawnWaferUpdate(){return this.isTracked("transform")}get requiresRenderHoverUpdate(){return this.isTracked("hoverDie")}queueUpdate(){this.wafermap.$fastController.isConnected&&(this.updateQueued||(this.updateQueued=!0,u.queueUpdate((()=>{this.wafermap.update(),this.untrackAll(),this.updateQueued=!1}))))}}var mB,gB,vB,bB,yB,wB,xB,CB,kB
12899
- !function(t){t[t.Sparse=0]="Sparse",t[t.Dense=1]="Dense"}(mB||(mB={})),function(t){t[t.HALF=0]="HALF",t[t.SINGLE=1]="SINGLE",t[t.DOUBLE=2]="DOUBLE"}(gB||(gB={})),function(t){t[t.DAY=0]="DAY",t[t.MILLISECOND=1]="MILLISECOND"}(vB||(vB={})),function(t){t[t.SECOND=0]="SECOND",t[t.MILLISECOND=1]="MILLISECOND",t[t.MICROSECOND=2]="MICROSECOND",t[t.NANOSECOND=3]="NANOSECOND"}(bB||(bB={})),function(t){t[t.YEAR_MONTH=0]="YEAR_MONTH",t[t.DAY_TIME=1]="DAY_TIME",t[t.MONTH_DAY_NANO=2]="MONTH_DAY_NANO"}(yB||(yB={})),function(t){t[t.NONE=0]="NONE",t[t.Null=1]="Null",t[t.Int=2]="Int",t[t.Float=3]="Float",t[t.Binary=4]="Binary",t[t.Utf8=5]="Utf8",t[t.Bool=6]="Bool",t[t.Decimal=7]="Decimal",t[t.Date=8]="Date",t[t.Time=9]="Time",t[t.Timestamp=10]="Timestamp",t[t.Interval=11]="Interval",t[t.List=12]="List",t[t.Struct=13]="Struct",t[t.Union=14]="Union",t[t.FixedSizeBinary=15]="FixedSizeBinary",t[t.FixedSizeList=16]="FixedSizeList",t[t.Map=17]="Map",t[t.Duration=18]="Duration",t[t.LargeBinary=19]="LargeBinary",t[t.LargeUtf8=20]="LargeUtf8",t[t.Dictionary=-1]="Dictionary",t[t.Int8=-2]="Int8",t[t.Int16=-3]="Int16",t[t.Int32=-4]="Int32",t[t.Int64=-5]="Int64",t[t.Uint8=-6]="Uint8",t[t.Uint16=-7]="Uint16",t[t.Uint32=-8]="Uint32",t[t.Uint64=-9]="Uint64",t[t.Float16=-10]="Float16",t[t.Float32=-11]="Float32",t[t.Float64=-12]="Float64",t[t.DateDay=-13]="DateDay",t[t.DateMillisecond=-14]="DateMillisecond",t[t.TimestampSecond=-15]="TimestampSecond",t[t.TimestampMillisecond=-16]="TimestampMillisecond",t[t.TimestampMicrosecond=-17]="TimestampMicrosecond",t[t.TimestampNanosecond=-18]="TimestampNanosecond",t[t.TimeSecond=-19]="TimeSecond",t[t.TimeMillisecond=-20]="TimeMillisecond",t[t.TimeMicrosecond=-21]="TimeMicrosecond",t[t.TimeNanosecond=-22]="TimeNanosecond",t[t.DenseUnion=-23]="DenseUnion",t[t.SparseUnion=-24]="SparseUnion",t[t.IntervalDayTime=-25]="IntervalDayTime",t[t.IntervalYearMonth=-26]="IntervalYearMonth",t[t.DurationSecond=-27]="DurationSecond",t[t.DurationMillisecond=-28]="DurationMillisecond",t[t.DurationMicrosecond=-29]="DurationMicrosecond",t[t.DurationNanosecond=-30]="DurationNanosecond"}(wB||(wB={})),function(t){t[t.OFFSET=0]="OFFSET",t[t.DATA=1]="DATA",t[t.VALIDITY=2]="VALIDITY",t[t.TYPE=3]="TYPE"}(xB||(xB={}))
12900
- class SB{static isNull(t){return(null==t?void 0:t.typeId)===wB.Null}static isInt(t){return(null==t?void 0:t.typeId)===wB.Int}static isFloat(t){return(null==t?void 0:t.typeId)===wB.Float}static isBinary(t){return(null==t?void 0:t.typeId)===wB.Binary}static isLargeBinary(t){return(null==t?void 0:t.typeId)===wB.LargeBinary}static isUtf8(t){return(null==t?void 0:t.typeId)===wB.Utf8}static isLargeUtf8(t){return(null==t?void 0:t.typeId)===wB.LargeUtf8}static isBool(t){return(null==t?void 0:t.typeId)===wB.Bool}static isDecimal(t){return(null==t?void 0:t.typeId)===wB.Decimal}static isDate(t){return(null==t?void 0:t.typeId)===wB.Date}static isTime(t){return(null==t?void 0:t.typeId)===wB.Time}static isTimestamp(t){return(null==t?void 0:t.typeId)===wB.Timestamp}static isInterval(t){return(null==t?void 0:t.typeId)===wB.Interval}static isDuration(t){return(null==t?void 0:t.typeId)===wB.Duration}static isList(t){return(null==t?void 0:t.typeId)===wB.List}static isStruct(t){return(null==t?void 0:t.typeId)===wB.Struct}static isUnion(t){return(null==t?void 0:t.typeId)===wB.Union}static isFixedSizeBinary(t){return(null==t?void 0:t.typeId)===wB.FixedSizeBinary}static isFixedSizeList(t){return(null==t?void 0:t.typeId)===wB.FixedSizeList}static isMap(t){return(null==t?void 0:t.typeId)===wB.Map}static isDictionary(t){return(null==t?void 0:t.typeId)===wB.Dictionary}static isDenseUnion(t){return SB.isUnion(t)&&t.mode===mB.Dense}static isSparseUnion(t){return SB.isUnion(t)&&t.mode===mB.Sparse}constructor(t){this.typeId=t}}CB=Symbol.toStringTag,SB[CB]=((kB=SB.prototype).children=null,kB.ArrayType=Array,kB.OffsetArrayType=Int32Array,kB[Symbol.toStringTag]="DataType")
12901
- class $B extends SB{constructor(){super(wB.Null)}toString(){return"Null"}}$B[Symbol.toStringTag]=(t=>t[Symbol.toStringTag]="Null")($B.prototype)
12902
- class MB extends SB{constructor(t,e){super(wB.Int),this.isSigned=t,this.bitWidth=e}get ArrayType(){switch(this.bitWidth){case 8:return this.isSigned?Int8Array:Uint8Array
12897
+ for(const n of this.dies)this.isDieVisible(n,r,s)&&i.fillText(n.text,n.x+t/2,n.y+e/2+o.width/2,t-t/100*20)}}clearCanvas(){this.wafermap.canvasContext.clearRect(0,0,this.wafermap.canvas.width,this.wafermap.canvas.height)}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)}isDieVisible(t,e,n){return t.x>=e[0]&&t.x<n[0]&&t.y>=e[1]&&t.y<n[1]}}const bB=["highlightedTags","canvasWidth","canvasHeight","originLocation","gridMinX","gridMaxX","gridMinY","gridMaxY","dies","maxCharacters","colorScale","colorScaleMode","dieLabelsHidden","dieLabelsSuffix","transform","hoverDie"]
12898
+ class yB extends aI{constructor(t){super(bB),this.wafermap=t,this.updateQueued=!1}get requiresEventsUpdate(){return this.isTracked("highlightedTags")||this.isTracked("canvasWidth")||this.isTracked("canvasHeight")||this.isTracked("originLocation")||this.isTracked("gridMinX")||this.isTracked("gridMaxX")||this.isTracked("gridMinY")||this.isTracked("gridMaxY")||this.isTracked("dies")||this.isTracked("maxCharacters")||this.isTracked("colorScale")||this.isTracked("colorScaleMode")||this.isTracked("dieLabelsHidden")||this.isTracked("dieLabelsSuffix")||this.isTracked("transform")}get requiresContainerDimensionsUpdate(){return this.isTracked("canvasWidth")||this.isTracked("canvasHeight")}get requiresScalesUpdate(){return this.isTracked("originLocation")||this.isTracked("gridMinX")||this.isTracked("gridMaxX")||this.isTracked("gridMinY")||this.isTracked("gridMaxY")||this.isTracked("dies")}get requiresLabelsFontSizeUpdate(){return this.isTracked("maxCharacters")}get requiresDiesRenderInfoUpdate(){return this.isTracked("highlightedTags")||this.isTracked("colorScale")||this.isTracked("colorScaleMode")||this.isTracked("dieLabelsHidden")||this.isTracked("dieLabelsSuffix")}get requiresDrawnWaferUpdate(){return this.isTracked("transform")}get requiresRenderHoverUpdate(){return this.isTracked("hoverDie")}queueUpdate(){this.wafermap.$fastController.isConnected&&(this.updateQueued||(this.updateQueued=!0,u.queueUpdate((()=>{this.wafermap.update(),this.untrackAll(),this.updateQueued=!1}))))}}var wB,xB,CB,kB,SB,$B,MB,_B,EB
12899
+ !function(t){t[t.Sparse=0]="Sparse",t[t.Dense=1]="Dense"}(wB||(wB={})),function(t){t[t.HALF=0]="HALF",t[t.SINGLE=1]="SINGLE",t[t.DOUBLE=2]="DOUBLE"}(xB||(xB={})),function(t){t[t.DAY=0]="DAY",t[t.MILLISECOND=1]="MILLISECOND"}(CB||(CB={})),function(t){t[t.SECOND=0]="SECOND",t[t.MILLISECOND=1]="MILLISECOND",t[t.MICROSECOND=2]="MICROSECOND",t[t.NANOSECOND=3]="NANOSECOND"}(kB||(kB={})),function(t){t[t.YEAR_MONTH=0]="YEAR_MONTH",t[t.DAY_TIME=1]="DAY_TIME",t[t.MONTH_DAY_NANO=2]="MONTH_DAY_NANO"}(SB||(SB={})),function(t){t[t.NONE=0]="NONE",t[t.Null=1]="Null",t[t.Int=2]="Int",t[t.Float=3]="Float",t[t.Binary=4]="Binary",t[t.Utf8=5]="Utf8",t[t.Bool=6]="Bool",t[t.Decimal=7]="Decimal",t[t.Date=8]="Date",t[t.Time=9]="Time",t[t.Timestamp=10]="Timestamp",t[t.Interval=11]="Interval",t[t.List=12]="List",t[t.Struct=13]="Struct",t[t.Union=14]="Union",t[t.FixedSizeBinary=15]="FixedSizeBinary",t[t.FixedSizeList=16]="FixedSizeList",t[t.Map=17]="Map",t[t.Duration=18]="Duration",t[t.LargeBinary=19]="LargeBinary",t[t.LargeUtf8=20]="LargeUtf8",t[t.Dictionary=-1]="Dictionary",t[t.Int8=-2]="Int8",t[t.Int16=-3]="Int16",t[t.Int32=-4]="Int32",t[t.Int64=-5]="Int64",t[t.Uint8=-6]="Uint8",t[t.Uint16=-7]="Uint16",t[t.Uint32=-8]="Uint32",t[t.Uint64=-9]="Uint64",t[t.Float16=-10]="Float16",t[t.Float32=-11]="Float32",t[t.Float64=-12]="Float64",t[t.DateDay=-13]="DateDay",t[t.DateMillisecond=-14]="DateMillisecond",t[t.TimestampSecond=-15]="TimestampSecond",t[t.TimestampMillisecond=-16]="TimestampMillisecond",t[t.TimestampMicrosecond=-17]="TimestampMicrosecond",t[t.TimestampNanosecond=-18]="TimestampNanosecond",t[t.TimeSecond=-19]="TimeSecond",t[t.TimeMillisecond=-20]="TimeMillisecond",t[t.TimeMicrosecond=-21]="TimeMicrosecond",t[t.TimeNanosecond=-22]="TimeNanosecond",t[t.DenseUnion=-23]="DenseUnion",t[t.SparseUnion=-24]="SparseUnion",t[t.IntervalDayTime=-25]="IntervalDayTime",t[t.IntervalYearMonth=-26]="IntervalYearMonth",t[t.DurationSecond=-27]="DurationSecond",t[t.DurationMillisecond=-28]="DurationMillisecond",t[t.DurationMicrosecond=-29]="DurationMicrosecond",t[t.DurationNanosecond=-30]="DurationNanosecond"}($B||($B={})),function(t){t[t.OFFSET=0]="OFFSET",t[t.DATA=1]="DATA",t[t.VALIDITY=2]="VALIDITY",t[t.TYPE=3]="TYPE"}(MB||(MB={}))
12900
+ class IB{static isNull(t){return(null==t?void 0:t.typeId)===$B.Null}static isInt(t){return(null==t?void 0:t.typeId)===$B.Int}static isFloat(t){return(null==t?void 0:t.typeId)===$B.Float}static isBinary(t){return(null==t?void 0:t.typeId)===$B.Binary}static isLargeBinary(t){return(null==t?void 0:t.typeId)===$B.LargeBinary}static isUtf8(t){return(null==t?void 0:t.typeId)===$B.Utf8}static isLargeUtf8(t){return(null==t?void 0:t.typeId)===$B.LargeUtf8}static isBool(t){return(null==t?void 0:t.typeId)===$B.Bool}static isDecimal(t){return(null==t?void 0:t.typeId)===$B.Decimal}static isDate(t){return(null==t?void 0:t.typeId)===$B.Date}static isTime(t){return(null==t?void 0:t.typeId)===$B.Time}static isTimestamp(t){return(null==t?void 0:t.typeId)===$B.Timestamp}static isInterval(t){return(null==t?void 0:t.typeId)===$B.Interval}static isDuration(t){return(null==t?void 0:t.typeId)===$B.Duration}static isList(t){return(null==t?void 0:t.typeId)===$B.List}static isStruct(t){return(null==t?void 0:t.typeId)===$B.Struct}static isUnion(t){return(null==t?void 0:t.typeId)===$B.Union}static isFixedSizeBinary(t){return(null==t?void 0:t.typeId)===$B.FixedSizeBinary}static isFixedSizeList(t){return(null==t?void 0:t.typeId)===$B.FixedSizeList}static isMap(t){return(null==t?void 0:t.typeId)===$B.Map}static isDictionary(t){return(null==t?void 0:t.typeId)===$B.Dictionary}static isDenseUnion(t){return IB.isUnion(t)&&t.mode===wB.Dense}static isSparseUnion(t){return IB.isUnion(t)&&t.mode===wB.Sparse}constructor(t){this.typeId=t}}_B=Symbol.toStringTag,IB[_B]=((EB=IB.prototype).children=null,EB.ArrayType=Array,EB.OffsetArrayType=Int32Array,EB[Symbol.toStringTag]="DataType")
12901
+ class DB extends IB{constructor(){super($B.Null)}toString(){return"Null"}}DB[Symbol.toStringTag]=(t=>t[Symbol.toStringTag]="Null")(DB.prototype)
12902
+ class AB extends IB{constructor(t,e){super($B.Int),this.isSigned=t,this.bitWidth=e}get ArrayType(){switch(this.bitWidth){case 8:return this.isSigned?Int8Array:Uint8Array
12903
12903
  case 16:return this.isSigned?Int16Array:Uint16Array
12904
12904
  case 32:return this.isSigned?Int32Array:Uint32Array
12905
- case 64:return this.isSigned?BigInt64Array:BigUint64Array}throw new Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}toString(){return`${this.isSigned?"I":"Ui"}nt${this.bitWidth}`}}MB[Symbol.toStringTag]=(t=>(t.isSigned=null,t.bitWidth=null,t[Symbol.toStringTag]="Int"))(MB.prototype)
12906
- class _B extends SB{constructor(t){super(wB.Float),this.precision=t}get ArrayType(){switch(this.precision){case gB.HALF:return Uint16Array
12907
- case gB.SINGLE:return Float32Array
12908
- case gB.DOUBLE:return Float64Array}throw new Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}toString(){return`Float${this.precision<<5||16}`}}_B[Symbol.toStringTag]=(t=>(t.precision=null,t[Symbol.toStringTag]="Float"))(_B.prototype)
12909
- class EB extends SB{constructor(){super(wB.Binary)}toString(){return"Binary"}}EB[Symbol.toStringTag]=(t=>(t.ArrayType=Uint8Array,t[Symbol.toStringTag]="Binary"))(EB.prototype)
12910
- class IB extends SB{constructor(){super(wB.LargeBinary)}toString(){return"LargeBinary"}}IB[Symbol.toStringTag]=(t=>(t.ArrayType=Uint8Array,t.OffsetArrayType=BigInt64Array,t[Symbol.toStringTag]="LargeBinary"))(IB.prototype)
12911
- class DB extends SB{constructor(){super(wB.Utf8)}toString(){return"Utf8"}}DB[Symbol.toStringTag]=(t=>(t.ArrayType=Uint8Array,t[Symbol.toStringTag]="Utf8"))(DB.prototype)
12912
- class AB extends SB{constructor(){super(wB.LargeUtf8)}toString(){return"LargeUtf8"}}AB[Symbol.toStringTag]=(t=>(t.ArrayType=Uint8Array,t.OffsetArrayType=BigInt64Array,t[Symbol.toStringTag]="LargeUtf8"))(AB.prototype)
12913
- class TB extends SB{constructor(){super(wB.Bool)}toString(){return"Bool"}}TB[Symbol.toStringTag]=(t=>(t.ArrayType=Uint8Array,t[Symbol.toStringTag]="Bool"))(TB.prototype)
12914
- class OB extends SB{constructor(t,e,n=128){super(wB.Decimal),this.scale=t,this.precision=e,this.bitWidth=n}toString(){return`Decimal[${this.precision}e${this.scale>0?"+":""}${this.scale}]`}}OB[Symbol.toStringTag]=(t=>(t.scale=null,t.precision=null,t.ArrayType=Uint32Array,t[Symbol.toStringTag]="Decimal"))(OB.prototype)
12915
- class RB extends SB{constructor(t){super(wB.Date),this.unit=t}toString(){return`Date${32*(this.unit+1)}<${vB[this.unit]}>`}}RB[Symbol.toStringTag]=(t=>(t.unit=null,t.ArrayType=Int32Array,t[Symbol.toStringTag]="Date"))(RB.prototype)
12916
- class FB extends SB{constructor(t,e){super(wB.Time),this.unit=t,this.bitWidth=e}toString(){return`Time${this.bitWidth}<${bB[this.unit]}>`}get ArrayType(){switch(this.bitWidth){case 32:return Int32Array
12917
- case 64:return BigInt64Array}throw new Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}}FB[Symbol.toStringTag]=(t=>(t.unit=null,t.bitWidth=null,t[Symbol.toStringTag]="Time"))(FB.prototype)
12918
- class NB extends SB{constructor(t,e){super(wB.Timestamp),this.unit=t,this.timezone=e}toString(){return`Timestamp<${bB[this.unit]}${this.timezone?`, ${this.timezone}`:""}>`}}NB[Symbol.toStringTag]=(t=>(t.unit=null,t.timezone=null,t.ArrayType=Int32Array,t[Symbol.toStringTag]="Timestamp"))(NB.prototype)
12919
- class PB extends SB{constructor(t){super(wB.Interval),this.unit=t}toString(){return`Interval<${yB[this.unit]}>`}}PB[Symbol.toStringTag]=(t=>(t.unit=null,t.ArrayType=Int32Array,t[Symbol.toStringTag]="Interval"))(PB.prototype)
12920
- class LB extends SB{constructor(t){super(wB.Duration),this.unit=t}toString(){return`Duration<${bB[this.unit]}>`}}LB[Symbol.toStringTag]=(t=>(t.unit=null,t.ArrayType=BigInt64Array,t[Symbol.toStringTag]="Duration"))(LB.prototype)
12921
- class zB extends SB{constructor(t){super(wB.List),this.children=[t]}toString(){return`List<${this.valueType}>`}get valueType(){return this.children[0].type}get valueField(){return this.children[0]}get ArrayType(){return this.valueType.ArrayType}}zB[Symbol.toStringTag]=(t=>(t.children=null,t[Symbol.toStringTag]="List"))(zB.prototype)
12922
- class VB extends SB{constructor(t){super(wB.Struct),this.children=t}toString(){return`Struct<{${this.children.map((t=>`${t.name}:${t.type}`)).join(", ")}}>`}}VB[Symbol.toStringTag]=(t=>(t.children=null,t[Symbol.toStringTag]="Struct"))(VB.prototype)
12923
- class HB extends SB{constructor(t,e,n){super(wB.Union),this.mode=t,this.children=n,this.typeIds=e=Int32Array.from(e),this.typeIdToChildIndex=e.reduce(((t,e,n)=>(t[e]=n)&&t||t),Object.create(null))}toString(){return`${this[Symbol.toStringTag]}<${this.children.map((t=>`${t.type}`)).join(" | ")}>`}}HB[Symbol.toStringTag]=(t=>(t.mode=null,t.typeIds=null,t.children=null,t.typeIdToChildIndex=null,t.ArrayType=Int8Array,t[Symbol.toStringTag]="Union"))(HB.prototype)
12924
- class BB extends SB{constructor(t){super(wB.FixedSizeBinary),this.byteWidth=t}toString(){return`FixedSizeBinary[${this.byteWidth}]`}}BB[Symbol.toStringTag]=(t=>(t.byteWidth=null,t.ArrayType=Uint8Array,t[Symbol.toStringTag]="FixedSizeBinary"))(BB.prototype)
12925
- class qB extends SB{constructor(t,e){super(wB.FixedSizeList),this.listSize=t,this.children=[e]}get valueType(){return this.children[0].type}get valueField(){return this.children[0]}get ArrayType(){return this.valueType.ArrayType}toString(){return`FixedSizeList[${this.listSize}]<${this.valueType}>`}}qB[Symbol.toStringTag]=(t=>(t.children=null,t.listSize=null,t[Symbol.toStringTag]="FixedSizeList"))(qB.prototype)
12926
- class UB extends SB{constructor(t,e=!1){var n,i,o
12927
- if(super(wB.Map),this.children=[t],this.keysSorted=e,t&&(t.name="entries",null===(n=null==t?void 0:t.type)||void 0===n?void 0:n.children)){const e=null===(i=null==t?void 0:t.type)||void 0===i?void 0:i.children[0]
12905
+ case 64:return this.isSigned?BigInt64Array:BigUint64Array}throw new Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}toString(){return`${this.isSigned?"I":"Ui"}nt${this.bitWidth}`}}AB[Symbol.toStringTag]=(t=>(t.isSigned=null,t.bitWidth=null,t[Symbol.toStringTag]="Int"))(AB.prototype)
12906
+ class TB extends IB{constructor(t){super($B.Float),this.precision=t}get ArrayType(){switch(this.precision){case xB.HALF:return Uint16Array
12907
+ case xB.SINGLE:return Float32Array
12908
+ case xB.DOUBLE:return Float64Array}throw new Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}toString(){return`Float${this.precision<<5||16}`}}TB[Symbol.toStringTag]=(t=>(t.precision=null,t[Symbol.toStringTag]="Float"))(TB.prototype)
12909
+ class OB extends IB{constructor(){super($B.Binary)}toString(){return"Binary"}}OB[Symbol.toStringTag]=(t=>(t.ArrayType=Uint8Array,t[Symbol.toStringTag]="Binary"))(OB.prototype)
12910
+ class RB extends IB{constructor(){super($B.LargeBinary)}toString(){return"LargeBinary"}}RB[Symbol.toStringTag]=(t=>(t.ArrayType=Uint8Array,t.OffsetArrayType=BigInt64Array,t[Symbol.toStringTag]="LargeBinary"))(RB.prototype)
12911
+ class FB extends IB{constructor(){super($B.Utf8)}toString(){return"Utf8"}}FB[Symbol.toStringTag]=(t=>(t.ArrayType=Uint8Array,t[Symbol.toStringTag]="Utf8"))(FB.prototype)
12912
+ class NB extends IB{constructor(){super($B.LargeUtf8)}toString(){return"LargeUtf8"}}NB[Symbol.toStringTag]=(t=>(t.ArrayType=Uint8Array,t.OffsetArrayType=BigInt64Array,t[Symbol.toStringTag]="LargeUtf8"))(NB.prototype)
12913
+ class PB extends IB{constructor(){super($B.Bool)}toString(){return"Bool"}}PB[Symbol.toStringTag]=(t=>(t.ArrayType=Uint8Array,t[Symbol.toStringTag]="Bool"))(PB.prototype)
12914
+ class LB extends IB{constructor(t,e,n=128){super($B.Decimal),this.scale=t,this.precision=e,this.bitWidth=n}toString(){return`Decimal[${this.precision}e${this.scale>0?"+":""}${this.scale}]`}}LB[Symbol.toStringTag]=(t=>(t.scale=null,t.precision=null,t.ArrayType=Uint32Array,t[Symbol.toStringTag]="Decimal"))(LB.prototype)
12915
+ class zB extends IB{constructor(t){super($B.Date),this.unit=t}toString(){return`Date${32*(this.unit+1)}<${CB[this.unit]}>`}}zB[Symbol.toStringTag]=(t=>(t.unit=null,t.ArrayType=Int32Array,t[Symbol.toStringTag]="Date"))(zB.prototype)
12916
+ class VB extends IB{constructor(t,e){super($B.Time),this.unit=t,this.bitWidth=e}toString(){return`Time${this.bitWidth}<${kB[this.unit]}>`}get ArrayType(){switch(this.bitWidth){case 32:return Int32Array
12917
+ case 64:return BigInt64Array}throw new Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}}VB[Symbol.toStringTag]=(t=>(t.unit=null,t.bitWidth=null,t[Symbol.toStringTag]="Time"))(VB.prototype)
12918
+ class HB extends IB{constructor(t,e){super($B.Timestamp),this.unit=t,this.timezone=e}toString(){return`Timestamp<${kB[this.unit]}${this.timezone?`, ${this.timezone}`:""}>`}}HB[Symbol.toStringTag]=(t=>(t.unit=null,t.timezone=null,t.ArrayType=Int32Array,t[Symbol.toStringTag]="Timestamp"))(HB.prototype)
12919
+ class BB extends IB{constructor(t){super($B.Interval),this.unit=t}toString(){return`Interval<${SB[this.unit]}>`}}BB[Symbol.toStringTag]=(t=>(t.unit=null,t.ArrayType=Int32Array,t[Symbol.toStringTag]="Interval"))(BB.prototype)
12920
+ class qB extends IB{constructor(t){super($B.Duration),this.unit=t}toString(){return`Duration<${kB[this.unit]}>`}}qB[Symbol.toStringTag]=(t=>(t.unit=null,t.ArrayType=BigInt64Array,t[Symbol.toStringTag]="Duration"))(qB.prototype)
12921
+ class UB extends IB{constructor(t){super($B.List),this.children=[t]}toString(){return`List<${this.valueType}>`}get valueType(){return this.children[0].type}get valueField(){return this.children[0]}get ArrayType(){return this.valueType.ArrayType}}UB[Symbol.toStringTag]=(t=>(t.children=null,t[Symbol.toStringTag]="List"))(UB.prototype)
12922
+ class jB extends IB{constructor(t){super($B.Struct),this.children=t}toString(){return`Struct<{${this.children.map((t=>`${t.name}:${t.type}`)).join(", ")}}>`}}jB[Symbol.toStringTag]=(t=>(t.children=null,t[Symbol.toStringTag]="Struct"))(jB.prototype)
12923
+ class WB extends IB{constructor(t,e,n){super($B.Union),this.mode=t,this.children=n,this.typeIds=e=Int32Array.from(e),this.typeIdToChildIndex=e.reduce(((t,e,n)=>(t[e]=n)&&t||t),Object.create(null))}toString(){return`${this[Symbol.toStringTag]}<${this.children.map((t=>`${t.type}`)).join(" | ")}>`}}WB[Symbol.toStringTag]=(t=>(t.mode=null,t.typeIds=null,t.children=null,t.typeIdToChildIndex=null,t.ArrayType=Int8Array,t[Symbol.toStringTag]="Union"))(WB.prototype)
12924
+ class ZB extends IB{constructor(t){super($B.FixedSizeBinary),this.byteWidth=t}toString(){return`FixedSizeBinary[${this.byteWidth}]`}}ZB[Symbol.toStringTag]=(t=>(t.byteWidth=null,t.ArrayType=Uint8Array,t[Symbol.toStringTag]="FixedSizeBinary"))(ZB.prototype)
12925
+ class GB extends IB{constructor(t,e){super($B.FixedSizeList),this.listSize=t,this.children=[e]}get valueType(){return this.children[0].type}get valueField(){return this.children[0]}get ArrayType(){return this.valueType.ArrayType}toString(){return`FixedSizeList[${this.listSize}]<${this.valueType}>`}}GB[Symbol.toStringTag]=(t=>(t.children=null,t.listSize=null,t[Symbol.toStringTag]="FixedSizeList"))(GB.prototype)
12926
+ class KB extends IB{constructor(t,e=!1){var n,i,o
12927
+ if(super($B.Map),this.children=[t],this.keysSorted=e,t&&(t.name="entries",null===(n=null==t?void 0:t.type)||void 0===n?void 0:n.children)){const e=null===(i=null==t?void 0:t.type)||void 0===i?void 0:i.children[0]
12928
12928
  e&&(e.name="key")
12929
12929
  const n=null===(o=null==t?void 0:t.type)||void 0===o?void 0:o.children[1]
12930
- n&&(n.name="value")}}get keyType(){return this.children[0].type.children[0].type}get valueType(){return this.children[0].type.children[1].type}get childType(){return this.children[0].type}toString(){return`Map<{${this.children[0].type.children.map((t=>`${t.name}:${t.type}`)).join(", ")}}>`}}UB[Symbol.toStringTag]=(t=>(t.children=null,t.keysSorted=null,t[Symbol.toStringTag]="Map_"))(UB.prototype)
12931
- const jB=(WB=-1,()=>++WB)
12932
- var WB
12933
- class ZB extends SB{constructor(t,e,n,i){super(wB.Dictionary),this.indices=e,this.dictionary=t,this.isOrdered=i||!1,this.id=null==n?jB():function(t){if("bigint"==typeof t&&(t<Number.MIN_SAFE_INTEGER||t>Number.MAX_SAFE_INTEGER))throw new TypeError(`${t} is not safe to convert to a number.`)
12934
- return Number(t)}(n)}get children(){return this.dictionary.children}get valueType(){return this.dictionary}get ArrayType(){return this.dictionary.ArrayType}toString(){return`Dictionary<${this.indices}, ${this.dictionary}>`}}ZB[Symbol.toStringTag]=(t=>(t.id=null,t.indices=null,t.isOrdered=null,t.dictionary=null,t[Symbol.toStringTag]="Dictionary"))(ZB.prototype)
12935
- class GB{constructor(t){this.wafermap=t,this.invalidGridDimensions=!1,this.invalidDiesTableSchema=!1}getValidity(){return{invalidGridDimensions:this.invalidGridDimensions,invalidDiesTableSchema:this.invalidDiesTableSchema}}isValid(){return Object.values(this.getValidity()).every((t=>!1===t))}validateGridDimensions(){return this.invalidGridDimensions=!1,void 0===this.wafermap.gridMinX&&void 0===this.wafermap.gridMaxX&&void 0===this.wafermap.gridMinY&&void 0===this.wafermap.gridMaxY?this.invalidGridDimensions=!1:("number"!=typeof this.wafermap.gridMinX||"number"!=typeof this.wafermap.gridMaxX||"number"!=typeof this.wafermap.gridMinY||"number"!=typeof this.wafermap.gridMaxY||this.wafermap.gridMaxX<this.wafermap.gridMinX||this.wafermap.gridMaxY<this.wafermap.gridMinY)&&(this.invalidGridDimensions=!0),!this.invalidGridDimensions}validateDiesTableSchema(){if(this.invalidDiesTableSchema=!1,void 0===this.wafermap.diesTable)this.invalidDiesTableSchema=!1
12930
+ n&&(n.name="value")}}get keyType(){return this.children[0].type.children[0].type}get valueType(){return this.children[0].type.children[1].type}get childType(){return this.children[0].type}toString(){return`Map<{${this.children[0].type.children.map((t=>`${t.name}:${t.type}`)).join(", ")}}>`}}KB[Symbol.toStringTag]=(t=>(t.children=null,t.keysSorted=null,t[Symbol.toStringTag]="Map_"))(KB.prototype)
12931
+ const JB=(XB=-1,()=>++XB)
12932
+ var XB
12933
+ class YB extends IB{constructor(t,e,n,i){super($B.Dictionary),this.indices=e,this.dictionary=t,this.isOrdered=i||!1,this.id=null==n?JB():function(t){if("bigint"==typeof t&&(t<Number.MIN_SAFE_INTEGER||t>Number.MAX_SAFE_INTEGER))throw new TypeError(`${t} is not safe to convert to a number.`)
12934
+ return Number(t)}(n)}get children(){return this.dictionary.children}get valueType(){return this.dictionary}get ArrayType(){return this.dictionary.ArrayType}toString(){return`Dictionary<${this.indices}, ${this.dictionary}>`}}YB[Symbol.toStringTag]=(t=>(t.id=null,t.indices=null,t.isOrdered=null,t.dictionary=null,t[Symbol.toStringTag]="Dictionary"))(YB.prototype)
12935
+ class QB{constructor(t){this.wafermap=t,this.invalidGridDimensions=!1,this.invalidDiesTableSchema=!1}getValidity(){return{invalidGridDimensions:this.invalidGridDimensions,invalidDiesTableSchema:this.invalidDiesTableSchema}}isValid(){return Object.values(this.getValidity()).every((t=>!1===t))}validateGridDimensions(){return this.invalidGridDimensions=!1,void 0===this.wafermap.gridMinX&&void 0===this.wafermap.gridMaxX&&void 0===this.wafermap.gridMinY&&void 0===this.wafermap.gridMaxY?this.invalidGridDimensions=!1:("number"!=typeof this.wafermap.gridMinX||"number"!=typeof this.wafermap.gridMaxX||"number"!=typeof this.wafermap.gridMinY||"number"!=typeof this.wafermap.gridMaxY||this.wafermap.gridMaxX<this.wafermap.gridMinX||this.wafermap.gridMaxY<this.wafermap.gridMinY)&&(this.invalidGridDimensions=!0),!this.invalidGridDimensions}validateDiesTableSchema(){if(this.invalidDiesTableSchema=!1,void 0===this.wafermap.diesTable)this.invalidDiesTableSchema=!1
12936
12936
  else{const t=this.wafermap.diesTable.schema.fields,e=t.find((t=>"colIndex"===t.name)),n=t.find((t=>"rowIndex"===t.name)),i=t.find((t=>"value"===t.name))
12937
- e&&n&&i&&SB.isInt(e.type)&&32===e.type.bitWidth&&SB.isInt(n.type)&&32===n.type.bitWidth&&SB.isFloat(i.type)&&i.type.precision===gB.DOUBLE||(this.invalidDiesTableSchema=!0)}return!this.invalidDiesTableSchema}}class KB{constructor(t){this.wafermap=t}drawWafer(){this.renderHover()}renderHover(){this.wafermap.hoverWidth=this.wafermap.experimentalDataManager.dieDimensions.width*this.wafermap.transform.k,this.wafermap.hoverHeight=this.wafermap.experimentalDataManager.dieDimensions.height*this.wafermap.transform.k,this.wafermap.hoverOpacity=void 0===this.wafermap.hoverDie?iB:nB,this.wafermap.hoverTransform=this.calculateHoverTransform()}calculateHoverTransform(){if(void 0!==this.wafermap.hoverDie){const t=this.wafermap.experimentalDataManager.horizontalScale(this.wafermap.hoverDie.x)
12937
+ e&&n&&i&&IB.isInt(e.type)&&32===e.type.bitWidth&&IB.isInt(n.type)&&32===n.type.bitWidth&&IB.isFloat(i.type)&&i.type.precision===xB.DOUBLE||(this.invalidDiesTableSchema=!0)}return!this.invalidDiesTableSchema}}class tq{constructor(t){this.wafermap=t}drawWafer(){this.renderHover()}renderHover(){this.wafermap.hoverWidth=this.wafermap.experimentalDataManager.dieDimensions.width*this.wafermap.transform.k,this.wafermap.hoverHeight=this.wafermap.experimentalDataManager.dieDimensions.height*this.wafermap.transform.k,this.wafermap.hoverOpacity=void 0===this.wafermap.hoverDie?lB:aB,this.wafermap.hoverTransform=this.calculateHoverTransform()}calculateHoverTransform(){if(void 0!==this.wafermap.hoverDie){const t=this.wafermap.experimentalDataManager.horizontalScale(this.wafermap.hoverDie.x)
12938
12938
  if(void 0===t)return""
12939
12939
  const e=this.wafermap.experimentalDataManager.verticalScale(this.wafermap.hoverDie.y)
12940
12940
  if(void 0===e)return""
12941
12941
  const n=this.wafermap.transform.apply([t+this.wafermap.experimentalDataManager.margin.left,e+this.wafermap.experimentalDataManager.margin.top])
12942
- return`translate(${n[0]}, ${n[1]})`}return""}}let JB=class{constructor(t){this.wafermap=t,this.onMouseMove=t=>{if(this.wafermap.isExperimentalUpdate())return
12942
+ return`translate(${n[0]}, ${n[1]})`}return""}}let eq=class{constructor(t){this.wafermap=t,this.onMouseMove=t=>{if(this.wafermap.isExperimentalUpdate())return
12943
12943
  const e={x:t.offsetX,y:t.offsetY}
12944
12944
  if(!this.hoversOverDie(e))return void(this.wafermap.hoverDie=void 0)
12945
12945
  const n=this.wafermap.transform.invert([e.x,e.y]),i=this.calculateDieCoordinates({x:n[0],y:n[1]})
12946
- this.wafermap.hoverDie=void 0!==i?this.wafermap.dataManager.getWaferMapDie(i):void 0},this.onMouseOut=t=>{this.wafermap.hoverDie=void 0}}connect(){this.wafermap.addEventListener("mousemove",this.onMouseMove),this.wafermap.addEventListener("mouseout",this.onMouseOut)}disconnect(){this.wafermap.removeEventListener("mousemove",this.onMouseMove),this.wafermap.removeEventListener("mouseout",this.onMouseOut)}calculateDieCoordinates(t){if(!this.wafermap.isExperimentalUpdate()){const e=this.wafermap.originLocation,n=e===YH||e===tB?Math.floor:Math.ceil,i=e===YH||e===QH?Math.floor:Math.ceil
12946
+ this.wafermap.hoverDie=void 0!==i?this.wafermap.dataManager.getWaferMapDie(i):void 0},this.onMouseOut=t=>{this.wafermap.hoverDie=void 0}}connect(){this.wafermap.addEventListener("mousemove",this.onMouseMove),this.wafermap.addEventListener("mouseout",this.onMouseOut)}disconnect(){this.wafermap.removeEventListener("mousemove",this.onMouseMove),this.wafermap.removeEventListener("mouseout",this.onMouseOut)}calculateDieCoordinates(t){if(!this.wafermap.isExperimentalUpdate()){const e=this.wafermap.originLocation,n=e===iB||e===rB?Math.floor:Math.ceil,i=e===iB||e===oB?Math.floor:Math.ceil
12947
12947
  return{x:n(this.wafermap.dataManager.invertedHorizontalScale(t.x-this.wafermap.dataManager.margin.left)),y:i(this.wafermap.dataManager.invertedVerticalScale(t.y-this.wafermap.dataManager.margin.top))}}}hoversOverDie(t){const e=this.wafermap.canvasContext.getImageData(t.x,t.y,1,1).data
12948
12948
  let n=0
12949
12949
  for(const t of e)n+=t
12950
12950
  return n>0}}
12951
- class XB{constructor(t){this.wafermap=t,this.onMouseMove=t=>{if(!this.wafermap.isExperimentalUpdate())return
12951
+ class nq{constructor(t){this.wafermap=t,this.onMouseMove=t=>{if(!this.wafermap.isExperimentalUpdate())return
12952
12952
  const e=this.wafermap.transform.invert([t.offsetX,t.offsetY]),n=this.calculateDieCoordinates({x:e[0],y:e[1]})
12953
12953
  if(void 0===n)return void(this.wafermap.hoverDie=void 0)
12954
12954
  const i=this.wafermap.diesTable.getChild("colIndex").toArray(),o=this.wafermap.diesTable.getChild("rowIndex").toArray()
12955
12955
  for(let t=0;t<i.length;t++)if(i[t]===n.x&&o[t]===n.y)return void(this.wafermap.hoverDie={index:t,x:n.x,y:n.y})
12956
- this.wafermap.hoverDie=void 0},this.onMouseOut=t=>{this.wafermap.hoverDie=void 0}}connect(){this.wafermap.addEventListener("mousemove",this.onMouseMove),this.wafermap.addEventListener("mouseout",this.onMouseOut)}disconnect(){this.wafermap.removeEventListener("mousemove",this.onMouseMove),this.wafermap.removeEventListener("mouseout",this.onMouseOut)}calculateDieCoordinates(t){if(this.wafermap.isExperimentalUpdate()){const e=this.wafermap.originLocation,n=e===YH||e===tB?Math.floor:Math.ceil,i=e===YH||e===QH?Math.ceil:Math.floor
12957
- return{x:n(this.wafermap.experimentalDataManager.horizontalScale.invert(t.x-this.wafermap.experimentalDataManager.margin.left)),y:i(this.wafermap.experimentalDataManager.verticalScale.invert(t.y-this.wafermap.experimentalDataManager.margin.top))}}}}class YB{constructor(t){this.wafermap=t,this.scaleExtent=[1,100],this.minExtentPoint=[0,0],this.onWheelMove=t=>{t.preventDefault()}}connect(){this.createZoomBehavior(),this.wafermap.addEventListener("wheel",this.onWheelMove,{passive:!1})}disconnect(){iH().on("zoom",null)(FL(this.wafermap)),this.wafermap.removeEventListener("wheel",this.onWheelMove)}createZoomBehavior(){iH().scaleExtent(this.scaleExtent).translateExtent([this.minExtentPoint,[this.wafermap.canvasWidth,this.wafermap.canvasHeight]]).on("zoom",(t=>{this.wafermap.transform=t.transform}))(FL(this.wafermap))}}class QB extends Le{constructor(){super(...arguments),this.waferMapUpdateTracker=new fB(this.asRequiredFieldsWaferMap),this.originLocation=YH,this.gridMinX=void 0,this.gridMaxX=void 0,this.gridMinY=void 0,this.gridMaxY=void 0,this.orientation=eB,this.maxCharacters=4,this.dieLabelsHidden=!1,this.dieLabelsSuffix="",this.colorScaleMode=oB,this.experimentalDataManager=new hB(this.asRequiredFieldsWaferMap),this.dataManager=new lB(this.asRequiredFieldsWaferMap),this.workerRenderer=new KB(this.asRequiredFieldsWaferMap),this.renderer=new uB(this.asRequiredFieldsWaferMap),this.renderQueued=!1,this.transform=GV,this.hoverTransform="",this.hoverOpacity=iB,this.hoverWidth=0,this.hoverHeight=0,this.highlightedTags=[],this.dies=[],this.colorScale={colors:[],values:[]},this.hoverHandler=new JB(this.asRequiredFieldsWaferMap),this.experimentalHoverHandler=new XB(this.asRequiredFieldsWaferMap),this.zoomHandler=new YB(this.asRequiredFieldsWaferMap),this.resizeObserver=this.createResizeObserver(),this.waferMapValidator=new GB(this.asRequiredFieldsWaferMap)}get validity(){return this.waferMapValidator.getValidity()}connectedCallback(){super.connectedCallback(),this.canvasContext=this.canvas.getContext("2d",{willReadFrequently:!0}),this.hoverHandler.connect(),this.experimentalHoverHandler.connect(),this.zoomHandler.connect(),this.resizeObserver.observe(this),this.waferMapUpdateTracker.trackAll()}disconnectedCallback(){super.disconnectedCallback(),this.hoverHandler.disconnect(),this.experimentalHoverHandler.disconnect(),this.zoomHandler.disconnect(),this.resizeObserver.unobserve(this)}experimentalUpdate(){this.validity.invalidDiesTableSchema||(this.waferMapUpdateTracker.requiresEventsUpdate?(this.zoomHandler.disconnect(),this.waferMapUpdateTracker.requiresContainerDimensionsUpdate||this.waferMapUpdateTracker.requiresScalesUpdate?(this.experimentalDataManager.updateComputations(),this.workerRenderer.drawWafer()):this.waferMapUpdateTracker.requiresLabelsFontSizeUpdate||this.waferMapUpdateTracker.requiresDiesRenderInfoUpdate?(this.experimentalDataManager.updatePrerendering(),this.workerRenderer.drawWafer()):this.waferMapUpdateTracker.requiresDrawnWaferUpdate&&this.workerRenderer.drawWafer(),this.zoomHandler.connect()):this.waferMapUpdateTracker.requiresRenderHoverUpdate&&this.workerRenderer.renderHover())}update(){this.validate(),this.isExperimentalUpdate()?this.experimentalUpdate():this.waferMapUpdateTracker.requiresEventsUpdate?(this.zoomHandler.disconnect(),this.waferMapUpdateTracker.requiresContainerDimensionsUpdate?(this.dataManager.updateContainerDimensions(),this.renderer.updateSortedDiesAndDrawWafer()):this.waferMapUpdateTracker.requiresScalesUpdate?(this.dataManager.updateScales(),this.renderer.updateSortedDiesAndDrawWafer()):this.waferMapUpdateTracker.requiresLabelsFontSizeUpdate?(this.dataManager.updateLabelsFontSize(),this.renderer.updateSortedDiesAndDrawWafer()):this.waferMapUpdateTracker.requiresDiesRenderInfoUpdate?(this.dataManager.updateDiesRenderInfo(),this.renderer.updateSortedDiesAndDrawWafer()):this.waferMapUpdateTracker.requiresDrawnWaferUpdate&&this.renderer.drawWafer(),this.zoomHandler.connect()):this.waferMapUpdateTracker.requiresRenderHoverUpdate&&this.renderer.renderHover()}isExperimentalUpdate(){return void 0!==this.diesTable}validate(){this.waferMapValidator.validateGridDimensions(),this.waferMapValidator.validateDiesTableSchema()}createResizeObserver(){return new ResizeObserver((t=>{const e=t[0]
12956
+ this.wafermap.hoverDie=void 0},this.onMouseOut=t=>{this.wafermap.hoverDie=void 0}}connect(){this.wafermap.addEventListener("mousemove",this.onMouseMove),this.wafermap.addEventListener("mouseout",this.onMouseOut)}disconnect(){this.wafermap.removeEventListener("mousemove",this.onMouseMove),this.wafermap.removeEventListener("mouseout",this.onMouseOut)}calculateDieCoordinates(t){if(this.wafermap.isExperimentalUpdate()){const e=this.wafermap.originLocation,n=e===iB||e===rB?Math.floor:Math.ceil,i=e===iB||e===oB?Math.ceil:Math.floor
12957
+ return{x:n(this.wafermap.experimentalDataManager.horizontalScale.invert(t.x-this.wafermap.experimentalDataManager.margin.left)),y:i(this.wafermap.experimentalDataManager.verticalScale.invert(t.y-this.wafermap.experimentalDataManager.margin.top))}}}}class iq{constructor(t){this.wafermap=t,this.scaleExtent=[1,100],this.minExtentPoint=[0,0],this.onWheelMove=t=>{t.preventDefault()}}connect(){this.createZoomBehavior(),this.wafermap.addEventListener("wheel",this.onWheelMove,{passive:!1})}disconnect(){lH().on("zoom",null)(VL(this.wafermap)),this.wafermap.removeEventListener("wheel",this.onWheelMove)}createZoomBehavior(){lH().scaleExtent(this.scaleExtent).translateExtent([this.minExtentPoint,[this.wafermap.canvasWidth,this.wafermap.canvasHeight]]).on("zoom",(t=>{this.wafermap.transform=t.transform}))(VL(this.wafermap))}}class oq extends Le{constructor(){super(...arguments),this.waferMapUpdateTracker=new yB(this.asRequiredFieldsWaferMap),this.originLocation=iB,this.gridMinX=void 0,this.gridMaxX=void 0,this.gridMinY=void 0,this.gridMaxY=void 0,this.orientation=sB,this.maxCharacters=4,this.dieLabelsHidden=!1,this.dieLabelsSuffix="",this.colorScaleMode=cB,this.experimentalDataManager=new gB(this.asRequiredFieldsWaferMap),this.dataManager=new pB(this.asRequiredFieldsWaferMap),this.workerRenderer=new tq(this.asRequiredFieldsWaferMap),this.renderer=new vB(this.asRequiredFieldsWaferMap),this.renderQueued=!1,this.transform=QV,this.hoverTransform="",this.hoverOpacity=lB,this.hoverWidth=0,this.hoverHeight=0,this.highlightedTags=[],this.dies=[],this.colorScale={colors:[],values:[]},this.hoverHandler=new eq(this.asRequiredFieldsWaferMap),this.experimentalHoverHandler=new nq(this.asRequiredFieldsWaferMap),this.zoomHandler=new iq(this.asRequiredFieldsWaferMap),this.resizeObserver=this.createResizeObserver(),this.waferMapValidator=new QB(this.asRequiredFieldsWaferMap)}get validity(){return this.waferMapValidator.getValidity()}connectedCallback(){super.connectedCallback(),this.canvasContext=this.canvas.getContext("2d",{willReadFrequently:!0}),this.hoverHandler.connect(),this.experimentalHoverHandler.connect(),this.zoomHandler.connect(),this.resizeObserver.observe(this),this.waferMapUpdateTracker.trackAll()}disconnectedCallback(){super.disconnectedCallback(),this.hoverHandler.disconnect(),this.experimentalHoverHandler.disconnect(),this.zoomHandler.disconnect(),this.resizeObserver.unobserve(this)}experimentalUpdate(){this.validity.invalidDiesTableSchema||(this.waferMapUpdateTracker.requiresEventsUpdate?(this.zoomHandler.disconnect(),this.waferMapUpdateTracker.requiresContainerDimensionsUpdate||this.waferMapUpdateTracker.requiresScalesUpdate?(this.experimentalDataManager.updateComputations(),this.workerRenderer.drawWafer()):this.waferMapUpdateTracker.requiresLabelsFontSizeUpdate||this.waferMapUpdateTracker.requiresDiesRenderInfoUpdate?(this.experimentalDataManager.updatePrerendering(),this.workerRenderer.drawWafer()):this.waferMapUpdateTracker.requiresDrawnWaferUpdate&&this.workerRenderer.drawWafer(),this.zoomHandler.connect()):this.waferMapUpdateTracker.requiresRenderHoverUpdate&&this.workerRenderer.renderHover())}update(){this.validate(),this.isExperimentalUpdate()?this.experimentalUpdate():this.waferMapUpdateTracker.requiresEventsUpdate?(this.zoomHandler.disconnect(),this.waferMapUpdateTracker.requiresContainerDimensionsUpdate?(this.dataManager.updateContainerDimensions(),this.renderer.updateSortedDiesAndDrawWafer()):this.waferMapUpdateTracker.requiresScalesUpdate?(this.dataManager.updateScales(),this.renderer.updateSortedDiesAndDrawWafer()):this.waferMapUpdateTracker.requiresLabelsFontSizeUpdate?(this.dataManager.updateLabelsFontSize(),this.renderer.updateSortedDiesAndDrawWafer()):this.waferMapUpdateTracker.requiresDiesRenderInfoUpdate?(this.dataManager.updateDiesRenderInfo(),this.renderer.updateSortedDiesAndDrawWafer()):this.waferMapUpdateTracker.requiresDrawnWaferUpdate&&this.renderer.drawWafer(),this.zoomHandler.connect()):this.waferMapUpdateTracker.requiresRenderHoverUpdate&&this.renderer.renderHover()}isExperimentalUpdate(){return void 0!==this.diesTable}validate(){this.waferMapValidator.validateGridDimensions(),this.waferMapValidator.validateDiesTableSchema()}createResizeObserver(){return new ResizeObserver((t=>{const e=t[0]
12958
12958
  if(void 0===e)return
12959
12959
  const{height:n,width:i}=e.contentRect
12960
- this.canvas.width=i,this.canvas.height=n,this.canvasWidth=i,this.canvasHeight=n}))}originLocationChanged(){this.waferMapUpdateTracker.track("originLocation"),this.waferMapUpdateTracker.queueUpdate()}gridMinXChanged(){this.waferMapUpdateTracker.track("gridMinX"),this.waferMapUpdateTracker.queueUpdate()}gridMaxXChanged(){this.waferMapUpdateTracker.track("gridMaxX"),this.waferMapUpdateTracker.queueUpdate()}gridMinYChanged(){this.waferMapUpdateTracker.track("gridMinY"),this.waferMapUpdateTracker.queueUpdate()}gridMaxYChanged(){this.waferMapUpdateTracker.track("gridMaxY"),this.waferMapUpdateTracker.queueUpdate()}maxCharactersChanged(){this.waferMapUpdateTracker.track("maxCharacters"),this.waferMapUpdateTracker.queueUpdate()}dieLabelsHiddenChanged(){this.waferMapUpdateTracker.track("dieLabelsHidden"),this.waferMapUpdateTracker.queueUpdate()}dieLabelsSuffixChanged(){this.waferMapUpdateTracker.track("dieLabelsSuffix"),this.waferMapUpdateTracker.queueUpdate()}colorScaleModeChanged(){this.waferMapUpdateTracker.track("colorScaleMode"),this.waferMapUpdateTracker.queueUpdate()}highlightedTagsChanged(){this.waferMapUpdateTracker.track("highlightedTags"),this.waferMapUpdateTracker.queueUpdate()}diesChanged(){this.waferMapUpdateTracker.track("dies"),this.waferMapUpdateTracker.queueUpdate()}diesTableChanged(){this.waferMapUpdateTracker.track("dies"),this.waferMapUpdateTracker.queueUpdate()}colorScaleChanged(){this.waferMapUpdateTracker.track("colorScale"),this.waferMapUpdateTracker.queueUpdate()}transformChanged(){this.waferMapUpdateTracker.track("transform"),this.waferMapUpdateTracker.queueUpdate()}canvasWidthChanged(){this.waferMapUpdateTracker.track("canvasWidth"),this.waferMapUpdateTracker.queueUpdate()}canvasHeightChanged(){this.waferMapUpdateTracker.track("canvasHeight"),this.waferMapUpdateTracker.queueUpdate()}hoverDieChanged(){this.$emit("die-hover",{currentDie:this.hoverDie}),this.waferMapUpdateTracker.track("hoverDie"),this.waferMapUpdateTracker.queueUpdate()}get asRequiredFieldsWaferMap(){return this}}t([st({attribute:"origin-location"})],QB.prototype,"originLocation",void 0),t([st({attribute:"grid-min-x",converter:ot})],QB.prototype,"gridMinX",void 0),t([st({attribute:"grid-max-x",converter:ot})],QB.prototype,"gridMaxX",void 0),t([st({attribute:"grid-min-y",converter:ot})],QB.prototype,"gridMinY",void 0),t([st({attribute:"grid-max-y",converter:ot})],QB.prototype,"gridMaxY",void 0),t([st],QB.prototype,"orientation",void 0),t([st({attribute:"max-characters",converter:ot})],QB.prototype,"maxCharacters",void 0),t([st({attribute:"die-labels-hidden",mode:"boolean"})],QB.prototype,"dieLabelsHidden",void 0),t([st({attribute:"die-labels-suffix"})],QB.prototype,"dieLabelsSuffix",void 0),t([st({attribute:"color-scale-mode"})],QB.prototype,"colorScaleMode",void 0),t([g],QB.prototype,"renderer",void 0),t([g],QB.prototype,"canvasWidth",void 0),t([g],QB.prototype,"canvasHeight",void 0),t([g],QB.prototype,"transform",void 0),t([g],QB.prototype,"hoverTransform",void 0),t([g],QB.prototype,"hoverOpacity",void 0),t([g],QB.prototype,"hoverWidth",void 0),t([g],QB.prototype,"hoverHeight",void 0),t([g],QB.prototype,"hoverDie",void 0),t([g],QB.prototype,"highlightedTags",void 0),t([g],QB.prototype,"dies",void 0),t([g],QB.prototype,"diesTable",void 0),t([g],QB.prototype,"colorScale",void 0)
12961
- const tq=QB.compose({baseName:"wafer-map",template:oH,styles:rH})
12962
- bi.getOrCreate().withPrefix("nimble").register(tq())}()
12960
+ this.canvas.width=i,this.canvas.height=n,this.canvasWidth=i,this.canvasHeight=n}))}originLocationChanged(){this.waferMapUpdateTracker.track("originLocation"),this.waferMapUpdateTracker.queueUpdate()}gridMinXChanged(){this.waferMapUpdateTracker.track("gridMinX"),this.waferMapUpdateTracker.queueUpdate()}gridMaxXChanged(){this.waferMapUpdateTracker.track("gridMaxX"),this.waferMapUpdateTracker.queueUpdate()}gridMinYChanged(){this.waferMapUpdateTracker.track("gridMinY"),this.waferMapUpdateTracker.queueUpdate()}gridMaxYChanged(){this.waferMapUpdateTracker.track("gridMaxY"),this.waferMapUpdateTracker.queueUpdate()}maxCharactersChanged(){this.waferMapUpdateTracker.track("maxCharacters"),this.waferMapUpdateTracker.queueUpdate()}dieLabelsHiddenChanged(){this.waferMapUpdateTracker.track("dieLabelsHidden"),this.waferMapUpdateTracker.queueUpdate()}dieLabelsSuffixChanged(){this.waferMapUpdateTracker.track("dieLabelsSuffix"),this.waferMapUpdateTracker.queueUpdate()}colorScaleModeChanged(){this.waferMapUpdateTracker.track("colorScaleMode"),this.waferMapUpdateTracker.queueUpdate()}highlightedTagsChanged(){this.waferMapUpdateTracker.track("highlightedTags"),this.waferMapUpdateTracker.queueUpdate()}diesChanged(){this.waferMapUpdateTracker.track("dies"),this.waferMapUpdateTracker.queueUpdate()}diesTableChanged(){this.waferMapUpdateTracker.track("dies"),this.waferMapUpdateTracker.queueUpdate()}colorScaleChanged(){this.waferMapUpdateTracker.track("colorScale"),this.waferMapUpdateTracker.queueUpdate()}transformChanged(){this.waferMapUpdateTracker.track("transform"),this.waferMapUpdateTracker.queueUpdate()}canvasWidthChanged(){this.waferMapUpdateTracker.track("canvasWidth"),this.waferMapUpdateTracker.queueUpdate()}canvasHeightChanged(){this.waferMapUpdateTracker.track("canvasHeight"),this.waferMapUpdateTracker.queueUpdate()}hoverDieChanged(){this.$emit("die-hover",{currentDie:this.hoverDie}),this.waferMapUpdateTracker.track("hoverDie"),this.waferMapUpdateTracker.queueUpdate()}get asRequiredFieldsWaferMap(){return this}}t([st({attribute:"origin-location"})],oq.prototype,"originLocation",void 0),t([st({attribute:"grid-min-x",converter:ot})],oq.prototype,"gridMinX",void 0),t([st({attribute:"grid-max-x",converter:ot})],oq.prototype,"gridMaxX",void 0),t([st({attribute:"grid-min-y",converter:ot})],oq.prototype,"gridMinY",void 0),t([st({attribute:"grid-max-y",converter:ot})],oq.prototype,"gridMaxY",void 0),t([st],oq.prototype,"orientation",void 0),t([st({attribute:"max-characters",converter:ot})],oq.prototype,"maxCharacters",void 0),t([st({attribute:"die-labels-hidden",mode:"boolean"})],oq.prototype,"dieLabelsHidden",void 0),t([st({attribute:"die-labels-suffix"})],oq.prototype,"dieLabelsSuffix",void 0),t([st({attribute:"color-scale-mode"})],oq.prototype,"colorScaleMode",void 0),t([g],oq.prototype,"renderer",void 0),t([g],oq.prototype,"canvasWidth",void 0),t([g],oq.prototype,"canvasHeight",void 0),t([g],oq.prototype,"transform",void 0),t([g],oq.prototype,"hoverTransform",void 0),t([g],oq.prototype,"hoverOpacity",void 0),t([g],oq.prototype,"hoverWidth",void 0),t([g],oq.prototype,"hoverHeight",void 0),t([g],oq.prototype,"hoverDie",void 0),t([g],oq.prototype,"highlightedTags",void 0),t([g],oq.prototype,"dies",void 0),t([g],oq.prototype,"diesTable",void 0),t([g],oq.prototype,"colorScale",void 0)
12961
+ const rq=oq.compose({baseName:"wafer-map",template:cH,styles:dH})
12962
+ bi.getOrCreate().withPrefix("nimble").register(rq())}()
12963
12963
  //# sourceMappingURL=all-components-bundle.min.js.map